Sha256: a67f8133a0bb15a5c992d13c853a20f932e8892cf6c16efacf728feeac8e7135

Contents?: true

Size: 927 Bytes

Versions: 5

Compression:

Stored size: 927 Bytes

Contents

require 'json'
module Gateway

  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
    end
  end
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
mundipagg_sdk-1.4.1 lib/gateway/BoletoTransaction/boleto_transaction.rb
stone_ecommerce-1.4.0 lib/gateway/BoletoTransaction/boleto_transaction.rb
mundipagg_sdk-1.4.0 lib/gateway/BoletoTransaction/boleto_transaction.rb
stone_ecommerce-1.3.0 lib/gateway/BoletoTransaction/boleto_transaction.rb
stone_ecommerce-1.2.3 lib/gateway/BoletoTransaction/boleto_transaction.rb