@gofynd/fdk-client-javascript 3.0.0-beta.1 → 3.0.0
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 +2 -0
- package/sdk/application/ApplicationClient.js +2 -0
- package/sdk/application/Cart/CartApplicationClient.d.ts +93 -113
- package/sdk/application/Cart/CartApplicationClient.js +157 -530
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +110 -110
- package/sdk/application/Catalog/CatalogApplicationClient.js +214 -447
- package/sdk/application/Common/CommonApplicationClient.d.ts +4 -4
- package/sdk/application/Common/CommonApplicationClient.js +4 -19
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +3 -43
- package/sdk/application/Communication/CommunicationApplicationClient.js +4 -214
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +41 -54
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +39 -192
- package/sdk/application/Content/ContentApplicationClient.d.ts +65 -55
- package/sdk/application/Content/ContentApplicationClient.js +211 -341
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +6 -6
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +14 -33
- package/sdk/application/Finance/FinanceApplicationClient.d.ts +29 -0
- package/sdk/application/Finance/FinanceApplicationClient.js +111 -0
- package/sdk/application/Lead/LeadApplicationClient.d.ts +6 -6
- package/sdk/application/Lead/LeadApplicationClient.js +24 -55
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +32 -87
- package/sdk/application/Logistic/LogisticApplicationClient.js +126 -383
- package/sdk/application/Order/OrderApplicationClient.d.ts +31 -51
- package/sdk/application/Order/OrderApplicationClient.js +89 -293
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +108 -218
- package/sdk/application/Payment/PaymentApplicationClient.js +100 -1081
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +14 -14
- package/sdk/application/Rewards/RewardsApplicationClient.js +13 -66
- package/sdk/application/Share/ShareApplicationClient.d.ts +11 -11
- package/sdk/application/Share/ShareApplicationClient.js +35 -89
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +5 -25
- package/sdk/application/Theme/ThemeApplicationClient.js +24 -150
- package/sdk/application/User/UserApplicationClient.d.ts +23 -13
- package/sdk/application/User/UserApplicationClient.js +49 -407
- package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -4
- package/sdk/application/Webhook/WebhookApplicationClient.js +4 -11
- package/sdk/common/Utility.d.ts +1 -1
- package/sdk/common/Utility.js +10 -7
- package/sdk/common/Validator.d.ts +1 -0
- package/sdk/common/Validator.js +20 -0
- package/sdk/common/utils.d.ts +0 -1
- package/sdk/common/utils.js +0 -14
- package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +18 -62
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +40 -372
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +99 -33
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +84 -25
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +1 -5
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +7 -38
- package/sdk/partner/Lead/LeadPartnerClient.d.ts +5 -5
- package/sdk/partner/Lead/LeadPartnerClient.js +4 -4
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +52 -98
- package/sdk/partner/Lead/LeadPartnerModel.js +76 -100
- package/sdk/partner/Lead/LeadPartnerValidator.js +1 -1
- package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +172 -41
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +1222 -85
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +1921 -297
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +973 -258
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +13 -1
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +148 -16
- package/sdk/partner/PartnerClient.d.ts +0 -6
- package/sdk/partner/PartnerClient.js +0 -9
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +21 -63
- package/sdk/partner/Theme/ThemePartnerClient.js +67 -392
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +72 -104
- package/sdk/partner/Theme/ThemePartnerModel.js +75 -101
- package/sdk/partner/Theme/ThemePartnerValidator.d.ts +1 -5
- package/sdk/partner/Theme/ThemePartnerValidator.js +12 -42
- package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +18 -18
- package/sdk/partner/Webhook/WebhookPartnerClient.js +18 -18
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +673 -189
- package/sdk/partner/Webhook/WebhookPartnerModel.js +270 -159
- package/sdk/partner/Webhook/WebhookPartnerValidator.js +3 -3
- package/sdk/partner/index.d.ts +0 -3
- package/sdk/partner/index.js +0 -6
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.d.ts +4 -1
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js +1 -1
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +3 -3
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +3 -3
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +2 -32
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +3 -243
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +49 -145
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +20 -171
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +1 -39
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +0 -35
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +15 -406
- package/sdk/platform/Billing/BillingPlatformClient.js +76 -3214
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +459 -3798
- package/sdk/platform/Billing/BillingPlatformModel.js +338 -2573
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +24 -465
- package/sdk/platform/Billing/BillingPlatformValidator.js +14 -490
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +205 -284
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +554 -672
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +165 -165
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +132 -108
- package/sdk/platform/Cart/CartPlatformModel.d.ts +4865 -3148
- package/sdk/platform/Cart/CartPlatformModel.js +2071 -2854
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +419 -1015
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +2004 -6444
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +226 -1117
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +127 -919
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +574 -372
- package/sdk/platform/Catalog/CatalogPlatformClient.js +1315 -1238
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +9334 -7634
- package/sdk/platform/Catalog/CatalogPlatformModel.js +6980 -9652
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +239 -294
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +186 -246
- package/sdk/platform/Common/CommonPlatformClient.d.ts +6 -5
- package/sdk/platform/Common/CommonPlatformClient.js +6 -5
- package/sdk/platform/Common/CommonPlatformModel.d.ts +19 -25
- package/sdk/platform/Common/CommonPlatformModel.js +11 -14
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +236 -376
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +579 -868
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +139 -170
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +126 -145
- package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +3 -56
- package/sdk/platform/Communication/CommunicationPlatformClient.js +4 -307
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +314 -422
- package/sdk/platform/Communication/CommunicationPlatformModel.js +382 -538
- package/sdk/platform/Communication/CommunicationPlatformValidator.d.ts +3 -62
- package/sdk/platform/Communication/CommunicationPlatformValidator.js +2 -48
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +72 -68
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +88 -84
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +270 -241
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +248 -226
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +20 -20
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +20 -20
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +118 -333
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +409 -1470
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +55 -158
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +41 -163
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +65 -142
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +103 -568
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +565 -1282
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +369 -1034
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +34 -80
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +24 -79
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +302 -246
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +1297 -776
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +330 -218
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +325 -208
- package/sdk/platform/Content/ContentPlatformClient.d.ts +279 -118
- package/sdk/platform/Content/ContentPlatformClient.js +1617 -492
- package/sdk/platform/Content/ContentPlatformModel.d.ts +2374 -877
- package/sdk/platform/Content/ContentPlatformModel.js +1304 -930
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +272 -134
- package/sdk/platform/Content/ContentPlatformValidator.js +295 -118
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +53 -43
- package/sdk/platform/Discount/DiscountPlatformClient.js +53 -43
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +383 -110
- package/sdk/platform/Discount/DiscountPlatformModel.js +117 -108
- package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +56 -36
- package/sdk/platform/Discount/DiscountPlatformValidator.js +29 -19
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +4 -163
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +4 -1078
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +5 -141
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +4 -177
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +8 -8
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +8 -8
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +30 -1123
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +24 -1135
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
- 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 +24 -4
- package/sdk/platform/Lead/LeadPlatformClient.js +160 -4
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +60 -140
- package/sdk/platform/Lead/LeadPlatformModel.js +81 -162
- package/sdk/platform/Lead/LeadPlatformValidator.d.ts +29 -3
- package/sdk/platform/Lead/LeadPlatformValidator.js +28 -2
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +19 -98
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +27 -662
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +91 -118
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +32 -127
- package/sdk/platform/Order/OrderPlatformClient.d.ts +421 -418
- package/sdk/platform/Order/OrderPlatformClient.js +1194 -1350
- package/sdk/platform/Order/OrderPlatformModel.d.ts +9145 -4107
- package/sdk/platform/Order/OrderPlatformModel.js +4257 -3197
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +641 -442
- package/sdk/platform/Order/OrderPlatformValidator.js +341 -311
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +6 -4
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +9 -7
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +67 -19
- package/sdk/platform/Partner/PartnerPlatformModel.js +26 -17
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +135 -382
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +934 -2452
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +93 -306
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +70 -305
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +56 -66
- package/sdk/platform/Payment/PaymentPlatformClient.js +124 -269
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +1327 -3529
- package/sdk/platform/Payment/PaymentPlatformModel.js +1397 -3693
- package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +35 -64
- package/sdk/platform/Payment/PaymentPlatformValidator.js +34 -60
- package/sdk/platform/PlatformClient.d.ts +0 -2
- package/sdk/platform/PlatformClient.js +0 -4
- 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 +12 -12
- package/sdk/platform/Rewards/RewardsPlatformModel.js +10 -10
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +64 -136
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +111 -513
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +75 -103
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +50 -99
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +162 -127
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +775 -435
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +6250 -3861
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +3178 -3798
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +295 -199
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +205 -133
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +16 -4
- package/sdk/platform/Share/SharePlatformApplicationClient.js +86 -8
- package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +23 -6
- package/sdk/platform/Share/SharePlatformApplicationValidator.js +16 -3
- package/sdk/platform/Share/SharePlatformModel.d.ts +53 -4
- package/sdk/platform/Share/SharePlatformModel.js +45 -3
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +4 -26
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +10 -157
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +10 -21
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +6 -23
- package/sdk/platform/Theme/ThemePlatformClient.d.ts +8 -18
- package/sdk/platform/Theme/ThemePlatformClient.js +8 -85
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +17 -425
- package/sdk/platform/Theme/ThemePlatformModel.js +23 -329
- package/sdk/platform/Theme/ThemePlatformValidator.d.ts +3 -7
- package/sdk/platform/Theme/ThemePlatformValidator.js +2 -9
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +81 -18
- package/sdk/platform/User/UserPlatformApplicationClient.js +491 -27
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +126 -10
- package/sdk/platform/User/UserPlatformApplicationValidator.js +92 -7
- package/sdk/platform/User/UserPlatformModel.d.ts +317 -218
- package/sdk/platform/User/UserPlatformModel.js +253 -210
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +25 -78
- package/sdk/platform/Webhook/WebhookPlatformClient.js +75 -470
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +813 -426
- package/sdk/platform/Webhook/WebhookPlatformModel.js +446 -395
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +10 -55
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +12 -72
- package/sdk/platform/index.d.ts +0 -1
- package/sdk/platform/index.js +0 -2
- package/sdk/public/Catalog/CatalogPublicClient.d.ts +22 -0
- package/sdk/public/Catalog/CatalogPublicClient.js +133 -0
- package/sdk/public/Catalog/CatalogPublicModel.d.ts +158 -0
- package/sdk/public/Catalog/CatalogPublicModel.js +116 -0
- package/sdk/public/Catalog/CatalogPublicValidator.d.ts +55 -0
- package/sdk/public/Catalog/CatalogPublicValidator.js +35 -0
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +4 -14
- package/sdk/public/Configuration/ConfigurationPublicClient.js +10 -113
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +46 -114
- package/sdk/public/Configuration/ConfigurationPublicModel.js +32 -117
- package/sdk/public/Configuration/ConfigurationPublicValidator.d.ts +1 -11
- package/sdk/public/Configuration/ConfigurationPublicValidator.js +0 -12
- package/sdk/public/Content/ContentPublicClient.d.ts +36 -25
- package/sdk/public/Content/ContentPublicClient.js +254 -280
- package/sdk/public/Content/ContentPublicModel.d.ts +151 -38
- package/sdk/public/Content/ContentPublicModel.js +98 -44
- package/sdk/public/Content/ContentPublicValidator.d.ts +18 -17
- package/sdk/public/Content/ContentPublicValidator.js +26 -19
- package/sdk/public/Partner/PartnerPublicClient.d.ts +1 -1
- package/sdk/public/Partner/PartnerPublicClient.js +6 -11
- package/sdk/public/Partner/PartnerPublicModel.d.ts +248 -72
- package/sdk/public/Partner/PartnerPublicModel.js +81 -71
- package/sdk/public/Partner/PartnerPublicValidator.d.ts +2 -2
- package/sdk/public/Partner/PartnerPublicValidator.js +1 -1
- package/sdk/public/PublicClient.d.ts +2 -2
- package/sdk/public/PublicClient.js +2 -2
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
- package/sdk/public/Webhook/WebhookPublicClient.js +9 -48
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +215 -67
- package/sdk/public/Webhook/WebhookPublicModel.js +66 -61
- package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
- package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
- package/sdk/public/index.d.ts +1 -1
- package/sdk/public/index.js +1 -1
- package/sdk/partner/Authorization/AuthorizationPartnerClient.d.ts +0 -66
- package/sdk/partner/Authorization/AuthorizationPartnerClient.js +0 -431
- package/sdk/partner/Authorization/AuthorizationPartnerModel.d.ts +0 -231
- package/sdk/partner/Authorization/AuthorizationPartnerModel.js +0 -152
- package/sdk/partner/Authorization/AuthorizationPartnerValidator.d.ts +0 -8
- package/sdk/partner/Authorization/AuthorizationPartnerValidator.js +0 -39
- package/sdk/partner/Catalog/CatalogPartnerClient.d.ts +0 -26
- package/sdk/partner/Catalog/CatalogPartnerClient.js +0 -173
- package/sdk/partner/Catalog/CatalogPartnerModel.d.ts +0 -238
- package/sdk/partner/Catalog/CatalogPartnerModel.js +0 -248
- package/sdk/partner/Catalog/CatalogPartnerValidator.d.ts +0 -5
- package/sdk/partner/Catalog/CatalogPartnerValidator.js +0 -19
- package/sdk/partner/Payment/PaymentPartnerClient.d.ts +0 -116
- package/sdk/partner/Payment/PaymentPartnerClient.js +0 -857
- package/sdk/partner/Payment/PaymentPartnerModel.d.ts +0 -388
- package/sdk/partner/Payment/PaymentPartnerModel.js +0 -442
- package/sdk/partner/Payment/PaymentPartnerValidator.d.ts +0 -14
- package/sdk/partner/Payment/PaymentPartnerValidator.js +0 -74
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +0 -320
- package/sdk/platform/Finance/FinancePlatformClient.js +0 -2333
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +0 -2895
- package/sdk/platform/Finance/FinancePlatformModel.js +0 -2150
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +0 -284
- package/sdk/platform/Finance/FinancePlatformValidator.js +0 -354
- package/sdk/public/Billing/BillingPublicClient.d.ts +0 -56
- package/sdk/public/Billing/BillingPublicClient.js +0 -397
- package/sdk/public/Billing/BillingPublicModel.d.ts +0 -919
- package/sdk/public/Billing/BillingPublicModel.js +0 -560
- package/sdk/public/Billing/BillingPublicValidator.d.ts +0 -43
- package/sdk/public/Billing/BillingPublicValidator.js +0 -50
|
@@ -9,9 +9,9 @@ const CartPlatformModel = require("./CartPlatformModel");
|
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* @typedef AddItemsParam
|
|
12
|
-
* @property {string} cartId - Current Cart
|
|
12
|
+
* @property {string} cartId - Current Cart id of user cart
|
|
13
13
|
* @property {boolean} [b]
|
|
14
|
-
* @property {CartPlatformModel.
|
|
14
|
+
* @property {CartPlatformModel.AddCartCreation} body
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
/**
|
|
@@ -26,12 +26,12 @@ const CartPlatformModel = require("./CartPlatformModel");
|
|
|
26
26
|
* @property {boolean} [p]
|
|
27
27
|
* @property {string} [id]
|
|
28
28
|
* @property {boolean} [buyNow]
|
|
29
|
-
* @property {CartPlatformModel.
|
|
29
|
+
* @property {CartPlatformModel.ApplyCouponDetails} body
|
|
30
30
|
*/
|
|
31
31
|
|
|
32
32
|
/**
|
|
33
33
|
* @typedef CheckCartServiceabilityParam
|
|
34
|
-
* @property {CartPlatformModel.
|
|
34
|
+
* @property {CartPlatformModel.OpenApiCartServiceabilityCreation} body
|
|
35
35
|
*/
|
|
36
36
|
|
|
37
37
|
/**
|
|
@@ -57,21 +57,26 @@ const CartPlatformModel = require("./CartPlatformModel");
|
|
|
57
57
|
/**
|
|
58
58
|
* @typedef DeleteCartParam
|
|
59
59
|
* @property {string} [id] - The unique identifier of the cart.
|
|
60
|
-
* @property {
|
|
61
|
-
|
|
60
|
+
* @property {CartPlatformModel.DeleteCartDetails} body
|
|
61
|
+
*/
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* @typedef DeleteCouponParam
|
|
65
|
+
* @property {string} id
|
|
62
66
|
*/
|
|
63
67
|
|
|
64
68
|
/**
|
|
65
|
-
* @typedef
|
|
66
|
-
* @property {string}
|
|
67
|
-
* meta data for editing
|
|
69
|
+
* @typedef DeletePromotionParam
|
|
70
|
+
* @property {string} id
|
|
68
71
|
*/
|
|
69
72
|
|
|
70
73
|
/**
|
|
71
74
|
* @typedef FetchAndvalidateCartItemsParam
|
|
72
|
-
* @property {CartPlatformModel.
|
|
75
|
+
* @property {CartPlatformModel.OpenapiCartDetailsCreation} body
|
|
73
76
|
*/
|
|
74
77
|
|
|
78
|
+
/** @typedef FetchCartMetaConfigParam */
|
|
79
|
+
|
|
75
80
|
/**
|
|
76
81
|
* @typedef GetAbandonedCartParam
|
|
77
82
|
* @property {number} [pageNo]
|
|
@@ -132,6 +137,9 @@ const CartPlatformModel = require("./CartPlatformModel");
|
|
|
132
137
|
* @typedef GetCartParam
|
|
133
138
|
* @property {string} [id] - The unique identifier of the cart
|
|
134
139
|
* @property {string} [userId] - Option to fetch cart for the provided user_id.
|
|
140
|
+
* @property {string} [orderType] - The order type of shipment HomeDelivery - If
|
|
141
|
+
* the customer wants the order home-delivered PickAtStore - If the customer
|
|
142
|
+
* wants the handover of an order at the store itself.
|
|
135
143
|
* @property {boolean} [i] - This is a boolean value. Select `true` to retrieve
|
|
136
144
|
* all the items added in the cart.
|
|
137
145
|
* @property {boolean} [b] - This is a boolean value. Select `true` to retrieve
|
|
@@ -139,7 +147,6 @@ const CartPlatformModel = require("./CartPlatformModel");
|
|
|
139
147
|
* @property {number} [assignCardId] - Token of user's debit or credit card
|
|
140
148
|
* @property {boolean} [buyNow] - This is a boolen value. Select `true` to
|
|
141
149
|
* set/initialize buy now cart
|
|
142
|
-
* @property {string} [cartType] - The type of cart
|
|
143
150
|
*/
|
|
144
151
|
|
|
145
152
|
/**
|
|
@@ -149,17 +156,9 @@ const CartPlatformModel = require("./CartPlatformModel");
|
|
|
149
156
|
* @property {string} [filterOn]
|
|
150
157
|
*/
|
|
151
158
|
|
|
152
|
-
/**
|
|
153
|
-
* @typedef GetCartMetaConfigParam
|
|
154
|
-
* @property {string} cartMetaId - CartMeta mongo _id for fetching single cart
|
|
155
|
-
* meta data for editing
|
|
156
|
-
*/
|
|
157
|
-
|
|
158
|
-
/** @typedef GetCartMetaConfigsParam */
|
|
159
|
-
|
|
160
159
|
/**
|
|
161
160
|
* @typedef GetCartShareLinkParam
|
|
162
|
-
* @property {CartPlatformModel.
|
|
161
|
+
* @property {CartPlatformModel.GetShareCartLinkCreation} body
|
|
163
162
|
*/
|
|
164
163
|
|
|
165
164
|
/**
|
|
@@ -179,8 +178,6 @@ const CartPlatformModel = require("./CartPlatformModel");
|
|
|
179
178
|
|
|
180
179
|
/** @typedef GetCouponOptionValuesParam */
|
|
181
180
|
|
|
182
|
-
/** @typedef GetCouponTagsParam */
|
|
183
|
-
|
|
184
181
|
/**
|
|
185
182
|
* @typedef GetCouponsParam
|
|
186
183
|
* @property {number} [pageNo]
|
|
@@ -191,24 +188,30 @@ const CartPlatformModel = require("./CartPlatformModel");
|
|
|
191
188
|
* @property {boolean} [isDisplay]
|
|
192
189
|
* @property {string} [typeSlug]
|
|
193
190
|
* @property {string} [code]
|
|
191
|
+
* @property {string} [createdBy]
|
|
192
|
+
* @property {string} [reviewedBy]
|
|
193
|
+
* @property {string} [approvedStartTime]
|
|
194
|
+
* @property {string} [approvedEndTime]
|
|
195
|
+
* @property {string} [reviewStartTime]
|
|
196
|
+
* @property {string} [reviewEndTime]
|
|
197
|
+
* @property {string} [status]
|
|
194
198
|
*/
|
|
195
199
|
|
|
196
200
|
/**
|
|
197
201
|
* @typedef GetItemCountParam
|
|
198
202
|
* @property {string} [id] - The unique identifier of the cart.
|
|
199
203
|
* @property {boolean} [buyNow] - Boolean value to get buy_now cart.
|
|
200
|
-
* @property {string} [cartType] - The type of cart
|
|
201
204
|
*/
|
|
202
205
|
|
|
203
206
|
/**
|
|
204
207
|
* @typedef GetPriceAdjustmentsParam
|
|
205
|
-
* @property {string} cartId - Cart
|
|
208
|
+
* @property {string} cartId - Cart id of user cart
|
|
206
209
|
*/
|
|
207
210
|
|
|
208
211
|
/**
|
|
209
212
|
* @typedef GetPromosCouponConfigParam
|
|
210
|
-
* @property {string} [entityType] -
|
|
211
|
-
* @property {boolean} [isHidden] -
|
|
213
|
+
* @property {string} [entityType] - Entity type as promotion or coupon
|
|
214
|
+
* @property {boolean} [isHidden] - Promotion coupon config shown or not
|
|
212
215
|
*/
|
|
213
216
|
|
|
214
217
|
/**
|
|
@@ -221,7 +224,22 @@ const CartPlatformModel = require("./CartPlatformModel");
|
|
|
221
224
|
* @property {string} [code]
|
|
222
225
|
*/
|
|
223
226
|
|
|
224
|
-
/**
|
|
227
|
+
/**
|
|
228
|
+
* @typedef GetPromotionOffersParam
|
|
229
|
+
* @property {string} [slug] - A short, human-readable, URL-friendly identifier
|
|
230
|
+
* of a product. You can get slug value from the endpoint
|
|
231
|
+
* /service/application/catalog/v1.0/products/
|
|
232
|
+
* @property {number} [pageSize] - Number of offers to be fetched to show
|
|
233
|
+
* @property {string} [promotionGroup] - Type of promotion groups
|
|
234
|
+
* @property {number} [storeId] - Unique identifier of a store
|
|
235
|
+
* @property {string} [cartType] - The type of cart
|
|
236
|
+
*/
|
|
237
|
+
|
|
238
|
+
/**
|
|
239
|
+
* @typedef GetPromotionPaymentOffersParam
|
|
240
|
+
* @property {string} [id] - Cart id of the user cart
|
|
241
|
+
* @property {number} [uid] - Cart uid of the user cart
|
|
242
|
+
*/
|
|
225
243
|
|
|
226
244
|
/**
|
|
227
245
|
* @typedef GetPromotionsParam
|
|
@@ -233,6 +251,13 @@ const CartPlatformModel = require("./CartPlatformModel");
|
|
|
233
251
|
* @property {string} [promotionType]
|
|
234
252
|
* @property {string} [fpPanel]
|
|
235
253
|
* @property {string} [promotionId]
|
|
254
|
+
* @property {string} [createdBy]
|
|
255
|
+
* @property {string} [reviewedBy]
|
|
256
|
+
* @property {string} [approvedStartTime]
|
|
257
|
+
* @property {string} [approvedEndTime]
|
|
258
|
+
* @property {string} [reviewStartTime]
|
|
259
|
+
* @property {string} [reviewEndTime]
|
|
260
|
+
* @property {string} [status]
|
|
236
261
|
*/
|
|
237
262
|
|
|
238
263
|
/**
|
|
@@ -269,23 +294,23 @@ const CartPlatformModel = require("./CartPlatformModel");
|
|
|
269
294
|
* the price breakup of cart items.
|
|
270
295
|
* @property {boolean} [buyNow] - This is a boolen value. Select `true` to
|
|
271
296
|
* set/initialize buy now cart
|
|
297
|
+
* @property {string} [orderType] - The order type of shipment HomeDelivery - If
|
|
298
|
+
* the customer wants the order home-delivered PickAtStore - If the customer
|
|
299
|
+
* wants the handover of an order at the store itself.
|
|
272
300
|
* @property {string} [id] - The unique identifier of the cart
|
|
273
|
-
* @property {
|
|
274
|
-
* @property {CartPlatformModel.PlatformAddCartRequest} body
|
|
301
|
+
* @property {CartPlatformModel.PlatformAddCartDetails} body
|
|
275
302
|
*/
|
|
276
303
|
|
|
277
304
|
/**
|
|
278
305
|
* @typedef PlatformCheckoutCartParam
|
|
279
306
|
* @property {string} [id] - The unique identifier of the cart
|
|
280
|
-
* @property {
|
|
281
|
-
* @property {CartPlatformModel.PlatformCartCheckoutDetailRequest} body
|
|
307
|
+
* @property {CartPlatformModel.PlatformCartCheckoutDetailCreation} body
|
|
282
308
|
*/
|
|
283
309
|
|
|
284
310
|
/**
|
|
285
311
|
* @typedef PlatformCheckoutCartV2Param
|
|
286
312
|
* @property {string} [id] - The unique identifier of the cart
|
|
287
|
-
* @property {
|
|
288
|
-
* @property {CartPlatformModel.PlatformCartCheckoutDetailV2Request} body
|
|
313
|
+
* @property {CartPlatformModel.PlatformCartCheckoutDetailV2Creation} body
|
|
289
314
|
*/
|
|
290
315
|
|
|
291
316
|
/**
|
|
@@ -300,8 +325,7 @@ const CartPlatformModel = require("./CartPlatformModel");
|
|
|
300
325
|
* the price breakup of cart items.
|
|
301
326
|
* @property {boolean} [buyNow] - This is a boolen value. Select `true` to
|
|
302
327
|
* set/initialize buy now cart
|
|
303
|
-
* @property {
|
|
304
|
-
* @property {CartPlatformModel.PlatformUpdateCartRequest} body
|
|
328
|
+
* @property {CartPlatformModel.PlatformUpdateCartDetails} body
|
|
305
329
|
*/
|
|
306
330
|
|
|
307
331
|
/**
|
|
@@ -314,7 +338,6 @@ const CartPlatformModel = require("./CartPlatformModel");
|
|
|
314
338
|
* @typedef RemoveCouponParam
|
|
315
339
|
* @property {string} [uid]
|
|
316
340
|
* @property {boolean} [buyNow]
|
|
317
|
-
* @property {string} [cartType] - The type of cart
|
|
318
341
|
*/
|
|
319
342
|
|
|
320
343
|
/**
|
|
@@ -328,26 +351,22 @@ const CartPlatformModel = require("./CartPlatformModel");
|
|
|
328
351
|
* @property {boolean} [buyNow]
|
|
329
352
|
* @property {boolean} [i]
|
|
330
353
|
* @property {boolean} [b]
|
|
331
|
-
* @property {CartPlatformModel.
|
|
354
|
+
* @property {CartPlatformModel.PlatformSelectCartAddress} body
|
|
332
355
|
*/
|
|
333
356
|
|
|
334
357
|
/**
|
|
335
358
|
* @typedef SelectPaymentModeParam
|
|
336
359
|
* @property {string} [id]
|
|
337
360
|
* @property {boolean} [buyNow]
|
|
338
|
-
* @property {string} [orderType]
|
|
339
|
-
*
|
|
340
|
-
* wants the handover of an order at the store itself.
|
|
341
|
-
* @property {CartPlatformModel.UpdateCartPaymentRequest} body
|
|
361
|
+
* @property {string} [orderType]
|
|
362
|
+
* @property {CartPlatformModel.CartPaymentUpdate} body
|
|
342
363
|
*/
|
|
343
364
|
|
|
344
365
|
/**
|
|
345
366
|
* @typedef SelectPaymentModeV2Param
|
|
346
367
|
* @property {string} [id]
|
|
347
368
|
* @property {boolean} [buyNow]
|
|
348
|
-
* @property {string} [orderType]
|
|
349
|
-
* the customer wants the order home-delivered PickAtStore - If the customer
|
|
350
|
-
* wants the handover of an order at the store itself.
|
|
369
|
+
* @property {string} [orderType]
|
|
351
370
|
* @property {CartPlatformModel.UpdateCartPaymentRequestV2} body
|
|
352
371
|
*/
|
|
353
372
|
|
|
@@ -359,23 +378,22 @@ const CartPlatformModel = require("./CartPlatformModel");
|
|
|
359
378
|
|
|
360
379
|
/**
|
|
361
380
|
* @typedef UpdateCartParam
|
|
362
|
-
* @property {string} cartId - Current Cart
|
|
381
|
+
* @property {string} cartId - Current Cart id of user cart
|
|
363
382
|
* @property {boolean} [b]
|
|
364
|
-
* @property {CartPlatformModel.
|
|
383
|
+
* @property {CartPlatformModel.UpdateCartCreation} body
|
|
365
384
|
*/
|
|
366
385
|
|
|
367
386
|
/**
|
|
368
387
|
* @typedef UpdateCartMetaParam
|
|
369
388
|
* @property {string} [id]
|
|
370
389
|
* @property {boolean} [buyNow]
|
|
371
|
-
* @property {
|
|
372
|
-
* @property {CartPlatformModel.PlatformCartMetaRequest} body
|
|
390
|
+
* @property {CartPlatformModel.PlatformCartMetaCreation} body
|
|
373
391
|
*/
|
|
374
392
|
|
|
375
393
|
/**
|
|
376
394
|
* @typedef UpdateCartMetaConfigParam
|
|
377
|
-
* @property {string} cartMetaId - CartMeta
|
|
378
|
-
*
|
|
395
|
+
* @property {string} cartMetaId - CartMeta id for fetching single cart meta
|
|
396
|
+
* data for editing
|
|
379
397
|
* @property {CartPlatformModel.CartMetaConfigUpdate} body
|
|
380
398
|
*/
|
|
381
399
|
|
|
@@ -434,7 +452,7 @@ const CartPlatformModel = require("./CartPlatformModel");
|
|
|
434
452
|
* @property {string} [orderType] - The order type of shipment HomeDelivery - If
|
|
435
453
|
* the customer wants the order home-delivered PickAtStore - If the customer
|
|
436
454
|
* wants the handover of an order at the store itself.
|
|
437
|
-
* @property {CartPlatformModel.
|
|
455
|
+
* @property {CartPlatformModel.UpdateCartShipmentCreation} body
|
|
438
456
|
*/
|
|
439
457
|
|
|
440
458
|
/**
|
|
@@ -446,11 +464,6 @@ const CartPlatformModel = require("./CartPlatformModel");
|
|
|
446
464
|
* @property {string} [paymentIdentifier]
|
|
447
465
|
* @property {string} [aggregatorName]
|
|
448
466
|
* @property {string} [merchantCode]
|
|
449
|
-
* @property {string} [iin] - Debit/Credit card prefix (first 6 digit)
|
|
450
|
-
* @property {string} [network] - Credit/Debit card issuer, e.g. VISA, MASTERCARD, RUPAY
|
|
451
|
-
* @property {string} [type] - Card type, e.g. Credit, Debit
|
|
452
|
-
* @property {string} [cardId] - Saved card token reference id
|
|
453
|
-
* @property {string} [cartType] - Type of the cart
|
|
454
467
|
*/
|
|
455
468
|
|
|
456
469
|
class CartPlatformApplicationValidator {
|
|
@@ -466,7 +479,7 @@ class CartPlatformApplicationValidator {
|
|
|
466
479
|
return Joi.object({
|
|
467
480
|
cartId: Joi.string().allow("").required(),
|
|
468
481
|
b: Joi.boolean(),
|
|
469
|
-
body: CartPlatformModel.
|
|
482
|
+
body: CartPlatformModel.AddCartCreation().required(),
|
|
470
483
|
}).required();
|
|
471
484
|
}
|
|
472
485
|
|
|
@@ -485,14 +498,14 @@ class CartPlatformApplicationValidator {
|
|
|
485
498
|
p: Joi.boolean(),
|
|
486
499
|
id: Joi.string().allow(""),
|
|
487
500
|
buyNow: Joi.boolean(),
|
|
488
|
-
body: CartPlatformModel.
|
|
501
|
+
body: CartPlatformModel.ApplyCouponDetails().required(),
|
|
489
502
|
}).required();
|
|
490
503
|
}
|
|
491
504
|
|
|
492
505
|
/** @returns {CheckCartServiceabilityParam} */
|
|
493
506
|
static checkCartServiceability() {
|
|
494
507
|
return Joi.object({
|
|
495
|
-
body: CartPlatformModel.
|
|
508
|
+
body: CartPlatformModel.OpenApiCartServiceabilityCreation().required(),
|
|
496
509
|
}).required();
|
|
497
510
|
}
|
|
498
511
|
|
|
@@ -528,25 +541,36 @@ class CartPlatformApplicationValidator {
|
|
|
528
541
|
static deleteCart() {
|
|
529
542
|
return Joi.object({
|
|
530
543
|
id: Joi.string().allow(""),
|
|
531
|
-
|
|
532
|
-
body: CartPlatformModel.DeleteCartRequest().required(),
|
|
544
|
+
body: CartPlatformModel.DeleteCartDetails().required(),
|
|
533
545
|
}).required();
|
|
534
546
|
}
|
|
535
547
|
|
|
536
|
-
/** @returns {
|
|
537
|
-
static
|
|
548
|
+
/** @returns {DeleteCouponParam} */
|
|
549
|
+
static deleteCoupon() {
|
|
538
550
|
return Joi.object({
|
|
539
|
-
|
|
551
|
+
id: Joi.string().allow("").required(),
|
|
552
|
+
}).required();
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
/** @returns {DeletePromotionParam} */
|
|
556
|
+
static deletePromotion() {
|
|
557
|
+
return Joi.object({
|
|
558
|
+
id: Joi.string().allow("").required(),
|
|
540
559
|
}).required();
|
|
541
560
|
}
|
|
542
561
|
|
|
543
562
|
/** @returns {FetchAndvalidateCartItemsParam} */
|
|
544
563
|
static fetchAndvalidateCartItems() {
|
|
545
564
|
return Joi.object({
|
|
546
|
-
body: CartPlatformModel.
|
|
565
|
+
body: CartPlatformModel.OpenapiCartDetailsCreation().required(),
|
|
547
566
|
}).required();
|
|
548
567
|
}
|
|
549
568
|
|
|
569
|
+
/** @returns {FetchCartMetaConfigParam} */
|
|
570
|
+
static fetchCartMetaConfig() {
|
|
571
|
+
return Joi.object({}).required();
|
|
572
|
+
}
|
|
573
|
+
|
|
550
574
|
/** @returns {GetAbandonedCartParam} */
|
|
551
575
|
static getAbandonedCart() {
|
|
552
576
|
return Joi.object({
|
|
@@ -620,11 +644,11 @@ class CartPlatformApplicationValidator {
|
|
|
620
644
|
return Joi.object({
|
|
621
645
|
id: Joi.string().allow(""),
|
|
622
646
|
userId: Joi.string().allow(""),
|
|
647
|
+
orderType: Joi.string().allow(""),
|
|
623
648
|
i: Joi.boolean(),
|
|
624
649
|
b: Joi.boolean(),
|
|
625
650
|
assignCardId: Joi.number(),
|
|
626
651
|
buyNow: Joi.boolean(),
|
|
627
|
-
cartType: Joi.string().allow(""),
|
|
628
652
|
}).required();
|
|
629
653
|
}
|
|
630
654
|
|
|
@@ -637,22 +661,10 @@ class CartPlatformApplicationValidator {
|
|
|
637
661
|
}).required();
|
|
638
662
|
}
|
|
639
663
|
|
|
640
|
-
/** @returns {GetCartMetaConfigParam} */
|
|
641
|
-
static getCartMetaConfig() {
|
|
642
|
-
return Joi.object({
|
|
643
|
-
cartMetaId: Joi.string().allow("").required(),
|
|
644
|
-
}).required();
|
|
645
|
-
}
|
|
646
|
-
|
|
647
|
-
/** @returns {GetCartMetaConfigsParam} */
|
|
648
|
-
static getCartMetaConfigs() {
|
|
649
|
-
return Joi.object({}).required();
|
|
650
|
-
}
|
|
651
|
-
|
|
652
664
|
/** @returns {GetCartShareLinkParam} */
|
|
653
665
|
static getCartShareLink() {
|
|
654
666
|
return Joi.object({
|
|
655
|
-
body: CartPlatformModel.
|
|
667
|
+
body: CartPlatformModel.GetShareCartLinkCreation().required(),
|
|
656
668
|
}).required();
|
|
657
669
|
}
|
|
658
670
|
|
|
@@ -682,11 +694,6 @@ class CartPlatformApplicationValidator {
|
|
|
682
694
|
return Joi.object({}).required();
|
|
683
695
|
}
|
|
684
696
|
|
|
685
|
-
/** @returns {GetCouponTagsParam} */
|
|
686
|
-
static getCouponTags() {
|
|
687
|
-
return Joi.object({}).required();
|
|
688
|
-
}
|
|
689
|
-
|
|
690
697
|
/** @returns {GetCouponsParam} */
|
|
691
698
|
static getCoupons() {
|
|
692
699
|
return Joi.object({
|
|
@@ -698,6 +705,13 @@ class CartPlatformApplicationValidator {
|
|
|
698
705
|
isDisplay: Joi.boolean(),
|
|
699
706
|
typeSlug: Joi.string().allow(""),
|
|
700
707
|
code: Joi.string().allow(""),
|
|
708
|
+
createdBy: Joi.string().allow(""),
|
|
709
|
+
reviewedBy: Joi.string().allow(""),
|
|
710
|
+
approvedStartTime: Joi.string().allow(""),
|
|
711
|
+
approvedEndTime: Joi.string().allow(""),
|
|
712
|
+
reviewStartTime: Joi.string().allow(""),
|
|
713
|
+
reviewEndTime: Joi.string().allow(""),
|
|
714
|
+
status: Joi.string().allow(""),
|
|
701
715
|
}).required();
|
|
702
716
|
}
|
|
703
717
|
|
|
@@ -706,7 +720,6 @@ class CartPlatformApplicationValidator {
|
|
|
706
720
|
return Joi.object({
|
|
707
721
|
id: Joi.string().allow(""),
|
|
708
722
|
buyNow: Joi.boolean(),
|
|
709
|
-
cartType: Joi.string().allow(""),
|
|
710
723
|
}).required();
|
|
711
724
|
}
|
|
712
725
|
|
|
@@ -739,9 +752,23 @@ class CartPlatformApplicationValidator {
|
|
|
739
752
|
}).required();
|
|
740
753
|
}
|
|
741
754
|
|
|
742
|
-
/** @returns {
|
|
743
|
-
static
|
|
744
|
-
return Joi.object({
|
|
755
|
+
/** @returns {GetPromotionOffersParam} */
|
|
756
|
+
static getPromotionOffers() {
|
|
757
|
+
return Joi.object({
|
|
758
|
+
slug: Joi.string().allow(""),
|
|
759
|
+
pageSize: Joi.number(),
|
|
760
|
+
promotionGroup: Joi.string().allow(""),
|
|
761
|
+
storeId: Joi.number(),
|
|
762
|
+
cartType: Joi.string().allow(""),
|
|
763
|
+
}).required();
|
|
764
|
+
}
|
|
765
|
+
|
|
766
|
+
/** @returns {GetPromotionPaymentOffersParam} */
|
|
767
|
+
static getPromotionPaymentOffers() {
|
|
768
|
+
return Joi.object({
|
|
769
|
+
id: Joi.string().allow(""),
|
|
770
|
+
uid: Joi.number(),
|
|
771
|
+
}).required();
|
|
745
772
|
}
|
|
746
773
|
|
|
747
774
|
/** @returns {GetPromotionsParam} */
|
|
@@ -755,6 +782,13 @@ class CartPlatformApplicationValidator {
|
|
|
755
782
|
promotionType: Joi.string().allow(""),
|
|
756
783
|
fpPanel: Joi.string().allow(""),
|
|
757
784
|
promotionId: Joi.string().allow(""),
|
|
785
|
+
createdBy: Joi.string().allow(""),
|
|
786
|
+
reviewedBy: Joi.string().allow(""),
|
|
787
|
+
approvedStartTime: Joi.string().allow(""),
|
|
788
|
+
approvedEndTime: Joi.string().allow(""),
|
|
789
|
+
reviewStartTime: Joi.string().allow(""),
|
|
790
|
+
reviewEndTime: Joi.string().allow(""),
|
|
791
|
+
status: Joi.string().allow(""),
|
|
758
792
|
}).required();
|
|
759
793
|
}
|
|
760
794
|
|
|
@@ -792,9 +826,9 @@ class CartPlatformApplicationValidator {
|
|
|
792
826
|
i: Joi.boolean(),
|
|
793
827
|
b: Joi.boolean(),
|
|
794
828
|
buyNow: Joi.boolean(),
|
|
829
|
+
orderType: Joi.string().allow(""),
|
|
795
830
|
id: Joi.string().allow(""),
|
|
796
|
-
|
|
797
|
-
body: CartPlatformModel.PlatformAddCartRequest().required(),
|
|
831
|
+
body: CartPlatformModel.PlatformAddCartDetails().required(),
|
|
798
832
|
}).required();
|
|
799
833
|
}
|
|
800
834
|
|
|
@@ -802,8 +836,7 @@ class CartPlatformApplicationValidator {
|
|
|
802
836
|
static platformCheckoutCart() {
|
|
803
837
|
return Joi.object({
|
|
804
838
|
id: Joi.string().allow(""),
|
|
805
|
-
|
|
806
|
-
body: CartPlatformModel.PlatformCartCheckoutDetailRequest().required(),
|
|
839
|
+
body: CartPlatformModel.PlatformCartCheckoutDetailCreation().required(),
|
|
807
840
|
}).required();
|
|
808
841
|
}
|
|
809
842
|
|
|
@@ -811,8 +844,7 @@ class CartPlatformApplicationValidator {
|
|
|
811
844
|
static platformCheckoutCartV2() {
|
|
812
845
|
return Joi.object({
|
|
813
846
|
id: Joi.string().allow(""),
|
|
814
|
-
|
|
815
|
-
body: CartPlatformModel.PlatformCartCheckoutDetailV2Request().required(),
|
|
847
|
+
body: CartPlatformModel.PlatformCartCheckoutDetailV2Creation().required(),
|
|
816
848
|
}).required();
|
|
817
849
|
}
|
|
818
850
|
|
|
@@ -824,8 +856,7 @@ class CartPlatformApplicationValidator {
|
|
|
824
856
|
orderType: Joi.string().allow(""),
|
|
825
857
|
b: Joi.boolean(),
|
|
826
858
|
buyNow: Joi.boolean(),
|
|
827
|
-
|
|
828
|
-
body: CartPlatformModel.PlatformUpdateCartRequest().required(),
|
|
859
|
+
body: CartPlatformModel.PlatformUpdateCartDetails().required(),
|
|
829
860
|
}).required();
|
|
830
861
|
}
|
|
831
862
|
|
|
@@ -842,7 +873,6 @@ class CartPlatformApplicationValidator {
|
|
|
842
873
|
return Joi.object({
|
|
843
874
|
uid: Joi.string().allow(""),
|
|
844
875
|
buyNow: Joi.boolean(),
|
|
845
|
-
cartType: Joi.string().allow(""),
|
|
846
876
|
}).required();
|
|
847
877
|
}
|
|
848
878
|
|
|
@@ -860,7 +890,7 @@ class CartPlatformApplicationValidator {
|
|
|
860
890
|
buyNow: Joi.boolean(),
|
|
861
891
|
i: Joi.boolean(),
|
|
862
892
|
b: Joi.boolean(),
|
|
863
|
-
body: CartPlatformModel.
|
|
893
|
+
body: CartPlatformModel.PlatformSelectCartAddress().required(),
|
|
864
894
|
}).required();
|
|
865
895
|
}
|
|
866
896
|
|
|
@@ -870,7 +900,7 @@ class CartPlatformApplicationValidator {
|
|
|
870
900
|
id: Joi.string().allow(""),
|
|
871
901
|
buyNow: Joi.boolean(),
|
|
872
902
|
orderType: Joi.string().allow(""),
|
|
873
|
-
body: CartPlatformModel.
|
|
903
|
+
body: CartPlatformModel.CartPaymentUpdate().required(),
|
|
874
904
|
}).required();
|
|
875
905
|
}
|
|
876
906
|
|
|
@@ -897,7 +927,7 @@ class CartPlatformApplicationValidator {
|
|
|
897
927
|
return Joi.object({
|
|
898
928
|
cartId: Joi.string().allow("").required(),
|
|
899
929
|
b: Joi.boolean(),
|
|
900
|
-
body: CartPlatformModel.
|
|
930
|
+
body: CartPlatformModel.UpdateCartCreation().required(),
|
|
901
931
|
}).required();
|
|
902
932
|
}
|
|
903
933
|
|
|
@@ -906,8 +936,7 @@ class CartPlatformApplicationValidator {
|
|
|
906
936
|
return Joi.object({
|
|
907
937
|
id: Joi.string().allow(""),
|
|
908
938
|
buyNow: Joi.boolean(),
|
|
909
|
-
|
|
910
|
-
body: CartPlatformModel.PlatformCartMetaRequest().required(),
|
|
939
|
+
body: CartPlatformModel.PlatformCartMetaCreation().required(),
|
|
911
940
|
}).required();
|
|
912
941
|
}
|
|
913
942
|
|
|
@@ -985,7 +1014,7 @@ class CartPlatformApplicationValidator {
|
|
|
985
1014
|
addressId: Joi.string().allow(""),
|
|
986
1015
|
areaCode: Joi.string().allow(""),
|
|
987
1016
|
orderType: Joi.string().allow(""),
|
|
988
|
-
body: CartPlatformModel.
|
|
1017
|
+
body: CartPlatformModel.UpdateCartShipmentCreation().required(),
|
|
989
1018
|
}).required();
|
|
990
1019
|
}
|
|
991
1020
|
|
|
@@ -999,11 +1028,6 @@ class CartPlatformApplicationValidator {
|
|
|
999
1028
|
paymentIdentifier: Joi.string().allow(""),
|
|
1000
1029
|
aggregatorName: Joi.string().allow(""),
|
|
1001
1030
|
merchantCode: Joi.string().allow(""),
|
|
1002
|
-
iin: Joi.string().allow(""),
|
|
1003
|
-
network: Joi.string().allow(""),
|
|
1004
|
-
type: Joi.string().allow(""),
|
|
1005
|
-
cardId: Joi.string().allow(""),
|
|
1006
|
-
cartType: Joi.string().allow(""),
|
|
1007
1031
|
}).required();
|
|
1008
1032
|
}
|
|
1009
1033
|
}
|