connect-sdk-ruby 1.5.1 → 1.6.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/get_capture_example.rb +22 -0
- data/examples/merchant/hostedcheckouts/create_hosted_checkout_example.rb +1 -1
- data/examples/merchant/hostedcheckouts/get_hosted_checkout_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 +27 -0
- data/examples/merchant/payments/create_payment_example.rb +1 -1
- data/examples/merchant/payments/get_payment_captures_example.rb +22 -0
- data/examples/merchant/payments/get_payment_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/get_payout_example.rb +1 -1
- data/examples/merchant/productgroups/get_payment_product_group_example.rb +3 -3
- data/examples/merchant/productgroups/get_payment_product_groups_example.rb +3 -3
- data/examples/merchant/products/get_directory_example.rb +1 -1
- data/examples/merchant/products/get_networks_example.rb +3 -3
- data/examples/merchant/products/get_payment_product_example.rb +1 -1
- data/examples/merchant/products/get_payment_product_public_key_example.rb +1 -1
- data/examples/merchant/products/get_payment_products_example.rb +1 -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/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/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/client.rb +1 -1
- data/lib/ingenico/connect/sdk/domain/capture/capture.rb +53 -0
- data/lib/ingenico/connect/sdk/domain/capture/capture_output.rb +126 -0
- data/lib/ingenico/connect/sdk/domain/capture/capture_response.rb +15 -0
- data/lib/ingenico/connect/sdk/domain/capture/capture_status_output.rb +31 -0
- data/lib/ingenico/connect/sdk/domain/capture/captures_response.rb +38 -0
- data/lib/ingenico/connect/sdk/domain/definitions/abstract_order_status.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/definitions/abstract_payment_method_specific_input.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/definitions/additional_order_input_airline_data.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/definitions/address.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/definitions/airline_data.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/definitions/airline_flight_leg.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/definitions/amount_of_money.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/definitions/bank_account.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/definitions/bank_account_bban.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/definitions/bank_account_iban.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/definitions/card.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/definitions/card_essentials.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/definitions/card_fraud_results.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/definitions/card_without_cvv.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/definitions/company_information.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/definitions/contact_details_base.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/definitions/customer_base.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/definitions/fraud_fields.rb +44 -2
- data/lib/ingenico/connect/sdk/domain/definitions/fraud_fields_shipping_details.rb +45 -0
- data/lib/ingenico/connect/sdk/domain/definitions/fraud_results.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/definitions/fraud_results_retail_decisions.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/definitions/key_value_pair.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/definitions/order_status_output.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/definitions/payment_product_filter.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/definitions/personal_name_base.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/definitions/result_do_risk_assessment.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/definitions/retail_decisions_cc_fraud_check_output.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/definitions/validation_bank_account_check.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/definitions/validation_bank_account_output.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/errors/api_error.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/errors/error_response.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/hostedcheckout/create_hosted_checkout_request.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/hostedcheckout/create_hosted_checkout_response.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/hostedcheckout/created_payment_output.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/hostedcheckout/displayed_data.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/hostedcheckout/get_hosted_checkout_response.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/hostedcheckout/hosted_checkout_specific_input.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/hostedcheckout/payment_product_filters_hosted_checkout.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/payment/abstract_payment_method_specific_output.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/payment/additional_order_input.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/payment/address_personal.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/payment/amount_breakdown.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/payment/approve_payment_card_payment_method_specific_output.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/payment/approve_payment_mobile_payment_method_specific_output.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/payment/approve_payment_non_sepa_direct_debit_payment_method_specific_input.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/payment/approve_payment_payment_method_specific_input.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/payment/approve_payment_request.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/payment/approve_payment_sepa_direct_debit_payment_method_specific_input.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/payment/bank_transfer_payment_method_specific_input.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/payment/bank_transfer_payment_method_specific_input_base.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/payment/bank_transfer_payment_method_specific_output.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/payment/cancel_approval_payment_response.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/payment/cancel_payment_card_payment_method_specific_output.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/payment/cancel_payment_mobile_payment_method_specific_output.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/payment/cancel_payment_response.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/payment/capture_payment_request.rb +38 -0
- data/lib/ingenico/connect/sdk/domain/payment/card_payment_method_specific_input.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/payment/card_payment_method_specific_input_base.rb +8 -2
- data/lib/ingenico/connect/sdk/domain/payment/card_payment_method_specific_output.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/payment/cash_payment_method_specific_input.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/payment/cash_payment_method_specific_input_base.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/payment/cash_payment_method_specific_output.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/payment/cash_payment_product1503_specific_input.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/payment/cash_payment_product1504_specific_input.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/payment/contact_details.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/payment/create_payment_request.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/payment/create_payment_response.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/payment/create_payment_result.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/payment/customer.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/payment/decrypted_payment_data.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/payment/external_cardholder_authentication_data.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/payment/invoice_payment_method_specific_input.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/payment/invoice_payment_method_specific_output.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/payment/level3_summary_data.rb +5 -7
- data/lib/ingenico/connect/sdk/domain/payment/line_item.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/payment/line_item_invoice_data.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/payment/line_item_level3_interchange_information.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/payment/merchant_action.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/payment/mobile_payment_data.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/payment/mobile_payment_method_specific_input.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/payment/mobile_payment_method_specific_output.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/payment/mobile_payment_product320_specific_input.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/payment/non_sepa_direct_debit_payment_method_specific_input.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/payment/non_sepa_direct_debit_payment_method_specific_output.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/payment/non_sepa_direct_debit_payment_product705_specific_input.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/payment/order.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/payment/order_approve_payment.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/payment/order_invoice_data.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/payment/order_line_details.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/payment/order_output.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/payment/order_references.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/payment/order_references_approve_payment.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/payment/order_type_information.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/payment/payment.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/payment/payment_approval_response.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/payment/payment_creation_output.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/payment/payment_creation_references.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/payment/payment_error_response.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/payment/payment_output.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/payment/payment_product836_specific_output.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/payment/payment_product840_customer_account.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/payment/payment_product840_specific_output.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/payment/payment_references.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/payment/payment_response.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/payment/payment_status_output.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/payment/personal_information.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/payment/personal_name.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/payment/redirect_data.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/payment/redirect_payment_method_specific_input.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/payment/redirect_payment_method_specific_input_base.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/payment/redirect_payment_method_specific_output.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/payment/redirect_payment_product809_specific_input.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/payment/redirect_payment_product816_specific_input.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/payment/redirect_payment_product882_specific_input.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/payment/refund_bank_method_specific_output.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/payment/refund_card_method_specific_output.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/payment/refund_e_wallet_method_specific_output.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/payment/refund_method_specific_output.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/payment/refund_mobile_method_specific_output.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/payment/refund_output.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/payment/refund_payment_product840_customer_account.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/payment/refund_payment_product840_specific_output.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/payment/sepa_direct_debit_payment_method_specific_input.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/payment/sepa_direct_debit_payment_method_specific_output.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/payment/shopping_cart.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/payment/three_d_secure_results.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/payment/tokenize_payment_request.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/payout/abstract_payout_method_specific_input.rb +15 -0
- data/lib/ingenico/connect/sdk/domain/payout/approve_payout_request.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/payout/bank_transfer_payout_method_specific_input.rb +78 -0
- data/lib/ingenico/connect/sdk/domain/payout/card_payout_method_specific_input.rb +42 -0
- data/lib/ingenico/connect/sdk/domain/payout/create_payout_request.rb +35 -2
- data/lib/ingenico/connect/sdk/domain/payout/payout_customer.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/payout/payout_error_response.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/payout/payout_references.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/payout/payout_response.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/payout/payout_result.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/product/account_on_file.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/product/account_on_file_attribute.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/product/account_on_file_display_hints.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/product/boleto_bancario_requiredness_validator.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/product/directory.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/product/directory_entry.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/product/empty_validator.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/product/fixed_list_validator.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/product/label_template_element.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/product/length_validator.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/product/payment_product.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/product/payment_product_display_hints.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/product/payment_product_field.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/product/payment_product_field_data_restrictions.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/product/payment_product_field_display_hints.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/product/payment_product_field_form_element.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/product/payment_product_field_tooltip.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/product/payment_product_field_validators.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/product/payment_product_group.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/product/payment_product_group_response.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/product/payment_product_groups.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/product/payment_product_networks_response.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/product/payment_product_response.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/product/payment_products.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/product/range_validator.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/product/regular_expression_validator.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/product/value_mapping_element.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/publickey/public_key.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/refund/approve_refund_request.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/refund/bank_account_bban_refund.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/refund/bank_refund_method_specific_input.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/refund/refund_customer.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/refund/refund_error_response.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/refund/refund_references.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/refund/refund_request.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/refund/refund_response.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/refund/refund_result.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/riskassessments/customer_risk_assessment.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/riskassessments/order_risk_assessment.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/riskassessments/personal_information_risk_assessment.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/riskassessments/personal_name_risk_assessment.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/riskassessments/risk_assessment.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/riskassessments/risk_assessment_bank_account.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/riskassessments/risk_assessment_card.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/riskassessments/risk_assessment_response.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/services/bank_data.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/services/bank_details.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/services/bank_details_request.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/services/bank_details_response.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/services/convert_amount.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/services/get_iin_details_request.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/services/get_iin_details_response.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/services/iin_detail.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/services/payment_context.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/services/swift.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/services/test_connection.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/sessions/payment_product_filters_client_session.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/sessions/session_request.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/sessions/session_response.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/token/abstract_token.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/token/approve_token_request.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/token/contact_details_token.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/token/create_token_request.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/token/create_token_response.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/token/creditor.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/token/customer_token.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/token/customer_token_with_contact_details.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/token/debtor.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/token/mandate_approval.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/token/mandate_non_sepa_direct_debit.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/token/mandate_sepa_direct_debit.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/token/mandate_sepa_direct_debit_with_mandate_id.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/token/mandate_sepa_direct_debit_without_creditor.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/token/personal_information_token.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/token/personal_name_token.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/token/token_card.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/token/token_card_data.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/token/token_e_wallet.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/token/token_e_wallet_data.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/token/token_non_sepa_direct_debit.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/token/token_non_sepa_direct_debit_payment_product705_specific_data.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/token/token_response.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/token/token_sepa_direct_debit.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/token/token_sepa_direct_debit_without_creditor.rb +1 -2
- data/lib/ingenico/connect/sdk/domain/token/update_token_request.rb +1 -2
- data/lib/ingenico/connect/sdk/merchant/captures/captures_client.rb +57 -0
- data/lib/ingenico/connect/sdk/merchant/hostedcheckouts/hostedcheckouts_client.rb +3 -3
- data/lib/ingenico/connect/sdk/merchant/merchant_client.rb +10 -1
- data/lib/ingenico/connect/sdk/merchant/payments/payments_client.rb +77 -9
- data/lib/ingenico/connect/sdk/merchant/payouts/payouts_client.rb +6 -6
- data/lib/ingenico/connect/sdk/merchant/productgroups/find_productgroups_params.rb +2 -2
- data/lib/ingenico/connect/sdk/merchant/productgroups/get_productgroup_params.rb +2 -2
- data/lib/ingenico/connect/sdk/merchant/productgroups/productgroups_client.rb +3 -3
- data/lib/ingenico/connect/sdk/merchant/products/directory_params.rb +2 -2
- data/lib/ingenico/connect/sdk/merchant/products/find_products_params.rb +2 -2
- data/lib/ingenico/connect/sdk/merchant/products/get_product_params.rb +2 -2
- data/lib/ingenico/connect/sdk/merchant/products/networks_params.rb +2 -2
- data/lib/ingenico/connect/sdk/merchant/products/products_client.rb +6 -6
- data/lib/ingenico/connect/sdk/merchant/refunds/refunds_client.rb +5 -5
- data/lib/ingenico/connect/sdk/merchant/riskassessments/riskassessments_client.rb +3 -3
- data/lib/ingenico/connect/sdk/merchant/services/convert_amount_params.rb +2 -2
- data/lib/ingenico/connect/sdk/merchant/services/services_client.rb +5 -5
- data/lib/ingenico/connect/sdk/merchant/sessions/sessions_client.rb +2 -2
- data/lib/ingenico/connect/sdk/merchant/tokens/delete_token_params.rb +2 -2
- data/lib/ingenico/connect/sdk/merchant/tokens/tokens_client.rb +6 -6
- data/lib/ingenico/connect/sdk/meta_data_provider.rb +1 -1
- data/lib/ingenico/connect/sdk/modules.rb +10 -0
- data/spec/fixtures/resources/defaultimpl/createPayment.unicode.json +42 -0
- data/spec/lib/defaultimpl/default_connection_logger_spec.rb +47 -0
- data/spec/lib/logging/ruby_communicator_logger_spec.rb +8 -0
- metadata +19 -3
@@ -1,6 +1,6 @@
|
|
1
1
|
#
|
2
2
|
# This class was auto-generated from the API references found at
|
3
|
-
# https://developer.
|
3
|
+
# https://epayments-api.developer-ingenico.com/s2sapi/v1/
|
4
4
|
#
|
5
5
|
require 'ingenico/connect/sdk/data_object'
|
6
6
|
|
@@ -8,7 +8,6 @@ module Ingenico::Connect::SDK
|
|
8
8
|
module Domain
|
9
9
|
module Token
|
10
10
|
|
11
|
-
# Class {https://developer.globalcollect.com/documentation/api/server/#schema_MandateApproval MandateApproval}
|
12
11
|
class MandateApproval < Ingenico::Connect::SDK::DataObject
|
13
12
|
|
14
13
|
# String
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#
|
2
2
|
# This class was auto-generated from the API references found at
|
3
|
-
# https://developer.
|
3
|
+
# https://epayments-api.developer-ingenico.com/s2sapi/v1/
|
4
4
|
#
|
5
5
|
require 'ingenico/connect/sdk/data_object'
|
6
6
|
require 'ingenico/connect/sdk/domain/token/token_non_sepa_direct_debit_payment_product705_specific_data'
|
@@ -9,7 +9,6 @@ module Ingenico::Connect::SDK
|
|
9
9
|
module Domain
|
10
10
|
module Token
|
11
11
|
|
12
|
-
# Class {https://developer.globalcollect.com/documentation/api/server/#schema_MandateNonSepaDirectDebit MandateNonSepaDirectDebit}
|
13
12
|
class MandateNonSepaDirectDebit < Ingenico::Connect::SDK::DataObject
|
14
13
|
|
15
14
|
# {Ingenico::Connect::SDK::Domain::Token::TokenNonSepaDirectDebitPaymentProduct705SpecificData}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#
|
2
2
|
# This class was auto-generated from the API references found at
|
3
|
-
# https://developer.
|
3
|
+
# https://epayments-api.developer-ingenico.com/s2sapi/v1/
|
4
4
|
#
|
5
5
|
require 'ingenico/connect/sdk/domain/token/creditor'
|
6
6
|
require 'ingenico/connect/sdk/domain/token/mandate_sepa_direct_debit_with_mandate_id'
|
@@ -9,7 +9,6 @@ module Ingenico::Connect::SDK
|
|
9
9
|
module Domain
|
10
10
|
module Token
|
11
11
|
|
12
|
-
# Class {https://developer.globalcollect.com/documentation/api/server/#schema_MandateSepaDirectDebit MandateSepaDirectDebit}
|
13
12
|
class MandateSepaDirectDebit < Ingenico::Connect::SDK::Domain::Token::MandateSepaDirectDebitWithMandateId
|
14
13
|
|
15
14
|
# {Ingenico::Connect::SDK::Domain::Token::Creditor}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#
|
2
2
|
# This class was auto-generated from the API references found at
|
3
|
-
# https://developer.
|
3
|
+
# https://epayments-api.developer-ingenico.com/s2sapi/v1/
|
4
4
|
#
|
5
5
|
require 'ingenico/connect/sdk/domain/token/mandate_sepa_direct_debit_without_creditor'
|
6
6
|
|
@@ -8,7 +8,6 @@ module Ingenico::Connect::SDK
|
|
8
8
|
module Domain
|
9
9
|
module Token
|
10
10
|
|
11
|
-
# Class {https://developer.globalcollect.com/documentation/api/server/#schema_MandateSepaDirectDebitWithMandateId MandateSepaDirectDebitWithMandateId}
|
12
11
|
class MandateSepaDirectDebitWithMandateId < Ingenico::Connect::SDK::Domain::Token::MandateSepaDirectDebitWithoutCreditor
|
13
12
|
|
14
13
|
# String
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#
|
2
2
|
# This class was auto-generated from the API references found at
|
3
|
-
# https://developer.
|
3
|
+
# https://epayments-api.developer-ingenico.com/s2sapi/v1/
|
4
4
|
#
|
5
5
|
require 'ingenico/connect/sdk/data_object'
|
6
6
|
require 'ingenico/connect/sdk/domain/definitions/bank_account_iban'
|
@@ -11,7 +11,6 @@ module Ingenico::Connect::SDK
|
|
11
11
|
module Domain
|
12
12
|
module Token
|
13
13
|
|
14
|
-
# Class {https://developer.globalcollect.com/documentation/api/server/#schema_MandateSepaDirectDebitWithoutCreditor MandateSepaDirectDebitWithoutCreditor}
|
15
14
|
class MandateSepaDirectDebitWithoutCreditor < Ingenico::Connect::SDK::DataObject
|
16
15
|
|
17
16
|
# {Ingenico::Connect::SDK::Domain::Definitions::BankAccountIban}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#
|
2
2
|
# This class was auto-generated from the API references found at
|
3
|
-
# https://developer.
|
3
|
+
# https://epayments-api.developer-ingenico.com/s2sapi/v1/
|
4
4
|
#
|
5
5
|
require 'ingenico/connect/sdk/data_object'
|
6
6
|
require 'ingenico/connect/sdk/domain/token/personal_name_token'
|
@@ -9,7 +9,6 @@ module Ingenico::Connect::SDK
|
|
9
9
|
module Domain
|
10
10
|
module Token
|
11
11
|
|
12
|
-
# Class {https://developer.globalcollect.com/documentation/api/server/#schema_PersonalInformationToken PersonalInformationToken}
|
13
12
|
class PersonalInformationToken < Ingenico::Connect::SDK::DataObject
|
14
13
|
|
15
14
|
# {Ingenico::Connect::SDK::Domain::Token::PersonalNameToken}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#
|
2
2
|
# This class was auto-generated from the API references found at
|
3
|
-
# https://developer.
|
3
|
+
# https://epayments-api.developer-ingenico.com/s2sapi/v1/
|
4
4
|
#
|
5
5
|
require 'ingenico/connect/sdk/domain/definitions/personal_name_base'
|
6
6
|
|
@@ -8,7 +8,6 @@ module Ingenico::Connect::SDK
|
|
8
8
|
module Domain
|
9
9
|
module Token
|
10
10
|
|
11
|
-
# Class {https://developer.globalcollect.com/documentation/api/server/#schema_PersonalNameToken PersonalNameToken}
|
12
11
|
class PersonalNameToken < Ingenico::Connect::SDK::Domain::Definitions::PersonalNameBase
|
13
12
|
end
|
14
13
|
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#
|
2
2
|
# This class was auto-generated from the API references found at
|
3
|
-
# https://developer.
|
3
|
+
# https://epayments-api.developer-ingenico.com/s2sapi/v1/
|
4
4
|
#
|
5
5
|
require 'ingenico/connect/sdk/domain/token/abstract_token'
|
6
6
|
require 'ingenico/connect/sdk/domain/token/customer_token'
|
@@ -10,7 +10,6 @@ module Ingenico::Connect::SDK
|
|
10
10
|
module Domain
|
11
11
|
module Token
|
12
12
|
|
13
|
-
# Class {https://developer.globalcollect.com/documentation/api/server/#schema_TokenCard TokenCard}
|
14
13
|
class TokenCard < Ingenico::Connect::SDK::Domain::Token::AbstractToken
|
15
14
|
|
16
15
|
# {Ingenico::Connect::SDK::Domain::Token::CustomerToken}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#
|
2
2
|
# This class was auto-generated from the API references found at
|
3
|
-
# https://developer.
|
3
|
+
# https://epayments-api.developer-ingenico.com/s2sapi/v1/
|
4
4
|
#
|
5
5
|
require 'ingenico/connect/sdk/data_object'
|
6
6
|
require 'ingenico/connect/sdk/domain/definitions/card_without_cvv'
|
@@ -9,7 +9,6 @@ module Ingenico::Connect::SDK
|
|
9
9
|
module Domain
|
10
10
|
module Token
|
11
11
|
|
12
|
-
# Class {https://developer.globalcollect.com/documentation/api/server/#schema_TokenCardData TokenCardData}
|
13
12
|
class TokenCardData < Ingenico::Connect::SDK::DataObject
|
14
13
|
|
15
14
|
# {Ingenico::Connect::SDK::Domain::Definitions::CardWithoutCvv}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#
|
2
2
|
# This class was auto-generated from the API references found at
|
3
|
-
# https://developer.
|
3
|
+
# https://epayments-api.developer-ingenico.com/s2sapi/v1/
|
4
4
|
#
|
5
5
|
require 'ingenico/connect/sdk/domain/token/abstract_token'
|
6
6
|
require 'ingenico/connect/sdk/domain/token/customer_token'
|
@@ -10,7 +10,6 @@ module Ingenico::Connect::SDK
|
|
10
10
|
module Domain
|
11
11
|
module Token
|
12
12
|
|
13
|
-
# Class {https://developer.globalcollect.com/documentation/api/server/#schema_TokenEWallet TokenEWallet}
|
14
13
|
class TokenEWallet < Ingenico::Connect::SDK::Domain::Token::AbstractToken
|
15
14
|
|
16
15
|
# {Ingenico::Connect::SDK::Domain::Token::CustomerToken}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#
|
2
2
|
# This class was auto-generated from the API references found at
|
3
|
-
# https://developer.
|
3
|
+
# https://epayments-api.developer-ingenico.com/s2sapi/v1/
|
4
4
|
#
|
5
5
|
require 'ingenico/connect/sdk/data_object'
|
6
6
|
|
@@ -8,7 +8,6 @@ module Ingenico::Connect::SDK
|
|
8
8
|
module Domain
|
9
9
|
module Token
|
10
10
|
|
11
|
-
# Class {https://developer.globalcollect.com/documentation/api/server/#schema_TokenEWalletData TokenEWalletData}
|
12
11
|
class TokenEWalletData < Ingenico::Connect::SDK::DataObject
|
13
12
|
|
14
13
|
# String
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#
|
2
2
|
# This class was auto-generated from the API references found at
|
3
|
-
# https://developer.
|
3
|
+
# https://epayments-api.developer-ingenico.com/s2sapi/v1/
|
4
4
|
#
|
5
5
|
require 'ingenico/connect/sdk/domain/token/abstract_token'
|
6
6
|
require 'ingenico/connect/sdk/domain/token/customer_token'
|
@@ -10,7 +10,6 @@ module Ingenico::Connect::SDK
|
|
10
10
|
module Domain
|
11
11
|
module Token
|
12
12
|
|
13
|
-
# Class {https://developer.globalcollect.com/documentation/api/server/#schema_TokenNonSepaDirectDebit TokenNonSepaDirectDebit}
|
14
13
|
class TokenNonSepaDirectDebit < Ingenico::Connect::SDK::Domain::Token::AbstractToken
|
15
14
|
|
16
15
|
# {Ingenico::Connect::SDK::Domain::Token::CustomerToken}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#
|
2
2
|
# This class was auto-generated from the API references found at
|
3
|
-
# https://developer.
|
3
|
+
# https://epayments-api.developer-ingenico.com/s2sapi/v1/
|
4
4
|
#
|
5
5
|
require 'ingenico/connect/sdk/data_object'
|
6
6
|
require 'ingenico/connect/sdk/domain/definitions/bank_account_bban'
|
@@ -9,7 +9,6 @@ module Ingenico::Connect::SDK
|
|
9
9
|
module Domain
|
10
10
|
module Token
|
11
11
|
|
12
|
-
# Class {https://developer.globalcollect.com/documentation/api/server/#schema_TokenNonSepaDirectDebitPaymentProduct705SpecificData TokenNonSepaDirectDebitPaymentProduct705SpecificData}
|
13
12
|
class TokenNonSepaDirectDebitPaymentProduct705SpecificData < Ingenico::Connect::SDK::DataObject
|
14
13
|
|
15
14
|
# String
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#
|
2
2
|
# This class was auto-generated from the API references found at
|
3
|
-
# https://developer.
|
3
|
+
# https://epayments-api.developer-ingenico.com/s2sapi/v1/
|
4
4
|
#
|
5
5
|
require 'ingenico/connect/sdk/data_object'
|
6
6
|
require 'ingenico/connect/sdk/domain/token/token_card'
|
@@ -12,7 +12,6 @@ module Ingenico::Connect::SDK
|
|
12
12
|
module Domain
|
13
13
|
module Token
|
14
14
|
|
15
|
-
# Class {https://developer.globalcollect.com/documentation/api/server/#schema_TokenResponse TokenResponse}
|
16
15
|
class TokenResponse < Ingenico::Connect::SDK::DataObject
|
17
16
|
|
18
17
|
# {Ingenico::Connect::SDK::Domain::Token::TokenCard}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#
|
2
2
|
# This class was auto-generated from the API references found at
|
3
|
-
# https://developer.
|
3
|
+
# https://epayments-api.developer-ingenico.com/s2sapi/v1/
|
4
4
|
#
|
5
5
|
require 'ingenico/connect/sdk/domain/token/abstract_token'
|
6
6
|
require 'ingenico/connect/sdk/domain/token/customer_token_with_contact_details'
|
@@ -10,7 +10,6 @@ module Ingenico::Connect::SDK
|
|
10
10
|
module Domain
|
11
11
|
module Token
|
12
12
|
|
13
|
-
# Class {https://developer.globalcollect.com/documentation/api/server/#schema_TokenSepaDirectDebit TokenSepaDirectDebit}
|
14
13
|
class TokenSepaDirectDebit < Ingenico::Connect::SDK::Domain::Token::AbstractToken
|
15
14
|
|
16
15
|
# {Ingenico::Connect::SDK::Domain::Token::CustomerTokenWithContactDetails}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#
|
2
2
|
# This class was auto-generated from the API references found at
|
3
|
-
# https://developer.
|
3
|
+
# https://epayments-api.developer-ingenico.com/s2sapi/v1/
|
4
4
|
#
|
5
5
|
require 'ingenico/connect/sdk/domain/token/abstract_token'
|
6
6
|
require 'ingenico/connect/sdk/domain/token/customer_token_with_contact_details'
|
@@ -10,7 +10,6 @@ module Ingenico::Connect::SDK
|
|
10
10
|
module Domain
|
11
11
|
module Token
|
12
12
|
|
13
|
-
# Class {https://developer.globalcollect.com/documentation/api/server/#schema_TokenSepaDirectDebitWithoutCreditor TokenSepaDirectDebitWithoutCreditor}
|
14
13
|
class TokenSepaDirectDebitWithoutCreditor < Ingenico::Connect::SDK::Domain::Token::AbstractToken
|
15
14
|
|
16
15
|
# {Ingenico::Connect::SDK::Domain::Token::CustomerTokenWithContactDetails}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#
|
2
2
|
# This class was auto-generated from the API references found at
|
3
|
-
# https://developer.
|
3
|
+
# https://epayments-api.developer-ingenico.com/s2sapi/v1/
|
4
4
|
#
|
5
5
|
require 'ingenico/connect/sdk/data_object'
|
6
6
|
require 'ingenico/connect/sdk/domain/token/token_card'
|
@@ -12,7 +12,6 @@ module Ingenico::Connect::SDK
|
|
12
12
|
module Domain
|
13
13
|
module Token
|
14
14
|
|
15
|
-
# Class {https://developer.globalcollect.com/documentation/api/server/#schema_UpdateTokenRequest UpdateTokenRequest}
|
16
15
|
class UpdateTokenRequest < Ingenico::Connect::SDK::DataObject
|
17
16
|
|
18
17
|
# {Ingenico::Connect::SDK::Domain::Token::TokenCard}
|
@@ -0,0 +1,57 @@
|
|
1
|
+
#
|
2
|
+
# This class was auto-generated from the API references found at
|
3
|
+
# https://epayments-api.developer-ingenico.com/s2sapi/v1/
|
4
|
+
#
|
5
|
+
require 'ingenico/connect/sdk/api_resource'
|
6
|
+
require 'ingenico/connect/sdk/response_exception'
|
7
|
+
require 'ingenico/connect/sdk/domain/capture/capture_response'
|
8
|
+
require 'ingenico/connect/sdk/domain/errors/error_response'
|
9
|
+
|
10
|
+
module Ingenico::Connect::SDK
|
11
|
+
module Merchant
|
12
|
+
module Captures
|
13
|
+
|
14
|
+
# Captures client. Thread-safe.
|
15
|
+
class CapturesClient < Ingenico::Connect::SDK::ApiResource
|
16
|
+
|
17
|
+
# parent:: {Ingenico::Connect::SDK::ApiResource}
|
18
|
+
# path_context:: Hash of String to String
|
19
|
+
def initialize(parent, path_context)
|
20
|
+
super(parent, path_context)
|
21
|
+
end
|
22
|
+
|
23
|
+
# Resource /{{merchantId}}/captures/{{captureId}}
|
24
|
+
#
|
25
|
+
# {https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/ruby/captures/get.html Get capture}
|
26
|
+
# capture_id:: String
|
27
|
+
# context:: {Ingenico::Connect::SDK::CallContext}
|
28
|
+
# Returns:: {Ingenico::Connect::SDK::Domain::Capture::CaptureResponse}
|
29
|
+
# Raises:: {Ingenico::Connect::SDK::ValidationException} if the request was not correct and couldn't be processed (HTTP status code 400)
|
30
|
+
# Raises:: {Ingenico::Connect::SDK::AuthorizationException} if the request was not allowed (HTTP status code 403)
|
31
|
+
# Raises:: {Ingenico::Connect::SDK::IdempotenceException} if an idempotent request caused a conflict (HTTP status code 409)
|
32
|
+
# Raises:: {Ingenico::Connect::SDK::ReferenceException} if an object was attempted to be referenced that doesn't exist or has been removed,
|
33
|
+
# or there was a conflict (HTTP status code 404, 409 or 410)
|
34
|
+
# Raises:: {Ingenico::Connect::SDK::GlobalCollectException} if something went wrong at the GlobalCollect platform,
|
35
|
+
# the GlobalCollect platform was unable to process a message from a downstream partner/acquirer,
|
36
|
+
# or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
|
37
|
+
# Raises:: {Ingenico::Connect::SDK::ApiException} if the GlobalCollect platform returned any other error
|
38
|
+
def get(capture_id, context=nil)
|
39
|
+
path_context = {
|
40
|
+
'captureId' => capture_id,
|
41
|
+
}
|
42
|
+
uri = instantiate_uri('/{apiVersion}/{merchantId}/captures/{captureId}', path_context)
|
43
|
+
return @communicator.get(
|
44
|
+
uri,
|
45
|
+
client_headers,
|
46
|
+
nil,
|
47
|
+
Ingenico::Connect::SDK::Domain::Capture::CaptureResponse,
|
48
|
+
context)
|
49
|
+
rescue ResponseException => e
|
50
|
+
error_type = Ingenico::Connect::SDK::Domain::Errors::ErrorResponse
|
51
|
+
error_object = @communicator.marshaller.unmarshal(e.body, error_type)
|
52
|
+
raise create_exception(e.status_code, e.body, error_object, context)
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#
|
2
2
|
# This class was auto-generated from the API references found at
|
3
|
-
# https://developer.
|
3
|
+
# https://epayments-api.developer-ingenico.com/s2sapi/v1/
|
4
4
|
#
|
5
5
|
require 'ingenico/connect/sdk/api_resource'
|
6
6
|
require 'ingenico/connect/sdk/response_exception'
|
@@ -23,7 +23,7 @@ module Ingenico::Connect::SDK
|
|
23
23
|
|
24
24
|
# Resource /{{merchantId}}/hostedcheckouts
|
25
25
|
#
|
26
|
-
# {https://developer.
|
26
|
+
# {https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/ruby/hostedcheckouts/create.html Create hosted checkout}
|
27
27
|
# body:: {Ingenico::Connect::SDK::Domain::Hostedcheckout::CreateHostedCheckoutRequest}
|
28
28
|
# context:: {Ingenico::Connect::SDK::CallContext}
|
29
29
|
# Returns:: {Ingenico::Connect::SDK::Domain::Hostedcheckout::CreateHostedCheckoutResponse}
|
@@ -53,7 +53,7 @@ module Ingenico::Connect::SDK
|
|
53
53
|
|
54
54
|
# Resource /{{merchantId}}/hostedcheckouts/{{hostedCheckoutId}}
|
55
55
|
#
|
56
|
-
# {https://developer.
|
56
|
+
# {https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/ruby/hostedcheckouts/get.html Get hosted checkout status}
|
57
57
|
# hosted_checkout_id:: String
|
58
58
|
# context:: {Ingenico::Connect::SDK::CallContext}
|
59
59
|
# Returns:: {Ingenico::Connect::SDK::Domain::Hostedcheckout::GetHostedCheckoutResponse}
|
@@ -1,8 +1,9 @@
|
|
1
1
|
#
|
2
2
|
# This class was auto-generated from the API references found at
|
3
|
-
# https://developer.
|
3
|
+
# https://epayments-api.developer-ingenico.com/s2sapi/v1/
|
4
4
|
#
|
5
5
|
require 'ingenico/connect/sdk/api_resource'
|
6
|
+
require 'ingenico/connect/sdk/merchant/captures/captures_client'
|
6
7
|
require 'ingenico/connect/sdk/merchant/hostedcheckouts/hostedcheckouts_client'
|
7
8
|
require 'ingenico/connect/sdk/merchant/payments/payments_client'
|
8
9
|
require 'ingenico/connect/sdk/merchant/payouts/payouts_client'
|
@@ -34,6 +35,14 @@ module Ingenico::Connect::SDK
|
|
34
35
|
Ingenico::Connect::SDK::Merchant::Payments::PaymentsClient.new(self, nil)
|
35
36
|
end
|
36
37
|
|
38
|
+
# Resource /{{merchantId}}/captures
|
39
|
+
#
|
40
|
+
# Get capture
|
41
|
+
# Returns:: {Ingenico::Connect::SDK::Merchant::Captures::CapturesClient}
|
42
|
+
def captures
|
43
|
+
Ingenico::Connect::SDK::Merchant::Captures::CapturesClient.new(self, nil)
|
44
|
+
end
|
45
|
+
|
37
46
|
# Resource /{{merchantId}}/payouts
|
38
47
|
#
|
39
48
|
# Create, cancel and approve payouts
|
@@ -1,9 +1,11 @@
|
|
1
1
|
#
|
2
2
|
# This class was auto-generated from the API references found at
|
3
|
-
# https://developer.
|
3
|
+
# https://epayments-api.developer-ingenico.com/s2sapi/v1/
|
4
4
|
#
|
5
5
|
require 'ingenico/connect/sdk/api_resource'
|
6
6
|
require 'ingenico/connect/sdk/response_exception'
|
7
|
+
require 'ingenico/connect/sdk/domain/capture/capture_response'
|
8
|
+
require 'ingenico/connect/sdk/domain/capture/captures_response'
|
7
9
|
require 'ingenico/connect/sdk/domain/errors/error_response'
|
8
10
|
require 'ingenico/connect/sdk/domain/payment/cancel_approval_payment_response'
|
9
11
|
require 'ingenico/connect/sdk/domain/payment/cancel_payment_response'
|
@@ -30,7 +32,7 @@ module Ingenico::Connect::SDK
|
|
30
32
|
|
31
33
|
# Resource /{{merchantId}}/payments
|
32
34
|
#
|
33
|
-
# {https://developer.
|
35
|
+
# {https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/ruby/payments/create.html Create payment}
|
34
36
|
# body:: {Ingenico::Connect::SDK::Domain::Payment::CreatePaymentRequest}
|
35
37
|
# context:: {Ingenico::Connect::SDK::CallContext}
|
36
38
|
# Returns:: {Ingenico::Connect::SDK::Domain::Payment::CreatePaymentResponse}
|
@@ -67,7 +69,7 @@ module Ingenico::Connect::SDK
|
|
67
69
|
|
68
70
|
# Resource /{{merchantId}}/payments/{{paymentId}}
|
69
71
|
#
|
70
|
-
# {https://developer.
|
72
|
+
# {https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/ruby/payments/get.html Get payment}
|
71
73
|
# payment_id:: String
|
72
74
|
# context:: {Ingenico::Connect::SDK::CallContext}
|
73
75
|
# Returns:: {Ingenico::Connect::SDK::Domain::Payment::PaymentResponse}
|
@@ -99,7 +101,7 @@ module Ingenico::Connect::SDK
|
|
99
101
|
|
100
102
|
# Resource /{{merchantId}}/payments/{{paymentId}}/approve
|
101
103
|
#
|
102
|
-
# {https://developer.
|
104
|
+
# {https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/ruby/payments/approve.html Approve payment}
|
103
105
|
# payment_id:: String
|
104
106
|
# body:: {Ingenico::Connect::SDK::Domain::Payment::ApprovePaymentRequest}
|
105
107
|
# context:: {Ingenico::Connect::SDK::CallContext}
|
@@ -131,9 +133,75 @@ module Ingenico::Connect::SDK
|
|
131
133
|
raise create_exception(e.status_code, e.body, error_object, context)
|
132
134
|
end
|
133
135
|
|
136
|
+
# Resource /{{merchantId}}/payments/{{paymentId}}/capture
|
137
|
+
#
|
138
|
+
# {https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/ruby/payments/capture.html Capture payment}
|
139
|
+
# payment_id:: String
|
140
|
+
# body:: {Ingenico::Connect::SDK::Domain::Payment::CapturePaymentRequest}
|
141
|
+
# context:: {Ingenico::Connect::SDK::CallContext}
|
142
|
+
# Returns:: {Ingenico::Connect::SDK::Domain::Capture::CaptureResponse}
|
143
|
+
# Raises:: {Ingenico::Connect::SDK::ValidationException} if the request was not correct and couldn't be processed (HTTP status code 400)
|
144
|
+
# Raises:: {Ingenico::Connect::SDK::AuthorizationException} if the request was not allowed (HTTP status code 403)
|
145
|
+
# Raises:: {Ingenico::Connect::SDK::IdempotenceException} if an idempotent request caused a conflict (HTTP status code 409)
|
146
|
+
# Raises:: {Ingenico::Connect::SDK::ReferenceException} if an object was attempted to be referenced that doesn't exist or has been removed,
|
147
|
+
# or there was a conflict (HTTP status code 404, 409 or 410)
|
148
|
+
# Raises:: {Ingenico::Connect::SDK::GlobalCollectException} if something went wrong at the GlobalCollect platform,
|
149
|
+
# the GlobalCollect platform was unable to process a message from a downstream partner/acquirer,
|
150
|
+
# or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
|
151
|
+
# Raises:: {Ingenico::Connect::SDK::ApiException} if the GlobalCollect platform returned any other error
|
152
|
+
def capture(payment_id, body, context=nil)
|
153
|
+
path_context = {
|
154
|
+
'paymentId' => payment_id,
|
155
|
+
}
|
156
|
+
uri = instantiate_uri('/{apiVersion}/{merchantId}/payments/{paymentId}/capture', path_context)
|
157
|
+
return @communicator.post(
|
158
|
+
uri,
|
159
|
+
client_headers,
|
160
|
+
nil,
|
161
|
+
body,
|
162
|
+
Ingenico::Connect::SDK::Domain::Capture::CaptureResponse,
|
163
|
+
context)
|
164
|
+
rescue ResponseException => e
|
165
|
+
error_type = Ingenico::Connect::SDK::Domain::Errors::ErrorResponse
|
166
|
+
error_object = @communicator.marshaller.unmarshal(e.body, error_type)
|
167
|
+
raise create_exception(e.status_code, e.body, error_object, context)
|
168
|
+
end
|
169
|
+
|
170
|
+
# Resource /{{merchantId}}/payments/{{paymentId}}/captures
|
171
|
+
#
|
172
|
+
# {https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/ruby/payments/captures.html Get captures of payment}
|
173
|
+
# payment_id:: String
|
174
|
+
# context:: {Ingenico::Connect::SDK::CallContext}
|
175
|
+
# Returns:: {Ingenico::Connect::SDK::Domain::Capture::CapturesResponse}
|
176
|
+
# Raises:: {Ingenico::Connect::SDK::ValidationException} if the request was not correct and couldn't be processed (HTTP status code 400)
|
177
|
+
# Raises:: {Ingenico::Connect::SDK::AuthorizationException} if the request was not allowed (HTTP status code 403)
|
178
|
+
# Raises:: {Ingenico::Connect::SDK::IdempotenceException} if an idempotent request caused a conflict (HTTP status code 409)
|
179
|
+
# Raises:: {Ingenico::Connect::SDK::ReferenceException} if an object was attempted to be referenced that doesn't exist or has been removed,
|
180
|
+
# or there was a conflict (HTTP status code 404, 409 or 410)
|
181
|
+
# Raises:: {Ingenico::Connect::SDK::GlobalCollectException} if something went wrong at the GlobalCollect platform,
|
182
|
+
# the GlobalCollect platform was unable to process a message from a downstream partner/acquirer,
|
183
|
+
# or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
|
184
|
+
# Raises:: {Ingenico::Connect::SDK::ApiException} if the GlobalCollect platform returned any other error
|
185
|
+
def captures(payment_id, context=nil)
|
186
|
+
path_context = {
|
187
|
+
'paymentId' => payment_id,
|
188
|
+
}
|
189
|
+
uri = instantiate_uri('/{apiVersion}/{merchantId}/payments/{paymentId}/captures', path_context)
|
190
|
+
return @communicator.get(
|
191
|
+
uri,
|
192
|
+
client_headers,
|
193
|
+
nil,
|
194
|
+
Ingenico::Connect::SDK::Domain::Capture::CapturesResponse,
|
195
|
+
context)
|
196
|
+
rescue ResponseException => e
|
197
|
+
error_type = Ingenico::Connect::SDK::Domain::Errors::ErrorResponse
|
198
|
+
error_object = @communicator.marshaller.unmarshal(e.body, error_type)
|
199
|
+
raise create_exception(e.status_code, e.body, error_object, context)
|
200
|
+
end
|
201
|
+
|
134
202
|
# Resource /{{merchantId}}/payments/{{paymentId}}/cancel
|
135
203
|
#
|
136
|
-
# {https://developer.
|
204
|
+
# {https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/ruby/payments/cancel.html Cancel payment}
|
137
205
|
# payment_id:: String
|
138
206
|
# context:: {Ingenico::Connect::SDK::CallContext}
|
139
207
|
# Returns:: {Ingenico::Connect::SDK::Domain::Payment::CancelPaymentResponse}
|
@@ -166,7 +234,7 @@ module Ingenico::Connect::SDK
|
|
166
234
|
|
167
235
|
# Resource /{{merchantId}}/payments/{{paymentId}}/cancelapproval
|
168
236
|
#
|
169
|
-
# {https://developer.
|
237
|
+
# {https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/ruby/payments/cancelapproval.html Undo capture payment request}
|
170
238
|
# payment_id:: String
|
171
239
|
# context:: {Ingenico::Connect::SDK::CallContext}
|
172
240
|
# Returns:: {Ingenico::Connect::SDK::Domain::Payment::CancelApprovalPaymentResponse}
|
@@ -199,7 +267,7 @@ module Ingenico::Connect::SDK
|
|
199
267
|
|
200
268
|
# Resource /{{merchantId}}/payments/{{paymentId}}/processchallenged
|
201
269
|
#
|
202
|
-
# {https://developer.
|
270
|
+
# {https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/ruby/payments/processchallenged.html Approves challenged payment}
|
203
271
|
# payment_id:: String
|
204
272
|
# context:: {Ingenico::Connect::SDK::CallContext}
|
205
273
|
# Returns:: {Ingenico::Connect::SDK::Domain::Payment::PaymentResponse}
|
@@ -232,7 +300,7 @@ module Ingenico::Connect::SDK
|
|
232
300
|
|
233
301
|
# Resource /{{merchantId}}/payments/{{paymentId}}/refund
|
234
302
|
#
|
235
|
-
# {https://developer.
|
303
|
+
# {https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/ruby/payments/refund.html Create refund}
|
236
304
|
# payment_id:: String
|
237
305
|
# body:: {Ingenico::Connect::SDK::Domain::Refund::RefundRequest}
|
238
306
|
# context:: {Ingenico::Connect::SDK::CallContext}
|
@@ -270,7 +338,7 @@ module Ingenico::Connect::SDK
|
|
270
338
|
|
271
339
|
# Resource /{{merchantId}}/payments/{{paymentId}}/tokenize
|
272
340
|
#
|
273
|
-
# {https://developer.
|
341
|
+
# {https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/ruby/payments/tokenize.html Create a token from payment}
|
274
342
|
# payment_id:: String
|
275
343
|
# body:: {Ingenico::Connect::SDK::Domain::Payment::TokenizePaymentRequest}
|
276
344
|
# context:: {Ingenico::Connect::SDK::CallContext}
|