@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,110 +0,0 @@
1
- import {SourceCreateParams} from '../api';
2
-
3
- /**
4
- * An object containing the unique ID and client secret for a `Source`.
5
- *
6
- * You can use a `Source` object created with `stripe.createSource` as the argument to `stripe.retrieveSource`, as every `Source` object has both `id` and `client_secret` keys.
7
- */
8
- export interface RetrieveSourceParam {
9
- /**
10
- * Unique identifier of the `Source`.
11
- */
12
- id: string;
13
-
14
- /**
15
- * A secret available to the web client that created the `Source`, for purposes of retrieving the `Source` later from that same client.
16
- */
17
- client_secret: string;
18
- }
19
-
20
- /**
21
- * An object containing additional payment information you might have collected.
22
- *
23
- * Although these fields are optional, we highly recommend collecting name and address.
24
- * This information can be used to perform a number of verifications, such as CVC, ZIP, and address verification.
25
- * Radar includes built-in rules that can block payments where the ZIP or CVC verifications with the cardholder’s bank failed.
26
- */
27
- export interface CreateTokenCardData {
28
- /**
29
- * @recommended
30
- */
31
- name?: string;
32
-
33
- address_line1?: string;
34
-
35
- address_line2?: string;
36
-
37
- address_city?: string;
38
-
39
- address_state?: string;
40
-
41
- address_zip?: string;
42
-
43
- /**
44
- * A two character country code (for example, `US`).
45
- *
46
- * @recommended
47
- */
48
- address_country?: string;
49
-
50
- /**
51
- * Required in order to [add the card to a Connect account](https://stripe.com/docs/connect/payouts#bank-accounts) (in all other cases, this parameter is not used).
52
- * Currently, the only supported currency for debit card payouts is `usd`.
53
- */
54
- currency?: string;
55
- }
56
-
57
- export interface CreateTokenIbanData {
58
- /**
59
- * Three character currency code (e.g., `eur`).
60
- */
61
- currency: string;
62
-
63
- account_holder_name: string;
64
-
65
- account_holder_type: string;
66
- }
67
-
68
- export interface CreateTokenPiiData {
69
- personal_id_number: string;
70
- }
71
-
72
- export interface CreateTokenBankAccountData {
73
- country: string;
74
-
75
- currency: string;
76
-
77
- routing_number?: string;
78
-
79
- account_number: string;
80
-
81
- account_holder_name?: string;
82
-
83
- account_holder_type: string;
84
-
85
- account_type?: string;
86
- }
87
-
88
- /**
89
- * A required object containing the `type` of `Source` you want to create, and any additional payment information that you have collected.
90
- * See the [Sources API](https://stripe.com/docs/api#create_source) reference for details.
91
- *
92
- * You cannot pass raw card information to `stripe.createSource(sourceData)`.
93
- * Instead, you must gather card information in an `Element` and use `stripe.createSource(element, sourceData)`.
94
- * You can also pass an existing card token to convert it into a `Source` object.
95
- */
96
- export interface CreateSourceData extends SourceCreateParams {
97
- bancontact?: CreateSourceData.DeprecatedMethodData;
98
-
99
- ideal?: CreateSourceData.DeprecatedMethodData;
100
-
101
- klarna?: CreateSourceData.DeprecatedMethodData;
102
-
103
- sepa_debit?: CreateSourceData.DeprecatedMethodData;
104
-
105
- sofort?: CreateSourceData.DeprecatedMethodData;
106
- }
107
-
108
- export namespace CreateSourceData {
109
- export type DeprecatedMethodData = Record<string, unknown>;
110
- }
package/types/utils.d.ts DELETED
@@ -1,2 +0,0 @@
1
- // Polyfill for TypeScript < 3.5 compatibility
2
- export type Omit<T, K extends keyof any> = Pick<T, Exclude<keyof T, K>>;