connect-sdk-ruby 3.1.0 → 3.3.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: 791117f1bb35e32230acf8eb4814e94c2d966e5d0bb025da5edf3ca23c6846be
4
- data.tar.gz: 1eefc8bd5d196e6e32f2833bf25c522c8758408723831b7126d52ba56a860b94
3
+ metadata.gz: 28540517a07fb7116a725c18777404a0621872c7408979cf6d172f4ead0b4862
4
+ data.tar.gz: f80f1251db700b9dae55a72f11f35eb4d9a7ba9741d0670e00ded9f5acbb8322
5
5
  SHA512:
6
- metadata.gz: 41051f07e0b269e54623a8d07863bf1331a1d0b59469c58662940a4a15a1a39cfdf37bd9ead59a01e5d216c74cfe0e4ac7a5dab912251e7f60b565a8e5a82947
7
- data.tar.gz: 7eda244b03340ab7a979b16d33139c91407478110cb6cc5b7ebeb3e97a09b2e02a5cdea8727b685913fb406348726715c8e03eca41738f9aa3d8aeccdcaa137f
6
+ metadata.gz: 2a0467c079268d78b3a5970e649bb1fee793bdb91b7b84ac521f782b9a9f2710b16c72a009355e6726110664681f1fa8a4bc58df0a9dadd3df23f52f469971e4
7
+ data.tar.gz: 854b3e7768528a5308d83cd30dd506a9def730d5f3b309872796fa9a5b0968853c58428eb22fba000cc5d0fc30a3951d726d02f93e46d292a02a50a7b1c9b66d
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = 'connect-sdk-ruby'
3
- spec.version = '3.1.0'
3
+ spec.version = '3.3.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 = '3.1.0'.freeze
17
+ SDK_VERSION = '3.3.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
@@ -9,10 +9,13 @@ module Worldline
9
9
  module SDK
10
10
  module V1
11
11
  module Domain
12
+ # @attr [String] date_of_incorporation
12
13
  # @attr [String] name
13
14
  # @attr [String] vat_number
14
15
  class CompanyInformation < Worldline::Connect::SDK::Domain::DataObject
15
16
 
17
+ attr_accessor :date_of_incorporation
18
+
16
19
  attr_accessor :name
17
20
 
18
21
  attr_accessor :vat_number
@@ -20,6 +23,7 @@ module Worldline
20
23
  # @return (Hash)
21
24
  def to_h
22
25
  hash = super
26
+ hash['dateOfIncorporation'] = @date_of_incorporation unless @date_of_incorporation.nil?
23
27
  hash['name'] = @name unless @name.nil?
24
28
  hash['vatNumber'] = @vat_number unless @vat_number.nil?
25
29
  hash
@@ -27,6 +31,9 @@ module Worldline
27
31
 
28
32
  def from_hash(hash)
29
33
  super
34
+ if hash.has_key? 'dateOfIncorporation'
35
+ @date_of_incorporation = hash['dateOfIncorporation']
36
+ end
30
37
  if hash.has_key? 'name'
31
38
  @name = hash['name']
32
39
  end
@@ -0,0 +1,60 @@
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] clause_name
13
+ # @attr [Integer] fraud_score
14
+ # @attr [String] policy_applied
15
+ # @attr [Array<String>] reason_codes
16
+ class CybersourceDecisionManager < Worldline::Connect::SDK::Domain::DataObject
17
+
18
+ attr_accessor :clause_name
19
+
20
+ attr_accessor :fraud_score
21
+
22
+ attr_accessor :policy_applied
23
+
24
+ attr_accessor :reason_codes
25
+
26
+ # @return (Hash)
27
+ def to_h
28
+ hash = super
29
+ hash['clauseName'] = @clause_name unless @clause_name.nil?
30
+ hash['fraudScore'] = @fraud_score unless @fraud_score.nil?
31
+ hash['policyApplied'] = @policy_applied unless @policy_applied.nil?
32
+ hash['reasonCodes'] = @reason_codes unless @reason_codes.nil?
33
+ hash
34
+ end
35
+
36
+ def from_hash(hash)
37
+ super
38
+ if hash.has_key? 'clauseName'
39
+ @clause_name = hash['clauseName']
40
+ end
41
+ if hash.has_key? 'fraudScore'
42
+ @fraud_score = hash['fraudScore']
43
+ end
44
+ if hash.has_key? 'policyApplied'
45
+ @policy_applied = hash['policyApplied']
46
+ end
47
+ if hash.has_key? 'reasonCodes'
48
+ raise TypeError, "value '%s' is not an Array" % [hash['reasonCodes']] unless hash['reasonCodes'].is_a? Array
49
+ @reason_codes = []
50
+ hash['reasonCodes'].each do |e|
51
+ @reason_codes << e
52
+ end
53
+ end
54
+ end
55
+ end
56
+ end
57
+ end
58
+ end
59
+ end
60
+ end
@@ -3,6 +3,7 @@
3
3
  # https://apireference.connect.worldline-solutions.com/
