@gofynd/fdk-client-javascript 0.1.37 → 1.0.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 +24 -0
- package/application.d.ts +2 -1
- package/application.js +2 -1
- package/documentation/application/CART.md +315 -289
- package/documentation/application/CATALOG.md +438 -415
- package/documentation/application/FILESTORAGE.md +2 -0
- package/documentation/application/LEAD.md +18 -18
- package/documentation/application/LOGISTIC.md +45 -45
- package/documentation/application/ORDER.md +277 -277
- package/documentation/application/PAYMENT.md +251 -251
- package/documentation/application/POSCART.md +318 -292
- package/documentation/application/REWARDS.md +1 -0
- package/documentation/application/USER.md +19 -14
- package/documentation/platform/CART.md +465 -462
- package/documentation/platform/CATALOG.md +2792 -2711
- package/documentation/platform/COMPANYPROFILE.md +200 -362
- package/documentation/platform/DISCOUNT.md +86 -0
- package/documentation/platform/FILESTORAGE.md +2 -0
- package/documentation/platform/LEAD.md +60 -60
- package/documentation/platform/ORDER.md +1451 -1654
- package/documentation/platform/PAYMENT.md +94 -94
- package/documentation/platform/REWARDS.md +145 -0
- package/documentation/platform/USER.md +24 -14
- package/index.d.ts +4 -1
- package/index.js +13 -4
- package/package.json +9 -9
- package/platform.d.ts +2 -1
- package/platform.js +3 -2
- package/public.d.ts +1 -0
- package/public.js +3 -2
- package/sdk/application/ApplicationAPIClient.js +3 -1
- package/sdk/application/ApplicationClient.d.ts +16 -16
- package/sdk/application/ApplicationClient.js +32 -16
- package/sdk/application/ApplicationConfig.js +3 -2
- package/sdk/application/ApplicationModels.d.ts +0 -832
- package/sdk/application/ApplicationModels.js +3 -10574
- package/sdk/application/{client → Cart}/CartApplicationClient.d.ts +9 -3
- package/sdk/application/{client → Cart}/CartApplicationClient.js +316 -8
- package/sdk/application/Cart/CartApplicationModel.d.ts +81 -0
- package/sdk/application/Cart/CartApplicationModel.js +1136 -0
- package/sdk/application/{models/CartValidator.js → Cart/CartApplicationValidator.js} +17 -12
- package/sdk/application/{client → Catalog}/CatalogApplicationClient.d.ts +8 -5
- package/sdk/application/{client → Catalog}/CatalogApplicationClient.js +389 -8
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +117 -0
- package/sdk/application/Catalog/CatalogApplicationModel.js +1606 -0
- package/sdk/application/{models/CatalogValidator.js → Catalog/CatalogApplicationValidator.js} +4 -1
- package/sdk/application/{client → Common}/CommonApplicationClient.js +24 -2
- package/sdk/application/Common/CommonApplicationModel.d.ts +20 -0
- package/sdk/application/Common/CommonApplicationModel.js +228 -0
- package/sdk/{platform/models/CommonValidator.js → application/Common/CommonApplicationValidator.js} +3 -1
- package/sdk/application/{client → Communication}/CommunicationApplicationClient.js +43 -2
- package/sdk/application/Communication/CommunicationApplicationModel.d.ts +15 -0
- package/sdk/application/Communication/CommunicationApplicationModel.js +144 -0
- package/sdk/application/{models/CommunicationValidator.js → Communication/CommunicationApplicationValidator.js} +5 -3
- package/sdk/application/{client → Configuration}/ConfigurationApplicationClient.js +202 -2
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +111 -0
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +1182 -0
- package/sdk/application/{models/ConfigurationValidator.js → Configuration/ConfigurationApplicationValidator.js} +4 -2
- package/sdk/application/{client → Content}/ContentApplicationClient.js +217 -2
- package/sdk/application/Content/ContentApplicationModel.d.ts +105 -0
- package/sdk/application/Content/ContentApplicationModel.js +1349 -0
- package/sdk/application/{models/ContentValidator.js → Content/ContentApplicationValidator.js} +3 -1
- package/sdk/application/{client → FileStorage}/FileStorageApplicationClient.js +35 -2
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +21 -0
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +244 -0
- package/sdk/application/{models/FileStorageValidator.js → FileStorage/FileStorageApplicationValidator.js} +6 -4
- package/sdk/application/{client → Lead}/LeadApplicationClient.js +83 -2
- package/sdk/application/Lead/LeadApplicationModel.d.ts +55 -0
- package/sdk/application/Lead/LeadApplicationModel.js +690 -0
- package/sdk/application/{models/LeadValidator.js → Lead/LeadApplicationValidator.js} +6 -4
- package/sdk/application/{client → Logistic}/LogisticApplicationClient.js +46 -2
- package/sdk/application/Logistic/LogisticApplicationModel.d.ts +26 -0
- package/sdk/application/Logistic/LogisticApplicationModel.js +286 -0
- package/sdk/application/{models/LogisticValidator.js → Logistic/LogisticApplicationValidator.js} +5 -3
- package/sdk/application/{client → Order}/OrderApplicationClient.js +148 -2
- package/sdk/application/Order/OrderApplicationModel.d.ts +67 -0
- package/sdk/application/Order/OrderApplicationModel.js +872 -0
- package/sdk/application/{models/OrderValidator.js → Order/OrderApplicationValidator.js} +5 -3
- package/sdk/application/{client → Payment}/PaymentApplicationClient.js +530 -2
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +96 -0
- package/sdk/application/Payment/PaymentApplicationModel.js +1318 -0
- package/sdk/application/{models/PaymentValidator.js → Payment/PaymentApplicationValidator.js} +25 -23
- package/sdk/application/{client → PosCart}/PosCartApplicationClient.d.ts +9 -3
- package/sdk/application/{client → PosCart}/PosCartApplicationClient.js +343 -8
- package/sdk/application/PosCart/PosCartApplicationModel.d.ts +79 -0
- package/sdk/application/PosCart/PosCartApplicationModel.js +1132 -0
- package/sdk/application/{models/PosCartValidator.js → PosCart/PosCartApplicationValidator.js} +18 -13
- package/sdk/application/{client → Rewards}/RewardsApplicationClient.js +83 -2
- package/sdk/application/Rewards/RewardsApplicationModel.d.ts +23 -0
- package/sdk/application/Rewards/RewardsApplicationModel.js +276 -0
- package/sdk/application/{models/RewardsValidator.js → Rewards/RewardsApplicationValidator.js} +6 -4
- package/sdk/application/{client → Share}/ShareApplicationClient.js +89 -2
- package/sdk/application/Share/ShareApplicationModel.d.ts +16 -0
- package/sdk/application/Share/ShareApplicationModel.js +178 -0
- package/sdk/application/{models/ShareValidator.js → Share/ShareApplicationValidator.js} +4 -2
- package/sdk/application/{client → Theme}/ThemeApplicationClient.js +46 -2
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +49 -0
- package/sdk/application/Theme/ThemeApplicationModel.js +486 -0
- package/sdk/application/{models/ThemeValidator.js → Theme/ThemeApplicationValidator.js} +3 -1
- package/sdk/application/{client → User}/UserApplicationClient.js +407 -2
- package/sdk/application/User/UserApplicationModel.d.ts +95 -0
- package/sdk/application/User/UserApplicationModel.js +998 -0
- package/sdk/application/{models/UserValidator.js → User/UserApplicationValidator.js} +31 -29
- package/sdk/application/index.d.ts +18 -0
- package/sdk/application/index.js +33 -0
- package/sdk/common/AxiosHelper.js +23 -10
- package/sdk/common/Logger.d.ts +2 -0
- package/sdk/common/Logger.js +6 -0
- package/sdk/common/curlHelper.d.ts +2 -0
- package/sdk/common/curlHelper.js +95 -0
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +101 -0
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +399 -0
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.d.ts +11 -0
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js +56 -0
- package/sdk/platform/{client → Analytics}/AnalyticsPlatformClient.js +60 -2
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +23 -0
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +252 -0
- package/sdk/platform/{models/AnalyticsValidator.js → Analytics/AnalyticsPlatformValidator.js} +5 -4
- package/sdk/platform/{client → AuditTrail}/AuditTrailPlatformClient.js +48 -2
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +18 -0
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +144 -0
- package/sdk/platform/{models/AuditTrailValidator.js → AuditTrail/AuditTrailPlatformValidator.js} +3 -2
- package/sdk/platform/{client → Billing}/BillingPlatformClient.js +162 -2
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +65 -0
- package/sdk/platform/Billing/BillingPlatformModel.js +906 -0
- package/sdk/platform/{models/BillingValidator.js → Billing/BillingPlatformValidator.js} +6 -5
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +293 -0
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +1001 -0
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +20 -0
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +138 -0
- package/sdk/platform/Cart/CartPlatformModel.d.ts +104 -0
- package/sdk/platform/Cart/CartPlatformModel.js +1516 -0
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +856 -0
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +2927 -0
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +56 -0
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +389 -0
- package/sdk/platform/{client → Catalog}/CatalogPlatformClient.js +1402 -349
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +317 -0
- package/sdk/platform/Catalog/CatalogPlatformModel.js +4702 -0
- package/sdk/platform/{models/CatalogValidator.js → Catalog/CatalogPlatformValidator.js} +92 -91
- package/sdk/platform/{client → Common}/CommonPlatformClient.js +28 -2
- package/sdk/platform/Common/CommonPlatformModel.d.ts +20 -0
- package/sdk/platform/Common/CommonPlatformModel.js +228 -0
- package/sdk/{application/models/CommonValidator.js → platform/Common/CommonPlatformValidator.js} +2 -1
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +611 -0
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +2243 -0
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +43 -0
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +277 -0
- package/sdk/platform/{client → Communication}/CommunicationPlatformClient.js +17 -2
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +102 -0
- package/sdk/platform/Communication/CommunicationPlatformModel.js +1312 -0
- package/sdk/platform/{models/CommunicationValidator.js → Communication/CommunicationPlatformValidator.js} +2 -1
- package/sdk/platform/{client → CompanyProfile}/CompanyProfilePlatformClient.d.ts +0 -9
- package/sdk/platform/{client → CompanyProfile}/CompanyProfilePlatformClient.js +176 -28
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +44 -0
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +706 -0
- package/sdk/platform/{models/CompanyProfileValidator.d.ts → CompanyProfile/CompanyProfilePlatformValidator.d.ts} +0 -1
- package/sdk/platform/{models/CompanyProfileValidator.js → CompanyProfile/CompanyProfilePlatformValidator.js} +9 -14
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +309 -0
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +1322 -0
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +31 -0
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +164 -0
- package/sdk/platform/{client → Configuration}/ConfigurationPlatformClient.js +284 -2
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +185 -0
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +2072 -0
- package/sdk/platform/{models/ConfigurationValidator.js → Configuration/ConfigurationPlatformValidator.js} +9 -8
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +781 -0
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +3074 -0
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +71 -0
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +422 -0
- package/sdk/platform/Content/ContentPlatformModel.d.ts +105 -0
- package/sdk/platform/Content/ContentPlatformModel.js +1349 -0
- package/sdk/platform/{client → Discount}/DiscountPlatformClient.d.ts +11 -0
- package/sdk/platform/{client → Discount}/DiscountPlatformClient.js +187 -2
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +15 -0
- package/sdk/platform/Discount/DiscountPlatformModel.js +176 -0
- package/sdk/platform/{models/DiscountValidator.d.ts → Discount/DiscountPlatformValidator.d.ts} +1 -0
- package/sdk/platform/{models/DiscountValidator.js → Discount/DiscountPlatformValidator.js} +13 -5
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +114 -0
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +301 -0
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +7 -0
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +38 -0
- package/sdk/platform/{client → FileStorage}/FileStoragePlatformClient.js +78 -2
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +21 -0
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +244 -0
- package/sdk/platform/{models/FileStorageValidator.js → FileStorage/FileStoragePlatformValidator.js} +6 -5
- package/sdk/platform/{client → Inventory}/InventoryPlatformClient.js +163 -2
- package/sdk/platform/Inventory/InventoryPlatformModel.d.ts +62 -0
- package/sdk/platform/Inventory/InventoryPlatformModel.js +1178 -0
- package/sdk/platform/{models/InventoryValidator.js → Inventory/InventoryPlatformValidator.js} +5 -4
- package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +138 -0
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +559 -0
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +16 -0
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +90 -0
- package/sdk/platform/{client → Lead}/LeadPlatformClient.js +142 -2
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +55 -0
- package/sdk/platform/Lead/LeadPlatformModel.js +690 -0
- package/sdk/platform/{models/LeadValidator.js → Lead/LeadPlatformValidator.js} +7 -6
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +59 -0
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +207 -0
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +6 -0
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +37 -0
- package/sdk/platform/{client → Order}/OrderPlatformClient.d.ts +24 -55
- package/sdk/platform/{client → Order}/OrderPlatformClient.js +693 -146
- package/sdk/platform/Order/OrderPlatformModel.d.ts +222 -0
- package/sdk/platform/Order/OrderPlatformModel.js +3466 -0
- package/sdk/platform/{models/OrderValidator.d.ts → Order/OrderPlatformValidator.d.ts} +2 -3
- package/sdk/platform/{models/OrderValidator.js → Order/OrderPlatformValidator.js} +32 -48
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +30 -0
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +100 -0
- package/sdk/platform/Partner/PartnerPlatformApplicationValidator.d.ts +5 -0
- package/sdk/platform/Partner/PartnerPlatformApplicationValidator.js +20 -0
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +7 -0
- package/sdk/platform/Partner/PartnerPlatformModel.js +54 -0
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +108 -0
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +498 -0
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +14 -0
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +73 -0
- package/sdk/platform/{client → Payment}/PaymentPlatformClient.js +141 -2
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +44 -0
- package/sdk/platform/Payment/PaymentPlatformModel.js +552 -0
- package/sdk/platform/{models/PaymentValidator.js → Payment/PaymentPlatformValidator.js} +6 -5
- package/sdk/platform/PlatformAPIClient.js +2 -1
- package/sdk/platform/PlatformApplicationClient.d.ts +2824 -18486
- package/sdk/platform/PlatformApplicationClient.js +3772 -13928
- package/sdk/platform/PlatformClient.d.ts +2824 -2881
- package/sdk/platform/PlatformClient.js +3710 -3145
- package/sdk/platform/PlatformConfig.js +2 -1
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +150 -0
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +597 -0
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +16 -0
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +91 -0
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +24 -0
- package/sdk/platform/Rewards/RewardsPlatformModel.js +294 -0
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +72 -0
- package/sdk/platform/Share/SharePlatformApplicationClient.js +235 -0
- package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +7 -0
- package/sdk/platform/Share/SharePlatformApplicationValidator.js +35 -0
- package/sdk/platform/Share/SharePlatformModel.d.ts +15 -0
- package/sdk/platform/Share/SharePlatformModel.js +170 -0
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +238 -0
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +997 -0
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +27 -0
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +155 -0
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +49 -0
- package/sdk/platform/Theme/ThemePlatformModel.js +486 -0
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +121 -0
- package/sdk/platform/User/UserPlatformApplicationClient.js +506 -0
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +15 -0
- package/sdk/platform/User/UserPlatformApplicationValidator.js +79 -0
- package/sdk/platform/User/UserPlatformModel.d.ts +95 -0
- package/sdk/platform/User/UserPlatformModel.js +998 -0
- package/sdk/platform/{client → Webhook}/WebhookPlatformClient.js +92 -2
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +17 -0
- package/sdk/platform/Webhook/WebhookPlatformModel.js +208 -0
- package/sdk/platform/{models/WebhookValidator.js → Webhook/WebhookPlatformValidator.js} +4 -3
- package/sdk/platform/index.d.ts +24 -0
- package/sdk/platform/index.js +45 -0
- package/sdk/public/{client → Configuration}/ConfigurationPublicClient.js +26 -1
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +20 -0
- package/sdk/public/Configuration/ConfigurationPublicModel.js +230 -0
- package/sdk/public/{models/ConfigurationValidator.js → Configuration/ConfigurationPublicValidator.js} +3 -1
- package/sdk/public/{client → Inventory}/InventoryPublicClient.js +76 -1
- package/sdk/public/Inventory/InventoryPublicModel.d.ts +22 -0
- package/sdk/public/Inventory/InventoryPublicModel.js +334 -0
- package/sdk/public/{models/InventoryValidator.js → Inventory/InventoryPublicValidator.js} +4 -2
- package/sdk/public/PublicClient.d.ts +3 -3
- package/sdk/public/PublicClient.js +8 -3
- package/sdk/public/{client → Webhook}/WebhookPublicClient.js +30 -1
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +17 -0
- package/sdk/public/Webhook/WebhookPublicModel.js +208 -0
- package/sdk/public/{models/WebhookValidator.js → Webhook/WebhookPublicValidator.js} +4 -2
- package/sdk/public/index.d.ts +5 -0
- package/sdk/public/index.js +7 -0
- package/sdk/platform/PlatformApplicationModels.d.ts +0 -328
- package/sdk/platform/PlatformApplicationModels.js +0 -22658
- package/sdk/platform/PlatformModels.d.ts +0 -1477
- package/sdk/platform/PlatformModels.js +0 -20646
- package/sdk/platform/models/CartValidator.d.ts +0 -0
- package/sdk/platform/models/CartValidator.js +0 -0
- package/sdk/platform/models/ContentValidator.d.ts +0 -0
- package/sdk/platform/models/ContentValidator.js +0 -0
- package/sdk/platform/models/PartnerValidator.d.ts +0 -0
- package/sdk/platform/models/PartnerValidator.js +0 -0
- package/sdk/platform/models/RewardsValidator.d.ts +0 -0
- package/sdk/platform/models/RewardsValidator.js +0 -0
- package/sdk/platform/models/ShareValidator.d.ts +0 -0
- package/sdk/platform/models/ShareValidator.js +0 -0
- package/sdk/platform/models/ThemeValidator.d.ts +0 -0
- package/sdk/platform/models/ThemeValidator.js +0 -0
- package/sdk/platform/models/UserValidator.d.ts +0 -0
- package/sdk/platform/models/UserValidator.js +0 -0
- package/sdk/public/PublicModels.d.ts +0 -50
- package/sdk/public/PublicModels.js +0 -712
- package/sdk/application/{models/CartValidator.d.ts → Cart/CartApplicationValidator.d.ts} +0 -0
- package/sdk/application/{models/CatalogValidator.d.ts → Catalog/CatalogApplicationValidator.d.ts} +0 -0
- package/sdk/application/{client → Common}/CommonApplicationClient.d.ts +0 -0
- package/sdk/application/{models/CommonValidator.d.ts → Common/CommonApplicationValidator.d.ts} +0 -0
- package/sdk/application/{client → Communication}/CommunicationApplicationClient.d.ts +0 -0
- package/sdk/application/{models/CommunicationValidator.d.ts → Communication/CommunicationApplicationValidator.d.ts} +0 -0
- package/sdk/application/{client → Configuration}/ConfigurationApplicationClient.d.ts +0 -0
- package/sdk/application/{models/ConfigurationValidator.d.ts → Configuration/ConfigurationApplicationValidator.d.ts} +0 -0
- package/sdk/application/{client → Content}/ContentApplicationClient.d.ts +0 -0
- package/sdk/application/{models/ContentValidator.d.ts → Content/ContentApplicationValidator.d.ts} +0 -0
- package/sdk/application/{client → FileStorage}/FileStorageApplicationClient.d.ts +0 -0
- package/sdk/application/{models/FileStorageValidator.d.ts → FileStorage/FileStorageApplicationValidator.d.ts} +0 -0
- package/sdk/application/{client → Lead}/LeadApplicationClient.d.ts +0 -0
- package/sdk/application/{models/LeadValidator.d.ts → Lead/LeadApplicationValidator.d.ts} +0 -0
- package/sdk/application/{client → Logistic}/LogisticApplicationClient.d.ts +0 -0
- package/sdk/application/{models/LogisticValidator.d.ts → Logistic/LogisticApplicationValidator.d.ts} +0 -0
- package/sdk/application/{client → Order}/OrderApplicationClient.d.ts +0 -0
- package/sdk/application/{models/OrderValidator.d.ts → Order/OrderApplicationValidator.d.ts} +0 -0
- package/sdk/application/{client → Payment}/PaymentApplicationClient.d.ts +0 -0
- package/sdk/application/{models/PaymentValidator.d.ts → Payment/PaymentApplicationValidator.d.ts} +0 -0
- package/sdk/application/{models/PosCartValidator.d.ts → PosCart/PosCartApplicationValidator.d.ts} +0 -0
- package/sdk/application/{client → Rewards}/RewardsApplicationClient.d.ts +0 -0
- package/sdk/application/{models/RewardsValidator.d.ts → Rewards/RewardsApplicationValidator.d.ts} +0 -0
- package/sdk/application/{client → Share}/ShareApplicationClient.d.ts +0 -0
- package/sdk/application/{models/ShareValidator.d.ts → Share/ShareApplicationValidator.d.ts} +0 -0
- package/sdk/application/{client → Theme}/ThemeApplicationClient.d.ts +0 -0
- package/sdk/application/{models/ThemeValidator.d.ts → Theme/ThemeApplicationValidator.d.ts} +0 -0
- package/sdk/application/{client → User}/UserApplicationClient.d.ts +0 -0
- package/sdk/application/{models/UserValidator.d.ts → User/UserApplicationValidator.d.ts} +0 -0
- package/sdk/platform/{client → Analytics}/AnalyticsPlatformClient.d.ts +0 -0
- package/sdk/platform/{models/AnalyticsValidator.d.ts → Analytics/AnalyticsPlatformValidator.d.ts} +0 -0
- package/sdk/platform/{client → AuditTrail}/AuditTrailPlatformClient.d.ts +0 -0
- package/sdk/platform/{models/AuditTrailValidator.d.ts → AuditTrail/AuditTrailPlatformValidator.d.ts} +0 -0
- package/sdk/platform/{client → Billing}/BillingPlatformClient.d.ts +0 -0
- package/sdk/platform/{models/BillingValidator.d.ts → Billing/BillingPlatformValidator.d.ts} +0 -0
- package/sdk/platform/{client → Catalog}/CatalogPlatformClient.d.ts +149 -149
- package/sdk/platform/{models/CatalogValidator.d.ts → Catalog/CatalogPlatformValidator.d.ts} +21 -21
- /package/sdk/platform/{client → Common}/CommonPlatformClient.d.ts +0 -0
- /package/sdk/platform/{models/CommonValidator.d.ts → Common/CommonPlatformValidator.d.ts} +0 -0
- /package/sdk/platform/{client → Communication}/CommunicationPlatformClient.d.ts +0 -0
- /package/sdk/platform/{models/CommunicationValidator.d.ts → Communication/CommunicationPlatformValidator.d.ts} +0 -0
- /package/sdk/platform/{client → Configuration}/ConfigurationPlatformClient.d.ts +0 -0
- /package/sdk/platform/{models/ConfigurationValidator.d.ts → Configuration/ConfigurationPlatformValidator.d.ts} +0 -0
- /package/sdk/platform/{client → FileStorage}/FileStoragePlatformClient.d.ts +0 -0
- /package/sdk/platform/{models/FileStorageValidator.d.ts → FileStorage/FileStoragePlatformValidator.d.ts} +0 -0
- /package/sdk/platform/{client → Inventory}/InventoryPlatformClient.d.ts +0 -0
- /package/sdk/platform/{models/InventoryValidator.d.ts → Inventory/InventoryPlatformValidator.d.ts} +0 -0
- /package/sdk/platform/{client → Lead}/LeadPlatformClient.d.ts +0 -0
- /package/sdk/platform/{models/LeadValidator.d.ts → Lead/LeadPlatformValidator.d.ts} +0 -0
- /package/sdk/platform/{client → Payment}/PaymentPlatformClient.d.ts +0 -0
- /package/sdk/platform/{models/PaymentValidator.d.ts → Payment/PaymentPlatformValidator.d.ts} +0 -0
- /package/sdk/platform/{client → Webhook}/WebhookPlatformClient.d.ts +0 -0
- /package/sdk/platform/{models/WebhookValidator.d.ts → Webhook/WebhookPlatformValidator.d.ts} +0 -0
- /package/sdk/public/{client → Configuration}/ConfigurationPublicClient.d.ts +0 -0
- /package/sdk/public/{models/ConfigurationValidator.d.ts → Configuration/ConfigurationPublicValidator.d.ts} +0 -0
- /package/sdk/public/{client → Inventory}/InventoryPublicClient.d.ts +0 -0
- /package/sdk/public/{models/InventoryValidator.d.ts → Inventory/InventoryPublicValidator.d.ts} +0 -0
- /package/sdk/public/{client → Webhook}/WebhookPublicClient.d.ts +0 -0
- /package/sdk/public/{models/WebhookValidator.d.ts → Webhook/WebhookPublicValidator.d.ts} +0 -0
|
@@ -38,16 +38,18 @@ declare class Cart {
|
|
|
38
38
|
* @param {boolean} [arg.i] -
|
|
39
39
|
* @param {boolean} [arg.b] -
|
|
40
40
|
* @param {number} [arg.assignCardId] -
|
|
41
|
+
* @param {string} [arg.areaCode] -
|
|
41
42
|
* @param {boolean} [arg.buyNow] -
|
|
42
43
|
* @returns {Promise<CartDetailResponse>} - Success response
|
|
43
44
|
* @summary: Fetch all items added to the cart
|
|
44
45
|
* @description: Use this API to get details of all the items added to a cart.
|
|
45
46
|
*/
|
|
46
|
-
getCart({ id, i, b, assignCardId, buyNow }?: {
|
|
47
|
+
getCart({ id, i, b, assignCardId, areaCode, buyNow }?: {
|
|
47
48
|
id?: string;
|
|
48
49
|
i?: boolean;
|
|
49
50
|
b?: boolean;
|
|
50
51
|
assignCardId?: number;
|
|
52
|
+
areaCode?: string;
|
|
51
53
|
buyNow?: boolean;
|
|
52
54
|
}): Promise<CartDetailResponse>;
|
|
53
55
|
/**
|
|
@@ -64,15 +66,17 @@ declare class Cart {
|
|
|
64
66
|
* @param {Object} arg - Arg object.
|
|
65
67
|
* @param {boolean} [arg.i] -
|
|
66
68
|
* @param {boolean} [arg.b] -
|
|
69
|
+
* @param {string} [arg.areaCode] -
|
|
67
70
|
* @param {boolean} [arg.buyNow] -
|
|
68
71
|
* @param {AddCartRequest} arg.body
|
|
69
72
|
* @returns {Promise<AddCartDetailResponse>} - Success response
|
|
70
73
|
* @summary: Add items to cart
|
|
71
74
|
* @description: Use this API to add items to the cart.
|
|
72
75
|
*/
|
|
73
|
-
addItems({ body, i, b, buyNow }?: {
|
|
76
|
+
addItems({ body, i, b, areaCode, buyNow }?: {
|
|
74
77
|
i?: boolean;
|
|
75
78
|
b?: boolean;
|
|
79
|
+
areaCode?: string;
|
|
76
80
|
buyNow?: boolean;
|
|
77
81
|
body: AddCartRequest;
|
|
78
82
|
}): Promise<AddCartDetailResponse>;
|
|
@@ -81,16 +85,18 @@ declare class Cart {
|
|
|
81
85
|
* @param {string} [arg.id] -
|
|
82
86
|
* @param {boolean} [arg.i] -
|
|
83
87
|
* @param {boolean} [arg.b] -
|
|
88
|
+
* @param {string} [arg.areaCode] -
|
|
84
89
|
* @param {boolean} [arg.buyNow] -
|
|
85
90
|
* @param {UpdateCartRequest} arg.body
|
|
86
91
|
* @returns {Promise<UpdateCartDetailResponse>} - Success response
|
|
87
92
|
* @summary: Update items in the cart
|
|
88
93
|
* @description: <p>Use this API to update items added to the cart with the help of a request object containing attributes like item_quantity and item_size. These attributes will be fetched from the following APIs</p> <ul> <li><font color="monochrome">operation</font> Operation for current api call. <b>update_item</b> for update items. <b>remove_item</b> for removing items.</li> <li> <font color="monochrome">item_id</font> "/platform/content/v1/products/"</li> <li> <font color="monochrome">item_size</font> "/platform/content/v1/products/:slug/sizes/"</li> <li> <font color="monochrome">quantity</font> item quantity (must be greater than or equal to 1)</li> <li> <font color="monochrome">article_id</font> "/content/v1/products/:identifier/sizes/price/"</li> <li> <font color="monochrome">item_index</font> item position in the cart (must be greater than or equal to 0)</li> </ul>
|
|
89
94
|
*/
|
|
90
|
-
updateCart({ body, id, i, b, buyNow }?: {
|
|
95
|
+
updateCart({ body, id, i, b, areaCode, buyNow }?: {
|
|
91
96
|
id?: string;
|
|
92
97
|
i?: boolean;
|
|
93
98
|
b?: boolean;
|
|
99
|
+
areaCode?: string;
|
|
94
100
|
buyNow?: boolean;
|
|
95
101
|
body: UpdateCartRequest;
|
|
96
102
|
}): Promise<UpdateCartDetailResponse>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
const APIClient = require("../ApplicationAPIClient");
|
|
2
|
-
const Paginator = require("../../common/Paginator");
|
|
3
2
|
const constructUrl = require("../constructUrl");
|
|
3
|
+
const Paginator = require("../../common/Paginator");
|
|
4
4
|
const { FDKClientValidationError } = require("../../common/FDKError");
|
|
5
|
-
const CartValidator = require("
|
|
5
|
+
const CartValidator = require("./CartApplicationValidator");
|
|
6
6
|
|
|
7
7
|
class Cart {
|
|
8
8
|
constructor(_conf) {
|
|
@@ -59,24 +59,37 @@ class Cart {
|
|
|
59
59
|
* @param {boolean} [arg.i] -
|
|
60
60
|
* @param {boolean} [arg.b] -
|
|
61
61
|
* @param {number} [arg.assignCardId] -
|
|
62
|
+
* @param {string} [arg.areaCode] -
|
|
62
63
|
* @param {boolean} [arg.buyNow] -
|
|
63
64
|
* @returns {Promise<CartDetailResponse>} - Success response
|
|
64
65
|
* @summary: Fetch all items added to the cart
|
|
65
66
|
* @description: Use this API to get details of all the items added to a cart.
|
|
66
67
|
*/
|
|
67
|
-
getCart({ id, i, b, assignCardId, buyNow } = {}) {
|
|
68
|
+
getCart({ id, i, b, assignCardId, areaCode, buyNow } = {}) {
|
|
68
69
|
const { error } = CartValidator.getCart().validate(
|
|
69
|
-
{ id, i, b, assignCardId, buyNow },
|
|
70
|
+
{ id, i, b, assignCardId, areaCode, buyNow },
|
|
70
71
|
{ abortEarly: false, allowUnknown: true }
|
|
71
72
|
);
|
|
72
73
|
if (error) {
|
|
73
74
|
return Promise.reject(new FDKClientValidationError(error));
|
|
74
75
|
}
|
|
76
|
+
|
|
77
|
+
// Showing warrnings if extra unknown parameters are found
|
|
78
|
+
const { error: warrning } = CartValidator.getCart().validate(
|
|
79
|
+
{ id, i, b, assignCardId, areaCode, buyNow },
|
|
80
|
+
{ abortEarly: false, allowUnknown: false }
|
|
81
|
+
);
|
|
82
|
+
if (warrning) {
|
|
83
|
+
console.log("Parameter Validation warrnings for getCart");
|
|
84
|
+
console.log(warrning);
|
|
85
|
+
}
|
|
86
|
+
|
|
75
87
|
const query_params = {};
|
|
76
88
|
query_params["id"] = id;
|
|
77
89
|
query_params["i"] = i;
|
|
78
90
|
query_params["b"] = b;
|
|
79
91
|
query_params["assign_card_id"] = assignCardId;
|
|
92
|
+
query_params["area_code"] = areaCode;
|
|
80
93
|
query_params["buy_now"] = buyNow;
|
|
81
94
|
|
|
82
95
|
const xHeaders = {};
|
|
@@ -109,6 +122,17 @@ class Cart {
|
|
|
109
122
|
if (error) {
|
|
110
123
|
return Promise.reject(new FDKClientValidationError(error));
|
|
111
124
|
}
|
|
125
|
+
|
|
126
|
+
// Showing warrnings if extra unknown parameters are found
|
|
127
|
+
const { error: warrning } = CartValidator.getCartLastModified().validate(
|
|
128
|
+
{ id },
|
|
129
|
+
{ abortEarly: false, allowUnknown: false }
|
|
130
|
+
);
|
|
131
|
+
if (warrning) {
|
|
132
|
+
console.log("Parameter Validation warrnings for getCartLastModified");
|
|
133
|
+
console.log(warrning);
|
|
134
|
+
}
|
|
135
|
+
|
|
112
136
|
const query_params = {};
|
|
113
137
|
query_params["id"] = id;
|
|
114
138
|
|
|
@@ -131,23 +155,36 @@ class Cart {
|
|
|
131
155
|
* @param {Object} arg - Arg object.
|
|
132
156
|
* @param {boolean} [arg.i] -
|
|
133
157
|
* @param {boolean} [arg.b] -
|
|
158
|
+
* @param {string} [arg.areaCode] -
|
|
134
159
|
* @param {boolean} [arg.buyNow] -
|
|
135
160
|
* @param {AddCartRequest} arg.body
|
|
136
161
|
* @returns {Promise<AddCartDetailResponse>} - Success response
|
|
137
162
|
* @summary: Add items to cart
|
|
138
163
|
* @description: Use this API to add items to the cart.
|
|
139
164
|
*/
|
|
140
|
-
addItems({ body, i, b, buyNow } = {}) {
|
|
165
|
+
addItems({ body, i, b, areaCode, buyNow } = {}) {
|
|
141
166
|
const { error } = CartValidator.addItems().validate(
|
|
142
|
-
{ body, i, b, buyNow },
|
|
167
|
+
{ body, i, b, areaCode, buyNow },
|
|
143
168
|
{ abortEarly: false, allowUnknown: true }
|
|
144
169
|
);
|
|
145
170
|
if (error) {
|
|
146
171
|
return Promise.reject(new FDKClientValidationError(error));
|
|
147
172
|
}
|
|
173
|
+
|
|
174
|
+
// Showing warrnings if extra unknown parameters are found
|
|
175
|
+
const { error: warrning } = CartValidator.addItems().validate(
|
|
176
|
+
{ body, i, b, areaCode, buyNow },
|
|
177
|
+
{ abortEarly: false, allowUnknown: false }
|
|
178
|
+
);
|
|
179
|
+
if (warrning) {
|
|
180
|
+
console.log("Parameter Validation warrnings for addItems");
|
|
181
|
+
console.log(warrning);
|
|
182
|
+
}
|
|
183
|
+
|
|
148
184
|
const query_params = {};
|
|
149
185
|
query_params["i"] = i;
|
|
150
186
|
query_params["b"] = b;
|
|
187
|
+
query_params["area_code"] = areaCode;
|
|
151
188
|
query_params["buy_now"] = buyNow;
|
|
152
189
|
|
|
153
190
|
const xHeaders = {};
|
|
@@ -170,24 +207,37 @@ class Cart {
|
|
|
170
207
|
* @param {string} [arg.id] -
|
|
171
208
|
* @param {boolean} [arg.i] -
|
|
172
209
|
* @param {boolean} [arg.b] -
|
|
210
|
+
* @param {string} [arg.areaCode] -
|
|
173
211
|
* @param {boolean} [arg.buyNow] -
|
|
174
212
|
* @param {UpdateCartRequest} arg.body
|
|
175
213
|
* @returns {Promise<UpdateCartDetailResponse>} - Success response
|
|
176
214
|
* @summary: Update items in the cart
|
|
177
215
|
* @description: <p>Use this API to update items added to the cart with the help of a request object containing attributes like item_quantity and item_size. These attributes will be fetched from the following APIs</p> <ul> <li><font color="monochrome">operation</font> Operation for current api call. <b>update_item</b> for update items. <b>remove_item</b> for removing items.</li> <li> <font color="monochrome">item_id</font> "/platform/content/v1/products/"</li> <li> <font color="monochrome">item_size</font> "/platform/content/v1/products/:slug/sizes/"</li> <li> <font color="monochrome">quantity</font> item quantity (must be greater than or equal to 1)</li> <li> <font color="monochrome">article_id</font> "/content/v1/products/:identifier/sizes/price/"</li> <li> <font color="monochrome">item_index</font> item position in the cart (must be greater than or equal to 0)</li> </ul>
|
|
178
216
|
*/
|
|
179
|
-
updateCart({ body, id, i, b, buyNow } = {}) {
|
|
217
|
+
updateCart({ body, id, i, b, areaCode, buyNow } = {}) {
|
|
180
218
|
const { error } = CartValidator.updateCart().validate(
|
|
181
|
-
{ body, id, i, b, buyNow },
|
|
219
|
+
{ body, id, i, b, areaCode, buyNow },
|
|
182
220
|
{ abortEarly: false, allowUnknown: true }
|
|
183
221
|
);
|
|
184
222
|
if (error) {
|
|
185
223
|
return Promise.reject(new FDKClientValidationError(error));
|
|
186
224
|
}
|
|
225
|
+
|
|
226
|
+
// Showing warrnings if extra unknown parameters are found
|
|
227
|
+
const { error: warrning } = CartValidator.updateCart().validate(
|
|
228
|
+
{ body, id, i, b, areaCode, buyNow },
|
|
229
|
+
{ abortEarly: false, allowUnknown: false }
|
|
230
|
+
);
|
|
231
|
+
if (warrning) {
|
|
232
|
+
console.log("Parameter Validation warrnings for updateCart");
|
|
233
|
+
console.log(warrning);
|
|
234
|
+
}
|
|
235
|
+
|
|
187
236
|
const query_params = {};
|
|
188
237
|
query_params["id"] = id;
|
|
189
238
|
query_params["i"] = i;
|
|
190
239
|
query_params["b"] = b;
|
|
240
|
+
query_params["area_code"] = areaCode;
|
|
191
241
|
query_params["buy_now"] = buyNow;
|
|
192
242
|
|
|
193
243
|
const xHeaders = {};
|
|
@@ -221,6 +271,17 @@ class Cart {
|
|
|
221
271
|
if (error) {
|
|
222
272
|
return Promise.reject(new FDKClientValidationError(error));
|
|
223
273
|
}
|
|
274
|
+
|
|
275
|
+
// Showing warrnings if extra unknown parameters are found
|
|
276
|
+
const { error: warrning } = CartValidator.getItemCount().validate(
|
|
277
|
+
{ id, buyNow },
|
|
278
|
+
{ abortEarly: false, allowUnknown: false }
|
|
279
|
+
);
|
|
280
|
+
if (warrning) {
|
|
281
|
+
console.log("Parameter Validation warrnings for getItemCount");
|
|
282
|
+
console.log(warrning);
|
|
283
|
+
}
|
|
284
|
+
|
|
224
285
|
const query_params = {};
|
|
225
286
|
query_params["id"] = id;
|
|
226
287
|
query_params["buy_now"] = buyNow;
|
|
@@ -256,6 +317,17 @@ class Cart {
|
|
|
256
317
|
if (error) {
|
|
257
318
|
return Promise.reject(new FDKClientValidationError(error));
|
|
258
319
|
}
|
|
320
|
+
|
|
321
|
+
// Showing warrnings if extra unknown parameters are found
|
|
322
|
+
const { error: warrning } = CartValidator.getCoupons().validate(
|
|
323
|
+
{ id, buyNow },
|
|
324
|
+
{ abortEarly: false, allowUnknown: false }
|
|
325
|
+
);
|
|
326
|
+
if (warrning) {
|
|
327
|
+
console.log("Parameter Validation warrnings for getCoupons");
|
|
328
|
+
console.log(warrning);
|
|
329
|
+
}
|
|
330
|
+
|
|
259
331
|
const query_params = {};
|
|
260
332
|
query_params["id"] = id;
|
|
261
333
|
query_params["buy_now"] = buyNow;
|
|
@@ -295,6 +367,17 @@ class Cart {
|
|
|
295
367
|
if (error) {
|
|
296
368
|
return Promise.reject(new FDKClientValidationError(error));
|
|
297
369
|
}
|
|
370
|
+
|
|
371
|
+
// Showing warrnings if extra unknown parameters are found
|
|
372
|
+
const { error: warrning } = CartValidator.applyCoupon().validate(
|
|
373
|
+
{ body, i, b, p, id, buyNow },
|
|
374
|
+
{ abortEarly: false, allowUnknown: false }
|
|
375
|
+
);
|
|
376
|
+
if (warrning) {
|
|
377
|
+
console.log("Parameter Validation warrnings for applyCoupon");
|
|
378
|
+
console.log(warrning);
|
|
379
|
+
}
|
|
380
|
+
|
|
298
381
|
const query_params = {};
|
|
299
382
|
query_params["i"] = i;
|
|
300
383
|
query_params["b"] = b;
|
|
@@ -333,6 +416,17 @@ class Cart {
|
|
|
333
416
|
if (error) {
|
|
334
417
|
return Promise.reject(new FDKClientValidationError(error));
|
|
335
418
|
}
|
|
419
|
+
|
|
420
|
+
// Showing warrnings if extra unknown parameters are found
|
|
421
|
+
const { error: warrning } = CartValidator.removeCoupon().validate(
|
|
422
|
+
{ id, buyNow },
|
|
423
|
+
{ abortEarly: false, allowUnknown: false }
|
|
424
|
+
);
|
|
425
|
+
if (warrning) {
|
|
426
|
+
console.log("Parameter Validation warrnings for removeCoupon");
|
|
427
|
+
console.log(warrning);
|
|
428
|
+
}
|
|
429
|
+
|
|
336
430
|
const query_params = {};
|
|
337
431
|
query_params["id"] = id;
|
|
338
432
|
query_params["buy_now"] = buyNow;
|
|
@@ -372,6 +466,17 @@ class Cart {
|
|
|
372
466
|
if (error) {
|
|
373
467
|
return Promise.reject(new FDKClientValidationError(error));
|
|
374
468
|
}
|
|
469
|
+
|
|
470
|
+
// Showing warrnings if extra unknown parameters are found
|
|
471
|
+
const { error: warrning } = CartValidator.getBulkDiscountOffers().validate(
|
|
472
|
+
{ itemId, articleId, uid, slug },
|
|
473
|
+
{ abortEarly: false, allowUnknown: false }
|
|
474
|
+
);
|
|
475
|
+
if (warrning) {
|
|
476
|
+
console.log("Parameter Validation warrnings for getBulkDiscountOffers");
|
|
477
|
+
console.log(warrning);
|
|
478
|
+
}
|
|
479
|
+
|
|
375
480
|
const query_params = {};
|
|
376
481
|
query_params["item_id"] = itemId;
|
|
377
482
|
query_params["article_id"] = articleId;
|
|
@@ -412,6 +517,17 @@ class Cart {
|
|
|
412
517
|
if (error) {
|
|
413
518
|
return Promise.reject(new FDKClientValidationError(error));
|
|
414
519
|
}
|
|
520
|
+
|
|
521
|
+
// Showing warrnings if extra unknown parameters are found
|
|
522
|
+
const { error: warrning } = CartValidator.applyRewardPoints().validate(
|
|
523
|
+
{ body, id, i, b, buyNow },
|
|
524
|
+
{ abortEarly: false, allowUnknown: false }
|
|
525
|
+
);
|
|
526
|
+
if (warrning) {
|
|
527
|
+
console.log("Parameter Validation warrnings for applyRewardPoints");
|
|
528
|
+
console.log(warrning);
|
|
529
|
+
}
|
|
530
|
+
|
|
415
531
|
const query_params = {};
|
|
416
532
|
query_params["id"] = id;
|
|
417
533
|
query_params["i"] = i;
|
|
@@ -460,6 +576,17 @@ class Cart {
|
|
|
460
576
|
if (error) {
|
|
461
577
|
return Promise.reject(new FDKClientValidationError(error));
|
|
462
578
|
}
|
|
579
|
+
|
|
580
|
+
// Showing warrnings if extra unknown parameters are found
|
|
581
|
+
const { error: warrning } = CartValidator.getAddresses().validate(
|
|
582
|
+
{ cartId, buyNow, mobileNo, checkoutMode, tags, isDefault },
|
|
583
|
+
{ abortEarly: false, allowUnknown: false }
|
|
584
|
+
);
|
|
585
|
+
if (warrning) {
|
|
586
|
+
console.log("Parameter Validation warrnings for getAddresses");
|
|
587
|
+
console.log(warrning);
|
|
588
|
+
}
|
|
589
|
+
|
|
463
590
|
const query_params = {};
|
|
464
591
|
query_params["cart_id"] = cartId;
|
|
465
592
|
query_params["buy_now"] = buyNow;
|
|
@@ -498,6 +625,17 @@ class Cart {
|
|
|
498
625
|
if (error) {
|
|
499
626
|
return Promise.reject(new FDKClientValidationError(error));
|
|
500
627
|
}
|
|
628
|
+
|
|
629
|
+
// Showing warrnings if extra unknown parameters are found
|
|
630
|
+
const { error: warrning } = CartValidator.addAddress().validate(
|
|
631
|
+
{ body },
|
|
632
|
+
{ abortEarly: false, allowUnknown: false }
|
|
633
|
+
);
|
|
634
|
+
if (warrning) {
|
|
635
|
+
console.log("Parameter Validation warrnings for addAddress");
|
|
636
|
+
console.log(warrning);
|
|
637
|
+
}
|
|
638
|
+
|
|
501
639
|
const query_params = {};
|
|
502
640
|
|
|
503
641
|
const xHeaders = {};
|
|
@@ -544,6 +682,17 @@ class Cart {
|
|
|
544
682
|
if (error) {
|
|
545
683
|
return Promise.reject(new FDKClientValidationError(error));
|
|
546
684
|
}
|
|
685
|
+
|
|
686
|
+
// Showing warrnings if extra unknown parameters are found
|
|
687
|
+
const { error: warrning } = CartValidator.getAddressById().validate(
|
|
688
|
+
{ id, cartId, buyNow, mobileNo, checkoutMode, tags, isDefault },
|
|
689
|
+
{ abortEarly: false, allowUnknown: false }
|
|
690
|
+
);
|
|
691
|
+
if (warrning) {
|
|
692
|
+
console.log("Parameter Validation warrnings for getAddressById");
|
|
693
|
+
console.log(warrning);
|
|
694
|
+
}
|
|
695
|
+
|
|
547
696
|
const query_params = {};
|
|
548
697
|
query_params["cart_id"] = cartId;
|
|
549
698
|
query_params["buy_now"] = buyNow;
|
|
@@ -583,6 +732,17 @@ class Cart {
|
|
|
583
732
|
if (error) {
|
|
584
733
|
return Promise.reject(new FDKClientValidationError(error));
|
|
585
734
|
}
|
|
735
|
+
|
|
736
|
+
// Showing warrnings if extra unknown parameters are found
|
|
737
|
+
const { error: warrning } = CartValidator.updateAddress().validate(
|
|
738
|
+
{ id, body },
|
|
739
|
+
{ abortEarly: false, allowUnknown: false }
|
|
740
|
+
);
|
|
741
|
+
if (warrning) {
|
|
742
|
+
console.log("Parameter Validation warrnings for updateAddress");
|
|
743
|
+
console.log(warrning);
|
|
744
|
+
}
|
|
745
|
+
|
|
586
746
|
const query_params = {};
|
|
587
747
|
|
|
588
748
|
const xHeaders = {};
|
|
@@ -615,6 +775,17 @@ class Cart {
|
|
|
615
775
|
if (error) {
|
|
616
776
|
return Promise.reject(new FDKClientValidationError(error));
|
|
617
777
|
}
|
|
778
|
+
|
|
779
|
+
// Showing warrnings if extra unknown parameters are found
|
|
780
|
+
const { error: warrning } = CartValidator.removeAddress().validate(
|
|
781
|
+
{ id },
|
|
782
|
+
{ abortEarly: false, allowUnknown: false }
|
|
783
|
+
);
|
|
784
|
+
if (warrning) {
|
|
785
|
+
console.log("Parameter Validation warrnings for removeAddress");
|
|
786
|
+
console.log(warrning);
|
|
787
|
+
}
|
|
788
|
+
|
|
618
789
|
const query_params = {};
|
|
619
790
|
|
|
620
791
|
const xHeaders = {};
|
|
@@ -651,6 +822,17 @@ class Cart {
|
|
|
651
822
|
if (error) {
|
|
652
823
|
return Promise.reject(new FDKClientValidationError(error));
|
|
653
824
|
}
|
|
825
|
+
|
|
826
|
+
// Showing warrnings if extra unknown parameters are found
|
|
827
|
+
const { error: warrning } = CartValidator.selectAddress().validate(
|
|
828
|
+
{ body, cartId, buyNow, i, b },
|
|
829
|
+
{ abortEarly: false, allowUnknown: false }
|
|
830
|
+
);
|
|
831
|
+
if (warrning) {
|
|
832
|
+
console.log("Parameter Validation warrnings for selectAddress");
|
|
833
|
+
console.log(warrning);
|
|
834
|
+
}
|
|
835
|
+
|
|
654
836
|
const query_params = {};
|
|
655
837
|
query_params["cart_id"] = cartId;
|
|
656
838
|
query_params["buy_now"] = buyNow;
|
|
@@ -689,6 +871,17 @@ class Cart {
|
|
|
689
871
|
if (error) {
|
|
690
872
|
return Promise.reject(new FDKClientValidationError(error));
|
|
691
873
|
}
|
|
874
|
+
|
|
875
|
+
// Showing warrnings if extra unknown parameters are found
|
|
876
|
+
const { error: warrning } = CartValidator.selectPaymentMode().validate(
|
|
877
|
+
{ body, id, buyNow },
|
|
878
|
+
{ abortEarly: false, allowUnknown: false }
|
|
879
|
+
);
|
|
880
|
+
if (warrning) {
|
|
881
|
+
console.log("Parameter Validation warrnings for selectPaymentMode");
|
|
882
|
+
console.log(warrning);
|
|
883
|
+
}
|
|
884
|
+
|
|
692
885
|
const query_params = {};
|
|
693
886
|
query_params["id"] = id;
|
|
694
887
|
query_params["buy_now"] = buyNow;
|
|
@@ -745,6 +938,29 @@ class Cart {
|
|
|
745
938
|
if (error) {
|
|
746
939
|
return Promise.reject(new FDKClientValidationError(error));
|
|
747
940
|
}
|
|
941
|
+
|
|
942
|
+
// Showing warrnings if extra unknown parameters are found
|
|
943
|
+
const {
|
|
944
|
+
error: warrning,
|
|
945
|
+
} = CartValidator.validateCouponForPayment().validate(
|
|
946
|
+
{
|
|
947
|
+
id,
|
|
948
|
+
buyNow,
|
|
949
|
+
addressId,
|
|
950
|
+
paymentMode,
|
|
951
|
+
paymentIdentifier,
|
|
952
|
+
aggregatorName,
|
|
953
|
+
merchantCode,
|
|
954
|
+
},
|
|
955
|
+
{ abortEarly: false, allowUnknown: false }
|
|
956
|
+
);
|
|
957
|
+
if (warrning) {
|
|
958
|
+
console.log(
|
|
959
|
+
"Parameter Validation warrnings for validateCouponForPayment"
|
|
960
|
+
);
|
|
961
|
+
console.log(warrning);
|
|
962
|
+
}
|
|
963
|
+
|
|
748
964
|
const query_params = {};
|
|
749
965
|
query_params["id"] = id;
|
|
750
966
|
query_params["buy_now"] = buyNow;
|
|
@@ -790,6 +1006,17 @@ class Cart {
|
|
|
790
1006
|
if (error) {
|
|
791
1007
|
return Promise.reject(new FDKClientValidationError(error));
|
|
792
1008
|
}
|
|
1009
|
+
|
|
1010
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1011
|
+
const { error: warrning } = CartValidator.getShipments().validate(
|
|
1012
|
+
{ p, id, buyNow, addressId, areaCode },
|
|
1013
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1014
|
+
);
|
|
1015
|
+
if (warrning) {
|
|
1016
|
+
console.log("Parameter Validation warrnings for getShipments");
|
|
1017
|
+
console.log(warrning);
|
|
1018
|
+
}
|
|
1019
|
+
|
|
793
1020
|
const query_params = {};
|
|
794
1021
|
query_params["p"] = p;
|
|
795
1022
|
query_params["id"] = id;
|
|
@@ -828,6 +1055,17 @@ class Cart {
|
|
|
828
1055
|
if (error) {
|
|
829
1056
|
return Promise.reject(new FDKClientValidationError(error));
|
|
830
1057
|
}
|
|
1058
|
+
|
|
1059
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1060
|
+
const { error: warrning } = CartValidator.checkoutCart().validate(
|
|
1061
|
+
{ body, buyNow },
|
|
1062
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1063
|
+
);
|
|
1064
|
+
if (warrning) {
|
|
1065
|
+
console.log("Parameter Validation warrnings for checkoutCart");
|
|
1066
|
+
console.log(warrning);
|
|
1067
|
+
}
|
|
1068
|
+
|
|
831
1069
|
const query_params = {};
|
|
832
1070
|
query_params["buy_now"] = buyNow;
|
|
833
1071
|
|
|
@@ -863,6 +1101,17 @@ class Cart {
|
|
|
863
1101
|
if (error) {
|
|
864
1102
|
return Promise.reject(new FDKClientValidationError(error));
|
|
865
1103
|
}
|
|
1104
|
+
|
|
1105
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1106
|
+
const { error: warrning } = CartValidator.updateCartMeta().validate(
|
|
1107
|
+
{ body, id, buyNow },
|
|
1108
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1109
|
+
);
|
|
1110
|
+
if (warrning) {
|
|
1111
|
+
console.log("Parameter Validation warrnings for updateCartMeta");
|
|
1112
|
+
console.log(warrning);
|
|
1113
|
+
}
|
|
1114
|
+
|
|
866
1115
|
const query_params = {};
|
|
867
1116
|
query_params["id"] = id;
|
|
868
1117
|
query_params["buy_now"] = buyNow;
|
|
@@ -897,6 +1146,17 @@ class Cart {
|
|
|
897
1146
|
if (error) {
|
|
898
1147
|
return Promise.reject(new FDKClientValidationError(error));
|
|
899
1148
|
}
|
|
1149
|
+
|
|
1150
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1151
|
+
const { error: warrning } = CartValidator.getCartShareLink().validate(
|
|
1152
|
+
{ body },
|
|
1153
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1154
|
+
);
|
|
1155
|
+
if (warrning) {
|
|
1156
|
+
console.log("Parameter Validation warrnings for getCartShareLink");
|
|
1157
|
+
console.log(warrning);
|
|
1158
|
+
}
|
|
1159
|
+
|
|
900
1160
|
const query_params = {};
|
|
901
1161
|
|
|
902
1162
|
const xHeaders = {};
|
|
@@ -929,6 +1189,17 @@ class Cart {
|
|
|
929
1189
|
if (error) {
|
|
930
1190
|
return Promise.reject(new FDKClientValidationError(error));
|
|
931
1191
|
}
|
|
1192
|
+
|
|
1193
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1194
|
+
const { error: warrning } = CartValidator.getCartSharedItems().validate(
|
|
1195
|
+
{ token },
|
|
1196
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1197
|
+
);
|
|
1198
|
+
if (warrning) {
|
|
1199
|
+
console.log("Parameter Validation warrnings for getCartSharedItems");
|
|
1200
|
+
console.log(warrning);
|
|
1201
|
+
}
|
|
1202
|
+
|
|
932
1203
|
const query_params = {};
|
|
933
1204
|
|
|
934
1205
|
const xHeaders = {};
|
|
@@ -963,6 +1234,21 @@ class Cart {
|
|
|
963
1234
|
if (error) {
|
|
964
1235
|
return Promise.reject(new FDKClientValidationError(error));
|
|
965
1236
|
}
|
|
1237
|
+
|
|
1238
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1239
|
+
const {
|
|
1240
|
+
error: warrning,
|
|
1241
|
+
} = CartValidator.updateCartWithSharedItems().validate(
|
|
1242
|
+
{ token, action },
|
|
1243
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1244
|
+
);
|
|
1245
|
+
if (warrning) {
|
|
1246
|
+
console.log(
|
|
1247
|
+
"Parameter Validation warrnings for updateCartWithSharedItems"
|
|
1248
|
+
);
|
|
1249
|
+
console.log(warrning);
|
|
1250
|
+
}
|
|
1251
|
+
|
|
966
1252
|
const query_params = {};
|
|
967
1253
|
|
|
968
1254
|
const xHeaders = {};
|
|
@@ -999,6 +1285,17 @@ class Cart {
|
|
|
999
1285
|
if (error) {
|
|
1000
1286
|
return Promise.reject(new FDKClientValidationError(error));
|
|
1001
1287
|
}
|
|
1288
|
+
|
|
1289
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1290
|
+
const { error: warrning } = CartValidator.getPromotionOffers().validate(
|
|
1291
|
+
{ slug, pageSize, promotionGroup },
|
|
1292
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1293
|
+
);
|
|
1294
|
+
if (warrning) {
|
|
1295
|
+
console.log("Parameter Validation warrnings for getPromotionOffers");
|
|
1296
|
+
console.log(warrning);
|
|
1297
|
+
}
|
|
1298
|
+
|
|
1002
1299
|
const query_params = {};
|
|
1003
1300
|
query_params["slug"] = slug;
|
|
1004
1301
|
query_params["page_size"] = pageSize;
|
|
@@ -1041,6 +1338,17 @@ class Cart {
|
|
|
1041
1338
|
if (error) {
|
|
1042
1339
|
return Promise.reject(new FDKClientValidationError(error));
|
|
1043
1340
|
}
|
|
1341
|
+
|
|
1342
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1343
|
+
const { error: warrning } = CartValidator.getLadderOffers().validate(
|
|
1344
|
+
{ slug, storeId, promotionId, pageSize },
|
|
1345
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1346
|
+
);
|
|
1347
|
+
if (warrning) {
|
|
1348
|
+
console.log("Parameter Validation warrnings for getLadderOffers");
|
|
1349
|
+
console.log(warrning);
|
|
1350
|
+
}
|
|
1351
|
+
|
|
1044
1352
|
const query_params = {};
|
|
1045
1353
|
query_params["slug"] = slug;
|
|
1046
1354
|
query_params["store_id"] = storeId;
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
export = CartModel;
|
|
2
|
+
declare class CartModel {
|
|
3
|
+
static PaymentSelectionLock(): any;
|
|
4
|
+
static CartCurrency(): any;
|
|
5
|
+
static ProductImage(): any;
|
|
6
|
+
static ActionQuery(): any;
|
|
7
|
+
static ProductAction(): any;
|
|
8
|
+
static BaseInfo(): any;
|
|
9
|
+
static CategoryInfo(): any;
|
|
10
|
+
static CartProduct(): any;
|
|
11
|
+
static ProductPrice(): any;
|
|
12
|
+
static ProductPriceInfo(): any;
|
|
13
|
+
static ProductAvailability(): any;
|
|
14
|
+
static BasePrice(): any;
|
|
15
|
+
static ArticlePriceInfo(): any;
|
|
16
|
+
static ProductArticle(): any;
|
|
17
|
+
static CartProductIdentifer(): any;
|
|
18
|
+
static PromoMeta(): any;
|
|
19
|
+
static Ownership(): any;
|
|
20
|
+
static AppliedPromotion(): any;
|
|
21
|
+
static CartProductInfo(): any;
|
|
22
|
+
static PromiseTimestamp(): any;
|
|
23
|
+
static PromiseFormatted(): any;
|
|
24
|
+
static ShipmentPromise(): any;
|
|
25
|
+
static RawBreakup(): any;
|
|
26
|
+
static LoyaltyPoints(): any;
|
|
27
|
+
static DisplayBreakup(): any;
|
|
28
|
+
static CouponBreakup(): any;
|
|
29
|
+
static CartBreakup(): any;
|
|
30
|
+
static CartDetailResponse(): any;
|
|
31
|
+
static AddProductCart(): any;
|
|
32
|
+
static AddCartRequest(): any;
|
|
33
|
+
static AddCartDetailResponse(): any;
|
|
34
|
+
static UpdateProductCart(): any;
|
|
35
|
+
static UpdateCartRequest(): any;
|
|
36
|
+
static UpdateCartDetailResponse(): any;
|
|
37
|
+
static CartItemCountResponse(): any;
|
|
38
|
+
static PageCoupon(): any;
|
|
39
|
+
static Coupon(): any;
|
|
40
|
+
static GetCouponResponse(): any;
|
|
41
|
+
static ApplyCouponRequest(): any;
|
|
42
|
+
static OfferSeller(): any;
|
|
43
|
+
static OfferPrice(): any;
|
|
44
|
+
static OfferItem(): any;
|
|
45
|
+
static BulkPriceOffer(): any;
|
|
46
|
+
static BulkPriceResponse(): any;
|
|
47
|
+
static RewardPointRequest(): any;
|
|
48
|
+
static GeoLocation(): any;
|
|
49
|
+
static Address(): any;
|
|
50
|
+
static GetAddressesResponse(): any;
|
|
51
|
+
static SaveAddressResponse(): any;
|
|
52
|
+
static UpdateAddressResponse(): any;
|
|
53
|
+
static DeleteAddressResponse(): any;
|
|
54
|
+
static SelectCartAddressRequest(): any;
|
|
55
|
+
static UpdateCartPaymentRequest(): any;
|
|
56
|
+
static CouponValidity(): any;
|
|
57
|
+
static PaymentCouponValidate(): any;
|
|
58
|
+
static ShipmentResponse(): any;
|
|
59
|
+
static CartShipmentsResponse(): any;
|
|
60
|
+
static CartCheckoutCustomMeta(): any;
|
|
61
|
+
static StaffCheckout(): any;
|
|
62
|
+
static CartCheckoutDetailRequest(): any;
|
|
63
|
+
static CheckCart(): any;
|
|
64
|
+
static CartCheckoutResponse(): any;
|
|
65
|
+
static CartMetaRequest(): any;
|
|
66
|
+
static CartMetaResponse(): any;
|
|
67
|
+
static CartMetaMissingResponse(): any;
|
|
68
|
+
static GetShareCartLinkRequest(): any;
|
|
69
|
+
static GetShareCartLinkResponse(): any;
|
|
70
|
+
static SharedCartDetails(): any;
|
|
71
|
+
static SharedCart(): any;
|
|
72
|
+
static SharedCartResponse(): any;
|
|
73
|
+
static PromotionOffer(): any;
|
|
74
|
+
static PromotionOffersResponse(): any;
|
|
75
|
+
static OperationErrorResponse(): any;
|
|
76
|
+
static CurrencyInfo(): any;
|
|
77
|
+
static LadderPrice(): any;
|
|
78
|
+
static LadderOfferItem(): any;
|
|
79
|
+
static LadderPriceOffer(): any;
|
|
80
|
+
static LadderPriceOffers(): any;
|
|
81
|
+
}
|