connect-sdk-ruby 2.44.0 → 2.45.0
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/domain/definitions/card_fraud_results.rb +0 -9
- data/lib/ingenico/connect/sdk/domain/definitions/fraud_results.rb +9 -0
- data/lib/ingenico/connect/sdk/domain/payment/e_invoice_payment_method_specific_output.rb +9 -0
- data/lib/ingenico/connect/sdk/domain/payment/sdk_data_input.rb +0 -9
- data/lib/ingenico/connect/sdk/domain/product/payment_product.rb +7 -0
- data/lib/ingenico/connect/sdk/meta_data_provider.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 82a0f897f3cc9348726d0816db6df47ba0662ee38556fc394e272ad4555a288c
|
4
|
+
data.tar.gz: a82ecea58a4d0a6029830f79317de80c12f65c999534a0505863ecefe11e4c36
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 58b73443c785af4a79d06cc63f0511dc45774980c05224fdbd73d57d283b52fac8390188d2cb82e261def8b20d913ee3a5def613be99ca45c54d3d9185c769a2
|
7
|
+
data.tar.gz: f3983c9bdbe0bd240511af7fe0a5842498b58355e145d43584a5fd68bed1aea97c616525e0c66d572218fa9737a9af52fd0062b5b88a9af9f196aaa6232f879c
|
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.
|
3
|
+
spec.version = '2.45.0'
|
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}
|
@@ -5,7 +5,6 @@
|
|
5
5
|
require 'ingenico/connect/sdk/domain/definitions/fraud_results'
|
6
6
|
require 'ingenico/connect/sdk/domain/definitions/fraud_results_retail_decisions'
|
7
7
|
require 'ingenico/connect/sdk/domain/definitions/fraugster_results'
|
8
|
-
require 'ingenico/connect/sdk/domain/definitions/microsoft_fraud_results'
|
9
8
|
|
10
9
|
module Ingenico::Connect::SDK
|
11
10
|
module Domain
|
@@ -14,7 +13,6 @@ module Ingenico::Connect::SDK
|
|
14
13
|
# @attr [String] avs_result
|
15
14
|
# @attr [String] cvv_result
|
16
15
|
# @attr [Ingenico::Connect::SDK::Domain::Definitions::FraugsterResults] fraugster
|
17
|
-
# @attr [Ingenico::Connect::SDK::Domain::Definitions::MicrosoftFraudResults] microsoft_fraud_protection
|
18
16
|
# @attr [Ingenico::Connect::SDK::Domain::Definitions::FraudResultsRetailDecisions] retail_decisions
|
19
17
|
class CardFraudResults < Ingenico::Connect::SDK::Domain::Definitions::FraudResults
|
20
18
|
|
@@ -24,8 +22,6 @@ module Ingenico::Connect::SDK
|
|
24
22
|
|
25
23
|
attr_accessor :fraugster
|
26
24
|
|
27
|
-
attr_accessor :microsoft_fraud_protection
|
28
|
-
|
29
25
|
attr_accessor :retail_decisions
|
30
26
|
|
31
27
|
# @return (Hash)
|
@@ -34,7 +30,6 @@ module Ingenico::Connect::SDK
|
|
34
30
|
hash['avsResult'] = @avs_result unless @avs_result.nil?
|
35
31
|
hash['cvvResult'] = @cvv_result unless @cvv_result.nil?
|
36
32
|
hash['fraugster'] = @fraugster.to_h unless @fraugster.nil?
|
37
|
-
hash['microsoftFraudProtection'] = @microsoft_fraud_protection.to_h unless @microsoft_fraud_protection.nil?
|
38
33
|
hash['retailDecisions'] = @retail_decisions.to_h unless @retail_decisions.nil?
|
39
34
|
hash
|
40
35
|
end
|
@@ -51,10 +46,6 @@ module Ingenico::Connect::SDK
|
|
51
46
|
raise TypeError, "value '%s' is not a Hash" % [hash['fraugster']] unless hash['fraugster'].is_a? Hash
|
52
47
|
@fraugster = Ingenico::Connect::SDK::Domain::Definitions::FraugsterResults.new_from_hash(hash['fraugster'])
|
53
48
|
end
|
54
|
-
if hash.has_key? 'microsoftFraudProtection'
|
55
|
-
raise TypeError, "value '%s' is not a Hash" % [hash['microsoftFraudProtection']] unless hash['microsoftFraudProtection'].is_a? Hash
|
56
|
-
@microsoft_fraud_protection = Ingenico::Connect::SDK::Domain::Definitions::MicrosoftFraudResults.new_from_hash(hash['microsoftFraudProtection'])
|
57
|
-
end
|
58
49
|
if hash.has_key? 'retailDecisions'
|
59
50
|
raise TypeError, "value '%s' is not a Hash" % [hash['retailDecisions']] unless hash['retailDecisions'].is_a? Hash
|
60
51
|
@retail_decisions = Ingenico::Connect::SDK::Domain::Definitions::FraudResultsRetailDecisions.new_from_hash(hash['retailDecisions'])
|
@@ -4,6 +4,7 @@
|
|
4
4
|
#
|
5
5
|
require 'ingenico/connect/sdk/data_object'
|
6
6
|
require 'ingenico/connect/sdk/domain/definitions/in_auth'
|
7
|
+
require 'ingenico/connect/sdk/domain/definitions/microsoft_fraud_results'
|
7
8
|
|
8
9
|
module Ingenico::Connect::SDK
|
9
10
|
module Domain
|
@@ -11,17 +12,21 @@ module Ingenico::Connect::SDK
|
|
11
12
|
|
12
13
|
# @attr [String] fraud_service_result
|
13
14
|
# @attr [Ingenico::Connect::SDK::Domain::Definitions::InAuth] in_auth
|
15
|
+
# @attr [Ingenico::Connect::SDK::Domain::Definitions::MicrosoftFraudResults] microsoft_fraud_protection
|
14
16
|
class FraudResults < Ingenico::Connect::SDK::DataObject
|
15
17
|
|
16
18
|
attr_accessor :fraud_service_result
|
17
19
|
|
18
20
|
attr_accessor :in_auth
|
19
21
|
|
22
|
+
attr_accessor :microsoft_fraud_protection
|
23
|
+
|
20
24
|
# @return (Hash)
|
21
25
|
def to_h
|
22
26
|
hash = super
|
23
27
|
hash['fraudServiceResult'] = @fraud_service_result unless @fraud_service_result.nil?
|
24
28
|
hash['inAuth'] = @in_auth.to_h unless @in_auth.nil?
|
29
|
+
hash['microsoftFraudProtection'] = @microsoft_fraud_protection.to_h unless @microsoft_fraud_protection.nil?
|
25
30
|
hash
|
26
31
|
end
|
27
32
|
|
@@ -34,6 +39,10 @@ module Ingenico::Connect::SDK
|
|
34
39
|
raise TypeError, "value '%s' is not a Hash" % [hash['inAuth']] unless hash['inAuth'].is_a? Hash
|
35
40
|
@in_auth = Ingenico::Connect::SDK::Domain::Definitions::InAuth.new_from_hash(hash['inAuth'])
|
36
41
|
end
|
42
|
+
if hash.has_key? 'microsoftFraudProtection'
|
43
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['microsoftFraudProtection']] unless hash['microsoftFraudProtection'].is_a? Hash
|
44
|
+
@microsoft_fraud_protection = Ingenico::Connect::SDK::Domain::Definitions::MicrosoftFraudResults.new_from_hash(hash['microsoftFraudProtection'])
|
45
|
+
end
|
37
46
|
end
|
38
47
|
end
|
39
48
|
end
|
@@ -2,6 +2,7 @@
|
|
2
2
|
# This class was auto-generated from the API references found at
|
3
3
|
# https://epayments-api.developer-ingenico.com/s2sapi/v1/
|
4
4
|
#
|
5
|
+
require 'ingenico/connect/sdk/domain/definitions/fraud_results'
|
5
6
|
require 'ingenico/connect/sdk/domain/payment/abstract_payment_method_specific_output'
|
6
7
|
require 'ingenico/connect/sdk/domain/payment/e_invoice_payment_product9000_specific_output'
|
7
8
|
|
@@ -9,20 +10,28 @@ module Ingenico::Connect::SDK
|
|
9
10
|
module Domain
|
10
11
|
module Payment
|
11
12
|
|
13
|
+
# @attr [Ingenico::Connect::SDK::Domain::Definitions::FraudResults] fraud_results
|
12
14
|
# @attr [Ingenico::Connect::SDK::Domain::Payment::EInvoicePaymentProduct9000SpecificOutput] payment_product9000_specific_output
|
13
15
|
class EInvoicePaymentMethodSpecificOutput < Ingenico::Connect::SDK::Domain::Payment::AbstractPaymentMethodSpecificOutput
|
14
16
|
|
17
|
+
attr_accessor :fraud_results
|
18
|
+
|
15
19
|
attr_accessor :payment_product9000_specific_output
|
16
20
|
|
17
21
|
# @return (Hash)
|
18
22
|
def to_h
|
19
23
|
hash = super
|
24
|
+
hash['fraudResults'] = @fraud_results.to_h unless @fraud_results.nil?
|
20
25
|
hash['paymentProduct9000SpecificOutput'] = @payment_product9000_specific_output.to_h unless @payment_product9000_specific_output.nil?
|
21
26
|
hash
|
22
27
|
end
|
23
28
|
|
24
29
|
def from_hash(hash)
|
25
30
|
super
|
31
|
+
if hash.has_key? 'fraudResults'
|
32
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['fraudResults']] unless hash['fraudResults'].is_a? Hash
|
33
|
+
@fraud_results = Ingenico::Connect::SDK::Domain::Definitions::FraudResults.new_from_hash(hash['fraudResults'])
|
34
|
+
end
|
26
35
|
if hash.has_key? 'paymentProduct9000SpecificOutput'
|
27
36
|
raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct9000SpecificOutput']] unless hash['paymentProduct9000SpecificOutput'].is_a? Hash
|
28
37
|
@payment_product9000_specific_output = Ingenico::Connect::SDK::Domain::Payment::EInvoicePaymentProduct9000SpecificOutput.new_from_hash(hash['paymentProduct9000SpecificOutput'])
|
@@ -9,7 +9,6 @@ module Ingenico::Connect::SDK
|
|
9
9
|
module Domain
|
10
10
|
module Payment
|
11
11
|
|
12
|
-
# @attr [String] device_info
|
13
12
|
# @attr [Ingenico::Connect::SDK::Domain::Payment::DeviceRenderOptions] device_render_options
|
14
13
|
# @attr [String] sdk_app_id
|
15
14
|
# @attr [String] sdk_encrypted_data
|
@@ -19,10 +18,6 @@ module Ingenico::Connect::SDK
|
|
19
18
|
# @attr [String] sdk_transaction_id
|
20
19
|
class SdkDataInput < Ingenico::Connect::SDK::DataObject
|
21
20
|
|
22
|
-
#
|
23
|
-
# @deprecated No replacement
|
24
|
-
attr_accessor :device_info
|
25
|
-
|
26
21
|
attr_accessor :device_render_options
|
27
22
|
|
28
23
|
attr_accessor :sdk_app_id
|
@@ -40,7 +35,6 @@ module Ingenico::Connect::SDK
|
|
40
35
|
# @return (Hash)
|
41
36
|
def to_h
|
42
37
|
hash = super
|
43
|
-
hash['deviceInfo'] = @device_info unless @device_info.nil?
|
44
38
|
hash['deviceRenderOptions'] = @device_render_options.to_h unless @device_render_options.nil?
|
45
39
|
hash['sdkAppId'] = @sdk_app_id unless @sdk_app_id.nil?
|
46
40
|
hash['sdkEncryptedData'] = @sdk_encrypted_data unless @sdk_encrypted_data.nil?
|
@@ -53,9 +47,6 @@ module Ingenico::Connect::SDK
|
|
53
47
|
|
54
48
|
def from_hash(hash)
|
55
49
|
super
|
56
|
-
if hash.has_key? 'deviceInfo'
|
57
|
-
@device_info = hash['deviceInfo']
|
58
|
-
end
|
59
50
|
if hash.has_key? 'deviceRenderOptions'
|
60
51
|
raise TypeError, "value '%s' is not a Hash" % [hash['deviceRenderOptions']] unless hash['deviceRenderOptions'].is_a? Hash
|
61
52
|
@device_render_options = Ingenico::Connect::SDK::Domain::Payment::DeviceRenderOptions.new_from_hash(hash['deviceRenderOptions'])
|
@@ -28,6 +28,7 @@ module Ingenico::Connect::SDK
|
|
28
28
|
# @attr [Array<Ingenico::Connect::SDK::Domain::Product::PaymentProductField>] fields
|
29
29
|
# @attr [String] fields_warning
|
30
30
|
# @attr [Integer] id
|
31
|
+
# @attr [true/false] is_authentication_supported
|
31
32
|
# @attr [true/false] is_java_script_required
|
32
33
|
# @attr [Integer] max_amount
|
33
34
|
# @attr [Integer] min_amount
|
@@ -67,6 +68,8 @@ module Ingenico::Connect::SDK
|
|
67
68
|
|
68
69
|
attr_accessor :id
|
69
70
|
|
71
|
+
attr_accessor :is_authentication_supported
|
72
|
+
|
70
73
|
attr_accessor :is_java_script_required
|
71
74
|
|
72
75
|
attr_accessor :max_amount
|
@@ -105,6 +108,7 @@ module Ingenico::Connect::SDK
|
|
105
108
|
hash['fields'] = @fields.collect{|val| val.to_h} unless @fields.nil?
|
106
109
|
hash['fieldsWarning'] = @fields_warning unless @fields_warning.nil?
|
107
110
|
hash['id'] = @id unless @id.nil?
|
111
|
+
hash['isAuthenticationSupported'] = @is_authentication_supported unless @is_authentication_supported.nil?
|
108
112
|
hash['isJavaScriptRequired'] = @is_java_script_required unless @is_java_script_required.nil?
|
109
113
|
hash['maxAmount'] = @max_amount unless @max_amount.nil?
|
110
114
|
hash['minAmount'] = @min_amount unless @min_amount.nil?
|
@@ -170,6 +174,9 @@ module Ingenico::Connect::SDK
|
|
170
174
|
if hash.has_key? 'id'
|
171
175
|
@id = hash['id']
|
172
176
|
end
|
177
|
+
if hash.has_key? 'isAuthenticationSupported'
|
178
|
+
@is_authentication_supported = hash['isAuthenticationSupported']
|
179
|
+
end
|
173
180
|
if hash.has_key? 'isJavaScriptRequired'
|
174
181
|
@is_java_script_required = hash['isJavaScriptRequired']
|
175
182
|
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.
|
10
|
+
@@SDK_VERSION = '2.45.0'
|
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.
|
4
|
+
version: 2.45.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ingenico ePayments
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-12-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httpclient
|