connect-sdk-ruby 4.5.0 → 4.6.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: dca4f933ae21eb8d75de43679c2050ea7e2ce28eaefd0a7382bd4d7165e35f80
4
- data.tar.gz: ad89109f67fc5fb8f7708da59e284737bc90a930e46a21222ba6c20253622be9
3
+ metadata.gz: 3e975dac8e60647844bc71022b7c2bd4928bfda6f2619a9def9bfe9c85416add
4
+ data.tar.gz: b1339fc945fdd3385439385a1d4398b7df488d9bcd6802967609fb4182cbd7f9
5
5
  SHA512:
6
- metadata.gz: c5862d9fb8824427f8b442272559e6665029917f636dc0df538213bea43fdeaea1b85750ace45607c665a98ce350c76ba3238fdd49526b8616a6cafda41faf65
7
- data.tar.gz: fd36486d0b09bbb8750ac64d40aa585405a2205f2135a7c44ede29895aa7968a43a7950419699a3e501f668ad0ed9eb59127a860f908fcb4ec49144e8d7d170f
6
+ metadata.gz: c5b076fd567f459d343c91bbe8ad12dc04e5f7e9ad174d65fc10e10233488548e90ef6e02ba88a333b0edc13e0a75e93855fc1978931fdad9a75d66b34ec226a
7
+ data.tar.gz: b2611c5b172959b707ee97cbee2cf5b02d66f9400e9c5c0f175992ff94cf6a9bef022fc4e332d3cb05d0f4f26e071a03d55f6adf932c17453f322bd1cfce15b5
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = 'connect-sdk-ruby'
3
- spec.version = '4.5.0'
3
+ spec.version = '4.6.0'
4
4
  spec.authors = ['Worldline Global Collect']
5
5
  spec.email = ['github.connect@worldline.com']
6
6
  spec.summary = %q{SDK to communicate with the Worldline Global Collect platform using the Worldline Connect Server API}
@@ -14,7 +14,7 @@ module Worldline
14
14
  class MetadataProvider
15
15
  private
16
16
 
17
- SDK_VERSION = '4.5.0'.freeze
17
+ SDK_VERSION = '4.6.0'.freeze
18
18
  SERVER_META_INFO_HEADER = 'X-GCS-ServerMetaInfo'.freeze
19
19
  PROHIBITED_HEADERS = [SERVER_META_INFO_HEADER, 'X-GCS-Idempotence-Key','Date', 'Content-Type', 'Authorization'].sort!.freeze
20
20
  CHARSET = 'utf-8'.freeze
@@ -4,6 +4,7 @@
4
4
  #
5
5
  require 'worldline/connect/sdk/v1/domain/abstract_card_payment_method_specific_input'
6
6
  require 'worldline/connect/sdk/v1/domain/card'
7
+ require 'worldline/connect/sdk/v1/domain/click_to_pay_input'
7
8
  require 'worldline/connect/sdk/v1/domain/external_cardholder_authentication_data'
8
9
  require 'worldline/connect/sdk/v1/domain/scheme_token_data'
9
10
  require 'worldline/connect/sdk/v1/domain/three_d_secure'
@@ -14,6 +15,7 @@ module Worldline
14
15
  module V1
15
16
  module Domain
16
17
  # @attr [Worldline::Connect::SDK::V1::Domain::Card] card
18
+ # @attr [Worldline::Connect::SDK::V1::Domain::ClickToPayInput] click_to_pay
17
19
  # @attr [Worldline::Connect::SDK::V1::Domain::ExternalCardholderAuthenticationData] external_cardholder_authentication_data
18
20
  # @attr [true/false] is_recurring
19
21
  # @attr [String] merchant_initiated_reason_indicator
@@ -24,6 +26,8 @@ module Worldline
24
26
 
25
27
  attr_accessor :card
26
28
 
29
+ attr_accessor :click_to_pay
30
+
27
31
  # @deprecated Use threeDSecure.externalCardholderAuthenticationData instead
28
32
  attr_accessor :external_cardholder_authentication_data
29
33
 
@@ -42,6 +46,7 @@ module Worldline
42
46
  def to_h
43
47
  hash = super
44
48
  hash['card'] = @card.to_h unless @card.nil?
49
+ hash['clickToPay'] = @click_to_pay.to_h unless @click_to_pay.nil?
45
50
  hash['externalCardholderAuthenticationData'] = @external_cardholder_authentication_data.to_h unless @external_cardholder_authentication_data.nil?
46
51
  hash['isRecurring'] = @is_recurring unless @is_recurring.nil?
