Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API Updates #1571

Merged
merged 1 commit into from
Oct 6, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v197
v201
2 changes: 2 additions & 0 deletions types/2022-08-01/Accounts.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -708,6 +708,7 @@ declare module 'stripe' {
namespace Error {
type Code =
| 'invalid_address_city_state_postal_code'
| 'invalid_dob_age_under_18'
| 'invalid_street_address'
| 'invalid_tos_acceptance'
| 'invalid_value_other'
Expand Down Expand Up @@ -831,6 +832,7 @@ declare module 'stripe' {
namespace Error {
type Code =
| 'invalid_address_city_state_postal_code'
| 'invalid_dob_age_under_18'
| 'invalid_street_address'
| 'invalid_tos_acceptance'
| 'invalid_value_other'
Expand Down
2 changes: 2 additions & 0 deletions types/2022-08-01/Capabilities.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ declare module 'stripe' {
namespace Error {
type Code =
| 'invalid_address_city_state_postal_code'
| 'invalid_dob_age_under_18'
| 'invalid_street_address'
| 'invalid_tos_acceptance'
| 'invalid_value_other'
Expand Down Expand Up @@ -248,6 +249,7 @@ declare module 'stripe' {
namespace Error {
type Code =
| 'invalid_address_city_state_postal_code'
| 'invalid_dob_age_under_18'
| 'invalid_street_address'
| 'invalid_tos_acceptance'
| 'invalid_value_other'
Expand Down
3 changes: 2 additions & 1 deletion types/2022-08-01/Charges.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1178,7 +1178,7 @@ declare module 'stripe' {
account_holder_type: Fpx.AccountHolderType | null;

/**
* The customer's bank. Can be one of `affin_bank`, `agrobank`, `alliance_bank`, `ambank`, `bank_islam`, `bank_muamalat`, `bank_rakyat`, `bsn`, `cimb`, `hong_leong_bank`, `hsbc`, `kfh`, `maybank2u`, `ocbc`, `public_bank`, `rhb`, `standard_chartered`, `uob`, `deutsche_bank`, `maybank2e`, or `pb_enterprise`.
* The customer's bank. Can be one of `affin_bank`, `agrobank`, `alliance_bank`, `ambank`, `bank_islam`, `bank_muamalat`, `bank_rakyat`, `bsn`, `cimb`, `hong_leong_bank`, `hsbc`, `kfh`, `maybank2u`, `ocbc`, `public_bank`, `rhb`, `standard_chartered`, `uob`, `deutsche_bank`, `maybank2e`, `pb_enterprise`, or `bank_of_china`.
*/
bank: Fpx.Bank;

Expand All @@ -1198,6 +1198,7 @@ declare module 'stripe' {
| 'ambank'
| 'bank_islam'
| 'bank_muamalat'
| 'bank_of_china'
| 'bank_rakyat'
| 'bsn'
| 'cimb'
Expand Down
4 changes: 2 additions & 2 deletions types/2022-08-01/Customers.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ declare module 'stripe' {
balance: number;

/**
* The current funds being held by Stripe on behalf of the customer. These funds can be applied towards payment intents with source "cash_balance".The settings[reconciliation_mode] field describes whether these funds are applied to such payment intents manually or automatically.
* The current funds being held by Stripe on behalf of the customer. These funds can be applied towards payment intents with source "cash_balance". The settings[reconciliation_mode] field describes whether these funds are applied to such payment intents manually or automatically.
*/
cash_balance?: Stripe.CashBalance | null;

Expand Down Expand Up @@ -75,7 +75,7 @@ declare module 'stripe' {
email: string | null;

/**
* The current multi-currency balances, if any, being stored on the customer.If positive in a currency, the customer has a credit to apply to their next invoice denominated in that currency.If negative, the customer has an amount owed that will be added to their next invoice denominated in that currency. These balances do not refer to any unpaid invoices.They solely track amounts that have yet to be successfully applied to any invoice. A balance in a particular currency is only applied to any invoice as an invoice in that currency is finalized.
* The current multi-currency balances, if any, being stored on the customer. If positive in a currency, the customer has a credit to apply to their next invoice denominated in that currency. If negative, the customer has an amount owed that will be added to their next invoice denominated in that currency. These balances do not refer to any unpaid invoices. They solely track amounts that have yet to be successfully applied to any invoice. A balance in a particular currency is only applied to any invoice as an invoice in that currency is finalized.
*/
invoice_credit_balance?: {
[key: string]: number;
Expand Down
2 changes: 1 addition & 1 deletion types/2022-08-01/Invoices.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ declare module 'stripe' {
rendering_options: Invoice.RenderingOptions | null;

/**
* Starting customer balance before the invoice is finalized. If the invoice has not been finalized yet, this will be the current customer balance.
* Starting customer balance before the invoice is finalized. If the invoice has not been finalized yet, this will be the current customer balance. For revision invoices, this also includes any customer balance that was applied to the original invoice.
*/
starting_balance: number;

Expand Down
3 changes: 3 additions & 0 deletions types/2022-08-01/PaymentIntents.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2328,6 +2328,7 @@ declare module 'stripe' {
| 'ambank'
| 'bank_islam'
| 'bank_muamalat'
| 'bank_of_china'
| 'bank_rakyat'
| 'bsn'
| 'cimb'
Expand Down Expand Up @@ -4085,6 +4086,7 @@ declare module 'stripe' {
| 'ambank'
| 'bank_islam'
| 'bank_muamalat'
| 'bank_of_china'
| 'bank_rakyat'
| 'bsn'
| 'cimb'
Expand Down Expand Up @@ -5977,6 +5979,7 @@ declare module 'stripe' {
| 'ambank'
| 'bank_islam'
| 'bank_muamalat'
| 'bank_of_china'
| 'bank_rakyat'
| 'bsn'
| 'cimb'
Expand Down
4 changes: 3 additions & 1 deletion types/2022-08-01/PaymentMethods.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ declare module 'stripe' {
account_holder_type: Fpx.AccountHolderType | null;

/**
* The customer's bank, if provided. Can be one of `affin_bank`, `agrobank`, `alliance_bank`, `ambank`, `bank_islam`, `bank_muamalat`, `bank_rakyat`, `bsn`, `cimb`, `hong_leong_bank`, `hsbc`, `kfh`, `maybank2u`, `ocbc`, `public_bank`, `rhb`, `standard_chartered`, `uob`, `deutsche_bank`, `maybank2e`, or `pb_enterprise`.
* The customer's bank, if provided. Can be one of `affin_bank`, `agrobank`, `alliance_bank`, `ambank`, `bank_islam`, `bank_muamalat`, `bank_rakyat`, `bsn`, `cimb`, `hong_leong_bank`, `hsbc`, `kfh`, `maybank2u`, `ocbc`, `public_bank`, `rhb`, `standard_chartered`, `uob`, `deutsche_bank`, `maybank2e`, `pb_enterprise`, or `bank_of_china`.
*/
bank: Fpx.Bank;
}
Expand All @@ -477,6 +477,7 @@ declare module 'stripe' {
| 'ambank'
| 'bank_islam'
| 'bank_muamalat'
| 'bank_of_china'
| 'bank_rakyat'
| 'bsn'
| 'cimb'
Expand Down Expand Up @@ -1139,6 +1140,7 @@ declare module 'stripe' {
| 'ambank'
| 'bank_islam'
| 'bank_muamalat'
| 'bank_of_china'
| 'bank_rakyat'
| 'bsn'
| 'cimb'
Expand Down
2 changes: 2 additions & 0 deletions types/2022-08-01/Persons.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,7 @@ declare module 'stripe' {
namespace Error {
type Code =
| 'invalid_address_city_state_postal_code'
| 'invalid_dob_age_under_18'
| 'invalid_street_address'
| 'invalid_tos_acceptance'
| 'invalid_value_other'
Expand Down Expand Up @@ -453,6 +454,7 @@ declare module 'stripe' {
namespace Error {
type Code =
| 'invalid_address_city_state_postal_code'
| 'invalid_dob_age_under_18'
| 'invalid_street_address'
| 'invalid_tos_acceptance'
| 'invalid_value_other'
Expand Down
6 changes: 3 additions & 3 deletions types/2022-08-01/Quotes.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ declare module 'stripe' {
automatic_tax: Quote.AutomaticTax;

/**
* Either `charge_automatically`, or `send_invoice`. When charging automatically, Stripe will attempt to pay invoices at the end of the subscription cycle or on finalization using the default payment method attached to the subscription or customer. When sending an invoice, Stripe will email your customer an invoice with payment instructions. Defaults to `charge_automatically`.
* Either `charge_automatically`, or `send_invoice`. When charging automatically, Stripe will attempt to pay invoices at the end of the subscription cycle or on finalization using the default payment method attached to the subscription or customer. When sending an invoice, Stripe will email your customer an invoice with payment instructions and mark the subscription as `active`. Defaults to `charge_automatically`.
*/
collection_method: Quote.CollectionMethod;

Expand Down Expand Up @@ -533,7 +533,7 @@ declare module 'stripe' {
automatic_tax?: QuoteCreateParams.AutomaticTax;

/**
* Either `charge_automatically`, or `send_invoice`. When charging automatically, Stripe will attempt to pay invoices at the end of the subscription cycle or at invoice finalization using the default payment method attached to the subscription or customer. When sending an invoice, Stripe will email your customer an invoice with payment instructions. Defaults to `charge_automatically`.
* Either `charge_automatically`, or `send_invoice`. When charging automatically, Stripe will attempt to pay invoices at the end of the subscription cycle or at invoice finalization using the default payment method attached to the subscription or customer. When sending an invoice, Stripe will email your customer an invoice with payment instructions and mark the subscription as `active`. Defaults to `charge_automatically`.
*/
collection_method?: QuoteCreateParams.CollectionMethod;

Expand Down Expand Up @@ -794,7 +794,7 @@ declare module 'stripe' {
automatic_tax?: QuoteUpdateParams.AutomaticTax;

/**
* Either `charge_automatically`, or `send_invoice`. When charging automatically, Stripe will attempt to pay invoices at the end of the subscription cycle or at invoice finalization using the default payment method attached to the subscription or customer. When sending an invoice, Stripe will email your customer an invoice with payment instructions. Defaults to `charge_automatically`.
* Either `charge_automatically`, or `send_invoice`. When charging automatically, Stripe will attempt to pay invoices at the end of the subscription cycle or at invoice finalization using the default payment method attached to the subscription or customer. When sending an invoice, Stripe will email your customer an invoice with payment instructions and mark the subscription as `active`. Defaults to `charge_automatically`.
*/
collection_method?: QuoteUpdateParams.CollectionMethod;

Expand Down
3 changes: 3 additions & 0 deletions types/2022-08-01/Reporting/ReportRuns.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,7 @@ declare module 'stripe' {
| 'America/North_Dakota/Beulah'
| 'America/North_Dakota/Center'
| 'America/North_Dakota/New_Salem'
| 'America/Nuuk'
| 'America/Ojinaga'
| 'America/Panama'
| 'America/Pangnirtung'
Expand Down Expand Up @@ -657,6 +658,7 @@ declare module 'stripe' {
| 'Europe/Kaliningrad'
| 'Europe/Kiev'
| 'Europe/Kirov'
| 'Europe/Kyiv'
| 'Europe/Lisbon'
| 'Europe/Ljubljana'
| 'Europe/London'
Expand Down Expand Up @@ -752,6 +754,7 @@ declare module 'stripe' {
| 'Pacific/Guam'
| 'Pacific/Honolulu'
| 'Pacific/Johnston'
| 'Pacific/Kanton'
| 'Pacific/Kiritimati'
| 'Pacific/Kosrae'
| 'Pacific/Kwajalein'
Expand Down
4 changes: 4 additions & 0 deletions types/2022-08-01/SetupAttempts.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,8 @@ declare module 'stripe' {

ideal?: PaymentMethodDetails.Ideal;

klarna?: PaymentMethodDetails.Klarna;

link?: PaymentMethodDetails.Link;

sepa_debit?: PaymentMethodDetails.SepaDebit;
Expand Down Expand Up @@ -309,6 +311,8 @@ declare module 'stripe' {
| 'TRIONL2U';
}

interface Klarna {}

interface Link {}

interface SepaDebit {}
Expand Down
3 changes: 3 additions & 0 deletions types/2022-08-01/SetupIntents.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1032,6 +1032,7 @@ declare module 'stripe' {
| 'ambank'
| 'bank_islam'
| 'bank_muamalat'
| 'bank_of_china'
| 'bank_rakyat'
| 'bsn'
| 'cimb'
Expand Down Expand Up @@ -1907,6 +1908,7 @@ declare module 'stripe' {
| 'ambank'
| 'bank_islam'
| 'bank_muamalat'
| 'bank_of_china'
| 'bank_rakyat'
| 'bsn'
| 'cimb'
Expand Down Expand Up @@ -2864,6 +2866,7 @@ declare module 'stripe' {
| 'ambank'
| 'bank_islam'
| 'bank_muamalat'
| 'bank_of_china'
| 'bank_rakyat'
| 'bsn'
| 'cimb'
Expand Down
12 changes: 6 additions & 6 deletions types/2022-08-01/SubscriptionSchedules.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ declare module 'stripe' {
billing_thresholds: DefaultSettings.BillingThresholds | null;

/**
* Either `charge_automatically`, or `send_invoice`. When charging automatically, Stripe will attempt to pay the underlying subscription at the end of each billing cycle using the default source attached to the customer. When sending an invoice, Stripe will email your customer an invoice with payment instructions.
* Either `charge_automatically`, or `send_invoice`. When charging automatically, Stripe will attempt to pay the underlying subscription at the end of each billing cycle using the default source attached to the customer. When sending an invoice, Stripe will email your customer an invoice with payment instructions and mark the subscription as `active`.
*/
collection_method: DefaultSettings.CollectionMethod | null;

Expand Down Expand Up @@ -227,7 +227,7 @@ declare module 'stripe' {
billing_thresholds: Phase.BillingThresholds | null;

/**
* Either `charge_automatically`, or `send_invoice`. When charging automatically, Stripe will attempt to pay the underlying subscription at the end of each billing cycle using the default source attached to the customer. When sending an invoice, Stripe will email your customer an invoice with payment instructions.
* Either `charge_automatically`, or `send_invoice`. When charging automatically, Stripe will attempt to pay the underlying subscription at the end of each billing cycle using the default source attached to the customer. When sending an invoice, Stripe will email your customer an invoice with payment instructions and mark the subscription as `active`.
*/
collection_method: Phase.CollectionMethod | null;

Expand Down Expand Up @@ -474,7 +474,7 @@ declare module 'stripe' {
>;

/**
* Either `charge_automatically`, or `send_invoice`. When charging automatically, Stripe will attempt to pay the underlying subscription at the end of each billing cycle using the default source attached to the customer. When sending an invoice, Stripe will email your customer an invoice with payment instructions. Defaults to `charge_automatically` on creation.
* Either `charge_automatically`, or `send_invoice`. When charging automatically, Stripe will attempt to pay the underlying subscription at the end of each billing cycle using the default source attached to the customer. When sending an invoice, Stripe will email your customer an invoice with payment instructions and mark the subscription as `active`. Defaults to `charge_automatically` on creation.
*/
collection_method?: DefaultSettings.CollectionMethod;

Expand Down Expand Up @@ -572,7 +572,7 @@ declare module 'stripe' {
billing_thresholds?: Stripe.Emptyable<Phase.BillingThresholds>;

/**
* Either `charge_automatically`, or `send_invoice`. When charging automatically, Stripe will attempt to pay the underlying subscription at the end of each billing cycle using the default source attached to the customer. When sending an invoice, Stripe will email your customer an invoice with payment instructions. Defaults to `charge_automatically` on creation.
* Either `charge_automatically`, or `send_invoice`. When charging automatically, Stripe will attempt to pay the underlying subscription at the end of each billing cycle using the default source attached to the customer. When sending an invoice, Stripe will email your customer an invoice with payment instructions and mark the subscription as `active`. Defaults to `charge_automatically` on creation.
*/
collection_method?: Phase.CollectionMethod;

Expand Down Expand Up @@ -909,7 +909,7 @@ declare module 'stripe' {
>;

/**
* Either `charge_automatically`, or `send_invoice`. When charging automatically, Stripe will attempt to pay the underlying subscription at the end of each billing cycle using the default source attached to the customer. When sending an invoice, Stripe will email your customer an invoice with payment instructions. Defaults to `charge_automatically` on creation.
* Either `charge_automatically`, or `send_invoice`. When charging automatically, Stripe will attempt to pay the underlying subscription at the end of each billing cycle using the default source attached to the customer. When sending an invoice, Stripe will email your customer an invoice with payment instructions and mark the subscription as `active`. Defaults to `charge_automatically` on creation.
*/
collection_method?: DefaultSettings.CollectionMethod;

Expand Down Expand Up @@ -1007,7 +1007,7 @@ declare module 'stripe' {
billing_thresholds?: Stripe.Emptyable<Phase.BillingThresholds>;

/**
* Either `charge_automatically`, or `send_invoice`. When charging automatically, Stripe will attempt to pay the underlying subscription at the end of each billing cycle using the default source attached to the customer. When sending an invoice, Stripe will email your customer an invoice with payment instructions. Defaults to `charge_automatically` on creation.
* Either `charge_automatically`, or `send_invoice`. When charging automatically, Stripe will attempt to pay the underlying subscription at the end of each billing cycle using the default source attached to the customer. When sending an invoice, Stripe will email your customer an invoice with payment instructions and mark the subscription as `active`. Defaults to `charge_automatically` on creation.
*/
collection_method?: Phase.CollectionMethod;

Expand Down
Loading