@gofynd/fdk-client-javascript 1.4.2-beta.2 → 1.4.2-beta.4

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.
Files changed (126) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/sdk/application/Cart/CartApplicationModel.d.ts +1742 -1726
  4. package/sdk/application/Cart/CartApplicationModel.js +1497 -1481
  5. package/sdk/application/Catalog/CatalogApplicationModel.d.ts +1917 -1917
  6. package/sdk/application/Catalog/CatalogApplicationModel.js +1611 -1611
  7. package/sdk/application/Common/CommonApplicationModel.d.ts +235 -235
  8. package/sdk/application/Common/CommonApplicationModel.js +172 -172
  9. package/sdk/application/Communication/CommunicationApplicationModel.d.ts +72 -72
  10. package/sdk/application/Communication/CommunicationApplicationModel.js +64 -64
  11. package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +1614 -1614
  12. package/sdk/application/Configuration/ConfigurationApplicationModel.js +1151 -1151
  13. package/sdk/application/Content/ContentApplicationModel.d.ts +797 -797
  14. package/sdk/application/Content/ContentApplicationModel.js +757 -757
  15. package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +79 -79
  16. package/sdk/application/FileStorage/FileStorageApplicationModel.js +84 -84
  17. package/sdk/application/Lead/LeadApplicationModel.d.ts +417 -417
  18. package/sdk/application/Lead/LeadApplicationModel.js +301 -301
  19. package/sdk/application/Logistic/LogisticApplicationModel.d.ts +666 -666
  20. package/sdk/application/Logistic/LogisticApplicationModel.js +601 -601
  21. package/sdk/application/Order/OrderApplicationModel.d.ts +852 -846
  22. package/sdk/application/Order/OrderApplicationModel.js +828 -822
  23. package/sdk/application/Payment/PaymentApplicationClient.d.ts +5 -5
  24. package/sdk/application/Payment/PaymentApplicationClient.js +10 -10
  25. package/sdk/application/Payment/PaymentApplicationModel.d.ts +2176 -2145
  26. package/sdk/application/Payment/PaymentApplicationModel.js +1474 -1453
  27. package/sdk/application/Payment/PaymentApplicationValidator.d.ts +5 -5
  28. package/sdk/application/Payment/PaymentApplicationValidator.js +3 -3
  29. package/sdk/application/PosCart/PosCartApplicationModel.d.ts +1462 -1462
  30. package/sdk/application/PosCart/PosCartApplicationModel.js +1260 -1260
  31. package/sdk/application/Rewards/RewardsApplicationModel.d.ts +214 -214
  32. package/sdk/application/Rewards/RewardsApplicationModel.js +211 -211
  33. package/sdk/application/Share/ShareApplicationModel.d.ts +114 -114
  34. package/sdk/application/Share/ShareApplicationModel.js +121 -121
  35. package/sdk/application/Theme/ThemeApplicationModel.d.ts +895 -895
  36. package/sdk/application/Theme/ThemeApplicationModel.js +684 -684
  37. package/sdk/application/User/UserApplicationClient.d.ts +2 -2
  38. package/sdk/application/User/UserApplicationClient.js +4 -7
  39. package/sdk/application/User/UserApplicationModel.d.ts +769 -764
  40. package/sdk/application/User/UserApplicationModel.js +731 -741
  41. package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +63 -63
  42. package/sdk/partner/FileStorage/FileStoragePartnerModel.js +65 -65
  43. package/sdk/partner/Lead/LeadPartnerModel.d.ts +661 -661
  44. package/sdk/partner/Lead/LeadPartnerModel.js +491 -491
  45. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +223 -223
  46. package/sdk/partner/Logistics/LogisticsPartnerModel.js +235 -235
  47. package/sdk/partner/Theme/ThemePartnerModel.d.ts +1087 -1087
  48. package/sdk/partner/Theme/ThemePartnerModel.js +819 -819
  49. package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +386 -386
  50. package/sdk/partner/Webhook/WebhookPartnerModel.js +342 -342
  51. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +123 -123
  52. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +109 -109
  53. package/sdk/platform/Billing/BillingPlatformModel.d.ts +801 -801
  54. package/sdk/platform/Billing/BillingPlatformModel.js +783 -783
  55. package/sdk/platform/Cart/CartPlatformModel.d.ts +3333 -3317
  56. package/sdk/platform/Cart/CartPlatformModel.js +2936 -2920
  57. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +26 -0
  58. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +182 -0
  59. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +70 -1
  60. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +44 -0
  61. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +1013 -980
  62. package/sdk/platform/Catalog/CatalogPlatformModel.js +977 -933
  63. package/sdk/platform/Common/CommonPlatformModel.d.ts +255 -255
  64. package/sdk/platform/Common/CommonPlatformModel.js +187 -187
  65. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +1238 -1238
  66. package/sdk/platform/Communication/CommunicationPlatformModel.js +1273 -1273
  67. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +661 -661
  68. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +692 -692
  69. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +3198 -3198
  70. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +2247 -2247
  71. package/sdk/platform/Content/ContentPlatformModel.d.ts +1842 -1825
  72. package/sdk/platform/Content/ContentPlatformModel.js +1868 -1848
  73. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +245 -245
  74. package/sdk/platform/Discount/DiscountPlatformModel.js +248 -248
  75. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +1 -1
  76. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +4 -1
  77. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +2 -0
  78. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +2 -0
  79. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +2 -2
  80. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +7 -4
  81. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +882 -869
  82. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +894 -878
  83. package/sdk/platform/Finance/FinancePlatformModel.d.ts +1044 -1044
  84. package/sdk/platform/Finance/FinancePlatformModel.js +974 -974
  85. package/sdk/platform/Inventory/InventoryPlatformModel.d.ts +942 -942
  86. package/sdk/platform/Inventory/InventoryPlatformModel.js +1003 -1003
  87. package/sdk/platform/Lead/LeadPlatformModel.d.ts +608 -608
  88. package/sdk/platform/Lead/LeadPlatformModel.js +465 -465
  89. package/sdk/platform/Order/OrderPlatformModel.d.ts +5192 -5176
  90. package/sdk/platform/Order/OrderPlatformModel.js +4752 -4736
  91. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +22 -22
  92. package/sdk/platform/Partner/PartnerPlatformModel.js +22 -22
  93. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +2693 -2657
  94. package/sdk/platform/Payment/PaymentPlatformModel.js +1842 -1819
  95. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +204 -204
  96. package/sdk/platform/Rewards/RewardsPlatformModel.js +199 -199
  97. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +7 -6
  98. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +11 -10
  99. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +1674 -1539
  100. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +1663 -1534
  101. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +4 -4
  102. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +4 -4
  103. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +1 -1
  104. package/sdk/platform/Share/SharePlatformApplicationClient.js +19 -6
  105. package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +13 -3
  106. package/sdk/platform/Share/SharePlatformApplicationValidator.js +6 -2
  107. package/sdk/platform/Share/SharePlatformModel.d.ts +147 -147
  108. package/sdk/platform/Share/SharePlatformModel.js +139 -139
  109. package/sdk/platform/Theme/ThemePlatformModel.d.ts +1046 -1046
  110. package/sdk/platform/Theme/ThemePlatformModel.js +789 -789
  111. package/sdk/platform/User/UserPlatformModel.d.ts +823 -753
  112. package/sdk/platform/User/UserPlatformModel.js +731 -661
  113. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +439 -439
  114. package/sdk/platform/Webhook/WebhookPlatformModel.js +364 -364
  115. package/sdk/public/Billing/BillingPublicModel.d.ts +55 -55
  116. package/sdk/public/Billing/BillingPublicModel.js +51 -51
  117. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +237 -237
  118. package/sdk/public/Configuration/ConfigurationPublicModel.js +174 -174
  119. package/sdk/public/Content/ContentPublicModel.d.ts +26 -26
  120. package/sdk/public/Content/ContentPublicModel.js +28 -28
  121. package/sdk/public/Inventory/InventoryPublicModel.d.ts +237 -237
  122. package/sdk/public/Inventory/InventoryPublicModel.js +257 -257
  123. package/sdk/public/Partner/PartnerPublicModel.d.ts +104 -104
  124. package/sdk/public/Partner/PartnerPublicModel.js +113 -113
  125. package/sdk/public/Webhook/WebhookPublicModel.d.ts +87 -87
  126. package/sdk/public/Webhook/WebhookPublicModel.js +93 -93
