connect-sdk-ruby 2.30.1 → 2.30.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/connect-sdk-ruby.gemspec +1 -1
- data/lib/ingenico/connect/sdk/merchant/services/services_client.rb +0 -31
- data/lib/ingenico/connect/sdk/meta_data_provider.rb +1 -1
- metadata +2 -4
- data/examples/merchant/services/get_settlement_details_example.rb +0 -22
- data/lib/ingenico/connect/sdk/domain/services/settlement_details.rb +0 -55
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7db60897f47065c79b42b4f458baaa3eb9c346b66b50381bd795b6abb762fbe6
|
4
|
+
data.tar.gz: 2a43fcff7d2729aefd492f3ace41f6f67dab7157da8699ea38947c3fbc53b73d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8e9114ffa747a472929b909730f60748f97fe1409acbcbb143b290e88b2999c34624bf630827e0f3ee7a6aa52368ab100bf944d11ab48c6b07891cacc42a434a
|
7
|
+
data.tar.gz: 1f9a4c4a0db466fd0ecea4fa718738b4c8c7df63e3890d95933ec8de4a853454f39aebc8ff8e9ed05fae107b90e310969183027d327743a8ccd950a79cbafa3b
|
data/connect-sdk-ruby.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |spec|
|
2
2
|
spec.name = 'connect-sdk-ruby'
|
3
|
-
spec.version = '2.30.
|
3
|
+
spec.version = '2.30.2'
|
4
4
|
spec.authors = ['Ingenico ePayments']
|
5
5
|
spec.email = ['github@epay.ingenico.com']
|
6
6
|
spec.summary = %q{SDK to communicate with the Ingenico ePayments platform using the Ingenico Connect Server API}
|
@@ -9,7 +9,6 @@ require 'ingenico/connect/sdk/domain/services/bank_details_response'
|
|
9
9
|
require 'ingenico/connect/sdk/domain/services/convert_amount'
|
10
10
|
require 'ingenico/connect/sdk/domain/services/get_iin_details_response'
|
11
11
|
require 'ingenico/connect/sdk/domain/services/get_privacy_policy_response'
|
12
|
-
require 'ingenico/connect/sdk/domain/services/settlement_details'
|
13
12
|
require 'ingenico/connect/sdk/domain/services/test_connection'
|
14
13
|
|
15
14
|
module Ingenico::Connect::SDK
|
@@ -160,36 +159,6 @@ module Ingenico::Connect::SDK
|
|
160
159
|
error_object = @communicator.marshaller.unmarshal(e.body, error_type)
|
161
160
|
raise create_exception(e.status_code, e.body, error_object, context)
|
162
161
|
end
|
163
|
-
|
164
|
-
# Resource /!{merchantId}/services/settlementdetails/!{paymentId} - {https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/ruby/services/settlementdetails.html Get Settlement details}
|
165
|
-
# @param payment_id [String]
|
166
|
-
# @param context [Ingenico::Connect::SDK::CallContext]
|
167
|
-
# @return [Ingenico::Connect::SDK::Domain::Services::SettlementDetails]
|
168
|
-
# @raise [Ingenico::Connect::SDK::ValidationException] if the request was not correct and couldn't be processed (HTTP status code 400)
|
169
|
-
# @raise [Ingenico::Connect::SDK::AuthorizationException] if the request was not allowed (HTTP status code 403)
|
170
|
-
# @raise [Ingenico::Connect::SDK::IdempotenceException] if an idempotent request caused a conflict (HTTP status code 409)
|
171
|
-
# @raise [Ingenico::Connect::SDK::ReferenceException] if an object was attempted to be referenced that doesn't exist or has been removed,
|
172
|
-
# or there was a conflict (HTTP status code 404, 409 or 410)
|
173
|
-
# @raise [Ingenico::Connect::SDK::GlobalCollectException] if something went wrong at the Ingenico ePayments platform,
|
174
|
-
# the Ingenico ePayments platform was unable to process a message from a downstream partner/acquirer,
|
175
|
-
# or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
|
176
|
-
# @raise [Ingenico::Connect::SDK::ApiException]if the Ingenico ePayments platform returned any other error
|
177
|
-
def settlementdetails(payment_id, context=nil)
|
178
|
-
path_context = {
|
179
|
-
'paymentId'.freeze => payment_id,
|
180
|
-
}
|
181
|
-
uri = instantiate_uri('/v1/{merchantId}/services/settlementdetails/{paymentId}', path_context)
|
182
|
-
return @communicator.get(
|
183
|
-
uri,
|
184
|
-
client_headers,
|
185
|
-
nil,
|
186
|
-
Ingenico::Connect::SDK::Domain::Services::SettlementDetails,
|
187
|
-
context)
|
188
|
-
rescue ResponseException => e
|
189
|
-
error_type = Ingenico::Connect::SDK::Domain::Errors::ErrorResponse
|
190
|
-
error_object = @communicator.marshaller.unmarshal(e.body, error_type)
|
191
|
-
raise create_exception(e.status_code, e.body, error_object, context)
|
192
|
-
end
|
193
162
|
end
|
194
163
|
end
|
195
164
|
end
|
@@ -7,7 +7,7 @@ module Ingenico::Connect::SDK
|
|
7
7
|
#
|
8
8
|
# @attr_reader [Array<Ingenico::Connect::SDK::RequestHeader>] meta_data_headers List of headers that should be used in all requests.
|
9
9
|
class MetaDataProvider
|
10
|
-
@@SDK_VERSION = '2.30.
|
10
|
+
@@SDK_VERSION = '2.30.2'
|
11
11
|
@@SERVER_META_INFO_HEADER = 'X-GCS-ServerMetaInfo'
|
12
12
|
@@PROHIBITED_HEADERS = [@@SERVER_META_INFO_HEADER, 'X-GCS-Idempotence-Key',
|
13
13
|
'Date', 'Content-Type', 'Authorization'].sort!.freeze
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: connect-sdk-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.30.
|
4
|
+
version: 2.30.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ingenico ePayments
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-04-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httpclient
|
@@ -189,7 +189,6 @@ files:
|
|
189
189
|
- examples/merchant/services/convert_amount_example.rb
|
190
190
|
- examples/merchant/services/convert_bank_account_example.rb
|
191
191
|
- examples/merchant/services/get_privacy_policy_example.rb
|
192
|
-
- examples/merchant/services/get_settlement_details_example.rb
|
193
192
|
- examples/merchant/services/iin_details_example.rb
|
194
193
|
- examples/merchant/services/test_connection_example.rb
|
195
194
|
- examples/merchant/sessions/create_session_example.rb
|
@@ -550,7 +549,6 @@ files:
|
|
550
549
|
- lib/ingenico/connect/sdk/domain/services/get_privacy_policy_response.rb
|
551
550
|
- lib/ingenico/connect/sdk/domain/services/iin_detail.rb
|
552
551
|
- lib/ingenico/connect/sdk/domain/services/payment_context.rb
|
553
|
-
- lib/ingenico/connect/sdk/domain/services/settlement_details.rb
|
554
552
|
- lib/ingenico/connect/sdk/domain/services/swift.rb
|
555
553
|
- lib/ingenico/connect/sdk/domain/services/test_connection.rb
|
556
554
|
- lib/ingenico/connect/sdk/domain/sessions/payment_product_filters_client_session.rb
|
@@ -1,22 +0,0 @@
|
|
1
|
-
#
|
2
|
-
# This class was auto-generated from the API references found at
|
3
|
-
# https://epayments-api.developer-ingenico.com/s2sapi/v1/
|
4
|
-
#
|
5
|
-
require 'ingenico/connect/sdk/factory'
|
6
|
-
|
7
|
-
|
8
|
-
def example
|
9
|
-
get_client do |client|
|
10
|
-
response = client.merchant('merchantId').services.settlementdetails('paymentId')
|
11
|
-
end
|
12
|
-
end
|
13
|
-
|
14
|
-
def get_client
|
15
|
-
api_key_id = ENV.fetch('connect.api.apiKeyId', 'someKey')
|
16
|
-
secret_api_key = ENV.fetch('connect.api.secretApiKey', 'someSecret')
|
17
|
-
configuration_file_name = File.join(__FILE__, '..', '..', 'example_configuration.yml')
|
18
|
-
yield client = Ingenico::Connect::SDK::Factory.create_client_from_file(configuration_file_name, api_key_id, secret_api_key)
|
19
|
-
ensure
|
20
|
-
# Free networking resources when done
|
21
|
-
client.close unless client.nil?
|
22
|
-
end
|
@@ -1,55 +0,0 @@
|
|
1
|
-
#
|
2
|
-
# This class was auto-generated from the API references found at
|
3
|
-
# https://epayments-api.developer-ingenico.com/s2sapi/v1/
|
4
|
-
#
|
5
|
-
require 'ingenico/connect/sdk/data_object'
|
6
|
-
require 'ingenico/connect/sdk/domain/definitions/amount_of_money'
|
7
|
-
|
8
|
-
module Ingenico::Connect::SDK
|
9
|
-
module Domain
|
10
|
-
module Services
|
11
|
-
|
12
|
-
# @attr [String] acquirer_reference_number
|
13
|
-
# @attr [Ingenico::Connect::SDK::Domain::Definitions::AmountOfMoney] amount_of_money
|
14
|
-
# @attr [String] payment_id
|
15
|
-
# @attr [String] retrieval_reference_number
|
16
|
-
class SettlementDetails < Ingenico::Connect::SDK::DataObject
|
17
|
-
|
18
|
-
attr_accessor :acquirer_reference_number
|
19
|
-
|
20
|
-
attr_accessor :amount_of_money
|
21
|
-
|
22
|
-
attr_accessor :payment_id
|
23
|
-
|
24
|
-
attr_accessor :retrieval_reference_number
|
25
|
-
|
26
|
-
# @return (Hash)
|
27
|
-
def to_h
|
28
|
-
hash = super
|
29
|
-
hash['acquirerReferenceNumber'] = @acquirer_reference_number unless @acquirer_reference_number.nil?
|
30
|
-
hash['amountOfMoney'] = @amount_of_money.to_h unless @amount_of_money.nil?
|
31
|
-
hash['paymentId'] = @payment_id unless @payment_id.nil?
|
32
|
-
hash['retrievalReferenceNumber'] = @retrieval_reference_number unless @retrieval_reference_number.nil?
|
33
|
-
hash
|
34
|
-
end
|
35
|
-
|
36
|
-
def from_hash(hash)
|
37
|
-
super
|
38
|
-
if hash.has_key? 'acquirerReferenceNumber'
|
39
|
-
@acquirer_reference_number = hash['acquirerReferenceNumber']
|
40
|
-
end
|
41
|
-
if hash.has_key? 'amountOfMoney'
|
42
|
-
raise TypeError, "value '%s' is not a Hash" % [hash['amountOfMoney']] unless hash['amountOfMoney'].is_a? Hash
|
43
|
-
@amount_of_money = Ingenico::Connect::SDK::Domain::Definitions::AmountOfMoney.new_from_hash(hash['amountOfMoney'])
|
44
|
-
end
|
45
|
-
if hash.has_key? 'paymentId'
|
46
|
-
@payment_id = hash['paymentId']
|
47
|
-
end
|
48
|
-
if hash.has_key? 'retrievalReferenceNumber'
|
49
|
-
@retrieval_reference_number = hash['retrievalReferenceNumber']
|
50
|
-
end
|
51
|
-
end
|
52
|
-
end
|
53
|
-
end
|
54
|
-
end
|
55
|
-
end
|