@edgebound/bigcommerce 0.5.47 → 0.5.48
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.
|
@@ -21,9 +21,9 @@ let BigCommerceB2BOrdersService = class BigCommerceB2BOrdersService {
|
|
|
21
21
|
this.fetcher = fetcher;
|
|
22
22
|
}
|
|
23
23
|
updateOrderCustomFields(input) {
|
|
24
|
-
return (0, validate_1.validateInputData)(order_custom_fields_schema_1.UpdateB2BOrderCustomFieldsSchema, input).asyncAndThen(({
|
|
24
|
+
return (0, validate_1.validateInputData)(order_custom_fields_schema_1.UpdateB2BOrderCustomFieldsSchema, input).asyncAndThen(({ bcOrderId, data }) => this.fetcher.fetch({
|
|
25
25
|
isB2B: true,
|
|
26
|
-
path: `orders/${
|
|
26
|
+
path: `orders/${bcOrderId}`,
|
|
27
27
|
method: 'PUT',
|
|
28
28
|
resultSchema: order_custom_fields_schema_1.UpdateB2BOrderCustomFieldsResponseSchema,
|
|
29
29
|
body: data,
|
|
@@ -6,7 +6,7 @@ export declare const UpdateB2BOrderCustomFieldsSchema: z.ZodObject<{
|
|
|
6
6
|
fieldValue: z.ZodString;
|
|
7
7
|
}, z.core.$strip>>;
|
|
8
8
|
}, z.core.$strip>;
|
|
9
|
-
|
|
9
|
+
bcOrderId: z.ZodInt;
|
|
10
10
|
}, z.core.$strip>;
|
|
11
11
|
export declare const UpdateB2BOrderCustomFieldsResponseSchema: z.ZodObject<{
|
|
12
12
|
code: z.ZodInt;
|