connect-sdk-ruby 2.43.0 → 2.45.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: 0ccbd5c5e5a1bfc862f437b25be46a8d4b6042237206a8800a05d86225962e4b
4
- data.tar.gz: 733cde41347c66fb23ab5e554bdc188d31a015a2f997fb0ea568fa8275414182
3
+ metadata.gz: 82a0f897f3cc9348726d0816db6df47ba0662ee38556fc394e272ad4555a288c
4
+ data.tar.gz: a82ecea58a4d0a6029830f79317de80c12f65c999534a0505863ecefe11e4c36
5
5
  SHA512:
6
- metadata.gz: 41574e2990ddab8b6f7396847a9257b2468de4807d1f404f2cd63414a036572b16eca6621eedd558ca06f107ac34f5ac3d173641822656485fa95da89e1f3f74
7
- data.tar.gz: b8c102463d9ae5b17eabedf3b40399cc640a8dd8e41571d4401ed1b2ffaa0121ce717668c1f2a4cbebd3882c265b66d9faee7a77eec336d68c43b743640222d7
6
+ metadata.gz: 58b73443c785af4a79d06cc63f0511dc45774980c05224fdbd73d57d283b52fac8390188d2cb82e261def8b20d913ee3a5def613be99ca45c54d3d9185c769a2
7
+ data.tar.gz: f3983c9bdbe0bd240511af7fe0a5842498b58355e145d43584a5fd68bed1aea97c616525e0c66d572218fa9737a9af52fd0062b5b88a9af9f196aaa6232f879c
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = 'connect-sdk-ruby'
3
- spec.version = '2.43.0'
3
+ spec.version = '2.45.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}
@@ -5,7 +5,6 @@
5
5
  require 'ingenico/connect/sdk/domain/definitions/fraud_results'
6
6
  require 'ingenico/connect/sdk/domain/definitions/fraud_results_retail_decisions'
7
7
  require 'ingenico/connect/sdk/domain/definitions/fraugster_results'
8
- require 'ingenico/connect/sdk/domain/definitions/microsoft_fraud_results'
9
8
 
10
9
  module Ingenico::Connect::SDK
11
10
  module Domain
@@ -14,7 +13,6 @@ module Ingenico::Connect::SDK
14
13
  # @attr [String] avs_result
15
14
  # @attr [String] cvv_result
16
15
  # @attr [Ingenico::Connect::SDK::Domain::Definitions::FraugsterResults] fraugster
17
- # @attr [Ingenico::Connect::SDK::Domain::Definitions::MicrosoftFraudResults] microsoft_fraud_protection
18
16
  # @attr [Ingenico::Connect::SDK::Domain::Definitions::FraudResultsRetailDecisions] retail_decisions
19
17
  class CardFraudResults < Ingenico::Connect::SDK::Domain::Definitions::FraudResults
20
18
 
@@ -24,8 +22,6 @@ module Ingenico::Connect::SDK
24
22
 
25
23
  attr_accessor :fraugster
26
24
 
27
- attr_accessor :microsoft_fraud_protection
28
-
29
25
  attr_accessor :retail_decisions
30
26
 
31
27
  # @return (Hash)
@@ -34,7 +30,6 @@ module Ingenico::Connect::SDK
34
30
  hash['avsResult'] = @avs_result unless @avs_result.nil?
35
31
  hash['cvvResult'] = @cvv_result unless @cvv_result.nil?
36
32
  hash['fraugster'] = @fraugster.to_h unless @fraugster.nil?
37
- hash['microsoftFraudProtection'] = @microsoft_fraud_protection.to_h unless @microsoft_fraud_protection.nil?
38
33
  hash['retailDecisions'] = @retail_decisions.to_h unless @retail_decisions.nil?
39
34
  hash
40
35
  end
@@ -51,10 +46,6 @@ module Ingenico::Connect::SDK
51
46
  raise TypeError, "value '%s' is not a Hash" % [hash['fraugster']] unless hash['fraugster'].is_a? Hash
52
47
  @fraugster = Ingenico::Connect::SDK::Domain::Definitions::FraugsterResults.new_from_hash(hash['fraugster'])
53
48
  end
54
- if hash.has_key? 'microsoftFraudProtection'
55
- raise TypeError, "value '%s' is not a Hash" % [hash['microsoftFraudProtection']] unless hash['microsoftFraudProtection'].is_a? Hash
56
- @microsoft_fraud_protection = Ingenico::Connect::SDK::Domain::Definitions::MicrosoftFraudResults.new_from_hash(hash['microsoftFraudProtection'])
57
- end
58
49
  if hash.has_key? 'retailDecisions'
