From 22902bdd8c47bd24759115449b2f50d40662199d Mon Sep 17 00:00:00 2001 From: Denis Tierno Date: Thu, 6 Apr 2017 10:00:55 -0300 Subject: [PATCH] Add BoletoNumber property --- lib/braspag-rest/payment.rb | 1 + spec/payment_spec.rb | 1 + 2 files changed, 2 insertions(+) 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