@gofynd/fdk-client-javascript 1.0.3 → 1.0.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 (175) hide show
  1. package/README.md +31 -2
  2. package/index.d.ts +4 -4
  3. package/index.js +9 -10
  4. package/package.json +14 -14
  5. package/sdk/APIClient.d.ts +11 -0
  6. package/sdk/APIClient.js +35 -0
  7. package/sdk/Client.d.ts +6 -0
  8. package/sdk/Client.js +17 -0
  9. package/sdk/Config.d.ts +9 -0
  10. package/sdk/Config.js +17 -0
  11. package/sdk/application/Cart/CartApplicationClient.js +29 -28
  12. package/sdk/application/Cart/CartApplicationModel.js +3 -1
  13. package/sdk/application/Catalog/CatalogApplicationClient.js +43 -42
  14. package/sdk/application/Catalog/CatalogApplicationModel.js +1 -1
  15. package/sdk/application/Common/CommonApplicationClient.js +5 -4
  16. package/sdk/application/Communication/CommunicationApplicationClient.js +6 -5
  17. package/sdk/application/Configuration/ConfigurationApplicationClient.js +21 -20
  18. package/sdk/application/Content/ContentApplicationClient.js +26 -25
  19. package/sdk/application/Content/ContentApplicationModel.js +1 -0
  20. package/sdk/application/FileStorage/FileStorageApplicationClient.js +6 -5
  21. package/sdk/application/Lead/LeadApplicationClient.js +10 -9
  22. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +1 -3
  23. package/sdk/application/Logistic/LogisticApplicationClient.js +11 -12
  24. package/sdk/application/Logistic/LogisticApplicationValidator.js +0 -1
  25. package/sdk/application/Order/OrderApplicationClient.js +15 -14
  26. package/sdk/application/Order/OrderApplicationModel.js +9 -0
  27. package/sdk/application/Payment/PaymentApplicationClient.js +42 -41
  28. package/sdk/application/PosCart/PosCartApplicationClient.js +30 -29
  29. package/sdk/application/PosCart/PosCartApplicationModel.js +3 -1
  30. package/sdk/application/Rewards/RewardsApplicationClient.js +11 -10
  31. package/sdk/application/Share/ShareApplicationClient.js +10 -9
  32. package/sdk/application/Theme/ThemeApplicationClient.js +7 -6
  33. package/sdk/application/User/UserApplicationClient.js +38 -37
  34. package/sdk/common/AxiosHelper.js +17 -6
  35. package/sdk/constructUrl.d.ts +5 -0
  36. package/sdk/constructUrl.js +13 -0
  37. package/sdk/index.d.ts +3 -0
  38. package/sdk/index.js +5 -0
  39. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +3 -1
  40. package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js +1 -1
  41. package/sdk/platform/Analytics/AnalyticsPlatformClient.js +5 -4
  42. package/sdk/platform/Analytics/AnalyticsPlatformValidator.js +1 -0
  43. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +3 -2
  44. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +1 -0
  45. package/sdk/platform/Billing/BillingPlatformClient.js +3 -2
  46. package/sdk/platform/Billing/BillingPlatformValidator.js +1 -0
  47. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +27 -0
  48. package/sdk/platform/Cart/CartPlatformApplicationClient.js +177 -1
  49. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +3 -0
  50. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +17 -1
  51. package/sdk/platform/Cart/CartPlatformModel.js +7 -3
  52. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +3 -1
  53. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +1 -1
  54. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +2 -2
  55. package/sdk/platform/Catalog/CatalogPlatformClient.js +6 -9
  56. package/sdk/platform/Catalog/CatalogPlatformModel.js +7 -7
  57. package/sdk/platform/Catalog/CatalogPlatformValidator.js +2 -1
  58. package/sdk/platform/Common/CommonPlatformClient.js +7 -18
  59. package/sdk/platform/Common/CommonPlatformValidator.js +1 -0
  60. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +3 -1
  61. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +1 -1
  62. package/sdk/platform/Communication/CommunicationPlatformClient.js +4 -3
  63. package/sdk/platform/Communication/CommunicationPlatformValidator.js +1 -0
  64. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +5 -4
  65. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +1 -0
  66. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +3 -1
  67. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +1 -1
  68. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +9 -8
  69. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +1 -0
  70. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +0 -10
  71. package/sdk/platform/Content/ContentPlatformApplicationClient.js +3 -62
  72. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +0 -1
  73. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +1 -7
  74. package/sdk/platform/Content/ContentPlatformModel.js +1 -0
  75. package/sdk/platform/Discount/DiscountPlatformClient.js +3 -2
  76. package/sdk/platform/Discount/DiscountPlatformValidator.js +1 -0
  77. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +3 -3
  78. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +27 -5
  79. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +1 -1
  80. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +3 -3
  81. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +28 -6
  82. package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +1 -0
  83. package/sdk/platform/Inventory/InventoryPlatformClient.js +3 -2
  84. package/sdk/platform/Inventory/InventoryPlatformValidator.js +1 -0
  85. package/sdk/platform/Lead/LeadPlatformApplicationClient.js +3 -1
  86. package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +1 -1
  87. package/sdk/platform/Lead/LeadPlatformClient.js +4 -3
  88. package/sdk/platform/Lead/LeadPlatformValidator.js +1 -0
  89. package/sdk/platform/Order/OrderPlatformApplicationClient.js +3 -1
  90. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +1 -1
  91. package/sdk/platform/Order/OrderPlatformClient.d.ts +1 -1
  92. package/sdk/platform/Order/OrderPlatformClient.js +16 -3
  93. package/sdk/platform/Order/OrderPlatformModel.js +1 -0
  94. package/sdk/platform/Order/OrderPlatformValidator.js +1 -0
  95. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +3 -1
  96. package/sdk/platform/Partner/PartnerPlatformApplicationValidator.js +1 -1
  97. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +1 -1
  98. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +14 -14
  99. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +1 -1
  100. package/sdk/platform/Payment/PaymentPlatformClient.js +3 -2
  101. package/sdk/platform/Payment/PaymentPlatformValidator.js +1 -0
  102. package/sdk/platform/PlatformClient.d.ts +13 -9
  103. package/sdk/platform/PlatformClient.js +13 -9
  104. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +4 -4
  105. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +36 -17
  106. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +1 -1
  107. package/sdk/platform/Share/SharePlatformApplicationClient.js +3 -1
  108. package/sdk/platform/Share/SharePlatformApplicationValidator.js +1 -1
  109. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +3 -1
  110. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +1 -1
  111. package/sdk/platform/User/UserPlatformApplicationClient.js +3 -1
  112. package/sdk/platform/User/UserPlatformApplicationValidator.js +1 -1
  113. package/sdk/platform/Webhook/WebhookPlatformClient.js +3 -2
  114. package/sdk/platform/Webhook/WebhookPlatformValidator.js +1 -0
  115. package/sdk/public/Configuration/ConfigurationPublicClient.js +2 -0
  116. package/sdk/public/Inventory/InventoryPublicClient.js +2 -0
  117. package/sdk/public/Webhook/WebhookPublicClient.js +2 -0
  118. package/.github/workflows/on_create_release.yml +0 -23
  119. package/.github/workflows/on_merge_main.yml +0 -38
  120. package/.github/workflows/on_pull_request.yml +0 -35
  121. package/.prettierrc +0 -5
  122. package/documentation/application/CART.md +0 -8771
  123. package/documentation/application/CATALOG.md +0 -8690
  124. package/documentation/application/COMMON.md +0 -325
  125. package/documentation/application/COMMUNICATION.md +0 -387
  126. package/documentation/application/CONFIGURATION.md +0 -2212
  127. package/documentation/application/CONTENT.md +0 -2629
  128. package/documentation/application/FILESTORAGE.md +0 -442
  129. package/documentation/application/LEAD.md +0 -1549
  130. package/documentation/application/LOGISTIC.md +0 -689
  131. package/documentation/application/ORDER.md +0 -2937
  132. package/documentation/application/PAYMENT.md +0 -4475
  133. package/documentation/application/POSCART.md +0 -9375
  134. package/documentation/application/README.md +0 -21
  135. package/documentation/application/REWARDS.md +0 -554
  136. package/documentation/application/SHARE.md +0 -635
  137. package/documentation/application/THEME.md +0 -5517
  138. package/documentation/application/USER.md +0 -3798
  139. package/documentation/platform/ANALYTICS.md +0 -1012
  140. package/documentation/platform/AUDITTRAIL.md +0 -493
  141. package/documentation/platform/BILLING.md +0 -1889
  142. package/documentation/platform/CART.md +0 -4711
  143. package/documentation/platform/CATALOG.md +0 -20522
  144. package/documentation/platform/COMMON.md +0 -325
  145. package/documentation/platform/COMMUNICATION.md +0 -4970
  146. package/documentation/platform/COMPANYPROFILE.md +0 -1646
  147. package/documentation/platform/CONFIGURATION.md +0 -6316
  148. package/documentation/platform/CONTENT.md +0 -8364
  149. package/documentation/platform/DISCOUNT.md +0 -767
  150. package/documentation/platform/FILESTORAGE.md +0 -945
  151. package/documentation/platform/INVENTORY.md +0 -1136
  152. package/documentation/platform/LEAD.md +0 -4394
  153. package/documentation/platform/ORDER.md +0 -6525
  154. package/documentation/platform/PARTNER.md +0 -193
  155. package/documentation/platform/PAYMENT.md +0 -3138
  156. package/documentation/platform/README.md +0 -27
  157. package/documentation/platform/REWARDS.md +0 -919
  158. package/documentation/platform/SHARE.md +0 -513
  159. package/documentation/platform/THEME.md +0 -35446
  160. package/documentation/platform/USER.md +0 -2174
  161. package/documentation/platform/WEBHOOK.md +0 -485
  162. package/documentation/public/CONFIGURATION.md +0 -325
  163. package/documentation/public/INVENTORY.md +0 -508
  164. package/documentation/public/WEBHOOK.md +0 -246
  165. package/jest.config.d.ts +0 -4
  166. package/jest.config.js +0 -6
  167. package/tests/application/catalog.spec.js +0 -54
  168. package/tests/common/action-url.spec.js +0 -35
  169. package/tests/common/schema/action-url.json +0 -178
  170. package/tests/common/schema/url-action.json +0 -683
  171. package/tests/common/url-action.spec.js +0 -48
  172. package/tests/helpers/cookie.helper.js +0 -31
  173. package/tests/helpers/oauth.helper.js +0 -43
  174. package/tests/platform/catalog.spec.js +0 -49
  175. package/tests/public/location.spec.js +0 -39
