Skip to content

Commit

Permalink
Update generated code for v998
Browse files Browse the repository at this point in the history
  • Loading branch information
stripe-openapi[bot] committed Apr 26, 2024
1 parent 5c715d3 commit aafee8c
Show file tree
Hide file tree
Showing 17 changed files with 25 additions and 25 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
@@ -1 +1 @@
v997
v998
2 changes: 1 addition & 1 deletion types/Apps/Secrets.d.ts
Expand Up @@ -53,7 +53,7 @@ declare module 'stripe' {
/**
* The plaintext secret value to be stored.
*/
payload: string | null;
payload?: string | null;

scope: Secret.Scope;
}
Expand Down
2 changes: 1 addition & 1 deletion types/BillingPortal/Configurations.d.ts
Expand Up @@ -203,7 +203,7 @@ declare module 'stripe' {
/**
* The list of up to 10 products that support subscription updates.
*/
products: Array<SubscriptionUpdate.Product> | null;
products?: Array<SubscriptionUpdate.Product> | null;

/**
* Determines how to handle prorations resulting from subscription updates. Valid values are `none`, `create_prorations`, and `always_invoice`. Defaults to a value of `none` if you don't set it during creation.
Expand Down
2 changes: 1 addition & 1 deletion types/Charges.d.ts
Expand Up @@ -191,7 +191,7 @@ declare module 'stripe' {
/**
* A list of refunds that have been applied to the charge.
*/
refunds: ApiList<Stripe.Refund> | null;
refunds?: ApiList<Stripe.Refund> | null;

/**
* ID of the review associated with this charge if one exists.
Expand Down
2 changes: 1 addition & 1 deletion types/ConfirmationTokens.d.ts
Expand Up @@ -847,7 +847,7 @@ declare module 'stripe' {
/**
* The customer's date of birth, if provided.
*/
dob: Klarna.Dob | null;
dob?: Klarna.Dob | null;
}

