@stripe/stripe-js 3.0.2 → 3.0.4

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 (70) hide show
  1. package/README.md +11 -3
  2. package/dist/index.d.mts +12626 -0
  3. package/dist/index.d.ts +12626 -0
  4. package/dist/stripe.js +1 -1
  5. package/dist/stripe.mjs +1 -1
  6. package/package.json +5 -26
  7. package/pure/index.d.mts +12626 -0
  8. package/pure/index.d.ts +12626 -0
  9. package/{dist/pure.js → pure/index.js} +1 -1
  10. package/{dist/pure.mjs → pure/index.mjs} +1 -1
  11. package/types/.eslintrc.yml +0 -3
  12. package/types/api/bank-accounts.d.ts +0 -61
  13. package/types/api/cards.d.ts +0 -130
  14. package/types/api/financial-connections.d.ts +0 -232
  15. package/types/api/index.d.ts +0 -11
  16. package/types/api/orders.d.ts +0 -122
  17. package/types/api/payment-intents.d.ts +0 -330
  18. package/types/api/payment-methods.d.ts +0 -452
  19. package/types/api/setup-intents.d.ts +0 -184
  20. package/types/api/shared.d.ts +0 -125
  21. package/types/api/sources.d.ts +0 -1045
  22. package/types/api/tokens.d.ts +0 -639
  23. package/types/api/verification-sessions.d.ts +0 -9
  24. package/types/index.d.mts +0 -17
  25. package/types/index.d.ts +0 -17
  26. package/types/pure.d.mts +0 -5
  27. package/types/pure.d.ts +0 -5
  28. package/types/stripe-js/checkout.d.ts +0 -153
  29. package/types/stripe-js/custom-checkout.d.ts +0 -220
  30. package/types/stripe-js/elements/address.d.ts +0 -261
  31. package/types/stripe-js/elements/affirm-message.d.ts +0 -65
  32. package/types/stripe-js/elements/afterpay-clearpay-message.d.ts +0 -119
  33. package/types/stripe-js/elements/apple-pay.d.ts +0 -156
  34. package/types/stripe-js/elements/au-bank-account.d.ts +0 -138
  35. package/types/stripe-js/elements/base.d.ts +0 -264
  36. package/types/stripe-js/elements/card-cvc.d.ts +0 -119
  37. package/types/stripe-js/elements/card-expiry.d.ts +0 -119
  38. package/types/stripe-js/elements/card-number.d.ts +0 -200
  39. package/types/stripe-js/elements/card.d.ts +0 -226
  40. package/types/stripe-js/elements/cart.d.ts +0 -224
  41. package/types/stripe-js/elements/eps-bank.d.ts +0 -140
  42. package/types/stripe-js/elements/express-checkout.d.ts +0 -446
  43. package/types/stripe-js/elements/fpx-bank.d.ts +0 -134
  44. package/types/stripe-js/elements/iban.d.ts +0 -135
  45. package/types/stripe-js/elements/ideal-bank.d.ts +0 -140
  46. package/types/stripe-js/elements/index.d.ts +0 -22
  47. package/types/stripe-js/elements/issuing/index.d.ts +0 -5
  48. package/types/stripe-js/elements/issuing/issuing-card-copy-button.d.ts +0 -37
  49. package/types/stripe-js/elements/issuing/issuing-card-cvc-display.d.ts +0 -32
  50. package/types/stripe-js/elements/issuing/issuing-card-expiry-display.d.ts +0 -32
  51. package/types/stripe-js/elements/issuing/issuing-card-number-display.d.ts +0 -40
  52. package/types/stripe-js/elements/issuing/issuing-card-pin-display.d.ts +0 -32
  53. package/types/stripe-js/elements/link-authentication.d.ts +0 -158
  54. package/types/stripe-js/elements/p24-bank.d.ts +0 -140
  55. package/types/stripe-js/elements/payment-method-messaging.d.ts +0 -98
  56. package/types/stripe-js/elements/payment-request-button.d.ts +0 -151
  57. package/types/stripe-js/elements/payment.d.ts +0 -275
  58. package/types/stripe-js/elements/shipping-address.d.ts +0 -215
  59. package/types/stripe-js/elements-group.d.ts +0 -1129
  60. package/types/stripe-js/embedded-checkout.d.ts +0 -30
  61. package/types/stripe-js/ephemeral-keys.d.ts +0 -3
  62. package/types/stripe-js/financial-connections.d.ts +0 -19
  63. package/types/stripe-js/index.d.ts +0 -13
  64. package/types/stripe-js/orders.d.ts +0 -9
  65. package/types/stripe-js/payment-intents.d.ts +0 -1465
  66. package/types/stripe-js/payment-request.d.ts +0 -529
  67. package/types/stripe-js/setup-intents.d.ts +0 -250
  68. package/types/stripe-js/stripe.d.ts +0 -1472
  69. package/types/stripe-js/token-and-sources.d.ts +0 -110
  70. package/types/utils.d.ts +0 -2
@@ -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
- }