stripe 17.2.0-beta.1 → 17.2.0-beta.2

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 (58) hide show
  1. package/CHANGELOG.md +33 -3
  2. package/README.md +4 -3
  3. package/VERSION +1 -1
  4. package/cjs/resources/TestHelpers/Issuing/Cards.js +4 -0
  5. package/cjs/stripe.core.js +1 -1
  6. package/esm/resources/TestHelpers/Issuing/Cards.js +4 -0
  7. package/esm/stripe.core.js +1 -1
  8. package/package.json +1 -1
  9. package/types/AccountSessions.d.ts +30 -5
  10. package/types/AccountSessionsResource.d.ts +46 -6
  11. package/types/Accounts.d.ts +14 -2
  12. package/types/AccountsResource.d.ts +26 -2
  13. package/types/Billing/CreditGrants.d.ts +2 -2
  14. package/types/Billing/CreditGrantsResource.d.ts +2 -2
  15. package/types/Billing/Meters.d.ts +2 -0
  16. package/types/Charges.d.ts +81 -0
  17. package/types/Checkout/Sessions.d.ts +14 -2
  18. package/types/Checkout/SessionsResource.d.ts +5 -0
  19. package/types/ConfirmationTokens.d.ts +70 -0
  20. package/types/CustomersResource.d.ts +19 -2
  21. package/types/EventTypes.d.ts +19 -2
  22. package/types/Events.d.ts +1 -0
  23. package/types/Forwarding/Requests.d.ts +5 -0
  24. package/types/InvoiceLineItems.d.ts +3 -0
  25. package/types/Invoices.d.ts +11 -1
  26. package/types/InvoicesResource.d.ts +24 -3
  27. package/types/Issuing/Authorizations.d.ts +1 -1
  28. package/types/Issuing/AuthorizationsResource.d.ts +1 -1
  29. package/types/Mandates.d.ts +8 -0
  30. package/types/Orders.d.ts +71 -1
  31. package/types/OrdersResource.d.ts +148 -2
  32. package/types/PaymentIntents.d.ts +140 -0
  33. package/types/PaymentIntentsResource.d.ts +680 -4
  34. package/types/PaymentMethodConfigurationsResource.d.ts +2 -2
  35. package/types/PaymentMethods.d.ts +70 -0
  36. package/types/PaymentMethodsResource.d.ts +70 -0
  37. package/types/Persons.d.ts +1 -1
  38. package/types/QuotePreviewInvoices.d.ts +11 -1
  39. package/types/SetupAttempts.d.ts +9 -0
  40. package/types/SetupIntents.d.ts +1 -0
  41. package/types/SetupIntentsResource.d.ts +147 -0
  42. package/types/SubscriptionsResource.d.ts +1 -1
  43. package/types/Tax/CalculationLineItems.d.ts +1 -0
  44. package/types/Tax/Calculations.d.ts +33 -1
  45. package/types/Tax/CalculationsResource.d.ts +7 -1
  46. package/types/Tax/Registrations.d.ts +82 -0
  47. package/types/Tax/RegistrationsResource.d.ts +109 -0
  48. package/types/Tax/Transactions.d.ts +8 -1
  49. package/types/TaxIds.d.ts +7 -1
  50. package/types/TaxIdsResource.d.ts +7 -1
  51. package/types/TaxRates.d.ts +25 -0
  52. package/types/TaxRatesResource.d.ts +2 -0
  53. package/types/TestHelpers/ConfirmationTokensResource.d.ts +49 -0
  54. package/types/TestHelpers/Issuing/CardsResource.d.ts +22 -0
  55. package/types/TokensResource.d.ts +1 -1
  56. package/types/Treasury/FinancialAccounts.d.ts +1 -1
  57. package/types/UsageRecordSummaries.d.ts +1 -1
  58. package/types/WebhookEndpointsResource.d.ts +2 -0
