fix style guide raised in pull request

This commit is contained in:
RcleydsonR
2022-11-09 11:10:00 -03:00
parent bebf8232ee
commit 631bfc7d76
2 changed files with 31 additions and 31 deletions

View File

@@ -14,7 +14,7 @@ interface PixParams {
countryCode?: string;
}
const Pix = ({
const pix = ({
pixKey,
merchantCity,
merchantName,
@@ -42,8 +42,8 @@ const Pix = ({
}
payload.push(formatEMV("58", countryCode.toUpperCase())); // Country Code
payload.push(formatEMV("59", merchantName)); // Merchant merchantName
payload.push(formatEMV("60", merchantCity)); // Merchant merchantCity
payload.push(formatEMV("59", merchantName)); // Merchant Name
payload.push(formatEMV("60", merchantCity)); // Merchant City
if (cep) {
payload.push(formatEMV("61", cep)); // Postal Code
@@ -84,4 +84,4 @@ const formatEMV = (id: string, param: string): string => {
return `${id}${len}${param}`;
};
export { type PixParams, Pix };
export { type PixParams, pix };