stripe 18.4.0-beta.2 → 18.5.0-beta.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 +39 -10
- package/OPENAPI_VERSION +1 -1
- package/VERSION +1 -1
- package/cjs/apiVersion.js +1 -1
- package/cjs/resources/Billing/MeterUsage.js +12 -0
- package/cjs/resources/Terminal/OnboardingLinks.js +12 -0
- package/cjs/resources.js +4 -0
- package/cjs/stripe.core.js +2 -1
- package/esm/apiVersion.js +1 -1
- package/esm/resources/Billing/MeterUsage.js +9 -0
- package/esm/resources/Terminal/OnboardingLinks.js +9 -0
- package/esm/resources.js +4 -0
- package/esm/stripe.core.js +2 -1
- package/package.json +1 -1
- package/types/AccountLinksResource.d.ts +3 -1
- package/types/AccountSessions.d.ts +30 -0
- package/types/AccountSessionsResource.d.ts +36 -0
- package/types/Accounts.d.ts +1 -1
- package/types/AccountsResource.d.ts +3 -3
- package/types/BalanceSettings.d.ts +6 -4
- package/types/BalanceSettingsResource.d.ts +8 -6
- package/types/Billing/CreditGrantsResource.d.ts +1 -1
- package/types/Billing/MeterUsage.d.ts +32 -0
- package/types/Billing/MeterUsageResource.d.ts +685 -0
- package/types/Billing/MeterUsageRows.d.ts +49 -0
- package/types/BillingPortal/Configurations.d.ts +21 -0
- package/types/BillingPortal/ConfigurationsResource.d.ts +48 -0
- package/types/Capabilities.d.ts +1 -6
- package/types/Charges.d.ts +10 -5
- package/types/Checkout/Sessions.d.ts +24 -1
- package/types/Checkout/SessionsResource.d.ts +108 -0
- package/types/ConfirmationTokens.d.ts +3 -3
- package/types/Customers.d.ts +1 -1
- package/types/Disputes.d.ts +23 -1
- package/types/Events.d.ts +14 -26
- package/types/FxQuotes.d.ts +6 -4
- package/types/Identity/VerificationSessions.d.ts +2 -2
- package/types/InvoiceItemsResource.d.ts +1 -1
- package/types/Invoices.d.ts +38 -0
- package/types/InvoicesResource.d.ts +115 -6
- package/types/PaymentAttemptRecords.d.ts +9 -4
- package/types/PaymentIntents.d.ts +1 -1
- package/types/PaymentIntentsResource.d.ts +966 -40
- package/types/PaymentLinks.d.ts +5 -0
- package/types/PaymentLinksResource.d.ts +102 -3
- package/types/PaymentMethods.d.ts +3 -3
- package/types/PaymentMethodsResource.d.ts +1 -1
- package/types/PaymentRecords.d.ts +9 -4
- package/types/QuotePreviewInvoices.d.ts +38 -0
- package/types/QuotesResource.d.ts +3 -0
- package/types/Radar/ValueLists.d.ts +1 -1
- package/types/Radar/ValueListsResource.d.ts +1 -1
- package/types/Refunds.d.ts +1 -1
- package/types/Reporting/ReportRunsResource.d.ts +1 -0
- package/types/Reviews.d.ts +2 -2
- package/types/SetupAttempts.d.ts +1 -1
- package/types/SubscriptionItemsResource.d.ts +2 -2
- package/types/SubscriptionSchedulesResource.d.ts +47 -2
- package/types/Subscriptions.d.ts +38 -0
- package/types/SubscriptionsResource.d.ts +86 -1
- package/types/Tax/Registrations.d.ts +228 -27
- package/types/Tax/RegistrationsResource.d.ts +648 -27
- package/types/Terminal/Configurations.d.ts +76 -0
- package/types/Terminal/ConfigurationsResource.d.ts +176 -0
- package/types/Terminal/OnboardingLinks.d.ts +57 -0
- package/types/Terminal/OnboardingLinksResource.d.ts +62 -0
- package/types/V2/Core/AccountLinks.d.ts +66 -4
- package/types/V2/Core/AccountLinksResource.d.ts +65 -3
- package/types/V2/Core/Accounts.d.ts +22 -0
- package/types/V2/Core/AccountsResource.d.ts +44 -0
- package/types/V2/EventTypes.d.ts +32 -25
- package/types/V2/MoneyManagement/PayoutMethods.d.ts +9 -0
- package/types/V2/Payments/OffSessionPayments.d.ts +40 -23
- package/types/V2/Payments/OffSessionPaymentsResource.d.ts +34 -19
- package/types/V2/TestHelpers/FinancialAddressesResource.d.ts +2 -0
- package/types/WebhookEndpointsResource.d.ts +2 -1
- package/types/index.d.ts +7 -0
- package/types/lib.d.ts +2 -1
- package/types/test/typescriptTest.ts +3 -3
|
@@ -37,9 +37,14 @@ declare module 'stripe' {
|
|
|
37
37
|
namespace UseCase {
|
|
38
38
|
interface AccountOnboarding {
|
|
39
39
|
/**
|
|
40
|
-
*
|
|
40
|
+
* Specifies the requirements that Stripe collects from v2/core/accounts in the Onboarding flow.
|
|
41
41
|
*/
|
|
42
|
-
|
|
42
|
+
collection_options?: AccountOnboarding.CollectionOptions;
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Open Enum. A v2/core/account can be configured to enable certain functionality. The configuration param targets the v2/core/account_link to collect information for the specified v2/core/account configuration/s.
|
|
46
|
+
*/
|
|
47
|
+
configurations: Array<AccountOnboarding.Configuration>;
|
|
43
48
|
|
|
44
49
|
/**
|
|
45
50
|
* The URL the user will be redirected to if the AccountLink is expired, has been used, or is otherwise invalid. The URL you specify should attempt to generate a new AccountLink with the same parameters used to create the original AccountLink, then redirect the user to the new AccountLink's URL so they can continue the flow. If a new AccountLink cannot be generated or the redirect fails you should display a useful error to the user. Please make sure to implement authentication before redirecting the user in case this URL is leaked to a third party.
|
|
@@ -52,11 +57,42 @@ declare module 'stripe' {
|
|
|
52
57
|
return_url?: string;
|
|
53
58
|
}
|
|
54
59
|
|
|
60
|
+
namespace AccountOnboarding {
|
|
61
|
+
interface CollectionOptions {
|
|
62
|
+
/**
|
|
63
|
+
* Specifies whether the platform collects only currently_due requirements (`currently_due`) or both currently_due and eventually_due requirements (`eventually_due`). If you don't specify collection_options, the default value is currently_due.
|
|
64
|
+
*/
|
|
65
|
+
fields?: CollectionOptions.Fields;
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Specifies whether the platform collects future_requirements in addition to requirements in Connect Onboarding. The default value is `omit`.
|
|
69
|
+
*/
|
|
70
|
+
future_requirements?: CollectionOptions.FutureRequirements;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
namespace CollectionOptions {
|
|
74
|
+
type Fields = 'currently_due' | 'eventually_due';
|
|
75
|
+
|
|
76
|
+
type FutureRequirements = 'include' | 'omit';
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
type Configuration =
|
|
80
|
+
| 'customer'
|
|
81
|
+
| 'merchant'
|
|
82
|
+
| 'recipient'
|
|
83
|
+
| 'storer';
|
|
84
|
+
}
|
|
85
|
+
|
|
55
86
|
interface AccountUpdate {
|
|
87
|
+
/**
|
|
88
|
+
* Specifies the requirements that Stripe collects from v2/core/accounts in the Onboarding flow.
|
|
89
|
+
*/
|
|
90
|
+
collection_options?: AccountUpdate.CollectionOptions;
|
|
91
|
+
|
|
56
92
|
/**
|
|
57
93
|
* Open Enum. A v2/account can be configured to enable certain functionality. The configuration param targets the v2/account_link to collect information for the specified v2/account configuration/s.
|
|
58
94
|
*/
|
|
59
|
-
configurations: Array<
|
|
95
|
+
configurations: Array<AccountUpdate.Configuration>;
|
|
60
96
|
|
|
61
97
|
/**
|
|
62
98
|
* The URL the user will be redirected to if the AccountLink is expired, has been used, or is otherwise invalid. The URL you specify should attempt to generate a new AccountLink with the same parameters used to create the original AccountLink, then redirect the user to the new AccountLink's URL so they can continue the flow. If a new AccountLink cannot be generated or the redirect fails you should display a useful error to the user. Please make sure to implement authentication before redirecting the user in case this URL is leaked to a third party.
|
|
@@ -69,6 +105,32 @@ declare module 'stripe' {
|
|
|
69
105
|
return_url?: string;
|
|
70
106
|
}
|
|
71
107
|
|
|
108
|
+
namespace AccountUpdate {
|
|
109
|
+
interface CollectionOptions {
|
|
110
|
+
/**
|
|
111
|
+
* Specifies whether the platform collects only currently_due requirements (`currently_due`) or both currently_due and eventually_due requirements (`eventually_due`). If you don't specify collection_options, the default value is currently_due.
|
|
112
|
+
*/
|
|
113
|
+
fields?: CollectionOptions.Fields;
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* Specifies whether the platform collects future_requirements in addition to requirements in Connect Onboarding. The default value is `omit`.
|
|
117
|
+
*/
|
|
118
|
+
future_requirements?: CollectionOptions.FutureRequirements;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
namespace CollectionOptions {
|
|
122
|
+
type Fields = 'currently_due' | 'eventually_due';
|
|
123
|
+
|
|
124
|
+
type FutureRequirements = 'include' | 'omit';
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
type Configuration =
|
|
128
|
+
| 'customer'
|
|
129
|
+
| 'merchant'
|
|
130
|
+
| 'recipient'
|
|
131
|
+
| 'storer';
|
|
132
|
+
}
|
|
133
|
+
|
|
72
134
|
type Type = 'account_onboarding' | 'account_update';
|
|
73
135
|
}
|
|
74
136
|
}
|
|
@@ -4990,6 +4990,11 @@ declare module 'stripe' {
|
|
|
4990
4990
|
* Details on the Account's acceptance of the [Stripe Services Agreement](https://docs.stripe.com/connect/updating-accounts#tos-acceptance).
|
|
4991
4991
|
*/
|
|
4992
4992
|
account: TermsOfService.Account | null;
|
|
4993
|
+
|
|
4994
|
+
/**
|
|
4995
|
+
* Details on the Account's acceptance of Treasury-specific terms of service.
|
|
4996
|
+
*/
|
|
4997
|
+
storer: TermsOfService.Storer | null;
|
|
4993
4998
|
}
|
|
4994
4999
|
|
|
4995
5000
|
namespace TermsOfService {
|
|
@@ -5009,6 +5014,23 @@ declare module 'stripe' {
|
|
|
5009
5014
|
*/
|
|
5010
5015
|
user_agent: string | null;
|
|
5011
5016
|
}
|
|
5017
|
+
|
|
5018
|
+
interface Storer {
|
|
5019
|
+
/**
|
|
5020
|
+
* The time when the Account's representative accepted the terms of service. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z.
|
|
5021
|
+
*/
|
|
5022
|
+
date: string | null;
|
|
5023
|
+
|
|
5024
|
+
/**
|
|
5025
|
+
* The IP address from which the Account's representative accepted the terms of service.
|
|
5026
|
+
*/
|
|
5027
|
+
ip: string | null;
|
|
5028
|
+
|
|
5029
|
+
/**
|
|
5030
|
+
* The user agent of the browser from which the Account's representative accepted the terms of service.
|
|
5031
|
+
*/
|
|
5032
|
+
user_agent: string | null;
|
|
5033
|
+
}
|
|
5012
5034
|
}
|
|
5013
5035
|
}
|
|
5014
5036
|
|
|
@@ -1834,6 +1834,11 @@ declare module 'stripe' {
|
|
|
1834
1834
|
* Details on the Account's acceptance of the [Stripe Services Agreement](https://docs.stripe.com/connect/updating-accounts#tos-acceptance).
|
|
1835
1835
|
*/
|
|
1836
1836
|
account?: TermsOfService.Account;
|
|
1837
|
+
|
|
1838
|
+
/**
|
|
1839
|
+
* Details on the Account's acceptance of Treasury-specific terms of service.
|
|
1840
|
+
*/
|
|
1841
|
+
storer?: TermsOfService.Storer;
|
|
1837
1842
|
}
|
|
1838
1843
|
|
|
1839
1844
|
namespace TermsOfService {
|
|
@@ -1853,6 +1858,23 @@ declare module 'stripe' {
|
|
|
1853
1858
|
*/
|
|
1854
1859
|
user_agent?: string;
|
|
1855
1860
|
}
|
|
1861
|
+
|
|
1862
|
+
interface Storer {
|
|
1863
|
+
/**
|
|
1864
|
+
* The time when the Account's representative accepted the terms of service. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z.
|
|
1865
|
+
*/
|
|
1866
|
+
date: string;
|
|
1867
|
+
|
|
1868
|
+
/**
|
|
1869
|
+
* The IP address from which the Account's representative accepted the terms of service.
|
|
1870
|
+
*/
|
|
1871
|
+
ip: string;
|
|
1872
|
+
|
|
1873
|
+
/**
|
|
1874
|
+
* The user agent of the browser from which the Account's representative accepted the terms of service.
|
|
1875
|
+
*/
|
|
1876
|
+
user_agent?: string;
|
|
1877
|
+
}
|
|
1856
1878
|
}
|
|
1857
1879
|
}
|
|
1858
1880
|
|
|
@@ -7092,6 +7114,11 @@ declare module 'stripe' {
|
|
|
7092
7114
|
* Details on the Account's acceptance of the [Stripe Services Agreement](https://docs.stripe.com/connect/updating-accounts#tos-acceptance).
|
|
7093
7115
|
*/
|
|
7094
7116
|
account?: TermsOfService.Account;
|
|
7117
|
+
|
|
7118
|
+
/**
|
|
7119
|
+
* Details on the Account's acceptance of Treasury-specific terms of service.
|
|
7120
|
+
*/
|
|
7121
|
+
storer?: TermsOfService.Storer;
|
|
7095
7122
|
}
|
|
7096
7123
|
|
|
7097
7124
|
namespace TermsOfService {
|
|
@@ -7111,6 +7138,23 @@ declare module 'stripe' {
|
|
|
7111
7138
|
*/
|
|
7112
7139
|
user_agent?: string;
|
|
7113
7140
|
}
|
|
7141
|
+
|
|
7142
|
+
interface Storer {
|
|
7143
|
+
/**
|
|
7144
|
+
* The time when the Account's representative accepted the terms of service. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z.
|
|
7145
|
+
*/
|
|
7146
|
+
date?: string;
|
|
7147
|
+
|
|
7148
|
+
/**
|
|
7149
|
+
* The IP address from which the Account's representative accepted the terms of service.
|
|
7150
|
+
*/
|
|
7151
|
+
ip?: string;
|
|
7152
|
+
|
|
7153
|
+
/**
|
|
7154
|
+
* The user agent of the browser from which the Account's representative accepted the terms of service.
|
|
7155
|
+
*/
|
|
7156
|
+
user_agent?: string;
|
|
7157
|
+
}
|
|
7114
7158
|
}
|
|
7115
7159
|
}
|
|
7116
7160
|
|
package/types/V2/EventTypes.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ declare module 'stripe' {
|
|
|
4
4
|
namespace Stripe.V2 {
|
|
5
5
|
export type Event =
|
|
6
6
|
| Stripe.Events.V2CoreAccountIncludingRequirementsUpdatedEvent
|
|
7
|
-
| Stripe.Events.
|
|
7
|
+
| Stripe.Events.V2CoreAccountLinkReturnedEvent
|
|
8
8
|
| Stripe.Events.V2CoreAccountClosedEvent
|
|
9
9
|
| Stripe.Events.V2CoreAccountCreatedEvent
|
|
10
10
|
| Stripe.Events.V2CoreAccountUpdatedEvent
|
|
@@ -35,7 +35,6 @@ declare module 'stripe' {
|
|
|
35
35
|
| Stripe.Events.V2MoneyManagementInboundTransferBankDebitReturnedEvent
|
|
36
36
|
| Stripe.Events.V2MoneyManagementInboundTransferBankDebitSucceededEvent
|
|
37
37
|
| Stripe.Events.V2CoreEventDestinationPingEvent
|
|
38
|
-
| Stripe.Events.V2OffSessionPaymentRequiresCaptureEvent
|
|
39
38
|
| Stripe.Events.V2PaymentsOffSessionPaymentAuthorizationAttemptFailedEvent
|
|
40
39
|
| Stripe.Events.V2PaymentsOffSessionPaymentAuthorizationAttemptStartedEvent
|
|
41
40
|
| Stripe.Events.V2PaymentsOffSessionPaymentCanceledEvent
|
|
@@ -54,6 +53,7 @@ declare module 'stripe' {
|
|
|
54
53
|
| Stripe.Events.V2MoneyManagementOutboundTransferPostedEvent
|
|
55
54
|
| Stripe.Events.V2MoneyManagementOutboundTransferReturnedEvent
|
|
56
55
|
| Stripe.Events.V2MoneyManagementOutboundTransferUpdatedEvent
|
|
56
|
+
| Stripe.Events.V2MoneyManagementPayoutMethodUpdatedEvent
|
|
57
57
|
| Stripe.Events.V2MoneyManagementReceivedCreditAvailableEvent
|
|
58
58
|
| Stripe.Events.V2MoneyManagementReceivedCreditFailedEvent
|
|
59
59
|
| Stripe.Events.V2MoneyManagementReceivedCreditReturnedEvent
|
|
@@ -83,13 +83,13 @@ declare module 'stripe' {
|
|
|
83
83
|
/**
|
|
84
84
|
* Occurs when the generated AccountLink is completed.
|
|
85
85
|
*/
|
|
86
|
-
export interface
|
|
87
|
-
type: 'v2.core.account_link.
|
|
86
|
+
export interface V2CoreAccountLinkReturnedEvent extends V2.EventBase {
|
|
87
|
+
type: 'v2.core.account_link.returned';
|
|
88
88
|
// Retrieves data specific to this event.
|
|
89
|
-
data:
|
|
89
|
+
data: V2CoreAccountLinkReturnedEvent.Data;
|
|
90
90
|
}
|
|
91
91
|
|
|
92
|
-
namespace
|
|
92
|
+
namespace V2CoreAccountLinkReturnedEvent {
|
|
93
93
|
export interface Data {
|
|
94
94
|
/**
|
|
95
95
|
* The ID of the v2 account.
|
|
@@ -99,7 +99,7 @@ declare module 'stripe' {
|
|
|
99
99
|
/**
|
|
100
100
|
* Configurations on the Account that was onboarded via the account link.
|
|
101
101
|
*/
|
|
102
|
-
configurations: Array<
|
|
102
|
+
configurations: Array<Data.Configuration>;
|
|
103
103
|
|
|
104
104
|
/**
|
|
105
105
|
* Open Enum. The use case type of the account link that has been completed.
|
|
@@ -108,6 +108,12 @@ declare module 'stripe' {
|
|
|
108
108
|
}
|
|
109
109
|
|
|
110
110
|
namespace Data {
|
|
111
|
+
export type Configuration =
|
|
112
|
+
| 'customer'
|
|
113
|
+
| 'merchant'
|
|
114
|
+
| 'recipient'
|
|
115
|
+
| 'storer';
|
|
116
|
+
|
|
111
117
|
export type UseCase = 'account_onboarding' | 'account_update';
|
|
112
118
|
}
|
|
113
119
|
}
|
|
@@ -808,19 +814,7 @@ declare module 'stripe' {
|
|
|
808
814
|
}
|
|
809
815
|
|
|
810
816
|
/**
|
|
811
|
-
*
|
|
812
|
-
*/
|
|
813
|
-
export interface V2OffSessionPaymentRequiresCaptureEvent
|
|
814
|
-
extends V2.EventBase {
|
|
815
|
-
type: 'v2.off_session_payment.requires_capture';
|
|
816
|
-
// Object containing the reference to API resource relevant to the event.
|
|
817
|
-
related_object: Event.RelatedObject;
|
|
818
|
-
// Retrieves the object associated with the event.
|
|
819
|
-
fetchRelatedObject(): Promise<V2.Payments.OffSessionPayment>;
|
|
820
|
-
}
|
|
821
|
-
|
|
822
|
-
/**
|
|
823
|
-
* Off session payment authorization attempt failed event definition.
|
|
817
|
+
* Sent after a failed authorization if there are still retries available on the OffSessionPayment.
|
|
824
818
|
*/
|
|
825
819
|
export interface V2PaymentsOffSessionPaymentAuthorizationAttemptFailedEvent
|
|
826
820
|
extends V2.EventBase {
|
|
@@ -832,7 +826,8 @@ declare module 'stripe' {
|
|
|
832
826
|
}
|
|
833
827
|
|
|
834
828
|
/**
|
|
835
|
-
*
|
|
829
|
+
* Sent when our internal scheduling system kicks off an attempt at authorization, whether it's a
|
|
830
|
+
* retry or an initial authorization.
|
|
836
831
|
*/
|
|
837
832
|
export interface V2PaymentsOffSessionPaymentAuthorizationAttemptStartedEvent
|
|
838
833
|
extends V2.EventBase {
|
|
@@ -844,7 +839,7 @@ declare module 'stripe' {
|
|
|
844
839
|
}
|
|
845
840
|
|
|
846
841
|
/**
|
|
847
|
-
*
|
|
842
|
+
* Sent immediately following a user's call to the Off-Session Payments cancel endpoint.
|
|
848
843
|
*/
|
|
849
844
|
export interface V2PaymentsOffSessionPaymentCanceledEvent
|
|
850
845
|
extends V2.EventBase {
|
|
@@ -856,7 +851,7 @@ declare module 'stripe' {
|
|
|
856
851
|
}
|
|
857
852
|
|
|
858
853
|
/**
|
|
859
|
-
*
|
|
854
|
+
* Sent immediately following a user's call to the Off-Session Payments create endpoint.
|
|
860
855
|
*/
|
|
861
856
|
export interface V2PaymentsOffSessionPaymentCreatedEvent
|
|
862
857
|
extends V2.EventBase {
|
|
@@ -868,7 +863,7 @@ declare module 'stripe' {
|
|
|
868
863
|
}
|
|
869
864
|
|
|
870
865
|
/**
|
|
871
|
-
*
|
|
866
|
+
* Sent after a failed authorization if there are no retries remaining, or if the failure is unretryable.
|
|
872
867
|
*/
|
|
873
868
|
export interface V2PaymentsOffSessionPaymentFailedEvent
|
|
874
869
|
extends V2.EventBase {
|
|
@@ -880,7 +875,7 @@ declare module 'stripe' {
|
|
|
880
875
|
}
|
|
881
876
|
|
|
882
877
|
/**
|
|
883
|
-
*
|
|
878
|
+
* Sent immediately after a successful authorization.
|
|
884
879
|
*/
|
|
885
880
|
export interface V2PaymentsOffSessionPaymentSucceededEvent
|
|
886
881
|
extends V2.EventBase {
|
|
@@ -1035,6 +1030,18 @@ declare module 'stripe' {
|
|
|
1035
1030
|
fetchRelatedObject(): Promise<V2.MoneyManagement.OutboundTransfer>;
|
|
1036
1031
|
}
|
|
1037
1032
|
|
|
1033
|
+
/**
|
|
1034
|
+
* Occurs when a PayoutMethod is updated.
|
|
1035
|
+
*/
|
|
1036
|
+
export interface V2MoneyManagementPayoutMethodUpdatedEvent
|
|
1037
|
+
extends V2.EventBase {
|
|
1038
|
+
type: 'v2.money_management.payout_method.updated';
|
|
1039
|
+
// Object containing the reference to API resource relevant to the event.
|
|
1040
|
+
related_object: Event.RelatedObject;
|
|
1041
|
+
// Retrieves the object associated with the event.
|
|
1042
|
+
fetchRelatedObject(): Promise<V2.MoneyManagement.PayoutMethod>;
|
|
1043
|
+
}
|
|
1044
|
+
|
|
1038
1045
|
/**
|
|
1039
1046
|
* Occurs when a ReceivedCredit's funds are received and are available in your balance.
|
|
1040
1047
|
*/
|
|
@@ -70,6 +70,11 @@ declare module 'stripe' {
|
|
|
70
70
|
*/
|
|
71
71
|
archived: boolean;
|
|
72
72
|
|
|
73
|
+
/**
|
|
74
|
+
* The type of bank account (checking or savings).
|
|
75
|
+
*/
|
|
76
|
+
bank_account_type: BankAccount.BankAccountType;
|
|
77
|
+
|
|
73
78
|
/**
|
|
74
79
|
* The name of the bank this bank account is in. This field is populated automatically by Stripe.
|
|
75
80
|
*/
|
|
@@ -101,6 +106,10 @@ declare module 'stripe' {
|
|
|
101
106
|
supported_currencies: Array<string>;
|
|
102
107
|
}
|
|
103
108
|
|
|
109
|
+
namespace BankAccount {
|
|
110
|
+
type BankAccountType = 'checking' | 'savings';
|
|
111
|
+
}
|
|
112
|
+
|
|
104
113
|
interface Card {
|
|
105
114
|
/**
|
|
106
115
|
* Whether the PayoutMethodCard object was archived. PayoutMethodCard objects can be archived through
|
|
@@ -5,11 +5,11 @@ declare module 'stripe' {
|
|
|
5
5
|
namespace V2 {
|
|
6
6
|
namespace Payments {
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* OffSessionPayment resource.
|
|
9
9
|
*/
|
|
10
10
|
interface OffSessionPayment {
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* Unique identifier for the object..
|
|
13
13
|
*/
|
|
14
14
|
id: string;
|
|
15
15
|
|
|
@@ -19,37 +19,38 @@ declare module 'stripe' {
|
|
|
19
19
|
object: 'v2.payments.off_session_payment';
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
|
-
* The amount
|
|
22
|
+
* The “presentment amount” to be collected from the customer.
|
|
23
23
|
*/
|
|
24
24
|
amount_requested: Amount;
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
|
-
* The frequency of the underlying payment
|
|
27
|
+
* The frequency of the underlying payment.
|
|
28
28
|
*/
|
|
29
29
|
cadence: OffSessionPayment.Cadence;
|
|
30
30
|
|
|
31
31
|
/**
|
|
32
|
-
* ID of owning compartment.
|
|
32
|
+
* ID of the owning compartment.
|
|
33
33
|
*/
|
|
34
34
|
compartment_id: string;
|
|
35
35
|
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
37
|
+
* Creation time of the OffSessionPayment. Represented as a RFC 3339 date & time UTC
|
|
38
|
+
* value in millisecond precision, for example: 2022-09-18T13:22:18.123Z.
|
|
38
39
|
*/
|
|
39
40
|
created: string;
|
|
40
41
|
|
|
41
42
|
/**
|
|
42
|
-
*
|
|
43
|
+
* ID of the Customer to which this OffSessionPayment belongs.
|
|
43
44
|
*/
|
|
44
45
|
customer: string;
|
|
45
46
|
|
|
46
47
|
/**
|
|
47
|
-
*
|
|
48
|
+
* The reason why the OffSessionPayment failed.
|
|
48
49
|
*/
|
|
49
50
|
failure_reason: OffSessionPayment.FailureReason | null;
|
|
50
51
|
|
|
51
52
|
/**
|
|
52
|
-
*
|
|
53
|
+
* The payment error encountered in the previous attempt to authorize the payment.
|
|
53
54
|
*/
|
|
54
55
|
last_authorization_attempt_error: string | null;
|
|
55
56
|
|
|
@@ -59,57 +60,66 @@ declare module 'stripe' {
|
|
|
59
60
|
latest_payment_attempt_record: string | null;
|
|
60
61
|
|
|
61
62
|
/**
|
|
62
|
-
*
|
|
63
|
+
* Has the value true if the object exists in live mode or the value false if the object exists in test mode.
|
|
63
64
|
*/
|
|
64
65
|
livemode: boolean;
|
|
65
66
|
|
|
66
67
|
/**
|
|
67
|
-
*
|
|
68
|
+
* Set of [key-value pairs](https://docs.corp.stripe.com/api/metadata) that you can
|
|
69
|
+
* attach to an object. This can be useful for storing additional information about
|
|
70
|
+
* the object in a structured format. Learn more about
|
|
71
|
+
* [storing information in metadata](https://docs.corp.stripe.com/payments/payment-intents#storing-information-in-metadata).
|
|
68
72
|
*/
|
|
69
73
|
metadata: Stripe.Metadata;
|
|
70
74
|
|
|
71
75
|
/**
|
|
72
|
-
*
|
|
76
|
+
* The account (if any) for which the funds of the OffSessionPayment are intended.
|
|
73
77
|
*/
|
|
74
78
|
on_behalf_of: string | null;
|
|
75
79
|
|
|
76
80
|
/**
|
|
77
|
-
* ID of payment method.
|
|
81
|
+
* ID of the payment method used in this OffSessionPayment.
|
|
78
82
|
*/
|
|
79
83
|
payment_method: string;
|
|
80
84
|
|
|
81
85
|
/**
|
|
82
|
-
* Payment record associated with the
|
|
86
|
+
* Payment record associated with the OffSessionPayment.
|
|
83
87
|
*/
|
|
84
88
|
payment_record: string | null;
|
|
85
89
|
|
|
86
90
|
/**
|
|
87
|
-
* Details about the
|
|
91
|
+
* Details about the OffSessionPayment retries.
|
|
88
92
|
*/
|
|
89
93
|
retry_details: OffSessionPayment.RetryDetails;
|
|
90
94
|
|
|
91
95
|
/**
|
|
92
|
-
*
|
|
96
|
+
* Text that appears on the customer's statement as the statement descriptor for a
|
|
97
|
+
* non-card charge. This value overrides the account's default statement descriptor.
|
|
98
|
+
* For information about requirements, including the 22-character limit, see the
|
|
99
|
+
* [Statement Descriptor docs](https://docs.stripe.com/get-started/account/statement-descriptors).
|
|
93
100
|
*/
|
|
94
101
|
statement_descriptor: string | null;
|
|
95
102
|
|
|
96
103
|
/**
|
|
97
|
-
*
|
|
104
|
+
* Provides information about a card charge. Concatenated to the account's
|
|
105
|
+
* [statement descriptor prefix](https://docs.stripe.com/get-started/account/statement-descriptors#static)
|
|
106
|
+
* to form the complete statement descriptor that appears on the customer's statement.
|
|
98
107
|
*/
|
|
99
108
|
statement_descriptor_suffix: string | null;
|
|
100
109
|
|
|
101
110
|
/**
|
|
102
|
-
* Status of
|
|
111
|
+
* Status of this OffSessionPayment, one of `pending`, `pending_retry`, `processing`,
|
|
112
|
+
* `failed`, `canceled`, `requires_capture`, or `succeeded`.
|
|
103
113
|
*/
|
|
104
114
|
status: OffSessionPayment.Status;
|
|
105
115
|
|
|
106
116
|
/**
|
|
107
|
-
* Test clock
|
|
117
|
+
* Test clock that can be used to advance the retry attempts in a sandbox.
|
|
108
118
|
*/
|
|
109
119
|
test_clock: string | null;
|
|
110
120
|
|
|
111
121
|
/**
|
|
112
|
-
*
|
|
122
|
+
* The data that automatically creates a Transfer after the payment finalizes. Learn more about the use case for [connected accounts](https://docs.corp.stripe.com/payments/connected-accounts).
|
|
113
123
|
*/
|
|
114
124
|
transfer_data: OffSessionPayment.TransferData | null;
|
|
115
125
|
}
|
|
@@ -126,7 +136,7 @@ declare module 'stripe' {
|
|
|
126
136
|
attempts: number;
|
|
127
137
|
|
|
128
138
|
/**
|
|
129
|
-
*
|
|
139
|
+
* Indicates the strategy for how you want Stripe to retry the payment.
|
|
130
140
|
*/
|
|
131
141
|
retry_strategy: RetryDetails.RetryStrategy;
|
|
132
142
|
}
|
|
@@ -146,12 +156,19 @@ declare module 'stripe' {
|
|
|
146
156
|
|
|
147
157
|
interface TransferData {
|
|
148
158
|
/**
|
|
149
|
-
*
|
|
159
|
+
* The amount transferred to the destination account. This transfer will occur
|
|
160
|
+
* automatically after the payment succeeds. If no amount is specified, by default
|
|
161
|
+
* the entire payment amount is transferred to the destination account. The amount
|
|
162
|
+
* must be less than or equal to the
|
|
163
|
+
* [amount_requested](https://docs.corp.stripe.com/api/v2/off-session-payments/object?api-version=2025-05-28.preview#v2_off_session_payment_object-amount_requested),
|
|
164
|
+
* and must be a positive integer representing how much to transfer in the smallest
|
|
165
|
+
* currency unit (e.g., 100 cents to charge $1.00).
|
|
150
166
|
*/
|
|
151
167
|
amount: number | null;
|
|
152
168
|
|
|
153
169
|
/**
|
|
154
|
-
*
|
|
170
|
+
* The account (if any) that the payment is attributed to for tax reporting, and
|
|
171
|
+
* where funds from the payment are transferred to after payment success.
|
|
155
172
|
*/
|
|
156
173
|
destination: string;
|
|
157
174
|
}
|