@gofynd/fdk-client-javascript 3.11.0 → 3.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/README.md +1 -1
- package/package.json +1 -1
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +16 -6
- package/sdk/application/Catalog/CatalogApplicationClient.js +71 -12
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +80 -80
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +48 -48
- package/sdk/platform/Cart/CartPlatformModel.d.ts +6 -18
- package/sdk/platform/Cart/CartPlatformModel.js +2 -36
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +14 -48
- package/sdk/platform/Catalog/CatalogPlatformClient.js +85 -338
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +207 -763
- package/sdk/platform/Catalog/CatalogPlatformModel.js +107 -392
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +15 -71
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +14 -60
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +36 -0
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +252 -0
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +34 -1
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +42 -0
- package/sdk/platform/Order/OrderPlatformClient.d.ts +69 -7
- package/sdk/platform/Order/OrderPlatformClient.js +453 -7
- package/sdk/platform/Order/OrderPlatformModel.d.ts +1851 -431
- package/sdk/platform/Order/OrderPlatformModel.js +1171 -448
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +150 -16
- package/sdk/platform/Order/OrderPlatformValidator.js +105 -9
|
@@ -26,6 +26,10 @@ export = OrderPlatformApplicationValidator;
|
|
|
26
26
|
* @property {boolean} [excludeLockedShipments] - Flag to exclude shipments that
|
|
27
27
|
* are currently locked from the results.
|
|
28
28
|
*/
|
|
29
|
+
/**
|
|
30
|
+
* @typedef GetOrderingSourceConfigBySlugParam
|
|
31
|
+
* @property {string} slug
|
|
32
|
+
*/
|
|
29
33
|
/**
|
|
30
34
|
* @typedef GetPlatformShipmentReasonsParam
|
|
31
35
|
* @property {string} action
|
|
@@ -39,24 +43,41 @@ export = OrderPlatformApplicationValidator;
|
|
|
39
43
|
* @property {string} shipmentId - The unique identifier for the shipment
|
|
40
44
|
* @property {number} lineNumber - A unique identifier of the bag's line number.
|
|
41
45
|
*/
|
|
46
|
+
/**
|
|
47
|
+
* @typedef ListOrderingSourcesParam
|
|
48
|
+
* @property {string} [type]
|
|
49
|
+
* @property {number} [pageNo]
|
|
50
|
+
* @property {number} [pageSize]
|
|
51
|
+
*/
|
|
42
52
|
/**
|
|
43
53
|
* @typedef TrackShipmentPlatformParam
|
|
44
54
|
* @property {string} shipmentId - The unique identifier for the shipment
|
|
45
55
|
*/
|
|
56
|
+
/**
|
|
57
|
+
* @typedef UpdateOrderingSourceConfigBySlugParam
|
|
58
|
+
* @property {string} slug
|
|
59
|
+
* @property {OrderPlatformModel.OrderingSourceConfig} body
|
|
60
|
+
*/
|
|
46
61
|
declare class OrderPlatformApplicationValidator {
|
|
47
62
|
/** @returns {GetApplicationShipmentsParam} */
|
|
48
63
|
static getApplicationShipments(): GetApplicationShipmentsParam;
|
|
64
|
+
/** @returns {GetOrderingSourceConfigBySlugParam} */
|
|
65
|
+
static getOrderingSourceConfigBySlug(): GetOrderingSourceConfigBySlugParam;
|
|
49
66
|
/** @returns {GetPlatformShipmentReasonsParam} */
|
|
50
67
|
static getPlatformShipmentReasons(): GetPlatformShipmentReasonsParam;
|
|
51
68
|
/** @returns {GetRulesParam} */
|
|
52
69
|
static getRules(): GetRulesParam;
|
|
53
70
|
/** @returns {GetShipmentBagReasonsParam} */
|
|
54
71
|
static getShipmentBagReasons(): GetShipmentBagReasonsParam;
|
|
72
|
+
/** @returns {ListOrderingSourcesParam} */
|
|
73
|
+
static listOrderingSources(): ListOrderingSourcesParam;
|
|
55
74
|
/** @returns {TrackShipmentPlatformParam} */
|
|
56
75
|
static trackShipmentPlatform(): TrackShipmentPlatformParam;
|
|
76
|
+
/** @returns {UpdateOrderingSourceConfigBySlugParam} */
|
|
77
|
+
static updateOrderingSourceConfigBySlug(): UpdateOrderingSourceConfigBySlugParam;
|
|
57
78
|
}
|
|
58
79
|
declare namespace OrderPlatformApplicationValidator {
|
|
59
|
-
export { GetApplicationShipmentsParam, GetPlatformShipmentReasonsParam, GetRulesParam, GetShipmentBagReasonsParam, TrackShipmentPlatformParam };
|
|
80
|
+
export { GetApplicationShipmentsParam, GetOrderingSourceConfigBySlugParam, GetPlatformShipmentReasonsParam, GetRulesParam, GetShipmentBagReasonsParam, ListOrderingSourcesParam, TrackShipmentPlatformParam, UpdateOrderingSourceConfigBySlugParam };
|
|
60
81
|
}
|
|
61
82
|
type GetApplicationShipmentsParam = {
|
|
62
83
|
/**
|
|
@@ -129,6 +150,9 @@ type GetApplicationShipmentsParam = {
|
|
|
129
150
|
*/
|
|
130
151
|
excludeLockedShipments?: boolean;
|
|
131
152
|
};
|
|
153
|
+
type GetOrderingSourceConfigBySlugParam = {
|
|
154
|
+
slug: string;
|
|
155
|
+
};
|
|
132
156
|
type GetPlatformShipmentReasonsParam = {
|
|
133
157
|
action: string;
|
|
134
158
|
};
|
|
@@ -145,10 +169,19 @@ type GetShipmentBagReasonsParam = {
|
|
|
145
169
|
*/
|
|
146
170
|
lineNumber: number;
|
|
147
171
|
};
|
|
172
|
+
type ListOrderingSourcesParam = {
|
|
173
|
+
type?: string;
|
|
174
|
+
pageNo?: number;
|
|
175
|
+
pageSize?: number;
|
|
176
|
+
};
|
|
148
177
|
type TrackShipmentPlatformParam = {
|
|
149
178
|
/**
|
|
150
179
|
* - The unique identifier for the shipment
|
|
151
180
|
*/
|
|
152
181
|
shipmentId: string;
|
|
153
182
|
};
|
|
183
|
+
type UpdateOrderingSourceConfigBySlugParam = {
|
|
184
|
+
slug: string;
|
|
185
|
+
body: OrderPlatformModel.OrderingSourceConfig;
|
|
186
|
+
};
|
|
154
187
|
import OrderPlatformModel = require("./OrderPlatformModel");
|
|
@@ -30,6 +30,11 @@ const OrderPlatformModel = require("./OrderPlatformModel");
|
|
|
30
30
|
* are currently locked from the results.
|
|
31
31
|
*/
|
|
32
32
|
|
|
33
|
+
/**
|
|
34
|
+
* @typedef GetOrderingSourceConfigBySlugParam
|
|
35
|
+
* @property {string} slug
|
|
36
|
+
*/
|
|
37
|
+
|
|
33
38
|
/**
|
|
34
39
|
* @typedef GetPlatformShipmentReasonsParam
|
|
35
40
|
* @property {string} action
|
|
@@ -46,11 +51,24 @@ const OrderPlatformModel = require("./OrderPlatformModel");
|
|
|
46
51
|
* @property {number} lineNumber - A unique identifier of the bag's line number.
|
|
47
52
|
*/
|
|
48
53
|
|
|
54
|
+
/**
|
|
55
|
+
* @typedef ListOrderingSourcesParam
|
|
56
|
+
* @property {string} [type]
|
|
57
|
+
* @property {number} [pageNo]
|
|
58
|
+
* @property {number} [pageSize]
|
|
59
|
+
*/
|
|
60
|
+
|
|
49
61
|
/**
|
|
50
62
|
* @typedef TrackShipmentPlatformParam
|
|
51
63
|
* @property {string} shipmentId - The unique identifier for the shipment
|
|
52
64
|
*/
|
|
53
65
|
|
|
66
|
+
/**
|
|
67
|
+
* @typedef UpdateOrderingSourceConfigBySlugParam
|
|
68
|
+
* @property {string} slug
|
|
69
|
+
* @property {OrderPlatformModel.OrderingSourceConfig} body
|
|
70
|
+
*/
|
|
71
|
+
|
|
54
72
|
class OrderPlatformApplicationValidator {
|
|
55
73
|
/** @returns {GetApplicationShipmentsParam} */
|
|
56
74
|
static getApplicationShipments() {
|
|
@@ -73,6 +91,13 @@ class OrderPlatformApplicationValidator {
|
|
|
73
91
|
}).required();
|
|
74
92
|
}
|
|
75
93
|
|
|
94
|
+
/** @returns {GetOrderingSourceConfigBySlugParam} */
|
|
95
|
+
static getOrderingSourceConfigBySlug() {
|
|
96
|
+
return Joi.object({
|
|
97
|
+
slug: Joi.string().allow("").required(),
|
|
98
|
+
}).required();
|
|
99
|
+
}
|
|
100
|
+
|
|
76
101
|
/** @returns {GetPlatformShipmentReasonsParam} */
|
|
77
102
|
static getPlatformShipmentReasons() {
|
|
78
103
|
return Joi.object({
|
|
@@ -95,12 +120,29 @@ class OrderPlatformApplicationValidator {
|
|
|
95
120
|
}).required();
|
|
96
121
|
}
|
|
97
122
|
|
|
123
|
+
/** @returns {ListOrderingSourcesParam} */
|
|
124
|
+
static listOrderingSources() {
|
|
125
|
+
return Joi.object({
|
|
126
|
+
type: Joi.string().allow(""),
|
|
127
|
+
pageNo: Joi.number(),
|
|
128
|
+
pageSize: Joi.number(),
|
|
129
|
+
}).required();
|
|
130
|
+
}
|
|
131
|
+
|
|
98
132
|
/** @returns {TrackShipmentPlatformParam} */
|
|
99
133
|
static trackShipmentPlatform() {
|
|
100
134
|
return Joi.object({
|
|
101
135
|
shipmentId: Joi.string().allow("").required(),
|
|
102
136
|
}).required();
|
|
103
137
|
}
|
|
138
|
+
|
|
139
|
+
/** @returns {UpdateOrderingSourceConfigBySlugParam} */
|
|
140
|
+
static updateOrderingSourceConfigBySlug() {
|
|
141
|
+
return Joi.object({
|
|
142
|
+
slug: Joi.string().allow("").required(),
|
|
143
|
+
body: OrderPlatformModel.OrderingSourceConfig().required(),
|
|
144
|
+
}).required();
|
|
145
|
+
}
|
|
104
146
|
}
|
|
105
147
|
|
|
106
148
|
module.exports = OrderPlatformApplicationValidator;
|
|
@@ -56,6 +56,16 @@ declare class Order {
|
|
|
56
56
|
* @description: Used to verify the status of order. It queries error logs, resyncs the shipments if there was an issue with sync etc. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/order/checkOrderStatus/).
|
|
57
57
|
*/
|
|
58
58
|
checkOrderStatus({ body, requestHeaders }?: OrderPlatformValidator.CheckOrderStatusParam, { responseHeaders }?: object): Promise<OrderPlatformModel.OrderStatusResult>;
|
|
59
|
+
/**
|
|
60
|
+
* @param {OrderPlatformValidator.CreateAccountParam} arg - Arg object
|
|
61
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
62
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
63
|
+
* @returns {Promise<OrderPlatformModel.Account>} - Success response
|
|
64
|
+
* @name createAccount
|
|
65
|
+
* @summary: Create channel account
|
|
66
|
+
* @description: Creates a new channel account for the company. Channel accounts represent different sales channels or marketplace integrations (e.g., Shopify, custom marketplaces) through which the company receives and processes orders. Each account is identified by a unique name and can be used to segregate orders from different sources. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/order/createAccount/).
|
|
67
|
+
*/
|
|
68
|
+
createAccount({ body, requestHeaders }?: OrderPlatformValidator.CreateAccountParam, { responseHeaders }?: object): Promise<OrderPlatformModel.Account>;
|
|
59
69
|
/**
|
|
60
70
|
* @param {OrderPlatformValidator.CreateChannelConfigParam} arg - Arg object
|
|
61
71
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -72,12 +82,22 @@ declare class Order {
|
|
|
72
82
|
* @param {OrderPlatformValidator.CreateOrderParam} arg - Arg object
|
|
73
83
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
74
84
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
75
|
-
* @returns {Promise<
|
|
85
|
+
* @returns {Promise<Object>} - Success response
|
|
76
86
|
* @name createOrder
|
|
87
|
+
* @summary: Create Order
|
|
88
|
+
* @description: Creates an order in the OMS. Note: Use the Serviceability API (getShipments) to determine shipments before creating an order. OMS no longer auto-selects fulfillment stores and only creates shipments as provided in the request payload. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/order/createOrder/).
|
|
89
|
+
*/
|
|
90
|
+
createOrder({ xOrderingSource, body, xApplicationId, xExtensionId, requestHeaders }?: OrderPlatformValidator.CreateOrderParam, { responseHeaders }?: object): Promise<any>;
|
|
91
|
+
/**
|
|
92
|
+
* @param {OrderPlatformValidator.CreateOrderDeprecatedParam} arg - Arg object
|
|
93
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
94
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
95
|
+
* @returns {Promise<OrderPlatformModel.CreateOrderResponseSchema>} - Success response
|
|
96
|
+
* @name createOrderDeprecated
|
|
77
97
|
* @summary: Create order
|
|
78
|
-
* @description: Creates an order - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/order/
|
|
98
|
+
* @description: Creates an order - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/order/createOrderDeprecated/).
|
|
79
99
|
*/
|
|
80
|
-
|
|
100
|
+
createOrderDeprecated({ xOrderingSource, body, xApplicationId, xExtensionId, requestHeaders }?: OrderPlatformValidator.CreateOrderDeprecatedParam, { responseHeaders }?: object): Promise<OrderPlatformModel.CreateOrderResponseSchema>;
|
|
81
101
|
/**
|
|
82
102
|
* @param {OrderPlatformValidator.DispatchManifestsParam} arg - Arg object
|
|
83
103
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -185,6 +205,16 @@ declare class Order {
|
|
|
185
205
|
* @description: Endpoint to save and process order manifests. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/order/generateProcessManifest/).
|
|
186
206
|
*/
|
|
187
207
|
generateProcessManifest({ body, requestHeaders }?: OrderPlatformValidator.GenerateProcessManifestParam, { responseHeaders }?: object): Promise<OrderPlatformModel.ManifestResponseSchema>;
|
|
208
|
+
/**
|
|
209
|
+
* @param {OrderPlatformValidator.GetAccountByIdParam} arg - Arg object
|
|
210
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
211
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
212
|
+
* @returns {Promise<OrderPlatformModel.Account>} - Success response
|
|
213
|
+
* @name getAccountById
|
|
214
|
+
* @summary: Get channel account details
|
|
215
|
+
* @description: Retrieves detailed information about a specific channel account using its unique identifier. This endpoint returns the complete account details including the account ID, associated company ID, and the channel account name. Use this to fetch information about a particular sales channel or marketplace integration. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/order/getAccountById/).
|
|
216
|
+
*/
|
|
217
|
+
getAccountById({ channelAccountId, requestHeaders }?: OrderPlatformValidator.GetAccountByIdParam, { responseHeaders }?: object): Promise<OrderPlatformModel.Account>;
|
|
188
218
|
/**
|
|
189
219
|
* @param {OrderPlatformValidator.GetAllowedStateTransitionParam} arg - Arg object
|
|
190
220
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -355,7 +385,7 @@ declare class Order {
|
|
|
355
385
|
* @summary: List orders
|
|
356
386
|
* @description: Get a list of orders based on the filters provided. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/order/getOrders/).
|
|
357
387
|
*/
|
|
358
|
-
getOrders({ lane, searchType, bagStatus, timeToDispatch, paymentMethods, tags, searchValue, fromDate, toDate, startDate, endDate, dpIds, stores, salesChannels, pageNo, pageSize, isPrioritySort, customMeta, myOrders, showCrossCompanyData, customerId, orderType, allowInactive, groupEntity, enforceDateFilter, fulfillmentType, requestHeaders, }?: OrderPlatformValidator.GetOrdersParam, { responseHeaders }?: object): Promise<OrderPlatformModel.OrderListingResponseSchema>;
|
|
388
|
+
getOrders({ lane, searchType, bagStatus, timeToDispatch, paymentMethods, tags, searchValue, fromDate, toDate, startDate, endDate, dpIds, stores, salesChannels, pageNo, pageSize, isPrioritySort, customMeta, myOrders, showCrossCompanyData, customerId, orderType, allowInactive, groupEntity, enforceDateFilter, fulfillmentType, orderingSource, channelAccountId, requestHeaders, }?: OrderPlatformValidator.GetOrdersParam, { responseHeaders }?: object): Promise<OrderPlatformModel.OrderListingResponseSchema>;
|
|
359
389
|
/**
|
|
360
390
|
* @param {Object} arg - Arg object.
|
|
361
391
|
* @param {string} [arg.lane] - Lane refers to a section where orders are
|
|
@@ -405,11 +435,15 @@ declare class Order {
|
|
|
405
435
|
* Listing Orders, This is use when we want to get list of shipments or
|
|
406
436
|
* orders by cross store or cross company or fulfilling Store (by
|
|
407
437
|
* default), this is also depends on the login user accessType and store access
|
|
438
|
+
* @param {string} [arg.orderingSource] - Filter orders by ordering source.
|
|
439
|
+
* Accepts comma-separated values for multiple sources.
|
|
440
|
+
* @param {string} [arg.channelAccountId] - Comma-separated channel account
|
|
441
|
+
* IDs to filter orders by specific channel accounts.
|
|
408
442
|
* @returns {Paginator<OrderPlatformModel.OrderListingResponseSchema>}
|
|
409
443
|
* @summary: List orders
|
|
410
444
|
* @description: Get a list of orders based on the filters provided.
|
|
411
445
|
*/
|
|
412
|
-
getOrdersPaginator({ lane, searchType, bagStatus, timeToDispatch, paymentMethods, tags, searchValue, fromDate, toDate, startDate, endDate, dpIds, stores, salesChannels, pageSize, isPrioritySort, customMeta, myOrders, showCrossCompanyData, customerId, orderType, allowInactive, groupEntity, enforceDateFilter, fulfillmentType, }?: {
|
|
446
|
+
getOrdersPaginator({ lane, searchType, bagStatus, timeToDispatch, paymentMethods, tags, searchValue, fromDate, toDate, startDate, endDate, dpIds, stores, salesChannels, pageSize, isPrioritySort, customMeta, myOrders, showCrossCompanyData, customerId, orderType, allowInactive, groupEntity, enforceDateFilter, fulfillmentType, orderingSource, channelAccountId, }?: {
|
|
413
447
|
lane?: string;
|
|
414
448
|
searchType?: string;
|
|
415
449
|
bagStatus?: string;
|
|
@@ -435,6 +469,8 @@ declare class Order {
|
|
|
435
469
|
groupEntity?: string;
|
|
436
470
|
enforceDateFilter?: boolean;
|
|
437
471
|
fulfillmentType?: string;
|
|
472
|
+
orderingSource?: string;
|
|
473
|
+
channelAccountId?: string;
|
|
438
474
|
}): Paginator<OrderPlatformModel.OrderListingResponseSchema>;
|
|
439
475
|
/**
|
|
440
476
|
* @param {OrderPlatformValidator.GetRoleBasedActionsParam} arg - Arg object
|
|
@@ -491,7 +527,7 @@ declare class Order {
|
|
|
491
527
|
* @summary: List shipments
|
|
492
528
|
* @description: Get a list of shipments based on the filters provided - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/order/getShipments/).
|
|
493
529
|
*/
|
|
494
|
-
getShipments({ lane, bagStatus, statusAssigned, statusOverrideLane, timeToDispatch, searchType, searchValue, fromDate, toDate, startDate, endDate, statusAssignedStartDate, statusAssignedEndDate, dpIds, stores, salesChannels, pageNo, pageSize, fetchActiveShipment, allowInactive, excludeLockedShipments, paymentMethods, channelShipmentId, channelOrderId, customMeta, orderingChannel, companyAffiliateTag, myOrders, platformUserId, sortType, showCrossCompanyData, tags, customerId, orderType, groupEntity, enforceDateFilter, fulfillmentType, requestHeaders, }?: OrderPlatformValidator.GetShipmentsParam, { responseHeaders }?: object): Promise<OrderPlatformModel.ShipmentInternalPlatformViewResponseSchema>;
|
|
530
|
+
getShipments({ lane, bagStatus, statusAssigned, statusOverrideLane, timeToDispatch, searchType, searchValue, fromDate, toDate, startDate, endDate, statusAssignedStartDate, statusAssignedEndDate, dpIds, stores, salesChannels, pageNo, pageSize, fetchActiveShipment, allowInactive, excludeLockedShipments, paymentMethods, channelShipmentId, channelOrderId, customMeta, orderingChannel, companyAffiliateTag, myOrders, platformUserId, sortType, showCrossCompanyData, tags, customerId, orderType, groupEntity, enforceDateFilter, fulfillmentType, orderingSource, channelAccountId, requestHeaders, }?: OrderPlatformValidator.GetShipmentsParam, { responseHeaders }?: object): Promise<OrderPlatformModel.ShipmentInternalPlatformViewResponseSchema>;
|
|
495
531
|
/**
|
|
496
532
|
* @param {Object} arg - Arg object.
|
|
497
533
|
* @param {string} [arg.lane] - Name of lane for which data is to be fetched
|
|
@@ -571,11 +607,15 @@ declare class Order {
|
|
|
571
607
|
* Listing Orders, This is use when we want to get list of shipments or
|
|
572
608
|
* orders by cross store or cross company or fulfilling Store (by
|
|
573
609
|
* default), this is also depends on the login user accessType and store access
|
|
610
|
+
* @param {string} [arg.orderingSource] - Filter orders by ordering source.
|
|
611
|
+
* Accepts comma-separated values for multiple sources.
|
|
612
|
+
* @param {string} [arg.channelAccountId] - Comma-separated channel account
|
|
613
|
+
* IDs to filter orders by specific channel accounts.
|
|
574
614
|
* @returns {Paginator<OrderPlatformModel.ShipmentInternalPlatformViewResponseSchema>}
|
|
575
615
|
* @summary: List shipments
|
|
576
616
|
* @description: Get a list of shipments based on the filters provided
|
|
577
617
|
*/
|
|
578
|
-
getShipmentsPaginator({ lane, bagStatus, statusAssigned, statusOverrideLane, timeToDispatch, searchType, searchValue, fromDate, toDate, startDate, endDate, statusAssignedStartDate, statusAssignedEndDate, dpIds, stores, salesChannels, pageSize, fetchActiveShipment, allowInactive, excludeLockedShipments, paymentMethods, channelShipmentId, channelOrderId, customMeta, orderingChannel, companyAffiliateTag, myOrders, platformUserId, sortType, showCrossCompanyData, tags, customerId, orderType, groupEntity, enforceDateFilter, fulfillmentType, }?: {
|
|
618
|
+
getShipmentsPaginator({ lane, bagStatus, statusAssigned, statusOverrideLane, timeToDispatch, searchType, searchValue, fromDate, toDate, startDate, endDate, statusAssignedStartDate, statusAssignedEndDate, dpIds, stores, salesChannels, pageSize, fetchActiveShipment, allowInactive, excludeLockedShipments, paymentMethods, channelShipmentId, channelOrderId, customMeta, orderingChannel, companyAffiliateTag, myOrders, platformUserId, sortType, showCrossCompanyData, tags, customerId, orderType, groupEntity, enforceDateFilter, fulfillmentType, orderingSource, channelAccountId, }?: {
|
|
579
619
|
lane?: string;
|
|
580
620
|
bagStatus?: string;
|
|
581
621
|
statusAssigned?: string;
|
|
@@ -612,6 +652,8 @@ declare class Order {
|
|
|
612
652
|
groupEntity?: string;
|
|
613
653
|
enforceDateFilter?: boolean;
|
|
614
654
|
fulfillmentType?: string;
|
|
655
|
+
orderingSource?: string;
|
|
656
|
+
channelAccountId?: string;
|
|
615
657
|
}): Paginator<OrderPlatformModel.ShipmentInternalPlatformViewResponseSchema>;
|
|
616
658
|
/**
|
|
617
659
|
* @param {OrderPlatformValidator.GetStateManagerConfigParam} arg - Arg object
|
|
@@ -678,6 +720,16 @@ declare class Order {
|
|
|
678
720
|
* @description: Fetches details of the job for the provided batch Id - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/order/jobDetails/).
|
|
679
721
|
*/
|
|
680
722
|
jobDetails({ batchId, requestHeaders }?: OrderPlatformValidator.JobDetailsParam, { responseHeaders }?: object): Promise<OrderPlatformModel.JobDetailsResponseSchema>;
|
|
723
|
+
/**
|
|
724
|
+
* @param {OrderPlatformValidator.ListAccountsParam} arg - Arg object
|
|
725
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
726
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
727
|
+
* @returns {Promise<OrderPlatformModel.AccountsList>} - Success response
|
|
728
|
+
* @name listAccounts
|
|
729
|
+
* @summary: Get channel accounts list
|
|
730
|
+
* @description: Retrieves a paginated list of all channel accounts configured for the company. Channel accounts represent different sales channels or marketplace integrations from which orders are received. This endpoint returns account details including the account ID, company ID, and channel account name for each configured channel. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/order/listAccounts/).
|
|
731
|
+
*/
|
|
732
|
+
listAccounts({ page, size, requestHeaders }?: OrderPlatformValidator.ListAccountsParam, { responseHeaders }?: object): Promise<OrderPlatformModel.AccountsList>;
|
|
681
733
|
/**
|
|
682
734
|
* @param {OrderPlatformValidator.OrderUpdateParam} arg - Arg object
|
|
683
735
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -743,6 +795,16 @@ declare class Order {
|
|
|
743
795
|
* @description: Retrieve courier partner tracking details for a given shipment Id or AWB number - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/order/trackShipment/).
|
|
744
796
|
*/
|
|
745
797
|
trackShipment({ shipmentId, awb, pageNo, pageSize, requestHeaders }?: OrderPlatformValidator.TrackShipmentParam, { responseHeaders }?: object): Promise<OrderPlatformModel.CourierPartnerTrackingResponseSchema>;
|
|
798
|
+
/**
|
|
799
|
+
* @param {OrderPlatformValidator.UpdateAccountParam} arg - Arg object
|
|
800
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
801
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
802
|
+
* @returns {Promise<OrderPlatformModel.Account>} - Success response
|
|
803
|
+
* @name updateAccount
|
|
804
|
+
* @summary: Update account
|
|
805
|
+
* @description: Updates the details of a specific channel account. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/order/updateAccount/).
|
|
806
|
+
*/
|
|
807
|
+
updateAccount({ channelAccountId, body, requestHeaders }?: OrderPlatformValidator.UpdateAccountParam, { responseHeaders }?: object): Promise<OrderPlatformModel.Account>;
|
|
746
808
|
/**
|
|
747
809
|
* @param {OrderPlatformValidator.UpdateAddressParam} arg - Arg object
|
|
748
810
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|