Sha256: 82be41bf0dff6b523fcdb017b19b213c1155b3237bfb49b29dce96fdfc4eedc7

Contents?: true

Size: 932 Bytes

Versions: 9

Compression:

Stored size: 932 Bytes

Contents

require 'json'

class BoletoTransaction

  # Valor do boleto em centavos
  attr_accessor :AmountInCents

  # Número do banco
  attr_accessor :BankNumber

  # Instruções a serem impressas no boleto
  attr_accessor :Instructions

  # Número do documento
  attr_accessor :DocumentNumber

  # Indentificador da transação no sistema da loja
  attr_accessor :TransactionReference

  # Data da criação da transação no sistema da loja
  attr_accessor :TransactionDateInMerchant

  # Opções da transação de boleto
  attr_accessor :Options

  # Endereço de cobrança
  attr_accessor :BillingAddress

  def initialize
    @Options = BoletoTransactionOptions.new
    @BillingAddress = BillingAddress.new
  end


  def to_json
    hash = {}
    instance_variables.each {|var| hash[var.to_s.delete('@')] = instance_variable_get(var) }
    hash

    #JSON.pretty_generate(hash)
  end

end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
mundipagg_sdk-1.0.2 lib/gateway/BoletoTransaction/boleto_transaction.rb
mundipagg_sdk-1.0.1 lib/gateway/BoletoTransaction/boleto_transaction.rb
mundipagg_sdk-1.0.0 lib/gateway/BoletoTransaction/boleto_transaction.rb
mundipagg_api-1.3.1 lib/mundipagg/BoletoTransaction/boleto_transaction.rb
mundipagg_api-1.3.0 lib/mundipagg/BoletoTransaction/boleto_transaction.rb
mundipagg_api-1.1.1 lib/mundipagg/BoletoTransaction/boleto_transaction.rb
mundipagg_api-1.1.0 lib/mundipagg/BoletoTransaction/boleto_transaction.rb
mundipagg_api-1.0.1 lib/mundipagg/BoletoTransaction/boleto_transaction.rb
mundipagg_api-1.0.0 lib/mundipagg/BoletoTransaction/boleto_transaction.rb