Class: Stripe::Terminal::Reader::Action::SetReaderDisplay::Cart
- Inherits:
-
StripeObject
- Object
- StripeObject
- Stripe::Terminal::Reader::Action::SetReaderDisplay::Cart
- Defined in:
- lib/stripe/resources/terminal/reader.rb
Defined Under Namespace
Classes: LineItem
Constant Summary
Constants inherited from StripeObject
StripeObject::RESERVED_FIELD_NAMES
Instance Attribute Summary collapse
-
#currency ⇒ Object
readonly
Three-letter [ISO currency code](www.iso.org/iso-4217-currency-codes.html), in lowercase.
-
#line_items ⇒ Object
readonly
List of line items in the cart.
-
#tax ⇒ Object
readonly
Tax amount for the entire cart.
-
#total ⇒ Object
readonly
Total amount for the entire cart, including tax.
Attributes inherited from StripeObject
Class Method Summary collapse
Methods inherited from StripeObject
#==, #[], #[]=, #_get_inner_class_type, additive_object_param, additive_object_param?, #as_json, construct_from, #deleted?, #dirty!, #each, #eql?, #hash, #initialize, #inspect, #keys, #marshal_dump, #marshal_load, protected_fields, #serialize_params, #to_hash, #to_json, #to_s, #update_attributes, #values
Constructor Details
This class inherits a constructor from Stripe::StripeObject
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Stripe::StripeObject
Instance Attribute Details
#currency ⇒ Object (readonly)
Three-letter [ISO currency code](www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](stripe.com/docs/currencies).
422 423 424 |
# File 'lib/stripe/resources/terminal/reader.rb', line 422 def currency @currency end |
#line_items ⇒ Object (readonly)
List of line items in the cart.
424 425 426 |
# File 'lib/stripe/resources/terminal/reader.rb', line 424 def line_items @line_items end |
#tax ⇒ Object (readonly)
Tax amount for the entire cart. A positive integer in the [smallest currency unit](stripe.com/docs/currencies#zero-decimal).
426 427 428 |
# File 'lib/stripe/resources/terminal/reader.rb', line 426 def tax @tax end |
#total ⇒ Object (readonly)
Total amount for the entire cart, including tax. A positive integer in the [smallest currency unit](stripe.com/docs/currencies#zero-decimal).
428 429 430 |
# File 'lib/stripe/resources/terminal/reader.rb', line 428 def total @total end |
Class Method Details
.field_remappings ⇒ Object
434 435 436 |
# File 'lib/stripe/resources/terminal/reader.rb', line 434 def self.field_remappings @field_remappings = {} end |
.inner_class_types ⇒ Object
430 431 432 |
# File 'lib/stripe/resources/terminal/reader.rb', line 430 def self.inner_class_types @inner_class_types = { line_items: LineItem } end |