Sha256: 0ad6d958cc5135e7e08f938e84262c2921ee8352a5ee1bfc1b18fb5d06dfedb5

Contents?: true

Size: 1.6 KB

Versions: 1

Compression:

Stored size: 1.6 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',
#   }
# })


# pp client.partner_create_user(
#   {
#     user: {
#       email: 'email@example.com',
#       notification_url: 'http://example.com.br/notify'
#     }
#   }
# )
#


Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
boletosimples-0.0.1 example/basic_auth_example.rb