@gofynd/fdk-client-javascript 1.4.3 → 1.4.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 -10
- package/application.d.ts +3 -3
- package/common.d.ts +3 -3
- package/index.d.ts +15 -15
- package/package.json +1 -1
- package/partner.d.ts +3 -3
- package/platform.d.ts +3 -3
- package/public.d.ts +2 -2
- package/sdk/application/ApplicationAPIClient.d.ts +1 -1
- package/sdk/application/ApplicationClient.d.ts +17 -17
- package/sdk/application/ApplicationConfig.d.ts +3 -3
- package/sdk/application/Cart/CartApplicationClient.d.ts +50 -50
- package/sdk/application/Cart/CartApplicationClient.js +48 -48
- package/sdk/application/Cart/CartApplicationValidator.d.ts +1 -1
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +72 -72
- package/sdk/application/Catalog/CatalogApplicationClient.js +69 -69
- package/sdk/application/Common/CommonApplicationClient.d.ts +6 -6
- package/sdk/application/Common/CommonApplicationClient.js +4 -4
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +8 -8
- package/sdk/application/Communication/CommunicationApplicationClient.js +6 -6
- package/sdk/application/Communication/CommunicationApplicationValidator.d.ts +1 -1
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +34 -34
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +32 -32
- package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +1 -1
- package/sdk/application/Content/ContentApplicationClient.d.ts +48 -48
- package/sdk/application/Content/ContentApplicationClient.js +45 -45
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +7 -7
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +5 -5
- package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +1 -1
- package/sdk/application/Lead/LeadApplicationClient.d.ts +11 -11
- package/sdk/application/Lead/LeadApplicationClient.js +9 -9
- package/sdk/application/Lead/LeadApplicationValidator.d.ts +1 -1
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +24 -24
- package/sdk/application/Logistic/LogisticApplicationClient.js +22 -22
- package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +1 -1
- package/sdk/application/Order/OrderApplicationClient.d.ts +16 -27
- package/sdk/application/Order/OrderApplicationClient.js +14 -94
- package/sdk/application/Order/OrderApplicationValidator.d.ts +2 -16
- package/sdk/application/Order/OrderApplicationValidator.js +0 -13
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +73 -73
- package/sdk/application/Payment/PaymentApplicationClient.js +71 -71
- package/sdk/application/Payment/PaymentApplicationValidator.d.ts +1 -1
- package/sdk/application/PosCart/PosCartApplicationClient.d.ts +2 -2
- package/sdk/application/PosCart/PosCartApplicationValidator.d.ts +1 -1
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +3 -3
- package/sdk/application/Rewards/RewardsApplicationClient.js +1 -1
- package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +1 -1
- package/sdk/application/Share/ShareApplicationClient.d.ts +3 -3
- package/sdk/application/Share/ShareApplicationClient.js +1 -1
- package/sdk/application/Share/ShareApplicationValidator.d.ts +1 -1
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +10 -10
- package/sdk/application/Theme/ThemeApplicationClient.js +8 -8
- package/sdk/application/User/UserApplicationClient.d.ts +76 -76
- package/sdk/application/User/UserApplicationClient.js +74 -74
- package/sdk/application/User/UserApplicationValidator.d.ts +1 -1
- package/sdk/application/index.d.ts +18 -18
- package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +1 -1
- package/sdk/partner/Lead/LeadPartnerClient.d.ts +2 -2
- package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +1 -1
- package/sdk/partner/OAuthClient.d.ts +4 -4
- package/sdk/partner/PartnerAPIClient.d.ts +1 -1
- package/sdk/partner/PartnerClient.d.ts +6 -6
- package/sdk/partner/PartnerConfig.d.ts +4 -4
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +1 -1
- package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +1 -1
- package/sdk/partner/index.d.ts +7 -7
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +7 -7
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +5 -5
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +1 -1
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +15 -15
- package/sdk/platform/Billing/BillingPlatformClient.js +13 -13
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +1 -1
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +104 -104
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +102 -102
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +1 -1
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +135 -134
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +132 -131
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +1 -1
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +133 -133
- package/sdk/platform/Catalog/CatalogPlatformClient.js +130 -130
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +1 -1
- package/sdk/platform/Common/CommonPlatformClient.d.ts +4 -4
- package/sdk/platform/Common/CommonPlatformClient.js +2 -2
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +120 -120
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +118 -118
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +1 -1
- package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +3 -3
- package/sdk/platform/Communication/CommunicationPlatformClient.js +1 -1
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +25 -25
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +22 -22
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +1 -1
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +43 -43
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +41 -41
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +1 -1
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +28 -28
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +26 -26
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +1 -1
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +96 -96
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +93 -93
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +1 -1
- package/sdk/platform/Content/ContentPlatformClient.d.ts +31 -31
- package/sdk/platform/Content/ContentPlatformClient.js +29 -29
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +1 -1
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +20 -20
- package/sdk/platform/Discount/DiscountPlatformClient.js +18 -18
- package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +1 -1
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +20 -19
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +18 -17
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +1 -1
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +8 -8
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +6 -6
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +2 -2
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +1 -1
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +6 -6
- package/sdk/platform/Finance/FinancePlatformClient.js +4 -4
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +1 -1
- package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +14 -14
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +12 -12
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +1 -1
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +17 -17
- package/sdk/platform/Lead/LeadPlatformClient.js +15 -15
- package/sdk/platform/Lead/LeadPlatformValidator.d.ts +1 -1
- package/sdk/platform/OAuthClient.d.ts +3 -3
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +12 -12
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +10 -10
- package/sdk/platform/Order/OrderPlatformClient.d.ts +97 -108
- package/sdk/platform/Order/OrderPlatformClient.js +95 -190
- package/sdk/platform/Order/OrderPlatformModel.d.ts +10 -0
- package/sdk/platform/Order/OrderPlatformModel.js +4 -0
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +2 -34
- package/sdk/platform/Order/OrderPlatformValidator.js +0 -20
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +6 -6
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +4 -4
- package/sdk/platform/Partner/PartnerPlatformApplicationValidator.d.ts +1 -1
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +79 -79
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +77 -77
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +1 -1
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +4 -4
- package/sdk/platform/Payment/PaymentPlatformClient.js +2 -2
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +7 -0
- package/sdk/platform/Payment/PaymentPlatformModel.js +3 -0
- package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +1 -1
- package/sdk/platform/PlatformAPIClient.d.ts +1 -1
- package/sdk/platform/PlatformApplicationClient.d.ts +16 -16
- package/sdk/platform/PlatformClient.d.ts +19 -21
- package/sdk/platform/PlatformClient.js +0 -4
- package/sdk/platform/PlatformConfig.d.ts +4 -4
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +9 -9
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +7 -7
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +1 -1
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +42 -42
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +40 -40
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +1 -1
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +53 -52
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +51 -50
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +1 -1
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +3 -3
- package/sdk/platform/Share/SharePlatformApplicationClient.js +1 -1
- package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +1 -1
- package/sdk/platform/Share/SharePlatformModel.d.ts +2 -0
- package/sdk/platform/Share/SharePlatformModel.js +2 -0
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +36 -106
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +34 -591
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +2 -101
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +0 -92
- package/sdk/platform/Theme/ThemePlatformClient.d.ts +8 -8
- package/sdk/platform/Theme/ThemePlatformClient.js +6 -6
- package/sdk/platform/Theme/ThemePlatformValidator.d.ts +1 -1
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +37 -37
- package/sdk/platform/User/UserPlatformApplicationClient.js +35 -35
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +1 -1
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +9 -8
- package/sdk/platform/Webhook/WebhookPlatformClient.js +7 -6
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +1 -1
- package/sdk/platform/index.d.ts +24 -25
- package/sdk/platform/index.js +0 -2
- package/sdk/public/Billing/BillingPublicClient.d.ts +2 -2
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +2 -2
- package/sdk/public/Content/ContentPublicClient.d.ts +2 -2
- package/sdk/public/Inventory/InventoryPublicClient.d.ts +2 -2
- package/sdk/public/Inventory/InventoryPublicValidator.d.ts +1 -1
- package/sdk/public/Partner/PartnerPublicClient.d.ts +2 -2
- package/sdk/public/PublicAPIClient.d.ts +1 -1
- package/sdk/public/PublicClient.d.ts +7 -7
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +2 -2
- package/sdk/public/Webhook/WebhookPublicValidator.d.ts +1 -1
- package/sdk/public/index.d.ts +8 -8
- package/sdk/platform/Inventory/InventoryPlatformClient.d.ts +0 -152
- package/sdk/platform/Inventory/InventoryPlatformClient.js +0 -1017
- package/sdk/platform/Inventory/InventoryPlatformModel.d.ts +0 -1355
- package/sdk/platform/Inventory/InventoryPlatformModel.js +0 -1544
- package/sdk/platform/Inventory/InventoryPlatformValidator.d.ts +0 -171
- package/sdk/platform/Inventory/InventoryPlatformValidator.js +0 -159
|
@@ -20,8 +20,6 @@ class Order {
|
|
|
20
20
|
"/service/application/order/v1.0/orders/shipments/{shipment_id}/invoice",
|
|
21
21
|
getOrderById: "/service/application/order/v1.0/orders/{order_id}",
|
|
22
22
|
getOrders: "/service/application/order/v1.0/orders",
|
|
23
|
-
getPosOrderById:
|
|
24
|
-
"/service/application/order/v1.0/orders/pos-order/{order_id}",
|
|
25
23
|
getShipmentBagReasons:
|
|
26
24
|
"/service/application/order/v1.0/orders/shipments/{shipment_id}/bags/{bag_id}/reasons",
|
|
27
25
|
getShipmentById:
|
|
@@ -62,7 +60,7 @@ class Order {
|
|
|
62
60
|
* @returns {Promise<OrderApplicationModel.CustomerDetailsResponse>} -
|
|
63
61
|
* Success response
|
|
64
62
|
* @name getCustomerDetailsByShipmentId
|
|
65
|
-
* @summary:
|
|
63
|
+
* @summary: Get shipment's customer
|
|
66
64
|
* @description: Retrieve customer details such as mobile number using Shipment ID. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/order/getCustomerDetailsByShipmentId/).
|
|
67
65
|
*/
|
|
68
66
|
async getCustomerDetailsByShipmentId(
|
|
@@ -223,8 +221,8 @@ class Order {
|
|
|
223
221
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
224
222
|
* @returns {Promise<OrderApplicationModel.OrderById>} - Success response
|
|
225
223
|
* @name getOrderById
|
|
226
|
-
* @summary:
|
|
227
|
-
* @description: Retrieve order details such as tracking details, shipment, store information using Fynd Order ID
|
|
224
|
+
* @summary: Get a order
|
|
225
|
+
* @description: Retrieve order details such as tracking details, shipment, store information using Fynd Order ID - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/order/getOrderById/).
|
|
228
226
|
*/
|
|
229
227
|
async getOrderById(
|
|
230
228
|
{ orderId, allowInactive, requestHeaders } = { requestHeaders: {} },
|
|
@@ -302,8 +300,8 @@ class Order {
|
|
|
302
300
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
303
301
|
* @returns {Promise<OrderApplicationModel.OrderList>} - Success response
|
|
304
302
|
* @name getOrders
|
|
305
|
-
* @summary:
|
|
306
|
-
* @description: Retrieves all orders associated with a customer account
|
|
303
|
+
* @summary: List customer orders
|
|
304
|
+
* @description: Retrieves all orders associated with a customer account - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/order/getOrders/).
|
|
307
305
|
*/
|
|
308
306
|
async getOrders(
|
|
309
307
|
{
|
|
@@ -412,92 +410,14 @@ class Order {
|
|
|
412
410
|
return response;
|
|
413
411
|
}
|
|
414
412
|
|
|
415
|
-
/**
|
|
416
|
-
* @param {OrderApplicationValidator.GetPosOrderByIdParam} arg - Arg object.
|
|
417
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
418
|
-
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
419
|
-
* @returns {Promise<OrderApplicationModel.OrderById>} - Success response
|
|
420
|
-
* @name getPosOrderById
|
|
421
|
-
* @summary: Retrieves POS order details
|
|
422
|
-
* @description: Retrieve a POS order and all its details such as tracking details, shipment, store information using Fynd Order ID. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/order/getPosOrderById/).
|
|
423
|
-
*/
|
|
424
|
-
async getPosOrderById(
|
|
425
|
-
{ orderId, requestHeaders } = { requestHeaders: {} },
|
|
426
|
-
{ responseHeaders } = { responseHeaders: false }
|
|
427
|
-
) {
|
|
428
|
-
const { error } = OrderApplicationValidator.getPosOrderById().validate(
|
|
429
|
-
{ orderId },
|
|
430
|
-
{ abortEarly: false, allowUnknown: true }
|
|
431
|
-
);
|
|
432
|
-
if (error) {
|
|
433
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
434
|
-
}
|
|
435
|
-
|
|
436
|
-
// Showing warrnings if extra unknown parameters are found
|
|
437
|
-
const {
|
|
438
|
-
error: warrning,
|
|
439
|
-
} = OrderApplicationValidator.getPosOrderById().validate(
|
|
440
|
-
{ orderId },
|
|
441
|
-
{ abortEarly: false, allowUnknown: false }
|
|
442
|
-
);
|
|
443
|
-
if (warrning) {
|
|
444
|
-
Logger({
|
|
445
|
-
level: "WARN",
|
|
446
|
-
message: `Parameter Validation warrnings for application > Order > getPosOrderById \n ${warrning}`,
|
|
447
|
-
});
|
|
448
|
-
}
|
|
449
|
-
|
|
450
|
-
const query_params = {};
|
|
451
|
-
|
|
452
|
-
const xHeaders = {};
|
|
453
|
-
|
|
454
|
-
const response = await ApplicationAPIClient.execute(
|
|
455
|
-
this._conf,
|
|
456
|
-
"get",
|
|
457
|
-
constructUrl({
|
|
458
|
-
url: this._urls["getPosOrderById"],
|
|
459
|
-
params: { orderId },
|
|
460
|
-
}),
|
|
461
|
-
query_params,
|
|
462
|
-
undefined,
|
|
463
|
-
{ ...xHeaders, ...requestHeaders },
|
|
464
|
-
{ responseHeaders }
|
|
465
|
-
);
|
|
466
|
-
|
|
467
|
-
let responseData = response;
|
|
468
|
-
if (responseHeaders) {
|
|
469
|
-
responseData = response[0];
|
|
470
|
-
}
|
|
471
|
-
|
|
472
|
-
const {
|
|
473
|
-
error: res_error,
|
|
474
|
-
} = OrderApplicationModel.OrderById().validate(responseData, {
|
|
475
|
-
abortEarly: false,
|
|
476
|
-
allowUnknown: true,
|
|
477
|
-
});
|
|
478
|
-
|
|
479
|
-
if (res_error) {
|
|
480
|
-
if (this._conf.options.strictResponseCheck === true) {
|
|
481
|
-
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
482
|
-
} else {
|
|
483
|
-
Logger({
|
|
484
|
-
level: "WARN",
|
|
485
|
-
message: `Response Validation Warnings for application > Order > getPosOrderById \n ${res_error}`,
|
|
486
|
-
});
|
|
487
|
-
}
|
|
488
|
-
}
|
|
489
|
-
|
|
490
|
-
return response;
|
|
491
|
-
}
|
|
492
|
-
|
|
493
413
|
/**
|
|
494
414
|
* @param {OrderApplicationValidator.GetShipmentBagReasonsParam} arg - Arg object.
|
|
495
415
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
496
416
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
497
417
|
* @returns {Promise<OrderApplicationModel.ShipmentBagReasons>} - Success response
|
|
498
418
|
* @name getShipmentBagReasons
|
|
499
|
-
* @summary:
|
|
500
|
-
* @description:
|
|
419
|
+
* @summary: List bag cancellation reasons
|
|
420
|
+
* @description: Get reasons to perform full or partial cancellation of a bag - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/order/getShipmentBagReasons/).
|
|
501
421
|
*/
|
|
502
422
|
async getShipmentBagReasons(
|
|
503
423
|
{ shipmentId, bagId, requestHeaders } = { requestHeaders: {} },
|
|
@@ -576,7 +496,7 @@ class Order {
|
|
|
576
496
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
577
497
|
* @returns {Promise<OrderApplicationModel.ShipmentById>} - Success response
|
|
578
498
|
* @name getShipmentById
|
|
579
|
-
* @summary:
|
|
499
|
+
* @summary: Get a Shipment
|
|
580
500
|
* @description: Retrieve shipment details such as price breakup, tracking details, store information, etc. using Shipment ID. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/order/getShipmentById/).
|
|
581
501
|
*/
|
|
582
502
|
async getShipmentById(
|
|
@@ -655,8 +575,8 @@ class Order {
|
|
|
655
575
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
656
576
|
* @returns {Promise<OrderApplicationModel.ShipmentReasons>} - Success response
|
|
657
577
|
* @name getShipmentReasons
|
|
658
|
-
* @summary:
|
|
659
|
-
* @description:
|
|
578
|
+
* @summary: List shipment cancellation reasons
|
|
579
|
+
* @description: Get reasons to perform full or partial cancellation of a shipment - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/order/getShipmentReasons/).
|
|
660
580
|
*/
|
|
661
581
|
async getShipmentReasons(
|
|
662
582
|
{ shipmentId, requestHeaders } = { requestHeaders: {} },
|
|
@@ -734,8 +654,8 @@ class Order {
|
|
|
734
654
|
* @returns {Promise<OrderApplicationModel.SendOtpToCustomerResponse>} -
|
|
735
655
|
* Success response
|
|
736
656
|
* @name sendOtpToShipmentCustomer
|
|
737
|
-
* @summary:
|
|
738
|
-
* @description: Sends a one-time password (OTP) to the customer for shipment verification
|
|
657
|
+
* @summary: Send OTP to customer
|
|
658
|
+
* @description: Sends a one-time password (OTP) to the customer for shipment verification - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/order/sendOtpToShipmentCustomer/).
|
|
739
659
|
*/
|
|
740
660
|
async sendOtpToShipmentCustomer(
|
|
741
661
|
{ orderId, shipmentId, requestHeaders } = { requestHeaders: {} },
|
|
@@ -814,7 +734,7 @@ class Order {
|
|
|
814
734
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
815
735
|
* @returns {Promise<OrderApplicationModel.ShipmentTrack>} - Success response
|
|
816
736
|
* @name trackShipment
|
|
817
|
-
* @summary:
|
|
737
|
+
* @summary: Track shipment status
|
|
818
738
|
* @description: Track Shipment by shipment id, for application based on application Id. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/order/trackShipment/).
|
|
819
739
|
*/
|
|
820
740
|
async trackShipment(
|
|
@@ -895,7 +815,7 @@ class Order {
|
|
|
895
815
|
*
|
|
896
816
|
* @name updateShipmentStatus
|
|
897
817
|
* @summary: Updates shipment status
|
|
898
|
-
* @description: Modifies the current status of a specific shipment using its shipment ID. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/order/updateShipmentStatus/).
|
|
818
|
+
* @description: Modifies the current status of a specific shipment using its shipment ID. Supports both partial and full transition as per the configured settings. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/order/updateShipmentStatus/).
|
|
899
819
|
*/
|
|
900
820
|
async updateShipmentStatus(
|
|
901
821
|
{ shipmentId, body, requestHeaders } = { requestHeaders: {} },
|
|
@@ -34,11 +34,6 @@ export = OrderApplicationValidator;
|
|
|
34
34
|
* @property {boolean} [allowInactive] - Flag indicating whether inactive
|
|
35
35
|
* shipments are allowed
|
|
36
36
|
*/
|
|
37
|
-
/**
|
|
38
|
-
* @typedef GetPosOrderByIdParam
|
|
39
|
-
* @property {string} orderId - A unique number used for identifying and
|
|
40
|
-
* tracking your orders.
|
|
41
|
-
*/
|
|
42
37
|
/**
|
|
43
38
|
* @typedef GetShipmentBagReasonsParam
|
|
44
39
|
* @property {string} shipmentId - ID of the bag. An order may contain multiple
|
|
@@ -98,8 +93,6 @@ declare class OrderApplicationValidator {
|
|
|
98
93
|
static getOrderById(): GetOrderByIdParam;
|
|
99
94
|
/** @returns {GetOrdersParam} */
|
|
100
95
|
static getOrders(): GetOrdersParam;
|
|
101
|
-
/** @returns {GetPosOrderByIdParam} */
|
|
102
|
-
static getPosOrderById(): GetPosOrderByIdParam;
|
|
103
96
|
/** @returns {GetShipmentBagReasonsParam} */
|
|
104
97
|
static getShipmentBagReasons(): GetShipmentBagReasonsParam;
|
|
105
98
|
/** @returns {GetShipmentByIdParam} */
|
|
@@ -116,7 +109,7 @@ declare class OrderApplicationValidator {
|
|
|
116
109
|
static verifyOtpShipmentCustomer(): VerifyOtpShipmentCustomerParam;
|
|
117
110
|
}
|
|
118
111
|
declare namespace OrderApplicationValidator {
|
|
119
|
-
export { GetCustomerDetailsByShipmentIdParam, GetInvoiceByShipmentIdParam, GetOrderByIdParam, GetOrdersParam,
|
|
112
|
+
export { GetCustomerDetailsByShipmentIdParam, GetInvoiceByShipmentIdParam, GetOrderByIdParam, GetOrdersParam, GetShipmentBagReasonsParam, GetShipmentByIdParam, GetShipmentReasonsParam, SendOtpToShipmentCustomerParam, TrackShipmentParam, UpdateShipmentStatusParam, VerifyOtpShipmentCustomerParam };
|
|
120
113
|
}
|
|
121
114
|
type GetCustomerDetailsByShipmentIdParam = {
|
|
122
115
|
/**
|
|
@@ -191,13 +184,6 @@ type GetOrdersParam = {
|
|
|
191
184
|
*/
|
|
192
185
|
allowInactive?: boolean;
|
|
193
186
|
};
|
|
194
|
-
type GetPosOrderByIdParam = {
|
|
195
|
-
/**
|
|
196
|
-
* - A unique number used for identifying and
|
|
197
|
-
* tracking your orders.
|
|
198
|
-
*/
|
|
199
|
-
orderId: string;
|
|
200
|
-
};
|
|
201
187
|
type GetShipmentBagReasonsParam = {
|
|
202
188
|
/**
|
|
203
189
|
* - ID of the bag. An order may contain multiple
|
|
@@ -274,4 +260,4 @@ type VerifyOtpShipmentCustomerParam = {
|
|
|
274
260
|
shipmentId: string;
|
|
275
261
|
body: OrderApplicationModel.VerifyOtp;
|
|
276
262
|
};
|
|
277
|
-
import OrderApplicationModel = require("
|
|
263
|
+
import OrderApplicationModel = require("sdk/output/javascript/code/sdk/application/Order/OrderApplicationModel");
|
|
@@ -41,12 +41,6 @@ const OrderApplicationModel = require("./OrderApplicationModel");
|
|
|
41
41
|
* shipments are allowed
|
|
42
42
|
*/
|
|
43
43
|
|
|
44
|
-
/**
|
|
45
|
-
* @typedef GetPosOrderByIdParam
|
|
46
|
-
* @property {string} orderId - A unique number used for identifying and
|
|
47
|
-
* tracking your orders.
|
|
48
|
-
*/
|
|
49
|
-
|
|
50
44
|
/**
|
|
51
45
|
* @typedef GetShipmentBagReasonsParam
|
|
52
46
|
* @property {string} shipmentId - ID of the bag. An order may contain multiple
|
|
@@ -143,13 +137,6 @@ class OrderApplicationValidator {
|
|
|
143
137
|
});
|
|
144
138
|
}
|
|
145
139
|
|
|
146
|
-
/** @returns {GetPosOrderByIdParam} */
|
|
147
|
-
static getPosOrderById() {
|
|
148
|
-
return Joi.object({
|
|
149
|
-
orderId: Joi.string().allow("").required(),
|
|
150
|
-
}).required();
|
|
151
|
-
}
|
|
152
|
-
|
|
153
140
|
/** @returns {GetShipmentBagReasonsParam} */
|
|
154
141
|
static getShipmentBagReasons() {
|
|
155
142
|
return Joi.object({
|