connect-sdk-ruby 2.39.0 → 2.41.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: 83d223cc9f1bfaa4816a663a2d956acb31bc824040555feb2c52b302141aa4b9
4
+ data.tar.gz: 8cc332fa3ec1f5aeadef7b5a8974112816849346ed067cc84e39f4dc1ba067e8
5
5
  SHA512:
6
- metadata.gz: '09f9a13355618abe2ea3176e65c09ffd94bdda74ed1698202eb67fe67f9f33c7f7e3f2a522e27084f93613dd2db9827eff9cae6e16850324f39fada0b252f834'
7
- data.tar.gz: a6440a7e5f92fd89dbe833e69dcfacb12776b0a7484aecbad94063e9a3e95b382c3874b71a2edf6a2107fad89b3aa3970bafb94e7e92fafcd3bdb8accec18e7a
6
+ metadata.gz: 8577eb5cc025a722d4f098d9de0d6b754daf0da769ecb300001954c610bcd0433afecfcb9445b1d1c38ff54521fd62bb11d4b1aa30c04d857131a5b80eb95065
7
+ data.tar.gz: 552e9c5ac59e4d209dffce4da7b21b1ba8a9c2ced074ac1eff0dc069bcbd2894ca45e01991dd99b0928d6080faa0a1a153fb91d4d92799feef8b98156423a2c4
@@ -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.41.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}
@@ -3,25 +3,44 @@
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/definitions/key_value_pair'
6
7
 
7
8
  module Ingenico::Connect::SDK
8
9
  module Domain
9
10
  module Capture
10
11
 
12
+ # @attr [true/false] is_retriable
13
+ # @attr [Array<Ingenico::Connect::SDK::Domain::Definitions::KeyValuePair>] provider_raw_output
11
14
  # @attr [Integer] status_code
12
15
  class CaptureStatusOutput < Ingenico::Connect::SDK::DataObject
13
16
 
17
+ attr_accessor :is_retriable
18
+
19
+ attr_accessor :provider_raw_output
20
+
14
21
  attr_accessor :status_code
15
22
 
16
23
  # @return (Hash)
17
24
  def to_h
18
25
  hash = super
26
+ hash['isRetriable'] = @is_retriable unless @is_retriable.nil?
27
+ hash['providerRawOutput'] = @provider_raw_output.collect{|val| val.to_h} unless @provider_raw_output.nil?
19
28
  hash['statusCode'] = @status_code unless @status_code.nil?
20
29
  hash
21
30
  end
22
31
 
23
32
  def from_hash(hash)
24
33
  super
34
+ if hash.has_key? 'isRetriable'
35
+ @is_retriable = hash['isRetriable']
36
+ end
37
+ if hash.has_key? 'providerRawOutput'
38
+ raise TypeError, "value '%s' is not an Array" % [hash['providerRawOutput']] unless hash['providerRawOutput'].is_a? Array
39
+ @provider_raw_output = []
40
+ hash['providerRawOutput'].each do |e|
41
+ @provider_raw_output << Ingenico::Connect::SDK::Domain::Definitions::KeyValuePair.new_from_hash(e)
42
+ end
43
+ end
25
44
  if hash.has_key? 'statusCode'
26
45
  @status_code = hash['statusCode']
27
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/definitions/key_value_pair'
6
7
  require 'ingenico/connect/sdk/domain/errors/api_error'
7
8
 
8
9
  module Ingenico::Connect::SDK
@@ -11,6 +12,8 @@ module Ingenico::Connect::SDK
11
12
 
12
13
  # @attr [Array<Ingenico::Connect::SDK::Domain::Errors::APIError>] errors
13
14
  # @attr [true/false] is_cancellable
15
+ # @attr [true/false] is_retriable
16
+ # @attr [Array<Ingenico::Connect::SDK::Domain::Definitions::KeyValuePair>] provider_raw_output
14
17
  # @attr [String] status_category
15
18
  # @attr [Integer] status_code
16
19
  # @attr [String] status_code_change_date_time
@@ -20,6 +23,10 @@ module Ingenico::Connect::SDK
20
23
 
21
24
  attr_accessor :is_cancellable
22
25
 
26
+ attr_accessor :is_retriable
27
+
28
+ attr_accessor :provider_raw_output
29
+
23
30
  attr_accessor :status_category
24
31
 
25
32
  attr_accessor :status_code
@@ -31,6 +38,8 @@ module Ingenico::Connect::SDK
31
38
  hash = super
32
39
  hash['errors'] = @errors.collect{|val| val.to_h} unless @errors.nil?
33
40
  hash['isCancellable'] = @is_cancellable unless @is_cancellable.nil?
41
+ hash['isRetriable'] = @is_retriable unless @is_retriable.nil?
42
+ hash['providerRawOutput'] = @provider_raw_output.collect{|val| val.to_h} unless @provider_raw_output.nil?
34
43
  hash['statusCategory'] = @status_category unless @status_category.nil?
35
44
  hash['statusCode'] = @status_code unless @status_code.nil?
36
45
  hash['statusCodeChangeDateTime'] = @status_code_change_date_time unless @status_code_change_date_time.nil?
@@ -49,6 +58,16 @@ module Ingenico::Connect::SDK
49
58
  if hash.has_key? 'isCancellable'
50
59
  @is_cancellable = hash['isCancellable']
51
60
  end
