connect-sdk-ruby 2.43.0 → 2.44.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: 0ccbd5c5e5a1bfc862f437b25be46a8d4b6042237206a8800a05d86225962e4b
4
- data.tar.gz: 733cde41347c66fb23ab5e554bdc188d31a015a2f997fb0ea568fa8275414182
3
+ metadata.gz: 7a4479204c7df80d10d1e59327b6a423b7e061673795bfb4f372ade976dfdcd3
4
+ data.tar.gz: 20cc189d6a52dbedad3c285c1c171c8231e45928e2149b3142098eb8b8d4eb25
5
5
  SHA512:
6
- metadata.gz: 41574e2990ddab8b6f7396847a9257b2468de4807d1f404f2cd63414a036572b16eca6621eedd558ca06f107ac34f5ac3d173641822656485fa95da89e1f3f74
7
- data.tar.gz: b8c102463d9ae5b17eabedf3b40399cc640a8dd8e41571d4401ed1b2ffaa0121ce717668c1f2a4cbebd3882c265b66d9faee7a77eec336d68c43b743640222d7
6
+ metadata.gz: aa36cebfdb4fcf4c0f1566d8bee5d888aaddd58ca59564e5a829371374cbfd6f867f7395911dda4cdc123db22430d28b88361e87cda008360eda59efbe222493
7
+ data.tar.gz: eefd9c48ca5acad65b5005ada5b85911edd1f6190d66ef596e33343bf1fe22b848f6bd9b92865040e1a2921f7c53a3f6133f6827f191ed542419ae4ea0beaa01
@@ -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.44.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,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
@@ -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'])
@@ -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.44.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.44.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-10-26 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