@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,12 +1,829 @@
|
|
|
1
1
|
const Joi = require("joi");
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
/**
|
|
4
|
+
* @typedef AddBeneficiaryDetailsOTPRequest
|
|
5
|
+
* @property {BankDetailsForOTP} details
|
|
6
|
+
* @property {string} order_id
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* @typedef BankDetailsForOTP
|
|
11
|
+
* @property {string} account_holder
|
|
12
|
+
* @property {string} account_no
|
|
13
|
+
* @property {string} bank_name
|
|
14
|
+
* @property {string} branch_name
|
|
15
|
+
* @property {string} ifsc_code
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* @typedef CancelOrResendPaymentLinkRequest
|
|
20
|
+
* @property {string} payment_link_id - Unique id of payment link
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* @typedef CancelPaymentLinkResponse
|
|
25
|
+
* @property {string} message - Message
|
|
26
|
+
* @property {number} status_code - HTTP status code
|
|
27
|
+
* @property {boolean} success - Successful or failure
|
|
28
|
+
*/
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* @typedef CODdata
|
|
32
|
+
* @property {boolean} is_active - COD option is active or not
|
|
33
|
+
* @property {number} limit - Total Limit of user
|
|
34
|
+
* @property {number} remaining_limit - Remaining Limit for COD of User
|
|
35
|
+
* @property {number} usages - Used COD limit from the user Limit
|
|
36
|
+
* @property {string} user_id - Payment mode name
|
|
37
|
+
*/
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* @typedef Code
|
|
41
|
+
* @property {string} code - Payment Method Code
|
|
42
|
+
* @property {string} merchant_code - Merchant Payment Code
|
|
43
|
+
* @property {string} name - Name of payment method
|
|
44
|
+
*/
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* @typedef CreatePaymentLinkMeta
|
|
48
|
+
* @property {string} amount
|
|
49
|
+
* @property {string} [assign_card_id]
|
|
50
|
+
* @property {string} cart_id
|
|
51
|
+
* @property {string} checkout_mode
|
|
52
|
+
* @property {string} pincode
|
|
53
|
+
*/
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* @typedef CreatePaymentLinkRequest
|
|
57
|
+
* @property {number} amount - Total value of order
|
|
58
|
+
* @property {string} [description] - Merchant order id
|
|
59
|
+
* @property {string} email - Email to which the payment link is to be sent
|
|
60
|
+
* @property {string} external_order_id - Merchant order id
|
|
61
|
+
* @property {CreatePaymentLinkMeta} meta - Meta
|
|
62
|
+
* @property {string} mobile_number - Mobile number to which the payment link is
|
|
63
|
+
* to be sent
|
|
64
|
+
*/
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* @typedef CreatePaymentLinkResponse
|
|
68
|
+
* @property {string} message - Message
|
|
69
|
+
* @property {string} [payment_link_id] - Unique id of payment link
|
|
70
|
+
* @property {string} [payment_link_url] - Url of payment link
|
|
71
|
+
* @property {number} [polling_timeout] - Polling request timeout
|
|
72
|
+
* @property {number} status_code - HTTP status code
|
|
73
|
+
* @property {boolean} success - Successful or failure
|
|
74
|
+
*/
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* @typedef DeletePayoutResponse
|
|
78
|
+
* @property {boolean} success - Response is successful or not
|
|
79
|
+
*/
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* @typedef DeleteSubscriptionPaymentMethodResponse
|
|
83
|
+
* @property {boolean} success - Success or failure.
|
|
84
|
+
*/
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* @typedef EdcAddRequest
|
|
88
|
+
* @property {number} aggregator_id - Aggregator which will accept payment
|
|
89
|
+
* @property {string} [device_tag] - Device tag of edc device to identify it
|
|
90
|
+
* @property {string} edc_device_serial_no - Serial number or imei of EDC device
|
|
91
|
+
* @property {string} edc_model - Model of the edc machine
|
|
92
|
+
* @property {number} store_id - Store at which devices is to used
|
|
93
|
+
* @property {string} terminal_serial_no - Device serial number of
|
|
94
|
+
* terminal(android tablet)
|
|
95
|
+
*/
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* @typedef EdcAggregatorAndModelListResponse
|
|
99
|
+
* @property {EdcModelData[]} data - List of aggregators and their edc models
|
|
100
|
+
* @property {boolean} success - Response is successful or not
|
|
101
|
+
*/
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* @typedef EdcDevice
|
|
105
|
+
* @property {number} aggregator_id - Aggregator which will accept payment
|
|
106
|
+
* @property {string} [aggregator_name] - Name of the corresponding aggregator
|
|
107
|
+
* @property {string} application_id - Application ID
|
|
108
|
+
* @property {string} device_tag - Device tag of edc device to identify it
|
|
109
|
+
* @property {string} edc_device_serial_no - Serial number of EDC device
|
|
110
|
+
* @property {string} [edc_model] - Name of the model
|
|
111
|
+
* @property {boolean} is_active - State whether device is active or inactive
|
|
112
|
+
* @property {string} [merchant_store_pos_code] - This is provided by pinelabs
|
|
113
|
+
* @property {number} store_id - Store at which devices is to used
|
|
114
|
+
* @property {string} terminal_serial_no - Device serial number of
|
|
115
|
+
* terminal(android tablet)
|
|
116
|
+
* @property {string} terminal_unique_identifier - Genearated unique value for edc device
|
|
117
|
+
*/
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* @typedef EdcDeviceAddResponse
|
|
121
|
+
* @property {EdcDevice} data - Details of the EDC Device that is added
|
|
122
|
+
* @property {boolean} success - Response is successful or not
|
|
123
|
+
*/
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* @typedef EdcDeviceDetailsResponse
|
|
127
|
+
* @property {EdcDevice} data - Details of one EDC Device
|
|
128
|
+
* @property {boolean} success - Response is successful or not
|
|
129
|
+
*/
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* @typedef EdcDeviceListResponse
|
|
133
|
+
* @property {EdcDevice[]} items - List of all edc mapped to the application
|
|
134
|
+
* options with their Details.
|
|
135
|
+
* @property {Page} page - Pagination Response
|
|
136
|
+
* @property {boolean} success - Response is successful or not
|
|
137
|
+
*/
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* @typedef EdcDeviceStatsResponse
|
|
141
|
+
* @property {StatisticsData} statistics - Message
|
|
142
|
+
* @property {boolean} success - Response is successful or not
|
|
143
|
+
*/
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* @typedef EdcDeviceUpdateResponse
|
|
147
|
+
* @property {boolean} success - Response is successful or not
|
|
148
|
+
*/
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* @typedef EdcModelData
|
|
152
|
+
* @property {string} aggregator - Name of aggregator
|
|
153
|
+
* @property {number} aggregator_id - ID of aggregator
|
|
154
|
+
* @property {string[]} models - List of string of edc models
|
|
155
|
+
*/
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
* @typedef EdcUpdateRequest
|
|
159
|
+
* @property {number} [aggregator_id] - Aggregator which will accept payment
|
|
160
|
+
* @property {string} [device_tag] - Device tag of edc device to identify it
|
|
161
|
+
* @property {string} [edc_device_serial_no] - Serial number or imei of EDC device
|
|
162
|
+
* @property {string} [edc_model] - Model of the edc machine
|
|
163
|
+
* @property {boolean} [is_active] - State whether device is active or inactive
|
|
164
|
+
* @property {string} [merchant_store_pos_code] - This is provided by pinelabs
|
|
165
|
+
* @property {number} [store_id] - Store at which devices is to used
|
|
166
|
+
*/
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* @typedef ErrorCodeAndDescription
|
|
170
|
+
* @property {string} code - Error descrption code.
|
|
171
|
+
* @property {string} description - Error human understandable description.
|
|
172
|
+
*/
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* @typedef ErrorCodeDescription
|
|
176
|
+
* @property {string} code - Error descrption code.
|
|
177
|
+
* @property {string} description - Error human understandable description.
|
|
178
|
+
* @property {boolean} success - Response is successful or not
|
|
179
|
+
*/
|
|
180
|
+
|
|
181
|
+
/**
|
|
182
|
+
* @typedef ErrorDescription
|
|
183
|
+
* @property {number} [amount] - Amount paid
|
|
184
|
+
* @property {boolean} [cancelled] - Payment link is cancelled or not
|
|
185
|
+
* @property {boolean} [expired] - Payment link expired or not
|
|
186
|
+
* @property {boolean} [invalid_id] - Payment link id is valid or not
|
|
187
|
+
* @property {string} [merchant_name] - Name of merchant that created payment link
|
|
188
|
+
* @property {string} [merchant_order_id] - Order id
|
|
189
|
+
* @property {string} [msg] - Message
|
|
190
|
+
* @property {string} [payment_transaction_id] - Payment transaction id
|
|
191
|
+
*/
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
* @typedef ErrorResponse
|
|
195
|
+
* @property {ErrorDescription} [error]
|
|
196
|
+
* @property {string} message - Message
|
|
197
|
+
* @property {number} status_code - HTTP status code
|
|
198
|
+
* @property {boolean} success - Successful or failure
|
|
199
|
+
*/
|
|
200
|
+
|
|
201
|
+
/**
|
|
202
|
+
* @typedef GetOauthUrlResponse
|
|
203
|
+
* @property {boolean} success - Response is successful or not
|
|
204
|
+
* @property {string} url - The url to call for authenticating
|
|
205
|
+
*/
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* @typedef GetPaymentCode
|
|
209
|
+
* @property {PaymentCode} method_code - Payment method code
|
|
210
|
+
*/
|
|
211
|
+
|
|
212
|
+
/**
|
|
213
|
+
* @typedef GetPaymentCodeResponse
|
|
214
|
+
* @property {GetPaymentCode} data - Data about Payment Code.
|
|
215
|
+
* @property {boolean} success - Response is successful or not.
|
|
216
|
+
*/
|
|
217
|
+
|
|
218
|
+
/**
|
|
219
|
+
* @typedef GetPaymentLinkResponse
|
|
220
|
+
* @property {number} [amount] - Total value of order
|
|
221
|
+
* @property {string} [external_order_id] - Merchant order id
|
|
222
|
+
* @property {string} [merchant_name] - Merchant name
|
|
223
|
+
* @property {string} message - Message
|
|
224
|
+
* @property {string} [payment_link_current_status] - Status of payment link
|
|
225
|
+
* @property {string} [payment_link_url] - Url of payment link
|
|
226
|
+
* @property {number} [polling_timeout] - Polling request timeout
|
|
227
|
+
* @property {number} status_code - HTTP status code
|
|
228
|
+
* @property {boolean} success - Successful or failure
|
|
229
|
+
*/
|
|
230
|
+
|
|
231
|
+
/**
|
|
232
|
+
* @typedef GetUserCODLimitResponse
|
|
233
|
+
* @property {boolean} success - Response is successful or not
|
|
234
|
+
* @property {CODdata} user_cod_data - User COD Data
|
|
235
|
+
*/
|
|
236
|
+
|
|
237
|
+
/**
|
|
238
|
+
* @typedef HttpErrorCodeAndResponse
|
|
239
|
+
* @property {ErrorCodeAndDescription} error
|
|
240
|
+
* @property {boolean} success - Response is successful or not
|
|
241
|
+
*/
|
|
242
|
+
|
|
243
|
+
/**
|
|
244
|
+
* @typedef IfscCodeResponse
|
|
245
|
+
* @property {string} bank_name - Bank Name Of Account
|
|
246
|
+
* @property {string} branch_name - Branch Name Of Account
|
|
247
|
+
* @property {boolean} [success] - Response is successful or not
|
|
248
|
+
*/
|
|
249
|
+
|
|
250
|
+
/**
|
|
251
|
+
* @typedef IntentApp
|
|
252
|
+
* @property {string} [code] - Code
|
|
253
|
+
* @property {string} [display_name] - Display_name
|
|
254
|
+
* @property {PaymentModeLogo} [logos] - Logos
|
|
255
|
+
* @property {string} [package_name] - Package_name
|
|
256
|
+
*/
|
|
257
|
+
|
|
258
|
+
/**
|
|
259
|
+
* @typedef IntentAppErrorList
|
|
260
|
+
* @property {string} [code] - Code
|
|
261
|
+
* @property {string} [package_name] - Package_name
|
|
262
|
+
*/
|
|
263
|
+
|
|
264
|
+
/**
|
|
265
|
+
* @typedef LinkStatus
|
|
266
|
+
* @property {string} message - Message
|
|
267
|
+
* @property {boolean} status - Link action status
|
|
268
|
+
*/
|
|
269
|
+
|
|
270
|
+
/**
|
|
271
|
+
* @typedef MerchantOnBoardingRequest
|
|
272
|
+
* @property {string} aggregator - Payment aggregator name
|
|
273
|
+
* @property {string} app_id - Application id
|
|
274
|
+
* @property {string} credit_line_id - Merchant ID at Ajiodhan's end
|
|
275
|
+
* @property {string} status - Status
|
|
276
|
+
* @property {string} user_id - Deadlock/Grimlock user id
|
|
277
|
+
*/
|
|
278
|
+
|
|
279
|
+
/**
|
|
280
|
+
* @typedef MerchantOnBoardingResponse
|
|
281
|
+
* @property {Object} data
|
|
282
|
+
* @property {boolean} success - Success/Failure of the transaction
|
|
283
|
+
*/
|
|
284
|
+
|
|
285
|
+
/**
|
|
286
|
+
* @typedef MultiTenderPaymentMeta
|
|
287
|
+
* @property {string} [current_status]
|
|
288
|
+
* @property {Object} [extra_meta]
|
|
289
|
+
* @property {string} [order_id]
|
|
290
|
+
* @property {string} [payment_gateway]
|
|
291
|
+
* @property {string} [payment_id]
|
|
292
|
+
*/
|
|
293
|
+
|
|
294
|
+
/**
|
|
295
|
+
* @typedef MultiTenderPaymentMethod
|
|
296
|
+
* @property {number} amount - Payment amount
|
|
297
|
+
* @property {MultiTenderPaymentMeta} [meta]
|
|
298
|
+
* @property {string} mode
|
|
299
|
+
* @property {string} [name] - Payment mode name
|
|
300
|
+
*/
|
|
301
|
+
|
|
302
|
+
/**
|
|
303
|
+
* @typedef NotFoundResourceError
|
|
304
|
+
* @property {string} code - Bad Request Data
|
|
305
|
+
* @property {string} description - Not Found
|
|
306
|
+
* @property {boolean} success - Response is successful or not
|
|
307
|
+
*/
|
|
308
|
+
|
|
309
|
+
/**
|
|
310
|
+
* @typedef OrderBeneficiaryDetails
|
|
311
|
+
* @property {string} account_holder - Account Holder Name
|
|
312
|
+
* @property {string} account_no - Account Number
|
|
313
|
+
* @property {string} address - Address of User
|
|
314
|
+
* @property {string} bank_name - Bank Name Of Account
|
|
315
|
+
* @property {string} beneficiary_id - Benenficiary Id
|
|
316
|
+
* @property {string} [branch_name] - Branch Name Of Account
|
|
317
|
+
* @property {string} [comment] - Remarks
|
|
318
|
+
* @property {string} created_on - Creation Date of Beneficiary
|
|
319
|
+
* @property {string} [delights_user_name] - User Id Who filled the Beneficiary
|
|
320
|
+
* @property {string} display_name - Display Name Of Account
|
|
321
|
+
* @property {string} email - EMail of User
|
|
322
|
+
* @property {number} id -
|
|
323
|
+
* @property {string} ifsc_code - Ifsc Code Of Account
|
|
324
|
+
* @property {boolean} is_active - Boolean Flag whether Beneficiary set or not
|
|
325
|
+
* @property {string} [mobile] - MObile no of User
|
|
326
|
+
* @property {string} modified_on - MOdification Date of Beneficiary
|
|
327
|
+
* @property {string} subtitle - SHort Title Of Account
|
|
328
|
+
* @property {string} title - Title Of Account
|
|
329
|
+
* @property {string} transfer_mode - Transfer Mode Of Account
|
|
330
|
+
*/
|
|
331
|
+
|
|
332
|
+
/**
|
|
333
|
+
* @typedef OrderBeneficiaryResponse
|
|
334
|
+
* @property {OrderBeneficiaryDetails[]} [beneficiaries] - All Beneficiaries Of An Order
|
|
335
|
+
* @property {boolean} [show_beneficiary_details] - Show beneficiary details or not.
|
|
336
|
+
*/
|
|
337
|
+
|
|
338
|
+
/**
|
|
339
|
+
* @typedef Page
|
|
340
|
+
* @property {number} [current]
|
|
341
|
+
* @property {boolean} [has_next]
|
|
342
|
+
* @property {boolean} [has_previous]
|
|
343
|
+
* @property {number} [item_total]
|
|
344
|
+
* @property {string} [next_id]
|
|
345
|
+
* @property {number} [size]
|
|
346
|
+
* @property {string} type
|
|
347
|
+
*/
|
|
348
|
+
|
|
349
|
+
/**
|
|
350
|
+
* @typedef PaymentCode
|
|
351
|
+
* @property {Code} codes - List of dict that contains payment method data
|
|
352
|
+
* @property {string} name - Name of payment name
|
|
353
|
+
* @property {string} networks - Payment networks
|
|
354
|
+
* @property {string} types - Type of payment mode
|
|
355
|
+
*/
|
|
356
|
+
|
|
357
|
+
/**
|
|
358
|
+
* @typedef PaymentConfirmationRequest
|
|
359
|
+
* @property {string} order_id - Unique order id
|
|
360
|
+
* @property {MultiTenderPaymentMethod[]} payment_methods
|
|
361
|
+
*/
|
|
362
|
+
|
|
363
|
+
/**
|
|
364
|
+
* @typedef PaymentConfirmationResponse
|
|
365
|
+
* @property {string} message - Message
|
|
366
|
+
* @property {string} order_id - Unique order id
|
|
367
|
+
* @property {boolean} success - Payment confirmation updated or not.
|
|
368
|
+
*/
|
|
369
|
+
|
|
370
|
+
/**
|
|
371
|
+
* @typedef PaymentGatewayConfig
|
|
372
|
+
* @property {string} config_type - Config Type of the aggregator
|
|
373
|
+
* @property {boolean} [is_active] - Enable/ Disable Flag
|
|
374
|
+
* @property {string} key - Api key of the payment aggregator
|
|
375
|
+
* @property {string} merchant_salt - Merchant key of the payment aggregator
|
|
376
|
+
* @property {string} secret - Secret Key of the payment aggregator
|
|
377
|
+
*/
|
|
378
|
+
|
|
379
|
+
/**
|
|
380
|
+
* @typedef PaymentGatewayConfigRequest
|
|
381
|
+
* @property {PaymentGatewayConfig} [aggregator_name]
|
|
382
|
+
* @property {string} app_id - Application Id to which Payment config Mapped
|
|
383
|
+
* @property {boolean} [is_active] - Enable/ Disable Flag
|
|
384
|
+
*/
|
|
385
|
+
|
|
386
|
+
/**
|
|
387
|
+
* @typedef PaymentGatewayConfigResponse
|
|
388
|
+
* @property {Object[]} [aggregators] - List of all speceific Payment options
|
|
389
|
+
* with their Details.
|
|
390
|
+
* @property {string} app_id - Application Id to which Payment config Mapped
|
|
391
|
+
* @property {boolean} created - Response is created or not
|
|
392
|
+
* @property {string[]} display_fields - List of all included options with their Details.
|
|
393
|
+
* @property {string[]} excluded_fields - List of all excluded options with their Details.
|
|
394
|
+
* @property {boolean} success - Response is successful or not
|
|
395
|
+
*/
|
|
396
|
+
|
|
397
|
+
/**
|
|
398
|
+
* @typedef PaymentGatewayToBeReviewed
|
|
399
|
+
* @property {string[]} aggregator - List of added payment gateway
|
|
400
|
+
* @property {boolean} success - Response is successful or not
|
|
401
|
+
*/
|
|
402
|
+
|
|
403
|
+
/**
|
|
404
|
+
* @typedef PaymentInitializationRequest
|
|
405
|
+
* @property {string} aggregator - Payment gateway name
|
|
406
|
+
* @property {number} amount - Payable amount.
|
|
407
|
+
* @property {string} contact - Customer valid mobile number
|
|
408
|
+
* @property {string} currency - Currency code.
|
|
409
|
+
* @property {string} customer_id - Payment gateway customer id.
|
|
410
|
+
* @property {string} [device_id] - EDC machine Unique Identifier
|
|
411
|
+
* @property {string} email - Customer valid email
|
|
412
|
+
* @property {string} merchant_order_id - Unique fynd order id
|
|
413
|
+
* @property {string} method - Payment method
|
|
414
|
+
* @property {string} order_id - Payment gateway order id
|
|
415
|
+
* @property {string} [razorpay_payment_id] - Payment gateway payment id
|
|
416
|
+
* @property {number} [timeout] - Payment polling timeout if not recieved response
|
|
417
|
+
* @property {string} [vpa] - Customer vpa address
|
|
418
|
+
*/
|
|
419
|
+
|
|
420
|
+
/**
|
|
421
|
+
* @typedef PaymentInitializationResponse
|
|
422
|
+
* @property {string} aggregator - Payment gateway name
|
|
423
|
+
* @property {string} [aggregator_order_id] - Payment order id
|
|
424
|
+
* @property {number} [amount] - Payable amount.
|
|
425
|
+
* @property {string} [bqr_image] - Bharath qr image url.
|
|
426
|
+
* @property {string} [currency] - Currency code.
|
|
427
|
+
* @property {string} [customer_id] - Payment gateway customer id.
|
|
428
|
+
* @property {string} [device_id] - EDC machine Unique Identifier
|
|
429
|
+
* @property {string} merchant_order_id - Order id
|
|
430
|
+
* @property {string} method - Payment method
|
|
431
|
+
* @property {string} polling_url - Polling url.
|
|
432
|
+
* @property {string} [razorpay_payment_id] - Payment id.
|
|
433
|
+
* @property {string} [status] - Status of payment.
|
|
434
|
+
* @property {boolean} success - Response is successful or not.
|
|
435
|
+
* @property {number} [timeout] - Timeout.
|
|
436
|
+
* @property {string} [upi_poll_url] - UPI poll url.
|
|
437
|
+
* @property {string} [virtual_id] - Payment virtual address.
|
|
438
|
+
* @property {string} [vpa] - Customer vpa address
|
|
439
|
+
*/
|
|
440
|
+
|
|
441
|
+
/**
|
|
442
|
+
* @typedef PaymentModeList
|
|
443
|
+
* @property {string} aggregator_name - Aggregator_name
|
|
444
|
+
* @property {string} [card_brand] - Card_brand
|
|
445
|
+
* @property {string} [card_brand_image] - Card_brand_image
|
|
446
|
+
* @property {string} [card_fingerprint] - Card_fingerprint
|
|
447
|
+
* @property {string} [card_id] - Card_id
|
|
448
|
+
* @property {string} [card_isin] - Card_isin
|
|
449
|
+
* @property {string} [card_issuer] - Card_issuer
|
|
450
|
+
* @property {string} [card_name] - Card_name
|
|
451
|
+
* @property {string} [card_number] - Card_number
|
|
452
|
+
* @property {string} [card_reference] - Card_reference
|
|
453
|
+
* @property {string} [card_token] - Card_token
|
|
454
|
+
* @property {string} [card_type] - Card_type
|
|
455
|
+
* @property {number} [cod_limit] - Cod limit
|
|
456
|
+
* @property {number} [cod_limit_per_order] - Cod limit per order
|
|
457
|
+
* @property {string} [code] - Code
|
|
458
|
+
* @property {boolean} [compliant_with_tokenisation_guidelines] - If card is
|
|
459
|
+
* tokenised or not
|
|
460
|
+
* @property {string} [display_name] - Display name
|
|
461
|
+
* @property {number} [display_priority] - Dispaly Priority
|
|
462
|
+
* @property {number} [exp_month] - Exp_month
|
|
463
|
+
* @property {number} [exp_year] - Exp_year
|
|
464
|
+
* @property {boolean} [expired] - Expired
|
|
465
|
+
* @property {string} [fynd_vpa] - Fynd_vpa
|
|
466
|
+
* @property {IntentApp[]} [intent_app] - Intent_app
|
|
467
|
+
* @property {IntentAppErrorList[]} [intent_app_error_dict_list] -
|
|
468
|
+
* Intent_app_error_dict_list
|
|
469
|
+
* @property {string[]} [intent_app_error_list] - Intent_app_error_list
|
|
470
|
+
* @property {boolean} [intent_flow] - Intent_flow
|
|
471
|
+
* @property {PaymentModeLogo} [logo_url] - Logo
|
|
472
|
+
* @property {string} [merchant_code] - Merchant code
|
|
473
|
+
* @property {string} [name] - Name
|
|
474
|
+
* @property {string} [nickname] - Nickname
|
|
475
|
+
* @property {number} [remaining_limit] - Remaining limit
|
|
476
|
+
* @property {number} [retry_count] - Retry_count
|
|
477
|
+
* @property {number} [timeout] - Timeout
|
|
478
|
+
*/
|
|
479
|
+
|
|
480
|
+
/**
|
|
481
|
+
* @typedef PaymentModeLogo
|
|
482
|
+
* @property {string} large - Large
|
|
483
|
+
* @property {string} small - Smalll
|
|
484
|
+
*/
|
|
485
|
+
|
|
486
|
+
/**
|
|
487
|
+
* @typedef PaymentObjectListSerializer
|
|
488
|
+
* @property {Object} [aggregator_payment_object]
|
|
489
|
+
* @property {string[]} all_status
|
|
490
|
+
* @property {string} amount_in_paisa
|
|
491
|
+
* @property {string} application_id
|
|
492
|
+
* @property {string} collected_by
|
|
493
|
+
* @property {string} company_id
|
|
494
|
+
* @property {string} created_on
|
|
495
|
+
* @property {string} currency
|
|
496
|
+
* @property {string} current_status
|
|
497
|
+
* @property {string} id
|
|
498
|
+
* @property {string} modified_on
|
|
499
|
+
* @property {string} payment_gateway
|
|
500
|
+
* @property {string} [payment_id]
|
|
501
|
+
* @property {string} payment_mode
|
|
502
|
+
* @property {string} payment_mode_identifier
|
|
503
|
+
* @property {Object} [refund_object]
|
|
504
|
+
* @property {string} refunded_by
|
|
505
|
+
* @property {Object} user_object
|
|
506
|
+
*/
|
|
507
|
+
|
|
508
|
+
/**
|
|
509
|
+
* @typedef PaymentOptions
|
|
510
|
+
* @property {RootPaymentMode[]} payment_option - Payment options
|
|
511
|
+
*/
|
|
512
|
+
|
|
513
|
+
/**
|
|
514
|
+
* @typedef PaymentOptionsResponse
|
|
515
|
+
* @property {PaymentOptions} payment_options - Payment options
|
|
516
|
+
* @property {boolean} success - Response is successful or not
|
|
517
|
+
*/
|
|
518
|
+
|
|
519
|
+
/**
|
|
520
|
+
* @typedef PaymentStatusBulkHandlerRequest
|
|
521
|
+
* @property {string[]} merchant_order_id - List of order ids
|
|
522
|
+
*/
|
|
523
|
+
|
|
524
|
+
/**
|
|
525
|
+
* @typedef PaymentStatusBulkHandlerResponse
|
|
526
|
+
* @property {number} [count]
|
|
527
|
+
* @property {PaymentStatusObject[]} [data]
|
|
528
|
+
* @property {string} [error]
|
|
529
|
+
* @property {number} status
|
|
530
|
+
* @property {string} success
|
|
531
|
+
*/
|
|
532
|
+
|
|
533
|
+
/**
|
|
534
|
+
* @typedef PaymentStatusObject
|
|
535
|
+
* @property {string} merchant_order_id
|
|
536
|
+
* @property {PaymentObjectListSerializer[]} [payment_object_list]
|
|
537
|
+
*/
|
|
538
|
+
|
|
539
|
+
/**
|
|
540
|
+
* @typedef PaymentStatusUpdateRequest
|
|
541
|
+
* @property {string} aggregator - Payment gateway name
|
|
542
|
+
* @property {number} amount - Payable amount.
|
|
543
|
+
* @property {string} contact - Customer valid mobile number
|
|
544
|
+
* @property {string} currency - Currency code.
|
|
545
|
+
* @property {string} customer_id - Payment gateway customer id.
|
|
546
|
+
* @property {string} [device_id] - EDC machine Unique Identifier
|
|
547
|
+
* @property {string} email - Customer valid email
|
|
548
|
+
* @property {string} merchant_order_id - Unique fynd order id
|
|
549
|
+
* @property {string} merchant_transaction_id - Unique fynd transaction id
|
|
550
|
+
* @property {string} method - Payment method
|
|
551
|
+
* @property {string} order_id - Payment gateway order id
|
|
552
|
+
* @property {string} status - Status of payment.
|
|
553
|
+
* @property {string} [vpa] - Customer vpa address
|
|
554
|
+
*/
|
|
555
|
+
|
|
556
|
+
/**
|
|
557
|
+
* @typedef PaymentStatusUpdateResponse
|
|
558
|
+
* @property {string} aggregator_name - Payment gateway name
|
|
559
|
+
* @property {string} [redirect_url] - Redirect url
|
|
560
|
+
* @property {boolean} retry - Response is successful or not.
|
|
561
|
+
* @property {string} status - Payment status
|
|
562
|
+
* @property {boolean} [success] - Response is successful or not
|
|
563
|
+
*/
|
|
564
|
+
|
|
565
|
+
/**
|
|
566
|
+
* @typedef Payout
|
|
567
|
+
* @property {PayoutCustomer} customers - Customers details object
|
|
568
|
+
* @property {boolean} is_active - Enable/DIsable Flag Payout
|
|
569
|
+
* @property {boolean} is_default - Default or not
|
|
570
|
+
* @property {PayoutMoreAttributes} more_attributes - Bank details object
|
|
571
|
+
* @property {PayoutAggregator[]} [payouts_aggregators]
|
|
572
|
+
* @property {string} transfer_type - Transafer type
|
|
573
|
+
* @property {string} unique_transfer_no - Display priority of the payment mode
|
|
574
|
+
*/
|
|
575
|
+
|
|
576
|
+
/**
|
|
577
|
+
* @typedef PayoutAggregator
|
|
578
|
+
* @property {number} [aggregator_fund_id] - Aggregator_fund_id
|
|
579
|
+
* @property {number} [aggregator_id] - Aggregator_id
|
|
580
|
+
* @property {number} [payout_details_id] - Payout_details_id
|
|
581
|
+
*/
|
|
582
|
+
|
|
583
|
+
/**
|
|
584
|
+
* @typedef PayoutBankDetails
|
|
585
|
+
* @property {string} [account_holder]
|
|
586
|
+
* @property {string} [account_no]
|
|
587
|
+
* @property {string} account_type
|
|
588
|
+
* @property {string} [bank_name]
|
|
589
|
+
* @property {string} [branch_name]
|
|
590
|
+
* @property {string} [city]
|
|
591
|
+
* @property {string} [country]
|
|
592
|
+
* @property {string} ifsc_code
|
|
593
|
+
* @property {number} [pincode]
|
|
594
|
+
* @property {string} [state]
|
|
595
|
+
*/
|
|
596
|
+
|
|
597
|
+
/**
|
|
598
|
+
* @typedef PayoutCustomer
|
|
599
|
+
* @property {string} [email] - Customer Email
|
|
600
|
+
* @property {number} [id] - Customer ID
|
|
601
|
+
* @property {string} [mobile] - Customer Mobile No
|
|
602
|
+
* @property {string} [name] - Customer Name
|
|
603
|
+
* @property {string} [unique_external_id] - Unique_external_id
|
|
604
|
+
*/
|
|
605
|
+
|
|
606
|
+
/**
|
|
607
|
+
* @typedef PayoutMoreAttributes
|
|
608
|
+
* @property {string} [account_holder] - Account Holder Name
|
|
609
|
+
* @property {string} [account_no] - Account Number
|
|
610
|
+
* @property {string} [account_type] - Account Type Saving/Current
|
|
611
|
+
* @property {string} [bank_name] - Name of Bank
|
|
612
|
+
* @property {string} [branch_name] - Branch Name
|
|
613
|
+
* @property {string} [city] - City
|
|
614
|
+
* @property {string} [country] - Country
|
|
615
|
+
* @property {string} [ifsc_code] - IFSC Code
|
|
616
|
+
* @property {string} [state] - State
|
|
617
|
+
*/
|
|
618
|
+
|
|
619
|
+
/**
|
|
620
|
+
* @typedef PayoutRequest
|
|
621
|
+
* @property {string} aggregator - Aggregator Name
|
|
622
|
+
* @property {PayoutBankDetails} bank_details - Payout bank details object
|
|
623
|
+
* @property {boolean} is_active - Enable/Disable Flag Payout
|
|
624
|
+
* @property {string} transfer_type - Transafer type
|
|
625
|
+
* @property {string} unique_external_id - Unique Id of Payout
|
|
626
|
+
* @property {Object} users - Payout users object
|
|
627
|
+
*/
|
|
628
|
+
|
|
629
|
+
/**
|
|
630
|
+
* @typedef PayoutResponse
|
|
631
|
+
* @property {string} aggregator - Aggregator Name
|
|
632
|
+
* @property {Object} bank_details - Payout bank_details object
|
|
633
|
+
* @property {boolean} created - Created flag
|
|
634
|
+
* @property {boolean} is_active - Enable/DIsable Flag Payout
|
|
635
|
+
* @property {string} payment_status - Status of payment
|
|
636
|
+
* @property {Object} payouts - Payout object
|
|
637
|
+
* @property {boolean} success - Response is successful or not
|
|
638
|
+
* @property {string} transfer_type - Transfer type
|
|
639
|
+
* @property {string} unique_transfer_no - Unique transfer no
|
|
640
|
+
* @property {Object} users - Users details object
|
|
641
|
+
*/
|
|
642
|
+
|
|
643
|
+
/**
|
|
644
|
+
* @typedef PayoutsResponse
|
|
645
|
+
* @property {Payout[]} items - Contains list of PayoutSchema
|
|
646
|
+
* @property {boolean} success - Response is successful or not
|
|
647
|
+
*/
|
|
648
|
+
|
|
649
|
+
/**
|
|
650
|
+
* @typedef PollingPaymentLinkResponse
|
|
651
|
+
* @property {string} [aggregator_name] - Aggregator name
|
|
652
|
+
* @property {number} [amount] - Amount
|
|
653
|
+
* @property {number} [http_status] - HTTP status code
|
|
654
|
+
* @property {string} [message] - Message
|
|
655
|
+
* @property {string} [order_id] - Fynd order id
|
|
656
|
+
* @property {string} [payment_link_id] - Payment link id
|
|
657
|
+
* @property {string} [redirect_url] - Url to redirect to
|
|
658
|
+
* @property {string} [status] - Status of payment link
|
|
659
|
+
* @property {number} [status_code] - HTTP status code
|
|
660
|
+
* @property {boolean} [success] - Successful or failure
|
|
661
|
+
*/
|
|
662
|
+
|
|
663
|
+
/**
|
|
664
|
+
* @typedef RefundAccountResponse
|
|
665
|
+
* @property {Object} [data] - Refund account data.
|
|
666
|
+
* @property {boolean} [is_verified_flag]
|
|
667
|
+
* @property {string} message - Response message
|
|
668
|
+
* @property {boolean} success - Success or failure flag.
|
|
669
|
+
*/
|
|
670
|
+
|
|
671
|
+
/**
|
|
672
|
+
* @typedef RepaymentDetailsSerialiserPayAll
|
|
673
|
+
* @property {string} aggregator_order_id - Id of payment gateway
|
|
674
|
+
* @property {string} aggregator_transaction_id - Unique Id for the transaction
|
|
675
|
+
* @property {string} extension_order_id - Order id created in extension
|
|
676
|
+
* @property {RepaymentRequestDetails[]} [shipment_details]
|
|
677
|
+
* @property {number} total_amount - Total amount
|
|
678
|
+
*/
|
|
679
|
+
|
|
680
|
+
/**
|
|
681
|
+
* @typedef RepaymentRequestDetails
|
|
682
|
+
* @property {string} aggregator - Name of Payment Gateway
|
|
683
|
+
* @property {string} aggregator_order_id - Id of payment gateway
|
|
684
|
+
* @property {string} aggregator_transaction_id - Unique Id for the transaction
|
|
685
|
+
* @property {number} amount - Amount to paid back
|
|
686
|
+
* @property {string} current_status - Status
|
|
687
|
+
* @property {string} fwd_shipment_id - Purchase Shipment Id
|
|
688
|
+
* @property {string} merchant_order_id - Merchant's Order Id
|
|
689
|
+
* @property {number} outstanding_details_id - Outstanding details ID
|
|
690
|
+
* @property {string} payment_mode - Payment Mode
|
|
691
|
+
* @property {string} payment_mode_identifier - Payment Mode Id
|
|
692
|
+
*/
|
|
693
|
+
|
|
694
|
+
/**
|
|
695
|
+
* @typedef RepaymentResponse
|
|
696
|
+
* @property {Object} data
|
|
697
|
+
* @property {boolean} success - Success/Failure of the transaction
|
|
698
|
+
*/
|
|
699
|
+
|
|
700
|
+
/**
|
|
701
|
+
* @typedef ResendOrCancelPaymentRequest
|
|
702
|
+
* @property {string} [device_id] - EDC machine Unique Identifier
|
|
703
|
+
* @property {string} order_id - Unique order id
|
|
704
|
+
* @property {string} request_type - Either resend or cancel
|
|
705
|
+
*/
|
|
706
|
+
|
|
707
|
+
/**
|
|
708
|
+
* @typedef ResendOrCancelPaymentResponse
|
|
709
|
+
* @property {LinkStatus} data - Data about link action status.
|
|
710
|
+
* @property {boolean} success - Response is successful or not.
|
|
711
|
+
*/
|
|
712
|
+
|
|
713
|
+
/**
|
|
714
|
+
* @typedef ResendPaymentLinkResponse
|
|
715
|
+
* @property {string} message - Message
|
|
716
|
+
* @property {number} [polling_timeout] - Polling request timeout
|
|
717
|
+
* @property {number} status_code - HTTP status code
|
|
718
|
+
* @property {boolean} success - Successful or failure
|
|
719
|
+
*/
|
|
720
|
+
|
|
721
|
+
/**
|
|
722
|
+
* @typedef RevokeOAuthToken
|
|
723
|
+
* @property {string} message - The confirmation message of the token revoke.
|
|
724
|
+
* @property {boolean} success - Response is successful or not
|
|
725
|
+
*/
|
|
726
|
+
|
|
727
|
+
/**
|
|
728
|
+
* @typedef RootPaymentMode
|
|
729
|
+
* @property {boolean} [add_card_enabled] - Annonymous card flag
|
|
730
|
+
* @property {string} [aggregator_name] - Dispaly Priority
|
|
731
|
+
* @property {boolean} [anonymous_enable] - Annonymous card flag
|
|
732
|
+
* @property {string} display_name - Payment mode display name
|
|
733
|
+
* @property {number} display_priority - Dispaly Priority
|
|
734
|
+
* @property {boolean} [is_pay_by_card_pl] - This flag will be true in case of
|
|
735
|
+
* Payment link payment through card
|
|
736
|
+
* @property {PaymentModeList[]} [list] - Payment mode
|
|
737
|
+
* @property {string} name - Payment mode name
|
|
738
|
+
* @property {boolean} [save_card] - Card save or not
|
|
739
|
+
*/
|
|
740
|
+
|
|
741
|
+
/**
|
|
742
|
+
* @typedef SaveSubscriptionSetupIntentRequest
|
|
743
|
+
* @property {string} unique_external_id - Unique id i.e company:id
|
|
744
|
+
*/
|
|
745
|
+
|
|
746
|
+
/**
|
|
747
|
+
* @typedef SaveSubscriptionSetupIntentResponse
|
|
748
|
+
* @property {Object} data - Subscription Payment Method Object
|
|
749
|
+
* @property {boolean} success - Response is successful or not
|
|
750
|
+
*/
|
|
751
|
+
|
|
752
|
+
/**
|
|
753
|
+
* @typedef SetCODForUserRequest
|
|
754
|
+
* @property {boolean} is_active - Either true or false
|
|
755
|
+
* @property {string} merchant_user_id - Merchant User id
|
|
756
|
+
* @property {string} mobileno - Mobile No. of User
|
|
757
|
+
*/
|
|
758
|
+
|
|
759
|
+
/**
|
|
760
|
+
* @typedef SetCODOptionResponse
|
|
761
|
+
* @property {string} message - Message
|
|
762
|
+
* @property {boolean} success - Response is successful or not
|
|
763
|
+
*/
|
|
764
|
+
|
|
765
|
+
/**
|
|
766
|
+
* @typedef StatisticsData
|
|
767
|
+
* @property {number} active_device_count - No of active devices
|
|
768
|
+
* @property {number} inactive_device_count - No of inactive devices
|
|
769
|
+
*/
|
|
770
|
+
|
|
771
|
+
/**
|
|
772
|
+
* @typedef SubscriptionConfigResponse
|
|
773
|
+
* @property {string} aggregator - Aggregator Name
|
|
774
|
+
* @property {Object} config - Aggregator Config
|
|
775
|
+
* @property {boolean} success - Response is successful or not
|
|
776
|
+
*/
|
|
777
|
+
|
|
778
|
+
/**
|
|
779
|
+
* @typedef SubscriptionPaymentMethodResponse
|
|
780
|
+
* @property {Object[]} data - Subscription Payment Method Object
|
|
781
|
+
* @property {boolean} success - Response is successful or not
|
|
782
|
+
*/
|
|
783
|
+
|
|
784
|
+
/**
|
|
785
|
+
* @typedef UpdatePayoutRequest
|
|
786
|
+
* @property {boolean} is_active - Enable/Disable Flag Payout
|
|
787
|
+
* @property {boolean} is_default - Enable/Disable Default Payout
|
|
788
|
+
* @property {string} unique_external_id - Unique Id of Payout
|
|
789
|
+
*/
|
|
790
|
+
|
|
791
|
+
/**
|
|
792
|
+
* @typedef UpdatePayoutResponse
|
|
793
|
+
* @property {boolean} is_active - Enable/DIsable Flag Payout
|
|
794
|
+
* @property {boolean} is_default - Enable/Disable Default Payout
|
|
795
|
+
* @property {boolean} success - Response is successful or not
|
|
796
|
+
*/
|
|
797
|
+
|
|
798
|
+
/**
|
|
799
|
+
* @typedef ValidateCustomerRequest
|
|
800
|
+
* @property {string} aggregator - Payment gateway name in camel case i.e Simpl, Rupifi
|
|
801
|
+
* @property {Object} [billing_address] - Extra meta fields.
|
|
802
|
+
* @property {Object} [delivery_address] - Extra meta fields.
|
|
803
|
+
* @property {Object} [merchant_params] - Extra meta fields.
|
|
804
|
+
* @property {Object[]} [order_items] - Extra meta fields.
|
|
805
|
+
* @property {string} [payload] - Hashed payload string.
|
|
806
|
+
* @property {string} phone_number - User mobile number without country code.
|
|
807
|
+
* @property {number} transaction_amount_in_paise - Payable amount in paise
|
|
808
|
+
*/
|
|
809
|
+
|
|
810
|
+
/**
|
|
811
|
+
* @typedef ValidateCustomerResponse
|
|
812
|
+
* @property {Object} data - Payment gateway response data
|
|
813
|
+
* @property {string} message - Error or success message.
|
|
814
|
+
* @property {boolean} success - Response is successful or not
|
|
815
|
+
*/
|
|
816
|
+
|
|
817
|
+
class PaymentPlatformModel {
|
|
818
|
+
/** @returns {AddBeneficiaryDetailsOTPRequest} */
|
|
4
819
|
static AddBeneficiaryDetailsOTPRequest() {
|
|
5
820
|
return Joi.object({
|
|
6
|
-
details:
|
|
821
|
+
details: PaymentPlatformModel.BankDetailsForOTP().required(),
|
|
7
822
|
order_id: Joi.string().allow("").required(),
|
|
8
823
|
});
|
|
9
824
|
}
|
|
825
|
+
|
|
826
|
+
/** @returns {BankDetailsForOTP} */
|
|
10
827
|
static BankDetailsForOTP() {
|
|
11
828
|
return Joi.object({
|
|
12
829
|
account_holder: Joi.string().allow("").required(),
|
|
@@ -16,11 +833,15 @@ class PaymentModel {
|
|
|
16
833
|
ifsc_code: Joi.string().allow("").required(),
|
|
17
834
|
});
|
|
18
835
|
}
|
|
836
|
+
|
|
837
|
+
/** @returns {CancelOrResendPaymentLinkRequest} */
|
|
19
838
|
static CancelOrResendPaymentLinkRequest() {
|
|
20
839
|
return Joi.object({
|
|
21
840
|
payment_link_id: Joi.string().allow("").required(),
|
|
22
841
|
});
|
|
23
842
|
}
|
|
843
|
+
|
|
844
|
+
/** @returns {CancelPaymentLinkResponse} */
|
|
24
845
|
static CancelPaymentLinkResponse() {
|
|
25
846
|
return Joi.object({
|
|
26
847
|
message: Joi.string().allow("").required(),
|
|
@@ -28,6 +849,8 @@ class PaymentModel {
|
|
|
28
849
|
success: Joi.boolean().required(),
|
|
29
850
|
});
|
|
30
851
|
}
|
|
852
|
+
|
|
853
|
+
/** @returns {CODdata} */
|
|
31
854
|
static CODdata() {
|
|
32
855
|
return Joi.object({
|
|
33
856
|
is_active: Joi.boolean().required(),
|
|
@@ -37,6 +860,8 @@ class PaymentModel {
|
|
|
37
860
|
user_id: Joi.string().allow("").required(),
|
|
38
861
|
});
|
|
39
862
|
}
|
|
863
|
+
|
|
864
|
+
/** @returns {Code} */
|
|
40
865
|
static Code() {
|
|
41
866
|
return Joi.object({
|
|
42
867
|
code: Joi.string().allow("").required(),
|
|
@@ -44,6 +869,8 @@ class PaymentModel {
|
|
|
44
869
|
name: Joi.string().allow("").required(),
|
|
45
870
|
});
|
|
46
871
|
}
|
|
872
|
+
|
|
873
|
+
/** @returns {CreatePaymentLinkMeta} */
|
|
47
874
|
static CreatePaymentLinkMeta() {
|
|
48
875
|
return Joi.object({
|
|
49
876
|
amount: Joi.string().allow("").required(),
|
|
@@ -53,16 +880,20 @@ class PaymentModel {
|
|
|
53
880
|
pincode: Joi.string().allow("").required(),
|
|
54
881
|
});
|
|
55
882
|
}
|
|
883
|
+
|
|
884
|
+
/** @returns {CreatePaymentLinkRequest} */
|
|
56
885
|
static CreatePaymentLinkRequest() {
|
|
57
886
|
return Joi.object({
|
|
58
887
|
amount: Joi.number().required(),
|
|
59
888
|
description: Joi.string().allow("").allow(null),
|
|
60
889
|
email: Joi.string().allow("").required(),
|
|
61
890
|
external_order_id: Joi.string().allow("").required(),
|
|
62
|
-
meta:
|
|
891
|
+
meta: PaymentPlatformModel.CreatePaymentLinkMeta().required(),
|
|
63
892
|
mobile_number: Joi.string().allow("").required(),
|
|
64
893
|
});
|
|
65
894
|
}
|
|
895
|
+
|
|
896
|
+
/** @returns {CreatePaymentLinkResponse} */
|
|
66
897
|
static CreatePaymentLinkResponse() {
|
|
67
898
|
return Joi.object({
|
|
68
899
|
message: Joi.string().allow("").required(),
|
|
@@ -73,16 +904,22 @@ class PaymentModel {
|
|
|
73
904
|
success: Joi.boolean().required(),
|
|
74
905
|
});
|
|
75
906
|
}
|
|
907
|
+
|
|
908
|
+
/** @returns {DeletePayoutResponse} */
|
|
76
909
|
static DeletePayoutResponse() {
|
|
77
910
|
return Joi.object({
|
|
78
911
|
success: Joi.boolean().required(),
|
|
79
912
|
});
|
|
80
913
|
}
|
|
914
|
+
|
|
915
|
+
/** @returns {DeleteSubscriptionPaymentMethodResponse} */
|
|
81
916
|
static DeleteSubscriptionPaymentMethodResponse() {
|
|
82
917
|
return Joi.object({
|
|
83
918
|
success: Joi.boolean().required(),
|
|
84
919
|
});
|
|
85
920
|
}
|
|
921
|
+
|
|
922
|
+
/** @returns {EdcAddRequest} */
|
|
86
923
|
static EdcAddRequest() {
|
|
87
924
|
return Joi.object({
|
|
88
925
|
aggregator_id: Joi.number().required(),
|
|
@@ -93,12 +930,16 @@ class PaymentModel {
|
|
|
93
930
|
terminal_serial_no: Joi.string().allow("").required(),
|
|
94
931
|
});
|
|
95
932
|
}
|
|
933
|
+
|
|
934
|
+
/** @returns {EdcAggregatorAndModelListResponse} */
|
|
96
935
|
static EdcAggregatorAndModelListResponse() {
|
|
97
936
|
return Joi.object({
|
|
98
|
-
data: Joi.array().items(
|
|
937
|
+
data: Joi.array().items(PaymentPlatformModel.EdcModelData()).required(),
|
|
99
938
|
success: Joi.boolean().required(),
|
|
100
939
|
});
|
|
101
940
|
}
|
|
941
|
+
|
|
942
|
+
/** @returns {EdcDevice} */
|
|
102
943
|
static EdcDevice() {
|
|
103
944
|
return Joi.object({
|
|
104
945
|
aggregator_id: Joi.number().required(),
|
|
@@ -114,36 +955,48 @@ class PaymentModel {
|
|
|
114
955
|
terminal_unique_identifier: Joi.string().allow("").required(),
|
|
115
956
|
});
|
|
116
957
|
}
|
|
958
|
+
|
|
959
|
+
/** @returns {EdcDeviceAddResponse} */
|
|
117
960
|
static EdcDeviceAddResponse() {
|
|
118
961
|
return Joi.object({
|
|
119
|
-
data:
|
|
962
|
+
data: PaymentPlatformModel.EdcDevice().required(),
|
|
120
963
|
success: Joi.boolean().required(),
|
|
121
964
|
});
|
|
122
965
|
}
|
|
966
|
+
|
|
967
|
+
/** @returns {EdcDeviceDetailsResponse} */
|
|
123
968
|
static EdcDeviceDetailsResponse() {
|
|
124
969
|
return Joi.object({
|
|
125
|
-
data:
|
|
970
|
+
data: PaymentPlatformModel.EdcDevice().required(),
|
|
126
971
|
success: Joi.boolean().required(),
|
|
127
972
|
});
|
|
128
973
|
}
|
|
974
|
+
|
|
975
|
+
/** @returns {EdcDeviceListResponse} */
|
|
129
976
|
static EdcDeviceListResponse() {
|
|
130
977
|
return Joi.object({
|
|
131
|
-
items: Joi.array().items(
|
|
132
|
-
page:
|
|
978
|
+
items: Joi.array().items(PaymentPlatformModel.EdcDevice()).required(),
|
|
979
|
+
page: PaymentPlatformModel.Page().required(),
|
|
133
980
|
success: Joi.boolean().required(),
|
|
134
981
|
});
|
|
135
982
|
}
|
|
983
|
+
|
|
984
|
+
/** @returns {EdcDeviceStatsResponse} */
|
|
136
985
|
static EdcDeviceStatsResponse() {
|
|
137
986
|
return Joi.object({
|
|
138
|
-
statistics:
|
|
987
|
+
statistics: PaymentPlatformModel.StatisticsData().required(),
|
|
139
988
|
success: Joi.boolean().required(),
|
|
140
989
|
});
|
|
141
990
|
}
|
|
991
|
+
|
|
992
|
+
/** @returns {EdcDeviceUpdateResponse} */
|
|
142
993
|
static EdcDeviceUpdateResponse() {
|
|
143
994
|
return Joi.object({
|
|
144
995
|
success: Joi.boolean().required(),
|
|
145
996
|
});
|
|
146
997
|
}
|
|
998
|
+
|
|
999
|
+
/** @returns {EdcModelData} */
|
|
147
1000
|
static EdcModelData() {
|
|
148
1001
|
return Joi.object({
|
|
149
1002
|
aggregator: Joi.string().allow("").required(),
|
|
@@ -151,6 +1004,8 @@ class PaymentModel {
|
|
|
151
1004
|
models: Joi.array().items(Joi.string().allow("")).required(),
|
|
152
1005
|
});
|
|
153
1006
|
}
|
|
1007
|
+
|
|
1008
|
+
/** @returns {EdcUpdateRequest} */
|
|
154
1009
|
static EdcUpdateRequest() {
|
|
155
1010
|
return Joi.object({
|
|
156
1011
|
aggregator_id: Joi.number(),
|
|
@@ -162,12 +1017,16 @@ class PaymentModel {
|
|
|
162
1017
|
store_id: Joi.number(),
|
|
163
1018
|
});
|
|
164
1019
|
}
|
|
1020
|
+
|
|
1021
|
+
/** @returns {ErrorCodeAndDescription} */
|
|
165
1022
|
static ErrorCodeAndDescription() {
|
|
166
1023
|
return Joi.object({
|
|
167
1024
|
code: Joi.string().allow("").required(),
|
|
168
1025
|
description: Joi.string().allow("").required(),
|
|
169
1026
|
});
|
|
170
1027
|
}
|
|
1028
|
+
|
|
1029
|
+
/** @returns {ErrorCodeDescription} */
|
|
171
1030
|
static ErrorCodeDescription() {
|
|
172
1031
|
return Joi.object({
|
|
173
1032
|
code: Joi.string().allow("").required(),
|
|
@@ -175,6 +1034,8 @@ class PaymentModel {
|
|
|
175
1034
|
success: Joi.boolean().required(),
|
|
176
1035
|
});
|
|
177
1036
|
}
|
|
1037
|
+
|
|
1038
|
+
/** @returns {ErrorDescription} */
|
|
178
1039
|
static ErrorDescription() {
|
|
179
1040
|
return Joi.object({
|
|
180
1041
|
amount: Joi.number().allow(null),
|
|
@@ -187,31 +1048,41 @@ class PaymentModel {
|
|
|
187
1048
|
payment_transaction_id: Joi.string().allow("").allow(null),
|
|
188
1049
|
});
|
|
189
1050
|
}
|
|
1051
|
+
|
|
1052
|
+
/** @returns {ErrorResponse} */
|
|
190
1053
|
static ErrorResponse() {
|
|
191
1054
|
return Joi.object({
|
|
192
|
-
error:
|
|
1055
|
+
error: PaymentPlatformModel.ErrorDescription(),
|
|
193
1056
|
message: Joi.string().allow("").required(),
|
|
194
1057
|
status_code: Joi.number().required(),
|
|
195
1058
|
success: Joi.boolean().required(),
|
|
196
1059
|
});
|
|
197
1060
|
}
|
|
1061
|
+
|
|
1062
|
+
/** @returns {GetOauthUrlResponse} */
|
|
198
1063
|
static GetOauthUrlResponse() {
|
|
199
1064
|
return Joi.object({
|
|
200
1065
|
success: Joi.boolean().required(),
|
|
201
1066
|
url: Joi.string().allow("").required(),
|
|
202
1067
|
});
|
|
203
1068
|
}
|
|
1069
|
+
|
|
1070
|
+
/** @returns {GetPaymentCode} */
|
|
204
1071
|
static GetPaymentCode() {
|
|
205
1072
|
return Joi.object({
|
|
206
|
-
method_code:
|
|
1073
|
+
method_code: PaymentPlatformModel.PaymentCode().required(),
|
|
207
1074
|
});
|
|
208
1075
|
}
|
|
1076
|
+
|
|
1077
|
+
/** @returns {GetPaymentCodeResponse} */
|
|
209
1078
|
static GetPaymentCodeResponse() {
|
|
210
1079
|
return Joi.object({
|
|
211
|
-
data:
|
|
1080
|
+
data: PaymentPlatformModel.GetPaymentCode().required(),
|
|
212
1081
|
success: Joi.boolean().required(),
|
|
213
1082
|
});
|
|
214
1083
|
}
|
|
1084
|
+
|
|
1085
|
+
/** @returns {GetPaymentLinkResponse} */
|
|
215
1086
|
static GetPaymentLinkResponse() {
|
|
216
1087
|
return Joi.object({
|
|
217
1088
|
amount: Joi.number().allow(null),
|
|
@@ -225,18 +1096,24 @@ class PaymentModel {
|
|
|
225
1096
|
success: Joi.boolean().required(),
|
|
226
1097
|
});
|
|
227
1098
|
}
|
|
1099
|
+
|
|
1100
|
+
/** @returns {GetUserCODLimitResponse} */
|
|
228
1101
|
static GetUserCODLimitResponse() {
|
|
229
1102
|
return Joi.object({
|
|
230
1103
|
success: Joi.boolean().required(),
|
|
231
|
-
user_cod_data:
|
|
1104
|
+
user_cod_data: PaymentPlatformModel.CODdata().required(),
|
|
232
1105
|
});
|
|
233
1106
|
}
|
|
1107
|
+
|
|
1108
|
+
/** @returns {HttpErrorCodeAndResponse} */
|
|
234
1109
|
static HttpErrorCodeAndResponse() {
|
|
235
1110
|
return Joi.object({
|
|
236
|
-
error:
|
|
1111
|
+
error: PaymentPlatformModel.ErrorCodeAndDescription().required(),
|
|
237
1112
|
success: Joi.boolean().required(),
|
|
238
1113
|
});
|
|
239
1114
|
}
|
|
1115
|
+
|
|
1116
|
+
/** @returns {IfscCodeResponse} */
|
|
240
1117
|
static IfscCodeResponse() {
|
|
241
1118
|
return Joi.object({
|
|
242
1119
|
bank_name: Joi.string().allow("").required(),
|
|
@@ -244,26 +1121,34 @@ class PaymentModel {
|
|
|
244
1121
|
success: Joi.boolean(),
|
|
245
1122
|
});
|
|
246
1123
|
}
|
|
1124
|
+
|
|
1125
|
+
/** @returns {IntentApp} */
|
|
247
1126
|
static IntentApp() {
|
|
248
1127
|
return Joi.object({
|
|
249
1128
|
code: Joi.string().allow("").allow(null),
|
|
250
1129
|
display_name: Joi.string().allow("").allow(null),
|
|
251
|
-
logos:
|
|
1130
|
+
logos: PaymentPlatformModel.PaymentModeLogo(),
|
|
252
1131
|
package_name: Joi.string().allow("").allow(null),
|
|
253
1132
|
});
|
|
254
1133
|
}
|
|
1134
|
+
|
|
1135
|
+
/** @returns {IntentAppErrorList} */
|
|
255
1136
|
static IntentAppErrorList() {
|
|
256
1137
|
return Joi.object({
|
|
257
1138
|
code: Joi.string().allow("").allow(null),
|
|
258
1139
|
package_name: Joi.string().allow("").allow(null),
|
|
259
1140
|
});
|
|
260
1141
|
}
|
|
1142
|
+
|
|
1143
|
+
/** @returns {LinkStatus} */
|
|
261
1144
|
static LinkStatus() {
|
|
262
1145
|
return Joi.object({
|
|
263
1146
|
message: Joi.string().allow("").required(),
|
|
264
1147
|
status: Joi.boolean().required(),
|
|
265
1148
|
});
|
|
266
1149
|
}
|
|
1150
|
+
|
|
1151
|
+
/** @returns {MerchantOnBoardingRequest} */
|
|
267
1152
|
static MerchantOnBoardingRequest() {
|
|
268
1153
|
return Joi.object({
|
|
269
1154
|
aggregator: Joi.string().allow("").required(),
|
|
@@ -273,12 +1158,16 @@ class PaymentModel {
|
|
|
273
1158
|
user_id: Joi.string().allow("").required(),
|
|
274
1159
|
});
|
|
275
1160
|
}
|
|
1161
|
+
|
|
1162
|
+
/** @returns {MerchantOnBoardingResponse} */
|
|
276
1163
|
static MerchantOnBoardingResponse() {
|
|
277
1164
|
return Joi.object({
|
|
278
1165
|
data: Joi.any().required(),
|
|
279
1166
|
success: Joi.boolean().required(),
|
|
280
1167
|
});
|
|
281
1168
|
}
|
|
1169
|
+
|
|
1170
|
+
/** @returns {MultiTenderPaymentMeta} */
|
|
282
1171
|
static MultiTenderPaymentMeta() {
|
|
283
1172
|
return Joi.object({
|
|
284
1173
|
current_status: Joi.string().allow(""),
|
|
@@ -288,14 +1177,18 @@ class PaymentModel {
|
|
|
288
1177
|
payment_id: Joi.string().allow(""),
|
|
289
1178
|
});
|
|
290
1179
|
}
|
|
1180
|
+
|
|
1181
|
+
/** @returns {MultiTenderPaymentMethod} */
|
|
291
1182
|
static MultiTenderPaymentMethod() {
|
|
292
1183
|
return Joi.object({
|
|
293
1184
|
amount: Joi.number().required(),
|
|
294
|
-
meta:
|
|
1185
|
+
meta: PaymentPlatformModel.MultiTenderPaymentMeta(),
|
|
295
1186
|
mode: Joi.string().allow("").required(),
|
|
296
1187
|
name: Joi.string().allow(""),
|
|
297
1188
|
});
|
|
298
1189
|
}
|
|
1190
|
+
|
|
1191
|
+
/** @returns {NotFoundResourceError} */
|
|
299
1192
|
static NotFoundResourceError() {
|
|
300
1193
|
return Joi.object({
|
|
301
1194
|
code: Joi.string().allow("").required(),
|
|
@@ -303,6 +1196,8 @@ class PaymentModel {
|
|
|
303
1196
|
success: Joi.boolean().required(),
|
|
304
1197
|
});
|
|
305
1198
|
}
|
|
1199
|
+
|
|
1200
|
+
/** @returns {OrderBeneficiaryDetails} */
|
|
306
1201
|
static OrderBeneficiaryDetails() {
|
|
307
1202
|
return Joi.object({
|
|
308
1203
|
account_holder: Joi.string().allow("").required(),
|
|
@@ -326,12 +1221,18 @@ class PaymentModel {
|
|
|
326
1221
|
transfer_mode: Joi.string().allow("").required(),
|
|
327
1222
|
});
|
|
328
1223
|
}
|
|
1224
|
+
|
|
1225
|
+
/** @returns {OrderBeneficiaryResponse} */
|
|
329
1226
|
static OrderBeneficiaryResponse() {
|
|
330
1227
|
return Joi.object({
|
|
331
|
-
beneficiaries: Joi.array().items(
|
|
1228
|
+
beneficiaries: Joi.array().items(
|
|
1229
|
+
PaymentPlatformModel.OrderBeneficiaryDetails()
|
|
1230
|
+
),
|
|
332
1231
|
show_beneficiary_details: Joi.boolean(),
|
|
333
1232
|
});
|
|
334
1233
|
}
|
|
1234
|
+
|
|
1235
|
+
/** @returns {Page} */
|
|
335
1236
|
static Page() {
|
|
336
1237
|
return Joi.object({
|
|
337
1238
|
current: Joi.number(),
|
|
@@ -343,22 +1244,28 @@ class PaymentModel {
|
|
|
343
1244
|
type: Joi.string().allow("").required(),
|
|
344
1245
|
});
|
|
345
1246
|
}
|
|
1247
|
+
|
|
1248
|
+
/** @returns {PaymentCode} */
|
|
346
1249
|
static PaymentCode() {
|
|
347
1250
|
return Joi.object({
|
|
348
|
-
codes:
|
|
1251
|
+
codes: PaymentPlatformModel.Code().required(),
|
|
349
1252
|
name: Joi.string().allow("").required(),
|
|
350
1253
|
networks: Joi.string().allow("").required(),
|
|
351
1254
|
types: Joi.string().allow("").required(),
|
|
352
1255
|
});
|
|
353
1256
|
}
|
|
1257
|
+
|
|
1258
|
+
/** @returns {PaymentConfirmationRequest} */
|
|
354
1259
|
static PaymentConfirmationRequest() {
|
|
355
1260
|
return Joi.object({
|
|
356
1261
|
order_id: Joi.string().allow("").required(),
|
|
357
1262
|
payment_methods: Joi.array()
|
|
358
|
-
.items(
|
|
1263
|
+
.items(PaymentPlatformModel.MultiTenderPaymentMethod())
|
|
359
1264
|
.required(),
|
|
360
1265
|
});
|
|
361
1266
|
}
|
|
1267
|
+
|
|
1268
|
+
/** @returns {PaymentConfirmationResponse} */
|
|
362
1269
|
static PaymentConfirmationResponse() {
|
|
363
1270
|
return Joi.object({
|
|
364
1271
|
message: Joi.string().allow("").required(),
|
|
@@ -366,6 +1273,8 @@ class PaymentModel {
|
|
|
366
1273
|
success: Joi.boolean().required(),
|
|
367
1274
|
});
|
|
368
1275
|
}
|
|
1276
|
+
|
|
1277
|
+
/** @returns {PaymentGatewayConfig} */
|
|
369
1278
|
static PaymentGatewayConfig() {
|
|
370
1279
|
return Joi.object({
|
|
371
1280
|
config_type: Joi.string().allow("").required(),
|
|
@@ -375,13 +1284,17 @@ class PaymentModel {
|
|
|
375
1284
|
secret: Joi.string().allow("").required(),
|
|
376
1285
|
});
|
|
377
1286
|
}
|
|
1287
|
+
|
|
1288
|
+
/** @returns {PaymentGatewayConfigRequest} */
|
|
378
1289
|
static PaymentGatewayConfigRequest() {
|
|
379
1290
|
return Joi.object({
|
|
380
|
-
aggregator_name:
|
|
1291
|
+
aggregator_name: PaymentPlatformModel.PaymentGatewayConfig(),
|
|
381
1292
|
app_id: Joi.string().allow("").required(),
|
|
382
1293
|
is_active: Joi.boolean().allow(null),
|
|
383
1294
|
});
|
|
384
1295
|
}
|
|
1296
|
+
|
|
1297
|
+
/** @returns {PaymentGatewayConfigResponse} */
|
|
385
1298
|
static PaymentGatewayConfigResponse() {
|
|
386
1299
|
return Joi.object({
|
|
387
1300
|
aggregators: Joi.array().items(Joi.any()),
|
|
@@ -392,12 +1305,16 @@ class PaymentModel {
|
|
|
392
1305
|
success: Joi.boolean().required(),
|
|
393
1306
|
});
|
|
394
1307
|
}
|
|
1308
|
+
|
|
1309
|
+
/** @returns {PaymentGatewayToBeReviewed} */
|
|
395
1310
|
static PaymentGatewayToBeReviewed() {
|
|
396
1311
|
return Joi.object({
|
|
397
1312
|
aggregator: Joi.array().items(Joi.string().allow("")).required(),
|
|
398
1313
|
success: Joi.boolean().required(),
|
|
399
1314
|
});
|
|
400
1315
|
}
|
|
1316
|
+
|
|
1317
|
+
/** @returns {PaymentInitializationRequest} */
|
|
401
1318
|
static PaymentInitializationRequest() {
|
|
402
1319
|
return Joi.object({
|
|
403
1320
|
aggregator: Joi.string().allow("").required(),
|
|
@@ -415,6 +1332,8 @@ class PaymentModel {
|
|
|
415
1332
|
vpa: Joi.string().allow("").allow(null),
|
|
416
1333
|
});
|
|
417
1334
|
}
|
|
1335
|
+
|
|
1336
|
+
/** @returns {PaymentInitializationResponse} */
|
|
418
1337
|
static PaymentInitializationResponse() {
|
|
419
1338
|
return Joi.object({
|
|
420
1339
|
aggregator: Joi.string().allow("").required(),
|
|
@@ -436,6 +1355,8 @@ class PaymentModel {
|
|
|
436
1355
|
vpa: Joi.string().allow("").allow(null),
|
|
437
1356
|
});
|
|
438
1357
|
}
|
|
1358
|
+
|
|
1359
|
+
/** @returns {PaymentModeList} */
|
|
439
1360
|
static PaymentModeList() {
|
|
440
1361
|
return Joi.object({
|
|
441
1362
|
aggregator_name: Joi.string().allow("").required(),
|
|
@@ -460,13 +1381,13 @@ class PaymentModel {
|
|
|
460
1381
|
exp_year: Joi.number().allow(null),
|
|
461
1382
|
expired: Joi.boolean().allow(null),
|
|
462
1383
|
fynd_vpa: Joi.string().allow("").allow(null),
|
|
463
|
-
intent_app: Joi.array().items(
|
|
1384
|
+
intent_app: Joi.array().items(PaymentPlatformModel.IntentApp()),
|
|
464
1385
|
intent_app_error_dict_list: Joi.array().items(
|
|
465
|
-
|
|
1386
|
+
PaymentPlatformModel.IntentAppErrorList()
|
|
466
1387
|
),
|
|
467
1388
|
intent_app_error_list: Joi.array().items(Joi.string().allow("")),
|
|
468
1389
|
intent_flow: Joi.boolean().allow(null),
|
|
469
|
-
logo_url:
|
|
1390
|
+
logo_url: PaymentPlatformModel.PaymentModeLogo(),
|
|
470
1391
|
merchant_code: Joi.string().allow("").allow(null),
|
|
471
1392
|
name: Joi.string().allow("").allow(null),
|
|
472
1393
|
nickname: Joi.string().allow("").allow(null),
|
|
@@ -475,12 +1396,16 @@ class PaymentModel {
|
|
|
475
1396
|
timeout: Joi.number().allow(null),
|
|
476
1397
|
});
|
|
477
1398
|
}
|
|
1399
|
+
|
|
1400
|
+
/** @returns {PaymentModeLogo} */
|
|
478
1401
|
static PaymentModeLogo() {
|
|
479
1402
|
return Joi.object({
|
|
480
1403
|
large: Joi.string().allow("").required(),
|
|
481
1404
|
small: Joi.string().allow("").required(),
|
|
482
1405
|
});
|
|
483
1406
|
}
|
|
1407
|
+
|
|
1408
|
+
/** @returns {PaymentObjectListSerializer} */
|
|
484
1409
|
static PaymentObjectListSerializer() {
|
|
485
1410
|
return Joi.object({
|
|
486
1411
|
aggregator_payment_object: Joi.any().allow(null),
|
|
@@ -503,41 +1428,53 @@ class PaymentModel {
|
|
|
503
1428
|
user_object: Joi.any().required(),
|
|
504
1429
|
});
|
|
505
1430
|
}
|
|
1431
|
+
|
|
1432
|
+
/** @returns {PaymentOptions} */
|
|
506
1433
|
static PaymentOptions() {
|
|
507
1434
|
return Joi.object({
|
|
508
1435
|
payment_option: Joi.array()
|
|
509
|
-
.items(
|
|
1436
|
+
.items(PaymentPlatformModel.RootPaymentMode())
|
|
510
1437
|
.required(),
|
|
511
1438
|
});
|
|
512
1439
|
}
|
|
1440
|
+
|
|
1441
|
+
/** @returns {PaymentOptionsResponse} */
|
|
513
1442
|
static PaymentOptionsResponse() {
|
|
514
1443
|
return Joi.object({
|
|
515
|
-
payment_options:
|
|
1444
|
+
payment_options: PaymentPlatformModel.PaymentOptions().required(),
|
|
516
1445
|
success: Joi.boolean().required(),
|
|
517
1446
|
});
|
|
518
1447
|
}
|
|
1448
|
+
|
|
1449
|
+
/** @returns {PaymentStatusBulkHandlerRequest} */
|
|
519
1450
|
static PaymentStatusBulkHandlerRequest() {
|
|
520
1451
|
return Joi.object({
|
|
521
1452
|
merchant_order_id: Joi.array().items(Joi.string().allow("")).required(),
|
|
522
1453
|
});
|
|
523
1454
|
}
|
|
1455
|
+
|
|
1456
|
+
/** @returns {PaymentStatusBulkHandlerResponse} */
|
|
524
1457
|
static PaymentStatusBulkHandlerResponse() {
|
|
525
1458
|
return Joi.object({
|
|
526
1459
|
count: Joi.number(),
|
|
527
|
-
data: Joi.array().items(
|
|
1460
|
+
data: Joi.array().items(PaymentPlatformModel.PaymentStatusObject()),
|
|
528
1461
|
error: Joi.string().allow(""),
|
|
529
1462
|
status: Joi.number().required(),
|
|
530
1463
|
success: Joi.string().allow("").required(),
|
|
531
1464
|
});
|
|
532
1465
|
}
|
|
1466
|
+
|
|
1467
|
+
/** @returns {PaymentStatusObject} */
|
|
533
1468
|
static PaymentStatusObject() {
|
|
534
1469
|
return Joi.object({
|
|
535
1470
|
merchant_order_id: Joi.string().allow("").required(),
|
|
536
1471
|
payment_object_list: Joi.array().items(
|
|
537
|
-
|
|
1472
|
+
PaymentPlatformModel.PaymentObjectListSerializer()
|
|
538
1473
|
),
|
|
539
1474
|
});
|
|
540
1475
|
}
|
|
1476
|
+
|
|
1477
|
+
/** @returns {PaymentStatusUpdateRequest} */
|
|
541
1478
|
static PaymentStatusUpdateRequest() {
|
|
542
1479
|
return Joi.object({
|
|
543
1480
|
aggregator: Joi.string().allow("").required(),
|
|
@@ -555,6 +1492,8 @@ class PaymentModel {
|
|
|
555
1492
|
vpa: Joi.string().allow(""),
|
|
556
1493
|
});
|
|
557
1494
|
}
|
|
1495
|
+
|
|
1496
|
+
/** @returns {PaymentStatusUpdateResponse} */
|
|
558
1497
|
static PaymentStatusUpdateResponse() {
|
|
559
1498
|
return Joi.object({
|
|
560
1499
|
aggregator_name: Joi.string().allow("").required(),
|
|
@@ -564,17 +1503,23 @@ class PaymentModel {
|
|
|
564
1503
|
success: Joi.boolean().allow(null),
|
|
565
1504
|
});
|
|
566
1505
|
}
|
|
1506
|
+
|
|
1507
|
+
/** @returns {Payout} */
|
|
567
1508
|
static Payout() {
|
|
568
1509
|
return Joi.object({
|
|
569
|
-
customers:
|
|
1510
|
+
customers: PaymentPlatformModel.PayoutCustomer().required(),
|
|
570
1511
|
is_active: Joi.boolean().required(),
|
|
571
1512
|
is_default: Joi.boolean().required(),
|
|
572
|
-
more_attributes:
|
|
573
|
-
payouts_aggregators: Joi.array().items(
|
|
1513
|
+
more_attributes: PaymentPlatformModel.PayoutMoreAttributes().required(),
|
|
1514
|
+
payouts_aggregators: Joi.array().items(
|
|
1515
|
+
PaymentPlatformModel.PayoutAggregator()
|
|
1516
|
+
),
|
|
574
1517
|
transfer_type: Joi.string().allow("").required(),
|
|
575
1518
|
unique_transfer_no: Joi.string().allow("").required(),
|
|
576
1519
|
});
|
|
577
1520
|
}
|
|
1521
|
+
|
|
1522
|
+
/** @returns {PayoutAggregator} */
|
|
578
1523
|
static PayoutAggregator() {
|
|
579
1524
|
return Joi.object({
|
|
580
1525
|
aggregator_fund_id: Joi.number().allow(null),
|
|
@@ -582,6 +1527,8 @@ class PaymentModel {
|
|
|
582
1527
|
payout_details_id: Joi.number().allow(null),
|
|
583
1528
|
});
|
|
584
1529
|
}
|
|
1530
|
+
|
|
1531
|
+
/** @returns {PayoutBankDetails} */
|
|
585
1532
|
static PayoutBankDetails() {
|
|
586
1533
|
return Joi.object({
|
|
587
1534
|
account_holder: Joi.string().allow(""),
|
|
@@ -596,6 +1543,8 @@ class PaymentModel {
|
|
|
596
1543
|
state: Joi.string().allow(""),
|
|
597
1544
|
});
|
|
598
1545
|
}
|
|
1546
|
+
|
|
1547
|
+
/** @returns {PayoutCustomer} */
|
|
599
1548
|
static PayoutCustomer() {
|
|
600
1549
|
return Joi.object({
|
|
601
1550
|
email: Joi.string().allow("").allow(null),
|
|
@@ -605,6 +1554,8 @@ class PaymentModel {
|
|
|
605
1554
|
unique_external_id: Joi.string().allow("").allow(null),
|
|
606
1555
|
});
|
|
607
1556
|
}
|
|
1557
|
+
|
|
1558
|
+
/** @returns {PayoutMoreAttributes} */
|
|
608
1559
|
static PayoutMoreAttributes() {
|
|
609
1560
|
return Joi.object({
|
|
610
1561
|
account_holder: Joi.string().allow("").allow(null),
|
|
@@ -618,16 +1569,20 @@ class PaymentModel {
|
|
|
618
1569
|
state: Joi.string().allow("").allow(null),
|
|
619
1570
|
});
|
|
620
1571
|
}
|
|
1572
|
+
|
|
1573
|
+
/** @returns {PayoutRequest} */
|
|
621
1574
|
static PayoutRequest() {
|
|
622
1575
|
return Joi.object({
|
|
623
1576
|
aggregator: Joi.string().allow("").required(),
|
|
624
|
-
bank_details:
|
|
1577
|
+
bank_details: PaymentPlatformModel.PayoutBankDetails().required(),
|
|
625
1578
|
is_active: Joi.boolean().required(),
|
|
626
1579
|
transfer_type: Joi.string().allow("").required(),
|
|
627
1580
|
unique_external_id: Joi.string().allow("").required(),
|
|
628
1581
|
users: Joi.any().required(),
|
|
629
1582
|
});
|
|
630
1583
|
}
|
|
1584
|
+
|
|
1585
|
+
/** @returns {PayoutResponse} */
|
|
631
1586
|
static PayoutResponse() {
|
|
632
1587
|
return Joi.object({
|
|
633
1588
|
aggregator: Joi.string().allow("").required(),
|
|
@@ -642,12 +1597,16 @@ class PaymentModel {
|
|
|
642
1597
|
users: Joi.any().required(),
|
|
643
1598
|
});
|
|
644
1599
|
}
|
|
1600
|
+
|
|
1601
|
+
/** @returns {PayoutsResponse} */
|
|
645
1602
|
static PayoutsResponse() {
|
|
646
1603
|
return Joi.object({
|
|
647
|
-
items: Joi.array().items(
|
|
1604
|
+
items: Joi.array().items(PaymentPlatformModel.Payout()).required(),
|
|
648
1605
|
success: Joi.boolean().required(),
|
|
649
1606
|
});
|
|
650
1607
|
}
|
|
1608
|
+
|
|
1609
|
+
/** @returns {PollingPaymentLinkResponse} */
|
|
651
1610
|
static PollingPaymentLinkResponse() {
|
|
652
1611
|
return Joi.object({
|
|
653
1612
|
aggregator_name: Joi.string().allow("").allow(null),
|
|
@@ -662,6 +1621,8 @@ class PaymentModel {
|
|
|
662
1621
|
success: Joi.boolean().allow(null),
|
|
663
1622
|
});
|
|
664
1623
|
}
|
|
1624
|
+
|
|
1625
|
+
/** @returns {RefundAccountResponse} */
|
|
665
1626
|
static RefundAccountResponse() {
|
|
666
1627
|
return Joi.object({
|
|
667
1628
|
data: Joi.any(),
|
|
@@ -670,17 +1631,21 @@ class PaymentModel {
|
|
|
670
1631
|
success: Joi.boolean().required(),
|
|
671
1632
|
});
|
|
672
1633
|
}
|
|
1634
|
+
|
|
1635
|
+
/** @returns {RepaymentDetailsSerialiserPayAll} */
|
|
673
1636
|
static RepaymentDetailsSerialiserPayAll() {
|
|
674
1637
|
return Joi.object({
|
|
675
1638
|
aggregator_order_id: Joi.string().allow("").required(),
|
|
676
1639
|
aggregator_transaction_id: Joi.string().allow("").required(),
|
|
677
1640
|
extension_order_id: Joi.string().allow("").allow(null).required(),
|
|
678
1641
|
shipment_details: Joi.array().items(
|
|
679
|
-
|
|
1642
|
+
PaymentPlatformModel.RepaymentRequestDetails()
|
|
680
1643
|
),
|
|
681
1644
|
total_amount: Joi.number().required(),
|
|
682
1645
|
});
|
|
683
1646
|
}
|
|
1647
|
+
|
|
1648
|
+
/** @returns {RepaymentRequestDetails} */
|
|
684
1649
|
static RepaymentRequestDetails() {
|
|
685
1650
|
return Joi.object({
|
|
686
1651
|
aggregator: Joi.string().allow("").required(),
|
|
@@ -695,12 +1660,16 @@ class PaymentModel {
|
|
|
695
1660
|
payment_mode_identifier: Joi.string().allow("").required(),
|
|
696
1661
|
});
|
|
697
1662
|
}
|
|
1663
|
+
|
|
1664
|
+
/** @returns {RepaymentResponse} */
|
|
698
1665
|
static RepaymentResponse() {
|
|
699
1666
|
return Joi.object({
|
|
700
1667
|
data: Joi.any().required(),
|
|
701
1668
|
success: Joi.boolean().required(),
|
|
702
1669
|
});
|
|
703
1670
|
}
|
|
1671
|
+
|
|
1672
|
+
/** @returns {ResendOrCancelPaymentRequest} */
|
|
704
1673
|
static ResendOrCancelPaymentRequest() {
|
|
705
1674
|
return Joi.object({
|
|
706
1675
|
device_id: Joi.string().allow("").allow(null),
|
|
@@ -708,12 +1677,16 @@ class PaymentModel {
|
|
|
708
1677
|
request_type: Joi.string().allow("").required(),
|
|
709
1678
|
});
|
|
710
1679
|
}
|
|
1680
|
+
|
|
1681
|
+
/** @returns {ResendOrCancelPaymentResponse} */
|
|
711
1682
|
static ResendOrCancelPaymentResponse() {
|
|
712
1683
|
return Joi.object({
|
|
713
|
-
data:
|
|
1684
|
+
data: PaymentPlatformModel.LinkStatus().required(),
|
|
714
1685
|
success: Joi.boolean().required(),
|
|
715
1686
|
});
|
|
716
1687
|
}
|
|
1688
|
+
|
|
1689
|
+
/** @returns {ResendPaymentLinkResponse} */
|
|
717
1690
|
static ResendPaymentLinkResponse() {
|
|
718
1691
|
return Joi.object({
|
|
719
1692
|
message: Joi.string().allow("").required(),
|
|
@@ -722,12 +1695,16 @@ class PaymentModel {
|
|
|
722
1695
|
success: Joi.boolean().required(),
|
|
723
1696
|
});
|
|
724
1697
|
}
|
|
1698
|
+
|
|
1699
|
+
/** @returns {RevokeOAuthToken} */
|
|
725
1700
|
static RevokeOAuthToken() {
|
|
726
1701
|
return Joi.object({
|
|
727
1702
|
message: Joi.string().allow("").required(),
|
|
728
1703
|
success: Joi.boolean().required(),
|
|
729
1704
|
});
|
|
730
1705
|
}
|
|
1706
|
+
|
|
1707
|
+
/** @returns {RootPaymentMode} */
|
|
731
1708
|
static RootPaymentMode() {
|
|
732
1709
|
return Joi.object({
|
|
733
1710
|
add_card_enabled: Joi.boolean().allow(null),
|
|
@@ -736,22 +1713,28 @@ class PaymentModel {
|
|
|
736
1713
|
display_name: Joi.string().allow("").required(),
|
|
737
1714
|
display_priority: Joi.number().required(),
|
|
738
1715
|
is_pay_by_card_pl: Joi.boolean().allow(null),
|
|
739
|
-
list: Joi.array().items(
|
|
1716
|
+
list: Joi.array().items(PaymentPlatformModel.PaymentModeList()),
|
|
740
1717
|
name: Joi.string().allow("").required(),
|
|
741
1718
|
save_card: Joi.boolean().allow(null),
|
|
742
1719
|
});
|
|
743
1720
|
}
|
|
1721
|
+
|
|
1722
|
+
/** @returns {SaveSubscriptionSetupIntentRequest} */
|
|
744
1723
|
static SaveSubscriptionSetupIntentRequest() {
|
|
745
1724
|
return Joi.object({
|
|
746
1725
|
unique_external_id: Joi.string().allow("").required(),
|
|
747
1726
|
});
|
|
748
1727
|
}
|
|
1728
|
+
|
|
1729
|
+
/** @returns {SaveSubscriptionSetupIntentResponse} */
|
|
749
1730
|
static SaveSubscriptionSetupIntentResponse() {
|
|
750
1731
|
return Joi.object({
|
|
751
1732
|
data: Joi.any().required(),
|
|
752
1733
|
success: Joi.boolean().required(),
|
|
753
1734
|
});
|
|
754
1735
|
}
|
|
1736
|
+
|
|
1737
|
+
/** @returns {SetCODForUserRequest} */
|
|
755
1738
|
static SetCODForUserRequest() {
|
|
756
1739
|
return Joi.object({
|
|
757
1740
|
is_active: Joi.boolean().required(),
|
|
@@ -759,18 +1742,24 @@ class PaymentModel {
|
|
|
759
1742
|
mobileno: Joi.string().allow("").required(),
|
|
760
1743
|
});
|
|
761
1744
|
}
|
|
1745
|
+
|
|
1746
|
+
/** @returns {SetCODOptionResponse} */
|
|
762
1747
|
static SetCODOptionResponse() {
|
|
763
1748
|
return Joi.object({
|
|
764
1749
|
message: Joi.string().allow("").required(),
|
|
765
1750
|
success: Joi.boolean().required(),
|
|
766
1751
|
});
|
|
767
1752
|
}
|
|
1753
|
+
|
|
1754
|
+
/** @returns {StatisticsData} */
|
|
768
1755
|
static StatisticsData() {
|
|
769
1756
|
return Joi.object({
|
|
770
1757
|
active_device_count: Joi.number().required(),
|
|
771
1758
|
inactive_device_count: Joi.number().required(),
|
|
772
1759
|
});
|
|
773
1760
|
}
|
|
1761
|
+
|
|
1762
|
+
/** @returns {SubscriptionConfigResponse} */
|
|
774
1763
|
static SubscriptionConfigResponse() {
|
|
775
1764
|
return Joi.object({
|
|
776
1765
|
aggregator: Joi.string().allow("").required(),
|
|
@@ -778,12 +1767,16 @@ class PaymentModel {
|
|
|
778
1767
|
success: Joi.boolean().required(),
|
|
779
1768
|
});
|
|
780
1769
|
}
|
|
1770
|
+
|
|
1771
|
+
/** @returns {SubscriptionPaymentMethodResponse} */
|
|
781
1772
|
static SubscriptionPaymentMethodResponse() {
|
|
782
1773
|
return Joi.object({
|
|
783
1774
|
data: Joi.array().items(Joi.any()).required(),
|
|
784
1775
|
success: Joi.boolean().required(),
|
|
785
1776
|
});
|
|
786
1777
|
}
|
|
1778
|
+
|
|
1779
|
+
/** @returns {UpdatePayoutRequest} */
|
|
787
1780
|
static UpdatePayoutRequest() {
|
|
788
1781
|
return Joi.object({
|
|
789
1782
|
is_active: Joi.boolean().required(),
|
|
@@ -791,6 +1784,8 @@ class PaymentModel {
|
|
|
791
1784
|
unique_external_id: Joi.string().allow("").required(),
|
|
792
1785
|
});
|
|
793
1786
|
}
|
|
1787
|
+
|
|
1788
|
+
/** @returns {UpdatePayoutResponse} */
|
|
794
1789
|
static UpdatePayoutResponse() {
|
|
795
1790
|
return Joi.object({
|
|
796
1791
|
is_active: Joi.boolean().required(),
|
|
@@ -798,6 +1793,8 @@ class PaymentModel {
|
|
|
798
1793
|
success: Joi.boolean().required(),
|
|
799
1794
|
});
|
|
800
1795
|
}
|
|
1796
|
+
|
|
1797
|
+
/** @returns {ValidateCustomerRequest} */
|
|
801
1798
|
static ValidateCustomerRequest() {
|
|
802
1799
|
return Joi.object({
|
|
803
1800
|
aggregator: Joi.string().allow("").required(),
|
|
@@ -810,6 +1807,8 @@ class PaymentModel {
|
|
|
810
1807
|
transaction_amount_in_paise: Joi.number().required(),
|
|
811
1808
|
});
|
|
812
1809
|
}
|
|
1810
|
+
|
|
1811
|
+
/** @returns {ValidateCustomerResponse} */
|
|
813
1812
|
static ValidateCustomerResponse() {
|
|
814
1813
|
return Joi.object({
|
|
815
1814
|
data: Joi.any().required(),
|
|
@@ -818,4 +1817,4 @@ class PaymentModel {
|
|
|
818
1817
|
});
|
|
819
1818
|
}
|
|
820
1819
|
}
|
|
821
|
-
module.exports =
|
|
1820
|
+
module.exports = PaymentPlatformModel;
|