onlinepayments-sdk-ruby 3.0.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: b972879b30e86122019cb9683a9c0f9bb22e930f3cdb70202dcd71d9b5b3fb48
4
- data.tar.gz: 85d3c34d68492ea5b77e641d3a1283d312a054105e7421ec19c9c048b3eb3d42
3
+ metadata.gz: eb15584f49b1b90c0cede980de44a2eae2afd5eb1fe254859581a7391d5fca6a
4
+ data.tar.gz: d3341c23e5433b0c4a6e550f5446e2d5f66962ebad0883992f648a967d0cd210
5
5
  SHA512:
6
- metadata.gz: 1d2c66697f92e16a30dff1e09199261b8208acbe58162a2d92f1a48cc1751adf58559d2227b1b27af30be5d77f77a9bb6090983b6bb9d49edbfc2d9a53530f3c
7
- data.tar.gz: 979d0f48a0d1be1b16d392d0178dd562896fd31095892ee032d646cf43c8b0506f7af5171454cabdf95d2f8354f0bd8998c7425fccd5d40cf78214b4b3b57c2f
6
+ metadata.gz: d80aeb2f72e6715cc61980a52aef26cded8cf48c02cffd7b55d3682ac9905dd49f1303005d4117e633c80b2cdff2520f4ccc27115ef3391aeaeb18cb9c61bd94
7
+ data.tar.gz: 7a80eaedc398ed1e0ba479d18bd2ac6ced5c7eb5683d077dff3291dbf10a4372e230242f30e6a8d550d1ec83940e64733620b9423420c7911018939f4e237665
@@ -8,10 +8,12 @@ module OnlinePayments::SDK
8
8
 
9
9
  # @attr [String] bin
10
10
  # @attr [String] card_number
11
+ # @attr [String] country_code
11
12
  # @attr [String] expiry_date
12
13
  class CardEssentials < OnlinePayments::SDK::DataObject
13
14
  attr_accessor :bin
14
15
  attr_accessor :card_number
16
+ attr_accessor :country_code
15
17
  attr_accessor :expiry_date
16
18
 
17
19
  # @return (Hash)
@@ -19,6 +21,7 @@ module OnlinePayments::SDK
19
21
  hash = super
20
22
  hash['bin'] = @bin unless @bin.nil?
21
23
  hash['cardNumber'] = @card_number unless @card_number.nil?
24
+ hash['countryCode'] = @country_code unless @country_code.nil?
22
25
  hash['expiryDate'] = @expiry_date unless @expiry_date.nil?
23
26
  hash
24
27
  end
@@ -27,6 +30,7 @@ module OnlinePayments::SDK
27
30
  super
28
31
  @bin = hash['bin'] if hash.key? 'bin'
29
32
  @card_number = hash['cardNumber'] if hash.key? 'cardNumber'
33
+ @country_code = hash['countryCode'] if hash.key? 'countryCode'
30
34
  @expiry_date = hash['expiryDate'] if hash.key? 'expiryDate'
31
35
  end
32
36
  end
@@ -11,12 +11,14 @@ module OnlinePayments::SDK
11
11
  # @attr [Array<String>] invalid_tokens
12
12
  # @attr [String] merchant_reference
13
13
  # @attr [String] partial_redirect_url
14
+ # @attr [String] redirect_url
14
15
  class CreateHostedCheckoutResponse < OnlinePayments::SDK::DataObject
15
16
  attr_accessor :returnmac
16
17
  attr_accessor :hosted_checkout_id
17
18
  attr_accessor :invalid_tokens
18
19
  attr_accessor :merchant_reference
19
20
  attr_accessor :partial_redirect_url
21
+ attr_accessor :redirect_url
20
22
 
21
23
  # @return (Hash)
22
24
  def to_h
@@ -26,6 +28,7 @@ module OnlinePayments::SDK
26
28
  hash['invalidTokens'] = @invalid_tokens unless @invalid_tokens.nil?
