Skip to content

Commit

Permalink
Atualização de interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
jvoliveiraGN committed Dec 22, 2022
1 parent 1723ea0 commit c247882
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 24 deletions.
10 changes: 0 additions & 10 deletions src/interfaces/config.interface.ts

This file was deleted.

12 changes: 0 additions & 12 deletions src/interfaces/credentials.interface.ts

This file was deleted.

4 changes: 2 additions & 2 deletions src/interfaces/endpoint.interface.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export interface EndpointInterface {
route: string;
method: string;
route: string;
method: string;
}
17 changes: 17 additions & 0 deletions src/interfaces/gnConfig.interface.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/* eslint-disable import/extensions */
/* eslint-disable camelcase */
import { PathLike } from 'fs';
import { EndpointInterface } from './endpoint.interface';

export interface GnConfig {
client_id: string;
client_secret: string;
certificate?: PathLike | string;
sandbox: boolean;
partnerToken?: string;
rawResponse?: any;
baseUrl?: string;
validateMtls?: boolean;
authRoute?: EndpointInterface;
agent?: any;
}
13 changes: 13 additions & 0 deletions src/interfaces/gnCredentials.interface.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/* eslint-disable camelcase */
import { PathLike } from 'fs';

export interface GnCredentials {
client_id: string;
client_secret: string;
certificate?: PathLike | string;
pix_cert?: PathLike | string;
pathCert?: PathLike | string;
sandbox: boolean;
validateMtls?: boolean;
partnerToken?: string;
}

0 comments on commit c247882

Please sign in to comment.