@gofynd/fdk-client-javascript 1.0.1 → 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 +414 -414
- package/documentation/application/CONTENT.md +15 -1
- package/documentation/application/ORDER.md +290 -290
- package/documentation/application/PAYMENT.md +255 -255
- package/documentation/application/POSCART.md +297 -297
- package/documentation/platform/CART.md +499 -499
- package/documentation/platform/CATALOG.md +3088 -2702
- package/documentation/platform/COMPANYPROFILE.md +201 -201
- package/documentation/platform/CONTENT.md +123 -1
- package/documentation/platform/ORDER.md +1233 -1158
- package/documentation/platform/PARTNER.md +7 -7
- package/documentation/platform/PAYMENT.md +83 -83
- package/package.json +1 -1
- package/sdk/application/ApplicationConfig.js +1 -1
- package/sdk/application/Cart/CartApplicationClient.js +619 -108
- package/sdk/application/Cart/CartApplicationModel.d.ts +7 -7
- package/sdk/application/Cart/CartApplicationModel.js +335 -335
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +1 -1
- package/sdk/application/Catalog/CatalogApplicationClient.js +730 -134
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +21 -21
- package/sdk/application/Catalog/CatalogApplicationModel.js +547 -547
- package/sdk/application/Common/CommonApplicationClient.js +48 -8
- package/sdk/application/Communication/CommunicationApplicationClient.js +75 -14
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +1 -1
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +392 -66
- package/sdk/application/Content/ContentApplicationClient.js +444 -76
- package/sdk/application/Content/ContentApplicationModel.d.ts +1 -0
- package/sdk/application/Content/ContentApplicationModel.js +11 -1
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +74 -12
- package/sdk/application/Lead/LeadApplicationClient.js +164 -30
- package/sdk/application/Logistic/LogisticApplicationClient.js +98 -16
- package/sdk/application/Order/OrderApplicationClient.d.ts +1 -1
- package/sdk/application/Order/OrderApplicationClient.js +287 -54
- package/sdk/application/Order/OrderApplicationModel.d.ts +19 -19
- package/sdk/application/Order/OrderApplicationModel.js +357 -357
- package/sdk/application/Payment/PaymentApplicationClient.js +961 -186
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +3 -3
- package/sdk/application/Payment/PaymentApplicationModel.js +352 -352
- package/sdk/application/PosCart/PosCartApplicationClient.js +645 -114
- package/sdk/application/PosCart/PosCartApplicationModel.d.ts +15 -15
- package/sdk/application/PosCart/PosCartApplicationModel.js +389 -389
- package/sdk/application/Rewards/RewardsApplicationClient.js +168 -28
- package/sdk/application/Share/ShareApplicationClient.js +157 -32
- package/sdk/application/Theme/ThemeApplicationClient.js +94 -16
- package/sdk/application/User/UserApplicationClient.js +806 -148
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +16 -8
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +191 -34
- package/sdk/platform/Analytics/AnalyticsPlatformClient.d.ts +8 -4
- package/sdk/platform/Analytics/AnalyticsPlatformClient.js +103 -16
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +8 -4
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +103 -16
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +24 -12
- package/sdk/platform/Billing/BillingPlatformClient.js +299 -54
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +34 -17
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +409 -72
- package/sdk/platform/Cart/CartPlatformModel.d.ts +35 -35
- package/sdk/platform/Cart/CartPlatformModel.js +617 -617
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +167 -114
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +1562 -453
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +8 -8
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +39 -39
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +314 -196
- package/sdk/platform/Catalog/CatalogPlatformClient.js +2459 -718
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +103 -94
- package/sdk/platform/Catalog/CatalogPlatformModel.js +2063 -1797
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +17 -15
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +95 -76
- package/sdk/platform/Common/CommonPlatformClient.d.ts +4 -2
- package/sdk/platform/Common/CommonPlatformClient.js +51 -8
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +80 -40
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +1000 -168
- package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +2 -1
- package/sdk/platform/Communication/CommunicationPlatformClient.js +28 -4
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +27 -14
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +335 -54
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +10 -10
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +278 -278
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +56 -28
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +702 -118
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +36 -18
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +457 -82
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +148 -67
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +1724 -284
- 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 +270 -44
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +8 -4
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +102 -16
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +12 -6
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +150 -24
- package/sdk/platform/Inventory/InventoryPlatformClient.d.ts +27 -14
- package/sdk/platform/Inventory/InventoryPlatformClient.js +316 -52
- package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +26 -13
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +311 -52
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +22 -11
- package/sdk/platform/Lead/LeadPlatformClient.js +266 -44
- package/sdk/platform/OAuthClient.js +8 -8
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +6 -3
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +78 -14
- package/sdk/platform/Order/OrderPlatformClient.d.ts +95 -43
- package/sdk/platform/Order/OrderPlatformClient.js +1062 -180
- package/sdk/platform/Order/OrderPlatformModel.d.ts +64 -60
- package/sdk/platform/Order/OrderPlatformModel.js +1481 -1425
- package/sdk/platform/Order/OrderPlatformValidator.js +5 -0
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +4 -2
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +52 -8
- 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 +287 -56
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +21 -11
- package/sdk/platform/Payment/PaymentPlatformClient.js +263 -48
- package/sdk/platform/Payment/PaymentPlatformModel.js +122 -122
- package/sdk/platform/PlatformApplicationClient.d.ts +2959 -2787
- package/sdk/platform/PlatformApplicationClient.js +3420 -3212
- package/sdk/platform/PlatformClient.d.ts +2959 -2787
- package/sdk/platform/PlatformClient.js +3420 -3212
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +26 -13
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +308 -54
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +8 -4
- package/sdk/platform/Share/SharePlatformApplicationClient.js +94 -16
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +47 -23
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +571 -96
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +24 -12
- package/sdk/platform/User/UserPlatformApplicationClient.js +296 -48
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +12 -6
- package/sdk/platform/Webhook/WebhookPlatformClient.js +157 -30
- package/sdk/public/Configuration/ConfigurationPublicClient.js +51 -8
- package/sdk/public/Inventory/InventoryPublicClient.js +149 -26
- package/sdk/public/Webhook/WebhookPublicClient.js +51 -10
|
@@ -3,17 +3,17 @@ const Joi = require("joi");
|
|
|
3
3
|
class PaymentModel {
|
|
4
4
|
static PaymentGatewayConfigResponse() {
|
|
5
5
|
return Joi.object({
|
|
6
|
-
excluded_fields: Joi.array().items(Joi.string().allow("")).required(),
|
|
7
|
-
|
|
8
6
|
created: Joi.boolean().required(),
|
|
9
7
|
|
|
10
|
-
|
|
8
|
+
excluded_fields: Joi.array().items(Joi.string().allow("")).required(),
|
|
11
9
|
|
|
12
10
|
success: Joi.boolean().required(),
|
|
13
11
|
|
|
14
|
-
|
|
12
|
+
aggregators: Joi.array().items(Joi.any()),
|
|
15
13
|
|
|
16
14
|
display_fields: Joi.array().items(Joi.string().allow("")).required(),
|
|
15
|
+
|
|
16
|
+
app_id: Joi.string().allow("").required(),
|
|
17
17
|
});
|
|
18
18
|
}
|
|
19
19
|
|
|
@@ -29,15 +29,15 @@ class PaymentModel {
|
|
|
29
29
|
|
|
30
30
|
static PaymentGatewayConfig() {
|
|
31
31
|
return Joi.object({
|
|
32
|
-
secret: Joi.string().allow("").required(),
|
|
33
|
-
|
|
34
32
|
config_type: Joi.string().allow("").required(),
|
|
35
33
|
|
|
36
|
-
key: Joi.string().allow("").required(),
|
|
37
|
-
|
|
38
34
|
merchant_salt: Joi.string().allow("").required(),
|
|
39
35
|
|
|
36
|
+
secret: Joi.string().allow("").required(),
|
|
37
|
+
|
|
40
38
|
is_active: Joi.boolean().allow(null),
|
|
39
|
+
|
|
40
|
+
key: Joi.string().allow("").required(),
|
|
41
41
|
});
|
|
42
42
|
}
|
|
43
43
|
|
|
@@ -77,9 +77,9 @@ class PaymentModel {
|
|
|
77
77
|
|
|
78
78
|
static PaymentModeLogo() {
|
|
79
79
|
return Joi.object({
|
|
80
|
-
small: Joi.string().allow("").required(),
|
|
81
|
-
|
|
82
80
|
large: Joi.string().allow("").required(),
|
|
81
|
+
|
|
82
|
+
small: Joi.string().allow("").required(),
|
|
83
83
|
});
|
|
84
84
|
}
|
|
85
85
|
|
|
@@ -87,113 +87,113 @@ class PaymentModel {
|
|
|
87
87
|
return Joi.object({
|
|
88
88
|
code: Joi.string().allow("").allow(null),
|
|
89
89
|
|
|
90
|
-
logos: PaymentModel.PaymentModeLogo(),
|
|
91
|
-
|
|
92
90
|
package_name: Joi.string().allow("").allow(null),
|
|
93
91
|
|
|
92
|
+
logos: PaymentModel.PaymentModeLogo(),
|
|
93
|
+
|
|
94
94
|
display_name: Joi.string().allow("").allow(null),
|
|
95
95
|
});
|
|
96
96
|
}
|
|
97
97
|
|
|
98
98
|
static IntentAppErrorList() {
|
|
99
99
|
return Joi.object({
|
|
100
|
-
code: Joi.string().allow("").allow(null),
|
|
101
|
-
|
|
102
100
|
package_name: Joi.string().allow("").allow(null),
|
|
101
|
+
|
|
102
|
+
code: Joi.string().allow("").allow(null),
|
|
103
103
|
});
|
|
104
104
|
}
|
|
105
105
|
|
|
106
106
|
static PaymentModeList() {
|
|
107
107
|
return Joi.object({
|
|
108
|
-
|
|
108
|
+
card_brand_image: Joi.string().allow("").allow(null),
|
|
109
109
|
|
|
110
|
-
|
|
110
|
+
aggregator_name: Joi.string().allow("").required(),
|
|
111
111
|
|
|
112
|
-
|
|
112
|
+
remaining_limit: Joi.number().allow(null),
|
|
113
113
|
|
|
114
|
-
|
|
114
|
+
logo_url: PaymentModel.PaymentModeLogo(),
|
|
115
115
|
|
|
116
|
-
|
|
116
|
+
retry_count: Joi.number().allow(null),
|
|
117
117
|
|
|
118
|
-
|
|
118
|
+
merchant_code: Joi.string().allow("").allow(null),
|
|
119
119
|
|
|
120
|
-
|
|
120
|
+
card_type: Joi.string().allow("").allow(null),
|
|
121
121
|
|
|
122
|
-
|
|
122
|
+
display_name: Joi.string().allow("").allow(null),
|
|
123
123
|
|
|
124
|
-
|
|
125
|
-
PaymentModel.IntentAppErrorList()
|
|
126
|
-
),
|
|
124
|
+
card_issuer: Joi.string().allow("").allow(null),
|
|
127
125
|
|
|
128
126
|
cod_limit: Joi.number().allow(null),
|
|
129
127
|
|
|
130
128
|
expired: Joi.boolean().allow(null),
|
|
131
129
|
|
|
132
|
-
|
|
130
|
+
intent_app: Joi.array().items(PaymentModel.IntentApp()),
|
|
133
131
|
|
|
134
|
-
|
|
132
|
+
name: Joi.string().allow("").allow(null),
|
|
135
133
|
|
|
136
|
-
|
|
134
|
+
card_fingerprint: Joi.string().allow("").allow(null),
|
|
137
135
|
|
|
138
|
-
|
|
136
|
+
intent_flow: Joi.boolean().allow(null),
|
|
139
137
|
|
|
140
|
-
|
|
138
|
+
fynd_vpa: Joi.string().allow("").allow(null),
|
|
141
139
|
|
|
142
|
-
|
|
140
|
+
nickname: Joi.string().allow("").allow(null),
|
|
143
141
|
|
|
144
|
-
|
|
142
|
+
display_priority: Joi.number().allow(null),
|
|
145
143
|
|
|
146
|
-
|
|
144
|
+
card_number: Joi.string().allow("").allow(null),
|
|
147
145
|
|
|
148
|
-
|
|
146
|
+
card_id: Joi.string().allow("").allow(null),
|
|
149
147
|
|
|
150
|
-
|
|
148
|
+
intent_app_error_dict_list: Joi.array().items(
|
|
149
|
+
PaymentModel.IntentAppErrorList()
|
|
150
|
+
),
|
|
151
151
|
|
|
152
|
-
|
|
152
|
+
card_name: Joi.string().allow("").allow(null),
|
|
153
153
|
|
|
154
|
-
|
|
154
|
+
cod_limit_per_order: Joi.number().allow(null),
|
|
155
155
|
|
|
156
|
-
|
|
156
|
+
code: Joi.string().allow("").allow(null),
|
|
157
157
|
|
|
158
|
-
|
|
158
|
+
card_reference: Joi.string().allow("").allow(null),
|
|
159
159
|
|
|
160
|
-
|
|
160
|
+
compliant_with_tokenisation_guidelines: Joi.boolean().allow(null),
|
|
161
161
|
|
|
162
|
-
|
|
162
|
+
card_brand: Joi.string().allow("").allow(null),
|
|
163
163
|
|
|
164
|
-
|
|
164
|
+
exp_year: Joi.number().allow(null),
|
|
165
165
|
|
|
166
|
-
|
|
166
|
+
exp_month: Joi.number().allow(null),
|
|
167
167
|
|
|
168
|
-
|
|
168
|
+
card_token: Joi.string().allow("").allow(null),
|
|
169
169
|
|
|
170
|
-
|
|
170
|
+
intent_app_error_list: Joi.array().items(Joi.string().allow("")),
|
|
171
171
|
|
|
172
|
-
|
|
172
|
+
card_isin: Joi.string().allow("").allow(null),
|
|
173
173
|
|
|
174
|
-
|
|
174
|
+
timeout: Joi.number().allow(null),
|
|
175
175
|
});
|
|
176
176
|
}
|
|
177
177
|
|
|
178
178
|
static RootPaymentMode() {
|
|
179
179
|
return Joi.object({
|
|
180
|
-
|
|
180
|
+
aggregator_name: Joi.string().allow("").allow(null),
|
|
181
181
|
|
|
182
|
-
|
|
182
|
+
list: Joi.array().items(PaymentModel.PaymentModeList()),
|
|
183
183
|
|
|
184
184
|
anonymous_enable: Joi.boolean().allow(null),
|
|
185
185
|
|
|
186
186
|
save_card: Joi.boolean().allow(null),
|
|
187
187
|
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
aggregator_name: Joi.string().allow("").allow(null),
|
|
188
|
+
add_card_enabled: Joi.boolean().allow(null),
|
|
191
189
|
|
|
192
190
|
name: Joi.string().allow("").required(),
|
|
193
191
|
|
|
194
|
-
|
|
192
|
+
display_priority: Joi.number().required(),
|
|
195
193
|
|
|
196
|
-
|
|
194
|
+
display_name: Joi.string().allow("").required(),
|
|
195
|
+
|
|
196
|
+
is_pay_by_card_pl: Joi.boolean().allow(null),
|
|
197
197
|
});
|
|
198
198
|
}
|
|
199
199
|
|
|
@@ -207,9 +207,9 @@ class PaymentModel {
|
|
|
207
207
|
|
|
208
208
|
static PaymentOptionsResponse() {
|
|
209
209
|
return Joi.object({
|
|
210
|
-
payment_options: PaymentModel.PaymentOptions().required(),
|
|
211
|
-
|
|
212
210
|
success: Joi.boolean().required(),
|
|
211
|
+
|
|
212
|
+
payment_options: PaymentModel.PaymentOptions().required(),
|
|
213
213
|
});
|
|
214
214
|
}
|
|
215
215
|
|
|
@@ -217,55 +217,55 @@ class PaymentModel {
|
|
|
217
217
|
return Joi.object({
|
|
218
218
|
is_default: Joi.boolean().required(),
|
|
219
219
|
|
|
220
|
-
transfer_type: Joi.string().allow("").required(),
|
|
221
|
-
|
|
222
|
-
customers: Joi.any().required(),
|
|
223
|
-
|
|
224
|
-
more_attributes: Joi.any().required(),
|
|
225
|
-
|
|
226
220
|
unique_transfer_no: Joi.any().required(),
|
|
227
221
|
|
|
222
|
+
transfer_type: Joi.string().allow("").required(),
|
|
223
|
+
|
|
228
224
|
is_active: Joi.boolean().required(),
|
|
229
225
|
|
|
230
226
|
payouts_aggregators: Joi.array().items(Joi.any()).required(),
|
|
227
|
+
|
|
228
|
+
more_attributes: Joi.any().required(),
|
|
229
|
+
|
|
230
|
+
customers: Joi.any().required(),
|
|
231
231
|
});
|
|
232
232
|
}
|
|
233
233
|
|
|
234
234
|
static PayoutBankDetails() {
|
|
235
235
|
return Joi.object({
|
|
236
|
-
|
|
236
|
+
state: Joi.string().allow(""),
|
|
237
237
|
|
|
238
|
-
|
|
238
|
+
pincode: Joi.number(),
|
|
239
239
|
|
|
240
|
-
|
|
240
|
+
branch_name: Joi.string().allow(""),
|
|
241
241
|
|
|
242
242
|
account_holder: Joi.string().allow(""),
|
|
243
243
|
|
|
244
|
-
|
|
244
|
+
city: Joi.string().allow(""),
|
|
245
245
|
|
|
246
|
-
|
|
246
|
+
bank_name: Joi.string().allow(""),
|
|
247
247
|
|
|
248
|
-
|
|
248
|
+
ifsc_code: Joi.string().allow("").required(),
|
|
249
249
|
|
|
250
|
-
|
|
250
|
+
country: Joi.string().allow(""),
|
|
251
251
|
|
|
252
|
-
|
|
252
|
+
account_no: Joi.string().allow(""),
|
|
253
253
|
|
|
254
|
-
|
|
254
|
+
account_type: Joi.string().allow("").required(),
|
|
255
255
|
});
|
|
256
256
|
}
|
|
257
257
|
|
|
258
258
|
static PayoutRequest() {
|
|
259
259
|
return Joi.object({
|
|
260
|
-
|
|
260
|
+
bank_details: PaymentModel.PayoutBankDetails().required(),
|
|
261
261
|
|
|
262
|
-
|
|
262
|
+
unique_external_id: Joi.string().allow("").required(),
|
|
263
263
|
|
|
264
264
|
transfer_type: Joi.string().allow("").required(),
|
|
265
265
|
|
|
266
266
|
aggregator: Joi.string().allow("").required(),
|
|
267
267
|
|
|
268
|
-
|
|
268
|
+
users: Joi.any().required(),
|
|
269
269
|
|
|
270
270
|
is_active: Joi.boolean().required(),
|
|
271
271
|
});
|
|
@@ -273,25 +273,25 @@ class PaymentModel {
|
|
|
273
273
|
|
|
274
274
|
static PayoutResponse() {
|
|
275
275
|
return Joi.object({
|
|
276
|
-
|
|
276
|
+
bank_details: Joi.any().required(),
|
|
277
277
|
|
|
278
278
|
payouts: Joi.any().required(),
|
|
279
279
|
|
|
280
|
-
|
|
280
|
+
created: Joi.boolean().required(),
|
|
281
281
|
|
|
282
|
-
|
|
282
|
+
unique_transfer_no: Joi.string().allow("").required(),
|
|
283
283
|
|
|
284
|
-
|
|
284
|
+
transfer_type: Joi.string().allow("").required(),
|
|
285
285
|
|
|
286
|
-
|
|
286
|
+
success: Joi.boolean().required(),
|
|
287
287
|
|
|
288
|
-
|
|
288
|
+
users: Joi.any().required(),
|
|
289
289
|
|
|
290
|
-
|
|
290
|
+
aggregator: Joi.string().allow("").required(),
|
|
291
291
|
|
|
292
292
|
is_active: Joi.boolean().required(),
|
|
293
293
|
|
|
294
|
-
|
|
294
|
+
payment_status: Joi.string().allow("").required(),
|
|
295
295
|
});
|
|
296
296
|
}
|
|
297
297
|
|
|
@@ -307,11 +307,11 @@ class PaymentModel {
|
|
|
307
307
|
|
|
308
308
|
static UpdatePayoutRequest() {
|
|
309
309
|
return Joi.object({
|
|
310
|
-
unique_external_id: Joi.string().allow("").required(),
|
|
311
|
-
|
|
312
310
|
is_default: Joi.boolean().required(),
|
|
313
311
|
|
|
314
312
|
is_active: Joi.boolean().required(),
|
|
313
|
+
|
|
314
|
+
unique_external_id: Joi.string().allow("").required(),
|
|
315
315
|
});
|
|
316
316
|
}
|
|
317
317
|
|
|
@@ -337,10 +337,10 @@ class PaymentModel {
|
|
|
337
337
|
|
|
338
338
|
static SubscriptionConfigResponse() {
|
|
339
339
|
return Joi.object({
|
|
340
|
-
aggregator: Joi.string().allow("").required(),
|
|
341
|
-
|
|
342
340
|
config: Joi.any().required(),
|
|
343
341
|
|
|
342
|
+
aggregator: Joi.string().allow("").required(),
|
|
343
|
+
|
|
344
344
|
success: Joi.boolean().required(),
|
|
345
345
|
});
|
|
346
346
|
}
|
|
@@ -383,15 +383,15 @@ class PaymentModel {
|
|
|
383
383
|
|
|
384
384
|
static BankDetailsForOTP() {
|
|
385
385
|
return Joi.object({
|
|
386
|
-
|
|
386
|
+
branch_name: Joi.string().allow("").required(),
|
|
387
387
|
|
|
388
|
-
|
|
388
|
+
account_holder: Joi.string().allow("").required(),
|
|
389
389
|
|
|
390
|
-
|
|
390
|
+
bank_name: Joi.string().allow("").required(),
|
|
391
391
|
|
|
392
392
|
ifsc_code: Joi.string().allow("").required(),
|
|
393
393
|
|
|
394
|
-
|
|
394
|
+
account_no: Joi.string().allow("").required(),
|
|
395
395
|
});
|
|
396
396
|
}
|
|
397
397
|
|
|
@@ -405,53 +405,53 @@ class PaymentModel {
|
|
|
405
405
|
|
|
406
406
|
static IfscCodeResponse() {
|
|
407
407
|
return Joi.object({
|
|
408
|
-
|
|
408
|
+
success: Joi.boolean(),
|
|
409
409
|
|
|
410
410
|
branch_name: Joi.string().allow("").required(),
|
|
411
411
|
|
|
412
|
-
|
|
412
|
+
bank_name: Joi.string().allow("").required(),
|
|
413
413
|
});
|
|
414
414
|
}
|
|
415
415
|
|
|
416
416
|
static OrderBeneficiaryDetails() {
|
|
417
417
|
return Joi.object({
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
email: Joi.string().allow("").required(),
|
|
418
|
+
transfer_mode: Joi.string().allow("").required(),
|
|
421
419
|
|
|
422
|
-
|
|
420
|
+
address: Joi.string().allow("").required(),
|
|
423
421
|
|
|
424
|
-
|
|
422
|
+
display_name: Joi.string().allow("").required(),
|
|
425
423
|
|
|
426
424
|
delights_user_name: Joi.string().allow("").allow(null),
|
|
427
425
|
|
|
428
|
-
|
|
426
|
+
created_on: Joi.string().allow("").required(),
|
|
429
427
|
|
|
430
|
-
|
|
428
|
+
email: Joi.string().allow("").required(),
|
|
431
429
|
|
|
432
430
|
comment: Joi.string().allow(""),
|
|
433
431
|
|
|
434
|
-
|
|
432
|
+
branch_name: Joi.string().allow(""),
|
|
435
433
|
|
|
436
|
-
|
|
434
|
+
account_no: Joi.string().allow("").required(),
|
|
437
435
|
|
|
438
436
|
subtitle: Joi.string().allow("").required(),
|
|
439
437
|
|
|
440
|
-
|
|
438
|
+
modified_on: Joi.string().allow("").required(),
|
|
441
439
|
|
|
442
|
-
|
|
440
|
+
bank_name: Joi.string().allow("").required(),
|
|
443
441
|
|
|
444
|
-
|
|
442
|
+
mobile: Joi.string().allow(""),
|
|
445
443
|
|
|
446
|
-
|
|
444
|
+
account_holder: Joi.string().allow("").required(),
|
|
447
445
|
|
|
448
|
-
|
|
446
|
+
beneficiary_id: Joi.string().allow("").required(),
|
|
449
447
|
|
|
450
|
-
|
|
448
|
+
id: Joi.number().required(),
|
|
451
449
|
|
|
452
450
|
is_active: Joi.boolean().required(),
|
|
453
451
|
|
|
454
|
-
|
|
452
|
+
ifsc_code: Joi.string().allow("").required(),
|
|
453
|
+
|
|
454
|
+
title: Joi.string().allow("").required(),
|
|
455
455
|
});
|
|
456
456
|
}
|
|
457
457
|
|
|
@@ -467,13 +467,13 @@ class PaymentModel {
|
|
|
467
467
|
return Joi.object({
|
|
468
468
|
extra_meta: Joi.any().allow(null),
|
|
469
469
|
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
payment_id: Joi.string().allow(""),
|
|
470
|
+
payment_gateway: Joi.string().allow(""),
|
|
473
471
|
|
|
474
472
|
current_status: Joi.string().allow(""),
|
|
475
473
|
|
|
476
|
-
|
|
474
|
+
payment_id: Joi.string().allow(""),
|
|
475
|
+
|
|
476
|
+
order_id: Joi.string().allow(""),
|
|
477
477
|
});
|
|
478
478
|
}
|
|
479
479
|
|
|
@@ -481,11 +481,11 @@ class PaymentModel {
|
|
|
481
481
|
return Joi.object({
|
|
482
482
|
name: Joi.string().allow(""),
|
|
483
483
|
|
|
484
|
-
meta: PaymentModel.MultiTenderPaymentMeta(),
|
|
485
|
-
|
|
486
484
|
amount: Joi.number().required(),
|
|
487
485
|
|
|
488
486
|
mode: Joi.string().allow("").required(),
|
|
487
|
+
|
|
488
|
+
meta: PaymentModel.MultiTenderPaymentMeta(),
|
|
489
489
|
});
|
|
490
490
|
}
|
|
491
491
|
|
|
@@ -501,22 +501,22 @@ class PaymentModel {
|
|
|
501
501
|
|
|
502
502
|
static PaymentConfirmationResponse() {
|
|
503
503
|
return Joi.object({
|
|
504
|
-
order_id: Joi.string().allow("").required(),
|
|
505
|
-
|
|
506
504
|
message: Joi.string().allow("").required(),
|
|
507
505
|
|
|
508
506
|
success: Joi.boolean().required(),
|
|
507
|
+
|
|
508
|
+
order_id: Joi.string().allow("").required(),
|
|
509
509
|
});
|
|
510
510
|
}
|
|
511
511
|
|
|
512
512
|
static CODdata() {
|
|
513
513
|
return Joi.object({
|
|
514
|
+
remaining_limit: Joi.number().required(),
|
|
515
|
+
|
|
514
516
|
user_id: Joi.string().allow("").required(),
|
|
515
517
|
|
|
516
518
|
usages: Joi.number().required(),
|
|
517
519
|
|
|
518
|
-
remaining_limit: Joi.number().required(),
|
|
519
|
-
|
|
520
520
|
is_active: Joi.boolean().required(),
|
|
521
521
|
|
|
522
522
|
limit: Joi.number().required(),
|
|
@@ -525,19 +525,19 @@ class PaymentModel {
|
|
|
525
525
|
|
|
526
526
|
static GetUserCODLimitResponse() {
|
|
527
527
|
return Joi.object({
|
|
528
|
-
user_cod_data: PaymentModel.CODdata().required(),
|
|
529
|
-
|
|
530
528
|
success: Joi.boolean().required(),
|
|
529
|
+
|
|
530
|
+
user_cod_data: PaymentModel.CODdata().required(),
|
|
531
531
|
});
|
|
532
532
|
}
|
|
533
533
|
|
|
534
534
|
static SetCODForUserRequest() {
|
|
535
535
|
return Joi.object({
|
|
536
|
-
mobileno: Joi.string().allow("").required(),
|
|
537
|
-
|
|
538
536
|
merchant_user_id: Joi.string().allow("").required(),
|
|
539
537
|
|
|
540
538
|
is_active: Joi.boolean().required(),
|
|
539
|
+
|
|
540
|
+
mobileno: Joi.string().allow("").required(),
|
|
541
541
|
});
|
|
542
542
|
}
|
|
543
543
|
|