connect-sdk-ruby 2.19.0 → 2.20.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: ab500d1794ddeac60cc23464a21c5b96093f594f42410f708de6185080ea8432
4
- data.tar.gz: bcfab9d7858aa7f249e400f4e14b9bc0faf2df97901880328e5301f21014d0d7
3
+ metadata.gz: a2a34ca95673080d6be07e44c049abfc08e0436f8f8df370676ba08c75157008
4
+ data.tar.gz: 8257aea5a5c2935f1fdd07f092baa0383e994269d6a21afba1d8fe34ec93faa7
5
5
  SHA512:
6
- metadata.gz: c362b90a182eca7d0ec52b61b9095a4e3982e84cbcdd4c39a4a49fde7ef557c46a2398632adc62109f21e1cbcfc44f02c0d0b1af4ba0debd329227cd8884401f
7
- data.tar.gz: 06d5e09ea6c58b8fafb75559d1ef50a439bab792d0ea74cfb3612d68b991b5a95ce02f2bcd9dcaca897d3d107ffcbbb36dd0c943835dc144ade6cbaeacabf11f
6
+ metadata.gz: 69f0cf8d8a1278a3eaab0421d3d2244562339582790451a5ea93e70cad66e3a45902a468fb14220353844b81df5b79ed6cc53f0d9bf7bf98c424055e4d739163
7
+ data.tar.gz: f0d158fdaa6d8d73a9725500bce1ed3248c86506ea62109e9538250acc1d6439207680fc45e36e0264d27a3049f77f53658036718482bb3a71d30d7e409b9c14
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = 'connect-sdk-ruby'
3
- spec.version = '2.19.0'
3
+ spec.version = '2.20.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}
@@ -2,6 +2,7 @@
2
2
  # This class was auto-generated from the API references found at
3
3
  # https://epayments-api.developer-ingenico.com/s2sapi/v1/
4
4
  #
5
+ require 'ingenico/connect/sdk/domain/definitions/bank_account_bban'
5
6
  require 'ingenico/connect/sdk/domain/definitions/bank_account_iban'
6
7
  require 'ingenico/connect/sdk/domain/definitions/fraud_results'
7
8
  require 'ingenico/connect/sdk/domain/payment/abstract_payment_method_specific_output'
@@ -14,7 +15,9 @@ module Ingenico::Connect::SDK
14
15
  module Domain
15
16
  module Payment
16
17
 
18
+ # @attr [Ingenico::Connect::SDK::Domain::Definitions::BankAccountBban] bank_account_bban
17
19
  # @attr [Ingenico::Connect::SDK::Domain::Definitions::BankAccountIban] bank_account_iban
20
+ # @attr [String] bic
18
21
  # @attr [Ingenico::Connect::SDK::Domain::Definitions::FraudResults] fraud_results
19
22
  # @attr [Ingenico::Connect::SDK::Domain::Payment::PaymentProduct3201SpecificOutput] payment_product3201_specific_output
20
23
  # @attr [Ingenico::Connect::SDK::Domain::Payment::PaymentProduct806SpecificOutput] payment_product806_specific_output
@@ -23,8 +26,12 @@ module Ingenico::Connect::SDK
23
26
  # @attr [String] token
24
27
  class RedirectPaymentMethodSpecificOutput < Ingenico::Connect::SDK::Domain::Payment::AbstractPaymentMethodSpecificOutput
25
28
 
29
+ attr_accessor :bank_account_bban
30
+
26
31
  attr_accessor :bank_account_iban
27
32
 
33
+ attr_accessor :bic
34
+
28
35
  attr_accessor :fraud_results
29
36
 
30
37
  attr_accessor :payment_product3201_specific_output
@@ -40,7 +47,9 @@ module Ingenico::Connect::SDK
40
47
  # @return (Hash)
41
48
  def to_h
42
49
  hash = super
