connect-sdk-ruby 2.33.0 → 2.34.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: 3cdc198411715752e2b52cca040af4468388b857ae47865fbded83e00335cc71
4
- data.tar.gz: 46282680d1ffe01e9cb6968a2bbd62331f95d6cb0b2d52a214ae043c62eb71b4
3
+ metadata.gz: febf81e24e8aa88cca4d44c6bba99eb855359abdfa3150ef2a58db73b6342ccf
4
+ data.tar.gz: 9ae4aecbcfa780faafd53c72d851c65c01aeaccfec01aea26550f90ef4bd0ae4
5
5
  SHA512:
6
- metadata.gz: c695a2d436dc43433763b380abfbbd26a60e245f099ad75c516af94e0ab72f84b91f3107ff1fa0a0098c149882fe7ac8c3acaf140b507eb9bc271ccb36bbc712
7
- data.tar.gz: e8380700ddd0c84167998cc62e28db239a0c6a715ed38a366e2e5f50c404b541cbdc17343e511dbf926e035eee8b041889eefa2e9b4aa4d09f87be8c48c274d0
6
+ metadata.gz: 9a1cf7ad421916f4c3759b1d91710088f4cb7eb9d2c92f81109296e491354a11e0e4113303d1c138ebf189b6733beaf525568b8db63a5708553ab7d8dbbc4591
7
+ data.tar.gz: 85238eb0b084f3dc4dc35f024c0d89a87eedea1f58dd1187d210a8ce85bacb12a471eaa90a075c85cc0e1258057746b147ea064a46c6750aea4fc5a8983064fc
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = 'connect-sdk-ruby'
3
- spec.version = '2.33.0'
3
+ spec.version = '2.34.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}
@@ -9,17 +9,21 @@ module Ingenico::Connect::SDK
9
9
  module Definitions
10
10
 
11
11
  # @attr [String] card_number
12
+ # @attr [String] cardholder_name
12
13
  # @attr [String] expiry_date
13
14
  class CardEssentials < Ingenico::Connect::SDK::DataObject
14
15
 
15
16
  attr_accessor :card_number
16
17
 
18
+ attr_accessor :cardholder_name
19
+
17
20
  attr_accessor :expiry_date
18
21
 
19
22
  # @return (Hash)
20
23
  def to_h
21
24
  hash = super
22
25
  hash['cardNumber'] = @card_number unless @card_number.nil?
26
+ hash['cardholderName'] = @cardholder_name unless @cardholder_name.nil?
23
27
  hash['expiryDate'] = @expiry_date unless @expiry_date.nil?
24
28
  hash
25
29
  end
@@ -29,6 +33,9 @@ module Ingenico::Connect::SDK
29
33
  if hash.has_key? 'cardNumber'
30
34
  @card_number = hash['cardNumber']
31
35
  end
36
+ if hash.has_key? 'cardholderName'
37
+ @cardholder_name = hash['cardholderName']
38
+ end
32
39
  if hash.has_key? 'expiryDate'
33
40
  @expiry_date = hash['expiryDate']
34
41
  end
@@ -8,27 +8,20 @@ module Ingenico::Connect::SDK
8
8
  module Domain
9
9
  module Definitions
10
10
 
11
- # @attr [String] cardholder_name
12
11
  # @attr [String] issue_number
13
12
  class CardWithoutCvv < Ingenico::Connect::SDK::Domain::Definitions::CardEssentials
14
13
 
15
- attr_accessor :cardholder_name
16
-
17
14
  attr_accessor :issue_number
18
15
 
19
16
  # @return (Hash)
20
17
  def to_h
21
18
  hash = super
22
- hash['cardholderName'] = @cardholder_name unless @cardholder_name.nil?
23
19
  hash['issueNumber'] = @issue_number unless @issue_number.nil?
24
20
  hash
25
21
  end
26
22
 
27
23
  def from_hash(hash)
