@etohq/types 1.3.0 → 1.5.0
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/LICENSE +21 -0
- package/dist/analytics/index.d.ts +5 -0
- package/dist/analytics/index.d.ts.map +1 -0
- package/dist/analytics/index.js +21 -0
- package/dist/analytics/index.js.map +1 -0
- package/dist/analytics/mutations.d.ts +71 -0
- package/dist/analytics/mutations.d.ts.map +1 -0
- package/dist/{index-data/sotrage-provider.js → analytics/mutations.js} +1 -1
- package/dist/analytics/mutations.js.map +1 -0
- package/dist/analytics/provider.d.ts +41 -0
- package/dist/analytics/provider.d.ts.map +1 -0
- package/dist/analytics/provider.js +3 -0
- package/dist/analytics/provider.js.map +1 -0
- package/dist/analytics/providers/index.d.ts +3 -0
- package/dist/analytics/providers/index.d.ts.map +1 -0
- package/dist/analytics/providers/index.js +19 -0
- package/dist/analytics/providers/index.js.map +1 -0
- package/dist/analytics/providers/local.d.ts +3 -0
- package/dist/analytics/providers/local.d.ts.map +1 -0
- package/dist/analytics/providers/local.js +3 -0
- package/dist/analytics/providers/local.js.map +1 -0
- package/dist/analytics/providers/posthog.d.ts +11 -0
- package/dist/analytics/providers/posthog.d.ts.map +1 -0
- package/dist/analytics/providers/posthog.js +3 -0
- package/dist/analytics/providers/posthog.js.map +1 -0
- package/dist/analytics/service.d.ts +51 -0
- package/dist/analytics/service.d.ts.map +1 -0
- package/dist/{link-modules-sdk → analytics}/service.js.map +1 -1
- package/dist/api-key/mutations/api-key.d.ts +2 -0
- package/dist/api-key/mutations/api-key.d.ts.map +1 -1
- package/dist/auth/common/auth-identity.d.ts +1 -1
- package/dist/auth/common/auth-identity.d.ts.map +1 -1
- package/dist/auth/provider.d.ts +1 -7
- package/dist/auth/provider.d.ts.map +1 -1
- package/dist/auth/service.d.ts +50 -0
- package/dist/auth/service.d.ts.map +1 -1
- package/dist/bundles.d.ts +2 -1
- package/dist/bundles.d.ts.map +1 -1
- package/dist/bundles.js +3 -2
- package/dist/bundles.js.map +1 -1
- package/dist/cache/service.d.ts +27 -0
- package/dist/cache/service.d.ts.map +1 -1
- package/dist/cart/common.d.ts +1125 -0
- package/dist/cart/common.d.ts.map +1 -0
- package/dist/cart/common.js +3 -0
- package/dist/cart/common.js.map +1 -0
- package/dist/cart/index.d.ts +5 -0
- package/dist/cart/index.d.ts.map +1 -0
- package/dist/cart/index.js +21 -0
- package/dist/cart/index.js.map +1 -0
- package/dist/cart/mutations.d.ts +734 -0
- package/dist/cart/mutations.d.ts.map +1 -0
- package/dist/cart/mutations.js +4 -0
- package/dist/cart/mutations.js.map +1 -0
- package/dist/cart/service.d.ts +1888 -0
- package/dist/cart/service.d.ts.map +1 -0
- package/dist/cart/service.js +3 -0
- package/dist/cart/service.js.map +1 -0
- package/dist/cart/workflows.d.ts +480 -0
- package/dist/cart/workflows.d.ts.map +1 -0
- package/dist/cart/workflows.js +3 -0
- package/dist/cart/workflows.js.map +1 -0
- package/dist/common/batch.d.ts +47 -0
- package/dist/common/batch.d.ts.map +1 -1
- package/dist/common/common.d.ts +11 -1
- package/dist/common/common.d.ts.map +1 -1
- package/dist/common/config-module.d.ts +222 -63
- package/dist/common/config-module.d.ts.map +1 -1
- package/dist/common/modules.d.ts +133 -15
- package/dist/common/modules.d.ts.map +1 -1
- package/dist/dal/repository-service.d.ts +2 -2
- package/dist/dal/repository-service.d.ts.map +1 -1
- package/dist/dml/index.d.ts +8 -0
- package/dist/dml/index.d.ts.map +1 -1
- package/dist/event-bus/common.d.ts +24 -0
- package/dist/event-bus/common.d.ts.map +1 -1
- package/dist/event-bus/event-bus-module.d.ts +58 -0
- package/dist/event-bus/event-bus-module.d.ts.map +1 -1
- package/dist/file/common.d.ts +22 -2
- package/dist/file/common.d.ts.map +1 -1
- package/dist/file/mutations.d.ts +21 -3
- package/dist/file/mutations.d.ts.map +1 -1
- package/dist/file/provider.d.ts +75 -7
- package/dist/file/provider.d.ts.map +1 -1
- package/dist/file/service.d.ts +83 -11
- package/dist/file/service.d.ts.map +1 -1
- package/dist/http/auth/payloads.d.ts +3 -0
- package/dist/http/auth/payloads.d.ts.map +1 -1
- package/dist/http/common/additional_data.d.ts +9 -2
- package/dist/http/common/additional_data.d.ts.map +1 -1
- package/dist/http/common/request.d.ts +29 -6
- package/dist/http/common/request.d.ts.map +1 -1
- package/dist/http/common/response.d.ts +28 -0
- package/dist/http/common/response.d.ts.map +1 -1
- package/dist/http/currency/admin/entities.d.ts +4 -0
- package/dist/http/currency/admin/entities.d.ts.map +1 -0
- package/dist/http/currency/admin/entities.js +3 -0
- package/dist/http/currency/admin/entities.js.map +1 -0
- package/dist/http/currency/admin/index.d.ts +4 -0
- package/dist/http/currency/admin/index.d.ts.map +1 -0
- package/dist/http/currency/admin/index.js +20 -0
- package/dist/http/currency/admin/index.js.map +1 -0
- package/dist/http/currency/admin/queries.d.ts +15 -0
- package/dist/http/currency/admin/queries.d.ts.map +1 -0
- package/dist/http/currency/admin/queries.js +3 -0
- package/dist/http/currency/admin/queries.js.map +1 -0
- package/dist/http/currency/admin/responses.d.ts +16 -0
- package/dist/http/currency/admin/responses.d.ts.map +1 -0
- package/dist/http/currency/admin/responses.js +3 -0
- package/dist/http/currency/admin/responses.js.map +1 -0
- package/dist/http/currency/common.d.ts +48 -0
- package/dist/http/currency/common.d.ts.map +1 -0
- package/dist/http/currency/common.js +3 -0
- package/dist/http/currency/common.js.map +1 -0
- package/dist/http/currency/index.d.ts +2 -0
- package/dist/http/currency/index.d.ts.map +1 -0
- package/dist/http/currency/index.js +18 -0
- package/dist/http/currency/index.js.map +1 -0
- package/dist/http/encore/encore.d.ts +4 -2
- package/dist/http/encore/encore.d.ts.map +1 -1
- package/dist/http/encore/encore.js.map +1 -1
- package/dist/http/file/admin/payloads.d.ts +18 -0
- package/dist/http/file/admin/payloads.d.ts.map +1 -1
- package/dist/http/file/admin/responses.d.ts +33 -0
- package/dist/http/file/admin/responses.d.ts.map +1 -1
- package/dist/http/file/common.d.ts +17 -0
- package/dist/http/file/common.d.ts.map +1 -1
- package/dist/http/invite/admin/entities.d.ts +35 -0
- package/dist/http/invite/admin/entities.d.ts.map +1 -0
- package/dist/http/invite/admin/entities.js +3 -0
- package/dist/http/invite/admin/entities.js.map +1 -0
- package/dist/http/invite/admin/index.d.ts +5 -0
- package/dist/http/invite/admin/index.d.ts.map +1 -0
- package/dist/http/invite/admin/index.js +21 -0
- package/dist/http/invite/admin/index.js.map +1 -0
- package/dist/http/invite/admin/payloads.d.ts +25 -0
- package/dist/http/invite/admin/payloads.d.ts.map +1 -0
- package/dist/http/invite/admin/payloads.js +3 -0
- package/dist/http/invite/admin/payloads.js.map +1 -0
- package/dist/http/invite/admin/queries.d.ts +11 -0
- package/dist/http/invite/admin/queries.d.ts.map +1 -0
- package/dist/http/invite/admin/queries.js +3 -0
- package/dist/http/invite/admin/queries.js.map +1 -0
- package/dist/http/invite/admin/responses.d.ts +28 -0
- package/dist/http/invite/admin/responses.d.ts.map +1 -0
- package/dist/http/invite/admin/responses.js +3 -0
- package/dist/http/invite/admin/responses.js.map +1 -0
- package/dist/http/invite/index.d.ts +2 -0
- package/dist/http/invite/index.d.ts.map +1 -0
- package/dist/http/invite/index.js +18 -0
- package/dist/http/invite/index.js.map +1 -0
- package/dist/http/notification/admin/entities.d.ts +68 -0
- package/dist/http/notification/admin/entities.d.ts.map +1 -0
- package/dist/http/notification/admin/entities.js +3 -0
- package/dist/http/notification/admin/entities.js.map +1 -0
- package/dist/http/notification/admin/index.d.ts +4 -0
- package/dist/http/notification/admin/index.d.ts.map +1 -0
- package/dist/http/notification/admin/index.js +20 -0
- package/dist/http/notification/admin/index.js.map +1 -0
- package/dist/http/notification/admin/queries.d.ts +19 -0
- package/dist/http/notification/admin/queries.d.ts.map +1 -0
- package/dist/http/notification/admin/queries.js +3 -0
- package/dist/http/notification/admin/queries.js.map +1 -0
- package/dist/http/notification/admin/responses.d.ts +16 -0
- package/dist/http/notification/admin/responses.d.ts.map +1 -0
- package/dist/http/notification/admin/responses.js +3 -0
- package/dist/http/notification/admin/responses.js.map +1 -0
- package/dist/http/notification/index.d.ts +2 -0
- package/dist/http/notification/index.d.ts.map +1 -0
- package/dist/http/notification/index.js +18 -0
- package/dist/http/notification/index.js.map +1 -0
- package/dist/http/payment/admin/queries.d.ts +6 -0
- package/dist/http/payment/admin/queries.d.ts.map +1 -1
- package/dist/http/payment/admin/responses.d.ts +3 -0
- package/dist/http/payment/admin/responses.d.ts.map +1 -1
- package/dist/http/payment/common.d.ts +1 -21
- package/dist/http/payment/common.d.ts.map +1 -1
- package/dist/http/payment/store/payloads.d.ts +0 -5
- package/dist/http/payment/store/payloads.d.ts.map +1 -1
- package/dist/http/plugins/admin/responses.d.ts +13 -0
- package/dist/http/plugins/admin/responses.d.ts.map +1 -0
- package/dist/http/plugins/admin/responses.js +3 -0
- package/dist/http/plugins/admin/responses.js.map +1 -0
- package/dist/http/plugins/index.d.ts +2 -0
- package/dist/http/plugins/index.d.ts.map +1 -0
- package/dist/http/plugins/index.js +18 -0
- package/dist/http/plugins/index.js.map +1 -0
- package/dist/http/user/admin/entities.d.ts +27 -0
- package/dist/http/user/admin/entities.d.ts.map +1 -1
- package/dist/http/user/admin/payloads.d.ts +12 -0
- package/dist/http/user/admin/payloads.d.ts.map +1 -1
- package/dist/http/user/admin/queries.d.ts +24 -0
- package/dist/http/user/admin/queries.d.ts.map +1 -1
- package/dist/http/user/admin/responses.d.ts +6 -0
- package/dist/http/user/admin/responses.d.ts.map +1 -1
- package/dist/http/workflow-execution/admin/entities.d.ts +142 -2
- package/dist/http/workflow-execution/admin/entities.d.ts.map +1 -1
- package/dist/http/workflow-execution/admin/queries.d.ts +10 -0
- package/dist/http/workflow-execution/admin/queries.d.ts.map +1 -1
- package/dist/http/workflow-execution/admin/responses.d.ts +6 -0
- package/dist/http/workflow-execution/admin/responses.d.ts.map +1 -1
- package/dist/index-data/common.d.ts +11 -0
- package/dist/index-data/common.d.ts.map +1 -1
- package/dist/index-data/index-operator-map.d.ts +10 -10
- package/dist/index-data/index-operator-map.d.ts.map +1 -1
- package/dist/index-data/index.d.ts +1 -1
- package/dist/index-data/index.js +1 -1
- package/dist/index-data/query-config/query-input-config-fields.d.ts +3 -1
- package/dist/index-data/query-config/query-input-config-fields.d.ts.map +1 -1
- package/dist/index-data/query-config/query-input-config-filters.d.ts +1 -1
- package/dist/index-data/query-config/query-input-config-filters.d.ts.map +1 -1
- package/dist/index-data/query-config/query-input-config.d.ts +50 -6
- package/dist/index-data/query-config/query-input-config.d.ts.map +1 -1
- package/dist/index-data/{sotrage-provider.d.ts → storage-provider.d.ts} +1 -1
- package/dist/index-data/{sotrage-provider.d.ts.map → storage-provider.d.ts.map} +1 -1
- package/dist/index-data/storage-provider.js +3 -0
- package/dist/index-data/storage-provider.js.map +1 -0
- package/dist/index.d.ts +4 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/joiner/index.d.ts +3 -0
- package/dist/joiner/index.d.ts.map +1 -1
- package/dist/link-modules/index.d.ts.map +1 -0
- package/dist/link-modules/index.js.map +1 -0
- package/dist/link-modules/migrations.d.ts.map +1 -0
- package/dist/link-modules/migrations.js.map +1 -0
- package/dist/{link-modules-sdk → link-modules}/service.d.ts +1 -1
- package/dist/link-modules/service.d.ts.map +1 -0
- package/dist/link-modules/service.js +3 -0
- package/dist/link-modules/service.js.map +1 -0
- package/dist/locking/index.d.ts +466 -0
- package/dist/locking/index.d.ts.map +1 -1
- package/dist/modules-sdk/eto-internal-service.d.ts +5 -5
- package/dist/modules-sdk/eto-internal-service.d.ts.map +1 -1
- package/dist/modules-sdk/index.d.ts +25 -5
- package/dist/modules-sdk/index.d.ts.map +1 -1
- package/dist/modules-sdk/remote-query-object-from-string.d.ts +55 -4
- package/dist/modules-sdk/remote-query-object-from-string.d.ts.map +1 -1
- package/dist/modules-sdk/remote-query.d.ts +14 -0
- package/dist/modules-sdk/remote-query.d.ts.map +1 -1
- package/dist/modules-sdk/to-remote-query.d.ts +8 -2
- package/dist/modules-sdk/to-remote-query.d.ts.map +1 -1
- package/dist/notification/common.d.ts +1 -1
- package/dist/notification/common.d.ts.map +1 -1
- package/dist/notification/mutations.d.ts +10 -5
- package/dist/notification/mutations.d.ts.map +1 -1
- package/dist/notification/service.d.ts +23 -5
- package/dist/notification/service.d.ts.map +1 -1
- package/dist/payment/common.d.ts +78 -48
- package/dist/payment/common.d.ts.map +1 -1
- package/dist/payment/mutations.d.ts +73 -47
- package/dist/payment/mutations.d.ts.map +1 -1
- package/dist/payment/provider.d.ts +450 -76
- package/dist/payment/provider.d.ts.map +1 -1
- package/dist/payment/service.d.ts +351 -14
- package/dist/payment/service.d.ts.map +1 -1
- package/dist/shared-context.d.ts +8 -0
- package/dist/shared-context.d.ts.map +1 -1
- package/dist/totals/big-number.d.ts +15 -0
- package/dist/totals/big-number.d.ts.map +1 -0
- package/dist/totals/big-number.js +3 -0
- package/dist/totals/big-number.js.map +1 -0
- package/dist/totals/index.d.ts +26 -0
- package/dist/totals/index.d.ts.map +1 -0
- package/dist/totals/index.js +18 -0
- package/dist/totals/index.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/workflow/index.d.ts +1 -0
- package/dist/workflow/index.d.ts.map +1 -1
- package/dist/workflow/index.js +2 -1
- package/dist/workflow/index.js.map +1 -1
- package/dist/workflow/invite/accept-invite.d.ts +39 -0
- package/dist/workflow/invite/accept-invite.d.ts.map +1 -0
- package/dist/workflow/invite/accept-invite.js +3 -0
- package/dist/workflow/invite/accept-invite.js.map +1 -0
- package/dist/workflow/invite/create-invite.d.ts +11 -0
- package/dist/workflow/invite/create-invite.d.ts.map +1 -0
- package/dist/workflow/invite/create-invite.js +3 -0
- package/dist/workflow/invite/create-invite.js.map +1 -0
- package/dist/workflow/invite/delete-invite.d.ts +10 -0
- package/dist/workflow/invite/delete-invite.d.ts.map +1 -0
- package/dist/workflow/invite/delete-invite.js +3 -0
- package/dist/workflow/invite/delete-invite.js.map +1 -0
- package/dist/workflow/invite/index.d.ts +5 -0
- package/dist/workflow/invite/index.d.ts.map +1 -0
- package/dist/workflow/invite/index.js +21 -0
- package/dist/workflow/invite/index.js.map +1 -0
- package/dist/workflow/invite/resend-invite.d.ts +10 -0
- package/dist/workflow/invite/resend-invite.d.ts.map +1 -0
- package/dist/workflow/invite/resend-invite.js +3 -0
- package/dist/workflow/invite/resend-invite.js.map +1 -0
- package/dist/workflow/user/create-user.d.ts +6 -0
- package/dist/workflow/user/create-user.d.ts.map +1 -1
- package/dist/workflow/user/update-user.d.ts +6 -0
- package/dist/workflow/user/update-user.d.ts.map +1 -1
- package/dist/workflows-sdk/common.d.ts +6 -4
- package/dist/workflows-sdk/common.d.ts.map +1 -1
- package/dist/workflows-sdk/service.d.ts +12 -8
- package/dist/workflows-sdk/service.d.ts.map +1 -1
- package/package.json +25 -22
- package/dist/index-data/sotrage-provider.js.map +0 -1
- package/dist/link-modules-sdk/index.d.ts.map +0 -1
- package/dist/link-modules-sdk/index.js.map +0 -1
- package/dist/link-modules-sdk/migrations.d.ts.map +0 -1
- package/dist/link-modules-sdk/migrations.js.map +0 -1
- package/dist/link-modules-sdk/service.d.ts.map +0 -1
- /package/dist/{link-modules-sdk → analytics}/service.js +0 -0
- /package/dist/{link-modules-sdk → link-modules}/index.d.ts +0 -0
- /package/dist/{link-modules-sdk → link-modules}/index.js +0 -0
- /package/dist/{link-modules-sdk → link-modules}/migrations.d.ts +0 -0
- /package/dist/{link-modules-sdk → link-modules}/migrations.js +0 -0
|
@@ -0,0 +1,1125 @@
|
|
|
1
|
+
import { BaseFilterable } from "../dal";
|
|
2
|
+
import { OperatorMap } from "../dal/utils";
|
|
3
|
+
import { BigNumberRawValue, BigNumberValue } from "../totals";
|
|
4
|
+
/**
|
|
5
|
+
* The adjustment line details.
|
|
6
|
+
*/
|
|
7
|
+
export interface AdjustmentLineDTO {
|
|
8
|
+
/**
|
|
9
|
+
* The ID of the adjustment line
|
|
10
|
+
*/
|
|
11
|
+
id: string;
|
|
12
|
+
/**
|
|
13
|
+
* The code of the promotion that lead to
|
|
14
|
+
* this adjustment.
|
|
15
|
+
*/
|
|
16
|
+
code?: string;
|
|
17
|
+
/**
|
|
18
|
+
* The amount to adjust the original amount with.
|
|
19
|
+
*/
|
|
20
|
+
amount: BigNumberValue;
|
|
21
|
+
/**
|
|
22
|
+
* Whether the adjustment is tax inclusive.
|
|
23
|
+
*/
|
|
24
|
+
is_tax_inclusive?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* The raw amount to adjust the original amount with.
|
|
27
|
+
*/
|
|
28
|
+
raw_amount: BigNumberRawValue;
|
|
29
|
+
/**
|
|
30
|
+
* The ID of the associated cart.
|
|
31
|
+
*/
|
|
32
|
+
cart_id: string;
|
|
33
|
+
/**
|
|
34
|
+
* The description of the adjustment line.
|
|
35
|
+
*/
|
|
36
|
+
description?: string;
|
|
37
|
+
/**
|
|
38
|
+
* The ID of the associated promotion.
|
|
39
|
+
*/
|
|
40
|
+
promotion_id?: string;
|
|
41
|
+
/**
|
|
42
|
+
* The ID of the associated provider.
|
|
43
|
+
*/
|
|
44
|
+
provider_id?: string;
|
|
45
|
+
/**
|
|
46
|
+
* When the adjustment line was created.
|
|
47
|
+
*/
|
|
48
|
+
created_at: Date | string;
|
|
49
|
+
/**
|
|
50
|
+
* When the adjustment line was updated.
|
|
51
|
+
*/
|
|
52
|
+
updated_at: Date | string;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* The shipping method adjustment details.
|
|
56
|
+
*/
|
|
57
|
+
export interface ShippingMethodAdjustmentDTO extends AdjustmentLineDTO {
|
|
58
|
+
/**
|
|
59
|
+
* The associated shipping method.
|
|
60
|
+
*/
|
|
61
|
+
shipping_method: CartShippingMethodDTO;
|
|
62
|
+
/**
|
|
63
|
+
* The ID of the associated shipping method.
|
|
64
|
+
*/
|
|
65
|
+
shipping_method_id: string;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* The line item adjustment details.
|
|
69
|
+
*/
|
|
70
|
+
export interface LineItemAdjustmentDTO extends AdjustmentLineDTO {
|
|
71
|
+
/**
|
|
72
|
+
* The associated line item.
|
|
73
|
+
*
|
|
74
|
+
* @expandable
|
|
75
|
+
*/
|
|
76
|
+
item: CartLineItemDTO;
|
|
77
|
+
/**
|
|
78
|
+
* The ID of the associated line item.
|
|
79
|
+
*/
|
|
80
|
+
item_id: string;
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* The tax line details.
|
|
84
|
+
*/
|
|
85
|
+
export interface TaxLineDTO {
|
|
86
|
+
/**
|
|
87
|
+
* The ID of the tax line
|
|
88
|
+
*/
|
|
89
|
+
id: string;
|
|
90
|
+
/**
|
|
91
|
+
* The description of the tax line
|
|
92
|
+
*/
|
|
93
|
+
description?: string;
|
|
94
|
+
/**
|
|
95
|
+
* The ID of the associated tax rate.
|
|
96
|
+
*/
|
|
97
|
+
tax_rate_id?: string;
|
|
98
|
+
/**
|
|
99
|
+
* The code of the tax line.
|
|
100
|
+
*/
|
|
101
|
+
code: string;
|
|
102
|
+
/**
|
|
103
|
+
* The rate of the tax line.
|
|
104
|
+
*/
|
|
105
|
+
rate: number;
|
|
106
|
+
/**
|
|
107
|
+
* The ID of the associated provider.
|
|
108
|
+
*/
|
|
109
|
+
provider_id?: string;
|
|
110
|
+
/**
|
|
111
|
+
* When the tax line was created.
|
|
112
|
+
*/
|
|
113
|
+
created_at: Date | string;
|
|
114
|
+
/**
|
|
115
|
+
* When the tax line was updated.
|
|
116
|
+
*/
|
|
117
|
+
updated_at: Date | string;
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* The shipping method tax line details.
|
|
121
|
+
*/
|
|
122
|
+
export interface ShippingMethodTaxLineDTO extends TaxLineDTO {
|
|
123
|
+
/**
|
|
124
|
+
* The associated shipping method.
|
|
125
|
+
*/
|
|
126
|
+
shipping_method: CartShippingMethodDTO;
|
|
127
|
+
/**
|
|
128
|
+
* The ID of the associated shipping method.
|
|
129
|
+
*/
|
|
130
|
+
shipping_method_id: string;
|
|
131
|
+
/**
|
|
132
|
+
* The total tax relative to the shipping method.
|
|
133
|
+
*/
|
|
134
|
+
total: BigNumberValue;
|
|
135
|
+
/**
|
|
136
|
+
* The subtotal tax relative to the shipping method.
|
|
137
|
+
*/
|
|
138
|
+
subtotal: BigNumberValue;
|
|
139
|
+
/**
|
|
140
|
+
* The raw total tax relative to the shipping method.
|
|
141
|
+
*/
|
|
142
|
+
raw_total: BigNumberRawValue;
|
|
143
|
+
/**
|
|
144
|
+
* The raw subtotal tax relative to the shipping method.
|
|
145
|
+
*/
|
|
146
|
+
raw_subtotal: BigNumberRawValue;
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* The line item tax line details.
|
|
150
|
+
*/
|
|
151
|
+
export interface LineItemTaxLineDTO extends TaxLineDTO {
|
|
152
|
+
/**
|
|
153
|
+
* The associated line item.
|
|
154
|
+
*/
|
|
155
|
+
item: CartLineItemDTO;
|
|
156
|
+
/**
|
|
157
|
+
* The ID of the associated line item.
|
|
158
|
+
*/
|
|
159
|
+
item_id: string;
|
|
160
|
+
/**
|
|
161
|
+
* The total tax relative to the item.
|
|
162
|
+
*/
|
|
163
|
+
total: BigNumberValue;
|
|
164
|
+
/**
|
|
165
|
+
* The subtotal tax relative to the item.
|
|
166
|
+
*/
|
|
167
|
+
subtotal: BigNumberValue;
|
|
168
|
+
/**
|
|
169
|
+
* The raw total tax relative to the item.
|
|
170
|
+
*/
|
|
171
|
+
raw_total: BigNumberRawValue;
|
|
172
|
+
/**
|
|
173
|
+
* The raw subtotal tax relative to the item.
|
|
174
|
+
*/
|
|
175
|
+
raw_subtotal: BigNumberRawValue;
|
|
176
|
+
}
|
|
177
|
+
/**
|
|
178
|
+
* The cart address details.
|
|
179
|
+
*/
|
|
180
|
+
export interface CartAddressDTO {
|
|
181
|
+
/**
|
|
182
|
+
* The ID of the address.
|
|
183
|
+
*/
|
|
184
|
+
id: string;
|
|
185
|
+
/**
|
|
186
|
+
* The customer ID of the address.
|
|
187
|
+
*/
|
|
188
|
+
customer_id?: string;
|
|
189
|
+
/**
|
|
190
|
+
* The first name of the address.
|
|
191
|
+
*/
|
|
192
|
+
first_name?: string;
|
|
193
|
+
/**
|
|
194
|
+
* The last name of the address.
|
|
195
|
+
*/
|
|
196
|
+
last_name?: string;
|
|
197
|
+
/**
|
|
198
|
+
* The phone number of the address.
|
|
199
|
+
*/
|
|
200
|
+
phone?: string;
|
|
201
|
+
/**
|
|
202
|
+
* The company of the address.
|
|
203
|
+
*/
|
|
204
|
+
company?: string;
|
|
205
|
+
/**
|
|
206
|
+
* The first address line of the address.
|
|
207
|
+
*/
|
|
208
|
+
address_1?: string;
|
|
209
|
+
/**
|
|
210
|
+
* The second address line of the address.
|
|
211
|
+
*/
|
|
212
|
+
address_2?: string;
|
|
213
|
+
/**
|
|
214
|
+
* The city of the address.
|
|
215
|
+
*/
|
|
216
|
+
city?: string;
|
|
217
|
+
/**
|
|
218
|
+
* The country code of the address.
|
|
219
|
+
*/
|
|
220
|
+
country_code?: string;
|
|
221
|
+
/**
|
|
222
|
+
* The lower-case [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2) province/state of the address.
|
|
223
|
+
*/
|
|
224
|
+
province?: string;
|
|
225
|
+
/**
|
|
226
|
+
* The postal code of the address.
|
|
227
|
+
*/
|
|
228
|
+
postal_code?: string;
|
|
229
|
+
/**
|
|
230
|
+
* Holds custom data in key-value pairs.
|
|
231
|
+
*/
|
|
232
|
+
metadata?: Record<string, unknown> | null;
|
|
233
|
+
/**
|
|
234
|
+
* When the address was created.
|
|
235
|
+
*/
|
|
236
|
+
created_at: Date | string;
|
|
237
|
+
/**
|
|
238
|
+
* When the address was updated.
|
|
239
|
+
*/
|
|
240
|
+
updated_at: Date | string;
|
|
241
|
+
}
|
|
242
|
+
/**
|
|
243
|
+
* The cart shipping method details.
|
|
244
|
+
*/
|
|
245
|
+
export interface CartShippingMethodDTO {
|
|
246
|
+
/**
|
|
247
|
+
* The ID of the shipping method.
|
|
248
|
+
*/
|
|
249
|
+
id: string;
|
|
250
|
+
/**
|
|
251
|
+
* The ID of the associated cart.
|
|
252
|
+
*/
|
|
253
|
+
cart_id: string;
|
|
254
|
+
/**
|
|
255
|
+
* The name of the shipping method.
|
|
256
|
+
*/
|
|
257
|
+
name: string;
|
|
258
|
+
/**
|
|
259
|
+
* The description of the shipping method.
|
|
260
|
+
*/
|
|
261
|
+
description?: string;
|
|
262
|
+
/**
|
|
263
|
+
* The price of the shipping method.
|
|
264
|
+
*/
|
|
265
|
+
amount: BigNumberValue;
|
|
266
|
+
/**
|
|
267
|
+
* Whether the shipping method price is tax inclusive.
|
|
268
|
+
*/
|
|
269
|
+
is_tax_inclusive: boolean;
|
|
270
|
+
/**
|
|
271
|
+
* The ID of the shipping option the method was created from.
|
|
272
|
+
*/
|
|
273
|
+
shipping_option_id?: string;
|
|
274
|
+
/**
|
|
275
|
+
* Additional data needed for fulfillment.
|
|
276
|
+
*/
|
|
277
|
+
data?: Record<string, unknown>;
|
|
278
|
+
/**
|
|
279
|
+
* Holds custom data in key-value pairs.
|
|
280
|
+
*/
|
|
281
|
+
metadata?: Record<string, unknown> | null;
|
|
282
|
+
/**
|
|
283
|
+
* The associated tax lines.
|
|
284
|
+
*
|
|
285
|
+
* @expandable
|
|
286
|
+
*/
|
|
287
|
+
tax_lines?: ShippingMethodTaxLineDTO[];
|
|
288
|
+
/**
|
|
289
|
+
* The associated adjustments.
|
|
290
|
+
*
|
|
291
|
+
* @expandable
|
|
292
|
+
*/
|
|
293
|
+
adjustments?: ShippingMethodAdjustmentDTO[];
|
|
294
|
+
/**
|
|
295
|
+
* When the shipping method was created.
|
|
296
|
+
*/
|
|
297
|
+
created_at: Date | string;
|
|
298
|
+
/**
|
|
299
|
+
* When the shipping method was updated.
|
|
300
|
+
*/
|
|
301
|
+
updated_at: Date | string;
|
|
302
|
+
/**
|
|
303
|
+
* The original total of the cart shipping method.
|
|
304
|
+
*/
|
|
305
|
+
original_total: BigNumberValue;
|
|
306
|
+
/**
|
|
307
|
+
* The original subtotal of the cart shipping method.
|
|
308
|
+
*/
|
|
309
|
+
original_subtotal: BigNumberValue;
|
|
310
|
+
/**
|
|
311
|
+
* The original tax total of the cart shipping method.
|
|
312
|
+
*/
|
|
313
|
+
original_tax_total: BigNumberValue;
|
|
314
|
+
/**
|
|
315
|
+
* The total of the cart shipping method.
|
|
316
|
+
*/
|
|
317
|
+
total: BigNumberValue;
|
|
318
|
+
/**
|
|
319
|
+
* The subtotal of the cart shipping method.
|
|
320
|
+
*/
|
|
321
|
+
subtotal: BigNumberValue;
|
|
322
|
+
/**
|
|
323
|
+
* The tax total of the cart shipping method.
|
|
324
|
+
*/
|
|
325
|
+
tax_total: BigNumberValue;
|
|
326
|
+
/**
|
|
327
|
+
* The discount total of the cart shipping method.
|
|
328
|
+
*/
|
|
329
|
+
discount_total: BigNumberValue;
|
|
330
|
+
/**
|
|
331
|
+
* The discount tax total of the cart shipping method.
|
|
332
|
+
*/
|
|
333
|
+
discount_tax_total: BigNumberValue;
|
|
334
|
+
/**
|
|
335
|
+
* The raw original total of the cart shipping method.
|
|
336
|
+
*/
|
|
337
|
+
raw_original_total: BigNumberRawValue;
|
|
338
|
+
/**
|
|
339
|
+
* The raw original subtotal of the cart shipping method.
|
|
340
|
+
*/
|
|
341
|
+
raw_original_subtotal: BigNumberRawValue;
|
|
342
|
+
/**
|
|
343
|
+
* The raw original tax total of the cart shipping method.
|
|
344
|
+
*/
|
|
345
|
+
raw_original_tax_total: BigNumberRawValue;
|
|
346
|
+
/**
|
|
347
|
+
* The raw total of the cart shipping method.
|
|
348
|
+
*/
|
|
349
|
+
raw_total: BigNumberRawValue;
|
|
350
|
+
/**
|
|
351
|
+
* The raw subtotal of the cart shipping method.
|
|
352
|
+
*/
|
|
353
|
+
raw_subtotal: BigNumberRawValue;
|
|
354
|
+
/**
|
|
355
|
+
* The raw tax total of the cart shipping method.
|
|
356
|
+
*/
|
|
357
|
+
raw_tax_total: BigNumberRawValue;
|
|
358
|
+
/**
|
|
359
|
+
* The raw discount total of the cart shipping method.
|
|
360
|
+
*/
|
|
361
|
+
raw_discount_total: BigNumberRawValue;
|
|
362
|
+
/**
|
|
363
|
+
* The raw discount tax total of the cart shipping method.
|
|
364
|
+
*/
|
|
365
|
+
raw_discount_tax_total: BigNumberRawValue;
|
|
366
|
+
}
|
|
367
|
+
/**
|
|
368
|
+
* The cart line item totals details.
|
|
369
|
+
*/
|
|
370
|
+
export interface CartLineItemTotalsDTO {
|
|
371
|
+
/**
|
|
372
|
+
* The original total of the cart line item.
|
|
373
|
+
*/
|
|
374
|
+
original_total: BigNumberValue;
|
|
375
|
+
/**
|
|
376
|
+
* The original subtotal of the cart line item.
|
|
377
|
+
*/
|
|
378
|
+
original_subtotal: BigNumberValue;
|
|
379
|
+
/**
|
|
380
|
+
* The original tax total of the cart line item.
|
|
381
|
+
*/
|
|
382
|
+
original_tax_total: BigNumberValue;
|
|
383
|
+
/**
|
|
384
|
+
* The item total of the cart line item.
|
|
385
|
+
*/
|
|
386
|
+
item_total: BigNumberValue;
|
|
387
|
+
/**
|
|
388
|
+
* The item subtotal of the cart line item.
|
|
389
|
+
*/
|
|
390
|
+
item_subtotal: BigNumberValue;
|
|
391
|
+
/**
|
|
392
|
+
* The item tax total of the cart line item.
|
|
393
|
+
*/
|
|
394
|
+
item_tax_total: BigNumberValue;
|
|
395
|
+
/**
|
|
396
|
+
* The total of the cart line item.
|
|
397
|
+
*/
|
|
398
|
+
total: BigNumberValue;
|
|
399
|
+
/**
|
|
400
|
+
* The subtotal of the cart line item.
|
|
401
|
+
*/
|
|
402
|
+
subtotal: BigNumberValue;
|
|
403
|
+
/**
|
|
404
|
+
* The tax total of the cart line item.
|
|
405
|
+
*/
|
|
406
|
+
tax_total: BigNumberValue;
|
|
407
|
+
/**
|
|
408
|
+
* The discount total of the cart line item.
|
|
409
|
+
*/
|
|
410
|
+
discount_total: BigNumberValue;
|
|
411
|
+
/**
|
|
412
|
+
* The discount tax total of the cart line item.
|
|
413
|
+
*/
|
|
414
|
+
discount_tax_total: BigNumberValue;
|
|
415
|
+
/**
|
|
416
|
+
* The raw original total of the cart line item.
|
|
417
|
+
*/
|
|
418
|
+
raw_original_total: BigNumberRawValue;
|
|
419
|
+
/**
|
|
420
|
+
* The raw original subtotal of the cart line item.
|
|
421
|
+
*/
|
|
422
|
+
raw_original_subtotal: BigNumberRawValue;
|
|
423
|
+
/**
|
|
424
|
+
* The raw original tax total of the cart line item.
|
|
425
|
+
*/
|
|
426
|
+
raw_original_tax_total: BigNumberRawValue;
|
|
427
|
+
/**
|
|
428
|
+
* The raw item total of the cart line item.
|
|
429
|
+
*/
|
|
430
|
+
raw_item_total: BigNumberRawValue;
|
|
431
|
+
/**
|
|
432
|
+
* The raw item subtotal of the cart line item.
|
|
433
|
+
*/
|
|
434
|
+
raw_item_subtotal: BigNumberRawValue;
|
|
435
|
+
/**
|
|
436
|
+
* The raw item tax total of the cart line item.
|
|
437
|
+
*/
|
|
438
|
+
raw_item_tax_total: BigNumberRawValue;
|
|
439
|
+
/**
|
|
440
|
+
* The raw total of the cart line item.
|
|
441
|
+
*/
|
|
442
|
+
raw_total: BigNumberRawValue;
|
|
443
|
+
/**
|
|
444
|
+
* The raw subtotal of the cart line item.
|
|
445
|
+
*/
|
|
446
|
+
raw_subtotal: BigNumberRawValue;
|
|
447
|
+
/**
|
|
448
|
+
* The raw tax total of the cart line item.
|
|
449
|
+
*/
|
|
450
|
+
raw_tax_total: BigNumberRawValue;
|
|
451
|
+
/**
|
|
452
|
+
* The raw discount total of the cart line item.
|
|
453
|
+
*/
|
|
454
|
+
raw_discount_total: BigNumberRawValue;
|
|
455
|
+
/**
|
|
456
|
+
* The raw discount tax total of the cart line item.
|
|
457
|
+
*/
|
|
458
|
+
raw_discount_tax_total: BigNumberRawValue;
|
|
459
|
+
}
|
|
460
|
+
/**
|
|
461
|
+
* The cart line item details.
|
|
462
|
+
*/
|
|
463
|
+
export interface CartLineItemDTO extends CartLineItemTotalsDTO {
|
|
464
|
+
/**
|
|
465
|
+
* The ID of the line item.
|
|
466
|
+
*/
|
|
467
|
+
id: string;
|
|
468
|
+
/**
|
|
469
|
+
* The title of the line item.
|
|
470
|
+
*/
|
|
471
|
+
title: string;
|
|
472
|
+
/**
|
|
473
|
+
* The subtitle of the line item.
|
|
474
|
+
*/
|
|
475
|
+
subtitle?: string;
|
|
476
|
+
/**
|
|
477
|
+
* The line item's thumbnail.
|
|
478
|
+
*/
|
|
479
|
+
thumbnail?: string;
|
|
480
|
+
/**
|
|
481
|
+
* The line item's quantity in the cart.
|
|
482
|
+
*/
|
|
483
|
+
quantity: BigNumberValue;
|
|
484
|
+
/**
|
|
485
|
+
* The ID of the associated product.
|
|
486
|
+
*/
|
|
487
|
+
product_id?: string;
|
|
488
|
+
/**
|
|
489
|
+
* The title of the associated product.
|
|
490
|
+
*/
|
|
491
|
+
product_title?: string;
|
|
492
|
+
/**
|
|
493
|
+
* The description of the associated product.
|
|
494
|
+
*/
|
|
495
|
+
product_description?: string;
|
|
496
|
+
/**
|
|
497
|
+
* The subtitle of the associated product.
|
|
498
|
+
*/
|
|
499
|
+
product_subtitle?: string;
|
|
500
|
+
/**
|
|
501
|
+
* The type of the associated product.
|
|
502
|
+
*/
|
|
503
|
+
product_type?: string;
|
|
504
|
+
/**
|
|
505
|
+
* The type of the associated product.
|
|
506
|
+
*/
|
|
507
|
+
product_type_id?: string;
|
|
508
|
+
/**
|
|
509
|
+
* The collection of the associated product.
|
|
510
|
+
*/
|
|
511
|
+
product_collection?: string;
|
|
512
|
+
/**
|
|
513
|
+
* The handle of the associated product.
|
|
514
|
+
*/
|
|
515
|
+
product_handle?: string;
|
|
516
|
+
/**
|
|
517
|
+
* The associated variant's ID of the line item.
|
|
518
|
+
*/
|
|
519
|
+
variant_id?: string;
|
|
520
|
+
/**
|
|
521
|
+
* The sku of the associated variant.
|
|
522
|
+
*/
|
|
523
|
+
variant_sku?: string;
|
|
524
|
+
/**
|
|
525
|
+
* The barcode of the associated variant.
|
|
526
|
+
*/
|
|
527
|
+
variant_barcode?: string;
|
|
528
|
+
/**
|
|
529
|
+
* The title of the associated variant.
|
|
530
|
+
*/
|
|
531
|
+
variant_title?: string;
|
|
532
|
+
/**
|
|
533
|
+
* The option values of the associated variant.
|
|
534
|
+
*/
|
|
535
|
+
variant_option_values?: Record<string, unknown>;
|
|
536
|
+
/**
|
|
537
|
+
* Whether the line item requires shipping.
|
|
538
|
+
*/
|
|
539
|
+
requires_shipping: boolean;
|
|
540
|
+
/**
|
|
541
|
+
* Whether the line item is discountable.
|
|
542
|
+
*/
|
|
543
|
+
is_discountable: boolean;
|
|
544
|
+
/**
|
|
545
|
+
* Whether the line item is a gift card.
|
|
546
|
+
*/
|
|
547
|
+
is_giftcard: boolean;
|
|
548
|
+
/**
|
|
549
|
+
* Whether the line item price is tax inclusive.
|
|
550
|
+
*/
|
|
551
|
+
is_tax_inclusive: boolean;
|
|
552
|
+
/**
|
|
553
|
+
* Whether the line item price is a custom price.
|
|
554
|
+
*/
|
|
555
|
+
is_custom_price: boolean;
|
|
556
|
+
/**
|
|
557
|
+
* The calculated price of the line item.
|
|
558
|
+
*/
|
|
559
|
+
compare_at_unit_price?: BigNumberValue;
|
|
560
|
+
/**
|
|
561
|
+
* The unit price of the item.
|
|
562
|
+
*/
|
|
563
|
+
unit_price: BigNumberValue;
|
|
564
|
+
/**
|
|
565
|
+
* The associated tax lines.
|
|
566
|
+
*
|
|
567
|
+
* @expandable
|
|
568
|
+
*/
|
|
569
|
+
tax_lines?: LineItemTaxLineDTO[];
|
|
570
|
+
/**
|
|
571
|
+
* The associated adjustments.
|
|
572
|
+
*
|
|
573
|
+
* @expandable
|
|
574
|
+
*/
|
|
575
|
+
adjustments?: LineItemAdjustmentDTO[];
|
|
576
|
+
/**
|
|
577
|
+
* The associated cart.
|
|
578
|
+
*
|
|
579
|
+
* @expandable
|
|
580
|
+
*/
|
|
581
|
+
cart: CartDTO;
|
|
582
|
+
/**
|
|
583
|
+
* The ID of the associated cart.
|
|
584
|
+
*/
|
|
585
|
+
cart_id: string;
|
|
586
|
+
/**
|
|
587
|
+
* Holds custom data in key-value pairs.
|
|
588
|
+
*/
|
|
589
|
+
metadata?: Record<string, unknown> | null;
|
|
590
|
+
/**
|
|
591
|
+
* When the line item was created.
|
|
592
|
+
*/
|
|
593
|
+
created_at?: Date;
|
|
594
|
+
/**
|
|
595
|
+
* When the line item was updated.
|
|
596
|
+
*/
|
|
597
|
+
updated_at?: Date;
|
|
598
|
+
/**
|
|
599
|
+
* When the line item was deleted.
|
|
600
|
+
*/
|
|
601
|
+
deleted_at?: Date;
|
|
602
|
+
}
|
|
603
|
+
/**
|
|
604
|
+
* The cart details.
|
|
605
|
+
*/
|
|
606
|
+
export interface CartDTO {
|
|
607
|
+
/**
|
|
608
|
+
* The ID of the cart.
|
|
609
|
+
*/
|
|
610
|
+
id: string;
|
|
611
|
+
/**
|
|
612
|
+
* The ID of the region the cart belongs to.
|
|
613
|
+
*/
|
|
614
|
+
region_id?: string;
|
|
615
|
+
/**
|
|
616
|
+
* The ID of the associated customer
|
|
617
|
+
*/
|
|
618
|
+
customer_id?: string;
|
|
619
|
+
/**
|
|
620
|
+
* The ID of the sales channel the cart belongs to.
|
|
621
|
+
*/
|
|
622
|
+
sales_channel_id?: string;
|
|
623
|
+
/**
|
|
624
|
+
* The email of the customer that owns the cart.
|
|
625
|
+
*/
|
|
626
|
+
email?: string;
|
|
627
|
+
/**
|
|
628
|
+
* The currency of the cart
|
|
629
|
+
*/
|
|
630
|
+
currency_code: string;
|
|
631
|
+
/**
|
|
632
|
+
* The associated shipping address.
|
|
633
|
+
*
|
|
634
|
+
* @expandable
|
|
635
|
+
*/
|
|
636
|
+
shipping_address?: CartAddressDTO;
|
|
637
|
+
/**
|
|
638
|
+
* The associated billing address.
|
|
639
|
+
*
|
|
640
|
+
* @expandable
|
|
641
|
+
*/
|
|
642
|
+
billing_address?: CartAddressDTO;
|
|
643
|
+
/**
|
|
644
|
+
* The associated line items.
|
|
645
|
+
*
|
|
646
|
+
* @expandable
|
|
647
|
+
*/
|
|
648
|
+
items?: CartLineItemDTO[];
|
|
649
|
+
/**
|
|
650
|
+
* The credit lines for a cart
|
|
651
|
+
*
|
|
652
|
+
* @expandable
|
|
653
|
+
*/
|
|
654
|
+
credit_lines?: CartCreditLineDTO[];
|
|
655
|
+
/**
|
|
656
|
+
* The associated shipping methods
|
|
657
|
+
*
|
|
658
|
+
* @expandable
|
|
659
|
+
*/
|
|
660
|
+
shipping_methods?: CartShippingMethodDTO[];
|
|
661
|
+
/**
|
|
662
|
+
* Holds custom data in key-value pairs.
|
|
663
|
+
*/
|
|
664
|
+
metadata?: Record<string, unknown> | null;
|
|
665
|
+
/**
|
|
666
|
+
* When the cart was completed.
|
|
667
|
+
*/
|
|
668
|
+
completed_at?: string | Date;
|
|
669
|
+
/**
|
|
670
|
+
* When the cart was created.
|
|
671
|
+
*/
|
|
672
|
+
created_at?: string | Date;
|
|
673
|
+
/**
|
|
674
|
+
* When the cart was updated.
|
|
675
|
+
*/
|
|
676
|
+
updated_at?: string | Date;
|
|
677
|
+
/**
|
|
678
|
+
* The original item total of the cart.
|
|
679
|
+
*/
|
|
680
|
+
original_item_total: BigNumberValue;
|
|
681
|
+
/**
|
|
682
|
+
* The original item subtotal of the cart.
|
|
683
|
+
*/
|
|
684
|
+
original_item_subtotal: BigNumberValue;
|
|
685
|
+
/**
|
|
686
|
+
* The original item tax total of the cart.
|
|
687
|
+
*/
|
|
688
|
+
original_item_tax_total: BigNumberValue;
|
|
689
|
+
/**
|
|
690
|
+
* The item total of the cart.
|
|
691
|
+
*/
|
|
692
|
+
item_total: BigNumberValue;
|
|
693
|
+
/**
|
|
694
|
+
* The item subtotal of the cart.
|
|
695
|
+
*/
|
|
696
|
+
item_subtotal: BigNumberValue;
|
|
697
|
+
/**
|
|
698
|
+
* The item tax total of the cart.
|
|
699
|
+
*/
|
|
700
|
+
item_tax_total: BigNumberValue;
|
|
701
|
+
/**
|
|
702
|
+
* The original total of the cart.
|
|
703
|
+
*/
|
|
704
|
+
original_total: BigNumberValue;
|
|
705
|
+
/**
|
|
706
|
+
* The original subtotal of the cart.
|
|
707
|
+
*/
|
|
708
|
+
original_subtotal: BigNumberValue;
|
|
709
|
+
/**
|
|
710
|
+
* The original tax total of the cart.
|
|
711
|
+
*/
|
|
712
|
+
original_tax_total: BigNumberValue;
|
|
713
|
+
/**
|
|
714
|
+
* The total of the cart.
|
|
715
|
+
*/
|
|
716
|
+
total: BigNumberValue;
|
|
717
|
+
/**
|
|
718
|
+
* The subtotal of the cart. (Excluding taxes)
|
|
719
|
+
*/
|
|
720
|
+
subtotal: BigNumberValue;
|
|
721
|
+
/**
|
|
722
|
+
* The tax total of the cart.
|
|
723
|
+
*/
|
|
724
|
+
tax_total: BigNumberValue;
|
|
725
|
+
/**
|
|
726
|
+
* The discount total of the cart.
|
|
727
|
+
*/
|
|
728
|
+
discount_total: BigNumberValue;
|
|
729
|
+
/**
|
|
730
|
+
* The discount tax total of the cart.
|
|
731
|
+
*/
|
|
732
|
+
discount_tax_total: BigNumberValue;
|
|
733
|
+
/**
|
|
734
|
+
* The gift card total of the cart.
|
|
735
|
+
*/
|
|
736
|
+
gift_card_total: BigNumberValue;
|
|
737
|
+
/**
|
|
738
|
+
* The gift card tax total of the cart.
|
|
739
|
+
*/
|
|
740
|
+
gift_card_tax_total: BigNumberValue;
|
|
741
|
+
/**
|
|
742
|
+
* The shipping total of the cart.
|
|
743
|
+
*/
|
|
744
|
+
shipping_total: BigNumberValue;
|
|
745
|
+
/**
|
|
746
|
+
* The shipping subtotal of the cart.
|
|
747
|
+
*/
|
|
748
|
+
shipping_subtotal: BigNumberValue;
|
|
749
|
+
/**
|
|
750
|
+
* The shipping tax total of the cart.
|
|
751
|
+
*/
|
|
752
|
+
shipping_tax_total: BigNumberValue;
|
|
753
|
+
/**
|
|
754
|
+
* The original shipping total of the cart.
|
|
755
|
+
*/
|
|
756
|
+
original_shipping_total: BigNumberValue;
|
|
757
|
+
/**
|
|
758
|
+
* The original shipping subtotal of the cart.
|
|
759
|
+
*/
|
|
760
|
+
original_shipping_subtotal: BigNumberValue;
|
|
761
|
+
/**
|
|
762
|
+
* The original shipping tax total of the cart.
|
|
763
|
+
*/
|
|
764
|
+
original_shipping_tax_total: BigNumberValue;
|
|
765
|
+
/**
|
|
766
|
+
* The raw original item total of the cart.
|
|
767
|
+
*/
|
|
768
|
+
raw_original_item_total: BigNumberRawValue;
|
|
769
|
+
/**
|
|
770
|
+
* The raw original item subtotal of the cart.
|
|
771
|
+
*/
|
|
772
|
+
raw_original_item_subtotal: BigNumberRawValue;
|
|
773
|
+
/**
|
|
774
|
+
* The raw original item tax total of the cart.
|
|
775
|
+
*/
|
|
776
|
+
raw_original_item_tax_total: BigNumberRawValue;
|
|
777
|
+
/**
|
|
778
|
+
* The raw item total of the cart.
|
|
779
|
+
*/
|
|
780
|
+
raw_item_total: BigNumberRawValue;
|
|
781
|
+
/**
|
|
782
|
+
* The raw item subtotal of the cart.
|
|
783
|
+
*/
|
|
784
|
+
raw_item_subtotal: BigNumberRawValue;
|
|
785
|
+
/**
|
|
786
|
+
* The raw item tax total of the cart.
|
|
787
|
+
*/
|
|
788
|
+
raw_item_tax_total: BigNumberRawValue;
|
|
789
|
+
/**
|
|
790
|
+
* The raw original total of the cart.
|
|
791
|
+
*/
|
|
792
|
+
raw_original_total: BigNumberRawValue;
|
|
793
|
+
/**
|
|
794
|
+
* The raw original subtotal of the cart.
|
|
795
|
+
*/
|
|
796
|
+
raw_original_subtotal: BigNumberRawValue;
|
|
797
|
+
/**
|
|
798
|
+
* The raw original tax total of the cart.
|
|
799
|
+
*/
|
|
800
|
+
raw_original_tax_total: BigNumberRawValue;
|
|
801
|
+
/**
|
|
802
|
+
* The raw total of the cart.
|
|
803
|
+
*/
|
|
804
|
+
raw_total: BigNumberRawValue;
|
|
805
|
+
/**
|
|
806
|
+
* The raw subtotal of the cart. (Excluding taxes)
|
|
807
|
+
*/
|
|
808
|
+
raw_subtotal: BigNumberRawValue;
|
|
809
|
+
/**
|
|
810
|
+
* The raw tax total of the cart.
|
|
811
|
+
*/
|
|
812
|
+
raw_tax_total: BigNumberRawValue;
|
|
813
|
+
/**
|
|
814
|
+
* The raw discount total of the cart.
|
|
815
|
+
*/
|
|
816
|
+
raw_discount_total: BigNumberRawValue;
|
|
817
|
+
/**
|
|
818
|
+
* The raw discount tax total of the cart.
|
|
819
|
+
*/
|
|
820
|
+
raw_discount_tax_total: BigNumberRawValue;
|
|
821
|
+
/**
|
|
822
|
+
* The raw gift card total of the cart.
|
|
823
|
+
*/
|
|
824
|
+
raw_gift_card_total: BigNumberRawValue;
|
|
825
|
+
/**
|
|
826
|
+
* The raw gift card tax total of the cart.
|
|
827
|
+
*/
|
|
828
|
+
raw_gift_card_tax_total: BigNumberRawValue;
|
|
829
|
+
/**
|
|
830
|
+
* The raw shipping total of the cart.
|
|
831
|
+
*/
|
|
832
|
+
raw_shipping_total: BigNumberRawValue;
|
|
833
|
+
/**
|
|
834
|
+
* The raw shipping subtotal of the cart.
|
|
835
|
+
*/
|
|
836
|
+
raw_shipping_subtotal: BigNumberRawValue;
|
|
837
|
+
/**
|
|
838
|
+
* The raw shipping tax total of the cart.
|
|
839
|
+
*/
|
|
840
|
+
raw_shipping_tax_total: BigNumberRawValue;
|
|
841
|
+
/**
|
|
842
|
+
* The raw original shipping total of the cart.
|
|
843
|
+
*/
|
|
844
|
+
raw_original_shipping_total: BigNumberRawValue;
|
|
845
|
+
/**
|
|
846
|
+
* The raw original shipping subtotal of the cart.
|
|
847
|
+
*/
|
|
848
|
+
raw_original_shipping_subtotal: BigNumberRawValue;
|
|
849
|
+
/**
|
|
850
|
+
* The raw original shipping tax total of the cart.
|
|
851
|
+
*/
|
|
852
|
+
raw_original_shipping_tax_total: BigNumberRawValue;
|
|
853
|
+
/**
|
|
854
|
+
* The raw credit lines total of the cart.
|
|
855
|
+
*/
|
|
856
|
+
raw_credit_line_total: BigNumberRawValue;
|
|
857
|
+
/**
|
|
858
|
+
* The credit lines total of the cart.
|
|
859
|
+
*/
|
|
860
|
+
credit_line_total: BigNumberValue;
|
|
861
|
+
}
|
|
862
|
+
/**
|
|
863
|
+
* The filters to apply on the retrieved carts.
|
|
864
|
+
*/
|
|
865
|
+
export interface FilterableCartProps extends BaseFilterable<FilterableCartProps> {
|
|
866
|
+
/**
|
|
867
|
+
* The IDs to filter the carts by.
|
|
868
|
+
*/
|
|
869
|
+
id?: string | string[];
|
|
870
|
+
/**
|
|
871
|
+
* Filter the carts by the ID of their associated sales channel.
|
|
872
|
+
*/
|
|
873
|
+
sales_channel_id?: string | string[] | OperatorMap<string>;
|
|
874
|
+
/**
|
|
875
|
+
* Filter the carts by the ID of their associated customer.
|
|
876
|
+
*/
|
|
877
|
+
customer_id?: string | string[] | OperatorMap<string>;
|
|
878
|
+
/**
|
|
879
|
+
* Filter the carts by the ID of their associated region.
|
|
880
|
+
*/
|
|
881
|
+
region_id?: string | string[] | OperatorMap<string>;
|
|
882
|
+
/**
|
|
883
|
+
* Filter the carts by their creation date.
|
|
884
|
+
*/
|
|
885
|
+
created_at?: OperatorMap<string>;
|
|
886
|
+
/**
|
|
887
|
+
* Filter the carts by their update date.
|
|
888
|
+
*/
|
|
889
|
+
updated_at?: OperatorMap<string>;
|
|
890
|
+
}
|
|
891
|
+
/**
|
|
892
|
+
* The filters to apply on the retrieved addresss.
|
|
893
|
+
*/
|
|
894
|
+
export interface FilterableAddressProps extends BaseFilterable<FilterableAddressProps> {
|
|
895
|
+
/**
|
|
896
|
+
* The IDs to filter the addresss by.
|
|
897
|
+
*/
|
|
898
|
+
id?: string | string[];
|
|
899
|
+
}
|
|
900
|
+
/**
|
|
901
|
+
* The filters to apply on the retrieved line items.
|
|
902
|
+
*/
|
|
903
|
+
export interface FilterableLineItemProps extends BaseFilterable<FilterableLineItemProps> {
|
|
904
|
+
/**
|
|
905
|
+
* The IDs to filter the line items by.
|
|
906
|
+
*/
|
|
907
|
+
id?: string | string[];
|
|
908
|
+
/**
|
|
909
|
+
* Filter the line items by the ID of their associated cart.
|
|
910
|
+
*/
|
|
911
|
+
cart_id?: string | string[];
|
|
912
|
+
/**
|
|
913
|
+
* Filter the line items by their title.
|
|
914
|
+
*/
|
|
915
|
+
title?: string;
|
|
916
|
+
/**
|
|
917
|
+
* Filter the line items by the ID of their associated variant.
|
|
918
|
+
*/
|
|
919
|
+
variant_id?: string | string[];
|
|
920
|
+
/**
|
|
921
|
+
* Filter the line items by the ID of their associated product.
|
|
922
|
+
*/
|
|
923
|
+
product_id?: string | string[];
|
|
924
|
+
}
|
|
925
|
+
/**
|
|
926
|
+
* The filters to apply on the retrieved line item adjustments.
|
|
927
|
+
*/
|
|
928
|
+
export interface FilterableLineItemAdjustmentProps extends BaseFilterable<FilterableLineItemAdjustmentProps> {
|
|
929
|
+
/**
|
|
930
|
+
* The IDs to filter the line item adjustments by.
|
|
931
|
+
*/
|
|
932
|
+
id?: string | string[];
|
|
933
|
+
/**
|
|
934
|
+
* Filter the adjustments by the ID of their associated line item.
|
|
935
|
+
*/
|
|
936
|
+
item_id?: string | string[];
|
|
937
|
+
/**
|
|
938
|
+
* Filter the line item adjustments by the ID of their associated promotion.
|
|
939
|
+
*/
|
|
940
|
+
promotion_id?: string | string[];
|
|
941
|
+
/**
|
|
942
|
+
* Filter the line item adjustments by the ID of their associated provider.
|
|
943
|
+
*/
|
|
944
|
+
provider_id?: string | string[];
|
|
945
|
+
/**
|
|
946
|
+
* Filter the adjustments by their associated line item.
|
|
947
|
+
*/
|
|
948
|
+
item?: FilterableLineItemProps;
|
|
949
|
+
}
|
|
950
|
+
/**
|
|
951
|
+
* The filters to apply on the retrieved shipping methods.
|
|
952
|
+
*/
|
|
953
|
+
export interface FilterableShippingMethodProps extends BaseFilterable<FilterableShippingMethodProps> {
|
|
954
|
+
/**
|
|
955
|
+
* The IDs to filter the shipping methods by.
|
|
956
|
+
*/
|
|
957
|
+
id?: string | string[];
|
|
958
|
+
/**
|
|
959
|
+
* Filter the shipping methods by the ID of their associated cart.
|
|
960
|
+
*/
|
|
961
|
+
cart_id?: string | string[];
|
|
962
|
+
/**
|
|
963
|
+
* Filter the shipping methods by their name.
|
|
964
|
+
*/
|
|
965
|
+
name?: string;
|
|
966
|
+
/**
|
|
967
|
+
* Filter the shipping methods by the ID of their associated shipping option.
|
|
968
|
+
*/
|
|
969
|
+
shipping_option_id?: string | string[] | OperatorMap<string>;
|
|
970
|
+
}
|
|
971
|
+
/**
|
|
972
|
+
* The filters to apply on the retrieved shipping method adjustments.
|
|
973
|
+
*/
|
|
974
|
+
export interface FilterableShippingMethodAdjustmentProps extends BaseFilterable<FilterableShippingMethodAdjustmentProps> {
|
|
975
|
+
/**
|
|
976
|
+
* The IDs to filter the shipping method adjustments by.
|
|
977
|
+
*/
|
|
978
|
+
id?: string | string[];
|
|
979
|
+
/**
|
|
980
|
+
* Filter the adjustments by the ID of their associated shipping method.
|
|
981
|
+
*/
|
|
982
|
+
shipping_method_id?: string | string[];
|
|
983
|
+
/**
|
|
984
|
+
* Filter the shipping method adjustments by the ID of their associated promotion.
|
|
985
|
+
*/
|
|
986
|
+
promotion_id?: string | string[];
|
|
987
|
+
/**
|
|
988
|
+
* Filter the shipping method adjustments by the ID of their associated provider.
|
|
989
|
+
*/
|
|
990
|
+
provider_id?: string | string[];
|
|
991
|
+
/**
|
|
992
|
+
* Filter the adjustments by their associated shipping method.
|
|
993
|
+
*/
|
|
994
|
+
shipping_method?: FilterableShippingMethodProps;
|
|
995
|
+
}
|
|
996
|
+
/**
|
|
997
|
+
* The filters to apply on the retrieved line item tax lines.
|
|
998
|
+
*/
|
|
999
|
+
export interface FilterableLineItemTaxLineProps extends BaseFilterable<FilterableLineItemTaxLineProps> {
|
|
1000
|
+
/**
|
|
1001
|
+
* The IDs to filter the line item tax lines by.
|
|
1002
|
+
*/
|
|
1003
|
+
id?: string | string[];
|
|
1004
|
+
/**
|
|
1005
|
+
* Filter the line item tax lines by their description.
|
|
1006
|
+
*/
|
|
1007
|
+
description?: string;
|
|
1008
|
+
/**
|
|
1009
|
+
* Filter the line item tax lines by their code.
|
|
1010
|
+
*/
|
|
1011
|
+
code?: string | string[];
|
|
1012
|
+
/**
|
|
1013
|
+
* Filter the line item tax lines by the ID of their associated tax rate.
|
|
1014
|
+
*/
|
|
1015
|
+
tax_rate_id?: string | string[];
|
|
1016
|
+
/**
|
|
1017
|
+
* Filter the line item tax lines by the ID of their associated provider.
|
|
1018
|
+
*/
|
|
1019
|
+
provider_id?: string | string[];
|
|
1020
|
+
/**
|
|
1021
|
+
* Filter the tax lines by the ID of their associated line item.
|
|
1022
|
+
*/
|
|
1023
|
+
item_id?: string | string[];
|
|
1024
|
+
/**
|
|
1025
|
+
* Filter the tax lines by their associated line item.
|
|
1026
|
+
*/
|
|
1027
|
+
item?: FilterableLineItemProps;
|
|
1028
|
+
}
|
|
1029
|
+
/**
|
|
1030
|
+
* The filters to apply on the retrieved shipping method tax lines.
|
|
1031
|
+
*/
|
|
1032
|
+
export interface FilterableShippingMethodTaxLineProps extends BaseFilterable<FilterableShippingMethodTaxLineProps> {
|
|
1033
|
+
/**
|
|
1034
|
+
* The IDs to filter the shipping method tax lines by.
|
|
1035
|
+
*/
|
|
1036
|
+
id?: string | string[];
|
|
1037
|
+
/**
|
|
1038
|
+
* Filter the shipping method tax lines by their description.
|
|
1039
|
+
*/
|
|
1040
|
+
description?: string;
|
|
1041
|
+
/**
|
|
1042
|
+
* Filter the shipping method tax lines by their code.
|
|
1043
|
+
*/
|
|
1044
|
+
code?: string | string[];
|
|
1045
|
+
/**
|
|
1046
|
+
* Filter the shipping method tax lines by the ID of their associated tax rate.
|
|
1047
|
+
*/
|
|
1048
|
+
tax_rate_id?: string | string[];
|
|
1049
|
+
/**
|
|
1050
|
+
* Filter the shipping method tax lines by the ID of their associated provider.
|
|
1051
|
+
*/
|
|
1052
|
+
provider_id?: string | string[];
|
|
1053
|
+
/**
|
|
1054
|
+
* Filter the tax lines by the ID of their associated shipping method.
|
|
1055
|
+
*/
|
|
1056
|
+
shipping_method_id?: string | string[];
|
|
1057
|
+
/**
|
|
1058
|
+
* Filter the tax lines by their associated shipping method.
|
|
1059
|
+
*/
|
|
1060
|
+
shipping_method?: FilterableShippingMethodProps;
|
|
1061
|
+
}
|
|
1062
|
+
/**
|
|
1063
|
+
* The cart credit line details.
|
|
1064
|
+
*/
|
|
1065
|
+
export interface CartCreditLineDTO {
|
|
1066
|
+
/**
|
|
1067
|
+
* The ID of the cart credit line.
|
|
1068
|
+
*/
|
|
1069
|
+
id: string;
|
|
1070
|
+
/**
|
|
1071
|
+
* The ID of the cart that the credit line belongs to.
|
|
1072
|
+
*/
|
|
1073
|
+
cart_id: string;
|
|
1074
|
+
/**
|
|
1075
|
+
* The amount of the credit line.
|
|
1076
|
+
*/
|
|
1077
|
+
amount: BigNumberValue;
|
|
1078
|
+
/**
|
|
1079
|
+
* The raw amount of the credit line.
|
|
1080
|
+
*/
|
|
1081
|
+
raw_amount: BigNumberRawValue;
|
|
1082
|
+
/**
|
|
1083
|
+
* The reference model name that the credit line is generated from
|
|
1084
|
+
*/
|
|
1085
|
+
reference: string | null;
|
|
1086
|
+
/**
|
|
1087
|
+
* The reference model id that the credit line is generated from
|
|
1088
|
+
*/
|
|
1089
|
+
reference_id: string | null;
|
|
1090
|
+
/**
|
|
1091
|
+
* The metadata of the cart detail
|
|
1092
|
+
*/
|
|
1093
|
+
metadata: Record<string, unknown> | null;
|
|
1094
|
+
/**
|
|
1095
|
+
* The date when the cart credit line was created.
|
|
1096
|
+
*/
|
|
1097
|
+
created_at: Date;
|
|
1098
|
+
/**
|
|
1099
|
+
* The date when the cart credit line was last updated.
|
|
1100
|
+
*/
|
|
1101
|
+
updated_at: Date;
|
|
1102
|
+
}
|
|
1103
|
+
export interface CreateCartCreditLineDTO {
|
|
1104
|
+
/**
|
|
1105
|
+
* The ID of the cart that the credit line belongs to.
|
|
1106
|
+
*/
|
|
1107
|
+
cart_id: string;
|
|
1108
|
+
/**
|
|
1109
|
+
* The amount of the credit line.
|
|
1110
|
+
*/
|
|
1111
|
+
amount: number;
|
|
1112
|
+
/**
|
|
1113
|
+
* The reference model name that the credit line is generated from
|
|
1114
|
+
*/
|
|
1115
|
+
reference: string | null;
|
|
1116
|
+
/**
|
|
1117
|
+
* The reference model id that the credit line is generated from
|
|
1118
|
+
*/
|
|
1119
|
+
reference_id: string | null;
|
|
1120
|
+
/**
|
|
1121
|
+
* The metadata of the cart detail
|
|
1122
|
+
*/
|
|
1123
|
+
metadata: Record<string, unknown> | null;
|
|
1124
|
+
}
|
|
1125
|
+
//# sourceMappingURL=common.d.ts.map
|