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
|
@@ -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'])
|
|
@@ -0,0 +1,51 @@
|
|
|
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] expiry_date
|
|
10
|
+
# @attr [true/false] is_temporary
|
|
11
|
+
# @attr [String] masked_pan
|
|
12
|
+
# @attr [String] token_id
|
|
13
|
+
class TokenInfo < OnlinePayments::SDK::Domain::DataObject
|
|
14
|
+
|
|
15
|
+
attr_accessor :expiry_date
|
|
16
|
+
|
|
17
|
+
attr_accessor :is_temporary
|
|
18
|
+
|
|
19
|
+
attr_accessor :masked_pan
|
|
20
|
+
|
|
21
|
+
attr_accessor :token_id
|
|
22
|
+
|
|
23
|
+
# @return (Hash)
|
|
24
|
+
def to_h
|
|
25
|
+
hash = super
|
|
26
|
+
hash['expiryDate'] = @expiry_date unless @expiry_date.nil?
|
|
27
|
+
hash['isTemporary'] = @is_temporary unless @is_temporary.nil?
|
|
28
|
+
hash['maskedPan'] = @masked_pan unless @masked_pan.nil?
|
|
29
|
+
hash['tokenId'] = @token_id unless @token_id.nil?
|
|
30
|
+
hash
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
def from_hash(hash)
|
|
34
|
+
super
|
|
35
|
+
if hash.has_key? 'expiryDate'
|
|
36
|
+
@expiry_date = hash['expiryDate']
|
|
37
|
+
end
|
|
38
|
+
if hash.has_key? 'isTemporary'
|
|
39
|
+
@is_temporary = hash['isTemporary']
|
|
40
|
+
end
|
|
41
|
+
if hash.has_key? 'maskedPan'
|
|
42
|
+
@masked_pan = hash['maskedPan']
|
|
43
|
+
end
|
|
44
|
+
if hash.has_key? 'tokenId'
|
|
45
|
+
@token_id = hash['tokenId']
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
end
|
|
@@ -8,12 +8,14 @@ require_relative 'declined_payout_exception'
|
|
|
8
8
|
require_relative 'declined_refund_exception'
|
|
9
9
|
require_relative 'idempotence_exception'
|
|
10
10
|
require_relative 'platform_exception'
|
|
11
|
+
require_relative 'problem_details_exception'
|
|
11
12
|
require_relative 'reference_exception'
|
|
12
13
|
require_relative 'validation_exception'
|
|
13
14
|
|
|
14
15
|
require 'onlinepayments/sdk/domain/error_response'
|
|
15
16
|
require 'onlinepayments/sdk/domain/payment_error_response'
|
|
16
17
|
require 'onlinepayments/sdk/domain/payout_error_response'
|
|
18
|
+
require 'onlinepayments/sdk/domain/problem_details_response'
|
|
17
19
|
require 'onlinepayments/sdk/domain/refund_error_response'
|
|
18
20
|
|
|
19
21
|
module OnlinePayments
|
|
@@ -31,6 +33,9 @@ module OnlinePayments
|
|
|
31
33
|
return DeclinedRefundException.new(status_code, response_body, error_object) unless error_object.refund_result.nil?
|
|
32
34
|
return create_exception_from_response_fields(status_code, response_body, error_object.error_id, error_object.errors, context)
|
|
33
35
|
end
|
|
36
|
+
if error_object.is_a?(OnlinePayments::SDK::Domain::ProblemDetailsResponse)
|
|
37
|
+
return ProblemDetailsException.new(status_code, response_body, error_object)
|
|
38
|
+
end
|
|
34
39
|
raise ArgumentError.new("unsupported error object type: " + error_object.class.name) unless error_object.is_a?(OnlinePayments::SDK::Domain::ErrorResponse)
|
|
35
40
|
create_exception_from_response_fields(status_code, response_body, error_object.error_id, error_object.errors, context)
|
|
36
41
|
end
|
|
@@ -6,6 +6,8 @@ require 'onlinepayments/sdk/exception_factory'
|
|
|
6
6
|
require 'onlinepayments/sdk/communication/response_exception'
|
|
7
7
|
require 'onlinepayments/sdk/domain/create_hosted_fields_session_response'
|
|
8
8
|
require 'onlinepayments/sdk/domain/error_response'
|
|
9
|
+
require 'onlinepayments/sdk/domain/get_hosted_fields_session_response'
|
|
10
|
+
require 'onlinepayments/sdk/domain/problem_details_response'
|
|
9
11
|
|
|
10
12
|
module OnlinePayments
|
|
11
13
|
module SDK
|
|
@@ -50,6 +52,40 @@ module OnlinePayments
|
|
|
50
52
|
error_object = @communicator.marshaller.unmarshal(e.body, error_type)
|
|
51
53
|
raise OnlinePayments::SDK.create_exception(e.status_code, e.body, error_object, context)
|
|
52
54
|
end
|
|
55
|
+
|
|
56
|
+
# Resource /v2/!{merchantId}/hostedfields/sessions/!{sessionId} - Get hosted fields session
|
|
57
|
+
#
|
|
58
|
+
# @param session_id [String]
|
|
59
|
+
# @param context [OnlinePayments::SDK::CallContext, nil]
|
|
60
|
+
# @return [OnlinePayments::SDK::Domain::GetHostedFieldsSessionResponse]
|
|
61
|
+
# @raise [OnlinePayments::SDK::ProblemDetailsException] if the payment platform returned a problem details error response
|
|
62
|
+
# @raise [OnlinePayments::SDK::IdempotenceException] if an idempotent request caused a conflict (HTTP status code 409)
|
|
63
|
+
# @raise [OnlinePayments::SDK::ValidationException] if the request was not correct and couldn't be processed (HTTP status code 400)
|
|
64
|
+
# @raise [OnlinePayments::SDK::AuthorizationException] if the request was not allowed (HTTP status code 403)
|
|
65
|
+
# @raise [OnlinePayments::SDK::ReferenceException] if an object was attempted to be referenced that doesn't exist or has been removed,
|
|
66
|
+
# or there was a conflict (HTTP status code 404, 409 or 410)
|
|
67
|
+
# @raise [OnlinePayments::SDK::PlatformException] if something went wrong at the payment platform,
|
|
68
|
+
# the payment platform was unable to process a message from a downstream partner/acquirer,
|
|
69
|
+
# or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
|
|
70
|
+
# @raise [OnlinePayments::SDK::ApiException] if the payment platform returned any other error
|
|
71
|
+
def get_hosted_fields_session(session_id, context = nil)
|
|
72
|
+
path_context = {
|
|
73
|
+
'sessionId'.freeze => session_id,
|
|
74
|
+
}
|
|
75
|
+
uri = instantiate_uri('/v2/{merchantId}/hostedfields/sessions/{sessionId}', path_context)
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
@communicator.get(
|
|
79
|
+
uri,
|
|
80
|
+
client_headers,
|
|
81
|
+
nil,
|
|
82
|
+
OnlinePayments::SDK::Domain::GetHostedFieldsSessionResponse,
|
|
83
|
+
context)
|
|
84
|
+
rescue OnlinePayments::SDK::Communication::ResponseException => e
|
|
85
|
+
error_type = OnlinePayments::SDK::Domain::ProblemDetailsResponse
|
|
86
|
+
error_object = @communicator.marshaller.unmarshal(e.body, error_type)
|
|
87
|
+
raise OnlinePayments::SDK.create_exception(e.status_code, e.body, error_object, context)
|
|
88
|
+
end
|
|
53
89
|
end
|
|
54
90
|
end
|
|
55
91
|
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 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
|
|
@@ -8,6 +8,7 @@ require 'onlinepayments/sdk/domain/error_response'
|
|
|
8
8
|
require 'onlinepayments/sdk/domain/get_payment_products_response'
|
|
9
9
|
require 'onlinepayments/sdk/domain/payment_product'
|
|
10
10
|
require 'onlinepayments/sdk/domain/payment_product_networks_response'
|
|
11
|
+
require 'onlinepayments/sdk/domain/payment_product_session_response'
|
|
11
12
|
require 'onlinepayments/sdk/domain/product_directory'
|
|
12
13
|
|
|
13
14
|
module OnlinePayments
|
|
@@ -154,6 +155,41 @@ module OnlinePayments
|
|
|
154
155
|
error_object = @communicator.marshaller.unmarshal(e.body, error_type)
|
|
155
156
|
raise OnlinePayments::SDK.create_exception(e.status_code, e.body, error_object, context)
|
|
156
157
|
end
|
|
158
|
+
|
|
159
|
+
# Resource /v2/!{merchantId}/products/!{paymentProductId}/sessions - Create a session for a payment product
|
|
160
|
+
#
|
|
161
|
+
# @param payment_product_id [Integer]
|
|
162
|
+
# @param body [OnlinePayments::SDK::Domain::PaymentProductSessionRequest]
|
|
163
|
+
# @param context [OnlinePayments::SDK::CallContext, nil]
|
|
164
|
+
# @return [OnlinePayments::SDK::Domain::PaymentProductSessionResponse]
|
|
165
|
+
# @raise [OnlinePayments::SDK::IdempotenceException] if an idempotent request caused a conflict (HTTP status code 409)
|
|
166
|
+
# @raise [OnlinePayments::SDK::ValidationException] if the request was not correct and couldn't be processed (HTTP status code 400)
|
|
167
|
+
# @raise [OnlinePayments::SDK::AuthorizationException] if the request was not allowed (HTTP status code 403)
|
|
168
|
+
# @raise [OnlinePayments::SDK::ReferenceException] if an object was attempted to be referenced that doesn't exist or has been removed,
|
|
169
|
+
# or there was a conflict (HTTP status code 404, 409 or 410)
|
|
170
|
+
# @raise [OnlinePayments::SDK::PlatformException] if something went wrong at the payment platform,
|
|
171
|
+
# the payment platform was unable to process a message from a downstream partner/acquirer,
|
|
172
|
+
# or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
|
|
173
|
+
# @raise [OnlinePayments::SDK::ApiException] if the payment platform returned any other error
|
|
174
|
+
def create_payment_product_session(payment_product_id, body, context = nil)
|
|
175
|
+
path_context = {
|
|
176
|
+
'paymentProductId'.freeze => payment_product_id.to_s,
|
|
177
|
+
}
|
|
178
|
+
uri = instantiate_uri('/v2/{merchantId}/products/{paymentProductId}/sessions', path_context)
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
@communicator.post(
|
|
182
|
+
uri,
|
|
183
|
+
client_headers,
|
|
184
|
+
nil,
|
|
185
|
+
body,
|
|
186
|
+
OnlinePayments::SDK::Domain::PaymentProductSessionResponse,
|
|
187
|
+
context)
|
|
188
|
+
rescue OnlinePayments::SDK::Communication::ResponseException => e
|
|
189
|
+
error_type = OnlinePayments::SDK::Domain::ErrorResponse
|
|
190
|
+
error_object = @communicator.marshaller.unmarshal(e.body, error_type)
|
|
191
|
+
raise OnlinePayments::SDK.create_exception(e.status_code, e.body, error_object, context)
|
|
192
|
+
end
|
|
157
193
|
end
|
|
158
194
|
end
|
|
159
195
|
end
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
#
|
|
2
|
+
# This file was automatically generated.
|
|
3
|
+
#
|
|
4
|
+
require_relative 'api_exception'
|
|
5
|
+
|
|
6
|
+
module OnlinePayments
|
|
7
|
+
module SDK
|
|
8
|
+
# Represents an error response from the payment platform containing problem details.
|
|
9
|
+
class ProblemDetailsException < ApiException
|
|
10
|
+
|
|
11
|
+
# Create a new ProblemDetailsException.
|
|
12
|
+
# @see ApiException#initialize
|
|
13
|
+
def initialize(status_code, response_body, response)
|
|
14
|
+
super(status_code, response_body, nil, nil, 'the payment platform returned a problem details error response')
|
|
15
|
+
@response = response
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
# The problem details response.
|
|
19
|
+
# @return [OnlinePayments::SDK::Domain::ProblemDetailsResponse, nil]
|
|
20
|
+
def response
|
|
21
|
+
@response
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
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.1.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,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: onlinepayments-sdk-ruby
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 8.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Worldline Direct support team
|
|
@@ -195,6 +195,7 @@ files:
|
|
|
195
195
|
- lib/onlinepayments/sdk/domain/api_error.rb
|
|
196
196
|
- lib/onlinepayments/sdk/domain/apple_pay_line_item.rb
|
|
197
197
|
- lib/onlinepayments/sdk/domain/apple_pay_recurring_payment_request.rb
|
|
198
|
+
- lib/onlinepayments/sdk/domain/auto_capture.rb
|
|
198
199
|
- lib/onlinepayments/sdk/domain/bank_account_iban.rb
|
|
199
200
|
- lib/onlinepayments/sdk/domain/batch_metadata.rb
|
|
200
201
|
- lib/onlinepayments/sdk/domain/browser_data.rb
|
|
@@ -286,6 +287,7 @@ files:
|
|
|
286
287
|
- lib/onlinepayments/sdk/domain/g_pay_three_d_secure.rb
|
|
287
288
|
- lib/onlinepayments/sdk/domain/get_batch_status_response.rb
|
|
288
289
|
- lib/onlinepayments/sdk/domain/get_hosted_checkout_response.rb
|
|
290
|
+
- lib/onlinepayments/sdk/domain/get_hosted_fields_session_response.rb
|
|
289
291
|
- lib/onlinepayments/sdk/domain/get_hosted_tokenization_response.rb
|
|
290
292
|
- lib/onlinepayments/sdk/domain/get_iin_details_request.rb
|
|
291
293
|
- lib/onlinepayments/sdk/domain/get_iin_details_response.rb
|
|
@@ -376,7 +378,9 @@ files:
|
|
|
376
378
|
- lib/onlinepayments/sdk/domain/payment_product5402_specific_output.rb
|
|
377
379
|
- lib/onlinepayments/sdk/domain/payment_product5404.rb
|
|
378
380
|
- lib/onlinepayments/sdk/domain/payment_product5407.rb
|
|
381
|
+
- lib/onlinepayments/sdk/domain/payment_product5412.rb
|
|
379
382
|
- lib/onlinepayments/sdk/domain/payment_product5500_specific_output.rb
|
|
383
|
+
- lib/onlinepayments/sdk/domain/payment_product5704_auto_capture.rb
|
|
380
384
|
- lib/onlinepayments/sdk/domain/payment_product771_specific_output.rb
|
|
381
385
|
- lib/onlinepayments/sdk/domain/payment_product840.rb
|
|
382
386
|
- lib/onlinepayments/sdk/domain/payment_product840_customer_account.rb
|
|
@@ -395,9 +399,14 @@ files:
|
|
|
395
399
|
- lib/onlinepayments/sdk/domain/payment_product_filters_hosted_tokenization.rb
|
|
396
400
|
- lib/onlinepayments/sdk/domain/payment_product_group.rb
|
|
397
401
|
- lib/onlinepayments/sdk/domain/payment_product_networks_response.rb
|
|
402
|
+
- lib/onlinepayments/sdk/domain/payment_product_session302_specific_input.rb
|
|
403
|
+
- lib/onlinepayments/sdk/domain/payment_product_session302_specific_output.rb
|
|
404
|
+
- lib/onlinepayments/sdk/domain/payment_product_session_request.rb
|
|
405
|
+
- lib/onlinepayments/sdk/domain/payment_product_session_response.rb
|
|
398
406
|
- lib/onlinepayments/sdk/domain/payment_references.rb
|
|
399
407
|
- lib/onlinepayments/sdk/domain/payment_response.rb
|
|
400
408
|
- lib/onlinepayments/sdk/domain/payment_status_output.rb
|
|
409
|
+
- lib/onlinepayments/sdk/domain/payout_card_payment_method_specific_output.rb
|
|
401
410
|
- lib/onlinepayments/sdk/domain/payout_error_response.rb
|
|
402
411
|
- lib/onlinepayments/sdk/domain/payout_output.rb
|
|
403
412
|
- lib/onlinepayments/sdk/domain/payout_response.rb
|
|
@@ -408,6 +417,7 @@ files:
|
|
|
408
417
|
- lib/onlinepayments/sdk/domain/personal_information_token.rb
|
|
409
418
|
- lib/onlinepayments/sdk/domain/personal_name.rb
|
|
410
419
|
- lib/onlinepayments/sdk/domain/personal_name_token.rb
|
|
420
|
+
- lib/onlinepayments/sdk/domain/problem_details_response.rb
|
|
411
421
|
- lib/onlinepayments/sdk/domain/product302_recurring.rb
|
|
412
422
|
- lib/onlinepayments/sdk/domain/product320_recurring.rb
|
|
413
423
|
- lib/onlinepayments/sdk/domain/product_directory.rb
|
|
@@ -430,9 +440,11 @@ files:
|
|
|
430
440
|
- lib/onlinepayments/sdk/domain/redirect_payment_product3307_specific_input.rb
|
|
431
441
|
- lib/onlinepayments/sdk/domain/redirect_payment_product5001_specific_input.rb
|
|
432
442
|
- lib/onlinepayments/sdk/domain/redirect_payment_product5300_specific_input.rb
|
|
443
|
+
- lib/onlinepayments/sdk/domain/redirect_payment_product5301_specific_input.rb
|
|
433
444
|
- lib/onlinepayments/sdk/domain/redirect_payment_product5402_specific_input.rb
|
|
434
445
|
- lib/onlinepayments/sdk/domain/redirect_payment_product5403_specific_input.rb
|
|
435
446
|
- lib/onlinepayments/sdk/domain/redirect_payment_product5406_specific_input.rb
|
|
447
|
+
- lib/onlinepayments/sdk/domain/redirect_payment_product5407_specific_input.rb
|
|
436
448
|
- lib/onlinepayments/sdk/domain/redirect_payment_product5408_specific_input.rb
|
|
437
449
|
- lib/onlinepayments/sdk/domain/redirect_payment_product5410_specific_input.rb
|
|
438
450
|
- lib/onlinepayments/sdk/domain/redirect_payment_product5412_specific_input.rb
|
|
@@ -499,6 +511,7 @@ files:
|
|
|
499
511
|
- lib/onlinepayments/sdk/domain/token_card_specific_input.rb
|
|
500
512
|
- lib/onlinepayments/sdk/domain/token_data.rb
|
|
501
513
|
- lib/onlinepayments/sdk/domain/token_e_wallet.rb
|
|
514
|
+
- lib/onlinepayments/sdk/domain/token_info.rb
|
|
502
515
|
- lib/onlinepayments/sdk/domain/token_response.rb
|
|
503
516
|
- lib/onlinepayments/sdk/domain/transaction.rb
|
|
504
517
|
- lib/onlinepayments/sdk/domain/uploadable_file.rb
|
|
@@ -580,6 +593,7 @@ files:
|
|
|
580
593
|
- lib/onlinepayments/sdk/merchant/webhooks.rb
|
|
581
594
|
- lib/onlinepayments/sdk/merchant/webhooks/webhooks_client.rb
|
|
582
595
|
- lib/onlinepayments/sdk/platform_exception.rb
|
|
596
|
+
- lib/onlinepayments/sdk/problem_details_exception.rb
|
|
583
597
|
- lib/onlinepayments/sdk/proxy_configuration.rb
|
|
584
598
|
- lib/onlinepayments/sdk/reference_exception.rb
|
|
585
599
|
- lib/onlinepayments/sdk/validation_exception.rb
|