Skip to content

Commit

Permalink
refactor: put type name to uppercase
Browse files Browse the repository at this point in the history
  • Loading branch information
DevVictor19 committed Nov 17, 2024
1 parent 48eaf19 commit 03304a4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/payments/infra/gateways/asaas/asaas-payment.gateway.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import {
CreateCreditCardChargeResponse,
CreateCustomerRequest,
CreateCustomerResponse,
findCustomerByDocumentResponse,
FindCustomerByDocumentResponse,
} from './asaas.contract';

export class AsaasPaymentGateway implements PaymentGateway {
Expand Down Expand Up @@ -67,7 +67,7 @@ export class AsaasPaymentGateway implements PaymentGateway {

async findCustomerByDocument(document: string): Promise<Customer | null> {
try {
const { data } = await this.api.get<findCustomerByDocumentResponse>(
const { data } = await this.api.get<FindCustomerByDocumentResponse>(
'/customers',
{
params: new URLSearchParams({ cpfCnpj: document }),
Expand Down
2 changes: 1 addition & 1 deletion src/payments/infra/gateways/asaas/asaas.contract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export type CreateCustomerRequest = {

export type CreateCustomerResponse = Customer;

export type findCustomerByDocumentResponse = {
export type FindCustomerByDocumentResponse = {
data: Customer[];
};

Expand Down

0 comments on commit 03304a4

Please sign in to comment.