connect-sdk-ruby 1.2.0 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 382c89312291bda76c2d9ef5a8503566ab9b907c
4
- data.tar.gz: 59dc66a56515e7d69eb9d9ce8d74be8d85d8df68
3
+ metadata.gz: 30c915b3ee7c15eb3db2ff34af9889eb9cea2e70
4
+ data.tar.gz: b74b74742e9cbbe4539b014c6525a2bf6a68c96b
5
5
  SHA512:
6
- metadata.gz: d45bc44bff3aa14d2c0a80a53f224daac190cd739a70e1ffcc048fd19e63e3dc45ab938190f84b34029bcc5a3c2a0670f955b3a21a779270e3a6ecea6bb9c9c8
7
- data.tar.gz: c75aa39e5ad2e80a7ca972f25d765e853597ec67f89c6fca85942205a73c2a144d6e1cc6ff1869b0db2c83bed6cbe1fac6dfba8b3f6dc8b5210b998285ecdbd9
6
+ metadata.gz: c8acc98dca3413c13341553960948962f8d8f87361b4e7216492670267e2ba0deb68f81d4da6c268dd70607f3bdd88d71a91f2740dca6a424562c90c1a6d6f39
7
+ data.tar.gz: 444c281c175cead6026734a4193d0351ccba2ed144b47a9d4b2f9fb4e114f8ddc68a4eb07ce28b583015a96093e6e2f7a18eb98634f2b9bddc6fc995cee77a17
data/README.md CHANGED
@@ -27,7 +27,7 @@ Note that the source code of the unit tests, integration tests and the examples
27
27
 
28
28
  ## Requirements
29
29
 
30
- Ruby 2.2 and higher versions are required. Ruby 2.1.10 is also supported but is not suggested because official support has ended and security maintenance will end soon.
30
+ Ruby 2.2 or higher is required. Ruby 2.1.10 is also supported but is not suggested because official support has ended and security maintenance will end soon.
31
31
  As for JRuby, version 9.0.0.0 and higher are supported.
32
32
  In addition, the following package is required:
33
33
 
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = 'connect-sdk-ruby'
3
- spec.version = '1.2.0'
3
+ spec.version = '1.3.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 GlobalCollect platform using the Ingenico Connect Server API}
@@ -11,12 +11,18 @@ module Ingenico::Connect::SDK
11
11
  # Class {https://developer.globalcollect.com/documentation/api/server/#schema_APIError APIError}
12
12
  class APIError < Ingenico::Connect::SDK::DataObject
13
13
 
14
+ # String
15
+ attr_accessor :category
16
+
14
17
  # String
15
18
  attr_accessor :code
16
19
 
17
20
  # Integer
18
21
  attr_accessor :http_status_code
19
22
 
23
+ # String
24
+ attr_accessor :id
25
+
20
26
  # String
21
27
  attr_accessor :message
22
28
 
@@ -28,8 +34,10 @@ module Ingenico::Connect::SDK
28
34
 
29
35
  def to_h
30
36
  hash = super
37
+ add_to_hash(hash, 'category', @category)
31
38
  add_to_hash(hash, 'code', @code)
32
39
  add_to_hash(hash, 'httpStatusCode', @http_status_code)
40
+ add_to_hash(hash, 'id', @id)
33
41
  add_to_hash(hash, 'message', @message)
34
42
  add_to_hash(hash, 'propertyName', @property_name)
35
43
  add_to_hash(hash, 'requestId', @request_id)
@@ -38,12 +46,18 @@ module Ingenico::Connect::SDK
38
46
 
39
47
  def from_hash(hash)
40
48
  super
49
+ if hash.has_key?('category')
50
+ @category = hash['category']
51
+ end
41
52
  if hash.has_key?('code')
42
53
  @code = hash['code']
43
54
  end
44
55
  if hash.has_key?('httpStatusCode')
45
56
  @http_status_code = hash['httpStatusCode']
