Sha256: 9c43f17a49e22cab0e7deabec3154a9adf91fb19420fd1efa9853f4580d558cf

Contents?: true

Size: 605 Bytes

Versions: 5

Compression:

Stored size: 605 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.3.0 lib/gateway/Recurrency/recurrency.rb
stone_ecommerce-1.2.4 lib/gateway/Recurrency/recurrency.rb
mundipagg_sdk-1.2.4 lib/gateway/Recurrency/recurrency.rb
mundipagg_sdk-1.2.3 lib/gateway/Recurrency/recurrency.rb
mundipagg_sdk-1.2.3rc lib/gateway/Recurrency/recurrency.rb