From 6e0334b9f40e9330a8e962ccbed401b32b9a8c2b Mon Sep 17 00:00:00 2001 From: Ingenico ePayments Date: Fri, 15 Sep 2017 14:55:08 +0200 Subject: [PATCH] Release 1.10.0. --- connect-sdk-ruby.gemspec | 2 +- .../payments/find_payments_example.rb | 30 ++++++++++ .../merchant/payouts/find_payouts_example.rb | 30 ++++++++++ .../merchant/refunds/find_refunds_example.rb | 30 ++++++++++ .../domain/payment/find_payments_response.rb | 59 +++++++++++++++++++ .../domain/payout/find_payouts_response.rb | 59 +++++++++++++++++++ .../domain/refund/find_refunds_response.rb | 59 +++++++++++++++++++ .../merchant/payments/find_payments_params.rb | 38 ++++++++++++ .../sdk/merchant/payments/payments_client.rb | 30 ++++++++++ .../merchant/payouts/find_payouts_params.rb | 38 ++++++++++++ .../sdk/merchant/payouts/payouts_client.rb | 30 ++++++++++ .../merchant/refunds/find_refunds_params.rb | 38 ++++++++++++ .../sdk/merchant/refunds/refunds_client.rb | 30 ++++++++++ .../connect/sdk/meta_data_provider.rb | 2 +- 14 files changed, 473 insertions(+), 2 deletions(-) create mode 100644 examples/merchant/payments/find_payments_example.rb create mode 100644 examples/merchant/payouts/find_payouts_example.rb create mode 100644 examples/merchant/refunds/find_refunds_example.rb create mode 100644 lib/ingenico/connect/sdk/domain/payment/find_payments_response.rb create mode 100644 lib/ingenico/connect/sdk/domain/payout/find_payouts_response.rb create mode 100644 lib/ingenico/connect/sdk/domain/refund/find_refunds_response.rb create mode 100644 lib/ingenico/connect/sdk/merchant/payments/find_payments_params.rb create mode 100644 lib/ingenico/connect/sdk/merchant/payouts/find_payouts_params.rb create mode 100644 lib/ingenico/connect/sdk/merchant/refunds/find_refunds_params.rb diff --git a/connect-sdk-ruby.gemspec b/connect-sdk-ruby.gemspec index 72f8808..1db2dba 100644 --- a/connect-sdk-ruby.gemspec +++ b/connect-sdk-ruby.gemspec @@ -1,6 +1,6 @@ Gem::Specification.new do |spec| spec.name = 'connect-sdk-ruby' - spec.version = '1.9.0' + spec.version = '1.10.0' spec.authors = ['Ingenico ePayments'] spec.email = ['github@epay.ingenico.com'] spec.summary = %q{SDK to communicate with the Ingenico ePayments platform using the Ingenico Connect Server API} diff --git a/examples/merchant/payments/find_payments_example.rb b/examples/merchant/payments/find_payments_example.rb new file mode 100644 index 0000000..d667823 --- /dev/null +++ b/examples/merchant/payments/find_payments_example.rb @@ -0,0 +1,30 @@ +# +# This class was auto-generated from the API references found at +# https://epayments-api.developer-ingenico.com/s2sapi/v1/ +# +require 'ingenico/connect/sdk/factory' +require 'ingenico/connect/sdk/merchant/payments/find_payments_params' + +Payments = Ingenico::Connect::SDK::Merchant::Payments + +def example + get_client do |client| + query = Payments::FindPaymentsParams.new + query.merchant_reference = 'AcmeOrder0001' + query.merchant_order_id = 123456 + query.offset = 0 + query.limit = 10 + + response = client.merchant('merchantId').payments().find(query) + end +end + +def get_client + api_key_id = ENV.fetch('connect.api.apiKeyId', 'someKey') + secret_api_key = ENV.fetch('connect.api.secretApiKey', 'someSecret') + configuration_file_name = File.join(__FILE__, '..', '..', 'example_configuration.yml') + yield client = Ingenico::Connect::SDK::Factory.create_client_from_file(configuration_file_name, api_key_id, secret_api_key) +ensure + # Free networking resources when done + client.close unless client.nil? +end diff --git a/examples/merchant/payouts/find_payouts_example.rb b/examples/merchant/payouts/find_payouts_example.rb new file mode 100644 index 0000000..c6d098a --- /dev/null +++ b/examples/merchant/payouts/find_payouts_example.rb @@ -0,0 +1,30 @@ +# +# This class was auto-generated from the API references found at +# https://epayments-api.developer-ingenico.com/s2sapi/v1/ +# +require 'ingenico/connect/sdk/factory' +require 'ingenico/connect/sdk/merchant/payouts/find_payouts_params' + +Payouts = Ingenico::Connect::SDK::Merchant::Payouts + +def example + get_client do |client| + query = Payouts::FindPayoutsParams.new + query.merchant_reference = 'AcmeOrder0001' + query.merchant_order_id = 123456 + query.offset = 0 + query.limit = 10 + + response = client.merchant('merchantId').payouts().find(query) + end +end + +def get_client + api_key_id = ENV.fetch('connect.api.apiKeyId', 'someKey') + secret_api_key = ENV.fetch('connect.api.secretApiKey', 'someSecret') + configuration_file_name = File.join(__FILE__, '..', '..', 'example_configuration.yml') + yield client = Ingenico::Connect::SDK::Factory.create_client_from_file(configuration_file_name, api_key_id, secret_api_key) +ensure + # Free networking resources when done + client.close unless client.nil? +end diff --git a/examples/merchant/refunds/find_refunds_example.rb b/examples/merchant/refunds/find_refunds_example.rb new file mode 100644 index 0000000..1007943 --- /dev/null +++ b/examples/merchant/refunds/find_refunds_example.rb @@ -0,0 +1,30 @@ +# +# This class was auto-generated from the API references found at +# https://epayments-api.developer-ingenico.com/s2sapi/v1/ +# +require 'ingenico/connect/sdk/factory' +require 'ingenico/connect/sdk/merchant/refunds/find_refunds_params' + +Refunds = Ingenico::Connect::SDK::Merchant::Refunds + +def example + get_client do |client| + query = Refunds::FindRefundsParams.new + query.merchant_reference = 'AcmeOrder0001' + query.merchant_order_id = 123456 + query.offset = 0 + query.limit = 10 + + response = client.merchant('merchantId').refunds().find(query) + end +end + +def get_client + api_key_id = ENV.fetch('connect.api.apiKeyId', 'someKey') + secret_api_key = ENV.fetch('connect.api.secretApiKey', 'someSecret') + configuration_file_name = File.join(__FILE__, '..', '..', 'example_configuration.yml') + yield client = Ingenico::Connect::SDK::Factory.create_client_from_file(configuration_file_name, api_key_id, secret_api_key) +ensure + # Free networking resources when done + client.close unless client.nil? +end diff --git a/lib/ingenico/connect/sdk/domain/payment/find_payments_response.rb b/lib/ingenico/connect/sdk/domain/payment/find_payments_response.rb new file mode 100644 index 0000000..daadb92 --- /dev/null +++ b/lib/ingenico/connect/sdk/domain/payment/find_payments_response.rb @@ -0,0 +1,59 @@ +# +# This class was auto-generated from the API references found at +# https://epayments-api.developer-ingenico.com/s2sapi/v1/ +# +require 'ingenico/connect/sdk/data_object' +require 'ingenico/connect/sdk/domain/payment/payment' + +module Ingenico::Connect::SDK + module Domain + module Payment + + class FindPaymentsResponse < Ingenico::Connect::SDK::DataObject + + # Integer + attr_accessor :limit + + # Integer + attr_accessor :offset + + # Array of {Ingenico::Connect::SDK::Domain::Payment::Payment} + attr_accessor :payments + + # Integer + attr_accessor :total_count + + def to_h + hash = super + add_to_hash(hash, 'limit', @limit) + add_to_hash(hash, 'offset', @offset) + add_to_hash(hash, 'payments', @payments) + add_to_hash(hash, 'totalCount', @total_count) + hash + end + + def from_hash(hash) + super + if hash.has_key?('limit') + @limit = hash['limit'] + end + if hash.has_key?('offset') + @offset = hash['offset'] + end + if hash.has_key?('payments') + if !(hash['payments'].is_a? Array) + raise TypeError, "value '%s' is not an Array" % [hash['payments']] + end + @payments = [] + hash['payments'].each do |e| + @payments << Ingenico::Connect::SDK::Domain::Payment::Payment.new_from_hash(e) + end + end + if hash.has_key?('totalCount') + @total_count = hash['totalCount'] + end + end + end + end + end +end diff --git a/lib/ingenico/connect/sdk/domain/payout/find_payouts_response.rb b/lib/ingenico/connect/sdk/domain/payout/find_payouts_response.rb new file mode 100644 index 0000000..f6f1f15 --- /dev/null +++ b/lib/ingenico/connect/sdk/domain/payout/find_payouts_response.rb @@ -0,0 +1,59 @@ +# +# This class was auto-generated from the API references found at +# https://epayments-api.developer-ingenico.com/s2sapi/v1/ +# +require 'ingenico/connect/sdk/data_object' +require 'ingenico/connect/sdk/domain/payout/payout_result' + +module Ingenico::Connect::SDK + module Domain + module Payout + + class FindPayoutsResponse < Ingenico::Connect::SDK::DataObject + + # Integer + attr_accessor :limit + + # Integer + attr_accessor :offset + + # Array of {Ingenico::Connect::SDK::Domain::Payout::PayoutResult} + attr_accessor :payouts + + # Integer + attr_accessor :total_count + + def to_h + hash = super + add_to_hash(hash, 'limit', @limit) + add_to_hash(hash, 'offset', @offset) + add_to_hash(hash, 'payouts', @payouts) + add_to_hash(hash, 'totalCount', @total_count) + hash + end + + def from_hash(hash) + super + if hash.has_key?('limit') + @limit = hash['limit'] + end + if hash.has_key?('offset') + @offset = hash['offset'] + end + if hash.has_key?('payouts') + if !(hash['payouts'].is_a? Array) + raise TypeError, "value '%s' is not an Array" % [hash['payouts']] + end + @payouts = [] + hash['payouts'].each do |e| + @payouts << Ingenico::Connect::SDK::Domain::Payout::PayoutResult.new_from_hash(e) + end + end + if hash.has_key?('totalCount') + @total_count = hash['totalCount'] + end + end + end + end + end +end diff --git a/lib/ingenico/connect/sdk/domain/refund/find_refunds_response.rb b/lib/ingenico/connect/sdk/domain/refund/find_refunds_response.rb new file mode 100644 index 0000000..cbec9a1 --- /dev/null +++ b/lib/ingenico/connect/sdk/domain/refund/find_refunds_response.rb @@ -0,0 +1,59 @@ +# +# This class was auto-generated from the API references found at +# https://epayments-api.developer-ingenico.com/s2sapi/v1/ +# +require 'ingenico/connect/sdk/data_object' +require 'ingenico/connect/sdk/domain/refund/refund_result' + +module Ingenico::Connect::SDK + module Domain + module Refund + + class FindRefundsResponse < Ingenico::Connect::SDK::DataObject + + # Integer + attr_accessor :limit + + # Integer + attr_accessor :offset + + # Array of {Ingenico::Connect::SDK::Domain::Refund::RefundResult} + attr_accessor :refunds + + # Integer + attr_accessor :total_count + + def to_h + hash = super + add_to_hash(hash, 'limit', @limit) + add_to_hash(hash, 'offset', @offset) + add_to_hash(hash, 'refunds', @refunds) + add_to_hash(hash, 'totalCount', @total_count) + hash + end + + def from_hash(hash) + super + if hash.has_key?('limit') + @limit = hash['limit'] + end + if hash.has_key?('offset') + @offset = hash['offset'] + end + if hash.has_key?('refunds') + if !(hash['refunds'].is_a? Array) + raise TypeError, "value '%s' is not an Array" % [hash['refunds']] + end + @refunds = [] + hash['refunds'].each do |e| + @refunds << Ingenico::Connect::SDK::Domain::Refund::RefundResult.new_from_hash(e) + end + end + if hash.has_key?('totalCount') + @total_count = hash['totalCount'] + end + end + end + end + end +end diff --git a/lib/ingenico/connect/sdk/merchant/payments/find_payments_params.rb b/lib/ingenico/connect/sdk/merchant/payments/find_payments_params.rb new file mode 100644 index 0000000..27fbd4e --- /dev/null +++ b/lib/ingenico/connect/sdk/merchant/payments/find_payments_params.rb @@ -0,0 +1,38 @@ +# +# This class was auto-generated from the API references found at +# https://epayments-api.developer-ingenico.com/s2sapi/v1/ +# +require 'ingenico/connect/sdk/param_request' + +module Ingenico::Connect::SDK + module Merchant + module Payments + + # Query parameters for {https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/ruby/payments/find.html Find payments} + class FindPaymentsParams < Ingenico::Connect::SDK::ParamRequest + + # String + attr_accessor :merchant_reference + + # Integer + attr_accessor :merchant_order_id + + # Integer + attr_accessor :offset + + # Integer + attr_accessor :limit + + # Returns an Array of {Ingenico::Connect::SDK::RequestParam} objects representing the attributes of this class + def to_request_parameters + result = [] + add_parameter(result, 'merchantReference', @merchant_reference) + add_parameter(result, 'merchantOrderId', @merchant_order_id) + add_parameter(result, 'offset', @offset) + add_parameter(result, 'limit', @limit) + result + end + end + end + end +end diff --git a/lib/ingenico/connect/sdk/merchant/payments/payments_client.rb b/lib/ingenico/connect/sdk/merchant/payments/payments_client.rb index 05bb612..d89565c 100644 --- a/lib/ingenico/connect/sdk/merchant/payments/payments_client.rb +++ b/lib/ingenico/connect/sdk/merchant/payments/payments_client.rb @@ -11,6 +11,7 @@ require 'ingenico/connect/sdk/domain/payment/cancel_payment_response' require 'ingenico/connect/sdk/domain/payment/complete_payment_response' require 'ingenico/connect/sdk/domain/payment/create_payment_response' +require 'ingenico/connect/sdk/domain/payment/find_payments_response' require 'ingenico/connect/sdk/domain/payment/payment_approval_response' require 'ingenico/connect/sdk/domain/payment/payment_error_response' require 'ingenico/connect/sdk/domain/payment/payment_response' @@ -32,6 +33,35 @@ def initialize(parent, path_context) super(parent, path_context) end + # Resource /{{merchantId}}/payments + # + # {https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/ruby/payments/find.html Find payments} + # query:: {Ingenico::Connect::SDK::Merchant::Payments::FindPaymentsParams} + # context:: {Ingenico::Connect::SDK::CallContext} + # Returns:: {Ingenico::Connect::SDK::Domain::Payment::FindPaymentsResponse} + # Raises:: {Ingenico::Connect::SDK::ValidationException} if the request was not correct and couldn't be processed (HTTP status code 400) + # Raises:: {Ingenico::Connect::SDK::AuthorizationException} if the request was not allowed (HTTP status code 403) + # Raises:: {Ingenico::Connect::SDK::IdempotenceException} if an idempotent request caused a conflict (HTTP status code 409) + # Raises:: {Ingenico::Connect::SDK::ReferenceException} if an object was attempted to be referenced that doesn't exist or has been removed, + # or there was a conflict (HTTP status code 404, 409 or 410) + # Raises:: {Ingenico::Connect::SDK::GlobalCollectException} if something went wrong at the Ingenico ePayments platform, + # the Ingenico ePayments platform was unable to process a message from a downstream partner/acquirer, + # or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) + # Raises:: {Ingenico::Connect::SDK::ApiException} if the Ingenico ePayments platform returned any other error + def find(query, context=nil) + uri = instantiate_uri('/{apiVersion}/{merchantId}/payments', nil) + return @communicator.get( + uri, + client_headers, + query, + Ingenico::Connect::SDK::Domain::Payment::FindPaymentsResponse, + context) + rescue ResponseException => e + error_type = Ingenico::Connect::SDK::Domain::Errors::ErrorResponse + error_object = @communicator.marshaller.unmarshal(e.body, error_type) + raise create_exception(e.status_code, e.body, error_object, context) + end + # Resource /{{merchantId}}/payments # # {https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/ruby/payments/create.html Create payment} diff --git a/lib/ingenico/connect/sdk/merchant/payouts/find_payouts_params.rb b/lib/ingenico/connect/sdk/merchant/payouts/find_payouts_params.rb new file mode 100644 index 0000000..ff2ed5d --- /dev/null +++ b/lib/ingenico/connect/sdk/merchant/payouts/find_payouts_params.rb @@ -0,0 +1,38 @@ +# +# This class was auto-generated from the API references found at +# https://epayments-api.developer-ingenico.com/s2sapi/v1/ +# +require 'ingenico/connect/sdk/param_request' + +module Ingenico::Connect::SDK + module Merchant + module Payouts + + # Query parameters for {https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/ruby/payouts/find.html Find payouts} + class FindPayoutsParams < Ingenico::Connect::SDK::ParamRequest + + # String + attr_accessor :merchant_reference + + # Integer + attr_accessor :merchant_order_id + + # Integer + attr_accessor :offset + + # Integer + attr_accessor :limit + + # Returns an Array of {Ingenico::Connect::SDK::RequestParam} objects representing the attributes of this class + def to_request_parameters + result = [] + add_parameter(result, 'merchantReference', @merchant_reference) + add_parameter(result, 'merchantOrderId', @merchant_order_id) + add_parameter(result, 'offset', @offset) + add_parameter(result, 'limit', @limit) + result + end + end + end + end +end diff --git a/lib/ingenico/connect/sdk/merchant/payouts/payouts_client.rb b/lib/ingenico/connect/sdk/merchant/payouts/payouts_client.rb index 68502c3..b1b703c 100644 --- a/lib/ingenico/connect/sdk/merchant/payouts/payouts_client.rb +++ b/lib/ingenico/connect/sdk/merchant/payouts/payouts_client.rb @@ -5,6 +5,7 @@ require 'ingenico/connect/sdk/api_resource' require 'ingenico/connect/sdk/response_exception' require 'ingenico/connect/sdk/domain/errors/error_response' +require 'ingenico/connect/sdk/domain/payout/find_payouts_response' require 'ingenico/connect/sdk/domain/payout/payout_error_response' require 'ingenico/connect/sdk/domain/payout/payout_response' @@ -21,6 +22,35 @@ def initialize(parent, path_context) super(parent, path_context) end + # Resource /{{merchantId}}/payouts + # + # {https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/ruby/payouts/find.html Find payouts} + # query:: {Ingenico::Connect::SDK::Merchant::Payouts::FindPayoutsParams} + # context:: {Ingenico::Connect::SDK::CallContext} + # Returns:: {Ingenico::Connect::SDK::Domain::Payout::FindPayoutsResponse} + # Raises:: {Ingenico::Connect::SDK::ValidationException} if the request was not correct and couldn't be processed (HTTP status code 400) + # Raises:: {Ingenico::Connect::SDK::AuthorizationException} if the request was not allowed (HTTP status code 403) + # Raises:: {Ingenico::Connect::SDK::IdempotenceException} if an idempotent request caused a conflict (HTTP status code 409) + # Raises:: {Ingenico::Connect::SDK::ReferenceException} if an object was attempted to be referenced that doesn't exist or has been removed, + # or there was a conflict (HTTP status code 404, 409 or 410) + # Raises:: {Ingenico::Connect::SDK::GlobalCollectException} if something went wrong at the Ingenico ePayments platform, + # the Ingenico ePayments platform was unable to process a message from a downstream partner/acquirer, + # or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) + # Raises:: {Ingenico::Connect::SDK::ApiException} if the Ingenico ePayments platform returned any other error + def find(query, context=nil) + uri = instantiate_uri('/{apiVersion}/{merchantId}/payouts', nil) + return @communicator.get( + uri, + client_headers, + query, + Ingenico::Connect::SDK::Domain::Payout::FindPayoutsResponse, + context) + rescue ResponseException => e + error_type = Ingenico::Connect::SDK::Domain::Errors::ErrorResponse + error_object = @communicator.marshaller.unmarshal(e.body, error_type) + raise create_exception(e.status_code, e.body, error_object, context) + end + # Resource /{{merchantId}}/payouts # # {https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/ruby/payouts/create.html Create payout} diff --git a/lib/ingenico/connect/sdk/merchant/refunds/find_refunds_params.rb b/lib/ingenico/connect/sdk/merchant/refunds/find_refunds_params.rb new file mode 100644 index 0000000..d12328c --- /dev/null +++ b/lib/ingenico/connect/sdk/merchant/refunds/find_refunds_params.rb @@ -0,0 +1,38 @@ +# +# This class was auto-generated from the API references found at +# https://epayments-api.developer-ingenico.com/s2sapi/v1/ +# +require 'ingenico/connect/sdk/param_request' + +module Ingenico::Connect::SDK + module Merchant + module Refunds + + # Query parameters for {https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/ruby/refunds/find.html Find refunds} + class FindRefundsParams < Ingenico::Connect::SDK::ParamRequest + + # String + attr_accessor :merchant_reference + + # Integer + attr_accessor :merchant_order_id + + # Integer + attr_accessor :offset + + # Integer + attr_accessor :limit + + # Returns an Array of {Ingenico::Connect::SDK::RequestParam} objects representing the attributes of this class + def to_request_parameters + result = [] + add_parameter(result, 'merchantReference', @merchant_reference) + add_parameter(result, 'merchantOrderId', @merchant_order_id) + add_parameter(result, 'offset', @offset) + add_parameter(result, 'limit', @limit) + result + end + end + end + end +end diff --git a/lib/ingenico/connect/sdk/merchant/refunds/refunds_client.rb b/lib/ingenico/connect/sdk/merchant/refunds/refunds_client.rb index 0f5a33b..099f01d 100644 --- a/lib/ingenico/connect/sdk/merchant/refunds/refunds_client.rb +++ b/lib/ingenico/connect/sdk/merchant/refunds/refunds_client.rb @@ -5,6 +5,7 @@ require 'ingenico/connect/sdk/api_resource' require 'ingenico/connect/sdk/response_exception' require 'ingenico/connect/sdk/domain/errors/error_response' +require 'ingenico/connect/sdk/domain/refund/find_refunds_response' require 'ingenico/connect/sdk/domain/refund/refund_response' module Ingenico::Connect::SDK @@ -20,6 +21,35 @@ def initialize(parent, path_context) super(parent, path_context) end + # Resource /{{merchantId}}/refunds + # + # {https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/ruby/refunds/find.html Find refunds} + # query:: {Ingenico::Connect::SDK::Merchant::Refunds::FindRefundsParams} + # context:: {Ingenico::Connect::SDK::CallContext} + # Returns:: {Ingenico::Connect::SDK::Domain::Refund::FindRefundsResponse} + # Raises:: {Ingenico::Connect::SDK::ValidationException} if the request was not correct and couldn't be processed (HTTP status code 400) + # Raises:: {Ingenico::Connect::SDK::AuthorizationException} if the request was not allowed (HTTP status code 403) + # Raises:: {Ingenico::Connect::SDK::IdempotenceException} if an idempotent request caused a conflict (HTTP status code 409) + # Raises:: {Ingenico::Connect::SDK::ReferenceException} if an object was attempted to be referenced that doesn't exist or has been removed, + # or there was a conflict (HTTP status code 404, 409 or 410) + # Raises:: {Ingenico::Connect::SDK::GlobalCollectException} if something went wrong at the Ingenico ePayments platform, + # the Ingenico ePayments platform was unable to process a message from a downstream partner/acquirer, + # or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) + # Raises:: {Ingenico::Connect::SDK::ApiException} if the Ingenico ePayments platform returned any other error + def find(query, context=nil) + uri = instantiate_uri('/{apiVersion}/{merchantId}/refunds', nil) + return @communicator.get( + uri, + client_headers, + query, + Ingenico::Connect::SDK::Domain::Refund::FindRefundsResponse, + context) + rescue ResponseException => e + error_type = Ingenico::Connect::SDK::Domain::Errors::ErrorResponse + error_object = @communicator.marshaller.unmarshal(e.body, error_type) + raise create_exception(e.status_code, e.body, error_object, context) + end + # Resource /{{merchantId}}/refunds/{{refundId}} # # {https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/ruby/refunds/get.html Get refund} diff --git a/lib/ingenico/connect/sdk/meta_data_provider.rb b/lib/ingenico/connect/sdk/meta_data_provider.rb index ed2b270..1de79c3 100644 --- a/lib/ingenico/connect/sdk/meta_data_provider.rb +++ b/lib/ingenico/connect/sdk/meta_data_provider.rb @@ -5,7 +5,7 @@ module Ingenico::Connect::SDK # Manages metadata about the server using the SDK class MetaDataProvider - @@SDK_VERSION = '1.9.0' + @@SDK_VERSION = '1.10.0' @@SERVER_META_INFO_HEADER = 'X-GCS-ServerMetaInfo' @@PROHIBITED_HEADERS = [@@SERVER_META_INFO_HEADER, 'X-GCS-Idempotence-Key', 'Date', 'Content-Type', 'Authorization'].sort!.freeze