import { PIX } from "./lib/pix" ; let pix = PIX . static ( ) . setReceiverName ( 'Hiago Silva Souza' ) . setReceiverCity ( 'Rio Preto' ) . setKey ( 'fcba8826-cbff-46e2-8c40-1b39896402a8' ) . setDescription ( 'Donation with defined amount - GPIX' ) . setReceiverZipCode ( '15082131' ) . setIdentificator ( '123' ) . setAmount ( 5.0 ) ; console . log ( '\nDonation with defined amount - GPIX >>>>\n' , pix . getBRCode ( ) ) ; pix = PIX . static ( ) . setReceiverName ( 'Hiago Silva Souza' ) . setReceiverCity ( 'Rio Preto' ) . setKey ( 'nubank@hiago.me' ) . setDescription ( 'Donation without defined amount - GPIX' ) ; console . log ( '\nDonation without defined amount - GPIX >>>>\n' , pix . getBRCode ( ) ) ; let dpix = PIX . dinamic ( ) . setReceiverName ( 'Minha Empresa LTDA' ) . setReceiverCity ( 'Rio Preto' ) . setLocation ( 'url-location-psp' ) . setAmount ( 10.4 ) ; console . log ( '\nBRCODE dinamic - GPIX >>>>\n' , dpix . getBRCode ( ) ) ; ( async ( ) => { pix . setDescription ( 'Free Donation / QRCODE - GPIX' ) ; if ( await pix . saveQRCodeFile ( './qrcode.png' ) ) { console . log ( 'success in saving static QR-code' ) ; } else { console . log ( 'error saving QR-code' ) ; } } ) ( ) ;