Class: Inttegro::Price::UpdateRequest

Inherits:
T::Struct
  • Object
show all
Defined in:
lib/inttegro/price/update_request.rb

Overview

Typed representation of the update 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)

Longer description of this price (max 500 characters)

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

Returns:

  • (String, nil)


35
36
37
38
39
# File 'lib/inttegro/price/update_request.rb', line 35

class UpdateRequest < T::Struct
  const :price_id, String
  const :label, T.nilable(String), default: nil
  const :about, T.nilable(String), default: nil
end

#label ⇒ String? (readonly)

Short label for this price (max 100 characters)

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

Returns:

  • (String, nil)


35
36
37
38
39
# File 'lib/inttegro/price/update_request.rb', line 35

class UpdateRequest < T::Struct
  const :price_id, String
  const :label, T.nilable(String), default: nil
  const :about, T.nilable(String), default: nil
end

#price_id ⇒ String (readonly)

The unique identifier of the price to update

Required in the API payload. Wire name: price_id.

Returns:

  • (String)


35
36
37
38
39
# File 'lib/inttegro/price/update_request.rb', line 35

class UpdateRequest < T::Struct
  const :price_id, String
  const :label, T.nilable(String), default: nil
  const :about, T.nilable(String), default: nil
end