Class: Inttegro::Customer::SelectedCatalogPriceParams
- Inherits:
-
T::Struct
- Object
- T::Struct
- Inttegro::Customer::SelectedCatalogPriceParams
- Defined in:
- lib/inttegro/customer/selected_catalog_price_params.rb
Overview
Typed representation of the selected catalog price params object in the Inttegro API.
This generated model is immutable. Construct it with .new, or decode a string-keyed API
payload with .from_hash. #serialize produces a string-keyed hash using the original wire
field names and serialized enum values.
Instance Attribute Summary collapse
-
#about ⇒ String?
readonly
Longer description of this price.
-
#customer_selected_amount ⇒ Inttegro::Customer::SelectedCatalogPriceParamsCustomerSelectedAmount
readonly
Available only to Commerce internal services and Upper private beta organizations and applications.
-
#label ⇒ String?
readonly
Short label for this price.
-
#product_id ⇒ String
readonly
Product ID to associate this price with.
-
#type ⇒ Inttegro::Customer::SelectedCatalogPriceParamsType
readonly
Value of the
typefield in the Inttegro API payload.
Instance Attribute Details
#about ⇒ String? (readonly)
Longer description of this price
Optional in the API payload; omitted values default to nil. Wire name: about.
50 51 52 53 54 55 56 |
# File 'lib/inttegro/customer/selected_catalog_price_params.rb', line 50 class SelectedCatalogPriceParams < T::Struct const :product_id, String const :label, T.nilable(String), default: nil const :about, T.nilable(String), default: nil const :type, Inttegro::Customer::SelectedCatalogPriceParamsType const :customer_selected_amount, Inttegro::Customer::SelectedCatalogPriceParamsCustomerSelectedAmount end |
#customer_selected_amount ⇒ Inttegro::Customer::SelectedCatalogPriceParamsCustomerSelectedAmount (readonly)
Available only to Commerce internal services and Upper private beta organizations and applications.
Required in the API payload. Wire name: customer_selected_amount.
50 51 52 53 54 55 56 |
# File 'lib/inttegro/customer/selected_catalog_price_params.rb', line 50 class SelectedCatalogPriceParams < T::Struct const :product_id, String const :label, T.nilable(String), default: nil const :about, T.nilable(String), default: nil const :type, Inttegro::Customer::SelectedCatalogPriceParamsType const :customer_selected_amount, Inttegro::Customer::SelectedCatalogPriceParamsCustomerSelectedAmount end |
#label ⇒ String? (readonly)
Short label for this price
Optional in the API payload; omitted values default to nil. Wire name: label.
50 51 52 53 54 55 56 |
# File 'lib/inttegro/customer/selected_catalog_price_params.rb', line 50 class SelectedCatalogPriceParams < T::Struct const :product_id, String const :label, T.nilable(String), default: nil const :about, T.nilable(String), default: nil const :type, Inttegro::Customer::SelectedCatalogPriceParamsType const :customer_selected_amount, Inttegro::Customer::SelectedCatalogPriceParamsCustomerSelectedAmount end |
#product_id ⇒ String (readonly)
Product ID to associate this price with. It is immutable once set.
Required in the API payload. Wire name: product_id.
50 51 52 53 54 55 56 |
# File 'lib/inttegro/customer/selected_catalog_price_params.rb', line 50 class SelectedCatalogPriceParams < T::Struct const :product_id, String const :label, T.nilable(String), default: nil const :about, T.nilable(String), default: nil const :type, Inttegro::Customer::SelectedCatalogPriceParamsType const :customer_selected_amount, Inttegro::Customer::SelectedCatalogPriceParamsCustomerSelectedAmount end |
#type ⇒ Inttegro::Customer::SelectedCatalogPriceParamsType (readonly)
Value of the type field in the Inttegro API payload.
Required in the API payload. Wire name: type.
50 51 52 53 54 55 56 |
# File 'lib/inttegro/customer/selected_catalog_price_params.rb', line 50 class SelectedCatalogPriceParams < T::Struct const :product_id, String const :label, T.nilable(String), default: nil const :about, T.nilable(String), default: nil const :type, Inttegro::Customer::SelectedCatalogPriceParamsType const :customer_selected_amount, Inttegro::Customer::SelectedCatalogPriceParamsCustomerSelectedAmount end |