Skip to content

Commit 94a149c

Browse files
fix(types): make fields nullable in account-holders, accounts, and cards
1 parent d65797f commit 94a149c

4 files changed

Lines changed: 17 additions & 14 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 191
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-d29b68bb85936070878d8badaa8a7c5991313285e70a990bc812c838eba85373.yml
3-
openapi_spec_hash: 54b44da68df22eb0ea99f2bc564667a2
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-dc8aacc11d74a1e25c95ba549dd0f4a4e735cbf7562fc6b17b0c81d62fd5475c.yml
3+
openapi_spec_hash: 1906583f260a3e9ace5ae38fd2254763
44
config_hash: ac8326134e692f3f3bdec82396bbec80

src/resources/account-holders/account-holders.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1284,7 +1284,7 @@ export namespace AccountHolderUpdateResponse {
12841284
email?: string;
12851285

12861286
/**
1287-
* The type of KYC exemption for a KYC-Exempt Account Holder. "None" if the account
1287+
* The type of KYC exemption for a KYC-Exempt Account Holder. `null` if the account
12881288
* holder is not KYC-Exempt.
12891289
*/
12901290
exemption_type?: 'AUTHORIZED_USER' | 'PREPAID_CARD_USER';
@@ -1839,10 +1839,10 @@ export interface AccountHolderSimulateEnrollmentReviewResponse {
18391839
email?: string;
18401840

18411841
/**
1842-
* The type of KYC exemption for a KYC-Exempt Account Holder. "None" if the account
1842+
* The type of KYC exemption for a KYC-Exempt Account Holder. `null` if the account
18431843
* holder is not KYC-Exempt.
18441844
*/
1845-
exemption_type?: 'AUTHORIZED_USER' | 'PREPAID_CARD_USER';
1845+
exemption_type?: 'AUTHORIZED_USER' | 'PREPAID_CARD_USER' | null;
18461846

18471847
/**
18481848
* Customer-provided token that indicates a relationship with an object outside of

src/resources/accounts.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,8 @@ export interface Account {
172172
| 'ISSUER_REQUEST'
173173
| 'NOT_ACTIVE'
174174
| 'INTERNAL_REVIEW'
175-
| 'OTHER';
175+
| 'OTHER'
176+
| null;
176177

177178
/**
178179
* @deprecated
@@ -406,7 +407,8 @@ export interface AccountUpdateParams {
406407
| 'ISSUER_REQUEST'
407408
| 'NOT_ACTIVE'
408409
| 'INTERNAL_REVIEW'
409-
| 'OTHER';
410+
| 'OTHER'
411+
| null;
410412

411413
/**
412414
* @deprecated Address used during Address Verification Service (AVS) checks during

src/resources/cards/cards.ts

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -524,9 +524,9 @@ export interface NonPCICard {
524524
created: string;
525525

526526
/**
527-
* Deprecated: Funding account for the card.
527+
* Funding account for a card
528528
*/
529-
funding: NonPCICard.Funding;
529+
funding: NonPCICard.Funding | null;
530530

531531
/**
532532
* Last four digits of the card number.
@@ -611,7 +611,7 @@ export interface NonPCICard {
611611
* after tokenization. This artwork must be approved by Mastercard and configured
612612
* by Lithic to use.
613613
*/
614-
digital_card_art_token?: string;
614+
digital_card_art_token?: string | null;
615615

616616
/**
617617
* Two digit (MM) expiry month.
@@ -652,7 +652,7 @@ export interface NonPCICard {
652652
* before use. Specifies the configuration (i.e., physical card art) that the card
653653
* should be manufactured with.
654654
*/
655-
product_id?: string;
655+
product_id?: string | null;
656656

657657
/**
658658
* If the card is a replacement for another card, the globally unique identifier
@@ -693,12 +693,13 @@ export interface NonPCICard {
693693
| 'INTERNAL_REVIEW'
694694
| 'EXPIRED'
695695
| 'UNDELIVERABLE'
696-
| 'OTHER';
696+
| 'OTHER'
697+
| null;
697698
}
698699

699700
export namespace NonPCICard {
700701
/**
701-
* Deprecated: Funding account for the card.
702+
* Funding account for a card
702703
*/
703704
export interface Funding {
704705
/**
@@ -740,7 +741,7 @@ export namespace NonPCICard {
740741
/**
741742
* The nickname given to the `FundingAccount` or `null` if it has no nickname.
742743
*/
743-
nickname?: string;
744+
nickname?: string | null;
744745
}
745746
}
746747

0 commit comments

Comments
 (0)