50
+ hash['bankAccountBban'] = @bank_account_bban.to_h unless @bank_account_bban.nil?
43
51
  hash['bankAccountIban'] = @bank_account_iban.to_h unless @bank_account_iban.nil?
52
+ hash['bic'] = @bic unless @bic.nil?
44
53
  hash['fraudResults'] = @fraud_results.to_h unless @fraud_results.nil?
45
54
  hash['paymentProduct3201SpecificOutput'] = @payment_product3201_specific_output.to_h unless @payment_product3201_specific_output.nil?
46
55
  hash['paymentProduct806SpecificOutput'] = @payment_product806_specific_output.to_h unless @payment_product806_specific_output.nil?
@@ -52,10 +61,17 @@ module Ingenico::Connect::SDK
52
61
 
53
62
  def from_hash(hash)
54
63
  super
64
+ if hash.has_key? 'bankAccountBban'
65
+ raise TypeError, "value '%s' is not a Hash" % [hash['bankAccountBban']] unless hash['bankAccountBban'].is_a? Hash
66
+ @bank_account_bban = Ingenico::Connect::SDK::Domain::Definitions::BankAccountBban.new_from_hash(hash['bankAccountBban'])
67
+ end
55
68
  if hash.has_key? 'bankAccountIban'
56
69
  raise TypeError, "value '%s' is not a Hash" % [hash['bankAccountIban']] unless hash['bankAccountIban'].is_a? Hash
57
70
  @bank_account_iban = Ingenico::Connect::SDK::Domain::Definitions::BankAccountIban.new_from_hash(hash['bankAccountIban'])
58
71
  end
72
+ if hash.has_key? 'bic'
73
+ @bic = hash['bic']
74
+ end
59
75
  if hash.has_key? 'fraudResults'
60
76
  raise TypeError, "value '%s' is not a Hash" % [hash['fraudResults']] unless hash['fraudResults'].is_a? Hash
61
77
  @fraud_results = Ingenico::Connect::SDK::Domain::Definitions::FraudResults.new_from_hash(hash['fraudResults'])
@@ -11,6 +11,7 @@ module Ingenico::Connect::SDK
11
11
 
12
12
  # @attr [Ingenico::Connect::SDK::Domain::Definitions::AmountOfMoney] amount_of_money
13
13
  # @attr [String] country_code
14
+ # @attr [true/false] is_installments
14
15
  # @attr [true/false] is_recurring
15
16
  class PaymentContext < Ingenico::Connect::SDK::DataObject
16
17
 
@@ -18,6 +19,8 @@ module Ingenico::Connect::SDK
18
19
 
19
20
  attr_accessor :country_code
20
21
 
22
+ attr_accessor :is_installments
23
+
21
24
  attr_accessor :is_recurring
22
25
 
23
26
  # @return (Hash)
@@ -25,6 +28,7 @@ module Ingenico::Connect::SDK
25
28
  hash = super
26
29
  hash['amountOfMoney'] = @amount_of_money.to_h unless @amount_of_money.nil?
27
30
  hash['countryCode'] = @country_code unless @country_code.nil?
31
+ hash['isInstallments'] = @is_installments unless @is_installments.nil?
28
32
  hash['isRecurring'] = @is_recurring unless @is_recurring.nil?
29
33
  hash
30
34
  end
@@ -38,6 +42,9 @@ module Ingenico::Connect::SDK
38
42
  if hash.has_key? 'countryCode'
39
43
  @country_code = hash['countryCode']
40
44
  end
45
+ if hash.has_key? 'isInstallments'
46
+ @is_installments = hash['isInstallments']
47
+ end
41
48
  if hash.has_key? 'isRecurring'
42
49
  @is_recurring = hash['isRecurring']
43
50
  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.19.0'
10
+ @@SDK_VERSION = '2.20.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.19.0
4
+ version: 2.20.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: 2021-03-03 00:00:00.000000000 Z
11
+ date: 2021-04-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httpclient