connect-sdk-ruby 1.10.0 → 1.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/connect-sdk-ruby.gemspec +1 -1
- data/lib/ingenico/connect/sdk/domain/riskassessments/contact_details_risk_assessment.rb +31 -0
- data/lib/ingenico/connect/sdk/domain/riskassessments/customer_risk_assessment.rb +11 -0
- data/lib/ingenico/connect/sdk/meta_data_provider.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7fa93ae1a0b1906f29848bd7f0e49d386e6eadc4
|
4
|
+
data.tar.gz: 99851487ac294d01a1a5cf6c10c341f34d85ffcc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 37564db3a6955c8e1df86872064921abba401c943593d962572c6c51060df55c36623c3a1b8269bd9eaa83fc813c0682c5ad353e8cd925164a99fca8c080a057
|
7
|
+
data.tar.gz: e03cfab1c45a7f6f990486688abffe3890aced5d64c40eb8d1fd0537b28f086689ee45d17fa67436c4178bf3227494ba3f2897e8167a00439be143673e6cb072
|
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 = '1.
|
3
|
+
spec.version = '1.11.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}
|
@@ -0,0 +1,31 @@
|
|
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
|
+
|
7
|
+
module Ingenico::Connect::SDK
|
8
|
+
module Domain
|
9
|
+
module Riskassessments
|
10
|
+
|
11
|
+
class ContactDetailsRiskAssessment < Ingenico::Connect::SDK::DataObject
|
12
|
+
|
13
|
+
# String
|
14
|
+
attr_accessor :email_address
|
15
|
+
|
16
|
+
def to_h
|
17
|
+
hash = super
|
18
|
+
add_to_hash(hash, 'emailAddress', @email_address)
|
19
|
+
hash
|
20
|
+
end
|
21
|
+
|
22
|
+
def from_hash(hash)
|
23
|
+
super
|
24
|
+
if hash.has_key?('emailAddress')
|
25
|
+
@email_address = hash['emailAddress']
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
@@ -5,6 +5,7 @@
|
|
5
5
|
require 'ingenico/connect/sdk/data_object'
|
6
6
|
require 'ingenico/connect/sdk/domain/definitions/address'
|
7
7
|
require 'ingenico/connect/sdk/domain/payment/address_personal'
|
8
|
+
require 'ingenico/connect/sdk/domain/riskassessments/contact_details_risk_assessment'
|
8
9
|
require 'ingenico/connect/sdk/domain/riskassessments/personal_information_risk_assessment'
|
9
10
|
|
10
11
|
module Ingenico::Connect::SDK
|
@@ -16,6 +17,9 @@ module Ingenico::Connect::SDK
|
|
16
17
|
# {Ingenico::Connect::SDK::Domain::Definitions::Address}
|
17
18
|
attr_accessor :billing_address
|
18
19
|
|
20
|
+
# {Ingenico::Connect::SDK::Domain::Riskassessments::ContactDetailsRiskAssessment}
|
21
|
+
attr_accessor :contact_details
|
22
|
+
|
19
23
|
# String
|
20
24
|
attr_accessor :locale
|
21
25
|
|
@@ -28,6 +32,7 @@ module Ingenico::Connect::SDK
|
|
28
32
|
def to_h
|
29
33
|
hash = super
|
30
34
|
add_to_hash(hash, 'billingAddress', @billing_address)
|
35
|
+
add_to_hash(hash, 'contactDetails', @contact_details)
|
31
36
|
add_to_hash(hash, 'locale', @locale)
|
32
37
|
add_to_hash(hash, 'personalInformation', @personal_information)
|
33
38
|
add_to_hash(hash, 'shippingAddress', @shipping_address)
|
@@ -42,6 +47,12 @@ module Ingenico::Connect::SDK
|
|
42
47
|
end
|
43
48
|
@billing_address = Ingenico::Connect::SDK::Domain::Definitions::Address.new_from_hash(hash['billingAddress'])
|
44
49
|
end
|
50
|
+
if hash.has_key?('contactDetails')
|
51
|
+
if !(hash['contactDetails'].is_a? Hash)
|
52
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['contactDetails']]
|
53
|
+
end
|
54
|
+
@contact_details = Ingenico::Connect::SDK::Domain::Riskassessments::ContactDetailsRiskAssessment.new_from_hash(hash['contactDetails'])
|
55
|
+
end
|
45
56
|
if hash.has_key?('locale')
|
46
57
|
@locale = hash['locale']
|
47
58
|
end
|
@@ -5,7 +5,7 @@ module Ingenico::Connect::SDK
|
|
5
5
|
|
6
6
|
# Manages metadata about the server using the SDK
|
7
7
|
class MetaDataProvider
|
8
|
-
@@SDK_VERSION = '1.
|
8
|
+
@@SDK_VERSION = '1.11.0'
|
9
9
|
@@SERVER_META_INFO_HEADER = 'X-GCS-ServerMetaInfo'
|
10
10
|
@@PROHIBITED_HEADERS = [@@SERVER_META_INFO_HEADER, 'X-GCS-Idempotence-Key',
|
11
11
|
'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: 1.
|
4
|
+
version: 1.11.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: 2017-09-
|
11
|
+
date: 2017-09-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httpclient
|
@@ -381,6 +381,7 @@ files:
|
|
381
381
|
- lib/ingenico/connect/sdk/domain/refund/refund_request.rb
|
382
382
|
- lib/ingenico/connect/sdk/domain/refund/refund_response.rb
|
383
383
|
- lib/ingenico/connect/sdk/domain/refund/refund_result.rb
|
384
|
+
- lib/ingenico/connect/sdk/domain/riskassessments/contact_details_risk_assessment.rb
|
384
385
|
- lib/ingenico/connect/sdk/domain/riskassessments/customer_risk_assessment.rb
|
385
386
|
- lib/ingenico/connect/sdk/domain/riskassessments/order_risk_assessment.rb
|
386
387
|
- lib/ingenico/connect/sdk/domain/riskassessments/personal_information_risk_assessment.rb
|