@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,31 +1,266 @@
|
|
|
1
1
|
const Joi = require("joi");
|
|
2
2
|
|
|
3
|
-
const
|
|
4
|
-
|
|
3
|
+
const PaymentApplicationModel = require("./PaymentApplicationModel");
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* @typedef AddBeneficiaryDetailsParam
|
|
7
|
+
* @property {PaymentApplicationModel.AddBeneficiaryDetailsRequest} body
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* @typedef AddRefundBankAccountUsingOTPParam
|
|
12
|
+
* @property {PaymentApplicationModel.AddBeneficiaryDetailsOTPRequest} body
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* @typedef AttachCardToCustomerParam
|
|
17
|
+
* @property {PaymentApplicationModel.AttachCardRequest} body
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* @typedef CancelPaymentLinkParam
|
|
22
|
+
* @property {PaymentApplicationModel.CancelOrResendPaymentLinkRequest} body
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* @typedef CardDetailsParam
|
|
27
|
+
* @property {string} cardInfo - Card first 6 digit IIN(prefix) number.
|
|
28
|
+
* @property {string} [aggregator]
|
|
29
|
+
*/
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* @typedef CheckAndUpdatePaymentStatusParam
|
|
33
|
+
* @property {PaymentApplicationModel.PaymentStatusUpdateRequest} body
|
|
34
|
+
*/
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* @typedef CheckAndUpdatePaymentStatusPaymentLinkParam
|
|
38
|
+
* @property {PaymentApplicationModel.PaymentStatusUpdateRequest} body
|
|
39
|
+
*/
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* @typedef CheckCreditParam
|
|
43
|
+
* @property {string} [aggregator]
|
|
44
|
+
*/
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* @typedef CreateOrderHandlerPaymentLinkParam
|
|
48
|
+
* @property {PaymentApplicationModel.CreateOrderUserRequest} body
|
|
49
|
+
*/
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* @typedef CreatePaymentLinkParam
|
|
53
|
+
* @property {PaymentApplicationModel.CreatePaymentLinkRequest} body
|
|
54
|
+
*/
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* @typedef CustomerCreditSummaryParam
|
|
58
|
+
* @property {string} [aggregator]
|
|
59
|
+
*/
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* @typedef CustomerOnboardParam
|
|
63
|
+
* @property {PaymentApplicationModel.CustomerOnboardingRequest} body
|
|
64
|
+
*/
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* @typedef DeleteUserCardParam
|
|
68
|
+
* @property {PaymentApplicationModel.DeletehCardRequest} body
|
|
69
|
+
*/
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* @typedef EnableOrDisableRefundTransferModeParam
|
|
73
|
+
* @property {PaymentApplicationModel.UpdateRefundTransferModeRequest} body
|
|
74
|
+
*/
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* @typedef GetActiveCardAggregatorParam
|
|
78
|
+
* @property {boolean} [refresh]
|
|
79
|
+
*/
|
|
80
|
+
|
|
81
|
+
/** @typedef GetActiveRefundTransferModesParam */
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* @typedef GetActiveUserCardsParam
|
|
85
|
+
* @property {boolean} [forceRefresh]
|
|
86
|
+
*/
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* @typedef GetAggregatorsConfigParam
|
|
90
|
+
* @property {string} [xApiToken] - Used for basic authentication.
|
|
91
|
+
* @property {boolean} [refresh] - This is a boolean value. Select `true` to
|
|
92
|
+
* remove temporary cache files on payment gateway and replace with the latest one.
|
|
93
|
+
*/
|
|
94
|
+
|
|
95
|
+
/** @typedef GetEpaylaterBannerDetailsParam */
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* @typedef GetOrderBeneficiariesDetailParam
|
|
99
|
+
* @property {string} orderId - A unique number used for identifying and
|
|
100
|
+
* tracking your orders.
|
|
101
|
+
*/
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* @typedef GetPaymentLinkParam
|
|
105
|
+
* @property {string} [paymentLinkId]
|
|
106
|
+
*/
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* @typedef GetPaymentModeRoutesParam
|
|
110
|
+
* @property {number} amount - Payable amount.
|
|
111
|
+
* @property {string} cartId - Identifier of the cart.
|
|
112
|
+
* @property {string} pincode - The PIN Code of the destination address, e.g. 400059
|
|
113
|
+
* @property {string} checkoutMode - Option to checkout for self or for others.
|
|
114
|
+
* @property {boolean} [refresh] - This is a boolean value. Select `true` to
|
|
115
|
+
* remove temporary cache files on payment gateway and replace with the latest one.
|
|
116
|
+
* @property {string} [cardReference] - Card reference id of user's debit or credit card.
|
|
117
|
+
* @property {string} [userDetails] - URIencoded JSON containing details of an
|
|
118
|
+
* anonymous user.
|
|
119
|
+
*/
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* @typedef GetPaymentModeRoutesPaymentLinkParam
|
|
123
|
+
* @property {string} paymentLinkId - Payment link id
|
|
124
|
+
*/
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* @typedef GetPosPaymentModeRoutesParam
|
|
128
|
+
* @property {number} amount - Payable amount.
|
|
129
|
+
* @property {string} cartId - Identifier of the cart.
|
|
130
|
+
* @property {string} pincode - The PIN Code of the destination address, e.g. 400059
|
|
131
|
+
* @property {string} checkoutMode - Option to checkout for self or for others.
|
|
132
|
+
* @property {boolean} [refresh] - This is a boolean value. Select `true` to
|
|
133
|
+
* remove temporary cache files on payment gateway and replace with the latest one.
|
|
134
|
+
* @property {string} [cardReference] - Card reference id of user's debit or credit card.
|
|
135
|
+
* @property {string} orderType - The order type of shipment * HomeDelivery - If
|
|
136
|
+
* the customer wants the order home-delivered * PickAtStore - If the customer
|
|
137
|
+
* wants the handover of an order at the store itself.
|
|
138
|
+
* @property {string} [userDetails] - URIencoded JSON containing details of an
|
|
139
|
+
* anonymous user.
|
|
140
|
+
*/
|
|
141
|
+
|
|
142
|
+
/** @typedef GetRupifiBannerDetailsParam */
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* @typedef GetUserBeneficiariesDetailParam
|
|
146
|
+
* @property {string} orderId - A unique number used for identifying and
|
|
147
|
+
* tracking your orders.
|
|
148
|
+
*/
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* @typedef InitialisePaymentParam
|
|
152
|
+
* @property {PaymentApplicationModel.PaymentInitializationRequest} body
|
|
153
|
+
*/
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* @typedef InitialisePaymentPaymentLinkParam
|
|
157
|
+
* @property {PaymentApplicationModel.PaymentInitializationRequest} body
|
|
158
|
+
*/
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* @typedef OutstandingOrderDetailsParam
|
|
162
|
+
* @property {string} [aggregator]
|
|
163
|
+
*/
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* @typedef PaidOrderDetailsParam
|
|
167
|
+
* @property {string} [aggregator]
|
|
168
|
+
*/
|
|
169
|
+
|
|
170
|
+
/**
|
|
171
|
+
* @typedef PollingPaymentLinkParam
|
|
172
|
+
* @property {string} [paymentLinkId]
|
|
173
|
+
*/
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* @typedef RedirectToAggregatorParam
|
|
177
|
+
* @property {string} [source] - This is a String value that contains callback
|
|
178
|
+
* URL as value.
|
|
179
|
+
* @property {string} [aggregator] - This is a String value that contains
|
|
180
|
+
* aggregator name as value.
|
|
181
|
+
*/
|
|
182
|
+
|
|
183
|
+
/**
|
|
184
|
+
* @typedef RenderHTMLParam
|
|
185
|
+
* @property {PaymentApplicationModel.renderHTMLRequest} body
|
|
186
|
+
*/
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* @typedef ResendOrCancelPaymentParam
|
|
190
|
+
* @property {PaymentApplicationModel.ResendOrCancelPaymentRequest} body
|
|
191
|
+
*/
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
* @typedef ResendPaymentLinkParam
|
|
195
|
+
* @property {PaymentApplicationModel.CancelOrResendPaymentLinkRequest} body
|
|
196
|
+
*/
|
|
197
|
+
|
|
198
|
+
/**
|
|
199
|
+
* @typedef UpdateDefaultBeneficiaryParam
|
|
200
|
+
* @property {PaymentApplicationModel.SetDefaultBeneficiaryRequest} body
|
|
201
|
+
*/
|
|
202
|
+
|
|
203
|
+
/**
|
|
204
|
+
* @typedef ValidateVPAParam
|
|
205
|
+
* @property {PaymentApplicationModel.ValidateVPARequest} body
|
|
206
|
+
*/
|
|
207
|
+
|
|
208
|
+
/**
|
|
209
|
+
* @typedef VerifyAndChargePaymentParam
|
|
210
|
+
* @property {PaymentApplicationModel.ChargeCustomerRequest} body
|
|
211
|
+
*/
|
|
212
|
+
|
|
213
|
+
/**
|
|
214
|
+
* @typedef VerifyCustomerForPaymentParam
|
|
215
|
+
* @property {PaymentApplicationModel.ValidateCustomerRequest} body
|
|
216
|
+
*/
|
|
217
|
+
|
|
218
|
+
/**
|
|
219
|
+
* @typedef VerifyIfscCodeParam
|
|
220
|
+
* @property {string} [ifscCode] - A 11-digit alphanumeric code that uniquely
|
|
221
|
+
* identifies a bank branch.
|
|
222
|
+
*/
|
|
223
|
+
|
|
224
|
+
/**
|
|
225
|
+
* @typedef VerifyOtpAndAddBeneficiaryForBankParam
|
|
226
|
+
* @property {PaymentApplicationModel.AddBeneficiaryViaOtpVerificationRequest} body
|
|
227
|
+
*/
|
|
228
|
+
|
|
229
|
+
/**
|
|
230
|
+
* @typedef VerifyOtpAndAddBeneficiaryForWalletParam
|
|
231
|
+
* @property {PaymentApplicationModel.WalletOtpRequest} body
|
|
232
|
+
*/
|
|
233
|
+
|
|
234
|
+
class PaymentApplicationValidator {
|
|
235
|
+
/** @returns {AddBeneficiaryDetailsParam} */
|
|
5
236
|
static addBeneficiaryDetails() {
|
|
6
237
|
return Joi.object({
|
|
7
|
-
body:
|
|
238
|
+
body: PaymentApplicationModel.AddBeneficiaryDetailsRequest().required(),
|
|
8
239
|
}).required();
|
|
9
240
|
}
|
|
10
241
|
|
|
242
|
+
/** @returns {AddRefundBankAccountUsingOTPParam} */
|
|
11
243
|
static addRefundBankAccountUsingOTP() {
|
|
12
244
|
return Joi.object({
|
|
13
|
-
body:
|
|
245
|
+
body: PaymentApplicationModel.AddBeneficiaryDetailsOTPRequest().required(),
|
|
14
246
|
}).required();
|
|
15
247
|
}
|
|
16
248
|
|
|
249
|
+
/** @returns {AttachCardToCustomerParam} */
|
|
17
250
|
static attachCardToCustomer() {
|
|
18
251
|
return Joi.object({
|
|
19
|
-
body:
|
|
252
|
+
body: PaymentApplicationModel.AttachCardRequest().required(),
|
|
20
253
|
}).required();
|
|
21
254
|
}
|
|
22
255
|
|
|
256
|
+
/** @returns {CancelPaymentLinkParam} */
|
|
23
257
|
static cancelPaymentLink() {
|
|
24
258
|
return Joi.object({
|
|
25
|
-
body:
|
|
259
|
+
body: PaymentApplicationModel.CancelOrResendPaymentLinkRequest().required(),
|
|
26
260
|
}).required();
|
|
27
261
|
}
|
|
28
262
|
|
|
263
|
+
/** @returns {CardDetailsParam} */
|
|
29
264
|
static cardDetails() {
|
|
30
265
|
return Joi.object({
|
|
31
266
|
cardInfo: Joi.string().allow("").required(),
|
|
@@ -33,76 +268,89 @@ class PaymentValidator {
|
|
|
33
268
|
}).required();
|
|
34
269
|
}
|
|
35
270
|
|
|
271
|
+
/** @returns {CheckAndUpdatePaymentStatusParam} */
|
|
36
272
|
static checkAndUpdatePaymentStatus() {
|
|
37
273
|
return Joi.object({
|
|
38
|
-
body:
|
|
274
|
+
body: PaymentApplicationModel.PaymentStatusUpdateRequest().required(),
|
|
39
275
|
}).required();
|
|
40
276
|
}
|
|
41
277
|
|
|
278
|
+
/** @returns {CheckAndUpdatePaymentStatusPaymentLinkParam} */
|
|
42
279
|
static checkAndUpdatePaymentStatusPaymentLink() {
|
|
43
280
|
return Joi.object({
|
|
44
|
-
body:
|
|
281
|
+
body: PaymentApplicationModel.PaymentStatusUpdateRequest().required(),
|
|
45
282
|
}).required();
|
|
46
283
|
}
|
|
47
284
|
|
|
285
|
+
/** @returns {CheckCreditParam} */
|
|
48
286
|
static checkCredit() {
|
|
49
287
|
return Joi.object({
|
|
50
288
|
aggregator: Joi.string().allow(""),
|
|
51
289
|
});
|
|
52
290
|
}
|
|
53
291
|
|
|
292
|
+
/** @returns {CreateOrderHandlerPaymentLinkParam} */
|
|
54
293
|
static createOrderHandlerPaymentLink() {
|
|
55
294
|
return Joi.object({
|
|
56
|
-
body:
|
|
295
|
+
body: PaymentApplicationModel.CreateOrderUserRequest().required(),
|
|
57
296
|
}).required();
|
|
58
297
|
}
|
|
59
298
|
|
|
299
|
+
/** @returns {CreatePaymentLinkParam} */
|
|
60
300
|
static createPaymentLink() {
|
|
61
301
|
return Joi.object({
|
|
62
|
-
body:
|
|
302
|
+
body: PaymentApplicationModel.CreatePaymentLinkRequest().required(),
|
|
63
303
|
}).required();
|
|
64
304
|
}
|
|
65
305
|
|
|
306
|
+
/** @returns {CustomerCreditSummaryParam} */
|
|
66
307
|
static customerCreditSummary() {
|
|
67
308
|
return Joi.object({
|
|
68
309
|
aggregator: Joi.string().allow(""),
|
|
69
310
|
});
|
|
70
311
|
}
|
|
71
312
|
|
|
313
|
+
/** @returns {CustomerOnboardParam} */
|
|
72
314
|
static customerOnboard() {
|
|
73
315
|
return Joi.object({
|
|
74
|
-
body:
|
|
316
|
+
body: PaymentApplicationModel.CustomerOnboardingRequest().required(),
|
|
75
317
|
}).required();
|
|
76
318
|
}
|
|
77
319
|
|
|
320
|
+
/** @returns {DeleteUserCardParam} */
|
|
78
321
|
static deleteUserCard() {
|
|
79
322
|
return Joi.object({
|
|
80
|
-
body:
|
|
323
|
+
body: PaymentApplicationModel.DeletehCardRequest().required(),
|
|
81
324
|
}).required();
|
|
82
325
|
}
|
|
83
326
|
|
|
327
|
+
/** @returns {EnableOrDisableRefundTransferModeParam} */
|
|
84
328
|
static enableOrDisableRefundTransferMode() {
|
|
85
329
|
return Joi.object({
|
|
86
|
-
body:
|
|
330
|
+
body: PaymentApplicationModel.UpdateRefundTransferModeRequest().required(),
|
|
87
331
|
}).required();
|
|
88
332
|
}
|
|
89
333
|
|
|
334
|
+
/** @returns {GetActiveCardAggregatorParam} */
|
|
90
335
|
static getActiveCardAggregator() {
|
|
91
336
|
return Joi.object({
|
|
92
337
|
refresh: Joi.boolean(),
|
|
93
338
|
});
|
|
94
339
|
}
|
|
95
340
|
|
|
341
|
+
/** @returns {GetActiveRefundTransferModesParam} */
|
|
96
342
|
static getActiveRefundTransferModes() {
|
|
97
343
|
return Joi.object({});
|
|
98
344
|
}
|
|
99
345
|
|
|
346
|
+
/** @returns {GetActiveUserCardsParam} */
|
|
100
347
|
static getActiveUserCards() {
|
|
101
348
|
return Joi.object({
|
|
102
349
|
forceRefresh: Joi.boolean(),
|
|
103
350
|
});
|
|
104
351
|
}
|
|
105
352
|
|
|
353
|
+
/** @returns {GetAggregatorsConfigParam} */
|
|
106
354
|
static getAggregatorsConfig() {
|
|
107
355
|
return Joi.object({
|
|
108
356
|
xApiToken: Joi.string().allow(""),
|
|
@@ -110,22 +358,26 @@ class PaymentValidator {
|
|
|
110
358
|
});
|
|
111
359
|
}
|
|
112
360
|
|
|
361
|
+
/** @returns {GetEpaylaterBannerDetailsParam} */
|
|
113
362
|
static getEpaylaterBannerDetails() {
|
|
114
363
|
return Joi.object({});
|
|
115
364
|
}
|
|
116
365
|
|
|
366
|
+
/** @returns {GetOrderBeneficiariesDetailParam} */
|
|
117
367
|
static getOrderBeneficiariesDetail() {
|
|
118
368
|
return Joi.object({
|
|
119
369
|
orderId: Joi.string().allow("").required(),
|
|
120
370
|
}).required();
|
|
121
371
|
}
|
|
122
372
|
|
|
373
|
+
/** @returns {GetPaymentLinkParam} */
|
|
123
374
|
static getPaymentLink() {
|
|
124
375
|
return Joi.object({
|
|
125
376
|
paymentLinkId: Joi.string().allow(""),
|
|
126
377
|
});
|
|
127
378
|
}
|
|
128
379
|
|
|
380
|
+
/** @returns {GetPaymentModeRoutesParam} */
|
|
129
381
|
static getPaymentModeRoutes() {
|
|
130
382
|
return Joi.object({
|
|
131
383
|
amount: Joi.number().required(),
|
|
@@ -138,12 +390,14 @@ class PaymentValidator {
|
|
|
138
390
|
}).required();
|
|
139
391
|
}
|
|
140
392
|
|
|
393
|
+
/** @returns {GetPaymentModeRoutesPaymentLinkParam} */
|
|
141
394
|
static getPaymentModeRoutesPaymentLink() {
|
|
142
395
|
return Joi.object({
|
|
143
396
|
paymentLinkId: Joi.string().allow("").required(),
|
|
144
397
|
}).required();
|
|
145
398
|
}
|
|
146
399
|
|
|
400
|
+
/** @returns {GetPosPaymentModeRoutesParam} */
|
|
147
401
|
static getPosPaymentModeRoutes() {
|
|
148
402
|
return Joi.object({
|
|
149
403
|
amount: Joi.number().required(),
|
|
@@ -157,46 +411,54 @@ class PaymentValidator {
|
|
|
157
411
|
}).required();
|
|
158
412
|
}
|
|
159
413
|
|
|
414
|
+
/** @returns {GetRupifiBannerDetailsParam} */
|
|
160
415
|
static getRupifiBannerDetails() {
|
|
161
416
|
return Joi.object({});
|
|
162
417
|
}
|
|
163
418
|
|
|
419
|
+
/** @returns {GetUserBeneficiariesDetailParam} */
|
|
164
420
|
static getUserBeneficiariesDetail() {
|
|
165
421
|
return Joi.object({
|
|
166
422
|
orderId: Joi.string().allow("").required(),
|
|
167
423
|
}).required();
|
|
168
424
|
}
|
|
169
425
|
|
|
426
|
+
/** @returns {InitialisePaymentParam} */
|
|
170
427
|
static initialisePayment() {
|
|
171
428
|
return Joi.object({
|
|
172
|
-
body:
|
|
429
|
+
body: PaymentApplicationModel.PaymentInitializationRequest().required(),
|
|
173
430
|
}).required();
|
|
174
431
|
}
|
|
175
432
|
|
|
433
|
+
/** @returns {InitialisePaymentPaymentLinkParam} */
|
|
176
434
|
static initialisePaymentPaymentLink() {
|
|
177
435
|
return Joi.object({
|
|
178
|
-
body:
|
|
436
|
+
body: PaymentApplicationModel.PaymentInitializationRequest().required(),
|
|
179
437
|
}).required();
|
|
180
438
|
}
|
|
181
439
|
|
|
440
|
+
/** @returns {OutstandingOrderDetailsParam} */
|
|
182
441
|
static outstandingOrderDetails() {
|
|
183
442
|
return Joi.object({
|
|
184
443
|
aggregator: Joi.string().allow(""),
|
|
185
444
|
});
|
|
186
445
|
}
|
|
187
446
|
|
|
447
|
+
/** @returns {PaidOrderDetailsParam} */
|
|
188
448
|
static paidOrderDetails() {
|
|
189
449
|
return Joi.object({
|
|
190
450
|
aggregator: Joi.string().allow(""),
|
|
191
451
|
});
|
|
192
452
|
}
|
|
193
453
|
|
|
454
|
+
/** @returns {PollingPaymentLinkParam} */
|
|
194
455
|
static pollingPaymentLink() {
|
|
195
456
|
return Joi.object({
|
|
196
457
|
paymentLinkId: Joi.string().allow(""),
|
|
197
458
|
});
|
|
198
459
|
}
|
|
199
460
|
|
|
461
|
+
/** @returns {RedirectToAggregatorParam} */
|
|
200
462
|
static redirectToAggregator() {
|
|
201
463
|
return Joi.object({
|
|
202
464
|
source: Joi.string().allow(""),
|
|
@@ -204,65 +466,75 @@ class PaymentValidator {
|
|
|
204
466
|
});
|
|
205
467
|
}
|
|
206
468
|
|
|
469
|
+
/** @returns {RenderHTMLParam} */
|
|
207
470
|
static renderHTML() {
|
|
208
471
|
return Joi.object({
|
|
209
|
-
body:
|
|
472
|
+
body: PaymentApplicationModel.renderHTMLRequest().required(),
|
|
210
473
|
}).required();
|
|
211
474
|
}
|
|
212
475
|
|
|
476
|
+
/** @returns {ResendOrCancelPaymentParam} */
|
|
213
477
|
static resendOrCancelPayment() {
|
|
214
478
|
return Joi.object({
|
|
215
|
-
body:
|
|
479
|
+
body: PaymentApplicationModel.ResendOrCancelPaymentRequest().required(),
|
|
216
480
|
}).required();
|
|
217
481
|
}
|
|
218
482
|
|
|
483
|
+
/** @returns {ResendPaymentLinkParam} */
|
|
219
484
|
static resendPaymentLink() {
|
|
220
485
|
return Joi.object({
|
|
221
|
-
body:
|
|
486
|
+
body: PaymentApplicationModel.CancelOrResendPaymentLinkRequest().required(),
|
|
222
487
|
}).required();
|
|
223
488
|
}
|
|
224
489
|
|
|
490
|
+
/** @returns {UpdateDefaultBeneficiaryParam} */
|
|
225
491
|
static updateDefaultBeneficiary() {
|
|
226
492
|
return Joi.object({
|
|
227
|
-
body:
|
|
493
|
+
body: PaymentApplicationModel.SetDefaultBeneficiaryRequest().required(),
|
|
228
494
|
}).required();
|
|
229
495
|
}
|
|
230
496
|
|
|
497
|
+
/** @returns {ValidateVPAParam} */
|
|
231
498
|
static validateVPA() {
|
|
232
499
|
return Joi.object({
|
|
233
|
-
body:
|
|
500
|
+
body: PaymentApplicationModel.ValidateVPARequest().required(),
|
|
234
501
|
}).required();
|
|
235
502
|
}
|
|
236
503
|
|
|
504
|
+
/** @returns {VerifyAndChargePaymentParam} */
|
|
237
505
|
static verifyAndChargePayment() {
|
|
238
506
|
return Joi.object({
|
|
239
|
-
body:
|
|
507
|
+
body: PaymentApplicationModel.ChargeCustomerRequest().required(),
|
|
240
508
|
}).required();
|
|
241
509
|
}
|
|
242
510
|
|
|
511
|
+
/** @returns {VerifyCustomerForPaymentParam} */
|
|
243
512
|
static verifyCustomerForPayment() {
|
|
244
513
|
return Joi.object({
|
|
245
|
-
body:
|
|
514
|
+
body: PaymentApplicationModel.ValidateCustomerRequest().required(),
|
|
246
515
|
}).required();
|
|
247
516
|
}
|
|
248
517
|
|
|
518
|
+
/** @returns {VerifyIfscCodeParam} */
|
|
249
519
|
static verifyIfscCode() {
|
|
250
520
|
return Joi.object({
|
|
251
521
|
ifscCode: Joi.string().allow(""),
|
|
252
522
|
});
|
|
253
523
|
}
|
|
254
524
|
|
|
525
|
+
/** @returns {VerifyOtpAndAddBeneficiaryForBankParam} */
|
|
255
526
|
static verifyOtpAndAddBeneficiaryForBank() {
|
|
256
527
|
return Joi.object({
|
|
257
|
-
body:
|
|
528
|
+
body: PaymentApplicationModel.AddBeneficiaryViaOtpVerificationRequest().required(),
|
|
258
529
|
}).required();
|
|
259
530
|
}
|
|
260
531
|
|
|
532
|
+
/** @returns {VerifyOtpAndAddBeneficiaryForWalletParam} */
|
|
261
533
|
static verifyOtpAndAddBeneficiaryForWallet() {
|
|
262
534
|
return Joi.object({
|
|
263
|
-
body:
|
|
535
|
+
body: PaymentApplicationModel.WalletOtpRequest().required(),
|
|
264
536
|
}).required();
|
|
265
537
|
}
|
|
266
538
|
}
|
|
267
539
|
|
|
268
|
-
module.exports =
|
|
540
|
+
module.exports = PaymentApplicationValidator;
|