stripe 17.3.0-beta.1 → 17.4.0-beta.1

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 (46) hide show
  1. package/CHANGELOG.md +55 -0
  2. package/VERSION +1 -1
  3. package/cjs/apiVersion.js +1 -1
  4. package/cjs/resources/PaymentIntents.js +4 -0
  5. package/cjs/resources/V2/Core/EventDestinations.js +41 -0
  6. package/cjs/resources/V2/Core.js +2 -0
  7. package/cjs/stripe.core.js +1 -1
  8. package/esm/apiVersion.js +1 -1
  9. package/esm/resources/PaymentIntents.js +4 -0
  10. package/esm/resources/V2/Core/EventDestinations.js +38 -0
  11. package/esm/resources/V2/Core.js +2 -0
  12. package/esm/stripe.core.js +1 -1
  13. package/package.json +1 -1
  14. package/types/AccountSessionsResource.d.ts +12 -4
  15. package/types/Accounts.d.ts +28 -0
  16. package/types/AccountsResource.d.ts +83 -1
  17. package/types/Charges.d.ts +33 -0
  18. package/types/Checkout/Sessions.d.ts +75 -0
  19. package/types/Checkout/SessionsResource.d.ts +80 -0
  20. package/types/ConfirmationTokens.d.ts +17 -0
  21. package/types/CustomersResource.d.ts +1 -0
  22. package/types/Disputes.d.ts +3 -3
  23. package/types/EventTypes.d.ts +18 -0
  24. package/types/Events.d.ts +1 -0
  25. package/types/Invoices.d.ts +8 -1
  26. package/types/InvoicesResource.d.ts +30 -0
  27. package/types/PaymentIntents.d.ts +25 -1
  28. package/types/PaymentIntentsResource.d.ts +188 -0
  29. package/types/PaymentMethodConfigurations.d.ts +144 -0
  30. package/types/PaymentMethodConfigurationsResource.d.ts +200 -0
  31. package/types/PaymentMethods.d.ts +17 -0
  32. package/types/PaymentMethodsResource.d.ts +18 -0
  33. package/types/QuotePreviewInvoices.d.ts +8 -1
  34. package/types/Refunds.d.ts +15 -4
  35. package/types/SetupAttempts.d.ts +28 -1
  36. package/types/SetupIntents.d.ts +0 -1
  37. package/types/SetupIntentsResource.d.ts +51 -0
  38. package/types/Subscriptions.d.ts +8 -0
  39. package/types/SubscriptionsResource.d.ts +20 -0
  40. package/types/TestHelpers/ConfirmationTokensResource.d.ts +17 -0
  41. package/types/V2/Core/EventDestinationsResource.d.ts +281 -0
  42. package/types/V2/Core/EventsResource.d.ts +1 -1
  43. package/types/V2/CoreResource.d.ts +1 -0
  44. package/types/V2/EventDestinations.d.ts +164 -0
  45. package/types/WebhookEndpointsResource.d.ts +4 -1
  46. package/types/index.d.ts +2 -0
