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.



766
767
768
769
770
771
# File 'lib/stripe/services/invoice_service.rb', line 766

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



758
759
760
# File 'lib/stripe/services/invoice_service.rb', line 758

def amount
  @amount
end

#days_until_dueObject

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



760
761
762
# File 'lib/stripe/services/invoice_service.rb', line 760

def days_until_due
  @days_until_due
end

#descriptionObject

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



762
763
764
# File 'lib/stripe/services/invoice_service.rb', line 762

def description
  @description
end

#due_dateObject

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



764
765
766
# File 'lib/stripe/services/invoice_service.rb', line 764

def due_date
  @due_date
end