28
24
  super
29
- if hash.has_key? 'cardholderName'
30
- @cardholder_name = hash['cardholderName']
31
- end
32
25
  if hash.has_key? 'issueNumber'
33
26
  @issue_number = hash['issueNumber']
34
27
  end
@@ -8,19 +8,25 @@ module Ingenico::Connect::SDK
8
8
  module Domain
9
9
  module Definitions
10
10
 
11
+ # @attr [String] clause_name
11
12
  # @attr [String] device_country_code
12
13
  # @attr [String] device_id
13
14
  # @attr [Integer] fraud_score
15
+ # @attr [String] policy_applied
14
16
  # @attr [String] true_ip_address
15
17
  # @attr [String] user_device_type
16
18
  class MicrosoftFraudResults < Ingenico::Connect::SDK::DataObject
17
19
 
20
+ attr_accessor :clause_name
21
+
18
22
  attr_accessor :device_country_code
19
23
 
20
24
  attr_accessor :device_id
21
25
 
22
26
  attr_accessor :fraud_score
23
27
 
28
+ attr_accessor :policy_applied
29
+
24
30
  attr_accessor :true_ip_address
25
31
 
26
32
  attr_accessor :user_device_type
@@ -28,9 +34,11 @@ module Ingenico::Connect::SDK
28
34
  # @return (Hash)
29
35
  def to_h
30
36
  hash = super
37
+ hash['clauseName'] = @clause_name unless @clause_name.nil?
31
38
  hash['deviceCountryCode'] = @device_country_code unless @device_country_code.nil?
32
39
  hash['deviceId'] = @device_id unless @device_id.nil?
33
40
  hash['fraudScore'] = @fraud_score unless @fraud_score.nil?
41
+ hash['policyApplied'] = @policy_applied unless @policy_applied.nil?
34
42
  hash['trueIpAddress'] = @true_ip_address unless @true_ip_address.nil?
35
43
  hash['userDeviceType'] = @user_device_type unless @user_device_type.nil?
36
44
  hash
@@ -38,6 +46,9 @@ module Ingenico::Connect::SDK
38
46
 
39
47
  def from_hash(hash)
40
48
  super
49
+ if hash.has_key? 'clauseName'
50
+ @clause_name = hash['clauseName']
51
+ end
41
52
  if hash.has_key? 'deviceCountryCode'
42
53
  @device_country_code = hash['deviceCountryCode']
43
54
  end
@@ -47,6 +58,9 @@ module Ingenico::Connect::SDK
47
58
  if hash.has_key? 'fraudScore'
48
59
  @fraud_score = hash['fraudScore']
49
60
  end
61
+ if hash.has_key? 'policyApplied'
62
+ @policy_applied = hash['policyApplied']
63
+ end
50
64
  if hash.has_key? 'trueIpAddress'
51
65
  @true_ip_address = hash['trueIpAddress']
52
66
  end
@@ -0,0 +1,15 @@
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
+ class AbstractRedirectPaymentProduct4101SpecificInput < Ingenico::Connect::SDK::DataObject
12
+ end
13
+ end
14
+ end
15
+ end
@@ -9,11 +9,14 @@ module Ingenico::Connect::SDK
9
9
  module Domain
10
10
  module Payment
11
11
 
12
+ # @attr [String] configuration_id
12
13
  # @attr [String] contact_website_url
13
14
  # @attr [Ingenico::Connect::SDK::Domain::Payment::Seller] seller
14
15
  # @attr [String] website_url
15
16
  class Merchant < Ingenico::Connect::SDK::DataObject
16
17
 
18
+ attr_accessor :configuration_id
19
+
17
20
  attr_accessor :contact_website_url
18
21
 
19
22
  attr_accessor :seller
@@ -23,6 +26,7 @@ module Ingenico::Connect::SDK
23
26
  # @return (Hash)
24
27
  def to_h
