Skip to content
This repository was archived by the owner on Mar 19, 2024. It is now read-only.

Commit 241efb2

Browse files
Release 2.42.0.
1 parent f6052e9 commit 241efb2

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

connect-sdk-ruby.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Gem::Specification.new do |spec|
22
spec.name = 'connect-sdk-ruby'
3-
spec.version = '2.41.0'
3+
spec.version = '2.42.0'
44
spec.authors = ['Ingenico ePayments']
55
spec.email = ['github@epay.ingenico.com']
66
spec.summary = %q{SDK to communicate with the Ingenico ePayments platform using the Ingenico Connect Server API}

lib/ingenico/connect/sdk/domain/payment/refund_card_method_specific_output.rb

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,26 @@
22
# This class was auto-generated from the API references found at
33
# https://epayments-api.developer-ingenico.com/s2sapi/v1/
44
#
5+
require 'ingenico/connect/sdk/domain/definitions/card_essentials'
56
require 'ingenico/connect/sdk/domain/payment/refund_method_specific_output'
67

78
module Ingenico::Connect::SDK
89
module Domain
910
module Payment
1011

1112
# @attr [String] authorisation_code
13+
# @attr [Ingenico::Connect::SDK::Domain::Definitions::CardEssentials] card
1214
class RefundCardMethodSpecificOutput < Ingenico::Connect::SDK::Domain::Payment::RefundMethodSpecificOutput
1315

1416
attr_accessor :authorisation_code
1517

18+
attr_accessor :card
19+
1620
# @return (Hash)
1721
def to_h
1822
hash = super
1923
hash['authorisationCode'] = @authorisation_code unless @authorisation_code.nil?
24+
hash['card'] = @card.to_h unless @card.nil?
2025
hash
2126
end
2227

@@ -25,6 +30,10 @@ def from_hash(hash)
2530
if hash.has_key? 'authorisationCode'
2631
@authorisation_code = hash['authorisationCode']
2732
end
33+
if hash.has_key? 'card'
34+
raise TypeError, "value '%s' is not a Hash" % [hash['card']] unless hash['card'].is_a? Hash
35+
@card = Ingenico::Connect::SDK::Domain::Definitions::CardEssentials.new_from_hash(hash['card'])
36+
end
2837
end
2938
end
3039
end

lib/ingenico/connect/sdk/meta_data_provider.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ module Ingenico::Connect::SDK
77
#
88
# @attr_reader [Array<Ingenico::Connect::SDK::RequestHeader>] meta_data_headers List of headers that should be used in all requests.
99
class MetaDataProvider
10-
@@SDK_VERSION = '2.41.0'
10+
@@SDK_VERSION = '2.42.0'
1111
@@SERVER_META_INFO_HEADER = 'X-GCS-ServerMetaInfo'
1212
@@PROHIBITED_HEADERS = [@@SERVER_META_INFO_HEADER, 'X-GCS-Idempotence-Key',
1313
'Date', 'Content-Type', 'Authorization'].sort!.freeze

0 commit comments

Comments
 (0)