onlinepayments-sdk-ruby 7.4.0 → 8.0.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 +4 -4
- data/lib/onlinepayments/sdk/communication/metadata_provider.rb +1 -1
- data/lib/onlinepayments/sdk/domain/airline_flight_leg.rb +7 -0
- data/lib/onlinepayments/sdk/domain/airline_passenger.rb +14 -0
- data/lib/onlinepayments/sdk/domain/auto_capture.rb +30 -0
- data/lib/onlinepayments/sdk/domain/card_bin_details.rb +14 -0
- data/lib/onlinepayments/sdk/domain/card_essentials.rb +14 -0
- data/lib/onlinepayments/sdk/domain/card_payment_method_specific_input.rb +9 -0
- data/lib/onlinepayments/sdk/domain/card_payment_method_specific_input_base.rb +9 -0
- data/lib/onlinepayments/sdk/domain/create_hosted_fields_session_request.rb +11 -0
- data/lib/onlinepayments/sdk/domain/get_iin_details_response.rb +14 -0
- data/lib/onlinepayments/sdk/domain/iin_detail.rb +14 -0
- data/lib/onlinepayments/sdk/domain/line_item_detail.rb +0 -7
- data/lib/onlinepayments/sdk/domain/operation_payment_references.rb +7 -0
- data/lib/onlinepayments/sdk/domain/order.rb +7 -0
- data/lib/onlinepayments/sdk/domain/order_line_details.rb +7 -0
- data/lib/onlinepayments/sdk/domain/order_references.rb +7 -0
- data/lib/onlinepayments/sdk/domain/payment_output.rb +0 -9
- data/lib/onlinepayments/sdk/domain/payment_product5412.rb +44 -0
- data/lib/onlinepayments/sdk/domain/payment_product5704_auto_capture.rb +30 -0
- data/lib/onlinepayments/sdk/domain/payment_references.rb +7 -0
- data/lib/onlinepayments/sdk/domain/payout_card_payment_method_specific_output.rb +55 -0
- data/lib/onlinepayments/sdk/domain/payout_output.rb +27 -0
- data/lib/onlinepayments/sdk/domain/redirect_payment_method_specific_input.rb +18 -0
- data/lib/onlinepayments/sdk/domain/redirect_payment_product5300_specific_input.rb +9 -0
- data/lib/onlinepayments/sdk/domain/redirect_payment_product5301_specific_input.rb +30 -0
- data/lib/onlinepayments/sdk/domain/redirect_payment_product5407_specific_input.rb +32 -0
- data/lib/onlinepayments/sdk/domain/show_form_data.rb +9 -0
- data/lib/onlinepayments/sdk/merchant/products/get_payment_product_params.rb +4 -0
- data/lib/onlinepayments/sdk/merchant/products/get_payment_products_params.rb +4 -0
- data/onlinepayments-sdk-ruby.gemspec +9 -8
- metadata +37 -26
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
#
|
|
2
|
+
# This file was automatically generated.
|
|
3
|
+
#
|
|
4
|
+
require 'onlinepayments/sdk/domain/data_object'
|
|
5
|
+
|
|
6
|
+
module OnlinePayments
|
|
7
|
+
module SDK
|
|
8
|
+
module Domain
|
|
9
|
+
# @attr [String] app_url
|
|
10
|
+
# @attr [String] polling_url
|
|
11
|
+
# @attr [String] qr_code
|
|
12
|
+
class PaymentProduct5412 < OnlinePayments::SDK::Domain::DataObject
|
|
13
|
+
|
|
14
|
+
attr_accessor :app_url
|
|
15
|
+
|
|
16
|
+
attr_accessor :polling_url
|
|
17
|
+
|
|
18
|
+
attr_accessor :qr_code
|
|
19
|
+
|
|
20
|
+
# @return (Hash)
|
|
21
|
+
def to_h
|
|
22
|
+
hash = super
|
|
23
|
+
hash['appUrl'] = @app_url unless @app_url.nil?
|
|
24
|
+
hash['pollingUrl'] = @polling_url unless @polling_url.nil?
|
|
25
|
+
hash['qrCode'] = @qr_code unless @qr_code.nil?
|
|
26
|
+
hash
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
def from_hash(hash)
|
|
30
|
+
super
|
|
31
|
+
if hash.has_key? 'appUrl'
|
|
32
|
+
@app_url = hash['appUrl']
|
|
33
|
+
end
|
|
34
|
+
if hash.has_key? 'pollingUrl'
|
|
35
|
+
@polling_url = hash['pollingUrl']
|
|
36
|
+
end
|
|
37
|
+
if hash.has_key? 'qrCode'
|
|
38
|
+
@qr_code = hash['qrCode']
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
end
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
#
|
|
2
|
+
# This file was automatically generated.
|
|
3
|
+
#
|
|
4
|
+
require 'onlinepayments/sdk/domain/data_object'
|
|
5
|
+
|
|
6
|
+
module OnlinePayments
|
|
7
|
+
module SDK
|
|
8
|
+
module Domain
|
|
9
|
+
# @attr [Integer] delay_in_minutes
|
|
10
|
+
class PaymentProduct5704AutoCapture < OnlinePayments::SDK::Domain::DataObject
|
|
11
|
+
|
|
12
|
+
attr_accessor :delay_in_minutes
|
|
13
|
+
|
|
14
|
+
# @return (Hash)
|
|
15
|
+
def to_h
|
|
16
|
+
hash = super
|
|
17
|
+
hash['delayInMinutes'] = @delay_in_minutes unless @delay_in_minutes.nil?
|
|
18
|
+
hash
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
def from_hash(hash)
|
|
22
|
+
super
|
|
23
|
+
if hash.has_key? 'delayInMinutes'
|
|
24
|
+
@delay_in_minutes = hash['delayInMinutes']
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
@@ -9,6 +9,7 @@ module OnlinePayments
|
|
|
9
9
|
# @attr [String] merchant_parameters
|
|
10
10
|
# @attr [String] merchant_reference
|
|
11
11
|
# @attr [String] operation_group_reference
|
|
12
|
+
# @attr [String] structured_creditor_reference
|
|
12
13
|
class PaymentReferences < OnlinePayments::SDK::Domain::DataObject
|
|
13
14
|
|
|
14
15
|
attr_accessor :merchant_parameters
|
|
@@ -17,12 +18,15 @@ module OnlinePayments
|
|
|
17
18
|
|
|
18
19
|
attr_accessor :operation_group_reference
|
|
19
20
|
|
|
21
|
+
attr_accessor :structured_creditor_reference
|
|
22
|
+
|
|
20
23
|
# @return (Hash)
|
|
21
24
|
def to_h
|
|
22
25
|
hash = super
|
|
23
26
|
hash['merchantParameters'] = @merchant_parameters unless @merchant_parameters.nil?
|
|
24
27
|
hash['merchantReference'] = @merchant_reference unless @merchant_reference.nil?
|
|
25
28
|
hash['operationGroupReference'] = @operation_group_reference unless @operation_group_reference.nil?
|
|
29
|
+
hash['structuredCreditorReference'] = @structured_creditor_reference unless @structured_creditor_reference.nil?
|
|
26
30
|
hash
|
|
27
31
|
end
|
|
28
32
|
|
|
@@ -37,6 +41,9 @@ module OnlinePayments
|
|
|
37
41
|
if hash.has_key? 'operationGroupReference'
|
|
38
42
|
@operation_group_reference = hash['operationGroupReference']
|
|
39
43
|
end
|
|
44
|
+
if hash.has_key? 'structuredCreditorReference'
|
|
45
|
+
@structured_creditor_reference = hash['structuredCreditorReference']
|
|
46
|
+
end
|
|
40
47
|
end
|
|
41
48
|
end
|
|
42
49
|
end
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
#
|
|
2
|
+
# This file was automatically generated.
|
|
3
|
+
#
|
|
4
|
+
require 'onlinepayments/sdk/domain/acceptance'
|
|
5
|
+
require 'onlinepayments/sdk/domain/card_essentials'
|
|
6
|
+
require 'onlinepayments/sdk/domain/data_object'
|
|
7
|
+
|
|
8
|
+
module OnlinePayments
|
|
9
|
+
module SDK
|
|
10
|
+
module Domain
|
|
11
|
+
# @attr [OnlinePayments::SDK::Domain::Acceptance] acceptance
|
|
12
|
+
# @attr [String] authorisation_code
|
|
13
|
+
# @attr [OnlinePayments::SDK::Domain::CardEssentials] card
|
|
14
|
+
# @attr [Integer] payment_product_id
|
|
15
|
+
class PayoutCardPaymentMethodSpecificOutput < OnlinePayments::SDK::Domain::DataObject
|
|
16
|
+
|
|
17
|
+
attr_accessor :acceptance
|
|
18
|
+
|
|
19
|
+
attr_accessor :authorisation_code
|
|
20
|
+
|
|
21
|
+
attr_accessor :card
|
|
22
|
+
|
|
23
|
+
attr_accessor :payment_product_id
|
|
24
|
+
|
|
25
|
+
# @return (Hash)
|
|
26
|
+
def to_h
|
|
27
|
+
hash = super
|
|
28
|
+
hash['acceptance'] = @acceptance.to_h unless @acceptance.nil?
|
|
29
|
+
hash['authorisationCode'] = @authorisation_code unless @authorisation_code.nil?
|
|
30
|
+
hash['card'] = @card.to_h unless @card.nil?
|
|
31
|
+
hash['paymentProductId'] = @payment_product_id unless @payment_product_id.nil?
|
|
32
|
+
hash
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
def from_hash(hash)
|
|
36
|
+
super
|
|
37
|
+
if hash.has_key? 'acceptance'
|
|
38
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['acceptance']] unless hash['acceptance'].is_a? Hash
|
|
39
|
+
@acceptance = OnlinePayments::SDK::Domain::Acceptance.new_from_hash(hash['acceptance'])
|
|
40
|
+
end
|
|
41
|
+
if hash.has_key? 'authorisationCode'
|
|
42
|
+
@authorisation_code = hash['authorisationCode']
|
|
43
|
+
end
|
|
44
|
+
if hash.has_key? 'card'
|
|
45
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['card']] unless hash['card'].is_a? Hash
|
|
46
|
+
@card = OnlinePayments::SDK::Domain::CardEssentials.new_from_hash(hash['card'])
|
|
47
|
+
end
|
|
48
|
+
if hash.has_key? 'paymentProductId'
|
|
49
|
+
@payment_product_id = hash['paymentProductId']
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
end
|
|
55
|
+
end
|
|
@@ -1,25 +1,41 @@
|
|
|
1
1
|
#
|
|
2
2
|
# This file was automatically generated.
|
|
3
3
|
#
|
|
4
|
+
require 'date'
|
|
5
|
+
|
|
4
6
|
require 'onlinepayments/sdk/domain/amount_of_money'
|
|
5
7
|
require 'onlinepayments/sdk/domain/data_object'
|
|
8
|
+
require 'onlinepayments/sdk/domain/payment_references'
|
|
9
|
+
require 'onlinepayments/sdk/domain/payout_card_payment_method_specific_output'
|
|
6
10
|
|
|
7
11
|
module OnlinePayments
|
|
8
12
|
module SDK
|
|
9
13
|
module Domain
|
|
10
14
|
# @attr [OnlinePayments::SDK::Domain::AmountOfMoney] amount_of_money
|
|
15
|
+
# @attr [OnlinePayments::SDK::Domain::PayoutCardPaymentMethodSpecificOutput] payout_card_payment_method_specific_output
|
|
11
16
|
# @attr [String] payout_reason
|
|
17
|
+
# @attr [OnlinePayments::SDK::Domain::PaymentReferences] references
|
|
18
|
+
# @attr [DateTime] transaction_date
|
|
12
19
|
class PayoutOutput < OnlinePayments::SDK::Domain::DataObject
|
|
13
20
|
|
|
14
21
|
attr_accessor :amount_of_money
|
|
15
22
|
|
|
23
|
+
attr_accessor :payout_card_payment_method_specific_output
|
|
24
|
+
|
|
16
25
|
attr_accessor :payout_reason
|
|
17
26
|
|
|
27
|
+
attr_accessor :references
|
|
28
|
+
|
|
29
|
+
attr_accessor :transaction_date
|
|
30
|
+
|
|
18
31
|
# @return (Hash)
|
|
19
32
|
def to_h
|
|
20
33
|
hash = super
|
|
21
34
|
hash['amountOfMoney'] = @amount_of_money.to_h unless @amount_of_money.nil?
|
|
35
|
+
hash['payoutCardPaymentMethodSpecificOutput'] = @payout_card_payment_method_specific_output.to_h unless @payout_card_payment_method_specific_output.nil?
|
|
22
36
|
hash['payoutReason'] = @payout_reason unless @payout_reason.nil?
|
|
37
|
+
hash['references'] = @references.to_h unless @references.nil?
|
|
38
|
+
hash['transactionDate'] = @transaction_date.iso8601(3) unless @transaction_date.nil?
|
|
23
39
|
hash
|
|
24
40
|
end
|
|
25
41
|
|
|
@@ -29,9 +45,20 @@ module OnlinePayments
|
|
|
29
45
|
raise TypeError, "value '%s' is not a Hash" % [hash['amountOfMoney']] unless hash['amountOfMoney'].is_a? Hash
|
|
30
46
|
@amount_of_money = OnlinePayments::SDK::Domain::AmountOfMoney.new_from_hash(hash['amountOfMoney'])
|
|
31
47
|
end
|
|
48
|
+
if hash.has_key? 'payoutCardPaymentMethodSpecificOutput'
|
|
49
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['payoutCardPaymentMethodSpecificOutput']] unless hash['payoutCardPaymentMethodSpecificOutput'].is_a? Hash
|
|
50
|
+
@payout_card_payment_method_specific_output = OnlinePayments::SDK::Domain::PayoutCardPaymentMethodSpecificOutput.new_from_hash(hash['payoutCardPaymentMethodSpecificOutput'])
|
|
51
|
+
end
|
|
32
52
|
if hash.has_key? 'payoutReason'
|
|
33
53
|
@payout_reason = hash['payoutReason']
|
|
34
54
|
end
|
|
55
|
+
if hash.has_key? 'references'
|
|
56
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['references']] unless hash['references'].is_a? Hash
|
|
57
|
+
@references = OnlinePayments::SDK::Domain::PaymentReferences.new_from_hash(hash['references'])
|
|
58
|
+
end
|
|
59
|
+
if hash.has_key? 'transactionDate'
|
|
60
|
+
@transaction_date = DateTime.parse(hash['transactionDate'])
|
|
61
|
+
end
|
|
35
62
|
end
|
|
36
63
|
end
|
|
37
64
|
end
|
|
@@ -13,9 +13,11 @@ require 'onlinepayments/sdk/domain/redirect_payment_product3306_specific_input'
|
|
|
13
13
|
require 'onlinepayments/sdk/domain/redirect_payment_product3307_specific_input'
|
|
14
14
|
require 'onlinepayments/sdk/domain/redirect_payment_product5001_specific_input'
|
|
15
15
|
require 'onlinepayments/sdk/domain/redirect_payment_product5300_specific_input'
|
|
16
|
+
require 'onlinepayments/sdk/domain/redirect_payment_product5301_specific_input'
|
|
16
17
|
require 'onlinepayments/sdk/domain/redirect_payment_product5402_specific_input'
|
|
17
18
|
require 'onlinepayments/sdk/domain/redirect_payment_product5403_specific_input'
|
|
18
19
|
require 'onlinepayments/sdk/domain/redirect_payment_product5406_specific_input'
|
|
20
|
+
require 'onlinepayments/sdk/domain/redirect_payment_product5407_specific_input'
|
|
19
21
|
require 'onlinepayments/sdk/domain/redirect_payment_product5408_specific_input'
|
|
20
22
|
require 'onlinepayments/sdk/domain/redirect_payment_product5410_specific_input'
|
|
21
23
|
require 'onlinepayments/sdk/domain/redirect_payment_product5412_specific_input'
|
|
@@ -39,9 +41,11 @@ module OnlinePayments
|
|
|
39
41
|
# @attr [OnlinePayments::SDK::Domain::RedirectPaymentProduct3307SpecificInput] payment_product3307_specific_input
|
|
40
42
|
# @attr [OnlinePayments::SDK::Domain::RedirectPaymentProduct5001SpecificInput] payment_product5001_specific_input
|
|
41
43
|
# @attr [OnlinePayments::SDK::Domain::RedirectPaymentProduct5300SpecificInput] payment_product5300_specific_input
|
|
44
|
+
# @attr [OnlinePayments::SDK::Domain::RedirectPaymentProduct5301SpecificInput] payment_product5301_specific_input
|
|
42
45
|
# @attr [OnlinePayments::SDK::Domain::RedirectPaymentProduct5402SpecificInput] payment_product5402_specific_input
|
|
43
46
|
# @attr [OnlinePayments::SDK::Domain::RedirectPaymentProduct5403SpecificInput] payment_product5403_specific_input
|
|
44
47
|
# @attr [OnlinePayments::SDK::Domain::RedirectPaymentProduct5406SpecificInput] payment_product5406_specific_input
|
|
48
|
+
# @attr [OnlinePayments::SDK::Domain::RedirectPaymentProduct5407SpecificInput] payment_product5407_specific_input
|
|
45
49
|
# @attr [OnlinePayments::SDK::Domain::RedirectPaymentProduct5408SpecificInput] payment_product5408_specific_input
|
|
46
50
|
# @attr [OnlinePayments::SDK::Domain::RedirectPaymentProduct5410SpecificInput] payment_product5410_specific_input
|
|
47
51
|
# @attr [OnlinePayments::SDK::Domain::RedirectPaymentProduct5412SpecificInput] payment_product5412_specific_input
|
|
@@ -79,12 +83,16 @@ module OnlinePayments
|
|
|
79
83
|
|
|
80
84
|
attr_accessor :payment_product5300_specific_input
|
|
81
85
|
|
|
86
|
+
attr_accessor :payment_product5301_specific_input
|
|
87
|
+
|
|
82
88
|
attr_accessor :payment_product5402_specific_input
|
|
83
89
|
|
|
84
90
|
attr_accessor :payment_product5403_specific_input
|
|
85
91
|
|
|
86
92
|
attr_accessor :payment_product5406_specific_input
|
|
87
93
|
|
|
94
|
+
attr_accessor :payment_product5407_specific_input
|
|
95
|
+
|
|
88
96
|
attr_accessor :payment_product5408_specific_input
|
|
89
97
|
|
|
90
98
|
attr_accessor :payment_product5410_specific_input
|
|
@@ -122,9 +130,11 @@ module OnlinePayments
|
|
|
122
130
|
hash['paymentProduct3307SpecificInput'] = @payment_product3307_specific_input.to_h unless @payment_product3307_specific_input.nil?
|
|
123
131
|
hash['paymentProduct5001SpecificInput'] = @payment_product5001_specific_input.to_h unless @payment_product5001_specific_input.nil?
|
|
124
132
|
hash['paymentProduct5300SpecificInput'] = @payment_product5300_specific_input.to_h unless @payment_product5300_specific_input.nil?
|
|
133
|
+
hash['paymentProduct5301SpecificInput'] = @payment_product5301_specific_input.to_h unless @payment_product5301_specific_input.nil?
|
|
125
134
|
hash['paymentProduct5402SpecificInput'] = @payment_product5402_specific_input.to_h unless @payment_product5402_specific_input.nil?
|
|
126
135
|
hash['paymentProduct5403SpecificInput'] = @payment_product5403_specific_input.to_h unless @payment_product5403_specific_input.nil?
|
|
127
136
|
hash['paymentProduct5406SpecificInput'] = @payment_product5406_specific_input.to_h unless @payment_product5406_specific_input.nil?
|
|
137
|
+
hash['paymentProduct5407SpecificInput'] = @payment_product5407_specific_input.to_h unless @payment_product5407_specific_input.nil?
|
|
128
138
|
hash['paymentProduct5408SpecificInput'] = @payment_product5408_specific_input.to_h unless @payment_product5408_specific_input.nil?
|
|
129
139
|
hash['paymentProduct5410SpecificInput'] = @payment_product5410_specific_input.to_h unless @payment_product5410_specific_input.nil?
|
|
130
140
|
hash['paymentProduct5412SpecificInput'] = @payment_product5412_specific_input.to_h unless @payment_product5412_specific_input.nil?
|
|
@@ -188,6 +198,10 @@ module OnlinePayments
|
|
|
188
198
|
raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct5300SpecificInput']] unless hash['paymentProduct5300SpecificInput'].is_a? Hash
|
|
189
199
|
@payment_product5300_specific_input = OnlinePayments::SDK::Domain::RedirectPaymentProduct5300SpecificInput.new_from_hash(hash['paymentProduct5300SpecificInput'])
|
|
190
200
|
end
|
|
201
|
+
if hash.has_key? 'paymentProduct5301SpecificInput'
|
|
202
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct5301SpecificInput']] unless hash['paymentProduct5301SpecificInput'].is_a? Hash
|
|
203
|
+
@payment_product5301_specific_input = OnlinePayments::SDK::Domain::RedirectPaymentProduct5301SpecificInput.new_from_hash(hash['paymentProduct5301SpecificInput'])
|
|
204
|
+
end
|
|
191
205
|
if hash.has_key? 'paymentProduct5402SpecificInput'
|
|
192
206
|
raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct5402SpecificInput']] unless hash['paymentProduct5402SpecificInput'].is_a? Hash
|
|
193
207
|
@payment_product5402_specific_input = OnlinePayments::SDK::Domain::RedirectPaymentProduct5402SpecificInput.new_from_hash(hash['paymentProduct5402SpecificInput'])
|
|
@@ -200,6 +214,10 @@ module OnlinePayments
|
|
|
200
214
|
raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct5406SpecificInput']] unless hash['paymentProduct5406SpecificInput'].is_a? Hash
|
|
201
215
|
@payment_product5406_specific_input = OnlinePayments::SDK::Domain::RedirectPaymentProduct5406SpecificInput.new_from_hash(hash['paymentProduct5406SpecificInput'])
|
|
202
216
|
end
|
|
217
|
+
if hash.has_key? 'paymentProduct5407SpecificInput'
|
|
218
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct5407SpecificInput']] unless hash['paymentProduct5407SpecificInput'].is_a? Hash
|
|
219
|
+
@payment_product5407_specific_input = OnlinePayments::SDK::Domain::RedirectPaymentProduct5407SpecificInput.new_from_hash(hash['paymentProduct5407SpecificInput'])
|
|
220
|
+
end
|
|
203
221
|
if hash.has_key? 'paymentProduct5408SpecificInput'
|
|
204
222
|
raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct5408SpecificInput']] unless hash['paymentProduct5408SpecificInput'].is_a? Hash
|
|
205
223
|
@payment_product5408_specific_input = OnlinePayments::SDK::Domain::RedirectPaymentProduct5408SpecificInput.new_from_hash(hash['paymentProduct5408SpecificInput'])
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
#
|
|
2
2
|
# This file was automatically generated.
|
|
3
3
|
#
|
|
4
|
+
require 'date'
|
|
5
|
+
|
|
4
6
|
require 'onlinepayments/sdk/domain/data_object'
|
|
5
7
|
|
|
6
8
|
module OnlinePayments
|
|
@@ -14,6 +16,7 @@ module OnlinePayments
|
|
|
14
16
|
# @attr [String] second_installment_payment_date
|
|
15
17
|
# @attr [Integer] session_duration
|
|
16
18
|
# @attr [String] title
|
|
19
|
+
# @attr [DateTime] transaction_expiration_date_time
|
|
17
20
|
class RedirectPaymentProduct5300SpecificInput < OnlinePayments::SDK::Domain::DataObject
|
|
18
21
|
|
|
19
22
|
attr_accessor :birth_city
|
|
@@ -32,6 +35,8 @@ module OnlinePayments
|
|
|
32
35
|
|
|
33
36
|
attr_accessor :title
|
|
34
37
|
|
|
38
|
+
attr_accessor :transaction_expiration_date_time
|
|
39
|
+
|
|
35
40
|
# @return (Hash)
|
|
36
41
|
def to_h
|
|
37
42
|
hash = super
|
|
@@ -43,6 +48,7 @@ module OnlinePayments
|
|
|
43
48
|
hash['secondInstallmentPaymentDate'] = @second_installment_payment_date unless @second_installment_payment_date.nil?
|
|
44
49
|
hash['sessionDuration'] = @session_duration unless @session_duration.nil?
|
|
45
50
|
hash['title'] = @title unless @title.nil?
|
|
51
|
+
hash['transactionExpirationDateTime'] = @transaction_expiration_date_time.iso8601(3) unless @transaction_expiration_date_time.nil?
|
|
46
52
|
hash
|
|
47
53
|
end
|
|
48
54
|
|
|
@@ -72,6 +78,9 @@ module OnlinePayments
|
|
|
72
78
|
if hash.has_key? 'title'
|
|
73
79
|
@title = hash['title']
|
|
74
80
|
end
|
|
81
|
+
if hash.has_key? 'transactionExpirationDateTime'
|
|
82
|
+
@transaction_expiration_date_time = DateTime.parse(hash['transactionExpirationDateTime'])
|
|
83
|
+
end
|
|
75
84
|
end
|
|
76
85
|
end
|
|
77
86
|
end
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
#
|
|
2
|
+
# This file was automatically generated.
|
|
3
|
+
#
|
|
4
|
+
require 'onlinepayments/sdk/domain/data_object'
|
|
5
|
+
|
|
6
|
+
module OnlinePayments
|
|
7
|
+
module SDK
|
|
8
|
+
module Domain
|
|
9
|
+
# @attr [String] payment_method_type
|
|
10
|
+
class RedirectPaymentProduct5301SpecificInput < OnlinePayments::SDK::Domain::DataObject
|
|
11
|
+
|
|
12
|
+
attr_accessor :payment_method_type
|
|
13
|
+
|
|
14
|
+
# @return (Hash)
|
|
15
|
+
def to_h
|
|
16
|
+
hash = super
|
|
17
|
+
hash['paymentMethodType'] = @payment_method_type unless @payment_method_type.nil?
|
|
18
|
+
hash
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
def from_hash(hash)
|
|
22
|
+
super
|
|
23
|
+
if hash.has_key? 'paymentMethodType'
|
|
24
|
+
@payment_method_type = hash['paymentMethodType']
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
#
|
|
2
|
+
# This file was automatically generated.
|
|
3
|
+
#
|
|
4
|
+
require 'onlinepayments/sdk/domain/data_object'
|
|
5
|
+
require 'onlinepayments/sdk/domain/payment_product5704_auto_capture'
|
|
6
|
+
|
|
7
|
+
module OnlinePayments
|
|
8
|
+
module SDK
|
|
9
|
+
module Domain
|
|
10
|
+
# @attr [OnlinePayments::SDK::Domain::PaymentProduct5704AutoCapture] payment_product5704_auto_capture
|
|
11
|
+
class RedirectPaymentProduct5407SpecificInput < OnlinePayments::SDK::Domain::DataObject
|
|
12
|
+
|
|
13
|
+
attr_accessor :payment_product5704_auto_capture
|
|
14
|
+
|
|
15
|
+
# @return (Hash)
|
|
16
|
+
def to_h
|
|
17
|
+
hash = super
|
|
18
|
+
hash['paymentProduct5704AutoCapture'] = @payment_product5704_auto_capture.to_h unless @payment_product5704_auto_capture.nil?
|
|
19
|
+
hash
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
def from_hash(hash)
|
|
23
|
+
super
|
|
24
|
+
if hash.has_key? 'paymentProduct5704AutoCapture'
|
|
25
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct5704AutoCapture']] unless hash['paymentProduct5704AutoCapture'].is_a? Hash
|
|
26
|
+
@payment_product5704_auto_capture = OnlinePayments::SDK::Domain::PaymentProduct5704AutoCapture.new_from_hash(hash['paymentProduct5704AutoCapture'])
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
@@ -7,6 +7,7 @@ require 'onlinepayments/sdk/domain/payment_product350'
|
|
|
7
7
|
require 'onlinepayments/sdk/domain/payment_product5001'
|
|
8
8
|
require 'onlinepayments/sdk/domain/payment_product5404'
|
|
9
9
|
require 'onlinepayments/sdk/domain/payment_product5407'
|
|
10
|
+
require 'onlinepayments/sdk/domain/payment_product5412'
|
|
10
11
|
require 'onlinepayments/sdk/domain/payment_product840'
|
|
11
12
|
require 'onlinepayments/sdk/domain/pending_authentication'
|
|
12
13
|
|
|
@@ -18,6 +19,7 @@ module OnlinePayments
|
|
|
18
19
|
# @attr [OnlinePayments::SDK::Domain::PaymentProduct5001] payment_product5001
|
|
19
20
|
# @attr [OnlinePayments::SDK::Domain::PaymentProduct5404] payment_product5404
|
|
20
21
|
# @attr [OnlinePayments::SDK::Domain::PaymentProduct5407] payment_product5407
|
|
22
|
+
# @attr [OnlinePayments::SDK::Domain::PaymentProduct5412] payment_product5412
|
|
21
23
|
# @attr [OnlinePayments::SDK::Domain::PaymentProduct840] payment_product840
|
|
22
24
|
# @attr [OnlinePayments::SDK::Domain::PendingAuthentication] pending_authentication
|
|
23
25
|
class ShowFormData < OnlinePayments::SDK::Domain::DataObject
|
|
@@ -32,6 +34,8 @@ module OnlinePayments
|
|
|
32
34
|
|
|
33
35
|
attr_accessor :payment_product5407
|
|
34
36
|
|
|
37
|
+
attr_accessor :payment_product5412
|
|
38
|
+
|
|
35
39
|
attr_accessor :payment_product840
|
|
36
40
|
|
|
37
41
|
attr_accessor :pending_authentication
|
|
@@ -44,6 +48,7 @@ module OnlinePayments
|
|
|
44
48
|
hash['paymentProduct5001'] = @payment_product5001.to_h unless @payment_product5001.nil?
|
|
45
49
|
hash['paymentProduct5404'] = @payment_product5404.to_h unless @payment_product5404.nil?
|
|
46
50
|
hash['paymentProduct5407'] = @payment_product5407.to_h unless @payment_product5407.nil?
|
|
51
|
+
hash['paymentProduct5412'] = @payment_product5412.to_h unless @payment_product5412.nil?
|
|
47
52
|
hash['paymentProduct840'] = @payment_product840.to_h unless @payment_product840.nil?
|
|
48
53
|
hash['pendingAuthentication'] = @pending_authentication.to_h unless @pending_authentication.nil?
|
|
49
54
|
hash
|
|
@@ -71,6 +76,10 @@ module OnlinePayments
|
|
|
71
76
|
raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct5407']] unless hash['paymentProduct5407'].is_a? Hash
|
|
72
77
|
@payment_product5407 = OnlinePayments::SDK::Domain::PaymentProduct5407.new_from_hash(hash['paymentProduct5407'])
|
|
73
78
|
end
|
|
79
|
+
if hash.has_key? 'paymentProduct5412'
|
|
80
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct5412']] unless hash['paymentProduct5412'].is_a? Hash
|
|
81
|
+
@payment_product5412 = OnlinePayments::SDK::Domain::PaymentProduct5412.new_from_hash(hash['paymentProduct5412'])
|
|
82
|
+
end
|
|
74
83
|
if hash.has_key? 'paymentProduct840'
|
|
75
84
|
raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct840']] unless hash['paymentProduct840'].is_a? Hash
|
|
76
85
|
@payment_product840 = OnlinePayments::SDK::Domain::PaymentProduct840.new_from_hash(hash['paymentProduct840'])
|
|
@@ -16,6 +16,7 @@ module OnlinePayments
|
|
|
16
16
|
# @attr [Integer] amount
|
|
17
17
|
# @attr [true/false] is_recurring
|
|
18
18
|
# @attr [Array<String>] hide
|
|
19
|
+
# @attr [String] operation_type
|
|
19
20
|
class GetPaymentProductParams < OnlinePayments::SDK::Communication::ParamRequest
|
|
20
21
|
|
|
21
22
|
attr_accessor :country_code
|
|
@@ -30,6 +31,8 @@ module OnlinePayments
|
|
|
30
31
|
|
|
31
32
|
attr_accessor :hide
|
|
32
33
|
|
|
34
|
+
attr_accessor :operation_type
|
|
35
|
+
|
|
33
36
|
# Adds the parameter _value_ to the _hide_ Array
|
|
34
37
|
#
|
|
35
38
|
# @param value [String]
|
|
@@ -51,6 +54,7 @@ module OnlinePayments
|
|
|
51
54
|
unless @hide.nil?
|
|
52
55
|
@hide.each {|e| result << OnlinePayments::SDK::Communication::RequestParam.new('hide', e)}
|
|
53
56
|
end
|
|
57
|
+
result << OnlinePayments::SDK::Communication::RequestParam.new('operationType', @operation_type) unless @operation_type.nil?
|
|
54
58
|
result
|
|
55
59
|
end
|
|
56
60
|
end
|
|
@@ -16,6 +16,7 @@ module OnlinePayments
|
|
|
16
16
|
# @attr [Integer] amount
|
|
17
17
|
# @attr [true/false] is_recurring
|
|
18
18
|
# @attr [Array<String>] hide
|
|
19
|
+
# @attr [String] operation_type
|
|
19
20
|
class GetPaymentProductsParams < OnlinePayments::SDK::Communication::ParamRequest
|
|
20
21
|
|
|
21
22
|
attr_accessor :country_code
|
|
@@ -30,6 +31,8 @@ module OnlinePayments
|
|
|
30
31
|
|
|
31
32
|
attr_accessor :hide
|
|
32
33
|
|
|
34
|
+
attr_accessor :operation_type
|
|
35
|
+
|
|
33
36
|
# Adds the parameter _value_ to the _hide_ Array
|
|
34
37
|
#
|
|
35
38
|
# @param value [String]
|
|
@@ -51,6 +54,7 @@ module OnlinePayments
|
|
|
51
54
|
unless @hide.nil?
|
|
52
55
|
@hide.each {|e| result << OnlinePayments::SDK::Communication::RequestParam.new('hide', e)}
|
|
53
56
|
end
|
|
57
|
+
result << OnlinePayments::SDK::Communication::RequestParam.new('operationType', @operation_type) unless @operation_type.nil?
|
|
54
58
|
result
|
|
55
59
|
end
|
|
56
60
|
end
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Gem::Specification.new do |spec|
|
|
2
2
|
spec.name = 'onlinepayments-sdk-ruby'
|
|
3
|
-
spec.version = '
|
|
3
|
+
spec.version = '8.0.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}
|
|
@@ -16,14 +16,15 @@ Gem::Specification.new do |spec|
|
|
|
16
16
|
|
|
17
17
|
spec.required_ruby_version = '>= 2.0'
|
|
18
18
|
|
|
19
|
-
spec.add_dependency 'httpclient', '~> 2.
|
|
20
|
-
spec.add_dependency 'concurrent-ruby', '~>1.
|
|
19
|
+
spec.add_dependency 'httpclient', '~> 2.9'
|
|
20
|
+
spec.add_dependency 'concurrent-ruby', '~> 1.3'
|
|
21
21
|
|
|
22
|
+
spec.add_development_dependency 'base64'
|
|
22
23
|
spec.add_development_dependency 'yard', '~> 0.9'
|
|
23
|
-
spec.add_development_dependency 'rspec', '~> 3.
|
|
24
|
-
spec.add_development_dependency 'webmock', '~>
|
|
25
|
-
spec.add_development_dependency 'sinatra', '~> 2
|
|
26
|
-
spec.add_development_dependency 'webrick', '~> 1.
|
|
27
|
-
spec.add_development_dependency 'rake', '~>
|
|
24
|
+
spec.add_development_dependency 'rspec', '~> 3.13'
|
|
25
|
+
spec.add_development_dependency 'webmock', '~> 3.0'
|
|
26
|
+
spec.add_development_dependency 'sinatra', '~> 3.2'
|
|
27
|
+
spec.add_development_dependency 'webrick', '~> 1.8'
|
|
28
|
+
spec.add_development_dependency 'rake', '~> 13.0'
|
|
28
29
|
# spec.metadata['yard.run'] = 'yri' # compiles yard doc on install
|
|
29
30
|
end
|