@stripe/stripe-js 3.0.9 → 3.0.10

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 (129) hide show
  1. package/dist/index.d.mts +12792 -4
  2. package/dist/index.d.ts +12792 -4
  3. package/dist/{index.js → stripe.js} +1 -1
  4. package/dist/{index.mjs → stripe.mjs} +1 -1
  5. package/package.json +10 -11
  6. package/pure/index.d.mts +12771 -1
  7. package/pure/index.d.ts +12771 -1
  8. package/pure/index.js +204 -1
  9. package/pure/index.mjs +200 -1
  10. package/dist/api/bank-accounts.d.mts +0 -61
  11. package/dist/api/bank-accounts.d.ts +0 -61
  12. package/dist/api/cards.d.mts +0 -130
  13. package/dist/api/cards.d.ts +0 -130
  14. package/dist/api/financial-connections.d.mts +0 -232
  15. package/dist/api/financial-connections.d.ts +0 -232
  16. package/dist/api/index.d.mts +0 -11
  17. package/dist/api/index.d.ts +0 -11
  18. package/dist/api/orders.d.mts +0 -122
  19. package/dist/api/orders.d.ts +0 -122
  20. package/dist/api/payment-intents.d.mts +0 -330
  21. package/dist/api/payment-intents.d.ts +0 -330
  22. package/dist/api/payment-methods.d.mts +0 -452
  23. package/dist/api/payment-methods.d.ts +0 -452
  24. package/dist/api/setup-intents.d.mts +0 -184
  25. package/dist/api/setup-intents.d.ts +0 -184
  26. package/dist/api/shared.d.mts +0 -125
  27. package/dist/api/shared.d.ts +0 -125
  28. package/dist/api/sources.d.mts +0 -1045
  29. package/dist/api/sources.d.ts +0 -1045
  30. package/dist/api/tokens.d.mts +0 -639
  31. package/dist/api/tokens.d.ts +0 -639
  32. package/dist/api/verification-sessions.d.mts +0 -9
  33. package/dist/api/verification-sessions.d.ts +0 -9
  34. package/dist/pure.d.mts +0 -5
  35. package/dist/pure.d.ts +0 -5
  36. package/dist/pure.js +0 -204
  37. package/dist/pure.mjs +0 -200
  38. package/dist/shared.d.mts +0 -6
  39. package/dist/shared.d.ts +0 -6
  40. package/dist/stripe-js/checkout.d.mts +0 -153
  41. package/dist/stripe-js/checkout.d.ts +0 -153
  42. package/dist/stripe-js/custom-checkout.d.mts +0 -402
  43. package/dist/stripe-js/custom-checkout.d.ts +0 -402
  44. package/dist/stripe-js/elements/address.d.mts +0 -261
  45. package/dist/stripe-js/elements/address.d.ts +0 -261
  46. package/dist/stripe-js/elements/affirm-message.d.mts +0 -65
  47. package/dist/stripe-js/elements/affirm-message.d.ts +0 -65
  48. package/dist/stripe-js/elements/afterpay-clearpay-message.d.mts +0 -119
  49. package/dist/stripe-js/elements/afterpay-clearpay-message.d.ts +0 -119
  50. package/dist/stripe-js/elements/apple-pay.d.mts +0 -156
  51. package/dist/stripe-js/elements/apple-pay.d.ts +0 -156
  52. package/dist/stripe-js/elements/au-bank-account.d.mts +0 -138
  53. package/dist/stripe-js/elements/au-bank-account.d.ts +0 -138
  54. package/dist/stripe-js/elements/base.d.mts +0 -264
  55. package/dist/stripe-js/elements/base.d.ts +0 -264
  56. package/dist/stripe-js/elements/card-cvc.d.mts +0 -119
  57. package/dist/stripe-js/elements/card-cvc.d.ts +0 -119
  58. package/dist/stripe-js/elements/card-expiry.d.mts +0 -119
  59. package/dist/stripe-js/elements/card-expiry.d.ts +0 -119
  60. package/dist/stripe-js/elements/card-number.d.mts +0 -200
  61. package/dist/stripe-js/elements/card-number.d.ts +0 -200
  62. package/dist/stripe-js/elements/card.d.mts +0 -226
  63. package/dist/stripe-js/elements/card.d.ts +0 -226
  64. package/dist/stripe-js/elements/cart.d.mts +0 -224
  65. package/dist/stripe-js/elements/cart.d.ts +0 -224
  66. package/dist/stripe-js/elements/eps-bank.d.mts +0 -140
  67. package/dist/stripe-js/elements/eps-bank.d.ts +0 -140
  68. package/dist/stripe-js/elements/express-checkout.d.mts +0 -446
  69. package/dist/stripe-js/elements/express-checkout.d.ts +0 -446
  70. package/dist/stripe-js/elements/fpx-bank.d.mts +0 -134
  71. package/dist/stripe-js/elements/fpx-bank.d.ts +0 -134
  72. package/dist/stripe-js/elements/iban.d.mts +0 -135
  73. package/dist/stripe-js/elements/iban.d.ts +0 -135
  74. package/dist/stripe-js/elements/ideal-bank.d.mts +0 -140
  75. package/dist/stripe-js/elements/ideal-bank.d.ts +0 -140
  76. package/dist/stripe-js/elements/index.d.mts +0 -22
  77. package/dist/stripe-js/elements/index.d.ts +0 -22
  78. package/dist/stripe-js/elements/issuing/index.d.mts +0 -5
  79. package/dist/stripe-js/elements/issuing/index.d.ts +0 -5
  80. package/dist/stripe-js/elements/issuing/issuing-card-copy-button.d.mts +0 -37
  81. package/dist/stripe-js/elements/issuing/issuing-card-copy-button.d.ts +0 -37
  82. package/dist/stripe-js/elements/issuing/issuing-card-cvc-display.d.mts +0 -32
  83. package/dist/stripe-js/elements/issuing/issuing-card-cvc-display.d.ts +0 -32
  84. package/dist/stripe-js/elements/issuing/issuing-card-expiry-display.d.mts +0 -32
  85. package/dist/stripe-js/elements/issuing/issuing-card-expiry-display.d.ts +0 -32
  86. package/dist/stripe-js/elements/issuing/issuing-card-number-display.d.mts +0 -40
  87. package/dist/stripe-js/elements/issuing/issuing-card-number-display.d.ts +0 -40
  88. package/dist/stripe-js/elements/issuing/issuing-card-pin-display.d.mts +0 -32
  89. package/dist/stripe-js/elements/issuing/issuing-card-pin-display.d.ts +0 -32
  90. package/dist/stripe-js/elements/link-authentication.d.mts +0 -158
  91. package/dist/stripe-js/elements/link-authentication.d.ts +0 -158
  92. package/dist/stripe-js/elements/p24-bank.d.mts +0 -140
  93. package/dist/stripe-js/elements/p24-bank.d.ts +0 -140
  94. package/dist/stripe-js/elements/payment-method-messaging.d.mts +0 -98
  95. package/dist/stripe-js/elements/payment-method-messaging.d.ts +0 -98
  96. package/dist/stripe-js/elements/payment-request-button.d.mts +0 -151
  97. package/dist/stripe-js/elements/payment-request-button.d.ts +0 -151
  98. package/dist/stripe-js/elements/payment.d.mts +0 -275
  99. package/dist/stripe-js/elements/payment.d.ts +0 -275
  100. package/dist/stripe-js/elements/shipping-address.d.mts +0 -215
  101. package/dist/stripe-js/elements/shipping-address.d.ts +0 -215
  102. package/dist/stripe-js/elements-group.d.mts +0 -1129
  103. package/dist/stripe-js/elements-group.d.ts +0 -1129
  104. package/dist/stripe-js/embedded-checkout.d.mts +0 -35
  105. package/dist/stripe-js/embedded-checkout.d.ts +0 -35
  106. package/dist/stripe-js/ephemeral-keys.d.mts +0 -3
  107. package/dist/stripe-js/ephemeral-keys.d.ts +0 -3
  108. package/dist/stripe-js/financial-connections.d.mts +0 -19
  109. package/dist/stripe-js/financial-connections.d.ts +0 -19
  110. package/dist/stripe-js/index.d.mts +0 -13
  111. package/dist/stripe-js/index.d.ts +0 -13
  112. package/dist/stripe-js/orders.d.mts +0 -9
  113. package/dist/stripe-js/orders.d.ts +0 -9
  114. package/dist/stripe-js/payment-intents.d.mts +0 -1470
  115. package/dist/stripe-js/payment-intents.d.ts +0 -1470
  116. package/dist/stripe-js/payment-request.d.mts +0 -529
  117. package/dist/stripe-js/payment-request.d.ts +0 -529
  118. package/dist/stripe-js/setup-intents.d.mts +0 -250
  119. package/dist/stripe-js/setup-intents.d.ts +0 -250
  120. package/dist/stripe-js/stripe.d.mts +0 -1472
  121. package/dist/stripe-js/stripe.d.ts +0 -1472
  122. package/dist/stripe-js/token-and-sources.d.mts +0 -110
  123. package/dist/stripe-js/token-and-sources.d.ts +0 -110
  124. package/dist/utils.d.mts +0 -2
  125. package/dist/utils.d.ts +0 -2
  126. package/lib/index.d.mts +0 -1
  127. package/lib/index.d.ts +0 -1
  128. package/lib/index.js +0 -2
  129. package/lib/index.mjs +0 -1
