connect-sdk-ruby 2.39.0 → 2.40.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: a71627fb52385ca0b227a3fb74603fa2e2ee282b292e9675cb394a88f07d465f
4
- data.tar.gz: 89df17bef33a95169f3720d1d2a72aa85827919a5487d115ab4a9a6f0d7583d9
3
+ metadata.gz: d14ec4198ddefb7242358a92351bf05ea4c5c6b618f4b9a24160cd26da56be9d
4
+ data.tar.gz: d87a33e09aa4d4e1913e3fd373161dc1b49e72ff6dec7fd3555776a9b845ed45
5
5
  SHA512:
6
- metadata.gz: '09f9a13355618abe2ea3176e65c09ffd94bdda74ed1698202eb67fe67f9f33c7f7e3f2a522e27084f93613dd2db9827eff9cae6e16850324f39fada0b252f834'
7
- data.tar.gz: a6440a7e5f92fd89dbe833e69dcfacb12776b0a7484aecbad94063e9a3e95b382c3874b71a2edf6a2107fad89b3aa3970bafb94e7e92fafcd3bdb8accec18e7a
6
+ metadata.gz: f28c0fc5e233464d367a37e15e3b72b4c4b15e663bb05d6bea10cd31a5a9efb9133206d5f9295c91c6eab76f1f19ff1bf234644c3c1ce5fcd36fa023eacf814c
7
+ data.tar.gz: 91ce34559665ede70cf670a308d7506fadd97362d61529bd9714ffff073b3ff874611baee7a8087b268884442574d9bd06184ded42dc5859491c269adb0f7433
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = 'connect-sdk-ruby'
3
- spec.version = '2.39.0'
3
+ spec.version = '2.40.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}
@@ -12,6 +12,7 @@ module Ingenico::Connect::SDK
12
12
  module Hostedcheckout
13
13
 
14
14
  # @attr [Ingenico::Connect::SDK::Domain::Hostedcheckout::DisplayedData] displayed_data
15
+ # @attr [true/false] is_checked_remember_me
15
16
  # @attr [Ingenico::Connect::SDK::Domain::Payment::Payment] payment
16
17
  # @attr [Ingenico::Connect::SDK::Domain::Payment::PaymentCreationReferences] payment_creation_references
17
18
  # @attr [String] payment_status_category
@@ -21,6 +22,8 @@ module Ingenico::Connect::SDK
21
22
 
22
23
  attr_accessor :displayed_data
23
24
 
25
+ attr_accessor :is_checked_remember_me
26
+
24
27
  attr_accessor :payment
25
28
 
26
29
  attr_accessor :payment_creation_references
@@ -37,6 +40,7 @@ module Ingenico::Connect::SDK
37
40
  def to_h
38
41
  hash = super
39
42
  hash['displayedData'] = @displayed_data.to_h unless @displayed_data.nil?
43
+ hash['isCheckedRememberMe'] = @is_checked_remember_me unless @is_checked_remember_me.nil?
40
44
  hash['payment'] = @payment.to_h unless @payment.nil?
41
45
  hash['paymentCreationReferences'] = @payment_creation_references.to_h unless @payment_creation_references.nil?
42
46
  hash['paymentStatusCategory'] = @payment_status_category unless @payment_status_category.nil?
@@ -51,6 +55,9 @@ module Ingenico::Connect::SDK
51
55
  raise TypeError, "value '%s' is not a Hash" % [hash['displayedData']] unless hash['displayedData'].is_a? Hash
52
56
  @displayed_data = Ingenico::Connect::SDK::Domain::Hostedcheckout::DisplayedData.new_from_hash(hash['displayedData'])
53
57
  end
58
+ if hash.has_key? 'isCheckedRememberMe'
59
+ @is_checked_remember_me = hash['isCheckedRememberMe']
60
+ end
54
61
  if hash.has_key? 'payment'