47
52
  hash['merchantInitiatedReasonIndicator'] = @merchant_initiated_reason_indicator unless @merchant_initiated_reason_indicator.nil?
@@ -57,6 +62,10 @@ module Worldline
57
62
  raise TypeError, "value '%s' is not a Hash" % [hash['card']] unless hash['card'].is_a? Hash
58
63
  @card = Worldline::Connect::SDK::V1::Domain::Card.new_from_hash(hash['card'])
59
64
  end
65
+ if hash.has_key? 'clickToPay'
66
+ raise TypeError, "value '%s' is not a Hash" % [hash['clickToPay']] unless hash['clickToPay'].is_a? Hash
67
+ @click_to_pay = Worldline::Connect::SDK::V1::Domain::ClickToPayInput.new_from_hash(hash['clickToPay'])
68
+ end
60
69
  if hash.has_key? 'externalCardholderAuthenticationData'
61
70
  raise TypeError, "value '%s' is not a Hash" % [hash['externalCardholderAuthenticationData']] unless hash['externalCardholderAuthenticationData'].is_a? Hash
62
71
  @external_cardholder_authentication_data = Worldline::Connect::SDK::V1::Domain::ExternalCardholderAuthenticationData.new_from_hash(hash['externalCardholderAuthenticationData'])
@@ -15,6 +15,7 @@ module Worldline
15
15
  module Domain
16
16
  # @attr [String] authorisation_code
17
17
  # @attr [Worldline::Connect::SDK::V1::Domain::CardEssentials] card
18
+ # @attr [true/false] click_to_pay_used
18
19
  # @attr [Worldline::Connect::SDK::V1::Domain::CardFraudResults] fraud_results
19
20
  # @attr [String] initial_scheme_transaction_id
20
21
  # @attr [Worldline::Connect::SDK::V1::Domain::NetworkTokenData] network_token_data
@@ -29,6 +30,8 @@ module Worldline
29
30
 
30
31
  attr_accessor :card
31
32
 
33
+ attr_accessor :click_to_pay_used
34
+
32
35
  attr_accessor :fraud_results
33
36
 
34
37
  attr_accessor :initial_scheme_transaction_id
@@ -50,6 +53,7 @@ module Worldline
50
53
  hash = super
51
54
  hash['authorisationCode'] = @authorisation_code unless @authorisation_code.nil?
52
55
  hash['card'] = @card.to_h unless @card.nil?
56
+ hash['clickToPayUsed'] = @click_to_pay_used unless @click_to_pay_used.nil?
53
57
  hash['fraudResults'] = @fraud_results.to_h unless @fraud_results.nil?
54
58
  hash['initialSchemeTransactionId'] = @initial_scheme_transaction_id unless @initial_scheme_transaction_id.nil?
55
59
  hash['networkTokenData'] = @network_token_data.to_h unless @network_token_data.nil?
@@ -70,6 +74,9 @@ module Worldline
70
74
  raise TypeError, "value '%s' is not a Hash" % [hash['card']] unless hash['card'].is_a? Hash
71
75
  @card = Worldline::Connect::SDK::V1::Domain::CardEssentials.new_from_hash(hash['card'])
72
76
  end
77
+ if hash.has_key? 'clickToPayUsed'
78
+ @click_to_pay_used = hash['clickToPayUsed']
79
+ end
73
80
  if hash.has_key? 'fraudResults'
74
81
  raise TypeError, "value '%s' is not a Hash" % [hash['fraudResults']] unless hash['fraudResults'].is_a? Hash
75
82
  @fraud_results = Worldline::Connect::SDK::V1::Domain::CardFraudResults.new_from_hash(hash['fraudResults'])
@@ -0,0 +1,35 @@
1
+ #
2
+ # This class was auto-generated from the API references found at
3
+ # https://apireference.connect.worldline-solutions.com/
4
+ #
5
+ require 'worldline/connect/sdk/domain/data_object'
6
+
7
+ module Worldline
8
+ module Connect
9
+ module SDK
10
+ module V1
11
+ module Domain
12
+ # @attr [String] checkout_response_signature
13
+ class ClickToPayInput < Worldline::Connect::SDK::Domain::DataObject
14
+
15
+ attr_accessor :checkout_response_signature
16
+
17
+ # @return (Hash)
18
+ def to_h
19
+ hash = super
20
+ hash['checkoutResponseSignature'] = @checkout_response_signature unless @checkout_response_signature.nil?
21
+ hash
22
+ end
23
+
24
+ def from_hash(hash)
25
+ super
26
+ if hash.has_key? 'checkoutResponseSignature'
27
+ @checkout_response_signature = hash['checkoutResponseSignature']
28
+ end
29
+ end
30
+ end
31
+ end
32
+ end
33
+ end
34
+ end
35
+ end
@@ -9,30 +9,30 @@ module Worldline
9
9
  module SDK
