@gofynd/fdk-client-javascript 1.4.14 → 1.4.15-beta.10
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 +2 -2
- package/application.d.ts +1 -2
- package/application.js +2 -3
- package/index.d.ts +1 -2
- package/index.js +7 -1
- package/package.json +2 -3
- package/sdk/application/ApplicationClient.d.ts +0 -2
- package/sdk/application/ApplicationClient.js +0 -20
- package/sdk/application/Cart/CartApplicationClient.d.ts +55 -97
- package/sdk/application/Cart/CartApplicationClient.js +60 -1262
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +80 -162
- package/sdk/application/Catalog/CatalogApplicationClient.js +148 -1313
- package/sdk/application/Common/CommonApplicationClient.d.ts +4 -9
- package/sdk/application/Common/CommonApplicationClient.js +5 -90
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +6 -19
- package/sdk/application/Communication/CommunicationApplicationClient.js +6 -145
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +32 -80
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +31 -725
- package/sdk/application/Content/ContentApplicationClient.d.ts +63 -85
- package/sdk/application/Content/ContentApplicationClient.js +126 -942
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +11 -15
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +26 -130
- package/sdk/application/Lead/LeadApplicationClient.d.ts +10 -17
- package/sdk/application/Lead/LeadApplicationClient.js +32 -201
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +22 -62
- package/sdk/application/Logistic/LogisticApplicationClient.js +51 -647
- package/sdk/application/Order/OrderApplicationClient.d.ts +22 -56
- package/sdk/application/Order/OrderApplicationClient.js +86 -555
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +92 -209
- package/sdk/application/Payment/PaymentApplicationClient.js +57 -2099
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +15 -26
- package/sdk/application/Rewards/RewardsApplicationClient.js +17 -303
- package/sdk/application/Share/ShareApplicationClient.d.ts +14 -24
- package/sdk/application/Share/ShareApplicationClient.js +34 -294
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +8 -14
- package/sdk/application/Theme/ThemeApplicationClient.js +30 -166
- package/sdk/application/User/UserApplicationClient.d.ts +87 -138
- package/sdk/application/User/UserApplicationClient.js +47 -1817
- package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -7
- package/sdk/application/Webhook/WebhookApplicationClient.js +6 -49
- package/sdk/application/index.d.ts +0 -19
- package/sdk/application/index.js +0 -35
- package/sdk/common/Utility.d.ts +1 -1
- package/sdk/common/Utility.js +10 -7
- package/sdk/common/Validator.d.ts +1 -0
- package/sdk/common/Validator.js +20 -0
- 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 +85 -767
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +76 -429
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +0 -10
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +6 -120
- package/sdk/partner/OAuthClient.js +1 -0
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +10 -8
- package/sdk/partner/Theme/ThemePartnerClient.js +16 -14
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +39 -135
- package/sdk/partner/Theme/ThemePartnerModel.js +38 -114
- 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 +112 -407
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +65 -111
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +44 -106
- package/sdk/platform/Cart/CartPlatformModel.d.ts +1328 -4975
- package/sdk/platform/Cart/CartPlatformModel.js +1229 -1922
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +183 -208
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +358 -383
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +126 -122
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +68 -66
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +118 -141
- package/sdk/platform/Catalog/CatalogPlatformClient.js +170 -193
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +1744 -1501
- package/sdk/platform/Catalog/CatalogPlatformModel.js +1211 -1383
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +18 -18
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +18 -18
- 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 +138 -283
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +100 -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 -124
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +422 -449
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +141 -179
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +130 -168
- package/sdk/platform/Content/ContentPlatformClient.d.ts +106 -142
- package/sdk/platform/Content/ContentPlatformClient.js +336 -523
- package/sdk/platform/Content/ContentPlatformModel.d.ts +395 -1241
- package/sdk/platform/Content/ContentPlatformModel.js +390 -521
- 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 +4 -25
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +5 -175
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +4 -52
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +3 -34
- package/sdk/platform/Order/OrderPlatformClient.d.ts +103 -174
- package/sdk/platform/Order/OrderPlatformClient.js +275 -528
- package/sdk/platform/Order/OrderPlatformModel.d.ts +3078 -5449
- package/sdk/platform/Order/OrderPlatformModel.js +1659 -3501
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +219 -234
- package/sdk/platform/Order/OrderPlatformValidator.js +118 -146
- 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 +106 -94
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +146 -131
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +93 -64
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +70 -62
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +20 -20
- package/sdk/platform/Payment/PaymentPlatformClient.js +20 -20
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +507 -386
- package/sdk/platform/Payment/PaymentPlatformModel.js +376 -323
- package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +10 -10
- package/sdk/platform/Payment/PaymentPlatformValidator.js +10 -10
- 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 +35 -45
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +38 -117
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +13 -22
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +12 -24
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +46 -40
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +68 -62
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +396 -620
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +326 -501
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +11 -11
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +10 -10
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/Share/SharePlatformApplicationClient.js +2 -2
- package/sdk/platform/Share/SharePlatformModel.d.ts +5 -36
- package/sdk/platform/Share/SharePlatformModel.js +4 -27
- 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 +13 -76
- package/sdk/platform/Theme/ThemePlatformModel.js +17 -57
- 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 +10 -8
- 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 +19 -793
- 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/Partner/PartnerPublicClient.d.ts +1 -1
- package/sdk/public/Partner/PartnerPublicClient.js +14 -2
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
- package/sdk/public/Webhook/WebhookPublicClient.js +13 -10
- 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/Cart/CartApplicationModel.d.ts +0 -4340
- package/sdk/application/Cart/CartApplicationModel.js +0 -2718
- package/sdk/application/Cart/CartApplicationValidator.d.ts +0 -788
- package/sdk/application/Cart/CartApplicationValidator.js +0 -546
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +0 -3909
- package/sdk/application/Catalog/CatalogApplicationModel.js +0 -2667
- package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +0 -791
- package/sdk/application/Catalog/CatalogApplicationValidator.js +0 -551
- package/sdk/application/Common/CommonApplicationModel.d.ts +0 -449
- package/sdk/application/Common/CommonApplicationModel.js +0 -308
- package/sdk/application/Common/CommonApplicationValidator.d.ts +0 -46
- package/sdk/application/Common/CommonApplicationValidator.js +0 -38
- package/sdk/application/Communication/CommunicationApplicationModel.d.ts +0 -293
- package/sdk/application/Communication/CommunicationApplicationModel.js +0 -201
- package/sdk/application/Communication/CommunicationApplicationValidator.d.ts +0 -29
- package/sdk/application/Communication/CommunicationApplicationValidator.js +0 -38
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +0 -2544
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +0 -1875
- package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +0 -179
- package/sdk/application/Configuration/ConfigurationApplicationValidator.js +0 -176
- package/sdk/application/Content/ContentApplicationModel.d.ts +0 -2189
- package/sdk/application/Content/ContentApplicationModel.js +0 -1640
- package/sdk/application/Content/ContentApplicationValidator.d.ts +0 -290
- package/sdk/application/Content/ContentApplicationValidator.js +0 -269
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +0 -270
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +0 -188
- package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +0 -56
- package/sdk/application/FileStorage/FileStorageApplicationValidator.js +0 -53
- package/sdk/application/Finance/FinanceApplicationClient.d.ts +0 -36
- package/sdk/application/Finance/FinanceApplicationClient.js +0 -202
- package/sdk/application/Finance/FinanceApplicationModel.d.ts +0 -289
- package/sdk/application/Finance/FinanceApplicationModel.js +0 -208
- package/sdk/application/Finance/FinanceApplicationValidator.d.ts +0 -25
- package/sdk/application/Finance/FinanceApplicationValidator.js +0 -31
- package/sdk/application/Lead/LeadApplicationModel.d.ts +0 -590
- package/sdk/application/Lead/LeadApplicationModel.js +0 -480
- package/sdk/application/Lead/LeadApplicationValidator.d.ts +0 -68
- package/sdk/application/Lead/LeadApplicationValidator.js +0 -71
- package/sdk/application/Logistic/LogisticApplicationModel.d.ts +0 -2034
- package/sdk/application/Logistic/LogisticApplicationModel.js +0 -1391
- package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +0 -299
- package/sdk/application/Logistic/LogisticApplicationValidator.js +0 -224
- package/sdk/application/Order/OrderApplicationModel.d.ts +0 -2612
- package/sdk/application/Order/OrderApplicationModel.js +0 -1669
- package/sdk/application/Order/OrderApplicationValidator.d.ts +0 -279
- package/sdk/application/Order/OrderApplicationValidator.js +0 -210
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +0 -4062
- package/sdk/application/Payment/PaymentApplicationModel.js +0 -2632
- package/sdk/application/Payment/PaymentApplicationValidator.d.ts +0 -576
- package/sdk/application/Payment/PaymentApplicationValidator.js +0 -594
- package/sdk/application/Rewards/RewardsApplicationModel.d.ts +0 -365
- package/sdk/application/Rewards/RewardsApplicationModel.js +0 -396
- package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +0 -73
- package/sdk/application/Rewards/RewardsApplicationValidator.js +0 -84
- package/sdk/application/Share/ShareApplicationModel.d.ts +0 -339
- package/sdk/application/Share/ShareApplicationModel.js +0 -234
- package/sdk/application/Share/ShareApplicationValidator.d.ts +0 -90
- package/sdk/application/Share/ShareApplicationValidator.js +0 -91
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +0 -1744
- package/sdk/application/Theme/ThemeApplicationModel.js +0 -1446
- package/sdk/application/Theme/ThemeApplicationValidator.d.ts +0 -79
- package/sdk/application/Theme/ThemeApplicationValidator.js +0 -65
- package/sdk/application/User/UserApplicationModel.d.ts +0 -1943
- package/sdk/application/User/UserApplicationModel.js +0 -1382
- package/sdk/application/User/UserApplicationValidator.d.ts +0 -560
- package/sdk/application/User/UserApplicationValidator.js +0 -573
- package/sdk/application/Webhook/WebhookApplicationModel.d.ts +0 -54
- package/sdk/application/Webhook/WebhookApplicationModel.js +0 -48
- package/sdk/application/Webhook/WebhookApplicationValidator.d.ts +0 -16
- package/sdk/application/Webhook/WebhookApplicationValidator.js +0 -19
- package/sdk/common/Clickstream.d.ts +0 -1
- package/sdk/common/Clickstream.js +0 -464
|
@@ -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) {
|
|
@@ -997,25 +911,32 @@ class Order {
|
|
|
997
911
|
}
|
|
998
912
|
|
|
999
913
|
/**
|
|
1000
|
-
* @param {OrderPlatformValidator.
|
|
914
|
+
* @param {OrderPlatformValidator.FailedOrderLogsParam} arg - Arg object
|
|
1001
915
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1002
916
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1003
|
-
* @returns {Promise<OrderPlatformModel.
|
|
1004
|
-
*
|
|
1005
|
-
*
|
|
1006
|
-
* @
|
|
1007
|
-
* @summary: Get credit balance detail
|
|
1008
|
-
* @description: Retrieve details about credit balance on the basis of customer mobile number - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/fetchCreditBalanceDetail/).
|
|
917
|
+
* @returns {Promise<OrderPlatformModel.FailedOrderLogs>} - Success response
|
|
918
|
+
* @name failedOrderLogs
|
|
919
|
+
* @summary: List failed order logs
|
|
920
|
+
* @description: Get failed order logs listing for filters based on order Id, user contact number, user email Id and sales channel Id. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/failedOrderLogs/).
|
|
1009
921
|
*/
|
|
1010
|
-
async
|
|
1011
|
-
{
|
|
922
|
+
async failedOrderLogs(
|
|
923
|
+
{
|
|
924
|
+
applicationId,
|
|
925
|
+
pageNo,
|
|
926
|
+
pageSize,
|
|
927
|
+
searchType,
|
|
928
|
+
searchValue,
|
|
929
|
+
requestHeaders,
|
|
930
|
+
} = { requestHeaders: {} },
|
|
1012
931
|
{ responseHeaders } = { responseHeaders: false }
|
|
1013
932
|
) {
|
|
1014
|
-
const {
|
|
1015
|
-
error,
|
|
1016
|
-
} = OrderPlatformValidator.fetchCreditBalanceDetail().validate(
|
|
933
|
+
const { error } = OrderPlatformValidator.failedOrderLogs().validate(
|
|
1017
934
|
{
|
|
1018
|
-
|
|
935
|
+
applicationId,
|
|
936
|
+
pageNo,
|
|
937
|
+
pageSize,
|
|
938
|
+
searchType,
|
|
939
|
+
searchValue,
|
|
1019
940
|
},
|
|
1020
941
|
{ abortEarly: false, allowUnknown: true }
|
|
1021
942
|
);
|
|
@@ -1026,29 +947,38 @@ class Order {
|
|
|
1026
947
|
// Showing warrnings if extra unknown parameters are found
|
|
1027
948
|
const {
|
|
1028
949
|
error: warrning,
|
|
1029
|
-
} = OrderPlatformValidator.
|
|
950
|
+
} = OrderPlatformValidator.failedOrderLogs().validate(
|
|
1030
951
|
{
|
|
1031
|
-
|
|
952
|
+
applicationId,
|
|
953
|
+
pageNo,
|
|
954
|
+
pageSize,
|
|
955
|
+
searchType,
|
|
956
|
+
searchValue,
|
|
1032
957
|
},
|
|
1033
958
|
{ abortEarly: false, allowUnknown: false }
|
|
1034
959
|
);
|
|
1035
960
|
if (warrning) {
|
|
1036
961
|
Logger({
|
|
1037
962
|
level: "WARN",
|
|
1038
|
-
message: `Parameter Validation warrnings for platform > Order >
|
|
963
|
+
message: `Parameter Validation warrnings for platform > Order > failedOrderLogs \n ${warrning}`,
|
|
1039
964
|
});
|
|
1040
965
|
}
|
|
1041
966
|
|
|
1042
967
|
const query_params = {};
|
|
968
|
+
query_params["application_id"] = applicationId;
|
|
969
|
+
query_params["page_no"] = pageNo;
|
|
970
|
+
query_params["page_size"] = pageSize;
|
|
971
|
+
query_params["search_type"] = searchType;
|
|
972
|
+
query_params["search_value"] = searchValue;
|
|
1043
973
|
|
|
1044
974
|
const xHeaders = {};
|
|
1045
975
|
|
|
1046
976
|
const response = await PlatformAPIClient.execute(
|
|
1047
977
|
this.config,
|
|
1048
|
-
"
|
|
1049
|
-
`/service/platform/order-manage/v1.0/company/${this.config.companyId}/
|
|
978
|
+
"get",
|
|
979
|
+
`/service/platform/order-manage/v1.0/company/${this.config.companyId}/orders/failed`,
|
|
1050
980
|
query_params,
|
|
1051
|
-
|
|
981
|
+
undefined,
|
|
1052
982
|
{ ...xHeaders, ...requestHeaders },
|
|
1053
983
|
{ responseHeaders }
|
|
1054
984
|
);
|
|
@@ -1060,10 +990,10 @@ class Order {
|
|
|
1060
990
|
|
|
1061
991
|
const {
|
|
1062
992
|
error: res_error,
|
|
1063
|
-
} = OrderPlatformModel.
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
);
|
|
993
|
+
} = OrderPlatformModel.FailedOrderLogs().validate(responseData, {
|
|
994
|
+
abortEarly: false,
|
|
995
|
+
allowUnknown: true,
|
|
996
|
+
});
|
|
1067
997
|
|
|
1068
998
|
if (res_error) {
|
|
1069
999
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -1071,7 +1001,7 @@ class Order {
|
|
|
1071
1001
|
} else {
|
|
1072
1002
|
Logger({
|
|
1073
1003
|
level: "WARN",
|
|
1074
|
-
message: `Response Validation Warnings for platform > Order >
|
|
1004
|
+
message: `Response Validation Warnings for platform > Order > failedOrderLogs \n ${res_error}`,
|
|
1075
1005
|
});
|
|
1076
1006
|
}
|
|
1077
1007
|
}
|
|
@@ -1163,8 +1093,7 @@ class Order {
|
|
|
1163
1093
|
* @param {OrderPlatformValidator.GenerateInvoiceIDParam} arg - Arg object
|
|
1164
1094
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1165
1095
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1166
|
-
* @returns {Promise<OrderPlatformModel.
|
|
1167
|
-
* Success response
|
|
1096
|
+
* @returns {Promise<OrderPlatformModel.GenerateInvoiceIDResponse>} - Success response
|
|
1168
1097
|
* @name generateInvoiceID
|
|
1169
1098
|
* @summary: Generate and attach invoice Id
|
|
1170
1099
|
* @description: Generate and attach Invoice Ids against shipments. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/generateInvoiceID/).
|
|
@@ -1222,10 +1151,10 @@ class Order {
|
|
|
1222
1151
|
|
|
1223
1152
|
const {
|
|
1224
1153
|
error: res_error,
|
|
1225
|
-
} = OrderPlatformModel.
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
);
|
|
1154
|
+
} = OrderPlatformModel.GenerateInvoiceIDResponse().validate(responseData, {
|
|
1155
|
+
abortEarly: false,
|
|
1156
|
+
allowUnknown: true,
|
|
1157
|
+
});
|
|
1229
1158
|
|
|
1230
1159
|
if (res_error) {
|
|
1231
1160
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -1245,9 +1174,8 @@ class Order {
|
|
|
1245
1174
|
* @param {OrderPlatformValidator.GeneratePOSReceiptByOrderIdParam} arg - Arg object
|
|
1246
1175
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1247
1176
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1248
|
-
* @returns {Promise<OrderPlatformModel.
|
|
1249
|
-
*
|
|
1250
|
-
*
|
|
1177
|
+
* @returns {Promise<OrderPlatformModel.GeneratePosOrderReceiptResponse>} -
|
|
1178
|
+
* Success response
|
|
1251
1179
|
* @name generatePOSReceiptByOrderId
|
|
1252
1180
|
* @summary: Generate POS receipt by order Id
|
|
1253
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/).
|
|
@@ -1313,7 +1241,7 @@ class Order {
|
|
|
1313
1241
|
|
|
1314
1242
|
const {
|
|
1315
1243
|
error: res_error,
|
|
1316
|
-
} = OrderPlatformModel.
|
|
1244
|
+
} = OrderPlatformModel.GeneratePosOrderReceiptResponse().validate(
|
|
1317
1245
|
responseData,
|
|
1318
1246
|
{ abortEarly: false, allowUnknown: true }
|
|
1319
1247
|
);
|
|
@@ -1336,7 +1264,7 @@ class Order {
|
|
|
1336
1264
|
* @param {OrderPlatformValidator.GenerateProcessManifestParam} arg - Arg object
|
|
1337
1265
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1338
1266
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1339
|
-
* @returns {Promise<OrderPlatformModel.
|
|
1267
|
+
* @returns {Promise<OrderPlatformModel.ManifestResponse>} - Success response
|
|
1340
1268
|
* @name generateProcessManifest
|
|
1341
1269
|
* @summary: Process Order Manifest
|
|
1342
1270
|
* @description: Endpoint to save and process order manifests. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/generateProcessManifest/).
|
|
@@ -1392,7 +1320,7 @@ class Order {
|
|
|
1392
1320
|
|
|
1393
1321
|
const {
|
|
1394
1322
|
error: res_error,
|
|
1395
|
-
} = OrderPlatformModel.
|
|
1323
|
+
} = OrderPlatformModel.ManifestResponse().validate(responseData, {
|
|
1396
1324
|
abortEarly: false,
|
|
1397
1325
|
allowUnknown: true,
|
|
1398
1326
|
});
|
|
@@ -1501,8 +1429,7 @@ class Order {
|
|
|
1501
1429
|
* @param {OrderPlatformValidator.GetAllowedTemplatesForBulkParam} arg - Arg object
|
|
1502
1430
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1503
1431
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1504
|
-
* @returns {Promise<OrderPlatformModel.
|
|
1505
|
-
* Success response
|
|
1432
|
+
* @returns {Promise<OrderPlatformModel.AllowedTemplatesResponse>} - Success response
|
|
1506
1433
|
* @name getAllowedTemplatesForBulk
|
|
1507
1434
|
* @summary: List bulk operation templates
|
|
1508
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/).
|
|
@@ -1556,10 +1483,10 @@ class Order {
|
|
|
1556
1483
|
|
|
1557
1484
|
const {
|
|
1558
1485
|
error: res_error,
|
|
1559
|
-
} = OrderPlatformModel.
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
);
|
|
1486
|
+
} = OrderPlatformModel.AllowedTemplatesResponse().validate(responseData, {
|
|
1487
|
+
abortEarly: false,
|
|
1488
|
+
allowUnknown: true,
|
|
1489
|
+
});
|
|
1563
1490
|
|
|
1564
1491
|
if (res_error) {
|
|
1565
1492
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -1579,8 +1506,7 @@ class Order {
|
|
|
1579
1506
|
* @param {OrderPlatformValidator.GetAnnouncementsParam} arg - Arg object
|
|
1580
1507
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1581
1508
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1582
|
-
* @returns {Promise<OrderPlatformModel.
|
|
1583
|
-
* Success response
|
|
1509
|
+
* @returns {Promise<OrderPlatformModel.AnnouncementsResponse>} - Success response
|
|
1584
1510
|
* @name getAnnouncements
|
|
1585
1511
|
* @summary: List announcements
|
|
1586
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/).
|
|
@@ -1637,10 +1563,10 @@ class Order {
|
|
|
1637
1563
|
|
|
1638
1564
|
const {
|
|
1639
1565
|
error: res_error,
|
|
1640
|
-
} = OrderPlatformModel.
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
);
|
|
1566
|
+
} = OrderPlatformModel.AnnouncementsResponse().validate(responseData, {
|
|
1567
|
+
abortEarly: false,
|
|
1568
|
+
allowUnknown: true,
|
|
1569
|
+
});
|
|
1644
1570
|
|
|
1645
1571
|
if (res_error) {
|
|
1646
1572
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -1660,9 +1586,8 @@ class Order {
|
|
|
1660
1586
|
* @param {OrderPlatformValidator.GetBagByIdParam} arg - Arg object
|
|
1661
1587
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1662
1588
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1663
|
-
* @returns {Promise<OrderPlatformModel.
|
|
1664
|
-
*
|
|
1665
|
-
*
|
|
1589
|
+
* @returns {Promise<OrderPlatformModel.BagDetailsPlatformResponse>} -
|
|
1590
|
+
* Success response
|
|
1666
1591
|
* @name getBagById
|
|
1667
1592
|
* @summary: Get bag
|
|
1668
1593
|
* @description: Retrieve detailed information about a specific bag - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/getBagById/).
|
|
@@ -1723,10 +1648,10 @@ class Order {
|
|
|
1723
1648
|
|
|
1724
1649
|
const {
|
|
1725
1650
|
error: res_error,
|
|
1726
|
-
} = OrderPlatformModel.
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
);
|
|
1651
|
+
} = OrderPlatformModel.BagDetailsPlatformResponse().validate(responseData, {
|
|
1652
|
+
abortEarly: false,
|
|
1653
|
+
allowUnknown: true,
|
|
1654
|
+
});
|
|
1730
1655
|
|
|
1731
1656
|
if (res_error) {
|
|
1732
1657
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -1746,8 +1671,7 @@ class Order {
|
|
|
1746
1671
|
* @param {OrderPlatformValidator.GetBagsParam} arg - Arg object
|
|
1747
1672
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1748
1673
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1749
|
-
* @returns {Promise<OrderPlatformModel.
|
|
1750
|
-
* Success response
|
|
1674
|
+
* @returns {Promise<OrderPlatformModel.GetBagsPlatformResponse>} - Success response
|
|
1751
1675
|
* @name getBags
|
|
1752
1676
|
* @summary: List bags
|
|
1753
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/).
|
|
@@ -1837,10 +1761,10 @@ class Order {
|
|
|
1837
1761
|
|
|
1838
1762
|
const {
|
|
1839
1763
|
error: res_error,
|
|
1840
|
-
} = OrderPlatformModel.
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
);
|
|
1764
|
+
} = OrderPlatformModel.GetBagsPlatformResponse().validate(responseData, {
|
|
1765
|
+
abortEarly: false,
|
|
1766
|
+
allowUnknown: true,
|
|
1767
|
+
});
|
|
1844
1768
|
|
|
1845
1769
|
if (res_error) {
|
|
1846
1770
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -1860,9 +1784,8 @@ class Order {
|
|
|
1860
1784
|
* @param {OrderPlatformValidator.GetBulkActionTemplateParam} arg - Arg object
|
|
1861
1785
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1862
1786
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1863
|
-
* @returns {Promise<OrderPlatformModel.
|
|
1864
|
-
*
|
|
1865
|
-
*
|
|
1787
|
+
* @returns {Promise<OrderPlatformModel.BulkActionTemplateResponse>} -
|
|
1788
|
+
* Success response
|
|
1866
1789
|
* @name getBulkActionTemplate
|
|
1867
1790
|
* @summary: List supported templates
|
|
1868
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/).
|
|
@@ -1914,10 +1837,10 @@ class Order {
|
|
|
1914
1837
|
|
|
1915
1838
|
const {
|
|
1916
1839
|
error: res_error,
|
|
1917
|
-
} = OrderPlatformModel.
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
);
|
|
1840
|
+
} = OrderPlatformModel.BulkActionTemplateResponse().validate(responseData, {
|
|
1841
|
+
abortEarly: false,
|
|
1842
|
+
allowUnknown: true,
|
|
1843
|
+
});
|
|
1921
1844
|
|
|
1922
1845
|
if (res_error) {
|
|
1923
1846
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -1937,7 +1860,7 @@ class Order {
|
|
|
1937
1860
|
* @param {OrderPlatformValidator.GetBulkShipmentExcelFileParam} arg - Arg object
|
|
1938
1861
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1939
1862
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1940
|
-
* @returns {Promise<OrderPlatformModel.
|
|
1863
|
+
* @returns {Promise<OrderPlatformModel.FileResponse>} - Success response
|
|
1941
1864
|
* @name getBulkShipmentExcelFile
|
|
1942
1865
|
* @summary: Generate the report
|
|
1943
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/).
|
|
@@ -2043,7 +1966,7 @@ class Order {
|
|
|
2043
1966
|
|
|
2044
1967
|
const {
|
|
2045
1968
|
error: res_error,
|
|
2046
|
-
} = OrderPlatformModel.
|
|
1969
|
+
} = OrderPlatformModel.FileResponse().validate(responseData, {
|
|
2047
1970
|
abortEarly: false,
|
|
2048
1971
|
allowUnknown: true,
|
|
2049
1972
|
});
|
|
@@ -2062,86 +1985,11 @@ class Order {
|
|
|
2062
1985
|
return response;
|
|
2063
1986
|
}
|
|
2064
1987
|
|
|
2065
|
-
/**
|
|
2066
|
-
* @param {OrderPlatformValidator.GetChannelConfigParam} arg - Arg object
|
|
2067
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
2068
|
-
* @param {import("../PlatformAPIClient").Options} - Options
|
|
2069
|
-
* @returns {Promise<OrderPlatformModel.CreateChannelConfigData>} - Success response
|
|
2070
|
-
* @name getChannelConfig
|
|
2071
|
-
* @summary: Get channel configuration
|
|
2072
|
-
* @description: Retrieve configuration settings specific to orders for a channel - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/getChannelConfig/).
|
|
2073
|
-
*/
|
|
2074
|
-
async getChannelConfig(
|
|
2075
|
-
{ requestHeaders } = { requestHeaders: {} },
|
|
2076
|
-
{ responseHeaders } = { responseHeaders: false }
|
|
2077
|
-
) {
|
|
2078
|
-
const { error } = OrderPlatformValidator.getChannelConfig().validate(
|
|
2079
|
-
{},
|
|
2080
|
-
{ abortEarly: false, allowUnknown: true }
|
|
2081
|
-
);
|
|
2082
|
-
if (error) {
|
|
2083
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
2084
|
-
}
|
|
2085
|
-
|
|
2086
|
-
// Showing warrnings if extra unknown parameters are found
|
|
2087
|
-
const {
|
|
2088
|
-
error: warrning,
|
|
2089
|
-
} = OrderPlatformValidator.getChannelConfig().validate(
|
|
2090
|
-
{},
|
|
2091
|
-
{ abortEarly: false, allowUnknown: false }
|
|
2092
|
-
);
|
|
2093
|
-
if (warrning) {
|
|
2094
|
-
Logger({
|
|
2095
|
-
level: "WARN",
|
|
2096
|
-
message: `Parameter Validation warrnings for platform > Order > getChannelConfig \n ${warrning}`,
|
|
2097
|
-
});
|
|
2098
|
-
}
|
|
2099
|
-
|
|
2100
|
-
const query_params = {};
|
|
2101
|
-
|
|
2102
|
-
const xHeaders = {};
|
|
2103
|
-
|
|
2104
|
-
const response = await PlatformAPIClient.execute(
|
|
2105
|
-
this.config,
|
|
2106
|
-
"get",
|
|
2107
|
-
`/service/platform/order-manage/v1.0/company/${this.config.companyId}/order-config`,
|
|
2108
|
-
query_params,
|
|
2109
|
-
undefined,
|
|
2110
|
-
{ ...xHeaders, ...requestHeaders },
|
|
2111
|
-
{ responseHeaders }
|
|
2112
|
-
);
|
|
2113
|
-
|
|
2114
|
-
let responseData = response;
|
|
2115
|
-
if (responseHeaders) {
|
|
2116
|
-
responseData = response[0];
|
|
2117
|
-
}
|
|
2118
|
-
|
|
2119
|
-
const {
|
|
2120
|
-
error: res_error,
|
|
2121
|
-
} = OrderPlatformModel.CreateChannelConfigData().validate(responseData, {
|
|
2122
|
-
abortEarly: false,
|
|
2123
|
-
allowUnknown: true,
|
|
2124
|
-
});
|
|
2125
|
-
|
|
2126
|
-
if (res_error) {
|
|
2127
|
-
if (this.config.options.strictResponseCheck === true) {
|
|
2128
|
-
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
2129
|
-
} else {
|
|
2130
|
-
Logger({
|
|
2131
|
-
level: "WARN",
|
|
2132
|
-
message: `Response Validation Warnings for platform > Order > getChannelConfig \n ${res_error}`,
|
|
2133
|
-
});
|
|
2134
|
-
}
|
|
2135
|
-
}
|
|
2136
|
-
|
|
2137
|
-
return response;
|
|
2138
|
-
}
|
|
2139
|
-
|
|
2140
1988
|
/**
|
|
2141
1989
|
* @param {OrderPlatformValidator.GetFileByStatusParam} arg - Arg object
|
|
2142
1990
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
2143
1991
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
2144
|
-
* @returns {Promise<OrderPlatformModel.
|
|
1992
|
+
* @returns {Promise<OrderPlatformModel.JobFailedResponse>} - Success response
|
|
2145
1993
|
* @name getFileByStatus
|
|
2146
1994
|
* @summary: Download file used for Bulk operation
|
|
2147
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/).
|
|
@@ -2208,7 +2056,7 @@ class Order {
|
|
|
2208
2056
|
|
|
2209
2057
|
const {
|
|
2210
2058
|
error: res_error,
|
|
2211
|
-
} = OrderPlatformModel.
|
|
2059
|
+
} = OrderPlatformModel.JobFailedResponse().validate(responseData, {
|
|
2212
2060
|
abortEarly: false,
|
|
2213
2061
|
allowUnknown: true,
|
|
2214
2062
|
});
|
|
@@ -2231,7 +2079,7 @@ class Order {
|
|
|
2231
2079
|
* @param {OrderPlatformValidator.GetLaneConfigParam} arg - Arg object
|
|
2232
2080
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
2233
2081
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
2234
|
-
* @returns {Promise<OrderPlatformModel.
|
|
2082
|
+
* @returns {Promise<OrderPlatformModel.LaneConfigResponse>} - Success response
|
|
2235
2083
|
* @name getLaneConfig
|
|
2236
2084
|
* @summary: Get lane configuration
|
|
2237
2085
|
* @description: Get configuration settings for lanes - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/getLaneConfig/).
|
|
@@ -2361,7 +2209,7 @@ class Order {
|
|
|
2361
2209
|
|
|
2362
2210
|
const {
|
|
2363
2211
|
error: res_error,
|
|
2364
|
-
} = OrderPlatformModel.
|
|
2212
|
+
} = OrderPlatformModel.LaneConfigResponse().validate(responseData, {
|
|
2365
2213
|
abortEarly: false,
|
|
2366
2214
|
allowUnknown: true,
|
|
2367
2215
|
});
|
|
@@ -2390,12 +2238,25 @@ class Order {
|
|
|
2390
2238
|
* @description: Get details regarding a manifest which can be used to perform further actions on it - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/getManifestDetails/).
|
|
2391
2239
|
*/
|
|
2392
2240
|
async getManifestDetails(
|
|
2393
|
-
{
|
|
2241
|
+
{
|
|
2242
|
+
manifestId,
|
|
2243
|
+
dpIds,
|
|
2244
|
+
endDate,
|
|
2245
|
+
startDate,
|
|
2246
|
+
pageNo,
|
|
2247
|
+
pageSize,
|
|
2248
|
+
requestHeaders,
|
|
2249
|
+
} = { requestHeaders: {} },
|
|
2394
2250
|
{ responseHeaders } = { responseHeaders: false }
|
|
2395
2251
|
) {
|
|
2396
2252
|
const { error } = OrderPlatformValidator.getManifestDetails().validate(
|
|
2397
2253
|
{
|
|
2398
2254
|
manifestId,
|
|
2255
|
+
dpIds,
|
|
2256
|
+
endDate,
|
|
2257
|
+
startDate,
|
|
2258
|
+
pageNo,
|
|
2259
|
+
pageSize,
|
|
2399
2260
|
},
|
|
2400
2261
|
{ abortEarly: false, allowUnknown: true }
|
|
2401
2262
|
);
|
|
@@ -2409,6 +2270,11 @@ class Order {
|
|
|
2409
2270
|
} = OrderPlatformValidator.getManifestDetails().validate(
|
|
2410
2271
|
{
|
|
2411
2272
|
manifestId,
|
|
2273
|
+
dpIds,
|
|
2274
|
+
endDate,
|
|
2275
|
+
startDate,
|
|
2276
|
+
pageNo,
|
|
2277
|
+
pageSize,
|
|
2412
2278
|
},
|
|
2413
2279
|
{ abortEarly: false, allowUnknown: false }
|
|
2414
2280
|
);
|
|
@@ -2420,13 +2286,19 @@ class Order {
|
|
|
2420
2286
|
}
|
|
2421
2287
|
|
|
2422
2288
|
const query_params = {};
|
|
2289
|
+
query_params["manifest_id"] = manifestId;
|
|
2290
|
+
query_params["dp_ids"] = dpIds;
|
|
2291
|
+
query_params["end_date"] = endDate;
|
|
2292
|
+
query_params["start_date"] = startDate;
|
|
2293
|
+
query_params["page_no"] = pageNo;
|
|
2294
|
+
query_params["page_size"] = pageSize;
|
|
2423
2295
|
|
|
2424
2296
|
const xHeaders = {};
|
|
2425
2297
|
|
|
2426
2298
|
const response = await PlatformAPIClient.execute(
|
|
2427
2299
|
this.config,
|
|
2428
2300
|
"get",
|
|
2429
|
-
`/service/platform/order-manage/v1.0/company/${this.config.companyId}/
|
|
2301
|
+
`/service/platform/order-manage/v1.0/company/${this.config.companyId}/manifest/details`,
|
|
2430
2302
|
query_params,
|
|
2431
2303
|
undefined,
|
|
2432
2304
|
{ ...xHeaders, ...requestHeaders },
|
|
@@ -2582,8 +2454,7 @@ class Order {
|
|
|
2582
2454
|
* @param {OrderPlatformValidator.GetManifestfiltersParam} arg - Arg object
|
|
2583
2455
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
2584
2456
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
2585
|
-
* @returns {Promise<OrderPlatformModel.
|
|
2586
|
-
* Success response
|
|
2457
|
+
* @returns {Promise<OrderPlatformModel.ManifestFiltersResponse>} - Success response
|
|
2587
2458
|
* @name getManifestfilters
|
|
2588
2459
|
* @summary: List filters
|
|
2589
2460
|
* @description: Get supported filter for listing manifests - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/getManifestfilters/).
|
|
@@ -2640,10 +2511,10 @@ class Order {
|
|
|
2640
2511
|
|
|
2641
2512
|
const {
|
|
2642
2513
|
error: res_error,
|
|
2643
|
-
} = OrderPlatformModel.
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
);
|
|
2514
|
+
} = OrderPlatformModel.ManifestFiltersResponse().validate(responseData, {
|
|
2515
|
+
abortEarly: false,
|
|
2516
|
+
allowUnknown: true,
|
|
2517
|
+
});
|
|
2647
2518
|
|
|
2648
2519
|
if (res_error) {
|
|
2649
2520
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -2739,7 +2610,7 @@ class Order {
|
|
|
2739
2610
|
const response = await PlatformAPIClient.execute(
|
|
2740
2611
|
this.config,
|
|
2741
2612
|
"get",
|
|
2742
|
-
`/service/platform/order-manage/v1.0/company/${this.config.companyId}/
|
|
2613
|
+
`/service/platform/order-manage/v1.0/company/${this.config.companyId}/manifest/listing`,
|
|
2743
2614
|
query_params,
|
|
2744
2615
|
undefined,
|
|
2745
2616
|
{ ...xHeaders, ...requestHeaders },
|
|
@@ -2776,8 +2647,7 @@ class Order {
|
|
|
2776
2647
|
* @param {OrderPlatformValidator.GetOrderByIdParam} arg - Arg object
|
|
2777
2648
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
2778
2649
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
2779
|
-
* @returns {Promise<OrderPlatformModel.
|
|
2780
|
-
* Success response
|
|
2650
|
+
* @returns {Promise<OrderPlatformModel.OrderDetailsResponse>} - Success response
|
|
2781
2651
|
* @name getOrderById
|
|
2782
2652
|
* @summary: Get order
|
|
2783
2653
|
* @description: Get detailed information about a specific order - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/getOrderById/).
|
|
@@ -2840,7 +2710,7 @@ class Order {
|
|
|
2840
2710
|
|
|
2841
2711
|
const {
|
|
2842
2712
|
error: res_error,
|
|
2843
|
-
} = OrderPlatformModel.
|
|
2713
|
+
} = OrderPlatformModel.OrderDetailsResponse().validate(responseData, {
|
|
2844
2714
|
abortEarly: false,
|
|
2845
2715
|
allowUnknown: true,
|
|
2846
2716
|
});
|
|
@@ -2863,8 +2733,7 @@ class Order {
|
|
|
2863
2733
|
* @param {OrderPlatformValidator.GetOrdersParam} arg - Arg object
|
|
2864
2734
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
2865
2735
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
2866
|
-
* @returns {Promise<OrderPlatformModel.
|
|
2867
|
-
* Success response
|
|
2736
|
+
* @returns {Promise<OrderPlatformModel.OrderListingResponse>} - Success response
|
|
2868
2737
|
* @name getOrders
|
|
2869
2738
|
* @summary: List orders
|
|
2870
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/).
|
|
@@ -2894,7 +2763,7 @@ class Order {
|
|
|
2894
2763
|
customerId,
|
|
2895
2764
|
orderType,
|
|
2896
2765
|
allowInactive,
|
|
2897
|
-
|
|
2766
|
+
enforceDateFilter,
|
|
2898
2767
|
requestHeaders,
|
|
2899
2768
|
} = { requestHeaders: {} },
|
|
2900
2769
|
{ responseHeaders } = { responseHeaders: false }
|
|
@@ -2924,7 +2793,7 @@ class Order {
|
|
|
2924
2793
|
customerId,
|
|
2925
2794
|
orderType,
|
|
2926
2795
|
allowInactive,
|
|
2927
|
-
|
|
2796
|
+
enforceDateFilter,
|
|
2928
2797
|
},
|
|
2929
2798
|
{ abortEarly: false, allowUnknown: true }
|
|
2930
2799
|
);
|
|
@@ -2958,7 +2827,7 @@ class Order {
|
|
|
2958
2827
|
customerId,
|
|
2959
2828
|
orderType,
|
|
2960
2829
|
allowInactive,
|
|
2961
|
-
|
|
2830
|
+
enforceDateFilter,
|
|
2962
2831
|
},
|
|
2963
2832
|
{ abortEarly: false, allowUnknown: false }
|
|
2964
2833
|
);
|
|
@@ -2993,7 +2862,7 @@ class Order {
|
|
|
2993
2862
|
query_params["customer_id"] = customerId;
|
|
2994
2863
|
query_params["order_type"] = orderType;
|
|
2995
2864
|
query_params["allow_inactive"] = allowInactive;
|
|
2996
|
-
query_params["
|
|
2865
|
+
query_params["enforce_date_filter"] = enforceDateFilter;
|
|
2997
2866
|
|
|
2998
2867
|
const xHeaders = {};
|
|
2999
2868
|
|
|
@@ -3014,7 +2883,7 @@ class Order {
|
|
|
3014
2883
|
|
|
3015
2884
|
const {
|
|
3016
2885
|
error: res_error,
|
|
3017
|
-
} = OrderPlatformModel.
|
|
2886
|
+
} = OrderPlatformModel.OrderListingResponse().validate(responseData, {
|
|
3018
2887
|
abortEarly: false,
|
|
3019
2888
|
allowUnknown: true,
|
|
3020
2889
|
});
|
|
@@ -3037,7 +2906,7 @@ class Order {
|
|
|
3037
2906
|
* @param {OrderPlatformValidator.GetRoleBasedActionsParam} arg - Arg object
|
|
3038
2907
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3039
2908
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
3040
|
-
* @returns {Promise<OrderPlatformModel.
|
|
2909
|
+
* @returns {Promise<OrderPlatformModel.GetActionsResponse>} - Success response
|
|
3041
2910
|
* @name getRoleBasedActions
|
|
3042
2911
|
* @summary: Get role-based actions
|
|
3043
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/).
|
|
@@ -3089,7 +2958,7 @@ class Order {
|
|
|
3089
2958
|
|
|
3090
2959
|
const {
|
|
3091
2960
|
error: res_error,
|
|
3092
|
-
} = OrderPlatformModel.
|
|
2961
|
+
} = OrderPlatformModel.GetActionsResponse().validate(responseData, {
|
|
3093
2962
|
abortEarly: false,
|
|
3094
2963
|
allowUnknown: true,
|
|
3095
2964
|
});
|
|
@@ -3112,8 +2981,7 @@ class Order {
|
|
|
3112
2981
|
* @param {OrderPlatformValidator.GetShipmentByIdParam} arg - Arg object
|
|
3113
2982
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3114
2983
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
3115
|
-
* @returns {Promise<OrderPlatformModel.
|
|
3116
|
-
* Success response
|
|
2984
|
+
* @returns {Promise<OrderPlatformModel.ShipmentInfoResponse>} - Success response
|
|
3117
2985
|
* @name getShipmentById
|
|
3118
2986
|
* @summary: Get shipment
|
|
3119
2987
|
* @description: Get detailed information about a specific shipment - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/getShipmentById/).
|
|
@@ -3185,7 +3053,7 @@ class Order {
|
|
|
3185
3053
|
|
|
3186
3054
|
const {
|
|
3187
3055
|
error: res_error,
|
|
3188
|
-
} = OrderPlatformModel.
|
|
3056
|
+
} = OrderPlatformModel.ShipmentInfoResponse().validate(responseData, {
|
|
3189
3057
|
abortEarly: false,
|
|
3190
3058
|
allowUnknown: true,
|
|
3191
3059
|
});
|
|
@@ -3208,8 +3076,7 @@ class Order {
|
|
|
3208
3076
|
* @param {OrderPlatformValidator.GetShipmentHistoryParam} arg - Arg object
|
|
3209
3077
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3210
3078
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
3211
|
-
* @returns {Promise<OrderPlatformModel.
|
|
3212
|
-
* Success response
|
|
3079
|
+
* @returns {Promise<OrderPlatformModel.ShipmentHistoryResponse>} - Success response
|
|
3213
3080
|
* @name getShipmentHistory
|
|
3214
3081
|
* @summary: Get a shipment's history
|
|
3215
3082
|
* @description: Get the history of the shipment - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/getShipmentHistory/).
|
|
@@ -3269,10 +3136,10 @@ class Order {
|
|
|
3269
3136
|
|
|
3270
3137
|
const {
|
|
3271
3138
|
error: res_error,
|
|
3272
|
-
} = OrderPlatformModel.
|
|
3273
|
-
|
|
3274
|
-
|
|
3275
|
-
);
|
|
3139
|
+
} = OrderPlatformModel.ShipmentHistoryResponse().validate(responseData, {
|
|
3140
|
+
abortEarly: false,
|
|
3141
|
+
allowUnknown: true,
|
|
3142
|
+
});
|
|
3276
3143
|
|
|
3277
3144
|
if (res_error) {
|
|
3278
3145
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -3292,9 +3159,8 @@ class Order {
|
|
|
3292
3159
|
* @param {OrderPlatformValidator.GetShipmentReasonsParam} arg - Arg object
|
|
3293
3160
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3294
3161
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
3295
|
-
* @returns {Promise<OrderPlatformModel.
|
|
3296
|
-
*
|
|
3297
|
-
*
|
|
3162
|
+
* @returns {Promise<OrderPlatformModel.PlatformShipmentReasonsResponse>} -
|
|
3163
|
+
* Success response
|
|
3298
3164
|
* @name getShipmentReasons
|
|
3299
3165
|
* @summary: List bag cancellation reasons
|
|
3300
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/).
|
|
@@ -3354,7 +3220,7 @@ class Order {
|
|
|
3354
3220
|
|
|
3355
3221
|
const {
|
|
3356
3222
|
error: res_error,
|
|
3357
|
-
} = OrderPlatformModel.
|
|
3223
|
+
} = OrderPlatformModel.PlatformShipmentReasonsResponse().validate(
|
|
3358
3224
|
responseData,
|
|
3359
3225
|
{ abortEarly: false, allowUnknown: true }
|
|
3360
3226
|
);
|
|
@@ -3377,7 +3243,7 @@ class Order {
|
|
|
3377
3243
|
* @param {OrderPlatformValidator.GetShipmentsParam} arg - Arg object
|
|
3378
3244
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3379
3245
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
3380
|
-
* @returns {Promise<OrderPlatformModel.
|
|
3246
|
+
* @returns {Promise<OrderPlatformModel.ShipmentInternalPlatformViewResponse>}
|
|
3381
3247
|
* - Success response
|
|
3382
3248
|
*
|
|
3383
3249
|
* @name getShipments
|
|
@@ -3417,7 +3283,7 @@ class Order {
|
|
|
3417
3283
|
tags,
|
|
3418
3284
|
customerId,
|
|
3419
3285
|
orderType,
|
|
3420
|
-
|
|
3286
|
+
enforceDateFilter,
|
|
3421
3287
|
requestHeaders,
|
|
3422
3288
|
} = { requestHeaders: {} },
|
|
3423
3289
|
{ responseHeaders } = { responseHeaders: false }
|
|
@@ -3455,7 +3321,7 @@ class Order {
|
|
|
3455
3321
|
tags,
|
|
3456
3322
|
customerId,
|
|
3457
3323
|
orderType,
|
|
3458
|
-
|
|
3324
|
+
enforceDateFilter,
|
|
3459
3325
|
},
|
|
3460
3326
|
{ abortEarly: false, allowUnknown: true }
|
|
3461
3327
|
);
|
|
@@ -3497,7 +3363,7 @@ class Order {
|
|
|
3497
3363
|
tags,
|
|
3498
3364
|
customerId,
|
|
3499
3365
|
orderType,
|
|
3500
|
-
|
|
3366
|
+
enforceDateFilter,
|
|
3501
3367
|
},
|
|
3502
3368
|
{ abortEarly: false, allowUnknown: false }
|
|
3503
3369
|
);
|
|
@@ -3540,7 +3406,7 @@ class Order {
|
|
|
3540
3406
|
query_params["tags"] = tags;
|
|
3541
3407
|
query_params["customer_id"] = customerId;
|
|
3542
3408
|
query_params["order_type"] = orderType;
|
|
3543
|
-
query_params["
|
|
3409
|
+
query_params["enforce_date_filter"] = enforceDateFilter;
|
|
3544
3410
|
|
|
3545
3411
|
const xHeaders = {};
|
|
3546
3412
|
|
|
@@ -3561,7 +3427,7 @@ class Order {
|
|
|
3561
3427
|
|
|
3562
3428
|
const {
|
|
3563
3429
|
error: res_error,
|
|
3564
|
-
} = OrderPlatformModel.
|
|
3430
|
+
} = OrderPlatformModel.ShipmentInternalPlatformViewResponse().validate(
|
|
3565
3431
|
responseData,
|
|
3566
3432
|
{ abortEarly: false, allowUnknown: true }
|
|
3567
3433
|
);
|
|
@@ -3745,8 +3611,7 @@ class Order {
|
|
|
3745
3611
|
* @param {OrderPlatformValidator.GetTemplateParam} arg - Arg object
|
|
3746
3612
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3747
3613
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
3748
|
-
* @returns {Promise<OrderPlatformModel.
|
|
3749
|
-
* Success response
|
|
3614
|
+
* @returns {Promise<OrderPlatformModel.TemplateDownloadResponse>} - Success response
|
|
3750
3615
|
* @name getTemplate
|
|
3751
3616
|
* @summary: Download bulk operation templates
|
|
3752
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/).
|
|
@@ -3800,10 +3665,10 @@ class Order {
|
|
|
3800
3665
|
|
|
3801
3666
|
const {
|
|
3802
3667
|
error: res_error,
|
|
3803
|
-
} = OrderPlatformModel.
|
|
3804
|
-
|
|
3805
|
-
|
|
3806
|
-
);
|
|
3668
|
+
} = OrderPlatformModel.TemplateDownloadResponse().validate(responseData, {
|
|
3669
|
+
abortEarly: false,
|
|
3670
|
+
allowUnknown: true,
|
|
3671
|
+
});
|
|
3807
3672
|
|
|
3808
3673
|
if (res_error) {
|
|
3809
3674
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -3823,7 +3688,7 @@ class Order {
|
|
|
3823
3688
|
* @param {OrderPlatformValidator.GetfiltersParam} arg - Arg object
|
|
3824
3689
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3825
3690
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
3826
|
-
* @returns {Promise<OrderPlatformModel.
|
|
3691
|
+
* @returns {Promise<OrderPlatformModel.FiltersResponse>} - Success response
|
|
3827
3692
|
* @name getfilters
|
|
3828
3693
|
* @summary: List filters
|
|
3829
3694
|
* @description: Get supported filters for various listing operations - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/getfilters/).
|
|
@@ -3881,7 +3746,7 @@ class Order {
|
|
|
3881
3746
|
|
|
3882
3747
|
const {
|
|
3883
3748
|
error: res_error,
|
|
3884
|
-
} = OrderPlatformModel.
|
|
3749
|
+
} = OrderPlatformModel.FiltersResponse().validate(responseData, {
|
|
3885
3750
|
abortEarly: false,
|
|
3886
3751
|
allowUnknown: true,
|
|
3887
3752
|
});
|
|
@@ -3904,9 +3769,8 @@ class Order {
|
|
|
3904
3769
|
* @param {OrderPlatformValidator.InvalidateShipmentCacheParam} arg - Arg object
|
|
3905
3770
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3906
3771
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
3907
|
-
* @returns {Promise<OrderPlatformModel.
|
|
3908
|
-
*
|
|
3909
|
-
*
|
|
3772
|
+
* @returns {Promise<OrderPlatformModel.InvalidateShipmentCacheResponse>} -
|
|
3773
|
+
* Success response
|
|
3910
3774
|
* @name invalidateShipmentCache
|
|
3911
3775
|
* @summary: Invalidate shipment cache
|
|
3912
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/).
|
|
@@ -3962,7 +3826,7 @@ class Order {
|
|
|
3962
3826
|
|
|
3963
3827
|
const {
|
|
3964
3828
|
error: res_error,
|
|
3965
|
-
} = OrderPlatformModel.
|
|
3829
|
+
} = OrderPlatformModel.InvalidateShipmentCacheResponse().validate(
|
|
3966
3830
|
responseData,
|
|
3967
3831
|
{ abortEarly: false, allowUnknown: true }
|
|
3968
3832
|
);
|
|
@@ -3985,7 +3849,7 @@ class Order {
|
|
|
3985
3849
|
* @param {OrderPlatformValidator.JobDetailsParam} arg - Arg object
|
|
3986
3850
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3987
3851
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
3988
|
-
* @returns {Promise<OrderPlatformModel.
|
|
3852
|
+
* @returns {Promise<OrderPlatformModel.JobDetailsResponse>} - Success response
|
|
3989
3853
|
* @name jobDetails
|
|
3990
3854
|
* @summary: Get bulk operation details
|
|
3991
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/).
|
|
@@ -4039,7 +3903,7 @@ class Order {
|
|
|
4039
3903
|
|
|
4040
3904
|
const {
|
|
4041
3905
|
error: res_error,
|
|
4042
|
-
} = OrderPlatformModel.
|
|
3906
|
+
} = OrderPlatformModel.JobDetailsResponse().validate(responseData, {
|
|
4043
3907
|
abortEarly: false,
|
|
4044
3908
|
allowUnknown: true,
|
|
4045
3909
|
});
|
|
@@ -4139,8 +4003,7 @@ class Order {
|
|
|
4139
4003
|
* @param {OrderPlatformValidator.PostShipmentHistoryParam} arg - Arg object
|
|
4140
4004
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
4141
4005
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
4142
|
-
* @returns {Promise<OrderPlatformModel.
|
|
4143
|
-
* Success response
|
|
4006
|
+
* @returns {Promise<OrderPlatformModel.ShipmentHistoryResponse>} - Success response
|
|
4144
4007
|
* @name postShipmentHistory
|
|
4145
4008
|
* @summary: Create shipment history
|
|
4146
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/).
|
|
@@ -4196,10 +4059,10 @@ class Order {
|
|
|
4196
4059
|
|
|
4197
4060
|
const {
|
|
4198
4061
|
error: res_error,
|
|
4199
|
-
} = OrderPlatformModel.
|
|
4200
|
-
|
|
4201
|
-
|
|
4202
|
-
);
|
|
4062
|
+
} = OrderPlatformModel.ShipmentHistoryResponse().validate(responseData, {
|
|
4063
|
+
abortEarly: false,
|
|
4064
|
+
allowUnknown: true,
|
|
4065
|
+
});
|
|
4203
4066
|
|
|
4204
4067
|
if (res_error) {
|
|
4205
4068
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -4215,93 +4078,11 @@ class Order {
|
|
|
4215
4078
|
return response;
|
|
4216
4079
|
}
|
|
4217
4080
|
|
|
4218
|
-
/**
|
|
4219
|
-
* @param {OrderPlatformValidator.ProcessManifestsParam} arg - Arg object
|
|
4220
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
4221
|
-
* @param {import("../PlatformAPIClient").Options} - Options
|
|
4222
|
-
* @returns {Promise<OrderPlatformModel.ProcessManifestItemResponseSchema>}
|
|
4223
|
-
* - Success response
|
|
4224
|
-
*
|
|
4225
|
-
* @name processManifests
|
|
4226
|
-
* @summary: Generate manifest
|
|
4227
|
-
* @description: Generate manifest Id and PDF and tags the shipments with that manifest Id - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/processManifests/).
|
|
4228
|
-
*/
|
|
4229
|
-
async processManifests(
|
|
4230
|
-
{ body, requestHeaders } = { requestHeaders: {} },
|
|
4231
|
-
{ responseHeaders } = { responseHeaders: false }
|
|
4232
|
-
) {
|
|
4233
|
-
const { error } = OrderPlatformValidator.processManifests().validate(
|
|
4234
|
-
{
|
|
4235
|
-
body,
|
|
4236
|
-
},
|
|
4237
|
-
{ abortEarly: false, allowUnknown: true }
|
|
4238
|
-
);
|
|
4239
|
-
if (error) {
|
|
4240
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
4241
|
-
}
|
|
4242
|
-
|
|
4243
|
-
// Showing warrnings if extra unknown parameters are found
|
|
4244
|
-
const {
|
|
4245
|
-
error: warrning,
|
|
4246
|
-
} = OrderPlatformValidator.processManifests().validate(
|
|
4247
|
-
{
|
|
4248
|
-
body,
|
|
4249
|
-
},
|
|
4250
|
-
{ abortEarly: false, allowUnknown: false }
|
|
4251
|
-
);
|
|
4252
|
-
if (warrning) {
|
|
4253
|
-
Logger({
|
|
4254
|
-
level: "WARN",
|
|
4255
|
-
message: `Parameter Validation warrnings for platform > Order > processManifests \n ${warrning}`,
|
|
4256
|
-
});
|
|
4257
|
-
}
|
|
4258
|
-
|
|
4259
|
-
const query_params = {};
|
|
4260
|
-
|
|
4261
|
-
const xHeaders = {};
|
|
4262
|
-
|
|
4263
|
-
const response = await PlatformAPIClient.execute(
|
|
4264
|
-
this.config,
|
|
4265
|
-
"post",
|
|
4266
|
-
`/service/platform/order-manage/v1.0/company/${this.config.companyId}/manifests`,
|
|
4267
|
-
query_params,
|
|
4268
|
-
body,
|
|
4269
|
-
{ ...xHeaders, ...requestHeaders },
|
|
4270
|
-
{ responseHeaders }
|
|
4271
|
-
);
|
|
4272
|
-
|
|
4273
|
-
let responseData = response;
|
|
4274
|
-
if (responseHeaders) {
|
|
4275
|
-
responseData = response[0];
|
|
4276
|
-
}
|
|
4277
|
-
|
|
4278
|
-
const {
|
|
4279
|
-
error: res_error,
|
|
4280
|
-
} = OrderPlatformModel.ProcessManifestItemResponseSchema().validate(
|
|
4281
|
-
responseData,
|
|
4282
|
-
{ abortEarly: false, allowUnknown: true }
|
|
4283
|
-
);
|
|
4284
|
-
|
|
4285
|
-
if (res_error) {
|
|
4286
|
-
if (this.config.options.strictResponseCheck === true) {
|
|
4287
|
-
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
4288
|
-
} else {
|
|
4289
|
-
Logger({
|
|
4290
|
-
level: "WARN",
|
|
4291
|
-
message: `Response Validation Warnings for platform > Order > processManifests \n ${res_error}`,
|
|
4292
|
-
});
|
|
4293
|
-
}
|
|
4294
|
-
}
|
|
4295
|
-
|
|
4296
|
-
return response;
|
|
4297
|
-
}
|
|
4298
|
-
|
|
4299
4081
|
/**
|
|
4300
4082
|
* @param {OrderPlatformValidator.ReassignLocationParam} arg - Arg object
|
|
4301
4083
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
4302
4084
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
4303
|
-
* @returns {Promise<OrderPlatformModel.
|
|
4304
|
-
* Success response
|
|
4085
|
+
* @returns {Promise<OrderPlatformModel.StoreReassignResponse>} - Success response
|
|
4305
4086
|
* @name reassignLocation
|
|
4306
4087
|
* @summary: Reassign location
|
|
4307
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/).
|
|
@@ -4357,10 +4138,10 @@ class Order {
|
|
|
4357
4138
|
|
|
4358
4139
|
const {
|
|
4359
4140
|
error: res_error,
|
|
4360
|
-
} = OrderPlatformModel.
|
|
4361
|
-
|
|
4362
|
-
|
|
4363
|
-
);
|
|
4141
|
+
} = OrderPlatformModel.StoreReassignResponse().validate(responseData, {
|
|
4142
|
+
abortEarly: false,
|
|
4143
|
+
allowUnknown: true,
|
|
4144
|
+
});
|
|
4364
4145
|
|
|
4365
4146
|
if (res_error) {
|
|
4366
4147
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -4380,7 +4161,7 @@ class Order {
|
|
|
4380
4161
|
* @param {OrderPlatformValidator.SendSmsNinjaParam} arg - Arg object
|
|
4381
4162
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
4382
4163
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
4383
|
-
* @returns {Promise<OrderPlatformModel.
|
|
4164
|
+
* @returns {Promise<OrderPlatformModel.BaseResponse>} - Success response
|
|
4384
4165
|
* @name sendSmsNinja
|
|
4385
4166
|
* @summary: Send SMS
|
|
4386
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/).
|
|
@@ -4434,7 +4215,7 @@ class Order {
|
|
|
4434
4215
|
|
|
4435
4216
|
const {
|
|
4436
4217
|
error: res_error,
|
|
4437
|
-
} = OrderPlatformModel.
|
|
4218
|
+
} = OrderPlatformModel.BaseResponse().validate(responseData, {
|
|
4438
4219
|
abortEarly: false,
|
|
4439
4220
|
allowUnknown: true,
|
|
4440
4221
|
});
|
|
@@ -4457,8 +4238,7 @@ class Order {
|
|
|
4457
4238
|
* @param {OrderPlatformValidator.SendUserMobileOTPParam} arg - Arg object
|
|
4458
4239
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
4459
4240
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
4460
|
-
* @returns {Promise<OrderPlatformModel.
|
|
4461
|
-
* Success response
|
|
4241
|
+
* @returns {Promise<OrderPlatformModel.SendUserMobileOtpResponse>} - Success response
|
|
4462
4242
|
* @name sendUserMobileOTP
|
|
4463
4243
|
* @summary: Send user mobile OTP
|
|
4464
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/).
|
|
@@ -4514,10 +4294,10 @@ class Order {
|
|
|
4514
4294
|
|
|
4515
4295
|
const {
|
|
4516
4296
|
error: res_error,
|
|
4517
|
-
} = OrderPlatformModel.
|
|
4518
|
-
|
|
4519
|
-
|
|
4520
|
-
);
|
|
4297
|
+
} = OrderPlatformModel.SendUserMobileOtpResponse().validate(responseData, {
|
|
4298
|
+
abortEarly: false,
|
|
4299
|
+
allowUnknown: true,
|
|
4300
|
+
});
|
|
4521
4301
|
|
|
4522
4302
|
if (res_error) {
|
|
4523
4303
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -4537,9 +4317,8 @@ class Order {
|
|
|
4537
4317
|
* @param {OrderPlatformValidator.TrackShipmentParam} arg - Arg object
|
|
4538
4318
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
4539
4319
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
4540
|
-
* @returns {Promise<OrderPlatformModel.
|
|
4541
|
-
*
|
|
4542
|
-
*
|
|
4320
|
+
* @returns {Promise<OrderPlatformModel.CourierPartnerTrackingResponse>} -
|
|
4321
|
+
* Success response
|
|
4543
4322
|
* @name trackShipment
|
|
4544
4323
|
* @summary: Track shipment
|
|
4545
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/).
|
|
@@ -4605,7 +4384,7 @@ class Order {
|
|
|
4605
4384
|
|
|
4606
4385
|
const {
|
|
4607
4386
|
error: res_error,
|
|
4608
|
-
} = OrderPlatformModel.
|
|
4387
|
+
} = OrderPlatformModel.CourierPartnerTrackingResponse().validate(
|
|
4609
4388
|
responseData,
|
|
4610
4389
|
{ abortEarly: false, allowUnknown: true }
|
|
4611
4390
|
);
|
|
@@ -4628,19 +4407,44 @@ class Order {
|
|
|
4628
4407
|
* @param {OrderPlatformValidator.UpdateAddressParam} arg - Arg object
|
|
4629
4408
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
4630
4409
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
4631
|
-
* @returns {Promise<OrderPlatformModel.
|
|
4410
|
+
* @returns {Promise<OrderPlatformModel.BaseResponse>} - Success response
|
|
4632
4411
|
* @name updateAddress
|
|
4633
|
-
* @summary: Update
|
|
4634
|
-
* @description:
|
|
4412
|
+
* @summary: Update shipment address
|
|
4413
|
+
* @description: Modify the address details of an existing shipment - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/updateAddress/).
|
|
4635
4414
|
*/
|
|
4636
4415
|
async updateAddress(
|
|
4637
|
-
{
|
|
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: {} },
|
|
4638
4431
|
{ responseHeaders } = { responseHeaders: false }
|
|
4639
4432
|
) {
|
|
4640
4433
|
const { error } = OrderPlatformValidator.updateAddress().validate(
|
|
4641
4434
|
{
|
|
4642
4435
|
shipmentId,
|
|
4643
|
-
|
|
4436
|
+
addressCategory,
|
|
4437
|
+
|
|
4438
|
+
name,
|
|
4439
|
+
address,
|
|
4440
|
+
addressType,
|
|
4441
|
+
pincode,
|
|
4442
|
+
phone,
|
|
4443
|
+
email,
|
|
4444
|
+
landmark,
|
|
4445
|
+
city,
|
|
4446
|
+
state,
|
|
4447
|
+
country,
|
|
4644
4448
|
},
|
|
4645
4449
|
{ abortEarly: false, allowUnknown: true }
|
|
4646
4450
|
);
|
|
@@ -4652,7 +4456,18 @@ class Order {
|
|
|
4652
4456
|
const { error: warrning } = OrderPlatformValidator.updateAddress().validate(
|
|
4653
4457
|
{
|
|
4654
4458
|
shipmentId,
|
|
4655
|
-
|
|
4459
|
+
addressCategory,
|
|
4460
|
+
|
|
4461
|
+
name,
|
|
4462
|
+
address,
|
|
4463
|
+
addressType,
|
|
4464
|
+
pincode,
|
|
4465
|
+
phone,
|
|
4466
|
+
email,
|
|
4467
|
+
landmark,
|
|
4468
|
+
city,
|
|
4469
|
+
state,
|
|
4470
|
+
country,
|
|
4656
4471
|
},
|
|
4657
4472
|
{ abortEarly: false, allowUnknown: false }
|
|
4658
4473
|
);
|
|
@@ -4664,15 +4479,27 @@ class Order {
|
|
|
4664
4479
|
}
|
|
4665
4480
|
|
|
4666
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;
|
|
4667
4494
|
|
|
4668
4495
|
const xHeaders = {};
|
|
4669
4496
|
|
|
4670
4497
|
const response = await PlatformAPIClient.execute(
|
|
4671
4498
|
this.config,
|
|
4672
|
-
"
|
|
4673
|
-
`/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`,
|
|
4674
4501
|
query_params,
|
|
4675
|
-
|
|
4502
|
+
undefined,
|
|
4676
4503
|
{ ...xHeaders, ...requestHeaders },
|
|
4677
4504
|
{ responseHeaders }
|
|
4678
4505
|
);
|
|
@@ -4684,7 +4511,7 @@ class Order {
|
|
|
4684
4511
|
|
|
4685
4512
|
const {
|
|
4686
4513
|
error: res_error,
|
|
4687
|
-
} = OrderPlatformModel.
|
|
4514
|
+
} = OrderPlatformModel.BaseResponse().validate(responseData, {
|
|
4688
4515
|
abortEarly: false,
|
|
4689
4516
|
allowUnknown: true,
|
|
4690
4517
|
});
|
|
@@ -4707,7 +4534,7 @@ class Order {
|
|
|
4707
4534
|
* @param {OrderPlatformValidator.UpdatePackagingDimensionsParam} arg - Arg object
|
|
4708
4535
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
4709
4536
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
4710
|
-
* @returns {Promise<OrderPlatformModel.
|
|
4537
|
+
* @returns {Promise<OrderPlatformModel.UpdatePackagingDimensionsResponse>}
|
|
4711
4538
|
* - Success response
|
|
4712
4539
|
*
|
|
4713
4540
|
* @name updatePackagingDimensions
|
|
@@ -4767,7 +4594,7 @@ class Order {
|
|
|
4767
4594
|
|
|
4768
4595
|
const {
|
|
4769
4596
|
error: res_error,
|
|
4770
|
-
} = OrderPlatformModel.
|
|
4597
|
+
} = OrderPlatformModel.UpdatePackagingDimensionsResponse().validate(
|
|
4771
4598
|
responseData,
|
|
4772
4599
|
{ abortEarly: false, allowUnknown: true }
|
|
4773
4600
|
);
|
|
@@ -4786,93 +4613,15 @@ class Order {
|
|
|
4786
4613
|
return response;
|
|
4787
4614
|
}
|
|
4788
4615
|
|
|
4789
|
-
/**
|
|
4790
|
-
* @param {OrderPlatformValidator.UpdatePaymentInfoParam} arg - Arg object
|
|
4791
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
4792
|
-
* @param {import("../PlatformAPIClient").Options} - Options
|
|
4793
|
-
* @returns {Promise<Object>} - Success response
|
|
4794
|
-
* @name updatePaymentInfo
|
|
4795
|
-
* @summary: Update payment details for an order, its shipments and its bags.
|
|
4796
|
-
* @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/).
|
|
4797
|
-
*/
|
|
4798
|
-
async updatePaymentInfo(
|
|
4799
|
-
{ body, requestHeaders } = { requestHeaders: {} },
|
|
4800
|
-
{ responseHeaders } = { responseHeaders: false }
|
|
4801
|
-
) {
|
|
4802
|
-
const { error } = OrderPlatformValidator.updatePaymentInfo().validate(
|
|
4803
|
-
{
|
|
4804
|
-
body,
|
|
4805
|
-
},
|
|
4806
|
-
{ abortEarly: false, allowUnknown: true }
|
|
4807
|
-
);
|
|
4808
|
-
if (error) {
|
|
4809
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
4810
|
-
}
|
|
4811
|
-
|
|
4812
|
-
// Showing warrnings if extra unknown parameters are found
|
|
4813
|
-
const {
|
|
4814
|
-
error: warrning,
|
|
4815
|
-
} = OrderPlatformValidator.updatePaymentInfo().validate(
|
|
4816
|
-
{
|
|
4817
|
-
body,
|
|
4818
|
-
},
|
|
4819
|
-
{ abortEarly: false, allowUnknown: false }
|
|
4820
|
-
);
|
|
4821
|
-
if (warrning) {
|
|
4822
|
-
Logger({
|
|
4823
|
-
level: "WARN",
|
|
4824
|
-
message: `Parameter Validation warrnings for platform > Order > updatePaymentInfo \n ${warrning}`,
|
|
4825
|
-
});
|
|
4826
|
-
}
|
|
4827
|
-
|
|
4828
|
-
const query_params = {};
|
|
4829
|
-
|
|
4830
|
-
const xHeaders = {};
|
|
4831
|
-
|
|
4832
|
-
const response = await PlatformAPIClient.execute(
|
|
4833
|
-
this.config,
|
|
4834
|
-
"put",
|
|
4835
|
-
`/service/platform/order-manage/v1.0/company/${this.config.companyId}/payment/update`,
|
|
4836
|
-
query_params,
|
|
4837
|
-
body,
|
|
4838
|
-
{ ...xHeaders, ...requestHeaders },
|
|
4839
|
-
{ responseHeaders }
|
|
4840
|
-
);
|
|
4841
|
-
|
|
4842
|
-
let responseData = response;
|
|
4843
|
-
if (responseHeaders) {
|
|
4844
|
-
responseData = response[0];
|
|
4845
|
-
}
|
|
4846
|
-
|
|
4847
|
-
const { error: res_error } = Joi.any().validate(responseData, {
|
|
4848
|
-
abortEarly: false,
|
|
4849
|
-
allowUnknown: true,
|
|
4850
|
-
});
|
|
4851
|
-
|
|
4852
|
-
if (res_error) {
|
|
4853
|
-
if (this.config.options.strictResponseCheck === true) {
|
|
4854
|
-
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
4855
|
-
} else {
|
|
4856
|
-
Logger({
|
|
4857
|
-
level: "WARN",
|
|
4858
|
-
message: `Response Validation Warnings for platform > Order > updatePaymentInfo \n ${res_error}`,
|
|
4859
|
-
});
|
|
4860
|
-
}
|
|
4861
|
-
}
|
|
4862
|
-
|
|
4863
|
-
return response;
|
|
4864
|
-
}
|
|
4865
|
-
|
|
4866
4616
|
/**
|
|
4867
4617
|
* @param {OrderPlatformValidator.UpdateShipmentLockParam} arg - Arg object
|
|
4868
4618
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
4869
4619
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
4870
|
-
* @returns {Promise<OrderPlatformModel.
|
|
4871
|
-
*
|
|
4872
|
-
*
|
|
4620
|
+
* @returns {Promise<OrderPlatformModel.UpdateShipmentLockResponse>} -
|
|
4621
|
+
* Success response
|
|
4873
4622
|
* @name updateShipmentLock
|
|
4874
4623
|
* @summary: Update a shipment lock
|
|
4875
|
-
* @description: Modify shipment/bag lock and
|
|
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/).
|
|
4876
4625
|
*/
|
|
4877
4626
|
async updateShipmentLock(
|
|
4878
4627
|
{ body, requestHeaders } = { requestHeaders: {} },
|
|
@@ -4925,10 +4674,10 @@ class Order {
|
|
|
4925
4674
|
|
|
4926
4675
|
const {
|
|
4927
4676
|
error: res_error,
|
|
4928
|
-
} = OrderPlatformModel.
|
|
4929
|
-
|
|
4930
|
-
|
|
4931
|
-
);
|
|
4677
|
+
} = OrderPlatformModel.UpdateShipmentLockResponse().validate(responseData, {
|
|
4678
|
+
abortEarly: false,
|
|
4679
|
+
allowUnknown: true,
|
|
4680
|
+
});
|
|
4932
4681
|
|
|
4933
4682
|
if (res_error) {
|
|
4934
4683
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -5109,18 +4858,17 @@ class Order {
|
|
|
5109
4858
|
* @param {OrderPlatformValidator.UploadConsentsParam} arg - Arg object
|
|
5110
4859
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
5111
4860
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
5112
|
-
* @returns {Promise<OrderPlatformModel.
|
|
4861
|
+
* @returns {Promise<OrderPlatformModel.SuccessResponse>} - Success response
|
|
5113
4862
|
* @name uploadConsents
|
|
5114
4863
|
* @summary: Upload consent
|
|
5115
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/).
|
|
5116
4865
|
*/
|
|
5117
4866
|
async uploadConsents(
|
|
5118
|
-
{
|
|
4867
|
+
{ body, requestHeaders } = { requestHeaders: {} },
|
|
5119
4868
|
{ responseHeaders } = { responseHeaders: false }
|
|
5120
4869
|
) {
|
|
5121
4870
|
const { error } = OrderPlatformValidator.uploadConsents().validate(
|
|
5122
4871
|
{
|
|
5123
|
-
manifestId,
|
|
5124
4872
|
body,
|
|
5125
4873
|
},
|
|
5126
4874
|
{ abortEarly: false, allowUnknown: true }
|
|
@@ -5134,7 +4882,6 @@ class Order {
|
|
|
5134
4882
|
error: warrning,
|
|
5135
4883
|
} = OrderPlatformValidator.uploadConsents().validate(
|
|
5136
4884
|
{
|
|
5137
|
-
manifestId,
|
|
5138
4885
|
body,
|
|
5139
4886
|
},
|
|
5140
4887
|
{ abortEarly: false, allowUnknown: false }
|
|
@@ -5153,7 +4900,7 @@ class Order {
|
|
|
5153
4900
|
const response = await PlatformAPIClient.execute(
|
|
5154
4901
|
this.config,
|
|
5155
4902
|
"post",
|
|
5156
|
-
`/service/platform/order-manage/v1.0/company/${this.config.companyId}/manifest
|
|
4903
|
+
`/service/platform/order-manage/v1.0/company/${this.config.companyId}/manifest/uploadConsent`,
|
|
5157
4904
|
query_params,
|
|
5158
4905
|
body,
|
|
5159
4906
|
{ ...xHeaders, ...requestHeaders },
|
|
@@ -5167,7 +4914,7 @@ class Order {
|
|
|
5167
4914
|
|
|
5168
4915
|
const {
|
|
5169
4916
|
error: res_error,
|
|
5170
|
-
} = OrderPlatformModel.
|
|
4917
|
+
} = OrderPlatformModel.SuccessResponse().validate(responseData, {
|
|
5171
4918
|
abortEarly: false,
|
|
5172
4919
|
allowUnknown: true,
|
|
5173
4920
|
});
|
|
@@ -5190,7 +4937,7 @@ class Order {
|
|
|
5190
4937
|
* @param {OrderPlatformValidator.VerifyMobileOTPParam} arg - Arg object
|
|
5191
4938
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
5192
4939
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
5193
|
-
* @returns {Promise<OrderPlatformModel.
|
|
4940
|
+
* @returns {Promise<OrderPlatformModel.VerifyOtpResponse>} - Success response
|
|
5194
4941
|
* @name verifyMobileOTP
|
|
5195
4942
|
* @summary: Verify mobile OTP
|
|
5196
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/).
|
|
@@ -5246,7 +4993,7 @@ class Order {
|
|
|
5246
4993
|
|
|
5247
4994
|
const {
|
|
5248
4995
|
error: res_error,
|
|
5249
|
-
} = OrderPlatformModel.
|
|
4996
|
+
} = OrderPlatformModel.VerifyOtpResponse().validate(responseData, {
|
|
5250
4997
|
abortEarly: false,
|
|
5251
4998
|
allowUnknown: true,
|
|
5252
4999
|
});
|