61
+ if hash.has_key? 'isRetriable'
62
+ @is_retriable = hash['isRetriable']
63
+ end
64
+ if hash.has_key? 'providerRawOutput'
65
+ raise TypeError, "value '%s' is not an Array" % [hash['providerRawOutput']] unless hash['providerRawOutput'].is_a? Array
66
+ @provider_raw_output = []
67
+ hash['providerRawOutput'].each do |e|
68
+ @provider_raw_output << Ingenico::Connect::SDK::Domain::Definitions::KeyValuePair.new_from_hash(e)
69
+ end
70
+ end
52
71
  if hash.has_key? 'statusCategory'
53
72
  @status_category = hash['statusCategory']
54
73
  end
@@ -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'])
@@ -13,6 +13,8 @@ module Ingenico::Connect::SDK
13
13
  # @attr [Ingenico::Connect::SDK::Domain::Payment::OrderInvoiceData] invoice_data
14
14
  # @attr [Integer] merchant_order_id
15
15
  # @attr [String] merchant_reference
16
+ # @attr [String] provider_id
17
+ # @attr [String] provider_merchant_id
16
18
  class OrderReferences < Ingenico::Connect::SDK::DataObject
17
19
 
18
20
  attr_accessor :descriptor
@@ -23,6 +25,10 @@ module Ingenico::Connect::SDK
23
25
 
24
26
  attr_accessor :merchant_reference
25
27
 
28
+ attr_accessor :provider_id
29
+
30
+ attr_accessor :provider_merchant_id
31
+
26
32
  # @return (Hash)
27
33
  def to_h
28
34
  hash = super
@@ -30,6 +36,8 @@ module Ingenico::Connect::SDK
30
36
  hash['invoiceData'] = @invoice_data.to_h unless @invoice_data.nil?
31
37
  hash['merchantOrderId'] = @merchant_order_id unless @merchant_order_id.nil?
32
38
  hash['merchantReference'] = @merchant_reference unless @merchant_reference.nil?
39
+ hash['providerId'] = @provider_id unless @provider_id.nil?
40
+ hash['providerMerchantId'] = @provider_merchant_id unless @provider_merchant_id.nil?
33
41
  hash
34
42
  end
35
43
 
@@ -48,6 +56,12 @@ module Ingenico::Connect::SDK
48
56
  if hash.has_key? 'merchantReference'
49
57
  @merchant_reference = hash['merchantReference']
50
58
  end
59
+ if hash.has_key? 'providerId'
60
+ @provider_id = hash['providerId']
61
+ end
62
+ if hash.has_key? 'providerMerchantId'
63
+ @provider_merchant_id = hash['providerMerchantId']
64
+ end
51
65
  end
52
66
  end
53
67
  end
@@ -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
@@ -10,7 +10,6 @@ module Ingenico::Connect::SDK
10
10
 
11
11
  # @attr [true/false] is_authorized
12
12
  # @attr [true/false] is_refundable
13
- # @attr [true/false] is_retriable
14
13
  # @attr [String] three_d_secure_status
15
14
  class PaymentStatusOutput < Ingenico::Connect::SDK::Domain::Definitions::OrderStatusOutput
16
15
 
@@ -18,8 +17,6 @@ module Ingenico::Connect::SDK
18
17
 
19
18
  attr_accessor :is_refundable
20
19
 
21
- attr_accessor :is_retriable
22
-
23
20
  attr_accessor :three_d_secure_status
24
21
 
25
22
  # @return (Hash)
@@ -27,7 +24,6 @@ module Ingenico::Connect::SDK
27
24
  hash = super
28
25
  hash['isAuthorized'] = @is_authorized unless @is_authorized.nil?
29
26
  hash['isRefundable'] = @is_refundable unless @is_refundable.nil?
30
- hash['isRetriable'] = @is_retriable unless @is_retriable.nil?
31
27
  hash['threeDSecureStatus'] = @three_d_secure_status unless @three_d_secure_status.nil?
32
28
  hash
33
29
  end
@@ -40,9 +36,6 @@ module Ingenico::Connect::SDK
40
36
  if hash.has_key? 'isRefundable'
41
37
  @is_refundable = hash['isRefundable']
42
38
  end
43
- if hash.has_key? 'isRetriable'
44
- @is_retriable = hash['isRetriable']
45
- end
46
39
  if hash.has_key? 'threeDSecureStatus'
47
40
  @three_d_secure_status = hash['threeDSecureStatus']
48
41
  end
@@ -8,7 +8,24 @@ module Ingenico::Connect::SDK
8
8
  module Domain
9
9
  module Payment
10
10
 
11
+ # @attr [String] authorisation_code
11
12
  class RefundCardMethodSpecificOutput < Ingenico::Connect::SDK::Domain::Payment::RefundMethodSpecificOutput
13
+
14
+ attr_accessor :authorisation_code
15
+
16
+ # @return (Hash)
17
+ def to_h
18
+ hash = super
19
+ hash['authorisationCode'] = @authorisation_code unless @authorisation_code.nil?
20
+ hash
21
+ end
22
+
23
+ def from_hash(hash)
24
+ super
25
+ if hash.has_key? 'authorisationCode'
26
+ @authorisation_code = hash['authorisationCode']
27
+ end
28
+ end
12
29
  end
13
30
  end
14
31
  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.41.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.41.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-07-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httpclient