Class: Stripe::PaymentPlanUpdateParams::Schedule::AmountsDue::Amount

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/params/payment_plan_update_params.rb

Defined Under Namespace

Classes: DueDate, FixedAmount

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#descriptionObject

Optional description for this installment.



47
48
49
# File 'lib/stripe/params/payment_plan_update_params.rb', line 47

def description
  @description
end

#due_dateObject

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_amountObject

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

#idObject

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

#percentageObject

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

#typeObject

Either 'fixed_amount' or 'percentage'.



57
58
59
# File 'lib/stripe/params/payment_plan_update_params.rb', line 57

def type
  @type
end