Class: CheckoutSdk::Payments::PaymentPlan
- Inherits:
-
Object
- Object
- CheckoutSdk::Payments::PaymentPlan
- Defined in:
- lib/checkout_sdk/payments/payment_plan.rb
Overview
Details of a recurring subscription or installment plan associated with a payment.
Instance Attribute Summary collapse
-
#amount ⇒ Integer
The amount to charge for each payment in the plan, in the minor currency unit.
-
#amount_variability ⇒ String
Recurring-only.
- #current_payment_number ⇒ Integer
- #days_between_payments ⇒ Integer
-
#expiry ⇒ String
ISO 8601 date-time.
-
#financing ⇒ TrueClass, FalseClass
Installment-only.
-
#name ⇒ String
The name of the payment plan.
-
#start_date ⇒ String
The date on which the first payment will be taken, in YYYYMMDD format.
- #total_number_of_payments ⇒ Integer
Instance Attribute Details
#amount ⇒ Integer
Returns The amount to charge for each payment in the plan, in the minor currency unit. Required when source.type is “blik”, amount_variability is “Fixed”, and the recurring agreement is created without an initial payment (amount set to 0).
31 32 33 34 35 36 37 38 39 40 41 |
# File 'lib/checkout_sdk/payments/payment_plan.rb', line 31 class PaymentPlan attr_accessor :amount_variability, :financing, :amount, :days_between_payments, :total_number_of_payments, :current_payment_number, :expiry, :name, :start_date end |
#amount_variability ⇒ String
Returns Recurring-only. One of “Fixed” or “Variable”.
31 32 33 34 35 36 37 38 39 40 41 |
# File 'lib/checkout_sdk/payments/payment_plan.rb', line 31 class PaymentPlan attr_accessor :amount_variability, :financing, :amount, :days_between_payments, :total_number_of_payments, :current_payment_number, :expiry, :name, :start_date end |
#current_payment_number ⇒ Integer
31 32 33 34 35 36 37 38 39 40 41 |
# File 'lib/checkout_sdk/payments/payment_plan.rb', line 31 class PaymentPlan attr_accessor :amount_variability, :financing, :amount, :days_between_payments, :total_number_of_payments, :current_payment_number, :expiry, :name, :start_date end |
#days_between_payments ⇒ Integer
31 32 33 34 35 36 37 38 39 40 41 |
# File 'lib/checkout_sdk/payments/payment_plan.rb', line 31 class PaymentPlan attr_accessor :amount_variability, :financing, :amount, :days_between_payments, :total_number_of_payments, :current_payment_number, :expiry, :name, :start_date end |
#expiry ⇒ String
Returns ISO 8601 date-time.
31 32 33 34 35 36 37 38 39 40 41 |
# File 'lib/checkout_sdk/payments/payment_plan.rb', line 31 class PaymentPlan attr_accessor :amount_variability, :financing, :amount, :days_between_payments, :total_number_of_payments, :current_payment_number, :expiry, :name, :start_date end |
#financing ⇒ TrueClass, FalseClass
Returns Installment-only.
31 32 33 34 35 36 37 38 39 40 41 |
# File 'lib/checkout_sdk/payments/payment_plan.rb', line 31 class PaymentPlan attr_accessor :amount_variability, :financing, :amount, :days_between_payments, :total_number_of_payments, :current_payment_number, :expiry, :name, :start_date end |
#name ⇒ String
Returns The name of the payment plan. Required when source.type is “blik”. For Blik merchant-initiated requests using an external partner_agreement_id, this value is used as the Blik Alias Label. Max 35 characters.
31 32 33 34 35 36 37 38 39 40 41 |
# File 'lib/checkout_sdk/payments/payment_plan.rb', line 31 class PaymentPlan attr_accessor :amount_variability, :financing, :amount, :days_between_payments, :total_number_of_payments, :current_payment_number, :expiry, :name, :start_date end |
#start_date ⇒ String
Returns The date on which the first payment will be taken, in YYYYMMDD format. Required when source.type is “blik” and the recurring agreement is created without an initial payment (amount set to 0).
31 32 33 34 35 36 37 38 39 40 41 |
# File 'lib/checkout_sdk/payments/payment_plan.rb', line 31 class PaymentPlan attr_accessor :amount_variability, :financing, :amount, :days_between_payments, :total_number_of_payments, :current_payment_number, :expiry, :name, :start_date end |
#total_number_of_payments ⇒ Integer
31 32 33 34 35 36 37 38 39 40 41 |
# File 'lib/checkout_sdk/payments/payment_plan.rb', line 31 class PaymentPlan attr_accessor :amount_variability, :financing, :amount, :days_between_payments, :total_number_of_payments, :current_payment_number, :expiry, :name, :start_date end |