stripe 19.3.0-beta.1 → 19.4.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 +235 -1
- package/OPENAPI_VERSION +1 -1
- package/VERSION +1 -1
- package/cjs/RequestSender.js +1 -1
- package/cjs/apiVersion.js +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/TestHelpers/Capital/FinancingOffers.js +16 -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/MoneyManagement/RecipientVerifications.js +20 -0
- package/cjs/resources/V2/Reporting/ReportRuns.js +13 -0
- package/cjs/resources/V2/Reporting/Reports.js +12 -0
- package/cjs/resources/V2/Tax/AutomaticRules.js +22 -0
- package/cjs/resources/V2/TestHelpers/MoneyManagement.js +12 -0
- package/cjs/resources.js +47 -1
- package/cjs/stripe.core.js +1 -1
- package/esm/RequestSender.js +1 -1
- package/esm/apiVersion.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/TestHelpers/Capital/FinancingOffers.js +13 -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/MoneyManagement/RecipientVerifications.js +17 -0
- package/esm/resources/V2/Reporting/ReportRuns.js +10 -0
- package/esm/resources/V2/Reporting/Reports.js +9 -0
- package/esm/resources/V2/Tax/AutomaticRules.js +19 -0
- package/esm/resources/V2/TestHelpers/MoneyManagement.js +9 -0
- package/esm/resources.js +46 -0
- package/esm/stripe.core.js +1 -1
- package/package.json +1 -1
- package/types/ApplicationFees.d.ts +6 -1
- package/types/Balance.d.ts +82 -0
- package/types/BalanceTransactions.d.ts +2 -1
- 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 +32 -1
- 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/Cards.d.ts +14 -0
- package/types/Charges.d.ts +14 -0
- package/types/ChargesResource.d.ts +4 -16
- package/types/Checkout/Sessions.d.ts +58 -0
- package/types/Checkout/SessionsResource.d.ts +50 -0
- package/types/ConfirmationTokens.d.ts +14 -0
- package/types/Coupons.d.ts +3 -1
- package/types/CouponsResource.d.ts +3 -1
- package/types/DelegatedCheckout/RequestedSessions.d.ts +360 -0
- package/types/DelegatedCheckout/RequestedSessionsResource.d.ts +593 -0
- 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/InvoicePayments.d.ts +1 -1
- package/types/InvoicesResource.d.ts +5 -0
- package/types/PaymentIntentAmountDetailsLineItems.d.ts +7 -13
- package/types/PaymentIntents.d.ts +37 -18
- package/types/PaymentIntentsResource.d.ts +164 -145
- package/types/PaymentMethodBalances.d.ts +63 -0
- package/types/PaymentMethods.d.ts +14 -0
- package/types/PaymentMethodsResource.d.ts +20 -0
- package/types/SetupIntents.d.ts +24 -1
- package/types/SetupIntentsResource.d.ts +90 -0
- package/types/TestHelpers/Capital/FinancingOffersResource.d.ts +100 -0
- package/types/Transfers.d.ts +4 -0
- package/types/TransfersResource.d.ts +2 -0
- package/types/TransitBalances.d.ts +40 -0
- package/types/V2/Billing/Cadences.d.ts +51 -2
- package/types/V2/Billing/CadencesResource.d.ts +32 -3
- package/types/V2/Billing/CollectionSettingVersions.d.ts +6 -2
- package/types/V2/Billing/CollectionSettings.d.ts +6 -2
- package/types/V2/Billing/CollectionSettingsResource.d.ts +12 -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 +1491 -23
- package/types/V2/Core/AccountsResource.d.ts +1619 -0
- 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 +7399 -343
- package/types/V2/Core/Events.d.ts +14 -0
- package/types/V2/MoneyManagement/FinancialAddressesResource.d.ts +14 -0
- package/types/V2/MoneyManagement/InboundTransfers.d.ts +9 -3
- package/types/V2/MoneyManagement/OutboundPayments.d.ts +5 -0
- package/types/V2/MoneyManagement/OutboundPaymentsResource.d.ts +5 -0
- 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/Reporting/ReportRuns.d.ts +154 -0
- package/types/V2/Reporting/ReportRunsResource.d.ts +75 -0
- package/types/V2/Reporting/Reports.d.ts +120 -0
- package/types/V2/Reporting/ReportsResource.d.ts +30 -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/Webhooks.d.ts +2 -0
- package/types/apiVersion.d.ts +1 -1
- package/types/index.d.ts +82 -0
|
@@ -5,6 +5,10 @@ declare module 'stripe' {
|
|
|
5
5
|
namespace V2 {
|
|
6
6
|
namespace Core {
|
|
7
7
|
namespace Event {
|
|
8
|
+
type Changes = {
|
|
9
|
+
[key: string]: unknown;
|
|
10
|
+
};
|
|
11
|
+
|
|
8
12
|
interface Reason {
|
|
9
13
|
/**
|
|
10
14
|
* Event reason type.
|
|
@@ -46,6 +50,11 @@ declare module 'stripe' {
|
|
|
46
50
|
*/
|
|
47
51
|
object: 'v2.core.event';
|
|
48
52
|
|
|
53
|
+
/**
|
|
54
|
+
* Before and after changes for the primary related object.
|
|
55
|
+
*/
|
|
56
|
+
changes?: Event.Changes;
|
|
57
|
+
|
|
49
58
|
/**
|
|
50
59
|
* Authentication context needed to fetch the event or related object.
|
|
51
60
|
*/
|
|
@@ -70,6 +79,11 @@ declare module 'stripe' {
|
|
|
70
79
|
* The type of the event.
|
|
71
80
|
*/
|
|
72
81
|
type: string;
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* For interop events, this is the snapshot event ID.
|
|
85
|
+
*/
|
|
86
|
+
v1_event_id?: string;
|
|
73
87
|
}
|
|
74
88
|
}
|
|
75
89
|
}
|
|
@@ -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
|
}
|
|
@@ -168,9 +168,13 @@ declare module 'stripe' {
|
|
|
168
168
|
| 'insufficient_funds';
|
|
169
169
|
}
|
|
170
170
|
|
|
171
|
-
|
|
171
|
+
type BankDebitProcessing = {
|
|
172
|
+
[key: string]: unknown;
|
|
173
|
+
};
|
|
172
174
|
|
|
173
|
-
|
|
175
|
+
type BankDebitQueued = {
|
|
176
|
+
[key: string]: unknown;
|
|
177
|
+
};
|
|
174
178
|
|
|
175
179
|
interface BankDebitReturned {
|
|
176
180
|
/**
|
|
@@ -188,7 +192,9 @@ declare module 'stripe' {
|
|
|
188
192
|
| 'insufficient_funds';
|
|
189
193
|
}
|
|
190
194
|
|
|
191
|
-
|
|
195
|
+
type BankDebitSucceeded = {
|
|
196
|
+
[key: string]: unknown;
|
|
197
|
+
};
|
|
192
198
|
|
|
193
199
|
type Level = 'canonical' | 'debug';
|
|
194
200
|
|
|
@@ -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 {
|
|
@@ -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
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
|
|
3
|
+
declare module 'stripe' {
|
|
4
|
+
namespace Stripe {
|
|
5
|
+
namespace V2 {
|
|
6
|
+
namespace MoneyManagement {
|
|
7
|
+
interface RecipientVerificationCreateParams {
|
|
8
|
+
/**
|
|
9
|
+
* ID of the payout method.
|
|
10
|
+
*/
|
|
11
|
+
payout_method: string;
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* ID of the recipient account. Required if the recipient distinct from the sender. Leave empty if the recipient and sender are the same entity (i.e. for me-to-me payouts).
|
|
15
|
+
*/
|
|
16
|
+
recipient?: string;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
namespace MoneyManagement {
|
|
21
|
+
interface RecipientVerificationRetrieveParams {}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
namespace MoneyManagement {
|
|
25
|
+
interface RecipientVerificationAcknowledgeParams {}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
namespace MoneyManagement {
|
|
29
|
+
class RecipientVerificationsResource {
|
|
30
|
+
/**
|
|
31
|
+
* Creates a RecipientVerification to verify the recipient you intend to send funds to.
|
|
32
|
+
*/
|
|
33
|
+
create(
|
|
34
|
+
params: RecipientVerificationCreateParams,
|
|
35
|
+
options?: RequestOptions
|
|
36
|
+
): Promise<
|
|
37
|
+
Stripe.Response<Stripe.V2.MoneyManagement.RecipientVerification>
|
|
38
|
+
>;
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Retrieves the details of an existing RecipientVerification by passing the unique RecipientVerification ID.
|
|
42
|
+
*/
|
|
43
|
+
retrieve(
|
|
44
|
+
id: string,
|
|
45
|
+
params?: RecipientVerificationRetrieveParams,
|
|
46
|
+
options?: RequestOptions
|
|
47
|
+
): Promise<
|
|
48
|
+
Stripe.Response<Stripe.V2.MoneyManagement.RecipientVerification>
|
|
49
|
+
>;
|
|
50
|
+
retrieve(
|
|
51
|
+
id: string,
|
|
52
|
+
options?: RequestOptions
|
|
53
|
+
): Promise<
|
|
54
|
+
Stripe.Response<Stripe.V2.MoneyManagement.RecipientVerification>
|
|
55
|
+
>;
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Acknowledges an existing RecipientVerification. Only RecipientVerification awaiting acknowledgement can be acknowledged.
|
|
59
|
+
*/
|
|
60
|
+
acknowledge(
|
|
61
|
+
id: string,
|
|
62
|
+
params?: RecipientVerificationAcknowledgeParams,
|
|
63
|
+
options?: RequestOptions
|
|
64
|
+
): Promise<
|
|
65
|
+
Stripe.Response<Stripe.V2.MoneyManagement.RecipientVerification>
|
|
66
|
+
>;
|
|
67
|
+
acknowledge(
|
|
68
|
+
id: string,
|
|
69
|
+
options?: RequestOptions
|
|
70
|
+
): Promise<
|
|
71
|
+
Stripe.Response<Stripe.V2.MoneyManagement.RecipientVerification>
|
|
72
|
+
>;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
|
|
3
|
+
declare module 'stripe' {
|
|
4
|
+
namespace Stripe {
|
|
5
|
+
namespace V2 {
|
|
6
|
+
namespace Reporting {
|
|
7
|
+
/**
|
|
8
|
+
* The `ReportRun` object represents an instance of a `Report` generated with specific
|
|
9
|
+
* run parameters. Once the object is created, Stripe begins processing the report. When
|
|
10
|
+
* the report has finished running, it will give you a reference to the results.
|
|
11
|
+
*/
|
|
12
|
+
interface ReportRun {
|
|
13
|
+
/**
|
|
14
|
+
* The unique identifier of the `ReportRun` object.
|
|
15
|
+
*/
|
|
16
|
+
id: string;
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* String representing the object's type. Objects of the same type share the same value of the object field.
|
|
20
|
+
*/
|
|
21
|
+
object: 'v2.reporting.report_run';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Time at which the object was created.
|
|
25
|
+
*/
|
|
26
|
+
created: string;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
30
|
+
*/
|
|
31
|
+
livemode: boolean;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* The unique identifier of the `Report` object which was run.
|
|
35
|
+
*/
|
|
36
|
+
report: string;
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* The human-readable name of the `Report` which was run.
|
|
40
|
+
*/
|
|
41
|
+
report_name: string;
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* The parameters used to customize the generation of the report.
|
|
45
|
+
*/
|
|
46
|
+
report_parameters: ReportRun.ReportParameters;
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Details how to retrieve the results of a successfully completed `ReportRun`.
|
|
50
|
+
*/
|
|
51
|
+
result?: ReportRun.Result;
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* The options specified for customizing the output file of the `ReportRun`.
|
|
55
|
+
*/
|
|
56
|
+
result_options?: ReportRun.ResultOptions;
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* The current status of the `ReportRun`.
|
|
60
|
+
*/
|
|
61
|
+
status: ReportRun.Status;
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Additional details about the current state of the `ReportRun`. The field is currently only populated when a `ReportRun`
|
|
65
|
+
* is in the `failed` state, providing more information about why the report failed to generate successfully.
|
|
66
|
+
*/
|
|
67
|
+
status_details: {
|
|
68
|
+
[key: string]: ReportRun.StatusDetails;
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
namespace ReportRun {
|
|
73
|
+
type ReportParameters = {
|
|
74
|
+
[key: string]: unknown;
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
interface Result {
|
|
78
|
+
/**
|
|
79
|
+
* Contains metadata about the file produced by the `ReportRun`, including
|
|
80
|
+
* its content type, size, and a URL to download its contents.
|
|
81
|
+
*/
|
|
82
|
+
file: Result.File;
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* The type of the `ReportRun` result.
|
|
86
|
+
*/
|
|
87
|
+
type: 'file';
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
namespace Result {
|
|
91
|
+
interface File {
|
|
92
|
+
/**
|
|
93
|
+
* The content type of the file.
|
|
94
|
+
*/
|
|
95
|
+
content_type: File.ContentType;
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* A pre-signed URL that allows secure, time-limited access to download the file.
|
|
99
|
+
*/
|
|
100
|
+
download_url: File.DownloadUrl;
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* The total size of the file in bytes.
|
|
104
|
+
*/
|
|
105
|
+
size: number;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
namespace File {
|
|
109
|
+
type ContentType = 'csv' | 'zip';
|
|
110
|
+
|
|
111
|
+
interface DownloadUrl {
|
|
112
|
+
/**
|
|
113
|
+
* The time that the URL expires.
|
|
114
|
+
*/
|
|
115
|
+
expires_at?: string;
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* The URL that can be used for accessing the file.
|
|
119
|
+
*/
|
|
120
|
+
url: string;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
interface ResultOptions {
|
|
126
|
+
/**
|
|
127
|
+
* If set, the generated report file will be compressed into a ZIP folder.
|
|
128
|
+
* This is useful for reducing file size and download time for large reports.
|
|
129
|
+
*/
|
|
130
|
+
compress_file?: boolean;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
type Status = 'failed' | 'running' | 'succeeded';
|
|
134
|
+
|
|
135
|
+
interface StatusDetails {
|
|
136
|
+
/**
|
|
137
|
+
* Error code categorizing the reason the `ReportRun` failed.
|
|
138
|
+
*/
|
|
139
|
+
error_code?: StatusDetails.ErrorCode;
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* Error message with additional details about the failure.
|
|
143
|
+
*/
|
|
144
|
+
error_message?: string;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
namespace StatusDetails {
|
|
148
|
+
type ErrorCode = 'file_size_above_limit' | 'internal_error';
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
}
|