connect-sdk-ruby 2.7.0 → 2.8.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: e6099cda6eac7da4737b0bea9a334ca8fedbe9b355f93a9908bfc8db10052a58
4
- data.tar.gz: 3ffabf9da99a3aef5dfe82ea229c3f923f8aae83f67bde5058babc4591ce52d3
3
+ metadata.gz: f485cc722658719c5210de579a671c54cff378907adc818d3126da50339ef013
4
+ data.tar.gz: 4502eee51dc8326e826d3c710fe0771b2c813e2d6550136c224c24318be7072e
5
5
  SHA512:
6
- metadata.gz: 17cb263f8f4be7e76d0d63be7d280f2114e57e1e2747686be149c899ca9abd0bf870ec4d20cb4995a34ede144092191c7b503d7c247d1122dfda568357fc33e2
7
- data.tar.gz: 04e61626b2be322fdc2ad6be73985adf6a260851d3f24acf91544c797cf69332e341d661c4244a304e8d89fd9c5105a429db0eef346ddec36c1d41e98c5ea004
6
+ metadata.gz: 79fd16223994f5759c6d8bf17ec1865b4175846b95820cb45b7b35285cf679c12b81d044a0c9db2e505565e08835da004f46970037efc71a587119a9e9de3a8b
7
+ data.tar.gz: b2ac36a30aa3980289f6af652202ecc949e4c921d4aa5d99b722c13a229726d0268a466f141e10facf6600230adc483855b68075c8bb35b235b42e5aa4c6e62d
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = 'connect-sdk-ruby'
3
- spec.version = '2.7.0'
3
+ spec.version = '2.8.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}
@@ -0,0 +1,43 @@
1
+ #
2
+ # This class was auto-generated from the API references found at
3
+ # https://epayments-api.developer-ingenico.com/s2sapi/v1/
4
+ #
5
+ require 'ingenico/connect/sdk/data_object'
6
+ require 'ingenico/connect/sdk/domain/definitions/address'
7
+ require 'ingenico/connect/sdk/domain/payment/trustly_bank_account'
8
+
9
+ module Ingenico::Connect::SDK
10
+ module Domain
11
+ module Payment
12
+
13
+ # @attr [Ingenico::Connect::SDK::Domain::Definitions::Address] billing_address
14
+ # @attr [Ingenico::Connect::SDK::Domain::Payment::TrustlyBankAccount] customer_account
15
+ class PaymentProduct806SpecificOutput < Ingenico::Connect::SDK::DataObject
16
+
17
+ attr_accessor :billing_address
18
+
19
+ attr_accessor :customer_account
20
+
21
+ # @return (Hash)
22
+ def to_h
23
+ hash = super
24
+ hash['billingAddress'] = @billing_address.to_h unless @billing_address.nil?
25
+ hash['customerAccount'] = @customer_account.to_h unless @customer_account.nil?
26
+ hash
27
+ end
28
+
29
+ def from_hash(hash)
30
+ super
31
+ if hash.has_key? 'billingAddress'
32
+ raise TypeError, "value '%s' is not a Hash" % [hash['billingAddress']] unless hash['billingAddress'].is_a? Hash
33
+ @billing_address = Ingenico::Connect::SDK::Domain::Definitions::Address.new_from_hash(hash['billingAddress'])
34
+ end
35
+ if hash.has_key? 'customerAccount'
36
+ raise TypeError, "value '%s' is not a Hash" % [hash['customerAccount']] unless hash['customerAccount'].is_a? Hash
37
+ @customer_account = Ingenico::Connect::SDK::Domain::Payment::TrustlyBankAccount.new_from_hash(hash['customerAccount'])
38
+ end
39
+ end
40
+ end
41
+ end
42
+ end
43
+ end
@@ -6,6 +6,7 @@ require 'ingenico/connect/sdk/domain/definitions/bank_account_iban'
6
6
  require 'ingenico/connect/sdk/domain/definitions/fraud_results'
