@gofynd/fdk-client-javascript 1.0.0 → 1.0.2
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/documentation/application/CART.md +251 -251
- package/documentation/application/CATALOG.md +393 -393
- package/documentation/application/CONTENT.md +15 -1
- package/documentation/application/ORDER.md +268 -268
- package/documentation/application/PAYMENT.md +249 -249
- package/documentation/application/POSCART.md +297 -297
- package/documentation/platform/CART.md +499 -499
- package/documentation/platform/CATALOG.md +3497 -3097
- package/documentation/platform/COMPANYPROFILE.md +207 -207
- package/documentation/platform/CONTENT.md +123 -1
- package/documentation/platform/ORDER.md +1518 -1324
- package/documentation/platform/PARTNER.md +7 -7
- package/documentation/platform/PAYMENT.md +96 -96
- package/index.js +7 -1
- package/package.json +1 -1
- package/sdk/application/ApplicationConfig.js +1 -1
- package/sdk/application/Cart/CartApplicationClient.js +865 -52
- package/sdk/application/Cart/CartApplicationModel.d.ts +7 -7
- package/sdk/application/Cart/CartApplicationModel.js +335 -335
- package/sdk/application/Cart/CartApplicationValidator.js +1 -0
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +1 -1
- package/sdk/application/Catalog/CatalogApplicationClient.js +1034 -60
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +19 -19
- package/sdk/application/Catalog/CatalogApplicationModel.js +532 -532
- package/sdk/application/Catalog/CatalogApplicationValidator.js +1 -0
- package/sdk/application/Common/CommonApplicationClient.js +66 -4
- package/sdk/application/Common/CommonApplicationValidator.js +1 -0
- package/sdk/application/Communication/CommunicationApplicationClient.js +108 -6
- package/sdk/application/Communication/CommunicationApplicationValidator.js +1 -0
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +1 -1
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +558 -32
- package/sdk/application/Configuration/ConfigurationApplicationValidator.js +1 -0
- package/sdk/application/Content/ContentApplicationClient.js +621 -38
- package/sdk/application/Content/ContentApplicationModel.d.ts +1 -0
- package/sdk/application/Content/ContentApplicationModel.js +11 -1
- package/sdk/application/Content/ContentApplicationValidator.js +1 -0
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +101 -6
- package/sdk/application/FileStorage/FileStorageApplicationValidator.js +1 -0
- package/sdk/application/Lead/LeadApplicationClient.js +229 -14
- package/sdk/application/Lead/LeadApplicationValidator.js +1 -0
- package/sdk/application/Logistic/LogisticApplicationClient.js +134 -8
- package/sdk/application/Logistic/LogisticApplicationValidator.js +1 -0
- package/sdk/application/Order/OrderApplicationClient.d.ts +1 -1
- package/sdk/application/Order/OrderApplicationClient.js +403 -24
- package/sdk/application/Order/OrderApplicationModel.d.ts +20 -20
- package/sdk/application/Order/OrderApplicationModel.js +334 -334
- package/sdk/application/Order/OrderApplicationValidator.js +1 -0
- package/sdk/application/Payment/PaymentApplicationClient.js +1381 -78
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +2 -2
- package/sdk/application/Payment/PaymentApplicationModel.js +350 -350
- package/sdk/application/Payment/PaymentApplicationValidator.js +1 -0
- package/sdk/application/PosCart/PosCartApplicationClient.js +914 -54
- package/sdk/application/PosCart/PosCartApplicationModel.d.ts +15 -15
- package/sdk/application/PosCart/PosCartApplicationModel.js +389 -389
- package/sdk/application/PosCart/PosCartApplicationValidator.js +1 -0
- package/sdk/application/Rewards/RewardsApplicationClient.js +235 -14
- package/sdk/application/Rewards/RewardsApplicationValidator.js +1 -0
- package/sdk/application/Share/ShareApplicationClient.js +226 -14
- package/sdk/application/Share/ShareApplicationValidator.js +1 -0
- package/sdk/application/Theme/ThemeApplicationClient.js +130 -8
- package/sdk/application/Theme/ThemeApplicationValidator.js +1 -0
- package/sdk/application/User/UserApplicationClient.js +1133 -70
- package/sdk/application/User/UserApplicationValidator.js +1 -0
- package/sdk/common/AxiosHelper.js +1 -1
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +16 -8
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +287 -16
- package/sdk/platform/Analytics/AnalyticsPlatformClient.d.ts +8 -4
- package/sdk/platform/Analytics/AnalyticsPlatformClient.js +153 -8
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +8 -4
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +141 -8
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +24 -12
- package/sdk/platform/Billing/BillingPlatformClient.js +429 -24
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +34 -17
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +617 -34
- package/sdk/platform/Cart/CartPlatformModel.d.ts +35 -35
- package/sdk/platform/Cart/CartPlatformModel.js +617 -617
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +191 -138
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +2202 -302
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +11 -11
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +45 -45
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +344 -226
- package/sdk/platform/Catalog/CatalogPlatformClient.js +3282 -488
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +110 -100
- package/sdk/platform/Catalog/CatalogPlatformModel.js +2073 -1795
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +23 -21
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +103 -84
- package/sdk/platform/Common/CommonPlatformClient.d.ts +4 -2
- package/sdk/platform/Common/CommonPlatformClient.js +73 -4
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +80 -40
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +1499 -80
- package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +2 -1
- package/sdk/platform/Communication/CommunicationPlatformClient.js +41 -2
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +27 -14
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +486 -26
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +9 -9
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +274 -274
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +56 -28
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +1022 -56
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +36 -18
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +693 -36
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +148 -67
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +2446 -140
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +1 -0
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +7 -0
- package/sdk/platform/Content/ContentPlatformModel.d.ts +4 -0
- package/sdk/platform/Content/ContentPlatformModel.js +43 -1
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +21 -10
- package/sdk/platform/Discount/DiscountPlatformClient.js +400 -22
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +8 -4
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +148 -8
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +12 -6
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +214 -12
- package/sdk/platform/Inventory/InventoryPlatformClient.d.ts +27 -14
- package/sdk/platform/Inventory/InventoryPlatformClient.js +449 -24
- package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +26 -13
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +447 -26
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +22 -11
- package/sdk/platform/Lead/LeadPlatformClient.js +384 -22
- package/sdk/platform/OAuthClient.js +8 -8
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +6 -3
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +125 -6
- package/sdk/platform/Order/OrderPlatformClient.d.ts +108 -47
- package/sdk/platform/Order/OrderPlatformClient.js +1641 -100
- package/sdk/platform/Order/OrderPlatformModel.d.ts +69 -58
- package/sdk/platform/Order/OrderPlatformModel.js +1485 -1493
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +2 -1
- package/sdk/platform/Order/OrderPlatformValidator.js +15 -4
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +4 -2
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +74 -4
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +1 -1
- package/sdk/platform/Partner/PartnerPlatformModel.js +8 -8
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +22 -11
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +418 -22
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +21 -11
- package/sdk/platform/Payment/PaymentPlatformClient.js +374 -20
- package/sdk/platform/Payment/PaymentPlatformModel.js +139 -139
- package/sdk/platform/PlatformApplicationClient.d.ts +2973 -2827
- package/sdk/platform/PlatformApplicationClient.js +3461 -3263
- package/sdk/platform/PlatformClient.d.ts +2973 -2827
- package/sdk/platform/PlatformClient.js +3461 -3263
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +26 -13
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +449 -26
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +8 -4
- package/sdk/platform/Share/SharePlatformApplicationClient.js +139 -8
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +47 -23
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +816 -48
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +24 -12
- package/sdk/platform/User/UserPlatformApplicationClient.js +417 -24
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +12 -6
- package/sdk/platform/Webhook/WebhookPlatformClient.js +229 -12
- package/sdk/public/Configuration/ConfigurationPublicClient.js +72 -4
- package/sdk/public/Configuration/ConfigurationPublicValidator.js +3 -1
- package/sdk/public/Inventory/InventoryPublicClient.js +210 -12
- package/sdk/public/Inventory/InventoryPublicValidator.js +3 -1
- package/sdk/public/Webhook/WebhookPublicClient.js +74 -4
- package/sdk/public/Webhook/WebhookPublicValidator.js +3 -1
|
@@ -3,77 +3,77 @@ const Joi = require("joi");
|
|
|
3
3
|
class PaymentModel {
|
|
4
4
|
static AggregatorConfigDetail() {
|
|
5
5
|
return Joi.object({
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
key: Joi.string().allow("").required(),
|
|
9
|
-
|
|
10
|
-
verify_api: Joi.string().allow("").allow(null),
|
|
6
|
+
secret: Joi.string().allow("").required(),
|
|
11
7
|
|
|
12
8
|
pin: Joi.string().allow("").allow(null),
|
|
13
9
|
|
|
14
|
-
|
|
10
|
+
sdk: Joi.boolean().allow(null),
|
|
15
11
|
|
|
16
|
-
|
|
12
|
+
verify_api: Joi.string().allow("").allow(null),
|
|
13
|
+
|
|
14
|
+
config_type: Joi.string().allow("").required(),
|
|
17
15
|
|
|
18
16
|
user_id: Joi.string().allow("").allow(null),
|
|
19
17
|
|
|
20
|
-
|
|
18
|
+
merchant_id: Joi.string().allow("").allow(null),
|
|
21
19
|
|
|
22
20
|
api: Joi.string().allow("").allow(null),
|
|
23
21
|
|
|
24
22
|
merchant_key: Joi.string().allow("").allow(null),
|
|
23
|
+
|
|
24
|
+
key: Joi.string().allow("").required(),
|
|
25
25
|
});
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
static AggregatorsConfigDetailResponse() {
|
|
29
29
|
return Joi.object({
|
|
30
|
-
|
|
30
|
+
stripe: PaymentModel.AggregatorConfigDetail(),
|
|
31
31
|
|
|
32
|
-
|
|
32
|
+
mswipe: PaymentModel.AggregatorConfigDetail(),
|
|
33
33
|
|
|
34
|
-
|
|
34
|
+
ccavenue: PaymentModel.AggregatorConfigDetail(),
|
|
35
35
|
|
|
36
|
-
|
|
36
|
+
rupifi: PaymentModel.AggregatorConfigDetail(),
|
|
37
37
|
|
|
38
38
|
razorpay: PaymentModel.AggregatorConfigDetail(),
|
|
39
39
|
|
|
40
|
-
simpl: PaymentModel.AggregatorConfigDetail(),
|
|
41
|
-
|
|
42
40
|
payumoney: PaymentModel.AggregatorConfigDetail(),
|
|
43
41
|
|
|
44
|
-
|
|
42
|
+
juspay: PaymentModel.AggregatorConfigDetail(),
|
|
43
|
+
|
|
44
|
+
simpl: PaymentModel.AggregatorConfigDetail(),
|
|
45
45
|
|
|
46
46
|
success: Joi.boolean().required(),
|
|
47
47
|
|
|
48
|
-
|
|
48
|
+
env: Joi.string().allow("").required(),
|
|
49
49
|
});
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
static ErrorCodeAndDescription() {
|
|
53
53
|
return Joi.object({
|
|
54
|
-
code: Joi.string().allow("").required(),
|
|
55
|
-
|
|
56
54
|
description: Joi.string().allow("").required(),
|
|
55
|
+
|
|
56
|
+
code: Joi.string().allow("").required(),
|
|
57
57
|
});
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
static HttpErrorCodeAndResponse() {
|
|
61
61
|
return Joi.object({
|
|
62
|
-
success: Joi.boolean().required(),
|
|
63
|
-
|
|
64
62
|
error: PaymentModel.ErrorCodeAndDescription().required(),
|
|
63
|
+
|
|
64
|
+
success: Joi.boolean().required(),
|
|
65
65
|
});
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
static AttachCardRequest() {
|
|
69
69
|
return Joi.object({
|
|
70
|
-
card_id: Joi.string().allow("").allow(null).required(),
|
|
71
|
-
|
|
72
70
|
nickname: Joi.string().allow(""),
|
|
73
71
|
|
|
74
|
-
|
|
72
|
+
card_id: Joi.string().allow("").allow(null).required(),
|
|
75
73
|
|
|
76
74
|
refresh: Joi.boolean().allow(null),
|
|
75
|
+
|
|
76
|
+
name_on_card: Joi.string().allow(""),
|
|
77
77
|
});
|
|
78
78
|
}
|
|
79
79
|
|
|
@@ -91,9 +91,9 @@ class PaymentModel {
|
|
|
91
91
|
return Joi.object({
|
|
92
92
|
customer_id: Joi.string().allow("").allow(null),
|
|
93
93
|
|
|
94
|
-
aggregator: Joi.string().allow("").required(),
|
|
95
|
-
|
|
96
94
|
api: Joi.string().allow("").allow(null),
|
|
95
|
+
|
|
96
|
+
aggregator: Joi.string().allow("").required(),
|
|
97
97
|
});
|
|
98
98
|
}
|
|
99
99
|
|
|
@@ -109,39 +109,39 @@ class PaymentModel {
|
|
|
109
109
|
|
|
110
110
|
static Card() {
|
|
111
111
|
return Joi.object({
|
|
112
|
-
|
|
112
|
+
expired: Joi.boolean().allow(null),
|
|
113
113
|
|
|
114
|
-
|
|
114
|
+
card_brand_image: Joi.string().allow("").allow(null),
|
|
115
115
|
|
|
116
|
-
|
|
116
|
+
compliant_with_tokenisation_guidelines: Joi.boolean().allow(null),
|
|
117
|
+
|
|
118
|
+
card_number: Joi.string().allow("").allow(null),
|
|
119
|
+
|
|
120
|
+
card_fingerprint: Joi.string().allow("").allow(null),
|
|
117
121
|
|
|
118
122
|
card_brand: Joi.string().allow("").allow(null),
|
|
119
123
|
|
|
120
|
-
|
|
124
|
+
card_token: Joi.string().allow("").allow(null),
|
|
121
125
|
|
|
122
126
|
exp_year: Joi.number().allow(null),
|
|
123
127
|
|
|
124
|
-
|
|
128
|
+
card_isin: Joi.string().allow("").allow(null),
|
|
125
129
|
|
|
126
|
-
|
|
130
|
+
card_id: Joi.string().allow("").allow(null),
|
|
127
131
|
|
|
128
|
-
|
|
132
|
+
card_issuer: Joi.string().allow("").allow(null),
|
|
129
133
|
|
|
130
|
-
|
|
134
|
+
card_type: Joi.string().allow("").allow(null),
|
|
131
135
|
|
|
132
|
-
|
|
136
|
+
card_reference: Joi.string().allow("").allow(null),
|
|
133
137
|
|
|
134
|
-
|
|
138
|
+
nickname: Joi.string().allow("").allow(null),
|
|
135
139
|
|
|
136
140
|
exp_month: Joi.number().allow(null),
|
|
137
141
|
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
card_number: Joi.string().allow("").allow(null),
|
|
141
|
-
|
|
142
|
-
card_id: Joi.string().allow("").allow(null),
|
|
142
|
+
aggregator_name: Joi.string().allow("").required(),
|
|
143
143
|
|
|
144
|
-
|
|
144
|
+
card_name: Joi.string().allow("").allow(null),
|
|
145
145
|
});
|
|
146
146
|
}
|
|
147
147
|
|
|
@@ -173,19 +173,19 @@ class PaymentModel {
|
|
|
173
173
|
return Joi.object({
|
|
174
174
|
merchant_params: Joi.any(),
|
|
175
175
|
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
phone_number: Joi.string().allow("").required(),
|
|
176
|
+
delivery_address: Joi.any(),
|
|
179
177
|
|
|
180
|
-
|
|
178
|
+
payload: Joi.string().allow("").allow(null),
|
|
181
179
|
|
|
182
180
|
billing_address: Joi.any(),
|
|
183
181
|
|
|
184
|
-
payload: Joi.string().allow("").allow(null),
|
|
185
|
-
|
|
186
182
|
order_items: Joi.array().items(Joi.any()),
|
|
187
183
|
|
|
188
|
-
|
|
184
|
+
phone_number: Joi.string().allow("").required(),
|
|
185
|
+
|
|
186
|
+
transaction_amount_in_paise: Joi.number().required(),
|
|
187
|
+
|
|
188
|
+
aggregator: Joi.string().allow("").required(),
|
|
189
189
|
});
|
|
190
190
|
}
|
|
191
191
|
|
|
@@ -201,179 +201,137 @@ class PaymentModel {
|
|
|
201
201
|
|
|
202
202
|
static ChargeCustomerRequest() {
|
|
203
203
|
return Joi.object({
|
|
204
|
-
|
|
204
|
+
order_id: Joi.string().allow("").required(),
|
|
205
205
|
|
|
206
|
-
|
|
206
|
+
transaction_token: Joi.string().allow("").allow(null),
|
|
207
207
|
|
|
208
|
-
|
|
208
|
+
amount: Joi.number().allow(null).required(),
|
|
209
209
|
|
|
210
210
|
verified: Joi.boolean().allow(null),
|
|
211
211
|
|
|
212
|
-
|
|
212
|
+
aggregator: Joi.string().allow("").required(),
|
|
213
213
|
});
|
|
214
214
|
}
|
|
215
215
|
|
|
216
216
|
static ChargeCustomerResponse() {
|
|
217
217
|
return Joi.object({
|
|
218
|
-
|
|
218
|
+
cart_id: Joi.string().allow("").allow(null),
|
|
219
219
|
|
|
220
|
-
|
|
220
|
+
status: Joi.string().allow("").required(),
|
|
221
221
|
|
|
222
222
|
message: Joi.string().allow("").required(),
|
|
223
223
|
|
|
224
|
-
|
|
224
|
+
order_id: Joi.string().allow("").required(),
|
|
225
225
|
|
|
226
226
|
delivery_address_id: Joi.string().allow("").allow(null),
|
|
227
227
|
|
|
228
228
|
success: Joi.boolean().required(),
|
|
229
229
|
|
|
230
|
-
|
|
230
|
+
aggregator: Joi.string().allow("").required(),
|
|
231
231
|
});
|
|
232
232
|
}
|
|
233
233
|
|
|
234
234
|
static PaymentInitializationRequest() {
|
|
235
235
|
return Joi.object({
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
vpa: Joi.string().allow("").allow(null),
|
|
239
|
-
|
|
240
|
-
aggregator: Joi.string().allow("").required(),
|
|
236
|
+
method: Joi.string().allow("").required(),
|
|
241
237
|
|
|
242
238
|
merchant_order_id: Joi.string().allow("").required(),
|
|
243
239
|
|
|
244
240
|
order_id: Joi.string().allow("").required(),
|
|
245
241
|
|
|
246
|
-
currency: Joi.string().allow("").required(),
|
|
247
|
-
|
|
248
|
-
timeout: Joi.number().allow(null),
|
|
249
|
-
|
|
250
242
|
contact: Joi.string().allow("").required(),
|
|
251
243
|
|
|
252
244
|
amount: Joi.number().allow(null).required(),
|
|
253
245
|
|
|
254
246
|
customer_id: Joi.string().allow("").required(),
|
|
255
247
|
|
|
256
|
-
|
|
248
|
+
currency: Joi.string().allow("").required(),
|
|
249
|
+
|
|
250
|
+
vpa: Joi.string().allow("").allow(null),
|
|
251
|
+
|
|
252
|
+
email: Joi.string().allow("").required(),
|
|
253
|
+
|
|
254
|
+
timeout: Joi.number().allow(null),
|
|
257
255
|
|
|
258
256
|
razorpay_payment_id: Joi.string().allow("").allow(null),
|
|
257
|
+
|
|
258
|
+
aggregator: Joi.string().allow("").required(),
|
|
259
259
|
});
|
|
260
260
|
}
|
|
261
261
|
|
|
262
262
|
static PaymentInitializationResponse() {
|
|
263
263
|
return Joi.object({
|
|
264
|
-
|
|
264
|
+
bqr_image: Joi.string().allow("").allow(null),
|
|
265
265
|
|
|
266
|
-
|
|
266
|
+
method: Joi.string().allow("").required(),
|
|
267
267
|
|
|
268
268
|
upi_poll_url: Joi.string().allow("").allow(null),
|
|
269
269
|
|
|
270
|
-
|
|
270
|
+
status: Joi.string().allow(""),
|
|
271
271
|
|
|
272
|
-
|
|
272
|
+
polling_url: Joi.string().allow("").required(),
|
|
273
273
|
|
|
274
|
-
|
|
274
|
+
vpa: Joi.string().allow("").allow(null),
|
|
275
275
|
|
|
276
|
-
|
|
276
|
+
virtual_id: Joi.string().allow("").allow(null),
|
|
277
277
|
|
|
278
|
-
|
|
278
|
+
aggregator: Joi.string().allow("").required(),
|
|
279
279
|
|
|
280
280
|
amount: Joi.number().allow(null),
|
|
281
281
|
|
|
282
282
|
aggregator_order_id: Joi.string().allow(""),
|
|
283
283
|
|
|
284
|
-
|
|
284
|
+
currency: Joi.string().allow("").allow(null),
|
|
285
285
|
|
|
286
286
|
customer_id: Joi.string().allow("").allow(null),
|
|
287
287
|
|
|
288
|
-
|
|
288
|
+
timeout: Joi.number().allow(null),
|
|
289
289
|
|
|
290
|
-
|
|
290
|
+
razorpay_payment_id: Joi.string().allow("").allow(null),
|
|
291
291
|
|
|
292
|
-
|
|
292
|
+
success: Joi.boolean().required(),
|
|
293
293
|
|
|
294
|
-
|
|
294
|
+
merchant_order_id: Joi.string().allow("").required(),
|
|
295
295
|
});
|
|
296
296
|
}
|
|
297
297
|
|
|
298
298
|
static PaymentStatusUpdateRequest() {
|
|
299
299
|
return Joi.object({
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
vpa: Joi.string().allow("").required(),
|
|
300
|
+
method: Joi.string().allow("").required(),
|
|
303
301
|
|
|
304
|
-
|
|
302
|
+
status: Joi.string().allow("").required(),
|
|
305
303
|
|
|
306
304
|
merchant_order_id: Joi.string().allow("").required(),
|
|
307
305
|
|
|
308
306
|
order_id: Joi.string().allow("").required(),
|
|
309
307
|
|
|
310
|
-
currency: Joi.string().allow("").required(),
|
|
311
|
-
|
|
312
308
|
contact: Joi.string().allow("").required(),
|
|
313
309
|
|
|
314
310
|
amount: Joi.number().allow(null).required(),
|
|
315
311
|
|
|
316
312
|
customer_id: Joi.string().allow("").required(),
|
|
317
313
|
|
|
318
|
-
|
|
314
|
+
currency: Joi.string().allow("").required(),
|
|
319
315
|
|
|
320
|
-
|
|
316
|
+
vpa: Joi.string().allow("").required(),
|
|
317
|
+
|
|
318
|
+
email: Joi.string().allow("").required(),
|
|
319
|
+
|
|
320
|
+
aggregator: Joi.string().allow("").required(),
|
|
321
321
|
});
|
|
322
322
|
}
|
|
323
323
|
|
|
324
324
|
static PaymentStatusUpdateResponse() {
|
|
325
325
|
return Joi.object({
|
|
326
|
-
retry: Joi.boolean().required(),
|
|
327
|
-
|
|
328
326
|
aggregator_name: Joi.string().allow("").required(),
|
|
329
327
|
|
|
330
|
-
redirect_url: Joi.string().allow("").allow(null),
|
|
331
|
-
|
|
332
|
-
success: Joi.boolean().allow(null),
|
|
333
|
-
|
|
334
328
|
status: Joi.string().allow("").required(),
|
|
335
|
-
});
|
|
336
|
-
}
|
|
337
|
-
|
|
338
|
-
static AggregatorRoute() {
|
|
339
|
-
return Joi.object({
|
|
340
|
-
payment_flow: Joi.string().allow("").allow(null),
|
|
341
|
-
|
|
342
|
-
data: Joi.any().allow(null),
|
|
343
|
-
|
|
344
|
-
api_link: Joi.string().allow("").allow(null),
|
|
345
329
|
|
|
346
|
-
|
|
347
|
-
});
|
|
348
|
-
}
|
|
349
|
-
|
|
350
|
-
static PaymentFlow() {
|
|
351
|
-
return Joi.object({
|
|
352
|
-
fynd: PaymentModel.AggregatorRoute(),
|
|
353
|
-
|
|
354
|
-
bqr_razorpay: PaymentModel.AggregatorRoute(),
|
|
355
|
-
|
|
356
|
-
juspay: PaymentModel.AggregatorRoute(),
|
|
357
|
-
|
|
358
|
-
ccavenue: PaymentModel.AggregatorRoute(),
|
|
359
|
-
|
|
360
|
-
jiopay: PaymentModel.AggregatorRoute(),
|
|
361
|
-
|
|
362
|
-
mswipe: PaymentModel.AggregatorRoute(),
|
|
363
|
-
|
|
364
|
-
upi_razorpay: PaymentModel.AggregatorRoute(),
|
|
365
|
-
|
|
366
|
-
razorpay: PaymentModel.AggregatorRoute(),
|
|
367
|
-
|
|
368
|
-
simpl: PaymentModel.AggregatorRoute(),
|
|
369
|
-
|
|
370
|
-
epaylater: PaymentModel.AggregatorRoute(),
|
|
371
|
-
|
|
372
|
-
stripe: PaymentModel.AggregatorRoute(),
|
|
330
|
+
retry: Joi.boolean().required(),
|
|
373
331
|
|
|
374
|
-
|
|
332
|
+
redirect_url: Joi.string().allow("").allow(null),
|
|
375
333
|
|
|
376
|
-
|
|
334
|
+
success: Joi.boolean().allow(null),
|
|
377
335
|
});
|
|
378
336
|
}
|
|
379
337
|
|
|
@@ -387,125 +345,167 @@ class PaymentModel {
|
|
|
387
345
|
|
|
388
346
|
static IntentApp() {
|
|
389
347
|
return Joi.object({
|
|
390
|
-
code: Joi.string().allow("").allow(null),
|
|
391
|
-
|
|
392
|
-
display_name: Joi.string().allow("").allow(null),
|
|
393
|
-
|
|
394
348
|
logos: PaymentModel.PaymentModeLogo(),
|
|
395
349
|
|
|
396
350
|
package_name: Joi.string().allow("").allow(null),
|
|
351
|
+
|
|
352
|
+
code: Joi.string().allow("").allow(null),
|
|
353
|
+
|
|
354
|
+
display_name: Joi.string().allow("").allow(null),
|
|
397
355
|
});
|
|
398
356
|
}
|
|
399
357
|
|
|
400
358
|
static IntentAppErrorList() {
|
|
401
359
|
return Joi.object({
|
|
402
|
-
code: Joi.string().allow("").allow(null),
|
|
403
|
-
|
|
404
360
|
package_name: Joi.string().allow("").allow(null),
|
|
361
|
+
|
|
362
|
+
code: Joi.string().allow("").allow(null),
|
|
405
363
|
});
|
|
406
364
|
}
|
|
407
365
|
|
|
408
366
|
static PaymentModeList() {
|
|
409
367
|
return Joi.object({
|
|
410
|
-
|
|
368
|
+
code: Joi.string().allow("").allow(null),
|
|
411
369
|
|
|
412
|
-
|
|
370
|
+
compliant_with_tokenisation_guidelines: Joi.boolean().allow(null),
|
|
413
371
|
|
|
414
|
-
|
|
372
|
+
intent_app: Joi.array().items(PaymentModel.IntentApp()),
|
|
415
373
|
|
|
416
|
-
|
|
374
|
+
retry_count: Joi.number().allow(null),
|
|
417
375
|
|
|
418
|
-
|
|
376
|
+
fynd_vpa: Joi.string().allow("").allow(null),
|
|
419
377
|
|
|
420
|
-
|
|
378
|
+
display_name: Joi.string().allow("").allow(null),
|
|
421
379
|
|
|
422
|
-
|
|
380
|
+
logo_url: PaymentModel.PaymentModeLogo(),
|
|
423
381
|
|
|
424
|
-
|
|
382
|
+
card_type: Joi.string().allow("").allow(null),
|
|
425
383
|
|
|
426
|
-
|
|
384
|
+
card_brand_image: Joi.string().allow("").allow(null),
|
|
427
385
|
|
|
428
|
-
|
|
386
|
+
nickname: Joi.string().allow("").allow(null),
|
|
387
|
+
|
|
388
|
+
aggregator_name: Joi.string().allow("").required(),
|
|
429
389
|
|
|
430
390
|
intent_app_error_dict_list: Joi.array().items(
|
|
431
391
|
PaymentModel.IntentAppErrorList()
|
|
432
392
|
),
|
|
433
393
|
|
|
434
|
-
|
|
394
|
+
merchant_code: Joi.string().allow("").allow(null),
|
|
435
395
|
|
|
436
|
-
|
|
396
|
+
name: Joi.string().allow("").allow(null),
|
|
437
397
|
|
|
438
|
-
|
|
398
|
+
card_issuer: Joi.string().allow("").allow(null),
|
|
439
399
|
|
|
440
|
-
|
|
400
|
+
card_reference: Joi.string().allow("").allow(null),
|
|
441
401
|
|
|
442
|
-
|
|
402
|
+
timeout: Joi.number().allow(null),
|
|
443
403
|
|
|
444
|
-
|
|
404
|
+
intent_app_error_list: Joi.array().items(Joi.string().allow("")),
|
|
445
405
|
|
|
446
|
-
|
|
406
|
+
card_token: Joi.string().allow("").allow(null),
|
|
447
407
|
|
|
448
|
-
|
|
408
|
+
cod_limit: Joi.number().allow(null),
|
|
449
409
|
|
|
450
|
-
|
|
410
|
+
remaining_limit: Joi.number().allow(null),
|
|
451
411
|
|
|
452
|
-
|
|
412
|
+
cod_limit_per_order: Joi.number().allow(null),
|
|
453
413
|
|
|
454
|
-
|
|
414
|
+
card_name: Joi.string().allow("").allow(null),
|
|
455
415
|
|
|
456
|
-
|
|
416
|
+
expired: Joi.boolean().allow(null),
|
|
457
417
|
|
|
458
|
-
|
|
418
|
+
card_number: Joi.string().allow("").allow(null),
|
|
459
419
|
|
|
460
|
-
|
|
420
|
+
intent_flow: Joi.boolean().allow(null),
|
|
461
421
|
|
|
462
422
|
card_fingerprint: Joi.string().allow("").allow(null),
|
|
463
423
|
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
logo_url: PaymentModel.PaymentModeLogo(),
|
|
424
|
+
card_brand: Joi.string().allow("").allow(null),
|
|
467
425
|
|
|
468
|
-
|
|
426
|
+
exp_year: Joi.number().allow(null),
|
|
469
427
|
|
|
470
|
-
|
|
428
|
+
card_isin: Joi.string().allow("").allow(null),
|
|
471
429
|
|
|
472
|
-
|
|
430
|
+
card_id: Joi.string().allow("").allow(null),
|
|
473
431
|
|
|
474
|
-
|
|
432
|
+
display_priority: Joi.number().allow(null),
|
|
475
433
|
|
|
476
|
-
|
|
434
|
+
exp_month: Joi.number().allow(null),
|
|
477
435
|
});
|
|
478
436
|
}
|
|
479
437
|
|
|
480
438
|
static RootPaymentMode() {
|
|
481
439
|
return Joi.object({
|
|
440
|
+
list: Joi.array().items(PaymentModel.PaymentModeList()),
|
|
441
|
+
|
|
442
|
+
anonymous_enable: Joi.boolean().allow(null),
|
|
443
|
+
|
|
482
444
|
display_name: Joi.string().allow("").required(),
|
|
483
445
|
|
|
446
|
+
name: Joi.string().allow("").required(),
|
|
447
|
+
|
|
484
448
|
save_card: Joi.boolean().allow(null),
|
|
485
449
|
|
|
450
|
+
display_priority: Joi.number().required(),
|
|
451
|
+
|
|
486
452
|
add_card_enabled: Joi.boolean().allow(null),
|
|
487
453
|
|
|
454
|
+
is_pay_by_card_pl: Joi.boolean().allow(null),
|
|
455
|
+
|
|
488
456
|
aggregator_name: Joi.string().allow("").allow(null),
|
|
457
|
+
});
|
|
458
|
+
}
|
|
489
459
|
|
|
490
|
-
|
|
460
|
+
static AggregatorRoute() {
|
|
461
|
+
return Joi.object({
|
|
462
|
+
payment_flow_data: Joi.string().allow("").allow(null),
|
|
491
463
|
|
|
492
|
-
|
|
464
|
+
payment_flow: Joi.string().allow("").allow(null),
|
|
493
465
|
|
|
494
|
-
|
|
466
|
+
data: Joi.any().allow(null),
|
|
495
467
|
|
|
496
|
-
|
|
468
|
+
api_link: Joi.string().allow("").allow(null),
|
|
469
|
+
});
|
|
470
|
+
}
|
|
497
471
|
|
|
498
|
-
|
|
472
|
+
static PaymentFlow() {
|
|
473
|
+
return Joi.object({
|
|
474
|
+
stripe: PaymentModel.AggregatorRoute(),
|
|
475
|
+
|
|
476
|
+
mswipe: PaymentModel.AggregatorRoute(),
|
|
477
|
+
|
|
478
|
+
fynd: PaymentModel.AggregatorRoute(),
|
|
479
|
+
|
|
480
|
+
ccavenue: PaymentModel.AggregatorRoute(),
|
|
481
|
+
|
|
482
|
+
rupifi: PaymentModel.AggregatorRoute(),
|
|
483
|
+
|
|
484
|
+
razorpay: PaymentModel.AggregatorRoute(),
|
|
485
|
+
|
|
486
|
+
payubiz: PaymentModel.AggregatorRoute(),
|
|
487
|
+
|
|
488
|
+
upi_razorpay: PaymentModel.AggregatorRoute(),
|
|
489
|
+
|
|
490
|
+
simpl: PaymentModel.AggregatorRoute(),
|
|
491
|
+
|
|
492
|
+
juspay: PaymentModel.AggregatorRoute(),
|
|
493
|
+
|
|
494
|
+
bqr_razorpay: PaymentModel.AggregatorRoute(),
|
|
495
|
+
|
|
496
|
+
epaylater: PaymentModel.AggregatorRoute(),
|
|
497
|
+
|
|
498
|
+
jiopay: PaymentModel.AggregatorRoute(),
|
|
499
499
|
});
|
|
500
500
|
}
|
|
501
501
|
|
|
502
502
|
static PaymentOptionAndFlow() {
|
|
503
503
|
return Joi.object({
|
|
504
|
-
payment_flows: PaymentModel.PaymentFlow().required(),
|
|
505
|
-
|
|
506
504
|
payment_option: Joi.array()
|
|
507
505
|
.items(PaymentModel.RootPaymentMode())
|
|
508
506
|
.required(),
|
|
507
|
+
|
|
508
|
+
payment_flows: PaymentModel.PaymentFlow().required(),
|
|
509
509
|
});
|
|
510
510
|
}
|
|
511
511
|
|
|
@@ -519,9 +519,9 @@ class PaymentModel {
|
|
|
519
519
|
|
|
520
520
|
static RupifiBannerData() {
|
|
521
521
|
return Joi.object({
|
|
522
|
-
status: Joi.string().allow(""),
|
|
523
|
-
|
|
524
522
|
kyc_url: Joi.string().allow(""),
|
|
523
|
+
|
|
524
|
+
status: Joi.string().allow(""),
|
|
525
525
|
});
|
|
526
526
|
}
|
|
527
527
|
|
|
@@ -535,11 +535,11 @@ class PaymentModel {
|
|
|
535
535
|
|
|
536
536
|
static EpaylaterBannerData() {
|
|
537
537
|
return Joi.object({
|
|
538
|
-
|
|
538
|
+
display: Joi.boolean().required(),
|
|
539
539
|
|
|
540
540
|
status: Joi.string().allow(""),
|
|
541
541
|
|
|
542
|
-
|
|
542
|
+
message: Joi.string().allow(""),
|
|
543
543
|
});
|
|
544
544
|
}
|
|
545
545
|
|
|
@@ -577,9 +577,9 @@ class PaymentModel {
|
|
|
577
577
|
|
|
578
578
|
static renderHTMLRequest() {
|
|
579
579
|
return Joi.object({
|
|
580
|
-
base64_html: Joi.string().allow("").required(),
|
|
581
|
-
|
|
582
580
|
returntype: Joi.string().allow("").allow(null),
|
|
581
|
+
|
|
582
|
+
base64_html: Joi.string().allow("").required(),
|
|
583
583
|
});
|
|
584
584
|
}
|
|
585
585
|
|
|
@@ -599,11 +599,11 @@ class PaymentModel {
|
|
|
599
599
|
return Joi.object({
|
|
600
600
|
upi_vpa: Joi.string().allow("").required(),
|
|
601
601
|
|
|
602
|
+
is_valid: Joi.boolean().required(),
|
|
603
|
+
|
|
602
604
|
customer_name: Joi.string().allow("").required(),
|
|
603
605
|
|
|
604
606
|
status: Joi.string().allow("").required(),
|
|
605
|
-
|
|
606
|
-
is_valid: Joi.boolean().required(),
|
|
607
607
|
});
|
|
608
608
|
}
|
|
609
609
|
|
|
@@ -617,23 +617,23 @@ class PaymentModel {
|
|
|
617
617
|
|
|
618
618
|
static TransferItemsDetails() {
|
|
619
619
|
return Joi.object({
|
|
620
|
-
id: Joi.number().required(),
|
|
621
|
-
|
|
622
620
|
display_name: Joi.string().allow(""),
|
|
623
621
|
|
|
624
622
|
name: Joi.string().allow("").required(),
|
|
625
623
|
|
|
624
|
+
logo_large: Joi.string().allow("").required(),
|
|
625
|
+
|
|
626
626
|
logo_small: Joi.string().allow("").required(),
|
|
627
627
|
|
|
628
|
-
|
|
628
|
+
id: Joi.number().required(),
|
|
629
629
|
});
|
|
630
630
|
}
|
|
631
631
|
|
|
632
632
|
static TransferModeDetails() {
|
|
633
633
|
return Joi.object({
|
|
634
|
-
display_name: Joi.string().allow("").required(),
|
|
635
|
-
|
|
636
634
|
items: Joi.array().items(PaymentModel.TransferItemsDetails()),
|
|
635
|
+
|
|
636
|
+
display_name: Joi.string().allow("").required(),
|
|
637
637
|
});
|
|
638
638
|
}
|
|
639
639
|
|
|
@@ -645,9 +645,9 @@ class PaymentModel {
|
|
|
645
645
|
|
|
646
646
|
static UpdateRefundTransferModeRequest() {
|
|
647
647
|
return Joi.object({
|
|
648
|
-
enable: Joi.boolean().required(),
|
|
649
|
-
|
|
650
648
|
transfer_mode: Joi.string().allow("").required(),
|
|
649
|
+
|
|
650
|
+
enable: Joi.boolean().required(),
|
|
651
651
|
});
|
|
652
652
|
}
|
|
653
653
|
|
|
@@ -659,80 +659,80 @@ class PaymentModel {
|
|
|
659
659
|
|
|
660
660
|
static OrderBeneficiaryDetails() {
|
|
661
661
|
return Joi.object({
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
bank_name: Joi.string().allow("").required(),
|
|
662
|
+
branch_name: Joi.string().allow(""),
|
|
665
663
|
|
|
666
664
|
modified_on: Joi.string().allow("").required(),
|
|
667
665
|
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
ifsc_code: Joi.string().allow("").required(),
|
|
666
|
+
display_name: Joi.string().allow("").required(),
|
|
671
667
|
|
|
672
|
-
|
|
668
|
+
bank_name: Joi.string().allow("").required(),
|
|
673
669
|
|
|
674
|
-
|
|
670
|
+
subtitle: Joi.string().allow("").required(),
|
|
675
671
|
|
|
676
|
-
|
|
672
|
+
account_holder: Joi.string().allow("").required(),
|
|
677
673
|
|
|
678
|
-
|
|
674
|
+
comment: Joi.string().allow(""),
|
|
679
675
|
|
|
680
676
|
created_on: Joi.string().allow("").required(),
|
|
681
677
|
|
|
682
|
-
|
|
678
|
+
title: Joi.string().allow("").required(),
|
|
683
679
|
|
|
684
680
|
id: Joi.number().required(),
|
|
685
681
|
|
|
686
|
-
|
|
682
|
+
beneficiary_id: Joi.string().allow("").required(),
|
|
687
683
|
|
|
688
684
|
delights_user_name: Joi.string().allow("").allow(null),
|
|
689
685
|
|
|
690
|
-
|
|
686
|
+
transfer_mode: Joi.string().allow("").required(),
|
|
691
687
|
|
|
692
|
-
|
|
688
|
+
address: Joi.string().allow("").required(),
|
|
693
689
|
|
|
694
|
-
|
|
690
|
+
email: Joi.string().allow("").required(),
|
|
695
691
|
|
|
696
|
-
|
|
692
|
+
account_no: Joi.string().allow("").required(),
|
|
697
693
|
|
|
698
|
-
|
|
694
|
+
is_active: Joi.boolean().required(),
|
|
695
|
+
|
|
696
|
+
ifsc_code: Joi.string().allow("").required(),
|
|
697
|
+
|
|
698
|
+
mobile: Joi.string().allow(""),
|
|
699
699
|
});
|
|
700
700
|
}
|
|
701
701
|
|
|
702
702
|
static OrderBeneficiaryResponse() {
|
|
703
703
|
return Joi.object({
|
|
704
|
-
show_beneficiary_details: Joi.boolean(),
|
|
705
|
-
|
|
706
704
|
beneficiaries: Joi.array().items(PaymentModel.OrderBeneficiaryDetails()),
|
|
705
|
+
|
|
706
|
+
show_beneficiary_details: Joi.boolean(),
|
|
707
707
|
});
|
|
708
708
|
}
|
|
709
709
|
|
|
710
710
|
static NotFoundResourceError() {
|
|
711
711
|
return Joi.object({
|
|
712
|
-
code: Joi.string().allow("").required(),
|
|
713
|
-
|
|
714
712
|
description: Joi.string().allow("").required(),
|
|
715
713
|
|
|
714
|
+
code: Joi.string().allow("").required(),
|
|
715
|
+
|
|
716
716
|
success: Joi.boolean().required(),
|
|
717
717
|
});
|
|
718
718
|
}
|
|
719
719
|
|
|
720
720
|
static IfscCodeResponse() {
|
|
721
721
|
return Joi.object({
|
|
722
|
-
|
|
722
|
+
branch_name: Joi.string().allow("").required(),
|
|
723
723
|
|
|
724
724
|
success: Joi.boolean(),
|
|
725
725
|
|
|
726
|
-
|
|
726
|
+
bank_name: Joi.string().allow("").required(),
|
|
727
727
|
});
|
|
728
728
|
}
|
|
729
729
|
|
|
730
730
|
static ErrorCodeDescription() {
|
|
731
731
|
return Joi.object({
|
|
732
|
-
code: Joi.string().allow("").required(),
|
|
733
|
-
|
|
734
732
|
description: Joi.string().allow("").required(),
|
|
735
733
|
|
|
734
|
+
code: Joi.string().allow("").required(),
|
|
735
|
+
|
|
736
736
|
success: Joi.boolean().required(),
|
|
737
737
|
});
|
|
738
738
|
}
|
|
@@ -759,79 +759,79 @@ class PaymentModel {
|
|
|
759
759
|
return Joi.object({
|
|
760
760
|
description: Joi.string().allow("").required(),
|
|
761
761
|
|
|
762
|
-
success: Joi.string().allow("").required(),
|
|
763
|
-
|
|
764
762
|
is_verified_flag: Joi.boolean().required(),
|
|
763
|
+
|
|
764
|
+
success: Joi.string().allow("").required(),
|
|
765
765
|
});
|
|
766
766
|
}
|
|
767
767
|
|
|
768
|
-
static BeneficiaryModeDetails() {
|
|
769
|
-
return Joi.object({
|
|
768
|
+
static BeneficiaryModeDetails() {
|
|
769
|
+
return Joi.object({
|
|
770
|
+
account_no: Joi.string().allow("").required(),
|
|
771
|
+
|
|
772
|
+
bank_name: Joi.string().allow("").required(),
|
|
773
|
+
|
|
774
|
+
wallet: Joi.string().allow("").allow(null),
|
|
775
|
+
|
|
770
776
|
email: Joi.string().allow("").required(),
|
|
771
777
|
|
|
772
|
-
|
|
778
|
+
branch_name: Joi.string().allow("").required(),
|
|
773
779
|
|
|
774
780
|
ifsc_code: Joi.string().allow("").required(),
|
|
775
781
|
|
|
776
782
|
account_holder: Joi.string().allow("").required(),
|
|
777
783
|
|
|
778
|
-
bank_name: Joi.string().allow("").required(),
|
|
779
|
-
|
|
780
|
-
account_no: Joi.string().allow("").required(),
|
|
781
|
-
|
|
782
|
-
wallet: Joi.string().allow("").allow(null),
|
|
783
|
-
|
|
784
|
-
address: Joi.string().allow(""),
|
|
785
|
-
|
|
786
784
|
comment: Joi.string().allow(""),
|
|
787
785
|
|
|
788
786
|
vpa: Joi.string().allow("").allow(null),
|
|
789
787
|
|
|
790
|
-
|
|
788
|
+
address: Joi.string().allow(""),
|
|
789
|
+
|
|
790
|
+
mobile: Joi.string().allow("").required(),
|
|
791
791
|
});
|
|
792
792
|
}
|
|
793
793
|
|
|
794
794
|
static AddBeneficiaryDetailsRequest() {
|
|
795
795
|
return Joi.object({
|
|
796
|
+
details: PaymentModel.BeneficiaryModeDetails().required(),
|
|
797
|
+
|
|
798
|
+
request_id: Joi.string().allow(""),
|
|
799
|
+
|
|
796
800
|
shipment_id: Joi.string().allow("").required(),
|
|
797
801
|
|
|
798
802
|
order_id: Joi.string().allow("").required(),
|
|
799
803
|
|
|
800
|
-
transfer_mode: Joi.string().allow("").required(),
|
|
801
|
-
|
|
802
804
|
otp: Joi.string().allow(""),
|
|
803
805
|
|
|
804
|
-
|
|
806
|
+
transfer_mode: Joi.string().allow("").required(),
|
|
805
807
|
|
|
806
808
|
delights: Joi.boolean().required(),
|
|
807
|
-
|
|
808
|
-
details: PaymentModel.BeneficiaryModeDetails().required(),
|
|
809
809
|
});
|
|
810
810
|
}
|
|
811
811
|
|
|
812
812
|
static RefundAccountResponse() {
|
|
813
813
|
return Joi.object({
|
|
814
|
+
is_verified_flag: Joi.boolean(),
|
|
815
|
+
|
|
814
816
|
data: Joi.any(),
|
|
815
817
|
|
|
816
818
|
success: Joi.boolean().required(),
|
|
817
819
|
|
|
818
820
|
message: Joi.string().allow("").required(),
|
|
819
|
-
|
|
820
|
-
is_verified_flag: Joi.boolean(),
|
|
821
821
|
});
|
|
822
822
|
}
|
|
823
823
|
|
|
824
824
|
static BankDetailsForOTP() {
|
|
825
825
|
return Joi.object({
|
|
826
|
-
account_holder: Joi.string().allow("").required(),
|
|
827
|
-
|
|
828
|
-
bank_name: Joi.string().allow("").required(),
|
|
829
|
-
|
|
830
826
|
account_no: Joi.string().allow("").required(),
|
|
831
827
|
|
|
828
|
+
branch_name: Joi.string().allow("").required(),
|
|
829
|
+
|
|
832
830
|
ifsc_code: Joi.string().allow("").required(),
|
|
833
831
|
|
|
834
|
-
|
|
832
|
+
account_holder: Joi.string().allow("").required(),
|
|
833
|
+
|
|
834
|
+
bank_name: Joi.string().allow("").required(),
|
|
835
835
|
});
|
|
836
836
|
}
|
|
837
837
|
|
|
@@ -853,19 +853,19 @@ class PaymentModel {
|
|
|
853
853
|
|
|
854
854
|
static WalletOtpResponse() {
|
|
855
855
|
return Joi.object({
|
|
856
|
+
is_verified_flag: Joi.string().allow("").required(),
|
|
857
|
+
|
|
856
858
|
success: Joi.boolean(),
|
|
857
859
|
|
|
858
860
|
request_id: Joi.string().allow("").required(),
|
|
859
|
-
|
|
860
|
-
is_verified_flag: Joi.string().allow("").required(),
|
|
861
861
|
});
|
|
862
862
|
}
|
|
863
863
|
|
|
864
864
|
static SetDefaultBeneficiaryRequest() {
|
|
865
865
|
return Joi.object({
|
|
866
|
-
order_id: Joi.string().allow("").required(),
|
|
867
|
-
|
|
868
866
|
beneficiary_id: Joi.string().allow("").required(),
|
|
867
|
+
|
|
868
|
+
order_id: Joi.string().allow("").required(),
|
|
869
869
|
});
|
|
870
870
|
}
|
|
871
871
|
|
|
@@ -879,66 +879,66 @@ class PaymentModel {
|
|
|
879
879
|
|
|
880
880
|
static GetPaymentLinkResponse() {
|
|
881
881
|
return Joi.object({
|
|
882
|
-
|
|
882
|
+
external_order_id: Joi.string().allow("").allow(null),
|
|
883
883
|
|
|
884
|
-
|
|
884
|
+
message: Joi.string().allow("").required(),
|
|
885
885
|
|
|
886
|
-
|
|
886
|
+
polling_timeout: Joi.number().allow(null),
|
|
887
887
|
|
|
888
888
|
payment_link_current_status: Joi.string().allow("").allow(null),
|
|
889
889
|
|
|
890
|
-
|
|
890
|
+
merchant_name: Joi.string().allow("").allow(null),
|
|
891
891
|
|
|
892
892
|
amount: Joi.number().allow(null),
|
|
893
893
|
|
|
894
|
-
|
|
894
|
+
status_code: Joi.number().required(),
|
|
895
895
|
|
|
896
|
-
|
|
896
|
+
payment_link_url: Joi.string().allow("").allow(null),
|
|
897
897
|
|
|
898
|
-
|
|
898
|
+
success: Joi.boolean().required(),
|
|
899
899
|
});
|
|
900
900
|
}
|
|
901
901
|
|
|
902
902
|
static ErrorDescription() {
|
|
903
903
|
return Joi.object({
|
|
904
|
-
|
|
904
|
+
expired: Joi.boolean().allow(null),
|
|
905
905
|
|
|
906
|
-
|
|
906
|
+
invalid_id: Joi.boolean().allow(null),
|
|
907
907
|
|
|
908
|
-
|
|
908
|
+
payment_transaction_id: Joi.string().allow("").allow(null),
|
|
909
909
|
|
|
910
910
|
merchant_name: Joi.string().allow("").allow(null),
|
|
911
911
|
|
|
912
912
|
amount: Joi.number().allow(null),
|
|
913
913
|
|
|
914
|
-
msg: Joi.string().allow("").allow(null),
|
|
915
|
-
|
|
916
914
|
cancelled: Joi.boolean().allow(null),
|
|
917
915
|
|
|
918
|
-
|
|
916
|
+
msg: Joi.string().allow("").allow(null),
|
|
917
|
+
|
|
918
|
+
merchant_order_id: Joi.string().allow("").allow(null),
|
|
919
919
|
});
|
|
920
920
|
}
|
|
921
921
|
|
|
922
922
|
static ErrorResponse() {
|
|
923
923
|
return Joi.object({
|
|
924
|
+
status_code: Joi.number().required(),
|
|
925
|
+
|
|
924
926
|
error: PaymentModel.ErrorDescription(),
|
|
925
927
|
|
|
926
928
|
success: Joi.boolean().required(),
|
|
927
929
|
|
|
928
|
-
status_code: Joi.number().required(),
|
|
929
|
-
|
|
930
930
|
message: Joi.string().allow("").required(),
|
|
931
931
|
});
|
|
932
932
|
}
|
|
933
933
|
|
|
934
934
|
static CreatePaymentLinkMeta() {
|
|
935
935
|
return Joi.object({
|
|
936
|
-
checkout_mode: Joi.string().allow("").required(),
|
|
937
|
-
|
|
938
936
|
cart_id: Joi.string().allow("").required(),
|
|
939
937
|
|
|
940
938
|
assign_card_id: Joi.string().allow("").allow(null),
|
|
941
939
|
|
|
940
|
+
checkout_mode: Joi.string().allow("").required(),
|
|
941
|
+
|
|
942
942
|
amount: Joi.string().allow("").required(),
|
|
943
943
|
|
|
944
944
|
pincode: Joi.string().allow("").required(),
|
|
@@ -947,23 +947,23 @@ class PaymentModel {
|
|
|
947
947
|
|
|
948
948
|
static CreatePaymentLinkRequest() {
|
|
949
949
|
return Joi.object({
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
external_order_id: Joi.string().allow("").required(),
|
|
950
|
+
mobile_number: Joi.string().allow("").required(),
|
|
953
951
|
|
|
954
952
|
meta: PaymentModel.CreatePaymentLinkMeta().required(),
|
|
955
953
|
|
|
954
|
+
amount: Joi.number().required(),
|
|
955
|
+
|
|
956
956
|
description: Joi.string().allow("").allow(null),
|
|
957
957
|
|
|
958
|
-
|
|
958
|
+
email: Joi.string().allow("").required(),
|
|
959
959
|
|
|
960
|
-
|
|
960
|
+
external_order_id: Joi.string().allow("").required(),
|
|
961
961
|
});
|
|
962
962
|
}
|
|
963
963
|
|
|
964
964
|
static CreatePaymentLinkResponse() {
|
|
965
965
|
return Joi.object({
|
|
966
|
-
|
|
966
|
+
message: Joi.string().allow("").required(),
|
|
967
967
|
|
|
968
968
|
polling_timeout: Joi.number().allow(null),
|
|
969
969
|
|
|
@@ -971,9 +971,9 @@ class PaymentModel {
|
|
|
971
971
|
|
|
972
972
|
payment_link_id: Joi.string().allow("").allow(null),
|
|
973
973
|
|
|
974
|
-
|
|
974
|
+
payment_link_url: Joi.string().allow("").allow(null),
|
|
975
975
|
|
|
976
|
-
|
|
976
|
+
success: Joi.boolean().required(),
|
|
977
977
|
});
|
|
978
978
|
}
|
|
979
979
|
|
|
@@ -985,11 +985,11 @@ class PaymentModel {
|
|
|
985
985
|
|
|
986
986
|
static ResendPaymentLinkResponse() {
|
|
987
987
|
return Joi.object({
|
|
988
|
-
|
|
988
|
+
status_code: Joi.number().required(),
|
|
989
989
|
|
|
990
990
|
polling_timeout: Joi.number().allow(null),
|
|
991
991
|
|
|
992
|
-
|
|
992
|
+
success: Joi.boolean().required(),
|
|
993
993
|
|
|
994
994
|
message: Joi.string().allow("").required(),
|
|
995
995
|
});
|
|
@@ -997,113 +997,113 @@ class PaymentModel {
|
|
|
997
997
|
|
|
998
998
|
static CancelPaymentLinkResponse() {
|
|
999
999
|
return Joi.object({
|
|
1000
|
-
success: Joi.boolean().required(),
|
|
1001
|
-
|
|
1002
1000
|
status_code: Joi.number().required(),
|
|
1003
1001
|
|
|
1002
|
+
success: Joi.boolean().required(),
|
|
1003
|
+
|
|
1004
1004
|
message: Joi.string().allow("").required(),
|
|
1005
1005
|
});
|
|
1006
1006
|
}
|
|
1007
1007
|
|
|
1008
1008
|
static PollingPaymentLinkResponse() {
|
|
1009
1009
|
return Joi.object({
|
|
1010
|
-
order_id: Joi.string().allow("").allow(null),
|
|
1011
|
-
|
|
1012
1010
|
http_status: Joi.number().allow(null),
|
|
1013
1011
|
|
|
1014
|
-
|
|
1012
|
+
status: Joi.string().allow("").allow(null),
|
|
1013
|
+
|
|
1014
|
+
message: Joi.string().allow("").allow(null),
|
|
1015
|
+
|
|
1016
|
+
order_id: Joi.string().allow("").allow(null),
|
|
1015
1017
|
|
|
1016
1018
|
success: Joi.boolean().allow(null),
|
|
1017
1019
|
|
|
1018
1020
|
status_code: Joi.number().allow(null),
|
|
1019
1021
|
|
|
1022
|
+
payment_link_id: Joi.string().allow("").allow(null),
|
|
1023
|
+
|
|
1020
1024
|
amount: Joi.number().allow(null),
|
|
1021
1025
|
|
|
1022
1026
|
redirect_url: Joi.string().allow("").allow(null),
|
|
1023
1027
|
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
message: Joi.string().allow("").allow(null),
|
|
1027
|
-
|
|
1028
|
-
status: Joi.string().allow("").allow(null),
|
|
1028
|
+
aggregator_name: Joi.string().allow("").allow(null),
|
|
1029
1029
|
});
|
|
1030
1030
|
}
|
|
1031
1031
|
|
|
1032
1032
|
static PaymentMethodsMeta() {
|
|
1033
1033
|
return Joi.object({
|
|
1034
|
-
|
|
1034
|
+
merchant_code: Joi.string().allow("").required(),
|
|
1035
1035
|
|
|
1036
1036
|
payment_gateway: Joi.string().allow("").required(),
|
|
1037
1037
|
|
|
1038
|
-
|
|
1038
|
+
payment_identifier: Joi.string().allow("").required(),
|
|
1039
1039
|
});
|
|
1040
1040
|
}
|
|
1041
1041
|
|
|
1042
1042
|
static CreateOrderUserPaymentMethods() {
|
|
1043
1043
|
return Joi.object({
|
|
1044
|
-
meta: PaymentModel.PaymentMethodsMeta().required(),
|
|
1045
|
-
|
|
1046
1044
|
name: Joi.string().allow("").required(),
|
|
1047
1045
|
|
|
1046
|
+
meta: PaymentModel.PaymentMethodsMeta().required(),
|
|
1047
|
+
|
|
1048
1048
|
mode: Joi.string().allow("").required(),
|
|
1049
1049
|
});
|
|
1050
1050
|
}
|
|
1051
1051
|
|
|
1052
1052
|
static CreateOrderUserRequest() {
|
|
1053
1053
|
return Joi.object({
|
|
1054
|
-
payment_methods: PaymentModel.CreateOrderUserPaymentMethods().required(),
|
|
1055
|
-
|
|
1056
1054
|
success_callback_url: Joi.string().allow("").required(),
|
|
1057
1055
|
|
|
1058
|
-
failure_callback_url: Joi.string().allow("").required(),
|
|
1059
|
-
|
|
1060
1056
|
meta: Joi.any().allow(null),
|
|
1061
1057
|
|
|
1062
|
-
|
|
1058
|
+
failure_callback_url: Joi.string().allow("").required(),
|
|
1063
1059
|
|
|
1064
1060
|
payment_link_id: Joi.string().allow("").required(),
|
|
1061
|
+
|
|
1062
|
+
payment_methods: PaymentModel.CreateOrderUserPaymentMethods().required(),
|
|
1063
|
+
|
|
1064
|
+
currency: Joi.string().allow("").required(),
|
|
1065
1065
|
});
|
|
1066
1066
|
}
|
|
1067
1067
|
|
|
1068
1068
|
static CreateOrderUserData() {
|
|
1069
1069
|
return Joi.object({
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
aggregator: Joi.string().allow("").allow(null),
|
|
1070
|
+
method: Joi.string().allow("").allow(null),
|
|
1073
1071
|
|
|
1074
1072
|
merchant_order_id: Joi.string().allow("").allow(null),
|
|
1075
1073
|
|
|
1076
1074
|
order_id: Joi.string().allow("").allow(null),
|
|
1077
1075
|
|
|
1078
|
-
currency: Joi.string().allow("").allow(null),
|
|
1079
|
-
|
|
1080
1076
|
contact: Joi.string().allow("").allow(null),
|
|
1081
1077
|
|
|
1082
1078
|
amount: Joi.number().allow(null),
|
|
1083
1079
|
|
|
1080
|
+
callback_url: Joi.string().allow("").allow(null),
|
|
1081
|
+
|
|
1084
1082
|
customer_id: Joi.string().allow("").allow(null),
|
|
1085
1083
|
|
|
1086
|
-
|
|
1084
|
+
currency: Joi.string().allow("").allow(null),
|
|
1087
1085
|
|
|
1088
|
-
|
|
1086
|
+
email: Joi.string().allow("").allow(null),
|
|
1087
|
+
|
|
1088
|
+
aggregator: Joi.string().allow("").allow(null),
|
|
1089
1089
|
});
|
|
1090
1090
|
}
|
|
1091
1091
|
|
|
1092
1092
|
static CreateOrderUserResponse() {
|
|
1093
1093
|
return Joi.object({
|
|
1094
|
-
payment_confirm_url: Joi.string().allow("").allow(null),
|
|
1095
|
-
|
|
1096
1094
|
message: Joi.string().allow("").required(),
|
|
1097
1095
|
|
|
1098
1096
|
order_id: Joi.string().allow("").allow(null),
|
|
1099
1097
|
|
|
1098
|
+
data: PaymentModel.CreateOrderUserData(),
|
|
1099
|
+
|
|
1100
|
+
callback_url: Joi.string().allow("").allow(null),
|
|
1101
|
+
|
|
1100
1102
|
status_code: Joi.number().required(),
|
|
1101
1103
|
|
|
1102
|
-
|
|
1104
|
+
payment_confirm_url: Joi.string().allow("").allow(null),
|
|
1103
1105
|
|
|
1104
1106
|
success: Joi.boolean().required(),
|
|
1105
|
-
|
|
1106
|
-
callback_url: Joi.string().allow("").allow(null),
|
|
1107
1107
|
});
|
|
1108
1108
|
}
|
|
1109
1109
|
|
|
@@ -1119,13 +1119,13 @@ class PaymentModel {
|
|
|
1119
1119
|
|
|
1120
1120
|
static CreditSummary() {
|
|
1121
1121
|
return Joi.object({
|
|
1122
|
-
|
|
1122
|
+
merchant_customer_ref_id: Joi.string().allow("").required(),
|
|
1123
1123
|
|
|
1124
1124
|
status_message: Joi.string().allow("").required(),
|
|
1125
1125
|
|
|
1126
1126
|
status: Joi.string().allow("").required(),
|
|
1127
1127
|
|
|
1128
|
-
|
|
1128
|
+
balance: PaymentModel.BalanceDetails(),
|
|
1129
1129
|
});
|
|
1130
1130
|
}
|
|
1131
1131
|
|
|
@@ -1155,10 +1155,10 @@ class PaymentModel {
|
|
|
1155
1155
|
|
|
1156
1156
|
static CreditDetail() {
|
|
1157
1157
|
return Joi.object({
|
|
1158
|
-
signup_url: Joi.string().allow("").required(),
|
|
1159
|
-
|
|
1160
1158
|
is_registered: Joi.boolean().required(),
|
|
1161
1159
|
|
|
1160
|
+
signup_url: Joi.string().allow("").required(),
|
|
1161
|
+
|
|
1162
1162
|
status: Joi.boolean().required(),
|
|
1163
1163
|
});
|
|
1164
1164
|
}
|
|
@@ -1173,71 +1173,71 @@ class PaymentModel {
|
|
|
1173
1173
|
|
|
1174
1174
|
static KYCAddress() {
|
|
1175
1175
|
return Joi.object({
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
ownership_type: Joi.string().allow("").allow(null),
|
|
1176
|
+
land_mark: Joi.string().allow("").allow(null),
|
|
1179
1177
|
|
|
1180
1178
|
state: Joi.string().allow("").required(),
|
|
1181
1179
|
|
|
1182
|
-
|
|
1180
|
+
city: Joi.string().allow("").required(),
|
|
1183
1181
|
|
|
1184
1182
|
addressline2: Joi.string().allow("").allow(null),
|
|
1185
1183
|
|
|
1186
|
-
|
|
1184
|
+
ownership_type: Joi.string().allow("").allow(null),
|
|
1187
1185
|
|
|
1188
1186
|
pincode: Joi.string().allow("").required(),
|
|
1187
|
+
|
|
1188
|
+
addressline1: Joi.string().allow("").required(),
|
|
1189
1189
|
});
|
|
1190
1190
|
}
|
|
1191
1191
|
|
|
1192
1192
|
static UserPersonalInfoInDetails() {
|
|
1193
1193
|
return Joi.object({
|
|
1194
|
-
|
|
1194
|
+
driving_license: Joi.string().allow("").allow(null),
|
|
1195
1195
|
|
|
1196
|
-
|
|
1196
|
+
mobile_verified: Joi.boolean().required(),
|
|
1197
1197
|
|
|
1198
|
-
|
|
1198
|
+
dob: Joi.string().allow("").allow(null).required(),
|
|
1199
|
+
|
|
1200
|
+
address_as_per_id: PaymentModel.KYCAddress().required(),
|
|
1199
1201
|
|
|
1200
1202
|
fathers_name: Joi.string().allow("").allow(null),
|
|
1201
1203
|
|
|
1204
|
+
pan: Joi.string().allow("").allow(null),
|
|
1205
|
+
|
|
1206
|
+
email_verified: Joi.boolean().required(),
|
|
1207
|
+
|
|
1202
1208
|
passport: Joi.string().allow("").allow(null),
|
|
1203
1209
|
|
|
1204
|
-
|
|
1210
|
+
mothers_name: Joi.string().allow("").allow(null),
|
|
1205
1211
|
|
|
1206
1212
|
first_name: Joi.string().allow("").required(),
|
|
1207
1213
|
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
dob: Joi.string().allow("").allow(null).required(),
|
|
1214
|
+
phone: Joi.string().allow("").required(),
|
|
1211
1215
|
|
|
1212
|
-
|
|
1216
|
+
middle_name: Joi.string().allow("").allow(null),
|
|
1213
1217
|
|
|
1214
1218
|
last_name: Joi.string().allow("").allow(null),
|
|
1215
1219
|
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
mothers_name: Joi.string().allow("").allow(null),
|
|
1219
|
-
|
|
1220
|
-
email_verified: Joi.boolean().required(),
|
|
1220
|
+
voter_id: Joi.string().allow("").allow(null),
|
|
1221
1221
|
|
|
1222
|
-
|
|
1222
|
+
gender: Joi.string().allow("").allow(null),
|
|
1223
1223
|
|
|
1224
|
-
|
|
1224
|
+
email: Joi.string().allow("").allow(null),
|
|
1225
1225
|
});
|
|
1226
1226
|
}
|
|
1227
1227
|
|
|
1228
1228
|
static DeviceDetails() {
|
|
1229
1229
|
return Joi.object({
|
|
1230
|
-
|
|
1230
|
+
identifier_type: Joi.string().allow("").allow(null),
|
|
1231
1231
|
|
|
1232
|
-
|
|
1232
|
+
device_model: Joi.string().allow("").allow(null),
|
|
1233
1233
|
|
|
1234
1234
|
os: Joi.string().allow("").allow(null),
|
|
1235
1235
|
|
|
1236
1236
|
os_version: Joi.string().allow("").allow(null),
|
|
1237
1237
|
|
|
1238
|
-
|
|
1238
|
+
device_make: Joi.string().allow("").allow(null),
|
|
1239
1239
|
|
|
1240
|
-
|
|
1240
|
+
device_type: Joi.string().allow("").allow(null),
|
|
1241
1241
|
|
|
1242
1242
|
identification_number: Joi.string().allow("").allow(null),
|
|
1243
1243
|
});
|
|
@@ -1245,27 +1245,27 @@ class PaymentModel {
|
|
|
1245
1245
|
|
|
1246
1246
|
static BusinessDetails() {
|
|
1247
1247
|
return Joi.object({
|
|
1248
|
+
entity_type: Joi.string().allow("").allow(null),
|
|
1249
|
+
|
|
1248
1250
|
fssai: Joi.string().allow("").allow(null),
|
|
1249
1251
|
|
|
1250
|
-
|
|
1252
|
+
pan: Joi.string().allow("").allow(null),
|
|
1251
1253
|
|
|
1252
|
-
|
|
1254
|
+
business_type: Joi.string().allow("").allow(null),
|
|
1253
1255
|
|
|
1254
|
-
|
|
1256
|
+
fda: Joi.string().allow("").allow(null),
|
|
1255
1257
|
|
|
1256
|
-
|
|
1258
|
+
shop_and_establishment: Joi.any(),
|
|
1257
1259
|
|
|
1258
1260
|
name: Joi.string().allow("").allow(null),
|
|
1259
1261
|
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
entity_type: Joi.string().allow("").allow(null),
|
|
1262
|
+
vintage: Joi.string().allow("").allow(null),
|
|
1263
1263
|
|
|
1264
|
-
|
|
1264
|
+
business_ownership_type: Joi.string().allow("").allow(null),
|
|
1265
1265
|
|
|
1266
1266
|
address: PaymentModel.KYCAddress(),
|
|
1267
1267
|
|
|
1268
|
-
|
|
1268
|
+
gstin: Joi.string().allow("").allow(null),
|
|
1269
1269
|
});
|
|
1270
1270
|
}
|
|
1271
1271
|
|
|
@@ -1273,27 +1273,27 @@ class PaymentModel {
|
|
|
1273
1273
|
return Joi.object({
|
|
1274
1274
|
name: Joi.string().allow("").required(),
|
|
1275
1275
|
|
|
1276
|
-
date_of_joining: Joi.string().allow("").allow(null),
|
|
1277
|
-
|
|
1278
1276
|
membership_id: Joi.string().allow("").required(),
|
|
1277
|
+
|
|
1278
|
+
date_of_joining: Joi.string().allow("").allow(null),
|
|
1279
1279
|
});
|
|
1280
1280
|
}
|
|
1281
1281
|
|
|
1282
1282
|
static CustomerOnboardingRequest() {
|
|
1283
1283
|
return Joi.object({
|
|
1284
|
-
aggregator: Joi.string().allow("").required(),
|
|
1285
|
-
|
|
1286
1284
|
personal_info: PaymentModel.UserPersonalInfoInDetails().required(),
|
|
1287
1285
|
|
|
1288
|
-
mcc: Joi.string().allow("").allow(null),
|
|
1289
|
-
|
|
1290
1286
|
device: PaymentModel.DeviceDetails(),
|
|
1291
1287
|
|
|
1292
|
-
|
|
1288
|
+
mcc: Joi.string().allow("").allow(null),
|
|
1293
1289
|
|
|
1294
1290
|
source: Joi.string().allow("").required(),
|
|
1295
1291
|
|
|
1292
|
+
business_info: PaymentModel.BusinessDetails(),
|
|
1293
|
+
|
|
1296
1294
|
marketplace_info: PaymentModel.MarketplaceInfo(),
|
|
1295
|
+
|
|
1296
|
+
aggregator: Joi.string().allow("").required(),
|
|
1297
1297
|
});
|
|
1298
1298
|
}
|
|
1299
1299
|
|
|
@@ -1301,9 +1301,9 @@ class PaymentModel {
|
|
|
1301
1301
|
return Joi.object({
|
|
1302
1302
|
redirect_url: Joi.string().allow("").required(),
|
|
1303
1303
|
|
|
1304
|
-
session: Joi.any().required(),
|
|
1305
|
-
|
|
1306
1304
|
status: Joi.boolean().required(),
|
|
1305
|
+
|
|
1306
|
+
session: Joi.any().required(),
|
|
1307
1307
|
});
|
|
1308
1308
|
}
|
|
1309
1309
|
|