@handsondigital/idplugger-promotion 1.0.6 → 2.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/README.md +2 -2
- package/api.ts +2416 -773
- package/dist/api.d.ts +2049 -614
- package/dist/api.js +414 -684
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -8304,59 +8304,193 @@ export const ArticlesApiFactory = function (configuration?: Configuration, baseP
|
|
|
8304
8304
|
/**
|
|
8305
8305
|
*
|
|
8306
8306
|
* @summary Cadastra publicações na promoção
|
|
8307
|
-
* @param {
|
|
8308
|
-
* @param {Array<Article>} [article]
|
|
8307
|
+
* @param {ArticlesApiArticlesCreateRequest} requestParameters Request parameters.
|
|
8309
8308
|
* @param {*} [options] Override http request option.
|
|
8310
8309
|
* @throws {RequiredError}
|
|
8311
8310
|
*/
|
|
8312
|
-
articlesCreate(
|
|
8313
|
-
return localVarFp.articlesCreate(promotionId, article, options).then((request) => request(axios, basePath));
|
|
8311
|
+
articlesCreate(requestParameters: ArticlesApiArticlesCreateRequest, options?: RawAxiosRequestConfig): AxiosPromise<ArticlesCreate200Response> {
|
|
8312
|
+
return localVarFp.articlesCreate(requestParameters.promotionId, requestParameters.article, options).then((request) => request(axios, basePath));
|
|
8314
8313
|
},
|
|
8315
8314
|
/**
|
|
8316
8315
|
*
|
|
8317
8316
|
* @summary Exclui uma publicação da promoção
|
|
8318
|
-
* @param {
|
|
8319
|
-
* @param {string} id ID da publicação
|
|
8317
|
+
* @param {ArticlesApiArticlesDeleteRequest} requestParameters Request parameters.
|
|
8320
8318
|
* @param {*} [options] Override http request option.
|
|
8321
8319
|
* @throws {RequiredError}
|
|
8322
8320
|
*/
|
|
8323
|
-
articlesDelete(
|
|
8324
|
-
return localVarFp.articlesDelete(promotionId, id, options).then((request) => request(axios, basePath));
|
|
8321
|
+
articlesDelete(requestParameters: ArticlesApiArticlesDeleteRequest, options?: RawAxiosRequestConfig): AxiosPromise<ArticlesDelete200Response> {
|
|
8322
|
+
return localVarFp.articlesDelete(requestParameters.promotionId, requestParameters.id, options).then((request) => request(axios, basePath));
|
|
8325
8323
|
},
|
|
8326
8324
|
/**
|
|
8327
8325
|
*
|
|
8328
8326
|
* @summary Lista as publicações cadastradas na promoção
|
|
8329
|
-
* @param {
|
|
8330
|
-
* @param {string} [fields] Informa quais campos devem ser retornados na pesquisa pela API
|
|
8331
|
-
* @param {string} [include] Informa se os dados do autor da publicação também deve ser retornado na pesquisa pela API
|
|
8332
|
-
* @param {number} [page] Informa o número da página da pesquisa
|
|
8333
|
-
* @param {number} [perPage] Informa o número de publicações por página na pesquisa
|
|
8334
|
-
* @param {string} [id] Pesquisa publicações cadastradas na promoção pelo id das mesmas
|
|
8335
|
-
* @param {string} [title] Pesquisa publicações cadastradas na promoção com título que contenha o texto pesquisado
|
|
8336
|
-
* @param {string} [keyword] Pesquisa publicações cadastradas na promoção com texto que contenha o texto pesquisado
|
|
8337
|
-
* @param {string} [date] Pesquisa publicações cadastradas na promoção com data de publicação entre as datas informadas
|
|
8338
|
-
* @param {string} [createdAt] Pesquisa publicações cadastradas na promoção entre as datas informadas
|
|
8339
|
-
* @param {string} [updatedAt] Pesquisa publicações cadastradas na promoção atualizadas entre as datas informadas
|
|
8327
|
+
* @param {ArticlesApiArticlesIndexRequest} requestParameters Request parameters.
|
|
8340
8328
|
* @param {*} [options] Override http request option.
|
|
8341
8329
|
* @throws {RequiredError}
|
|
8342
8330
|
*/
|
|
8343
|
-
articlesIndex(
|
|
8344
|
-
return localVarFp.articlesIndex(promotionId, fields, include, page, perPage, id, title, keyword, date, createdAt, updatedAt, options).then((request) => request(axios, basePath));
|
|
8331
|
+
articlesIndex(requestParameters: ArticlesApiArticlesIndexRequest, options?: RawAxiosRequestConfig): AxiosPromise<ArticlesIndex200Response> {
|
|
8332
|
+
return localVarFp.articlesIndex(requestParameters.promotionId, requestParameters.fields, requestParameters.include, requestParameters.page, requestParameters.perPage, requestParameters.id, requestParameters.title, requestParameters.keyword, requestParameters.date, requestParameters.createdAt, requestParameters.updatedAt, options).then((request) => request(axios, basePath));
|
|
8345
8333
|
},
|
|
8346
8334
|
/**
|
|
8347
8335
|
*
|
|
8348
8336
|
* @summary Cadastra ou atualiza publicações na promoção
|
|
8349
|
-
* @param {
|
|
8350
|
-
* @param {Array<Article>} [article]
|
|
8337
|
+
* @param {ArticlesApiArticlesUpdateRequest} requestParameters Request parameters.
|
|
8351
8338
|
* @param {*} [options] Override http request option.
|
|
8352
8339
|
* @throws {RequiredError}
|
|
8353
8340
|
*/
|
|
8354
|
-
articlesUpdate(
|
|
8355
|
-
return localVarFp.articlesUpdate(promotionId, article, options).then((request) => request(axios, basePath));
|
|
8341
|
+
articlesUpdate(requestParameters: ArticlesApiArticlesUpdateRequest, options?: RawAxiosRequestConfig): AxiosPromise<ArticlesUpdate200Response> {
|
|
8342
|
+
return localVarFp.articlesUpdate(requestParameters.promotionId, requestParameters.article, options).then((request) => request(axios, basePath));
|
|
8356
8343
|
},
|
|
8357
8344
|
};
|
|
8358
8345
|
};
|
|
8359
8346
|
|
|
8347
|
+
/**
|
|
8348
|
+
* Request parameters for articlesCreate operation in ArticlesApi.
|
|
8349
|
+
* @export
|
|
8350
|
+
* @interface ArticlesApiArticlesCreateRequest
|
|
8351
|
+
*/
|
|
8352
|
+
export interface ArticlesApiArticlesCreateRequest {
|
|
8353
|
+
/**
|
|
8354
|
+
* ID da promoção
|
|
8355
|
+
* @type {string}
|
|
8356
|
+
* @memberof ArticlesApiArticlesCreate
|
|
8357
|
+
*/
|
|
8358
|
+
readonly promotionId: string
|
|
8359
|
+
|
|
8360
|
+
/**
|
|
8361
|
+
*
|
|
8362
|
+
* @type {Array<Article>}
|
|
8363
|
+
* @memberof ArticlesApiArticlesCreate
|
|
8364
|
+
*/
|
|
8365
|
+
readonly article?: Array<Article>
|
|
8366
|
+
}
|
|
8367
|
+
|
|
8368
|
+
/**
|
|
8369
|
+
* Request parameters for articlesDelete operation in ArticlesApi.
|
|
8370
|
+
* @export
|
|
8371
|
+
* @interface ArticlesApiArticlesDeleteRequest
|
|
8372
|
+
*/
|
|
8373
|
+
export interface ArticlesApiArticlesDeleteRequest {
|
|
8374
|
+
/**
|
|
8375
|
+
* ID da promoção
|
|
8376
|
+
* @type {string}
|
|
8377
|
+
* @memberof ArticlesApiArticlesDelete
|
|
8378
|
+
*/
|
|
8379
|
+
readonly promotionId: string
|
|
8380
|
+
|
|
8381
|
+
/**
|
|
8382
|
+
* ID da publicação
|
|
8383
|
+
* @type {string}
|
|
8384
|
+
* @memberof ArticlesApiArticlesDelete
|
|
8385
|
+
*/
|
|
8386
|
+
readonly id: string
|
|
8387
|
+
}
|
|
8388
|
+
|
|
8389
|
+
/**
|
|
8390
|
+
* Request parameters for articlesIndex operation in ArticlesApi.
|
|
8391
|
+
* @export
|
|
8392
|
+
* @interface ArticlesApiArticlesIndexRequest
|
|
8393
|
+
*/
|
|
8394
|
+
export interface ArticlesApiArticlesIndexRequest {
|
|
8395
|
+
/**
|
|
8396
|
+
* ID da promoção
|
|
8397
|
+
* @type {string}
|
|
8398
|
+
* @memberof ArticlesApiArticlesIndex
|
|
8399
|
+
*/
|
|
8400
|
+
readonly promotionId: string
|
|
8401
|
+
|
|
8402
|
+
/**
|
|
8403
|
+
* Informa quais campos devem ser retornados na pesquisa pela API
|
|
8404
|
+
* @type {string}
|
|
8405
|
+
* @memberof ArticlesApiArticlesIndex
|
|
8406
|
+
*/
|
|
8407
|
+
readonly fields?: string
|
|
8408
|
+
|
|
8409
|
+
/**
|
|
8410
|
+
* Informa se os dados do autor da publicação também deve ser retornado na pesquisa pela API
|
|
8411
|
+
* @type {string}
|
|
8412
|
+
* @memberof ArticlesApiArticlesIndex
|
|
8413
|
+
*/
|
|
8414
|
+
readonly include?: string
|
|
8415
|
+
|
|
8416
|
+
/**
|
|
8417
|
+
* Informa o número da página da pesquisa
|
|
8418
|
+
* @type {number}
|
|
8419
|
+
* @memberof ArticlesApiArticlesIndex
|
|
8420
|
+
*/
|
|
8421
|
+
readonly page?: number
|
|
8422
|
+
|
|
8423
|
+
/**
|
|
8424
|
+
* Informa o número de publicações por página na pesquisa
|
|
8425
|
+
* @type {number}
|
|
8426
|
+
* @memberof ArticlesApiArticlesIndex
|
|
8427
|
+
*/
|
|
8428
|
+
readonly perPage?: number
|
|
8429
|
+
|
|
8430
|
+
/**
|
|
8431
|
+
* Pesquisa publicações cadastradas na promoção pelo id das mesmas
|
|
8432
|
+
* @type {string}
|
|
8433
|
+
* @memberof ArticlesApiArticlesIndex
|
|
8434
|
+
*/
|
|
8435
|
+
readonly id?: string
|
|
8436
|
+
|
|
8437
|
+
/**
|
|
8438
|
+
* Pesquisa publicações cadastradas na promoção com título que contenha o texto pesquisado
|
|
8439
|
+
* @type {string}
|
|
8440
|
+
* @memberof ArticlesApiArticlesIndex
|
|
8441
|
+
*/
|
|
8442
|
+
readonly title?: string
|
|
8443
|
+
|
|
8444
|
+
/**
|
|
8445
|
+
* Pesquisa publicações cadastradas na promoção com texto que contenha o texto pesquisado
|
|
8446
|
+
* @type {string}
|
|
8447
|
+
* @memberof ArticlesApiArticlesIndex
|
|
8448
|
+
*/
|
|
8449
|
+
readonly keyword?: string
|
|
8450
|
+
|
|
8451
|
+
/**
|
|
8452
|
+
* Pesquisa publicações cadastradas na promoção com data de publicação entre as datas informadas
|
|
8453
|
+
* @type {string}
|
|
8454
|
+
* @memberof ArticlesApiArticlesIndex
|
|
8455
|
+
*/
|
|
8456
|
+
readonly date?: string
|
|
8457
|
+
|
|
8458
|
+
/**
|
|
8459
|
+
* Pesquisa publicações cadastradas na promoção entre as datas informadas
|
|
8460
|
+
* @type {string}
|
|
8461
|
+
* @memberof ArticlesApiArticlesIndex
|
|
8462
|
+
*/
|
|
8463
|
+
readonly createdAt?: string
|
|
8464
|
+
|
|
8465
|
+
/**
|
|
8466
|
+
* Pesquisa publicações cadastradas na promoção atualizadas entre as datas informadas
|
|
8467
|
+
* @type {string}
|
|
8468
|
+
* @memberof ArticlesApiArticlesIndex
|
|
8469
|
+
*/
|
|
8470
|
+
readonly updatedAt?: string
|
|
8471
|
+
}
|
|
8472
|
+
|
|
8473
|
+
/**
|
|
8474
|
+
* Request parameters for articlesUpdate operation in ArticlesApi.
|
|
8475
|
+
* @export
|
|
8476
|
+
* @interface ArticlesApiArticlesUpdateRequest
|
|
8477
|
+
*/
|
|
8478
|
+
export interface ArticlesApiArticlesUpdateRequest {
|
|
8479
|
+
/**
|
|
8480
|
+
* ID da promoção
|
|
8481
|
+
* @type {string}
|
|
8482
|
+
* @memberof ArticlesApiArticlesUpdate
|
|
8483
|
+
*/
|
|
8484
|
+
readonly promotionId: string
|
|
8485
|
+
|
|
8486
|
+
/**
|
|
8487
|
+
*
|
|
8488
|
+
* @type {Array<Article>}
|
|
8489
|
+
* @memberof ArticlesApiArticlesUpdate
|
|
8490
|
+
*/
|
|
8491
|
+
readonly article?: Array<Article>
|
|
8492
|
+
}
|
|
8493
|
+
|
|
8360
8494
|
/**
|
|
8361
8495
|
* ArticlesApi - object-oriented interface
|
|
8362
8496
|
* @export
|
|
@@ -8367,62 +8501,49 @@ export class ArticlesApi extends BaseAPI {
|
|
|
8367
8501
|
/**
|
|
8368
8502
|
*
|
|
8369
8503
|
* @summary Cadastra publicações na promoção
|
|
8370
|
-
* @param {
|
|
8371
|
-
* @param {Array<Article>} [article]
|
|
8504
|
+
* @param {ArticlesApiArticlesCreateRequest} requestParameters Request parameters.
|
|
8372
8505
|
* @param {*} [options] Override http request option.
|
|
8373
8506
|
* @throws {RequiredError}
|
|
8374
8507
|
* @memberof ArticlesApi
|
|
8375
8508
|
*/
|
|
8376
|
-
public articlesCreate(
|
|
8377
|
-
return ArticlesApiFp(this.configuration).articlesCreate(promotionId, article, options).then((request) => request(this.axios, this.basePath));
|
|
8509
|
+
public articlesCreate(requestParameters: ArticlesApiArticlesCreateRequest, options?: RawAxiosRequestConfig) {
|
|
8510
|
+
return ArticlesApiFp(this.configuration).articlesCreate(requestParameters.promotionId, requestParameters.article, options).then((request) => request(this.axios, this.basePath));
|
|
8378
8511
|
}
|
|
8379
8512
|
|
|
8380
8513
|
/**
|
|
8381
8514
|
*
|
|
8382
8515
|
* @summary Exclui uma publicação da promoção
|
|
8383
|
-
* @param {
|
|
8384
|
-
* @param {string} id ID da publicação
|
|
8516
|
+
* @param {ArticlesApiArticlesDeleteRequest} requestParameters Request parameters.
|
|
8385
8517
|
* @param {*} [options] Override http request option.
|
|
8386
8518
|
* @throws {RequiredError}
|
|
8387
8519
|
* @memberof ArticlesApi
|
|
8388
8520
|
*/
|
|
8389
|
-
public articlesDelete(
|
|
8390
|
-
return ArticlesApiFp(this.configuration).articlesDelete(promotionId, id, options).then((request) => request(this.axios, this.basePath));
|
|
8521
|
+
public articlesDelete(requestParameters: ArticlesApiArticlesDeleteRequest, options?: RawAxiosRequestConfig) {
|
|
8522
|
+
return ArticlesApiFp(this.configuration).articlesDelete(requestParameters.promotionId, requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
8391
8523
|
}
|
|
8392
8524
|
|
|
8393
8525
|
/**
|
|
8394
8526
|
*
|
|
8395
8527
|
* @summary Lista as publicações cadastradas na promoção
|
|
8396
|
-
* @param {
|
|
8397
|
-
* @param {string} [fields] Informa quais campos devem ser retornados na pesquisa pela API
|
|
8398
|
-
* @param {string} [include] Informa se os dados do autor da publicação também deve ser retornado na pesquisa pela API
|
|
8399
|
-
* @param {number} [page] Informa o número da página da pesquisa
|
|
8400
|
-
* @param {number} [perPage] Informa o número de publicações por página na pesquisa
|
|
8401
|
-
* @param {string} [id] Pesquisa publicações cadastradas na promoção pelo id das mesmas
|
|
8402
|
-
* @param {string} [title] Pesquisa publicações cadastradas na promoção com título que contenha o texto pesquisado
|
|
8403
|
-
* @param {string} [keyword] Pesquisa publicações cadastradas na promoção com texto que contenha o texto pesquisado
|
|
8404
|
-
* @param {string} [date] Pesquisa publicações cadastradas na promoção com data de publicação entre as datas informadas
|
|
8405
|
-
* @param {string} [createdAt] Pesquisa publicações cadastradas na promoção entre as datas informadas
|
|
8406
|
-
* @param {string} [updatedAt] Pesquisa publicações cadastradas na promoção atualizadas entre as datas informadas
|
|
8528
|
+
* @param {ArticlesApiArticlesIndexRequest} requestParameters Request parameters.
|
|
8407
8529
|
* @param {*} [options] Override http request option.
|
|
8408
8530
|
* @throws {RequiredError}
|
|
8409
8531
|
* @memberof ArticlesApi
|
|
8410
8532
|
*/
|
|
8411
|
-
public articlesIndex(
|
|
8412
|
-
return ArticlesApiFp(this.configuration).articlesIndex(promotionId, fields, include, page, perPage, id, title, keyword, date, createdAt, updatedAt, options).then((request) => request(this.axios, this.basePath));
|
|
8533
|
+
public articlesIndex(requestParameters: ArticlesApiArticlesIndexRequest, options?: RawAxiosRequestConfig) {
|
|
8534
|
+
return ArticlesApiFp(this.configuration).articlesIndex(requestParameters.promotionId, requestParameters.fields, requestParameters.include, requestParameters.page, requestParameters.perPage, requestParameters.id, requestParameters.title, requestParameters.keyword, requestParameters.date, requestParameters.createdAt, requestParameters.updatedAt, options).then((request) => request(this.axios, this.basePath));
|
|
8413
8535
|
}
|
|
8414
8536
|
|
|
8415
8537
|
/**
|
|
8416
8538
|
*
|
|
8417
8539
|
* @summary Cadastra ou atualiza publicações na promoção
|
|
8418
|
-
* @param {
|
|
8419
|
-
* @param {Array<Article>} [article]
|
|
8540
|
+
* @param {ArticlesApiArticlesUpdateRequest} requestParameters Request parameters.
|
|
8420
8541
|
* @param {*} [options] Override http request option.
|
|
8421
8542
|
* @throws {RequiredError}
|
|
8422
8543
|
* @memberof ArticlesApi
|
|
8423
8544
|
*/
|
|
8424
|
-
public articlesUpdate(
|
|
8425
|
-
return ArticlesApiFp(this.configuration).articlesUpdate(promotionId, article, options).then((request) => request(this.axios, this.basePath));
|
|
8545
|
+
public articlesUpdate(requestParameters: ArticlesApiArticlesUpdateRequest, options?: RawAxiosRequestConfig) {
|
|
8546
|
+
return ArticlesApiFp(this.configuration).articlesUpdate(requestParameters.promotionId, requestParameters.article, options).then((request) => request(this.axios, this.basePath));
|
|
8426
8547
|
}
|
|
8427
8548
|
}
|
|
8428
8549
|
|
|
@@ -8691,42 +8812,42 @@ export const AuthApiFactory = function (configuration?: Configuration, basePath?
|
|
|
8691
8812
|
/**
|
|
8692
8813
|
*
|
|
8693
8814
|
* @summary Login na API via e-mail e token
|
|
8694
|
-
* @param {
|
|
8815
|
+
* @param {AuthApiAuthLoginByTokenRequest} requestParameters Request parameters.
|
|
8695
8816
|
* @param {*} [options] Override http request option.
|
|
8696
8817
|
* @throws {RequiredError}
|
|
8697
8818
|
*/
|
|
8698
|
-
authLoginByToken(
|
|
8699
|
-
return localVarFp.authLoginByToken(authLoginByTokenRequest, options).then((request) => request(axios, basePath));
|
|
8819
|
+
authLoginByToken(requestParameters: AuthApiAuthLoginByTokenRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<AuthLoginByToken200Response> {
|
|
8820
|
+
return localVarFp.authLoginByToken(requestParameters.authLoginByTokenRequest, options).then((request) => request(axios, basePath));
|
|
8700
8821
|
},
|
|
8701
8822
|
/**
|
|
8702
8823
|
*
|
|
8703
8824
|
* @summary Renova o do token de autenticação
|
|
8704
|
-
* @param {
|
|
8825
|
+
* @param {AuthApiAuthRefreshTokenRequest} requestParameters Request parameters.
|
|
8705
8826
|
* @param {*} [options] Override http request option.
|
|
8706
8827
|
* @throws {RequiredError}
|
|
8707
8828
|
*/
|
|
8708
|
-
authRefreshToken(
|
|
8709
|
-
return localVarFp.authRefreshToken(authRefreshTokenRequest, options).then((request) => request(axios, basePath));
|
|
8829
|
+
authRefreshToken(requestParameters: AuthApiAuthRefreshTokenRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<AuthLoginByToken200Response> {
|
|
8830
|
+
return localVarFp.authRefreshToken(requestParameters.authRefreshTokenRequest, options).then((request) => request(axios, basePath));
|
|
8710
8831
|
},
|
|
8711
8832
|
/**
|
|
8712
8833
|
*
|
|
8713
8834
|
* @summary Solicita envio de token de login por email
|
|
8714
|
-
* @param {
|
|
8835
|
+
* @param {AuthApiAuthRequestTokenRequest} requestParameters Request parameters.
|
|
8715
8836
|
* @param {*} [options] Override http request option.
|
|
8716
8837
|
* @throws {RequiredError}
|
|
8717
8838
|
*/
|
|
8718
|
-
authRequestToken(
|
|
8719
|
-
return localVarFp.authRequestToken(authRequestTokenRequest, options).then((request) => request(axios, basePath));
|
|
8839
|
+
authRequestToken(requestParameters: AuthApiAuthRequestTokenRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<AuthRequestToken200Response> {
|
|
8840
|
+
return localVarFp.authRequestToken(requestParameters.authRequestTokenRequest, options).then((request) => request(axios, basePath));
|
|
8720
8841
|
},
|
|
8721
8842
|
/**
|
|
8722
8843
|
*
|
|
8723
8844
|
* @summary Login na API
|
|
8724
|
-
* @param {
|
|
8845
|
+
* @param {AuthApiLoginRequest} requestParameters Request parameters.
|
|
8725
8846
|
* @param {*} [options] Override http request option.
|
|
8726
8847
|
* @throws {RequiredError}
|
|
8727
8848
|
*/
|
|
8728
|
-
login(
|
|
8729
|
-
return localVarFp.login(loginRequest, options).then((request) => request(axios, basePath));
|
|
8849
|
+
login(requestParameters: AuthApiLoginRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<Login200Response> {
|
|
8850
|
+
return localVarFp.login(requestParameters.loginRequest, options).then((request) => request(axios, basePath));
|
|
8730
8851
|
},
|
|
8731
8852
|
/**
|
|
8732
8853
|
*
|
|
@@ -8740,6 +8861,62 @@ export const AuthApiFactory = function (configuration?: Configuration, basePath?
|
|
|
8740
8861
|
};
|
|
8741
8862
|
};
|
|
8742
8863
|
|
|
8864
|
+
/**
|
|
8865
|
+
* Request parameters for authLoginByToken operation in AuthApi.
|
|
8866
|
+
* @export
|
|
8867
|
+
* @interface AuthApiAuthLoginByTokenRequest
|
|
8868
|
+
*/
|
|
8869
|
+
export interface AuthApiAuthLoginByTokenRequest {
|
|
8870
|
+
/**
|
|
8871
|
+
*
|
|
8872
|
+
* @type {AuthLoginByTokenRequest}
|
|
8873
|
+
* @memberof AuthApiAuthLoginByToken
|
|
8874
|
+
*/
|
|
8875
|
+
readonly authLoginByTokenRequest?: AuthLoginByTokenRequest
|
|
8876
|
+
}
|
|
8877
|
+
|
|
8878
|
+
/**
|
|
8879
|
+
* Request parameters for authRefreshToken operation in AuthApi.
|
|
8880
|
+
* @export
|
|
8881
|
+
* @interface AuthApiAuthRefreshTokenRequest
|
|
8882
|
+
*/
|
|
8883
|
+
export interface AuthApiAuthRefreshTokenRequest {
|
|
8884
|
+
/**
|
|
8885
|
+
*
|
|
8886
|
+
* @type {AuthRefreshTokenRequest}
|
|
8887
|
+
* @memberof AuthApiAuthRefreshToken
|
|
8888
|
+
*/
|
|
8889
|
+
readonly authRefreshTokenRequest?: AuthRefreshTokenRequest
|
|
8890
|
+
}
|
|
8891
|
+
|
|
8892
|
+
/**
|
|
8893
|
+
* Request parameters for authRequestToken operation in AuthApi.
|
|
8894
|
+
* @export
|
|
8895
|
+
* @interface AuthApiAuthRequestTokenRequest
|
|
8896
|
+
*/
|
|
8897
|
+
export interface AuthApiAuthRequestTokenRequest {
|
|
8898
|
+
/**
|
|
8899
|
+
*
|
|
8900
|
+
* @type {AuthRequestTokenRequest}
|
|
8901
|
+
* @memberof AuthApiAuthRequestToken
|
|
8902
|
+
*/
|
|
8903
|
+
readonly authRequestTokenRequest?: AuthRequestTokenRequest
|
|
8904
|
+
}
|
|
8905
|
+
|
|
8906
|
+
/**
|
|
8907
|
+
* Request parameters for login operation in AuthApi.
|
|
8908
|
+
* @export
|
|
8909
|
+
* @interface AuthApiLoginRequest
|
|
8910
|
+
*/
|
|
8911
|
+
export interface AuthApiLoginRequest {
|
|
8912
|
+
/**
|
|
8913
|
+
*
|
|
8914
|
+
* @type {LoginRequest}
|
|
8915
|
+
* @memberof AuthApiLogin
|
|
8916
|
+
*/
|
|
8917
|
+
readonly loginRequest?: LoginRequest
|
|
8918
|
+
}
|
|
8919
|
+
|
|
8743
8920
|
/**
|
|
8744
8921
|
* AuthApi - object-oriented interface
|
|
8745
8922
|
* @export
|
|
@@ -8750,49 +8927,49 @@ export class AuthApi extends BaseAPI {
|
|
|
8750
8927
|
/**
|
|
8751
8928
|
*
|
|
8752
8929
|
* @summary Login na API via e-mail e token
|
|
8753
|
-
* @param {
|
|
8930
|
+
* @param {AuthApiAuthLoginByTokenRequest} requestParameters Request parameters.
|
|
8754
8931
|
* @param {*} [options] Override http request option.
|
|
8755
8932
|
* @throws {RequiredError}
|
|
8756
8933
|
* @memberof AuthApi
|
|
8757
8934
|
*/
|
|
8758
|
-
public authLoginByToken(
|
|
8759
|
-
return AuthApiFp(this.configuration).authLoginByToken(authLoginByTokenRequest, options).then((request) => request(this.axios, this.basePath));
|
|
8935
|
+
public authLoginByToken(requestParameters: AuthApiAuthLoginByTokenRequest = {}, options?: RawAxiosRequestConfig) {
|
|
8936
|
+
return AuthApiFp(this.configuration).authLoginByToken(requestParameters.authLoginByTokenRequest, options).then((request) => request(this.axios, this.basePath));
|
|
8760
8937
|
}
|
|
8761
8938
|
|
|
8762
8939
|
/**
|
|
8763
8940
|
*
|
|
8764
8941
|
* @summary Renova o do token de autenticação
|
|
8765
|
-
* @param {
|
|
8942
|
+
* @param {AuthApiAuthRefreshTokenRequest} requestParameters Request parameters.
|
|
8766
8943
|
* @param {*} [options] Override http request option.
|
|
8767
8944
|
* @throws {RequiredError}
|
|
8768
8945
|
* @memberof AuthApi
|
|
8769
8946
|
*/
|
|
8770
|
-
public authRefreshToken(
|
|
8771
|
-
return AuthApiFp(this.configuration).authRefreshToken(authRefreshTokenRequest, options).then((request) => request(this.axios, this.basePath));
|
|
8947
|
+
public authRefreshToken(requestParameters: AuthApiAuthRefreshTokenRequest = {}, options?: RawAxiosRequestConfig) {
|
|
8948
|
+
return AuthApiFp(this.configuration).authRefreshToken(requestParameters.authRefreshTokenRequest, options).then((request) => request(this.axios, this.basePath));
|
|
8772
8949
|
}
|
|
8773
8950
|
|
|
8774
8951
|
/**
|
|
8775
8952
|
*
|
|
8776
8953
|
* @summary Solicita envio de token de login por email
|
|
8777
|
-
* @param {
|
|
8954
|
+
* @param {AuthApiAuthRequestTokenRequest} requestParameters Request parameters.
|
|
8778
8955
|
* @param {*} [options] Override http request option.
|
|
8779
8956
|
* @throws {RequiredError}
|
|
8780
8957
|
* @memberof AuthApi
|
|
8781
8958
|
*/
|
|
8782
|
-
public authRequestToken(
|
|
8783
|
-
return AuthApiFp(this.configuration).authRequestToken(authRequestTokenRequest, options).then((request) => request(this.axios, this.basePath));
|
|
8959
|
+
public authRequestToken(requestParameters: AuthApiAuthRequestTokenRequest = {}, options?: RawAxiosRequestConfig) {
|
|
8960
|
+
return AuthApiFp(this.configuration).authRequestToken(requestParameters.authRequestTokenRequest, options).then((request) => request(this.axios, this.basePath));
|
|
8784
8961
|
}
|
|
8785
8962
|
|
|
8786
8963
|
/**
|
|
8787
8964
|
*
|
|
8788
8965
|
* @summary Login na API
|
|
8789
|
-
* @param {
|
|
8966
|
+
* @param {AuthApiLoginRequest} requestParameters Request parameters.
|
|
8790
8967
|
* @param {*} [options] Override http request option.
|
|
8791
8968
|
* @throws {RequiredError}
|
|
8792
8969
|
* @memberof AuthApi
|
|
8793
8970
|
*/
|
|
8794
|
-
public login(
|
|
8795
|
-
return AuthApiFp(this.configuration).login(loginRequest, options).then((request) => request(this.axios, this.basePath));
|
|
8971
|
+
public login(requestParameters: AuthApiLoginRequest = {}, options?: RawAxiosRequestConfig) {
|
|
8972
|
+
return AuthApiFp(this.configuration).login(requestParameters.loginRequest, options).then((request) => request(this.axios, this.basePath));
|
|
8796
8973
|
}
|
|
8797
8974
|
|
|
8798
8975
|
/**
|
|
@@ -9027,42 +9204,120 @@ export const AwardedsApiFactory = function (configuration?: Configuration, baseP
|
|
|
9027
9204
|
/**
|
|
9028
9205
|
*
|
|
9029
9206
|
* @summary Busca por usuários cadastrados na promoção ganhadores de sorteios
|
|
9030
|
-
* @param {
|
|
9031
|
-
* @param {string} [fields] Campos a serem retornados
|
|
9032
|
-
* @param {string} [include] Dados relacionados a serem retornados
|
|
9033
|
-
* @param {string} [userId] Id do usuário
|
|
9034
|
-
* @param {string} [luckyNumberId] Id do número da sorte
|
|
9035
|
-
* @param {string} [checklist] Busca ganhadores pelo texto do checklist
|
|
9036
|
-
* @param {string} [justificativa] Busca ganhadores pelo texto da justificativa
|
|
9207
|
+
* @param {AwardedsApiAwardedsSearchRequest} requestParameters Request parameters.
|
|
9037
9208
|
* @param {*} [options] Override http request option.
|
|
9038
9209
|
* @throws {RequiredError}
|
|
9039
9210
|
*/
|
|
9040
|
-
awardedsSearch(
|
|
9041
|
-
return localVarFp.awardedsSearch(promotionId, fields, include, userId, luckyNumberId, checklist, justificativa, options).then((request) => request(axios, basePath));
|
|
9211
|
+
awardedsSearch(requestParameters: AwardedsApiAwardedsSearchRequest, options?: RawAxiosRequestConfig): AxiosPromise<AwardedsSearch200Response> {
|
|
9212
|
+
return localVarFp.awardedsSearch(requestParameters.promotionId, requestParameters.fields, requestParameters.include, requestParameters.userId, requestParameters.luckyNumberId, requestParameters.checklist, requestParameters.justificativa, options).then((request) => request(axios, basePath));
|
|
9042
9213
|
},
|
|
9043
9214
|
/**
|
|
9044
9215
|
*
|
|
9045
9216
|
* @summary Lista os status de ganhador existentes na promoção
|
|
9046
|
-
* @param {
|
|
9217
|
+
* @param {AwardedsApiAwardedsStatesRequest} requestParameters Request parameters.
|
|
9047
9218
|
* @param {*} [options] Override http request option.
|
|
9048
9219
|
* @throws {RequiredError}
|
|
9049
9220
|
*/
|
|
9050
|
-
awardedsStates(
|
|
9051
|
-
return localVarFp.awardedsStates(promotionId, options).then((request) => request(axios, basePath));
|
|
9221
|
+
awardedsStates(requestParameters: AwardedsApiAwardedsStatesRequest, options?: RawAxiosRequestConfig): AxiosPromise<AwardedsStates200Response> {
|
|
9222
|
+
return localVarFp.awardedsStates(requestParameters.promotionId, options).then((request) => request(axios, basePath));
|
|
9052
9223
|
},
|
|
9053
9224
|
/**
|
|
9054
9225
|
*
|
|
9055
9226
|
* @summary Atualiza informações referentes aos ganhadores de sorteios da promoção
|
|
9056
|
-
* @param {
|
|
9227
|
+
* @param {AwardedsApiAwardedsUpdateRequest} requestParameters Request parameters.
|
|
9057
9228
|
* @param {*} [options] Override http request option.
|
|
9058
9229
|
* @throws {RequiredError}
|
|
9059
9230
|
*/
|
|
9060
|
-
awardedsUpdate(
|
|
9061
|
-
return localVarFp.awardedsUpdate(promotionId, options).then((request) => request(axios, basePath));
|
|
9231
|
+
awardedsUpdate(requestParameters: AwardedsApiAwardedsUpdateRequest, options?: RawAxiosRequestConfig): AxiosPromise<AwardedsUpdate200Response> {
|
|
9232
|
+
return localVarFp.awardedsUpdate(requestParameters.promotionId, options).then((request) => request(axios, basePath));
|
|
9062
9233
|
},
|
|
9063
9234
|
};
|
|
9064
9235
|
};
|
|
9065
9236
|
|
|
9237
|
+
/**
|
|
9238
|
+
* Request parameters for awardedsSearch operation in AwardedsApi.
|
|
9239
|
+
* @export
|
|
9240
|
+
* @interface AwardedsApiAwardedsSearchRequest
|
|
9241
|
+
*/
|
|
9242
|
+
export interface AwardedsApiAwardedsSearchRequest {
|
|
9243
|
+
/**
|
|
9244
|
+
* ID da promoção
|
|
9245
|
+
* @type {string}
|
|
9246
|
+
* @memberof AwardedsApiAwardedsSearch
|
|
9247
|
+
*/
|
|
9248
|
+
readonly promotionId: string
|
|
9249
|
+
|
|
9250
|
+
/**
|
|
9251
|
+
* Campos a serem retornados
|
|
9252
|
+
* @type {string}
|
|
9253
|
+
* @memberof AwardedsApiAwardedsSearch
|
|
9254
|
+
*/
|
|
9255
|
+
readonly fields?: string
|
|
9256
|
+
|
|
9257
|
+
/**
|
|
9258
|
+
* Dados relacionados a serem retornados
|
|
9259
|
+
* @type {string}
|
|
9260
|
+
* @memberof AwardedsApiAwardedsSearch
|
|
9261
|
+
*/
|
|
9262
|
+
readonly include?: string
|
|
9263
|
+
|
|
9264
|
+
/**
|
|
9265
|
+
* Id do usuário
|
|
9266
|
+
* @type {string}
|
|
9267
|
+
* @memberof AwardedsApiAwardedsSearch
|
|
9268
|
+
*/
|
|
9269
|
+
readonly userId?: string
|
|
9270
|
+
|
|
9271
|
+
/**
|
|
9272
|
+
* Id do número da sorte
|
|
9273
|
+
* @type {string}
|
|
9274
|
+
* @memberof AwardedsApiAwardedsSearch
|
|
9275
|
+
*/
|
|
9276
|
+
readonly luckyNumberId?: string
|
|
9277
|
+
|
|
9278
|
+
/**
|
|
9279
|
+
* Busca ganhadores pelo texto do checklist
|
|
9280
|
+
* @type {string}
|
|
9281
|
+
* @memberof AwardedsApiAwardedsSearch
|
|
9282
|
+
*/
|
|
9283
|
+
readonly checklist?: string
|
|
9284
|
+
|
|
9285
|
+
/**
|
|
9286
|
+
* Busca ganhadores pelo texto da justificativa
|
|
9287
|
+
* @type {string}
|
|
9288
|
+
* @memberof AwardedsApiAwardedsSearch
|
|
9289
|
+
*/
|
|
9290
|
+
readonly justificativa?: string
|
|
9291
|
+
}
|
|
9292
|
+
|
|
9293
|
+
/**
|
|
9294
|
+
* Request parameters for awardedsStates operation in AwardedsApi.
|
|
9295
|
+
* @export
|
|
9296
|
+
* @interface AwardedsApiAwardedsStatesRequest
|
|
9297
|
+
*/
|
|
9298
|
+
export interface AwardedsApiAwardedsStatesRequest {
|
|
9299
|
+
/**
|
|
9300
|
+
* ID da promoção
|
|
9301
|
+
* @type {string}
|
|
9302
|
+
* @memberof AwardedsApiAwardedsStates
|
|
9303
|
+
*/
|
|
9304
|
+
readonly promotionId: string
|
|
9305
|
+
}
|
|
9306
|
+
|
|
9307
|
+
/**
|
|
9308
|
+
* Request parameters for awardedsUpdate operation in AwardedsApi.
|
|
9309
|
+
* @export
|
|
9310
|
+
* @interface AwardedsApiAwardedsUpdateRequest
|
|
9311
|
+
*/
|
|
9312
|
+
export interface AwardedsApiAwardedsUpdateRequest {
|
|
9313
|
+
/**
|
|
9314
|
+
* ID da promoção
|
|
9315
|
+
* @type {string}
|
|
9316
|
+
* @memberof AwardedsApiAwardedsUpdate
|
|
9317
|
+
*/
|
|
9318
|
+
readonly promotionId: string
|
|
9319
|
+
}
|
|
9320
|
+
|
|
9066
9321
|
/**
|
|
9067
9322
|
* AwardedsApi - object-oriented interface
|
|
9068
9323
|
* @export
|
|
@@ -9073,43 +9328,37 @@ export class AwardedsApi extends BaseAPI {
|
|
|
9073
9328
|
/**
|
|
9074
9329
|
*
|
|
9075
9330
|
* @summary Busca por usuários cadastrados na promoção ganhadores de sorteios
|
|
9076
|
-
* @param {
|
|
9077
|
-
* @param {string} [fields] Campos a serem retornados
|
|
9078
|
-
* @param {string} [include] Dados relacionados a serem retornados
|
|
9079
|
-
* @param {string} [userId] Id do usuário
|
|
9080
|
-
* @param {string} [luckyNumberId] Id do número da sorte
|
|
9081
|
-
* @param {string} [checklist] Busca ganhadores pelo texto do checklist
|
|
9082
|
-
* @param {string} [justificativa] Busca ganhadores pelo texto da justificativa
|
|
9331
|
+
* @param {AwardedsApiAwardedsSearchRequest} requestParameters Request parameters.
|
|
9083
9332
|
* @param {*} [options] Override http request option.
|
|
9084
9333
|
* @throws {RequiredError}
|
|
9085
9334
|
* @memberof AwardedsApi
|
|
9086
9335
|
*/
|
|
9087
|
-
public awardedsSearch(
|
|
9088
|
-
return AwardedsApiFp(this.configuration).awardedsSearch(promotionId, fields, include, userId, luckyNumberId, checklist, justificativa, options).then((request) => request(this.axios, this.basePath));
|
|
9336
|
+
public awardedsSearch(requestParameters: AwardedsApiAwardedsSearchRequest, options?: RawAxiosRequestConfig) {
|
|
9337
|
+
return AwardedsApiFp(this.configuration).awardedsSearch(requestParameters.promotionId, requestParameters.fields, requestParameters.include, requestParameters.userId, requestParameters.luckyNumberId, requestParameters.checklist, requestParameters.justificativa, options).then((request) => request(this.axios, this.basePath));
|
|
9089
9338
|
}
|
|
9090
9339
|
|
|
9091
9340
|
/**
|
|
9092
9341
|
*
|
|
9093
9342
|
* @summary Lista os status de ganhador existentes na promoção
|
|
9094
|
-
* @param {
|
|
9343
|
+
* @param {AwardedsApiAwardedsStatesRequest} requestParameters Request parameters.
|
|
9095
9344
|
* @param {*} [options] Override http request option.
|
|
9096
9345
|
* @throws {RequiredError}
|
|
9097
9346
|
* @memberof AwardedsApi
|
|
9098
9347
|
*/
|
|
9099
|
-
public awardedsStates(
|
|
9100
|
-
return AwardedsApiFp(this.configuration).awardedsStates(promotionId, options).then((request) => request(this.axios, this.basePath));
|
|
9348
|
+
public awardedsStates(requestParameters: AwardedsApiAwardedsStatesRequest, options?: RawAxiosRequestConfig) {
|
|
9349
|
+
return AwardedsApiFp(this.configuration).awardedsStates(requestParameters.promotionId, options).then((request) => request(this.axios, this.basePath));
|
|
9101
9350
|
}
|
|
9102
9351
|
|
|
9103
9352
|
/**
|
|
9104
9353
|
*
|
|
9105
9354
|
* @summary Atualiza informações referentes aos ganhadores de sorteios da promoção
|
|
9106
|
-
* @param {
|
|
9355
|
+
* @param {AwardedsApiAwardedsUpdateRequest} requestParameters Request parameters.
|
|
9107
9356
|
* @param {*} [options] Override http request option.
|
|
9108
9357
|
* @throws {RequiredError}
|
|
9109
9358
|
* @memberof AwardedsApi
|
|
9110
9359
|
*/
|
|
9111
|
-
public awardedsUpdate(
|
|
9112
|
-
return AwardedsApiFp(this.configuration).awardedsUpdate(promotionId, options).then((request) => request(this.axios, this.basePath));
|
|
9360
|
+
public awardedsUpdate(requestParameters: AwardedsApiAwardedsUpdateRequest, options?: RawAxiosRequestConfig) {
|
|
9361
|
+
return AwardedsApiFp(this.configuration).awardedsUpdate(requestParameters.promotionId, options).then((request) => request(this.axios, this.basePath));
|
|
9113
9362
|
}
|
|
9114
9363
|
}
|
|
9115
9364
|
|
|
@@ -9393,133 +9642,229 @@ export const AwardsApiFactory = function (configuration?: Configuration, basePat
|
|
|
9393
9642
|
/**
|
|
9394
9643
|
*
|
|
9395
9644
|
* @summary Cadastra um prêmio na promoção
|
|
9396
|
-
* @param {
|
|
9397
|
-
* @param {Array<Award>} [award]
|
|
9645
|
+
* @param {AwardsApiAwardsCreateRequest} requestParameters Request parameters.
|
|
9398
9646
|
* @param {*} [options] Override http request option.
|
|
9399
9647
|
* @throws {RequiredError}
|
|
9400
9648
|
*/
|
|
9401
|
-
awardsCreate(
|
|
9402
|
-
return localVarFp.awardsCreate(promotionId, award, options).then((request) => request(axios, basePath));
|
|
9649
|
+
awardsCreate(requestParameters: AwardsApiAwardsCreateRequest, options?: RawAxiosRequestConfig): AxiosPromise<AwardsCreate200Response> {
|
|
9650
|
+
return localVarFp.awardsCreate(requestParameters.promotionId, requestParameters.award, options).then((request) => request(axios, basePath));
|
|
9403
9651
|
},
|
|
9404
9652
|
/**
|
|
9405
9653
|
*
|
|
9406
9654
|
* @summary Deleta um prêmio da promoção
|
|
9407
|
-
* @param {
|
|
9408
|
-
* @param {string} id ID do prêmio
|
|
9655
|
+
* @param {AwardsApiAwardsDeleteRequest} requestParameters Request parameters.
|
|
9409
9656
|
* @param {*} [options] Override http request option.
|
|
9410
9657
|
* @throws {RequiredError}
|
|
9411
9658
|
*/
|
|
9412
|
-
awardsDelete(
|
|
9413
|
-
return localVarFp.awardsDelete(promotionId, id, options).then((request) => request(axios, basePath));
|
|
9659
|
+
awardsDelete(requestParameters: AwardsApiAwardsDeleteRequest, options?: RawAxiosRequestConfig): AxiosPromise<AwardsDelete200Response> {
|
|
9660
|
+
return localVarFp.awardsDelete(requestParameters.promotionId, requestParameters.id, options).then((request) => request(axios, basePath));
|
|
9414
9661
|
},
|
|
9415
9662
|
/**
|
|
9416
9663
|
*
|
|
9417
9664
|
* @summary Pesquisa por prêmios na promoção
|
|
9418
|
-
* @param {
|
|
9419
|
-
* @param {string} [fields] Campos a serem retornados
|
|
9420
|
-
* @param {string} [include] Dados relacionados a serem retornados
|
|
9421
|
-
* @param {string} [id] Id do prêmio
|
|
9422
|
-
* @param {string} [raffleId] Id do sorteio
|
|
9423
|
-
* @param {string} [raffleType] Tipo do sorteio
|
|
9665
|
+
* @param {AwardsApiAwardsIndexRequest} requestParameters Request parameters.
|
|
9424
9666
|
* @param {*} [options] Override http request option.
|
|
9425
9667
|
* @throws {RequiredError}
|
|
9426
9668
|
*/
|
|
9427
|
-
awardsIndex(
|
|
9428
|
-
return localVarFp.awardsIndex(promotionId, fields, include, id, raffleId, raffleType, options).then((request) => request(axios, basePath));
|
|
9669
|
+
awardsIndex(requestParameters: AwardsApiAwardsIndexRequest, options?: RawAxiosRequestConfig): AxiosPromise<AwardsIndex200Response> {
|
|
9670
|
+
return localVarFp.awardsIndex(requestParameters.promotionId, requestParameters.fields, requestParameters.include, requestParameters.id, requestParameters.raffleId, requestParameters.raffleType, options).then((request) => request(axios, basePath));
|
|
9429
9671
|
},
|
|
9430
9672
|
/**
|
|
9431
9673
|
*
|
|
9432
9674
|
* @summary Cadastra ou atualiza um prêmio na promoção
|
|
9433
|
-
* @param {
|
|
9434
|
-
* @param {Array<Award>} [award]
|
|
9675
|
+
* @param {AwardsApiAwardsUpdateRequest} requestParameters Request parameters.
|
|
9435
9676
|
* @param {*} [options] Override http request option.
|
|
9436
9677
|
* @throws {RequiredError}
|
|
9437
9678
|
*/
|
|
9438
|
-
awardsUpdate(
|
|
9439
|
-
return localVarFp.awardsUpdate(promotionId, award, options).then((request) => request(axios, basePath));
|
|
9679
|
+
awardsUpdate(requestParameters: AwardsApiAwardsUpdateRequest, options?: RawAxiosRequestConfig): AxiosPromise<AwardsUpdate200Response> {
|
|
9680
|
+
return localVarFp.awardsUpdate(requestParameters.promotionId, requestParameters.award, options).then((request) => request(axios, basePath));
|
|
9440
9681
|
},
|
|
9441
9682
|
};
|
|
9442
9683
|
};
|
|
9443
9684
|
|
|
9444
9685
|
/**
|
|
9445
|
-
*
|
|
9686
|
+
* Request parameters for awardsCreate operation in AwardsApi.
|
|
9446
9687
|
* @export
|
|
9447
|
-
* @
|
|
9448
|
-
* @extends {BaseAPI}
|
|
9688
|
+
* @interface AwardsApiAwardsCreateRequest
|
|
9449
9689
|
*/
|
|
9450
|
-
export
|
|
9690
|
+
export interface AwardsApiAwardsCreateRequest {
|
|
9451
9691
|
/**
|
|
9452
|
-
*
|
|
9453
|
-
* @
|
|
9454
|
-
* @
|
|
9455
|
-
* @param {Array<Award>} [award]
|
|
9456
|
-
* @param {*} [options] Override http request option.
|
|
9457
|
-
* @throws {RequiredError}
|
|
9458
|
-
* @memberof AwardsApi
|
|
9692
|
+
* ID da promoção
|
|
9693
|
+
* @type {string}
|
|
9694
|
+
* @memberof AwardsApiAwardsCreate
|
|
9459
9695
|
*/
|
|
9460
|
-
|
|
9461
|
-
return AwardsApiFp(this.configuration).awardsCreate(promotionId, award, options).then((request) => request(this.axios, this.basePath));
|
|
9462
|
-
}
|
|
9696
|
+
readonly promotionId: string
|
|
9463
9697
|
|
|
9464
9698
|
/**
|
|
9465
9699
|
*
|
|
9466
|
-
* @
|
|
9467
|
-
* @
|
|
9468
|
-
* @param {string} id ID do prêmio
|
|
9469
|
-
* @param {*} [options] Override http request option.
|
|
9470
|
-
* @throws {RequiredError}
|
|
9471
|
-
* @memberof AwardsApi
|
|
9700
|
+
* @type {Array<Award>}
|
|
9701
|
+
* @memberof AwardsApiAwardsCreate
|
|
9472
9702
|
*/
|
|
9473
|
-
|
|
9474
|
-
|
|
9475
|
-
}
|
|
9703
|
+
readonly award?: Array<Award>
|
|
9704
|
+
}
|
|
9476
9705
|
|
|
9706
|
+
/**
|
|
9707
|
+
* Request parameters for awardsDelete operation in AwardsApi.
|
|
9708
|
+
* @export
|
|
9709
|
+
* @interface AwardsApiAwardsDeleteRequest
|
|
9710
|
+
*/
|
|
9711
|
+
export interface AwardsApiAwardsDeleteRequest {
|
|
9477
9712
|
/**
|
|
9478
|
-
*
|
|
9479
|
-
* @
|
|
9480
|
-
* @
|
|
9481
|
-
* @param {string} [fields] Campos a serem retornados
|
|
9482
|
-
* @param {string} [include] Dados relacionados a serem retornados
|
|
9483
|
-
* @param {string} [id] Id do prêmio
|
|
9484
|
-
* @param {string} [raffleId] Id do sorteio
|
|
9485
|
-
* @param {string} [raffleType] Tipo do sorteio
|
|
9486
|
-
* @param {*} [options] Override http request option.
|
|
9487
|
-
* @throws {RequiredError}
|
|
9488
|
-
* @memberof AwardsApi
|
|
9713
|
+
* ID da promoção
|
|
9714
|
+
* @type {string}
|
|
9715
|
+
* @memberof AwardsApiAwardsDelete
|
|
9489
9716
|
*/
|
|
9490
|
-
|
|
9491
|
-
return AwardsApiFp(this.configuration).awardsIndex(promotionId, fields, include, id, raffleId, raffleType, options).then((request) => request(this.axios, this.basePath));
|
|
9492
|
-
}
|
|
9717
|
+
readonly promotionId: string
|
|
9493
9718
|
|
|
9494
9719
|
/**
|
|
9495
|
-
*
|
|
9496
|
-
* @
|
|
9497
|
-
* @
|
|
9498
|
-
* @param {Array<Award>} [award]
|
|
9499
|
-
* @param {*} [options] Override http request option.
|
|
9500
|
-
* @throws {RequiredError}
|
|
9501
|
-
* @memberof AwardsApi
|
|
9720
|
+
* ID do prêmio
|
|
9721
|
+
* @type {string}
|
|
9722
|
+
* @memberof AwardsApiAwardsDelete
|
|
9502
9723
|
*/
|
|
9503
|
-
|
|
9504
|
-
return AwardsApiFp(this.configuration).awardsUpdate(promotionId, award, options).then((request) => request(this.axios, this.basePath));
|
|
9505
|
-
}
|
|
9724
|
+
readonly id: string
|
|
9506
9725
|
}
|
|
9507
9726
|
|
|
9508
|
-
|
|
9509
|
-
|
|
9510
9727
|
/**
|
|
9511
|
-
*
|
|
9728
|
+
* Request parameters for awardsIndex operation in AwardsApi.
|
|
9512
9729
|
* @export
|
|
9730
|
+
* @interface AwardsApiAwardsIndexRequest
|
|
9513
9731
|
*/
|
|
9514
|
-
export
|
|
9515
|
-
|
|
9516
|
-
|
|
9517
|
-
|
|
9518
|
-
|
|
9519
|
-
|
|
9520
|
-
|
|
9521
|
-
|
|
9522
|
-
|
|
9732
|
+
export interface AwardsApiAwardsIndexRequest {
|
|
9733
|
+
/**
|
|
9734
|
+
* ID da promoção
|
|
9735
|
+
* @type {string}
|
|
9736
|
+
* @memberof AwardsApiAwardsIndex
|
|
9737
|
+
*/
|
|
9738
|
+
readonly promotionId: string
|
|
9739
|
+
|
|
9740
|
+
/**
|
|
9741
|
+
* Campos a serem retornados
|
|
9742
|
+
* @type {string}
|
|
9743
|
+
* @memberof AwardsApiAwardsIndex
|
|
9744
|
+
*/
|
|
9745
|
+
readonly fields?: string
|
|
9746
|
+
|
|
9747
|
+
/**
|
|
9748
|
+
* Dados relacionados a serem retornados
|
|
9749
|
+
* @type {string}
|
|
9750
|
+
* @memberof AwardsApiAwardsIndex
|
|
9751
|
+
*/
|
|
9752
|
+
readonly include?: string
|
|
9753
|
+
|
|
9754
|
+
/**
|
|
9755
|
+
* Id do prêmio
|
|
9756
|
+
* @type {string}
|
|
9757
|
+
* @memberof AwardsApiAwardsIndex
|
|
9758
|
+
*/
|
|
9759
|
+
readonly id?: string
|
|
9760
|
+
|
|
9761
|
+
/**
|
|
9762
|
+
* Id do sorteio
|
|
9763
|
+
* @type {string}
|
|
9764
|
+
* @memberof AwardsApiAwardsIndex
|
|
9765
|
+
*/
|
|
9766
|
+
readonly raffleId?: string
|
|
9767
|
+
|
|
9768
|
+
/**
|
|
9769
|
+
* Tipo do sorteio
|
|
9770
|
+
* @type {string}
|
|
9771
|
+
* @memberof AwardsApiAwardsIndex
|
|
9772
|
+
*/
|
|
9773
|
+
readonly raffleType?: string
|
|
9774
|
+
}
|
|
9775
|
+
|
|
9776
|
+
/**
|
|
9777
|
+
* Request parameters for awardsUpdate operation in AwardsApi.
|
|
9778
|
+
* @export
|
|
9779
|
+
* @interface AwardsApiAwardsUpdateRequest
|
|
9780
|
+
*/
|
|
9781
|
+
export interface AwardsApiAwardsUpdateRequest {
|
|
9782
|
+
/**
|
|
9783
|
+
* ID da promoção
|
|
9784
|
+
* @type {string}
|
|
9785
|
+
* @memberof AwardsApiAwardsUpdate
|
|
9786
|
+
*/
|
|
9787
|
+
readonly promotionId: string
|
|
9788
|
+
|
|
9789
|
+
/**
|
|
9790
|
+
*
|
|
9791
|
+
* @type {Array<Award>}
|
|
9792
|
+
* @memberof AwardsApiAwardsUpdate
|
|
9793
|
+
*/
|
|
9794
|
+
readonly award?: Array<Award>
|
|
9795
|
+
}
|
|
9796
|
+
|
|
9797
|
+
/**
|
|
9798
|
+
* AwardsApi - object-oriented interface
|
|
9799
|
+
* @export
|
|
9800
|
+
* @class AwardsApi
|
|
9801
|
+
* @extends {BaseAPI}
|
|
9802
|
+
*/
|
|
9803
|
+
export class AwardsApi extends BaseAPI {
|
|
9804
|
+
/**
|
|
9805
|
+
*
|
|
9806
|
+
* @summary Cadastra um prêmio na promoção
|
|
9807
|
+
* @param {AwardsApiAwardsCreateRequest} requestParameters Request parameters.
|
|
9808
|
+
* @param {*} [options] Override http request option.
|
|
9809
|
+
* @throws {RequiredError}
|
|
9810
|
+
* @memberof AwardsApi
|
|
9811
|
+
*/
|
|
9812
|
+
public awardsCreate(requestParameters: AwardsApiAwardsCreateRequest, options?: RawAxiosRequestConfig) {
|
|
9813
|
+
return AwardsApiFp(this.configuration).awardsCreate(requestParameters.promotionId, requestParameters.award, options).then((request) => request(this.axios, this.basePath));
|
|
9814
|
+
}
|
|
9815
|
+
|
|
9816
|
+
/**
|
|
9817
|
+
*
|
|
9818
|
+
* @summary Deleta um prêmio da promoção
|
|
9819
|
+
* @param {AwardsApiAwardsDeleteRequest} requestParameters Request parameters.
|
|
9820
|
+
* @param {*} [options] Override http request option.
|
|
9821
|
+
* @throws {RequiredError}
|
|
9822
|
+
* @memberof AwardsApi
|
|
9823
|
+
*/
|
|
9824
|
+
public awardsDelete(requestParameters: AwardsApiAwardsDeleteRequest, options?: RawAxiosRequestConfig) {
|
|
9825
|
+
return AwardsApiFp(this.configuration).awardsDelete(requestParameters.promotionId, requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
9826
|
+
}
|
|
9827
|
+
|
|
9828
|
+
/**
|
|
9829
|
+
*
|
|
9830
|
+
* @summary Pesquisa por prêmios na promoção
|
|
9831
|
+
* @param {AwardsApiAwardsIndexRequest} requestParameters Request parameters.
|
|
9832
|
+
* @param {*} [options] Override http request option.
|
|
9833
|
+
* @throws {RequiredError}
|
|
9834
|
+
* @memberof AwardsApi
|
|
9835
|
+
*/
|
|
9836
|
+
public awardsIndex(requestParameters: AwardsApiAwardsIndexRequest, options?: RawAxiosRequestConfig) {
|
|
9837
|
+
return AwardsApiFp(this.configuration).awardsIndex(requestParameters.promotionId, requestParameters.fields, requestParameters.include, requestParameters.id, requestParameters.raffleId, requestParameters.raffleType, options).then((request) => request(this.axios, this.basePath));
|
|
9838
|
+
}
|
|
9839
|
+
|
|
9840
|
+
/**
|
|
9841
|
+
*
|
|
9842
|
+
* @summary Cadastra ou atualiza um prêmio na promoção
|
|
9843
|
+
* @param {AwardsApiAwardsUpdateRequest} requestParameters Request parameters.
|
|
9844
|
+
* @param {*} [options] Override http request option.
|
|
9845
|
+
* @throws {RequiredError}
|
|
9846
|
+
* @memberof AwardsApi
|
|
9847
|
+
*/
|
|
9848
|
+
public awardsUpdate(requestParameters: AwardsApiAwardsUpdateRequest, options?: RawAxiosRequestConfig) {
|
|
9849
|
+
return AwardsApiFp(this.configuration).awardsUpdate(requestParameters.promotionId, requestParameters.award, options).then((request) => request(this.axios, this.basePath));
|
|
9850
|
+
}
|
|
9851
|
+
}
|
|
9852
|
+
|
|
9853
|
+
|
|
9854
|
+
|
|
9855
|
+
/**
|
|
9856
|
+
* BlockedUsersApi - axios parameter creator
|
|
9857
|
+
* @export
|
|
9858
|
+
*/
|
|
9859
|
+
export const BlockedUsersApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
9860
|
+
return {
|
|
9861
|
+
/**
|
|
9862
|
+
*
|
|
9863
|
+
* @summary Cadastra um CPF na lista de CPFs bloqueados na promoção
|
|
9864
|
+
* @param {string} promotionId ID da promoção
|
|
9865
|
+
* @param {BlacklistCreateRequest} [blacklistCreateRequest]
|
|
9866
|
+
* @param {*} [options] Override http request option.
|
|
9867
|
+
* @throws {RequiredError}
|
|
9523
9868
|
*/
|
|
9524
9869
|
blacklistCreate: async (promotionId: string, blacklistCreateRequest?: BlacklistCreateRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
9525
9870
|
// verify required parameter 'promotionId' is not null or undefined
|
|
@@ -9711,40 +10056,106 @@ export const BlockedUsersApiFactory = function (configuration?: Configuration, b
|
|
|
9711
10056
|
/**
|
|
9712
10057
|
*
|
|
9713
10058
|
* @summary Cadastra um CPF na lista de CPFs bloqueados na promoção
|
|
9714
|
-
* @param {
|
|
9715
|
-
* @param {BlacklistCreateRequest} [blacklistCreateRequest]
|
|
10059
|
+
* @param {BlockedUsersApiBlacklistCreateRequest} requestParameters Request parameters.
|
|
9716
10060
|
* @param {*} [options] Override http request option.
|
|
9717
10061
|
* @throws {RequiredError}
|
|
9718
10062
|
*/
|
|
9719
|
-
blacklistCreate(
|
|
9720
|
-
return localVarFp.blacklistCreate(promotionId, blacklistCreateRequest, options).then((request) => request(axios, basePath));
|
|
10063
|
+
blacklistCreate(requestParameters: BlockedUsersApiBlacklistCreateRequest, options?: RawAxiosRequestConfig): AxiosPromise<BlacklistCreate200Response> {
|
|
10064
|
+
return localVarFp.blacklistCreate(requestParameters.promotionId, requestParameters.blacklistCreateRequest, options).then((request) => request(axios, basePath));
|
|
9721
10065
|
},
|
|
9722
10066
|
/**
|
|
9723
10067
|
*
|
|
9724
10068
|
* @summary Exclui um CPF da lista de CPFs bloqueados da promoção
|
|
9725
|
-
* @param {
|
|
9726
|
-
* @param {number} id ID do CPF bloqueado na promoção
|
|
10069
|
+
* @param {BlockedUsersApiBlacklistDeleteRequest} requestParameters Request parameters.
|
|
9727
10070
|
* @param {*} [options] Override http request option.
|
|
9728
10071
|
* @throws {RequiredError}
|
|
9729
10072
|
*/
|
|
9730
|
-
blacklistDelete(
|
|
9731
|
-
return localVarFp.blacklistDelete(promotionId, id, options).then((request) => request(axios, basePath));
|
|
10073
|
+
blacklistDelete(requestParameters: BlockedUsersApiBlacklistDeleteRequest, options?: RawAxiosRequestConfig): AxiosPromise<BlacklistDelete200Response> {
|
|
10074
|
+
return localVarFp.blacklistDelete(requestParameters.promotionId, requestParameters.id, options).then((request) => request(axios, basePath));
|
|
9732
10075
|
},
|
|
9733
10076
|
/**
|
|
9734
10077
|
*
|
|
9735
10078
|
* @summary Pesquisa por CPFs bloqueados na promoção
|
|
9736
|
-
* @param {
|
|
9737
|
-
* @param {string} [fields] Campos a serem retornados
|
|
9738
|
-
* @param {string} [cpf] CPF bloqueado
|
|
10079
|
+
* @param {BlockedUsersApiBlacklistIndexRequest} requestParameters Request parameters.
|
|
9739
10080
|
* @param {*} [options] Override http request option.
|
|
9740
10081
|
* @throws {RequiredError}
|
|
9741
10082
|
*/
|
|
9742
|
-
blacklistIndex(
|
|
9743
|
-
return localVarFp.blacklistIndex(promotionId, fields, cpf, options).then((request) => request(axios, basePath));
|
|
10083
|
+
blacklistIndex(requestParameters: BlockedUsersApiBlacklistIndexRequest, options?: RawAxiosRequestConfig): AxiosPromise<BlacklistIndex200Response> {
|
|
10084
|
+
return localVarFp.blacklistIndex(requestParameters.promotionId, requestParameters.fields, requestParameters.cpf, options).then((request) => request(axios, basePath));
|
|
9744
10085
|
},
|
|
9745
10086
|
};
|
|
9746
10087
|
};
|
|
9747
10088
|
|
|
10089
|
+
/**
|
|
10090
|
+
* Request parameters for blacklistCreate operation in BlockedUsersApi.
|
|
10091
|
+
* @export
|
|
10092
|
+
* @interface BlockedUsersApiBlacklistCreateRequest
|
|
10093
|
+
*/
|
|
10094
|
+
export interface BlockedUsersApiBlacklistCreateRequest {
|
|
10095
|
+
/**
|
|
10096
|
+
* ID da promoção
|
|
10097
|
+
* @type {string}
|
|
10098
|
+
* @memberof BlockedUsersApiBlacklistCreate
|
|
10099
|
+
*/
|
|
10100
|
+
readonly promotionId: string
|
|
10101
|
+
|
|
10102
|
+
/**
|
|
10103
|
+
*
|
|
10104
|
+
* @type {BlacklistCreateRequest}
|
|
10105
|
+
* @memberof BlockedUsersApiBlacklistCreate
|
|
10106
|
+
*/
|
|
10107
|
+
readonly blacklistCreateRequest?: BlacklistCreateRequest
|
|
10108
|
+
}
|
|
10109
|
+
|
|
10110
|
+
/**
|
|
10111
|
+
* Request parameters for blacklistDelete operation in BlockedUsersApi.
|
|
10112
|
+
* @export
|
|
10113
|
+
* @interface BlockedUsersApiBlacklistDeleteRequest
|
|
10114
|
+
*/
|
|
10115
|
+
export interface BlockedUsersApiBlacklistDeleteRequest {
|
|
10116
|
+
/**
|
|
10117
|
+
* ID da promoção
|
|
10118
|
+
* @type {string}
|
|
10119
|
+
* @memberof BlockedUsersApiBlacklistDelete
|
|
10120
|
+
*/
|
|
10121
|
+
readonly promotionId: string
|
|
10122
|
+
|
|
10123
|
+
/**
|
|
10124
|
+
* ID do CPF bloqueado na promoção
|
|
10125
|
+
* @type {number}
|
|
10126
|
+
* @memberof BlockedUsersApiBlacklistDelete
|
|
10127
|
+
*/
|
|
10128
|
+
readonly id: number
|
|
10129
|
+
}
|
|
10130
|
+
|
|
10131
|
+
/**
|
|
10132
|
+
* Request parameters for blacklistIndex operation in BlockedUsersApi.
|
|
10133
|
+
* @export
|
|
10134
|
+
* @interface BlockedUsersApiBlacklistIndexRequest
|
|
10135
|
+
*/
|
|
10136
|
+
export interface BlockedUsersApiBlacklistIndexRequest {
|
|
10137
|
+
/**
|
|
10138
|
+
* ID da promoção
|
|
10139
|
+
* @type {string}
|
|
10140
|
+
* @memberof BlockedUsersApiBlacklistIndex
|
|
10141
|
+
*/
|
|
10142
|
+
readonly promotionId: string
|
|
10143
|
+
|
|
10144
|
+
/**
|
|
10145
|
+
* Campos a serem retornados
|
|
10146
|
+
* @type {string}
|
|
10147
|
+
* @memberof BlockedUsersApiBlacklistIndex
|
|
10148
|
+
*/
|
|
10149
|
+
readonly fields?: string
|
|
10150
|
+
|
|
10151
|
+
/**
|
|
10152
|
+
* CPF bloqueado
|
|
10153
|
+
* @type {string}
|
|
10154
|
+
* @memberof BlockedUsersApiBlacklistIndex
|
|
10155
|
+
*/
|
|
10156
|
+
readonly cpf?: string
|
|
10157
|
+
}
|
|
10158
|
+
|
|
9748
10159
|
/**
|
|
9749
10160
|
* BlockedUsersApi - object-oriented interface
|
|
9750
10161
|
* @export
|
|
@@ -9755,41 +10166,37 @@ export class BlockedUsersApi extends BaseAPI {
|
|
|
9755
10166
|
/**
|
|
9756
10167
|
*
|
|
9757
10168
|
* @summary Cadastra um CPF na lista de CPFs bloqueados na promoção
|
|
9758
|
-
* @param {
|
|
9759
|
-
* @param {BlacklistCreateRequest} [blacklistCreateRequest]
|
|
10169
|
+
* @param {BlockedUsersApiBlacklistCreateRequest} requestParameters Request parameters.
|
|
9760
10170
|
* @param {*} [options] Override http request option.
|
|
9761
10171
|
* @throws {RequiredError}
|
|
9762
10172
|
* @memberof BlockedUsersApi
|
|
9763
10173
|
*/
|
|
9764
|
-
public blacklistCreate(
|
|
9765
|
-
return BlockedUsersApiFp(this.configuration).blacklistCreate(promotionId, blacklistCreateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
10174
|
+
public blacklistCreate(requestParameters: BlockedUsersApiBlacklistCreateRequest, options?: RawAxiosRequestConfig) {
|
|
10175
|
+
return BlockedUsersApiFp(this.configuration).blacklistCreate(requestParameters.promotionId, requestParameters.blacklistCreateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
9766
10176
|
}
|
|
9767
10177
|
|
|
9768
10178
|
/**
|
|
9769
10179
|
*
|
|
9770
10180
|
* @summary Exclui um CPF da lista de CPFs bloqueados da promoção
|
|
9771
|
-
* @param {
|
|
9772
|
-
* @param {number} id ID do CPF bloqueado na promoção
|
|
10181
|
+
* @param {BlockedUsersApiBlacklistDeleteRequest} requestParameters Request parameters.
|
|
9773
10182
|
* @param {*} [options] Override http request option.
|
|
9774
10183
|
* @throws {RequiredError}
|
|
9775
10184
|
* @memberof BlockedUsersApi
|
|
9776
10185
|
*/
|
|
9777
|
-
public blacklistDelete(
|
|
9778
|
-
return BlockedUsersApiFp(this.configuration).blacklistDelete(promotionId, id, options).then((request) => request(this.axios, this.basePath));
|
|
10186
|
+
public blacklistDelete(requestParameters: BlockedUsersApiBlacklistDeleteRequest, options?: RawAxiosRequestConfig) {
|
|
10187
|
+
return BlockedUsersApiFp(this.configuration).blacklistDelete(requestParameters.promotionId, requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
9779
10188
|
}
|
|
9780
10189
|
|
|
9781
10190
|
/**
|
|
9782
10191
|
*
|
|
9783
10192
|
* @summary Pesquisa por CPFs bloqueados na promoção
|
|
9784
|
-
* @param {
|
|
9785
|
-
* @param {string} [fields] Campos a serem retornados
|
|
9786
|
-
* @param {string} [cpf] CPF bloqueado
|
|
10193
|
+
* @param {BlockedUsersApiBlacklistIndexRequest} requestParameters Request parameters.
|
|
9787
10194
|
* @param {*} [options] Override http request option.
|
|
9788
10195
|
* @throws {RequiredError}
|
|
9789
10196
|
* @memberof BlockedUsersApi
|
|
9790
10197
|
*/
|
|
9791
|
-
public blacklistIndex(
|
|
9792
|
-
return BlockedUsersApiFp(this.configuration).blacklistIndex(promotionId, fields, cpf, options).then((request) => request(this.axios, this.basePath));
|
|
10198
|
+
public blacklistIndex(requestParameters: BlockedUsersApiBlacklistIndexRequest, options?: RawAxiosRequestConfig) {
|
|
10199
|
+
return BlockedUsersApiFp(this.configuration).blacklistIndex(requestParameters.promotionId, requestParameters.fields, requestParameters.cpf, options).then((request) => request(this.axios, this.basePath));
|
|
9793
10200
|
}
|
|
9794
10201
|
}
|
|
9795
10202
|
|
|
@@ -9937,28 +10344,68 @@ export const BrandingApiFactory = function (configuration?: Configuration, baseP
|
|
|
9937
10344
|
/**
|
|
9938
10345
|
*
|
|
9939
10346
|
* @summary Dados referentes a identidade visual da marca da promoção
|
|
9940
|
-
* @param {
|
|
9941
|
-
* @param {string} [fields] Campos a serem retornados pela API
|
|
10347
|
+
* @param {BrandingApiBrandingIndexRequest} requestParameters Request parameters.
|
|
9942
10348
|
* @param {*} [options] Override http request option.
|
|
9943
10349
|
* @throws {RequiredError}
|
|
9944
10350
|
*/
|
|
9945
|
-
brandingIndex(
|
|
9946
|
-
return localVarFp.brandingIndex(promotionId, fields, options).then((request) => request(axios, basePath));
|
|
10351
|
+
brandingIndex(requestParameters: BrandingApiBrandingIndexRequest, options?: RawAxiosRequestConfig): AxiosPromise<BrandingIndex200Response> {
|
|
10352
|
+
return localVarFp.brandingIndex(requestParameters.promotionId, requestParameters.fields, options).then((request) => request(axios, basePath));
|
|
9947
10353
|
},
|
|
9948
10354
|
/**
|
|
9949
10355
|
*
|
|
9950
10356
|
* @summary Altera os dados referentes a identidade visual da marca da promoção
|
|
9951
|
-
* @param {
|
|
9952
|
-
* @param {Branding} [branding]
|
|
10357
|
+
* @param {BrandingApiBrandingUpdateRequest} requestParameters Request parameters.
|
|
9953
10358
|
* @param {*} [options] Override http request option.
|
|
9954
10359
|
* @throws {RequiredError}
|
|
9955
10360
|
*/
|
|
9956
|
-
brandingUpdate(
|
|
9957
|
-
return localVarFp.brandingUpdate(promotionId, branding, options).then((request) => request(axios, basePath));
|
|
10361
|
+
brandingUpdate(requestParameters: BrandingApiBrandingUpdateRequest, options?: RawAxiosRequestConfig): AxiosPromise<BrandingUpdate200Response> {
|
|
10362
|
+
return localVarFp.brandingUpdate(requestParameters.promotionId, requestParameters.branding, options).then((request) => request(axios, basePath));
|
|
9958
10363
|
},
|
|
9959
10364
|
};
|
|
9960
10365
|
};
|
|
9961
10366
|
|
|
10367
|
+
/**
|
|
10368
|
+
* Request parameters for brandingIndex operation in BrandingApi.
|
|
10369
|
+
* @export
|
|
10370
|
+
* @interface BrandingApiBrandingIndexRequest
|
|
10371
|
+
*/
|
|
10372
|
+
export interface BrandingApiBrandingIndexRequest {
|
|
10373
|
+
/**
|
|
10374
|
+
* ID da promoção
|
|
10375
|
+
* @type {string}
|
|
10376
|
+
* @memberof BrandingApiBrandingIndex
|
|
10377
|
+
*/
|
|
10378
|
+
readonly promotionId: string
|
|
10379
|
+
|
|
10380
|
+
/**
|
|
10381
|
+
* Campos a serem retornados pela API
|
|
10382
|
+
* @type {string}
|
|
10383
|
+
* @memberof BrandingApiBrandingIndex
|
|
10384
|
+
*/
|
|
10385
|
+
readonly fields?: string
|
|
10386
|
+
}
|
|
10387
|
+
|
|
10388
|
+
/**
|
|
10389
|
+
* Request parameters for brandingUpdate operation in BrandingApi.
|
|
10390
|
+
* @export
|
|
10391
|
+
* @interface BrandingApiBrandingUpdateRequest
|
|
10392
|
+
*/
|
|
10393
|
+
export interface BrandingApiBrandingUpdateRequest {
|
|
10394
|
+
/**
|
|
10395
|
+
* ID da promoção
|
|
10396
|
+
* @type {string}
|
|
10397
|
+
* @memberof BrandingApiBrandingUpdate
|
|
10398
|
+
*/
|
|
10399
|
+
readonly promotionId: string
|
|
10400
|
+
|
|
10401
|
+
/**
|
|
10402
|
+
*
|
|
10403
|
+
* @type {Branding}
|
|
10404
|
+
* @memberof BrandingApiBrandingUpdate
|
|
10405
|
+
*/
|
|
10406
|
+
readonly branding?: Branding
|
|
10407
|
+
}
|
|
10408
|
+
|
|
9962
10409
|
/**
|
|
9963
10410
|
* BrandingApi - object-oriented interface
|
|
9964
10411
|
* @export
|
|
@@ -9969,27 +10416,25 @@ export class BrandingApi extends BaseAPI {
|
|
|
9969
10416
|
/**
|
|
9970
10417
|
*
|
|
9971
10418
|
* @summary Dados referentes a identidade visual da marca da promoção
|
|
9972
|
-
* @param {
|
|
9973
|
-
* @param {string} [fields] Campos a serem retornados pela API
|
|
10419
|
+
* @param {BrandingApiBrandingIndexRequest} requestParameters Request parameters.
|
|
9974
10420
|
* @param {*} [options] Override http request option.
|
|
9975
10421
|
* @throws {RequiredError}
|
|
9976
10422
|
* @memberof BrandingApi
|
|
9977
10423
|
*/
|
|
9978
|
-
public brandingIndex(
|
|
9979
|
-
return BrandingApiFp(this.configuration).brandingIndex(promotionId, fields, options).then((request) => request(this.axios, this.basePath));
|
|
10424
|
+
public brandingIndex(requestParameters: BrandingApiBrandingIndexRequest, options?: RawAxiosRequestConfig) {
|
|
10425
|
+
return BrandingApiFp(this.configuration).brandingIndex(requestParameters.promotionId, requestParameters.fields, options).then((request) => request(this.axios, this.basePath));
|
|
9980
10426
|
}
|
|
9981
10427
|
|
|
9982
10428
|
/**
|
|
9983
10429
|
*
|
|
9984
10430
|
* @summary Altera os dados referentes a identidade visual da marca da promoção
|
|
9985
|
-
* @param {
|
|
9986
|
-
* @param {Branding} [branding]
|
|
10431
|
+
* @param {BrandingApiBrandingUpdateRequest} requestParameters Request parameters.
|
|
9987
10432
|
* @param {*} [options] Override http request option.
|
|
9988
10433
|
* @throws {RequiredError}
|
|
9989
10434
|
* @memberof BrandingApi
|
|
9990
10435
|
*/
|
|
9991
|
-
public brandingUpdate(
|
|
9992
|
-
return BrandingApiFp(this.configuration).brandingUpdate(promotionId, branding, options).then((request) => request(this.axios, this.basePath));
|
|
10436
|
+
public brandingUpdate(requestParameters: BrandingApiBrandingUpdateRequest, options?: RawAxiosRequestConfig) {
|
|
10437
|
+
return BrandingApiFp(this.configuration).brandingUpdate(requestParameters.promotionId, requestParameters.branding, options).then((request) => request(this.axios, this.basePath));
|
|
9993
10438
|
}
|
|
9994
10439
|
}
|
|
9995
10440
|
|
|
@@ -10155,31 +10600,89 @@ export const ContentApiFactory = function (configuration?: Configuration, basePa
|
|
|
10155
10600
|
/**
|
|
10156
10601
|
*
|
|
10157
10602
|
* @summary Cria um novo conteúdo para a promoção
|
|
10158
|
-
* @param {
|
|
10159
|
-
* @param {Content} [content]
|
|
10603
|
+
* @param {ContentApiContentCreateRequest} requestParameters Request parameters.
|
|
10160
10604
|
* @param {*} [options] Override http request option.
|
|
10161
10605
|
* @throws {RequiredError}
|
|
10162
10606
|
*/
|
|
10163
|
-
contentCreate(
|
|
10164
|
-
return localVarFp.contentCreate(promotionId, content, options).then((request) => request(axios, basePath));
|
|
10607
|
+
contentCreate(requestParameters: ContentApiContentCreateRequest, options?: RawAxiosRequestConfig): AxiosPromise<ContentCreate200Response> {
|
|
10608
|
+
return localVarFp.contentCreate(requestParameters.promotionId, requestParameters.content, options).then((request) => request(axios, basePath));
|
|
10165
10609
|
},
|
|
10166
10610
|
/**
|
|
10167
10611
|
*
|
|
10168
10612
|
* @summary Dados referentes aos conteúdos (que não são artigos de blog) da promoção
|
|
10169
|
-
* @param {
|
|
10170
|
-
* @param {string} [fields] Campos a serem retornados pela API
|
|
10171
|
-
* @param {string} [key] Pesquisa pela chave principal do conteúdo
|
|
10172
|
-
* @param {string} [group] Pesquisa pela chave do grupo do conteúdo
|
|
10173
|
-
* @param {string} [type] Pesquisa pelo tipo do conteúdo
|
|
10613
|
+
* @param {ContentApiContentIndexRequest} requestParameters Request parameters.
|
|
10174
10614
|
* @param {*} [options] Override http request option.
|
|
10175
10615
|
* @throws {RequiredError}
|
|
10176
10616
|
*/
|
|
10177
|
-
contentIndex(
|
|
10178
|
-
return localVarFp.contentIndex(promotionId, fields, key, group, type, options).then((request) => request(axios, basePath));
|
|
10617
|
+
contentIndex(requestParameters: ContentApiContentIndexRequest, options?: RawAxiosRequestConfig): AxiosPromise<ContentIndex200Response> {
|
|
10618
|
+
return localVarFp.contentIndex(requestParameters.promotionId, requestParameters.fields, requestParameters.key, requestParameters.group, requestParameters.type, options).then((request) => request(axios, basePath));
|
|
10179
10619
|
},
|
|
10180
10620
|
};
|
|
10181
10621
|
};
|
|
10182
10622
|
|
|
10623
|
+
/**
|
|
10624
|
+
* Request parameters for contentCreate operation in ContentApi.
|
|
10625
|
+
* @export
|
|
10626
|
+
* @interface ContentApiContentCreateRequest
|
|
10627
|
+
*/
|
|
10628
|
+
export interface ContentApiContentCreateRequest {
|
|
10629
|
+
/**
|
|
10630
|
+
* ID da promoção
|
|
10631
|
+
* @type {string}
|
|
10632
|
+
* @memberof ContentApiContentCreate
|
|
10633
|
+
*/
|
|
10634
|
+
readonly promotionId: string
|
|
10635
|
+
|
|
10636
|
+
/**
|
|
10637
|
+
*
|
|
10638
|
+
* @type {Content}
|
|
10639
|
+
* @memberof ContentApiContentCreate
|
|
10640
|
+
*/
|
|
10641
|
+
readonly content?: Content
|
|
10642
|
+
}
|
|
10643
|
+
|
|
10644
|
+
/**
|
|
10645
|
+
* Request parameters for contentIndex operation in ContentApi.
|
|
10646
|
+
* @export
|
|
10647
|
+
* @interface ContentApiContentIndexRequest
|
|
10648
|
+
*/
|
|
10649
|
+
export interface ContentApiContentIndexRequest {
|
|
10650
|
+
/**
|
|
10651
|
+
* ID da promoção
|
|
10652
|
+
* @type {string}
|
|
10653
|
+
* @memberof ContentApiContentIndex
|
|
10654
|
+
*/
|
|
10655
|
+
readonly promotionId: string
|
|
10656
|
+
|
|
10657
|
+
/**
|
|
10658
|
+
* Campos a serem retornados pela API
|
|
10659
|
+
* @type {string}
|
|
10660
|
+
* @memberof ContentApiContentIndex
|
|
10661
|
+
*/
|
|
10662
|
+
readonly fields?: string
|
|
10663
|
+
|
|
10664
|
+
/**
|
|
10665
|
+
* Pesquisa pela chave principal do conteúdo
|
|
10666
|
+
* @type {string}
|
|
10667
|
+
* @memberof ContentApiContentIndex
|
|
10668
|
+
*/
|
|
10669
|
+
readonly key?: string
|
|
10670
|
+
|
|
10671
|
+
/**
|
|
10672
|
+
* Pesquisa pela chave do grupo do conteúdo
|
|
10673
|
+
* @type {string}
|
|
10674
|
+
* @memberof ContentApiContentIndex
|
|
10675
|
+
*/
|
|
10676
|
+
readonly group?: string
|
|
10677
|
+
|
|
10678
|
+
/**
|
|
10679
|
+
* Pesquisa pelo tipo do conteúdo
|
|
10680
|
+
* @type {string}
|
|
10681
|
+
* @memberof ContentApiContentIndex
|
|
10682
|
+
*/
|
|
10683
|
+
readonly type?: string
|
|
10684
|
+
}
|
|
10685
|
+
|
|
10183
10686
|
/**
|
|
10184
10687
|
* ContentApi - object-oriented interface
|
|
10185
10688
|
* @export
|
|
@@ -10190,30 +10693,25 @@ export class ContentApi extends BaseAPI {
|
|
|
10190
10693
|
/**
|
|
10191
10694
|
*
|
|
10192
10695
|
* @summary Cria um novo conteúdo para a promoção
|
|
10193
|
-
* @param {
|
|
10194
|
-
* @param {Content} [content]
|
|
10696
|
+
* @param {ContentApiContentCreateRequest} requestParameters Request parameters.
|
|
10195
10697
|
* @param {*} [options] Override http request option.
|
|
10196
10698
|
* @throws {RequiredError}
|
|
10197
10699
|
* @memberof ContentApi
|
|
10198
10700
|
*/
|
|
10199
|
-
public contentCreate(
|
|
10200
|
-
return ContentApiFp(this.configuration).contentCreate(promotionId, content, options).then((request) => request(this.axios, this.basePath));
|
|
10701
|
+
public contentCreate(requestParameters: ContentApiContentCreateRequest, options?: RawAxiosRequestConfig) {
|
|
10702
|
+
return ContentApiFp(this.configuration).contentCreate(requestParameters.promotionId, requestParameters.content, options).then((request) => request(this.axios, this.basePath));
|
|
10201
10703
|
}
|
|
10202
10704
|
|
|
10203
10705
|
/**
|
|
10204
10706
|
*
|
|
10205
10707
|
* @summary Dados referentes aos conteúdos (que não são artigos de blog) da promoção
|
|
10206
|
-
* @param {
|
|
10207
|
-
* @param {string} [fields] Campos a serem retornados pela API
|
|
10208
|
-
* @param {string} [key] Pesquisa pela chave principal do conteúdo
|
|
10209
|
-
* @param {string} [group] Pesquisa pela chave do grupo do conteúdo
|
|
10210
|
-
* @param {string} [type] Pesquisa pelo tipo do conteúdo
|
|
10708
|
+
* @param {ContentApiContentIndexRequest} requestParameters Request parameters.
|
|
10211
10709
|
* @param {*} [options] Override http request option.
|
|
10212
10710
|
* @throws {RequiredError}
|
|
10213
10711
|
* @memberof ContentApi
|
|
10214
10712
|
*/
|
|
10215
|
-
public contentIndex(
|
|
10216
|
-
return ContentApiFp(this.configuration).contentIndex(promotionId, fields, key, group, type, options).then((request) => request(this.axios, this.basePath));
|
|
10713
|
+
public contentIndex(requestParameters: ContentApiContentIndexRequest, options?: RawAxiosRequestConfig) {
|
|
10714
|
+
return ContentApiFp(this.configuration).contentIndex(requestParameters.promotionId, requestParameters.fields, requestParameters.key, requestParameters.group, requestParameters.type, options).then((request) => request(this.axios, this.basePath));
|
|
10217
10715
|
}
|
|
10218
10716
|
}
|
|
10219
10717
|
|
|
@@ -10568,145 +11066,275 @@ export const CouponsApiFactory = function (configuration?: Configuration, basePa
|
|
|
10568
11066
|
/**
|
|
10569
11067
|
* Os registros de cupons são processados individualmente e o resultado é enviado via webhook
|
|
10570
11068
|
* @summary Cadastra um cupom para um usuário cadastrado na promoção
|
|
10571
|
-
* @param {
|
|
10572
|
-
* @param {number} userId ID do usuário
|
|
10573
|
-
* @param {CouponsCreateRequest} [couponsCreateRequest]
|
|
11069
|
+
* @param {CouponsApiCouponsCreateRequest} requestParameters Request parameters.
|
|
10574
11070
|
* @param {*} [options] Override http request option.
|
|
10575
11071
|
* @throws {RequiredError}
|
|
10576
11072
|
*/
|
|
10577
|
-
couponsCreate(
|
|
10578
|
-
return localVarFp.couponsCreate(promotionId, userId, couponsCreateRequest, options).then((request) => request(axios, basePath));
|
|
11073
|
+
couponsCreate(requestParameters: CouponsApiCouponsCreateRequest, options?: RawAxiosRequestConfig): AxiosPromise<CouponsCreate200Response> {
|
|
11074
|
+
return localVarFp.couponsCreate(requestParameters.promotionId, requestParameters.userId, requestParameters.couponsCreateRequest, options).then((request) => request(axios, basePath));
|
|
10579
11075
|
},
|
|
10580
11076
|
/**
|
|
10581
11077
|
*
|
|
10582
11078
|
* @summary Exclui um cupom de um usuário cadastrado na promoção
|
|
10583
|
-
* @param {
|
|
10584
|
-
* @param {string} userId ID do usuário
|
|
10585
|
-
* @param {string} couponId ID do cupom
|
|
11079
|
+
* @param {CouponsApiCouponsDeleteRequest} requestParameters Request parameters.
|
|
10586
11080
|
* @param {*} [options] Override http request option.
|
|
10587
11081
|
* @throws {RequiredError}
|
|
10588
11082
|
*/
|
|
10589
|
-
couponsDelete(
|
|
10590
|
-
return localVarFp.couponsDelete(promotionId, userId, couponId, options).then((request) => request(axios, basePath));
|
|
11083
|
+
couponsDelete(requestParameters: CouponsApiCouponsDeleteRequest, options?: RawAxiosRequestConfig): AxiosPromise<CouponsDelete200Response> {
|
|
11084
|
+
return localVarFp.couponsDelete(requestParameters.promotionId, requestParameters.userId, requestParameters.couponId, options).then((request) => request(axios, basePath));
|
|
10591
11085
|
},
|
|
10592
11086
|
/**
|
|
10593
11087
|
*
|
|
10594
11088
|
* @summary Busca por cupons de um usuário cadastrado na promoção
|
|
10595
|
-
* @param {
|
|
10596
|
-
* @param {number} userId ID do usuário
|
|
10597
|
-
* @param {string} [fields] Campos a serem retornados
|
|
10598
|
-
* @param {string} [include] Campos a serem retornados
|
|
10599
|
-
* @param {string} [id] Id do cupom
|
|
10600
|
-
* @param {string} [userId2] Id do usuário associado ao cupom
|
|
10601
|
-
* @param {string} [externalUserId] Id externo do usuário associado ao cupom
|
|
11089
|
+
* @param {CouponsApiCouponsIndexRequest} requestParameters Request parameters.
|
|
10602
11090
|
* @param {*} [options] Override http request option.
|
|
10603
11091
|
* @throws {RequiredError}
|
|
10604
11092
|
*/
|
|
10605
|
-
couponsIndex(
|
|
10606
|
-
return localVarFp.couponsIndex(promotionId, userId, fields, include, id, userId2, externalUserId, options).then((request) => request(axios, basePath));
|
|
11093
|
+
couponsIndex(requestParameters: CouponsApiCouponsIndexRequest, options?: RawAxiosRequestConfig): AxiosPromise<V3PromotionPromotionIdCouponsGet200Response> {
|
|
11094
|
+
return localVarFp.couponsIndex(requestParameters.promotionId, requestParameters.userId, requestParameters.fields, requestParameters.include, requestParameters.id, requestParameters.userId2, requestParameters.externalUserId, options).then((request) => request(axios, basePath));
|
|
10607
11095
|
},
|
|
10608
11096
|
/**
|
|
10609
11097
|
*
|
|
10610
11098
|
* @summary Cadastra ou atualiza um cupom para um usuário cadastrado na promoção
|
|
10611
|
-
* @param {
|
|
10612
|
-
* @param {number} userId ID do usuário
|
|
10613
|
-
* @param {CouponsCreateRequest} [couponsCreateRequest]
|
|
11099
|
+
* @param {CouponsApiCouponsUpdateRequest} requestParameters Request parameters.
|
|
10614
11100
|
* @param {*} [options] Override http request option.
|
|
10615
11101
|
* @throws {RequiredError}
|
|
10616
11102
|
*/
|
|
10617
|
-
couponsUpdate(
|
|
10618
|
-
return localVarFp.couponsUpdate(promotionId, userId, couponsCreateRequest, options).then((request) => request(axios, basePath));
|
|
11103
|
+
couponsUpdate(requestParameters: CouponsApiCouponsUpdateRequest, options?: RawAxiosRequestConfig): AxiosPromise<CouponsUpdate201Response> {
|
|
11104
|
+
return localVarFp.couponsUpdate(requestParameters.promotionId, requestParameters.userId, requestParameters.couponsCreateRequest, options).then((request) => request(axios, basePath));
|
|
10619
11105
|
},
|
|
10620
11106
|
/**
|
|
10621
11107
|
* 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.
|
|
10622
11108
|
* @summary Webhook de resposta ao registro de cupons
|
|
10623
|
-
* @param {
|
|
11109
|
+
* @param {CouponsApiCuponsWebhookRequest} requestParameters Request parameters.
|
|
10624
11110
|
* @param {*} [options] Override http request option.
|
|
10625
11111
|
* @throws {RequiredError}
|
|
10626
11112
|
*/
|
|
10627
|
-
cuponsWebhook(
|
|
10628
|
-
return localVarFp.cuponsWebhook(cuponsWebhookRequest, options).then((request) => request(axios, basePath));
|
|
11113
|
+
cuponsWebhook(requestParameters: CouponsApiCuponsWebhookRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<UsersWebhook200Response> {
|
|
11114
|
+
return localVarFp.cuponsWebhook(requestParameters.cuponsWebhookRequest, options).then((request) => request(axios, basePath));
|
|
10629
11115
|
},
|
|
10630
11116
|
};
|
|
10631
11117
|
};
|
|
10632
11118
|
|
|
10633
11119
|
/**
|
|
10634
|
-
*
|
|
11120
|
+
* Request parameters for couponsCreate operation in CouponsApi.
|
|
10635
11121
|
* @export
|
|
10636
|
-
* @
|
|
10637
|
-
* @extends {BaseAPI}
|
|
11122
|
+
* @interface CouponsApiCouponsCreateRequest
|
|
10638
11123
|
*/
|
|
10639
|
-
export
|
|
11124
|
+
export interface CouponsApiCouponsCreateRequest {
|
|
10640
11125
|
/**
|
|
10641
|
-
*
|
|
10642
|
-
* @
|
|
10643
|
-
* @
|
|
10644
|
-
* @param {number} userId ID do usuário
|
|
10645
|
-
* @param {CouponsCreateRequest} [couponsCreateRequest]
|
|
10646
|
-
* @param {*} [options] Override http request option.
|
|
10647
|
-
* @throws {RequiredError}
|
|
10648
|
-
* @memberof CouponsApi
|
|
11126
|
+
* ID da promoção
|
|
11127
|
+
* @type {string}
|
|
11128
|
+
* @memberof CouponsApiCouponsCreate
|
|
10649
11129
|
*/
|
|
10650
|
-
|
|
10651
|
-
return CouponsApiFp(this.configuration).couponsCreate(promotionId, userId, couponsCreateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
10652
|
-
}
|
|
11130
|
+
readonly promotionId: string
|
|
10653
11131
|
|
|
10654
11132
|
/**
|
|
10655
|
-
*
|
|
10656
|
-
* @
|
|
10657
|
-
* @
|
|
10658
|
-
* @param {string} userId ID do usuário
|
|
10659
|
-
* @param {string} couponId ID do cupom
|
|
10660
|
-
* @param {*} [options] Override http request option.
|
|
10661
|
-
* @throws {RequiredError}
|
|
10662
|
-
* @memberof CouponsApi
|
|
11133
|
+
* ID do usuário
|
|
11134
|
+
* @type {number}
|
|
11135
|
+
* @memberof CouponsApiCouponsCreate
|
|
10663
11136
|
*/
|
|
10664
|
-
|
|
10665
|
-
return CouponsApiFp(this.configuration).couponsDelete(promotionId, userId, couponId, options).then((request) => request(this.axios, this.basePath));
|
|
10666
|
-
}
|
|
11137
|
+
readonly userId: number
|
|
10667
11138
|
|
|
10668
11139
|
/**
|
|
10669
11140
|
*
|
|
10670
|
-
* @
|
|
10671
|
-
* @
|
|
10672
|
-
* @param {number} userId ID do usuário
|
|
10673
|
-
* @param {string} [fields] Campos a serem retornados
|
|
10674
|
-
* @param {string} [include] Campos a serem retornados
|
|
10675
|
-
* @param {string} [id] Id do cupom
|
|
10676
|
-
* @param {string} [userId2] Id do usuário associado ao cupom
|
|
10677
|
-
* @param {string} [externalUserId] Id externo do usuário associado ao cupom
|
|
10678
|
-
* @param {*} [options] Override http request option.
|
|
10679
|
-
* @throws {RequiredError}
|
|
10680
|
-
* @memberof CouponsApi
|
|
11141
|
+
* @type {CouponsCreateRequest}
|
|
11142
|
+
* @memberof CouponsApiCouponsCreate
|
|
10681
11143
|
*/
|
|
10682
|
-
|
|
10683
|
-
|
|
11144
|
+
readonly couponsCreateRequest?: CouponsCreateRequest
|
|
11145
|
+
}
|
|
11146
|
+
|
|
11147
|
+
/**
|
|
11148
|
+
* Request parameters for couponsDelete operation in CouponsApi.
|
|
11149
|
+
* @export
|
|
11150
|
+
* @interface CouponsApiCouponsDeleteRequest
|
|
11151
|
+
*/
|
|
11152
|
+
export interface CouponsApiCouponsDeleteRequest {
|
|
11153
|
+
/**
|
|
11154
|
+
* ID da promoção
|
|
11155
|
+
* @type {string}
|
|
11156
|
+
* @memberof CouponsApiCouponsDelete
|
|
11157
|
+
*/
|
|
11158
|
+
readonly promotionId: string
|
|
11159
|
+
|
|
11160
|
+
/**
|
|
11161
|
+
* ID do usuário
|
|
11162
|
+
* @type {string}
|
|
11163
|
+
* @memberof CouponsApiCouponsDelete
|
|
11164
|
+
*/
|
|
11165
|
+
readonly userId: string
|
|
11166
|
+
|
|
11167
|
+
/**
|
|
11168
|
+
* ID do cupom
|
|
11169
|
+
* @type {string}
|
|
11170
|
+
* @memberof CouponsApiCouponsDelete
|
|
11171
|
+
*/
|
|
11172
|
+
readonly couponId: string
|
|
11173
|
+
}
|
|
11174
|
+
|
|
11175
|
+
/**
|
|
11176
|
+
* Request parameters for couponsIndex operation in CouponsApi.
|
|
11177
|
+
* @export
|
|
11178
|
+
* @interface CouponsApiCouponsIndexRequest
|
|
11179
|
+
*/
|
|
11180
|
+
export interface CouponsApiCouponsIndexRequest {
|
|
11181
|
+
/**
|
|
11182
|
+
* ID da promoção
|
|
11183
|
+
* @type {string}
|
|
11184
|
+
* @memberof CouponsApiCouponsIndex
|
|
11185
|
+
*/
|
|
11186
|
+
readonly promotionId: string
|
|
11187
|
+
|
|
11188
|
+
/**
|
|
11189
|
+
* ID do usuário
|
|
11190
|
+
* @type {number}
|
|
11191
|
+
* @memberof CouponsApiCouponsIndex
|
|
11192
|
+
*/
|
|
11193
|
+
readonly userId: number
|
|
11194
|
+
|
|
11195
|
+
/**
|
|
11196
|
+
* Campos a serem retornados
|
|
11197
|
+
* @type {string}
|
|
11198
|
+
* @memberof CouponsApiCouponsIndex
|
|
11199
|
+
*/
|
|
11200
|
+
readonly fields?: string
|
|
11201
|
+
|
|
11202
|
+
/**
|
|
11203
|
+
* Campos a serem retornados
|
|
11204
|
+
* @type {string}
|
|
11205
|
+
* @memberof CouponsApiCouponsIndex
|
|
11206
|
+
*/
|
|
11207
|
+
readonly include?: string
|
|
11208
|
+
|
|
11209
|
+
/**
|
|
11210
|
+
* Id do cupom
|
|
11211
|
+
* @type {string}
|
|
11212
|
+
* @memberof CouponsApiCouponsIndex
|
|
11213
|
+
*/
|
|
11214
|
+
readonly id?: string
|
|
11215
|
+
|
|
11216
|
+
/**
|
|
11217
|
+
* Id do usuário associado ao cupom
|
|
11218
|
+
* @type {string}
|
|
11219
|
+
* @memberof CouponsApiCouponsIndex
|
|
11220
|
+
*/
|
|
11221
|
+
readonly userId2?: string
|
|
11222
|
+
|
|
11223
|
+
/**
|
|
11224
|
+
* Id externo do usuário associado ao cupom
|
|
11225
|
+
* @type {string}
|
|
11226
|
+
* @memberof CouponsApiCouponsIndex
|
|
11227
|
+
*/
|
|
11228
|
+
readonly externalUserId?: string
|
|
11229
|
+
}
|
|
11230
|
+
|
|
11231
|
+
/**
|
|
11232
|
+
* Request parameters for couponsUpdate operation in CouponsApi.
|
|
11233
|
+
* @export
|
|
11234
|
+
* @interface CouponsApiCouponsUpdateRequest
|
|
11235
|
+
*/
|
|
11236
|
+
export interface CouponsApiCouponsUpdateRequest {
|
|
11237
|
+
/**
|
|
11238
|
+
* ID da promoção
|
|
11239
|
+
* @type {string}
|
|
11240
|
+
* @memberof CouponsApiCouponsUpdate
|
|
11241
|
+
*/
|
|
11242
|
+
readonly promotionId: string
|
|
11243
|
+
|
|
11244
|
+
/**
|
|
11245
|
+
* ID do usuário
|
|
11246
|
+
* @type {number}
|
|
11247
|
+
* @memberof CouponsApiCouponsUpdate
|
|
11248
|
+
*/
|
|
11249
|
+
readonly userId: number
|
|
11250
|
+
|
|
11251
|
+
/**
|
|
11252
|
+
*
|
|
11253
|
+
* @type {CouponsCreateRequest}
|
|
11254
|
+
* @memberof CouponsApiCouponsUpdate
|
|
11255
|
+
*/
|
|
11256
|
+
readonly couponsCreateRequest?: CouponsCreateRequest
|
|
11257
|
+
}
|
|
11258
|
+
|
|
11259
|
+
/**
|
|
11260
|
+
* Request parameters for cuponsWebhook operation in CouponsApi.
|
|
11261
|
+
* @export
|
|
11262
|
+
* @interface CouponsApiCuponsWebhookRequest
|
|
11263
|
+
*/
|
|
11264
|
+
export interface CouponsApiCuponsWebhookRequest {
|
|
11265
|
+
/**
|
|
11266
|
+
*
|
|
11267
|
+
* @type {CuponsWebhookRequest}
|
|
11268
|
+
* @memberof CouponsApiCuponsWebhook
|
|
11269
|
+
*/
|
|
11270
|
+
readonly cuponsWebhookRequest?: CuponsWebhookRequest
|
|
11271
|
+
}
|
|
11272
|
+
|
|
11273
|
+
/**
|
|
11274
|
+
* CouponsApi - object-oriented interface
|
|
11275
|
+
* @export
|
|
11276
|
+
* @class CouponsApi
|
|
11277
|
+
* @extends {BaseAPI}
|
|
11278
|
+
*/
|
|
11279
|
+
export class CouponsApi extends BaseAPI {
|
|
11280
|
+
/**
|
|
11281
|
+
* Os registros de cupons são processados individualmente e o resultado é enviado via webhook
|
|
11282
|
+
* @summary Cadastra um cupom para um usuário cadastrado na promoção
|
|
11283
|
+
* @param {CouponsApiCouponsCreateRequest} requestParameters Request parameters.
|
|
11284
|
+
* @param {*} [options] Override http request option.
|
|
11285
|
+
* @throws {RequiredError}
|
|
11286
|
+
* @memberof CouponsApi
|
|
11287
|
+
*/
|
|
11288
|
+
public couponsCreate(requestParameters: CouponsApiCouponsCreateRequest, options?: RawAxiosRequestConfig) {
|
|
11289
|
+
return CouponsApiFp(this.configuration).couponsCreate(requestParameters.promotionId, requestParameters.userId, requestParameters.couponsCreateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
11290
|
+
}
|
|
11291
|
+
|
|
11292
|
+
/**
|
|
11293
|
+
*
|
|
11294
|
+
* @summary Exclui um cupom de um usuário cadastrado na promoção
|
|
11295
|
+
* @param {CouponsApiCouponsDeleteRequest} requestParameters Request parameters.
|
|
11296
|
+
* @param {*} [options] Override http request option.
|
|
11297
|
+
* @throws {RequiredError}
|
|
11298
|
+
* @memberof CouponsApi
|
|
11299
|
+
*/
|
|
11300
|
+
public couponsDelete(requestParameters: CouponsApiCouponsDeleteRequest, options?: RawAxiosRequestConfig) {
|
|
11301
|
+
return CouponsApiFp(this.configuration).couponsDelete(requestParameters.promotionId, requestParameters.userId, requestParameters.couponId, options).then((request) => request(this.axios, this.basePath));
|
|
11302
|
+
}
|
|
11303
|
+
|
|
11304
|
+
/**
|
|
11305
|
+
*
|
|
11306
|
+
* @summary Busca por cupons de um usuário cadastrado na promoção
|
|
11307
|
+
* @param {CouponsApiCouponsIndexRequest} requestParameters Request parameters.
|
|
11308
|
+
* @param {*} [options] Override http request option.
|
|
11309
|
+
* @throws {RequiredError}
|
|
11310
|
+
* @memberof CouponsApi
|
|
11311
|
+
*/
|
|
11312
|
+
public couponsIndex(requestParameters: CouponsApiCouponsIndexRequest, options?: RawAxiosRequestConfig) {
|
|
11313
|
+
return CouponsApiFp(this.configuration).couponsIndex(requestParameters.promotionId, requestParameters.userId, requestParameters.fields, requestParameters.include, requestParameters.id, requestParameters.userId2, requestParameters.externalUserId, options).then((request) => request(this.axios, this.basePath));
|
|
10684
11314
|
}
|
|
10685
11315
|
|
|
10686
11316
|
/**
|
|
10687
11317
|
*
|
|
10688
11318
|
* @summary Cadastra ou atualiza um cupom para um usuário cadastrado na promoção
|
|
10689
|
-
* @param {
|
|
10690
|
-
* @param {number} userId ID do usuário
|
|
10691
|
-
* @param {CouponsCreateRequest} [couponsCreateRequest]
|
|
11319
|
+
* @param {CouponsApiCouponsUpdateRequest} requestParameters Request parameters.
|
|
10692
11320
|
* @param {*} [options] Override http request option.
|
|
10693
11321
|
* @throws {RequiredError}
|
|
10694
11322
|
* @memberof CouponsApi
|
|
10695
11323
|
*/
|
|
10696
|
-
public couponsUpdate(
|
|
10697
|
-
return CouponsApiFp(this.configuration).couponsUpdate(promotionId, userId, couponsCreateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
11324
|
+
public couponsUpdate(requestParameters: CouponsApiCouponsUpdateRequest, options?: RawAxiosRequestConfig) {
|
|
11325
|
+
return CouponsApiFp(this.configuration).couponsUpdate(requestParameters.promotionId, requestParameters.userId, requestParameters.couponsCreateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
10698
11326
|
}
|
|
10699
11327
|
|
|
10700
11328
|
/**
|
|
10701
11329
|
* 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.
|
|
10702
11330
|
* @summary Webhook de resposta ao registro de cupons
|
|
10703
|
-
* @param {
|
|
11331
|
+
* @param {CouponsApiCuponsWebhookRequest} requestParameters Request parameters.
|
|
10704
11332
|
* @param {*} [options] Override http request option.
|
|
10705
11333
|
* @throws {RequiredError}
|
|
10706
11334
|
* @memberof CouponsApi
|
|
10707
11335
|
*/
|
|
10708
|
-
public cuponsWebhook(
|
|
10709
|
-
return CouponsApiFp(this.configuration).cuponsWebhook(cuponsWebhookRequest, options).then((request) => request(this.axios, this.basePath));
|
|
11336
|
+
public cuponsWebhook(requestParameters: CouponsApiCuponsWebhookRequest = {}, options?: RawAxiosRequestConfig) {
|
|
11337
|
+
return CouponsApiFp(this.configuration).cuponsWebhook(requestParameters.cuponsWebhookRequest, options).then((request) => request(this.axios, this.basePath));
|
|
10710
11338
|
}
|
|
10711
11339
|
}
|
|
10712
11340
|
|
|
@@ -10840,24 +11468,86 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa
|
|
|
10840
11468
|
/**
|
|
10841
11469
|
*
|
|
10842
11470
|
* @summary Buscar cupons de uma promoção
|
|
10843
|
-
* @param {
|
|
10844
|
-
* @param {string} [fields]
|
|
10845
|
-
* @param {string} [include]
|
|
10846
|
-
* @param {number} [id]
|
|
10847
|
-
* @param {number} [userId]
|
|
10848
|
-
* @param {string} [externalUserId]
|
|
10849
|
-
* @param {string} [purchaseDate]
|
|
10850
|
-
* @param {string} [insertAt]
|
|
10851
|
-
* @param {number} [taxCoupon]
|
|
11471
|
+
* @param {DefaultApiV3PromotionPromotionIdCouponsGetRequest} requestParameters Request parameters.
|
|
10852
11472
|
* @param {*} [options] Override http request option.
|
|
10853
11473
|
* @throws {RequiredError}
|
|
10854
11474
|
*/
|
|
10855
|
-
v3PromotionPromotionIdCouponsGet(
|
|
10856
|
-
return localVarFp.v3PromotionPromotionIdCouponsGet(promotionId, fields, include, id, userId, externalUserId, purchaseDate, insertAt, taxCoupon, options).then((request) => request(axios, basePath));
|
|
11475
|
+
v3PromotionPromotionIdCouponsGet(requestParameters: DefaultApiV3PromotionPromotionIdCouponsGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<V3PromotionPromotionIdCouponsGet200Response> {
|
|
11476
|
+
return localVarFp.v3PromotionPromotionIdCouponsGet(requestParameters.promotionId, requestParameters.fields, requestParameters.include, requestParameters.id, requestParameters.userId, requestParameters.externalUserId, requestParameters.purchaseDate, requestParameters.insertAt, requestParameters.taxCoupon, options).then((request) => request(axios, basePath));
|
|
10857
11477
|
},
|
|
10858
11478
|
};
|
|
10859
11479
|
};
|
|
10860
11480
|
|
|
11481
|
+
/**
|
|
11482
|
+
* Request parameters for v3PromotionPromotionIdCouponsGet operation in DefaultApi.
|
|
11483
|
+
* @export
|
|
11484
|
+
* @interface DefaultApiV3PromotionPromotionIdCouponsGetRequest
|
|
11485
|
+
*/
|
|
11486
|
+
export interface DefaultApiV3PromotionPromotionIdCouponsGetRequest {
|
|
11487
|
+
/**
|
|
11488
|
+
*
|
|
11489
|
+
* @type {string}
|
|
11490
|
+
* @memberof DefaultApiV3PromotionPromotionIdCouponsGet
|
|
11491
|
+
*/
|
|
11492
|
+
readonly promotionId: string
|
|
11493
|
+
|
|
11494
|
+
/**
|
|
11495
|
+
*
|
|
11496
|
+
* @type {string}
|
|
11497
|
+
* @memberof DefaultApiV3PromotionPromotionIdCouponsGet
|
|
11498
|
+
*/
|
|
11499
|
+
readonly fields?: string
|
|
11500
|
+
|
|
11501
|
+
/**
|
|
11502
|
+
*
|
|
11503
|
+
* @type {string}
|
|
11504
|
+
* @memberof DefaultApiV3PromotionPromotionIdCouponsGet
|
|
11505
|
+
*/
|
|
11506
|
+
readonly include?: string
|
|
11507
|
+
|
|
11508
|
+
/**
|
|
11509
|
+
*
|
|
11510
|
+
* @type {number}
|
|
11511
|
+
* @memberof DefaultApiV3PromotionPromotionIdCouponsGet
|
|
11512
|
+
*/
|
|
11513
|
+
readonly id?: number
|
|
11514
|
+
|
|
11515
|
+
/**
|
|
11516
|
+
*
|
|
11517
|
+
* @type {number}
|
|
11518
|
+
* @memberof DefaultApiV3PromotionPromotionIdCouponsGet
|
|
11519
|
+
*/
|
|
11520
|
+
readonly userId?: number
|
|
11521
|
+
|
|
11522
|
+
/**
|
|
11523
|
+
*
|
|
11524
|
+
* @type {string}
|
|
11525
|
+
* @memberof DefaultApiV3PromotionPromotionIdCouponsGet
|
|
11526
|
+
*/
|
|
11527
|
+
readonly externalUserId?: string
|
|
11528
|
+
|
|
11529
|
+
/**
|
|
11530
|
+
*
|
|
11531
|
+
* @type {string}
|
|
11532
|
+
* @memberof DefaultApiV3PromotionPromotionIdCouponsGet
|
|
11533
|
+
*/
|
|
11534
|
+
readonly purchaseDate?: string
|
|
11535
|
+
|
|
11536
|
+
/**
|
|
11537
|
+
*
|
|
11538
|
+
* @type {string}
|
|
11539
|
+
* @memberof DefaultApiV3PromotionPromotionIdCouponsGet
|
|
11540
|
+
*/
|
|
11541
|
+
readonly insertAt?: string
|
|
11542
|
+
|
|
11543
|
+
/**
|
|
11544
|
+
*
|
|
11545
|
+
* @type {number}
|
|
11546
|
+
* @memberof DefaultApiV3PromotionPromotionIdCouponsGet
|
|
11547
|
+
*/
|
|
11548
|
+
readonly taxCoupon?: number
|
|
11549
|
+
}
|
|
11550
|
+
|
|
10861
11551
|
/**
|
|
10862
11552
|
* DefaultApi - object-oriented interface
|
|
10863
11553
|
* @export
|
|
@@ -10868,21 +11558,13 @@ export class DefaultApi extends BaseAPI {
|
|
|
10868
11558
|
/**
|
|
10869
11559
|
*
|
|
10870
11560
|
* @summary Buscar cupons de uma promoção
|
|
10871
|
-
* @param {
|
|
10872
|
-
* @param {string} [fields]
|
|
10873
|
-
* @param {string} [include]
|
|
10874
|
-
* @param {number} [id]
|
|
10875
|
-
* @param {number} [userId]
|
|
10876
|
-
* @param {string} [externalUserId]
|
|
10877
|
-
* @param {string} [purchaseDate]
|
|
10878
|
-
* @param {string} [insertAt]
|
|
10879
|
-
* @param {number} [taxCoupon]
|
|
11561
|
+
* @param {DefaultApiV3PromotionPromotionIdCouponsGetRequest} requestParameters Request parameters.
|
|
10880
11562
|
* @param {*} [options] Override http request option.
|
|
10881
11563
|
* @throws {RequiredError}
|
|
10882
11564
|
* @memberof DefaultApi
|
|
10883
11565
|
*/
|
|
10884
|
-
public v3PromotionPromotionIdCouponsGet(
|
|
10885
|
-
return DefaultApiFp(this.configuration).v3PromotionPromotionIdCouponsGet(promotionId, fields, include, id, userId, externalUserId, purchaseDate, insertAt, taxCoupon, options).then((request) => request(this.axios, this.basePath));
|
|
11566
|
+
public v3PromotionPromotionIdCouponsGet(requestParameters: DefaultApiV3PromotionPromotionIdCouponsGetRequest, options?: RawAxiosRequestConfig) {
|
|
11567
|
+
return DefaultApiFp(this.configuration).v3PromotionPromotionIdCouponsGet(requestParameters.promotionId, requestParameters.fields, requestParameters.include, requestParameters.id, requestParameters.userId, requestParameters.externalUserId, requestParameters.purchaseDate, requestParameters.insertAt, requestParameters.taxCoupon, options).then((request) => request(this.axios, this.basePath));
|
|
10886
11568
|
}
|
|
10887
11569
|
}
|
|
10888
11570
|
|
|
@@ -11080,38 +11762,92 @@ export const DocumentRulesApiFactory = function (configuration?: Configuration,
|
|
|
11080
11762
|
/**
|
|
11081
11763
|
*
|
|
11082
11764
|
* @summary Termos de uso, regulamentos e política de privacidade da promoção
|
|
11083
|
-
* @param {
|
|
11765
|
+
* @param {DocumentRulesApiDocumentRulesIndexRequest} requestParameters Request parameters.
|
|
11084
11766
|
* @param {*} [options] Override http request option.
|
|
11085
11767
|
* @throws {RequiredError}
|
|
11086
11768
|
*/
|
|
11087
|
-
documentRulesIndex(
|
|
11088
|
-
return localVarFp.documentRulesIndex(promotionId, options).then((request) => request(axios, basePath));
|
|
11769
|
+
documentRulesIndex(requestParameters: DocumentRulesApiDocumentRulesIndexRequest, options?: RawAxiosRequestConfig): AxiosPromise<DocumentRulesIndex200Response> {
|
|
11770
|
+
return localVarFp.documentRulesIndex(requestParameters.promotionId, options).then((request) => request(axios, basePath));
|
|
11089
11771
|
},
|
|
11090
11772
|
/**
|
|
11091
11773
|
*
|
|
11092
11774
|
* @summary Exclui um regulamento da promoção
|
|
11093
|
-
* @param {
|
|
11094
|
-
* @param {string} regulationId ID do regulamento
|
|
11775
|
+
* @param {DocumentRulesApiDocumentRulesRegulationDeleteRequest} requestParameters Request parameters.
|
|
11095
11776
|
* @param {*} [options] Override http request option.
|
|
11096
11777
|
* @throws {RequiredError}
|
|
11097
11778
|
*/
|
|
11098
|
-
documentRulesRegulationDelete(
|
|
11099
|
-
return localVarFp.documentRulesRegulationDelete(promotionId, regulationId, options).then((request) => request(axios, basePath));
|
|
11779
|
+
documentRulesRegulationDelete(requestParameters: DocumentRulesApiDocumentRulesRegulationDeleteRequest, options?: RawAxiosRequestConfig): AxiosPromise<DocumentRulesRegulationDelete200Response> {
|
|
11780
|
+
return localVarFp.documentRulesRegulationDelete(requestParameters.promotionId, requestParameters.regulationId, options).then((request) => request(axios, basePath));
|
|
11100
11781
|
},
|
|
11101
11782
|
/**
|
|
11102
11783
|
*
|
|
11103
11784
|
* @summary Atualiza os termos de uso e regulamento da promoção
|
|
11104
|
-
* @param {
|
|
11105
|
-
* @param {DocumentRulesUpdateRequest} [documentRulesUpdateRequest]
|
|
11785
|
+
* @param {DocumentRulesApiDocumentRulesUpdateRequest} requestParameters Request parameters.
|
|
11106
11786
|
* @param {*} [options] Override http request option.
|
|
11107
11787
|
* @throws {RequiredError}
|
|
11108
11788
|
*/
|
|
11109
|
-
documentRulesUpdate(
|
|
11110
|
-
return localVarFp.documentRulesUpdate(promotionId, documentRulesUpdateRequest, options).then((request) => request(axios, basePath));
|
|
11789
|
+
documentRulesUpdate(requestParameters: DocumentRulesApiDocumentRulesUpdateRequest, options?: RawAxiosRequestConfig): AxiosPromise<DocumentRulesUpdate200Response> {
|
|
11790
|
+
return localVarFp.documentRulesUpdate(requestParameters.promotionId, requestParameters.documentRulesUpdateRequest, options).then((request) => request(axios, basePath));
|
|
11111
11791
|
},
|
|
11112
11792
|
};
|
|
11113
11793
|
};
|
|
11114
11794
|
|
|
11795
|
+
/**
|
|
11796
|
+
* Request parameters for documentRulesIndex operation in DocumentRulesApi.
|
|
11797
|
+
* @export
|
|
11798
|
+
* @interface DocumentRulesApiDocumentRulesIndexRequest
|
|
11799
|
+
*/
|
|
11800
|
+
export interface DocumentRulesApiDocumentRulesIndexRequest {
|
|
11801
|
+
/**
|
|
11802
|
+
* ID da promoção
|
|
11803
|
+
* @type {string}
|
|
11804
|
+
* @memberof DocumentRulesApiDocumentRulesIndex
|
|
11805
|
+
*/
|
|
11806
|
+
readonly promotionId: string
|
|
11807
|
+
}
|
|
11808
|
+
|
|
11809
|
+
/**
|
|
11810
|
+
* Request parameters for documentRulesRegulationDelete operation in DocumentRulesApi.
|
|
11811
|
+
* @export
|
|
11812
|
+
* @interface DocumentRulesApiDocumentRulesRegulationDeleteRequest
|
|
11813
|
+
*/
|
|
11814
|
+
export interface DocumentRulesApiDocumentRulesRegulationDeleteRequest {
|
|
11815
|
+
/**
|
|
11816
|
+
* ID da promoção
|
|
11817
|
+
* @type {string}
|
|
11818
|
+
* @memberof DocumentRulesApiDocumentRulesRegulationDelete
|
|
11819
|
+
*/
|
|
11820
|
+
readonly promotionId: string
|
|
11821
|
+
|
|
11822
|
+
/**
|
|
11823
|
+
* ID do regulamento
|
|
11824
|
+
* @type {string}
|
|
11825
|
+
* @memberof DocumentRulesApiDocumentRulesRegulationDelete
|
|
11826
|
+
*/
|
|
11827
|
+
readonly regulationId: string
|
|
11828
|
+
}
|
|
11829
|
+
|
|
11830
|
+
/**
|
|
11831
|
+
* Request parameters for documentRulesUpdate operation in DocumentRulesApi.
|
|
11832
|
+
* @export
|
|
11833
|
+
* @interface DocumentRulesApiDocumentRulesUpdateRequest
|
|
11834
|
+
*/
|
|
11835
|
+
export interface DocumentRulesApiDocumentRulesUpdateRequest {
|
|
11836
|
+
/**
|
|
11837
|
+
* ID da promoção
|
|
11838
|
+
* @type {string}
|
|
11839
|
+
* @memberof DocumentRulesApiDocumentRulesUpdate
|
|
11840
|
+
*/
|
|
11841
|
+
readonly promotionId: string
|
|
11842
|
+
|
|
11843
|
+
/**
|
|
11844
|
+
*
|
|
11845
|
+
* @type {DocumentRulesUpdateRequest}
|
|
11846
|
+
* @memberof DocumentRulesApiDocumentRulesUpdate
|
|
11847
|
+
*/
|
|
11848
|
+
readonly documentRulesUpdateRequest?: DocumentRulesUpdateRequest
|
|
11849
|
+
}
|
|
11850
|
+
|
|
11115
11851
|
/**
|
|
11116
11852
|
* DocumentRulesApi - object-oriented interface
|
|
11117
11853
|
* @export
|
|
@@ -11122,39 +11858,37 @@ export class DocumentRulesApi extends BaseAPI {
|
|
|
11122
11858
|
/**
|
|
11123
11859
|
*
|
|
11124
11860
|
* @summary Termos de uso, regulamentos e política de privacidade da promoção
|
|
11125
|
-
* @param {
|
|
11861
|
+
* @param {DocumentRulesApiDocumentRulesIndexRequest} requestParameters Request parameters.
|
|
11126
11862
|
* @param {*} [options] Override http request option.
|
|
11127
11863
|
* @throws {RequiredError}
|
|
11128
11864
|
* @memberof DocumentRulesApi
|
|
11129
11865
|
*/
|
|
11130
|
-
public documentRulesIndex(
|
|
11131
|
-
return DocumentRulesApiFp(this.configuration).documentRulesIndex(promotionId, options).then((request) => request(this.axios, this.basePath));
|
|
11866
|
+
public documentRulesIndex(requestParameters: DocumentRulesApiDocumentRulesIndexRequest, options?: RawAxiosRequestConfig) {
|
|
11867
|
+
return DocumentRulesApiFp(this.configuration).documentRulesIndex(requestParameters.promotionId, options).then((request) => request(this.axios, this.basePath));
|
|
11132
11868
|
}
|
|
11133
11869
|
|
|
11134
11870
|
/**
|
|
11135
11871
|
*
|
|
11136
11872
|
* @summary Exclui um regulamento da promoção
|
|
11137
|
-
* @param {
|
|
11138
|
-
* @param {string} regulationId ID do regulamento
|
|
11873
|
+
* @param {DocumentRulesApiDocumentRulesRegulationDeleteRequest} requestParameters Request parameters.
|
|
11139
11874
|
* @param {*} [options] Override http request option.
|
|
11140
11875
|
* @throws {RequiredError}
|
|
11141
11876
|
* @memberof DocumentRulesApi
|
|
11142
11877
|
*/
|
|
11143
|
-
public documentRulesRegulationDelete(
|
|
11144
|
-
return DocumentRulesApiFp(this.configuration).documentRulesRegulationDelete(promotionId, regulationId, options).then((request) => request(this.axios, this.basePath));
|
|
11878
|
+
public documentRulesRegulationDelete(requestParameters: DocumentRulesApiDocumentRulesRegulationDeleteRequest, options?: RawAxiosRequestConfig) {
|
|
11879
|
+
return DocumentRulesApiFp(this.configuration).documentRulesRegulationDelete(requestParameters.promotionId, requestParameters.regulationId, options).then((request) => request(this.axios, this.basePath));
|
|
11145
11880
|
}
|
|
11146
11881
|
|
|
11147
11882
|
/**
|
|
11148
11883
|
*
|
|
11149
11884
|
* @summary Atualiza os termos de uso e regulamento da promoção
|
|
11150
|
-
* @param {
|
|
11151
|
-
* @param {DocumentRulesUpdateRequest} [documentRulesUpdateRequest]
|
|
11885
|
+
* @param {DocumentRulesApiDocumentRulesUpdateRequest} requestParameters Request parameters.
|
|
11152
11886
|
* @param {*} [options] Override http request option.
|
|
11153
11887
|
* @throws {RequiredError}
|
|
11154
11888
|
* @memberof DocumentRulesApi
|
|
11155
11889
|
*/
|
|
11156
|
-
public documentRulesUpdate(
|
|
11157
|
-
return DocumentRulesApiFp(this.configuration).documentRulesUpdate(promotionId, documentRulesUpdateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
11890
|
+
public documentRulesUpdate(requestParameters: DocumentRulesApiDocumentRulesUpdateRequest, options?: RawAxiosRequestConfig) {
|
|
11891
|
+
return DocumentRulesApiFp(this.configuration).documentRulesUpdate(requestParameters.promotionId, requestParameters.documentRulesUpdateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
11158
11892
|
}
|
|
11159
11893
|
}
|
|
11160
11894
|
|
|
@@ -11423,51 +12157,137 @@ export const FAQApiFactory = function (configuration?: Configuration, basePath?:
|
|
|
11423
12157
|
/**
|
|
11424
12158
|
*
|
|
11425
12159
|
* @summary Cadastra perguntas frequentes na promoção
|
|
11426
|
-
* @param {
|
|
11427
|
-
* @param {Array<FaqCreateRequestInner>} [faqCreateRequestInner]
|
|
12160
|
+
* @param {FAQApiFaqCreateRequest} requestParameters Request parameters.
|
|
11428
12161
|
* @param {*} [options] Override http request option.
|
|
11429
12162
|
* @throws {RequiredError}
|
|
11430
12163
|
*/
|
|
11431
|
-
faqCreate(
|
|
11432
|
-
return localVarFp.faqCreate(promotionId, faqCreateRequestInner, options).then((request) => request(axios, basePath));
|
|
12164
|
+
faqCreate(requestParameters: FAQApiFaqCreateRequest, options?: RawAxiosRequestConfig): AxiosPromise<FaqCreate200Response> {
|
|
12165
|
+
return localVarFp.faqCreate(requestParameters.promotionId, requestParameters.faqCreateRequestInner, options).then((request) => request(axios, basePath));
|
|
11433
12166
|
},
|
|
11434
12167
|
/**
|
|
11435
12168
|
* A exclusão é feita caso haja uma pergunta frequente com a mesma question enviada.
|
|
11436
12169
|
* @summary Esclui perguntas frequentes na promoção
|
|
11437
|
-
* @param {
|
|
11438
|
-
* @param {string} answer Pergunta da questão a ser excluída
|
|
12170
|
+
* @param {FAQApiFaqDeleteRequest} requestParameters Request parameters.
|
|
11439
12171
|
* @param {*} [options] Override http request option.
|
|
11440
12172
|
* @throws {RequiredError}
|
|
11441
12173
|
*/
|
|
11442
|
-
faqDelete(
|
|
11443
|
-
return localVarFp.faqDelete(promotionId, answer, options).then((request) => request(axios, basePath));
|
|
12174
|
+
faqDelete(requestParameters: FAQApiFaqDeleteRequest, options?: RawAxiosRequestConfig): AxiosPromise<FaqDelete200Response> {
|
|
12175
|
+
return localVarFp.faqDelete(requestParameters.promotionId, requestParameters.answer, options).then((request) => request(axios, basePath));
|
|
11444
12176
|
},
|
|
11445
12177
|
/**
|
|
11446
12178
|
*
|
|
11447
12179
|
* @summary Lista as perguntas frequentes cadastradas na promoção
|
|
11448
|
-
* @param {
|
|
11449
|
-
* @param {string} [question] Pesquisa perguntas frequentes através da questão
|
|
11450
|
-
* @param {string} [answer] Pesquisa perguntas frequentes através da resposta
|
|
12180
|
+
* @param {FAQApiFaqIndexRequest} requestParameters Request parameters.
|
|
11451
12181
|
* @param {*} [options] Override http request option.
|
|
11452
12182
|
* @throws {RequiredError}
|
|
11453
12183
|
*/
|
|
11454
|
-
faqIndex(
|
|
11455
|
-
return localVarFp.faqIndex(promotionId, question, answer, options).then((request) => request(axios, basePath));
|
|
12184
|
+
faqIndex(requestParameters: FAQApiFaqIndexRequest, options?: RawAxiosRequestConfig): AxiosPromise<FaqIndex200Response> {
|
|
12185
|
+
return localVarFp.faqIndex(requestParameters.promotionId, requestParameters.question, requestParameters.answer, options).then((request) => request(axios, basePath));
|
|
11456
12186
|
},
|
|
11457
12187
|
/**
|
|
11458
12188
|
* A atualização é feita caso haja uma pergunta frequente com a mesma question enviada para cadastro.
|
|
11459
12189
|
* @summary Cadastra ou atualiza perguntas frequentes na promoção
|
|
11460
|
-
* @param {
|
|
11461
|
-
* @param {Array<FaqCreateRequestInner>} [faqCreateRequestInner]
|
|
12190
|
+
* @param {FAQApiFaqUpdateRequest} requestParameters Request parameters.
|
|
11462
12191
|
* @param {*} [options] Override http request option.
|
|
11463
12192
|
* @throws {RequiredError}
|
|
11464
12193
|
*/
|
|
11465
|
-
faqUpdate(
|
|
11466
|
-
return localVarFp.faqUpdate(promotionId, faqCreateRequestInner, options).then((request) => request(axios, basePath));
|
|
12194
|
+
faqUpdate(requestParameters: FAQApiFaqUpdateRequest, options?: RawAxiosRequestConfig): AxiosPromise<FaqUpdate200Response> {
|
|
12195
|
+
return localVarFp.faqUpdate(requestParameters.promotionId, requestParameters.faqCreateRequestInner, options).then((request) => request(axios, basePath));
|
|
11467
12196
|
},
|
|
11468
12197
|
};
|
|
11469
12198
|
};
|
|
11470
12199
|
|
|
12200
|
+
/**
|
|
12201
|
+
* Request parameters for faqCreate operation in FAQApi.
|
|
12202
|
+
* @export
|
|
12203
|
+
* @interface FAQApiFaqCreateRequest
|
|
12204
|
+
*/
|
|
12205
|
+
export interface FAQApiFaqCreateRequest {
|
|
12206
|
+
/**
|
|
12207
|
+
* ID da promoção
|
|
12208
|
+
* @type {string}
|
|
12209
|
+
* @memberof FAQApiFaqCreate
|
|
12210
|
+
*/
|
|
12211
|
+
readonly promotionId: string
|
|
12212
|
+
|
|
12213
|
+
/**
|
|
12214
|
+
*
|
|
12215
|
+
* @type {Array<FaqCreateRequestInner>}
|
|
12216
|
+
* @memberof FAQApiFaqCreate
|
|
12217
|
+
*/
|
|
12218
|
+
readonly faqCreateRequestInner?: Array<FaqCreateRequestInner>
|
|
12219
|
+
}
|
|
12220
|
+
|
|
12221
|
+
/**
|
|
12222
|
+
* Request parameters for faqDelete operation in FAQApi.
|
|
12223
|
+
* @export
|
|
12224
|
+
* @interface FAQApiFaqDeleteRequest
|
|
12225
|
+
*/
|
|
12226
|
+
export interface FAQApiFaqDeleteRequest {
|
|
12227
|
+
/**
|
|
12228
|
+
* ID da promoção
|
|
12229
|
+
* @type {string}
|
|
12230
|
+
* @memberof FAQApiFaqDelete
|
|
12231
|
+
*/
|
|
12232
|
+
readonly promotionId: string
|
|
12233
|
+
|
|
12234
|
+
/**
|
|
12235
|
+
* Pergunta da questão a ser excluída
|
|
12236
|
+
* @type {string}
|
|
12237
|
+
* @memberof FAQApiFaqDelete
|
|
12238
|
+
*/
|
|
12239
|
+
readonly answer: string
|
|
12240
|
+
}
|
|
12241
|
+
|
|
12242
|
+
/**
|
|
12243
|
+
* Request parameters for faqIndex operation in FAQApi.
|
|
12244
|
+
* @export
|
|
12245
|
+
* @interface FAQApiFaqIndexRequest
|
|
12246
|
+
*/
|
|
12247
|
+
export interface FAQApiFaqIndexRequest {
|
|
12248
|
+
/**
|
|
12249
|
+
* ID da promoção
|
|
12250
|
+
* @type {string}
|
|
12251
|
+
* @memberof FAQApiFaqIndex
|
|
12252
|
+
*/
|
|
12253
|
+
readonly promotionId: string
|
|
12254
|
+
|
|
12255
|
+
/**
|
|
12256
|
+
* Pesquisa perguntas frequentes através da questão
|
|
12257
|
+
* @type {string}
|
|
12258
|
+
* @memberof FAQApiFaqIndex
|
|
12259
|
+
*/
|
|
12260
|
+
readonly question?: string
|
|
12261
|
+
|
|
12262
|
+
/**
|
|
12263
|
+
* Pesquisa perguntas frequentes através da resposta
|
|
12264
|
+
* @type {string}
|
|
12265
|
+
* @memberof FAQApiFaqIndex
|
|
12266
|
+
*/
|
|
12267
|
+
readonly answer?: string
|
|
12268
|
+
}
|
|
12269
|
+
|
|
12270
|
+
/**
|
|
12271
|
+
* Request parameters for faqUpdate operation in FAQApi.
|
|
12272
|
+
* @export
|
|
12273
|
+
* @interface FAQApiFaqUpdateRequest
|
|
12274
|
+
*/
|
|
12275
|
+
export interface FAQApiFaqUpdateRequest {
|
|
12276
|
+
/**
|
|
12277
|
+
* ID da promoção
|
|
12278
|
+
* @type {string}
|
|
12279
|
+
* @memberof FAQApiFaqUpdate
|
|
12280
|
+
*/
|
|
12281
|
+
readonly promotionId: string
|
|
12282
|
+
|
|
12283
|
+
/**
|
|
12284
|
+
*
|
|
12285
|
+
* @type {Array<FaqCreateRequestInner>}
|
|
12286
|
+
* @memberof FAQApiFaqUpdate
|
|
12287
|
+
*/
|
|
12288
|
+
readonly faqCreateRequestInner?: Array<FaqCreateRequestInner>
|
|
12289
|
+
}
|
|
12290
|
+
|
|
11471
12291
|
/**
|
|
11472
12292
|
* FAQApi - object-oriented interface
|
|
11473
12293
|
* @export
|
|
@@ -11478,54 +12298,49 @@ export class FAQApi extends BaseAPI {
|
|
|
11478
12298
|
/**
|
|
11479
12299
|
*
|
|
11480
12300
|
* @summary Cadastra perguntas frequentes na promoção
|
|
11481
|
-
* @param {
|
|
11482
|
-
* @param {Array<FaqCreateRequestInner>} [faqCreateRequestInner]
|
|
12301
|
+
* @param {FAQApiFaqCreateRequest} requestParameters Request parameters.
|
|
11483
12302
|
* @param {*} [options] Override http request option.
|
|
11484
12303
|
* @throws {RequiredError}
|
|
11485
12304
|
* @memberof FAQApi
|
|
11486
12305
|
*/
|
|
11487
|
-
public faqCreate(
|
|
11488
|
-
return FAQApiFp(this.configuration).faqCreate(promotionId, faqCreateRequestInner, options).then((request) => request(this.axios, this.basePath));
|
|
12306
|
+
public faqCreate(requestParameters: FAQApiFaqCreateRequest, options?: RawAxiosRequestConfig) {
|
|
12307
|
+
return FAQApiFp(this.configuration).faqCreate(requestParameters.promotionId, requestParameters.faqCreateRequestInner, options).then((request) => request(this.axios, this.basePath));
|
|
11489
12308
|
}
|
|
11490
12309
|
|
|
11491
12310
|
/**
|
|
11492
12311
|
* A exclusão é feita caso haja uma pergunta frequente com a mesma question enviada.
|
|
11493
12312
|
* @summary Esclui perguntas frequentes na promoção
|
|
11494
|
-
* @param {
|
|
11495
|
-
* @param {string} answer Pergunta da questão a ser excluída
|
|
12313
|
+
* @param {FAQApiFaqDeleteRequest} requestParameters Request parameters.
|
|
11496
12314
|
* @param {*} [options] Override http request option.
|
|
11497
12315
|
* @throws {RequiredError}
|
|
11498
12316
|
* @memberof FAQApi
|
|
11499
12317
|
*/
|
|
11500
|
-
public faqDelete(
|
|
11501
|
-
return FAQApiFp(this.configuration).faqDelete(promotionId, answer, options).then((request) => request(this.axios, this.basePath));
|
|
12318
|
+
public faqDelete(requestParameters: FAQApiFaqDeleteRequest, options?: RawAxiosRequestConfig) {
|
|
12319
|
+
return FAQApiFp(this.configuration).faqDelete(requestParameters.promotionId, requestParameters.answer, options).then((request) => request(this.axios, this.basePath));
|
|
11502
12320
|
}
|
|
11503
12321
|
|
|
11504
12322
|
/**
|
|
11505
12323
|
*
|
|
11506
12324
|
* @summary Lista as perguntas frequentes cadastradas na promoção
|
|
11507
|
-
* @param {
|
|
11508
|
-
* @param {string} [question] Pesquisa perguntas frequentes através da questão
|
|
11509
|
-
* @param {string} [answer] Pesquisa perguntas frequentes através da resposta
|
|
12325
|
+
* @param {FAQApiFaqIndexRequest} requestParameters Request parameters.
|
|
11510
12326
|
* @param {*} [options] Override http request option.
|
|
11511
12327
|
* @throws {RequiredError}
|
|
11512
12328
|
* @memberof FAQApi
|
|
11513
12329
|
*/
|
|
11514
|
-
public faqIndex(
|
|
11515
|
-
return FAQApiFp(this.configuration).faqIndex(promotionId, question, answer, options).then((request) => request(this.axios, this.basePath));
|
|
12330
|
+
public faqIndex(requestParameters: FAQApiFaqIndexRequest, options?: RawAxiosRequestConfig) {
|
|
12331
|
+
return FAQApiFp(this.configuration).faqIndex(requestParameters.promotionId, requestParameters.question, requestParameters.answer, options).then((request) => request(this.axios, this.basePath));
|
|
11516
12332
|
}
|
|
11517
12333
|
|
|
11518
12334
|
/**
|
|
11519
12335
|
* A atualização é feita caso haja uma pergunta frequente com a mesma question enviada para cadastro.
|
|
11520
12336
|
* @summary Cadastra ou atualiza perguntas frequentes na promoção
|
|
11521
|
-
* @param {
|
|
11522
|
-
* @param {Array<FaqCreateRequestInner>} [faqCreateRequestInner]
|
|
12337
|
+
* @param {FAQApiFaqUpdateRequest} requestParameters Request parameters.
|
|
11523
12338
|
* @param {*} [options] Override http request option.
|
|
11524
12339
|
* @throws {RequiredError}
|
|
11525
12340
|
* @memberof FAQApi
|
|
11526
12341
|
*/
|
|
11527
|
-
public faqUpdate(
|
|
11528
|
-
return FAQApiFp(this.configuration).faqUpdate(promotionId, faqCreateRequestInner, options).then((request) => request(this.axios, this.basePath));
|
|
12342
|
+
public faqUpdate(requestParameters: FAQApiFaqUpdateRequest, options?: RawAxiosRequestConfig) {
|
|
12343
|
+
return FAQApiFp(this.configuration).faqUpdate(requestParameters.promotionId, requestParameters.faqCreateRequestInner, options).then((request) => request(this.axios, this.basePath));
|
|
11529
12344
|
}
|
|
11530
12345
|
}
|
|
11531
12346
|
|
|
@@ -11612,17 +12427,37 @@ export const FilesApiFactory = function (configuration?: Configuration, basePath
|
|
|
11612
12427
|
/**
|
|
11613
12428
|
*
|
|
11614
12429
|
* @summary Faz o download de um arquivo
|
|
11615
|
-
* @param {
|
|
11616
|
-
* @param {string} filename Nome do arquivo
|
|
12430
|
+
* @param {FilesApiFilesShowRequest} requestParameters Request parameters.
|
|
11617
12431
|
* @param {*} [options] Override http request option.
|
|
11618
12432
|
* @throws {RequiredError}
|
|
11619
12433
|
*/
|
|
11620
|
-
filesShow(
|
|
11621
|
-
return localVarFp.filesShow(promotionId, filename, options).then((request) => request(axios, basePath));
|
|
12434
|
+
filesShow(requestParameters: FilesApiFilesShowRequest, options?: RawAxiosRequestConfig): AxiosPromise<FilesShow200Response> {
|
|
12435
|
+
return localVarFp.filesShow(requestParameters.promotionId, requestParameters.filename, options).then((request) => request(axios, basePath));
|
|
11622
12436
|
},
|
|
11623
12437
|
};
|
|
11624
12438
|
};
|
|
11625
12439
|
|
|
12440
|
+
/**
|
|
12441
|
+
* Request parameters for filesShow operation in FilesApi.
|
|
12442
|
+
* @export
|
|
12443
|
+
* @interface FilesApiFilesShowRequest
|
|
12444
|
+
*/
|
|
12445
|
+
export interface FilesApiFilesShowRequest {
|
|
12446
|
+
/**
|
|
12447
|
+
* ID da promoção
|
|
12448
|
+
* @type {string}
|
|
12449
|
+
* @memberof FilesApiFilesShow
|
|
12450
|
+
*/
|
|
12451
|
+
readonly promotionId: string
|
|
12452
|
+
|
|
12453
|
+
/**
|
|
12454
|
+
* Nome do arquivo
|
|
12455
|
+
* @type {string}
|
|
12456
|
+
* @memberof FilesApiFilesShow
|
|
12457
|
+
*/
|
|
12458
|
+
readonly filename: string
|
|
12459
|
+
}
|
|
12460
|
+
|
|
11626
12461
|
/**
|
|
11627
12462
|
* FilesApi - object-oriented interface
|
|
11628
12463
|
* @export
|
|
@@ -11633,14 +12468,13 @@ export class FilesApi extends BaseAPI {
|
|
|
11633
12468
|
/**
|
|
11634
12469
|
*
|
|
11635
12470
|
* @summary Faz o download de um arquivo
|
|
11636
|
-
* @param {
|
|
11637
|
-
* @param {string} filename Nome do arquivo
|
|
12471
|
+
* @param {FilesApiFilesShowRequest} requestParameters Request parameters.
|
|
11638
12472
|
* @param {*} [options] Override http request option.
|
|
11639
12473
|
* @throws {RequiredError}
|
|
11640
12474
|
* @memberof FilesApi
|
|
11641
12475
|
*/
|
|
11642
|
-
public filesShow(
|
|
11643
|
-
return FilesApiFp(this.configuration).filesShow(promotionId, filename, options).then((request) => request(this.axios, this.basePath));
|
|
12476
|
+
public filesShow(requestParameters: FilesApiFilesShowRequest, options?: RawAxiosRequestConfig) {
|
|
12477
|
+
return FilesApiFp(this.configuration).filesShow(requestParameters.promotionId, requestParameters.filename, options).then((request) => request(this.axios, this.basePath));
|
|
11644
12478
|
}
|
|
11645
12479
|
}
|
|
11646
12480
|
|
|
@@ -11890,47 +12724,155 @@ export const LuckyNumbersApiFactory = function (configuration?: Configuration, b
|
|
|
11890
12724
|
/**
|
|
11891
12725
|
* Os Números da Sorte cadastrados através deste endpoint serão distribuidos aos participantes de acordo com as regras da promoção. Só é possível cadastrar números da sorte quando as regras da promoção permitem.
|
|
11892
12726
|
* @summary Cadastra Números da Sorte no repositório da promoção
|
|
11893
|
-
* @param {
|
|
11894
|
-
* @param {AddLuckyNumberCustom} [addLuckyNumberCustom]
|
|
12727
|
+
* @param {LuckyNumbersApiLuckyNumbersAddCustomRequest} requestParameters Request parameters.
|
|
11895
12728
|
* @param {*} [options] Override http request option.
|
|
11896
12729
|
* @throws {RequiredError}
|
|
11897
12730
|
*/
|
|
11898
|
-
luckyNumbersAddCustom(
|
|
11899
|
-
return localVarFp.luckyNumbersAddCustom(promotionId, addLuckyNumberCustom, options).then((request) => request(axios, basePath));
|
|
12731
|
+
luckyNumbersAddCustom(requestParameters: LuckyNumbersApiLuckyNumbersAddCustomRequest, options?: RawAxiosRequestConfig): AxiosPromise<LuckyNumbersAddCustom200Response> {
|
|
12732
|
+
return localVarFp.luckyNumbersAddCustom(requestParameters.promotionId, requestParameters.addLuckyNumberCustom, options).then((request) => request(axios, basePath));
|
|
11900
12733
|
},
|
|
11901
12734
|
/**
|
|
11902
12735
|
*
|
|
11903
12736
|
* @summary Inativa e remove Números da Sorte cadastrados na promoção
|
|
11904
|
-
* @param {
|
|
11905
|
-
* @param {number} userId ID do usuário
|
|
11906
|
-
* @param {LuckyNumbersRemoveRequest} [luckyNumbersRemoveRequest]
|
|
12737
|
+
* @param {LuckyNumbersApiLuckyNumbersRemoveRequest} requestParameters Request parameters.
|
|
11907
12738
|
* @param {*} [options] Override http request option.
|
|
11908
12739
|
* @throws {RequiredError}
|
|
11909
12740
|
*/
|
|
11910
|
-
luckyNumbersRemove(
|
|
11911
|
-
return localVarFp.luckyNumbersRemove(promotionId, userId, luckyNumbersRemoveRequest, options).then((request) => request(axios, basePath));
|
|
12741
|
+
luckyNumbersRemove(requestParameters: LuckyNumbersApiLuckyNumbersRemoveRequest, options?: RawAxiosRequestConfig): AxiosPromise<LuckyNumbersRemove200Response> {
|
|
12742
|
+
return localVarFp.luckyNumbersRemove(requestParameters.promotionId, requestParameters.userId, requestParameters.luckyNumbersRemoveRequest, options).then((request) => request(axios, basePath));
|
|
11912
12743
|
},
|
|
11913
12744
|
/**
|
|
11914
12745
|
*
|
|
11915
12746
|
* @summary Busca por Números da Sorte de um usuário cadastrado na promoção
|
|
11916
|
-
* @param {
|
|
11917
|
-
* @param {number} userId ID do usuário
|
|
11918
|
-
* @param {string} [fields] Campos a serem retornados
|
|
11919
|
-
* @param {string} [id] Id do número da sorte
|
|
11920
|
-
* @param {string} [couponId] Id do cupom associado ao número da sorte
|
|
11921
|
-
* @param {string} [luckyNumber] Número da sorte
|
|
11922
|
-
* @param {string} [serie] Série
|
|
11923
|
-
* @param {string} [situation] Situação do número da sorte
|
|
11924
|
-
* @param {string} [serialNumberId] Id do serial associado ao número da sorte
|
|
12747
|
+
* @param {LuckyNumbersApiLuckyNumbersSearchRequest} requestParameters Request parameters.
|
|
11925
12748
|
* @param {*} [options] Override http request option.
|
|
11926
12749
|
* @throws {RequiredError}
|
|
11927
12750
|
*/
|
|
11928
|
-
luckyNumbersSearch(
|
|
11929
|
-
return localVarFp.luckyNumbersSearch(promotionId, userId, fields, id, couponId, luckyNumber, serie, situation, serialNumberId, options).then((request) => request(axios, basePath));
|
|
12751
|
+
luckyNumbersSearch(requestParameters: LuckyNumbersApiLuckyNumbersSearchRequest, options?: RawAxiosRequestConfig): AxiosPromise<LuckyNumbersSearch200Response> {
|
|
12752
|
+
return localVarFp.luckyNumbersSearch(requestParameters.promotionId, requestParameters.userId, requestParameters.fields, requestParameters.id, requestParameters.couponId, requestParameters.luckyNumber, requestParameters.serie, requestParameters.situation, requestParameters.serialNumberId, options).then((request) => request(axios, basePath));
|
|
11930
12753
|
},
|
|
11931
12754
|
};
|
|
11932
12755
|
};
|
|
11933
12756
|
|
|
12757
|
+
/**
|
|
12758
|
+
* Request parameters for luckyNumbersAddCustom operation in LuckyNumbersApi.
|
|
12759
|
+
* @export
|
|
12760
|
+
* @interface LuckyNumbersApiLuckyNumbersAddCustomRequest
|
|
12761
|
+
*/
|
|
12762
|
+
export interface LuckyNumbersApiLuckyNumbersAddCustomRequest {
|
|
12763
|
+
/**
|
|
12764
|
+
* ID da promoção
|
|
12765
|
+
* @type {string}
|
|
12766
|
+
* @memberof LuckyNumbersApiLuckyNumbersAddCustom
|
|
12767
|
+
*/
|
|
12768
|
+
readonly promotionId: string
|
|
12769
|
+
|
|
12770
|
+
/**
|
|
12771
|
+
*
|
|
12772
|
+
* @type {AddLuckyNumberCustom}
|
|
12773
|
+
* @memberof LuckyNumbersApiLuckyNumbersAddCustom
|
|
12774
|
+
*/
|
|
12775
|
+
readonly addLuckyNumberCustom?: AddLuckyNumberCustom
|
|
12776
|
+
}
|
|
12777
|
+
|
|
12778
|
+
/**
|
|
12779
|
+
* Request parameters for luckyNumbersRemove operation in LuckyNumbersApi.
|
|
12780
|
+
* @export
|
|
12781
|
+
* @interface LuckyNumbersApiLuckyNumbersRemoveRequest
|
|
12782
|
+
*/
|
|
12783
|
+
export interface LuckyNumbersApiLuckyNumbersRemoveRequest {
|
|
12784
|
+
/**
|
|
12785
|
+
* ID da promoção
|
|
12786
|
+
* @type {string}
|
|
12787
|
+
* @memberof LuckyNumbersApiLuckyNumbersRemove
|
|
12788
|
+
*/
|
|
12789
|
+
readonly promotionId: string
|
|
12790
|
+
|
|
12791
|
+
/**
|
|
12792
|
+
* ID do usuário
|
|
12793
|
+
* @type {number}
|
|
12794
|
+
* @memberof LuckyNumbersApiLuckyNumbersRemove
|
|
12795
|
+
*/
|
|
12796
|
+
readonly userId: number
|
|
12797
|
+
|
|
12798
|
+
/**
|
|
12799
|
+
*
|
|
12800
|
+
* @type {LuckyNumbersRemoveRequest}
|
|
12801
|
+
* @memberof LuckyNumbersApiLuckyNumbersRemove
|
|
12802
|
+
*/
|
|
12803
|
+
readonly luckyNumbersRemoveRequest?: LuckyNumbersRemoveRequest
|
|
12804
|
+
}
|
|
12805
|
+
|
|
12806
|
+
/**
|
|
12807
|
+
* Request parameters for luckyNumbersSearch operation in LuckyNumbersApi.
|
|
12808
|
+
* @export
|
|
12809
|
+
* @interface LuckyNumbersApiLuckyNumbersSearchRequest
|
|
12810
|
+
*/
|
|
12811
|
+
export interface LuckyNumbersApiLuckyNumbersSearchRequest {
|
|
12812
|
+
/**
|
|
12813
|
+
* ID da promoção
|
|
12814
|
+
* @type {string}
|
|
12815
|
+
* @memberof LuckyNumbersApiLuckyNumbersSearch
|
|
12816
|
+
*/
|
|
12817
|
+
readonly promotionId: string
|
|
12818
|
+
|
|
12819
|
+
/**
|
|
12820
|
+
* ID do usuário
|
|
12821
|
+
* @type {number}
|
|
12822
|
+
* @memberof LuckyNumbersApiLuckyNumbersSearch
|
|
12823
|
+
*/
|
|
12824
|
+
readonly userId: number
|
|
12825
|
+
|
|
12826
|
+
/**
|
|
12827
|
+
* Campos a serem retornados
|
|
12828
|
+
* @type {string}
|
|
12829
|
+
* @memberof LuckyNumbersApiLuckyNumbersSearch
|
|
12830
|
+
*/
|
|
12831
|
+
readonly fields?: string
|
|
12832
|
+
|
|
12833
|
+
/**
|
|
12834
|
+
* Id do número da sorte
|
|
12835
|
+
* @type {string}
|
|
12836
|
+
* @memberof LuckyNumbersApiLuckyNumbersSearch
|
|
12837
|
+
*/
|
|
12838
|
+
readonly id?: string
|
|
12839
|
+
|
|
12840
|
+
/**
|
|
12841
|
+
* Id do cupom associado ao número da sorte
|
|
12842
|
+
* @type {string}
|
|
12843
|
+
* @memberof LuckyNumbersApiLuckyNumbersSearch
|
|
12844
|
+
*/
|
|
12845
|
+
readonly couponId?: string
|
|
12846
|
+
|
|
12847
|
+
/**
|
|
12848
|
+
* Número da sorte
|
|
12849
|
+
* @type {string}
|
|
12850
|
+
* @memberof LuckyNumbersApiLuckyNumbersSearch
|
|
12851
|
+
*/
|
|
12852
|
+
readonly luckyNumber?: string
|
|
12853
|
+
|
|
12854
|
+
/**
|
|
12855
|
+
* Série
|
|
12856
|
+
* @type {string}
|
|
12857
|
+
* @memberof LuckyNumbersApiLuckyNumbersSearch
|
|
12858
|
+
*/
|
|
12859
|
+
readonly serie?: string
|
|
12860
|
+
|
|
12861
|
+
/**
|
|
12862
|
+
* Situação do número da sorte
|
|
12863
|
+
* @type {string}
|
|
12864
|
+
* @memberof LuckyNumbersApiLuckyNumbersSearch
|
|
12865
|
+
*/
|
|
12866
|
+
readonly situation?: string
|
|
12867
|
+
|
|
12868
|
+
/**
|
|
12869
|
+
* Id do serial associado ao número da sorte
|
|
12870
|
+
* @type {string}
|
|
12871
|
+
* @memberof LuckyNumbersApiLuckyNumbersSearch
|
|
12872
|
+
*/
|
|
12873
|
+
readonly serialNumberId?: string
|
|
12874
|
+
}
|
|
12875
|
+
|
|
11934
12876
|
/**
|
|
11935
12877
|
* LuckyNumbersApi - object-oriented interface
|
|
11936
12878
|
* @export
|
|
@@ -11941,48 +12883,37 @@ export class LuckyNumbersApi extends BaseAPI {
|
|
|
11941
12883
|
/**
|
|
11942
12884
|
* Os Números da Sorte cadastrados através deste endpoint serão distribuidos aos participantes de acordo com as regras da promoção. Só é possível cadastrar números da sorte quando as regras da promoção permitem.
|
|
11943
12885
|
* @summary Cadastra Números da Sorte no repositório da promoção
|
|
11944
|
-
* @param {
|
|
11945
|
-
* @param {AddLuckyNumberCustom} [addLuckyNumberCustom]
|
|
12886
|
+
* @param {LuckyNumbersApiLuckyNumbersAddCustomRequest} requestParameters Request parameters.
|
|
11946
12887
|
* @param {*} [options] Override http request option.
|
|
11947
12888
|
* @throws {RequiredError}
|
|
11948
12889
|
* @memberof LuckyNumbersApi
|
|
11949
12890
|
*/
|
|
11950
|
-
public luckyNumbersAddCustom(
|
|
11951
|
-
return LuckyNumbersApiFp(this.configuration).luckyNumbersAddCustom(promotionId, addLuckyNumberCustom, options).then((request) => request(this.axios, this.basePath));
|
|
12891
|
+
public luckyNumbersAddCustom(requestParameters: LuckyNumbersApiLuckyNumbersAddCustomRequest, options?: RawAxiosRequestConfig) {
|
|
12892
|
+
return LuckyNumbersApiFp(this.configuration).luckyNumbersAddCustom(requestParameters.promotionId, requestParameters.addLuckyNumberCustom, options).then((request) => request(this.axios, this.basePath));
|
|
11952
12893
|
}
|
|
11953
12894
|
|
|
11954
12895
|
/**
|
|
11955
12896
|
*
|
|
11956
12897
|
* @summary Inativa e remove Números da Sorte cadastrados na promoção
|
|
11957
|
-
* @param {
|
|
11958
|
-
* @param {number} userId ID do usuário
|
|
11959
|
-
* @param {LuckyNumbersRemoveRequest} [luckyNumbersRemoveRequest]
|
|
12898
|
+
* @param {LuckyNumbersApiLuckyNumbersRemoveRequest} requestParameters Request parameters.
|
|
11960
12899
|
* @param {*} [options] Override http request option.
|
|
11961
12900
|
* @throws {RequiredError}
|
|
11962
12901
|
* @memberof LuckyNumbersApi
|
|
11963
12902
|
*/
|
|
11964
|
-
public luckyNumbersRemove(
|
|
11965
|
-
return LuckyNumbersApiFp(this.configuration).luckyNumbersRemove(promotionId, userId, luckyNumbersRemoveRequest, options).then((request) => request(this.axios, this.basePath));
|
|
12903
|
+
public luckyNumbersRemove(requestParameters: LuckyNumbersApiLuckyNumbersRemoveRequest, options?: RawAxiosRequestConfig) {
|
|
12904
|
+
return LuckyNumbersApiFp(this.configuration).luckyNumbersRemove(requestParameters.promotionId, requestParameters.userId, requestParameters.luckyNumbersRemoveRequest, options).then((request) => request(this.axios, this.basePath));
|
|
11966
12905
|
}
|
|
11967
12906
|
|
|
11968
12907
|
/**
|
|
11969
12908
|
*
|
|
11970
12909
|
* @summary Busca por Números da Sorte de um usuário cadastrado na promoção
|
|
11971
|
-
* @param {
|
|
11972
|
-
* @param {number} userId ID do usuário
|
|
11973
|
-
* @param {string} [fields] Campos a serem retornados
|
|
11974
|
-
* @param {string} [id] Id do número da sorte
|
|
11975
|
-
* @param {string} [couponId] Id do cupom associado ao número da sorte
|
|
11976
|
-
* @param {string} [luckyNumber] Número da sorte
|
|
11977
|
-
* @param {string} [serie] Série
|
|
11978
|
-
* @param {string} [situation] Situação do número da sorte
|
|
11979
|
-
* @param {string} [serialNumberId] Id do serial associado ao número da sorte
|
|
12910
|
+
* @param {LuckyNumbersApiLuckyNumbersSearchRequest} requestParameters Request parameters.
|
|
11980
12911
|
* @param {*} [options] Override http request option.
|
|
11981
12912
|
* @throws {RequiredError}
|
|
11982
12913
|
* @memberof LuckyNumbersApi
|
|
11983
12914
|
*/
|
|
11984
|
-
public luckyNumbersSearch(
|
|
11985
|
-
return LuckyNumbersApiFp(this.configuration).luckyNumbersSearch(promotionId, userId, fields, id, couponId, luckyNumber, serie, situation, serialNumberId, options).then((request) => request(this.axios, this.basePath));
|
|
12915
|
+
public luckyNumbersSearch(requestParameters: LuckyNumbersApiLuckyNumbersSearchRequest, options?: RawAxiosRequestConfig) {
|
|
12916
|
+
return LuckyNumbersApiFp(this.configuration).luckyNumbersSearch(requestParameters.promotionId, requestParameters.userId, requestParameters.fields, requestParameters.id, requestParameters.couponId, requestParameters.luckyNumber, requestParameters.serie, requestParameters.situation, requestParameters.serialNumberId, options).then((request) => request(this.axios, this.basePath));
|
|
11986
12917
|
}
|
|
11987
12918
|
}
|
|
11988
12919
|
|
|
@@ -12100,21 +13031,65 @@ export const MetricsApiFactory = function (configuration?: Configuration, basePa
|
|
|
12100
13031
|
/**
|
|
12101
13032
|
*
|
|
12102
13033
|
* @summary Devolve as métricas da promoção
|
|
12103
|
-
* @param {
|
|
12104
|
-
* @param {Array<MetricsKeysEnum>} keys Chaves das métricas que deseja consultar.
|
|
12105
|
-
* @param {string} [startDate] Data inicial para filtrar as métricas
|
|
12106
|
-
* @param {string} [endDate] Data final para filtrar as métricas
|
|
12107
|
-
* @param {number} [limit] Limite de resultados
|
|
12108
|
-
* @param {string} [resolution] Resolução das métricas. Exemplo: `minute`, `hour`, `day`
|
|
13034
|
+
* @param {MetricsApiMetricsRequest} requestParameters Request parameters.
|
|
12109
13035
|
* @param {*} [options] Override http request option.
|
|
12110
13036
|
* @throws {RequiredError}
|
|
12111
13037
|
*/
|
|
12112
|
-
metrics(
|
|
12113
|
-
return localVarFp.metrics(promotionId, keys, startDate, endDate, limit, resolution, options).then((request) => request(axios, basePath));
|
|
13038
|
+
metrics(requestParameters: MetricsApiMetricsRequest, options?: RawAxiosRequestConfig): AxiosPromise<Metrics200Response> {
|
|
13039
|
+
return localVarFp.metrics(requestParameters.promotionId, requestParameters.keys, requestParameters.startDate, requestParameters.endDate, requestParameters.limit, requestParameters.resolution, options).then((request) => request(axios, basePath));
|
|
12114
13040
|
},
|
|
12115
13041
|
};
|
|
12116
13042
|
};
|
|
12117
13043
|
|
|
13044
|
+
/**
|
|
13045
|
+
* Request parameters for metrics operation in MetricsApi.
|
|
13046
|
+
* @export
|
|
13047
|
+
* @interface MetricsApiMetricsRequest
|
|
13048
|
+
*/
|
|
13049
|
+
export interface MetricsApiMetricsRequest {
|
|
13050
|
+
/**
|
|
13051
|
+
* ID da promoção
|
|
13052
|
+
* @type {string}
|
|
13053
|
+
* @memberof MetricsApiMetrics
|
|
13054
|
+
*/
|
|
13055
|
+
readonly promotionId: string
|
|
13056
|
+
|
|
13057
|
+
/**
|
|
13058
|
+
* Chaves das métricas que deseja consultar.
|
|
13059
|
+
* @type {Array<'users' | 'coupons' | 'lucky_numbers' | 'emails' | 'tickets' | 'tickets_closed' | 'raffles' | 'raffles_closed' | 'awards_delivered' | 'instant_awards' | 'instant_awards_delivered'>}
|
|
13060
|
+
* @memberof MetricsApiMetrics
|
|
13061
|
+
*/
|
|
13062
|
+
readonly keys: Array<MetricsKeysEnum>
|
|
13063
|
+
|
|
13064
|
+
/**
|
|
13065
|
+
* Data inicial para filtrar as métricas
|
|
13066
|
+
* @type {string}
|
|
13067
|
+
* @memberof MetricsApiMetrics
|
|
13068
|
+
*/
|
|
13069
|
+
readonly startDate?: string
|
|
13070
|
+
|
|
13071
|
+
/**
|
|
13072
|
+
* Data final para filtrar as métricas
|
|
13073
|
+
* @type {string}
|
|
13074
|
+
* @memberof MetricsApiMetrics
|
|
13075
|
+
*/
|
|
13076
|
+
readonly endDate?: string
|
|
13077
|
+
|
|
13078
|
+
/**
|
|
13079
|
+
* Limite de resultados
|
|
13080
|
+
* @type {number}
|
|
13081
|
+
* @memberof MetricsApiMetrics
|
|
13082
|
+
*/
|
|
13083
|
+
readonly limit?: number
|
|
13084
|
+
|
|
13085
|
+
/**
|
|
13086
|
+
* Resolução das métricas. Exemplo: `minute`, `hour`, `day`
|
|
13087
|
+
* @type {string}
|
|
13088
|
+
* @memberof MetricsApiMetrics
|
|
13089
|
+
*/
|
|
13090
|
+
readonly resolution?: string
|
|
13091
|
+
}
|
|
13092
|
+
|
|
12118
13093
|
/**
|
|
12119
13094
|
* MetricsApi - object-oriented interface
|
|
12120
13095
|
* @export
|
|
@@ -12125,18 +13100,13 @@ export class MetricsApi extends BaseAPI {
|
|
|
12125
13100
|
/**
|
|
12126
13101
|
*
|
|
12127
13102
|
* @summary Devolve as métricas da promoção
|
|
12128
|
-
* @param {
|
|
12129
|
-
* @param {Array<MetricsKeysEnum>} keys Chaves das métricas que deseja consultar.
|
|
12130
|
-
* @param {string} [startDate] Data inicial para filtrar as métricas
|
|
12131
|
-
* @param {string} [endDate] Data final para filtrar as métricas
|
|
12132
|
-
* @param {number} [limit] Limite de resultados
|
|
12133
|
-
* @param {string} [resolution] Resolução das métricas. Exemplo: `minute`, `hour`, `day`
|
|
13103
|
+
* @param {MetricsApiMetricsRequest} requestParameters Request parameters.
|
|
12134
13104
|
* @param {*} [options] Override http request option.
|
|
12135
13105
|
* @throws {RequiredError}
|
|
12136
13106
|
* @memberof MetricsApi
|
|
12137
13107
|
*/
|
|
12138
|
-
public metrics(
|
|
12139
|
-
return MetricsApiFp(this.configuration).metrics(promotionId, keys, startDate, endDate, limit, resolution, options).then((request) => request(this.axios, this.basePath));
|
|
13108
|
+
public metrics(requestParameters: MetricsApiMetricsRequest, options?: RawAxiosRequestConfig) {
|
|
13109
|
+
return MetricsApiFp(this.configuration).metrics(requestParameters.promotionId, requestParameters.keys, requestParameters.startDate, requestParameters.endDate, requestParameters.limit, requestParameters.resolution, options).then((request) => request(this.axios, this.basePath));
|
|
12140
13110
|
}
|
|
12141
13111
|
}
|
|
12142
13112
|
|
|
@@ -12398,57 +13368,171 @@ export const OrdersApiFp = function(configuration?: Configuration) {
|
|
|
12398
13368
|
}
|
|
12399
13369
|
};
|
|
12400
13370
|
|
|
12401
|
-
/**
|
|
12402
|
-
* OrdersApi - factory interface
|
|
12403
|
-
* @export
|
|
12404
|
-
*/
|
|
12405
|
-
export const OrdersApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
12406
|
-
const localVarFp = OrdersApiFp(configuration)
|
|
12407
|
-
return {
|
|
12408
|
-
/**
|
|
12409
|
-
*
|
|
12410
|
-
* @summary Cadastra um pedido para um usuário na promoção
|
|
12411
|
-
* @param {
|
|
12412
|
-
* @param {
|
|
12413
|
-
* @
|
|
12414
|
-
|
|
12415
|
-
|
|
12416
|
-
|
|
12417
|
-
|
|
12418
|
-
|
|
12419
|
-
|
|
12420
|
-
|
|
12421
|
-
*
|
|
12422
|
-
* @
|
|
12423
|
-
* @
|
|
12424
|
-
|
|
12425
|
-
|
|
12426
|
-
|
|
12427
|
-
|
|
12428
|
-
|
|
12429
|
-
*
|
|
12430
|
-
* @
|
|
12431
|
-
* @param {
|
|
12432
|
-
* @param {*} [options] Override http request option.
|
|
12433
|
-
* @throws {RequiredError}
|
|
12434
|
-
*/
|
|
12435
|
-
|
|
12436
|
-
return localVarFp.
|
|
12437
|
-
},
|
|
12438
|
-
|
|
12439
|
-
|
|
12440
|
-
|
|
12441
|
-
|
|
12442
|
-
|
|
12443
|
-
|
|
12444
|
-
|
|
12445
|
-
|
|
12446
|
-
|
|
12447
|
-
|
|
12448
|
-
|
|
12449
|
-
|
|
12450
|
-
|
|
12451
|
-
|
|
13371
|
+
/**
|
|
13372
|
+
* OrdersApi - factory interface
|
|
13373
|
+
* @export
|
|
13374
|
+
*/
|
|
13375
|
+
export const OrdersApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
13376
|
+
const localVarFp = OrdersApiFp(configuration)
|
|
13377
|
+
return {
|
|
13378
|
+
/**
|
|
13379
|
+
*
|
|
13380
|
+
* @summary Cadastra um pedido para um usuário na promoção
|
|
13381
|
+
* @param {OrdersApiOrdersCreateRequest} requestParameters Request parameters.
|
|
13382
|
+
* @param {*} [options] Override http request option.
|
|
13383
|
+
* @throws {RequiredError}
|
|
13384
|
+
*/
|
|
13385
|
+
ordersCreate(requestParameters: OrdersApiOrdersCreateRequest, options?: RawAxiosRequestConfig): AxiosPromise<OrdersCreate200Response> {
|
|
13386
|
+
return localVarFp.ordersCreate(requestParameters.promotionId, requestParameters.userId, requestParameters.ordersCreateRequest, options).then((request) => request(axios, basePath));
|
|
13387
|
+
},
|
|
13388
|
+
/**
|
|
13389
|
+
*
|
|
13390
|
+
* @summary Pesquisa por pedidos na promoção
|
|
13391
|
+
* @param {OrdersApiOrdersIndexRequest} requestParameters Request parameters.
|
|
13392
|
+
* @param {*} [options] Override http request option.
|
|
13393
|
+
* @throws {RequiredError}
|
|
13394
|
+
*/
|
|
13395
|
+
ordersIndex(requestParameters: OrdersApiOrdersIndexRequest, options?: RawAxiosRequestConfig): AxiosPromise<OrdersIndex200Response> {
|
|
13396
|
+
return localVarFp.ordersIndex(requestParameters.promotionId, requestParameters.userId, requestParameters.fields, requestParameters.include, requestParameters.id, requestParameters.paymentId, requestParameters.paymentGateway, requestParameters.couponId, requestParameters.status, options).then((request) => request(axios, basePath));
|
|
13397
|
+
},
|
|
13398
|
+
/**
|
|
13399
|
+
*
|
|
13400
|
+
* @summary Cadastra ou atualiza um pedido de um usuário na promoção
|
|
13401
|
+
* @param {OrdersApiOrdersUpdateRequest} requestParameters Request parameters.
|
|
13402
|
+
* @param {*} [options] Override http request option.
|
|
13403
|
+
* @throws {RequiredError}
|
|
13404
|
+
*/
|
|
13405
|
+
ordersUpdate(requestParameters: OrdersApiOrdersUpdateRequest, options?: RawAxiosRequestConfig): AxiosPromise<OrdersUpdate200Response> {
|
|
13406
|
+
return localVarFp.ordersUpdate(requestParameters.promotionId, requestParameters.userId, requestParameters.ordersCreateRequest, options).then((request) => request(axios, basePath));
|
|
13407
|
+
},
|
|
13408
|
+
};
|
|
13409
|
+
};
|
|
13410
|
+
|
|
13411
|
+
/**
|
|
13412
|
+
* Request parameters for ordersCreate operation in OrdersApi.
|
|
13413
|
+
* @export
|
|
13414
|
+
* @interface OrdersApiOrdersCreateRequest
|
|
13415
|
+
*/
|
|
13416
|
+
export interface OrdersApiOrdersCreateRequest {
|
|
13417
|
+
/**
|
|
13418
|
+
* ID da promoção
|
|
13419
|
+
* @type {string}
|
|
13420
|
+
* @memberof OrdersApiOrdersCreate
|
|
13421
|
+
*/
|
|
13422
|
+
readonly promotionId: string
|
|
13423
|
+
|
|
13424
|
+
/**
|
|
13425
|
+
* ID do usuário
|
|
13426
|
+
* @type {string}
|
|
13427
|
+
* @memberof OrdersApiOrdersCreate
|
|
13428
|
+
*/
|
|
13429
|
+
readonly userId: string
|
|
13430
|
+
|
|
13431
|
+
/**
|
|
13432
|
+
*
|
|
13433
|
+
* @type {OrdersCreateRequest}
|
|
13434
|
+
* @memberof OrdersApiOrdersCreate
|
|
13435
|
+
*/
|
|
13436
|
+
readonly ordersCreateRequest?: OrdersCreateRequest
|
|
13437
|
+
}
|
|
13438
|
+
|
|
13439
|
+
/**
|
|
13440
|
+
* Request parameters for ordersIndex operation in OrdersApi.
|
|
13441
|
+
* @export
|
|
13442
|
+
* @interface OrdersApiOrdersIndexRequest
|
|
13443
|
+
*/
|
|
13444
|
+
export interface OrdersApiOrdersIndexRequest {
|
|
13445
|
+
/**
|
|
13446
|
+
* ID da promoção
|
|
13447
|
+
* @type {string}
|
|
13448
|
+
* @memberof OrdersApiOrdersIndex
|
|
13449
|
+
*/
|
|
13450
|
+
readonly promotionId: string
|
|
13451
|
+
|
|
13452
|
+
/**
|
|
13453
|
+
* ID do usuário
|
|
13454
|
+
* @type {string}
|
|
13455
|
+
* @memberof OrdersApiOrdersIndex
|
|
13456
|
+
*/
|
|
13457
|
+
readonly userId: string
|
|
13458
|
+
|
|
13459
|
+
/**
|
|
13460
|
+
* Campos a serem retornados
|
|
13461
|
+
* @type {string}
|
|
13462
|
+
* @memberof OrdersApiOrdersIndex
|
|
13463
|
+
*/
|
|
13464
|
+
readonly fields?: string
|
|
13465
|
+
|
|
13466
|
+
/**
|
|
13467
|
+
* Campos a serem retornados
|
|
13468
|
+
* @type {string}
|
|
13469
|
+
* @memberof OrdersApiOrdersIndex
|
|
13470
|
+
*/
|
|
13471
|
+
readonly include?: string
|
|
13472
|
+
|
|
13473
|
+
/**
|
|
13474
|
+
* Id do pedido
|
|
13475
|
+
* @type {string}
|
|
13476
|
+
* @memberof OrdersApiOrdersIndex
|
|
13477
|
+
*/
|
|
13478
|
+
readonly id?: string
|
|
13479
|
+
|
|
13480
|
+
/**
|
|
13481
|
+
* ID do pagamento
|
|
13482
|
+
* @type {string}
|
|
13483
|
+
* @memberof OrdersApiOrdersIndex
|
|
13484
|
+
*/
|
|
13485
|
+
readonly paymentId?: string
|
|
13486
|
+
|
|
13487
|
+
/**
|
|
13488
|
+
* Gateway de pagamento do pedido
|
|
13489
|
+
* @type {string}
|
|
13490
|
+
* @memberof OrdersApiOrdersIndex
|
|
13491
|
+
*/
|
|
13492
|
+
readonly paymentGateway?: string
|
|
13493
|
+
|
|
13494
|
+
/**
|
|
13495
|
+
* ID do cupom do pedido
|
|
13496
|
+
* @type {string}
|
|
13497
|
+
* @memberof OrdersApiOrdersIndex
|
|
13498
|
+
*/
|
|
13499
|
+
readonly couponId?: string
|
|
13500
|
+
|
|
13501
|
+
/**
|
|
13502
|
+
* Status do pedido
|
|
13503
|
+
* @type {string}
|
|
13504
|
+
* @memberof OrdersApiOrdersIndex
|
|
13505
|
+
*/
|
|
13506
|
+
readonly status?: string
|
|
13507
|
+
}
|
|
13508
|
+
|
|
13509
|
+
/**
|
|
13510
|
+
* Request parameters for ordersUpdate operation in OrdersApi.
|
|
13511
|
+
* @export
|
|
13512
|
+
* @interface OrdersApiOrdersUpdateRequest
|
|
13513
|
+
*/
|
|
13514
|
+
export interface OrdersApiOrdersUpdateRequest {
|
|
13515
|
+
/**
|
|
13516
|
+
* ID da promoção
|
|
13517
|
+
* @type {string}
|
|
13518
|
+
* @memberof OrdersApiOrdersUpdate
|
|
13519
|
+
*/
|
|
13520
|
+
readonly promotionId: string
|
|
13521
|
+
|
|
13522
|
+
/**
|
|
13523
|
+
* ID do usuário
|
|
13524
|
+
* @type {string}
|
|
13525
|
+
* @memberof OrdersApiOrdersUpdate
|
|
13526
|
+
*/
|
|
13527
|
+
readonly userId: string
|
|
13528
|
+
|
|
13529
|
+
/**
|
|
13530
|
+
*
|
|
13531
|
+
* @type {OrdersCreateRequest}
|
|
13532
|
+
* @memberof OrdersApiOrdersUpdate
|
|
13533
|
+
*/
|
|
13534
|
+
readonly ordersCreateRequest?: OrdersCreateRequest
|
|
13535
|
+
}
|
|
12452
13536
|
|
|
12453
13537
|
/**
|
|
12454
13538
|
* OrdersApi - object-oriented interface
|
|
@@ -12460,49 +13544,37 @@ export class OrdersApi extends BaseAPI {
|
|
|
12460
13544
|
/**
|
|
12461
13545
|
*
|
|
12462
13546
|
* @summary Cadastra um pedido para um usuário na promoção
|
|
12463
|
-
* @param {
|
|
12464
|
-
* @param {string} userId ID do usuário
|
|
12465
|
-
* @param {OrdersCreateRequest} [ordersCreateRequest]
|
|
13547
|
+
* @param {OrdersApiOrdersCreateRequest} requestParameters Request parameters.
|
|
12466
13548
|
* @param {*} [options] Override http request option.
|
|
12467
13549
|
* @throws {RequiredError}
|
|
12468
13550
|
* @memberof OrdersApi
|
|
12469
13551
|
*/
|
|
12470
|
-
public ordersCreate(
|
|
12471
|
-
return OrdersApiFp(this.configuration).ordersCreate(promotionId, userId, ordersCreateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
13552
|
+
public ordersCreate(requestParameters: OrdersApiOrdersCreateRequest, options?: RawAxiosRequestConfig) {
|
|
13553
|
+
return OrdersApiFp(this.configuration).ordersCreate(requestParameters.promotionId, requestParameters.userId, requestParameters.ordersCreateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
12472
13554
|
}
|
|
12473
13555
|
|
|
12474
13556
|
/**
|
|
12475
13557
|
*
|
|
12476
13558
|
* @summary Pesquisa por pedidos na promoção
|
|
12477
|
-
* @param {
|
|
12478
|
-
* @param {string} userId ID do usuário
|
|
12479
|
-
* @param {string} [fields] Campos a serem retornados
|
|
12480
|
-
* @param {string} [include] Campos a serem retornados
|
|
12481
|
-
* @param {string} [id] Id do pedido
|
|
12482
|
-
* @param {string} [paymentId] ID do pagamento
|
|
12483
|
-
* @param {string} [paymentGateway] Gateway de pagamento do pedido
|
|
12484
|
-
* @param {string} [couponId] ID do cupom do pedido
|
|
12485
|
-
* @param {string} [status] Status do pedido
|
|
13559
|
+
* @param {OrdersApiOrdersIndexRequest} requestParameters Request parameters.
|
|
12486
13560
|
* @param {*} [options] Override http request option.
|
|
12487
13561
|
* @throws {RequiredError}
|
|
12488
13562
|
* @memberof OrdersApi
|
|
12489
13563
|
*/
|
|
12490
|
-
public ordersIndex(
|
|
12491
|
-
return OrdersApiFp(this.configuration).ordersIndex(promotionId, userId, fields, include, id, paymentId, paymentGateway, couponId, status, options).then((request) => request(this.axios, this.basePath));
|
|
13564
|
+
public ordersIndex(requestParameters: OrdersApiOrdersIndexRequest, options?: RawAxiosRequestConfig) {
|
|
13565
|
+
return OrdersApiFp(this.configuration).ordersIndex(requestParameters.promotionId, requestParameters.userId, requestParameters.fields, requestParameters.include, requestParameters.id, requestParameters.paymentId, requestParameters.paymentGateway, requestParameters.couponId, requestParameters.status, options).then((request) => request(this.axios, this.basePath));
|
|
12492
13566
|
}
|
|
12493
13567
|
|
|
12494
13568
|
/**
|
|
12495
13569
|
*
|
|
12496
13570
|
* @summary Cadastra ou atualiza um pedido de um usuário na promoção
|
|
12497
|
-
* @param {
|
|
12498
|
-
* @param {string} userId ID do usuário
|
|
12499
|
-
* @param {OrdersCreateRequest} [ordersCreateRequest]
|
|
13571
|
+
* @param {OrdersApiOrdersUpdateRequest} requestParameters Request parameters.
|
|
12500
13572
|
* @param {*} [options] Override http request option.
|
|
12501
13573
|
* @throws {RequiredError}
|
|
12502
13574
|
* @memberof OrdersApi
|
|
12503
13575
|
*/
|
|
12504
|
-
public ordersUpdate(
|
|
12505
|
-
return OrdersApiFp(this.configuration).ordersUpdate(promotionId, userId, ordersCreateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
13576
|
+
public ordersUpdate(requestParameters: OrdersApiOrdersUpdateRequest, options?: RawAxiosRequestConfig) {
|
|
13577
|
+
return OrdersApiFp(this.configuration).ordersUpdate(requestParameters.promotionId, requestParameters.userId, requestParameters.ordersCreateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
12506
13578
|
}
|
|
12507
13579
|
}
|
|
12508
13580
|
|
|
@@ -12780,53 +13852,151 @@ export const ProductsApiFactory = function (configuration?: Configuration, baseP
|
|
|
12780
13852
|
/**
|
|
12781
13853
|
*
|
|
12782
13854
|
* @summary Cadastra um produto na promoção
|
|
12783
|
-
* @param {
|
|
12784
|
-
* @param {ProductsCreateRequest} [productsCreateRequest]
|
|
13855
|
+
* @param {ProductsApiProductsCreateRequest} requestParameters Request parameters.
|
|
12785
13856
|
* @param {*} [options] Override http request option.
|
|
12786
13857
|
* @throws {RequiredError}
|
|
12787
13858
|
*/
|
|
12788
|
-
productsCreate(
|
|
12789
|
-
return localVarFp.productsCreate(promotionId, productsCreateRequest, options).then((request) => request(axios, basePath));
|
|
13859
|
+
productsCreate(requestParameters: ProductsApiProductsCreateRequest, options?: RawAxiosRequestConfig): AxiosPromise<ProductsCreate200Response> {
|
|
13860
|
+
return localVarFp.productsCreate(requestParameters.promotionId, requestParameters.productsCreateRequest, options).then((request) => request(axios, basePath));
|
|
12790
13861
|
},
|
|
12791
13862
|
/**
|
|
12792
13863
|
*
|
|
12793
13864
|
* @summary Exclui um produto cadastrado na promoção
|
|
12794
|
-
* @param {
|
|
12795
|
-
* @param {string} productId ID do produto
|
|
13865
|
+
* @param {ProductsApiProductsDeleteRequest} requestParameters Request parameters.
|
|
12796
13866
|
* @param {*} [options] Override http request option.
|
|
12797
13867
|
* @throws {RequiredError}
|
|
12798
13868
|
*/
|
|
12799
|
-
productsDelete(
|
|
12800
|
-
return localVarFp.productsDelete(promotionId, productId, options).then((request) => request(axios, basePath));
|
|
13869
|
+
productsDelete(requestParameters: ProductsApiProductsDeleteRequest, options?: RawAxiosRequestConfig): AxiosPromise<ProductsDelete200Response> {
|
|
13870
|
+
return localVarFp.productsDelete(requestParameters.promotionId, requestParameters.productId, options).then((request) => request(axios, basePath));
|
|
12801
13871
|
},
|
|
12802
13872
|
/**
|
|
12803
13873
|
*
|
|
12804
13874
|
* @summary Busca por produtos cadastrados na promoção
|
|
12805
|
-
* @param {
|
|
12806
|
-
* @param {string} [fields] Campos a serem retornados
|
|
12807
|
-
* @param {string} [include] Associações a serem retornadas
|
|
12808
|
-
* @param {string} [id] Id do produto
|
|
12809
|
-
* @param {string} [serialNumber] Número serial do produto
|
|
13875
|
+
* @param {ProductsApiProductsIndexRequest} requestParameters Request parameters.
|
|
12810
13876
|
* @param {*} [options] Override http request option.
|
|
12811
13877
|
* @throws {RequiredError}
|
|
12812
13878
|
*/
|
|
12813
|
-
productsIndex(
|
|
12814
|
-
return localVarFp.productsIndex(promotionId, fields, include, id, serialNumber, options).then((request) => request(axios, basePath));
|
|
13879
|
+
productsIndex(requestParameters: ProductsApiProductsIndexRequest, options?: RawAxiosRequestConfig): AxiosPromise<ProductsIndex200Response> {
|
|
13880
|
+
return localVarFp.productsIndex(requestParameters.promotionId, requestParameters.fields, requestParameters.include, requestParameters.id, requestParameters.serialNumber, options).then((request) => request(axios, basePath));
|
|
12815
13881
|
},
|
|
12816
13882
|
/**
|
|
12817
13883
|
*
|
|
12818
13884
|
* @summary Cadastra ou atualiza produtos na promoção
|
|
12819
|
-
* @param {
|
|
12820
|
-
* @param {ProductsCreateRequest} [productsCreateRequest]
|
|
13885
|
+
* @param {ProductsApiProductsUpdateRequest} requestParameters Request parameters.
|
|
12821
13886
|
* @param {*} [options] Override http request option.
|
|
12822
13887
|
* @throws {RequiredError}
|
|
12823
13888
|
*/
|
|
12824
|
-
productsUpdate(
|
|
12825
|
-
return localVarFp.productsUpdate(promotionId, productsCreateRequest, options).then((request) => request(axios, basePath));
|
|
13889
|
+
productsUpdate(requestParameters: ProductsApiProductsUpdateRequest, options?: RawAxiosRequestConfig): AxiosPromise<ProductsUpdate201Response> {
|
|
13890
|
+
return localVarFp.productsUpdate(requestParameters.promotionId, requestParameters.productsCreateRequest, options).then((request) => request(axios, basePath));
|
|
12826
13891
|
},
|
|
12827
13892
|
};
|
|
12828
13893
|
};
|
|
12829
13894
|
|
|
13895
|
+
/**
|
|
13896
|
+
* Request parameters for productsCreate operation in ProductsApi.
|
|
13897
|
+
* @export
|
|
13898
|
+
* @interface ProductsApiProductsCreateRequest
|
|
13899
|
+
*/
|
|
13900
|
+
export interface ProductsApiProductsCreateRequest {
|
|
13901
|
+
/**
|
|
13902
|
+
* ID da promoção
|
|
13903
|
+
* @type {string}
|
|
13904
|
+
* @memberof ProductsApiProductsCreate
|
|
13905
|
+
*/
|
|
13906
|
+
readonly promotionId: string
|
|
13907
|
+
|
|
13908
|
+
/**
|
|
13909
|
+
*
|
|
13910
|
+
* @type {ProductsCreateRequest}
|
|
13911
|
+
* @memberof ProductsApiProductsCreate
|
|
13912
|
+
*/
|
|
13913
|
+
readonly productsCreateRequest?: ProductsCreateRequest
|
|
13914
|
+
}
|
|
13915
|
+
|
|
13916
|
+
/**
|
|
13917
|
+
* Request parameters for productsDelete operation in ProductsApi.
|
|
13918
|
+
* @export
|
|
13919
|
+
* @interface ProductsApiProductsDeleteRequest
|
|
13920
|
+
*/
|
|
13921
|
+
export interface ProductsApiProductsDeleteRequest {
|
|
13922
|
+
/**
|
|
13923
|
+
* ID da promoção
|
|
13924
|
+
* @type {string}
|
|
13925
|
+
* @memberof ProductsApiProductsDelete
|
|
13926
|
+
*/
|
|
13927
|
+
readonly promotionId: string
|
|
13928
|
+
|
|
13929
|
+
/**
|
|
13930
|
+
* ID do produto
|
|
13931
|
+
* @type {string}
|
|
13932
|
+
* @memberof ProductsApiProductsDelete
|
|
13933
|
+
*/
|
|
13934
|
+
readonly productId: string
|
|
13935
|
+
}
|
|
13936
|
+
|
|
13937
|
+
/**
|
|
13938
|
+
* Request parameters for productsIndex operation in ProductsApi.
|
|
13939
|
+
* @export
|
|
13940
|
+
* @interface ProductsApiProductsIndexRequest
|
|
13941
|
+
*/
|
|
13942
|
+
export interface ProductsApiProductsIndexRequest {
|
|
13943
|
+
/**
|
|
13944
|
+
* ID da promoção
|
|
13945
|
+
* @type {string}
|
|
13946
|
+
* @memberof ProductsApiProductsIndex
|
|
13947
|
+
*/
|
|
13948
|
+
readonly promotionId: string
|
|
13949
|
+
|
|
13950
|
+
/**
|
|
13951
|
+
* Campos a serem retornados
|
|
13952
|
+
* @type {string}
|
|
13953
|
+
* @memberof ProductsApiProductsIndex
|
|
13954
|
+
*/
|
|
13955
|
+
readonly fields?: string
|
|
13956
|
+
|
|
13957
|
+
/**
|
|
13958
|
+
* Associações a serem retornadas
|
|
13959
|
+
* @type {string}
|
|
13960
|
+
* @memberof ProductsApiProductsIndex
|
|
13961
|
+
*/
|
|
13962
|
+
readonly include?: string
|
|
13963
|
+
|
|
13964
|
+
/**
|
|
13965
|
+
* Id do produto
|
|
13966
|
+
* @type {string}
|
|
13967
|
+
* @memberof ProductsApiProductsIndex
|
|
13968
|
+
*/
|
|
13969
|
+
readonly id?: string
|
|
13970
|
+
|
|
13971
|
+
/**
|
|
13972
|
+
* Número serial do produto
|
|
13973
|
+
* @type {string}
|
|
13974
|
+
* @memberof ProductsApiProductsIndex
|
|
13975
|
+
*/
|
|
13976
|
+
readonly serialNumber?: string
|
|
13977
|
+
}
|
|
13978
|
+
|
|
13979
|
+
/**
|
|
13980
|
+
* Request parameters for productsUpdate operation in ProductsApi.
|
|
13981
|
+
* @export
|
|
13982
|
+
* @interface ProductsApiProductsUpdateRequest
|
|
13983
|
+
*/
|
|
13984
|
+
export interface ProductsApiProductsUpdateRequest {
|
|
13985
|
+
/**
|
|
13986
|
+
* ID da promoção
|
|
13987
|
+
* @type {string}
|
|
13988
|
+
* @memberof ProductsApiProductsUpdate
|
|
13989
|
+
*/
|
|
13990
|
+
readonly promotionId: string
|
|
13991
|
+
|
|
13992
|
+
/**
|
|
13993
|
+
*
|
|
13994
|
+
* @type {ProductsCreateRequest}
|
|
13995
|
+
* @memberof ProductsApiProductsUpdate
|
|
13996
|
+
*/
|
|
13997
|
+
readonly productsCreateRequest?: ProductsCreateRequest
|
|
13998
|
+
}
|
|
13999
|
+
|
|
12830
14000
|
/**
|
|
12831
14001
|
* ProductsApi - object-oriented interface
|
|
12832
14002
|
* @export
|
|
@@ -12837,56 +14007,49 @@ export class ProductsApi extends BaseAPI {
|
|
|
12837
14007
|
/**
|
|
12838
14008
|
*
|
|
12839
14009
|
* @summary Cadastra um produto na promoção
|
|
12840
|
-
* @param {
|
|
12841
|
-
* @param {ProductsCreateRequest} [productsCreateRequest]
|
|
14010
|
+
* @param {ProductsApiProductsCreateRequest} requestParameters Request parameters.
|
|
12842
14011
|
* @param {*} [options] Override http request option.
|
|
12843
14012
|
* @throws {RequiredError}
|
|
12844
14013
|
* @memberof ProductsApi
|
|
12845
14014
|
*/
|
|
12846
|
-
public productsCreate(
|
|
12847
|
-
return ProductsApiFp(this.configuration).productsCreate(promotionId, productsCreateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
14015
|
+
public productsCreate(requestParameters: ProductsApiProductsCreateRequest, options?: RawAxiosRequestConfig) {
|
|
14016
|
+
return ProductsApiFp(this.configuration).productsCreate(requestParameters.promotionId, requestParameters.productsCreateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
12848
14017
|
}
|
|
12849
14018
|
|
|
12850
14019
|
/**
|
|
12851
14020
|
*
|
|
12852
14021
|
* @summary Exclui um produto cadastrado na promoção
|
|
12853
|
-
* @param {
|
|
12854
|
-
* @param {string} productId ID do produto
|
|
14022
|
+
* @param {ProductsApiProductsDeleteRequest} requestParameters Request parameters.
|
|
12855
14023
|
* @param {*} [options] Override http request option.
|
|
12856
14024
|
* @throws {RequiredError}
|
|
12857
14025
|
* @memberof ProductsApi
|
|
12858
14026
|
*/
|
|
12859
|
-
public productsDelete(
|
|
12860
|
-
return ProductsApiFp(this.configuration).productsDelete(promotionId, productId, options).then((request) => request(this.axios, this.basePath));
|
|
14027
|
+
public productsDelete(requestParameters: ProductsApiProductsDeleteRequest, options?: RawAxiosRequestConfig) {
|
|
14028
|
+
return ProductsApiFp(this.configuration).productsDelete(requestParameters.promotionId, requestParameters.productId, options).then((request) => request(this.axios, this.basePath));
|
|
12861
14029
|
}
|
|
12862
14030
|
|
|
12863
14031
|
/**
|
|
12864
14032
|
*
|
|
12865
14033
|
* @summary Busca por produtos cadastrados na promoção
|
|
12866
|
-
* @param {
|
|
12867
|
-
* @param {string} [fields] Campos a serem retornados
|
|
12868
|
-
* @param {string} [include] Associações a serem retornadas
|
|
12869
|
-
* @param {string} [id] Id do produto
|
|
12870
|
-
* @param {string} [serialNumber] Número serial do produto
|
|
14034
|
+
* @param {ProductsApiProductsIndexRequest} requestParameters Request parameters.
|
|
12871
14035
|
* @param {*} [options] Override http request option.
|
|
12872
14036
|
* @throws {RequiredError}
|
|
12873
14037
|
* @memberof ProductsApi
|
|
12874
14038
|
*/
|
|
12875
|
-
public productsIndex(
|
|
12876
|
-
return ProductsApiFp(this.configuration).productsIndex(promotionId, fields, include, id, serialNumber, options).then((request) => request(this.axios, this.basePath));
|
|
14039
|
+
public productsIndex(requestParameters: ProductsApiProductsIndexRequest, options?: RawAxiosRequestConfig) {
|
|
14040
|
+
return ProductsApiFp(this.configuration).productsIndex(requestParameters.promotionId, requestParameters.fields, requestParameters.include, requestParameters.id, requestParameters.serialNumber, options).then((request) => request(this.axios, this.basePath));
|
|
12877
14041
|
}
|
|
12878
14042
|
|
|
12879
14043
|
/**
|
|
12880
14044
|
*
|
|
12881
14045
|
* @summary Cadastra ou atualiza produtos na promoção
|
|
12882
|
-
* @param {
|
|
12883
|
-
* @param {ProductsCreateRequest} [productsCreateRequest]
|
|
14046
|
+
* @param {ProductsApiProductsUpdateRequest} requestParameters Request parameters.
|
|
12884
14047
|
* @param {*} [options] Override http request option.
|
|
12885
14048
|
* @throws {RequiredError}
|
|
12886
14049
|
* @memberof ProductsApi
|
|
12887
14050
|
*/
|
|
12888
|
-
public productsUpdate(
|
|
12889
|
-
return ProductsApiFp(this.configuration).productsUpdate(promotionId, productsCreateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
14051
|
+
public productsUpdate(requestParameters: ProductsApiProductsUpdateRequest, options?: RawAxiosRequestConfig) {
|
|
14052
|
+
return ProductsApiFp(this.configuration).productsUpdate(requestParameters.promotionId, requestParameters.productsCreateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
12890
14053
|
}
|
|
12891
14054
|
}
|
|
12892
14055
|
|
|
@@ -12972,16 +14135,30 @@ export const PromotionDataApiFactory = function (configuration?: Configuration,
|
|
|
12972
14135
|
/**
|
|
12973
14136
|
*
|
|
12974
14137
|
* @summary Retorna dados da promoção
|
|
12975
|
-
* @param {
|
|
14138
|
+
* @param {PromotionDataApiConfigsIndexRequest} requestParameters Request parameters.
|
|
12976
14139
|
* @param {*} [options] Override http request option.
|
|
12977
14140
|
* @throws {RequiredError}
|
|
12978
14141
|
*/
|
|
12979
|
-
configsIndex(
|
|
12980
|
-
return localVarFp.configsIndex(promotionId, options).then((request) => request(axios, basePath));
|
|
14142
|
+
configsIndex(requestParameters: PromotionDataApiConfigsIndexRequest, options?: RawAxiosRequestConfig): AxiosPromise<ConfigsIndex200Response> {
|
|
14143
|
+
return localVarFp.configsIndex(requestParameters.promotionId, options).then((request) => request(axios, basePath));
|
|
12981
14144
|
},
|
|
12982
14145
|
};
|
|
12983
14146
|
};
|
|
12984
14147
|
|
|
14148
|
+
/**
|
|
14149
|
+
* Request parameters for configsIndex operation in PromotionDataApi.
|
|
14150
|
+
* @export
|
|
14151
|
+
* @interface PromotionDataApiConfigsIndexRequest
|
|
14152
|
+
*/
|
|
14153
|
+
export interface PromotionDataApiConfigsIndexRequest {
|
|
14154
|
+
/**
|
|
14155
|
+
* ID da promoção
|
|
14156
|
+
* @type {string}
|
|
14157
|
+
* @memberof PromotionDataApiConfigsIndex
|
|
14158
|
+
*/
|
|
14159
|
+
readonly promotionId: string
|
|
14160
|
+
}
|
|
14161
|
+
|
|
12985
14162
|
/**
|
|
12986
14163
|
* PromotionDataApi - object-oriented interface
|
|
12987
14164
|
* @export
|
|
@@ -12992,13 +14169,13 @@ export class PromotionDataApi extends BaseAPI {
|
|
|
12992
14169
|
/**
|
|
12993
14170
|
*
|
|
12994
14171
|
* @summary Retorna dados da promoção
|
|
12995
|
-
* @param {
|
|
14172
|
+
* @param {PromotionDataApiConfigsIndexRequest} requestParameters Request parameters.
|
|
12996
14173
|
* @param {*} [options] Override http request option.
|
|
12997
14174
|
* @throws {RequiredError}
|
|
12998
14175
|
* @memberof PromotionDataApi
|
|
12999
14176
|
*/
|
|
13000
|
-
public configsIndex(
|
|
13001
|
-
return PromotionDataApiFp(this.configuration).configsIndex(promotionId, options).then((request) => request(this.axios, this.basePath));
|
|
14177
|
+
public configsIndex(requestParameters: PromotionDataApiConfigsIndexRequest, options?: RawAxiosRequestConfig) {
|
|
14178
|
+
return PromotionDataApiFp(this.configuration).configsIndex(requestParameters.promotionId, options).then((request) => request(this.axios, this.basePath));
|
|
13002
14179
|
}
|
|
13003
14180
|
}
|
|
13004
14181
|
|
|
@@ -13355,68 +14532,210 @@ export const RafflesApiFactory = function (configuration?: Configuration, basePa
|
|
|
13355
14532
|
/**
|
|
13356
14533
|
*
|
|
13357
14534
|
* @summary Cadastra um sorteio na promoção
|
|
13358
|
-
* @param {
|
|
13359
|
-
* @param {Array<RafflesCreateRequestInner>} [rafflesCreateRequestInner]
|
|
14535
|
+
* @param {RafflesApiRafflesCreateRequest} requestParameters Request parameters.
|
|
13360
14536
|
* @param {*} [options] Override http request option.
|
|
13361
14537
|
* @throws {RequiredError}
|
|
13362
14538
|
*/
|
|
13363
|
-
rafflesCreate(
|
|
13364
|
-
return localVarFp.rafflesCreate(promotionId, rafflesCreateRequestInner, options).then((request) => request(axios, basePath));
|
|
14539
|
+
rafflesCreate(requestParameters: RafflesApiRafflesCreateRequest, options?: RawAxiosRequestConfig): AxiosPromise<RafflesCreate200Response> {
|
|
14540
|
+
return localVarFp.rafflesCreate(requestParameters.promotionId, requestParameters.rafflesCreateRequestInner, options).then((request) => request(axios, basePath));
|
|
13365
14541
|
},
|
|
13366
14542
|
/**
|
|
13367
14543
|
*
|
|
13368
14544
|
* @summary Exclui um sorteio da promoção
|
|
13369
|
-
* @param {
|
|
13370
|
-
* @param {number} id ID do sorteio na promoção
|
|
14545
|
+
* @param {RafflesApiRafflesDeleteRequest} requestParameters Request parameters.
|
|
13371
14546
|
* @param {*} [options] Override http request option.
|
|
13372
14547
|
* @throws {RequiredError}
|
|
13373
14548
|
*/
|
|
13374
|
-
rafflesDelete(
|
|
13375
|
-
return localVarFp.rafflesDelete(promotionId, id, options).then((request) => request(axios, basePath));
|
|
14549
|
+
rafflesDelete(requestParameters: RafflesApiRafflesDeleteRequest, options?: RawAxiosRequestConfig): AxiosPromise<RafflesDelete200Response> {
|
|
14550
|
+
return localVarFp.rafflesDelete(requestParameters.promotionId, requestParameters.id, options).then((request) => request(axios, basePath));
|
|
13376
14551
|
},
|
|
13377
14552
|
/**
|
|
13378
14553
|
*
|
|
13379
14554
|
* @summary Pesquisa por sorteios na promoção
|
|
13380
|
-
* @param {
|
|
13381
|
-
* @param {string} [fields] Campos a serem retornados
|
|
13382
|
-
* @param {string} [id] Id do pedido
|
|
13383
|
-
* @param {string} [raffleDateStart] Início da participação no sorteio
|
|
13384
|
-
* @param {string} [raffleDateEnd] Fim da participação no sorteio
|
|
13385
|
-
* @param {string} [raffleDate] Data prevista para o sorteio
|
|
13386
|
-
* @param {string} [realizadoEm] Data em que o sorteio foi realizado
|
|
13387
|
-
* @param {string} [status] Pesquisa por um sorteio com determinado status
|
|
14555
|
+
* @param {RafflesApiRafflesIndexRequest} requestParameters Request parameters.
|
|
13388
14556
|
* @param {*} [options] Override http request option.
|
|
13389
14557
|
* @throws {RequiredError}
|
|
13390
14558
|
*/
|
|
13391
|
-
rafflesIndex(
|
|
13392
|
-
return localVarFp.rafflesIndex(promotionId, fields, id, raffleDateStart, raffleDateEnd, raffleDate, realizadoEm, status, options).then((request) => request(axios, basePath));
|
|
14559
|
+
rafflesIndex(requestParameters: RafflesApiRafflesIndexRequest, options?: RawAxiosRequestConfig): AxiosPromise<RafflesIndex200Response> {
|
|
14560
|
+
return localVarFp.rafflesIndex(requestParameters.promotionId, requestParameters.fields, requestParameters.id, requestParameters.raffleDateStart, requestParameters.raffleDateEnd, requestParameters.raffleDate, requestParameters.realizadoEm, requestParameters.status, options).then((request) => request(axios, basePath));
|
|
13393
14561
|
},
|
|
13394
14562
|
/**
|
|
13395
14563
|
*
|
|
13396
14564
|
* @summary Envia por e-mail o relatório de cupons participantes de um sorteio
|
|
13397
|
-
* @param {
|
|
13398
|
-
* @param {number} id ID do sorteio na promoção
|
|
13399
|
-
* @param {RafflesReportRequest} [rafflesReportRequest]
|
|
14565
|
+
* @param {RafflesApiRafflesReportRequest} requestParameters Request parameters.
|
|
13400
14566
|
* @param {*} [options] Override http request option.
|
|
13401
14567
|
* @throws {RequiredError}
|
|
13402
14568
|
*/
|
|
13403
|
-
rafflesReport(
|
|
13404
|
-
return localVarFp.rafflesReport(promotionId, id, rafflesReportRequest, options).then((request) => request(axios, basePath));
|
|
14569
|
+
rafflesReport(requestParameters: RafflesApiRafflesReportRequest, options?: RawAxiosRequestConfig): AxiosPromise<RafflesDelete200Response> {
|
|
14570
|
+
return localVarFp.rafflesReport(requestParameters.promotionId, requestParameters.id, requestParameters.rafflesReportRequest, options).then((request) => request(axios, basePath));
|
|
13405
14571
|
},
|
|
13406
14572
|
/**
|
|
13407
14573
|
*
|
|
13408
14574
|
* @summary Cadastra ou atualiza um sorteio na promoção
|
|
13409
|
-
* @param {
|
|
13410
|
-
* @param {Array<RafflesUpdateRequestInner>} [rafflesUpdateRequestInner]
|
|
14575
|
+
* @param {RafflesApiRafflesUpdateRequest} requestParameters Request parameters.
|
|
13411
14576
|
* @param {*} [options] Override http request option.
|
|
13412
14577
|
* @throws {RequiredError}
|
|
13413
14578
|
*/
|
|
13414
|
-
rafflesUpdate(
|
|
13415
|
-
return localVarFp.rafflesUpdate(promotionId, rafflesUpdateRequestInner, options).then((request) => request(axios, basePath));
|
|
14579
|
+
rafflesUpdate(requestParameters: RafflesApiRafflesUpdateRequest, options?: RawAxiosRequestConfig): AxiosPromise<RafflesUpdate200Response> {
|
|
14580
|
+
return localVarFp.rafflesUpdate(requestParameters.promotionId, requestParameters.rafflesUpdateRequestInner, options).then((request) => request(axios, basePath));
|
|
13416
14581
|
},
|
|
13417
14582
|
};
|
|
13418
14583
|
};
|
|
13419
14584
|
|
|
14585
|
+
/**
|
|
14586
|
+
* Request parameters for rafflesCreate operation in RafflesApi.
|
|
14587
|
+
* @export
|
|
14588
|
+
* @interface RafflesApiRafflesCreateRequest
|
|
14589
|
+
*/
|
|
14590
|
+
export interface RafflesApiRafflesCreateRequest {
|
|
14591
|
+
/**
|
|
14592
|
+
* ID da promoção
|
|
14593
|
+
* @type {string}
|
|
14594
|
+
* @memberof RafflesApiRafflesCreate
|
|
14595
|
+
*/
|
|
14596
|
+
readonly promotionId: string
|
|
14597
|
+
|
|
14598
|
+
/**
|
|
14599
|
+
*
|
|
14600
|
+
* @type {Array<RafflesCreateRequestInner>}
|
|
14601
|
+
* @memberof RafflesApiRafflesCreate
|
|
14602
|
+
*/
|
|
14603
|
+
readonly rafflesCreateRequestInner?: Array<RafflesCreateRequestInner>
|
|
14604
|
+
}
|
|
14605
|
+
|
|
14606
|
+
/**
|
|
14607
|
+
* Request parameters for rafflesDelete operation in RafflesApi.
|
|
14608
|
+
* @export
|
|
14609
|
+
* @interface RafflesApiRafflesDeleteRequest
|
|
14610
|
+
*/
|
|
14611
|
+
export interface RafflesApiRafflesDeleteRequest {
|
|
14612
|
+
/**
|
|
14613
|
+
* ID da promoção
|
|
14614
|
+
* @type {string}
|
|
14615
|
+
* @memberof RafflesApiRafflesDelete
|
|
14616
|
+
*/
|
|
14617
|
+
readonly promotionId: string
|
|
14618
|
+
|
|
14619
|
+
/**
|
|
14620
|
+
* ID do sorteio na promoção
|
|
14621
|
+
* @type {number}
|
|
14622
|
+
* @memberof RafflesApiRafflesDelete
|
|
14623
|
+
*/
|
|
14624
|
+
readonly id: number
|
|
14625
|
+
}
|
|
14626
|
+
|
|
14627
|
+
/**
|
|
14628
|
+
* Request parameters for rafflesIndex operation in RafflesApi.
|
|
14629
|
+
* @export
|
|
14630
|
+
* @interface RafflesApiRafflesIndexRequest
|
|
14631
|
+
*/
|
|
14632
|
+
export interface RafflesApiRafflesIndexRequest {
|
|
14633
|
+
/**
|
|
14634
|
+
* ID da promoção
|
|
14635
|
+
* @type {string}
|
|
14636
|
+
* @memberof RafflesApiRafflesIndex
|
|
14637
|
+
*/
|
|
14638
|
+
readonly promotionId: string
|
|
14639
|
+
|
|
14640
|
+
/**
|
|
14641
|
+
* Campos a serem retornados
|
|
14642
|
+
* @type {string}
|
|
14643
|
+
* @memberof RafflesApiRafflesIndex
|
|
14644
|
+
*/
|
|
14645
|
+
readonly fields?: string
|
|
14646
|
+
|
|
14647
|
+
/**
|
|
14648
|
+
* Id do pedido
|
|
14649
|
+
* @type {string}
|
|
14650
|
+
* @memberof RafflesApiRafflesIndex
|
|
14651
|
+
*/
|
|
14652
|
+
readonly id?: string
|
|
14653
|
+
|
|
14654
|
+
/**
|
|
14655
|
+
* Início da participação no sorteio
|
|
14656
|
+
* @type {string}
|
|
14657
|
+
* @memberof RafflesApiRafflesIndex
|
|
14658
|
+
*/
|
|
14659
|
+
readonly raffleDateStart?: string
|
|
14660
|
+
|
|
14661
|
+
/**
|
|
14662
|
+
* Fim da participação no sorteio
|
|
14663
|
+
* @type {string}
|
|
14664
|
+
* @memberof RafflesApiRafflesIndex
|
|
14665
|
+
*/
|
|
14666
|
+
readonly raffleDateEnd?: string
|
|
14667
|
+
|
|
14668
|
+
/**
|
|
14669
|
+
* Data prevista para o sorteio
|
|
14670
|
+
* @type {string}
|
|
14671
|
+
* @memberof RafflesApiRafflesIndex
|
|
14672
|
+
*/
|
|
14673
|
+
readonly raffleDate?: string
|
|
14674
|
+
|
|
14675
|
+
/**
|
|
14676
|
+
* Data em que o sorteio foi realizado
|
|
14677
|
+
* @type {string}
|
|
14678
|
+
* @memberof RafflesApiRafflesIndex
|
|
14679
|
+
*/
|
|
14680
|
+
readonly realizadoEm?: string
|
|
14681
|
+
|
|
14682
|
+
/**
|
|
14683
|
+
* Pesquisa por um sorteio com determinado status
|
|
14684
|
+
* @type {string}
|
|
14685
|
+
* @memberof RafflesApiRafflesIndex
|
|
14686
|
+
*/
|
|
14687
|
+
readonly status?: string
|
|
14688
|
+
}
|
|
14689
|
+
|
|
14690
|
+
/**
|
|
14691
|
+
* Request parameters for rafflesReport operation in RafflesApi.
|
|
14692
|
+
* @export
|
|
14693
|
+
* @interface RafflesApiRafflesReportRequest
|
|
14694
|
+
*/
|
|
14695
|
+
export interface RafflesApiRafflesReportRequest {
|
|
14696
|
+
/**
|
|
14697
|
+
* ID da promoção
|
|
14698
|
+
* @type {string}
|
|
14699
|
+
* @memberof RafflesApiRafflesReport
|
|
14700
|
+
*/
|
|
14701
|
+
readonly promotionId: string
|
|
14702
|
+
|
|
14703
|
+
/**
|
|
14704
|
+
* ID do sorteio na promoção
|
|
14705
|
+
* @type {number}
|
|
14706
|
+
* @memberof RafflesApiRafflesReport
|
|
14707
|
+
*/
|
|
14708
|
+
readonly id: number
|
|
14709
|
+
|
|
14710
|
+
/**
|
|
14711
|
+
*
|
|
14712
|
+
* @type {RafflesReportRequest}
|
|
14713
|
+
* @memberof RafflesApiRafflesReport
|
|
14714
|
+
*/
|
|
14715
|
+
readonly rafflesReportRequest?: RafflesReportRequest
|
|
14716
|
+
}
|
|
14717
|
+
|
|
14718
|
+
/**
|
|
14719
|
+
* Request parameters for rafflesUpdate operation in RafflesApi.
|
|
14720
|
+
* @export
|
|
14721
|
+
* @interface RafflesApiRafflesUpdateRequest
|
|
14722
|
+
*/
|
|
14723
|
+
export interface RafflesApiRafflesUpdateRequest {
|
|
14724
|
+
/**
|
|
14725
|
+
* ID da promoção
|
|
14726
|
+
* @type {string}
|
|
14727
|
+
* @memberof RafflesApiRafflesUpdate
|
|
14728
|
+
*/
|
|
14729
|
+
readonly promotionId: string
|
|
14730
|
+
|
|
14731
|
+
/**
|
|
14732
|
+
*
|
|
14733
|
+
* @type {Array<RafflesUpdateRequestInner>}
|
|
14734
|
+
* @memberof RafflesApiRafflesUpdate
|
|
14735
|
+
*/
|
|
14736
|
+
readonly rafflesUpdateRequestInner?: Array<RafflesUpdateRequestInner>
|
|
14737
|
+
}
|
|
14738
|
+
|
|
13420
14739
|
/**
|
|
13421
14740
|
* RafflesApi - object-oriented interface
|
|
13422
14741
|
* @export
|
|
@@ -13427,73 +14746,61 @@ export class RafflesApi extends BaseAPI {
|
|
|
13427
14746
|
/**
|
|
13428
14747
|
*
|
|
13429
14748
|
* @summary Cadastra um sorteio na promoção
|
|
13430
|
-
* @param {
|
|
13431
|
-
* @param {Array<RafflesCreateRequestInner>} [rafflesCreateRequestInner]
|
|
14749
|
+
* @param {RafflesApiRafflesCreateRequest} requestParameters Request parameters.
|
|
13432
14750
|
* @param {*} [options] Override http request option.
|
|
13433
14751
|
* @throws {RequiredError}
|
|
13434
14752
|
* @memberof RafflesApi
|
|
13435
14753
|
*/
|
|
13436
|
-
public rafflesCreate(
|
|
13437
|
-
return RafflesApiFp(this.configuration).rafflesCreate(promotionId, rafflesCreateRequestInner, options).then((request) => request(this.axios, this.basePath));
|
|
14754
|
+
public rafflesCreate(requestParameters: RafflesApiRafflesCreateRequest, options?: RawAxiosRequestConfig) {
|
|
14755
|
+
return RafflesApiFp(this.configuration).rafflesCreate(requestParameters.promotionId, requestParameters.rafflesCreateRequestInner, options).then((request) => request(this.axios, this.basePath));
|
|
13438
14756
|
}
|
|
13439
14757
|
|
|
13440
14758
|
/**
|
|
13441
14759
|
*
|
|
13442
14760
|
* @summary Exclui um sorteio da promoção
|
|
13443
|
-
* @param {
|
|
13444
|
-
* @param {number} id ID do sorteio na promoção
|
|
14761
|
+
* @param {RafflesApiRafflesDeleteRequest} requestParameters Request parameters.
|
|
13445
14762
|
* @param {*} [options] Override http request option.
|
|
13446
14763
|
* @throws {RequiredError}
|
|
13447
14764
|
* @memberof RafflesApi
|
|
13448
14765
|
*/
|
|
13449
|
-
public rafflesDelete(
|
|
13450
|
-
return RafflesApiFp(this.configuration).rafflesDelete(promotionId, id, options).then((request) => request(this.axios, this.basePath));
|
|
14766
|
+
public rafflesDelete(requestParameters: RafflesApiRafflesDeleteRequest, options?: RawAxiosRequestConfig) {
|
|
14767
|
+
return RafflesApiFp(this.configuration).rafflesDelete(requestParameters.promotionId, requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
13451
14768
|
}
|
|
13452
14769
|
|
|
13453
14770
|
/**
|
|
13454
14771
|
*
|
|
13455
14772
|
* @summary Pesquisa por sorteios na promoção
|
|
13456
|
-
* @param {
|
|
13457
|
-
* @param {string} [fields] Campos a serem retornados
|
|
13458
|
-
* @param {string} [id] Id do pedido
|
|
13459
|
-
* @param {string} [raffleDateStart] Início da participação no sorteio
|
|
13460
|
-
* @param {string} [raffleDateEnd] Fim da participação no sorteio
|
|
13461
|
-
* @param {string} [raffleDate] Data prevista para o sorteio
|
|
13462
|
-
* @param {string} [realizadoEm] Data em que o sorteio foi realizado
|
|
13463
|
-
* @param {string} [status] Pesquisa por um sorteio com determinado status
|
|
14773
|
+
* @param {RafflesApiRafflesIndexRequest} requestParameters Request parameters.
|
|
13464
14774
|
* @param {*} [options] Override http request option.
|
|
13465
14775
|
* @throws {RequiredError}
|
|
13466
14776
|
* @memberof RafflesApi
|
|
13467
14777
|
*/
|
|
13468
|
-
public rafflesIndex(
|
|
13469
|
-
return RafflesApiFp(this.configuration).rafflesIndex(promotionId, fields, id, raffleDateStart, raffleDateEnd, raffleDate, realizadoEm, status, options).then((request) => request(this.axios, this.basePath));
|
|
14778
|
+
public rafflesIndex(requestParameters: RafflesApiRafflesIndexRequest, options?: RawAxiosRequestConfig) {
|
|
14779
|
+
return RafflesApiFp(this.configuration).rafflesIndex(requestParameters.promotionId, requestParameters.fields, requestParameters.id, requestParameters.raffleDateStart, requestParameters.raffleDateEnd, requestParameters.raffleDate, requestParameters.realizadoEm, requestParameters.status, options).then((request) => request(this.axios, this.basePath));
|
|
13470
14780
|
}
|
|
13471
14781
|
|
|
13472
14782
|
/**
|
|
13473
14783
|
*
|
|
13474
14784
|
* @summary Envia por e-mail o relatório de cupons participantes de um sorteio
|
|
13475
|
-
* @param {
|
|
13476
|
-
* @param {number} id ID do sorteio na promoção
|
|
13477
|
-
* @param {RafflesReportRequest} [rafflesReportRequest]
|
|
14785
|
+
* @param {RafflesApiRafflesReportRequest} requestParameters Request parameters.
|
|
13478
14786
|
* @param {*} [options] Override http request option.
|
|
13479
14787
|
* @throws {RequiredError}
|
|
13480
14788
|
* @memberof RafflesApi
|
|
13481
14789
|
*/
|
|
13482
|
-
public rafflesReport(
|
|
13483
|
-
return RafflesApiFp(this.configuration).rafflesReport(promotionId, id, rafflesReportRequest, options).then((request) => request(this.axios, this.basePath));
|
|
14790
|
+
public rafflesReport(requestParameters: RafflesApiRafflesReportRequest, options?: RawAxiosRequestConfig) {
|
|
14791
|
+
return RafflesApiFp(this.configuration).rafflesReport(requestParameters.promotionId, requestParameters.id, requestParameters.rafflesReportRequest, options).then((request) => request(this.axios, this.basePath));
|
|
13484
14792
|
}
|
|
13485
14793
|
|
|
13486
14794
|
/**
|
|
13487
14795
|
*
|
|
13488
14796
|
* @summary Cadastra ou atualiza um sorteio na promoção
|
|
13489
|
-
* @param {
|
|
13490
|
-
* @param {Array<RafflesUpdateRequestInner>} [rafflesUpdateRequestInner]
|
|
14797
|
+
* @param {RafflesApiRafflesUpdateRequest} requestParameters Request parameters.
|
|
13491
14798
|
* @param {*} [options] Override http request option.
|
|
13492
14799
|
* @throws {RequiredError}
|
|
13493
14800
|
* @memberof RafflesApi
|
|
13494
14801
|
*/
|
|
13495
|
-
public rafflesUpdate(
|
|
13496
|
-
return RafflesApiFp(this.configuration).rafflesUpdate(promotionId, rafflesUpdateRequestInner, options).then((request) => request(this.axios, this.basePath));
|
|
14802
|
+
public rafflesUpdate(requestParameters: RafflesApiRafflesUpdateRequest, options?: RawAxiosRequestConfig) {
|
|
14803
|
+
return RafflesApiFp(this.configuration).rafflesUpdate(requestParameters.promotionId, requestParameters.rafflesUpdateRequestInner, options).then((request) => request(this.axios, this.basePath));
|
|
13497
14804
|
}
|
|
13498
14805
|
}
|
|
13499
14806
|
|
|
@@ -13584,17 +14891,37 @@ export const SettingsApiFactory = function (configuration?: Configuration, baseP
|
|
|
13584
14891
|
/**
|
|
13585
14892
|
* Este endpoint é responsável por configurar o webhook da promoção. Ao cadastrar um usuário ou um cupom na promoção, a API irá armazenar estas informações para processar em segundo plano. Ao fim do processamento (ou em caso de falha) do cadastro a API irá fazer uma requisição do tipo POST para o webhook configurado. O `secret` cadastrado será enviado através do header `authorization`.
|
|
13586
14893
|
* @summary Configura o webhook da promoção
|
|
13587
|
-
* @param {
|
|
13588
|
-
* @param {ConfigWebhookRequest} [configWebhookRequest]
|
|
14894
|
+
* @param {SettingsApiConfigWebhookRequest} requestParameters Request parameters.
|
|
13589
14895
|
* @param {*} [options] Override http request option.
|
|
13590
14896
|
* @throws {RequiredError}
|
|
13591
14897
|
*/
|
|
13592
|
-
configWebhook(
|
|
13593
|
-
return localVarFp.configWebhook(promotionId, configWebhookRequest, options).then((request) => request(axios, basePath));
|
|
14898
|
+
configWebhook(requestParameters: SettingsApiConfigWebhookRequest, options?: RawAxiosRequestConfig): AxiosPromise<ConfigWebhook200Response> {
|
|
14899
|
+
return localVarFp.configWebhook(requestParameters.promotionId, requestParameters.configWebhookRequest, options).then((request) => request(axios, basePath));
|
|
13594
14900
|
},
|
|
13595
14901
|
};
|
|
13596
14902
|
};
|
|
13597
14903
|
|
|
14904
|
+
/**
|
|
14905
|
+
* Request parameters for configWebhook operation in SettingsApi.
|
|
14906
|
+
* @export
|
|
14907
|
+
* @interface SettingsApiConfigWebhookRequest
|
|
14908
|
+
*/
|
|
14909
|
+
export interface SettingsApiConfigWebhookRequest {
|
|
14910
|
+
/**
|
|
14911
|
+
* ID da promoção
|
|
14912
|
+
* @type {string}
|
|
14913
|
+
* @memberof SettingsApiConfigWebhook
|
|
14914
|
+
*/
|
|
14915
|
+
readonly promotionId: string
|
|
14916
|
+
|
|
14917
|
+
/**
|
|
14918
|
+
*
|
|
14919
|
+
* @type {ConfigWebhookRequest}
|
|
14920
|
+
* @memberof SettingsApiConfigWebhook
|
|
14921
|
+
*/
|
|
14922
|
+
readonly configWebhookRequest?: ConfigWebhookRequest
|
|
14923
|
+
}
|
|
14924
|
+
|
|
13598
14925
|
/**
|
|
13599
14926
|
* SettingsApi - object-oriented interface
|
|
13600
14927
|
* @export
|
|
@@ -13605,14 +14932,13 @@ export class SettingsApi extends BaseAPI {
|
|
|
13605
14932
|
/**
|
|
13606
14933
|
* Este endpoint é responsável por configurar o webhook da promoção. Ao cadastrar um usuário ou um cupom na promoção, a API irá armazenar estas informações para processar em segundo plano. Ao fim do processamento (ou em caso de falha) do cadastro a API irá fazer uma requisição do tipo POST para o webhook configurado. O `secret` cadastrado será enviado através do header `authorization`.
|
|
13607
14934
|
* @summary Configura o webhook da promoção
|
|
13608
|
-
* @param {
|
|
13609
|
-
* @param {ConfigWebhookRequest} [configWebhookRequest]
|
|
14935
|
+
* @param {SettingsApiConfigWebhookRequest} requestParameters Request parameters.
|
|
13610
14936
|
* @param {*} [options] Override http request option.
|
|
13611
14937
|
* @throws {RequiredError}
|
|
13612
14938
|
* @memberof SettingsApi
|
|
13613
14939
|
*/
|
|
13614
|
-
public configWebhook(
|
|
13615
|
-
return SettingsApiFp(this.configuration).configWebhook(promotionId, configWebhookRequest, options).then((request) => request(this.axios, this.basePath));
|
|
14940
|
+
public configWebhook(requestParameters: SettingsApiConfigWebhookRequest, options?: RawAxiosRequestConfig) {
|
|
14941
|
+
return SettingsApiFp(this.configuration).configWebhook(requestParameters.promotionId, requestParameters.configWebhookRequest, options).then((request) => request(this.axios, this.basePath));
|
|
13616
14942
|
}
|
|
13617
14943
|
}
|
|
13618
14944
|
|
|
@@ -13890,53 +15216,151 @@ export const StoresApiFactory = function (configuration?: Configuration, basePat
|
|
|
13890
15216
|
/**
|
|
13891
15217
|
*
|
|
13892
15218
|
* @summary Cadastra uma loja na promoção
|
|
13893
|
-
* @param {
|
|
13894
|
-
* @param {StoresCreateRequest} [storesCreateRequest]
|
|
15219
|
+
* @param {StoresApiStoresCreateRequest} requestParameters Request parameters.
|
|
13895
15220
|
* @param {*} [options] Override http request option.
|
|
13896
15221
|
* @throws {RequiredError}
|
|
13897
15222
|
*/
|
|
13898
|
-
storesCreate(
|
|
13899
|
-
return localVarFp.storesCreate(promotionId, storesCreateRequest, options).then((request) => request(axios, basePath));
|
|
15223
|
+
storesCreate(requestParameters: StoresApiStoresCreateRequest, options?: RawAxiosRequestConfig): AxiosPromise<StoresCreate200Response> {
|
|
15224
|
+
return localVarFp.storesCreate(requestParameters.promotionId, requestParameters.storesCreateRequest, options).then((request) => request(axios, basePath));
|
|
13900
15225
|
},
|
|
13901
15226
|
/**
|
|
13902
15227
|
*
|
|
13903
15228
|
* @summary Exclui um produto cadastrado na promoção
|
|
13904
|
-
* @param {
|
|
13905
|
-
* @param {string} storeId ID da loja
|
|
15229
|
+
* @param {StoresApiStoresDeleteRequest} requestParameters Request parameters.
|
|
13906
15230
|
* @param {*} [options] Override http request option.
|
|
13907
15231
|
* @throws {RequiredError}
|
|
13908
15232
|
*/
|
|
13909
|
-
storesDelete(
|
|
13910
|
-
return localVarFp.storesDelete(promotionId, storeId, options).then((request) => request(axios, basePath));
|
|
15233
|
+
storesDelete(requestParameters: StoresApiStoresDeleteRequest, options?: RawAxiosRequestConfig): AxiosPromise<StoresDelete200Response> {
|
|
15234
|
+
return localVarFp.storesDelete(requestParameters.promotionId, requestParameters.storeId, options).then((request) => request(axios, basePath));
|
|
13911
15235
|
},
|
|
13912
15236
|
/**
|
|
13913
15237
|
*
|
|
13914
15238
|
* @summary Busca por lojas cadastradas na promoção
|
|
13915
|
-
* @param {
|
|
13916
|
-
* @param {string} [fields] Campos a serem retornados
|
|
13917
|
-
* @param {string} [include] Associações a serem retornadas
|
|
13918
|
-
* @param {string} [id] Id da loja
|
|
13919
|
-
* @param {string} [cnpj] CNPJ da loja
|
|
15239
|
+
* @param {StoresApiStoresIndexRequest} requestParameters Request parameters.
|
|
13920
15240
|
* @param {*} [options] Override http request option.
|
|
13921
15241
|
* @throws {RequiredError}
|
|
13922
15242
|
*/
|
|
13923
|
-
storesIndex(
|
|
13924
|
-
return localVarFp.storesIndex(promotionId, fields, include, id, cnpj, options).then((request) => request(axios, basePath));
|
|
15243
|
+
storesIndex(requestParameters: StoresApiStoresIndexRequest, options?: RawAxiosRequestConfig): AxiosPromise<StoresIndex200Response> {
|
|
15244
|
+
return localVarFp.storesIndex(requestParameters.promotionId, requestParameters.fields, requestParameters.include, requestParameters.id, requestParameters.cnpj, options).then((request) => request(axios, basePath));
|
|
13925
15245
|
},
|
|
13926
15246
|
/**
|
|
13927
15247
|
*
|
|
13928
15248
|
* @summary Cadastra ou atualiza lojas na promoção
|
|
13929
|
-
* @param {
|
|
13930
|
-
* @param {StoresCreateRequest} [storesCreateRequest]
|
|
15249
|
+
* @param {StoresApiStoresUpdateRequest} requestParameters Request parameters.
|
|
13931
15250
|
* @param {*} [options] Override http request option.
|
|
13932
15251
|
* @throws {RequiredError}
|
|
13933
15252
|
*/
|
|
13934
|
-
storesUpdate(
|
|
13935
|
-
return localVarFp.storesUpdate(promotionId, storesCreateRequest, options).then((request) => request(axios, basePath));
|
|
15253
|
+
storesUpdate(requestParameters: StoresApiStoresUpdateRequest, options?: RawAxiosRequestConfig): AxiosPromise<StoresUpdate201Response> {
|
|
15254
|
+
return localVarFp.storesUpdate(requestParameters.promotionId, requestParameters.storesCreateRequest, options).then((request) => request(axios, basePath));
|
|
13936
15255
|
},
|
|
13937
15256
|
};
|
|
13938
15257
|
};
|
|
13939
15258
|
|
|
15259
|
+
/**
|
|
15260
|
+
* Request parameters for storesCreate operation in StoresApi.
|
|
15261
|
+
* @export
|
|
15262
|
+
* @interface StoresApiStoresCreateRequest
|
|
15263
|
+
*/
|
|
15264
|
+
export interface StoresApiStoresCreateRequest {
|
|
15265
|
+
/**
|
|
15266
|
+
* ID da promoção
|
|
15267
|
+
* @type {string}
|
|
15268
|
+
* @memberof StoresApiStoresCreate
|
|
15269
|
+
*/
|
|
15270
|
+
readonly promotionId: string
|
|
15271
|
+
|
|
15272
|
+
/**
|
|
15273
|
+
*
|
|
15274
|
+
* @type {StoresCreateRequest}
|
|
15275
|
+
* @memberof StoresApiStoresCreate
|
|
15276
|
+
*/
|
|
15277
|
+
readonly storesCreateRequest?: StoresCreateRequest
|
|
15278
|
+
}
|
|
15279
|
+
|
|
15280
|
+
/**
|
|
15281
|
+
* Request parameters for storesDelete operation in StoresApi.
|
|
15282
|
+
* @export
|
|
15283
|
+
* @interface StoresApiStoresDeleteRequest
|
|
15284
|
+
*/
|
|
15285
|
+
export interface StoresApiStoresDeleteRequest {
|
|
15286
|
+
/**
|
|
15287
|
+
* ID da promoção
|
|
15288
|
+
* @type {string}
|
|
15289
|
+
* @memberof StoresApiStoresDelete
|
|
15290
|
+
*/
|
|
15291
|
+
readonly promotionId: string
|
|
15292
|
+
|
|
15293
|
+
/**
|
|
15294
|
+
* ID da loja
|
|
15295
|
+
* @type {string}
|
|
15296
|
+
* @memberof StoresApiStoresDelete
|
|
15297
|
+
*/
|
|
15298
|
+
readonly storeId: string
|
|
15299
|
+
}
|
|
15300
|
+
|
|
15301
|
+
/**
|
|
15302
|
+
* Request parameters for storesIndex operation in StoresApi.
|
|
15303
|
+
* @export
|
|
15304
|
+
* @interface StoresApiStoresIndexRequest
|
|
15305
|
+
*/
|
|
15306
|
+
export interface StoresApiStoresIndexRequest {
|
|
15307
|
+
/**
|
|
15308
|
+
* ID da promoção
|
|
15309
|
+
* @type {string}
|
|
15310
|
+
* @memberof StoresApiStoresIndex
|
|
15311
|
+
*/
|
|
15312
|
+
readonly promotionId: string
|
|
15313
|
+
|
|
15314
|
+
/**
|
|
15315
|
+
* Campos a serem retornados
|
|
15316
|
+
* @type {string}
|
|
15317
|
+
* @memberof StoresApiStoresIndex
|
|
15318
|
+
*/
|
|
15319
|
+
readonly fields?: string
|
|
15320
|
+
|
|
15321
|
+
/**
|
|
15322
|
+
* Associações a serem retornadas
|
|
15323
|
+
* @type {string}
|
|
15324
|
+
* @memberof StoresApiStoresIndex
|
|
15325
|
+
*/
|
|
15326
|
+
readonly include?: string
|
|
15327
|
+
|
|
15328
|
+
/**
|
|
15329
|
+
* Id da loja
|
|
15330
|
+
* @type {string}
|
|
15331
|
+
* @memberof StoresApiStoresIndex
|
|
15332
|
+
*/
|
|
15333
|
+
readonly id?: string
|
|
15334
|
+
|
|
15335
|
+
/**
|
|
15336
|
+
* CNPJ da loja
|
|
15337
|
+
* @type {string}
|
|
15338
|
+
* @memberof StoresApiStoresIndex
|
|
15339
|
+
*/
|
|
15340
|
+
readonly cnpj?: string
|
|
15341
|
+
}
|
|
15342
|
+
|
|
15343
|
+
/**
|
|
15344
|
+
* Request parameters for storesUpdate operation in StoresApi.
|
|
15345
|
+
* @export
|
|
15346
|
+
* @interface StoresApiStoresUpdateRequest
|
|
15347
|
+
*/
|
|
15348
|
+
export interface StoresApiStoresUpdateRequest {
|
|
15349
|
+
/**
|
|
15350
|
+
* ID da promoção
|
|
15351
|
+
* @type {string}
|
|
15352
|
+
* @memberof StoresApiStoresUpdate
|
|
15353
|
+
*/
|
|
15354
|
+
readonly promotionId: string
|
|
15355
|
+
|
|
15356
|
+
/**
|
|
15357
|
+
*
|
|
15358
|
+
* @type {StoresCreateRequest}
|
|
15359
|
+
* @memberof StoresApiStoresUpdate
|
|
15360
|
+
*/
|
|
15361
|
+
readonly storesCreateRequest?: StoresCreateRequest
|
|
15362
|
+
}
|
|
15363
|
+
|
|
13940
15364
|
/**
|
|
13941
15365
|
* StoresApi - object-oriented interface
|
|
13942
15366
|
* @export
|
|
@@ -13947,56 +15371,49 @@ export class StoresApi extends BaseAPI {
|
|
|
13947
15371
|
/**
|
|
13948
15372
|
*
|
|
13949
15373
|
* @summary Cadastra uma loja na promoção
|
|
13950
|
-
* @param {
|
|
13951
|
-
* @param {StoresCreateRequest} [storesCreateRequest]
|
|
15374
|
+
* @param {StoresApiStoresCreateRequest} requestParameters Request parameters.
|
|
13952
15375
|
* @param {*} [options] Override http request option.
|
|
13953
15376
|
* @throws {RequiredError}
|
|
13954
15377
|
* @memberof StoresApi
|
|
13955
15378
|
*/
|
|
13956
|
-
public storesCreate(
|
|
13957
|
-
return StoresApiFp(this.configuration).storesCreate(promotionId, storesCreateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
15379
|
+
public storesCreate(requestParameters: StoresApiStoresCreateRequest, options?: RawAxiosRequestConfig) {
|
|
15380
|
+
return StoresApiFp(this.configuration).storesCreate(requestParameters.promotionId, requestParameters.storesCreateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
13958
15381
|
}
|
|
13959
15382
|
|
|
13960
15383
|
/**
|
|
13961
15384
|
*
|
|
13962
15385
|
* @summary Exclui um produto cadastrado na promoção
|
|
13963
|
-
* @param {
|
|
13964
|
-
* @param {string} storeId ID da loja
|
|
15386
|
+
* @param {StoresApiStoresDeleteRequest} requestParameters Request parameters.
|
|
13965
15387
|
* @param {*} [options] Override http request option.
|
|
13966
15388
|
* @throws {RequiredError}
|
|
13967
15389
|
* @memberof StoresApi
|
|
13968
15390
|
*/
|
|
13969
|
-
public storesDelete(
|
|
13970
|
-
return StoresApiFp(this.configuration).storesDelete(promotionId, storeId, options).then((request) => request(this.axios, this.basePath));
|
|
15391
|
+
public storesDelete(requestParameters: StoresApiStoresDeleteRequest, options?: RawAxiosRequestConfig) {
|
|
15392
|
+
return StoresApiFp(this.configuration).storesDelete(requestParameters.promotionId, requestParameters.storeId, options).then((request) => request(this.axios, this.basePath));
|
|
13971
15393
|
}
|
|
13972
15394
|
|
|
13973
15395
|
/**
|
|
13974
15396
|
*
|
|
13975
15397
|
* @summary Busca por lojas cadastradas na promoção
|
|
13976
|
-
* @param {
|
|
13977
|
-
* @param {string} [fields] Campos a serem retornados
|
|
13978
|
-
* @param {string} [include] Associações a serem retornadas
|
|
13979
|
-
* @param {string} [id] Id da loja
|
|
13980
|
-
* @param {string} [cnpj] CNPJ da loja
|
|
15398
|
+
* @param {StoresApiStoresIndexRequest} requestParameters Request parameters.
|
|
13981
15399
|
* @param {*} [options] Override http request option.
|
|
13982
15400
|
* @throws {RequiredError}
|
|
13983
15401
|
* @memberof StoresApi
|
|
13984
15402
|
*/
|
|
13985
|
-
public storesIndex(
|
|
13986
|
-
return StoresApiFp(this.configuration).storesIndex(promotionId, fields, include, id, cnpj, options).then((request) => request(this.axios, this.basePath));
|
|
15403
|
+
public storesIndex(requestParameters: StoresApiStoresIndexRequest, options?: RawAxiosRequestConfig) {
|
|
15404
|
+
return StoresApiFp(this.configuration).storesIndex(requestParameters.promotionId, requestParameters.fields, requestParameters.include, requestParameters.id, requestParameters.cnpj, options).then((request) => request(this.axios, this.basePath));
|
|
13987
15405
|
}
|
|
13988
15406
|
|
|
13989
15407
|
/**
|
|
13990
15408
|
*
|
|
13991
15409
|
* @summary Cadastra ou atualiza lojas na promoção
|
|
13992
|
-
* @param {
|
|
13993
|
-
* @param {StoresCreateRequest} [storesCreateRequest]
|
|
15410
|
+
* @param {StoresApiStoresUpdateRequest} requestParameters Request parameters.
|
|
13994
15411
|
* @param {*} [options] Override http request option.
|
|
13995
15412
|
* @throws {RequiredError}
|
|
13996
15413
|
* @memberof StoresApi
|
|
13997
15414
|
*/
|
|
13998
|
-
public storesUpdate(
|
|
13999
|
-
return StoresApiFp(this.configuration).storesUpdate(promotionId, storesCreateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
15415
|
+
public storesUpdate(requestParameters: StoresApiStoresUpdateRequest, options?: RawAxiosRequestConfig) {
|
|
15416
|
+
return StoresApiFp(this.configuration).storesUpdate(requestParameters.promotionId, requestParameters.storesCreateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
14000
15417
|
}
|
|
14001
15418
|
}
|
|
14002
15419
|
|
|
@@ -14292,56 +15709,172 @@ export const TicketsApiFactory = function (configuration?: Configuration, basePa
|
|
|
14292
15709
|
/**
|
|
14293
15710
|
*
|
|
14294
15711
|
* @summary Cadastra um ticket de suporte na promoção
|
|
14295
|
-
* @param {
|
|
14296
|
-
* @param {Array<Ticket>} [ticket]
|
|
15712
|
+
* @param {TicketsApiTicketsCreateRequest} requestParameters Request parameters.
|
|
14297
15713
|
* @param {*} [options] Override http request option.
|
|
14298
15714
|
* @throws {RequiredError}
|
|
14299
15715
|
*/
|
|
14300
|
-
ticketsCreate(
|
|
14301
|
-
return localVarFp.ticketsCreate(promotionId, ticket, options).then((request) => request(axios, basePath));
|
|
15716
|
+
ticketsCreate(requestParameters: TicketsApiTicketsCreateRequest, options?: RawAxiosRequestConfig): AxiosPromise<TicketsCreate200Response> {
|
|
15717
|
+
return localVarFp.ticketsCreate(requestParameters.promotionId, requestParameters.ticket, options).then((request) => request(axios, basePath));
|
|
14302
15718
|
},
|
|
14303
15719
|
/**
|
|
14304
15720
|
*
|
|
14305
15721
|
* @summary Exclui um ticket de suporte da promoção
|
|
14306
|
-
* @param {
|
|
14307
|
-
* @param {number} id ID do ticket de suporte
|
|
15722
|
+
* @param {TicketsApiTicketsDeleteRequest} requestParameters Request parameters.
|
|
14308
15723
|
* @param {*} [options] Override http request option.
|
|
14309
15724
|
* @throws {RequiredError}
|
|
14310
15725
|
*/
|
|
14311
|
-
ticketsDelete(
|
|
14312
|
-
return localVarFp.ticketsDelete(promotionId, id, options).then((request) => request(axios, basePath));
|
|
15726
|
+
ticketsDelete(requestParameters: TicketsApiTicketsDeleteRequest, options?: RawAxiosRequestConfig): AxiosPromise<TicketsDelete200Response> {
|
|
15727
|
+
return localVarFp.ticketsDelete(requestParameters.promotionId, requestParameters.id, options).then((request) => request(axios, basePath));
|
|
14313
15728
|
},
|
|
14314
15729
|
/**
|
|
14315
15730
|
*
|
|
14316
15731
|
* @summary Busca por tickets de suporte cadastrados na promoção
|
|
14317
|
-
* @param {
|
|
14318
|
-
* @param {string} [fields] Dados associados
|
|
14319
|
-
* @param {string} [include] Dados associados
|
|
14320
|
-
* @param {string} [id] Id do ticket
|
|
14321
|
-
* @param {string} [parentId] Id do ticket que gerou a resposta
|
|
14322
|
-
* @param {string} [userFromId] Id do remetente
|
|
14323
|
-
* @param {string} [userToId] Id do destinatário
|
|
14324
|
-
* @param {string} [status] Status do destinatário
|
|
15732
|
+
* @param {TicketsApiTicketsIndexRequest} requestParameters Request parameters.
|
|
14325
15733
|
* @param {*} [options] Override http request option.
|
|
14326
15734
|
* @throws {RequiredError}
|
|
14327
15735
|
*/
|
|
14328
|
-
ticketsIndex(
|
|
14329
|
-
return localVarFp.ticketsIndex(promotionId, fields, include, id, parentId, userFromId, userToId, status, options).then((request) => request(axios, basePath));
|
|
15736
|
+
ticketsIndex(requestParameters: TicketsApiTicketsIndexRequest, options?: RawAxiosRequestConfig): AxiosPromise<TicketsIndex200Response> {
|
|
15737
|
+
return localVarFp.ticketsIndex(requestParameters.promotionId, requestParameters.fields, requestParameters.include, requestParameters.id, requestParameters.parentId, requestParameters.userFromId, requestParameters.userToId, requestParameters.status, options).then((request) => request(axios, basePath));
|
|
14330
15738
|
},
|
|
14331
15739
|
/**
|
|
14332
15740
|
*
|
|
14333
15741
|
* @summary Cadastra ou atualiza um ticket de suporte na promoção
|
|
14334
|
-
* @param {
|
|
14335
|
-
* @param {Array<Ticket>} [ticket]
|
|
15742
|
+
* @param {TicketsApiTicketsUpdateRequest} requestParameters Request parameters.
|
|
14336
15743
|
* @param {*} [options] Override http request option.
|
|
14337
15744
|
* @throws {RequiredError}
|
|
14338
15745
|
*/
|
|
14339
|
-
ticketsUpdate(
|
|
14340
|
-
return localVarFp.ticketsUpdate(promotionId, ticket, options).then((request) => request(axios, basePath));
|
|
15746
|
+
ticketsUpdate(requestParameters: TicketsApiTicketsUpdateRequest, options?: RawAxiosRequestConfig): AxiosPromise<TicketsUpdate200Response> {
|
|
15747
|
+
return localVarFp.ticketsUpdate(requestParameters.promotionId, requestParameters.ticket, options).then((request) => request(axios, basePath));
|
|
14341
15748
|
},
|
|
14342
15749
|
};
|
|
14343
15750
|
};
|
|
14344
15751
|
|
|
15752
|
+
/**
|
|
15753
|
+
* Request parameters for ticketsCreate operation in TicketsApi.
|
|
15754
|
+
* @export
|
|
15755
|
+
* @interface TicketsApiTicketsCreateRequest
|
|
15756
|
+
*/
|
|
15757
|
+
export interface TicketsApiTicketsCreateRequest {
|
|
15758
|
+
/**
|
|
15759
|
+
* ID da promoção
|
|
15760
|
+
* @type {string}
|
|
15761
|
+
* @memberof TicketsApiTicketsCreate
|
|
15762
|
+
*/
|
|
15763
|
+
readonly promotionId: string
|
|
15764
|
+
|
|
15765
|
+
/**
|
|
15766
|
+
*
|
|
15767
|
+
* @type {Array<Ticket>}
|
|
15768
|
+
* @memberof TicketsApiTicketsCreate
|
|
15769
|
+
*/
|
|
15770
|
+
readonly ticket?: Array<Ticket>
|
|
15771
|
+
}
|
|
15772
|
+
|
|
15773
|
+
/**
|
|
15774
|
+
* Request parameters for ticketsDelete operation in TicketsApi.
|
|
15775
|
+
* @export
|
|
15776
|
+
* @interface TicketsApiTicketsDeleteRequest
|
|
15777
|
+
*/
|
|
15778
|
+
export interface TicketsApiTicketsDeleteRequest {
|
|
15779
|
+
/**
|
|
15780
|
+
* ID da promoção
|
|
15781
|
+
* @type {string}
|
|
15782
|
+
* @memberof TicketsApiTicketsDelete
|
|
15783
|
+
*/
|
|
15784
|
+
readonly promotionId: string
|
|
15785
|
+
|
|
15786
|
+
/**
|
|
15787
|
+
* ID do ticket de suporte
|
|
15788
|
+
* @type {number}
|
|
15789
|
+
* @memberof TicketsApiTicketsDelete
|
|
15790
|
+
*/
|
|
15791
|
+
readonly id: number
|
|
15792
|
+
}
|
|
15793
|
+
|
|
15794
|
+
/**
|
|
15795
|
+
* Request parameters for ticketsIndex operation in TicketsApi.
|
|
15796
|
+
* @export
|
|
15797
|
+
* @interface TicketsApiTicketsIndexRequest
|
|
15798
|
+
*/
|
|
15799
|
+
export interface TicketsApiTicketsIndexRequest {
|
|
15800
|
+
/**
|
|
15801
|
+
* ID da promoção
|
|
15802
|
+
* @type {string}
|
|
15803
|
+
* @memberof TicketsApiTicketsIndex
|
|
15804
|
+
*/
|
|
15805
|
+
readonly promotionId: string
|
|
15806
|
+
|
|
15807
|
+
/**
|
|
15808
|
+
* Dados associados
|
|
15809
|
+
* @type {string}
|
|
15810
|
+
* @memberof TicketsApiTicketsIndex
|
|
15811
|
+
*/
|
|
15812
|
+
readonly fields?: string
|
|
15813
|
+
|
|
15814
|
+
/**
|
|
15815
|
+
* Dados associados
|
|
15816
|
+
* @type {string}
|
|
15817
|
+
* @memberof TicketsApiTicketsIndex
|
|
15818
|
+
*/
|
|
15819
|
+
readonly include?: string
|
|
15820
|
+
|
|
15821
|
+
/**
|
|
15822
|
+
* Id do ticket
|
|
15823
|
+
* @type {string}
|
|
15824
|
+
* @memberof TicketsApiTicketsIndex
|
|
15825
|
+
*/
|
|
15826
|
+
readonly id?: string
|
|
15827
|
+
|
|
15828
|
+
/**
|
|
15829
|
+
* Id do ticket que gerou a resposta
|
|
15830
|
+
* @type {string}
|
|
15831
|
+
* @memberof TicketsApiTicketsIndex
|
|
15832
|
+
*/
|
|
15833
|
+
readonly parentId?: string
|
|
15834
|
+
|
|
15835
|
+
/**
|
|
15836
|
+
* Id do remetente
|
|
15837
|
+
* @type {string}
|
|
15838
|
+
* @memberof TicketsApiTicketsIndex
|
|
15839
|
+
*/
|
|
15840
|
+
readonly userFromId?: string
|
|
15841
|
+
|
|
15842
|
+
/**
|
|
15843
|
+
* Id do destinatário
|
|
15844
|
+
* @type {string}
|
|
15845
|
+
* @memberof TicketsApiTicketsIndex
|
|
15846
|
+
*/
|
|
15847
|
+
readonly userToId?: string
|
|
15848
|
+
|
|
15849
|
+
/**
|
|
15850
|
+
* Status do destinatário
|
|
15851
|
+
* @type {string}
|
|
15852
|
+
* @memberof TicketsApiTicketsIndex
|
|
15853
|
+
*/
|
|
15854
|
+
readonly status?: string
|
|
15855
|
+
}
|
|
15856
|
+
|
|
15857
|
+
/**
|
|
15858
|
+
* Request parameters for ticketsUpdate operation in TicketsApi.
|
|
15859
|
+
* @export
|
|
15860
|
+
* @interface TicketsApiTicketsUpdateRequest
|
|
15861
|
+
*/
|
|
15862
|
+
export interface TicketsApiTicketsUpdateRequest {
|
|
15863
|
+
/**
|
|
15864
|
+
* ID da promoção
|
|
15865
|
+
* @type {string}
|
|
15866
|
+
* @memberof TicketsApiTicketsUpdate
|
|
15867
|
+
*/
|
|
15868
|
+
readonly promotionId: string
|
|
15869
|
+
|
|
15870
|
+
/**
|
|
15871
|
+
*
|
|
15872
|
+
* @type {Array<Ticket>}
|
|
15873
|
+
* @memberof TicketsApiTicketsUpdate
|
|
15874
|
+
*/
|
|
15875
|
+
readonly ticket?: Array<Ticket>
|
|
15876
|
+
}
|
|
15877
|
+
|
|
14345
15878
|
/**
|
|
14346
15879
|
* TicketsApi - object-oriented interface
|
|
14347
15880
|
* @export
|
|
@@ -14352,59 +15885,49 @@ export class TicketsApi extends BaseAPI {
|
|
|
14352
15885
|
/**
|
|
14353
15886
|
*
|
|
14354
15887
|
* @summary Cadastra um ticket de suporte na promoção
|
|
14355
|
-
* @param {
|
|
14356
|
-
* @param {Array<Ticket>} [ticket]
|
|
15888
|
+
* @param {TicketsApiTicketsCreateRequest} requestParameters Request parameters.
|
|
14357
15889
|
* @param {*} [options] Override http request option.
|
|
14358
15890
|
* @throws {RequiredError}
|
|
14359
15891
|
* @memberof TicketsApi
|
|
14360
15892
|
*/
|
|
14361
|
-
public ticketsCreate(
|
|
14362
|
-
return TicketsApiFp(this.configuration).ticketsCreate(promotionId, ticket, options).then((request) => request(this.axios, this.basePath));
|
|
15893
|
+
public ticketsCreate(requestParameters: TicketsApiTicketsCreateRequest, options?: RawAxiosRequestConfig) {
|
|
15894
|
+
return TicketsApiFp(this.configuration).ticketsCreate(requestParameters.promotionId, requestParameters.ticket, options).then((request) => request(this.axios, this.basePath));
|
|
14363
15895
|
}
|
|
14364
15896
|
|
|
14365
15897
|
/**
|
|
14366
15898
|
*
|
|
14367
15899
|
* @summary Exclui um ticket de suporte da promoção
|
|
14368
|
-
* @param {
|
|
14369
|
-
* @param {number} id ID do ticket de suporte
|
|
15900
|
+
* @param {TicketsApiTicketsDeleteRequest} requestParameters Request parameters.
|
|
14370
15901
|
* @param {*} [options] Override http request option.
|
|
14371
15902
|
* @throws {RequiredError}
|
|
14372
15903
|
* @memberof TicketsApi
|
|
14373
15904
|
*/
|
|
14374
|
-
public ticketsDelete(
|
|
14375
|
-
return TicketsApiFp(this.configuration).ticketsDelete(promotionId, id, options).then((request) => request(this.axios, this.basePath));
|
|
15905
|
+
public ticketsDelete(requestParameters: TicketsApiTicketsDeleteRequest, options?: RawAxiosRequestConfig) {
|
|
15906
|
+
return TicketsApiFp(this.configuration).ticketsDelete(requestParameters.promotionId, requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
14376
15907
|
}
|
|
14377
15908
|
|
|
14378
15909
|
/**
|
|
14379
15910
|
*
|
|
14380
15911
|
* @summary Busca por tickets de suporte cadastrados na promoção
|
|
14381
|
-
* @param {
|
|
14382
|
-
* @param {string} [fields] Dados associados
|
|
14383
|
-
* @param {string} [include] Dados associados
|
|
14384
|
-
* @param {string} [id] Id do ticket
|
|
14385
|
-
* @param {string} [parentId] Id do ticket que gerou a resposta
|
|
14386
|
-
* @param {string} [userFromId] Id do remetente
|
|
14387
|
-
* @param {string} [userToId] Id do destinatário
|
|
14388
|
-
* @param {string} [status] Status do destinatário
|
|
15912
|
+
* @param {TicketsApiTicketsIndexRequest} requestParameters Request parameters.
|
|
14389
15913
|
* @param {*} [options] Override http request option.
|
|
14390
15914
|
* @throws {RequiredError}
|
|
14391
15915
|
* @memberof TicketsApi
|
|
14392
15916
|
*/
|
|
14393
|
-
public ticketsIndex(
|
|
14394
|
-
return TicketsApiFp(this.configuration).ticketsIndex(promotionId, fields, include, id, parentId, userFromId, userToId, status, options).then((request) => request(this.axios, this.basePath));
|
|
15917
|
+
public ticketsIndex(requestParameters: TicketsApiTicketsIndexRequest, options?: RawAxiosRequestConfig) {
|
|
15918
|
+
return TicketsApiFp(this.configuration).ticketsIndex(requestParameters.promotionId, requestParameters.fields, requestParameters.include, requestParameters.id, requestParameters.parentId, requestParameters.userFromId, requestParameters.userToId, requestParameters.status, options).then((request) => request(this.axios, this.basePath));
|
|
14395
15919
|
}
|
|
14396
15920
|
|
|
14397
15921
|
/**
|
|
14398
15922
|
*
|
|
14399
15923
|
* @summary Cadastra ou atualiza um ticket de suporte na promoção
|
|
14400
|
-
* @param {
|
|
14401
|
-
* @param {Array<Ticket>} [ticket]
|
|
15924
|
+
* @param {TicketsApiTicketsUpdateRequest} requestParameters Request parameters.
|
|
14402
15925
|
* @param {*} [options] Override http request option.
|
|
14403
15926
|
* @throws {RequiredError}
|
|
14404
15927
|
* @memberof TicketsApi
|
|
14405
15928
|
*/
|
|
14406
|
-
public ticketsUpdate(
|
|
14407
|
-
return TicketsApiFp(this.configuration).ticketsUpdate(promotionId, ticket, options).then((request) => request(this.axios, this.basePath));
|
|
15929
|
+
public ticketsUpdate(requestParameters: TicketsApiTicketsUpdateRequest, options?: RawAxiosRequestConfig) {
|
|
15930
|
+
return TicketsApiFp(this.configuration).ticketsUpdate(requestParameters.promotionId, requestParameters.ticket, options).then((request) => request(this.axios, this.basePath));
|
|
14408
15931
|
}
|
|
14409
15932
|
}
|
|
14410
15933
|
|
|
@@ -14751,66 +16274,196 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
|
|
|
14751
16274
|
/**
|
|
14752
16275
|
*
|
|
14753
16276
|
* @summary Cadastra um usuário na promoção
|
|
14754
|
-
* @param {
|
|
14755
|
-
* @param {UsersCreateRequest} [usersCreateRequest]
|
|
16277
|
+
* @param {UsersApiUsersCreateRequest} requestParameters Request parameters.
|
|
14756
16278
|
* @param {*} [options] Override http request option.
|
|
14757
16279
|
* @throws {RequiredError}
|
|
14758
16280
|
*/
|
|
14759
|
-
usersCreate(
|
|
14760
|
-
return localVarFp.usersCreate(promotionId, usersCreateRequest, options).then((request) => request(axios, basePath));
|
|
16281
|
+
usersCreate(requestParameters: UsersApiUsersCreateRequest, options?: RawAxiosRequestConfig): AxiosPromise<UsersCreate201Response> {
|
|
16282
|
+
return localVarFp.usersCreate(requestParameters.promotionId, requestParameters.usersCreateRequest, options).then((request) => request(axios, basePath));
|
|
14761
16283
|
},
|
|
14762
16284
|
/**
|
|
14763
16285
|
*
|
|
14764
16286
|
* @summary Exclui um usuário da promoção
|
|
14765
|
-
* @param {
|
|
14766
|
-
* @param {string} userId ID do usuário
|
|
16287
|
+
* @param {UsersApiUsersDeleteRequest} requestParameters Request parameters.
|
|
14767
16288
|
* @param {*} [options] Override http request option.
|
|
14768
16289
|
* @throws {RequiredError}
|
|
14769
16290
|
*/
|
|
14770
|
-
usersDelete(
|
|
14771
|
-
return localVarFp.usersDelete(promotionId, userId, options).then((request) => request(axios, basePath));
|
|
16291
|
+
usersDelete(requestParameters: UsersApiUsersDeleteRequest, options?: RawAxiosRequestConfig): AxiosPromise<UsersDelete200Response> {
|
|
16292
|
+
return localVarFp.usersDelete(requestParameters.promotionId, requestParameters.userId, options).then((request) => request(axios, basePath));
|
|
14772
16293
|
},
|
|
14773
16294
|
/**
|
|
14774
16295
|
*
|
|
14775
16296
|
* @summary Busca por um usuário cadastrado na promoção
|
|
14776
|
-
* @param {
|
|
14777
|
-
* @param {number} [id] ID do usuário
|
|
14778
|
-
* @param {string} [externalId] ID externo do usuário
|
|
14779
|
-
* @param {string} [username] username do usuário
|
|
14780
|
-
* @param {string} [email] email do usuário
|
|
14781
|
-
* @param {string} [cpf] CPF do usuário
|
|
14782
|
-
* @param {string} [include] Dados relacionados a serem retornados
|
|
14783
|
-
* @param {string} [fields] Campos a serem retornados
|
|
16297
|
+
* @param {UsersApiUsersIndexRequest} requestParameters Request parameters.
|
|
14784
16298
|
* @param {*} [options] Override http request option.
|
|
14785
16299
|
* @throws {RequiredError}
|
|
14786
16300
|
*/
|
|
14787
|
-
usersIndex(
|
|
14788
|
-
return localVarFp.usersIndex(promotionId, id, externalId, username, email, cpf, include, fields, options).then((request) => request(axios, basePath));
|
|
16301
|
+
usersIndex(requestParameters: UsersApiUsersIndexRequest, options?: RawAxiosRequestConfig): AxiosPromise<UsersIndex200Response> {
|
|
16302
|
+
return localVarFp.usersIndex(requestParameters.promotionId, requestParameters.id, requestParameters.externalId, requestParameters.username, requestParameters.email, requestParameters.cpf, requestParameters.include, requestParameters.fields, options).then((request) => request(axios, basePath));
|
|
14789
16303
|
},
|
|
14790
16304
|
/**
|
|
14791
16305
|
*
|
|
14792
16306
|
* @summary Cadastra ou atualiza um usuário na promoção
|
|
14793
|
-
* @param {
|
|
14794
|
-
* @param {UsersCreateRequest} [usersCreateRequest]
|
|
16307
|
+
* @param {UsersApiUsersUpdateRequest} requestParameters Request parameters.
|
|
14795
16308
|
* @param {*} [options] Override http request option.
|
|
14796
16309
|
* @throws {RequiredError}
|
|
14797
16310
|
*/
|
|
14798
|
-
usersUpdate(
|
|
14799
|
-
return localVarFp.usersUpdate(promotionId, usersCreateRequest, options).then((request) => request(axios, basePath));
|
|
16311
|
+
usersUpdate(requestParameters: UsersApiUsersUpdateRequest, options?: RawAxiosRequestConfig): AxiosPromise<UsersUpdate201Response> {
|
|
16312
|
+
return localVarFp.usersUpdate(requestParameters.promotionId, requestParameters.usersCreateRequest, options).then((request) => request(axios, basePath));
|
|
14800
16313
|
},
|
|
14801
16314
|
/**
|
|
14802
16315
|
* Este endpoint é apenas um exemplo de como você receberá em seu webhook a notificação do registro de um usuário 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 usuário foi cadastrado ou não, verifique se o parâmetro `content.id` está incluso na requisição e é um número maior que zero.
|
|
14803
16316
|
* @summary Webhook de resposta ao registro de usuário
|
|
14804
|
-
* @param {
|
|
16317
|
+
* @param {UsersApiUsersWebhookRequest} requestParameters Request parameters.
|
|
14805
16318
|
* @param {*} [options] Override http request option.
|
|
14806
16319
|
* @throws {RequiredError}
|
|
14807
16320
|
*/
|
|
14808
|
-
usersWebhook(
|
|
14809
|
-
return localVarFp.usersWebhook(usersWebhookRequest, options).then((request) => request(axios, basePath));
|
|
16321
|
+
usersWebhook(requestParameters: UsersApiUsersWebhookRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<UsersWebhook200Response> {
|
|
16322
|
+
return localVarFp.usersWebhook(requestParameters.usersWebhookRequest, options).then((request) => request(axios, basePath));
|
|
14810
16323
|
},
|
|
14811
16324
|
};
|
|
14812
16325
|
};
|
|
14813
16326
|
|
|
16327
|
+
/**
|
|
16328
|
+
* Request parameters for usersCreate operation in UsersApi.
|
|
16329
|
+
* @export
|
|
16330
|
+
* @interface UsersApiUsersCreateRequest
|
|
16331
|
+
*/
|
|
16332
|
+
export interface UsersApiUsersCreateRequest {
|
|
16333
|
+
/**
|
|
16334
|
+
* ID da promoção
|
|
16335
|
+
* @type {string}
|
|
16336
|
+
* @memberof UsersApiUsersCreate
|
|
16337
|
+
*/
|
|
16338
|
+
readonly promotionId: string
|
|
16339
|
+
|
|
16340
|
+
/**
|
|
16341
|
+
*
|
|
16342
|
+
* @type {UsersCreateRequest}
|
|
16343
|
+
* @memberof UsersApiUsersCreate
|
|
16344
|
+
*/
|
|
16345
|
+
readonly usersCreateRequest?: UsersCreateRequest
|
|
16346
|
+
}
|
|
16347
|
+
|
|
16348
|
+
/**
|
|
16349
|
+
* Request parameters for usersDelete operation in UsersApi.
|
|
16350
|
+
* @export
|
|
16351
|
+
* @interface UsersApiUsersDeleteRequest
|
|
16352
|
+
*/
|
|
16353
|
+
export interface UsersApiUsersDeleteRequest {
|
|
16354
|
+
/**
|
|
16355
|
+
* ID da promoção
|
|
16356
|
+
* @type {string}
|
|
16357
|
+
* @memberof UsersApiUsersDelete
|
|
16358
|
+
*/
|
|
16359
|
+
readonly promotionId: string
|
|
16360
|
+
|
|
16361
|
+
/**
|
|
16362
|
+
* ID do usuário
|
|
16363
|
+
* @type {string}
|
|
16364
|
+
* @memberof UsersApiUsersDelete
|
|
16365
|
+
*/
|
|
16366
|
+
readonly userId: string
|
|
16367
|
+
}
|
|
16368
|
+
|
|
16369
|
+
/**
|
|
16370
|
+
* Request parameters for usersIndex operation in UsersApi.
|
|
16371
|
+
* @export
|
|
16372
|
+
* @interface UsersApiUsersIndexRequest
|
|
16373
|
+
*/
|
|
16374
|
+
export interface UsersApiUsersIndexRequest {
|
|
16375
|
+
/**
|
|
16376
|
+
* ID da promoção
|
|
16377
|
+
* @type {string}
|
|
16378
|
+
* @memberof UsersApiUsersIndex
|
|
16379
|
+
*/
|
|
16380
|
+
readonly promotionId: string
|
|
16381
|
+
|
|
16382
|
+
/**
|
|
16383
|
+
* ID do usuário
|
|
16384
|
+
* @type {number}
|
|
16385
|
+
* @memberof UsersApiUsersIndex
|
|
16386
|
+
*/
|
|
16387
|
+
readonly id?: number
|
|
16388
|
+
|
|
16389
|
+
/**
|
|
16390
|
+
* ID externo do usuário
|
|
16391
|
+
* @type {string}
|
|
16392
|
+
* @memberof UsersApiUsersIndex
|
|
16393
|
+
*/
|
|
16394
|
+
readonly externalId?: string
|
|
16395
|
+
|
|
16396
|
+
/**
|
|
16397
|
+
* username do usuário
|
|
16398
|
+
* @type {string}
|
|
16399
|
+
* @memberof UsersApiUsersIndex
|
|
16400
|
+
*/
|
|
16401
|
+
readonly username?: string
|
|
16402
|
+
|
|
16403
|
+
/**
|
|
16404
|
+
* email do usuário
|
|
16405
|
+
* @type {string}
|
|
16406
|
+
* @memberof UsersApiUsersIndex
|
|
16407
|
+
*/
|
|
16408
|
+
readonly email?: string
|
|
16409
|
+
|
|
16410
|
+
/**
|
|
16411
|
+
* CPF do usuário
|
|
16412
|
+
* @type {string}
|
|
16413
|
+
* @memberof UsersApiUsersIndex
|
|
16414
|
+
*/
|
|
16415
|
+
readonly cpf?: string
|
|
16416
|
+
|
|
16417
|
+
/**
|
|
16418
|
+
* Dados relacionados a serem retornados
|
|
16419
|
+
* @type {string}
|
|
16420
|
+
* @memberof UsersApiUsersIndex
|
|
16421
|
+
*/
|
|
16422
|
+
readonly include?: string
|
|
16423
|
+
|
|
16424
|
+
/**
|
|
16425
|
+
* Campos a serem retornados
|
|
16426
|
+
* @type {string}
|
|
16427
|
+
* @memberof UsersApiUsersIndex
|
|
16428
|
+
*/
|
|
16429
|
+
readonly fields?: string
|
|
16430
|
+
}
|
|
16431
|
+
|
|
16432
|
+
/**
|
|
16433
|
+
* Request parameters for usersUpdate operation in UsersApi.
|
|
16434
|
+
* @export
|
|
16435
|
+
* @interface UsersApiUsersUpdateRequest
|
|
16436
|
+
*/
|
|
16437
|
+
export interface UsersApiUsersUpdateRequest {
|
|
16438
|
+
/**
|
|
16439
|
+
* ID da promoção
|
|
16440
|
+
* @type {string}
|
|
16441
|
+
* @memberof UsersApiUsersUpdate
|
|
16442
|
+
*/
|
|
16443
|
+
readonly promotionId: string
|
|
16444
|
+
|
|
16445
|
+
/**
|
|
16446
|
+
*
|
|
16447
|
+
* @type {UsersCreateRequest}
|
|
16448
|
+
* @memberof UsersApiUsersUpdate
|
|
16449
|
+
*/
|
|
16450
|
+
readonly usersCreateRequest?: UsersCreateRequest
|
|
16451
|
+
}
|
|
16452
|
+
|
|
16453
|
+
/**
|
|
16454
|
+
* Request parameters for usersWebhook operation in UsersApi.
|
|
16455
|
+
* @export
|
|
16456
|
+
* @interface UsersApiUsersWebhookRequest
|
|
16457
|
+
*/
|
|
16458
|
+
export interface UsersApiUsersWebhookRequest {
|
|
16459
|
+
/**
|
|
16460
|
+
*
|
|
16461
|
+
* @type {UsersWebhookRequest}
|
|
16462
|
+
* @memberof UsersApiUsersWebhook
|
|
16463
|
+
*/
|
|
16464
|
+
readonly usersWebhookRequest?: UsersWebhookRequest
|
|
16465
|
+
}
|
|
16466
|
+
|
|
14814
16467
|
/**
|
|
14815
16468
|
* UsersApi - object-oriented interface
|
|
14816
16469
|
* @export
|
|
@@ -14821,71 +16474,61 @@ export class UsersApi extends BaseAPI {
|
|
|
14821
16474
|
/**
|
|
14822
16475
|
*
|
|
14823
16476
|
* @summary Cadastra um usuário na promoção
|
|
14824
|
-
* @param {
|
|
14825
|
-
* @param {UsersCreateRequest} [usersCreateRequest]
|
|
16477
|
+
* @param {UsersApiUsersCreateRequest} requestParameters Request parameters.
|
|
14826
16478
|
* @param {*} [options] Override http request option.
|
|
14827
16479
|
* @throws {RequiredError}
|
|
14828
16480
|
* @memberof UsersApi
|
|
14829
16481
|
*/
|
|
14830
|
-
public usersCreate(
|
|
14831
|
-
return UsersApiFp(this.configuration).usersCreate(promotionId, usersCreateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
16482
|
+
public usersCreate(requestParameters: UsersApiUsersCreateRequest, options?: RawAxiosRequestConfig) {
|
|
16483
|
+
return UsersApiFp(this.configuration).usersCreate(requestParameters.promotionId, requestParameters.usersCreateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
14832
16484
|
}
|
|
14833
16485
|
|
|
14834
16486
|
/**
|
|
14835
16487
|
*
|
|
14836
16488
|
* @summary Exclui um usuário da promoção
|
|
14837
|
-
* @param {
|
|
14838
|
-
* @param {string} userId ID do usuário
|
|
16489
|
+
* @param {UsersApiUsersDeleteRequest} requestParameters Request parameters.
|
|
14839
16490
|
* @param {*} [options] Override http request option.
|
|
14840
16491
|
* @throws {RequiredError}
|
|
14841
16492
|
* @memberof UsersApi
|
|
14842
16493
|
*/
|
|
14843
|
-
public usersDelete(
|
|
14844
|
-
return UsersApiFp(this.configuration).usersDelete(promotionId, userId, options).then((request) => request(this.axios, this.basePath));
|
|
16494
|
+
public usersDelete(requestParameters: UsersApiUsersDeleteRequest, options?: RawAxiosRequestConfig) {
|
|
16495
|
+
return UsersApiFp(this.configuration).usersDelete(requestParameters.promotionId, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
|
|
14845
16496
|
}
|
|
14846
16497
|
|
|
14847
16498
|
/**
|
|
14848
16499
|
*
|
|
14849
16500
|
* @summary Busca por um usuário cadastrado na promoção
|
|
14850
|
-
* @param {
|
|
14851
|
-
* @param {number} [id] ID do usuário
|
|
14852
|
-
* @param {string} [externalId] ID externo do usuário
|
|
14853
|
-
* @param {string} [username] username do usuário
|
|
14854
|
-
* @param {string} [email] email do usuário
|
|
14855
|
-
* @param {string} [cpf] CPF do usuário
|
|
14856
|
-
* @param {string} [include] Dados relacionados a serem retornados
|
|
14857
|
-
* @param {string} [fields] Campos a serem retornados
|
|
16501
|
+
* @param {UsersApiUsersIndexRequest} requestParameters Request parameters.
|
|
14858
16502
|
* @param {*} [options] Override http request option.
|
|
14859
16503
|
* @throws {RequiredError}
|
|
14860
16504
|
* @memberof UsersApi
|
|
14861
16505
|
*/
|
|
14862
|
-
public usersIndex(
|
|
14863
|
-
return UsersApiFp(this.configuration).usersIndex(promotionId, id, externalId, username, email, cpf, include, fields, options).then((request) => request(this.axios, this.basePath));
|
|
16506
|
+
public usersIndex(requestParameters: UsersApiUsersIndexRequest, options?: RawAxiosRequestConfig) {
|
|
16507
|
+
return UsersApiFp(this.configuration).usersIndex(requestParameters.promotionId, requestParameters.id, requestParameters.externalId, requestParameters.username, requestParameters.email, requestParameters.cpf, requestParameters.include, requestParameters.fields, options).then((request) => request(this.axios, this.basePath));
|
|
14864
16508
|
}
|
|
14865
16509
|
|
|
14866
16510
|
/**
|
|
14867
16511
|
*
|
|
14868
16512
|
* @summary Cadastra ou atualiza um usuário na promoção
|
|
14869
|
-
* @param {
|
|
14870
|
-
* @param {UsersCreateRequest} [usersCreateRequest]
|
|
16513
|
+
* @param {UsersApiUsersUpdateRequest} requestParameters Request parameters.
|
|
14871
16514
|
* @param {*} [options] Override http request option.
|
|
14872
16515
|
* @throws {RequiredError}
|
|
14873
16516
|
* @memberof UsersApi
|
|
14874
16517
|
*/
|
|
14875
|
-
public usersUpdate(
|
|
14876
|
-
return UsersApiFp(this.configuration).usersUpdate(promotionId, usersCreateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
16518
|
+
public usersUpdate(requestParameters: UsersApiUsersUpdateRequest, options?: RawAxiosRequestConfig) {
|
|
16519
|
+
return UsersApiFp(this.configuration).usersUpdate(requestParameters.promotionId, requestParameters.usersCreateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
14877
16520
|
}
|
|
14878
16521
|
|
|
14879
16522
|
/**
|
|
14880
16523
|
* Este endpoint é apenas um exemplo de como você receberá em seu webhook a notificação do registro de um usuário 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 usuário foi cadastrado ou não, verifique se o parâmetro `content.id` está incluso na requisição e é um número maior que zero.
|
|
14881
16524
|
* @summary Webhook de resposta ao registro de usuário
|
|
14882
|
-
* @param {
|
|
16525
|
+
* @param {UsersApiUsersWebhookRequest} requestParameters Request parameters.
|
|
14883
16526
|
* @param {*} [options] Override http request option.
|
|
14884
16527
|
* @throws {RequiredError}
|
|
14885
16528
|
* @memberof UsersApi
|
|
14886
16529
|
*/
|
|
14887
|
-
public usersWebhook(
|
|
14888
|
-
return UsersApiFp(this.configuration).usersWebhook(usersWebhookRequest, options).then((request) => request(this.axios, this.basePath));
|
|
16530
|
+
public usersWebhook(requestParameters: UsersApiUsersWebhookRequest = {}, options?: RawAxiosRequestConfig) {
|
|
16531
|
+
return UsersApiFp(this.configuration).usersWebhook(requestParameters.usersWebhookRequest, options).then((request) => request(this.axios, this.basePath));
|
|
14889
16532
|
}
|
|
14890
16533
|
}
|
|
14891
16534
|
|