Sha256: 4b8edb1ecffdc92634e4194876631e65aaf3abfadb4b721aa42fef6e8d7cf266

Contents?: true

Size: 1.44 KB

Versions: 3

Compression:

Stored size: 1.44 KB

Contents

$: << File.expand_path('../../lib', __FILE__)
require 'boletosimples'
require 'pp'

client = BoletoSimples::Client.new('seu email', 'sua senha', {user_agent: 'Meu e-Commerce (meuecommerce@example.com)'})

# pp client.userinfo

# pp client.transactions

# pp client.customers

# pp client.customer 2
#
# pp client.create_customer({:customer =>
#   {
#     person_name: "Joao da Silva",
#     cnpj_cpf: "012.345.678-90",
#     email: "cliente@bom.com",
#     address: "Rua quinhentos",
#     city_name: "Rio de Janeiro",
#     state: "RJ",
#     neighborhood: "bairro",
#     zipcode: "12312-123",
#     address_number: "111",
#     address_complement: "Sala 4",
#     phone_number: "2112123434"
#   }
# })

# pp client.bank_billets

# pp client.bank_billet 3

# pp client.create_bank_billet({bank_billet:
#   {
#     amount: 41.01,
#     customer_address: 'Rua quinhentos',
#     customer_address_complement: 'Sala 4',
#     customer_address_number: '111',
#     customer_city_name: 'Rio de Janeiro',
#     customer_cnpj_cpf: '012.345.678-90',
#     customer_email: 'cliente@bom.com',
#     customer_neighborhood: 'Sao Francisco',
#     customer_person_name: 'Joao da Silva',
#     customer_person_type: 'individual',
#     customer_phone_number: '2112123434',
#     customer_state: 'RJ',
#     customer_zipcode: '12312-123',
#     description: 'Despesas do contrato 0012',
#     expire_at: '2014-01-01',
#     notification_url: 'http://example.com.br/notify',
#   }
# })

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
boletosimples-0.0.4 example/basic_auth_example.rb
boletosimples-0.0.3 example/basic_auth_example.rb
boletosimples-0.0.2 example/basic_auth_example.rb