@gofynd/fdk-client-javascript 1.4.14 → 1.4.15-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +1 -1
- package/sdk/application/ApplicationClient.d.ts +0 -2
- package/sdk/application/ApplicationClient.js +0 -2
- package/sdk/application/Cart/CartApplicationClient.d.ts +53 -60
- package/sdk/application/Cart/CartApplicationClient.js +53 -130
- package/sdk/application/Cart/CartApplicationModel.d.ts +143 -489
- package/sdk/application/Cart/CartApplicationModel.js +159 -380
- package/sdk/application/Cart/CartApplicationValidator.d.ts +19 -38
- package/sdk/application/Cart/CartApplicationValidator.js +18 -34
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +68 -88
- package/sdk/application/Catalog/CatalogApplicationClient.js +94 -114
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +142 -194
- package/sdk/application/Catalog/CatalogApplicationModel.js +133 -171
- package/sdk/application/Common/CommonApplicationClient.d.ts +2 -3
- package/sdk/application/Common/CommonApplicationClient.js +5 -6
- package/sdk/application/Common/CommonApplicationModel.d.ts +9 -9
- package/sdk/application/Common/CommonApplicationModel.js +6 -6
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +27 -34
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +27 -34
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +57 -45
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +47 -35
- package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +2 -2
- package/sdk/application/Configuration/ConfigurationApplicationValidator.js +2 -2
- package/sdk/application/Content/ContentApplicationClient.d.ts +33 -23
- package/sdk/application/Content/ContentApplicationClient.js +75 -54
- package/sdk/application/Content/ContentApplicationModel.d.ts +37 -93
- package/sdk/application/Content/ContentApplicationModel.js +32 -83
- package/sdk/application/Content/ContentApplicationValidator.d.ts +17 -23
- package/sdk/application/Content/ContentApplicationValidator.js +10 -15
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +8 -9
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +13 -14
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +25 -23
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +18 -16
- package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +6 -6
- package/sdk/application/FileStorage/FileStorageApplicationValidator.js +6 -6
- package/sdk/application/Lead/LeadApplicationClient.d.ts +3 -2
- package/sdk/application/Lead/LeadApplicationClient.js +3 -2
- package/sdk/application/Lead/LeadApplicationModel.d.ts +11 -11
- package/sdk/application/Lead/LeadApplicationModel.js +19 -19
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +16 -39
- package/sdk/application/Logistic/LogisticApplicationClient.js +21 -189
- package/sdk/application/Logistic/LogisticApplicationModel.d.ts +173 -532
- package/sdk/application/Logistic/LogisticApplicationModel.js +139 -409
- package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +9 -54
- package/sdk/application/Logistic/LogisticApplicationValidator.js +8 -42
- package/sdk/application/Order/OrderApplicationClient.d.ts +10 -24
- package/sdk/application/Order/OrderApplicationClient.js +13 -96
- package/sdk/application/Order/OrderApplicationModel.d.ts +120 -436
- package/sdk/application/Order/OrderApplicationModel.js +81 -279
- package/sdk/application/Order/OrderApplicationValidator.d.ts +3 -17
- package/sdk/application/Order/OrderApplicationValidator.js +2 -15
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +99 -96
- package/sdk/application/Payment/PaymentApplicationClient.js +114 -111
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +289 -293
- package/sdk/application/Payment/PaymentApplicationModel.js +241 -243
- package/sdk/application/Payment/PaymentApplicationValidator.d.ts +46 -46
- package/sdk/application/Payment/PaymentApplicationValidator.js +46 -46
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +16 -13
- package/sdk/application/Rewards/RewardsApplicationClient.js +22 -19
- package/sdk/application/Rewards/RewardsApplicationModel.d.ts +37 -37
- package/sdk/application/Rewards/RewardsApplicationModel.js +29 -29
- package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +6 -6
- package/sdk/application/Rewards/RewardsApplicationValidator.js +6 -6
- package/sdk/application/Share/ShareApplicationModel.js +1 -1
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +2 -2
- package/sdk/application/Theme/ThemeApplicationClient.js +6 -8
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +17 -48
- package/sdk/application/Theme/ThemeApplicationModel.js +22 -42
- package/sdk/application/Theme/ThemeApplicationValidator.d.ts +3 -16
- package/sdk/application/Theme/ThemeApplicationValidator.js +2 -9
- package/sdk/application/User/UserApplicationClient.d.ts +10 -10
- package/sdk/application/User/UserApplicationClient.js +10 -10
- package/sdk/application/User/UserApplicationModel.d.ts +17 -17
- package/sdk/application/User/UserApplicationModel.js +16 -16
- package/sdk/application/User/UserApplicationValidator.d.ts +2 -2
- package/sdk/application/User/UserApplicationValidator.js +2 -2
- package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -4
- package/sdk/application/Webhook/WebhookApplicationClient.js +4 -4
- package/sdk/application/Webhook/WebhookApplicationModel.d.ts +9 -11
- package/sdk/application/Webhook/WebhookApplicationModel.js +6 -8
- package/sdk/application/Webhook/WebhookApplicationValidator.d.ts +2 -2
- package/sdk/application/Webhook/WebhookApplicationValidator.js +2 -2
- package/sdk/application/index.d.ts +0 -1
- package/sdk/application/index.js +0 -2
- package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +12 -86
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +24 -582
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +19 -116
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +14 -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/Theme/ThemePartnerClient.d.ts +10 -8
- package/sdk/partner/Theme/ThemePartnerClient.js +16 -14
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +37 -96
- package/sdk/partner/Theme/ThemePartnerModel.js +36 -90
- package/sdk/partner/Theme/ThemePartnerValidator.js +4 -4
- package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +18 -28
- package/sdk/partner/Webhook/WebhookPartnerClient.js +18 -103
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +179 -612
- package/sdk/partner/Webhook/WebhookPartnerModel.js +150 -253
- package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +0 -1
- package/sdk/partner/Webhook/WebhookPartnerValidator.js +3 -11
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +4 -5
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +8 -14
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +9 -59
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +4 -40
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +32 -2
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +243 -3
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +130 -11
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +152 -12
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +39 -1
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +35 -0
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +12 -12
- package/sdk/platform/Billing/BillingPlatformClient.js +15 -15
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +388 -443
- package/sdk/platform/Billing/BillingPlatformModel.js +263 -280
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +18 -16
- package/sdk/platform/Billing/BillingPlatformValidator.js +9 -8
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +103 -134
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +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 +1304 -4979
- package/sdk/platform/Cart/CartPlatformModel.js +1217 -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 +1751 -1501
- package/sdk/platform/Catalog/CatalogPlatformModel.js +1224 -1393
- 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 +124 -283
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +94 -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 +36 -94
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +60 -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 +19 -19
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +21 -21
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +101 -370
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +84 -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 -15
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +5 -83
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +4 -25
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +3 -16
- package/sdk/platform/Order/OrderPlatformClient.d.ts +97 -178
- package/sdk/platform/Order/OrderPlatformClient.js +245 -597
- package/sdk/platform/Order/OrderPlatformModel.d.ts +3071 -5449
- package/sdk/platform/Order/OrderPlatformModel.js +1656 -3501
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +190 -237
- package/sdk/platform/Order/OrderPlatformValidator.js +105 -153
- 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 +64 -58
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +341 -602
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +284 -483
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +8 -8
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +8 -8
- 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 +11 -37
- package/sdk/platform/Theme/ThemePlatformModel.js +15 -33
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +12 -12
- package/sdk/platform/User/UserPlatformApplicationClient.js +12 -12
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +2 -2
- package/sdk/platform/User/UserPlatformApplicationValidator.js +2 -2
- package/sdk/platform/User/UserPlatformModel.d.ts +21 -21
- package/sdk/platform/User/UserPlatformModel.js +23 -23
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +78 -25
- package/sdk/platform/Webhook/WebhookPlatformClient.js +470 -75
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +427 -720
- package/sdk/platform/Webhook/WebhookPlatformModel.js +386 -410
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +55 -10
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +72 -12
- package/sdk/platform/index.d.ts +1 -0
- package/sdk/platform/index.js +2 -0
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +2 -3
- package/sdk/public/Configuration/ConfigurationPublicClient.js +5 -6
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +9 -9
- package/sdk/public/Configuration/ConfigurationPublicModel.js +6 -6
- package/sdk/public/Content/ContentPublicClient.d.ts +2 -112
- package/sdk/public/Content/ContentPublicClient.js +5 -791
- package/sdk/public/Content/ContentPublicModel.d.ts +3 -549
- package/sdk/public/Content/ContentPublicModel.js +3 -649
- package/sdk/public/Content/ContentPublicValidator.d.ts +3 -69
- package/sdk/public/Content/ContentPublicValidator.js +2 -88
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
- package/sdk/public/Webhook/WebhookPublicClient.js +8 -8
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +21 -21
- package/sdk/public/Webhook/WebhookPublicModel.js +15 -15
- package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
- package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
- package/sdk/application/Finance/FinanceApplicationClient.d.ts +0 -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
|
@@ -10,26 +10,12 @@ export = LogisticApplicationValidator;
|
|
|
10
10
|
* Default value is 12.
|
|
11
11
|
* @property {string} [q] - The number of items to retrieve in each page.
|
|
12
12
|
* Default value is 12.
|
|
13
|
-
* @property {string} [hierarchy] - Fetch countries that has certain heirarchy present.
|
|
14
13
|
*/
|
|
15
14
|
/**
|
|
16
15
|
* @typedef GetCountryParam
|
|
17
16
|
* @property {string} countryIsoCode - The ISO 3166-1 alpha-2 code representing
|
|
18
17
|
* the country (e.g., "IN" for India, "US" for the United States).
|
|
19
18
|
*/
|
|
20
|
-
/**
|
|
21
|
-
* @typedef GetCourierPartnersParam
|
|
22
|
-
* @property {number} companyId - Unique identifier of the company.
|
|
23
|
-
* @property {string} applicationId - Unique identifier of the sales channel.
|
|
24
|
-
* @property {LogisticApplicationModel.ShipmentCourierPartnerDetails} body
|
|
25
|
-
*/
|
|
26
|
-
/**
|
|
27
|
-
* @typedef GetDeliveryPromiseParam
|
|
28
|
-
* @property {number} [pageNo] - The page number to navigate through the given
|
|
29
|
-
* set of results. Default value is 1.
|
|
30
|
-
* @property {number} [pageSize] - The number of items to retrieve in each page.
|
|
31
|
-
* Default value is 12.
|
|
32
|
-
*/
|
|
33
19
|
/**
|
|
34
20
|
* @typedef GetLocalitiesParam
|
|
35
21
|
* @property {string} localityType - Unique geographical division.
|
|
@@ -66,7 +52,7 @@ export = LogisticApplicationValidator;
|
|
|
66
52
|
*/
|
|
67
53
|
/**
|
|
68
54
|
* @typedef GetOptimalLocationsParam
|
|
69
|
-
* @property {LogisticApplicationModel.
|
|
55
|
+
* @property {LogisticApplicationModel.ReAssignStoreRequest} body
|
|
70
56
|
*/
|
|
71
57
|
/**
|
|
72
58
|
* @typedef GetPincodeCityParam
|
|
@@ -74,18 +60,18 @@ export = LogisticApplicationValidator;
|
|
|
74
60
|
*/
|
|
75
61
|
/**
|
|
76
62
|
* @typedef GetPincodeZonesParam
|
|
77
|
-
* @property {LogisticApplicationModel.
|
|
63
|
+
* @property {LogisticApplicationModel.GetZoneFromPincodeViewRequest} body
|
|
78
64
|
*/
|
|
79
65
|
/**
|
|
80
66
|
* @typedef GetTatProductParam
|
|
81
|
-
* @property {LogisticApplicationModel.
|
|
67
|
+
* @property {LogisticApplicationModel.TATViewRequest} body
|
|
82
68
|
*/
|
|
83
69
|
/**
|
|
84
70
|
* @typedef ValidateAddressParam
|
|
85
71
|
* @property {string} countryIsoCode - The ISO 3166-1 alpha-2 code representing
|
|
86
72
|
* the country (e.g., "IN" for India, "US" for the United States).
|
|
87
73
|
* @property {string} templateName - The type of address form.
|
|
88
|
-
* @property {LogisticApplicationModel.
|
|
74
|
+
* @property {LogisticApplicationModel.ValidateAddressRequest} body
|
|
89
75
|
*/
|
|
90
76
|
declare class LogisticApplicationValidator {
|
|
91
77
|
/** @returns {GetAllCountriesParam} */
|
|
@@ -94,10 +80,6 @@ declare class LogisticApplicationValidator {
|
|
|
94
80
|
static getCountries(): GetCountriesParam;
|
|
95
81
|
/** @returns {GetCountryParam} */
|
|
96
82
|
static getCountry(): GetCountryParam;
|
|
97
|
-
/** @returns {GetCourierPartnersParam} */
|
|
98
|
-
static getCourierPartners(): GetCourierPartnersParam;
|
|
99
|
-
/** @returns {GetDeliveryPromiseParam} */
|
|
100
|
-
static getDeliveryPromise(): GetDeliveryPromiseParam;
|
|
101
83
|
/** @returns {GetLocalitiesParam} */
|
|
102
84
|
static getLocalities(): GetLocalitiesParam;
|
|
103
85
|
/** @returns {GetLocalityParam} */
|
|
@@ -116,7 +98,7 @@ declare class LogisticApplicationValidator {
|
|
|
116
98
|
static validateAddress(): ValidateAddressParam;
|
|
117
99
|
}
|
|
118
100
|
declare namespace LogisticApplicationValidator {
|
|
119
|
-
export { GetAllCountriesParam, GetCountriesParam, GetCountryParam,
|
|
101
|
+
export { GetAllCountriesParam, GetCountriesParam, GetCountryParam, GetLocalitiesParam, GetLocalityParam, GetLocationsParam, GetOptimalLocationsParam, GetPincodeCityParam, GetPincodeZonesParam, GetTatProductParam, ValidateAddressParam };
|
|
120
102
|
}
|
|
121
103
|
type GetCountriesParam = {
|
|
122
104
|
/**
|
|
@@ -139,10 +121,6 @@ type GetCountriesParam = {
|
|
|
139
121
|
* Default value is 12.
|
|
140
122
|
*/
|
|
141
123
|
q?: string;
|
|
142
|
-
/**
|
|
143
|
-
* - Fetch countries that has certain heirarchy present.
|
|
144
|
-
*/
|
|
145
|
-
hierarchy?: string;
|
|
146
124
|
};
|
|
147
125
|
type GetCountryParam = {
|
|
148
126
|
/**
|
|
@@ -151,29 +129,6 @@ type GetCountryParam = {
|
|
|
151
129
|
*/
|
|
152
130
|
countryIsoCode: string;
|
|
153
131
|
};
|
|
154
|
-
type GetCourierPartnersParam = {
|
|
155
|
-
/**
|
|
156
|
-
* - Unique identifier of the company.
|
|
157
|
-
*/
|
|
158
|
-
companyId: number;
|
|
159
|
-
/**
|
|
160
|
-
* - Unique identifier of the sales channel.
|
|
161
|
-
*/
|
|
162
|
-
applicationId: string;
|
|
163
|
-
body: LogisticApplicationModel.ShipmentCourierPartnerDetails;
|
|
164
|
-
};
|
|
165
|
-
type GetDeliveryPromiseParam = {
|
|
166
|
-
/**
|
|
167
|
-
* - The page number to navigate through the given
|
|
168
|
-
* set of results. Default value is 1.
|
|
169
|
-
*/
|
|
170
|
-
pageNo?: number;
|
|
171
|
-
/**
|
|
172
|
-
* - The number of items to retrieve in each page.
|
|
173
|
-
* Default value is 12.
|
|
174
|
-
*/
|
|
175
|
-
pageSize?: number;
|
|
176
|
-
};
|
|
177
132
|
type GetLocalitiesParam = {
|
|
178
133
|
/**
|
|
179
134
|
* - Unique geographical division.
|
|
@@ -269,7 +224,7 @@ type GetLocationsParam = {
|
|
|
269
224
|
pageSize?: number;
|
|
270
225
|
};
|
|
271
226
|
type GetOptimalLocationsParam = {
|
|
272
|
-
body: LogisticApplicationModel.
|
|
227
|
+
body: LogisticApplicationModel.ReAssignStoreRequest;
|
|
273
228
|
};
|
|
274
229
|
type GetPincodeCityParam = {
|
|
275
230
|
/**
|
|
@@ -278,10 +233,10 @@ type GetPincodeCityParam = {
|
|
|
278
233
|
pincode: string;
|
|
279
234
|
};
|
|
280
235
|
type GetPincodeZonesParam = {
|
|
281
|
-
body: LogisticApplicationModel.
|
|
236
|
+
body: LogisticApplicationModel.GetZoneFromPincodeViewRequest;
|
|
282
237
|
};
|
|
283
238
|
type GetTatProductParam = {
|
|
284
|
-
body: LogisticApplicationModel.
|
|
239
|
+
body: LogisticApplicationModel.TATViewRequest;
|
|
285
240
|
};
|
|
286
241
|
type ValidateAddressParam = {
|
|
287
242
|
/**
|
|
@@ -293,7 +248,7 @@ type ValidateAddressParam = {
|
|
|
293
248
|
* - The type of address form.
|
|
294
249
|
*/
|
|
295
250
|
templateName: string;
|
|
296
|
-
body: LogisticApplicationModel.
|
|
251
|
+
body: LogisticApplicationModel.ValidateAddressRequest;
|
|
297
252
|
};
|
|
298
253
|
type GetAllCountriesParam = any;
|
|
299
254
|
import LogisticApplicationModel = require("./LogisticApplicationModel");
|
|
@@ -14,7 +14,6 @@ const LogisticApplicationModel = require("./LogisticApplicationModel");
|
|
|
14
14
|
* Default value is 12.
|
|
15
15
|
* @property {string} [q] - The number of items to retrieve in each page.
|
|
16
16
|
* Default value is 12.
|
|
17
|
-
* @property {string} [hierarchy] - Fetch countries that has certain heirarchy present.
|
|
18
17
|
*/
|
|
19
18
|
|
|
20
19
|
/**
|
|
@@ -23,21 +22,6 @@ const LogisticApplicationModel = require("./LogisticApplicationModel");
|
|
|
23
22
|
* the country (e.g., "IN" for India, "US" for the United States).
|
|
24
23
|
*/
|
|
25
24
|
|
|
26
|
-
/**
|
|
27
|
-
* @typedef GetCourierPartnersParam
|
|
28
|
-
* @property {number} companyId - Unique identifier of the company.
|
|
29
|
-
* @property {string} applicationId - Unique identifier of the sales channel.
|
|
30
|
-
* @property {LogisticApplicationModel.ShipmentCourierPartnerDetails} body
|
|
31
|
-
*/
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* @typedef GetDeliveryPromiseParam
|
|
35
|
-
* @property {number} [pageNo] - The page number to navigate through the given
|
|
36
|
-
* set of results. Default value is 1.
|
|
37
|
-
* @property {number} [pageSize] - The number of items to retrieve in each page.
|
|
38
|
-
* Default value is 12.
|
|
39
|
-
*/
|
|
40
|
-
|
|
41
25
|
/**
|
|
42
26
|
* @typedef GetLocalitiesParam
|
|
43
27
|
* @property {string} localityType - Unique geographical division.
|
|
@@ -77,7 +61,7 @@ const LogisticApplicationModel = require("./LogisticApplicationModel");
|
|
|
77
61
|
|
|
78
62
|
/**
|
|
79
63
|
* @typedef GetOptimalLocationsParam
|
|
80
|
-
* @property {LogisticApplicationModel.
|
|
64
|
+
* @property {LogisticApplicationModel.ReAssignStoreRequest} body
|
|
81
65
|
*/
|
|
82
66
|
|
|
83
67
|
/**
|
|
@@ -87,12 +71,12 @@ const LogisticApplicationModel = require("./LogisticApplicationModel");
|
|
|
87
71
|
|
|
88
72
|
/**
|
|
89
73
|
* @typedef GetPincodeZonesParam
|
|
90
|
-
* @property {LogisticApplicationModel.
|
|
74
|
+
* @property {LogisticApplicationModel.GetZoneFromPincodeViewRequest} body
|
|
91
75
|
*/
|
|
92
76
|
|
|
93
77
|
/**
|
|
94
78
|
* @typedef GetTatProductParam
|
|
95
|
-
* @property {LogisticApplicationModel.
|
|
79
|
+
* @property {LogisticApplicationModel.TATViewRequest} body
|
|
96
80
|
*/
|
|
97
81
|
|
|
98
82
|
/**
|
|
@@ -100,7 +84,7 @@ const LogisticApplicationModel = require("./LogisticApplicationModel");
|
|
|
100
84
|
* @property {string} countryIsoCode - The ISO 3166-1 alpha-2 code representing
|
|
101
85
|
* the country (e.g., "IN" for India, "US" for the United States).
|
|
102
86
|
* @property {string} templateName - The type of address form.
|
|
103
|
-
* @property {LogisticApplicationModel.
|
|
87
|
+
* @property {LogisticApplicationModel.ValidateAddressRequest} body
|
|
104
88
|
*/
|
|
105
89
|
|
|
106
90
|
class LogisticApplicationValidator {
|
|
@@ -116,7 +100,6 @@ class LogisticApplicationValidator {
|
|
|
116
100
|
pageNo: Joi.number(),
|
|
117
101
|
pageSize: Joi.number(),
|
|
118
102
|
q: Joi.string().allow(""),
|
|
119
|
-
hierarchy: Joi.string().allow(""),
|
|
120
103
|
});
|
|
121
104
|
}
|
|
122
105
|
|
|
@@ -127,23 +110,6 @@ class LogisticApplicationValidator {
|
|
|
127
110
|
}).required();
|
|
128
111
|
}
|
|
129
112
|
|
|
130
|
-
/** @returns {GetCourierPartnersParam} */
|
|
131
|
-
static getCourierPartners() {
|
|
132
|
-
return Joi.object({
|
|
133
|
-
companyId: Joi.number().required(),
|
|
134
|
-
applicationId: Joi.string().allow("").required(),
|
|
135
|
-
body: LogisticApplicationModel.ShipmentCourierPartnerDetails().required(),
|
|
136
|
-
}).required();
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
/** @returns {GetDeliveryPromiseParam} */
|
|
140
|
-
static getDeliveryPromise() {
|
|
141
|
-
return Joi.object({
|
|
142
|
-
pageNo: Joi.number(),
|
|
143
|
-
pageSize: Joi.number(),
|
|
144
|
-
});
|
|
145
|
-
}
|
|
146
|
-
|
|
147
113
|
/** @returns {GetLocalitiesParam} */
|
|
148
114
|
static getLocalities() {
|
|
149
115
|
return Joi.object({
|
|
@@ -186,7 +152,7 @@ class LogisticApplicationValidator {
|
|
|
186
152
|
/** @returns {GetOptimalLocationsParam} */
|
|
187
153
|
static getOptimalLocations() {
|
|
188
154
|
return Joi.object({
|
|
189
|
-
body: LogisticApplicationModel.
|
|
155
|
+
body: LogisticApplicationModel.ReAssignStoreRequest().required(),
|
|
190
156
|
}).required();
|
|
191
157
|
}
|
|
192
158
|
|
|
@@ -200,14 +166,14 @@ class LogisticApplicationValidator {
|
|
|
200
166
|
/** @returns {GetPincodeZonesParam} */
|
|
201
167
|
static getPincodeZones() {
|
|
202
168
|
return Joi.object({
|
|
203
|
-
body: LogisticApplicationModel.
|
|
169
|
+
body: LogisticApplicationModel.GetZoneFromPincodeViewRequest().required(),
|
|
204
170
|
}).required();
|
|
205
171
|
}
|
|
206
172
|
|
|
207
173
|
/** @returns {GetTatProductParam} */
|
|
208
174
|
static getTatProduct() {
|
|
209
175
|
return Joi.object({
|
|
210
|
-
body: LogisticApplicationModel.
|
|
176
|
+
body: LogisticApplicationModel.TATViewRequest().required(),
|
|
211
177
|
}).required();
|
|
212
178
|
}
|
|
213
179
|
|
|
@@ -216,7 +182,7 @@ class LogisticApplicationValidator {
|
|
|
216
182
|
return Joi.object({
|
|
217
183
|
countryIsoCode: Joi.string().allow("").required(),
|
|
218
184
|
templateName: Joi.string().allow("").required(),
|
|
219
|
-
body: LogisticApplicationModel.
|
|
185
|
+
body: LogisticApplicationModel.ValidateAddressRequest().required(),
|
|
220
186
|
}).required();
|
|
221
187
|
}
|
|
222
188
|
}
|
|
@@ -7,7 +7,6 @@ declare class Order {
|
|
|
7
7
|
getInvoiceByShipmentId: string;
|
|
8
8
|
getOrderById: string;
|
|
9
9
|
getOrders: string;
|
|
10
|
-
getPosOrderById: string;
|
|
11
10
|
getShipmentBagReasons: string;
|
|
12
11
|
getShipmentById: string;
|
|
13
12
|
getShipmentReasons: string;
|
|
@@ -24,14 +23,13 @@ declare class Order {
|
|
|
24
23
|
*
|
|
25
24
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
26
25
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
27
|
-
* @returns {Promise<OrderApplicationModel.
|
|
28
|
-
*
|
|
29
|
-
*
|
|
26
|
+
* @returns {Promise<OrderApplicationModel.CustomerDetailsResponse>} -
|
|
27
|
+
* Success response
|
|
30
28
|
* @name getCustomerDetailsByShipmentId
|
|
31
29
|
* @summary: Get shipment's customer
|
|
32
30
|
* @description: Get customer details such as mobile number using Shipment ID. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/order/getCustomerDetailsByShipmentId/).
|
|
33
31
|
*/
|
|
34
|
-
getCustomerDetailsByShipmentId({ orderId, shipmentId, requestHeaders }?: OrderApplicationValidator.GetCustomerDetailsByShipmentIdParam, { responseHeaders }?: object): Promise<OrderApplicationModel.
|
|
32
|
+
getCustomerDetailsByShipmentId({ orderId, shipmentId, requestHeaders }?: OrderApplicationValidator.GetCustomerDetailsByShipmentIdParam, { responseHeaders }?: object): Promise<OrderApplicationModel.CustomerDetailsResponse>;
|
|
35
33
|
/**
|
|
36
34
|
* @param {OrderApplicationValidator.GetInvoiceByShipmentIdParam} arg - Arg object.
|
|
37
35
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -63,16 +61,6 @@ declare class Order {
|
|
|
63
61
|
* @description: Get all orders associated with a customer account. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/order/getOrders/).
|
|
64
62
|
*/
|
|
65
63
|
getOrders({ status, pageNo, pageSize, fromDate, toDate, startDate, endDate, customMeta, allowInactive, requestHeaders, }?: OrderApplicationValidator.GetOrdersParam, { responseHeaders }?: object): Promise<OrderApplicationModel.OrderList>;
|
|
66
|
-
/**
|
|
67
|
-
* @param {OrderApplicationValidator.GetPosOrderByIdParam} arg - Arg object.
|
|
68
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
69
|
-
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
70
|
-
* @returns {Promise<OrderApplicationModel.OrderById>} - Success response
|
|
71
|
-
* @name getPosOrderById
|
|
72
|
-
* @summary: Retrieves POS order details
|
|
73
|
-
* @description: Retrieve a POS order and all its details such as tracking details, shipment, store information using Fynd Order ID. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/order/getPosOrderById/).
|
|
74
|
-
*/
|
|
75
|
-
getPosOrderById({ orderId, requestHeaders }?: OrderApplicationValidator.GetPosOrderByIdParam, { responseHeaders }?: object): Promise<OrderApplicationModel.OrderById>;
|
|
76
64
|
/**
|
|
77
65
|
* @param {OrderApplicationValidator.GetShipmentBagReasonsParam} arg - Arg object.
|
|
78
66
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -107,14 +95,13 @@ declare class Order {
|
|
|
107
95
|
* @param {OrderApplicationValidator.SendOtpToShipmentCustomerParam} arg - Arg object.
|
|
108
96
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
109
97
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
110
|
-
* @returns {Promise<OrderApplicationModel.
|
|
111
|
-
*
|
|
112
|
-
*
|
|
98
|
+
* @returns {Promise<OrderApplicationModel.SendOtpToCustomerResponse>} -
|
|
99
|
+
* Success response
|
|
113
100
|
* @name sendOtpToShipmentCustomer
|
|
114
101
|
* @summary: Send OTP to customer
|
|
115
102
|
* @description: Send OTP to the customer for shipment verification. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/order/sendOtpToShipmentCustomer/).
|
|
116
103
|
*/
|
|
117
|
-
sendOtpToShipmentCustomer({ orderId, shipmentId, requestHeaders }?: OrderApplicationValidator.SendOtpToShipmentCustomerParam, { responseHeaders }?: object): Promise<OrderApplicationModel.
|
|
104
|
+
sendOtpToShipmentCustomer({ orderId, shipmentId, requestHeaders }?: OrderApplicationValidator.SendOtpToShipmentCustomerParam, { responseHeaders }?: object): Promise<OrderApplicationModel.SendOtpToCustomerResponse>;
|
|
118
105
|
/**
|
|
119
106
|
* @param {OrderApplicationValidator.TrackShipmentParam} arg - Arg object.
|
|
120
107
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -129,25 +116,24 @@ declare class Order {
|
|
|
129
116
|
* @param {OrderApplicationValidator.UpdateShipmentStatusParam} arg - Arg object.
|
|
130
117
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
131
118
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
132
|
-
* @returns {Promise<OrderApplicationModel.
|
|
119
|
+
* @returns {Promise<OrderApplicationModel.ShipmentApplicationStatusResponse>}
|
|
133
120
|
* - Success response
|
|
134
121
|
*
|
|
135
122
|
* @name updateShipmentStatus
|
|
136
123
|
* @summary: Updates shipment status
|
|
137
124
|
* @description: Update current status of a specific shipment using its shipment ID. Supports both partial and full transition as per the configured settings. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/order/updateShipmentStatus/).
|
|
138
125
|
*/
|
|
139
|
-
updateShipmentStatus({ shipmentId, body, requestHeaders }?: OrderApplicationValidator.UpdateShipmentStatusParam, { responseHeaders }?: object): Promise<OrderApplicationModel.
|
|
126
|
+
updateShipmentStatus({ shipmentId, body, requestHeaders }?: OrderApplicationValidator.UpdateShipmentStatusParam, { responseHeaders }?: object): Promise<OrderApplicationModel.ShipmentApplicationStatusResponse>;
|
|
140
127
|
/**
|
|
141
128
|
* @param {OrderApplicationValidator.VerifyOtpShipmentCustomerParam} arg - Arg object.
|
|
142
129
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
143
130
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
144
|
-
* @returns {Promise<OrderApplicationModel.
|
|
145
|
-
* Success response
|
|
131
|
+
* @returns {Promise<OrderApplicationModel.VerifyOtpResponse>} - Success response
|
|
146
132
|
* @name verifyOtpShipmentCustomer
|
|
147
133
|
* @summary: Verifies OTP
|
|
148
134
|
* @description: Verify OTP sent by customer. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/order/verifyOtpShipmentCustomer/).
|
|
149
135
|
*/
|
|
150
|
-
verifyOtpShipmentCustomer({ orderId, shipmentId, body, requestHeaders }?: OrderApplicationValidator.VerifyOtpShipmentCustomerParam, { responseHeaders }?: object): Promise<OrderApplicationModel.
|
|
136
|
+
verifyOtpShipmentCustomer({ orderId, shipmentId, body, requestHeaders }?: OrderApplicationValidator.VerifyOtpShipmentCustomerParam, { responseHeaders }?: object): Promise<OrderApplicationModel.VerifyOtpResponse>;
|
|
151
137
|
}
|
|
152
138
|
import OrderApplicationValidator = require("./OrderApplicationValidator");
|
|
153
139
|
import OrderApplicationModel = require("./OrderApplicationModel");
|
|
@@ -20,8 +20,6 @@ class Order {
|
|
|
20
20
|
"/service/application/order/v1.0/orders/shipments/{shipment_id}/invoice",
|
|
21
21
|
getOrderById: "/service/application/order/v1.0/orders/{order_id}",
|
|
22
22
|
getOrders: "/service/application/order/v1.0/orders",
|
|
23
|
-
getPosOrderById:
|
|
24
|
-
"/service/application/order/v1.0/orders/pos-order/{order_id}",
|
|
25
23
|
getShipmentBagReasons:
|
|
26
24
|
"/service/application/order/v1.0/orders/shipments/{shipment_id}/bags/{bag_id}/reasons",
|
|
27
25
|
getShipmentById:
|
|
@@ -59,9 +57,8 @@ class Order {
|
|
|
59
57
|
*
|
|
60
58
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
61
59
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
62
|
-
* @returns {Promise<OrderApplicationModel.
|
|
63
|
-
*
|
|
64
|
-
*
|
|
60
|
+
* @returns {Promise<OrderApplicationModel.CustomerDetailsResponse>} -
|
|
61
|
+
* Success response
|
|
65
62
|
* @name getCustomerDetailsByShipmentId
|
|
66
63
|
* @summary: Get shipment's customer
|
|
67
64
|
* @description: Get customer details such as mobile number using Shipment ID. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/order/getCustomerDetailsByShipmentId/).
|
|
@@ -118,10 +115,10 @@ class Order {
|
|
|
118
115
|
|
|
119
116
|
const {
|
|
120
117
|
error: res_error,
|
|
121
|
-
} = OrderApplicationModel.
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
);
|
|
118
|
+
} = OrderApplicationModel.CustomerDetailsResponse().validate(responseData, {
|
|
119
|
+
abortEarly: false,
|
|
120
|
+
allowUnknown: true,
|
|
121
|
+
});
|
|
125
122
|
|
|
126
123
|
if (res_error) {
|
|
127
124
|
if (this._conf.options.strictResponseCheck === true) {
|
|
@@ -413,84 +410,6 @@ class Order {
|
|
|
413
410
|
return response;
|
|
414
411
|
}
|
|
415
412
|
|
|
416
|
-
/**
|
|
417
|
-
* @param {OrderApplicationValidator.GetPosOrderByIdParam} arg - Arg object.
|
|
418
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
419
|
-
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
420
|
-
* @returns {Promise<OrderApplicationModel.OrderById>} - Success response
|
|
421
|
-
* @name getPosOrderById
|
|
422
|
-
* @summary: Retrieves POS order details
|
|
423
|
-
* @description: Retrieve a POS order and all its details such as tracking details, shipment, store information using Fynd Order ID. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/order/getPosOrderById/).
|
|
424
|
-
*/
|
|
425
|
-
async getPosOrderById(
|
|
426
|
-
{ orderId, requestHeaders } = { requestHeaders: {} },
|
|
427
|
-
{ responseHeaders } = { responseHeaders: false }
|
|
428
|
-
) {
|
|
429
|
-
const { error } = OrderApplicationValidator.getPosOrderById().validate(
|
|
430
|
-
{ orderId },
|
|
431
|
-
{ abortEarly: false, allowUnknown: true }
|
|
432
|
-
);
|
|
433
|
-
if (error) {
|
|
434
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
435
|
-
}
|
|
436
|
-
|
|
437
|
-
// Showing warrnings if extra unknown parameters are found
|
|
438
|
-
const {
|
|
439
|
-
error: warrning,
|
|
440
|
-
} = OrderApplicationValidator.getPosOrderById().validate(
|
|
441
|
-
{ orderId },
|
|
442
|
-
{ abortEarly: false, allowUnknown: false }
|
|
443
|
-
);
|
|
444
|
-
if (warrning) {
|
|
445
|
-
Logger({
|
|
446
|
-
level: "WARN",
|
|
447
|
-
message: `Parameter Validation warrnings for application > Order > getPosOrderById \n ${warrning}`,
|
|
448
|
-
});
|
|
449
|
-
}
|
|
450
|
-
|
|
451
|
-
const query_params = {};
|
|
452
|
-
|
|
453
|
-
const xHeaders = {};
|
|
454
|
-
|
|
455
|
-
const response = await ApplicationAPIClient.execute(
|
|
456
|
-
this._conf,
|
|
457
|
-
"get",
|
|
458
|
-
constructUrl({
|
|
459
|
-
url: this._urls["getPosOrderById"],
|
|
460
|
-
params: { orderId },
|
|
461
|
-
}),
|
|
462
|
-
query_params,
|
|
463
|
-
undefined,
|
|
464
|
-
{ ...xHeaders, ...requestHeaders },
|
|
465
|
-
{ responseHeaders }
|
|
466
|
-
);
|
|
467
|
-
|
|
468
|
-
let responseData = response;
|
|
469
|
-
if (responseHeaders) {
|
|
470
|
-
responseData = response[0];
|
|
471
|
-
}
|
|
472
|
-
|
|
473
|
-
const {
|
|
474
|
-
error: res_error,
|
|
475
|
-
} = OrderApplicationModel.OrderById().validate(responseData, {
|
|
476
|
-
abortEarly: false,
|
|
477
|
-
allowUnknown: true,
|
|
478
|
-
});
|
|
479
|
-
|
|
480
|
-
if (res_error) {
|
|
481
|
-
if (this._conf.options.strictResponseCheck === true) {
|
|
482
|
-
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
483
|
-
} else {
|
|
484
|
-
Logger({
|
|
485
|
-
level: "WARN",
|
|
486
|
-
message: `Response Validation Warnings for application > Order > getPosOrderById \n ${res_error}`,
|
|
487
|
-
});
|
|
488
|
-
}
|
|
489
|
-
}
|
|
490
|
-
|
|
491
|
-
return response;
|
|
492
|
-
}
|
|
493
|
-
|
|
494
413
|
/**
|
|
495
414
|
* @param {OrderApplicationValidator.GetShipmentBagReasonsParam} arg - Arg object.
|
|
496
415
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -732,9 +651,8 @@ class Order {
|
|
|
732
651
|
* @param {OrderApplicationValidator.SendOtpToShipmentCustomerParam} arg - Arg object.
|
|
733
652
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
734
653
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
735
|
-
* @returns {Promise<OrderApplicationModel.
|
|
736
|
-
*
|
|
737
|
-
*
|
|
654
|
+
* @returns {Promise<OrderApplicationModel.SendOtpToCustomerResponse>} -
|
|
655
|
+
* Success response
|
|
738
656
|
* @name sendOtpToShipmentCustomer
|
|
739
657
|
* @summary: Send OTP to customer
|
|
740
658
|
* @description: Send OTP to the customer for shipment verification. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/order/sendOtpToShipmentCustomer/).
|
|
@@ -791,7 +709,7 @@ class Order {
|
|
|
791
709
|
|
|
792
710
|
const {
|
|
793
711
|
error: res_error,
|
|
794
|
-
} = OrderApplicationModel.
|
|
712
|
+
} = OrderApplicationModel.SendOtpToCustomerResponse().validate(
|
|
795
713
|
responseData,
|
|
796
714
|
{ abortEarly: false, allowUnknown: true }
|
|
797
715
|
);
|
|
@@ -892,7 +810,7 @@ class Order {
|
|
|
892
810
|
* @param {OrderApplicationValidator.UpdateShipmentStatusParam} arg - Arg object.
|
|
893
811
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
894
812
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
895
|
-
* @returns {Promise<OrderApplicationModel.
|
|
813
|
+
* @returns {Promise<OrderApplicationModel.ShipmentApplicationStatusResponse>}
|
|
896
814
|
* - Success response
|
|
897
815
|
*
|
|
898
816
|
* @name updateShipmentStatus
|
|
@@ -949,7 +867,7 @@ class Order {
|
|
|
949
867
|
|
|
950
868
|
const {
|
|
951
869
|
error: res_error,
|
|
952
|
-
} = OrderApplicationModel.
|
|
870
|
+
} = OrderApplicationModel.ShipmentApplicationStatusResponse().validate(
|
|
953
871
|
responseData,
|
|
954
872
|
{ abortEarly: false, allowUnknown: true }
|
|
955
873
|
);
|
|
@@ -972,8 +890,7 @@ class Order {
|
|
|
972
890
|
* @param {OrderApplicationValidator.VerifyOtpShipmentCustomerParam} arg - Arg object.
|
|
973
891
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
974
892
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
975
|
-
* @returns {Promise<OrderApplicationModel.
|
|
976
|
-
* Success response
|
|
893
|
+
* @returns {Promise<OrderApplicationModel.VerifyOtpResponse>} - Success response
|
|
977
894
|
* @name verifyOtpShipmentCustomer
|
|
978
895
|
* @summary: Verifies OTP
|
|
979
896
|
* @description: Verify OTP sent by customer. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/order/verifyOtpShipmentCustomer/).
|
|
@@ -1030,7 +947,7 @@ class Order {
|
|
|
1030
947
|
|
|
1031
948
|
const {
|
|
1032
949
|
error: res_error,
|
|
1033
|
-
} = OrderApplicationModel.
|
|
950
|
+
} = OrderApplicationModel.VerifyOtpResponse().validate(responseData, {
|
|
1034
951
|
abortEarly: false,
|
|
1035
952
|
allowUnknown: true,
|
|
1036
953
|
});
|