add default values to merchantCity and merchantName params

This commit is contained in:
RcleydsonR
2022-11-10 17:54:47 -03:00
parent 95067dfca5
commit 69d0c95adf
2 changed files with 12 additions and 8 deletions

View File

@@ -4,8 +4,8 @@ import { crc16ccitt } from "crc";
interface PixParams {
pixKey: string;
merchantCity: string;
merchantName: string;
merchantCity?: string;
merchantName?: string;
value?: number;
transactionId?: string;
message?: string;
@@ -16,8 +16,8 @@ interface PixParams {
const pix = ({
pixKey,
merchantCity,
merchantName,
merchantCity = "city",
merchantName = "name",
value,
message,
cep,