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

#acceptString

Returns value to forward as the Accept HTTP header, e.g. application/json;schema_version=3.0 for Accounts API schema negotiation.

Returns:

  • (String)

    value to forward as the Accept HTTP header, e.g. application/json;schema_version=3.0 for Accounts API schema negotiation.



15
16
17
# File 'lib/checkout_sdk/common/headers.rb', line 15

class Headers
  attr_accessor :if_match, :accept
end

#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.



15
16
17
# File 'lib/checkout_sdk/common/headers.rb', line 15

class Headers
  attr_accessor :if_match, :accept
end