Sha256: fabb0863b221ce80c5bc7ecd1671428f05556efa8d5a8aa81658cc7fcbc4561a
Contents?: true
Size: 804 Bytes
Versions: 3
Compression:
Stored size: 804 Bytes
Contents
module Mundipagg class Boleto < ActiveMerchant::Billing::Model attr_accessor :bank_number, :days_to_expire, :bank_code, :instructions def payload(amount) content = { amount_in_cents: amount, bank_number: bank_number, days_to_add_in_boleto_expiration_date: days_to_expire || 5, instructions: instructions, nosso_numero: bank_code } { amount_in_cents: amount, currency_iso_enum: "BRL", boleto_transaction_collection: { boleto_transaction: content } } end class Response < Mundipagg::Response def payload body[:create_order_response][:create_order_result] end def error_item payload[:error_report][:error_item_collection][:error_item] end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
better-mundipagg-0.2.11 | lib/mundipagg/boleto.rb |
better-mundipagg-0.2.10 | lib/mundipagg/boleto.rb |
better-mundipagg-0.2.9 | lib/mundipagg/boleto.rb |