59
50
  raise TypeError, "value '%s' is not a Hash" % [hash['retailDecisions']] unless hash['retailDecisions'].is_a? Hash
60
51
  @retail_decisions = Ingenico::Connect::SDK::Domain::Definitions::FraudResultsRetailDecisions.new_from_hash(hash['retailDecisions'])
@@ -4,6 +4,7 @@
4
4
  #
5
5
  require 'ingenico/connect/sdk/data_object'
6
6
  require 'ingenico/connect/sdk/domain/definitions/in_auth'
7
+ require 'ingenico/connect/sdk/domain/definitions/microsoft_fraud_results'
7
8
 
8
9
  module Ingenico::Connect::SDK
9
10
  module Domain
@@ -11,17 +12,21 @@ module Ingenico::Connect::SDK
11
12
 
12
13
  # @attr [String] fraud_service_result
13
14
  # @attr [Ingenico::Connect::SDK::Domain::Definitions::InAuth] in_auth
15
+ # @attr [Ingenico::Connect::SDK::Domain::Definitions::MicrosoftFraudResults] microsoft_fraud_protection
14
16
  class FraudResults < Ingenico::Connect::SDK::DataObject
15
17
 
16
18
  attr_accessor :fraud_service_result
17
19
 
18
20
  attr_accessor :in_auth
19
21
 
22
+ attr_accessor :microsoft_fraud_protection
23
+
20
24
  # @return (Hash)
21
25
  def to_h
22
26
  hash = super
23
27
  hash['fraudServiceResult'] = @fraud_service_result unless @fraud_service_result.nil?
24
28
  hash['inAuth'] = @in_auth.to_h unless @in_auth.nil?
29
+ hash['microsoftFraudProtection'] = @microsoft_fraud_protection.to_h unless @microsoft_fraud_protection.nil?
25
30
  hash
26
31
  end
27
32
 
@@ -34,6 +39,10 @@ module Ingenico::Connect::SDK
34
39
  raise TypeError, "value '%s' is not a Hash" % [hash['inAuth']] unless hash['inAuth'].is_a? Hash
35
40
  @in_auth = Ingenico::Connect::SDK::Domain::Definitions::InAuth.new_from_hash(hash['inAuth'])
36
41
  end
42
+ if hash.has_key? 'microsoftFraudProtection'
43
+ raise TypeError, "value '%s' is not a Hash" % [hash['microsoftFraudProtection']] unless hash['microsoftFraudProtection'].is_a? Hash
44
+ @microsoft_fraud_protection = Ingenico::Connect::SDK::Domain::Definitions::MicrosoftFraudResults.new_from_hash(hash['microsoftFraudProtection'])
45
+ end
37
46
  end
38
47
  end
39
48
  end
@@ -0,0 +1,71 @@
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/afr_name'
8
+
9
+ module Ingenico::Connect::SDK
10
+ module Domain
11
+ module Payment
12
+
13
+ # @attr [String] account_number
14
+ # @attr [String] account_number_type
15
+ # @attr [Ingenico::Connect::SDK::Domain::Definitions::Address] address
16
+ # @attr [String] date_of_birth
17
+ # @attr [Ingenico::Connect::SDK::Domain::Payment::AfrName] name
18
+ # @attr [String] partial_pan
19
+ class AccountFundingRecipient < Ingenico::Connect::SDK::DataObject
20
+
21
+ attr_accessor :account_number
22
+
23
+ attr_accessor :account_number_type
24
+
25
+ attr_accessor :address
26
+
27
+ attr_accessor :date_of_birth
28
+
29
+ attr_accessor :name
30
+
31
+ attr_accessor :partial_pan
32
+
33
+ # @return (Hash)
34
+ def to_h
35
+ hash = super
36
+ hash['accountNumber'] = @account_number unless @account_number.nil?
37
+ hash['accountNumberType'] = @account_number_type unless @account_number_type.nil?
38
+ hash['address'] = @address.to_h unless @address.nil?
39
+ hash['dateOfBirth'] = @date_of_birth unless @date_of_birth.nil?
40
+ hash['name'] = @name.to_h unless @name.nil?
41
+ hash['partialPan'] = @partial_pan unless @partial_pan.nil?
42
+ hash
43
+ end
44
+
45
+ def from_hash(hash)
46
+ super
47
+ if hash.has_key? 'accountNumber'
48
+ @account_number = hash['accountNumber']
49
+ end
50
+ if hash.has_key? 'accountNumberType'
51
+ @account_number_type = hash['accountNumberType']
52
+ end
53
+ if hash.has_key? 'address'
54
+ raise TypeError, "value '%s' is not a Hash" % [hash['address']] unless hash['address'].is_a? Hash
55
+ @address = Ingenico::Connect::SDK::Domain::Definitions::Address.new_from_hash(hash['address'])
56
+ end
57
+ if hash.has_key? 'dateOfBirth'
58
+ @date_of_birth = hash['dateOfBirth']
59
+ end
60
+ if hash.has_key? 'name'
61
+ raise TypeError, "value '%s' is not a Hash" % [hash['name']] unless hash['name'].is_a? Hash
62
+ @name = Ingenico::Connect::SDK::Domain::Payment::AfrName.new_from_hash(hash['name'])
63
+ end
64
+ if hash.has_key? 'partialPan'
65
+ @partial_pan = hash['partialPan']
66
+ end
67
+ end
68
+ end
69
+ end
70
+ end
71
+ end
@@ -5,6 +5,7 @@
5
5
  require 'ingenico/connect/sdk/data_object'
