@gofynd/fdk-client-javascript 1.4.13 → 1.4.14
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 +1 -1
- package/package.json +1 -1
- package/sdk/application/ApplicationClient.d.ts +2 -0
- package/sdk/application/ApplicationClient.js +2 -0
- package/sdk/application/Cart/CartApplicationClient.d.ts +60 -53
- package/sdk/application/Cart/CartApplicationClient.js +130 -53
- package/sdk/application/Cart/CartApplicationModel.d.ts +489 -143
- package/sdk/application/Cart/CartApplicationModel.js +380 -159
- package/sdk/application/Cart/CartApplicationValidator.d.ts +38 -19
- package/sdk/application/Cart/CartApplicationValidator.js +34 -18
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +88 -68
- package/sdk/application/Catalog/CatalogApplicationClient.js +114 -94
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +194 -142
- package/sdk/application/Catalog/CatalogApplicationModel.js +171 -133
- package/sdk/application/Common/CommonApplicationClient.d.ts +3 -2
- package/sdk/application/Common/CommonApplicationClient.js +6 -5
- package/sdk/application/Common/CommonApplicationModel.d.ts +9 -9
- package/sdk/application/Common/CommonApplicationModel.js +6 -6
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +34 -27
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +34 -27
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +45 -57
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +35 -47
- package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +2 -2
- package/sdk/application/Configuration/ConfigurationApplicationValidator.js +2 -2
- package/sdk/application/Content/ContentApplicationClient.d.ts +23 -33
- package/sdk/application/Content/ContentApplicationClient.js +54 -75
- package/sdk/application/Content/ContentApplicationModel.d.ts +93 -37
- package/sdk/application/Content/ContentApplicationModel.js +83 -32
- package/sdk/application/Content/ContentApplicationValidator.d.ts +23 -17
- package/sdk/application/Content/ContentApplicationValidator.js +15 -10
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +9 -8
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +14 -13
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +23 -25
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +16 -18
- package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +6 -6
- package/sdk/application/FileStorage/FileStorageApplicationValidator.js +6 -6
- package/sdk/application/Finance/FinanceApplicationClient.d.ts +36 -0
- package/sdk/application/Finance/FinanceApplicationClient.js +202 -0
- package/sdk/application/Finance/FinanceApplicationModel.d.ts +289 -0
- package/sdk/application/Finance/FinanceApplicationModel.js +208 -0
- package/sdk/application/Finance/FinanceApplicationValidator.d.ts +25 -0
- package/sdk/application/Finance/FinanceApplicationValidator.js +31 -0
- package/sdk/application/Lead/LeadApplicationClient.d.ts +2 -3
- package/sdk/application/Lead/LeadApplicationClient.js +2 -3
- package/sdk/application/Lead/LeadApplicationModel.d.ts +11 -11
- package/sdk/application/Lead/LeadApplicationModel.js +19 -19
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +39 -16
- package/sdk/application/Logistic/LogisticApplicationClient.js +189 -21
- package/sdk/application/Logistic/LogisticApplicationModel.d.ts +532 -173
- package/sdk/application/Logistic/LogisticApplicationModel.js +409 -139
- package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +54 -9
- package/sdk/application/Logistic/LogisticApplicationValidator.js +42 -8
- package/sdk/application/Order/OrderApplicationClient.d.ts +24 -10
- package/sdk/application/Order/OrderApplicationClient.js +96 -13
- package/sdk/application/Order/OrderApplicationModel.d.ts +434 -102
- package/sdk/application/Order/OrderApplicationModel.js +278 -73
- package/sdk/application/Order/OrderApplicationValidator.d.ts +17 -3
- package/sdk/application/Order/OrderApplicationValidator.js +15 -2
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +96 -99
- package/sdk/application/Payment/PaymentApplicationClient.js +111 -114
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +293 -289
- package/sdk/application/Payment/PaymentApplicationModel.js +243 -241
- package/sdk/application/Payment/PaymentApplicationValidator.d.ts +46 -46
- package/sdk/application/Payment/PaymentApplicationValidator.js +46 -46
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +13 -16
- package/sdk/application/Rewards/RewardsApplicationClient.js +19 -22
- package/sdk/application/Rewards/RewardsApplicationModel.d.ts +37 -37
- package/sdk/application/Rewards/RewardsApplicationModel.js +29 -29
- package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +6 -6
- package/sdk/application/Rewards/RewardsApplicationValidator.js +6 -6
- package/sdk/application/Share/ShareApplicationModel.js +1 -1
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +2 -2
- package/sdk/application/Theme/ThemeApplicationClient.js +8 -6
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +48 -17
- package/sdk/application/Theme/ThemeApplicationModel.js +42 -22
- package/sdk/application/Theme/ThemeApplicationValidator.d.ts +16 -3
- package/sdk/application/Theme/ThemeApplicationValidator.js +9 -2
- package/sdk/application/User/UserApplicationClient.d.ts +10 -10
- package/sdk/application/User/UserApplicationClient.js +10 -10
- package/sdk/application/User/UserApplicationModel.d.ts +17 -17
- package/sdk/application/User/UserApplicationModel.js +16 -16
- package/sdk/application/User/UserApplicationValidator.d.ts +2 -2
- package/sdk/application/User/UserApplicationValidator.js +2 -2
- package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -4
- package/sdk/application/Webhook/WebhookApplicationClient.js +4 -4
- package/sdk/application/Webhook/WebhookApplicationModel.d.ts +11 -9
- package/sdk/application/Webhook/WebhookApplicationModel.js +8 -6
- package/sdk/application/Webhook/WebhookApplicationValidator.d.ts +2 -2
- package/sdk/application/Webhook/WebhookApplicationValidator.js +2 -2
- package/sdk/application/index.d.ts +1 -0
- package/sdk/application/index.js +2 -0
- package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +86 -12
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +582 -24
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +116 -19
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +121 -14
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +8 -1
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +51 -4
- package/sdk/partner/Lead/LeadPartnerClient.d.ts +2 -2
- package/sdk/partner/Lead/LeadPartnerClient.js +2 -2
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +5 -5
- package/sdk/partner/Lead/LeadPartnerModel.js +15 -15
- package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +126 -20
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +970 -20
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +767 -85
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +429 -76
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +10 -0
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +120 -6
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +8 -10
- package/sdk/partner/Theme/ThemePartnerClient.js +14 -16
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +96 -37
- package/sdk/partner/Theme/ThemePartnerModel.js +90 -36
- package/sdk/partner/Theme/ThemePartnerValidator.js +4 -4
- package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +28 -18
- package/sdk/partner/Webhook/WebhookPartnerClient.js +103 -18
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +612 -179
- package/sdk/partner/Webhook/WebhookPartnerModel.js +253 -150
- package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +1 -0
- package/sdk/partner/Webhook/WebhookPartnerValidator.js +11 -3
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +5 -4
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +14 -8
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +59 -9
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +40 -4
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +2 -32
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +3 -243
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +11 -130
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +12 -152
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +1 -39
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +0 -35
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +12 -12
- package/sdk/platform/Billing/BillingPlatformClient.js +15 -15
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +443 -388
- package/sdk/platform/Billing/BillingPlatformModel.js +280 -263
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +16 -18
- package/sdk/platform/Billing/BillingPlatformValidator.js +8 -9
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +134 -103
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +407 -112
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +111 -65
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +106 -44
- package/sdk/platform/Cart/CartPlatformModel.d.ts +4978 -1303
- package/sdk/platform/Cart/CartPlatformModel.js +1922 -1217
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +208 -183
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +383 -358
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +122 -126
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +66 -68
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +141 -118
- package/sdk/platform/Catalog/CatalogPlatformClient.js +193 -170
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +1516 -1766
- package/sdk/platform/Catalog/CatalogPlatformModel.js +1393 -1224
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +18 -18
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +18 -18
- package/sdk/platform/Common/CommonPlatformClient.d.ts +3 -2
- package/sdk/platform/Common/CommonPlatformClient.js +3 -2
- package/sdk/platform/Common/CommonPlatformModel.d.ts +9 -9
- package/sdk/platform/Common/CommonPlatformModel.js +6 -6
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +16 -17
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +16 -17
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +8 -8
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +8 -8
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +43 -33
- package/sdk/platform/Communication/CommunicationPlatformModel.js +38 -34
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +46 -42
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +47 -43
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +223 -223
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +210 -212
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +12 -12
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +12 -12
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +46 -33
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +67 -54
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +18 -18
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +18 -18
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +45 -24
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +134 -30
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +283 -124
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +219 -94
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +37 -9
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +27 -8
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +124 -141
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +449 -422
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +179 -141
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +168 -130
- package/sdk/platform/Content/ContentPlatformClient.d.ts +142 -106
- package/sdk/platform/Content/ContentPlatformClient.js +523 -336
- package/sdk/platform/Content/ContentPlatformModel.d.ts +1241 -395
- package/sdk/platform/Content/ContentPlatformModel.js +521 -390
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +168 -117
- package/sdk/platform/Content/ContentPlatformValidator.js +162 -108
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +14 -12
- package/sdk/platform/Discount/DiscountPlatformClient.js +14 -12
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +13 -13
- package/sdk/platform/Discount/DiscountPlatformModel.js +12 -12
- package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +2 -2
- package/sdk/platform/Discount/DiscountPlatformValidator.js +2 -2
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +94 -36
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +462 -60
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +62 -15
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +75 -13
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +19 -19
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +21 -21
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +370 -101
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +313 -84
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +2 -2
- package/sdk/platform/Lead/LeadPlatformClient.js +2 -2
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +5 -5
- package/sdk/platform/Lead/LeadPlatformModel.js +16 -16
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +15 -4
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +83 -5
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +25 -4
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +16 -3
- package/sdk/platform/Order/OrderPlatformClient.d.ts +178 -97
- package/sdk/platform/Order/OrderPlatformClient.js +589 -229
- package/sdk/platform/Order/OrderPlatformModel.d.ts +5447 -3071
- package/sdk/platform/Order/OrderPlatformModel.js +3496 -1653
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +241 -176
- package/sdk/platform/Order/OrderPlatformValidator.js +153 -97
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +6 -4
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +9 -7
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +9 -9
- package/sdk/platform/Partner/PartnerPlatformModel.js +8 -8
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +93 -105
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +129 -141
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +48 -48
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +48 -48
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +20 -20
- package/sdk/platform/Payment/PaymentPlatformClient.js +20 -20
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +327 -313
- package/sdk/platform/Payment/PaymentPlatformModel.js +283 -273
- package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +8 -8
- package/sdk/platform/Payment/PaymentPlatformValidator.js +8 -8
- package/sdk/platform/PlatformClient.d.ts +0 -2
- package/sdk/platform/PlatformClient.js +0 -4
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +2 -2
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +9 -9
- package/sdk/platform/Rewards/RewardsPlatformModel.js +8 -8
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +45 -35
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +117 -38
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +22 -13
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +24 -12
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +40 -46
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +58 -64
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +602 -341
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +483 -284
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +8 -8
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +8 -8
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/Share/SharePlatformApplicationClient.js +2 -2
- package/sdk/platform/Share/SharePlatformModel.d.ts +36 -5
- package/sdk/platform/Share/SharePlatformModel.js +27 -4
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +3 -3
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +8 -4
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +5 -0
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +2 -0
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +37 -11
- package/sdk/platform/Theme/ThemePlatformModel.js +33 -15
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +12 -12
- package/sdk/platform/User/UserPlatformApplicationClient.js +12 -12
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +2 -2
- package/sdk/platform/User/UserPlatformApplicationValidator.js +2 -2
- package/sdk/platform/User/UserPlatformModel.d.ts +21 -21
- package/sdk/platform/User/UserPlatformModel.js +23 -23
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +25 -78
- package/sdk/platform/Webhook/WebhookPlatformClient.js +75 -470
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +720 -427
- package/sdk/platform/Webhook/WebhookPlatformModel.js +410 -386
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +10 -55
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +12 -72
- package/sdk/platform/index.d.ts +0 -1
- package/sdk/platform/index.js +0 -2
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +3 -2
- package/sdk/public/Configuration/ConfigurationPublicClient.js +6 -5
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +9 -9
- package/sdk/public/Configuration/ConfigurationPublicModel.js +6 -6
- package/sdk/public/Content/ContentPublicClient.d.ts +112 -2
- package/sdk/public/Content/ContentPublicClient.js +791 -5
- package/sdk/public/Content/ContentPublicModel.d.ts +549 -3
- package/sdk/public/Content/ContentPublicModel.js +649 -3
- package/sdk/public/Content/ContentPublicValidator.d.ts +69 -3
- package/sdk/public/Content/ContentPublicValidator.js +88 -2
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
- package/sdk/public/Webhook/WebhookPublicClient.js +8 -8
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +21 -21
- package/sdk/public/Webhook/WebhookPublicModel.js +15 -15
- package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
- package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +0 -320
- package/sdk/platform/Finance/FinancePlatformClient.js +0 -2333
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +0 -2890
- package/sdk/platform/Finance/FinancePlatformModel.js +0 -2148
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +0 -284
- package/sdk/platform/Finance/FinancePlatformValidator.js +0 -354
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const Joi = require("joi");
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* @typedef
|
|
4
|
+
* @typedef PaymentGatewayConfigDetails
|
|
5
5
|
* @property {Object[]} [aggregators] - List of all speceific Payment options
|
|
6
6
|
* with their Details.
|
|
7
7
|
* @property {string} app_id - Application Id to which Payment config Mapped
|
|
@@ -28,7 +28,7 @@ const Joi = require("joi");
|
|
|
28
28
|
*/
|
|
29
29
|
|
|
30
30
|
/**
|
|
31
|
-
* @typedef
|
|
31
|
+
* @typedef PaymentGatewayConfigCreation
|
|
32
32
|
* @property {string} app_id - Application Id to which Payment config Mapped
|
|
33
33
|
* @property {boolean} [is_active] - Enable or Disable Flag
|
|
34
34
|
* @property {PaymentGatewayConfig} [aggregator_name]
|
|
@@ -47,7 +47,7 @@ const Joi = require("joi");
|
|
|
47
47
|
*/
|
|
48
48
|
|
|
49
49
|
/**
|
|
50
|
-
* @typedef
|
|
50
|
+
* @typedef HttpErrorDetails
|
|
51
51
|
* @property {ErrorCodeAndDescription} error
|
|
52
52
|
* @property {boolean} success - Response is successful or not
|
|
53
53
|
*/
|
|
@@ -61,11 +61,11 @@ const Joi = require("joi");
|
|
|
61
61
|
/**
|
|
62
62
|
* @typedef ProductCODData
|
|
63
63
|
* @property {Object} [items] - Item id with its cod availability.
|
|
64
|
-
* @property {
|
|
64
|
+
* @property {CODChargesLimitsDetails} [cod_charges]
|
|
65
65
|
*/
|
|
66
66
|
|
|
67
67
|
/**
|
|
68
|
-
* @typedef
|
|
68
|
+
* @typedef CODChargesLimitsDetails
|
|
69
69
|
* @property {number} [max_cart_value] - Max allowed cart value for cod order.
|
|
70
70
|
* @property {number} [min_cart_value] - Min allowed cart value for cod order.
|
|
71
71
|
* @property {number} [cod_charge] - Cod charges to be applied on order.
|
|
@@ -220,7 +220,7 @@ const Joi = require("joi");
|
|
|
220
220
|
*/
|
|
221
221
|
|
|
222
222
|
/**
|
|
223
|
-
* @typedef
|
|
223
|
+
* @typedef PaymentModeRouteDetails
|
|
224
224
|
* @property {PaymentOptionAndFlow} payment_options
|
|
225
225
|
* @property {boolean} success - Response is successful or not
|
|
226
226
|
* @property {Object} [payment_breakup] - Payment Breakup for advance payment
|
|
@@ -228,7 +228,7 @@ const Joi = require("joi");
|
|
|
228
228
|
*/
|
|
229
229
|
|
|
230
230
|
/**
|
|
231
|
-
* @typedef
|
|
231
|
+
* @typedef PaymentOptionsDetails
|
|
232
232
|
* @property {PaymentOptions} payment_options
|
|
233
233
|
* @property {boolean} success - Response is successful or not
|
|
234
234
|
* @property {Object} [payment_breakup] - Payment Breakup for advance payment
|
|
@@ -275,7 +275,7 @@ const Joi = require("joi");
|
|
|
275
275
|
*/
|
|
276
276
|
|
|
277
277
|
/**
|
|
278
|
-
* @typedef
|
|
278
|
+
* @typedef PayoutsDetails
|
|
279
279
|
* @property {boolean} success - Response is successful or not
|
|
280
280
|
* @property {Payout[]} items - Contains list of PayoutSchema
|
|
281
281
|
*/
|
|
@@ -295,7 +295,7 @@ const Joi = require("joi");
|
|
|
295
295
|
*/
|
|
296
296
|
|
|
297
297
|
/**
|
|
298
|
-
* @typedef
|
|
298
|
+
* @typedef PayoutCreation
|
|
299
299
|
* @property {string} aggregator - Aggregator Name
|
|
300
300
|
* @property {Object} users - Payout users object
|
|
301
301
|
* @property {string} unique_external_id - Unique Id of Payout
|
|
@@ -305,7 +305,7 @@ const Joi = require("joi");
|
|
|
305
305
|
*/
|
|
306
306
|
|
|
307
307
|
/**
|
|
308
|
-
* @typedef
|
|
308
|
+
* @typedef PayoutDetails
|
|
309
309
|
* @property {string} payment_status - Status of payment
|
|
310
310
|
* @property {Object} users - Users details object
|
|
311
311
|
* @property {string} aggregator - Aggregator Name
|
|
@@ -319,55 +319,55 @@ const Joi = require("joi");
|
|
|
319
319
|
*/
|
|
320
320
|
|
|
321
321
|
/**
|
|
322
|
-
* @typedef
|
|
322
|
+
* @typedef UpdatePayoutDetails
|
|
323
323
|
* @property {boolean} is_default - Enable or Disable Default Payout
|
|
324
324
|
* @property {boolean} is_active - Enable or DIsable Flag Payout
|
|
325
325
|
* @property {boolean} success - Response is successful or not
|
|
326
326
|
*/
|
|
327
327
|
|
|
328
328
|
/**
|
|
329
|
-
* @typedef
|
|
329
|
+
* @typedef UpdatePayoutCreation
|
|
330
330
|
* @property {boolean} is_default - Enable or Disable Default Payout
|
|
331
331
|
* @property {boolean} is_active - Enable or Disable Flag Payout
|
|
332
332
|
* @property {string} unique_external_id - Unique Id of Payout
|
|
333
333
|
*/
|
|
334
334
|
|
|
335
335
|
/**
|
|
336
|
-
* @typedef
|
|
336
|
+
* @typedef DeletePayoutDetails
|
|
337
337
|
* @property {boolean} success - Response is successful or not
|
|
338
338
|
*/
|
|
339
339
|
|
|
340
340
|
/**
|
|
341
|
-
* @typedef
|
|
341
|
+
* @typedef SubscriptionPaymentMethodDetails
|
|
342
342
|
* @property {Object[]} data - Subscription Payment Method Object
|
|
343
343
|
* @property {boolean} success - Response is successful or not
|
|
344
344
|
*/
|
|
345
345
|
|
|
346
346
|
/**
|
|
347
|
-
* @typedef
|
|
347
|
+
* @typedef DeleteSubscriptionPaymentMethodDetails
|
|
348
348
|
* @property {boolean} success - Success or failure.
|
|
349
349
|
*/
|
|
350
350
|
|
|
351
351
|
/**
|
|
352
|
-
* @typedef
|
|
352
|
+
* @typedef SubscriptionConfigDetails
|
|
353
353
|
* @property {string} aggregator - Aggregator Name
|
|
354
354
|
* @property {Object} config - Aggregator Config
|
|
355
355
|
* @property {boolean} success - Response is successful or not
|
|
356
356
|
*/
|
|
357
357
|
|
|
358
358
|
/**
|
|
359
|
-
* @typedef
|
|
359
|
+
* @typedef SaveSubscriptionSetupIntentCreation
|
|
360
360
|
* @property {string} unique_external_id - Unique id i.e company:id
|
|
361
361
|
*/
|
|
362
362
|
|
|
363
363
|
/**
|
|
364
|
-
* @typedef
|
|
364
|
+
* @typedef SaveSubscriptionSetupIntentDetails
|
|
365
365
|
* @property {Object} data - Subscription Payment Method Object
|
|
366
366
|
* @property {boolean} success - Response is successful or not
|
|
367
367
|
*/
|
|
368
368
|
|
|
369
369
|
/**
|
|
370
|
-
* @typedef
|
|
370
|
+
* @typedef RefundAccountDetails
|
|
371
371
|
* @property {boolean} [is_verified_flag]
|
|
372
372
|
* @property {string} message - Response message
|
|
373
373
|
* @property {Object} [data] - Refund account data.
|
|
@@ -391,13 +391,13 @@ const Joi = require("joi");
|
|
|
391
391
|
*/
|
|
392
392
|
|
|
393
393
|
/**
|
|
394
|
-
* @typedef
|
|
394
|
+
* @typedef AddBeneficiaryDetailsOTPCreation
|
|
395
395
|
* @property {string} order_id
|
|
396
396
|
* @property {BankDetailsForOTP} details
|
|
397
397
|
*/
|
|
398
398
|
|
|
399
399
|
/**
|
|
400
|
-
* @typedef
|
|
400
|
+
* @typedef IfscCodeDetails
|
|
401
401
|
* @property {string} branch_name - Branch Name Of Account
|
|
402
402
|
* @property {boolean} [success] - Response is successful or not
|
|
403
403
|
* @property {string} bank_name - Bank Name Of Account
|
|
@@ -427,7 +427,7 @@ const Joi = require("joi");
|
|
|
427
427
|
*/
|
|
428
428
|
|
|
429
429
|
/**
|
|
430
|
-
* @typedef
|
|
430
|
+
* @typedef OrderBeneficiaryFetchResults
|
|
431
431
|
* @property {OrderBeneficiaryDetails[]} [beneficiaries] - All Beneficiaries Of An Order
|
|
432
432
|
* @property {boolean} [show_beneficiary_details] - Show beneficiary details or not.
|
|
433
433
|
*/
|
|
@@ -456,13 +456,13 @@ const Joi = require("joi");
|
|
|
456
456
|
*/
|
|
457
457
|
|
|
458
458
|
/**
|
|
459
|
-
* @typedef
|
|
459
|
+
* @typedef PaymentConfirmationCreation
|
|
460
460
|
* @property {string} order_id - Unique order id
|
|
461
461
|
* @property {MultiTenderPaymentMethod[]} payment_methods
|
|
462
462
|
*/
|
|
463
463
|
|
|
464
464
|
/**
|
|
465
|
-
* @typedef
|
|
465
|
+
* @typedef PaymentConfirmationDetails
|
|
466
466
|
* @property {string} order_id - Unique order id
|
|
467
467
|
* @property {string} message - Message
|
|
468
468
|
* @property {boolean} success - Payment confirmation updated or not.
|
|
@@ -478,13 +478,13 @@ const Joi = require("joi");
|
|
|
478
478
|
*/
|
|
479
479
|
|
|
480
480
|
/**
|
|
481
|
-
* @typedef
|
|
481
|
+
* @typedef GetUserCODLimitDetails
|
|
482
482
|
* @property {CODdata} user_cod_data
|
|
483
483
|
* @property {boolean} success - Response is successful or not
|
|
484
484
|
*/
|
|
485
485
|
|
|
486
486
|
/**
|
|
487
|
-
* @typedef
|
|
487
|
+
* @typedef SetCODForUserCreation
|
|
488
488
|
* @property {string} [business_unit] - Business unit
|
|
489
489
|
* @property {string} mobileno - Mobile No. of User
|
|
490
490
|
* @property {boolean} is_active - Either true or false
|
|
@@ -492,7 +492,7 @@ const Joi = require("joi");
|
|
|
492
492
|
*/
|
|
493
493
|
|
|
494
494
|
/**
|
|
495
|
-
* @typedef
|
|
495
|
+
* @typedef SetCODOptionDetails
|
|
496
496
|
* @property {string} message - Message
|
|
497
497
|
* @property {boolean} success - Response is successful or not
|
|
498
498
|
*/
|
|
@@ -505,7 +505,7 @@ const Joi = require("joi");
|
|
|
505
505
|
*/
|
|
506
506
|
|
|
507
507
|
/**
|
|
508
|
-
* @typedef
|
|
508
|
+
* @typedef EdcAggregatorAndModelListDetails
|
|
509
509
|
* @property {EdcModelData[]} data - List of aggregators and their edc models
|
|
510
510
|
* @property {boolean} success - Response is successful or not
|
|
511
511
|
*/
|
|
@@ -517,13 +517,13 @@ const Joi = require("joi");
|
|
|
517
517
|
*/
|
|
518
518
|
|
|
519
519
|
/**
|
|
520
|
-
* @typedef
|
|
520
|
+
* @typedef EdcDeviceStatsDetails
|
|
521
521
|
* @property {StatisticsData} statistics
|
|
522
522
|
* @property {boolean} success - Response is successful or not
|
|
523
523
|
*/
|
|
524
524
|
|
|
525
525
|
/**
|
|
526
|
-
* @typedef
|
|
526
|
+
* @typedef EdcAddCreation
|
|
527
527
|
* @property {string} edc_model - Model of the edc machine
|
|
528
528
|
* @property {number} store_id - Store at which devices is to used
|
|
529
529
|
* @property {number} aggregator_id - Aggregator which will accept payment
|
|
@@ -550,19 +550,19 @@ const Joi = require("joi");
|
|
|
550
550
|
*/
|
|
551
551
|
|
|
552
552
|
/**
|
|
553
|
-
* @typedef
|
|
553
|
+
* @typedef EdcDeviceAddDetails
|
|
554
554
|
* @property {EdcDevice} data
|
|
555
555
|
* @property {boolean} success - Response is successful or not
|
|
556
556
|
*/
|
|
557
557
|
|
|
558
558
|
/**
|
|
559
|
-
* @typedef
|
|
559
|
+
* @typedef EdcDeviceDetails
|
|
560
560
|
* @property {EdcDevice} data
|
|
561
561
|
* @property {boolean} success - Response is successful or not
|
|
562
562
|
*/
|
|
563
563
|
|
|
564
564
|
/**
|
|
565
|
-
* @typedef
|
|
565
|
+
* @typedef EdcUpdate
|
|
566
566
|
* @property {string} [edc_model] - Model of the edc machine
|
|
567
567
|
* @property {number} [store_id] - Store at which devices is to used
|
|
568
568
|
* @property {number} [aggregator_id] - Aggregator which will accept payment
|
|
@@ -573,7 +573,7 @@ const Joi = require("joi");
|
|
|
573
573
|
*/
|
|
574
574
|
|
|
575
575
|
/**
|
|
576
|
-
* @typedef
|
|
576
|
+
* @typedef EdcDeviceUpdateDetails
|
|
577
577
|
* @property {boolean} success - Response is successful or not
|
|
578
578
|
*/
|
|
579
579
|
|
|
@@ -589,7 +589,7 @@ const Joi = require("joi");
|
|
|
589
589
|
*/
|
|
590
590
|
|
|
591
591
|
/**
|
|
592
|
-
* @typedef
|
|
592
|
+
* @typedef EdcDeviceListDetails
|
|
593
593
|
* @property {EdcDevice[]} items - List of all edc mapped to the application
|
|
594
594
|
* options with their Details.
|
|
595
595
|
* @property {Page} page
|
|
@@ -597,7 +597,7 @@ const Joi = require("joi");
|
|
|
597
597
|
*/
|
|
598
598
|
|
|
599
599
|
/**
|
|
600
|
-
* @typedef
|
|
600
|
+
* @typedef PaymentInitializationCreation
|
|
601
601
|
* @property {string} [razorpay_payment_id] - Payment gateway payment id
|
|
602
602
|
* @property {string} [device_id] - EDC machine Unique Identifier
|
|
603
603
|
* @property {string} email - Customer valid email
|
|
@@ -614,7 +614,7 @@ const Joi = require("joi");
|
|
|
614
614
|
*/
|
|
615
615
|
|
|
616
616
|
/**
|
|
617
|
-
* @typedef
|
|
617
|
+
* @typedef PaymentInitializationDetails
|
|
618
618
|
* @property {string} [razorpay_payment_id] - Payment id.
|
|
619
619
|
* @property {string} [device_id] - EDC machine Unique Identifier
|
|
620
620
|
* @property {string} [upi_poll_url] - UPI poll url.
|
|
@@ -635,7 +635,7 @@ const Joi = require("joi");
|
|
|
635
635
|
*/
|
|
636
636
|
|
|
637
637
|
/**
|
|
638
|
-
* @typedef
|
|
638
|
+
* @typedef PaymentStatusUpdateCreation
|
|
639
639
|
* @property {string} [device_id] - EDC machine Unique Identifier
|
|
640
640
|
* @property {string} email - Customer valid email
|
|
641
641
|
* @property {string} customer_id - Payment gateway customer id.
|
|
@@ -652,7 +652,7 @@ const Joi = require("joi");
|
|
|
652
652
|
*/
|
|
653
653
|
|
|
654
654
|
/**
|
|
655
|
-
* @typedef
|
|
655
|
+
* @typedef PaymentStatusUpdateDetails
|
|
656
656
|
* @property {string} [redirect_url] - Redirect url
|
|
657
657
|
* @property {boolean} retry - Response is successful or not.
|
|
658
658
|
* @property {boolean} [success] - Response is successful or not
|
|
@@ -661,7 +661,7 @@ const Joi = require("joi");
|
|
|
661
661
|
*/
|
|
662
662
|
|
|
663
663
|
/**
|
|
664
|
-
* @typedef
|
|
664
|
+
* @typedef ResendOrCancelPaymentCreation
|
|
665
665
|
* @property {string} order_id - Unique order id
|
|
666
666
|
* @property {string} [device_id] - EDC machine Unique Identifier
|
|
667
667
|
* @property {string} request_type - Either resend or cancel
|
|
@@ -676,18 +676,18 @@ const Joi = require("joi");
|
|
|
676
676
|
*/
|
|
677
677
|
|
|
678
678
|
/**
|
|
679
|
-
* @typedef
|
|
679
|
+
* @typedef ResendOrCancelPaymentDetails
|
|
680
680
|
* @property {LinkStatus} data
|
|
681
681
|
* @property {boolean} success - Response is successful or not.
|
|
682
682
|
*/
|
|
683
683
|
|
|
684
684
|
/**
|
|
685
|
-
* @typedef
|
|
685
|
+
* @typedef PaymentStatusBulkHandlerCreation
|
|
686
686
|
* @property {string[]} merchant_order_id - List of order ids
|
|
687
687
|
*/
|
|
688
688
|
|
|
689
689
|
/**
|
|
690
|
-
* @typedef
|
|
690
|
+
* @typedef PaymentObjectList
|
|
691
691
|
* @property {Object} user_object
|
|
692
692
|
* @property {string} modified_on
|
|
693
693
|
* @property {string} collected_by
|
|
@@ -711,11 +711,11 @@ const Joi = require("joi");
|
|
|
711
711
|
/**
|
|
712
712
|
* @typedef PaymentStatusObject
|
|
713
713
|
* @property {string} merchant_order_id
|
|
714
|
-
* @property {
|
|
714
|
+
* @property {PaymentObjectList[]} [payment_object_list]
|
|
715
715
|
*/
|
|
716
716
|
|
|
717
717
|
/**
|
|
718
|
-
* @typedef
|
|
718
|
+
* @typedef PaymentStatusBulkHandlerDetails
|
|
719
719
|
* @property {number} [count]
|
|
720
720
|
* @property {PaymentStatusObject[]} [data]
|
|
721
721
|
* @property {string} success
|
|
@@ -724,7 +724,7 @@ const Joi = require("joi");
|
|
|
724
724
|
*/
|
|
725
725
|
|
|
726
726
|
/**
|
|
727
|
-
* @typedef
|
|
727
|
+
* @typedef GetOauthUrlDetails
|
|
728
728
|
* @property {string} url - The url to call for authenticating
|
|
729
729
|
* @property {boolean} success - Response is successful or not
|
|
730
730
|
*/
|
|
@@ -759,13 +759,13 @@ const Joi = require("joi");
|
|
|
759
759
|
*/
|
|
760
760
|
|
|
761
761
|
/**
|
|
762
|
-
* @typedef
|
|
762
|
+
* @typedef RepaymentDetails
|
|
763
763
|
* @property {Object} data
|
|
764
764
|
* @property {boolean} success - Success/Failure of the transaction
|
|
765
765
|
*/
|
|
766
766
|
|
|
767
767
|
/**
|
|
768
|
-
* @typedef
|
|
768
|
+
* @typedef MerchantOnBoardingCreation
|
|
769
769
|
* @property {string} credit_line_id - Merchant ID at Ajiodhan's end
|
|
770
770
|
* @property {string} aggregator - Payment aggregator name
|
|
771
771
|
* @property {string} app_id - Application id
|
|
@@ -774,13 +774,13 @@ const Joi = require("joi");
|
|
|
774
774
|
*/
|
|
775
775
|
|
|
776
776
|
/**
|
|
777
|
-
* @typedef
|
|
777
|
+
* @typedef MerchantOnBoardingDetails
|
|
778
778
|
* @property {Object} data
|
|
779
779
|
* @property {boolean} success - Success/Failure of the transaction
|
|
780
780
|
*/
|
|
781
781
|
|
|
782
782
|
/**
|
|
783
|
-
* @typedef
|
|
783
|
+
* @typedef ValidateCustomerCreation
|
|
784
784
|
* @property {string} phone_number - User mobile number without country code.
|
|
785
785
|
* @property {string} aggregator - Payment gateway name in camel case i.e Simpl, Rupifi
|
|
786
786
|
* @property {string} [payload] - Hashed payload string.
|
|
@@ -792,14 +792,14 @@ const Joi = require("joi");
|
|
|
792
792
|
*/
|
|
793
793
|
|
|
794
794
|
/**
|
|
795
|
-
* @typedef
|
|
795
|
+
* @typedef ValidateCustomerDetails
|
|
796
796
|
* @property {string} message - Error or success message.
|
|
797
797
|
* @property {Object} [data] - Payment gateway response data
|
|
798
798
|
* @property {boolean} success - Response is successful or not
|
|
799
799
|
*/
|
|
800
800
|
|
|
801
801
|
/**
|
|
802
|
-
* @typedef
|
|
802
|
+
* @typedef GetPaymentLinkDetails
|
|
803
803
|
* @property {string} message - Message
|
|
804
804
|
* @property {number} status_code - HTTP status code
|
|
805
805
|
* @property {number} [amount] - Total value of order
|
|
@@ -824,7 +824,7 @@ const Joi = require("joi");
|
|
|
824
824
|
*/
|
|
825
825
|
|
|
826
826
|
/**
|
|
827
|
-
* @typedef
|
|
827
|
+
* @typedef ErrorDetails
|
|
828
828
|
* @property {number} status_code - HTTP status code
|
|
829
829
|
* @property {ErrorDescription} [error]
|
|
830
830
|
* @property {string} message - Message
|
|
@@ -840,7 +840,7 @@ const Joi = require("joi");
|
|
|
840
840
|
*/
|
|
841
841
|
|
|
842
842
|
/**
|
|
843
|
-
* @typedef
|
|
843
|
+
* @typedef CreatePaymentLinkCreation
|
|
844
844
|
* @property {string} email - Email to which the payment link is to be sent
|
|
845
845
|
* @property {number} amount - Total value of order
|
|
846
846
|
* @property {string} mobile_number - Mobile number to which the payment link is
|
|
@@ -849,10 +849,14 @@ const Joi = require("joi");
|
|
|
849
849
|
* @property {string} [description] - Merchant order id
|
|
850
850
|
* @property {CreatePaymentLinkMeta} meta
|
|
851
851
|
* @property {string} external_order_id - Merchant order id
|
|
852
|
+
* @property {string} [success_redirection_url] - URL to which the user will be
|
|
853
|
+
* redirected after a successful payment.
|
|
854
|
+
* @property {string} [failure_redirection_url] - URL to which the user will be
|
|
855
|
+
* redirected if the payment fails.
|
|
852
856
|
*/
|
|
853
857
|
|
|
854
858
|
/**
|
|
855
|
-
* @typedef
|
|
859
|
+
* @typedef CreatePaymentLinkDetails
|
|
856
860
|
* @property {string} message - Message
|
|
857
861
|
* @property {number} status_code - HTTP status code
|
|
858
862
|
* @property {string} [payment_link_url] - Url of payment link
|
|
@@ -862,7 +866,7 @@ const Joi = require("joi");
|
|
|
862
866
|
*/
|
|
863
867
|
|
|
864
868
|
/**
|
|
865
|
-
* @typedef
|
|
869
|
+
* @typedef PollingPaymentLinkDetails
|
|
866
870
|
* @property {string} [message] - Message
|
|
867
871
|
* @property {number} [http_status] - HTTP status code
|
|
868
872
|
* @property {number} [status_code] - HTTP status code
|
|
@@ -876,12 +880,12 @@ const Joi = require("joi");
|
|
|
876
880
|
*/
|
|
877
881
|
|
|
878
882
|
/**
|
|
879
|
-
* @typedef
|
|
883
|
+
* @typedef CancelOrResendPaymentLinkCreation
|
|
880
884
|
* @property {string} payment_link_id - Unique id of payment link
|
|
881
885
|
*/
|
|
882
886
|
|
|
883
887
|
/**
|
|
884
|
-
* @typedef
|
|
888
|
+
* @typedef ResendPaymentLinkDetails
|
|
885
889
|
* @property {number} status_code - HTTP status code
|
|
886
890
|
* @property {string} message - Message
|
|
887
891
|
* @property {number} [polling_timeout] - Polling request timeout
|
|
@@ -889,7 +893,7 @@ const Joi = require("joi");
|
|
|
889
893
|
*/
|
|
890
894
|
|
|
891
895
|
/**
|
|
892
|
-
* @typedef
|
|
896
|
+
* @typedef CancelPaymentLinkDetails
|
|
893
897
|
* @property {number} status_code - HTTP status code
|
|
894
898
|
* @property {string} message - Message
|
|
895
899
|
* @property {boolean} success - Successful or failure
|
|
@@ -916,20 +920,20 @@ const Joi = require("joi");
|
|
|
916
920
|
*/
|
|
917
921
|
|
|
918
922
|
/**
|
|
919
|
-
* @typedef
|
|
923
|
+
* @typedef GetPaymentCodeDetails
|
|
920
924
|
* @property {GetPaymentCode} data
|
|
921
925
|
* @property {boolean} success - Response is successful or not.
|
|
922
926
|
*/
|
|
923
927
|
|
|
924
928
|
/**
|
|
925
|
-
* @typedef
|
|
929
|
+
* @typedef PlatformPaymentModeDetails
|
|
926
930
|
* @property {string} [message] - Message
|
|
927
931
|
* @property {Object[]} [items] - List of all aggregator and payment mode details.
|
|
928
932
|
* @property {boolean} success - Response is successful or not.
|
|
929
933
|
*/
|
|
930
934
|
|
|
931
935
|
/**
|
|
932
|
-
* @typedef
|
|
936
|
+
* @typedef MerchnatPaymentModeCreation
|
|
933
937
|
* @property {Object} [offline] - Details to be updated for online payment configuration.
|
|
934
938
|
* @property {Object} [online] - Details to be updated for offline payment configuration.
|
|
935
939
|
*/
|
|
@@ -1009,7 +1013,7 @@ const Joi = require("joi");
|
|
|
1009
1013
|
*/
|
|
1010
1014
|
|
|
1011
1015
|
/**
|
|
1012
|
-
* @typedef
|
|
1016
|
+
* @typedef PaymentSessionCreation
|
|
1013
1017
|
* @property {Object} [meta] - Meta
|
|
1014
1018
|
* @property {string} gid - Global identifier of the entity (e.g. order, cart
|
|
1015
1019
|
* etc.) against which payment_session was initiated. This is generated by
|
|
@@ -1024,7 +1028,7 @@ const Joi = require("joi");
|
|
|
1024
1028
|
*/
|
|
1025
1029
|
|
|
1026
1030
|
/**
|
|
1027
|
-
* @typedef
|
|
1031
|
+
* @typedef PaymentSessionPutDetails
|
|
1028
1032
|
* @property {string} gid - Global identifier of the entity (e.g. order, cart
|
|
1029
1033
|
* etc.) against which payment_session was initiated. This is generated by
|
|
1030
1034
|
* Fynd payments platform and is unique.
|
|
@@ -1055,7 +1059,7 @@ const Joi = require("joi");
|
|
|
1055
1059
|
*/
|
|
1056
1060
|
|
|
1057
1061
|
/**
|
|
1058
|
-
* @typedef
|
|
1062
|
+
* @typedef RefundSessionCreation
|
|
1059
1063
|
* @property {Object} [meta] - Meta
|
|
1060
1064
|
* @property {string} gid - Global identifier of the entity (e.g. order, cart
|
|
1061
1065
|
* etc.) against which payment_session was initiated. This is generated by
|
|
@@ -1071,7 +1075,7 @@ const Joi = require("joi");
|
|
|
1071
1075
|
*/
|
|
1072
1076
|
|
|
1073
1077
|
/**
|
|
1074
|
-
* @typedef
|
|
1078
|
+
* @typedef RefundSessionDetails
|
|
1075
1079
|
* @property {string} gid - Global identifier of the entity (e.g. order, cart
|
|
1076
1080
|
* etc.) against which payment_session was initiated. This is generated by
|
|
1077
1081
|
* Fynd payments platform and is unique.
|
|
@@ -1082,7 +1086,7 @@ const Joi = require("joi");
|
|
|
1082
1086
|
*/
|
|
1083
1087
|
|
|
1084
1088
|
/**
|
|
1085
|
-
* @typedef
|
|
1089
|
+
* @typedef PaymentDetails
|
|
1086
1090
|
* @property {Object[]} payment_methods - Method of payment
|
|
1087
1091
|
* @property {string} gid - Global identifier of the entity (e.g. order, cart
|
|
1088
1092
|
* etc.) against which payment_session was initiated. This is generated by
|
|
@@ -1117,7 +1121,7 @@ const Joi = require("joi");
|
|
|
1117
1121
|
*/
|
|
1118
1122
|
|
|
1119
1123
|
/**
|
|
1120
|
-
* @typedef
|
|
1124
|
+
* @typedef CartDetails
|
|
1121
1125
|
* @property {Object} items - Items that are added in cart
|
|
1122
1126
|
* @property {Object[]} articles - List of articles that are added in cart
|
|
1123
1127
|
* @property {number} cart_value - Total cart value i.e. amount to be paid
|
|
@@ -1127,7 +1131,7 @@ const Joi = require("joi");
|
|
|
1127
1131
|
*/
|
|
1128
1132
|
|
|
1129
1133
|
/**
|
|
1130
|
-
* @typedef
|
|
1134
|
+
* @typedef RefundDetails
|
|
1131
1135
|
* @property {number} amount - Refunded amount
|
|
1132
1136
|
* @property {string} currency - The currency of the payment.
|
|
1133
1137
|
* @property {string} request_id - Refund request id, unique id generated by Fynd platform
|
|
@@ -1137,7 +1141,7 @@ const Joi = require("joi");
|
|
|
1137
1141
|
*/
|
|
1138
1142
|
|
|
1139
1143
|
/**
|
|
1140
|
-
* @typedef
|
|
1144
|
+
* @typedef PaymentSessionFetchDetails
|
|
1141
1145
|
* @property {Object} payment_details - Object of payment details
|
|
1142
1146
|
* @property {string} [currency] - The currency of the payment.
|
|
1143
1147
|
* @property {string} status - The status of the payment session.
|
|
@@ -1145,8 +1149,8 @@ const Joi = require("joi");
|
|
|
1145
1149
|
* @property {string} gid - Global identifier of the entity (e.g. order, cart
|
|
1146
1150
|
* etc.) against which payment_session was initiated. This is generated by
|
|
1147
1151
|
* Fynd payments platform and is unique.
|
|
1148
|
-
* @property {
|
|
1149
|
-
* @property {
|
|
1152
|
+
* @property {CartDetails} [cart_details]
|
|
1153
|
+
* @property {RefundDetails[]} refund_details - Object of refund details
|
|
1150
1154
|
*/
|
|
1151
1155
|
|
|
1152
1156
|
/**
|
|
@@ -1157,7 +1161,7 @@ const Joi = require("joi");
|
|
|
1157
1161
|
*/
|
|
1158
1162
|
|
|
1159
1163
|
/**
|
|
1160
|
-
* @typedef
|
|
1164
|
+
* @typedef RefundPriorityDetails
|
|
1161
1165
|
* @property {string} configuration - Configuration for merchant or customer
|
|
1162
1166
|
* @property {boolean} success - Success
|
|
1163
1167
|
* @property {boolean} apportion - Apportion refund to multiple sources
|
|
@@ -1166,13 +1170,13 @@ const Joi = require("joi");
|
|
|
1166
1170
|
*/
|
|
1167
1171
|
|
|
1168
1172
|
/**
|
|
1169
|
-
* @typedef
|
|
1173
|
+
* @typedef RefundPriorityCreation
|
|
1170
1174
|
* @property {boolean} apportion - Apportion refund to multiple sources
|
|
1171
1175
|
* @property {RefundSourcesPriority[]} refund_sources_priority - Refund sources priority
|
|
1172
1176
|
*/
|
|
1173
1177
|
|
|
1174
1178
|
/**
|
|
1175
|
-
* @typedef
|
|
1179
|
+
* @typedef MerchantPaymentModeCreation
|
|
1176
1180
|
* @property {string} business_unit - Business unit
|
|
1177
1181
|
* @property {Object[]} items - List of item details with respect to payment_mode
|
|
1178
1182
|
* @property {Object} device - List of devices and its activation status
|
|
@@ -1191,7 +1195,7 @@ const Joi = require("joi");
|
|
|
1191
1195
|
*/
|
|
1192
1196
|
|
|
1193
1197
|
/**
|
|
1194
|
-
* @typedef
|
|
1198
|
+
* @typedef PlatformPaymentModeCopyConfigCreation
|
|
1195
1199
|
* @property {FromConfig} from_config
|
|
1196
1200
|
* @property {ToConfig} to_config
|
|
1197
1201
|
*/
|
|
@@ -1213,7 +1217,7 @@ const Joi = require("joi");
|
|
|
1213
1217
|
*/
|
|
1214
1218
|
|
|
1215
1219
|
/**
|
|
1216
|
-
* @typedef
|
|
1220
|
+
* @typedef PaymentOrderCreation
|
|
1217
1221
|
* @property {string} order_id - Order id
|
|
1218
1222
|
* @property {PaymentOrderMethods[]} [payment_methods]
|
|
1219
1223
|
* @property {string} [shipment_id] - Shipment_id
|
|
@@ -1234,7 +1238,7 @@ const Joi = require("joi");
|
|
|
1234
1238
|
*/
|
|
1235
1239
|
|
|
1236
1240
|
/**
|
|
1237
|
-
* @typedef
|
|
1241
|
+
* @typedef PaymentOrderDetails
|
|
1238
1242
|
* @property {string} message - Message
|
|
1239
1243
|
* @property {boolean} success - Successful or failure
|
|
1240
1244
|
* @property {string} [payment_confirm_url] - Payment confirm url for aggregator
|
|
@@ -1252,7 +1256,7 @@ const Joi = require("joi");
|
|
|
1252
1256
|
*/
|
|
1253
1257
|
|
|
1254
1258
|
/**
|
|
1255
|
-
* @typedef
|
|
1259
|
+
* @typedef AggregatorVersionDetails
|
|
1256
1260
|
* @property {string} message - Message
|
|
1257
1261
|
* @property {boolean} success - Successful or failure
|
|
1258
1262
|
* @property {AggregatorVersionItemSchema} [items]
|
|
@@ -1266,7 +1270,7 @@ const Joi = require("joi");
|
|
|
1266
1270
|
*/
|
|
1267
1271
|
|
|
1268
1272
|
/**
|
|
1269
|
-
* @typedef
|
|
1273
|
+
* @typedef PatchAggregatorControl
|
|
1270
1274
|
* @property {string} [business_unit] - Business unit
|
|
1271
1275
|
* @property {Object[]} [items] - List of item details with respect to payment_mode
|
|
1272
1276
|
* @property {string} [device] - Device name
|
|
@@ -1328,8 +1332,8 @@ const Joi = require("joi");
|
|
|
1328
1332
|
*/
|
|
1329
1333
|
|
|
1330
1334
|
class PaymentPlatformModel {
|
|
1331
|
-
/** @returns {
|
|
1332
|
-
static
|
|
1335
|
+
/** @returns {PaymentGatewayConfigDetails} */
|
|
1336
|
+
static PaymentGatewayConfigDetails() {
|
|
1333
1337
|
return Joi.object({
|
|
1334
1338
|
aggregators: Joi.array().items(Joi.any()),
|
|
1335
1339
|
app_id: Joi.string().allow("").required(),
|
|
@@ -1360,8 +1364,8 @@ class PaymentPlatformModel {
|
|
|
1360
1364
|
});
|
|
1361
1365
|
}
|
|
1362
1366
|
|
|
1363
|
-
/** @returns {
|
|
1364
|
-
static
|
|
1367
|
+
/** @returns {PaymentGatewayConfigCreation} */
|
|
1368
|
+
static PaymentGatewayConfigCreation() {
|
|
1365
1369
|
return Joi.object({
|
|
1366
1370
|
app_id: Joi.string().allow("").required(),
|
|
1367
1371
|
is_active: Joi.boolean().allow(null),
|
|
@@ -1385,8 +1389,8 @@ class PaymentPlatformModel {
|
|
|
1385
1389
|
});
|
|
1386
1390
|
}
|
|
1387
1391
|
|
|
1388
|
-
/** @returns {
|
|
1389
|
-
static
|
|
1392
|
+
/** @returns {HttpErrorDetails} */
|
|
1393
|
+
static HttpErrorDetails() {
|
|
1390
1394
|
return Joi.object({
|
|
1391
1395
|
error: PaymentPlatformModel.ErrorCodeAndDescription().required(),
|
|
1392
1396
|
success: Joi.boolean().required(),
|
|
@@ -1404,13 +1408,13 @@ class PaymentPlatformModel {
|
|
|
1404
1408
|
/** @returns {ProductCODData} */
|
|
1405
1409
|
static ProductCODData() {
|
|
1406
1410
|
return Joi.object({
|
|
1407
|
-
items: Joi.any().allow(null),
|
|
1408
|
-
cod_charges: PaymentPlatformModel.
|
|
1411
|
+
items: Joi.object().pattern(/\S/, Joi.any()).allow(null, ""),
|
|
1412
|
+
cod_charges: PaymentPlatformModel.CODChargesLimitsDetails(),
|
|
1409
1413
|
});
|
|
1410
1414
|
}
|
|
1411
1415
|
|
|
1412
|
-
/** @returns {
|
|
1413
|
-
static
|
|
1416
|
+
/** @returns {CODChargesLimitsDetails} */
|
|
1417
|
+
static CODChargesLimitsDetails() {
|
|
1414
1418
|
return Joi.object({
|
|
1415
1419
|
max_cart_value: Joi.number().allow(null),
|
|
1416
1420
|
min_cart_value: Joi.number().allow(null),
|
|
@@ -1510,8 +1514,8 @@ class PaymentPlatformModel {
|
|
|
1510
1514
|
/** @returns {AggregatorRoute} */
|
|
1511
1515
|
static AggregatorRoute() {
|
|
1512
1516
|
return Joi.object({
|
|
1513
|
-
data: Joi.any().allow(null),
|
|
1514
|
-
payment_flow_data: Joi.any().allow(null),
|
|
1517
|
+
data: Joi.object().pattern(/\S/, Joi.any()).allow(null, ""),
|
|
1518
|
+
payment_flow_data: Joi.object().pattern(/\S/, Joi.any()).allow(null, ""),
|
|
1515
1519
|
payment_flow: Joi.string().allow("").allow(null),
|
|
1516
1520
|
api_link: Joi.string().allow("").allow(null),
|
|
1517
1521
|
}).allow(null);
|
|
@@ -1599,24 +1603,24 @@ class PaymentPlatformModel {
|
|
|
1599
1603
|
});
|
|
1600
1604
|
}
|
|
1601
1605
|
|
|
1602
|
-
/** @returns {
|
|
1603
|
-
static
|
|
1606
|
+
/** @returns {PaymentModeRouteDetails} */
|
|
1607
|
+
static PaymentModeRouteDetails() {
|
|
1604
1608
|
return Joi.object({
|
|
1605
1609
|
payment_options: PaymentPlatformModel.PaymentOptionAndFlow().required(),
|
|
1606
1610
|
success: Joi.boolean().required(),
|
|
1607
|
-
payment_breakup: Joi.any(),
|
|
1611
|
+
payment_breakup: Joi.object().pattern(/\S/, Joi.any()),
|
|
1608
1612
|
advance_payment: Joi.array()
|
|
1609
1613
|
.items(PaymentPlatformModel.AdvancePaymentObject())
|
|
1610
1614
|
.allow(null, ""),
|
|
1611
1615
|
});
|
|
1612
1616
|
}
|
|
1613
1617
|
|
|
1614
|
-
/** @returns {
|
|
1615
|
-
static
|
|
1618
|
+
/** @returns {PaymentOptionsDetails} */
|
|
1619
|
+
static PaymentOptionsDetails() {
|
|
1616
1620
|
return Joi.object({
|
|
1617
1621
|
payment_options: PaymentPlatformModel.PaymentOptions().required(),
|
|
1618
1622
|
success: Joi.boolean().required(),
|
|
1619
|
-
payment_breakup: Joi.any(),
|
|
1623
|
+
payment_breakup: Joi.object().pattern(/\S/, Joi.any()),
|
|
1620
1624
|
});
|
|
1621
1625
|
}
|
|
1622
1626
|
|
|
@@ -1670,8 +1674,8 @@ class PaymentPlatformModel {
|
|
|
1670
1674
|
});
|
|
1671
1675
|
}
|
|
1672
1676
|
|
|
1673
|
-
/** @returns {
|
|
1674
|
-
static
|
|
1677
|
+
/** @returns {PayoutsDetails} */
|
|
1678
|
+
static PayoutsDetails() {
|
|
1675
1679
|
return Joi.object({
|
|
1676
1680
|
success: Joi.boolean().required(),
|
|
1677
1681
|
items: Joi.array().items(PaymentPlatformModel.Payout()).required(),
|
|
@@ -1694,11 +1698,11 @@ class PaymentPlatformModel {
|
|
|
1694
1698
|
});
|
|
1695
1699
|
}
|
|
1696
1700
|
|
|
1697
|
-
/** @returns {
|
|
1698
|
-
static
|
|
1701
|
+
/** @returns {PayoutCreation} */
|
|
1702
|
+
static PayoutCreation() {
|
|
1699
1703
|
return Joi.object({
|
|
1700
1704
|
aggregator: Joi.string().allow("").required(),
|
|
1701
|
-
users: Joi.any().required(),
|
|
1705
|
+
users: Joi.object().pattern(/\S/, Joi.any()).required(),
|
|
1702
1706
|
unique_external_id: Joi.string().allow("").required(),
|
|
1703
1707
|
is_active: Joi.boolean().required(),
|
|
1704
1708
|
bank_details: PaymentPlatformModel.PayoutBankDetails().required(),
|
|
@@ -1706,24 +1710,24 @@ class PaymentPlatformModel {
|
|
|
1706
1710
|
});
|
|
1707
1711
|
}
|
|
1708
1712
|
|
|
1709
|
-
/** @returns {
|
|
1710
|
-
static
|
|
1713
|
+
/** @returns {PayoutDetails} */
|
|
1714
|
+
static PayoutDetails() {
|
|
1711
1715
|
return Joi.object({
|
|
1712
1716
|
payment_status: Joi.string().allow("").required(),
|
|
1713
|
-
users: Joi.any().required(),
|
|
1717
|
+
users: Joi.object().pattern(/\S/, Joi.any()).required(),
|
|
1714
1718
|
aggregator: Joi.string().allow("").required(),
|
|
1715
1719
|
unique_transfer_no: Joi.string().allow("").required(),
|
|
1716
1720
|
is_active: Joi.boolean().required(),
|
|
1717
|
-
bank_details: Joi.any().required(),
|
|
1721
|
+
bank_details: Joi.object().pattern(/\S/, Joi.any()).required(),
|
|
1718
1722
|
success: Joi.boolean().required(),
|
|
1719
1723
|
transfer_type: Joi.string().allow("").required(),
|
|
1720
1724
|
created: Joi.boolean().required(),
|
|
1721
|
-
payouts: Joi.any().required(),
|
|
1725
|
+
payouts: Joi.object().pattern(/\S/, Joi.any()).required(),
|
|
1722
1726
|
});
|
|
1723
1727
|
}
|
|
1724
1728
|
|
|
1725
|
-
/** @returns {
|
|
1726
|
-
static
|
|
1729
|
+
/** @returns {UpdatePayoutDetails} */
|
|
1730
|
+
static UpdatePayoutDetails() {
|
|
1727
1731
|
return Joi.object({
|
|
1728
1732
|
is_default: Joi.boolean().required(),
|
|
1729
1733
|
is_active: Joi.boolean().required(),
|
|
@@ -1731,8 +1735,8 @@ class PaymentPlatformModel {
|
|
|
1731
1735
|
});
|
|
1732
1736
|
}
|
|
1733
1737
|
|
|
1734
|
-
/** @returns {
|
|
1735
|
-
static
|
|
1738
|
+
/** @returns {UpdatePayoutCreation} */
|
|
1739
|
+
static UpdatePayoutCreation() {
|
|
1736
1740
|
return Joi.object({
|
|
1737
1741
|
is_default: Joi.boolean().required(),
|
|
1738
1742
|
is_active: Joi.boolean().required(),
|
|
@@ -1740,58 +1744,58 @@ class PaymentPlatformModel {
|
|
|
1740
1744
|
});
|
|
1741
1745
|
}
|
|
1742
1746
|
|
|
1743
|
-
/** @returns {
|
|
1744
|
-
static
|
|
1747
|
+
/** @returns {DeletePayoutDetails} */
|
|
1748
|
+
static DeletePayoutDetails() {
|
|
1745
1749
|
return Joi.object({
|
|
1746
1750
|
success: Joi.boolean().required(),
|
|
1747
1751
|
});
|
|
1748
1752
|
}
|
|
1749
1753
|
|
|
1750
|
-
/** @returns {
|
|
1751
|
-
static
|
|
1754
|
+
/** @returns {SubscriptionPaymentMethodDetails} */
|
|
1755
|
+
static SubscriptionPaymentMethodDetails() {
|
|
1752
1756
|
return Joi.object({
|
|
1753
1757
|
data: Joi.array().items(Joi.any()).required(),
|
|
1754
1758
|
success: Joi.boolean().required(),
|
|
1755
1759
|
});
|
|
1756
1760
|
}
|
|
1757
1761
|
|
|
1758
|
-
/** @returns {
|
|
1759
|
-
static
|
|
1762
|
+
/** @returns {DeleteSubscriptionPaymentMethodDetails} */
|
|
1763
|
+
static DeleteSubscriptionPaymentMethodDetails() {
|
|
1760
1764
|
return Joi.object({
|
|
1761
1765
|
success: Joi.boolean().required(),
|
|
1762
1766
|
});
|
|
1763
1767
|
}
|
|
1764
1768
|
|
|
1765
|
-
/** @returns {
|
|
1766
|
-
static
|
|
1769
|
+
/** @returns {SubscriptionConfigDetails} */
|
|
1770
|
+
static SubscriptionConfigDetails() {
|
|
1767
1771
|
return Joi.object({
|
|
1768
1772
|
aggregator: Joi.string().allow("").required(),
|
|
1769
|
-
config: Joi.any().required(),
|
|
1773
|
+
config: Joi.object().pattern(/\S/, Joi.any()).required(),
|
|
1770
1774
|
success: Joi.boolean().required(),
|
|
1771
1775
|
});
|
|
1772
1776
|
}
|
|
1773
1777
|
|
|
1774
|
-
/** @returns {
|
|
1775
|
-
static
|
|
1778
|
+
/** @returns {SaveSubscriptionSetupIntentCreation} */
|
|
1779
|
+
static SaveSubscriptionSetupIntentCreation() {
|
|
1776
1780
|
return Joi.object({
|
|
1777
1781
|
unique_external_id: Joi.string().allow("").required(),
|
|
1778
1782
|
});
|
|
1779
1783
|
}
|
|
1780
1784
|
|
|
1781
|
-
/** @returns {
|
|
1782
|
-
static
|
|
1785
|
+
/** @returns {SaveSubscriptionSetupIntentDetails} */
|
|
1786
|
+
static SaveSubscriptionSetupIntentDetails() {
|
|
1783
1787
|
return Joi.object({
|
|
1784
|
-
data: Joi.any().required(),
|
|
1788
|
+
data: Joi.object().pattern(/\S/, Joi.any()).required(),
|
|
1785
1789
|
success: Joi.boolean().required(),
|
|
1786
1790
|
});
|
|
1787
1791
|
}
|
|
1788
1792
|
|
|
1789
|
-
/** @returns {
|
|
1790
|
-
static
|
|
1793
|
+
/** @returns {RefundAccountDetails} */
|
|
1794
|
+
static RefundAccountDetails() {
|
|
1791
1795
|
return Joi.object({
|
|
1792
1796
|
is_verified_flag: Joi.boolean(),
|
|
1793
1797
|
message: Joi.string().allow("").required(),
|
|
1794
|
-
data: Joi.any(),
|
|
1798
|
+
data: Joi.object().pattern(/\S/, Joi.any()),
|
|
1795
1799
|
success: Joi.boolean().required(),
|
|
1796
1800
|
});
|
|
1797
1801
|
}
|
|
@@ -1816,16 +1820,16 @@ class PaymentPlatformModel {
|
|
|
1816
1820
|
});
|
|
1817
1821
|
}
|
|
1818
1822
|
|
|
1819
|
-
/** @returns {
|
|
1820
|
-
static
|
|
1823
|
+
/** @returns {AddBeneficiaryDetailsOTPCreation} */
|
|
1824
|
+
static AddBeneficiaryDetailsOTPCreation() {
|
|
1821
1825
|
return Joi.object({
|
|
1822
1826
|
order_id: Joi.string().allow("").required(),
|
|
1823
1827
|
details: PaymentPlatformModel.BankDetailsForOTP().required(),
|
|
1824
1828
|
});
|
|
1825
1829
|
}
|
|
1826
1830
|
|
|
1827
|
-
/** @returns {
|
|
1828
|
-
static
|
|
1831
|
+
/** @returns {IfscCodeDetails} */
|
|
1832
|
+
static IfscCodeDetails() {
|
|
1829
1833
|
return Joi.object({
|
|
1830
1834
|
branch_name: Joi.string().allow("").required(),
|
|
1831
1835
|
success: Joi.boolean(),
|
|
@@ -1858,8 +1862,8 @@ class PaymentPlatformModel {
|
|
|
1858
1862
|
});
|
|
1859
1863
|
}
|
|
1860
1864
|
|
|
1861
|
-
/** @returns {
|
|
1862
|
-
static
|
|
1865
|
+
/** @returns {OrderBeneficiaryFetchResults} */
|
|
1866
|
+
static OrderBeneficiaryFetchResults() {
|
|
1863
1867
|
return Joi.object({
|
|
1864
1868
|
beneficiaries: Joi.array()
|
|
1865
1869
|
.items(PaymentPlatformModel.OrderBeneficiaryDetails())
|
|
@@ -1871,7 +1875,7 @@ class PaymentPlatformModel {
|
|
|
1871
1875
|
/** @returns {MultiTenderPaymentMeta} */
|
|
1872
1876
|
static MultiTenderPaymentMeta() {
|
|
1873
1877
|
return Joi.object({
|
|
1874
|
-
extra_meta: Joi.any().allow(null),
|
|
1878
|
+
extra_meta: Joi.object().pattern(/\S/, Joi.any()).allow(null, ""),
|
|
1875
1879
|
order_id: Joi.string().allow(""),
|
|
1876
1880
|
payment_id: Joi.string().allow(""),
|
|
1877
1881
|
current_status: Joi.string().allow(""),
|
|
@@ -1890,8 +1894,8 @@ class PaymentPlatformModel {
|
|
|
1890
1894
|
});
|
|
1891
1895
|
}
|
|
1892
1896
|
|
|
1893
|
-
/** @returns {
|
|
1894
|
-
static
|
|
1897
|
+
/** @returns {PaymentConfirmationCreation} */
|
|
1898
|
+
static PaymentConfirmationCreation() {
|
|
1895
1899
|
return Joi.object({
|
|
1896
1900
|
order_id: Joi.string().allow("").required(),
|
|
1897
1901
|
payment_methods: Joi.array()
|
|
@@ -1900,8 +1904,8 @@ class PaymentPlatformModel {
|
|
|
1900
1904
|
});
|
|
1901
1905
|
}
|
|
1902
1906
|
|
|
1903
|
-
/** @returns {
|
|
1904
|
-
static
|
|
1907
|
+
/** @returns {PaymentConfirmationDetails} */
|
|
1908
|
+
static PaymentConfirmationDetails() {
|
|
1905
1909
|
return Joi.object({
|
|
1906
1910
|
order_id: Joi.string().allow("").required(),
|
|
1907
1911
|
message: Joi.string().allow("").required(),
|
|
@@ -1920,16 +1924,16 @@ class PaymentPlatformModel {
|
|
|
1920
1924
|
});
|
|
1921
1925
|
}
|
|
1922
1926
|
|
|
1923
|
-
/** @returns {
|
|
1924
|
-
static
|
|
1927
|
+
/** @returns {GetUserCODLimitDetails} */
|
|
1928
|
+
static GetUserCODLimitDetails() {
|
|
1925
1929
|
return Joi.object({
|
|
1926
1930
|
user_cod_data: PaymentPlatformModel.CODdata().required(),
|
|
1927
1931
|
success: Joi.boolean().required(),
|
|
1928
1932
|
});
|
|
1929
1933
|
}
|
|
1930
1934
|
|
|
1931
|
-
/** @returns {
|
|
1932
|
-
static
|
|
1935
|
+
/** @returns {SetCODForUserCreation} */
|
|
1936
|
+
static SetCODForUserCreation() {
|
|
1933
1937
|
return Joi.object({
|
|
1934
1938
|
business_unit: Joi.string().allow(""),
|
|
1935
1939
|
mobileno: Joi.string().allow("").required(),
|
|
@@ -1938,8 +1942,8 @@ class PaymentPlatformModel {
|
|
|
1938
1942
|
});
|
|
1939
1943
|
}
|
|
1940
1944
|
|
|
1941
|
-
/** @returns {
|
|
1942
|
-
static
|
|
1945
|
+
/** @returns {SetCODOptionDetails} */
|
|
1946
|
+
static SetCODOptionDetails() {
|
|
1943
1947
|
return Joi.object({
|
|
1944
1948
|
message: Joi.string().allow("").required(),
|
|
1945
1949
|
success: Joi.boolean().required(),
|
|
@@ -1955,8 +1959,8 @@ class PaymentPlatformModel {
|
|
|
1955
1959
|
});
|
|
1956
1960
|
}
|
|
1957
1961
|
|
|
1958
|
-
/** @returns {
|
|
1959
|
-
static
|
|
1962
|
+
/** @returns {EdcAggregatorAndModelListDetails} */
|
|
1963
|
+
static EdcAggregatorAndModelListDetails() {
|
|
1960
1964
|
return Joi.object({
|
|
1961
1965
|
data: Joi.array().items(PaymentPlatformModel.EdcModelData()).required(),
|
|
1962
1966
|
success: Joi.boolean().required(),
|
|
@@ -1971,16 +1975,16 @@ class PaymentPlatformModel {
|
|
|
1971
1975
|
});
|
|
1972
1976
|
}
|
|
1973
1977
|
|
|
1974
|
-
/** @returns {
|
|
1975
|
-
static
|
|
1978
|
+
/** @returns {EdcDeviceStatsDetails} */
|
|
1979
|
+
static EdcDeviceStatsDetails() {
|
|
1976
1980
|
return Joi.object({
|
|
1977
1981
|
statistics: PaymentPlatformModel.StatisticsData().required(),
|
|
1978
1982
|
success: Joi.boolean().required(),
|
|
1979
1983
|
});
|
|
1980
1984
|
}
|
|
1981
1985
|
|
|
1982
|
-
/** @returns {
|
|
1983
|
-
static
|
|
1986
|
+
/** @returns {EdcAddCreation} */
|
|
1987
|
+
static EdcAddCreation() {
|
|
1984
1988
|
return Joi.object({
|
|
1985
1989
|
edc_model: Joi.string().allow("").required(),
|
|
1986
1990
|
store_id: Joi.number().required(),
|
|
@@ -2008,24 +2012,24 @@ class PaymentPlatformModel {
|
|
|
2008
2012
|
});
|
|
2009
2013
|
}
|
|
2010
2014
|
|
|
2011
|
-
/** @returns {
|
|
2012
|
-
static
|
|
2015
|
+
/** @returns {EdcDeviceAddDetails} */
|
|
2016
|
+
static EdcDeviceAddDetails() {
|
|
2013
2017
|
return Joi.object({
|
|
2014
2018
|
data: PaymentPlatformModel.EdcDevice().required(),
|
|
2015
2019
|
success: Joi.boolean().required(),
|
|
2016
2020
|
});
|
|
2017
2021
|
}
|
|
2018
2022
|
|
|
2019
|
-
/** @returns {
|
|
2020
|
-
static
|
|
2023
|
+
/** @returns {EdcDeviceDetails} */
|
|
2024
|
+
static EdcDeviceDetails() {
|
|
2021
2025
|
return Joi.object({
|
|
2022
2026
|
data: PaymentPlatformModel.EdcDevice().required(),
|
|
2023
2027
|
success: Joi.boolean().required(),
|
|
2024
2028
|
});
|
|
2025
2029
|
}
|
|
2026
2030
|
|
|
2027
|
-
/** @returns {
|
|
2028
|
-
static
|
|
2031
|
+
/** @returns {EdcUpdate} */
|
|
2032
|
+
static EdcUpdate() {
|
|
2029
2033
|
return Joi.object({
|
|
2030
2034
|
edc_model: Joi.string().allow(""),
|
|
2031
2035
|
store_id: Joi.number(),
|
|
@@ -2037,8 +2041,8 @@ class PaymentPlatformModel {
|
|
|
2037
2041
|
});
|
|
2038
2042
|
}
|
|
2039
2043
|
|
|
2040
|
-
/** @returns {
|
|
2041
|
-
static
|
|
2044
|
+
/** @returns {EdcDeviceUpdateDetails} */
|
|
2045
|
+
static EdcDeviceUpdateDetails() {
|
|
2042
2046
|
return Joi.object({
|
|
2043
2047
|
success: Joi.boolean().required(),
|
|
2044
2048
|
});
|
|
@@ -2057,8 +2061,8 @@ class PaymentPlatformModel {
|
|
|
2057
2061
|
});
|
|
2058
2062
|
}
|
|
2059
2063
|
|
|
2060
|
-
/** @returns {
|
|
2061
|
-
static
|
|
2064
|
+
/** @returns {EdcDeviceListDetails} */
|
|
2065
|
+
static EdcDeviceListDetails() {
|
|
2062
2066
|
return Joi.object({
|
|
2063
2067
|
items: Joi.array().items(PaymentPlatformModel.EdcDevice()).required(),
|
|
2064
2068
|
page: PaymentPlatformModel.Page().required(),
|
|
@@ -2066,8 +2070,8 @@ class PaymentPlatformModel {
|
|
|
2066
2070
|
});
|
|
2067
2071
|
}
|
|
2068
2072
|
|
|
2069
|
-
/** @returns {
|
|
2070
|
-
static
|
|
2073
|
+
/** @returns {PaymentInitializationCreation} */
|
|
2074
|
+
static PaymentInitializationCreation() {
|
|
2071
2075
|
return Joi.object({
|
|
2072
2076
|
razorpay_payment_id: Joi.string().allow("").allow(null),
|
|
2073
2077
|
device_id: Joi.string().allow("").allow(null),
|
|
@@ -2077,7 +2081,7 @@ class PaymentPlatformModel {
|
|
|
2077
2081
|
aggregator: Joi.string().allow("").required(),
|
|
2078
2082
|
order_id: Joi.string().allow("").required(),
|
|
2079
2083
|
currency: Joi.string().allow("").required(),
|
|
2080
|
-
amount: Joi.number().
|
|
2084
|
+
amount: Joi.number().required(),
|
|
2081
2085
|
contact: Joi.string().allow("").required(),
|
|
2082
2086
|
timeout: Joi.number().allow(null),
|
|
2083
2087
|
merchant_order_id: Joi.string().allow("").required(),
|
|
@@ -2085,8 +2089,8 @@ class PaymentPlatformModel {
|
|
|
2085
2089
|
});
|
|
2086
2090
|
}
|
|
2087
2091
|
|
|
2088
|
-
/** @returns {
|
|
2089
|
-
static
|
|
2092
|
+
/** @returns {PaymentInitializationDetails} */
|
|
2093
|
+
static PaymentInitializationDetails() {
|
|
2090
2094
|
return Joi.object({
|
|
2091
2095
|
razorpay_payment_id: Joi.string().allow("").allow(null),
|
|
2092
2096
|
device_id: Joi.string().allow("").allow(null),
|
|
@@ -2108,8 +2112,8 @@ class PaymentPlatformModel {
|
|
|
2108
2112
|
});
|
|
2109
2113
|
}
|
|
2110
2114
|
|
|
2111
|
-
/** @returns {
|
|
2112
|
-
static
|
|
2115
|
+
/** @returns {PaymentStatusUpdateCreation} */
|
|
2116
|
+
static PaymentStatusUpdateCreation() {
|
|
2113
2117
|
return Joi.object({
|
|
2114
2118
|
device_id: Joi.string().allow("").allow(null),
|
|
2115
2119
|
email: Joi.string().allow("").required(),
|
|
@@ -2118,7 +2122,7 @@ class PaymentPlatformModel {
|
|
|
2118
2122
|
aggregator: Joi.string().allow("").required(),
|
|
2119
2123
|
order_id: Joi.string().allow("").required(),
|
|
2120
2124
|
currency: Joi.string().allow("").required(),
|
|
2121
|
-
amount: Joi.number().
|
|
2125
|
+
amount: Joi.number().required(),
|
|
2122
2126
|
contact: Joi.string().allow("").required(),
|
|
2123
2127
|
merchant_order_id: Joi.string().allow("").required(),
|
|
2124
2128
|
status: Joi.string().allow("").required(),
|
|
@@ -2127,8 +2131,8 @@ class PaymentPlatformModel {
|
|
|
2127
2131
|
});
|
|
2128
2132
|
}
|
|
2129
2133
|
|
|
2130
|
-
/** @returns {
|
|
2131
|
-
static
|
|
2134
|
+
/** @returns {PaymentStatusUpdateDetails} */
|
|
2135
|
+
static PaymentStatusUpdateDetails() {
|
|
2132
2136
|
return Joi.object({
|
|
2133
2137
|
redirect_url: Joi.string().allow("").allow(null),
|
|
2134
2138
|
retry: Joi.boolean().required(),
|
|
@@ -2138,8 +2142,8 @@ class PaymentPlatformModel {
|
|
|
2138
2142
|
});
|
|
2139
2143
|
}
|
|
2140
2144
|
|
|
2141
|
-
/** @returns {
|
|
2142
|
-
static
|
|
2145
|
+
/** @returns {ResendOrCancelPaymentCreation} */
|
|
2146
|
+
static ResendOrCancelPaymentCreation() {
|
|
2143
2147
|
return Joi.object({
|
|
2144
2148
|
order_id: Joi.string().allow("").required(),
|
|
2145
2149
|
device_id: Joi.string().allow("").allow(null),
|
|
@@ -2156,34 +2160,36 @@ class PaymentPlatformModel {
|
|
|
2156
2160
|
});
|
|
2157
2161
|
}
|
|
2158
2162
|
|
|
2159
|
-
/** @returns {
|
|
2160
|
-
static
|
|
2163
|
+
/** @returns {ResendOrCancelPaymentDetails} */
|
|
2164
|
+
static ResendOrCancelPaymentDetails() {
|
|
2161
2165
|
return Joi.object({
|
|
2162
2166
|
data: PaymentPlatformModel.LinkStatus().required(),
|
|
2163
2167
|
success: Joi.boolean().required(),
|
|
2164
2168
|
});
|
|
2165
2169
|
}
|
|
2166
2170
|
|
|
2167
|
-
/** @returns {
|
|
2168
|
-
static
|
|
2171
|
+
/** @returns {PaymentStatusBulkHandlerCreation} */
|
|
2172
|
+
static PaymentStatusBulkHandlerCreation() {
|
|
2169
2173
|
return Joi.object({
|
|
2170
2174
|
merchant_order_id: Joi.array().items(Joi.string().allow("")).required(),
|
|
2171
2175
|
});
|
|
2172
2176
|
}
|
|
2173
2177
|
|
|
2174
|
-
/** @returns {
|
|
2175
|
-
static
|
|
2178
|
+
/** @returns {PaymentObjectList} */
|
|
2179
|
+
static PaymentObjectList() {
|
|
2176
2180
|
return Joi.object({
|
|
2177
|
-
user_object: Joi.any().required(),
|
|
2181
|
+
user_object: Joi.object().pattern(/\S/, Joi.any()).required(),
|
|
2178
2182
|
modified_on: Joi.string().allow("").required(),
|
|
2179
2183
|
collected_by: Joi.string().allow("").required(),
|
|
2180
2184
|
created_on: Joi.string().allow("").required(),
|
|
2181
|
-
refund_object: Joi.any().allow(null),
|
|
2185
|
+
refund_object: Joi.object().pattern(/\S/, Joi.any()).allow(null, ""),
|
|
2182
2186
|
id: Joi.string().allow("").required(),
|
|
2183
2187
|
payment_id: Joi.string().allow("").allow(null),
|
|
2184
2188
|
currency: Joi.string().allow("").required(),
|
|
2185
2189
|
current_status: Joi.string().allow("").required(),
|
|
2186
|
-
aggregator_payment_object: Joi.
|
|
2190
|
+
aggregator_payment_object: Joi.object()
|
|
2191
|
+
.pattern(/\S/, Joi.any())
|
|
2192
|
+
.allow(null, ""),
|
|
2187
2193
|
payment_mode: Joi.string().allow("").required(),
|
|
2188
2194
|
refunded_by: Joi.string().allow("").required(),
|
|
2189
2195
|
amount_in_paisa: Joi.string().allow("").required(),
|
|
@@ -2200,13 +2206,13 @@ class PaymentPlatformModel {
|
|
|
2200
2206
|
return Joi.object({
|
|
2201
2207
|
merchant_order_id: Joi.string().allow("").required(),
|
|
2202
2208
|
payment_object_list: Joi.array().items(
|
|
2203
|
-
PaymentPlatformModel.
|
|
2209
|
+
PaymentPlatformModel.PaymentObjectList()
|
|
2204
2210
|
),
|
|
2205
2211
|
});
|
|
2206
2212
|
}
|
|
2207
2213
|
|
|
2208
|
-
/** @returns {
|
|
2209
|
-
static
|
|
2214
|
+
/** @returns {PaymentStatusBulkHandlerDetails} */
|
|
2215
|
+
static PaymentStatusBulkHandlerDetails() {
|
|
2210
2216
|
return Joi.object({
|
|
2211
2217
|
count: Joi.number(),
|
|
2212
2218
|
data: Joi.array().items(PaymentPlatformModel.PaymentStatusObject()),
|
|
@@ -2216,8 +2222,8 @@ class PaymentPlatformModel {
|
|
|
2216
2222
|
});
|
|
2217
2223
|
}
|
|
2218
2224
|
|
|
2219
|
-
/** @returns {
|
|
2220
|
-
static
|
|
2225
|
+
/** @returns {GetOauthUrlDetails} */
|
|
2226
|
+
static GetOauthUrlDetails() {
|
|
2221
2227
|
return Joi.object({
|
|
2222
2228
|
url: Joi.string().allow("").required(),
|
|
2223
2229
|
success: Joi.boolean().required(),
|
|
@@ -2252,7 +2258,7 @@ class PaymentPlatformModel {
|
|
|
2252
2258
|
static RepaymentDetailsSerialiserPayAll() {
|
|
2253
2259
|
return Joi.object({
|
|
2254
2260
|
total_amount: Joi.number().required(),
|
|
2255
|
-
extension_order_id: Joi.string().allow("").
|
|
2261
|
+
extension_order_id: Joi.string().allow("").required(),
|
|
2256
2262
|
aggregator_transaction_id: Joi.string().allow("").required(),
|
|
2257
2263
|
aggregator_order_id: Joi.string().allow("").required(),
|
|
2258
2264
|
shipment_details: Joi.array().items(
|
|
@@ -2261,16 +2267,16 @@ class PaymentPlatformModel {
|
|
|
2261
2267
|
});
|
|
2262
2268
|
}
|
|
2263
2269
|
|
|
2264
|
-
/** @returns {
|
|
2265
|
-
static
|
|
2270
|
+
/** @returns {RepaymentDetails} */
|
|
2271
|
+
static RepaymentDetails() {
|
|
2266
2272
|
return Joi.object({
|
|
2267
|
-
data: Joi.any().required(),
|
|
2273
|
+
data: Joi.object().pattern(/\S/, Joi.any()).required(),
|
|
2268
2274
|
success: Joi.boolean().required(),
|
|
2269
2275
|
});
|
|
2270
2276
|
}
|
|
2271
2277
|
|
|
2272
|
-
/** @returns {
|
|
2273
|
-
static
|
|
2278
|
+
/** @returns {MerchantOnBoardingCreation} */
|
|
2279
|
+
static MerchantOnBoardingCreation() {
|
|
2274
2280
|
return Joi.object({
|
|
2275
2281
|
credit_line_id: Joi.string().allow("").required(),
|
|
2276
2282
|
aggregator: Joi.string().allow("").required(),
|
|
@@ -2280,39 +2286,39 @@ class PaymentPlatformModel {
|
|
|
2280
2286
|
});
|
|
2281
2287
|
}
|
|
2282
2288
|
|
|
2283
|
-
/** @returns {
|
|
2284
|
-
static
|
|
2289
|
+
/** @returns {MerchantOnBoardingDetails} */
|
|
2290
|
+
static MerchantOnBoardingDetails() {
|
|
2285
2291
|
return Joi.object({
|
|
2286
|
-
data: Joi.any().required(),
|
|
2292
|
+
data: Joi.object().pattern(/\S/, Joi.any()).required(),
|
|
2287
2293
|
success: Joi.boolean().required(),
|
|
2288
2294
|
});
|
|
2289
2295
|
}
|
|
2290
2296
|
|
|
2291
|
-
/** @returns {
|
|
2292
|
-
static
|
|
2297
|
+
/** @returns {ValidateCustomerCreation} */
|
|
2298
|
+
static ValidateCustomerCreation() {
|
|
2293
2299
|
return Joi.object({
|
|
2294
2300
|
phone_number: Joi.string().allow("").required(),
|
|
2295
2301
|
aggregator: Joi.string().allow("").required(),
|
|
2296
2302
|
payload: Joi.string().allow("").allow(null),
|
|
2297
|
-
delivery_address: Joi.any(),
|
|
2303
|
+
delivery_address: Joi.object().pattern(/\S/, Joi.any()),
|
|
2298
2304
|
transaction_amount_in_paise: Joi.number().required(),
|
|
2299
2305
|
order_items: Joi.array().items(Joi.any()),
|
|
2300
|
-
merchant_params: Joi.any(),
|
|
2301
|
-
billing_address: Joi.any(),
|
|
2306
|
+
merchant_params: Joi.object().pattern(/\S/, Joi.any()),
|
|
2307
|
+
billing_address: Joi.object().pattern(/\S/, Joi.any()),
|
|
2302
2308
|
});
|
|
2303
2309
|
}
|
|
2304
2310
|
|
|
2305
|
-
/** @returns {
|
|
2306
|
-
static
|
|
2311
|
+
/** @returns {ValidateCustomerDetails} */
|
|
2312
|
+
static ValidateCustomerDetails() {
|
|
2307
2313
|
return Joi.object({
|
|
2308
2314
|
message: Joi.string().allow("").required(),
|
|
2309
|
-
data: Joi.any(),
|
|
2315
|
+
data: Joi.object().pattern(/\S/, Joi.any()),
|
|
2310
2316
|
success: Joi.boolean().required(),
|
|
2311
2317
|
});
|
|
2312
2318
|
}
|
|
2313
2319
|
|
|
2314
|
-
/** @returns {
|
|
2315
|
-
static
|
|
2320
|
+
/** @returns {GetPaymentLinkDetails} */
|
|
2321
|
+
static GetPaymentLinkDetails() {
|
|
2316
2322
|
return Joi.object({
|
|
2317
2323
|
message: Joi.string().allow("").required(),
|
|
2318
2324
|
status_code: Joi.number().required(),
|
|
@@ -2340,8 +2346,8 @@ class PaymentPlatformModel {
|
|
|
2340
2346
|
});
|
|
2341
2347
|
}
|
|
2342
2348
|
|
|
2343
|
-
/** @returns {
|
|
2344
|
-
static
|
|
2349
|
+
/** @returns {ErrorDetails} */
|
|
2350
|
+
static ErrorDetails() {
|
|
2345
2351
|
return Joi.object({
|
|
2346
2352
|
status_code: Joi.number().required(),
|
|
2347
2353
|
error: PaymentPlatformModel.ErrorDescription(),
|
|
@@ -2360,8 +2366,8 @@ class PaymentPlatformModel {
|
|
|
2360
2366
|
});
|
|
2361
2367
|
}
|
|
2362
2368
|
|
|
2363
|
-
/** @returns {
|
|
2364
|
-
static
|
|
2369
|
+
/** @returns {CreatePaymentLinkCreation} */
|
|
2370
|
+
static CreatePaymentLinkCreation() {
|
|
2365
2371
|
return Joi.object({
|
|
2366
2372
|
email: Joi.string().allow("").required(),
|
|
2367
2373
|
amount: Joi.number().required(),
|
|
@@ -2370,11 +2376,13 @@ class PaymentPlatformModel {
|
|
|
2370
2376
|
description: Joi.string().allow("").allow(null),
|
|
2371
2377
|
meta: PaymentPlatformModel.CreatePaymentLinkMeta().required(),
|
|
2372
2378
|
external_order_id: Joi.string().allow("").required(),
|
|
2379
|
+
success_redirection_url: Joi.string().allow(""),
|
|
2380
|
+
failure_redirection_url: Joi.string().allow(""),
|
|
2373
2381
|
});
|
|
2374
2382
|
}
|
|
2375
2383
|
|
|
2376
|
-
/** @returns {
|
|
2377
|
-
static
|
|
2384
|
+
/** @returns {CreatePaymentLinkDetails} */
|
|
2385
|
+
static CreatePaymentLinkDetails() {
|
|
2378
2386
|
return Joi.object({
|
|
2379
2387
|
message: Joi.string().allow("").required(),
|
|
2380
2388
|
status_code: Joi.number().required(),
|
|
@@ -2385,8 +2393,8 @@ class PaymentPlatformModel {
|
|
|
2385
2393
|
});
|
|
2386
2394
|
}
|
|
2387
2395
|
|
|
2388
|
-
/** @returns {
|
|
2389
|
-
static
|
|
2396
|
+
/** @returns {PollingPaymentLinkDetails} */
|
|
2397
|
+
static PollingPaymentLinkDetails() {
|
|
2390
2398
|
return Joi.object({
|
|
2391
2399
|
message: Joi.string().allow("").allow(null),
|
|
2392
2400
|
http_status: Joi.number().allow(null),
|
|
@@ -2401,15 +2409,15 @@ class PaymentPlatformModel {
|
|
|
2401
2409
|
});
|
|
2402
2410
|
}
|
|
2403
2411
|
|
|
2404
|
-
/** @returns {
|
|
2405
|
-
static
|
|
2412
|
+
/** @returns {CancelOrResendPaymentLinkCreation} */
|
|
2413
|
+
static CancelOrResendPaymentLinkCreation() {
|
|
2406
2414
|
return Joi.object({
|
|
2407
2415
|
payment_link_id: Joi.string().allow("").required(),
|
|
2408
2416
|
});
|
|
2409
2417
|
}
|
|
2410
2418
|
|
|
2411
|
-
/** @returns {
|
|
2412
|
-
static
|
|
2419
|
+
/** @returns {ResendPaymentLinkDetails} */
|
|
2420
|
+
static ResendPaymentLinkDetails() {
|
|
2413
2421
|
return Joi.object({
|
|
2414
2422
|
status_code: Joi.number().required(),
|
|
2415
2423
|
message: Joi.string().allow("").required(),
|
|
@@ -2418,8 +2426,8 @@ class PaymentPlatformModel {
|
|
|
2418
2426
|
});
|
|
2419
2427
|
}
|
|
2420
2428
|
|
|
2421
|
-
/** @returns {
|
|
2422
|
-
static
|
|
2429
|
+
/** @returns {CancelPaymentLinkDetails} */
|
|
2430
|
+
static CancelPaymentLinkDetails() {
|
|
2423
2431
|
return Joi.object({
|
|
2424
2432
|
status_code: Joi.number().required(),
|
|
2425
2433
|
message: Joi.string().allow("").required(),
|
|
@@ -2453,16 +2461,16 @@ class PaymentPlatformModel {
|
|
|
2453
2461
|
});
|
|
2454
2462
|
}
|
|
2455
2463
|
|
|
2456
|
-
/** @returns {
|
|
2457
|
-
static
|
|
2464
|
+
/** @returns {GetPaymentCodeDetails} */
|
|
2465
|
+
static GetPaymentCodeDetails() {
|
|
2458
2466
|
return Joi.object({
|
|
2459
2467
|
data: PaymentPlatformModel.GetPaymentCode().required(),
|
|
2460
2468
|
success: Joi.boolean().required(),
|
|
2461
2469
|
});
|
|
2462
2470
|
}
|
|
2463
2471
|
|
|
2464
|
-
/** @returns {
|
|
2465
|
-
static
|
|
2472
|
+
/** @returns {PlatformPaymentModeDetails} */
|
|
2473
|
+
static PlatformPaymentModeDetails() {
|
|
2466
2474
|
return Joi.object({
|
|
2467
2475
|
message: Joi.string().allow("").allow(null),
|
|
2468
2476
|
items: Joi.array().items(Joi.any()).allow(null, ""),
|
|
@@ -2470,11 +2478,11 @@ class PaymentPlatformModel {
|
|
|
2470
2478
|
});
|
|
2471
2479
|
}
|
|
2472
2480
|
|
|
2473
|
-
/** @returns {
|
|
2474
|
-
static
|
|
2481
|
+
/** @returns {MerchnatPaymentModeCreation} */
|
|
2482
|
+
static MerchnatPaymentModeCreation() {
|
|
2475
2483
|
return Joi.object({
|
|
2476
|
-
offline: Joi.any().allow(null),
|
|
2477
|
-
online: Joi.any().allow(null),
|
|
2484
|
+
offline: Joi.object().pattern(/\S/, Joi.any()).allow(null, ""),
|
|
2485
|
+
online: Joi.object().pattern(/\S/, Joi.any()).allow(null, ""),
|
|
2478
2486
|
});
|
|
2479
2487
|
}
|
|
2480
2488
|
|
|
@@ -2485,7 +2493,9 @@ class PaymentPlatformModel {
|
|
|
2485
2493
|
amount: Joi.number().required(),
|
|
2486
2494
|
status: Joi.string().allow("").required(),
|
|
2487
2495
|
currency: Joi.string().allow("").required(),
|
|
2488
|
-
aggregator_order_details: Joi.
|
|
2496
|
+
aggregator_order_details: Joi.object()
|
|
2497
|
+
.pattern(/\S/, Joi.any())
|
|
2498
|
+
.required(),
|
|
2489
2499
|
aggregator: Joi.string().allow("").required(),
|
|
2490
2500
|
});
|
|
2491
2501
|
}
|
|
@@ -2493,14 +2503,14 @@ class PaymentPlatformModel {
|
|
|
2493
2503
|
/** @returns {AddressDetail} */
|
|
2494
2504
|
static AddressDetail() {
|
|
2495
2505
|
return Joi.object({
|
|
2496
|
-
google_map_point: Joi.any(),
|
|
2506
|
+
google_map_point: Joi.object().pattern(/\S/, Joi.any()),
|
|
2497
2507
|
landmark: Joi.string().allow(""),
|
|
2498
2508
|
phone: Joi.string().allow("").required(),
|
|
2499
2509
|
country_iso_code: Joi.string().allow("").required(),
|
|
2500
2510
|
area_code: Joi.string().allow("").required(),
|
|
2501
2511
|
country: Joi.string().allow("").required(),
|
|
2502
2512
|
expire_at: Joi.string().allow(""),
|
|
2503
|
-
geo_location: Joi.any(),
|
|
2513
|
+
geo_location: Joi.object().pattern(/\S/, Joi.any()),
|
|
2504
2514
|
state: Joi.string().allow("").required(),
|
|
2505
2515
|
area: Joi.string().allow("").required(),
|
|
2506
2516
|
g_address_id: Joi.string().allow("").required(),
|
|
@@ -2538,15 +2548,15 @@ class PaymentPlatformModel {
|
|
|
2538
2548
|
kind: Joi.string().allow(""),
|
|
2539
2549
|
billing_address: PaymentPlatformModel.AddressDetail(),
|
|
2540
2550
|
captured: Joi.boolean(),
|
|
2541
|
-
meta: Joi.any(),
|
|
2551
|
+
meta: Joi.object().pattern(/\S/, Joi.any()),
|
|
2542
2552
|
status: Joi.string().allow("").required(),
|
|
2543
2553
|
});
|
|
2544
2554
|
}
|
|
2545
2555
|
|
|
2546
|
-
/** @returns {
|
|
2547
|
-
static
|
|
2556
|
+
/** @returns {PaymentSessionCreation} */
|
|
2557
|
+
static PaymentSessionCreation() {
|
|
2548
2558
|
return Joi.object({
|
|
2549
|
-
meta: Joi.any(),
|
|
2559
|
+
meta: Joi.object().pattern(/\S/, Joi.any()),
|
|
2550
2560
|
gid: Joi.string().allow("").required(),
|
|
2551
2561
|
order_details: PaymentPlatformModel.OrderDetail().required(),
|
|
2552
2562
|
status: Joi.string().allow("").required(),
|
|
@@ -2559,8 +2569,8 @@ class PaymentPlatformModel {
|
|
|
2559
2569
|
});
|
|
2560
2570
|
}
|
|
2561
2571
|
|
|
2562
|
-
/** @returns {
|
|
2563
|
-
static
|
|
2572
|
+
/** @returns {PaymentSessionPutDetails} */
|
|
2573
|
+
static PaymentSessionPutDetails() {
|
|
2564
2574
|
return Joi.object({
|
|
2565
2575
|
gid: Joi.string().allow("").required(),
|
|
2566
2576
|
platform_transaction_details: Joi.array().items(Joi.any()).required(),
|
|
@@ -2589,10 +2599,10 @@ class PaymentPlatformModel {
|
|
|
2589
2599
|
});
|
|
2590
2600
|
}
|
|
2591
2601
|
|
|
2592
|
-
/** @returns {
|
|
2593
|
-
static
|
|
2602
|
+
/** @returns {RefundSessionCreation} */
|
|
2603
|
+
static RefundSessionCreation() {
|
|
2594
2604
|
return Joi.object({
|
|
2595
|
-
meta: Joi.any(),
|
|
2605
|
+
meta: Joi.object().pattern(/\S/, Joi.any()),
|
|
2596
2606
|
gid: Joi.string().allow("").required(),
|
|
2597
2607
|
status: Joi.string().allow("").required(),
|
|
2598
2608
|
currency: Joi.string().allow("").required(),
|
|
@@ -2607,8 +2617,8 @@ class PaymentPlatformModel {
|
|
|
2607
2617
|
});
|
|
2608
2618
|
}
|
|
2609
2619
|
|
|
2610
|
-
/** @returns {
|
|
2611
|
-
static
|
|
2620
|
+
/** @returns {RefundSessionDetails} */
|
|
2621
|
+
static RefundSessionDetails() {
|
|
2612
2622
|
return Joi.object({
|
|
2613
2623
|
gid: Joi.string().allow("").required(),
|
|
2614
2624
|
status: Joi.string().allow("").required(),
|
|
@@ -2618,8 +2628,8 @@ class PaymentPlatformModel {
|
|
|
2618
2628
|
});
|
|
2619
2629
|
}
|
|
2620
2630
|
|
|
2621
|
-
/** @returns {
|
|
2622
|
-
static
|
|
2631
|
+
/** @returns {PaymentDetails} */
|
|
2632
|
+
static PaymentDetails() {
|
|
2623
2633
|
return Joi.object({
|
|
2624
2634
|
payment_methods: Joi.array().items(Joi.any()).required(),
|
|
2625
2635
|
gid: Joi.string().allow("").required(),
|
|
@@ -2627,7 +2637,7 @@ class PaymentPlatformModel {
|
|
|
2627
2637
|
currency: Joi.string().allow("").required(),
|
|
2628
2638
|
mode: Joi.string().allow("").required(),
|
|
2629
2639
|
merchant_locale: Joi.string().allow(""),
|
|
2630
|
-
meta: Joi.any().allow(null),
|
|
2640
|
+
meta: Joi.object().pattern(/\S/, Joi.any()).allow(null, ""),
|
|
2631
2641
|
kind: Joi.string().allow(""),
|
|
2632
2642
|
success_url: Joi.string().allow(""),
|
|
2633
2643
|
status: Joi.string().allow("").required(),
|
|
@@ -2644,10 +2654,10 @@ class PaymentPlatformModel {
|
|
|
2644
2654
|
});
|
|
2645
2655
|
}
|
|
2646
2656
|
|
|
2647
|
-
/** @returns {
|
|
2648
|
-
static
|
|
2657
|
+
/** @returns {CartDetails} */
|
|
2658
|
+
static CartDetails() {
|
|
2649
2659
|
return Joi.object({
|
|
2650
|
-
items: Joi.any().required(),
|
|
2660
|
+
items: Joi.object().pattern(/\S/, Joi.any()).required(),
|
|
2651
2661
|
articles: Joi.array().items(Joi.any()).required(),
|
|
2652
2662
|
cart_value: Joi.number().required(),
|
|
2653
2663
|
total_quantity: Joi.number(),
|
|
@@ -2655,8 +2665,8 @@ class PaymentPlatformModel {
|
|
|
2655
2665
|
});
|
|
2656
2666
|
}
|
|
2657
2667
|
|
|
2658
|
-
/** @returns {
|
|
2659
|
-
static
|
|
2668
|
+
/** @returns {RefundDetails} */
|
|
2669
|
+
static RefundDetails() {
|
|
2660
2670
|
return Joi.object({
|
|
2661
2671
|
amount: Joi.number().required(),
|
|
2662
2672
|
currency: Joi.string().allow("").required(),
|
|
@@ -2667,17 +2677,17 @@ class PaymentPlatformModel {
|
|
|
2667
2677
|
});
|
|
2668
2678
|
}
|
|
2669
2679
|
|
|
2670
|
-
/** @returns {
|
|
2671
|
-
static
|
|
2680
|
+
/** @returns {PaymentSessionFetchDetails} */
|
|
2681
|
+
static PaymentSessionFetchDetails() {
|
|
2672
2682
|
return Joi.object({
|
|
2673
2683
|
payment_details: Joi.any().required(),
|
|
2674
2684
|
currency: Joi.string().allow("").allow(null),
|
|
2675
2685
|
status: Joi.string().allow("").required(),
|
|
2676
2686
|
total_amount: Joi.number().required(),
|
|
2677
|
-
gid: Joi.string().allow("").
|
|
2678
|
-
cart_details: PaymentPlatformModel.
|
|
2687
|
+
gid: Joi.string().allow("").required(),
|
|
2688
|
+
cart_details: PaymentPlatformModel.CartDetails(),
|
|
2679
2689
|
refund_details: Joi.array()
|
|
2680
|
-
.items(PaymentPlatformModel.
|
|
2690
|
+
.items(PaymentPlatformModel.RefundDetails())
|
|
2681
2691
|
.required(),
|
|
2682
2692
|
});
|
|
2683
2693
|
}
|
|
@@ -2691,8 +2701,8 @@ class PaymentPlatformModel {
|
|
|
2691
2701
|
});
|
|
2692
2702
|
}
|
|
2693
2703
|
|
|
2694
|
-
/** @returns {
|
|
2695
|
-
static
|
|
2704
|
+
/** @returns {RefundPriorityDetails} */
|
|
2705
|
+
static RefundPriorityDetails() {
|
|
2696
2706
|
return Joi.object({
|
|
2697
2707
|
configuration: Joi.string().allow("").required(),
|
|
2698
2708
|
success: Joi.boolean().required(),
|
|
@@ -2704,8 +2714,8 @@ class PaymentPlatformModel {
|
|
|
2704
2714
|
});
|
|
2705
2715
|
}
|
|
2706
2716
|
|
|
2707
|
-
/** @returns {
|
|
2708
|
-
static
|
|
2717
|
+
/** @returns {RefundPriorityCreation} */
|
|
2718
|
+
static RefundPriorityCreation() {
|
|
2709
2719
|
return Joi.object({
|
|
2710
2720
|
apportion: Joi.boolean().required(),
|
|
2711
2721
|
refund_sources_priority: Joi.array()
|
|
@@ -2714,12 +2724,12 @@ class PaymentPlatformModel {
|
|
|
2714
2724
|
});
|
|
2715
2725
|
}
|
|
2716
2726
|
|
|
2717
|
-
/** @returns {
|
|
2718
|
-
static
|
|
2727
|
+
/** @returns {MerchantPaymentModeCreation} */
|
|
2728
|
+
static MerchantPaymentModeCreation() {
|
|
2719
2729
|
return Joi.object({
|
|
2720
2730
|
business_unit: Joi.string().allow("").required(),
|
|
2721
2731
|
items: Joi.array().items(Joi.any()).required(),
|
|
2722
|
-
device: Joi.any().required(),
|
|
2732
|
+
device: Joi.object().pattern(/\S/, Joi.any()).required(),
|
|
2723
2733
|
});
|
|
2724
2734
|
}
|
|
2725
2735
|
|
|
@@ -2739,8 +2749,8 @@ class PaymentPlatformModel {
|
|
|
2739
2749
|
});
|
|
2740
2750
|
}
|
|
2741
2751
|
|
|
2742
|
-
/** @returns {
|
|
2743
|
-
static
|
|
2752
|
+
/** @returns {PlatformPaymentModeCopyConfigCreation} */
|
|
2753
|
+
static PlatformPaymentModeCopyConfigCreation() {
|
|
2744
2754
|
return Joi.object({
|
|
2745
2755
|
from_config: PaymentPlatformModel.FromConfig().required(),
|
|
2746
2756
|
to_config: PaymentPlatformModel.ToConfig().required(),
|
|
@@ -2767,8 +2777,8 @@ class PaymentPlatformModel {
|
|
|
2767
2777
|
});
|
|
2768
2778
|
}
|
|
2769
2779
|
|
|
2770
|
-
/** @returns {
|
|
2771
|
-
static
|
|
2780
|
+
/** @returns {PaymentOrderCreation} */
|
|
2781
|
+
static PaymentOrderCreation() {
|
|
2772
2782
|
return Joi.object({
|
|
2773
2783
|
order_id: Joi.string().allow("").required(),
|
|
2774
2784
|
payment_methods: Joi.array().items(
|
|
@@ -2794,8 +2804,8 @@ class PaymentPlatformModel {
|
|
|
2794
2804
|
});
|
|
2795
2805
|
}
|
|
2796
2806
|
|
|
2797
|
-
/** @returns {
|
|
2798
|
-
static
|
|
2807
|
+
/** @returns {PaymentOrderDetails} */
|
|
2808
|
+
static PaymentOrderDetails() {
|
|
2799
2809
|
return Joi.object({
|
|
2800
2810
|
message: Joi.string().allow("").required(),
|
|
2801
2811
|
success: Joi.boolean().required(),
|
|
@@ -2816,8 +2826,8 @@ class PaymentPlatformModel {
|
|
|
2816
2826
|
});
|
|
2817
2827
|
}
|
|
2818
2828
|
|
|
2819
|
-
/** @returns {
|
|
2820
|
-
static
|
|
2829
|
+
/** @returns {AggregatorVersionDetails} */
|
|
2830
|
+
static AggregatorVersionDetails() {
|
|
2821
2831
|
return Joi.object({
|
|
2822
2832
|
message: Joi.string().allow("").required(),
|
|
2823
2833
|
success: Joi.boolean().required(),
|
|
@@ -2834,8 +2844,8 @@ class PaymentPlatformModel {
|
|
|
2834
2844
|
});
|
|
2835
2845
|
}
|
|
2836
2846
|
|
|
2837
|
-
/** @returns {
|
|
2838
|
-
static
|
|
2847
|
+
/** @returns {PatchAggregatorControl} */
|
|
2848
|
+
static PatchAggregatorControl() {
|
|
2839
2849
|
return Joi.object({
|
|
2840
2850
|
business_unit: Joi.string().allow(""),
|
|
2841
2851
|
items: Joi.array().items(Joi.any()),
|