onlinepayments-sdk-ruby 4.1.0 → 4.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/api_error.rb +4 -0
- data/lib/onlinepayments/sdk/domain/capture_output.rb +7 -0
- data/lib/onlinepayments/sdk/domain/card_payment_method_specific_input.rb +8 -0
- data/lib/onlinepayments/sdk/domain/external_cardholder_authentication_data.rb +4 -0
- data/lib/onlinepayments/sdk/domain/payment_output.rb +7 -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: 9bf020287a6f72d927ad4dd43ab68463b16b40e945543713864b18bf452b7c5c
|
4
|
+
data.tar.gz: 69e38ee5017260711c39f485137c385aaac53bfc29d9a8a4440d85c41e34bbc7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 496923ed33858637effa4715984030fcc3e02f8293fc731210c3282af170d04e16ee2cffbee3ca6732002d5a6444e164395f95ba9f48f4ffd1b64353597a8df2
|
7
|
+
data.tar.gz: f3c86fcc4cae23e33c440e6b7a04ac57a63b8cea1bcd5a9b10495d3d2edcafed6f4031ee4e1234d7d7a874cc23f33fbbde372e70178e3f3be38312bf85f51a88
|
@@ -13,6 +13,7 @@ module OnlinePayments::SDK
|
|
13
13
|
# @attr [String] id
|
14
14
|
# @attr [String] message
|
15
15
|
# @attr [String] property_name
|
16
|
+
# @attr [true/false] retriable
|
16
17
|
class APIError < OnlinePayments::SDK::DataObject
|
17
18
|
attr_accessor :category
|
18
19
|
attr_accessor :code
|
@@ -21,6 +22,7 @@ module OnlinePayments::SDK
|
|
21
22
|
attr_accessor :id
|
22
23
|
attr_accessor :message
|
23
24
|
attr_accessor :property_name
|
25
|
+
attr_accessor :retriable
|
24
26
|
|
25
27
|
# @return (Hash)
|
26
28
|
def to_h
|
@@ -32,6 +34,7 @@ module OnlinePayments::SDK
|
|
32
34
|
hash['id'] = @id unless @id.nil?
|
33
35
|
hash['message'] = @message unless @message.nil?
|
34
36
|
hash['propertyName'] = @property_name unless @property_name.nil?
|
37
|
+
hash['retriable'] = @retriable unless @retriable.nil?
|
35
38
|
hash
|
36
39
|
end
|
37
40
|
|
@@ -44,6 +47,7 @@ module OnlinePayments::SDK
|
|
44
47
|
@id = hash['id'] if hash.key? 'id'
|
45
48
|
@message = hash['message'] if hash.key? 'message'
|
46
49
|
@property_name = hash['propertyName'] if hash.key? 'propertyName'
|
50
|
+
@retriable = hash['retriable'] if hash.key? 'retriable'
|
47
51
|
end
|
48
52
|
end
|
49
53
|
end
|
@@ -12,6 +12,7 @@ require 'onlinepayments/sdk/domain/sepa_direct_debit_payment_method_specific_out
|
|
12
12
|
module OnlinePayments::SDK
|
13
13
|
module Domain
|
14
14
|
|
15
|
+
# @attr [OnlinePayments::SDK::Domain::AmountOfMoney] acquired_amount
|
15
16
|
# @attr [OnlinePayments::SDK::Domain::AmountOfMoney] amount_of_money
|
16
17
|
# @attr [Long] amount_paid
|
17
18
|
# @attr [OnlinePayments::SDK::Domain::CardPaymentMethodSpecificOutput] card_payment_method_specific_output
|
@@ -22,6 +23,7 @@ module OnlinePayments::SDK
|
|
22
23
|
# @attr [OnlinePayments::SDK::Domain::PaymentReferences] references
|
23
24
|
# @attr [OnlinePayments::SDK::Domain::SepaDirectDebitPaymentMethodSpecificOutput] sepa_direct_debit_payment_method_specific_output
|
24
25
|
class CaptureOutput < OnlinePayments::SDK::DataObject
|
26
|
+
attr_accessor :acquired_amount
|
25
27
|
attr_accessor :amount_of_money
|
26
28
|
attr_accessor :amount_paid
|
27
29
|
attr_accessor :card_payment_method_specific_output
|
@@ -35,6 +37,7 @@ module OnlinePayments::SDK
|
|
35
37
|
# @return (Hash)
|
36
38
|
def to_h
|
37
39
|
hash = super
|
40
|
+
hash['acquiredAmount'] = @acquired_amount.to_h if @acquired_amount
|
38
41
|
hash['amountOfMoney'] = @amount_of_money.to_h if @amount_of_money
|
39
42
|
hash['amountPaid'] = @amount_paid unless @amount_paid.nil?
|
40
43
|
hash['cardPaymentMethodSpecificOutput'] = @card_payment_method_specific_output.to_h if @card_payment_method_specific_output
|
@@ -49,6 +52,10 @@ module OnlinePayments::SDK
|
|
49
52
|
|
50
53
|
def from_hash(hash)
|
51
54
|
super
|
55
|
+
if hash.key? 'acquiredAmount'
|
56
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['acquiredAmount']] unless hash['acquiredAmount'].is_a? Hash
|
57
|
+
@acquired_amount = OnlinePayments::SDK::Domain::AmountOfMoney.new_from_hash(hash['acquiredAmount'])
|
58
|
+
end
|
52
59
|
if hash.key? 'amountOfMoney'
|
53
60
|
raise TypeError, "value '%s' is not a Hash" % [hash['amountOfMoney']] unless hash['amountOfMoney'].is_a? Hash
|
54
61
|
@amount_of_money = OnlinePayments::SDK::Domain::AmountOfMoney.new_from_hash(hash['amountOfMoney'])
|
@@ -12,6 +12,8 @@ module OnlinePayments::SDK
|
|
12
12
|
|
13
13
|
# @attr [String] authorization_mode
|
14
14
|
# @attr [OnlinePayments::SDK::Domain::Card] card
|
15
|
+
# @attr [String] card_on_file_recurring_expiration
|
16
|
+
# @attr [String] card_on_file_recurring_frequency
|
15
17
|
# @attr [String] initial_scheme_transaction_id
|
16
18
|
# @attr [true/false] is_recurring
|
17
19
|
# @attr [OnlinePayments::SDK::Domain::PaymentProduct130SpecificInput] payment_product130_specific_input
|
@@ -29,6 +31,8 @@ module OnlinePayments::SDK
|
|
29
31
|
class CardPaymentMethodSpecificInput < OnlinePayments::SDK::DataObject
|
30
32
|
attr_accessor :authorization_mode
|
31
33
|
attr_accessor :card
|
34
|
+
attr_accessor :card_on_file_recurring_expiration
|
35
|
+
attr_accessor :card_on_file_recurring_frequency
|
32
36
|
attr_accessor :initial_scheme_transaction_id
|
33
37
|
attr_accessor :is_recurring
|
34
38
|
attr_accessor :payment_product130_specific_input
|
@@ -49,6 +53,8 @@ module OnlinePayments::SDK
|
|
49
53
|
hash = super
|
50
54
|
hash['authorizationMode'] = @authorization_mode unless @authorization_mode.nil?
|
51
55
|
hash['card'] = @card.to_h if @card
|
56
|
+
hash['cardOnFileRecurringExpiration'] = @card_on_file_recurring_expiration unless @card_on_file_recurring_expiration.nil?
|
57
|
+
hash['cardOnFileRecurringFrequency'] = @card_on_file_recurring_frequency unless @card_on_file_recurring_frequency.nil?
|
52
58
|
hash['initialSchemeTransactionId'] = @initial_scheme_transaction_id unless @initial_scheme_transaction_id.nil?
|
53
59
|
hash['isRecurring'] = @is_recurring unless @is_recurring.nil?
|
54
60
|
hash['paymentProduct130SpecificInput'] = @payment_product130_specific_input.to_h if @payment_product130_specific_input
|
@@ -73,6 +79,8 @@ module OnlinePayments::SDK
|
|
73
79
|
raise TypeError, "value '%s' is not a Hash" % [hash['card']] unless hash['card'].is_a? Hash
|
74
80
|
@card = OnlinePayments::SDK::Domain::Card.new_from_hash(hash['card'])
|
75
81
|
end
|
82
|
+
@card_on_file_recurring_expiration = hash['cardOnFileRecurringExpiration'] if hash.key? 'cardOnFileRecurringExpiration'
|
83
|
+
@card_on_file_recurring_frequency = hash['cardOnFileRecurringFrequency'] if hash.key? 'cardOnFileRecurringFrequency'
|
76
84
|
@initial_scheme_transaction_id = hash['initialSchemeTransactionId'] if hash.key? 'initialSchemeTransactionId'
|
77
85
|
@is_recurring = hash['isRecurring'] if hash.key? 'isRecurring'
|
78
86
|
if hash.key? 'paymentProduct130SpecificInput'
|
@@ -12,6 +12,7 @@ module OnlinePayments::SDK
|
|
12
12
|
# @attr [String] cavv_algorithm
|
13
13
|
# @attr [String] directory_server_transaction_id
|
14
14
|
# @attr [Integer] eci
|
15
|
+
# @attr [String] flow
|
15
16
|
# @attr [Integer] scheme_risk_score
|
16
17
|
# @attr [String] three_d_secure_version
|
17
18
|
# @attr [String] xid
|
@@ -22,6 +23,7 @@ module OnlinePayments::SDK
|
|
22
23
|
attr_accessor :cavv_algorithm
|
23
24
|
attr_accessor :directory_server_transaction_id
|
24
25
|
attr_accessor :eci
|
26
|
+
attr_accessor :flow
|
25
27
|
attr_accessor :scheme_risk_score
|
26
28
|
attr_accessor :three_d_secure_version
|
27
29
|
attr_accessor :xid
|
@@ -35,6 +37,7 @@ module OnlinePayments::SDK
|
|
35
37
|
hash['cavvAlgorithm'] = @cavv_algorithm unless @cavv_algorithm.nil?
|
36
38
|
hash['directoryServerTransactionId'] = @directory_server_transaction_id unless @directory_server_transaction_id.nil?
|
37
39
|
hash['eci'] = @eci unless @eci.nil?
|
40
|
+
hash['flow'] = @flow unless @flow.nil?
|
38
41
|
hash['schemeRiskScore'] = @scheme_risk_score unless @scheme_risk_score.nil?
|
39
42
|
hash['threeDSecureVersion'] = @three_d_secure_version unless @three_d_secure_version.nil?
|
40
43
|
hash['xid'] = @xid unless @xid.nil?
|
@@ -49,6 +52,7 @@ module OnlinePayments::SDK
|
|
49
52
|
@cavv_algorithm = hash['cavvAlgorithm'] if hash.key? 'cavvAlgorithm'
|
50
53
|
@directory_server_transaction_id = hash['directoryServerTransactionId'] if hash.key? 'directoryServerTransactionId'
|
51
54
|
@eci = hash['eci'] if hash.key? 'eci'
|
55
|
+
@flow = hash['flow'] if hash.key? 'flow'
|
52
56
|
@scheme_risk_score = hash['schemeRiskScore'] if hash.key? 'schemeRiskScore'
|
53
57
|
@three_d_secure_version = hash['threeDSecureVersion'] if hash.key? 'threeDSecureVersion'
|
54
58
|
@xid = hash['xid'] if hash.key? 'xid'
|
@@ -13,6 +13,7 @@ require 'onlinepayments/sdk/domain/sepa_direct_debit_payment_method_specific_out
|
|
13
13
|
module OnlinePayments::SDK
|
14
14
|
module Domain
|
15
15
|
|
16
|
+
# @attr [OnlinePayments::SDK::Domain::AmountOfMoney] acquired_amount
|
16
17
|
# @attr [OnlinePayments::SDK::Domain::AmountOfMoney] amount_of_money
|
17
18
|
# @attr [Long] amount_paid
|
18
19
|
# @attr [OnlinePayments::SDK::Domain::CardPaymentMethodSpecificOutput] card_payment_method_specific_output
|
@@ -24,6 +25,7 @@ module OnlinePayments::SDK
|
|
24
25
|
# @attr [OnlinePayments::SDK::Domain::PaymentReferences] references
|
25
26
|
# @attr [OnlinePayments::SDK::Domain::SepaDirectDebitPaymentMethodSpecificOutput] sepa_direct_debit_payment_method_specific_output
|
26
27
|
class PaymentOutput < OnlinePayments::SDK::DataObject
|
28
|
+
attr_accessor :acquired_amount
|
27
29
|
attr_accessor :amount_of_money
|
28
30
|
attr_accessor :amount_paid
|
29
31
|
attr_accessor :card_payment_method_specific_output
|
@@ -38,6 +40,7 @@ module OnlinePayments::SDK
|
|
38
40
|
# @return (Hash)
|
39
41
|
def to_h
|
40
42
|
hash = super
|
43
|
+
hash['acquiredAmount'] = @acquired_amount.to_h if @acquired_amount
|
41
44
|
hash['amountOfMoney'] = @amount_of_money.to_h if @amount_of_money
|
42
45
|
hash['amountPaid'] = @amount_paid unless @amount_paid.nil?
|
43
46
|
hash['cardPaymentMethodSpecificOutput'] = @card_payment_method_specific_output.to_h if @card_payment_method_specific_output
|
@@ -53,6 +56,10 @@ module OnlinePayments::SDK
|
|
53
56
|
|
54
57
|
def from_hash(hash)
|
55
58
|
super
|
59
|
+
if hash.key? 'acquiredAmount'
|
60
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['acquiredAmount']] unless hash['acquiredAmount'].is_a? Hash
|
61
|
+
@acquired_amount = OnlinePayments::SDK::Domain::AmountOfMoney.new_from_hash(hash['acquiredAmount'])
|
62
|
+
end
|
56
63
|
if hash.key? 'amountOfMoney'
|
57
64
|
raise TypeError, "value '%s' is not a Hash" % [hash['amountOfMoney']] unless hash['amountOfMoney'].is_a? Hash
|
58
65
|
@amount_of_money = OnlinePayments::SDK::Domain::AmountOfMoney.new_from_hash(hash['amountOfMoney'])
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |spec|
|
2
2
|
spec.name = 'onlinepayments-sdk-ruby'
|
3
|
-
spec.version = '4.
|
3
|
+
spec.version = '4.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: 4.
|
4
|
+
version: 4.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-
|
11
|
+
date: 2022-10-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httpclient
|