Sha256: 17f532e7cff9b68c74fad9a553ef1f107b3decb5acf91d476f593095bf9bfe19
Contents?: true
Size: 1.87 KB
Versions: 15
Compression:
Stored size: 1.87 KB
Contents
require_relative './service' module Adyen class Disputes < Service attr_accessor :service, :version DEFAULT_VERSION = 30 def initialize(client, version = DEFAULT_VERSION) super(client, version, 'Disputes') end def accept_dispute(request, headers: {}) endpoint = '/acceptDispute'.gsub(/{.+?}/, '%s') endpoint = endpoint.gsub(%r{^/}, '') endpoint = format(endpoint) action = { method: 'post', url: endpoint } @client.call_adyen_api(@service, action, request, headers, @version) end def defend_dispute(request, headers: {}) endpoint = '/defendDispute'.gsub(/{.+?}/, '%s') endpoint = endpoint.gsub(%r{^/}, '') endpoint = format(endpoint) action = { method: 'post', url: endpoint } @client.call_adyen_api(@service, action, request, headers, @version) end def delete_dispute_defense_document(request, headers: {}) endpoint = '/deleteDisputeDefenseDocument'.gsub(/{.+?}/, '%s') endpoint = endpoint.gsub(%r{^/}, '') endpoint = format(endpoint) action = { method: 'post', url: endpoint } @client.call_adyen_api(@service, action, request, headers, @version) end def retrieve_applicable_defense_reasons(request, headers: {}) endpoint = '/retrieveApplicableDefenseReasons'.gsub(/{.+?}/, '%s') endpoint = endpoint.gsub(%r{^/}, '') endpoint = format(endpoint) action = { method: 'post', url: endpoint } @client.call_adyen_api(@service, action, request, headers, @version) end def supply_defense_document(request, headers: {}) endpoint = '/supplyDefenseDocument'.gsub(/{.+?}/, '%s') endpoint = endpoint.gsub(%r{^/}, '') endpoint = format(endpoint) action = { method: 'post', url: endpoint } @client.call_adyen_api(@service, action, request, headers, @version) end end end
Version data entries
15 entries across 15 versions & 1 rubygems