Class: Stripe::InvoiceService::CreateParams::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.



736
737
738
739
740
741
# File 'lib/stripe/services/invoice_service.rb', line 736

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



728
729
730
# File 'lib/stripe/services/invoice_service.rb', line 728

def amount
  @amount
end

#days_until_dueObject

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



730
731
732
# File 'lib/stripe/services/invoice_service.rb', line 730

def days_until_due
  @days_until_due
end

#descriptionObject

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



732
733
734
# File 'lib/stripe/services/invoice_service.rb', line 732

def description
  @description
end

#due_dateObject

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



734
735
736
# File 'lib/stripe/services/invoice_service.rb', line 734

def due_date
  @due_date
end