@@ -1,32 +1,28 @@
1
1
  export = RewardsApplicationModel;
2
2
  /**
3
- * @typedef Asset
4
- * @property {string} [aspect_ratio]
3
+ * @typedef RewardsArticle
5
4
  * @property {string} [id]
6
- * @property {string} [secure_url]
5
+ * @property {number} [points]
6
+ * @property {number} [price]
7
7
  */
8
8
  /**
9
- * @typedef CatalogueOrderRequest
9
+ * @typedef CatalogueOrderResponse
10
10
  * @property {RewardsArticle[]} [articles]
11
11
  */
12
12
  /**
13
- * @typedef CatalogueOrderResponse
13
+ * @typedef CatalogueOrderRequest
14
14
  * @property {RewardsArticle[]} [articles]
15
15
  */
16
16
  /**
17
- * @typedef DiscountProperties
18
- * @property {number} [absolute]
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 Error
26
- * @property {number} [code]
27
- * @property {string} [exception]
28
- * @property {string} [info]
29
- * @property {string} [message]
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 OrderDiscountRequest
50
- * @property {string} [currency]
51
- * @property {number} order_amount
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 OrderDiscountResponse
55
- * @property {OrderDiscountRuleBucket} [applied_rule_bucket]
56
- * @property {DiscountProperties} [base_discount]
57
- * @property {DiscountProperties} [discount]
58
- * @property {number} [order_amount]
59
- * @property {number} [points]
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 Page
71
- * @property {number} [current]
72
- * @property {boolean} [has_next]
73
- * @property {boolean} [has_previous]
74
- * @property {number} [item_total]
75
- * @property {string} [next_id]
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 PointsHistory
81
- * @property {string} [_id]
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 {number} [remaining_points]
89
- * @property {string} [text_1]
90
- * @property {string} [text_2]
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} [referrer_id]
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 {ShareMessages} [share]
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 RewardsArticle
135
- * @property {string} [id]
136
- * @property {number} [points]
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 Schedule
141
- * @property {string} [cron]
142
- * @property {number} [duration]
143
- * @property {string} [end]
144
- * @property {string} [start]
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 ShareMessages
148
- * @property {number} [email]
149
- * @property {string} [facebook]
150
- * @property {string} [fallback]
151
- * @property {string} [message]
152
- * @property {string} [messenger]
153
- * @property {string} [sms]
154
- * @property {string} [text]
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 { Asset, CatalogueOrderRequest, CatalogueOrderResponse, DiscountProperties, Error, Offer, OrderDiscountRequest, OrderDiscountResponse, OrderDiscountRuleBucket, Page, PointsHistory, PointsHistoryResponse, PointsResponse, RedeemReferralCodeRequest, RedeemReferralCodeResponse, ReferralDetailsResponse, ReferralDetailsUser, RewardsArticle, Schedule, ShareMessages };
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 {Asset} */
164
- declare function Asset(): Asset;
165
- type Asset = {
166
- aspect_ratio?: string;
163
+ /** @returns {RewardsArticle} */
164
+ declare function RewardsArticle(): RewardsArticle;
165
+ type RewardsArticle = {
167
166
  id?: string;
168
- secure_url?: string;
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 {DiscountProperties} */
181
- declare function DiscountProperties(): DiscountProperties;
182
- type DiscountProperties = {
183
- absolute?: number;
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 {Error} */
190
- declare function Error(): Error;
191
- type Error = {
192
- code?: number;
193
- exception?: string;
194
- info?: string;
195
- message?: string;
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 {Page} */
240
- declare function Page(): Page;
241
- type Page = {
242
- current?: number;
243
- has_next?: boolean;
244
- has_previous?: boolean;
245
- item_total?: number;
246
- next_id?: string;
247
- size?: number;
248
- type: string;
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 {PointsHistoryResponse} */
269
- declare function PointsHistoryResponse(): PointsHistoryResponse;
270
- type PointsHistoryResponse = {
271
- /**
272
- * - History is the list of points transaction.
273
- */
274
- items?: PointsHistory[];
275
- page?: Page;
276
- };
277
- /** @returns {PointsResponse} */
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
  };