6
6
  require 'ingenico/connect/sdk/domain/definitions/airline_data'
7
7
  require 'ingenico/connect/sdk/domain/definitions/lodging_data'
8
+ require 'ingenico/connect/sdk/domain/payment/account_funding_recipient'
8
9
  require 'ingenico/connect/sdk/domain/payment/installments'
9
10
  require 'ingenico/connect/sdk/domain/payment/level3_summary_data'
10
11
  require 'ingenico/connect/sdk/domain/payment/loan_recipient'
@@ -14,6 +15,7 @@ module Ingenico::Connect::SDK
14
15
  module Domain
15
16
  module Payment
16
17
 
18
+ # @attr [Ingenico::Connect::SDK::Domain::Payment::AccountFundingRecipient] account_funding_recipient
17
19
  # @attr [Ingenico::Connect::SDK::Domain::Definitions::AirlineData] airline_data
18
20
  # @attr [Ingenico::Connect::SDK::Domain::Payment::Installments] installments
19
21
  # @attr [Ingenico::Connect::SDK::Domain::Payment::Level3SummaryData] level3_summary_data
@@ -24,6 +26,8 @@ module Ingenico::Connect::SDK
24
26
  # @attr [Ingenico::Connect::SDK::Domain::Payment::OrderTypeInformation] type_information
25
27
  class AdditionalOrderInput < Ingenico::Connect::SDK::DataObject
26
28
 
29
+ attr_accessor :account_funding_recipient
30
+
27
31
  attr_accessor :airline_data
28
32
 
29
33
  attr_accessor :installments
@@ -32,6 +36,8 @@ module Ingenico::Connect::SDK
32
36
  # @deprecated Use Order.shoppingCart.amountBreakdown instead
33
37
  attr_accessor :level3_summary_data
34
38
 
39
+ #
40
+ # @deprecated No replacement
35
41
  attr_accessor :loan_recipient
36
42
 
37
43
  attr_accessor :lodging_data
@@ -47,6 +53,7 @@ module Ingenico::Connect::SDK
47
53
  # @return (Hash)
48
54
  def to_h
49
55
  hash = super
56
+ hash['accountFundingRecipient'] = @account_funding_recipient.to_h unless @account_funding_recipient.nil?
50
57
  hash['airlineData'] = @airline_data.to_h unless @airline_data.nil?
51
58
  hash['installments'] = @installments.to_h unless @installments.nil?
52
59
  hash['level3SummaryData'] = @level3_summary_data.to_h unless @level3_summary_data.nil?
@@ -60,6 +67,10 @@ module Ingenico::Connect::SDK
60
67
 
61
68
  def from_hash(hash)
62
69
  super
70
+ if hash.has_key? 'accountFundingRecipient'
71
+ raise TypeError, "value '%s' is not a Hash" % [hash['accountFundingRecipient']] unless hash['accountFundingRecipient'].is_a? Hash
72
+ @account_funding_recipient = Ingenico::Connect::SDK::Domain::Payment::AccountFundingRecipient.new_from_hash(hash['accountFundingRecipient'])
73
+ end
63
74
  if hash.has_key? 'airlineData'
