correios-webservice
Version:
Cliente NodeJS para consumir a api nova dos Correios (CWS)
20 lines (19 loc) • 502 B
TypeScript
interface AuthPostcardConfig {
userName: string;
accessToken: string;
postCardNumber: string;
}
declare abstract class Auth {
private token?;
getToken(): string | undefined;
setToken(token: string): void;
}
declare class AuthContract extends Auth {
}
declare class AuthPostcard extends Auth {
userName: string;
accessToken: string;
postCardNumber: string;
constructor(auth: AuthPostcardConfig);
}
export { AuthContract, AuthPostcard, AuthPostcardConfig, Auth };