@gofynd/fdk-client-javascript 0.1.35
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/.github/workflows/on_create_release.yml +23 -0
- package/.github/workflows/on_merge_main.yml +38 -0
- package/.github/workflows/on_pull_request.yml +35 -0
- package/.prettierrc +5 -0
- package/LICENSE +21 -0
- package/README.md +118 -0
- package/application.d.ts +3 -0
- package/application.js +6 -0
- package/common.d.ts +4 -0
- package/common.js +9 -0
- package/documentation/application/CART.md +7290 -0
- package/documentation/application/CATALOG.md +9570 -0
- package/documentation/application/COMMON.md +448 -0
- package/documentation/application/COMMUNICATION.md +463 -0
- package/documentation/application/CONFIGURATION.md +2902 -0
- package/documentation/application/CONTENT.md +3350 -0
- package/documentation/application/FILESTORAGE.md +491 -0
- package/documentation/application/LEAD.md +1891 -0
- package/documentation/application/LOGISTIC.md +439 -0
- package/documentation/application/ORDER.md +3428 -0
- package/documentation/application/PAYMENT.md +5035 -0
- package/documentation/application/POSCART.md +7889 -0
- package/documentation/application/README.md +21 -0
- package/documentation/application/REWARDS.md +714 -0
- package/documentation/application/SHARE.md +729 -0
- package/documentation/application/THEME.md +5796 -0
- package/documentation/application/USER.md +4326 -0
- package/documentation/platform/ANALYTICS.md +1150 -0
- package/documentation/platform/AUDITTRAIL.md +572 -0
- package/documentation/platform/BILLING.md +2396 -0
- package/documentation/platform/CART.md +5539 -0
- package/documentation/platform/CATALOG.md +21624 -0
- package/documentation/platform/COMMON.md +448 -0
- package/documentation/platform/COMMUNICATION.md +5714 -0
- package/documentation/platform/COMPANYPROFILE.md +2141 -0
- package/documentation/platform/CONFIGURATION.md +7335 -0
- package/documentation/platform/CONTENT.md +8989 -0
- package/documentation/platform/DISCOUNT.md +773 -0
- package/documentation/platform/FILESTORAGE.md +994 -0
- package/documentation/platform/INVENTORY.md +1775 -0
- package/documentation/platform/LEAD.md +4736 -0
- package/documentation/platform/ORDER.md +3764 -0
- package/documentation/platform/PARTNER.md +216 -0
- package/documentation/platform/PAYMENT.md +3444 -0
- package/documentation/platform/README.md +27 -0
- package/documentation/platform/REWARDS.md +871 -0
- package/documentation/platform/SHARE.md +602 -0
- package/documentation/platform/THEME.md +35725 -0
- package/documentation/platform/USER.md +2305 -0
- package/documentation/platform/WEBHOOK.md +587 -0
- package/documentation/public/CONFIGURATION.md +448 -0
- package/documentation/public/INVENTORY.md +686 -0
- package/documentation/public/WEBHOOK.md +348 -0
- package/index.d.ts +10 -0
- package/index.js +18 -0
- package/jest.config.d.ts +4 -0
- package/jest.config.js +6 -0
- package/package.json +35 -0
- package/platform.d.ts +3 -0
- package/platform.js +6 -0
- package/public.d.ts +3 -0
- package/public.js +6 -0
- package/sdk/application/ApplicationAPIClient.d.ts +11 -0
- package/sdk/application/ApplicationAPIClient.js +44 -0
- package/sdk/application/ApplicationClient.d.ts +40 -0
- package/sdk/application/ApplicationClient.js +84 -0
- package/sdk/application/ApplicationConfig.d.ts +19 -0
- package/sdk/application/ApplicationConfig.js +55 -0
- package/sdk/application/ApplicationModels.d.ts +826 -0
- package/sdk/application/ApplicationModels.js +10474 -0
- package/sdk/application/client/CartApplicationClient.d.ts +432 -0
- package/sdk/application/client/CartApplicationClient.js +1066 -0
- package/sdk/application/client/CatalogApplicationClient.d.ts +694 -0
- package/sdk/application/client/CatalogApplicationClient.js +1629 -0
- package/sdk/application/client/CommonApplicationClient.d.ts +38 -0
- package/sdk/application/client/CommonApplicationClient.js +105 -0
- package/sdk/application/client/CommunicationApplicationClient.d.ts +39 -0
- package/sdk/application/client/CommunicationApplicationClient.js +131 -0
- package/sdk/application/client/ConfigurationApplicationClient.d.ts +210 -0
- package/sdk/application/client/ConfigurationApplicationClient.js +649 -0
- package/sdk/application/client/ContentApplicationClient.d.ts +256 -0
- package/sdk/application/client/ContentApplicationClient.js +785 -0
- package/sdk/application/client/FileStorageApplicationClient.d.ts +88 -0
- package/sdk/application/client/FileStorageApplicationClient.js +214 -0
- package/sdk/application/client/LeadApplicationClient.d.ts +90 -0
- package/sdk/application/client/LeadApplicationClient.js +264 -0
- package/sdk/application/client/LogisticApplicationClient.d.ts +42 -0
- package/sdk/application/client/LogisticApplicationClient.js +128 -0
- package/sdk/application/client/OrderApplicationClient.d.ts +190 -0
- package/sdk/application/client/OrderApplicationClient.js +479 -0
- package/sdk/application/client/PaymentApplicationClient.d.ts +454 -0
- package/sdk/application/client/PaymentApplicationClient.js +1378 -0
- package/sdk/application/client/PosCartApplicationClient.d.ts +449 -0
- package/sdk/application/client/PosCartApplicationClient.js +1123 -0
- package/sdk/application/client/RewardsApplicationClient.d.ts +93 -0
- package/sdk/application/client/RewardsApplicationClient.js +293 -0
- package/sdk/application/client/ShareApplicationClient.d.ts +87 -0
- package/sdk/application/client/ShareApplicationClient.js +268 -0
- package/sdk/application/client/ThemeApplicationClient.d.ts +52 -0
- package/sdk/application/client/ThemeApplicationClient.js +161 -0
- package/sdk/application/client/UserApplicationClient.d.ts +446 -0
- package/sdk/application/client/UserApplicationClient.js +1275 -0
- package/sdk/application/constructUrl.d.ts +5 -0
- package/sdk/application/constructUrl.js +13 -0
- package/sdk/application/index.d.ts +2 -0
- package/sdk/application/index.js +4 -0
- package/sdk/application/models/CartValidator.d.ts +29 -0
- package/sdk/application/models/CartValidator.js +223 -0
- package/sdk/application/models/CatalogValidator.d.ts +33 -0
- package/sdk/application/models/CatalogValidator.js +233 -0
- package/sdk/application/models/CommonValidator.d.ts +5 -0
- package/sdk/application/models/CommonValidator.js +18 -0
- package/sdk/application/models/CommunicationValidator.d.ts +6 -0
- package/sdk/application/models/CommunicationValidator.js +20 -0
- package/sdk/application/models/ConfigurationValidator.d.ts +19 -0
- package/sdk/application/models/ConfigurationValidator.js +88 -0
- package/sdk/application/models/ContentValidator.d.ts +22 -0
- package/sdk/application/models/ContentValidator.js +106 -0
- package/sdk/application/models/FileStorageValidator.d.ts +6 -0
- package/sdk/application/models/FileStorageValidator.js +24 -0
- package/sdk/application/models/LeadValidator.d.ts +10 -0
- package/sdk/application/models/LeadValidator.js +48 -0
- package/sdk/application/models/LogisticValidator.d.ts +6 -0
- package/sdk/application/models/LogisticValidator.js +22 -0
- package/sdk/application/models/OrderValidator.d.ts +15 -0
- package/sdk/application/models/OrderValidator.js +87 -0
- package/sdk/application/models/PaymentValidator.d.ts +40 -0
- package/sdk/application/models/PaymentValidator.js +235 -0
- package/sdk/application/models/PosCartValidator.d.ts +30 -0
- package/sdk/application/models/PosCartValidator.js +232 -0
- package/sdk/application/models/RewardsValidator.d.ts +10 -0
- package/sdk/application/models/RewardsValidator.js +43 -0
- package/sdk/application/models/ShareValidator.d.ts +10 -0
- package/sdk/application/models/ShareValidator.js +44 -0
- package/sdk/application/models/ThemeValidator.d.ts +7 -0
- package/sdk/application/models/ThemeValidator.js +27 -0
- package/sdk/application/models/UserValidator.d.ts +38 -0
- package/sdk/application/models/UserValidator.js +233 -0
- package/sdk/common/AxiosHelper.d.ts +1 -0
- package/sdk/common/AxiosHelper.js +141 -0
- package/sdk/common/Constant.d.ts +294 -0
- package/sdk/common/Constant.js +332 -0
- package/sdk/common/FDKError.d.ts +26 -0
- package/sdk/common/FDKError.js +51 -0
- package/sdk/common/Logger.d.ts +2 -0
- package/sdk/common/Logger.js +85 -0
- package/sdk/common/Paginator.d.ts +16 -0
- package/sdk/common/Paginator.js +26 -0
- package/sdk/common/RequestSigner.d.ts +1 -0
- package/sdk/common/RequestSigner.js +306 -0
- package/sdk/common/Utility.d.ts +9 -0
- package/sdk/common/Utility.js +86 -0
- package/sdk/common/utils.d.ts +14 -0
- package/sdk/common/utils.js +165 -0
- package/sdk/platform/OAuthClient.d.ts +26 -0
- package/sdk/platform/OAuthClient.js +221 -0
- package/sdk/platform/PlatformAPIClient.d.ts +12 -0
- package/sdk/platform/PlatformAPIClient.js +43 -0
- package/sdk/platform/PlatformApplicationClient.d.ts +24398 -0
- package/sdk/platform/PlatformApplicationClient.js +23185 -0
- package/sdk/platform/PlatformApplicationModels.d.ts +333 -0
- package/sdk/platform/PlatformApplicationModels.js +21262 -0
- package/sdk/platform/PlatformClient.d.ts +9535 -0
- package/sdk/platform/PlatformClient.js +12336 -0
- package/sdk/platform/PlatformConfig.d.ts +29 -0
- package/sdk/platform/PlatformConfig.js +36 -0
- package/sdk/platform/PlatformModels.d.ts +1396 -0
- package/sdk/platform/PlatformModels.js +19222 -0
- package/sdk/platform/client/AnalyticsPlatformClient.d.ts +84 -0
- package/sdk/platform/client/AnalyticsPlatformClient.js +215 -0
- package/sdk/platform/client/AuditTrailPlatformClient.d.ts +38 -0
- package/sdk/platform/client/AuditTrailPlatformClient.js +133 -0
- package/sdk/platform/client/BillingPlatformClient.d.ts +109 -0
- package/sdk/platform/client/BillingPlatformClient.js +381 -0
- package/sdk/platform/client/CatalogPlatformClient.d.ts +806 -0
- package/sdk/platform/client/CatalogPlatformClient.js +2462 -0
- package/sdk/platform/client/CommonPlatformClient.d.ts +30 -0
- package/sdk/platform/client/CommonPlatformClient.js +84 -0
- package/sdk/platform/client/CommunicationPlatformClient.d.ts +26 -0
- package/sdk/platform/client/CommunicationPlatformClient.js +72 -0
- package/sdk/platform/client/CompanyProfilePlatformClient.d.ts +182 -0
- package/sdk/platform/client/CompanyProfilePlatformClient.js +540 -0
- package/sdk/platform/client/ConfigurationPlatformClient.d.ts +277 -0
- package/sdk/platform/client/ConfigurationPlatformClient.js +806 -0
- package/sdk/platform/client/DiscountPlatformClient.d.ts +118 -0
- package/sdk/platform/client/DiscountPlatformClient.js +364 -0
- package/sdk/platform/client/FileStoragePlatformClient.d.ts +111 -0
- package/sdk/platform/client/FileStoragePlatformClient.js +268 -0
- package/sdk/platform/client/InventoryPlatformClient.d.ts +125 -0
- package/sdk/platform/client/InventoryPlatformClient.js +409 -0
- package/sdk/platform/client/LeadPlatformClient.d.ts +150 -0
- package/sdk/platform/client/LeadPlatformClient.js +439 -0
- package/sdk/platform/client/OrderPlatformClient.d.ts +190 -0
- package/sdk/platform/client/OrderPlatformClient.js +521 -0
- package/sdk/platform/client/PaymentPlatformClient.d.ts +98 -0
- package/sdk/platform/client/PaymentPlatformClient.js +331 -0
- package/sdk/platform/client/WebhookPlatformClient.d.ts +64 -0
- package/sdk/platform/client/WebhookPlatformClient.js +207 -0
- package/sdk/platform/index.d.ts +2 -0
- package/sdk/platform/index.js +4 -0
- package/sdk/platform/models/AnalyticsValidator.d.ts +7 -0
- package/sdk/platform/models/AnalyticsValidator.js +36 -0
- package/sdk/platform/models/AuditTrailValidator.d.ts +7 -0
- package/sdk/platform/models/AuditTrailValidator.js +26 -0
- package/sdk/platform/models/BillingValidator.d.ts +15 -0
- package/sdk/platform/models/BillingValidator.js +72 -0
- package/sdk/platform/models/CartValidator.d.ts +0 -0
- package/sdk/platform/models/CartValidator.js +0 -0
- package/sdk/platform/models/CatalogValidator.d.ts +74 -0
- package/sdk/platform/models/CatalogValidator.js +484 -0
- package/sdk/platform/models/CommonValidator.d.ts +5 -0
- package/sdk/platform/models/CommonValidator.js +18 -0
- package/sdk/platform/models/CommunicationValidator.d.ts +4 -0
- package/sdk/platform/models/CommunicationValidator.js +11 -0
- package/sdk/platform/models/CompanyProfileValidator.d.ts +17 -0
- package/sdk/platform/models/CompanyProfileValidator.js +93 -0
- package/sdk/platform/models/ConfigurationValidator.d.ts +21 -0
- package/sdk/platform/models/ConfigurationValidator.js +134 -0
- package/sdk/platform/models/ContentValidator.d.ts +0 -0
- package/sdk/platform/models/ContentValidator.js +0 -0
- package/sdk/platform/models/DiscountValidator.d.ts +13 -0
- package/sdk/platform/models/DiscountValidator.js +75 -0
- package/sdk/platform/models/FileStorageValidator.d.ts +9 -0
- package/sdk/platform/models/FileStorageValidator.js +44 -0
- package/sdk/platform/models/InventoryValidator.d.ts +15 -0
- package/sdk/platform/models/InventoryValidator.js +81 -0
- package/sdk/platform/models/LeadValidator.d.ts +14 -0
- package/sdk/platform/models/LeadValidator.js +78 -0
- package/sdk/platform/models/OrderValidator.d.ts +14 -0
- package/sdk/platform/models/OrderValidator.js +110 -0
- package/sdk/platform/models/PartnerValidator.d.ts +0 -0
- package/sdk/platform/models/PartnerValidator.js +0 -0
- package/sdk/platform/models/PaymentValidator.d.ts +13 -0
- package/sdk/platform/models/PaymentValidator.js +65 -0
- package/sdk/platform/models/RewardsValidator.d.ts +0 -0
- package/sdk/platform/models/RewardsValidator.js +0 -0
- package/sdk/platform/models/ShareValidator.d.ts +0 -0
- package/sdk/platform/models/ShareValidator.js +0 -0
- package/sdk/platform/models/ThemeValidator.d.ts +0 -0
- package/sdk/platform/models/ThemeValidator.js +0 -0
- package/sdk/platform/models/UserValidator.d.ts +0 -0
- package/sdk/platform/models/UserValidator.js +0 -0
- package/sdk/platform/models/WebhookValidator.d.ts +9 -0
- package/sdk/platform/models/WebhookValidator.js +42 -0
- package/sdk/public/PublicAPIClient.d.ts +11 -0
- package/sdk/public/PublicAPIClient.js +38 -0
- package/sdk/public/PublicClient.d.ts +12 -0
- package/sdk/public/PublicClient.js +24 -0
- package/sdk/public/PublicConfig.d.ts +10 -0
- package/sdk/public/PublicConfig.js +12 -0
- package/sdk/public/PublicModels.d.ts +50 -0
- package/sdk/public/PublicModels.js +712 -0
- package/sdk/public/client/ConfigurationPublicClient.d.ts +38 -0
- package/sdk/public/client/ConfigurationPublicClient.js +102 -0
- package/sdk/public/client/InventoryPublicClient.d.ts +81 -0
- package/sdk/public/client/InventoryPublicClient.js +239 -0
- package/sdk/public/client/WebhookPublicClient.d.ts +28 -0
- package/sdk/public/client/WebhookPublicClient.js +92 -0
- package/sdk/public/constructUrl.d.ts +5 -0
- package/sdk/public/constructUrl.js +13 -0
- package/sdk/public/index.d.ts +2 -0
- package/sdk/public/index.js +4 -0
- package/sdk/public/models/ConfigurationValidator.d.ts +5 -0
- package/sdk/public/models/ConfigurationValidator.js +18 -0
- package/sdk/public/models/InventoryValidator.d.ts +9 -0
- package/sdk/public/models/InventoryValidator.js +43 -0
- package/sdk/public/models/WebhookValidator.d.ts +5 -0
- package/sdk/public/models/WebhookValidator.js +14 -0
- package/tests/application/catalog.spec.js +47 -0
- package/tests/common/action-url.spec.js +35 -0
- package/tests/common/schema/action-url.json +163 -0
- package/tests/common/schema/url-action.json +667 -0
- package/tests/common/url-action.spec.js +48 -0
- package/tests/helpers/cookie.helper.js +31 -0
- package/tests/helpers/oauth.helper.js +43 -0
- package/tests/platform/catalog.spec.js +49 -0
- package/tests/public/location.spec.js +39 -0
|
@@ -0,0 +1,871 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
##### [Back to Platform docs](./README.md)
|
|
6
|
+
|
|
7
|
+
## Rewards Methods
|
|
8
|
+
Rewards
|
|
9
|
+
* [getGiveaways](#getgiveaways)
|
|
10
|
+
* [createGiveaway](#creategiveaway)
|
|
11
|
+
* [getGiveawayByID](#getgiveawaybyid)
|
|
12
|
+
* [updateGiveaway](#updategiveaway)
|
|
13
|
+
* [getOffers](#getoffers)
|
|
14
|
+
* [getOfferByName](#getofferbyname)
|
|
15
|
+
* [updateOfferByName](#updateofferbyname)
|
|
16
|
+
* [getUserAvailablePoints](#getuseravailablepoints)
|
|
17
|
+
* [updateUserStatus](#updateuserstatus)
|
|
18
|
+
* [getUserPointsHistory](#getuserpointshistory)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
## Methods with example and description
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### getGiveaways
|
|
26
|
+
List of giveaways of the current application.
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
```javascript
|
|
31
|
+
// Promise
|
|
32
|
+
const promise = client.application("<APPLICATION_ID>").rewards.getGiveaways({ pageId : value,
|
|
33
|
+
pageSize : value });
|
|
34
|
+
|
|
35
|
+
// Async/Await
|
|
36
|
+
const data = await client.application("<APPLICATION_ID>").rewards.getGiveaways({ pageId : value,
|
|
37
|
+
pageSize : value });
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
| Argument | Type | Required | Description |
|
|
45
|
+
| --------- | ----- | -------- | ----------- |
|
|
46
|
+
| pageId | string | no | pagination page id |
|
|
47
|
+
| pageSize | number | no | pagination page size |
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
List of giveaways of the current application.
|
|
52
|
+
|
|
53
|
+
*Returned Response:*
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
[GiveawayResponse](#GiveawayResponse)
|
|
59
|
+
|
|
60
|
+
ok
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
<details>
|
|
66
|
+
<summary><i> Example:</i></summary>
|
|
67
|
+
|
|
68
|
+
```json
|
|
69
|
+
|
|
70
|
+
```
|
|
71
|
+
</details>
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
---
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
### createGiveaway
|
|
85
|
+
Adds a new giveaway.
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
```javascript
|
|
90
|
+
// Promise
|
|
91
|
+
const promise = client.application("<APPLICATION_ID>").rewards.createGiveaway({ body : value });
|
|
92
|
+
|
|
93
|
+
// Async/Await
|
|
94
|
+
const data = await client.application("<APPLICATION_ID>").rewards.createGiveaway({ body : value });
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
| Argument | Type | Required | Description |
|
|
102
|
+
| --------- | ----- | -------- | ----------- |
|
|
103
|
+
| body | [Giveaway](#Giveaway) | yes | Request body |
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
Adds a new giveaway.
|
|
107
|
+
|
|
108
|
+
*Returned Response:*
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
[Giveaway](#Giveaway)
|
|
114
|
+
|
|
115
|
+
ok
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
<details>
|
|
121
|
+
<summary><i> Example:</i></summary>
|
|
122
|
+
|
|
123
|
+
```json
|
|
124
|
+
|
|
125
|
+
```
|
|
126
|
+
</details>
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
---
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
### getGiveawayByID
|
|
140
|
+
Get giveaway by ID.
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
```javascript
|
|
145
|
+
// Promise
|
|
146
|
+
const promise = client.application("<APPLICATION_ID>").rewards.getGiveawayByID({ id : value });
|
|
147
|
+
|
|
148
|
+
// Async/Await
|
|
149
|
+
const data = await client.application("<APPLICATION_ID>").rewards.getGiveawayByID({ id : value });
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
| Argument | Type | Required | Description |
|
|
157
|
+
| --------- | ----- | -------- | ----------- |
|
|
158
|
+
| id | string | yes | Giveaway ID |
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
Get giveaway by ID.
|
|
163
|
+
|
|
164
|
+
*Returned Response:*
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
[Giveaway](#Giveaway)
|
|
170
|
+
|
|
171
|
+
ok
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
<details>
|
|
177
|
+
<summary><i> Example:</i></summary>
|
|
178
|
+
|
|
179
|
+
```json
|
|
180
|
+
|
|
181
|
+
```
|
|
182
|
+
</details>
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
---
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
### updateGiveaway
|
|
196
|
+
Updates the giveaway by it's ID.
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
|
|
200
|
+
```javascript
|
|
201
|
+
// Promise
|
|
202
|
+
const promise = client.application("<APPLICATION_ID>").rewards.updateGiveaway({ id : value,
|
|
203
|
+
body : value });
|
|
204
|
+
|
|
205
|
+
// Async/Await
|
|
206
|
+
const data = await client.application("<APPLICATION_ID>").rewards.updateGiveaway({ id : value,
|
|
207
|
+
body : value });
|
|
208
|
+
```
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
| Argument | Type | Required | Description |
|
|
215
|
+
| --------- | ----- | -------- | ----------- |
|
|
216
|
+
| id | string | yes | Giveaway ID |
|
|
217
|
+
| body | [Giveaway](#Giveaway) | yes | Request body |
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+
Updates the giveaway by it's ID.
|
|
221
|
+
|
|
222
|
+
*Returned Response:*
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
|
|
227
|
+
[Giveaway](#Giveaway)
|
|
228
|
+
|
|
229
|
+
ok
|
|
230
|
+
|
|
231
|
+
|
|
232
|
+
|
|
233
|
+
|
|
234
|
+
<details>
|
|
235
|
+
<summary><i> Example:</i></summary>
|
|
236
|
+
|
|
237
|
+
```json
|
|
238
|
+
|
|
239
|
+
```
|
|
240
|
+
</details>
|
|
241
|
+
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
|
|
246
|
+
|
|
247
|
+
|
|
248
|
+
|
|
249
|
+
|
|
250
|
+
---
|
|
251
|
+
|
|
252
|
+
|
|
253
|
+
### getOffers
|
|
254
|
+
List of offer of the current application.
|
|
255
|
+
|
|
256
|
+
|
|
257
|
+
|
|
258
|
+
```javascript
|
|
259
|
+
// Promise
|
|
260
|
+
const promise = client.application("<APPLICATION_ID>").rewards.getOffers();
|
|
261
|
+
|
|
262
|
+
// Async/Await
|
|
263
|
+
const data = await client.application("<APPLICATION_ID>").rewards.getOffers();
|
|
264
|
+
```
|
|
265
|
+
|
|
266
|
+
|
|
267
|
+
|
|
268
|
+
|
|
269
|
+
|
|
270
|
+
|
|
271
|
+
List of offer of the current application.
|
|
272
|
+
|
|
273
|
+
*Returned Response:*
|
|
274
|
+
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
|
|
278
|
+
[Array<Offer>](#Array<Offer>)
|
|
279
|
+
|
|
280
|
+
ok
|
|
281
|
+
|
|
282
|
+
|
|
283
|
+
|
|
284
|
+
|
|
285
|
+
<details>
|
|
286
|
+
<summary><i> Example:</i></summary>
|
|
287
|
+
|
|
288
|
+
```json
|
|
289
|
+
|
|
290
|
+
```
|
|
291
|
+
</details>
|
|
292
|
+
|
|
293
|
+
|
|
294
|
+
|
|
295
|
+
|
|
296
|
+
|
|
297
|
+
|
|
298
|
+
|
|
299
|
+
|
|
300
|
+
|
|
301
|
+
---
|
|
302
|
+
|
|
303
|
+
|
|
304
|
+
### getOfferByName
|
|
305
|
+
Get offer by name.
|
|
306
|
+
|
|
307
|
+
|
|
308
|
+
|
|
309
|
+
```javascript
|
|
310
|
+
// Promise
|
|
311
|
+
const promise = client.application("<APPLICATION_ID>").rewards.getOfferByName({ cookie : value,
|
|
312
|
+
name : value });
|
|
313
|
+
|
|
314
|
+
// Async/Await
|
|
315
|
+
const data = await client.application("<APPLICATION_ID>").rewards.getOfferByName({ cookie : value,
|
|
316
|
+
name : value });
|
|
317
|
+
```
|
|
318
|
+
|
|
319
|
+
|
|
320
|
+
|
|
321
|
+
|
|
322
|
+
|
|
323
|
+
| Argument | Type | Required | Description |
|
|
324
|
+
| --------- | ----- | -------- | ----------- |
|
|
325
|
+
| cookie | string | yes | User's session cookie. This cookie is set in browser cookie when logged-in to fynd's authentication system i.e. `Grimlock` or by using grimlock-backend SDK for backend implementation. |
|
|
326
|
+
| name | string | yes | Offer name |
|
|
327
|
+
|
|
328
|
+
|
|
329
|
+
|
|
330
|
+
Get offer by name.
|
|
331
|
+
|
|
332
|
+
*Returned Response:*
|
|
333
|
+
|
|
334
|
+
|
|
335
|
+
|
|
336
|
+
|
|
337
|
+
[Offer](#Offer)
|
|
338
|
+
|
|
339
|
+
ok
|
|
340
|
+
|
|
341
|
+
|
|
342
|
+
|
|
343
|
+
|
|
344
|
+
<details>
|
|
345
|
+
<summary><i> Example:</i></summary>
|
|
346
|
+
|
|
347
|
+
```json
|
|
348
|
+
|
|
349
|
+
```
|
|
350
|
+
</details>
|
|
351
|
+
|
|
352
|
+
|
|
353
|
+
|
|
354
|
+
|
|
355
|
+
|
|
356
|
+
|
|
357
|
+
|
|
358
|
+
|
|
359
|
+
|
|
360
|
+
---
|
|
361
|
+
|
|
362
|
+
|
|
363
|
+
### updateOfferByName
|
|
364
|
+
Updates the offer by name.
|
|
365
|
+
|
|
366
|
+
|
|
367
|
+
|
|
368
|
+
```javascript
|
|
369
|
+
// Promise
|
|
370
|
+
const promise = client.application("<APPLICATION_ID>").rewards.updateOfferByName({ name : value,
|
|
371
|
+
body : value });
|
|
372
|
+
|
|
373
|
+
// Async/Await
|
|
374
|
+
const data = await client.application("<APPLICATION_ID>").rewards.updateOfferByName({ name : value,
|
|
375
|
+
body : value });
|
|
376
|
+
```
|
|
377
|
+
|
|
378
|
+
|
|
379
|
+
|
|
380
|
+
|
|
381
|
+
|
|
382
|
+
| Argument | Type | Required | Description |
|
|
383
|
+
| --------- | ----- | -------- | ----------- |
|
|
384
|
+
| name | string | yes | Offer name |
|
|
385
|
+
| body | [Offer](#Offer) | yes | Request body |
|
|
386
|
+
|
|
387
|
+
|
|
388
|
+
Updates the offer by name.
|
|
389
|
+
|
|
390
|
+
*Returned Response:*
|
|
391
|
+
|
|
392
|
+
|
|
393
|
+
|
|
394
|
+
|
|
395
|
+
[Offer](#Offer)
|
|
396
|
+
|
|
397
|
+
ok
|
|
398
|
+
|
|
399
|
+
|
|
400
|
+
|
|
401
|
+
|
|
402
|
+
<details>
|
|
403
|
+
<summary><i> Example:</i></summary>
|
|
404
|
+
|
|
405
|
+
```json
|
|
406
|
+
|
|
407
|
+
```
|
|
408
|
+
</details>
|
|
409
|
+
|
|
410
|
+
|
|
411
|
+
|
|
412
|
+
|
|
413
|
+
|
|
414
|
+
|
|
415
|
+
|
|
416
|
+
|
|
417
|
+
|
|
418
|
+
---
|
|
419
|
+
|
|
420
|
+
|
|
421
|
+
### getUserAvailablePoints
|
|
422
|
+
User's reward details.
|
|
423
|
+
|
|
424
|
+
|
|
425
|
+
|
|
426
|
+
```javascript
|
|
427
|
+
// Promise
|
|
428
|
+
const promise = client.application("<APPLICATION_ID>").rewards.getUserAvailablePoints({ userId : value });
|
|
429
|
+
|
|
430
|
+
// Async/Await
|
|
431
|
+
const data = await client.application("<APPLICATION_ID>").rewards.getUserAvailablePoints({ userId : value });
|
|
432
|
+
```
|
|
433
|
+
|
|
434
|
+
|
|
435
|
+
|
|
436
|
+
|
|
437
|
+
|
|
438
|
+
| Argument | Type | Required | Description |
|
|
439
|
+
| --------- | ----- | -------- | ----------- |
|
|
440
|
+
| userId | string | yes | user id |
|
|
441
|
+
|
|
442
|
+
|
|
443
|
+
|
|
444
|
+
User's reward details.
|
|
445
|
+
|
|
446
|
+
*Returned Response:*
|
|
447
|
+
|
|
448
|
+
|
|
449
|
+
|
|
450
|
+
|
|
451
|
+
[UserRes](#UserRes)
|
|
452
|
+
|
|
453
|
+
ok
|
|
454
|
+
|
|
455
|
+
|
|
456
|
+
|
|
457
|
+
|
|
458
|
+
<details>
|
|
459
|
+
<summary><i> Example:</i></summary>
|
|
460
|
+
|
|
461
|
+
```json
|
|
462
|
+
|
|
463
|
+
```
|
|
464
|
+
</details>
|
|
465
|
+
|
|
466
|
+
|
|
467
|
+
|
|
468
|
+
|
|
469
|
+
|
|
470
|
+
|
|
471
|
+
|
|
472
|
+
|
|
473
|
+
|
|
474
|
+
---
|
|
475
|
+
|
|
476
|
+
|
|
477
|
+
### updateUserStatus
|
|
478
|
+
Update User status
|
|
479
|
+
|
|
480
|
+
|
|
481
|
+
|
|
482
|
+
```javascript
|
|
483
|
+
// Promise
|
|
484
|
+
const promise = client.application("<APPLICATION_ID>").rewards.updateUserStatus({ userId : value,
|
|
485
|
+
body : value });
|
|
486
|
+
|
|
487
|
+
// Async/Await
|
|
488
|
+
const data = await client.application("<APPLICATION_ID>").rewards.updateUserStatus({ userId : value,
|
|
489
|
+
body : value });
|
|
490
|
+
```
|
|
491
|
+
|
|
492
|
+
|
|
493
|
+
|
|
494
|
+
|
|
495
|
+
|
|
496
|
+
| Argument | Type | Required | Description |
|
|
497
|
+
| --------- | ----- | -------- | ----------- |
|
|
498
|
+
| userId | string | yes | user id |
|
|
499
|
+
| body | [AppUser](#AppUser) | yes | Request body |
|
|
500
|
+
|
|
501
|
+
|
|
502
|
+
Update user status, active/archive
|
|
503
|
+
|
|
504
|
+
*Returned Response:*
|
|
505
|
+
|
|
506
|
+
|
|
507
|
+
|
|
508
|
+
|
|
509
|
+
[AppUser](#AppUser)
|
|
510
|
+
|
|
511
|
+
Success
|
|
512
|
+
|
|
513
|
+
|
|
514
|
+
|
|
515
|
+
|
|
516
|
+
<details>
|
|
517
|
+
<summary><i> Example:</i></summary>
|
|
518
|
+
|
|
519
|
+
```json
|
|
520
|
+
|
|
521
|
+
```
|
|
522
|
+
</details>
|
|
523
|
+
|
|
524
|
+
|
|
525
|
+
|
|
526
|
+
|
|
527
|
+
|
|
528
|
+
|
|
529
|
+
|
|
530
|
+
|
|
531
|
+
|
|
532
|
+
---
|
|
533
|
+
|
|
534
|
+
|
|
535
|
+
### getUserPointsHistory
|
|
536
|
+
Get list of points transactions.
|
|
537
|
+
|
|
538
|
+
|
|
539
|
+
|
|
540
|
+
```javascript
|
|
541
|
+
// Promise
|
|
542
|
+
const promise = client.application("<APPLICATION_ID>").rewards.getUserPointsHistory({ userId : value,
|
|
543
|
+
pageId : value,
|
|
544
|
+
pageLimit : value,
|
|
545
|
+
pageSize : value });
|
|
546
|
+
|
|
547
|
+
// Async/Await
|
|
548
|
+
const data = await client.application("<APPLICATION_ID>").rewards.getUserPointsHistory({ userId : value,
|
|
549
|
+
pageId : value,
|
|
550
|
+
pageLimit : value,
|
|
551
|
+
pageSize : value });
|
|
552
|
+
```
|
|
553
|
+
|
|
554
|
+
|
|
555
|
+
|
|
556
|
+
|
|
557
|
+
|
|
558
|
+
| Argument | Type | Required | Description |
|
|
559
|
+
| --------- | ----- | -------- | ----------- |
|
|
560
|
+
| userId | string | yes | user id |
|
|
561
|
+
| pageId | string | no | PageID is the ID of the requested page. For first request it should be kept empty. |
|
|
562
|
+
| pageLimit | number | no | PageLimit is the number of requested items in response. |
|
|
563
|
+
| pageSize | number | no | PageSize is the number of requested items in response. |
|
|
564
|
+
|
|
565
|
+
|
|
566
|
+
|
|
567
|
+
Get list of points transactions.
|
|
568
|
+
The list of points history is paginated.
|
|
569
|
+
|
|
570
|
+
*Returned Response:*
|
|
571
|
+
|
|
572
|
+
|
|
573
|
+
|
|
574
|
+
|
|
575
|
+
[HistoryRes](#HistoryRes)
|
|
576
|
+
|
|
577
|
+
ok
|
|
578
|
+
|
|
579
|
+
|
|
580
|
+
|
|
581
|
+
|
|
582
|
+
<details>
|
|
583
|
+
<summary><i> Example:</i></summary>
|
|
584
|
+
|
|
585
|
+
```json
|
|
586
|
+
|
|
587
|
+
```
|
|
588
|
+
</details>
|
|
589
|
+
|
|
590
|
+
|
|
591
|
+
|
|
592
|
+
|
|
593
|
+
|
|
594
|
+
|
|
595
|
+
|
|
596
|
+
|
|
597
|
+
|
|
598
|
+
---
|
|
599
|
+
|
|
600
|
+
|
|
601
|
+
|
|
602
|
+
### Schemas
|
|
603
|
+
|
|
604
|
+
|
|
605
|
+
|
|
606
|
+
#### [AppUser](#AppUser)
|
|
607
|
+
|
|
608
|
+
| Properties | Type | Nullable | Description |
|
|
609
|
+
| ---------- | ---- | -------- | ----------- |
|
|
610
|
+
| _id | string | no | |
|
|
611
|
+
| active | boolean | no | |
|
|
612
|
+
| application_id | string | no | |
|
|
613
|
+
| block_reason | string | no | |
|
|
614
|
+
| updated_at | string | no | |
|
|
615
|
+
| updated_by | string | no | |
|
|
616
|
+
| user_id | string | no | |
|
|
617
|
+
|
|
618
|
+
---
|
|
619
|
+
|
|
620
|
+
|
|
621
|
+
|
|
622
|
+
|
|
623
|
+
#### [Asset](#Asset)
|
|
624
|
+
|
|
625
|
+
| Properties | Type | Nullable | Description |
|
|
626
|
+
| ---------- | ---- | -------- | ----------- |
|
|
627
|
+
| aspect_ratio | string | no | |
|
|
628
|
+
| id | string | no | |
|
|
629
|
+
| secure_url | string | no | |
|
|
630
|
+
|
|
631
|
+
---
|
|
632
|
+
|
|
633
|
+
|
|
634
|
+
|
|
635
|
+
|
|
636
|
+
#### [E](#E)
|
|
637
|
+
|
|
638
|
+
| Properties | Type | Nullable | Description |
|
|
639
|
+
| ---------- | ---- | -------- | ----------- |
|
|
640
|
+
| code | string | no | |
|
|
641
|
+
| exception | string | no | |
|
|
642
|
+
| info | string | no | |
|
|
643
|
+
| message | string | no | |
|
|
644
|
+
| request_id | string | no | |
|
|
645
|
+
| stack_trace | string | no | |
|
|
646
|
+
| status | number | no | |
|
|
647
|
+
|
|
648
|
+
---
|
|
649
|
+
|
|
650
|
+
|
|
651
|
+
|
|
652
|
+
|
|
653
|
+
#### [Giveaway](#Giveaway)
|
|
654
|
+
|
|
655
|
+
| Properties | Type | Nullable | Description |
|
|
656
|
+
| ---------- | ---- | -------- | ----------- |
|
|
657
|
+
| _id | string | no | |
|
|
658
|
+
| _schedule | [Schedule](#Schedule) | no | |
|
|
659
|
+
| active | boolean | no | |
|
|
660
|
+
| application_id | string | no | |
|
|
661
|
+
| audience | [RewardsAudience](#RewardsAudience) | no | |
|
|
662
|
+
| banner_image | [Asset](#Asset) | no | |
|
|
663
|
+
| created_at | string | no | |
|
|
664
|
+
| description | string | no | |
|
|
665
|
+
| name | string | no | |
|
|
666
|
+
| rule | [RewardsRule](#RewardsRule) | no | |
|
|
667
|
+
| title | string | no | |
|
|
668
|
+
| updated_at | string | no | |
|
|
669
|
+
|
|
670
|
+
---
|
|
671
|
+
|
|
672
|
+
|
|
673
|
+
|
|
674
|
+
|
|
675
|
+
#### [GiveawayResponse](#GiveawayResponse)
|
|
676
|
+
|
|
677
|
+
| Properties | Type | Nullable | Description |
|
|
678
|
+
| ---------- | ---- | -------- | ----------- |
|
|
679
|
+
| items | [[Giveaway](#Giveaway)] | no | |
|
|
680
|
+
| page | [Page](#Page) | no | |
|
|
681
|
+
|
|
682
|
+
---
|
|
683
|
+
|
|
684
|
+
|
|
685
|
+
|
|
686
|
+
|
|
687
|
+
#### [HistoryPretty](#HistoryPretty)
|
|
688
|
+
|
|
689
|
+
| Properties | Type | Nullable | Description |
|
|
690
|
+
| ---------- | ---- | -------- | ----------- |
|
|
691
|
+
| _id | string | no | |
|
|
692
|
+
| application_id | string | no | |
|
|
693
|
+
| claimed | boolean | no | |
|
|
694
|
+
| created_at | string | no | |
|
|
695
|
+
| expires_on | string | no | |
|
|
696
|
+
| points | number | no | |
|
|
697
|
+
| remaining_points | number | no | |
|
|
698
|
+
| text_1 | string | no | |
|
|
699
|
+
| text_2 | string | no | |
|
|
700
|
+
| text_3 | string | no | |
|
|
701
|
+
| txn_name | string | no | |
|
|
702
|
+
| updated_at | string | no | |
|
|
703
|
+
| user_id | string | no | |
|
|
704
|
+
|
|
705
|
+
---
|
|
706
|
+
|
|
707
|
+
|
|
708
|
+
|
|
709
|
+
|
|
710
|
+
#### [HistoryRes](#HistoryRes)
|
|
711
|
+
|
|
712
|
+
| Properties | Type | Nullable | Description |
|
|
713
|
+
| ---------- | ---- | -------- | ----------- |
|
|
714
|
+
| items | [[HistoryPretty](#HistoryPretty)] | no | |
|
|
715
|
+
| page | [Page](#Page) | no | |
|
|
716
|
+
| points | number | no | |
|
|
717
|
+
|
|
718
|
+
---
|
|
719
|
+
|
|
720
|
+
|
|
721
|
+
|
|
722
|
+
|
|
723
|
+
#### [Offer](#Offer)
|
|
724
|
+
|
|
725
|
+
| Properties | Type | Nullable | Description |
|
|
726
|
+
| ---------- | ---- | -------- | ----------- |
|
|
727
|
+
| _schedule | [Schedule](#Schedule) | no | |
|
|
728
|
+
| active | boolean | no | |
|
|
729
|
+
| application_id | string | no | |
|
|
730
|
+
| banner_image | [Asset](#Asset) | no | |
|
|
731
|
+
| created_at | string | no | |
|
|
732
|
+
| name | string | no | |
|
|
733
|
+
| rule | string | no | |
|
|
734
|
+
| share | [ShareMessages](#ShareMessages) | no | |
|
|
735
|
+
| sub_text | string | no | |
|
|
736
|
+
| text | string | no | |
|
|
737
|
+
| type | string | no | |
|
|
738
|
+
| updated_at | string | no | |
|
|
739
|
+
| updated_by | string | no | |
|
|
740
|
+
| url | string | no | |
|
|
741
|
+
|
|
742
|
+
---
|
|
743
|
+
|
|
744
|
+
|
|
745
|
+
|
|
746
|
+
|
|
747
|
+
#### [Page](#Page)
|
|
748
|
+
|
|
749
|
+
| Properties | Type | Nullable | Description |
|
|
750
|
+
| ---------- | ---- | -------- | ----------- |
|
|
751
|
+
| current | number | no | |
|
|
752
|
+
| has_next | boolean | no | |
|
|
753
|
+
| has_previous | boolean | no | |
|
|
754
|
+
| item_total | number | no | |
|
|
755
|
+
| next_id | string | no | |
|
|
756
|
+
| size | number | no | |
|
|
757
|
+
| type | string | yes | |
|
|
758
|
+
|
|
759
|
+
---
|
|
760
|
+
|
|
761
|
+
|
|
762
|
+
|
|
763
|
+
|
|
764
|
+
#### [Points](#Points)
|
|
765
|
+
|
|
766
|
+
| Properties | Type | Nullable | Description |
|
|
767
|
+
| ---------- | ---- | -------- | ----------- |
|
|
768
|
+
| available | number | no | |
|
|
769
|
+
|
|
770
|
+
---
|
|
771
|
+
|
|
772
|
+
|
|
773
|
+
|
|
774
|
+
|
|
775
|
+
#### [Referral](#Referral)
|
|
776
|
+
|
|
777
|
+
| Properties | Type | Nullable | Description |
|
|
778
|
+
| ---------- | ---- | -------- | ----------- |
|
|
779
|
+
| code | string | no | |
|
|
780
|
+
|
|
781
|
+
---
|
|
782
|
+
|
|
783
|
+
|
|
784
|
+
|
|
785
|
+
|
|
786
|
+
#### [RewardUser](#RewardUser)
|
|
787
|
+
|
|
788
|
+
| Properties | Type | Nullable | Description |
|
|
789
|
+
| ---------- | ---- | -------- | ----------- |
|
|
790
|
+
| _id | string | no | |
|
|
791
|
+
| active | boolean | no | |
|
|
792
|
+
| created_at | string | no | |
|
|
793
|
+
| referral | [Referral](#Referral) | no | |
|
|
794
|
+
| uid | number | no | |
|
|
795
|
+
| updated_at | string | no | |
|
|
796
|
+
| user_block_reason | string | no | |
|
|
797
|
+
| user_id | string | no | |
|
|
798
|
+
|
|
799
|
+
---
|
|
800
|
+
|
|
801
|
+
|
|
802
|
+
|
|
803
|
+
|
|
804
|
+
#### [RewardsAudience](#RewardsAudience)
|
|
805
|
+
|
|
806
|
+
| Properties | Type | Nullable | Description |
|
|
807
|
+
| ---------- | ---- | -------- | ----------- |
|
|
808
|
+
| header_user_id | string | no | |
|
|
809
|
+
| id | string | no | |
|
|
810
|
+
|
|
811
|
+
---
|
|
812
|
+
|
|
813
|
+
|
|
814
|
+
|
|
815
|
+
|
|
816
|
+
#### [RewardsRule](#RewardsRule)
|
|
817
|
+
|
|
818
|
+
| Properties | Type | Nullable | Description |
|
|
819
|
+
| ---------- | ---- | -------- | ----------- |
|
|
820
|
+
| amount | number | no | |
|
|
821
|
+
|
|
822
|
+
---
|
|
823
|
+
|
|
824
|
+
|
|
825
|
+
|
|
826
|
+
|
|
827
|
+
#### [Schedule](#Schedule)
|
|
828
|
+
|
|
829
|
+
| Properties | Type | Nullable | Description |
|
|
830
|
+
| ---------- | ---- | -------- | ----------- |
|
|
831
|
+
| cron | string | no | |
|
|
832
|
+
| duration | number | no | |
|
|
833
|
+
| end | string | no | |
|
|
834
|
+
| start | string | no | |
|
|
835
|
+
|
|
836
|
+
---
|
|
837
|
+
|
|
838
|
+
|
|
839
|
+
|
|
840
|
+
|
|
841
|
+
#### [ShareMessages](#ShareMessages)
|
|
842
|
+
|
|
843
|
+
| Properties | Type | Nullable | Description |
|
|
844
|
+
| ---------- | ---- | -------- | ----------- |
|
|
845
|
+
| email | string | no | |
|
|
846
|
+
| facebook | string | no | |
|
|
847
|
+
| fallback | string | no | |
|
|
848
|
+
| message | string | no | |
|
|
849
|
+
| messenger | string | no | |
|
|
850
|
+
| sms | string | no | |
|
|
851
|
+
| text | string | no | |
|
|
852
|
+
| twitter | string | no | |
|
|
853
|
+
| whatsapp | string | no | |
|
|
854
|
+
|
|
855
|
+
---
|
|
856
|
+
|
|
857
|
+
|
|
858
|
+
|
|
859
|
+
|
|
860
|
+
#### [UserRes](#UserRes)
|
|
861
|
+
|
|
862
|
+
| Properties | Type | Nullable | Description |
|
|
863
|
+
| ---------- | ---- | -------- | ----------- |
|
|
864
|
+
| points | [Points](#Points) | no | |
|
|
865
|
+
| user | [RewardUser](#RewardUser) | no | |
|
|
866
|
+
|
|
867
|
+
---
|
|
868
|
+
|
|
869
|
+
|
|
870
|
+
|
|
871
|
+
|