4
4
  #
5
5
  require 'worldline/connect/sdk/domain/data_object'
6
+ require 'worldline/connect/sdk/v1/domain/cybersource_decision_manager'
6
7
  require 'worldline/connect/sdk/v1/domain/in_auth'
7
8
  require 'worldline/connect/sdk/v1/domain/microsoft_fraud_results'
8
9
 
@@ -11,11 +12,14 @@ module Worldline
11
12
  module SDK
12
13
  module V1
13
14
  module Domain
15
+ # @attr [Worldline::Connect::SDK::V1::Domain::CybersourceDecisionManager] cybersource_decision_manager
14
16
  # @attr [String] fraud_service_result
15
17
  # @attr [Worldline::Connect::SDK::V1::Domain::InAuth] in_auth
16
18
  # @attr [Worldline::Connect::SDK::V1::Domain::MicrosoftFraudResults] microsoft_fraud_protection
17
19
  class FraudResults < Worldline::Connect::SDK::Domain::DataObject
18
20
 
21
+ attr_accessor :cybersource_decision_manager
22
+
19
23
  attr_accessor :fraud_service_result
20
24
 
21
25
  attr_accessor :in_auth
@@ -25,6 +29,7 @@ module Worldline
25
29
  # @return (Hash)
26
30
  def to_h
27
31
  hash = super
32
+ hash['cybersourceDecisionManager'] = @cybersource_decision_manager.to_h unless @cybersource_decision_manager.nil?
28
33
  hash['fraudServiceResult'] = @fraud_service_result unless @fraud_service_result.nil?
29
34
  hash['inAuth'] = @in_auth.to_h unless @in_auth.nil?
30
35
  hash['microsoftFraudProtection'] = @microsoft_fraud_protection.to_h unless @microsoft_fraud_protection.nil?
@@ -33,6 +38,10 @@ module Worldline
33
38
 
34
39
  def from_hash(hash)
35
40
  super
41
+ if hash.has_key? 'cybersourceDecisionManager'
42
+ raise TypeError, "value '%s' is not a Hash" % [hash['cybersourceDecisionManager']] unless hash['cybersourceDecisionManager'].is_a? Hash
43
+ @cybersource_decision_manager = Worldline::Connect::SDK::V1::Domain::CybersourceDecisionManager.new_from_hash(hash['cybersourceDecisionManager'])
44
+ end
36
45
  if hash.has_key? 'fraudServiceResult'
37
46
  @fraud_service_result = hash['fraudServiceResult']
38
47
  end
@@ -14,6 +14,7 @@ module Worldline
14
14
  # @attr [String] device_id
15
15
  # @attr [Integer] fraud_score
16
16
  # @attr [String] policy_applied
17
+ # @attr [Array<String>] reason_codes
17
18
  # @attr [String] true_ip_address
18
19
  # @attr [String] user_device_type
19
20
  class MicrosoftFraudResults < Worldline::Connect::SDK::Domain::DataObject
@@ -28,6 +29,8 @@ module Worldline
28
29
 
29
30
  attr_accessor :policy_applied
30
31
 
32
+ attr_accessor :reason_codes
33
+
31
34
  attr_accessor :true_ip_address
32
35
 
33
36
  attr_accessor :user_device_type
@@ -40,6 +43,7 @@ module Worldline
40
43
  hash['deviceId'] = @device_id unless @device_id.nil?
41
44
  hash['fraudScore'] = @fraud_score unless @fraud_score.nil?
42
45
  hash['policyApplied'] = @policy_applied unless @policy_applied.nil?
46
+ hash['reasonCodes'] = @reason_codes unless @reason_codes.nil?
43
47
  hash['trueIpAddress'] = @true_ip_address unless @true_ip_address.nil?
44
48
  hash['userDeviceType'] = @user_device_type unless @user_device_type.nil?
45
49
  hash
@@ -62,6 +66,13 @@ module Worldline
62
66
  if hash.has_key? 'policyApplied'
63
67
  @policy_applied = hash['policyApplied']
64
68
  end
69
+ if hash.has_key? 'reasonCodes'
70
+ raise TypeError, "value '%s' is not an Array" % [hash['reasonCodes']] unless hash['reasonCodes'].is_a? Array
71
+ @reason_codes = []
72
+ hash['reasonCodes'].each do |e|
73
+ @reason_codes << e
74
+ end
75
+ end
65
76
  if hash.has_key? 'trueIpAddress'
66
77
  @true_ip_address = hash['trueIpAddress']
