connect-sdk-ruby 2.11.0 → 2.12.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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6d4a9ae210b8ddace94c5f9cd9923c0b4d849b22be757f1b8ef61b0e384654b0
|
|
4
|
+
data.tar.gz: b5355f9d6ceab565e22ecec60e5c72a723568a7b317950550232a3145bab551f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 552d365906484b677d884d0fcff637830045d961d55a717e77fc3b3f29761044ed5f9775207328232bdae987b6c2386572f29f15630d947e79a6ce37a51a0cbd
|
|
7
|
+
data.tar.gz: a3b66c17876a63c9921483e8e7f918887477054d9689216bce45112353b1b41197c4a1c21e948e1bbbfacf84b6b50c700f53f7cb5b6e1266cecb75c7b5c8e2cc
|
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.12.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}
|
|
@@ -16,6 +16,7 @@ module Ingenico::Connect::SDK
|
|
|
16
16
|
module Product
|
|
17
17
|
|
|
18
18
|
# @attr [Array<Ingenico::Connect::SDK::Domain::Product::AccountOnFile>] accounts_on_file
|
|
19
|
+
# @attr [true/false] allows_installments
|
|
19
20
|
# @attr [true/false] allows_recurring
|
|
20
21
|
# @attr [true/false] allows_tokenization
|
|
21
22
|
# @attr [Ingenico::Connect::SDK::Domain::Product::AuthenticationIndicator] authentication_indicator
|
|
@@ -40,6 +41,8 @@ module Ingenico::Connect::SDK
|
|
|
40
41
|
|
|
41
42
|
attr_accessor :accounts_on_file
|
|
42
43
|
|
|
44
|
+
attr_accessor :allows_installments
|
|
45
|
+
|
|
43
46
|
attr_accessor :allows_recurring
|
|
44
47
|
|
|
45
48
|
attr_accessor :allows_tokenization
|
|
@@ -84,6 +87,7 @@ module Ingenico::Connect::SDK
|
|
|
84
87
|
def to_h
|
|
85
88
|
hash = super
|
|
86
89
|
hash['accountsOnFile'] = @accounts_on_file.collect{|val| val.to_h} unless @accounts_on_file.nil?
|
|
90
|
+
hash['allowsInstallments'] = @allows_installments unless @allows_installments.nil?
|
|
87
91
|
hash['allowsRecurring'] = @allows_recurring unless @allows_recurring.nil?
|
|
88
92
|
hash['allowsTokenization'] = @allows_tokenization unless @allows_tokenization.nil?
|
|
89
93
|
hash['authenticationIndicator'] = @authentication_indicator.to_h unless @authentication_indicator.nil?
|
|
@@ -116,6 +120,9 @@ module Ingenico::Connect::SDK
|
|
|
116
120
|
@accounts_on_file << Ingenico::Connect::SDK::Domain::Product::AccountOnFile.new_from_hash(e)
|
|
117
121
|
end
|
|
118
122
|
end
|
|
123
|
+
if hash.has_key? 'allowsInstallments'
|
|
124
|
+
@allows_installments = hash['allowsInstallments']
|
|
125
|
+
end
|
|
119
126
|
if hash.has_key? 'allowsRecurring'
|
|
120
127
|
@allows_recurring = hash['allowsRecurring']
|
|
121
128
|
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.12.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.12.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: 2020-06-
|
|
11
|
+
date: 2020-06-15 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: httpclient
|