64
75
  raise TypeError, "value '%s' is not a Hash" % [hash['airlineData']] unless hash['airlineData'].is_a? Hash
65
76
  @airline_data = Ingenico::Connect::SDK::Domain::Definitions::AirlineData.new_from_hash(hash['airlineData'])
@@ -0,0 +1,39 @@
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] first_name
12
+ # @attr [String] surname
13
+ class AfrName < Ingenico::Connect::SDK::DataObject
14
+
15
+ attr_accessor :first_name
16
+
17
+ attr_accessor :surname
18
+
19
+ # @return (Hash)
20
+ def to_h
21
+ hash = super
22
+ hash['firstName'] = @first_name unless @first_name.nil?
23
+ hash['surname'] = @surname unless @surname.nil?
24
+ hash
25
+ end
26
+
27
+ def from_hash(hash)
28
+ super
29
+ if hash.has_key? 'firstName'
30
+ @first_name = hash['firstName']
31
+ end
32
+ if hash.has_key? 'surname'
33
+ @surname = hash['surname']
34
+ end
35
+ end
36
+ end
37
+ end
38
+ end
39
+ end
@@ -20,6 +20,7 @@ module Ingenico::Connect::SDK
20
20
  # @attr [Ingenico::Connect::SDK::Domain::Payment::ContactDetails] contact_details
21
21
  # @attr [Ingenico::Connect::SDK::Domain::Payment::CustomerDevice] device
22
22
  # @attr [String] fiscal_number
23
+ # @attr [true/false] is_company
23
24
  # @attr [true/false] is_previous_customer
24
25
  # @attr [String] locale
25
26
  # @attr [Ingenico::Connect::SDK::Domain::Payment::PersonalInformation] personal_information
@@ -38,6 +39,8 @@ module Ingenico::Connect::SDK
38
39
 
39
40
  attr_accessor :fiscal_number
40
41
 
42
+ attr_accessor :is_company
43
+
41
44
  attr_accessor :is_previous_customer
42
45
 
43
46
  attr_accessor :locale
@@ -57,6 +60,7 @@ module Ingenico::Connect::SDK
57
60
  hash['contactDetails'] = @contact_details.to_h unless @contact_details.nil?
58
61
  hash['device'] = @device.to_h unless @device.nil?
59
62
  hash['fiscalNumber'] = @fiscal_number unless @fiscal_number.nil?
63
+ hash['isCompany'] = @is_company unless @is_company.nil?
60
64
  hash['isPreviousCustomer'] = @is_previous_customer unless @is_previous_customer.nil?
61
65
  hash['locale'] = @locale unless @locale.nil?
62
66
  hash['personalInformation'] = @personal_information.to_h unless @personal_information.nil?
@@ -88,6 +92,9 @@ module Ingenico::Connect::SDK
88
92
  if hash.has_key? 'fiscalNumber'
89
93
  @fiscal_number = hash['fiscalNumber']
90
94
  end
95
+ if hash.has_key? 'isCompany'
96
+ @is_company = hash['isCompany']
97
+ end
91
98
  if hash.has_key? 'isPreviousCustomer'
92
99
  @is_previous_customer = hash['isPreviousCustomer']
93
100
  end
@@ -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/fraud_results'
5
6
  require 'ingenico/connect/sdk/domain/payment/abstract_payment_method_specific_output'
6
7
  require 'ingenico/connect/sdk/domain/payment/e_invoice_payment_product9000_specific_output'
7
8
 
@@ -9,20 +10,28 @@ module Ingenico::Connect::SDK
9
10
  module Domain
10
11
  module Payment
11
12
 
13
+ # @attr [Ingenico::Connect::SDK::Domain::Definitions::FraudResults] fraud_results
12
14
  # @attr [Ingenico::Connect::SDK::Domain::Payment::EInvoicePaymentProduct9000SpecificOutput] payment_product9000_specific_output
13
15
  class EInvoicePaymentMethodSpecificOutput < Ingenico::Connect::SDK::Domain::Payment::AbstractPaymentMethodSpecificOutput
14
16
 
17
+ attr_accessor :fraud_results
18
+
15
19
  attr_accessor :payment_product9000_specific_output
16
20
 
17
21
  # @return (Hash)
18
22
  def to_h
19
23
  hash = super
