class Ingenico::Connect::SDK::IdempotenceException

This exception is thrown when a response from the Ingenico ePayments platform indicates a request with the same idempotence_key was received earlier. The idempotence_request_timestamp indicates the time when the first request with this idempotence_key arrived.

@attr_reader [String] idempotence_key The idempotence key used in the request. @attr_reader [Integer] idempotence_request_timestamp A timestamp indicating the arrival time of the request that conflicts with the request just sent.

Attributes

idempotence_key[R]
idempotence_request_timestamp[R]

Public Class Methods

new(status_code, response_body, error_id, errors, idempotence_key, idempotence_request_timestamp, message='the Ingenico ePayments platform returned a duplicate request error response') click to toggle source

Create a new IdempotenceException @see ApiException#initialize

# File lib/ingenico/connect/sdk/idempotence_exception.rb, line 13
def initialize(status_code, response_body, error_id, errors, idempotence_key,
               idempotence_request_timestamp,
               message='the Ingenico ePayments platform returned a duplicate request error response')
  super(status_code, response_body, error_id, errors, message)
  @idempotence_key = idempotence_key
  @idempotence_request_timestamp = idempotence_request_timestamp
end