From 0957feb58edb9f69b1a660bfcd096f8f4f415a8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Cedr=C3=B3n?= Date: Tue, 17 Dec 2024 19:12:31 -0300 Subject: [PATCH] AI-125: Regenerate SDK --- .openapi-generator/FILES | 56 +- api.ts | 1 + api/charges-api.ts | 121 +++++ api/orders-api.ts | 79 ++- api/payout-orders-api.ts | 506 ++++++++++++++++++ api/webhooks-api.ts | 25 +- model/api-key-create-response-all-of.ts | 30 -- model/api-key-create-response.ts | 5 +- ...a-payment-method-bank-transfer-response.ts | 120 ----- ...harge-data-payment-method-card-response.ts | 90 ---- ...harge-data-payment-method-cash-response.ts | 72 --- model/charge-request-payment-method.ts | 49 +- model/charge-request.ts | 2 +- model/charge-response-refunds-all-of.ts | 33 -- model/charge-response-refunds.ts | 5 +- model/charge-response.ts | 8 +- model/charges-order-response-all-of-data.ts | 35 ++ ...se-all-of.ts => charges-order-response.ts} | 19 +- model/checkout-request.ts | 12 + model/checkout.ts | 6 + model/checkouts-response-all-of.ts | 33 -- model/checkouts-response.ts | 5 +- ...ustomer-fiscal-entities-response-all-of.ts | 54 -- ...reate-customer-fiscal-entities-response.ts | 7 +- ...create-customer-payment-methods-request.ts | 8 +- .../customer-fiscal-entities-data-response.ts | 7 +- model/customer-fiscal-entities-request.ts | 6 +- ...ustomer-fiscal-entities-response-all-of.ts | 33 -- model/customer-fiscal-entities-response.ts | 5 +- model/customer-payment-methods-request.ts | 8 +- model/customer-payment-methods-response.ts | 5 +- model/customer-payment-methods.ts | 33 -- ...tomer-response-shipping-contacts-all-of.ts | 33 -- model/customer-response-shipping-contacts.ts | 5 +- model/customer-response.ts | 12 + ...-shipping-contacts-data-response-all-of.ts | 42 -- ...ustomer-shipping-contacts-data-response.ts | 5 +- ...customer-update-fiscal-entities-request.ts | 6 +- model/customer.ts | 12 + model/customers-response-all-of.ts | 33 -- model/customers-response.ts | 5 +- model/delete-api-keys-response-all-of.ts | 30 -- model/delete-api-keys-response.ts | 5 +- model/discount-lines-response-all-of.ts | 42 -- model/discount-lines-response.ts | 5 +- model/error-all-of.ts | 42 -- model/event-types.ts | 34 ++ model/get-api-keys-response.ts | 5 +- model/get-charges-response-all-of.ts | 33 -- model/get-charges-response.ts | 5 +- model/get-companies-response-all-of.ts | 33 -- model/get-companies-response.ts | 5 +- model/get-events-response-all-of.ts | 33 -- model/get-events-response.ts | 5 +- ...et-order-discount-lines-response-all-of.ts | 33 -- model/get-order-discount-lines-response.ts | 5 +- model/get-payment-method-response-all-of.ts | 33 -- model/get-payment-method-response.ts | 5 +- model/get-plans-response.ts | 5 +- model/get-transactions-response.ts | 5 +- model/get-transfers-response-all-of.ts | 33 -- model/get-transfers-response.ts | 5 +- model/get-webhook-keys-response-all-of.ts | 33 -- model/get-webhook-keys-response.ts | 5 +- model/get-webhooks-response-all-of.ts | 33 -- model/get-webhooks-response.ts | 5 +- model/index.ts | 55 +- model/model-error.ts | 5 +- ...r-fiscal-entity-address-response-all-of.ts | 30 -- model/order-fiscal-entity-address-response.ts | 5 +- model/order-refund-request.ts | 6 +- model/order-request.ts | 2 +- model/order-response-charges-all-of.ts | 33 -- model/order-response-charges.ts | 5 +- model/order-response-checkout.ts | 12 + model/order-response-customer-info.ts | 5 +- model/order-response-discount-lines-all-of.ts | 33 -- model/order-response-discount-lines.ts | 5 +- model/order-response-products-all-of.ts | 33 -- model/order-response-products.ts | 5 +- .../order-response-shipping-contact-all-of.ts | 42 -- model/order-response-shipping-contact.ts | 5 +- model/payment-method-bank-transfer.ts | 5 +- model/payment-method-card-request-all-of.ts | 30 -- model/payment-method-card-request.ts | 5 +- model/payment-method-card-response-all-of.ts | 84 --- model/payment-method-card-response.ts | 5 +- model/payment-method-card.ts | 5 +- model/payment-method-cash-request-all-of.ts | 30 -- model/payment-method-cash-request.ts | 5 +- model/payment-method-cash-response-all-of.ts | 54 -- model/payment-method-cash-response.ts | 5 +- model/payment-method-cash.ts | 5 +- model/payment-method-general-request.ts | 72 +++ model/payment-method-spei-recurrent-all-of.ts | 36 -- model/payment-method-spei-recurrent.ts | 5 +- model/payment-method-spei-request.ts | 5 +- ...ess.ts => payment-method-token-request.ts} | 6 +- ...stomer-info-all-of.ts => payout-method.ts} | 12 +- model/payout-order-payouts-item.ts | 72 +++ ...=> payout-order-response-customer-info.ts} | 16 +- model/payout-order-response.ts | 114 ++++ model/payout-order.ts | 72 +++ ...se-all-of.ts => payout-orders-response.ts} | 21 +- model/{risk-rules.ts => payout.ts} | 14 +- model/product-data-response-all-of.ts | 42 -- model/product-data-response.ts | 5 +- model/product-order-response-all-of.ts | 42 -- model/product-order-response.ts | 5 +- model/product.ts | 4 +- model/risk-rules-list.ts | 5 +- model/shipping-order-response.ts | 5 +- model/subscription-events-response.ts | 5 +- model/subscription-response.ts | 6 + ...ustomer-fiscal-entities-response-all-of.ts | 54 -- ...pdate-customer-fiscal-entities-response.ts | 9 +- model/update-customer.ts | 12 + model/update-order-tax-response-all-of.ts | 42 -- model/update-order-tax-response.ts | 5 +- package.json | 2 +- 120 files changed, 1336 insertions(+), 1974 deletions(-) create mode 100644 api/payout-orders-api.ts delete mode 100644 model/api-key-create-response-all-of.ts delete mode 100644 model/charge-data-payment-method-bank-transfer-response.ts delete mode 100644 model/charge-data-payment-method-card-response.ts delete mode 100644 model/charge-data-payment-method-cash-response.ts delete mode 100644 model/charge-response-refunds-all-of.ts create mode 100644 model/charges-order-response-all-of-data.ts rename model/{get-api-keys-response-all-of.ts => charges-order-response.ts} (57%) delete mode 100644 model/checkouts-response-all-of.ts delete mode 100644 model/create-customer-fiscal-entities-response-all-of.ts delete mode 100644 model/customer-fiscal-entities-response-all-of.ts delete mode 100644 model/customer-payment-methods.ts delete mode 100644 model/customer-response-shipping-contacts-all-of.ts delete mode 100644 model/customer-shipping-contacts-data-response-all-of.ts delete mode 100644 model/customers-response-all-of.ts delete mode 100644 model/delete-api-keys-response-all-of.ts delete mode 100644 model/discount-lines-response-all-of.ts delete mode 100644 model/error-all-of.ts create mode 100644 model/event-types.ts delete mode 100644 model/get-charges-response-all-of.ts delete mode 100644 model/get-companies-response-all-of.ts delete mode 100644 model/get-events-response-all-of.ts delete mode 100644 model/get-order-discount-lines-response-all-of.ts delete mode 100644 model/get-payment-method-response-all-of.ts delete mode 100644 model/get-transfers-response-all-of.ts delete mode 100644 model/get-webhook-keys-response-all-of.ts delete mode 100644 model/get-webhooks-response-all-of.ts delete mode 100644 model/order-fiscal-entity-address-response-all-of.ts delete mode 100644 model/order-response-charges-all-of.ts delete mode 100644 model/order-response-discount-lines-all-of.ts delete mode 100644 model/order-response-products-all-of.ts delete mode 100644 model/order-response-shipping-contact-all-of.ts delete mode 100644 model/payment-method-card-request-all-of.ts delete mode 100644 model/payment-method-card-response-all-of.ts delete mode 100644 model/payment-method-cash-request-all-of.ts delete mode 100644 model/payment-method-cash-response-all-of.ts create mode 100644 model/payment-method-general-request.ts delete mode 100644 model/payment-method-spei-recurrent-all-of.ts rename model/{customer-fiscal-entities-request-address.ts => payment-method-token-request.ts} (68%) rename model/{order-response-customer-info-all-of.ts => payout-method.ts} (67%) create mode 100644 model/payout-order-payouts-item.ts rename model/{get-plans-response-all-of.ts => payout-order-response-customer-info.ts} (60%) create mode 100644 model/payout-order-response.ts create mode 100644 model/payout-order.ts rename model/{get-transactions-response-all-of.ts => payout-orders-response.ts} (55%) rename model/{risk-rules.ts => payout.ts} (65%) delete mode 100644 model/product-data-response-all-of.ts delete mode 100644 model/product-order-response-all-of.ts delete mode 100644 model/update-customer-fiscal-entities-response-all-of.ts delete mode 100644 model/update-order-tax-response-all-of.ts diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index b3eec1d..804c181 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -18,6 +18,7 @@ api/logs-api.ts api/orders-api.ts api/payment-link-api.ts api/payment-methods-api.ts +api/payout-orders-api.ts api/plans-api.ts api/products-api.ts api/shipping-contacts-api.ts @@ -34,7 +35,6 @@ common.ts conekta.png configuration.ts index.ts -model/api-key-create-response-all-of.ts model/api-key-create-response.ts model/api-key-request.ts model/api-key-response-on-delete.ts @@ -43,33 +43,29 @@ model/api-key-update-request.ts model/balance-common-field.ts model/balance-response.ts model/blacklist-rule-response.ts -model/charge-data-payment-method-bank-transfer-response.ts -model/charge-data-payment-method-card-response.ts -model/charge-data-payment-method-cash-response.ts model/charge-order-response-payment-method.ts model/charge-order-response.ts model/charge-request-payment-method.ts model/charge-request.ts model/charge-response-channel.ts model/charge-response-payment-method.ts -model/charge-response-refunds-all-of.ts model/charge-response-refunds-data.ts model/charge-response-refunds.ts model/charge-response.ts model/charge-update-request.ts model/charges-data-response.ts +model/charges-order-response-all-of-data.ts +model/charges-order-response.ts model/checkout-order-template-customer-info.ts model/checkout-order-template.ts model/checkout-request.ts model/checkout-response.ts model/checkout.ts -model/checkouts-response-all-of.ts model/checkouts-response.ts model/company-fiscal-info-address-response.ts model/company-fiscal-info-response.ts model/company-payout-destination-response.ts model/company-response.ts -model/create-customer-fiscal-entities-response-all-of.ts model/create-customer-fiscal-entities-response.ts model/create-customer-payment-methods-request.ts model/create-customer-payment-methods-response.ts @@ -78,9 +74,7 @@ model/customer-address.ts model/customer-antifraud-info-response.ts model/customer-antifraud-info.ts model/customer-fiscal-entities-data-response.ts -model/customer-fiscal-entities-request-address.ts model/customer-fiscal-entities-request.ts -model/customer-fiscal-entities-response-all-of.ts model/customer-fiscal-entities-response.ts model/customer-info-just-customer-id-response.ts model/customer-info-just-customer-id.ts @@ -89,12 +83,9 @@ model/customer-payment-method-request.ts model/customer-payment-methods-data.ts model/customer-payment-methods-request.ts model/customer-payment-methods-response.ts -model/customer-payment-methods.ts -model/customer-response-shipping-contacts-all-of.ts model/customer-response-shipping-contacts.ts model/customer-response.ts model/customer-shipping-contacts-address.ts -model/customer-shipping-contacts-data-response-all-of.ts model/customer-shipping-contacts-data-response.ts model/customer-shipping-contacts-response-address.ts model/customer-shipping-contacts-response.ts @@ -102,45 +93,31 @@ model/customer-shipping-contacts.ts model/customer-update-fiscal-entities-request.ts model/customer-update-shipping-contacts.ts model/customer.ts -model/customers-response-all-of.ts model/customers-response.ts -model/delete-api-keys-response-all-of.ts model/delete-api-keys-response.ts model/deleted-blacklist-rule-response.ts model/deleted-whitelist-rule-response.ts model/details-error.ts model/details.ts model/discount-lines-data-response.ts -model/discount-lines-response-all-of.ts model/discount-lines-response.ts model/email-checkout-request.ts -model/error-all-of.ts model/event-response.ts +model/event-types.ts model/events-resend-response.ts model/fiscal-entity-address.ts -model/get-api-keys-response-all-of.ts model/get-api-keys-response.ts -model/get-charges-response-all-of.ts model/get-charges-response.ts -model/get-companies-response-all-of.ts model/get-companies-response.ts model/get-customer-payment-method-data-response.ts -model/get-events-response-all-of.ts model/get-events-response.ts -model/get-order-discount-lines-response-all-of.ts model/get-order-discount-lines-response.ts model/get-orders-response.ts -model/get-payment-method-response-all-of.ts model/get-payment-method-response.ts -model/get-plans-response-all-of.ts model/get-plans-response.ts -model/get-transactions-response-all-of.ts model/get-transactions-response.ts -model/get-transfers-response-all-of.ts model/get-transfers-response.ts -model/get-webhook-keys-response-all-of.ts model/get-webhook-keys-response.ts -model/get-webhooks-response-all-of.ts model/get-webhooks-response.ts model/index.ts model/log-response.ts @@ -150,7 +127,6 @@ model/model-error.ts model/order-capture-request.ts model/order-customer-info-response.ts model/order-discount-lines-request.ts -model/order-fiscal-entity-address-response-all-of.ts model/order-fiscal-entity-address-response.ts model/order-fiscal-entity-request.ts model/order-fiscal-entity-response.ts @@ -159,16 +135,11 @@ model/order-next-action-response.ts model/order-refund-request.ts model/order-request-customer-info.ts model/order-request.ts -model/order-response-charges-all-of.ts model/order-response-charges.ts model/order-response-checkout.ts -model/order-response-customer-info-all-of.ts model/order-response-customer-info.ts -model/order-response-discount-lines-all-of.ts model/order-response-discount-lines.ts -model/order-response-products-all-of.ts model/order-response-products.ts -model/order-response-shipping-contact-all-of.ts model/order-response-shipping-contact.ts model/order-response.ts model/order-tax-request.ts @@ -179,32 +150,33 @@ model/orders-response.ts model/page.ts model/pagination.ts model/payment-method-bank-transfer.ts -model/payment-method-card-request-all-of.ts model/payment-method-card-request.ts -model/payment-method-card-response-all-of.ts model/payment-method-card-response.ts model/payment-method-card.ts -model/payment-method-cash-request-all-of.ts model/payment-method-cash-request.ts -model/payment-method-cash-response-all-of.ts model/payment-method-cash-response.ts model/payment-method-cash.ts +model/payment-method-general-request.ts model/payment-method-response.ts -model/payment-method-spei-recurrent-all-of.ts model/payment-method-spei-recurrent.ts model/payment-method-spei-request.ts +model/payment-method-token-request.ts model/payment-method.ts +model/payout-method.ts +model/payout-order-payouts-item.ts +model/payout-order-response-customer-info.ts +model/payout-order-response.ts +model/payout-order.ts +model/payout-orders-response.ts +model/payout.ts model/plan-request.ts model/plan-response.ts model/plan-update-request.ts -model/product-data-response-all-of.ts model/product-data-response.ts -model/product-order-response-all-of.ts model/product-order-response.ts model/product.ts model/risk-rules-data.ts model/risk-rules-list.ts -model/risk-rules.ts model/shipping-order-response.ts model/shipping-request.ts model/sms-checkout-request.ts @@ -223,13 +195,11 @@ model/transfer-method-response.ts model/transfer-response.ts model/transfers-response.ts model/update-customer-antifraud-info.ts -model/update-customer-fiscal-entities-response-all-of.ts model/update-customer-fiscal-entities-response.ts model/update-customer-payment-methods-response.ts model/update-customer.ts model/update-order-discount-lines-request.ts model/update-order-tax-request.ts -model/update-order-tax-response-all-of.ts model/update-order-tax-response.ts model/update-payment-methods.ts model/update-product.ts diff --git a/api.ts b/api.ts index 1e4906f..e2be0f0 100644 --- a/api.ts +++ b/api.ts @@ -26,6 +26,7 @@ export * from './api/logs-api'; export * from './api/orders-api'; export * from './api/payment-link-api'; export * from './api/payment-methods-api'; +export * from './api/payout-orders-api'; export * from './api/plans-api'; export * from './api/products-api'; export * from './api/shipping-contacts-api'; diff --git a/api/charges-api.ts b/api/charges-api.ts index 16b6ac9..86365e3 100644 --- a/api/charges-api.ts +++ b/api/charges-api.ts @@ -30,6 +30,8 @@ import { ChargeResponse } from '../model'; // @ts-ignore import { ChargeUpdateRequest } from '../model'; // @ts-ignore +import { ChargesOrderResponse } from '../model'; +// @ts-ignore import { GetChargesResponse } from '../model'; // @ts-ignore import { ModelError } from '../model'; @@ -145,6 +147,60 @@ export const ChargesApiAxiosParamCreator = function (configuration?: Configurati + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(chargeRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Create charges for an existing orden + * @summary Create charges + * @param {string} id Identifier of the resource + * @param {ChargeRequest} chargeRequest requested field for a charge + * @param {OrdersCreateChargesAcceptLanguageEnum} [acceptLanguage] Use for knowing which language to use + * @param {string} [xChildCompanyId] In the case of a holding company, the company id of the child company to which will process the request. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + ordersCreateCharges: async (id: string, chargeRequest: ChargeRequest, acceptLanguage?: OrdersCreateChargesAcceptLanguageEnum, xChildCompanyId?: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('ordersCreateCharges', 'id', id) + // verify required parameter 'chargeRequest' is not null or undefined + assertParamExists('ordersCreateCharges', 'chargeRequest', chargeRequest) + const localVarPath = `/orders/{id}/add_charges` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication bearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + if (acceptLanguage != null) { + localVarHeaderParameter['Accept-Language'] = String(acceptLanguage); + } + + if (xChildCompanyId != null) { + localVarHeaderParameter['X-Child-Company-Id'] = String(xChildCompanyId); + } + + + localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); @@ -255,6 +311,22 @@ export const ChargesApiFp = function(configuration?: Configuration) { const operationBasePath = operationServerMap['ChargesApi.ordersCreateCharge']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, + /** + * Create charges for an existing orden + * @summary Create charges + * @param {string} id Identifier of the resource + * @param {ChargeRequest} chargeRequest requested field for a charge + * @param {OrdersCreateChargesAcceptLanguageEnum} [acceptLanguage] Use for knowing which language to use + * @param {string} [xChildCompanyId] In the case of a holding company, the company id of the child company to which will process the request. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async ordersCreateCharges(id: string, chargeRequest: ChargeRequest, acceptLanguage?: OrdersCreateChargesAcceptLanguageEnum, xChildCompanyId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.ordersCreateCharges(id, chargeRequest, acceptLanguage, xChildCompanyId, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['ChargesApi.ordersCreateCharges']?.[index]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); + }, /** * * @summary Update a charge @@ -309,6 +381,19 @@ export const ChargesApiFactory = function (configuration?: Configuration, basePa ordersCreateCharge(id: string, chargeRequest: ChargeRequest, acceptLanguage?: OrdersCreateChargeAcceptLanguageEnum, xChildCompanyId?: string, options?: any): AxiosPromise { return localVarFp.ordersCreateCharge(id, chargeRequest, acceptLanguage, xChildCompanyId, options).then((request) => request(axios, basePath)); }, + /** + * Create charges for an existing orden + * @summary Create charges + * @param {string} id Identifier of the resource + * @param {ChargeRequest} chargeRequest requested field for a charge + * @param {OrdersCreateChargesAcceptLanguageEnum} [acceptLanguage] Use for knowing which language to use + * @param {string} [xChildCompanyId] In the case of a holding company, the company id of the child company to which will process the request. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + ordersCreateCharges(id: string, chargeRequest: ChargeRequest, acceptLanguage?: OrdersCreateChargesAcceptLanguageEnum, xChildCompanyId?: string, options?: any): AxiosPromise { + return localVarFp.ordersCreateCharges(id, chargeRequest, acceptLanguage, xChildCompanyId, options).then((request) => request(axios, basePath)); + }, /** * * @summary Update a charge @@ -359,6 +444,19 @@ export interface ChargesApiInterface { */ ordersCreateCharge(id: string, chargeRequest: ChargeRequest, acceptLanguage?: OrdersCreateChargeAcceptLanguageEnum, xChildCompanyId?: string, options?: RawAxiosRequestConfig): AxiosPromise; + /** + * Create charges for an existing orden + * @summary Create charges + * @param {string} id Identifier of the resource + * @param {ChargeRequest} chargeRequest requested field for a charge + * @param {OrdersCreateChargesAcceptLanguageEnum} [acceptLanguage] Use for knowing which language to use + * @param {string} [xChildCompanyId] In the case of a holding company, the company id of the child company to which will process the request. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ChargesApiInterface + */ + ordersCreateCharges(id: string, chargeRequest: ChargeRequest, acceptLanguage?: OrdersCreateChargesAcceptLanguageEnum, xChildCompanyId?: string, options?: RawAxiosRequestConfig): AxiosPromise; + /** * * @summary Update a charge @@ -413,6 +511,21 @@ export class ChargesApi extends BaseAPI implements ChargesApiInterface { return ChargesApiFp(this.configuration).ordersCreateCharge(id, chargeRequest, acceptLanguage, xChildCompanyId, options).then((request) => request(this.axios, this.basePath)); } + /** + * Create charges for an existing orden + * @summary Create charges + * @param {string} id Identifier of the resource + * @param {ChargeRequest} chargeRequest requested field for a charge + * @param {OrdersCreateChargesAcceptLanguageEnum} [acceptLanguage] Use for knowing which language to use + * @param {string} [xChildCompanyId] In the case of a holding company, the company id of the child company to which will process the request. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ChargesApi + */ + public ordersCreateCharges(id: string, chargeRequest: ChargeRequest, acceptLanguage?: OrdersCreateChargesAcceptLanguageEnum, xChildCompanyId?: string, options?: RawAxiosRequestConfig) { + return ChargesApiFp(this.configuration).ordersCreateCharges(id, chargeRequest, acceptLanguage, xChildCompanyId, options).then((request) => request(this.axios, this.basePath)); + } + /** * * @summary Update a charge @@ -445,6 +558,14 @@ export const OrdersCreateChargeAcceptLanguageEnum = { en: 'en' } as const; export type OrdersCreateChargeAcceptLanguageEnum = typeof OrdersCreateChargeAcceptLanguageEnum[keyof typeof OrdersCreateChargeAcceptLanguageEnum]; +/** + * @export + */ +export const OrdersCreateChargesAcceptLanguageEnum = { + es: 'es', + en: 'en' +} as const; +export type OrdersCreateChargesAcceptLanguageEnum = typeof OrdersCreateChargesAcceptLanguageEnum[keyof typeof OrdersCreateChargesAcceptLanguageEnum]; /** * @export */ diff --git a/api/orders-api.ts b/api/orders-api.ts index fb48564..b23b0f8 100644 --- a/api/orders-api.ts +++ b/api/orders-api.ts @@ -196,10 +196,17 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio * @param {string} [search] General order search, e.g. by mail, reference etc. * @param {string} [next] next page * @param {string} [previous] previous page + * @param {string} [paymentStatus] Filters by order status + * @param {string} [lastPaymentInfoStatus] Filters by last payment info status + * @param {number} [createdAt] created equal to + * @param {number} [createdAtGte] created at greater than or equal to + * @param {number} [createdAtLte] created at less than or equal to + * @param {number} [updatedAtGte] updated at greater than or equal to + * @param {number} [updatedAtLte] updated at less than or equal to * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getOrders: async (acceptLanguage?: GetOrdersAcceptLanguageEnum, xChildCompanyId?: string, limit?: number, search?: string, next?: string, previous?: string, options: RawAxiosRequestConfig = {}): Promise => { + getOrders: async (acceptLanguage?: GetOrdersAcceptLanguageEnum, xChildCompanyId?: string, limit?: number, search?: string, next?: string, previous?: string, paymentStatus?: string, lastPaymentInfoStatus?: string, createdAt?: number, createdAtGte?: number, createdAtLte?: number, updatedAtGte?: number, updatedAtLte?: number, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/orders`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -232,6 +239,34 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio localVarQueryParameter['previous'] = previous; } + if (paymentStatus !== undefined) { + localVarQueryParameter['payment_status'] = paymentStatus; + } + + if (lastPaymentInfoStatus !== undefined) { + localVarQueryParameter['last_payment_info.status'] = lastPaymentInfoStatus; + } + + if (createdAt !== undefined) { + localVarQueryParameter['created_at'] = createdAt; + } + + if (createdAtGte !== undefined) { + localVarQueryParameter['created_at.gte'] = createdAtGte; + } + + if (createdAtLte !== undefined) { + localVarQueryParameter['created_at.lte'] = createdAtLte; + } + + if (updatedAtGte !== undefined) { + localVarQueryParameter['updated_at.gte'] = updatedAtGte; + } + + if (updatedAtLte !== undefined) { + localVarQueryParameter['updated_at.lte'] = updatedAtLte; + } + if (acceptLanguage != null) { localVarHeaderParameter['Accept-Language'] = String(acceptLanguage); } @@ -522,11 +557,18 @@ export const OrdersApiFp = function(configuration?: Configuration) { * @param {string} [search] General order search, e.g. by mail, reference etc. * @param {string} [next] next page * @param {string} [previous] previous page + * @param {string} [paymentStatus] Filters by order status + * @param {string} [lastPaymentInfoStatus] Filters by last payment info status + * @param {number} [createdAt] created equal to + * @param {number} [createdAtGte] created at greater than or equal to + * @param {number} [createdAtLte] created at less than or equal to + * @param {number} [updatedAtGte] updated at greater than or equal to + * @param {number} [updatedAtLte] updated at less than or equal to * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getOrders(acceptLanguage?: GetOrdersAcceptLanguageEnum, xChildCompanyId?: string, limit?: number, search?: string, next?: string, previous?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getOrders(acceptLanguage, xChildCompanyId, limit, search, next, previous, options); + async getOrders(acceptLanguage?: GetOrdersAcceptLanguageEnum, xChildCompanyId?: string, limit?: number, search?: string, next?: string, previous?: string, paymentStatus?: string, lastPaymentInfoStatus?: string, createdAt?: number, createdAtGte?: number, createdAtLte?: number, updatedAtGte?: number, updatedAtLte?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getOrders(acceptLanguage, xChildCompanyId, limit, search, next, previous, paymentStatus, lastPaymentInfoStatus, createdAt, createdAtGte, createdAtLte, updatedAtGte, updatedAtLte, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['OrdersApi.getOrders']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); @@ -649,11 +691,18 @@ export const OrdersApiFactory = function (configuration?: Configuration, basePat * @param {string} [search] General order search, e.g. by mail, reference etc. * @param {string} [next] next page * @param {string} [previous] previous page + * @param {string} [paymentStatus] Filters by order status + * @param {string} [lastPaymentInfoStatus] Filters by last payment info status + * @param {number} [createdAt] created equal to + * @param {number} [createdAtGte] created at greater than or equal to + * @param {number} [createdAtLte] created at less than or equal to + * @param {number} [updatedAtGte] updated at greater than or equal to + * @param {number} [updatedAtLte] updated at less than or equal to * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getOrders(acceptLanguage?: GetOrdersAcceptLanguageEnum, xChildCompanyId?: string, limit?: number, search?: string, next?: string, previous?: string, options?: any): AxiosPromise { - return localVarFp.getOrders(acceptLanguage, xChildCompanyId, limit, search, next, previous, options).then((request) => request(axios, basePath)); + getOrders(acceptLanguage?: GetOrdersAcceptLanguageEnum, xChildCompanyId?: string, limit?: number, search?: string, next?: string, previous?: string, paymentStatus?: string, lastPaymentInfoStatus?: string, createdAt?: number, createdAtGte?: number, createdAtLte?: number, updatedAtGte?: number, updatedAtLte?: number, options?: any): AxiosPromise { + return localVarFp.getOrders(acceptLanguage, xChildCompanyId, limit, search, next, previous, paymentStatus, lastPaymentInfoStatus, createdAt, createdAtGte, createdAtLte, updatedAtGte, updatedAtLte, options).then((request) => request(axios, basePath)); }, /** * A refunded order describes the items, amount, and reason an order is being refunded. @@ -760,11 +809,18 @@ export interface OrdersApiInterface { * @param {string} [search] General order search, e.g. by mail, reference etc. * @param {string} [next] next page * @param {string} [previous] previous page + * @param {string} [paymentStatus] Filters by order status + * @param {string} [lastPaymentInfoStatus] Filters by last payment info status + * @param {number} [createdAt] created equal to + * @param {number} [createdAtGte] created at greater than or equal to + * @param {number} [createdAtLte] created at less than or equal to + * @param {number} [updatedAtGte] updated at greater than or equal to + * @param {number} [updatedAtLte] updated at less than or equal to * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof OrdersApiInterface */ - getOrders(acceptLanguage?: GetOrdersAcceptLanguageEnum, xChildCompanyId?: string, limit?: number, search?: string, next?: string, previous?: string, options?: RawAxiosRequestConfig): AxiosPromise; + getOrders(acceptLanguage?: GetOrdersAcceptLanguageEnum, xChildCompanyId?: string, limit?: number, search?: string, next?: string, previous?: string, paymentStatus?: string, lastPaymentInfoStatus?: string, createdAt?: number, createdAtGte?: number, createdAtLte?: number, updatedAtGte?: number, updatedAtLte?: number, options?: RawAxiosRequestConfig): AxiosPromise; /** * A refunded order describes the items, amount, and reason an order is being refunded. @@ -877,12 +933,19 @@ export class OrdersApi extends BaseAPI implements OrdersApiInterface { * @param {string} [search] General order search, e.g. by mail, reference etc. * @param {string} [next] next page * @param {string} [previous] previous page + * @param {string} [paymentStatus] Filters by order status + * @param {string} [lastPaymentInfoStatus] Filters by last payment info status + * @param {number} [createdAt] created equal to + * @param {number} [createdAtGte] created at greater than or equal to + * @param {number} [createdAtLte] created at less than or equal to + * @param {number} [updatedAtGte] updated at greater than or equal to + * @param {number} [updatedAtLte] updated at less than or equal to * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof OrdersApi */ - public getOrders(acceptLanguage?: GetOrdersAcceptLanguageEnum, xChildCompanyId?: string, limit?: number, search?: string, next?: string, previous?: string, options?: RawAxiosRequestConfig) { - return OrdersApiFp(this.configuration).getOrders(acceptLanguage, xChildCompanyId, limit, search, next, previous, options).then((request) => request(this.axios, this.basePath)); + public getOrders(acceptLanguage?: GetOrdersAcceptLanguageEnum, xChildCompanyId?: string, limit?: number, search?: string, next?: string, previous?: string, paymentStatus?: string, lastPaymentInfoStatus?: string, createdAt?: number, createdAtGte?: number, createdAtLte?: number, updatedAtGte?: number, updatedAtLte?: number, options?: RawAxiosRequestConfig) { + return OrdersApiFp(this.configuration).getOrders(acceptLanguage, xChildCompanyId, limit, search, next, previous, paymentStatus, lastPaymentInfoStatus, createdAt, createdAtGte, createdAtLte, updatedAtGte, updatedAtLte, options).then((request) => request(this.axios, this.basePath)); } /** diff --git a/api/payout-orders-api.ts b/api/payout-orders-api.ts new file mode 100644 index 0000000..1108248 --- /dev/null +++ b/api/payout-orders-api.ts @@ -0,0 +1,506 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Conekta API + * Conekta sdk + * + * The version of the OpenAPI document: 2.1.0 + * Contact: engineering@conekta.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; +// @ts-ignore +import { ModelError } from '../model'; +// @ts-ignore +import { PayoutOrder } from '../model'; +// @ts-ignore +import { PayoutOrderResponse } from '../model'; +// @ts-ignore +import { PayoutOrdersResponse } from '../model'; +/** + * PayoutOrdersApi - axios parameter creator + * @export + */ +export const PayoutOrdersApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Cancel a payout Order resource that corresponds to a payout order ID. + * @summary Cancel Payout Order + * @param {string} id Identifier of the resource + * @param {CancelPayoutOrderByIdAcceptLanguageEnum} [acceptLanguage] Use for knowing which language to use + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + cancelPayoutOrderById: async (id: string, acceptLanguage?: CancelPayoutOrderByIdAcceptLanguageEnum, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('cancelPayoutOrderById', 'id', id) + const localVarPath = `/payout_orders/{id}/cancel` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication bearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + if (acceptLanguage != null) { + localVarHeaderParameter['Accept-Language'] = String(acceptLanguage); + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Create a new payout order. + * @summary Create payout order + * @param {PayoutOrder} payoutOrder requested field for payout order + * @param {CreatePayoutOrderAcceptLanguageEnum} [acceptLanguage] Use for knowing which language to use + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createPayoutOrder: async (payoutOrder: PayoutOrder, acceptLanguage?: CreatePayoutOrderAcceptLanguageEnum, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'payoutOrder' is not null or undefined + assertParamExists('createPayoutOrder', 'payoutOrder', payoutOrder) + const localVarPath = `/payout_orders`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication bearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + if (acceptLanguage != null) { + localVarHeaderParameter['Accept-Language'] = String(acceptLanguage); + } + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(payoutOrder, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Gets a payout Order resource that corresponds to a payout order ID. + * @summary Get Payout Order + * @param {string} id Identifier of the resource + * @param {GetPayoutOrderByIdAcceptLanguageEnum} [acceptLanguage] Use for knowing which language to use + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getPayoutOrderById: async (id: string, acceptLanguage?: GetPayoutOrderByIdAcceptLanguageEnum, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('getPayoutOrderById', 'id', id) + const localVarPath = `/payout_orders/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication bearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + if (acceptLanguage != null) { + localVarHeaderParameter['Accept-Language'] = String(acceptLanguage); + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Get Payout order details in the form of a list + * @summary Get a list of Payout Orders + * @param {GetPayoutOrdersAcceptLanguageEnum} [acceptLanguage] Use for knowing which language to use + * @param {number} [limit] The numbers of items to return, the maximum value is 250 + * @param {string} [search] General order search, e.g. by mail, reference etc. + * @param {string} [next] next page + * @param {string} [previous] previous page + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getPayoutOrders: async (acceptLanguage?: GetPayoutOrdersAcceptLanguageEnum, limit?: number, search?: string, next?: string, previous?: string, options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/payout_orders`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication bearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + + if (search !== undefined) { + localVarQueryParameter['search'] = search; + } + + if (next !== undefined) { + localVarQueryParameter['next'] = next; + } + + if (previous !== undefined) { + localVarQueryParameter['previous'] = previous; + } + + if (acceptLanguage != null) { + localVarHeaderParameter['Accept-Language'] = String(acceptLanguage); + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; + +/** + * PayoutOrdersApi - functional programming interface + * @export + */ +export const PayoutOrdersApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = PayoutOrdersApiAxiosParamCreator(configuration) + return { + /** + * Cancel a payout Order resource that corresponds to a payout order ID. + * @summary Cancel Payout Order + * @param {string} id Identifier of the resource + * @param {CancelPayoutOrderByIdAcceptLanguageEnum} [acceptLanguage] Use for knowing which language to use + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async cancelPayoutOrderById(id: string, acceptLanguage?: CancelPayoutOrderByIdAcceptLanguageEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.cancelPayoutOrderById(id, acceptLanguage, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['PayoutOrdersApi.cancelPayoutOrderById']?.[index]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); + }, + /** + * Create a new payout order. + * @summary Create payout order + * @param {PayoutOrder} payoutOrder requested field for payout order + * @param {CreatePayoutOrderAcceptLanguageEnum} [acceptLanguage] Use for knowing which language to use + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async createPayoutOrder(payoutOrder: PayoutOrder, acceptLanguage?: CreatePayoutOrderAcceptLanguageEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.createPayoutOrder(payoutOrder, acceptLanguage, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['PayoutOrdersApi.createPayoutOrder']?.[index]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); + }, + /** + * Gets a payout Order resource that corresponds to a payout order ID. + * @summary Get Payout Order + * @param {string} id Identifier of the resource + * @param {GetPayoutOrderByIdAcceptLanguageEnum} [acceptLanguage] Use for knowing which language to use + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getPayoutOrderById(id: string, acceptLanguage?: GetPayoutOrderByIdAcceptLanguageEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getPayoutOrderById(id, acceptLanguage, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['PayoutOrdersApi.getPayoutOrderById']?.[index]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); + }, + /** + * Get Payout order details in the form of a list + * @summary Get a list of Payout Orders + * @param {GetPayoutOrdersAcceptLanguageEnum} [acceptLanguage] Use for knowing which language to use + * @param {number} [limit] The numbers of items to return, the maximum value is 250 + * @param {string} [search] General order search, e.g. by mail, reference etc. + * @param {string} [next] next page + * @param {string} [previous] previous page + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getPayoutOrders(acceptLanguage?: GetPayoutOrdersAcceptLanguageEnum, limit?: number, search?: string, next?: string, previous?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getPayoutOrders(acceptLanguage, limit, search, next, previous, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['PayoutOrdersApi.getPayoutOrders']?.[index]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); + }, + } +}; + +/** + * PayoutOrdersApi - factory interface + * @export + */ +export const PayoutOrdersApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = PayoutOrdersApiFp(configuration) + return { + /** + * Cancel a payout Order resource that corresponds to a payout order ID. + * @summary Cancel Payout Order + * @param {string} id Identifier of the resource + * @param {CancelPayoutOrderByIdAcceptLanguageEnum} [acceptLanguage] Use for knowing which language to use + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + cancelPayoutOrderById(id: string, acceptLanguage?: CancelPayoutOrderByIdAcceptLanguageEnum, options?: any): AxiosPromise { + return localVarFp.cancelPayoutOrderById(id, acceptLanguage, options).then((request) => request(axios, basePath)); + }, + /** + * Create a new payout order. + * @summary Create payout order + * @param {PayoutOrder} payoutOrder requested field for payout order + * @param {CreatePayoutOrderAcceptLanguageEnum} [acceptLanguage] Use for knowing which language to use + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createPayoutOrder(payoutOrder: PayoutOrder, acceptLanguage?: CreatePayoutOrderAcceptLanguageEnum, options?: any): AxiosPromise { + return localVarFp.createPayoutOrder(payoutOrder, acceptLanguage, options).then((request) => request(axios, basePath)); + }, + /** + * Gets a payout Order resource that corresponds to a payout order ID. + * @summary Get Payout Order + * @param {string} id Identifier of the resource + * @param {GetPayoutOrderByIdAcceptLanguageEnum} [acceptLanguage] Use for knowing which language to use + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getPayoutOrderById(id: string, acceptLanguage?: GetPayoutOrderByIdAcceptLanguageEnum, options?: any): AxiosPromise { + return localVarFp.getPayoutOrderById(id, acceptLanguage, options).then((request) => request(axios, basePath)); + }, + /** + * Get Payout order details in the form of a list + * @summary Get a list of Payout Orders + * @param {GetPayoutOrdersAcceptLanguageEnum} [acceptLanguage] Use for knowing which language to use + * @param {number} [limit] The numbers of items to return, the maximum value is 250 + * @param {string} [search] General order search, e.g. by mail, reference etc. + * @param {string} [next] next page + * @param {string} [previous] previous page + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getPayoutOrders(acceptLanguage?: GetPayoutOrdersAcceptLanguageEnum, limit?: number, search?: string, next?: string, previous?: string, options?: any): AxiosPromise { + return localVarFp.getPayoutOrders(acceptLanguage, limit, search, next, previous, options).then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * PayoutOrdersApi - interface + * @export + * @interface PayoutOrdersApi + */ +export interface PayoutOrdersApiInterface { + /** + * Cancel a payout Order resource that corresponds to a payout order ID. + * @summary Cancel Payout Order + * @param {string} id Identifier of the resource + * @param {CancelPayoutOrderByIdAcceptLanguageEnum} [acceptLanguage] Use for knowing which language to use + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PayoutOrdersApiInterface + */ + cancelPayoutOrderById(id: string, acceptLanguage?: CancelPayoutOrderByIdAcceptLanguageEnum, options?: RawAxiosRequestConfig): AxiosPromise; + + /** + * Create a new payout order. + * @summary Create payout order + * @param {PayoutOrder} payoutOrder requested field for payout order + * @param {CreatePayoutOrderAcceptLanguageEnum} [acceptLanguage] Use for knowing which language to use + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PayoutOrdersApiInterface + */ + createPayoutOrder(payoutOrder: PayoutOrder, acceptLanguage?: CreatePayoutOrderAcceptLanguageEnum, options?: RawAxiosRequestConfig): AxiosPromise; + + /** + * Gets a payout Order resource that corresponds to a payout order ID. + * @summary Get Payout Order + * @param {string} id Identifier of the resource + * @param {GetPayoutOrderByIdAcceptLanguageEnum} [acceptLanguage] Use for knowing which language to use + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PayoutOrdersApiInterface + */ + getPayoutOrderById(id: string, acceptLanguage?: GetPayoutOrderByIdAcceptLanguageEnum, options?: RawAxiosRequestConfig): AxiosPromise; + + /** + * Get Payout order details in the form of a list + * @summary Get a list of Payout Orders + * @param {GetPayoutOrdersAcceptLanguageEnum} [acceptLanguage] Use for knowing which language to use + * @param {number} [limit] The numbers of items to return, the maximum value is 250 + * @param {string} [search] General order search, e.g. by mail, reference etc. + * @param {string} [next] next page + * @param {string} [previous] previous page + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PayoutOrdersApiInterface + */ + getPayoutOrders(acceptLanguage?: GetPayoutOrdersAcceptLanguageEnum, limit?: number, search?: string, next?: string, previous?: string, options?: RawAxiosRequestConfig): AxiosPromise; + +} + +/** + * PayoutOrdersApi - object-oriented interface + * @export + * @class PayoutOrdersApi + * @extends {BaseAPI} + */ +export class PayoutOrdersApi extends BaseAPI implements PayoutOrdersApiInterface { + /** + * Cancel a payout Order resource that corresponds to a payout order ID. + * @summary Cancel Payout Order + * @param {string} id Identifier of the resource + * @param {CancelPayoutOrderByIdAcceptLanguageEnum} [acceptLanguage] Use for knowing which language to use + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PayoutOrdersApi + */ + public cancelPayoutOrderById(id: string, acceptLanguage?: CancelPayoutOrderByIdAcceptLanguageEnum, options?: RawAxiosRequestConfig) { + return PayoutOrdersApiFp(this.configuration).cancelPayoutOrderById(id, acceptLanguage, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * Create a new payout order. + * @summary Create payout order + * @param {PayoutOrder} payoutOrder requested field for payout order + * @param {CreatePayoutOrderAcceptLanguageEnum} [acceptLanguage] Use for knowing which language to use + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PayoutOrdersApi + */ + public createPayoutOrder(payoutOrder: PayoutOrder, acceptLanguage?: CreatePayoutOrderAcceptLanguageEnum, options?: RawAxiosRequestConfig) { + return PayoutOrdersApiFp(this.configuration).createPayoutOrder(payoutOrder, acceptLanguage, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * Gets a payout Order resource that corresponds to a payout order ID. + * @summary Get Payout Order + * @param {string} id Identifier of the resource + * @param {GetPayoutOrderByIdAcceptLanguageEnum} [acceptLanguage] Use for knowing which language to use + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PayoutOrdersApi + */ + public getPayoutOrderById(id: string, acceptLanguage?: GetPayoutOrderByIdAcceptLanguageEnum, options?: RawAxiosRequestConfig) { + return PayoutOrdersApiFp(this.configuration).getPayoutOrderById(id, acceptLanguage, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * Get Payout order details in the form of a list + * @summary Get a list of Payout Orders + * @param {GetPayoutOrdersAcceptLanguageEnum} [acceptLanguage] Use for knowing which language to use + * @param {number} [limit] The numbers of items to return, the maximum value is 250 + * @param {string} [search] General order search, e.g. by mail, reference etc. + * @param {string} [next] next page + * @param {string} [previous] previous page + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PayoutOrdersApi + */ + public getPayoutOrders(acceptLanguage?: GetPayoutOrdersAcceptLanguageEnum, limit?: number, search?: string, next?: string, previous?: string, options?: RawAxiosRequestConfig) { + return PayoutOrdersApiFp(this.configuration).getPayoutOrders(acceptLanguage, limit, search, next, previous, options).then((request) => request(this.axios, this.basePath)); + } +} + +/** + * @export + */ +export const CancelPayoutOrderByIdAcceptLanguageEnum = { + es: 'es', + en: 'en' +} as const; +export type CancelPayoutOrderByIdAcceptLanguageEnum = typeof CancelPayoutOrderByIdAcceptLanguageEnum[keyof typeof CancelPayoutOrderByIdAcceptLanguageEnum]; +/** + * @export + */ +export const CreatePayoutOrderAcceptLanguageEnum = { + es: 'es', + en: 'en' +} as const; +export type CreatePayoutOrderAcceptLanguageEnum = typeof CreatePayoutOrderAcceptLanguageEnum[keyof typeof CreatePayoutOrderAcceptLanguageEnum]; +/** + * @export + */ +export const GetPayoutOrderByIdAcceptLanguageEnum = { + es: 'es', + en: 'en' +} as const; +export type GetPayoutOrderByIdAcceptLanguageEnum = typeof GetPayoutOrderByIdAcceptLanguageEnum[keyof typeof GetPayoutOrderByIdAcceptLanguageEnum]; +/** + * @export + */ +export const GetPayoutOrdersAcceptLanguageEnum = { + es: 'es', + en: 'en' +} as const; +export type GetPayoutOrdersAcceptLanguageEnum = typeof GetPayoutOrdersAcceptLanguageEnum[keyof typeof GetPayoutOrdersAcceptLanguageEnum]; diff --git a/api/webhooks-api.ts b/api/webhooks-api.ts index c7ffd47..6897d8b 100644 --- a/api/webhooks-api.ts +++ b/api/webhooks-api.ts @@ -180,12 +180,13 @@ export const WebhooksApiAxiosParamCreator = function (configuration?: Configurat * @param {string} [xChildCompanyId] In the case of a holding company, the company id of the child company to which will process the request. * @param {number} [limit] The numbers of items to return, the maximum value is 250 * @param {string} [search] General order search, e.g. by mail, reference etc. + * @param {string} [url] url for webhook filter * @param {string} [next] next page * @param {string} [previous] previous page * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getWebhooks: async (acceptLanguage?: GetWebhooksAcceptLanguageEnum, xChildCompanyId?: string, limit?: number, search?: string, next?: string, previous?: string, options: RawAxiosRequestConfig = {}): Promise => { + getWebhooks: async (acceptLanguage?: GetWebhooksAcceptLanguageEnum, xChildCompanyId?: string, limit?: number, search?: string, url?: string, next?: string, previous?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/webhooks`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -210,6 +211,10 @@ export const WebhooksApiAxiosParamCreator = function (configuration?: Configurat localVarQueryParameter['search'] = search; } + if (url !== undefined) { + localVarQueryParameter['url'] = url; + } + if (next !== undefined) { localVarQueryParameter['next'] = next; } @@ -394,13 +399,14 @@ export const WebhooksApiFp = function(configuration?: Configuration) { * @param {string} [xChildCompanyId] In the case of a holding company, the company id of the child company to which will process the request. * @param {number} [limit] The numbers of items to return, the maximum value is 250 * @param {string} [search] General order search, e.g. by mail, reference etc. + * @param {string} [url] url for webhook filter * @param {string} [next] next page * @param {string} [previous] previous page * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getWebhooks(acceptLanguage?: GetWebhooksAcceptLanguageEnum, xChildCompanyId?: string, limit?: number, search?: string, next?: string, previous?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getWebhooks(acceptLanguage, xChildCompanyId, limit, search, next, previous, options); + async getWebhooks(acceptLanguage?: GetWebhooksAcceptLanguageEnum, xChildCompanyId?: string, limit?: number, search?: string, url?: string, next?: string, previous?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getWebhooks(acceptLanguage, xChildCompanyId, limit, search, url, next, previous, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['WebhooksApi.getWebhooks']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); @@ -486,13 +492,14 @@ export const WebhooksApiFactory = function (configuration?: Configuration, baseP * @param {string} [xChildCompanyId] In the case of a holding company, the company id of the child company to which will process the request. * @param {number} [limit] The numbers of items to return, the maximum value is 250 * @param {string} [search] General order search, e.g. by mail, reference etc. + * @param {string} [url] url for webhook filter * @param {string} [next] next page * @param {string} [previous] previous page * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getWebhooks(acceptLanguage?: GetWebhooksAcceptLanguageEnum, xChildCompanyId?: string, limit?: number, search?: string, next?: string, previous?: string, options?: any): AxiosPromise { - return localVarFp.getWebhooks(acceptLanguage, xChildCompanyId, limit, search, next, previous, options).then((request) => request(axios, basePath)); + getWebhooks(acceptLanguage?: GetWebhooksAcceptLanguageEnum, xChildCompanyId?: string, limit?: number, search?: string, url?: string, next?: string, previous?: string, options?: any): AxiosPromise { + return localVarFp.getWebhooks(acceptLanguage, xChildCompanyId, limit, search, url, next, previous, options).then((request) => request(axios, basePath)); }, /** * Send a webhook.ping event @@ -568,13 +575,14 @@ export interface WebhooksApiInterface { * @param {string} [xChildCompanyId] In the case of a holding company, the company id of the child company to which will process the request. * @param {number} [limit] The numbers of items to return, the maximum value is 250 * @param {string} [search] General order search, e.g. by mail, reference etc. + * @param {string} [url] url for webhook filter * @param {string} [next] next page * @param {string} [previous] previous page * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof WebhooksApiInterface */ - getWebhooks(acceptLanguage?: GetWebhooksAcceptLanguageEnum, xChildCompanyId?: string, limit?: number, search?: string, next?: string, previous?: string, options?: RawAxiosRequestConfig): AxiosPromise; + getWebhooks(acceptLanguage?: GetWebhooksAcceptLanguageEnum, xChildCompanyId?: string, limit?: number, search?: string, url?: string, next?: string, previous?: string, options?: RawAxiosRequestConfig): AxiosPromise; /** * Send a webhook.ping event @@ -656,14 +664,15 @@ export class WebhooksApi extends BaseAPI implements WebhooksApiInterface { * @param {string} [xChildCompanyId] In the case of a holding company, the company id of the child company to which will process the request. * @param {number} [limit] The numbers of items to return, the maximum value is 250 * @param {string} [search] General order search, e.g. by mail, reference etc. + * @param {string} [url] url for webhook filter * @param {string} [next] next page * @param {string} [previous] previous page * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof WebhooksApi */ - public getWebhooks(acceptLanguage?: GetWebhooksAcceptLanguageEnum, xChildCompanyId?: string, limit?: number, search?: string, next?: string, previous?: string, options?: RawAxiosRequestConfig) { - return WebhooksApiFp(this.configuration).getWebhooks(acceptLanguage, xChildCompanyId, limit, search, next, previous, options).then((request) => request(this.axios, this.basePath)); + public getWebhooks(acceptLanguage?: GetWebhooksAcceptLanguageEnum, xChildCompanyId?: string, limit?: number, search?: string, url?: string, next?: string, previous?: string, options?: RawAxiosRequestConfig) { + return WebhooksApiFp(this.configuration).getWebhooks(acceptLanguage, xChildCompanyId, limit, search, url, next, previous, options).then((request) => request(this.axios, this.basePath)); } /** diff --git a/model/api-key-create-response-all-of.ts b/model/api-key-create-response-all-of.ts deleted file mode 100644 index 654822b..0000000 --- a/model/api-key-create-response-all-of.ts +++ /dev/null @@ -1,30 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Conekta API - * Conekta sdk - * - * The version of the OpenAPI document: 2.1.0 - * Contact: engineering@conekta.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface ApiKeyCreateResponseAllOf - */ -export interface ApiKeyCreateResponseAllOf { - /** - * It is occupied as a user when authenticated with basic authentication, with a blank password. This value will only appear once, in the request to create a new key. Copy and save it in a safe place. - * @type {string} - * @memberof ApiKeyCreateResponseAllOf - */ - 'authentication_token'?: string; -} - diff --git a/model/api-key-create-response.ts b/model/api-key-create-response.ts index 6324f9b..232e97f 100644 --- a/model/api-key-create-response.ts +++ b/model/api-key-create-response.ts @@ -13,9 +13,6 @@ */ -// May contain unused imports in some cases -// @ts-ignore -import { ApiKeyCreateResponseAllOf } from './api-key-create-response-all-of'; // May contain unused imports in some cases // @ts-ignore import { ApiKeyResponse } from './api-key-response'; @@ -24,6 +21,6 @@ import { ApiKeyResponse } from './api-key-response'; * @type ApiKeyCreateResponse * @export */ -export type ApiKeyCreateResponse = ApiKeyCreateResponseAllOf & ApiKeyResponse; +export type ApiKeyCreateResponse = ApiKeyResponse; diff --git a/model/charge-data-payment-method-bank-transfer-response.ts b/model/charge-data-payment-method-bank-transfer-response.ts deleted file mode 100644 index 8686e68..0000000 --- a/model/charge-data-payment-method-bank-transfer-response.ts +++ /dev/null @@ -1,120 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Conekta API - * Conekta sdk - * - * The version of the OpenAPI document: 2.1.0 - * Contact: engineering@conekta.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * use for bank transfer responses - * @export - * @interface ChargeDataPaymentMethodBankTransferResponse - */ -export interface ChargeDataPaymentMethodBankTransferResponse { - /** - * - * @type {string} - * @memberof ChargeDataPaymentMethodBankTransferResponse - */ - 'bank'?: string; - /** - * - * @type {string} - * @memberof ChargeDataPaymentMethodBankTransferResponse - */ - 'clabe'?: string; - /** - * - * @type {string} - * @memberof ChargeDataPaymentMethodBankTransferResponse - */ - 'description'?: string | null; - /** - * - * @type {number} - * @memberof ChargeDataPaymentMethodBankTransferResponse - */ - 'executed_at'?: number | null; - /** - * - * @type {number} - * @memberof ChargeDataPaymentMethodBankTransferResponse - */ - 'expires_at'?: number; - /** - * - * @type {string} - * @memberof ChargeDataPaymentMethodBankTransferResponse - */ - 'issuing_account_bank'?: string | null; - /** - * - * @type {string} - * @memberof ChargeDataPaymentMethodBankTransferResponse - */ - 'issuing_account_number'?: string | null; - /** - * - * @type {string} - * @memberof ChargeDataPaymentMethodBankTransferResponse - */ - 'issuing_account_holder_name'?: string | null; - /** - * - * @type {string} - * @memberof ChargeDataPaymentMethodBankTransferResponse - */ - 'issuing_account_tax_id'?: string | null; - /** - * - * @type {Array} - * @memberof ChargeDataPaymentMethodBankTransferResponse - */ - 'payment_attempts'?: Array; - /** - * - * @type {string} - * @memberof ChargeDataPaymentMethodBankTransferResponse - */ - 'receiving_account_holder_name'?: string | null; - /** - * - * @type {string} - * @memberof ChargeDataPaymentMethodBankTransferResponse - */ - 'receiving_account_number'?: string; - /** - * - * @type {string} - * @memberof ChargeDataPaymentMethodBankTransferResponse - */ - 'receiving_account_bank'?: string; - /** - * - * @type {string} - * @memberof ChargeDataPaymentMethodBankTransferResponse - */ - 'receiving_account_tax_id'?: string | null; - /** - * - * @type {string} - * @memberof ChargeDataPaymentMethodBankTransferResponse - */ - 'reference_number'?: string | null; - /** - * - * @type {string} - * @memberof ChargeDataPaymentMethodBankTransferResponse - */ - 'tracking_code'?: string | null; -} - diff --git a/model/charge-data-payment-method-card-response.ts b/model/charge-data-payment-method-card-response.ts deleted file mode 100644 index 29e91f5..0000000 --- a/model/charge-data-payment-method-card-response.ts +++ /dev/null @@ -1,90 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Conekta API - * Conekta sdk - * - * The version of the OpenAPI document: 2.1.0 - * Contact: engineering@conekta.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * use for card responses - * @export - * @interface ChargeDataPaymentMethodCardResponse - */ -export interface ChargeDataPaymentMethodCardResponse { - /** - * - * @type {string} - * @memberof ChargeDataPaymentMethodCardResponse - */ - 'account_type'?: string; - /** - * - * @type {string} - * @memberof ChargeDataPaymentMethodCardResponse - */ - 'auth_code'?: string; - /** - * - * @type {string} - * @memberof ChargeDataPaymentMethodCardResponse - */ - 'brand'?: string; - /** - * Id sent for recurrent charges. - * @type {string} - * @memberof ChargeDataPaymentMethodCardResponse - */ - 'contract_id'?: string; - /** - * - * @type {string} - * @memberof ChargeDataPaymentMethodCardResponse - */ - 'country'?: string; - /** - * - * @type {string} - * @memberof ChargeDataPaymentMethodCardResponse - */ - 'exp_month'?: string; - /** - * - * @type {string} - * @memberof ChargeDataPaymentMethodCardResponse - */ - 'exp_year'?: string; - /** - * - * @type {Array} - * @memberof ChargeDataPaymentMethodCardResponse - */ - 'fraud_indicators'?: Array; - /** - * - * @type {string} - * @memberof ChargeDataPaymentMethodCardResponse - */ - 'issuer'?: string; - /** - * - * @type {string} - * @memberof ChargeDataPaymentMethodCardResponse - */ - 'last4'?: string; - /** - * - * @type {string} - * @memberof ChargeDataPaymentMethodCardResponse - */ - 'name'?: string; -} - diff --git a/model/charge-data-payment-method-cash-response.ts b/model/charge-data-payment-method-cash-response.ts deleted file mode 100644 index 597fa93..0000000 --- a/model/charge-data-payment-method-cash-response.ts +++ /dev/null @@ -1,72 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Conekta API - * Conekta sdk - * - * The version of the OpenAPI document: 2.1.0 - * Contact: engineering@conekta.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * use for cash responses - * @export - * @interface ChargeDataPaymentMethodCashResponse - */ -export interface ChargeDataPaymentMethodCashResponse { - /** - * - * @type {number} - * @memberof ChargeDataPaymentMethodCashResponse - */ - 'auth_code'?: number | null; - /** - * - * @type {string} - * @memberof ChargeDataPaymentMethodCashResponse - */ - 'cashier_id'?: string | null; - /** - * - * @type {string} - * @memberof ChargeDataPaymentMethodCashResponse - */ - 'reference'?: string; - /** - * - * @type {string} - * @memberof ChargeDataPaymentMethodCashResponse - */ - 'barcode_url'?: string; - /** - * - * @type {number} - * @memberof ChargeDataPaymentMethodCashResponse - */ - 'expires_at'?: number; - /** - * - * @type {string} - * @memberof ChargeDataPaymentMethodCashResponse - */ - 'service_name'?: string; - /** - * - * @type {string} - * @memberof ChargeDataPaymentMethodCashResponse - */ - 'store'?: string | null; - /** - * - * @type {string} - * @memberof ChargeDataPaymentMethodCashResponse - */ - 'store_name'?: string; -} - diff --git a/model/charge-request-payment-method.ts b/model/charge-request-payment-method.ts index 3780823..71c611b 100644 --- a/model/charge-request-payment-method.ts +++ b/model/charge-request-payment-method.ts @@ -13,48 +13,17 @@ */ +// May contain unused imports in some cases +// @ts-ignore +import { PaymentMethodCardRequest } from './payment-method-card-request'; +// May contain unused imports in some cases +// @ts-ignore +import { PaymentMethodGeneralRequest } from './payment-method-general-request'; /** - * Payment method used in the charge. Go to the [payment methods](https://developers.conekta.com/reference/m%C3%A9todos-de-pago) section for more details + * @type ChargeRequestPaymentMethod * @export - * @interface ChargeRequestPaymentMethod */ -export interface ChargeRequestPaymentMethod { - /** - * Method expiration date as unix timestamp - * @type {number} - * @memberof ChargeRequestPaymentMethod - */ - 'expires_at'?: number; - /** - * How many months without interest to apply, it can be 3, 6, 9, 12 or 18 - * @type {number} - * @memberof ChargeRequestPaymentMethod - */ - 'monthly_installments'?: number; - /** - * - * @type {string} - * @memberof ChargeRequestPaymentMethod - */ - 'type': string; - /** - * - * @type {string} - * @memberof ChargeRequestPaymentMethod - */ - 'token_id'?: string; - /** - * - * @type {string} - * @memberof ChargeRequestPaymentMethod - */ - 'payment_source_id'?: string; - /** - * Optional id sent to indicate the bank contract for recurrent card charges. - * @type {string} - * @memberof ChargeRequestPaymentMethod - */ - 'contract_id'?: string; -} +export type ChargeRequestPaymentMethod = PaymentMethodCardRequest | PaymentMethodGeneralRequest; + diff --git a/model/charge-request.ts b/model/charge-request.ts index eb382eb..0bfc1e2 100644 --- a/model/charge-request.ts +++ b/model/charge-request.ts @@ -24,7 +24,7 @@ import { ChargeRequestPaymentMethod } from './charge-request-payment-method'; */ export interface ChargeRequest { /** - * + * Amount to be charged in cents * @type {number} * @memberof ChargeRequest */ diff --git a/model/charge-response-refunds-all-of.ts b/model/charge-response-refunds-all-of.ts deleted file mode 100644 index 3a0b8a8..0000000 --- a/model/charge-response-refunds-all-of.ts +++ /dev/null @@ -1,33 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Conekta API - * Conekta sdk - * - * The version of the OpenAPI document: 2.1.0 - * Contact: engineering@conekta.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { ChargeResponseRefundsData } from './charge-response-refunds-data'; - -/** - * - * @export - * @interface ChargeResponseRefundsAllOf - */ -export interface ChargeResponseRefundsAllOf { - /** - * refunds - * @type {Array} - * @memberof ChargeResponseRefundsAllOf - */ - 'data'?: Array; -} - diff --git a/model/charge-response-refunds.ts b/model/charge-response-refunds.ts index 0718638..d7c2ba3 100644 --- a/model/charge-response-refunds.ts +++ b/model/charge-response-refunds.ts @@ -13,9 +13,6 @@ */ -// May contain unused imports in some cases -// @ts-ignore -import { ChargeResponseRefundsAllOf } from './charge-response-refunds-all-of'; // May contain unused imports in some cases // @ts-ignore import { ChargeResponseRefundsData } from './charge-response-refunds-data'; @@ -30,6 +27,6 @@ import { Pagination } from './pagination'; * @type ChargeResponseRefunds * @export */ -export type ChargeResponseRefunds = ChargeResponseRefundsAllOf & Page & Pagination; +export type ChargeResponseRefunds = Page & Pagination; diff --git a/model/charge-response.ts b/model/charge-response.ts index f659546..75fb39c 100644 --- a/model/charge-response.ts +++ b/model/charge-response.ts @@ -84,13 +84,13 @@ export interface ChargeResponse { */ 'failure_message'?: string; /** - * + * Charge ID * @type {string} * @memberof ChargeResponse */ 'id'?: string; /** - * + * Whether the charge was made in live mode or not * @type {boolean} * @memberof ChargeResponse */ @@ -102,13 +102,13 @@ export interface ChargeResponse { */ 'object'?: string; /** - * + * Order ID * @type {string} * @memberof ChargeResponse */ 'order_id'?: string; /** - * + * Payment date * @type {number} * @memberof ChargeResponse */ diff --git a/model/charges-order-response-all-of-data.ts b/model/charges-order-response-all-of-data.ts new file mode 100644 index 0000000..ea3639a --- /dev/null +++ b/model/charges-order-response-all-of-data.ts @@ -0,0 +1,35 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Conekta API + * Conekta sdk + * + * The version of the OpenAPI document: 2.1.0 + * Contact: engineering@conekta.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { ChargeResponse } from './charge-response'; +// May contain unused imports in some cases +// @ts-ignore +import { ChargeResponseChannel } from './charge-response-channel'; +// May contain unused imports in some cases +// @ts-ignore +import { ChargeResponsePaymentMethod } from './charge-response-payment-method'; +// May contain unused imports in some cases +// @ts-ignore +import { ChargeResponseRefunds } from './charge-response-refunds'; + +/** + * @type ChargesOrderResponseAllOfData + * @export + */ +export type ChargesOrderResponseAllOfData = ChargeResponse; + + diff --git a/model/get-api-keys-response-all-of.ts b/model/charges-order-response.ts similarity index 57% rename from model/get-api-keys-response-all-of.ts rename to model/charges-order-response.ts index 3ef88e4..d2515d8 100644 --- a/model/get-api-keys-response-all-of.ts +++ b/model/charges-order-response.ts @@ -15,19 +15,16 @@ // May contain unused imports in some cases // @ts-ignore -import { ApiKeyResponse } from './api-key-response'; +import { ChargesOrderResponseAllOfData } from './charges-order-response-all-of-data'; +// May contain unused imports in some cases +// @ts-ignore +import { Pagination } from './pagination'; /** - * + * @type ChargesOrderResponse + * The charges associated with the order * @export - * @interface GetApiKeysResponseAllOf */ -export interface GetApiKeysResponseAllOf { - /** - * - * @type {Array} - * @memberof GetApiKeysResponseAllOf - */ - 'data'?: Array; -} +export type ChargesOrderResponse = Pagination; + diff --git a/model/checkout-request.ts b/model/checkout-request.ts index ab71e0b..8cbea5b 100644 --- a/model/checkout-request.ts +++ b/model/checkout-request.ts @@ -50,6 +50,12 @@ export interface CheckoutRequest { * @memberof CheckoutRequest */ 'monthly_installments_options'?: Array; + /** + * Number of retries allowed before the checkout is marked as failed + * @type {number} + * @memberof CheckoutRequest + */ + 'max_failed_retries'?: number; /** * Reason for payment * @type {string} @@ -62,6 +68,12 @@ export interface CheckoutRequest { * @memberof CheckoutRequest */ 'on_demand_enabled'?: boolean; + /** + * number of seconds to wait before redirecting to the success_url + * @type {number} + * @memberof CheckoutRequest + */ + 'redirection_time'?: number; /** * Redirection url back to the site in case of successful payment, applies only to HostedPayment * @type {string} diff --git a/model/checkout.ts b/model/checkout.ts index f94d1b7..71746be 100644 --- a/model/checkout.ts +++ b/model/checkout.ts @@ -47,6 +47,12 @@ export interface Checkout { * @memberof Checkout */ 'monthly_installments_options'?: Array; + /** + * Indicates the 3DS2 mode for the order, either smart or strict. + * @type {string} + * @memberof Checkout + */ + 'three_ds_mode'?: string; /** * Reason for charge * @type {string} diff --git a/model/checkouts-response-all-of.ts b/model/checkouts-response-all-of.ts deleted file mode 100644 index 811ee8b..0000000 --- a/model/checkouts-response-all-of.ts +++ /dev/null @@ -1,33 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Conekta API - * Conekta sdk - * - * The version of the OpenAPI document: 2.1.0 - * Contact: engineering@conekta.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { CheckoutResponse } from './checkout-response'; - -/** - * - * @export - * @interface CheckoutsResponseAllOf - */ -export interface CheckoutsResponseAllOf { - /** - * - * @type {Array} - * @memberof CheckoutsResponseAllOf - */ - 'data'?: Array; -} - diff --git a/model/checkouts-response.ts b/model/checkouts-response.ts index e91442d..e519ada 100644 --- a/model/checkouts-response.ts +++ b/model/checkouts-response.ts @@ -18,9 +18,6 @@ import { CheckoutResponse } from './checkout-response'; // May contain unused imports in some cases // @ts-ignore -import { CheckoutsResponseAllOf } from './checkouts-response-all-of'; -// May contain unused imports in some cases -// @ts-ignore import { Page } from './page'; // May contain unused imports in some cases // @ts-ignore @@ -30,6 +27,6 @@ import { Pagination } from './pagination'; * @type CheckoutsResponse * @export */ -export type CheckoutsResponse = CheckoutsResponseAllOf & Page & Pagination; +export type CheckoutsResponse = Page & Pagination; diff --git a/model/create-customer-fiscal-entities-response-all-of.ts b/model/create-customer-fiscal-entities-response-all-of.ts deleted file mode 100644 index 8bf776f..0000000 --- a/model/create-customer-fiscal-entities-response-all-of.ts +++ /dev/null @@ -1,54 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Conekta API - * Conekta sdk - * - * The version of the OpenAPI document: 2.1.0 - * Contact: engineering@conekta.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface CreateCustomerFiscalEntitiesResponseAllOf - */ -export interface CreateCustomerFiscalEntitiesResponseAllOf { - /** - * - * @type {string} - * @memberof CreateCustomerFiscalEntitiesResponseAllOf - */ - 'id': string; - /** - * - * @type {string} - * @memberof CreateCustomerFiscalEntitiesResponseAllOf - */ - 'object': string; - /** - * - * @type {number} - * @memberof CreateCustomerFiscalEntitiesResponseAllOf - */ - 'created_at': number; - /** - * - * @type {string} - * @memberof CreateCustomerFiscalEntitiesResponseAllOf - */ - 'parent_id'?: string; - /** - * - * @type {boolean} - * @memberof CreateCustomerFiscalEntitiesResponseAllOf - */ - 'default'?: boolean; -} - diff --git a/model/create-customer-fiscal-entities-response.ts b/model/create-customer-fiscal-entities-response.ts index e8d810e..ba31fc4 100644 --- a/model/create-customer-fiscal-entities-response.ts +++ b/model/create-customer-fiscal-entities-response.ts @@ -15,18 +15,15 @@ // May contain unused imports in some cases // @ts-ignore -import { CreateCustomerFiscalEntitiesResponseAllOf } from './create-customer-fiscal-entities-response-all-of'; +import { CustomerAddress } from './customer-address'; // May contain unused imports in some cases // @ts-ignore import { CustomerFiscalEntitiesRequest } from './customer-fiscal-entities-request'; -// May contain unused imports in some cases -// @ts-ignore -import { CustomerFiscalEntitiesRequestAddress } from './customer-fiscal-entities-request-address'; /** * @type CreateCustomerFiscalEntitiesResponse * @export */ -export type CreateCustomerFiscalEntitiesResponse = CreateCustomerFiscalEntitiesResponseAllOf & CustomerFiscalEntitiesRequest; +export type CreateCustomerFiscalEntitiesResponse = CustomerFiscalEntitiesRequest; diff --git a/model/create-customer-payment-methods-request.ts b/model/create-customer-payment-methods-request.ts index 1a7ca71..a568742 100644 --- a/model/create-customer-payment-methods-request.ts +++ b/model/create-customer-payment-methods-request.ts @@ -13,21 +13,21 @@ */ -// May contain unused imports in some cases -// @ts-ignore -import { PaymentMethodCardRequest } from './payment-method-card-request'; // May contain unused imports in some cases // @ts-ignore import { PaymentMethodCashRequest } from './payment-method-cash-request'; // May contain unused imports in some cases // @ts-ignore import { PaymentMethodSpeiRequest } from './payment-method-spei-request'; +// May contain unused imports in some cases +// @ts-ignore +import { PaymentMethodTokenRequest } from './payment-method-token-request'; /** * @type CreateCustomerPaymentMethodsRequest * Contains details of the payment methods that the customer has active or has used in Conekta * @export */ -export type CreateCustomerPaymentMethodsRequest = PaymentMethodCardRequest | PaymentMethodCashRequest | PaymentMethodSpeiRequest; +export type CreateCustomerPaymentMethodsRequest = PaymentMethodCashRequest | PaymentMethodSpeiRequest | PaymentMethodTokenRequest; diff --git a/model/customer-fiscal-entities-data-response.ts b/model/customer-fiscal-entities-data-response.ts index 3b01414..f7c4811 100644 --- a/model/customer-fiscal-entities-data-response.ts +++ b/model/customer-fiscal-entities-data-response.ts @@ -15,18 +15,15 @@ // May contain unused imports in some cases // @ts-ignore -import { CreateCustomerFiscalEntitiesResponseAllOf } from './create-customer-fiscal-entities-response-all-of'; +import { CustomerAddress } from './customer-address'; // May contain unused imports in some cases // @ts-ignore import { CustomerFiscalEntitiesRequest } from './customer-fiscal-entities-request'; -// May contain unused imports in some cases -// @ts-ignore -import { CustomerFiscalEntitiesRequestAddress } from './customer-fiscal-entities-request-address'; /** * @type CustomerFiscalEntitiesDataResponse * @export */ -export type CustomerFiscalEntitiesDataResponse = CreateCustomerFiscalEntitiesResponseAllOf & CustomerFiscalEntitiesRequest; +export type CustomerFiscalEntitiesDataResponse = CustomerFiscalEntitiesRequest; diff --git a/model/customer-fiscal-entities-request.ts b/model/customer-fiscal-entities-request.ts index 86422b4..df83b63 100644 --- a/model/customer-fiscal-entities-request.ts +++ b/model/customer-fiscal-entities-request.ts @@ -15,7 +15,7 @@ // May contain unused imports in some cases // @ts-ignore -import { CustomerFiscalEntitiesRequestAddress } from './customer-fiscal-entities-request-address'; +import { CustomerAddress } from './customer-address'; /** * @@ -25,10 +25,10 @@ import { CustomerFiscalEntitiesRequestAddress } from './customer-fiscal-entities export interface CustomerFiscalEntitiesRequest { /** * - * @type {CustomerFiscalEntitiesRequestAddress} + * @type {CustomerAddress} * @memberof CustomerFiscalEntitiesRequest */ - 'address': CustomerFiscalEntitiesRequestAddress; + 'address': CustomerAddress; /** * * @type {string} diff --git a/model/customer-fiscal-entities-response-all-of.ts b/model/customer-fiscal-entities-response-all-of.ts deleted file mode 100644 index c164c10..0000000 --- a/model/customer-fiscal-entities-response-all-of.ts +++ /dev/null @@ -1,33 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Conekta API - * Conekta sdk - * - * The version of the OpenAPI document: 2.1.0 - * Contact: engineering@conekta.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { CustomerFiscalEntitiesDataResponse } from './customer-fiscal-entities-data-response'; - -/** - * - * @export - * @interface CustomerFiscalEntitiesResponseAllOf - */ -export interface CustomerFiscalEntitiesResponseAllOf { - /** - * - * @type {Array} - * @memberof CustomerFiscalEntitiesResponseAllOf - */ - 'data'?: Array; -} - diff --git a/model/customer-fiscal-entities-response.ts b/model/customer-fiscal-entities-response.ts index 0915a12..36fe1be 100644 --- a/model/customer-fiscal-entities-response.ts +++ b/model/customer-fiscal-entities-response.ts @@ -18,15 +18,12 @@ import { CustomerFiscalEntitiesDataResponse } from './customer-fiscal-entities-data-response'; // May contain unused imports in some cases // @ts-ignore -import { CustomerFiscalEntitiesResponseAllOf } from './customer-fiscal-entities-response-all-of'; -// May contain unused imports in some cases -// @ts-ignore import { Pagination } from './pagination'; /** * @type CustomerFiscalEntitiesResponse * @export */ -export type CustomerFiscalEntitiesResponse = CustomerFiscalEntitiesResponseAllOf & Pagination; +export type CustomerFiscalEntitiesResponse = Pagination; diff --git a/model/customer-payment-methods-request.ts b/model/customer-payment-methods-request.ts index f39861f..53519a5 100644 --- a/model/customer-payment-methods-request.ts +++ b/model/customer-payment-methods-request.ts @@ -13,20 +13,20 @@ */ -// May contain unused imports in some cases -// @ts-ignore -import { PaymentMethodCardRequest } from './payment-method-card-request'; // May contain unused imports in some cases // @ts-ignore import { PaymentMethodCashRequest } from './payment-method-cash-request'; // May contain unused imports in some cases // @ts-ignore import { PaymentMethodSpeiRequest } from './payment-method-spei-request'; +// May contain unused imports in some cases +// @ts-ignore +import { PaymentMethodTokenRequest } from './payment-method-token-request'; /** * @type CustomerPaymentMethodsRequest * @export */ -export type CustomerPaymentMethodsRequest = PaymentMethodCardRequest | PaymentMethodCashRequest | PaymentMethodSpeiRequest; +export type CustomerPaymentMethodsRequest = PaymentMethodCashRequest | PaymentMethodSpeiRequest | PaymentMethodTokenRequest; diff --git a/model/customer-payment-methods-response.ts b/model/customer-payment-methods-response.ts index 925dbd3..87eb414 100644 --- a/model/customer-payment-methods-response.ts +++ b/model/customer-payment-methods-response.ts @@ -13,9 +13,6 @@ */ -// May contain unused imports in some cases -// @ts-ignore -import { CustomerPaymentMethods } from './customer-payment-methods'; // May contain unused imports in some cases // @ts-ignore import { CustomerPaymentMethodsData } from './customer-payment-methods-data'; @@ -30,6 +27,6 @@ import { Pagination } from './pagination'; * @type CustomerPaymentMethodsResponse * @export */ -export type CustomerPaymentMethodsResponse = CustomerPaymentMethods & Page & Pagination; +export type CustomerPaymentMethodsResponse = Page & Pagination; diff --git a/model/customer-payment-methods.ts b/model/customer-payment-methods.ts deleted file mode 100644 index b7a5e5a..0000000 --- a/model/customer-payment-methods.ts +++ /dev/null @@ -1,33 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Conekta API - * Conekta sdk - * - * The version of the OpenAPI document: 2.1.0 - * Contact: engineering@conekta.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { CustomerPaymentMethodsData } from './customer-payment-methods-data'; - -/** - * - * @export - * @interface CustomerPaymentMethods - */ -export interface CustomerPaymentMethods { - /** - * - * @type {Array} - * @memberof CustomerPaymentMethods - */ - 'data'?: Array; -} - diff --git a/model/customer-response-shipping-contacts-all-of.ts b/model/customer-response-shipping-contacts-all-of.ts deleted file mode 100644 index 557a346..0000000 --- a/model/customer-response-shipping-contacts-all-of.ts +++ /dev/null @@ -1,33 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Conekta API - * Conekta sdk - * - * The version of the OpenAPI document: 2.1.0 - * Contact: engineering@conekta.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { CustomerShippingContactsDataResponse } from './customer-shipping-contacts-data-response'; - -/** - * - * @export - * @interface CustomerResponseShippingContactsAllOf - */ -export interface CustomerResponseShippingContactsAllOf { - /** - * - * @type {Array} - * @memberof CustomerResponseShippingContactsAllOf - */ - 'data'?: Array; -} - diff --git a/model/customer-response-shipping-contacts.ts b/model/customer-response-shipping-contacts.ts index e8e7423..95ef8de 100644 --- a/model/customer-response-shipping-contacts.ts +++ b/model/customer-response-shipping-contacts.ts @@ -13,9 +13,6 @@ */ -// May contain unused imports in some cases -// @ts-ignore -import { CustomerResponseShippingContactsAllOf } from './customer-response-shipping-contacts-all-of'; // May contain unused imports in some cases // @ts-ignore import { CustomerShippingContactsDataResponse } from './customer-shipping-contacts-data-response'; @@ -27,6 +24,6 @@ import { Pagination } from './pagination'; * @type CustomerResponseShippingContacts * @export */ -export type CustomerResponseShippingContacts = CustomerResponseShippingContactsAllOf & Pagination; +export type CustomerResponseShippingContacts = Pagination; diff --git a/model/customer-response.ts b/model/customer-response.ts index 5d3e60c..554f7c9 100644 --- a/model/customer-response.ts +++ b/model/customer-response.ts @@ -59,6 +59,12 @@ export interface CustomerResponse { * @memberof CustomerResponse */ 'custom_reference'?: string; + /** + * It is a parameter that allows to identify the date of birth of the client. + * @type {string} + * @memberof CustomerResponse + */ + 'date_of_birth'?: string; /** * * @type {string} @@ -107,6 +113,12 @@ export interface CustomerResponse { * @memberof CustomerResponse */ 'name': string; + /** + * It is a parameter that allows to identify the national identification number of the client. + * @type {string} + * @memberof CustomerResponse + */ + 'national_id'?: string; /** * * @type {{ [key: string]: any; }} diff --git a/model/customer-shipping-contacts-data-response-all-of.ts b/model/customer-shipping-contacts-data-response-all-of.ts deleted file mode 100644 index 4a032fc..0000000 --- a/model/customer-shipping-contacts-data-response-all-of.ts +++ /dev/null @@ -1,42 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Conekta API - * Conekta sdk - * - * The version of the OpenAPI document: 2.1.0 - * Contact: engineering@conekta.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface CustomerShippingContactsDataResponseAllOf - */ -export interface CustomerShippingContactsDataResponseAllOf { - /** - * - * @type {string} - * @memberof CustomerShippingContactsDataResponseAllOf - */ - 'id': string; - /** - * - * @type {string} - * @memberof CustomerShippingContactsDataResponseAllOf - */ - 'object': string; - /** - * - * @type {number} - * @memberof CustomerShippingContactsDataResponseAllOf - */ - 'created_at': number; -} - diff --git a/model/customer-shipping-contacts-data-response.ts b/model/customer-shipping-contacts-data-response.ts index e201a28..e85a64d 100644 --- a/model/customer-shipping-contacts-data-response.ts +++ b/model/customer-shipping-contacts-data-response.ts @@ -19,14 +19,11 @@ import { CustomerShippingContacts } from './customer-shipping-contacts'; // May contain unused imports in some cases // @ts-ignore import { CustomerShippingContactsAddress } from './customer-shipping-contacts-address'; -// May contain unused imports in some cases -// @ts-ignore -import { CustomerShippingContactsDataResponseAllOf } from './customer-shipping-contacts-data-response-all-of'; /** * @type CustomerShippingContactsDataResponse * @export */ -export type CustomerShippingContactsDataResponse = CustomerShippingContacts & CustomerShippingContactsDataResponseAllOf; +export type CustomerShippingContactsDataResponse = CustomerShippingContacts; diff --git a/model/customer-update-fiscal-entities-request.ts b/model/customer-update-fiscal-entities-request.ts index 643e451..8d651a5 100644 --- a/model/customer-update-fiscal-entities-request.ts +++ b/model/customer-update-fiscal-entities-request.ts @@ -15,7 +15,7 @@ // May contain unused imports in some cases // @ts-ignore -import { CustomerFiscalEntitiesRequestAddress } from './customer-fiscal-entities-request-address'; +import { CustomerAddress } from './customer-address'; /** * @@ -25,10 +25,10 @@ import { CustomerFiscalEntitiesRequestAddress } from './customer-fiscal-entities export interface CustomerUpdateFiscalEntitiesRequest { /** * - * @type {CustomerFiscalEntitiesRequestAddress} + * @type {CustomerAddress} * @memberof CustomerUpdateFiscalEntitiesRequest */ - 'address'?: CustomerFiscalEntitiesRequestAddress; + 'address'?: CustomerAddress; /** * * @type {string} diff --git a/model/customer.ts b/model/customer.ts index 8a73fad..84fc937 100644 --- a/model/customer.ts +++ b/model/customer.ts @@ -53,6 +53,12 @@ export interface Customer { * @memberof Customer */ 'custom_reference'?: string; + /** + * It is a parameter that allows to identify the date of birth of the client. + * @type {string} + * @memberof Customer + */ + 'date_of_birth'?: string; /** * An email address is a series of customizable characters followed by a universal Internet symbol, the at symbol (@), the name of a host server, and a web domain ending (.mx, .com, .org, . net, etc). * @type {string} @@ -89,6 +95,12 @@ export interface Customer { * @memberof Customer */ 'name': string; + /** + * It is a parameter that allows to identify the national identification number of the client. + * @type {string} + * @memberof Customer + */ + 'national_id'?: string; /** * Contains details of the payment methods that the customer has active or has used in Conekta * @type {Array} diff --git a/model/customers-response-all-of.ts b/model/customers-response-all-of.ts deleted file mode 100644 index 6116fa0..0000000 --- a/model/customers-response-all-of.ts +++ /dev/null @@ -1,33 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Conekta API - * Conekta sdk - * - * The version of the OpenAPI document: 2.1.0 - * Contact: engineering@conekta.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { CustomerResponse } from './customer-response'; - -/** - * - * @export - * @interface CustomersResponseAllOf - */ -export interface CustomersResponseAllOf { - /** - * - * @type {Array} - * @memberof CustomersResponseAllOf - */ - 'data'?: Array; -} - diff --git a/model/customers-response.ts b/model/customers-response.ts index 738ed8f..3df214b 100644 --- a/model/customers-response.ts +++ b/model/customers-response.ts @@ -18,9 +18,6 @@ import { CustomerResponse } from './customer-response'; // May contain unused imports in some cases // @ts-ignore -import { CustomersResponseAllOf } from './customers-response-all-of'; -// May contain unused imports in some cases -// @ts-ignore import { Page } from './page'; // May contain unused imports in some cases // @ts-ignore @@ -30,6 +27,6 @@ import { Pagination } from './pagination'; * @type CustomersResponse * @export */ -export type CustomersResponse = CustomersResponseAllOf & Page & Pagination; +export type CustomersResponse = Page & Pagination; diff --git a/model/delete-api-keys-response-all-of.ts b/model/delete-api-keys-response-all-of.ts deleted file mode 100644 index 5fb3d73..0000000 --- a/model/delete-api-keys-response-all-of.ts +++ /dev/null @@ -1,30 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Conekta API - * Conekta sdk - * - * The version of the OpenAPI document: 2.1.0 - * Contact: engineering@conekta.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface DeleteApiKeysResponseAllOf - */ -export interface DeleteApiKeysResponseAllOf { - /** - * - * @type {boolean} - * @memberof DeleteApiKeysResponseAllOf - */ - 'deleted'?: boolean; -} - diff --git a/model/delete-api-keys-response.ts b/model/delete-api-keys-response.ts index 2b4780e..d7f5380 100644 --- a/model/delete-api-keys-response.ts +++ b/model/delete-api-keys-response.ts @@ -16,14 +16,11 @@ // May contain unused imports in some cases // @ts-ignore import { ApiKeyResponseOnDelete } from './api-key-response-on-delete'; -// May contain unused imports in some cases -// @ts-ignore -import { DeleteApiKeysResponseAllOf } from './delete-api-keys-response-all-of'; /** * @type DeleteApiKeysResponse * @export */ -export type DeleteApiKeysResponse = ApiKeyResponseOnDelete & DeleteApiKeysResponseAllOf; +export type DeleteApiKeysResponse = ApiKeyResponseOnDelete; diff --git a/model/discount-lines-response-all-of.ts b/model/discount-lines-response-all-of.ts deleted file mode 100644 index dcda191..0000000 --- a/model/discount-lines-response-all-of.ts +++ /dev/null @@ -1,42 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Conekta API - * Conekta sdk - * - * The version of the OpenAPI document: 2.1.0 - * Contact: engineering@conekta.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface DiscountLinesResponseAllOf - */ -export interface DiscountLinesResponseAllOf { - /** - * The discount line id - * @type {string} - * @memberof DiscountLinesResponseAllOf - */ - 'id': string; - /** - * The object name - * @type {string} - * @memberof DiscountLinesResponseAllOf - */ - 'object': string; - /** - * The order id - * @type {string} - * @memberof DiscountLinesResponseAllOf - */ - 'parent_id': string; -} - diff --git a/model/discount-lines-response.ts b/model/discount-lines-response.ts index 40811d9..7a87187 100644 --- a/model/discount-lines-response.ts +++ b/model/discount-lines-response.ts @@ -13,9 +13,6 @@ */ -// May contain unused imports in some cases -// @ts-ignore -import { DiscountLinesResponseAllOf } from './discount-lines-response-all-of'; // May contain unused imports in some cases // @ts-ignore import { OrderDiscountLinesRequest } from './order-discount-lines-request'; @@ -24,6 +21,6 @@ import { OrderDiscountLinesRequest } from './order-discount-lines-request'; * @type DiscountLinesResponse * @export */ -export type DiscountLinesResponse = DiscountLinesResponseAllOf & OrderDiscountLinesRequest; +export type DiscountLinesResponse = OrderDiscountLinesRequest; diff --git a/model/error-all-of.ts b/model/error-all-of.ts deleted file mode 100644 index 5b9db81..0000000 --- a/model/error-all-of.ts +++ /dev/null @@ -1,42 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Conekta API - * Conekta sdk - * - * The version of the OpenAPI document: 2.1.0 - * Contact: engineering@conekta.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface ErrorAllOf - */ -export interface ErrorAllOf { - /** - * log id - * @type {string} - * @memberof ErrorAllOf - */ - 'log_id'?: string | null; - /** - * - * @type {string} - * @memberof ErrorAllOf - */ - 'type'?: string; - /** - * - * @type {string} - * @memberof ErrorAllOf - */ - 'object'?: string; -} - diff --git a/model/event-types.ts b/model/event-types.ts new file mode 100644 index 0000000..5e4867b --- /dev/null +++ b/model/event-types.ts @@ -0,0 +1,34 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Conekta API + * Conekta sdk + * + * The version of the OpenAPI document: 2.1.0 + * Contact: engineering@conekta.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * It is a parameter that allows to identify in the response, the type of event that is being generated. + * @export + * @enum {string} + */ + +export const EventTypes = { + webhookPing: 'webhook_ping', + orderPaid: 'order.paid', + orderExpired: 'order.expired', + orderCanceled: 'order.canceled', + orderPendingPayment: 'order.pending_payment' +} as const; + +export type EventTypes = typeof EventTypes[keyof typeof EventTypes]; + + + diff --git a/model/get-api-keys-response.ts b/model/get-api-keys-response.ts index 84477f3..fd6d70f 100644 --- a/model/get-api-keys-response.ts +++ b/model/get-api-keys-response.ts @@ -18,9 +18,6 @@ import { ApiKeyResponse } from './api-key-response'; // May contain unused imports in some cases // @ts-ignore -import { GetApiKeysResponseAllOf } from './get-api-keys-response-all-of'; -// May contain unused imports in some cases -// @ts-ignore import { Page } from './page'; // May contain unused imports in some cases // @ts-ignore @@ -30,6 +27,6 @@ import { Pagination } from './pagination'; * @type GetApiKeysResponse * @export */ -export type GetApiKeysResponse = GetApiKeysResponseAllOf & Page & Pagination; +export type GetApiKeysResponse = Page & Pagination; diff --git a/model/get-charges-response-all-of.ts b/model/get-charges-response-all-of.ts deleted file mode 100644 index 3a572b9..0000000 --- a/model/get-charges-response-all-of.ts +++ /dev/null @@ -1,33 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Conekta API - * Conekta sdk - * - * The version of the OpenAPI document: 2.1.0 - * Contact: engineering@conekta.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { ChargeResponse } from './charge-response'; - -/** - * - * @export - * @interface GetChargesResponseAllOf - */ -export interface GetChargesResponseAllOf { - /** - * - * @type {Array} - * @memberof GetChargesResponseAllOf - */ - 'data'?: Array; -} - diff --git a/model/get-charges-response.ts b/model/get-charges-response.ts index a89beaa..b3dec11 100644 --- a/model/get-charges-response.ts +++ b/model/get-charges-response.ts @@ -18,9 +18,6 @@ import { ChargeResponse } from './charge-response'; // May contain unused imports in some cases // @ts-ignore -import { GetChargesResponseAllOf } from './get-charges-response-all-of'; -// May contain unused imports in some cases -// @ts-ignore import { Page } from './page'; // May contain unused imports in some cases // @ts-ignore @@ -30,6 +27,6 @@ import { Pagination } from './pagination'; * @type GetChargesResponse * @export */ -export type GetChargesResponse = GetChargesResponseAllOf & Page & Pagination; +export type GetChargesResponse = Page & Pagination; diff --git a/model/get-companies-response-all-of.ts b/model/get-companies-response-all-of.ts deleted file mode 100644 index fb78d4c..0000000 --- a/model/get-companies-response-all-of.ts +++ /dev/null @@ -1,33 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Conekta API - * Conekta sdk - * - * The version of the OpenAPI document: 2.1.0 - * Contact: engineering@conekta.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { CompanyResponse } from './company-response'; - -/** - * - * @export - * @interface GetCompaniesResponseAllOf - */ -export interface GetCompaniesResponseAllOf { - /** - * - * @type {Array} - * @memberof GetCompaniesResponseAllOf - */ - 'data'?: Array; -} - diff --git a/model/get-companies-response.ts b/model/get-companies-response.ts index 044e49d..bbc8d77 100644 --- a/model/get-companies-response.ts +++ b/model/get-companies-response.ts @@ -18,9 +18,6 @@ import { CompanyResponse } from './company-response'; // May contain unused imports in some cases // @ts-ignore -import { GetCompaniesResponseAllOf } from './get-companies-response-all-of'; -// May contain unused imports in some cases -// @ts-ignore import { Page } from './page'; // May contain unused imports in some cases // @ts-ignore @@ -30,6 +27,6 @@ import { Pagination } from './pagination'; * @type GetCompaniesResponse * @export */ -export type GetCompaniesResponse = GetCompaniesResponseAllOf & Page & Pagination; +export type GetCompaniesResponse = Page & Pagination; diff --git a/model/get-events-response-all-of.ts b/model/get-events-response-all-of.ts deleted file mode 100644 index 6b6945d..0000000 --- a/model/get-events-response-all-of.ts +++ /dev/null @@ -1,33 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Conekta API - * Conekta sdk - * - * The version of the OpenAPI document: 2.1.0 - * Contact: engineering@conekta.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { EventResponse } from './event-response'; - -/** - * - * @export - * @interface GetEventsResponseAllOf - */ -export interface GetEventsResponseAllOf { - /** - * - * @type {Array} - * @memberof GetEventsResponseAllOf - */ - 'data'?: Array; -} - diff --git a/model/get-events-response.ts b/model/get-events-response.ts index db2ac87..bcaac46 100644 --- a/model/get-events-response.ts +++ b/model/get-events-response.ts @@ -18,9 +18,6 @@ import { EventResponse } from './event-response'; // May contain unused imports in some cases // @ts-ignore -import { GetEventsResponseAllOf } from './get-events-response-all-of'; -// May contain unused imports in some cases -// @ts-ignore import { Page } from './page'; // May contain unused imports in some cases // @ts-ignore @@ -30,6 +27,6 @@ import { Pagination } from './pagination'; * @type GetEventsResponse * @export */ -export type GetEventsResponse = GetEventsResponseAllOf & Page & Pagination; +export type GetEventsResponse = Page & Pagination; diff --git a/model/get-order-discount-lines-response-all-of.ts b/model/get-order-discount-lines-response-all-of.ts deleted file mode 100644 index 48155cf..0000000 --- a/model/get-order-discount-lines-response-all-of.ts +++ /dev/null @@ -1,33 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Conekta API - * Conekta sdk - * - * The version of the OpenAPI document: 2.1.0 - * Contact: engineering@conekta.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { DiscountLinesResponse } from './discount-lines-response'; - -/** - * - * @export - * @interface GetOrderDiscountLinesResponseAllOf - */ -export interface GetOrderDiscountLinesResponseAllOf { - /** - * - * @type {Array} - * @memberof GetOrderDiscountLinesResponseAllOf - */ - 'data'?: Array; -} - diff --git a/model/get-order-discount-lines-response.ts b/model/get-order-discount-lines-response.ts index 4ae61b8..4ffab71 100644 --- a/model/get-order-discount-lines-response.ts +++ b/model/get-order-discount-lines-response.ts @@ -18,9 +18,6 @@ import { DiscountLinesResponse } from './discount-lines-response'; // May contain unused imports in some cases // @ts-ignore -import { GetOrderDiscountLinesResponseAllOf } from './get-order-discount-lines-response-all-of'; -// May contain unused imports in some cases -// @ts-ignore import { Page } from './page'; // May contain unused imports in some cases // @ts-ignore @@ -30,6 +27,6 @@ import { Pagination } from './pagination'; * @type GetOrderDiscountLinesResponse * @export */ -export type GetOrderDiscountLinesResponse = GetOrderDiscountLinesResponseAllOf & Page & Pagination; +export type GetOrderDiscountLinesResponse = Page & Pagination; diff --git a/model/get-payment-method-response-all-of.ts b/model/get-payment-method-response-all-of.ts deleted file mode 100644 index 47e6eed..0000000 --- a/model/get-payment-method-response-all-of.ts +++ /dev/null @@ -1,33 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Conekta API - * Conekta sdk - * - * The version of the OpenAPI document: 2.1.0 - * Contact: engineering@conekta.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { GetCustomerPaymentMethodDataResponse } from './get-customer-payment-method-data-response'; - -/** - * - * @export - * @interface GetPaymentMethodResponseAllOf - */ -export interface GetPaymentMethodResponseAllOf { - /** - * - * @type {Array} - * @memberof GetPaymentMethodResponseAllOf - */ - 'data'?: Array; -} - diff --git a/model/get-payment-method-response.ts b/model/get-payment-method-response.ts index f10af13..453367d 100644 --- a/model/get-payment-method-response.ts +++ b/model/get-payment-method-response.ts @@ -18,9 +18,6 @@ import { GetCustomerPaymentMethodDataResponse } from './get-customer-payment-method-data-response'; // May contain unused imports in some cases // @ts-ignore -import { GetPaymentMethodResponseAllOf } from './get-payment-method-response-all-of'; -// May contain unused imports in some cases -// @ts-ignore import { Page } from './page'; // May contain unused imports in some cases // @ts-ignore @@ -30,6 +27,6 @@ import { Pagination } from './pagination'; * @type GetPaymentMethodResponse * @export */ -export type GetPaymentMethodResponse = GetPaymentMethodResponseAllOf & Page & Pagination; +export type GetPaymentMethodResponse = Page & Pagination; diff --git a/model/get-plans-response.ts b/model/get-plans-response.ts index 29c745d..830b083 100644 --- a/model/get-plans-response.ts +++ b/model/get-plans-response.ts @@ -13,9 +13,6 @@ */ -// May contain unused imports in some cases -// @ts-ignore -import { GetPlansResponseAllOf } from './get-plans-response-all-of'; // May contain unused imports in some cases // @ts-ignore import { Page } from './page'; @@ -30,6 +27,6 @@ import { PlanResponse } from './plan-response'; * @type GetPlansResponse * @export */ -export type GetPlansResponse = GetPlansResponseAllOf & Page & Pagination; +export type GetPlansResponse = Page & Pagination; diff --git a/model/get-transactions-response.ts b/model/get-transactions-response.ts index eabeeb5..e5f8c1f 100644 --- a/model/get-transactions-response.ts +++ b/model/get-transactions-response.ts @@ -13,9 +13,6 @@ */ -// May contain unused imports in some cases -// @ts-ignore -import { GetTransactionsResponseAllOf } from './get-transactions-response-all-of'; // May contain unused imports in some cases // @ts-ignore import { Page } from './page'; @@ -30,6 +27,6 @@ import { TransactionResponse } from './transaction-response'; * @type GetTransactionsResponse * @export */ -export type GetTransactionsResponse = GetTransactionsResponseAllOf & Page & Pagination; +export type GetTransactionsResponse = Page & Pagination; diff --git a/model/get-transfers-response-all-of.ts b/model/get-transfers-response-all-of.ts deleted file mode 100644 index 9dc315f..0000000 --- a/model/get-transfers-response-all-of.ts +++ /dev/null @@ -1,33 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Conekta API - * Conekta sdk - * - * The version of the OpenAPI document: 2.1.0 - * Contact: engineering@conekta.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { TransfersResponse } from './transfers-response'; - -/** - * - * @export - * @interface GetTransfersResponseAllOf - */ -export interface GetTransfersResponseAllOf { - /** - * Transfers - * @type {Array} - * @memberof GetTransfersResponseAllOf - */ - 'data'?: Array; -} - diff --git a/model/get-transfers-response.ts b/model/get-transfers-response.ts index 89b03d9..a803dc1 100644 --- a/model/get-transfers-response.ts +++ b/model/get-transfers-response.ts @@ -13,9 +13,6 @@ */ -// May contain unused imports in some cases -// @ts-ignore -import { GetTransfersResponseAllOf } from './get-transfers-response-all-of'; // May contain unused imports in some cases // @ts-ignore import { Page } from './page'; @@ -30,6 +27,6 @@ import { TransfersResponse } from './transfers-response'; * @type GetTransfersResponse * @export */ -export type GetTransfersResponse = GetTransfersResponseAllOf & Page & Pagination; +export type GetTransfersResponse = Page & Pagination; diff --git a/model/get-webhook-keys-response-all-of.ts b/model/get-webhook-keys-response-all-of.ts deleted file mode 100644 index b19c469..0000000 --- a/model/get-webhook-keys-response-all-of.ts +++ /dev/null @@ -1,33 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Conekta API - * Conekta sdk - * - * The version of the OpenAPI document: 2.1.0 - * Contact: engineering@conekta.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { WebhookKeyResponse } from './webhook-key-response'; - -/** - * - * @export - * @interface GetWebhookKeysResponseAllOf - */ -export interface GetWebhookKeysResponseAllOf { - /** - * - * @type {Array} - * @memberof GetWebhookKeysResponseAllOf - */ - 'data'?: Array; -} - diff --git a/model/get-webhook-keys-response.ts b/model/get-webhook-keys-response.ts index e3ff384..1e77a6b 100644 --- a/model/get-webhook-keys-response.ts +++ b/model/get-webhook-keys-response.ts @@ -13,9 +13,6 @@ */ -// May contain unused imports in some cases -// @ts-ignore -import { GetWebhookKeysResponseAllOf } from './get-webhook-keys-response-all-of'; // May contain unused imports in some cases // @ts-ignore import { Page } from './page'; @@ -30,6 +27,6 @@ import { WebhookKeyResponse } from './webhook-key-response'; * @type GetWebhookKeysResponse * @export */ -export type GetWebhookKeysResponse = GetWebhookKeysResponseAllOf & Page & Pagination; +export type GetWebhookKeysResponse = Page & Pagination; diff --git a/model/get-webhooks-response-all-of.ts b/model/get-webhooks-response-all-of.ts deleted file mode 100644 index 2701a2b..0000000 --- a/model/get-webhooks-response-all-of.ts +++ /dev/null @@ -1,33 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Conekta API - * Conekta sdk - * - * The version of the OpenAPI document: 2.1.0 - * Contact: engineering@conekta.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { WebhookResponse } from './webhook-response'; - -/** - * - * @export - * @interface GetWebhooksResponseAllOf - */ -export interface GetWebhooksResponseAllOf { - /** - * - * @type {Array} - * @memberof GetWebhooksResponseAllOf - */ - 'data'?: Array; -} - diff --git a/model/get-webhooks-response.ts b/model/get-webhooks-response.ts index 3f93a41..09bbaea 100644 --- a/model/get-webhooks-response.ts +++ b/model/get-webhooks-response.ts @@ -13,9 +13,6 @@ */ -// May contain unused imports in some cases -// @ts-ignore -import { GetWebhooksResponseAllOf } from './get-webhooks-response-all-of'; // May contain unused imports in some cases // @ts-ignore import { Page } from './page'; @@ -30,6 +27,6 @@ import { WebhookResponse } from './webhook-response'; * @type GetWebhooksResponse * @export */ -export type GetWebhooksResponse = GetWebhooksResponseAllOf & Page & Pagination; +export type GetWebhooksResponse = Page & Pagination; diff --git a/model/index.ts b/model/index.ts index 65569f8..b96d5f0 100644 --- a/model/index.ts +++ b/model/index.ts @@ -1,5 +1,4 @@ export * from './api-key-create-response'; -export * from './api-key-create-response-all-of'; export * from './api-key-request'; export * from './api-key-response'; export * from './api-key-response-on-delete'; @@ -7,9 +6,6 @@ export * from './api-key-update-request'; export * from './balance-common-field'; export * from './balance-response'; export * from './blacklist-rule-response'; -export * from './charge-data-payment-method-bank-transfer-response'; -export * from './charge-data-payment-method-card-response'; -export * from './charge-data-payment-method-cash-response'; export * from './charge-order-response'; export * from './charge-order-response-payment-method'; export * from './charge-request'; @@ -18,23 +14,22 @@ export * from './charge-response'; export * from './charge-response-channel'; export * from './charge-response-payment-method'; export * from './charge-response-refunds'; -export * from './charge-response-refunds-all-of'; export * from './charge-response-refunds-data'; export * from './charge-update-request'; export * from './charges-data-response'; +export * from './charges-order-response'; +export * from './charges-order-response-all-of-data'; export * from './checkout'; export * from './checkout-order-template'; export * from './checkout-order-template-customer-info'; export * from './checkout-request'; export * from './checkout-response'; export * from './checkouts-response'; -export * from './checkouts-response-all-of'; export * from './company-fiscal-info-address-response'; export * from './company-fiscal-info-response'; export * from './company-payout-destination-response'; export * from './company-response'; export * from './create-customer-fiscal-entities-response'; -export * from './create-customer-fiscal-entities-response-all-of'; export * from './create-customer-payment-methods-request'; export * from './create-customer-payment-methods-response'; export * from './create-risk-rules-data'; @@ -44,68 +39,49 @@ export * from './customer-antifraud-info'; export * from './customer-antifraud-info-response'; export * from './customer-fiscal-entities-data-response'; export * from './customer-fiscal-entities-request'; -export * from './customer-fiscal-entities-request-address'; export * from './customer-fiscal-entities-response'; -export * from './customer-fiscal-entities-response-all-of'; export * from './customer-info'; export * from './customer-info-just-customer-id'; export * from './customer-info-just-customer-id-response'; export * from './customer-payment-method-request'; -export * from './customer-payment-methods'; export * from './customer-payment-methods-data'; export * from './customer-payment-methods-request'; export * from './customer-payment-methods-response'; export * from './customer-response'; export * from './customer-response-shipping-contacts'; -export * from './customer-response-shipping-contacts-all-of'; export * from './customer-shipping-contacts'; export * from './customer-shipping-contacts-address'; export * from './customer-shipping-contacts-data-response'; -export * from './customer-shipping-contacts-data-response-all-of'; export * from './customer-shipping-contacts-response'; export * from './customer-shipping-contacts-response-address'; export * from './customer-update-fiscal-entities-request'; export * from './customer-update-shipping-contacts'; export * from './customers-response'; -export * from './customers-response-all-of'; export * from './delete-api-keys-response'; -export * from './delete-api-keys-response-all-of'; export * from './deleted-blacklist-rule-response'; export * from './deleted-whitelist-rule-response'; export * from './details'; export * from './details-error'; export * from './discount-lines-data-response'; export * from './discount-lines-response'; -export * from './discount-lines-response-all-of'; export * from './email-checkout-request'; -export * from './error-all-of'; export * from './event-response'; +export * from './event-types'; export * from './events-resend-response'; export * from './fiscal-entity-address'; export * from './get-api-keys-response'; -export * from './get-api-keys-response-all-of'; export * from './get-charges-response'; -export * from './get-charges-response-all-of'; export * from './get-companies-response'; -export * from './get-companies-response-all-of'; export * from './get-customer-payment-method-data-response'; export * from './get-events-response'; -export * from './get-events-response-all-of'; export * from './get-order-discount-lines-response'; -export * from './get-order-discount-lines-response-all-of'; export * from './get-orders-response'; export * from './get-payment-method-response'; -export * from './get-payment-method-response-all-of'; export * from './get-plans-response'; -export * from './get-plans-response-all-of'; export * from './get-transactions-response'; -export * from './get-transactions-response-all-of'; export * from './get-transfers-response'; -export * from './get-transfers-response-all-of'; export * from './get-webhook-keys-response'; -export * from './get-webhook-keys-response-all-of'; export * from './get-webhooks-response'; -export * from './get-webhooks-response-all-of'; export * from './log-response'; export * from './logs-response'; export * from './logs-response-data'; @@ -114,7 +90,6 @@ export * from './order-capture-request'; export * from './order-customer-info-response'; export * from './order-discount-lines-request'; export * from './order-fiscal-entity-address-response'; -export * from './order-fiscal-entity-address-response-all-of'; export * from './order-fiscal-entity-request'; export * from './order-fiscal-entity-response'; export * from './order-next-action-response'; @@ -124,16 +99,11 @@ export * from './order-request'; export * from './order-request-customer-info'; export * from './order-response'; export * from './order-response-charges'; -export * from './order-response-charges-all-of'; export * from './order-response-checkout'; export * from './order-response-customer-info'; -export * from './order-response-customer-info-all-of'; export * from './order-response-discount-lines'; -export * from './order-response-discount-lines-all-of'; export * from './order-response-products'; -export * from './order-response-products-all-of'; export * from './order-response-shipping-contact'; -export * from './order-response-shipping-contact-all-of'; export * from './order-tax-request'; export * from './order-update-fiscal-entity-request'; export * from './order-update-request'; @@ -145,27 +115,28 @@ export * from './payment-method'; export * from './payment-method-bank-transfer'; export * from './payment-method-card'; export * from './payment-method-card-request'; -export * from './payment-method-card-request-all-of'; export * from './payment-method-card-response'; -export * from './payment-method-card-response-all-of'; export * from './payment-method-cash'; export * from './payment-method-cash-request'; -export * from './payment-method-cash-request-all-of'; export * from './payment-method-cash-response'; -export * from './payment-method-cash-response-all-of'; +export * from './payment-method-general-request'; export * from './payment-method-response'; export * from './payment-method-spei-recurrent'; -export * from './payment-method-spei-recurrent-all-of'; export * from './payment-method-spei-request'; +export * from './payment-method-token-request'; +export * from './payout'; +export * from './payout-method'; +export * from './payout-order'; +export * from './payout-order-payouts-item'; +export * from './payout-order-response'; +export * from './payout-order-response-customer-info'; +export * from './payout-orders-response'; export * from './plan-request'; export * from './plan-response'; export * from './plan-update-request'; export * from './product'; export * from './product-data-response'; -export * from './product-data-response-all-of'; export * from './product-order-response'; -export * from './product-order-response-all-of'; -export * from './risk-rules'; export * from './risk-rules-data'; export * from './risk-rules-list'; export * from './shipping-order-response'; @@ -188,12 +159,10 @@ export * from './transfers-response'; export * from './update-customer'; export * from './update-customer-antifraud-info'; export * from './update-customer-fiscal-entities-response'; -export * from './update-customer-fiscal-entities-response-all-of'; export * from './update-customer-payment-methods-response'; export * from './update-order-discount-lines-request'; export * from './update-order-tax-request'; export * from './update-order-tax-response'; -export * from './update-order-tax-response-all-of'; export * from './update-payment-methods'; export * from './update-product'; export * from './webhook-key-create-response'; diff --git a/model/model-error.ts b/model/model-error.ts index 9ff1a32..c407f46 100644 --- a/model/model-error.ts +++ b/model/model-error.ts @@ -19,15 +19,12 @@ import { Details } from './details'; // May contain unused imports in some cases // @ts-ignore import { DetailsError } from './details-error'; -// May contain unused imports in some cases -// @ts-ignore -import { ErrorAllOf } from './error-all-of'; /** * @type ModelError * err model * @export */ -export type ModelError = Details & ErrorAllOf; +export type ModelError = Details; diff --git a/model/order-fiscal-entity-address-response-all-of.ts b/model/order-fiscal-entity-address-response-all-of.ts deleted file mode 100644 index acd9f4a..0000000 --- a/model/order-fiscal-entity-address-response-all-of.ts +++ /dev/null @@ -1,30 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Conekta API - * Conekta sdk - * - * The version of the OpenAPI document: 2.1.0 - * Contact: engineering@conekta.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface OrderFiscalEntityAddressResponseAllOf - */ -export interface OrderFiscalEntityAddressResponseAllOf { - /** - * - * @type {string} - * @memberof OrderFiscalEntityAddressResponseAllOf - */ - 'object'?: string; -} - diff --git a/model/order-fiscal-entity-address-response.ts b/model/order-fiscal-entity-address-response.ts index e509534..2679ce8 100644 --- a/model/order-fiscal-entity-address-response.ts +++ b/model/order-fiscal-entity-address-response.ts @@ -16,15 +16,12 @@ // May contain unused imports in some cases // @ts-ignore import { FiscalEntityAddress } from './fiscal-entity-address'; -// May contain unused imports in some cases -// @ts-ignore -import { OrderFiscalEntityAddressResponseAllOf } from './order-fiscal-entity-address-response-all-of'; /** * @type OrderFiscalEntityAddressResponse * Address of the fiscal entity * @export */ -export type OrderFiscalEntityAddressResponse = FiscalEntityAddress & OrderFiscalEntityAddressResponseAllOf; +export type OrderFiscalEntityAddressResponse = FiscalEntityAddress; diff --git a/model/order-refund-request.ts b/model/order-refund-request.ts index 72c3c8b..2435f37 100644 --- a/model/order-refund-request.ts +++ b/model/order-refund-request.ts @@ -21,7 +21,7 @@ */ export interface OrderRefundRequest { /** - * + * Amount to be refunded in cents * @type {number} * @memberof OrderRefundRequest */ @@ -31,9 +31,9 @@ export interface OrderRefundRequest { * @type {number} * @memberof OrderRefundRequest */ - 'expires_at'?: number | null; + 'expires_at'?: number; /** - * + * Reason for the refund * @type {string} * @memberof OrderRefundRequest */ diff --git a/model/order-request.ts b/model/order-request.ts index a4b13d6..204c16e 100644 --- a/model/order-request.ts +++ b/model/order-request.ts @@ -114,7 +114,7 @@ export interface OrderRequest { */ 'processing_mode'?: string; /** - * Indicates the redirection callback upon completion of the 3DS2 flow. + * Indicates the redirection callback upon completion of the 3DS2 flow. Do not use this parameter if your order has a checkout parameter * @type {string} * @memberof OrderRequest */ diff --git a/model/order-response-charges-all-of.ts b/model/order-response-charges-all-of.ts deleted file mode 100644 index 57110cc..0000000 --- a/model/order-response-charges-all-of.ts +++ /dev/null @@ -1,33 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Conekta API - * Conekta sdk - * - * The version of the OpenAPI document: 2.1.0 - * Contact: engineering@conekta.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { ChargesDataResponse } from './charges-data-response'; - -/** - * - * @export - * @interface OrderResponseChargesAllOf - */ -export interface OrderResponseChargesAllOf { - /** - * - * @type {Array} - * @memberof OrderResponseChargesAllOf - */ - 'data'?: Array; -} - diff --git a/model/order-response-charges.ts b/model/order-response-charges.ts index e5093e7..1caf3c5 100644 --- a/model/order-response-charges.ts +++ b/model/order-response-charges.ts @@ -18,9 +18,6 @@ import { ChargesDataResponse } from './charges-data-response'; // May contain unused imports in some cases // @ts-ignore -import { OrderResponseChargesAllOf } from './order-response-charges-all-of'; -// May contain unused imports in some cases -// @ts-ignore import { Pagination } from './pagination'; /** @@ -28,6 +25,6 @@ import { Pagination } from './pagination'; * The charges associated with the order * @export */ -export type OrderResponseCharges = OrderResponseChargesAllOf & Pagination; +export type OrderResponseCharges = Pagination; diff --git a/model/order-response-checkout.ts b/model/order-response-checkout.ts index 12e93f2..6e9d1c8 100644 --- a/model/order-response-checkout.ts +++ b/model/order-response-checkout.ts @@ -80,6 +80,12 @@ export interface OrderResponseCheckout { * @memberof OrderResponseCheckout */ 'livemode'?: boolean; + /** + * Number of retries allowed before the checkout is marked as failed + * @type {number} + * @memberof OrderResponseCheckout + */ + 'max_failed_retries'?: number | null; /** * * @type {{ [key: string]: any; }} @@ -134,6 +140,12 @@ export interface OrderResponseCheckout { * @memberof OrderResponseCheckout */ 'recurrent'?: boolean; + /** + * number of seconds to wait before redirecting to the success_url + * @type {number} + * @memberof OrderResponseCheckout + */ + 'redirection_time'?: number | null; /** * * @type {string} diff --git a/model/order-response-customer-info.ts b/model/order-response-customer-info.ts index 9cecf0c..0876b45 100644 --- a/model/order-response-customer-info.ts +++ b/model/order-response-customer-info.ts @@ -19,14 +19,11 @@ import { CustomerInfoJustCustomerIdResponse } from './customer-info-just-custome // May contain unused imports in some cases // @ts-ignore import { OrderCustomerInfoResponse } from './order-customer-info-response'; -// May contain unused imports in some cases -// @ts-ignore -import { OrderResponseCustomerInfoAllOf } from './order-response-customer-info-all-of'; /** * @type OrderResponseCustomerInfo * @export */ -export type OrderResponseCustomerInfo = CustomerInfoJustCustomerIdResponse & OrderCustomerInfoResponse & OrderResponseCustomerInfoAllOf; +export type OrderResponseCustomerInfo = CustomerInfoJustCustomerIdResponse & OrderCustomerInfoResponse; diff --git a/model/order-response-discount-lines-all-of.ts b/model/order-response-discount-lines-all-of.ts deleted file mode 100644 index f1b5e97..0000000 --- a/model/order-response-discount-lines-all-of.ts +++ /dev/null @@ -1,33 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Conekta API - * Conekta sdk - * - * The version of the OpenAPI document: 2.1.0 - * Contact: engineering@conekta.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { DiscountLinesDataResponse } from './discount-lines-data-response'; - -/** - * - * @export - * @interface OrderResponseDiscountLinesAllOf - */ -export interface OrderResponseDiscountLinesAllOf { - /** - * - * @type {Array} - * @memberof OrderResponseDiscountLinesAllOf - */ - 'data'?: Array; -} - diff --git a/model/order-response-discount-lines.ts b/model/order-response-discount-lines.ts index 5a28eea..a37bfe4 100644 --- a/model/order-response-discount-lines.ts +++ b/model/order-response-discount-lines.ts @@ -18,15 +18,12 @@ import { DiscountLinesDataResponse } from './discount-lines-data-response'; // May contain unused imports in some cases // @ts-ignore -import { OrderResponseDiscountLinesAllOf } from './order-response-discount-lines-all-of'; -// May contain unused imports in some cases -// @ts-ignore import { Pagination } from './pagination'; /** * @type OrderResponseDiscountLines * @export */ -export type OrderResponseDiscountLines = OrderResponseDiscountLinesAllOf & Pagination; +export type OrderResponseDiscountLines = Pagination; diff --git a/model/order-response-products-all-of.ts b/model/order-response-products-all-of.ts deleted file mode 100644 index f8f7ebc..0000000 --- a/model/order-response-products-all-of.ts +++ /dev/null @@ -1,33 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Conekta API - * Conekta sdk - * - * The version of the OpenAPI document: 2.1.0 - * Contact: engineering@conekta.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -// May contain unused imports in some cases -// @ts-ignore -import { ProductDataResponse } from './product-data-response'; - -/** - * - * @export - * @interface OrderResponseProductsAllOf - */ -export interface OrderResponseProductsAllOf { - /** - * - * @type {Array} - * @memberof OrderResponseProductsAllOf - */ - 'data'?: Array; -} - diff --git a/model/order-response-products.ts b/model/order-response-products.ts index 68b591a..7e3fb22 100644 --- a/model/order-response-products.ts +++ b/model/order-response-products.ts @@ -13,9 +13,6 @@ */ -// May contain unused imports in some cases -// @ts-ignore -import { OrderResponseProductsAllOf } from './order-response-products-all-of'; // May contain unused imports in some cases // @ts-ignore import { Page } from './page'; @@ -30,6 +27,6 @@ import { ProductDataResponse } from './product-data-response'; * @type OrderResponseProducts * @export */ -export type OrderResponseProducts = OrderResponseProductsAllOf & Page & Pagination; +export type OrderResponseProducts = Page & Pagination; diff --git a/model/order-response-shipping-contact-all-of.ts b/model/order-response-shipping-contact-all-of.ts deleted file mode 100644 index ed90e24..0000000 --- a/model/order-response-shipping-contact-all-of.ts +++ /dev/null @@ -1,42 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Conekta API - * Conekta sdk - * - * The version of the OpenAPI document: 2.1.0 - * Contact: engineering@conekta.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface OrderResponseShippingContactAllOf - */ -export interface OrderResponseShippingContactAllOf { - /** - * - * @type {number} - * @memberof OrderResponseShippingContactAllOf - */ - 'created_at'?: number; - /** - * - * @type {string} - * @memberof OrderResponseShippingContactAllOf - */ - 'id'?: string; - /** - * - * @type {string} - * @memberof OrderResponseShippingContactAllOf - */ - 'object'?: string; -} - diff --git a/model/order-response-shipping-contact.ts b/model/order-response-shipping-contact.ts index bb84860..0d3d644 100644 --- a/model/order-response-shipping-contact.ts +++ b/model/order-response-shipping-contact.ts @@ -19,14 +19,11 @@ import { CustomerShippingContactsResponse } from './customer-shipping-contacts-r // May contain unused imports in some cases // @ts-ignore import { CustomerShippingContactsResponseAddress } from './customer-shipping-contacts-response-address'; -// May contain unused imports in some cases -// @ts-ignore -import { OrderResponseShippingContactAllOf } from './order-response-shipping-contact-all-of'; /** * @type OrderResponseShippingContact * @export */ -export type OrderResponseShippingContact = CustomerShippingContactsResponse & OrderResponseShippingContactAllOf; +export type OrderResponseShippingContact = CustomerShippingContactsResponse; diff --git a/model/payment-method-bank-transfer.ts b/model/payment-method-bank-transfer.ts index 701db0d..32a273d 100644 --- a/model/payment-method-bank-transfer.ts +++ b/model/payment-method-bank-transfer.ts @@ -13,9 +13,6 @@ */ -// May contain unused imports in some cases -// @ts-ignore -import { ChargeDataPaymentMethodBankTransferResponse } from './charge-data-payment-method-bank-transfer-response'; // May contain unused imports in some cases // @ts-ignore import { PaymentMethod } from './payment-method'; @@ -24,6 +21,6 @@ import { PaymentMethod } from './payment-method'; * @type PaymentMethodBankTransfer * @export */ -export type PaymentMethodBankTransfer = ChargeDataPaymentMethodBankTransferResponse & PaymentMethod; +export type PaymentMethodBankTransfer = PaymentMethod; diff --git a/model/payment-method-card-request-all-of.ts b/model/payment-method-card-request-all-of.ts deleted file mode 100644 index e31499e..0000000 --- a/model/payment-method-card-request-all-of.ts +++ /dev/null @@ -1,30 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Conekta API - * Conekta sdk - * - * The version of the OpenAPI document: 2.1.0 - * Contact: engineering@conekta.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface PaymentMethodCardRequestAllOf - */ -export interface PaymentMethodCardRequestAllOf { - /** - * Token id that will be used to create a \"card\" type payment method. See the (subscriptions)[https://developers.conekta.com/v2.1.0/reference/createsubscription] tutorial for more information on how to tokenize cards. - * @type {string} - * @memberof PaymentMethodCardRequestAllOf - */ - 'token_id'?: string; -} - diff --git a/model/payment-method-card-request.ts b/model/payment-method-card-request.ts index f6c6152..8a179a5 100644 --- a/model/payment-method-card-request.ts +++ b/model/payment-method-card-request.ts @@ -16,14 +16,11 @@ // May contain unused imports in some cases // @ts-ignore import { CustomerPaymentMethodRequest } from './customer-payment-method-request'; -// May contain unused imports in some cases -// @ts-ignore -import { PaymentMethodCardRequestAllOf } from './payment-method-card-request-all-of'; /** * @type PaymentMethodCardRequest * @export */ -export type PaymentMethodCardRequest = CustomerPaymentMethodRequest & PaymentMethodCardRequestAllOf; +export type PaymentMethodCardRequest = CustomerPaymentMethodRequest; diff --git a/model/payment-method-card-response-all-of.ts b/model/payment-method-card-response-all-of.ts deleted file mode 100644 index 36a489d..0000000 --- a/model/payment-method-card-response-all-of.ts +++ /dev/null @@ -1,84 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Conekta API - * Conekta sdk - * - * The version of the OpenAPI document: 2.1.0 - * Contact: engineering@conekta.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * use for card responses - * @export - * @interface PaymentMethodCardResponseAllOf - */ -export interface PaymentMethodCardResponseAllOf { - /** - * - * @type {string} - * @memberof PaymentMethodCardResponseAllOf - */ - 'last4'?: string; - /** - * - * @type {string} - * @memberof PaymentMethodCardResponseAllOf - */ - 'bin'?: string; - /** - * - * @type {string} - * @memberof PaymentMethodCardResponseAllOf - */ - 'card_type'?: string; - /** - * - * @type {string} - * @memberof PaymentMethodCardResponseAllOf - */ - 'exp_month'?: string; - /** - * - * @type {string} - * @memberof PaymentMethodCardResponseAllOf - */ - 'exp_year'?: string; - /** - * - * @type {string} - * @memberof PaymentMethodCardResponseAllOf - */ - 'brand'?: string; - /** - * - * @type {string} - * @memberof PaymentMethodCardResponseAllOf - */ - 'name'?: string; - /** - * - * @type {boolean} - * @memberof PaymentMethodCardResponseAllOf - */ - 'default'?: boolean; - /** - * - * @type {boolean} - * @memberof PaymentMethodCardResponseAllOf - */ - 'visible_on_checkout'?: boolean; - /** - * - * @type {string} - * @memberof PaymentMethodCardResponseAllOf - */ - 'payment_source_status'?: string; -} - diff --git a/model/payment-method-card-response.ts b/model/payment-method-card-response.ts index 19542cd..ac95463 100644 --- a/model/payment-method-card-response.ts +++ b/model/payment-method-card-response.ts @@ -13,9 +13,6 @@ */ -// May contain unused imports in some cases -// @ts-ignore -import { PaymentMethodCardResponseAllOf } from './payment-method-card-response-all-of'; // May contain unused imports in some cases // @ts-ignore import { PaymentMethodResponse } from './payment-method-response'; @@ -24,6 +21,6 @@ import { PaymentMethodResponse } from './payment-method-response'; * @type PaymentMethodCardResponse * @export */ -export type PaymentMethodCardResponse = PaymentMethodCardResponseAllOf & PaymentMethodResponse; +export type PaymentMethodCardResponse = PaymentMethodResponse; diff --git a/model/payment-method-card.ts b/model/payment-method-card.ts index 6c95e72..5c8cbb0 100644 --- a/model/payment-method-card.ts +++ b/model/payment-method-card.ts @@ -13,9 +13,6 @@ */ -// May contain unused imports in some cases -// @ts-ignore -import { ChargeDataPaymentMethodCardResponse } from './charge-data-payment-method-card-response'; // May contain unused imports in some cases // @ts-ignore import { PaymentMethod } from './payment-method'; @@ -24,6 +21,6 @@ import { PaymentMethod } from './payment-method'; * @type PaymentMethodCard * @export */ -export type PaymentMethodCard = ChargeDataPaymentMethodCardResponse & PaymentMethod; +export type PaymentMethodCard = PaymentMethod; diff --git a/model/payment-method-cash-request-all-of.ts b/model/payment-method-cash-request-all-of.ts deleted file mode 100644 index 0cef720..0000000 --- a/model/payment-method-cash-request-all-of.ts +++ /dev/null @@ -1,30 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Conekta API - * Conekta sdk - * - * The version of the OpenAPI document: 2.1.0 - * Contact: engineering@conekta.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface PaymentMethodCashRequestAllOf - */ -export interface PaymentMethodCashRequestAllOf { - /** - * - * @type {number} - * @memberof PaymentMethodCashRequestAllOf - */ - 'expires_at'?: number; -} - diff --git a/model/payment-method-cash-request.ts b/model/payment-method-cash-request.ts index c32c846..3541f7d 100644 --- a/model/payment-method-cash-request.ts +++ b/model/payment-method-cash-request.ts @@ -16,14 +16,11 @@ // May contain unused imports in some cases // @ts-ignore import { CustomerPaymentMethodRequest } from './customer-payment-method-request'; -// May contain unused imports in some cases -// @ts-ignore -import { PaymentMethodCashRequestAllOf } from './payment-method-cash-request-all-of'; /** * @type PaymentMethodCashRequest * @export */ -export type PaymentMethodCashRequest = CustomerPaymentMethodRequest & PaymentMethodCashRequestAllOf; +export type PaymentMethodCashRequest = CustomerPaymentMethodRequest; diff --git a/model/payment-method-cash-response-all-of.ts b/model/payment-method-cash-response-all-of.ts deleted file mode 100644 index 0b022b1..0000000 --- a/model/payment-method-cash-response-all-of.ts +++ /dev/null @@ -1,54 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Conekta API - * Conekta sdk - * - * The version of the OpenAPI document: 2.1.0 - * Contact: engineering@conekta.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * use for cash responses - * @export - * @interface PaymentMethodCashResponseAllOf - */ -export interface PaymentMethodCashResponseAllOf { - /** - * - * @type {string} - * @memberof PaymentMethodCashResponseAllOf - */ - 'reference'?: string; - /** - * - * @type {string} - * @memberof PaymentMethodCashResponseAllOf - */ - 'barcode'?: string; - /** - * - * @type {string} - * @memberof PaymentMethodCashResponseAllOf - */ - 'barcode_url'?: string; - /** - * - * @type {number} - * @memberof PaymentMethodCashResponseAllOf - */ - 'expires_at'?: number; - /** - * - * @type {string} - * @memberof PaymentMethodCashResponseAllOf - */ - 'provider'?: string; -} - diff --git a/model/payment-method-cash-response.ts b/model/payment-method-cash-response.ts index 976a104..cee6912 100644 --- a/model/payment-method-cash-response.ts +++ b/model/payment-method-cash-response.ts @@ -13,9 +13,6 @@ */ -// May contain unused imports in some cases -// @ts-ignore -import { PaymentMethodCashResponseAllOf } from './payment-method-cash-response-all-of'; // May contain unused imports in some cases // @ts-ignore import { PaymentMethodResponse } from './payment-method-response'; @@ -24,6 +21,6 @@ import { PaymentMethodResponse } from './payment-method-response'; * @type PaymentMethodCashResponse * @export */ -export type PaymentMethodCashResponse = PaymentMethodCashResponseAllOf & PaymentMethodResponse; +export type PaymentMethodCashResponse = PaymentMethodResponse; diff --git a/model/payment-method-cash.ts b/model/payment-method-cash.ts index aab3053..cd1626c 100644 --- a/model/payment-method-cash.ts +++ b/model/payment-method-cash.ts @@ -13,9 +13,6 @@ */ -// May contain unused imports in some cases -// @ts-ignore -import { ChargeDataPaymentMethodCashResponse } from './charge-data-payment-method-cash-response'; // May contain unused imports in some cases // @ts-ignore import { PaymentMethod } from './payment-method'; @@ -24,6 +21,6 @@ import { PaymentMethod } from './payment-method'; * @type PaymentMethodCash * @export */ -export type PaymentMethodCash = ChargeDataPaymentMethodCashResponse & PaymentMethod; +export type PaymentMethodCash = PaymentMethod; diff --git a/model/payment-method-general-request.ts b/model/payment-method-general-request.ts new file mode 100644 index 0000000..8f156cf --- /dev/null +++ b/model/payment-method-general-request.ts @@ -0,0 +1,72 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Conekta API + * Conekta sdk + * + * The version of the OpenAPI document: 2.1.0 + * Contact: engineering@conekta.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * Payment method used in the charge. Go to the [payment methods](https://developers.conekta.com/reference/m%C3%A9todos-de-pago) section for more details + * @export + * @interface PaymentMethodGeneralRequest + */ +export interface PaymentMethodGeneralRequest { + /** + * Method expiration date as unix timestamp + * @type {number} + * @memberof PaymentMethodGeneralRequest + */ + 'expires_at'?: number; + /** + * How many months without interest to apply, it can be 3, 6, 9, 12 or 18 + * @type {number} + * @memberof PaymentMethodGeneralRequest + */ + 'monthly_installments'?: number; + /** + * Type of payment method + * @type {string} + * @memberof PaymentMethodGeneralRequest + */ + 'type': string; + /** + * + * @type {string} + * @memberof PaymentMethodGeneralRequest + */ + 'token_id'?: string; + /** + * + * @type {string} + * @memberof PaymentMethodGeneralRequest + */ + 'payment_source_id'?: string; + /** + * Optional, It is a value that allows identifying the security code of the card. Only for PCI merchants + * @type {string} + * @memberof PaymentMethodGeneralRequest + */ + 'cvc'?: string; + /** + * Optional id sent to indicate the bank contract for recurrent card charges. + * @type {string} + * @memberof PaymentMethodGeneralRequest + */ + 'contract_id'?: string; + /** + * Optional field used to capture the customer\'s IP address for fraud prevention and security monitoring purposes + * @type {string} + * @memberof PaymentMethodGeneralRequest + */ + 'customer_ip_address'?: string; +} + diff --git a/model/payment-method-spei-recurrent-all-of.ts b/model/payment-method-spei-recurrent-all-of.ts deleted file mode 100644 index 4b1f45d..0000000 --- a/model/payment-method-spei-recurrent-all-of.ts +++ /dev/null @@ -1,36 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Conekta API - * Conekta sdk - * - * The version of the OpenAPI document: 2.1.0 - * Contact: engineering@conekta.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * use for spei responses - * @export - * @interface PaymentMethodSpeiRecurrentAllOf - */ -export interface PaymentMethodSpeiRecurrentAllOf { - /** - * - * @type {string} - * @memberof PaymentMethodSpeiRecurrentAllOf - */ - 'reference'?: string; - /** - * - * @type {string} - * @memberof PaymentMethodSpeiRecurrentAllOf - */ - 'expires_at'?: string; -} - diff --git a/model/payment-method-spei-recurrent.ts b/model/payment-method-spei-recurrent.ts index a7f92e2..55e79f5 100644 --- a/model/payment-method-spei-recurrent.ts +++ b/model/payment-method-spei-recurrent.ts @@ -16,14 +16,11 @@ // May contain unused imports in some cases // @ts-ignore import { PaymentMethodResponse } from './payment-method-response'; -// May contain unused imports in some cases -// @ts-ignore -import { PaymentMethodSpeiRecurrentAllOf } from './payment-method-spei-recurrent-all-of'; /** * @type PaymentMethodSpeiRecurrent * @export */ -export type PaymentMethodSpeiRecurrent = PaymentMethodResponse & PaymentMethodSpeiRecurrentAllOf; +export type PaymentMethodSpeiRecurrent = PaymentMethodResponse; diff --git a/model/payment-method-spei-request.ts b/model/payment-method-spei-request.ts index eb339b2..ef9d1fb 100644 --- a/model/payment-method-spei-request.ts +++ b/model/payment-method-spei-request.ts @@ -16,14 +16,11 @@ // May contain unused imports in some cases // @ts-ignore import { CustomerPaymentMethodRequest } from './customer-payment-method-request'; -// May contain unused imports in some cases -// @ts-ignore -import { PaymentMethodCashRequestAllOf } from './payment-method-cash-request-all-of'; /** * @type PaymentMethodSpeiRequest * @export */ -export type PaymentMethodSpeiRequest = CustomerPaymentMethodRequest & PaymentMethodCashRequestAllOf; +export type PaymentMethodSpeiRequest = CustomerPaymentMethodRequest; diff --git a/model/customer-fiscal-entities-request-address.ts b/model/payment-method-token-request.ts similarity index 68% rename from model/customer-fiscal-entities-request-address.ts rename to model/payment-method-token-request.ts index ca64589..26d18ba 100644 --- a/model/customer-fiscal-entities-request-address.ts +++ b/model/payment-method-token-request.ts @@ -15,12 +15,12 @@ // May contain unused imports in some cases // @ts-ignore -import { CustomerAddress } from './customer-address'; +import { CustomerPaymentMethodRequest } from './customer-payment-method-request'; /** - * @type CustomerFiscalEntitiesRequestAddress + * @type PaymentMethodTokenRequest * @export */ -export type CustomerFiscalEntitiesRequestAddress = CustomerAddress; +export type PaymentMethodTokenRequest = CustomerPaymentMethodRequest; diff --git a/model/order-response-customer-info-all-of.ts b/model/payout-method.ts similarity index 67% rename from model/order-response-customer-info-all-of.ts rename to model/payout-method.ts index f88ec75..295f4dc 100644 --- a/model/order-response-customer-info-all-of.ts +++ b/model/payout-method.ts @@ -15,16 +15,16 @@ /** - * + * The payout method of the payout order. * @export - * @interface OrderResponseCustomerInfoAllOf + * @interface PayoutMethod */ -export interface OrderResponseCustomerInfoAllOf { +export interface PayoutMethod { /** - * + * The type of the payout method. * @type {string} - * @memberof OrderResponseCustomerInfoAllOf + * @memberof PayoutMethod */ - 'object'?: string; + 'type': string; } diff --git a/model/payout-order-payouts-item.ts b/model/payout-order-payouts-item.ts new file mode 100644 index 0000000..c2086cf --- /dev/null +++ b/model/payout-order-payouts-item.ts @@ -0,0 +1,72 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Conekta API + * Conekta sdk + * + * The version of the OpenAPI document: 2.1.0 + * Contact: engineering@conekta.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface PayoutOrderPayoutsItem + */ +export interface PayoutOrderPayoutsItem { + /** + * The amount of the payout. + * @type {number} + * @memberof PayoutOrderPayoutsItem + */ + 'amount': number; + /** + * The currency in which the payout is made. + * @type {string} + * @memberof PayoutOrderPayoutsItem + */ + 'currency': string; + /** + * The expiration date of the payout. + * @type {number} + * @memberof PayoutOrderPayoutsItem + */ + 'expires_at'?: number; + /** + * The id of the payout. + * @type {string} + * @memberof PayoutOrderPayoutsItem + */ + 'id': string; + /** + * The live mode of the payout. + * @type {boolean} + * @memberof PayoutOrderPayoutsItem + */ + 'livemode': boolean; + /** + * The object of the payout. + * @type {string} + * @memberof PayoutOrderPayoutsItem + */ + 'object': string; + /** + * The id of the payout order. + * @type {string} + * @memberof PayoutOrderPayoutsItem + */ + 'payout_order_id'?: string; + /** + * The status of the payout. + * @type {string} + * @memberof PayoutOrderPayoutsItem + */ + 'status'?: string; +} + diff --git a/model/get-plans-response-all-of.ts b/model/payout-order-response-customer-info.ts similarity index 60% rename from model/get-plans-response-all-of.ts rename to model/payout-order-response-customer-info.ts index 7bef141..52b7a58 100644 --- a/model/get-plans-response-all-of.ts +++ b/model/payout-order-response-customer-info.ts @@ -15,19 +15,13 @@ // May contain unused imports in some cases // @ts-ignore -import { PlanResponse } from './plan-response'; +import { OrderCustomerInfoResponse } from './order-customer-info-response'; /** - * + * @type PayoutOrderResponseCustomerInfo + * The customer information of the payout order. * @export - * @interface GetPlansResponseAllOf */ -export interface GetPlansResponseAllOf { - /** - * - * @type {Array} - * @memberof GetPlansResponseAllOf - */ - 'data'?: Array; -} +export type PayoutOrderResponseCustomerInfo = OrderCustomerInfoResponse; + diff --git a/model/payout-order-response.ts b/model/payout-order-response.ts new file mode 100644 index 0000000..d9b5e3e --- /dev/null +++ b/model/payout-order-response.ts @@ -0,0 +1,114 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Conekta API + * Conekta sdk + * + * The version of the OpenAPI document: 2.1.0 + * Contact: engineering@conekta.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { PayoutOrderPayoutsItem } from './payout-order-payouts-item'; +// May contain unused imports in some cases +// @ts-ignore +import { PayoutOrderResponseCustomerInfo } from './payout-order-response-customer-info'; + +/** + * payout order model response + * @export + * @interface PayoutOrderResponse + */ +export interface PayoutOrderResponse { + /** + * The payout methods that are allowed for the payout order. + * @type {Array} + * @memberof PayoutOrderResponse + */ + 'allowed_payout_methods': Array; + /** + * The amount of the payout order. + * @type {number} + * @memberof PayoutOrderResponse + */ + 'amount': number; + /** + * The creation date of the payout order. + * @type {number} + * @memberof PayoutOrderResponse + */ + 'created_at': number; + /** + * The currency in which the payout order is made. + * @type {string} + * @memberof PayoutOrderResponse + */ + 'currency': string; + /** + * + * @type {PayoutOrderResponseCustomerInfo} + * @memberof PayoutOrderResponse + */ + 'customer_info': PayoutOrderResponseCustomerInfo; + /** + * The expiration date of the payout order. + * @type {number} + * @memberof PayoutOrderResponse + */ + 'expires_at'?: number; + /** + * The id of the payout order. + * @type {string} + * @memberof PayoutOrderResponse + */ + 'id': string; + /** + * The live mode of the payout order. + * @type {boolean} + * @memberof PayoutOrderResponse + */ + 'livemode': boolean; + /** + * The object of the payout order. + * @type {string} + * @memberof PayoutOrderResponse + */ + 'object': string; + /** + * The metadata of the payout order. + * @type {{ [key: string]: any; }} + * @memberof PayoutOrderResponse + */ + 'metadata'?: { [key: string]: any; }; + /** + * The payout information of the payout order. + * @type {Array} + * @memberof PayoutOrderResponse + */ + 'payouts': Array; + /** + * The reason for the payout order. + * @type {string} + * @memberof PayoutOrderResponse + */ + 'reason': string; + /** + * The status of the payout order. + * @type {string} + * @memberof PayoutOrderResponse + */ + 'status'?: string; + /** + * The update date of the payout order. + * @type {number} + * @memberof PayoutOrderResponse + */ + 'updated_at': number; +} + diff --git a/model/payout-order.ts b/model/payout-order.ts new file mode 100644 index 0000000..febcd1a --- /dev/null +++ b/model/payout-order.ts @@ -0,0 +1,72 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Conekta API + * Conekta sdk + * + * The version of the OpenAPI document: 2.1.0 + * Contact: engineering@conekta.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { CustomerInfoJustCustomerId } from './customer-info-just-customer-id'; +// May contain unused imports in some cases +// @ts-ignore +import { Payout } from './payout'; + +/** + * a payout order + * @export + * @interface PayoutOrder + */ +export interface PayoutOrder { + /** + * The payout methods that are allowed for the payout order. + * @type {Array} + * @memberof PayoutOrder + */ + 'allowed_payout_methods': Array; + /** + * The amount of the payout order. + * @type {number} + * @memberof PayoutOrder + */ + 'amount': number; + /** + * The currency in which the payout order is made. + * @type {string} + * @memberof PayoutOrder + */ + 'currency': string; + /** + * + * @type {CustomerInfoJustCustomerId} + * @memberof PayoutOrder + */ + 'customer_info': CustomerInfoJustCustomerId; + /** + * The metadata of the payout order. + * @type {{ [key: string]: any; }} + * @memberof PayoutOrder + */ + 'metadata'?: { [key: string]: any; }; + /** + * + * @type {Payout} + * @memberof PayoutOrder + */ + 'payout': Payout; + /** + * The reason for the payout order. + * @type {string} + * @memberof PayoutOrder + */ + 'reason': string; +} + diff --git a/model/get-transactions-response-all-of.ts b/model/payout-orders-response.ts similarity index 55% rename from model/get-transactions-response-all-of.ts rename to model/payout-orders-response.ts index 16cbe9b..57e2b3b 100644 --- a/model/get-transactions-response-all-of.ts +++ b/model/payout-orders-response.ts @@ -15,19 +15,18 @@ // May contain unused imports in some cases // @ts-ignore -import { TransactionResponse } from './transaction-response'; +import { Page } from './page'; +// May contain unused imports in some cases +// @ts-ignore +import { Pagination } from './pagination'; +// May contain unused imports in some cases +// @ts-ignore +import { PayoutOrderResponse } from './payout-order-response'; /** - * + * @type PayoutOrdersResponse * @export - * @interface GetTransactionsResponseAllOf */ -export interface GetTransactionsResponseAllOf { - /** - * Transactions - * @type {Array} - * @memberof GetTransactionsResponseAllOf - */ - 'data'?: Array; -} +export type PayoutOrdersResponse = Page & Pagination; + diff --git a/model/risk-rules.ts b/model/payout.ts similarity index 65% rename from model/risk-rules.ts rename to model/payout.ts index 1dfc904..d832b11 100644 --- a/model/risk-rules.ts +++ b/model/payout.ts @@ -15,19 +15,19 @@ // May contain unused imports in some cases // @ts-ignore -import { RiskRulesData } from './risk-rules-data'; +import { PayoutMethod } from './payout-method'; /** - * + * The payout information of the payout order. * @export - * @interface RiskRules + * @interface Payout */ -export interface RiskRules { +export interface Payout { /** * - * @type {Array} - * @memberof RiskRules + * @type {PayoutMethod} + * @memberof Payout */ - 'data'?: Array; + 'payout_method': PayoutMethod; } diff --git a/model/product-data-response-all-of.ts b/model/product-data-response-all-of.ts deleted file mode 100644 index 3cb473c..0000000 --- a/model/product-data-response-all-of.ts +++ /dev/null @@ -1,42 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Conekta API - * Conekta sdk - * - * The version of the OpenAPI document: 2.1.0 - * Contact: engineering@conekta.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface ProductDataResponseAllOf - */ -export interface ProductDataResponseAllOf { - /** - * - * @type {string} - * @memberof ProductDataResponseAllOf - */ - 'id'?: string; - /** - * - * @type {string} - * @memberof ProductDataResponseAllOf - */ - 'object'?: string; - /** - * - * @type {string} - * @memberof ProductDataResponseAllOf - */ - 'parent_id'?: string; -} - diff --git a/model/product-data-response.ts b/model/product-data-response.ts index 2fc293f..bb06929 100644 --- a/model/product-data-response.ts +++ b/model/product-data-response.ts @@ -16,14 +16,11 @@ // May contain unused imports in some cases // @ts-ignore import { Product } from './product'; -// May contain unused imports in some cases -// @ts-ignore -import { ProductDataResponseAllOf } from './product-data-response-all-of'; /** * @type ProductDataResponse * @export */ -export type ProductDataResponse = Product & ProductDataResponseAllOf; +export type ProductDataResponse = Product; diff --git a/model/product-order-response-all-of.ts b/model/product-order-response-all-of.ts deleted file mode 100644 index ba24e06..0000000 --- a/model/product-order-response-all-of.ts +++ /dev/null @@ -1,42 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Conekta API - * Conekta sdk - * - * The version of the OpenAPI document: 2.1.0 - * Contact: engineering@conekta.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface ProductOrderResponseAllOf - */ -export interface ProductOrderResponseAllOf { - /** - * - * @type {string} - * @memberof ProductOrderResponseAllOf - */ - 'id'?: string; - /** - * - * @type {string} - * @memberof ProductOrderResponseAllOf - */ - 'object'?: string; - /** - * - * @type {string} - * @memberof ProductOrderResponseAllOf - */ - 'parent_id'?: string; -} - diff --git a/model/product-order-response.ts b/model/product-order-response.ts index 4a1b4fd..5d05309 100644 --- a/model/product-order-response.ts +++ b/model/product-order-response.ts @@ -16,14 +16,11 @@ // May contain unused imports in some cases // @ts-ignore import { Product } from './product'; -// May contain unused imports in some cases -// @ts-ignore -import { ProductOrderResponseAllOf } from './product-order-response-all-of'; /** * @type ProductOrderResponse * @export */ -export type ProductOrderResponse = Product & ProductOrderResponseAllOf; +export type ProductOrderResponse = Product; diff --git a/model/product.ts b/model/product.ts index 8203fa5..7861444 100644 --- a/model/product.ts +++ b/model/product.ts @@ -40,10 +40,10 @@ export interface Product { 'description'?: string; /** * It is a key/value hash that can hold custom fields. Maximum 100 elements and allows special characters. - * @type {{ [key: string]: string; }} + * @type {{ [key: string]: any; }} * @memberof Product */ - 'metadata'?: { [key: string]: string; }; + 'metadata'?: { [key: string]: any; }; /** * The name of the item. It will be displayed in the order. * @type {string} diff --git a/model/risk-rules-list.ts b/model/risk-rules-list.ts index ca42255..336dd02 100644 --- a/model/risk-rules-list.ts +++ b/model/risk-rules-list.ts @@ -21,15 +21,12 @@ import { Page } from './page'; import { Pagination } from './pagination'; // May contain unused imports in some cases // @ts-ignore -import { RiskRules } from './risk-rules'; -// May contain unused imports in some cases -// @ts-ignore import { RiskRulesData } from './risk-rules-data'; /** * @type RiskRulesList * @export */ -export type RiskRulesList = Page & Pagination & RiskRules; +export type RiskRulesList = Page & Pagination; diff --git a/model/shipping-order-response.ts b/model/shipping-order-response.ts index f62339a..859adaf 100644 --- a/model/shipping-order-response.ts +++ b/model/shipping-order-response.ts @@ -13,9 +13,6 @@ */ -// May contain unused imports in some cases -// @ts-ignore -import { ProductOrderResponseAllOf } from './product-order-response-all-of'; // May contain unused imports in some cases // @ts-ignore import { ShippingRequest } from './shipping-request'; @@ -24,6 +21,6 @@ import { ShippingRequest } from './shipping-request'; * @type ShippingOrderResponse * @export */ -export type ShippingOrderResponse = ProductOrderResponseAllOf & ShippingRequest; +export type ShippingOrderResponse = ShippingRequest; diff --git a/model/subscription-events-response.ts b/model/subscription-events-response.ts index 3b51fb6..3e139a3 100644 --- a/model/subscription-events-response.ts +++ b/model/subscription-events-response.ts @@ -18,9 +18,6 @@ import { EventResponse } from './event-response'; // May contain unused imports in some cases // @ts-ignore -import { GetEventsResponseAllOf } from './get-events-response-all-of'; -// May contain unused imports in some cases -// @ts-ignore import { Page } from './page'; // May contain unused imports in some cases // @ts-ignore @@ -30,6 +27,6 @@ import { Pagination } from './pagination'; * @type SubscriptionEventsResponse * @export */ -export type SubscriptionEventsResponse = GetEventsResponseAllOf & Page & Pagination; +export type SubscriptionEventsResponse = Page & Pagination; diff --git a/model/subscription-response.ts b/model/subscription-response.ts index 1cb0b6c..3bebc6a 100644 --- a/model/subscription-response.ts +++ b/model/subscription-response.ts @@ -38,6 +38,12 @@ export interface SubscriptionResponse { * @memberof SubscriptionResponse */ 'canceled_at'?: number | null; + /** + * Reason for cancellation. This field appears when the subscription status is \'canceled\'. + * @type {string} + * @memberof SubscriptionResponse + */ + 'canceled_reason'?: string; /** * * @type {string} diff --git a/model/update-customer-fiscal-entities-response-all-of.ts b/model/update-customer-fiscal-entities-response-all-of.ts deleted file mode 100644 index e5abe8e..0000000 --- a/model/update-customer-fiscal-entities-response-all-of.ts +++ /dev/null @@ -1,54 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Conekta API - * Conekta sdk - * - * The version of the OpenAPI document: 2.1.0 - * Contact: engineering@conekta.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface UpdateCustomerFiscalEntitiesResponseAllOf - */ -export interface UpdateCustomerFiscalEntitiesResponseAllOf { - /** - * - * @type {string} - * @memberof UpdateCustomerFiscalEntitiesResponseAllOf - */ - 'id': string; - /** - * - * @type {string} - * @memberof UpdateCustomerFiscalEntitiesResponseAllOf - */ - 'object': string; - /** - * - * @type {number} - * @memberof UpdateCustomerFiscalEntitiesResponseAllOf - */ - 'created_at': number; - /** - * - * @type {string} - * @memberof UpdateCustomerFiscalEntitiesResponseAllOf - */ - 'parent_id'?: string; - /** - * - * @type {boolean} - * @memberof UpdateCustomerFiscalEntitiesResponseAllOf - */ - 'default'?: boolean; -} - diff --git a/model/update-customer-fiscal-entities-response.ts b/model/update-customer-fiscal-entities-response.ts index f1b90a2..9514207 100644 --- a/model/update-customer-fiscal-entities-response.ts +++ b/model/update-customer-fiscal-entities-response.ts @@ -15,18 +15,15 @@ // May contain unused imports in some cases // @ts-ignore -import { CustomerFiscalEntitiesRequest } from './customer-fiscal-entities-request'; -// May contain unused imports in some cases -// @ts-ignore -import { CustomerFiscalEntitiesRequestAddress } from './customer-fiscal-entities-request-address'; +import { CustomerAddress } from './customer-address'; // May contain unused imports in some cases // @ts-ignore -import { UpdateCustomerFiscalEntitiesResponseAllOf } from './update-customer-fiscal-entities-response-all-of'; +import { CustomerFiscalEntitiesRequest } from './customer-fiscal-entities-request'; /** * @type UpdateCustomerFiscalEntitiesResponse * @export */ -export type UpdateCustomerFiscalEntitiesResponse = CustomerFiscalEntitiesRequest & UpdateCustomerFiscalEntitiesResponseAllOf; +export type UpdateCustomerFiscalEntitiesResponse = CustomerFiscalEntitiesRequest; diff --git a/model/update-customer.ts b/model/update-customer.ts index 63d0459..4660b5a 100644 --- a/model/update-customer.ts +++ b/model/update-customer.ts @@ -41,6 +41,12 @@ export interface UpdateCustomer { * @memberof UpdateCustomer */ 'antifraud_info'?: UpdateCustomerAntifraudInfo | null; + /** + * It is a parameter that allows to identify the date of birth of the client. + * @type {string} + * @memberof UpdateCustomer + */ + 'date_of_birth'?: string; /** * It is a parameter that allows to identify in the response, the Conekta ID of a payment method (payment_id) * @type {string} @@ -101,6 +107,12 @@ export interface UpdateCustomer { * @memberof UpdateCustomer */ 'metadata'?: { [key: string]: any; }; + /** + * It is a parameter that allows to identify the national identification number of the client. + * @type {string} + * @memberof UpdateCustomer + */ + 'national_id'?: string; /** * Contains details of the payment methods that the customer has active or has used in Conekta * @type {Array} diff --git a/model/update-order-tax-response-all-of.ts b/model/update-order-tax-response-all-of.ts deleted file mode 100644 index 029b52b..0000000 --- a/model/update-order-tax-response-all-of.ts +++ /dev/null @@ -1,42 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Conekta API - * Conekta sdk - * - * The version of the OpenAPI document: 2.1.0 - * Contact: engineering@conekta.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface UpdateOrderTaxResponseAllOf - */ -export interface UpdateOrderTaxResponseAllOf { - /** - * - * @type {string} - * @memberof UpdateOrderTaxResponseAllOf - */ - 'id'?: string; - /** - * - * @type {string} - * @memberof UpdateOrderTaxResponseAllOf - */ - 'object'?: string; - /** - * - * @type {string} - * @memberof UpdateOrderTaxResponseAllOf - */ - 'parent_id'?: string; -} - diff --git a/model/update-order-tax-response.ts b/model/update-order-tax-response.ts index 5acebaf..cefbd3d 100644 --- a/model/update-order-tax-response.ts +++ b/model/update-order-tax-response.ts @@ -16,15 +16,12 @@ // May contain unused imports in some cases // @ts-ignore import { OrderTaxRequest } from './order-tax-request'; -// May contain unused imports in some cases -// @ts-ignore -import { UpdateOrderTaxResponseAllOf } from './update-order-tax-response-all-of'; /** * @type UpdateOrderTaxResponse * create new taxes for an existing order response * @export */ -export type UpdateOrderTaxResponse = OrderTaxRequest & UpdateOrderTaxResponseAllOf; +export type UpdateOrderTaxResponse = OrderTaxRequest; diff --git a/package.json b/package.json index 441142c..f29945c 100644 --- a/package.json +++ b/package.json @@ -42,7 +42,7 @@ "axios": "1.7.8" }, "devDependencies": { - "@types/node": "^22.0.2", + "@types/node": "^20.11.7", "typescript": "^5.4", "@types/jest": "^29.5.11", "jest": "^29.7.0",