24
+ hash['fraudResults'] = @fraud_results.to_h unless @fraud_results.nil?
20
25
  hash['paymentProduct9000SpecificOutput'] = @payment_product9000_specific_output.to_h unless @payment_product9000_specific_output.nil?
21
26
  hash
22
27
  end
23
28
 
24
29
  def from_hash(hash)
25
30
  super
31
+ if hash.has_key? 'fraudResults'
32
+ raise TypeError, "value '%s' is not a Hash" % [hash['fraudResults']] unless hash['fraudResults'].is_a? Hash
33
+ @fraud_results = Ingenico::Connect::SDK::Domain::Definitions::FraudResults.new_from_hash(hash['fraudResults'])
34
+ end
26
35
  if hash.has_key? 'paymentProduct9000SpecificOutput'
27
36
  raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct9000SpecificOutput']] unless hash['paymentProduct9000SpecificOutput'].is_a? Hash
28
37
  @payment_product9000_specific_output = Ingenico::Connect::SDK::Domain::Payment::EInvoicePaymentProduct9000SpecificOutput.new_from_hash(hash['paymentProduct9000SpecificOutput'])
@@ -13,16 +13,27 @@ module Ingenico::Connect::SDK
13
13
  # @attr [String] partial_pan
14
14
  # @attr [String] surname
15
15
  # @attr [String] zip
16
+ # @deprecated No replacement
16
17
  class LoanRecipient < Ingenico::Connect::SDK::DataObject
17
18
 
19
+ #
20
+ # @deprecated No replacement
18
21
  attr_accessor :account_number
19
22
 
23
+ #
24
+ # @deprecated No replacement
20
25
  attr_accessor :date_of_birth
21
26
 
27
+ #
28
+ # @deprecated No replacement
22
29
  attr_accessor :partial_pan
23
30
 
31
+ #
32
+ # @deprecated No replacement
24
33
  attr_accessor :surname
25
34
 
35
+ #
36
+ # @deprecated No replacement
26
37
  attr_accessor :zip
27
38
 
28
39
  # @return (Hash)
@@ -8,11 +8,14 @@ module Ingenico::Connect::SDK
8
8
  module Domain
9
9
  module Payment
10
10
 
11
+ # @attr [String] funding_type
11
12
  # @attr [String] purchase_type
12
13
  # @attr [String] transaction_type
13
14
  # @attr [String] usage_type
14
15
  class OrderTypeInformation < Ingenico::Connect::SDK::DataObject
15
16
 
17
+ attr_accessor :funding_type
18
+
16
19
  attr_accessor :purchase_type
17
20
 
18
21
  attr_accessor :transaction_type
@@ -22,6 +25,7 @@ module Ingenico::Connect::SDK
22
25
  # @return (Hash)
23
26
  def to_h
24
27
  hash = super
28
+ hash['fundingType'] = @funding_type unless @funding_type.nil?
25
29
  hash['purchaseType'] = @purchase_type unless @purchase_type.nil?
26
30
  hash['transactionType'] = @transaction_type unless @transaction_type.nil?
27
31
  hash['usageType'] = @usage_type unless @usage_type.nil?
@@ -30,6 +34,9 @@ module Ingenico::Connect::SDK
30
34
 
31
35
  def from_hash(hash)
32
36
  super
37
+ if hash.has_key? 'fundingType'
38
+ @funding_type = hash['fundingType']
39
+ end
33
40
  if hash.has_key? 'purchaseType'
34
41
  @purchase_type = hash['purchaseType']
35
42
  end
@@ -0,0 +1,46 @@
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] id_issuing_country_code
12
+ # @attr [String] id_type
13
+ # @attr [String] id_value
14
+ class PersonalIdentification < Ingenico::Connect::SDK::DataObject
15
+
16
+ attr_accessor :id_issuing_country_code
17
+
18
+ attr_accessor :id_type
19
+
20
+ attr_accessor :id_value
21
+
22
+ # @return (Hash)
23
+ def to_h
24
+ hash = super
25
+ hash['idIssuingCountryCode'] = @id_issuing_country_code unless @id_issuing_country_code.nil?
26
+ hash['idType'] = @id_type unless @id_type.nil?
27
+ hash['idValue'] = @id_value unless @id_value.nil?
28
+ hash
29
+ end
30
+
31
+ def from_hash(hash)
32
+ super
33
+ if hash.has_key? 'idIssuingCountryCode'
34
+ @id_issuing_country_code = hash['idIssuingCountryCode']
35
+ end
36
+ if hash.has_key? 'idType'
37
+ @id_type = hash['idType']
38
+ end
39
+ if hash.has_key? 'idValue'
40
+ @id_value = hash['idValue']
41
+ end
42
+ end
43
+ end
44
+ end
45
+ end
46
+ end
@@ -3,6 +3,7 @@
3
3
  # https://epayments-api.developer-ingenico.com/s2sapi/v1/
