Sha256: a8b329924147ad5e595ec55df740404a7391cb7933a15c681d659be3d78c14dc
Contents?: true
Size: 754 Bytes
Versions: 13
Compression:
Stored size: 754 Bytes
Contents
module Mundipagg class Boleto < ActiveMerchant::Billing::Model attr_accessor :bank_number, :days_to_expire, :bank_code def payload(amount) content = { amount_in_cents: amount, bank_number: bank_number, days_to_add_in_boleto_expiration_date: days_to_expire || 5, 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
13 entries across 13 versions & 1 rubygems