Class: Stripe::PaymentPlanUpdateParams::Schedule::AmountsDue::Amount
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::PaymentPlanUpdateParams::Schedule::AmountsDue::Amount
- Defined in:
- lib/stripe/params/payment_plan_update_params.rb
Defined Under Namespace
Classes: DueDate, FixedAmount
Instance Attribute Summary collapse
-
#description ⇒ Object
Optional description for this installment.
-
#due_date ⇒ Object
When this installment is due.
-
#fixed_amount ⇒ Object
Required when type is 'fixed_amount'.
-
#id ⇒ Object
Optional stable identifier for the installment entry.
-
#percentage ⇒ Object
The installment percentage of the total.
-
#type ⇒ Object
Either 'fixed_amount' or 'percentage'.
Instance Method Summary collapse
-
#initialize(description: nil, due_date: nil, fixed_amount: nil, id: nil, percentage: nil, type: nil) ⇒ Amount
constructor
A new instance of Amount.
Methods inherited from RequestParams
attr_accessor, coerce_params, coerce_value, field_encodings, new, #to_h
Constructor Details
#initialize(description: nil, due_date: nil, fixed_amount: nil, id: nil, percentage: nil, type: nil) ⇒ Amount
Returns a new instance of Amount.
59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 |
# File 'lib/stripe/params/payment_plan_update_params.rb', line 59 def initialize( description: nil, due_date: nil, fixed_amount: nil, id: nil, percentage: nil, type: nil ) @description = description @due_date = due_date @fixed_amount = fixed_amount @id = id @percentage = percentage @type = type end |
Instance Attribute Details
#description ⇒ Object
Optional description for this installment.
47 48 49 |
# File 'lib/stripe/params/payment_plan_update_params.rb', line 47 def description @description end |
#due_date ⇒ Object
When this installment is due.
49 50 51 |
# File 'lib/stripe/params/payment_plan_update_params.rb', line 49 def due_date @due_date end |
#fixed_amount ⇒ Object
Required when type is 'fixed_amount'.
51 52 53 |
# File 'lib/stripe/params/payment_plan_update_params.rb', line 51 def fixed_amount @fixed_amount end |
#id ⇒ Object
Optional stable identifier for the installment entry.
53 54 55 |
# File 'lib/stripe/params/payment_plan_update_params.rb', line 53 def id @id end |
#percentage ⇒ Object
The installment percentage of the total. Required when type is 'percentage'.
55 56 57 |
# File 'lib/stripe/params/payment_plan_update_params.rb', line 55 def percentage @percentage end |
#type ⇒ Object
Either 'fixed_amount' or 'percentage'.
57 58 59 |
# File 'lib/stripe/params/payment_plan_update_params.rb', line 57 def type @type end |