Class: CheckoutSdk::Sessions::Recurring

Inherits:
Object
  • Object
show all
Defined in:
lib/checkout_sdk/sessions/recurring.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(days_between_payments: 1, expiry: '99991231') ⇒ Recurring

Returns a new instance of Recurring.



13
14
15
16
# File 'lib/checkout_sdk/sessions/recurring.rb', line 13

def initialize(days_between_payments: 1, expiry: '99991231')
  @days_between_payments = days_between_payments
  @expiry = expiry
end

Instance Attribute Details

#days_between_paymentsInteger

Returns:

  • (Integer)


9
10
11
12
13
14
15
16
17
# File 'lib/checkout_sdk/sessions/recurring.rb', line 9

class Recurring
  attr_accessor :days_between_payments,
                :expiry

  def initialize(days_between_payments: 1, expiry: '99991231')
    @days_between_payments = days_between_payments
    @expiry = expiry
  end
end

#expiryString

Returns:

  • (String)


9
10
11
12
13
14
15
16
17
# File 'lib/checkout_sdk/sessions/recurring.rb', line 9

class Recurring
  attr_accessor :days_between_payments,
                :expiry

  def initialize(days_between_payments: 1, expiry: '99991231')
    @days_between_payments = days_between_payments
    @expiry = expiry
  end
end