@gofynd/fdk-client-javascript 0.1.35
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/.github/workflows/on_create_release.yml +23 -0
- package/.github/workflows/on_merge_main.yml +38 -0
- package/.github/workflows/on_pull_request.yml +35 -0
- package/.prettierrc +5 -0
- package/LICENSE +21 -0
- package/README.md +118 -0
- package/application.d.ts +3 -0
- package/application.js +6 -0
- package/common.d.ts +4 -0
- package/common.js +9 -0
- package/documentation/application/CART.md +7290 -0
- package/documentation/application/CATALOG.md +9570 -0
- package/documentation/application/COMMON.md +448 -0
- package/documentation/application/COMMUNICATION.md +463 -0
- package/documentation/application/CONFIGURATION.md +2902 -0
- package/documentation/application/CONTENT.md +3350 -0
- package/documentation/application/FILESTORAGE.md +491 -0
- package/documentation/application/LEAD.md +1891 -0
- package/documentation/application/LOGISTIC.md +439 -0
- package/documentation/application/ORDER.md +3428 -0
- package/documentation/application/PAYMENT.md +5035 -0
- package/documentation/application/POSCART.md +7889 -0
- package/documentation/application/README.md +21 -0
- package/documentation/application/REWARDS.md +714 -0
- package/documentation/application/SHARE.md +729 -0
- package/documentation/application/THEME.md +5796 -0
- package/documentation/application/USER.md +4326 -0
- package/documentation/platform/ANALYTICS.md +1150 -0
- package/documentation/platform/AUDITTRAIL.md +572 -0
- package/documentation/platform/BILLING.md +2396 -0
- package/documentation/platform/CART.md +5539 -0
- package/documentation/platform/CATALOG.md +21624 -0
- package/documentation/platform/COMMON.md +448 -0
- package/documentation/platform/COMMUNICATION.md +5714 -0
- package/documentation/platform/COMPANYPROFILE.md +2141 -0
- package/documentation/platform/CONFIGURATION.md +7335 -0
- package/documentation/platform/CONTENT.md +8989 -0
- package/documentation/platform/DISCOUNT.md +773 -0
- package/documentation/platform/FILESTORAGE.md +994 -0
- package/documentation/platform/INVENTORY.md +1775 -0
- package/documentation/platform/LEAD.md +4736 -0
- package/documentation/platform/ORDER.md +3764 -0
- package/documentation/platform/PARTNER.md +216 -0
- package/documentation/platform/PAYMENT.md +3444 -0
- package/documentation/platform/README.md +27 -0
- package/documentation/platform/REWARDS.md +871 -0
- package/documentation/platform/SHARE.md +602 -0
- package/documentation/platform/THEME.md +35725 -0
- package/documentation/platform/USER.md +2305 -0
- package/documentation/platform/WEBHOOK.md +587 -0
- package/documentation/public/CONFIGURATION.md +448 -0
- package/documentation/public/INVENTORY.md +686 -0
- package/documentation/public/WEBHOOK.md +348 -0
- package/index.d.ts +10 -0
- package/index.js +18 -0
- package/jest.config.d.ts +4 -0
- package/jest.config.js +6 -0
- package/package.json +35 -0
- package/platform.d.ts +3 -0
- package/platform.js +6 -0
- package/public.d.ts +3 -0
- package/public.js +6 -0
- package/sdk/application/ApplicationAPIClient.d.ts +11 -0
- package/sdk/application/ApplicationAPIClient.js +44 -0
- package/sdk/application/ApplicationClient.d.ts +40 -0
- package/sdk/application/ApplicationClient.js +84 -0
- package/sdk/application/ApplicationConfig.d.ts +19 -0
- package/sdk/application/ApplicationConfig.js +55 -0
- package/sdk/application/ApplicationModels.d.ts +826 -0
- package/sdk/application/ApplicationModels.js +10474 -0
- package/sdk/application/client/CartApplicationClient.d.ts +432 -0
- package/sdk/application/client/CartApplicationClient.js +1066 -0
- package/sdk/application/client/CatalogApplicationClient.d.ts +694 -0
- package/sdk/application/client/CatalogApplicationClient.js +1629 -0
- package/sdk/application/client/CommonApplicationClient.d.ts +38 -0
- package/sdk/application/client/CommonApplicationClient.js +105 -0
- package/sdk/application/client/CommunicationApplicationClient.d.ts +39 -0
- package/sdk/application/client/CommunicationApplicationClient.js +131 -0
- package/sdk/application/client/ConfigurationApplicationClient.d.ts +210 -0
- package/sdk/application/client/ConfigurationApplicationClient.js +649 -0
- package/sdk/application/client/ContentApplicationClient.d.ts +256 -0
- package/sdk/application/client/ContentApplicationClient.js +785 -0
- package/sdk/application/client/FileStorageApplicationClient.d.ts +88 -0
- package/sdk/application/client/FileStorageApplicationClient.js +214 -0
- package/sdk/application/client/LeadApplicationClient.d.ts +90 -0
- package/sdk/application/client/LeadApplicationClient.js +264 -0
- package/sdk/application/client/LogisticApplicationClient.d.ts +42 -0
- package/sdk/application/client/LogisticApplicationClient.js +128 -0
- package/sdk/application/client/OrderApplicationClient.d.ts +190 -0
- package/sdk/application/client/OrderApplicationClient.js +479 -0
- package/sdk/application/client/PaymentApplicationClient.d.ts +454 -0
- package/sdk/application/client/PaymentApplicationClient.js +1378 -0
- package/sdk/application/client/PosCartApplicationClient.d.ts +449 -0
- package/sdk/application/client/PosCartApplicationClient.js +1123 -0
- package/sdk/application/client/RewardsApplicationClient.d.ts +93 -0
- package/sdk/application/client/RewardsApplicationClient.js +293 -0
- package/sdk/application/client/ShareApplicationClient.d.ts +87 -0
- package/sdk/application/client/ShareApplicationClient.js +268 -0
- package/sdk/application/client/ThemeApplicationClient.d.ts +52 -0
- package/sdk/application/client/ThemeApplicationClient.js +161 -0
- package/sdk/application/client/UserApplicationClient.d.ts +446 -0
- package/sdk/application/client/UserApplicationClient.js +1275 -0
- package/sdk/application/constructUrl.d.ts +5 -0
- package/sdk/application/constructUrl.js +13 -0
- package/sdk/application/index.d.ts +2 -0
- package/sdk/application/index.js +4 -0
- package/sdk/application/models/CartValidator.d.ts +29 -0
- package/sdk/application/models/CartValidator.js +223 -0
- package/sdk/application/models/CatalogValidator.d.ts +33 -0
- package/sdk/application/models/CatalogValidator.js +233 -0
- package/sdk/application/models/CommonValidator.d.ts +5 -0
- package/sdk/application/models/CommonValidator.js +18 -0
- package/sdk/application/models/CommunicationValidator.d.ts +6 -0
- package/sdk/application/models/CommunicationValidator.js +20 -0
- package/sdk/application/models/ConfigurationValidator.d.ts +19 -0
- package/sdk/application/models/ConfigurationValidator.js +88 -0
- package/sdk/application/models/ContentValidator.d.ts +22 -0
- package/sdk/application/models/ContentValidator.js +106 -0
- package/sdk/application/models/FileStorageValidator.d.ts +6 -0
- package/sdk/application/models/FileStorageValidator.js +24 -0
- package/sdk/application/models/LeadValidator.d.ts +10 -0
- package/sdk/application/models/LeadValidator.js +48 -0
- package/sdk/application/models/LogisticValidator.d.ts +6 -0
- package/sdk/application/models/LogisticValidator.js +22 -0
- package/sdk/application/models/OrderValidator.d.ts +15 -0
- package/sdk/application/models/OrderValidator.js +87 -0
- package/sdk/application/models/PaymentValidator.d.ts +40 -0
- package/sdk/application/models/PaymentValidator.js +235 -0
- package/sdk/application/models/PosCartValidator.d.ts +30 -0
- package/sdk/application/models/PosCartValidator.js +232 -0
- package/sdk/application/models/RewardsValidator.d.ts +10 -0
- package/sdk/application/models/RewardsValidator.js +43 -0
- package/sdk/application/models/ShareValidator.d.ts +10 -0
- package/sdk/application/models/ShareValidator.js +44 -0
- package/sdk/application/models/ThemeValidator.d.ts +7 -0
- package/sdk/application/models/ThemeValidator.js +27 -0
- package/sdk/application/models/UserValidator.d.ts +38 -0
- package/sdk/application/models/UserValidator.js +233 -0
- package/sdk/common/AxiosHelper.d.ts +1 -0
- package/sdk/common/AxiosHelper.js +141 -0
- package/sdk/common/Constant.d.ts +294 -0
- package/sdk/common/Constant.js +332 -0
- package/sdk/common/FDKError.d.ts +26 -0
- package/sdk/common/FDKError.js +51 -0
- package/sdk/common/Logger.d.ts +2 -0
- package/sdk/common/Logger.js +85 -0
- package/sdk/common/Paginator.d.ts +16 -0
- package/sdk/common/Paginator.js +26 -0
- package/sdk/common/RequestSigner.d.ts +1 -0
- package/sdk/common/RequestSigner.js +306 -0
- package/sdk/common/Utility.d.ts +9 -0
- package/sdk/common/Utility.js +86 -0
- package/sdk/common/utils.d.ts +14 -0
- package/sdk/common/utils.js +165 -0
- package/sdk/platform/OAuthClient.d.ts +26 -0
- package/sdk/platform/OAuthClient.js +221 -0
- package/sdk/platform/PlatformAPIClient.d.ts +12 -0
- package/sdk/platform/PlatformAPIClient.js +43 -0
- package/sdk/platform/PlatformApplicationClient.d.ts +24398 -0
- package/sdk/platform/PlatformApplicationClient.js +23185 -0
- package/sdk/platform/PlatformApplicationModels.d.ts +333 -0
- package/sdk/platform/PlatformApplicationModels.js +21262 -0
- package/sdk/platform/PlatformClient.d.ts +9535 -0
- package/sdk/platform/PlatformClient.js +12336 -0
- package/sdk/platform/PlatformConfig.d.ts +29 -0
- package/sdk/platform/PlatformConfig.js +36 -0
- package/sdk/platform/PlatformModels.d.ts +1396 -0
- package/sdk/platform/PlatformModels.js +19222 -0
- package/sdk/platform/client/AnalyticsPlatformClient.d.ts +84 -0
- package/sdk/platform/client/AnalyticsPlatformClient.js +215 -0
- package/sdk/platform/client/AuditTrailPlatformClient.d.ts +38 -0
- package/sdk/platform/client/AuditTrailPlatformClient.js +133 -0
- package/sdk/platform/client/BillingPlatformClient.d.ts +109 -0
- package/sdk/platform/client/BillingPlatformClient.js +381 -0
- package/sdk/platform/client/CatalogPlatformClient.d.ts +806 -0
- package/sdk/platform/client/CatalogPlatformClient.js +2462 -0
- package/sdk/platform/client/CommonPlatformClient.d.ts +30 -0
- package/sdk/platform/client/CommonPlatformClient.js +84 -0
- package/sdk/platform/client/CommunicationPlatformClient.d.ts +26 -0
- package/sdk/platform/client/CommunicationPlatformClient.js +72 -0
- package/sdk/platform/client/CompanyProfilePlatformClient.d.ts +182 -0
- package/sdk/platform/client/CompanyProfilePlatformClient.js +540 -0
- package/sdk/platform/client/ConfigurationPlatformClient.d.ts +277 -0
- package/sdk/platform/client/ConfigurationPlatformClient.js +806 -0
- package/sdk/platform/client/DiscountPlatformClient.d.ts +118 -0
- package/sdk/platform/client/DiscountPlatformClient.js +364 -0
- package/sdk/platform/client/FileStoragePlatformClient.d.ts +111 -0
- package/sdk/platform/client/FileStoragePlatformClient.js +268 -0
- package/sdk/platform/client/InventoryPlatformClient.d.ts +125 -0
- package/sdk/platform/client/InventoryPlatformClient.js +409 -0
- package/sdk/platform/client/LeadPlatformClient.d.ts +150 -0
- package/sdk/platform/client/LeadPlatformClient.js +439 -0
- package/sdk/platform/client/OrderPlatformClient.d.ts +190 -0
- package/sdk/platform/client/OrderPlatformClient.js +521 -0
- package/sdk/platform/client/PaymentPlatformClient.d.ts +98 -0
- package/sdk/platform/client/PaymentPlatformClient.js +331 -0
- package/sdk/platform/client/WebhookPlatformClient.d.ts +64 -0
- package/sdk/platform/client/WebhookPlatformClient.js +207 -0
- package/sdk/platform/index.d.ts +2 -0
- package/sdk/platform/index.js +4 -0
- package/sdk/platform/models/AnalyticsValidator.d.ts +7 -0
- package/sdk/platform/models/AnalyticsValidator.js +36 -0
- package/sdk/platform/models/AuditTrailValidator.d.ts +7 -0
- package/sdk/platform/models/AuditTrailValidator.js +26 -0
- package/sdk/platform/models/BillingValidator.d.ts +15 -0
- package/sdk/platform/models/BillingValidator.js +72 -0
- package/sdk/platform/models/CartValidator.d.ts +0 -0
- package/sdk/platform/models/CartValidator.js +0 -0
- package/sdk/platform/models/CatalogValidator.d.ts +74 -0
- package/sdk/platform/models/CatalogValidator.js +484 -0
- package/sdk/platform/models/CommonValidator.d.ts +5 -0
- package/sdk/platform/models/CommonValidator.js +18 -0
- package/sdk/platform/models/CommunicationValidator.d.ts +4 -0
- package/sdk/platform/models/CommunicationValidator.js +11 -0
- package/sdk/platform/models/CompanyProfileValidator.d.ts +17 -0
- package/sdk/platform/models/CompanyProfileValidator.js +93 -0
- package/sdk/platform/models/ConfigurationValidator.d.ts +21 -0
- package/sdk/platform/models/ConfigurationValidator.js +134 -0
- package/sdk/platform/models/ContentValidator.d.ts +0 -0
- package/sdk/platform/models/ContentValidator.js +0 -0
- package/sdk/platform/models/DiscountValidator.d.ts +13 -0
- package/sdk/platform/models/DiscountValidator.js +75 -0
- package/sdk/platform/models/FileStorageValidator.d.ts +9 -0
- package/sdk/platform/models/FileStorageValidator.js +44 -0
- package/sdk/platform/models/InventoryValidator.d.ts +15 -0
- package/sdk/platform/models/InventoryValidator.js +81 -0
- package/sdk/platform/models/LeadValidator.d.ts +14 -0
- package/sdk/platform/models/LeadValidator.js +78 -0
- package/sdk/platform/models/OrderValidator.d.ts +14 -0
- package/sdk/platform/models/OrderValidator.js +110 -0
- package/sdk/platform/models/PartnerValidator.d.ts +0 -0
- package/sdk/platform/models/PartnerValidator.js +0 -0
- package/sdk/platform/models/PaymentValidator.d.ts +13 -0
- package/sdk/platform/models/PaymentValidator.js +65 -0
- package/sdk/platform/models/RewardsValidator.d.ts +0 -0
- package/sdk/platform/models/RewardsValidator.js +0 -0
- package/sdk/platform/models/ShareValidator.d.ts +0 -0
- package/sdk/platform/models/ShareValidator.js +0 -0
- package/sdk/platform/models/ThemeValidator.d.ts +0 -0
- package/sdk/platform/models/ThemeValidator.js +0 -0
- package/sdk/platform/models/UserValidator.d.ts +0 -0
- package/sdk/platform/models/UserValidator.js +0 -0
- package/sdk/platform/models/WebhookValidator.d.ts +9 -0
- package/sdk/platform/models/WebhookValidator.js +42 -0
- package/sdk/public/PublicAPIClient.d.ts +11 -0
- package/sdk/public/PublicAPIClient.js +38 -0
- package/sdk/public/PublicClient.d.ts +12 -0
- package/sdk/public/PublicClient.js +24 -0
- package/sdk/public/PublicConfig.d.ts +10 -0
- package/sdk/public/PublicConfig.js +12 -0
- package/sdk/public/PublicModels.d.ts +50 -0
- package/sdk/public/PublicModels.js +712 -0
- package/sdk/public/client/ConfigurationPublicClient.d.ts +38 -0
- package/sdk/public/client/ConfigurationPublicClient.js +102 -0
- package/sdk/public/client/InventoryPublicClient.d.ts +81 -0
- package/sdk/public/client/InventoryPublicClient.js +239 -0
- package/sdk/public/client/WebhookPublicClient.d.ts +28 -0
- package/sdk/public/client/WebhookPublicClient.js +92 -0
- package/sdk/public/constructUrl.d.ts +5 -0
- package/sdk/public/constructUrl.js +13 -0
- package/sdk/public/index.d.ts +2 -0
- package/sdk/public/index.js +4 -0
- package/sdk/public/models/ConfigurationValidator.d.ts +5 -0
- package/sdk/public/models/ConfigurationValidator.js +18 -0
- package/sdk/public/models/InventoryValidator.d.ts +9 -0
- package/sdk/public/models/InventoryValidator.js +43 -0
- package/sdk/public/models/WebhookValidator.d.ts +5 -0
- package/sdk/public/models/WebhookValidator.js +14 -0
- package/tests/application/catalog.spec.js +47 -0
- package/tests/common/action-url.spec.js +35 -0
- package/tests/common/schema/action-url.json +163 -0
- package/tests/common/schema/url-action.json +667 -0
- package/tests/common/url-action.spec.js +48 -0
- package/tests/helpers/cookie.helper.js +31 -0
- package/tests/helpers/oauth.helper.js +43 -0
- package/tests/platform/catalog.spec.js +49 -0
- package/tests/public/location.spec.js +39 -0
|
@@ -0,0 +1,235 @@
|
|
|
1
|
+
const Joi = require("joi");
|
|
2
|
+
const { Validator } = require("../ApplicationModels");
|
|
3
|
+
class PaymentValidator {
|
|
4
|
+
static getAggregatorsConfig() {
|
|
5
|
+
return Joi.object({
|
|
6
|
+
xApiToken: Joi.string().allow(""),
|
|
7
|
+
refresh: Joi.boolean(),
|
|
8
|
+
});
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
static attachCardToCustomer() {
|
|
12
|
+
return Joi.object({
|
|
13
|
+
body: Validator.AttachCardRequest().required(),
|
|
14
|
+
}).required();
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
static getActiveCardAggregator() {
|
|
18
|
+
return Joi.object({
|
|
19
|
+
refresh: Joi.boolean(),
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
static getActiveUserCards() {
|
|
24
|
+
return Joi.object({
|
|
25
|
+
forceRefresh: Joi.boolean(),
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
static deleteUserCard() {
|
|
30
|
+
return Joi.object({
|
|
31
|
+
body: Validator.DeletehCardRequest().required(),
|
|
32
|
+
}).required();
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
static verifyCustomerForPayment() {
|
|
36
|
+
return Joi.object({
|
|
37
|
+
body: Validator.ValidateCustomerRequest().required(),
|
|
38
|
+
}).required();
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
static verifyAndChargePayment() {
|
|
42
|
+
return Joi.object({
|
|
43
|
+
body: Validator.ChargeCustomerRequest().required(),
|
|
44
|
+
}).required();
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
static initialisePayment() {
|
|
48
|
+
return Joi.object({
|
|
49
|
+
body: Validator.PaymentInitializationRequest().required(),
|
|
50
|
+
}).required();
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
static checkAndUpdatePaymentStatus() {
|
|
54
|
+
return Joi.object({
|
|
55
|
+
body: Validator.PaymentStatusUpdateRequest().required(),
|
|
56
|
+
}).required();
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
static getPaymentModeRoutes() {
|
|
60
|
+
return Joi.object({
|
|
61
|
+
amount: Joi.number().required(),
|
|
62
|
+
cartId: Joi.string().allow("").required(),
|
|
63
|
+
pincode: Joi.string().allow("").required(),
|
|
64
|
+
checkoutMode: Joi.string().allow("").required(),
|
|
65
|
+
refresh: Joi.boolean(),
|
|
66
|
+
cardReference: Joi.string().allow(""),
|
|
67
|
+
userDetails: Joi.string().allow(""),
|
|
68
|
+
}).required();
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
static getPosPaymentModeRoutes() {
|
|
72
|
+
return Joi.object({
|
|
73
|
+
amount: Joi.number().required(),
|
|
74
|
+
cartId: Joi.string().allow("").required(),
|
|
75
|
+
pincode: Joi.string().allow("").required(),
|
|
76
|
+
checkoutMode: Joi.string().allow("").required(),
|
|
77
|
+
refresh: Joi.boolean(),
|
|
78
|
+
cardReference: Joi.string().allow(""),
|
|
79
|
+
orderType: Joi.string().allow("").required(),
|
|
80
|
+
userDetails: Joi.string().allow(""),
|
|
81
|
+
}).required();
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
static getRupifiBannerDetails() {
|
|
85
|
+
return Joi.object({});
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
static getEpaylaterBannerDetails() {
|
|
89
|
+
return Joi.object({});
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
static resendOrCancelPayment() {
|
|
93
|
+
return Joi.object({
|
|
94
|
+
body: Validator.ResendOrCancelPaymentRequest().required(),
|
|
95
|
+
}).required();
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
static getActiveRefundTransferModes() {
|
|
99
|
+
return Joi.object({});
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
static enableOrDisableRefundTransferMode() {
|
|
103
|
+
return Joi.object({
|
|
104
|
+
body: Validator.UpdateRefundTransferModeRequest().required(),
|
|
105
|
+
}).required();
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
static getUserBeneficiariesDetail() {
|
|
109
|
+
return Joi.object({
|
|
110
|
+
orderId: Joi.string().allow("").required(),
|
|
111
|
+
}).required();
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
static verifyIfscCode() {
|
|
115
|
+
return Joi.object({
|
|
116
|
+
ifscCode: Joi.string().allow(""),
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
static getOrderBeneficiariesDetail() {
|
|
121
|
+
return Joi.object({
|
|
122
|
+
orderId: Joi.string().allow("").required(),
|
|
123
|
+
}).required();
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
static verifyOtpAndAddBeneficiaryForBank() {
|
|
127
|
+
return Joi.object({
|
|
128
|
+
body: Validator.AddBeneficiaryViaOtpVerificationRequest().required(),
|
|
129
|
+
}).required();
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
static addBeneficiaryDetails() {
|
|
133
|
+
return Joi.object({
|
|
134
|
+
body: Validator.AddBeneficiaryDetailsRequest().required(),
|
|
135
|
+
}).required();
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
static addRefundBankAccountUsingOTP() {
|
|
139
|
+
return Joi.object({
|
|
140
|
+
body: Validator.AddBeneficiaryDetailsOTPRequest().required(),
|
|
141
|
+
}).required();
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
static verifyOtpAndAddBeneficiaryForWallet() {
|
|
145
|
+
return Joi.object({
|
|
146
|
+
body: Validator.WalletOtpRequest().required(),
|
|
147
|
+
}).required();
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
static updateDefaultBeneficiary() {
|
|
151
|
+
return Joi.object({
|
|
152
|
+
body: Validator.SetDefaultBeneficiaryRequest().required(),
|
|
153
|
+
}).required();
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
static getPaymentLink() {
|
|
157
|
+
return Joi.object({
|
|
158
|
+
paymentLinkId: Joi.string().allow(""),
|
|
159
|
+
});
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
static createPaymentLink() {
|
|
163
|
+
return Joi.object({
|
|
164
|
+
body: Validator.CreatePaymentLinkRequest().required(),
|
|
165
|
+
}).required();
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
static resendPaymentLink() {
|
|
169
|
+
return Joi.object({
|
|
170
|
+
body: Validator.CancelOrResendPaymentLinkRequest().required(),
|
|
171
|
+
}).required();
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
static cancelPaymentLink() {
|
|
175
|
+
return Joi.object({
|
|
176
|
+
body: Validator.CancelOrResendPaymentLinkRequest().required(),
|
|
177
|
+
}).required();
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
static getPaymentModeRoutesPaymentLink() {
|
|
181
|
+
return Joi.object({
|
|
182
|
+
paymentLinkId: Joi.string().allow("").required(),
|
|
183
|
+
}).required();
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
static pollingPaymentLink() {
|
|
187
|
+
return Joi.object({
|
|
188
|
+
paymentLinkId: Joi.string().allow(""),
|
|
189
|
+
});
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
static createOrderHandlerPaymentLink() {
|
|
193
|
+
return Joi.object({
|
|
194
|
+
body: Validator.CreateOrderUserRequest().required(),
|
|
195
|
+
}).required();
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
static initialisePaymentPaymentLink() {
|
|
199
|
+
return Joi.object({
|
|
200
|
+
body: Validator.PaymentInitializationRequest().required(),
|
|
201
|
+
}).required();
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
static checkAndUpdatePaymentStatusPaymentLink() {
|
|
205
|
+
return Joi.object({
|
|
206
|
+
body: Validator.PaymentStatusUpdateRequest().required(),
|
|
207
|
+
}).required();
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
static customerCreditSummary() {
|
|
211
|
+
return Joi.object({
|
|
212
|
+
aggregator: Joi.string().allow(""),
|
|
213
|
+
});
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
static redirectToAggregator() {
|
|
217
|
+
return Joi.object({
|
|
218
|
+
source: Joi.string().allow(""),
|
|
219
|
+
aggregator: Joi.string().allow(""),
|
|
220
|
+
});
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
static checkCredit() {
|
|
224
|
+
return Joi.object({
|
|
225
|
+
aggregator: Joi.string().allow(""),
|
|
226
|
+
});
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
static customerOnboard() {
|
|
230
|
+
return Joi.object({
|
|
231
|
+
body: Validator.CustomerOnboardingRequest().required(),
|
|
232
|
+
}).required();
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
module.exports = PaymentValidator;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export = PosCartValidator;
|
|
2
|
+
declare class PosCartValidator {
|
|
3
|
+
static getCart(): any;
|
|
4
|
+
static getCartLastModified(): any;
|
|
5
|
+
static addItems(): any;
|
|
6
|
+
static updateCart(): any;
|
|
7
|
+
static getItemCount(): any;
|
|
8
|
+
static getCoupons(): any;
|
|
9
|
+
static applyCoupon(): any;
|
|
10
|
+
static removeCoupon(): any;
|
|
11
|
+
static getBulkDiscountOffers(): any;
|
|
12
|
+
static applyRewardPoints(): any;
|
|
13
|
+
static getAddresses(): any;
|
|
14
|
+
static addAddress(): any;
|
|
15
|
+
static getAddressById(): any;
|
|
16
|
+
static updateAddress(): any;
|
|
17
|
+
static removeAddress(): any;
|
|
18
|
+
static selectAddress(): any;
|
|
19
|
+
static selectPaymentMode(): any;
|
|
20
|
+
static validateCouponForPayment(): any;
|
|
21
|
+
static getShipments(): any;
|
|
22
|
+
static updateShipments(): any;
|
|
23
|
+
static checkoutCart(): any;
|
|
24
|
+
static updateCartMeta(): any;
|
|
25
|
+
static getAvailableDeliveryModes(): any;
|
|
26
|
+
static getStoreAddressByUid(): any;
|
|
27
|
+
static getCartShareLink(): any;
|
|
28
|
+
static getCartSharedItems(): any;
|
|
29
|
+
static updateCartWithSharedItems(): any;
|
|
30
|
+
}
|
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
const Joi = require("joi");
|
|
2
|
+
const { Validator } = require("../ApplicationModels");
|
|
3
|
+
class PosCartValidator {
|
|
4
|
+
static getCart() {
|
|
5
|
+
return Joi.object({
|
|
6
|
+
id: Joi.string().allow(""),
|
|
7
|
+
i: Joi.boolean(),
|
|
8
|
+
b: Joi.boolean(),
|
|
9
|
+
assignCardId: Joi.number(),
|
|
10
|
+
buyNow: Joi.boolean(),
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
static getCartLastModified() {
|
|
15
|
+
return Joi.object({
|
|
16
|
+
id: Joi.string().allow(""),
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
static addItems() {
|
|
21
|
+
return Joi.object({
|
|
22
|
+
i: Joi.boolean(),
|
|
23
|
+
b: Joi.boolean(),
|
|
24
|
+
buyNow: Joi.boolean(),
|
|
25
|
+
body: Validator.AddCartRequest().required(),
|
|
26
|
+
}).required();
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
static updateCart() {
|
|
30
|
+
return Joi.object({
|
|
31
|
+
id: Joi.string().allow(""),
|
|
32
|
+
i: Joi.boolean(),
|
|
33
|
+
b: Joi.boolean(),
|
|
34
|
+
buyNow: Joi.boolean(),
|
|
35
|
+
body: Validator.UpdateCartRequest().required(),
|
|
36
|
+
}).required();
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
static getItemCount() {
|
|
40
|
+
return Joi.object({
|
|
41
|
+
id: Joi.string().allow(""),
|
|
42
|
+
buyNow: Joi.boolean(),
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
static getCoupons() {
|
|
47
|
+
return Joi.object({
|
|
48
|
+
id: Joi.string().allow(""),
|
|
49
|
+
buyNow: Joi.boolean(),
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
static applyCoupon() {
|
|
54
|
+
return Joi.object({
|
|
55
|
+
i: Joi.boolean(),
|
|
56
|
+
b: Joi.boolean(),
|
|
57
|
+
p: Joi.boolean(),
|
|
58
|
+
id: Joi.string().allow(""),
|
|
59
|
+
buyNow: Joi.boolean(),
|
|
60
|
+
body: Validator.ApplyCouponRequest().required(),
|
|
61
|
+
}).required();
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
static removeCoupon() {
|
|
65
|
+
return Joi.object({
|
|
66
|
+
id: Joi.string().allow(""),
|
|
67
|
+
buyNow: Joi.boolean(),
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
static getBulkDiscountOffers() {
|
|
72
|
+
return Joi.object({
|
|
73
|
+
itemId: Joi.number(),
|
|
74
|
+
articleId: Joi.string().allow(""),
|
|
75
|
+
uid: Joi.number(),
|
|
76
|
+
slug: Joi.string().allow(""),
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
static applyRewardPoints() {
|
|
81
|
+
return Joi.object({
|
|
82
|
+
id: Joi.string().allow(""),
|
|
83
|
+
i: Joi.boolean(),
|
|
84
|
+
b: Joi.boolean(),
|
|
85
|
+
buyNow: Joi.boolean(),
|
|
86
|
+
body: Validator.RewardPointRequest().required(),
|
|
87
|
+
}).required();
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
static getAddresses() {
|
|
91
|
+
return Joi.object({
|
|
92
|
+
cartId: Joi.string().allow(""),
|
|
93
|
+
buyNow: Joi.boolean(),
|
|
94
|
+
mobileNo: Joi.string().allow(""),
|
|
95
|
+
checkoutMode: Joi.string().allow(""),
|
|
96
|
+
tags: Joi.string().allow(""),
|
|
97
|
+
isDefault: Joi.boolean(),
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
static addAddress() {
|
|
102
|
+
return Joi.object({
|
|
103
|
+
body: Validator.Address().required(),
|
|
104
|
+
}).required();
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
static getAddressById() {
|
|
108
|
+
return Joi.object({
|
|
109
|
+
id: Joi.string().allow("").required(),
|
|
110
|
+
cartId: Joi.string().allow(""),
|
|
111
|
+
buyNow: Joi.boolean(),
|
|
112
|
+
mobileNo: Joi.string().allow(""),
|
|
113
|
+
checkoutMode: Joi.string().allow(""),
|
|
114
|
+
tags: Joi.string().allow(""),
|
|
115
|
+
isDefault: Joi.boolean(),
|
|
116
|
+
}).required();
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
static updateAddress() {
|
|
120
|
+
return Joi.object({
|
|
121
|
+
id: Joi.string().allow("").required(),
|
|
122
|
+
body: Validator.Address().required(),
|
|
123
|
+
}).required();
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
static removeAddress() {
|
|
127
|
+
return Joi.object({
|
|
128
|
+
id: Joi.string().allow("").required(),
|
|
129
|
+
}).required();
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
static selectAddress() {
|
|
133
|
+
return Joi.object({
|
|
134
|
+
cartId: Joi.string().allow(""),
|
|
135
|
+
buyNow: Joi.boolean(),
|
|
136
|
+
i: Joi.boolean(),
|
|
137
|
+
b: Joi.boolean(),
|
|
138
|
+
body: Validator.SelectCartAddressRequest().required(),
|
|
139
|
+
}).required();
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
static selectPaymentMode() {
|
|
143
|
+
return Joi.object({
|
|
144
|
+
id: Joi.string().allow(""),
|
|
145
|
+
buyNow: Joi.boolean(),
|
|
146
|
+
body: Validator.UpdateCartPaymentRequest().required(),
|
|
147
|
+
}).required();
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
static validateCouponForPayment() {
|
|
151
|
+
return Joi.object({
|
|
152
|
+
id: Joi.string().allow(""),
|
|
153
|
+
buyNow: Joi.boolean(),
|
|
154
|
+
addressId: Joi.string().allow(""),
|
|
155
|
+
paymentMode: Joi.string().allow(""),
|
|
156
|
+
paymentIdentifier: Joi.string().allow(""),
|
|
157
|
+
aggregatorName: Joi.string().allow(""),
|
|
158
|
+
merchantCode: Joi.string().allow(""),
|
|
159
|
+
});
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
static getShipments() {
|
|
163
|
+
return Joi.object({
|
|
164
|
+
pickAtStoreUid: Joi.number(),
|
|
165
|
+
orderingStoreId: Joi.number(),
|
|
166
|
+
p: Joi.boolean(),
|
|
167
|
+
id: Joi.string().allow(""),
|
|
168
|
+
addressId: Joi.string().allow(""),
|
|
169
|
+
areaCode: Joi.string().allow(""),
|
|
170
|
+
orderType: Joi.string().allow(""),
|
|
171
|
+
});
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
static updateShipments() {
|
|
175
|
+
return Joi.object({
|
|
176
|
+
i: Joi.boolean(),
|
|
177
|
+
p: Joi.boolean(),
|
|
178
|
+
id: Joi.string().allow(""),
|
|
179
|
+
addressId: Joi.string().allow(""),
|
|
180
|
+
orderType: Joi.string().allow(""),
|
|
181
|
+
body: Validator.UpdateCartShipmentRequest().required(),
|
|
182
|
+
}).required();
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
static checkoutCart() {
|
|
186
|
+
return Joi.object({
|
|
187
|
+
id: Joi.string().allow(""),
|
|
188
|
+
body: Validator.CartPosCheckoutDetailRequest().required(),
|
|
189
|
+
}).required();
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
static updateCartMeta() {
|
|
193
|
+
return Joi.object({
|
|
194
|
+
id: Joi.string().allow(""),
|
|
195
|
+
buyNow: Joi.boolean(),
|
|
196
|
+
body: Validator.CartMetaRequest().required(),
|
|
197
|
+
}).required();
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
static getAvailableDeliveryModes() {
|
|
201
|
+
return Joi.object({
|
|
202
|
+
areaCode: Joi.string().allow("").required(),
|
|
203
|
+
id: Joi.string().allow(""),
|
|
204
|
+
}).required();
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
static getStoreAddressByUid() {
|
|
208
|
+
return Joi.object({
|
|
209
|
+
storeUid: Joi.number().required(),
|
|
210
|
+
}).required();
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
static getCartShareLink() {
|
|
214
|
+
return Joi.object({
|
|
215
|
+
body: Validator.GetShareCartLinkRequest().required(),
|
|
216
|
+
}).required();
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
static getCartSharedItems() {
|
|
220
|
+
return Joi.object({
|
|
221
|
+
token: Joi.string().allow("").required(),
|
|
222
|
+
}).required();
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
static updateCartWithSharedItems() {
|
|
226
|
+
return Joi.object({
|
|
227
|
+
token: Joi.string().allow("").required(),
|
|
228
|
+
action: Joi.string().allow("").required(),
|
|
229
|
+
}).required();
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
module.exports = PosCartValidator;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export = RewardsValidator;
|
|
2
|
+
declare class RewardsValidator {
|
|
3
|
+
static getPointsOnProduct(): any;
|
|
4
|
+
static getOfferByName(): any;
|
|
5
|
+
static getOrderDiscount(): any;
|
|
6
|
+
static getUserPoints(): any;
|
|
7
|
+
static getUserPointsHistory(): any;
|
|
8
|
+
static getUserReferralDetails(): any;
|
|
9
|
+
static redeemReferralCode(): any;
|
|
10
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
const Joi = require("joi");
|
|
2
|
+
const { Validator } = require("../ApplicationModels");
|
|
3
|
+
class RewardsValidator {
|
|
4
|
+
static getPointsOnProduct() {
|
|
5
|
+
return Joi.object({
|
|
6
|
+
body: Validator.CatalogueOrderRequest().required(),
|
|
7
|
+
}).required();
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
static getOfferByName() {
|
|
11
|
+
return Joi.object({
|
|
12
|
+
name: Joi.string().allow("").required(),
|
|
13
|
+
}).required();
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
static getOrderDiscount() {
|
|
17
|
+
return Joi.object({
|
|
18
|
+
body: Validator.OrderDiscountRequest().required(),
|
|
19
|
+
}).required();
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
static getUserPoints() {
|
|
23
|
+
return Joi.object({});
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
static getUserPointsHistory() {
|
|
27
|
+
return Joi.object({
|
|
28
|
+
pageId: Joi.string().allow(""),
|
|
29
|
+
pageSize: Joi.number(),
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
static getUserReferralDetails() {
|
|
34
|
+
return Joi.object({});
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
static redeemReferralCode() {
|
|
38
|
+
return Joi.object({
|
|
39
|
+
body: Validator.RedeemReferralCodeRequest().required(),
|
|
40
|
+
}).required();
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
module.exports = RewardsValidator;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export = ShareValidator;
|
|
2
|
+
declare class ShareValidator {
|
|
3
|
+
static getApplicationQRCode(): any;
|
|
4
|
+
static getProductQRCodeBySlug(): any;
|
|
5
|
+
static getCollectionQRCodeBySlug(): any;
|
|
6
|
+
static getUrlQRCode(): any;
|
|
7
|
+
static createShortLink(): any;
|
|
8
|
+
static getShortLinkByHash(): any;
|
|
9
|
+
static getOriginalShortLinkByHash(): any;
|
|
10
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
const Joi = require("joi");
|
|
2
|
+
const { Validator } = require("../ApplicationModels");
|
|
3
|
+
class ShareValidator {
|
|
4
|
+
static getApplicationQRCode() {
|
|
5
|
+
return Joi.object({});
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
static getProductQRCodeBySlug() {
|
|
9
|
+
return Joi.object({
|
|
10
|
+
slug: Joi.string().allow("").required(),
|
|
11
|
+
}).required();
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
static getCollectionQRCodeBySlug() {
|
|
15
|
+
return Joi.object({
|
|
16
|
+
slug: Joi.string().allow("").required(),
|
|
17
|
+
}).required();
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
static getUrlQRCode() {
|
|
21
|
+
return Joi.object({
|
|
22
|
+
url: Joi.string().allow("").required(),
|
|
23
|
+
}).required();
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
static createShortLink() {
|
|
27
|
+
return Joi.object({
|
|
28
|
+
body: Validator.ShortLinkReq().required(),
|
|
29
|
+
}).required();
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
static getShortLinkByHash() {
|
|
33
|
+
return Joi.object({
|
|
34
|
+
hash: Joi.string().allow("").required(),
|
|
35
|
+
}).required();
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
static getOriginalShortLinkByHash() {
|
|
39
|
+
return Joi.object({
|
|
40
|
+
hash: Joi.string().allow("").required(),
|
|
41
|
+
}).required();
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
module.exports = ShareValidator;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
const Joi = require("joi");
|
|
2
|
+
const { Validator } = require("../ApplicationModels");
|
|
3
|
+
class ThemeValidator {
|
|
4
|
+
static getAllPages() {
|
|
5
|
+
return Joi.object({
|
|
6
|
+
themeId: Joi.string().allow("").required(),
|
|
7
|
+
}).required();
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
static getPage() {
|
|
11
|
+
return Joi.object({
|
|
12
|
+
themeId: Joi.string().allow("").required(),
|
|
13
|
+
pageValue: Joi.string().allow("").required(),
|
|
14
|
+
}).required();
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
static getAppliedTheme() {
|
|
18
|
+
return Joi.object({});
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
static getThemeForPreview() {
|
|
22
|
+
return Joi.object({
|
|
23
|
+
themeId: Joi.string().allow("").required(),
|
|
24
|
+
}).required();
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
module.exports = ThemeValidator;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export = UserValidator;
|
|
2
|
+
declare class UserValidator {
|
|
3
|
+
static loginWithFacebook(): any;
|
|
4
|
+
static loginWithGoogle(): any;
|
|
5
|
+
static loginWithGoogleAndroid(): any;
|
|
6
|
+
static loginWithGoogleIOS(): any;
|
|
7
|
+
static loginWithAppleIOS(): any;
|
|
8
|
+
static loginWithOTP(): any;
|
|
9
|
+
static loginWithEmailAndPassword(): any;
|
|
10
|
+
static sendResetPasswordEmail(): any;
|
|
11
|
+
static sendResetPasswordMobile(): any;
|
|
12
|
+
static forgotPassword(): any;
|
|
13
|
+
static sendResetToken(): any;
|
|
14
|
+
static loginWithToken(): any;
|
|
15
|
+
static registerWithForm(): any;
|
|
16
|
+
static verifyEmail(): any;
|
|
17
|
+
static verifyMobile(): any;
|
|
18
|
+
static hasPassword(): any;
|
|
19
|
+
static updatePassword(): any;
|
|
20
|
+
static deleteUser(): any;
|
|
21
|
+
static logout(): any;
|
|
22
|
+
static sendOTPOnMobile(): any;
|
|
23
|
+
static verifyMobileOTP(): any;
|
|
24
|
+
static sendOTPOnEmail(): any;
|
|
25
|
+
static verifyEmailOTP(): any;
|
|
26
|
+
static getLoggedInUser(): any;
|
|
27
|
+
static getListOfActiveSessions(): any;
|
|
28
|
+
static getPlatformConfig(): any;
|
|
29
|
+
static updateProfile(): any;
|
|
30
|
+
static addMobileNumber(): any;
|
|
31
|
+
static deleteMobileNumber(): any;
|
|
32
|
+
static setMobileNumberAsPrimary(): any;
|
|
33
|
+
static sendVerificationLinkToMobile(): any;
|
|
34
|
+
static addEmail(): any;
|
|
35
|
+
static deleteEmail(): any;
|
|
36
|
+
static setEmailAsPrimary(): any;
|
|
37
|
+
static sendVerificationLinkToEmail(): any;
|
|
38
|
+
}
|