Skip to content

Commit 80518f1

Browse files
authored
API Updates (stripe#1439)
1 parent a15a14d commit 80518f1

26 files changed

+352
-141
lines changed

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v149
1+
v150

types/2020-08-27/Charges.d.ts

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,11 @@ declare module 'stripe' {
172172
*/
173173
payment_method_details: Charge.PaymentMethodDetails | null;
174174

175+
/**
176+
* Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information.
177+
*/
178+
radar_options?: Charge.RadarOptions;
179+
175180
/**
176181
* This is the email address that the receipt for this charge was sent to.
177182
*/
@@ -1450,7 +1455,7 @@ declare module 'stripe' {
14501455

14511456
/**
14521457
* Preferred language of the Klarna authorization page that the customer is redirected to.
1453-
* 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`
1458+
* 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`
14541459
*/
14551460
preferred_locale: string | null;
14561461
}
@@ -1715,6 +1720,13 @@ declare module 'stripe' {
17151720
}
17161721
}
17171722

1723+
interface RadarOptions {
1724+
/**
1725+
* 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.
1726+
*/
1727+
session?: string;
1728+
}
1729+
17181730
interface Shipping {
17191731
address?: Stripe.Address;
17201732

@@ -1763,7 +1775,7 @@ declare module 'stripe' {
17631775
application_fee?: number;
17641776

17651777
/**
1766-
* 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).
1778+
* 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).
17671779
*/
17681780
application_fee_amount?: number;
17691781

@@ -1804,6 +1816,11 @@ declare module 'stripe' {
18041816
*/
18051817
on_behalf_of?: string;
18061818

1819+
/**
1820+
* Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information.
1821+
*/
1822+
radar_options?: ChargeCreateParams.RadarOptions;
1823+
18071824
/**
18081825
* 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).
18091826
*/
@@ -1853,6 +1870,13 @@ declare module 'stripe' {
18531870
amount?: number;
18541871
}
18551872

1873+
interface RadarOptions {
1874+
/**
1875+
* 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.
1876+
*/
1877+
session?: string;
1878+
}
1879+
18561880
interface Shipping {
18571881
/**
18581882
* Shipping address.

types/2020-08-27/Checkout/Sessions.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1361,12 +1361,12 @@ declare module 'stripe' {
13611361
tax_behavior?: PriceData.TaxBehavior;
13621362

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

13681368
/**
1369-
* 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.
1369+
* 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.
13701370
*/
13711371
unit_amount_decimal?: string;
13721372
}

types/2020-08-27/CreditNoteLineItems.d.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -124,12 +124,12 @@ declare module 'stripe' {
124124
invoice: string;
125125

126126
/**
127-
* The integer amount in %s representing the total amount of the credit note.
127+
* The integer amount in cents (or local equivalent) representing the total amount of the credit note.
128128
*/
129129
amount?: number;
130130

131131
/**
132-
* The integer amount in %s representing the amount to credit the customer's balance, which will be automatically applied to their next invoice.
132+
* 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.
133133
*/
134134
credit_amount?: number;
135135

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

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

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

171171
/**
172-
* The integer amount in %s representing the amount to refund. If set, a refund will be created for the charge associated with the invoice.
172+
* 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.
173173
*/
174174
refund_amount?: number;
175175
}
@@ -207,12 +207,12 @@ declare module 'stripe' {
207207
type: Line.Type;
208208

209209
/**
210-
* 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`.
210+
* 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`.
211211
*/
212212
unit_amount?: number;
213213

214214
/**
215-
* 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.
215+
* 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.
216216
*/
217217
unit_amount_decimal?: string;
218218
}

types/2020-08-27/CreditNotes.d.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -183,12 +183,12 @@ declare module 'stripe' {
183183
invoice: string;
184184

185185
/**
186-
* The integer amount in %s representing the total amount of the credit note.
186+
* The integer amount in cents (or local equivalent) representing the total amount of the credit note.
187187
*/
188188
amount?: number;
189189

190190
/**
191-
* The integer amount in %s representing the amount to credit the customer's balance, which will be automatically applied to their next invoice.
191+
* 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.
192192
*/
193193
credit_amount?: number;
194194

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

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

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

230230
/**
231-
* The integer amount in %s representing the amount to refund. If set, a refund will be created for the charge associated with the invoice.
231+
* 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.
232232
*/
233233
refund_amount?: number;
234234
}
@@ -266,12 +266,12 @@ declare module 'stripe' {
266266
type: Line.Type;
267267

268268
/**
269-
* 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`.
269+
* 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`.
270270
*/
271271
unit_amount?: number;
272272

273273
/**
274-
* 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.
274+
* 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.
275275
*/
276276
unit_amount_decimal?: string;
277277
}
@@ -335,12 +335,12 @@ declare module 'stripe' {
335335
invoice: string;
336336

337337
/**
338-
* The integer amount in %s representing the total amount of the credit note.
338+
* The integer amount in cents (or local equivalent) representing the total amount of the credit note.
339339
*/
340340
amount?: number;
341341

342342
/**
343-
* The integer amount in %s representing the amount to credit the customer's balance, which will be automatically applied to their next invoice.
343+
* 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.
344344
*/
345345
credit_amount?: number;
346346

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

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

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

382382
/**
383-
* The integer amount in %s representing the amount to refund. If set, a refund will be created for the charge associated with the invoice.
383+
* 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.
384384
*/
385385
refund_amount?: number;
386386
}
@@ -418,12 +418,12 @@ declare module 'stripe' {
418418
type: Line.Type;
419419

420420
/**
421-
* 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`.
421+
* 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`.
422422
*/
423423
unit_amount?: number;
424424

425425
/**
426-
* 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.
426+
* 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.
427427
*/
428428
unit_amount_decimal?: string;
429429
}

types/2020-08-27/CustomerBalanceTransactions.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ declare module 'stripe' {
8787

8888
interface CustomerBalanceTransactionCreateParams {
8989
/**
90-
* The integer amount in **%s** to apply to the customer's credit balance.
90+
* The integer amount in **cents (or local equivalent)** to apply to the customer's credit balance.
9191
*/
9292
amount: number;
9393

types/2020-08-27/Customers.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ declare module 'stripe' {
278278
address?: Stripe.Emptyable<Stripe.AddressParam>;
279279

280280
/**
281-
* 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.
281+
* 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.
282282
*/
283283
balance?: number;
284284

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

545545
/**
546-
* 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.
546+
* 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.
547547
*/
548548
balance?: number;
549549

types/2020-08-27/FeeRefunds.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ declare module 'stripe' {
4949

5050
interface FeeRefundCreateParams {
5151
/**
52-
* 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.
52+
* 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.
5353
*/
5454
amount?: number;
5555

types/2020-08-27/FundingInstructions.d.ts

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,42 @@ declare module 'stripe' {
7070

7171
type Type = 'iban' | 'zengin';
7272

73-
interface Zengin {}
73+
interface Zengin {
74+
/**
75+
* The account holder name
76+
*/
77+
account_holder_name: string | null;
78+
79+
/**
80+
* The account number
81+
*/
82+
account_number: string | null;
83+
84+
/**
85+
* The bank account type. In Japan, this can only be `futsu` or `toza`.
86+
*/
87+
account_type: string | null;
88+
89+
/**
90+
* The bank code of the account
91+
*/
92+
bank_code: string | null;
93+
94+
/**
95+
* The bank name of the account
96+
*/
97+
bank_name: string | null;
98+
99+
/**
100+
* The branch code of the account
101+
*/
102+
branch_code: string | null;
103+
104+
/**
105+
* The branch name of the account
106+
*/
107+
branch_name: string | null;
108+
}
74109
}
75110

76111
type Type = 'eu_bank_transfer' | 'jp_bank_transfer';

0 commit comments

Comments
 (0)