connect-sdk-ruby 1.20.0 → 1.21.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: db82002a15569a18577168bdc73048f32a19d096c2b3152821cde6a7d417d29b
4
- data.tar.gz: bec287414b416a03aa15d6329de263e13299383249e33401e1d0e6a52050a9dc
3
+ metadata.gz: e62421ae221ae5d9f3beb6d3bbf9e829a01a70d7a2fab098af7e1760e8452ff5
4
+ data.tar.gz: b162bb984443680150b11f53f49c49b6b54c93196c7d670b6126b1f02b0efcfa
5
5
  SHA512:
6
- metadata.gz: c046c3733b77d9fc784f959d9bef86635d8a5d158be666b3b19b2bbeeae5622f08901d5fecc121d75d3b744eca06a58c2ff1c5565f2530b059c08bd506ea9733
7
- data.tar.gz: bf609bc7468475571ae9f4d3ef9d847355c0b964eddb3876cf502fb9a307b6ea91c033b3e4bf90df34d7c98786196fc3b0b1c44f54e1eb2db24e2d9a8819bfc3
6
+ metadata.gz: 17dd542818b08e9fd3f0d953d41b2daaba1d71898b05c0075220deacca4eece94ee2e575cece0835e92cf4a9d46027af5d24e7c598a48fc5f84c77bff08be619
7
+ data.tar.gz: 084d6844e700adfada6bd56e208140558b4ec8d63a77ea3ac760e921fe65b24c115717fa5feee3b0e6530a250d3d38518412863bd6440debff24cad8ab76ed11
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = 'connect-sdk-ruby'
3
- spec.version = '1.20.0'
3
+ spec.version = '1.21.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}
@@ -21,7 +21,6 @@ def example
21
21
 
22
22
  contact_details = Mandates::MandateContactDetails.new
23
23
  contact_details.email_address = 'wile.e.coyote@acmelabs.com'
24
- contact_details.phone_number = '+1234567890'
25
24
 
26
25
  mandate_address = Mandates::MandateAddress.new
27
26
  mandate_address.city = 'Monumentenvallei'
@@ -21,7 +21,6 @@ def example
21
21
 
22
22
  contact_details = Mandates::MandateContactDetails.new
23
23
  contact_details.email_address = 'wile.e.coyote@acmelabs.com'
24
- contact_details.phone_number = '+1234567890'
25
24
 
26
25
  mandate_address = Mandates::MandateAddress.new
27
26
  mandate_address.city = 'Monumentenvallei'
@@ -13,13 +13,9 @@ module Ingenico::Connect::SDK
13
13
  # String
14
14
  attr_accessor :email_address
15
15
 
16
- # String
17
- attr_accessor :phone_number
18
-
19
16
  def to_h
20
17
  hash = super
21
18
  add_to_hash(hash, 'emailAddress', @email_address)
22
- add_to_hash(hash, 'phoneNumber', @phone_number)
23
19
  hash
24
20
  end
25
21
 
@@ -28,9 +24,6 @@ module Ingenico::Connect::SDK
28
24
  if hash.has_key?('emailAddress')
29
25
  @email_address = hash['emailAddress']
30
26
  end
31
- if hash.has_key?('phoneNumber')
32
- @phone_number = hash['phoneNumber']
33
- end
34
27
  end
35
28
  end
36
29
  end
@@ -25,12 +25,16 @@ module Ingenico::Connect::SDK
25
25
  # {Ingenico::Connect::SDK::Domain::Payment::ThreeDSecureResults}
26
26
  attr_accessor :three_d_secure_results
27
27
 
28
+ # String
29
+ attr_accessor :token
30
+
28
31
  def to_h
29
32
  hash = super
30
33
  add_to_hash(hash, 'authorisationCode', @authorisation_code)
31
34
  add_to_hash(hash, 'card', @card)
32
35
  add_to_hash(hash, 'fraudResults', @fraud_results)
33
36
  add_to_hash(hash, 'threeDSecureResults', @three_d_secure_results)
37
+ add_to_hash(hash, 'token', @token)
34
38
  hash
35
39
  end
36
40
 
@@ -57,6 +61,9 @@ module Ingenico::Connect::SDK
57
61
  end
58
62
  @three_d_secure_results = Ingenico::Connect::SDK::Domain::Payment::ThreeDSecureResults.new_from_hash(hash['threeDSecureResults'])
59
63
  end
64
+ if hash.has_key?('token')
65
+ @token = hash['token']
66
+ end
60
67
  end
61
68
  end
62
69
  end
@@ -26,12 +26,16 @@ module Ingenico::Connect::SDK
26
26
  # {Ingenico::Connect::SDK::Domain::Payment::PaymentProduct840SpecificOutput}
27
27
  attr_accessor :payment_product840_specific_output
28
28
 
29
+ # String
30
+ attr_accessor :token
31
+
29
32
  def to_h
30
33
  hash = super
31
34
  add_to_hash(hash, 'bankAccountIban', @bank_account_iban)
32
35
  add_to_hash(hash, 'fraudResults', @fraud_results)
33
36
  add_to_hash(hash, 'paymentProduct836SpecificOutput', @payment_product836_specific_output)
34
37
  add_to_hash(hash, 'paymentProduct840SpecificOutput', @payment_product840_specific_output)
38
+ add_to_hash(hash, 'token', @token)
35
39
  hash
36
40
  end
37
41
 
@@ -61,6 +65,9 @@ module Ingenico::Connect::SDK
61
65
  end
62
66
  @payment_product840_specific_output = Ingenico::Connect::SDK::Domain::Payment::PaymentProduct840SpecificOutput.new_from_hash(hash['paymentProduct840SpecificOutput'])
63
67
  end
68
+ if hash.has_key?('token')
69
+ @token = hash['token']
70
+ end
64
71
  end
65
72
  end
66
73
  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.20.0'
8
+ @@SDK_VERSION = '1.21.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.20.0
4
+ version: 1.21.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: 2018-05-07 00:00:00.000000000 Z
11
+ date: 2018-06-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httpclient