@handsondigital/idplugger-promotion 1.0.0
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/.openapi-generator/FILES +267 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/README.md +367 -0
- package/api.ts +14329 -0
- package/base.ts +98 -0
- package/common.ts +150 -0
- package/configuration.ts +115 -0
- package/dist/api.d.ts +10994 -0
- package/dist/api.js +7834 -0
- package/dist/base.d.ts +66 -0
- package/dist/base.js +99 -0
- package/dist/common.d.ts +65 -0
- package/dist/common.js +253 -0
- package/dist/configuration.d.ts +91 -0
- package/dist/configuration.js +57 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.js +31 -0
- package/docs/AddLuckyNumberCustom.md +26 -0
- package/docs/Article.md +40 -0
- package/docs/ArticleCustomDataInner.md +28 -0
- package/docs/ArticlesApi.md +258 -0
- package/docs/ArticlesCreate200Response.md +26 -0
- package/docs/ArticlesCreate400Response.md +26 -0
- package/docs/ArticlesCreate401Response.md +26 -0
- package/docs/ArticlesDelete200Response.md +26 -0
- package/docs/ArticlesDelete400Response.md +26 -0
- package/docs/ArticlesDelete401Response.md +26 -0
- package/docs/ArticlesIndex200Response.md +28 -0
- package/docs/ArticlesIndex400Response.md +26 -0
- package/docs/ArticlesIndex401Response.md +26 -0
- package/docs/ArticlesUpdate200Response.md +26 -0
- package/docs/ArticlesUpdate400Response.md +26 -0
- package/docs/ArticlesUpdate401Response.md +26 -0
- package/docs/AuthApi.md +105 -0
- package/docs/Award.md +40 -0
- package/docs/Awarded.md +38 -0
- package/docs/AwardedsApi.md +184 -0
- package/docs/AwardedsSearch200Response.md +28 -0
- package/docs/AwardedsSearch400Response.md +26 -0
- package/docs/AwardedsSearch401Response.md +26 -0
- package/docs/AwardedsStates200Response.md +26 -0
- package/docs/AwardedsStates200ResponseContentInner.md +22 -0
- package/docs/AwardedsUpdate200Response.md +26 -0
- package/docs/AwardedsUpdate400Response.md +26 -0
- package/docs/AwardedsUpdate401Response.md +26 -0
- package/docs/AwardsApi.md +243 -0
- package/docs/AwardsCreate200Response.md +26 -0
- package/docs/AwardsCreate400Response.md +26 -0
- package/docs/AwardsCreate401Response.md +26 -0
- package/docs/AwardsDelete200Response.md +26 -0
- package/docs/AwardsDelete400Response.md +26 -0
- package/docs/AwardsDelete401Response.md +26 -0
- package/docs/AwardsIndex200Response.md +28 -0
- package/docs/AwardsIndex400Response.md +26 -0
- package/docs/AwardsIndex401Response.md +26 -0
- package/docs/AwardsUpdate200Response.md +26 -0
- package/docs/AwardsUpdate400Response.md +26 -0
- package/docs/AwardsUpdate401Response.md +26 -0
- package/docs/BlacklistCreate200Response.md +26 -0
- package/docs/BlacklistCreate200ResponseContentInner.md +24 -0
- package/docs/BlacklistCreate400Response.md +26 -0
- package/docs/BlacklistCreate401Response.md +26 -0
- package/docs/BlacklistCreateRequest.md +20 -0
- package/docs/BlacklistDelete200Response.md +26 -0
- package/docs/BlacklistDelete400Response.md +26 -0
- package/docs/BlacklistDelete401Response.md +26 -0
- package/docs/BlacklistIndex200Response.md +28 -0
- package/docs/BlacklistIndex200ResponseContentInner.md +24 -0
- package/docs/BlacklistIndex400Response.md +26 -0
- package/docs/BlockedUsersApi.md +179 -0
- package/docs/Branding.md +54 -0
- package/docs/BrandingApi.md +120 -0
- package/docs/BrandingIndex200Response.md +26 -0
- package/docs/BrandingIndex400Response.md +26 -0
- package/docs/BrandingIndex401Response.md +26 -0
- package/docs/BrandingMenuInner.md +24 -0
- package/docs/BrandingSocial.md +28 -0
- package/docs/BrandingUpdate200Response.md +26 -0
- package/docs/BrandingUpdate400Response.md +26 -0
- package/docs/BrandingUpdate401Response.md +26 -0
- package/docs/ConfigWebhook200Response.md +26 -0
- package/docs/ConfigWebhook400Response.md +26 -0
- package/docs/ConfigWebhook401Response.md +26 -0
- package/docs/ConfigWebhookRequest.md +22 -0
- package/docs/ConfigsIndex200Response.md +26 -0
- package/docs/ConfigsIndex400Response.md +26 -0
- package/docs/ConfigsIndex401Response.md +26 -0
- package/docs/Content.md +28 -0
- package/docs/ContentApi.md +129 -0
- package/docs/ContentCreate200Response.md +26 -0
- package/docs/ContentCreate400Response.md +26 -0
- package/docs/ContentCreate401Response.md +26 -0
- package/docs/ContentIndex200Response.md +26 -0
- package/docs/ContentIndex400Response.md +26 -0
- package/docs/ContentIndex401Response.md +26 -0
- package/docs/Coupon.md +36 -0
- package/docs/CouponProductsInner.md +26 -0
- package/docs/CouponWebhookError.md +26 -0
- package/docs/CouponWebhookErrorContent.md +38 -0
- package/docs/CouponWebhookErrorContentAllOfErrors.md +22 -0
- package/docs/CouponWebhookSuccess.md +26 -0
- package/docs/CouponsApi.md +311 -0
- package/docs/CouponsCreate200Response.md +26 -0
- package/docs/CouponsCreate401Response.md +26 -0
- package/docs/CouponsCreate409Response.md +26 -0
- package/docs/CouponsCreateRequest.md +20 -0
- package/docs/CouponsDelete200Response.md +26 -0
- package/docs/CouponsDelete400Response.md +26 -0
- package/docs/CouponsDelete401Response.md +26 -0
- package/docs/CouponsIndex200Response.md +28 -0
- package/docs/CouponsIndex200ResponseContentInner.md +38 -0
- package/docs/CouponsIndex400Response.md +26 -0
- package/docs/CouponsIndex401Response.md +26 -0
- package/docs/CouponsUpdate201Response.md +26 -0
- package/docs/CouponsUpdate401Response.md +26 -0
- package/docs/CouponsUpdate409Response.md +26 -0
- package/docs/CuponsWebhookRequest.md +26 -0
- package/docs/DocumentRulesApi.md +173 -0
- package/docs/DocumentRulesIndex200Response.md +26 -0
- package/docs/DocumentRulesIndex200ResponseContent.md +24 -0
- package/docs/DocumentRulesIndex200ResponseContentRegulationsInner.md +24 -0
- package/docs/DocumentRulesIndex400Response.md +26 -0
- package/docs/DocumentRulesIndex401Response.md +26 -0
- package/docs/DocumentRulesRegulationDelete200Response.md +24 -0
- package/docs/DocumentRulesRegulationDelete400Response.md +26 -0
- package/docs/DocumentRulesRegulationDelete401Response.md +26 -0
- package/docs/DocumentRulesUpdate200Response.md +26 -0
- package/docs/DocumentRulesUpdate400Response.md +26 -0
- package/docs/DocumentRulesUpdate401Response.md +26 -0
- package/docs/DocumentRulesUpdateRequest.md +24 -0
- package/docs/DocumentRulesUpdateRequestRegulationsInner.md +24 -0
- package/docs/FAQApi.md +236 -0
- package/docs/FaqCreate200Response.md +26 -0
- package/docs/FaqCreate400Response.md +26 -0
- package/docs/FaqCreate401Response.md +26 -0
- package/docs/FaqCreateRequestInner.md +22 -0
- package/docs/FaqDelete200Response.md +26 -0
- package/docs/FaqDelete400Response.md +26 -0
- package/docs/FaqDelete401Response.md +26 -0
- package/docs/FaqIndex200Response.md +28 -0
- package/docs/FaqIndex200ResponseContentInner.md +22 -0
- package/docs/FaqIndex400Response.md +26 -0
- package/docs/FaqIndex401Response.md +26 -0
- package/docs/FaqUpdate200Response.md +26 -0
- package/docs/FaqUpdate400Response.md +26 -0
- package/docs/FaqUpdate401Response.md +26 -0
- package/docs/FilesApi.md +56 -0
- package/docs/Login200Response.md +24 -0
- package/docs/Login401Response.md +20 -0
- package/docs/LoginRequest.md +22 -0
- package/docs/LuckyNumber.md +32 -0
- package/docs/LuckyNumbersAddCustom200Response.md +26 -0
- package/docs/LuckyNumbersAddCustom400Response.md +26 -0
- package/docs/LuckyNumbersAddCustom401Response.md +26 -0
- package/docs/LuckyNumbersApi.md +202 -0
- package/docs/LuckyNumbersRemove200Response.md +26 -0
- package/docs/LuckyNumbersRemove400Response.md +26 -0
- package/docs/LuckyNumbersRemove401Response.md +26 -0
- package/docs/LuckyNumbersRemoveRequest.md +20 -0
- package/docs/LuckyNumbersRemoveRequestLuckyNumbersInner.md +22 -0
- package/docs/LuckyNumbersSearch200Response.md +28 -0
- package/docs/LuckyNumbersSearch400Response.md +26 -0
- package/docs/LuckyNumbersSearch401Response.md +26 -0
- package/docs/Me200Response.md +28 -0
- package/docs/Me200ResponsePromotionsInner.md +22 -0
- package/docs/Metrics200Response.md +26 -0
- package/docs/Metrics200ResponseContent.md +40 -0
- package/docs/Metrics200ResponseContentUsersInner.md +22 -0
- package/docs/Metrics400Response.md +20 -0
- package/docs/MetricsApi.md +75 -0
- package/docs/Order.md +42 -0
- package/docs/OrderCustomDataInner.md +26 -0
- package/docs/OrdersApi.md +204 -0
- package/docs/OrdersCreate200Response.md +26 -0
- package/docs/OrdersCreate400Response.md +26 -0
- package/docs/OrdersCreate401Response.md +26 -0
- package/docs/OrdersCreateRequest.md +20 -0
- package/docs/OrdersIndex200Response.md +28 -0
- package/docs/OrdersIndex400Response.md +26 -0
- package/docs/OrdersIndex401Response.md +26 -0
- package/docs/OrdersUpdate200Response.md +26 -0
- package/docs/OrdersUpdate400Response.md +26 -0
- package/docs/OrdersUpdate401Response.md +26 -0
- package/docs/Pagination.md +42 -0
- package/docs/PaginationLinksInner.md +24 -0
- package/docs/Product.md +32 -0
- package/docs/ProductsApi.md +242 -0
- package/docs/ProductsCreate200Response.md +26 -0
- package/docs/ProductsCreate401Response.md +26 -0
- package/docs/ProductsCreate409Response.md +26 -0
- package/docs/ProductsCreateRequest.md +20 -0
- package/docs/ProductsDelete200Response.md +26 -0
- package/docs/ProductsDelete400Response.md +26 -0
- package/docs/ProductsDelete401Response.md +26 -0
- package/docs/ProductsIndex200Response.md +28 -0
- package/docs/ProductsIndex400Response.md +26 -0
- package/docs/ProductsIndex401Response.md +26 -0
- package/docs/ProductsUpdate201Response.md +26 -0
- package/docs/ProductsUpdate401Response.md +26 -0
- package/docs/ProductsUpdate409Response.md +26 -0
- package/docs/Promotion.md +34 -0
- package/docs/PromotionDataApi.md +60 -0
- package/docs/PromotionDatetime.md +28 -0
- package/docs/PromotionDatetimeActive.md +22 -0
- package/docs/PromotionDatetimeDelivery.md +20 -0
- package/docs/PromotionDatetimeParticipate.md +22 -0
- package/docs/PromotionDatetimeShowAwardeds.md +20 -0
- package/docs/Raffle.md +44 -0
- package/docs/RafflesApi.md +309 -0
- package/docs/RafflesCreate200Response.md +26 -0
- package/docs/RafflesCreate400Response.md +26 -0
- package/docs/RafflesCreate401Response.md +26 -0
- package/docs/RafflesCreateRequestInner.md +30 -0
- package/docs/RafflesDelete200Response.md +26 -0
- package/docs/RafflesDelete400Response.md +26 -0
- package/docs/RafflesDelete401Response.md +26 -0
- package/docs/RafflesIndex200Response.md +28 -0
- package/docs/RafflesIndex400Response.md +26 -0
- package/docs/RafflesIndex401Response.md +26 -0
- package/docs/RafflesReportRequest.md +20 -0
- package/docs/RafflesUpdate200Response.md +26 -0
- package/docs/RafflesUpdate400Response.md +26 -0
- package/docs/RafflesUpdate401Response.md +26 -0
- package/docs/RafflesUpdateRequestInner.md +32 -0
- package/docs/SerieNumber.md +24 -0
- package/docs/SettingsApi.md +65 -0
- package/docs/Store.md +38 -0
- package/docs/StoresApi.md +242 -0
- package/docs/StoresCreate200Response.md +26 -0
- package/docs/StoresCreate401Response.md +26 -0
- package/docs/StoresCreate409Response.md +26 -0
- package/docs/StoresCreateRequest.md +20 -0
- package/docs/StoresDelete200Response.md +26 -0
- package/docs/StoresDelete400Response.md +26 -0
- package/docs/StoresDelete401Response.md +26 -0
- package/docs/StoresIndex200Response.md +28 -0
- package/docs/StoresIndex400Response.md +26 -0
- package/docs/StoresIndex401Response.md +26 -0
- package/docs/StoresUpdate201Response.md +26 -0
- package/docs/StoresUpdate401Response.md +26 -0
- package/docs/StoresUpdate409Response.md +26 -0
- package/docs/Ticket.md +48 -0
- package/docs/TicketsApi.md +249 -0
- package/docs/TicketsCreate200Response.md +26 -0
- package/docs/TicketsCreate400Response.md +26 -0
- package/docs/TicketsCreate401Response.md +26 -0
- package/docs/TicketsDelete200Response.md +26 -0
- package/docs/TicketsDelete400Response.md +26 -0
- package/docs/TicketsDelete401Response.md +26 -0
- package/docs/TicketsIndex200Response.md +28 -0
- package/docs/TicketsIndex400Response.md +26 -0
- package/docs/TicketsIndex401Response.md +26 -0
- package/docs/TicketsUpdate200Response.md +26 -0
- package/docs/TicketsUpdate400Response.md +26 -0
- package/docs/User.md +56 -0
- package/docs/UserCustomData.md +24 -0
- package/docs/UserWebhookError.md +26 -0
- package/docs/UserWebhookErrorContent.md +58 -0
- package/docs/UserWebhookErrorContentAllOfErrors.md +22 -0
- package/docs/UserWebhookSuccess.md +26 -0
- package/docs/UsersApi.md +304 -0
- package/docs/UsersCreate201Response.md +26 -0
- package/docs/UsersCreate401Response.md +26 -0
- package/docs/UsersCreate409Response.md +26 -0
- package/docs/UsersCreateRequest.md +20 -0
- package/docs/UsersDelete200Response.md +26 -0
- package/docs/UsersDelete400Response.md +26 -0
- package/docs/UsersDelete401Response.md +26 -0
- package/docs/UsersIndex200Response.md +28 -0
- package/docs/UsersUpdate201Response.md +26 -0
- package/docs/UsersWebhook200Response.md +20 -0
- package/docs/UsersWebhookRequest.md +26 -0
- package/git_push.sh +57 -0
- package/index.ts +18 -0
- package/package.json +31 -0
- package/tsconfig.json +21 -0
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# CouponWebhookErrorContent
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **number** | | [optional] [default to undefined]
|
|
9
|
+
**user_id** | **number** | | [default to undefined]
|
|
10
|
+
**purchase_date** | **string** | | [default to undefined]
|
|
11
|
+
**cnpj** | **string** | | [default to undefined]
|
|
12
|
+
**code** | **string** | | [default to undefined]
|
|
13
|
+
**cost** | **number** | | [default to undefined]
|
|
14
|
+
**serie** | **number** | | [optional] [default to undefined]
|
|
15
|
+
**products** | [**Array<CouponProductsInner>**](CouponProductsInner.md) | | [optional] [default to undefined]
|
|
16
|
+
**promotion_codes** | **Array<string>** | | [optional] [default to undefined]
|
|
17
|
+
**errors** | [**CouponWebhookErrorContentAllOfErrors**](CouponWebhookErrorContentAllOfErrors.md) | | [optional] [default to undefined]
|
|
18
|
+
|
|
19
|
+
## Example
|
|
20
|
+
|
|
21
|
+
```typescript
|
|
22
|
+
import { CouponWebhookErrorContent } from '@handsondigital/idplugger-promotion';
|
|
23
|
+
|
|
24
|
+
const instance: CouponWebhookErrorContent = {
|
|
25
|
+
id,
|
|
26
|
+
user_id,
|
|
27
|
+
purchase_date,
|
|
28
|
+
cnpj,
|
|
29
|
+
code,
|
|
30
|
+
cost,
|
|
31
|
+
serie,
|
|
32
|
+
products,
|
|
33
|
+
promotion_codes,
|
|
34
|
+
errors,
|
|
35
|
+
};
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# CouponWebhookErrorContentAllOfErrors
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**name** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**message** | **string** | | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { CouponWebhookErrorContentAllOfErrors } from '@handsondigital/idplugger-promotion';
|
|
15
|
+
|
|
16
|
+
const instance: CouponWebhookErrorContentAllOfErrors = {
|
|
17
|
+
name,
|
|
18
|
+
message,
|
|
19
|
+
};
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# CouponWebhookSuccess
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**entity** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**action** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**result** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**content** | [**CouponsIndex200ResponseContentInner**](CouponsIndex200ResponseContentInner.md) | | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { CouponWebhookSuccess } from '@handsondigital/idplugger-promotion';
|
|
17
|
+
|
|
18
|
+
const instance: CouponWebhookSuccess = {
|
|
19
|
+
entity,
|
|
20
|
+
action,
|
|
21
|
+
result,
|
|
22
|
+
content,
|
|
23
|
+
};
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,311 @@
|
|
|
1
|
+
# CouponsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**couponsCreate**](#couponscreate) | **POST** /v3/promotion/{promotion_id}/users/{user_id}/coupons | Cadastra um cupom para um usuário cadastrado na promoção|
|
|
8
|
+
|[**couponsDelete**](#couponsdelete) | **DELETE** /v3/promotion/{promotion_id}/users/{user_id}/coupons/{coupon_id} | Exclui um cupom de um usuário cadastrado na promoção|
|
|
9
|
+
|[**couponsIndex**](#couponsindex) | **GET** /v3/promotion/{promotion_id}/users/{user_id}/coupons | Busca por cupons de um usuário cadastrado na promoção|
|
|
10
|
+
|[**couponsUpdate**](#couponsupdate) | **PATCH** /v3/promotion/{promotion_id}/users/{user_id}/coupons | Cadastra ou atualiza um cupom para um usuário cadastrado na promoção|
|
|
11
|
+
|[**cuponsWebhook**](#cuponswebhook) | **POST** /webhook-do-cupom | Webhook de resposta ao registro de cupons|
|
|
12
|
+
|
|
13
|
+
# **couponsCreate**
|
|
14
|
+
> CouponsCreate200Response couponsCreate()
|
|
15
|
+
|
|
16
|
+
Os registros de cupons são processados individualmente e o resultado é enviado via webhook
|
|
17
|
+
|
|
18
|
+
### Example
|
|
19
|
+
|
|
20
|
+
```typescript
|
|
21
|
+
import {
|
|
22
|
+
CouponsApi,
|
|
23
|
+
Configuration,
|
|
24
|
+
CouponsCreateRequest
|
|
25
|
+
} from '@handsondigital/idplugger-promotion';
|
|
26
|
+
|
|
27
|
+
const configuration = new Configuration();
|
|
28
|
+
const apiInstance = new CouponsApi(configuration);
|
|
29
|
+
|
|
30
|
+
let promotionId: string; //ID da promoção (default to undefined)
|
|
31
|
+
let userId: number; //ID do usuário (default to undefined)
|
|
32
|
+
let couponsCreateRequest: CouponsCreateRequest; // (optional)
|
|
33
|
+
|
|
34
|
+
const { status, data } = await apiInstance.couponsCreate(
|
|
35
|
+
promotionId,
|
|
36
|
+
userId,
|
|
37
|
+
couponsCreateRequest
|
|
38
|
+
);
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
### Parameters
|
|
42
|
+
|
|
43
|
+
|Name | Type | Description | Notes|
|
|
44
|
+
|------------- | ------------- | ------------- | -------------|
|
|
45
|
+
| **couponsCreateRequest** | **CouponsCreateRequest**| | |
|
|
46
|
+
| **promotionId** | [**string**] | ID da promoção | defaults to undefined|
|
|
47
|
+
| **userId** | [**number**] | ID do usuário | defaults to undefined|
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
### Return type
|
|
51
|
+
|
|
52
|
+
**CouponsCreate200Response**
|
|
53
|
+
|
|
54
|
+
### Authorization
|
|
55
|
+
|
|
56
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
57
|
+
|
|
58
|
+
### HTTP request headers
|
|
59
|
+
|
|
60
|
+
- **Content-Type**: application/json
|
|
61
|
+
- **Accept**: application/json
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
### HTTP response details
|
|
65
|
+
| Status code | Description | Response headers |
|
|
66
|
+
|-------------|-------------|------------------|
|
|
67
|
+
|**200** | success | - |
|
|
68
|
+
|**401** | unauthorized | - |
|
|
69
|
+
|**409** | failed | - |
|
|
70
|
+
|
|
71
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
72
|
+
|
|
73
|
+
# **couponsDelete**
|
|
74
|
+
> CouponsDelete200Response couponsDelete()
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
### Example
|
|
78
|
+
|
|
79
|
+
```typescript
|
|
80
|
+
import {
|
|
81
|
+
CouponsApi,
|
|
82
|
+
Configuration
|
|
83
|
+
} from '@handsondigital/idplugger-promotion';
|
|
84
|
+
|
|
85
|
+
const configuration = new Configuration();
|
|
86
|
+
const apiInstance = new CouponsApi(configuration);
|
|
87
|
+
|
|
88
|
+
let promotionId: string; //ID da promoção (default to undefined)
|
|
89
|
+
let userId: string; //ID do usuário (default to undefined)
|
|
90
|
+
let couponId: string; //ID do cupom (default to undefined)
|
|
91
|
+
|
|
92
|
+
const { status, data } = await apiInstance.couponsDelete(
|
|
93
|
+
promotionId,
|
|
94
|
+
userId,
|
|
95
|
+
couponId
|
|
96
|
+
);
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
### Parameters
|
|
100
|
+
|
|
101
|
+
|Name | Type | Description | Notes|
|
|
102
|
+
|------------- | ------------- | ------------- | -------------|
|
|
103
|
+
| **promotionId** | [**string**] | ID da promoção | defaults to undefined|
|
|
104
|
+
| **userId** | [**string**] | ID do usuário | defaults to undefined|
|
|
105
|
+
| **couponId** | [**string**] | ID do cupom | defaults to undefined|
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
### Return type
|
|
109
|
+
|
|
110
|
+
**CouponsDelete200Response**
|
|
111
|
+
|
|
112
|
+
### Authorization
|
|
113
|
+
|
|
114
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
115
|
+
|
|
116
|
+
### HTTP request headers
|
|
117
|
+
|
|
118
|
+
- **Content-Type**: Not defined
|
|
119
|
+
- **Accept**: application/json
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
### HTTP response details
|
|
123
|
+
| Status code | Description | Response headers |
|
|
124
|
+
|-------------|-------------|------------------|
|
|
125
|
+
|**200** | success | - |
|
|
126
|
+
|**400** | failed | - |
|
|
127
|
+
|**401** | unauthorized | - |
|
|
128
|
+
|
|
129
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
130
|
+
|
|
131
|
+
# **couponsIndex**
|
|
132
|
+
> CouponsIndex200Response couponsIndex()
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
### Example
|
|
136
|
+
|
|
137
|
+
```typescript
|
|
138
|
+
import {
|
|
139
|
+
CouponsApi,
|
|
140
|
+
Configuration
|
|
141
|
+
} from '@handsondigital/idplugger-promotion';
|
|
142
|
+
|
|
143
|
+
const configuration = new Configuration();
|
|
144
|
+
const apiInstance = new CouponsApi(configuration);
|
|
145
|
+
|
|
146
|
+
let promotionId: string; //ID da promoção (default to undefined)
|
|
147
|
+
let userId: number; //ID do usuário (default to undefined)
|
|
148
|
+
let fields: string; //Campos a serem retornados (optional) (default to undefined)
|
|
149
|
+
let include: string; //Campos a serem retornados (optional) (default to undefined)
|
|
150
|
+
let id: string; //Id do cupom (optional) (default to undefined)
|
|
151
|
+
let userId2: string; //Id do usuário associado ao cupom (optional) (default to undefined)
|
|
152
|
+
let externalUserId: string; //Id externo do usuário associado ao cupom (optional) (default to undefined)
|
|
153
|
+
|
|
154
|
+
const { status, data } = await apiInstance.couponsIndex(
|
|
155
|
+
promotionId,
|
|
156
|
+
userId,
|
|
157
|
+
fields,
|
|
158
|
+
include,
|
|
159
|
+
id,
|
|
160
|
+
userId2,
|
|
161
|
+
externalUserId
|
|
162
|
+
);
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
### Parameters
|
|
166
|
+
|
|
167
|
+
|Name | Type | Description | Notes|
|
|
168
|
+
|------------- | ------------- | ------------- | -------------|
|
|
169
|
+
| **promotionId** | [**string**] | ID da promoção | defaults to undefined|
|
|
170
|
+
| **userId** | [**number**] | ID do usuário | defaults to undefined|
|
|
171
|
+
| **fields** | [**string**] | Campos a serem retornados | (optional) defaults to undefined|
|
|
172
|
+
| **include** | [**string**] | Campos a serem retornados | (optional) defaults to undefined|
|
|
173
|
+
| **id** | [**string**] | Id do cupom | (optional) defaults to undefined|
|
|
174
|
+
| **userId2** | [**string**] | Id do usuário associado ao cupom | (optional) defaults to undefined|
|
|
175
|
+
| **externalUserId** | [**string**] | Id externo do usuário associado ao cupom | (optional) defaults to undefined|
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
### Return type
|
|
179
|
+
|
|
180
|
+
**CouponsIndex200Response**
|
|
181
|
+
|
|
182
|
+
### Authorization
|
|
183
|
+
|
|
184
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
185
|
+
|
|
186
|
+
### HTTP request headers
|
|
187
|
+
|
|
188
|
+
- **Content-Type**: Not defined
|
|
189
|
+
- **Accept**: application/json
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
### HTTP response details
|
|
193
|
+
| Status code | Description | Response headers |
|
|
194
|
+
|-------------|-------------|------------------|
|
|
195
|
+
|**200** | success | - |
|
|
196
|
+
|**400** | failed | - |
|
|
197
|
+
|**401** | unauthorized | - |
|
|
198
|
+
|
|
199
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
200
|
+
|
|
201
|
+
# **couponsUpdate**
|
|
202
|
+
> CouponsUpdate201Response couponsUpdate()
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
### Example
|
|
206
|
+
|
|
207
|
+
```typescript
|
|
208
|
+
import {
|
|
209
|
+
CouponsApi,
|
|
210
|
+
Configuration,
|
|
211
|
+
CouponsCreateRequest
|
|
212
|
+
} from '@handsondigital/idplugger-promotion';
|
|
213
|
+
|
|
214
|
+
const configuration = new Configuration();
|
|
215
|
+
const apiInstance = new CouponsApi(configuration);
|
|
216
|
+
|
|
217
|
+
let promotionId: string; //ID da promoção (default to undefined)
|
|
218
|
+
let userId: number; //ID do usuário (default to undefined)
|
|
219
|
+
let couponsCreateRequest: CouponsCreateRequest; // (optional)
|
|
220
|
+
|
|
221
|
+
const { status, data } = await apiInstance.couponsUpdate(
|
|
222
|
+
promotionId,
|
|
223
|
+
userId,
|
|
224
|
+
couponsCreateRequest
|
|
225
|
+
);
|
|
226
|
+
```
|
|
227
|
+
|
|
228
|
+
### Parameters
|
|
229
|
+
|
|
230
|
+
|Name | Type | Description | Notes|
|
|
231
|
+
|------------- | ------------- | ------------- | -------------|
|
|
232
|
+
| **couponsCreateRequest** | **CouponsCreateRequest**| | |
|
|
233
|
+
| **promotionId** | [**string**] | ID da promoção | defaults to undefined|
|
|
234
|
+
| **userId** | [**number**] | ID do usuário | defaults to undefined|
|
|
235
|
+
|
|
236
|
+
|
|
237
|
+
### Return type
|
|
238
|
+
|
|
239
|
+
**CouponsUpdate201Response**
|
|
240
|
+
|
|
241
|
+
### Authorization
|
|
242
|
+
|
|
243
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
244
|
+
|
|
245
|
+
### HTTP request headers
|
|
246
|
+
|
|
247
|
+
- **Content-Type**: application/json
|
|
248
|
+
- **Accept**: application/json
|
|
249
|
+
|
|
250
|
+
|
|
251
|
+
### HTTP response details
|
|
252
|
+
| Status code | Description | Response headers |
|
|
253
|
+
|-------------|-------------|------------------|
|
|
254
|
+
|**201** | success | - |
|
|
255
|
+
|**401** | unauthorized | - |
|
|
256
|
+
|**409** | failed | - |
|
|
257
|
+
|
|
258
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
259
|
+
|
|
260
|
+
# **cuponsWebhook**
|
|
261
|
+
> UsersWebhook200Response cuponsWebhook()
|
|
262
|
+
|
|
263
|
+
Este endpoint é apenas um exemplo de como você receberá em seu webhook a notificação do registro de um cupons na promoção. Em **Request body** clique em **Schema** para ver todos as variações de requisições que a API faz. Alguns erros são apenas informativos de que alguma parte não essencial do cadastro não funcionou. Para identificar se o cupons foi cadastrado ou não, verifique se o parâmetro `content.id` está incluso na requisição e é um número maior que zero.
|
|
264
|
+
|
|
265
|
+
### Example
|
|
266
|
+
|
|
267
|
+
```typescript
|
|
268
|
+
import {
|
|
269
|
+
CouponsApi,
|
|
270
|
+
Configuration,
|
|
271
|
+
CuponsWebhookRequest
|
|
272
|
+
} from '@handsondigital/idplugger-promotion';
|
|
273
|
+
|
|
274
|
+
const configuration = new Configuration();
|
|
275
|
+
const apiInstance = new CouponsApi(configuration);
|
|
276
|
+
|
|
277
|
+
let cuponsWebhookRequest: CuponsWebhookRequest; // (optional)
|
|
278
|
+
|
|
279
|
+
const { status, data } = await apiInstance.cuponsWebhook(
|
|
280
|
+
cuponsWebhookRequest
|
|
281
|
+
);
|
|
282
|
+
```
|
|
283
|
+
|
|
284
|
+
### Parameters
|
|
285
|
+
|
|
286
|
+
|Name | Type | Description | Notes|
|
|
287
|
+
|------------- | ------------- | ------------- | -------------|
|
|
288
|
+
| **cuponsWebhookRequest** | **CuponsWebhookRequest**| | |
|
|
289
|
+
|
|
290
|
+
|
|
291
|
+
### Return type
|
|
292
|
+
|
|
293
|
+
**UsersWebhook200Response**
|
|
294
|
+
|
|
295
|
+
### Authorization
|
|
296
|
+
|
|
297
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
298
|
+
|
|
299
|
+
### HTTP request headers
|
|
300
|
+
|
|
301
|
+
- **Content-Type**: application/json
|
|
302
|
+
- **Accept**: application/json
|
|
303
|
+
|
|
304
|
+
|
|
305
|
+
### HTTP response details
|
|
306
|
+
| Status code | Description | Response headers |
|
|
307
|
+
|-------------|-------------|------------------|
|
|
308
|
+
|**200** | success | - |
|
|
309
|
+
|
|
310
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
311
|
+
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# CouponsCreate200Response
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**entity** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**action** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**result** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**content** | **string** | | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { CouponsCreate200Response } from '@handsondigital/idplugger-promotion';
|
|
17
|
+
|
|
18
|
+
const instance: CouponsCreate200Response = {
|
|
19
|
+
entity,
|
|
20
|
+
action,
|
|
21
|
+
result,
|
|
22
|
+
content,
|
|
23
|
+
};
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# CouponsCreate401Response
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**entity** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**action** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**result** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**message** | **string** | | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { CouponsCreate401Response } from '@handsondigital/idplugger-promotion';
|
|
17
|
+
|
|
18
|
+
const instance: CouponsCreate401Response = {
|
|
19
|
+
entity,
|
|
20
|
+
action,
|
|
21
|
+
result,
|
|
22
|
+
message,
|
|
23
|
+
};
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# CouponsCreate409Response
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**entity** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**action** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**result** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**message** | **string** | | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { CouponsCreate409Response } from '@handsondigital/idplugger-promotion';
|
|
17
|
+
|
|
18
|
+
const instance: CouponsCreate409Response = {
|
|
19
|
+
entity,
|
|
20
|
+
action,
|
|
21
|
+
result,
|
|
22
|
+
message,
|
|
23
|
+
};
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# CouponsCreateRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**coupons** | [**Array<Coupon>**](Coupon.md) | | [optional] [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { CouponsCreateRequest } from '@handsondigital/idplugger-promotion';
|
|
14
|
+
|
|
15
|
+
const instance: CouponsCreateRequest = {
|
|
16
|
+
coupons,
|
|
17
|
+
};
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# CouponsDelete200Response
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**entity** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**action** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**result** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**content** | **string** | | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { CouponsDelete200Response } from '@handsondigital/idplugger-promotion';
|
|
17
|
+
|
|
18
|
+
const instance: CouponsDelete200Response = {
|
|
19
|
+
entity,
|
|
20
|
+
action,
|
|
21
|
+
result,
|
|
22
|
+
content,
|
|
23
|
+
};
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# CouponsDelete400Response
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**entity** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**action** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**result** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**message** | **string** | | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { CouponsDelete400Response } from '@handsondigital/idplugger-promotion';
|
|
17
|
+
|
|
18
|
+
const instance: CouponsDelete400Response = {
|
|
19
|
+
entity,
|
|
20
|
+
action,
|
|
21
|
+
result,
|
|
22
|
+
message,
|
|
23
|
+
};
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# CouponsDelete401Response
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**entity** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**action** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**result** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**message** | **string** | | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { CouponsDelete401Response } from '@handsondigital/idplugger-promotion';
|
|
17
|
+
|
|
18
|
+
const instance: CouponsDelete401Response = {
|
|
19
|
+
entity,
|
|
20
|
+
action,
|
|
21
|
+
result,
|
|
22
|
+
message,
|
|
23
|
+
};
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# CouponsIndex200Response
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**entity** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**action** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**result** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**paging** | [**Array<Pagination>**](Pagination.md) | | [optional] [default to undefined]
|
|
12
|
+
**content** | [**Array<CouponsIndex200ResponseContentInner>**](CouponsIndex200ResponseContentInner.md) | | [optional] [default to undefined]
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import { CouponsIndex200Response } from '@handsondigital/idplugger-promotion';
|
|
18
|
+
|
|
19
|
+
const instance: CouponsIndex200Response = {
|
|
20
|
+
entity,
|
|
21
|
+
action,
|
|
22
|
+
result,
|
|
23
|
+
paging,
|
|
24
|
+
content,
|
|
25
|
+
};
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# CouponsIndex200ResponseContentInner
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **number** | | [optional] [default to undefined]
|
|
9
|
+
**user_id** | **number** | | [default to undefined]
|
|
10
|
+
**purchase_date** | **string** | | [default to undefined]
|
|
11
|
+
**cnpj** | **string** | | [default to undefined]
|
|
12
|
+
**code** | **string** | | [default to undefined]
|
|
13
|
+
**cost** | **number** | | [default to undefined]
|
|
14
|
+
**serie** | **number** | | [optional] [default to undefined]
|
|
15
|
+
**products** | [**Array<CouponProductsInner>**](CouponProductsInner.md) | | [optional] [default to undefined]
|
|
16
|
+
**promotion_codes** | **Array<string>** | | [optional] [default to undefined]
|
|
17
|
+
**lucky_numbers** | [**Array<LuckyNumber>**](LuckyNumber.md) | | [optional] [default to undefined]
|
|
18
|
+
|
|
19
|
+
## Example
|
|
20
|
+
|
|
21
|
+
```typescript
|
|
22
|
+
import { CouponsIndex200ResponseContentInner } from '@handsondigital/idplugger-promotion';
|
|
23
|
+
|
|
24
|
+
const instance: CouponsIndex200ResponseContentInner = {
|
|
25
|
+
id,
|
|
26
|
+
user_id,
|
|
27
|
+
purchase_date,
|
|
28
|
+
cnpj,
|
|
29
|
+
code,
|
|
30
|
+
cost,
|
|
31
|
+
serie,
|
|
32
|
+
products,
|
|
33
|
+
promotion_codes,
|
|
34
|
+
lucky_numbers,
|
|
35
|
+
};
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# CouponsIndex400Response
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**entity** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**action** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**result** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**message** | **string** | | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { CouponsIndex400Response } from '@handsondigital/idplugger-promotion';
|
|
17
|
+
|
|
18
|
+
const instance: CouponsIndex400Response = {
|
|
19
|
+
entity,
|
|
20
|
+
action,
|
|
21
|
+
result,
|
|
22
|
+
message,
|
|
23
|
+
};
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|