namespace Klarna {
Expand Down
10 changes: 5 additions & 5 deletions types/Identity/VerificationReports.d.ts
Expand Up @@ -95,7 +95,7 @@ declare module 'stripe' {
/**
* Date of birth as it appears in the document.
*/
dob: Document.Dob | null;
dob?: Document.Dob | null;

/**
* Details on the verification error. Present when status is `unverified`.
Expand All @@ -105,7 +105,7 @@ declare module 'stripe' {
/**
* Expiration date of the document.
*/
expiration_date: Document.ExpirationDate | null;
expiration_date?: Document.ExpirationDate | null;

/**
* Array of [File](https://stripe.com/docs/api/files) ids containing images for this document.
Expand Down Expand Up @@ -135,7 +135,7 @@ declare module 'stripe' {
/**
* Document ID number.
*/
number: string | null;
number?: string | null;

/**
* Status of this `document` check.
Expand Down Expand Up @@ -267,7 +267,7 @@ declare module 'stripe' {
/**
* Date of birth.
*/
dob: IdNumber.Dob | null;
dob?: IdNumber.Dob | null;

/**
* Details on the verification error. Present when status is `unverified`.
Expand All @@ -282,7 +282,7 @@ declare module 'stripe' {
/**
* ID number. When `id_number_type` is `us_ssn`, only the last 4 digits are present.
*/
id_number: string | null;
id_number?: string | null;

/**
* Type of ID number.
Expand Down
8 changes: 4 additions & 4 deletions types/Identity/VerificationSessions.d.ts
Expand Up @@ -73,7 +73,7 @@ declare module 'stripe' {
/**
* Details provided about the user being verified. These details may be shown to the user.
*/
provided_details: VerificationSession.ProvidedDetails | null;
provided_details?: VerificationSession.ProvidedDetails | null;

/**
* Redaction status of this VerificationSession. If the VerificationSession is not redacted, this field will be null.
Expand Down Expand Up @@ -103,7 +103,7 @@ declare module 'stripe' {
/**
* The user's verified data.
*/
verified_outputs: VerificationSession.VerifiedOutputs | null;
verified_outputs?: VerificationSession.VerifiedOutputs | null;
}

namespace VerificationSession {
Expand Down Expand Up @@ -232,7 +232,7 @@ declare module 'stripe' {
/**
* The user's verified date of birth.
*/
dob: VerifiedOutputs.Dob | null;
dob?: VerifiedOutputs.Dob | null;

/**
* The user's verified email address
Expand All @@ -247,7 +247,7 @@ declare module 'stripe' {
/**
* The user's verified id number.
*/
id_number: string | null;
id_number?: string | null;

/**
* The user's verified id number type.
Expand Down
2 changes: 1 addition & 1 deletion types/Issuing/Disputes.d.ts
Expand Up @@ -27,7 +27,7 @@ declare module 'stripe' {
/**
* List of balance transactions associated with the dispute.
*/
balance_transactions: Array<Stripe.BalanceTransaction> | null;
balance_transactions?: Array<Stripe.BalanceTransaction> | null;

/**
* Time at which the object was created. Measured in seconds since the Unix epoch.
Expand Down
2 changes: 1 addition & 1 deletion types/Issuing/Transactions.d.ts
Expand Up @@ -96,7 +96,7 @@ declare module 'stripe' {
/**
* Additional purchase information that is optionally provided by the merchant.
*/
purchase_details: Transaction.PurchaseDetails | null;
purchase_details?: Transaction.PurchaseDetails | null;

/**
* [Token](https://stripe.com/docs/api/issuing/tokens/object) object used for this transaction. If a network token was not used for this transaction, this field will be null.
Expand Down
2 changes: 1 addition & 1 deletion types/PaymentMethods.d.ts
Expand Up @@ -775,7 +775,7 @@ declare module 'stripe' {
/**
* The customer's date of birth, if provided.
*/
dob: Klarna.Dob | null;
dob?: Klarna.Dob | null;
}

namespace Klarna {
Expand Down
2 changes: 1 addition & 1 deletion types/Tax/CalculationLineItems.d.ts
Expand Up @@ -55,7 +55,7 @@ declare module 'stripe' {
/**
* Detailed account of taxes relevant to this line item.
*/
tax_breakdown: Array<CalculationLineItem.TaxBreakdown> | null;
tax_breakdown?: Array<CalculationLineItem.TaxBreakdown> | null;

/**
* The [tax code](https://stripe.com/docs/tax/tax-categories) ID used for this resource.
Expand Down
2 changes: 1 addition & 1 deletion types/Tax/Calculations.d.ts
Expand Up @@ -44,7 +44,7 @@ declare module 'stripe' {
/**
* The list of items the customer is purchasing.
*/
line_items: ApiList<Stripe.Tax.CalculationLineItem> | null;
line_items?: ApiList<Stripe.Tax.CalculationLineItem> | null;

/**
* Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
Expand Down
2 changes: 1 addition & 1 deletion types/Tax/Transactions.d.ts
Expand Up @@ -39,7 +39,7 @@ declare module 'stripe' {
/**
* The tax collected or refunded, by line item.
*/
line_items: ApiList<Stripe.Tax.TransactionLineItem> | null;
line_items?: ApiList<Stripe.Tax.TransactionLineItem> | null;

/**
* Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
Expand Down
2 changes: 1 addition & 1 deletion types/Treasury/FinancialAccounts.d.ts
Expand Up @@ -150,7 +150,7 @@ declare module 'stripe' {
/**
* The account number.
*/
account_number: string | null;
account_number?: string | null;

/**
* The last four characters of the account number.
Expand Down
2 changes: 1 addition & 1 deletion types/Treasury/ReceivedCredits.d.ts
Expand Up @@ -184,7 +184,7 @@ declare module 'stripe' {
/**
* The expandable object of the source flow.
*/
source_flow_details: LinkedFlows.SourceFlowDetails | null;
source_flow_details?: LinkedFlows.SourceFlowDetails | null;

/**
* The type of flow that originated the ReceivedCredit (for example, `outbound_payment`).
Expand Down
2 changes: 1 addition & 1 deletion types/Treasury/TransactionEntries.d.ts
Expand Up @@ -50,7 +50,7 @@ declare module 'stripe' {
/**
* Details of the flow associated with the TransactionEntry.
*/
flow_details: TransactionEntry.FlowDetails | null;
flow_details?: TransactionEntry.FlowDetails | null;

/**
* Type of the flow associated with the TransactionEntry.
Expand Down
4 changes: 2 additions & 2 deletions types/Treasury/Transactions.d.ts
Expand Up @@ -45,7 +45,7 @@ declare module 'stripe' {
/**
* A list of TransactionEntries that are part of this Transaction. This cannot be expanded in any list endpoints.
*/
entries: ApiList<Stripe.Treasury.TransactionEntry> | null;
entries?: ApiList<Stripe.Treasury.TransactionEntry> | null;

/**
* The FinancialAccount associated with this object.
Expand All @@ -60,7 +60,7 @@ declare module 'stripe' {
/**
* Details of the flow that created the Transaction.
*/
flow_details: Transaction.FlowDetails | null;
flow_details?: Transaction.FlowDetails | null;

/**
* Type of the flow that created the Transaction.
Expand Down

0 comments on commit aafee8c

Please sign in to comment.