From aafee8c3a30be078c16e3876894fbe047441bb5d Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Fri, 26 Apr 2024 21:53:49 +0000 Subject: [PATCH] Update generated code for v998 --- OPENAPI_VERSION | 2 +- types/Apps/Secrets.d.ts | 2 +- types/BillingPortal/Configurations.d.ts | 2 +- types/Charges.d.ts | 2 +- types/ConfirmationTokens.d.ts | 2 +- types/Identity/VerificationReports.d.ts | 10 +++++----- types/Identity/VerificationSessions.d.ts | 8 ++++---- types/Issuing/Disputes.d.ts | 2 +- types/Issuing/Transactions.d.ts | 2 +- types/PaymentMethods.d.ts | 2 +- types/Tax/CalculationLineItems.d.ts | 2 +- types/Tax/Calculations.d.ts | 2 +- types/Tax/Transactions.d.ts | 2 +- types/Treasury/FinancialAccounts.d.ts | 2 +- types/Treasury/ReceivedCredits.d.ts | 2 +- types/Treasury/TransactionEntries.d.ts | 2 +- types/Treasury/Transactions.d.ts | 4 ++-- 17 files changed, 25 insertions(+), 25 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index bb0c37c10c..121a26ced9 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v997 \ No newline at end of file +v998 \ No newline at end of file diff --git a/types/Apps/Secrets.d.ts b/types/Apps/Secrets.d.ts index 3c8a8df5b0..941ceff9ea 100644 --- a/types/Apps/Secrets.d.ts +++ b/types/Apps/Secrets.d.ts @@ -53,7 +53,7 @@ declare module 'stripe' { /** * The plaintext secret value to be stored. */ - payload: string | null; + payload?: string | null; scope: Secret.Scope; } diff --git a/types/BillingPortal/Configurations.d.ts b/types/BillingPortal/Configurations.d.ts index 62608a1dbd..20762774a6 100644 --- a/types/BillingPortal/Configurations.d.ts +++ b/types/BillingPortal/Configurations.d.ts @@ -203,7 +203,7 @@ declare module 'stripe' { /** * The list of up to 10 products that support subscription updates. */ - products: Array | null; + products?: Array | 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. diff --git a/types/Charges.d.ts b/types/Charges.d.ts index e87f6b2fcc..1415f6b31e 100644 --- a/types/Charges.d.ts +++ b/types/Charges.d.ts @@ -191,7 +191,7 @@ declare module 'stripe' { /** * A list of refunds that have been applied to the charge. */ - refunds: ApiList | null; + refunds?: ApiList | null; /** * ID of the review associated with this charge if one exists. diff --git a/types/ConfirmationTokens.d.ts b/types/ConfirmationTokens.d.ts index 164e7870d5..bdee95d799 100644 --- a/types/ConfirmationTokens.d.ts +++ b/types/ConfirmationTokens.d.ts @@ -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 { diff --git a/types/Identity/VerificationReports.d.ts b/types/Identity/VerificationReports.d.ts index 036125c7df..71fb28e51c 100644 --- a/types/Identity/VerificationReports.d.ts +++ b/types/Identity/VerificationReports.d.ts @@ -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`. @@ -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. @@ -135,7 +135,7 @@ declare module 'stripe' { /** * Document ID number. */ - number: string | null; + number?: string | null; /** * Status of this `document` check. @@ -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`. @@ -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. diff --git a/types/Identity/VerificationSessions.d.ts b/types/Identity/VerificationSessions.d.ts index 28a75b6c8c..61cc316044 100644 --- a/types/Identity/VerificationSessions.d.ts +++ b/types/Identity/VerificationSessions.d.ts @@ -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. @@ -103,7 +103,7 @@ declare module 'stripe' { /** * The user's verified data. */ - verified_outputs: VerificationSession.VerifiedOutputs | null; + verified_outputs?: VerificationSession.VerifiedOutputs | null; } namespace VerificationSession { @@ -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 @@ -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. diff --git a/types/Issuing/Disputes.d.ts b/types/Issuing/Disputes.d.ts index 7828ae3d21..8ce06ff7d8 100644 --- a/types/Issuing/Disputes.d.ts +++ b/types/Issuing/Disputes.d.ts @@ -27,7 +27,7 @@ declare module 'stripe' { /** * List of balance transactions associated with the dispute. */ - balance_transactions: Array | null; + balance_transactions?: Array | null; /** * Time at which the object was created. Measured in seconds since the Unix epoch. diff --git a/types/Issuing/Transactions.d.ts b/types/Issuing/Transactions.d.ts index 7ff79517dd..67e8ea4169 100644 --- a/types/Issuing/Transactions.d.ts +++ b/types/Issuing/Transactions.d.ts @@ -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. diff --git a/types/PaymentMethods.d.ts b/types/PaymentMethods.d.ts index ada5d8b940..d6fc8e0012 100644 --- a/types/PaymentMethods.d.ts +++ b/types/PaymentMethods.d.ts @@ -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 { diff --git a/types/Tax/CalculationLineItems.d.ts b/types/Tax/CalculationLineItems.d.ts index ec893cf5f6..1b106c5de3 100644 --- a/types/Tax/CalculationLineItems.d.ts +++ b/types/Tax/CalculationLineItems.d.ts @@ -55,7 +55,7 @@ declare module 'stripe' { /** * Detailed account of taxes relevant to this line item. */ - tax_breakdown: Array | null; + tax_breakdown?: Array | null; /** * The [tax code](https://stripe.com/docs/tax/tax-categories) ID used for this resource. diff --git a/types/Tax/Calculations.d.ts b/types/Tax/Calculations.d.ts index 51829e2e64..a7b2ac0554 100644 --- a/types/Tax/Calculations.d.ts +++ b/types/Tax/Calculations.d.ts @@ -44,7 +44,7 @@ declare module 'stripe' { /** * The list of items the customer is purchasing. */ - line_items: ApiList | null; + line_items?: ApiList | null; /** * Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. diff --git a/types/Tax/Transactions.d.ts b/types/Tax/Transactions.d.ts index 3160629e9d..ba5000df06 100644 --- a/types/Tax/Transactions.d.ts +++ b/types/Tax/Transactions.d.ts @@ -39,7 +39,7 @@ declare module 'stripe' { /** * The tax collected or refunded, by line item. */ - line_items: ApiList | null; + line_items?: ApiList | null; /** * Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. diff --git a/types/Treasury/FinancialAccounts.d.ts b/types/Treasury/FinancialAccounts.d.ts index 6ef5b7cef9..3cdc016d54 100644 --- a/types/Treasury/FinancialAccounts.d.ts +++ b/types/Treasury/FinancialAccounts.d.ts @@ -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. diff --git a/types/Treasury/ReceivedCredits.d.ts b/types/Treasury/ReceivedCredits.d.ts index cb924d22d4..43ebc4d278 100644 --- a/types/Treasury/ReceivedCredits.d.ts +++ b/types/Treasury/ReceivedCredits.d.ts @@ -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`). diff --git a/types/Treasury/TransactionEntries.d.ts b/types/Treasury/TransactionEntries.d.ts index 945505f1c5..6802e3668f 100644 --- a/types/Treasury/TransactionEntries.d.ts +++ b/types/Treasury/TransactionEntries.d.ts @@ -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. diff --git a/types/Treasury/Transactions.d.ts b/types/Treasury/Transactions.d.ts index 2344019f3c..f6788be1fd 100644 --- a/types/Treasury/Transactions.d.ts +++ b/types/Treasury/Transactions.d.ts @@ -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 | null; + entries?: ApiList | null; /** * The FinancialAccount associated with this object. @@ -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.