@gofynd/fdk-client-javascript 0.1.35 → 0.1.36
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/documentation/application/CART.md +256 -239
- package/documentation/application/CATALOG.md +413 -409
- package/documentation/application/COMMON.md +4 -0
- package/documentation/application/COMMUNICATION.md +4 -0
- package/documentation/application/CONFIGURATION.md +4 -0
- package/documentation/application/CONTENT.md +7 -20
- package/documentation/application/FILESTORAGE.md +85 -0
- package/documentation/application/LEAD.md +6 -2
- package/documentation/application/LOGISTIC.md +4 -0
- package/documentation/application/ORDER.md +307 -303
- package/documentation/application/PAYMENT.md +445 -259
- package/documentation/application/POSCART.md +317 -300
- package/documentation/application/REWARDS.md +153 -160
- package/documentation/application/SHARE.md +4 -0
- package/documentation/application/THEME.md +4 -0
- package/documentation/application/USER.md +4 -0
- package/documentation/platform/ANALYTICS.md +4 -0
- package/documentation/platform/AUDITTRAIL.md +4 -0
- package/documentation/platform/BILLING.md +4 -0
- package/documentation/platform/CART.md +480 -463
- package/documentation/platform/CATALOG.md +3895 -2942
- package/documentation/platform/COMMON.md +4 -0
- package/documentation/platform/COMMUNICATION.md +4 -0
- package/documentation/platform/COMPANYPROFILE.md +224 -193
- package/documentation/platform/CONFIGURATION.md +4 -0
- package/documentation/platform/CONTENT.md +8 -21
- package/documentation/platform/DISCOUNT.md +4 -0
- package/documentation/platform/FILESTORAGE.md +85 -0
- package/documentation/platform/INVENTORY.md +4 -0
- package/documentation/platform/LEAD.md +6 -2
- package/documentation/platform/ORDER.md +6298 -1448
- package/documentation/platform/PARTNER.md +12 -8
- package/documentation/platform/PAYMENT.md +107 -103
- package/documentation/platform/README.md +2 -2
- package/documentation/platform/REWARDS.md +219 -152
- package/documentation/platform/SHARE.md +4 -0
- package/documentation/platform/THEME.md +4 -0
- package/documentation/platform/USER.md +4 -0
- package/documentation/platform/WEBHOOK.md +4 -0
- package/documentation/public/CONFIGURATION.md +4 -0
- package/documentation/public/INVENTORY.md +4 -0
- package/documentation/public/WEBHOOK.md +4 -0
- package/package.json +1 -1
- package/sdk/application/ApplicationModels.d.ts +77 -73
- package/sdk/application/ApplicationModels.js +1751 -1725
- package/sdk/application/client/CartApplicationClient.d.ts +36 -36
- package/sdk/application/client/CatalogApplicationClient.d.ts +39 -39
- package/sdk/application/client/CatalogApplicationClient.js +16 -16
- package/sdk/application/client/CommonApplicationClient.d.ts +2 -2
- package/sdk/application/client/CommunicationApplicationClient.d.ts +5 -5
- package/sdk/application/client/ConfigurationApplicationClient.d.ts +17 -17
- package/sdk/application/client/ContentApplicationClient.d.ts +19 -19
- package/sdk/application/client/FileStorageApplicationClient.d.ts +14 -6
- package/sdk/application/client/FileStorageApplicationClient.js +2 -0
- package/sdk/application/client/LeadApplicationClient.d.ts +10 -10
- package/sdk/application/client/LogisticApplicationClient.d.ts +5 -5
- package/sdk/application/client/OrderApplicationClient.d.ts +15 -15
- package/sdk/application/client/OrderApplicationClient.js +1 -1
- package/sdk/application/client/PaymentApplicationClient.d.ts +79 -57
- package/sdk/application/client/PaymentApplicationClient.js +66 -0
- package/sdk/application/client/PosCartApplicationClient.d.ts +38 -38
- package/sdk/application/client/RewardsApplicationClient.d.ts +34 -34
- package/sdk/application/client/RewardsApplicationClient.js +77 -77
- package/sdk/application/client/ShareApplicationClient.d.ts +8 -8
- package/sdk/application/client/ThemeApplicationClient.d.ts +4 -4
- package/sdk/application/client/UserApplicationClient.d.ts +63 -63
- package/sdk/application/models/CatalogValidator.d.ts +1 -1
- package/sdk/application/models/CatalogValidator.js +2 -2
- package/sdk/application/models/PaymentValidator.d.ts +2 -0
- package/sdk/application/models/PaymentValidator.js +12 -0
- package/sdk/application/models/RewardsValidator.d.ts +3 -3
- package/sdk/application/models/RewardsValidator.js +12 -12
- package/sdk/common/AxiosHelper.js +1 -1
- package/sdk/common/Constant.d.ts +9 -0
- package/sdk/common/Constant.js +11 -0
- package/sdk/platform/PlatformApplicationClient.d.ts +8600 -7286
- package/sdk/platform/PlatformApplicationClient.js +4338 -3678
- package/sdk/platform/PlatformApplicationModels.d.ts +21 -26
- package/sdk/platform/PlatformApplicationModels.js +5561 -4301
- package/sdk/platform/PlatformClient.d.ts +3448 -2801
- package/sdk/platform/PlatformClient.js +3903 -3108
- package/sdk/platform/PlatformModels.d.ts +352 -278
- package/sdk/platform/PlatformModels.js +5230 -3942
- package/sdk/platform/client/AnalyticsPlatformClient.d.ts +5 -5
- package/sdk/platform/client/AuditTrailPlatformClient.d.ts +1 -1
- package/sdk/platform/client/BillingPlatformClient.d.ts +4 -4
- package/sdk/platform/client/CatalogPlatformClient.d.ts +209 -150
- package/sdk/platform/client/CatalogPlatformClient.js +441 -294
- package/sdk/platform/client/CompanyProfilePlatformClient.d.ts +8 -8
- package/sdk/platform/client/ConfigurationPlatformClient.d.ts +9 -9
- package/sdk/platform/client/DiscountPlatformClient.d.ts +4 -4
- package/sdk/platform/client/FileStoragePlatformClient.d.ts +20 -4
- package/sdk/platform/client/FileStoragePlatformClient.js +49 -0
- package/sdk/platform/client/InventoryPlatformClient.d.ts +3 -3
- package/sdk/platform/client/LeadPlatformClient.d.ts +6 -6
- package/sdk/platform/client/OrderPlatformClient.d.ts +557 -131
- package/sdk/platform/client/OrderPlatformClient.js +1551 -247
- package/sdk/platform/client/PaymentPlatformClient.d.ts +4 -4
- package/sdk/platform/client/WebhookPlatformClient.d.ts +2 -2
- package/sdk/platform/models/CatalogValidator.d.ts +24 -21
- package/sdk/platform/models/CatalogValidator.js +103 -72
- package/sdk/platform/models/OrderValidator.d.ts +43 -11
- package/sdk/platform/models/OrderValidator.js +312 -51
- package/sdk/public/client/ConfigurationPublicClient.d.ts +2 -2
- package/sdk/public/client/InventoryPublicClient.d.ts +7 -7
- package/sdk/public/client/WebhookPublicClient.d.ts +3 -3
- package/tests/common/schema/action-url.json +15 -0
- package/tests/common/schema/url-action.json +16 -0
|
@@ -2,16 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
+
|
|
5
6
|
##### [Back to Application docs](./README.md)
|
|
6
7
|
|
|
7
8
|
## Rewards Methods
|
|
8
9
|
Earn and redeem reward points
|
|
9
|
-
|
|
10
|
+
|
|
10
11
|
* [getOfferByName](#getofferbyname)
|
|
11
|
-
* [
|
|
12
|
-
* [getUserPoints](#getuserpoints)
|
|
12
|
+
* [catalogueOrder](#catalogueorder)
|
|
13
13
|
* [getUserPointsHistory](#getuserpointshistory)
|
|
14
|
+
* [getUserPoints](#getuserpoints)
|
|
14
15
|
* [getUserReferralDetails](#getuserreferraldetails)
|
|
16
|
+
* [getOrderDiscount](#getorderdiscount)
|
|
15
17
|
* [redeemReferralCode](#redeemreferralcode)
|
|
16
18
|
|
|
17
19
|
|
|
@@ -19,17 +21,19 @@ Earn and redeem reward points
|
|
|
19
21
|
## Methods with example and description
|
|
20
22
|
|
|
21
23
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
### getOfferByName
|
|
27
|
+
Get offer by name
|
|
24
28
|
|
|
25
29
|
|
|
26
30
|
|
|
27
31
|
```javascript
|
|
28
32
|
// Promise
|
|
29
|
-
const promise = rewards.
|
|
33
|
+
const promise = rewards.getOfferByName({ name : value });
|
|
30
34
|
|
|
31
35
|
// Async/Await
|
|
32
|
-
const data = await rewards.
|
|
36
|
+
const data = await rewards.getOfferByName({ name : value });
|
|
33
37
|
```
|
|
34
38
|
|
|
35
39
|
|
|
@@ -37,20 +41,21 @@ const data = await rewards.getPointsOnProduct({ body : value });
|
|
|
37
41
|
|
|
38
42
|
|
|
39
43
|
| Argument | Type | Required | Description |
|
|
40
|
-
| --------- | ----- | -------- | ----------- |
|
|
41
|
-
|
|
|
44
|
+
| --------- | ----- | -------- | ----------- |
|
|
45
|
+
| name | string | yes | The name given to the offer. |
|
|
42
46
|
|
|
43
47
|
|
|
44
|
-
|
|
48
|
+
|
|
49
|
+
Use this API to get the offer details and configuration by entering the name of the offer.
|
|
45
50
|
|
|
46
51
|
*Returned Response:*
|
|
47
52
|
|
|
48
53
|
|
|
49
54
|
|
|
50
55
|
|
|
51
|
-
[
|
|
56
|
+
[Offer](#Offer)
|
|
52
57
|
|
|
53
|
-
Success. Check example below or refer `
|
|
58
|
+
Success. Check example below or refer `Offer` for more details.
|
|
54
59
|
|
|
55
60
|
|
|
56
61
|
|
|
@@ -74,17 +79,17 @@ Success. Check example below or refer `CatalogueOrderRequest` for more details.
|
|
|
74
79
|
---
|
|
75
80
|
|
|
76
81
|
|
|
77
|
-
###
|
|
78
|
-
Get
|
|
82
|
+
### catalogueOrder
|
|
83
|
+
Get all transactions of reward points
|
|
79
84
|
|
|
80
85
|
|
|
81
86
|
|
|
82
87
|
```javascript
|
|
83
88
|
// Promise
|
|
84
|
-
const promise = rewards.
|
|
89
|
+
const promise = rewards.catalogueOrder({ body : value });
|
|
85
90
|
|
|
86
91
|
// Async/Await
|
|
87
|
-
const data = await rewards.
|
|
92
|
+
const data = await rewards.catalogueOrder({ body : value });
|
|
88
93
|
```
|
|
89
94
|
|
|
90
95
|
|
|
@@ -92,21 +97,20 @@ const data = await rewards.getOfferByName({ name : value });
|
|
|
92
97
|
|
|
93
98
|
|
|
94
99
|
| Argument | Type | Required | Description |
|
|
95
|
-
| --------- | ----- | -------- | ----------- |
|
|
96
|
-
|
|
|
97
|
-
|
|
100
|
+
| --------- | ----- | -------- | ----------- |
|
|
101
|
+
| body | [CatalogueOrderRequest](#CatalogueOrderRequest) | yes | Request body |
|
|
98
102
|
|
|
99
103
|
|
|
100
|
-
Use this API to
|
|
104
|
+
Use this API to evaluate the amount of reward points that could be earned on any catalogue product.
|
|
101
105
|
|
|
102
106
|
*Returned Response:*
|
|
103
107
|
|
|
104
108
|
|
|
105
109
|
|
|
106
110
|
|
|
107
|
-
[
|
|
111
|
+
[CatalogueOrderResponse](#CatalogueOrderResponse)
|
|
108
112
|
|
|
109
|
-
Success. Check example below or refer `
|
|
113
|
+
Success. Check example below or refer `CatalogueOrderResponse` for more details.
|
|
110
114
|
|
|
111
115
|
|
|
112
116
|
|
|
@@ -130,17 +134,19 @@ Success. Check example below or refer `Offer` for more details.
|
|
|
130
134
|
---
|
|
131
135
|
|
|
132
136
|
|
|
133
|
-
###
|
|
134
|
-
|
|
137
|
+
### getUserPointsHistory
|
|
138
|
+
Get all transactions of reward points
|
|
135
139
|
|
|
136
140
|
|
|
137
141
|
|
|
138
142
|
```javascript
|
|
139
143
|
// Promise
|
|
140
|
-
const promise = rewards.
|
|
144
|
+
const promise = rewards.getUserPointsHistory({ pageId : value,
|
|
145
|
+
pageSize : value });
|
|
141
146
|
|
|
142
147
|
// Async/Await
|
|
143
|
-
const data = await rewards.
|
|
148
|
+
const data = await rewards.getUserPointsHistory({ pageId : value,
|
|
149
|
+
pageSize : value });
|
|
144
150
|
```
|
|
145
151
|
|
|
146
152
|
|
|
@@ -148,20 +154,22 @@ const data = await rewards.getOrderDiscount({ body : value });
|
|
|
148
154
|
|
|
149
155
|
|
|
150
156
|
| Argument | Type | Required | Description |
|
|
151
|
-
| --------- | ----- | -------- | ----------- |
|
|
152
|
-
|
|
|
157
|
+
| --------- | ----- | -------- | ----------- |
|
|
158
|
+
| pageId | string | no | PageID is the ID of the requested page. For first request it should be kept empty. |
|
|
159
|
+
| pageSize | number | no | The number of items to retrieve in each page. |
|
|
153
160
|
|
|
154
161
|
|
|
155
|
-
|
|
162
|
+
|
|
163
|
+
Use this API to get a list of points transactions.
|
|
156
164
|
|
|
157
165
|
*Returned Response:*
|
|
158
166
|
|
|
159
167
|
|
|
160
168
|
|
|
161
169
|
|
|
162
|
-
[
|
|
170
|
+
[PointsHistoryResponse](#PointsHistoryResponse)
|
|
163
171
|
|
|
164
|
-
Success. Check example below or refer `
|
|
172
|
+
Success. Check example below or refer `PointsHistoryResponse` for more details.
|
|
165
173
|
|
|
166
174
|
|
|
167
175
|
|
|
@@ -186,7 +194,7 @@ Success. Check example below or refer `OrderDiscountResponse` for more details.
|
|
|
186
194
|
|
|
187
195
|
|
|
188
196
|
### getUserPoints
|
|
189
|
-
Get
|
|
197
|
+
Get referral details of a user
|
|
190
198
|
|
|
191
199
|
|
|
192
200
|
|
|
@@ -236,42 +244,34 @@ Success. Check example below or refer `PointsResponse` for more details.
|
|
|
236
244
|
---
|
|
237
245
|
|
|
238
246
|
|
|
239
|
-
###
|
|
240
|
-
Get
|
|
247
|
+
### getUserReferralDetails
|
|
248
|
+
Get referral details of a user
|
|
241
249
|
|
|
242
250
|
|
|
243
251
|
|
|
244
252
|
```javascript
|
|
245
253
|
// Promise
|
|
246
|
-
const promise = rewards.
|
|
247
|
-
pageSize : value });
|
|
254
|
+
const promise = rewards.getUserReferralDetails();
|
|
248
255
|
|
|
249
256
|
// Async/Await
|
|
250
|
-
const data = await rewards.
|
|
251
|
-
pageSize : value });
|
|
257
|
+
const data = await rewards.getUserReferralDetails();
|
|
252
258
|
```
|
|
253
259
|
|
|
254
260
|
|
|
255
261
|
|
|
256
262
|
|
|
257
263
|
|
|
258
|
-
| Argument | Type | Required | Description |
|
|
259
|
-
| --------- | ----- | -------- | ----------- |
|
|
260
|
-
| pageId | string | no | PageID is the ID of the requested page. For first request it should be kept empty. |
|
|
261
|
-
| pageSize | number | no | The number of items to retrieve in each page. |
|
|
262
264
|
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
Use this API to get a list of points transactions. The list of points history is paginated.
|
|
265
|
+
Use this API to retrieve the referral details a user has configured in the application.
|
|
266
266
|
|
|
267
267
|
*Returned Response:*
|
|
268
268
|
|
|
269
269
|
|
|
270
270
|
|
|
271
271
|
|
|
272
|
-
[
|
|
272
|
+
[ReferralDetailsResponse](#ReferralDetailsResponse)
|
|
273
273
|
|
|
274
|
-
Success. Check example below or refer `
|
|
274
|
+
Success. Check example below or refer `ReferralDetailsResponse` for more details.
|
|
275
275
|
|
|
276
276
|
|
|
277
277
|
|
|
@@ -295,34 +295,38 @@ Success. Check example below or refer `PointsHistoryResponse` for more details.
|
|
|
295
295
|
---
|
|
296
296
|
|
|
297
297
|
|
|
298
|
-
###
|
|
299
|
-
|
|
298
|
+
### getOrderDiscount
|
|
299
|
+
Calculates the discount on order-amount
|
|
300
300
|
|
|
301
301
|
|
|
302
302
|
|
|
303
303
|
```javascript
|
|
304
304
|
// Promise
|
|
305
|
-
const promise = rewards.
|
|
305
|
+
const promise = rewards.getOrderDiscount({ body : value });
|
|
306
306
|
|
|
307
307
|
// Async/Await
|
|
308
|
-
const data = await rewards.
|
|
308
|
+
const data = await rewards.getOrderDiscount({ body : value });
|
|
309
309
|
```
|
|
310
310
|
|
|
311
311
|
|
|
312
312
|
|
|
313
313
|
|
|
314
314
|
|
|
315
|
+
| Argument | Type | Required | Description |
|
|
316
|
+
| --------- | ----- | -------- | ----------- |
|
|
317
|
+
| body | [OrderDiscountRequest](#OrderDiscountRequest) | yes | Request body |
|
|
318
|
+
|
|
315
319
|
|
|
316
|
-
Use this API to
|
|
320
|
+
Use this API to calculate the discount on order-amount based on all the amount range configured in order_discount.
|
|
317
321
|
|
|
318
322
|
*Returned Response:*
|
|
319
323
|
|
|
320
324
|
|
|
321
325
|
|
|
322
326
|
|
|
323
|
-
[
|
|
327
|
+
[OrderDiscountResponse](#OrderDiscountResponse)
|
|
324
328
|
|
|
325
|
-
Success. Check example below or refer `
|
|
329
|
+
Success. Check example below or refer `OrderDiscountResponse` for more details.
|
|
326
330
|
|
|
327
331
|
|
|
328
332
|
|
|
@@ -406,31 +410,20 @@ Success. Check example below or refer `RedeemReferralCodeResponse` for more deta
|
|
|
406
410
|
|
|
407
411
|
|
|
408
412
|
|
|
409
|
-
#### [
|
|
410
|
-
|
|
411
|
-
| Properties | Type | Nullable | Description |
|
|
412
|
-
| ---------- | ---- | -------- | ----------- |
|
|
413
|
-
| slug | [string] | no | |
|
|
414
|
-
|
|
415
|
-
---
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
#### [Asset](#Asset)
|
|
413
|
+
#### [RewardsArticle](#RewardsArticle)
|
|
421
414
|
|
|
422
415
|
| Properties | Type | Nullable | Description |
|
|
423
416
|
| ---------- | ---- | -------- | ----------- |
|
|
424
|
-
| aspect_ratio | string | no | |
|
|
425
417
|
| id | string | no | |
|
|
426
|
-
|
|
|
418
|
+
| points | number | no | |
|
|
419
|
+
| price | number | no | |
|
|
427
420
|
|
|
428
421
|
---
|
|
429
422
|
|
|
430
423
|
|
|
431
424
|
|
|
432
425
|
|
|
433
|
-
#### [
|
|
426
|
+
#### [CatalogueOrderResponse](#CatalogueOrderResponse)
|
|
434
427
|
|
|
435
428
|
| Properties | Type | Nullable | Description |
|
|
436
429
|
| ---------- | ---- | -------- | ----------- |
|
|
@@ -441,7 +434,7 @@ Success. Check example below or refer `RedeemReferralCodeResponse` for more deta
|
|
|
441
434
|
|
|
442
435
|
|
|
443
436
|
|
|
444
|
-
#### [
|
|
437
|
+
#### [CatalogueOrderRequest](#CatalogueOrderRequest)
|
|
445
438
|
|
|
446
439
|
| Properties | Type | Nullable | Description |
|
|
447
440
|
| ---------- | ---- | -------- | ----------- |
|
|
@@ -452,29 +445,25 @@ Success. Check example below or refer `RedeemReferralCodeResponse` for more deta
|
|
|
452
445
|
|
|
453
446
|
|
|
454
447
|
|
|
455
|
-
#### [
|
|
448
|
+
#### [PointsResponse](#PointsResponse)
|
|
456
449
|
|
|
457
450
|
| Properties | Type | Nullable | Description |
|
|
458
451
|
| ---------- | ---- | -------- | ----------- |
|
|
459
|
-
|
|
|
460
|
-
| currency | string | no | |
|
|
461
|
-
| display_absolute | string | no | |
|
|
462
|
-
| display_percent | string | no | |
|
|
463
|
-
| percent | number | no | |
|
|
452
|
+
| points | number | no | Total points available |
|
|
464
453
|
|
|
465
454
|
---
|
|
466
455
|
|
|
467
456
|
|
|
468
457
|
|
|
469
458
|
|
|
470
|
-
#### [
|
|
459
|
+
#### [ReferralDetailsUser](#ReferralDetailsUser)
|
|
471
460
|
|
|
472
461
|
| Properties | Type | Nullable | Description |
|
|
473
462
|
| ---------- | ---- | -------- | ----------- |
|
|
474
|
-
|
|
|
475
|
-
|
|
|
476
|
-
|
|
|
477
|
-
|
|
|
463
|
+
| blocked | boolean | no | |
|
|
464
|
+
| points | number | no | |
|
|
465
|
+
| redeemed | boolean | no | |
|
|
466
|
+
| referral_code | string | no | |
|
|
478
467
|
|
|
479
468
|
---
|
|
480
469
|
|
|
@@ -505,207 +494,211 @@ Success. Check example below or refer `RedeemReferralCodeResponse` for more deta
|
|
|
505
494
|
|
|
506
495
|
|
|
507
496
|
|
|
508
|
-
#### [
|
|
497
|
+
#### [Schedule](#Schedule)
|
|
509
498
|
|
|
510
499
|
| Properties | Type | Nullable | Description |
|
|
511
500
|
| ---------- | ---- | -------- | ----------- |
|
|
512
|
-
|
|
|
513
|
-
|
|
|
501
|
+
| duration | number | no | |
|
|
502
|
+
| end | string | no | |
|
|
503
|
+
| start | string | no | |
|
|
504
|
+
| cron | string | no | |
|
|
514
505
|
|
|
515
506
|
---
|
|
516
507
|
|
|
517
508
|
|
|
518
509
|
|
|
519
510
|
|
|
520
|
-
#### [
|
|
511
|
+
#### [Error](#Error)
|
|
521
512
|
|
|
522
513
|
| Properties | Type | Nullable | Description |
|
|
523
514
|
| ---------- | ---- | -------- | ----------- |
|
|
524
|
-
|
|
|
525
|
-
|
|
|
526
|
-
|
|
|
527
|
-
|
|
|
528
|
-
| points | number | no | |
|
|
515
|
+
| code | number | no | |
|
|
516
|
+
| exception | string | no | |
|
|
517
|
+
| info | string | no | |
|
|
518
|
+
| message | string | no | |
|
|
529
519
|
|
|
530
520
|
---
|
|
531
521
|
|
|
532
522
|
|
|
533
523
|
|
|
534
524
|
|
|
535
|
-
#### [
|
|
525
|
+
#### [Asset](#Asset)
|
|
536
526
|
|
|
537
527
|
| Properties | Type | Nullable | Description |
|
|
538
528
|
| ---------- | ---- | -------- | ----------- |
|
|
539
|
-
|
|
|
540
|
-
|
|
|
541
|
-
|
|
|
542
|
-
| value | number | no | |
|
|
543
|
-
| value_type | string | no | |
|
|
529
|
+
| aspect_ratio | string | no | |
|
|
530
|
+
| id | string | no | |
|
|
531
|
+
| secure_url | string | no | |
|
|
544
532
|
|
|
545
533
|
---
|
|
546
534
|
|
|
547
535
|
|
|
548
536
|
|
|
549
537
|
|
|
550
|
-
#### [
|
|
538
|
+
#### [ShareMessages](#ShareMessages)
|
|
551
539
|
|
|
552
540
|
| Properties | Type | Nullable | Description |
|
|
553
541
|
| ---------- | ---- | -------- | ----------- |
|
|
554
|
-
|
|
|
555
|
-
|
|
|
556
|
-
|
|
|
557
|
-
|
|
|
558
|
-
|
|
|
559
|
-
|
|
|
560
|
-
|
|
|
542
|
+
| email | number | no | |
|
|
543
|
+
| facebook | string | no | |
|
|
544
|
+
| fallback | string | no | |
|
|
545
|
+
| message | string | no | |
|
|
546
|
+
| messenger | string | no | |
|
|
547
|
+
| sms | string | no | |
|
|
548
|
+
| text | string | no | |
|
|
549
|
+
| twitter | string | no | |
|
|
550
|
+
| whatsapp | string | no | |
|
|
561
551
|
|
|
562
552
|
---
|
|
563
553
|
|
|
564
554
|
|
|
565
555
|
|
|
566
556
|
|
|
567
|
-
#### [
|
|
557
|
+
#### [ReferralDetailsResponse](#ReferralDetailsResponse)
|
|
568
558
|
|
|
569
559
|
| Properties | Type | Nullable | Description |
|
|
570
560
|
| ---------- | ---- | -------- | ----------- |
|
|
571
|
-
|
|
|
572
|
-
|
|
|
573
|
-
|
|
|
574
|
-
|
|
|
575
|
-
| expires_on | string | no | |
|
|
576
|
-
| meta | string | no | |
|
|
577
|
-
| points | number | no | |
|
|
578
|
-
| remaining_points | number | no | |
|
|
579
|
-
| text_1 | string | no | |
|
|
580
|
-
| text_2 | string | no | |
|
|
581
|
-
| text_3 | string | no | |
|
|
582
|
-
| txn_name | string | no | |
|
|
583
|
-
| updated_at | string | no | |
|
|
584
|
-
| user_id | string | no | |
|
|
561
|
+
| referral | [Offer](#Offer) | no | |
|
|
562
|
+
| share | [ShareMessages](#ShareMessages) | no | |
|
|
563
|
+
| user | [ReferralDetailsUser](#ReferralDetailsUser) | no | |
|
|
564
|
+
| referrer_info | string | no | |
|
|
585
565
|
|
|
586
566
|
---
|
|
587
567
|
|
|
588
568
|
|
|
589
569
|
|
|
590
570
|
|
|
591
|
-
#### [
|
|
571
|
+
#### [OrderDiscountRequest](#OrderDiscountRequest)
|
|
592
572
|
|
|
593
573
|
| Properties | Type | Nullable | Description |
|
|
594
574
|
| ---------- | ---- | -------- | ----------- |
|
|
595
|
-
|
|
|
596
|
-
|
|
|
575
|
+
| order_amount | number | yes | |
|
|
576
|
+
| currency | string | no | |
|
|
597
577
|
|
|
598
578
|
---
|
|
599
579
|
|
|
600
580
|
|
|
601
581
|
|
|
602
582
|
|
|
603
|
-
#### [
|
|
583
|
+
#### [OrderDiscountRuleBucket](#OrderDiscountRuleBucket)
|
|
604
584
|
|
|
605
585
|
| Properties | Type | Nullable | Description |
|
|
606
586
|
| ---------- | ---- | -------- | ----------- |
|
|
607
|
-
|
|
|
587
|
+
| high | number | no | |
|
|
588
|
+
| low | number | no | |
|
|
589
|
+
| max | number | no | |
|
|
590
|
+
| value | number | no | |
|
|
591
|
+
| value_type | string | no | |
|
|
608
592
|
|
|
609
593
|
---
|
|
610
594
|
|
|
611
595
|
|
|
612
596
|
|
|
613
597
|
|
|
614
|
-
#### [
|
|
598
|
+
#### [DiscountProperties](#DiscountProperties)
|
|
615
599
|
|
|
616
600
|
| Properties | Type | Nullable | Description |
|
|
617
601
|
| ---------- | ---- | -------- | ----------- |
|
|
618
|
-
|
|
|
619
|
-
|
|
|
602
|
+
| absolute | number | no | |
|
|
603
|
+
| currency | string | no | |
|
|
604
|
+
| display_absolute | string | no | |
|
|
605
|
+
| display_percent | string | no | |
|
|
606
|
+
| percent | number | no | |
|
|
620
607
|
|
|
621
608
|
---
|
|
622
609
|
|
|
623
610
|
|
|
624
611
|
|
|
625
612
|
|
|
626
|
-
#### [
|
|
613
|
+
#### [OrderDiscountResponse](#OrderDiscountResponse)
|
|
627
614
|
|
|
628
615
|
| Properties | Type | Nullable | Description |
|
|
629
616
|
| ---------- | ---- | -------- | ----------- |
|
|
630
|
-
|
|
|
617
|
+
| order_amount | number | no | |
|
|
631
618
|
| points | number | no | |
|
|
632
|
-
|
|
|
633
|
-
|
|
|
634
|
-
|
|
|
619
|
+
| discount | [DiscountProperties](#DiscountProperties) | no | |
|
|
620
|
+
| base_discount | [DiscountProperties](#DiscountProperties) | no | |
|
|
621
|
+
| applied_rule_bucket | [OrderDiscountRuleBucket](#OrderDiscountRuleBucket) | no | |
|
|
635
622
|
|
|
636
623
|
---
|
|
637
624
|
|
|
638
625
|
|
|
639
626
|
|
|
640
627
|
|
|
641
|
-
#### [
|
|
628
|
+
#### [RedeemReferralCodeRequest](#RedeemReferralCodeRequest)
|
|
642
629
|
|
|
643
630
|
| Properties | Type | Nullable | Description |
|
|
644
631
|
| ---------- | ---- | -------- | ----------- |
|
|
645
|
-
|
|
|
646
|
-
|
|
|
647
|
-
| share | [ShareMessages](#ShareMessages) | no | |
|
|
648
|
-
| user | [ReferralDetailsUser](#ReferralDetailsUser) | no | |
|
|
632
|
+
| device_id | string | no | |
|
|
633
|
+
| referral_code | string | no | |
|
|
649
634
|
|
|
650
635
|
---
|
|
651
636
|
|
|
652
637
|
|
|
653
638
|
|
|
654
639
|
|
|
655
|
-
#### [
|
|
640
|
+
#### [RedeemReferralCodeResponse](#RedeemReferralCodeResponse)
|
|
656
641
|
|
|
657
642
|
| Properties | Type | Nullable | Description |
|
|
658
643
|
| ---------- | ---- | -------- | ----------- |
|
|
659
|
-
| blocked | boolean | no | |
|
|
660
|
-
| points | number | no | |
|
|
661
644
|
| redeemed | boolean | no | |
|
|
662
|
-
|
|
|
645
|
+
| message | string | no | |
|
|
646
|
+
| referrer_info | string | no | |
|
|
647
|
+
| referrer_id | string | no | |
|
|
648
|
+
| points | number | no | |
|
|
663
649
|
|
|
664
650
|
---
|
|
665
651
|
|
|
666
652
|
|
|
667
653
|
|
|
668
654
|
|
|
669
|
-
#### [
|
|
655
|
+
#### [PointsHistoryResponse](#PointsHistoryResponse)
|
|
670
656
|
|
|
671
657
|
| Properties | Type | Nullable | Description |
|
|
672
658
|
| ---------- | ---- | -------- | ----------- |
|
|
673
|
-
|
|
|
674
|
-
|
|
|
675
|
-
| price | number | no | |
|
|
659
|
+
| items | [[PointsHistory](#PointsHistory)] | no | History is the list of points transaction. |
|
|
660
|
+
| page | [Page](#Page) | no | |
|
|
676
661
|
|
|
677
662
|
---
|
|
678
663
|
|
|
679
664
|
|
|
680
665
|
|
|
681
666
|
|
|
682
|
-
#### [
|
|
667
|
+
#### [PointsHistory](#PointsHistory)
|
|
683
668
|
|
|
684
669
|
| Properties | Type | Nullable | Description |
|
|
685
670
|
| ---------- | ---- | -------- | ----------- |
|
|
686
|
-
|
|
|
687
|
-
|
|
|
688
|
-
|
|
|
689
|
-
|
|
|
671
|
+
| _id | string | no | |
|
|
672
|
+
| application_id | string | no | |
|
|
673
|
+
| claimed | boolean | no | |
|
|
674
|
+
| created_at | string | no | |
|
|
675
|
+
| expires_on | string | no | |
|
|
676
|
+
| meta | string | no | |
|
|
677
|
+
| points | number | no | |
|
|
678
|
+
| remaining_points | number | no | |
|
|
679
|
+
| text_1 | string | no | |
|
|
680
|
+
| text_2 | string | no | |
|
|
681
|
+
| text_3 | string | no | |
|
|
682
|
+
| txn_name | string | no | |
|
|
683
|
+
| updated_at | string | no | |
|
|
684
|
+
| user_id | string | no | |
|
|
690
685
|
|
|
691
686
|
---
|
|
692
687
|
|
|
693
688
|
|
|
694
689
|
|
|
695
690
|
|
|
696
|
-
#### [
|
|
691
|
+
#### [Page](#Page)
|
|
697
692
|
|
|
698
693
|
| Properties | Type | Nullable | Description |
|
|
699
694
|
| ---------- | ---- | -------- | ----------- |
|
|
700
|
-
|
|
|
701
|
-
|
|
|
702
|
-
|
|
|
703
|
-
|
|
|
704
|
-
|
|
|
705
|
-
|
|
|
706
|
-
|
|
|
707
|
-
| twitter | string | no | |
|
|
708
|
-
| whatsapp | string | no | |
|
|
695
|
+
| current | number | no | |
|
|
696
|
+
| has_next | boolean | no | |
|
|
697
|
+
| has_previous | boolean | no | |
|
|
698
|
+
| item_total | number | no | |
|
|
699
|
+
| next_id | string | no | |
|
|
700
|
+
| size | number | no | |
|
|
701
|
+
| type | string | no | |
|
|
709
702
|
|
|
710
703
|
---
|
|
711
704
|
|
|
@@ -2,10 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
+
|
|
5
6
|
##### [Back to Application docs](./README.md)
|
|
6
7
|
|
|
7
8
|
## Share Methods
|
|
8
9
|
Short link and QR Code
|
|
10
|
+
|
|
9
11
|
* [getApplicationQRCode](#getapplicationqrcode)
|
|
10
12
|
* [getProductQRCodeBySlug](#getproductqrcodebyslug)
|
|
11
13
|
* [getCollectionQRCodeBySlug](#getcollectionqrcodebyslug)
|
|
@@ -19,6 +21,8 @@ Short link and QR Code
|
|
|
19
21
|
## Methods with example and description
|
|
20
22
|
|
|
21
23
|
|
|
24
|
+
|
|
25
|
+
|
|
22
26
|
### getApplicationQRCode
|
|
23
27
|
Create QR Code of an app
|
|
24
28
|
|
|
@@ -2,10 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
+
|
|
5
6
|
##### [Back to Application docs](./README.md)
|
|
6
7
|
|
|
7
8
|
## Theme Methods
|
|
8
9
|
Responsible for themes
|
|
10
|
+
|
|
9
11
|
* [getAllPages](#getallpages)
|
|
10
12
|
* [getPage](#getpage)
|
|
11
13
|
* [getAppliedTheme](#getappliedtheme)
|
|
@@ -16,6 +18,8 @@ Responsible for themes
|
|
|
16
18
|
## Methods with example and description
|
|
17
19
|
|
|
18
20
|
|
|
21
|
+
|
|
22
|
+
|
|
19
23
|
### getAllPages
|
|
20
24
|
Get all pages of a theme
|
|
21
25
|
|