@gradientedge/commercetools-utils 4.11.1 → 4.12.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/dist/ge-commercetools-utils-browser.cjs.js +2 -0
- package/dist/ge-commercetools-utils-browser.cjs.js.map +1 -0
- package/dist/ge-commercetools-utils-browser.esm.js +2 -0
- package/dist/ge-commercetools-utils-browser.esm.js.map +1 -0
- package/dist/ge-commercetools-utils-node.cjs.js +2 -0
- package/dist/ge-commercetools-utils-node.cjs.js.map +1 -0
- package/dist/ge-commercetools-utils-node.esm.js +1 -0
- package/dist/typings/api/CommercetoolsApi.d.ts +436 -0
- package/{build → dist/typings}/api/index.d.ts +0 -1
- package/dist/typings/api/types.d.ts +12 -0
- package/dist/typings/auth/CommercetoolsAuth.d.ts +22 -0
- package/dist/typings/auth/CommercetoolsAuthApi.d.ts +21 -0
- package/dist/typings/auth/CommercetoolsGrant.d.ts +13 -0
- package/{build → dist/typings}/auth/constants.d.ts +0 -4
- package/dist/typings/auth/index.d.ts +3 -0
- package/dist/typings/auth/scopes.d.ts +2 -0
- package/dist/typings/auth/types.d.ts +43 -0
- package/{build → dist/typings}/auth/utils.d.ts +0 -1
- package/dist/typings/constants.d.ts +1 -0
- package/dist/typings/error/CommercetoolsError.d.ts +16 -0
- package/{build → dist/typings}/error/index.d.ts +0 -1
- package/dist/typings/index.d.ts +6 -0
- package/dist/typings/models/cart-discount.d.ts +196 -0
- package/dist/typings/models/cart.d.ts +597 -0
- package/dist/typings/models/category.d.ts +166 -0
- package/dist/typings/models/channel.d.ts +103 -0
- package/dist/typings/models/common.d.ts +232 -0
- package/dist/typings/models/custom-object.d.ts +30 -0
- package/dist/typings/models/customer-group.d.ts +58 -0
- package/dist/typings/models/customer.d.ts +276 -0
- package/dist/typings/models/discount-code.d.ts +116 -0
- package/dist/typings/models/error.d.ts +412 -0
- package/dist/typings/models/extension.d.ts +78 -0
- package/dist/typings/models/graph-ql.d.ts +21 -0
- package/dist/typings/models/index.d.ts +33 -0
- package/dist/typings/models/inventory.d.ts +82 -0
- package/dist/typings/models/me.d.ts +481 -0
- package/dist/typings/models/message.d.ts +1823 -0
- package/dist/typings/models/order-edit.d.ts +565 -0
- package/dist/typings/models/order.d.ts +558 -0
- package/dist/typings/models/payment.d.ts +208 -0
- package/dist/typings/models/product-discount.d.ts +123 -0
- package/dist/typings/models/product-selection.d.ts +106 -0
- package/dist/typings/models/product-type.d.ts +216 -0
- package/dist/typings/models/product.d.ts +517 -0
- package/dist/typings/models/project.d.ts +108 -0
- package/dist/typings/models/review.d.ts +115 -0
- package/dist/typings/models/scalar-types.d.ts +4 -0
- package/dist/typings/models/shipping-method.d.ts +160 -0
- package/dist/typings/models/shopping-list.d.ts +217 -0
- package/dist/typings/models/state.d.ts +86 -0
- package/dist/typings/models/store.d.ts +121 -0
- package/dist/typings/models/subscription.d.ts +148 -0
- package/dist/typings/models/tax-category.d.ts +87 -0
- package/dist/typings/models/type.d.ts +182 -0
- package/dist/typings/models/zone.d.ts +65 -0
- package/dist/typings/types.d.ts +21 -0
- package/dist/typings/utils/format.d.ts +1 -0
- package/{build → dist/typings}/utils/index.d.ts +0 -1
- package/dist/typings/utils/mask.d.ts +6 -0
- package/dist/typings/utils/useragent.d.ts +1 -0
- package/package.json +40 -18
- package/.husky/pre-commit +0 -4
- package/.nvmrc +0 -1
- package/build/api/CommercetoolsApi.d.ts +0 -1096
- package/build/api/CommercetoolsApi.d.ts.map +0 -1
- package/build/api/CommercetoolsApi.js +0 -1419
- package/build/api/CommercetoolsApi.js.map +0 -1
- package/build/api/index.d.ts.map +0 -1
- package/build/api/index.js +0 -15
- package/build/api/index.js.map +0 -1
- package/build/api/types.d.ts +0 -33
- package/build/api/types.d.ts.map +0 -1
- package/build/api/types.js +0 -3
- package/build/api/types.js.map +0 -1
- package/build/auth/CommercetoolsAuth.d.ts +0 -182
- package/build/auth/CommercetoolsAuth.d.ts.map +0 -1
- package/build/auth/CommercetoolsAuth.js +0 -326
- package/build/auth/CommercetoolsAuth.js.map +0 -1
- package/build/auth/CommercetoolsAuthApi.d.ts +0 -74
- package/build/auth/CommercetoolsAuthApi.d.ts.map +0 -1
- package/build/auth/CommercetoolsAuthApi.js +0 -249
- package/build/auth/CommercetoolsAuthApi.js.map +0 -1
- package/build/auth/CommercetoolsGrant.d.ts +0 -66
- package/build/auth/CommercetoolsGrant.d.ts.map +0 -1
- package/build/auth/CommercetoolsGrant.js +0 -82
- package/build/auth/CommercetoolsGrant.js.map +0 -1
- package/build/auth/constants.d.ts.map +0 -1
- package/build/auth/constants.js +0 -32
- package/build/auth/constants.js.map +0 -1
- package/build/auth/index.d.ts +0 -4
- package/build/auth/index.d.ts.map +0 -1
- package/build/auth/index.js +0 -18
- package/build/auth/index.js.map +0 -1
- package/build/auth/scopes.d.ts +0 -11
- package/build/auth/scopes.d.ts.map +0 -1
- package/build/auth/scopes.js +0 -30
- package/build/auth/scopes.js.map +0 -1
- package/build/auth/types.d.ts +0 -120
- package/build/auth/types.d.ts.map +0 -1
- package/build/auth/types.js +0 -28
- package/build/auth/types.js.map +0 -1
- package/build/auth/utils.d.ts.map +0 -1
- package/build/auth/utils.js +0 -8
- package/build/auth/utils.js.map +0 -1
- package/build/constants.d.ts +0 -6
- package/build/constants.d.ts.map +0 -1
- package/build/constants.js +0 -9
- package/build/constants.js.map +0 -1
- package/build/error/CommercetoolsError.d.ts +0 -38
- package/build/error/CommercetoolsError.d.ts.map +0 -1
- package/build/error/CommercetoolsError.js +0 -117
- package/build/error/CommercetoolsError.js.map +0 -1
- package/build/error/index.d.ts.map +0 -1
- package/build/error/index.js +0 -14
- package/build/error/index.js.map +0 -1
- package/build/index.d.ts +0 -7
- package/build/index.d.ts.map +0 -1
- package/build/index.js +0 -21
- package/build/index.js.map +0 -1
- package/build/types.d.ts +0 -44
- package/build/types.d.ts.map +0 -1
- package/build/types.js +0 -16
- package/build/types.js.map +0 -1
- package/build/utils/format.d.ts +0 -11
- package/build/utils/format.d.ts.map +0 -1
- package/build/utils/format.js +0 -48
- package/build/utils/format.js.map +0 -1
- package/build/utils/index.d.ts.map +0 -1
- package/build/utils/index.js +0 -16
- package/build/utils/index.js.map +0 -1
- package/build/utils/mask.d.ts +0 -28
- package/build/utils/mask.d.ts.map +0 -1
- package/build/utils/mask.js +0 -56
- package/build/utils/mask.js.map +0 -1
- package/build/utils/useragent.d.ts +0 -10
- package/build/utils/useragent.d.ts.map +0 -1
- package/build/utils/useragent.js +0 -20
- package/build/utils/useragent.js.map +0 -1
|
@@ -0,0 +1,558 @@
|
|
|
1
|
+
import { CartOrigin, CartReference, CartResourceIdentifier, CustomLineItem, CustomLineItemImportDraft, DiscountCodeInfo, DiscountedLineItemPortion, InventoryMode, ItemShippingDetailsDraft, LineItem, RoundingMode, ShippingInfo, ShippingMethodState, ShippingRateInput, TaxCalculationMode, TaxedPrice, TaxedPriceDraft, TaxMode } from './cart';
|
|
2
|
+
import { CartDiscountReference } from './cart-discount';
|
|
3
|
+
import { ChannelReference, ChannelResourceIdentifier } from './channel';
|
|
4
|
+
import { Address, BaseAddress, BaseResource, CreatedBy, Image, LastModifiedBy, LocalizedString, Money, PriceDraft, TypedMoney } from './common';
|
|
5
|
+
import { CustomerGroupReference, CustomerGroupResourceIdentifier } from './customer-group';
|
|
6
|
+
import { StagedOrderAddCustomLineItemAction, StagedOrderAddDeliveryAction, StagedOrderAddDiscountCodeAction, StagedOrderAddItemShippingAddressAction, StagedOrderAddLineItemAction, StagedOrderAddParcelToDeliveryAction, StagedOrderAddPaymentAction, StagedOrderAddReturnInfoAction, StagedOrderAddShoppingListAction, StagedOrderChangeCustomLineItemMoneyAction, StagedOrderChangeCustomLineItemQuantityAction, StagedOrderChangeLineItemQuantityAction, StagedOrderChangeOrderStateAction, StagedOrderChangePaymentStateAction, StagedOrderChangeShipmentStateAction, StagedOrderChangeTaxCalculationModeAction, StagedOrderChangeTaxModeAction, StagedOrderChangeTaxRoundingModeAction, StagedOrderImportCustomLineItemStateAction, StagedOrderImportLineItemStateAction, StagedOrderRemoveCustomLineItemAction, StagedOrderRemoveDeliveryAction, StagedOrderRemoveDiscountCodeAction, StagedOrderRemoveItemShippingAddressAction, StagedOrderRemoveLineItemAction, StagedOrderRemoveParcelFromDeliveryAction, StagedOrderRemovePaymentAction, StagedOrderSetBillingAddressAction, StagedOrderSetBillingAddressCustomFieldAction, StagedOrderSetBillingAddressCustomTypeAction, StagedOrderSetCountryAction, StagedOrderSetCustomerEmailAction, StagedOrderSetCustomerGroupAction, StagedOrderSetCustomerIdAction, StagedOrderSetCustomFieldAction, StagedOrderSetCustomLineItemCustomFieldAction, StagedOrderSetCustomLineItemCustomTypeAction, StagedOrderSetCustomLineItemShippingDetailsAction, StagedOrderSetCustomLineItemTaxAmountAction, StagedOrderSetCustomLineItemTaxRateAction, StagedOrderSetCustomShippingMethodAction, StagedOrderSetCustomTypeAction, StagedOrderSetDeliveryAddressAction, StagedOrderSetDeliveryAddressCustomFieldAction, StagedOrderSetDeliveryAddressCustomTypeAction, StagedOrderSetDeliveryCustomFieldAction, StagedOrderSetDeliveryCustomTypeAction, StagedOrderSetDeliveryItemsAction, StagedOrderSetItemShippingAddressCustomFieldAction, StagedOrderSetItemShippingAddressCustomTypeAction, StagedOrderSetLineItemCustomFieldAction, StagedOrderSetLineItemCustomTypeAction, StagedOrderSetLineItemDistributionChannelAction, StagedOrderSetLineItemPriceAction, StagedOrderSetLineItemShippingDetailsAction, StagedOrderSetLineItemTaxAmountAction, StagedOrderSetLineItemTaxRateAction, StagedOrderSetLineItemTotalPriceAction, StagedOrderSetLocaleAction, StagedOrderSetOrderNumberAction, StagedOrderSetOrderTotalTaxAction, StagedOrderSetParcelCustomFieldAction, StagedOrderSetParcelCustomTypeAction, StagedOrderSetParcelItemsAction, StagedOrderSetParcelMeasurementsAction, StagedOrderSetParcelTrackingDataAction, StagedOrderSetReturnInfoAction, StagedOrderSetReturnItemCustomFieldAction, StagedOrderSetReturnItemCustomTypeAction, StagedOrderSetReturnPaymentStateAction, StagedOrderSetReturnShipmentStateAction, StagedOrderSetShippingAddressAction, StagedOrderSetShippingAddressAndCustomShippingMethodAction, StagedOrderSetShippingAddressAndShippingMethodAction, StagedOrderSetShippingAddressCustomFieldAction, StagedOrderSetShippingAddressCustomTypeAction, StagedOrderSetShippingMethodAction, StagedOrderSetShippingMethodTaxAmountAction, StagedOrderSetShippingMethodTaxRateAction, StagedOrderSetShippingRateInputAction, StagedOrderTransitionCustomLineItemStateAction, StagedOrderTransitionLineItemStateAction, StagedOrderTransitionStateAction, StagedOrderUpdateItemShippingAddressAction, StagedOrderUpdateSyncInfoAction } from './order-edit';
|
|
7
|
+
import { PaymentReference, PaymentResourceIdentifier } from './payment';
|
|
8
|
+
import { Attribute } from './product';
|
|
9
|
+
import { ShippingMethodResourceIdentifier, ShippingRateDraft } from './shipping-method';
|
|
10
|
+
import { StateReference, StateResourceIdentifier } from './state';
|
|
11
|
+
import { StoreKeyReference, StoreResourceIdentifier } from './store';
|
|
12
|
+
import { TaxCategoryResourceIdentifier, TaxRate } from './tax-category';
|
|
13
|
+
import { CustomFields, CustomFieldsDraft, FieldContainer, TypeResourceIdentifier } from './type';
|
|
14
|
+
export declare type StagedOrderUpdateAction = StagedOrderAddCustomLineItemAction | StagedOrderAddDeliveryAction | StagedOrderAddDiscountCodeAction | StagedOrderAddItemShippingAddressAction | StagedOrderAddLineItemAction | StagedOrderAddParcelToDeliveryAction | StagedOrderAddPaymentAction | StagedOrderAddReturnInfoAction | StagedOrderAddShoppingListAction | StagedOrderChangeCustomLineItemMoneyAction | StagedOrderChangeCustomLineItemQuantityAction | StagedOrderChangeLineItemQuantityAction | StagedOrderChangeOrderStateAction | StagedOrderChangePaymentStateAction | StagedOrderChangeShipmentStateAction | StagedOrderChangeTaxCalculationModeAction | StagedOrderChangeTaxModeAction | StagedOrderChangeTaxRoundingModeAction | StagedOrderImportCustomLineItemStateAction | StagedOrderImportLineItemStateAction | StagedOrderRemoveCustomLineItemAction | StagedOrderRemoveDeliveryAction | StagedOrderRemoveDiscountCodeAction | StagedOrderRemoveItemShippingAddressAction | StagedOrderRemoveLineItemAction | StagedOrderRemoveParcelFromDeliveryAction | StagedOrderRemovePaymentAction | StagedOrderSetBillingAddressAction | StagedOrderSetBillingAddressCustomFieldAction | StagedOrderSetBillingAddressCustomTypeAction | StagedOrderSetCountryAction | StagedOrderSetCustomFieldAction | StagedOrderSetCustomLineItemCustomFieldAction | StagedOrderSetCustomLineItemCustomTypeAction | StagedOrderSetCustomLineItemShippingDetailsAction | StagedOrderSetCustomLineItemTaxAmountAction | StagedOrderSetCustomLineItemTaxRateAction | StagedOrderSetCustomShippingMethodAction | StagedOrderSetCustomTypeAction | StagedOrderSetCustomerEmailAction | StagedOrderSetCustomerGroupAction | StagedOrderSetCustomerIdAction | StagedOrderSetDeliveryAddressAction | StagedOrderSetDeliveryAddressCustomFieldAction | StagedOrderSetDeliveryAddressCustomTypeAction | StagedOrderSetDeliveryCustomFieldAction | StagedOrderSetDeliveryCustomTypeAction | StagedOrderSetDeliveryItemsAction | StagedOrderSetItemShippingAddressCustomFieldAction | StagedOrderSetItemShippingAddressCustomTypeAction | StagedOrderSetLineItemCustomFieldAction | StagedOrderSetLineItemCustomTypeAction | StagedOrderSetLineItemDistributionChannelAction | StagedOrderSetLineItemPriceAction | StagedOrderSetLineItemShippingDetailsAction | StagedOrderSetLineItemTaxAmountAction | StagedOrderSetLineItemTaxRateAction | StagedOrderSetLineItemTotalPriceAction | StagedOrderSetLocaleAction | StagedOrderSetOrderNumberAction | StagedOrderSetOrderTotalTaxAction | StagedOrderSetParcelCustomFieldAction | StagedOrderSetParcelCustomTypeAction | StagedOrderSetParcelItemsAction | StagedOrderSetParcelMeasurementsAction | StagedOrderSetParcelTrackingDataAction | StagedOrderSetReturnInfoAction | StagedOrderSetReturnItemCustomFieldAction | StagedOrderSetReturnItemCustomTypeAction | StagedOrderSetReturnPaymentStateAction | StagedOrderSetReturnShipmentStateAction | StagedOrderSetShippingAddressAction | StagedOrderSetShippingAddressAndCustomShippingMethodAction | StagedOrderSetShippingAddressAndShippingMethodAction | StagedOrderSetShippingAddressCustomFieldAction | StagedOrderSetShippingAddressCustomTypeAction | StagedOrderSetShippingMethodAction | StagedOrderSetShippingMethodTaxAmountAction | StagedOrderSetShippingMethodTaxRateAction | StagedOrderSetShippingRateInputAction | StagedOrderTransitionCustomLineItemStateAction | StagedOrderTransitionLineItemStateAction | StagedOrderTransitionStateAction | StagedOrderUpdateItemShippingAddressAction | StagedOrderUpdateSyncInfoAction;
|
|
15
|
+
export interface Hit {
|
|
16
|
+
readonly id: string;
|
|
17
|
+
readonly version: number;
|
|
18
|
+
readonly relevance: number;
|
|
19
|
+
}
|
|
20
|
+
export interface OrderPagedSearchResponse {
|
|
21
|
+
readonly total: number;
|
|
22
|
+
readonly offset?: number;
|
|
23
|
+
readonly limit?: number;
|
|
24
|
+
readonly hits: Hit[];
|
|
25
|
+
}
|
|
26
|
+
export interface Delivery {
|
|
27
|
+
readonly id: string;
|
|
28
|
+
readonly createdAt: string;
|
|
29
|
+
readonly items: DeliveryItem[];
|
|
30
|
+
readonly parcels: Parcel[];
|
|
31
|
+
readonly address?: Address;
|
|
32
|
+
readonly custom?: CustomFields;
|
|
33
|
+
}
|
|
34
|
+
export interface DeliveryItem {
|
|
35
|
+
readonly id: string;
|
|
36
|
+
readonly quantity: number;
|
|
37
|
+
}
|
|
38
|
+
export interface DiscountedLineItemPriceDraft {
|
|
39
|
+
readonly value: Money;
|
|
40
|
+
readonly includedDiscounts: DiscountedLineItemPortion[];
|
|
41
|
+
}
|
|
42
|
+
export interface ItemState {
|
|
43
|
+
readonly quantity: number;
|
|
44
|
+
readonly state: StateReference;
|
|
45
|
+
}
|
|
46
|
+
export interface LineItemImportDraft {
|
|
47
|
+
readonly productId?: string;
|
|
48
|
+
readonly name: LocalizedString;
|
|
49
|
+
readonly variant: ProductVariantImportDraft;
|
|
50
|
+
readonly price: PriceDraft;
|
|
51
|
+
readonly quantity: number;
|
|
52
|
+
readonly state?: ItemState[];
|
|
53
|
+
readonly supplyChannel?: ChannelResourceIdentifier;
|
|
54
|
+
readonly distributionChannel?: ChannelResourceIdentifier;
|
|
55
|
+
readonly taxRate?: TaxRate;
|
|
56
|
+
readonly custom?: CustomFieldsDraft;
|
|
57
|
+
readonly shippingDetails?: ItemShippingDetailsDraft;
|
|
58
|
+
}
|
|
59
|
+
export interface Order extends BaseResource {
|
|
60
|
+
readonly id: string;
|
|
61
|
+
readonly version: number;
|
|
62
|
+
readonly createdAt: string;
|
|
63
|
+
readonly lastModifiedAt: string;
|
|
64
|
+
readonly lastModifiedBy?: LastModifiedBy;
|
|
65
|
+
readonly createdBy?: CreatedBy;
|
|
66
|
+
readonly completedAt?: string;
|
|
67
|
+
readonly orderNumber?: string;
|
|
68
|
+
readonly customerId?: string;
|
|
69
|
+
readonly customerEmail?: string;
|
|
70
|
+
readonly anonymousId?: string;
|
|
71
|
+
readonly store?: StoreKeyReference;
|
|
72
|
+
readonly lineItems: LineItem[];
|
|
73
|
+
readonly customLineItems: CustomLineItem[];
|
|
74
|
+
readonly totalPrice: TypedMoney;
|
|
75
|
+
readonly taxedPrice?: TaxedPrice;
|
|
76
|
+
readonly shippingAddress?: Address;
|
|
77
|
+
readonly billingAddress?: Address;
|
|
78
|
+
readonly taxMode?: TaxMode;
|
|
79
|
+
readonly taxRoundingMode?: RoundingMode;
|
|
80
|
+
readonly customerGroup?: CustomerGroupReference;
|
|
81
|
+
readonly country?: string;
|
|
82
|
+
readonly orderState: OrderState;
|
|
83
|
+
readonly state?: StateReference;
|
|
84
|
+
readonly shipmentState?: ShipmentState;
|
|
85
|
+
readonly paymentState?: PaymentState;
|
|
86
|
+
readonly shippingInfo?: ShippingInfo;
|
|
87
|
+
readonly syncInfo: SyncInfo[];
|
|
88
|
+
readonly returnInfo?: ReturnInfo[];
|
|
89
|
+
readonly discountCodes?: DiscountCodeInfo[];
|
|
90
|
+
readonly lastMessageSequenceNumber: number;
|
|
91
|
+
readonly cart?: CartReference;
|
|
92
|
+
readonly custom?: CustomFields;
|
|
93
|
+
readonly paymentInfo?: PaymentInfo;
|
|
94
|
+
readonly locale?: string;
|
|
95
|
+
readonly inventoryMode?: InventoryMode;
|
|
96
|
+
readonly origin: CartOrigin;
|
|
97
|
+
readonly taxCalculationMode?: TaxCalculationMode;
|
|
98
|
+
readonly shippingRateInput?: ShippingRateInput;
|
|
99
|
+
readonly itemShippingAddresses?: Address[];
|
|
100
|
+
readonly refusedGifts: CartDiscountReference[];
|
|
101
|
+
}
|
|
102
|
+
export interface OrderFromCartDraft {
|
|
103
|
+
readonly id?: string;
|
|
104
|
+
readonly cart?: CartResourceIdentifier;
|
|
105
|
+
readonly version: number;
|
|
106
|
+
readonly orderNumber?: string;
|
|
107
|
+
readonly paymentState?: PaymentState;
|
|
108
|
+
readonly shipmentState?: ShipmentState;
|
|
109
|
+
readonly orderState?: OrderState;
|
|
110
|
+
readonly state?: StateResourceIdentifier;
|
|
111
|
+
}
|
|
112
|
+
export interface OrderImportDraft {
|
|
113
|
+
readonly orderNumber?: string;
|
|
114
|
+
readonly customerId?: string;
|
|
115
|
+
readonly customerEmail?: string;
|
|
116
|
+
readonly lineItems?: LineItemImportDraft[];
|
|
117
|
+
readonly customLineItems?: CustomLineItemImportDraft[];
|
|
118
|
+
readonly totalPrice: Money;
|
|
119
|
+
readonly taxedPrice?: TaxedPriceDraft;
|
|
120
|
+
readonly shippingAddress?: BaseAddress;
|
|
121
|
+
readonly billingAddress?: BaseAddress;
|
|
122
|
+
readonly customerGroup?: CustomerGroupResourceIdentifier;
|
|
123
|
+
readonly country?: string;
|
|
124
|
+
readonly orderState?: OrderState;
|
|
125
|
+
readonly shipmentState?: ShipmentState;
|
|
126
|
+
readonly paymentState?: PaymentState;
|
|
127
|
+
readonly shippingInfo?: ShippingInfoImportDraft;
|
|
128
|
+
readonly completedAt?: string;
|
|
129
|
+
readonly custom?: CustomFieldsDraft;
|
|
130
|
+
readonly inventoryMode?: InventoryMode;
|
|
131
|
+
readonly taxRoundingMode?: RoundingMode;
|
|
132
|
+
readonly itemShippingAddresses?: BaseAddress[];
|
|
133
|
+
readonly store?: StoreResourceIdentifier;
|
|
134
|
+
readonly origin?: CartOrigin;
|
|
135
|
+
}
|
|
136
|
+
export interface OrderPagedQueryResponse {
|
|
137
|
+
readonly limit: number;
|
|
138
|
+
readonly count: number;
|
|
139
|
+
readonly total?: number;
|
|
140
|
+
readonly offset: number;
|
|
141
|
+
readonly results: Order[];
|
|
142
|
+
}
|
|
143
|
+
export interface OrderReference {
|
|
144
|
+
readonly typeId: 'order';
|
|
145
|
+
readonly id: string;
|
|
146
|
+
readonly obj?: Order;
|
|
147
|
+
}
|
|
148
|
+
export interface OrderResourceIdentifier {
|
|
149
|
+
readonly typeId: 'order';
|
|
150
|
+
readonly id?: string;
|
|
151
|
+
readonly key?: string;
|
|
152
|
+
}
|
|
153
|
+
export interface OrderSearchQuery {
|
|
154
|
+
}
|
|
155
|
+
export interface OrderSearchRequest {
|
|
156
|
+
readonly query: OrderSearchQuery;
|
|
157
|
+
readonly sort?: string;
|
|
158
|
+
readonly limit?: number;
|
|
159
|
+
readonly offset?: number;
|
|
160
|
+
}
|
|
161
|
+
export declare type OrderState = 'Cancelled' | 'Complete' | 'Confirmed' | 'Open';
|
|
162
|
+
export interface OrderUpdate {
|
|
163
|
+
readonly version: number;
|
|
164
|
+
readonly actions: OrderUpdateAction[];
|
|
165
|
+
}
|
|
166
|
+
export declare type OrderUpdateAction = OrderAddDeliveryAction | OrderAddItemShippingAddressAction | OrderAddParcelToDeliveryAction | OrderAddPaymentAction | OrderAddReturnInfoAction | OrderChangeOrderStateAction | OrderChangePaymentStateAction | OrderChangeShipmentStateAction | OrderImportCustomLineItemStateAction | OrderImportLineItemStateAction | OrderRemoveDeliveryAction | OrderRemoveItemShippingAddressAction | OrderRemoveParcelFromDeliveryAction | OrderRemovePaymentAction | OrderSetBillingAddressAction | OrderSetBillingAddressCustomFieldAction | OrderSetBillingAddressCustomTypeAction | OrderSetCustomFieldAction | OrderSetCustomLineItemCustomFieldAction | OrderSetCustomLineItemCustomTypeAction | OrderSetCustomLineItemShippingDetailsAction | OrderSetCustomTypeAction | OrderSetCustomerEmailAction | OrderSetCustomerIdAction | OrderSetDeliveryAddressAction | OrderSetDeliveryAddressCustomFieldAction | OrderSetDeliveryAddressCustomTypeAction | OrderSetDeliveryCustomFieldAction | OrderSetDeliveryCustomTypeAction | OrderSetDeliveryItemsAction | OrderSetItemShippingAddressCustomFieldAction | OrderSetItemShippingAddressCustomTypeAction | OrderSetLineItemCustomFieldAction | OrderSetLineItemCustomTypeAction | OrderSetLineItemShippingDetailsAction | OrderSetLocaleAction | OrderSetOrderNumberAction | OrderSetParcelCustomFieldAction | OrderSetParcelCustomTypeAction | OrderSetParcelItemsAction | OrderSetParcelMeasurementsAction | OrderSetParcelTrackingDataAction | OrderSetReturnInfoAction | OrderSetReturnItemCustomFieldAction | OrderSetReturnItemCustomTypeAction | OrderSetReturnPaymentStateAction | OrderSetReturnShipmentStateAction | OrderSetShippingAddressAction | OrderSetShippingAddressCustomFieldAction | OrderSetShippingAddressCustomTypeAction | OrderSetStoreAction | OrderTransitionCustomLineItemStateAction | OrderTransitionLineItemStateAction | OrderTransitionStateAction | OrderUpdateItemShippingAddressAction | OrderUpdateSyncInfoAction;
|
|
167
|
+
export interface Parcel {
|
|
168
|
+
readonly id: string;
|
|
169
|
+
readonly createdAt: string;
|
|
170
|
+
readonly measurements?: ParcelMeasurements;
|
|
171
|
+
readonly trackingData?: TrackingData;
|
|
172
|
+
readonly items?: DeliveryItem[];
|
|
173
|
+
readonly custom?: CustomFields;
|
|
174
|
+
}
|
|
175
|
+
export interface ParcelDraft {
|
|
176
|
+
readonly measurements?: ParcelMeasurements;
|
|
177
|
+
readonly trackingData?: TrackingData;
|
|
178
|
+
readonly items?: DeliveryItem[];
|
|
179
|
+
readonly custom?: CustomFieldsDraft;
|
|
180
|
+
}
|
|
181
|
+
export interface ParcelMeasurements {
|
|
182
|
+
readonly heightInMillimeter?: number;
|
|
183
|
+
readonly lengthInMillimeter?: number;
|
|
184
|
+
readonly widthInMillimeter?: number;
|
|
185
|
+
readonly weightInGram?: number;
|
|
186
|
+
}
|
|
187
|
+
export interface PaymentInfo {
|
|
188
|
+
readonly payments: PaymentReference[];
|
|
189
|
+
}
|
|
190
|
+
export declare type PaymentState = 'BalanceDue' | 'CreditOwed' | 'Failed' | 'Paid' | 'Pending';
|
|
191
|
+
export interface ProductVariantImportDraft {
|
|
192
|
+
readonly id?: number;
|
|
193
|
+
readonly sku?: string;
|
|
194
|
+
readonly prices?: PriceDraft[];
|
|
195
|
+
readonly attributes?: Attribute[];
|
|
196
|
+
readonly images?: Image[];
|
|
197
|
+
}
|
|
198
|
+
export interface ReturnInfo {
|
|
199
|
+
readonly items: ReturnItem[];
|
|
200
|
+
readonly returnTrackingId?: string;
|
|
201
|
+
readonly returnDate?: string;
|
|
202
|
+
}
|
|
203
|
+
export interface ReturnInfoDraft {
|
|
204
|
+
readonly items: ReturnItemDraft[];
|
|
205
|
+
readonly returnTrackingId?: string;
|
|
206
|
+
readonly returnDate?: string;
|
|
207
|
+
}
|
|
208
|
+
export declare type ReturnItem = CustomLineItemReturnItem | LineItemReturnItem;
|
|
209
|
+
export interface CustomLineItemReturnItem {
|
|
210
|
+
readonly type: 'CustomLineItemReturnItem';
|
|
211
|
+
readonly id: string;
|
|
212
|
+
readonly quantity: number;
|
|
213
|
+
readonly comment?: string;
|
|
214
|
+
readonly shipmentState: ReturnShipmentState;
|
|
215
|
+
readonly paymentState: ReturnPaymentState;
|
|
216
|
+
readonly custom?: CustomFields;
|
|
217
|
+
readonly lastModifiedAt: string;
|
|
218
|
+
readonly createdAt: string;
|
|
219
|
+
readonly customLineItemId: string;
|
|
220
|
+
}
|
|
221
|
+
export interface LineItemReturnItem {
|
|
222
|
+
readonly type: 'LineItemReturnItem';
|
|
223
|
+
readonly id: string;
|
|
224
|
+
readonly quantity: number;
|
|
225
|
+
readonly comment?: string;
|
|
226
|
+
readonly shipmentState: ReturnShipmentState;
|
|
227
|
+
readonly paymentState: ReturnPaymentState;
|
|
228
|
+
readonly custom?: CustomFields;
|
|
229
|
+
readonly lastModifiedAt: string;
|
|
230
|
+
readonly createdAt: string;
|
|
231
|
+
readonly lineItemId: string;
|
|
232
|
+
}
|
|
233
|
+
export interface ReturnItemDraft {
|
|
234
|
+
readonly quantity: number;
|
|
235
|
+
readonly lineItemId?: string;
|
|
236
|
+
readonly customLineItemId?: string;
|
|
237
|
+
readonly comment?: string;
|
|
238
|
+
readonly shipmentState: ReturnShipmentState;
|
|
239
|
+
readonly custom?: CustomFieldsDraft;
|
|
240
|
+
}
|
|
241
|
+
export declare type ReturnPaymentState = 'Initial' | 'NonRefundable' | 'NotRefunded' | 'Refunded';
|
|
242
|
+
export declare type ReturnShipmentState = 'Advised' | 'BackInStock' | 'Returned' | 'Unusable';
|
|
243
|
+
export declare type ShipmentState = 'Backorder' | 'Delayed' | 'Partial' | 'Pending' | 'Ready' | 'Shipped';
|
|
244
|
+
export interface ShippingInfoImportDraft {
|
|
245
|
+
readonly shippingMethodName: string;
|
|
246
|
+
readonly price: Money;
|
|
247
|
+
readonly shippingRate: ShippingRateDraft;
|
|
248
|
+
readonly taxRate?: TaxRate;
|
|
249
|
+
readonly taxCategory?: TaxCategoryResourceIdentifier;
|
|
250
|
+
readonly shippingMethod?: ShippingMethodResourceIdentifier;
|
|
251
|
+
readonly deliveries?: Delivery[];
|
|
252
|
+
readonly discountedPrice?: DiscountedLineItemPriceDraft;
|
|
253
|
+
readonly shippingMethodState?: ShippingMethodState;
|
|
254
|
+
}
|
|
255
|
+
export interface SyncInfo {
|
|
256
|
+
readonly channel: ChannelReference;
|
|
257
|
+
readonly externalId?: string;
|
|
258
|
+
readonly syncedAt: string;
|
|
259
|
+
}
|
|
260
|
+
export interface TaxedItemPriceDraft {
|
|
261
|
+
readonly totalNet: Money;
|
|
262
|
+
readonly totalGross: Money;
|
|
263
|
+
}
|
|
264
|
+
export interface TrackingData {
|
|
265
|
+
readonly trackingId?: string;
|
|
266
|
+
readonly carrier?: string;
|
|
267
|
+
readonly provider?: string;
|
|
268
|
+
readonly providerTransaction?: string;
|
|
269
|
+
readonly isReturn?: boolean;
|
|
270
|
+
}
|
|
271
|
+
export interface OrderAddDeliveryAction {
|
|
272
|
+
readonly action: 'addDelivery';
|
|
273
|
+
readonly items?: DeliveryItem[];
|
|
274
|
+
readonly address?: BaseAddress;
|
|
275
|
+
readonly parcels?: ParcelDraft[];
|
|
276
|
+
readonly custom?: CustomFieldsDraft;
|
|
277
|
+
}
|
|
278
|
+
export interface OrderAddItemShippingAddressAction {
|
|
279
|
+
readonly action: 'addItemShippingAddress';
|
|
280
|
+
readonly address: BaseAddress;
|
|
281
|
+
}
|
|
282
|
+
export interface OrderAddParcelToDeliveryAction {
|
|
283
|
+
readonly action: 'addParcelToDelivery';
|
|
284
|
+
readonly deliveryId: string;
|
|
285
|
+
readonly measurements?: ParcelMeasurements;
|
|
286
|
+
readonly trackingData?: TrackingData;
|
|
287
|
+
readonly items?: DeliveryItem[];
|
|
288
|
+
}
|
|
289
|
+
export interface OrderAddPaymentAction {
|
|
290
|
+
readonly action: 'addPayment';
|
|
291
|
+
readonly payment: PaymentResourceIdentifier;
|
|
292
|
+
}
|
|
293
|
+
export interface OrderAddReturnInfoAction {
|
|
294
|
+
readonly action: 'addReturnInfo';
|
|
295
|
+
readonly returnTrackingId?: string;
|
|
296
|
+
readonly items: ReturnItemDraft[];
|
|
297
|
+
readonly returnDate?: string;
|
|
298
|
+
}
|
|
299
|
+
export interface OrderChangeOrderStateAction {
|
|
300
|
+
readonly action: 'changeOrderState';
|
|
301
|
+
readonly orderState: OrderState;
|
|
302
|
+
}
|
|
303
|
+
export interface OrderChangePaymentStateAction {
|
|
304
|
+
readonly action: 'changePaymentState';
|
|
305
|
+
readonly paymentState?: PaymentState;
|
|
306
|
+
}
|
|
307
|
+
export interface OrderChangeShipmentStateAction {
|
|
308
|
+
readonly action: 'changeShipmentState';
|
|
309
|
+
readonly shipmentState?: ShipmentState;
|
|
310
|
+
}
|
|
311
|
+
export interface OrderImportCustomLineItemStateAction {
|
|
312
|
+
readonly action: 'importCustomLineItemState';
|
|
313
|
+
readonly customLineItemId: string;
|
|
314
|
+
readonly state: ItemState[];
|
|
315
|
+
}
|
|
316
|
+
export interface OrderImportLineItemStateAction {
|
|
317
|
+
readonly action: 'importLineItemState';
|
|
318
|
+
readonly lineItemId: string;
|
|
319
|
+
readonly state: ItemState[];
|
|
320
|
+
}
|
|
321
|
+
export interface OrderRemoveDeliveryAction {
|
|
322
|
+
readonly action: 'removeDelivery';
|
|
323
|
+
readonly deliveryId: string;
|
|
324
|
+
}
|
|
325
|
+
export interface OrderRemoveItemShippingAddressAction {
|
|
326
|
+
readonly action: 'removeItemShippingAddress';
|
|
327
|
+
readonly addressKey: string;
|
|
328
|
+
}
|
|
329
|
+
export interface OrderRemoveParcelFromDeliveryAction {
|
|
330
|
+
readonly action: 'removeParcelFromDelivery';
|
|
331
|
+
readonly parcelId: string;
|
|
332
|
+
}
|
|
333
|
+
export interface OrderRemovePaymentAction {
|
|
334
|
+
readonly action: 'removePayment';
|
|
335
|
+
readonly payment: PaymentResourceIdentifier;
|
|
336
|
+
}
|
|
337
|
+
export interface OrderSetBillingAddressAction {
|
|
338
|
+
readonly action: 'setBillingAddress';
|
|
339
|
+
readonly address?: BaseAddress;
|
|
340
|
+
}
|
|
341
|
+
export interface OrderSetBillingAddressCustomFieldAction {
|
|
342
|
+
readonly action: 'setBillingAddressCustomField';
|
|
343
|
+
readonly name: string;
|
|
344
|
+
readonly value?: any;
|
|
345
|
+
}
|
|
346
|
+
export interface OrderSetBillingAddressCustomTypeAction {
|
|
347
|
+
readonly action: 'setBillingAddressCustomType';
|
|
348
|
+
readonly type?: TypeResourceIdentifier;
|
|
349
|
+
readonly fields?: FieldContainer;
|
|
350
|
+
}
|
|
351
|
+
export interface OrderSetCustomFieldAction {
|
|
352
|
+
readonly action: 'setCustomField';
|
|
353
|
+
readonly name: string;
|
|
354
|
+
readonly value?: any;
|
|
355
|
+
}
|
|
356
|
+
export interface OrderSetCustomLineItemCustomFieldAction {
|
|
357
|
+
readonly action: 'setCustomLineItemCustomField';
|
|
358
|
+
readonly customLineItemId: string;
|
|
359
|
+
readonly name: string;
|
|
360
|
+
readonly value?: any;
|
|
361
|
+
}
|
|
362
|
+
export interface OrderSetCustomLineItemCustomTypeAction {
|
|
363
|
+
readonly action: 'setCustomLineItemCustomType';
|
|
364
|
+
readonly customLineItemId: string;
|
|
365
|
+
readonly type?: TypeResourceIdentifier;
|
|
366
|
+
readonly fields?: FieldContainer;
|
|
367
|
+
}
|
|
368
|
+
export interface OrderSetCustomLineItemShippingDetailsAction {
|
|
369
|
+
readonly action: 'setCustomLineItemShippingDetails';
|
|
370
|
+
readonly customLineItemId: string;
|
|
371
|
+
readonly shippingDetails?: ItemShippingDetailsDraft;
|
|
372
|
+
}
|
|
373
|
+
export interface OrderSetCustomTypeAction {
|
|
374
|
+
readonly action: 'setCustomType';
|
|
375
|
+
readonly type?: TypeResourceIdentifier;
|
|
376
|
+
readonly fields?: FieldContainer;
|
|
377
|
+
}
|
|
378
|
+
export interface OrderSetCustomerEmailAction {
|
|
379
|
+
readonly action: 'setCustomerEmail';
|
|
380
|
+
readonly email?: string;
|
|
381
|
+
}
|
|
382
|
+
export interface OrderSetCustomerIdAction {
|
|
383
|
+
readonly action: 'setCustomerId';
|
|
384
|
+
readonly customerId?: string;
|
|
385
|
+
}
|
|
386
|
+
export interface OrderSetDeliveryAddressAction {
|
|
387
|
+
readonly action: 'setDeliveryAddress';
|
|
388
|
+
readonly deliveryId: string;
|
|
389
|
+
readonly address?: BaseAddress;
|
|
390
|
+
}
|
|
391
|
+
export interface OrderSetDeliveryAddressCustomFieldAction {
|
|
392
|
+
readonly action: 'setDeliveryAddressCustomField';
|
|
393
|
+
readonly deliveryId: string;
|
|
394
|
+
readonly name: string;
|
|
395
|
+
readonly value?: any;
|
|
396
|
+
}
|
|
397
|
+
export interface OrderSetDeliveryAddressCustomTypeAction {
|
|
398
|
+
readonly action: 'setDeliveryAddressCustomType';
|
|
399
|
+
readonly deliveryId: string;
|
|
400
|
+
readonly type?: TypeResourceIdentifier;
|
|
401
|
+
readonly fields?: FieldContainer;
|
|
402
|
+
}
|
|
403
|
+
export interface OrderSetDeliveryCustomFieldAction {
|
|
404
|
+
readonly action: 'setDeliveryCustomField';
|
|
405
|
+
readonly deliveryId: string;
|
|
406
|
+
readonly name: string;
|
|
407
|
+
readonly value?: any;
|
|
408
|
+
}
|
|
409
|
+
export interface OrderSetDeliveryCustomTypeAction {
|
|
410
|
+
readonly action: 'setDeliveryCustomType';
|
|
411
|
+
readonly deliveryId: string;
|
|
412
|
+
readonly type?: TypeResourceIdentifier;
|
|
413
|
+
readonly fields?: FieldContainer;
|
|
414
|
+
}
|
|
415
|
+
export interface OrderSetDeliveryItemsAction {
|
|
416
|
+
readonly action: 'setDeliveryItems';
|
|
417
|
+
readonly deliveryId: string;
|
|
418
|
+
readonly items: DeliveryItem[];
|
|
419
|
+
}
|
|
420
|
+
export interface OrderSetItemShippingAddressCustomFieldAction {
|
|
421
|
+
readonly action: 'setItemShippingAddressCustomField';
|
|
422
|
+
readonly addressKey: string;
|
|
423
|
+
readonly name: string;
|
|
424
|
+
readonly value?: any;
|
|
425
|
+
}
|
|
426
|
+
export interface OrderSetItemShippingAddressCustomTypeAction {
|
|
427
|
+
readonly action: 'setItemShippingAddressCustomType';
|
|
428
|
+
readonly addressKey: string;
|
|
429
|
+
readonly type?: TypeResourceIdentifier;
|
|
430
|
+
readonly fields?: FieldContainer;
|
|
431
|
+
}
|
|
432
|
+
export interface OrderSetLineItemCustomFieldAction {
|
|
433
|
+
readonly action: 'setLineItemCustomField';
|
|
434
|
+
readonly lineItemId: string;
|
|
435
|
+
readonly name: string;
|
|
436
|
+
readonly value?: any;
|
|
437
|
+
}
|
|
438
|
+
export interface OrderSetLineItemCustomTypeAction {
|
|
439
|
+
readonly action: 'setLineItemCustomType';
|
|
440
|
+
readonly lineItemId: string;
|
|
441
|
+
readonly type?: TypeResourceIdentifier;
|
|
442
|
+
readonly fields?: FieldContainer;
|
|
443
|
+
}
|
|
444
|
+
export interface OrderSetLineItemShippingDetailsAction {
|
|
445
|
+
readonly action: 'setLineItemShippingDetails';
|
|
446
|
+
readonly lineItemId: string;
|
|
447
|
+
readonly shippingDetails?: ItemShippingDetailsDraft;
|
|
448
|
+
}
|
|
449
|
+
export interface OrderSetLocaleAction {
|
|
450
|
+
readonly action: 'setLocale';
|
|
451
|
+
readonly locale?: string;
|
|
452
|
+
}
|
|
453
|
+
export interface OrderSetOrderNumberAction {
|
|
454
|
+
readonly action: 'setOrderNumber';
|
|
455
|
+
readonly orderNumber?: string;
|
|
456
|
+
}
|
|
457
|
+
export interface OrderSetParcelCustomFieldAction {
|
|
458
|
+
readonly action: 'setParcelCustomField';
|
|
459
|
+
readonly parcelId: string;
|
|
460
|
+
readonly name: string;
|
|
461
|
+
readonly value?: any;
|
|
462
|
+
}
|
|
463
|
+
export interface OrderSetParcelCustomTypeAction {
|
|
464
|
+
readonly action: 'setParcelCustomType';
|
|
465
|
+
readonly parcelId: string;
|
|
466
|
+
readonly type?: TypeResourceIdentifier;
|
|
467
|
+
readonly fields?: FieldContainer;
|
|
468
|
+
}
|
|
469
|
+
export interface OrderSetParcelItemsAction {
|
|
470
|
+
readonly action: 'setParcelItems';
|
|
471
|
+
readonly parcelId: string;
|
|
472
|
+
readonly items: DeliveryItem[];
|
|
473
|
+
}
|
|
474
|
+
export interface OrderSetParcelMeasurementsAction {
|
|
475
|
+
readonly action: 'setParcelMeasurements';
|
|
476
|
+
readonly parcelId: string;
|
|
477
|
+
readonly measurements?: ParcelMeasurements;
|
|
478
|
+
}
|
|
479
|
+
export interface OrderSetParcelTrackingDataAction {
|
|
480
|
+
readonly action: 'setParcelTrackingData';
|
|
481
|
+
readonly parcelId: string;
|
|
482
|
+
readonly trackingData?: TrackingData;
|
|
483
|
+
}
|
|
484
|
+
export interface OrderSetReturnInfoAction {
|
|
485
|
+
readonly action: 'setReturnInfo';
|
|
486
|
+
readonly items?: ReturnInfoDraft[];
|
|
487
|
+
}
|
|
488
|
+
export interface OrderSetReturnItemCustomFieldAction {
|
|
489
|
+
readonly action: 'setReturnItemCustomField';
|
|
490
|
+
readonly returnItemId: string;
|
|
491
|
+
readonly name: string;
|
|
492
|
+
readonly value?: any;
|
|
493
|
+
}
|
|
494
|
+
export interface OrderSetReturnItemCustomTypeAction {
|
|
495
|
+
readonly action: 'setReturnItemCustomType';
|
|
496
|
+
readonly returnItemId: string;
|
|
497
|
+
readonly type?: TypeResourceIdentifier;
|
|
498
|
+
readonly fields?: FieldContainer;
|
|
499
|
+
}
|
|
500
|
+
export interface OrderSetReturnPaymentStateAction {
|
|
501
|
+
readonly action: 'setReturnPaymentState';
|
|
502
|
+
readonly returnItemId: string;
|
|
503
|
+
readonly paymentState: ReturnPaymentState;
|
|
504
|
+
}
|
|
505
|
+
export interface OrderSetReturnShipmentStateAction {
|
|
506
|
+
readonly action: 'setReturnShipmentState';
|
|
507
|
+
readonly returnItemId: string;
|
|
508
|
+
readonly shipmentState: ReturnShipmentState;
|
|
509
|
+
}
|
|
510
|
+
export interface OrderSetShippingAddressAction {
|
|
511
|
+
readonly action: 'setShippingAddress';
|
|
512
|
+
readonly address?: BaseAddress;
|
|
513
|
+
}
|
|
514
|
+
export interface OrderSetShippingAddressCustomFieldAction {
|
|
515
|
+
readonly action: 'setShippingAddressCustomField';
|
|
516
|
+
readonly name: string;
|
|
517
|
+
readonly value?: any;
|
|
518
|
+
}
|
|
519
|
+
export interface OrderSetShippingAddressCustomTypeAction {
|
|
520
|
+
readonly action: 'setShippingAddressCustomType';
|
|
521
|
+
readonly type?: TypeResourceIdentifier;
|
|
522
|
+
readonly fields?: FieldContainer;
|
|
523
|
+
}
|
|
524
|
+
export interface OrderSetStoreAction {
|
|
525
|
+
readonly action: 'setStore';
|
|
526
|
+
readonly store?: StoreResourceIdentifier;
|
|
527
|
+
}
|
|
528
|
+
export interface OrderTransitionCustomLineItemStateAction {
|
|
529
|
+
readonly action: 'transitionCustomLineItemState';
|
|
530
|
+
readonly customLineItemId: string;
|
|
531
|
+
readonly quantity: number;
|
|
532
|
+
readonly fromState: StateResourceIdentifier;
|
|
533
|
+
readonly toState: StateResourceIdentifier;
|
|
534
|
+
readonly actualTransitionDate?: string;
|
|
535
|
+
}
|
|
536
|
+
export interface OrderTransitionLineItemStateAction {
|
|
537
|
+
readonly action: 'transitionLineItemState';
|
|
538
|
+
readonly lineItemId: string;
|
|
539
|
+
readonly quantity: number;
|
|
540
|
+
readonly fromState: StateResourceIdentifier;
|
|
541
|
+
readonly toState: StateResourceIdentifier;
|
|
542
|
+
readonly actualTransitionDate?: string;
|
|
543
|
+
}
|
|
544
|
+
export interface OrderTransitionStateAction {
|
|
545
|
+
readonly action: 'transitionState';
|
|
546
|
+
readonly state: StateResourceIdentifier;
|
|
547
|
+
readonly force?: boolean;
|
|
548
|
+
}
|
|
549
|
+
export interface OrderUpdateItemShippingAddressAction {
|
|
550
|
+
readonly action: 'updateItemShippingAddress';
|
|
551
|
+
readonly address: BaseAddress;
|
|
552
|
+
}
|
|
553
|
+
export interface OrderUpdateSyncInfoAction {
|
|
554
|
+
readonly action: 'updateSyncInfo';
|
|
555
|
+
readonly channel: ChannelResourceIdentifier;
|
|
556
|
+
readonly externalId?: string;
|
|
557
|
+
readonly syncedAt?: string;
|
|
558
|
+
}
|