Skip to content
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 @@
v149
v150
28 changes: 26 additions & 2 deletions types/2020-08-27/Charges.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,11 @@ declare module 'stripe' {
*/
payment_method_details: Charge.PaymentMethodDetails | null;

/**
* Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information.
*/
radar_options?: Charge.RadarOptions;

/**
* This is the email address that the receipt for this charge was sent to.
*/
Expand Down Expand Up @@ -1450,7 +1455,7 @@ declare module 'stripe' {

/**
* Preferred language of the Klarna authorization page that the customer is redirected to.
* Can be one of `de-AT`, `en-AT`, `nl-BE`, `fr-BE`, `en-BE`, `de-DE`, `en-DE`, `da-DK`, `en-DK`, `es-ES`, `en-ES`, `fi-FI`, `sv-FI`, `en-FI`, `en-GB`, `en-IE`, `it-IT`, `en-IT`, `nl-NL`, `en-NL`, `nb-NO`, `en-NO`, `sv-SE`, `en-SE`, `en-US`, `es-US`, `fr-FR`, or `en-FR`
* Can be one of `de-AT`, `en-AT`, `nl-BE`, `fr-BE`, `en-BE`, `de-DE`, `en-DE`, `da-DK`, `en-DK`, `es-ES`, `en-ES`, `fi-FI`, `sv-FI`, `en-FI`, `en-GB`, `en-IE`, `it-IT`, `en-IT`, `nl-NL`, `en-NL`, `nb-NO`, `en-NO`, `sv-SE`, `en-SE`, `en-US`, `es-US`, `fr-FR`, `en-FR`, `en-AU`, or `en-NZ`
*/
preferred_locale: string | null;
}
Expand Down Expand Up @@ -1715,6 +1720,13 @@ declare module 'stripe' {
}
}

interface RadarOptions {
/**
* A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments.
*/
session?: string;
}

