# -*- coding: utf-8 -*-
import json
import junopy
import sys


def main(arg):

    junopy.Juno('4E1574938F3DD69306BC336E348276ACC9CBE72B4E8396B2520436663C66C08E',
                '9OuOfYM2QZRhmUug', 'gw<Nl6bc2Ib,VX&)c2U{mX1?d_zEg0^d', sandbox=True)

    cobranca = cobranca = junopy.charges.Create(
        junopy.Charge(
            description='Cobrança Exemplo',
            amount=100.0,
            paymentTypes=['BOLETO', 'CREDIT_CARD']
        ),
        junopy.Billing(
            name='Usuario',
            document='CPF',
            email='Email',
            address=junopy.Address(
                street='Rua',
                number='Numero',
                complement='Ap',
                neighborhood='Bairro',
                city='Cidade',
                state='UF',
                postCode='29090000'),
            phone='99999999999',
            notify=False
        )
    )


if __name__ == "__main__":
    main(sys.argv)

# -*- coding: utf-8 -*-
import json
import junopy
import sys


def main(arg):

    junopy.Juno('4E1574938F3DD69306BC336E348276ACC9CBE72B4E8396B2520436663C66C08E',
                '9OuOfYM2QZRhmUug', 'gw<Nl6bc2Ib,VX&)c2U{mX1?d_zEg0^d', sandbox=True)

    cobranca = cobranca = junopy.charges.Create(
        junopy.Charge(
            description='Cobrança Exemplo',
            amount=100.0,
            paymentTypes=['BOLETO', 'CREDIT_CARD']
        ),
        junopy.Billing(
            name='Usuario',
            document='CPF',
            email='Email',
            address=junopy.Address(
                street='Rua',
                number='Numero',
                complement='Ap',
                neighborhood='Bairro',
                city='Cidade',
                state='UF',
                postCode='29090000'),
            phone='99999999999',
            notify=False
        )
    )


if __name__ == "__main__":
    main(sys.argv)

# -*- coding: utf-8 -*-