67
78
  end
@@ -10,6 +10,7 @@ module Worldline
10
10
  module V1
11
11
  module Domain
12
12
  # @attr [String] funding_type
13
+ # @attr [String] payment_code
13
14
  # @attr [String] purchase_type
14
15
  # @attr [String] transaction_type
15
16
  # @attr [String] usage_type
@@ -17,6 +18,8 @@ module Worldline
17
18
 
18
19
  attr_accessor :funding_type
19
20
 
21
+ attr_accessor :payment_code
22
+
20
23
  attr_accessor :purchase_type
21
24
 
22
25
  attr_accessor :transaction_type
@@ -27,6 +30,7 @@ module Worldline
27
30
  def to_h
28
31
  hash = super
29
32
  hash['fundingType'] = @funding_type unless @funding_type.nil?
33
+ hash['paymentCode'] = @payment_code unless @payment_code.nil?
30
34
  hash['purchaseType'] = @purchase_type unless @purchase_type.nil?
31
35
  hash['transactionType'] = @transaction_type unless @transaction_type.nil?
32
36
  hash['usageType'] = @usage_type unless @usage_type.nil?
@@ -38,6 +42,9 @@ module Worldline
38
42
  if hash.has_key? 'fundingType'
39
43
  @funding_type = hash['fundingType']
40
44
  end
45
+ if hash.has_key? 'paymentCode'
46
+ @payment_code = hash['paymentCode']
47
+ end
41
48
  if hash.has_key? 'purchaseType'
42
49
  @purchase_type = hash['purchaseType']
43
50
  end
@@ -5,7 +5,6 @@
5
5
  require 'worldline/connect/sdk/v1/domain/abstract_redirect_payment_method_specific_input'
6
6
  require 'worldline/connect/sdk/v1/domain/redirect_payment_product4101_specific_input'
7
7
  require 'worldline/connect/sdk/v1/domain/redirect_payment_product809_specific_input'
8
- require 'worldline/connect/sdk/v1/domain/redirect_payment_product816_specific_input'
9
8
  require 'worldline/connect/sdk/v1/domain/redirect_payment_product840_specific_input'
10
9
  require 'worldline/connect/sdk/v1/domain/redirect_payment_product861_specific_input'
11
10
  require 'worldline/connect/sdk/v1/domain/redirect_payment_product863_specific_input'
@@ -21,7 +20,6 @@ module Worldline
21
20
  # @attr [true/false] is_recurring
22
21
  # @attr [Worldline::Connect::SDK::V1::Domain::RedirectPaymentProduct4101SpecificInput] payment_product4101_specific_input
23
22
  # @attr [Worldline::Connect::SDK::V1::Domain::RedirectPaymentProduct809SpecificInput] payment_product809_specific_input
24
- # @attr [Worldline::Connect::SDK::V1::Domain::RedirectPaymentProduct816SpecificInput] payment_product816_specific_input
25
23
  # @attr [Worldline::Connect::SDK::V1::Domain::RedirectPaymentProduct840SpecificInput] payment_product840_specific_input
26
24
  # @attr [Worldline::Connect::SDK::V1::Domain::RedirectPaymentProduct861SpecificInput] payment_product861_specific_input
27
25
  # @attr [Worldline::Connect::SDK::V1::Domain::RedirectPaymentProduct863SpecificInput] payment_product863_specific_input
@@ -37,8 +35,6 @@ module Worldline
37
35
 
38
36
  attr_accessor :payment_product809_specific_input
39
37
 
40
- attr_accessor :payment_product816_specific_input
41
-
42
38
  attr_accessor :payment_product840_specific_input
43
39
 
44
40
  attr_accessor :payment_product861_specific_input
@@ -60,7 +56,6 @@ module Worldline
60
56
  hash['isRecurring'] = @is_recurring unless @is_recurring.nil?
61
57
  hash['paymentProduct4101SpecificInput'] = @payment_product4101_specific_input.to_h unless @payment_product4101_specific_input.nil?
62
58
  hash['paymentProduct809SpecificInput'] = @payment_product809_specific_input.to_h unless @payment_product809_specific_input.nil?
63
- hash['paymentProduct816SpecificInput'] = @payment_product816_specific_input.to_h unless @payment_product816_specific_input.nil?
64
59
  hash['paymentProduct840SpecificInput'] = @payment_product840_specific_input.to_h unless @payment_product840_specific_input.nil?
65
60
  hash['paymentProduct861SpecificInput'] = @payment_product861_specific_input.to_h unless @payment_product861_specific_input.nil?
66
61
  hash['paymentProduct863SpecificInput'] = @payment_product863_specific_input.to_h unless @payment_product863_specific_input.nil?
