connect-sdk-ruby 2.47.1 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +8 -8
- data/connect-sdk-ruby.gemspec +6 -6
- data/examples/example_configuration.yml +7 -0
- data/examples/v1/merchant/captures/create_refund_capture_example.rb +53 -0
- data/examples/v1/merchant/captures/get_capture_example.rb +22 -0
- data/examples/v1/merchant/disputes/cancel_dispute_example.rb +22 -0
- data/examples/v1/merchant/disputes/get_dispute_example.rb +22 -0
- data/examples/v1/merchant/disputes/submit_dispute_example.rb +22 -0
- data/examples/v1/merchant/disputes/upload_dispute_file_example.rb +31 -0
- data/examples/v1/merchant/files/get_file_example.rb +28 -0
- data/examples/v1/merchant/hostedcheckouts/create_hosted_checkout_example.rb +52 -0
- data/examples/v1/merchant/hostedcheckouts/delete_hosted_checkout_example.rb +22 -0
- data/examples/v1/merchant/hostedcheckouts/get_hosted_checkout_example.rb +22 -0
- data/examples/v1/merchant/hostedmandatemanagements/create_hosted_mandate_management_example.rb +40 -0
- data/examples/v1/merchant/hostedmandatemanagements/get_hosted_mandate_management_example.rb +22 -0
- data/examples/v1/merchant/installments/get_installments_info_example.rb +35 -0
- data/examples/v1/merchant/mandates/block_mandate_example.rb +22 -0
- data/examples/v1/merchant/mandates/create_mandate_example.rb +64 -0
- data/examples/v1/merchant/mandates/create_mandate_with_reference_example.rb +64 -0
- data/examples/v1/merchant/mandates/get_mandate_example.rb +22 -0
- data/examples/v1/merchant/mandates/revoke_mandate_example.rb +22 -0
- data/examples/v1/merchant/mandates/unblock_mandate_example.rb +22 -0
- data/examples/v1/merchant/payments/approve_payment_example.rb +42 -0
- data/examples/v1/merchant/payments/cancel_approval_payment_example.rb +22 -0
- data/examples/v1/merchant/payments/cancel_payment_example.rb +22 -0
- data/examples/v1/merchant/payments/capture_payment_example.rb +27 -0
- data/examples/v1/merchant/payments/complete_payment_example.rb +37 -0
- data/examples/v1/merchant/payments/create_payment_dispute_example.rb +36 -0
- data/examples/v1/merchant/payments/create_payment_example.rb +222 -0
- data/examples/v1/merchant/payments/find_payments_example.rb +31 -0
- data/examples/v1/merchant/payments/get_payment_captures_example.rb +22 -0
- data/examples/v1/merchant/payments/get_payment_device_fingerprint_details_example.rb +22 -0
- data/examples/v1/merchant/payments/get_payment_disputes_example.rb +22 -0
- data/examples/v1/merchant/payments/get_payment_example.rb +22 -0
- data/examples/v1/merchant/payments/get_refunds_example.rb +22 -0
- data/examples/v1/merchant/payments/get_third_party_status_example.rb +22 -0
- data/examples/v1/merchant/payments/process_challenged_payment_example.rb +22 -0
- data/examples/v1/merchant/payments/refund_payment_example.rb +83 -0
- data/examples/v1/merchant/payments/tokenize_payment_example.rb +27 -0
- data/examples/v1/merchant/payouts/approve_payout_example.rb +27 -0
- data/examples/v1/merchant/payouts/cancel_approval_payout_example.rb +22 -0
- data/examples/v1/merchant/payouts/cancel_payout_example.rb +22 -0
- data/examples/v1/merchant/payouts/create_payout_example.rb +102 -0
- data/examples/v1/merchant/payouts/find_payouts_example.rb +30 -0
- data/examples/v1/merchant/payouts/get_payout_example.rb +22 -0
- data/examples/v1/merchant/productgroups/get_device_fingerprint_for_groups_example.rb +26 -0
- data/examples/v1/merchant/productgroups/get_payment_product_group_example.rb +33 -0
- data/examples/v1/merchant/productgroups/get_payment_product_groups_example.rb +33 -0
- data/examples/v1/merchant/products/create_payment_product_session_example.rb +33 -0
- data/examples/v1/merchant/products/get_customer_details_example.rb +37 -0
- data/examples/v1/merchant/products/get_device_fingerprint_example.rb +26 -0
- data/examples/v1/merchant/products/get_directory_example.rb +28 -0
- data/examples/v1/merchant/products/get_networks_example.rb +30 -0
- data/examples/v1/merchant/products/get_payment_product_example.rb +34 -0
- data/examples/v1/merchant/products/get_payment_products_example.rb +33 -0
- data/examples/v1/merchant/refunds/approve_refund_example.rb +27 -0
- data/examples/v1/merchant/refunds/cancel_approval_refund_example.rb +22 -0
- data/examples/v1/merchant/refunds/cancel_refund_example.rb +22 -0
- data/examples/v1/merchant/refunds/find_refunds_example.rb +31 -0
- data/examples/v1/merchant/refunds/get_refund_example.rb +22 -0
- data/examples/v1/merchant/riskassessments/risk_assessment_bank_account_example.rb +53 -0
- data/examples/v1/merchant/riskassessments/risk_assessment_cards_example.rb +113 -0
- data/examples/v1/merchant/services/convert_amount_example.rb +29 -0
- data/examples/v1/merchant/services/convert_bank_account_example.rb +33 -0
- data/examples/v1/merchant/services/get_privacy_policy_example.rb +28 -0
- data/examples/v1/merchant/services/iin_details_example.rb +27 -0
- data/examples/v1/merchant/services/test_connection_example.rb +22 -0
- data/examples/v1/merchant/sessions/create_session_example.rb +34 -0
- data/examples/v1/merchant/tokens/approve_sepa_direct_debit_token_example.rb +29 -0
- data/examples/v1/merchant/tokens/create_token_example.rb +81 -0
- data/examples/v1/merchant/tokens/delete_token_example.rb +27 -0
- data/examples/v1/merchant/tokens/get_token_example.rb +22 -0
- data/examples/v1/merchant/tokens/update_token_example.rb +75 -0
- data/lib/worldline/connect/sdk/api_resource.rb +69 -0
- data/lib/worldline/connect/sdk/authentication/authenticator.rb +21 -0
- data/lib/worldline/connect/sdk/authentication/authorization_type.rb +17 -0
- data/lib/worldline/connect/sdk/authentication/v1hmac_authenticator.rb +102 -0
- data/lib/worldline/connect/sdk/authentication.rb +1 -0
- data/lib/worldline/connect/sdk/call_context.rb +29 -0
- data/lib/worldline/connect/sdk/client.rb +97 -0
- data/lib/worldline/connect/sdk/communication/communication_exception.rb +21 -0
- data/lib/worldline/connect/sdk/communication/connection.rb +50 -0
- data/lib/worldline/connect/sdk/communication/default_connection.rb +429 -0
- data/lib/worldline/connect/sdk/communication/metadata_provider.rb +162 -0
- data/lib/worldline/connect/sdk/communication/multipart_form_data_object.rb +54 -0
- data/lib/worldline/connect/sdk/communication/multipart_form_data_request.rb +15 -0
- data/lib/worldline/connect/sdk/communication/not_found_exception.rb +21 -0
- data/lib/worldline/connect/sdk/communication/param_request.rb +16 -0
- data/lib/worldline/connect/sdk/communication/pooled_connection.rb +28 -0
- data/lib/worldline/connect/sdk/communication/request_header.rb +66 -0
- data/lib/worldline/connect/sdk/communication/request_param.rb +30 -0
- data/lib/worldline/connect/sdk/communication/response_exception.rb +58 -0
- data/lib/worldline/connect/sdk/communication/response_header.rb +80 -0
- data/lib/worldline/connect/sdk/communication.rb +1 -0
- data/lib/worldline/connect/sdk/communicator.rb +510 -0
- data/lib/worldline/connect/sdk/communicator_configuration.rb +190 -0
- data/lib/worldline/connect/sdk/domain/data_object.rb +34 -0
- data/lib/worldline/connect/sdk/domain/shopping_cart_extension.rb +62 -0
- data/lib/worldline/connect/sdk/domain/uploadable_file.rb +35 -0
- data/lib/worldline/connect/sdk/factory.rb +183 -0
- data/lib/worldline/connect/sdk/json/default_marshaller.rb +36 -0
- data/lib/worldline/connect/sdk/json/marshaller.rb +29 -0
- data/lib/worldline/connect/sdk/json/marshaller_syntax_exception.rb +11 -0
- data/lib/worldline/connect/sdk/json.rb +1 -0
- data/lib/worldline/connect/sdk/logging/communicator_logger.rb +26 -0
- data/lib/worldline/connect/sdk/logging/log_message_builder.rb +91 -0
- data/lib/worldline/connect/sdk/logging/logging_capable.rb +19 -0
- data/lib/worldline/connect/sdk/logging/obfuscation/body_obfuscator.rb +102 -0
- data/lib/worldline/connect/sdk/logging/obfuscation/header_obfuscator.rb +56 -0
- data/lib/worldline/connect/sdk/logging/obfuscation/obfuscation_capable.rb +23 -0
- data/lib/worldline/connect/sdk/logging/obfuscation/obfuscation_rule.rb +49 -0
- data/lib/worldline/connect/sdk/logging/request_log_message_builder.rb +52 -0
- data/lib/worldline/connect/sdk/logging/response_log_message_builder.rb +43 -0
- data/lib/worldline/connect/sdk/logging/ruby_communicator_logger.rb +63 -0
- data/lib/worldline/connect/sdk/logging/stdout_communicator_logger.rb +33 -0
- data/lib/worldline/connect/sdk/proxy_configuration.rb +76 -0
- data/lib/worldline/connect/sdk/v1/api_exception.rb +61 -0
- data/lib/worldline/connect/sdk/v1/authorization_exception.rb +24 -0
- data/lib/worldline/connect/sdk/v1/declined_payment_exception.rb +53 -0
- data/lib/worldline/connect/sdk/v1/declined_payout_exception.rb +53 -0
- data/lib/worldline/connect/sdk/v1/declined_refund_exception.rb +53 -0
- data/lib/worldline/connect/sdk/v1/declined_transaction_exception.rb +27 -0
- data/lib/worldline/connect/sdk/v1/domain/abstract_bank_transfer_payment_method_specific_input.rb +35 -0
- data/lib/worldline/connect/sdk/v1/domain/abstract_card_payment_method_specific_input.rb +141 -0
- data/lib/worldline/connect/sdk/v1/domain/abstract_cash_payment_method_specific_input.rb +18 -0
- data/lib/worldline/connect/sdk/v1/domain/abstract_e_invoice_payment_method_specific_input.rb +35 -0
- data/lib/worldline/connect/sdk/v1/domain/abstract_indicator.rb +42 -0
- data/lib/worldline/connect/sdk/v1/domain/abstract_order_status.rb +35 -0
- data/lib/worldline/connect/sdk/v1/domain/abstract_payment_method_specific_input.rb +35 -0
- data/lib/worldline/connect/sdk/v1/domain/abstract_payment_method_specific_output.rb +35 -0
- data/lib/worldline/connect/sdk/v1/domain/abstract_payout_method_specific_input.rb +18 -0
- data/lib/worldline/connect/sdk/v1/domain/abstract_redirect_payment_method_specific_input.rb +63 -0
- data/lib/worldline/connect/sdk/v1/domain/abstract_redirect_payment_product4101_specific_input.rb +18 -0
- data/lib/worldline/connect/sdk/v1/domain/abstract_redirect_payment_product840_specific_input.rb +35 -0
- data/lib/worldline/connect/sdk/v1/domain/abstract_sepa_direct_debit_payment_method_specific_input.rb +18 -0
- data/lib/worldline/connect/sdk/v1/domain/abstract_sepa_direct_debit_payment_product771_specific_input.rb +37 -0
- data/lib/worldline/connect/sdk/v1/domain/abstract_three_d_secure.rb +97 -0
- data/lib/worldline/connect/sdk/v1/domain/abstract_token.rb +35 -0
- data/lib/worldline/connect/sdk/v1/domain/account_funding_recipient.rb +74 -0
- data/lib/worldline/connect/sdk/v1/domain/account_on_file.rb +63 -0
- data/lib/worldline/connect/sdk/v1/domain/account_on_file_attribute.rb +42 -0
- data/lib/worldline/connect/sdk/v1/domain/account_on_file_display_hints.rb +47 -0
- data/lib/worldline/connect/sdk/v1/domain/additional_order_input.rb +111 -0
- data/lib/worldline/connect/sdk/v1/domain/additional_order_input_airline_data.rb +46 -0
- data/lib/worldline/connect/sdk/v1/domain/address.rb +84 -0
- data/lib/worldline/connect/sdk/v1/domain/address_personal.rb +37 -0
- data/lib/worldline/connect/sdk/v1/domain/afr_name.rb +42 -0
- data/lib/worldline/connect/sdk/v1/domain/airline_data.rb +215 -0
- data/lib/worldline/connect/sdk/v1/domain/airline_flight_leg.rb +170 -0
- data/lib/worldline/connect/sdk/v1/domain/airline_passenger.rb +56 -0
- data/lib/worldline/connect/sdk/v1/domain/amount_breakdown.rb +42 -0
- data/lib/worldline/connect/sdk/v1/domain/amount_of_money.rb +42 -0
- data/lib/worldline/connect/sdk/v1/domain/api_error.rb +77 -0
- data/lib/worldline/connect/sdk/v1/domain/approve_payment_card_payment_method_specific_output.rb +35 -0
- data/lib/worldline/connect/sdk/v1/domain/approve_payment_direct_debit_payment_method_specific_input.rb +18 -0
- data/lib/worldline/connect/sdk/v1/domain/approve_payment_mobile_payment_method_specific_output.rb +35 -0
- data/lib/worldline/connect/sdk/v1/domain/approve_payment_non_sepa_direct_debit_payment_method_specific_input.rb +18 -0
- data/lib/worldline/connect/sdk/v1/domain/approve_payment_payment_method_specific_input.rb +42 -0
- data/lib/worldline/connect/sdk/v1/domain/approve_payment_request.rb +62 -0
- data/lib/worldline/connect/sdk/v1/domain/approve_payment_sepa_direct_debit_payment_method_specific_input.rb +18 -0
- data/lib/worldline/connect/sdk/v1/domain/approve_payout_request.rb +35 -0
- data/lib/worldline/connect/sdk/v1/domain/approve_refund_request.rb +35 -0
- data/lib/worldline/connect/sdk/v1/domain/approve_token_request.rb +18 -0
- data/lib/worldline/connect/sdk/v1/domain/authentication_indicator.rb +18 -0
- data/lib/worldline/connect/sdk/v1/domain/bank_account.rb +35 -0
- data/lib/worldline/connect/sdk/v1/domain/bank_account_bban.rb +70 -0
- data/lib/worldline/connect/sdk/v1/domain/bank_account_bban_refund.rb +49 -0
- data/lib/worldline/connect/sdk/v1/domain/bank_account_iban.rb +35 -0
- data/lib/worldline/connect/sdk/v1/domain/bank_data.rb +56 -0
- data/lib/worldline/connect/sdk/v1/domain/bank_details.rb +46 -0
- data/lib/worldline/connect/sdk/v1/domain/bank_details_request.rb +18 -0
- data/lib/worldline/connect/sdk/v1/domain/bank_details_response.rb +64 -0
- data/lib/worldline/connect/sdk/v1/domain/bank_refund_method_specific_input.rb +53 -0
- data/lib/worldline/connect/sdk/v1/domain/bank_transfer_payment_method_specific_input.rb +18 -0
- data/lib/worldline/connect/sdk/v1/domain/bank_transfer_payment_method_specific_input_base.rb +18 -0
- data/lib/worldline/connect/sdk/v1/domain/bank_transfer_payment_method_specific_output.rb +37 -0
- data/lib/worldline/connect/sdk/v1/domain/bank_transfer_payout_method_specific_input.rb +78 -0
- data/lib/worldline/connect/sdk/v1/domain/boleto_bancario_requiredness_validator.rb +35 -0
- data/lib/worldline/connect/sdk/v1/domain/browser_data.rb +77 -0
- data/lib/worldline/connect/sdk/v1/domain/cancel_approval_payment_response.rb +37 -0
- data/lib/worldline/connect/sdk/v1/domain/cancel_payment_card_payment_method_specific_output.rb +35 -0
- data/lib/worldline/connect/sdk/v1/domain/cancel_payment_mobile_payment_method_specific_output.rb +35 -0
- data/lib/worldline/connect/sdk/v1/domain/cancel_payment_response.rb +55 -0
- data/lib/worldline/connect/sdk/v1/domain/capture.rb +53 -0
- data/lib/worldline/connect/sdk/v1/domain/capture_output.rb +137 -0
- data/lib/worldline/connect/sdk/v1/domain/capture_payment_request.rb +42 -0
- data/lib/worldline/connect/sdk/v1/domain/capture_response.rb +18 -0
- data/lib/worldline/connect/sdk/v1/domain/capture_status_output.rb +54 -0
- data/lib/worldline/connect/sdk/v1/domain/captures_response.rb +40 -0
- data/lib/worldline/connect/sdk/v1/domain/card.rb +42 -0
- data/lib/worldline/connect/sdk/v1/domain/card_essentials.rb +49 -0
- data/lib/worldline/connect/sdk/v1/domain/card_fraud_results.rb +60 -0
- data/lib/worldline/connect/sdk/v1/domain/card_payment_method_specific_input.rb +89 -0
- data/lib/worldline/connect/sdk/v1/domain/card_payment_method_specific_input_base.rb +37 -0
- data/lib/worldline/connect/sdk/v1/domain/card_payment_method_specific_output.rb +83 -0
- data/lib/worldline/connect/sdk/v1/domain/card_payout_method_specific_input.rb +60 -0
- data/lib/worldline/connect/sdk/v1/domain/card_recurrence_details.rb +49 -0
- data/lib/worldline/connect/sdk/v1/domain/card_without_cvv.rb +35 -0
- data/lib/worldline/connect/sdk/v1/domain/cash_payment_method_specific_input.rb +93 -0
- data/lib/worldline/connect/sdk/v1/domain/cash_payment_method_specific_input_base.rb +18 -0
- data/lib/worldline/connect/sdk/v1/domain/cash_payment_method_specific_output.rb +37 -0
- data/lib/worldline/connect/sdk/v1/domain/cash_payment_product1503_specific_input.rb +38 -0
- data/lib/worldline/connect/sdk/v1/domain/cash_payment_product1504_specific_input.rb +18 -0
- data/lib/worldline/connect/sdk/v1/domain/cash_payment_product1521_specific_input.rb +18 -0
- data/lib/worldline/connect/sdk/v1/domain/cash_payment_product1522_specific_input.rb +18 -0
- data/lib/worldline/connect/sdk/v1/domain/cash_payment_product1523_specific_input.rb +18 -0
- data/lib/worldline/connect/sdk/v1/domain/cash_payment_product1524_specific_input.rb +18 -0
- data/lib/worldline/connect/sdk/v1/domain/cash_payment_product1526_specific_input.rb +18 -0
- data/lib/worldline/connect/sdk/v1/domain/cash_payment_product_with_redirect_specific_input_base.rb +35 -0
- data/lib/worldline/connect/sdk/v1/domain/company_information.rb +42 -0
- data/lib/worldline/connect/sdk/v1/domain/complete_payment_card_payment_method_specific_input.rb +37 -0
- data/lib/worldline/connect/sdk/v1/domain/complete_payment_request.rb +55 -0
- data/lib/worldline/connect/sdk/v1/domain/complete_payment_response.rb +18 -0
- data/lib/worldline/connect/sdk/v1/domain/contact_details.rb +56 -0
- data/lib/worldline/connect/sdk/v1/domain/contact_details_base.rb +42 -0
- data/lib/worldline/connect/sdk/v1/domain/contact_details_risk_assessment.rb +35 -0
- data/lib/worldline/connect/sdk/v1/domain/contact_details_token.rb +18 -0
- data/lib/worldline/connect/sdk/v1/domain/convert_amount.rb +35 -0
- data/lib/worldline/connect/sdk/v1/domain/create_dispute_request.rb +65 -0
- data/lib/worldline/connect/sdk/v1/domain/create_hosted_checkout_request.rb +127 -0
- data/lib/worldline/connect/sdk/v1/domain/create_hosted_checkout_response.rb +67 -0
- data/lib/worldline/connect/sdk/v1/domain/create_hosted_mandate_management_request.rb +46 -0
- data/lib/worldline/connect/sdk/v1/domain/create_hosted_mandate_management_response.rb +49 -0
- data/lib/worldline/connect/sdk/v1/domain/create_mandate_base.rb +79 -0
- data/lib/worldline/connect/sdk/v1/domain/create_mandate_request.rb +18 -0
- data/lib/worldline/connect/sdk/v1/domain/create_mandate_response.rb +46 -0
- data/lib/worldline/connect/sdk/v1/domain/create_mandate_with_return_url.rb +35 -0
- data/lib/worldline/connect/sdk/v1/domain/create_payment_product_session_request.rb +37 -0
- data/lib/worldline/connect/sdk/v1/domain/create_payment_product_session_response.rb +37 -0
- data/lib/worldline/connect/sdk/v1/domain/create_payment_request.rb +143 -0
- data/lib/worldline/connect/sdk/v1/domain/create_payment_response.rb +18 -0
- data/lib/worldline/connect/sdk/v1/domain/create_payment_result.rb +55 -0
- data/lib/worldline/connect/sdk/v1/domain/create_payout_request.rb +146 -0
- data/lib/worldline/connect/sdk/v1/domain/create_token_request.rb +78 -0
- data/lib/worldline/connect/sdk/v1/domain/create_token_response.rb +49 -0
- data/lib/worldline/connect/sdk/v1/domain/created_payment_output.rb +85 -0
- data/lib/worldline/connect/sdk/v1/domain/creditor.rb +105 -0
- data/lib/worldline/connect/sdk/v1/domain/customer.rb +119 -0
- data/lib/worldline/connect/sdk/v1/domain/customer_account.rb +118 -0
- data/lib/worldline/connect/sdk/v1/domain/customer_account_authentication.rb +49 -0
- data/lib/worldline/connect/sdk/v1/domain/customer_account_risk_assessment.rb +42 -0
- data/lib/worldline/connect/sdk/v1/domain/customer_approve_payment.rb +35 -0
- data/lib/worldline/connect/sdk/v1/domain/customer_base.rb +53 -0
- data/lib/worldline/connect/sdk/v1/domain/customer_device.rb +86 -0
- data/lib/worldline/connect/sdk/v1/domain/customer_device_risk_assessment.rb +42 -0
- data/lib/worldline/connect/sdk/v1/domain/customer_payment_activity.rb +49 -0
- data/lib/worldline/connect/sdk/v1/domain/customer_risk_assessment.rb +105 -0
- data/lib/worldline/connect/sdk/v1/domain/customer_token.rb +46 -0
- data/lib/worldline/connect/sdk/v1/domain/customer_token_with_contact_details.rb +37 -0
- data/lib/worldline/connect/sdk/v1/domain/debtor.rb +105 -0
- data/lib/worldline/connect/sdk/v1/domain/decrypted_payment_data.rb +86 -0
- data/lib/worldline/connect/sdk/v1/domain/device_fingerprint_details.rb +42 -0
- data/lib/worldline/connect/sdk/v1/domain/device_fingerprint_request.rb +35 -0
- data/lib/worldline/connect/sdk/v1/domain/device_fingerprint_response.rb +42 -0
- data/lib/worldline/connect/sdk/v1/domain/device_render_options.rb +55 -0
- data/lib/worldline/connect/sdk/v1/domain/directory.rb +40 -0
- data/lib/worldline/connect/sdk/v1/domain/directory_entry.rb +60 -0
- data/lib/worldline/connect/sdk/v1/domain/displayed_data.rb +54 -0
- data/lib/worldline/connect/sdk/v1/domain/dispute.rb +67 -0
- data/lib/worldline/connect/sdk/v1/domain/dispute_creation_detail.rb +49 -0
- data/lib/worldline/connect/sdk/v1/domain/dispute_output.rb +102 -0
- data/lib/worldline/connect/sdk/v1/domain/dispute_reference.rb +63 -0
- data/lib/worldline/connect/sdk/v1/domain/dispute_response.rb +18 -0
- data/lib/worldline/connect/sdk/v1/domain/dispute_status_output.rb +56 -0
- data/lib/worldline/connect/sdk/v1/domain/disputes_response.rb +40 -0
- data/lib/worldline/connect/sdk/v1/domain/e_invoice_payment_method_specific_input.rb +44 -0
- data/lib/worldline/connect/sdk/v1/domain/e_invoice_payment_method_specific_input_base.rb +18 -0
- data/lib/worldline/connect/sdk/v1/domain/e_invoice_payment_method_specific_output.rb +46 -0
- data/lib/worldline/connect/sdk/v1/domain/e_invoice_payment_product9000_specific_input.rb +44 -0
- data/lib/worldline/connect/sdk/v1/domain/e_invoice_payment_product9000_specific_output.rb +35 -0
- data/lib/worldline/connect/sdk/v1/domain/empty_validator.rb +18 -0
- data/lib/worldline/connect/sdk/v1/domain/error_response.rb +47 -0
- data/lib/worldline/connect/sdk/v1/domain/exemption_output.rb +49 -0
- data/lib/worldline/connect/sdk/v1/domain/external_cardholder_authentication_data.rb +107 -0
- data/lib/worldline/connect/sdk/v1/domain/find_payments_response.rb +61 -0
- data/lib/worldline/connect/sdk/v1/domain/find_payouts_response.rb +61 -0
- data/lib/worldline/connect/sdk/v1/domain/find_refunds_response.rb +61 -0
- data/lib/worldline/connect/sdk/v1/domain/fixed_list_validator.rb +39 -0
- data/lib/worldline/connect/sdk/v1/domain/fraud_fields.rb +186 -0
- data/lib/worldline/connect/sdk/v1/domain/fraud_fields_shipping_details.rb +56 -0
- data/lib/worldline/connect/sdk/v1/domain/fraud_results.rb +53 -0
- data/lib/worldline/connect/sdk/v1/domain/fraud_results_retail_decisions.rb +49 -0
- data/lib/worldline/connect/sdk/v1/domain/fraugster_results.rb +42 -0
- data/lib/worldline/connect/sdk/v1/domain/frequency.rb +42 -0
- data/lib/worldline/connect/sdk/v1/domain/g_pay_three_d_secure.rb +65 -0
- data/lib/worldline/connect/sdk/v1/domain/get_customer_details_request.rb +47 -0
- data/lib/worldline/connect/sdk/v1/domain/get_customer_details_response.rb +98 -0
- data/lib/worldline/connect/sdk/v1/domain/get_hosted_checkout_response.rb +44 -0
- data/lib/worldline/connect/sdk/v1/domain/get_hosted_mandate_management_response.rb +44 -0
- data/lib/worldline/connect/sdk/v1/domain/get_iin_details_request.rb +44 -0
- data/lib/worldline/connect/sdk/v1/domain/get_iin_details_response.rb +61 -0
- data/lib/worldline/connect/sdk/v1/domain/get_installment_request.rb +58 -0
- data/lib/worldline/connect/sdk/v1/domain/get_mandate_response.rb +37 -0
- data/lib/worldline/connect/sdk/v1/domain/get_privacy_policy_response.rb +35 -0
- data/lib/worldline/connect/sdk/v1/domain/gift_card_purchase.rb +44 -0
- data/lib/worldline/connect/sdk/v1/domain/hosted_checkout_specific_input.rb +102 -0
- data/lib/worldline/connect/sdk/v1/domain/hosted_checkout_specific_output.rb +42 -0
- data/lib/worldline/connect/sdk/v1/domain/hosted_file.rb +56 -0
- data/lib/worldline/connect/sdk/v1/domain/hosted_mandate_info.rb +72 -0
- data/lib/worldline/connect/sdk/v1/domain/hosted_mandate_management_specific_input.rb +56 -0
- data/lib/worldline/connect/sdk/v1/domain/iin_detail.rb +42 -0
- data/lib/worldline/connect/sdk/v1/domain/in_auth.rb +63 -0
- data/lib/worldline/connect/sdk/v1/domain/installment_display_hints.rb +49 -0
- data/lib/worldline/connect/sdk/v1/domain/installment_options.rb +56 -0
- data/lib/worldline/connect/sdk/v1/domain/installment_options_response.rb +40 -0
- data/lib/worldline/connect/sdk/v1/domain/installments.rb +73 -0
- data/lib/worldline/connect/sdk/v1/domain/invoice_payment_method_specific_input.rb +35 -0
- data/lib/worldline/connect/sdk/v1/domain/invoice_payment_method_specific_output.rb +37 -0
- data/lib/worldline/connect/sdk/v1/domain/key_value_pair.rb +42 -0
- data/lib/worldline/connect/sdk/v1/domain/label_template_element.rb +42 -0
- data/lib/worldline/connect/sdk/v1/domain/length_validator.rb +42 -0
- data/lib/worldline/connect/sdk/v1/domain/level3_summary_data.rb +56 -0
- data/lib/worldline/connect/sdk/v1/domain/line_item.rb +66 -0
- data/lib/worldline/connect/sdk/v1/domain/line_item_invoice_data.rb +63 -0
- data/lib/worldline/connect/sdk/v1/domain/line_item_level3_interchange_information.rb +84 -0
- data/lib/worldline/connect/sdk/v1/domain/loan_recipient.rb +74 -0
- data/lib/worldline/connect/sdk/v1/domain/lodging_charge.rb +49 -0
- data/lib/worldline/connect/sdk/v1/domain/lodging_data.rb +150 -0
- data/lib/worldline/connect/sdk/v1/domain/lodging_room.rb +91 -0
- data/lib/worldline/connect/sdk/v1/domain/mandate_address.rb +63 -0
- data/lib/worldline/connect/sdk/v1/domain/mandate_approval.rb +49 -0
- data/lib/worldline/connect/sdk/v1/domain/mandate_contact_details.rb +35 -0
- data/lib/worldline/connect/sdk/v1/domain/mandate_customer.rb +71 -0
- data/lib/worldline/connect/sdk/v1/domain/mandate_merchant_action.rb +44 -0
- data/lib/worldline/connect/sdk/v1/domain/mandate_non_sepa_direct_debit.rb +46 -0
- data/lib/worldline/connect/sdk/v1/domain/mandate_personal_information.rb +44 -0
- data/lib/worldline/connect/sdk/v1/domain/mandate_personal_name.rb +42 -0
- data/lib/worldline/connect/sdk/v1/domain/mandate_redirect_data.rb +18 -0
- data/lib/worldline/connect/sdk/v1/domain/mandate_response.rb +72 -0
- data/lib/worldline/connect/sdk/v1/domain/mandate_sepa_direct_debit.rb +37 -0
- data/lib/worldline/connect/sdk/v1/domain/mandate_sepa_direct_debit_with_mandate_id.rb +35 -0
- data/lib/worldline/connect/sdk/v1/domain/mandate_sepa_direct_debit_without_creditor.rb +76 -0
- data/lib/worldline/connect/sdk/v1/domain/merchant.rb +58 -0
- data/lib/worldline/connect/sdk/v1/domain/merchant_action.rb +93 -0
- data/lib/worldline/connect/sdk/v1/domain/merchant_risk_assessment.rb +35 -0
- data/lib/worldline/connect/sdk/v1/domain/microsoft_fraud_results.rb +77 -0
- data/lib/worldline/connect/sdk/v1/domain/mobile_payment_data.rb +42 -0
- data/lib/worldline/connect/sdk/v1/domain/mobile_payment_method_specific_input.rb +81 -0
- data/lib/worldline/connect/sdk/v1/domain/mobile_payment_method_specific_input_hosted_checkout.rb +74 -0
- data/lib/worldline/connect/sdk/v1/domain/mobile_payment_method_specific_output.rb +69 -0
- data/lib/worldline/connect/sdk/v1/domain/mobile_payment_product302_specific_input_hosted_checkout.rb +35 -0
- data/lib/worldline/connect/sdk/v1/domain/mobile_payment_product320_specific_input.rb +44 -0
- data/lib/worldline/connect/sdk/v1/domain/mobile_payment_product320_specific_input_hosted_checkout.rb +51 -0
- data/lib/worldline/connect/sdk/v1/domain/mobile_payment_product_session302_specific_input.rb +49 -0
- data/lib/worldline/connect/sdk/v1/domain/mobile_payment_product_session302_specific_output.rb +35 -0
- data/lib/worldline/connect/sdk/v1/domain/mobile_three_d_secure_challenge_parameters.rb +56 -0
- data/lib/worldline/connect/sdk/v1/domain/non_sepa_direct_debit_payment_method_specific_input.rb +95 -0
- data/lib/worldline/connect/sdk/v1/domain/non_sepa_direct_debit_payment_method_specific_output.rb +37 -0
- data/lib/worldline/connect/sdk/v1/domain/non_sepa_direct_debit_payment_product705_specific_input.rb +51 -0
- data/lib/worldline/connect/sdk/v1/domain/non_sepa_direct_debit_payment_product730_specific_input.rb +37 -0
- data/lib/worldline/connect/sdk/v1/domain/order.rb +107 -0
- data/lib/worldline/connect/sdk/v1/domain/order_approve_payment.rb +55 -0
- data/lib/worldline/connect/sdk/v1/domain/order_invoice_data.rb +60 -0
- data/lib/worldline/connect/sdk/v1/domain/order_line_details.rb +112 -0
- data/lib/worldline/connect/sdk/v1/domain/order_output.rb +46 -0
- data/lib/worldline/connect/sdk/v1/domain/order_references.rb +72 -0
- data/lib/worldline/connect/sdk/v1/domain/order_references_approve_payment.rb +35 -0
- data/lib/worldline/connect/sdk/v1/domain/order_risk_assessment.rb +64 -0
- data/lib/worldline/connect/sdk/v1/domain/order_status_output.rb +87 -0
- data/lib/worldline/connect/sdk/v1/domain/order_type_information.rb +56 -0
- data/lib/worldline/connect/sdk/v1/domain/payment.rb +62 -0
- data/lib/worldline/connect/sdk/v1/domain/payment_account_on_file.rb +42 -0
- data/lib/worldline/connect/sdk/v1/domain/payment_approval_response.rb +65 -0
- data/lib/worldline/connect/sdk/v1/domain/payment_context.rb +58 -0
- data/lib/worldline/connect/sdk/v1/domain/payment_creation_output.rb +56 -0
- data/lib/worldline/connect/sdk/v1/domain/payment_creation_references.rb +42 -0
- data/lib/worldline/connect/sdk/v1/domain/payment_error_response.rb +56 -0
- data/lib/worldline/connect/sdk/v1/domain/payment_output.rb +137 -0
- data/lib/worldline/connect/sdk/v1/domain/payment_product.rb +223 -0
- data/lib/worldline/connect/sdk/v1/domain/payment_product302_specific_data.rb +39 -0
- data/lib/worldline/connect/sdk/v1/domain/payment_product3201_specific_output.rb +37 -0
- data/lib/worldline/connect/sdk/v1/domain/payment_product320_specific_data.rb +46 -0
- data/lib/worldline/connect/sdk/v1/domain/payment_product771_specific_output.rb +35 -0
- data/lib/worldline/connect/sdk/v1/domain/payment_product806_specific_output.rb +46 -0
- data/lib/worldline/connect/sdk/v1/domain/payment_product836_specific_output.rb +35 -0
- data/lib/worldline/connect/sdk/v1/domain/payment_product840_customer_account.rb +98 -0
- data/lib/worldline/connect/sdk/v1/domain/payment_product840_specific_output.rb +63 -0
- data/lib/worldline/connect/sdk/v1/domain/payment_product863_specific_data.rb +39 -0
- data/lib/worldline/connect/sdk/v1/domain/payment_product863_third_party_data.rb +77 -0
- data/lib/worldline/connect/sdk/v1/domain/payment_product_display_hints.rb +49 -0
- data/lib/worldline/connect/sdk/v1/domain/payment_product_field.rb +67 -0
- data/lib/worldline/connect/sdk/v1/domain/payment_product_field_data_restrictions.rb +44 -0
- data/lib/worldline/connect/sdk/v1/domain/payment_product_field_display_element.rb +56 -0
- data/lib/worldline/connect/sdk/v1/domain/payment_product_field_display_hints.rb +102 -0
- data/lib/worldline/connect/sdk/v1/domain/payment_product_field_form_element.rb +47 -0
- data/lib/worldline/connect/sdk/v1/domain/payment_product_field_tooltip.rb +42 -0
- data/lib/worldline/connect/sdk/v1/domain/payment_product_field_validators.rb +122 -0
- data/lib/worldline/connect/sdk/v1/domain/payment_product_filter.rb +50 -0
- data/lib/worldline/connect/sdk/v1/domain/payment_product_filters_client_session.rb +45 -0
- data/lib/worldline/connect/sdk/v1/domain/payment_product_filters_hosted_checkout.rb +52 -0
- data/lib/worldline/connect/sdk/v1/domain/payment_product_group.rb +82 -0
- data/lib/worldline/connect/sdk/v1/domain/payment_product_group_response.rb +18 -0
- data/lib/worldline/connect/sdk/v1/domain/payment_product_groups.rb +40 -0
- data/lib/worldline/connect/sdk/v1/domain/payment_product_networks_response.rb +39 -0
- data/lib/worldline/connect/sdk/v1/domain/payment_product_response.rb +18 -0
- data/lib/worldline/connect/sdk/v1/domain/payment_products.rb +40 -0
- data/lib/worldline/connect/sdk/v1/domain/payment_references.rb +77 -0
- data/lib/worldline/connect/sdk/v1/domain/payment_response.rb +18 -0
- data/lib/worldline/connect/sdk/v1/domain/payment_status_output.rb +49 -0
- data/lib/worldline/connect/sdk/v1/domain/payout_customer.rb +71 -0
- data/lib/worldline/connect/sdk/v1/domain/payout_details.rb +55 -0
- data/lib/worldline/connect/sdk/v1/domain/payout_error_response.rb +56 -0
- data/lib/worldline/connect/sdk/v1/domain/payout_merchant.rb +35 -0
- data/lib/worldline/connect/sdk/v1/domain/payout_recipient.rb +49 -0
- data/lib/worldline/connect/sdk/v1/domain/payout_references.rb +49 -0
- data/lib/worldline/connect/sdk/v1/domain/payout_response.rb +18 -0
- data/lib/worldline/connect/sdk/v1/domain/payout_result.rb +53 -0
- data/lib/worldline/connect/sdk/v1/domain/personal_identification.rb +49 -0
- data/lib/worldline/connect/sdk/v1/domain/personal_information.rb +60 -0
- data/lib/worldline/connect/sdk/v1/domain/personal_information_risk_assessment.rb +37 -0
- data/lib/worldline/connect/sdk/v1/domain/personal_information_token.rb +37 -0
- data/lib/worldline/connect/sdk/v1/domain/personal_name.rb +35 -0
- data/lib/worldline/connect/sdk/v1/domain/personal_name_base.rb +49 -0
- data/lib/worldline/connect/sdk/v1/domain/personal_name_risk_assessment.rb +18 -0
- data/lib/worldline/connect/sdk/v1/domain/personal_name_token.rb +18 -0
- data/lib/worldline/connect/sdk/v1/domain/protection_eligibility.rb +42 -0
- data/lib/worldline/connect/sdk/v1/domain/range_validator.rb +42 -0
- data/lib/worldline/connect/sdk/v1/domain/recurring_payments_data.rb +46 -0
- data/lib/worldline/connect/sdk/v1/domain/redirect_data.rb +18 -0
- data/lib/worldline/connect/sdk/v1/domain/redirect_data_base.rb +42 -0
- data/lib/worldline/connect/sdk/v1/domain/redirect_payment_method_specific_input.rb +125 -0
- data/lib/worldline/connect/sdk/v1/domain/redirect_payment_method_specific_input_base.rb +46 -0
- data/lib/worldline/connect/sdk/v1/domain/redirect_payment_method_specific_output.rb +105 -0
- data/lib/worldline/connect/sdk/v1/domain/redirect_payment_product4101_specific_input.rb +49 -0
- data/lib/worldline/connect/sdk/v1/domain/redirect_payment_product4101_specific_input_base.rb +35 -0
- data/lib/worldline/connect/sdk/v1/domain/redirect_payment_product809_specific_input.rb +44 -0
- data/lib/worldline/connect/sdk/v1/domain/redirect_payment_product816_specific_input.rb +37 -0
- data/lib/worldline/connect/sdk/v1/domain/redirect_payment_product840_specific_input.rb +44 -0
- data/lib/worldline/connect/sdk/v1/domain/redirect_payment_product840_specific_input_base.rb +18 -0
- data/lib/worldline/connect/sdk/v1/domain/redirect_payment_product861_specific_input.rb +35 -0
- data/lib/worldline/connect/sdk/v1/domain/redirect_payment_product863_specific_input.rb +42 -0
- data/lib/worldline/connect/sdk/v1/domain/redirect_payment_product869_specific_input.rb +49 -0
- data/lib/worldline/connect/sdk/v1/domain/redirect_payment_product882_specific_input.rb +35 -0
- data/lib/worldline/connect/sdk/v1/domain/redirection_data.rb +42 -0
- data/lib/worldline/connect/sdk/v1/domain/refund_bank_method_specific_output.rb +18 -0
- data/lib/worldline/connect/sdk/v1/domain/refund_card_method_specific_output.rb +44 -0
- data/lib/worldline/connect/sdk/v1/domain/refund_cash_method_specific_output.rb +18 -0
- data/lib/worldline/connect/sdk/v1/domain/refund_customer.rb +62 -0
- data/lib/worldline/connect/sdk/v1/domain/refund_e_invoice_method_specific_output.rb +18 -0
- data/lib/worldline/connect/sdk/v1/domain/refund_e_wallet_method_specific_output.rb +37 -0
- data/lib/worldline/connect/sdk/v1/domain/refund_error_response.rb +56 -0
- data/lib/worldline/connect/sdk/v1/domain/refund_method_specific_output.rb +49 -0
- data/lib/worldline/connect/sdk/v1/domain/refund_mobile_method_specific_output.rb +35 -0
- data/lib/worldline/connect/sdk/v1/domain/refund_output.rb +96 -0
- data/lib/worldline/connect/sdk/v1/domain/refund_payment_product840_customer_account.rb +49 -0
- data/lib/worldline/connect/sdk/v1/domain/refund_payment_product840_specific_output.rb +37 -0
- data/lib/worldline/connect/sdk/v1/domain/refund_references.rb +35 -0
- data/lib/worldline/connect/sdk/v1/domain/refund_request.rb +71 -0
- data/lib/worldline/connect/sdk/v1/domain/refund_response.rb +18 -0
- data/lib/worldline/connect/sdk/v1/domain/refund_result.rb +53 -0
- data/lib/worldline/connect/sdk/v1/domain/refunds_response.rb +40 -0
- data/lib/worldline/connect/sdk/v1/domain/regular_expression_validator.rb +35 -0
- data/lib/worldline/connect/sdk/v1/domain/result_do_risk_assessment.rb +60 -0
- data/lib/worldline/connect/sdk/v1/domain/retail_decisions_cc_fraud_check_output.rb +49 -0
- data/lib/worldline/connect/sdk/v1/domain/risk_assessment.rb +62 -0
- data/lib/worldline/connect/sdk/v1/domain/risk_assessment_bank_account.rb +46 -0
- data/lib/worldline/connect/sdk/v1/domain/risk_assessment_card.rb +37 -0
- data/lib/worldline/connect/sdk/v1/domain/risk_assessment_response.rb +40 -0
- data/lib/worldline/connect/sdk/v1/domain/scheme_token_data.rb +63 -0
- data/lib/worldline/connect/sdk/v1/domain/sdk_data_input.rb +79 -0
- data/lib/worldline/connect/sdk/v1/domain/sdk_data_output.rb +35 -0
- data/lib/worldline/connect/sdk/v1/domain/seller.rb +114 -0
- data/lib/worldline/connect/sdk/v1/domain/sepa_direct_debit_payment_method_specific_input.rb +86 -0
- data/lib/worldline/connect/sdk/v1/domain/sepa_direct_debit_payment_method_specific_input_base.rb +37 -0
- data/lib/worldline/connect/sdk/v1/domain/sepa_direct_debit_payment_method_specific_output.rb +53 -0
- data/lib/worldline/connect/sdk/v1/domain/sepa_direct_debit_payment_product771_specific_input.rb +44 -0
- data/lib/worldline/connect/sdk/v1/domain/sepa_direct_debit_payment_product771_specific_input_base.rb +44 -0
- data/lib/worldline/connect/sdk/v1/domain/session_request.rb +48 -0
- data/lib/worldline/connect/sdk/v1/domain/session_response.rb +74 -0
- data/lib/worldline/connect/sdk/v1/domain/shipping.rb +86 -0
- data/lib/worldline/connect/sdk/v1/domain/shipping_risk_assessment.rb +51 -0
- data/lib/worldline/connect/sdk/v1/domain/shopping_cart.rb +82 -0
- data/lib/worldline/connect/sdk/v1/domain/swift.rb +98 -0
- data/lib/worldline/connect/sdk/v1/domain/test_connection.rb +35 -0
- data/lib/worldline/connect/sdk/v1/domain/third_party_data.rb +37 -0
- data/lib/worldline/connect/sdk/v1/domain/third_party_status_response.rb +35 -0
- data/lib/worldline/connect/sdk/v1/domain/three_d_secure.rb +46 -0
- data/lib/worldline/connect/sdk/v1/domain/three_d_secure_base.rb +18 -0
- data/lib/worldline/connect/sdk/v1/domain/three_d_secure_data.rb +49 -0
- data/lib/worldline/connect/sdk/v1/domain/three_d_secure_results.rb +127 -0
- data/lib/worldline/connect/sdk/v1/domain/token_card.rb +46 -0
- data/lib/worldline/connect/sdk/v1/domain/token_card_data.rb +51 -0
- data/lib/worldline/connect/sdk/v1/domain/token_e_wallet.rb +46 -0
- data/lib/worldline/connect/sdk/v1/domain/token_e_wallet_data.rb +35 -0
- data/lib/worldline/connect/sdk/v1/domain/token_non_sepa_direct_debit.rb +46 -0
- data/lib/worldline/connect/sdk/v1/domain/token_non_sepa_direct_debit_payment_product705_specific_data.rb +44 -0
- data/lib/worldline/connect/sdk/v1/domain/token_non_sepa_direct_debit_payment_product730_specific_data.rb +37 -0
- data/lib/worldline/connect/sdk/v1/domain/token_response.rb +85 -0
- data/lib/worldline/connect/sdk/v1/domain/token_sepa_direct_debit.rb +46 -0
- data/lib/worldline/connect/sdk/v1/domain/token_sepa_direct_debit_without_creditor.rb +46 -0
- data/lib/worldline/connect/sdk/v1/domain/tokenize_payment_request.rb +35 -0
- data/lib/worldline/connect/sdk/v1/domain/trial_information.rb +69 -0
- data/lib/worldline/connect/sdk/v1/domain/trial_period.rb +42 -0
- data/lib/worldline/connect/sdk/v1/domain/trustly_bank_account.rb +56 -0
- data/lib/worldline/connect/sdk/v1/domain/update_token_request.rb +71 -0
- data/lib/worldline/connect/sdk/v1/domain/upload_dispute_file_response.rb +42 -0
- data/lib/worldline/connect/sdk/v1/domain/validation_bank_account_check.rb +49 -0
- data/lib/worldline/connect/sdk/v1/domain/validation_bank_account_output.rb +68 -0
- data/lib/worldline/connect/sdk/v1/domain/value_mapping_element.rb +56 -0
- data/lib/worldline/connect/sdk/v1/domain/webhooks_event.rb +108 -0
- data/lib/worldline/connect/sdk/v1/domain.rb +5 -0
- data/lib/worldline/connect/sdk/v1/exception_factory.rb +76 -0
- data/lib/worldline/connect/sdk/v1/idempotence_exception.rb +34 -0
- data/lib/worldline/connect/sdk/v1/merchant/captures/captures_client.rb +96 -0
- data/lib/worldline/connect/sdk/v1/merchant/captures.rb +5 -0
- data/lib/worldline/connect/sdk/v1/merchant/disputes/disputes_client.rb +156 -0
- data/lib/worldline/connect/sdk/v1/merchant/disputes/upload_file_request.rb +32 -0
- data/lib/worldline/connect/sdk/v1/merchant/disputes.rb +5 -0
- data/lib/worldline/connect/sdk/v1/merchant/files/files_client.rb +61 -0
- data/lib/worldline/connect/sdk/v1/merchant/files.rb +5 -0
- data/lib/worldline/connect/sdk/v1/merchant/hostedcheckouts/hostedcheckouts_client.rb +119 -0
- data/lib/worldline/connect/sdk/v1/merchant/hostedcheckouts.rb +5 -0
- data/lib/worldline/connect/sdk/v1/merchant/hostedmandatemanagements/hostedmandatemanagements_client.rb +90 -0
- data/lib/worldline/connect/sdk/v1/merchant/hostedmandatemanagements.rb +5 -0
- data/lib/worldline/connect/sdk/v1/merchant/installments/installments_client.rb +59 -0
- data/lib/worldline/connect/sdk/v1/merchant/installments.rb +5 -0
- data/lib/worldline/connect/sdk/v1/merchant/mandates/mandates_client.rb +215 -0
- data/lib/worldline/connect/sdk/v1/merchant/mandates.rb +5 -0
- data/lib/worldline/connect/sdk/v1/merchant/merchant_client.rb +137 -0
- data/lib/worldline/connect/sdk/v1/merchant/payments/find_payments_params.rb +48 -0
- data/lib/worldline/connect/sdk/v1/merchant/payments/payments_client.rb +570 -0
- data/lib/worldline/connect/sdk/v1/merchant/payments.rb +5 -0
- data/lib/worldline/connect/sdk/v1/merchant/payouts/find_payouts_params.rb +44 -0
- data/lib/worldline/connect/sdk/v1/merchant/payouts/payouts_client.rb +211 -0
- data/lib/worldline/connect/sdk/v1/merchant/payouts.rb +5 -0
- data/lib/worldline/connect/sdk/v1/merchant/productgroups/find_productgroups_params.rb +67 -0
- data/lib/worldline/connect/sdk/v1/merchant/productgroups/get_productgroup_params.rb +67 -0
- data/lib/worldline/connect/sdk/v1/merchant/productgroups/productgroups_client.rb +123 -0
- data/lib/worldline/connect/sdk/v1/merchant/productgroups.rb +5 -0
- data/lib/worldline/connect/sdk/v1/merchant/products/directory_params.rb +36 -0
- data/lib/worldline/connect/sdk/v1/merchant/products/find_products_params.rb +67 -0
- data/lib/worldline/connect/sdk/v1/merchant/products/get_product_params.rb +71 -0
- data/lib/worldline/connect/sdk/v1/merchant/products/networks_params.rb +44 -0
- data/lib/worldline/connect/sdk/v1/merchant/products/products_client.rb +253 -0
- data/lib/worldline/connect/sdk/v1/merchant/products.rb +5 -0
- data/lib/worldline/connect/sdk/v1/merchant/refunds/find_refunds_params.rb +48 -0
- data/lib/worldline/connect/sdk/v1/merchant/refunds/refunds_client.rb +180 -0
- data/lib/worldline/connect/sdk/v1/merchant/refunds.rb +5 -0
- data/lib/worldline/connect/sdk/v1/merchant/riskassessments/riskassessments_client.rb +87 -0
- data/lib/worldline/connect/sdk/v1/merchant/riskassessments.rb +5 -0
- data/lib/worldline/connect/sdk/v1/merchant/services/convert_amount_params.rb +40 -0
- data/lib/worldline/connect/sdk/v1/merchant/services/privacypolicy_params.rb +36 -0
- data/lib/worldline/connect/sdk/v1/merchant/services/services_client.rb +171 -0
- data/lib/worldline/connect/sdk/v1/merchant/services.rb +5 -0
- data/lib/worldline/connect/sdk/v1/merchant/sessions/sessions_client.rb +59 -0
- data/lib/worldline/connect/sdk/v1/merchant/sessions.rb +5 -0
- data/lib/worldline/connect/sdk/v1/merchant/tokens/delete_token_params.rb +32 -0
- data/lib/worldline/connect/sdk/v1/merchant/tokens/tokens_client.rb +182 -0
- data/lib/worldline/connect/sdk/v1/merchant/tokens.rb +5 -0
- data/lib/worldline/connect/sdk/v1/merchant.rb +5 -0
- data/lib/worldline/connect/sdk/v1/platform_exception.rb +26 -0
- data/lib/worldline/connect/sdk/v1/reference_exception.rb +25 -0
- data/lib/worldline/connect/sdk/v1/v1_client.rb +35 -0
- data/lib/worldline/connect/sdk/v1/validation_exception.rb +25 -0
- data/lib/worldline/connect/sdk/v1/webhooks/v1_webhooks_factory.rb +27 -0
- data/lib/worldline/connect/sdk/v1/webhooks/webhooks_helper.rb +45 -0
- data/lib/worldline/connect/sdk/v1/webhooks.rb +5 -0
- data/lib/worldline/connect/sdk/v1.rb +5 -0
- data/lib/worldline/connect/sdk/webhooks/api_version_mismatch_exception.rb +24 -0
- data/lib/worldline/connect/sdk/webhooks/in_memory_secret_key_store.rb +61 -0
- data/lib/worldline/connect/sdk/webhooks/secret_key_not_available_exception.rb +23 -0
- data/lib/worldline/connect/sdk/webhooks/secret_key_store.rb +20 -0
- data/lib/worldline/connect/sdk/webhooks/signature_validation_exception.rb +22 -0
- data/lib/worldline/connect/sdk/webhooks/signature_validator.rb +83 -0
- data/lib/worldline/connect/sdk/webhooks/webhooks.rb +28 -0
- data/spec/comparable_extension.rb +2 -2
- data/spec/fixtures/resources/properties.proxy.yml +2 -2
- data/spec/fixtures/resources/properties.yml +2 -2
- data/spec/integration/connection_pooling_spec.rb +6 -6
- data/spec/integration/convert_amount_spec.rb +4 -4
- data/spec/integration/idempotence_spec.rb +19 -19
- data/spec/integration/multiline_header_spec.rb +15 -14
- data/spec/integration/multipart_form_data_spec.rb +31 -31
- data/spec/integration/payment_product_groups_spec.rb +3 -3
- data/spec/integration/payment_products_spec.rb +6 -6
- data/spec/integration/risk_assessments_spec.rb +12 -12
- data/spec/integration/sdk_proxy_spec.rb +22 -21
- data/spec/integration/token_spec.rb +16 -15
- data/spec/integration_setup.rb +7 -7
- data/spec/lib/authentication/v1hmac_authenticator_spec.rb +72 -0
- data/spec/lib/client_spec.rb +16 -16
- data/spec/lib/communication/default_connection_idempotence_spec.rb +140 -0
- data/spec/lib/communication/default_connection_logger_spec.rb +569 -0
- data/spec/lib/communication/default_connection_spec.rb +351 -0
- data/spec/lib/communicator_configuration_spec.rb +33 -33
- data/spec/lib/communicator_spec.rb +11 -8
- data/spec/lib/factory_spec.rb +10 -13
- data/spec/lib/json/default_marshaller_spec.rb +36 -0
- data/spec/lib/logging/obfuscation/body_obfuscator_spec.rb +1 -1
- data/spec/lib/logging/obfuscation/header_obfuscator_spec.rb +2 -2
- data/spec/lib/logging/ruby_communicator_logger_spec.rb +2 -2
- data/spec/lib/logging/stdout_communicator_logger_spec.rb +2 -2
- data/spec/lib/metadata_provider_spec.rb +93 -0
- data/spec/lib/payments_client_spec.rb +47 -48
- data/spec/lib/requestparams/delete_params_spec.rb +3 -3
- data/spec/lib/requestparams/directory_params_spec.rb +4 -3
- data/spec/lib/requestparams/find_params_spec.rb +5 -5
- data/spec/lib/requestparams/get_params_spec.rb +5 -5
- data/spec/lib/webhooks/webhooks_helper_spec.rb +8 -5
- data/spec/lib/webhooks/webhooks_spec.rb +3 -3
- data/spec/spec_helper.rb +3 -3
- metadata +610 -636
- data/examples/merchant/captures/create_refund_capture_example.rb +0 -54
- data/examples/merchant/captures/get_capture_example.rb +0 -22
- data/examples/merchant/disputes/cancel_dispute_example.rb +0 -22
- data/examples/merchant/disputes/get_dispute_example.rb +0 -22
- data/examples/merchant/disputes/submit_dispute_example.rb +0 -22
- data/examples/merchant/disputes/upload_dispute_file_example.rb +0 -30
- data/examples/merchant/example_configuration.yml +0 -6
- data/examples/merchant/files/get_file_example.rb +0 -28
- data/examples/merchant/hostedcheckouts/create_hosted_checkout_example.rb +0 -54
- data/examples/merchant/hostedcheckouts/delete_hosted_checkout_example.rb +0 -22
- data/examples/merchant/hostedcheckouts/get_hosted_checkout_example.rb +0 -22
- data/examples/merchant/hostedmandatemanagements/create_hosted_mandate_management_example.rb +0 -40
- data/examples/merchant/hostedmandatemanagements/get_hosted_mandate_management_example.rb +0 -22
- data/examples/merchant/installments/get_installments_info_example.rb +0 -36
- data/examples/merchant/mandates/block_mandate_example.rb +0 -22
- data/examples/merchant/mandates/create_mandate_example.rb +0 -65
- data/examples/merchant/mandates/create_mandate_with_reference_example.rb +0 -65
- data/examples/merchant/mandates/get_mandate_example.rb +0 -22
- data/examples/merchant/mandates/revoke_mandate_example.rb +0 -22
- data/examples/merchant/mandates/unblock_mandate_example.rb +0 -22
- data/examples/merchant/payments/approve_payment_example.rb +0 -42
- data/examples/merchant/payments/cancel_approval_payment_example.rb +0 -22
- data/examples/merchant/payments/cancel_payment_example.rb +0 -22
- data/examples/merchant/payments/capture_payment_example.rb +0 -27
- data/examples/merchant/payments/complete_payment_example.rb +0 -38
- data/examples/merchant/payments/create_payment_dispute_example.rb +0 -37
- data/examples/merchant/payments/create_payment_example.rb +0 -223
- data/examples/merchant/payments/find_payments_example.rb +0 -31
- data/examples/merchant/payments/get_payment_captures_example.rb +0 -22
- data/examples/merchant/payments/get_payment_device_fingerprint_details_example.rb +0 -22
- data/examples/merchant/payments/get_payment_disputes_example.rb +0 -22
- data/examples/merchant/payments/get_payment_example.rb +0 -22
- data/examples/merchant/payments/get_refunds_example.rb +0 -22
- data/examples/merchant/payments/get_third_party_status_example.rb +0 -22
- data/examples/merchant/payments/process_challenged_payment_example.rb +0 -22
- data/examples/merchant/payments/refund_payment_example.rb +0 -85
- data/examples/merchant/payments/tokenize_payment_example.rb +0 -27
- data/examples/merchant/payouts/approve_payout_example.rb +0 -27
- data/examples/merchant/payouts/cancel_approval_payout_example.rb +0 -22
- data/examples/merchant/payouts/cancel_payout_example.rb +0 -22
- data/examples/merchant/payouts/create_payout_example.rb +0 -104
- data/examples/merchant/payouts/find_payouts_example.rb +0 -30
- data/examples/merchant/payouts/get_payout_example.rb +0 -22
- data/examples/merchant/productgroups/get_device_fingerprint_for_groups_example.rb +0 -26
- data/examples/merchant/productgroups/get_payment_product_group_example.rb +0 -33
- data/examples/merchant/productgroups/get_payment_product_groups_example.rb +0 -33
- data/examples/merchant/products/create_payment_product_session_example.rb +0 -33
- data/examples/merchant/products/get_customer_details_example.rb +0 -38
- data/examples/merchant/products/get_device_fingerprint_example.rb +0 -26
- data/examples/merchant/products/get_directory_example.rb +0 -28
- data/examples/merchant/products/get_networks_example.rb +0 -30
- data/examples/merchant/products/get_payment_product_example.rb +0 -34
- data/examples/merchant/products/get_payment_products_example.rb +0 -33
- data/examples/merchant/refunds/approve_refund_example.rb +0 -27
- data/examples/merchant/refunds/cancel_approval_refund_example.rb +0 -22
- data/examples/merchant/refunds/cancel_refund_example.rb +0 -22
- data/examples/merchant/refunds/find_refunds_example.rb +0 -31
- data/examples/merchant/refunds/get_refund_example.rb +0 -22
- data/examples/merchant/riskassessments/risk_assessment_bank_account_example.rb +0 -54
- data/examples/merchant/riskassessments/risk_assessment_cards_example.rb +0 -114
- data/examples/merchant/services/convert_amount_example.rb +0 -29
- data/examples/merchant/services/convert_bank_account_example.rb +0 -34
- data/examples/merchant/services/get_privacy_policy_example.rb +0 -28
- data/examples/merchant/services/iin_details_example.rb +0 -27
- data/examples/merchant/services/test_connection_example.rb +0 -22
- data/examples/merchant/sessions/create_session_example.rb +0 -34
- data/examples/merchant/tokens/approve_sepa_direct_debit_token_example.rb +0 -29
- data/examples/merchant/tokens/create_token_example.rb +0 -82
- data/examples/merchant/tokens/delete_token_example.rb +0 -27
- data/examples/merchant/tokens/get_token_example.rb +0 -22
- data/examples/merchant/tokens/update_token_example.rb +0 -76
- data/lib/ingenico/connect/sdk/api_exception.rb +0 -53
- data/lib/ingenico/connect/sdk/api_resource.rb +0 -144
- data/lib/ingenico/connect/sdk/authenticator.rb +0 -19
- data/lib/ingenico/connect/sdk/authorization_exception.rb +0 -18
- data/lib/ingenico/connect/sdk/call_context.rb +0 -29
- data/lib/ingenico/connect/sdk/client.rb +0 -106
- data/lib/ingenico/connect/sdk/communication_exception.rb +0 -19
- data/lib/ingenico/connect/sdk/communicator.rb +0 -515
- data/lib/ingenico/connect/sdk/communicator_configuration.rb +0 -86
- data/lib/ingenico/connect/sdk/connection.rb +0 -46
- data/lib/ingenico/connect/sdk/data_object.rb +0 -34
- data/lib/ingenico/connect/sdk/declined_payment_exception.rb +0 -47
- data/lib/ingenico/connect/sdk/declined_payout_exception.rb +0 -47
- data/lib/ingenico/connect/sdk/declined_refund_exception.rb +0 -47
- data/lib/ingenico/connect/sdk/declined_transaction_exception.rb +0 -21
- data/lib/ingenico/connect/sdk/defaultimpl/authorization_type.rb +0 -22
- data/lib/ingenico/connect/sdk/defaultimpl/default_authenticator.rb +0 -111
- data/lib/ingenico/connect/sdk/defaultimpl/default_connection.rb +0 -427
- data/lib/ingenico/connect/sdk/defaultimpl/default_marshaller.rb +0 -41
- data/lib/ingenico/connect/sdk/defaultimpl.rb +0 -1
- data/lib/ingenico/connect/sdk/domain/capture/capture.rb +0 -53
- data/lib/ingenico/connect/sdk/domain/capture/capture_output.rb +0 -137
- data/lib/ingenico/connect/sdk/domain/capture/capture_response.rb +0 -18
- data/lib/ingenico/connect/sdk/domain/capture/capture_status_output.rb +0 -54
- data/lib/ingenico/connect/sdk/domain/capture/captures_response.rb +0 -40
- data/lib/ingenico/connect/sdk/domain/capture.rb +0 -5
- data/lib/ingenico/connect/sdk/domain/definitions/abstract_order_status.rb +0 -35
- data/lib/ingenico/connect/sdk/domain/definitions/abstract_payment_method_specific_input.rb +0 -35
- data/lib/ingenico/connect/sdk/domain/definitions/additional_order_input_airline_data.rb +0 -46
- data/lib/ingenico/connect/sdk/domain/definitions/address.rb +0 -84
- data/lib/ingenico/connect/sdk/domain/definitions/airline_data.rb +0 -215
- data/lib/ingenico/connect/sdk/domain/definitions/airline_flight_leg.rb +0 -170
- data/lib/ingenico/connect/sdk/domain/definitions/airline_passenger.rb +0 -56
- data/lib/ingenico/connect/sdk/domain/definitions/amount_of_money.rb +0 -42
- data/lib/ingenico/connect/sdk/domain/definitions/bank_account.rb +0 -35
- data/lib/ingenico/connect/sdk/domain/definitions/bank_account_bban.rb +0 -70
- data/lib/ingenico/connect/sdk/domain/definitions/bank_account_iban.rb +0 -35
- data/lib/ingenico/connect/sdk/domain/definitions/card.rb +0 -42
- data/lib/ingenico/connect/sdk/domain/definitions/card_essentials.rb +0 -49
- data/lib/ingenico/connect/sdk/domain/definitions/card_fraud_results.rb +0 -60
- data/lib/ingenico/connect/sdk/domain/definitions/card_without_cvv.rb +0 -35
- data/lib/ingenico/connect/sdk/domain/definitions/company_information.rb +0 -42
- data/lib/ingenico/connect/sdk/domain/definitions/contact_details_base.rb +0 -42
- data/lib/ingenico/connect/sdk/domain/definitions/customer_base.rb +0 -53
- data/lib/ingenico/connect/sdk/domain/definitions/fraud_fields.rb +0 -186
- data/lib/ingenico/connect/sdk/domain/definitions/fraud_fields_shipping_details.rb +0 -56
- data/lib/ingenico/connect/sdk/domain/definitions/fraud_results.rb +0 -53
- data/lib/ingenico/connect/sdk/domain/definitions/fraud_results_retail_decisions.rb +0 -49
- data/lib/ingenico/connect/sdk/domain/definitions/fraugster_results.rb +0 -42
- data/lib/ingenico/connect/sdk/domain/definitions/in_auth.rb +0 -63
- data/lib/ingenico/connect/sdk/domain/definitions/key_value_pair.rb +0 -42
- data/lib/ingenico/connect/sdk/domain/definitions/lodging_charge.rb +0 -49
- data/lib/ingenico/connect/sdk/domain/definitions/lodging_data.rb +0 -150
- data/lib/ingenico/connect/sdk/domain/definitions/lodging_room.rb +0 -91
- data/lib/ingenico/connect/sdk/domain/definitions/microsoft_fraud_results.rb +0 -77
- data/lib/ingenico/connect/sdk/domain/definitions/order_status_output.rb +0 -87
- data/lib/ingenico/connect/sdk/domain/definitions/payment_product_filter.rb +0 -50
- data/lib/ingenico/connect/sdk/domain/definitions/personal_name_base.rb +0 -49
- data/lib/ingenico/connect/sdk/domain/definitions/redirect_data_base.rb +0 -42
- data/lib/ingenico/connect/sdk/domain/definitions/result_do_risk_assessment.rb +0 -60
- data/lib/ingenico/connect/sdk/domain/definitions/retail_decisions_cc_fraud_check_output.rb +0 -49
- data/lib/ingenico/connect/sdk/domain/definitions/validation_bank_account_check.rb +0 -49
- data/lib/ingenico/connect/sdk/domain/definitions/validation_bank_account_output.rb +0 -68
- data/lib/ingenico/connect/sdk/domain/definitions.rb +0 -5
- data/lib/ingenico/connect/sdk/domain/dispute/create_dispute_request.rb +0 -65
- data/lib/ingenico/connect/sdk/domain/dispute/dispute.rb +0 -67
- data/lib/ingenico/connect/sdk/domain/dispute/dispute_creation_detail.rb +0 -49
- data/lib/ingenico/connect/sdk/domain/dispute/dispute_output.rb +0 -102
- data/lib/ingenico/connect/sdk/domain/dispute/dispute_reference.rb +0 -63
- data/lib/ingenico/connect/sdk/domain/dispute/dispute_response.rb +0 -18
- data/lib/ingenico/connect/sdk/domain/dispute/dispute_status_output.rb +0 -56
- data/lib/ingenico/connect/sdk/domain/dispute/disputes_response.rb +0 -40
- data/lib/ingenico/connect/sdk/domain/dispute/upload_dispute_file_response.rb +0 -42
- data/lib/ingenico/connect/sdk/domain/dispute.rb +0 -5
- data/lib/ingenico/connect/sdk/domain/errors/api_error.rb +0 -77
- data/lib/ingenico/connect/sdk/domain/errors/error_response.rb +0 -47
- data/lib/ingenico/connect/sdk/domain/errors.rb +0 -5
- data/lib/ingenico/connect/sdk/domain/file/hosted_file.rb +0 -56
- data/lib/ingenico/connect/sdk/domain/file.rb +0 -5
- data/lib/ingenico/connect/sdk/domain/hostedcheckout/create_hosted_checkout_request.rb +0 -127
- data/lib/ingenico/connect/sdk/domain/hostedcheckout/create_hosted_checkout_response.rb +0 -67
- data/lib/ingenico/connect/sdk/domain/hostedcheckout/created_payment_output.rb +0 -85
- data/lib/ingenico/connect/sdk/domain/hostedcheckout/displayed_data.rb +0 -54
- data/lib/ingenico/connect/sdk/domain/hostedcheckout/frequency.rb +0 -42
- data/lib/ingenico/connect/sdk/domain/hostedcheckout/get_hosted_checkout_response.rb +0 -44
- data/lib/ingenico/connect/sdk/domain/hostedcheckout/hosted_checkout_specific_input.rb +0 -102
- data/lib/ingenico/connect/sdk/domain/hostedcheckout/mobile_payment_method_specific_input_hosted_checkout.rb +0 -74
- data/lib/ingenico/connect/sdk/domain/hostedcheckout/mobile_payment_product302_specific_input_hosted_checkout.rb +0 -35
- data/lib/ingenico/connect/sdk/domain/hostedcheckout/mobile_payment_product320_specific_input_hosted_checkout.rb +0 -51
- data/lib/ingenico/connect/sdk/domain/hostedcheckout/payment_product_filters_hosted_checkout.rb +0 -52
- data/lib/ingenico/connect/sdk/domain/hostedcheckout/recurring_payments_data.rb +0 -46
- data/lib/ingenico/connect/sdk/domain/hostedcheckout/trial_information.rb +0 -69
- data/lib/ingenico/connect/sdk/domain/hostedcheckout/trial_period.rb +0 -42
- data/lib/ingenico/connect/sdk/domain/hostedcheckout.rb +0 -5
- data/lib/ingenico/connect/sdk/domain/hostedmandatemanagement/create_hosted_mandate_management_request.rb +0 -46
- data/lib/ingenico/connect/sdk/domain/hostedmandatemanagement/create_hosted_mandate_management_response.rb +0 -49
- data/lib/ingenico/connect/sdk/domain/hostedmandatemanagement/get_hosted_mandate_management_response.rb +0 -44
- data/lib/ingenico/connect/sdk/domain/hostedmandatemanagement/hosted_mandate_info.rb +0 -72
- data/lib/ingenico/connect/sdk/domain/hostedmandatemanagement/hosted_mandate_management_specific_input.rb +0 -56
- data/lib/ingenico/connect/sdk/domain/hostedmandatemanagement.rb +0 -5
- data/lib/ingenico/connect/sdk/domain/installments/get_installment_request.rb +0 -58
- data/lib/ingenico/connect/sdk/domain/installments/installment_display_hints.rb +0 -49
- data/lib/ingenico/connect/sdk/domain/installments/installment_options.rb +0 -56
- data/lib/ingenico/connect/sdk/domain/installments/installment_options_response.rb +0 -40
- data/lib/ingenico/connect/sdk/domain/installments.rb +0 -5
- data/lib/ingenico/connect/sdk/domain/mandates/create_mandate_base.rb +0 -79
- data/lib/ingenico/connect/sdk/domain/mandates/create_mandate_request.rb +0 -18
- data/lib/ingenico/connect/sdk/domain/mandates/create_mandate_response.rb +0 -46
- data/lib/ingenico/connect/sdk/domain/mandates/create_mandate_with_return_url.rb +0 -35
- data/lib/ingenico/connect/sdk/domain/mandates/get_mandate_response.rb +0 -37
- data/lib/ingenico/connect/sdk/domain/mandates/mandate_address.rb +0 -63
- data/lib/ingenico/connect/sdk/domain/mandates/mandate_contact_details.rb +0 -35
- data/lib/ingenico/connect/sdk/domain/mandates/mandate_customer.rb +0 -71
- data/lib/ingenico/connect/sdk/domain/mandates/mandate_merchant_action.rb +0 -44
- data/lib/ingenico/connect/sdk/domain/mandates/mandate_personal_information.rb +0 -44
- data/lib/ingenico/connect/sdk/domain/mandates/mandate_personal_name.rb +0 -42
- data/lib/ingenico/connect/sdk/domain/mandates/mandate_redirect_data.rb +0 -18
- data/lib/ingenico/connect/sdk/domain/mandates/mandate_response.rb +0 -72
- data/lib/ingenico/connect/sdk/domain/mandates.rb +0 -5
- data/lib/ingenico/connect/sdk/domain/metadata/shopping_cart_extension.rb +0 -59
- data/lib/ingenico/connect/sdk/domain/metadata.rb +0 -1
- data/lib/ingenico/connect/sdk/domain/payment/abstract_bank_transfer_payment_method_specific_input.rb +0 -35
- data/lib/ingenico/connect/sdk/domain/payment/abstract_card_payment_method_specific_input.rb +0 -141
- data/lib/ingenico/connect/sdk/domain/payment/abstract_cash_payment_method_specific_input.rb +0 -18
- data/lib/ingenico/connect/sdk/domain/payment/abstract_e_invoice_payment_method_specific_input.rb +0 -35
- data/lib/ingenico/connect/sdk/domain/payment/abstract_payment_method_specific_output.rb +0 -35
- data/lib/ingenico/connect/sdk/domain/payment/abstract_redirect_payment_method_specific_input.rb +0 -63
- data/lib/ingenico/connect/sdk/domain/payment/abstract_redirect_payment_product4101_specific_input.rb +0 -18
- data/lib/ingenico/connect/sdk/domain/payment/abstract_redirect_payment_product840_specific_input.rb +0 -35
- data/lib/ingenico/connect/sdk/domain/payment/abstract_sepa_direct_debit_payment_method_specific_input.rb +0 -18
- data/lib/ingenico/connect/sdk/domain/payment/abstract_sepa_direct_debit_payment_product771_specific_input.rb +0 -37
- data/lib/ingenico/connect/sdk/domain/payment/abstract_three_d_secure.rb +0 -97
- data/lib/ingenico/connect/sdk/domain/payment/account_funding_recipient.rb +0 -74
- data/lib/ingenico/connect/sdk/domain/payment/additional_order_input.rb +0 -111
- data/lib/ingenico/connect/sdk/domain/payment/address_personal.rb +0 -37
- data/lib/ingenico/connect/sdk/domain/payment/afr_name.rb +0 -42
- data/lib/ingenico/connect/sdk/domain/payment/amount_breakdown.rb +0 -42
- data/lib/ingenico/connect/sdk/domain/payment/approve_payment_card_payment_method_specific_output.rb +0 -35
- data/lib/ingenico/connect/sdk/domain/payment/approve_payment_direct_debit_payment_method_specific_input.rb +0 -18
- data/lib/ingenico/connect/sdk/domain/payment/approve_payment_mobile_payment_method_specific_output.rb +0 -35
- data/lib/ingenico/connect/sdk/domain/payment/approve_payment_non_sepa_direct_debit_payment_method_specific_input.rb +0 -18
- data/lib/ingenico/connect/sdk/domain/payment/approve_payment_payment_method_specific_input.rb +0 -42
- data/lib/ingenico/connect/sdk/domain/payment/approve_payment_request.rb +0 -62
- data/lib/ingenico/connect/sdk/domain/payment/approve_payment_sepa_direct_debit_payment_method_specific_input.rb +0 -18
- data/lib/ingenico/connect/sdk/domain/payment/bank_transfer_payment_method_specific_input.rb +0 -18
- data/lib/ingenico/connect/sdk/domain/payment/bank_transfer_payment_method_specific_input_base.rb +0 -18
- data/lib/ingenico/connect/sdk/domain/payment/bank_transfer_payment_method_specific_output.rb +0 -37
- data/lib/ingenico/connect/sdk/domain/payment/browser_data.rb +0 -77
- data/lib/ingenico/connect/sdk/domain/payment/cancel_approval_payment_response.rb +0 -37
- data/lib/ingenico/connect/sdk/domain/payment/cancel_payment_card_payment_method_specific_output.rb +0 -35
- data/lib/ingenico/connect/sdk/domain/payment/cancel_payment_mobile_payment_method_specific_output.rb +0 -35
- data/lib/ingenico/connect/sdk/domain/payment/cancel_payment_response.rb +0 -55
- data/lib/ingenico/connect/sdk/domain/payment/capture_payment_request.rb +0 -42
- data/lib/ingenico/connect/sdk/domain/payment/card_payment_method_specific_input.rb +0 -89
- data/lib/ingenico/connect/sdk/domain/payment/card_payment_method_specific_input_base.rb +0 -37
- data/lib/ingenico/connect/sdk/domain/payment/card_payment_method_specific_output.rb +0 -83
- data/lib/ingenico/connect/sdk/domain/payment/card_recurrence_details.rb +0 -49
- data/lib/ingenico/connect/sdk/domain/payment/cash_payment_method_specific_input.rb +0 -93
- data/lib/ingenico/connect/sdk/domain/payment/cash_payment_method_specific_input_base.rb +0 -18
- data/lib/ingenico/connect/sdk/domain/payment/cash_payment_method_specific_output.rb +0 -37
- data/lib/ingenico/connect/sdk/domain/payment/cash_payment_product1503_specific_input.rb +0 -38
- data/lib/ingenico/connect/sdk/domain/payment/cash_payment_product1504_specific_input.rb +0 -18
- data/lib/ingenico/connect/sdk/domain/payment/cash_payment_product1521_specific_input.rb +0 -18
- data/lib/ingenico/connect/sdk/domain/payment/cash_payment_product1522_specific_input.rb +0 -18
- data/lib/ingenico/connect/sdk/domain/payment/cash_payment_product1523_specific_input.rb +0 -18
- data/lib/ingenico/connect/sdk/domain/payment/cash_payment_product1524_specific_input.rb +0 -18
- data/lib/ingenico/connect/sdk/domain/payment/cash_payment_product1526_specific_input.rb +0 -18
- data/lib/ingenico/connect/sdk/domain/payment/cash_payment_product_with_redirect_specific_input_base.rb +0 -35
- data/lib/ingenico/connect/sdk/domain/payment/complete_payment_card_payment_method_specific_input.rb +0 -37
- data/lib/ingenico/connect/sdk/domain/payment/complete_payment_request.rb +0 -55
- data/lib/ingenico/connect/sdk/domain/payment/complete_payment_response.rb +0 -18
- data/lib/ingenico/connect/sdk/domain/payment/contact_details.rb +0 -56
- data/lib/ingenico/connect/sdk/domain/payment/create_payment_request.rb +0 -143
- data/lib/ingenico/connect/sdk/domain/payment/create_payment_response.rb +0 -18
- data/lib/ingenico/connect/sdk/domain/payment/create_payment_result.rb +0 -55
- data/lib/ingenico/connect/sdk/domain/payment/customer.rb +0 -119
- data/lib/ingenico/connect/sdk/domain/payment/customer_account.rb +0 -118
- data/lib/ingenico/connect/sdk/domain/payment/customer_account_authentication.rb +0 -49
- data/lib/ingenico/connect/sdk/domain/payment/customer_approve_payment.rb +0 -35
- data/lib/ingenico/connect/sdk/domain/payment/customer_device.rb +0 -86
- data/lib/ingenico/connect/sdk/domain/payment/customer_payment_activity.rb +0 -49
- data/lib/ingenico/connect/sdk/domain/payment/decrypted_payment_data.rb +0 -86
- data/lib/ingenico/connect/sdk/domain/payment/device_fingerprint_details.rb +0 -42
- data/lib/ingenico/connect/sdk/domain/payment/device_render_options.rb +0 -55
- data/lib/ingenico/connect/sdk/domain/payment/e_invoice_payment_method_specific_input.rb +0 -44
- data/lib/ingenico/connect/sdk/domain/payment/e_invoice_payment_method_specific_input_base.rb +0 -18
- data/lib/ingenico/connect/sdk/domain/payment/e_invoice_payment_method_specific_output.rb +0 -46
- data/lib/ingenico/connect/sdk/domain/payment/e_invoice_payment_product9000_specific_input.rb +0 -44
- data/lib/ingenico/connect/sdk/domain/payment/e_invoice_payment_product9000_specific_output.rb +0 -35
- data/lib/ingenico/connect/sdk/domain/payment/exemption_output.rb +0 -49
- data/lib/ingenico/connect/sdk/domain/payment/external_cardholder_authentication_data.rb +0 -107
- data/lib/ingenico/connect/sdk/domain/payment/find_payments_response.rb +0 -61
- data/lib/ingenico/connect/sdk/domain/payment/g_pay_three_d_secure.rb +0 -65
- data/lib/ingenico/connect/sdk/domain/payment/gift_card_purchase.rb +0 -44
- data/lib/ingenico/connect/sdk/domain/payment/hosted_checkout_specific_output.rb +0 -42
- data/lib/ingenico/connect/sdk/domain/payment/installments.rb +0 -73
- data/lib/ingenico/connect/sdk/domain/payment/invoice_payment_method_specific_input.rb +0 -35
- data/lib/ingenico/connect/sdk/domain/payment/invoice_payment_method_specific_output.rb +0 -37
- data/lib/ingenico/connect/sdk/domain/payment/level3_summary_data.rb +0 -56
- data/lib/ingenico/connect/sdk/domain/payment/line_item.rb +0 -66
- data/lib/ingenico/connect/sdk/domain/payment/line_item_invoice_data.rb +0 -63
- data/lib/ingenico/connect/sdk/domain/payment/line_item_level3_interchange_information.rb +0 -84
- data/lib/ingenico/connect/sdk/domain/payment/loan_recipient.rb +0 -74
- data/lib/ingenico/connect/sdk/domain/payment/merchant.rb +0 -58
- data/lib/ingenico/connect/sdk/domain/payment/merchant_action.rb +0 -93
- data/lib/ingenico/connect/sdk/domain/payment/mobile_payment_data.rb +0 -42
- data/lib/ingenico/connect/sdk/domain/payment/mobile_payment_method_specific_input.rb +0 -81
- data/lib/ingenico/connect/sdk/domain/payment/mobile_payment_method_specific_output.rb +0 -69
- data/lib/ingenico/connect/sdk/domain/payment/mobile_payment_product320_specific_input.rb +0 -44
- data/lib/ingenico/connect/sdk/domain/payment/mobile_three_d_secure_challenge_parameters.rb +0 -56
- data/lib/ingenico/connect/sdk/domain/payment/non_sepa_direct_debit_payment_method_specific_input.rb +0 -95
- data/lib/ingenico/connect/sdk/domain/payment/non_sepa_direct_debit_payment_method_specific_output.rb +0 -37
- data/lib/ingenico/connect/sdk/domain/payment/non_sepa_direct_debit_payment_product705_specific_input.rb +0 -51
- data/lib/ingenico/connect/sdk/domain/payment/non_sepa_direct_debit_payment_product730_specific_input.rb +0 -37
- data/lib/ingenico/connect/sdk/domain/payment/order.rb +0 -107
- data/lib/ingenico/connect/sdk/domain/payment/order_approve_payment.rb +0 -55
- data/lib/ingenico/connect/sdk/domain/payment/order_invoice_data.rb +0 -60
- data/lib/ingenico/connect/sdk/domain/payment/order_line_details.rb +0 -112
- data/lib/ingenico/connect/sdk/domain/payment/order_output.rb +0 -46
- data/lib/ingenico/connect/sdk/domain/payment/order_references.rb +0 -72
- data/lib/ingenico/connect/sdk/domain/payment/order_references_approve_payment.rb +0 -35
- data/lib/ingenico/connect/sdk/domain/payment/order_type_information.rb +0 -56
- data/lib/ingenico/connect/sdk/domain/payment/payment.rb +0 -62
- data/lib/ingenico/connect/sdk/domain/payment/payment_account_on_file.rb +0 -42
- data/lib/ingenico/connect/sdk/domain/payment/payment_approval_response.rb +0 -65
- data/lib/ingenico/connect/sdk/domain/payment/payment_creation_output.rb +0 -56
- data/lib/ingenico/connect/sdk/domain/payment/payment_creation_references.rb +0 -42
- data/lib/ingenico/connect/sdk/domain/payment/payment_error_response.rb +0 -56
- data/lib/ingenico/connect/sdk/domain/payment/payment_output.rb +0 -137
- data/lib/ingenico/connect/sdk/domain/payment/payment_product3201_specific_output.rb +0 -37
- data/lib/ingenico/connect/sdk/domain/payment/payment_product771_specific_output.rb +0 -35
- data/lib/ingenico/connect/sdk/domain/payment/payment_product806_specific_output.rb +0 -46
- data/lib/ingenico/connect/sdk/domain/payment/payment_product836_specific_output.rb +0 -35
- data/lib/ingenico/connect/sdk/domain/payment/payment_product840_customer_account.rb +0 -98
- data/lib/ingenico/connect/sdk/domain/payment/payment_product840_specific_output.rb +0 -63
- data/lib/ingenico/connect/sdk/domain/payment/payment_product863_third_party_data.rb +0 -77
- data/lib/ingenico/connect/sdk/domain/payment/payment_references.rb +0 -77
- data/lib/ingenico/connect/sdk/domain/payment/payment_response.rb +0 -18
- data/lib/ingenico/connect/sdk/domain/payment/payment_status_output.rb +0 -49
- data/lib/ingenico/connect/sdk/domain/payment/personal_identification.rb +0 -49
- data/lib/ingenico/connect/sdk/domain/payment/personal_information.rb +0 -60
- data/lib/ingenico/connect/sdk/domain/payment/personal_name.rb +0 -35
- data/lib/ingenico/connect/sdk/domain/payment/protection_eligibility.rb +0 -42
- data/lib/ingenico/connect/sdk/domain/payment/redirect_data.rb +0 -18
- data/lib/ingenico/connect/sdk/domain/payment/redirect_payment_method_specific_input.rb +0 -125
- data/lib/ingenico/connect/sdk/domain/payment/redirect_payment_method_specific_input_base.rb +0 -46
- data/lib/ingenico/connect/sdk/domain/payment/redirect_payment_method_specific_output.rb +0 -105
- data/lib/ingenico/connect/sdk/domain/payment/redirect_payment_product4101_specific_input.rb +0 -49
- data/lib/ingenico/connect/sdk/domain/payment/redirect_payment_product4101_specific_input_base.rb +0 -35
- data/lib/ingenico/connect/sdk/domain/payment/redirect_payment_product809_specific_input.rb +0 -44
- data/lib/ingenico/connect/sdk/domain/payment/redirect_payment_product816_specific_input.rb +0 -37
- data/lib/ingenico/connect/sdk/domain/payment/redirect_payment_product840_specific_input.rb +0 -44
- data/lib/ingenico/connect/sdk/domain/payment/redirect_payment_product840_specific_input_base.rb +0 -18
- data/lib/ingenico/connect/sdk/domain/payment/redirect_payment_product861_specific_input.rb +0 -35
- data/lib/ingenico/connect/sdk/domain/payment/redirect_payment_product863_specific_input.rb +0 -42
- data/lib/ingenico/connect/sdk/domain/payment/redirect_payment_product869_specific_input.rb +0 -49
- data/lib/ingenico/connect/sdk/domain/payment/redirect_payment_product882_specific_input.rb +0 -35
- data/lib/ingenico/connect/sdk/domain/payment/redirection_data.rb +0 -42
- data/lib/ingenico/connect/sdk/domain/payment/refund_bank_method_specific_output.rb +0 -18
- data/lib/ingenico/connect/sdk/domain/payment/refund_card_method_specific_output.rb +0 -44
- data/lib/ingenico/connect/sdk/domain/payment/refund_cash_method_specific_output.rb +0 -18
- data/lib/ingenico/connect/sdk/domain/payment/refund_e_invoice_method_specific_output.rb +0 -18
- data/lib/ingenico/connect/sdk/domain/payment/refund_e_wallet_method_specific_output.rb +0 -37
- data/lib/ingenico/connect/sdk/domain/payment/refund_method_specific_output.rb +0 -49
- data/lib/ingenico/connect/sdk/domain/payment/refund_mobile_method_specific_output.rb +0 -35
- data/lib/ingenico/connect/sdk/domain/payment/refund_output.rb +0 -96
- data/lib/ingenico/connect/sdk/domain/payment/refund_payment_product840_customer_account.rb +0 -49
- data/lib/ingenico/connect/sdk/domain/payment/refund_payment_product840_specific_output.rb +0 -37
- data/lib/ingenico/connect/sdk/domain/payment/scheme_token_data.rb +0 -63
- data/lib/ingenico/connect/sdk/domain/payment/sdk_data_input.rb +0 -79
- data/lib/ingenico/connect/sdk/domain/payment/sdk_data_output.rb +0 -35
- data/lib/ingenico/connect/sdk/domain/payment/seller.rb +0 -114
- data/lib/ingenico/connect/sdk/domain/payment/sepa_direct_debit_payment_method_specific_input.rb +0 -86
- data/lib/ingenico/connect/sdk/domain/payment/sepa_direct_debit_payment_method_specific_input_base.rb +0 -37
- data/lib/ingenico/connect/sdk/domain/payment/sepa_direct_debit_payment_method_specific_output.rb +0 -53
- data/lib/ingenico/connect/sdk/domain/payment/sepa_direct_debit_payment_product771_specific_input.rb +0 -44
- data/lib/ingenico/connect/sdk/domain/payment/sepa_direct_debit_payment_product771_specific_input_base.rb +0 -44
- data/lib/ingenico/connect/sdk/domain/payment/shipping.rb +0 -86
- data/lib/ingenico/connect/sdk/domain/payment/shopping_cart.rb +0 -82
- data/lib/ingenico/connect/sdk/domain/payment/third_party_data.rb +0 -37
- data/lib/ingenico/connect/sdk/domain/payment/third_party_status_response.rb +0 -35
- data/lib/ingenico/connect/sdk/domain/payment/three_d_secure.rb +0 -46
- data/lib/ingenico/connect/sdk/domain/payment/three_d_secure_base.rb +0 -18
- data/lib/ingenico/connect/sdk/domain/payment/three_d_secure_data.rb +0 -49
- data/lib/ingenico/connect/sdk/domain/payment/three_d_secure_results.rb +0 -127
- data/lib/ingenico/connect/sdk/domain/payment/tokenize_payment_request.rb +0 -35
- data/lib/ingenico/connect/sdk/domain/payment/trustly_bank_account.rb +0 -56
- data/lib/ingenico/connect/sdk/domain/payment.rb +0 -5
- data/lib/ingenico/connect/sdk/domain/payout/abstract_payout_method_specific_input.rb +0 -18
- data/lib/ingenico/connect/sdk/domain/payout/approve_payout_request.rb +0 -35
- data/lib/ingenico/connect/sdk/domain/payout/bank_transfer_payout_method_specific_input.rb +0 -78
- data/lib/ingenico/connect/sdk/domain/payout/card_payout_method_specific_input.rb +0 -60
- data/lib/ingenico/connect/sdk/domain/payout/create_payout_request.rb +0 -146
- data/lib/ingenico/connect/sdk/domain/payout/find_payouts_response.rb +0 -61
- data/lib/ingenico/connect/sdk/domain/payout/payout_customer.rb +0 -71
- data/lib/ingenico/connect/sdk/domain/payout/payout_details.rb +0 -55
- data/lib/ingenico/connect/sdk/domain/payout/payout_error_response.rb +0 -56
- data/lib/ingenico/connect/sdk/domain/payout/payout_merchant.rb +0 -35
- data/lib/ingenico/connect/sdk/domain/payout/payout_recipient.rb +0 -49
- data/lib/ingenico/connect/sdk/domain/payout/payout_references.rb +0 -49
- data/lib/ingenico/connect/sdk/domain/payout/payout_response.rb +0 -18
- data/lib/ingenico/connect/sdk/domain/payout/payout_result.rb +0 -53
- data/lib/ingenico/connect/sdk/domain/payout.rb +0 -5
- data/lib/ingenico/connect/sdk/domain/product/abstract_indicator.rb +0 -42
- data/lib/ingenico/connect/sdk/domain/product/account_on_file.rb +0 -63
- data/lib/ingenico/connect/sdk/domain/product/account_on_file_attribute.rb +0 -42
- data/lib/ingenico/connect/sdk/domain/product/account_on_file_display_hints.rb +0 -47
- data/lib/ingenico/connect/sdk/domain/product/authentication_indicator.rb +0 -18
- data/lib/ingenico/connect/sdk/domain/product/boleto_bancario_requiredness_validator.rb +0 -35
- data/lib/ingenico/connect/sdk/domain/product/create_payment_product_session_request.rb +0 -37
- data/lib/ingenico/connect/sdk/domain/product/create_payment_product_session_response.rb +0 -37
- data/lib/ingenico/connect/sdk/domain/product/device_fingerprint_request.rb +0 -35
- data/lib/ingenico/connect/sdk/domain/product/device_fingerprint_response.rb +0 -42
- data/lib/ingenico/connect/sdk/domain/product/directory.rb +0 -40
- data/lib/ingenico/connect/sdk/domain/product/directory_entry.rb +0 -60
- data/lib/ingenico/connect/sdk/domain/product/empty_validator.rb +0 -18
- data/lib/ingenico/connect/sdk/domain/product/fixed_list_validator.rb +0 -39
- data/lib/ingenico/connect/sdk/domain/product/get_customer_details_request.rb +0 -47
- data/lib/ingenico/connect/sdk/domain/product/get_customer_details_response.rb +0 -98
- data/lib/ingenico/connect/sdk/domain/product/label_template_element.rb +0 -42
- data/lib/ingenico/connect/sdk/domain/product/length_validator.rb +0 -42
- data/lib/ingenico/connect/sdk/domain/product/mobile_payment_product_session302_specific_input.rb +0 -49
- data/lib/ingenico/connect/sdk/domain/product/mobile_payment_product_session302_specific_output.rb +0 -35
- data/lib/ingenico/connect/sdk/domain/product/payment_product.rb +0 -223
- data/lib/ingenico/connect/sdk/domain/product/payment_product302_specific_data.rb +0 -39
- data/lib/ingenico/connect/sdk/domain/product/payment_product320_specific_data.rb +0 -46
- data/lib/ingenico/connect/sdk/domain/product/payment_product863_specific_data.rb +0 -39
- data/lib/ingenico/connect/sdk/domain/product/payment_product_display_hints.rb +0 -49
- data/lib/ingenico/connect/sdk/domain/product/payment_product_field.rb +0 -67
- data/lib/ingenico/connect/sdk/domain/product/payment_product_field_data_restrictions.rb +0 -44
- data/lib/ingenico/connect/sdk/domain/product/payment_product_field_display_element.rb +0 -56
- data/lib/ingenico/connect/sdk/domain/product/payment_product_field_display_hints.rb +0 -102
- data/lib/ingenico/connect/sdk/domain/product/payment_product_field_form_element.rb +0 -47
- data/lib/ingenico/connect/sdk/domain/product/payment_product_field_tooltip.rb +0 -42
- data/lib/ingenico/connect/sdk/domain/product/payment_product_field_validators.rb +0 -122
- data/lib/ingenico/connect/sdk/domain/product/payment_product_group.rb +0 -82
- data/lib/ingenico/connect/sdk/domain/product/payment_product_group_response.rb +0 -18
- data/lib/ingenico/connect/sdk/domain/product/payment_product_groups.rb +0 -40
- data/lib/ingenico/connect/sdk/domain/product/payment_product_networks_response.rb +0 -39
- data/lib/ingenico/connect/sdk/domain/product/payment_product_response.rb +0 -18
- data/lib/ingenico/connect/sdk/domain/product/payment_products.rb +0 -40
- data/lib/ingenico/connect/sdk/domain/product/range_validator.rb +0 -42
- data/lib/ingenico/connect/sdk/domain/product/regular_expression_validator.rb +0 -35
- data/lib/ingenico/connect/sdk/domain/product/value_mapping_element.rb +0 -56
- data/lib/ingenico/connect/sdk/domain/product.rb +0 -5
- data/lib/ingenico/connect/sdk/domain/refund/approve_refund_request.rb +0 -35
- data/lib/ingenico/connect/sdk/domain/refund/bank_account_bban_refund.rb +0 -49
- data/lib/ingenico/connect/sdk/domain/refund/bank_refund_method_specific_input.rb +0 -53
- data/lib/ingenico/connect/sdk/domain/refund/find_refunds_response.rb +0 -61
- data/lib/ingenico/connect/sdk/domain/refund/refund_customer.rb +0 -62
- data/lib/ingenico/connect/sdk/domain/refund/refund_error_response.rb +0 -56
- data/lib/ingenico/connect/sdk/domain/refund/refund_references.rb +0 -35
- data/lib/ingenico/connect/sdk/domain/refund/refund_request.rb +0 -71
- data/lib/ingenico/connect/sdk/domain/refund/refund_response.rb +0 -18
- data/lib/ingenico/connect/sdk/domain/refund/refund_result.rb +0 -53
- data/lib/ingenico/connect/sdk/domain/refund/refunds_response.rb +0 -40
- data/lib/ingenico/connect/sdk/domain/refund.rb +0 -5
- data/lib/ingenico/connect/sdk/domain/riskassessments/contact_details_risk_assessment.rb +0 -35
- data/lib/ingenico/connect/sdk/domain/riskassessments/customer_account_risk_assessment.rb +0 -42
- data/lib/ingenico/connect/sdk/domain/riskassessments/customer_device_risk_assessment.rb +0 -42
- data/lib/ingenico/connect/sdk/domain/riskassessments/customer_risk_assessment.rb +0 -105
- data/lib/ingenico/connect/sdk/domain/riskassessments/merchant_risk_assessment.rb +0 -35
- data/lib/ingenico/connect/sdk/domain/riskassessments/order_risk_assessment.rb +0 -64
- data/lib/ingenico/connect/sdk/domain/riskassessments/personal_information_risk_assessment.rb +0 -37
- data/lib/ingenico/connect/sdk/domain/riskassessments/personal_name_risk_assessment.rb +0 -18
- data/lib/ingenico/connect/sdk/domain/riskassessments/risk_assessment.rb +0 -62
- data/lib/ingenico/connect/sdk/domain/riskassessments/risk_assessment_bank_account.rb +0 -46
- data/lib/ingenico/connect/sdk/domain/riskassessments/risk_assessment_card.rb +0 -37
- data/lib/ingenico/connect/sdk/domain/riskassessments/risk_assessment_response.rb +0 -40
- data/lib/ingenico/connect/sdk/domain/riskassessments/shipping_risk_assessment.rb +0 -51
- data/lib/ingenico/connect/sdk/domain/riskassessments.rb +0 -5
- data/lib/ingenico/connect/sdk/domain/services/bank_data.rb +0 -56
- data/lib/ingenico/connect/sdk/domain/services/bank_details.rb +0 -46
- data/lib/ingenico/connect/sdk/domain/services/bank_details_request.rb +0 -18
- data/lib/ingenico/connect/sdk/domain/services/bank_details_response.rb +0 -64
- data/lib/ingenico/connect/sdk/domain/services/convert_amount.rb +0 -35
- data/lib/ingenico/connect/sdk/domain/services/get_iin_details_request.rb +0 -44
- data/lib/ingenico/connect/sdk/domain/services/get_iin_details_response.rb +0 -61
- data/lib/ingenico/connect/sdk/domain/services/get_privacy_policy_response.rb +0 -35
- data/lib/ingenico/connect/sdk/domain/services/iin_detail.rb +0 -42
- data/lib/ingenico/connect/sdk/domain/services/payment_context.rb +0 -58
- data/lib/ingenico/connect/sdk/domain/services/swift.rb +0 -98
- data/lib/ingenico/connect/sdk/domain/services/test_connection.rb +0 -35
- data/lib/ingenico/connect/sdk/domain/services.rb +0 -5
- data/lib/ingenico/connect/sdk/domain/sessions/payment_product_filters_client_session.rb +0 -45
- data/lib/ingenico/connect/sdk/domain/sessions/session_request.rb +0 -48
- data/lib/ingenico/connect/sdk/domain/sessions/session_response.rb +0 -74
- data/lib/ingenico/connect/sdk/domain/sessions.rb +0 -5
- data/lib/ingenico/connect/sdk/domain/token/abstract_token.rb +0 -35
- data/lib/ingenico/connect/sdk/domain/token/approve_token_request.rb +0 -18
- data/lib/ingenico/connect/sdk/domain/token/contact_details_token.rb +0 -18
- data/lib/ingenico/connect/sdk/domain/token/create_token_request.rb +0 -78
- data/lib/ingenico/connect/sdk/domain/token/create_token_response.rb +0 -49
- data/lib/ingenico/connect/sdk/domain/token/creditor.rb +0 -105
- data/lib/ingenico/connect/sdk/domain/token/customer_token.rb +0 -46
- data/lib/ingenico/connect/sdk/domain/token/customer_token_with_contact_details.rb +0 -37
- data/lib/ingenico/connect/sdk/domain/token/debtor.rb +0 -105
- data/lib/ingenico/connect/sdk/domain/token/mandate_approval.rb +0 -49
- data/lib/ingenico/connect/sdk/domain/token/mandate_non_sepa_direct_debit.rb +0 -46
- data/lib/ingenico/connect/sdk/domain/token/mandate_sepa_direct_debit.rb +0 -37
- data/lib/ingenico/connect/sdk/domain/token/mandate_sepa_direct_debit_with_mandate_id.rb +0 -35
- data/lib/ingenico/connect/sdk/domain/token/mandate_sepa_direct_debit_without_creditor.rb +0 -76
- data/lib/ingenico/connect/sdk/domain/token/personal_information_token.rb +0 -37
- data/lib/ingenico/connect/sdk/domain/token/personal_name_token.rb +0 -18
- data/lib/ingenico/connect/sdk/domain/token/token_card.rb +0 -46
- data/lib/ingenico/connect/sdk/domain/token/token_card_data.rb +0 -51
- data/lib/ingenico/connect/sdk/domain/token/token_e_wallet.rb +0 -46
- data/lib/ingenico/connect/sdk/domain/token/token_e_wallet_data.rb +0 -35
- data/lib/ingenico/connect/sdk/domain/token/token_non_sepa_direct_debit.rb +0 -46
- data/lib/ingenico/connect/sdk/domain/token/token_non_sepa_direct_debit_payment_product705_specific_data.rb +0 -44
- data/lib/ingenico/connect/sdk/domain/token/token_non_sepa_direct_debit_payment_product730_specific_data.rb +0 -37
- data/lib/ingenico/connect/sdk/domain/token/token_response.rb +0 -85
- data/lib/ingenico/connect/sdk/domain/token/token_sepa_direct_debit.rb +0 -46
- data/lib/ingenico/connect/sdk/domain/token/token_sepa_direct_debit_without_creditor.rb +0 -46
- data/lib/ingenico/connect/sdk/domain/token/update_token_request.rb +0 -71
- data/lib/ingenico/connect/sdk/domain/token.rb +0 -5
- data/lib/ingenico/connect/sdk/endpoint_configuration.rb +0 -136
- data/lib/ingenico/connect/sdk/exceptions.rb +0 -1
- data/lib/ingenico/connect/sdk/factory.rb +0 -213
- data/lib/ingenico/connect/sdk/global_collect_exception.rb +0 -20
- data/lib/ingenico/connect/sdk/idempotence_exception.rb +0 -28
- data/lib/ingenico/connect/sdk/logging/communicator_logger.rb +0 -26
- data/lib/ingenico/connect/sdk/logging/log_message_builder.rb +0 -88
- data/lib/ingenico/connect/sdk/logging/logging_capable.rb +0 -19
- data/lib/ingenico/connect/sdk/logging/logging_util.rb +0 -320
- data/lib/ingenico/connect/sdk/logging/obfuscation/body_obfuscator.rb +0 -102
- data/lib/ingenico/connect/sdk/logging/obfuscation/header_obfuscator.rb +0 -56
- data/lib/ingenico/connect/sdk/logging/obfuscation/obfuscation_capable.rb +0 -23
- data/lib/ingenico/connect/sdk/logging/obfuscation/obfuscation_rule.rb +0 -49
- data/lib/ingenico/connect/sdk/logging/request_log_message_builder.rb +0 -52
- data/lib/ingenico/connect/sdk/logging/response_log_message_builder.rb +0 -43
- data/lib/ingenico/connect/sdk/logging/ruby_communicator_logger.rb +0 -63
- data/lib/ingenico/connect/sdk/logging/stdout_communicator_logger.rb +0 -38
- data/lib/ingenico/connect/sdk/marshaller.rb +0 -27
- data/lib/ingenico/connect/sdk/marshaller_syntax_exception.rb +0 -9
- data/lib/ingenico/connect/sdk/merchant/captures/captures_client.rb +0 -93
- data/lib/ingenico/connect/sdk/merchant/captures.rb +0 -5
- data/lib/ingenico/connect/sdk/merchant/disputes/disputes_client.rb +0 -153
- data/lib/ingenico/connect/sdk/merchant/disputes/upload_file_request.rb +0 -30
- data/lib/ingenico/connect/sdk/merchant/disputes.rb +0 -5
- data/lib/ingenico/connect/sdk/merchant/files/files_client.rb +0 -58
- data/lib/ingenico/connect/sdk/merchant/files.rb +0 -5
- data/lib/ingenico/connect/sdk/merchant/hostedcheckouts/hostedcheckouts_client.rb +0 -116
- data/lib/ingenico/connect/sdk/merchant/hostedcheckouts.rb +0 -5
- data/lib/ingenico/connect/sdk/merchant/hostedmandatemanagements/hostedmandatemanagements_client.rb +0 -87
- data/lib/ingenico/connect/sdk/merchant/hostedmandatemanagements.rb +0 -5
- data/lib/ingenico/connect/sdk/merchant/installments/installments_client.rb +0 -56
- data/lib/ingenico/connect/sdk/merchant/installments.rb +0 -5
- data/lib/ingenico/connect/sdk/merchant/mandates/mandates_client.rb +0 -212
- data/lib/ingenico/connect/sdk/merchant/mandates.rb +0 -5
- data/lib/ingenico/connect/sdk/merchant/merchant_client.rb +0 -135
- data/lib/ingenico/connect/sdk/merchant/payments/find_payments_params.rb +0 -46
- data/lib/ingenico/connect/sdk/merchant/payments/payments_client.rb +0 -567
- data/lib/ingenico/connect/sdk/merchant/payments.rb +0 -5
- data/lib/ingenico/connect/sdk/merchant/payouts/find_payouts_params.rb +0 -42
- data/lib/ingenico/connect/sdk/merchant/payouts/payouts_client.rb +0 -208
- data/lib/ingenico/connect/sdk/merchant/payouts.rb +0 -5
- data/lib/ingenico/connect/sdk/merchant/productgroups/find_productgroups_params.rb +0 -65
- data/lib/ingenico/connect/sdk/merchant/productgroups/get_productgroup_params.rb +0 -65
- data/lib/ingenico/connect/sdk/merchant/productgroups/productgroups_client.rb +0 -120
- data/lib/ingenico/connect/sdk/merchant/productgroups.rb +0 -5
- data/lib/ingenico/connect/sdk/merchant/products/directory_params.rb +0 -34
- data/lib/ingenico/connect/sdk/merchant/products/find_products_params.rb +0 -65
- data/lib/ingenico/connect/sdk/merchant/products/get_product_params.rb +0 -69
- data/lib/ingenico/connect/sdk/merchant/products/networks_params.rb +0 -42
- data/lib/ingenico/connect/sdk/merchant/products/products_client.rb +0 -250
- data/lib/ingenico/connect/sdk/merchant/products.rb +0 -5
- data/lib/ingenico/connect/sdk/merchant/refunds/find_refunds_params.rb +0 -46
- data/lib/ingenico/connect/sdk/merchant/refunds/refunds_client.rb +0 -177
- data/lib/ingenico/connect/sdk/merchant/refunds.rb +0 -5
- data/lib/ingenico/connect/sdk/merchant/riskassessments/riskassessments_client.rb +0 -84
- data/lib/ingenico/connect/sdk/merchant/riskassessments.rb +0 -5
- data/lib/ingenico/connect/sdk/merchant/services/convert_amount_params.rb +0 -38
- data/lib/ingenico/connect/sdk/merchant/services/privacypolicy_params.rb +0 -34
- data/lib/ingenico/connect/sdk/merchant/services/services_client.rb +0 -168
- data/lib/ingenico/connect/sdk/merchant/services.rb +0 -5
- data/lib/ingenico/connect/sdk/merchant/sessions/sessions_client.rb +0 -56
- data/lib/ingenico/connect/sdk/merchant/sessions.rb +0 -5
- data/lib/ingenico/connect/sdk/merchant/tokens/delete_token_params.rb +0 -30
- data/lib/ingenico/connect/sdk/merchant/tokens/tokens_client.rb +0 -179
- data/lib/ingenico/connect/sdk/merchant/tokens.rb +0 -5
- data/lib/ingenico/connect/sdk/merchant.rb +0 -5
- data/lib/ingenico/connect/sdk/meta_data_provider.rb +0 -156
- data/lib/ingenico/connect/sdk/modules.rb +0 -187
- data/lib/ingenico/connect/sdk/multipart_form_data_object.rb +0 -47
- data/lib/ingenico/connect/sdk/multipart_form_data_request.rb +0 -13
- data/lib/ingenico/connect/sdk/not_found_exception.rb +0 -19
- data/lib/ingenico/connect/sdk/param_request.rb +0 -14
- data/lib/ingenico/connect/sdk/pooled_connection.rb +0 -26
- data/lib/ingenico/connect/sdk/proxy_configuration.rb +0 -76
- data/lib/ingenico/connect/sdk/reference_exception.rb +0 -19
- data/lib/ingenico/connect/sdk/request_header.rb +0 -64
- data/lib/ingenico/connect/sdk/request_param.rb +0 -28
- data/lib/ingenico/connect/sdk/response_exception.rb +0 -56
- data/lib/ingenico/connect/sdk/response_header.rb +0 -78
- data/lib/ingenico/connect/sdk/session.rb +0 -43
- data/lib/ingenico/connect/sdk/uploadable_file.rb +0 -33
- data/lib/ingenico/connect/sdk/validation_exception.rb +0 -19
- data/lib/ingenico/connect/sdk/webhooks/api_version_mismatch_exception.rb +0 -24
- data/lib/ingenico/connect/sdk/webhooks/in_memory_secret_key_store.rb +0 -61
- data/lib/ingenico/connect/sdk/webhooks/secret_key_not_available_exception.rb +0 -23
- data/lib/ingenico/connect/sdk/webhooks/secret_key_store.rb +0 -20
- data/lib/ingenico/connect/sdk/webhooks/signature_validation_exception.rb +0 -22
- data/lib/ingenico/connect/sdk/webhooks/signature_validator.rb +0 -83
- data/lib/ingenico/connect/sdk/webhooks/webhooks.rb +0 -26
- data/lib/ingenico/connect/sdk/webhooks/webhooks_event.rb +0 -69
- data/lib/ingenico/connect/sdk/webhooks/webhooks_helper.rb +0 -48
- data/lib/ingenico/connect/sdk/webhooks/webhooks_helper_builder.rb +0 -30
- data/spec/lib/defaultimpl/default_authenticator_spec.rb +0 -74
- data/spec/lib/defaultimpl/default_connection_idempotence_spec.rb +0 -141
- data/spec/lib/defaultimpl/default_connection_logger_spec.rb +0 -569
- data/spec/lib/defaultimpl/default_connection_spec.rb +0 -351
- data/spec/lib/defaultimpl/default_marshaller_spec.rb +0 -36
- data/spec/lib/logging/header_obfuscator_spec.rb +0 -51
- data/spec/lib/logging/legacy_logging_spec.rb +0 -178
- data/spec/lib/logging/logging_util_spec.rb +0 -150
- data/spec/lib/logging/obfuscator_spec.rb +0 -52
- data/spec/lib/logging/value_obfuscator_spec.rb +0 -107
- data/spec/lib/meta_data_provider_spec.rb +0 -93
- /data/lib/{ingenico → worldline}/connect/sdk/domain.rb +0 -0
- /data/lib/{ingenico → worldline}/connect/sdk/logging/obfuscation.rb +0 -0
- /data/lib/{ingenico → worldline}/connect/sdk/logging.rb +0 -0
- /data/lib/{ingenico → worldline}/connect/sdk/webhooks.rb +0 -0
- /data/lib/{ingenico → worldline}/connect/sdk.rb +0 -0
- /data/spec/fixtures/resources/{defaultimpl → communication}/convertAmount.json +0 -0
- /data/spec/fixtures/resources/{defaultimpl → communication}/createPayment.failure.invalidCardNumber.json +0 -0
- /data/spec/fixtures/resources/{defaultimpl → communication}/createPayment.failure.rejected.json +0 -0
- /data/spec/fixtures/resources/{defaultimpl → communication}/createPayment.json +0 -0
- /data/spec/fixtures/resources/{defaultimpl → communication}/createPayment.unicode.json +0 -0
- /data/spec/fixtures/resources/{defaultimpl → communication}/idempotence_duplicate_failure.json +0 -0
- /data/spec/fixtures/resources/{defaultimpl → communication}/idempotence_rejected.json +0 -0
- /data/spec/fixtures/resources/{defaultimpl → communication}/idempotence_success.json +0 -0
- /data/spec/fixtures/resources/{defaultimpl → communication}/notFound.html +0 -0
- /data/spec/fixtures/resources/{defaultimpl → communication}/testConnection.json +0 -0
- /data/spec/fixtures/resources/{defaultimpl → communication}/unknownServerError.json +0 -0
@@ -0,0 +1,510 @@
|
|
1
|
+
require 'uri'
|
2
|
+
require 'worldline/connect/sdk/communication/communication_exception'
|
3
|
+
require 'worldline/connect/sdk/communication/multipart_form_data_object'
|
4
|
+
require 'worldline/connect/sdk/communication/multipart_form_data_request'
|
5
|
+
require 'worldline/connect/sdk/communication/not_found_exception'
|
6
|
+
require 'worldline/connect/sdk/communication/pooled_connection'
|
7
|
+
require 'worldline/connect/sdk/communication/request_header'
|
8
|
+
require 'worldline/connect/sdk/communication/response_exception'
|
9
|
+
require 'worldline/connect/sdk/communication/response_header'
|
10
|
+
require 'worldline/connect/sdk/logging/logging_capable'
|
11
|
+
require 'worldline/connect/sdk/logging/obfuscation/obfuscation_capable'
|
12
|
+
|
13
|
+
module Worldline
|
14
|
+
module Connect
|
15
|
+
module SDK
|
16
|
+
# Class responsible for facilitating communication with the Worldline Global Collect platform.
|
17
|
+
# It combines the following classes to provide communication functionality:
|
18
|
+
#
|
19
|
+
# api_endpoint:: the base URL to the Worldline Global Collect platform
|
20
|
+
# connection:: {Worldline::Connect::SDK::Communication::Connection} used to communicate with the Worldline Global Collect platform
|
21
|
+
# authenticator:: {Worldline::Connect::SDK::Authentication::Authenticator} used for authenticating messages sent
|
22
|
+
# metadata_provider:: {Worldline::Connect::SDK::Communication::MetadataProvider} object containing information relevant for sending requests
|
23
|
+
# marshaller:: {Worldline::Connect::SDK::JSON::Marshaller} that is used to marshal and unmarshal data to and from JSON format
|
24
|
+
#
|
25
|
+
# @attr_reader [Worldline::Connect::SDK::JSON::Marshaller] marshaller A Marshaller instance used by the communicator for serializing/deserializing to/from JSON
|
26
|
+
#
|
27
|
+
class Communicator
|
28
|
+
include Logging::LoggingCapable
|
29
|
+
include Logging::Obfuscation::ObfuscationCapable
|
30
|
+
|
31
|
+
# Creates a new Communicator.
|
32
|
+
#
|
33
|
+
# @param api_endpoint [String] the base URL to the Worldline Global Collect platform
|
34
|
+
# @param connection [Worldline::Connect::SDK::Communication::Connection] used to communicate with the Worldline Global Collect platform
|
35
|
+
# @param authenticator [Worldline::Connect::SDK::Authentication::Authenticator] used for authenticating messages sent
|
36
|
+
# @param metadata_provider [Worldline::Connect::SDK::Communication::MetadataProvider] object containing information relevant for sending requests
|
37
|
+
# @param marshaller [Worldline::Connect::SDK::JSON::Marshaller] used to marshal and unmarshal data to and from JSON format
|
38
|
+
#
|
39
|
+
def initialize(api_endpoint, connection, authenticator, metadata_provider, marshaller)
|
40
|
+
raise ArgumentError.new('api_endpoint is required') unless api_endpoint
|
41
|
+
raise ArgumentError.new('connection is required') unless connection
|
42
|
+
raise ArgumentError.new('authenticator is required') unless authenticator
|
43
|
+
raise ArgumentError.new('metadata_provider is required') unless metadata_provider
|
44
|
+
raise ArgumentError('marshaller is required') if marshaller.nil?
|
45
|
+
|
46
|
+
uri = URI(api_endpoint)
|
47
|
+
raise RuntimeError('api_endpoint should not contain a path') unless uri.path.nil? || uri.path.empty?
|
48
|
+
unless uri.userinfo.nil? && uri.query.nil? && uri.fragment.nil?
|
49
|
+
raise RuntimeError('api_endpoint should not contain user info, query or fragment')
|
50
|
+
end
|
51
|
+
@api_endpoint = uri
|
52
|
+
@connection = connection
|
53
|
+
@authenticator = authenticator
|
54
|
+
@metadata_provider = metadata_provider
|
55
|
+
@marshaller = marshaller
|
56
|
+
end
|
57
|
+
|
58
|
+
# Performs a GET request to the Worldline Global Collect platform and returns the response as the given response type.
|
59
|
+
#
|
60
|
+
# @param relative_path [String] path relative to the API endpoint
|
61
|
+
# @param request_headers [Array<Worldline::Connect::SDK::Communication::RequestHeader>, nil] optional array of request headers
|
62
|
+
# @param request_parameters [Worldline::Connect::SDK::Communication::ParamRequest, nil] optional request parameters
|
63
|
+
# @param response_type [Type] the response type.
|
64
|
+
# @param context [Worldline::Connect::SDK::CallContext, nil] optional call context.
|
65
|
+
# @return the response of the GET request as the given response type
|
66
|
+
# @raise [Worldline::Connect::SDK::Communication::ResponseException] if the request could not be fulfilled successfully.
|
67
|
+
# This occurs for example if the request is not authenticated correctly
|
68
|
+
# @raise [Worldline::Connect::SDK::Communication::NotFoundException] if the requested resource is not found
|
69
|
+
# @raise [Worldline::Connect::SDK::Communication::CommunicationException] if there is an error in communicating with the Worldline Global Collect platform.
|
70
|
+
# This occurs for example if a timeout occurs.
|
71
|
+
def get(relative_path, request_headers, request_parameters, response_type, context)
|
72
|
+
request_parameter_list = request_parameters && request_parameters.to_request_parameters
|
73
|
+
uri = to_absolute_uri(relative_path, request_parameter_list)
|
74
|
+
|
75
|
+
request_headers = [] if request_headers.nil?
|
76
|
+
add_generic_headers('GET', uri, request_headers, context)
|
77
|
+
|
78
|
+
response_status_code, response_headers, response_body = nil
|
79
|
+
@connection.get(uri, request_headers) do |status_code, headers, content|
|
80
|
+
response_status_code = status_code
|
81
|
+
response_headers = headers
|
82
|
+
response_body = content.read.force_encoding('UTF-8')
|
83
|
+
end
|
84
|
+
process_response(response_body, response_status_code, response_headers, response_type, relative_path, context)
|
85
|
+
end
|
86
|
+
|
87
|
+
# Performs a GET request to the Worldline Global Collect platform and yields the response as the headers and body.
|
88
|
+
#
|
89
|
+
# @param relative_path [String] Path relative to the API endpoint
|
90
|
+
# @param request_headers [Array<Worldline::Connect::SDK::Communication::RequestHeader>, nil] Optional array of request headers
|
91
|
+
# @param request_parameters [Worldline::Connect::SDK::Communication::ParamRequest, nil] Optional request parameters
|
92
|
+
# @param context [Worldline::Connect::SDK::CallContext, nil] Optional call context.
|
93
|
+
# @yield [Array<Worldline::Connect::SDK::Communication::ResponseHeader>, IO] The response headers and body.
|
94
|
+
# @raise [Worldline::Connect::SDK::Communication::ResponseException] if the request could not be fulfilled successfully.
|
95
|
+
# This occurs for example if the request is not authenticated correctly
|
96
|
+
# @raise [Worldline::Connect::SDK::Communication::NotFoundException] if the requested resource is not found
|
97
|
+
# @raise [Worldline::Connect::SDK::Communication::CommunicationException] if there is an error in communicating with the Worldline Global Collect platform.
|
98
|
+
# This occurs for example if a timeout occurs.
|
99
|
+
def get_with_binary_response(relative_path, request_headers, request_parameters, context)
|
100
|
+
request_parameter_list = request_parameters && request_parameters.to_request_parameters
|
101
|
+
uri = to_absolute_uri(relative_path, request_parameter_list)
|
102
|
+
|
103
|
+
request_headers = [] if request_headers.nil?
|
104
|
+
add_generic_headers('GET', uri, request_headers, context)
|
105
|
+
|
106
|
+
response_status_code, response_headers, response_body = nil
|
107
|
+
@connection.get(uri, request_headers) do |status_code, headers, content|
|
108
|
+
response_status_code = status_code
|
109
|
+
response_headers = headers
|
110
|
+
response_body = process_binary_response(status_code, content, headers, context) do |h, c|
|
111
|
+
yield h, c
|
112
|
+
end
|
113
|
+
end
|
114
|
+
throw_exception_if_necessary(response_body, response_status_code, response_headers, relative_path)
|
115
|
+
end
|
116
|
+
|
117
|
+
# Performs a DELETE request to the Worldline Global Collect platform and returns the response as the given response type.
|
118
|
+
#
|
119
|
+
# @param relative_path [String] Path relative to the API endpoint
|
120
|
+
# @param request_headers [Array<Worldline::Connect::SDK::Communication::RequestHeader>, nil] Optional array of request headers
|
121
|
+
# @param request_parameters [Worldline::Connect::SDK::Communication::ParamRequest, nil] Optional request parameters
|
122
|
+
# @param response_type [Type] The response type.
|
123
|
+
# @param context [Worldline::Connect::SDK::CallContext, nil] Optional call context.
|
124
|
+
# @return The response of the DELETE request as the given response type
|
125
|
+
# @raise [Worldline::Connect::SDK::Communication::ResponseException] if the request could not be fulfilled successfully.
|
126
|
+
# This occurs for example if the request is not authenticated correctly
|
127
|
+
# @raise [Worldline::Connect::SDK::Communication::NotFoundException] if the requested resource is not found
|
128
|
+
# @raise [Worldline::Connect::SDK::Communication::CommunicationException] if there is an error in communicating with the Worldline Global Collect platform.
|
129
|
+
# This occurs for example if a timeout occurs.
|
130
|
+
def delete(relative_path, request_headers, request_parameters, response_type, context)
|
131
|
+
request_parameter_list = request_parameters && request_parameters.to_request_parameters
|
132
|
+
uri = to_absolute_uri(relative_path, request_parameter_list)
|
133
|
+
request_headers = [] if request_headers.nil?
|
134
|
+
add_generic_headers('DELETE', uri, request_headers, context)
|
135
|
+
|
136
|
+
response_status_code, response_headers, response_body = nil
|
137
|
+
@connection.delete(uri, request_headers) do |status_code, headers, content|
|
138
|
+
response_status_code = status_code
|
139
|
+
response_headers = headers
|
140
|
+
response_body = content.read.force_encoding('UTF-8')
|
141
|
+
end
|
142
|
+
process_response(response_body, response_status_code, response_headers, response_type, relative_path, context)
|
143
|
+
end
|
144
|
+
|
145
|
+
# Performs a DELETE request to the Worldline Global Collect platform and yields the response as the headers and body.
|
146
|
+
#
|
147
|
+
# @param relative_path [String] Path relative to the API endpoint
|
148
|
+
# @param request_headers [Array<Worldline::Connect::SDK::Communication::RequestHeader>, nil] Optional array of request headers
|
149
|
+
# @param request_parameters [Worldline::Connect::SDK::Communication::ParamRequest, nil] Optional request parameters
|
150
|
+
# @param context [Worldline::Connect::SDK::CallContext, nil] Optional call context.
|
151
|
+
# @yield [Array<Worldline::Connect::SDK::Communication::ResponseHeader>, IO] The response headers and body.
|
152
|
+
# @raise [Worldline::Connect::SDK::Communication::ResponseException] if the request could not be fulfilled successfully.
|
153
|
+
# This occurs for example if the request is not authenticated correctly
|
154
|
+
# @raise [Worldline::Connect::SDK::Communication::NotFoundException] if the requested resource is not found
|
155
|
+
# @raise [Worldline::Connect::SDK::Communication::CommunicationException] if there is an error in communicating with the Worldline Global Collect platform.
|
156
|
+
# This occurs for example if a timeout occurs.
|
157
|
+
def delete_with_binary_response(relative_path, request_headers, request_parameters, context)
|
158
|
+
request_parameter_list = request_parameters && request_parameters.to_request_parameters
|
159
|
+
uri = to_absolute_uri(relative_path, request_parameter_list)
|
160
|
+
request_headers = [] if request_headers.nil?
|
161
|
+
add_generic_headers('DELETE', uri, request_headers, context)
|
162
|
+
|
163
|
+
response_status_code, response_headers, response_body = nil
|
164
|
+
@connection.delete(uri, request_headers) do |status_code, headers, content|
|
165
|
+
response_status_code = status_code
|
166
|
+
response_headers = headers
|
167
|
+
response_body = process_binary_response(status_code, content, headers, context) do |h, c|
|
168
|
+
yield h, c
|
169
|
+
end
|
170
|
+
end
|
171
|
+
throw_exception_if_necessary(response_body, response_status_code, response_headers, relative_path)
|
172
|
+
end
|
173
|
+
|
174
|
+
# Performs a POST request to the Worldline Global Collect platform and returns the response as the given response type.
|
175
|
+
#
|
176
|
+
# @param relative_path [String] Path relative to the API endpoint
|
177
|
+
# @param request_headers [Array<Worldline::Connect::SDK::Communication::RequestHeader>, nil] Optional array of request headers
|
178
|
+
# @param request_parameters [Worldline::Connect::SDK::Communication::ParamRequest, nil] Optional request parameters
|
179
|
+
# @param request_body [Worldline::Connect::SDK::Domain::DataObject, Worldline::Connect::SDK::Communication::MultipartFormDataObject, Worldline::Connect::SDK::Communication::MultipartFormDataRequest, nil]
|
180
|
+
# The optional request body
|
181
|
+
# @param response_type [Type] The response type.
|
182
|
+
# @param context [Worldline::Connect::SDK::CallContext, nil] Optional call context.
|
183
|
+
# @return The response of the POST request as the given response type
|
184
|
+
# @raise [Worldline::Connect::SDK::Communication::ResponseException] if the request could not be fulfilled successfully.
|
185
|
+
# This occurs for example if the request is not authenticated correctly
|
186
|
+
# @raise [Worldline::Connect::SDK::Communication::NotFoundException] if the requested resource is not found
|
187
|
+
# @raise [Worldline::Connect::SDK::Communication::CommunicationException] if there is an error in communicating with the Worldline Global Collect platform.
|
188
|
+
# This occurs for example if a timeout occurs.
|
189
|
+
def post(relative_path, request_headers, request_parameters, request_body, response_type, context)
|
190
|
+
request_parameter_list = request_parameters && request_parameters.to_request_parameters
|
191
|
+
uri = to_absolute_uri(relative_path, request_parameter_list)
|
192
|
+
request_headers = [] if request_headers.nil?
|
193
|
+
|
194
|
+
body = nil
|
195
|
+
if request_body.is_a? Communication::MultipartFormDataObject
|
196
|
+
request_headers.push(Communication::RequestHeader.new('Content-Type', request_body.content_type))
|
197
|
+
body = request_body
|
198
|
+
elsif request_body.is_a? Communication::MultipartFormDataRequest
|
199
|
+
multipart = request_body.to_multipart_form_data_object
|
200
|
+
request_headers.push(Communication::RequestHeader.new('Content-Type', multipart.content_type))
|
201
|
+
body = multipart
|
202
|
+
elsif !request_body.nil?
|
203
|
+
request_headers.push(Communication::RequestHeader.new('Content-Type', 'application/json'))
|
204
|
+
body = @marshaller.marshal(request_body)
|
205
|
+
else
|
206
|
+
# Set the content-type, even though there is no body, to prevent the httpClient from
|
207
|
+
# adding a content-type header after authentication has been generated.
|
208
|
+
request_headers.push(Communication::RequestHeader.new('Content-Type', 'text/plain'))
|
209
|
+
end
|
210
|
+
|
211
|
+
add_generic_headers('POST', uri, request_headers, context)
|
212
|
+
|
213
|
+
response_status_code, response_headers, response_body = nil
|
214
|
+
@connection.post(uri, request_headers, body) do |status_code, headers, content|
|
215
|
+
response_status_code = status_code
|
216
|
+
response_headers = headers
|
217
|
+
response_body = content.read.force_encoding('UTF-8')
|
218
|
+
end
|
219
|
+
process_response(response_body, response_status_code, response_headers, response_type, relative_path, context)
|
220
|
+
end
|
221
|
+
|
222
|
+
# Performs a POST request to the Worldline Global Collect platform and yields the response as the headers and body.
|
223
|
+
#
|
224
|
+
# @param relative_path [String] Path relative to the API endpoint
|
225
|
+
# @param request_headers [Array<Worldline::Connect::SDK::Communication::RequestHeader>, nil] Optional array of request headers
|
226
|
+
# @param request_parameters [Worldline::Connect::SDK::Communication::ParamRequest, nil] Optional request parameters
|
227
|
+
# @param request_body [Worldline::Connect::SDK::Domain::DataObject, Worldline::Connect::SDK::Communication::MultipartFormDataObject, Worldline::Connect::SDK::Communication::MultipartFormDataRequest, nil]
|
228
|
+
# The optional request body
|
229
|
+
# @param context [Worldline::Connect::SDK::CallContext, nil] Optional call context.
|
230
|
+
# @yield [Array<Worldline::Connect::SDK::Communication::ResponseHeader>, IO] The response headers and body.
|
231
|
+
# @raise [Worldline::Connect::SDK::Communication::ResponseException] if the request could not be fulfilled successfully.
|
232
|
+
# This occurs for example if the request is not authenticated correctly
|
233
|
+
# @raise [Worldline::Connect::SDK::Communication::NotFoundException] if the requested resource is not found
|
234
|
+
# @raise [Worldline::Connect::SDK::Communication::CommunicationException] if there is an error in communicating with the Worldline Global Collect platform.
|
235
|
+
# This occurs for example if a timeout occurs.
|
236
|
+
def post_with_binary_response(relative_path, request_headers, request_parameters, request_body, context)
|
237
|
+
request_parameter_list = request_parameters && request_parameters.to_request_parameters
|
238
|
+
uri = to_absolute_uri(relative_path, request_parameter_list)
|
239
|
+
request_headers = [] if request_headers.nil?
|
240
|
+
|
241
|
+
body = nil
|
242
|
+
if request_body.is_a? Communication::MultipartFormDataObject
|
243
|
+
request_headers.push(Communication::RequestHeader.new('Content-Type', request_body.content_type))
|
244
|
+
body = request_body
|
245
|
+
elsif request_body.is_a? Communication::MultipartFormDataRequest
|
246
|
+
multipart = request_body.to_multipart_form_data_object
|
247
|
+
request_headers.push(Communication::RequestHeader.new('Content-Type', multipart.content_type))
|
248
|
+
body = multipart
|
249
|
+
elsif !request_body.nil?
|
250
|
+
request_headers.push(Communication::RequestHeader.new('Content-Type', 'application/json'))
|
251
|
+
body = @marshaller.marshal(request_body)
|
252
|
+
else
|
253
|
+
# Set the content-type, even though there is no body, to prevent the httpClient from
|
254
|
+
# adding a content-type header after authentication has been generated.
|
255
|
+
request_headers.push(Communication::RequestHeader.new('Content-Type', 'text/plain'))
|
256
|
+
end
|
257
|
+
add_generic_headers('POST', uri, request_headers, context)
|
258
|
+
|
259
|
+
response_status_code, response_headers, response_body = nil
|
260
|
+
@connection.post(uri, request_headers, body) do |status_code, headers, content|
|
261
|
+
response_status_code = status_code
|
262
|
+
response_headers = headers
|
263
|
+
response_body = process_binary_response(status_code, content, headers, context) do |h, c|
|
264
|
+
yield h, c
|
265
|
+
end
|
266
|
+
end
|
267
|
+
throw_exception_if_necessary(response_body, response_status_code, response_headers, relative_path)
|
268
|
+
end
|
269
|
+
|
270
|
+
# Performs a PUT request to the Worldline Global Collect platform and returns the response as the given response type.
|
271
|
+
#
|
272
|
+
# @param relative_path [String] Path relative to the API endpoint
|
273
|
+
# @param request_headers [Array<Worldline::Connect::SDK::Communication::RequestHeader>, nil] Optional array of request headers
|
274
|
+
# @param request_parameters [Worldline::Connect::SDK::Communication::ParamRequest, nil] Optional request parameters
|
275
|
+
# @param request_body [Worldline::Connect::SDK::Domain::DataObject, Worldline::Connect::SDK::Communication::MultipartFormDataObject, Worldline::Connect::SDK::Communication::MultipartFormDataRequest, nil]
|
276
|
+
# The optional request body
|
277
|
+
# @param response_type [Type] The response type.
|
278
|
+
# @param context [Worldline::Connect::SDK::CallContext, nil] Optional call context.
|
279
|
+
# @return The response of the PUT request as the given response type
|
280
|
+
# @raise [Worldline::Connect::SDK::Communication::ResponseException] if the request could not be fulfilled successfully.
|
281
|
+
# This occurs for example if the request is not authenticated correctly
|
282
|
+
# @raise [Worldline::Connect::SDK::Communication::NotFoundException] if the requested resource is not found
|
283
|
+
# @raise [Worldline::Connect::SDK::Communication::CommunicationException] if there is an error in communicating with the Worldline Global Collect platform.
|
284
|
+
# This occurs for example if a timeout occurs.
|
285
|
+
def put(relative_path, request_headers, request_parameters, request_body, response_type, context)
|
286
|
+
request_parameter_list = request_parameters && request_parameters.to_request_parameters
|
287
|
+
uri = to_absolute_uri(relative_path, request_parameter_list)
|
288
|
+
request_headers = [] if request_headers.nil?
|
289
|
+
|
290
|
+
body = nil
|
291
|
+
if request_body.is_a? Communication::MultipartFormDataObject
|
292
|
+
request_headers.push(Communication::RequestHeader.new('Content-Type', request_body.content_type))
|
293
|
+
body = request_body
|
294
|
+
elsif request_body.is_a? Communication::MultipartFormDataRequest
|
295
|
+
multipart = request_body.to_multipart_form_data_object
|
296
|
+
request_headers.push(Communication::RequestHeader.new('Content-Type', multipart.content_type))
|
297
|
+
body = multipart
|
298
|
+
elsif !request_body.nil?
|
299
|
+
request_headers.push(Communication::RequestHeader.new('Content-Type', 'application/json'))
|
300
|
+
body = @marshaller.marshal(request_body)
|
301
|
+
else
|
302
|
+
# Set the content-type, even though there is no body, to prevent the httpClient from
|
303
|
+
# adding a content-type header after authentication has been generated.
|
304
|
+
request_headers.push(Communication::RequestHeader.new('Content-Type', 'text/plain'))
|
305
|
+
end
|
306
|
+
add_generic_headers('PUT', uri, request_headers, context)
|
307
|
+
|
308
|
+
response_status_code, response_headers, response_body = nil
|
309
|
+
@connection.put(uri, request_headers, body) do |status_code, headers, content|
|
310
|
+
response_status_code = status_code
|
311
|
+
response_headers = headers
|
312
|
+
response_body = content.read.force_encoding('UTF-8')
|
313
|
+
end
|
314
|
+
process_response(response_body, response_status_code, response_headers, response_type, relative_path, context)
|
315
|
+
end
|
316
|
+
|
317
|
+
# Performs a PUT request to the Worldline Global Collect platform and yields the response as the headers and body.
|
318
|
+
#
|
319
|
+
# @param relative_path [String] Path relative to the API endpoint
|
320
|
+
# @param request_headers [Array<Worldline::Connect::SDK::Communication::RequestHeader>, nil] Optional array of request headers
|
321
|
+
# @param request_parameters [Worldline::Connect::SDK::Communication::ParamRequest, nil] Optional request parameters
|
322
|
+
# @param request_body [Worldline::Connect::SDK::Domain::DataObject, Worldline::Connect::SDK::Communication::MultipartFormDataObject, Worldline::Connect::SDK::Communication::MultipartFormDataRequest, nil]
|
323
|
+
# The optional request body
|
324
|
+
# @param context [Worldline::Connect::SDK::CallContext, nil] Optional call context.
|
325
|
+
# @yield [Array<Worldline::Connect::SDK::Communication::ResponseHeader>, IO] The response headers and body.
|
326
|
+
# @raise [Worldline::Connect::SDK::Communication::ResponseException] if the request could not be fulfilled successfully.
|
327
|
+
# This occurs for example if the request is not authenticated correctly
|
328
|
+
# @raise [Worldline::Connect::SDK::Communication::NotFoundException] if the requested resource is not found
|
329
|
+
# @raise [Worldline::Connect::SDK::Communication::CommunicationException] if there is an error in communicating with the Worldline Global Collect platform.
|
330
|
+
# This occurs for example if a timeout occurs.
|
331
|
+
def put_with_binary_response(relative_path, request_headers, request_parameters, request_body, context)
|
332
|
+
request_parameter_list = request_parameters && request_parameters.to_request_parameters
|
333
|
+
uri = to_absolute_uri(relative_path, request_parameter_list)
|
334
|
+
request_headers = [] if request_headers.nil?
|
335
|
+
|
336
|
+
body = nil
|
337
|
+
if request_body.is_a? Communication::MultipartFormDataObject
|
338
|
+
request_headers.push(Communication::RequestHeader.new('Content-Type', request_body.content_type))
|
339
|
+
body = request_body
|
340
|
+
elsif request_body.is_a? Communication::MultipartFormDataRequest
|
341
|
+
multipart = request_body.to_multipart_form_data_object
|
342
|
+
request_headers.push(Communication::RequestHeader.new('Content-Type', multipart.content_type))
|
343
|
+
body = multipart
|
344
|
+
elsif !request_body.nil?
|
345
|
+
request_headers.push(Communication::RequestHeader.new('Content-Type', 'application/json'))
|
346
|
+
body = @marshaller.marshal(request_body)
|
347
|
+
else
|
348
|
+
# Set the content-type, even though there is no body, to prevent the httpClient from
|
349
|
+
# adding a content-type header after authentication has been generated.
|
350
|
+
request_headers.push(Communication::RequestHeader.new('Content-Type', 'text/plain'))
|
351
|
+
end
|
352
|
+
add_generic_headers('PUT', uri, request_headers, context)
|
353
|
+
|
354
|
+
response_status_code, response_headers, response_body = nil
|
355
|
+
@connection.put(uri, request_headers, body) do |status_code, headers, content|
|
356
|
+
response_status_code = status_code
|
357
|
+
response_headers = headers
|
358
|
+
response_body = process_binary_response(status_code, content, headers, context) do |h, c|
|
359
|
+
yield h, c
|
360
|
+
end
|
361
|
+
end
|
362
|
+
throw_exception_if_necessary(response_body, response_status_code, response_headers, relative_path)
|
363
|
+
end
|
364
|
+
|
365
|
+
# Closes any connections idle for more than _idle_time_ seconds.
|
366
|
+
# Will not have any effect if the connection is not a pooled connection (an instance of {Worldline::Connect::SDK::Communication::PooledConnection}).
|
367
|
+
def close_idle_connections(idle_time)
|
368
|
+
@connection.close_idle_connections(idle_time) if @connection.is_a? PooledConnection
|
369
|
+
end
|
370
|
+
|
371
|
+
# Closes any connections that have expired.
|
372
|
+
# Will not have any effect if the connection is not a pooled connection (an instance of {Worldline::Connect::SDK::Communication::PooledConnection}).
|
373
|
+
def close_expired_connections
|
374
|
+
@connection.close_expired_connections if @connection.is_a? PooledConnection
|
375
|
+
end
|
376
|
+
|
377
|
+
# Sets the current body obfuscator to use.
|
378
|
+
# @param body_obfuscator [Worldline::Connect::SDK::Logging::Obfuscation::BodyObfuscator]
|
379
|
+
def set_body_obfuscator(body_obfuscator)
|
380
|
+
@connection.set_body_obfuscator(body_obfuscator)
|
381
|
+
end
|
382
|
+
|
383
|
+
# Sets the current header obfuscator to use.
|
384
|
+
# @param header_obfuscator [Worldline::Connect::SDK::Logging::Obfuscation::HeaderObfuscator]
|
385
|
+
def set_header_obfuscator(header_obfuscator)
|
386
|
+
@connection.set_header_obfuscator(header_obfuscator)
|
387
|
+
end
|
388
|
+
|
389
|
+
# Enables logging outgoing requests and incoming responses by registering the _communicator_logger_.
|
390
|
+
# Note that only one logger can be registered at a time and calling _enable_logging_
|
391
|
+
# a second time will override the old logger instance with the new one.
|
392
|
+
#
|
393
|
+
# @param communicator_logger [Worldline::Connect::SDK::Logging::CommunicatorLogger] The communicator logger the requests and responses are logged to
|
394
|
+
def enable_logging(communicator_logger)
|
395
|
+
@connection.enable_logging(communicator_logger)
|
396
|
+
end
|
397
|
+
|
398
|
+
# Disables logging by unregistering any previous logger that might be registered.
|
399
|
+
def disable_logging
|
400
|
+
@connection.disable_logging
|
401
|
+
end
|
402
|
+
|
403
|
+
# Frees networking resources by closing the underlying network connections.
|
404
|
+
# After calling _close_, any use of the _get_, _delete_, _post_ and _put_ methods will not function
|
405
|
+
# and likely result in an error.
|
406
|
+
def close
|
407
|
+
@connection.close
|
408
|
+
end
|
409
|
+
|
410
|
+
attr_reader :marshaller
|
411
|
+
|
412
|
+
protected
|
413
|
+
|
414
|
+
# Constructs a full URL using the base URL and the given relative path and request_parameters.
|
415
|
+
# The returned URL is a *URI* object.
|
416
|
+
#
|
417
|
+
# @param relative_path [String] The relative path of the URL.
|
418
|
+
# @param request_parameters [Array<Worldline::Connect::SDK::Communication::RequestParam>] A list of request parameters that each have #name and #value
|
419
|
+
# which represent the parameter name and value respectively.
|
420
|
+
def to_absolute_uri(relative_path, request_parameters)
|
421
|
+
absolute_path = relative_path.start_with?('/') ? relative_path : '/' + relative_path
|
422
|
+
uri = URI::HTTP.new(@api_endpoint.scheme, nil, @api_endpoint.host,
|
423
|
+
@api_endpoint.port, nil, absolute_path, nil, nil, nil)
|
424
|
+
unless request_parameters.nil?
|
425
|
+
request_parameters.each do |nvp|
|
426
|
+
parameters = URI.decode_www_form(uri.query || '') << [nvp.name, nvp.value]
|
427
|
+
uri.query = URI.encode_www_form(parameters)
|
428
|
+
end
|
429
|
+
end
|
430
|
+
uri
|
431
|
+
end
|
432
|
+
|
433
|
+
# Adds several standard headers to the http headers.
|
434
|
+
# This method will add the 'Date' and 'Authorization' header;
|
435
|
+
# the 'X-GCS-Idempotence-Key' header will also be added if an idempotence context is given
|
436
|
+
#
|
437
|
+
# @param http_method [String] 'GET', 'DELETE', 'POST' or 'PUT' depending on the HTTP method being used
|
438
|
+
# @param uri [URI::HTTP] The full URI to the Worldline Global Collect platform,
|
439
|
+
# including the relative path and request parameters.
|
440
|
+
# @param request_headers [Array<Worldline::Connect::SDK::Communication::RequestHeader>] List of request headers in which which new headers will be added
|
441
|
+
# @param context [Worldline::Connect::SDK::CallContext, nil] object that will be used to produce
|
442
|
+
# an Idempotence header to prevent accidental request duplication.
|
443
|
+
def add_generic_headers(http_method, uri, request_headers, context = nil)
|
444
|
+
request_headers.concat(@metadata_provider.metadata_headers)
|
445
|
+
request_headers.push(Communication::RequestHeader.new('Date', get_header_date_string))
|
446
|
+
if !context.nil? && !context.idempotence_key.nil?
|
447
|
+
request_headers.push(Communication::RequestHeader.new('X-GCS-Idempotence-Key', context.idempotence_key))
|
448
|
+
end
|
449
|
+
authorization = @authenticator.get_authorization(http_method, uri, request_headers)
|
450
|
+
request_headers.push(Communication::RequestHeader.new('Authorization', authorization))
|
451
|
+
end
|
452
|
+
|
453
|
+
def get_header_date_string
|
454
|
+
Time.now.utc.strftime('%a, %d %b %Y %H:%M:%S GMT')
|
455
|
+
end
|
456
|
+
|
457
|
+
def process_response(body, status, headers, response_type, request_path, context)
|
458
|
+
update_context(headers, context) unless context.nil?
|
459
|
+
|
460
|
+
throw_exception_if_necessary(body, status, headers, request_path)
|
461
|
+
@marshaller.unmarshal(body, response_type)
|
462
|
+
end
|
463
|
+
|
464
|
+
def process_binary_response(status, body, headers, context)
|
465
|
+
update_context(response.headers, context) unless context.nil?
|
466
|
+
|
467
|
+
if status < 400
|
468
|
+
yield headers, body
|
469
|
+
''
|
470
|
+
else
|
471
|
+
body.read.force_encoding('UTF-8')
|
472
|
+
end
|
473
|
+
end
|
474
|
+
|
475
|
+
def update_context(headers, context)
|
476
|
+
idempotence_request_timestamp_value = Communication::ResponseHeader.get_header_value(headers, 'X-GCS-Idempotence-Request-Timestamp')
|
477
|
+
if idempotence_request_timestamp_value.nil?
|
478
|
+
context.idempotence_request_timestamp = nil
|
479
|
+
else
|
480
|
+
context.idempotence_request_timestamp = idempotence_request_timestamp_value
|
481
|
+
end
|
482
|
+
end
|
483
|
+
|
484
|
+
def throw_exception_if_necessary(body, status_code, headers, request_path)
|
485
|
+
if status_code < 200 || status_code >= 300
|
486
|
+
if !body.nil? && !is_json(headers)
|
487
|
+
cause = Communication::ResponseException.new(status_code, headers, body)
|
488
|
+
if status_code == 404
|
489
|
+
raise Communication::NotFoundException.new(cause, 'The requested resource was not found; invalid path: ' +
|
490
|
+
request_path)
|
491
|
+
else
|
492
|
+
raise Communication::CommunicationException, cause
|
493
|
+
end
|
494
|
+
else
|
495
|
+
raise Communication::ResponseException.new(status_code, headers, body)
|
496
|
+
end
|
497
|
+
end
|
498
|
+
end
|
499
|
+
|
500
|
+
private
|
501
|
+
|
502
|
+
def is_json(headers)
|
503
|
+
content_type = Communication::ResponseHeader.get_header_value(headers, 'Content-Type')
|
504
|
+
content_type.nil? || 'application/json'.casecmp(content_type) == 0 ||
|
505
|
+
content_type.downcase.start_with?('application/json')
|
506
|
+
end
|
507
|
+
end
|
508
|
+
end
|
509
|
+
end
|
510
|
+
end
|