node-pix-payload
Version:
This library that aims to build the payload of pix payment, with this payload the developer can generate the qr code payable or pay informed the same in the bank's app.
153 lines (152 loc) • 5.94 kB
TypeScript
declare const _default: {
setAmount(amount: string | number): {
setAmount(amount: string | number): any;
setCountryCode(countryCode: string): any;
setDescription(description: string): any;
setMerchantCity(city: string): any;
setMerchantName(name: string): any;
setPixKey(key: string): any;
setTxid(txid: string): any;
setUniquePayment(uniquePayment: boolean): any;
setUrl(url: string): any;
getData: () => Promise<{
text_payload: string;
qrcode_payload: string;
outPut: (path: string, format?: "png" | "svg" | "utf8") => void;
}>;
};
setCountryCode(countryCode: string): {
setAmount(amount: string | number): any;
setCountryCode(countryCode: string): any;
setDescription(description: string): any;
setMerchantCity(city: string): any;
setMerchantName(name: string): any;
setPixKey(key: string): any;
setTxid(txid: string): any;
setUniquePayment(uniquePayment: boolean): any;
setUrl(url: string): any;
getData: () => Promise<{
text_payload: string;
qrcode_payload: string;
outPut: (path: string, format?: "png" | "svg" | "utf8") => void;
}>;
};
setDescription(description: string): {
setAmount(amount: string | number): any;
setCountryCode(countryCode: string): any;
setDescription(description: string): any;
setMerchantCity(city: string): any;
setMerchantName(name: string): any;
setPixKey(key: string): any;
setTxid(txid: string): any;
setUniquePayment(uniquePayment: boolean): any;
setUrl(url: string): any;
getData: () => Promise<{
text_payload: string;
qrcode_payload: string;
outPut: (path: string, format?: "png" | "svg" | "utf8") => void;
}>;
};
setMerchantCity(city: string): {
setAmount(amount: string | number): any;
setCountryCode(countryCode: string): any;
setDescription(description: string): any;
setMerchantCity(city: string): any;
setMerchantName(name: string): any;
setPixKey(key: string): any;
setTxid(txid: string): any;
setUniquePayment(uniquePayment: boolean): any;
setUrl(url: string): any;
getData: () => Promise<{
text_payload: string;
qrcode_payload: string;
outPut: (path: string, format?: "png" | "svg" | "utf8") => void;
}>;
};
setMerchantName(name: string): {
setAmount(amount: string | number): any;
setCountryCode(countryCode: string): any;
setDescription(description: string): any;
setMerchantCity(city: string): any;
setMerchantName(name: string): any;
setPixKey(key: string): any;
setTxid(txid: string): any;
setUniquePayment(uniquePayment: boolean): any;
setUrl(url: string): any;
getData: () => Promise<{
text_payload: string;
qrcode_payload: string;
outPut: (path: string, format?: "png" | "svg" | "utf8") => void;
}>;
};
setPixKey(key: string): {
setAmount(amount: string | number): any;
setCountryCode(countryCode: string): any;
setDescription(description: string): any;
setMerchantCity(city: string): any;
setMerchantName(name: string): any;
setPixKey(key: string): any;
setTxid(txid: string): any;
setUniquePayment(uniquePayment: boolean): any;
setUrl(url: string): any;
getData: () => Promise<{
text_payload: string;
qrcode_payload: string;
outPut: (path: string, format?: "png" | "svg" | "utf8") => void;
}>;
};
setTxid(txid: string): {
setAmount(amount: string | number): any;
setCountryCode(countryCode: string): any;
setDescription(description: string): any;
setMerchantCity(city: string): any;
setMerchantName(name: string): any;
setPixKey(key: string): any;
setTxid(txid: string): any;
setUniquePayment(uniquePayment: boolean): any;
setUrl(url: string): any;
getData: () => Promise<{
text_payload: string;
qrcode_payload: string;
outPut: (path: string, format?: "png" | "svg" | "utf8") => void;
}>;
};
setUniquePayment(uniquePayment: boolean): {
setAmount(amount: string | number): any;
setCountryCode(countryCode: string): any;
setDescription(description: string): any;
setMerchantCity(city: string): any;
setMerchantName(name: string): any;
setPixKey(key: string): any;
setTxid(txid: string): any;
setUniquePayment(uniquePayment: boolean): any;
setUrl(url: string): any;
getData: () => Promise<{
text_payload: string;
qrcode_payload: string;
outPut: (path: string, format?: "png" | "svg" | "utf8") => void;
}>;
};
setUrl(url: string): {
setAmount(amount: string | number): any;
setCountryCode(countryCode: string): any;
setDescription(description: string): any;
setMerchantCity(city: string): any;
setMerchantName(name: string): any;
setPixKey(key: string): any;
setTxid(txid: string): any;
setUniquePayment(uniquePayment: boolean): any;
setUrl(url: string): any;
getData: () => Promise<{
text_payload: string;
qrcode_payload: string;
outPut: (path: string, format?: "png" | "svg" | "utf8") => void;
}>;
};
getData: () => Promise<{
text_payload: string;
qrcode_payload: string;
outPut: (path: string, format?: "png" | "svg" | "utf8") => void;
}>;
};
export = _default;