27
29
  hash['merchantReference'] = @merchant_reference unless @merchant_reference.nil?
28
30
  hash['partialRedirectUrl'] = @partial_redirect_url unless @partial_redirect_url.nil?
31
+ hash['redirectUrl'] = @redirect_url unless @redirect_url.nil?
29
32
  hash
30
33
  end
31
34
 
@@ -42,6 +45,7 @@ module OnlinePayments::SDK
42
45
  end
43
46
  @merchant_reference = hash['merchantReference'] if hash.key? 'merchantReference'
44
47
  @partial_redirect_url = hash['partialRedirectUrl'] if hash.key? 'partialRedirectUrl'
48
+ @redirect_url = hash['redirectUrl'] if hash.key? 'redirectUrl'
45
49
  end
46
50
  end
47
51
  end
@@ -15,6 +15,7 @@ module OnlinePayments::SDK
15
15
  # @attr [OnlinePayments::SDK::Domain::CardPaymentMethodSpecificInput] card_payment_method_specific_input
16
16
  # @attr [String] encrypted_customer_input
17
17
  # @attr [OnlinePayments::SDK::Domain::FraudFields] fraud_fields
18
+ # @attr [String] hosted_tokenization_id
18
19
  # @attr [OnlinePayments::SDK::Domain::MobilePaymentMethodSpecificInput] mobile_payment_method_specific_input
19
20
  # @attr [OnlinePayments::SDK::Domain::Order] order
20
21
  # @attr [OnlinePayments::SDK::Domain::RedirectPaymentMethodSpecificInput] redirect_payment_method_specific_input
@@ -23,6 +24,7 @@ module OnlinePayments::SDK
23
24
  attr_accessor :card_payment_method_specific_input
24
25
  attr_accessor :encrypted_customer_input
25
26
  attr_accessor :fraud_fields
27
+ attr_accessor :hosted_tokenization_id
26
28
  attr_accessor :mobile_payment_method_specific_input
27
29
  attr_accessor :order
28
30
  attr_accessor :redirect_payment_method_specific_input
@@ -34,6 +36,7 @@ module OnlinePayments::SDK
34
36
  hash['cardPaymentMethodSpecificInput'] = @card_payment_method_specific_input.to_h if @card_payment_method_specific_input
35
37
  hash['encryptedCustomerInput'] = @encrypted_customer_input unless @encrypted_customer_input.nil?
36
38
  hash['fraudFields'] = @fraud_fields.to_h if @fraud_fields
39
+ hash['hostedTokenizationId'] = @hosted_tokenization_id unless @hosted_tokenization_id.nil?
37
40
  hash['mobilePaymentMethodSpecificInput'] = @mobile_payment_method_specific_input.to_h if @mobile_payment_method_specific_input
38
41
  hash['order'] = @order.to_h if @order
39
42
  hash['redirectPaymentMethodSpecificInput'] = @redirect_payment_method_specific_input.to_h if @redirect_payment_method_specific_input
@@ -52,6 +55,7 @@ module OnlinePayments::SDK
52
55
  raise TypeError, "value '%s' is not a Hash" % [hash['fraudFields']] unless hash['fraudFields'].is_a? Hash
53
56
  @fraud_fields = OnlinePayments::SDK::Domain::FraudFields.new_from_hash(hash['fraudFields'])
54
57
  end
58
+ @hosted_tokenization_id = hash['hostedTokenizationId'] if hash.key? 'hostedTokenizationId'
55
59
  if hash.key? 'mobilePaymentMethodSpecificInput'
56
60
  raise TypeError, "value '%s' is not a Hash" % [hash['mobilePaymentMethodSpecificInput']] unless hash['mobilePaymentMethodSpecificInput'].is_a? Hash
57
61
  @mobile_payment_method_specific_input = OnlinePayments::SDK::Domain::MobilePaymentMethodSpecificInput.new_from_hash(hash['mobilePaymentMethodSpecificInput'])
@@ -6,23 +6,63 @@ require 'onlinepayments/sdk/data_object'
6
6
  module OnlinePayments::SDK
