diff --git a/lib/braspag-rest/payment.rb b/lib/braspag-rest/payment.rb index f9fae66..d4ebeac 100644 --- a/lib/braspag-rest/payment.rb +++ b/lib/braspag-rest/payment.rb @@ -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' diff --git a/spec/payment_spec.rb b/spec/payment_spec.rb index df71cb2..fbf675f 100644 --- a/spec/payment_spec.rb +++ b/spec/payment_spec.rb @@ -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