25
28
  hash = super
29
+ hash['configurationId'] = @configuration_id unless @configuration_id.nil?
26
30
  hash['contactWebsiteUrl'] = @contact_website_url unless @contact_website_url.nil?
27
31
  hash['seller'] = @seller.to_h unless @seller.nil?
28
32
  hash['websiteUrl'] = @website_url unless @website_url.nil?
@@ -31,6 +35,9 @@ module Ingenico::Connect::SDK
31
35
 
32
36
  def from_hash(hash)
33
37
  super
38
+ if hash.has_key? 'configurationId'
39
+ @configuration_id = hash['configurationId']
40
+ end
34
41
  if hash.has_key? 'contactWebsiteUrl'
35
42
  @contact_website_url = hash['contactWebsiteUrl']
36
43
  end
@@ -9,20 +9,27 @@ module Ingenico::Connect::SDK
9
9
  module Domain
10
10
  module Payment
11
11
 
12
+ # @attr [String] cardholder_name
12
13
  # @attr [Ingenico::Connect::SDK::Domain::Payment::GPayThreeDSecure] three_d_secure
13
14
  class MobilePaymentProduct320SpecificInput < Ingenico::Connect::SDK::DataObject
14
15
 
16
+ attr_accessor :cardholder_name
17
+
15
18
  attr_accessor :three_d_secure
16
19
 
17
20
  # @return (Hash)
18
21
  def to_h
19
22
  hash = super
23
+ hash['cardholderName'] = @cardholder_name unless @cardholder_name.nil?
20
24
  hash['threeDSecure'] = @three_d_secure.to_h unless @three_d_secure.nil?
21
25
  hash
22
26
  end
23
27
 
24
28
  def from_hash(hash)
25
29
  super
30
+ if hash.has_key? 'cardholderName'
31
+ @cardholder_name = hash['cardholderName']
32
+ end
26
33
  if hash.has_key? 'threeDSecure'
27
34
  raise TypeError, "value '%s' is not a Hash" % [hash['threeDSecure']] unless hash['threeDSecure'].is_a? Hash
28
35
  @three_d_secure = Ingenico::Connect::SDK::Domain::Payment::GPayThreeDSecure.new_from_hash(hash['threeDSecure'])
@@ -3,26 +3,35 @@
3
3
  # https://epayments-api.developer-ingenico.com/s2sapi/v1/
4
4
  #
5
5
  require 'ingenico/connect/sdk/domain/payment/abstract_redirect_payment_method_specific_input'
6
+ require 'ingenico/connect/sdk/domain/payment/redirect_payment_product4101_specific_input_base'
6
7
  require 'ingenico/connect/sdk/domain/payment/redirect_payment_product840_specific_input_base'
7
8
 
8
9
  module Ingenico::Connect::SDK
9
10
  module Domain
10
11
  module Payment
11
12
 
13
+ # @attr [Ingenico::Connect::SDK::Domain::Payment::RedirectPaymentProduct4101SpecificInputBase] payment_product4101_specific_input
12
14
  # @attr [Ingenico::Connect::SDK::Domain::Payment::RedirectPaymentProduct840SpecificInputBase] payment_product840_specific_input
13
15
  class RedirectPaymentMethodSpecificInputBase < Ingenico::Connect::SDK::Domain::Payment::AbstractRedirectPaymentMethodSpecificInput
14
16
 
17
+ attr_accessor :payment_product4101_specific_input
18
+
15
19
  attr_accessor :payment_product840_specific_input
16
20
 
17
21
  # @return (Hash)
18
22
  def to_h
19
23
  hash = super
24
+ hash['paymentProduct4101SpecificInput'] = @payment_product4101_specific_input.to_h unless @payment_product4101_specific_input.nil?
20
25
  hash['paymentProduct840SpecificInput'] = @payment_product840_specific_input.to_h unless @payment_product840_specific_input.nil?
