@gofynd/fdk-client-javascript 1.4.16-beta.3 → 1.4.16-beta.4
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/ApplicationClient.d.ts +0 -2
- package/sdk/application/ApplicationClient.js +0 -2
- package/sdk/application/Cart/CartApplicationClient.d.ts +48 -68
- package/sdk/application/Cart/CartApplicationClient.js +27 -117
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +58 -59
- package/sdk/application/Catalog/CatalogApplicationClient.js +29 -30
- package/sdk/application/Common/CommonApplicationClient.d.ts +2 -2
- package/sdk/application/Common/CommonApplicationClient.js +1 -1
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +20 -20
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +10 -10
- package/sdk/application/Content/ContentApplicationClient.d.ts +30 -51
- package/sdk/application/Content/ContentApplicationClient.js +56 -161
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +11 -9
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +10 -7
- package/sdk/application/Lead/LeadApplicationClient.d.ts +2 -2
- package/sdk/application/Lead/LeadApplicationClient.js +1 -1
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +15 -35
- package/sdk/application/Logistic/LogisticApplicationClient.js +8 -101
- package/sdk/application/Order/OrderApplicationClient.d.ts +12 -22
- package/sdk/application/Order/OrderApplicationClient.js +8 -56
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +87 -87
- package/sdk/application/Payment/PaymentApplicationClient.js +46 -46
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +13 -13
- package/sdk/application/Rewards/RewardsApplicationClient.js +7 -7
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +2 -2
- package/sdk/application/Theme/ThemeApplicationClient.js +2 -4
- package/sdk/application/User/UserApplicationClient.d.ts +10 -10
- package/sdk/application/User/UserApplicationClient.js +6 -6
- package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -4
- package/sdk/application/Webhook/WebhookApplicationClient.js +3 -3
- package/sdk/common/Utility.js +6 -3
- package/sdk/common/utils.d.ts +0 -1
- package/sdk/common/utils.js +0 -14
- package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +12 -86
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +24 -582
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +21 -116
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +16 -121
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +1 -8
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +4 -51
- package/sdk/partner/Lead/LeadPartnerClient.d.ts +2 -2
- package/sdk/partner/Lead/LeadPartnerClient.js +2 -2
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +5 -5
- package/sdk/partner/Lead/LeadPartnerModel.js +15 -15
- package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +20 -126
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +20 -970
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +167 -1200
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +160 -571
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +0 -10
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +7 -121
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +10 -8
- package/sdk/partner/Theme/ThemePartnerClient.js +16 -14
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +37 -96
- package/sdk/partner/Theme/ThemePartnerModel.js +36 -90
- package/sdk/partner/Theme/ThemePartnerValidator.js +4 -4
- package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +18 -28
- package/sdk/partner/Webhook/WebhookPartnerClient.js +18 -103
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +179 -612
- package/sdk/partner/Webhook/WebhookPartnerModel.js +150 -253
- package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +0 -1
- package/sdk/partner/Webhook/WebhookPartnerValidator.js +3 -11
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +4 -5
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +8 -14
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +9 -59
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +4 -40
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +32 -2
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +243 -3
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +130 -11
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +152 -12
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +39 -1
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +35 -0
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +12 -12
- package/sdk/platform/Billing/BillingPlatformClient.js +15 -15
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +388 -443
- package/sdk/platform/Billing/BillingPlatformModel.js +263 -280
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +18 -16
- package/sdk/platform/Billing/BillingPlatformValidator.js +9 -8
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +103 -134
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +115 -419
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +65 -121
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +44 -109
- package/sdk/platform/Cart/CartPlatformModel.d.ts +1294 -5068
- package/sdk/platform/Cart/CartPlatformModel.js +1217 -1992
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +183 -209
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +400 -457
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +142 -185
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +78 -96
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +117 -154
- package/sdk/platform/Catalog/CatalogPlatformClient.js +172 -292
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +1647 -6389
- package/sdk/platform/Catalog/CatalogPlatformModel.js +1681 -3222
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +31 -72
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +24 -50
- package/sdk/platform/Common/CommonPlatformClient.d.ts +2 -3
- package/sdk/platform/Common/CommonPlatformClient.js +2 -3
- package/sdk/platform/Common/CommonPlatformModel.d.ts +9 -9
- package/sdk/platform/Common/CommonPlatformModel.js +6 -6
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +17 -16
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +17 -16
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +8 -8
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +8 -8
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +33 -43
- package/sdk/platform/Communication/CommunicationPlatformModel.js +34 -38
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +42 -46
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +43 -47
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +223 -223
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +212 -210
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +12 -12
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +12 -12
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +33 -46
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +54 -67
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +18 -18
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +18 -18
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +24 -45
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +30 -134
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +131 -283
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +97 -219
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +9 -37
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +8 -27
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +141 -204
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +475 -1073
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +141 -253
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +130 -256
- package/sdk/platform/Content/ContentPlatformClient.d.ts +106 -142
- package/sdk/platform/Content/ContentPlatformClient.js +336 -523
- package/sdk/platform/Content/ContentPlatformModel.d.ts +403 -1375
- package/sdk/platform/Content/ContentPlatformModel.js +394 -631
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +117 -168
- package/sdk/platform/Content/ContentPlatformValidator.js +108 -162
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +12 -14
- package/sdk/platform/Discount/DiscountPlatformClient.js +12 -14
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +13 -13
- package/sdk/platform/Discount/DiscountPlatformModel.js +12 -12
- package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +2 -2
- package/sdk/platform/Discount/DiscountPlatformValidator.js +2 -2
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +39 -95
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +63 -462
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +15 -62
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +13 -75
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +22 -20
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +24 -21
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +116 -370
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +104 -313
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +320 -0
- package/sdk/platform/Finance/FinancePlatformClient.js +2333 -0
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +2890 -0
- package/sdk/platform/Finance/FinancePlatformModel.js +2148 -0
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +284 -0
- package/sdk/platform/Finance/FinancePlatformValidator.js +354 -0
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +2 -2
- package/sdk/platform/Lead/LeadPlatformClient.js +2 -2
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +5 -5
- package/sdk/platform/Lead/LeadPlatformModel.js +16 -16
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +6 -17
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +7 -85
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +24 -95
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +19 -39
- package/sdk/platform/Order/OrderPlatformClient.d.ts +96 -153
- package/sdk/platform/Order/OrderPlatformClient.js +198 -416
- package/sdk/platform/Order/OrderPlatformModel.d.ts +1286 -7619
- package/sdk/platform/Order/OrderPlatformModel.js +1265 -3922
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +109 -270
- package/sdk/platform/Order/OrderPlatformValidator.js +77 -135
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +4 -6
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +7 -9
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +9 -9
- package/sdk/platform/Partner/PartnerPlatformModel.js +8 -8
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +105 -93
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +141 -129
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +48 -48
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +48 -48
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +20 -20
- package/sdk/platform/Payment/PaymentPlatformClient.js +20 -20
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +319 -333
- package/sdk/platform/Payment/PaymentPlatformModel.js +278 -288
- package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +8 -8
- package/sdk/platform/Payment/PaymentPlatformValidator.js +8 -8
- package/sdk/platform/PlatformClient.d.ts +2 -0
- package/sdk/platform/PlatformClient.js +4 -0
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +2 -2
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +9 -9
- package/sdk/platform/Rewards/RewardsPlatformModel.js +8 -8
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +36 -46
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +41 -132
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +17 -46
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +14 -34
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +46 -40
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +68 -62
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +612 -1845
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +554 -886
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +49 -45
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +30 -28
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +5 -5
- package/sdk/platform/Share/SharePlatformApplicationClient.js +9 -9
- package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +6 -3
- package/sdk/platform/Share/SharePlatformApplicationValidator.js +2 -2
- package/sdk/platform/Share/SharePlatformModel.d.ts +7 -46
- package/sdk/platform/Share/SharePlatformModel.js +6 -31
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +3 -3
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +4 -8
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +0 -5
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +0 -2
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +11 -37
- package/sdk/platform/Theme/ThemePlatformModel.js +15 -33
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +12 -12
- package/sdk/platform/User/UserPlatformApplicationClient.js +12 -12
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +2 -2
- package/sdk/platform/User/UserPlatformApplicationValidator.js +2 -2
- package/sdk/platform/User/UserPlatformModel.d.ts +21 -21
- package/sdk/platform/User/UserPlatformModel.js +23 -23
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +78 -25
- package/sdk/platform/Webhook/WebhookPlatformClient.js +470 -75
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +427 -720
- package/sdk/platform/Webhook/WebhookPlatformModel.js +386 -410
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +55 -10
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +72 -12
- package/sdk/platform/index.d.ts +1 -0
- package/sdk/platform/index.js +2 -0
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +2 -3
- package/sdk/public/Configuration/ConfigurationPublicClient.js +5 -6
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +9 -9
- package/sdk/public/Configuration/ConfigurationPublicModel.js +6 -6
- package/sdk/public/Content/ContentPublicClient.d.ts +2 -112
- package/sdk/public/Content/ContentPublicClient.js +6 -810
- package/sdk/public/Content/ContentPublicModel.d.ts +3 -549
- package/sdk/public/Content/ContentPublicModel.js +3 -649
- package/sdk/public/Content/ContentPublicValidator.d.ts +3 -69
- package/sdk/public/Content/ContentPublicValidator.js +2 -88
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
- package/sdk/public/Webhook/WebhookPublicClient.js +8 -8
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +21 -21
- package/sdk/public/Webhook/WebhookPublicModel.js +15 -15
- package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
- package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
- package/sdk/application/Finance/FinanceApplicationClient.d.ts +0 -29
- package/sdk/application/Finance/FinanceApplicationClient.js +0 -111
|
@@ -18,8 +18,7 @@ class Order {
|
|
|
18
18
|
* @param {OrderPlatformValidator.AddStateManagerConfigParam} arg - Arg object
|
|
19
19
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
20
20
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
21
|
-
* @returns {Promise<OrderPlatformModel.
|
|
22
|
-
* Success response
|
|
21
|
+
* @returns {Promise<OrderPlatformModel.ConfigUpdatedResponse>} - Success response
|
|
23
22
|
* @name addStateManagerConfig
|
|
24
23
|
* @summary: Allows esm config updation
|
|
25
24
|
* @description: Update ESM config - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/addStateManagerConfig/).
|
|
@@ -75,10 +74,10 @@ class Order {
|
|
|
75
74
|
|
|
76
75
|
const {
|
|
77
76
|
error: res_error,
|
|
78
|
-
} = OrderPlatformModel.
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
);
|
|
77
|
+
} = OrderPlatformModel.ConfigUpdatedResponse().validate(responseData, {
|
|
78
|
+
abortEarly: false,
|
|
79
|
+
allowUnknown: true,
|
|
80
|
+
});
|
|
82
81
|
|
|
83
82
|
if (res_error) {
|
|
84
83
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -98,8 +97,7 @@ class Order {
|
|
|
98
97
|
* @param {OrderPlatformValidator.AttachOrderUserParam} arg - Arg object
|
|
99
98
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
100
99
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
101
|
-
* @returns {Promise<OrderPlatformModel.
|
|
102
|
-
* Success response
|
|
100
|
+
* @returns {Promise<OrderPlatformModel.AttachOrderUserResponse>} - Success response
|
|
103
101
|
* @name attachOrderUser
|
|
104
102
|
* @summary: Attach order to a user
|
|
105
103
|
* @description: Attach an anonymous order to a customer based on OTP verification - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/attachOrderUser/).
|
|
@@ -155,10 +153,10 @@ class Order {
|
|
|
155
153
|
|
|
156
154
|
const {
|
|
157
155
|
error: res_error,
|
|
158
|
-
} = OrderPlatformModel.
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
);
|
|
156
|
+
} = OrderPlatformModel.AttachOrderUserResponse().validate(responseData, {
|
|
157
|
+
abortEarly: false,
|
|
158
|
+
allowUnknown: true,
|
|
159
|
+
});
|
|
162
160
|
|
|
163
161
|
if (res_error) {
|
|
164
162
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -178,7 +176,7 @@ class Order {
|
|
|
178
176
|
* @param {OrderPlatformValidator.BulkListingParam} arg - Arg object
|
|
179
177
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
180
178
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
181
|
-
* @returns {Promise<OrderPlatformModel.
|
|
179
|
+
* @returns {Promise<OrderPlatformModel.BulkListingResponse>} - Success response
|
|
182
180
|
* @name bulkListing
|
|
183
181
|
* @summary: Lists bulk operations
|
|
184
182
|
* @description: Get list of bulk operation that is initiated and completed as per the filters provided - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/bulkListing/).
|
|
@@ -260,7 +258,7 @@ class Order {
|
|
|
260
258
|
|
|
261
259
|
const {
|
|
262
260
|
error: res_error,
|
|
263
|
-
} = OrderPlatformModel.
|
|
261
|
+
} = OrderPlatformModel.BulkListingResponse().validate(responseData, {
|
|
264
262
|
abortEarly: false,
|
|
265
263
|
allowUnknown: true,
|
|
266
264
|
});
|
|
@@ -283,9 +281,8 @@ class Order {
|
|
|
283
281
|
* @param {OrderPlatformValidator.BulkStateTransistionParam} arg - Arg object
|
|
284
282
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
285
283
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
286
|
-
* @returns {Promise<OrderPlatformModel.
|
|
287
|
-
*
|
|
288
|
-
*
|
|
284
|
+
* @returns {Promise<OrderPlatformModel.BulkStateTransistionResponse>} -
|
|
285
|
+
* Success response
|
|
289
286
|
* @name bulkStateTransistion
|
|
290
287
|
* @summary: Upload bulk state transitions file
|
|
291
288
|
* @description: Performs state transisiton in bulk using the CSV or excel file for the given shipments. The bulk transition CSV or excel template can be downloaded using the seller template download method. Current supported format is excel and CSV. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/bulkStateTransistion/).
|
|
@@ -341,7 +338,7 @@ class Order {
|
|
|
341
338
|
|
|
342
339
|
const {
|
|
343
340
|
error: res_error,
|
|
344
|
-
} = OrderPlatformModel.
|
|
341
|
+
} = OrderPlatformModel.BulkStateTransistionResponse().validate(
|
|
345
342
|
responseData,
|
|
346
343
|
{ abortEarly: false, allowUnknown: true }
|
|
347
344
|
);
|
|
@@ -439,92 +436,11 @@ class Order {
|
|
|
439
436
|
return response;
|
|
440
437
|
}
|
|
441
438
|
|
|
442
|
-
/**
|
|
443
|
-
* @param {OrderPlatformValidator.CreateChannelConfigParam} arg - Arg object
|
|
444
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
445
|
-
* @param {import("../PlatformAPIClient").Options} - Options
|
|
446
|
-
* @returns {Promise<OrderPlatformModel.CreateChannelConfigResponseSchema>}
|
|
447
|
-
* - Success response
|
|
448
|
-
*
|
|
449
|
-
* @name createChannelConfig
|
|
450
|
-
* @summary: Create channel configuration
|
|
451
|
-
* @description: Set up configuration for a channel specific to orders which has implications over how the order fulfilment happens in a channel - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/createChannelConfig/).
|
|
452
|
-
*/
|
|
453
|
-
async createChannelConfig(
|
|
454
|
-
{ body, requestHeaders } = { requestHeaders: {} },
|
|
455
|
-
{ responseHeaders } = { responseHeaders: false }
|
|
456
|
-
) {
|
|
457
|
-
const { error } = OrderPlatformValidator.createChannelConfig().validate(
|
|
458
|
-
{
|
|
459
|
-
body,
|
|
460
|
-
},
|
|
461
|
-
{ abortEarly: false, allowUnknown: true }
|
|
462
|
-
);
|
|
463
|
-
if (error) {
|
|
464
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
465
|
-
}
|
|
466
|
-
|
|
467
|
-
// Showing warrnings if extra unknown parameters are found
|
|
468
|
-
const {
|
|
469
|
-
error: warrning,
|
|
470
|
-
} = OrderPlatformValidator.createChannelConfig().validate(
|
|
471
|
-
{
|
|
472
|
-
body,
|
|
473
|
-
},
|
|
474
|
-
{ abortEarly: false, allowUnknown: false }
|
|
475
|
-
);
|
|
476
|
-
if (warrning) {
|
|
477
|
-
Logger({
|
|
478
|
-
level: "WARN",
|
|
479
|
-
message: `Parameter Validation warrnings for platform > Order > createChannelConfig \n ${warrning}`,
|
|
480
|
-
});
|
|
481
|
-
}
|
|
482
|
-
|
|
483
|
-
const query_params = {};
|
|
484
|
-
|
|
485
|
-
const xHeaders = {};
|
|
486
|
-
|
|
487
|
-
const response = await PlatformAPIClient.execute(
|
|
488
|
-
this.config,
|
|
489
|
-
"post",
|
|
490
|
-
`/service/platform/order-manage/v1.0/company/${this.config.companyId}/order-config`,
|
|
491
|
-
query_params,
|
|
492
|
-
body,
|
|
493
|
-
{ ...xHeaders, ...requestHeaders },
|
|
494
|
-
{ responseHeaders }
|
|
495
|
-
);
|
|
496
|
-
|
|
497
|
-
let responseData = response;
|
|
498
|
-
if (responseHeaders) {
|
|
499
|
-
responseData = response[0];
|
|
500
|
-
}
|
|
501
|
-
|
|
502
|
-
const {
|
|
503
|
-
error: res_error,
|
|
504
|
-
} = OrderPlatformModel.CreateChannelConfigResponseSchema().validate(
|
|
505
|
-
responseData,
|
|
506
|
-
{ abortEarly: false, allowUnknown: true }
|
|
507
|
-
);
|
|
508
|
-
|
|
509
|
-
if (res_error) {
|
|
510
|
-
if (this.config.options.strictResponseCheck === true) {
|
|
511
|
-
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
512
|
-
} else {
|
|
513
|
-
Logger({
|
|
514
|
-
level: "WARN",
|
|
515
|
-
message: `Response Validation Warnings for platform > Order > createChannelConfig \n ${res_error}`,
|
|
516
|
-
});
|
|
517
|
-
}
|
|
518
|
-
}
|
|
519
|
-
|
|
520
|
-
return response;
|
|
521
|
-
}
|
|
522
|
-
|
|
523
439
|
/**
|
|
524
440
|
* @param {OrderPlatformValidator.CreateOrderParam} arg - Arg object
|
|
525
441
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
526
442
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
527
|
-
* @returns {Promise<OrderPlatformModel.
|
|
443
|
+
* @returns {Promise<OrderPlatformModel.CreateOrderResponse>} - Success response
|
|
528
444
|
* @name createOrder
|
|
529
445
|
* @summary: Create order
|
|
530
446
|
* @description: Creates an order - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/createOrder/).
|
|
@@ -578,7 +494,7 @@ class Order {
|
|
|
578
494
|
|
|
579
495
|
const {
|
|
580
496
|
error: res_error,
|
|
581
|
-
} = OrderPlatformModel.
|
|
497
|
+
} = OrderPlatformModel.CreateOrderResponse().validate(responseData, {
|
|
582
498
|
abortEarly: false,
|
|
583
499
|
allowUnknown: true,
|
|
584
500
|
});
|
|
@@ -601,7 +517,7 @@ class Order {
|
|
|
601
517
|
* @param {OrderPlatformValidator.DispatchManifestsParam} arg - Arg object
|
|
602
518
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
603
519
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
604
|
-
* @returns {Promise<OrderPlatformModel.
|
|
520
|
+
* @returns {Promise<OrderPlatformModel.SuccessResponse>} - Success response
|
|
605
521
|
* @name dispatchManifests
|
|
606
522
|
* @summary: Dispatch manifest
|
|
607
523
|
* @description: Updates the status of the manifest to processed and change the status of the shipments in the manifest to dispatch status - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/dispatchManifests/).
|
|
@@ -657,7 +573,7 @@ class Order {
|
|
|
657
573
|
|
|
658
574
|
const {
|
|
659
575
|
error: res_error,
|
|
660
|
-
} = OrderPlatformModel.
|
|
576
|
+
} = OrderPlatformModel.SuccessResponse().validate(responseData, {
|
|
661
577
|
abortEarly: false,
|
|
662
578
|
allowUnknown: true,
|
|
663
579
|
});
|
|
@@ -680,7 +596,7 @@ class Order {
|
|
|
680
596
|
* @param {OrderPlatformValidator.DownloadBulkActionTemplateParam} arg - Arg object
|
|
681
597
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
682
598
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
683
|
-
* @returns {Promise<OrderPlatformModel.
|
|
599
|
+
* @returns {Promise<OrderPlatformModel.FileResponse>} - Success response
|
|
684
600
|
* @name downloadBulkActionTemplate
|
|
685
601
|
* @summary: Download bulk template
|
|
686
602
|
* @description: Download bulk seller templates which can be used to perform operations in bulk - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/downloadBulkActionTemplate/).
|
|
@@ -739,7 +655,7 @@ class Order {
|
|
|
739
655
|
|
|
740
656
|
const {
|
|
741
657
|
error: res_error,
|
|
742
|
-
} = OrderPlatformModel.
|
|
658
|
+
} = OrderPlatformModel.FileResponse().validate(responseData, {
|
|
743
659
|
abortEarly: false,
|
|
744
660
|
allowUnknown: true,
|
|
745
661
|
});
|
|
@@ -762,9 +678,8 @@ class Order {
|
|
|
762
678
|
* @param {OrderPlatformValidator.DownloadLanesReportParam} arg - Arg object
|
|
763
679
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
764
680
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
765
|
-
* @returns {Promise<OrderPlatformModel.
|
|
766
|
-
*
|
|
767
|
-
*
|
|
681
|
+
* @returns {Promise<OrderPlatformModel.BulkReportsDownloadResponse>} -
|
|
682
|
+
* Success response
|
|
768
683
|
* @name downloadLanesReport
|
|
769
684
|
* @summary: Download Lane report
|
|
770
685
|
* @description: Downloads shipments/orders present in the provided lane - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/downloadLanesReport/).
|
|
@@ -820,7 +735,7 @@ class Order {
|
|
|
820
735
|
|
|
821
736
|
const {
|
|
822
737
|
error: res_error,
|
|
823
|
-
} = OrderPlatformModel.
|
|
738
|
+
} = OrderPlatformModel.BulkReportsDownloadResponse().validate(
|
|
824
739
|
responseData,
|
|
825
740
|
{ abortEarly: false, allowUnknown: true }
|
|
826
741
|
);
|
|
@@ -843,8 +758,7 @@ class Order {
|
|
|
843
758
|
* @param {OrderPlatformValidator.EInvoiceRetryParam} arg - Arg object
|
|
844
759
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
845
760
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
846
|
-
* @returns {Promise<OrderPlatformModel.
|
|
847
|
-
* Success response
|
|
761
|
+
* @returns {Promise<OrderPlatformModel.EInvoiceRetryResponse>} - Success response
|
|
848
762
|
* @name eInvoiceRetry
|
|
849
763
|
* @summary: Retry E-invoice
|
|
850
764
|
* @description: Reattempt the generation of an E-invoice - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/eInvoiceRetry/).
|
|
@@ -898,10 +812,10 @@ class Order {
|
|
|
898
812
|
|
|
899
813
|
const {
|
|
900
814
|
error: res_error,
|
|
901
|
-
} = OrderPlatformModel.
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
);
|
|
815
|
+
} = OrderPlatformModel.EInvoiceRetryResponse().validate(responseData, {
|
|
816
|
+
abortEarly: false,
|
|
817
|
+
allowUnknown: true,
|
|
818
|
+
});
|
|
905
819
|
|
|
906
820
|
if (res_error) {
|
|
907
821
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -1179,8 +1093,7 @@ class Order {
|
|
|
1179
1093
|
* @param {OrderPlatformValidator.GenerateInvoiceIDParam} arg - Arg object
|
|
1180
1094
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1181
1095
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1182
|
-
* @returns {Promise<OrderPlatformModel.
|
|
1183
|
-
* Success response
|
|
1096
|
+
* @returns {Promise<OrderPlatformModel.GenerateInvoiceIDResponse>} - Success response
|
|
1184
1097
|
* @name generateInvoiceID
|
|
1185
1098
|
* @summary: Generate and attach invoice Id
|
|
1186
1099
|
* @description: Generate and attach Invoice Ids against shipments. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/generateInvoiceID/).
|
|
@@ -1238,10 +1151,10 @@ class Order {
|
|
|
1238
1151
|
|
|
1239
1152
|
const {
|
|
1240
1153
|
error: res_error,
|
|
1241
|
-
} = OrderPlatformModel.
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
);
|
|
1154
|
+
} = OrderPlatformModel.GenerateInvoiceIDResponse().validate(responseData, {
|
|
1155
|
+
abortEarly: false,
|
|
1156
|
+
allowUnknown: true,
|
|
1157
|
+
});
|
|
1245
1158
|
|
|
1246
1159
|
if (res_error) {
|
|
1247
1160
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -1261,9 +1174,8 @@ class Order {
|
|
|
1261
1174
|
* @param {OrderPlatformValidator.GeneratePOSReceiptByOrderIdParam} arg - Arg object
|
|
1262
1175
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1263
1176
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1264
|
-
* @returns {Promise<OrderPlatformModel.
|
|
1265
|
-
*
|
|
1266
|
-
*
|
|
1177
|
+
* @returns {Promise<OrderPlatformModel.GeneratePosOrderReceiptResponse>} -
|
|
1178
|
+
* Success response
|
|
1267
1179
|
* @name generatePOSReceiptByOrderId
|
|
1268
1180
|
* @summary: Generate POS receipt by order Id
|
|
1269
1181
|
* @description: Create a point-of-sale (POS) receipt for a specific order by order Id. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/generatePOSReceiptByOrderId/).
|
|
@@ -1329,7 +1241,7 @@ class Order {
|
|
|
1329
1241
|
|
|
1330
1242
|
const {
|
|
1331
1243
|
error: res_error,
|
|
1332
|
-
} = OrderPlatformModel.
|
|
1244
|
+
} = OrderPlatformModel.GeneratePosOrderReceiptResponse().validate(
|
|
1333
1245
|
responseData,
|
|
1334
1246
|
{ abortEarly: false, allowUnknown: true }
|
|
1335
1247
|
);
|
|
@@ -1352,7 +1264,7 @@ class Order {
|
|
|
1352
1264
|
* @param {OrderPlatformValidator.GenerateProcessManifestParam} arg - Arg object
|
|
1353
1265
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1354
1266
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1355
|
-
* @returns {Promise<OrderPlatformModel.
|
|
1267
|
+
* @returns {Promise<OrderPlatformModel.ManifestResponse>} - Success response
|
|
1356
1268
|
* @name generateProcessManifest
|
|
1357
1269
|
* @summary: Process Order Manifest
|
|
1358
1270
|
* @description: Endpoint to save and process order manifests. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/generateProcessManifest/).
|
|
@@ -1408,7 +1320,7 @@ class Order {
|
|
|
1408
1320
|
|
|
1409
1321
|
const {
|
|
1410
1322
|
error: res_error,
|
|
1411
|
-
} = OrderPlatformModel.
|
|
1323
|
+
} = OrderPlatformModel.ManifestResponse().validate(responseData, {
|
|
1412
1324
|
abortEarly: false,
|
|
1413
1325
|
allowUnknown: true,
|
|
1414
1326
|
});
|
|
@@ -1517,8 +1429,7 @@ class Order {
|
|
|
1517
1429
|
* @param {OrderPlatformValidator.GetAllowedTemplatesForBulkParam} arg - Arg object
|
|
1518
1430
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1519
1431
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1520
|
-
* @returns {Promise<OrderPlatformModel.
|
|
1521
|
-
* Success response
|
|
1432
|
+
* @returns {Promise<OrderPlatformModel.AllowedTemplatesResponse>} - Success response
|
|
1522
1433
|
* @name getAllowedTemplatesForBulk
|
|
1523
1434
|
* @summary: List bulk operation templates
|
|
1524
1435
|
* @description: Gets all the allowed templates to perform bulk operations. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/getAllowedTemplatesForBulk/).
|
|
@@ -1572,10 +1483,10 @@ class Order {
|
|
|
1572
1483
|
|
|
1573
1484
|
const {
|
|
1574
1485
|
error: res_error,
|
|
1575
|
-
} = OrderPlatformModel.
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
);
|
|
1486
|
+
} = OrderPlatformModel.AllowedTemplatesResponse().validate(responseData, {
|
|
1487
|
+
abortEarly: false,
|
|
1488
|
+
allowUnknown: true,
|
|
1489
|
+
});
|
|
1579
1490
|
|
|
1580
1491
|
if (res_error) {
|
|
1581
1492
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -1595,8 +1506,7 @@ class Order {
|
|
|
1595
1506
|
* @param {OrderPlatformValidator.GetAnnouncementsParam} arg - Arg object
|
|
1596
1507
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1597
1508
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1598
|
-
* @returns {Promise<OrderPlatformModel.
|
|
1599
|
-
* Success response
|
|
1509
|
+
* @returns {Promise<OrderPlatformModel.AnnouncementsResponse>} - Success response
|
|
1600
1510
|
* @name getAnnouncements
|
|
1601
1511
|
* @summary: List announcements
|
|
1602
1512
|
* @description: Retrieve announcements related to orders fulfilment configured by platform or company admin - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/getAnnouncements/).
|
|
@@ -1653,10 +1563,10 @@ class Order {
|
|
|
1653
1563
|
|
|
1654
1564
|
const {
|
|
1655
1565
|
error: res_error,
|
|
1656
|
-
} = OrderPlatformModel.
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
);
|
|
1566
|
+
} = OrderPlatformModel.AnnouncementsResponse().validate(responseData, {
|
|
1567
|
+
abortEarly: false,
|
|
1568
|
+
allowUnknown: true,
|
|
1569
|
+
});
|
|
1660
1570
|
|
|
1661
1571
|
if (res_error) {
|
|
1662
1572
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -1676,9 +1586,8 @@ class Order {
|
|
|
1676
1586
|
* @param {OrderPlatformValidator.GetBagByIdParam} arg - Arg object
|
|
1677
1587
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1678
1588
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1679
|
-
* @returns {Promise<OrderPlatformModel.
|
|
1680
|
-
*
|
|
1681
|
-
*
|
|
1589
|
+
* @returns {Promise<OrderPlatformModel.BagDetailsPlatformResponse>} -
|
|
1590
|
+
* Success response
|
|
1682
1591
|
* @name getBagById
|
|
1683
1592
|
* @summary: Get bag
|
|
1684
1593
|
* @description: Retrieve detailed information about a specific bag - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/getBagById/).
|
|
@@ -1739,10 +1648,10 @@ class Order {
|
|
|
1739
1648
|
|
|
1740
1649
|
const {
|
|
1741
1650
|
error: res_error,
|
|
1742
|
-
} = OrderPlatformModel.
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
);
|
|
1651
|
+
} = OrderPlatformModel.BagDetailsPlatformResponse().validate(responseData, {
|
|
1652
|
+
abortEarly: false,
|
|
1653
|
+
allowUnknown: true,
|
|
1654
|
+
});
|
|
1746
1655
|
|
|
1747
1656
|
if (res_error) {
|
|
1748
1657
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -1762,8 +1671,7 @@ class Order {
|
|
|
1762
1671
|
* @param {OrderPlatformValidator.GetBagsParam} arg - Arg object
|
|
1763
1672
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1764
1673
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1765
|
-
* @returns {Promise<OrderPlatformModel.
|
|
1766
|
-
* Success response
|
|
1674
|
+
* @returns {Promise<OrderPlatformModel.GetBagsPlatformResponse>} - Success response
|
|
1767
1675
|
* @name getBags
|
|
1768
1676
|
* @summary: List bags
|
|
1769
1677
|
* @description: Get paginated list of bags based on provided filters - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/getBags/).
|
|
@@ -1853,10 +1761,10 @@ class Order {
|
|
|
1853
1761
|
|
|
1854
1762
|
const {
|
|
1855
1763
|
error: res_error,
|
|
1856
|
-
} = OrderPlatformModel.
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
);
|
|
1764
|
+
} = OrderPlatformModel.GetBagsPlatformResponse().validate(responseData, {
|
|
1765
|
+
abortEarly: false,
|
|
1766
|
+
allowUnknown: true,
|
|
1767
|
+
});
|
|
1860
1768
|
|
|
1861
1769
|
if (res_error) {
|
|
1862
1770
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -1876,9 +1784,8 @@ class Order {
|
|
|
1876
1784
|
* @param {OrderPlatformValidator.GetBulkActionTemplateParam} arg - Arg object
|
|
1877
1785
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1878
1786
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1879
|
-
* @returns {Promise<OrderPlatformModel.
|
|
1880
|
-
*
|
|
1881
|
-
*
|
|
1787
|
+
* @returns {Promise<OrderPlatformModel.BulkActionTemplateResponse>} -
|
|
1788
|
+
* Success response
|
|
1882
1789
|
* @name getBulkActionTemplate
|
|
1883
1790
|
* @summary: List supported templates
|
|
1884
1791
|
* @description: Get list of templates so that users can download the required template - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/getBulkActionTemplate/).
|
|
@@ -1930,10 +1837,10 @@ class Order {
|
|
|
1930
1837
|
|
|
1931
1838
|
const {
|
|
1932
1839
|
error: res_error,
|
|
1933
|
-
} = OrderPlatformModel.
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
);
|
|
1840
|
+
} = OrderPlatformModel.BulkActionTemplateResponse().validate(responseData, {
|
|
1841
|
+
abortEarly: false,
|
|
1842
|
+
allowUnknown: true,
|
|
1843
|
+
});
|
|
1937
1844
|
|
|
1938
1845
|
if (res_error) {
|
|
1939
1846
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -1953,7 +1860,7 @@ class Order {
|
|
|
1953
1860
|
* @param {OrderPlatformValidator.GetBulkShipmentExcelFileParam} arg - Arg object
|
|
1954
1861
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1955
1862
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1956
|
-
* @returns {Promise<OrderPlatformModel.
|
|
1863
|
+
* @returns {Promise<OrderPlatformModel.FileResponse>} - Success response
|
|
1957
1864
|
* @name getBulkShipmentExcelFile
|
|
1958
1865
|
* @summary: Generate the report
|
|
1959
1866
|
* @description: Generates the report which can be filled and uploaded to perform the bulk operation based on the filters provided - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/getBulkShipmentExcelFile/).
|
|
@@ -2059,7 +1966,7 @@ class Order {
|
|
|
2059
1966
|
|
|
2060
1967
|
const {
|
|
2061
1968
|
error: res_error,
|
|
2062
|
-
} = OrderPlatformModel.
|
|
1969
|
+
} = OrderPlatformModel.FileResponse().validate(responseData, {
|
|
2063
1970
|
abortEarly: false,
|
|
2064
1971
|
allowUnknown: true,
|
|
2065
1972
|
});
|
|
@@ -2078,86 +1985,11 @@ class Order {
|
|
|
2078
1985
|
return response;
|
|
2079
1986
|
}
|
|
2080
1987
|
|
|
2081
|
-
/**
|
|
2082
|
-
* @param {OrderPlatformValidator.GetChannelConfigParam} arg - Arg object
|
|
2083
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
2084
|
-
* @param {import("../PlatformAPIClient").Options} - Options
|
|
2085
|
-
* @returns {Promise<OrderPlatformModel.CreateChannelConfigData>} - Success response
|
|
2086
|
-
* @name getChannelConfig
|
|
2087
|
-
* @summary: Get channel configuration
|
|
2088
|
-
* @description: Retrieve configuration settings specific to orders for a channel - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/getChannelConfig/).
|
|
2089
|
-
*/
|
|
2090
|
-
async getChannelConfig(
|
|
2091
|
-
{ requestHeaders } = { requestHeaders: {} },
|
|
2092
|
-
{ responseHeaders } = { responseHeaders: false }
|
|
2093
|
-
) {
|
|
2094
|
-
const { error } = OrderPlatformValidator.getChannelConfig().validate(
|
|
2095
|
-
{},
|
|
2096
|
-
{ abortEarly: false, allowUnknown: true }
|
|
2097
|
-
);
|
|
2098
|
-
if (error) {
|
|
2099
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
2100
|
-
}
|
|
2101
|
-
|
|
2102
|
-
// Showing warrnings if extra unknown parameters are found
|
|
2103
|
-
const {
|
|
2104
|
-
error: warrning,
|
|
2105
|
-
} = OrderPlatformValidator.getChannelConfig().validate(
|
|
2106
|
-
{},
|
|
2107
|
-
{ abortEarly: false, allowUnknown: false }
|
|
2108
|
-
);
|
|
2109
|
-
if (warrning) {
|
|
2110
|
-
Logger({
|
|
2111
|
-
level: "WARN",
|
|
2112
|
-
message: `Parameter Validation warrnings for platform > Order > getChannelConfig \n ${warrning}`,
|
|
2113
|
-
});
|
|
2114
|
-
}
|
|
2115
|
-
|
|
2116
|
-
const query_params = {};
|
|
2117
|
-
|
|
2118
|
-
const xHeaders = {};
|
|
2119
|
-
|
|
2120
|
-
const response = await PlatformAPIClient.execute(
|
|
2121
|
-
this.config,
|
|
2122
|
-
"get",
|
|
2123
|
-
`/service/platform/order-manage/v1.0/company/${this.config.companyId}/order-config`,
|
|
2124
|
-
query_params,
|
|
2125
|
-
undefined,
|
|
2126
|
-
{ ...xHeaders, ...requestHeaders },
|
|
2127
|
-
{ responseHeaders }
|
|
2128
|
-
);
|
|
2129
|
-
|
|
2130
|
-
let responseData = response;
|
|
2131
|
-
if (responseHeaders) {
|
|
2132
|
-
responseData = response[0];
|
|
2133
|
-
}
|
|
2134
|
-
|
|
2135
|
-
const {
|
|
2136
|
-
error: res_error,
|
|
2137
|
-
} = OrderPlatformModel.CreateChannelConfigData().validate(responseData, {
|
|
2138
|
-
abortEarly: false,
|
|
2139
|
-
allowUnknown: true,
|
|
2140
|
-
});
|
|
2141
|
-
|
|
2142
|
-
if (res_error) {
|
|
2143
|
-
if (this.config.options.strictResponseCheck === true) {
|
|
2144
|
-
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
2145
|
-
} else {
|
|
2146
|
-
Logger({
|
|
2147
|
-
level: "WARN",
|
|
2148
|
-
message: `Response Validation Warnings for platform > Order > getChannelConfig \n ${res_error}`,
|
|
2149
|
-
});
|
|
2150
|
-
}
|
|
2151
|
-
}
|
|
2152
|
-
|
|
2153
|
-
return response;
|
|
2154
|
-
}
|
|
2155
|
-
|
|
2156
1988
|
/**
|
|
2157
1989
|
* @param {OrderPlatformValidator.GetFileByStatusParam} arg - Arg object
|
|
2158
1990
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
2159
1991
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
2160
|
-
* @returns {Promise<OrderPlatformModel.
|
|
1992
|
+
* @returns {Promise<OrderPlatformModel.JobFailedResponse>} - Success response
|
|
2161
1993
|
* @name getFileByStatus
|
|
2162
1994
|
* @summary: Download file used for Bulk operation
|
|
2163
1995
|
* @description: Get the file download URL used for performing bulk operation - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/getFileByStatus/).
|
|
@@ -2224,7 +2056,7 @@ class Order {
|
|
|
2224
2056
|
|
|
2225
2057
|
const {
|
|
2226
2058
|
error: res_error,
|
|
2227
|
-
} = OrderPlatformModel.
|
|
2059
|
+
} = OrderPlatformModel.JobFailedResponse().validate(responseData, {
|
|
2228
2060
|
abortEarly: false,
|
|
2229
2061
|
allowUnknown: true,
|
|
2230
2062
|
});
|
|
@@ -2247,7 +2079,7 @@ class Order {
|
|
|
2247
2079
|
* @param {OrderPlatformValidator.GetLaneConfigParam} arg - Arg object
|
|
2248
2080
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
2249
2081
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
2250
|
-
* @returns {Promise<OrderPlatformModel.
|
|
2082
|
+
* @returns {Promise<OrderPlatformModel.LaneConfigResponse>} - Success response
|
|
2251
2083
|
* @name getLaneConfig
|
|
2252
2084
|
* @summary: Get lane configuration
|
|
2253
2085
|
* @description: Get configuration settings for lanes - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/getLaneConfig/).
|
|
@@ -2377,7 +2209,7 @@ class Order {
|
|
|
2377
2209
|
|
|
2378
2210
|
const {
|
|
2379
2211
|
error: res_error,
|
|
2380
|
-
} = OrderPlatformModel.
|
|
2212
|
+
} = OrderPlatformModel.LaneConfigResponse().validate(responseData, {
|
|
2381
2213
|
abortEarly: false,
|
|
2382
2214
|
allowUnknown: true,
|
|
2383
2215
|
});
|
|
@@ -2622,8 +2454,7 @@ class Order {
|
|
|
2622
2454
|
* @param {OrderPlatformValidator.GetManifestfiltersParam} arg - Arg object
|
|
2623
2455
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
2624
2456
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
2625
|
-
* @returns {Promise<OrderPlatformModel.
|
|
2626
|
-
* Success response
|
|
2457
|
+
* @returns {Promise<OrderPlatformModel.ManifestFiltersResponse>} - Success response
|
|
2627
2458
|
* @name getManifestfilters
|
|
2628
2459
|
* @summary: List filters
|
|
2629
2460
|
* @description: Get supported filter for listing manifests - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/getManifestfilters/).
|
|
@@ -2680,10 +2511,10 @@ class Order {
|
|
|
2680
2511
|
|
|
2681
2512
|
const {
|
|
2682
2513
|
error: res_error,
|
|
2683
|
-
} = OrderPlatformModel.
|
|
2684
|
-
|
|
2685
|
-
|
|
2686
|
-
);
|
|
2514
|
+
} = OrderPlatformModel.ManifestFiltersResponse().validate(responseData, {
|
|
2515
|
+
abortEarly: false,
|
|
2516
|
+
allowUnknown: true,
|
|
2517
|
+
});
|
|
2687
2518
|
|
|
2688
2519
|
if (res_error) {
|
|
2689
2520
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -2816,8 +2647,7 @@ class Order {
|
|
|
2816
2647
|
* @param {OrderPlatformValidator.GetOrderByIdParam} arg - Arg object
|
|
2817
2648
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
2818
2649
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
2819
|
-
* @returns {Promise<OrderPlatformModel.
|
|
2820
|
-
* Success response
|
|
2650
|
+
* @returns {Promise<OrderPlatformModel.OrderDetailsResponse>} - Success response
|
|
2821
2651
|
* @name getOrderById
|
|
2822
2652
|
* @summary: Get order
|
|
2823
2653
|
* @description: Get detailed information about a specific order - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/getOrderById/).
|
|
@@ -2880,7 +2710,7 @@ class Order {
|
|
|
2880
2710
|
|
|
2881
2711
|
const {
|
|
2882
2712
|
error: res_error,
|
|
2883
|
-
} = OrderPlatformModel.
|
|
2713
|
+
} = OrderPlatformModel.OrderDetailsResponse().validate(responseData, {
|
|
2884
2714
|
abortEarly: false,
|
|
2885
2715
|
allowUnknown: true,
|
|
2886
2716
|
});
|
|
@@ -2903,11 +2733,10 @@ class Order {
|
|
|
2903
2733
|
* @param {OrderPlatformValidator.GetOrdersParam} arg - Arg object
|
|
2904
2734
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
2905
2735
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
2906
|
-
* @returns {Promise<OrderPlatformModel.
|
|
2907
|
-
* Success response
|
|
2736
|
+
* @returns {Promise<OrderPlatformModel.OrderListingResponse>} - Success response
|
|
2908
2737
|
* @name getOrders
|
|
2909
2738
|
* @summary: List orders
|
|
2910
|
-
* @description: Get a list of orders based on the filters provided
|
|
2739
|
+
* @description: Get a list of orders based on the filters provided - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/getOrders/).
|
|
2911
2740
|
*/
|
|
2912
2741
|
async getOrders(
|
|
2913
2742
|
{
|
|
@@ -2934,7 +2763,6 @@ class Order {
|
|
|
2934
2763
|
customerId,
|
|
2935
2764
|
orderType,
|
|
2936
2765
|
allowInactive,
|
|
2937
|
-
groupEntity,
|
|
2938
2766
|
enforceDateFilter,
|
|
2939
2767
|
requestHeaders,
|
|
2940
2768
|
} = { requestHeaders: {} },
|
|
@@ -2965,7 +2793,6 @@ class Order {
|
|
|
2965
2793
|
customerId,
|
|
2966
2794
|
orderType,
|
|
2967
2795
|
allowInactive,
|
|
2968
|
-
groupEntity,
|
|
2969
2796
|
enforceDateFilter,
|
|
2970
2797
|
},
|
|
2971
2798
|
{ abortEarly: false, allowUnknown: true }
|
|
@@ -3000,7 +2827,6 @@ class Order {
|
|
|
3000
2827
|
customerId,
|
|
3001
2828
|
orderType,
|
|
3002
2829
|
allowInactive,
|
|
3003
|
-
groupEntity,
|
|
3004
2830
|
enforceDateFilter,
|
|
3005
2831
|
},
|
|
3006
2832
|
{ abortEarly: false, allowUnknown: false }
|
|
@@ -3036,7 +2862,6 @@ class Order {
|
|
|
3036
2862
|
query_params["customer_id"] = customerId;
|
|
3037
2863
|
query_params["order_type"] = orderType;
|
|
3038
2864
|
query_params["allow_inactive"] = allowInactive;
|
|
3039
|
-
query_params["group_entity"] = groupEntity;
|
|
3040
2865
|
query_params["enforce_date_filter"] = enforceDateFilter;
|
|
3041
2866
|
|
|
3042
2867
|
const xHeaders = {};
|
|
@@ -3058,7 +2883,7 @@ class Order {
|
|
|
3058
2883
|
|
|
3059
2884
|
const {
|
|
3060
2885
|
error: res_error,
|
|
3061
|
-
} = OrderPlatformModel.
|
|
2886
|
+
} = OrderPlatformModel.OrderListingResponse().validate(responseData, {
|
|
3062
2887
|
abortEarly: false,
|
|
3063
2888
|
allowUnknown: true,
|
|
3064
2889
|
});
|
|
@@ -3081,7 +2906,7 @@ class Order {
|
|
|
3081
2906
|
* @param {OrderPlatformValidator.GetRoleBasedActionsParam} arg - Arg object
|
|
3082
2907
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3083
2908
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
3084
|
-
* @returns {Promise<OrderPlatformModel.
|
|
2909
|
+
* @returns {Promise<OrderPlatformModel.GetActionsResponse>} - Success response
|
|
3085
2910
|
* @name getRoleBasedActions
|
|
3086
2911
|
* @summary: Get role-based actions
|
|
3087
2912
|
* @description: Retrieve permissible actions based on user roles such as company_admin, company_operation, customer_care, and read_only. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/getRoleBasedActions/).
|
|
@@ -3133,7 +2958,7 @@ class Order {
|
|
|
3133
2958
|
|
|
3134
2959
|
const {
|
|
3135
2960
|
error: res_error,
|
|
3136
|
-
} = OrderPlatformModel.
|
|
2961
|
+
} = OrderPlatformModel.GetActionsResponse().validate(responseData, {
|
|
3137
2962
|
abortEarly: false,
|
|
3138
2963
|
allowUnknown: true,
|
|
3139
2964
|
});
|
|
@@ -3156,10 +2981,9 @@ class Order {
|
|
|
3156
2981
|
* @param {OrderPlatformValidator.GetShipmentByIdParam} arg - Arg object
|
|
3157
2982
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3158
2983
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
3159
|
-
* @returns {Promise<OrderPlatformModel.
|
|
3160
|
-
* Success response
|
|
2984
|
+
* @returns {Promise<OrderPlatformModel.ShipmentInfoResponse>} - Success response
|
|
3161
2985
|
* @name getShipmentById
|
|
3162
|
-
* @summary: Get shipment
|
|
2986
|
+
* @summary: Get shipment
|
|
3163
2987
|
* @description: Get detailed information about a specific shipment - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/getShipmentById/).
|
|
3164
2988
|
*/
|
|
3165
2989
|
async getShipmentById(
|
|
@@ -3229,7 +3053,7 @@ class Order {
|
|
|
3229
3053
|
|
|
3230
3054
|
const {
|
|
3231
3055
|
error: res_error,
|
|
3232
|
-
} = OrderPlatformModel.
|
|
3056
|
+
} = OrderPlatformModel.ShipmentInfoResponse().validate(responseData, {
|
|
3233
3057
|
abortEarly: false,
|
|
3234
3058
|
allowUnknown: true,
|
|
3235
3059
|
});
|
|
@@ -3252,8 +3076,7 @@ class Order {
|
|
|
3252
3076
|
* @param {OrderPlatformValidator.GetShipmentHistoryParam} arg - Arg object
|
|
3253
3077
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3254
3078
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
3255
|
-
* @returns {Promise<OrderPlatformModel.
|
|
3256
|
-
* Success response
|
|
3079
|
+
* @returns {Promise<OrderPlatformModel.ShipmentHistoryResponse>} - Success response
|
|
3257
3080
|
* @name getShipmentHistory
|
|
3258
3081
|
* @summary: Get a shipment's history
|
|
3259
3082
|
* @description: Get the history of the shipment - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/getShipmentHistory/).
|
|
@@ -3313,10 +3136,10 @@ class Order {
|
|
|
3313
3136
|
|
|
3314
3137
|
const {
|
|
3315
3138
|
error: res_error,
|
|
3316
|
-
} = OrderPlatformModel.
|
|
3317
|
-
|
|
3318
|
-
|
|
3319
|
-
);
|
|
3139
|
+
} = OrderPlatformModel.ShipmentHistoryResponse().validate(responseData, {
|
|
3140
|
+
abortEarly: false,
|
|
3141
|
+
allowUnknown: true,
|
|
3142
|
+
});
|
|
3320
3143
|
|
|
3321
3144
|
if (res_error) {
|
|
3322
3145
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -3336,9 +3159,8 @@ class Order {
|
|
|
3336
3159
|
* @param {OrderPlatformValidator.GetShipmentReasonsParam} arg - Arg object
|
|
3337
3160
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3338
3161
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
3339
|
-
* @returns {Promise<OrderPlatformModel.
|
|
3340
|
-
*
|
|
3341
|
-
*
|
|
3162
|
+
* @returns {Promise<OrderPlatformModel.PlatformShipmentReasonsResponse>} -
|
|
3163
|
+
* Success response
|
|
3342
3164
|
* @name getShipmentReasons
|
|
3343
3165
|
* @summary: List bag cancellation reasons
|
|
3344
3166
|
* @description: Get reasons to perform full or partial cancellation of a bag - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/getShipmentReasons/).
|
|
@@ -3398,7 +3220,7 @@ class Order {
|
|
|
3398
3220
|
|
|
3399
3221
|
const {
|
|
3400
3222
|
error: res_error,
|
|
3401
|
-
} = OrderPlatformModel.
|
|
3223
|
+
} = OrderPlatformModel.PlatformShipmentReasonsResponse().validate(
|
|
3402
3224
|
responseData,
|
|
3403
3225
|
{ abortEarly: false, allowUnknown: true }
|
|
3404
3226
|
);
|
|
@@ -3421,7 +3243,7 @@ class Order {
|
|
|
3421
3243
|
* @param {OrderPlatformValidator.GetShipmentsParam} arg - Arg object
|
|
3422
3244
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3423
3245
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
3424
|
-
* @returns {Promise<OrderPlatformModel.
|
|
3246
|
+
* @returns {Promise<OrderPlatformModel.ShipmentInternalPlatformViewResponse>}
|
|
3425
3247
|
* - Success response
|
|
3426
3248
|
*
|
|
3427
3249
|
* @name getShipments
|
|
@@ -3461,7 +3283,6 @@ class Order {
|
|
|
3461
3283
|
tags,
|
|
3462
3284
|
customerId,
|
|
3463
3285
|
orderType,
|
|
3464
|
-
groupEntity,
|
|
3465
3286
|
enforceDateFilter,
|
|
3466
3287
|
requestHeaders,
|
|
3467
3288
|
} = { requestHeaders: {} },
|
|
@@ -3500,7 +3321,6 @@ class Order {
|
|
|
3500
3321
|
tags,
|
|
3501
3322
|
customerId,
|
|
3502
3323
|
orderType,
|
|
3503
|
-
groupEntity,
|
|
3504
3324
|
enforceDateFilter,
|
|
3505
3325
|
},
|
|
3506
3326
|
{ abortEarly: false, allowUnknown: true }
|
|
@@ -3543,7 +3363,6 @@ class Order {
|
|
|
3543
3363
|
tags,
|
|
3544
3364
|
customerId,
|
|
3545
3365
|
orderType,
|
|
3546
|
-
groupEntity,
|
|
3547
3366
|
enforceDateFilter,
|
|
3548
3367
|
},
|
|
3549
3368
|
{ abortEarly: false, allowUnknown: false }
|
|
@@ -3587,7 +3406,6 @@ class Order {
|
|
|
3587
3406
|
query_params["tags"] = tags;
|
|
3588
3407
|
query_params["customer_id"] = customerId;
|
|
3589
3408
|
query_params["order_type"] = orderType;
|
|
3590
|
-
query_params["group_entity"] = groupEntity;
|
|
3591
3409
|
query_params["enforce_date_filter"] = enforceDateFilter;
|
|
3592
3410
|
|
|
3593
3411
|
const xHeaders = {};
|
|
@@ -3609,7 +3427,7 @@ class Order {
|
|
|
3609
3427
|
|
|
3610
3428
|
const {
|
|
3611
3429
|
error: res_error,
|
|
3612
|
-
} = OrderPlatformModel.
|
|
3430
|
+
} = OrderPlatformModel.ShipmentInternalPlatformViewResponse().validate(
|
|
3613
3431
|
responseData,
|
|
3614
3432
|
{ abortEarly: false, allowUnknown: true }
|
|
3615
3433
|
);
|
|
@@ -3793,8 +3611,7 @@ class Order {
|
|
|
3793
3611
|
* @param {OrderPlatformValidator.GetTemplateParam} arg - Arg object
|
|
3794
3612
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3795
3613
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
3796
|
-
* @returns {Promise<OrderPlatformModel.
|
|
3797
|
-
* Success response
|
|
3614
|
+
* @returns {Promise<OrderPlatformModel.TemplateDownloadResponse>} - Success response
|
|
3798
3615
|
* @name getTemplate
|
|
3799
3616
|
* @summary: Download bulk operation templates
|
|
3800
3617
|
* @description: Get the excel or CSV file URL for the template. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/getTemplate/).
|
|
@@ -3848,10 +3665,10 @@ class Order {
|
|
|
3848
3665
|
|
|
3849
3666
|
const {
|
|
3850
3667
|
error: res_error,
|
|
3851
|
-
} = OrderPlatformModel.
|
|
3852
|
-
|
|
3853
|
-
|
|
3854
|
-
);
|
|
3668
|
+
} = OrderPlatformModel.TemplateDownloadResponse().validate(responseData, {
|
|
3669
|
+
abortEarly: false,
|
|
3670
|
+
allowUnknown: true,
|
|
3671
|
+
});
|
|
3855
3672
|
|
|
3856
3673
|
if (res_error) {
|
|
3857
3674
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -3871,7 +3688,7 @@ class Order {
|
|
|
3871
3688
|
* @param {OrderPlatformValidator.GetfiltersParam} arg - Arg object
|
|
3872
3689
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3873
3690
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
3874
|
-
* @returns {Promise<OrderPlatformModel.
|
|
3691
|
+
* @returns {Promise<OrderPlatformModel.FiltersResponse>} - Success response
|
|
3875
3692
|
* @name getfilters
|
|
3876
3693
|
* @summary: List filters
|
|
3877
3694
|
* @description: Get supported filters for various listing operations - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/getfilters/).
|
|
@@ -3929,7 +3746,7 @@ class Order {
|
|
|
3929
3746
|
|
|
3930
3747
|
const {
|
|
3931
3748
|
error: res_error,
|
|
3932
|
-
} = OrderPlatformModel.
|
|
3749
|
+
} = OrderPlatformModel.FiltersResponse().validate(responseData, {
|
|
3933
3750
|
abortEarly: false,
|
|
3934
3751
|
allowUnknown: true,
|
|
3935
3752
|
});
|
|
@@ -3952,9 +3769,8 @@ class Order {
|
|
|
3952
3769
|
* @param {OrderPlatformValidator.InvalidateShipmentCacheParam} arg - Arg object
|
|
3953
3770
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3954
3771
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
3955
|
-
* @returns {Promise<OrderPlatformModel.
|
|
3956
|
-
*
|
|
3957
|
-
*
|
|
3772
|
+
* @returns {Promise<OrderPlatformModel.InvalidateShipmentCacheResponse>} -
|
|
3773
|
+
* Success response
|
|
3958
3774
|
* @name invalidateShipmentCache
|
|
3959
3775
|
* @summary: Invalidate shipment cache
|
|
3960
3776
|
* @description: Clear the existing shipment cache data stored in Redis and serialize the updated data for subsequent use. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/invalidateShipmentCache/).
|
|
@@ -4010,7 +3826,7 @@ class Order {
|
|
|
4010
3826
|
|
|
4011
3827
|
const {
|
|
4012
3828
|
error: res_error,
|
|
4013
|
-
} = OrderPlatformModel.
|
|
3829
|
+
} = OrderPlatformModel.InvalidateShipmentCacheResponse().validate(
|
|
4014
3830
|
responseData,
|
|
4015
3831
|
{ abortEarly: false, allowUnknown: true }
|
|
4016
3832
|
);
|
|
@@ -4033,7 +3849,7 @@ class Order {
|
|
|
4033
3849
|
* @param {OrderPlatformValidator.JobDetailsParam} arg - Arg object
|
|
4034
3850
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
4035
3851
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
4036
|
-
* @returns {Promise<OrderPlatformModel.
|
|
3852
|
+
* @returns {Promise<OrderPlatformModel.JobDetailsResponse>} - Success response
|
|
4037
3853
|
* @name jobDetails
|
|
4038
3854
|
* @summary: Get bulk operation details
|
|
4039
3855
|
* @description: Fetches details of the job for the provided batch Id - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/jobDetails/).
|
|
@@ -4087,7 +3903,7 @@ class Order {
|
|
|
4087
3903
|
|
|
4088
3904
|
const {
|
|
4089
3905
|
error: res_error,
|
|
4090
|
-
} = OrderPlatformModel.
|
|
3906
|
+
} = OrderPlatformModel.JobDetailsResponse().validate(responseData, {
|
|
4091
3907
|
abortEarly: false,
|
|
4092
3908
|
allowUnknown: true,
|
|
4093
3909
|
});
|
|
@@ -4187,8 +4003,7 @@ class Order {
|
|
|
4187
4003
|
* @param {OrderPlatformValidator.PostShipmentHistoryParam} arg - Arg object
|
|
4188
4004
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
4189
4005
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
4190
|
-
* @returns {Promise<OrderPlatformModel.
|
|
4191
|
-
* Success response
|
|
4006
|
+
* @returns {Promise<OrderPlatformModel.ShipmentHistoryResponse>} - Success response
|
|
4192
4007
|
* @name postShipmentHistory
|
|
4193
4008
|
* @summary: Create shipment history
|
|
4194
4009
|
* @description: Used to add logs in history for a bag for the provided Shipment ID - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/postShipmentHistory/).
|
|
@@ -4244,10 +4059,10 @@ class Order {
|
|
|
4244
4059
|
|
|
4245
4060
|
const {
|
|
4246
4061
|
error: res_error,
|
|
4247
|
-
} = OrderPlatformModel.
|
|
4248
|
-
|
|
4249
|
-
|
|
4250
|
-
);
|
|
4062
|
+
} = OrderPlatformModel.ShipmentHistoryResponse().validate(responseData, {
|
|
4063
|
+
abortEarly: false,
|
|
4064
|
+
allowUnknown: true,
|
|
4065
|
+
});
|
|
4251
4066
|
|
|
4252
4067
|
if (res_error) {
|
|
4253
4068
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -4267,8 +4082,7 @@ class Order {
|
|
|
4267
4082
|
* @param {OrderPlatformValidator.ReassignLocationParam} arg - Arg object
|
|
4268
4083
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
4269
4084
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
4270
|
-
* @returns {Promise<OrderPlatformModel.
|
|
4271
|
-
* Success response
|
|
4085
|
+
* @returns {Promise<OrderPlatformModel.StoreReassignResponse>} - Success response
|
|
4272
4086
|
* @name reassignLocation
|
|
4273
4087
|
* @summary: Reassign location
|
|
4274
4088
|
* @description: Reassign the shipment to a another location and update its status to 'Store Reassigned.' - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/reassignLocation/).
|
|
@@ -4324,10 +4138,10 @@ class Order {
|
|
|
4324
4138
|
|
|
4325
4139
|
const {
|
|
4326
4140
|
error: res_error,
|
|
4327
|
-
} = OrderPlatformModel.
|
|
4328
|
-
|
|
4329
|
-
|
|
4330
|
-
);
|
|
4141
|
+
} = OrderPlatformModel.StoreReassignResponse().validate(responseData, {
|
|
4142
|
+
abortEarly: false,
|
|
4143
|
+
allowUnknown: true,
|
|
4144
|
+
});
|
|
4331
4145
|
|
|
4332
4146
|
if (res_error) {
|
|
4333
4147
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -4347,7 +4161,7 @@ class Order {
|
|
|
4347
4161
|
* @param {OrderPlatformValidator.SendSmsNinjaParam} arg - Arg object
|
|
4348
4162
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
4349
4163
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
4350
|
-
* @returns {Promise<OrderPlatformModel.
|
|
4164
|
+
* @returns {Promise<OrderPlatformModel.BaseResponse>} - Success response
|
|
4351
4165
|
* @name sendSmsNinja
|
|
4352
4166
|
* @summary: Send SMS
|
|
4353
4167
|
* @description: Send SMS to customer based on the template that is selected - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/sendSmsNinja/).
|
|
@@ -4401,7 +4215,7 @@ class Order {
|
|
|
4401
4215
|
|
|
4402
4216
|
const {
|
|
4403
4217
|
error: res_error,
|
|
4404
|
-
} = OrderPlatformModel.
|
|
4218
|
+
} = OrderPlatformModel.BaseResponse().validate(responseData, {
|
|
4405
4219
|
abortEarly: false,
|
|
4406
4220
|
allowUnknown: true,
|
|
4407
4221
|
});
|
|
@@ -4424,8 +4238,7 @@ class Order {
|
|
|
4424
4238
|
* @param {OrderPlatformValidator.SendUserMobileOTPParam} arg - Arg object
|
|
4425
4239
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
4426
4240
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
4427
|
-
* @returns {Promise<OrderPlatformModel.
|
|
4428
|
-
* Success response
|
|
4241
|
+
* @returns {Promise<OrderPlatformModel.SendUserMobileOtpResponse>} - Success response
|
|
4429
4242
|
* @name sendUserMobileOTP
|
|
4430
4243
|
* @summary: Send user mobile OTP
|
|
4431
4244
|
* @description: Send a one-time OTP to a customer mobile number - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/sendUserMobileOTP/).
|
|
@@ -4481,10 +4294,10 @@ class Order {
|
|
|
4481
4294
|
|
|
4482
4295
|
const {
|
|
4483
4296
|
error: res_error,
|
|
4484
|
-
} = OrderPlatformModel.
|
|
4485
|
-
|
|
4486
|
-
|
|
4487
|
-
);
|
|
4297
|
+
} = OrderPlatformModel.SendUserMobileOtpResponse().validate(responseData, {
|
|
4298
|
+
abortEarly: false,
|
|
4299
|
+
allowUnknown: true,
|
|
4300
|
+
});
|
|
4488
4301
|
|
|
4489
4302
|
if (res_error) {
|
|
4490
4303
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -4504,9 +4317,8 @@ class Order {
|
|
|
4504
4317
|
* @param {OrderPlatformValidator.TrackShipmentParam} arg - Arg object
|
|
4505
4318
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
4506
4319
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
4507
|
-
* @returns {Promise<OrderPlatformModel.
|
|
4508
|
-
*
|
|
4509
|
-
*
|
|
4320
|
+
* @returns {Promise<OrderPlatformModel.CourierPartnerTrackingResponse>} -
|
|
4321
|
+
* Success response
|
|
4510
4322
|
* @name trackShipment
|
|
4511
4323
|
* @summary: Track shipment
|
|
4512
4324
|
* @description: Retrieve courier partner tracking details for a given shipment Id or AWB number - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/trackShipment/).
|
|
@@ -4572,7 +4384,7 @@ class Order {
|
|
|
4572
4384
|
|
|
4573
4385
|
const {
|
|
4574
4386
|
error: res_error,
|
|
4575
|
-
} = OrderPlatformModel.
|
|
4387
|
+
} = OrderPlatformModel.CourierPartnerTrackingResponse().validate(
|
|
4576
4388
|
responseData,
|
|
4577
4389
|
{ abortEarly: false, allowUnknown: true }
|
|
4578
4390
|
);
|
|
@@ -4595,19 +4407,44 @@ class Order {
|
|
|
4595
4407
|
* @param {OrderPlatformValidator.UpdateAddressParam} arg - Arg object
|
|
4596
4408
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
4597
4409
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
4598
|
-
* @returns {Promise<OrderPlatformModel.
|
|
4410
|
+
* @returns {Promise<OrderPlatformModel.BaseResponse>} - Success response
|
|
4599
4411
|
* @name updateAddress
|
|
4600
4412
|
* @summary: Update shipment address
|
|
4601
|
-
* @description:
|
|
4413
|
+
* @description: Modify the address details of an existing shipment - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/updateAddress/).
|
|
4602
4414
|
*/
|
|
4603
4415
|
async updateAddress(
|
|
4604
|
-
{
|
|
4416
|
+
{
|
|
4417
|
+
shipmentId,
|
|
4418
|
+
addressCategory,
|
|
4419
|
+
name,
|
|
4420
|
+
address,
|
|
4421
|
+
addressType,
|
|
4422
|
+
pincode,
|
|
4423
|
+
phone,
|
|
4424
|
+
email,
|
|
4425
|
+
landmark,
|
|
4426
|
+
city,
|
|
4427
|
+
state,
|
|
4428
|
+
country,
|
|
4429
|
+
requestHeaders,
|
|
4430
|
+
} = { requestHeaders: {} },
|
|
4605
4431
|
{ responseHeaders } = { responseHeaders: false }
|
|
4606
4432
|
) {
|
|
4607
4433
|
const { error } = OrderPlatformValidator.updateAddress().validate(
|
|
4608
4434
|
{
|
|
4609
4435
|
shipmentId,
|
|
4610
|
-
|
|
4436
|
+
addressCategory,
|
|
4437
|
+
|
|
4438
|
+
name,
|
|
4439
|
+
address,
|
|
4440
|
+
addressType,
|
|
4441
|
+
pincode,
|
|
4442
|
+
phone,
|
|
4443
|
+
email,
|
|
4444
|
+
landmark,
|
|
4445
|
+
city,
|
|
4446
|
+
state,
|
|
4447
|
+
country,
|
|
4611
4448
|
},
|
|
4612
4449
|
{ abortEarly: false, allowUnknown: true }
|
|
4613
4450
|
);
|
|
@@ -4619,7 +4456,18 @@ class Order {
|
|
|
4619
4456
|
const { error: warrning } = OrderPlatformValidator.updateAddress().validate(
|
|
4620
4457
|
{
|
|
4621
4458
|
shipmentId,
|
|
4622
|
-
|
|
4459
|
+
addressCategory,
|
|
4460
|
+
|
|
4461
|
+
name,
|
|
4462
|
+
address,
|
|
4463
|
+
addressType,
|
|
4464
|
+
pincode,
|
|
4465
|
+
phone,
|
|
4466
|
+
email,
|
|
4467
|
+
landmark,
|
|
4468
|
+
city,
|
|
4469
|
+
state,
|
|
4470
|
+
country,
|
|
4623
4471
|
},
|
|
4624
4472
|
{ abortEarly: false, allowUnknown: false }
|
|
4625
4473
|
);
|
|
@@ -4631,15 +4479,27 @@ class Order {
|
|
|
4631
4479
|
}
|
|
4632
4480
|
|
|
4633
4481
|
const query_params = {};
|
|
4482
|
+
query_params["shipment_id"] = shipmentId;
|
|
4483
|
+
query_params["name"] = name;
|
|
4484
|
+
query_params["address"] = address;
|
|
4485
|
+
query_params["address_type"] = addressType;
|
|
4486
|
+
query_params["pincode"] = pincode;
|
|
4487
|
+
query_params["phone"] = phone;
|
|
4488
|
+
query_params["email"] = email;
|
|
4489
|
+
query_params["landmark"] = landmark;
|
|
4490
|
+
query_params["address_category"] = addressCategory;
|
|
4491
|
+
query_params["city"] = city;
|
|
4492
|
+
query_params["state"] = state;
|
|
4493
|
+
query_params["country"] = country;
|
|
4634
4494
|
|
|
4635
4495
|
const xHeaders = {};
|
|
4636
4496
|
|
|
4637
4497
|
const response = await PlatformAPIClient.execute(
|
|
4638
4498
|
this.config,
|
|
4639
|
-
"
|
|
4640
|
-
`/service/platform/order-manage/v1.0/company/${this.config.companyId}/
|
|
4499
|
+
"post",
|
|
4500
|
+
`/service/platform/order-manage/v1.0/company/${this.config.companyId}/delight/update-address`,
|
|
4641
4501
|
query_params,
|
|
4642
|
-
|
|
4502
|
+
undefined,
|
|
4643
4503
|
{ ...xHeaders, ...requestHeaders },
|
|
4644
4504
|
{ responseHeaders }
|
|
4645
4505
|
);
|
|
@@ -4651,7 +4511,7 @@ class Order {
|
|
|
4651
4511
|
|
|
4652
4512
|
const {
|
|
4653
4513
|
error: res_error,
|
|
4654
|
-
} = OrderPlatformModel.
|
|
4514
|
+
} = OrderPlatformModel.BaseResponse().validate(responseData, {
|
|
4655
4515
|
abortEarly: false,
|
|
4656
4516
|
allowUnknown: true,
|
|
4657
4517
|
});
|
|
@@ -4674,7 +4534,7 @@ class Order {
|
|
|
4674
4534
|
* @param {OrderPlatformValidator.UpdatePackagingDimensionsParam} arg - Arg object
|
|
4675
4535
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
4676
4536
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
4677
|
-
* @returns {Promise<OrderPlatformModel.
|
|
4537
|
+
* @returns {Promise<OrderPlatformModel.UpdatePackagingDimensionsResponse>}
|
|
4678
4538
|
* - Success response
|
|
4679
4539
|
*
|
|
4680
4540
|
* @name updatePackagingDimensions
|
|
@@ -4734,7 +4594,7 @@ class Order {
|
|
|
4734
4594
|
|
|
4735
4595
|
const {
|
|
4736
4596
|
error: res_error,
|
|
4737
|
-
} = OrderPlatformModel.
|
|
4597
|
+
} = OrderPlatformModel.UpdatePackagingDimensionsResponse().validate(
|
|
4738
4598
|
responseData,
|
|
4739
4599
|
{ abortEarly: false, allowUnknown: true }
|
|
4740
4600
|
);
|
|
@@ -4753,90 +4613,12 @@ class Order {
|
|
|
4753
4613
|
return response;
|
|
4754
4614
|
}
|
|
4755
4615
|
|
|
4756
|
-
/**
|
|
4757
|
-
* @param {OrderPlatformValidator.UpdatePaymentInfoParam} arg - Arg object
|
|
4758
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
4759
|
-
* @param {import("../PlatformAPIClient").Options} - Options
|
|
4760
|
-
* @returns {Promise<Object>} - Success response
|
|
4761
|
-
* @name updatePaymentInfo
|
|
4762
|
-
* @summary: Update payment details for an order, its shipments and its bags.
|
|
4763
|
-
* @description: Updates the payment mode for an order, its shipments and its bags. This endpoint allows for modifying payment methods, and associated details but not amount. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/updatePaymentInfo/).
|
|
4764
|
-
*/
|
|
4765
|
-
async updatePaymentInfo(
|
|
4766
|
-
{ body, requestHeaders } = { requestHeaders: {} },
|
|
4767
|
-
{ responseHeaders } = { responseHeaders: false }
|
|
4768
|
-
) {
|
|
4769
|
-
const { error } = OrderPlatformValidator.updatePaymentInfo().validate(
|
|
4770
|
-
{
|
|
4771
|
-
body,
|
|
4772
|
-
},
|
|
4773
|
-
{ abortEarly: false, allowUnknown: true }
|
|
4774
|
-
);
|
|
4775
|
-
if (error) {
|
|
4776
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
4777
|
-
}
|
|
4778
|
-
|
|
4779
|
-
// Showing warrnings if extra unknown parameters are found
|
|
4780
|
-
const {
|
|
4781
|
-
error: warrning,
|
|
4782
|
-
} = OrderPlatformValidator.updatePaymentInfo().validate(
|
|
4783
|
-
{
|
|
4784
|
-
body,
|
|
4785
|
-
},
|
|
4786
|
-
{ abortEarly: false, allowUnknown: false }
|
|
4787
|
-
);
|
|
4788
|
-
if (warrning) {
|
|
4789
|
-
Logger({
|
|
4790
|
-
level: "WARN",
|
|
4791
|
-
message: `Parameter Validation warrnings for platform > Order > updatePaymentInfo \n ${warrning}`,
|
|
4792
|
-
});
|
|
4793
|
-
}
|
|
4794
|
-
|
|
4795
|
-
const query_params = {};
|
|
4796
|
-
|
|
4797
|
-
const xHeaders = {};
|
|
4798
|
-
|
|
4799
|
-
const response = await PlatformAPIClient.execute(
|
|
4800
|
-
this.config,
|
|
4801
|
-
"put",
|
|
4802
|
-
`/service/platform/order-manage/v1.0/company/${this.config.companyId}/payment/update`,
|
|
4803
|
-
query_params,
|
|
4804
|
-
body,
|
|
4805
|
-
{ ...xHeaders, ...requestHeaders },
|
|
4806
|
-
{ responseHeaders }
|
|
4807
|
-
);
|
|
4808
|
-
|
|
4809
|
-
let responseData = response;
|
|
4810
|
-
if (responseHeaders) {
|
|
4811
|
-
responseData = response[0];
|
|
4812
|
-
}
|
|
4813
|
-
|
|
4814
|
-
const { error: res_error } = Joi.any().validate(responseData, {
|
|
4815
|
-
abortEarly: false,
|
|
4816
|
-
allowUnknown: true,
|
|
4817
|
-
});
|
|
4818
|
-
|
|
4819
|
-
if (res_error) {
|
|
4820
|
-
if (this.config.options.strictResponseCheck === true) {
|
|
4821
|
-
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
4822
|
-
} else {
|
|
4823
|
-
Logger({
|
|
4824
|
-
level: "WARN",
|
|
4825
|
-
message: `Response Validation Warnings for platform > Order > updatePaymentInfo \n ${res_error}`,
|
|
4826
|
-
});
|
|
4827
|
-
}
|
|
4828
|
-
}
|
|
4829
|
-
|
|
4830
|
-
return response;
|
|
4831
|
-
}
|
|
4832
|
-
|
|
4833
4616
|
/**
|
|
4834
4617
|
* @param {OrderPlatformValidator.UpdateShipmentLockParam} arg - Arg object
|
|
4835
4618
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
4836
4619
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
4837
|
-
* @returns {Promise<OrderPlatformModel.
|
|
4838
|
-
*
|
|
4839
|
-
*
|
|
4620
|
+
* @returns {Promise<OrderPlatformModel.UpdateShipmentLockResponse>} -
|
|
4621
|
+
* Success response
|
|
4840
4622
|
* @name updateShipmentLock
|
|
4841
4623
|
* @summary: Update a shipment lock
|
|
4842
4624
|
* @description: Modify shipment/bag lock status and update lock/unlock messages. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/updateShipmentLock/).
|
|
@@ -4892,10 +4674,10 @@ class Order {
|
|
|
4892
4674
|
|
|
4893
4675
|
const {
|
|
4894
4676
|
error: res_error,
|
|
4895
|
-
} = OrderPlatformModel.
|
|
4896
|
-
|
|
4897
|
-
|
|
4898
|
-
);
|
|
4677
|
+
} = OrderPlatformModel.UpdateShipmentLockResponse().validate(responseData, {
|
|
4678
|
+
abortEarly: false,
|
|
4679
|
+
allowUnknown: true,
|
|
4680
|
+
});
|
|
4899
4681
|
|
|
4900
4682
|
if (res_error) {
|
|
4901
4683
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -5076,7 +4858,7 @@ class Order {
|
|
|
5076
4858
|
* @param {OrderPlatformValidator.UploadConsentsParam} arg - Arg object
|
|
5077
4859
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
5078
4860
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
5079
|
-
* @returns {Promise<OrderPlatformModel.
|
|
4861
|
+
* @returns {Promise<OrderPlatformModel.SuccessResponse>} - Success response
|
|
5080
4862
|
* @name uploadConsents
|
|
5081
4863
|
* @summary: Upload consent
|
|
5082
4864
|
* @description: Uploads the consent signed by courier partner and seller to keep records - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/uploadConsents/).
|
|
@@ -5132,7 +4914,7 @@ class Order {
|
|
|
5132
4914
|
|
|
5133
4915
|
const {
|
|
5134
4916
|
error: res_error,
|
|
5135
|
-
} = OrderPlatformModel.
|
|
4917
|
+
} = OrderPlatformModel.SuccessResponse().validate(responseData, {
|
|
5136
4918
|
abortEarly: false,
|
|
5137
4919
|
allowUnknown: true,
|
|
5138
4920
|
});
|
|
@@ -5155,7 +4937,7 @@ class Order {
|
|
|
5155
4937
|
* @param {OrderPlatformValidator.VerifyMobileOTPParam} arg - Arg object
|
|
5156
4938
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
5157
4939
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
5158
|
-
* @returns {Promise<OrderPlatformModel.
|
|
4940
|
+
* @returns {Promise<OrderPlatformModel.VerifyOtpResponse>} - Success response
|
|
5159
4941
|
* @name verifyMobileOTP
|
|
5160
4942
|
* @summary: Verify mobile OTP
|
|
5161
4943
|
* @description: Perform OTP verification to link a user to an anonymous order - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/verifyMobileOTP/).
|
|
@@ -5211,7 +4993,7 @@ class Order {
|
|
|
5211
4993
|
|
|
5212
4994
|
const {
|
|
5213
4995
|
error: res_error,
|
|
5214
|
-
} = OrderPlatformModel.
|
|
4996
|
+
} = OrderPlatformModel.VerifyOtpResponse().validate(responseData, {
|
|
5215
4997
|
abortEarly: false,
|
|
5216
4998
|
allowUnknown: true,
|
|
5217
4999
|
});
|