stripe 19.2.0-beta.1 → 19.3.0-alpha.1
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.
- package/CHANGELOG.md +300 -1
- package/OPENAPI_VERSION +1 -1
- package/VERSION +1 -1
- package/cjs/resources/DelegatedCheckout/RequestedSessions.js +28 -0
- package/cjs/resources/Identity/BlocklistEntries.js +25 -0
- package/cjs/resources/PaymentMethods.js +4 -0
- package/cjs/resources/PaymentRecords.js +4 -0
- package/cjs/resources/V2/Billing/CustomPricingUnits.js +25 -0
- package/cjs/resources/V2/Billing/Intents/Actions.js +17 -0
- package/cjs/resources/V2/Billing/Intents.js +36 -0
- package/cjs/resources/V2/Billing/LicenseFeeSubscriptions.js +12 -0
- package/cjs/resources/V2/Billing/LicenseFees/Versions.js +17 -0
- package/cjs/resources/V2/Billing/LicenseFees.js +27 -0
- package/cjs/resources/V2/Billing/LicensedItems.js +25 -0
- package/cjs/resources/V2/Billing/MeteredItems.js +22 -0
- package/cjs/resources/V2/Billing/PricingPlanSubscriptions/Components.js +12 -0
- package/cjs/resources/V2/Billing/PricingPlanSubscriptions.js +26 -0
- package/cjs/resources/V2/Billing/PricingPlans/Components.js +29 -0
- package/cjs/resources/V2/Billing/PricingPlans/Versions.js +17 -0
- package/cjs/resources/V2/Billing/PricingPlans.js +29 -0
- package/cjs/resources/V2/Billing/RateCardSubscriptions.js +29 -0
- package/cjs/resources/V2/Billing/RateCards/Rates.js +25 -0
- package/cjs/resources/V2/Billing/RateCards/Versions.js +17 -0
- package/cjs/resources/V2/Billing/RateCards.js +29 -0
- package/cjs/resources/V2/Billing/ServiceActions.js +20 -0
- package/cjs/resources/V2/Core/ClaimableSandboxes.js +16 -0
- package/cjs/resources/V2/Core/Vault/GbBankAccounts.js +5 -0
- package/cjs/resources/V2/Core/Vault/UsBankAccounts.js +13 -0
- package/cjs/resources/V2/MoneyManagement/FinancialAccounts.js +4 -0
- package/cjs/resources/V2/MoneyManagement/RecipientVerifications.js +20 -0
- package/cjs/resources/V2/Tax/AutomaticRules.js +22 -0
- package/cjs/resources/V2/TestHelpers/MoneyManagement.js +12 -0
- package/cjs/resources.js +37 -1
- package/cjs/stripe.core.js +1 -1
- package/esm/resources/DelegatedCheckout/RequestedSessions.js +25 -0
- package/esm/resources/Identity/BlocklistEntries.js +22 -0
- package/esm/resources/PaymentMethods.js +4 -0
- package/esm/resources/PaymentRecords.js +4 -0
- package/esm/resources/V2/Billing/CustomPricingUnits.js +22 -0
- package/esm/resources/V2/Billing/Intents/Actions.js +14 -0
- package/esm/resources/V2/Billing/Intents.js +33 -0
- package/esm/resources/V2/Billing/LicenseFeeSubscriptions.js +9 -0
- package/esm/resources/V2/Billing/LicenseFees/Versions.js +14 -0
- package/esm/resources/V2/Billing/LicenseFees.js +24 -0
- package/esm/resources/V2/Billing/LicensedItems.js +22 -0
- package/esm/resources/V2/Billing/MeteredItems.js +19 -0
- package/esm/resources/V2/Billing/PricingPlanSubscriptions/Components.js +9 -0
- package/esm/resources/V2/Billing/PricingPlanSubscriptions.js +23 -0
- package/esm/resources/V2/Billing/PricingPlans/Components.js +26 -0
- package/esm/resources/V2/Billing/PricingPlans/Versions.js +14 -0
- package/esm/resources/V2/Billing/PricingPlans.js +26 -0
- package/esm/resources/V2/Billing/RateCardSubscriptions.js +26 -0
- package/esm/resources/V2/Billing/RateCards/Rates.js +22 -0
- package/esm/resources/V2/Billing/RateCards/Versions.js +14 -0
- package/esm/resources/V2/Billing/RateCards.js +26 -0
- package/esm/resources/V2/Billing/ServiceActions.js +17 -0
- package/esm/resources/V2/Core/ClaimableSandboxes.js +13 -0
- package/esm/resources/V2/Core/Vault/GbBankAccounts.js +5 -0
- package/esm/resources/V2/Core/Vault/UsBankAccounts.js +13 -0
- package/esm/resources/V2/MoneyManagement/FinancialAccounts.js +4 -0
- package/esm/resources/V2/MoneyManagement/RecipientVerifications.js +17 -0
- package/esm/resources/V2/Tax/AutomaticRules.js +19 -0
- package/esm/resources/V2/TestHelpers/MoneyManagement.js +9 -0
- package/esm/resources.js +36 -0
- package/esm/stripe.core.js +1 -1
- package/package.json +1 -1
- package/types/Accounts.d.ts +24 -0
- package/types/AccountsResource.d.ts +44 -0
- package/types/ApplicationFees.d.ts +6 -1
- package/types/Balance.d.ts +82 -0
- package/types/BalanceTransactions.d.ts +2 -1
- package/types/BankAccounts.d.ts +2 -0
- package/types/Billing/AlertTriggereds.d.ts +15 -0
- package/types/Billing/Alerts.d.ts +116 -1
- package/types/Billing/AlertsResource.d.ts +149 -2
- package/types/Billing/Analytics/MeterUsageResource.d.ts +5 -0
- package/types/Billing/Analytics/MeterUsageRows.d.ts +7 -0
- package/types/Billing/CreditBalanceSummary.d.ts +118 -2
- package/types/Billing/CreditBalanceSummaryResource.d.ts +12 -0
- package/types/Billing/CreditBalanceTransactions.d.ts +118 -2
- package/types/Billing/CreditGrants.d.ts +71 -1
- package/types/Billing/CreditGrantsResource.d.ts +34 -3
- package/types/Billing/MeterEventSummaries.d.ts +7 -0
- package/types/Billing/Meters.d.ts +5 -0
- package/types/Billing/MetersResource.d.ts +17 -0
- package/types/BillingPortal/Configurations.d.ts +1 -1
- package/types/BillingPortal/ConfigurationsResource.d.ts +10 -0
- package/types/Capabilities.d.ts +2 -0
- package/types/Cards.d.ts +14 -0
- package/types/Charges.d.ts +16 -2
- package/types/Checkout/Sessions.d.ts +73 -0
- package/types/Checkout/SessionsResource.d.ts +71 -3
- package/types/ConfirmationTokens.d.ts +15 -0
- package/types/CreditNotes.d.ts +26 -0
- package/types/CreditNotesResource.d.ts +78 -0
- package/types/CustomerSessions.d.ts +161 -0
- package/types/CustomerSessionsResource.d.ts +161 -0
- package/types/Customers.d.ts +7 -0
- package/types/CustomersResource.d.ts +1 -0
- package/types/DelegatedCheckout/RequestedSessions.d.ts +292 -0
- package/types/DelegatedCheckout/RequestedSessionsResource.d.ts +593 -0
- package/types/Files.d.ts +1 -0
- package/types/FilesResource.d.ts +2 -0
- package/types/FinancialConnections/AccountsResource.d.ts +1 -1
- package/types/Identity/BlocklistEntries.d.ts +78 -0
- package/types/Identity/BlocklistEntriesResource.d.ts +146 -0
- package/types/Identity/VerificationReports.d.ts +10 -0
- package/types/Identity/VerificationReportsResource.d.ts +5 -0
- package/types/InvoiceItems.d.ts +104 -2
- package/types/InvoiceLineItems.d.ts +113 -2
- package/types/Invoices.d.ts +1 -0
- package/types/InvoicesResource.d.ts +5 -0
- package/types/PaymentAttemptRecords.d.ts +7 -2
- package/types/PaymentAttemptRecordsResource.d.ts +5 -0
- package/types/PaymentIntentAmountDetailsLineItems.d.ts +4 -0
- package/types/PaymentIntents.d.ts +30 -2
- package/types/PaymentIntentsResource.d.ts +88 -0
- package/types/PaymentLinks.d.ts +34 -0
- package/types/PaymentLinksResource.d.ts +88 -0
- package/types/PaymentMethodBalances.d.ts +63 -0
- package/types/PaymentMethodConfigurations.d.ts +72 -0
- package/types/PaymentMethodConfigurationsResource.d.ts +100 -0
- package/types/PaymentMethods.d.ts +48 -0
- package/types/PaymentMethodsResource.d.ts +35 -1
- package/types/PaymentRecords.d.ts +7 -2
- package/types/PaymentRecordsResource.d.ts +89 -0
- package/types/PayoutsResource.d.ts +1 -1
- package/types/Persons.d.ts +2 -0
- package/types/QuotePreviewInvoices.d.ts +1 -0
- package/types/Refunds.d.ts +9 -0
- package/types/SetupAttempts.d.ts +1 -0
- package/types/SetupIntents.d.ts +87 -0
- package/types/SetupIntentsResource.d.ts +220 -0
- package/types/Tax/Registrations.d.ts +9 -0
- package/types/Tax/RegistrationsResource.d.ts +12 -0
- package/types/Terminal/Configurations.d.ts +19 -0
- package/types/Terminal/ConfigurationsResource.d.ts +44 -0
- package/types/Terminal/Readers.d.ts +14 -9
- package/types/Terminal/ReadersResource.d.ts +30 -30
- package/types/TestHelpers/Terminal/ReadersResource.d.ts +1 -1
- package/types/TokensResource.d.ts +22 -0
- package/types/Transfers.d.ts +4 -0
- package/types/TransfersResource.d.ts +2 -0
- package/types/V2/Billing/Cadences.d.ts +47 -2
- package/types/V2/Billing/CadencesResource.d.ts +32 -3
- package/types/V2/Billing/CollectionSettingVersions.d.ts +2 -2
- package/types/V2/Billing/CollectionSettings.d.ts +2 -2
- package/types/V2/Billing/CollectionSettingsResource.d.ts +4 -4
- package/types/V2/Billing/CustomPricingUnits.d.ts +56 -0
- package/types/V2/Billing/CustomPricingUnitsResource.d.ts +122 -0
- package/types/V2/Billing/IntentActions.d.ts +459 -0
- package/types/V2/Billing/Intents/ActionsResource.d.ts +58 -0
- package/types/V2/Billing/Intents.d.ts +117 -0
- package/types/V2/Billing/IntentsResource.d.ts +575 -0
- package/types/V2/Billing/LicenseFeeSubscriptions.d.ts +64 -0
- package/types/V2/Billing/LicenseFeeSubscriptionsResource.d.ts +28 -0
- package/types/V2/Billing/LicenseFeeVersions.d.ts +106 -0
- package/types/V2/Billing/LicenseFees/VersionsResource.d.ts +58 -0
- package/types/V2/Billing/LicenseFees.d.ts +164 -0
- package/types/V2/Billing/LicenseFeesResource.d.ts +290 -0
- package/types/V2/Billing/LicensedItems.d.ts +73 -0
- package/types/V2/Billing/LicensedItemsResource.d.ts +157 -0
- package/types/V2/Billing/MeteredItems.d.ts +101 -0
- package/types/V2/Billing/MeteredItemsResource.d.ts +189 -0
- package/types/V2/Billing/PricingPlanComponents.d.ts +109 -0
- package/types/V2/Billing/PricingPlanSubscriptionComponents.d.ts +57 -0
- package/types/V2/Billing/PricingPlanSubscriptions/ComponentsResource.d.ts +40 -0
- package/types/V2/Billing/PricingPlanSubscriptions.d.ts +144 -0
- package/types/V2/Billing/PricingPlanSubscriptionsResource.d.ts +120 -0
- package/types/V2/Billing/PricingPlanVersions.d.ts +49 -0
- package/types/V2/Billing/PricingPlans/ComponentsResource.d.ts +197 -0
- package/types/V2/Billing/PricingPlans/VersionsResource.d.ts +58 -0
- package/types/V2/Billing/PricingPlans.d.ts +84 -0
- package/types/V2/Billing/PricingPlansResource.d.ts +151 -0
- package/types/V2/Billing/RateCardRates.d.ts +144 -0
- package/types/V2/Billing/RateCardSubscriptions.d.ts +144 -0
- package/types/V2/Billing/RateCardSubscriptionsResource.d.ts +157 -0
- package/types/V2/Billing/RateCardVersions.d.ts +39 -0
- package/types/V2/Billing/RateCards/RatesResource.d.ts +203 -0
- package/types/V2/Billing/RateCards/VersionsResource.d.ts +58 -0
- package/types/V2/Billing/RateCards.d.ts +98 -0
- package/types/V2/Billing/RateCardsResource.d.ts +162 -0
- package/types/V2/Billing/ServiceActions.d.ts +274 -0
- package/types/V2/Billing/ServiceActionsResource.d.ts +370 -0
- package/types/V2/Core/Accounts.d.ts +1394 -29
- package/types/V2/Core/AccountsResource.d.ts +1475 -5
- package/types/V2/Core/ClaimableSandboxes.d.ts +132 -0
- package/types/V2/Core/ClaimableSandboxesResource.d.ts +74 -0
- package/types/V2/Core/EventTypes.d.ts +7308 -367
- package/types/V2/Core/Events.d.ts +12 -0
- package/types/V2/Core/EventsResource.d.ts +29 -3
- package/types/V2/Core/Vault/GbBankAccountsResource.d.ts +22 -0
- package/types/V2/Core/Vault/UsBankAccounts.d.ts +46 -0
- package/types/V2/Core/Vault/UsBankAccountsResource.d.ts +75 -0
- package/types/V2/MoneyManagement/FinancialAccountsResource.d.ts +25 -0
- package/types/V2/MoneyManagement/FinancialAddressesResource.d.ts +14 -0
- package/types/V2/MoneyManagement/OutboundPayments.d.ts +5 -0
- package/types/V2/MoneyManagement/OutboundPaymentsResource.d.ts +6 -1
- package/types/V2/MoneyManagement/OutboundSetupIntentsResource.d.ts +34 -0
- package/types/V2/MoneyManagement/OutboundTransfers.d.ts +5 -0
- package/types/V2/MoneyManagement/OutboundTransfersResource.d.ts +5 -0
- package/types/V2/MoneyManagement/PayoutMethods.d.ts +41 -0
- package/types/V2/MoneyManagement/ReceivedCredits.d.ts +5 -0
- package/types/V2/MoneyManagement/ReceivedDebits.d.ts +10 -0
- package/types/V2/MoneyManagement/RecipientVerifications.d.ts +112 -0
- package/types/V2/MoneyManagement/RecipientVerificationsResource.d.ts +77 -0
- package/types/V2/Tax/AutomaticRules.d.ts +53 -0
- package/types/V2/Tax/AutomaticRulesResource.d.ts +102 -0
- package/types/V2/TestHelpers/FinancialAddressesResource.d.ts +6 -1
- package/types/V2/TestHelpers/MoneyManagementResource.d.ts +49 -0
- package/types/WebhookEndpointsResource.d.ts +2 -1
- package/types/Webhooks.d.ts +2 -0
- package/types/crypto/crypto.d.ts +1 -1
- package/types/index.d.ts +69 -0
|
@@ -5,6 +5,8 @@ declare module 'stripe' {
|
|
|
5
5
|
namespace V2 {
|
|
6
6
|
namespace Core {
|
|
7
7
|
namespace Event {
|
|
8
|
+
interface Changes {}
|
|
9
|
+
|
|
8
10
|
interface Reason {
|
|
9
11
|
/**
|
|
10
12
|
* Event reason type.
|
|
@@ -46,6 +48,11 @@ declare module 'stripe' {
|
|
|
46
48
|
*/
|
|
47
49
|
object: 'v2.core.event';
|
|
48
50
|
|
|
51
|
+
/**
|
|
52
|
+
* Before and after changes for the primary related object.
|
|
53
|
+
*/
|
|
54
|
+
changes?: Event.Changes;
|
|
55
|
+
|
|
49
56
|
/**
|
|
50
57
|
* Authentication context needed to fetch the event or related object.
|
|
51
58
|
*/
|
|
@@ -70,6 +77,11 @@ declare module 'stripe' {
|
|
|
70
77
|
* The type of the event.
|
|
71
78
|
*/
|
|
72
79
|
type: string;
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* For interop events, this is the snapshot event ID.
|
|
83
|
+
*/
|
|
84
|
+
v1_event_id?: string;
|
|
73
85
|
}
|
|
74
86
|
}
|
|
75
87
|
}
|
|
@@ -12,14 +12,39 @@ declare module 'stripe' {
|
|
|
12
12
|
namespace Core {
|
|
13
13
|
interface EventListParams {
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* Filter for events created after the specified timestamp.
|
|
16
16
|
*/
|
|
17
|
-
|
|
17
|
+
gt?: string;
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Filter for events created at or after the specified timestamp.
|
|
21
|
+
*/
|
|
22
|
+
gte?: string;
|
|
18
23
|
|
|
19
24
|
/**
|
|
20
25
|
* The page size.
|
|
21
26
|
*/
|
|
22
27
|
limit?: number;
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Filter for events created before the specified timestamp.
|
|
31
|
+
*/
|
|
32
|
+
lt?: string;
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Filter for events created at or before the specified timestamp.
|
|
36
|
+
*/
|
|
37
|
+
lte?: string;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Primary object ID used to retrieve related events.
|
|
41
|
+
*/
|
|
42
|
+
object_id?: string;
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* An array of up to 20 strings containing specific event names.
|
|
46
|
+
*/
|
|
47
|
+
types?: Array<string>;
|
|
23
48
|
}
|
|
24
49
|
}
|
|
25
50
|
|
|
@@ -42,9 +67,10 @@ declare module 'stripe' {
|
|
|
42
67
|
* List events, going back up to 30 days.
|
|
43
68
|
*/
|
|
44
69
|
list(
|
|
45
|
-
params
|
|
70
|
+
params?: EventListParams,
|
|
46
71
|
options?: RequestOptions
|
|
47
72
|
): ApiListPromise<Stripe.V2.Core.Event>;
|
|
73
|
+
list(options?: RequestOptions): ApiListPromise<Stripe.V2.Core.Event>;
|
|
48
74
|
}
|
|
49
75
|
}
|
|
50
76
|
}
|
|
@@ -63,6 +63,17 @@ declare module 'stripe' {
|
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
+
namespace Core {
|
|
67
|
+
namespace Vault {
|
|
68
|
+
interface GbBankAccountListParams {
|
|
69
|
+
/**
|
|
70
|
+
* Optionally set the maximum number of results per page. Defaults to 10.
|
|
71
|
+
*/
|
|
72
|
+
limit?: number;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
66
77
|
namespace Core {
|
|
67
78
|
namespace Vault {
|
|
68
79
|
interface GbBankAccountAcknowledgeConfirmationOfPayeeParams {}
|
|
@@ -119,6 +130,17 @@ declare module 'stripe' {
|
|
|
119
130
|
options?: RequestOptions
|
|
120
131
|
): Promise<Stripe.Response<Stripe.V2.Core.Vault.GbBankAccount>>;
|
|
121
132
|
|
|
133
|
+
/**
|
|
134
|
+
* List objects that can be used as destinations for outbound money movement via OutboundPayment.
|
|
135
|
+
*/
|
|
136
|
+
list(
|
|
137
|
+
params?: GbBankAccountListParams,
|
|
138
|
+
options?: RequestOptions
|
|
139
|
+
): ApiListPromise<Stripe.V2.Core.Vault.GbBankAccount>;
|
|
140
|
+
list(
|
|
141
|
+
options?: RequestOptions
|
|
142
|
+
): ApiListPromise<Stripe.V2.Core.Vault.GbBankAccount>;
|
|
143
|
+
|
|
122
144
|
/**
|
|
123
145
|
* Confirm that you have received the result of the Confirmation of Payee request, and that you are okay with
|
|
124
146
|
* proceeding to pay out to this bank account despite the account not matching, partially matching, or the service
|
|
@@ -58,10 +58,56 @@ declare module 'stripe' {
|
|
|
58
58
|
* The ACH routing number of the bank account.
|
|
59
59
|
*/
|
|
60
60
|
routing_number?: string;
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* The bank account verification details.
|
|
64
|
+
*/
|
|
65
|
+
verification: UsBankAccount.Verification;
|
|
61
66
|
}
|
|
62
67
|
|
|
63
68
|
namespace UsBankAccount {
|
|
64
69
|
type BankAccountType = 'checking' | 'savings';
|
|
70
|
+
|
|
71
|
+
interface Verification {
|
|
72
|
+
/**
|
|
73
|
+
* The microdeposit verification details if the status is awaiting verification.
|
|
74
|
+
*/
|
|
75
|
+
microdeposit_verification_details?: Verification.MicrodepositVerificationDetails;
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* The bank account verification status.
|
|
79
|
+
*/
|
|
80
|
+
status: Verification.Status;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
namespace Verification {
|
|
84
|
+
interface MicrodepositVerificationDetails {
|
|
85
|
+
/**
|
|
86
|
+
* Time when microdeposits will expire and have to be re-sent.
|
|
87
|
+
*/
|
|
88
|
+
expires: string;
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* Microdeposit type can be amounts or descriptor_type.
|
|
92
|
+
*/
|
|
93
|
+
microdeposit_type: MicrodepositVerificationDetails.MicrodepositType;
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Time when microdeposits were sent.
|
|
97
|
+
*/
|
|
98
|
+
sent: string;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
namespace MicrodepositVerificationDetails {
|
|
102
|
+
type MicrodepositType = 'amounts' | 'descriptor_code';
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
type Status =
|
|
106
|
+
| 'awaiting_verification'
|
|
107
|
+
| 'unverified'
|
|
108
|
+
| 'verification_failed'
|
|
109
|
+
| 'verified';
|
|
110
|
+
}
|
|
65
111
|
}
|
|
66
112
|
}
|
|
67
113
|
}
|
|
@@ -55,12 +55,50 @@ declare module 'stripe' {
|
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
+
namespace Core {
|
|
59
|
+
namespace Vault {
|
|
60
|
+
interface UsBankAccountListParams {
|
|
61
|
+
/**
|
|
62
|
+
* Optionally set the maximum number of results per page. Defaults to 10.
|
|
63
|
+
*/
|
|
64
|
+
limit?: number;
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Optionally filter by verification status. Mutually exclusive with `unverified`, `verified`, `awaiting_verification`, and `verification_failed`.
|
|
68
|
+
*/
|
|
69
|
+
verification_status?: string;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
58
74
|
namespace Core {
|
|
59
75
|
namespace Vault {
|
|
60
76
|
interface UsBankAccountArchiveParams {}
|
|
61
77
|
}
|
|
62
78
|
}
|
|
63
79
|
|
|
80
|
+
namespace Core {
|
|
81
|
+
namespace Vault {
|
|
82
|
+
interface UsBankAccountConfirmMicrodepositsParams {
|
|
83
|
+
/**
|
|
84
|
+
* Two amounts received through Send Microdeposits must match the input to Confirm Microdeposits to verify US Bank Account.
|
|
85
|
+
*/
|
|
86
|
+
amounts?: Array<number>;
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* Descriptor code received through Send Microdeposits must match the input to Confirm Microdeposits to verify US Bank Account.
|
|
90
|
+
*/
|
|
91
|
+
descriptor_code?: string;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
namespace Core {
|
|
97
|
+
namespace Vault {
|
|
98
|
+
interface UsBankAccountSendMicrodepositsParams {}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
64
102
|
namespace Core {
|
|
65
103
|
namespace Vault {
|
|
66
104
|
class UsBankAccountsResource {
|
|
@@ -100,6 +138,17 @@ declare module 'stripe' {
|
|
|
100
138
|
options?: RequestOptions
|
|
101
139
|
): Promise<Stripe.Response<Stripe.V2.Core.Vault.UsBankAccount>>;
|
|
102
140
|
|
|
141
|
+
/**
|
|
142
|
+
* List USBankAccount objects. Optionally filter by verification status.
|
|
143
|
+
*/
|
|
144
|
+
list(
|
|
145
|
+
params?: UsBankAccountListParams,
|
|
146
|
+
options?: RequestOptions
|
|
147
|
+
): ApiListPromise<Stripe.V2.Core.Vault.UsBankAccount>;
|
|
148
|
+
list(
|
|
149
|
+
options?: RequestOptions
|
|
150
|
+
): ApiListPromise<Stripe.V2.Core.Vault.UsBankAccount>;
|
|
151
|
+
|
|
103
152
|
/**
|
|
104
153
|
* Archive a USBankAccount object. USBankAccount objects will not be automatically archived by Stripe.
|
|
105
154
|
* Archived USBankAccount objects cannot be used as outbound destinations
|
|
@@ -115,6 +164,32 @@ declare module 'stripe' {
|
|
|
115
164
|
id: string,
|
|
116
165
|
options?: RequestOptions
|
|
117
166
|
): Promise<Stripe.Response<Stripe.V2.Core.Vault.UsBankAccount>>;
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* Confirm microdeposits amounts or descriptor code that you have received from the Send Microdeposits request. Once you correctly confirm this, this US Bank Account will be verified and eligible to transfer funds with.
|
|
170
|
+
*/
|
|
171
|
+
confirmMicrodeposits(
|
|
172
|
+
id: string,
|
|
173
|
+
params?: UsBankAccountConfirmMicrodepositsParams,
|
|
174
|
+
options?: RequestOptions
|
|
175
|
+
): Promise<Stripe.Response<Stripe.V2.Core.Vault.UsBankAccount>>;
|
|
176
|
+
confirmMicrodeposits(
|
|
177
|
+
id: string,
|
|
178
|
+
options?: RequestOptions
|
|
179
|
+
): Promise<Stripe.Response<Stripe.V2.Core.Vault.UsBankAccount>>;
|
|
180
|
+
|
|
181
|
+
/**
|
|
182
|
+
* Send microdeposits in order to verify your US Bank Account so it is eligible to transfer funds. This will start the verification process and you must Confirm Microdeposits to successfully verify your US Bank Account.
|
|
183
|
+
*/
|
|
184
|
+
sendMicrodeposits(
|
|
185
|
+
id: string,
|
|
186
|
+
params?: UsBankAccountSendMicrodepositsParams,
|
|
187
|
+
options?: RequestOptions
|
|
188
|
+
): Promise<Stripe.Response<Stripe.V2.Core.Vault.UsBankAccount>>;
|
|
189
|
+
sendMicrodeposits(
|
|
190
|
+
id: string,
|
|
191
|
+
options?: RequestOptions
|
|
192
|
+
): Promise<Stripe.Response<Stripe.V2.Core.Vault.UsBankAccount>>;
|
|
118
193
|
}
|
|
119
194
|
}
|
|
120
195
|
}
|
|
@@ -40,6 +40,20 @@ declare module 'stripe' {
|
|
|
40
40
|
interface FinancialAccountRetrieveParams {}
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
+
namespace MoneyManagement {
|
|
44
|
+
interface FinancialAccountUpdateParams {
|
|
45
|
+
/**
|
|
46
|
+
* A descriptive name for the FinancialAccount, up to 50 characters long. This name will be used in the Stripe Dashboard and embedded components.
|
|
47
|
+
*/
|
|
48
|
+
display_name?: string;
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Metadata associated with the FinancialAccount.
|
|
52
|
+
*/
|
|
53
|
+
metadata?: Stripe.MetadataParam;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
43
57
|
namespace MoneyManagement {
|
|
44
58
|
interface FinancialAccountListParams {
|
|
45
59
|
/**
|
|
@@ -112,6 +126,17 @@ declare module 'stripe' {
|
|
|
112
126
|
Stripe.Response<Stripe.V2.MoneyManagement.FinancialAccount>
|
|
113
127
|
>;
|
|
114
128
|
|
|
129
|
+
/**
|
|
130
|
+
* Updates an existing FinancialAccount.
|
|
131
|
+
*/
|
|
132
|
+
update(
|
|
133
|
+
id: string,
|
|
134
|
+
params?: FinancialAccountUpdateParams,
|
|
135
|
+
options?: RequestOptions
|
|
136
|
+
): Promise<
|
|
137
|
+
Stripe.Response<Stripe.V2.MoneyManagement.FinancialAccount>
|
|
138
|
+
>;
|
|
139
|
+
|
|
115
140
|
/**
|
|
116
141
|
* Lists FinancialAccounts in this compartment.
|
|
117
142
|
*/
|
|
@@ -14,9 +14,21 @@ declare module 'stripe' {
|
|
|
14
14
|
* The type of FinancialAddress details to provision.
|
|
15
15
|
*/
|
|
16
16
|
type: FinancialAddressCreateParams.Type;
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Optional SEPA Bank account options, used to configure the type of SEPA Bank account to create, such as the originating country.
|
|
20
|
+
*/
|
|
21
|
+
sepa_bank_account?: FinancialAddressCreateParams.SepaBankAccount;
|
|
17
22
|
}
|
|
18
23
|
|
|
19
24
|
namespace FinancialAddressCreateParams {
|
|
25
|
+
interface SepaBankAccount {
|
|
26
|
+
/**
|
|
27
|
+
* The originating country of the SEPA Bank account.
|
|
28
|
+
*/
|
|
29
|
+
country: string;
|
|
30
|
+
}
|
|
31
|
+
|
|
20
32
|
type Type =
|
|
21
33
|
| 'gb_bank_account'
|
|
22
34
|
| 'sepa_bank_account'
|
|
@@ -35,6 +47,7 @@ declare module 'stripe' {
|
|
|
35
47
|
namespace FinancialAddressRetrieveParams {
|
|
36
48
|
type Include =
|
|
37
49
|
| 'credentials.gb_bank_account.account_number'
|
|
50
|
+
| 'credentials.sepa_bank_account.iban'
|
|
38
51
|
| 'credentials.us_bank_account.account_number';
|
|
39
52
|
}
|
|
40
53
|
}
|
|
@@ -60,6 +73,7 @@ declare module 'stripe' {
|
|
|
60
73
|
namespace FinancialAddressListParams {
|
|
61
74
|
type Include =
|
|
62
75
|
| 'credentials.gb_bank_account.account_number'
|
|
76
|
+
| 'credentials.sepa_bank_account.iban'
|
|
63
77
|
| 'credentials.us_bank_account.account_number';
|
|
64
78
|
}
|
|
65
79
|
}
|
|
@@ -80,6 +80,11 @@ declare module 'stripe' {
|
|
|
80
80
|
*/
|
|
81
81
|
recipient_notification: OutboundPayment.RecipientNotification;
|
|
82
82
|
|
|
83
|
+
/**
|
|
84
|
+
* The recipient verification id for this OutboundPayment. Only required for countries with regulatory mandates to verify recipient names before OutboundPayment creation.
|
|
85
|
+
*/
|
|
86
|
+
recipient_verification?: string;
|
|
87
|
+
|
|
83
88
|
/**
|
|
84
89
|
* The description that appears on the receiving end for an OutboundPayment (for example, bank statement for external bank transfer). It will default to `STRIPE` if not set on the account settings.
|
|
85
90
|
*/
|
|
@@ -44,6 +44,11 @@ declare module 'stripe' {
|
|
|
44
44
|
* Details about the notification settings for the OutboundPayment recipient.
|
|
45
45
|
*/
|
|
46
46
|
recipient_notification?: OutboundPaymentCreateParams.RecipientNotification;
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* The recipient verification id for this OutboundPayment. Only required for countries with regulatory mandates to verify recipient names before OutboundPayment creation.
|
|
50
|
+
*/
|
|
51
|
+
recipient_verification?: string;
|
|
47
52
|
}
|
|
48
53
|
|
|
49
54
|
namespace OutboundPaymentCreateParams {
|
|
@@ -178,9 +183,9 @@ declare module 'stripe' {
|
|
|
178
183
|
/**
|
|
179
184
|
* Creates an OutboundPayment.
|
|
180
185
|
* @throws Stripe.InsufficientFundsError
|
|
186
|
+
* @throws Stripe.FeatureNotEnabledError
|
|
181
187
|
* @throws Stripe.QuotaExceededError
|
|
182
188
|
* @throws Stripe.RecipientNotNotifiableError
|
|
183
|
-
* @throws Stripe.FeatureNotEnabledError
|
|
184
189
|
*/
|
|
185
190
|
create(
|
|
186
191
|
params: OutboundPaymentCreateParams,
|
|
@@ -40,6 +40,11 @@ declare module 'stripe' {
|
|
|
40
40
|
* The type specific details of the card payout method.
|
|
41
41
|
*/
|
|
42
42
|
card?: PayoutMethodData.Card;
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* The type specific details of the crypto wallet payout method.
|
|
46
|
+
*/
|
|
47
|
+
crypto_wallet?: PayoutMethodData.CryptoWallet;
|
|
43
48
|
}
|
|
44
49
|
|
|
45
50
|
namespace PayoutMethodData {
|
|
@@ -96,6 +101,35 @@ declare module 'stripe' {
|
|
|
96
101
|
number: string;
|
|
97
102
|
}
|
|
98
103
|
|
|
104
|
+
interface CryptoWallet {
|
|
105
|
+
/**
|
|
106
|
+
* Crypto wallet address.
|
|
107
|
+
*/
|
|
108
|
+
address: string;
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* Optional field, required if network supports memos (only "stellar" currently).
|
|
112
|
+
*/
|
|
113
|
+
memo?: string;
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* Which rail we should use to make an Outbound money movement to this wallet.
|
|
117
|
+
*/
|
|
118
|
+
network: CryptoWallet.Network;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
namespace CryptoWallet {
|
|
122
|
+
type Network =
|
|
123
|
+
| 'arbitrum'
|
|
124
|
+
| 'avalanche_c_chain'
|
|
125
|
+
| 'base'
|
|
126
|
+
| 'ethereum'
|
|
127
|
+
| 'optimism'
|
|
128
|
+
| 'polygon'
|
|
129
|
+
| 'solana'
|
|
130
|
+
| 'stellar';
|
|
131
|
+
}
|
|
132
|
+
|
|
99
133
|
type Type = 'bank_account' | 'card' | 'crypto_wallet';
|
|
100
134
|
}
|
|
101
135
|
|
|
@@ -70,6 +70,11 @@ declare module 'stripe' {
|
|
|
70
70
|
*/
|
|
71
71
|
receipt_url?: string;
|
|
72
72
|
|
|
73
|
+
/**
|
|
74
|
+
* The recipient verification id for this OutboundTransfer. Only required for countries with regulatory mandates to verify recipient names before OutboundTransfer creation.
|
|
75
|
+
*/
|
|
76
|
+
recipient_verification?: string;
|
|
77
|
+
|
|
73
78
|
/**
|
|
74
79
|
* The description that appears on the receiving end for an OutboundTransfer (for example, bank statement for external bank transfer). It will default to `STRIPE` if not set on the account settings.
|
|
75
80
|
*/
|
|
@@ -34,6 +34,11 @@ declare module 'stripe' {
|
|
|
34
34
|
* 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.
|
|
35
35
|
*/
|
|
36
36
|
metadata?: Stripe.MetadataParam;
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* The recipient verification id for this OutboundTransfer. Only required for countries with regulatory mandates to verify recipient names before OutboundTransfer creation.
|
|
40
|
+
*/
|
|
41
|
+
recipient_verification?: string;
|
|
37
42
|
}
|
|
38
43
|
|
|
39
44
|
namespace OutboundTransferCreateParams {
|
|
@@ -38,6 +38,11 @@ declare module 'stripe' {
|
|
|
38
38
|
*/
|
|
39
39
|
created: string;
|
|
40
40
|
|
|
41
|
+
/**
|
|
42
|
+
* The PayoutMethodCryptoWallet object details.
|
|
43
|
+
*/
|
|
44
|
+
crypto_wallet?: PayoutMethod.CryptoWallet;
|
|
45
|
+
|
|
41
46
|
/**
|
|
42
47
|
* ID of the underlying active OutboundSetupIntent object, if any.
|
|
43
48
|
*/
|
|
@@ -134,6 +139,42 @@ declare module 'stripe' {
|
|
|
134
139
|
last4: string;
|
|
135
140
|
}
|
|
136
141
|
|
|
142
|
+
interface CryptoWallet {
|
|
143
|
+
/**
|
|
144
|
+
* Destination wallet address.
|
|
145
|
+
*/
|
|
146
|
+
address: string;
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* Whether the crypto wallet was archived. Crypto wallets can be archived through the /archive API,
|
|
150
|
+
* and they will not be automatically archived by Stripe. Archived crypto wallets cannot be used as
|
|
151
|
+
* payout method and will not appear in the payout method list.
|
|
152
|
+
*/
|
|
153
|
+
archived: boolean;
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* Optional field, required if network supports memos (only "stellar" currently).
|
|
157
|
+
*/
|
|
158
|
+
memo?: string;
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* Which rail is being used to make an outbound money movement to this wallet.
|
|
162
|
+
*/
|
|
163
|
+
network: CryptoWallet.Network;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
namespace CryptoWallet {
|
|
167
|
+
type Network =
|
|
168
|
+
| 'arbitrum'
|
|
169
|
+
| 'avalanche_c_chain'
|
|
170
|
+
| 'base'
|
|
171
|
+
| 'ethereum'
|
|
172
|
+
| 'optimism'
|
|
173
|
+
| 'polygon'
|
|
174
|
+
| 'solana'
|
|
175
|
+
| 'stellar';
|
|
176
|
+
}
|
|
177
|
+
|
|
137
178
|
type Type = 'bank_account' | 'card' | 'crypto_wallet';
|
|
138
179
|
|
|
139
180
|
interface UsageStatus {
|
|
@@ -44,6 +44,11 @@ declare module 'stripe' {
|
|
|
44
44
|
*/
|
|
45
45
|
description?: string;
|
|
46
46
|
|
|
47
|
+
/**
|
|
48
|
+
* The amount and currency of the original/external credit request.
|
|
49
|
+
*/
|
|
50
|
+
external_amount?: Amount;
|
|
51
|
+
|
|
47
52
|
/**
|
|
48
53
|
* Financial Account ID on which funds for ReceivedCredit were received.
|
|
49
54
|
*/
|
|
@@ -39,6 +39,11 @@ declare module 'stripe' {
|
|
|
39
39
|
*/
|
|
40
40
|
description?: string;
|
|
41
41
|
|
|
42
|
+
/**
|
|
43
|
+
* The amount and currency of the original/external debit request.
|
|
44
|
+
*/
|
|
45
|
+
external_amount?: Amount;
|
|
46
|
+
|
|
42
47
|
/**
|
|
43
48
|
* Financial Account on which funds for ReceivedDebit were debited.
|
|
44
49
|
*/
|
|
@@ -82,6 +87,11 @@ declare module 'stripe' {
|
|
|
82
87
|
*/
|
|
83
88
|
financial_address: string;
|
|
84
89
|
|
|
90
|
+
/**
|
|
91
|
+
* Open Enum. Indicates the origin type through which this debit was initiated.
|
|
92
|
+
*/
|
|
93
|
+
origin_type: 'us_bank_account';
|
|
94
|
+
|
|
85
95
|
/**
|
|
86
96
|
* Open Enum. The type of the payment method used to originate the debit.
|
|
87
97
|
*/
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
|
|
3
|
+
declare module 'stripe' {
|
|
4
|
+
namespace Stripe {
|
|
5
|
+
namespace V2 {
|
|
6
|
+
namespace MoneyManagement {
|
|
7
|
+
/**
|
|
8
|
+
* RecipientVerification represents a verification of recipient you intend to send funds to.
|
|
9
|
+
*/
|
|
10
|
+
interface RecipientVerification {
|
|
11
|
+
/**
|
|
12
|
+
* The ID of the RecipientVerification.
|
|
13
|
+
*/
|
|
14
|
+
id: string;
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* String representing the object's type. Objects of the same type share the same value of the object field.
|
|
18
|
+
*/
|
|
19
|
+
object: 'v2.money_management.recipient_verification';
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* The OBP/OBT ID that consumed this verification, present if one is successfully created.
|
|
23
|
+
*/
|
|
24
|
+
consumed_by?: string;
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Time at which the RecipientVerification was created.
|
|
28
|
+
* Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z.
|
|
29
|
+
*/
|
|
30
|
+
created: string;
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Time at which the RecipientVerification expires, 5 minutes after the creation.
|
|
34
|
+
* Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z.
|
|
35
|
+
*/
|
|
36
|
+
expires_at: string;
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
40
|
+
*/
|
|
41
|
+
livemode: boolean;
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Closed Enum. Match level of the RecipientVerification: `match`, `close_match`, `no_match`, `unavailable`.
|
|
45
|
+
*/
|
|
46
|
+
match_result: RecipientVerification.MatchResult;
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Details for the match result.
|
|
50
|
+
*/
|
|
51
|
+
match_result_details: RecipientVerification.MatchResultDetails;
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Closed Enum. Current status of the RecipientVerification: `verified`, `consumed`, `expired`, `awaiting_acknowledgement`, `acknowledged`.
|
|
55
|
+
*/
|
|
56
|
+
status: RecipientVerification.Status;
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Hash containing timestamps of when the object transitioned to a particular status.
|
|
60
|
+
*/
|
|
61
|
+
status_transitions?: RecipientVerification.StatusTransitions;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
namespace RecipientVerification {
|
|
65
|
+
type MatchResult =
|
|
66
|
+
| 'close_match'
|
|
67
|
+
| 'match'
|
|
68
|
+
| 'no_match'
|
|
69
|
+
| 'unavailable';
|
|
70
|
+
|
|
71
|
+
interface MatchResultDetails {
|
|
72
|
+
/**
|
|
73
|
+
* The account name associated with the bank account as provided by the VoP provider, only present if there is a match or close match.
|
|
74
|
+
*/
|
|
75
|
+
matched_name?: string;
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* A message describing the match result.
|
|
79
|
+
*/
|
|
80
|
+
message: string;
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* The name associated with the provided recipient.
|
|
84
|
+
*/
|
|
85
|
+
provided_name: string;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
type Status =
|
|
89
|
+
| 'acknowledged'
|
|
90
|
+
| 'awaiting_acknowledgement'
|
|
91
|
+
| 'consumed'
|
|
92
|
+
| 'expired'
|
|
93
|
+
| 'verified';
|
|
94
|
+
|
|
95
|
+
interface StatusTransitions {
|
|
96
|
+
/**
|
|
97
|
+
* Timestamp describing when a RecipientVerification changed status to `acknowledged`.
|
|
98
|
+
* Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z.
|
|
99
|
+
*/
|
|
100
|
+
acknowledged_at?: string;
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Timestamp describing when a RecipientVerification changed status to `consumed`.
|
|
104
|
+
* Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z.
|
|
105
|
+
*/
|
|
106
|
+
consumed_at?: string;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
}
|