55
62
  raise TypeError, "value '%s' is not a Hash" % [hash['payment']] unless hash['payment'].is_a? Hash
56
63
  @payment = Ingenico::Connect::SDK::Domain::Payment::Payment.new_from_hash(hash['payment'])
@@ -8,11 +8,14 @@ module Ingenico::Connect::SDK
8
8
  module Domain
9
9
  module Payment
10
10
 
11
+ # @attr [true/false] is_checked_remember_me
11
12
  # @attr [true/false] is_new_token
12
13
  # @attr [String] token
13
14
  # @attr [true/false] tokenization_succeeded
14
15
  class PaymentCreationOutput < Ingenico::Connect::SDK::Domain::Payment::PaymentCreationReferences
15
16
 
17
+ attr_accessor :is_checked_remember_me
18
+
16
19
  attr_accessor :is_new_token
17
20
 
18
21
  attr_accessor :token
@@ -22,6 +25,7 @@ module Ingenico::Connect::SDK
22
25
  # @return (Hash)
23
26
  def to_h
24
27
  hash = super
28
+ hash['isCheckedRememberMe'] = @is_checked_remember_me unless @is_checked_remember_me.nil?
25
29
  hash['isNewToken'] = @is_new_token unless @is_new_token.nil?
26
30
  hash['token'] = @token unless @token.nil?
27
31
  hash['tokenizationSucceeded'] = @tokenization_succeeded unless @tokenization_succeeded.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? 'isCheckedRememberMe'
38
+ @is_checked_remember_me = hash['isCheckedRememberMe']
39
+ end
33
40
  if hash.has_key? 'isNewToken'
34
41
  @is_new_token = hash['isNewToken']
35
42
  end
@@ -12,6 +12,7 @@ module Ingenico::Connect::SDK
12
12
  # @attr [String] merchant_reference
13
13
  # @attr [String] payment_reference
14
14
  # @attr [String] provider_id
15
+ # @attr [String] provider_merchant_id
15
16
  # @attr [String] provider_reference
16
17
  # @attr [String] reference_orig_payment
17
18
  class PaymentReferences < Ingenico::Connect::SDK::DataObject
@@ -24,6 +25,8 @@ module Ingenico::Connect::SDK
24
25
 
25
26
  attr_accessor :provider_id
26
27
 
28
+ attr_accessor :provider_merchant_id
29
+
27
30
  attr_accessor :provider_reference
28
31
 
29
32
  attr_accessor :reference_orig_payment
@@ -35,6 +38,7 @@ module Ingenico::Connect::SDK
35
38
  hash['merchantReference'] = @merchant_reference unless @merchant_reference.nil?
36
39
  hash['paymentReference'] = @payment_reference unless @payment_reference.nil?
37
40
  hash['providerId'] = @provider_id unless @provider_id.nil?
41
+ hash['providerMerchantId'] = @provider_merchant_id unless @provider_merchant_id.nil?
38
42
  hash['providerReference'] = @provider_reference unless @provider_reference.nil?
39
43
  hash['referenceOrigPayment'] = @reference_orig_payment unless @reference_orig_payment.nil?
40
44
  hash
@@ -54,6 +58,9 @@ module Ingenico::Connect::SDK
54
58
  if hash.has_key? 'providerId'
55
59
  @provider_id = hash['providerId']
56
60
  end
61
+ if hash.has_key? 'providerMerchantId'
62
+ @provider_merchant_id = hash['providerMerchantId']
63
+ end
57
64
  if hash.has_key? 'providerReference'
58
65
  @provider_reference = hash['providerReference']
59
66
  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/key_value_pair'
5
6
  require 'ingenico/connect/sdk/domain/definitions/order_status_output'
6
7
 
7
8
  module Ingenico::Connect::SDK
@@ -11,6 +12,7 @@ module Ingenico::Connect::SDK
11
12
  # @attr [true/false] is_authorized
