@epcc-sdk/sdks-cart-checkout-order 0.0.3 → 0.0.5
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/client/sdk.gen.d.ts
CHANGED
|
@@ -1039,6 +1039,9 @@ export declare const getCustomerOrders: <ThrowOnError extends boolean = false>(o
|
|
|
1039
1039
|
*/
|
|
1040
1040
|
export declare const getAnOrder: <ThrowOnError extends boolean = false>(options: Options<GetAnOrderData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").ResponseData & {
|
|
1041
1041
|
data?: import("./types.gen").OrderResponse;
|
|
1042
|
+
included?: {
|
|
1043
|
+
items?: Array<import("./types.gen").OrderItemResponse>;
|
|
1044
|
+
};
|
|
1042
1045
|
}, import("./types.gen").ResponseError, ThrowOnError>;
|
|
1043
1046
|
/**
|
|
1044
1047
|
* Update an Order
|
|
@@ -112,7 +112,36 @@ export type CustomItemResponseObject = CustomItemObjectData & {
|
|
|
112
112
|
* Specifies the ID of the custom cart item
|
|
113
113
|
*/
|
|
114
114
|
id: string;
|
|
115
|
-
|
|
115
|
+
readonly image?: {
|
|
116
|
+
/**
|
|
117
|
+
* The MIME type for the uploaded file.
|
|
118
|
+
*/
|
|
119
|
+
readonly mime_type?: string;
|
|
120
|
+
/**
|
|
121
|
+
* The name of the image file that was uploaded.
|
|
122
|
+
*/
|
|
123
|
+
readonly file_name?: string;
|
|
124
|
+
/**
|
|
125
|
+
* The link to the image.
|
|
126
|
+
*/
|
|
127
|
+
readonly href?: string;
|
|
128
|
+
};
|
|
129
|
+
readonly manage_stock?: boolean;
|
|
130
|
+
unit_price?: ItemPriceData;
|
|
131
|
+
value?: ItemPriceData;
|
|
132
|
+
readonly links?: {
|
|
133
|
+
[key: string]: unknown;
|
|
134
|
+
};
|
|
135
|
+
readonly meta?: {
|
|
136
|
+
display_price?: {
|
|
137
|
+
with_tax?: FormattedPriceData;
|
|
138
|
+
without_tax?: FormattedPriceData;
|
|
139
|
+
tax?: FormattedPriceData;
|
|
140
|
+
discount?: FormattedPriceData;
|
|
141
|
+
without_discount?: FormattedPriceData;
|
|
142
|
+
};
|
|
143
|
+
timestamps?: Timestamps;
|
|
144
|
+
};
|
|
116
145
|
};
|
|
117
146
|
export type PromotionItemResponseObject = PromotionItemObjectData & {
|
|
118
147
|
/**
|
|
@@ -1201,6 +1230,16 @@ export type OrderResponse = {
|
|
|
1201
1230
|
meta?: OrderMeta;
|
|
1202
1231
|
billing_address?: BillingAddress;
|
|
1203
1232
|
contact?: Contact;
|
|
1233
|
+
customer?: {
|
|
1234
|
+
/**
|
|
1235
|
+
* The name of the customer.
|
|
1236
|
+
*/
|
|
1237
|
+
name?: string;
|
|
1238
|
+
/**
|
|
1239
|
+
* The email address of the customer.
|
|
1240
|
+
*/
|
|
1241
|
+
email?: string;
|
|
1242
|
+
};
|
|
1204
1243
|
shipping_address?: ShippingAddress;
|
|
1205
1244
|
relationships?: {
|
|
1206
1245
|
items?: RelationshipArray;
|
|
@@ -2349,7 +2388,20 @@ export type GetAnOrderData = {
|
|
|
2349
2388
|
*/
|
|
2350
2389
|
orderID: string;
|
|
2351
2390
|
};
|
|
2352
|
-
query?:
|
|
2391
|
+
query?: {
|
|
2392
|
+
/**
|
|
2393
|
+
* The number of records to offset the results by.
|
|
2394
|
+
*/
|
|
2395
|
+
"page[offset]"?: BigInt;
|
|
2396
|
+
/**
|
|
2397
|
+
* The number of records per page. The maximum limit is 100.
|
|
2398
|
+
*/
|
|
2399
|
+
"page[limit]"?: BigInt;
|
|
2400
|
+
/**
|
|
2401
|
+
* A comma-separated list of resources to include. See [Characteristics of Include Parameter](/guides/Getting-Started/includes#characteristics-of-include-parameter).
|
|
2402
|
+
*/
|
|
2403
|
+
include?: string;
|
|
2404
|
+
};
|
|
2353
2405
|
url: "/v2/orders/{orderID}";
|
|
2354
2406
|
};
|
|
2355
2407
|
export type GetAnOrderErrors = {
|
|
@@ -2365,6 +2417,9 @@ export type GetAnOrderResponses = {
|
|
|
2365
2417
|
*/
|
|
2366
2418
|
200: ResponseData & {
|
|
2367
2419
|
data?: OrderResponse;
|
|
2420
|
+
included?: {
|
|
2421
|
+
items?: Array<OrderItemResponse>;
|
|
2422
|
+
};
|
|
2368
2423
|
};
|
|
2369
2424
|
};
|
|
2370
2425
|
export type GetAnOrderResponse = GetAnOrderResponses[keyof GetAnOrderResponses];
|