Sha256: 83071f4c09530c47fa74251cec0e8a5c641be23aaa9390483e75042d57fb5965

Contents?: true

Size: 581 Bytes

Versions: 5

Compression:

Stored size: 581 Bytes

Contents

module Gateway

  class Recurrency
    # Frequência da recorrência
    attr_accessor :Frequency

    # Intervalo de recorrência
    attr_accessor :Interval

    # Data da primeira cobrança
    attr_accessor :DateToStartBilling

    # Total de recorrências
    attr_accessor :Recurrences

    # Informa se será necessário efetuar o procedimento OneDollarAuth antes de registrar a recorrência
    attr_accessor :OneDollarAuth

    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/Recurrency/recurrency.rb
stone_ecommerce-1.4.0 lib/gateway/Recurrency/recurrency.rb
mundipagg_sdk-1.4.0 lib/gateway/Recurrency/recurrency.rb
stone_ecommerce-1.3.0 lib/gateway/Recurrency/recurrency.rb
stone_ecommerce-1.2.3 lib/gateway/Recurrency/recurrency.rb