Class: Stripe::Terminal::Reader::SetReaderDisplayParams::Cart
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::Terminal::Reader::SetReaderDisplayParams::Cart
- Defined in:
- lib/stripe/resources/terminal/reader.rb
Defined Under Namespace
Classes: LineItem
Instance Attribute Summary collapse
-
#currency ⇒ Object
Three-letter [ISO currency code](www.iso.org/iso-4217-currency-codes.html), in lowercase.
-
#line_items ⇒ Object
Array of line items that were purchased.
-
#tax ⇒ Object
The amount of tax in cents.
-
#total ⇒ Object
Total balance of cart due in cents.
Instance Method Summary collapse
-
#initialize(currency: nil, line_items: nil, tax: nil, total: nil) ⇒ Cart
constructor
A new instance of Cart.
Methods inherited from RequestParams
Constructor Details
#initialize(currency: nil, line_items: nil, tax: nil, total: nil) ⇒ Cart
Returns a new instance of Cart.
762 763 764 765 766 767 |
# File 'lib/stripe/resources/terminal/reader.rb', line 762 def initialize(currency: nil, line_items: nil, tax: nil, total: nil) @currency = currency @line_items = line_items @tax = tax @total = total end |
Instance Attribute Details
#currency ⇒ Object
Three-letter [ISO currency code](www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](stripe.com/docs/currencies).
751 752 753 |
# File 'lib/stripe/resources/terminal/reader.rb', line 751 def currency @currency end |
#line_items ⇒ Object
Array of line items that were purchased.
754 755 756 |
# File 'lib/stripe/resources/terminal/reader.rb', line 754 def line_items @line_items end |
#tax ⇒ Object
The amount of tax in cents.
757 758 759 |
# File 'lib/stripe/resources/terminal/reader.rb', line 757 def tax @tax end |
#total ⇒ Object
Total balance of cart due in cents.
760 761 762 |
# File 'lib/stripe/resources/terminal/reader.rb', line 760 def total @total end |