@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,40 @@
|
|
|
1
|
+
# Metrics200ResponseContent
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**users** | [**Array<Metrics200ResponseContentUsersInner>**](Metrics200ResponseContentUsersInner.md) | | [optional] [default to undefined]
|
|
9
|
+
**coupons** | [**Array<Metrics200ResponseContentUsersInner>**](Metrics200ResponseContentUsersInner.md) | | [optional] [default to undefined]
|
|
10
|
+
**lucky_numbers** | [**Array<Metrics200ResponseContentUsersInner>**](Metrics200ResponseContentUsersInner.md) | | [optional] [default to undefined]
|
|
11
|
+
**emails** | [**Array<Metrics200ResponseContentUsersInner>**](Metrics200ResponseContentUsersInner.md) | | [optional] [default to undefined]
|
|
12
|
+
**tickets** | [**Array<Metrics200ResponseContentUsersInner>**](Metrics200ResponseContentUsersInner.md) | | [optional] [default to undefined]
|
|
13
|
+
**tickets_closed** | [**Array<Metrics200ResponseContentUsersInner>**](Metrics200ResponseContentUsersInner.md) | | [optional] [default to undefined]
|
|
14
|
+
**raffles** | [**Array<Metrics200ResponseContentUsersInner>**](Metrics200ResponseContentUsersInner.md) | | [optional] [default to undefined]
|
|
15
|
+
**raffles_closed** | [**Array<Metrics200ResponseContentUsersInner>**](Metrics200ResponseContentUsersInner.md) | | [optional] [default to undefined]
|
|
16
|
+
**awards_delivered** | [**Array<Metrics200ResponseContentUsersInner>**](Metrics200ResponseContentUsersInner.md) | | [optional] [default to undefined]
|
|
17
|
+
**instant_awards** | [**Array<Metrics200ResponseContentUsersInner>**](Metrics200ResponseContentUsersInner.md) | | [optional] [default to undefined]
|
|
18
|
+
**instant_awards_delivered** | [**Array<Metrics200ResponseContentUsersInner>**](Metrics200ResponseContentUsersInner.md) | | [optional] [default to undefined]
|
|
19
|
+
|
|
20
|
+
## Example
|
|
21
|
+
|
|
22
|
+
```typescript
|
|
23
|
+
import { Metrics200ResponseContent } from '@handsondigital/idplugger-promotion';
|
|
24
|
+
|
|
25
|
+
const instance: Metrics200ResponseContent = {
|
|
26
|
+
users,
|
|
27
|
+
coupons,
|
|
28
|
+
lucky_numbers,
|
|
29
|
+
emails,
|
|
30
|
+
tickets,
|
|
31
|
+
tickets_closed,
|
|
32
|
+
raffles,
|
|
33
|
+
raffles_closed,
|
|
34
|
+
awards_delivered,
|
|
35
|
+
instant_awards,
|
|
36
|
+
instant_awards_delivered,
|
|
37
|
+
};
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
[[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
|
+
# Metrics200ResponseContentUsersInner
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**value** | **number** | | [optional] [default to undefined]
|
|
9
|
+
**time** | **string** | | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { Metrics200ResponseContentUsersInner } from '@handsondigital/idplugger-promotion';
|
|
15
|
+
|
|
16
|
+
const instance: Metrics200ResponseContentUsersInner = {
|
|
17
|
+
value,
|
|
18
|
+
time,
|
|
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,20 @@
|
|
|
1
|
+
# Metrics400Response
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**message** | **string** | | [optional] [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { Metrics400Response } from '@handsondigital/idplugger-promotion';
|
|
14
|
+
|
|
15
|
+
const instance: Metrics400Response = {
|
|
16
|
+
message,
|
|
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,75 @@
|
|
|
1
|
+
# MetricsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**metrics**](#metrics) | **GET** /v3/promotion/{promotion_id}/metrics | Devolve as métricas da promoção|
|
|
8
|
+
|
|
9
|
+
# **metrics**
|
|
10
|
+
> Metrics200Response metrics()
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import {
|
|
17
|
+
MetricsApi,
|
|
18
|
+
Configuration
|
|
19
|
+
} from '@handsondigital/idplugger-promotion';
|
|
20
|
+
|
|
21
|
+
const configuration = new Configuration();
|
|
22
|
+
const apiInstance = new MetricsApi(configuration);
|
|
23
|
+
|
|
24
|
+
let promotionId: string; //ID da promoção (default to undefined)
|
|
25
|
+
let keys: Array<'users' | 'coupons' | 'lucky_numbers' | 'emails' | 'tickets' | 'tickets_closed' | 'raffles' | 'raffles_closed' | 'awards_delivered' | 'instant_awards' | 'instant_awards_delivered'>; //Chaves das métricas que deseja consultar. (default to undefined)
|
|
26
|
+
let startDate: string; //Data inicial para filtrar as métricas (optional) (default to undefined)
|
|
27
|
+
let endDate: string; //Data final para filtrar as métricas (optional) (default to undefined)
|
|
28
|
+
let limit: number; //Limite de resultados (optional) (default to undefined)
|
|
29
|
+
let resolution: string; //Resolução das métricas. Exemplo: `minute`, `hour`, `day` (optional) (default to undefined)
|
|
30
|
+
|
|
31
|
+
const { status, data } = await apiInstance.metrics(
|
|
32
|
+
promotionId,
|
|
33
|
+
keys,
|
|
34
|
+
startDate,
|
|
35
|
+
endDate,
|
|
36
|
+
limit,
|
|
37
|
+
resolution
|
|
38
|
+
);
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
### Parameters
|
|
42
|
+
|
|
43
|
+
|Name | Type | Description | Notes|
|
|
44
|
+
|------------- | ------------- | ------------- | -------------|
|
|
45
|
+
| **promotionId** | [**string**] | ID da promoção | defaults to undefined|
|
|
46
|
+
| **keys** | **Array<'users' | 'coupons' | 'lucky_numbers' | 'emails' | 'tickets' | 'tickets_closed' | 'raffles' | 'raffles_closed' | 'awards_delivered' | 'instant_awards' | 'instant_awards_delivered'>** | Chaves das métricas que deseja consultar. | defaults to undefined|
|
|
47
|
+
| **startDate** | [**string**] | Data inicial para filtrar as métricas | (optional) defaults to undefined|
|
|
48
|
+
| **endDate** | [**string**] | Data final para filtrar as métricas | (optional) defaults to undefined|
|
|
49
|
+
| **limit** | [**number**] | Limite de resultados | (optional) defaults to undefined|
|
|
50
|
+
| **resolution** | [**string**] | Resolução das métricas. Exemplo: `minute`, `hour`, `day` | (optional) defaults to undefined|
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
### Return type
|
|
54
|
+
|
|
55
|
+
**Metrics200Response**
|
|
56
|
+
|
|
57
|
+
### Authorization
|
|
58
|
+
|
|
59
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
60
|
+
|
|
61
|
+
### HTTP request headers
|
|
62
|
+
|
|
63
|
+
- **Content-Type**: Not defined
|
|
64
|
+
- **Accept**: application/json
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
### HTTP response details
|
|
68
|
+
| Status code | Description | Response headers |
|
|
69
|
+
|-------------|-------------|------------------|
|
|
70
|
+
|**200** | success | - |
|
|
71
|
+
|**400** | failed | - |
|
|
72
|
+
|**401** | unauthorized | - |
|
|
73
|
+
|
|
74
|
+
[[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)
|
|
75
|
+
|
package/docs/Order.md
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# Order
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **number** | Id do pedido | [optional] [default to undefined]
|
|
9
|
+
**user_id** | **number** | Id do usuário | [optional] [default to undefined]
|
|
10
|
+
**payment_id** | **string** | Id do pagamento | [optional] [default to undefined]
|
|
11
|
+
**payment_gateway** | **string** | Gateway de pagamento | [optional] [default to undefined]
|
|
12
|
+
**amount** | **number** | Valor total do pedido | [default to undefined]
|
|
13
|
+
**coupon_id** | **number** | Id do cupom gerado pelo pedido | [optional] [default to undefined]
|
|
14
|
+
**status** | **string** | Estado atual do pedido | [optional] [default to StatusEnum_Pending]
|
|
15
|
+
**created_at** | **string** | Data em que o pedido foi criado | [optional] [default to undefined]
|
|
16
|
+
**updated_at** | **string** | Data em que o pedido foi atualizado | [optional] [default to undefined]
|
|
17
|
+
**coupon** | [**Coupon**](Coupon.md) | | [optional] [default to undefined]
|
|
18
|
+
**lucky_numbers** | [**Array<LuckyNumber>**](LuckyNumber.md) | | [optional] [default to undefined]
|
|
19
|
+
**custom_data** | [**Array<OrderCustomDataInner>**](OrderCustomDataInner.md) | | [optional] [default to undefined]
|
|
20
|
+
|
|
21
|
+
## Example
|
|
22
|
+
|
|
23
|
+
```typescript
|
|
24
|
+
import { Order } from '@handsondigital/idplugger-promotion';
|
|
25
|
+
|
|
26
|
+
const instance: Order = {
|
|
27
|
+
id,
|
|
28
|
+
user_id,
|
|
29
|
+
payment_id,
|
|
30
|
+
payment_gateway,
|
|
31
|
+
amount,
|
|
32
|
+
coupon_id,
|
|
33
|
+
status,
|
|
34
|
+
created_at,
|
|
35
|
+
updated_at,
|
|
36
|
+
coupon,
|
|
37
|
+
lucky_numbers,
|
|
38
|
+
custom_data,
|
|
39
|
+
};
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
[[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
|
+
# OrderCustomDataInner
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**key** | **string** | Chave ou identificador da metatag | [optional] [default to undefined]
|
|
9
|
+
**value** | **string** | Valor da metatag | [optional] [default to undefined]
|
|
10
|
+
**type** | **string** | Tipo da metatag (Não obrigatório) | [optional] [default to 'string']
|
|
11
|
+
**group** | **string** | Grupo da metatag (Não obrigatório) | [optional] [default to 'external']
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { OrderCustomDataInner } from '@handsondigital/idplugger-promotion';
|
|
17
|
+
|
|
18
|
+
const instance: OrderCustomDataInner = {
|
|
19
|
+
key,
|
|
20
|
+
value,
|
|
21
|
+
type,
|
|
22
|
+
group,
|
|
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,204 @@
|
|
|
1
|
+
# OrdersApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**ordersCreate**](#orderscreate) | **POST** /v3/promotion/{promotion_id}/users/{user_id}/orders | Cadastra um pedido para um usuário na promoção|
|
|
8
|
+
|[**ordersIndex**](#ordersindex) | **GET** /v3/promotion/{promotion_id}/users/{user_id}/orders | Pesquisa por pedidos na promoção|
|
|
9
|
+
|[**ordersUpdate**](#ordersupdate) | **PATCH** /v3/promotion/{promotion_id}/users/{user_id}/orders | Cadastra ou atualiza um pedido de um usuário na promoção|
|
|
10
|
+
|
|
11
|
+
# **ordersCreate**
|
|
12
|
+
> OrdersCreate200Response ordersCreate()
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import {
|
|
19
|
+
OrdersApi,
|
|
20
|
+
Configuration,
|
|
21
|
+
OrdersCreateRequest
|
|
22
|
+
} from '@handsondigital/idplugger-promotion';
|
|
23
|
+
|
|
24
|
+
const configuration = new Configuration();
|
|
25
|
+
const apiInstance = new OrdersApi(configuration);
|
|
26
|
+
|
|
27
|
+
let promotionId: string; //ID da promoção (default to undefined)
|
|
28
|
+
let userId: string; //ID do usuário (default to undefined)
|
|
29
|
+
let ordersCreateRequest: OrdersCreateRequest; // (optional)
|
|
30
|
+
|
|
31
|
+
const { status, data } = await apiInstance.ordersCreate(
|
|
32
|
+
promotionId,
|
|
33
|
+
userId,
|
|
34
|
+
ordersCreateRequest
|
|
35
|
+
);
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
### Parameters
|
|
39
|
+
|
|
40
|
+
|Name | Type | Description | Notes|
|
|
41
|
+
|------------- | ------------- | ------------- | -------------|
|
|
42
|
+
| **ordersCreateRequest** | **OrdersCreateRequest**| | |
|
|
43
|
+
| **promotionId** | [**string**] | ID da promoção | defaults to undefined|
|
|
44
|
+
| **userId** | [**string**] | ID do usuário | defaults to undefined|
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
### Return type
|
|
48
|
+
|
|
49
|
+
**OrdersCreate200Response**
|
|
50
|
+
|
|
51
|
+
### Authorization
|
|
52
|
+
|
|
53
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
54
|
+
|
|
55
|
+
### HTTP request headers
|
|
56
|
+
|
|
57
|
+
- **Content-Type**: application/json
|
|
58
|
+
- **Accept**: application/json
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
### HTTP response details
|
|
62
|
+
| Status code | Description | Response headers |
|
|
63
|
+
|-------------|-------------|------------------|
|
|
64
|
+
|**200** | success | - |
|
|
65
|
+
|**400** | failed | - |
|
|
66
|
+
|**401** | unauthorized | - |
|
|
67
|
+
|
|
68
|
+
[[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)
|
|
69
|
+
|
|
70
|
+
# **ordersIndex**
|
|
71
|
+
> OrdersIndex200Response ordersIndex()
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
### Example
|
|
75
|
+
|
|
76
|
+
```typescript
|
|
77
|
+
import {
|
|
78
|
+
OrdersApi,
|
|
79
|
+
Configuration
|
|
80
|
+
} from '@handsondigital/idplugger-promotion';
|
|
81
|
+
|
|
82
|
+
const configuration = new Configuration();
|
|
83
|
+
const apiInstance = new OrdersApi(configuration);
|
|
84
|
+
|
|
85
|
+
let promotionId: string; //ID da promoção (default to undefined)
|
|
86
|
+
let userId: string; //ID do usuário (default to undefined)
|
|
87
|
+
let fields: string; //Campos a serem retornados (optional) (default to undefined)
|
|
88
|
+
let include: string; //Campos a serem retornados (optional) (default to undefined)
|
|
89
|
+
let id: string; //Id do pedido (optional) (default to undefined)
|
|
90
|
+
let paymentId: string; //ID do pagamento (optional) (default to undefined)
|
|
91
|
+
let paymentGateway: string; //Gateway de pagamento do pedido (optional) (default to undefined)
|
|
92
|
+
let couponId: string; //ID do cupom do pedido (optional) (default to undefined)
|
|
93
|
+
let status: string; //Status do pedido (optional) (default to undefined)
|
|
94
|
+
|
|
95
|
+
const { status, data } = await apiInstance.ordersIndex(
|
|
96
|
+
promotionId,
|
|
97
|
+
userId,
|
|
98
|
+
fields,
|
|
99
|
+
include,
|
|
100
|
+
id,
|
|
101
|
+
paymentId,
|
|
102
|
+
paymentGateway,
|
|
103
|
+
couponId,
|
|
104
|
+
status
|
|
105
|
+
);
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
### Parameters
|
|
109
|
+
|
|
110
|
+
|Name | Type | Description | Notes|
|
|
111
|
+
|------------- | ------------- | ------------- | -------------|
|
|
112
|
+
| **promotionId** | [**string**] | ID da promoção | defaults to undefined|
|
|
113
|
+
| **userId** | [**string**] | ID do usuário | defaults to undefined|
|
|
114
|
+
| **fields** | [**string**] | Campos a serem retornados | (optional) defaults to undefined|
|
|
115
|
+
| **include** | [**string**] | Campos a serem retornados | (optional) defaults to undefined|
|
|
116
|
+
| **id** | [**string**] | Id do pedido | (optional) defaults to undefined|
|
|
117
|
+
| **paymentId** | [**string**] | ID do pagamento | (optional) defaults to undefined|
|
|
118
|
+
| **paymentGateway** | [**string**] | Gateway de pagamento do pedido | (optional) defaults to undefined|
|
|
119
|
+
| **couponId** | [**string**] | ID do cupom do pedido | (optional) defaults to undefined|
|
|
120
|
+
| **status** | [**string**] | Status do pedido | (optional) defaults to undefined|
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
### Return type
|
|
124
|
+
|
|
125
|
+
**OrdersIndex200Response**
|
|
126
|
+
|
|
127
|
+
### Authorization
|
|
128
|
+
|
|
129
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
130
|
+
|
|
131
|
+
### HTTP request headers
|
|
132
|
+
|
|
133
|
+
- **Content-Type**: Not defined
|
|
134
|
+
- **Accept**: application/json
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
### HTTP response details
|
|
138
|
+
| Status code | Description | Response headers |
|
|
139
|
+
|-------------|-------------|------------------|
|
|
140
|
+
|**200** | success | - |
|
|
141
|
+
|**400** | failed | - |
|
|
142
|
+
|**401** | unauthorized | - |
|
|
143
|
+
|
|
144
|
+
[[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)
|
|
145
|
+
|
|
146
|
+
# **ordersUpdate**
|
|
147
|
+
> OrdersUpdate200Response ordersUpdate()
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
### Example
|
|
151
|
+
|
|
152
|
+
```typescript
|
|
153
|
+
import {
|
|
154
|
+
OrdersApi,
|
|
155
|
+
Configuration,
|
|
156
|
+
OrdersCreateRequest
|
|
157
|
+
} from '@handsondigital/idplugger-promotion';
|
|
158
|
+
|
|
159
|
+
const configuration = new Configuration();
|
|
160
|
+
const apiInstance = new OrdersApi(configuration);
|
|
161
|
+
|
|
162
|
+
let promotionId: string; //ID da promoção (default to undefined)
|
|
163
|
+
let userId: string; //ID do usuário (default to undefined)
|
|
164
|
+
let ordersCreateRequest: OrdersCreateRequest; // (optional)
|
|
165
|
+
|
|
166
|
+
const { status, data } = await apiInstance.ordersUpdate(
|
|
167
|
+
promotionId,
|
|
168
|
+
userId,
|
|
169
|
+
ordersCreateRequest
|
|
170
|
+
);
|
|
171
|
+
```
|
|
172
|
+
|
|
173
|
+
### Parameters
|
|
174
|
+
|
|
175
|
+
|Name | Type | Description | Notes|
|
|
176
|
+
|------------- | ------------- | ------------- | -------------|
|
|
177
|
+
| **ordersCreateRequest** | **OrdersCreateRequest**| | |
|
|
178
|
+
| **promotionId** | [**string**] | ID da promoção | defaults to undefined|
|
|
179
|
+
| **userId** | [**string**] | ID do usuário | defaults to undefined|
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
### Return type
|
|
183
|
+
|
|
184
|
+
**OrdersUpdate200Response**
|
|
185
|
+
|
|
186
|
+
### Authorization
|
|
187
|
+
|
|
188
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
189
|
+
|
|
190
|
+
### HTTP request headers
|
|
191
|
+
|
|
192
|
+
- **Content-Type**: application/json
|
|
193
|
+
- **Accept**: application/json
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
### HTTP response details
|
|
197
|
+
| Status code | Description | Response headers |
|
|
198
|
+
|-------------|-------------|------------------|
|
|
199
|
+
|**200** | success | - |
|
|
200
|
+
|**400** | failed | - |
|
|
201
|
+
|**401** | unauthorized | - |
|
|
202
|
+
|
|
203
|
+
[[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)
|
|
204
|
+
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# OrdersCreate200Response
|
|
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** | [**Array<Order>**](Order.md) | | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { OrdersCreate200Response } from '@handsondigital/idplugger-promotion';
|
|
17
|
+
|
|
18
|
+
const instance: OrdersCreate200Response = {
|
|
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
|
+
# OrdersCreate400Response
|
|
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 { OrdersCreate400Response } from '@handsondigital/idplugger-promotion';
|
|
17
|
+
|
|
18
|
+
const instance: OrdersCreate400Response = {
|
|
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
|
+
# OrdersCreate401Response
|
|
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 { OrdersCreate401Response } from '@handsondigital/idplugger-promotion';
|
|
17
|
+
|
|
18
|
+
const instance: OrdersCreate401Response = {
|
|
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
|
+
# OrdersCreateRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**orders** | [**Array<Order>**](Order.md) | | [optional] [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { OrdersCreateRequest } from '@handsondigital/idplugger-promotion';
|
|
14
|
+
|
|
15
|
+
const instance: OrdersCreateRequest = {
|
|
16
|
+
orders,
|
|
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,28 @@
|
|
|
1
|
+
# OrdersIndex200Response
|
|
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<Order>**](Order.md) | | [optional] [default to undefined]
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import { OrdersIndex200Response } from '@handsondigital/idplugger-promotion';
|
|
18
|
+
|
|
19
|
+
const instance: OrdersIndex200Response = {
|
|
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,26 @@
|
|
|
1
|
+
# OrdersIndex400Response
|
|
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 { OrdersIndex400Response } from '@handsondigital/idplugger-promotion';
|
|
17
|
+
|
|
18
|
+
const instance: OrdersIndex400Response = {
|
|
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
|
+
# OrdersIndex401Response
|
|
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 { OrdersIndex401Response } from '@handsondigital/idplugger-promotion';
|
|
17
|
+
|
|
18
|
+
const instance: OrdersIndex401Response = {
|
|
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
|
+
# OrdersUpdate200Response
|
|
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** | [**Array<Order>**](Order.md) | | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { OrdersUpdate200Response } from '@handsondigital/idplugger-promotion';
|
|
17
|
+
|
|
18
|
+
const instance: OrdersUpdate200Response = {
|
|
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
|
+
# OrdersUpdate400Response
|
|
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 { OrdersUpdate400Response } from '@handsondigital/idplugger-promotion';
|
|
17
|
+
|
|
18
|
+
const instance: OrdersUpdate400Response = {
|
|
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)
|