Sha256: 07f1e0124340e0cce37d9fe7b7f11d161f8912c60b4ec088c96e898a52683f86
Contents?: true
Size: 1.28 KB
Versions: 14
Compression:
Stored size: 1.28 KB
Contents
require_relative '../service' module Adyen class PaymentInstrumentGroupsApi < Service attr_accessor :service, :version def initialize(client, version = DEFAULT_VERSION) super(client, version, 'BalancePlatform') end def create_payment_instrument_group(request, headers: {}) endpoint = '/paymentInstrumentGroups'.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 get_all_transaction_rules_for_payment_instrument_group(id, headers: {}) endpoint = '/paymentInstrumentGroups/{id}/transactionRules'.gsub(/{.+?}/, '%s') endpoint = endpoint.gsub(%r{^/}, '') endpoint = format(endpoint, id) action = { method: 'get', url: endpoint } @client.call_adyen_api(@service, action, {}, headers, @version) end def get_payment_instrument_group(id, headers: {}) endpoint = '/paymentInstrumentGroups/{id}'.gsub(/{.+?}/, '%s') endpoint = endpoint.gsub(%r{^/}, '') endpoint = format(endpoint, id) action = { method: 'get', url: endpoint } @client.call_adyen_api(@service, action, {}, headers, @version) end end end
Version data entries
14 entries across 14 versions & 1 rubygems