Skip to content

Commit

Permalink
Add BoletoNumber property
Browse files Browse the repository at this point in the history
  • Loading branch information
detierno committed Apr 6, 2017
1 parent 844be96 commit 22902bd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/braspag-rest/payment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ class Payment < Hashie::IUTrash
property :expiration_date, from: 'ExpirationDate'
property :instructions, from: 'Instructions'
property :printable_page_url, from: 'Url'
property :boleto_number, from: 'BoletoNumber'

property :currency, from: 'Currency'
property :country, from: 'Country'
Expand Down
1 change: 1 addition & 0 deletions spec/payment_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@
expect(payment.expiration_date).to eq('2015-10-05')
expect(payment.instructions).to eq('Não pagar após o vencimento.')
expect(payment.printable_page_url).to eq('https://sandbox.pagador.com.br/post/pagador/reenvia.asp/795cc546-8d3c-4ff3-8548-77320fc4b595')
expect(payment.boleto_number).to eq('7-4')
end
end
end

0 comments on commit 22902bd

Please sign in to comment.