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?, field_encodings, #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).
430 431 432 |
# File 'lib/stripe/resources/terminal/reader.rb', line 430 def currency @currency end |
#line_items ⇒ Object (readonly)
List of line items in the cart.
432 433 434 |
# File 'lib/stripe/resources/terminal/reader.rb', line 432 def line_items @line_items end |
#tax ⇒ Object (readonly)
Tax amount for the entire cart. A positive integer in the [smallest currency unit](docs.stripe.com/currencies#zero-decimal).
434 435 436 |
# File 'lib/stripe/resources/terminal/reader.rb', line 434 def tax @tax end |
#total ⇒ Object (readonly)
Total amount for the entire cart, including tax. A positive integer in the [smallest currency unit](docs.stripe.com/currencies#zero-decimal).
436 437 438 |
# File 'lib/stripe/resources/terminal/reader.rb', line 436 def total @total end |
Class Method Details
.field_remappings ⇒ Object
442 443 444 |
# File 'lib/stripe/resources/terminal/reader.rb', line 442 def self.field_remappings @field_remappings = {} end |
.inner_class_types ⇒ Object
438 439 440 |
# File 'lib/stripe/resources/terminal/reader.rb', line 438 def self.inner_class_types @inner_class_types = { line_items: LineItem } end |