interface Shipping {
address?: Stripe.Address;

Expand Down Expand Up @@ -1763,7 +1775,7 @@ declare module 'stripe' {
application_fee?: number;

/**
* A fee in %s that will be applied to the charge and transferred to the application owner's Stripe account. The request must be made with an OAuth key or the `Stripe-Account` header in order to take an application fee. For more information, see the application fees [documentation](https://stripe.com/docs/connect/direct-charges#collecting-fees).
* A fee in cents (or local equivalent) that will be applied to the charge and transferred to the application owner's Stripe account. The request must be made with an OAuth key or the `Stripe-Account` header in order to take an application fee. For more information, see the application fees [documentation](https://stripe.com/docs/connect/direct-charges#collecting-fees).
*/
application_fee_amount?: number;

Expand Down Expand Up @@ -1804,6 +1816,11 @@ declare module 'stripe' {
*/
on_behalf_of?: string;

/**
* Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information.
*/
radar_options?: ChargeCreateParams.RadarOptions;

/**
* The email address to which this charge's [receipt](https://stripe.com/docs/dashboard/receipts) will be sent. The receipt will not be sent until the charge is paid, and no receipts will be sent for test mode charges. If this charge is for a [Customer](https://stripe.com/docs/api/customers/object), the email address specified here will override the customer's email address. If `receipt_email` is specified for a charge in live mode, a receipt will be sent regardless of your [email settings](https://dashboard.stripe.com/account/emails).
*/
Expand Down Expand Up @@ -1853,6 +1870,13 @@ declare module 'stripe' {
amount?: number;
}

interface RadarOptions {
/**
* A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments.
*/
session?: string;
}

interface Shipping {
/**
* Shipping address.
Expand Down
4 changes: 2 additions & 2 deletions types/2020-08-27/Checkout/Sessions.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1361,12 +1361,12 @@ declare module 'stripe' {
tax_behavior?: PriceData.TaxBehavior;

/**
* A non-negative integer in %s representing how much to charge. One of `unit_amount` or `unit_amount_decimal` is required.
* A non-negative integer in cents (or local equivalent) representing how much to charge. One of `unit_amount` or `unit_amount_decimal` is required.
*/
unit_amount?: number;

/**
* Same as `unit_amount`, but accepts a decimal value in %s with at most 12 decimal places. Only one of `unit_amount` and `unit_amount_decimal` can be set.
* Same as `unit_amount`, but accepts a decimal value in cents (or local equivalent) with at most 12 decimal places. Only one of `unit_amount` and `unit_amount_decimal` can be set.
*/
unit_amount_decimal?: string;
}
Expand Down
12 changes: 6 additions & 6 deletions types/2020-08-27/CreditNoteLineItems.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,12 +124,12 @@ declare module 'stripe' {
invoice: string;

/**
* The integer amount in %s representing the total amount of the credit note.
* The integer amount in cents (or local equivalent) representing the total amount of the credit note.
*/
amount?: number;

/**
* The integer amount in %s representing the amount to credit the customer's balance, which will be automatically applied to their next invoice.
* The integer amount in cents (or local equivalent) representing the amount to credit the customer's balance, which will be automatically applied to their next invoice.
*/
credit_amount?: number;

Expand All @@ -154,7 +154,7 @@ declare module 'stripe' {
metadata?: Stripe.MetadataParam;

/**
* The integer amount in %s representing the amount that is credited outside of Stripe.
* The integer amount in cents (or local equivalent) representing the amount that is credited outside of Stripe.
*/
out_of_band_amount?: number;

Expand All @@ -169,7 +169,7 @@ declare module 'stripe' {
refund?: string;

/**
* The integer amount in %s representing the amount to refund. If set, a refund will be created for the charge associated with the invoice.
* The integer amount in cents (or local equivalent) representing the amount to refund. If set, a refund will be created for the charge associated with the invoice.
*/
refund_amount?: number;
}
Expand Down Expand Up @@ -207,12 +207,12 @@ declare module 'stripe' {
type: Line.Type;

/**
* The integer unit amount in %s of the credit note line item. This `unit_amount` will be multiplied by the quantity to get the full amount to credit for this line item. Only valid when `type` is `custom_line_item`.
* The integer unit amount in cents (or local equivalent) of the credit note line item. This `unit_amount` will be multiplied by the quantity to get the full amount to credit for this line item. Only valid when `type` is `custom_line_item`.
*/
unit_amount?: number;

/**
* Same as `unit_amount`, but accepts a decimal value in %s with at most 12 decimal places. Only one of `unit_amount` and `unit_amount_decimal` can be set.
* Same as `unit_amount`, but accepts a decimal value in cents (or local equivalent) with at most 12 decimal places. Only one of `unit_amount` and `unit_amount_decimal` can be set.
*/
unit_amount_decimal?: string;
}
Expand Down
24 changes: 12 additions & 12 deletions types/2020-08-27/CreditNotes.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,12 +183,12 @@ declare module 'stripe' {
invoice: string;

/**
* The integer amount in %s representing the total amount of the credit note.
* The integer amount in cents (or local equivalent) representing the total amount of the credit note.
*/
amount?: number;

/**
* The integer amount in %s representing the amount to credit the customer's balance, which will be automatically applied to their next invoice.
* The integer amount in cents (or local equivalent) representing the amount to credit the customer's balance, which will be automatically applied to their next invoice.
*/
credit_amount?: number;

Expand All @@ -213,7 +213,7 @@ declare module 'stripe' {
metadata?: Stripe.MetadataParam;

/**
* The integer amount in %s representing the amount that is credited outside of Stripe.
* The integer amount in cents (or local equivalent) representing the amount that is credited outside of Stripe.
*/
out_of_band_amount?: number;

Expand All @@ -228,7 +228,7 @@ declare module 'stripe' {
refund?: string;

/**
* The integer amount in %s representing the amount to refund. If set, a refund will be created for the charge associated with the invoice.
* The integer amount in cents (or local equivalent) representing the amount to refund. If set, a refund will be created for the charge associated with the invoice.
*/
refund_amount?: number;
}
Expand Down Expand Up @@ -266,12 +266,12 @@ declare module 'stripe' {
type: Line.Type;

/**
* The integer unit amount in %s of the credit note line item. This `unit_amount` will be multiplied by the quantity to get the full amount to credit for this line item. Only valid when `type` is `custom_line_item`.
* The integer unit amount in cents (or local equivalent) of the credit note line item. This `unit_amount` will be multiplied by the quantity to get the full amount to credit for this line item. Only valid when `type` is `custom_line_item`.
*/
unit_amount?: number;

/**
* Same as `unit_amount`, but accepts a decimal value in %s with at most 12 decimal places. Only one of `unit_amount` and `unit_amount_decimal` can be set.
* Same as `unit_amount`, but accepts a decimal value in cents (or local equivalent) with at most 12 decimal places. Only one of `unit_amount` and `unit_amount_decimal` can be set.
*/
unit_amount_decimal?: string;
}
Expand Down Expand Up @@ -335,12 +335,12 @@ declare module 'stripe' {
invoice: string;

/**
* The integer amount in %s representing the total amount of the credit note.
* The integer amount in cents (or local equivalent) representing the total amount of the credit note.
*/
amount?: number;

/**
* The integer amount in %s representing the amount to credit the customer's balance, which will be automatically applied to their next invoice.
* The integer amount in cents (or local equivalent) representing the amount to credit the customer's balance, which will be automatically applied to their next invoice.
*/
credit_amount?: number;

Expand All @@ -365,7 +365,7 @@ declare module 'stripe' {
metadata?: Stripe.MetadataParam;

/**
* The integer amount in %s representing the amount that is credited outside of Stripe.
* The integer amount in cents (or local equivalent) representing the amount that is credited outside of Stripe.
*/
out_of_band_amount?: number;

Expand All @@ -380,7 +380,7 @@ declare module 'stripe' {
refund?: string;

/**
* The integer amount in %s representing the amount to refund. If set, a refund will be created for the charge associated with the invoice.
* The integer amount in cents (or local equivalent) representing the amount to refund. If set, a refund will be created for the charge associated with the invoice.
*/
refund_amount?: number;
}
Expand Down Expand Up @@ -418,12 +418,12 @@ declare module 'stripe' {
type: Line.Type;

/**
* The integer unit amount in %s of the credit note line item. This `unit_amount` will be multiplied by the quantity to get the full amount to credit for this line item. Only valid when `type` is `custom_line_item`.
* The integer unit amount in cents (or local equivalent) of the credit note line item. This `unit_amount` will be multiplied by the quantity to get the full amount to credit for this line item. Only valid when `type` is `custom_line_item`.
*/
unit_amount?: number;

/**
* Same as `unit_amount`, but accepts a decimal value in %s with at most 12 decimal places. Only one of `unit_amount` and `unit_amount_decimal` can be set.
* Same as `unit_amount`, but accepts a decimal value in cents (or local equivalent) with at most 12 decimal places. Only one of `unit_amount` and `unit_amount_decimal` can be set.
*/
unit_amount_decimal?: string;
}
Expand Down
2 changes: 1 addition & 1 deletion types/2020-08-27/CustomerBalanceTransactions.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ declare module 'stripe' {

interface CustomerBalanceTransactionCreateParams {
/**
* The integer amount in **%s** to apply to the customer's credit balance.
* The integer amount in **cents (or local equivalent)** to apply to the customer's credit balance.
*/
amount: number;

Expand Down
4 changes: 2 additions & 2 deletions types/2020-08-27/Customers.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ declare module 'stripe' {
address?: Stripe.Emptyable<Stripe.AddressParam>;

/**
* An integer amount in %s 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.
* 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.
*/
balance?: number;

Expand Down Expand Up @@ -543,7 +543,7 @@ declare module 'stripe' {
address?: Stripe.Emptyable<Stripe.AddressParam>;

/**
* An integer amount in %s 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.
* 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.
*/
balance?: number;

Expand Down
2 changes: 1 addition & 1 deletion types/2020-08-27/FeeRefunds.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ declare module 'stripe' {

interface FeeRefundCreateParams {
/**
* A positive integer, in _%s_, representing how much of this fee to refund. Can refund only up to the remaining unrefunded amount of the fee.
* A positive integer, in _cents (or local equivalent)_, representing how much of this fee to refund. Can refund only up to the remaining unrefunded amount of the fee.
*/
amount?: number;

Expand Down
37 changes: 36 additions & 1 deletion types/2020-08-27/FundingInstructions.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,42 @@ declare module 'stripe' {

type Type = 'iban' | 'zengin';

interface Zengin {}
interface Zengin {
/**
* The account holder name
*/
account_holder_name: string | null;

/**
* The account number
*/
account_number: string | null;

/**
* The bank account type. In Japan, this can only be `futsu` or `toza`.
*/
account_type: string | null;

/**
* The bank code of the account
*/
bank_code: string | null;

/**
* The bank name of the account
*/
bank_name: string | null;

/**
* The branch code of the account
*/
branch_code: string | null;

/**
* The branch name of the account
*/
branch_name: string | null;
}
}

type Type = 'eu_bank_transfer' | 'jp_bank_transfer';
Expand Down
Loading