@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
|
@@ -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 PosCartValidator = require("
|
|
5
|
+
const PosCartValidator = require("./PosCartApplicationValidator");
|
|
6
6
|
|
|
7
7
|
class PosCart {
|
|
8
8
|
constructor(_conf) {
|
|
@@ -62,24 +62,37 @@ class PosCart {
|
|
|
62
62
|
* @param {boolean} [arg.i] -
|
|
63
63
|
* @param {boolean} [arg.b] -
|
|
64
64
|
* @param {number} [arg.assignCardId] -
|
|
65
|
+
* @param {string} [arg.areaCode] -
|
|
65
66
|
* @param {boolean} [arg.buyNow] -
|
|
66
67
|
* @returns {Promise<CartDetailResponse>} - Success response
|
|
67
68
|
* @summary: Fetch all items added to the cart
|
|
68
69
|
* @description: Use this API to get details of all the items added to a cart.
|
|
69
70
|
*/
|
|
70
|
-
getCart({ id, i, b, assignCardId, buyNow } = {}) {
|
|
71
|
+
getCart({ id, i, b, assignCardId, areaCode, buyNow } = {}) {
|
|
71
72
|
const { error } = PosCartValidator.getCart().validate(
|
|
72
|
-
{ id, i, b, assignCardId, buyNow },
|
|
73
|
+
{ id, i, b, assignCardId, areaCode, buyNow },
|
|
73
74
|
{ abortEarly: false, allowUnknown: true }
|
|
74
75
|
);
|
|
75
76
|
if (error) {
|
|
76
77
|
return Promise.reject(new FDKClientValidationError(error));
|
|
77
78
|
}
|
|
79
|
+
|
|
80
|
+
// Showing warrnings if extra unknown parameters are found
|
|
81
|
+
const { error: warrning } = PosCartValidator.getCart().validate(
|
|
82
|
+
{ id, i, b, assignCardId, areaCode, buyNow },
|
|
83
|
+
{ abortEarly: false, allowUnknown: false }
|
|
84
|
+
);
|
|
85
|
+
if (warrning) {
|
|
86
|
+
console.log("Parameter Validation warrnings for getCart");
|
|
87
|
+
console.log(warrning);
|
|
88
|
+
}
|
|
89
|
+
|
|
78
90
|
const query_params = {};
|
|
79
91
|
query_params["id"] = id;
|
|
80
92
|
query_params["i"] = i;
|
|
81
93
|
query_params["b"] = b;
|
|
82
94
|
query_params["assign_card_id"] = assignCardId;
|
|
95
|
+
query_params["area_code"] = areaCode;
|
|
83
96
|
query_params["buy_now"] = buyNow;
|
|
84
97
|
|
|
85
98
|
const xHeaders = {};
|
|
@@ -112,6 +125,17 @@ class PosCart {
|
|
|
112
125
|
if (error) {
|
|
113
126
|
return Promise.reject(new FDKClientValidationError(error));
|
|
114
127
|
}
|
|
128
|
+
|
|
129
|
+
// Showing warrnings if extra unknown parameters are found
|
|
130
|
+
const { error: warrning } = PosCartValidator.getCartLastModified().validate(
|
|
131
|
+
{ id },
|
|
132
|
+
{ abortEarly: false, allowUnknown: false }
|
|
133
|
+
);
|
|
134
|
+
if (warrning) {
|
|
135
|
+
console.log("Parameter Validation warrnings for getCartLastModified");
|
|
136
|
+
console.log(warrning);
|
|
137
|
+
}
|
|
138
|
+
|
|
115
139
|
const query_params = {};
|
|
116
140
|
query_params["id"] = id;
|
|
117
141
|
|
|
@@ -134,23 +158,36 @@ class PosCart {
|
|
|
134
158
|
* @param {Object} arg - Arg object.
|
|
135
159
|
* @param {boolean} [arg.i] -
|
|
136
160
|
* @param {boolean} [arg.b] -
|
|
161
|
+
* @param {string} [arg.areaCode] -
|
|
137
162
|
* @param {boolean} [arg.buyNow] -
|
|
138
163
|
* @param {AddCartRequest} arg.body
|
|
139
164
|
* @returns {Promise<AddCartDetailResponse>} - Success response
|
|
140
165
|
* @summary: Add items to cart
|
|
141
166
|
* @description: Use this API to add items to the cart.
|
|
142
167
|
*/
|
|
143
|
-
addItems({ body, i, b, buyNow } = {}) {
|
|
168
|
+
addItems({ body, i, b, areaCode, buyNow } = {}) {
|
|
144
169
|
const { error } = PosCartValidator.addItems().validate(
|
|
145
|
-
{ body, i, b, buyNow },
|
|
170
|
+
{ body, i, b, areaCode, buyNow },
|
|
146
171
|
{ abortEarly: false, allowUnknown: true }
|
|
147
172
|
);
|
|
148
173
|
if (error) {
|
|
149
174
|
return Promise.reject(new FDKClientValidationError(error));
|
|
150
175
|
}
|
|
176
|
+
|
|
177
|
+
// Showing warrnings if extra unknown parameters are found
|
|
178
|
+
const { error: warrning } = PosCartValidator.addItems().validate(
|
|
179
|
+
{ body, i, b, areaCode, buyNow },
|
|
180
|
+
{ abortEarly: false, allowUnknown: false }
|
|
181
|
+
);
|
|
182
|
+
if (warrning) {
|
|
183
|
+
console.log("Parameter Validation warrnings for addItems");
|
|
184
|
+
console.log(warrning);
|
|
185
|
+
}
|
|
186
|
+
|
|
151
187
|
const query_params = {};
|
|
152
188
|
query_params["i"] = i;
|
|
153
189
|
query_params["b"] = b;
|
|
190
|
+
query_params["area_code"] = areaCode;
|
|
154
191
|
query_params["buy_now"] = buyNow;
|
|
155
192
|
|
|
156
193
|
const xHeaders = {};
|
|
@@ -173,24 +210,37 @@ class PosCart {
|
|
|
173
210
|
* @param {string} [arg.id] -
|
|
174
211
|
* @param {boolean} [arg.i] -
|
|
175
212
|
* @param {boolean} [arg.b] -
|
|
213
|
+
* @param {string} [arg.areaCode] -
|
|
176
214
|
* @param {boolean} [arg.buyNow] -
|
|
177
215
|
* @param {UpdateCartRequest} arg.body
|
|
178
216
|
* @returns {Promise<UpdateCartDetailResponse>} - Success response
|
|
179
217
|
* @summary: Update items in the cart
|
|
180
218
|
* @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>
|
|
181
219
|
*/
|
|
182
|
-
updateCart({ body, id, i, b, buyNow } = {}) {
|
|
220
|
+
updateCart({ body, id, i, b, areaCode, buyNow } = {}) {
|
|
183
221
|
const { error } = PosCartValidator.updateCart().validate(
|
|
184
|
-
{ body, id, i, b, buyNow },
|
|
222
|
+
{ body, id, i, b, areaCode, buyNow },
|
|
185
223
|
{ abortEarly: false, allowUnknown: true }
|
|
186
224
|
);
|
|
187
225
|
if (error) {
|
|
188
226
|
return Promise.reject(new FDKClientValidationError(error));
|
|
189
227
|
}
|
|
228
|
+
|
|
229
|
+
// Showing warrnings if extra unknown parameters are found
|
|
230
|
+
const { error: warrning } = PosCartValidator.updateCart().validate(
|
|
231
|
+
{ body, id, i, b, areaCode, buyNow },
|
|
232
|
+
{ abortEarly: false, allowUnknown: false }
|
|
233
|
+
);
|
|
234
|
+
if (warrning) {
|
|
235
|
+
console.log("Parameter Validation warrnings for updateCart");
|
|
236
|
+
console.log(warrning);
|
|
237
|
+
}
|
|
238
|
+
|
|
190
239
|
const query_params = {};
|
|
191
240
|
query_params["id"] = id;
|
|
192
241
|
query_params["i"] = i;
|
|
193
242
|
query_params["b"] = b;
|
|
243
|
+
query_params["area_code"] = areaCode;
|
|
194
244
|
query_params["buy_now"] = buyNow;
|
|
195
245
|
|
|
196
246
|
const xHeaders = {};
|
|
@@ -224,6 +274,17 @@ class PosCart {
|
|
|
224
274
|
if (error) {
|
|
225
275
|
return Promise.reject(new FDKClientValidationError(error));
|
|
226
276
|
}
|
|
277
|
+
|
|
278
|
+
// Showing warrnings if extra unknown parameters are found
|
|
279
|
+
const { error: warrning } = PosCartValidator.getItemCount().validate(
|
|
280
|
+
{ id, buyNow },
|
|
281
|
+
{ abortEarly: false, allowUnknown: false }
|
|
282
|
+
);
|
|
283
|
+
if (warrning) {
|
|
284
|
+
console.log("Parameter Validation warrnings for getItemCount");
|
|
285
|
+
console.log(warrning);
|
|
286
|
+
}
|
|
287
|
+
|
|
227
288
|
const query_params = {};
|
|
228
289
|
query_params["id"] = id;
|
|
229
290
|
query_params["buy_now"] = buyNow;
|
|
@@ -259,6 +320,17 @@ class PosCart {
|
|
|
259
320
|
if (error) {
|
|
260
321
|
return Promise.reject(new FDKClientValidationError(error));
|
|
261
322
|
}
|
|
323
|
+
|
|
324
|
+
// Showing warrnings if extra unknown parameters are found
|
|
325
|
+
const { error: warrning } = PosCartValidator.getCoupons().validate(
|
|
326
|
+
{ id, buyNow },
|
|
327
|
+
{ abortEarly: false, allowUnknown: false }
|
|
328
|
+
);
|
|
329
|
+
if (warrning) {
|
|
330
|
+
console.log("Parameter Validation warrnings for getCoupons");
|
|
331
|
+
console.log(warrning);
|
|
332
|
+
}
|
|
333
|
+
|
|
262
334
|
const query_params = {};
|
|
263
335
|
query_params["id"] = id;
|
|
264
336
|
query_params["buy_now"] = buyNow;
|
|
@@ -298,6 +370,17 @@ class PosCart {
|
|
|
298
370
|
if (error) {
|
|
299
371
|
return Promise.reject(new FDKClientValidationError(error));
|
|
300
372
|
}
|
|
373
|
+
|
|
374
|
+
// Showing warrnings if extra unknown parameters are found
|
|
375
|
+
const { error: warrning } = PosCartValidator.applyCoupon().validate(
|
|
376
|
+
{ body, i, b, p, id, buyNow },
|
|
377
|
+
{ abortEarly: false, allowUnknown: false }
|
|
378
|
+
);
|
|
379
|
+
if (warrning) {
|
|
380
|
+
console.log("Parameter Validation warrnings for applyCoupon");
|
|
381
|
+
console.log(warrning);
|
|
382
|
+
}
|
|
383
|
+
|
|
301
384
|
const query_params = {};
|
|
302
385
|
query_params["i"] = i;
|
|
303
386
|
query_params["b"] = b;
|
|
@@ -336,6 +419,17 @@ class PosCart {
|
|
|
336
419
|
if (error) {
|
|
337
420
|
return Promise.reject(new FDKClientValidationError(error));
|
|
338
421
|
}
|
|
422
|
+
|
|
423
|
+
// Showing warrnings if extra unknown parameters are found
|
|
424
|
+
const { error: warrning } = PosCartValidator.removeCoupon().validate(
|
|
425
|
+
{ id, buyNow },
|
|
426
|
+
{ abortEarly: false, allowUnknown: false }
|
|
427
|
+
);
|
|
428
|
+
if (warrning) {
|
|
429
|
+
console.log("Parameter Validation warrnings for removeCoupon");
|
|
430
|
+
console.log(warrning);
|
|
431
|
+
}
|
|
432
|
+
|
|
339
433
|
const query_params = {};
|
|
340
434
|
query_params["id"] = id;
|
|
341
435
|
query_params["buy_now"] = buyNow;
|
|
@@ -375,6 +469,19 @@ class PosCart {
|
|
|
375
469
|
if (error) {
|
|
376
470
|
return Promise.reject(new FDKClientValidationError(error));
|
|
377
471
|
}
|
|
472
|
+
|
|
473
|
+
// Showing warrnings if extra unknown parameters are found
|
|
474
|
+
const {
|
|
475
|
+
error: warrning,
|
|
476
|
+
} = PosCartValidator.getBulkDiscountOffers().validate(
|
|
477
|
+
{ itemId, articleId, uid, slug },
|
|
478
|
+
{ abortEarly: false, allowUnknown: false }
|
|
479
|
+
);
|
|
480
|
+
if (warrning) {
|
|
481
|
+
console.log("Parameter Validation warrnings for getBulkDiscountOffers");
|
|
482
|
+
console.log(warrning);
|
|
483
|
+
}
|
|
484
|
+
|
|
378
485
|
const query_params = {};
|
|
379
486
|
query_params["item_id"] = itemId;
|
|
380
487
|
query_params["article_id"] = articleId;
|
|
@@ -415,6 +522,17 @@ class PosCart {
|
|
|
415
522
|
if (error) {
|
|
416
523
|
return Promise.reject(new FDKClientValidationError(error));
|
|
417
524
|
}
|
|
525
|
+
|
|
526
|
+
// Showing warrnings if extra unknown parameters are found
|
|
527
|
+
const { error: warrning } = PosCartValidator.applyRewardPoints().validate(
|
|
528
|
+
{ body, id, i, b, buyNow },
|
|
529
|
+
{ abortEarly: false, allowUnknown: false }
|
|
530
|
+
);
|
|
531
|
+
if (warrning) {
|
|
532
|
+
console.log("Parameter Validation warrnings for applyRewardPoints");
|
|
533
|
+
console.log(warrning);
|
|
534
|
+
}
|
|
535
|
+
|
|
418
536
|
const query_params = {};
|
|
419
537
|
query_params["id"] = id;
|
|
420
538
|
query_params["i"] = i;
|
|
@@ -463,6 +581,17 @@ class PosCart {
|
|
|
463
581
|
if (error) {
|
|
464
582
|
return Promise.reject(new FDKClientValidationError(error));
|
|
465
583
|
}
|
|
584
|
+
|
|
585
|
+
// Showing warrnings if extra unknown parameters are found
|
|
586
|
+
const { error: warrning } = PosCartValidator.getAddresses().validate(
|
|
587
|
+
{ cartId, buyNow, mobileNo, checkoutMode, tags, isDefault },
|
|
588
|
+
{ abortEarly: false, allowUnknown: false }
|
|
589
|
+
);
|
|
590
|
+
if (warrning) {
|
|
591
|
+
console.log("Parameter Validation warrnings for getAddresses");
|
|
592
|
+
console.log(warrning);
|
|
593
|
+
}
|
|
594
|
+
|
|
466
595
|
const query_params = {};
|
|
467
596
|
query_params["cart_id"] = cartId;
|
|
468
597
|
query_params["buy_now"] = buyNow;
|
|
@@ -501,6 +630,17 @@ class PosCart {
|
|
|
501
630
|
if (error) {
|
|
502
631
|
return Promise.reject(new FDKClientValidationError(error));
|
|
503
632
|
}
|
|
633
|
+
|
|
634
|
+
// Showing warrnings if extra unknown parameters are found
|
|
635
|
+
const { error: warrning } = PosCartValidator.addAddress().validate(
|
|
636
|
+
{ body },
|
|
637
|
+
{ abortEarly: false, allowUnknown: false }
|
|
638
|
+
);
|
|
639
|
+
if (warrning) {
|
|
640
|
+
console.log("Parameter Validation warrnings for addAddress");
|
|
641
|
+
console.log(warrning);
|
|
642
|
+
}
|
|
643
|
+
|
|
504
644
|
const query_params = {};
|
|
505
645
|
|
|
506
646
|
const xHeaders = {};
|
|
@@ -547,6 +687,17 @@ class PosCart {
|
|
|
547
687
|
if (error) {
|
|
548
688
|
return Promise.reject(new FDKClientValidationError(error));
|
|
549
689
|
}
|
|
690
|
+
|
|
691
|
+
// Showing warrnings if extra unknown parameters are found
|
|
692
|
+
const { error: warrning } = PosCartValidator.getAddressById().validate(
|
|
693
|
+
{ id, cartId, buyNow, mobileNo, checkoutMode, tags, isDefault },
|
|
694
|
+
{ abortEarly: false, allowUnknown: false }
|
|
695
|
+
);
|
|
696
|
+
if (warrning) {
|
|
697
|
+
console.log("Parameter Validation warrnings for getAddressById");
|
|
698
|
+
console.log(warrning);
|
|
699
|
+
}
|
|
700
|
+
|
|
550
701
|
const query_params = {};
|
|
551
702
|
query_params["cart_id"] = cartId;
|
|
552
703
|
query_params["buy_now"] = buyNow;
|
|
@@ -586,6 +737,17 @@ class PosCart {
|
|
|
586
737
|
if (error) {
|
|
587
738
|
return Promise.reject(new FDKClientValidationError(error));
|
|
588
739
|
}
|
|
740
|
+
|
|
741
|
+
// Showing warrnings if extra unknown parameters are found
|
|
742
|
+
const { error: warrning } = PosCartValidator.updateAddress().validate(
|
|
743
|
+
{ id, body },
|
|
744
|
+
{ abortEarly: false, allowUnknown: false }
|
|
745
|
+
);
|
|
746
|
+
if (warrning) {
|
|
747
|
+
console.log("Parameter Validation warrnings for updateAddress");
|
|
748
|
+
console.log(warrning);
|
|
749
|
+
}
|
|
750
|
+
|
|
589
751
|
const query_params = {};
|
|
590
752
|
|
|
591
753
|
const xHeaders = {};
|
|
@@ -618,6 +780,17 @@ class PosCart {
|
|
|
618
780
|
if (error) {
|
|
619
781
|
return Promise.reject(new FDKClientValidationError(error));
|
|
620
782
|
}
|
|
783
|
+
|
|
784
|
+
// Showing warrnings if extra unknown parameters are found
|
|
785
|
+
const { error: warrning } = PosCartValidator.removeAddress().validate(
|
|
786
|
+
{ id },
|
|
787
|
+
{ abortEarly: false, allowUnknown: false }
|
|
788
|
+
);
|
|
789
|
+
if (warrning) {
|
|
790
|
+
console.log("Parameter Validation warrnings for removeAddress");
|
|
791
|
+
console.log(warrning);
|
|
792
|
+
}
|
|
793
|
+
|
|
621
794
|
const query_params = {};
|
|
622
795
|
|
|
623
796
|
const xHeaders = {};
|
|
@@ -654,6 +827,17 @@ class PosCart {
|
|
|
654
827
|
if (error) {
|
|
655
828
|
return Promise.reject(new FDKClientValidationError(error));
|
|
656
829
|
}
|
|
830
|
+
|
|
831
|
+
// Showing warrnings if extra unknown parameters are found
|
|
832
|
+
const { error: warrning } = PosCartValidator.selectAddress().validate(
|
|
833
|
+
{ body, cartId, buyNow, i, b },
|
|
834
|
+
{ abortEarly: false, allowUnknown: false }
|
|
835
|
+
);
|
|
836
|
+
if (warrning) {
|
|
837
|
+
console.log("Parameter Validation warrnings for selectAddress");
|
|
838
|
+
console.log(warrning);
|
|
839
|
+
}
|
|
840
|
+
|
|
657
841
|
const query_params = {};
|
|
658
842
|
query_params["cart_id"] = cartId;
|
|
659
843
|
query_params["buy_now"] = buyNow;
|
|
@@ -692,6 +876,17 @@ class PosCart {
|
|
|
692
876
|
if (error) {
|
|
693
877
|
return Promise.reject(new FDKClientValidationError(error));
|
|
694
878
|
}
|
|
879
|
+
|
|
880
|
+
// Showing warrnings if extra unknown parameters are found
|
|
881
|
+
const { error: warrning } = PosCartValidator.selectPaymentMode().validate(
|
|
882
|
+
{ body, id, buyNow },
|
|
883
|
+
{ abortEarly: false, allowUnknown: false }
|
|
884
|
+
);
|
|
885
|
+
if (warrning) {
|
|
886
|
+
console.log("Parameter Validation warrnings for selectPaymentMode");
|
|
887
|
+
console.log(warrning);
|
|
888
|
+
}
|
|
889
|
+
|
|
695
890
|
const query_params = {};
|
|
696
891
|
query_params["id"] = id;
|
|
697
892
|
query_params["buy_now"] = buyNow;
|
|
@@ -748,6 +943,29 @@ class PosCart {
|
|
|
748
943
|
if (error) {
|
|
749
944
|
return Promise.reject(new FDKClientValidationError(error));
|
|
750
945
|
}
|
|
946
|
+
|
|
947
|
+
// Showing warrnings if extra unknown parameters are found
|
|
948
|
+
const {
|
|
949
|
+
error: warrning,
|
|
950
|
+
} = PosCartValidator.validateCouponForPayment().validate(
|
|
951
|
+
{
|
|
952
|
+
id,
|
|
953
|
+
buyNow,
|
|
954
|
+
addressId,
|
|
955
|
+
paymentMode,
|
|
956
|
+
paymentIdentifier,
|
|
957
|
+
aggregatorName,
|
|
958
|
+
merchantCode,
|
|
959
|
+
},
|
|
960
|
+
{ abortEarly: false, allowUnknown: false }
|
|
961
|
+
);
|
|
962
|
+
if (warrning) {
|
|
963
|
+
console.log(
|
|
964
|
+
"Parameter Validation warrnings for validateCouponForPayment"
|
|
965
|
+
);
|
|
966
|
+
console.log(warrning);
|
|
967
|
+
}
|
|
968
|
+
|
|
751
969
|
const query_params = {};
|
|
752
970
|
query_params["id"] = id;
|
|
753
971
|
query_params["buy_now"] = buyNow;
|
|
@@ -813,6 +1031,25 @@ class PosCart {
|
|
|
813
1031
|
if (error) {
|
|
814
1032
|
return Promise.reject(new FDKClientValidationError(error));
|
|
815
1033
|
}
|
|
1034
|
+
|
|
1035
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1036
|
+
const { error: warrning } = PosCartValidator.getShipments().validate(
|
|
1037
|
+
{
|
|
1038
|
+
pickAtStoreUid,
|
|
1039
|
+
orderingStoreId,
|
|
1040
|
+
p,
|
|
1041
|
+
id,
|
|
1042
|
+
addressId,
|
|
1043
|
+
areaCode,
|
|
1044
|
+
orderType,
|
|
1045
|
+
},
|
|
1046
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1047
|
+
);
|
|
1048
|
+
if (warrning) {
|
|
1049
|
+
console.log("Parameter Validation warrnings for getShipments");
|
|
1050
|
+
console.log(warrning);
|
|
1051
|
+
}
|
|
1052
|
+
|
|
816
1053
|
const query_params = {};
|
|
817
1054
|
query_params["pick_at_store_uid"] = pickAtStoreUid;
|
|
818
1055
|
query_params["ordering_store_id"] = orderingStoreId;
|
|
@@ -861,6 +1098,17 @@ class PosCart {
|
|
|
861
1098
|
if (error) {
|
|
862
1099
|
return Promise.reject(new FDKClientValidationError(error));
|
|
863
1100
|
}
|
|
1101
|
+
|
|
1102
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1103
|
+
const { error: warrning } = PosCartValidator.updateShipments().validate(
|
|
1104
|
+
{ body, i, p, id, addressId, orderType },
|
|
1105
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1106
|
+
);
|
|
1107
|
+
if (warrning) {
|
|
1108
|
+
console.log("Parameter Validation warrnings for updateShipments");
|
|
1109
|
+
console.log(warrning);
|
|
1110
|
+
}
|
|
1111
|
+
|
|
864
1112
|
const query_params = {};
|
|
865
1113
|
query_params["i"] = i;
|
|
866
1114
|
query_params["p"] = p;
|
|
@@ -899,6 +1147,17 @@ class PosCart {
|
|
|
899
1147
|
if (error) {
|
|
900
1148
|
return Promise.reject(new FDKClientValidationError(error));
|
|
901
1149
|
}
|
|
1150
|
+
|
|
1151
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1152
|
+
const { error: warrning } = PosCartValidator.checkoutCart().validate(
|
|
1153
|
+
{ body, id },
|
|
1154
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1155
|
+
);
|
|
1156
|
+
if (warrning) {
|
|
1157
|
+
console.log("Parameter Validation warrnings for checkoutCart");
|
|
1158
|
+
console.log(warrning);
|
|
1159
|
+
}
|
|
1160
|
+
|
|
902
1161
|
const query_params = {};
|
|
903
1162
|
query_params["id"] = id;
|
|
904
1163
|
|
|
@@ -934,6 +1193,17 @@ class PosCart {
|
|
|
934
1193
|
if (error) {
|
|
935
1194
|
return Promise.reject(new FDKClientValidationError(error));
|
|
936
1195
|
}
|
|
1196
|
+
|
|
1197
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1198
|
+
const { error: warrning } = PosCartValidator.updateCartMeta().validate(
|
|
1199
|
+
{ body, id, buyNow },
|
|
1200
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1201
|
+
);
|
|
1202
|
+
if (warrning) {
|
|
1203
|
+
console.log("Parameter Validation warrnings for updateCartMeta");
|
|
1204
|
+
console.log(warrning);
|
|
1205
|
+
}
|
|
1206
|
+
|
|
937
1207
|
const query_params = {};
|
|
938
1208
|
query_params["id"] = id;
|
|
939
1209
|
query_params["buy_now"] = buyNow;
|
|
@@ -969,6 +1239,21 @@ class PosCart {
|
|
|
969
1239
|
if (error) {
|
|
970
1240
|
return Promise.reject(new FDKClientValidationError(error));
|
|
971
1241
|
}
|
|
1242
|
+
|
|
1243
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1244
|
+
const {
|
|
1245
|
+
error: warrning,
|
|
1246
|
+
} = PosCartValidator.getAvailableDeliveryModes().validate(
|
|
1247
|
+
{ areaCode, id },
|
|
1248
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1249
|
+
);
|
|
1250
|
+
if (warrning) {
|
|
1251
|
+
console.log(
|
|
1252
|
+
"Parameter Validation warrnings for getAvailableDeliveryModes"
|
|
1253
|
+
);
|
|
1254
|
+
console.log(warrning);
|
|
1255
|
+
}
|
|
1256
|
+
|
|
972
1257
|
const query_params = {};
|
|
973
1258
|
query_params["area_code"] = areaCode;
|
|
974
1259
|
query_params["id"] = id;
|
|
@@ -1003,6 +1288,19 @@ class PosCart {
|
|
|
1003
1288
|
if (error) {
|
|
1004
1289
|
return Promise.reject(new FDKClientValidationError(error));
|
|
1005
1290
|
}
|
|
1291
|
+
|
|
1292
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1293
|
+
const {
|
|
1294
|
+
error: warrning,
|
|
1295
|
+
} = PosCartValidator.getStoreAddressByUid().validate(
|
|
1296
|
+
{ storeUid },
|
|
1297
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1298
|
+
);
|
|
1299
|
+
if (warrning) {
|
|
1300
|
+
console.log("Parameter Validation warrnings for getStoreAddressByUid");
|
|
1301
|
+
console.log(warrning);
|
|
1302
|
+
}
|
|
1303
|
+
|
|
1006
1304
|
const query_params = {};
|
|
1007
1305
|
query_params["store_uid"] = storeUid;
|
|
1008
1306
|
|
|
@@ -1036,6 +1334,17 @@ class PosCart {
|
|
|
1036
1334
|
if (error) {
|
|
1037
1335
|
return Promise.reject(new FDKClientValidationError(error));
|
|
1038
1336
|
}
|
|
1337
|
+
|
|
1338
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1339
|
+
const { error: warrning } = PosCartValidator.getCartShareLink().validate(
|
|
1340
|
+
{ body },
|
|
1341
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1342
|
+
);
|
|
1343
|
+
if (warrning) {
|
|
1344
|
+
console.log("Parameter Validation warrnings for getCartShareLink");
|
|
1345
|
+
console.log(warrning);
|
|
1346
|
+
}
|
|
1347
|
+
|
|
1039
1348
|
const query_params = {};
|
|
1040
1349
|
|
|
1041
1350
|
const xHeaders = {};
|
|
@@ -1068,6 +1377,17 @@ class PosCart {
|
|
|
1068
1377
|
if (error) {
|
|
1069
1378
|
return Promise.reject(new FDKClientValidationError(error));
|
|
1070
1379
|
}
|
|
1380
|
+
|
|
1381
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1382
|
+
const { error: warrning } = PosCartValidator.getCartSharedItems().validate(
|
|
1383
|
+
{ token },
|
|
1384
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1385
|
+
);
|
|
1386
|
+
if (warrning) {
|
|
1387
|
+
console.log("Parameter Validation warrnings for getCartSharedItems");
|
|
1388
|
+
console.log(warrning);
|
|
1389
|
+
}
|
|
1390
|
+
|
|
1071
1391
|
const query_params = {};
|
|
1072
1392
|
|
|
1073
1393
|
const xHeaders = {};
|
|
@@ -1102,6 +1422,21 @@ class PosCart {
|
|
|
1102
1422
|
if (error) {
|
|
1103
1423
|
return Promise.reject(new FDKClientValidationError(error));
|
|
1104
1424
|
}
|
|
1425
|
+
|
|
1426
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1427
|
+
const {
|
|
1428
|
+
error: warrning,
|
|
1429
|
+
} = PosCartValidator.updateCartWithSharedItems().validate(
|
|
1430
|
+
{ token, action },
|
|
1431
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1432
|
+
);
|
|
1433
|
+
if (warrning) {
|
|
1434
|
+
console.log(
|
|
1435
|
+
"Parameter Validation warrnings for updateCartWithSharedItems"
|
|
1436
|
+
);
|
|
1437
|
+
console.log(warrning);
|
|
1438
|
+
}
|
|
1439
|
+
|
|
1105
1440
|
const query_params = {};
|
|
1106
1441
|
|
|
1107
1442
|
const xHeaders = {};
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
export = PosCartModel;
|
|
2
|
+
declare class PosCartModel {
|
|
3
|
+
static CouponBreakup(): any;
|
|
4
|
+
static DisplayBreakup(): any;
|
|
5
|
+
static LoyaltyPoints(): any;
|
|
6
|
+
static RawBreakup(): any;
|
|
7
|
+
static CartBreakup(): any;
|
|
8
|
+
static PaymentSelectionLock(): any;
|
|
9
|
+
static PromiseFormatted(): any;
|
|
10
|
+
static PromiseTimestamp(): any;
|
|
11
|
+
static ShipmentPromise(): any;
|
|
12
|
+
static ProductAvailability(): any;
|
|
13
|
+
static ProductPrice(): any;
|
|
14
|
+
static ProductPriceInfo(): any;
|
|
15
|
+
static ActionQuery(): any;
|
|
16
|
+
static ProductAction(): any;
|
|
17
|
+
static BaseInfo(): any;
|
|
18
|
+
static CategoryInfo(): any;
|
|
19
|
+
static ProductImage(): any;
|
|
20
|
+
static CartProduct(): any;
|
|
21
|
+
static CartProductIdentifer(): any;
|
|
22
|
+
static Ownership(): any;
|
|
23
|
+
static AppliedPromotion(): any;
|
|
24
|
+
static BasePrice(): any;
|
|
25
|
+
static ArticlePriceInfo(): any;
|
|
26
|
+
static ProductArticle(): any;
|
|
27
|
+
static PromoMeta(): any;
|
|
28
|
+
static CartProductInfo(): any;
|
|
29
|
+
static CartCurrency(): 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 Coupon(): any;
|
|
39
|
+
static PageCoupon(): any;
|
|
40
|
+
static GetCouponResponse(): any;
|
|
41
|
+
static ApplyCouponRequest(): any;
|
|
42
|
+
static OfferPrice(): any;
|
|
43
|
+
static OfferItem(): any;
|
|
44
|
+
static OfferSeller(): 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 UpdateCartShipmentItem(): any;
|
|
61
|
+
static UpdateCartShipmentRequest(): any;
|
|
62
|
+
static StaffCheckout(): any;
|
|
63
|
+
static CartCheckoutCustomMeta(): any;
|
|
64
|
+
static Files(): any;
|
|
65
|
+
static CartPosCheckoutDetailRequest(): any;
|
|
66
|
+
static CheckCart(): any;
|
|
67
|
+
static CartCheckoutResponse(): any;
|
|
68
|
+
static CartMetaRequest(): any;
|
|
69
|
+
static CartMetaResponse(): any;
|
|
70
|
+
static CartMetaMissingResponse(): any;
|
|
71
|
+
static CartDeliveryModesResponse(): any;
|
|
72
|
+
static PickupStoreDetail(): any;
|
|
73
|
+
static StoreDetailsResponse(): any;
|
|
74
|
+
static GetShareCartLinkRequest(): any;
|
|
75
|
+
static GetShareCartLinkResponse(): any;
|
|
76
|
+
static SharedCartDetails(): any;
|
|
77
|
+
static SharedCart(): any;
|
|
78
|
+
static SharedCartResponse(): any;
|
|
79
|
+
}
|