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 +4 -4
- data/lib/onlinepayments/sdk/domain/card_essentials.rb +4 -0
- data/lib/onlinepayments/sdk/domain/create_hosted_checkout_response.rb +4 -0
- data/lib/onlinepayments/sdk/domain/create_payment_request.rb +4 -0
- data/lib/onlinepayments/sdk/domain/three_d_secure_results.rb +40 -0
- data/onlinepayments-sdk-ruby.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eb15584f49b1b90c0cede980de44a2eae2afd5eb1fe254859581a7391d5fca6a
|
4
|
+
data.tar.gz: d3341c23e5433b0c4a6e550f5446e2d5f66962ebad0883992f648a967d0cd210
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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.
|
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
|
11
|
+
date: 2022-05-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httpclient
|