stripe 9.3.0 → 9.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/VERSION +1 -1
  3. package/lib/net/HttpClient.js +7 -2
  4. package/package.json +1 -1
  5. package/types/2020-08-27/Accounts.d.ts +103 -0
  6. package/types/2020-08-27/Charges.d.ts +26 -2
  7. package/types/2020-08-27/Checkout/Sessions.d.ts +3 -2
  8. package/types/2020-08-27/CreditNoteLineItems.d.ts +6 -6
  9. package/types/2020-08-27/CreditNotes.d.ts +12 -12
  10. package/types/2020-08-27/CustomerBalanceTransactions.d.ts +1 -1
  11. package/types/2020-08-27/Customers.d.ts +2 -2
  12. package/types/2020-08-27/FeeRefunds.d.ts +1 -1
  13. package/types/2020-08-27/FundingInstructions.d.ts +36 -1
  14. package/types/2020-08-27/InvoiceItems.d.ts +10 -10
  15. package/types/2020-08-27/InvoiceLineItems.d.ts +7 -7
  16. package/types/2020-08-27/Invoices.d.ts +12 -12
  17. package/types/2020-08-27/Orders.d.ts +12 -24
  18. package/types/2020-08-27/PaymentIntents.d.ts +112 -22
  19. package/types/2020-08-27/PaymentMethods.d.ts +24 -0
  20. package/types/2020-08-27/Persons.d.ts +15 -0
  21. package/types/2020-08-27/Plans.d.ts +2 -2
  22. package/types/2020-08-27/Prices.d.ts +3 -3
  23. package/types/2020-08-27/Products.d.ts +2 -2
  24. package/types/2020-08-27/Quotes.d.ts +4 -4
  25. package/types/2020-08-27/SetupIntents.d.ts +53 -0
  26. package/types/2020-08-27/SubscriptionItems.d.ts +4 -4
  27. package/types/2020-08-27/SubscriptionSchedules.d.ts +11 -11
  28. package/types/2020-08-27/Subscriptions.d.ts +11 -11
  29. package/types/2020-08-27/Terminal/Configurations.d.ts +5 -1
  30. package/types/2020-08-27/Terminal/Readers.d.ts +3 -1
  31. package/types/2020-08-27/Tokens.d.ts +10 -0
  32. package/types/2020-08-27/TransferReversals.d.ts +1 -1
  33. package/types/2020-08-27/Transfers.d.ts +1 -1
  34. package/types/2020-08-27/Treasury/FinancialAccounts.d.ts +36 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,32 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 9.6.0 - 2022-06-01
