@stripe/stripe-js 3.0.8 → 3.0.9

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/api/bank-accounts.d.mts +61 -0
  2. package/dist/api/bank-accounts.d.ts +61 -0
  3. package/dist/api/cards.d.mts +130 -0
  4. package/dist/api/cards.d.ts +130 -0
  5. package/dist/api/financial-connections.d.mts +232 -0
  6. package/dist/api/financial-connections.d.ts +232 -0
  7. package/dist/api/index.d.mts +11 -0
  8. package/dist/api/index.d.ts +11 -0
  9. package/dist/api/orders.d.mts +122 -0
  10. package/dist/api/orders.d.ts +122 -0
  11. package/dist/api/payment-intents.d.mts +330 -0
  12. package/dist/api/payment-intents.d.ts +330 -0
  13. package/dist/api/payment-methods.d.mts +452 -0
  14. package/dist/api/payment-methods.d.ts +452 -0
  15. package/dist/api/setup-intents.d.mts +184 -0
  16. package/dist/api/setup-intents.d.ts +184 -0
  17. package/dist/api/shared.d.mts +125 -0
  18. package/dist/api/shared.d.ts +125 -0
  19. package/dist/api/sources.d.mts +1045 -0
  20. package/dist/api/sources.d.ts +1045 -0
  21. package/dist/api/tokens.d.mts +639 -0
  22. package/dist/api/tokens.d.ts +639 -0
  23. package/dist/api/verification-sessions.d.mts +9 -0
  24. package/dist/api/verification-sessions.d.ts +9 -0
  25. package/dist/index.d.mts +4 -12792
  26. package/dist/index.d.ts +4 -12792
  27. package/dist/{stripe.js → index.js} +1 -1
  28. package/dist/{stripe.mjs → index.mjs} +1 -1
  29. package/dist/pure.d.mts +5 -0
  30. package/dist/pure.d.ts +5 -0
  31. package/dist/pure.js +204 -0
  32. package/dist/pure.mjs +200 -0
  33. package/dist/shared.d.mts +6 -0
  34. package/dist/shared.d.ts +6 -0
  35. package/dist/stripe-js/checkout.d.mts +153 -0
  36. package/dist/stripe-js/checkout.d.ts +153 -0
  37. package/dist/stripe-js/custom-checkout.d.mts +402 -0
  38. package/dist/stripe-js/custom-checkout.d.ts +402 -0
  39. package/dist/stripe-js/elements/address.d.mts +261 -0
  40. package/dist/stripe-js/elements/address.d.ts +261 -0
  41. package/dist/stripe-js/elements/affirm-message.d.mts +65 -0
  42. package/dist/stripe-js/elements/affirm-message.d.ts +65 -0
  43. package/dist/stripe-js/elements/afterpay-clearpay-message.d.mts +119 -0
  44. package/dist/stripe-js/elements/afterpay-clearpay-message.d.ts +119 -0
  45. package/dist/stripe-js/elements/apple-pay.d.mts +156 -0
  46. package/dist/stripe-js/elements/apple-pay.d.ts +156 -0
  47. package/dist/stripe-js/elements/au-bank-account.d.mts +138 -0
  48. package/dist/stripe-js/elements/au-bank-account.d.ts +138 -0
  49. package/dist/stripe-js/elements/base.d.mts +264 -0
  50. package/dist/stripe-js/elements/base.d.ts +264 -0
  51. package/dist/stripe-js/elements/card-cvc.d.mts +119 -0
  52. package/dist/stripe-js/elements/card-cvc.d.ts +119 -0
  53. package/dist/stripe-js/elements/card-expiry.d.mts +119 -0
  54. package/dist/stripe-js/elements/card-expiry.d.ts +119 -0
  55. package/dist/stripe-js/elements/card-number.d.mts +200 -0
  56. package/dist/stripe-js/elements/card-number.d.ts +200 -0
  57. package/dist/stripe-js/elements/card.d.mts +226 -0
  58. package/dist/stripe-js/elements/card.d.ts +226 -0
  59. package/dist/stripe-js/elements/cart.d.mts +224 -0
  60. package/dist/stripe-js/elements/cart.d.ts +224 -0
  61. package/dist/stripe-js/elements/eps-bank.d.mts +140 -0
  62. package/dist/stripe-js/elements/eps-bank.d.ts +140 -0
  63. package/dist/stripe-js/elements/express-checkout.d.mts +446 -0
  64. package/dist/stripe-js/elements/express-checkout.d.ts +446 -0
  65. package/dist/stripe-js/elements/fpx-bank.d.mts +134 -0
  66. package/dist/stripe-js/elements/fpx-bank.d.ts +134 -0
  67. package/dist/stripe-js/elements/iban.d.mts +135 -0
  68. package/dist/stripe-js/elements/iban.d.ts +135 -0
  69. package/dist/stripe-js/elements/ideal-bank.d.mts +140 -0
  70. package/dist/stripe-js/elements/ideal-bank.d.ts +140 -0
  71. package/dist/stripe-js/elements/index.d.mts +22 -0
  72. package/dist/stripe-js/elements/index.d.ts +22 -0
  73. package/dist/stripe-js/elements/issuing/index.d.mts +5 -0
  74. package/dist/stripe-js/elements/issuing/index.d.ts +5 -0
  75. package/dist/stripe-js/elements/issuing/issuing-card-copy-button.d.mts +37 -0
  76. package/dist/stripe-js/elements/issuing/issuing-card-copy-button.d.ts +37 -0
  77. package/dist/stripe-js/elements/issuing/issuing-card-cvc-display.d.mts +32 -0
  78. package/dist/stripe-js/elements/issuing/issuing-card-cvc-display.d.ts +32 -0
  79. package/dist/stripe-js/elements/issuing/issuing-card-expiry-display.d.mts +32 -0
  80. package/dist/stripe-js/elements/issuing/issuing-card-expiry-display.d.ts +32 -0
  81. package/dist/stripe-js/elements/issuing/issuing-card-number-display.d.mts +40 -0
  82. package/dist/stripe-js/elements/issuing/issuing-card-number-display.d.ts +40 -0
  83. package/dist/stripe-js/elements/issuing/issuing-card-pin-display.d.mts +32 -0
  84. package/dist/stripe-js/elements/issuing/issuing-card-pin-display.d.ts +32 -0
  85. package/dist/stripe-js/elements/link-authentication.d.mts +158 -0
  86. package/dist/stripe-js/elements/link-authentication.d.ts +158 -0
  87. package/dist/stripe-js/elements/p24-bank.d.mts +140 -0
  88. package/dist/stripe-js/elements/p24-bank.d.ts +140 -0
  89. package/dist/stripe-js/elements/payment-method-messaging.d.mts +98 -0
  90. package/dist/stripe-js/elements/payment-method-messaging.d.ts +98 -0
  91. package/dist/stripe-js/elements/payment-request-button.d.mts +151 -0
  92. package/dist/stripe-js/elements/payment-request-button.d.ts +151 -0
  93. package/dist/stripe-js/elements/payment.d.mts +275 -0
  94. package/dist/stripe-js/elements/payment.d.ts +275 -0
  95. package/dist/stripe-js/elements/shipping-address.d.mts +215 -0
  96. package/dist/stripe-js/elements/shipping-address.d.ts +215 -0
  97. package/dist/stripe-js/elements-group.d.mts +1129 -0
  98. package/dist/stripe-js/elements-group.d.ts +1129 -0
  99. package/dist/stripe-js/embedded-checkout.d.mts +35 -0
  100. package/dist/stripe-js/embedded-checkout.d.ts +35 -0
  101. package/dist/stripe-js/ephemeral-keys.d.mts +3 -0
  102. package/dist/stripe-js/ephemeral-keys.d.ts +3 -0
  103. package/dist/stripe-js/financial-connections.d.mts +19 -0
  104. package/dist/stripe-js/financial-connections.d.ts +19 -0
  105. package/dist/stripe-js/index.d.mts +13 -0
  106. package/dist/stripe-js/index.d.ts +13 -0
  107. package/dist/stripe-js/orders.d.mts +9 -0
  108. package/dist/stripe-js/orders.d.ts +9 -0
  109. package/dist/stripe-js/payment-intents.d.mts +1470 -0
  110. package/dist/stripe-js/payment-intents.d.ts +1470 -0
  111. package/dist/stripe-js/payment-request.d.mts +529 -0
  112. package/dist/stripe-js/payment-request.d.ts +529 -0
  113. package/dist/stripe-js/setup-intents.d.mts +250 -0
  114. package/dist/stripe-js/setup-intents.d.ts +250 -0
  115. package/dist/stripe-js/stripe.d.mts +1472 -0
  116. package/dist/stripe-js/stripe.d.ts +1472 -0
  117. package/dist/stripe-js/token-and-sources.d.mts +110 -0
  118. package/dist/stripe-js/token-and-sources.d.ts +110 -0
  119. package/dist/utils.d.mts +2 -0
  120. package/dist/utils.d.ts +2 -0
  121. package/lib/index.d.mts +1 -0
  122. package/lib/index.d.ts +1 -0
  123. package/lib/index.js +2 -0
  124. package/lib/index.mjs +1 -0
  125. package/package.json +11 -10
  126. package/pure/index.d.mts +1 -12771
  127. package/pure/index.d.ts +1 -12771
  128. package/pure/index.js +1 -204
  129. package/pure/index.mjs +1 -200