7
7
  require 'ingenico/connect/sdk/domain/payment/abstract_payment_method_specific_output'
8
8
  require 'ingenico/connect/sdk/domain/payment/payment_product3201_specific_output'
9
+ require 'ingenico/connect/sdk/domain/payment/payment_product806_specific_output'
9
10
  require 'ingenico/connect/sdk/domain/payment/payment_product836_specific_output'
10
11
  require 'ingenico/connect/sdk/domain/payment/payment_product840_specific_output'
11
12
 
@@ -16,6 +17,7 @@ module Ingenico::Connect::SDK
16
17
  # @attr [Ingenico::Connect::SDK::Domain::Definitions::BankAccountIban] bank_account_iban
17
18
  # @attr [Ingenico::Connect::SDK::Domain::Definitions::FraudResults] fraud_results
18
19
  # @attr [Ingenico::Connect::SDK::Domain::Payment::PaymentProduct3201SpecificOutput] payment_product3201_specific_output
20
+ # @attr [Ingenico::Connect::SDK::Domain::Payment::PaymentProduct806SpecificOutput] payment_product806_specific_output
19
21
  # @attr [Ingenico::Connect::SDK::Domain::Payment::PaymentProduct836SpecificOutput] payment_product836_specific_output
20
22
  # @attr [Ingenico::Connect::SDK::Domain::Payment::PaymentProduct840SpecificOutput] payment_product840_specific_output
21
23
  # @attr [String] token
@@ -27,6 +29,8 @@ module Ingenico::Connect::SDK
27
29
 
28
30
  attr_accessor :payment_product3201_specific_output
29
31
 
32
+ attr_accessor :payment_product806_specific_output
33
+
30
34
  attr_accessor :payment_product836_specific_output
31
35
 
32
36
  attr_accessor :payment_product840_specific_output
@@ -39,6 +43,7 @@ module Ingenico::Connect::SDK
39
43
  hash['bankAccountIban'] = @bank_account_iban.to_h unless @bank_account_iban.nil?
40
44
  hash['fraudResults'] = @fraud_results.to_h unless @fraud_results.nil?
41
45
  hash['paymentProduct3201SpecificOutput'] = @payment_product3201_specific_output.to_h unless @payment_product3201_specific_output.nil?
46
+ hash['paymentProduct806SpecificOutput'] = @payment_product806_specific_output.to_h unless @payment_product806_specific_output.nil?
42
47
  hash['paymentProduct836SpecificOutput'] = @payment_product836_specific_output.to_h unless @payment_product836_specific_output.nil?
43
48
  hash['paymentProduct840SpecificOutput'] = @payment_product840_specific_output.to_h unless @payment_product840_specific_output.nil?
44
49
  hash['token'] = @token unless @token.nil?
@@ -59,6 +64,10 @@ module Ingenico::Connect::SDK
59
64
  raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct3201SpecificOutput']] unless hash['paymentProduct3201SpecificOutput'].is_a? Hash
60
65
  @payment_product3201_specific_output = Ingenico::Connect::SDK::Domain::Payment::PaymentProduct3201SpecificOutput.new_from_hash(hash['paymentProduct3201SpecificOutput'])
61
66
  end
67
+ if hash.has_key? 'paymentProduct806SpecificOutput'
68
+ raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct806SpecificOutput']] unless hash['paymentProduct806SpecificOutput'].is_a? Hash
69
+ @payment_product806_specific_output = Ingenico::Connect::SDK::Domain::Payment::PaymentProduct806SpecificOutput.new_from_hash(hash['paymentProduct806SpecificOutput'])
70
+ end
62
71
  if hash.has_key? 'paymentProduct836SpecificOutput'
63
72
  raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct836SpecificOutput']] unless hash['paymentProduct836SpecificOutput'].is_a? Hash
