class
Hamilton::Types::LabeledPrice
- Hamilton::Types::LabeledPrice
- Reference
- Object
Overview
This object represents a portion of the price for goods or services.
Included Modules
- Hamilton::Types::Common
- JSON::Serializable
Defined in:
types/labeled_price.crConstructors
- .new(pull : JSON::PullParser)
- .new(params)
- .new(*, __pull_for_json_serializable pull : JSON::PullParser)
- .new(**params)
Instance Method Summary
-
#amount : Int32
Price of the product in the smallest units of the currency (integer, not float/double).
-
#amount=(amount : Int32)
Price of the product in the smallest units of the currency (integer, not float/double).
-
#label : String
Portion label.
-
#label=(label : String)
Portion label.
-
#non_nil_fields : Array(String)
List of available non-nil fields.
-
#non_nil_fields=(non_nil_fields : Array(String))
List of available non-nil fields.
Instance methods inherited from class Reference
==(other : Hamilton::Any)
==
Instance methods inherited from class Object
===(other : Hamilton::Any)
===
Constructor Detail
Instance Method Detail
def amount : Int32
#
Price of the product in the smallest units of the currency (integer, not float/double).
def amount=(amount : Int32)
#
Price of the product in the smallest units of the currency (integer, not float/double).