10
10
  module V1
11
11
  module Domain
12
- # @attr [String] src_dpa_id
13
12
  # @attr [String] src_initiator_id
13
+ # @attr [String] srci_dpa_id
14
14
  class ClickToPaySchemeConfigurationBase < Worldline::Connect::SDK::Domain::DataObject
15
15
 
16
- attr_accessor :src_dpa_id
17
-
18
16
  attr_accessor :src_initiator_id
19
17
 
18
+ attr_accessor :srci_dpa_id
19
+
20
20
  # @return (Hash)
21
21
  def to_h
22
22
  hash = super
23
- hash['srcDpaId'] = @src_dpa_id unless @src_dpa_id.nil?
24
23
  hash['srcInitiatorId'] = @src_initiator_id unless @src_initiator_id.nil?
24
+ hash['srciDpaId'] = @srci_dpa_id unless @srci_dpa_id.nil?
25
25
  hash
26
26
  end
27
27
 
28
28
  def from_hash(hash)
29
29
  super
30
- if hash.has_key? 'srcDpaId'
31
- @src_dpa_id = hash['srcDpaId']
32
- end
33
30
  if hash.has_key? 'srcInitiatorId'
34
31
  @src_initiator_id = hash['srcInitiatorId']
35
32
  end
33
+ if hash.has_key? 'srciDpaId'
34
+ @srci_dpa_id = hash['srciDpaId']
35
+ end
36
36
  end
37
37
  end
38
38
  end
@@ -11,6 +11,7 @@ module Worldline
11
11
  module SDK
12
12
  module V1
13
13
  module Domain
14
+ # @attr [true/false] allow_click_to_pay
14
15
  # @attr [true/false] is_recurring
15
16
  # @attr [String] locale
16
17
  # @attr [Worldline::Connect::SDK::V1::Domain::PaymentProductFiltersHostedCheckout] payment_product_filters
@@ -23,6 +24,8 @@ module Worldline
23
24
  # @attr [String] variant
24
25
  class HostedCheckoutSpecificInput < Worldline::Connect::SDK::Domain::DataObject
25
26
 
27
+ attr_accessor :allow_click_to_pay
28
+
26
29
  attr_accessor :is_recurring
27
30
 
28
31
  attr_accessor :locale
@@ -46,6 +49,7 @@ module Worldline
46
49
  # @return (Hash)
47
50
  def to_h
48
51
  hash = super
52
+ hash['allowClickToPay'] = @allow_click_to_pay unless @allow_click_to_pay.nil?
49
53
  hash['isRecurring'] = @is_recurring unless @is_recurring.nil?
50
54
  hash['locale'] = @locale unless @locale.nil?
51
55
  hash['paymentProductFilters'] = @payment_product_filters.to_h unless @payment_product_filters.nil?
@@ -61,6 +65,9 @@ module Worldline
61
65
 
62
66
  def from_hash(hash)
63
67
  super
68
+ if hash.has_key? 'allowClickToPay'
69
+ @allow_click_to_pay = hash['allowClickToPay']
70
+ end
64
71
  if hash.has_key? 'isRecurring'
65
72
  @is_recurring = hash['isRecurring']
66
73
  end
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: 4.5.0
4
+ version: 4.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Worldline Global Collect
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-03-17 00:00:00.000000000 Z
11
+ date: 2026-04-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httpclient
@@ -372,6 +372,7 @@ files:
372
372
  - lib/worldline/connect/sdk/v1/domain/click_to_pay_configuration_mastercard.rb
373
373
  - lib/worldline/connect/sdk/v1/domain/click_to_pay_configuration_visa.rb
374
374
  - lib/worldline/connect/sdk/v1/domain/click_to_pay_display_hints.rb
375
+ - lib/worldline/connect/sdk/v1/domain/click_to_pay_input.rb
375
376
  - lib/worldline/connect/sdk/v1/domain/click_to_pay_scheme_configuration_base.rb
376
377
  - lib/worldline/connect/sdk/v1/domain/company_information.rb
377
378
  - lib/worldline/connect/sdk/v1/domain/complete_payment_card_payment_method_specific_input.rb