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
@@ -1,351 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
require 'uri'
|
3
|
-
require 'stringio'
|
4
|
-
require 'sinatra'
|
5
|
-
|
6
|
-
DefaultConnection ||= Ingenico::Connect::SDK::DefaultImpl::DefaultConnection
|
7
|
-
StdoutCommunicatorLogger ||= Ingenico::Connect::SDK::Logging::StdoutCommunicatorLogger
|
8
|
-
|
9
|
-
describe DefaultConnection do
|
10
|
-
let(:connect_timeout) { 10 }
|
11
|
-
let(:socket_timeout) { 10 }
|
12
|
-
let(:max_connections) { 10 }
|
13
|
-
let(:proxy_configuration) { nil }
|
14
|
-
subject(:connection) do
|
15
|
-
described_class.new(connect_timeout: connect_timeout,
|
16
|
-
socket_timeout: socket_timeout,
|
17
|
-
max_connections: max_connections,
|
18
|
-
proxy_configuration: proxy_configuration)
|
19
|
-
end
|
20
|
-
|
21
|
-
context 'construction' do
|
22
|
-
context 'without proxy' do
|
23
|
-
let(:proxy_configuration) { nil }
|
24
|
-
let(:max_connections) { nil }
|
25
|
-
|
26
|
-
it 'has the correct timeout values' do
|
27
|
-
expect(
|
28
|
-
connection.instance_variable_get(:@connect_timeout)
|
29
|
-
).to eq(connect_timeout)
|
30
|
-
|
31
|
-
expect(
|
32
|
-
connection.instance_variable_get(:@socket_timeout)
|
33
|
-
).to eq(socket_timeout)
|
34
|
-
|
35
|
-
expect(
|
36
|
-
connection.instance_variable_get(:@proxy_configuration)
|
37
|
-
).to be_nil
|
38
|
-
end
|
39
|
-
end
|
40
|
-
|
41
|
-
context 'with proxy' do
|
42
|
-
let(:uri) { URI('http://test-proxy') }
|
43
|
-
|
44
|
-
context 'without authentication' do
|
45
|
-
let(:proxy_configuration) { Ingenico::Connect::SDK::ProxyConfiguration.new(address: uri) }
|
46
|
-
|
47
|
-
it 'has the correct timeout values and proxy settings' do
|
48
|
-
expect(
|
49
|
-
connection.instance_variable_get(:@connect_timeout)
|
50
|
-
).to eq(connect_timeout)
|
51
|
-
|
52
|
-
expect(
|
53
|
-
connection.instance_variable_get(:@socket_timeout)
|
54
|
-
).to eq(socket_timeout)
|
55
|
-
|
56
|
-
expect(
|
57
|
-
connection.instance_variable_get(:@proxy_configuration).host
|
58
|
-
).to eq('test-proxy')
|
59
|
-
|
60
|
-
expect(
|
61
|
-
connection.instance_variable_get(:@proxy_configuration).port
|
62
|
-
).to eq(80)
|
63
|
-
|
64
|
-
expect(
|
65
|
-
connection.instance_variable_get(:@proxy_configuration).scheme
|
66
|
-
).to eq('http')
|
67
|
-
end
|
68
|
-
end
|
69
|
-
|
70
|
-
context 'with authentication' do
|
71
|
-
let(:username) { 'test-username' }
|
72
|
-
let(:password) { 'test-password' }
|
73
|
-
let(:proxy_configuration) do
|
74
|
-
Ingenico::Connect::SDK::ProxyConfiguration.new(address: uri,
|
75
|
-
username: username,
|
76
|
-
password: password)
|
77
|
-
end
|
78
|
-
|
79
|
-
it 'has the correct timeout values and proxy settings' do
|
80
|
-
expect(
|
81
|
-
connection.instance_variable_get(:@connect_timeout)
|
82
|
-
).to eq(connect_timeout)
|
83
|
-
|
84
|
-
expect(
|
85
|
-
connection.instance_variable_get(:@socket_timeout)
|
86
|
-
).to eq(socket_timeout)
|
87
|
-
|
88
|
-
pc = connection.instance_variable_get(:@proxy_configuration)
|
89
|
-
|
90
|
-
expect(pc.host).to eq('test-proxy')
|
91
|
-
expect(pc.port).to eq(80)
|
92
|
-
expect(pc.scheme).to eq('http')
|
93
|
-
expect(pc.username).to eq(username)
|
94
|
-
expect(pc.password).to eq(password)
|
95
|
-
end
|
96
|
-
end
|
97
|
-
end
|
98
|
-
end # construction
|
99
|
-
|
100
|
-
context 'sending and receiving' do
|
101
|
-
|
102
|
-
class DummyResponse
|
103
|
-
def pop
|
104
|
-
self
|
105
|
-
end
|
106
|
-
|
107
|
-
def status_code
|
108
|
-
200
|
109
|
-
end
|
110
|
-
|
111
|
-
def content
|
112
|
-
StringIO.new(body || '')
|
113
|
-
end
|
114
|
-
|
115
|
-
attr_accessor :headers, :body, :content_type, :uri
|
116
|
-
end
|
117
|
-
|
118
|
-
context 'without proxy' do
|
119
|
-
before :example do
|
120
|
-
# mock the HTTPClient obj inside DefaultConnection
|
121
|
-
# for each type of requests so no real requests will be made
|
122
|
-
client = connection.instance_variable_get(:@http_client)
|
123
|
-
allow(client).to receive(:get_async) do |uri, hash|
|
124
|
-
dummy_response = DummyResponse.new
|
125
|
-
dummy_response.headers = hash[:header]
|
126
|
-
dummy_response.uri = uri
|
127
|
-
dummy_response
|
128
|
-
end
|
129
|
-
|
130
|
-
allow(client).to receive(:delete_async) do |uri, hash|
|
131
|
-
dummy_response = DummyResponse.new
|
132
|
-
dummy_response.headers = hash[:header]
|
133
|
-
dummy_response.uri = uri
|
134
|
-
dummy_response
|
135
|
-
end
|
136
|
-
|
137
|
-
allow(client).to receive(:post_async) do |uri, hash|
|
138
|
-
dummy_response = DummyResponse.new
|
139
|
-
dummy_response.headers = hash[:header]
|
140
|
-
dummy_response.uri = uri
|
141
|
-
dummy_response.body = hash[:body]
|
142
|
-
dummy_response
|
143
|
-
end
|
144
|
-
|
145
|
-
allow(client).to receive(:put_async) do |uri, hash|
|
146
|
-
dummy_response = DummyResponse.new
|
147
|
-
dummy_response.headers = hash[:header]
|
148
|
-
dummy_response.uri = uri
|
149
|
-
dummy_response.body = hash[:body]
|
150
|
-
dummy_response
|
151
|
-
end
|
152
|
-
|
153
|
-
allow(client).to receive(:request_async) do |_method, uri, hash|
|
154
|
-
dummy_response = DummyResponse.new
|
155
|
-
dummy_response.headers = hash[:header]
|
156
|
-
dummy_response.uri = uri
|
157
|
-
dummy_response.body = hash[:body]
|
158
|
-
dummy_response
|
159
|
-
end
|
160
|
-
end
|
161
|
-
|
162
|
-
let(:headers) { { 'Content-Type' => 'application/json', 'header1' => 'dummy', 'header2' => 'yammy' } }
|
163
|
-
let(:sdk_headers) { headers.map {|k, v| Ingenico::Connect::SDK::ResponseHeader.new(k, v) } }
|
164
|
-
let(:uri) { URI('http://foobar.com/v1/1234/services/convert/amount?source=EUR&amount=1000&target=USD') }
|
165
|
-
|
166
|
-
def expected_header_str(headers)
|
167
|
-
headers.inject('') { |str, (k, v)| %Q{#{str}#{k}="#{v}", }}.chomp(', ')
|
168
|
-
end
|
169
|
-
|
170
|
-
def sdk_headers_to_s(sdk_headers)
|
171
|
-
sdk_headers.inject('') { |s, h| s + h.name + ':' + h.value + ',' }
|
172
|
-
end
|
173
|
-
|
174
|
-
it 'sends the correct get request' do
|
175
|
-
response_headers = nil
|
176
|
-
connection.get(uri, sdk_headers) { |s, h, c| response_headers = h }
|
177
|
-
expect(sdk_headers_to_s(response_headers)).to eq(sdk_headers_to_s(sdk_headers))
|
178
|
-
end
|
179
|
-
|
180
|
-
it 'sends the correct delete request' do
|
181
|
-
response_headers = nil
|
182
|
-
connection.delete(uri, sdk_headers) { |s, h, c| response_headers = h }
|
183
|
-
expect(sdk_headers_to_s(response_headers)).to eq(sdk_headers_to_s(sdk_headers))
|
184
|
-
end
|
185
|
-
|
186
|
-
context 'with body' do
|
187
|
-
let(:body) { 'dummy body' }
|
188
|
-
|
189
|
-
it 'sends the correct post request' do
|
190
|
-
response_headers = nil
|
191
|
-
response_body = ''
|
192
|
-
connection.post(uri, sdk_headers, body) { |s, h, c| response_headers, response_body = h, c.read.force_encoding('UTF-8') }
|
193
|
-
expect(ResponseHeader.get_header_value(response_headers, 'Content-Type')).to eq('application/json')
|
194
|
-
expect(response_body).to eq(body)
|
195
|
-
end
|
196
|
-
|
197
|
-
it 'sends the correct put request' do
|
198
|
-
response_headers = nil
|
199
|
-
response_body = ''
|
200
|
-
connection.put(uri, sdk_headers, body) { |s, h, c| response_headers, response_body = h, c.read.force_encoding('UTF-8') }
|
201
|
-
expect(ResponseHeader.get_header_value(response_headers, 'Content-Type')).to eq('application/json')
|
202
|
-
expect(response_body).to eq(body)
|
203
|
-
end
|
204
|
-
end
|
205
|
-
|
206
|
-
context 'with logging' do
|
207
|
-
let(:logger) { StdoutCommunicatorLogger.INSTANCE }
|
208
|
-
let(:request_regex) do
|
209
|
-
# captures:
|
210
|
-
# 1) uuid
|
211
|
-
# 2) method
|
212
|
-
# 3) uri
|
213
|
-
# 4) headers
|
214
|
-
%r{\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2} Outgoing request \(requestId='([-a-zA-Z0-9]+)'\):
|
215
|
-
method: '([A-Z]+)'
|
216
|
-
uri: '(.+)'
|
217
|
-
headers: '(.*)'}
|
218
|
-
end
|
219
|
-
|
220
|
-
let(:request_with_body_regex) do
|
221
|
-
# captures:
|
222
|
-
# 1) uuid
|
223
|
-
# 2) method
|
224
|
-
# 3) uri
|
225
|
-
# 4) headers
|
226
|
-
# 5) content_type
|
227
|
-
# 6) body
|
228
|
-
%r{\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2} Outgoing request \(requestId='([-a-zA-Z0-9]+)'\):
|
229
|
-
method: '([A-Z]+)'
|
230
|
-
uri: '(.+)'
|
231
|
-
headers: '(.*)'
|
232
|
-
content-type: '(.+)'
|
233
|
-
body: '(.+)'}
|
234
|
-
end
|
235
|
-
|
236
|
-
let(:response_regex) do
|
237
|
-
# captures:
|
238
|
-
# 1) status-cde
|
239
|
-
# 2) headers
|
240
|
-
# 3) content-type
|
241
|
-
# 4) body
|
242
|
-
%r{\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2} Incoming response \(requestId='([-a-zA-Z0-9]+)'.*\):
|
243
|
-
status-code: '(\d+)'
|
244
|
-
headers: '(.*)'
|
245
|
-
content-type: '(.*)'
|
246
|
-
body: '(.*)'}
|
247
|
-
end
|
248
|
-
|
249
|
-
let(:regex) { Regexp.new(request_regex.to_s + "\n" + response_regex.to_s) }
|
250
|
-
|
251
|
-
let(:with_body_regex) do
|
252
|
-
Regexp.new(request_with_body_regex.to_s + "\n" + response_regex.to_s)
|
253
|
-
end
|
254
|
-
|
255
|
-
before :example do
|
256
|
-
$stdout = StringIO.new
|
257
|
-
connection.enable_logging(logger)
|
258
|
-
end
|
259
|
-
|
260
|
-
after :example do
|
261
|
-
connection.disable_logging
|
262
|
-
$stdout.close
|
263
|
-
$stdout = STDOUT
|
264
|
-
end
|
265
|
-
|
266
|
-
# TODO: DELETE is basically the same, do we need to test it?
|
267
|
-
it 'logs the correct get request' do
|
268
|
-
connection.get(uri, sdk_headers) { |s, h, c| }
|
269
|
-
expect($stdout.string).to match(regex)
|
270
|
-
match_info = $stdout.string.match(regex)
|
271
|
-
expect(match_info[2]).to eq('GET')
|
272
|
-
expect(match_info[3]).to eq(uri.path + '?' + uri.query)
|
273
|
-
expect(match_info[4]).to eq(expected_header_str(headers))
|
274
|
-
end
|
275
|
-
|
276
|
-
# TODO: same for PUT
|
277
|
-
context 'with body' do
|
278
|
-
let(:body) { 'dummy body' }
|
279
|
-
it 'logs the correct post request' do
|
280
|
-
connection.post(uri, sdk_headers, body) { |s, h, c| }
|
281
|
-
expect($stdout.string).to match(with_body_regex)
|
282
|
-
match_info = $stdout.string.match(with_body_regex)
|
283
|
-
expect(match_info[2]).to eq('POST')
|
284
|
-
expect(match_info[3]).to eq(uri.path + '?' + uri.query)
|
285
|
-
headers['Content-Type'] = 'application/json' # with body
|
286
|
-
expect(match_info[4]).to eq(expected_header_str(headers))
|
287
|
-
expect(match_info[5]).to eq('application/json')
|
288
|
-
expect(match_info[6]).to eq(body)
|
289
|
-
end
|
290
|
-
end
|
291
|
-
end
|
292
|
-
end
|
293
|
-
end # sending and receiving
|
294
|
-
|
295
|
-
context 'connection' do
|
296
|
-
server = nil
|
297
|
-
before :context do
|
298
|
-
WebMock.allow_net_connect!
|
299
|
-
server = Thread.new do
|
300
|
-
class DummyServer < Sinatra::Application
|
301
|
-
prefix = 'spec/fixtures/resources/defaultimpl/'
|
302
|
-
|
303
|
-
get '/convert_amount.json' do
|
304
|
-
content_type :json
|
305
|
-
IO.read(prefix + 'convertAmount.json')
|
306
|
-
end
|
307
|
-
|
308
|
-
get '/' do
|
309
|
-
'testing'
|
310
|
-
end
|
311
|
-
|
312
|
-
run!
|
313
|
-
end
|
314
|
-
end
|
315
|
-
sleep 1 # wait for the server
|
316
|
-
end
|
317
|
-
|
318
|
-
after :context do
|
319
|
-
Thread.kill(server) # shutdown the server
|
320
|
-
WebMock.disable_net_connect!
|
321
|
-
end
|
322
|
-
|
323
|
-
before :example do
|
324
|
-
connection.close
|
325
|
-
end
|
326
|
-
|
327
|
-
let(:uri) { URI('http://localhost:4567/convert_amount.json') }
|
328
|
-
let(:sdk_headers) { [] }
|
329
|
-
|
330
|
-
it 'uses persistent connection if HTTP 1.1 is supported' do
|
331
|
-
100.times { connection.get(uri, sdk_headers) { |x, y| } }
|
332
|
-
expect(connection.session_count).to eq(1)
|
333
|
-
end
|
334
|
-
|
335
|
-
it 'retrieves the correct json file' do
|
336
|
-
response_body = ''
|
337
|
-
connection.get(uri, sdk_headers) { |status, headers, body| response_body = body.read.force_encoding('UTF-8') }
|
338
|
-
prefix = 'spec/fixtures/resources/defaultimpl/'
|
339
|
-
expect(response_body).to eq(IO.read(prefix + 'convertAmount.json'))
|
340
|
-
end
|
341
|
-
|
342
|
-
it 'can explicitly close connections' do
|
343
|
-
connection.get(uri, sdk_headers) { |x, y| }
|
344
|
-
|
345
|
-
connection.close
|
346
|
-
expect(connection.session_count).to eq(0)
|
347
|
-
|
348
|
-
connection.get(uri, sdk_headers) { |x, y| }
|
349
|
-
end
|
350
|
-
end
|
351
|
-
end
|
@@ -1,36 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
require 'ingenico/connect/sdk/domain/definitions/address'
|
3
|
-
require 'ingenico/connect/sdk/domain/token/customer_token'
|
4
|
-
require 'ingenico/connect/sdk/domain/token/token_card'
|
5
|
-
require 'ingenico/connect/sdk/domain/token/token_card_data'
|
6
|
-
require 'ingenico/connect/sdk/domain/token/token_response'
|
7
|
-
|
8
|
-
DataObject ||= Ingenico::Connect::SDK::DataObject
|
9
|
-
DefaultMarshaller ||= Ingenico::Connect::SDK::DefaultImpl::DefaultMarshaller
|
10
|
-
Token ||= Ingenico::Connect::SDK::Domain::Token
|
11
|
-
|
12
|
-
class TokenResponseWithExtraField < Token::TokenResponse
|
13
|
-
attr_accessor :dummy
|
14
|
-
end
|
15
|
-
|
16
|
-
describe DefaultMarshaller do
|
17
|
-
context 'unmarshal()' do
|
18
|
-
it 'should unmarshal extra fields' do
|
19
|
-
token = TokenResponseWithExtraField.new
|
20
|
-
token.card = Token::TokenCard.new
|
21
|
-
token.card.customer = Token::CustomerToken.new
|
22
|
-
token.card.customer.billing_address = Ingenico::Connect::SDK::Domain::Definitions::Address.new
|
23
|
-
token.card.customer.billing_address.country_code = 'NL'
|
24
|
-
token.card.data = Token::TokenCardData.new
|
25
|
-
token.dummy = 'foobar'
|
26
|
-
# marshal the extended token and unmarshal it as a regular token response
|
27
|
-
unmarshalled = DefaultMarshaller.INSTANCE.unmarshal(DefaultMarshaller.INSTANCE.marshal(token), Token::TokenResponse)
|
28
|
-
|
29
|
-
expect(unmarshalled.card).to_not be_nil
|
30
|
-
expect(unmarshalled.card.customer).to_not be_nil
|
31
|
-
expect(unmarshalled.card.customer.billing_address).to_not be_nil
|
32
|
-
expect(unmarshalled.card.customer.billing_address.country_code).to eq('NL')
|
33
|
-
expect(token.card.data).to_not be_nil
|
34
|
-
end
|
35
|
-
end
|
36
|
-
end
|
@@ -1,51 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
|
3
|
-
LegacyHeaderObfuscator ||= Ingenico::Connect::SDK::Logging::HeaderObfuscator
|
4
|
-
ValueObfuscator ||= Ingenico::Connect::SDK::Logging::ValueObfuscator
|
5
|
-
|
6
|
-
describe LegacyHeaderObfuscator do
|
7
|
-
subject(:sample) { LegacyHeaderObfuscator.new(obsfs) }
|
8
|
-
context 'initialize' do
|
9
|
-
let(:obsfs) { { 'k1' => ValueObfuscator.fixed_length(5),
|
10
|
-
'k2' => ValueObfuscator.keep_start_count(2) } }
|
11
|
-
it 'is cass insensitive' do
|
12
|
-
obsfs_copy = sample.instance_variable_get(:@obfuscators)
|
13
|
-
expect(
|
14
|
-
obsfs_copy['k1']
|
15
|
-
).to equal(obsfs_copy['K1'])
|
16
|
-
end
|
17
|
-
end
|
18
|
-
|
19
|
-
it '.builder returns new Builder obj' do
|
20
|
-
expect(
|
21
|
-
LegacyHeaderObfuscator.builder.is_a? LegacyHeaderObfuscator::Builder
|
22
|
-
).to be(true)
|
23
|
-
end
|
24
|
-
|
25
|
-
context 'Builder' do
|
26
|
-
it 'checks argument type' do
|
27
|
-
b = LegacyHeaderObfuscator.builder
|
28
|
-
expect {
|
29
|
-
b.with_all(123)
|
30
|
-
}.to raise_error(ArgumentError)
|
31
|
-
|
32
|
-
expect {
|
33
|
-
b.with_fixed_length(123, 123)
|
34
|
-
}.to raise_error(ArgumentError)
|
35
|
-
end
|
36
|
-
|
37
|
-
it 'inherits parent methods' do
|
38
|
-
b = LegacyHeaderObfuscator.builder
|
39
|
-
expect {
|
40
|
-
b.with_keep_start_count('k1', 123)
|
41
|
-
b.with_keep_end_count('k2', 123)
|
42
|
-
}.not_to raise_error
|
43
|
-
end
|
44
|
-
|
45
|
-
it 'implements build method' do
|
46
|
-
expect(
|
47
|
-
LegacyHeaderObfuscator.builder.build.is_a? LegacyHeaderObfuscator
|
48
|
-
).to be(true)
|
49
|
-
end
|
50
|
-
end
|
51
|
-
end
|
@@ -1,178 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
|
3
|
-
PROPERTY_OBFUSCATOR = Ingenico::Connect::SDK::Logging::PropertyObfuscator.builder
|
4
|
-
.with_keep_end_count("cardNumber", 4)
|
5
|
-
.with_keep_end_count("expiryDate", 2)
|
6
|
-
.with_all("cvv")
|
7
|
-
.with_keep_end_count("iban", 4)
|
8
|
-
.with_keep_end_count("accountNumber", 4)
|
9
|
-
.with_keep_end_count("reformattedAccountNumber", 4)
|
10
|
-
.with_keep_start_count("bin", 6)
|
11
|
-
.with_all("value")
|
12
|
-
.with_fixed_length("keyId", 8)
|
13
|
-
.with_fixed_length("secretKey", 8)
|
14
|
-
.with_fixed_length("publicKey", 8)
|
15
|
-
.with_fixed_length("userAuthenticationToken", 8)
|
16
|
-
.with_fixed_length("encryptedPayload", 8)
|
17
|
-
.with_fixed_length("decryptedPayload", 8)
|
18
|
-
.with_fixed_length("encryptedCustomerInput", 8)
|
19
|
-
.build
|
20
|
-
|
21
|
-
HEADER_OBFUSCATOR = Ingenico::Connect::SDK::Logging::HeaderObfuscator.builder
|
22
|
-
.with_fixed_length("Authorization", 8)
|
23
|
-
.with_fixed_length("WWW-Authenticate", 8)
|
24
|
-
.with_fixed_length("Proxy-Authenticate", 8)
|
25
|
-
.with_fixed_length("Proxy-Authorization", 8)
|
26
|
-
.with_fixed_length("X-GCS-Authentication-Token", 8)
|
27
|
-
.with_fixed_length("X-GCS-CallerPassword", 8)
|
28
|
-
.build
|
29
|
-
|
30
|
-
|
31
|
-
def test_obfuscate_body_with_matches(original_resource, obfuscated_resource)
|
32
|
-
prefix = 'spec/fixtures/resources/logging/'
|
33
|
-
body = IO.read(prefix + original_resource)
|
34
|
-
expected = IO.read(prefix + obfuscated_resource)
|
35
|
-
expected == PROPERTY_OBFUSCATOR.obfuscate(body)
|
36
|
-
end
|
37
|
-
|
38
|
-
def test_obfuscate_body_with_no_matches(resource)
|
39
|
-
prefix = 'spec/fixtures/resources/logging/'
|
40
|
-
body = IO.read(prefix + resource)
|
41
|
-
body == PROPERTY_OBFUSCATOR.obfuscate(body)
|
42
|
-
end
|
43
|
-
|
44
|
-
def test_obfuscate_header_with_match(name, original_value, expected_value)
|
45
|
-
expected_value == HEADER_OBFUSCATOR.obfuscate_header(name, original_value)
|
46
|
-
end
|
47
|
-
|
48
|
-
def test_obfuscate_header_with_no_match(name, original_value)
|
49
|
-
original_value == HEADER_OBFUSCATOR.obfuscate_header(name, original_value)
|
50
|
-
end
|
51
|
-
|
52
|
-
describe Ingenico::Connect::SDK::Logging::PropertyObfuscator do
|
53
|
-
context '.obfuscate_body()' do
|
54
|
-
|
55
|
-
context 'with null body' do
|
56
|
-
let(:body) { nil }
|
57
|
-
it 'returns null body' do
|
58
|
-
expect(
|
59
|
-
PROPERTY_OBFUSCATOR.obfuscate(body)
|
60
|
-
).to be_nil
|
61
|
-
end
|
62
|
-
end
|
63
|
-
|
64
|
-
context 'with empty body' do
|
65
|
-
let(:body) { '' }
|
66
|
-
it 'returns empty body' do
|
67
|
-
expect(
|
68
|
-
PROPERTY_OBFUSCATOR.obfuscate(body)
|
69
|
-
).to eq(body)
|
70
|
-
end
|
71
|
-
end
|
72
|
-
|
73
|
-
it 'works with card' do
|
74
|
-
expect(
|
75
|
-
test_obfuscate_body_with_matches("bodyWithCardOriginal.json",
|
76
|
-
"bodyWithCardObfuscated.json")
|
77
|
-
).to be(true)
|
78
|
-
end
|
79
|
-
|
80
|
-
it 'works with iban' do
|
81
|
-
expect(
|
82
|
-
test_obfuscate_body_with_matches("bodyWithIbanOriginal.json",
|
83
|
-
"bodyWithIbanObfuscated.json")
|
84
|
-
).to be(true)
|
85
|
-
end
|
86
|
-
|
87
|
-
it 'works with bin' do
|
88
|
-
expect(
|
89
|
-
test_obfuscate_body_with_matches("bodyWithBinOriginal.json",
|
90
|
-
"bodyWithBinObfuscated.json")
|
91
|
-
).to be(true)
|
92
|
-
end
|
93
|
-
|
94
|
-
it 'works when there is no match' do
|
95
|
-
expect(
|
96
|
-
test_obfuscate_body_with_no_matches("bodyNoObfuscation.json")
|
97
|
-
).to be(true)
|
98
|
-
end
|
99
|
-
|
100
|
-
it 'works with object' do
|
101
|
-
expect(
|
102
|
-
test_obfuscate_body_with_matches("bodyWithObjectOriginal.json",
|
103
|
-
"bodyWithObjectObfuscated.json")
|
104
|
-
).to be(true)
|
105
|
-
end
|
106
|
-
end
|
107
|
-
end
|
108
|
-
|
109
|
-
describe Ingenico::Connect::SDK::Logging::HeaderObfuscator do
|
110
|
-
context '.obfuscate_header()' do
|
111
|
-
it 'works when there is a match' do
|
112
|
-
expect(
|
113
|
-
test_obfuscate_header_with_match("Authorization",
|
114
|
-
"Basic QWxhZGRpbjpPcGVuU2VzYW1l",
|
115
|
-
"********")
|
116
|
-
).to be(true)
|
117
|
-
|
118
|
-
expect(
|
119
|
-
test_obfuscate_header_with_match("authorization",
|
120
|
-
"Basic QWxhZGRpbjpPcGVuU2VzYW1l",
|
121
|
-
"********")
|
122
|
-
).to be(true)
|
123
|
-
|
124
|
-
expect(
|
125
|
-
test_obfuscate_header_with_match("AUTHORIZATION",
|
126
|
-
"Basic QWxhZGRpbjpPcGVuU2VzYW1l",
|
127
|
-
"********")
|
128
|
-
).to be(true)
|
129
|
-
|
130
|
-
expect(
|
131
|
-
test_obfuscate_header_with_match("X-GCS-Authentication-Token",
|
132
|
-
"foobar", "********")
|
133
|
-
).to be(true)
|
134
|
-
|
135
|
-
expect(
|
136
|
-
test_obfuscate_header_with_match("x-gcs-authentication-token",
|
137
|
-
"foobar", "********")
|
138
|
-
).to be(true)
|
139
|
-
|
140
|
-
expect(
|
141
|
-
test_obfuscate_header_with_match("X-GCS-AUTHENTICATION-TOKEN",
|
142
|
-
"foobar", "********")
|
143
|
-
).to be(true)
|
144
|
-
|
145
|
-
expect(
|
146
|
-
test_obfuscate_header_with_match("X-GCS-CallerPassword", "foobar",
|
147
|
-
"********")
|
148
|
-
).to be(true)
|
149
|
-
|
150
|
-
expect(
|
151
|
-
test_obfuscate_header_with_match("x-gcs-callerpassword", "foobar",
|
152
|
-
"********")
|
153
|
-
).to be(true)
|
154
|
-
|
155
|
-
expect(
|
156
|
-
test_obfuscate_header_with_match("X-GCS-CALLERPASSWORD", "foobar",
|
157
|
-
"********")
|
158
|
-
).to be(true)
|
159
|
-
end
|
160
|
-
|
161
|
-
it 'works when there is no match' do
|
162
|
-
expect(
|
163
|
-
test_obfuscate_header_with_no_match("Content-Type",
|
164
|
-
"application/json")
|
165
|
-
).to be(true)
|
166
|
-
|
167
|
-
expect(
|
168
|
-
test_obfuscate_header_with_no_match("content-type",
|
169
|
-
"application/json")
|
170
|
-
).to be(true)
|
171
|
-
|
172
|
-
expect(
|
173
|
-
test_obfuscate_header_with_no_match("CONTENT-TYPE",
|
174
|
-
"application/json")
|
175
|
-
).to be(true)
|
176
|
-
end
|
177
|
-
end
|
178
|
-
end
|