@gofynd/fdk-client-javascript 3.1.0-beta.1 → 3.2.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 +2 -2
- package/sdk/application/ApplicationClient.d.ts +2 -0
- package/sdk/application/ApplicationClient.js +2 -0
- package/sdk/application/Cart/CartApplicationClient.d.ts +81 -101
- package/sdk/application/Cart/CartApplicationClient.js +173 -511
- 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 +61 -61
- package/sdk/application/Content/ContentApplicationClient.js +183 -366
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +2 -2
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +11 -30
- 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 +28 -117
- package/sdk/application/Logistic/LogisticApplicationClient.js +99 -492
- 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 +10 -54
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +32 -364
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +54 -1
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +43 -0
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +1 -5
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +4 -35
- 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 +12 -12
- package/sdk/platform/Billing/BillingPlatformClient.js +15 -15
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +443 -388
- package/sdk/platform/Billing/BillingPlatformModel.js +280 -263
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +16 -18
- package/sdk/platform/Billing/BillingPlatformValidator.js +8 -9
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +172 -251
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +577 -648
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +270 -165
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +192 -108
- package/sdk/platform/Cart/CartPlatformModel.d.ts +4554 -3154
- package/sdk/platform/Cart/CartPlatformModel.js +1935 -2854
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +380 -976
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +2004 -6464
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +161 -1082
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +80 -884
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +568 -325
- package/sdk/platform/Catalog/CatalogPlatformClient.js +1560 -1162
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +9772 -7871
- package/sdk/platform/Catalog/CatalogPlatformModel.js +6978 -9516
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +231 -240
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +180 -188
- 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 +240 -376
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +589 -874
- 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 +330 -502
- package/sdk/platform/Communication/CommunicationPlatformModel.js +376 -610
- 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 -100
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +88 -146
- 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 -31
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +20 -25
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +117 -332
- 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 +562 -1289
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +368 -1037
- 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 -248
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +1292 -773
- 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 +2391 -924
- package/sdk/platform/Content/ContentPlatformModel.js +1314 -970
- 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 +406 -403
- package/sdk/platform/Order/OrderPlatformClient.js +1200 -1343
- package/sdk/platform/Order/OrderPlatformModel.d.ts +8665 -4505
- package/sdk/platform/Order/OrderPlatformModel.js +4088 -3601
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +666 -442
- package/sdk/platform/Order/OrderPlatformValidator.js +353 -312
- 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 +937 -2452
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +100 -306
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +74 -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 +1307 -3536
- package/sdk/platform/Payment/PaymentPlatformModel.js +1389 -3692
- 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 -521
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +75 -117
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +50 -105
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +160 -149
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +766 -545
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +6196 -3978
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +3181 -3895
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +294 -220
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +205 -149
- 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 -9
- package/sdk/platform/Share/SharePlatformModel.js +45 -5
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +17 -37
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +66 -204
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +25 -26
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +20 -31
- 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 -0
- package/sdk/public/PublicClient.js +4 -0
- 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 -0
- package/sdk/public/index.js +2 -0
- 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
|
@@ -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
|
/**
|
|
@@ -21,21 +21,27 @@ const CartPlatformModel = require("./CartPlatformModel");
|
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
23
|
* @typedef ApplyCouponParam
|
|
24
|
+
* @property {CartPlatformModel.OrderingSource} [xOrderingSource] - Ordering
|
|
25
|
+
* source header, to be used to identify source of order creation.
|
|
24
26
|
* @property {boolean} [i]
|
|
25
27
|
* @property {boolean} [b]
|
|
26
28
|
* @property {boolean} [p]
|
|
27
29
|
* @property {string} [id]
|
|
28
30
|
* @property {boolean} [buyNow]
|
|
29
|
-
* @property {CartPlatformModel.
|
|
31
|
+
* @property {CartPlatformModel.ApplyCouponDetails} body
|
|
30
32
|
*/
|
|
31
33
|
|
|
32
34
|
/**
|
|
33
35
|
* @typedef CheckCartServiceabilityParam
|
|
34
|
-
* @property {CartPlatformModel.
|
|
36
|
+
* @property {CartPlatformModel.OrderingSource} [xOrderingSource] - Ordering
|
|
37
|
+
* source header, to be used to identify source of order creation.
|
|
38
|
+
* @property {CartPlatformModel.OpenApiCartServiceabilityCreation} body
|
|
35
39
|
*/
|
|
36
40
|
|
|
37
41
|
/**
|
|
38
42
|
* @typedef CheckoutCartParam
|
|
43
|
+
* @property {CartPlatformModel.OrderingSource} [xOrderingSource] - Ordering
|
|
44
|
+
* source header, to be used to identify source of order creation.
|
|
39
45
|
* @property {CartPlatformModel.OpenApiPlatformCheckoutReq} body
|
|
40
46
|
*/
|
|
41
47
|
|
|
@@ -57,21 +63,28 @@ const CartPlatformModel = require("./CartPlatformModel");
|
|
|
57
63
|
/**
|
|
58
64
|
* @typedef DeleteCartParam
|
|
59
65
|
* @property {string} [id] - The unique identifier of the cart.
|
|
60
|
-
* @property {
|
|
61
|
-
* @property {CartPlatformModel.DeleteCartRequest} body
|
|
66
|
+
* @property {CartPlatformModel.DeleteCartDetails} body
|
|
62
67
|
*/
|
|
63
68
|
|
|
64
69
|
/**
|
|
65
|
-
* @typedef
|
|
66
|
-
* @property {string}
|
|
67
|
-
|
|
70
|
+
* @typedef DeleteCouponParam
|
|
71
|
+
* @property {string} id
|
|
72
|
+
*/
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* @typedef DeletePromotionParam
|
|
76
|
+
* @property {string} id
|
|
68
77
|
*/
|
|
69
78
|
|
|
70
79
|
/**
|
|
71
80
|
* @typedef FetchAndvalidateCartItemsParam
|
|
72
|
-
* @property {CartPlatformModel.
|
|
81
|
+
* @property {CartPlatformModel.OrderingSource} [xOrderingSource] - Ordering
|
|
82
|
+
* source header, to be used to identify source of order creation.
|
|
83
|
+
* @property {CartPlatformModel.OpenapiCartDetailsCreation} body
|
|
73
84
|
*/
|
|
74
85
|
|
|
86
|
+
/** @typedef FetchCartMetaConfigParam */
|
|
87
|
+
|
|
75
88
|
/**
|
|
76
89
|
* @typedef GetAbandonedCartParam
|
|
77
90
|
* @property {number} [pageNo]
|
|
@@ -130,8 +143,13 @@ const CartPlatformModel = require("./CartPlatformModel");
|
|
|
130
143
|
|
|
131
144
|
/**
|
|
132
145
|
* @typedef GetCartParam
|
|
146
|
+
* @property {CartPlatformModel.OrderingSource} [xOrderingSource] - Ordering
|
|
147
|
+
* source header, to be used to identify source of order creation.
|
|
133
148
|
* @property {string} [id] - The unique identifier of the cart
|
|
134
149
|
* @property {string} [userId] - Option to fetch cart for the provided user_id.
|
|
150
|
+
* @property {string} [orderType] - The order type of shipment HomeDelivery - If
|
|
151
|
+
* the customer wants the order home-delivered PickAtStore - If the customer
|
|
152
|
+
* wants the handover of an order at the store itself.
|
|
135
153
|
* @property {boolean} [i] - This is a boolean value. Select `true` to retrieve
|
|
136
154
|
* all the items added in the cart.
|
|
137
155
|
* @property {boolean} [b] - This is a boolean value. Select `true` to retrieve
|
|
@@ -139,7 +157,6 @@ const CartPlatformModel = require("./CartPlatformModel");
|
|
|
139
157
|
* @property {number} [assignCardId] - Token of user's debit or credit card
|
|
140
158
|
* @property {boolean} [buyNow] - This is a boolen value. Select `true` to
|
|
141
159
|
* set/initialize buy now cart
|
|
142
|
-
* @property {string} [cartType] - The type of cart
|
|
143
160
|
*/
|
|
144
161
|
|
|
145
162
|
/**
|
|
@@ -149,17 +166,9 @@ const CartPlatformModel = require("./CartPlatformModel");
|
|
|
149
166
|
* @property {string} [filterOn]
|
|
150
167
|
*/
|
|
151
168
|
|
|
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
169
|
/**
|
|
161
170
|
* @typedef GetCartShareLinkParam
|
|
162
|
-
* @property {CartPlatformModel.
|
|
171
|
+
* @property {CartPlatformModel.GetShareCartLinkCreation} body
|
|
163
172
|
*/
|
|
164
173
|
|
|
165
174
|
/**
|
|
@@ -179,8 +188,6 @@ const CartPlatformModel = require("./CartPlatformModel");
|
|
|
179
188
|
|
|
180
189
|
/** @typedef GetCouponOptionValuesParam */
|
|
181
190
|
|
|
182
|
-
/** @typedef GetCouponTagsParam */
|
|
183
|
-
|
|
184
191
|
/**
|
|
185
192
|
* @typedef GetCouponsParam
|
|
186
193
|
* @property {number} [pageNo]
|
|
@@ -191,24 +198,30 @@ const CartPlatformModel = require("./CartPlatformModel");
|
|
|
191
198
|
* @property {boolean} [isDisplay]
|
|
192
199
|
* @property {string} [typeSlug]
|
|
193
200
|
* @property {string} [code]
|
|
201
|
+
* @property {string} [createdBy]
|
|
202
|
+
* @property {string} [reviewedBy]
|
|
203
|
+
* @property {string} [approvedStartTime]
|
|
204
|
+
* @property {string} [approvedEndTime]
|
|
205
|
+
* @property {string} [reviewStartTime]
|
|
206
|
+
* @property {string} [reviewEndTime]
|
|
207
|
+
* @property {string} [status]
|
|
194
208
|
*/
|
|
195
209
|
|
|
196
210
|
/**
|
|
197
211
|
* @typedef GetItemCountParam
|
|
198
212
|
* @property {string} [id] - The unique identifier of the cart.
|
|
199
213
|
* @property {boolean} [buyNow] - Boolean value to get buy_now cart.
|
|
200
|
-
* @property {string} [cartType] - The type of cart
|
|
201
214
|
*/
|
|
202
215
|
|
|
203
216
|
/**
|
|
204
217
|
* @typedef GetPriceAdjustmentsParam
|
|
205
|
-
* @property {string} cartId - Cart
|
|
218
|
+
* @property {string} cartId - Cart id of user cart
|
|
206
219
|
*/
|
|
207
220
|
|
|
208
221
|
/**
|
|
209
222
|
* @typedef GetPromosCouponConfigParam
|
|
210
|
-
* @property {string} [entityType] -
|
|
211
|
-
* @property {boolean} [isHidden] -
|
|
223
|
+
* @property {string} [entityType] - Entity type as promotion or coupon
|
|
224
|
+
* @property {boolean} [isHidden] - Promotion coupon config shown or not
|
|
212
225
|
*/
|
|
213
226
|
|
|
214
227
|
/**
|
|
@@ -221,7 +234,22 @@ const CartPlatformModel = require("./CartPlatformModel");
|
|
|
221
234
|
* @property {string} [code]
|
|
222
235
|
*/
|
|
223
236
|
|
|
224
|
-
/**
|
|
237
|
+
/**
|
|
238
|
+
* @typedef GetPromotionOffersParam
|
|
239
|
+
* @property {string} [slug] - A short, human-readable, URL-friendly identifier
|
|
240
|
+
* of a product. You can get slug value from the endpoint
|
|
241
|
+
* /service/application/catalog/v1.0/products/
|
|
242
|
+
* @property {number} [pageSize] - Number of offers to be fetched to show
|
|
243
|
+
* @property {string} [promotionGroup] - Type of promotion groups
|
|
244
|
+
* @property {number} [storeId] - Unique identifier of a store
|
|
245
|
+
* @property {string} [cartType] - The type of cart
|
|
246
|
+
*/
|
|
247
|
+
|
|
248
|
+
/**
|
|
249
|
+
* @typedef GetPromotionPaymentOffersParam
|
|
250
|
+
* @property {string} [id] - Cart id of the user cart
|
|
251
|
+
* @property {number} [uid] - Cart uid of the user cart
|
|
252
|
+
*/
|
|
225
253
|
|
|
226
254
|
/**
|
|
227
255
|
* @typedef GetPromotionsParam
|
|
@@ -233,6 +261,13 @@ const CartPlatformModel = require("./CartPlatformModel");
|
|
|
233
261
|
* @property {string} [promotionType]
|
|
234
262
|
* @property {string} [fpPanel]
|
|
235
263
|
* @property {string} [promotionId]
|
|
264
|
+
* @property {string} [createdBy]
|
|
265
|
+
* @property {string} [reviewedBy]
|
|
266
|
+
* @property {string} [approvedStartTime]
|
|
267
|
+
* @property {string} [approvedEndTime]
|
|
268
|
+
* @property {string} [reviewStartTime]
|
|
269
|
+
* @property {string} [reviewEndTime]
|
|
270
|
+
* @property {string} [status]
|
|
236
271
|
*/
|
|
237
272
|
|
|
238
273
|
/**
|
|
@@ -258,38 +293,48 @@ const CartPlatformModel = require("./CartPlatformModel");
|
|
|
258
293
|
|
|
259
294
|
/**
|
|
260
295
|
* @typedef OverrideCartParam
|
|
296
|
+
* @property {CartPlatformModel.OrderingSource} [xOrderingSource] - Ordering
|
|
297
|
+
* source header, to be used to identify source of order creation.
|
|
261
298
|
* @property {CartPlatformModel.OverrideCheckoutReq} body
|
|
262
299
|
*/
|
|
263
300
|
|
|
264
301
|
/**
|
|
265
302
|
* @typedef PlatformAddItemsParam
|
|
303
|
+
* @property {CartPlatformModel.OrderingSource} [xOrderingSource] - Ordering
|
|
304
|
+
* source header, to be used to identify source of order creation.
|
|
266
305
|
* @property {boolean} [i] - This is a boolean value. Select `true` to retrieve
|
|
267
306
|
* all the items added in the cart.
|
|
268
307
|
* @property {boolean} [b] - This is a boolean value. Select `true` to retrieve
|
|
269
308
|
* the price breakup of cart items.
|
|
270
309
|
* @property {boolean} [buyNow] - This is a boolen value. Select `true` to
|
|
271
310
|
* set/initialize buy now cart
|
|
311
|
+
* @property {string} [orderType] - The order type of shipment HomeDelivery - If
|
|
312
|
+
* the customer wants the order home-delivered PickAtStore - If the customer
|
|
313
|
+
* wants the handover of an order at the store itself.
|
|
272
314
|
* @property {string} [id] - The unique identifier of the cart
|
|
273
|
-
* @property {
|
|
274
|
-
* @property {CartPlatformModel.PlatformAddCartRequest} body
|
|
315
|
+
* @property {CartPlatformModel.PlatformAddCartDetails} body
|
|
275
316
|
*/
|
|
276
317
|
|
|
277
318
|
/**
|
|
278
319
|
* @typedef PlatformCheckoutCartParam
|
|
320
|
+
* @property {CartPlatformModel.OrderingSource} [xOrderingSource] - Ordering
|
|
321
|
+
* source header, to be used to identify source of order creation.
|
|
279
322
|
* @property {string} [id] - The unique identifier of the cart
|
|
280
|
-
* @property {
|
|
281
|
-
* @property {CartPlatformModel.PlatformCartCheckoutDetailRequest} body
|
|
323
|
+
* @property {CartPlatformModel.PlatformCartCheckoutDetailCreation} body
|
|
282
324
|
*/
|
|
283
325
|
|
|
284
326
|
/**
|
|
285
327
|
* @typedef PlatformCheckoutCartV2Param
|
|
328
|
+
* @property {CartPlatformModel.OrderingSource} [xOrderingSource] - Ordering
|
|
329
|
+
* source header, to be used to identify source of order creation.
|
|
286
330
|
* @property {string} [id] - The unique identifier of the cart
|
|
287
|
-
* @property {
|
|
288
|
-
* @property {CartPlatformModel.PlatformCartCheckoutDetailV2Request} body
|
|
331
|
+
* @property {CartPlatformModel.PlatformCartCheckoutDetailV2Creation} body
|
|
289
332
|
*/
|
|
290
333
|
|
|
291
334
|
/**
|
|
292
335
|
* @typedef PlatformUpdateCartParam
|
|
336
|
+
* @property {CartPlatformModel.OrderingSource} [xOrderingSource] - Ordering
|
|
337
|
+
* source header, to be used to identify source of order creation.
|
|
293
338
|
* @property {string} [id] - The unique identifier of the cart
|
|
294
339
|
* @property {boolean} [i] - This is a boolean value. Select `true` to retrieve
|
|
295
340
|
* all the items added in the cart.
|
|
@@ -300,8 +345,7 @@ const CartPlatformModel = require("./CartPlatformModel");
|
|
|
300
345
|
* the price breakup of cart items.
|
|
301
346
|
* @property {boolean} [buyNow] - This is a boolen value. Select `true` to
|
|
302
347
|
* set/initialize buy now cart
|
|
303
|
-
* @property {
|
|
304
|
-
* @property {CartPlatformModel.PlatformUpdateCartRequest} body
|
|
348
|
+
* @property {CartPlatformModel.PlatformUpdateCartDetails} body
|
|
305
349
|
*/
|
|
306
350
|
|
|
307
351
|
/**
|
|
@@ -312,9 +356,10 @@ const CartPlatformModel = require("./CartPlatformModel");
|
|
|
312
356
|
|
|
313
357
|
/**
|
|
314
358
|
* @typedef RemoveCouponParam
|
|
359
|
+
* @property {CartPlatformModel.OrderingSource} [xOrderingSource] - Ordering
|
|
360
|
+
* source header, to be used to identify source of order creation.
|
|
315
361
|
* @property {string} [uid]
|
|
316
362
|
* @property {boolean} [buyNow]
|
|
317
|
-
* @property {string} [cartType] - The type of cart
|
|
318
363
|
*/
|
|
319
364
|
|
|
320
365
|
/**
|
|
@@ -324,30 +369,32 @@ const CartPlatformModel = require("./CartPlatformModel");
|
|
|
324
369
|
|
|
325
370
|
/**
|
|
326
371
|
* @typedef SelectAddressParam
|
|
372
|
+
* @property {CartPlatformModel.OrderingSource} [xOrderingSource] - Ordering
|
|
373
|
+
* source header, to be used to identify source of order creation.
|
|
327
374
|
* @property {string} [cartId]
|
|
328
375
|
* @property {boolean} [buyNow]
|
|
329
376
|
* @property {boolean} [i]
|
|
330
377
|
* @property {boolean} [b]
|
|
331
|
-
* @property {CartPlatformModel.
|
|
378
|
+
* @property {CartPlatformModel.PlatformSelectCartAddress} body
|
|
332
379
|
*/
|
|
333
380
|
|
|
334
381
|
/**
|
|
335
382
|
* @typedef SelectPaymentModeParam
|
|
383
|
+
* @property {CartPlatformModel.OrderingSource} [xOrderingSource] - Ordering
|
|
384
|
+
* source header, to be used to identify source of order creation.
|
|
336
385
|
* @property {string} [id]
|
|
337
386
|
* @property {boolean} [buyNow]
|
|
338
|
-
* @property {string} [orderType]
|
|
339
|
-
*
|
|
340
|
-
* wants the handover of an order at the store itself.
|
|
341
|
-
* @property {CartPlatformModel.UpdateCartPaymentRequest} body
|
|
387
|
+
* @property {string} [orderType]
|
|
388
|
+
* @property {CartPlatformModel.CartPaymentUpdate} body
|
|
342
389
|
*/
|
|
343
390
|
|
|
344
391
|
/**
|
|
345
392
|
* @typedef SelectPaymentModeV2Param
|
|
393
|
+
* @property {CartPlatformModel.OrderingSource} [xOrderingSource] - Ordering
|
|
394
|
+
* source header, to be used to identify source of order creation.
|
|
346
395
|
* @property {string} [id]
|
|
347
396
|
* @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.
|
|
397
|
+
* @property {string} [orderType]
|
|
351
398
|
* @property {CartPlatformModel.UpdateCartPaymentRequestV2} body
|
|
352
399
|
*/
|
|
353
400
|
|
|
@@ -359,23 +406,22 @@ const CartPlatformModel = require("./CartPlatformModel");
|
|
|
359
406
|
|
|
360
407
|
/**
|
|
361
408
|
* @typedef UpdateCartParam
|
|
362
|
-
* @property {string} cartId - Current Cart
|
|
409
|
+
* @property {string} cartId - Current Cart id of user cart
|
|
363
410
|
* @property {boolean} [b]
|
|
364
|
-
* @property {CartPlatformModel.
|
|
411
|
+
* @property {CartPlatformModel.UpdateCartCreation} body
|
|
365
412
|
*/
|
|
366
413
|
|
|
367
414
|
/**
|
|
368
415
|
* @typedef UpdateCartMetaParam
|
|
369
416
|
* @property {string} [id]
|
|
370
417
|
* @property {boolean} [buyNow]
|
|
371
|
-
* @property {
|
|
372
|
-
* @property {CartPlatformModel.PlatformCartMetaRequest} body
|
|
418
|
+
* @property {CartPlatformModel.PlatformCartMetaCreation} body
|
|
373
419
|
*/
|
|
374
420
|
|
|
375
421
|
/**
|
|
376
422
|
* @typedef UpdateCartMetaConfigParam
|
|
377
|
-
* @property {string} cartMetaId - CartMeta
|
|
378
|
-
*
|
|
423
|
+
* @property {string} cartMetaId - CartMeta id for fetching single cart meta
|
|
424
|
+
* data for editing
|
|
379
425
|
* @property {CartPlatformModel.CartMetaConfigUpdate} body
|
|
380
426
|
*/
|
|
381
427
|
|
|
@@ -434,11 +480,13 @@ const CartPlatformModel = require("./CartPlatformModel");
|
|
|
434
480
|
* @property {string} [orderType] - The order type of shipment HomeDelivery - If
|
|
435
481
|
* the customer wants the order home-delivered PickAtStore - If the customer
|
|
436
482
|
* wants the handover of an order at the store itself.
|
|
437
|
-
* @property {CartPlatformModel.
|
|
483
|
+
* @property {CartPlatformModel.UpdateCartShipmentCreation} body
|
|
438
484
|
*/
|
|
439
485
|
|
|
440
486
|
/**
|
|
441
487
|
* @typedef ValidateCouponForPaymentParam
|
|
488
|
+
* @property {CartPlatformModel.OrderingSource} [xOrderingSource] - Ordering
|
|
489
|
+
* source header, to be used to identify source of order creation.
|
|
442
490
|
* @property {string} [id]
|
|
443
491
|
* @property {boolean} [buyNow]
|
|
444
492
|
* @property {string} [addressId]
|
|
@@ -446,11 +494,6 @@ const CartPlatformModel = require("./CartPlatformModel");
|
|
|
446
494
|
* @property {string} [paymentIdentifier]
|
|
447
495
|
* @property {string} [aggregatorName]
|
|
448
496
|
* @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
497
|
*/
|
|
455
498
|
|
|
456
499
|
class CartPlatformApplicationValidator {
|
|
@@ -466,7 +509,7 @@ class CartPlatformApplicationValidator {
|
|
|
466
509
|
return Joi.object({
|
|
467
510
|
cartId: Joi.string().allow("").required(),
|
|
468
511
|
b: Joi.boolean(),
|
|
469
|
-
body: CartPlatformModel.
|
|
512
|
+
body: CartPlatformModel.AddCartCreation().required(),
|
|
470
513
|
}).required();
|
|
471
514
|
}
|
|
472
515
|
|
|
@@ -480,25 +523,31 @@ class CartPlatformApplicationValidator {
|
|
|
480
523
|
/** @returns {ApplyCouponParam} */
|
|
481
524
|
static applyCoupon() {
|
|
482
525
|
return Joi.object({
|
|
526
|
+
xOrderingSource: CartPlatformModel.OrderingSource(),
|
|
527
|
+
|
|
483
528
|
i: Joi.boolean(),
|
|
484
529
|
b: Joi.boolean(),
|
|
485
530
|
p: Joi.boolean(),
|
|
486
531
|
id: Joi.string().allow(""),
|
|
487
532
|
buyNow: Joi.boolean(),
|
|
488
|
-
body: CartPlatformModel.
|
|
533
|
+
body: CartPlatformModel.ApplyCouponDetails().required(),
|
|
489
534
|
}).required();
|
|
490
535
|
}
|
|
491
536
|
|
|
492
537
|
/** @returns {CheckCartServiceabilityParam} */
|
|
493
538
|
static checkCartServiceability() {
|
|
494
539
|
return Joi.object({
|
|
495
|
-
|
|
540
|
+
xOrderingSource: CartPlatformModel.OrderingSource(),
|
|
541
|
+
|
|
542
|
+
body: CartPlatformModel.OpenApiCartServiceabilityCreation().required(),
|
|
496
543
|
}).required();
|
|
497
544
|
}
|
|
498
545
|
|
|
499
546
|
/** @returns {CheckoutCartParam} */
|
|
500
547
|
static checkoutCart() {
|
|
501
548
|
return Joi.object({
|
|
549
|
+
xOrderingSource: CartPlatformModel.OrderingSource(),
|
|
550
|
+
|
|
502
551
|
body: CartPlatformModel.OpenApiPlatformCheckoutReq().required(),
|
|
503
552
|
}).required();
|
|
504
553
|
}
|
|
@@ -528,25 +577,38 @@ class CartPlatformApplicationValidator {
|
|
|
528
577
|
static deleteCart() {
|
|
529
578
|
return Joi.object({
|
|
530
579
|
id: Joi.string().allow(""),
|
|
531
|
-
|
|
532
|
-
body: CartPlatformModel.DeleteCartRequest().required(),
|
|
580
|
+
body: CartPlatformModel.DeleteCartDetails().required(),
|
|
533
581
|
}).required();
|
|
534
582
|
}
|
|
535
583
|
|
|
536
|
-
/** @returns {
|
|
537
|
-
static
|
|
584
|
+
/** @returns {DeleteCouponParam} */
|
|
585
|
+
static deleteCoupon() {
|
|
538
586
|
return Joi.object({
|
|
539
|
-
|
|
587
|
+
id: Joi.string().allow("").required(),
|
|
588
|
+
}).required();
|
|
589
|
+
}
|
|
590
|
+
|
|
591
|
+
/** @returns {DeletePromotionParam} */
|
|
592
|
+
static deletePromotion() {
|
|
593
|
+
return Joi.object({
|
|
594
|
+
id: Joi.string().allow("").required(),
|
|
540
595
|
}).required();
|
|
541
596
|
}
|
|
542
597
|
|
|
543
598
|
/** @returns {FetchAndvalidateCartItemsParam} */
|
|
544
599
|
static fetchAndvalidateCartItems() {
|
|
545
600
|
return Joi.object({
|
|
546
|
-
|
|
601
|
+
xOrderingSource: CartPlatformModel.OrderingSource(),
|
|
602
|
+
|
|
603
|
+
body: CartPlatformModel.OpenapiCartDetailsCreation().required(),
|
|
547
604
|
}).required();
|
|
548
605
|
}
|
|
549
606
|
|
|
607
|
+
/** @returns {FetchCartMetaConfigParam} */
|
|
608
|
+
static fetchCartMetaConfig() {
|
|
609
|
+
return Joi.object({}).required();
|
|
610
|
+
}
|
|
611
|
+
|
|
550
612
|
/** @returns {GetAbandonedCartParam} */
|
|
551
613
|
static getAbandonedCart() {
|
|
552
614
|
return Joi.object({
|
|
@@ -618,13 +680,15 @@ class CartPlatformApplicationValidator {
|
|
|
618
680
|
/** @returns {GetCartParam} */
|
|
619
681
|
static getCart() {
|
|
620
682
|
return Joi.object({
|
|
683
|
+
xOrderingSource: CartPlatformModel.OrderingSource(),
|
|
684
|
+
|
|
621
685
|
id: Joi.string().allow(""),
|
|
622
686
|
userId: Joi.string().allow(""),
|
|
687
|
+
orderType: Joi.string().allow(""),
|
|
623
688
|
i: Joi.boolean(),
|
|
624
689
|
b: Joi.boolean(),
|
|
625
690
|
assignCardId: Joi.number(),
|
|
626
691
|
buyNow: Joi.boolean(),
|
|
627
|
-
cartType: Joi.string().allow(""),
|
|
628
692
|
}).required();
|
|
629
693
|
}
|
|
630
694
|
|
|
@@ -637,22 +701,10 @@ class CartPlatformApplicationValidator {
|
|
|
637
701
|
}).required();
|
|
638
702
|
}
|
|
639
703
|
|
|
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
704
|
/** @returns {GetCartShareLinkParam} */
|
|
653
705
|
static getCartShareLink() {
|
|
654
706
|
return Joi.object({
|
|
655
|
-
body: CartPlatformModel.
|
|
707
|
+
body: CartPlatformModel.GetShareCartLinkCreation().required(),
|
|
656
708
|
}).required();
|
|
657
709
|
}
|
|
658
710
|
|
|
@@ -682,11 +734,6 @@ class CartPlatformApplicationValidator {
|
|
|
682
734
|
return Joi.object({}).required();
|
|
683
735
|
}
|
|
684
736
|
|
|
685
|
-
/** @returns {GetCouponTagsParam} */
|
|
686
|
-
static getCouponTags() {
|
|
687
|
-
return Joi.object({}).required();
|
|
688
|
-
}
|
|
689
|
-
|
|
690
737
|
/** @returns {GetCouponsParam} */
|
|
691
738
|
static getCoupons() {
|
|
692
739
|
return Joi.object({
|
|
@@ -698,6 +745,13 @@ class CartPlatformApplicationValidator {
|
|
|
698
745
|
isDisplay: Joi.boolean(),
|
|
699
746
|
typeSlug: Joi.string().allow(""),
|
|
700
747
|
code: Joi.string().allow(""),
|
|
748
|
+
createdBy: Joi.string().allow(""),
|
|
749
|
+
reviewedBy: Joi.string().allow(""),
|
|
750
|
+
approvedStartTime: Joi.string().allow(""),
|
|
751
|
+
approvedEndTime: Joi.string().allow(""),
|
|
752
|
+
reviewStartTime: Joi.string().allow(""),
|
|
753
|
+
reviewEndTime: Joi.string().allow(""),
|
|
754
|
+
status: Joi.string().allow(""),
|
|
701
755
|
}).required();
|
|
702
756
|
}
|
|
703
757
|
|
|
@@ -706,7 +760,6 @@ class CartPlatformApplicationValidator {
|
|
|
706
760
|
return Joi.object({
|
|
707
761
|
id: Joi.string().allow(""),
|
|
708
762
|
buyNow: Joi.boolean(),
|
|
709
|
-
cartType: Joi.string().allow(""),
|
|
710
763
|
}).required();
|
|
711
764
|
}
|
|
712
765
|
|
|
@@ -739,9 +792,23 @@ class CartPlatformApplicationValidator {
|
|
|
739
792
|
}).required();
|
|
740
793
|
}
|
|
741
794
|
|
|
742
|
-
/** @returns {
|
|
743
|
-
static
|
|
744
|
-
return Joi.object({
|
|
795
|
+
/** @returns {GetPromotionOffersParam} */
|
|
796
|
+
static getPromotionOffers() {
|
|
797
|
+
return Joi.object({
|
|
798
|
+
slug: Joi.string().allow(""),
|
|
799
|
+
pageSize: Joi.number(),
|
|
800
|
+
promotionGroup: Joi.string().allow(""),
|
|
801
|
+
storeId: Joi.number(),
|
|
802
|
+
cartType: Joi.string().allow(""),
|
|
803
|
+
}).required();
|
|
804
|
+
}
|
|
805
|
+
|
|
806
|
+
/** @returns {GetPromotionPaymentOffersParam} */
|
|
807
|
+
static getPromotionPaymentOffers() {
|
|
808
|
+
return Joi.object({
|
|
809
|
+
id: Joi.string().allow(""),
|
|
810
|
+
uid: Joi.number(),
|
|
811
|
+
}).required();
|
|
745
812
|
}
|
|
746
813
|
|
|
747
814
|
/** @returns {GetPromotionsParam} */
|
|
@@ -755,6 +822,13 @@ class CartPlatformApplicationValidator {
|
|
|
755
822
|
promotionType: Joi.string().allow(""),
|
|
756
823
|
fpPanel: Joi.string().allow(""),
|
|
757
824
|
promotionId: Joi.string().allow(""),
|
|
825
|
+
createdBy: Joi.string().allow(""),
|
|
826
|
+
reviewedBy: Joi.string().allow(""),
|
|
827
|
+
approvedStartTime: Joi.string().allow(""),
|
|
828
|
+
approvedEndTime: Joi.string().allow(""),
|
|
829
|
+
reviewStartTime: Joi.string().allow(""),
|
|
830
|
+
reviewEndTime: Joi.string().allow(""),
|
|
831
|
+
status: Joi.string().allow(""),
|
|
758
832
|
}).required();
|
|
759
833
|
}
|
|
760
834
|
|
|
@@ -782,6 +856,8 @@ class CartPlatformApplicationValidator {
|
|
|
782
856
|
/** @returns {OverrideCartParam} */
|
|
783
857
|
static overrideCart() {
|
|
784
858
|
return Joi.object({
|
|
859
|
+
xOrderingSource: CartPlatformModel.OrderingSource(),
|
|
860
|
+
|
|
785
861
|
body: CartPlatformModel.OverrideCheckoutReq().required(),
|
|
786
862
|
}).required();
|
|
787
863
|
}
|
|
@@ -789,43 +865,48 @@ class CartPlatformApplicationValidator {
|
|
|
789
865
|
/** @returns {PlatformAddItemsParam} */
|
|
790
866
|
static platformAddItems() {
|
|
791
867
|
return Joi.object({
|
|
868
|
+
xOrderingSource: CartPlatformModel.OrderingSource(),
|
|
869
|
+
|
|
792
870
|
i: Joi.boolean(),
|
|
793
871
|
b: Joi.boolean(),
|
|
794
872
|
buyNow: Joi.boolean(),
|
|
873
|
+
orderType: Joi.string().allow(""),
|
|
795
874
|
id: Joi.string().allow(""),
|
|
796
|
-
|
|
797
|
-
body: CartPlatformModel.PlatformAddCartRequest().required(),
|
|
875
|
+
body: CartPlatformModel.PlatformAddCartDetails().required(),
|
|
798
876
|
}).required();
|
|
799
877
|
}
|
|
800
878
|
|
|
801
879
|
/** @returns {PlatformCheckoutCartParam} */
|
|
802
880
|
static platformCheckoutCart() {
|
|
803
881
|
return Joi.object({
|
|
882
|
+
xOrderingSource: CartPlatformModel.OrderingSource(),
|
|
883
|
+
|
|
804
884
|
id: Joi.string().allow(""),
|
|
805
|
-
|
|
806
|
-
body: CartPlatformModel.PlatformCartCheckoutDetailRequest().required(),
|
|
885
|
+
body: CartPlatformModel.PlatformCartCheckoutDetailCreation().required(),
|
|
807
886
|
}).required();
|
|
808
887
|
}
|
|
809
888
|
|
|
810
889
|
/** @returns {PlatformCheckoutCartV2Param} */
|
|
811
890
|
static platformCheckoutCartV2() {
|
|
812
891
|
return Joi.object({
|
|
892
|
+
xOrderingSource: CartPlatformModel.OrderingSource(),
|
|
893
|
+
|
|
813
894
|
id: Joi.string().allow(""),
|
|
814
|
-
|
|
815
|
-
body: CartPlatformModel.PlatformCartCheckoutDetailV2Request().required(),
|
|
895
|
+
body: CartPlatformModel.PlatformCartCheckoutDetailV2Creation().required(),
|
|
816
896
|
}).required();
|
|
817
897
|
}
|
|
818
898
|
|
|
819
899
|
/** @returns {PlatformUpdateCartParam} */
|
|
820
900
|
static platformUpdateCart() {
|
|
821
901
|
return Joi.object({
|
|
902
|
+
xOrderingSource: CartPlatformModel.OrderingSource(),
|
|
903
|
+
|
|
822
904
|
id: Joi.string().allow(""),
|
|
823
905
|
i: Joi.boolean(),
|
|
824
906
|
orderType: Joi.string().allow(""),
|
|
825
907
|
b: Joi.boolean(),
|
|
826
908
|
buyNow: Joi.boolean(),
|
|
827
|
-
|
|
828
|
-
body: CartPlatformModel.PlatformUpdateCartRequest().required(),
|
|
909
|
+
body: CartPlatformModel.PlatformUpdateCartDetails().required(),
|
|
829
910
|
}).required();
|
|
830
911
|
}
|
|
831
912
|
|
|
@@ -840,9 +921,10 @@ class CartPlatformApplicationValidator {
|
|
|
840
921
|
/** @returns {RemoveCouponParam} */
|
|
841
922
|
static removeCoupon() {
|
|
842
923
|
return Joi.object({
|
|
924
|
+
xOrderingSource: CartPlatformModel.OrderingSource(),
|
|
925
|
+
|
|
843
926
|
uid: Joi.string().allow(""),
|
|
844
927
|
buyNow: Joi.boolean(),
|
|
845
|
-
cartType: Joi.string().allow(""),
|
|
846
928
|
}).required();
|
|
847
929
|
}
|
|
848
930
|
|
|
@@ -856,27 +938,33 @@ class CartPlatformApplicationValidator {
|
|
|
856
938
|
/** @returns {SelectAddressParam} */
|
|
857
939
|
static selectAddress() {
|
|
858
940
|
return Joi.object({
|
|
941
|
+
xOrderingSource: CartPlatformModel.OrderingSource(),
|
|
942
|
+
|
|
859
943
|
cartId: Joi.string().allow(""),
|
|
860
944
|
buyNow: Joi.boolean(),
|
|
861
945
|
i: Joi.boolean(),
|
|
862
946
|
b: Joi.boolean(),
|
|
863
|
-
body: CartPlatformModel.
|
|
947
|
+
body: CartPlatformModel.PlatformSelectCartAddress().required(),
|
|
864
948
|
}).required();
|
|
865
949
|
}
|
|
866
950
|
|
|
867
951
|
/** @returns {SelectPaymentModeParam} */
|
|
868
952
|
static selectPaymentMode() {
|
|
869
953
|
return Joi.object({
|
|
954
|
+
xOrderingSource: CartPlatformModel.OrderingSource(),
|
|
955
|
+
|
|
870
956
|
id: Joi.string().allow(""),
|
|
871
957
|
buyNow: Joi.boolean(),
|
|
872
958
|
orderType: Joi.string().allow(""),
|
|
873
|
-
body: CartPlatformModel.
|
|
959
|
+
body: CartPlatformModel.CartPaymentUpdate().required(),
|
|
874
960
|
}).required();
|
|
875
961
|
}
|
|
876
962
|
|
|
877
963
|
/** @returns {SelectPaymentModeV2Param} */
|
|
878
964
|
static selectPaymentModeV2() {
|
|
879
965
|
return Joi.object({
|
|
966
|
+
xOrderingSource: CartPlatformModel.OrderingSource(),
|
|
967
|
+
|
|
880
968
|
id: Joi.string().allow(""),
|
|
881
969
|
buyNow: Joi.boolean(),
|
|
882
970
|
orderType: Joi.string().allow(""),
|
|
@@ -897,7 +985,7 @@ class CartPlatformApplicationValidator {
|
|
|
897
985
|
return Joi.object({
|
|
898
986
|
cartId: Joi.string().allow("").required(),
|
|
899
987
|
b: Joi.boolean(),
|
|
900
|
-
body: CartPlatformModel.
|
|
988
|
+
body: CartPlatformModel.UpdateCartCreation().required(),
|
|
901
989
|
}).required();
|
|
902
990
|
}
|
|
903
991
|
|
|
@@ -906,8 +994,7 @@ class CartPlatformApplicationValidator {
|
|
|
906
994
|
return Joi.object({
|
|
907
995
|
id: Joi.string().allow(""),
|
|
908
996
|
buyNow: Joi.boolean(),
|
|
909
|
-
|
|
910
|
-
body: CartPlatformModel.PlatformCartMetaRequest().required(),
|
|
997
|
+
body: CartPlatformModel.PlatformCartMetaCreation().required(),
|
|
911
998
|
}).required();
|
|
912
999
|
}
|
|
913
1000
|
|
|
@@ -985,13 +1072,15 @@ class CartPlatformApplicationValidator {
|
|
|
985
1072
|
addressId: Joi.string().allow(""),
|
|
986
1073
|
areaCode: Joi.string().allow(""),
|
|
987
1074
|
orderType: Joi.string().allow(""),
|
|
988
|
-
body: CartPlatformModel.
|
|
1075
|
+
body: CartPlatformModel.UpdateCartShipmentCreation().required(),
|
|
989
1076
|
}).required();
|
|
990
1077
|
}
|
|
991
1078
|
|
|
992
1079
|
/** @returns {ValidateCouponForPaymentParam} */
|
|
993
1080
|
static validateCouponForPayment() {
|
|
994
1081
|
return Joi.object({
|
|
1082
|
+
xOrderingSource: CartPlatformModel.OrderingSource(),
|
|
1083
|
+
|
|
995
1084
|
id: Joi.string().allow(""),
|
|
996
1085
|
buyNow: Joi.boolean(),
|
|
997
1086
|
addressId: Joi.string().allow(""),
|
|
@@ -999,11 +1088,6 @@ class CartPlatformApplicationValidator {
|
|
|
999
1088
|
paymentIdentifier: Joi.string().allow(""),
|
|
1000
1089
|
aggregatorName: Joi.string().allow(""),
|
|
1001
1090
|
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
1091
|
}).required();
|
|
1008
1092
|
}
|
|
1009
1093
|
}
|