4
+ * [#1439](https://github.com/stripe/stripe-node/pull/1439) API Updates
5
+ * Add support for `radar_options` on `ChargeCreateParams`, `Charge`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentMethodCreateParams`, `PaymentMethod`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data`
6
+ * Add support for `account_holder_name`, `account_number`, `account_type`, `bank_code`, `bank_name`, `branch_code`, and `branch_name` on `FundingInstructions.bank_transfer.financial_addresses[].zengin` and `PaymentIntent.next_action.display_bank_transfer_instructions.financial_addresses[].zengin`
7
+ * Add support for new values `en-AU` and `en-NZ` on enums `OrderCreateParams.payment.settings.payment_method_options.klarna.preferred_locale`, `OrderUpdateParams.payment.settings.payment_method_options.klarna.preferred_locale`, `PaymentIntentConfirmParams.payment_method_options.klarna.preferred_locale`, `PaymentIntentCreateParams.payment_method_options.klarna.preferred_locale`, and `PaymentIntentUpdateParams.payment_method_options.klarna.preferred_locale`
8
+ * Change type of `Order.payment.settings.payment_method_options.customer_balance.bank_transfer.type` and `PaymentIntent.payment_method_options.customer_balance.bank_transfer.type` from `enum` to `literal('jp_bank_transfer')`
9
+ * This is technically breaking in Typescript, but now accurately represents the behavior that was allowed by the server. We haven't historically treated breaking Typescript changes as requiring a major.
10
+ * Change `PaymentIntent.next_action.display_bank_transfer_instructions.hosted_instructions_url` to be required
11
+ * Add support for `network` on `SetupIntent.payment_method_options.card`
12
+ * Add support for new value `simulated_wisepos_e` on enums `Terminal.Reader.device_type` and `TerminalReaderListParams.device_type`
13
+
14
+
15
+ ## 9.5.0 - 2022-05-26
16
+ * [#1434](https://github.com/stripe/stripe-node/pull/1434) API Updates
17
+ * Add support for `affirm_payments` and `link_payments` on `Account.capabilities`, `AccountCreateParams.capabilities`, and `AccountUpdateParams.capabilities`
18
+ * Add support for `id_number_secondary` on `AccountCreateParams.individual`, `AccountUpdateParams.individual`, `PersonCreateParams`, `PersonUpdateParams`, `TokenCreateParams.account.individual`, and `TokenCreateParams.person`
19
+ * Add support for new value `affirm` on enum `CheckoutSessionCreateParams.payment_method_types[]`
20
+ * Add support for `hosted_instructions_url` on `PaymentIntent.next_action.display_bank_transfer_instructions`
21
+ * Add support for `id_number_secondary_provided` on `Person`
22
+ * Add support for `card_issuing` on `TreasuryFinancialAccountCreateParams.features`, `TreasuryFinancialAccountUpdateFeaturesParams`, and `TreasuryFinancialAccountUpdateParams.features`
23
+
24
+ * [#1432](https://github.com/stripe/stripe-node/pull/1432) docs: Update HttpClient documentation to remove experimental status.
25
+
26
+ ## 9.4.0 - 2022-05-23
27
+ * [#1431](https://github.com/stripe/stripe-node/pull/1431) API Updates
28
+ * Add support for `treasury` on `Account.capabilities`, `AccountCreateParams.capabilities`, and `AccountUpdateParams.capabilities`
29
+
3
30
  ## 9.3.0 - 2022-05-23
4
31
  * [#1430](https://github.com/stripe/stripe-node/pull/1430) API Updates
5
32
  * Add support for new resource `Apps.Secret`
package/VERSION CHANGED
@@ -1 +1 @@
1
- 9.3.0
1
+ 9.6.0
@@ -1,8 +1,13 @@
1
1
  'use strict';
2
2
 
3
3
  /**
4
- * Encapsulates the logic for issuing a request to the Stripe API. This is an
5
- * experimental interface and is not yet stable.
4
+ * Encapsulates the logic for issuing a request to the Stripe API.
5
+ *
6
+ * A custom HTTP client should should implement:
7
+ * 1. A response class which extends HttpClientResponse and wraps around their
8
+ * own internal representation of a response.
9
+ * 2. A client class which extends HttpClient and implements all methods,
10
+ * returning their own response class when making requests.
6
11
  */
7
12
  class HttpClient {
8
13
  /** The client name used for diagnostics. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stripe",
3
- "version": "9.3.0",
3
+ "version": "9.6.0",
4
4
  "description": "Stripe API wrapper",
5
5
  "keywords": [
6
6
  "stripe",
@@ -161,6 +161,11 @@ declare module 'stripe' {
161
161
  */
162
162
  acss_debit_payments?: Capabilities.AcssDebitPayments;
163
163
 
164
+ /**
165
+ * The status of the Affirm capability of the account, or whether the account can directly process Affirm charges.
166
+ */
167
+ affirm_payments?: Capabilities.AffirmPayments;
168
+
164
169
  /**
165
170
  * The status of the Afterpay Clearpay capability of the account, or whether the account can directly process Afterpay Clearpay charges.
166
171
  */
@@ -251,6 +256,11 @@ declare module 'stripe' {
251
256
  */
252
257
  legacy_payments?: Capabilities.LegacyPayments;
253
258
 
259
+ /**
260
+ * The status of the link_payments capability of the account, or whether the account can directly process Link charges.
261
+ */
262
+ link_payments?: Capabilities.LinkPayments;
263
+
254
264
  /**
255
265
  * The status of the OXXO payments capability of the account, or whether the account can directly process OXXO charges.
256
266
  */
@@ -291,6 +301,11 @@ declare module 'stripe' {
291
301
  */
292
302
  transfers?: Capabilities.Transfers;
293
303
 
304
+ /**
305
+ * The status of the banking capability, or whether the account can have bank accounts.
306
+ */
307
+ treasury?: Capabilities.Treasury;
308
+
294
309
  /**
295
310
  * The status of the US bank account ACH payments capability of the account, or whether the account can directly process US bank account charges.
296
311
  */
@@ -300,6 +315,8 @@ declare module 'stripe' {
300
315
  namespace Capabilities {
301
316
  type AcssDebitPayments = 'active' | 'inactive' | 'pending';
302
317
 
318
+ type AffirmPayments = 'active' | 'inactive' | 'pending';
319
+
303
320
  type AfterpayClearpayPayments = 'active' | 'inactive' | 'pending';
304
321
 
305
322
  type AuBecsDebitPayments = 'active' | 'inactive' | 'pending';
@@ -336,6 +353,8 @@ declare module 'stripe' {
336
353
 
337
354
  type LegacyPayments = 'active' | 'inactive' | 'pending';
338
355
 
356
+ type LinkPayments = 'active' | 'inactive' | 'pending';
357
+
339
358
  type OxxoPayments = 'active' | 'inactive' | 'pending';
340
359
 
341
360
  type P24Payments = 'active' | 'inactive' | 'pending';
@@ -352,6 +371,8 @@ declare module 'stripe' {
352
371
 
353
372
  type Transfers = 'active' | 'inactive' | 'pending';
354
373
 
374
+ type Treasury = 'active' | 'inactive' | 'pending';
375
+
355
376
  type UsBankAccountAchPayments = 'active' | 'inactive' | 'pending';
356
377
  }
357
378
 
@@ -1196,6 +1217,11 @@ declare module 'stripe' {
1196
1217
  */
1197
1218
  acss_debit_payments?: Capabilities.AcssDebitPayments;
1198
1219
 
1220
+ /**
1221
+ * The affirm_payments capability.
1222
+ */
1223
+ affirm_payments?: Capabilities.AffirmPayments;
1224
+
1199
1225
  /**
1200
1226
  * The afterpay_clearpay_payments capability.
1201
1227
  */
@@ -1286,6 +1312,11 @@ declare module 'stripe' {
1286
1312
  */
1287
1313
  legacy_payments?: Capabilities.LegacyPayments;
1288
1314
 
1315
+ /**
1316
+ * The link_payments capability.
1317
+ */
1318
+ link_payments?: Capabilities.LinkPayments;
1319
+
1289
1320
  /**
1290
1321
  * The oxxo_payments capability.
1291
1322
  */
@@ -1326,6 +1357,11 @@ declare module 'stripe' {
1326
1357
  */
1327
1358
  transfers?: Capabilities.Transfers;
1328
1359
 
1360
+ /**
1361
+ * The treasury capability.
1362
+ */
1363
+ treasury?: Capabilities.Treasury;
1364
+
1329
1365
  /**
1330
1366
  * The us_bank_account_ach_payments capability.
1331
1367
  */
@@ -1340,6 +1376,13 @@ declare module 'stripe' {
1340
1376
  requested?: boolean;
1341
1377
  }
1342
1378
 
1379
+ interface AffirmPayments {
1380
+ /**
1381
+ * Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
1382
+ */
1383
+ requested?: boolean;
1384
+ }
1385
+
1343
1386
  interface AfterpayClearpayPayments {
1344
1387
  /**
1345
1388
  * Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
@@ -1466,6 +1509,13 @@ declare module 'stripe' {
1466
1509
  requested?: boolean;
1467
1510
  }
1468
1511
 
1512
+ interface LinkPayments {
1513
+ /**
1514
+ * Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
1515
+ */
1516
+ requested?: boolean;
1517
+ }
1518
+
1469
1519
  interface OxxoPayments {
1470
1520
  /**
1471
1521
  * Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
@@ -1522,6 +1572,13 @@ declare module 'stripe' {
1522
1572
  requested?: boolean;
1523
1573
  }
1524
1574
 
1575
+ interface Treasury {
1576
+ /**
1577
+ * Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
1578
+ */
1579
+ requested?: boolean;
1580
+ }
1581
+
1525
1582
  interface UsBankAccountAchPayments {
1526
1583
  /**
1527
1584
  * Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
@@ -1864,6 +1921,11 @@ declare module 'stripe' {
1864
1921
  */
1865
1922
  id_number?: string;
1866
1923
 
1924
+ /**
1925
+ * The government-issued secondary ID number of the individual, as appropriate for the representative's country, will be used for enhanced verification checks. In Thailand, this would be the laser code found on the back of an ID card. Instead of the number itself, you can also provide a [PII token created with Stripe.js](https://stripe.com/docs/js/tokens_sources/create_token?type=pii).
1926
+ */
1927
+ id_number_secondary?: string;
1928
+
1867
1929
  /**
1868
1930
  * The individual's last name.
1869
1931
  */
@@ -2323,6 +2385,11 @@ declare module 'stripe' {
2323
2385
  */
2324
2386
  acss_debit_payments?: Capabilities.AcssDebitPayments;
2325
2387
 
2388
+ /**
2389
+ * The affirm_payments capability.
2390
+ */
2391
+ affirm_payments?: Capabilities.AffirmPayments;
2392
+
2326
2393
  /**
2327
2394
  * The afterpay_clearpay_payments capability.
2328
2395
  */
@@ -2413,6 +2480,11 @@ declare module 'stripe' {
2413
2480
  */
2414
2481
  legacy_payments?: Capabilities.LegacyPayments;
2415
2482
 
2483
+ /**
2484
+ * The link_payments capability.
2485
+ */
2486
+ link_payments?: Capabilities.LinkPayments;
2487
+
2416
2488
  /**
2417
2489
  * The oxxo_payments capability.
2418
2490
  */
@@ -2453,6 +2525,11 @@ declare module 'stripe' {
2453
2525
  */
2454
2526
  transfers?: Capabilities.Transfers;
2455
2527
 
2528
+ /**
2529
+ * The treasury capability.
2530
+ */
2531
+ treasury?: Capabilities.Treasury;
2532
+
2456
2533
  /**
2457
2534
  * The us_bank_account_ach_payments capability.
2458
2535
  */
@@ -2467,6 +2544,13 @@ declare module 'stripe' {
2467
2544
  requested?: boolean;
2468
2545
  }
2469
2546
 
2547
+ interface AffirmPayments {
2548
+ /**
2549
+ * Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
2550
+ */
2551
+ requested?: boolean;
2552
+ }
2553
+
2470
2554
  interface AfterpayClearpayPayments {
2471
2555
  /**
2472
2556
  * Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
@@ -2593,6 +2677,13 @@ declare module 'stripe' {
2593
2677
  requested?: boolean;
2594
2678
  }
2595
2679
 
2680
+ interface LinkPayments {
2681
+ /**
2682
+ * Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
2683
+ */
2684
+ requested?: boolean;
2685
+ }
2686
+
2596
2687
  interface OxxoPayments {
2597
2688
  /**
2598
2689
  * Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
@@ -2649,6 +2740,13 @@ declare module 'stripe' {
2649
2740
  requested?: boolean;
2650
2741
  }
2651
2742
 
2743
+ interface Treasury {
2744
+ /**
2745
+ * Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
2746
+ */
2747
+ requested?: boolean;
2748
+ }
2749
+
2652
2750
  interface UsBankAccountAchPayments {
2653
2751
  /**
2654
2752
  * Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
@@ -2954,6 +3052,11 @@ declare module 'stripe' {
2954
3052
  */
2955
3053
  id_number?: string;
2956
3054
 
3055
+ /**
3056
+ * The government-issued secondary ID number of the individual, as appropriate for the representative's country, will be used for enhanced verification checks. In Thailand, this would be the laser code found on the back of an ID card. Instead of the number itself, you can also provide a [PII token created with Stripe.js](https://stripe.com/docs/js/tokens_sources/create_token?type=pii).
3057
+ */
3058
+ id_number_secondary?: string;
3059
+
2957
3060
  /**
2958
3061
  * The individual's last name.
2959
3062
  */
@@ -172,6 +172,11 @@ declare module 'stripe' {
172
172
  */
173
173
  payment_method_details: Charge.PaymentMethodDetails | null;
174
174
 
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
+
175
180
  /**
176
181
  * This is the email address that the receipt for this charge was sent to.
177
182
  */
@@ -1450,7 +1455,7 @@ declare module 'stripe' {
1450
1455
 
1451
1456
  /**
1452
1457
  * 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`
1454
1459
  */
1455
1460
  preferred_locale: string | null;
1456
1461
  }
@@ -1715,6 +1720,13 @@ declare module 'stripe' {
1715
1720
  }
1716
1721
  }
1717
1722
 
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
+
1718
1730
  interface Shipping {
1719
1731
  address?: Stripe.Address;
1720
1732
 
@@ -1763,7 +1775,7 @@ declare module 'stripe' {
1763
1775
  application_fee?: number;
1764
1776
 
1765
1777
  /**
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).
1767
1779
  */
1768
1780
  application_fee_amount?: number;
1769
1781
 
@@ -1804,6 +1816,11 @@ declare module 'stripe' {
1804
1816
  */
1805
1817
  on_behalf_of?: string;
1806
1818
 
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
+
1807
1824
  /**
1808
1825
  * 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).
1809
1826
  */
@@ -1853,6 +1870,13 @@ declare module 'stripe' {
1853
1870
  amount?: number;
1854
1871
  }
1855
1872
 
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
+
1856
1880
  interface Shipping {
1857
1881
  /**
1858
1882
  * Shipping address.
@@ -1361,12 +1361,12 @@ declare module 'stripe' {
1361
1361
  tax_behavior?: PriceData.TaxBehavior;
1362
1362
 
1363
1363
  /**
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.
1365
1365
  */
1366
1366
  unit_amount?: number;
1367
1367
 
1368
1368
  /**
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.
1370
1370
  */
1371
1371
  unit_amount_decimal?: string;
1372
1372
  }
@@ -1770,6 +1770,7 @@ declare module 'stripe' {
1770
1770
 
1771
1771
  type PaymentMethodType =
1772
1772
  | 'acss_debit'
1773
+ | 'affirm'
1773
1774
  | 'afterpay_clearpay'
1774
1775
  | 'alipay'
1775
1776
  | 'au_becs_debit'
@@ -124,12 +124,12 @@ declare module 'stripe' {
124
124
  invoice: string;
125
125
 
126
126
  /**
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.
128
128
  */
129
129
  amount?: number;
130
130
 
131
131
  /**
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.
133
133
  */
134
134
  credit_amount?: number;
135
135
 
@@ -154,7 +154,7 @@ declare module 'stripe' {
154
154
  metadata?: Stripe.MetadataParam;
155
155
 
156
156
  /**
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.
158
158
  */
159
159
  out_of_band_amount?: number;
160
160
 
@@ -169,7 +169,7 @@ declare module 'stripe' {
169
169
  refund?: string;
170
170
 
171
171
  /**
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.
173
173
  */
174
174
  refund_amount?: number;
175
175
  }
@@ -207,12 +207,12 @@ declare module 'stripe' {
207
207
  type: Line.Type;
208
208
 
209
209
  /**
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`.
211
211
  */
212
212
  unit_amount?: number;
213
213
 
214
214
  /**
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.
216
216
  */
217
217
  unit_amount_decimal?: string;
218
218
  }
@@ -183,12 +183,12 @@ declare module 'stripe' {
183
183
  invoice: string;
184
184
 
185
185
  /**
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.
187
187
  */
188
188
  amount?: number;
189
189
 
190
190
  /**
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.
192
192
  */
193
193
  credit_amount?: number;
194
194
 
@@ -213,7 +213,7 @@ declare module 'stripe' {
213
213
  metadata?: Stripe.MetadataParam;
214
214
 
215
215
  /**
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.
217
217
  */
218
218
  out_of_band_amount?: number;
219
219
 
@@ -228,7 +228,7 @@ declare module 'stripe' {
228
228
  refund?: string;
229
229
 
230
230
  /**
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.
232
232
  */
233
233
  refund_amount?: number;
234
234
  }
@@ -266,12 +266,12 @@ declare module 'stripe' {
266
266
  type: Line.Type;
267
267
 
268
268
  /**
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`.
270
270
  */
271
271
  unit_amount?: number;
272
272
 
273
273
  /**
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.
275
275
  */
276
276
  unit_amount_decimal?: string;
277
277
  }
@@ -335,12 +335,12 @@ declare module 'stripe' {
335
335
  invoice: string;
336
336
 
337
337
  /**
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.
339
339
  */
340
340
  amount?: number;
341
341
 
342
342
  /**
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.
344
344
  */
345
345
  credit_amount?: number;
346
346
 
@@ -365,7 +365,7 @@ declare module 'stripe' {
365
365
  metadata?: Stripe.MetadataParam;
366
366
 
367
367
  /**
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.
369
369
  */
370
370
  out_of_band_amount?: number;
371
371
 
@@ -380,7 +380,7 @@ declare module 'stripe' {
380
380
  refund?: string;
381
381
 
382
382
  /**
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.
384
384
  */
385
385
  refund_amount?: number;
386
386
  }
@@ -418,12 +418,12 @@ declare module 'stripe' {
418
418
  type: Line.Type;
419
419
 
420
420
  /**
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`.
422
422
  */
423
423
  unit_amount?: number;
424
424
 
425
425
  /**
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.
427
427
  */
428
428
  unit_amount_decimal?: string;
429
429
  }
@@ -87,7 +87,7 @@ declare module 'stripe' {
87
87
 
88
88
  interface CustomerBalanceTransactionCreateParams {
89
89
  /**
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.
91
91
  */
92
92
  amount: number;
93
93
 
@@ -278,7 +278,7 @@ declare module 'stripe' {
278
278
  address?: Stripe.Emptyable<Stripe.AddressParam>;
279
279
 
280
280
  /**
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.
282
282
  */
283
283
  balance?: number;
284
284
 
@@ -543,7 +543,7 @@ declare module 'stripe' {
543
543
  address?: Stripe.Emptyable<Stripe.AddressParam>;
544
544
 
545
545
  /**
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.
547
547
  */
548
548
  balance?: number;
549
549
 
@@ -49,7 +49,7 @@ declare module 'stripe' {
49
49
 
50
50
  interface FeeRefundCreateParams {
51
51
  /**
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.
53
53
  */
54
54
  amount?: number;
55
55
 
@@ -70,7 +70,42 @@ declare module 'stripe' {
70
70
 
71
71
  type Type = 'iban' | 'zengin';
72
72
 
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
+ }
74
109
  }
75
110
 
76
111
  type Type = 'eu_bank_transfer' | 'jp_bank_transfer';