@jogolabs/billing-sdk-v2 0.0.1 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (74) hide show
  1. package/dist/billing/src/__generated__/Billing.d.ts +2 -6
  2. package/dist/billing/src/__generated__/Billing.js +3 -9
  3. package/dist/billing/src/__generated__/index.d.ts +1 -19
  4. package/dist/billing/src/__generated__/index.js +3 -33
  5. package/dist/billing/src/__generated__/models/CreateMerchantRequest.d.ts +4 -1
  6. package/dist/billing/src/__generated__/models/CreateSubscriptionRequest.d.ts +7 -1
  7. package/dist/billing/src/__generated__/models/Merchant.d.ts +2 -2
  8. package/dist/billing/src/__generated__/models/Package.d.ts +4 -1
  9. package/dist/billing/src/__generated__/models/Payment.d.ts +4 -1
  10. package/dist/billing/src/__generated__/models/SavedCard.d.ts +4 -1
  11. package/dist/billing/src/__generated__/models/Subscription.d.ts +13 -6
  12. package/dist/billing/src/__generated__/models/Subscription.js +2 -2
  13. package/dist/billing/src/__generated__/models/TokenizeCardRequest.d.ts +4 -1
  14. package/dist/billing/src/__generated__/schemas/$CreateMerchantRequest.d.ts +2 -1
  15. package/dist/billing/src/__generated__/schemas/$CreateMerchantRequest.js +2 -1
  16. package/dist/billing/src/__generated__/schemas/$CreateSubscriptionRequest.d.ts +3 -1
  17. package/dist/billing/src/__generated__/schemas/$CreateSubscriptionRequest.js +3 -1
  18. package/dist/billing/src/__generated__/schemas/$Merchant.d.ts +2 -2
  19. package/dist/billing/src/__generated__/schemas/$Merchant.js +2 -2
  20. package/dist/billing/src/__generated__/schemas/$Package.d.ts +2 -1
  21. package/dist/billing/src/__generated__/schemas/$Package.js +2 -1
  22. package/dist/billing/src/__generated__/schemas/$Payment.d.ts +2 -1
  23. package/dist/billing/src/__generated__/schemas/$Payment.js +2 -1
  24. package/dist/billing/src/__generated__/schemas/$SavedCard.d.ts +2 -1
  25. package/dist/billing/src/__generated__/schemas/$SavedCard.js +2 -1
  26. package/dist/billing/src/__generated__/schemas/$Subscription.d.ts +15 -12
  27. package/dist/billing/src/__generated__/schemas/$Subscription.js +15 -12
  28. package/dist/billing/src/__generated__/schemas/$TokenizeCardRequest.d.ts +2 -1
  29. package/dist/billing/src/__generated__/schemas/$TokenizeCardRequest.js +2 -1
  30. package/dist/billing/src/__generated__/services/CardsService.d.ts +3 -3
  31. package/dist/billing/src/__generated__/services/CardsService.js +3 -3
  32. package/dist/billing/src/__generated__/services/MerchantsService.d.ts +5 -5
  33. package/dist/billing/src/__generated__/services/MerchantsService.js +7 -7
  34. package/dist/billing/src/__generated__/services/PackagesService.d.ts +11 -11
  35. package/dist/billing/src/__generated__/services/PackagesService.js +15 -15
  36. package/dist/billing/src/__generated__/services/PaymentsService.d.ts +4 -4
  37. package/dist/billing/src/__generated__/services/PaymentsService.js +4 -4
  38. package/dist/billing/src/__generated__/services/SubscriptionsService.d.ts +1 -1
  39. package/dist/billing/src/__generated__/services/SubscriptionsService.js +1 -1
  40. package/dist/billing/src/__generated__/services/WebhooksService.d.ts +29 -0
  41. package/dist/billing/src/__generated__/services/WebhooksService.js +26 -0
  42. package/package.json +1 -1
  43. package/src/billing/src/__generated__/Billing.ts +3 -9
  44. package/src/billing/src/__generated__/index.ts +1 -19
  45. package/src/billing/src/__generated__/models/CreateSubscriptionRequest.ts +7 -1
  46. package/src/billing/src/__generated__/models/SavedCard.ts +4 -1
  47. package/src/billing/src/__generated__/models/Subscription.ts +13 -6
  48. package/src/billing/src/__generated__/models/TokenizeCardRequest.ts +4 -1
  49. package/src/billing/src/__generated__/schemas/$CreateSubscriptionRequest.ts +3 -1
  50. package/src/billing/src/__generated__/schemas/$SavedCard.ts +2 -1
  51. package/src/billing/src/__generated__/schemas/$Subscription.ts +15 -12
  52. package/src/billing/src/__generated__/schemas/$TokenizeCardRequest.ts +2 -1
  53. package/src/billing/src/__generated__/services/CardsService.ts +5 -5
  54. package/src/billing/src/__generated__/services/SubscriptionsService.ts +1 -1
  55. package/src/billing/src/__generated__/services/WebhooksService.ts +41 -0
  56. package/src/billing/src/__generated__/models/CreateMerchantRequest.ts +0 -28
  57. package/src/billing/src/__generated__/models/CreatePackageRequest.ts +0 -13
  58. package/src/billing/src/__generated__/models/Merchant.ts +0 -25
  59. package/src/billing/src/__generated__/models/MerchantProviderConfig.ts +0 -20
  60. package/src/billing/src/__generated__/models/Package.ts +0 -19
  61. package/src/billing/src/__generated__/models/Payment.ts +0 -37
  62. package/src/billing/src/__generated__/models/UpdateMerchantRequest.ts +0 -21
  63. package/src/billing/src/__generated__/models/UpdatePackageRequest.ts +0 -14
  64. package/src/billing/src/__generated__/schemas/$CreateMerchantRequest.ts +0 -43
  65. package/src/billing/src/__generated__/schemas/$CreatePackageRequest.ts +0 -32
  66. package/src/billing/src/__generated__/schemas/$Merchant.ts +0 -39
  67. package/src/billing/src/__generated__/schemas/$MerchantProviderConfig.ts +0 -23
  68. package/src/billing/src/__generated__/schemas/$Package.ts +0 -47
  69. package/src/billing/src/__generated__/schemas/$Payment.ts +0 -47
  70. package/src/billing/src/__generated__/schemas/$UpdateMerchantRequest.ts +0 -35
  71. package/src/billing/src/__generated__/schemas/$UpdatePackageRequest.ts +0 -31
  72. package/src/billing/src/__generated__/services/MerchantsService.ts +0 -90
  73. package/src/billing/src/__generated__/services/PackagesService.ts +0 -150
  74. package/src/billing/src/__generated__/services/PaymentsService.ts +0 -96