64
73
  @payment_product836_specific_output = Ingenico::Connect::SDK::Domain::Payment::PaymentProduct836SpecificOutput.new_from_hash(hash['paymentProduct836SpecificOutput'])
@@ -0,0 +1,53 @@
1
+ #
2
+ # This class was auto-generated from the API references found at
3
+ # https://epayments-api.developer-ingenico.com/s2sapi/v1/
4
+ #
5
+ require 'ingenico/connect/sdk/data_object'
6
+
7
+ module Ingenico::Connect::SDK
8
+ module Domain
9
+ module Payment
10
+
11
+ # @attr [String] account_last_digits
12
+ # @attr [String] bank_name
13
+ # @attr [String] clearinghouse
14
+ # @attr [String] person_identification_number
15
+ class TrustlyBankAccount < Ingenico::Connect::SDK::DataObject
16
+
17
+ attr_accessor :account_last_digits
18
+
19
+ attr_accessor :bank_name
20
+
21
+ attr_accessor :clearinghouse
22
+
23
+ attr_accessor :person_identification_number
24
+
25
+ # @return (Hash)
26
+ def to_h
27
+ hash = super
28
+ hash['accountLastDigits'] = @account_last_digits unless @account_last_digits.nil?
29
+ hash['bankName'] = @bank_name unless @bank_name.nil?
30
+ hash['clearinghouse'] = @clearinghouse unless @clearinghouse.nil?
31
+ hash['personIdentificationNumber'] = @person_identification_number unless @person_identification_number.nil?
32
+ hash
33
+ end
34
+
35
+ def from_hash(hash)
36
+ super
37
+ if hash.has_key? 'accountLastDigits'
38
+ @account_last_digits = hash['accountLastDigits']
39
+ end
40
+ if hash.has_key? 'bankName'
41
+ @bank_name = hash['bankName']
42
+ end
43
+ if hash.has_key? 'clearinghouse'
44
+ @clearinghouse = hash['clearinghouse']
45
+ end
46
+ if hash.has_key? 'personIdentificationNumber'
47
+ @person_identification_number = hash['personIdentificationNumber']
48
+ end
49
+ end
50
+ end
51
+ end
52
+ end
53
+ 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.7.0'
10
+ @@SDK_VERSION = '2.8.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.7.0
4
+ version: 2.8.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-03-10 00:00:00.000000000 Z
11
+ date: 2020-04-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httpclient
@@ -387,6 +387,7 @@ files:
387
387
  - lib/ingenico/connect/sdk/domain/payment/payment_output.rb
388
388
  - lib/ingenico/connect/sdk/domain/payment/payment_product3201_specific_output.rb
389
389
  - lib/ingenico/connect/sdk/domain/payment/payment_product771_specific_output.rb
390
+ - lib/ingenico/connect/sdk/domain/payment/payment_product806_specific_output.rb
390
391
  - lib/ingenico/connect/sdk/domain/payment/payment_product836_specific_output.rb
391
392
  - lib/ingenico/connect/sdk/domain/payment/payment_product840_customer_account.rb
392
393
  - lib/ingenico/connect/sdk/domain/payment/payment_product840_specific_output.rb
@@ -437,6 +438,7 @@ files:
437
438
  - lib/ingenico/connect/sdk/domain/payment/three_d_secure_data.rb
438
439
  - lib/ingenico/connect/sdk/domain/payment/three_d_secure_results.rb
439
440
  - lib/ingenico/connect/sdk/domain/payment/tokenize_payment_request.rb
441
+ - lib/ingenico/connect/sdk/domain/payment/trustly_bank_account.rb
440
442
  - lib/ingenico/connect/sdk/domain/payout/abstract_payout_method_specific_input.rb
441
443
  - lib/ingenico/connect/sdk/domain/payout/approve_payout_request.rb
442
444
  - lib/ingenico/connect/sdk/domain/payout/bank_transfer_payout_method_specific_input.rb