Class: Stripe::InvoiceService::UpdateParams::AmountsDue

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/services/invoice_service.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(amount: nil, days_until_due: nil, description: nil, due_date: nil) ⇒ AmountsDue

Returns a new instance of AmountsDue.



37
38
39
40
41
42
# File 'lib/stripe/services/invoice_service.rb', line 37

def initialize(amount: nil, days_until_due: nil, description: nil, due_date: nil)
  @amount = amount
  @days_until_due = days_until_due
  @description = description
  @due_date = due_date
end

Instance Attribute Details

#amountObject

The amount in cents (or local equivalent).



29
30
31
# File 'lib/stripe/services/invoice_service.rb', line 29

def amount
  @amount
end

#days_until_dueObject

Number of days from when invoice is finalized until the payment is due.



31
32
33
# File 'lib/stripe/services/invoice_service.rb', line 31

def days_until_due
  @days_until_due
end

#descriptionObject

An arbitrary string attached to the object. Often useful for displaying to users.



33
34
35
# File 'lib/stripe/services/invoice_service.rb', line 33

def description
  @description
end

#due_dateObject

Date on which a payment plan’s payment is due.



35
36
37
# File 'lib/stripe/services/invoice_service.rb', line 35

def due_date
  @due_date
end