From 194b0382ce9cd2c03f52b18fa7a8ea3cd58d13fb Mon Sep 17 00:00:00 2001 From: Yejia Chen Date: Tue, 9 Aug 2022 15:02:47 -0400 Subject: [PATCH] Codegen for openapi v177 --- OPENAPI_VERSION | 2 +- types/2022-08-01/Accounts.d.ts | 36 ++++++++++++++----- types/2022-08-01/Charges.d.ts | 12 +++++-- types/2022-08-01/CustomerSources.d.ts | 6 +++- types/2022-08-01/Customers.d.ts | 20 ++++++++--- types/2022-08-01/Invoices.d.ts | 20 ++++++++--- types/2022-08-01/Orders.d.ts | 24 ++++++++++--- types/2022-08-01/PaymentIntents.d.ts | 36 +++++++++++++++---- types/2022-08-01/PaymentMethods.d.ts | 12 +++++-- types/2022-08-01/Persons.d.ts | 16 ++++++--- types/2022-08-01/SetupIntents.d.ts | 18 ++++++++-- types/2022-08-01/Sources.d.ts | 12 +++++-- types/2022-08-01/Terminal/Locations.d.ts | 6 +++- types/2022-08-01/Tokens.d.ts | 20 ++++++++--- .../2022-08-01/Treasury/OutboundPayments.d.ts | 6 +++- 15 files changed, 198 insertions(+), 48 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 3d5e0744c5..f0478776cd 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v176 \ No newline at end of file +v177 \ No newline at end of file diff --git a/types/2022-08-01/Accounts.d.ts b/types/2022-08-01/Accounts.d.ts index 1d21c0a39d..5fb0856d3b 100644 --- a/types/2022-08-01/Accounts.d.ts +++ b/types/2022-08-01/Accounts.d.ts @@ -1237,7 +1237,7 @@ declare module 'stripe' { /** * A publicly available mailing address for sending support issues to. */ - support_address?: Stripe.AddressParam; + support_address?: BusinessProfile.SupportAddress; /** * A publicly available email address for sending support issues to. @@ -1260,6 +1260,10 @@ declare module 'stripe' { url?: string; } + namespace BusinessProfile { + type SupportAddress = Stripe.AddressParam; + } + type BusinessType = | 'company' | 'government_entity' @@ -1670,7 +1674,7 @@ declare module 'stripe' { /** * The company's primary address. */ - address?: Stripe.AddressParam; + address?: Company.Address; /** * The Kana variation of the company's primary address (Japan only). @@ -1754,6 +1758,8 @@ declare module 'stripe' { } namespace Company { + type Address = Stripe.AddressParam; + interface OwnershipDeclaration { /** * The Unix timestamp marking when the beneficial owner attestation was made. @@ -1944,7 +1950,7 @@ declare module 'stripe' { /** * The individual's primary address. */ - address?: Stripe.AddressParam; + address?: Individual.Address; /** * The Kana variation of the the individual's primary address (Japan only). @@ -2039,7 +2045,7 @@ declare module 'stripe' { /** * The individual's registered address. */ - registered_address?: Stripe.AddressParam; + registered_address?: Individual.RegisteredAddress; /** * The last four digits of the individual's Social Security Number (U.S. only). @@ -2053,6 +2059,8 @@ declare module 'stripe' { } namespace Individual { + type Address = Stripe.AddressParam; + interface Dob { /** * The day of birth, between 1 and 31. @@ -2072,6 +2080,8 @@ declare module 'stripe' { type PoliticalExposure = 'existing' | 'none'; + type RegisteredAddress = Stripe.AddressParam; + interface Verification { /** * A document showing address, either a passport, local ID card, or utility bill from a well-known utility company. @@ -2452,7 +2462,7 @@ declare module 'stripe' { /** * A publicly available mailing address for sending support issues to. */ - support_address?: Stripe.AddressParam; + support_address?: BusinessProfile.SupportAddress; /** * A publicly available email address for sending support issues to. @@ -2475,6 +2485,10 @@ declare module 'stripe' { url?: string; } + namespace BusinessProfile { + type SupportAddress = Stripe.AddressParam; + } + type BusinessType = | 'company' | 'government_entity' @@ -2885,7 +2899,7 @@ declare module 'stripe' { /** * The company's primary address. */ - address?: Stripe.AddressParam; + address?: Company.Address; /** * The Kana variation of the company's primary address (Japan only). @@ -2969,6 +2983,8 @@ declare module 'stripe' { } namespace Company { + type Address = Stripe.AddressParam; + interface OwnershipDeclaration { /** * The Unix timestamp marking when the beneficial owner attestation was made. @@ -3122,7 +3138,7 @@ declare module 'stripe' { /** * The individual's primary address. */ - address?: Stripe.AddressParam; + address?: Individual.Address; /** * The Kana variation of the the individual's primary address (Japan only). @@ -3217,7 +3233,7 @@ declare module 'stripe' { /** * The individual's registered address. */ - registered_address?: Stripe.AddressParam; + registered_address?: Individual.RegisteredAddress; /** * The last four digits of the individual's Social Security Number (U.S. only). @@ -3231,6 +3247,8 @@ declare module 'stripe' { } namespace Individual { + type Address = Stripe.AddressParam; + interface Dob { /** * The day of birth, between 1 and 31. @@ -3250,6 +3268,8 @@ declare module 'stripe' { type PoliticalExposure = 'existing' | 'none'; + type RegisteredAddress = Stripe.AddressParam; + interface Verification { /** * A document showing address, either a passport, local ID card, or utility bill from a well-known utility company. diff --git a/types/2022-08-01/Charges.d.ts b/types/2022-08-01/Charges.d.ts index 645135cd66..224075d6f0 100644 --- a/types/2022-08-01/Charges.d.ts +++ b/types/2022-08-01/Charges.d.ts @@ -1895,7 +1895,7 @@ declare module 'stripe' { /** * Shipping address. */ - address: Stripe.AddressParam; + address: Shipping.Address; /** * The delivery service that shipped a physical product, such as Fedex, UPS, USPS, etc. @@ -1918,6 +1918,10 @@ declare module 'stripe' { tracking_number?: string; } + namespace Shipping { + type Address = Stripe.AddressParam; + } + interface TransferData { /** * The amount transferred to the destination account, if specified. By default, the entire charge amount is transferred to the destination account. @@ -1996,7 +2000,7 @@ declare module 'stripe' { /** * Shipping address. */ - address: Stripe.AddressParam; + address: Shipping.Address; /** * The delivery service that shipped a physical product, such as Fedex, UPS, USPS, etc. @@ -2018,6 +2022,10 @@ declare module 'stripe' { */ tracking_number?: string; } + + namespace Shipping { + type Address = Stripe.AddressParam; + } } interface ChargeListParams extends PaginationParams { diff --git a/types/2022-08-01/CustomerSources.d.ts b/types/2022-08-01/CustomerSources.d.ts index d0bd884645..035f9ada9c 100644 --- a/types/2022-08-01/CustomerSources.d.ts +++ b/types/2022-08-01/CustomerSources.d.ts @@ -104,7 +104,7 @@ declare module 'stripe' { /** * Owner's address. */ - address?: Stripe.AddressParam; + address?: Owner.Address; /** * Owner's email address. @@ -121,6 +121,10 @@ declare module 'stripe' { */ phone?: string; } + + namespace Owner { + type Address = Stripe.AddressParam; + } } interface CustomerSourceListParams extends PaginationParams { diff --git a/types/2022-08-01/Customers.d.ts b/types/2022-08-01/Customers.d.ts index c8151a1b52..04622e87b5 100644 --- a/types/2022-08-01/Customers.d.ts +++ b/types/2022-08-01/Customers.d.ts @@ -294,7 +294,7 @@ declare module 'stripe' { /** * The customer's address. */ - address?: Stripe.Emptyable; + address?: Stripe.Emptyable; /** * An integer amount in cents (or local equivalent) that represents the customer's current balance, which affect the customer's future invoices. A negative amount represents a credit that decreases the amount due on an invoice; a positive amount increases the amount due on an invoice. @@ -396,6 +396,8 @@ declare module 'stripe' { } namespace CustomerCreateParams { + type Address = Stripe.AddressParam; + interface CashBalance { /** * Settings controlling the behavior of the customer's cash balance, @@ -470,7 +472,7 @@ declare module 'stripe' { /** * Customer shipping address. */ - address: Stripe.AddressParam; + address: Shipping.Address; /** * Customer name. @@ -483,6 +485,10 @@ declare module 'stripe' { phone?: string; } + namespace Shipping { + type Address = Stripe.AddressParam; + } + interface Tax { /** * A recent IP address of the customer used for tax reporting and tax location inference. Stripe recommends updating the IP address when a new PaymentMethod is attached or the address field on the customer is updated. We recommend against updating this field more frequently since it could result in unexpected tax location/reporting outcomes. @@ -566,7 +572,7 @@ declare module 'stripe' { /** * The customer's address. */ - address?: Stripe.Emptyable; + address?: Stripe.Emptyable; /** * An integer amount in cents (or local equivalent) that represents the customer's current balance, which affect the customer's future invoices. A negative amount represents a credit that decreases the amount due on an invoice; a positive amount increases the amount due on an invoice. @@ -665,6 +671,8 @@ declare module 'stripe' { } namespace CustomerUpdateParams { + type Address = Stripe.AddressParam; + interface CashBalance { /** * Settings controlling the behavior of the customer's cash balance, @@ -739,7 +747,7 @@ declare module 'stripe' { /** * Customer shipping address. */ - address: Stripe.AddressParam; + address: Shipping.Address; /** * Customer name. @@ -752,6 +760,10 @@ declare module 'stripe' { phone?: string; } + namespace Shipping { + type Address = Stripe.AddressParam; + } + interface Tax { /** * A recent IP address of the customer used for tax reporting and tax location inference. Stripe recommends updating the IP address when a new PaymentMethod is attached or the address field on the customer is updated. We recommend against updating this field more frequently since it could result in unexpected tax location/reporting outcomes. diff --git a/types/2022-08-01/Invoices.d.ts b/types/2022-08-01/Invoices.d.ts index bf36d26427..647a8acf78 100644 --- a/types/2022-08-01/Invoices.d.ts +++ b/types/2022-08-01/Invoices.d.ts @@ -1950,7 +1950,7 @@ declare module 'stripe' { /** * The customer's address. */ - address?: Stripe.Emptyable; + address?: Stripe.Emptyable; /** * The customer's shipping information. Appears on invoices emailed to this customer. @@ -1974,11 +1974,13 @@ declare module 'stripe' { } namespace CustomerDetails { + type Address = Stripe.AddressParam; + interface Shipping { /** * Customer shipping address. */ - address: Stripe.AddressParam; + address: Shipping.Address; /** * Customer name. @@ -1991,6 +1993,10 @@ declare module 'stripe' { phone?: string; } + namespace Shipping { + type Address = Stripe.AddressParam; + } + interface Tax { /** * A recent IP address of the customer used for tax reporting and tax location inference. Stripe recommends updating the IP address when a new PaymentMethod is attached or the address field on the customer is updated. We recommend against updating this field more frequently since it could result in unexpected tax location/reporting outcomes. @@ -2498,7 +2504,7 @@ declare module 'stripe' { /** * The customer's address. */ - address?: Stripe.Emptyable; + address?: Stripe.Emptyable; /** * The customer's shipping information. Appears on invoices emailed to this customer. @@ -2522,11 +2528,13 @@ declare module 'stripe' { } namespace CustomerDetails { + type Address = Stripe.AddressParam; + interface Shipping { /** * Customer shipping address. */ - address: Stripe.AddressParam; + address: Shipping.Address; /** * Customer name. @@ -2539,6 +2547,10 @@ declare module 'stripe' { phone?: string; } + namespace Shipping { + type Address = Stripe.AddressParam; + } + interface Tax { /** * A recent IP address of the customer used for tax reporting and tax location inference. Stripe recommends updating the IP address when a new PaymentMethod is attached or the address field on the customer is updated. We recommend against updating this field more frequently since it could result in unexpected tax location/reporting outcomes. diff --git a/types/2022-08-01/Orders.d.ts b/types/2022-08-01/Orders.d.ts index 8c36cd00fc..75b2522030 100644 --- a/types/2022-08-01/Orders.d.ts +++ b/types/2022-08-01/Orders.d.ts @@ -977,7 +977,7 @@ declare module 'stripe' { /** * The billing address provided by the customer. */ - address?: Stripe.AddressParam; + address?: BillingDetails.Address; /** * The billing email provided by the customer. @@ -995,6 +995,10 @@ declare module 'stripe' { phone?: string; } + namespace BillingDetails { + type Address = Stripe.AddressParam; + } + interface Discount { /** * ID of the coupon to create a new discount for. @@ -1940,7 +1944,7 @@ declare module 'stripe' { /** * The shipping address for the order. */ - address: Stripe.AddressParam; + address: ShippingDetails.Address; /** * The name of the recipient of the order. @@ -1953,6 +1957,10 @@ declare module 'stripe' { phone?: string; } + namespace ShippingDetails { + type Address = Stripe.AddressParam; + } + interface TaxDetails { /** * The purchaser's tax exemption status. One of `none`, `exempt`, or `reverse`. @@ -2123,7 +2131,7 @@ declare module 'stripe' { /** * The billing address provided by the customer. */ - address?: Stripe.AddressParam; + address?: BillingDetails.Address; /** * The billing email provided by the customer. @@ -2141,6 +2149,10 @@ declare module 'stripe' { phone?: string; } + namespace BillingDetails { + type Address = Stripe.AddressParam; + } + interface Discount { /** * ID of the coupon to create a new discount for. @@ -3095,7 +3107,7 @@ declare module 'stripe' { /** * The shipping address for the order. */ - address: Stripe.AddressParam; + address: ShippingDetails.Address; /** * The name of the recipient of the order. @@ -3108,6 +3120,10 @@ declare module 'stripe' { phone?: string; } + namespace ShippingDetails { + type Address = Stripe.AddressParam; + } + interface TaxDetails { /** * The purchaser's tax exemption status. One of `none`, `exempt`, or `reverse`. diff --git a/types/2022-08-01/PaymentIntents.d.ts b/types/2022-08-01/PaymentIntents.d.ts index ec91244390..5d1146b348 100644 --- a/types/2022-08-01/PaymentIntents.d.ts +++ b/types/2022-08-01/PaymentIntents.d.ts @@ -2171,7 +2171,7 @@ declare module 'stripe' { /** * Billing address. */ - address?: Stripe.Emptyable; + address?: Stripe.Emptyable; /** * Email address. @@ -2189,6 +2189,10 @@ declare module 'stripe' { phone?: string; } + namespace BillingDetails { + type Address = Stripe.AddressParam; + } + interface Blik {} interface Boleto { @@ -3501,7 +3505,7 @@ declare module 'stripe' { /** * Shipping address. */ - address: Stripe.AddressParam; + address: Shipping.Address; /** * The delivery service that shipped a physical product, such as Fedex, UPS, USPS, etc. @@ -3524,6 +3528,10 @@ declare module 'stripe' { tracking_number?: string; } + namespace Shipping { + type Address = Stripe.AddressParam; + } + interface TransferData { /** * The amount that will be transferred automatically when a charge succeeds. @@ -3883,7 +3891,7 @@ declare module 'stripe' { /** * Billing address. */ - address?: Stripe.Emptyable; + address?: Stripe.Emptyable; /** * Email address. @@ -3901,6 +3909,10 @@ declare module 'stripe' { phone?: string; } + namespace BillingDetails { + type Address = Stripe.AddressParam; + } + interface Blik {} interface Boleto { @@ -5206,7 +5218,7 @@ declare module 'stripe' { /** * Shipping address. */ - address: Stripe.AddressParam; + address: Shipping.Address; /** * The delivery service that shipped a physical product, such as Fedex, UPS, USPS, etc. @@ -5229,6 +5241,10 @@ declare module 'stripe' { tracking_number?: string; } + namespace Shipping { + type Address = Stripe.AddressParam; + } + interface TransferData { /** * The amount that will be transferred automatically when a charge succeeds. @@ -5730,7 +5746,7 @@ declare module 'stripe' { /** * Billing address. */ - address?: Stripe.Emptyable; + address?: Stripe.Emptyable; /** * Email address. @@ -5748,6 +5764,10 @@ declare module 'stripe' { phone?: string; } + namespace BillingDetails { + type Address = Stripe.AddressParam; + } + interface Blik {} interface Boleto { @@ -7060,7 +7080,7 @@ declare module 'stripe' { /** * Shipping address. */ - address: Stripe.AddressParam; + address: Shipping.Address; /** * The delivery service that shipped a physical product, such as Fedex, UPS, USPS, etc. @@ -7082,6 +7102,10 @@ declare module 'stripe' { */ tracking_number?: string; } + + namespace Shipping { + type Address = Stripe.AddressParam; + } } interface PaymentIntentIncrementAuthorizationParams { diff --git a/types/2022-08-01/PaymentMethods.d.ts b/types/2022-08-01/PaymentMethods.d.ts index 0022efe622..73d73e64b9 100644 --- a/types/2022-08-01/PaymentMethods.d.ts +++ b/types/2022-08-01/PaymentMethods.d.ts @@ -1008,7 +1008,7 @@ declare module 'stripe' { /** * Billing address. */ - address?: Stripe.Emptyable; + address?: Stripe.Emptyable; /** * Email address. @@ -1026,6 +1026,10 @@ declare module 'stripe' { phone?: string; } + namespace BillingDetails { + type Address = Stripe.AddressParam; + } + interface Blik {} interface Boleto { @@ -1414,7 +1418,7 @@ declare module 'stripe' { /** * Billing address. */ - address?: Stripe.Emptyable; + address?: Stripe.Emptyable; /** * Email address. @@ -1432,6 +1436,10 @@ declare module 'stripe' { phone?: string; } + namespace BillingDetails { + type Address = Stripe.AddressParam; + } + interface Blik {} interface Card { diff --git a/types/2022-08-01/Persons.d.ts b/types/2022-08-01/Persons.d.ts index 122c1b3eff..ea20553c97 100644 --- a/types/2022-08-01/Persons.d.ts +++ b/types/2022-08-01/Persons.d.ts @@ -591,7 +591,7 @@ declare module 'stripe' { /** * The person's address. */ - address?: Stripe.AddressParam; + address?: PersonCreateParams.Address; /** * The Kana variation of the person's address (Japan only). @@ -706,7 +706,7 @@ declare module 'stripe' { /** * The person's registered address. */ - registered_address?: Stripe.AddressParam; + registered_address?: PersonCreateParams.RegisteredAddress; /** * The relationship that this person has with the account's legal entity. @@ -725,6 +725,8 @@ declare module 'stripe' { } namespace PersonCreateParams { + type Address = Stripe.AddressParam; + interface Dob { /** * The day of birth, between 1 and 31. @@ -782,6 +784,8 @@ declare module 'stripe' { } } + type RegisteredAddress = Stripe.AddressParam; + interface Relationship { /** * Whether the person is a director of the account's legal entity. Directors are typically members of the governing board of the company, or responsible for ensuring the company meets its regulatory obligations. @@ -864,7 +868,7 @@ declare module 'stripe' { /** * The person's address. */ - address?: Stripe.AddressParam; + address?: PersonUpdateParams.Address; /** * The Kana variation of the person's address (Japan only). @@ -979,7 +983,7 @@ declare module 'stripe' { /** * The person's registered address. */ - registered_address?: Stripe.AddressParam; + registered_address?: PersonUpdateParams.RegisteredAddress; /** * The relationship that this person has with the account's legal entity. @@ -998,6 +1002,8 @@ declare module 'stripe' { } namespace PersonUpdateParams { + type Address = Stripe.AddressParam; + interface Dob { /** * The day of birth, between 1 and 31. @@ -1055,6 +1061,8 @@ declare module 'stripe' { } } + type RegisteredAddress = Stripe.AddressParam; + interface Relationship { /** * Whether the person is a director of the account's legal entity. Directors are typically members of the governing board of the company, or responsible for ensuring the company meets its regulatory obligations. diff --git a/types/2022-08-01/SetupIntents.d.ts b/types/2022-08-01/SetupIntents.d.ts index 40d5a4eeed..e7f2f4c7c3 100644 --- a/types/2022-08-01/SetupIntents.d.ts +++ b/types/2022-08-01/SetupIntents.d.ts @@ -916,7 +916,7 @@ declare module 'stripe' { /** * Billing address. */ - address?: Stripe.Emptyable; + address?: Stripe.Emptyable; /** * Email address. @@ -934,6 +934,10 @@ declare module 'stripe' { phone?: string; } + namespace BillingDetails { + type Address = Stripe.AddressParam; + } + interface Blik {} interface Boleto { @@ -1765,7 +1769,7 @@ declare module 'stripe' { /** * Billing address. */ - address?: Stripe.Emptyable; + address?: Stripe.Emptyable; /** * Email address. @@ -1783,6 +1787,10 @@ declare module 'stripe' { phone?: string; } + namespace BillingDetails { + type Address = Stripe.AddressParam; + } + interface Blik {} interface Boleto { @@ -2696,7 +2704,7 @@ declare module 'stripe' { /** * Billing address. */ - address?: Stripe.Emptyable; + address?: Stripe.Emptyable; /** * Email address. @@ -2714,6 +2722,10 @@ declare module 'stripe' { phone?: string; } + namespace BillingDetails { + type Address = Stripe.AddressParam; + } + interface Blik {} interface Boleto { diff --git a/types/2022-08-01/Sources.d.ts b/types/2022-08-01/Sources.d.ts index 20864d8718..427f980022 100644 --- a/types/2022-08-01/Sources.d.ts +++ b/types/2022-08-01/Sources.d.ts @@ -915,7 +915,7 @@ declare module 'stripe' { /** * Owner's address. */ - address?: Stripe.AddressParam; + address?: Owner.Address; /** * Owner's email address. @@ -933,6 +933,10 @@ declare module 'stripe' { phone?: string; } + namespace Owner { + type Address = Stripe.AddressParam; + } + interface Receiver { /** * The method Stripe should use to request information needed to process a refund or mispayment. Either `email` (an email is sent directly to the customer) or `manual` (a `source.refund_attributes_required` event is sent to your webhooks endpoint). Refer to each payment method's documentation to learn which refund attributes may be required. @@ -1173,7 +1177,7 @@ declare module 'stripe' { /** * Owner's address. */ - address?: Stripe.AddressParam; + address?: Owner.Address; /** * Owner's email address. @@ -1191,6 +1195,10 @@ declare module 'stripe' { phone?: string; } + namespace Owner { + type Address = Stripe.AddressParam; + } + interface SourceOrder { /** * List of items constituting the order. diff --git a/types/2022-08-01/Terminal/Locations.d.ts b/types/2022-08-01/Terminal/Locations.d.ts index 41a2daae37..ab81637fac 100644 --- a/types/2022-08-01/Terminal/Locations.d.ts +++ b/types/2022-08-01/Terminal/Locations.d.ts @@ -134,7 +134,7 @@ declare module 'stripe' { /** * The full address of the location. */ - address?: Stripe.AddressParam; + address?: LocationUpdateParams.Address; /** * The ID of a configuration that will be used to customize all readers in this location. @@ -157,6 +157,10 @@ declare module 'stripe' { metadata?: Stripe.Emptyable; } + namespace LocationUpdateParams { + type Address = Stripe.AddressParam; + } + interface LocationListParams extends PaginationParams { /** * Specifies which fields in the response should be expanded. diff --git a/types/2022-08-01/Tokens.d.ts b/types/2022-08-01/Tokens.d.ts index 1592dcdaef..3279630414 100644 --- a/types/2022-08-01/Tokens.d.ts +++ b/types/2022-08-01/Tokens.d.ts @@ -135,7 +135,7 @@ declare module 'stripe' { /** * The company's primary address. */ - address?: Stripe.AddressParam; + address?: Company.Address; /** * The Kana variation of the company's primary address (Japan only). @@ -224,6 +224,8 @@ declare module 'stripe' { } namespace Company { + type Address = Stripe.AddressParam; + interface OwnershipDeclaration { /** * The Unix timestamp marking when the beneficial owner attestation was made. @@ -289,7 +291,7 @@ declare module 'stripe' { /** * The individual's primary address. */ - address?: Stripe.AddressParam; + address?: Individual.Address; /** * The Kana variation of the the individual's primary address (Japan only). @@ -384,7 +386,7 @@ declare module 'stripe' { /** * The individual's registered address. */ - registered_address?: Stripe.AddressParam; + registered_address?: Individual.RegisteredAddress; /** * The last four digits of the individual's Social Security Number (U.S. only). @@ -398,6 +400,8 @@ declare module 'stripe' { } namespace Individual { + type Address = Stripe.AddressParam; + interface Dob { /** * The day of birth, between 1 and 31. @@ -417,6 +421,8 @@ declare module 'stripe' { type PoliticalExposure = 'existing' | 'none'; + type RegisteredAddress = Stripe.AddressParam; + interface Verification { /** * A document showing address, either a passport, local ID card, or utility bill from a well-known utility company. @@ -537,7 +543,7 @@ declare module 'stripe' { /** * The person's address. */ - address?: Stripe.AddressParam; + address?: Person.Address; /** * The Kana variation of the person's address (Japan only). @@ -642,7 +648,7 @@ declare module 'stripe' { /** * The person's registered address. */ - registered_address?: Stripe.AddressParam; + registered_address?: Person.RegisteredAddress; /** * The relationship that this person has with the account's legal entity. @@ -661,6 +667,8 @@ declare module 'stripe' { } namespace Person { + type Address = Stripe.AddressParam; + interface Dob { /** * The day of birth, between 1 and 31. @@ -718,6 +726,8 @@ declare module 'stripe' { } } + type RegisteredAddress = Stripe.AddressParam; + interface Relationship { /** * Whether the person is a director of the account's legal entity. Directors are typically members of the governing board of the company, or responsible for ensuring the company meets its regulatory obligations. diff --git a/types/2022-08-01/Treasury/OutboundPayments.d.ts b/types/2022-08-01/Treasury/OutboundPayments.d.ts index 43782fa09d..3c28b2556b 100644 --- a/types/2022-08-01/Treasury/OutboundPayments.d.ts +++ b/types/2022-08-01/Treasury/OutboundPayments.d.ts @@ -362,7 +362,7 @@ declare module 'stripe' { /** * Billing address. */ - address?: Stripe.Emptyable; + address?: Stripe.Emptyable; /** * Email address. @@ -380,6 +380,10 @@ declare module 'stripe' { phone?: string; } + namespace BillingDetails { + type Address = Stripe.AddressParam; + } + type Type = 'financial_account' | 'us_bank_account'; interface UsBankAccount {