@gofynd/fdk-client-javascript 1.3.3 → 1.3.4-beta.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/README.md +1 -1
- package/package.json +1 -1
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +18 -1
- package/sdk/application/Catalog/CatalogApplicationModel.js +20 -0
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +3 -3
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +23 -9
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +21 -7
- package/sdk/application/User/UserApplicationClient.d.ts +56 -0
- package/sdk/application/User/UserApplicationClient.js +385 -0
- package/sdk/application/User/UserApplicationModel.d.ts +93 -1
- package/sdk/application/User/UserApplicationModel.js +110 -0
- package/sdk/application/User/UserApplicationValidator.d.ts +66 -1
- package/sdk/application/User/UserApplicationValidator.js +68 -0
- package/sdk/common/AxiosHelper.js +10 -0
- package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +96 -0
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +177 -0
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +139 -0
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +158 -0
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +6 -0
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +33 -0
- package/sdk/partner/PartnerClient.d.ts +2 -0
- package/sdk/partner/PartnerClient.js +3 -0
- package/sdk/partner/PartnerConfig.js +3 -5
- package/sdk/partner/index.d.ts +1 -0
- package/sdk/partner/index.js +2 -0
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +4 -16
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +11 -79
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +12 -8
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +7 -9
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +37 -27
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +145 -56
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +22 -11
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +24 -10
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +4 -4
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +4 -8
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +832 -150
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +940 -138
- package/sdk/platform/Order/OrderPlatformClient.d.ts +2 -2
- package/sdk/platform/Order/OrderPlatformClient.js +1 -1
- package/sdk/platform/Order/OrderPlatformModel.d.ts +10 -2
- package/sdk/platform/Order/OrderPlatformModel.js +10 -2
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +4 -4
- package/sdk/platform/Order/OrderPlatformValidator.js +4 -4
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +42 -0
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +241 -0
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +41 -1
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +40 -0
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +72 -1
- package/sdk/platform/Payment/PaymentPlatformModel.js +54 -0
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +12 -0
- package/sdk/platform/User/UserPlatformApplicationClient.js +79 -0
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +15 -1
- package/sdk/platform/User/UserPlatformApplicationValidator.js +14 -0
- package/sdk/platform/User/UserPlatformModel.d.ts +63 -1
- package/sdk/platform/User/UserPlatformModel.js +44 -0
|
@@ -20,6 +20,11 @@ export = PaymentPlatformApplicationValidator;
|
|
|
20
20
|
* @typedef ConfirmPaymentParam
|
|
21
21
|
* @property {PaymentPlatformModel.PaymentConfirmationRequest} body
|
|
22
22
|
*/
|
|
23
|
+
/**
|
|
24
|
+
* @typedef CreateMerchantRefundPriorityParam
|
|
25
|
+
* @property {string} configType - Configuration for merchant or customer
|
|
26
|
+
* @property {PaymentPlatformModel.RefundPriorityRequestSerializer} body
|
|
27
|
+
*/
|
|
23
28
|
/**
|
|
24
29
|
* @typedef CreatePaymentLinkParam
|
|
25
30
|
* @property {PaymentPlatformModel.CreatePaymentLinkRequest} body
|
|
@@ -55,6 +60,10 @@ export = PaymentPlatformApplicationValidator;
|
|
|
55
60
|
* @property {string} device
|
|
56
61
|
*/
|
|
57
62
|
/** @typedef GetMerchantPaymentOptionParam */
|
|
63
|
+
/**
|
|
64
|
+
* @typedef GetMerchantRefundPriorityParam
|
|
65
|
+
* @property {string} configType - Configuration for merchant or customer
|
|
66
|
+
*/
|
|
58
67
|
/** @typedef GetPGConfigAggregatorsParam */
|
|
59
68
|
/** @typedef GetPaymentCodeOptionParam */
|
|
60
69
|
/**
|
|
@@ -153,6 +162,11 @@ export = PaymentPlatformApplicationValidator;
|
|
|
153
162
|
* @typedef UpdateEdcDeviceParam
|
|
154
163
|
* @property {PaymentPlatformModel.EdcAddRequest} body
|
|
155
164
|
*/
|
|
165
|
+
/**
|
|
166
|
+
* @typedef UpdateMerchantRefundPriorityParam
|
|
167
|
+
* @property {string} configType - Configuration for merchant or customer
|
|
168
|
+
* @property {PaymentPlatformModel.RefundPriorityRequestSerializer} body
|
|
169
|
+
*/
|
|
156
170
|
/**
|
|
157
171
|
* @typedef UpdatePaymentSessionParam
|
|
158
172
|
* @property {string} gid - Global identifier of the entity (e.g. order, cart
|
|
@@ -184,6 +198,8 @@ declare class PaymentPlatformApplicationValidator {
|
|
|
184
198
|
static checkAndUpdatePaymentStatus(): CheckAndUpdatePaymentStatusParam;
|
|
185
199
|
/** @returns {ConfirmPaymentParam} */
|
|
186
200
|
static confirmPayment(): ConfirmPaymentParam;
|
|
201
|
+
/** @returns {CreateMerchantRefundPriorityParam} */
|
|
202
|
+
static createMerchantRefundPriority(): CreateMerchantRefundPriorityParam;
|
|
187
203
|
/** @returns {CreatePaymentLinkParam} */
|
|
188
204
|
static createPaymentLink(): CreatePaymentLinkParam;
|
|
189
205
|
/** @returns {EdcAggregatorsAndModelListParam} */
|
|
@@ -202,6 +218,8 @@ declare class PaymentPlatformApplicationValidator {
|
|
|
202
218
|
static getMerchantAggregatorPaymentModeDetails(): GetMerchantAggregatorPaymentModeDetailsParam;
|
|
203
219
|
/** @returns {GetMerchantPaymentOptionParam} */
|
|
204
220
|
static getMerchantPaymentOption(): any;
|
|
221
|
+
/** @returns {GetMerchantRefundPriorityParam} */
|
|
222
|
+
static getMerchantRefundPriority(): GetMerchantRefundPriorityParam;
|
|
205
223
|
/** @returns {GetPGConfigAggregatorsParam} */
|
|
206
224
|
static getPGConfigAggregators(): any;
|
|
207
225
|
/** @returns {GetPaymentCodeOptionParam} */
|
|
@@ -246,6 +264,8 @@ declare class PaymentPlatformApplicationValidator {
|
|
|
246
264
|
static setUserCODlimitRoutes(): SetUserCODlimitRoutesParam;
|
|
247
265
|
/** @returns {UpdateEdcDeviceParam} */
|
|
248
266
|
static updateEdcDevice(): UpdateEdcDeviceParam;
|
|
267
|
+
/** @returns {UpdateMerchantRefundPriorityParam} */
|
|
268
|
+
static updateMerchantRefundPriority(): UpdateMerchantRefundPriorityParam;
|
|
249
269
|
/** @returns {UpdatePaymentSessionParam} */
|
|
250
270
|
static updatePaymentSession(): UpdatePaymentSessionParam;
|
|
251
271
|
/** @returns {UpdateRefundSessionParam} */
|
|
@@ -254,7 +274,7 @@ declare class PaymentPlatformApplicationValidator {
|
|
|
254
274
|
static verifyCustomerForPayment(): VerifyCustomerForPaymentParam;
|
|
255
275
|
}
|
|
256
276
|
declare namespace PaymentPlatformApplicationValidator {
|
|
257
|
-
export { AddEdcDeviceParam, AddRefundBankAccountUsingOTPParam, CancelPaymentLinkParam, CheckAndUpdatePaymentStatusParam, ConfirmPaymentParam, CreatePaymentLinkParam, EdcAggregatorsAndModelListParam, EdcDeviceListParam, EdcDeviceStatsParam, GetBankAccountDetailsOpenAPIParam, GetBrandPaymentGatewayConfigParam, GetEdcDeviceParam, GetMerchantAggregatorPaymentModeDetailsParam, GetMerchantPaymentOptionParam, GetPGConfigAggregatorsParam, GetPaymentCodeOptionParam, GetPaymentLinkParam, GetPaymentModeRoutesParam, GetPosPaymentModeRoutesParam, GetUserBeneficiariesParam, GetUserCODlimitRoutesParam, GetUserOrderBeneficiariesParam, InitialisePaymentParam, MerchantOnBoardingParam, OauthGetUrlParam, PatchMerchantAggregatorPaymentModeDetailsParam, PatchMerchantPaymentOptionParam, PaymentStatusBulkParam, PollingPaymentLinkParam, RepaymentDetailsParam, ResendOrCancelPaymentParam, ResendPaymentLinkParam, RevokeOauthTokenParam, SaveBrandPaymentGatewayConfigParam, SetUserCODlimitRoutesParam, UpdateEdcDeviceParam, UpdatePaymentSessionParam, UpdateRefundSessionParam, VerifyCustomerForPaymentParam };
|
|
277
|
+
export { AddEdcDeviceParam, AddRefundBankAccountUsingOTPParam, CancelPaymentLinkParam, CheckAndUpdatePaymentStatusParam, ConfirmPaymentParam, CreateMerchantRefundPriorityParam, CreatePaymentLinkParam, EdcAggregatorsAndModelListParam, EdcDeviceListParam, EdcDeviceStatsParam, GetBankAccountDetailsOpenAPIParam, GetBrandPaymentGatewayConfigParam, GetEdcDeviceParam, GetMerchantAggregatorPaymentModeDetailsParam, GetMerchantPaymentOptionParam, GetMerchantRefundPriorityParam, GetPGConfigAggregatorsParam, GetPaymentCodeOptionParam, GetPaymentLinkParam, GetPaymentModeRoutesParam, GetPosPaymentModeRoutesParam, GetUserBeneficiariesParam, GetUserCODlimitRoutesParam, GetUserOrderBeneficiariesParam, InitialisePaymentParam, MerchantOnBoardingParam, OauthGetUrlParam, PatchMerchantAggregatorPaymentModeDetailsParam, PatchMerchantPaymentOptionParam, PaymentStatusBulkParam, PollingPaymentLinkParam, RepaymentDetailsParam, ResendOrCancelPaymentParam, ResendPaymentLinkParam, RevokeOauthTokenParam, SaveBrandPaymentGatewayConfigParam, SetUserCODlimitRoutesParam, UpdateEdcDeviceParam, UpdateMerchantRefundPriorityParam, UpdatePaymentSessionParam, UpdateRefundSessionParam, VerifyCustomerForPaymentParam };
|
|
258
278
|
}
|
|
259
279
|
type AddEdcDeviceParam = {
|
|
260
280
|
/**
|
|
@@ -275,6 +295,13 @@ type CheckAndUpdatePaymentStatusParam = {
|
|
|
275
295
|
type ConfirmPaymentParam = {
|
|
276
296
|
body: PaymentPlatformModel.PaymentConfirmationRequest;
|
|
277
297
|
};
|
|
298
|
+
type CreateMerchantRefundPriorityParam = {
|
|
299
|
+
/**
|
|
300
|
+
* - Configuration for merchant or customer
|
|
301
|
+
*/
|
|
302
|
+
configType: string;
|
|
303
|
+
body: PaymentPlatformModel.RefundPriorityRequestSerializer;
|
|
304
|
+
};
|
|
278
305
|
type CreatePaymentLinkParam = {
|
|
279
306
|
body: PaymentPlatformModel.CreatePaymentLinkRequest;
|
|
280
307
|
};
|
|
@@ -310,6 +337,12 @@ type GetMerchantAggregatorPaymentModeDetailsParam = {
|
|
|
310
337
|
businessUnit: string;
|
|
311
338
|
device: string;
|
|
312
339
|
};
|
|
340
|
+
type GetMerchantRefundPriorityParam = {
|
|
341
|
+
/**
|
|
342
|
+
* - Configuration for merchant or customer
|
|
343
|
+
*/
|
|
344
|
+
configType: string;
|
|
345
|
+
};
|
|
313
346
|
type GetPaymentLinkParam = {
|
|
314
347
|
paymentLinkId?: string;
|
|
315
348
|
};
|
|
@@ -419,6 +452,13 @@ type SetUserCODlimitRoutesParam = {
|
|
|
419
452
|
type UpdateEdcDeviceParam = {
|
|
420
453
|
body: PaymentPlatformModel.EdcAddRequest;
|
|
421
454
|
};
|
|
455
|
+
type UpdateMerchantRefundPriorityParam = {
|
|
456
|
+
/**
|
|
457
|
+
* - Configuration for merchant or customer
|
|
458
|
+
*/
|
|
459
|
+
configType: string;
|
|
460
|
+
body: PaymentPlatformModel.RefundPriorityRequestSerializer;
|
|
461
|
+
};
|
|
422
462
|
type UpdatePaymentSessionParam = {
|
|
423
463
|
/**
|
|
424
464
|
* - Global identifier of the entity (e.g. order, cart
|
|
@@ -28,6 +28,12 @@ const PaymentPlatformModel = require("./PaymentPlatformModel");
|
|
|
28
28
|
* @property {PaymentPlatformModel.PaymentConfirmationRequest} body
|
|
29
29
|
*/
|
|
30
30
|
|
|
31
|
+
/**
|
|
32
|
+
* @typedef CreateMerchantRefundPriorityParam
|
|
33
|
+
* @property {string} configType - Configuration for merchant or customer
|
|
34
|
+
* @property {PaymentPlatformModel.RefundPriorityRequestSerializer} body
|
|
35
|
+
*/
|
|
36
|
+
|
|
31
37
|
/**
|
|
32
38
|
* @typedef CreatePaymentLinkParam
|
|
33
39
|
* @property {PaymentPlatformModel.CreatePaymentLinkRequest} body
|
|
@@ -72,6 +78,11 @@ const PaymentPlatformModel = require("./PaymentPlatformModel");
|
|
|
72
78
|
|
|
73
79
|
/** @typedef GetMerchantPaymentOptionParam */
|
|
74
80
|
|
|
81
|
+
/**
|
|
82
|
+
* @typedef GetMerchantRefundPriorityParam
|
|
83
|
+
* @property {string} configType - Configuration for merchant or customer
|
|
84
|
+
*/
|
|
85
|
+
|
|
75
86
|
/** @typedef GetPGConfigAggregatorsParam */
|
|
76
87
|
|
|
77
88
|
/** @typedef GetPaymentCodeOptionParam */
|
|
@@ -192,6 +203,12 @@ const PaymentPlatformModel = require("./PaymentPlatformModel");
|
|
|
192
203
|
* @property {PaymentPlatformModel.EdcAddRequest} body
|
|
193
204
|
*/
|
|
194
205
|
|
|
206
|
+
/**
|
|
207
|
+
* @typedef UpdateMerchantRefundPriorityParam
|
|
208
|
+
* @property {string} configType - Configuration for merchant or customer
|
|
209
|
+
* @property {PaymentPlatformModel.RefundPriorityRequestSerializer} body
|
|
210
|
+
*/
|
|
211
|
+
|
|
195
212
|
/**
|
|
196
213
|
* @typedef UpdatePaymentSessionParam
|
|
197
214
|
* @property {string} gid - Global identifier of the entity (e.g. order, cart
|
|
@@ -252,6 +269,14 @@ class PaymentPlatformApplicationValidator {
|
|
|
252
269
|
}).required();
|
|
253
270
|
}
|
|
254
271
|
|
|
272
|
+
/** @returns {CreateMerchantRefundPriorityParam} */
|
|
273
|
+
static createMerchantRefundPriority() {
|
|
274
|
+
return Joi.object({
|
|
275
|
+
configType: Joi.string().allow("").required(),
|
|
276
|
+
body: PaymentPlatformModel.RefundPriorityRequestSerializer().required(),
|
|
277
|
+
}).required();
|
|
278
|
+
}
|
|
279
|
+
|
|
255
280
|
/** @returns {CreatePaymentLinkParam} */
|
|
256
281
|
static createPaymentLink() {
|
|
257
282
|
return Joi.object({
|
|
@@ -317,6 +342,13 @@ class PaymentPlatformApplicationValidator {
|
|
|
317
342
|
return Joi.object({}).required();
|
|
318
343
|
}
|
|
319
344
|
|
|
345
|
+
/** @returns {GetMerchantRefundPriorityParam} */
|
|
346
|
+
static getMerchantRefundPriority() {
|
|
347
|
+
return Joi.object({
|
|
348
|
+
configType: Joi.string().allow("").required(),
|
|
349
|
+
}).required();
|
|
350
|
+
}
|
|
351
|
+
|
|
320
352
|
/** @returns {GetPGConfigAggregatorsParam} */
|
|
321
353
|
static getPGConfigAggregators() {
|
|
322
354
|
return Joi.object({}).required();
|
|
@@ -479,6 +511,14 @@ class PaymentPlatformApplicationValidator {
|
|
|
479
511
|
}).required();
|
|
480
512
|
}
|
|
481
513
|
|
|
514
|
+
/** @returns {UpdateMerchantRefundPriorityParam} */
|
|
515
|
+
static updateMerchantRefundPriority() {
|
|
516
|
+
return Joi.object({
|
|
517
|
+
configType: Joi.string().allow("").required(),
|
|
518
|
+
body: PaymentPlatformModel.RefundPriorityRequestSerializer().required(),
|
|
519
|
+
}).required();
|
|
520
|
+
}
|
|
521
|
+
|
|
482
522
|
/** @returns {UpdatePaymentSessionParam} */
|
|
483
523
|
static updatePaymentSession() {
|
|
484
524
|
return Joi.object({
|
|
@@ -710,6 +710,19 @@ export = PaymentPlatformModel;
|
|
|
710
710
|
* @property {string} message - Response message
|
|
711
711
|
* @property {boolean} success - Success or failure flag.
|
|
712
712
|
*/
|
|
713
|
+
/**
|
|
714
|
+
* @typedef RefundPriorityRequestSerializer
|
|
715
|
+
* @property {boolean} apportion - Apportion refund to multiple sources
|
|
716
|
+
* @property {RefundSourcesPriority[]} refund_sources_priority - Refund sources priority
|
|
717
|
+
*/
|
|
718
|
+
/**
|
|
719
|
+
* @typedef RefundPriorityResponseSerializer
|
|
720
|
+
* @property {boolean} apportion - Apportion refund to multiple sources
|
|
721
|
+
* @property {string} configuration - Configuration for merchant or customer
|
|
722
|
+
* @property {string} [message] - Message
|
|
723
|
+
* @property {RefundSourcesPriority[]} refund_sources_priority - Refund sources priority
|
|
724
|
+
* @property {boolean} success - Success
|
|
725
|
+
*/
|
|
713
726
|
/**
|
|
714
727
|
* @typedef RefundSessionDetail
|
|
715
728
|
* @property {number} amount - Amount refunded.
|
|
@@ -748,6 +761,12 @@ export = PaymentPlatformModel;
|
|
|
748
761
|
* @property {string} status - The status of the refund.
|
|
749
762
|
* @property {number} total_refund_amount - The total amount refunded.
|
|
750
763
|
*/
|
|
764
|
+
/**
|
|
765
|
+
* @typedef RefundSourcesPriority
|
|
766
|
+
* @property {string} description - Description of refund source
|
|
767
|
+
* @property {number} priority - Priority of refund source, 0 being highest
|
|
768
|
+
* @property {string} source - Source of refund
|
|
769
|
+
*/
|
|
751
770
|
/**
|
|
752
771
|
* @typedef RepaymentDetailsSerialiserPayAll
|
|
753
772
|
* @property {string} aggregator_order_id - Id of payment gateway
|
|
@@ -878,7 +897,7 @@ export = PaymentPlatformModel;
|
|
|
878
897
|
declare class PaymentPlatformModel {
|
|
879
898
|
}
|
|
880
899
|
declare namespace PaymentPlatformModel {
|
|
881
|
-
export { AddBeneficiaryDetailsOTPRequest, AddressDetail, BankDetailsForOTP, CancelOrResendPaymentLinkRequest, CancelPaymentLinkResponse, CODChargesLimitsResponse, CODdata, Code, CreatePaymentLinkMeta, CreatePaymentLinkRequest, CreatePaymentLinkResponse, DeletePayoutResponse, DeleteSubscriptionPaymentMethodResponse, EdcAddRequest, EdcAggregatorAndModelListResponse, EdcDevice, EdcDeviceAddResponse, EdcDeviceDetailsResponse, EdcDeviceListResponse, EdcDeviceStatsResponse, EdcDeviceUpdateResponse, EdcModelData, EdcUpdateRequest, ErrorCodeAndDescription, ErrorCodeDescription, ErrorDescription, ErrorResponse, GetOauthUrlResponse, GetPaymentCode, GetPaymentCodeResponse, GetPaymentLinkResponse, GetUserCODLimitResponse, HttpErrorCodeAndResponse, IfscCodeResponse, IntentApp, IntentAppErrorList, LinkStatus, MerchantOnBoardingRequest, MerchantOnBoardingResponse, MerchnatPaymentModeRequest, MerchnatPaymentModeResponse, MultiTenderPaymentMeta, MultiTenderPaymentMethod, NotFoundResourceError, OrderBeneficiaryDetails, OrderBeneficiaryResponse, OrderDetail, Page, PaymentCode, PaymentConfirmationRequest, PaymentConfirmationResponse, PaymentGatewayConfig, PaymentGatewayConfigRequest, PaymentGatewayConfigResponse, PaymentGatewayToBeReviewed, PaymentInitializationRequest, PaymentInitializationResponse, PaymentModeList, PaymentModeLogo, PaymentObjectListSerializer, PaymentOptions, PaymentOptionsResponse, PaymentSessionDetail, PaymentSessionRequestSerializer, PaymentSessionResponseSerializer, PaymentStatusBulkHandlerRequest, PaymentStatusBulkHandlerResponse, PaymentStatusObject, PaymentStatusUpdateRequest, PaymentStatusUpdateResponse, Payout, PayoutAggregator, PayoutBankDetails, PayoutCustomer, PayoutMoreAttributes, PayoutRequest, PayoutResponse, PayoutsResponse, PollingPaymentLinkResponse, ProductCODData, RefundAccountResponse, RefundSessionDetail, RefundSessionRequestSerializer, RefundSessionResponseSerializer, RepaymentDetailsSerialiserPayAll, RepaymentRequestDetails, RepaymentResponse, ResendOrCancelPaymentRequest, ResendOrCancelPaymentResponse, ResendPaymentLinkResponse, RevokeOAuthToken, RootPaymentMode, SaveSubscriptionSetupIntentRequest, SaveSubscriptionSetupIntentResponse, SetCODForUserRequest, SetCODOptionResponse, StatisticsData, SubscriptionConfigResponse, SubscriptionPaymentMethodResponse, UpdatePayoutRequest, UpdatePayoutResponse, ValidateCustomerRequest, ValidateCustomerResponse };
|
|
900
|
+
export { AddBeneficiaryDetailsOTPRequest, AddressDetail, BankDetailsForOTP, CancelOrResendPaymentLinkRequest, CancelPaymentLinkResponse, CODChargesLimitsResponse, CODdata, Code, CreatePaymentLinkMeta, CreatePaymentLinkRequest, CreatePaymentLinkResponse, DeletePayoutResponse, DeleteSubscriptionPaymentMethodResponse, EdcAddRequest, EdcAggregatorAndModelListResponse, EdcDevice, EdcDeviceAddResponse, EdcDeviceDetailsResponse, EdcDeviceListResponse, EdcDeviceStatsResponse, EdcDeviceUpdateResponse, EdcModelData, EdcUpdateRequest, ErrorCodeAndDescription, ErrorCodeDescription, ErrorDescription, ErrorResponse, GetOauthUrlResponse, GetPaymentCode, GetPaymentCodeResponse, GetPaymentLinkResponse, GetUserCODLimitResponse, HttpErrorCodeAndResponse, IfscCodeResponse, IntentApp, IntentAppErrorList, LinkStatus, MerchantOnBoardingRequest, MerchantOnBoardingResponse, MerchnatPaymentModeRequest, MerchnatPaymentModeResponse, MultiTenderPaymentMeta, MultiTenderPaymentMethod, NotFoundResourceError, OrderBeneficiaryDetails, OrderBeneficiaryResponse, OrderDetail, Page, PaymentCode, PaymentConfirmationRequest, PaymentConfirmationResponse, PaymentGatewayConfig, PaymentGatewayConfigRequest, PaymentGatewayConfigResponse, PaymentGatewayToBeReviewed, PaymentInitializationRequest, PaymentInitializationResponse, PaymentModeList, PaymentModeLogo, PaymentObjectListSerializer, PaymentOptions, PaymentOptionsResponse, PaymentSessionDetail, PaymentSessionRequestSerializer, PaymentSessionResponseSerializer, PaymentStatusBulkHandlerRequest, PaymentStatusBulkHandlerResponse, PaymentStatusObject, PaymentStatusUpdateRequest, PaymentStatusUpdateResponse, Payout, PayoutAggregator, PayoutBankDetails, PayoutCustomer, PayoutMoreAttributes, PayoutRequest, PayoutResponse, PayoutsResponse, PollingPaymentLinkResponse, ProductCODData, RefundAccountResponse, RefundPriorityRequestSerializer, RefundPriorityResponseSerializer, RefundSessionDetail, RefundSessionRequestSerializer, RefundSessionResponseSerializer, RefundSourcesPriority, RepaymentDetailsSerialiserPayAll, RepaymentRequestDetails, RepaymentResponse, ResendOrCancelPaymentRequest, ResendOrCancelPaymentResponse, ResendPaymentLinkResponse, RevokeOAuthToken, RootPaymentMode, SaveSubscriptionSetupIntentRequest, SaveSubscriptionSetupIntentResponse, SetCODForUserRequest, SetCODOptionResponse, StatisticsData, SubscriptionConfigResponse, SubscriptionPaymentMethodResponse, UpdatePayoutRequest, UpdatePayoutResponse, ValidateCustomerRequest, ValidateCustomerResponse };
|
|
882
901
|
}
|
|
883
902
|
/** @returns {AddBeneficiaryDetailsOTPRequest} */
|
|
884
903
|
declare function AddBeneficiaryDetailsOTPRequest(): AddBeneficiaryDetailsOTPRequest;
|
|
@@ -2791,6 +2810,42 @@ type RefundAccountResponse = {
|
|
|
2791
2810
|
*/
|
|
2792
2811
|
success: boolean;
|
|
2793
2812
|
};
|
|
2813
|
+
/** @returns {RefundPriorityRequestSerializer} */
|
|
2814
|
+
declare function RefundPriorityRequestSerializer(): RefundPriorityRequestSerializer;
|
|
2815
|
+
type RefundPriorityRequestSerializer = {
|
|
2816
|
+
/**
|
|
2817
|
+
* - Apportion refund to multiple sources
|
|
2818
|
+
*/
|
|
2819
|
+
apportion: boolean;
|
|
2820
|
+
/**
|
|
2821
|
+
* - Refund sources priority
|
|
2822
|
+
*/
|
|
2823
|
+
refund_sources_priority: RefundSourcesPriority[];
|
|
2824
|
+
};
|
|
2825
|
+
/** @returns {RefundPriorityResponseSerializer} */
|
|
2826
|
+
declare function RefundPriorityResponseSerializer(): RefundPriorityResponseSerializer;
|
|
2827
|
+
type RefundPriorityResponseSerializer = {
|
|
2828
|
+
/**
|
|
2829
|
+
* - Apportion refund to multiple sources
|
|
2830
|
+
*/
|
|
2831
|
+
apportion: boolean;
|
|
2832
|
+
/**
|
|
2833
|
+
* - Configuration for merchant or customer
|
|
2834
|
+
*/
|
|
2835
|
+
configuration: string;
|
|
2836
|
+
/**
|
|
2837
|
+
* - Message
|
|
2838
|
+
*/
|
|
2839
|
+
message?: string;
|
|
2840
|
+
/**
|
|
2841
|
+
* - Refund sources priority
|
|
2842
|
+
*/
|
|
2843
|
+
refund_sources_priority: RefundSourcesPriority[];
|
|
2844
|
+
/**
|
|
2845
|
+
* - Success
|
|
2846
|
+
*/
|
|
2847
|
+
success: boolean;
|
|
2848
|
+
};
|
|
2794
2849
|
/** @returns {RefundSessionDetail} */
|
|
2795
2850
|
declare function RefundSessionDetail(): RefundSessionDetail;
|
|
2796
2851
|
type RefundSessionDetail = {
|
|
@@ -2901,6 +2956,22 @@ type RefundSessionResponseSerializer = {
|
|
|
2901
2956
|
*/
|
|
2902
2957
|
total_refund_amount: number;
|
|
2903
2958
|
};
|
|
2959
|
+
/** @returns {RefundSourcesPriority} */
|
|
2960
|
+
declare function RefundSourcesPriority(): RefundSourcesPriority;
|
|
2961
|
+
type RefundSourcesPriority = {
|
|
2962
|
+
/**
|
|
2963
|
+
* - Description of refund source
|
|
2964
|
+
*/
|
|
2965
|
+
description: string;
|
|
2966
|
+
/**
|
|
2967
|
+
* - Priority of refund source, 0 being highest
|
|
2968
|
+
*/
|
|
2969
|
+
priority: number;
|
|
2970
|
+
/**
|
|
2971
|
+
* - Source of refund
|
|
2972
|
+
*/
|
|
2973
|
+
source: string;
|
|
2974
|
+
};
|
|
2904
2975
|
/** @returns {RepaymentDetailsSerialiserPayAll} */
|
|
2905
2976
|
declare function RepaymentDetailsSerialiserPayAll(): RepaymentDetailsSerialiserPayAll;
|
|
2906
2977
|
type RepaymentDetailsSerialiserPayAll = {
|
|
@@ -792,6 +792,21 @@ const Joi = require("joi");
|
|
|
792
792
|
* @property {boolean} success - Success or failure flag.
|
|
793
793
|
*/
|
|
794
794
|
|
|
795
|
+
/**
|
|
796
|
+
* @typedef RefundPriorityRequestSerializer
|
|
797
|
+
* @property {boolean} apportion - Apportion refund to multiple sources
|
|
798
|
+
* @property {RefundSourcesPriority[]} refund_sources_priority - Refund sources priority
|
|
799
|
+
*/
|
|
800
|
+
|
|
801
|
+
/**
|
|
802
|
+
* @typedef RefundPriorityResponseSerializer
|
|
803
|
+
* @property {boolean} apportion - Apportion refund to multiple sources
|
|
804
|
+
* @property {string} configuration - Configuration for merchant or customer
|
|
805
|
+
* @property {string} [message] - Message
|
|
806
|
+
* @property {RefundSourcesPriority[]} refund_sources_priority - Refund sources priority
|
|
807
|
+
* @property {boolean} success - Success
|
|
808
|
+
*/
|
|
809
|
+
|
|
795
810
|
/**
|
|
796
811
|
* @typedef RefundSessionDetail
|
|
797
812
|
* @property {number} amount - Amount refunded.
|
|
@@ -833,6 +848,13 @@ const Joi = require("joi");
|
|
|
833
848
|
* @property {number} total_refund_amount - The total amount refunded.
|
|
834
849
|
*/
|
|
835
850
|
|
|
851
|
+
/**
|
|
852
|
+
* @typedef RefundSourcesPriority
|
|
853
|
+
* @property {string} description - Description of refund source
|
|
854
|
+
* @property {number} priority - Priority of refund source, 0 being highest
|
|
855
|
+
* @property {string} source - Source of refund
|
|
856
|
+
*/
|
|
857
|
+
|
|
836
858
|
/**
|
|
837
859
|
* @typedef RepaymentDetailsSerialiserPayAll
|
|
838
860
|
* @property {string} aggregator_order_id - Id of payment gateway
|
|
@@ -1922,6 +1944,29 @@ class PaymentPlatformModel {
|
|
|
1922
1944
|
});
|
|
1923
1945
|
}
|
|
1924
1946
|
|
|
1947
|
+
/** @returns {RefundPriorityRequestSerializer} */
|
|
1948
|
+
static RefundPriorityRequestSerializer() {
|
|
1949
|
+
return Joi.object({
|
|
1950
|
+
apportion: Joi.boolean().required(),
|
|
1951
|
+
refund_sources_priority: Joi.array()
|
|
1952
|
+
.items(PaymentPlatformModel.RefundSourcesPriority())
|
|
1953
|
+
.required(),
|
|
1954
|
+
});
|
|
1955
|
+
}
|
|
1956
|
+
|
|
1957
|
+
/** @returns {RefundPriorityResponseSerializer} */
|
|
1958
|
+
static RefundPriorityResponseSerializer() {
|
|
1959
|
+
return Joi.object({
|
|
1960
|
+
apportion: Joi.boolean().required(),
|
|
1961
|
+
configuration: Joi.string().allow("").required(),
|
|
1962
|
+
message: Joi.string().allow(""),
|
|
1963
|
+
refund_sources_priority: Joi.array()
|
|
1964
|
+
.items(PaymentPlatformModel.RefundSourcesPriority())
|
|
1965
|
+
.required(),
|
|
1966
|
+
success: Joi.boolean().required(),
|
|
1967
|
+
});
|
|
1968
|
+
}
|
|
1969
|
+
|
|
1925
1970
|
/** @returns {RefundSessionDetail} */
|
|
1926
1971
|
static RefundSessionDetail() {
|
|
1927
1972
|
return Joi.object({
|
|
@@ -1965,6 +2010,15 @@ class PaymentPlatformModel {
|
|
|
1965
2010
|
});
|
|
1966
2011
|
}
|
|
1967
2012
|
|
|
2013
|
+
/** @returns {RefundSourcesPriority} */
|
|
2014
|
+
static RefundSourcesPriority() {
|
|
2015
|
+
return Joi.object({
|
|
2016
|
+
description: Joi.string().allow("").required(),
|
|
2017
|
+
priority: Joi.number().required(),
|
|
2018
|
+
source: Joi.string().allow("").required(),
|
|
2019
|
+
});
|
|
2020
|
+
}
|
|
2021
|
+
|
|
1968
2022
|
/** @returns {RepaymentDetailsSerialiserPayAll} */
|
|
1969
2023
|
static RepaymentDetailsSerialiserPayAll() {
|
|
1970
2024
|
return Joi.object({
|
|
@@ -181,6 +181,18 @@ declare class User {
|
|
|
181
181
|
* @description: Use this API to update an existing user Group - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/user/updateUserGroup/).
|
|
182
182
|
*/
|
|
183
183
|
updateUserGroup({ groupId, body, requestHeaders }?: UserPlatformApplicationValidator.UpdateUserGroupParam, { responseHeaders }?: object): Promise<UserPlatformModel.UserGroupResponseSchema>;
|
|
184
|
+
/**
|
|
185
|
+
* @param {UserPlatformApplicationValidator.UpdateUserGroupPartiallyParam} arg
|
|
186
|
+
* - Arg object
|
|
187
|
+
*
|
|
188
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
189
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
190
|
+
* @returns {Promise<UserPlatformModel.UserGroupResponseSchema>} - Success response
|
|
191
|
+
* @name updateUserGroupPartially
|
|
192
|
+
* @summary: Add or Remove an user from particular user group and update user group details
|
|
193
|
+
* @description: Use this API to update user group details and add or remove an user to the user group. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/user/updateUserGroupPartially/).
|
|
194
|
+
*/
|
|
195
|
+
updateUserGroupPartially({ groupId, body, requestHeaders }?: UserPlatformApplicationValidator.UpdateUserGroupPartiallyParam, { responseHeaders }?: object): Promise<UserPlatformModel.UserGroupResponseSchema>;
|
|
184
196
|
}
|
|
185
197
|
import UserPlatformApplicationValidator = require("./UserPlatformApplicationValidator");
|
|
186
198
|
import UserPlatformModel = require("./UserPlatformModel");
|
|
@@ -1316,6 +1316,85 @@ class User {
|
|
|
1316
1316
|
|
|
1317
1317
|
return response;
|
|
1318
1318
|
}
|
|
1319
|
+
|
|
1320
|
+
/**
|
|
1321
|
+
* @param {UserPlatformApplicationValidator.UpdateUserGroupPartiallyParam} arg
|
|
1322
|
+
* - Arg object
|
|
1323
|
+
*
|
|
1324
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1325
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1326
|
+
* @returns {Promise<UserPlatformModel.UserGroupResponseSchema>} - Success response
|
|
1327
|
+
* @name updateUserGroupPartially
|
|
1328
|
+
* @summary: Add or Remove an user from particular user group and update user group details
|
|
1329
|
+
* @description: Use this API to update user group details and add or remove an user to the user group. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/user/updateUserGroupPartially/).
|
|
1330
|
+
*/
|
|
1331
|
+
async updateUserGroupPartially(
|
|
1332
|
+
{ groupId, body, requestHeaders } = { requestHeaders: {} },
|
|
1333
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
1334
|
+
) {
|
|
1335
|
+
const {
|
|
1336
|
+
error,
|
|
1337
|
+
} = UserPlatformApplicationValidator.updateUserGroupPartially().validate(
|
|
1338
|
+
{
|
|
1339
|
+
groupId,
|
|
1340
|
+
body,
|
|
1341
|
+
},
|
|
1342
|
+
{ abortEarly: false, allowUnknown: true }
|
|
1343
|
+
);
|
|
1344
|
+
if (error) {
|
|
1345
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
1346
|
+
}
|
|
1347
|
+
|
|
1348
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1349
|
+
const {
|
|
1350
|
+
error: warrning,
|
|
1351
|
+
} = UserPlatformApplicationValidator.updateUserGroupPartially().validate(
|
|
1352
|
+
{
|
|
1353
|
+
groupId,
|
|
1354
|
+
body,
|
|
1355
|
+
},
|
|
1356
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1357
|
+
);
|
|
1358
|
+
if (warrning) {
|
|
1359
|
+
Logger({
|
|
1360
|
+
level: "WARN",
|
|
1361
|
+
message: `Parameter Validation warrnings for platform > User > updateUserGroupPartially \n ${warrning}`,
|
|
1362
|
+
});
|
|
1363
|
+
}
|
|
1364
|
+
|
|
1365
|
+
const query_params = {};
|
|
1366
|
+
|
|
1367
|
+
const response = await PlatformAPIClient.execute(
|
|
1368
|
+
this.config,
|
|
1369
|
+
"patch",
|
|
1370
|
+
`/service/platform/user/v1.0/company/${this.config.companyId}/application/${this.applicationId}/user_group/${groupId}`,
|
|
1371
|
+
query_params,
|
|
1372
|
+
body,
|
|
1373
|
+
requestHeaders,
|
|
1374
|
+
{ responseHeaders }
|
|
1375
|
+
);
|
|
1376
|
+
|
|
1377
|
+
let responseData = response;
|
|
1378
|
+
if (responseHeaders) {
|
|
1379
|
+
responseData = response[0];
|
|
1380
|
+
}
|
|
1381
|
+
|
|
1382
|
+
const {
|
|
1383
|
+
error: res_error,
|
|
1384
|
+
} = UserPlatformModel.UserGroupResponseSchema().validate(responseData, {
|
|
1385
|
+
abortEarly: false,
|
|
1386
|
+
allowUnknown: false,
|
|
1387
|
+
});
|
|
1388
|
+
|
|
1389
|
+
if (res_error) {
|
|
1390
|
+
Logger({
|
|
1391
|
+
level: "WARN",
|
|
1392
|
+
message: `Response Validation Warnnings for platform > User > updateUserGroupPartially \n ${res_error}`,
|
|
1393
|
+
});
|
|
1394
|
+
}
|
|
1395
|
+
|
|
1396
|
+
return response;
|
|
1397
|
+
}
|
|
1319
1398
|
}
|
|
1320
1399
|
|
|
1321
1400
|
module.exports = User;
|
|
@@ -80,6 +80,11 @@ export = UserPlatformApplicationValidator;
|
|
|
80
80
|
* @property {string} groupId - Numeric ID allotted to a User Group
|
|
81
81
|
* @property {UserPlatformModel.UpdateUserGroupSchema} body
|
|
82
82
|
*/
|
|
83
|
+
/**
|
|
84
|
+
* @typedef UpdateUserGroupPartiallyParam
|
|
85
|
+
* @property {string} groupId - Numeric ID allotted to a User Group
|
|
86
|
+
* @property {UserPlatformModel.PartialUserGroupUpdateSchema} body
|
|
87
|
+
*/
|
|
83
88
|
declare class UserPlatformApplicationValidator {
|
|
84
89
|
/** @returns {ArchiveUserParam} */
|
|
85
90
|
static archiveUser(): ArchiveUserParam;
|
|
@@ -115,9 +120,11 @@ declare class UserPlatformApplicationValidator {
|
|
|
115
120
|
static updateUser(): UpdateUserParam;
|
|
116
121
|
/** @returns {UpdateUserGroupParam} */
|
|
117
122
|
static updateUserGroup(): UpdateUserGroupParam;
|
|
123
|
+
/** @returns {UpdateUserGroupPartiallyParam} */
|
|
124
|
+
static updateUserGroupPartially(): UpdateUserGroupPartiallyParam;
|
|
118
125
|
}
|
|
119
126
|
declare namespace UserPlatformApplicationValidator {
|
|
120
|
-
export { ArchiveUserParam, BlockOrUnblockUsersParam, CreateUserParam, CreateUserGroupParam, CreateUserSessionParam, DeleteActiveSessionsParam, DeleteSessionParam, GetActiveSessionsParam, GetCustomersParam, GetPlatformConfigParam, GetUserGroupByIdParam, GetUserGroupsParam, SearchUsersParam, UnDeleteUserParam, UpdatePlatformConfigParam, UpdateUserParam, UpdateUserGroupParam };
|
|
127
|
+
export { ArchiveUserParam, BlockOrUnblockUsersParam, CreateUserParam, CreateUserGroupParam, CreateUserSessionParam, DeleteActiveSessionsParam, DeleteSessionParam, GetActiveSessionsParam, GetCustomersParam, GetPlatformConfigParam, GetUserGroupByIdParam, GetUserGroupsParam, SearchUsersParam, UnDeleteUserParam, UpdatePlatformConfigParam, UpdateUserParam, UpdateUserGroupParam, UpdateUserGroupPartiallyParam };
|
|
121
128
|
}
|
|
122
129
|
type ArchiveUserParam = {
|
|
123
130
|
body: UserPlatformModel.ArchiveUserRequestSchema;
|
|
@@ -240,5 +247,12 @@ type UpdateUserGroupParam = {
|
|
|
240
247
|
groupId: string;
|
|
241
248
|
body: UserPlatformModel.UpdateUserGroupSchema;
|
|
242
249
|
};
|
|
250
|
+
type UpdateUserGroupPartiallyParam = {
|
|
251
|
+
/**
|
|
252
|
+
* - Numeric ID allotted to a User Group
|
|
253
|
+
*/
|
|
254
|
+
groupId: string;
|
|
255
|
+
body: UserPlatformModel.PartialUserGroupUpdateSchema;
|
|
256
|
+
};
|
|
243
257
|
type GetPlatformConfigParam = any;
|
|
244
258
|
import UserPlatformModel = require("./UserPlatformModel");
|
|
@@ -100,6 +100,12 @@ const UserPlatformModel = require("./UserPlatformModel");
|
|
|
100
100
|
* @property {UserPlatformModel.UpdateUserGroupSchema} body
|
|
101
101
|
*/
|
|
102
102
|
|
|
103
|
+
/**
|
|
104
|
+
* @typedef UpdateUserGroupPartiallyParam
|
|
105
|
+
* @property {string} groupId - Numeric ID allotted to a User Group
|
|
106
|
+
* @property {UserPlatformModel.PartialUserGroupUpdateSchema} body
|
|
107
|
+
*/
|
|
108
|
+
|
|
103
109
|
class UserPlatformApplicationValidator {
|
|
104
110
|
/** @returns {ArchiveUserParam} */
|
|
105
111
|
static archiveUser() {
|
|
@@ -229,6 +235,14 @@ class UserPlatformApplicationValidator {
|
|
|
229
235
|
body: UserPlatformModel.UpdateUserGroupSchema().required(),
|
|
230
236
|
}).required();
|
|
231
237
|
}
|
|
238
|
+
|
|
239
|
+
/** @returns {UpdateUserGroupPartiallyParam} */
|
|
240
|
+
static updateUserGroupPartially() {
|
|
241
|
+
return Joi.object({
|
|
242
|
+
groupId: Joi.string().allow("").required(),
|
|
243
|
+
body: UserPlatformModel.PartialUserGroupUpdateSchema().required(),
|
|
244
|
+
}).required();
|
|
245
|
+
}
|
|
232
246
|
}
|
|
233
247
|
|
|
234
248
|
module.exports = UserPlatformApplicationValidator;
|
|
@@ -117,6 +117,20 @@ export = UserPlatformModel;
|
|
|
117
117
|
* @property {number} [size]
|
|
118
118
|
* @property {string} [type]
|
|
119
119
|
*/
|
|
120
|
+
/**
|
|
121
|
+
* @typedef PartialUserGroupUpdateSchema
|
|
122
|
+
* @property {string} [description]
|
|
123
|
+
* @property {string} [file_url] - Required property when passed type file_url.
|
|
124
|
+
* Internet reachable csv file url which will be used to fetch download data.
|
|
125
|
+
* It must have one of columns from `phone_number``, `email`, `user_id` and
|
|
126
|
+
* must have `action` column. `action` column can have `add` or `remove` value.
|
|
127
|
+
* @property {string} [name]
|
|
128
|
+
* @property {string} [type] - Source of update to be used to update individual
|
|
129
|
+
* users. Default value is considered file_url if not passed.
|
|
130
|
+
* @property {UserGroupUpdateData[]} [user_data] - Required property when passed
|
|
131
|
+
* type json. Array of user data. Must have `action` field and one of
|
|
132
|
+
* `phone_number`, `email` or `user_id` field in object
|
|
133
|
+
*/
|
|
120
134
|
/**
|
|
121
135
|
* @typedef PhoneNumber
|
|
122
136
|
* @property {boolean} [active]
|
|
@@ -269,6 +283,13 @@ export = UserPlatformModel;
|
|
|
269
283
|
* @property {string} [status]
|
|
270
284
|
* @property {number} [uid]
|
|
271
285
|
*/
|
|
286
|
+
/**
|
|
287
|
+
* @typedef UserGroupUpdateData
|
|
288
|
+
* @property {string} action
|
|
289
|
+
* @property {string} [email] - Email of registered user
|
|
290
|
+
* @property {string} [phone_number] - Phone number of registered user
|
|
291
|
+
* @property {string} [user_id] - Must be valid mongodb objectid of existing user
|
|
292
|
+
*/
|
|
272
293
|
/**
|
|
273
294
|
* @typedef UserPhoneNumbers
|
|
274
295
|
* @property {boolean} [active]
|
|
@@ -303,7 +324,7 @@ export = UserPlatformModel;
|
|
|
303
324
|
declare class UserPlatformModel {
|
|
304
325
|
}
|
|
305
326
|
declare namespace UserPlatformModel {
|
|
306
|
-
export { Accountkit, ArchiveUserRequestSchema, ArchiveUserSuccess, AuthenticationApiErrorSchema, BlockUserRequestSchema, BlockUserSuccess, CreateUserGroupSchema, CreateUserRequestSchema, CreateUserResponseSchema, CreateUserSessionRequestSchema, CreateUserSessionResponseSchema, CustomerListResponseSchema, DeleteAccountConsent, DeleteAccountReasons, Email, Facebook, FlashCard, Google, Login, LookAndFeel, MetaSchema, PaginationSchema, PhoneNumber, PlatformEmail, PlatformMobile, PlatformSchema, RegisterRequiredFields, RegisterRequiredFieldsEmail, RegisterRequiredFieldsMobile, RequiredFields, SessionDeleteResponseSchema, SessionExpiry, SessionListResponseInfo, SessionListResponseSchema, Social, SocialTokens, UnDeleteUserRequestSchema, UnDeleteUserSuccess, UpdateUserGroupSchema, UpdateUserRequestSchema, UserEmails, UserGroupListResponseSchema, UserGroupResponseSchema, UserPhoneNumbers, UserSchema, UserSearchResponseSchema };
|
|
327
|
+
export { Accountkit, ArchiveUserRequestSchema, ArchiveUserSuccess, AuthenticationApiErrorSchema, BlockUserRequestSchema, BlockUserSuccess, CreateUserGroupSchema, CreateUserRequestSchema, CreateUserResponseSchema, CreateUserSessionRequestSchema, CreateUserSessionResponseSchema, CustomerListResponseSchema, DeleteAccountConsent, DeleteAccountReasons, Email, Facebook, FlashCard, Google, Login, LookAndFeel, MetaSchema, PaginationSchema, PartialUserGroupUpdateSchema, PhoneNumber, PlatformEmail, PlatformMobile, PlatformSchema, RegisterRequiredFields, RegisterRequiredFieldsEmail, RegisterRequiredFieldsMobile, RequiredFields, SessionDeleteResponseSchema, SessionExpiry, SessionListResponseInfo, SessionListResponseSchema, Social, SocialTokens, UnDeleteUserRequestSchema, UnDeleteUserSuccess, UpdateUserGroupSchema, UpdateUserRequestSchema, UserEmails, UserGroupListResponseSchema, UserGroupResponseSchema, UserGroupUpdateData, UserPhoneNumbers, UserSchema, UserSearchResponseSchema };
|
|
307
328
|
}
|
|
308
329
|
/** @returns {Accountkit} */
|
|
309
330
|
declare function Accountkit(): Accountkit;
|
|
@@ -445,6 +466,30 @@ type PaginationSchema = {
|
|
|
445
466
|
size?: number;
|
|
446
467
|
type?: string;
|
|
447
468
|
};
|
|
469
|
+
/** @returns {PartialUserGroupUpdateSchema} */
|
|
470
|
+
declare function PartialUserGroupUpdateSchema(): PartialUserGroupUpdateSchema;
|
|
471
|
+
type PartialUserGroupUpdateSchema = {
|
|
472
|
+
description?: string;
|
|
473
|
+
/**
|
|
474
|
+
* - Required property when passed type file_url.
|
|
475
|
+
* Internet reachable csv file url which will be used to fetch download data.
|
|
476
|
+
* It must have one of columns from `phone_number``, `email`, `user_id` and
|
|
477
|
+
* must have `action` column. `action` column can have `add` or `remove` value.
|
|
478
|
+
*/
|
|
479
|
+
file_url?: string;
|
|
480
|
+
name?: string;
|
|
481
|
+
/**
|
|
482
|
+
* - Source of update to be used to update individual
|
|
483
|
+
* users. Default value is considered file_url if not passed.
|
|
484
|
+
*/
|
|
485
|
+
type?: string;
|
|
486
|
+
/**
|
|
487
|
+
* - Required property when passed
|
|
488
|
+
* type json. Array of user data. Must have `action` field and one of
|
|
489
|
+
* `phone_number`, `email` or `user_id` field in object
|
|
490
|
+
*/
|
|
491
|
+
user_data?: UserGroupUpdateData[];
|
|
492
|
+
};
|
|
448
493
|
/** @returns {PhoneNumber} */
|
|
449
494
|
declare function PhoneNumber(): PhoneNumber;
|
|
450
495
|
type PhoneNumber = {
|
|
@@ -618,6 +663,23 @@ type UserGroupResponseSchema = {
|
|
|
618
663
|
status?: string;
|
|
619
664
|
uid?: number;
|
|
620
665
|
};
|
|
666
|
+
/** @returns {UserGroupUpdateData} */
|
|
667
|
+
declare function UserGroupUpdateData(): UserGroupUpdateData;
|
|
668
|
+
type UserGroupUpdateData = {
|
|
669
|
+
action: string;
|
|
670
|
+
/**
|
|
671
|
+
* - Email of registered user
|
|
672
|
+
*/
|
|
673
|
+
email?: string;
|
|
674
|
+
/**
|
|
675
|
+
* - Phone number of registered user
|
|
676
|
+
*/
|
|
677
|
+
phone_number?: string;
|
|
678
|
+
/**
|
|
679
|
+
* - Must be valid mongodb objectid of existing user
|
|
680
|
+
*/
|
|
681
|
+
user_id?: string;
|
|
682
|
+
};
|
|
621
683
|
/** @returns {UserPhoneNumbers} */
|
|
622
684
|
declare function UserPhoneNumbers(): UserPhoneNumbers;
|
|
623
685
|
type UserPhoneNumbers = {
|