@gofynd/fdk-client-javascript 1.6.4 → 3.1.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +1 -1
- package/sdk/application/ApplicationClient.d.ts +0 -2
- package/sdk/application/ApplicationClient.js +0 -2
- package/sdk/application/Cart/CartApplicationClient.d.ts +100 -80
- package/sdk/application/Cart/CartApplicationClient.js +257 -126
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +110 -110
- package/sdk/application/Catalog/CatalogApplicationClient.js +122 -138
- package/sdk/application/Common/CommonApplicationClient.d.ts +4 -4
- package/sdk/application/Common/CommonApplicationClient.js +3 -3
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +43 -3
- package/sdk/application/Communication/CommunicationApplicationClient.js +190 -3
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +71 -36
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +103 -29
- package/sdk/application/Content/ContentApplicationClient.d.ts +61 -21
- package/sdk/application/Content/ContentApplicationClient.js +250 -36
- package/sdk/application/Lead/LeadApplicationClient.d.ts +3 -3
- package/sdk/application/Lead/LeadApplicationClient.js +3 -3
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +106 -57
- package/sdk/application/Logistic/LogisticApplicationClient.js +326 -208
- package/sdk/application/Order/OrderApplicationClient.d.ts +44 -24
- package/sdk/application/Order/OrderApplicationClient.js +140 -21
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +211 -111
- package/sdk/application/Payment/PaymentApplicationClient.js +610 -109
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +13 -13
- package/sdk/application/Rewards/RewardsApplicationClient.js +7 -7
- package/sdk/application/Share/ShareApplicationClient.d.ts +7 -7
- package/sdk/application/Share/ShareApplicationClient.js +14 -14
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +23 -3
- package/sdk/application/Theme/ThemeApplicationClient.js +103 -5
- package/sdk/application/User/UserApplicationClient.d.ts +13 -23
- package/sdk/application/User/UserApplicationClient.js +9 -57
- package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -4
- package/sdk/application/Webhook/WebhookApplicationClient.js +3 -3
- package/sdk/partner/Authorization/AuthorizationPartnerClient.d.ts +66 -0
- package/sdk/partner/Authorization/AuthorizationPartnerClient.js +431 -0
- package/sdk/partner/Authorization/AuthorizationPartnerModel.d.ts +231 -0
- package/sdk/partner/Authorization/AuthorizationPartnerModel.js +152 -0
- package/sdk/partner/Authorization/AuthorizationPartnerValidator.d.ts +8 -0
- package/sdk/partner/Authorization/AuthorizationPartnerValidator.js +39 -0
- package/sdk/partner/Catalog/CatalogPartnerClient.d.ts +26 -0
- package/sdk/partner/Catalog/CatalogPartnerClient.js +173 -0
- package/sdk/partner/Catalog/CatalogPartnerModel.d.ts +238 -0
- package/sdk/partner/Catalog/CatalogPartnerModel.js +248 -0
- package/sdk/partner/Catalog/CatalogPartnerValidator.d.ts +5 -0
- package/sdk/partner/Catalog/CatalogPartnerValidator.js +19 -0
- package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +0 -10
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +0 -75
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +1 -54
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +0 -43
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +0 -1
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +0 -6
- package/sdk/partner/Lead/LeadPartnerClient.d.ts +5 -5
- package/sdk/partner/Lead/LeadPartnerClient.js +4 -4
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +100 -49
- package/sdk/partner/Lead/LeadPartnerModel.js +100 -74
- package/sdk/partner/Lead/LeadPartnerValidator.js +1 -1
- package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +33 -160
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +66 -1180
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +288 -1685
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +226 -824
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +1 -13
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +14 -141
- package/sdk/partner/PartnerClient.d.ts +6 -0
- package/sdk/partner/PartnerClient.js +9 -0
- package/sdk/partner/Payment/PaymentPartnerClient.d.ts +116 -0
- package/sdk/partner/Payment/PaymentPartnerClient.js +857 -0
- package/sdk/partner/Payment/PaymentPartnerModel.d.ts +388 -0
- package/sdk/partner/Payment/PaymentPartnerModel.js +442 -0
- package/sdk/partner/Payment/PaymentPartnerValidator.d.ts +14 -0
- package/sdk/partner/Payment/PaymentPartnerValidator.js +74 -0
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +63 -21
- package/sdk/partner/Theme/ThemePartnerClient.js +396 -71
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +104 -72
- package/sdk/partner/Theme/ThemePartnerModel.js +101 -75
- package/sdk/partner/Theme/ThemePartnerValidator.d.ts +5 -1
- package/sdk/partner/Theme/ThemePartnerValidator.js +42 -12
- package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +18 -18
- package/sdk/partner/Webhook/WebhookPartnerClient.js +18 -18
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +191 -670
- package/sdk/partner/Webhook/WebhookPartnerModel.js +159 -268
- package/sdk/partner/Webhook/WebhookPartnerValidator.js +3 -3
- package/sdk/partner/index.d.ts +3 -0
- package/sdk/partner/index.js +6 -0
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.d.ts +1 -4
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js +1 -1
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +5 -0
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +3 -1
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +32 -2
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +243 -3
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +145 -49
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +171 -20
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +39 -1
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +35 -0
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +12 -12
- package/sdk/platform/Billing/BillingPlatformClient.js +15 -15
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +388 -443
- package/sdk/platform/Billing/BillingPlatformModel.js +263 -280
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +18 -16
- package/sdk/platform/Billing/BillingPlatformValidator.js +9 -8
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +251 -172
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +639 -521
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +165 -165
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +108 -132
- package/sdk/platform/Cart/CartPlatformModel.d.ts +3150 -4468
- package/sdk/platform/Cart/CartPlatformModel.js +2858 -1867
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +976 -380
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +6475 -2015
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +1083 -162
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +884 -80
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +325 -568
- package/sdk/platform/Catalog/CatalogPlatformClient.js +1162 -1562
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +6008 -7688
- package/sdk/platform/Catalog/CatalogPlatformModel.js +9522 -6892
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +234 -227
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +183 -177
- package/sdk/platform/Common/CommonPlatformClient.d.ts +5 -6
- package/sdk/platform/Common/CommonPlatformClient.js +5 -6
- package/sdk/platform/Common/CommonPlatformModel.d.ts +9 -9
- package/sdk/platform/Common/CommonPlatformModel.js +6 -6
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +374 -238
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +876 -588
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +170 -139
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +145 -126
- package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +56 -3
- package/sdk/platform/Communication/CommunicationPlatformClient.js +307 -4
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +506 -270
- package/sdk/platform/Communication/CommunicationPlatformModel.js +611 -313
- package/sdk/platform/Communication/CommunicationPlatformValidator.d.ts +62 -3
- package/sdk/platform/Communication/CommunicationPlatformValidator.js +48 -2
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +78 -77
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +97 -91
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +238 -256
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +222 -244
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +31 -20
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +25 -20
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +333 -118
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +1470 -409
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +158 -55
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +163 -41
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +151 -61
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +595 -101
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +1206 -459
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +1011 -320
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +80 -34
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +79 -24
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +255 -140
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +1095 -464
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +221 -178
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +220 -157
- package/sdk/platform/Content/ContentPlatformClient.d.ts +124 -123
- package/sdk/platform/Content/ContentPlatformClient.js +459 -379
- package/sdk/platform/Content/ContentPlatformModel.d.ts +871 -1315
- package/sdk/platform/Content/ContentPlatformModel.js +940 -599
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +140 -150
- package/sdk/platform/Content/ContentPlatformValidator.js +131 -135
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +60 -36
- package/sdk/platform/Discount/DiscountPlatformClient.js +85 -36
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +46 -47
- package/sdk/platform/Discount/DiscountPlatformModel.js +42 -46
- package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +2 -2
- package/sdk/platform/Discount/DiscountPlatformValidator.js +2 -2
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +18 -15
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +24 -22
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +4 -4
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +4 -4
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +8 -8
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +8 -8
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +75 -86
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +60 -74
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +320 -0
- package/sdk/platform/Finance/FinancePlatformClient.js +2333 -0
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +2895 -0
- package/sdk/platform/Finance/FinancePlatformModel.js +2150 -0
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +284 -0
- package/sdk/platform/Finance/FinancePlatformValidator.js +354 -0
- package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +17 -17
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +33 -33
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +19 -19
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +14 -14
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +4 -24
- package/sdk/platform/Lead/LeadPlatformClient.js +4 -160
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +142 -57
- package/sdk/platform/Lead/LeadPlatformModel.js +162 -79
- package/sdk/platform/Lead/LeadPlatformValidator.d.ts +3 -29
- package/sdk/platform/Lead/LeadPlatformValidator.js +2 -28
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +94 -25
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +600 -57
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +115 -115
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +120 -43
- package/sdk/platform/Order/OrderPlatformClient.d.ts +486 -277
- package/sdk/platform/Order/OrderPlatformClient.js +1491 -938
- package/sdk/platform/Order/OrderPlatformModel.d.ts +4560 -8636
- package/sdk/platform/Order/OrderPlatformModel.js +3604 -4056
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +445 -612
- package/sdk/platform/Order/OrderPlatformValidator.js +316 -326
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +4 -6
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +7 -9
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +9 -9
- package/sdk/platform/Partner/PartnerPlatformModel.js +7 -7
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +382 -135
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +2453 -935
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +306 -93
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +305 -70
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +66 -56
- package/sdk/platform/Payment/PaymentPlatformClient.js +269 -124
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +3531 -1292
- package/sdk/platform/Payment/PaymentPlatformModel.js +3813 -1504
- package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +64 -35
- package/sdk/platform/Payment/PaymentPlatformValidator.js +60 -34
- package/sdk/platform/PlatformClient.d.ts +2 -0
- package/sdk/platform/PlatformClient.js +4 -0
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +2 -2
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +14 -9
- package/sdk/platform/Rewards/RewardsPlatformModel.js +10 -8
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +344 -56
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +2188 -302
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +394 -54
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +342 -37
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +150 -212
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +589 -1238
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +3581 -2960
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +3730 -1779
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +230 -382
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +164 -287
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +4 -16
- package/sdk/platform/Share/SharePlatformApplicationClient.js +8 -86
- package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +6 -23
- package/sdk/platform/Share/SharePlatformApplicationValidator.js +3 -16
- package/sdk/platform/Share/SharePlatformModel.d.ts +11 -50
- package/sdk/platform/Share/SharePlatformModel.js +5 -43
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +36 -16
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +201 -58
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +28 -17
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +33 -16
- package/sdk/platform/Theme/ThemePlatformClient.d.ts +18 -8
- package/sdk/platform/Theme/ThemePlatformClient.js +85 -8
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +425 -17
- package/sdk/platform/Theme/ThemePlatformModel.js +329 -23
- package/sdk/platform/Theme/ThemePlatformValidator.d.ts +7 -3
- package/sdk/platform/Theme/ThemePlatformValidator.js +9 -2
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +18 -71
- package/sdk/platform/User/UserPlatformApplicationClient.js +27 -412
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +10 -114
- package/sdk/platform/User/UserPlatformApplicationValidator.js +7 -80
- package/sdk/platform/User/UserPlatformModel.d.ts +216 -264
- package/sdk/platform/User/UserPlatformModel.js +209 -216
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +78 -25
- package/sdk/platform/Webhook/WebhookPlatformClient.js +470 -75
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +428 -810
- package/sdk/platform/Webhook/WebhookPlatformModel.js +395 -444
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +55 -10
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +72 -12
- package/sdk/platform/index.d.ts +1 -0
- package/sdk/platform/index.js +2 -0
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +14 -4
- package/sdk/public/Configuration/ConfigurationPublicClient.js +97 -9
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +102 -40
- package/sdk/public/Configuration/ConfigurationPublicModel.js +111 -29
- package/sdk/public/Configuration/ConfigurationPublicValidator.d.ts +11 -1
- package/sdk/public/Configuration/ConfigurationPublicValidator.js +12 -0
- package/sdk/public/Content/ContentPublicClient.d.ts +22 -0
- package/sdk/public/Content/ContentPublicClient.js +183 -0
- package/sdk/public/Content/ContentPublicModel.d.ts +38 -1
- package/sdk/public/Content/ContentPublicModel.js +47 -1
- package/sdk/public/Content/ContentPublicValidator.d.ts +17 -1
- package/sdk/public/Content/ContentPublicValidator.js +19 -0
- package/sdk/public/PublicClient.d.ts +0 -2
- package/sdk/public/PublicClient.js +0 -4
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
- package/sdk/public/Webhook/WebhookPublicClient.js +8 -8
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +67 -215
- package/sdk/public/Webhook/WebhookPublicModel.js +61 -66
- package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
- package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
- package/sdk/public/index.d.ts +0 -1
- package/sdk/public/index.js +0 -2
- package/sdk/application/Finance/FinanceApplicationClient.d.ts +0 -29
- package/sdk/application/Finance/FinanceApplicationClient.js +0 -126
- package/sdk/public/Catalog/CatalogPublicClient.d.ts +0 -22
- package/sdk/public/Catalog/CatalogPublicClient.js +0 -138
- package/sdk/public/Catalog/CatalogPublicModel.d.ts +0 -155
- package/sdk/public/Catalog/CatalogPublicModel.js +0 -116
- package/sdk/public/Catalog/CatalogPublicValidator.d.ts +0 -55
- package/sdk/public/Catalog/CatalogPublicValidator.js +0 -35
|
@@ -0,0 +1,442 @@
|
|
|
1
|
+
const Joi = require("joi");
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @typedef SubPaymentMode
|
|
5
|
+
* @property {string} [code]
|
|
6
|
+
* @property {string} [name]
|
|
7
|
+
* @property {string} [logo]
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* @typedef PaymentMethod
|
|
12
|
+
* @property {number} [id]
|
|
13
|
+
* @property {SubPaymentMode[]} [sub_payment_mode]
|
|
14
|
+
* @property {string} [name]
|
|
15
|
+
* @property {Logos} [logos]
|
|
16
|
+
* @property {string} [slug]
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* @typedef Logos
|
|
21
|
+
* @property {string} [small]
|
|
22
|
+
* @property {string} [large]
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* @typedef SessionPath
|
|
27
|
+
* @property {string} [type]
|
|
28
|
+
* @property {string} [uri_path]
|
|
29
|
+
* @property {string} [content_type]
|
|
30
|
+
* @property {string[]} [methods]
|
|
31
|
+
*/
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* @typedef RequiredSessionPath
|
|
35
|
+
* @property {string} [version]
|
|
36
|
+
* @property {SessionPath[]} [paths]
|
|
37
|
+
*/
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* @typedef CheckoutType
|
|
41
|
+
* @property {string} [name]
|
|
42
|
+
* @property {string} [slug]
|
|
43
|
+
*/
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* @typedef Mode
|
|
47
|
+
* @property {string} [name]
|
|
48
|
+
* @property {string} [slug]
|
|
49
|
+
*/
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* @typedef Country
|
|
53
|
+
* @property {string} [name]
|
|
54
|
+
* @property {string} [slug]
|
|
55
|
+
*/
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* @typedef Currency
|
|
59
|
+
* @property {string} [name]
|
|
60
|
+
* @property {string} [slug]
|
|
61
|
+
*/
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* @typedef RefundTo
|
|
65
|
+
* @property {string} [source] - Refund credited to the original payment mode
|
|
66
|
+
* used by the user for the payment.
|
|
67
|
+
* @property {string} [others] - Refund credited to a different payment mode not
|
|
68
|
+
* originally used by the user for the payment.
|
|
69
|
+
*/
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* @typedef PaymentConfigResponse
|
|
73
|
+
* @property {boolean} [success]
|
|
74
|
+
* @property {RefundTo} [refund_to]
|
|
75
|
+
* @property {PaymentMethod[]} [payment_methods]
|
|
76
|
+
* @property {RequiredSessionPath[]} [required_session_paths]
|
|
77
|
+
* @property {CheckoutType[]} [checkout_type]
|
|
78
|
+
* @property {boolean[]} [auto_capture]
|
|
79
|
+
* @property {Mode[]} [mode]
|
|
80
|
+
* @property {Country[]} [country]
|
|
81
|
+
* @property {Currency[]} [currency]
|
|
82
|
+
*/
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* @typedef PostPayoutResponse
|
|
86
|
+
* @property {boolean} [success]
|
|
87
|
+
* @property {Users} [users]
|
|
88
|
+
* @property {boolean} [is_active]
|
|
89
|
+
* @property {string} [unique_transfer_no]
|
|
90
|
+
* @property {string} [aggregator]
|
|
91
|
+
* @property {string} [transfer_type]
|
|
92
|
+
* @property {BankDetails} [bank_details]
|
|
93
|
+
* @property {boolean} [created]
|
|
94
|
+
* @property {Payouts} [payouts]
|
|
95
|
+
* @property {string} [payment_status]
|
|
96
|
+
* @property {boolean} [updated]
|
|
97
|
+
*/
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* @typedef PostPayoutRequest
|
|
101
|
+
* @property {string} [unique_external_id]
|
|
102
|
+
* @property {Users} [users]
|
|
103
|
+
* @property {boolean} [is_active]
|
|
104
|
+
* @property {string} [unique_transfer_no]
|
|
105
|
+
* @property {string} [aggregator]
|
|
106
|
+
* @property {string} [transfer_type]
|
|
107
|
+
* @property {BankDetails} [bank_details]
|
|
108
|
+
* @property {boolean} [created]
|
|
109
|
+
* @property {Payouts} [payouts]
|
|
110
|
+
* @property {string} [payment_status]
|
|
111
|
+
* @property {boolean} [updated]
|
|
112
|
+
*/
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* @typedef Users
|
|
116
|
+
* @property {string} [name]
|
|
117
|
+
* @property {string} [email]
|
|
118
|
+
* @property {string} [unique_external_id]
|
|
119
|
+
* @property {string} [mobile]
|
|
120
|
+
*/
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* @typedef BankDetails
|
|
124
|
+
* @property {string} [account_no]
|
|
125
|
+
* @property {string} [city]
|
|
126
|
+
* @property {string} [bank_name]
|
|
127
|
+
* @property {string} [account_type]
|
|
128
|
+
* @property {string} [state]
|
|
129
|
+
* @property {string} [account_holder]
|
|
130
|
+
* @property {string} [country]
|
|
131
|
+
* @property {string} [ifsc_code]
|
|
132
|
+
* @property {string} [branch_name]
|
|
133
|
+
*/
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* @typedef Payouts
|
|
137
|
+
* @property {string} [aggregator_fund_id]
|
|
138
|
+
*/
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* @typedef ErrorCodeAndDescription
|
|
142
|
+
* @property {string} [code] - Error descrption code.
|
|
143
|
+
* @property {string} description - Error human understandable description.
|
|
144
|
+
*/
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* @typedef HttpErrorCodeAndResponse
|
|
148
|
+
* @property {ErrorCodeAndDescription} [error]
|
|
149
|
+
* @property {boolean} success - Response is successful or not
|
|
150
|
+
*/
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* @typedef PayoutResponse
|
|
154
|
+
* @property {PayoutItem[]} [items]
|
|
155
|
+
* @property {boolean} [success]
|
|
156
|
+
*/
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* @typedef MoreAttributes
|
|
160
|
+
* @property {string} [city]
|
|
161
|
+
* @property {string} [state]
|
|
162
|
+
* @property {string} [country]
|
|
163
|
+
* @property {string} [bank_name]
|
|
164
|
+
* @property {string} [ifsc_code]
|
|
165
|
+
* @property {string} [account_no]
|
|
166
|
+
* @property {string} [branch_name]
|
|
167
|
+
* @property {string} [account_type]
|
|
168
|
+
* @property {string} [account_holder]
|
|
169
|
+
*/
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* @typedef Customers
|
|
173
|
+
* @property {number} [id]
|
|
174
|
+
* @property {string} [name]
|
|
175
|
+
* @property {string} [mobile]
|
|
176
|
+
* @property {string} [email]
|
|
177
|
+
* @property {string} [unique_external_id]
|
|
178
|
+
*/
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* @typedef PayoutsAggregator
|
|
182
|
+
* @property {number} [payout_details_id]
|
|
183
|
+
* @property {number} [aggregator_id]
|
|
184
|
+
* @property {string} [aggregator_fund_id]
|
|
185
|
+
*/
|
|
186
|
+
|
|
187
|
+
/**
|
|
188
|
+
* @typedef PayoutItem
|
|
189
|
+
* @property {string} [unique_transfer_no]
|
|
190
|
+
* @property {MoreAttributes} [more_attributes]
|
|
191
|
+
* @property {string} [transfer_type]
|
|
192
|
+
* @property {boolean} [is_default]
|
|
193
|
+
* @property {boolean} [is_active]
|
|
194
|
+
* @property {Customers} [customers]
|
|
195
|
+
* @property {PayoutsAggregator[]} [payouts_aggregators]
|
|
196
|
+
*/
|
|
197
|
+
|
|
198
|
+
class PaymentPartnerModel {
|
|
199
|
+
/** @returns {SubPaymentMode} */
|
|
200
|
+
static SubPaymentMode() {
|
|
201
|
+
return Joi.object({
|
|
202
|
+
code: Joi.string().allow(""),
|
|
203
|
+
name: Joi.string().allow(""),
|
|
204
|
+
logo: Joi.string().allow(""),
|
|
205
|
+
});
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
/** @returns {PaymentMethod} */
|
|
209
|
+
static PaymentMethod() {
|
|
210
|
+
return Joi.object({
|
|
211
|
+
id: Joi.number(),
|
|
212
|
+
sub_payment_mode: Joi.array().items(PaymentPartnerModel.SubPaymentMode()),
|
|
213
|
+
name: Joi.string().allow(""),
|
|
214
|
+
logos: PaymentPartnerModel.Logos(),
|
|
215
|
+
slug: Joi.string().allow(""),
|
|
216
|
+
});
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
/** @returns {Logos} */
|
|
220
|
+
static Logos() {
|
|
221
|
+
return Joi.object({
|
|
222
|
+
small: Joi.string().allow(""),
|
|
223
|
+
large: Joi.string().allow(""),
|
|
224
|
+
});
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
/** @returns {SessionPath} */
|
|
228
|
+
static SessionPath() {
|
|
229
|
+
return Joi.object({
|
|
230
|
+
type: Joi.string().allow(""),
|
|
231
|
+
uri_path: Joi.string().allow(""),
|
|
232
|
+
content_type: Joi.string().allow(""),
|
|
233
|
+
methods: Joi.array().items(Joi.string().allow("")),
|
|
234
|
+
});
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
/** @returns {RequiredSessionPath} */
|
|
238
|
+
static RequiredSessionPath() {
|
|
239
|
+
return Joi.object({
|
|
240
|
+
version: Joi.string().allow(""),
|
|
241
|
+
paths: Joi.array().items(PaymentPartnerModel.SessionPath()),
|
|
242
|
+
});
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
/** @returns {CheckoutType} */
|
|
246
|
+
static CheckoutType() {
|
|
247
|
+
return Joi.object({
|
|
248
|
+
name: Joi.string().allow(""),
|
|
249
|
+
slug: Joi.string().allow(""),
|
|
250
|
+
});
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
/** @returns {Mode} */
|
|
254
|
+
static Mode() {
|
|
255
|
+
return Joi.object({
|
|
256
|
+
name: Joi.string().allow(""),
|
|
257
|
+
slug: Joi.string().allow(""),
|
|
258
|
+
});
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
/** @returns {Country} */
|
|
262
|
+
static Country() {
|
|
263
|
+
return Joi.object({
|
|
264
|
+
name: Joi.string().allow(""),
|
|
265
|
+
slug: Joi.string().allow(""),
|
|
266
|
+
});
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
/** @returns {Currency} */
|
|
270
|
+
static Currency() {
|
|
271
|
+
return Joi.object({
|
|
272
|
+
name: Joi.string().allow(""),
|
|
273
|
+
slug: Joi.string().allow(""),
|
|
274
|
+
});
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
/** @returns {RefundTo} */
|
|
278
|
+
static RefundTo() {
|
|
279
|
+
return Joi.object({
|
|
280
|
+
source: Joi.string().allow(""),
|
|
281
|
+
others: Joi.string().allow(""),
|
|
282
|
+
}).allow(null);
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
/** @returns {PaymentConfigResponse} */
|
|
286
|
+
static PaymentConfigResponse() {
|
|
287
|
+
return Joi.object({
|
|
288
|
+
success: Joi.boolean(),
|
|
289
|
+
refund_to: PaymentPartnerModel.RefundTo(),
|
|
290
|
+
payment_methods: Joi.array().items(PaymentPartnerModel.PaymentMethod()),
|
|
291
|
+
required_session_paths: Joi.array().items(
|
|
292
|
+
PaymentPartnerModel.RequiredSessionPath()
|
|
293
|
+
),
|
|
294
|
+
checkout_type: Joi.array().items(PaymentPartnerModel.CheckoutType()),
|
|
295
|
+
auto_capture: Joi.array().items(Joi.boolean()),
|
|
296
|
+
mode: Joi.array().items(PaymentPartnerModel.Mode()),
|
|
297
|
+
country: Joi.array().items(PaymentPartnerModel.Country()),
|
|
298
|
+
currency: Joi.array().items(PaymentPartnerModel.Currency()),
|
|
299
|
+
});
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
/** @returns {PostPayoutResponse} */
|
|
303
|
+
static PostPayoutResponse() {
|
|
304
|
+
return Joi.object({
|
|
305
|
+
success: Joi.boolean(),
|
|
306
|
+
users: PaymentPartnerModel.Users(),
|
|
307
|
+
is_active: Joi.boolean(),
|
|
308
|
+
unique_transfer_no: Joi.string().allow(""),
|
|
309
|
+
aggregator: Joi.string().allow(""),
|
|
310
|
+
transfer_type: Joi.string().allow(""),
|
|
311
|
+
bank_details: PaymentPartnerModel.BankDetails(),
|
|
312
|
+
created: Joi.boolean(),
|
|
313
|
+
payouts: PaymentPartnerModel.Payouts(),
|
|
314
|
+
payment_status: Joi.string().allow(""),
|
|
315
|
+
updated: Joi.boolean(),
|
|
316
|
+
});
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
/** @returns {PostPayoutRequest} */
|
|
320
|
+
static PostPayoutRequest() {
|
|
321
|
+
return Joi.object({
|
|
322
|
+
unique_external_id: Joi.string().allow(""),
|
|
323
|
+
users: PaymentPartnerModel.Users(),
|
|
324
|
+
is_active: Joi.boolean(),
|
|
325
|
+
unique_transfer_no: Joi.string().allow(""),
|
|
326
|
+
aggregator: Joi.string().allow(""),
|
|
327
|
+
transfer_type: Joi.string().allow(""),
|
|
328
|
+
bank_details: PaymentPartnerModel.BankDetails(),
|
|
329
|
+
created: Joi.boolean(),
|
|
330
|
+
payouts: PaymentPartnerModel.Payouts(),
|
|
331
|
+
payment_status: Joi.string().allow(""),
|
|
332
|
+
updated: Joi.boolean(),
|
|
333
|
+
});
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
/** @returns {Users} */
|
|
337
|
+
static Users() {
|
|
338
|
+
return Joi.object({
|
|
339
|
+
name: Joi.string().allow(""),
|
|
340
|
+
email: Joi.string().allow(""),
|
|
341
|
+
unique_external_id: Joi.string().allow(""),
|
|
342
|
+
mobile: Joi.string().allow(""),
|
|
343
|
+
});
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
/** @returns {BankDetails} */
|
|
347
|
+
static BankDetails() {
|
|
348
|
+
return Joi.object({
|
|
349
|
+
account_no: Joi.string().allow(""),
|
|
350
|
+
city: Joi.string().allow(""),
|
|
351
|
+
bank_name: Joi.string().allow(""),
|
|
352
|
+
account_type: Joi.string().allow(""),
|
|
353
|
+
state: Joi.string().allow(""),
|
|
354
|
+
account_holder: Joi.string().allow(""),
|
|
355
|
+
country: Joi.string().allow(""),
|
|
356
|
+
ifsc_code: Joi.string().allow(""),
|
|
357
|
+
branch_name: Joi.string().allow(""),
|
|
358
|
+
});
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
/** @returns {Payouts} */
|
|
362
|
+
static Payouts() {
|
|
363
|
+
return Joi.object({
|
|
364
|
+
aggregator_fund_id: Joi.string().allow("").allow(null),
|
|
365
|
+
});
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
/** @returns {ErrorCodeAndDescription} */
|
|
369
|
+
static ErrorCodeAndDescription() {
|
|
370
|
+
return Joi.object({
|
|
371
|
+
code: Joi.string().allow(""),
|
|
372
|
+
description: Joi.string().allow("").required(),
|
|
373
|
+
});
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
/** @returns {HttpErrorCodeAndResponse} */
|
|
377
|
+
static HttpErrorCodeAndResponse() {
|
|
378
|
+
return Joi.object({
|
|
379
|
+
error: PaymentPartnerModel.ErrorCodeAndDescription(),
|
|
380
|
+
success: Joi.boolean().required(),
|
|
381
|
+
});
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
/** @returns {PayoutResponse} */
|
|
385
|
+
static PayoutResponse() {
|
|
386
|
+
return Joi.object({
|
|
387
|
+
items: Joi.array().items(PaymentPartnerModel.PayoutItem()),
|
|
388
|
+
success: Joi.boolean(),
|
|
389
|
+
});
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
/** @returns {MoreAttributes} */
|
|
393
|
+
static MoreAttributes() {
|
|
394
|
+
return Joi.object({
|
|
395
|
+
city: Joi.string().allow(""),
|
|
396
|
+
state: Joi.string().allow(""),
|
|
397
|
+
country: Joi.string().allow(""),
|
|
398
|
+
bank_name: Joi.string().allow(""),
|
|
399
|
+
ifsc_code: Joi.string().allow(""),
|
|
400
|
+
account_no: Joi.string().allow(""),
|
|
401
|
+
branch_name: Joi.string().allow(""),
|
|
402
|
+
account_type: Joi.string().allow(""),
|
|
403
|
+
account_holder: Joi.string().allow(""),
|
|
404
|
+
});
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
/** @returns {Customers} */
|
|
408
|
+
static Customers() {
|
|
409
|
+
return Joi.object({
|
|
410
|
+
id: Joi.number(),
|
|
411
|
+
name: Joi.string().allow(""),
|
|
412
|
+
mobile: Joi.string().allow(""),
|
|
413
|
+
email: Joi.string().allow(""),
|
|
414
|
+
unique_external_id: Joi.string().allow(""),
|
|
415
|
+
});
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
/** @returns {PayoutsAggregator} */
|
|
419
|
+
static PayoutsAggregator() {
|
|
420
|
+
return Joi.object({
|
|
421
|
+
payout_details_id: Joi.number(),
|
|
422
|
+
aggregator_id: Joi.number(),
|
|
423
|
+
aggregator_fund_id: Joi.string().allow("").allow(null),
|
|
424
|
+
});
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
/** @returns {PayoutItem} */
|
|
428
|
+
static PayoutItem() {
|
|
429
|
+
return Joi.object({
|
|
430
|
+
unique_transfer_no: Joi.string().allow(""),
|
|
431
|
+
more_attributes: PaymentPartnerModel.MoreAttributes(),
|
|
432
|
+
transfer_type: Joi.string().allow(""),
|
|
433
|
+
is_default: Joi.boolean(),
|
|
434
|
+
is_active: Joi.boolean(),
|
|
435
|
+
customers: PaymentPartnerModel.Customers(),
|
|
436
|
+
payouts_aggregators: Joi.array().items(
|
|
437
|
+
PaymentPartnerModel.PayoutsAggregator()
|
|
438
|
+
),
|
|
439
|
+
});
|
|
440
|
+
}
|
|
441
|
+
}
|
|
442
|
+
module.exports = PaymentPartnerModel;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export = PaymentValidator;
|
|
2
|
+
declare class PaymentValidator {
|
|
3
|
+
static getPaymentconfig(): any;
|
|
4
|
+
static getPayout(): any;
|
|
5
|
+
static postPayout(): any;
|
|
6
|
+
static updatePayout(): any;
|
|
7
|
+
static putPayout(): any;
|
|
8
|
+
static deletePayout(): any;
|
|
9
|
+
static getPayouts(): any;
|
|
10
|
+
static postPayouts(): any;
|
|
11
|
+
static updatePayouts(): any;
|
|
12
|
+
static putPayouts(): any;
|
|
13
|
+
static deletePayouts(): any;
|
|
14
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
const Joi = require("joi");
|
|
2
|
+
|
|
3
|
+
const PaymentModel = require("./PaymentPartnerModel");
|
|
4
|
+
class PaymentValidator {
|
|
5
|
+
static getPaymentconfig() {
|
|
6
|
+
return Joi.object({}).required();
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
static getPayout() {
|
|
10
|
+
return Joi.object({
|
|
11
|
+
uniqueExternalId: Joi.number().required(),
|
|
12
|
+
}).required();
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
static postPayout() {
|
|
16
|
+
return Joi.object({
|
|
17
|
+
body: PaymentModel.PostPayoutRequest().required(),
|
|
18
|
+
}).required();
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
static updatePayout() {
|
|
22
|
+
return Joi.object({
|
|
23
|
+
body: PaymentModel.PostPayoutRequest().required(),
|
|
24
|
+
}).required();
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
static putPayout() {
|
|
28
|
+
return Joi.object({
|
|
29
|
+
body: PaymentModel.PostPayoutRequest().required(),
|
|
30
|
+
}).required();
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
static deletePayout() {
|
|
34
|
+
return Joi.object({
|
|
35
|
+
uniqueExternalId: Joi.number().required(),
|
|
36
|
+
}).required();
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
static getPayouts() {
|
|
40
|
+
return Joi.object({
|
|
41
|
+
uniqueTransferNo: Joi.string().allow("").required(),
|
|
42
|
+
uniqueExternalId: Joi.number().required(),
|
|
43
|
+
}).required();
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
static postPayouts() {
|
|
47
|
+
return Joi.object({
|
|
48
|
+
uniqueTransferNo: Joi.string().allow("").required(),
|
|
49
|
+
body: PaymentModel.PostPayoutRequest().required(),
|
|
50
|
+
}).required();
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
static updatePayouts() {
|
|
54
|
+
return Joi.object({
|
|
55
|
+
uniqueTransferNo: Joi.string().allow("").required(),
|
|
56
|
+
body: PaymentModel.PostPayoutRequest().required(),
|
|
57
|
+
}).required();
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
static putPayouts() {
|
|
61
|
+
return Joi.object({
|
|
62
|
+
uniqueTransferNo: Joi.string().allow("").required(),
|
|
63
|
+
body: PaymentModel.PostPayoutRequest().required(),
|
|
64
|
+
}).required();
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
static deletePayouts() {
|
|
68
|
+
return Joi.object({
|
|
69
|
+
uniqueTransferNo: Joi.number().required(),
|
|
70
|
+
}).required();
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
module.exports = PaymentValidator;
|
|
@@ -8,7 +8,7 @@ declare class Theme {
|
|
|
8
8
|
* @param {import("../PartnerAPIClient").Options} - Options
|
|
9
9
|
* @returns {Promise<ThemePartnerModel.AllAvailablePageSchema>} - Success response
|
|
10
10
|
* @name getAllPages
|
|
11
|
-
* @summary: Get all pages
|
|
11
|
+
* @summary: Get all pages.
|
|
12
12
|
* @description: Retrieve a list of all pages available in the partner server setup. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/theme/getAllPages/).
|
|
13
13
|
*/
|
|
14
14
|
getAllPages({ companyId, applicationId, themeId, requestHeaders }?: ThemePartnerValidator.GetAllPagesParam, { responseHeaders }?: object): Promise<ThemePartnerModel.AllAvailablePageSchema>;
|
|
@@ -68,7 +68,7 @@ declare class Theme {
|
|
|
68
68
|
* @param {import("../PartnerAPIClient").Options} - Options
|
|
69
69
|
* @returns {Promise<ThemePartnerModel.ThemesSchema[]>} - Success response
|
|
70
70
|
* @name getApplicationThemes
|
|
71
|
-
* @summary: Get application themes
|
|
71
|
+
* @summary: Get application themes.
|
|
72
72
|
* @description: Retrieve a list of themes available for the partner server application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/theme/getApplicationThemes/).
|
|
73
73
|
*/
|
|
74
74
|
getApplicationThemes({ companyId, applicationId, requestHeaders }?: ThemePartnerValidator.GetApplicationThemesParam, { responseHeaders }?: object): Promise<ThemePartnerModel.ThemesSchema[]>;
|
|
@@ -98,7 +98,7 @@ declare class Theme {
|
|
|
98
98
|
* @param {import("../PartnerAPIClient").Options} - Options
|
|
99
99
|
* @returns {Promise<ThemePartnerModel.ThemesSchema>} - Success response
|
|
100
100
|
* @name deleteTheme
|
|
101
|
-
* @summary: Delete theme
|
|
101
|
+
* @summary: Delete theme.
|
|
102
102
|
* @description: Remove a theme from the partner server configurations. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/theme/deleteTheme/).
|
|
103
103
|
*/
|
|
104
104
|
deleteTheme({ companyId, applicationId, themeId, requestHeaders }?: ThemePartnerValidator.DeleteThemeParam, { responseHeaders }?: object): Promise<ThemePartnerModel.ThemesSchema>;
|
|
@@ -172,56 +172,68 @@ declare class Theme {
|
|
|
172
172
|
* @description: Add a new theme to partner server organizations. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/theme/createNewThemeInOrganization/).
|
|
173
173
|
*/
|
|
174
174
|
createNewThemeInOrganization({ body, slug, requestHeaders }?: ThemePartnerValidator.CreateNewThemeInOrganizationParam, { responseHeaders }?: object): Promise<ThemePartnerModel.MarketplaceTheme>;
|
|
175
|
+
/**
|
|
176
|
+
* @param {ThemePartnerValidator.GetThemeRejectionReasonsParam} arg - Arg object.
|
|
177
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
178
|
+
* @param {import("../PartnerAPIClient").Options} - Options
|
|
179
|
+
* @returns {Promise<ThemePartnerModel.ThemeRejectionReasons>} - Success response
|
|
180
|
+
* @name getThemeRejectionReasons
|
|
181
|
+
* @summary: Get theme rejection reasons.
|
|
182
|
+
* @description: Retrieve reasons for the rejection of themes within partner server organizations. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/theme/getThemeRejectionReasons/).
|
|
183
|
+
*/
|
|
184
|
+
getThemeRejectionReasons({ themeId, requestHeaders }?: ThemePartnerValidator.GetThemeRejectionReasonsParam, { responseHeaders }?: object): Promise<ThemePartnerModel.ThemeRejectionReasons>;
|
|
175
185
|
/**
|
|
176
186
|
* @param {ThemePartnerValidator.CreateExtensionSectionDraftParam} arg - Arg object.
|
|
177
187
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
178
188
|
* @param {import("../PartnerAPIClient").Options} - Options
|
|
179
|
-
* @returns {Promise<ThemePartnerModel.
|
|
189
|
+
* @returns {Promise<ThemePartnerModel.DraftExtensionSectionResponse>} -
|
|
190
|
+
* Success response
|
|
180
191
|
* @name createExtensionSectionDraft
|
|
181
192
|
* @summary: Draft extension section
|
|
182
193
|
* @description: Create a new draft for an extension section within the specified organization. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/theme/createExtensionSectionDraft/).
|
|
183
194
|
*/
|
|
184
|
-
createExtensionSectionDraft({ extensionId, body, requestHeaders }?: ThemePartnerValidator.CreateExtensionSectionDraftParam, { responseHeaders }?: object): Promise<ThemePartnerModel.
|
|
195
|
+
createExtensionSectionDraft({ extensionId, body, requestHeaders }?: ThemePartnerValidator.CreateExtensionSectionDraftParam, { responseHeaders }?: object): Promise<ThemePartnerModel.DraftExtensionSectionResponse>;
|
|
196
|
+
/**
|
|
197
|
+
* @param {ThemePartnerValidator.GetExtensionbindingParam} arg - Arg object.
|
|
198
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
199
|
+
* @param {import("../PartnerAPIClient").Options} - Options
|
|
200
|
+
* @returns {Promise<ThemePartnerModel.ExtensionBinding>} - Success response
|
|
201
|
+
* @name getExtensionbinding
|
|
202
|
+
* @summary: Get extension binding
|
|
203
|
+
* @description: Get the details for extension binding. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/theme/getExtensionbinding/).
|
|
204
|
+
*/
|
|
205
|
+
getExtensionbinding({ extensionId, bundleName, type, requestHeaders }?: ThemePartnerValidator.GetExtensionbindingParam, { responseHeaders }?: object): Promise<ThemePartnerModel.ExtensionBinding>;
|
|
185
206
|
/**
|
|
186
207
|
* @param {ThemePartnerValidator.PublishExtensionSectionsParam} arg - Arg object.
|
|
187
208
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
188
209
|
* @param {import("../PartnerAPIClient").Options} - Options
|
|
189
|
-
* @returns {Promise<ThemePartnerModel.
|
|
210
|
+
* @returns {Promise<ThemePartnerModel.PublishExtensionSectionResponse>} -
|
|
211
|
+
* Success response
|
|
190
212
|
* @name publishExtensionSections
|
|
191
213
|
* @summary: Publish an extension section
|
|
192
214
|
* @description: Publish a draft extension section within the specified organization. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/theme/publishExtensionSections/).
|
|
193
215
|
*/
|
|
194
|
-
publishExtensionSections({ extensionId, body, requestHeaders }?: ThemePartnerValidator.PublishExtensionSectionsParam, { responseHeaders }?: object): Promise<ThemePartnerModel.
|
|
216
|
+
publishExtensionSections({ extensionId, body, requestHeaders }?: ThemePartnerValidator.PublishExtensionSectionsParam, { responseHeaders }?: object): Promise<ThemePartnerModel.PublishExtensionSectionResponse>;
|
|
195
217
|
/**
|
|
196
218
|
* @param {ThemePartnerValidator.ApplyExtensionPreviewParam} arg - Arg object.
|
|
197
219
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
198
220
|
* @param {import("../PartnerAPIClient").Options} - Options
|
|
199
|
-
* @returns {Promise<ThemePartnerModel.
|
|
221
|
+
* @returns {Promise<ThemePartnerModel.ExtensionPreviewResponse>} - Success response
|
|
200
222
|
* @name applyExtensionPreview
|
|
201
223
|
* @summary: Start a Preview of Extension Section
|
|
202
224
|
* @description: Use this API to start a local session for previewing the extension section binding. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/theme/applyExtensionPreview/).
|
|
203
225
|
*/
|
|
204
|
-
applyExtensionPreview({ extensionSectionId, body, requestHeaders }?: ThemePartnerValidator.ApplyExtensionPreviewParam, { responseHeaders }?: object): Promise<ThemePartnerModel.
|
|
226
|
+
applyExtensionPreview({ extensionSectionId, body, requestHeaders }?: ThemePartnerValidator.ApplyExtensionPreviewParam, { responseHeaders }?: object): Promise<ThemePartnerModel.ExtensionPreviewResponse>;
|
|
205
227
|
/**
|
|
206
228
|
* @param {ThemePartnerValidator.RemoveExtensionPreviewParam} arg - Arg object.
|
|
207
229
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
208
230
|
* @param {import("../PartnerAPIClient").Options} - Options
|
|
209
|
-
* @returns {Promise<ThemePartnerModel.
|
|
231
|
+
* @returns {Promise<ThemePartnerModel.ExtensionPreviewResponse>} - Success response
|
|
210
232
|
* @name removeExtensionPreview
|
|
211
233
|
* @summary: Close a Preview of Extension Section
|
|
212
234
|
* @description: Use this API to close a local session for previewing the extension section binding - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/theme/removeExtensionPreview/).
|
|
213
235
|
*/
|
|
214
|
-
removeExtensionPreview({ extensionSectionId, body, requestHeaders }?: ThemePartnerValidator.RemoveExtensionPreviewParam, { responseHeaders }?: object): Promise<ThemePartnerModel.
|
|
215
|
-
/**
|
|
216
|
-
* @param {ThemePartnerValidator.GetThemeRejectionReasonsParam} arg - Arg object.
|
|
217
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
218
|
-
* @param {import("../PartnerAPIClient").Options} - Options
|
|
219
|
-
* @returns {Promise<ThemePartnerModel.ThemeRejectionReasons>} - Success response
|
|
220
|
-
* @name getThemeRejectionReasons
|
|
221
|
-
* @summary: Get theme rejection reasons
|
|
222
|
-
* @description: Retrieve reasons for the rejection of themes within partner server organizations. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/theme/getThemeRejectionReasons/).
|
|
223
|
-
*/
|
|
224
|
-
getThemeRejectionReasons({ themeId, requestHeaders }?: ThemePartnerValidator.GetThemeRejectionReasonsParam, { responseHeaders }?: object): Promise<ThemePartnerModel.ThemeRejectionReasons>;
|
|
236
|
+
removeExtensionPreview({ extensionSectionId, body, requestHeaders }?: ThemePartnerValidator.RemoveExtensionPreviewParam, { responseHeaders }?: object): Promise<ThemePartnerModel.ExtensionPreviewResponse>;
|
|
225
237
|
/**
|
|
226
238
|
* @param {ThemePartnerValidator.GetThemeVersionsParam} arg - Arg object.
|
|
227
239
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -242,5 +254,35 @@ declare class Theme {
|
|
|
242
254
|
* @description: Themes improve the look and appearance of a website. Use this API to create a theme. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/theme/createTheme/).
|
|
243
255
|
*/
|
|
244
256
|
createTheme({ companyId, applicationId, body, requestHeaders }?: ThemePartnerValidator.CreateThemeParam, { responseHeaders }?: object): Promise<ThemePartnerModel.ThemesSchema>;
|
|
257
|
+
/**
|
|
258
|
+
* @param {ThemePartnerValidator.GetOrgnaizationDefaultThemeParam} arg - Arg object.
|
|
259
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
260
|
+
* @param {import("../PartnerAPIClient").Options} - Options
|
|
261
|
+
* @returns {Promise<ThemePartnerModel.MarketplaceTheme>} - Success response
|
|
262
|
+
* @name getOrgnaizationDefaultTheme
|
|
263
|
+
* @summary: Get organization default theme details.
|
|
264
|
+
* @description: Obtain detailed information about a theme within partner server organizations. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/theme/getOrgnaizationDefaultTheme/).
|
|
265
|
+
*/
|
|
266
|
+
getOrgnaizationDefaultTheme({ companyId, applicationId, requestHeaders }?: ThemePartnerValidator.GetOrgnaizationDefaultThemeParam, { responseHeaders }?: object): Promise<ThemePartnerModel.MarketplaceTheme>;
|
|
267
|
+
/**
|
|
268
|
+
* @param {ThemePartnerValidator.GetSystemPageParam} arg - Arg object.
|
|
269
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
270
|
+
* @param {import("../PartnerAPIClient").Options} - Options
|
|
271
|
+
* @returns {Promise<ThemePartnerModel.DefaultPageSchema>} - Success response
|
|
272
|
+
* @name getSystemPage
|
|
273
|
+
* @summary: Get system page.
|
|
274
|
+
* @description: Obtain detailed information about a system page within partner server organizations. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/theme/getSystemPage/).
|
|
275
|
+
*/
|
|
276
|
+
getSystemPage({ companyId, applicationId, pageValue, requestHeaders }?: ThemePartnerValidator.GetSystemPageParam, { responseHeaders }?: object): Promise<ThemePartnerModel.DefaultPageSchema>;
|
|
277
|
+
/**
|
|
278
|
+
* @param {ThemePartnerValidator.GetAppliedThemeParam} arg - Arg object.
|
|
279
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
280
|
+
* @param {import("../PartnerAPIClient").Options} - Options
|
|
281
|
+
* @returns {Promise<ThemePartnerModel.ThemesSchema>} - Success response
|
|
282
|
+
* @name getAppliedTheme
|
|
283
|
+
* @summary: Current theme.
|
|
284
|
+
* @description: Gets the theme currently applied to the application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/theme/getAppliedTheme/).
|
|
285
|
+
*/
|
|
286
|
+
getAppliedTheme({ companyId, applicationId, requestHeaders }?: ThemePartnerValidator.GetAppliedThemeParam, { responseHeaders }?: object): Promise<ThemePartnerModel.ThemesSchema>;
|
|
245
287
|
}
|
|
246
288
|
import ThemePartnerModel = require("./ThemePartnerModel");
|