Class: Inttegro::PaymentMethod::UpdateRequest
- Inherits:
-
T::Struct
- Object
- T::Struct
- Inttegro::PaymentMethod::UpdateRequest
- Defined in:
- lib/inttegro/payment_method/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
-
#active ⇒ Boolean?
readonly
Set to
trueto activate the payment method orfalseto mark it inactive. -
#archived ⇒ Boolean?
readonly
Set to
trueto archive the payment method orfalseto unarchive it. -
#custom_data ⇒ Inttegro::CustomDataPatch?
readonly
Changes to merchant-defined data.
-
#owner ⇒ Inttegro::PaymentMethod::UpdateRequestOwner?
readonly
Owner details to patch onto the payment method.
-
#payment_method_id ⇒ String
readonly
ID of the payment method to update.
Instance Attribute Details
#active ⇒ Boolean? (readonly)
Set to true to activate the payment method or false to mark it inactive.
Optional in the API payload; omitted values default to nil. Wire name: active.
50 51 52 53 54 55 56 |
# File 'lib/inttegro/payment_method/update_request.rb', line 50 class UpdateRequest < T::Struct const :payment_method_id, String const :custom_data, T.nilable(Inttegro::CustomDataPatch), default: nil const :active, T.nilable(T::Boolean), default: nil const :archived, T.nilable(T::Boolean), default: nil const :owner, T.nilable(Inttegro::PaymentMethod::UpdateRequestOwner), default: nil end |
#archived ⇒ Boolean? (readonly)
Set to true to archive the payment method or false to unarchive it.
Optional in the API payload; omitted values default to nil. Wire name: archived.
50 51 52 53 54 55 56 |
# File 'lib/inttegro/payment_method/update_request.rb', line 50 class UpdateRequest < T::Struct const :payment_method_id, String const :custom_data, T.nilable(Inttegro::CustomDataPatch), default: nil const :active, T.nilable(T::Boolean), default: nil const :archived, T.nilable(T::Boolean), default: nil const :owner, T.nilable(Inttegro::PaymentMethod::UpdateRequestOwner), default: nil end |
#custom_data ⇒ Inttegro::CustomDataPatch? (readonly)
Changes to merchant-defined data. JSON null removes a key; every other JSON value is serialized to a string.
Optional in the API payload; omitted values default to nil. Wire name: custom_data.
50 51 52 53 54 55 56 |
# File 'lib/inttegro/payment_method/update_request.rb', line 50 class UpdateRequest < T::Struct const :payment_method_id, String const :custom_data, T.nilable(Inttegro::CustomDataPatch), default: nil const :active, T.nilable(T::Boolean), default: nil const :archived, T.nilable(T::Boolean), default: nil const :owner, T.nilable(Inttegro::PaymentMethod::UpdateRequestOwner), default: nil end |
#owner ⇒ Inttegro::PaymentMethod::UpdateRequestOwner? (readonly)
Owner details to patch onto the payment method.
Optional in the API payload; omitted values default to nil. Wire name: owner.
50 51 52 53 54 55 56 |
# File 'lib/inttegro/payment_method/update_request.rb', line 50 class UpdateRequest < T::Struct const :payment_method_id, String const :custom_data, T.nilable(Inttegro::CustomDataPatch), default: nil const :active, T.nilable(T::Boolean), default: nil const :archived, T.nilable(T::Boolean), default: nil const :owner, T.nilable(Inttegro::PaymentMethod::UpdateRequestOwner), default: nil end |
#payment_method_id ⇒ String (readonly)
ID of the payment method to update
Required in the API payload. Wire name: payment_method_id.
50 51 52 53 54 55 56 |
# File 'lib/inttegro/payment_method/update_request.rb', line 50 class UpdateRequest < T::Struct const :payment_method_id, String const :custom_data, T.nilable(Inttegro::CustomDataPatch), default: nil const :active, T.nilable(T::Boolean), default: nil const :archived, T.nilable(T::Boolean), default: nil const :owner, T.nilable(Inttegro::PaymentMethod::UpdateRequestOwner), default: nil end |