Class: Inttegro::Refund::RequestMeta

Inherits:
T::Struct
  • Object
show all
Defined in:
lib/inttegro/refund/request_meta.rb

Overview

Typed representation of the request meta 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

#idempotency_key ⇒ String? (readonly)

Stable retry key carried inside request_meta. It must match the Idempotency-Key header when both are provided.

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

Returns:

  • (String, nil)


31
32
33
34
# File 'lib/inttegro/refund/request_meta.rb', line 31

class RequestMeta < T::Struct
  const :idempotency_key, T.nilable(String), default: nil
  const :response, T.nilable(Inttegro::Request::Response), default: nil
end

#response ⇒ Inttegro::Request::Response? (readonly)

Caller-controlled preferences for computing and representing the successful response.

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

Returns:



31
32
33
34
# File 'lib/inttegro/refund/request_meta.rb', line 31

class RequestMeta < T::Struct
  const :idempotency_key, T.nilable(String), default: nil
  const :response, T.nilable(Inttegro::Request::Response), default: nil
end