@@ -1,184 +0,0 @@
1
- import {PaymentMethod} from './payment-methods';
2
-
3
- /**
4
- * The SetupIntent object.
5
- */
6
- export interface SetupIntent {
7
- /**
8
- * Unique identifier for the object.
9
- */
10
- id: string;
11
-
12
- /**
13
- * String representing the object's type. Objects of the same type share the same value.
14
- */
15
- object: 'setup_intent';
16
-
17
- /**
18
- * Reason for cancellation of this SetupIntent, one of `abandoned`, `requested_by_customer`, or `duplicate`.
19
- */
20
- cancellation_reason: SetupIntent.CancellationReason | null;
21
-
22
- /**
23
- * The client secret of this SetupIntent. Used for client-side retrieval using a publishable key.
24
- *
25
- * The client secret can be used to complete payment setup from your frontend. It should not be stored, logged, embedded in URLs, or exposed to anyone other than the customer. Make sure that you have TLS enabled on any page that includes the client secret.
26
- */
27
- client_secret: string | null;
28
-
29
- /**
30
- * Time at which the object was created. Measured in seconds since the Unix epoch.
31
- */
32
- created: number;
33
-
34
- /**
35
- * An arbitrary string attached to the object. Often useful for displaying to users.
36
- */
37
- description: string | null;
38
-
39
- /**
40
- * The error encountered in the previous SetupIntent confirmation.
41
- */
42
- last_setup_error: SetupIntent.LastSetupError | null;
43
-
44
- /**
45
- * Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
46
- */
47
- livemode: boolean;
48
-
49
- /**
50
- * If present, this property tells you what actions you need to take in order for your customer to continue payment setup.
51
- */
52
- next_action: SetupIntent.NextAction | null;
53
-
54
- /**
55
- * ID of the payment method used with this SetupIntent, or the PaymentMethod itself if this field is expanded.
56
- */
57
- payment_method: string | null | PaymentMethod;
58
-
59
- /**
60
- * The list of payment method types (e.g. card) that this SetupIntent is allowed to set up.
61
- */
62
- payment_method_types: Array<string>;
63
-
64
- /**
65
- * [Status](https://stripe.com/docs/payments/intents#intent-statuses) of this SetupIntent, one of `requires_payment_method`, `requires_confirmation`, `requires_action`, `processing`, `canceled`, or `succeeded`.
66
- */
67
- status: SetupIntent.Status;
68
-
69
- /**
70
- * Indicates how the payment method is intended to be used in the future.
71
- *
72
- * Use `on_session` if you intend to only reuse the payment method when the customer is in your checkout flow. Use `off_session` if your customer may or may not be in your checkout flow. If not provided, this value defaults to `off_session`.
73
- */
74
- usage: string;
75
- }
76
-
77
- export namespace SetupIntent {
78
- export type CancellationReason =
79
- | 'abandoned'
80
- | 'duplicate'
81
- | 'requested_by_customer';
82
-
83
- export interface LastSetupError {
84
- /**
85
- * For card errors, the ID of the failed charge.
86
- */
87
- charge?: string;
88
-
89
- /**
90
- * For some errors that could be handled programmatically, a short string indicating the [error code](https://stripe.com/docs/error-codes) reported.
91
- */
92
- code?: string;
93
-
94
- /**
95
- * For card errors resulting from a card issuer decline, a short string indicating the [card issuer's reason for the decline](https://stripe.com/docs/declines#issuer-declines) if they provide one.
96
- */
97
- decline_code?: string;
98
-
99
- /**
100
- * A URL to more information about the [error code](https://stripe.com/docs/error-codes) reported.
101
- */
102
- doc_url?: string;
103
-
104
- /**
105
- * A human-readable message providing more details about the error. For card errors, these messages can be shown to your users.
106
- */
107
- message?: string;
108
-
109
- /**
110
- * If the error is parameter-specific, the parameter related to the error. For example, you can use this to display a message near the correct form field.
111
- */
112
- param?: string;
113
-
114
- payment_method?: PaymentMethod;
115
-
116
- /**
117
- * The type of error returned. One of `api_connection_error`, `api_error`, `authentication_error`, `card_error`, `idempotency_error`, `invalid_request_error`, or `rate_limit_error`
118
- */
119
- type: LastSetupError.Type;
120
- }
121
-
122
- export namespace LastSetupError {
123
- export type Type =
124
- | 'api_connection_error'
125
- | 'api_error'
126
- | 'authentication_error'
127
- | 'card_error'
128
- | 'idempotency_error'
129
- | 'invalid_request_error'
130
- | 'rate_limit_error';
131
- }
132
-
133
- export interface NextAction {
134
- redirect_to_url?: NextAction.RedirectToUrl;
135
-
136
- /**
137
- * Type of the next action to perform, one of `redirect_to_url` or `use_stripe_sdk`.
138
- */
139
- type: string;
140
-
141
- /**
142
- * When confirming a SetupIntent with Stripe.js, Stripe.js depends on the contents of this dictionary to invoke authentication flows. The shape of the contents is subject to change and is only intended to be used by Stripe.js.
143
- */
144
- use_stripe_sdk?: NextAction.UseStripeSdk;
145
- }
146
-
147
- export namespace NextAction {
148
- export interface RedirectToUrl {
149
- /**
150
- * If the customer does not exit their browser while authenticating, they will be redirected to this specified URL after completion.
151
- */
152
- return_url: string | null;
153
-
154
- /**
155
- * The URL you must redirect your customer to in order to authenticate.
156
- */
157
- url: string | null;
158
- }
159
-
160
- export interface UseStripeSdk {}
161
- }
162
-
163
- export type Status =
164
- | 'canceled'
165
- | 'processing'
166
- | 'requires_action'
167
- | 'requires_confirmation'
168
- | 'requires_payment_method'
169
- | 'succeeded';
170
- }
171
-
172
- export interface SetupIntentConfirmParams {
173
- /**
174
- * This hash contains details about the Mandate to create
175
- */
176
- mandate_data?: {[k: string]: any};
177
-
178
- /**
179
- * The URL to redirect your customer back to after they authenticate on the payment method's app or site.
180
- * If you'd prefer to redirect to a mobile application, you can alternatively supply an application URI scheme.
181
- * This parameter is only used for cards and other redirect-based payment methods.
182
- */
183
- return_url?: string;
184
- }
@@ -1,125 +0,0 @@
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;
125
- }
@@ -1,125 +0,0 @@
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;
125
- }