12
13
  # @attr [true/false] is_refundable
13
14
  # @attr [true/false] is_retriable
15
+ # @attr [Array<Ingenico::Connect::SDK::Domain::Definitions::KeyValuePair>] provider_raw_output
14
16
  # @attr [String] three_d_secure_status
15
17
  class PaymentStatusOutput < Ingenico::Connect::SDK::Domain::Definitions::OrderStatusOutput
16
18
 
@@ -20,6 +22,8 @@ module Ingenico::Connect::SDK
20
22
 
21
23
  attr_accessor :is_retriable
22
24
 
25
+ attr_accessor :provider_raw_output
26
+
23
27
  attr_accessor :three_d_secure_status
24
28
 
25
29
  # @return (Hash)
@@ -28,6 +32,7 @@ module Ingenico::Connect::SDK
28
32
  hash['isAuthorized'] = @is_authorized unless @is_authorized.nil?
29
33
  hash['isRefundable'] = @is_refundable unless @is_refundable.nil?
30
34
  hash['isRetriable'] = @is_retriable unless @is_retriable.nil?
35
+ hash['providerRawOutput'] = @provider_raw_output.collect{|val| val.to_h} unless @provider_raw_output.nil?
31
36
  hash['threeDSecureStatus'] = @three_d_secure_status unless @three_d_secure_status.nil?
32
37
  hash
33
38
  end
@@ -43,6 +48,13 @@ module Ingenico::Connect::SDK
43
48
  if hash.has_key? 'isRetriable'
44
49
  @is_retriable = hash['isRetriable']
45
50
  end
51
+ if hash.has_key? 'providerRawOutput'
52
+ raise TypeError, "value '%s' is not an Array" % [hash['providerRawOutput']] unless hash['providerRawOutput'].is_a? Array
53
+ @provider_raw_output = []
54
+ hash['providerRawOutput'].each do |e|
55
+ @provider_raw_output << Ingenico::Connect::SDK::Domain::Definitions::KeyValuePair.new_from_hash(e)
56
+ end
57
+ end
46
58
  if hash.has_key? 'threeDSecureStatus'
47
59
  @three_d_secure_status = hash['threeDSecureStatus']
48
60
  end
@@ -8,12 +8,15 @@ module Ingenico::Connect::SDK
8
8
  module Domain
9
9
  module Payment
10
10
 
11
+ # @attr [String] cardholder_name
11
12
  # @attr [String] cryptogram
12
13
  # @attr [String] eci
13
14
  # @attr [String] network_token
14
15
  # @attr [String] token_expiry_date
15
16
  class SchemeTokenData < Ingenico::Connect::SDK::DataObject
16
17
 
18
+ attr_accessor :cardholder_name
19
+
17
20
  attr_accessor :cryptogram
18
21
 
19
22
  attr_accessor :eci
@@ -25,6 +28,7 @@ module Ingenico::Connect::SDK
25
28
  # @return (Hash)
26
29
  def to_h
27
30
  hash = super
31
+ hash['cardholderName'] = @cardholder_name unless @cardholder_name.nil?
28
32
  hash['cryptogram'] = @cryptogram unless @cryptogram.nil?
29
33
  hash['eci'] = @eci unless @eci.nil?
30
34
  hash['networkToken'] = @network_token unless @network_token.nil?
@@ -34,6 +38,9 @@ module Ingenico::Connect::SDK
34
38
 
35
39
  def from_hash(hash)
36
40
  super
41
+ if hash.has_key? 'cardholderName'
42
+ @cardholder_name = hash['cardholderName']
43
+ end
37
44
  if hash.has_key? 'cryptogram'
38
45
  @cryptogram = hash['cryptogram']
39
46
  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.39.0'
10
+ @@SDK_VERSION = '2.40.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.39.0
4
+ version: 2.40.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-05-16 00:00:00.000000000 Z
11
+ date: 2023-06-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httpclient