4
4
  #
5
5
  require 'ingenico/connect/sdk/data_object'
6
+ require 'ingenico/connect/sdk/domain/payment/personal_identification'
6
7
  require 'ingenico/connect/sdk/domain/payment/personal_name'
7
8
 
8
9
  module Ingenico::Connect::SDK
@@ -11,6 +12,7 @@ module Ingenico::Connect::SDK
11
12
 
12
13
  # @attr [String] date_of_birth
13
14
  # @attr [String] gender
15
+ # @attr [Ingenico::Connect::SDK::Domain::Payment::PersonalIdentification] identification
14
16
  # @attr [Ingenico::Connect::SDK::Domain::Payment::PersonalName] name
15
17
  class PersonalInformation < Ingenico::Connect::SDK::DataObject
16
18
 
@@ -18,6 +20,8 @@ module Ingenico::Connect::SDK
18
20
 
19
21
  attr_accessor :gender
20
22
 
23
+ attr_accessor :identification
24
+
21
25
  attr_accessor :name
22
26
 
23
27
  # @return (Hash)
@@ -25,6 +29,7 @@ module Ingenico::Connect::SDK
25
29
  hash = super
26
30
  hash['dateOfBirth'] = @date_of_birth unless @date_of_birth.nil?
27
31
  hash['gender'] = @gender unless @gender.nil?
32
+ hash['identification'] = @identification.to_h unless @identification.nil?
28
33
  hash['name'] = @name.to_h unless @name.nil?
29
34
  hash
30
35
  end
@@ -37,6 +42,10 @@ module Ingenico::Connect::SDK
37
42
  if hash.has_key? 'gender'
38
43
  @gender = hash['gender']
39
44
  end
45
+ if hash.has_key? 'identification'
46
+ raise TypeError, "value '%s' is not a Hash" % [hash['identification']] unless hash['identification'].is_a? Hash
47
+ @identification = Ingenico::Connect::SDK::Domain::Payment::PersonalIdentification.new_from_hash(hash['identification'])
48
+ end
40
49
  if hash.has_key? 'name'
41
50
  raise TypeError, "value '%s' is not a Hash" % [hash['name']] unless hash['name'].is_a? Hash
42
51
  @name = Ingenico::Connect::SDK::Domain::Payment::PersonalName.new_from_hash(hash['name'])
@@ -9,7 +9,6 @@ module Ingenico::Connect::SDK
9
9
  module Domain
10
10
  module Payment
11
11
 
12
- # @attr [String] device_info
13
12
  # @attr [Ingenico::Connect::SDK::Domain::Payment::DeviceRenderOptions] device_render_options
14
13
  # @attr [String] sdk_app_id
15
14
  # @attr [String] sdk_encrypted_data
@@ -19,10 +18,6 @@ module Ingenico::Connect::SDK
19
18
  # @attr [String] sdk_transaction_id
20
19
  class SdkDataInput < Ingenico::Connect::SDK::DataObject
21
20
 
22
- #
23
- # @deprecated No replacement
24
- attr_accessor :device_info
25
-
26
21
  attr_accessor :device_render_options
27
22
 
28
23
  attr_accessor :sdk_app_id
@@ -40,7 +35,6 @@ module Ingenico::Connect::SDK
40
35
  # @return (Hash)
41
36
  def to_h
42
37
  hash = super
43
- hash['deviceInfo'] = @device_info unless @device_info.nil?
44
38
  hash['deviceRenderOptions'] = @device_render_options.to_h unless @device_render_options.nil?
45
39
  hash['sdkAppId'] = @sdk_app_id unless @sdk_app_id.nil?
46
40
  hash['sdkEncryptedData'] = @sdk_encrypted_data unless @sdk_encrypted_data.nil?
@@ -53,9 +47,6 @@ module Ingenico::Connect::SDK
53
47
 
54
48
  def from_hash(hash)
55
49
  super
56
- if hash.has_key? 'deviceInfo'
57
- @device_info = hash['deviceInfo']
58
- end
59
50
  if hash.has_key? 'deviceRenderOptions'
