stripe 19.2.0-alpha.3 → 19.2.0-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +15 -0
- package/OPENAPI_VERSION +1 -1
- package/VERSION +1 -1
- package/cjs/resources/V2/Billing/PricingPlanSubscriptions/Components.js +12 -0
- package/cjs/resources/V2/Billing/PricingPlanSubscriptions.js +5 -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/stripe.core.js +1 -1
- package/esm/resources/V2/Billing/PricingPlanSubscriptions/Components.js +9 -0
- package/esm/resources/V2/Billing/PricingPlanSubscriptions.js +5 -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/stripe.core.js +1 -1
- package/package.json +1 -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/DelegatedCheckout/RequestedSessions.d.ts +250 -1
- package/types/DelegatedCheckout/RequestedSessionsResource.d.ts +487 -4
- package/types/V2/Billing/Cadences.d.ts +2 -2
- 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/PricingPlanSubscriptionComponents.d.ts +57 -0
- package/types/V2/Billing/PricingPlanSubscriptions/ComponentsResource.d.ts +40 -0
- package/types/V2/Billing/PricingPlanSubscriptionsResource.d.ts +2 -0
- package/types/V2/Core/Accounts.d.ts +93 -2
- package/types/V2/Core/AccountsResource.d.ts +88 -5
- package/types/V2/Core/EventTypes.d.ts +99 -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/OutboundPaymentsResource.d.ts +1 -1
- package/types/V2/TestHelpers/MoneyManagementResource.d.ts +1 -0
- package/types/index.d.ts +2 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 19.2.0-alpha.4 - 2025-10-23
|
|
4
|
+
* [#2471](https://github.com/stripe/stripe-node/pull/2471) Update generated code for private-preview
|
|
5
|
+
* Add support for new resource `V2.Billing.PricingPlanSubscriptionComponents`
|
|
6
|
+
* Add support for `retrieve` method on resource `V2.Billing.PricingPlanSubscriptionComponents`
|
|
7
|
+
* Add support for `dimension_payload_keys` on `Billing.MeterCreateParams` and `Billing.Meter`
|
|
8
|
+
* Add support for `dimension_filters` and `dimension_group_by_keys` on `Billing.MeterListMeterEventSummariesParams`
|
|
9
|
+
* Add support for `dimensions` on `Billing.MeterEventSummary`
|
|
10
|
+
* Add support for `fulfillment_details` and `payment_method_data` on `DelegatedCheckout.RequestedSessionCreateParams` and `DelegatedCheckout.RequestedSessionUpdateParams`
|
|
11
|
+
* Add support for `line_item_details`, `metadata`, `payment_method`, and `shared_metadata` on `DelegatedCheckout.RequestedSessionCreateParams`, `DelegatedCheckout.RequestedSessionUpdateParams`, and `DelegatedCheckout.RequestedSession`
|
|
12
|
+
* Add support for `currency`, `customer`, and `risk_details` on `DelegatedCheckout.RequestedSessionCreateParams`
|
|
13
|
+
* Add support for `seller_details` and `setup_future_usage` on `DelegatedCheckout.RequestedSessionCreateParams` and `DelegatedCheckout.RequestedSession`
|
|
14
|
+
* Add support for `amount_subtotal`, `amount_total`, `created_at`, `expires_at`, `order_details`, `shared_payment_issued_token`, `status`, `total_details`, and `updated_at` on `DelegatedCheckout.RequestedSession`
|
|
15
|
+
* Add support for `address`, `email`, `fulfillment_options`, `name`, `phone`, and `selected_fulfillment_option` on `DelegatedCheckout.RequestedSession.fulfillment_details`
|
|
16
|
+
* Add support for new values `billie`, `crypto`, `kr_card`, `kriya`, `mb_way`, `mondu`, `ng_bank_transfer`, `ng_bank`, `ng_card`, `ng_market`, `ng_ussd`, `ng_wallet`, `payco`, `paypay`, `rechnung`, `samsung_pay`, `satispay`, `scalapay`, `sequra`, `sunbit`, `us_bank_account`, and `vipps` on enums `EventsV2CoreHealthAuthorizationRateDropFiringEvent.impact.payment_method_type`, `EventsV2CoreHealthAuthorizationRateDropResolvedEvent.impact.payment_method_type`, `EventsV2CoreHealthPaymentMethodErrorFiringEvent.impact.payment_method_type`, and `EventsV2CoreHealthPaymentMethodErrorResolvedEvent.impact.payment_method_type`
|
|
17
|
+
|
|
3
18
|
## 19.2.0-alpha.3 - 2025-10-17
|
|
4
19
|
* [#2463](https://github.com/stripe/stripe-node/pull/2463) Update generated code for private-preview
|
|
5
20
|
* Add support for new resources `DelegatedCheckout.RequestedSession` and `Identity.BlocklistEntry`
|
package/OPENAPI_VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
v2100
|
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
19.2.0-alpha.
|
|
1
|
+
19.2.0-alpha.4
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Components = void 0;
|
|
5
|
+
const StripeResource_js_1 = require("../../../../StripeResource.js");
|
|
6
|
+
const stripeMethod = StripeResource_js_1.StripeResource.method;
|
|
7
|
+
exports.Components = StripeResource_js_1.StripeResource.extend({
|
|
8
|
+
retrieve: stripeMethod({
|
|
9
|
+
method: 'GET',
|
|
10
|
+
fullPath: '/v2/billing/pricing_plan_subscriptions/{id}/components',
|
|
11
|
+
}),
|
|
12
|
+
});
|
|
@@ -3,8 +3,13 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.PricingPlanSubscriptions = void 0;
|
|
5
5
|
const StripeResource_js_1 = require("../../../StripeResource.js");
|
|
6
|
+
const Components_js_1 = require("./PricingPlanSubscriptions/Components.js");
|
|
6
7
|
const stripeMethod = StripeResource_js_1.StripeResource.method;
|
|
7
8
|
exports.PricingPlanSubscriptions = StripeResource_js_1.StripeResource.extend({
|
|
9
|
+
constructor: function (...args) {
|
|
10
|
+
StripeResource_js_1.StripeResource.apply(this, args);
|
|
11
|
+
this.components = new Components_js_1.Components(...args);
|
|
12
|
+
},
|
|
8
13
|
retrieve: stripeMethod({
|
|
9
14
|
method: 'GET',
|
|
10
15
|
fullPath: '/v2/billing/pricing_plan_subscriptions/{id}',
|
|
@@ -13,6 +13,11 @@ exports.GbBankAccounts = StripeResource_js_1.StripeResource.extend({
|
|
|
13
13
|
method: 'GET',
|
|
14
14
|
fullPath: '/v2/core/vault/gb_bank_accounts/{id}',
|
|
15
15
|
}),
|
|
16
|
+
list: stripeMethod({
|
|
17
|
+
method: 'GET',
|
|
18
|
+
fullPath: '/v2/core/vault/gb_bank_accounts',
|
|
19
|
+
methodType: 'list',
|
|
20
|
+
}),
|
|
16
21
|
acknowledgeConfirmationOfPayee: stripeMethod({
|
|
17
22
|
method: 'POST',
|
|
18
23
|
fullPath: '/v2/core/vault/gb_bank_accounts/{id}/acknowledge_confirmation_of_payee',
|
|
@@ -17,8 +17,21 @@ exports.UsBankAccounts = StripeResource_js_1.StripeResource.extend({
|
|
|
17
17
|
method: 'POST',
|
|
18
18
|
fullPath: '/v2/core/vault/us_bank_accounts/{id}',
|
|
19
19
|
}),
|
|
20
|
+
list: stripeMethod({
|
|
21
|
+
method: 'GET',
|
|
22
|
+
fullPath: '/v2/core/vault/us_bank_accounts',
|
|
23
|
+
methodType: 'list',
|
|
24
|
+
}),
|
|
20
25
|
archive: stripeMethod({
|
|
21
26
|
method: 'POST',
|
|
22
27
|
fullPath: '/v2/core/vault/us_bank_accounts/{id}/archive',
|
|
23
28
|
}),
|
|
29
|
+
confirmMicrodeposits: stripeMethod({
|
|
30
|
+
method: 'POST',
|
|
31
|
+
fullPath: '/v2/core/vault/us_bank_accounts/{id}/confirm_microdeposits',
|
|
32
|
+
}),
|
|
33
|
+
sendMicrodeposits: stripeMethod({
|
|
34
|
+
method: 'POST',
|
|
35
|
+
fullPath: '/v2/core/vault/us_bank_accounts/{id}/send_microdeposits',
|
|
36
|
+
}),
|
|
24
37
|
});
|
|
@@ -13,6 +13,10 @@ exports.FinancialAccounts = StripeResource_js_1.StripeResource.extend({
|
|
|
13
13
|
method: 'GET',
|
|
14
14
|
fullPath: '/v2/money_management/financial_accounts/{id}',
|
|
15
15
|
}),
|
|
16
|
+
update: stripeMethod({
|
|
17
|
+
method: 'POST',
|
|
18
|
+
fullPath: '/v2/money_management/financial_accounts/{id}',
|
|
19
|
+
}),
|
|
16
20
|
list: stripeMethod({
|
|
17
21
|
method: 'GET',
|
|
18
22
|
fullPath: '/v2/money_management/financial_accounts',
|
package/cjs/stripe.core.js
CHANGED
|
@@ -37,7 +37,7 @@ const ALLOWED_CONFIG_PROPERTIES = [
|
|
|
37
37
|
];
|
|
38
38
|
const defaultRequestSenderFactory = (stripe) => new RequestSender_js_1.RequestSender(stripe, StripeResource_js_1.StripeResource.MAX_BUFFERED_REQUEST_METRICS);
|
|
39
39
|
function createStripe(platformFunctions, requestSender = defaultRequestSenderFactory) {
|
|
40
|
-
Stripe.PACKAGE_VERSION = '19.2.0-alpha.
|
|
40
|
+
Stripe.PACKAGE_VERSION = '19.2.0-alpha.4';
|
|
41
41
|
Stripe.API_VERSION = apiVersion_js_1.ApiVersion;
|
|
42
42
|
Stripe.USER_AGENT = Object.assign({ bindings_version: Stripe.PACKAGE_VERSION, lang: 'node', publisher: 'stripe', uname: null, typescript: false }, (0, utils_js_1.determineProcessUserAgentProperties)());
|
|
43
43
|
Stripe.StripeResource = StripeResource_js_1.StripeResource;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
import { StripeResource } from '../../../../StripeResource.js';
|
|
3
|
+
const stripeMethod = StripeResource.method;
|
|
4
|
+
export const Components = StripeResource.extend({
|
|
5
|
+
retrieve: stripeMethod({
|
|
6
|
+
method: 'GET',
|
|
7
|
+
fullPath: '/v2/billing/pricing_plan_subscriptions/{id}/components',
|
|
8
|
+
}),
|
|
9
|
+
});
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec
|
|
2
2
|
import { StripeResource } from '../../../StripeResource.js';
|
|
3
|
+
import { Components } from './PricingPlanSubscriptions/Components.js';
|
|
3
4
|
const stripeMethod = StripeResource.method;
|
|
4
5
|
export const PricingPlanSubscriptions = StripeResource.extend({
|
|
6
|
+
constructor: function (...args) {
|
|
7
|
+
StripeResource.apply(this, args);
|
|
8
|
+
this.components = new Components(...args);
|
|
9
|
+
},
|
|
5
10
|
retrieve: stripeMethod({
|
|
6
11
|
method: 'GET',
|
|
7
12
|
fullPath: '/v2/billing/pricing_plan_subscriptions/{id}',
|
|
@@ -10,6 +10,11 @@ export const GbBankAccounts = StripeResource.extend({
|
|
|
10
10
|
method: 'GET',
|
|
11
11
|
fullPath: '/v2/core/vault/gb_bank_accounts/{id}',
|
|
12
12
|
}),
|
|
13
|
+
list: stripeMethod({
|
|
14
|
+
method: 'GET',
|
|
15
|
+
fullPath: '/v2/core/vault/gb_bank_accounts',
|
|
16
|
+
methodType: 'list',
|
|
17
|
+
}),
|
|
13
18
|
acknowledgeConfirmationOfPayee: stripeMethod({
|
|
14
19
|
method: 'POST',
|
|
15
20
|
fullPath: '/v2/core/vault/gb_bank_accounts/{id}/acknowledge_confirmation_of_payee',
|
|
@@ -14,8 +14,21 @@ export const UsBankAccounts = StripeResource.extend({
|
|
|
14
14
|
method: 'POST',
|
|
15
15
|
fullPath: '/v2/core/vault/us_bank_accounts/{id}',
|
|
16
16
|
}),
|
|
17
|
+
list: stripeMethod({
|
|
18
|
+
method: 'GET',
|
|
19
|
+
fullPath: '/v2/core/vault/us_bank_accounts',
|
|
20
|
+
methodType: 'list',
|
|
21
|
+
}),
|
|
17
22
|
archive: stripeMethod({
|
|
18
23
|
method: 'POST',
|
|
19
24
|
fullPath: '/v2/core/vault/us_bank_accounts/{id}/archive',
|
|
20
25
|
}),
|
|
26
|
+
confirmMicrodeposits: stripeMethod({
|
|
27
|
+
method: 'POST',
|
|
28
|
+
fullPath: '/v2/core/vault/us_bank_accounts/{id}/confirm_microdeposits',
|
|
29
|
+
}),
|
|
30
|
+
sendMicrodeposits: stripeMethod({
|
|
31
|
+
method: 'POST',
|
|
32
|
+
fullPath: '/v2/core/vault/us_bank_accounts/{id}/send_microdeposits',
|
|
33
|
+
}),
|
|
21
34
|
});
|
|
@@ -10,6 +10,10 @@ export const FinancialAccounts = StripeResource.extend({
|
|
|
10
10
|
method: 'GET',
|
|
11
11
|
fullPath: '/v2/money_management/financial_accounts/{id}',
|
|
12
12
|
}),
|
|
13
|
+
update: stripeMethod({
|
|
14
|
+
method: 'POST',
|
|
15
|
+
fullPath: '/v2/money_management/financial_accounts/{id}',
|
|
16
|
+
}),
|
|
13
17
|
list: stripeMethod({
|
|
14
18
|
method: 'GET',
|
|
15
19
|
fullPath: '/v2/money_management/financial_accounts',
|
package/esm/stripe.core.js
CHANGED
|
@@ -34,7 +34,7 @@ const ALLOWED_CONFIG_PROPERTIES = [
|
|
|
34
34
|
];
|
|
35
35
|
const defaultRequestSenderFactory = (stripe) => new RequestSender(stripe, StripeResource.MAX_BUFFERED_REQUEST_METRICS);
|
|
36
36
|
export function createStripe(platformFunctions, requestSender = defaultRequestSenderFactory) {
|
|
37
|
-
Stripe.PACKAGE_VERSION = '19.2.0-alpha.
|
|
37
|
+
Stripe.PACKAGE_VERSION = '19.2.0-alpha.4';
|
|
38
38
|
Stripe.API_VERSION = ApiVersion;
|
|
39
39
|
Stripe.USER_AGENT = Object.assign({ bindings_version: Stripe.PACKAGE_VERSION, lang: 'node', publisher: 'stripe', uname: null, typescript: false }, determineProcessUserAgentProperties());
|
|
40
40
|
Stripe.StripeResource = StripeResource;
|
package/package.json
CHANGED
|
@@ -25,6 +25,13 @@ declare module 'stripe' {
|
|
|
25
25
|
*/
|
|
26
26
|
aggregated_value: number;
|
|
27
27
|
|
|
28
|
+
/**
|
|
29
|
+
* Key-value pairs of dimension values for event summaries with grouping on dimensions.
|
|
30
|
+
*/
|
|
31
|
+
dimensions?: {
|
|
32
|
+
[key: string]: string;
|
|
33
|
+
} | null;
|
|
34
|
+
|
|
28
35
|
/**
|
|
29
36
|
* End timestamp for this event summary (exclusive). Must be aligned with minute boundaries.
|
|
30
37
|
*/
|
|
@@ -24,6 +24,11 @@ declare module 'stripe' {
|
|
|
24
24
|
*/
|
|
25
25
|
customer_mapping?: MeterCreateParams.CustomerMapping;
|
|
26
26
|
|
|
27
|
+
/**
|
|
28
|
+
* Set of keys that will be used to group meter events by. Each key must be present in the event payload.
|
|
29
|
+
*/
|
|
30
|
+
dimension_payload_keys?: Array<string>;
|
|
31
|
+
|
|
27
32
|
/**
|
|
28
33
|
* The time window which meter events have been pre-aggregated for, if any.
|
|
29
34
|
*/
|
|
@@ -132,6 +137,18 @@ declare module 'stripe' {
|
|
|
132
137
|
*/
|
|
133
138
|
start_time: number;
|
|
134
139
|
|
|
140
|
+
/**
|
|
141
|
+
* Key-value pairs used to filter meter events by dimension values. If specified, event summaries will be generated with only matching meter events.
|
|
142
|
+
*/
|
|
143
|
+
dimension_filters?: {
|
|
144
|
+
[key: string]: string;
|
|
145
|
+
};
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* List of dimension payload keys to group by. If specified, event summaries will be grouped by the given dimension payload key values.
|
|
149
|
+
*/
|
|
150
|
+
dimension_group_by_keys?: Array<string>;
|
|
151
|
+
|
|
135
152
|
/**
|
|
136
153
|
* Specifies which fields in the response should be expanded.
|
|
137
154
|
*/
|
|
@@ -17,6 +17,21 @@ declare module 'stripe' {
|
|
|
17
17
|
*/
|
|
18
18
|
object: 'delegated_checkout.requested_session';
|
|
19
19
|
|
|
20
|
+
/**
|
|
21
|
+
* The subtotal amount of the requested session.
|
|
22
|
+
*/
|
|
23
|
+
amount_subtotal: number;
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* The total amount of the requested session.
|
|
27
|
+
*/
|
|
28
|
+
amount_total: number;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Time at which the object was created. Measured in seconds since the Unix epoch.
|
|
32
|
+
*/
|
|
33
|
+
created_at: number;
|
|
34
|
+
|
|
20
35
|
/**
|
|
21
36
|
* Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
|
22
37
|
*/
|
|
@@ -27,16 +42,250 @@ declare module 'stripe' {
|
|
|
27
42
|
*/
|
|
28
43
|
customer: string | null;
|
|
29
44
|
|
|
45
|
+
/**
|
|
46
|
+
* Time at which the requested session expires. Measured in seconds since the Unix epoch.
|
|
47
|
+
*/
|
|
48
|
+
expires_at: number;
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* The details of the fulfillment.
|
|
52
|
+
*/
|
|
30
53
|
fulfillment_details: RequestedSession.FulfillmentDetails | null;
|
|
31
54
|
|
|
55
|
+
/**
|
|
56
|
+
* The line items to be purchased.
|
|
57
|
+
*/
|
|
58
|
+
line_item_details: Array<RequestedSession.LineItemDetail>;
|
|
59
|
+
|
|
32
60
|
/**
|
|
33
61
|
* Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
34
62
|
*/
|
|
35
63
|
livemode: boolean;
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
|
|
67
|
+
*/
|
|
68
|
+
metadata: Stripe.Metadata | null;
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* The details of the order.
|
|
72
|
+
*/
|
|
73
|
+
order_details: RequestedSession.OrderDetails | null;
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* The payment method used for the requested session.
|
|
77
|
+
*/
|
|
78
|
+
payment_method: string | null;
|
|
79
|
+
|
|
80
|
+
seller_details: RequestedSession.SellerDetails;
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Whether or not the payment method should be saved for future use.
|
|
84
|
+
*/
|
|
85
|
+
setup_future_usage: 'on_session' | null;
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* The metadata shared with the seller.
|
|
89
|
+
*/
|
|
90
|
+
shared_metadata: {
|
|
91
|
+
[key: string]: string;
|
|
92
|
+
} | null;
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* The SPT used for payment.
|
|
96
|
+
*/
|
|
97
|
+
shared_payment_issued_token: string | null;
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* The status of the requested session.
|
|
101
|
+
*/
|
|
102
|
+
status: RequestedSession.Status;
|
|
103
|
+
|
|
104
|
+
total_details: RequestedSession.TotalDetails;
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* Time at which the object was last updated. Measured in seconds since the Unix epoch.
|
|
108
|
+
*/
|
|
109
|
+
updated_at: number;
|
|
36
110
|
}
|
|
37
111
|
|
|
38
112
|
namespace RequestedSession {
|
|
39
|
-
interface FulfillmentDetails {
|
|
113
|
+
interface FulfillmentDetails {
|
|
114
|
+
/**
|
|
115
|
+
* The fulfillment address.
|
|
116
|
+
*/
|
|
117
|
+
address: Stripe.Address | null;
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* The email address for the fulfillment details.
|
|
121
|
+
*/
|
|
122
|
+
email: string | null;
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* The fulfillment options.
|
|
126
|
+
*/
|
|
127
|
+
fulfillment_options: Array<
|
|
128
|
+
FulfillmentDetails.FulfillmentOption
|
|
129
|
+
> | null;
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* The name for the fulfillment details.
|
|
133
|
+
*/
|
|
134
|
+
name: string | null;
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* The phone number for the fulfillment details.
|
|
138
|
+
*/
|
|
139
|
+
phone: string | null;
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* The fulfillment option.
|
|
143
|
+
*/
|
|
144
|
+
selected_fulfillment_option: FulfillmentDetails.SelectedFulfillmentOption | null;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
namespace FulfillmentDetails {
|
|
148
|
+
interface FulfillmentOption {
|
|
149
|
+
/**
|
|
150
|
+
* The shipping option.
|
|
151
|
+
*/
|
|
152
|
+
shipping: FulfillmentOption.Shipping | null;
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* The type of the fulfillment option.
|
|
156
|
+
*/
|
|
157
|
+
type: string;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
namespace FulfillmentOption {
|
|
161
|
+
interface Shipping {
|
|
162
|
+
/**
|
|
163
|
+
* The shipping options.
|
|
164
|
+
*/
|
|
165
|
+
shipping_options: Array<Shipping.ShippingOption> | null;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
namespace Shipping {
|
|
169
|
+
interface ShippingOption {
|
|
170
|
+
/**
|
|
171
|
+
* The description of the shipping option.
|
|
172
|
+
*/
|
|
173
|
+
description: string | null;
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* The display name of the shipping option.
|
|
177
|
+
*/
|
|
178
|
+
display_name: string;
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* The earliest delivery time of the shipping option.
|
|
182
|
+
*/
|
|
183
|
+
earliest_delivery_time: number | null;
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* The key of the shipping option.
|
|
187
|
+
*/
|
|
188
|
+
key: string;
|
|
189
|
+
|
|
190
|
+
/**
|
|
191
|
+
* The latest delivery time of the shipping option.
|
|
192
|
+
*/
|
|
193
|
+
latest_delivery_time: number | null;
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* The shipping amount of the shipping option.
|
|
197
|
+
*/
|
|
198
|
+
shipping_amount: number;
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
interface SelectedFulfillmentOption {
|
|
204
|
+
/**
|
|
205
|
+
* The shipping option.
|
|
206
|
+
*/
|
|
207
|
+
shipping: SelectedFulfillmentOption.Shipping | null;
|
|
208
|
+
|
|
209
|
+
/**
|
|
210
|
+
* The type of the selected fulfillment option.
|
|
211
|
+
*/
|
|
212
|
+
type: string;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
namespace SelectedFulfillmentOption {
|
|
216
|
+
interface Shipping {
|
|
217
|
+
/**
|
|
218
|
+
* The shipping option.
|
|
219
|
+
*/
|
|
220
|
+
shipping_option: string | null;
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
interface LineItemDetail {
|
|
226
|
+
/**
|
|
227
|
+
* The description of the line item.
|
|
228
|
+
*/
|
|
229
|
+
description: string | null;
|
|
230
|
+
|
|
231
|
+
/**
|
|
232
|
+
* The images of the line item.
|
|
233
|
+
*/
|
|
234
|
+
images: Array<string> | null;
|
|
235
|
+
|
|
236
|
+
/**
|
|
237
|
+
* The key of the line item.
|
|
238
|
+
*/
|
|
239
|
+
key: string;
|
|
240
|
+
|
|
241
|
+
/**
|
|
242
|
+
* The name of the line item.
|
|
243
|
+
*/
|
|
244
|
+
name: string;
|
|
245
|
+
|
|
246
|
+
/**
|
|
247
|
+
* The quantity of the line item.
|
|
248
|
+
*/
|
|
249
|
+
quantity: number;
|
|
250
|
+
|
|
251
|
+
/**
|
|
252
|
+
* The SKU ID of the line item.
|
|
253
|
+
*/
|
|
254
|
+
sku_id: string;
|
|
255
|
+
|
|
256
|
+
/**
|
|
257
|
+
* The unit amount of the line item.
|
|
258
|
+
*/
|
|
259
|
+
unit_amount: number;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
interface OrderDetails {
|
|
263
|
+
/**
|
|
264
|
+
* The URL to the order status.
|
|
265
|
+
*/
|
|
266
|
+
order_status_url: string | null;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
interface SellerDetails {}
|
|
270
|
+
|
|
271
|
+
type Status = 'completed' | 'expired' | 'open';
|
|
272
|
+
|
|
273
|
+
interface TotalDetails {
|
|
274
|
+
/**
|
|
275
|
+
* The amount discount of the total details.
|
|
276
|
+
*/
|
|
277
|
+
amount_discount: number | null;
|
|
278
|
+
|
|
279
|
+
/**
|
|
280
|
+
* The amount fulfillment of the total details.
|
|
281
|
+
*/
|
|
282
|
+
amount_fulfillment: number | null;
|
|
283
|
+
|
|
284
|
+
/**
|
|
285
|
+
* The amount tax of the total details.
|
|
286
|
+
*/
|
|
287
|
+
amount_tax: number | null;
|
|
288
|
+
}
|
|
40
289
|
}
|
|
41
290
|
}
|
|
42
291
|
}
|