onlinepayments-sdk-ruby 7.4.1 → 8.1.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_hosted_fields_session_response.rb +39 -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/import_cof_series_request.rb +7 -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_product_session302_specific_input.rb +37 -0
- data/lib/onlinepayments/sdk/domain/payment_product_session302_specific_output.rb +30 -0
- data/lib/onlinepayments/sdk/domain/payment_product_session_request.rb +32 -0
- data/lib/onlinepayments/sdk/domain/payment_product_session_response.rb +32 -0
- data/lib/onlinepayments/sdk/domain/payment_references.rb +7 -0
- data/lib/onlinepayments/sdk/domain/payment_response.rb +9 -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/problem_details_response.rb +58 -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/domain/token_info.rb +51 -0
- data/lib/onlinepayments/sdk/exception_factory.rb +5 -0
- data/lib/onlinepayments/sdk/merchant/hostedfields/hosted_fields_client.rb +36 -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/lib/onlinepayments/sdk/merchant/products/products_client.rb +36 -0
- data/lib/onlinepayments/sdk/problem_details_exception.rb +25 -0
- data/onlinepayments-sdk-ruby.gemspec +1 -1
- metadata +15 -1
|
@@ -12,7 +12,6 @@ require 'onlinepayments/sdk/domain/mobile_payment_method_specific_output'
|
|
|
12
12
|
require 'onlinepayments/sdk/domain/payment_references'
|
|
13
13
|
require 'onlinepayments/sdk/domain/redirect_payment_method_specific_output'
|
|
14
14
|
require 'onlinepayments/sdk/domain/sepa_direct_debit_payment_method_specific_output'
|
|
15
|
-
require 'onlinepayments/sdk/domain/shopping_cart_output'
|
|
16
15
|
require 'onlinepayments/sdk/domain/surcharge_specific_output'
|
|
17
16
|
|
|
18
17
|
module OnlinePayments
|
|
@@ -30,7 +29,6 @@ module OnlinePayments
|
|
|
30
29
|
# @attr [OnlinePayments::SDK::Domain::RedirectPaymentMethodSpecificOutput] redirect_payment_method_specific_output
|
|
31
30
|
# @attr [OnlinePayments::SDK::Domain::PaymentReferences] references
|
|
32
31
|
# @attr [OnlinePayments::SDK::Domain::SepaDirectDebitPaymentMethodSpecificOutput] sepa_direct_debit_payment_method_specific_output
|
|
33
|
-
# @attr [OnlinePayments::SDK::Domain::ShoppingCartOutput] shopping_cart_output
|
|
34
32
|
# @attr [OnlinePayments::SDK::Domain::SurchargeSpecificOutput] surcharge_specific_output
|
|
35
33
|
# @attr [DateTime] transaction_date
|
|
36
34
|
class PaymentOutput < OnlinePayments::SDK::Domain::DataObject
|
|
@@ -60,8 +58,6 @@ module OnlinePayments
|
|
|
60
58
|
|
|
61
59
|
attr_accessor :sepa_direct_debit_payment_method_specific_output
|
|
62
60
|
|
|
63
|
-
attr_accessor :shopping_cart_output
|
|
64
|
-
|
|
65
61
|
attr_accessor :surcharge_specific_output
|
|
66
62
|
|
|
67
63
|
attr_accessor :transaction_date
|
|
@@ -81,7 +77,6 @@ module OnlinePayments
|
|
|
81
77
|
hash['redirectPaymentMethodSpecificOutput'] = @redirect_payment_method_specific_output.to_h unless @redirect_payment_method_specific_output.nil?
|
|
82
78
|
hash['references'] = @references.to_h unless @references.nil?
|
|
83
79
|
hash['sepaDirectDebitPaymentMethodSpecificOutput'] = @sepa_direct_debit_payment_method_specific_output.to_h unless @sepa_direct_debit_payment_method_specific_output.nil?
|
|
84
|
-
hash['shoppingCartOutput'] = @shopping_cart_output.to_h unless @shopping_cart_output.nil?
|
|
85
80
|
hash['surchargeSpecificOutput'] = @surcharge_specific_output.to_h unless @surcharge_specific_output.nil?
|
|
86
81
|
hash['transactionDate'] = @transaction_date.iso8601(3) unless @transaction_date.nil?
|
|
87
82
|
hash
|
|
@@ -134,10 +129,6 @@ module OnlinePayments
|
|
|
134
129
|
raise TypeError, "value '%s' is not a Hash" % [hash['sepaDirectDebitPaymentMethodSpecificOutput']] unless hash['sepaDirectDebitPaymentMethodSpecificOutput'].is_a? Hash
|
|
135
130
|
@sepa_direct_debit_payment_method_specific_output = OnlinePayments::SDK::Domain::SepaDirectDebitPaymentMethodSpecificOutput.new_from_hash(hash['sepaDirectDebitPaymentMethodSpecificOutput'])
|
|
136
131
|
end
|
|
137
|
-
if hash.has_key? 'shoppingCartOutput'
|
|
138
|
-
raise TypeError, "value '%s' is not a Hash" % [hash['shoppingCartOutput']] unless hash['shoppingCartOutput'].is_a? Hash
|
|
139
|
-
@shopping_cart_output = OnlinePayments::SDK::Domain::ShoppingCartOutput.new_from_hash(hash['shoppingCartOutput'])
|
|
140
|
-
end
|
|
141
132
|
if hash.has_key? 'surchargeSpecificOutput'
|
|
142
133
|
raise TypeError, "value '%s' is not a Hash" % [hash['surchargeSpecificOutput']] unless hash['surchargeSpecificOutput'].is_a? Hash
|
|
143
134
|
@surcharge_specific_output = OnlinePayments::SDK::Domain::SurchargeSpecificOutput.new_from_hash(hash['surchargeSpecificOutput'])
|
|
@@ -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
|
|
@@ -0,0 +1,37 @@
|
|
|
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] display_name
|
|
10
|
+
# @attr [String] domain_name
|
|
11
|
+
class PaymentProductSession302SpecificInput < OnlinePayments::SDK::Domain::DataObject
|
|
12
|
+
|
|
13
|
+
attr_accessor :display_name
|
|
14
|
+
|
|
15
|
+
attr_accessor :domain_name
|
|
16
|
+
|
|
17
|
+
# @return (Hash)
|
|
18
|
+
def to_h
|
|
19
|
+
hash = super
|
|
20
|
+
hash['displayName'] = @display_name unless @display_name.nil?
|
|
21
|
+
hash['domainName'] = @domain_name unless @domain_name.nil?
|
|
22
|
+
hash
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
def from_hash(hash)
|
|
26
|
+
super
|
|
27
|
+
if hash.has_key? 'displayName'
|
|
28
|
+
@display_name = hash['displayName']
|
|
29
|
+
end
|
|
30
|
+
if hash.has_key? 'domainName'
|
|
31
|
+
@domain_name = hash['domainName']
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
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] session
|
|
10
|
+
class PaymentProductSession302SpecificOutput < OnlinePayments::SDK::Domain::DataObject
|
|
11
|
+
|
|
12
|
+
attr_accessor :session
|
|
13
|
+
|
|
14
|
+
# @return (Hash)
|
|
15
|
+
def to_h
|
|
16
|
+
hash = super
|
|
17
|
+
hash['session'] = @session unless @session.nil?
|
|
18
|
+
hash
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
def from_hash(hash)
|
|
22
|
+
super
|
|
23
|
+
if hash.has_key? 'session'
|
|
24
|
+
@session = hash['session']
|
|
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_product_session302_specific_input'
|
|
6
|
+
|
|
7
|
+
module OnlinePayments
|
|
8
|
+
module SDK
|
|
9
|
+
module Domain
|
|
10
|
+
# @attr [OnlinePayments::SDK::Domain::PaymentProductSession302SpecificInput] payment_product_session302_specific_input
|
|
11
|
+
class PaymentProductSessionRequest < OnlinePayments::SDK::Domain::DataObject
|
|
12
|
+
|
|
13
|
+
attr_accessor :payment_product_session302_specific_input
|
|
14
|
+
|
|
15
|
+
# @return (Hash)
|
|
16
|
+
def to_h
|
|
17
|
+
hash = super
|
|
18
|
+
hash['paymentProductSession302SpecificInput'] = @payment_product_session302_specific_input.to_h unless @payment_product_session302_specific_input.nil?
|
|
19
|
+
hash
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
def from_hash(hash)
|
|
23
|
+
super
|
|
24
|
+
if hash.has_key? 'paymentProductSession302SpecificInput'
|
|
25
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['paymentProductSession302SpecificInput']] unless hash['paymentProductSession302SpecificInput'].is_a? Hash
|
|
26
|
+
@payment_product_session302_specific_input = OnlinePayments::SDK::Domain::PaymentProductSession302SpecificInput.new_from_hash(hash['paymentProductSession302SpecificInput'])
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
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_product_session302_specific_output'
|
|
6
|
+
|
|
7
|
+
module OnlinePayments
|
|
8
|
+
module SDK
|
|
9
|
+
module Domain
|
|
10
|
+
# @attr [OnlinePayments::SDK::Domain::PaymentProductSession302SpecificOutput] payment_product_session302_specific_output
|
|
11
|
+
class PaymentProductSessionResponse < OnlinePayments::SDK::Domain::DataObject
|
|
12
|
+
|
|
13
|
+
attr_accessor :payment_product_session302_specific_output
|
|
14
|
+
|
|
15
|
+
# @return (Hash)
|
|
16
|
+
def to_h
|
|
17
|
+
hash = super
|
|
18
|
+
hash['paymentProductSession302SpecificOutput'] = @payment_product_session302_specific_output.to_h unless @payment_product_session302_specific_output.nil?
|
|
19
|
+
hash
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
def from_hash(hash)
|
|
23
|
+
super
|
|
24
|
+
if hash.has_key? 'paymentProductSession302SpecificOutput'
|
|
25
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['paymentProductSession302SpecificOutput']] unless hash['paymentProductSession302SpecificOutput'].is_a? Hash
|
|
26
|
+
@payment_product_session302_specific_output = OnlinePayments::SDK::Domain::PaymentProductSession302SpecificOutput.new_from_hash(hash['paymentProductSession302SpecificOutput'])
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
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
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
#
|
|
4
4
|
require 'onlinepayments/sdk/domain/data_object'
|
|
5
5
|
require 'onlinepayments/sdk/domain/hosted_checkout_specific_output'
|
|
6
|
+
require 'onlinepayments/sdk/domain/operation_output'
|
|
6
7
|
require 'onlinepayments/sdk/domain/payment_output'
|
|
7
8
|
require 'onlinepayments/sdk/domain/payment_status_output'
|
|
8
9
|
require 'onlinepayments/sdk/domain/session_details'
|
|
@@ -12,6 +13,7 @@ module OnlinePayments
|
|
|
12
13
|
module Domain
|
|
13
14
|
# @attr [OnlinePayments::SDK::Domain::HostedCheckoutSpecificOutput] hosted_checkout_specific_output
|
|
14
15
|
# @attr [String] id
|
|
16
|
+
# @attr [OnlinePayments::SDK::Domain::OperationOutput] operation_output
|
|
15
17
|
# @attr [OnlinePayments::SDK::Domain::PaymentOutput] payment_output
|
|
16
18
|
# @attr [OnlinePayments::SDK::Domain::SessionDetails] session_details
|
|
17
19
|
# @attr [String] status
|
|
@@ -22,6 +24,8 @@ module OnlinePayments
|
|
|
22
24
|
|
|
23
25
|
attr_accessor :id
|
|
24
26
|
|
|
27
|
+
attr_accessor :operation_output
|
|
28
|
+
|
|
25
29
|
attr_accessor :payment_output
|
|
26
30
|
|
|
27
31
|
attr_accessor :session_details
|
|
@@ -35,6 +39,7 @@ module OnlinePayments
|
|
|
35
39
|
hash = super
|
|
36
40
|
hash['hostedCheckoutSpecificOutput'] = @hosted_checkout_specific_output.to_h unless @hosted_checkout_specific_output.nil?
|
|
37
41
|
hash['id'] = @id unless @id.nil?
|
|
42
|
+
hash['operationOutput'] = @operation_output.to_h unless @operation_output.nil?
|
|
38
43
|
hash['paymentOutput'] = @payment_output.to_h unless @payment_output.nil?
|
|
39
44
|
hash['sessionDetails'] = @session_details.to_h unless @session_details.nil?
|
|
40
45
|
hash['status'] = @status unless @status.nil?
|
|
@@ -51,6 +56,10 @@ module OnlinePayments
|
|
|
51
56
|
if hash.has_key? 'id'
|
|
52
57
|
@id = hash['id']
|
|
53
58
|
end
|
|
59
|
+
if hash.has_key? 'operationOutput'
|
|
60
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['operationOutput']] unless hash['operationOutput'].is_a? Hash
|
|
61
|
+
@operation_output = OnlinePayments::SDK::Domain::OperationOutput.new_from_hash(hash['operationOutput'])
|
|
62
|
+
end
|
|
54
63
|
if hash.has_key? 'paymentOutput'
|
|
55
64
|
raise TypeError, "value '%s' is not a Hash" % [hash['paymentOutput']] unless hash['paymentOutput'].is_a? Hash
|
|
56
65
|
@payment_output = OnlinePayments::SDK::Domain::PaymentOutput.new_from_hash(hash['paymentOutput'])
|
|
@@ -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
|
|
@@ -0,0 +1,58 @@
|
|
|
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] detail
|
|
10
|
+
# @attr [String] instance
|
|
11
|
+
# @attr [Integer] status
|
|
12
|
+
# @attr [String] title
|
|
13
|
+
# @attr [String] type
|
|
14
|
+
class ProblemDetailsResponse < OnlinePayments::SDK::Domain::DataObject
|
|
15
|
+
|
|
16
|
+
attr_accessor :detail
|
|
17
|
+
|
|
18
|
+
attr_accessor :instance
|
|
19
|
+
|
|
20
|
+
attr_accessor :status
|
|
21
|
+
|
|
22
|
+
attr_accessor :title
|
|
23
|
+
|
|
24
|
+
attr_accessor :type
|
|
25
|
+
|
|
26
|
+
# @return (Hash)
|
|
27
|
+
def to_h
|
|
28
|
+
hash = super
|
|
29
|
+
hash['detail'] = @detail unless @detail.nil?
|
|
30
|
+
hash['instance'] = @instance unless @instance.nil?
|
|
31
|
+
hash['status'] = @status unless @status.nil?
|
|
32
|
+
hash['title'] = @title unless @title.nil?
|
|
33
|
+
hash['type'] = @type unless @type.nil?
|
|
34
|
+
hash
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
def from_hash(hash)
|
|
38
|
+
super
|
|
39
|
+
if hash.has_key? 'detail'
|
|
40
|
+
@detail = hash['detail']
|
|
41
|
+
end
|
|
42
|
+
if hash.has_key? 'instance'
|
|
43
|
+
@instance = hash['instance']
|
|
44
|
+
end
|
|
45
|
+
if hash.has_key? 'status'
|
|
46
|
+
@status = hash['status']
|
|
47
|
+
end
|
|
48
|
+
if hash.has_key? 'title'
|
|
49
|
+
@title = hash['title']
|
|
50
|
+
end
|
|
51
|
+
if hash.has_key? 'type'
|
|
52
|
+
@type = hash['type']
|
|
53
|
+
end
|
|
54
|
+
end
|
|
55
|
+
end
|
|
56
|
+
end
|
|
57
|
+
end
|
|
58
|
+
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
|