example/access_token_example.rb in boletosimples-0.0.6 vs example/access_token_example.rb in boletosimples-0.0.7

- old
+ new

@@ -10,11 +10,11 @@ # pp client.customers # pp client.customer 2 # -# pp client.create_customer({:customer => +# pp client.create_customer( # { # person_name: "Joao da Silva", # cnpj_cpf: "012.345.678-90", # email: "cliente@bom.com", # address: "Rua quinhentos", @@ -24,17 +24,18 @@ # 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: +# Boleto normal +# pp client.create_bank_billet( # { # amount: 41.01, # customer_address: 'Rua quinhentos', # customer_address_complement: 'Sala 4', # customer_address_number: '111', @@ -47,8 +48,32 @@ # 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' +# } +# ) + +# Boleto parcelado +# pp client.create_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', +# parcels: 3 # } -# }) +# ) +