@gofynd/fdk-client-javascript 1.2.0 → 1.3.1-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +44 -7
- package/package.json +1 -2
- package/sdk/application/ApplicationAPIClient.d.ts +3 -3
- package/sdk/application/ApplicationAPIClient.js +6 -4
- package/sdk/application/ApplicationClient.d.ts +2 -3
- package/sdk/application/ApplicationClient.js +1 -45
- package/sdk/application/ApplicationConfig.d.ts +46 -6
- package/sdk/application/ApplicationConfig.js +15 -16
- package/sdk/application/Cart/CartApplicationClient.d.ts +61 -33
- package/sdk/application/Cart/CartApplicationClient.js +225 -134
- package/sdk/application/Cart/CartApplicationModel.d.ts +6 -4
- package/sdk/application/Cart/CartApplicationModel.js +6 -4
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +61 -30
- package/sdk/application/Catalog/CatalogApplicationClient.js +234 -146
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +115 -13
- package/sdk/application/Catalog/CatalogApplicationModel.js +77 -12
- package/sdk/application/Common/CommonApplicationClient.d.ts +5 -3
- package/sdk/application/Common/CommonApplicationClient.js +13 -11
- package/sdk/application/Common/CommonApplicationModel.d.ts +3 -83
- package/sdk/application/Common/CommonApplicationModel.js +2 -58
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +9 -3
- package/sdk/application/Communication/CommunicationApplicationClient.js +25 -13
- package/sdk/application/Communication/CommunicationApplicationModel.d.ts +1 -34
- package/sdk/application/Communication/CommunicationApplicationModel.js +0 -36
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +46 -16
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +144 -68
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +1 -219
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +0 -226
- package/sdk/application/Content/ContentApplicationClient.d.ts +49 -21
- package/sdk/application/Content/ContentApplicationClient.js +159 -80
- package/sdk/application/Content/ContentApplicationModel.d.ts +5 -622
- package/sdk/application/Content/ContentApplicationModel.js +11 -763
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +6 -3
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +20 -14
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +1 -152
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +0 -180
- package/sdk/application/Lead/LeadApplicationClient.d.ts +14 -7
- package/sdk/application/Lead/LeadApplicationClient.js +50 -31
- package/sdk/application/Lead/LeadApplicationModel.d.ts +22 -741
- package/sdk/application/Lead/LeadApplicationModel.js +21 -481
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +11 -5
- package/sdk/application/Logistic/LogisticApplicationClient.js +41 -20
- package/sdk/application/Order/OrderApplicationClient.d.ts +24 -12
- package/sdk/application/Order/OrderApplicationClient.js +88 -56
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +91 -42
- package/sdk/application/Payment/PaymentApplicationClient.js +293 -194
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +36 -36
- package/sdk/application/Payment/PaymentApplicationModel.js +36 -36
- package/sdk/application/PosCart/PosCartApplicationClient.d.ts +59 -32
- package/sdk/application/PosCart/PosCartApplicationClient.js +214 -130
- package/sdk/application/PosCart/PosCartApplicationModel.d.ts +2 -2
- package/sdk/application/PosCart/PosCartApplicationModel.js +2 -2
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +16 -7
- package/sdk/application/Rewards/RewardsApplicationClient.js +56 -29
- package/sdk/application/Share/ShareApplicationClient.d.ts +15 -7
- package/sdk/application/Share/ShareApplicationClient.js +51 -31
- package/sdk/application/Share/ShareApplicationModel.d.ts +1 -33
- package/sdk/application/Share/ShareApplicationModel.js +0 -38
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +9 -4
- package/sdk/application/Theme/ThemeApplicationClient.js +35 -18
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +982 -312
- package/sdk/application/Theme/ThemeApplicationModel.js +621 -284
- package/sdk/application/User/UserApplicationClient.d.ts +74 -35
- package/sdk/application/User/UserApplicationClient.js +252 -161
- package/sdk/application/User/UserApplicationModel.d.ts +3 -401
- package/sdk/application/User/UserApplicationModel.js +2 -490
- package/sdk/common/AxiosHelper.js +1 -2
- package/sdk/common/FDKError.d.ts +3 -0
- package/sdk/common/FDKError.js +8 -0
- package/sdk/common/utils.d.ts +3 -0
- package/sdk/common/utils.js +29 -0
- package/sdk/partner/PartnerAPIClient.d.ts +5 -4
- package/sdk/partner/PartnerAPIClient.js +7 -4
- package/sdk/partner/PartnerClient.d.ts +2 -0
- package/sdk/partner/PartnerClient.js +3 -0
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +299 -0
- package/sdk/partner/Theme/ThemePartnerClient.js +768 -0
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +1706 -0
- package/sdk/partner/Theme/ThemePartnerModel.js +1409 -0
- package/sdk/partner/Theme/ThemePartnerValidator.d.ts +22 -0
- package/sdk/partner/Theme/ThemePartnerValidator.js +157 -0
- package/sdk/partner/index.d.ts +3 -1
- package/sdk/partner/index.js +3 -1
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +8 -4
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +38 -16
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +1 -13
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +0 -12
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +10 -0
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +4 -0
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +59 -14
- package/sdk/platform/Billing/BillingPlatformClient.js +315 -64
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +56 -196
- package/sdk/platform/Billing/BillingPlatformModel.js +63 -217
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +23 -1
- package/sdk/platform/Billing/BillingPlatformValidator.js +31 -0
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +124 -63
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +431 -265
- package/sdk/platform/Cart/CartPlatformModel.d.ts +253 -53
- package/sdk/platform/Cart/CartPlatformModel.js +104 -54
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +120 -53
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +398 -247
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +155 -78
- package/sdk/platform/Catalog/CatalogPlatformClient.js +561 -355
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +10 -12
- package/sdk/platform/Catalog/CatalogPlatformModel.js +10 -12
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +30 -0
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +13 -0
- package/sdk/platform/Common/CommonPlatformClient.d.ts +5 -3
- package/sdk/platform/Common/CommonPlatformClient.js +13 -11
- package/sdk/platform/Common/CommonPlatformModel.d.ts +39 -64
- package/sdk/platform/Common/CommonPlatformModel.js +23 -57
- package/sdk/platform/Common/CommonPlatformValidator.d.ts +5 -10
- package/sdk/platform/Common/CommonPlatformValidator.js +3 -4
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +370 -120
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +2328 -888
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +143 -24
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +179 -15
- package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +2 -1
- package/sdk/platform/Communication/CommunicationPlatformClient.js +6 -5
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +386 -308
- package/sdk/platform/Communication/CommunicationPlatformModel.js +415 -355
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +38 -13
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +171 -57
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +53 -1
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +54 -0
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +5 -1
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +7 -0
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +96 -29
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +311 -126
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +5 -1
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +7 -0
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +36 -18
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +121 -86
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +13 -180
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +5 -113
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +162 -70
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +528 -309
- package/sdk/platform/Content/ContentPlatformModel.d.ts +9 -198
- package/sdk/platform/Content/ContentPlatformModel.js +8 -231
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +48 -11
- package/sdk/platform/Discount/DiscountPlatformClient.js +142 -48
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +40 -1
- package/sdk/platform/Discount/DiscountPlatformModel.js +27 -0
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +84 -18
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +486 -53
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +71 -7
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +81 -5
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +13 -18
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +58 -65
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +198 -71
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +212 -64
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +18 -10
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +11 -6
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +177 -40
- package/sdk/platform/Finance/FinancePlatformClient.js +1028 -132
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +670 -22
- package/sdk/platform/Finance/FinancePlatformModel.js +809 -23
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +111 -1
- package/sdk/platform/Finance/FinancePlatformValidator.js +134 -0
- package/sdk/platform/Inventory/InventoryPlatformClient.d.ts +24 -12
- package/sdk/platform/Inventory/InventoryPlatformClient.js +94 -52
- package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +27 -13
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +101 -55
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +50 -39
- package/sdk/platform/Lead/LeadPlatformClient.js +171 -112
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +32 -390
- package/sdk/platform/Lead/LeadPlatformModel.js +31 -214
- package/sdk/platform/Lead/LeadPlatformValidator.d.ts +33 -33
- package/sdk/platform/Lead/LeadPlatformValidator.js +23 -23
- package/sdk/platform/OAuthClient.js +6 -2
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +4 -2
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +12 -10
- package/sdk/platform/Order/OrderPlatformClient.d.ts +165 -71
- package/sdk/platform/Order/OrderPlatformClient.js +738 -205
- package/sdk/platform/Order/OrderPlatformModel.d.ts +261 -3
- package/sdk/platform/Order/OrderPlatformModel.js +225 -2
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +104 -3
- package/sdk/platform/Order/OrderPlatformValidator.js +85 -2
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +4 -22
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +12 -159
- package/sdk/platform/Partner/PartnerPlatformApplicationValidator.d.ts +1 -30
- package/sdk/platform/Partner/PartnerPlatformApplicationValidator.js +0 -26
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +1 -690
- package/sdk/platform/Partner/PartnerPlatformModel.js +0 -809
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +167 -32
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +793 -145
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +91 -1
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +91 -0
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +20 -10
- package/sdk/platform/Payment/PaymentPlatformClient.js +68 -47
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +549 -7
- package/sdk/platform/Payment/PaymentPlatformModel.js +305 -6
- package/sdk/platform/PlatformAPIClient.d.ts +3 -3
- package/sdk/platform/PlatformAPIClient.js +2 -2
- package/sdk/platform/PlatformClient.d.ts +2 -2
- package/sdk/platform/PlatformClient.js +4 -4
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +28 -12
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +90 -53
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +1 -12
- package/sdk/platform/Rewards/RewardsPlatformModel.js +0 -14
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +62 -26
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +210 -93
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +20 -11
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +23 -11
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +36 -18
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +142 -78
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +12 -3
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +14 -2
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +10 -26
- package/sdk/platform/Share/SharePlatformApplicationClient.js +36 -67
- package/sdk/platform/Share/SharePlatformModel.d.ts +4 -4
- package/sdk/platform/Share/SharePlatformModel.js +4 -4
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +127 -57
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +564 -189
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +63 -26
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +62 -22
- package/sdk/platform/Theme/ThemePlatformClient.d.ts +37 -0
- package/sdk/platform/Theme/ThemePlatformClient.js +235 -0
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +1167 -261
- package/sdk/platform/Theme/ThemePlatformModel.js +801 -244
- package/sdk/platform/Theme/ThemePlatformValidator.d.ts +32 -0
- package/sdk/platform/Theme/ThemePlatformValidator.js +38 -0
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +35 -17
- package/sdk/platform/User/UserPlatformApplicationClient.js +132 -73
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +7 -0
- package/sdk/platform/User/UserPlatformApplicationValidator.js +3 -0
- package/sdk/platform/User/UserPlatformModel.d.ts +1 -738
- package/sdk/platform/User/UserPlatformModel.js +3 -899
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +120 -7
- package/sdk/platform/Webhook/WebhookPlatformClient.js +799 -41
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +476 -86
- package/sdk/platform/Webhook/WebhookPlatformModel.js +388 -89
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +90 -7
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +113 -3
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +5 -3
- package/sdk/public/Configuration/ConfigurationPublicClient.js +13 -11
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +3 -106
- package/sdk/public/Configuration/ConfigurationPublicModel.js +2 -59
- package/sdk/public/Inventory/InventoryPublicClient.d.ts +12 -6
- package/sdk/public/Inventory/InventoryPublicClient.js +42 -27
- package/sdk/public/Partner/PartnerPublicClient.d.ts +22 -0
- package/sdk/public/Partner/PartnerPublicClient.js +110 -0
- package/sdk/public/Partner/PartnerPublicModel.d.ts +240 -0
- package/sdk/public/Partner/PartnerPublicModel.js +280 -0
- package/sdk/public/Partner/PartnerPublicValidator.d.ts +18 -0
- package/sdk/public/Partner/PartnerPublicValidator.js +19 -0
- package/sdk/public/PublicAPIClient.d.ts +14 -1
- package/sdk/public/PublicAPIClient.js +7 -1
- package/sdk/public/PublicClient.d.ts +2 -0
- package/sdk/public/PublicClient.js +4 -0
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +5 -2
- package/sdk/public/Webhook/WebhookPublicClient.js +15 -9
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +1 -191
- package/sdk/public/Webhook/WebhookPublicModel.js +0 -229
- package/sdk/public/index.d.ts +1 -0
- package/sdk/public/index.js +2 -0
- package/sdk/application/ApplicationModels.d.ts +0 -48
- package/sdk/application/ApplicationModels.js +0 -38
- package/sdk/platform/Partner/PartnerPlatformClient.d.ts +0 -106
- package/sdk/platform/Partner/PartnerPlatformClient.js +0 -878
- package/sdk/platform/Partner/PartnerPlatformValidator.d.ts +0 -208
- package/sdk/platform/Partner/PartnerPlatformValidator.js +0 -169
|
@@ -123,11 +123,13 @@ export = CartPlatformModel;
|
|
|
123
123
|
*/
|
|
124
124
|
/**
|
|
125
125
|
* @typedef Article
|
|
126
|
-
* @property {string} article_id
|
|
127
|
-
* @property {string} [code]
|
|
128
|
-
* @property {Object} [meta]
|
|
129
|
-
* @property {
|
|
130
|
-
*
|
|
126
|
+
* @property {string} article_id - Id of article
|
|
127
|
+
* @property {string} [code] - Code to identify price adjustment on article
|
|
128
|
+
* @property {Object} [meta] - Meta related to article
|
|
129
|
+
* @property {number} [quantity] - Total quantity of the article to be
|
|
130
|
+
* considered (currently used only in discount type)
|
|
131
|
+
* @property {string} [type] - Type of price adjusment
|
|
132
|
+
* @property {number} [value] - Value of price adjustment for article
|
|
131
133
|
*/
|
|
132
134
|
/**
|
|
133
135
|
* @typedef ArticlePriceInfo
|
|
@@ -162,6 +164,11 @@ export = CartPlatformModel;
|
|
|
162
164
|
* @property {LoyaltyPoints} [loyalty_points]
|
|
163
165
|
* @property {RawBreakup} [raw]
|
|
164
166
|
*/
|
|
167
|
+
/**
|
|
168
|
+
* @typedef CartCheckoutCustomMeta
|
|
169
|
+
* @property {string} key
|
|
170
|
+
* @property {string} value
|
|
171
|
+
*/
|
|
165
172
|
/**
|
|
166
173
|
* @typedef CartCheckoutResponse
|
|
167
174
|
* @property {string} [app_intercept_url]
|
|
@@ -475,6 +482,12 @@ export = CartPlatformModel;
|
|
|
475
482
|
* @property {string} [title]
|
|
476
483
|
* @property {boolean} [valid]
|
|
477
484
|
*/
|
|
485
|
+
/**
|
|
486
|
+
* @typedef CustomerDetails
|
|
487
|
+
* @property {string} [email]
|
|
488
|
+
* @property {string} mobile
|
|
489
|
+
* @property {string} [name]
|
|
490
|
+
*/
|
|
478
491
|
/**
|
|
479
492
|
* @typedef DeleteAddressResponse
|
|
480
493
|
* @property {string} [id]
|
|
@@ -927,6 +940,8 @@ export = CartPlatformModel;
|
|
|
927
940
|
* @property {string} [billing_address_id]
|
|
928
941
|
* @property {string} [callback_url]
|
|
929
942
|
* @property {string} [checkout_mode]
|
|
943
|
+
* @property {CartCheckoutCustomMeta[]} [custom_meta]
|
|
944
|
+
* @property {Object} [customer_details] - Customer details
|
|
930
945
|
* @property {Object} [delivery_address]
|
|
931
946
|
* @property {string} [device_id]
|
|
932
947
|
* @property {string} [employee_code]
|
|
@@ -955,6 +970,7 @@ export = CartPlatformModel;
|
|
|
955
970
|
* @property {string} [callback_url]
|
|
956
971
|
* @property {string} [checkout_mode]
|
|
957
972
|
* @property {Object} [custom_meta]
|
|
973
|
+
* @property {Object} [customer_details] - Customer details
|
|
958
974
|
* @property {Object} [delivery_address]
|
|
959
975
|
* @property {string} [device_id]
|
|
960
976
|
* @property {string} [employee_code]
|
|
@@ -1055,34 +1071,38 @@ export = CartPlatformModel;
|
|
|
1055
1071
|
*/
|
|
1056
1072
|
/**
|
|
1057
1073
|
* @typedef PriceAdjustment
|
|
1058
|
-
* @property {boolean} [allowed_refund]
|
|
1059
|
-
*
|
|
1060
|
-
* @property {
|
|
1061
|
-
* @property {
|
|
1062
|
-
* @property {
|
|
1063
|
-
*
|
|
1074
|
+
* @property {boolean} [allowed_refund] - Flag indicating whether refunds are
|
|
1075
|
+
* allowed (default: False)
|
|
1076
|
+
* @property {string} [apply_expiry] - The date and time when the expiry should be applied
|
|
1077
|
+
* @property {Article[]} article_ids - The list of article object in the price adjustment
|
|
1078
|
+
* @property {boolean} article_level_distribution - Flag indicating whether the
|
|
1079
|
+
* distribution should is done at the article level
|
|
1080
|
+
* @property {string} cart_id - The ID of the cart
|
|
1064
1081
|
* @property {Collection} collection
|
|
1065
1082
|
* @property {string} [id]
|
|
1066
|
-
* @property {boolean} is_authenticated
|
|
1067
|
-
*
|
|
1083
|
+
* @property {boolean} is_authenticated - Flag indicating whether the user is
|
|
1084
|
+
* authenticated
|
|
1085
|
+
* @property {string} message - The message associated with the price adjustment
|
|
1068
1086
|
* @property {Object} [meta]
|
|
1069
|
-
* @property {string} type
|
|
1087
|
+
* @property {string} type - Type of price adjusment
|
|
1070
1088
|
* @property {number} value
|
|
1071
1089
|
*/
|
|
1072
1090
|
/**
|
|
1073
1091
|
* @typedef PriceAdjustmentAdd
|
|
1074
|
-
* @property {boolean} [allowed_refund]
|
|
1075
|
-
*
|
|
1076
|
-
* @property {
|
|
1077
|
-
* @property {
|
|
1078
|
-
* @property {
|
|
1079
|
-
*
|
|
1092
|
+
* @property {boolean} [allowed_refund] - Flag indicating whether refunds are
|
|
1093
|
+
* allowed (default: False)
|
|
1094
|
+
* @property {string} [apply_expiry] - The date and time when the expiry should be applied
|
|
1095
|
+
* @property {Article[]} article_ids - The list of article object in the price adjustment
|
|
1096
|
+
* @property {boolean} article_level_distribution - Flag indicating whether the
|
|
1097
|
+
* distribution should is done at the article level
|
|
1098
|
+
* @property {string} cart_id - The ID of the cart
|
|
1080
1099
|
* @property {Collection} collection
|
|
1081
|
-
* @property {string} [created_by]
|
|
1082
|
-
* @property {boolean} is_authenticated
|
|
1083
|
-
*
|
|
1100
|
+
* @property {string} [created_by] - The entity that created the field
|
|
1101
|
+
* @property {boolean} is_authenticated - Flag indicating whether the user is
|
|
1102
|
+
* authenticated
|
|
1103
|
+
* @property {string} message - The message associated with the price adjustment
|
|
1084
1104
|
* @property {Object} [meta]
|
|
1085
|
-
* @property {string} type
|
|
1105
|
+
* @property {string} type - Type of price adjusment
|
|
1086
1106
|
* @property {number} value
|
|
1087
1107
|
*/
|
|
1088
1108
|
/**
|
|
@@ -1091,18 +1111,20 @@ export = CartPlatformModel;
|
|
|
1091
1111
|
*/
|
|
1092
1112
|
/**
|
|
1093
1113
|
* @typedef PriceAdjustmentUpdate
|
|
1094
|
-
* @property {boolean} [allowed_refund]
|
|
1095
|
-
*
|
|
1096
|
-
* @property {
|
|
1097
|
-
* @property {
|
|
1098
|
-
* @property {
|
|
1099
|
-
*
|
|
1114
|
+
* @property {boolean} [allowed_refund] - Flag indicating whether refunds are
|
|
1115
|
+
* allowed (default: False)
|
|
1116
|
+
* @property {string} [apply_expiry] - The date and time when the expiry should be applied
|
|
1117
|
+
* @property {Article[]} article_ids - The list of article object in the price adjustment
|
|
1118
|
+
* @property {boolean} article_level_distribution - Flag indicating whether the
|
|
1119
|
+
* distribution should is done at the article level
|
|
1120
|
+
* @property {string} cart_id - The ID of the cart
|
|
1100
1121
|
* @property {Collection} collection
|
|
1101
|
-
* @property {boolean} is_authenticated
|
|
1102
|
-
*
|
|
1122
|
+
* @property {boolean} is_authenticated - Flag indicating whether the user is
|
|
1123
|
+
* authenticated
|
|
1124
|
+
* @property {string} message - The message associated with the price adjustment
|
|
1103
1125
|
* @property {Object} [meta]
|
|
1104
|
-
* @property {string} [modified_by]
|
|
1105
|
-
* @property {string} type
|
|
1126
|
+
* @property {string} [modified_by] - The entity that modified the field
|
|
1127
|
+
* @property {string} type - Type of price adjusment
|
|
1106
1128
|
* @property {number} value
|
|
1107
1129
|
*/
|
|
1108
1130
|
/**
|
|
@@ -1229,28 +1251,33 @@ export = CartPlatformModel;
|
|
|
1229
1251
|
*/
|
|
1230
1252
|
/**
|
|
1231
1253
|
* @typedef PromotionListItem
|
|
1232
|
-
* @property {Object} [_custom_json]
|
|
1254
|
+
* @property {Object} [_custom_json] - Custom data stored in promotion
|
|
1255
|
+
* @property {string} [_id] - Promotion id
|
|
1233
1256
|
* @property {PromotionSchedule} [_schedule]
|
|
1234
|
-
* @property {string} application_id
|
|
1235
|
-
* @property {boolean} [apply_all_discount]
|
|
1236
|
-
* @property {string} [apply_exclusive]
|
|
1237
|
-
*
|
|
1257
|
+
* @property {string} application_id - App id in which promotion will be used
|
|
1258
|
+
* @property {boolean} [apply_all_discount] - Prevents more than one promotion discounts
|
|
1259
|
+
* @property {string} [apply_exclusive] - Doesn't allow other promotion after
|
|
1260
|
+
* current promotion applied on cart or article
|
|
1261
|
+
* @property {number} [apply_priority] - Priority based on which promotion are
|
|
1262
|
+
* applied on articles
|
|
1238
1263
|
* @property {PromotionAuthor} [author]
|
|
1239
|
-
* @property {Object} buy_rules
|
|
1264
|
+
* @property {Object} buy_rules - Buy rules for the promotion
|
|
1240
1265
|
* @property {string} [calculate_on] - Only available for Contract pricing and
|
|
1241
1266
|
* Ladder pricing promotion type
|
|
1242
|
-
* @property {string} [code]
|
|
1243
|
-
* @property {string} [currency]
|
|
1267
|
+
* @property {string} [code] - Promotion code
|
|
1268
|
+
* @property {string} [currency] - Currency used for promotion
|
|
1244
1269
|
* @property {PromotionDateMeta} [date_meta]
|
|
1245
|
-
* @property {DiscountRule[]} discount_rules
|
|
1270
|
+
* @property {DiscountRule[]} discount_rules - Discount rules based on which
|
|
1271
|
+
* promotion will be applied
|
|
1246
1272
|
* @property {DisplayMeta1} display_meta
|
|
1247
|
-
* @property {string} mode
|
|
1273
|
+
* @property {string} mode - Promotion mode
|
|
1248
1274
|
* @property {Ownership1} ownership
|
|
1249
1275
|
* @property {PromotionAction} [post_order_action]
|
|
1250
|
-
* @property {string} promo_group
|
|
1251
|
-
* @property {string} promotion_type
|
|
1276
|
+
* @property {string} promo_group - Group into which promotion fall
|
|
1277
|
+
* @property {string} promotion_type - Type of the promotion
|
|
1252
1278
|
* @property {Restrictions1} [restrictions]
|
|
1253
|
-
* @property {boolean} [stackable]
|
|
1279
|
+
* @property {boolean} [stackable] - Allows more than one promotion to get
|
|
1280
|
+
* combined benefits
|
|
1254
1281
|
* @property {Visibility} [visiblility]
|
|
1255
1282
|
*/
|
|
1256
1283
|
/**
|
|
@@ -1343,7 +1370,7 @@ export = CartPlatformModel;
|
|
|
1343
1370
|
* @property {PostOrder1} [post_order]
|
|
1344
1371
|
* @property {number[]} [user_groups]
|
|
1345
1372
|
* @property {string[]} [user_id]
|
|
1346
|
-
* @property {
|
|
1373
|
+
* @property {Object} [user_registered]
|
|
1347
1374
|
* @property {UsesRestriction1} uses
|
|
1348
1375
|
*/
|
|
1349
1376
|
/**
|
|
@@ -1614,7 +1641,7 @@ export = CartPlatformModel;
|
|
|
1614
1641
|
declare class CartPlatformModel {
|
|
1615
1642
|
}
|
|
1616
1643
|
declare namespace CartPlatformModel {
|
|
1617
|
-
export { AbandonedCart, AbandonedCartResponse, ActionQuery, ActivePromosResponse, AddCartDetailResponse, AddCartRequest, AddProductCart, AppliedFreeArticles, AppliedPromotion, ApplyCouponRequest, Article, ArticlePriceInfo, BaseInfo, BasePrice, BulkBundleRestriction, BuyRules, CartBreakup, CartCheckoutResponse, CartCurrency, CartDeliveryModesResponse, CartDetailResponse, CartItem, CartItemCountResponse, CartItemMeta, CartList, CartMetaConfigAdd, CartMetaConfigUpdate, CartMetaMissingResponse, CartMetaResponse, CartProduct, CartProductIdentifer, CartProductInfo, CategoryInfo, Charges, CheckCart, Collection, CompareObject, Coupon, CouponAction, CouponAdd, CouponAuthor, CouponBreakup, CouponDateMeta, CouponDetails, CouponPartialUpdate, CouponSchedule, CouponsResponse, CouponUpdate, CouponValidity, DeleteAddressResponse, DeleteCartDetailResponse, DeleteCartRequest, DeliveryCharges, DiscountOffer, DiscountRule, DiscountRulesApp, DisplayBreakup, DisplayMeta, DisplayMeta1, DisplayMetaDict, Files, FreeGiftItem, GeoLocation, GetCouponResponse, GetShareCartLinkRequest, GetShareCartLinkResponse, Identifier, ItemCriteria, LoyaltyPoints, MultiCartResponse, MultiTenderPaymentMeta, MultiTenderPaymentMethod, OpenapiCartDetailsRequest, OpenapiCartDetailsResponse, OpenApiCartServiceabilityRequest, OpenApiCartServiceabilityResponse, OpenApiCheckoutResponse, OpenApiErrorResponse, OpenApiFiles, OpenApiOrderItem, OpenApiPlatformCheckoutReq, OperationErrorResponse, OverrideCartItem, OverrideCartItemPromo, OverrideCheckoutReq, OverrideCheckoutResponse, Ownership, Ownership1, Ownership2, Page, PageCoupon, PaymentAllowValue, PaymentAllowValue1, PaymentCouponValidate, PaymentMeta, PaymentMethod, PaymentModes, PaymentSelectionLock, PickupStoreDetail, PlatformAddCartRequest, PlatformAddress, PlatformCartCheckoutDetailRequest, PlatformCartCheckoutDetailV2Request, PlatformCartMetaRequest, PlatformCartShipmentsResponse, PlatformGetAddressesResponse, PlatformSelectCartAddressRequest, PlatformShipmentResponse, PlatformUpdateCartRequest, PostOrder, PostOrder1, PriceAdjustment, PriceAdjustmentAdd, PriceAdjustmentResponse, PriceAdjustmentUpdate, PriceRange, ProductAction, ProductArticle, ProductAvailability, ProductAvailabilitySize, ProductImage, ProductPrice, ProductPriceInfo, PromiseFormatted, PromiseTimestamp, PromoMeta, PromotionAction, PromotionAdd, PromotionAuthor, PromotionDateMeta, PromotionListItem, PromotionPartialUpdate, PromotionPaymentModes, PromotionSchedule, PromotionsResponse, PromotionUpdate, RawBreakup, Restrictions, Restrictions1, Rule, RuleDefinition, SaveAddressResponse, SharedCart, SharedCartDetails, SharedCartResponse, ShipmentArticle, ShipmentPromise, ShippingAddress, StaffCheckout, State, StoreDetailsResponse, StoreInfo, SuccessMessage, Tags, UpdateAddressResponse, UpdateCartDetailResponse, UpdateCartPaymentRequest, UpdateCartPaymentRequestV2, UpdateCartRequest, UpdateCartShipmentItem, UpdateCartShipmentRequest, UpdateProductCart, UpdateUserCartMapping, UserCartMappingResponse, UserInfo, UserRegistered, UsesRemaining, UsesRemaining1, UsesRestriction, UsesRestriction1, Validation, Validity, Visibility };
|
|
1644
|
+
export { AbandonedCart, AbandonedCartResponse, ActionQuery, ActivePromosResponse, AddCartDetailResponse, AddCartRequest, AddProductCart, AppliedFreeArticles, AppliedPromotion, ApplyCouponRequest, Article, ArticlePriceInfo, BaseInfo, BasePrice, BulkBundleRestriction, BuyRules, CartBreakup, CartCheckoutCustomMeta, CartCheckoutResponse, CartCurrency, CartDeliveryModesResponse, CartDetailResponse, CartItem, CartItemCountResponse, CartItemMeta, CartList, CartMetaConfigAdd, CartMetaConfigUpdate, CartMetaMissingResponse, CartMetaResponse, CartProduct, CartProductIdentifer, CartProductInfo, CategoryInfo, Charges, CheckCart, Collection, CompareObject, Coupon, CouponAction, CouponAdd, CouponAuthor, CouponBreakup, CouponDateMeta, CouponDetails, CouponPartialUpdate, CouponSchedule, CouponsResponse, CouponUpdate, CouponValidity, CustomerDetails, DeleteAddressResponse, DeleteCartDetailResponse, DeleteCartRequest, DeliveryCharges, DiscountOffer, DiscountRule, DiscountRulesApp, DisplayBreakup, DisplayMeta, DisplayMeta1, DisplayMetaDict, Files, FreeGiftItem, GeoLocation, GetCouponResponse, GetShareCartLinkRequest, GetShareCartLinkResponse, Identifier, ItemCriteria, LoyaltyPoints, MultiCartResponse, MultiTenderPaymentMeta, MultiTenderPaymentMethod, OpenapiCartDetailsRequest, OpenapiCartDetailsResponse, OpenApiCartServiceabilityRequest, OpenApiCartServiceabilityResponse, OpenApiCheckoutResponse, OpenApiErrorResponse, OpenApiFiles, OpenApiOrderItem, OpenApiPlatformCheckoutReq, OperationErrorResponse, OverrideCartItem, OverrideCartItemPromo, OverrideCheckoutReq, OverrideCheckoutResponse, Ownership, Ownership1, Ownership2, Page, PageCoupon, PaymentAllowValue, PaymentAllowValue1, PaymentCouponValidate, PaymentMeta, PaymentMethod, PaymentModes, PaymentSelectionLock, PickupStoreDetail, PlatformAddCartRequest, PlatformAddress, PlatformCartCheckoutDetailRequest, PlatformCartCheckoutDetailV2Request, PlatformCartMetaRequest, PlatformCartShipmentsResponse, PlatformGetAddressesResponse, PlatformSelectCartAddressRequest, PlatformShipmentResponse, PlatformUpdateCartRequest, PostOrder, PostOrder1, PriceAdjustment, PriceAdjustmentAdd, PriceAdjustmentResponse, PriceAdjustmentUpdate, PriceRange, ProductAction, ProductArticle, ProductAvailability, ProductAvailabilitySize, ProductImage, ProductPrice, ProductPriceInfo, PromiseFormatted, PromiseTimestamp, PromoMeta, PromotionAction, PromotionAdd, PromotionAuthor, PromotionDateMeta, PromotionListItem, PromotionPartialUpdate, PromotionPaymentModes, PromotionSchedule, PromotionsResponse, PromotionUpdate, RawBreakup, Restrictions, Restrictions1, Rule, RuleDefinition, SaveAddressResponse, SharedCart, SharedCartDetails, SharedCartResponse, ShipmentArticle, ShipmentPromise, ShippingAddress, StaffCheckout, State, StoreDetailsResponse, StoreInfo, SuccessMessage, Tags, UpdateAddressResponse, UpdateCartDetailResponse, UpdateCartPaymentRequest, UpdateCartPaymentRequestV2, UpdateCartRequest, UpdateCartShipmentItem, UpdateCartShipmentRequest, UpdateProductCart, UpdateUserCartMapping, UserCartMappingResponse, UserInfo, UserRegistered, UsesRemaining, UsesRemaining1, UsesRestriction, UsesRestriction1, Validation, Validity, Visibility };
|
|
1618
1645
|
}
|
|
1619
1646
|
/** @returns {AbandonedCart} */
|
|
1620
1647
|
declare function AbandonedCart(): AbandonedCart;
|
|
@@ -1844,10 +1871,30 @@ type ApplyCouponRequest = {
|
|
|
1844
1871
|
/** @returns {Article} */
|
|
1845
1872
|
declare function Article(): Article;
|
|
1846
1873
|
type Article = {
|
|
1874
|
+
/**
|
|
1875
|
+
* - Id of article
|
|
1876
|
+
*/
|
|
1847
1877
|
article_id: string;
|
|
1878
|
+
/**
|
|
1879
|
+
* - Code to identify price adjustment on article
|
|
1880
|
+
*/
|
|
1848
1881
|
code?: string;
|
|
1882
|
+
/**
|
|
1883
|
+
* - Meta related to article
|
|
1884
|
+
*/
|
|
1849
1885
|
meta?: any;
|
|
1886
|
+
/**
|
|
1887
|
+
* - Total quantity of the article to be
|
|
1888
|
+
* considered (currently used only in discount type)
|
|
1889
|
+
*/
|
|
1890
|
+
quantity?: number;
|
|
1891
|
+
/**
|
|
1892
|
+
* - Type of price adjusment
|
|
1893
|
+
*/
|
|
1850
1894
|
type?: string;
|
|
1895
|
+
/**
|
|
1896
|
+
* - Value of price adjustment for article
|
|
1897
|
+
*/
|
|
1851
1898
|
value?: number;
|
|
1852
1899
|
};
|
|
1853
1900
|
/** @returns {ArticlePriceInfo} */
|
|
@@ -1895,6 +1942,12 @@ type CartBreakup = {
|
|
|
1895
1942
|
loyalty_points?: LoyaltyPoints;
|
|
1896
1943
|
raw?: RawBreakup;
|
|
1897
1944
|
};
|
|
1945
|
+
/** @returns {CartCheckoutCustomMeta} */
|
|
1946
|
+
declare function CartCheckoutCustomMeta(): CartCheckoutCustomMeta;
|
|
1947
|
+
type CartCheckoutCustomMeta = {
|
|
1948
|
+
key: string;
|
|
1949
|
+
value: string;
|
|
1950
|
+
};
|
|
1898
1951
|
/** @returns {CartCheckoutResponse} */
|
|
1899
1952
|
declare function CartCheckoutResponse(): CartCheckoutResponse;
|
|
1900
1953
|
type CartCheckoutResponse = {
|
|
@@ -2264,6 +2317,13 @@ type CouponValidity = {
|
|
|
2264
2317
|
title?: string;
|
|
2265
2318
|
valid?: boolean;
|
|
2266
2319
|
};
|
|
2320
|
+
/** @returns {CustomerDetails} */
|
|
2321
|
+
declare function CustomerDetails(): CustomerDetails;
|
|
2322
|
+
type CustomerDetails = {
|
|
2323
|
+
email?: string;
|
|
2324
|
+
mobile: string;
|
|
2325
|
+
name?: string;
|
|
2326
|
+
};
|
|
2267
2327
|
/** @returns {DeleteAddressResponse} */
|
|
2268
2328
|
declare function DeleteAddressResponse(): DeleteAddressResponse;
|
|
2269
2329
|
type DeleteAddressResponse = {
|
|
@@ -2835,6 +2895,11 @@ type PlatformCartCheckoutDetailRequest = {
|
|
|
2835
2895
|
billing_address_id?: string;
|
|
2836
2896
|
callback_url?: string;
|
|
2837
2897
|
checkout_mode?: string;
|
|
2898
|
+
custom_meta?: CartCheckoutCustomMeta[];
|
|
2899
|
+
/**
|
|
2900
|
+
* - Customer details
|
|
2901
|
+
*/
|
|
2902
|
+
customer_details?: any;
|
|
2838
2903
|
delivery_address?: any;
|
|
2839
2904
|
device_id?: string;
|
|
2840
2905
|
employee_code?: string;
|
|
@@ -2867,6 +2932,10 @@ type PlatformCartCheckoutDetailV2Request = {
|
|
|
2867
2932
|
callback_url?: string;
|
|
2868
2933
|
checkout_mode?: string;
|
|
2869
2934
|
custom_meta?: any;
|
|
2935
|
+
/**
|
|
2936
|
+
* - Customer details
|
|
2937
|
+
*/
|
|
2938
|
+
customer_details?: any;
|
|
2870
2939
|
delivery_address?: any;
|
|
2871
2940
|
device_id?: string;
|
|
2872
2941
|
employee_code?: string;
|
|
@@ -2985,34 +3054,89 @@ type PostOrder1 = {
|
|
|
2985
3054
|
/** @returns {PriceAdjustment} */
|
|
2986
3055
|
declare function PriceAdjustment(): PriceAdjustment;
|
|
2987
3056
|
type PriceAdjustment = {
|
|
3057
|
+
/**
|
|
3058
|
+
* - Flag indicating whether refunds are
|
|
3059
|
+
* allowed (default: False)
|
|
3060
|
+
*/
|
|
2988
3061
|
allowed_refund?: boolean;
|
|
3062
|
+
/**
|
|
3063
|
+
* - The date and time when the expiry should be applied
|
|
3064
|
+
*/
|
|
2989
3065
|
apply_expiry?: string;
|
|
3066
|
+
/**
|
|
3067
|
+
* - The list of article object in the price adjustment
|
|
3068
|
+
*/
|
|
2990
3069
|
article_ids: Article[];
|
|
3070
|
+
/**
|
|
3071
|
+
* - Flag indicating whether the
|
|
3072
|
+
* distribution should is done at the article level
|
|
3073
|
+
*/
|
|
2991
3074
|
article_level_distribution: boolean;
|
|
3075
|
+
/**
|
|
3076
|
+
* - The ID of the cart
|
|
3077
|
+
*/
|
|
2992
3078
|
cart_id: string;
|
|
2993
|
-
cart_value?: number;
|
|
2994
3079
|
collection: Collection;
|
|
2995
3080
|
id?: string;
|
|
3081
|
+
/**
|
|
3082
|
+
* - Flag indicating whether the user is
|
|
3083
|
+
* authenticated
|
|
3084
|
+
*/
|
|
2996
3085
|
is_authenticated: boolean;
|
|
3086
|
+
/**
|
|
3087
|
+
* - The message associated with the price adjustment
|
|
3088
|
+
*/
|
|
2997
3089
|
message: string;
|
|
2998
3090
|
meta?: any;
|
|
3091
|
+
/**
|
|
3092
|
+
* - Type of price adjusment
|
|
3093
|
+
*/
|
|
2999
3094
|
type: string;
|
|
3000
3095
|
value: number;
|
|
3001
3096
|
};
|
|
3002
3097
|
/** @returns {PriceAdjustmentAdd} */
|
|
3003
3098
|
declare function PriceAdjustmentAdd(): PriceAdjustmentAdd;
|
|
3004
3099
|
type PriceAdjustmentAdd = {
|
|
3100
|
+
/**
|
|
3101
|
+
* - Flag indicating whether refunds are
|
|
3102
|
+
* allowed (default: False)
|
|
3103
|
+
*/
|
|
3005
3104
|
allowed_refund?: boolean;
|
|
3105
|
+
/**
|
|
3106
|
+
* - The date and time when the expiry should be applied
|
|
3107
|
+
*/
|
|
3006
3108
|
apply_expiry?: string;
|
|
3109
|
+
/**
|
|
3110
|
+
* - The list of article object in the price adjustment
|
|
3111
|
+
*/
|
|
3007
3112
|
article_ids: Article[];
|
|
3113
|
+
/**
|
|
3114
|
+
* - Flag indicating whether the
|
|
3115
|
+
* distribution should is done at the article level
|
|
3116
|
+
*/
|
|
3008
3117
|
article_level_distribution: boolean;
|
|
3118
|
+
/**
|
|
3119
|
+
* - The ID of the cart
|
|
3120
|
+
*/
|
|
3009
3121
|
cart_id: string;
|
|
3010
|
-
cart_value?: number;
|
|
3011
3122
|
collection: Collection;
|
|
3123
|
+
/**
|
|
3124
|
+
* - The entity that created the field
|
|
3125
|
+
*/
|
|
3012
3126
|
created_by?: string;
|
|
3127
|
+
/**
|
|
3128
|
+
* - Flag indicating whether the user is
|
|
3129
|
+
* authenticated
|
|
3130
|
+
*/
|
|
3013
3131
|
is_authenticated: boolean;
|
|
3132
|
+
/**
|
|
3133
|
+
* - The message associated with the price adjustment
|
|
3134
|
+
*/
|
|
3014
3135
|
message: string;
|
|
3015
3136
|
meta?: any;
|
|
3137
|
+
/**
|
|
3138
|
+
* - Type of price adjusment
|
|
3139
|
+
*/
|
|
3016
3140
|
type: string;
|
|
3017
3141
|
value: number;
|
|
3018
3142
|
};
|
|
@@ -3024,17 +3148,46 @@ type PriceAdjustmentResponse = {
|
|
|
3024
3148
|
/** @returns {PriceAdjustmentUpdate} */
|
|
3025
3149
|
declare function PriceAdjustmentUpdate(): PriceAdjustmentUpdate;
|
|
3026
3150
|
type PriceAdjustmentUpdate = {
|
|
3151
|
+
/**
|
|
3152
|
+
* - Flag indicating whether refunds are
|
|
3153
|
+
* allowed (default: False)
|
|
3154
|
+
*/
|
|
3027
3155
|
allowed_refund?: boolean;
|
|
3156
|
+
/**
|
|
3157
|
+
* - The date and time when the expiry should be applied
|
|
3158
|
+
*/
|
|
3028
3159
|
apply_expiry?: string;
|
|
3160
|
+
/**
|
|
3161
|
+
* - The list of article object in the price adjustment
|
|
3162
|
+
*/
|
|
3029
3163
|
article_ids: Article[];
|
|
3164
|
+
/**
|
|
3165
|
+
* - Flag indicating whether the
|
|
3166
|
+
* distribution should is done at the article level
|
|
3167
|
+
*/
|
|
3030
3168
|
article_level_distribution: boolean;
|
|
3169
|
+
/**
|
|
3170
|
+
* - The ID of the cart
|
|
3171
|
+
*/
|
|
3031
3172
|
cart_id: string;
|
|
3032
|
-
cart_value?: number;
|
|
3033
3173
|
collection: Collection;
|
|
3174
|
+
/**
|
|
3175
|
+
* - Flag indicating whether the user is
|
|
3176
|
+
* authenticated
|
|
3177
|
+
*/
|
|
3034
3178
|
is_authenticated: boolean;
|
|
3179
|
+
/**
|
|
3180
|
+
* - The message associated with the price adjustment
|
|
3181
|
+
*/
|
|
3035
3182
|
message: string;
|
|
3036
3183
|
meta?: any;
|
|
3184
|
+
/**
|
|
3185
|
+
* - The entity that modified the field
|
|
3186
|
+
*/
|
|
3037
3187
|
modified_by?: string;
|
|
3188
|
+
/**
|
|
3189
|
+
* - Type of price adjusment
|
|
3190
|
+
*/
|
|
3038
3191
|
type: string;
|
|
3039
3192
|
value: number;
|
|
3040
3193
|
};
|
|
@@ -3181,30 +3334,77 @@ type PromotionDateMeta = {
|
|
|
3181
3334
|
/** @returns {PromotionListItem} */
|
|
3182
3335
|
declare function PromotionListItem(): PromotionListItem;
|
|
3183
3336
|
type PromotionListItem = {
|
|
3337
|
+
/**
|
|
3338
|
+
* - Custom data stored in promotion
|
|
3339
|
+
*/
|
|
3184
3340
|
_custom_json?: any;
|
|
3341
|
+
/**
|
|
3342
|
+
* - Promotion id
|
|
3343
|
+
*/
|
|
3344
|
+
_id?: string;
|
|
3185
3345
|
_schedule?: PromotionSchedule;
|
|
3346
|
+
/**
|
|
3347
|
+
* - App id in which promotion will be used
|
|
3348
|
+
*/
|
|
3186
3349
|
application_id: string;
|
|
3350
|
+
/**
|
|
3351
|
+
* - Prevents more than one promotion discounts
|
|
3352
|
+
*/
|
|
3187
3353
|
apply_all_discount?: boolean;
|
|
3354
|
+
/**
|
|
3355
|
+
* - Doesn't allow other promotion after
|
|
3356
|
+
* current promotion applied on cart or article
|
|
3357
|
+
*/
|
|
3188
3358
|
apply_exclusive?: string;
|
|
3359
|
+
/**
|
|
3360
|
+
* - Priority based on which promotion are
|
|
3361
|
+
* applied on articles
|
|
3362
|
+
*/
|
|
3189
3363
|
apply_priority?: number;
|
|
3190
3364
|
author?: PromotionAuthor;
|
|
3365
|
+
/**
|
|
3366
|
+
* - Buy rules for the promotion
|
|
3367
|
+
*/
|
|
3191
3368
|
buy_rules: any;
|
|
3192
3369
|
/**
|
|
3193
3370
|
* - Only available for Contract pricing and
|
|
3194
3371
|
* Ladder pricing promotion type
|
|
3195
3372
|
*/
|
|
3196
3373
|
calculate_on?: string;
|
|
3374
|
+
/**
|
|
3375
|
+
* - Promotion code
|
|
3376
|
+
*/
|
|
3197
3377
|
code?: string;
|
|
3378
|
+
/**
|
|
3379
|
+
* - Currency used for promotion
|
|
3380
|
+
*/
|
|
3198
3381
|
currency?: string;
|
|
3199
3382
|
date_meta?: PromotionDateMeta;
|
|
3383
|
+
/**
|
|
3384
|
+
* - Discount rules based on which
|
|
3385
|
+
* promotion will be applied
|
|
3386
|
+
*/
|
|
3200
3387
|
discount_rules: DiscountRule[];
|
|
3201
3388
|
display_meta: DisplayMeta1;
|
|
3389
|
+
/**
|
|
3390
|
+
* - Promotion mode
|
|
3391
|
+
*/
|
|
3202
3392
|
mode: string;
|
|
3203
3393
|
ownership: Ownership1;
|
|
3204
3394
|
post_order_action?: PromotionAction;
|
|
3395
|
+
/**
|
|
3396
|
+
* - Group into which promotion fall
|
|
3397
|
+
*/
|
|
3205
3398
|
promo_group: string;
|
|
3399
|
+
/**
|
|
3400
|
+
* - Type of the promotion
|
|
3401
|
+
*/
|
|
3206
3402
|
promotion_type: string;
|
|
3207
3403
|
restrictions?: Restrictions1;
|
|
3404
|
+
/**
|
|
3405
|
+
* - Allows more than one promotion to get
|
|
3406
|
+
* combined benefits
|
|
3407
|
+
*/
|
|
3208
3408
|
stackable?: boolean;
|
|
3209
3409
|
visiblility?: Visibility;
|
|
3210
3410
|
};
|
|
@@ -3312,7 +3512,7 @@ type Restrictions1 = {
|
|
|
3312
3512
|
post_order?: PostOrder1;
|
|
3313
3513
|
user_groups?: number[];
|
|
3314
3514
|
user_id?: string[];
|
|
3315
|
-
user_registered?:
|
|
3515
|
+
user_registered?: any;
|
|
3316
3516
|
uses: UsesRestriction1;
|
|
3317
3517
|
};
|
|
3318
3518
|
/** @returns {Rule} */
|