@stripe/stripe-js 1.20.3 → 1.21.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 (53) hide show
  1. package/dist/pure.esm.js +1 -1
  2. package/dist/pure.js +1 -1
  3. package/dist/stripe.esm.js +1 -1
  4. package/dist/stripe.js +1 -1
  5. package/package.json +5 -5
  6. package/src/shared.ts +1 -2
  7. package/types/api/bank-accounts.d.ts +61 -0
  8. package/types/api/cards.d.ts +130 -0
  9. package/types/api/index.d.ts +9 -9
  10. package/types/api/payment-intents.d.ts +330 -0
  11. package/types/api/payment-methods.d.ts +349 -0
  12. package/types/api/setup-intents.d.ts +184 -0
  13. package/types/api/shared.d.ts +124 -126
  14. package/types/api/sources.d.ts +1045 -0
  15. package/types/api/tokens.d.ts +634 -0
  16. package/types/api/verification-sessions.d.ts +9 -0
  17. package/types/index.d.ts +14 -12
  18. package/types/stripe-js/checkout.d.ts +134 -136
  19. package/types/stripe-js/elements/affirm-message.d.ts +59 -61
  20. package/types/stripe-js/elements/afterpay-clearpay-message.d.ts +118 -120
  21. package/types/stripe-js/elements/au-bank-account.d.ts +123 -120
  22. package/types/stripe-js/elements/base.d.ts +263 -263
  23. package/types/stripe-js/elements/card-cvc.d.ts +107 -103
  24. package/types/stripe-js/elements/card-expiry.d.ts +107 -104
  25. package/types/stripe-js/elements/card-number.d.ts +128 -125
  26. package/types/stripe-js/elements/card.d.ts +157 -154
  27. package/types/stripe-js/elements/eps-bank.d.ts +125 -121
  28. package/types/stripe-js/elements/fpx-bank.d.ts +120 -116
  29. package/types/stripe-js/elements/iban.d.ts +134 -131
  30. package/types/stripe-js/elements/ideal-bank.d.ts +125 -121
  31. package/types/stripe-js/elements/index.d.ts +17 -0
  32. package/types/stripe-js/elements/link-authentication.d.ts +92 -94
  33. package/types/stripe-js/elements/p24-bank.d.ts +125 -121
  34. package/types/stripe-js/elements/payment-request-button.d.ts +127 -127
  35. package/types/stripe-js/elements/payment.d.ts +190 -180
  36. package/types/stripe-js/elements/shipping-address.d.ts +123 -125
  37. package/types/stripe-js/elements-group.d.ts +617 -0
  38. package/types/stripe-js/index.d.ts +7 -1069
  39. package/types/stripe-js/payment-intents.d.ts +951 -919
  40. package/types/stripe-js/payment-request.d.ts +503 -503
  41. package/types/stripe-js/setup-intents.d.ts +149 -135
  42. package/types/stripe-js/stripe.d.ts +1070 -0
  43. package/types/stripe-js/token-and-sources.d.ts +80 -80
  44. package/types/utils.d.ts +2 -0
  45. package/types/api/BankAccounts.d.ts +0 -63
  46. package/types/api/Cards.d.ts +0 -130
  47. package/types/api/PaymentIntents.d.ts +0 -329
  48. package/types/api/PaymentMethods.d.ts +0 -349
  49. package/types/api/SetupIntents.d.ts +0 -184
  50. package/types/api/Sources.d.ts +0 -1045
  51. package/types/api/Tokens.d.ts +0 -632
  52. package/types/api/VerificationSessions.d.ts +0 -11
  53. package/types/stripe-js/elements.d.ts +0 -604