@@ -84,10 +79,6 @@ module Worldline
84
79
  raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct809SpecificInput']] unless hash['paymentProduct809SpecificInput'].is_a? Hash
85
80
  @payment_product809_specific_input = Worldline::Connect::SDK::V1::Domain::RedirectPaymentProduct809SpecificInput.new_from_hash(hash['paymentProduct809SpecificInput'])
86
81
  end
87
- if hash.has_key? 'paymentProduct816SpecificInput'
88
- raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct816SpecificInput']] unless hash['paymentProduct816SpecificInput'].is_a? Hash
89
- @payment_product816_specific_input = Worldline::Connect::SDK::V1::Domain::RedirectPaymentProduct816SpecificInput.new_from_hash(hash['paymentProduct816SpecificInput'])
90
- end
91
82
  if hash.has_key? 'paymentProduct840SpecificInput'
92
83
  raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct840SpecificInput']] unless hash['paymentProduct840SpecificInput'].is_a? Hash
93
84
  @payment_product840_specific_input = Worldline::Connect::SDK::V1::Domain::RedirectPaymentProduct840SpecificInput.new_from_hash(hash['paymentProduct840SpecificInput'])
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: 3.1.0
4
+ version: 3.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Worldline Global Collect
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-06-04 00:00:00.000000000 Z
11
+ date: 2025-01-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httpclient
@@ -394,6 +394,7 @@ files:
394
394
  - lib/worldline/connect/sdk/v1/domain/customer_risk_assessment.rb
395
395
  - lib/worldline/connect/sdk/v1/domain/customer_token.rb
396
396
  - lib/worldline/connect/sdk/v1/domain/customer_token_with_contact_details.rb
397
+ - lib/worldline/connect/sdk/v1/domain/cybersource_decision_manager.rb
397
398
  - lib/worldline/connect/sdk/v1/domain/debtor.rb
398
399
  - lib/worldline/connect/sdk/v1/domain/decrypted_payment_data.rb
399
400
  - lib/worldline/connect/sdk/v1/domain/device_fingerprint_details.rb
@@ -571,7 +572,6 @@ files:
571
572
  - lib/worldline/connect/sdk/v1/domain/redirect_payment_product4101_specific_input.rb
572
573
  - lib/worldline/connect/sdk/v1/domain/redirect_payment_product4101_specific_input_base.rb
573
574
  - lib/worldline/connect/sdk/v1/domain/redirect_payment_product809_specific_input.rb
574
- - lib/worldline/connect/sdk/v1/domain/redirect_payment_product816_specific_input.rb
575
575
  - lib/worldline/connect/sdk/v1/domain/redirect_payment_product840_specific_input.rb
576
576
  - lib/worldline/connect/sdk/v1/domain/redirect_payment_product840_specific_input_base.rb
577
577
  - lib/worldline/connect/sdk/v1/domain/redirect_payment_product861_specific_input.rb
@@ -779,7 +779,7 @@ homepage: https://github.com/Worldline-Global-Collect/connect-sdk-ruby
779
779
  licenses:
780
780
  - MIT
781
781
  metadata: {}
782
- post_install_message:
782
+ post_install_message:
783
783
  rdoc_options: []
784
784
  require_paths:
785
785
  - lib
@@ -795,7 +795,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
795
795
  version: '0'
796
796
  requirements: []
797
797
  rubygems_version: 3.4.22
798
- signing_key:
798
+ signing_key:
799
799
  specification_version: 4
800
800
  summary: SDK to communicate with the Worldline Global Collect platform using the Worldline
801
801
  Connect Server API
@@ -1,37 +0,0 @@
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
- require 'worldline/connect/sdk/v1/domain/bank_account_iban'
7
-
8
- module Worldline
9
- module Connect
10
- module SDK
11
- module V1
12
- module Domain
13
- # @attr [Worldline::Connect::SDK::V1::Domain::BankAccountIban] bank_account_iban
14
- class RedirectPaymentProduct816SpecificInput < Worldline::Connect::SDK::Domain::DataObject
15
-
16
- attr_accessor :bank_account_iban
17
-
18
- # @return (Hash)
19
- def to_h
20
- hash = super
21
- hash['bankAccountIban'] = @bank_account_iban.to_h unless @bank_account_iban.nil?
22
- hash
23
- end
24
-
25
- def from_hash(hash)
26
- super
27
- if hash.has_key? 'bankAccountIban'
28
- raise TypeError, "value '%s' is not a Hash" % [hash['bankAccountIban']] unless hash['bankAccountIban'].is_a? Hash
29
- @bank_account_iban = Worldline::Connect::SDK::V1::Domain::BankAccountIban.new_from_hash(hash['bankAccountIban'])
30
- end
31
- end
32
- end
33
- end
34
- end
35
- end
36
- end
37
- end