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.



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

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).



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

def amount
  @amount
end

#days_until_dueObject

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



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

def days_until_due
  @days_until_due
end

#descriptionObject

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



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

def description
  @description
end

#due_dateObject

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



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

def due_date
  @due_date
end