Class: Inttegro::Customer::AddSelectedProductPriceRequest

Inherits:
T::Struct
  • Object
show all
Defined in:
lib/inttegro/customer/add_selected_product_price_request.rb

Overview

Typed representation of the add selected product price request 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

Instance Attribute Details

#about ⇒ String? (readonly)

Optional internal description for the new price

Optional in the API payload; omitted values default to nil. Wire name: about.

Returns:

  • (String, nil)


50
51
52
53
54
55
56
# File 'lib/inttegro/customer/add_selected_product_price_request.rb', line 50

class AddSelectedProductPriceRequest < T::Struct
  const :product_id, String
  const :label, T.nilable(String), default: nil
  const :about, T.nilable(String), default: nil
  const :type, Inttegro::Customer::AddSelectedProductPriceRequestType
  const :customer_selected_amount, Inttegro::Customer::AddSelectedProductPriceRequestCustomerSelectedAmount
end

#customer_selected_amount ⇒ Inttegro::Customer::AddSelectedProductPriceRequestCustomerSelectedAmount (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/add_selected_product_price_request.rb', line 50

class AddSelectedProductPriceRequest < T::Struct
  const :product_id, String
  const :label, T.nilable(String), default: nil
  const :about, T.nilable(String), default: nil
  const :type, Inttegro::Customer::AddSelectedProductPriceRequestType
  const :customer_selected_amount, Inttegro::Customer::AddSelectedProductPriceRequestCustomerSelectedAmount
end

#label ⇒ String? (readonly)

Optional short label for the new price

Optional in the API payload; omitted values default to nil. Wire name: label.

Returns:

  • (String, nil)


50
51
52
53
54
55
56
# File 'lib/inttegro/customer/add_selected_product_price_request.rb', line 50

class AddSelectedProductPriceRequest < T::Struct
  const :product_id, String
  const :label, T.nilable(String), default: nil
  const :about, T.nilable(String), default: nil
  const :type, Inttegro::Customer::AddSelectedProductPriceRequestType
  const :customer_selected_amount, Inttegro::Customer::AddSelectedProductPriceRequestCustomerSelectedAmount
end

#product_id ⇒ String (readonly)

Product ID to attach the new price to

Required in the API payload. Wire name: product_id.

Returns:

  • (String)


50
51
52
53
54
55
56
# File 'lib/inttegro/customer/add_selected_product_price_request.rb', line 50

class AddSelectedProductPriceRequest < T::Struct
  const :product_id, String
  const :label, T.nilable(String), default: nil
  const :about, T.nilable(String), default: nil
  const :type, Inttegro::Customer::AddSelectedProductPriceRequestType
  const :customer_selected_amount, Inttegro::Customer::AddSelectedProductPriceRequestCustomerSelectedAmount
end

#type ⇒ Inttegro::Customer::AddSelectedProductPriceRequestType (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/add_selected_product_price_request.rb', line 50

class AddSelectedProductPriceRequest < T::Struct
  const :product_id, String
  const :label, T.nilable(String), default: nil
  const :about, T.nilable(String), default: nil
  const :type, Inttegro::Customer::AddSelectedProductPriceRequestType
  const :customer_selected_amount, Inttegro::Customer::AddSelectedProductPriceRequestCustomerSelectedAmount
end