@@ -0,0 +1,61 @@
1
+ /**
2
+ * The BankAccount object.
3
+ */
4
+ export interface BankAccount {
5
+ /**
6
+ * Unique identifier for the object.
7
+ */
8
+ id: string;
9
+
10
+ /**
11
+ * String representing the object's type. Objects of the same type share the same value.
12
+ */
13
+ object: 'bank_account';
14
+
15
+ /**
16
+ * The name of the person or business that owns the bank account.
17
+ */
18
+ account_holder_name: string | null;
19
+
20
+ /**
21
+ * The type of entity that holds the account. This can be either `individual` or `company`.
22
+ */
23
+ account_holder_type: string | null;
24
+
25
+ /**
26
+ * Name of the bank associated with the routing number (e.g., `WELLS FARGO`).
27
+ */
28
+ bank_name: string | null;
29
+
30
+ /**
31
+ * Two-letter ISO code representing the country the bank account is located in.
32
+ */
33
+ country: string;
34
+
35
+ /**
36
+ * Three-letter [ISO code for the currency](https://stripe.com/docs/payouts) paid out to the bank account.
37
+ */
38
+ currency: string;
39
+
40
+ /**
41
+ * Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same.
42
+ */
43
+ fingerprint: string | null;
44
+
45
+ /**
46
+ * The last four digits of the bank account number.
47
+ */
48
+ last4: string;
49
+
50
+ /**
51
+ * The routing transit number for the bank account.
52
+ */
53
+ routing_number: string | null;
54
+
55
+ /**
56
+ * For bank accounts, possible values are `new`, `validated`, `verified`, `verification_failed`, or `errored`. A bank account that hasn't had any activity or validation performed is `new`. If Stripe can determine that the bank account exists, its status will be `validated`. Note that there often isn't enough information to know (e.g., for smaller credit unions), and the validation is not always run. If customer bank account verification has succeeded, the bank account status will be `verified`. If the verification failed for any reason, such as microdeposit failure, the status will be `verification_failed`. If a transfer sent to this bank account fails, we'll set the status to `errored` and will not continue to send transfers until the bank details are updated.
57
+ *
58
+ * For external accounts, possible values are `new` and `errored`. Validations aren't run against external accounts because they're only used for payouts. This means the other statuses don't apply. If a transfer fails, the status is set to `errored` and transfers are stopped until account details are updated.
59
+ */
60
+ status: string;
61
+ }
@@ -0,0 +1,61 @@
1
+ /**
2
+ * The BankAccount object.
3
+ */
4
+ export interface BankAccount {
5
+ /**
6
+ * Unique identifier for the object.
7
+ */
8
+ id: string;
9
+
10
+ /**
11
+ * String representing the object's type. Objects of the same type share the same value.
12
+ */
13
+ object: 'bank_account';
14
+
15
+ /**
16
+ * The name of the person or business that owns the bank account.
17
+ */
18
+ account_holder_name: string | null;
19
+
20
+ /**
21
+ * The type of entity that holds the account. This can be either `individual` or `company`.
22
+ */
23
+ account_holder_type: string | null;
24
+
25
+ /**
26
+ * Name of the bank associated with the routing number (e.g., `WELLS FARGO`).
27
+ */
28
+ bank_name: string | null;
29
+
30
+ /**
31
+ * Two-letter ISO code representing the country the bank account is located in.
32
+ */
33
+ country: string;
34
+
35
+ /**
36
+ * Three-letter [ISO code for the currency](https://stripe.com/docs/payouts) paid out to the bank account.
37
+ */
38
+ currency: string;
39
+
40
+ /**
41
+ * Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same.
42
+ */
43
+ fingerprint: string | null;
44
+
45
+ /**
46
+ * The last four digits of the bank account number.
47
+ */
48
+ last4: string;
49
+
50
+ /**
51
+ * The routing transit number for the bank account.
52
+ */
53
+ routing_number: string | null;
54
+
55
+ /**
56
+ * For bank accounts, possible values are `new`, `validated`, `verified`, `verification_failed`, or `errored`. A bank account that hasn't had any activity or validation performed is `new`. If Stripe can determine that the bank account exists, its status will be `validated`. Note that there often isn't enough information to know (e.g., for smaller credit unions), and the validation is not always run. If customer bank account verification has succeeded, the bank account status will be `verified`. If the verification failed for any reason, such as microdeposit failure, the status will be `verification_failed`. If a transfer sent to this bank account fails, we'll set the status to `errored` and will not continue to send transfers until the bank details are updated.
57
+ *
58
+ * For external accounts, possible values are `new` and `errored`. Validations aren't run against external accounts because they're only used for payouts. This means the other statuses don't apply. If a transfer fails, the status is set to `errored` and transfers are stopped until account details are updated.
59
+ */
60
+ status: string;
61
+ }
@@ -0,0 +1,130 @@
1
+ import {Metadata} from './shared';
2
+
3
+ /**
4
+ * The Card object.
5
+ */
6
+ export interface Card {
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: 'card';
16
+
17
+ /**
18
+ * City/District/Suburb/Town/Village.
19
+ */
20
+ address_city: string | null;
21
+
22
+ /**
23
+ * Billing address country, if provided when creating card.
24
+ */
25
+ address_country: string | null;
26
+
27
+ /**
28
+ * Address line 1 (Street address/PO Box/Company name).
29
+ */
30
+ address_line1: string | null;
31
+
32
+ /**
33
+ * If `address_line1` was provided, results of the check: `pass`, `fail`, `unavailable`, or `unchecked`.
34
+ */
35
+ address_line1_check: string | null;
36
+
37
+ /**
38
+ * Address line 2 (Apartment/Suite/Unit/Building).
39
+ */
40
+ address_line2: string | null;
41
+
42
+ /**
43
+ * State/County/Province/Region.
44
+ */
45
+ address_state: string | null;
46
+
47
+ /**
48
+ * ZIP or postal code.
49
+ */
50
+ address_zip: string | null;
51
+
52
+ /**
53
+ * If `address_zip` was provided, results of the check: `pass`, `fail`, `unavailable`, or `unchecked`.
54
+ */
55
+ address_zip_check: string | null;
56
+
57
+ /**
58
+ * Card brand. Can be `American Express`, `Diners Club`, `Discover`, `JCB`, `MasterCard`, `UnionPay`, `Visa`, or `Unknown`.
59
+ */
60
+ brand: string;
61
+
62
+ /**
63
+ * Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected.
64
+ */
65
+ country: string | null;
66
+
67
+ /**
68
+ * Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
69
+ */
70
+ currency?: string | null;
71
+
72
+ /**
73
+ * The customer that this card belongs to. This attribute will not be in the card object if the card belongs to an account or recipient instead.
74
+ */
75
+ customer?: string | null;
76
+
77
+ /**
78
+ * If a CVC was provided, results of the check: `pass`, `fail`, `unavailable`, or `unchecked`.
79
+ */
80
+ cvc_check: string | null;
81
+
82
+ /**
83
+ * (For tokenized numbers only.) The last four digits of the device account number.
84
+ */
85
+ dynamic_last4: string | null;
86
+
87
+ /**
88
+ * Two-digit number representing the card's expiration month.
89
+ */
90
+ exp_month: number;
91
+
92
+ /**
93
+ * Four-digit number representing the card's expiration year.
94
+ */
95
+ exp_year: number;
96
+
97
+ /**
98
+ * Uniquely identifies this particular card number. You can use this attribute to check whether two customers who've signed up with you are using the same card number, for example.
99
+ */
100
+ fingerprint?: string | null;
101
+
102
+ /**
103
+ * Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`.
104
+ */
105
+ funding: string;
106
+
107
+ /**
108
+ * The last four digits of the card.
109
+ */
110
+ last4: string;
111
+
112
+ /**
113
+ * 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.
114
+ */
115
+ metadata: Metadata;
116
+
117
+ /**
118
+ * Cardholder name.
119
+ */
120
+ name: string | null;
121
+
122
+ /**
123
+ * If the card number is tokenized, this is the method that was used. Can be `apple_pay` or `google_pay`.
124
+ */
125
+ tokenization_method: string | null;
126
+ }
127
+
128
+ export namespace Card {
129
+ export type AvailablePayoutMethod = 'instant' | 'standard';
130
+ }
@@ -0,0 +1,130 @@
1
+ import {Metadata} from './shared';
2
+
3
+ /**
4
+ * The Card object.
5
+ */
6
+ export interface Card {
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: 'card';
16
+
17
+ /**
18
+ * City/District/Suburb/Town/Village.
19
+ */
20
+ address_city: string | null;
21
+
22
+ /**
23
+ * Billing address country, if provided when creating card.
24
+ */
25
+ address_country: string | null;
26
+
27
+ /**
28
+ * Address line 1 (Street address/PO Box/Company name).
29
+ */
30
+ address_line1: string | null;
31
+
32
+ /**
33
+ * If `address_line1` was provided, results of the check: `pass`, `fail`, `unavailable`, or `unchecked`.
34
+ */
35
+ address_line1_check: string | null;
36
+
37
+ /**
38
+ * Address line 2 (Apartment/Suite/Unit/Building).
39
+ */
40
+ address_line2: string | null;
41
+
42
+ /**
43
+ * State/County/Province/Region.
44
+ */
45
+ address_state: string | null;
46
+
47
+ /**
48
+ * ZIP or postal code.
49
+ */
50
+ address_zip: string | null;
51
+
52
+ /**
53
+ * If `address_zip` was provided, results of the check: `pass`, `fail`, `unavailable`, or `unchecked`.
54
+ */
55
+ address_zip_check: string | null;
56
+
57
+ /**
58
+ * Card brand. Can be `American Express`, `Diners Club`, `Discover`, `JCB`, `MasterCard`, `UnionPay`, `Visa`, or `Unknown`.
59
+ */
60
+ brand: string;
61
+
62
+ /**
63
+ * Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected.
64
+ */
65
+ country: string | null;
66
+
67
+ /**
68
+ * Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
69
+ */
70
+ currency?: string | null;
71
+
72
+ /**
73
+ * The customer that this card belongs to. This attribute will not be in the card object if the card belongs to an account or recipient instead.
74
+ */
75
+ customer?: string | null;
76
+
77
+ /**
78
+ * If a CVC was provided, results of the check: `pass`, `fail`, `unavailable`, or `unchecked`.
79
+ */
80
+ cvc_check: string | null;
81
+
82
+ /**
83
+ * (For tokenized numbers only.) The last four digits of the device account number.
84
+ */
85
+ dynamic_last4: string | null;
86
+
87
+ /**
88
+ * Two-digit number representing the card's expiration month.
89
+ */
90
+ exp_month: number;
91
+
92
+ /**
93
+ * Four-digit number representing the card's expiration year.
94
+ */
95
+ exp_year: number;
96
+
97
+ /**
98
+ * Uniquely identifies this particular card number. You can use this attribute to check whether two customers who've signed up with you are using the same card number, for example.
99
+ */
100
+ fingerprint?: string | null;
101
+
102
+ /**
103
+ * Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`.
104
+ */
105
+ funding: string;
106
+
107
+ /**
108
+ * The last four digits of the card.
109
+ */
110
+ last4: string;
111
+
112
+ /**
113
+ * 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.
114
+ */
115
+ metadata: Metadata;
116
+
117
+ /**
118
+ * Cardholder name.
119
+ */
120
+ name: string | null;
121
+
122
+ /**
123
+ * If the card number is tokenized, this is the method that was used. Can be `apple_pay` or `google_pay`.
124
+ */
125
+ tokenization_method: string | null;
126
+ }
127
+
128
+ export namespace Card {
129
+ export type AvailablePayoutMethod = 'instant' | 'standard';
130
+ }
@@ -0,0 +1,232 @@
1
+ type SupportedPaymentMethodType = 'us_bank_account' | 'link';
2
+
3
+ interface CommonBalance {
4
+ /**
5
+ * The time that the external institution calculated this balance. Measured
6
+ * in seconds since the Unix epoch.
7
+ */
8
+ as_of: number;
9
+
10
+ /**
11
+ * The balances owed to (or by) the account holder.
12
+ *
13
+ * Each key is a three-letter ISO currency code, in lowercase.
14
+ *
15
+ * Each value is a integer amount. A positive amount indicates money owed to
16
+ * the account holder. A negative amount indicates money owed by the account
17
+ * holder.
18
+ */
19
+ current: {
20
+ [key: string]: number | undefined;
21
+ };
22
+ }
23
+
24
+ interface CashBalance {
25
+ /**
26
+ * Information on a `cash` balance. Only set if `balance.type` is `cash`.
27
+ */
28
+ cash: {
29
+ /**
30
+ * The funds available to the account holder. Typically this is the
31
+ * current balance less any holds.
32
+ *
33
+ * Each key is a three-letter ISO currency code, in lowercase.
34
+ *
35
+ * Each value is a integer amount. A positive amount indicates money owed
36
+ * to the account holder. A negative amount indicates money owed by the
37
+ * account holder.
38
+ */
39
+ available: {[key: string]: number | undefined};
40
+ };
41
+
42
+ type: 'cash';
43
+ }
44
+
45
+ interface CreditBalance {
46
+ /**
47
+ * Information on a `credit` balance. Only set if `balance.type` is `credit`.
48
+ */
49
+ credit: {
50
+ /**
51
+ * The credit that has been used by the account holder.
52
+ *
53
+ * Each key is a three-letter ISO currency code, in lowercase
54
+ *
55
+ * Each value is a integer amount. A positive amount indicates money owed
56
+ * to the account holder. A negative amount indicates money owed by the
57
+ * account holder.
58
+ */
59
+ used: {[key: string]: number | undefined};
60
+ };
61
+
62
+ type: 'credit';
63
+ }
64
+
65
+ type Balance = (CommonBalance & CashBalance) | (CommonBalance & CreditBalance);
66
+
67
+ interface BalanceRefresh {
68
+ /**
69
+ * The status of the Balance Refresh
70
+ */
71
+ status: 'pending' | 'succeeded' | 'failed';
72
+
73
+ /**
74
+ * Time at which the Balance Refresh was attempted. Measured in seconds since the Unix epoch.
75
+ */
76
+ last_attempted_at: number;
77
+ }
78
+
79
+ interface OwnershipRefresh {
80
+ /**
81
+ * The status of the Ownership Refresh
82
+ */
83
+ status: 'pending' | 'succeeded' | 'failed';
84
+
85
+ /**
86
+ * Time at which the Ownersip Refresh was attempted. Measured in seconds since the Unix epoch.
87
+ */
88
+ last_attempted_at: number;
89
+ }
90
+
91
+ /**
92
+ * The Financial Connections Session object
93
+ */
94
+ export interface FinancialConnectionsSession {
95
+ /**
96
+ * Unique identifier for the object.
97
+ */
98
+ id: string;
99
+
100
+ /**
101
+ * List of accounts collected by the Session
102
+ */
103
+ accounts: FinancialConnectionsSession.Account[];
104
+
105
+ /**
106
+ * Filters applied to the Session
107
+ */
108
+ filters?: FinancialConnectionsSession.Filters;
109
+
110
+ /**
111
+ * List of data permissions requested in the Session
112
+ */
113
+ permissions?: FinancialConnectionsSession.Permission[];
114
+
115
+ /**
116
+ * For webview integrations only. The user will be redirected to this URL to return to your app.
117
+ */
118
+ return_url?: string;
119
+ }
120
+
121
+ export namespace FinancialConnectionsSession {
122
+ /**
123
+ * The Financial Connections Account object
124
+ */
125
+ export interface Account {
126
+ /**
127
+ * Unique identifier for the object.
128
+ */
129
+ id: string;
130
+
131
+ /**
132
+ * String representing the object's type. `'linked_account'` is present for backwards-compatibility.
133
+ */
134
+ object: 'linked_account' | 'financial_connections.account';
135
+
136
+ /**
137
+ * The balance for this Account
138
+ */
139
+ balance: null | Balance;
140
+
141
+ /**
142
+ * The most recent Balance Refresh for this Account
143
+ */
144
+ balance_refresh: null | BalanceRefresh;
145
+
146
+ /**
147
+ * The type of the account.
148
+ */
149
+ category: 'cash' | 'credit' | 'investment' | 'other';
150
+
151
+ /**
152
+ * Time at which the object was created. Measured in seconds since the Unix epoch.
153
+ */
154
+ created: number;
155
+
156
+ /**
157
+ * A human-readable name that has been assigned to this account, either by the account holder or by the institution.
158
+ */
159
+ display_name: string;
160
+
161
+ /**
162
+ * The name of the institution that holds this account.
163
+ */
164
+ institution_name: string;
165
+
166
+ /**
167
+ * The last 4 digits of the account number. If present, this will be 4 numeric characters.
168
+ */
169
+ last4: string | null;
170
+
171
+ /**
172
+ * Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
173
+ */
174
+ livemode: boolean;
175
+
176
+ /**
177
+ * The ID of this account's Ownership resource.
178
+ */
179
+ ownership: string | null;
180
+
181
+ /**
182
+ * The most recent Ownership Refresh for this Account
183
+ */
184
+ ownership_refresh: null | OwnershipRefresh;
185
+
186
+ /**
187
+ * Permissions granted on this Account
188
+ */
189
+ permissions: Permission[];
190
+
191
+ /**
192
+ * The status of the Account
193
+ */
194
+ status: 'active' | 'inactive' | 'disconnected';
195
+
196
+ /**
197
+ * The sub-category of the Account
198
+ */
199
+ subcategory:
200
+ | 'checking'
201
+ | 'savings'
202
+ | 'mortgage'
203
+ | 'line_of_credit'
204
+ | 'credit_card'
205
+ | 'other';
206
+
207
+ /**
208
+ * The types of Payment Methods which can be set up by this Account
209
+ */
210
+ supported_payment_method_types: SupportedPaymentMethodType[];
211
+ }
212
+
213
+ /**
214
+ * Filters to restrict the kinds of accounts to collect.
215
+ */
216
+ export interface Filters {
217
+ /**
218
+ * List of countries from which to collect accounts.
219
+ */
220
+ countries?: string[];
221
+ }
222
+
223
+ /**
224
+ * Data features to which access can be requested
225
+ */
226
+ export type Permission =
227
+ | 'payment_method'
228
+ | 'balances'
229
+ | 'transactions'
230
+ | 'ownership'
231
+ | 'account_numbers';
232
+ }