60
51
  raise TypeError, "value '%s' is not a Hash" % [hash['deviceRenderOptions']] unless hash['deviceRenderOptions'].is_a? Hash
61
52
  @device_render_options = Ingenico::Connect::SDK::Domain::Payment::DeviceRenderOptions.new_from_hash(hash['deviceRenderOptions'])
@@ -28,6 +28,7 @@ module Ingenico::Connect::SDK
28
28
  # @attr [Array<Ingenico::Connect::SDK::Domain::Product::PaymentProductField>] fields
29
29
  # @attr [String] fields_warning
30
30
  # @attr [Integer] id
31
+ # @attr [true/false] is_authentication_supported
31
32
  # @attr [true/false] is_java_script_required
32
33
  # @attr [Integer] max_amount
33
34
  # @attr [Integer] min_amount
@@ -67,6 +68,8 @@ module Ingenico::Connect::SDK
67
68
 
68
69
  attr_accessor :id
69
70
 
71
+ attr_accessor :is_authentication_supported
72
+
70
73
  attr_accessor :is_java_script_required
71
74
 
72
75
  attr_accessor :max_amount
@@ -105,6 +108,7 @@ module Ingenico::Connect::SDK
105
108
  hash['fields'] = @fields.collect{|val| val.to_h} unless @fields.nil?
106
109
  hash['fieldsWarning'] = @fields_warning unless @fields_warning.nil?
107
110
  hash['id'] = @id unless @id.nil?
111
+ hash['isAuthenticationSupported'] = @is_authentication_supported unless @is_authentication_supported.nil?
108
112
  hash['isJavaScriptRequired'] = @is_java_script_required unless @is_java_script_required.nil?
109
113
  hash['maxAmount'] = @max_amount unless @max_amount.nil?
110
114
  hash['minAmount'] = @min_amount unless @min_amount.nil?
@@ -170,6 +174,9 @@ module Ingenico::Connect::SDK
170
174
  if hash.has_key? 'id'
171
175
  @id = hash['id']
172
176
  end
177
+ if hash.has_key? 'isAuthenticationSupported'
178
+ @is_authentication_supported = hash['isAuthenticationSupported']
179
+ end
173
180
  if hash.has_key? 'isJavaScriptRequired'
174
181
  @is_java_script_required = hash['isJavaScriptRequired']
175
182
  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.43.0'
10
+ @@SDK_VERSION = '2.45.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.43.0
4
+ version: 2.45.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: 2023-10-16 00:00:00.000000000 Z
11
+ date: 2023-12-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httpclient
@@ -335,8 +335,10 @@ files:
335
335
  - lib/ingenico/connect/sdk/domain/payment/abstract_sepa_direct_debit_payment_method_specific_input.rb
336
336
  - lib/ingenico/connect/sdk/domain/payment/abstract_sepa_direct_debit_payment_product771_specific_input.rb
337
337
  - lib/ingenico/connect/sdk/domain/payment/abstract_three_d_secure.rb
338
+ - lib/ingenico/connect/sdk/domain/payment/account_funding_recipient.rb
338
339
  - lib/ingenico/connect/sdk/domain/payment/additional_order_input.rb
339
340
  - lib/ingenico/connect/sdk/domain/payment/address_personal.rb
341
+ - lib/ingenico/connect/sdk/domain/payment/afr_name.rb
340
342
  - lib/ingenico/connect/sdk/domain/payment/amount_breakdown.rb
341
343
  - lib/ingenico/connect/sdk/domain/payment/approve_payment_card_payment_method_specific_output.rb
342
344
  - lib/ingenico/connect/sdk/domain/payment/approve_payment_direct_debit_payment_method_specific_input.rb
@@ -440,6 +442,7 @@ files:
440
442
  - lib/ingenico/connect/sdk/domain/payment/payment_references.rb
441
443
  - lib/ingenico/connect/sdk/domain/payment/payment_response.rb
442
444
  - lib/ingenico/connect/sdk/domain/payment/payment_status_output.rb
445
+ - lib/ingenico/connect/sdk/domain/payment/personal_identification.rb
443
446
  - lib/ingenico/connect/sdk/domain/payment/personal_information.rb
444
447
  - lib/ingenico/connect/sdk/domain/payment/personal_name.rb
445
448
  - lib/ingenico/connect/sdk/domain/payment/protection_eligibility.rb