Skip to content

Commit 2613523

Browse files
axshaniilyamerman
andauthored
JwtSubject added to PatchIndividualCustomer (#298)
* - added jwtSubject to authorizedUsers and to PatchIndividualCustomerRequest - tags type should be Tags * add jwtSubject to ApplicationFormPrefill * add jwtSubject to BusinessContact --------- Co-authored-by: Ilya Merman <[email protected]>
1 parent f4aa7ab commit 2613523

File tree

3 files changed

+30
-6
lines changed

3 files changed

+30
-6
lines changed

types/applicationForm.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,10 @@ export interface ApplicationFormPrefill {
159159
* Individual / Business. Optional. Phone number of the individual / Phone number of the business.
160160
*/
161161
phone?: Phone
162+
/**
163+
* Individual / Business. Optional. See (this)[https://docs.unit.co/customer-api-tokens/#customers-create-customer-bearer-token-jwt] section for more information.
164+
*/
165+
jwtSubject?: string
162166
}
163167

164168
export interface ApplicationFormSettingsOverride {

types/common.ts

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,12 @@ export interface BeneficialOwner extends BaseContactAttributes {
191191
evaluationParams?: EvaluationParams
192192
}
193193

194-
export type BusinessContact = Pick<BaseContactAttributes, "fullName" | "email" | "phone">
194+
export type BusinessContact = {
195+
/**
196+
* Optional. See (this)[https://docs.unit.co/customer-api-tokens/#customers-create-customer-bearer-token-jwt] section for more information.
197+
*/
198+
jwtSubject?: string
199+
} & Pick<BaseContactAttributes, "fullName" | "email" | "phone">
195200

196201
export type AuthorizedUser = Pick<BaseContactAttributes, "fullName" | "email" | "phone">
197202

@@ -215,6 +220,11 @@ export interface Counterparty {
215220
* Name of the person or company that owns the bank account.
216221
*/
217222
name: string
223+
224+
/**
225+
* Optional. See (this)[https://docs.unit.co/customer-api-tokens/#customers-create-customer-bearer-token-jwt] section for more information.
226+
*/
227+
jwtSubject?: string
218228
}
219229

220230
export interface WireCounterparty extends Pick<Counterparty, "routingNumber" | "accountNumber" | "name"> {
@@ -411,7 +421,7 @@ export type Trustee = BaseContactAttributes
411421

412422
export interface TrustContact extends Pick<BaseContactAttributes, "fullName" | "email" | "phone" | "address"> {
413423
/**
414-
* Optional. See this section for more information.
424+
* Optional. See (this)[https://docs.unit.co/customer-api-tokens/#customers-create-customer-bearer-token-jwt] section for more information.
415425
*/
416426
jwtSubject?: string
417427
}

types/customer.ts

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Address, AuthorizedUser, BusinessContact, FullName, Phone, Relationship, State, TrustContact } from "./common"
1+
import { Address, AuthorizedUser, BusinessContact, FullName, Phone, Relationship, State, Tags, TrustContact } from "./common"
22

33
export type CustomerStatus = "Active" | "Archived"
44

@@ -245,10 +245,20 @@ export interface PatchIndividualCustomerRequest {
245245
*/
246246
dba?: string
247247

248+
/**
249+
* Array of authorized users. The provided array items will replace the existing ones.
250+
*/
251+
authorizedUsers?: AuthorizedUser[]
252+
248253
/**
249254
* See (Updating Tags)[https://developers.unit.co/#tags].
250255
*/
251-
tags?: object
256+
tags?: Tags
257+
258+
/**
259+
* Optional. See (this)[https://docs.unit.co/customer-api-tokens/#customers-create-customer-bearer-token-jwt] section for more information.
260+
*/
261+
jwtSubject?: string
252262
}
253263
}
254264
}
@@ -283,7 +293,7 @@ export interface PatchBusinessCustomerRequest {
283293
/**
284294
* See (Updating Tags)[https://developers.unit.co/#tags].
285295
*/
286-
tags?: object
296+
tags?: Tags
287297
}
288298
}
289299
}
@@ -309,7 +319,7 @@ export interface PatchTrustCustomerRequest {
309319
/**
310320
* See (Updating Tags)[https://developers.unit.co/#tags].
311321
*/
312-
tags?: object
322+
tags?: Tags
313323
}
314324
}
315325
}

0 commit comments

Comments
 (0)