Class: Mundipagg::Recurrency

Inherits:
Object
  • Object
show all
Defined in:
lib/mundipagg/Recurrency.rb

Overview

Class that hold recurrency transaction information

Constant Summary collapse

@@FREQUENCY =

Allowed recurrency frequency

{
  :Monthly => 'Monthly',
  :Yearly => 'Yearly',
  :Daily => 'Daily'
}

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeRecurrency

Initialize class and properties



30
31
# File 'lib/mundipagg/Recurrency.rb', line 30

def initialize  
end

Instance Attribute Details

#dateToStartBillingDate

Returns Date the first recurrency will be charged.

Returns:

  • (Date)

    Date the first recurrency will be charged.



6
7
8
# File 'lib/mundipagg/Recurrency.rb', line 6

def dateToStartBilling
  @dateToStartBilling
end

#frequencyEnumString

Returns Indicating the recurrency frequency.

Returns:

  • (String)

    Indicating the recurrency frequency.

See Also:



10
11
12
# File 'lib/mundipagg/Recurrency.rb', line 10

def frequencyEnum
  @frequencyEnum
end

#intervalInteger

Returns Recurrency interval.

Returns:

  • (Integer)

    Recurrency interval.



13
14
15
# File 'lib/mundipagg/Recurrency.rb', line 13

def interval
  @interval
end

#oneDollarAuthBoolean

to validate the credit card.

Returns:

  • (Boolean)

    Indicates whether the One webservice will run an OneDollarAuth



17
18
19
# File 'lib/mundipagg/Recurrency.rb', line 17

def oneDollarAuth
  @oneDollarAuth
end

#recurrencesInteger

Returns Number of recurrencies.

Returns:

  • (Integer)

    Number of recurrencies.



20
21
22
# File 'lib/mundipagg/Recurrency.rb', line 20

def recurrences
  @recurrences
end

Class Method Details

.FrequencyEnumObject

Allowed recurrency frequency



34
35
36
# File 'lib/mundipagg/Recurrency.rb', line 34

def self.FrequencyEnum
                @@FREQUENCY
end