class Ingenico::Connect::SDK::CallContext

A CallContext is used to identify requests and manage idempotent requests. A CallContext contains the following:

idempotence_key

A randomly generated key used to identify requests

idempotence_request_timestamp

If a previous request arrived with the same idempotence key, this value will be set to a timestamp of that request.

@attr_reader [String] idempotence_key The idempotence key used to identify this request.

If two requests share the same _idempotence_key_, they are considered to be the same request
and only the first request will be processed.

@attr [Integer] idempotence_request_timestamp If two or more requests arrive at the Ingenico ePayments platform with the same idempotence_key,

the _idempotence_request_timestamp_ will be set to the arrival time of the first of these requests.

Attributes

idempotence_key[R]
idempotence_request_timestamp[RW]

Public Class Methods

new(idempotence_key=nil) click to toggle source
# File lib/ingenico/connect/sdk/call_context.rb, line 19
def initialize(idempotence_key=nil)
  @idempotence_key = idempotence_key
end