connect-sdk-ruby 2.45.0 → 2.47.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/connect-sdk-ruby.gemspec +1 -1
- data/examples/merchant/captures/create_refund_capture_example.rb +1 -1
- data/examples/merchant/captures/get_capture_example.rb +1 -1
- data/examples/merchant/disputes/cancel_dispute_example.rb +1 -1
- data/examples/merchant/disputes/get_dispute_example.rb +1 -1
- data/examples/merchant/disputes/submit_dispute_example.rb +1 -1
- data/examples/merchant/disputes/upload_dispute_file_example.rb +1 -1
- data/examples/merchant/files/get_file_example.rb +1 -1
- data/examples/merchant/hostedcheckouts/create_hosted_checkout_example.rb +1 -1
- data/examples/merchant/hostedcheckouts/delete_hosted_checkout_example.rb +1 -1
- data/examples/merchant/hostedcheckouts/get_hosted_checkout_example.rb +1 -1
- data/examples/merchant/hostedmandatemanagements/create_hosted_mandate_management_example.rb +1 -1
- data/examples/merchant/hostedmandatemanagements/get_hosted_mandate_management_example.rb +1 -1
- data/examples/merchant/installments/get_installments_info_example.rb +1 -1
- data/examples/merchant/mandates/block_mandate_example.rb +1 -1
- data/examples/merchant/mandates/create_mandate_example.rb +1 -1
- data/examples/merchant/mandates/create_mandate_with_reference_example.rb +1 -1
- data/examples/merchant/mandates/get_mandate_example.rb +1 -1
- data/examples/merchant/mandates/revoke_mandate_example.rb +1 -1
- data/examples/merchant/mandates/unblock_mandate_example.rb +1 -1
- data/examples/merchant/payments/approve_payment_example.rb +1 -1
- data/examples/merchant/payments/cancel_approval_payment_example.rb +1 -1
- data/examples/merchant/payments/cancel_payment_example.rb +1 -1
- data/examples/merchant/payments/capture_payment_example.rb +1 -1
- data/examples/merchant/payments/complete_payment_example.rb +1 -1
- data/examples/merchant/payments/create_payment_dispute_example.rb +1 -1
- data/examples/merchant/payments/create_payment_example.rb +1 -1
- data/examples/merchant/payments/find_payments_example.rb +1 -1
- data/examples/merchant/payments/get_payment_captures_example.rb +1 -1
- data/examples/merchant/payments/get_payment_device_fingerprint_details_example.rb +1 -1
- data/examples/merchant/payments/get_payment_disputes_example.rb +1 -1
- data/examples/merchant/payments/get_payment_example.rb +1 -1
- data/examples/merchant/payments/get_refunds_example.rb +1 -1
- data/examples/merchant/payments/get_third_party_status_example.rb +1 -1
- data/examples/merchant/payments/process_challenged_payment_example.rb +1 -1
- data/examples/merchant/payments/refund_payment_example.rb +1 -1
- data/examples/merchant/payments/tokenize_payment_example.rb +1 -1
- data/examples/merchant/payouts/approve_payout_example.rb +1 -1
- data/examples/merchant/payouts/cancel_approval_payout_example.rb +1 -1
- data/examples/merchant/payouts/cancel_payout_example.rb +1 -1
- data/examples/merchant/payouts/create_payout_example.rb +1 -1
- data/examples/merchant/payouts/find_payouts_example.rb +1 -1
- data/examples/merchant/payouts/get_payout_example.rb +1 -1
- data/examples/merchant/productgroups/get_device_fingerprint_for_groups_example.rb +1 -1
- data/examples/merchant/productgroups/get_payment_product_group_example.rb +2 -1
- data/examples/merchant/productgroups/get_payment_product_groups_example.rb +2 -1
- data/examples/merchant/products/create_payment_product_session_example.rb +1 -1
- data/examples/merchant/products/get_customer_details_example.rb +1 -1
- data/examples/merchant/products/get_device_fingerprint_example.rb +1 -1
- data/examples/merchant/products/get_directory_example.rb +1 -1
- data/examples/merchant/products/get_networks_example.rb +1 -1
- data/examples/merchant/products/get_payment_product_example.rb +2 -1
- data/examples/merchant/products/get_payment_products_example.rb +2 -1
- data/examples/merchant/refunds/approve_refund_example.rb +1 -1
- data/examples/merchant/refunds/cancel_approval_refund_example.rb +1 -1
- data/examples/merchant/refunds/cancel_refund_example.rb +1 -1
- data/examples/merchant/refunds/find_refunds_example.rb +1 -1
- data/examples/merchant/refunds/get_refund_example.rb +1 -1
- data/examples/merchant/riskassessments/risk_assessment_bank_account_example.rb +1 -1
- data/examples/merchant/riskassessments/risk_assessment_cards_example.rb +1 -1
- data/examples/merchant/services/convert_amount_example.rb +1 -1
- data/examples/merchant/services/convert_bank_account_example.rb +1 -1
- data/examples/merchant/services/get_privacy_policy_example.rb +1 -1
- data/examples/merchant/services/iin_details_example.rb +1 -1
- data/examples/merchant/services/test_connection_example.rb +1 -1
- data/examples/merchant/sessions/create_session_example.rb +1 -1
- data/examples/merchant/tokens/approve_sepa_direct_debit_token_example.rb +1 -1
- data/examples/merchant/tokens/create_token_example.rb +1 -1
- data/examples/merchant/tokens/delete_token_example.rb +1 -1
- data/examples/merchant/tokens/get_token_example.rb +1 -1
- data/examples/merchant/tokens/update_token_example.rb +1 -1
- data/lib/ingenico/connect/sdk/api_exception.rb +46 -43
- data/lib/ingenico/connect/sdk/api_resource.rb +124 -107
- data/lib/ingenico/connect/sdk/authenticator.rb +15 -12
- data/lib/ingenico/connect/sdk/authorization_exception.rb +13 -8
- data/lib/ingenico/connect/sdk/call_context.rb +24 -21
- data/lib/ingenico/connect/sdk/client.rb +3 -4
- data/lib/ingenico/connect/sdk/communication_exception.rb +14 -11
- data/lib/ingenico/connect/sdk/communicator.rb +475 -471
- data/lib/ingenico/connect/sdk/communicator_configuration.rb +79 -73
- data/lib/ingenico/connect/sdk/connection.rb +38 -33
- data/lib/ingenico/connect/sdk/data_object.rb +26 -24
- data/lib/ingenico/connect/sdk/declined_payment_exception.rb +38 -35
- data/lib/ingenico/connect/sdk/declined_payout_exception.rb +38 -35
- data/lib/ingenico/connect/sdk/declined_refund_exception.rb +37 -36
- data/lib/ingenico/connect/sdk/declined_transaction_exception.rb +15 -10
- data/lib/ingenico/connect/sdk/defaultimpl/authorization_type.rb +16 -13
- data/lib/ingenico/connect/sdk/defaultimpl/default_authenticator.rb +98 -94
- data/lib/ingenico/connect/sdk/defaultimpl/default_connection.rb +365 -347
- data/lib/ingenico/connect/sdk/defaultimpl/default_marshaller.rb +30 -25
- data/lib/ingenico/connect/sdk/defaultimpl.rb +1 -6
- data/lib/ingenico/connect/sdk/domain/capture/capture.rb +35 -32
- data/lib/ingenico/connect/sdk/domain/capture/capture_output.rb +117 -114
- data/lib/ingenico/connect/sdk/domain/capture/capture_response.rb +9 -6
- data/lib/ingenico/connect/sdk/domain/capture/capture_status_output.rb +36 -33
- data/lib/ingenico/connect/sdk/domain/capture/captures_response.rb +24 -21
- data/lib/ingenico/connect/sdk/domain/capture.rb +5 -0
- data/lib/ingenico/connect/sdk/domain/definitions/abstract_order_status.rb +21 -18
- data/lib/ingenico/connect/sdk/domain/definitions/abstract_payment_method_specific_input.rb +21 -18
- data/lib/ingenico/connect/sdk/domain/definitions/additional_order_input_airline_data.rb +29 -26
- data/lib/ingenico/connect/sdk/domain/definitions/address.rb +63 -60
- data/lib/ingenico/connect/sdk/domain/definitions/airline_data.rb +200 -197
- data/lib/ingenico/connect/sdk/domain/definitions/airline_flight_leg.rb +159 -156
- data/lib/ingenico/connect/sdk/domain/definitions/airline_passenger.rb +45 -42
- data/lib/ingenico/connect/sdk/domain/definitions/amount_of_money.rb +27 -24
- data/lib/ingenico/connect/sdk/domain/definitions/bank_account.rb +21 -18
- data/lib/ingenico/connect/sdk/domain/definitions/bank_account_bban.rb +51 -48
- data/lib/ingenico/connect/sdk/domain/definitions/bank_account_iban.rb +21 -18
- data/lib/ingenico/connect/sdk/domain/definitions/card.rb +27 -24
- data/lib/ingenico/connect/sdk/domain/definitions/card_essentials.rb +33 -30
- data/lib/ingenico/connect/sdk/domain/definitions/card_fraud_results.rb +47 -44
- data/lib/ingenico/connect/sdk/domain/definitions/card_without_cvv.rb +21 -18
- data/lib/ingenico/connect/sdk/domain/definitions/company_information.rb +27 -24
- data/lib/ingenico/connect/sdk/domain/definitions/contact_details_base.rb +27 -24
- data/lib/ingenico/connect/sdk/domain/definitions/customer_base.rb +36 -33
- data/lib/ingenico/connect/sdk/domain/definitions/fraud_fields.rb +171 -168
- data/lib/ingenico/connect/sdk/domain/definitions/fraud_fields_shipping_details.rb +40 -37
- data/lib/ingenico/connect/sdk/domain/definitions/fraud_results.rb +35 -32
- data/lib/ingenico/connect/sdk/domain/definitions/fraud_results_retail_decisions.rb +33 -30
- data/lib/ingenico/connect/sdk/domain/definitions/fraugster_results.rb +27 -24
- data/lib/ingenico/connect/sdk/domain/definitions/in_auth.rb +52 -49
- data/lib/ingenico/connect/sdk/domain/definitions/key_value_pair.rb +27 -24
- data/lib/ingenico/connect/sdk/domain/definitions/lodging_charge.rb +33 -30
- data/lib/ingenico/connect/sdk/domain/definitions/lodging_data.rb +135 -132
- data/lib/ingenico/connect/sdk/domain/definitions/lodging_room.rb +69 -66
- data/lib/ingenico/connect/sdk/domain/definitions/microsoft_fraud_results.rb +57 -54
- data/lib/ingenico/connect/sdk/domain/definitions/order_status_output.rb +64 -61
- data/lib/ingenico/connect/sdk/domain/definitions/payment_product_filter.rb +34 -31
- data/lib/ingenico/connect/sdk/domain/definitions/personal_name_base.rb +33 -30
- data/lib/ingenico/connect/sdk/domain/definitions/redirect_data_base.rb +27 -24
- data/lib/ingenico/connect/sdk/domain/definitions/result_do_risk_assessment.rb +47 -44
- data/lib/ingenico/connect/sdk/domain/definitions/retail_decisions_cc_fraud_check_output.rb +33 -30
- data/lib/ingenico/connect/sdk/domain/definitions/validation_bank_account_check.rb +33 -30
- data/lib/ingenico/connect/sdk/domain/definitions/validation_bank_account_output.rb +48 -45
- data/lib/ingenico/connect/sdk/domain/definitions.rb +5 -0
- data/lib/ingenico/connect/sdk/domain/dispute/create_dispute_request.rb +46 -43
- data/lib/ingenico/connect/sdk/domain/dispute/dispute.rb +47 -44
- data/lib/ingenico/connect/sdk/domain/dispute/dispute_creation_detail.rb +33 -30
- data/lib/ingenico/connect/sdk/domain/dispute/dispute_output.rb +75 -72
- data/lib/ingenico/connect/sdk/domain/dispute/dispute_reference.rb +52 -49
- data/lib/ingenico/connect/sdk/domain/dispute/dispute_response.rb +9 -6
- data/lib/ingenico/connect/sdk/domain/dispute/dispute_status_output.rb +45 -42
- data/lib/ingenico/connect/sdk/domain/dispute/disputes_response.rb +24 -21
- data/lib/ingenico/connect/sdk/domain/dispute/upload_dispute_file_response.rb +27 -24
- data/lib/ingenico/connect/sdk/domain/dispute.rb +5 -0
- data/lib/ingenico/connect/sdk/domain/errors/api_error.rb +57 -54
- data/lib/ingenico/connect/sdk/domain/errors/error_response.rb +30 -27
- data/lib/ingenico/connect/sdk/domain/errors.rb +5 -0
- data/lib/ingenico/connect/sdk/domain/file/hosted_file.rb +45 -42
- data/lib/ingenico/connect/sdk/domain/file.rb +5 -0
- data/lib/ingenico/connect/sdk/domain/hostedcheckout/create_hosted_checkout_request.rb +92 -89
- data/lib/ingenico/connect/sdk/domain/hostedcheckout/create_hosted_checkout_response.rb +48 -45
- data/lib/ingenico/connect/sdk/domain/hostedcheckout/created_payment_output.rb +62 -59
- data/lib/ingenico/connect/sdk/domain/hostedcheckout/displayed_data.rb +36 -33
- data/lib/ingenico/connect/sdk/domain/hostedcheckout/frequency.rb +27 -24
- data/lib/ingenico/connect/sdk/domain/hostedcheckout/get_hosted_checkout_response.rb +28 -25
- data/lib/ingenico/connect/sdk/domain/hostedcheckout/hosted_checkout_specific_input.rb +77 -74
- data/lib/ingenico/connect/sdk/domain/hostedcheckout/mobile_payment_method_specific_input_hosted_checkout.rb +53 -50
- data/lib/ingenico/connect/sdk/domain/hostedcheckout/mobile_payment_product302_specific_input_hosted_checkout.rb +21 -18
- data/lib/ingenico/connect/sdk/domain/hostedcheckout/mobile_payment_product320_specific_input_hosted_checkout.rb +34 -31
- data/lib/ingenico/connect/sdk/domain/hostedcheckout/payment_product_filters_hosted_checkout.rb +35 -32
- data/lib/ingenico/connect/sdk/domain/hostedcheckout/recurring_payments_data.rb +29 -26
- data/lib/ingenico/connect/sdk/domain/hostedcheckout/trial_information.rb +48 -45
- data/lib/ingenico/connect/sdk/domain/hostedcheckout/trial_period.rb +27 -24
- data/lib/ingenico/connect/sdk/domain/hostedcheckout.rb +5 -0
- data/lib/ingenico/connect/sdk/domain/hostedmandatemanagement/create_hosted_mandate_management_request.rb +29 -26
- data/lib/ingenico/connect/sdk/domain/hostedmandatemanagement/create_hosted_mandate_management_response.rb +33 -30
- data/lib/ingenico/connect/sdk/domain/hostedmandatemanagement/get_hosted_mandate_management_response.rb +28 -25
- data/lib/ingenico/connect/sdk/domain/hostedmandatemanagement/hosted_mandate_info.rb +52 -49
- data/lib/ingenico/connect/sdk/domain/hostedmandatemanagement/hosted_mandate_management_specific_input.rb +45 -42
- data/lib/ingenico/connect/sdk/domain/hostedmandatemanagement.rb +5 -0
- data/lib/ingenico/connect/sdk/domain/installments/get_installment_request.rb +46 -43
- data/lib/ingenico/connect/sdk/domain/installments/installment_display_hints.rb +33 -30
- data/lib/ingenico/connect/sdk/domain/installments/installment_options.rb +37 -34
- data/lib/ingenico/connect/sdk/domain/installments/installment_options_response.rb +24 -21
- data/lib/ingenico/connect/sdk/domain/installments.rb +5 -0
- data/lib/ingenico/connect/sdk/domain/mandates/create_mandate_base.rb +58 -55
- data/lib/ingenico/connect/sdk/domain/mandates/create_mandate_request.rb +9 -6
- data/lib/ingenico/connect/sdk/domain/mandates/create_mandate_response.rb +29 -26
- data/lib/ingenico/connect/sdk/domain/mandates/create_mandate_with_return_url.rb +21 -18
- data/lib/ingenico/connect/sdk/domain/mandates/get_mandate_response.rb +22 -19
- data/lib/ingenico/connect/sdk/domain/mandates/mandate_address.rb +52 -49
- data/lib/ingenico/connect/sdk/domain/mandates/mandate_contact_details.rb +21 -18
- data/lib/ingenico/connect/sdk/domain/mandates/mandate_customer.rb +49 -46
- data/lib/ingenico/connect/sdk/domain/mandates/mandate_merchant_action.rb +28 -25
- data/lib/ingenico/connect/sdk/domain/mandates/mandate_personal_information.rb +28 -25
- data/lib/ingenico/connect/sdk/domain/mandates/mandate_personal_name.rb +27 -24
- data/lib/ingenico/connect/sdk/domain/mandates/mandate_redirect_data.rb +9 -6
- data/lib/ingenico/connect/sdk/domain/mandates/mandate_response.rb +52 -49
- data/lib/ingenico/connect/sdk/domain/mandates.rb +5 -0
- data/lib/ingenico/connect/sdk/domain/metadata/shopping_cart_extension.rb +49 -42
- data/lib/ingenico/connect/sdk/domain/metadata.rb +1 -0
- data/lib/ingenico/connect/sdk/domain/payment/abstract_bank_transfer_payment_method_specific_input.rb +21 -18
- data/lib/ingenico/connect/sdk/domain/payment/abstract_card_payment_method_specific_input.rb +129 -119
- data/lib/ingenico/connect/sdk/domain/payment/abstract_cash_payment_method_specific_input.rb +9 -6
- data/lib/ingenico/connect/sdk/domain/payment/abstract_e_invoice_payment_method_specific_input.rb +21 -18
- data/lib/ingenico/connect/sdk/domain/payment/abstract_payment_method_specific_output.rb +21 -18
- data/lib/ingenico/connect/sdk/domain/payment/abstract_redirect_payment_method_specific_input.rb +52 -49
- data/lib/ingenico/connect/sdk/domain/payment/abstract_redirect_payment_product4101_specific_input.rb +9 -6
- data/lib/ingenico/connect/sdk/domain/payment/abstract_redirect_payment_product840_specific_input.rb +21 -18
- data/lib/ingenico/connect/sdk/domain/payment/abstract_sepa_direct_debit_payment_method_specific_input.rb +9 -6
- data/lib/ingenico/connect/sdk/domain/payment/abstract_sepa_direct_debit_payment_product771_specific_input.rb +23 -20
- data/lib/ingenico/connect/sdk/domain/payment/abstract_three_d_secure.rb +72 -69
- data/lib/ingenico/connect/sdk/domain/payment/account_funding_recipient.rb +53 -50
- data/lib/ingenico/connect/sdk/domain/payment/additional_order_input.rb +82 -79
- data/lib/ingenico/connect/sdk/domain/payment/address_personal.rb +22 -19
- data/lib/ingenico/connect/sdk/domain/payment/afr_name.rb +27 -24
- data/lib/ingenico/connect/sdk/domain/payment/amount_breakdown.rb +27 -24
- data/lib/ingenico/connect/sdk/domain/payment/approve_payment_card_payment_method_specific_output.rb +21 -18
- data/lib/ingenico/connect/sdk/domain/payment/approve_payment_direct_debit_payment_method_specific_input.rb +9 -6
- data/lib/ingenico/connect/sdk/domain/payment/approve_payment_mobile_payment_method_specific_output.rb +21 -18
- data/lib/ingenico/connect/sdk/domain/payment/approve_payment_non_sepa_direct_debit_payment_method_specific_input.rb +9 -6
- data/lib/ingenico/connect/sdk/domain/payment/approve_payment_payment_method_specific_input.rb +27 -24
- data/lib/ingenico/connect/sdk/domain/payment/approve_payment_request.rb +48 -45
- data/lib/ingenico/connect/sdk/domain/payment/approve_payment_sepa_direct_debit_payment_method_specific_input.rb +9 -6
- data/lib/ingenico/connect/sdk/domain/payment/bank_transfer_payment_method_specific_input.rb +9 -6
- data/lib/ingenico/connect/sdk/domain/payment/bank_transfer_payment_method_specific_input_base.rb +9 -6
- data/lib/ingenico/connect/sdk/domain/payment/bank_transfer_payment_method_specific_output.rb +22 -19
- data/lib/ingenico/connect/sdk/domain/payment/browser_data.rb +57 -54
- data/lib/ingenico/connect/sdk/domain/payment/cancel_approval_payment_response.rb +22 -19
- data/lib/ingenico/connect/sdk/domain/payment/cancel_payment_card_payment_method_specific_output.rb +21 -18
- data/lib/ingenico/connect/sdk/domain/payment/cancel_payment_mobile_payment_method_specific_output.rb +21 -18
- data/lib/ingenico/connect/sdk/domain/payment/cancel_payment_response.rb +36 -33
- data/lib/ingenico/connect/sdk/domain/payment/capture_payment_request.rb +27 -24
- data/lib/ingenico/connect/sdk/domain/payment/card_payment_method_specific_input.rb +65 -62
- data/lib/ingenico/connect/sdk/domain/payment/card_payment_method_specific_input_base.rb +22 -19
- data/lib/ingenico/connect/sdk/domain/payment/card_payment_method_specific_output.rb +60 -57
- data/lib/ingenico/connect/sdk/domain/payment/card_recurrence_details.rb +33 -30
- data/lib/ingenico/connect/sdk/domain/payment/cash_payment_method_specific_input.rb +66 -63
- data/lib/ingenico/connect/sdk/domain/payment/cash_payment_method_specific_input_base.rb +9 -6
- data/lib/ingenico/connect/sdk/domain/payment/cash_payment_method_specific_output.rb +22 -19
- data/lib/ingenico/connect/sdk/domain/payment/cash_payment_product1503_specific_input.rb +24 -21
- data/lib/ingenico/connect/sdk/domain/payment/cash_payment_product1504_specific_input.rb +9 -6
- data/lib/ingenico/connect/sdk/domain/payment/cash_payment_product1521_specific_input.rb +9 -6
- data/lib/ingenico/connect/sdk/domain/payment/cash_payment_product1522_specific_input.rb +9 -6
- data/lib/ingenico/connect/sdk/domain/payment/cash_payment_product1523_specific_input.rb +9 -6
- data/lib/ingenico/connect/sdk/domain/payment/cash_payment_product1524_specific_input.rb +9 -6
- data/lib/ingenico/connect/sdk/domain/payment/cash_payment_product1526_specific_input.rb +9 -6
- data/lib/ingenico/connect/sdk/domain/payment/cash_payment_product_with_redirect_specific_input_base.rb +21 -18
- data/lib/ingenico/connect/sdk/domain/payment/complete_payment_card_payment_method_specific_input.rb +22 -19
- data/lib/ingenico/connect/sdk/domain/payment/complete_payment_request.rb +36 -33
- data/lib/ingenico/connect/sdk/domain/payment/complete_payment_response.rb +9 -6
- data/lib/ingenico/connect/sdk/domain/payment/contact_details.rb +45 -42
- data/lib/ingenico/connect/sdk/domain/payment/create_payment_request.rb +120 -117
- data/lib/ingenico/connect/sdk/domain/payment/create_payment_response.rb +9 -6
- data/lib/ingenico/connect/sdk/domain/payment/create_payment_result.rb +36 -33
- data/lib/ingenico/connect/sdk/domain/payment/customer.rb +89 -86
- data/lib/ingenico/connect/sdk/domain/payment/customer_account.rb +104 -101
- data/lib/ingenico/connect/sdk/domain/payment/customer_account_authentication.rb +33 -30
- data/lib/ingenico/connect/sdk/domain/payment/customer_approve_payment.rb +21 -18
- data/lib/ingenico/connect/sdk/domain/payment/customer_device.rb +64 -61
- data/lib/ingenico/connect/sdk/domain/payment/customer_payment_activity.rb +33 -30
- data/lib/ingenico/connect/sdk/domain/payment/decrypted_payment_data.rb +65 -62
- data/lib/ingenico/connect/sdk/domain/payment/device_fingerprint_details.rb +27 -24
- data/lib/ingenico/connect/sdk/domain/payment/device_render_options.rb +38 -35
- data/lib/ingenico/connect/sdk/domain/payment/e_invoice_payment_method_specific_input.rb +28 -25
- data/lib/ingenico/connect/sdk/domain/payment/e_invoice_payment_method_specific_input_base.rb +9 -6
- data/lib/ingenico/connect/sdk/domain/payment/e_invoice_payment_method_specific_output.rb +29 -26
- data/lib/ingenico/connect/sdk/domain/payment/e_invoice_payment_product9000_specific_input.rb +28 -25
- data/lib/ingenico/connect/sdk/domain/payment/e_invoice_payment_product9000_specific_output.rb +21 -18
- data/lib/ingenico/connect/sdk/domain/payment/exemption_output.rb +33 -30
- data/lib/ingenico/connect/sdk/domain/payment/external_cardholder_authentication_data.rb +83 -80
- data/lib/ingenico/connect/sdk/domain/payment/find_payments_response.rb +47 -44
- data/lib/ingenico/connect/sdk/domain/payment/g_pay_three_d_secure.rb +46 -43
- data/lib/ingenico/connect/sdk/domain/payment/gift_card_purchase.rb +28 -25
- data/lib/ingenico/connect/sdk/domain/payment/hosted_checkout_specific_output.rb +27 -24
- data/lib/ingenico/connect/sdk/domain/payment/installments.rb +53 -50
- data/lib/ingenico/connect/sdk/domain/payment/invoice_payment_method_specific_input.rb +21 -18
- data/lib/ingenico/connect/sdk/domain/payment/invoice_payment_method_specific_output.rb +22 -19
- data/lib/ingenico/connect/sdk/domain/payment/level3_summary_data.rb +40 -37
- data/lib/ingenico/connect/sdk/domain/payment/line_item.rb +45 -42
- data/lib/ingenico/connect/sdk/domain/payment/line_item_invoice_data.rb +52 -49
- data/lib/ingenico/connect/sdk/domain/payment/line_item_level3_interchange_information.rb +63 -60
- data/lib/ingenico/connect/sdk/domain/payment/loan_recipient.rb +56 -53
- data/lib/ingenico/connect/sdk/domain/payment/merchant.rb +46 -43
- data/lib/ingenico/connect/sdk/domain/payment/merchant_action.rb +67 -64
- data/lib/ingenico/connect/sdk/domain/payment/mobile_payment_data.rb +27 -24
- data/lib/ingenico/connect/sdk/domain/payment/mobile_payment_method_specific_input.rb +59 -56
- data/lib/ingenico/connect/sdk/domain/payment/mobile_payment_method_specific_output.rb +48 -45
- data/lib/ingenico/connect/sdk/domain/payment/mobile_payment_product320_specific_input.rb +28 -25
- data/lib/ingenico/connect/sdk/domain/payment/mobile_three_d_secure_challenge_parameters.rb +45 -42
- data/lib/ingenico/connect/sdk/domain/payment/non_sepa_direct_debit_payment_method_specific_input.rb +71 -68
- data/lib/ingenico/connect/sdk/domain/payment/non_sepa_direct_debit_payment_method_specific_output.rb +22 -19
- data/lib/ingenico/connect/sdk/domain/payment/non_sepa_direct_debit_payment_product705_specific_input.rb +34 -31
- data/lib/ingenico/connect/sdk/domain/payment/non_sepa_direct_debit_payment_product730_specific_input.rb +22 -19
- data/lib/ingenico/connect/sdk/domain/payment/order.rb +77 -74
- data/lib/ingenico/connect/sdk/domain/payment/order_approve_payment.rb +36 -33
- data/lib/ingenico/connect/sdk/domain/payment/order_invoice_data.rb +47 -44
- data/lib/ingenico/connect/sdk/domain/payment/order_line_details.rb +101 -98
- data/lib/ingenico/connect/sdk/domain/payment/order_output.rb +29 -26
- data/lib/ingenico/connect/sdk/domain/payment/order_references.rb +52 -49
- data/lib/ingenico/connect/sdk/domain/payment/order_references_approve_payment.rb +21 -18
- data/lib/ingenico/connect/sdk/domain/payment/order_type_information.rb +45 -42
- data/lib/ingenico/connect/sdk/domain/payment/payment.rb +48 -45
- data/lib/ingenico/connect/sdk/domain/payment/payment_account_on_file.rb +27 -24
- data/lib/ingenico/connect/sdk/domain/payment/payment_approval_response.rb +45 -42
- data/lib/ingenico/connect/sdk/domain/payment/payment_creation_output.rb +45 -42
- data/lib/ingenico/connect/sdk/domain/payment/payment_creation_references.rb +27 -24
- data/lib/ingenico/connect/sdk/domain/payment/payment_error_response.rb +37 -34
- data/lib/ingenico/connect/sdk/domain/payment/payment_output.rb +117 -114
- data/lib/ingenico/connect/sdk/domain/payment/payment_product3201_specific_output.rb +22 -19
- data/lib/ingenico/connect/sdk/domain/payment/payment_product771_specific_output.rb +21 -18
- data/lib/ingenico/connect/sdk/domain/payment/payment_product806_specific_output.rb +29 -26
- data/lib/ingenico/connect/sdk/domain/payment/payment_product836_specific_output.rb +21 -18
- data/lib/ingenico/connect/sdk/domain/payment/payment_product840_customer_account.rb +75 -72
- data/lib/ingenico/connect/sdk/domain/payment/payment_product840_specific_output.rb +49 -46
- data/lib/ingenico/connect/sdk/domain/payment/payment_product863_third_party_data.rb +57 -54
- data/lib/ingenico/connect/sdk/domain/payment/payment_references.rb +57 -54
- data/lib/ingenico/connect/sdk/domain/payment/payment_response.rb +9 -6
- data/lib/ingenico/connect/sdk/domain/payment/payment_status_output.rb +33 -30
- data/lib/ingenico/connect/sdk/domain/payment/personal_identification.rb +33 -30
- data/lib/ingenico/connect/sdk/domain/payment/personal_information.rb +47 -44
- data/lib/ingenico/connect/sdk/domain/payment/personal_name.rb +21 -18
- data/lib/ingenico/connect/sdk/domain/payment/protection_eligibility.rb +27 -24
- data/lib/ingenico/connect/sdk/domain/payment/redirect_data.rb +9 -6
- data/lib/ingenico/connect/sdk/domain/payment/redirect_payment_method_specific_input.rb +92 -89
- data/lib/ingenico/connect/sdk/domain/payment/redirect_payment_method_specific_input_base.rb +29 -26
- data/lib/ingenico/connect/sdk/domain/payment/redirect_payment_method_specific_output.rb +76 -73
- data/lib/ingenico/connect/sdk/domain/payment/redirect_payment_product4101_specific_input.rb +33 -30
- data/lib/ingenico/connect/sdk/domain/payment/redirect_payment_product4101_specific_input_base.rb +21 -18
- data/lib/ingenico/connect/sdk/domain/payment/redirect_payment_product809_specific_input.rb +29 -26
- data/lib/ingenico/connect/sdk/domain/payment/redirect_payment_product816_specific_input.rb +22 -19
- data/lib/ingenico/connect/sdk/domain/payment/redirect_payment_product840_specific_input.rb +29 -26
- data/lib/ingenico/connect/sdk/domain/payment/redirect_payment_product840_specific_input_base.rb +9 -6
- data/lib/ingenico/connect/sdk/domain/payment/redirect_payment_product861_specific_input.rb +21 -18
- data/lib/ingenico/connect/sdk/domain/payment/redirect_payment_product863_specific_input.rb +27 -24
- data/lib/ingenico/connect/sdk/domain/payment/redirect_payment_product869_specific_input.rb +33 -30
- data/lib/ingenico/connect/sdk/domain/payment/redirect_payment_product882_specific_input.rb +21 -18
- data/lib/ingenico/connect/sdk/domain/payment/redirection_data.rb +27 -24
- data/lib/ingenico/connect/sdk/domain/payment/refund_bank_method_specific_output.rb +9 -6
- data/lib/ingenico/connect/sdk/domain/payment/refund_card_method_specific_output.rb +28 -25
- data/lib/ingenico/connect/sdk/domain/payment/refund_cash_method_specific_output.rb +9 -6
- data/lib/ingenico/connect/sdk/domain/payment/refund_e_invoice_method_specific_output.rb +9 -6
- data/lib/ingenico/connect/sdk/domain/payment/refund_e_wallet_method_specific_output.rb +22 -19
- data/lib/ingenico/connect/sdk/domain/payment/refund_method_specific_output.rb +33 -30
- data/lib/ingenico/connect/sdk/domain/payment/refund_mobile_method_specific_output.rb +21 -18
- data/lib/ingenico/connect/sdk/domain/payment/refund_output.rb +69 -66
- data/lib/ingenico/connect/sdk/domain/payment/refund_payment_product840_customer_account.rb +33 -30
- data/lib/ingenico/connect/sdk/domain/payment/refund_payment_product840_specific_output.rb +22 -19
- data/lib/ingenico/connect/sdk/domain/payment/scheme_token_data.rb +52 -49
- data/lib/ingenico/connect/sdk/domain/payment/sdk_data_input.rb +58 -55
- data/lib/ingenico/connect/sdk/domain/payment/sdk_data_output.rb +21 -18
- data/lib/ingenico/connect/sdk/domain/payment/seller.rb +102 -99
- data/lib/ingenico/connect/sdk/domain/payment/sepa_direct_debit_payment_method_specific_input.rb +64 -61
- data/lib/ingenico/connect/sdk/domain/payment/sepa_direct_debit_payment_method_specific_input_base.rb +22 -19
- data/lib/ingenico/connect/sdk/domain/payment/sepa_direct_debit_payment_method_specific_output.rb +35 -32
- data/lib/ingenico/connect/sdk/domain/payment/sepa_direct_debit_payment_product771_specific_input.rb +28 -25
- data/lib/ingenico/connect/sdk/domain/payment/sepa_direct_debit_payment_product771_specific_input_base.rb +28 -25
- data/lib/ingenico/connect/sdk/domain/payment/shipping.rb +64 -61
- data/lib/ingenico/connect/sdk/domain/payment/shopping_cart.rb +59 -56
- data/lib/ingenico/connect/sdk/domain/payment/third_party_data.rb +22 -19
- data/lib/ingenico/connect/sdk/domain/payment/third_party_status_response.rb +21 -18
- data/lib/ingenico/connect/sdk/domain/payment/three_d_secure.rb +29 -26
- data/lib/ingenico/connect/sdk/domain/payment/three_d_secure_base.rb +9 -6
- data/lib/ingenico/connect/sdk/domain/payment/three_d_secure_data.rb +33 -30
- data/lib/ingenico/connect/sdk/domain/payment/three_d_secure_results.rb +112 -109
- data/lib/ingenico/connect/sdk/domain/payment/tokenize_payment_request.rb +21 -18
- data/lib/ingenico/connect/sdk/domain/payment/trustly_bank_account.rb +45 -42
- data/lib/ingenico/connect/sdk/domain/payment.rb +5 -0
- data/lib/ingenico/connect/sdk/domain/payout/abstract_payout_method_specific_input.rb +9 -6
- data/lib/ingenico/connect/sdk/domain/payout/approve_payout_request.rb +21 -18
- data/lib/ingenico/connect/sdk/domain/payout/bank_transfer_payout_method_specific_input.rb +56 -53
- data/lib/ingenico/connect/sdk/domain/payout/card_payout_method_specific_input.rb +47 -44
- data/lib/ingenico/connect/sdk/domain/payout/create_payout_request.rb +126 -123
- data/lib/ingenico/connect/sdk/domain/payout/find_payouts_response.rb +47 -44
- data/lib/ingenico/connect/sdk/domain/payout/payout_customer.rb +49 -46
- data/lib/ingenico/connect/sdk/domain/payout/payout_details.rb +36 -33
- data/lib/ingenico/connect/sdk/domain/payout/payout_error_response.rb +37 -34
- data/lib/ingenico/connect/sdk/domain/payout/payout_merchant.rb +21 -18
- data/lib/ingenico/connect/sdk/domain/payout/payout_recipient.rb +33 -30
- data/lib/ingenico/connect/sdk/domain/payout/payout_references.rb +33 -30
- data/lib/ingenico/connect/sdk/domain/payout/payout_response.rb +9 -6
- data/lib/ingenico/connect/sdk/domain/payout/payout_result.rb +35 -32
- data/lib/ingenico/connect/sdk/domain/payout.rb +5 -0
- data/lib/ingenico/connect/sdk/domain/product/abstract_indicator.rb +27 -24
- data/lib/ingenico/connect/sdk/domain/product/account_on_file.rb +48 -45
- data/lib/ingenico/connect/sdk/domain/product/account_on_file_attribute.rb +27 -24
- data/lib/ingenico/connect/sdk/domain/product/account_on_file_display_hints.rb +30 -27
- data/lib/ingenico/connect/sdk/domain/product/authentication_indicator.rb +9 -6
- data/lib/ingenico/connect/sdk/domain/product/boleto_bancario_requiredness_validator.rb +21 -18
- data/lib/ingenico/connect/sdk/domain/product/create_payment_product_session_request.rb +22 -19
- data/lib/ingenico/connect/sdk/domain/product/create_payment_product_session_response.rb +22 -19
- data/lib/ingenico/connect/sdk/domain/product/device_fingerprint_request.rb +21 -18
- data/lib/ingenico/connect/sdk/domain/product/device_fingerprint_response.rb +27 -24
- data/lib/ingenico/connect/sdk/domain/product/directory.rb +24 -21
- data/lib/ingenico/connect/sdk/domain/product/directory_entry.rb +47 -44
- data/lib/ingenico/connect/sdk/domain/product/empty_validator.rb +9 -6
- data/lib/ingenico/connect/sdk/domain/product/fixed_list_validator.rb +24 -21
- data/lib/ingenico/connect/sdk/domain/product/get_customer_details_request.rb +30 -27
- data/lib/ingenico/connect/sdk/domain/product/get_customer_details_response.rb +75 -72
- data/lib/ingenico/connect/sdk/domain/product/label_template_element.rb +27 -24
- data/lib/ingenico/connect/sdk/domain/product/length_validator.rb +27 -24
- data/lib/ingenico/connect/sdk/domain/product/mobile_payment_product_session302_specific_input.rb +33 -30
- data/lib/ingenico/connect/sdk/domain/product/mobile_payment_product_session302_specific_output.rb +21 -18
- data/lib/ingenico/connect/sdk/domain/product/payment_product.rb +203 -200
- data/lib/ingenico/connect/sdk/domain/product/payment_product302_specific_data.rb +24 -21
- data/lib/ingenico/connect/sdk/domain/product/payment_product320_specific_data.rb +30 -27
- data/lib/ingenico/connect/sdk/domain/product/payment_product863_specific_data.rb +24 -21
- data/lib/ingenico/connect/sdk/domain/product/payment_product_display_hints.rb +33 -30
- data/lib/ingenico/connect/sdk/domain/product/payment_product_field.rb +47 -44
- data/lib/ingenico/connect/sdk/domain/product/payment_product_field_data_restrictions.rb +28 -25
- data/lib/ingenico/connect/sdk/domain/product/payment_product_field_display_element.rb +45 -42
- data/lib/ingenico/connect/sdk/domain/product/payment_product_field_display_hints.rb +77 -74
- data/lib/ingenico/connect/sdk/domain/product/payment_product_field_form_element.rb +30 -27
- data/lib/ingenico/connect/sdk/domain/product/payment_product_field_tooltip.rb +27 -24
- data/lib/ingenico/connect/sdk/domain/product/payment_product_field_validators.rb +92 -89
- data/lib/ingenico/connect/sdk/domain/product/payment_product_group.rb +59 -56
- data/lib/ingenico/connect/sdk/domain/product/payment_product_group_response.rb +9 -6
- data/lib/ingenico/connect/sdk/domain/product/payment_product_groups.rb +24 -21
- data/lib/ingenico/connect/sdk/domain/product/payment_product_networks_response.rb +24 -21
- data/lib/ingenico/connect/sdk/domain/product/payment_product_response.rb +9 -6
- data/lib/ingenico/connect/sdk/domain/product/payment_products.rb +24 -21
- data/lib/ingenico/connect/sdk/domain/product/range_validator.rb +27 -24
- data/lib/ingenico/connect/sdk/domain/product/regular_expression_validator.rb +21 -18
- data/lib/ingenico/connect/sdk/domain/product/value_mapping_element.rb +38 -35
- data/lib/ingenico/connect/sdk/domain/product.rb +5 -0
- data/lib/ingenico/connect/sdk/domain/refund/approve_refund_request.rb +21 -18
- data/lib/ingenico/connect/sdk/domain/refund/bank_account_bban_refund.rb +33 -30
- data/lib/ingenico/connect/sdk/domain/refund/bank_refund_method_specific_input.rb +35 -32
- data/lib/ingenico/connect/sdk/domain/refund/find_refunds_response.rb +47 -44
- data/lib/ingenico/connect/sdk/domain/refund/refund_customer.rb +48 -45
- data/lib/ingenico/connect/sdk/domain/refund/refund_error_response.rb +37 -34
- data/lib/ingenico/connect/sdk/domain/refund/refund_references.rb +21 -18
- data/lib/ingenico/connect/sdk/domain/refund/refund_request.rb +49 -46
- data/lib/ingenico/connect/sdk/domain/refund/refund_response.rb +9 -6
- data/lib/ingenico/connect/sdk/domain/refund/refund_result.rb +35 -32
- data/lib/ingenico/connect/sdk/domain/refund/refunds_response.rb +24 -21
- data/lib/ingenico/connect/sdk/domain/refund.rb +5 -0
- data/lib/ingenico/connect/sdk/domain/riskassessments/contact_details_risk_assessment.rb +21 -18
- data/lib/ingenico/connect/sdk/domain/riskassessments/customer_account_risk_assessment.rb +27 -24
- data/lib/ingenico/connect/sdk/domain/riskassessments/customer_device_risk_assessment.rb +27 -24
- data/lib/ingenico/connect/sdk/domain/riskassessments/customer_risk_assessment.rb +77 -74
- data/lib/ingenico/connect/sdk/domain/riskassessments/merchant_risk_assessment.rb +21 -18
- data/lib/ingenico/connect/sdk/domain/riskassessments/order_risk_assessment.rb +43 -40
- data/lib/ingenico/connect/sdk/domain/riskassessments/personal_information_risk_assessment.rb +22 -19
- data/lib/ingenico/connect/sdk/domain/riskassessments/personal_name_risk_assessment.rb +9 -6
- data/lib/ingenico/connect/sdk/domain/riskassessments/risk_assessment.rb +48 -45
- data/lib/ingenico/connect/sdk/domain/riskassessments/risk_assessment_bank_account.rb +29 -26
- data/lib/ingenico/connect/sdk/domain/riskassessments/risk_assessment_card.rb +22 -19
- data/lib/ingenico/connect/sdk/domain/riskassessments/risk_assessment_response.rb +24 -21
- data/lib/ingenico/connect/sdk/domain/riskassessments/shipping_risk_assessment.rb +34 -31
- data/lib/ingenico/connect/sdk/domain/riskassessments.rb +5 -0
- data/lib/ingenico/connect/sdk/domain/services/bank_data.rb +45 -42
- data/lib/ingenico/connect/sdk/domain/services/bank_details.rb +29 -26
- data/lib/ingenico/connect/sdk/domain/services/bank_details_request.rb +9 -6
- data/lib/ingenico/connect/sdk/domain/services/bank_details_response.rb +43 -40
- data/lib/ingenico/connect/sdk/domain/services/convert_amount.rb +21 -18
- data/lib/ingenico/connect/sdk/domain/services/get_iin_details_request.rb +28 -25
- data/lib/ingenico/connect/sdk/domain/services/get_iin_details_response.rb +47 -44
- data/lib/ingenico/connect/sdk/domain/services/get_privacy_policy_response.rb +21 -18
- data/lib/ingenico/connect/sdk/domain/services/iin_detail.rb +27 -24
- data/lib/ingenico/connect/sdk/domain/services/payment_context.rb +46 -43
- data/lib/ingenico/connect/sdk/domain/services/swift.rb +75 -72
- data/lib/ingenico/connect/sdk/domain/services/test_connection.rb +21 -18
- data/lib/ingenico/connect/sdk/domain/services.rb +5 -0
- data/lib/ingenico/connect/sdk/domain/sessions/payment_product_filters_client_session.rb +29 -26
- data/lib/ingenico/connect/sdk/domain/sessions/session_request.rb +31 -28
- data/lib/ingenico/connect/sdk/domain/sessions/session_response.rb +54 -51
- data/lib/ingenico/connect/sdk/domain/sessions.rb +5 -0
- data/lib/ingenico/connect/sdk/domain/token/abstract_token.rb +21 -18
- data/lib/ingenico/connect/sdk/domain/token/approve_token_request.rb +9 -6
- data/lib/ingenico/connect/sdk/domain/token/contact_details_token.rb +9 -6
- data/lib/ingenico/connect/sdk/domain/token/create_token_request.rb +55 -52
- data/lib/ingenico/connect/sdk/domain/token/create_token_response.rb +33 -30
- data/lib/ingenico/connect/sdk/domain/token/creditor.rb +81 -78
- data/lib/ingenico/connect/sdk/domain/token/customer_token.rb +29 -26
- data/lib/ingenico/connect/sdk/domain/token/customer_token_with_contact_details.rb +22 -19
- data/lib/ingenico/connect/sdk/domain/token/debtor.rb +81 -78
- data/lib/ingenico/connect/sdk/domain/token/mandate_approval.rb +33 -30
- data/lib/ingenico/connect/sdk/domain/token/mandate_non_sepa_direct_debit.rb +29 -26
- data/lib/ingenico/connect/sdk/domain/token/mandate_sepa_direct_debit.rb +22 -19
- data/lib/ingenico/connect/sdk/domain/token/mandate_sepa_direct_debit_with_mandate_id.rb +21 -18
- data/lib/ingenico/connect/sdk/domain/token/mandate_sepa_direct_debit_without_creditor.rb +54 -51
- data/lib/ingenico/connect/sdk/domain/token/personal_information_token.rb +22 -19
- data/lib/ingenico/connect/sdk/domain/token/personal_name_token.rb +9 -6
- data/lib/ingenico/connect/sdk/domain/token/token_card.rb +29 -26
- data/lib/ingenico/connect/sdk/domain/token/token_card_data.rb +34 -31
- data/lib/ingenico/connect/sdk/domain/token/token_e_wallet.rb +29 -26
- data/lib/ingenico/connect/sdk/domain/token/token_e_wallet_data.rb +21 -18
- data/lib/ingenico/connect/sdk/domain/token/token_non_sepa_direct_debit.rb +29 -26
- data/lib/ingenico/connect/sdk/domain/token/token_non_sepa_direct_debit_payment_product705_specific_data.rb +28 -25
- data/lib/ingenico/connect/sdk/domain/token/token_non_sepa_direct_debit_payment_product730_specific_data.rb +22 -19
- data/lib/ingenico/connect/sdk/domain/token/token_response.rb +61 -58
- data/lib/ingenico/connect/sdk/domain/token/token_sepa_direct_debit.rb +29 -26
- data/lib/ingenico/connect/sdk/domain/token/token_sepa_direct_debit_without_creditor.rb +29 -26
- data/lib/ingenico/connect/sdk/domain/token/update_token_request.rb +49 -46
- data/lib/ingenico/connect/sdk/domain/token.rb +5 -0
- data/lib/ingenico/connect/sdk/domain.rb +1 -0
- data/lib/ingenico/connect/sdk/endpoint_configuration.rb +120 -116
- data/lib/ingenico/connect/sdk/exceptions.rb +1 -8
- data/lib/ingenico/connect/sdk/factory.rb +193 -182
- data/lib/ingenico/connect/sdk/global_collect_exception.rb +15 -10
- data/lib/ingenico/connect/sdk/idempotence_exception.rb +23 -19
- data/lib/ingenico/connect/sdk/logging/communicator_logger.rb +20 -16
- data/lib/ingenico/connect/sdk/logging/log_message_builder.rb +73 -67
- data/lib/ingenico/connect/sdk/logging/logging_capable.rb +12 -12
- data/lib/ingenico/connect/sdk/logging/logging_util.rb +304 -297
- data/lib/ingenico/connect/sdk/logging/obfuscation/body_obfuscator.rb +83 -79
- data/lib/ingenico/connect/sdk/logging/obfuscation/header_obfuscator.rb +42 -38
- data/lib/ingenico/connect/sdk/logging/obfuscation/obfuscation_capable.rb +17 -12
- data/lib/ingenico/connect/sdk/logging/obfuscation/obfuscation_rule.rb +40 -36
- data/lib/ingenico/connect/sdk/logging/obfuscation.rb +1 -0
- data/lib/ingenico/connect/sdk/logging/request_log_message_builder.rb +42 -34
- data/lib/ingenico/connect/sdk/logging/response_log_message_builder.rb +35 -29
- data/lib/ingenico/connect/sdk/logging/ruby_communicator_logger.rb +51 -47
- data/lib/ingenico/connect/sdk/logging/stdout_communicator_logger.rb +26 -22
- data/lib/ingenico/connect/sdk/logging.rb +1 -14
- data/lib/ingenico/connect/sdk/marshaller.rb +22 -19
- data/lib/ingenico/connect/sdk/marshaller_syntax_exception.rb +7 -4
- data/lib/ingenico/connect/sdk/merchant/captures/captures_client.rb +75 -72
- data/lib/ingenico/connect/sdk/merchant/captures.rb +5 -0
- data/lib/ingenico/connect/sdk/merchant/disputes/disputes_client.rb +134 -131
- data/lib/ingenico/connect/sdk/merchant/disputes/upload_file_request.rb +17 -14
- data/lib/ingenico/connect/sdk/merchant/disputes.rb +5 -0
- data/lib/ingenico/connect/sdk/merchant/files/files_client.rb +43 -40
- data/lib/ingenico/connect/sdk/merchant/files.rb +5 -0
- data/lib/ingenico/connect/sdk/merchant/hostedcheckouts/hostedcheckouts_client.rb +98 -95
- data/lib/ingenico/connect/sdk/merchant/hostedcheckouts.rb +5 -0
- data/lib/ingenico/connect/sdk/merchant/hostedmandatemanagements/hostedmandatemanagements_client.rb +70 -67
- data/lib/ingenico/connect/sdk/merchant/hostedmandatemanagements.rb +5 -0
- data/lib/ingenico/connect/sdk/merchant/installments/installments_client.rb +41 -38
- data/lib/ingenico/connect/sdk/merchant/installments.rb +5 -0
- data/lib/ingenico/connect/sdk/merchant/mandates/mandates_client.rb +191 -188
- data/lib/ingenico/connect/sdk/merchant/mandates.rb +5 -0
- data/lib/ingenico/connect/sdk/merchant/merchant_client.rb +110 -107
- data/lib/ingenico/connect/sdk/merchant/payments/find_payments_params.rb +35 -32
- data/lib/ingenico/connect/sdk/merchant/payments/payments_client.rb +519 -516
- data/lib/ingenico/connect/sdk/merchant/payments.rb +5 -0
- data/lib/ingenico/connect/sdk/merchant/payouts/find_payouts_params.rb +26 -23
- data/lib/ingenico/connect/sdk/merchant/payouts/payouts_client.rb +186 -183
- data/lib/ingenico/connect/sdk/merchant/payouts.rb +5 -0
- data/lib/ingenico/connect/sdk/merchant/productgroups/find_productgroups_params.rb +44 -37
- data/lib/ingenico/connect/sdk/merchant/productgroups/get_productgroup_params.rb +44 -37
- data/lib/ingenico/connect/sdk/merchant/productgroups/productgroups_client.rb +101 -98
- data/lib/ingenico/connect/sdk/merchant/productgroups.rb +5 -0
- data/lib/ingenico/connect/sdk/merchant/products/directory_params.rb +20 -17
- data/lib/ingenico/connect/sdk/merchant/products/find_products_params.rb +44 -37
- data/lib/ingenico/connect/sdk/merchant/products/get_product_params.rb +47 -40
- data/lib/ingenico/connect/sdk/merchant/products/networks_params.rb +26 -23
- data/lib/ingenico/connect/sdk/merchant/products/products_client.rb +223 -220
- data/lib/ingenico/connect/sdk/merchant/products.rb +5 -0
- data/lib/ingenico/connect/sdk/merchant/refunds/find_refunds_params.rb +35 -32
- data/lib/ingenico/connect/sdk/merchant/refunds/refunds_client.rb +157 -154
- data/lib/ingenico/connect/sdk/merchant/refunds.rb +5 -0
- data/lib/ingenico/connect/sdk/merchant/riskassessments/riskassessments_client.rb +68 -65
- data/lib/ingenico/connect/sdk/merchant/riskassessments.rb +5 -0
- data/lib/ingenico/connect/sdk/merchant/services/convert_amount_params.rb +23 -20
- data/lib/ingenico/connect/sdk/merchant/services/privacypolicy_params.rb +20 -17
- data/lib/ingenico/connect/sdk/merchant/services/services_client.rb +145 -142
- data/lib/ingenico/connect/sdk/merchant/services.rb +5 -0
- data/lib/ingenico/connect/sdk/merchant/sessions/sessions_client.rb +41 -38
- data/lib/ingenico/connect/sdk/merchant/sessions.rb +5 -0
- data/lib/ingenico/connect/sdk/merchant/tokens/delete_token_params.rb +17 -14
- data/lib/ingenico/connect/sdk/merchant/tokens/tokens_client.rb +159 -156
- data/lib/ingenico/connect/sdk/merchant/tokens.rb +5 -0
- data/lib/ingenico/connect/sdk/merchant.rb +5 -0
- data/lib/ingenico/connect/sdk/meta_data_provider.rb +151 -146
- data/lib/ingenico/connect/sdk/multipart_form_data_object.rb +36 -33
- data/lib/ingenico/connect/sdk/multipart_form_data_request.rb +10 -6
- data/lib/ingenico/connect/sdk/not_found_exception.rb +14 -11
- data/lib/ingenico/connect/sdk/param_request.rb +11 -8
- data/lib/ingenico/connect/sdk/pooled_connection.rb +20 -15
- data/lib/ingenico/connect/sdk/proxy_configuration.rb +63 -61
- data/lib/ingenico/connect/sdk/reference_exception.rb +14 -9
- data/lib/ingenico/connect/sdk/request_header.rb +52 -44
- data/lib/ingenico/connect/sdk/request_param.rb +22 -19
- data/lib/ingenico/connect/sdk/response_exception.rb +46 -41
- data/lib/ingenico/connect/sdk/response_header.rb +63 -55
- data/lib/ingenico/connect/sdk/session.rb +34 -31
- data/lib/ingenico/connect/sdk/uploadable_file.rb +23 -20
- data/lib/ingenico/connect/sdk/validation_exception.rb +14 -9
- data/lib/ingenico/connect/sdk/webhooks/api_version_mismatch_exception.rb +19 -15
- data/lib/ingenico/connect/sdk/webhooks/in_memory_secret_key_store.rb +49 -44
- data/lib/ingenico/connect/sdk/webhooks/secret_key_not_available_exception.rb +18 -12
- data/lib/ingenico/connect/sdk/webhooks/secret_key_store.rb +15 -11
- data/lib/ingenico/connect/sdk/webhooks/signature_validation_exception.rb +17 -14
- data/lib/ingenico/connect/sdk/webhooks/signature_validator.rb +83 -0
- data/lib/ingenico/connect/sdk/webhooks/webhooks.rb +20 -15
- data/lib/ingenico/connect/sdk/webhooks/webhooks_event.rb +60 -50
- data/lib/ingenico/connect/sdk/webhooks/webhooks_helper.rb +43 -94
- data/lib/ingenico/connect/sdk/webhooks/webhooks_helper_builder.rb +22 -17
- data/lib/ingenico/connect/sdk/webhooks.rb +1 -11
- data/lib/ingenico/connect/sdk.rb +1 -30
- data/spec/integration/connection_pooling_spec.rb +1 -1
- data/spec/lib/defaultimpl/default_connection_logger_spec.rb +17 -17
- data/spec/lib/webhooks/webhooks_spec.rb +2 -1
- metadata +41 -3
@@ -1,6 +1,6 @@
|
|
1
1
|
#
|
2
2
|
# This class was auto-generated from the API references found at
|
3
|
-
# https://epayments-api.developer-ingenico.com/
|
3
|
+
# https://epayments-api.developer-ingenico.com/
|
4
4
|
#
|
5
5
|
require 'ingenico/connect/sdk/api_resource'
|
6
6
|
require 'ingenico/connect/sdk/response_exception'
|
@@ -24,539 +24,542 @@ require 'ingenico/connect/sdk/domain/refund/refund_response'
|
|
24
24
|
require 'ingenico/connect/sdk/domain/refund/refunds_response'
|
25
25
|
require 'ingenico/connect/sdk/domain/token/create_token_response'
|
26
26
|
|
27
|
-
module Ingenico
|
28
|
-
module
|
29
|
-
module
|
27
|
+
module Ingenico
|
28
|
+
module Connect
|
29
|
+
module SDK
|
30
|
+
module Merchant
|
31
|
+
module Payments
|
32
|
+
# Payments client. Thread-safe.
|
33
|
+
class PaymentsClient < Ingenico::Connect::SDK::ApiResource
|
30
34
|
|
31
|
-
|
32
|
-
|
35
|
+
# @param parent [Ingenico::Connect::SDK::ApiResource]
|
36
|
+
# @param path_context [Hash]
|
37
|
+
def initialize(parent, path_context)
|
38
|
+
super(parent, path_context)
|
39
|
+
end
|
33
40
|
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
41
|
+
# Resource /!{merchantId}/payments - {https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/ruby/payments/create.html Create payment}
|
42
|
+
# @param body [Ingenico::Connect::SDK::Domain::Payment::CreatePaymentRequest]
|
43
|
+
# @param context [Ingenico::Connect::SDK::CallContext]
|
44
|
+
# @return [Ingenico::Connect::SDK::Domain::Payment::CreatePaymentResponse]
|
45
|
+
# @raise [Ingenico::Connect::SDK::DeclinedPaymentException] if the Ingenico ePayments platform declined / rejected the payment. The payment result will be available from the exception.
|
46
|
+
# @raise [Ingenico::Connect::SDK::ValidationException] if the request was not correct and couldn't be processed (HTTP status code 400)
|
47
|
+
# @raise [Ingenico::Connect::SDK::AuthorizationException] if the request was not allowed (HTTP status code 403)
|
48
|
+
# @raise [Ingenico::Connect::SDK::IdempotenceException] if an idempotent request caused a conflict (HTTP status code 409)
|
49
|
+
# @raise [Ingenico::Connect::SDK::ReferenceException] if an object was attempted to be referenced that doesn't exist or has been removed,
|
50
|
+
# or there was a conflict (HTTP status code 404, 409 or 410)
|
51
|
+
# @raise [Ingenico::Connect::SDK::GlobalCollectException] if something went wrong at the Ingenico ePayments platform,
|
52
|
+
# the Ingenico ePayments platform was unable to process a message from a downstream partner/acquirer,
|
53
|
+
# or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
|
54
|
+
# @raise [Ingenico::Connect::SDK::ApiException]if the Ingenico ePayments platform returned any other error
|
55
|
+
def create(body, context = nil)
|
56
|
+
uri = instantiate_uri('/v1/{merchantId}/payments', nil)
|
57
|
+
@communicator.post(
|
58
|
+
uri,
|
59
|
+
client_headers,
|
60
|
+
nil,
|
61
|
+
body,
|
62
|
+
Ingenico::Connect::SDK::Domain::Payment::CreatePaymentResponse,
|
63
|
+
context)
|
64
|
+
rescue ResponseException => e
|
65
|
+
error_type = Ingenico::Connect::SDK::Domain::Payment::PaymentErrorResponse
|
66
|
+
error_object = @communicator.marshaller.unmarshal(e.body, error_type)
|
67
|
+
raise create_exception(e.status_code, e.body, error_object, context)
|
68
|
+
end
|
39
69
|
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
raise create_exception(e.status_code, e.body, error_object, context)
|
67
|
-
end
|
70
|
+
# Resource /!{merchantId}/payments - {https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/ruby/payments/find.html Find payments}
|
71
|
+
# @param query [Ingenico::Connect::SDK::Merchant::Payments::FindPaymentsParams]
|
72
|
+
# @param context [Ingenico::Connect::SDK::CallContext]
|
73
|
+
# @return [Ingenico::Connect::SDK::Domain::Payment::FindPaymentsResponse]
|
74
|
+
# @raise [Ingenico::Connect::SDK::ValidationException] if the request was not correct and couldn't be processed (HTTP status code 400)
|
75
|
+
# @raise [Ingenico::Connect::SDK::AuthorizationException] if the request was not allowed (HTTP status code 403)
|
76
|
+
# @raise [Ingenico::Connect::SDK::IdempotenceException] if an idempotent request caused a conflict (HTTP status code 409)
|
77
|
+
# @raise [Ingenico::Connect::SDK::ReferenceException] if an object was attempted to be referenced that doesn't exist or has been removed,
|
78
|
+
# or there was a conflict (HTTP status code 404, 409 or 410)
|
79
|
+
# @raise [Ingenico::Connect::SDK::GlobalCollectException] if something went wrong at the Ingenico ePayments platform,
|
80
|
+
# the Ingenico ePayments platform was unable to process a message from a downstream partner/acquirer,
|
81
|
+
# or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
|
82
|
+
# @raise [Ingenico::Connect::SDK::ApiException]if the Ingenico ePayments platform returned any other error
|
83
|
+
def find(query, context = nil)
|
84
|
+
uri = instantiate_uri('/v1/{merchantId}/payments', nil)
|
85
|
+
@communicator.get(
|
86
|
+
uri,
|
87
|
+
client_headers,
|
88
|
+
query,
|
89
|
+
Ingenico::Connect::SDK::Domain::Payment::FindPaymentsResponse,
|
90
|
+
context)
|
91
|
+
rescue ResponseException => e
|
92
|
+
error_type = Ingenico::Connect::SDK::Domain::Errors::ErrorResponse
|
93
|
+
error_object = @communicator.marshaller.unmarshal(e.body, error_type)
|
94
|
+
raise create_exception(e.status_code, e.body, error_object, context)
|
95
|
+
end
|
68
96
|
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
97
|
+
# Resource /!{merchantId}/payments/!{paymentId} - {https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/ruby/payments/get.html Get payment}
|
98
|
+
# @param payment_id [String]
|
99
|
+
# @param context [Ingenico::Connect::SDK::CallContext]
|
100
|
+
# @return [Ingenico::Connect::SDK::Domain::Payment::PaymentResponse]
|
101
|
+
# @raise [Ingenico::Connect::SDK::ValidationException] if the request was not correct and couldn't be processed (HTTP status code 400)
|
102
|
+
# @raise [Ingenico::Connect::SDK::AuthorizationException] if the request was not allowed (HTTP status code 403)
|
103
|
+
# @raise [Ingenico::Connect::SDK::IdempotenceException] if an idempotent request caused a conflict (HTTP status code 409)
|
104
|
+
# @raise [Ingenico::Connect::SDK::ReferenceException] if an object was attempted to be referenced that doesn't exist or has been removed,
|
105
|
+
# or there was a conflict (HTTP status code 404, 409 or 410)
|
106
|
+
# @raise [Ingenico::Connect::SDK::GlobalCollectException] if something went wrong at the Ingenico ePayments platform,
|
107
|
+
# the Ingenico ePayments platform was unable to process a message from a downstream partner/acquirer,
|
108
|
+
# or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
|
109
|
+
# @raise [Ingenico::Connect::SDK::ApiException]if the Ingenico ePayments platform returned any other error
|
110
|
+
def get(payment_id, context = nil)
|
111
|
+
path_context = {
|
112
|
+
'paymentId'.freeze => payment_id,
|
113
|
+
}
|
114
|
+
uri = instantiate_uri('/v1/{merchantId}/payments/{paymentId}', path_context)
|
115
|
+
@communicator.get(
|
116
|
+
uri,
|
117
|
+
client_headers,
|
118
|
+
nil,
|
119
|
+
Ingenico::Connect::SDK::Domain::Payment::PaymentResponse,
|
120
|
+
context)
|
121
|
+
rescue ResponseException => e
|
122
|
+
error_type = Ingenico::Connect::SDK::Domain::Errors::ErrorResponse
|
123
|
+
error_object = @communicator.marshaller.unmarshal(e.body, error_type)
|
124
|
+
raise create_exception(e.status_code, e.body, error_object, context)
|
125
|
+
end
|
95
126
|
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
127
|
+
# Resource /!{merchantId}/payments/!{paymentId}/complete - {https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/ruby/payments/complete.html Complete payment}
|
128
|
+
# @param payment_id [String]
|
129
|
+
# @param body [Ingenico::Connect::SDK::Domain::Payment::CompletePaymentRequest]
|
130
|
+
# @param context [Ingenico::Connect::SDK::CallContext]
|
131
|
+
# @return [Ingenico::Connect::SDK::Domain::Payment::CompletePaymentResponse]
|
132
|
+
# @raise [Ingenico::Connect::SDK::ValidationException] if the request was not correct and couldn't be processed (HTTP status code 400)
|
133
|
+
# @raise [Ingenico::Connect::SDK::AuthorizationException] if the request was not allowed (HTTP status code 403)
|
134
|
+
# @raise [Ingenico::Connect::SDK::IdempotenceException] if an idempotent request caused a conflict (HTTP status code 409)
|
135
|
+
# @raise [Ingenico::Connect::SDK::ReferenceException] if an object was attempted to be referenced that doesn't exist or has been removed,
|
136
|
+
# or there was a conflict (HTTP status code 404, 409 or 410)
|
137
|
+
# @raise [Ingenico::Connect::SDK::GlobalCollectException] if something went wrong at the Ingenico ePayments platform,
|
138
|
+
# the Ingenico ePayments platform was unable to process a message from a downstream partner/acquirer,
|
139
|
+
# or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
|
140
|
+
# @raise [Ingenico::Connect::SDK::ApiException]if the Ingenico ePayments platform returned any other error
|
141
|
+
def complete(payment_id, body, context = nil)
|
142
|
+
path_context = {
|
143
|
+
'paymentId'.freeze => payment_id,
|
144
|
+
}
|
145
|
+
uri = instantiate_uri('/v1/{merchantId}/payments/{paymentId}/complete', path_context)
|
146
|
+
@communicator.post(
|
147
|
+
uri,
|
148
|
+
client_headers,
|
149
|
+
nil,
|
150
|
+
body,
|
151
|
+
Ingenico::Connect::SDK::Domain::Payment::CompletePaymentResponse,
|
152
|
+
context)
|
153
|
+
rescue ResponseException => e
|
154
|
+
error_type = Ingenico::Connect::SDK::Domain::Errors::ErrorResponse
|
155
|
+
error_object = @communicator.marshaller.unmarshal(e.body, error_type)
|
156
|
+
raise create_exception(e.status_code, e.body, error_object, context)
|
157
|
+
end
|
125
158
|
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
raise create_exception(e.status_code, e.body, error_object, context)
|
156
|
-
end
|
159
|
+
# Resource /!{merchantId}/payments/!{paymentId}/thirdpartystatus - {https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/ruby/payments/thirdPartyStatus.html Third party status poll}
|
160
|
+
# @param payment_id [String]
|
161
|
+
# @param context [Ingenico::Connect::SDK::CallContext]
|
162
|
+
# @return [Ingenico::Connect::SDK::Domain::Payment::ThirdPartyStatusResponse]
|
163
|
+
# @raise [Ingenico::Connect::SDK::ValidationException] if the request was not correct and couldn't be processed (HTTP status code 400)
|
164
|
+
# @raise [Ingenico::Connect::SDK::AuthorizationException] if the request was not allowed (HTTP status code 403)
|
165
|
+
# @raise [Ingenico::Connect::SDK::IdempotenceException] if an idempotent request caused a conflict (HTTP status code 409)
|
166
|
+
# @raise [Ingenico::Connect::SDK::ReferenceException] if an object was attempted to be referenced that doesn't exist or has been removed,
|
167
|
+
# or there was a conflict (HTTP status code 404, 409 or 410)
|
168
|
+
# @raise [Ingenico::Connect::SDK::GlobalCollectException] if something went wrong at the Ingenico ePayments platform,
|
169
|
+
# the Ingenico ePayments platform was unable to process a message from a downstream partner/acquirer,
|
170
|
+
# or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
|
171
|
+
# @raise [Ingenico::Connect::SDK::ApiException]if the Ingenico ePayments platform returned any other error
|
172
|
+
def third_party_status(payment_id, context = nil)
|
173
|
+
path_context = {
|
174
|
+
'paymentId'.freeze => payment_id,
|
175
|
+
}
|
176
|
+
uri = instantiate_uri('/v1/{merchantId}/payments/{paymentId}/thirdpartystatus', path_context)
|
177
|
+
@communicator.get(
|
178
|
+
uri,
|
179
|
+
client_headers,
|
180
|
+
nil,
|
181
|
+
Ingenico::Connect::SDK::Domain::Payment::ThirdPartyStatusResponse,
|
182
|
+
context)
|
183
|
+
rescue ResponseException => e
|
184
|
+
error_type = Ingenico::Connect::SDK::Domain::Errors::ErrorResponse
|
185
|
+
error_object = @communicator.marshaller.unmarshal(e.body, error_type)
|
186
|
+
raise create_exception(e.status_code, e.body, error_object, context)
|
187
|
+
end
|
157
188
|
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
# @param payment_id [String]
|
190
|
-
# @param body [Ingenico::Connect::SDK::Domain::Payment::TokenizePaymentRequest]
|
191
|
-
# @param context [Ingenico::Connect::SDK::CallContext]
|
192
|
-
# @return [Ingenico::Connect::SDK::Domain::Token::CreateTokenResponse]
|
193
|
-
# @raise [Ingenico::Connect::SDK::ValidationException] if the request was not correct and couldn't be processed (HTTP status code 400)
|
194
|
-
# @raise [Ingenico::Connect::SDK::AuthorizationException] if the request was not allowed (HTTP status code 403)
|
195
|
-
# @raise [Ingenico::Connect::SDK::IdempotenceException] if an idempotent request caused a conflict (HTTP status code 409)
|
196
|
-
# @raise [Ingenico::Connect::SDK::ReferenceException] if an object was attempted to be referenced that doesn't exist or has been removed,
|
197
|
-
# or there was a conflict (HTTP status code 404, 409 or 410)
|
198
|
-
# @raise [Ingenico::Connect::SDK::GlobalCollectException] if something went wrong at the Ingenico ePayments platform,
|
199
|
-
# the Ingenico ePayments platform was unable to process a message from a downstream partner/acquirer,
|
200
|
-
# or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
|
201
|
-
# @raise [Ingenico::Connect::SDK::ApiException]if the Ingenico ePayments platform returned any other error
|
202
|
-
def tokenize(payment_id, body, context=nil)
|
203
|
-
path_context = {
|
204
|
-
'paymentId'.freeze => payment_id,
|
205
|
-
}
|
206
|
-
uri = instantiate_uri('/v1/{merchantId}/payments/{paymentId}/tokenize', path_context)
|
207
|
-
return @communicator.post(
|
208
|
-
uri,
|
209
|
-
client_headers,
|
210
|
-
nil,
|
211
|
-
body,
|
212
|
-
Ingenico::Connect::SDK::Domain::Token::CreateTokenResponse,
|
213
|
-
context)
|
214
|
-
rescue ResponseException => e
|
215
|
-
error_type = Ingenico::Connect::SDK::Domain::Errors::ErrorResponse
|
216
|
-
error_object = @communicator.marshaller.unmarshal(e.body, error_type)
|
217
|
-
raise create_exception(e.status_code, e.body, error_object, context)
|
218
|
-
end
|
189
|
+
# Resource /!{merchantId}/payments/!{paymentId}/tokenize - {https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/ruby/payments/tokenize.html Create a token from payment}
|
190
|
+
# @param payment_id [String]
|
191
|
+
# @param body [Ingenico::Connect::SDK::Domain::Payment::TokenizePaymentRequest]
|
192
|
+
# @param context [Ingenico::Connect::SDK::CallContext]
|
193
|
+
# @return [Ingenico::Connect::SDK::Domain::Token::CreateTokenResponse]
|
194
|
+
# @raise [Ingenico::Connect::SDK::ValidationException] if the request was not correct and couldn't be processed (HTTP status code 400)
|
195
|
+
# @raise [Ingenico::Connect::SDK::AuthorizationException] if the request was not allowed (HTTP status code 403)
|
196
|
+
# @raise [Ingenico::Connect::SDK::IdempotenceException] if an idempotent request caused a conflict (HTTP status code 409)
|
197
|
+
# @raise [Ingenico::Connect::SDK::ReferenceException] if an object was attempted to be referenced that doesn't exist or has been removed,
|
198
|
+
# or there was a conflict (HTTP status code 404, 409 or 410)
|
199
|
+
# @raise [Ingenico::Connect::SDK::GlobalCollectException] if something went wrong at the Ingenico ePayments platform,
|
200
|
+
# the Ingenico ePayments platform was unable to process a message from a downstream partner/acquirer,
|
201
|
+
# or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
|
202
|
+
# @raise [Ingenico::Connect::SDK::ApiException]if the Ingenico ePayments platform returned any other error
|
203
|
+
def tokenize(payment_id, body, context = nil)
|
204
|
+
path_context = {
|
205
|
+
'paymentId'.freeze => payment_id,
|
206
|
+
}
|
207
|
+
uri = instantiate_uri('/v1/{merchantId}/payments/{paymentId}/tokenize', path_context)
|
208
|
+
@communicator.post(
|
209
|
+
uri,
|
210
|
+
client_headers,
|
211
|
+
nil,
|
212
|
+
body,
|
213
|
+
Ingenico::Connect::SDK::Domain::Token::CreateTokenResponse,
|
214
|
+
context)
|
215
|
+
rescue ResponseException => e
|
216
|
+
error_type = Ingenico::Connect::SDK::Domain::Errors::ErrorResponse
|
217
|
+
error_object = @communicator.marshaller.unmarshal(e.body, error_type)
|
218
|
+
raise create_exception(e.status_code, e.body, error_object, context)
|
219
|
+
end
|
219
220
|
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
221
|
+
# Resource /!{merchantId}/payments/!{paymentId}/processchallenged - {https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/ruby/payments/processchallenged.html Approves challenged payment}
|
222
|
+
# @param payment_id [String]
|
223
|
+
# @param context [Ingenico::Connect::SDK::CallContext]
|
224
|
+
# @return [Ingenico::Connect::SDK::Domain::Payment::PaymentResponse]
|
225
|
+
# @raise [Ingenico::Connect::SDK::ValidationException] if the request was not correct and couldn't be processed (HTTP status code 400)
|
226
|
+
# @raise [Ingenico::Connect::SDK::AuthorizationException] if the request was not allowed (HTTP status code 403)
|
227
|
+
# @raise [Ingenico::Connect::SDK::IdempotenceException] if an idempotent request caused a conflict (HTTP status code 409)
|
228
|
+
# @raise [Ingenico::Connect::SDK::ReferenceException] if an object was attempted to be referenced that doesn't exist or has been removed,
|
229
|
+
# or there was a conflict (HTTP status code 404, 409 or 410)
|
230
|
+
# @raise [Ingenico::Connect::SDK::GlobalCollectException] if something went wrong at the Ingenico ePayments platform,
|
231
|
+
# the Ingenico ePayments platform was unable to process a message from a downstream partner/acquirer,
|
232
|
+
# or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
|
233
|
+
# @raise [Ingenico::Connect::SDK::ApiException]if the Ingenico ePayments platform returned any other error
|
234
|
+
def processchallenged(payment_id, context = nil)
|
235
|
+
path_context = {
|
236
|
+
'paymentId'.freeze => payment_id,
|
237
|
+
}
|
238
|
+
uri = instantiate_uri('/v1/{merchantId}/payments/{paymentId}/processchallenged', path_context)
|
239
|
+
@communicator.post(
|
240
|
+
uri,
|
241
|
+
client_headers,
|
242
|
+
nil,
|
243
|
+
nil,
|
244
|
+
Ingenico::Connect::SDK::Domain::Payment::PaymentResponse,
|
245
|
+
context)
|
246
|
+
rescue ResponseException => e
|
247
|
+
error_type = Ingenico::Connect::SDK::Domain::Errors::ErrorResponse
|
248
|
+
error_object = @communicator.marshaller.unmarshal(e.body, error_type)
|
249
|
+
raise create_exception(e.status_code, e.body, error_object, context)
|
250
|
+
end
|
250
251
|
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
252
|
+
# Resource /!{merchantId}/payments/!{paymentId}/approve - {https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/ruby/payments/approve.html Approve payment}
|
253
|
+
# @param payment_id [String]
|
254
|
+
# @param body [Ingenico::Connect::SDK::Domain::Payment::ApprovePaymentRequest]
|
255
|
+
# @param context [Ingenico::Connect::SDK::CallContext]
|
256
|
+
# @return [Ingenico::Connect::SDK::Domain::Payment::PaymentApprovalResponse]
|
257
|
+
# @raise [Ingenico::Connect::SDK::ValidationException] if the request was not correct and couldn't be processed (HTTP status code 400)
|
258
|
+
# @raise [Ingenico::Connect::SDK::AuthorizationException] if the request was not allowed (HTTP status code 403)
|
259
|
+
# @raise [Ingenico::Connect::SDK::IdempotenceException] if an idempotent request caused a conflict (HTTP status code 409)
|
260
|
+
# @raise [Ingenico::Connect::SDK::ReferenceException] if an object was attempted to be referenced that doesn't exist or has been removed,
|
261
|
+
# or there was a conflict (HTTP status code 404, 409 or 410)
|
262
|
+
# @raise [Ingenico::Connect::SDK::GlobalCollectException] if something went wrong at the Ingenico ePayments platform,
|
263
|
+
# the Ingenico ePayments platform was unable to process a message from a downstream partner/acquirer,
|
264
|
+
# or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
|
265
|
+
# @raise [Ingenico::Connect::SDK::ApiException]if the Ingenico ePayments platform returned any other error
|
266
|
+
def approve(payment_id, body, context = nil)
|
267
|
+
path_context = {
|
268
|
+
'paymentId'.freeze => payment_id,
|
269
|
+
}
|
270
|
+
uri = instantiate_uri('/v1/{merchantId}/payments/{paymentId}/approve', path_context)
|
271
|
+
@communicator.post(
|
272
|
+
uri,
|
273
|
+
client_headers,
|
274
|
+
nil,
|
275
|
+
body,
|
276
|
+
Ingenico::Connect::SDK::Domain::Payment::PaymentApprovalResponse,
|
277
|
+
context)
|
278
|
+
rescue ResponseException => e
|
279
|
+
error_type = Ingenico::Connect::SDK::Domain::Errors::ErrorResponse
|
280
|
+
error_object = @communicator.marshaller.unmarshal(e.body, error_type)
|
281
|
+
raise create_exception(e.status_code, e.body, error_object, context)
|
282
|
+
end
|
282
283
|
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
284
|
+
# Resource /!{merchantId}/payments/!{paymentId}/capture - {https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/ruby/payments/capture.html Capture payment}
|
285
|
+
# @param payment_id [String]
|
286
|
+
# @param body [Ingenico::Connect::SDK::Domain::Payment::CapturePaymentRequest]
|
287
|
+
# @param context [Ingenico::Connect::SDK::CallContext]
|
288
|
+
# @return [Ingenico::Connect::SDK::Domain::Capture::CaptureResponse]
|
289
|
+
# @raise [Ingenico::Connect::SDK::ValidationException] if the request was not correct and couldn't be processed (HTTP status code 400)
|
290
|
+
# @raise [Ingenico::Connect::SDK::AuthorizationException] if the request was not allowed (HTTP status code 403)
|
291
|
+
# @raise [Ingenico::Connect::SDK::IdempotenceException] if an idempotent request caused a conflict (HTTP status code 409)
|
292
|
+
# @raise [Ingenico::Connect::SDK::ReferenceException] if an object was attempted to be referenced that doesn't exist or has been removed,
|
293
|
+
# or there was a conflict (HTTP status code 404, 409 or 410)
|
294
|
+
# @raise [Ingenico::Connect::SDK::GlobalCollectException] if something went wrong at the Ingenico ePayments platform,
|
295
|
+
# the Ingenico ePayments platform was unable to process a message from a downstream partner/acquirer,
|
296
|
+
# or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
|
297
|
+
# @raise [Ingenico::Connect::SDK::ApiException]if the Ingenico ePayments platform returned any other error
|
298
|
+
def capture(payment_id, body, context = nil)
|
299
|
+
path_context = {
|
300
|
+
'paymentId'.freeze => payment_id,
|
301
|
+
}
|
302
|
+
uri = instantiate_uri('/v1/{merchantId}/payments/{paymentId}/capture', path_context)
|
303
|
+
@communicator.post(
|
304
|
+
uri,
|
305
|
+
client_headers,
|
306
|
+
nil,
|
307
|
+
body,
|
308
|
+
Ingenico::Connect::SDK::Domain::Capture::CaptureResponse,
|
309
|
+
context)
|
310
|
+
rescue ResponseException => e
|
311
|
+
error_type = Ingenico::Connect::SDK::Domain::Errors::ErrorResponse
|
312
|
+
error_object = @communicator.marshaller.unmarshal(e.body, error_type)
|
313
|
+
raise create_exception(e.status_code, e.body, error_object, context)
|
314
|
+
end
|
314
315
|
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
316
|
+
# Resource /!{merchantId}/payments/!{paymentId}/cancelapproval - {https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/ruby/payments/cancelapproval.html Undo capture payment}
|
317
|
+
# @param payment_id [String]
|
318
|
+
# @param context [Ingenico::Connect::SDK::CallContext]
|
319
|
+
# @return [Ingenico::Connect::SDK::Domain::Payment::CancelApprovalPaymentResponse]
|
320
|
+
# @raise [Ingenico::Connect::SDK::ValidationException] if the request was not correct and couldn't be processed (HTTP status code 400)
|
321
|
+
# @raise [Ingenico::Connect::SDK::AuthorizationException] if the request was not allowed (HTTP status code 403)
|
322
|
+
# @raise [Ingenico::Connect::SDK::IdempotenceException] if an idempotent request caused a conflict (HTTP status code 409)
|
323
|
+
# @raise [Ingenico::Connect::SDK::ReferenceException] if an object was attempted to be referenced that doesn't exist or has been removed,
|
324
|
+
# or there was a conflict (HTTP status code 404, 409 or 410)
|
325
|
+
# @raise [Ingenico::Connect::SDK::GlobalCollectException] if something went wrong at the Ingenico ePayments platform,
|
326
|
+
# the Ingenico ePayments platform was unable to process a message from a downstream partner/acquirer,
|
327
|
+
# or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
|
328
|
+
# @raise [Ingenico::Connect::SDK::ApiException]if the Ingenico ePayments platform returned any other error
|
329
|
+
def cancelapproval(payment_id, context = nil)
|
330
|
+
path_context = {
|
331
|
+
'paymentId'.freeze => payment_id,
|
332
|
+
}
|
333
|
+
uri = instantiate_uri('/v1/{merchantId}/payments/{paymentId}/cancelapproval', path_context)
|
334
|
+
@communicator.post(
|
335
|
+
uri,
|
336
|
+
client_headers,
|
337
|
+
nil,
|
338
|
+
nil,
|
339
|
+
Ingenico::Connect::SDK::Domain::Payment::CancelApprovalPaymentResponse,
|
340
|
+
context)
|
341
|
+
rescue ResponseException => e
|
342
|
+
error_type = Ingenico::Connect::SDK::Domain::Errors::ErrorResponse
|
343
|
+
error_object = @communicator.marshaller.unmarshal(e.body, error_type)
|
344
|
+
raise create_exception(e.status_code, e.body, error_object, context)
|
345
|
+
end
|
345
346
|
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
|
374
|
-
|
347
|
+
# Resource /!{merchantId}/payments/!{paymentId}/captures - {https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/ruby/payments/captures.html Get captures of payment}
|
348
|
+
# @param payment_id [String]
|
349
|
+
# @param context [Ingenico::Connect::SDK::CallContext]
|
350
|
+
# @return [Ingenico::Connect::SDK::Domain::Capture::CapturesResponse]
|
351
|
+
# @raise [Ingenico::Connect::SDK::ValidationException] if the request was not correct and couldn't be processed (HTTP status code 400)
|
352
|
+
# @raise [Ingenico::Connect::SDK::AuthorizationException] if the request was not allowed (HTTP status code 403)
|
353
|
+
# @raise [Ingenico::Connect::SDK::IdempotenceException] if an idempotent request caused a conflict (HTTP status code 409)
|
354
|
+
# @raise [Ingenico::Connect::SDK::ReferenceException] if an object was attempted to be referenced that doesn't exist or has been removed,
|
355
|
+
# or there was a conflict (HTTP status code 404, 409 or 410)
|
356
|
+
# @raise [Ingenico::Connect::SDK::GlobalCollectException] if something went wrong at the Ingenico ePayments platform,
|
357
|
+
# the Ingenico ePayments platform was unable to process a message from a downstream partner/acquirer,
|
358
|
+
# or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
|
359
|
+
# @raise [Ingenico::Connect::SDK::ApiException]if the Ingenico ePayments platform returned any other error
|
360
|
+
def captures(payment_id, context = nil)
|
361
|
+
path_context = {
|
362
|
+
'paymentId'.freeze => payment_id,
|
363
|
+
}
|
364
|
+
uri = instantiate_uri('/v1/{merchantId}/payments/{paymentId}/captures', path_context)
|
365
|
+
@communicator.get(
|
366
|
+
uri,
|
367
|
+
client_headers,
|
368
|
+
nil,
|
369
|
+
Ingenico::Connect::SDK::Domain::Capture::CapturesResponse,
|
370
|
+
context)
|
371
|
+
rescue ResponseException => e
|
372
|
+
error_type = Ingenico::Connect::SDK::Domain::Errors::ErrorResponse
|
373
|
+
error_object = @communicator.marshaller.unmarshal(e.body, error_type)
|
374
|
+
raise create_exception(e.status_code, e.body, error_object, context)
|
375
|
+
end
|
375
376
|
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
|
383
|
-
|
384
|
-
|
385
|
-
|
386
|
-
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
|
392
|
-
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
|
397
|
-
|
398
|
-
|
399
|
-
|
400
|
-
|
401
|
-
|
402
|
-
|
403
|
-
|
404
|
-
|
405
|
-
|
406
|
-
|
407
|
-
|
377
|
+
# Resource /!{merchantId}/payments/!{paymentId}/refund - {https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/ruby/payments/refund.html Create refund}
|
378
|
+
# @param payment_id [String]
|
379
|
+
# @param body [Ingenico::Connect::SDK::Domain::Refund::RefundRequest]
|
380
|
+
# @param context [Ingenico::Connect::SDK::CallContext]
|
381
|
+
# @return [Ingenico::Connect::SDK::Domain::Refund::RefundResponse]
|
382
|
+
# @raise [Ingenico::Connect::SDK::DeclinedRefundException] if the Ingenico ePayments platform declined / rejected the refund. The refund result will be available from the exception.
|
383
|
+
# @raise [Ingenico::Connect::SDK::ValidationException] if the request was not correct and couldn't be processed (HTTP status code 400)
|
384
|
+
# @raise [Ingenico::Connect::SDK::AuthorizationException] if the request was not allowed (HTTP status code 403)
|
385
|
+
# @raise [Ingenico::Connect::SDK::IdempotenceException] if an idempotent request caused a conflict (HTTP status code 409)
|
386
|
+
# @raise [Ingenico::Connect::SDK::ReferenceException] if an object was attempted to be referenced that doesn't exist or has been removed,
|
387
|
+
# or there was a conflict (HTTP status code 404, 409 or 410)
|
388
|
+
# @raise [Ingenico::Connect::SDK::GlobalCollectException] if something went wrong at the Ingenico ePayments platform,
|
389
|
+
# the Ingenico ePayments platform was unable to process a message from a downstream partner/acquirer,
|
390
|
+
# or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
|
391
|
+
# @raise [Ingenico::Connect::SDK::ApiException]if the Ingenico ePayments platform returned any other error
|
392
|
+
def refund(payment_id, body, context = nil)
|
393
|
+
path_context = {
|
394
|
+
'paymentId'.freeze => payment_id,
|
395
|
+
}
|
396
|
+
uri = instantiate_uri('/v1/{merchantId}/payments/{paymentId}/refund', path_context)
|
397
|
+
@communicator.post(
|
398
|
+
uri,
|
399
|
+
client_headers,
|
400
|
+
nil,
|
401
|
+
body,
|
402
|
+
Ingenico::Connect::SDK::Domain::Refund::RefundResponse,
|
403
|
+
context)
|
404
|
+
rescue ResponseException => e
|
405
|
+
error_type = Ingenico::Connect::SDK::Domain::Refund::RefundErrorResponse
|
406
|
+
error_object = @communicator.marshaller.unmarshal(e.body, error_type)
|
407
|
+
raise create_exception(e.status_code, e.body, error_object, context)
|
408
|
+
end
|
408
409
|
|
409
|
-
|
410
|
-
|
411
|
-
|
412
|
-
|
413
|
-
|
414
|
-
|
415
|
-
|
416
|
-
|
417
|
-
|
418
|
-
|
419
|
-
|
420
|
-
|
421
|
-
|
422
|
-
|
423
|
-
|
424
|
-
|
425
|
-
|
426
|
-
|
427
|
-
|
428
|
-
|
429
|
-
|
430
|
-
|
431
|
-
|
432
|
-
|
433
|
-
|
434
|
-
|
435
|
-
|
436
|
-
|
437
|
-
|
410
|
+
# Resource /!{merchantId}/payments/!{paymentId}/refunds - {https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/ruby/payments/refunds.html Get refunds of payment}
|
411
|
+
# @param payment_id [String]
|
412
|
+
# @param context [Ingenico::Connect::SDK::CallContext]
|
413
|
+
# @return [Ingenico::Connect::SDK::Domain::Refund::RefundsResponse]
|
414
|
+
# @raise [Ingenico::Connect::SDK::ValidationException] if the request was not correct and couldn't be processed (HTTP status code 400)
|
415
|
+
# @raise [Ingenico::Connect::SDK::AuthorizationException] if the request was not allowed (HTTP status code 403)
|
416
|
+
# @raise [Ingenico::Connect::SDK::IdempotenceException] if an idempotent request caused a conflict (HTTP status code 409)
|
417
|
+
# @raise [Ingenico::Connect::SDK::ReferenceException] if an object was attempted to be referenced that doesn't exist or has been removed,
|
418
|
+
# or there was a conflict (HTTP status code 404, 409 or 410)
|
419
|
+
# @raise [Ingenico::Connect::SDK::GlobalCollectException] if something went wrong at the Ingenico ePayments platform,
|
420
|
+
# the Ingenico ePayments platform was unable to process a message from a downstream partner/acquirer,
|
421
|
+
# or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
|
422
|
+
# @raise [Ingenico::Connect::SDK::ApiException]if the Ingenico ePayments platform returned any other error
|
423
|
+
def refunds(payment_id, context = nil)
|
424
|
+
path_context = {
|
425
|
+
'paymentId'.freeze => payment_id,
|
426
|
+
}
|
427
|
+
uri = instantiate_uri('/v1/{merchantId}/payments/{paymentId}/refunds', path_context)
|
428
|
+
@communicator.get(
|
429
|
+
uri,
|
430
|
+
client_headers,
|
431
|
+
nil,
|
432
|
+
Ingenico::Connect::SDK::Domain::Refund::RefundsResponse,
|
433
|
+
context)
|
434
|
+
rescue ResponseException => e
|
435
|
+
error_type = Ingenico::Connect::SDK::Domain::Errors::ErrorResponse
|
436
|
+
error_object = @communicator.marshaller.unmarshal(e.body, error_type)
|
437
|
+
raise create_exception(e.status_code, e.body, error_object, context)
|
438
|
+
end
|
438
439
|
|
439
|
-
|
440
|
-
|
441
|
-
|
442
|
-
|
443
|
-
|
444
|
-
|
445
|
-
|
446
|
-
|
447
|
-
|
448
|
-
|
449
|
-
|
450
|
-
|
451
|
-
|
452
|
-
|
453
|
-
|
454
|
-
|
455
|
-
|
456
|
-
|
457
|
-
|
458
|
-
|
459
|
-
|
460
|
-
|
461
|
-
|
462
|
-
|
463
|
-
|
464
|
-
|
465
|
-
|
466
|
-
|
467
|
-
|
468
|
-
|
440
|
+
# Resource /!{merchantId}/payments/!{paymentId}/cancel - {https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/ruby/payments/cancel.html Cancel payment}
|
441
|
+
# @param payment_id [String]
|
442
|
+
# @param context [Ingenico::Connect::SDK::CallContext]
|
443
|
+
# @return [Ingenico::Connect::SDK::Domain::Payment::CancelPaymentResponse]
|
444
|
+
# @raise [Ingenico::Connect::SDK::ValidationException] if the request was not correct and couldn't be processed (HTTP status code 400)
|
445
|
+
# @raise [Ingenico::Connect::SDK::AuthorizationException] if the request was not allowed (HTTP status code 403)
|
446
|
+
# @raise [Ingenico::Connect::SDK::IdempotenceException] if an idempotent request caused a conflict (HTTP status code 409)
|
447
|
+
# @raise [Ingenico::Connect::SDK::ReferenceException] if an object was attempted to be referenced that doesn't exist or has been removed,
|
448
|
+
# or there was a conflict (HTTP status code 404, 409 or 410)
|
449
|
+
# @raise [Ingenico::Connect::SDK::GlobalCollectException] if something went wrong at the Ingenico ePayments platform,
|
450
|
+
# the Ingenico ePayments platform was unable to process a message from a downstream partner/acquirer,
|
451
|
+
# or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
|
452
|
+
# @raise [Ingenico::Connect::SDK::ApiException]if the Ingenico ePayments platform returned any other error
|
453
|
+
def cancel(payment_id, context = nil)
|
454
|
+
path_context = {
|
455
|
+
'paymentId'.freeze => payment_id,
|
456
|
+
}
|
457
|
+
uri = instantiate_uri('/v1/{merchantId}/payments/{paymentId}/cancel', path_context)
|
458
|
+
@communicator.post(
|
459
|
+
uri,
|
460
|
+
client_headers,
|
461
|
+
nil,
|
462
|
+
nil,
|
463
|
+
Ingenico::Connect::SDK::Domain::Payment::CancelPaymentResponse,
|
464
|
+
context)
|
465
|
+
rescue ResponseException => e
|
466
|
+
error_type = Ingenico::Connect::SDK::Domain::Errors::ErrorResponse
|
467
|
+
error_object = @communicator.marshaller.unmarshal(e.body, error_type)
|
468
|
+
raise create_exception(e.status_code, e.body, error_object, context)
|
469
|
+
end
|
469
470
|
|
470
|
-
|
471
|
-
|
472
|
-
|
473
|
-
|
474
|
-
|
475
|
-
|
476
|
-
|
477
|
-
|
478
|
-
|
479
|
-
|
480
|
-
|
481
|
-
|
482
|
-
|
483
|
-
|
484
|
-
|
485
|
-
|
486
|
-
|
487
|
-
|
488
|
-
|
489
|
-
|
490
|
-
|
491
|
-
|
492
|
-
|
493
|
-
|
494
|
-
|
495
|
-
|
496
|
-
|
497
|
-
|
498
|
-
|
499
|
-
|
500
|
-
|
471
|
+
# Resource /!{merchantId}/payments/!{paymentId}/dispute - {https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/ruby/payments/dispute.html Create dispute}
|
472
|
+
# @param payment_id [String]
|
473
|
+
# @param body [Ingenico::Connect::SDK::Domain::Dispute::CreateDisputeRequest]
|
474
|
+
# @param context [Ingenico::Connect::SDK::CallContext]
|
475
|
+
# @return [Ingenico::Connect::SDK::Domain::Dispute::DisputeResponse]
|
476
|
+
# @raise [Ingenico::Connect::SDK::ValidationException] if the request was not correct and couldn't be processed (HTTP status code 400)
|
477
|
+
# @raise [Ingenico::Connect::SDK::AuthorizationException] if the request was not allowed (HTTP status code 403)
|
478
|
+
# @raise [Ingenico::Connect::SDK::IdempotenceException] if an idempotent request caused a conflict (HTTP status code 409)
|
479
|
+
# @raise [Ingenico::Connect::SDK::ReferenceException] if an object was attempted to be referenced that doesn't exist or has been removed,
|
480
|
+
# or there was a conflict (HTTP status code 404, 409 or 410)
|
481
|
+
# @raise [Ingenico::Connect::SDK::GlobalCollectException] if something went wrong at the Ingenico ePayments platform,
|
482
|
+
# the Ingenico ePayments platform was unable to process a message from a downstream partner/acquirer,
|
483
|
+
# or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
|
484
|
+
# @raise [Ingenico::Connect::SDK::ApiException]if the Ingenico ePayments platform returned any other error
|
485
|
+
def dispute(payment_id, body, context = nil)
|
486
|
+
path_context = {
|
487
|
+
'paymentId'.freeze => payment_id,
|
488
|
+
}
|
489
|
+
uri = instantiate_uri('/v1/{merchantId}/payments/{paymentId}/dispute', path_context)
|
490
|
+
@communicator.post(
|
491
|
+
uri,
|
492
|
+
client_headers,
|
493
|
+
nil,
|
494
|
+
body,
|
495
|
+
Ingenico::Connect::SDK::Domain::Dispute::DisputeResponse,
|
496
|
+
context)
|
497
|
+
rescue ResponseException => e
|
498
|
+
error_type = Ingenico::Connect::SDK::Domain::Errors::ErrorResponse
|
499
|
+
error_object = @communicator.marshaller.unmarshal(e.body, error_type)
|
500
|
+
raise create_exception(e.status_code, e.body, error_object, context)
|
501
|
+
end
|
501
502
|
|
502
|
-
|
503
|
-
|
504
|
-
|
505
|
-
|
506
|
-
|
507
|
-
|
508
|
-
|
509
|
-
|
510
|
-
|
511
|
-
|
512
|
-
|
513
|
-
|
514
|
-
|
515
|
-
|
516
|
-
|
517
|
-
|
518
|
-
|
519
|
-
|
520
|
-
|
521
|
-
|
522
|
-
|
523
|
-
|
524
|
-
|
525
|
-
|
526
|
-
|
527
|
-
|
528
|
-
|
529
|
-
|
530
|
-
|
503
|
+
# Resource /!{merchantId}/payments/!{paymentId}/disputes - {https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/ruby/payments/disputes.html Get disputes}
|
504
|
+
# @param payment_id [String]
|
505
|
+
# @param context [Ingenico::Connect::SDK::CallContext]
|
506
|
+
# @return [Ingenico::Connect::SDK::Domain::Dispute::DisputesResponse]
|
507
|
+
# @raise [Ingenico::Connect::SDK::ValidationException] if the request was not correct and couldn't be processed (HTTP status code 400)
|
508
|
+
# @raise [Ingenico::Connect::SDK::AuthorizationException] if the request was not allowed (HTTP status code 403)
|
509
|
+
# @raise [Ingenico::Connect::SDK::IdempotenceException] if an idempotent request caused a conflict (HTTP status code 409)
|
510
|
+
# @raise [Ingenico::Connect::SDK::ReferenceException] if an object was attempted to be referenced that doesn't exist or has been removed,
|
511
|
+
# or there was a conflict (HTTP status code 404, 409 or 410)
|
512
|
+
# @raise [Ingenico::Connect::SDK::GlobalCollectException] if something went wrong at the Ingenico ePayments platform,
|
513
|
+
# the Ingenico ePayments platform was unable to process a message from a downstream partner/acquirer,
|
514
|
+
# or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
|
515
|
+
# @raise [Ingenico::Connect::SDK::ApiException]if the Ingenico ePayments platform returned any other error
|
516
|
+
def disputes(payment_id, context = nil)
|
517
|
+
path_context = {
|
518
|
+
'paymentId'.freeze => payment_id,
|
519
|
+
}
|
520
|
+
uri = instantiate_uri('/v1/{merchantId}/payments/{paymentId}/disputes', path_context)
|
521
|
+
@communicator.get(
|
522
|
+
uri,
|
523
|
+
client_headers,
|
524
|
+
nil,
|
525
|
+
Ingenico::Connect::SDK::Domain::Dispute::DisputesResponse,
|
526
|
+
context)
|
527
|
+
rescue ResponseException => e
|
528
|
+
error_type = Ingenico::Connect::SDK::Domain::Errors::ErrorResponse
|
529
|
+
error_object = @communicator.marshaller.unmarshal(e.body, error_type)
|
530
|
+
raise create_exception(e.status_code, e.body, error_object, context)
|
531
|
+
end
|
531
532
|
|
532
|
-
|
533
|
-
|
534
|
-
|
535
|
-
|
536
|
-
|
537
|
-
|
538
|
-
|
539
|
-
|
540
|
-
|
541
|
-
|
542
|
-
|
543
|
-
|
544
|
-
|
545
|
-
|
546
|
-
|
547
|
-
|
548
|
-
|
549
|
-
|
550
|
-
|
551
|
-
|
552
|
-
|
553
|
-
|
554
|
-
|
555
|
-
|
556
|
-
|
557
|
-
|
558
|
-
|
559
|
-
|
533
|
+
# Resource /!{merchantId}/payments/!{paymentId}/devicefingerprint - {https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/ruby/payments/devicefingerprint.html Get Device Fingerprint details}
|
534
|
+
# @param payment_id [String]
|
535
|
+
# @param context [Ingenico::Connect::SDK::CallContext]
|
536
|
+
# @return [Ingenico::Connect::SDK::Domain::Payment::DeviceFingerprintDetails]
|
537
|
+
# @raise [Ingenico::Connect::SDK::ValidationException] if the request was not correct and couldn't be processed (HTTP status code 400)
|
538
|
+
# @raise [Ingenico::Connect::SDK::AuthorizationException] if the request was not allowed (HTTP status code 403)
|
539
|
+
# @raise [Ingenico::Connect::SDK::IdempotenceException] if an idempotent request caused a conflict (HTTP status code 409)
|
540
|
+
# @raise [Ingenico::Connect::SDK::ReferenceException] if an object was attempted to be referenced that doesn't exist or has been removed,
|
541
|
+
# or there was a conflict (HTTP status code 404, 409 or 410)
|
542
|
+
# @raise [Ingenico::Connect::SDK::GlobalCollectException] if something went wrong at the Ingenico ePayments platform,
|
543
|
+
# the Ingenico ePayments platform was unable to process a message from a downstream partner/acquirer,
|
544
|
+
# or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
|
545
|
+
# @raise [Ingenico::Connect::SDK::ApiException]if the Ingenico ePayments platform returned any other error
|
546
|
+
def devicefingerprint(payment_id, context = nil)
|
547
|
+
path_context = {
|
548
|
+
'paymentId'.freeze => payment_id,
|
549
|
+
}
|
550
|
+
uri = instantiate_uri('/v1/{merchantId}/payments/{paymentId}/devicefingerprint', path_context)
|
551
|
+
@communicator.get(
|
552
|
+
uri,
|
553
|
+
client_headers,
|
554
|
+
nil,
|
555
|
+
Ingenico::Connect::SDK::Domain::Payment::DeviceFingerprintDetails,
|
556
|
+
context)
|
557
|
+
rescue ResponseException => e
|
558
|
+
error_type = Ingenico::Connect::SDK::Domain::Errors::ErrorResponse
|
559
|
+
error_object = @communicator.marshaller.unmarshal(e.body, error_type)
|
560
|
+
raise create_exception(e.status_code, e.body, error_object, context)
|
561
|
+
end
|
562
|
+
end
|
560
563
|
end
|
561
564
|
end
|
562
565
|
end
|