@gofynd/fdk-client-javascript 1.1.6 → 1.2.0
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 +12 -0
- package/index.js +0 -3
- package/package.json +1 -1
- package/sdk/application/ApplicationAPIClient.d.ts +15 -1
- package/sdk/application/ApplicationAPIClient.js +8 -1
- package/sdk/application/ApplicationClient.d.ts +37 -6
- package/sdk/application/ApplicationClient.js +31 -0
- package/sdk/application/ApplicationConfig.d.ts +52 -12
- package/sdk/application/ApplicationConfig.js +37 -2
- package/sdk/application/ApplicationModels.d.ts +46 -1
- package/sdk/application/ApplicationModels.js +18 -0
- package/sdk/application/Cart/CartApplicationClient.d.ts +172 -357
- package/sdk/application/Cart/CartApplicationClient.js +620 -483
- package/sdk/application/Cart/CartApplicationModel.d.ts +2054 -96
- package/sdk/application/Cart/CartApplicationModel.js +1224 -93
- package/sdk/application/Cart/CartApplicationValidator.d.ts +508 -30
- package/sdk/application/Cart/CartApplicationValidator.js +270 -15
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +234 -413
- package/sdk/application/Catalog/CatalogApplicationClient.js +777 -630
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +2218 -117
- package/sdk/application/Catalog/CatalogApplicationModel.js +1499 -170
- package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +798 -31
- package/sdk/application/Catalog/CatalogApplicationValidator.js +318 -3
- package/sdk/application/Common/CommonApplicationClient.d.ts +14 -21
- package/sdk/application/Common/CommonApplicationClient.js +50 -33
- package/sdk/application/Common/CommonApplicationModel.d.ts +448 -19
- package/sdk/application/Common/CommonApplicationModel.js +224 -16
- package/sdk/application/Common/CommonApplicationValidator.d.ts +42 -4
- package/sdk/application/Common/CommonApplicationValidator.js +21 -3
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +25 -18
- package/sdk/application/Communication/CommunicationApplicationClient.js +74 -47
- package/sdk/application/Communication/CommunicationApplicationModel.d.ts +190 -14
- package/sdk/application/Communication/CommunicationApplicationModel.js +124 -7
- package/sdk/application/Communication/CommunicationApplicationValidator.d.ts +27 -4
- package/sdk/application/Communication/CommunicationApplicationValidator.js +21 -5
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +113 -112
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +381 -260
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +2453 -110
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +1254 -108
- package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +160 -8
- package/sdk/application/Configuration/ConfigurationApplicationValidator.js +88 -4
- package/sdk/application/Content/ContentApplicationClient.d.ts +120 -138
- package/sdk/application/Content/ContentApplicationClient.js +409 -277
- package/sdk/application/Content/ContentApplicationModel.d.ts +1627 -105
- package/sdk/application/Content/ContentApplicationModel.js +1202 -109
- package/sdk/application/Content/ContentApplicationValidator.d.ts +214 -12
- package/sdk/application/Content/ContentApplicationValidator.js +113 -3
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +20 -29
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +68 -47
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +299 -20
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +209 -16
- package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +55 -5
- package/sdk/application/FileStorage/FileStorageApplicationValidator.js +33 -6
- package/sdk/application/Lead/LeadApplicationClient.d.ts +50 -53
- package/sdk/application/Lead/LeadApplicationClient.js +169 -103
- package/sdk/application/Lead/LeadApplicationModel.d.ts +1405 -54
- package/sdk/application/Lead/LeadApplicationModel.js +619 -73
- package/sdk/application/Lead/LeadApplicationValidator.d.ts +91 -9
- package/sdk/application/Lead/LeadApplicationValidator.js +51 -6
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +34 -33
- package/sdk/application/Logistic/LogisticApplicationClient.js +110 -73
- package/sdk/application/Logistic/LogisticApplicationModel.d.ts +399 -28
- package/sdk/application/Logistic/LogisticApplicationModel.js +293 -24
- package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +48 -6
- package/sdk/application/Logistic/LogisticApplicationValidator.js +34 -6
- package/sdk/application/Order/OrderApplicationClient.d.ts +81 -133
- package/sdk/application/Order/OrderApplicationClient.js +297 -217
- package/sdk/application/Order/OrderApplicationModel.d.ts +1101 -66
- package/sdk/application/Order/OrderApplicationModel.js +776 -57
- package/sdk/application/Order/OrderApplicationValidator.d.ts +249 -14
- package/sdk/application/Order/OrderApplicationValidator.js +114 -5
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +341 -356
- package/sdk/application/Payment/PaymentApplicationClient.js +1077 -703
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +3125 -99
- package/sdk/application/Payment/PaymentApplicationModel.js +1158 -62
- package/sdk/application/Payment/PaymentApplicationValidator.d.ts +494 -41
- package/sdk/application/Payment/PaymentApplicationValidator.js +297 -25
- package/sdk/application/PosCart/PosCartApplicationClient.d.ts +178 -350
- package/sdk/application/PosCart/PosCartApplicationClient.js +636 -491
- package/sdk/application/PosCart/PosCartApplicationModel.d.ts +1823 -89
- package/sdk/application/PosCart/PosCartApplicationModel.js +1117 -85
- package/sdk/application/PosCart/PosCartApplicationValidator.d.ts +480 -29
- package/sdk/application/PosCart/PosCartApplicationValidator.js +262 -15
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +49 -47
- package/sdk/application/Rewards/RewardsApplicationClient.js +160 -102
- package/sdk/application/Rewards/RewardsApplicationModel.d.ts +343 -22
- package/sdk/application/Rewards/RewardsApplicationModel.js +230 -15
- package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +70 -7
- package/sdk/application/Rewards/RewardsApplicationValidator.js +45 -6
- package/sdk/application/Share/ShareApplicationClient.d.ts +44 -50
- package/sdk/application/Share/ShareApplicationClient.js +165 -97
- package/sdk/application/Share/ShareApplicationModel.d.ts +230 -15
- package/sdk/application/Share/ShareApplicationModel.js +154 -16
- package/sdk/application/Share/ShareApplicationValidator.d.ts +86 -8
- package/sdk/application/Share/ShareApplicationValidator.js +48 -4
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +25 -27
- package/sdk/application/Theme/ThemeApplicationClient.js +83 -54
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +621 -48
- package/sdk/application/Theme/ThemeApplicationModel.js +464 -40
- package/sdk/application/Theme/ThemeApplicationValidator.d.ts +49 -5
- package/sdk/application/Theme/ThemeApplicationValidator.js +26 -3
- package/sdk/application/User/UserApplicationClient.d.ts +219 -303
- package/sdk/application/User/UserApplicationClient.js +819 -522
- package/sdk/application/User/UserApplicationModel.d.ts +1390 -101
- package/sdk/application/User/UserApplicationModel.js +983 -44
- package/sdk/application/User/UserApplicationValidator.d.ts +457 -33
- package/sdk/application/User/UserApplicationValidator.js +265 -31
- package/sdk/common/AxiosHelper.js +8 -2
- package/sdk/common/Paginator.d.ts +27 -12
- package/sdk/common/Paginator.js +15 -0
- package/sdk/common/RequestSigner.js +0 -1
- package/sdk/partner/PartnerAPIClient.d.ts +15 -1
- package/sdk/partner/PartnerAPIClient.js +8 -1
- package/sdk/partner/PartnerClient.d.ts +20 -3
- package/sdk/partner/PartnerClient.js +17 -0
- package/sdk/partner/PartnerConfig.d.ts +40 -14
- package/sdk/partner/PartnerConfig.js +31 -6
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +26 -25
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +82 -53
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +202 -17
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +139 -10
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +42 -5
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +26 -4
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +88 -97
- package/sdk/platform/Billing/BillingPlatformClient.js +310 -191
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +1211 -68
- package/sdk/platform/Billing/BillingPlatformModel.js +824 -59
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +153 -12
- package/sdk/platform/Billing/BillingPlatformValidator.js +87 -8
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +392 -634
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +1480 -957
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +827 -57
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +492 -34
- package/sdk/platform/Cart/CartPlatformModel.d.ts +3639 -175
- package/sdk/platform/Cart/CartPlatformModel.js +2368 -212
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +438 -615
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +1449 -984
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +1081 -49
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +482 -23
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +573 -824
- package/sdk/platform/Catalog/CatalogPlatformClient.js +1773 -1264
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +6871 -326
- package/sdk/platform/Catalog/CatalogPlatformModel.js +4215 -349
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +1331 -71
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +611 -30
- package/sdk/platform/Common/CommonPlatformClient.d.ts +14 -21
- package/sdk/platform/Common/CommonPlatformClient.js +48 -33
- package/sdk/platform/Common/CommonPlatformModel.d.ts +448 -19
- package/sdk/platform/Common/CommonPlatformModel.js +224 -16
- package/sdk/platform/Common/CommonPlatformValidator.d.ts +42 -4
- package/sdk/platform/Common/CommonPlatformValidator.js +21 -3
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +457 -279
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +1423 -553
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +581 -42
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +294 -22
- package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +18 -5
- package/sdk/platform/Communication/CommunicationPlatformClient.js +58 -19
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +1630 -102
- package/sdk/platform/Communication/CommunicationPlatformModel.js +1150 -85
- package/sdk/platform/Communication/CommunicationPlatformValidator.d.ts +16 -3
- package/sdk/platform/Communication/CommunicationPlatformValidator.js +11 -3
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +102 -111
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +321 -225
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +830 -43
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +612 -78
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +180 -13
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +98 -10
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +232 -212
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +737 -438
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +293 -22
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +184 -17
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +166 -178
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +519 -310
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +4504 -188
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +2242 -204
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +332 -19
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +153 -10
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +495 -560
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +1777 -987
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +872 -62
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +487 -35
- package/sdk/platform/Content/ContentPlatformModel.d.ts +1661 -108
- package/sdk/platform/Content/ContentPlatformModel.js +1217 -113
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +67 -101
- package/sdk/platform/Discount/DiscountPlatformClient.js +240 -176
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +242 -15
- package/sdk/platform/Discount/DiscountPlatformModel.js +162 -10
- package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +185 -13
- package/sdk/platform/Discount/DiscountPlatformValidator.js +88 -8
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +32 -41
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +106 -74
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +77 -6
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +41 -6
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +39 -54
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +124 -99
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +299 -20
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +207 -16
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +98 -8
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +54 -7
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +85 -91
- package/sdk/platform/Finance/FinancePlatformClient.js +272 -180
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +619 -50
- package/sdk/platform/Finance/FinancePlatformModel.js +458 -30
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +123 -15
- package/sdk/platform/Finance/FinancePlatformValidator.js +95 -16
- package/sdk/platform/Inventory/InventoryPlatformClient.d.ts +99 -97
- package/sdk/platform/Inventory/InventoryPlatformClient.js +288 -199
- package/sdk/platform/Inventory/InventoryPlatformModel.d.ts +1354 -61
- package/sdk/platform/Inventory/InventoryPlatformModel.js +916 -83
- package/sdk/platform/Inventory/InventoryPlatformValidator.d.ts +168 -12
- package/sdk/platform/Inventory/InventoryPlatformValidator.js +82 -6
- package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +86 -106
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +326 -186
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +180 -14
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +94 -9
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +75 -101
- package/sdk/platform/Lead/LeadPlatformClient.js +240 -174
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +1403 -54
- package/sdk/platform/Lead/LeadPlatformModel.js +618 -73
- package/sdk/platform/Lead/LeadPlatformValidator.d.ts +173 -12
- package/sdk/platform/Lead/LeadPlatformValidator.js +85 -8
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +18 -14
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +56 -29
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +26 -4
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +16 -3
- package/sdk/platform/Order/OrderPlatformClient.d.ts +343 -556
- package/sdk/platform/Order/OrderPlatformClient.js +969 -762
- package/sdk/platform/Order/OrderPlatformModel.d.ts +4967 -247
- package/sdk/platform/Order/OrderPlatformModel.js +3249 -259
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +758 -37
- package/sdk/platform/Order/OrderPlatformValidator.js +351 -22
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +28 -36
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +103 -59
- package/sdk/platform/Partner/PartnerPlatformApplicationValidator.d.ts +66 -6
- package/sdk/platform/Partner/PartnerPlatformApplicationValidator.js +32 -4
- package/sdk/platform/Partner/PartnerPlatformClient.d.ts +68 -107
- package/sdk/platform/Partner/PartnerPlatformClient.js +253 -174
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +767 -45
- package/sdk/platform/Partner/PartnerPlatformModel.js +524 -41
- package/sdk/platform/Partner/PartnerPlatformValidator.d.ts +207 -13
- package/sdk/platform/Partner/PartnerPlatformValidator.js +87 -5
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +255 -260
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +860 -504
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +348 -30
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +221 -19
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +73 -73
- package/sdk/platform/Payment/PaymentPlatformClient.js +238 -154
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +2658 -93
- package/sdk/platform/Payment/PaymentPlatformModel.js +1035 -36
- package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +111 -11
- package/sdk/platform/Payment/PaymentPlatformValidator.js +68 -7
- package/sdk/platform/PlatformAPIClient.d.ts +16 -1
- package/sdk/platform/PlatformAPIClient.js +9 -1
- package/sdk/platform/PlatformApplicationClient.d.ts +22 -1798
- package/sdk/platform/PlatformApplicationClient.js +17 -1899
- package/sdk/platform/PlatformClient.d.ts +29 -12579
- package/sdk/platform/PlatformClient.js +26 -15085
- package/sdk/platform/PlatformConfig.d.ts +37 -11
- package/sdk/platform/PlatformConfig.js +32 -6
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +80 -92
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +307 -177
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +149 -12
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +82 -8
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +371 -23
- package/sdk/platform/Rewards/RewardsPlatformModel.js +246 -16
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +120 -89
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +349 -201
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +128 -12
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +85 -11
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +148 -178
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +454 -329
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +1399 -96
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +1022 -71
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +280 -18
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +134 -11
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +38 -47
- package/sdk/platform/Share/SharePlatformApplicationClient.js +137 -73
- package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +87 -7
- package/sdk/platform/Share/SharePlatformApplicationValidator.js +42 -5
- package/sdk/platform/Share/SharePlatformModel.d.ts +250 -16
- package/sdk/platform/Share/SharePlatformModel.js +165 -17
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +149 -183
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +579 -330
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +308 -24
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +162 -10
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +621 -48
- package/sdk/platform/Theme/ThemePlatformModel.js +464 -40
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +119 -151
- package/sdk/platform/User/UserPlatformApplicationClient.js +411 -244
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +235 -18
- package/sdk/platform/User/UserPlatformApplicationValidator.js +126 -12
- package/sdk/platform/User/UserPlatformModel.d.ts +1390 -101
- package/sdk/platform/User/UserPlatformModel.js +983 -44
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +38 -47
- package/sdk/platform/Webhook/WebhookPlatformClient.js +137 -87
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +242 -16
- package/sdk/platform/Webhook/WebhookPlatformModel.js +167 -18
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +83 -7
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +43 -5
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +14 -21
- package/sdk/public/Configuration/ConfigurationPublicClient.js +46 -33
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +473 -19
- package/sdk/public/Configuration/ConfigurationPublicModel.js +224 -16
- package/sdk/public/Configuration/ConfigurationPublicValidator.d.ts +42 -4
- package/sdk/public/Configuration/ConfigurationPublicValidator.js +21 -3
- package/sdk/public/Inventory/InventoryPublicClient.d.ts +48 -48
- package/sdk/public/Inventory/InventoryPublicClient.js +146 -98
- package/sdk/public/Inventory/InventoryPublicModel.d.ts +392 -21
- package/sdk/public/Inventory/InventoryPublicModel.js +267 -27
- package/sdk/public/Inventory/InventoryPublicValidator.d.ts +90 -8
- package/sdk/public/Inventory/InventoryPublicValidator.js +44 -4
- package/sdk/public/PublicClient.d.ts +19 -3
- package/sdk/public/PublicClient.js +16 -0
- package/sdk/public/PublicConfig.d.ts +27 -6
- package/sdk/public/PublicConfig.js +17 -1
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +13 -11
- package/sdk/public/Webhook/WebhookPublicClient.js +42 -27
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +242 -16
- package/sdk/public/Webhook/WebhookPublicModel.js +167 -18
- package/sdk/public/Webhook/WebhookPublicValidator.d.ts +18 -3
- package/sdk/public/Webhook/WebhookPublicValidator.js +14 -4
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
const PlatformAPIClient = require("../PlatformAPIClient");
|
|
2
2
|
const { FDKClientValidationError } = require("../../common/FDKError");
|
|
3
3
|
const Paginator = require("../../common/Paginator");
|
|
4
|
-
const
|
|
5
|
-
const
|
|
4
|
+
const FinancePlatformValidator = require("./FinancePlatformValidator");
|
|
5
|
+
const FinancePlatformModel = require("./FinancePlatformModel");
|
|
6
6
|
const { Logger } = require("./../../common/Logger");
|
|
7
7
|
const Joi = require("joi");
|
|
8
8
|
|
|
@@ -12,14 +12,22 @@ class Finance {
|
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
|
-
* @param {
|
|
16
|
-
* @param {
|
|
17
|
-
* @returns {Promise<CreditlineDataPlatformResponse>}
|
|
15
|
+
* @param {FinancePlatformValidator.CreditlineDataplatformParam} arg - Arg object
|
|
16
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
17
|
+
* @returns {Promise<FinancePlatformModel.CreditlineDataPlatformResponse>}
|
|
18
|
+
* - Success response
|
|
19
|
+
*
|
|
20
|
+
* @name creditlineDataplatform
|
|
18
21
|
* @summary:
|
|
19
|
-
* @description:
|
|
22
|
+
* @description: - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/finance/creditlineDataplatform/).
|
|
20
23
|
*/
|
|
21
|
-
async creditlineDataplatform(
|
|
22
|
-
|
|
24
|
+
async creditlineDataplatform(
|
|
25
|
+
{ body } = {},
|
|
26
|
+
{ headers } = { headers: false }
|
|
27
|
+
) {
|
|
28
|
+
const {
|
|
29
|
+
error,
|
|
30
|
+
} = FinancePlatformValidator.creditlineDataplatform().validate(
|
|
23
31
|
{
|
|
24
32
|
body,
|
|
25
33
|
},
|
|
@@ -32,7 +40,7 @@ class Finance {
|
|
|
32
40
|
// Showing warrnings if extra unknown parameters are found
|
|
33
41
|
const {
|
|
34
42
|
error: warrning,
|
|
35
|
-
} =
|
|
43
|
+
} = FinancePlatformValidator.creditlineDataplatform().validate(
|
|
36
44
|
{
|
|
37
45
|
body,
|
|
38
46
|
},
|
|
@@ -41,9 +49,8 @@ class Finance {
|
|
|
41
49
|
if (warrning) {
|
|
42
50
|
Logger({
|
|
43
51
|
level: "WARN",
|
|
44
|
-
message:
|
|
52
|
+
message: `Parameter Validation warrnings for platform > Finance > creditlineDataplatform \n ${warrning}`,
|
|
45
53
|
});
|
|
46
|
-
Logger({ level: "WARN", message: warrning });
|
|
47
54
|
}
|
|
48
55
|
|
|
49
56
|
const query_params = {};
|
|
@@ -56,36 +63,49 @@ class Finance {
|
|
|
56
63
|
`/service/platform/finance/v1.0/company/${this.config.companyId}/credit-line-data`,
|
|
57
64
|
query_params,
|
|
58
65
|
body,
|
|
59
|
-
xHeaders
|
|
66
|
+
xHeaders,
|
|
67
|
+
{ headers }
|
|
60
68
|
);
|
|
61
69
|
|
|
70
|
+
let responseData = response;
|
|
71
|
+
if (headers) {
|
|
72
|
+
responseData = response[0];
|
|
73
|
+
}
|
|
74
|
+
|
|
62
75
|
const {
|
|
63
76
|
error: res_error,
|
|
64
|
-
} =
|
|
65
|
-
|
|
66
|
-
allowUnknown: false
|
|
67
|
-
|
|
77
|
+
} = FinancePlatformModel.CreditlineDataPlatformResponse().validate(
|
|
78
|
+
responseData,
|
|
79
|
+
{ abortEarly: false, allowUnknown: false }
|
|
80
|
+
);
|
|
68
81
|
|
|
69
82
|
if (res_error) {
|
|
70
83
|
Logger({
|
|
71
84
|
level: "WARN",
|
|
72
|
-
message:
|
|
85
|
+
message: `Response Validation Warnnings for platform > Finance > creditlineDataplatform \n ${res_error}`,
|
|
73
86
|
});
|
|
74
|
-
Logger({ level: "WARN", message: res_error });
|
|
75
87
|
}
|
|
76
88
|
|
|
77
89
|
return response;
|
|
78
90
|
}
|
|
79
91
|
|
|
80
92
|
/**
|
|
81
|
-
* @param {
|
|
82
|
-
* @param {
|
|
83
|
-
* @returns {Promise<DownloadCreditDebitNoteResponse>}
|
|
93
|
+
* @param {FinancePlatformValidator.DownloadCreditDebitNoteParam} arg - Arg object
|
|
94
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
95
|
+
* @returns {Promise<FinancePlatformModel.DownloadCreditDebitNoteResponse>}
|
|
96
|
+
* - Success response
|
|
97
|
+
*
|
|
98
|
+
* @name downloadCreditDebitNote
|
|
84
99
|
* @summary:
|
|
85
|
-
* @description:
|
|
100
|
+
* @description: - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/finance/downloadCreditDebitNote/).
|
|
86
101
|
*/
|
|
87
|
-
async downloadCreditDebitNote(
|
|
88
|
-
|
|
102
|
+
async downloadCreditDebitNote(
|
|
103
|
+
{ body } = {},
|
|
104
|
+
{ headers } = { headers: false }
|
|
105
|
+
) {
|
|
106
|
+
const {
|
|
107
|
+
error,
|
|
108
|
+
} = FinancePlatformValidator.downloadCreditDebitNote().validate(
|
|
89
109
|
{
|
|
90
110
|
body,
|
|
91
111
|
},
|
|
@@ -98,7 +118,7 @@ class Finance {
|
|
|
98
118
|
// Showing warrnings if extra unknown parameters are found
|
|
99
119
|
const {
|
|
100
120
|
error: warrning,
|
|
101
|
-
} =
|
|
121
|
+
} = FinancePlatformValidator.downloadCreditDebitNote().validate(
|
|
102
122
|
{
|
|
103
123
|
body,
|
|
104
124
|
},
|
|
@@ -107,9 +127,8 @@ class Finance {
|
|
|
107
127
|
if (warrning) {
|
|
108
128
|
Logger({
|
|
109
129
|
level: "WARN",
|
|
110
|
-
message:
|
|
130
|
+
message: `Parameter Validation warrnings for platform > Finance > downloadCreditDebitNote \n ${warrning}`,
|
|
111
131
|
});
|
|
112
|
-
Logger({ level: "WARN", message: warrning });
|
|
113
132
|
}
|
|
114
133
|
|
|
115
134
|
const query_params = {};
|
|
@@ -122,36 +141,42 @@ class Finance {
|
|
|
122
141
|
`/service/platform/finance/v1.0/company/${this.config.companyId}/download-credit-debit-note`,
|
|
123
142
|
query_params,
|
|
124
143
|
body,
|
|
125
|
-
xHeaders
|
|
144
|
+
xHeaders,
|
|
145
|
+
{ headers }
|
|
126
146
|
);
|
|
127
147
|
|
|
148
|
+
let responseData = response;
|
|
149
|
+
if (headers) {
|
|
150
|
+
responseData = response[0];
|
|
151
|
+
}
|
|
152
|
+
|
|
128
153
|
const {
|
|
129
154
|
error: res_error,
|
|
130
|
-
} =
|
|
131
|
-
|
|
132
|
-
allowUnknown: false
|
|
133
|
-
|
|
155
|
+
} = FinancePlatformModel.DownloadCreditDebitNoteResponse().validate(
|
|
156
|
+
responseData,
|
|
157
|
+
{ abortEarly: false, allowUnknown: false }
|
|
158
|
+
);
|
|
134
159
|
|
|
135
160
|
if (res_error) {
|
|
136
161
|
Logger({
|
|
137
162
|
level: "WARN",
|
|
138
|
-
message:
|
|
163
|
+
message: `Response Validation Warnnings for platform > Finance > downloadCreditDebitNote \n ${res_error}`,
|
|
139
164
|
});
|
|
140
|
-
Logger({ level: "WARN", message: res_error });
|
|
141
165
|
}
|
|
142
166
|
|
|
143
167
|
return response;
|
|
144
168
|
}
|
|
145
169
|
|
|
146
170
|
/**
|
|
147
|
-
* @param {
|
|
148
|
-
* @param {
|
|
149
|
-
* @returns {Promise<DownloadReportList>} - Success response
|
|
171
|
+
* @param {FinancePlatformValidator.DownloadReportParam} arg - Arg object
|
|
172
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
173
|
+
* @returns {Promise<FinancePlatformModel.DownloadReportList>} - Success response
|
|
174
|
+
* @name downloadReport
|
|
150
175
|
* @summary:
|
|
151
|
-
* @description:
|
|
176
|
+
* @description: - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/finance/downloadReport/).
|
|
152
177
|
*/
|
|
153
|
-
async downloadReport({ body } = {}) {
|
|
154
|
-
const { error } =
|
|
178
|
+
async downloadReport({ body } = {}, { headers } = { headers: false }) {
|
|
179
|
+
const { error } = FinancePlatformValidator.downloadReport().validate(
|
|
155
180
|
{
|
|
156
181
|
body,
|
|
157
182
|
},
|
|
@@ -162,7 +187,9 @@ class Finance {
|
|
|
162
187
|
}
|
|
163
188
|
|
|
164
189
|
// Showing warrnings if extra unknown parameters are found
|
|
165
|
-
const {
|
|
190
|
+
const {
|
|
191
|
+
error: warrning,
|
|
192
|
+
} = FinancePlatformValidator.downloadReport().validate(
|
|
166
193
|
{
|
|
167
194
|
body,
|
|
168
195
|
},
|
|
@@ -171,9 +198,8 @@ class Finance {
|
|
|
171
198
|
if (warrning) {
|
|
172
199
|
Logger({
|
|
173
200
|
level: "WARN",
|
|
174
|
-
message:
|
|
201
|
+
message: `Parameter Validation warrnings for platform > Finance > downloadReport \n ${warrning}`,
|
|
175
202
|
});
|
|
176
|
-
Logger({ level: "WARN", message: warrning });
|
|
177
203
|
}
|
|
178
204
|
|
|
179
205
|
const query_params = {};
|
|
@@ -186,12 +212,18 @@ class Finance {
|
|
|
186
212
|
`/service/platform/finance/v1.0/company/${this.config.companyId}/download-report`,
|
|
187
213
|
query_params,
|
|
188
214
|
body,
|
|
189
|
-
xHeaders
|
|
215
|
+
xHeaders,
|
|
216
|
+
{ headers }
|
|
190
217
|
);
|
|
191
218
|
|
|
219
|
+
let responseData = response;
|
|
220
|
+
if (headers) {
|
|
221
|
+
responseData = response[0];
|
|
222
|
+
}
|
|
223
|
+
|
|
192
224
|
const {
|
|
193
225
|
error: res_error,
|
|
194
|
-
} =
|
|
226
|
+
} = FinancePlatformModel.DownloadReportList().validate(responseData, {
|
|
195
227
|
abortEarly: false,
|
|
196
228
|
allowUnknown: false,
|
|
197
229
|
});
|
|
@@ -199,23 +231,23 @@ class Finance {
|
|
|
199
231
|
if (res_error) {
|
|
200
232
|
Logger({
|
|
201
233
|
level: "WARN",
|
|
202
|
-
message:
|
|
234
|
+
message: `Response Validation Warnnings for platform > Finance > downloadReport \n ${res_error}`,
|
|
203
235
|
});
|
|
204
|
-
Logger({ level: "WARN", message: res_error });
|
|
205
236
|
}
|
|
206
237
|
|
|
207
238
|
return response;
|
|
208
239
|
}
|
|
209
240
|
|
|
210
241
|
/**
|
|
211
|
-
* @param {
|
|
212
|
-
* @param {
|
|
213
|
-
* @returns {Promise<GenerateReportJson>} - Success response
|
|
242
|
+
* @param {FinancePlatformValidator.GenerateReportParam} arg - Arg object
|
|
243
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
244
|
+
* @returns {Promise<FinancePlatformModel.GenerateReportJson>} - Success response
|
|
245
|
+
* @name generateReport
|
|
214
246
|
* @summary:
|
|
215
|
-
* @description:
|
|
247
|
+
* @description: - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/finance/generateReport/).
|
|
216
248
|
*/
|
|
217
|
-
async generateReport({ body } = {}) {
|
|
218
|
-
const { error } =
|
|
249
|
+
async generateReport({ body } = {}, { headers } = { headers: false }) {
|
|
250
|
+
const { error } = FinancePlatformValidator.generateReport().validate(
|
|
219
251
|
{
|
|
220
252
|
body,
|
|
221
253
|
},
|
|
@@ -226,7 +258,9 @@ class Finance {
|
|
|
226
258
|
}
|
|
227
259
|
|
|
228
260
|
// Showing warrnings if extra unknown parameters are found
|
|
229
|
-
const {
|
|
261
|
+
const {
|
|
262
|
+
error: warrning,
|
|
263
|
+
} = FinancePlatformValidator.generateReport().validate(
|
|
230
264
|
{
|
|
231
265
|
body,
|
|
232
266
|
},
|
|
@@ -235,9 +269,8 @@ class Finance {
|
|
|
235
269
|
if (warrning) {
|
|
236
270
|
Logger({
|
|
237
271
|
level: "WARN",
|
|
238
|
-
message:
|
|
272
|
+
message: `Parameter Validation warrnings for platform > Finance > generateReport \n ${warrning}`,
|
|
239
273
|
});
|
|
240
|
-
Logger({ level: "WARN", message: warrning });
|
|
241
274
|
}
|
|
242
275
|
|
|
243
276
|
const query_params = {};
|
|
@@ -250,12 +283,18 @@ class Finance {
|
|
|
250
283
|
`/service/platform/finance/v1.0/company/${this.config.companyId}/generate-report`,
|
|
251
284
|
query_params,
|
|
252
285
|
body,
|
|
253
|
-
xHeaders
|
|
286
|
+
xHeaders,
|
|
287
|
+
{ headers }
|
|
254
288
|
);
|
|
255
289
|
|
|
290
|
+
let responseData = response;
|
|
291
|
+
if (headers) {
|
|
292
|
+
responseData = response[0];
|
|
293
|
+
}
|
|
294
|
+
|
|
256
295
|
const {
|
|
257
296
|
error: res_error,
|
|
258
|
-
} =
|
|
297
|
+
} = FinancePlatformModel.GenerateReportJson().validate(responseData, {
|
|
259
298
|
abortEarly: false,
|
|
260
299
|
allowUnknown: false,
|
|
261
300
|
});
|
|
@@ -263,23 +302,23 @@ class Finance {
|
|
|
263
302
|
if (res_error) {
|
|
264
303
|
Logger({
|
|
265
304
|
level: "WARN",
|
|
266
|
-
message:
|
|
305
|
+
message: `Response Validation Warnnings for platform > Finance > generateReport \n ${res_error}`,
|
|
267
306
|
});
|
|
268
|
-
Logger({ level: "WARN", message: res_error });
|
|
269
307
|
}
|
|
270
308
|
|
|
271
309
|
return response;
|
|
272
310
|
}
|
|
273
311
|
|
|
274
312
|
/**
|
|
275
|
-
* @param {
|
|
276
|
-
* @param {
|
|
277
|
-
* @returns {Promise<GetAffiliateResponse>} - Success response
|
|
313
|
+
* @param {FinancePlatformValidator.GetAffiliateParam} arg - Arg object
|
|
314
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
315
|
+
* @returns {Promise<FinancePlatformModel.GetAffiliateResponse>} - Success response
|
|
316
|
+
* @name getAffiliate
|
|
278
317
|
* @summary:
|
|
279
|
-
* @description:
|
|
318
|
+
* @description: - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/finance/getAffiliate/).
|
|
280
319
|
*/
|
|
281
|
-
async getAffiliate({ body } = {}) {
|
|
282
|
-
const { error } =
|
|
320
|
+
async getAffiliate({ body } = {}, { headers } = { headers: false }) {
|
|
321
|
+
const { error } = FinancePlatformValidator.getAffiliate().validate(
|
|
283
322
|
{
|
|
284
323
|
body,
|
|
285
324
|
},
|
|
@@ -290,7 +329,9 @@ class Finance {
|
|
|
290
329
|
}
|
|
291
330
|
|
|
292
331
|
// Showing warrnings if extra unknown parameters are found
|
|
293
|
-
const {
|
|
332
|
+
const {
|
|
333
|
+
error: warrning,
|
|
334
|
+
} = FinancePlatformValidator.getAffiliate().validate(
|
|
294
335
|
{
|
|
295
336
|
body,
|
|
296
337
|
},
|
|
@@ -299,9 +340,8 @@ class Finance {
|
|
|
299
340
|
if (warrning) {
|
|
300
341
|
Logger({
|
|
301
342
|
level: "WARN",
|
|
302
|
-
message:
|
|
343
|
+
message: `Parameter Validation warrnings for platform > Finance > getAffiliate \n ${warrning}`,
|
|
303
344
|
});
|
|
304
|
-
Logger({ level: "WARN", message: warrning });
|
|
305
345
|
}
|
|
306
346
|
|
|
307
347
|
const query_params = {};
|
|
@@ -314,12 +354,18 @@ class Finance {
|
|
|
314
354
|
`/service/platform/finance/v1.0/company/${this.config.companyId}/get-affiliate-list`,
|
|
315
355
|
query_params,
|
|
316
356
|
body,
|
|
317
|
-
xHeaders
|
|
357
|
+
xHeaders,
|
|
358
|
+
{ headers }
|
|
318
359
|
);
|
|
319
360
|
|
|
361
|
+
let responseData = response;
|
|
362
|
+
if (headers) {
|
|
363
|
+
responseData = response[0];
|
|
364
|
+
}
|
|
365
|
+
|
|
320
366
|
const {
|
|
321
367
|
error: res_error,
|
|
322
|
-
} =
|
|
368
|
+
} = FinancePlatformModel.GetAffiliateResponse().validate(responseData, {
|
|
323
369
|
abortEarly: false,
|
|
324
370
|
allowUnknown: false,
|
|
325
371
|
});
|
|
@@ -327,23 +373,23 @@ class Finance {
|
|
|
327
373
|
if (res_error) {
|
|
328
374
|
Logger({
|
|
329
375
|
level: "WARN",
|
|
330
|
-
message:
|
|
376
|
+
message: `Response Validation Warnnings for platform > Finance > getAffiliate \n ${res_error}`,
|
|
331
377
|
});
|
|
332
|
-
Logger({ level: "WARN", message: res_error });
|
|
333
378
|
}
|
|
334
379
|
|
|
335
380
|
return response;
|
|
336
381
|
}
|
|
337
382
|
|
|
338
383
|
/**
|
|
339
|
-
* @param {
|
|
340
|
-
* @param {
|
|
341
|
-
* @returns {Promise<GetEngineResponse>} - Success response
|
|
384
|
+
* @param {FinancePlatformValidator.GetDataParam} arg - Arg object
|
|
385
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
386
|
+
* @returns {Promise<FinancePlatformModel.GetEngineResponse>} - Success response
|
|
387
|
+
* @name getData
|
|
342
388
|
* @summary:
|
|
343
|
-
* @description:
|
|
389
|
+
* @description: - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/finance/getData/).
|
|
344
390
|
*/
|
|
345
|
-
async getData({ body } = {}) {
|
|
346
|
-
const { error } =
|
|
391
|
+
async getData({ body } = {}, { headers } = { headers: false }) {
|
|
392
|
+
const { error } = FinancePlatformValidator.getData().validate(
|
|
347
393
|
{
|
|
348
394
|
body,
|
|
349
395
|
},
|
|
@@ -354,7 +400,7 @@ class Finance {
|
|
|
354
400
|
}
|
|
355
401
|
|
|
356
402
|
// Showing warrnings if extra unknown parameters are found
|
|
357
|
-
const { error: warrning } =
|
|
403
|
+
const { error: warrning } = FinancePlatformValidator.getData().validate(
|
|
358
404
|
{
|
|
359
405
|
body,
|
|
360
406
|
},
|
|
@@ -363,9 +409,8 @@ class Finance {
|
|
|
363
409
|
if (warrning) {
|
|
364
410
|
Logger({
|
|
365
411
|
level: "WARN",
|
|
366
|
-
message:
|
|
412
|
+
message: `Parameter Validation warrnings for platform > Finance > getData \n ${warrning}`,
|
|
367
413
|
});
|
|
368
|
-
Logger({ level: "WARN", message: warrning });
|
|
369
414
|
}
|
|
370
415
|
|
|
371
416
|
const query_params = {};
|
|
@@ -378,12 +423,18 @@ class Finance {
|
|
|
378
423
|
`/service/platform/finance/v1.0/company/${this.config.companyId}/get-data`,
|
|
379
424
|
query_params,
|
|
380
425
|
body,
|
|
381
|
-
xHeaders
|
|
426
|
+
xHeaders,
|
|
427
|
+
{ headers }
|
|
382
428
|
);
|
|
383
429
|
|
|
430
|
+
let responseData = response;
|
|
431
|
+
if (headers) {
|
|
432
|
+
responseData = response[0];
|
|
433
|
+
}
|
|
434
|
+
|
|
384
435
|
const {
|
|
385
436
|
error: res_error,
|
|
386
|
-
} =
|
|
437
|
+
} = FinancePlatformModel.GetEngineResponse().validate(responseData, {
|
|
387
438
|
abortEarly: false,
|
|
388
439
|
allowUnknown: false,
|
|
389
440
|
});
|
|
@@ -391,23 +442,23 @@ class Finance {
|
|
|
391
442
|
if (res_error) {
|
|
392
443
|
Logger({
|
|
393
444
|
level: "WARN",
|
|
394
|
-
message:
|
|
445
|
+
message: `Response Validation Warnnings for platform > Finance > getData \n ${res_error}`,
|
|
395
446
|
});
|
|
396
|
-
Logger({ level: "WARN", message: res_error });
|
|
397
447
|
}
|
|
398
448
|
|
|
399
449
|
return response;
|
|
400
450
|
}
|
|
401
451
|
|
|
402
452
|
/**
|
|
403
|
-
* @param {
|
|
404
|
-
* @param {
|
|
405
|
-
* @returns {Promise<GetReasonResponse>} - Success response
|
|
453
|
+
* @param {FinancePlatformValidator.GetReasonParam} arg - Arg object
|
|
454
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
455
|
+
* @returns {Promise<FinancePlatformModel.GetReasonResponse>} - Success response
|
|
456
|
+
* @name getReason
|
|
406
457
|
* @summary:
|
|
407
|
-
* @description:
|
|
458
|
+
* @description: - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/finance/getReason/).
|
|
408
459
|
*/
|
|
409
|
-
async getReason({ body } = {}) {
|
|
410
|
-
const { error } =
|
|
460
|
+
async getReason({ body } = {}, { headers } = { headers: false }) {
|
|
461
|
+
const { error } = FinancePlatformValidator.getReason().validate(
|
|
411
462
|
{
|
|
412
463
|
body,
|
|
413
464
|
},
|
|
@@ -418,7 +469,7 @@ class Finance {
|
|
|
418
469
|
}
|
|
419
470
|
|
|
420
471
|
// Showing warrnings if extra unknown parameters are found
|
|
421
|
-
const { error: warrning } =
|
|
472
|
+
const { error: warrning } = FinancePlatformValidator.getReason().validate(
|
|
422
473
|
{
|
|
423
474
|
body,
|
|
424
475
|
},
|
|
@@ -427,9 +478,8 @@ class Finance {
|
|
|
427
478
|
if (warrning) {
|
|
428
479
|
Logger({
|
|
429
480
|
level: "WARN",
|
|
430
|
-
message:
|
|
481
|
+
message: `Parameter Validation warrnings for platform > Finance > getReason \n ${warrning}`,
|
|
431
482
|
});
|
|
432
|
-
Logger({ level: "WARN", message: warrning });
|
|
433
483
|
}
|
|
434
484
|
|
|
435
485
|
const query_params = {};
|
|
@@ -442,12 +492,18 @@ class Finance {
|
|
|
442
492
|
`/service/platform/finance/v1.0/company/${this.config.companyId}/get-reason`,
|
|
443
493
|
query_params,
|
|
444
494
|
body,
|
|
445
|
-
xHeaders
|
|
495
|
+
xHeaders,
|
|
496
|
+
{ headers }
|
|
446
497
|
);
|
|
447
498
|
|
|
499
|
+
let responseData = response;
|
|
500
|
+
if (headers) {
|
|
501
|
+
responseData = response[0];
|
|
502
|
+
}
|
|
503
|
+
|
|
448
504
|
const {
|
|
449
505
|
error: res_error,
|
|
450
|
-
} =
|
|
506
|
+
} = FinancePlatformModel.GetReasonResponse().validate(responseData, {
|
|
451
507
|
abortEarly: false,
|
|
452
508
|
allowUnknown: false,
|
|
453
509
|
});
|
|
@@ -455,23 +511,23 @@ class Finance {
|
|
|
455
511
|
if (res_error) {
|
|
456
512
|
Logger({
|
|
457
513
|
level: "WARN",
|
|
458
|
-
message:
|
|
514
|
+
message: `Response Validation Warnnings for platform > Finance > getReason \n ${res_error}`,
|
|
459
515
|
});
|
|
460
|
-
Logger({ level: "WARN", message: res_error });
|
|
461
516
|
}
|
|
462
517
|
|
|
463
518
|
return response;
|
|
464
519
|
}
|
|
465
520
|
|
|
466
521
|
/**
|
|
467
|
-
* @param {
|
|
468
|
-
* @param {
|
|
469
|
-
* @returns {Promise<GetEngineResponse>} - Success response
|
|
522
|
+
* @param {FinancePlatformValidator.GetReportListParam} arg - Arg object
|
|
523
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
524
|
+
* @returns {Promise<FinancePlatformModel.GetEngineResponse>} - Success response
|
|
525
|
+
* @name getReportList
|
|
470
526
|
* @summary:
|
|
471
|
-
* @description:
|
|
527
|
+
* @description: - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/finance/getReportList/).
|
|
472
528
|
*/
|
|
473
|
-
async getReportList({ body } = {}) {
|
|
474
|
-
const { error } =
|
|
529
|
+
async getReportList({ body } = {}, { headers } = { headers: false }) {
|
|
530
|
+
const { error } = FinancePlatformValidator.getReportList().validate(
|
|
475
531
|
{
|
|
476
532
|
body,
|
|
477
533
|
},
|
|
@@ -482,7 +538,9 @@ class Finance {
|
|
|
482
538
|
}
|
|
483
539
|
|
|
484
540
|
// Showing warrnings if extra unknown parameters are found
|
|
485
|
-
const {
|
|
541
|
+
const {
|
|
542
|
+
error: warrning,
|
|
543
|
+
} = FinancePlatformValidator.getReportList().validate(
|
|
486
544
|
{
|
|
487
545
|
body,
|
|
488
546
|
},
|
|
@@ -491,9 +549,8 @@ class Finance {
|
|
|
491
549
|
if (warrning) {
|
|
492
550
|
Logger({
|
|
493
551
|
level: "WARN",
|
|
494
|
-
message:
|
|
552
|
+
message: `Parameter Validation warrnings for platform > Finance > getReportList \n ${warrning}`,
|
|
495
553
|
});
|
|
496
|
-
Logger({ level: "WARN", message: warrning });
|
|
497
554
|
}
|
|
498
555
|
|
|
499
556
|
const query_params = {};
|
|
@@ -506,12 +563,18 @@ class Finance {
|
|
|
506
563
|
`/service/platform/finance/v1.0/company/${this.config.companyId}/get-report-list`,
|
|
507
564
|
query_params,
|
|
508
565
|
body,
|
|
509
|
-
xHeaders
|
|
566
|
+
xHeaders,
|
|
567
|
+
{ headers }
|
|
510
568
|
);
|
|
511
569
|
|
|
570
|
+
let responseData = response;
|
|
571
|
+
if (headers) {
|
|
572
|
+
responseData = response[0];
|
|
573
|
+
}
|
|
574
|
+
|
|
512
575
|
const {
|
|
513
576
|
error: res_error,
|
|
514
|
-
} =
|
|
577
|
+
} = FinancePlatformModel.GetEngineResponse().validate(responseData, {
|
|
515
578
|
abortEarly: false,
|
|
516
579
|
allowUnknown: false,
|
|
517
580
|
});
|
|
@@ -519,23 +582,23 @@ class Finance {
|
|
|
519
582
|
if (res_error) {
|
|
520
583
|
Logger({
|
|
521
584
|
level: "WARN",
|
|
522
|
-
message:
|
|
585
|
+
message: `Response Validation Warnnings for platform > Finance > getReportList \n ${res_error}`,
|
|
523
586
|
});
|
|
524
|
-
Logger({ level: "WARN", message: res_error });
|
|
525
587
|
}
|
|
526
588
|
|
|
527
589
|
return response;
|
|
528
590
|
}
|
|
529
591
|
|
|
530
592
|
/**
|
|
531
|
-
* @param {
|
|
532
|
-
* @param {
|
|
533
|
-
* @returns {Promise<InvoiceListingResponse>} - Success response
|
|
593
|
+
* @param {FinancePlatformValidator.InvoiceListingParam} arg - Arg object
|
|
594
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
595
|
+
* @returns {Promise<FinancePlatformModel.InvoiceListingResponse>} - Success response
|
|
596
|
+
* @name invoiceListing
|
|
534
597
|
* @summary:
|
|
535
|
-
* @description:
|
|
598
|
+
* @description: - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/finance/invoiceListing/).
|
|
536
599
|
*/
|
|
537
|
-
async invoiceListing({ body } = {}) {
|
|
538
|
-
const { error } =
|
|
600
|
+
async invoiceListing({ body } = {}, { headers } = { headers: false }) {
|
|
601
|
+
const { error } = FinancePlatformValidator.invoiceListing().validate(
|
|
539
602
|
{
|
|
540
603
|
body,
|
|
541
604
|
},
|
|
@@ -546,7 +609,9 @@ class Finance {
|
|
|
546
609
|
}
|
|
547
610
|
|
|
548
611
|
// Showing warrnings if extra unknown parameters are found
|
|
549
|
-
const {
|
|
612
|
+
const {
|
|
613
|
+
error: warrning,
|
|
614
|
+
} = FinancePlatformValidator.invoiceListing().validate(
|
|
550
615
|
{
|
|
551
616
|
body,
|
|
552
617
|
},
|
|
@@ -555,9 +620,8 @@ class Finance {
|
|
|
555
620
|
if (warrning) {
|
|
556
621
|
Logger({
|
|
557
622
|
level: "WARN",
|
|
558
|
-
message:
|
|
623
|
+
message: `Parameter Validation warrnings for platform > Finance > invoiceListing \n ${warrning}`,
|
|
559
624
|
});
|
|
560
|
-
Logger({ level: "WARN", message: warrning });
|
|
561
625
|
}
|
|
562
626
|
|
|
563
627
|
const query_params = {};
|
|
@@ -570,12 +634,18 @@ class Finance {
|
|
|
570
634
|
`/service/platform/finance/v1.0/company/${this.config.companyId}/invoice/listing`,
|
|
571
635
|
query_params,
|
|
572
636
|
body,
|
|
573
|
-
xHeaders
|
|
637
|
+
xHeaders,
|
|
638
|
+
{ headers }
|
|
574
639
|
);
|
|
575
640
|
|
|
641
|
+
let responseData = response;
|
|
642
|
+
if (headers) {
|
|
643
|
+
responseData = response[0];
|
|
644
|
+
}
|
|
645
|
+
|
|
576
646
|
const {
|
|
577
647
|
error: res_error,
|
|
578
|
-
} =
|
|
648
|
+
} = FinancePlatformModel.InvoiceListingResponse().validate(responseData, {
|
|
579
649
|
abortEarly: false,
|
|
580
650
|
allowUnknown: false,
|
|
581
651
|
});
|
|
@@ -583,23 +653,23 @@ class Finance {
|
|
|
583
653
|
if (res_error) {
|
|
584
654
|
Logger({
|
|
585
655
|
level: "WARN",
|
|
586
|
-
message:
|
|
656
|
+
message: `Response Validation Warnnings for platform > Finance > invoiceListing \n ${res_error}`,
|
|
587
657
|
});
|
|
588
|
-
Logger({ level: "WARN", message: res_error });
|
|
589
658
|
}
|
|
590
659
|
|
|
591
660
|
return response;
|
|
592
661
|
}
|
|
593
662
|
|
|
594
663
|
/**
|
|
595
|
-
* @param {
|
|
596
|
-
* @param {
|
|
597
|
-
* @returns {Promise<InvoicePdfResponse>} - Success response
|
|
664
|
+
* @param {FinancePlatformValidator.InvoicePDFParam} arg - Arg object
|
|
665
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
666
|
+
* @returns {Promise<FinancePlatformModel.InvoicePdfResponse>} - Success response
|
|
667
|
+
* @name invoicePDF
|
|
598
668
|
* @summary:
|
|
599
|
-
* @description:
|
|
669
|
+
* @description: - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/finance/invoicePDF/).
|
|
600
670
|
*/
|
|
601
|
-
async invoicePDF({ body } = {}) {
|
|
602
|
-
const { error } =
|
|
671
|
+
async invoicePDF({ body } = {}, { headers } = { headers: false }) {
|
|
672
|
+
const { error } = FinancePlatformValidator.invoicePDF().validate(
|
|
603
673
|
{
|
|
604
674
|
body,
|
|
605
675
|
},
|
|
@@ -610,7 +680,7 @@ class Finance {
|
|
|
610
680
|
}
|
|
611
681
|
|
|
612
682
|
// Showing warrnings if extra unknown parameters are found
|
|
613
|
-
const { error: warrning } =
|
|
683
|
+
const { error: warrning } = FinancePlatformValidator.invoicePDF().validate(
|
|
614
684
|
{
|
|
615
685
|
body,
|
|
616
686
|
},
|
|
@@ -619,9 +689,8 @@ class Finance {
|
|
|
619
689
|
if (warrning) {
|
|
620
690
|
Logger({
|
|
621
691
|
level: "WARN",
|
|
622
|
-
message:
|
|
692
|
+
message: `Parameter Validation warrnings for platform > Finance > invoicePDF \n ${warrning}`,
|
|
623
693
|
});
|
|
624
|
-
Logger({ level: "WARN", message: warrning });
|
|
625
694
|
}
|
|
626
695
|
|
|
627
696
|
const query_params = {};
|
|
@@ -634,12 +703,18 @@ class Finance {
|
|
|
634
703
|
`/service/platform/finance/v1.0/company/${this.config.companyId}/invoice/pdf-view`,
|
|
635
704
|
query_params,
|
|
636
705
|
body,
|
|
637
|
-
xHeaders
|
|
706
|
+
xHeaders,
|
|
707
|
+
{ headers }
|
|
638
708
|
);
|
|
639
709
|
|
|
710
|
+
let responseData = response;
|
|
711
|
+
if (headers) {
|
|
712
|
+
responseData = response[0];
|
|
713
|
+
}
|
|
714
|
+
|
|
640
715
|
const {
|
|
641
716
|
error: res_error,
|
|
642
|
-
} =
|
|
717
|
+
} = FinancePlatformModel.InvoicePdfResponse().validate(responseData, {
|
|
643
718
|
abortEarly: false,
|
|
644
719
|
allowUnknown: false,
|
|
645
720
|
});
|
|
@@ -647,23 +722,23 @@ class Finance {
|
|
|
647
722
|
if (res_error) {
|
|
648
723
|
Logger({
|
|
649
724
|
level: "WARN",
|
|
650
|
-
message:
|
|
725
|
+
message: `Response Validation Warnnings for platform > Finance > invoicePDF \n ${res_error}`,
|
|
651
726
|
});
|
|
652
|
-
Logger({ level: "WARN", message: res_error });
|
|
653
727
|
}
|
|
654
728
|
|
|
655
729
|
return response;
|
|
656
730
|
}
|
|
657
731
|
|
|
658
732
|
/**
|
|
659
|
-
* @param {
|
|
660
|
-
* @param {
|
|
661
|
-
* @returns {Promise<InvoiceTypeResponse>} - Success response
|
|
733
|
+
* @param {FinancePlatformValidator.InvoiceTypeParam} arg - Arg object
|
|
734
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
735
|
+
* @returns {Promise<FinancePlatformModel.InvoiceTypeResponse>} - Success response
|
|
736
|
+
* @name invoiceType
|
|
662
737
|
* @summary:
|
|
663
|
-
* @description:
|
|
738
|
+
* @description: - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/finance/invoiceType/).
|
|
664
739
|
*/
|
|
665
|
-
async invoiceType({ body } = {}) {
|
|
666
|
-
const { error } =
|
|
740
|
+
async invoiceType({ body } = {}, { headers } = { headers: false }) {
|
|
741
|
+
const { error } = FinancePlatformValidator.invoiceType().validate(
|
|
667
742
|
{
|
|
668
743
|
body,
|
|
669
744
|
},
|
|
@@ -674,7 +749,7 @@ class Finance {
|
|
|
674
749
|
}
|
|
675
750
|
|
|
676
751
|
// Showing warrnings if extra unknown parameters are found
|
|
677
|
-
const { error: warrning } =
|
|
752
|
+
const { error: warrning } = FinancePlatformValidator.invoiceType().validate(
|
|
678
753
|
{
|
|
679
754
|
body,
|
|
680
755
|
},
|
|
@@ -683,9 +758,8 @@ class Finance {
|
|
|
683
758
|
if (warrning) {
|
|
684
759
|
Logger({
|
|
685
760
|
level: "WARN",
|
|
686
|
-
message:
|
|
761
|
+
message: `Parameter Validation warrnings for platform > Finance > invoiceType \n ${warrning}`,
|
|
687
762
|
});
|
|
688
|
-
Logger({ level: "WARN", message: warrning });
|
|
689
763
|
}
|
|
690
764
|
|
|
691
765
|
const query_params = {};
|
|
@@ -698,12 +772,18 @@ class Finance {
|
|
|
698
772
|
`/service/platform/finance/v1.0/company/${this.config.companyId}/invoice-type`,
|
|
699
773
|
query_params,
|
|
700
774
|
body,
|
|
701
|
-
xHeaders
|
|
775
|
+
xHeaders,
|
|
776
|
+
{ headers }
|
|
702
777
|
);
|
|
703
778
|
|
|
779
|
+
let responseData = response;
|
|
780
|
+
if (headers) {
|
|
781
|
+
responseData = response[0];
|
|
782
|
+
}
|
|
783
|
+
|
|
704
784
|
const {
|
|
705
785
|
error: res_error,
|
|
706
|
-
} =
|
|
786
|
+
} = FinancePlatformModel.InvoiceTypeResponse().validate(responseData, {
|
|
707
787
|
abortEarly: false,
|
|
708
788
|
allowUnknown: false,
|
|
709
789
|
});
|
|
@@ -711,23 +791,24 @@ class Finance {
|
|
|
711
791
|
if (res_error) {
|
|
712
792
|
Logger({
|
|
713
793
|
level: "WARN",
|
|
714
|
-
message:
|
|
794
|
+
message: `Response Validation Warnnings for platform > Finance > invoiceType \n ${res_error}`,
|
|
715
795
|
});
|
|
716
|
-
Logger({ level: "WARN", message: res_error });
|
|
717
796
|
}
|
|
718
797
|
|
|
719
798
|
return response;
|
|
720
799
|
}
|
|
721
800
|
|
|
722
801
|
/**
|
|
723
|
-
* @param {
|
|
724
|
-
* @param {
|
|
725
|
-
* @returns {Promise<IsCreditlinePlatformResponse>} -
|
|
802
|
+
* @param {FinancePlatformValidator.IsCreditlinePlatformParam} arg - Arg object
|
|
803
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
804
|
+
* @returns {Promise<FinancePlatformModel.IsCreditlinePlatformResponse>} -
|
|
805
|
+
* Success response
|
|
806
|
+
* @name isCreditlinePlatform
|
|
726
807
|
* @summary:
|
|
727
|
-
* @description:
|
|
808
|
+
* @description: - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/finance/isCreditlinePlatform/).
|
|
728
809
|
*/
|
|
729
|
-
async isCreditlinePlatform({ body } = {}) {
|
|
730
|
-
const { error } =
|
|
810
|
+
async isCreditlinePlatform({ body } = {}, { headers } = { headers: false }) {
|
|
811
|
+
const { error } = FinancePlatformValidator.isCreditlinePlatform().validate(
|
|
731
812
|
{
|
|
732
813
|
body,
|
|
733
814
|
},
|
|
@@ -740,7 +821,7 @@ class Finance {
|
|
|
740
821
|
// Showing warrnings if extra unknown parameters are found
|
|
741
822
|
const {
|
|
742
823
|
error: warrning,
|
|
743
|
-
} =
|
|
824
|
+
} = FinancePlatformValidator.isCreditlinePlatform().validate(
|
|
744
825
|
{
|
|
745
826
|
body,
|
|
746
827
|
},
|
|
@@ -749,9 +830,8 @@ class Finance {
|
|
|
749
830
|
if (warrning) {
|
|
750
831
|
Logger({
|
|
751
832
|
level: "WARN",
|
|
752
|
-
message:
|
|
833
|
+
message: `Parameter Validation warrnings for platform > Finance > isCreditlinePlatform \n ${warrning}`,
|
|
753
834
|
});
|
|
754
|
-
Logger({ level: "WARN", message: warrning });
|
|
755
835
|
}
|
|
756
836
|
|
|
757
837
|
const query_params = {};
|
|
@@ -764,36 +844,42 @@ class Finance {
|
|
|
764
844
|
`/service/platform/finance/v1.0/company/${this.config.companyId}/creditline-opted`,
|
|
765
845
|
query_params,
|
|
766
846
|
body,
|
|
767
|
-
xHeaders
|
|
847
|
+
xHeaders,
|
|
848
|
+
{ headers }
|
|
768
849
|
);
|
|
769
850
|
|
|
851
|
+
let responseData = response;
|
|
852
|
+
if (headers) {
|
|
853
|
+
responseData = response[0];
|
|
854
|
+
}
|
|
855
|
+
|
|
770
856
|
const {
|
|
771
857
|
error: res_error,
|
|
772
|
-
} =
|
|
773
|
-
|
|
774
|
-
allowUnknown: false
|
|
775
|
-
|
|
858
|
+
} = FinancePlatformModel.IsCreditlinePlatformResponse().validate(
|
|
859
|
+
responseData,
|
|
860
|
+
{ abortEarly: false, allowUnknown: false }
|
|
861
|
+
);
|
|
776
862
|
|
|
777
863
|
if (res_error) {
|
|
778
864
|
Logger({
|
|
779
865
|
level: "WARN",
|
|
780
|
-
message:
|
|
866
|
+
message: `Response Validation Warnnings for platform > Finance > isCreditlinePlatform \n ${res_error}`,
|
|
781
867
|
});
|
|
782
|
-
Logger({ level: "WARN", message: res_error });
|
|
783
868
|
}
|
|
784
869
|
|
|
785
870
|
return response;
|
|
786
871
|
}
|
|
787
872
|
|
|
788
873
|
/**
|
|
789
|
-
* @param {
|
|
790
|
-
* @param {
|
|
791
|
-
* @returns {Promise<PaymentProcessResponse>} - Success response
|
|
874
|
+
* @param {FinancePlatformValidator.PaymentProcessParam} arg - Arg object
|
|
875
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
876
|
+
* @returns {Promise<FinancePlatformModel.PaymentProcessResponse>} - Success response
|
|
877
|
+
* @name paymentProcess
|
|
792
878
|
* @summary:
|
|
793
|
-
* @description:
|
|
879
|
+
* @description: - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/finance/paymentProcess/).
|
|
794
880
|
*/
|
|
795
|
-
async paymentProcess({ body } = {}) {
|
|
796
|
-
const { error } =
|
|
881
|
+
async paymentProcess({ body } = {}, { headers } = { headers: false }) {
|
|
882
|
+
const { error } = FinancePlatformValidator.paymentProcess().validate(
|
|
797
883
|
{
|
|
798
884
|
body,
|
|
799
885
|
},
|
|
@@ -804,7 +890,9 @@ class Finance {
|
|
|
804
890
|
}
|
|
805
891
|
|
|
806
892
|
// Showing warrnings if extra unknown parameters are found
|
|
807
|
-
const {
|
|
893
|
+
const {
|
|
894
|
+
error: warrning,
|
|
895
|
+
} = FinancePlatformValidator.paymentProcess().validate(
|
|
808
896
|
{
|
|
809
897
|
body,
|
|
810
898
|
},
|
|
@@ -813,9 +901,8 @@ class Finance {
|
|
|
813
901
|
if (warrning) {
|
|
814
902
|
Logger({
|
|
815
903
|
level: "WARN",
|
|
816
|
-
message:
|
|
904
|
+
message: `Parameter Validation warrnings for platform > Finance > paymentProcess \n ${warrning}`,
|
|
817
905
|
});
|
|
818
|
-
Logger({ level: "WARN", message: warrning });
|
|
819
906
|
}
|
|
820
907
|
|
|
821
908
|
const query_params = {};
|
|
@@ -828,12 +915,18 @@ class Finance {
|
|
|
828
915
|
`/service/platform/finance/v1.0/company/${this.config.companyId}/payment-process`,
|
|
829
916
|
query_params,
|
|
830
917
|
body,
|
|
831
|
-
xHeaders
|
|
918
|
+
xHeaders,
|
|
919
|
+
{ headers }
|
|
832
920
|
);
|
|
833
921
|
|
|
922
|
+
let responseData = response;
|
|
923
|
+
if (headers) {
|
|
924
|
+
responseData = response[0];
|
|
925
|
+
}
|
|
926
|
+
|
|
834
927
|
const {
|
|
835
928
|
error: res_error,
|
|
836
|
-
} =
|
|
929
|
+
} = FinancePlatformModel.PaymentProcessResponse().validate(responseData, {
|
|
837
930
|
abortEarly: false,
|
|
838
931
|
allowUnknown: false,
|
|
839
932
|
});
|
|
@@ -841,9 +934,8 @@ class Finance {
|
|
|
841
934
|
if (res_error) {
|
|
842
935
|
Logger({
|
|
843
936
|
level: "WARN",
|
|
844
|
-
message:
|
|
937
|
+
message: `Response Validation Warnnings for platform > Finance > paymentProcess \n ${res_error}`,
|
|
845
938
|
});
|
|
846
|
-
Logger({ level: "WARN", message: res_error });
|
|
847
939
|
}
|
|
848
940
|
|
|
849
941
|
return response;
|