@gofynd/fdk-client-javascript 1.4.2-beta.2 → 1.4.2-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +1 -1
- package/sdk/application/Cart/CartApplicationModel.d.ts +1742 -1726
- package/sdk/application/Cart/CartApplicationModel.js +1497 -1481
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +1917 -1917
- package/sdk/application/Catalog/CatalogApplicationModel.js +1611 -1611
- package/sdk/application/Common/CommonApplicationModel.d.ts +235 -235
- package/sdk/application/Common/CommonApplicationModel.js +172 -172
- package/sdk/application/Communication/CommunicationApplicationModel.d.ts +72 -72
- package/sdk/application/Communication/CommunicationApplicationModel.js +64 -64
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +1614 -1614
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +1151 -1151
- package/sdk/application/Content/ContentApplicationModel.d.ts +797 -797
- package/sdk/application/Content/ContentApplicationModel.js +757 -757
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +79 -79
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +84 -84
- package/sdk/application/Lead/LeadApplicationModel.d.ts +417 -417
- package/sdk/application/Lead/LeadApplicationModel.js +301 -301
- package/sdk/application/Logistic/LogisticApplicationModel.d.ts +666 -666
- package/sdk/application/Logistic/LogisticApplicationModel.js +601 -601
- package/sdk/application/Order/OrderApplicationModel.d.ts +846 -846
- package/sdk/application/Order/OrderApplicationModel.js +822 -822
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +5 -5
- package/sdk/application/Payment/PaymentApplicationClient.js +10 -10
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +2155 -2150
- package/sdk/application/Payment/PaymentApplicationModel.js +1460 -1458
- package/sdk/application/Payment/PaymentApplicationValidator.d.ts +5 -5
- package/sdk/application/Payment/PaymentApplicationValidator.js +3 -3
- package/sdk/application/PosCart/PosCartApplicationModel.d.ts +1462 -1462
- package/sdk/application/PosCart/PosCartApplicationModel.js +1260 -1260
- package/sdk/application/Rewards/RewardsApplicationModel.d.ts +214 -214
- package/sdk/application/Rewards/RewardsApplicationModel.js +211 -211
- package/sdk/application/Share/ShareApplicationModel.d.ts +114 -114
- package/sdk/application/Share/ShareApplicationModel.js +121 -121
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +895 -895
- package/sdk/application/Theme/ThemeApplicationModel.js +684 -684
- package/sdk/application/User/UserApplicationModel.d.ts +762 -762
- package/sdk/application/User/UserApplicationModel.js +738 -738
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +63 -63
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +65 -65
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +661 -661
- package/sdk/partner/Lead/LeadPartnerModel.js +491 -491
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +223 -223
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +235 -235
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +1087 -1087
- package/sdk/partner/Theme/ThemePartnerModel.js +819 -819
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +386 -386
- package/sdk/partner/Webhook/WebhookPartnerModel.js +342 -342
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +123 -123
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +109 -109
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +801 -801
- package/sdk/platform/Billing/BillingPlatformModel.js +783 -783
- package/sdk/platform/Cart/CartPlatformModel.d.ts +3333 -3317
- package/sdk/platform/Cart/CartPlatformModel.js +2936 -2920
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +1013 -1013
- package/sdk/platform/Catalog/CatalogPlatformModel.js +923 -923
- package/sdk/platform/Common/CommonPlatformModel.d.ts +255 -255
- package/sdk/platform/Common/CommonPlatformModel.js +187 -187
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +1238 -1238
- package/sdk/platform/Communication/CommunicationPlatformModel.js +1273 -1273
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +661 -661
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +692 -692
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +3198 -3198
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +2247 -2247
- package/sdk/platform/Content/ContentPlatformModel.d.ts +1833 -1833
- package/sdk/platform/Content/ContentPlatformModel.js +1837 -1837
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +245 -245
- package/sdk/platform/Discount/DiscountPlatformModel.js +248 -248
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +865 -865
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +877 -877
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +1044 -1044
- package/sdk/platform/Finance/FinancePlatformModel.js +974 -974
- package/sdk/platform/Inventory/InventoryPlatformModel.d.ts +942 -942
- package/sdk/platform/Inventory/InventoryPlatformModel.js +1003 -1003
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +608 -608
- package/sdk/platform/Lead/LeadPlatformModel.js +465 -465
- package/sdk/platform/Order/OrderPlatformModel.d.ts +5180 -5176
- package/sdk/platform/Order/OrderPlatformModel.js +4740 -4736
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +22 -22
- package/sdk/platform/Partner/PartnerPlatformModel.js +22 -22
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +2670 -2660
- package/sdk/platform/Payment/PaymentPlatformModel.js +1831 -1827
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +204 -204
- package/sdk/platform/Rewards/RewardsPlatformModel.js +199 -199
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +1505 -1507
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +1532 -1536
- package/sdk/platform/Share/SharePlatformModel.d.ts +147 -147
- package/sdk/platform/Share/SharePlatformModel.js +139 -139
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +1046 -1046
- package/sdk/platform/Theme/ThemePlatformModel.js +789 -789
- package/sdk/platform/User/UserPlatformModel.d.ts +758 -758
- package/sdk/platform/User/UserPlatformModel.js +643 -643
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +439 -439
- package/sdk/platform/Webhook/WebhookPlatformModel.js +364 -364
- package/sdk/public/Billing/BillingPublicModel.d.ts +55 -55
- package/sdk/public/Billing/BillingPublicModel.js +51 -51
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +237 -237
- package/sdk/public/Configuration/ConfigurationPublicModel.js +174 -174
- package/sdk/public/Content/ContentPublicModel.d.ts +26 -26
- package/sdk/public/Content/ContentPublicModel.js +28 -28
- package/sdk/public/Inventory/InventoryPublicModel.d.ts +237 -237
- package/sdk/public/Inventory/InventoryPublicModel.js +257 -257
- package/sdk/public/Partner/PartnerPublicModel.d.ts +104 -104
- package/sdk/public/Partner/PartnerPublicModel.js +113 -113
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +87 -87
- package/sdk/public/Webhook/WebhookPublicModel.js +93 -93
|
@@ -1,32 +1,28 @@
|
|
|
1
1
|
export = RewardsApplicationModel;
|
|
2
2
|
/**
|
|
3
|
-
* @typedef
|
|
4
|
-
* @property {string} [aspect_ratio]
|
|
3
|
+
* @typedef RewardsArticle
|
|
5
4
|
* @property {string} [id]
|
|
6
|
-
* @property {
|
|
5
|
+
* @property {number} [points]
|
|
6
|
+
* @property {number} [price]
|
|
7
7
|
*/
|
|
8
8
|
/**
|
|
9
|
-
* @typedef
|
|
9
|
+
* @typedef CatalogueOrderResponse
|
|
10
10
|
* @property {RewardsArticle[]} [articles]
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
13
|
-
* @typedef
|
|
13
|
+
* @typedef CatalogueOrderRequest
|
|
14
14
|
* @property {RewardsArticle[]} [articles]
|
|
15
15
|
*/
|
|
16
16
|
/**
|
|
17
|
-
* @typedef
|
|
18
|
-
* @property {number} [
|
|
19
|
-
* @property {string} [currency]
|
|
20
|
-
* @property {string} [display_absolute]
|
|
21
|
-
* @property {string} [display_percent]
|
|
22
|
-
* @property {number} [percent]
|
|
17
|
+
* @typedef PointsResponse
|
|
18
|
+
* @property {number} [points] - Total points available
|
|
23
19
|
*/
|
|
24
20
|
/**
|
|
25
|
-
* @typedef
|
|
26
|
-
* @property {
|
|
27
|
-
* @property {
|
|
28
|
-
* @property {
|
|
29
|
-
* @property {string} [
|
|
21
|
+
* @typedef ReferralDetailsUser
|
|
22
|
+
* @property {boolean} [blocked]
|
|
23
|
+
* @property {number} [points]
|
|
24
|
+
* @property {boolean} [redeemed]
|
|
25
|
+
* @property {string} [referral_code]
|
|
30
26
|
*/
|
|
31
27
|
/**
|
|
32
28
|
* @typedef Offer
|
|
@@ -46,17 +42,49 @@ export = RewardsApplicationModel;
|
|
|
46
42
|
* @property {string} [url]
|
|
47
43
|
*/
|
|
48
44
|
/**
|
|
49
|
-
* @typedef
|
|
50
|
-
* @property {
|
|
51
|
-
* @property {
|
|
45
|
+
* @typedef Schedule
|
|
46
|
+
* @property {number} [duration]
|
|
47
|
+
* @property {string} [end]
|
|
48
|
+
* @property {string} [start]
|
|
49
|
+
* @property {string} [cron]
|
|
52
50
|
*/
|
|
53
51
|
/**
|
|
54
|
-
* @typedef
|
|
55
|
-
* @property {
|
|
56
|
-
* @property {
|
|
57
|
-
* @property {
|
|
58
|
-
* @property {
|
|
59
|
-
|
|
52
|
+
* @typedef Error
|
|
53
|
+
* @property {number} [code]
|
|
54
|
+
* @property {string} [exception]
|
|
55
|
+
* @property {string} [info]
|
|
56
|
+
* @property {string} [message]
|
|
57
|
+
*/
|
|
58
|
+
/**
|
|
59
|
+
* @typedef Asset
|
|
60
|
+
* @property {string} [aspect_ratio]
|
|
61
|
+
* @property {string} [id]
|
|
62
|
+
* @property {string} [secure_url]
|
|
63
|
+
*/
|
|
64
|
+
/**
|
|
65
|
+
* @typedef ShareMessages
|
|
66
|
+
* @property {number} [email]
|
|
67
|
+
* @property {string} [facebook]
|
|
68
|
+
* @property {string} [fallback]
|
|
69
|
+
* @property {string} [message]
|
|
70
|
+
* @property {string} [messenger]
|
|
71
|
+
* @property {string} [sms]
|
|
72
|
+
* @property {string} [text]
|
|
73
|
+
* @property {string} [twitter]
|
|
74
|
+
* @property {string} [whatsapp]
|
|
75
|
+
*/
|
|
76
|
+
/**
|
|
77
|
+
* @typedef ReferralDetailsResponse
|
|
78
|
+
* @property {Offer} [referral]
|
|
79
|
+
* @property {ShareMessages} [share]
|
|
80
|
+
* @property {ReferralDetailsUser} [user]
|
|
81
|
+
* @property {string} [referrer_info]
|
|
82
|
+
* @property {string} [terms_conditions_link]
|
|
83
|
+
*/
|
|
84
|
+
/**
|
|
85
|
+
* @typedef OrderDiscountRequest
|
|
86
|
+
* @property {number} order_amount
|
|
87
|
+
* @property {string} [currency]
|
|
60
88
|
*/
|
|
61
89
|
/**
|
|
62
90
|
* @typedef OrderDiscountRuleBucket
|
|
@@ -67,40 +95,20 @@ export = RewardsApplicationModel;
|
|
|
67
95
|
* @property {string} [value_type]
|
|
68
96
|
*/
|
|
69
97
|
/**
|
|
70
|
-
* @typedef
|
|
71
|
-
* @property {number} [
|
|
72
|
-
* @property {
|
|
73
|
-
* @property {
|
|
74
|
-
* @property {
|
|
75
|
-
* @property {
|
|
76
|
-
* @property {number} [size]
|
|
77
|
-
* @property {string} type
|
|
98
|
+
* @typedef DiscountProperties
|
|
99
|
+
* @property {number} [absolute]
|
|
100
|
+
* @property {string} [currency]
|
|
101
|
+
* @property {string} [display_absolute]
|
|
102
|
+
* @property {string} [display_percent]
|
|
103
|
+
* @property {number} [percent]
|
|
78
104
|
*/
|
|
79
105
|
/**
|
|
80
|
-
* @typedef
|
|
81
|
-
* @property {
|
|
82
|
-
* @property {string} [application_id]
|
|
83
|
-
* @property {boolean} [claimed]
|
|
84
|
-
* @property {string} [created_at]
|
|
85
|
-
* @property {string} [expires_on]
|
|
86
|
-
* @property {Object} [meta]
|
|
106
|
+
* @typedef OrderDiscountResponse
|
|
107
|
+
* @property {number} [order_amount]
|
|
87
108
|
* @property {number} [points]
|
|
88
|
-
* @property {
|
|
89
|
-
* @property {
|
|
90
|
-
* @property {
|
|
91
|
-
* @property {string} [text_3]
|
|
92
|
-
* @property {string} [txn_name]
|
|
93
|
-
* @property {string} [updated_at]
|
|
94
|
-
* @property {string} [user_id]
|
|
95
|
-
*/
|
|
96
|
-
/**
|
|
97
|
-
* @typedef PointsHistoryResponse
|
|
98
|
-
* @property {PointsHistory[]} [items] - History is the list of points transaction.
|
|
99
|
-
* @property {Page} [page]
|
|
100
|
-
*/
|
|
101
|
-
/**
|
|
102
|
-
* @typedef PointsResponse
|
|
103
|
-
* @property {number} [points] - Total points available
|
|
109
|
+
* @property {DiscountProperties} [discount]
|
|
110
|
+
* @property {DiscountProperties} [base_discount]
|
|
111
|
+
* @property {OrderDiscountRuleBucket} [applied_rule_bucket]
|
|
104
112
|
*/
|
|
105
113
|
/**
|
|
106
114
|
* @typedef RedeemReferralCodeRequest
|
|
@@ -109,90 +117,81 @@ export = RewardsApplicationModel;
|
|
|
109
117
|
*/
|
|
110
118
|
/**
|
|
111
119
|
* @typedef RedeemReferralCodeResponse
|
|
112
|
-
* @property {string} [message]
|
|
113
|
-
* @property {number} [points]
|
|
114
120
|
* @property {boolean} [redeemed]
|
|
115
|
-
* @property {string} [
|
|
116
|
-
* @property {string} [referrer_info]
|
|
117
|
-
*/
|
|
118
|
-
/**
|
|
119
|
-
* @typedef ReferralDetailsResponse
|
|
120
|
-
* @property {Offer} [referral]
|
|
121
|
+
* @property {string} [message]
|
|
121
122
|
* @property {string} [referrer_info]
|
|
122
|
-
* @property {
|
|
123
|
-
* @property {string} [terms_conditions_link]
|
|
124
|
-
* @property {ReferralDetailsUser} [user]
|
|
125
|
-
*/
|
|
126
|
-
/**
|
|
127
|
-
* @typedef ReferralDetailsUser
|
|
128
|
-
* @property {boolean} [blocked]
|
|
123
|
+
* @property {string} [referrer_id]
|
|
129
124
|
* @property {number} [points]
|
|
130
|
-
* @property {boolean} [redeemed]
|
|
131
|
-
* @property {string} [referral_code]
|
|
132
125
|
*/
|
|
133
126
|
/**
|
|
134
|
-
* @typedef
|
|
135
|
-
* @property {
|
|
136
|
-
* @property {
|
|
137
|
-
* @property {number} [price]
|
|
127
|
+
* @typedef PointsHistoryResponse
|
|
128
|
+
* @property {PointsHistory[]} [items] - History is the list of points transaction.
|
|
129
|
+
* @property {Page} [page]
|
|
138
130
|
*/
|
|
139
131
|
/**
|
|
140
|
-
* @typedef
|
|
141
|
-
* @property {string} [
|
|
142
|
-
* @property {
|
|
143
|
-
* @property {
|
|
144
|
-
* @property {string} [
|
|
132
|
+
* @typedef PointsHistory
|
|
133
|
+
* @property {string} [_id]
|
|
134
|
+
* @property {string} [application_id]
|
|
135
|
+
* @property {boolean} [claimed]
|
|
136
|
+
* @property {string} [created_at]
|
|
137
|
+
* @property {string} [expires_on]
|
|
138
|
+
* @property {Object} [meta]
|
|
139
|
+
* @property {number} [points]
|
|
140
|
+
* @property {number} [remaining_points]
|
|
141
|
+
* @property {string} [text_1]
|
|
142
|
+
* @property {string} [text_2]
|
|
143
|
+
* @property {string} [text_3]
|
|
144
|
+
* @property {string} [txn_name]
|
|
145
|
+
* @property {string} [updated_at]
|
|
146
|
+
* @property {string} [user_id]
|
|
145
147
|
*/
|
|
146
148
|
/**
|
|
147
|
-
* @typedef
|
|
148
|
-
* @property {number} [
|
|
149
|
-
* @property {string} [
|
|
150
|
-
* @property {
|
|
151
|
-
* @property {
|
|
152
|
-
* @property {
|
|
153
|
-
* @property {string}
|
|
154
|
-
* @property {
|
|
155
|
-
* @property {string} [twitter]
|
|
156
|
-
* @property {string} [whatsapp]
|
|
149
|
+
* @typedef Page
|
|
150
|
+
* @property {number} [item_total]
|
|
151
|
+
* @property {string} [next_id]
|
|
152
|
+
* @property {boolean} [has_previous]
|
|
153
|
+
* @property {boolean} [has_next]
|
|
154
|
+
* @property {number} [current]
|
|
155
|
+
* @property {string} type
|
|
156
|
+
* @property {number} [size]
|
|
157
157
|
*/
|
|
158
158
|
declare class RewardsApplicationModel {
|
|
159
159
|
}
|
|
160
160
|
declare namespace RewardsApplicationModel {
|
|
161
|
-
export {
|
|
161
|
+
export { RewardsArticle, CatalogueOrderResponse, CatalogueOrderRequest, PointsResponse, ReferralDetailsUser, Offer, Schedule, Error, Asset, ShareMessages, ReferralDetailsResponse, OrderDiscountRequest, OrderDiscountRuleBucket, DiscountProperties, OrderDiscountResponse, RedeemReferralCodeRequest, RedeemReferralCodeResponse, PointsHistoryResponse, PointsHistory, Page };
|
|
162
162
|
}
|
|
163
|
-
/** @returns {
|
|
164
|
-
declare function
|
|
165
|
-
type
|
|
166
|
-
aspect_ratio?: string;
|
|
163
|
+
/** @returns {RewardsArticle} */
|
|
164
|
+
declare function RewardsArticle(): RewardsArticle;
|
|
165
|
+
type RewardsArticle = {
|
|
167
166
|
id?: string;
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
/** @returns {CatalogueOrderRequest} */
|
|
171
|
-
declare function CatalogueOrderRequest(): CatalogueOrderRequest;
|
|
172
|
-
type CatalogueOrderRequest = {
|
|
173
|
-
articles?: RewardsArticle[];
|
|
167
|
+
points?: number;
|
|
168
|
+
price?: number;
|
|
174
169
|
};
|
|
175
170
|
/** @returns {CatalogueOrderResponse} */
|
|
176
171
|
declare function CatalogueOrderResponse(): CatalogueOrderResponse;
|
|
177
172
|
type CatalogueOrderResponse = {
|
|
178
173
|
articles?: RewardsArticle[];
|
|
179
174
|
};
|
|
180
|
-
/** @returns {
|
|
181
|
-
declare function
|
|
182
|
-
type
|
|
183
|
-
|
|
184
|
-
currency?: string;
|
|
185
|
-
display_absolute?: string;
|
|
186
|
-
display_percent?: string;
|
|
187
|
-
percent?: number;
|
|
175
|
+
/** @returns {CatalogueOrderRequest} */
|
|
176
|
+
declare function CatalogueOrderRequest(): CatalogueOrderRequest;
|
|
177
|
+
type CatalogueOrderRequest = {
|
|
178
|
+
articles?: RewardsArticle[];
|
|
188
179
|
};
|
|
189
|
-
/** @returns {
|
|
190
|
-
declare function
|
|
191
|
-
type
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
180
|
+
/** @returns {PointsResponse} */
|
|
181
|
+
declare function PointsResponse(): PointsResponse;
|
|
182
|
+
type PointsResponse = {
|
|
183
|
+
/**
|
|
184
|
+
* - Total points available
|
|
185
|
+
*/
|
|
186
|
+
points?: number;
|
|
187
|
+
};
|
|
188
|
+
/** @returns {ReferralDetailsUser} */
|
|
189
|
+
declare function ReferralDetailsUser(): ReferralDetailsUser;
|
|
190
|
+
type ReferralDetailsUser = {
|
|
191
|
+
blocked?: boolean;
|
|
192
|
+
points?: number;
|
|
193
|
+
redeemed?: boolean;
|
|
194
|
+
referral_code?: string;
|
|
196
195
|
};
|
|
197
196
|
/** @returns {Offer} */
|
|
198
197
|
declare function Offer(): Offer;
|
|
@@ -212,20 +211,56 @@ type Offer = {
|
|
|
212
211
|
updated_by?: string;
|
|
213
212
|
url?: string;
|
|
214
213
|
};
|
|
214
|
+
/** @returns {Schedule} */
|
|
215
|
+
declare function Schedule(): Schedule;
|
|
216
|
+
type Schedule = {
|
|
217
|
+
duration?: number;
|
|
218
|
+
end?: string;
|
|
219
|
+
start?: string;
|
|
220
|
+
cron?: string;
|
|
221
|
+
};
|
|
222
|
+
/** @returns {Error} */
|
|
223
|
+
declare function Error(): Error;
|
|
224
|
+
type Error = {
|
|
225
|
+
code?: number;
|
|
226
|
+
exception?: string;
|
|
227
|
+
info?: string;
|
|
228
|
+
message?: string;
|
|
229
|
+
};
|
|
230
|
+
/** @returns {Asset} */
|
|
231
|
+
declare function Asset(): Asset;
|
|
232
|
+
type Asset = {
|
|
233
|
+
aspect_ratio?: string;
|
|
234
|
+
id?: string;
|
|
235
|
+
secure_url?: string;
|
|
236
|
+
};
|
|
237
|
+
/** @returns {ShareMessages} */
|
|
238
|
+
declare function ShareMessages(): ShareMessages;
|
|
239
|
+
type ShareMessages = {
|
|
240
|
+
email?: number;
|
|
241
|
+
facebook?: string;
|
|
242
|
+
fallback?: string;
|
|
243
|
+
message?: string;
|
|
244
|
+
messenger?: string;
|
|
245
|
+
sms?: string;
|
|
246
|
+
text?: string;
|
|
247
|
+
twitter?: string;
|
|
248
|
+
whatsapp?: string;
|
|
249
|
+
};
|
|
250
|
+
/** @returns {ReferralDetailsResponse} */
|
|
251
|
+
declare function ReferralDetailsResponse(): ReferralDetailsResponse;
|
|
252
|
+
type ReferralDetailsResponse = {
|
|
253
|
+
referral?: Offer;
|
|
254
|
+
share?: ShareMessages;
|
|
255
|
+
user?: ReferralDetailsUser;
|
|
256
|
+
referrer_info?: string;
|
|
257
|
+
terms_conditions_link?: string;
|
|
258
|
+
};
|
|
215
259
|
/** @returns {OrderDiscountRequest} */
|
|
216
260
|
declare function OrderDiscountRequest(): OrderDiscountRequest;
|
|
217
261
|
type OrderDiscountRequest = {
|
|
218
|
-
currency?: string;
|
|
219
262
|
order_amount: number;
|
|
220
|
-
|
|
221
|
-
/** @returns {OrderDiscountResponse} */
|
|
222
|
-
declare function OrderDiscountResponse(): OrderDiscountResponse;
|
|
223
|
-
type OrderDiscountResponse = {
|
|
224
|
-
applied_rule_bucket?: OrderDiscountRuleBucket;
|
|
225
|
-
base_discount?: DiscountProperties;
|
|
226
|
-
discount?: DiscountProperties;
|
|
227
|
-
order_amount?: number;
|
|
228
|
-
points?: number;
|
|
263
|
+
currency?: string;
|
|
229
264
|
};
|
|
230
265
|
/** @returns {OrderDiscountRuleBucket} */
|
|
231
266
|
declare function OrderDiscountRuleBucket(): OrderDiscountRuleBucket;
|
|
@@ -236,16 +271,47 @@ type OrderDiscountRuleBucket = {
|
|
|
236
271
|
value?: number;
|
|
237
272
|
value_type?: string;
|
|
238
273
|
};
|
|
239
|
-
/** @returns {
|
|
240
|
-
declare function
|
|
241
|
-
type
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
274
|
+
/** @returns {DiscountProperties} */
|
|
275
|
+
declare function DiscountProperties(): DiscountProperties;
|
|
276
|
+
type DiscountProperties = {
|
|
277
|
+
absolute?: number;
|
|
278
|
+
currency?: string;
|
|
279
|
+
display_absolute?: string;
|
|
280
|
+
display_percent?: string;
|
|
281
|
+
percent?: number;
|
|
282
|
+
};
|
|
283
|
+
/** @returns {OrderDiscountResponse} */
|
|
284
|
+
declare function OrderDiscountResponse(): OrderDiscountResponse;
|
|
285
|
+
type OrderDiscountResponse = {
|
|
286
|
+
order_amount?: number;
|
|
287
|
+
points?: number;
|
|
288
|
+
discount?: DiscountProperties;
|
|
289
|
+
base_discount?: DiscountProperties;
|
|
290
|
+
applied_rule_bucket?: OrderDiscountRuleBucket;
|
|
291
|
+
};
|
|
292
|
+
/** @returns {RedeemReferralCodeRequest} */
|
|
293
|
+
declare function RedeemReferralCodeRequest(): RedeemReferralCodeRequest;
|
|
294
|
+
type RedeemReferralCodeRequest = {
|
|
295
|
+
device_id?: string;
|
|
296
|
+
referral_code?: string;
|
|
297
|
+
};
|
|
298
|
+
/** @returns {RedeemReferralCodeResponse} */
|
|
299
|
+
declare function RedeemReferralCodeResponse(): RedeemReferralCodeResponse;
|
|
300
|
+
type RedeemReferralCodeResponse = {
|
|
301
|
+
redeemed?: boolean;
|
|
302
|
+
message?: string;
|
|
303
|
+
referrer_info?: string;
|
|
304
|
+
referrer_id?: string;
|
|
305
|
+
points?: number;
|
|
306
|
+
};
|
|
307
|
+
/** @returns {PointsHistoryResponse} */
|
|
308
|
+
declare function PointsHistoryResponse(): PointsHistoryResponse;
|
|
309
|
+
type PointsHistoryResponse = {
|
|
310
|
+
/**
|
|
311
|
+
* - History is the list of points transaction.
|
|
312
|
+
*/
|
|
313
|
+
items?: PointsHistory[];
|
|
314
|
+
page?: Page;
|
|
249
315
|
};
|
|
250
316
|
/** @returns {PointsHistory} */
|
|
251
317
|
declare function PointsHistory(): PointsHistory;
|
|
@@ -265,80 +331,14 @@ type PointsHistory = {
|
|
|
265
331
|
updated_at?: string;
|
|
266
332
|
user_id?: string;
|
|
267
333
|
};
|
|
268
|
-
/** @returns {
|
|
269
|
-
declare function
|
|
270
|
-
type
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
declare function PointsResponse(): PointsResponse;
|
|
279
|
-
type PointsResponse = {
|
|
280
|
-
/**
|
|
281
|
-
* - Total points available
|
|
282
|
-
*/
|
|
283
|
-
points?: number;
|
|
284
|
-
};
|
|
285
|
-
/** @returns {RedeemReferralCodeRequest} */
|
|
286
|
-
declare function RedeemReferralCodeRequest(): RedeemReferralCodeRequest;
|
|
287
|
-
type RedeemReferralCodeRequest = {
|
|
288
|
-
device_id?: string;
|
|
289
|
-
referral_code?: string;
|
|
290
|
-
};
|
|
291
|
-
/** @returns {RedeemReferralCodeResponse} */
|
|
292
|
-
declare function RedeemReferralCodeResponse(): RedeemReferralCodeResponse;
|
|
293
|
-
type RedeemReferralCodeResponse = {
|
|
294
|
-
message?: string;
|
|
295
|
-
points?: number;
|
|
296
|
-
redeemed?: boolean;
|
|
297
|
-
referrer_id?: string;
|
|
298
|
-
referrer_info?: string;
|
|
299
|
-
};
|
|
300
|
-
/** @returns {ReferralDetailsResponse} */
|
|
301
|
-
declare function ReferralDetailsResponse(): ReferralDetailsResponse;
|
|
302
|
-
type ReferralDetailsResponse = {
|
|
303
|
-
referral?: Offer;
|
|
304
|
-
referrer_info?: string;
|
|
305
|
-
share?: ShareMessages;
|
|
306
|
-
terms_conditions_link?: string;
|
|
307
|
-
user?: ReferralDetailsUser;
|
|
308
|
-
};
|
|
309
|
-
/** @returns {ReferralDetailsUser} */
|
|
310
|
-
declare function ReferralDetailsUser(): ReferralDetailsUser;
|
|
311
|
-
type ReferralDetailsUser = {
|
|
312
|
-
blocked?: boolean;
|
|
313
|
-
points?: number;
|
|
314
|
-
redeemed?: boolean;
|
|
315
|
-
referral_code?: string;
|
|
316
|
-
};
|
|
317
|
-
/** @returns {RewardsArticle} */
|
|
318
|
-
declare function RewardsArticle(): RewardsArticle;
|
|
319
|
-
type RewardsArticle = {
|
|
320
|
-
id?: string;
|
|
321
|
-
points?: number;
|
|
322
|
-
price?: number;
|
|
323
|
-
};
|
|
324
|
-
/** @returns {Schedule} */
|
|
325
|
-
declare function Schedule(): Schedule;
|
|
326
|
-
type Schedule = {
|
|
327
|
-
cron?: string;
|
|
328
|
-
duration?: number;
|
|
329
|
-
end?: string;
|
|
330
|
-
start?: string;
|
|
331
|
-
};
|
|
332
|
-
/** @returns {ShareMessages} */
|
|
333
|
-
declare function ShareMessages(): ShareMessages;
|
|
334
|
-
type ShareMessages = {
|
|
335
|
-
email?: number;
|
|
336
|
-
facebook?: string;
|
|
337
|
-
fallback?: string;
|
|
338
|
-
message?: string;
|
|
339
|
-
messenger?: string;
|
|
340
|
-
sms?: string;
|
|
341
|
-
text?: string;
|
|
342
|
-
twitter?: string;
|
|
343
|
-
whatsapp?: string;
|
|
334
|
+
/** @returns {Page} */
|
|
335
|
+
declare function Page(): Page;
|
|
336
|
+
type Page = {
|
|
337
|
+
item_total?: number;
|
|
338
|
+
next_id?: string;
|
|
339
|
+
has_previous?: boolean;
|
|
340
|
+
has_next?: boolean;
|
|
341
|
+
current?: number;
|
|
342
|
+
type: string;
|
|
343
|
+
size?: number;
|
|
344
344
|
};
|