7
7
  module Domain
8
8
 
9
+ # @attr [String] acs_transaction_id
10
+ # @attr [String] applied_exemption
11
+ # @attr [String] authentication_status
12
+ # @attr [String] cavv
13
+ # @attr [String] challenge_indicator
14
+ # @attr [String] ds_transaction_id
9
15
  # @attr [String] eci
16
+ # @attr [String] flow
17
+ # @attr [String] liability
18
+ # @attr [String] scheme_eci
19
+ # @attr [String] version
10
20
  # @attr [String] xid
11
21
  class ThreeDSecureResults < OnlinePayments::SDK::DataObject
22
+ attr_accessor :acs_transaction_id
23
+ attr_accessor :applied_exemption
24
+ attr_accessor :authentication_status
25
+ attr_accessor :cavv
26
+ attr_accessor :challenge_indicator
27
+ attr_accessor :ds_transaction_id
12
28
  attr_accessor :eci
29
+ attr_accessor :flow
30
+ attr_accessor :liability
31
+ attr_accessor :scheme_eci
32
+ attr_accessor :version
13
33
  attr_accessor :xid
14
34
 
15
35
  # @return (Hash)
16
36
  def to_h
17
37
  hash = super
38
+ hash['acsTransactionId'] = @acs_transaction_id unless @acs_transaction_id.nil?
39
+ hash['appliedExemption'] = @applied_exemption unless @applied_exemption.nil?
40
+ hash['authenticationStatus'] = @authentication_status unless @authentication_status.nil?
41
+ hash['cavv'] = @cavv unless @cavv.nil?
42
+ hash['challengeIndicator'] = @challenge_indicator unless @challenge_indicator.nil?
43
+ hash['dsTransactionId'] = @ds_transaction_id unless @ds_transaction_id.nil?
18
44
  hash['eci'] = @eci unless @eci.nil?
45
+ hash['flow'] = @flow unless @flow.nil?
46
+ hash['liability'] = @liability unless @liability.nil?
47
+ hash['schemeEci'] = @scheme_eci unless @scheme_eci.nil?
48
+ hash['version'] = @version unless @version.nil?
19
49
  hash['xid'] = @xid unless @xid.nil?
20
50
  hash
21
51
  end
22
52
 
23
53
  def from_hash(hash)
24
54
  super
55
+ @acs_transaction_id = hash['acsTransactionId'] if hash.key? 'acsTransactionId'
56
+ @applied_exemption = hash['appliedExemption'] if hash.key? 'appliedExemption'
57
+ @authentication_status = hash['authenticationStatus'] if hash.key? 'authenticationStatus'
58
+ @cavv = hash['cavv'] if hash.key? 'cavv'
59
+ @challenge_indicator = hash['challengeIndicator'] if hash.key? 'challengeIndicator'
60
+ @ds_transaction_id = hash['dsTransactionId'] if hash.key? 'dsTransactionId'
25
61
  @eci = hash['eci'] if hash.key? 'eci'
62
+ @flow = hash['flow'] if hash.key? 'flow'
63
+ @liability = hash['liability'] if hash.key? 'liability'
64
+ @scheme_eci = hash['schemeEci'] if hash.key? 'schemeEci'
65
+ @version = hash['version'] if hash.key? 'version'
26
66
  @xid = hash['xid'] if hash.key? 'xid'
27
67
  end
28
68
  end
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = 'onlinepayments-sdk-ruby'
3
- spec.version = '3.0.0'
3
+ spec.version = '3.3.0'
4
4
  spec.authors = ['Worldline Direct support team']
5
5
  spec.email = ['82139942+worldline-direct-support-team@users.noreply.github.com']
6
6
  spec.summary = %q{SDK to communicate with the Online Payments platform using the Online Payments Server API}
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: onlinepayments-sdk-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 3.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Worldline Direct support team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-02-21 00:00:00.000000000 Z
11
+ date: 2022-05-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httpclient