@gofynd/fdk-client-javascript 3.16.3 → 3.17.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/ApplicationClient.d.ts +0 -2
- package/sdk/application/ApplicationClient.js +0 -2
- package/sdk/application/Content/ContentApplicationClient.d.ts +10 -0
- package/sdk/application/Content/ContentApplicationClient.js +53 -0
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +11 -21
- package/sdk/application/Logistic/LogisticApplicationClient.js +34 -83
- package/sdk/application/Order/OrderApplicationClient.d.ts +11 -0
- package/sdk/application/Order/OrderApplicationClient.js +50 -0
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +4 -4
- package/sdk/application/Payment/PaymentApplicationClient.js +3 -4
- package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +84 -0
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +712 -0
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +237 -1
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +157 -0
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +8 -0
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +70 -0
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +3 -3
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +3 -3
- package/sdk/platform/Cart/CartPlatformModel.d.ts +1 -4
- package/sdk/platform/Cart/CartPlatformModel.js +1 -1
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +2 -2
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +0 -11
- package/sdk/platform/Catalog/CatalogPlatformClient.js +0 -80
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +6 -131
- package/sdk/platform/Catalog/CatalogPlatformModel.js +4 -141
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +1 -10
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +0 -12
- package/sdk/platform/Common/CommonPlatformModel.d.ts +18 -1
- package/sdk/platform/Common/CommonPlatformModel.js +14 -0
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +1 -73
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +4 -462
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +7 -45
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +4 -55
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +10 -2
- package/sdk/platform/Communication/CommunicationPlatformModel.js +3 -2
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +14 -0
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +6 -0
- package/sdk/platform/Order/OrderPlatformClient.d.ts +26 -18
- package/sdk/platform/Order/OrderPlatformClient.js +175 -107
- package/sdk/platform/Order/OrderPlatformModel.d.ts +339 -43
- package/sdk/platform/Order/OrderPlatformModel.js +209 -43
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +40 -43
- package/sdk/platform/Order/OrderPlatformValidator.js +35 -30
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +20 -10
- package/sdk/platform/Payment/PaymentPlatformModel.js +14 -10
- package/sdk/platform/PlatformApplicationClient.d.ts +0 -2
- package/sdk/platform/PlatformApplicationClient.js +0 -4
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +0 -13
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +0 -82
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +1 -10
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +0 -12
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +212 -28
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +133 -13
- package/sdk/platform/User/UserPlatformModel.d.ts +2 -2
- package/sdk/platform/User/UserPlatformModel.js +4 -4
- package/sdk/platform/index.d.ts +0 -1
- package/sdk/platform/index.js +0 -2
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +27 -1
- package/sdk/public/Configuration/ConfigurationPublicModel.js +19 -0
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +0 -79
- package/sdk/application/Rewards/RewardsApplicationClient.js +0 -315
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +0 -136
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +0 -976
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +0 -152
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +0 -157
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +0 -387
- package/sdk/platform/Rewards/RewardsPlatformModel.js +0 -410
|
@@ -684,27 +684,22 @@ class Order {
|
|
|
684
684
|
}
|
|
685
685
|
|
|
686
686
|
/**
|
|
687
|
-
* @param {OrderPlatformValidator.
|
|
687
|
+
* @param {OrderPlatformValidator.CreateShipmentPackagesParam} arg - Arg object
|
|
688
688
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
689
689
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
690
|
-
* @returns {Promise<OrderPlatformModel.
|
|
691
|
-
* @name
|
|
692
|
-
* @summary: Create
|
|
693
|
-
* @description:
|
|
690
|
+
* @returns {Promise<OrderPlatformModel.BaseResponseSchema>} - Success response
|
|
691
|
+
* @name createShipmentPackages
|
|
692
|
+
* @summary: Create shipment packages
|
|
693
|
+
* @description: Create new packages for a shipment, enabling Multi-Piece Shipment (MPS) functionality. This operation validates courier partner availability and performs bag breaking as per number of packages. The system automatically validates MPS eligibility and store configuration before creating packages. If the store is not eligible for MPS, it will not let the user create packages. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/order/createShipmentPackages/).
|
|
694
694
|
*/
|
|
695
|
-
async
|
|
696
|
-
{
|
|
697
|
-
requestHeaders: {},
|
|
698
|
-
},
|
|
695
|
+
async createShipmentPackages(
|
|
696
|
+
{ shipmentId, body, requestHeaders } = { requestHeaders: {} },
|
|
699
697
|
{ responseHeaders } = { responseHeaders: false }
|
|
700
698
|
) {
|
|
701
|
-
const { error } = OrderPlatformValidator.
|
|
699
|
+
const { error } = OrderPlatformValidator.createShipmentPackages().validate(
|
|
702
700
|
{
|
|
703
|
-
|
|
704
|
-
|
|
701
|
+
shipmentId,
|
|
705
702
|
body,
|
|
706
|
-
xApplicationId,
|
|
707
|
-
xExtensionId,
|
|
708
703
|
},
|
|
709
704
|
{ abortEarly: false, allowUnknown: true }
|
|
710
705
|
);
|
|
@@ -715,34 +710,28 @@ class Order {
|
|
|
715
710
|
// Showing warrnings if extra unknown parameters are found
|
|
716
711
|
const {
|
|
717
712
|
error: warrning,
|
|
718
|
-
} = OrderPlatformValidator.
|
|
713
|
+
} = OrderPlatformValidator.createShipmentPackages().validate(
|
|
719
714
|
{
|
|
720
|
-
|
|
721
|
-
|
|
715
|
+
shipmentId,
|
|
722
716
|
body,
|
|
723
|
-
xApplicationId,
|
|
724
|
-
xExtensionId,
|
|
725
717
|
},
|
|
726
718
|
{ abortEarly: false, allowUnknown: false }
|
|
727
719
|
);
|
|
728
720
|
if (warrning) {
|
|
729
721
|
Logger({
|
|
730
722
|
level: "WARN",
|
|
731
|
-
message: `Parameter Validation warrnings for platform > Order >
|
|
723
|
+
message: `Parameter Validation warrnings for platform > Order > createShipmentPackages \n ${warrning}`,
|
|
732
724
|
});
|
|
733
725
|
}
|
|
734
726
|
|
|
735
727
|
const query_params = {};
|
|
736
728
|
|
|
737
729
|
const xHeaders = {};
|
|
738
|
-
xHeaders["x-ordering-source"] = xOrderingSource;
|
|
739
|
-
xHeaders["x-application-id"] = xApplicationId;
|
|
740
|
-
xHeaders["x-extension-id"] = xExtensionId;
|
|
741
730
|
|
|
742
731
|
const response = await PlatformAPIClient.execute(
|
|
743
732
|
this.config,
|
|
744
733
|
"post",
|
|
745
|
-
`/service/platform/order-manage/v1.0/company/${this.config.companyId}/
|
|
734
|
+
`/service/platform/order-manage/v1.0/company/${this.config.companyId}/shipment/${shipmentId}/packages`,
|
|
746
735
|
query_params,
|
|
747
736
|
body,
|
|
748
737
|
{ ...xHeaders, ...requestHeaders },
|
|
@@ -756,7 +745,7 @@ class Order {
|
|
|
756
745
|
|
|
757
746
|
const {
|
|
758
747
|
error: res_error,
|
|
759
|
-
} = OrderPlatformModel.
|
|
748
|
+
} = OrderPlatformModel.BaseResponseSchema().validate(responseData, {
|
|
760
749
|
abortEarly: false,
|
|
761
750
|
allowUnknown: true,
|
|
762
751
|
});
|
|
@@ -767,7 +756,7 @@ class Order {
|
|
|
767
756
|
} else {
|
|
768
757
|
Logger({
|
|
769
758
|
level: "WARN",
|
|
770
|
-
message: `Response Validation Warnings for platform > Order >
|
|
759
|
+
message: `Response Validation Warnings for platform > Order > createShipmentPackages \n ${res_error}`,
|
|
771
760
|
});
|
|
772
761
|
}
|
|
773
762
|
}
|
|
@@ -3737,6 +3726,85 @@ class Order {
|
|
|
3737
3726
|
return response;
|
|
3738
3727
|
}
|
|
3739
3728
|
|
|
3729
|
+
/**
|
|
3730
|
+
* @param {OrderPlatformValidator.GetShipmentPackagesParam} arg - Arg object
|
|
3731
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3732
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
3733
|
+
* @returns {Promise<OrderPlatformModel.PackagesResponseSchema>} - Success response
|
|
3734
|
+
* @name getShipmentPackages
|
|
3735
|
+
* @summary: Get shipment packages
|
|
3736
|
+
* @description: Retrieve all packages associated with a specific shipment. This endpoint supports both single-piece and multi-piece shipments. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/order/getShipmentPackages/).
|
|
3737
|
+
*/
|
|
3738
|
+
async getShipmentPackages(
|
|
3739
|
+
{ shipmentId, requestHeaders } = { requestHeaders: {} },
|
|
3740
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
3741
|
+
) {
|
|
3742
|
+
const { error } = OrderPlatformValidator.getShipmentPackages().validate(
|
|
3743
|
+
{
|
|
3744
|
+
shipmentId,
|
|
3745
|
+
},
|
|
3746
|
+
{ abortEarly: false, allowUnknown: true }
|
|
3747
|
+
);
|
|
3748
|
+
if (error) {
|
|
3749
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
3750
|
+
}
|
|
3751
|
+
|
|
3752
|
+
// Showing warrnings if extra unknown parameters are found
|
|
3753
|
+
const {
|
|
3754
|
+
error: warrning,
|
|
3755
|
+
} = OrderPlatformValidator.getShipmentPackages().validate(
|
|
3756
|
+
{
|
|
3757
|
+
shipmentId,
|
|
3758
|
+
},
|
|
3759
|
+
{ abortEarly: false, allowUnknown: false }
|
|
3760
|
+
);
|
|
3761
|
+
if (warrning) {
|
|
3762
|
+
Logger({
|
|
3763
|
+
level: "WARN",
|
|
3764
|
+
message: `Parameter Validation warrnings for platform > Order > getShipmentPackages \n ${warrning}`,
|
|
3765
|
+
});
|
|
3766
|
+
}
|
|
3767
|
+
|
|
3768
|
+
const query_params = {};
|
|
3769
|
+
|
|
3770
|
+
const xHeaders = {};
|
|
3771
|
+
|
|
3772
|
+
const response = await PlatformAPIClient.execute(
|
|
3773
|
+
this.config,
|
|
3774
|
+
"get",
|
|
3775
|
+
`/service/platform/order-manage/v1.0/company/${this.config.companyId}/shipment/${shipmentId}/packages`,
|
|
3776
|
+
query_params,
|
|
3777
|
+
undefined,
|
|
3778
|
+
{ ...xHeaders, ...requestHeaders },
|
|
3779
|
+
{ responseHeaders }
|
|
3780
|
+
);
|
|
3781
|
+
|
|
3782
|
+
let responseData = response;
|
|
3783
|
+
if (responseHeaders) {
|
|
3784
|
+
responseData = response[0];
|
|
3785
|
+
}
|
|
3786
|
+
|
|
3787
|
+
const {
|
|
3788
|
+
error: res_error,
|
|
3789
|
+
} = OrderPlatformModel.PackagesResponseSchema().validate(responseData, {
|
|
3790
|
+
abortEarly: false,
|
|
3791
|
+
allowUnknown: true,
|
|
3792
|
+
});
|
|
3793
|
+
|
|
3794
|
+
if (res_error) {
|
|
3795
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
3796
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
3797
|
+
} else {
|
|
3798
|
+
Logger({
|
|
3799
|
+
level: "WARN",
|
|
3800
|
+
message: `Response Validation Warnings for platform > Order > getShipmentPackages \n ${res_error}`,
|
|
3801
|
+
});
|
|
3802
|
+
}
|
|
3803
|
+
}
|
|
3804
|
+
|
|
3805
|
+
return response;
|
|
3806
|
+
}
|
|
3807
|
+
|
|
3740
3808
|
/**
|
|
3741
3809
|
* @param {OrderPlatformValidator.GetShipmentReasonsParam} arg - Arg object
|
|
3742
3810
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -4565,87 +4633,6 @@ class Order {
|
|
|
4565
4633
|
return response;
|
|
4566
4634
|
}
|
|
4567
4635
|
|
|
4568
|
-
/**
|
|
4569
|
-
* @param {OrderPlatformValidator.InvalidateShipmentCacheParam} arg - Arg object
|
|
4570
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
4571
|
-
* @param {import("../PlatformAPIClient").Options} - Options
|
|
4572
|
-
* @returns {Promise<OrderPlatformModel.InvalidateShipmentCacheResponseSchema>}
|
|
4573
|
-
* - Success response
|
|
4574
|
-
*
|
|
4575
|
-
* @name invalidateShipmentCache
|
|
4576
|
-
* @summary: Invalidate shipment cache
|
|
4577
|
-
* @description: Clear the existing shipment cache data stored in Redis and serialize the updated data for subsequent use. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/order/invalidateShipmentCache/).
|
|
4578
|
-
*/
|
|
4579
|
-
async invalidateShipmentCache(
|
|
4580
|
-
{ body, requestHeaders } = { requestHeaders: {} },
|
|
4581
|
-
{ responseHeaders } = { responseHeaders: false }
|
|
4582
|
-
) {
|
|
4583
|
-
const { error } = OrderPlatformValidator.invalidateShipmentCache().validate(
|
|
4584
|
-
{
|
|
4585
|
-
body,
|
|
4586
|
-
},
|
|
4587
|
-
{ abortEarly: false, allowUnknown: true }
|
|
4588
|
-
);
|
|
4589
|
-
if (error) {
|
|
4590
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
4591
|
-
}
|
|
4592
|
-
|
|
4593
|
-
// Showing warrnings if extra unknown parameters are found
|
|
4594
|
-
const {
|
|
4595
|
-
error: warrning,
|
|
4596
|
-
} = OrderPlatformValidator.invalidateShipmentCache().validate(
|
|
4597
|
-
{
|
|
4598
|
-
body,
|
|
4599
|
-
},
|
|
4600
|
-
{ abortEarly: false, allowUnknown: false }
|
|
4601
|
-
);
|
|
4602
|
-
if (warrning) {
|
|
4603
|
-
Logger({
|
|
4604
|
-
level: "WARN",
|
|
4605
|
-
message: `Parameter Validation warrnings for platform > Order > invalidateShipmentCache \n ${warrning}`,
|
|
4606
|
-
});
|
|
4607
|
-
}
|
|
4608
|
-
|
|
4609
|
-
const query_params = {};
|
|
4610
|
-
|
|
4611
|
-
const xHeaders = {};
|
|
4612
|
-
|
|
4613
|
-
const response = await PlatformAPIClient.execute(
|
|
4614
|
-
this.config,
|
|
4615
|
-
"put",
|
|
4616
|
-
`/service/platform/order-manage/v1.0/company/${this.config.companyId}/update-cache`,
|
|
4617
|
-
query_params,
|
|
4618
|
-
body,
|
|
4619
|
-
{ ...xHeaders, ...requestHeaders },
|
|
4620
|
-
{ responseHeaders }
|
|
4621
|
-
);
|
|
4622
|
-
|
|
4623
|
-
let responseData = response;
|
|
4624
|
-
if (responseHeaders) {
|
|
4625
|
-
responseData = response[0];
|
|
4626
|
-
}
|
|
4627
|
-
|
|
4628
|
-
const {
|
|
4629
|
-
error: res_error,
|
|
4630
|
-
} = OrderPlatformModel.InvalidateShipmentCacheResponseSchema().validate(
|
|
4631
|
-
responseData,
|
|
4632
|
-
{ abortEarly: false, allowUnknown: true }
|
|
4633
|
-
);
|
|
4634
|
-
|
|
4635
|
-
if (res_error) {
|
|
4636
|
-
if (this.config.options.strictResponseCheck === true) {
|
|
4637
|
-
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
4638
|
-
} else {
|
|
4639
|
-
Logger({
|
|
4640
|
-
level: "WARN",
|
|
4641
|
-
message: `Response Validation Warnings for platform > Order > invalidateShipmentCache \n ${res_error}`,
|
|
4642
|
-
});
|
|
4643
|
-
}
|
|
4644
|
-
}
|
|
4645
|
-
|
|
4646
|
-
return response;
|
|
4647
|
-
}
|
|
4648
|
-
|
|
4649
4636
|
/**
|
|
4650
4637
|
* @param {OrderPlatformValidator.JobDetailsParam} arg - Arg object
|
|
4651
4638
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -5688,6 +5675,87 @@ class Order {
|
|
|
5688
5675
|
return response;
|
|
5689
5676
|
}
|
|
5690
5677
|
|
|
5678
|
+
/**
|
|
5679
|
+
* @param {OrderPlatformValidator.UpdateShipmentPackagesParam} arg - Arg object
|
|
5680
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
5681
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
5682
|
+
* @returns {Promise<OrderPlatformModel.BaseResponseSchema>} - Success response
|
|
5683
|
+
* @name updateShipmentPackages
|
|
5684
|
+
* @summary: Update shipment packages
|
|
5685
|
+
* @description: Update existing packages for a shipment. This operation replaces all existing packages with the provided package list. The system validates courier partner availability and performs bag breaking as per number of packages. Any packages without IDs will have new unique IDs generated. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/order/updateShipmentPackages/).
|
|
5686
|
+
*/
|
|
5687
|
+
async updateShipmentPackages(
|
|
5688
|
+
{ shipmentId, body, requestHeaders } = { requestHeaders: {} },
|
|
5689
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
5690
|
+
) {
|
|
5691
|
+
const { error } = OrderPlatformValidator.updateShipmentPackages().validate(
|
|
5692
|
+
{
|
|
5693
|
+
shipmentId,
|
|
5694
|
+
body,
|
|
5695
|
+
},
|
|
5696
|
+
{ abortEarly: false, allowUnknown: true }
|
|
5697
|
+
);
|
|
5698
|
+
if (error) {
|
|
5699
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
5700
|
+
}
|
|
5701
|
+
|
|
5702
|
+
// Showing warrnings if extra unknown parameters are found
|
|
5703
|
+
const {
|
|
5704
|
+
error: warrning,
|
|
5705
|
+
} = OrderPlatformValidator.updateShipmentPackages().validate(
|
|
5706
|
+
{
|
|
5707
|
+
shipmentId,
|
|
5708
|
+
body,
|
|
5709
|
+
},
|
|
5710
|
+
{ abortEarly: false, allowUnknown: false }
|
|
5711
|
+
);
|
|
5712
|
+
if (warrning) {
|
|
5713
|
+
Logger({
|
|
5714
|
+
level: "WARN",
|
|
5715
|
+
message: `Parameter Validation warrnings for platform > Order > updateShipmentPackages \n ${warrning}`,
|
|
5716
|
+
});
|
|
5717
|
+
}
|
|
5718
|
+
|
|
5719
|
+
const query_params = {};
|
|
5720
|
+
|
|
5721
|
+
const xHeaders = {};
|
|
5722
|
+
|
|
5723
|
+
const response = await PlatformAPIClient.execute(
|
|
5724
|
+
this.config,
|
|
5725
|
+
"put",
|
|
5726
|
+
`/service/platform/order-manage/v1.0/company/${this.config.companyId}/shipment/${shipmentId}/packages`,
|
|
5727
|
+
query_params,
|
|
5728
|
+
body,
|
|
5729
|
+
{ ...xHeaders, ...requestHeaders },
|
|
5730
|
+
{ responseHeaders }
|
|
5731
|
+
);
|
|
5732
|
+
|
|
5733
|
+
let responseData = response;
|
|
5734
|
+
if (responseHeaders) {
|
|
5735
|
+
responseData = response[0];
|
|
5736
|
+
}
|
|
5737
|
+
|
|
5738
|
+
const {
|
|
5739
|
+
error: res_error,
|
|
5740
|
+
} = OrderPlatformModel.BaseResponseSchema().validate(responseData, {
|
|
5741
|
+
abortEarly: false,
|
|
5742
|
+
allowUnknown: true,
|
|
5743
|
+
});
|
|
5744
|
+
|
|
5745
|
+
if (res_error) {
|
|
5746
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
5747
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
5748
|
+
} else {
|
|
5749
|
+
Logger({
|
|
5750
|
+
level: "WARN",
|
|
5751
|
+
message: `Response Validation Warnings for platform > Order > updateShipmentPackages \n ${res_error}`,
|
|
5752
|
+
});
|
|
5753
|
+
}
|
|
5754
|
+
}
|
|
5755
|
+
|
|
5756
|
+
return response;
|
|
5757
|
+
}
|
|
5758
|
+
|
|
5691
5759
|
/**
|
|
5692
5760
|
* @param {OrderPlatformValidator.UpdateShipmentStatusParam} arg - Arg object
|
|
5693
5761
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|