@@ -1,127 +1,125 @@
1
- declare module '@stripe/stripe-js' {
2
- /**
3
- * Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
4
- */
5
- interface Metadata {
6
- [name: string]: string;
7
- }
8
-
9
- /**
10
- * Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
11
- * While you can send values as numbers, they will be returned as strings.
12
- */
13
- interface MetadataParam {
14
- [name: string]: string | number | null;
15
- }
16
-
17
- /**
18
- * The Address object.
19
- */
20
- interface Address {
21
- /**
22
- * City/District/Suburb/Town/Village.
23
- */
24
- city: string | null;
25
-
26
- /**
27
- * 2-letter country code.
28
- */
29
- country: string | null;
30
-
31
- /**
32
- * Address line 1 (Street address/PO Box/Company name).
33
- */
34
- line1: string | null;
35
-
36
- /**
37
- * Address line 2 (Apartment/Suite/Unit/Building).
38
- */
39
- line2: string | null;
40
-
41
- /**
42
- * ZIP or postal code.
43
- */
44
- postal_code: string | null;
45
-
46
- /**
47
- * State/County/Province/Region.
48
- */
49
- state: string | null;
50
- }
51
-
52
- interface AccountAddressParam {
53
- /**
54
- * City, district, suburb, town, or village.
55
- */
56
- city?: string;
57
-
58
- /**
59
- * Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
60
- */
61
- country?: string;
62
-
63
- /**
64
- * Address line 1 (e.g., street, PO Box, or company name).
65
- */
66
- line1?: string;
67
-
68
- /**
69
- * Address line 2 (e.g., apartment, suite, unit, or building).
70
- */
71
- line2?: string;
72
-
73
- /**
74
- * ZIP or postal code.
75
- */
76
- postal_code?: string;
77
-
78
- /**
79
- * State, county, province, or region.
80
- */
81
- state?: string;
82
- }
83
-
84
- interface AddressParam extends AccountAddressParam {
85
- /**
86
- * Address line 1 (e.g., street, PO Box, or company name).
87
- */
88
- line1: string;
89
- }
90
-
91
- interface JapanAddressParam {
92
- /**
93
- * City or ward.
94
- */
95
- city?: string;
96
-
97
- /**
98
- * Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
99
- */
100
- country?: string;
101
-
102
- /**
103
- * Block or building number.
104
- */
105
- line1?: string;
106
-
107
- /**
108
- * Building details.
109
- */
110
- line2?: string;
111
-
112
- /**
113
- * Postal code.
114
- */
115
- postal_code?: string;
116
-
117
- /**
118
- * Prefecture.
119
- */
120
- state?: string;
121
-
122
- /**
123
- * Town or cho-me.
124
- */
125
- town?: string;
126
- }
1
+ /**
2
+ * Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
3
+ */
4
+ export interface Metadata {
5
+ [name: string]: string;
6
+ }
7
+
8
+ /**
9
+ * Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
10
+ * While you can send values as numbers, they will be returned as strings.
11
+ */
12
+ export interface MetadataParam {
13
+ [name: string]: string | number | null;
14
+ }
15
+
16
+ /**
17
+ * The Address object.
18
+ */
19
+ export interface Address {
20
+ /**
21
+ * City/District/Suburb/Town/Village.
22
+ */
23
+ city: string | null;
24
+
25
+ /**
26
+ * 2-letter country code.
27
+ */
28
+ country: string | null;
29
+
30
+ /**
31
+ * Address line 1 (Street address/PO Box/Company name).
32
+ */
33
+ line1: string | null;
34
+
35
+ /**
36
+ * Address line 2 (Apartment/Suite/Unit/Building).
37
+ */
38
+ line2: string | null;
39
+
40
+ /**
41
+ * ZIP or postal code.
42
+ */
43
+ postal_code: string | null;
44
+
45
+ /**
46
+ * State/County/Province/Region.
47
+ */
48
+ state: string | null;
49
+ }
50
+
51
+ export interface AccountAddressParam {
52
+ /**
53
+ * City, district, suburb, town, or village.
54
+ */
55
+ city?: string;
56
+
57
+ /**
58
+ * Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
59
+ */
60
+ country?: string;
61
+
62
+ /**
63
+ * Address line 1 (e.g., street, PO Box, or company name).
64
+ */
65
+ line1?: string;
66
+
67
+ /**
68
+ * Address line 2 (e.g., apartment, suite, unit, or building).
69
+ */
70
+ line2?: string;
71
+
72
+ /**
73
+ * ZIP or postal code.
74
+ */
75
+ postal_code?: string;
76
+
77
+ /**
78
+ * State, county, province, or region.
79
+ */
80
+ state?: string;
81
+ }
82
+
83
+ export interface AddressParam extends AccountAddressParam {
84
+ /**
85
+ * Address line 1 (e.g., street, PO Box, or company name).
86
+ */
87
+ line1: string;
88
+ }
89
+
90
+ export interface JapanAddressParam {
91
+ /**
92
+ * City or ward.
93
+ */
94
+ city?: string;
95
+
96
+ /**
97
+ * Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
98
+ */
99
+ country?: string;
100
+
101
+ /**
102
+ * Block or building number.
103
+ */
104
+ line1?: string;
105
+
106
+ /**
107
+ * Building details.
108
+ */
109
+ line2?: string;
110
+
111
+ /**
112
+ * Postal code.
113
+ */
114
+ postal_code?: string;
115
+
116
+ /**
117
+ * Prefecture.
118
+ */
119
+ state?: string;
120
+
121
+ /**
122
+ * Town or cho-me.
123
+ */
124
+ town?: string;
127
125
  }