@@ -1,21 +0,0 @@
1
- ##### [Back to home](../../README.md)
2
-
3
- # FDK Application Front API Documentaion
4
-
5
-
6
- * [Catalog](CATALOG.md) - Catalog API's allows you to access list of products, prices, seller details, similar features, variants and many more useful features.
7
- * [Cart](CART.md) - Cart APIs
8
- * [Common](COMMON.md) - Application configuration apis
9
- * [Lead](LEAD.md) - Handles communication between Staff and Users
10
- * [Theme](THEME.md) - Responsible for themes
11
- * [User](USER.md) - Authentication Service
12
- * [Content](CONTENT.md) - Content System
13
- * [Communication](COMMUNICATION.md) - Manages email, sms, push notifications sent to users
14
- * [Share](SHARE.md) - Short link and QR Code
15
- * [FileStorage](FILESTORAGE.md) - File Storage
16
- * [Configuration](CONFIGURATION.md) - Application configuration apis
17
- * [Payment](PAYMENT.md) - Collect payment through many payment gateway i.e Stripe, Razorpay, Juspay etc.into Fynd or Self account
18
- * [Order](ORDER.md) - Handles all Application order and shipment api(s)
19
- * [Rewards](REWARDS.md) - Earn and redeem reward points
20
- * [PosCart](POSCART.md) - Cart APIs
21
- * [Logistic](LOGISTIC.md) - Logistics Promise Engine APIs allows you to configure zone, pincode, TAT, logistics and many more useful features.
@@ -1,554 +0,0 @@
1
-
2
-
3
-
4
-
5
-
6
- ##### [Back to Application docs](./README.md)
7
-
8
- ## Rewards Methods
9
- Earn and redeem reward points
10
-
11
- * [catalogueOrder](#catalogueorder)
12
- * [getOfferByName](#getofferbyname)
13
- * [getOrderDiscount](#getorderdiscount)
14
- * [getUserPoints](#getuserpoints)
15
- * [getUserPointsHistory](#getuserpointshistory)
16
- * [getUserReferralDetails](#getuserreferraldetails)
17
- * [redeemReferralCode](#redeemreferralcode)
18
-
19
-
20
-
21
- ## Methods with example and description
22
-
23
-
24
-
25
-
26
- ### catalogueOrder
27
- Get all transactions of reward points
28
-
29
-
30
-
31
- ```javascript
32
- // Promise
33
- const promise = rewards.catalogueOrder({ body : value });
34
-
35
- // Async/Await
36
- const data = await rewards.catalogueOrder({ body : value });
37
- ```
38
-
39
-
40
-
41
-
42
-
43
- | Argument | Type | Required | Description |
44
- | --------- | ----- | -------- | ----------- |
45
- | body | [CatalogueOrderRequest](#CatalogueOrderRequest) | yes | Request body |
46
-
47
-
48
- Use this API to evaluate the amount of reward points that could be earned on any catalogue product.
49
-
50
- *Returned Response:*
51
-
52
-
53
-
54
-
55
- [CatalogueOrderResponse](#CatalogueOrderResponse)
56
-
57
- Success. Check example below or refer `CatalogueOrderResponse` for more details.
58
-
59
-
60
-
61
-
62
- <details>
63
- <summary><i>&nbsp; Example:</i></summary>
64
-
65
- ```json
66
-
67
- ```
68
- </details>
69
-
70
-
71
-
72
-
73
-
74
-
75
-
76
-
77
-
78
- ---
79
-
80
-
81
- ### getOfferByName
82
- Get offer by name
83
-
84
-
85
-
86
- ```javascript
87
- // Promise
88
- const promise = rewards.getOfferByName({ name : value });
89
-
90
- // Async/Await
91
- const data = await rewards.getOfferByName({ name : value });
92
- ```
93
-
94
-
95
-
96
-
97
-
98
- | Argument | Type | Required | Description |
99
- | --------- | ----- | -------- | ----------- |
100
- | name | string | yes | The name given to the offer. |
101
-
102
-
103
-
104
- Use this API to get the offer details and configuration by entering the name of the offer.
105
-
106
- *Returned Response:*
107
-
108
-
109
-
110
-
111
- [Offer](#Offer)
112
-
113
- Success. Check example below or refer `Offer` for more details.
114
-
115
-
116
-
117
-
118
- <details>
119
- <summary><i>&nbsp; Example:</i></summary>
120
-
121
- ```json
122
-
123
- ```
124
- </details>
125
-
126
-
127
-
128
-
129
-
130
-
131
-
132
-
133
-
134
- ---
135
-
136
-
137
- ### getOrderDiscount
138
- Calculates the discount on order-amount
139
-
140
-
141
-
142
- ```javascript
143
- // Promise
144
- const promise = rewards.getOrderDiscount({ body : value });
145
-
146
- // Async/Await
147
- const data = await rewards.getOrderDiscount({ body : value });
148
- ```
149
-
150
-
151
-
152
-
153
-
154
- | Argument | Type | Required | Description |
155
- | --------- | ----- | -------- | ----------- |
156
- | body | [OrderDiscountRequest](#OrderDiscountRequest) | yes | Request body |
157
-
158
-
159
- Use this API to calculate the discount on order-amount based on all the amount range configured in order_discount.
160
-
161
- *Returned Response:*
162
-
163
-
164
-
165
-
166
- [OrderDiscountResponse](#OrderDiscountResponse)
167
-
168
- Success. Check example below or refer `OrderDiscountResponse` for more details.
169
-
170
-
171
-
172
-
173
- <details>
174
- <summary><i>&nbsp; Example:</i></summary>
175
-
176
- ```json
177
-
178
- ```
179
- </details>
180
-
181
-
182
-
183
-
184
-
185
-
186
-
187
-
188
-
189
- ---
190
-
191
-
192
- ### getUserPoints
193
- Get referral details of a user
194
-
195
-
196
-
197
- ```javascript
198
- // Promise
199
- const promise = rewards.getUserPoints();
200
-
201
- // Async/Await
202
- const data = await rewards.getUserPoints();
203
- ```
204
-
205
-
206
-
207
-
208
-
209
-
210
- Use this API to retrieve total available points of a user for current application
211
-
212
- *Returned Response:*
213
-
214
-
215
-
216
-
217
- [PointsResponse](#PointsResponse)
218
-
219
- Success. Check example below or refer `PointsResponse` for more details.
220
-
221
-
222
-
223
-
224
- <details>
225
- <summary><i>&nbsp; Example:</i></summary>
226
-
227
- ```json
228
-
229
- ```
230
- </details>
231
-
232
-
233
-
234
-
235
-
236
-
237
-
238
-
239
-
240
- ---
241
-
242
-
243
- ### getUserPointsHistory
244
- Get all transactions of reward points
245
-
246
-
247
-
248
- ```javascript
249
- // Promise
250
- const promise = rewards.getUserPointsHistory({ pageId : value,
251
- pageSize : value });
252
-
253
- // Async/Await
254
- const data = await rewards.getUserPointsHistory({ pageId : value,
255
- pageSize : value });
256
- ```
257
-
258
-
259
-
260
-
261
-
262
- | Argument | Type | Required | Description |
263
- | --------- | ----- | -------- | ----------- |
264
- | pageId | string | no | PageID is the ID of the requested page. For first request it should be kept empty. |
265
- | pageSize | number | no | The number of items to retrieve in each page. |
266
-
267
-
268
-
269
- Use this API to get a list of points transactions.
270
-
271
- *Returned Response:*
272
-
273
-
274
-
275
-
276
- [PointsHistoryResponse](#PointsHistoryResponse)
277
-
278
- Success. Check example below or refer `PointsHistoryResponse` for more details.
279
-
280
-
281
-
282
-
283
- <details>
284
- <summary><i>&nbsp; Example:</i></summary>
285
-
286
- ```json
287
-
288
- ```
289
- </details>
290
-
291
-
292
-
293
-
294
-
295
-
296
-
297
-
298
-
299
- ---
300
-
301
-
302
- ### getUserReferralDetails
303
- Get referral details of a user
304
-
305
-
306
-
307
- ```javascript
308
- // Promise
309
- const promise = rewards.getUserReferralDetails();
310
-
311
- // Async/Await
312
- const data = await rewards.getUserReferralDetails();
313
- ```
314
-
315
-
316
-
317
-
318
-
319
-
320
- Use this API to retrieve the referral details a user has configured in the application.
321
-
322
- *Returned Response:*
323
-
324
-
325
-
326
-
327
- [ReferralDetailsResponse](#ReferralDetailsResponse)
328
-
329
- Success. Check example below or refer `ReferralDetailsResponse` for more details.
330
-
331
-
332
-
333
-
334
- <details>
335
- <summary><i>&nbsp; Example:</i></summary>
336
-
337
- ```json
338
-
339
- ```
340
- </details>
341
-
342
-
343
-
344
-
345
-
346
-
347
-
348
-
349
-
350
- ---
351
-
352
-
353
- ### redeemReferralCode
354
- Redeems a referral code and credits reward points to users
355
-
356
-
357
-
358
- ```javascript
359
- // Promise
360
- const promise = rewards.redeemReferralCode({ body : value });
361
-
362
- // Async/Await
363
- const data = await rewards.redeemReferralCode({ body : value });
364
- ```
365
-
366
-
367
-
368
-
369
-
370
- | Argument | Type | Required | Description |
371
- | --------- | ----- | -------- | ----------- |
372
- | body | [RedeemReferralCodeRequest](#RedeemReferralCodeRequest) | yes | Request body |
373
-
374
-
375
- Use this API to enter a referral code following which, the configured points would be credited to a user's reward points account.
376
-
377
- *Returned Response:*
378
-
379
-
380
-
381
-
382
- [RedeemReferralCodeResponse](#RedeemReferralCodeResponse)
383
-
384
- Success. Check example below or refer `RedeemReferralCodeResponse` for more details.
385
-
386
-
387
-
388
-
389
- <details>
390
- <summary><i>&nbsp; Example:</i></summary>
391
-
392
- ```json
393
-
394
- ```
395
- </details>
396
-
397
-
398
-
399
-
400
-
401
-
402
-
403
-
404
-
405
- ---
406
-
407
-
408
-
409
- ### Schemas
410
-
411
-
412
- #### [Asset](#Asset)
413
-
414
- | Properties | Type | Nullable | Description |
415
- | ---------- | ---- | -------- | ----------- || aspect_ratio | string | no | || id | string | no | || secure_url | string | no | |
416
-
417
- ---
418
-
419
- #### [CatalogueOrderRequest](#CatalogueOrderRequest)
420
-
421
- | Properties | Type | Nullable | Description |
422
- | ---------- | ---- | -------- | ----------- || articles | [[RewardsArticle](#RewardsArticle)] | no | |
423
-
424
- ---
425
-
426
- #### [CatalogueOrderResponse](#CatalogueOrderResponse)
427
-
428
- | Properties | Type | Nullable | Description |
429
- | ---------- | ---- | -------- | ----------- || articles | [[RewardsArticle](#RewardsArticle)] | no | |
430
-
431
- ---
432
-
433
- #### [DiscountProperties](#DiscountProperties)
434
-
435
- | Properties | Type | Nullable | Description |
436
- | ---------- | ---- | -------- | ----------- || absolute | number | no | || currency | string | no | || display_absolute | string | no | || display_percent | string | no | || percent | number | no | |
437
-
438
- ---
439
-
440
- #### [Error](#Error)
441
-
442
- | Properties | Type | Nullable | Description |
443
- | ---------- | ---- | -------- | ----------- || code | number | no | || exception | string | no | || info | string | no | || message | string | no | |
444
-
445
- ---
446
-
447
- #### [Offer](#Offer)
448
-
449
- | Properties | Type | Nullable | Description |
450
- | ---------- | ---- | -------- | ----------- || _schedule | [Schedule](#Schedule) | no | || active | boolean | no | || application_id | string | no | || banner_image | [Asset](#Asset) | no | || created_at | string | no | || name | string | no | || rule | string | no | || share | [ShareMessages](#ShareMessages) | no | || sub_text | string | no | || text | string | no | || type | string | no | || updated_at | string | no | || updated_by | string | no | || url | string | no | |
451
-
452
- ---
453
-
454
- #### [OrderDiscountRequest](#OrderDiscountRequest)
455
-
456
- | Properties | Type | Nullable | Description |
457
- | ---------- | ---- | -------- | ----------- || currency | string | no | || order_amount | number | yes | |
458
-
459
- ---
460
-
461
- #### [OrderDiscountResponse](#OrderDiscountResponse)
462
-
463
- | Properties | Type | Nullable | Description |
464
- | ---------- | ---- | -------- | ----------- || applied_rule_bucket | [OrderDiscountRuleBucket](#OrderDiscountRuleBucket) | no | || base_discount | [DiscountProperties](#DiscountProperties) | no | || discount | [DiscountProperties](#DiscountProperties) | no | || order_amount | number | no | || points | number | no | |
465
-
466
- ---
467
-
468
- #### [OrderDiscountRuleBucket](#OrderDiscountRuleBucket)
469
-
470
- | Properties | Type | Nullable | Description |
471
- | ---------- | ---- | -------- | ----------- || high | number | no | || low | number | no | || max | number | no | || value | number | no | || value_type | string | no | |
472
-
473
- ---
474
-
475
- #### [Page](#Page)
476
-
477
- | Properties | Type | Nullable | Description |
478
- | ---------- | ---- | -------- | ----------- || current | number | no | || has_next | boolean | no | || has_previous | boolean | no | || item_total | number | no | || next_id | string | no | || size | number | no | || type | string | no | |
479
-
480
- ---
481
-
482
- #### [PointsHistory](#PointsHistory)
483
-
484
- | Properties | Type | Nullable | Description |
485
- | ---------- | ---- | -------- | ----------- || _id | string | no | || application_id | string | no | || claimed | boolean | no | || created_at | string | no | || expires_on | string | no | || meta | string | no | || points | number | no | || remaining_points | number | no | || text_1 | string | no | || text_2 | string | no | || text_3 | string | no | || txn_name | string | no | || updated_at | string | no | || user_id | string | no | |
486
-
487
- ---
488
-
489
- #### [PointsHistoryResponse](#PointsHistoryResponse)
490
-
491
- | Properties | Type | Nullable | Description |
492
- | ---------- | ---- | -------- | ----------- || items | [[PointsHistory](#PointsHistory)] | no | || page | [Page](#Page) | no | |
493
-
494
- ---
495
-
496
- #### [PointsResponse](#PointsResponse)
497
-
498
- | Properties | Type | Nullable | Description |
499
- | ---------- | ---- | -------- | ----------- || points | number | no | |
500
-
501
- ---
502
-
503
- #### [RedeemReferralCodeRequest](#RedeemReferralCodeRequest)
504
-
505
- | Properties | Type | Nullable | Description |
506
- | ---------- | ---- | -------- | ----------- || device_id | string | no | || referral_code | string | no | |
507
-
508
- ---
509
-
510
- #### [RedeemReferralCodeResponse](#RedeemReferralCodeResponse)
511
-
512
- | Properties | Type | Nullable | Description |
513
- | ---------- | ---- | -------- | ----------- || message | string | no | || points | number | no | || redeemed | boolean | no | || referrer_id | string | no | || referrer_info | string | no | |
514
-
515
- ---
516
-
517
- #### [ReferralDetailsResponse](#ReferralDetailsResponse)
518
-
519
- | Properties | Type | Nullable | Description |
520
- | ---------- | ---- | -------- | ----------- || referral | [Offer](#Offer) | no | || referrer_info | string | no | || share | [ShareMessages](#ShareMessages) | no | || terms_conditions_link | string | no | || user | [ReferralDetailsUser](#ReferralDetailsUser) | no | |
521
-
522
- ---
523
-
524
- #### [ReferralDetailsUser](#ReferralDetailsUser)
525
-
526
- | Properties | Type | Nullable | Description |
527
- | ---------- | ---- | -------- | ----------- || blocked | boolean | no | || points | number | no | || redeemed | boolean | no | || referral_code | string | no | |
528
-
529
- ---
530
-
531
- #### [RewardsArticle](#RewardsArticle)
532
-
533
- | Properties | Type | Nullable | Description |
534
- | ---------- | ---- | -------- | ----------- || id | string | no | || points | number | no | || price | number | no | |
535
-
536
- ---
537
-
538
- #### [Schedule](#Schedule)
539
-
540
- | Properties | Type | Nullable | Description |
541
- | ---------- | ---- | -------- | ----------- || cron | string | no | || duration | number | no | || end | string | no | || start | string | no | |
542
-
543
- ---
544
-
545
- #### [ShareMessages](#ShareMessages)
546
-
547
- | Properties | Type | Nullable | Description |
548
- | ---------- | ---- | -------- | ----------- || email | number | no | || facebook | string | no | || fallback | string | no | || message | string | no | || messenger | string | no | || sms | string | no | || text | string | no | || twitter | string | no | || whatsapp | string | no | |
549
-
550
- ---
551
-
552
-
553
-
554
-