diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 52d771c1e6..cb70129c35 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v993 \ No newline at end of file +v1008 \ 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..9e7ac88ed3 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. @@ -1642,6 +1642,9 @@ declare module 'stripe' { } interface Mobilepay { + /** + * Internal card details + */ card: Mobilepay.Card | null; } diff --git a/types/ConfirmationTokens.d.ts b/types/ConfirmationTokens.d.ts index 15bdfd67e6..4f2b1704a4 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/Disputes.d.ts b/types/Disputes.d.ts index 68512b56b2..fe53c0241b 100644 --- a/types/Disputes.d.ts +++ b/types/Disputes.d.ts @@ -250,10 +250,12 @@ declare module 'stripe' { interface PaymentMethodDetails { card?: PaymentMethodDetails.Card; + paypal?: PaymentMethodDetails.Paypal; + /** * Payment method type. */ - type: 'card'; + type: PaymentMethodDetails.Type; } namespace PaymentMethodDetails { @@ -268,6 +270,20 @@ declare module 'stripe' { */ network_reason_code: string | null; } + + interface Paypal { + /** + * The ID of the dispute in PayPal. + */ + case_id: string | null; + + /** + * The reason for the dispute as defined by PayPal + */ + reason_code: string | null; + } + + type Type = 'card' | 'paypal'; } type Status = diff --git a/types/Entitlements/FeaturesResource.d.ts b/types/Entitlements/FeaturesResource.d.ts index 1f74c5b3f8..a3d07eebd4 100644 --- a/types/Entitlements/FeaturesResource.d.ts +++ b/types/Entitlements/FeaturesResource.d.ts @@ -46,7 +46,7 @@ declare module 'stripe' { /** * Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. */ - metadata?: Stripe.MetadataParam; + metadata?: Stripe.Emptyable; /** * The feature's name, for your own purpose, not meant to be displayable to the customer. 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/Invoices.d.ts b/types/Invoices.d.ts index dce82c3423..5b2c3d54cf 100644 --- a/types/Invoices.d.ts +++ b/types/Invoices.d.ts @@ -343,12 +343,12 @@ declare module 'stripe' { payment_settings: Invoice.PaymentSettings; /** - * End of the usage period during which invoice items were added to this invoice. + * End of the usage period during which invoice items were added to this invoice. This looks back one period for a subscription invoice. Use the [line item period](https://stripe.com/api/invoices/line_item#invoice_line_item_object-period) to get the service period for each price. */ period_end: number; /** - * Start of the usage period during which invoice items were added to this invoice. + * Start of the usage period during which invoice items were added to this invoice. This looks back one period for a subscription invoice. Use the [line item period](https://stripe.com/api/invoices/line_item#invoice_line_item_object-period) to get the service period for each price. */ period_start: number; @@ -928,6 +928,7 @@ declare module 'stripe' { | 'setup_intent_mandate_invalid' | 'setup_intent_setup_attempt_expired' | 'setup_intent_unexpected_state' + | 'shipping_address_invalid' | 'shipping_calculation_failed' | 'sku_inactive' | 'state_unsupported' diff --git a/types/InvoicesResource.d.ts b/types/InvoicesResource.d.ts index 2465f60ddc..e35455e582 100644 --- a/types/InvoicesResource.d.ts +++ b/types/InvoicesResource.d.ts @@ -5498,6 +5498,8 @@ declare module 'stripe' { * Note that when you are viewing an upcoming invoice, you are simply viewing a preview – the invoice has not yet been created. As such, the upcoming invoice will not show up in invoice listing calls, and you cannot use the API to pay or edit the invoice. If you want to change the amount that your customer will be billed, you can add, remove, or update pending invoice items, or update the customer's discount. * * You can preview the effects of updating a subscription, including a preview of what proration will take place. To ensure that the actual proration is calculated exactly the same as the previewed proration, you should pass the subscription_details.proration_date parameter when doing the actual subscription update. The recommended way to get only the prorations being previewed is to consider only proration line items where period[start] is equal to the subscription_details.proration_date value passed in the request. + * + * Note: Currency conversion calculations use the latest exchange rates. Exchange rates may vary between the time of the preview and the time of the actual invoice creation. [Learn more](https://docs.stripe.com/currencies/conversions) */ createPreview( params?: InvoiceCreatePreviewParams, @@ -5576,6 +5578,8 @@ declare module 'stripe' { * Note that when you are viewing an upcoming invoice, you are simply viewing a preview – the invoice has not yet been created. As such, the upcoming invoice will not show up in invoice listing calls, and you cannot use the API to pay or edit the invoice. If you want to change the amount that your customer will be billed, you can add, remove, or update pending invoice items, or update the customer's discount. * * You can preview the effects of updating a subscription, including a preview of what proration will take place. To ensure that the actual proration is calculated exactly the same as the previewed proration, you should pass the subscription_details.proration_date parameter when doing the actual subscription update. The recommended way to get only the prorations being previewed is to consider only proration line items where period[start] is equal to the subscription_details.proration_date value passed in the request. + * + * Note: Currency conversion calculations use the latest exchange rates. Exchange rates may vary between the time of the preview and the time of the actual invoice creation. [Learn more](https://docs.stripe.com/currencies/conversions) */ retrieveUpcoming( params?: InvoiceRetrieveUpcomingParams, 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/PaymentIntents.d.ts b/types/PaymentIntents.d.ts index 9415c2f458..26ac01a161 100644 --- a/types/PaymentIntents.d.ts +++ b/types/PaymentIntents.d.ts @@ -526,6 +526,7 @@ declare module 'stripe' { | 'setup_intent_mandate_invalid' | 'setup_intent_setup_attempt_expired' | 'setup_intent_unexpected_state' + | 'shipping_address_invalid' | 'shipping_calculation_failed' | 'sku_inactive' | 'state_unsupported' diff --git a/types/PaymentIntentsResource.d.ts b/types/PaymentIntentsResource.d.ts index 685d7d3865..1e6d7b3e2e 100644 --- a/types/PaymentIntentsResource.d.ts +++ b/types/PaymentIntentsResource.d.ts @@ -4754,6 +4754,11 @@ declare module 'stripe' { */ payment_method_options?: PaymentIntentConfirmParams.PaymentMethodOptions; + /** + * The list of payment method types (for example, a card) that this PaymentIntent can use. Use `automatic_payment_methods` to manage payment methods from the [Stripe Dashboard](https://dashboard.stripe.com/settings/payment_methods). + */ + payment_method_types?: Array; + /** * Options to configure Radar. Learn more about [Radar Sessions](https://stripe.com/docs/radar/radar-session). */ diff --git a/types/PaymentMethods.d.ts b/types/PaymentMethods.d.ts index eea23337cb..90ff71118a 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/SetupAttempts.d.ts b/types/SetupAttempts.d.ts index 8353b3b0fa..d16df113f0 100644 --- a/types/SetupAttempts.d.ts +++ b/types/SetupAttempts.d.ts @@ -769,6 +769,7 @@ declare module 'stripe' { | 'setup_intent_mandate_invalid' | 'setup_intent_setup_attempt_expired' | 'setup_intent_unexpected_state' + | 'shipping_address_invalid' | 'shipping_calculation_failed' | 'sku_inactive' | 'state_unsupported' diff --git a/types/SetupIntents.d.ts b/types/SetupIntents.d.ts index f21daac805..c2b32561b3 100644 --- a/types/SetupIntents.d.ts +++ b/types/SetupIntents.d.ts @@ -439,6 +439,7 @@ declare module 'stripe' { | 'setup_intent_mandate_invalid' | 'setup_intent_setup_attempt_expired' | 'setup_intent_unexpected_state' + | 'shipping_address_invalid' | 'shipping_calculation_failed' | 'sku_inactive' | 'state_unsupported' 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 41f4e19695..a7b2ac0554 100644 --- a/types/Tax/Calculations.d.ts +++ b/types/Tax/Calculations.d.ts @@ -44,13 +44,18 @@ 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. */ livemode: boolean; + /** + * The details of the ship from location, such as the address. + */ + ship_from_details: Calculation.ShipFromDetails | null; + /** * The shipping cost details for the calculation. */ @@ -202,6 +207,10 @@ declare module 'stripe' { } } + interface ShipFromDetails { + address: Stripe.Address; + } + interface ShippingCost { /** * The shipping amount in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). If `tax_behavior=inclusive`, then this amount includes taxes. Otherwise, taxes were calculated on top of this amount. diff --git a/types/Tax/CalculationsResource.d.ts b/types/Tax/CalculationsResource.d.ts index 83639b59c0..c97b384b52 100644 --- a/types/Tax/CalculationsResource.d.ts +++ b/types/Tax/CalculationsResource.d.ts @@ -29,6 +29,11 @@ declare module 'stripe' { */ expand?: Array; + /** + * Details about the address from which the goods are being shipped. + */ + ship_from_details?: CalculationCreateParams.ShipFromDetails; + /** * Shipping cost details to be used for the calculation. */ @@ -235,6 +240,47 @@ declare module 'stripe' { type TaxBehavior = 'exclusive' | 'inclusive'; } + interface ShipFromDetails { + /** + * The address from which the goods are being shipped from. + */ + address: ShipFromDetails.Address; + } + + namespace ShipFromDetails { + interface Address { + /** + * City, district, suburb, town, or village. + */ + city?: Stripe.Emptyable; + + /** + * Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + */ + country: string; + + /** + * Address line 1 (e.g., street, PO Box, or company name). + */ + line1?: Stripe.Emptyable; + + /** + * Address line 2 (e.g., apartment, suite, unit, or building). + */ + line2?: Stripe.Emptyable; + + /** + * ZIP or postal code. + */ + postal_code?: Stripe.Emptyable; + + /** + * State/province as an [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2) subdivision code, without country prefix. Example: "NY" or "TX". + */ + state?: Stripe.Emptyable; + } + } + interface ShippingCost { /** * A positive integer in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) representing the shipping charge. If `tax_behavior=inclusive`, then this amount includes taxes. Otherwise, taxes are calculated on top of this amount. diff --git a/types/Tax/Registrations.d.ts b/types/Tax/Registrations.d.ts index bdc9dd25f9..0f6646693d 100644 --- a/types/Tax/Registrations.d.ts +++ b/types/Tax/Registrations.d.ts @@ -66,6 +66,8 @@ declare module 'stripe' { bg?: CountryOptions.Bg; + bh?: CountryOptions.Bh; + ca?: CountryOptions.Ca; ch?: CountryOptions.Ch; @@ -84,6 +86,8 @@ declare module 'stripe' { ee?: CountryOptions.Ee; + eg?: CountryOptions.Eg; + es?: CountryOptions.Es; fi?: CountryOptions.Fi; @@ -92,6 +96,8 @@ declare module 'stripe' { gb?: CountryOptions.Gb; + ge?: CountryOptions.Ge; + gr?: CountryOptions.Gr; hr?: CountryOptions.Hr; @@ -108,8 +114,12 @@ declare module 'stripe' { jp?: CountryOptions.Jp; + ke?: CountryOptions.Ke; + kr?: CountryOptions.Kr; + kz?: CountryOptions.Kz; + lt?: CountryOptions.Lt; lu?: CountryOptions.Lu; @@ -122,12 +132,16 @@ declare module 'stripe' { my?: CountryOptions.My; + ng?: CountryOptions.Ng; + nl?: CountryOptions.Nl; no?: CountryOptions.No; nz?: CountryOptions.Nz; + om?: CountryOptions.Om; + pl?: CountryOptions.Pl; pt?: CountryOptions.Pt; @@ -242,6 +256,13 @@ declare module 'stripe' { type Type = 'ioss' | 'oss_non_union' | 'oss_union' | 'standard'; } + interface Bh { + /** + * Type of registration in `country`. + */ + type: 'standard'; + } + interface Ca { province_standard?: Ca.ProvinceStandard; @@ -403,6 +424,13 @@ declare module 'stripe' { type Type = 'ioss' | 'oss_non_union' | 'oss_union' | 'standard'; } + interface Eg { + /** + * Type of registration in `country`. + */ + type: 'simplified'; + } + interface Es { standard?: Es.Standard; @@ -482,6 +510,13 @@ declare module 'stripe' { type: 'standard'; } + interface Ge { + /** + * Type of registration in `country`. + */ + type: 'simplified'; + } + interface Gr { standard?: Gr.Standard; @@ -623,6 +658,13 @@ declare module 'stripe' { type: 'standard'; } + interface Ke { + /** + * Type of registration in `country`. + */ + type: 'simplified'; + } + interface Kr { /** * Type of registration in `country`. @@ -630,6 +672,13 @@ declare module 'stripe' { type: 'simplified'; } + interface Kz { + /** + * Type of registration in `country`. + */ + type: 'simplified'; + } + interface Lt { standard?: Lt.Standard; @@ -740,6 +789,13 @@ declare module 'stripe' { type: 'simplified'; } + interface Ng { + /** + * Type of registration in `country`. + */ + type: 'simplified'; + } + interface Nl { standard?: Nl.Standard; @@ -778,6 +834,13 @@ declare module 'stripe' { type: 'standard'; } + interface Om { + /** + * Type of registration in `country`. + */ + type: 'standard'; + } + interface Pl { standard?: Pl.Standard; diff --git a/types/Tax/RegistrationsResource.d.ts b/types/Tax/RegistrationsResource.d.ts index 7bf586b41d..370e16a8ec 100644 --- a/types/Tax/RegistrationsResource.d.ts +++ b/types/Tax/RegistrationsResource.d.ts @@ -57,6 +57,11 @@ declare module 'stripe' { */ bg?: CountryOptions.Bg; + /** + * Options for the registration in BH. + */ + bh?: CountryOptions.Bh; + /** * Options for the registration in CA. */ @@ -102,6 +107,11 @@ declare module 'stripe' { */ ee?: CountryOptions.Ee; + /** + * Options for the registration in EG. + */ + eg?: CountryOptions.Eg; + /** * Options for the registration in ES. */ @@ -122,6 +132,11 @@ declare module 'stripe' { */ gb?: CountryOptions.Gb; + /** + * Options for the registration in GE. + */ + ge?: CountryOptions.Ge; + /** * Options for the registration in GR. */ @@ -162,11 +177,21 @@ declare module 'stripe' { */ jp?: CountryOptions.Jp; + /** + * Options for the registration in KE. + */ + ke?: CountryOptions.Ke; + /** * Options for the registration in KR. */ kr?: CountryOptions.Kr; + /** + * Options for the registration in KZ. + */ + kz?: CountryOptions.Kz; + /** * Options for the registration in LT. */ @@ -197,6 +222,11 @@ declare module 'stripe' { */ my?: CountryOptions.My; + /** + * Options for the registration in NG. + */ + ng?: CountryOptions.Ng; + /** * Options for the registration in NL. */ @@ -212,6 +242,11 @@ declare module 'stripe' { */ nz?: CountryOptions.Nz; + /** + * Options for the registration in OM. + */ + om?: CountryOptions.Om; + /** * Options for the registration in PL. */ @@ -374,6 +409,13 @@ declare module 'stripe' { type Type = 'ioss' | 'oss_non_union' | 'oss_union' | 'standard'; } + interface Bh { + /** + * Type of registration to be created in `country`. + */ + type: 'standard'; + } + interface Ca { /** * Options for the provincial tax registration. @@ -553,6 +595,13 @@ declare module 'stripe' { type Type = 'ioss' | 'oss_non_union' | 'oss_union' | 'standard'; } + interface Eg { + /** + * Type of registration to be created in `country`. + */ + type: 'simplified'; + } + interface Es { /** * Options for the standard registration. @@ -641,6 +690,13 @@ declare module 'stripe' { type: 'standard'; } + interface Ge { + /** + * Type of registration to be created in `country`. + */ + type: 'simplified'; + } + interface Gr { /** * Options for the standard registration. @@ -797,6 +853,13 @@ declare module 'stripe' { type: 'standard'; } + interface Ke { + /** + * Type of registration to be created in `country`. + */ + type: 'simplified'; + } + interface Kr { /** * Type of registration to be created in `country`. @@ -804,6 +867,13 @@ declare module 'stripe' { type: 'simplified'; } + interface Kz { + /** + * Type of registration to be created in `country`. + */ + type: 'simplified'; + } + interface Lt { /** * Options for the standard registration. @@ -926,6 +996,13 @@ declare module 'stripe' { type: 'simplified'; } + interface Ng { + /** + * Type of registration to be created in `country`. + */ + type: 'simplified'; + } + interface Nl { /** * Options for the standard registration. @@ -967,6 +1044,13 @@ declare module 'stripe' { type: 'standard'; } + interface Om { + /** + * Type of registration to be created in `country`. + */ + type: 'standard'; + } + interface Pl { /** * Options for the standard registration. diff --git a/types/Tax/Transactions.d.ts b/types/Tax/Transactions.d.ts index f175f0866a..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. @@ -61,6 +61,11 @@ declare module 'stripe' { */ reversal: Transaction.Reversal | null; + /** + * The details of the ship from location, such as the address. + */ + ship_from_details: Transaction.ShipFromDetails | null; + /** * The shipping cost details for the transaction. */ @@ -209,6 +214,10 @@ declare module 'stripe' { original_transaction: string | null; } + interface ShipFromDetails { + address: Stripe.Address; + } + interface ShippingCost { /** * The shipping amount in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). If `tax_behavior=inclusive`, then this amount includes taxes. Otherwise, taxes were calculated on top of this amount. 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.