Skip to content

Commit b449a8d

Browse files
authored
Merge pull request #6 from FiscalAPI/feat/comercio-exterior
v4.0.386 complemento comercio exterior support and samples added
2 parents 51d2e32 + 0e4296d commit b449a8d

20 files changed

Lines changed: 2857 additions & 39 deletions

examples/ejemplo-datos-empleado-empleador.ts

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,13 @@ import {
77

88
async function main(): Promise<void> {
99

10-
const settings: FiscalapiSettings = {
11-
apiUrl: 'https://test.fisalapi.com',
12-
apiKey: '<API_KEY>',
13-
tenant: '<TENANT_ID>',
14-
debug: true
15-
};
10+
// Configuración de FiscalAPI
11+
const settings: FiscalapiSettings = {
12+
apiUrl: 'https://test.fiscalapi.com', // https://live.fiscalapi.com
13+
apiKey: '<api-key>', // API key de FiscalAPI
14+
tenant: '<tenant>', // Tenant de FiscalAPI
15+
debug: true // true, imprime raw request y response en consola, util durante el desarrollo de la integración.
16+
};
1617

1718
const client = FiscalapiClient.create(settings);
1819

examples/ejemplo-timbres.ts

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@ import { FiscalapiClient, FiscalapiSettings } from '../src/index';
22

33
async function main(): Promise<void> {
44

5-
const settings: FiscalapiSettings = {
6-
apiUrl: 'https://test.fisalapi.com',
7-
apiKey: '<API_KEY>',
8-
tenant: '<TENANT_ID>',
9-
debug: true
10-
};
5+
// Configuración de FiscalAPI
6+
const settings: FiscalapiSettings = {
7+
apiUrl: 'https://test.fiscalapi.com', // https://live.fiscalapi.com
8+
apiKey: '<api-key>', // API key de FiscalAPI
9+
tenant: '<tenant>', // Tenant de FiscalAPI
10+
debug: true // true, imprime raw request y response en consola, util durante el desarrollo de la integración.
11+
};
1112

1213
const client = FiscalapiClient.create(settings);
1314

examples/ejemplos-carta-porte-referencias.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ inspect.defaultOptions.colors = true;
1212

1313
// Configuración de FiscalAPI
1414
const settings: FiscalapiSettings = {
15-
apiUrl: 'https://test.fiscalapi.com',
16-
apiKey: '<API_KEY>',
17-
tenant: '<TENANT_ID>',
18-
debug: true
15+
apiUrl: 'https://test.fiscalapi.com', // https://live.fiscalapi.com
16+
apiKey: '<api-key>', // API key de FiscalAPI
17+
tenant: '<tenant>', // Tenant de FiscalAPI
18+
debug: true // true, imprime raw request y response en consola, util durante el desarrollo de la integración.
1919
};
2020

2121
// Sellos SAT de prueba

examples/ejemplos-carta-porte-valores.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ inspect.defaultOptions.colors = true;
1212

1313
// Configuración de FiscalAPI
1414
const settings: FiscalapiSettings = {
15-
apiUrl: 'https://test.fiscalapi.com',
16-
apiKey: 'sk_test_b7dae706_e16f_4faf_90fb_a5d1990985a2',
17-
tenant: '275510ee-f64d-435a-9e92-1553d8f10a7e',
18-
debug: true
15+
apiUrl: 'https://test.fiscalapi.com', // https://live.fiscalapi.com
16+
apiKey: '<api-key>', // API key de FiscalAPI
17+
tenant: '<tenant>', // Tenant de FiscalAPI
18+
debug: true // true, imprime raw request y response en consola, util durante el desarrollo de la integración.
1919
};
2020

2121
// Sellos SAT de prueba

0 commit comments

Comments
 (0)