@@ -0,0 +1,41 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ import type { CancelablePromise } from '../core/CancelablePromise';
6
+ import type { BaseHttpRequest } from '../core/BaseHttpRequest';
7
+ export class WebhooksService {
8
+ constructor(public readonly httpRequest: BaseHttpRequest) {}
9
+ /**
10
+ * Webhook de notificación de Wompi
11
+ * Endpoint que Wompi llama para notificar el resultado de una transacción. **No requiere autenticación** — es invocado directamente por Wompi.
12
+ * Al recibir `ResultadoTransaccion: "ExitosaAprobada"`: 1. Obtiene el plan desde jogo-backend usando `cliente.paymentId` 2. Busca suscripción existente (pending/active/due) para el cliente 3. Si no existe → crea una nueva activa 4. Si existe → la activa y extiende la fecha de vencimiento
13
+ *
14
+ * @returns any Webhook recibido y procesado
15
+ * @throws ApiError
16
+ */
17
+ public postApiV1Webhooks({
18
+ requestBody,
19
+ }: {
20
+ requestBody: {
21
+ IdTransaccion?: string;
22
+ Monto?: number;
23
+ ResultadoTransaccion?: 'ExitosaAprobada' | 'Rechazada' | 'Pendiente' | 'Error';
24
+ DatosAdicionales?: Record<string, any>;
25
+ cliente?: {
26
+ jogoId?: string;
27
+ paymentId?: string;
28
+ subscriptionId?: string;
29
+ };
30
+ },
31
+ }): CancelablePromise<{
32
+ received?: boolean;
33
+ }> {
34
+ return this.httpRequest.request({
35
+ method: 'POST',
36
+ url: '/api/v1/webhooks',
37
+ body: requestBody,
38
+ mediaType: 'application/json',
39
+ });
40
+ }
41
+ }
@@ -1,28 +0,0 @@
1
- /* generated using openapi-typescript-codegen -- do not edit */
2
- /* istanbul ignore file */
3
- /* tslint:disable */
4
- /* eslint-disable */
5
- export type CreateMerchantRequest = {
6
- businessId: string;
7
- name: string;
8
- email: string;
9
- paymentProvider?: CreateMerchantRequest.paymentProvider;
10
- /**
11
- * API Key de Wompi (se encripta antes de guardar)
12
- */
13
- apiKey: string;
14
- environment?: CreateMerchantRequest.environment;
15
- webhookUrl?: string;
16
- redirectUrl?: string;
17
- cardGroupId?: string;
18
- };
19
- export namespace CreateMerchantRequest {
20
- export enum paymentProvider {
21
- WOMPI = 'wompi',
22
- }
23
- export enum environment {
24
- SANDBOX = 'sandbox',
25
- PRODUCTION = 'production',
26
- }
27
- }
28
-
@@ -1,13 +0,0 @@
1
- /* generated using openapi-typescript-codegen -- do not edit */
2
- /* istanbul ignore file */
3
- /* tslint:disable */
4
- /* eslint-disable */
5
- export type CreatePackageRequest = {
6
- name: string;
7
- description?: string;
8
- numberOfClasses: number;
9
- durationDays: number;
10
- price: number;
11
- autoRenewDefault?: boolean;
12
- };
13
-
@@ -1,25 +0,0 @@
1
- /* generated using openapi-typescript-codegen -- do not edit */
2
- /* istanbul ignore file */
3
- /* tslint:disable */
4
- /* eslint-disable */
5
- import type { MerchantProviderConfig } from './MerchantProviderConfig';
6
- export type Merchant = {
7
- _id?: string;
8
- /**
9
- * ID del negocio en jogo-backend
10
- */
11
- businessId?: string;
12
- name?: string;
13
- email?: string;
14
- paymentProvider?: Merchant.paymentProvider;
15
- providerConfig?: MerchantProviderConfig;
16
- active?: boolean;
17
- createdAt?: string;
18
- updatedAt?: string;
19
- };
20
- export namespace Merchant {
21
- export enum paymentProvider {
22
- WOMPI = 'wompi',
23
- }
24
- }
25
-
@@ -1,20 +0,0 @@
1
- /* generated using openapi-typescript-codegen -- do not edit */
2
- /* istanbul ignore file */
3
- /* tslint:disable */
4
- /* eslint-disable */
5
- export type MerchantProviderConfig = {
6
- environment?: MerchantProviderConfig.environment;
7
- webhookUrl?: string;
8
- redirectUrl?: string;
9
- /**
10
- * ID del grupo de tarjetas en Wompi para validación adicional
11
- */
12
- cardGroupId?: string;
13
- };
14
- export namespace MerchantProviderConfig {
15
- export enum environment {
16
- SANDBOX = 'sandbox',
17
- PRODUCTION = 'production',
18
- }
19
- }
20
-
@@ -1,19 +0,0 @@
1
- /* generated using openapi-typescript-codegen -- do not edit */
2
- /* istanbul ignore file */
3
- /* tslint:disable */
4
- /* eslint-disable */
5
- export type Package = {
6
- _id?: string;
7
- merchantId?: string;
8
- name?: string;
9
- description?: string;
10
- numberOfClasses?: number;
11
- durationDays?: number;
12
- price?: number;
13
- currency?: string;
14
- autoRenewDefault?: boolean;
15
- active?: boolean;
16
- createdAt?: string;
17
- updatedAt?: string;
18
- };
19
-
@@ -1,37 +0,0 @@
1
- /* generated using openapi-typescript-codegen -- do not edit */
2
- /* istanbul ignore file */
3
- /* tslint:disable */
4
- /* eslint-disable */
5
- export type Payment = {
6
- _id?: string;
7
- merchantId?: string;
8
- customerId?: string;
9
- type?: Payment.type;
10
- /**
11
- * ID de la suscripción (o producto en el futuro)
12
- */
13
- referenceId?: string;
14
- provider?: Payment.provider;
15
- providerTransactionId?: string;
16
- amount?: number;
17
- currency?: string;
18
- status?: Payment.status;
19
- createdAt?: string;
20
- updatedAt?: string;
21
- };
22
- export namespace Payment {
23
- export enum type {
24
- SUBSCRIPTION = 'subscription',
25
- PRODUCT = 'product',
26
- }
27
- export enum provider {
28
- WOMPI = 'wompi',
29
- }
30
- export enum status {
31
- PENDING = 'pending',
32
- COMPLETED = 'completed',
33
- FAILED = 'failed',
34
- REFUNDED = 'refunded',
35
- }
36
- }
37
-
@@ -1,21 +0,0 @@
1
- /* generated using openapi-typescript-codegen -- do not edit */
2
- /* istanbul ignore file */
3
- /* tslint:disable */
4
- /* eslint-disable */
5
- export type UpdateMerchantRequest = {
6
- name?: string;
7
- email?: string;
8
- apiKey?: string;
9
- environment?: UpdateMerchantRequest.environment;
10
- webhookUrl?: string;
11
- redirectUrl?: string;
12
- cardGroupId?: string;
13
- active?: boolean;
14
- };
15
- export namespace UpdateMerchantRequest {
16
- export enum environment {
17
- SANDBOX = 'sandbox',
18
- PRODUCTION = 'production',
19
- }
20
- }
21
-
@@ -1,14 +0,0 @@
1
- /* generated using openapi-typescript-codegen -- do not edit */
2
- /* istanbul ignore file */
3
- /* tslint:disable */
4
- /* eslint-disable */
5
- export type UpdatePackageRequest = {
6
- name?: string;
7
- description?: string;
8
- numberOfClasses?: number;
9
- durationDays?: number;
10
- price?: number;
11
- autoRenewDefault?: boolean;
12
- active?: boolean;
13
- };
14
-
@@ -1,43 +0,0 @@
1
- /* generated using openapi-typescript-codegen -- do not edit */
2
- /* istanbul ignore file */
3
- /* tslint:disable */
4
- /* eslint-disable */
5
- export const $CreateMerchantRequest = {
6
- properties: {
7
- businessId: {
8
- type: 'string',
9
- isRequired: true,
10
- },
11
- name: {
12
- type: 'string',
13
- isRequired: true,
14
- },
15
- email: {
16
- type: 'string',
17
- isRequired: true,
18
- format: 'email',
19
- },
20
- paymentProvider: {
21
- type: 'Enum',
22
- },
23
- apiKey: {
24
- type: 'string',
25
- description: `API Key de Wompi (se encripta antes de guardar)`,
26
- isRequired: true,
27
- },
28
- environment: {
29
- type: 'Enum',
30
- },
31
- webhookUrl: {
32
- type: 'string',
33
- format: 'uri',
34
- },
35
- redirectUrl: {
36
- type: 'string',
37
- format: 'uri',
38
- },
39
- cardGroupId: {
40
- type: 'string',
41
- },
42
- },
43
- } as const;
@@ -1,32 +0,0 @@
1
- /* generated using openapi-typescript-codegen -- do not edit */
2
- /* istanbul ignore file */
3
- /* tslint:disable */
4
- /* eslint-disable */
5
- export const $CreatePackageRequest = {
6
- properties: {
7
- name: {
8
- type: 'string',
9
- isRequired: true,
10
- },
11
- description: {
12
- type: 'string',
13
- },
14
- numberOfClasses: {
15
- type: 'number',
16
- isRequired: true,
17
- minimum: 1,
18
- },
19
- durationDays: {
20
- type: 'number',
21
- isRequired: true,
22
- minimum: 1,
23
- },
24
- price: {
25
- type: 'number',
26
- isRequired: true,
27
- },
28
- autoRenewDefault: {
29
- type: 'boolean',
30
- },
31
- },
32
- } as const;
@@ -1,39 +0,0 @@
1
- /* generated using openapi-typescript-codegen -- do not edit */
2
- /* istanbul ignore file */
3
- /* tslint:disable */
4
- /* eslint-disable */
5
- export const $Merchant = {
6
- properties: {
7
- _id: {
8
- type: 'string',
9
- },
10
- businessId: {
11
- type: 'string',
12
- description: `ID del negocio en jogo-backend`,
13
- },
14
- name: {
15
- type: 'string',
16
- },
17
- email: {
18
- type: 'string',
19
- format: 'email',
20
- },
21
- paymentProvider: {
22
- type: 'Enum',
23
- },
24
- providerConfig: {
25
- type: 'MerchantProviderConfig',
26
- },
27
- active: {
28
- type: 'boolean',
29
- },
30
- createdAt: {
31
- type: 'string',
32
- format: 'date-time',
33
- },
34
- updatedAt: {
35
- type: 'string',
36
- format: 'date-time',
37
- },
38
- },
39
- } as const;
@@ -1,23 +0,0 @@
1
- /* generated using openapi-typescript-codegen -- do not edit */
2
- /* istanbul ignore file */
3
- /* tslint:disable */
4
- /* eslint-disable */
5
- export const $MerchantProviderConfig = {
6
- properties: {
7
- environment: {
8
- type: 'Enum',
9
- },
10
- webhookUrl: {
11
- type: 'string',
12
- format: 'uri',
13
- },
14
- redirectUrl: {
15
- type: 'string',
16
- format: 'uri',
17
- },
18
- cardGroupId: {
19
- type: 'string',
20
- description: `ID del grupo de tarjetas en Wompi para validación adicional`,
21
- },
22
- },
23
- } as const;
@@ -1,47 +0,0 @@
1
- /* generated using openapi-typescript-codegen -- do not edit */
2
- /* istanbul ignore file */
3
- /* tslint:disable */
4
- /* eslint-disable */
5
- export const $Package = {
6
- properties: {
7
- _id: {
8
- type: 'string',
9
- },
10
- merchantId: {
11
- type: 'string',
12
- },
13
- name: {
14
- type: 'string',
15
- },
16
- description: {
17
- type: 'string',
18
- },
19
- numberOfClasses: {
20
- type: 'number',
21
- },
22
- durationDays: {
23
- type: 'number',
24
- },
25
- price: {
26
- type: 'number',
27
- format: 'float',
28
- },
29
- currency: {
30
- type: 'string',
31
- },
32
- autoRenewDefault: {
33
- type: 'boolean',
34
- },
35
- active: {
36
- type: 'boolean',
37
- },
38
- createdAt: {
39
- type: 'string',
40
- format: 'date-time',
41
- },
42
- updatedAt: {
43
- type: 'string',
44
- format: 'date-time',
45
- },
46
- },
47
- } as const;
@@ -1,47 +0,0 @@
1
- /* generated using openapi-typescript-codegen -- do not edit */
2
- /* istanbul ignore file */
3
- /* tslint:disable */
4
- /* eslint-disable */
5
- export const $Payment = {
6
- properties: {
7
- _id: {
8
- type: 'string',
9
- },
10
- merchantId: {
11
- type: 'string',
12
- },
13
- customerId: {
14
- type: 'string',
15
- },
16
- type: {
17
- type: 'Enum',
18
- },
19
- referenceId: {
20
- type: 'string',
21
- description: `ID de la suscripción (o producto en el futuro)`,
22
- },
23
- provider: {
24
- type: 'Enum',
25
- },
26
- providerTransactionId: {
27
- type: 'string',
28
- },
29
- amount: {
30
- type: 'number',
31
- },
32
- currency: {
33
- type: 'string',
34
- },
35
- status: {
36
- type: 'Enum',
37
- },
38
- createdAt: {
39
- type: 'string',
40
- format: 'date-time',
41
- },
42
- updatedAt: {
43
- type: 'string',
44
- format: 'date-time',
45
- },
46
- },
47
- } as const;
@@ -1,35 +0,0 @@
1
- /* generated using openapi-typescript-codegen -- do not edit */
2
- /* istanbul ignore file */
3
- /* tslint:disable */
4
- /* eslint-disable */
5
- export const $UpdateMerchantRequest = {
6
- properties: {
7
- name: {
8
- type: 'string',
9
- },
10
- email: {
11
- type: 'string',
12
- format: 'email',
13
- },
14
- apiKey: {
15
- type: 'string',
16
- },
17
- environment: {
18
- type: 'Enum',
19
- },
20
- webhookUrl: {
21
- type: 'string',
22
- format: 'uri',
23
- },
24
- redirectUrl: {
25
- type: 'string',
26
- format: 'uri',
27
- },
28
- cardGroupId: {
29
- type: 'string',
30
- },
31
- active: {
32
- type: 'boolean',
33
- },
34
- },
35
- } as const;
@@ -1,31 +0,0 @@
1
- /* generated using openapi-typescript-codegen -- do not edit */
2
- /* istanbul ignore file */
3
- /* tslint:disable */
4
- /* eslint-disable */
5
- export const $UpdatePackageRequest = {
6
- properties: {
7
- name: {
8
- type: 'string',
9
- },
10
- description: {
11
- type: 'string',
12
- },
13
- numberOfClasses: {
14
- type: 'number',
15
- minimum: 1,
16
- },
17
- durationDays: {
18
- type: 'number',
19
- minimum: 1,
20
- },
21
- price: {
22
- type: 'number',
23
- },
24
- autoRenewDefault: {
25
- type: 'boolean',
26
- },
27
- active: {
28
- type: 'boolean',
29
- },
30
- },
31
- } as const;
@@ -1,90 +0,0 @@
1
- /* generated using openapi-typescript-codegen -- do not edit */
2
- /* istanbul ignore file */
3
- /* tslint:disable */
4
- /* eslint-disable */
5
- import type { CreateMerchantRequest } from '../models/CreateMerchantRequest';
6
- import type { Merchant } from '../models/Merchant';
7
- import type { UpdateMerchantRequest } from '../models/UpdateMerchantRequest';
8
- import type { CancelablePromise } from '../core/CancelablePromise';
9
- import type { BaseHttpRequest } from '../core/BaseHttpRequest';
10
- export class MerchantsService {
11
- constructor(public readonly httpRequest: BaseHttpRequest) {}
12
- /**
13
- * Registrar negocio con proveedor de pago
14
- * Registra un negocio y su configuración de proveedor de pago (Wompi). La API Key se encripta con AES-256 antes de guardarse en la base de datos.
15
- *
16
- * @returns Merchant Negocio registrado exitosamente
17
- * @throws ApiError
18
- */
19
- public postApiV1Merchants({
20
- requestBody,
21
- }: {
22
- requestBody: CreateMerchantRequest,
23
- }): CancelablePromise<Merchant> {
24
- return this.httpRequest.request({
25
- method: 'POST',
26
- url: '/api/v1/merchants',
27
- body: requestBody,
28
- mediaType: 'application/json',
29
- errors: {
30
- 401: `No autorizado`,
31
- 409: `El negocio ya está registrado`,
32
- },
33
- });
34
- }
35
- /**
36
- * Obtener negocio por businessId
37
- * Retorna la configuración del negocio sin incluir la API Key del proveedor de pago.
38
- *
39
- * @returns Merchant Configuración del negocio (sin API Key)
40
- * @throws ApiError
41
- */
42
- public getApiV1MerchantsBusiness({
43
- businessId,
44
- }: {
45
- /**
46
- * ID del negocio en jogo-backend
47
- */
48
- businessId: string,
49
- }): CancelablePromise<Merchant> {
50
- return this.httpRequest.request({
51
- method: 'GET',
52
- url: '/api/v1/merchants/business/{businessId}',
53
- path: {
54
- 'businessId': businessId,
55
- },
56
- errors: {
57
- 401: `Token JWT ausente o inválido`,
58
- 404: `Negocio no encontrado`,
59
- },
60
- });
61
- }
62
- /**
63
- * Actualizar configuración del negocio
64
- * Actualiza los datos del negocio. Si se envía `apiKey`, se re-encripta antes de guardarse.
65
- *
66
- * @returns Merchant Negocio actualizado
67
- * @throws ApiError
68
- */
69
- public putApiV1MerchantsBusiness({
70
- businessId,
71
- requestBody,
72
- }: {
73
- businessId: string,
74
- requestBody: UpdateMerchantRequest,
75
- }): CancelablePromise<Merchant> {
76
- return this.httpRequest.request({
77
- method: 'PUT',
78
- url: '/api/v1/merchants/business/{businessId}',
79
- path: {
80
- 'businessId': businessId,
81
- },
82
- body: requestBody,
83
- mediaType: 'application/json',
84
- errors: {
85
- 401: `Token JWT ausente o inválido`,
86
- 404: `Negocio no encontrado`,
87
- },
88
- });
89
- }
90
- }