@@ -139,6 +139,11 @@ declare module 'stripe' {
139
139
  */
140
140
  interac_present?: PaymentMethodData.InteracPresent;
141
141
 
142
+ /**
143
+ * If this is a `kakao_pay` PaymentMethod, this hash contains details about the Kakao Pay payment method.
144
+ */
145
+ kakao_pay?: PaymentMethodData.KakaoPay;
146
+
142
147
  /**
143
148
  * If this is a `klarna` PaymentMethod, this hash contains details about the Klarna payment method.
144
149
  */
@@ -149,6 +154,11 @@ declare module 'stripe' {
149
154
  */
150
155
  konbini?: PaymentMethodData.Konbini;
151
156
 
157
+ /**
158
+ * If this is a `kr_card` PaymentMethod, this hash contains details about the Korean Card payment method.
159
+ */
160
+ kr_card?: PaymentMethodData.KrCard;
161
+
152
162
  /**
153
163
  * If this is an `Link` PaymentMethod, this hash contains details about the Link payment method.
154
164
  */
@@ -174,6 +184,11 @@ declare module 'stripe' {
174
184
  */
175
185
  multibanco?: PaymentMethodData.Multibanco;
176
186
 
187
+ /**
188
+ * If this is a `naver_pay` PaymentMethod, this hash contains details about the Naver Pay payment method.
189
+ */
190
+ naver_pay?: PaymentMethodData.NaverPay;
191
+
177
192
  /**
178
193
  * If this is an `oxxo` PaymentMethod, this hash contains details about the OXXO payment method.
179
194
  */
@@ -184,6 +199,11 @@ declare module 'stripe' {
184
199
  */
185
200
  p24?: PaymentMethodData.P24;
186
201
 
202
+ /**
203
+ * If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method.
204
+ */
205
+ payco?: PaymentMethodData.Payco;
206
+
187
207
  /**
188
208
  * If this is a `paynow` PaymentMethod, this hash contains details about the PayNow payment method.
189
209
  */
@@ -224,6 +244,11 @@ declare module 'stripe' {
224
244
  */
225
245
  revolut_pay?: PaymentMethodData.RevolutPay;
226
246
 
247
+ /**
248
+ * If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
249
+ */
250
+ samsung_pay?: PaymentMethodData.SamsungPay;
251
+
227
252
  /**
228
253
  * If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
229
254
  */
@@ -466,6 +491,8 @@ declare module 'stripe' {
466
491
 
467
492
  interface InteracPresent {}
468
493
 
494
+ interface KakaoPay {}
495
+
469
496
  interface Klarna {
470
497
  /**
471
498
  * Customer's date of birth
@@ -494,6 +521,8 @@ declare module 'stripe' {
494
521
 
495
522
  interface Konbini {}
496
523
 
524
+ interface KrCard {}
525
+
497
526
  interface Link {}
498
527
 
499
528
  interface MbWay {}
@@ -502,6 +531,17 @@ declare module 'stripe' {
502
531
 
503
532
  interface Multibanco {}
504
533
 
534
+ interface NaverPay {
535
+ /**
536
+ * Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`.
537
+ */
538
+ funding?: NaverPay.Funding;
539
+ }
540
+
541
+ namespace NaverPay {
542
+ type Funding = 'card' | 'points';
543
+ }
544
+
505
545
  interface Oxxo {}
506
546
 
507
547
  interface P24 {
@@ -541,6 +581,8 @@ declare module 'stripe' {
541
581
  | 'volkswagen_bank';
542
582
  }
543
583
 
584
+ interface Payco {}
585
+
544
586
  interface Paynow {}
545
587
 
546
588
  interface Paypal {}
@@ -601,6 +643,8 @@ declare module 'stripe' {
601
643
 
602
644
  interface RevolutPay {}
603
645
 
646
+ interface SamsungPay {}
647
+
604
648
  interface SepaDebit {
605
649
  /**
606
650
  * IBAN of the bank account.
@@ -641,14 +685,18 @@ declare module 'stripe' {
641
685
  | 'giropay'
642
686
  | 'grabpay'
643
687
  | 'ideal'
688
+ | 'kakao_pay'
644
689
  | 'klarna'
645
690
  | 'konbini'
691
+ | 'kr_card'
646
692
  | 'link'
647
693
  | 'mb_way'
648
694
  | 'mobilepay'
649
695
  | 'multibanco'
696
+ | 'naver_pay'
650
697
  | 'oxxo'
651
698
  | 'p24'
699
+ | 'payco'
652
700
  | 'paynow'
653
701
  | 'paypal'
654
702
  | 'payto'
@@ -656,6 +704,7 @@ declare module 'stripe' {
656
704
  | 'promptpay'
657
705
  | 'rechnung'
658
706
  | 'revolut_pay'
707
+ | 'samsung_pay'
659
708
  | 'sepa_debit'
660
709
  | 'sofort'
661
710
  | 'swish'
@@ -39,6 +39,15 @@ declare module 'stripe' {
39
39
  }
40
40
  }
41
41
 
42
+ namespace Issuing {
43
+ interface CardSubmitCardParams {
44
+ /**
45
+ * Specifies which fields in the response should be expanded.
46
+ */
47
+ expand?: Array<string>;
48
+ }
49
+ }
50
+
42
51
  namespace Issuing {
43
52
  class CardsResource {
44
53
  /**
@@ -92,6 +101,19 @@ declare module 'stripe' {
92
101
  id: string,
93
102
  options?: RequestOptions
94
103
  ): Promise<Stripe.Response<Stripe.Issuing.Card>>;
104
+
105
+ /**
106
+ * Updates the shipping status of the specified Issuing Card object to submitted. This method is only available with Stripe Version ‘2024-09-30.acacia' or above.
107
+ */
108
+ submitCard(
109
+ id: string,
110
+ params?: CardSubmitCardParams,
111
+ options?: RequestOptions
112
+ ): Promise<Stripe.Response<Stripe.Issuing.Card>>;
113
+ submitCard(
114
+ id: string,
115
+ options?: RequestOptions
116
+ ): Promise<Stripe.Response<Stripe.Issuing.Card>>;
95
117
  }
96
118
  }
97
119
  }
@@ -288,7 +288,7 @@ declare module 'stripe' {
288
288
  full_name_aliases?: Stripe.Emptyable<Array<string>>;
289
289
 
290
290
  /**
291
- * The individual's gender (International regulations require either "male" or "female").
291
+ * The individual's gender
292
292
  */
293
293
  gender?: string;
294
294
 
@@ -80,7 +80,7 @@ declare module 'stripe' {
80
80
  restricted_features?: Array<FinancialAccount.RestrictedFeature>;
81
81
 
82
82
  /**
83
- * The enum specifying what state the account is in.
83
+ * Status of this FinancialAccount.
84
84
  */
85
85
  status: FinancialAccount.Status;
86
86
 
@@ -3,7 +3,7 @@
3
3
  declare module 'stripe' {
4
4
  namespace Stripe {
5
5
  /**
6
- * The UsageRecordSummary object.
6
+ * A usage record summary represents an aggregated view of how much usage was accrued for a subscription item within a subscription billing period.
7
7
  */
8
8
  interface UsageRecordSummary {
9
9
  /**
@@ -339,6 +339,7 @@ declare module 'stripe' {
339
339
  | 'radar.early_fraud_warning.created'
340
340
  | 'radar.early_fraud_warning.updated'
341
341
  | 'refund.created'
342
+ | 'refund.failed'
342
343
  | 'refund.updated'
343
344
  | 'reporting.report_run.failed'
344
345
  | 'reporting.report_run.succeeded'
@@ -652,6 +653,7 @@ declare module 'stripe' {
652
653
  | 'radar.early_fraud_warning.created'
653
654
  | 'radar.early_fraud_warning.updated'
654
655
  | 'refund.created'
656
+ | 'refund.failed'
655
657
  | 'refund.updated'
656
658
  | 'reporting.report_run.failed'
657
659
  | 'reporting.report_run.succeeded'