Class: CheckoutSdk::Common::Headers

Inherits:
Object
  • Object
show all
Defined in:
lib/checkout_sdk/common/headers.rb

Overview

Optional HTTP headers that callers can pass to a client method, mirroring the SDK’s ‘Headers` pattern. Currently exposes `If-Match` (required by endpoints with optimistic-concurrency semantics, e.g. update reserve rule); future shared headers can be added here.

Instance Attribute Summary collapse

Instance Attribute Details

#if_matchString

Returns ETag value to forward as the ‘If-Match` HTTP header.

Returns:

  • (String)

    ETag value to forward as the ‘If-Match` HTTP header.



12
13
14
# File 'lib/checkout_sdk/common/headers.rb', line 12

class Headers
  attr_accessor :if_match
end