@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 PaymentValidator = require("
|
|
5
|
+
const PaymentValidator = require("./PaymentApplicationValidator");
|
|
6
6
|
|
|
7
7
|
class Payment {
|
|
8
8
|
constructor(_conf) {
|
|
@@ -108,6 +108,19 @@ class Payment {
|
|
|
108
108
|
if (error) {
|
|
109
109
|
return Promise.reject(new FDKClientValidationError(error));
|
|
110
110
|
}
|
|
111
|
+
|
|
112
|
+
// Showing warrnings if extra unknown parameters are found
|
|
113
|
+
const {
|
|
114
|
+
error: warrning,
|
|
115
|
+
} = PaymentValidator.getAggregatorsConfig().validate(
|
|
116
|
+
{ xApiToken, refresh },
|
|
117
|
+
{ abortEarly: false, allowUnknown: false }
|
|
118
|
+
);
|
|
119
|
+
if (warrning) {
|
|
120
|
+
console.log("Parameter Validation warrnings for getAggregatorsConfig");
|
|
121
|
+
console.log(warrning);
|
|
122
|
+
}
|
|
123
|
+
|
|
111
124
|
const query_params = {};
|
|
112
125
|
query_params["refresh"] = refresh;
|
|
113
126
|
|
|
@@ -142,6 +155,19 @@ class Payment {
|
|
|
142
155
|
if (error) {
|
|
143
156
|
return Promise.reject(new FDKClientValidationError(error));
|
|
144
157
|
}
|
|
158
|
+
|
|
159
|
+
// Showing warrnings if extra unknown parameters are found
|
|
160
|
+
const {
|
|
161
|
+
error: warrning,
|
|
162
|
+
} = PaymentValidator.attachCardToCustomer().validate(
|
|
163
|
+
{ body },
|
|
164
|
+
{ abortEarly: false, allowUnknown: false }
|
|
165
|
+
);
|
|
166
|
+
if (warrning) {
|
|
167
|
+
console.log("Parameter Validation warrnings for attachCardToCustomer");
|
|
168
|
+
console.log(warrning);
|
|
169
|
+
}
|
|
170
|
+
|
|
145
171
|
const query_params = {};
|
|
146
172
|
|
|
147
173
|
const xHeaders = {};
|
|
@@ -174,6 +200,19 @@ class Payment {
|
|
|
174
200
|
if (error) {
|
|
175
201
|
return Promise.reject(new FDKClientValidationError(error));
|
|
176
202
|
}
|
|
203
|
+
|
|
204
|
+
// Showing warrnings if extra unknown parameters are found
|
|
205
|
+
const {
|
|
206
|
+
error: warrning,
|
|
207
|
+
} = PaymentValidator.getActiveCardAggregator().validate(
|
|
208
|
+
{ refresh },
|
|
209
|
+
{ abortEarly: false, allowUnknown: false }
|
|
210
|
+
);
|
|
211
|
+
if (warrning) {
|
|
212
|
+
console.log("Parameter Validation warrnings for getActiveCardAggregator");
|
|
213
|
+
console.log(warrning);
|
|
214
|
+
}
|
|
215
|
+
|
|
177
216
|
const query_params = {};
|
|
178
217
|
query_params["refresh"] = refresh;
|
|
179
218
|
|
|
@@ -207,6 +246,17 @@ class Payment {
|
|
|
207
246
|
if (error) {
|
|
208
247
|
return Promise.reject(new FDKClientValidationError(error));
|
|
209
248
|
}
|
|
249
|
+
|
|
250
|
+
// Showing warrnings if extra unknown parameters are found
|
|
251
|
+
const { error: warrning } = PaymentValidator.getActiveUserCards().validate(
|
|
252
|
+
{ forceRefresh },
|
|
253
|
+
{ abortEarly: false, allowUnknown: false }
|
|
254
|
+
);
|
|
255
|
+
if (warrning) {
|
|
256
|
+
console.log("Parameter Validation warrnings for getActiveUserCards");
|
|
257
|
+
console.log(warrning);
|
|
258
|
+
}
|
|
259
|
+
|
|
210
260
|
const query_params = {};
|
|
211
261
|
query_params["force_refresh"] = forceRefresh;
|
|
212
262
|
|
|
@@ -240,6 +290,17 @@ class Payment {
|
|
|
240
290
|
if (error) {
|
|
241
291
|
return Promise.reject(new FDKClientValidationError(error));
|
|
242
292
|
}
|
|
293
|
+
|
|
294
|
+
// Showing warrnings if extra unknown parameters are found
|
|
295
|
+
const { error: warrning } = PaymentValidator.deleteUserCard().validate(
|
|
296
|
+
{ body },
|
|
297
|
+
{ abortEarly: false, allowUnknown: false }
|
|
298
|
+
);
|
|
299
|
+
if (warrning) {
|
|
300
|
+
console.log("Parameter Validation warrnings for deleteUserCard");
|
|
301
|
+
console.log(warrning);
|
|
302
|
+
}
|
|
303
|
+
|
|
243
304
|
const query_params = {};
|
|
244
305
|
|
|
245
306
|
const xHeaders = {};
|
|
@@ -272,6 +333,21 @@ class Payment {
|
|
|
272
333
|
if (error) {
|
|
273
334
|
return Promise.reject(new FDKClientValidationError(error));
|
|
274
335
|
}
|
|
336
|
+
|
|
337
|
+
// Showing warrnings if extra unknown parameters are found
|
|
338
|
+
const {
|
|
339
|
+
error: warrning,
|
|
340
|
+
} = PaymentValidator.verifyCustomerForPayment().validate(
|
|
341
|
+
{ body },
|
|
342
|
+
{ abortEarly: false, allowUnknown: false }
|
|
343
|
+
);
|
|
344
|
+
if (warrning) {
|
|
345
|
+
console.log(
|
|
346
|
+
"Parameter Validation warrnings for verifyCustomerForPayment"
|
|
347
|
+
);
|
|
348
|
+
console.log(warrning);
|
|
349
|
+
}
|
|
350
|
+
|
|
275
351
|
const query_params = {};
|
|
276
352
|
|
|
277
353
|
const xHeaders = {};
|
|
@@ -304,6 +380,19 @@ class Payment {
|
|
|
304
380
|
if (error) {
|
|
305
381
|
return Promise.reject(new FDKClientValidationError(error));
|
|
306
382
|
}
|
|
383
|
+
|
|
384
|
+
// Showing warrnings if extra unknown parameters are found
|
|
385
|
+
const {
|
|
386
|
+
error: warrning,
|
|
387
|
+
} = PaymentValidator.verifyAndChargePayment().validate(
|
|
388
|
+
{ body },
|
|
389
|
+
{ abortEarly: false, allowUnknown: false }
|
|
390
|
+
);
|
|
391
|
+
if (warrning) {
|
|
392
|
+
console.log("Parameter Validation warrnings for verifyAndChargePayment");
|
|
393
|
+
console.log(warrning);
|
|
394
|
+
}
|
|
395
|
+
|
|
307
396
|
const query_params = {};
|
|
308
397
|
|
|
309
398
|
const xHeaders = {};
|
|
@@ -336,6 +425,17 @@ class Payment {
|
|
|
336
425
|
if (error) {
|
|
337
426
|
return Promise.reject(new FDKClientValidationError(error));
|
|
338
427
|
}
|
|
428
|
+
|
|
429
|
+
// Showing warrnings if extra unknown parameters are found
|
|
430
|
+
const { error: warrning } = PaymentValidator.initialisePayment().validate(
|
|
431
|
+
{ body },
|
|
432
|
+
{ abortEarly: false, allowUnknown: false }
|
|
433
|
+
);
|
|
434
|
+
if (warrning) {
|
|
435
|
+
console.log("Parameter Validation warrnings for initialisePayment");
|
|
436
|
+
console.log(warrning);
|
|
437
|
+
}
|
|
438
|
+
|
|
339
439
|
const query_params = {};
|
|
340
440
|
|
|
341
441
|
const xHeaders = {};
|
|
@@ -368,6 +468,21 @@ class Payment {
|
|
|
368
468
|
if (error) {
|
|
369
469
|
return Promise.reject(new FDKClientValidationError(error));
|
|
370
470
|
}
|
|
471
|
+
|
|
472
|
+
// Showing warrnings if extra unknown parameters are found
|
|
473
|
+
const {
|
|
474
|
+
error: warrning,
|
|
475
|
+
} = PaymentValidator.checkAndUpdatePaymentStatus().validate(
|
|
476
|
+
{ body },
|
|
477
|
+
{ abortEarly: false, allowUnknown: false }
|
|
478
|
+
);
|
|
479
|
+
if (warrning) {
|
|
480
|
+
console.log(
|
|
481
|
+
"Parameter Validation warrnings for checkAndUpdatePaymentStatus"
|
|
482
|
+
);
|
|
483
|
+
console.log(warrning);
|
|
484
|
+
}
|
|
485
|
+
|
|
371
486
|
const query_params = {};
|
|
372
487
|
|
|
373
488
|
const xHeaders = {};
|
|
@@ -426,6 +541,27 @@ class Payment {
|
|
|
426
541
|
if (error) {
|
|
427
542
|
return Promise.reject(new FDKClientValidationError(error));
|
|
428
543
|
}
|
|
544
|
+
|
|
545
|
+
// Showing warrnings if extra unknown parameters are found
|
|
546
|
+
const {
|
|
547
|
+
error: warrning,
|
|
548
|
+
} = PaymentValidator.getPaymentModeRoutes().validate(
|
|
549
|
+
{
|
|
550
|
+
amount,
|
|
551
|
+
cartId,
|
|
552
|
+
pincode,
|
|
553
|
+
checkoutMode,
|
|
554
|
+
refresh,
|
|
555
|
+
cardReference,
|
|
556
|
+
userDetails,
|
|
557
|
+
},
|
|
558
|
+
{ abortEarly: false, allowUnknown: false }
|
|
559
|
+
);
|
|
560
|
+
if (warrning) {
|
|
561
|
+
console.log("Parameter Validation warrnings for getPaymentModeRoutes");
|
|
562
|
+
console.log(warrning);
|
|
563
|
+
}
|
|
564
|
+
|
|
429
565
|
const query_params = {};
|
|
430
566
|
query_params["amount"] = amount;
|
|
431
567
|
query_params["cart_id"] = cartId;
|
|
@@ -496,6 +632,28 @@ class Payment {
|
|
|
496
632
|
if (error) {
|
|
497
633
|
return Promise.reject(new FDKClientValidationError(error));
|
|
498
634
|
}
|
|
635
|
+
|
|
636
|
+
// Showing warrnings if extra unknown parameters are found
|
|
637
|
+
const {
|
|
638
|
+
error: warrning,
|
|
639
|
+
} = PaymentValidator.getPosPaymentModeRoutes().validate(
|
|
640
|
+
{
|
|
641
|
+
amount,
|
|
642
|
+
cartId,
|
|
643
|
+
pincode,
|
|
644
|
+
checkoutMode,
|
|
645
|
+
orderType,
|
|
646
|
+
refresh,
|
|
647
|
+
cardReference,
|
|
648
|
+
userDetails,
|
|
649
|
+
},
|
|
650
|
+
{ abortEarly: false, allowUnknown: false }
|
|
651
|
+
);
|
|
652
|
+
if (warrning) {
|
|
653
|
+
console.log("Parameter Validation warrnings for getPosPaymentModeRoutes");
|
|
654
|
+
console.log(warrning);
|
|
655
|
+
}
|
|
656
|
+
|
|
499
657
|
const query_params = {};
|
|
500
658
|
query_params["amount"] = amount;
|
|
501
659
|
query_params["cart_id"] = cartId;
|
|
@@ -535,6 +693,19 @@ class Payment {
|
|
|
535
693
|
if (error) {
|
|
536
694
|
return Promise.reject(new FDKClientValidationError(error));
|
|
537
695
|
}
|
|
696
|
+
|
|
697
|
+
// Showing warrnings if extra unknown parameters are found
|
|
698
|
+
const {
|
|
699
|
+
error: warrning,
|
|
700
|
+
} = PaymentValidator.getRupifiBannerDetails().validate(
|
|
701
|
+
{},
|
|
702
|
+
{ abortEarly: false, allowUnknown: false }
|
|
703
|
+
);
|
|
704
|
+
if (warrning) {
|
|
705
|
+
console.log("Parameter Validation warrnings for getRupifiBannerDetails");
|
|
706
|
+
console.log(warrning);
|
|
707
|
+
}
|
|
708
|
+
|
|
538
709
|
const query_params = {};
|
|
539
710
|
|
|
540
711
|
const xHeaders = {};
|
|
@@ -566,6 +737,21 @@ class Payment {
|
|
|
566
737
|
if (error) {
|
|
567
738
|
return Promise.reject(new FDKClientValidationError(error));
|
|
568
739
|
}
|
|
740
|
+
|
|
741
|
+
// Showing warrnings if extra unknown parameters are found
|
|
742
|
+
const {
|
|
743
|
+
error: warrning,
|
|
744
|
+
} = PaymentValidator.getEpaylaterBannerDetails().validate(
|
|
745
|
+
{},
|
|
746
|
+
{ abortEarly: false, allowUnknown: false }
|
|
747
|
+
);
|
|
748
|
+
if (warrning) {
|
|
749
|
+
console.log(
|
|
750
|
+
"Parameter Validation warrnings for getEpaylaterBannerDetails"
|
|
751
|
+
);
|
|
752
|
+
console.log(warrning);
|
|
753
|
+
}
|
|
754
|
+
|
|
569
755
|
const query_params = {};
|
|
570
756
|
|
|
571
757
|
const xHeaders = {};
|
|
@@ -598,6 +784,19 @@ class Payment {
|
|
|
598
784
|
if (error) {
|
|
599
785
|
return Promise.reject(new FDKClientValidationError(error));
|
|
600
786
|
}
|
|
787
|
+
|
|
788
|
+
// Showing warrnings if extra unknown parameters are found
|
|
789
|
+
const {
|
|
790
|
+
error: warrning,
|
|
791
|
+
} = PaymentValidator.resendOrCancelPayment().validate(
|
|
792
|
+
{ body },
|
|
793
|
+
{ abortEarly: false, allowUnknown: false }
|
|
794
|
+
);
|
|
795
|
+
if (warrning) {
|
|
796
|
+
console.log("Parameter Validation warrnings for resendOrCancelPayment");
|
|
797
|
+
console.log(warrning);
|
|
798
|
+
}
|
|
799
|
+
|
|
601
800
|
const query_params = {};
|
|
602
801
|
|
|
603
802
|
const xHeaders = {};
|
|
@@ -630,6 +829,17 @@ class Payment {
|
|
|
630
829
|
if (error) {
|
|
631
830
|
return Promise.reject(new FDKClientValidationError(error));
|
|
632
831
|
}
|
|
832
|
+
|
|
833
|
+
// Showing warrnings if extra unknown parameters are found
|
|
834
|
+
const { error: warrning } = PaymentValidator.renderHTML().validate(
|
|
835
|
+
{ body },
|
|
836
|
+
{ abortEarly: false, allowUnknown: false }
|
|
837
|
+
);
|
|
838
|
+
if (warrning) {
|
|
839
|
+
console.log("Parameter Validation warrnings for renderHTML");
|
|
840
|
+
console.log(warrning);
|
|
841
|
+
}
|
|
842
|
+
|
|
633
843
|
const query_params = {};
|
|
634
844
|
|
|
635
845
|
const xHeaders = {};
|
|
@@ -662,6 +872,17 @@ class Payment {
|
|
|
662
872
|
if (error) {
|
|
663
873
|
return Promise.reject(new FDKClientValidationError(error));
|
|
664
874
|
}
|
|
875
|
+
|
|
876
|
+
// Showing warrnings if extra unknown parameters are found
|
|
877
|
+
const { error: warrning } = PaymentValidator.validateVPA().validate(
|
|
878
|
+
{ body },
|
|
879
|
+
{ abortEarly: false, allowUnknown: false }
|
|
880
|
+
);
|
|
881
|
+
if (warrning) {
|
|
882
|
+
console.log("Parameter Validation warrnings for validateVPA");
|
|
883
|
+
console.log(warrning);
|
|
884
|
+
}
|
|
885
|
+
|
|
665
886
|
const query_params = {};
|
|
666
887
|
|
|
667
888
|
const xHeaders = {};
|
|
@@ -693,6 +914,21 @@ class Payment {
|
|
|
693
914
|
if (error) {
|
|
694
915
|
return Promise.reject(new FDKClientValidationError(error));
|
|
695
916
|
}
|
|
917
|
+
|
|
918
|
+
// Showing warrnings if extra unknown parameters are found
|
|
919
|
+
const {
|
|
920
|
+
error: warrning,
|
|
921
|
+
} = PaymentValidator.getActiveRefundTransferModes().validate(
|
|
922
|
+
{},
|
|
923
|
+
{ abortEarly: false, allowUnknown: false }
|
|
924
|
+
);
|
|
925
|
+
if (warrning) {
|
|
926
|
+
console.log(
|
|
927
|
+
"Parameter Validation warrnings for getActiveRefundTransferModes"
|
|
928
|
+
);
|
|
929
|
+
console.log(warrning);
|
|
930
|
+
}
|
|
931
|
+
|
|
696
932
|
const query_params = {};
|
|
697
933
|
|
|
698
934
|
const xHeaders = {};
|
|
@@ -727,6 +963,21 @@ class Payment {
|
|
|
727
963
|
if (error) {
|
|
728
964
|
return Promise.reject(new FDKClientValidationError(error));
|
|
729
965
|
}
|
|
966
|
+
|
|
967
|
+
// Showing warrnings if extra unknown parameters are found
|
|
968
|
+
const {
|
|
969
|
+
error: warrning,
|
|
970
|
+
} = PaymentValidator.enableOrDisableRefundTransferMode().validate(
|
|
971
|
+
{ body },
|
|
972
|
+
{ abortEarly: false, allowUnknown: false }
|
|
973
|
+
);
|
|
974
|
+
if (warrning) {
|
|
975
|
+
console.log(
|
|
976
|
+
"Parameter Validation warrnings for enableOrDisableRefundTransferMode"
|
|
977
|
+
);
|
|
978
|
+
console.log(warrning);
|
|
979
|
+
}
|
|
980
|
+
|
|
730
981
|
const query_params = {};
|
|
731
982
|
|
|
732
983
|
const xHeaders = {};
|
|
@@ -760,6 +1011,21 @@ class Payment {
|
|
|
760
1011
|
if (error) {
|
|
761
1012
|
return Promise.reject(new FDKClientValidationError(error));
|
|
762
1013
|
}
|
|
1014
|
+
|
|
1015
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1016
|
+
const {
|
|
1017
|
+
error: warrning,
|
|
1018
|
+
} = PaymentValidator.getUserBeneficiariesDetail().validate(
|
|
1019
|
+
{ orderId },
|
|
1020
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1021
|
+
);
|
|
1022
|
+
if (warrning) {
|
|
1023
|
+
console.log(
|
|
1024
|
+
"Parameter Validation warrnings for getUserBeneficiariesDetail"
|
|
1025
|
+
);
|
|
1026
|
+
console.log(warrning);
|
|
1027
|
+
}
|
|
1028
|
+
|
|
763
1029
|
const query_params = {};
|
|
764
1030
|
query_params["order_id"] = orderId;
|
|
765
1031
|
|
|
@@ -794,6 +1060,17 @@ class Payment {
|
|
|
794
1060
|
if (error) {
|
|
795
1061
|
return Promise.reject(new FDKClientValidationError(error));
|
|
796
1062
|
}
|
|
1063
|
+
|
|
1064
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1065
|
+
const { error: warrning } = PaymentValidator.verifyIfscCode().validate(
|
|
1066
|
+
{ ifscCode },
|
|
1067
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1068
|
+
);
|
|
1069
|
+
if (warrning) {
|
|
1070
|
+
console.log("Parameter Validation warrnings for verifyIfscCode");
|
|
1071
|
+
console.log(warrning);
|
|
1072
|
+
}
|
|
1073
|
+
|
|
797
1074
|
const query_params = {};
|
|
798
1075
|
query_params["ifsc_code"] = ifscCode;
|
|
799
1076
|
|
|
@@ -828,6 +1105,21 @@ class Payment {
|
|
|
828
1105
|
if (error) {
|
|
829
1106
|
return Promise.reject(new FDKClientValidationError(error));
|
|
830
1107
|
}
|
|
1108
|
+
|
|
1109
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1110
|
+
const {
|
|
1111
|
+
error: warrning,
|
|
1112
|
+
} = PaymentValidator.getOrderBeneficiariesDetail().validate(
|
|
1113
|
+
{ orderId },
|
|
1114
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1115
|
+
);
|
|
1116
|
+
if (warrning) {
|
|
1117
|
+
console.log(
|
|
1118
|
+
"Parameter Validation warrnings for getOrderBeneficiariesDetail"
|
|
1119
|
+
);
|
|
1120
|
+
console.log(warrning);
|
|
1121
|
+
}
|
|
1122
|
+
|
|
831
1123
|
const query_params = {};
|
|
832
1124
|
query_params["order_id"] = orderId;
|
|
833
1125
|
|
|
@@ -863,6 +1155,21 @@ class Payment {
|
|
|
863
1155
|
if (error) {
|
|
864
1156
|
return Promise.reject(new FDKClientValidationError(error));
|
|
865
1157
|
}
|
|
1158
|
+
|
|
1159
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1160
|
+
const {
|
|
1161
|
+
error: warrning,
|
|
1162
|
+
} = PaymentValidator.verifyOtpAndAddBeneficiaryForBank().validate(
|
|
1163
|
+
{ body },
|
|
1164
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1165
|
+
);
|
|
1166
|
+
if (warrning) {
|
|
1167
|
+
console.log(
|
|
1168
|
+
"Parameter Validation warrnings for verifyOtpAndAddBeneficiaryForBank"
|
|
1169
|
+
);
|
|
1170
|
+
console.log(warrning);
|
|
1171
|
+
}
|
|
1172
|
+
|
|
866
1173
|
const query_params = {};
|
|
867
1174
|
|
|
868
1175
|
const xHeaders = {};
|
|
@@ -895,6 +1202,19 @@ class Payment {
|
|
|
895
1202
|
if (error) {
|
|
896
1203
|
return Promise.reject(new FDKClientValidationError(error));
|
|
897
1204
|
}
|
|
1205
|
+
|
|
1206
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1207
|
+
const {
|
|
1208
|
+
error: warrning,
|
|
1209
|
+
} = PaymentValidator.addBeneficiaryDetails().validate(
|
|
1210
|
+
{ body },
|
|
1211
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1212
|
+
);
|
|
1213
|
+
if (warrning) {
|
|
1214
|
+
console.log("Parameter Validation warrnings for addBeneficiaryDetails");
|
|
1215
|
+
console.log(warrning);
|
|
1216
|
+
}
|
|
1217
|
+
|
|
898
1218
|
const query_params = {};
|
|
899
1219
|
|
|
900
1220
|
const xHeaders = {};
|
|
@@ -927,6 +1247,21 @@ class Payment {
|
|
|
927
1247
|
if (error) {
|
|
928
1248
|
return Promise.reject(new FDKClientValidationError(error));
|
|
929
1249
|
}
|
|
1250
|
+
|
|
1251
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1252
|
+
const {
|
|
1253
|
+
error: warrning,
|
|
1254
|
+
} = PaymentValidator.addRefundBankAccountUsingOTP().validate(
|
|
1255
|
+
{ body },
|
|
1256
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1257
|
+
);
|
|
1258
|
+
if (warrning) {
|
|
1259
|
+
console.log(
|
|
1260
|
+
"Parameter Validation warrnings for addRefundBankAccountUsingOTP"
|
|
1261
|
+
);
|
|
1262
|
+
console.log(warrning);
|
|
1263
|
+
}
|
|
1264
|
+
|
|
930
1265
|
const query_params = {};
|
|
931
1266
|
|
|
932
1267
|
const xHeaders = {};
|
|
@@ -961,6 +1296,21 @@ class Payment {
|
|
|
961
1296
|
if (error) {
|
|
962
1297
|
return Promise.reject(new FDKClientValidationError(error));
|
|
963
1298
|
}
|
|
1299
|
+
|
|
1300
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1301
|
+
const {
|
|
1302
|
+
error: warrning,
|
|
1303
|
+
} = PaymentValidator.verifyOtpAndAddBeneficiaryForWallet().validate(
|
|
1304
|
+
{ body },
|
|
1305
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1306
|
+
);
|
|
1307
|
+
if (warrning) {
|
|
1308
|
+
console.log(
|
|
1309
|
+
"Parameter Validation warrnings for verifyOtpAndAddBeneficiaryForWallet"
|
|
1310
|
+
);
|
|
1311
|
+
console.log(warrning);
|
|
1312
|
+
}
|
|
1313
|
+
|
|
964
1314
|
const query_params = {};
|
|
965
1315
|
|
|
966
1316
|
const xHeaders = {};
|
|
@@ -993,6 +1343,21 @@ class Payment {
|
|
|
993
1343
|
if (error) {
|
|
994
1344
|
return Promise.reject(new FDKClientValidationError(error));
|
|
995
1345
|
}
|
|
1346
|
+
|
|
1347
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1348
|
+
const {
|
|
1349
|
+
error: warrning,
|
|
1350
|
+
} = PaymentValidator.updateDefaultBeneficiary().validate(
|
|
1351
|
+
{ body },
|
|
1352
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1353
|
+
);
|
|
1354
|
+
if (warrning) {
|
|
1355
|
+
console.log(
|
|
1356
|
+
"Parameter Validation warrnings for updateDefaultBeneficiary"
|
|
1357
|
+
);
|
|
1358
|
+
console.log(warrning);
|
|
1359
|
+
}
|
|
1360
|
+
|
|
996
1361
|
const query_params = {};
|
|
997
1362
|
|
|
998
1363
|
const xHeaders = {};
|
|
@@ -1025,6 +1390,17 @@ class Payment {
|
|
|
1025
1390
|
if (error) {
|
|
1026
1391
|
return Promise.reject(new FDKClientValidationError(error));
|
|
1027
1392
|
}
|
|
1393
|
+
|
|
1394
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1395
|
+
const { error: warrning } = PaymentValidator.getPaymentLink().validate(
|
|
1396
|
+
{ paymentLinkId },
|
|
1397
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1398
|
+
);
|
|
1399
|
+
if (warrning) {
|
|
1400
|
+
console.log("Parameter Validation warrnings for getPaymentLink");
|
|
1401
|
+
console.log(warrning);
|
|
1402
|
+
}
|
|
1403
|
+
|
|
1028
1404
|
const query_params = {};
|
|
1029
1405
|
query_params["payment_link_id"] = paymentLinkId;
|
|
1030
1406
|
|
|
@@ -1058,6 +1434,17 @@ class Payment {
|
|
|
1058
1434
|
if (error) {
|
|
1059
1435
|
return Promise.reject(new FDKClientValidationError(error));
|
|
1060
1436
|
}
|
|
1437
|
+
|
|
1438
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1439
|
+
const { error: warrning } = PaymentValidator.createPaymentLink().validate(
|
|
1440
|
+
{ body },
|
|
1441
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1442
|
+
);
|
|
1443
|
+
if (warrning) {
|
|
1444
|
+
console.log("Parameter Validation warrnings for createPaymentLink");
|
|
1445
|
+
console.log(warrning);
|
|
1446
|
+
}
|
|
1447
|
+
|
|
1061
1448
|
const query_params = {};
|
|
1062
1449
|
|
|
1063
1450
|
const xHeaders = {};
|
|
@@ -1090,6 +1477,17 @@ class Payment {
|
|
|
1090
1477
|
if (error) {
|
|
1091
1478
|
return Promise.reject(new FDKClientValidationError(error));
|
|
1092
1479
|
}
|
|
1480
|
+
|
|
1481
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1482
|
+
const { error: warrning } = PaymentValidator.resendPaymentLink().validate(
|
|
1483
|
+
{ body },
|
|
1484
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1485
|
+
);
|
|
1486
|
+
if (warrning) {
|
|
1487
|
+
console.log("Parameter Validation warrnings for resendPaymentLink");
|
|
1488
|
+
console.log(warrning);
|
|
1489
|
+
}
|
|
1490
|
+
|
|
1093
1491
|
const query_params = {};
|
|
1094
1492
|
|
|
1095
1493
|
const xHeaders = {};
|
|
@@ -1122,6 +1520,17 @@ class Payment {
|
|
|
1122
1520
|
if (error) {
|
|
1123
1521
|
return Promise.reject(new FDKClientValidationError(error));
|
|
1124
1522
|
}
|
|
1523
|
+
|
|
1524
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1525
|
+
const { error: warrning } = PaymentValidator.cancelPaymentLink().validate(
|
|
1526
|
+
{ body },
|
|
1527
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1528
|
+
);
|
|
1529
|
+
if (warrning) {
|
|
1530
|
+
console.log("Parameter Validation warrnings for cancelPaymentLink");
|
|
1531
|
+
console.log(warrning);
|
|
1532
|
+
}
|
|
1533
|
+
|
|
1125
1534
|
const query_params = {};
|
|
1126
1535
|
|
|
1127
1536
|
const xHeaders = {};
|
|
@@ -1156,6 +1565,21 @@ class Payment {
|
|
|
1156
1565
|
if (error) {
|
|
1157
1566
|
return Promise.reject(new FDKClientValidationError(error));
|
|
1158
1567
|
}
|
|
1568
|
+
|
|
1569
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1570
|
+
const {
|
|
1571
|
+
error: warrning,
|
|
1572
|
+
} = PaymentValidator.getPaymentModeRoutesPaymentLink().validate(
|
|
1573
|
+
{ paymentLinkId },
|
|
1574
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1575
|
+
);
|
|
1576
|
+
if (warrning) {
|
|
1577
|
+
console.log(
|
|
1578
|
+
"Parameter Validation warrnings for getPaymentModeRoutesPaymentLink"
|
|
1579
|
+
);
|
|
1580
|
+
console.log(warrning);
|
|
1581
|
+
}
|
|
1582
|
+
|
|
1159
1583
|
const query_params = {};
|
|
1160
1584
|
query_params["payment_link_id"] = paymentLinkId;
|
|
1161
1585
|
|
|
@@ -1189,6 +1613,17 @@ class Payment {
|
|
|
1189
1613
|
if (error) {
|
|
1190
1614
|
return Promise.reject(new FDKClientValidationError(error));
|
|
1191
1615
|
}
|
|
1616
|
+
|
|
1617
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1618
|
+
const { error: warrning } = PaymentValidator.pollingPaymentLink().validate(
|
|
1619
|
+
{ paymentLinkId },
|
|
1620
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1621
|
+
);
|
|
1622
|
+
if (warrning) {
|
|
1623
|
+
console.log("Parameter Validation warrnings for pollingPaymentLink");
|
|
1624
|
+
console.log(warrning);
|
|
1625
|
+
}
|
|
1626
|
+
|
|
1192
1627
|
const query_params = {};
|
|
1193
1628
|
query_params["payment_link_id"] = paymentLinkId;
|
|
1194
1629
|
|
|
@@ -1222,6 +1657,21 @@ class Payment {
|
|
|
1222
1657
|
if (error) {
|
|
1223
1658
|
return Promise.reject(new FDKClientValidationError(error));
|
|
1224
1659
|
}
|
|
1660
|
+
|
|
1661
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1662
|
+
const {
|
|
1663
|
+
error: warrning,
|
|
1664
|
+
} = PaymentValidator.createOrderHandlerPaymentLink().validate(
|
|
1665
|
+
{ body },
|
|
1666
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1667
|
+
);
|
|
1668
|
+
if (warrning) {
|
|
1669
|
+
console.log(
|
|
1670
|
+
"Parameter Validation warrnings for createOrderHandlerPaymentLink"
|
|
1671
|
+
);
|
|
1672
|
+
console.log(warrning);
|
|
1673
|
+
}
|
|
1674
|
+
|
|
1225
1675
|
const query_params = {};
|
|
1226
1676
|
|
|
1227
1677
|
const xHeaders = {};
|
|
@@ -1254,6 +1704,21 @@ class Payment {
|
|
|
1254
1704
|
if (error) {
|
|
1255
1705
|
return Promise.reject(new FDKClientValidationError(error));
|
|
1256
1706
|
}
|
|
1707
|
+
|
|
1708
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1709
|
+
const {
|
|
1710
|
+
error: warrning,
|
|
1711
|
+
} = PaymentValidator.initialisePaymentPaymentLink().validate(
|
|
1712
|
+
{ body },
|
|
1713
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1714
|
+
);
|
|
1715
|
+
if (warrning) {
|
|
1716
|
+
console.log(
|
|
1717
|
+
"Parameter Validation warrnings for initialisePaymentPaymentLink"
|
|
1718
|
+
);
|
|
1719
|
+
console.log(warrning);
|
|
1720
|
+
}
|
|
1721
|
+
|
|
1257
1722
|
const query_params = {};
|
|
1258
1723
|
|
|
1259
1724
|
const xHeaders = {};
|
|
@@ -1288,6 +1753,21 @@ class Payment {
|
|
|
1288
1753
|
if (error) {
|
|
1289
1754
|
return Promise.reject(new FDKClientValidationError(error));
|
|
1290
1755
|
}
|
|
1756
|
+
|
|
1757
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1758
|
+
const {
|
|
1759
|
+
error: warrning,
|
|
1760
|
+
} = PaymentValidator.checkAndUpdatePaymentStatusPaymentLink().validate(
|
|
1761
|
+
{ body },
|
|
1762
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1763
|
+
);
|
|
1764
|
+
if (warrning) {
|
|
1765
|
+
console.log(
|
|
1766
|
+
"Parameter Validation warrnings for checkAndUpdatePaymentStatusPaymentLink"
|
|
1767
|
+
);
|
|
1768
|
+
console.log(warrning);
|
|
1769
|
+
}
|
|
1770
|
+
|
|
1291
1771
|
const query_params = {};
|
|
1292
1772
|
|
|
1293
1773
|
const xHeaders = {};
|
|
@@ -1320,6 +1800,19 @@ class Payment {
|
|
|
1320
1800
|
if (error) {
|
|
1321
1801
|
return Promise.reject(new FDKClientValidationError(error));
|
|
1322
1802
|
}
|
|
1803
|
+
|
|
1804
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1805
|
+
const {
|
|
1806
|
+
error: warrning,
|
|
1807
|
+
} = PaymentValidator.customerCreditSummary().validate(
|
|
1808
|
+
{ aggregator },
|
|
1809
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1810
|
+
);
|
|
1811
|
+
if (warrning) {
|
|
1812
|
+
console.log("Parameter Validation warrnings for customerCreditSummary");
|
|
1813
|
+
console.log(warrning);
|
|
1814
|
+
}
|
|
1815
|
+
|
|
1323
1816
|
const query_params = {};
|
|
1324
1817
|
query_params["aggregator"] = aggregator;
|
|
1325
1818
|
|
|
@@ -1356,6 +1849,19 @@ class Payment {
|
|
|
1356
1849
|
if (error) {
|
|
1357
1850
|
return Promise.reject(new FDKClientValidationError(error));
|
|
1358
1851
|
}
|
|
1852
|
+
|
|
1853
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1854
|
+
const {
|
|
1855
|
+
error: warrning,
|
|
1856
|
+
} = PaymentValidator.redirectToAggregator().validate(
|
|
1857
|
+
{ source, aggregator },
|
|
1858
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1859
|
+
);
|
|
1860
|
+
if (warrning) {
|
|
1861
|
+
console.log("Parameter Validation warrnings for redirectToAggregator");
|
|
1862
|
+
console.log(warrning);
|
|
1863
|
+
}
|
|
1864
|
+
|
|
1359
1865
|
const query_params = {};
|
|
1360
1866
|
query_params["source"] = source;
|
|
1361
1867
|
query_params["aggregator"] = aggregator;
|
|
@@ -1390,6 +1896,17 @@ class Payment {
|
|
|
1390
1896
|
if (error) {
|
|
1391
1897
|
return Promise.reject(new FDKClientValidationError(error));
|
|
1392
1898
|
}
|
|
1899
|
+
|
|
1900
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1901
|
+
const { error: warrning } = PaymentValidator.checkCredit().validate(
|
|
1902
|
+
{ aggregator },
|
|
1903
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1904
|
+
);
|
|
1905
|
+
if (warrning) {
|
|
1906
|
+
console.log("Parameter Validation warrnings for checkCredit");
|
|
1907
|
+
console.log(warrning);
|
|
1908
|
+
}
|
|
1909
|
+
|
|
1393
1910
|
const query_params = {};
|
|
1394
1911
|
query_params["aggregator"] = aggregator;
|
|
1395
1912
|
|
|
@@ -1423,6 +1940,17 @@ class Payment {
|
|
|
1423
1940
|
if (error) {
|
|
1424
1941
|
return Promise.reject(new FDKClientValidationError(error));
|
|
1425
1942
|
}
|
|
1943
|
+
|
|
1944
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1945
|
+
const { error: warrning } = PaymentValidator.customerOnboard().validate(
|
|
1946
|
+
{ body },
|
|
1947
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1948
|
+
);
|
|
1949
|
+
if (warrning) {
|
|
1950
|
+
console.log("Parameter Validation warrnings for customerOnboard");
|
|
1951
|
+
console.log(warrning);
|
|
1952
|
+
}
|
|
1953
|
+
|
|
1426
1954
|
const query_params = {};
|
|
1427
1955
|
|
|
1428
1956
|
const xHeaders = {};
|