Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions examples/ejemplo-datos-empleado-empleador.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,13 @@ import {

async function main(): Promise<void> {

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

const client = FiscalapiClient.create(settings);

Expand Down
13 changes: 7 additions & 6 deletions examples/ejemplo-timbres.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@ import { FiscalapiClient, FiscalapiSettings } from '../src/index';

async function main(): Promise<void> {

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

const client = FiscalapiClient.create(settings);

Expand Down
8 changes: 4 additions & 4 deletions examples/ejemplos-carta-porte-referencias.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ inspect.defaultOptions.colors = true;

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

// Sellos SAT de prueba
Expand Down
8 changes: 4 additions & 4 deletions examples/ejemplos-carta-porte-valores.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ inspect.defaultOptions.colors = true;

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

// Sellos SAT de prueba
Expand Down
Loading
Loading