@gofynd/fdk-client-javascript 1.4.14 → 1.4.15-beta.2
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 +1321 -4975
- package/sdk/platform/Cart/CartPlatformModel.js +1226 -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 +396 -620
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +326 -501
- 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
|
@@ -6,8 +6,6 @@ declare class Logistic {
|
|
|
6
6
|
getAllCountries: string;
|
|
7
7
|
getCountries: string;
|
|
8
8
|
getCountry: string;
|
|
9
|
-
getCourierPartners: string;
|
|
10
|
-
getDeliveryPromise: string;
|
|
11
9
|
getLocalities: string;
|
|
12
10
|
getLocality: string;
|
|
13
11
|
getLocations: string;
|
|
@@ -23,12 +21,12 @@ declare class Logistic {
|
|
|
23
21
|
* @param {LogisticApplicationValidator.GetAllCountriesParam} arg - Arg object.
|
|
24
22
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
25
23
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
26
|
-
* @returns {Promise<LogisticApplicationModel.
|
|
24
|
+
* @returns {Promise<LogisticApplicationModel.CountryListResponse>} - Success response
|
|
27
25
|
* @name getAllCountries
|
|
28
26
|
* @summary: Get deliverable countries
|
|
29
27
|
* @description: Get a list of countries within the specified delivery zones for that application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getAllCountries/).
|
|
30
28
|
*/
|
|
31
|
-
getAllCountries({ requestHeaders }?: any, { responseHeaders }?: object): Promise<LogisticApplicationModel.
|
|
29
|
+
getAllCountries({ requestHeaders }?: any, { responseHeaders }?: object): Promise<LogisticApplicationModel.CountryListResponse>;
|
|
32
30
|
/**
|
|
33
31
|
* @param {LogisticApplicationValidator.GetCountriesParam} arg - Arg object.
|
|
34
32
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -38,7 +36,7 @@ declare class Logistic {
|
|
|
38
36
|
* @summary: Get countries
|
|
39
37
|
* @description: List of supported countries. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getCountries/).
|
|
40
38
|
*/
|
|
41
|
-
getCountries({ onboarding, pageNo, pageSize, q,
|
|
39
|
+
getCountries({ onboarding, pageNo, pageSize, q, requestHeaders }?: LogisticApplicationValidator.GetCountriesParam, { responseHeaders }?: object): Promise<LogisticApplicationModel.GetCountries>;
|
|
42
40
|
/**
|
|
43
41
|
* @param {LogisticApplicationValidator.GetCountryParam} arg - Arg object.
|
|
44
42
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -49,28 +47,6 @@ declare class Logistic {
|
|
|
49
47
|
* @description: Get details about a particular country and its address format customized for different business scenarios. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getCountry/).
|
|
50
48
|
*/
|
|
51
49
|
getCountry({ countryIsoCode, requestHeaders }?: LogisticApplicationValidator.GetCountryParam, { responseHeaders }?: object): Promise<LogisticApplicationModel.GetCountry>;
|
|
52
|
-
/**
|
|
53
|
-
* @param {LogisticApplicationValidator.GetCourierPartnersParam} arg - Arg object.
|
|
54
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
55
|
-
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
56
|
-
* @returns {Promise<LogisticApplicationModel.ShipmentCourierPartnerResult>}
|
|
57
|
-
* - Success response
|
|
58
|
-
*
|
|
59
|
-
* @name getCourierPartners
|
|
60
|
-
* @summary: Serviceable Courier Partners.
|
|
61
|
-
* @description: Get all the serviceable courier partners of a destination and the shipments. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getCourierPartners/).
|
|
62
|
-
*/
|
|
63
|
-
getCourierPartners({ companyId, applicationId, body, requestHeaders }?: LogisticApplicationValidator.GetCourierPartnersParam, { responseHeaders }?: object): Promise<LogisticApplicationModel.ShipmentCourierPartnerResult>;
|
|
64
|
-
/**
|
|
65
|
-
* @param {LogisticApplicationValidator.GetDeliveryPromiseParam} arg - Arg object.
|
|
66
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
67
|
-
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
68
|
-
* @returns {Promise<LogisticApplicationModel.GetPromiseDetails>} - Success response
|
|
69
|
-
* @name getDeliveryPromise
|
|
70
|
-
* @summary: Get delivery promise
|
|
71
|
-
* @description: Get delivery promises for both global and store levels based on a specific locality type. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getDeliveryPromise/).
|
|
72
|
-
*/
|
|
73
|
-
getDeliveryPromise({ pageNo, pageSize, requestHeaders }?: LogisticApplicationValidator.GetDeliveryPromiseParam, { responseHeaders }?: object): Promise<LogisticApplicationModel.GetPromiseDetails>;
|
|
74
50
|
/**
|
|
75
51
|
* @param {LogisticApplicationValidator.GetLocalitiesParam} arg - Arg object.
|
|
76
52
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -95,65 +71,66 @@ declare class Logistic {
|
|
|
95
71
|
* @param {LogisticApplicationValidator.GetLocationsParam} arg - Arg object.
|
|
96
72
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
97
73
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
98
|
-
* @returns {Promise<LogisticApplicationModel.
|
|
74
|
+
* @returns {Promise<LogisticApplicationModel.GetStoreResponse>} - Success response
|
|
99
75
|
* @name getLocations
|
|
100
76
|
* @summary: Get available selling locations
|
|
101
77
|
* @description: Get stores available for the application based on Delivery Zones and Order Orchestration rules. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getLocations/).
|
|
102
78
|
*/
|
|
103
|
-
getLocations({ xApplicationId, xApplicationData, country, state, city, pincode, sector, pageNo, pageSize, requestHeaders, }?: LogisticApplicationValidator.GetLocationsParam, { responseHeaders }?: object): Promise<LogisticApplicationModel.
|
|
79
|
+
getLocations({ xApplicationId, xApplicationData, country, state, city, pincode, sector, pageNo, pageSize, requestHeaders, }?: LogisticApplicationValidator.GetLocationsParam, { responseHeaders }?: object): Promise<LogisticApplicationModel.GetStoreResponse>;
|
|
104
80
|
/**
|
|
105
81
|
* @param {LogisticApplicationValidator.GetOptimalLocationsParam} arg - Arg object.
|
|
106
82
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
107
83
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
108
|
-
* @returns {Promise<LogisticApplicationModel.
|
|
84
|
+
* @returns {Promise<LogisticApplicationModel.ReAssignStoreResponse>} -
|
|
85
|
+
* Success response
|
|
109
86
|
* @name getOptimalLocations
|
|
110
87
|
* @summary: Get selling locations
|
|
111
88
|
* @description: Get optimal fulfillment centre for customers by analyzing their location, product availability, and inventory levels. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getOptimalLocations/).
|
|
112
89
|
*/
|
|
113
|
-
getOptimalLocations({ body, requestHeaders }?: LogisticApplicationValidator.GetOptimalLocationsParam, { responseHeaders }?: object): Promise<LogisticApplicationModel.
|
|
90
|
+
getOptimalLocations({ body, requestHeaders }?: LogisticApplicationValidator.GetOptimalLocationsParam, { responseHeaders }?: object): Promise<LogisticApplicationModel.ReAssignStoreResponse>;
|
|
114
91
|
/**
|
|
115
92
|
* @param {LogisticApplicationValidator.GetPincodeCityParam} arg - Arg object.
|
|
116
93
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
117
94
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
118
|
-
* @returns {Promise<LogisticApplicationModel.
|
|
95
|
+
* @returns {Promise<LogisticApplicationModel.PincodeApiResponse>} - Success response
|
|
119
96
|
* @name getPincodeCity
|
|
120
97
|
* @summary: Get pincode details
|
|
121
98
|
* @description: Get details of a specific pincode, such as obtaining its city and state information. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getPincodeCity/).
|
|
122
99
|
*/
|
|
123
|
-
getPincodeCity({ pincode, requestHeaders }?: LogisticApplicationValidator.GetPincodeCityParam, { responseHeaders }?: object): Promise<LogisticApplicationModel.
|
|
100
|
+
getPincodeCity({ pincode, requestHeaders }?: LogisticApplicationValidator.GetPincodeCityParam, { responseHeaders }?: object): Promise<LogisticApplicationModel.PincodeApiResponse>;
|
|
124
101
|
/**
|
|
125
102
|
* @param {LogisticApplicationValidator.GetPincodeZonesParam} arg - Arg object.
|
|
126
103
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
127
104
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
128
|
-
* @returns {Promise<LogisticApplicationModel.
|
|
105
|
+
* @returns {Promise<LogisticApplicationModel.GetZoneFromPincodeViewResponse>}
|
|
129
106
|
* - Success response
|
|
130
107
|
*
|
|
131
108
|
* @name getPincodeZones
|
|
132
109
|
* @summary: Get zones
|
|
133
110
|
* @description: Get the delivery zone associated with a given pincode. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getPincodeZones/).
|
|
134
111
|
*/
|
|
135
|
-
getPincodeZones({ body, requestHeaders }?: LogisticApplicationValidator.GetPincodeZonesParam, { responseHeaders }?: object): Promise<LogisticApplicationModel.
|
|
112
|
+
getPincodeZones({ body, requestHeaders }?: LogisticApplicationValidator.GetPincodeZonesParam, { responseHeaders }?: object): Promise<LogisticApplicationModel.GetZoneFromPincodeViewResponse>;
|
|
136
113
|
/**
|
|
137
114
|
* @param {LogisticApplicationValidator.GetTatProductParam} arg - Arg object.
|
|
138
115
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
139
116
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
140
|
-
* @returns {Promise<LogisticApplicationModel.
|
|
117
|
+
* @returns {Promise<LogisticApplicationModel.TATViewResponse>} - Success response
|
|
141
118
|
* @name getTatProduct
|
|
142
119
|
* @summary: Get product's turnaround time
|
|
143
120
|
* @description: Get the estimated delivery time frame for a specific product from a designated store. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getTatProduct/).
|
|
144
121
|
*/
|
|
145
|
-
getTatProduct({ body, requestHeaders }?: LogisticApplicationValidator.GetTatProductParam, { responseHeaders }?: object): Promise<LogisticApplicationModel.
|
|
122
|
+
getTatProduct({ body, requestHeaders }?: LogisticApplicationValidator.GetTatProductParam, { responseHeaders }?: object): Promise<LogisticApplicationModel.TATViewResponse>;
|
|
146
123
|
/**
|
|
147
124
|
* @param {LogisticApplicationValidator.ValidateAddressParam} arg - Arg object.
|
|
148
125
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
149
126
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
150
|
-
* @returns {Promise<LogisticApplicationModel.
|
|
127
|
+
* @returns {Promise<LogisticApplicationModel.ValidateAddressRequest>} -
|
|
151
128
|
* Success response
|
|
152
129
|
* @name validateAddress
|
|
153
130
|
* @summary: Validate address
|
|
154
131
|
* @description: Validate addresses using specific templates customized for each country and tailored to various business scenarios. This validation ensures that the data conforms to the information currently stored in the system. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/validateAddress/).
|
|
155
132
|
*/
|
|
156
|
-
validateAddress({ countryIsoCode, templateName, body, requestHeaders }?: LogisticApplicationValidator.ValidateAddressParam, { responseHeaders }?: object): Promise<LogisticApplicationModel.
|
|
133
|
+
validateAddress({ countryIsoCode, templateName, body, requestHeaders }?: LogisticApplicationValidator.ValidateAddressParam, { responseHeaders }?: object): Promise<LogisticApplicationModel.ValidateAddressRequest>;
|
|
157
134
|
}
|
|
158
135
|
import LogisticApplicationModel = require("./LogisticApplicationModel");
|
|
159
136
|
import LogisticApplicationValidator = require("./LogisticApplicationValidator");
|
|
@@ -18,10 +18,6 @@ class Logistic {
|
|
|
18
18
|
getCountries: "/service/application/logistics/v2.0/countries",
|
|
19
19
|
getCountry:
|
|
20
20
|
"/service/application/logistics/v1.0/countries/{country_iso_code}",
|
|
21
|
-
getCourierPartners:
|
|
22
|
-
"/service/application/logistics/v1.0/company/{company_id}/application/{application_id}/shipment/courier-partners",
|
|
23
|
-
getDeliveryPromise:
|
|
24
|
-
"/service/application/logistics/v1.0/delivery-promise",
|
|
25
21
|
getLocalities:
|
|
26
22
|
"/service/application/logistics/v1.0/localities/{locality_type}",
|
|
27
23
|
getLocality:
|
|
@@ -55,7 +51,7 @@ class Logistic {
|
|
|
55
51
|
* @param {LogisticApplicationValidator.GetAllCountriesParam} arg - Arg object.
|
|
56
52
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
57
53
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
58
|
-
* @returns {Promise<LogisticApplicationModel.
|
|
54
|
+
* @returns {Promise<LogisticApplicationModel.CountryListResponse>} - Success response
|
|
59
55
|
* @name getAllCountries
|
|
60
56
|
* @summary: Get deliverable countries
|
|
61
57
|
* @description: Get a list of countries within the specified delivery zones for that application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getAllCountries/).
|
|
@@ -110,7 +106,7 @@ class Logistic {
|
|
|
110
106
|
|
|
111
107
|
const {
|
|
112
108
|
error: res_error,
|
|
113
|
-
} = LogisticApplicationModel.
|
|
109
|
+
} = LogisticApplicationModel.CountryListResponse().validate(responseData, {
|
|
114
110
|
abortEarly: false,
|
|
115
111
|
allowUnknown: true,
|
|
116
112
|
});
|
|
@@ -139,13 +135,13 @@ class Logistic {
|
|
|
139
135
|
* @description: List of supported countries. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getCountries/).
|
|
140
136
|
*/
|
|
141
137
|
async getCountries(
|
|
142
|
-
{ onboarding, pageNo, pageSize, q,
|
|
138
|
+
{ onboarding, pageNo, pageSize, q, requestHeaders } = {
|
|
143
139
|
requestHeaders: {},
|
|
144
140
|
},
|
|
145
141
|
{ responseHeaders } = { responseHeaders: false }
|
|
146
142
|
) {
|
|
147
143
|
const { error } = LogisticApplicationValidator.getCountries().validate(
|
|
148
|
-
{ onboarding, pageNo, pageSize, q
|
|
144
|
+
{ onboarding, pageNo, pageSize, q },
|
|
149
145
|
{ abortEarly: false, allowUnknown: true }
|
|
150
146
|
);
|
|
151
147
|
if (error) {
|
|
@@ -156,7 +152,7 @@ class Logistic {
|
|
|
156
152
|
const {
|
|
157
153
|
error: warrning,
|
|
158
154
|
} = LogisticApplicationValidator.getCountries().validate(
|
|
159
|
-
{ onboarding, pageNo, pageSize, q
|
|
155
|
+
{ onboarding, pageNo, pageSize, q },
|
|
160
156
|
{ abortEarly: false, allowUnknown: false }
|
|
161
157
|
);
|
|
162
158
|
if (warrning) {
|
|
@@ -171,7 +167,6 @@ class Logistic {
|
|
|
171
167
|
query_params["page_no"] = pageNo;
|
|
172
168
|
query_params["page_size"] = pageSize;
|
|
173
169
|
query_params["q"] = q;
|
|
174
|
-
query_params["hierarchy"] = hierarchy;
|
|
175
170
|
|
|
176
171
|
const xHeaders = {};
|
|
177
172
|
|
|
@@ -292,170 +287,6 @@ class Logistic {
|
|
|
292
287
|
return response;
|
|
293
288
|
}
|
|
294
289
|
|
|
295
|
-
/**
|
|
296
|
-
* @param {LogisticApplicationValidator.GetCourierPartnersParam} arg - Arg object.
|
|
297
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
298
|
-
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
299
|
-
* @returns {Promise<LogisticApplicationModel.ShipmentCourierPartnerResult>}
|
|
300
|
-
* - Success response
|
|
301
|
-
*
|
|
302
|
-
* @name getCourierPartners
|
|
303
|
-
* @summary: Serviceable Courier Partners.
|
|
304
|
-
* @description: Get all the serviceable courier partners of a destination and the shipments. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getCourierPartners/).
|
|
305
|
-
*/
|
|
306
|
-
async getCourierPartners(
|
|
307
|
-
{ companyId, applicationId, body, requestHeaders } = { requestHeaders: {} },
|
|
308
|
-
{ responseHeaders } = { responseHeaders: false }
|
|
309
|
-
) {
|
|
310
|
-
const {
|
|
311
|
-
error,
|
|
312
|
-
} = LogisticApplicationValidator.getCourierPartners().validate(
|
|
313
|
-
{ companyId, applicationId, body },
|
|
314
|
-
{ abortEarly: false, allowUnknown: true }
|
|
315
|
-
);
|
|
316
|
-
if (error) {
|
|
317
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
318
|
-
}
|
|
319
|
-
|
|
320
|
-
// Showing warrnings if extra unknown parameters are found
|
|
321
|
-
const {
|
|
322
|
-
error: warrning,
|
|
323
|
-
} = LogisticApplicationValidator.getCourierPartners().validate(
|
|
324
|
-
{ companyId, applicationId, body },
|
|
325
|
-
{ abortEarly: false, allowUnknown: false }
|
|
326
|
-
);
|
|
327
|
-
if (warrning) {
|
|
328
|
-
Logger({
|
|
329
|
-
level: "WARN",
|
|
330
|
-
message: `Parameter Validation warrnings for application > Logistic > getCourierPartners \n ${warrning}`,
|
|
331
|
-
});
|
|
332
|
-
}
|
|
333
|
-
|
|
334
|
-
const query_params = {};
|
|
335
|
-
|
|
336
|
-
const xHeaders = {};
|
|
337
|
-
|
|
338
|
-
const response = await ApplicationAPIClient.execute(
|
|
339
|
-
this._conf,
|
|
340
|
-
"post",
|
|
341
|
-
constructUrl({
|
|
342
|
-
url: this._urls["getCourierPartners"],
|
|
343
|
-
params: { companyId, applicationId },
|
|
344
|
-
}),
|
|
345
|
-
query_params,
|
|
346
|
-
body,
|
|
347
|
-
{ ...xHeaders, ...requestHeaders },
|
|
348
|
-
{ responseHeaders }
|
|
349
|
-
);
|
|
350
|
-
|
|
351
|
-
let responseData = response;
|
|
352
|
-
if (responseHeaders) {
|
|
353
|
-
responseData = response[0];
|
|
354
|
-
}
|
|
355
|
-
|
|
356
|
-
const {
|
|
357
|
-
error: res_error,
|
|
358
|
-
} = LogisticApplicationModel.ShipmentCourierPartnerResult().validate(
|
|
359
|
-
responseData,
|
|
360
|
-
{ abortEarly: false, allowUnknown: true }
|
|
361
|
-
);
|
|
362
|
-
|
|
363
|
-
if (res_error) {
|
|
364
|
-
if (this._conf.options.strictResponseCheck === true) {
|
|
365
|
-
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
366
|
-
} else {
|
|
367
|
-
Logger({
|
|
368
|
-
level: "WARN",
|
|
369
|
-
message: `Response Validation Warnings for application > Logistic > getCourierPartners \n ${res_error}`,
|
|
370
|
-
});
|
|
371
|
-
}
|
|
372
|
-
}
|
|
373
|
-
|
|
374
|
-
return response;
|
|
375
|
-
}
|
|
376
|
-
|
|
377
|
-
/**
|
|
378
|
-
* @param {LogisticApplicationValidator.GetDeliveryPromiseParam} arg - Arg object.
|
|
379
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
380
|
-
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
381
|
-
* @returns {Promise<LogisticApplicationModel.GetPromiseDetails>} - Success response
|
|
382
|
-
* @name getDeliveryPromise
|
|
383
|
-
* @summary: Get delivery promise
|
|
384
|
-
* @description: Get delivery promises for both global and store levels based on a specific locality type. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getDeliveryPromise/).
|
|
385
|
-
*/
|
|
386
|
-
async getDeliveryPromise(
|
|
387
|
-
{ pageNo, pageSize, requestHeaders } = { requestHeaders: {} },
|
|
388
|
-
{ responseHeaders } = { responseHeaders: false }
|
|
389
|
-
) {
|
|
390
|
-
const {
|
|
391
|
-
error,
|
|
392
|
-
} = LogisticApplicationValidator.getDeliveryPromise().validate(
|
|
393
|
-
{ pageNo, pageSize },
|
|
394
|
-
{ abortEarly: false, allowUnknown: true }
|
|
395
|
-
);
|
|
396
|
-
if (error) {
|
|
397
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
398
|
-
}
|
|
399
|
-
|
|
400
|
-
// Showing warrnings if extra unknown parameters are found
|
|
401
|
-
const {
|
|
402
|
-
error: warrning,
|
|
403
|
-
} = LogisticApplicationValidator.getDeliveryPromise().validate(
|
|
404
|
-
{ pageNo, pageSize },
|
|
405
|
-
{ abortEarly: false, allowUnknown: false }
|
|
406
|
-
);
|
|
407
|
-
if (warrning) {
|
|
408
|
-
Logger({
|
|
409
|
-
level: "WARN",
|
|
410
|
-
message: `Parameter Validation warrnings for application > Logistic > getDeliveryPromise \n ${warrning}`,
|
|
411
|
-
});
|
|
412
|
-
}
|
|
413
|
-
|
|
414
|
-
const query_params = {};
|
|
415
|
-
query_params["page_no"] = pageNo;
|
|
416
|
-
query_params["page_size"] = pageSize;
|
|
417
|
-
|
|
418
|
-
const xHeaders = {};
|
|
419
|
-
|
|
420
|
-
const response = await ApplicationAPIClient.execute(
|
|
421
|
-
this._conf,
|
|
422
|
-
"get",
|
|
423
|
-
constructUrl({
|
|
424
|
-
url: this._urls["getDeliveryPromise"],
|
|
425
|
-
params: {},
|
|
426
|
-
}),
|
|
427
|
-
query_params,
|
|
428
|
-
undefined,
|
|
429
|
-
{ ...xHeaders, ...requestHeaders },
|
|
430
|
-
{ responseHeaders }
|
|
431
|
-
);
|
|
432
|
-
|
|
433
|
-
let responseData = response;
|
|
434
|
-
if (responseHeaders) {
|
|
435
|
-
responseData = response[0];
|
|
436
|
-
}
|
|
437
|
-
|
|
438
|
-
const {
|
|
439
|
-
error: res_error,
|
|
440
|
-
} = LogisticApplicationModel.GetPromiseDetails().validate(responseData, {
|
|
441
|
-
abortEarly: false,
|
|
442
|
-
allowUnknown: true,
|
|
443
|
-
});
|
|
444
|
-
|
|
445
|
-
if (res_error) {
|
|
446
|
-
if (this._conf.options.strictResponseCheck === true) {
|
|
447
|
-
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
448
|
-
} else {
|
|
449
|
-
Logger({
|
|
450
|
-
level: "WARN",
|
|
451
|
-
message: `Response Validation Warnings for application > Logistic > getDeliveryPromise \n ${res_error}`,
|
|
452
|
-
});
|
|
453
|
-
}
|
|
454
|
-
}
|
|
455
|
-
|
|
456
|
-
return response;
|
|
457
|
-
}
|
|
458
|
-
|
|
459
290
|
/**
|
|
460
291
|
* @param {LogisticApplicationValidator.GetLocalitiesParam} arg - Arg object.
|
|
461
292
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -636,7 +467,7 @@ class Logistic {
|
|
|
636
467
|
* @param {LogisticApplicationValidator.GetLocationsParam} arg - Arg object.
|
|
637
468
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
638
469
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
639
|
-
* @returns {Promise<LogisticApplicationModel.
|
|
470
|
+
* @returns {Promise<LogisticApplicationModel.GetStoreResponse>} - Success response
|
|
640
471
|
* @name getLocations
|
|
641
472
|
* @summary: Get available selling locations
|
|
642
473
|
* @description: Get stores available for the application based on Delivery Zones and Order Orchestration rules. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getLocations/).
|
|
@@ -731,7 +562,7 @@ class Logistic {
|
|
|
731
562
|
|
|
732
563
|
const {
|
|
733
564
|
error: res_error,
|
|
734
|
-
} = LogisticApplicationModel.
|
|
565
|
+
} = LogisticApplicationModel.GetStoreResponse().validate(responseData, {
|
|
735
566
|
abortEarly: false,
|
|
736
567
|
allowUnknown: true,
|
|
737
568
|
});
|
|
@@ -754,7 +585,8 @@ class Logistic {
|
|
|
754
585
|
* @param {LogisticApplicationValidator.GetOptimalLocationsParam} arg - Arg object.
|
|
755
586
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
756
587
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
757
|
-
* @returns {Promise<LogisticApplicationModel.
|
|
588
|
+
* @returns {Promise<LogisticApplicationModel.ReAssignStoreResponse>} -
|
|
589
|
+
* Success response
|
|
758
590
|
* @name getOptimalLocations
|
|
759
591
|
* @summary: Get selling locations
|
|
760
592
|
* @description: Get optimal fulfillment centre for customers by analyzing their location, product availability, and inventory levels. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getOptimalLocations/).
|
|
@@ -811,10 +643,10 @@ class Logistic {
|
|
|
811
643
|
|
|
812
644
|
const {
|
|
813
645
|
error: res_error,
|
|
814
|
-
} = LogisticApplicationModel.
|
|
815
|
-
|
|
816
|
-
allowUnknown: true
|
|
817
|
-
|
|
646
|
+
} = LogisticApplicationModel.ReAssignStoreResponse().validate(
|
|
647
|
+
responseData,
|
|
648
|
+
{ abortEarly: false, allowUnknown: true }
|
|
649
|
+
);
|
|
818
650
|
|
|
819
651
|
if (res_error) {
|
|
820
652
|
if (this._conf.options.strictResponseCheck === true) {
|
|
@@ -834,7 +666,7 @@ class Logistic {
|
|
|
834
666
|
* @param {LogisticApplicationValidator.GetPincodeCityParam} arg - Arg object.
|
|
835
667
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
836
668
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
837
|
-
* @returns {Promise<LogisticApplicationModel.
|
|
669
|
+
* @returns {Promise<LogisticApplicationModel.PincodeApiResponse>} - Success response
|
|
838
670
|
* @name getPincodeCity
|
|
839
671
|
* @summary: Get pincode details
|
|
840
672
|
* @description: Get details of a specific pincode, such as obtaining its city and state information. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getPincodeCity/).
|
|
@@ -889,7 +721,7 @@ class Logistic {
|
|
|
889
721
|
|
|
890
722
|
const {
|
|
891
723
|
error: res_error,
|
|
892
|
-
} = LogisticApplicationModel.
|
|
724
|
+
} = LogisticApplicationModel.PincodeApiResponse().validate(responseData, {
|
|
893
725
|
abortEarly: false,
|
|
894
726
|
allowUnknown: true,
|
|
895
727
|
});
|
|
@@ -912,7 +744,7 @@ class Logistic {
|
|
|
912
744
|
* @param {LogisticApplicationValidator.GetPincodeZonesParam} arg - Arg object.
|
|
913
745
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
914
746
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
915
|
-
* @returns {Promise<LogisticApplicationModel.
|
|
747
|
+
* @returns {Promise<LogisticApplicationModel.GetZoneFromPincodeViewResponse>}
|
|
916
748
|
* - Success response
|
|
917
749
|
*
|
|
918
750
|
* @name getPincodeZones
|
|
@@ -969,7 +801,7 @@ class Logistic {
|
|
|
969
801
|
|
|
970
802
|
const {
|
|
971
803
|
error: res_error,
|
|
972
|
-
} = LogisticApplicationModel.
|
|
804
|
+
} = LogisticApplicationModel.GetZoneFromPincodeViewResponse().validate(
|
|
973
805
|
responseData,
|
|
974
806
|
{ abortEarly: false, allowUnknown: true }
|
|
975
807
|
);
|
|
@@ -992,7 +824,7 @@ class Logistic {
|
|
|
992
824
|
* @param {LogisticApplicationValidator.GetTatProductParam} arg - Arg object.
|
|
993
825
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
994
826
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
995
|
-
* @returns {Promise<LogisticApplicationModel.
|
|
827
|
+
* @returns {Promise<LogisticApplicationModel.TATViewResponse>} - Success response
|
|
996
828
|
* @name getTatProduct
|
|
997
829
|
* @summary: Get product's turnaround time
|
|
998
830
|
* @description: Get the estimated delivery time frame for a specific product from a designated store. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getTatProduct/).
|
|
@@ -1047,7 +879,7 @@ class Logistic {
|
|
|
1047
879
|
|
|
1048
880
|
const {
|
|
1049
881
|
error: res_error,
|
|
1050
|
-
} = LogisticApplicationModel.
|
|
882
|
+
} = LogisticApplicationModel.TATViewResponse().validate(responseData, {
|
|
1051
883
|
abortEarly: false,
|
|
1052
884
|
allowUnknown: true,
|
|
1053
885
|
});
|
|
@@ -1070,7 +902,7 @@ class Logistic {
|
|
|
1070
902
|
* @param {LogisticApplicationValidator.ValidateAddressParam} arg - Arg object.
|
|
1071
903
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1072
904
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
1073
|
-
* @returns {Promise<LogisticApplicationModel.
|
|
905
|
+
* @returns {Promise<LogisticApplicationModel.ValidateAddressRequest>} -
|
|
1074
906
|
* Success response
|
|
1075
907
|
* @name validateAddress
|
|
1076
908
|
* @summary: Validate address
|
|
@@ -1128,7 +960,7 @@ class Logistic {
|
|
|
1128
960
|
|
|
1129
961
|
const {
|
|
1130
962
|
error: res_error,
|
|
1131
|
-
} = LogisticApplicationModel.
|
|
963
|
+
} = LogisticApplicationModel.ValidateAddressRequest().validate(
|
|
1132
964
|
responseData,
|
|
1133
965
|
{ abortEarly: false, allowUnknown: true }
|
|
1134
966
|
);
|