connect-sdk-ruby 2.15.0 → 2.16.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
  SHA256:
3
- metadata.gz: eff2384d596a8483e46b3e71689131ce8fccf97feda1d1df9e1a0cb618d58d4c
4
- data.tar.gz: f256554265099855c5247b73eadc47eabc4af887a97e9d4d7bd1d1e371a3d216
3
+ metadata.gz: 49aa337b71659c35c43afbadf6898693cc92890732bd349675cb00f39d884d70
4
+ data.tar.gz: dd992b343c0adf49af50ff85a45583f748f8fcfaf50b8b39adc20e96f7286e6d
5
5
  SHA512:
6
- metadata.gz: b3f37d6b5a373ff93acd502fbb923138edb2db68dbcf252397fe085cc1ec867b9e10bce8a021787c1fc1daf8241b82cf7a5ba98179763b94f4a6789c26fa24ce
7
- data.tar.gz: 8318f668ce6dd6ed7da02d43895ab1b3a80b58f2640cadfb76644feeeba51630465e36ada81b8bb78007812035735bfba98f7d72d9f0ef22771701626e75fd9a
6
+ metadata.gz: ec45a6784bd759e87ca97544b7bc51128e19aef7b915356b8d30b0284b6702fbeaff6755a76ba258c1d136cc59e6ce65f9542e91c2cd0ce1e4747a9353b205f7
7
+ data.tar.gz: '08f94115dc838753a5bae689baa4c68f914779b8f195ab909b4b03f465a9e6297959fa115bc0e30c90902809334d285753988019ec9cb13b01c068219df03bbe'
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = 'connect-sdk-ruby'
3
- spec.version = '2.15.0'
3
+ spec.version = '2.16.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}
@@ -13,7 +13,7 @@ def example
13
13
  payment_product_session302_specific_input = Product::MobilePaymentProductSession302SpecificInput.new
14
14
  payment_product_session302_specific_input.display_name = 'Ingenico'
15
15
  payment_product_session302_specific_input.domain_name = 'pay1.secured-by-ingenico.com'
16
- payment_product_session302_specific_input.validation_url = 'https://apple-pay-gateway-cert.apple.com/paymentservices/startSession'
16
+ payment_product_session302_specific_input.validation_url = '<VALIDATION URL RECEIVED FROM APPLE>'
17
17
 
18
18
  body = Product::CreatePaymentProductSessionRequest.new
19
19
  body.payment_product_session302_specific_input = payment_product_session302_specific_input
@@ -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 [String] acquirer_country
19
20
  # @attr [true/false] allows_installments
20
21
  # @attr [true/false] allows_recurring
21
22
  # @attr [true/false] allows_tokenization
@@ -41,6 +42,8 @@ module Ingenico::Connect::SDK
41
42
 
42
43
  attr_accessor :accounts_on_file
43
44
 
45
+ attr_accessor :acquirer_country
46
+
44
47
  attr_accessor :allows_installments
45
48
 
46
49
  attr_accessor :allows_recurring
@@ -87,6 +90,7 @@ module Ingenico::Connect::SDK
87
90
  def to_h
88
91
  hash = super
89
92
  hash['accountsOnFile'] = @accounts_on_file.collect{|val| val.to_h} unless @accounts_on_file.nil?
93
+ hash['acquirerCountry'] = @acquirer_country unless @acquirer_country.nil?
90
94
  hash['allowsInstallments'] = @allows_installments unless @allows_installments.nil?
91
95
  hash['allowsRecurring'] = @allows_recurring unless @allows_recurring.nil?
92
96
  hash['allowsTokenization'] = @allows_tokenization unless @allows_tokenization.nil?
@@ -120,6 +124,9 @@ module Ingenico::Connect::SDK
120
124
  @accounts_on_file << Ingenico::Connect::SDK::Domain::Product::AccountOnFile.new_from_hash(e)
121
125
  end
122
126
  end
127
+ if hash.has_key? 'acquirerCountry'
128
+ @acquirer_country = hash['acquirerCountry']
129
+ end
123
130
  if hash.has_key? 'allowsInstallments'
124
131
  @allows_installments = hash['allowsInstallments']
125
132
  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.15.0'
10
+ @@SDK_VERSION = '2.16.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
@@ -23,7 +23,7 @@ describe 'token' do
23
23
  card_without_ccv.cardholder_name = 'Jan'
24
24
  card_without_ccv.issue_number = '12'
25
25
  card_without_ccv.card_number = '4567350000427977'
26
- card_without_ccv.expiry_date = '0820'
26
+ card_without_ccv.expiry_date = '1225'
27
27
  card_data = Ingenico::Connect::SDK::Domain::Token::TokenCardData.new
28
28
  card_data.card_without_cvv = card_without_ccv
29
29
  card = Ingenico::Connect::SDK::Domain::Token::TokenCard.new
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.15.0
4
+ version: 2.16.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-09-03 00:00:00.000000000 Z
11
+ date: 2020-09-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httpclient