@@ -1097,20 +1097,28 @@ declare module 'stripe' {
1097
1097
 
1098
1098
  ideal?: PaymentMethodOptions.Ideal;
1099
1099
 
1100
+ kakao_pay?: PaymentMethodOptions.KakaoPay;
1101
+
1100
1102
  klarna?: PaymentMethodOptions.Klarna;
1101
1103
 
1102
1104
  konbini?: PaymentMethodOptions.Konbini;
1103
1105
 
1106
+ kr_card?: PaymentMethodOptions.KrCard;
1107
+
1104
1108
  link?: PaymentMethodOptions.Link;
1105
1109
 
1106
1110
  mobilepay?: PaymentMethodOptions.Mobilepay;
1107
1111
 
1108
1112
  multibanco?: PaymentMethodOptions.Multibanco;
1109
1113
 
1114
+ naver_pay?: PaymentMethodOptions.NaverPay;
1115
+
1110
1116
  oxxo?: PaymentMethodOptions.Oxxo;
1111
1117
 
1112
1118
  p24?: PaymentMethodOptions.P24;
1113
1119
 
1120
+ payco?: PaymentMethodOptions.Payco;
1121
+
1114
1122
  paynow?: PaymentMethodOptions.Paynow;
1115
1123
 
1116
1124
  paypal?: PaymentMethodOptions.Paypal;
@@ -1121,6 +1129,8 @@ declare module 'stripe' {
1121
1129
 
1122
1130
  revolut_pay?: PaymentMethodOptions.RevolutPay;
1123
1131
 
1132
+ samsung_pay?: PaymentMethodOptions.SamsungPay;
1133
+
1124
1134
  sepa_debit?: PaymentMethodOptions.SepaDebit;
1125
1135
 
1126
1136
  sofort?: PaymentMethodOptions.Sofort;
@@ -1510,6 +1520,28 @@ declare module 'stripe' {
1510
1520
  setup_future_usage?: 'none';
1511
1521
  }
1512
1522
 
1523
+ interface KakaoPay {
1524
+ /**
1525
+ * Controls when the funds will be captured from the customer's account.
1526
+ */
1527
+ capture_method?: 'manual';
1528
+
1529
+ /**
1530
+ * Indicates that you intend to make future payments with this PaymentIntent's payment method.
1531
+ *
1532
+ * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
1533
+ *
1534
+ * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
1535
+ *
1536
+ * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication).
1537
+ */
1538
+ setup_future_usage?: KakaoPay.SetupFutureUsage;
1539
+ }
1540
+
1541
+ namespace KakaoPay {
1542
+ type SetupFutureUsage = 'none' | 'off_session';
1543
+ }
1544
+
1513
1545
  interface Klarna {
1514
1546
  /**
1515
1547
  * Indicates that you intend to make future payments with this PaymentIntent's payment method.
@@ -1545,6 +1577,28 @@ declare module 'stripe' {
1545
1577
  setup_future_usage?: 'none';
1546
1578
  }
1547
1579
 
1580
+ interface KrCard {
1581
+ /**
1582
+ * Controls when the funds will be captured from the customer's account.
1583
+ */
1584
+ capture_method?: 'manual';
1585
+
1586
+ /**
1587
+ * Indicates that you intend to make future payments with this PaymentIntent's payment method.
1588
+ *
1589
+ * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
1590
+ *
1591
+ * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
1592
+ *
1593
+ * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication).
1594
+ */
1595
+ setup_future_usage?: KrCard.SetupFutureUsage;
1596
+ }
1597
+
1598
+ namespace KrCard {
1599
+ type SetupFutureUsage = 'none' | 'off_session';
1600
+ }
1601
+
1548
1602
  interface Link {
1549
1603
  /**
1550
1604
  * Indicates that you intend to make future payments with this PaymentIntent's payment method.
@@ -1588,6 +1642,13 @@ declare module 'stripe' {
1588
1642
  setup_future_usage?: 'none';
1589
1643
  }
1590
1644
 
1645
+ interface NaverPay {
1646
+ /**
1647
+ * Controls when the funds will be captured from the customer's account.
1648
+ */
1649
+ capture_method?: 'manual';
1650
+ }
1651
+
1591
1652
  interface Oxxo {
1592
1653
  /**
1593
1654
  * The number of calendar days before an OXXO invoice expires. For example, if you create an OXXO invoice on Monday and you set expires_after_days to 2, the OXXO invoice will expire on Wednesday at 23:59 America/Mexico_City time.
@@ -1619,6 +1680,13 @@ declare module 'stripe' {
1619
1680
  setup_future_usage?: 'none';
1620
1681
  }
1621
1682
 
1683
+ interface Payco {
1684
+ /**
1685
+ * Controls when the funds will be captured from the customer's account.
1686
+ */
1687
+ capture_method?: 'manual';
1688
+ }
1689
+
1622
1690
  interface Paynow {
1623
1691
  /**
1624
1692
  * Indicates that you intend to make future payments with this PaymentIntent's payment method.
@@ -1776,6 +1844,13 @@ declare module 'stripe' {
1776
1844
  type SetupFutureUsage = 'none' | 'off_session';
1777
1845
  }
1778
1846
 
1847
+ interface SamsungPay {
1848
+ /**
1849
+ * Controls when the funds will be captured from the customer's account.
1850
+ */
1851
+ capture_method?: 'manual';
1852
+ }
1853
+
1779
1854
  interface SepaDebit {
1780
1855
  /**
1781
1856
  * Indicates that you intend to make future payments with this PaymentIntent's payment method.
@@ -1075,6 +1075,11 @@ declare module 'stripe' {
1075
1075
  */
1076
1076
  ideal?: PaymentMethodOptions.Ideal;
1077
1077
 
1078
+ /**
1079
+ * contains details about the Kakao Pay payment method options.
1080
+ */
1081
+ kakao_pay?: PaymentMethodOptions.KakaoPay;
1082
+
1078
1083
  /**
1079
1084
  * contains details about the Klarna payment method options.
1080
1085
  */
@@ -1085,6 +1090,11 @@ declare module 'stripe' {
1085
1090
  */
1086
1091
  konbini?: PaymentMethodOptions.Konbini;
1087
1092
 
1093
+ /**
1094
+ * contains details about the Korean card payment method options.
1095
+ */
1096
+ kr_card?: PaymentMethodOptions.KrCard;
1097
+
1088
1098
  /**
1089
1099
  * contains details about the Link payment method options.
1090
1100
  */
@@ -1100,6 +1110,11 @@ declare module 'stripe' {
1100
1110
  */
1101
1111
  multibanco?: PaymentMethodOptions.Multibanco;
1102
1112
 
1113
+ /**
1114
+ * contains details about the Kakao Pay payment method options.
1115
+ */
1116
+ naver_pay?: PaymentMethodOptions.NaverPay;
1117
+
1103
1118
  /**
1104
1119
  * contains details about the OXXO payment method options.
1105
1120
  */
@@ -1110,6 +1125,11 @@ declare module 'stripe' {
1110
1125
  */
1111
1126
  p24?: PaymentMethodOptions.P24;
1112
1127
 
1128
+ /**
1129
+ * contains details about the PAYCO payment method options.
1130
+ */
1131
+ payco?: PaymentMethodOptions.Payco;
1132
+
1113
1133
  /**
1114
1134
  * contains details about the PayNow payment method options.
1115
1135
  */
@@ -1135,6 +1155,11 @@ declare module 'stripe' {
1135
1155
  */
1136
1156
  revolut_pay?: PaymentMethodOptions.RevolutPay;
1137
1157
 
1158
+ /**
1159
+ * contains details about the Samsung Pay payment method options.
1160
+ */
1161
+ samsung_pay?: PaymentMethodOptions.SamsungPay;
1162
+
1138
1163
  /**
1139
1164
  * contains details about the Sepa Debit payment method options.
1140
1165
  */
@@ -1556,6 +1581,23 @@ declare module 'stripe' {
1556
1581
  setup_future_usage?: 'none';
1557
1582
  }
1558
1583
 
1584
+ interface KakaoPay {
1585
+ /**
1586
+ * Indicates that you intend to make future payments with this PaymentIntent's payment method.
1587
+ *
1588
+ * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
1589
+ *
1590
+ * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
1591
+ *
1592
+ * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication).
1593
+ */
1594
+ setup_future_usage?: KakaoPay.SetupFutureUsage;
1595
+ }
1596
+
1597
+ namespace KakaoPay {
1598
+ type SetupFutureUsage = 'none' | 'off_session';
1599
+ }
1600
+
1559
1601
  interface Klarna {
1560
1602
  /**
1561
1603
  * Indicates that you intend to make future payments with this PaymentIntent's payment method.
@@ -1587,6 +1629,23 @@ declare module 'stripe' {
1587
1629
  setup_future_usage?: 'none';
1588
1630
  }
1589
1631
 
1632
+ interface KrCard {
1633
+ /**
1634
+ * Indicates that you intend to make future payments with this PaymentIntent's payment method.
1635
+ *
1636
+ * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
1637
+ *
1638
+ * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
1639
+ *
1640
+ * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication).
1641
+ */
1642
+ setup_future_usage?: KrCard.SetupFutureUsage;
1643
+ }
1644
+
1645
+ namespace KrCard {
1646
+ type SetupFutureUsage = 'none' | 'off_session';
1647
+ }
1648
+
1590
1649
  interface Link {
1591
1650
  /**
1592
1651
  * Indicates that you intend to make future payments with this PaymentIntent's payment method.
@@ -1630,6 +1689,23 @@ declare module 'stripe' {
1630
1689
  setup_future_usage?: 'none';
1631
1690
  }
1632
1691
 
1692
+ interface NaverPay {
1693
+ /**
1694
+ * Indicates that you intend to make future payments with this PaymentIntent's payment method.
1695
+ *
1696
+ * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
1697
+ *
1698
+ * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
1699
+ *
1700
+ * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication).
1701
+ */
1702
+ setup_future_usage?: NaverPay.SetupFutureUsage;
1703
+ }
1704
+
1705
+ namespace NaverPay {
1706
+ type SetupFutureUsage = 'none' | 'off_session';
1707
+ }
1708
+
1633
1709
  interface Oxxo {
1634
1710
  /**
1635
1711
  * The number of calendar days before an OXXO voucher expires. For example, if you create an OXXO voucher on Monday and you set expires_after_days to 2, the OXXO invoice will expire on Wednesday at 23:59 America/Mexico_City time.
@@ -1666,6 +1742,8 @@ declare module 'stripe' {
1666
1742
  tos_shown_and_accepted?: boolean;
1667
1743
  }
1668
1744
 
1745
+ interface Payco {}
1746
+
1669
1747
  interface Paynow {
1670
1748
  /**
1671
1749
  * Indicates that you intend to make future payments with this PaymentIntent's payment method.
@@ -1861,6 +1939,8 @@ declare module 'stripe' {
1861
1939
  type SetupFutureUsage = 'none' | 'off_session';
1862
1940
  }
1863
1941
 
1942
+ interface SamsungPay {}
1943
+
1864
1944
  interface SepaDebit {
1865
1945
  /**
1866
1946
  * Indicates that you intend to make future payments with this PaymentIntent's payment method.
@@ -190,6 +190,8 @@ declare module 'stripe' {
190
190
 
191
191
  grabpay?: PaymentMethodPreview.Grabpay;
192
192
 
193
+ id_bank_transfer?: PaymentMethodPreview.IdBankTransfer;
194
+
193
195
  ideal?: PaymentMethodPreview.Ideal;
194
196
 
195
197
  interac_present?: PaymentMethodPreview.InteracPresent;
@@ -1054,6 +1056,20 @@ declare module 'stripe' {
1054
1056
 
1055
1057
  interface Grabpay {}
1056
1058
 
1059
+ interface IdBankTransfer {
1060
+ bank: IdBankTransfer.Bank | null;
1061
+
1062
+ bank_code: string | null;
1063
+
1064
+ bank_name: string | null;
1065
+
1066
+ display_name: string | null;
1067
+ }
1068
+
1069
+ namespace IdBankTransfer {
1070
+ type Bank = 'bca' | 'bni' | 'bri' | 'cimb' | 'permata';
1071
+ }
1072
+
1057
1073
  interface Ideal {
1058
1074
  /**
1059
1075
  * The customer's bank, if provided. Can be one of `abn_amro`, `asn_bank`, `bunq`, `handelsbanken`, `ing`, `knab`, `moneyou`, `n26`, `nn`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`.
@@ -1495,6 +1511,7 @@ declare module 'stripe' {
1495
1511
  | 'giropay'
1496
1512
  | 'gopay'
1497
1513
  | 'grabpay'
1514
+ | 'id_bank_transfer'
1498
1515
  | 'ideal'
1499
1516
  | 'interac_present'
1500
1517
  | 'kakao_pay'
@@ -834,6 +834,7 @@ declare module 'stripe' {
834
834
  | 'giropay'
835
835
  | 'gopay'
836
836
  | 'grabpay'
837
+ | 'id_bank_transfer'
837
838
  | 'ideal'
838
839
  | 'kakao_pay'
839
840
  | 'klarna'
@@ -48,7 +48,7 @@ declare module 'stripe' {
48
48
  /**
49
49
  * List of eligibility types that are included in `enhanced_evidence`.
50
50
  */
51
- enhanced_eligibility_types?: Array<'visa_compelling_evidence_3'>;
51
+ enhanced_eligibility_types: Array<'visa_compelling_evidence_3'>;
52
52
 
53
53
  evidence: Dispute.Evidence;
54
54
 
@@ -159,7 +159,7 @@ declare module 'stripe' {
159
159
  */
160
160
  duplicate_charge_id: string | null;
161
161
 
162
- enhanced_evidence?: Evidence.EnhancedEvidence;
162
+ enhanced_evidence: Evidence.EnhancedEvidence;
163
163
 
164
164
  /**
165
165
  * A description of the product or service that was sold.
@@ -350,7 +350,7 @@ declare module 'stripe' {
350
350
  */
351
351
  due_by: number | null;
352
352
 
353
- enhanced_eligibility?: EvidenceDetails.EnhancedEligibility;
353
+ enhanced_eligibility: EvidenceDetails.EnhancedEligibility;
354
354
 
355
355
  /**
356
356
  * Whether evidence has been staged for this dispute.
@@ -146,6 +146,7 @@ declare module 'stripe' {
146
146
  | IssuingTokenCreatedEvent
147
147
  | IssuingTokenUpdatedEvent
148
148
  | IssuingTransactionCreatedEvent
149
+ | IssuingTransactionPurchaseDetailsReceiptUpdatedEvent
149
150
  | IssuingTransactionUpdatedEvent
150
151
  | MandateUpdatedEvent
151
152
  | PaymentIntentAmountCapturableUpdatedEvent
@@ -2571,6 +2572,23 @@ declare module 'stripe' {
2571
2572
  }
2572
2573
  }
2573
2574
 
2575
+ /**
2576
+ * Occurs whenever an issuing transaction is updated with receipt data.
2577
+ */
2578
+ interface IssuingTransactionPurchaseDetailsReceiptUpdatedEvent
2579
+ extends EventBase {
2580
+ type: 'issuing_transaction.purchase_details_receipt_updated';
2581
+ data: IssuingTransactionPurchaseDetailsReceiptUpdatedEvent.Data;
2582
+ }
2583
+
2584
+ namespace IssuingTransactionPurchaseDetailsReceiptUpdatedEvent {
2585
+ interface Data extends Stripe.Event.Data {
2586
+ object: Stripe.Issuing.Transaction;
2587
+
2588
+ previous_attributes?: Partial<Stripe.Issuing.Transaction>;
2589
+ }
2590
+ }
2591
+
2574
2592
  /**
2575
2593
  * Occurs whenever an issuing transaction is updated.
2576
2594
  */
package/types/Events.d.ts CHANGED
@@ -230,6 +230,7 @@ declare module 'stripe' {
230
230
  | 'issuing_token.created'
231
231
  | 'issuing_token.updated'
232
232
  | 'issuing_transaction.created'
233
+ | 'issuing_transaction.purchase_details_receipt_updated'
233
234
  | 'issuing_transaction.updated'
234
235
  | 'mandate.updated'
235
236
  | 'payment_intent.amount_capturable_updated'
@@ -994,7 +994,6 @@ declare module 'stripe' {
994
994
  | 'payment_method_unexpected_state'
995
995
  | 'payment_method_unsupported_type'
996
996
  | 'payout_reconciliation_not_ready'
997
- | 'payout_statement_descriptor_profanity'
998
997
  | 'payouts_limit_exceeded'
999
998
  | 'payouts_not_allowed'
1000
999
  | 'platform_account_required'
@@ -1090,6 +1089,11 @@ declare module 'stripe' {
1090
1089
  */
1091
1090
  customer_balance: PaymentMethodOptions.CustomerBalance | null;
1092
1091
 
1092
+ /**
1093
+ * If paying by `id_bank_transfer`, this sub-hash contains details about the Indonesia bank transfer payment method options to pass to the invoice's PaymentIntent.
1094
+ */
1095
+ id_bank_transfer?: PaymentMethodOptions.IdBankTransfer | null;
1096
+
1093
1097
  /**
1094
1098
  * If paying by `konbini`, this sub-hash contains details about the Konbini payment method options to pass to the invoice's PaymentIntent.
1095
1099
  */
@@ -1195,6 +1199,8 @@ declare module 'stripe' {
1195
1199
  }
1196
1200
  }
1197
1201
 
1202
+ interface IdBankTransfer {}
1203
+
1198
1204
  interface Konbini {}
1199
1205
 
1200
1206
  interface SepaDebit {}
@@ -1273,6 +1279,7 @@ declare module 'stripe' {
1273
1279
  | 'fpx'
1274
1280
  | 'giropay'
1275
1281
  | 'grabpay'
1282
+ | 'id_bank_transfer'
1276
1283
  | 'ideal'
1277
1284
  | 'jp_credit_transfer'
1278
1285
  | 'kakao_pay'
@@ -28,6 +28,11 @@ declare module 'stripe' {
28
28
  */
29
29
  automatic_tax?: InvoiceCreateParams.AutomaticTax;
30
30
 
31
+ /**
32
+ * The time when this invoice should be scheduled to finalize. The invoice will be finalized at this time if it is still in draft state.
33
+ */
34
+ automatically_finalizes_at?: number;
35
+
31
36
  /**
32
37
  * Either `charge_automatically`, or `send_invoice`. When charging automatically, Stripe will attempt to pay this invoice using the default source attached to the customer. When sending an invoice, Stripe will email this invoice to the customer with payment instructions. Defaults to `charge_automatically`.
33
38
  */
@@ -368,6 +373,13 @@ declare module 'stripe' {
368
373
  PaymentMethodOptions.CustomerBalance
369
374
  >;
370
375
 
376
+ /**
377
+ * If paying by `id_bank_transfer`, this sub-hash contains details about the Indonesia bank transfer payment method options to pass to the invoice's PaymentIntent.
378
+ */
379
+ id_bank_transfer?: Stripe.Emptyable<
380
+ PaymentMethodOptions.IdBankTransfer
381
+ >;
382
+
371
383
  /**
372
384
  * If paying by `konbini`, this sub-hash contains details about the Konbini payment method options to pass to the invoice's PaymentIntent.
373
385
  */
@@ -511,6 +523,8 @@ declare module 'stripe' {
511
523
  }
512
524
  }
513
525
 
526
+ interface IdBankTransfer {}
527
+
514
528
  interface Konbini {}
515
529
 
516
530
  interface SepaDebit {}
@@ -595,6 +609,7 @@ declare module 'stripe' {
595
609
  | 'fpx'
596
610
  | 'giropay'
597
611
  | 'grabpay'
612
+ | 'id_bank_transfer'
598
613
  | 'ideal'
599
614
  | 'jp_credit_transfer'
600
615
  | 'kakao_pay'
@@ -859,6 +874,11 @@ declare module 'stripe' {
859
874
  */
860
875
  automatic_tax?: InvoiceUpdateParams.AutomaticTax;
861
876
 
877
+ /**
878
+ * The time when this invoice should be scheduled to finalize. The invoice will be finalized at this time if it is still in draft state. To turn off automatic finalization, set `auto_advance` to false.
879
+ */
880
+ automatically_finalizes_at?: number;
881
+
862
882
  /**
863
883
  * Either `charge_automatically` or `send_invoice`. This field can be updated only on `draft` invoices.
864
884
  */
@@ -1162,6 +1182,13 @@ declare module 'stripe' {
1162
1182
  PaymentMethodOptions.CustomerBalance
1163
1183
  >;
1164
1184
 
1185
+ /**
1186
+ * If paying by `id_bank_transfer`, this sub-hash contains details about the Indonesia bank transfer payment method options to pass to the invoice's PaymentIntent.
1187
+ */
1188
+ id_bank_transfer?: Stripe.Emptyable<
1189
+ PaymentMethodOptions.IdBankTransfer
1190
+ >;
1191
+
1165
1192
  /**
1166
1193
  * If paying by `konbini`, this sub-hash contains details about the Konbini payment method options to pass to the invoice's PaymentIntent.
1167
1194
  */
@@ -1305,6 +1332,8 @@ declare module 'stripe' {
1305
1332
  }
1306
1333
  }
1307
1334
 
1335
+ interface IdBankTransfer {}
1336
+
1308
1337
  interface Konbini {}
1309
1338
 
1310
1339
  interface SepaDebit {}
@@ -1389,6 +1418,7 @@ declare module 'stripe' {
1389
1418
  | 'fpx'
1390
1419
  | 'giropay'
1391
1420
  | 'grabpay'
1421
+ | 'id_bank_transfer'
1392
1422
  | 'ideal'
1393
1423
  | 'jp_credit_transfer'
1394
1424
  | 'kakao_pay'
@@ -537,7 +537,6 @@ declare module 'stripe' {
537
537
  | 'payment_method_unexpected_state'
538
538
  | 'payment_method_unsupported_type'
539
539
  | 'payout_reconciliation_not_ready'
540
- | 'payout_statement_descriptor_profanity'
541
540
  | 'payouts_limit_exceeded'
542
541
  | 'payouts_not_allowed'
543
542
  | 'platform_account_required'
@@ -1636,6 +1635,8 @@ declare module 'stripe' {
1636
1635
 
1637
1636
  grabpay?: PaymentMethodOptions.Grabpay;
1638
1637
 
1638
+ id_bank_transfer?: PaymentMethodOptions.IdBankTransfer;
1639
+
1639
1640
  ideal?: PaymentMethodOptions.Ideal;
1640
1641
 
1641
1642
  interac_present?: PaymentMethodOptions.InteracPresent;
@@ -2388,6 +2389,29 @@ declare module 'stripe' {
2388
2389
  setup_future_usage?: 'none';
2389
2390
  }
2390
2391
 
2392
+ interface IdBankTransfer {
2393
+ /**
2394
+ * The UNIX timestamp until which the virtual bank account is valid. Permitted range is from now till 2678400 seconds (31 days) from now.
2395
+ */
2396
+ expires_after?: number | null;
2397
+
2398
+ /**
2399
+ * The UNIX timestamp until which the virtual bank account is valid. Permitted range is from now until 30 days from now. If unset, it defaults to 1 days from now.
2400
+ */
2401
+ expires_at: number | null;
2402
+
2403
+ /**
2404
+ * Indicates that you intend to make future payments with this PaymentIntent's payment method.
2405
+ *
2406
+ * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
2407
+ *
2408
+ * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
2409
+ *
2410
+ * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication).
2411
+ */
2412
+ setup_future_usage?: 'none';
2413
+ }
2414
+
2391
2415
  interface Ideal {
2392
2416
  /**
2393
2417
  * Indicates that you intend to make future payments with this PaymentIntent's payment method.