Module: Worldline::Acquiring::SDK::V1
- Defined in:
- lib/worldline/acquiring/sdk/v1/v1_client.rb,
lib/worldline/acquiring/sdk/v1/api_exception.rb,
lib/worldline/acquiring/sdk/v1/domain/dcc_data.rb,
lib/worldline/acquiring/sdk/v1/domain/rate_data.rb,
lib/worldline/acquiring/sdk/v1/ping/ping_client.rb,
lib/worldline/acquiring/sdk/v1/exception_factory.rb,
lib/worldline/acquiring/sdk/v1/domain/amount_data.rb,
lib/worldline/acquiring/sdk/v1/platform_exception.rb,
lib/worldline/acquiring/sdk/v1/domain/dcc_proposal.rb,
lib/worldline/acquiring/sdk/v1/reference_exception.rb,
lib/worldline/acquiring/sdk/v1/domain/merchant_data.rb,
lib/worldline/acquiring/sdk/v1/domain/sub_operation.rb,
lib/worldline/acquiring/sdk/v1/validation_exception.rb,
lib/worldline/acquiring/sdk/v1/domain/three_d_secure.rb,
lib/worldline/acquiring/sdk/v1/domain/e_commerce_data.rb,
lib/worldline/acquiring/sdk/v1/domain/plain_card_data.rb,
lib/worldline/acquiring/sdk/v1/authorization_exception.rb,
lib/worldline/acquiring/sdk/v1/acquirer/acquirer_client.rb,
lib/worldline/acquiring/sdk/v1/domain/card_data_for_dcc.rb,
lib/worldline/acquiring/sdk/v1/domain/card_on_file_data.rb,
lib/worldline/acquiring/sdk/v1/domain/card_payment_data.rb,
lib/worldline/acquiring/sdk/v1/domain/api_refund_request.rb,
lib/worldline/acquiring/sdk/v1/domain/network_token_data.rb,
lib/worldline/acquiring/sdk/v1/domain/payment_references.rb,
lib/worldline/acquiring/sdk/v1/domain/point_of_sale_data.rb,
lib/worldline/acquiring/sdk/v1/domain/api_action_response.rb,
lib/worldline/acquiring/sdk/v1/domain/api_capture_request.rb,
lib/worldline/acquiring/sdk/v1/domain/api_payment_request.rb,
lib/worldline/acquiring/sdk/v1/domain/api_refund_resource.rb,
lib/worldline/acquiring/sdk/v1/domain/api_refund_response.rb,
lib/worldline/acquiring/sdk/v1/domain/api_payment_resource.rb,
lib/worldline/acquiring/sdk/v1/domain/api_payment_response.rb,
lib/worldline/acquiring/sdk/v1/domain/get_dcc_rate_request.rb,
lib/worldline/acquiring/sdk/v1/domain/api_increment_request.rb,
lib/worldline/acquiring/sdk/v1/domain/api_reversal_response.rb,
lib/worldline/acquiring/sdk/v1/domain/get_dcc_rate_response.rb,
lib/worldline/acquiring/sdk/v1/domain/api_increment_response.rb,
lib/worldline/acquiring/sdk/v1/domain/sub_operation_for_refund.rb,
lib/worldline/acquiring/sdk/v1/domain/transaction_data_for_dcc.rb,
lib/worldline/acquiring/sdk/v1/domain/address_verification_data.rb,
lib/worldline/acquiring/sdk/v1/domain/initial_card_on_file_data.rb,
lib/worldline/acquiring/sdk/v1/acquirer/merchant/merchant_client.rb,
lib/worldline/acquiring/sdk/v1/domain/api_payment_error_response.rb,
lib/worldline/acquiring/sdk/v1/domain/api_payment_refund_request.rb,
lib/worldline/acquiring/sdk/v1/domain/point_of_sale_data_for_dcc.rb,
lib/worldline/acquiring/sdk/v1/domain/api_payment_reversal_request.rb,
lib/worldline/acquiring/sdk/v1/domain/api_references_for_responses.rb,
lib/worldline/acquiring/sdk/v1/domain/card_payment_data_for_refund.rb,
lib/worldline/acquiring/sdk/v1/domain/e_commerce_data_for_response.rb,
lib/worldline/acquiring/sdk/v1/domain/subsequent_card_on_file_data.rb,
lib/worldline/acquiring/sdk/v1/domain/api_action_response_for_refund.rb,
lib/worldline/acquiring/sdk/v1/domain/api_capture_request_for_refund.rb,
lib/worldline/acquiring/sdk/v1/domain/api_technical_reversal_request.rb,
lib/worldline/acquiring/sdk/v1/domain/card_payment_data_for_resource.rb,
lib/worldline/acquiring/sdk/v1/domain/card_payment_data_for_response.rb,
lib/worldline/acquiring/sdk/v1/domain/api_refund_summary_for_response.rb,
lib/worldline/acquiring/sdk/v1/domain/api_technical_reversal_response.rb,
lib/worldline/acquiring/sdk/v1/domain/api_account_verification_request.rb,
lib/worldline/acquiring/sdk/v1/domain/api_payment_summary_for_response.rb,
lib/worldline/acquiring/sdk/v1/acquirer/merchant/refunds/refunds_client.rb,
lib/worldline/acquiring/sdk/v1/domain/api_account_verification_response.rb,
lib/worldline/acquiring/sdk/v1/domain/card_payment_data_for_verification.rb,
lib/worldline/acquiring/sdk/v1/acquirer/merchant/payments/payments_client.rb,
lib/worldline/acquiring/sdk/v1/acquirer/merchant/refunds/get_refund_params.rb,
lib/worldline/acquiring/sdk/v1/domain/e_commerce_data_for_account_verification.rb,
lib/worldline/acquiring/sdk/v1/acquirer/merchant/payments/get_payment_status_params.rb,
lib/worldline/acquiring/sdk/v1/acquirer/merchant/technicalreversals/technical_reversals_client.rb,
lib/worldline/acquiring/sdk/v1/acquirer/merchant/accountverifications/account_verifications_client.rb,
lib/worldline/acquiring/sdk/v1/acquirer/merchant/dynamiccurrencyconversion/dynamic_currency_conversion_client.rb
Defined Under Namespace
Modules: Acquirer, Domain, Ping Classes: ApiException, AuthorizationException, PlatformException, ReferenceException, V1Client, ValidationException
Class Method Summary collapse
Class Method Details
.create_exception(status_code, response_body, error_object, context) ⇒ Object
16 17 18 19 |
# File 'lib/worldline/acquiring/sdk/v1/exception_factory.rb', line 16 def self.create_exception(status_code, response_body, error_object, context) raise ArgumentError.new("unsupported error object type: " + error_object.class.name) unless error_object.is_a?(Worldline::Acquiring::SDK::V1::Domain::ApiPaymentErrorResponse) create_exception_from_response_fields(status_code, response_body, error_object.type, error_object.title, error_object.status, error_object.detail, error_object.instance, context) end |