21
26
  hash
22
27
  end
23
28
 
24
29
  def from_hash(hash)
25
30
  super
31
+ if hash.has_key? 'paymentProduct4101SpecificInput'
32
+ raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct4101SpecificInput']] unless hash['paymentProduct4101SpecificInput'].is_a? Hash
33
+ @payment_product4101_specific_input = Ingenico::Connect::SDK::Domain::Payment::RedirectPaymentProduct4101SpecificInputBase.new_from_hash(hash['paymentProduct4101SpecificInput'])
34
+ end
26
35
  if hash.has_key? 'paymentProduct840SpecificInput'
27
36
  raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct840SpecificInput']] unless hash['paymentProduct840SpecificInput'].is_a? Hash
28
37
  @payment_product840_specific_input = Ingenico::Connect::SDK::Domain::Payment::RedirectPaymentProduct840SpecificInputBase.new_from_hash(hash['paymentProduct840SpecificInput'])
@@ -0,0 +1,32 @@
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/domain/payment/abstract_redirect_payment_product4101_specific_input'
6
+
7
+ module Ingenico::Connect::SDK
8
+ module Domain
9
+ module Payment
10
+
11
+ # @attr [String] display_name
12
+ class RedirectPaymentProduct4101SpecificInputBase < Ingenico::Connect::SDK::Domain::Payment::AbstractRedirectPaymentProduct4101SpecificInput
13
+
14
+ attr_accessor :display_name
15
+
16
+ # @return (Hash)
17
+ def to_h
18
+ hash = super
19
+ hash['displayName'] = @display_name unless @display_name.nil?
20
+ hash
21
+ end
22
+
23
+ def from_hash(hash)
24
+ super
25
+ if hash.has_key? 'displayName'
26
+ @display_name = hash['displayName']
27
+ end
28
+ end
29
+ end
30
+ end
31
+ end
32
+ 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.33.0'
10
+ @@SDK_VERSION = '2.34.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.33.0
4
+ version: 2.34.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: 2022-10-06 00:00:00.000000000 Z
11
+ date: 2022-12-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httpclient
@@ -321,6 +321,7 @@ files:
321
321
  - lib/ingenico/connect/sdk/domain/payment/abstract_e_invoice_payment_method_specific_input.rb
322
322
  - lib/ingenico/connect/sdk/domain/payment/abstract_payment_method_specific_output.rb
323
323
  - lib/ingenico/connect/sdk/domain/payment/abstract_redirect_payment_method_specific_input.rb
324
+ - lib/ingenico/connect/sdk/domain/payment/abstract_redirect_payment_product4101_specific_input.rb
324
325
  - lib/ingenico/connect/sdk/domain/payment/abstract_redirect_payment_product840_specific_input.rb
325
326
  - lib/ingenico/connect/sdk/domain/payment/abstract_sepa_direct_debit_payment_method_specific_input.rb
326
327
  - lib/ingenico/connect/sdk/domain/payment/abstract_sepa_direct_debit_payment_product771_specific_input.rb
@@ -438,6 +439,7 @@ files:
438
439
  - lib/ingenico/connect/sdk/domain/payment/redirect_payment_method_specific_input_base.rb
439
440
  - lib/ingenico/connect/sdk/domain/payment/redirect_payment_method_specific_output.rb
440
441
  - lib/ingenico/connect/sdk/domain/payment/redirect_payment_product4101_specific_input.rb
442
+ - lib/ingenico/connect/sdk/domain/payment/redirect_payment_product4101_specific_input_base.rb
441
443
  - lib/ingenico/connect/sdk/domain/payment/redirect_payment_product809_specific_input.rb
442
444
  - lib/ingenico/connect/sdk/domain/payment/redirect_payment_product816_specific_input.rb
443
445
  - lib/ingenico/connect/sdk/domain/payment/redirect_payment_product840_specific_input.rb