46
57
  end
58
+ if hash.has_key?('id')
59
+ @id = hash['id']
60
+ end
47
61
  if hash.has_key?('message')
48
62
  @message = hash['message']
49
63
  end
@@ -32,6 +32,9 @@ module Ingenico::Connect::SDK
32
32
  # String
33
33
  attr_accessor :token
34
34
 
35
+ # true/false
36
+ attr_accessor :tokenize
37
+
35
38
  def to_h
36
39
  hash = super
37
40
  add_to_hash(hash, 'authorizationMode', @authorization_mode)
@@ -41,6 +44,7 @@ module Ingenico::Connect::SDK
41
44
  add_to_hash(hash, 'skipAuthentication', @skip_authentication)
42
45
  add_to_hash(hash, 'skipFraudService', @skip_fraud_service)
43
46
  add_to_hash(hash, 'token', @token)
47
+ add_to_hash(hash, 'tokenize', @tokenize)
44
48
  hash
45
49
  end
46
50
 
@@ -67,6 +71,9 @@ module Ingenico::Connect::SDK
67
71
  if hash.has_key?('token')
68
72
  @token = hash['token']
69
73
  end
74
+ if hash.has_key?('tokenize')
75
+ @tokenize = hash['tokenize']
76
+ end
70
77
  end
71
78
  end
72
79
  end
@@ -30,6 +30,9 @@ module Ingenico::Connect::SDK
30
30
  # String
31
31
  attr_accessor :token
32
32
 
33
+ # true/false
34
+ attr_accessor :tokenize
35
+
33
36
  def to_h
34
37
  hash = super
35
38
  add_to_hash(hash, 'dateCollect', @date_collect)
@@ -38,6 +41,7 @@ module Ingenico::Connect::SDK
38
41
  add_to_hash(hash, 'paymentProduct705SpecificInput', @payment_product705_specific_input)
39
42
  add_to_hash(hash, 'recurringPaymentSequenceIndicator', @recurring_payment_sequence_indicator)
40
43
  add_to_hash(hash, 'token', @token)
44
+ add_to_hash(hash, 'tokenize', @tokenize)
41
45
  hash
42
46
  end
43
47
 
@@ -64,6 +68,9 @@ module Ingenico::Connect::SDK
64
68
  if hash.has_key?('token')
65
69
  @token = hash['token']
66
70
  end
71
+ if hash.has_key?('tokenize')
72
+ @tokenize = hash['tokenize']
73
+ end
67
74
  end
68
75
  end
69
76
  end
@@ -26,6 +26,9 @@ module Ingenico::Connect::SDK
26
26
  # String
27
27
  attr_accessor :token
28
28
 
29
+ # true/false
30
+ attr_accessor :tokenize
31
+
29
32
  def to_h
30
33
  hash = super
31
34
  add_to_hash(hash, 'dateCollect', @date_collect)
@@ -33,6 +36,7 @@ module Ingenico::Connect::SDK
33
36
  add_to_hash(hash, 'isRecurring', @is_recurring)
34
37
  add_to_hash(hash, 'recurringPaymentSequenceIndicator', @recurring_payment_sequence_indicator)
35
38
  add_to_hash(hash, 'token', @token)
39
+ add_to_hash(hash, 'tokenize', @tokenize)
36
40
  hash
37
41
  end
38
42
 
@@ -53,6 +57,9 @@ module Ingenico::Connect::SDK
53
57
  if hash.has_key?('token')
54
58
  @token = hash['token']
55
59
  end
60
+ if hash.has_key?('tokenize')
61
+ @tokenize = hash['tokenize']
62
+ end
56
63
  end
57
64
  end
58
65
  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.2.0'
8
+ @@SDK_VERSION = '1.3.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.2.0
4
+ version: 1.3.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-02-13 00:00:00.000000000 Z
11
+ date: 2017-03-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httpclient