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
@@ -5,7 +5,7 @@ module Ingenico::Connect::SDK
|
|
5
5
|
|
6
6
|
# Manages metadata about the server using the SDK
|
7
7
|
class MetaDataProvider
|
8
|
-
@@SDK_VERSION = '1.
|
8
|
+
@@SDK_VERSION = '1.6.0'
|
9
9
|
@@SERVER_META_INFO_HEADER = 'X-GCS-ServerMetaInfo'
|
10
10
|
@@PROHIBITED_HEADERS = [@@SERVER_META_INFO_HEADER, 'X-GCS-Idempotence-Key',
|
11
11
|
'Date', 'Content-Type', 'Authorization'].sort!.freeze
|
@@ -41,6 +41,16 @@ end
|
|
41
41
|
module Ingenico::Connect::SDK::Domain::Payment
|
42
42
|
end
|
43
43
|
|
44
|
+
# Contains the client used to access the capture service.
|
45
|
+
# @see https://developer.globalcollect.com/documentation/api/server/#captures
|
46
|
+
module Ingenico::Connect::SDK::Merchant::Captures
|
47
|
+
end
|
48
|
+
|
49
|
+
# Contains data classes that are used in capture services.
|
50
|
+
# @see https://developer.globalcollect.com/documentation/api/server/#captures
|
51
|
+
module Ingenico::Connect::SDK::Domain::Capture
|
52
|
+
end
|
53
|
+
|
44
54
|
# Contains the client used to access the payout service.
|
45
55
|
# @see https://developer.globalcollect.com/documentation/api/server/#payouts
|
46
56
|
module Ingenico::Connect::SDK::Merchant::Payouts
|
@@ -0,0 +1,42 @@
|
|
1
|
+
{
|
2
|
+
"creationOutput": {
|
3
|
+
"additionalReference": "00000012341000059598",
|
4
|
+
"externalReference": "000000123410000595980000100001"
|
5
|
+
},
|
6
|
+
"payment": {
|
7
|
+
"id": "000000123410000595980000100001",
|
8
|
+
"paymentOutput": {
|
9
|
+
"amountOfMoney": {
|
10
|
+
"amount": 2345,
|
11
|
+
"currencyCode": "CAD"
|
12
|
+
},
|
13
|
+
"references": {
|
14
|
+
"paymentReference": "0"
|
15
|
+
},
|
16
|
+
"paymentMethod": "redirect",
|
17
|
+
"redirectPaymentMethodSpecificOutput":{
|
18
|
+
"paymentProductId":840,
|
19
|
+
"paymentProduct840SpecificOutput":{
|
20
|
+
"customerAccount":{
|
21
|
+
"firstName":"Theresa",
|
22
|
+
"surname":"Schröder"
|
23
|
+
},
|
24
|
+
"customerAddress":{
|
25
|
+
"city":"sittensen",
|
26
|
+
"countryCode":"DE",
|
27
|
+
"street":"Westerberg 25",
|
28
|
+
"zip":"27419"
|
29
|
+
}
|
30
|
+
}
|
31
|
+
}
|
32
|
+
},
|
33
|
+
"status": "PENDING_APPROVAL",
|
34
|
+
"statusOutput": {
|
35
|
+
"isCancellable": true,
|
36
|
+
"statusCategory": "PENDING_MERCHANT",
|
37
|
+
"statusCode": 600,
|
38
|
+
"statusCodeChangeDateTime": "20160310094054",
|
39
|
+
"isAuthorized": true
|
40
|
+
}
|
41
|
+
}
|
42
|
+
}
|
@@ -29,6 +29,7 @@ module ValidationDict
|
|
29
29
|
DUMMY_HEADER = %r(Dummy="none")
|
30
30
|
DATA_JSON_HEADER = %r(Content-Type="application/json")
|
31
31
|
DATA_JSON = %r(content-type: 'application/json')
|
32
|
+
UNICODE_BODY_NAME= %r(Schröder)
|
32
33
|
|
33
34
|
def validate_request_headers(message)
|
34
35
|
expect(message).to match(DATEHEADER)
|
@@ -115,6 +116,34 @@ module ValidationDict
|
|
115
116
|
return id
|
116
117
|
end
|
117
118
|
|
119
|
+
def createPayment_unicode_request(message)
|
120
|
+
expect(message).to match(REQUEST_START)
|
121
|
+
message =~ REQUEST_START
|
122
|
+
id = $1 # capture id from the regular expression above
|
123
|
+
expect(message).to match(POST_METHOD)
|
124
|
+
expect(message).to match(%r(uri: '/v1/1234/payments'))
|
125
|
+
validate_request_headers(message)
|
126
|
+
expect(message).to match(DATA_JSON_HEADER)
|
127
|
+
expect(message).to match(DATA_JSON)
|
128
|
+
# token match to validate that a body is in the message
|
129
|
+
expect(message).to match(%r("cardPaymentMethodSpecificInput":))
|
130
|
+
return id
|
131
|
+
end
|
132
|
+
|
133
|
+
def createPayment_unicode_response(message)
|
134
|
+
expect(message).to match(RESPONSE_START)
|
135
|
+
message =~ RESPONSE_START
|
136
|
+
id = $1 # capture id from the regular expression above
|
137
|
+
expect(message).to match(STATUS_201)
|
138
|
+
expect(message).to match(%r(Location="api-sandbox\.globalcollect\.com/v1/1234/payments/000000123410000595980000100001"))
|
139
|
+
expect(message).to match(DATA_JSON_HEADER)
|
140
|
+
# expect(message).to match(DUMMY_HEADER)
|
141
|
+
expect(message).to match(DATEHEADER)
|
142
|
+
expect(message).to match(DATA_JSON)
|
143
|
+
expect(message).to match(UNICODE_BODY_NAME)
|
144
|
+
# token match to validate that a body is in the message
|
145
|
+
return id
|
146
|
+
end
|
118
147
|
def createPayment_request(message)
|
119
148
|
expect(message).to match(REQUEST_START)
|
120
149
|
message =~ REQUEST_START
|
@@ -298,6 +327,24 @@ describe 'DefaultConnectionLogging' do
|
|
298
327
|
|
299
328
|
validate_request_and_response(logger.entries[0], logger.entries[1], 'createPayment')
|
300
329
|
end
|
330
|
+
it 'can log POST responses with unicode body' do
|
331
|
+
response_body = IO.read(resource_prefix + 'createPayment.unicode.json')
|
332
|
+
request = create_payment_request
|
333
|
+
|
334
|
+
stub_request(:post, 'https://api-sandbox.globalcollect.com/v1/1234/payments')
|
335
|
+
.to_return(status: 201, body: response_body,
|
336
|
+
headers: base_headers.merge({'Content-Type' => 'application/json',
|
337
|
+
'Location' => 'api-sandbox.globalcollect.com/v1/1234/payments/000000123410000595980000100001'}))
|
338
|
+
|
339
|
+
CLIENT.enable_logging(logger)
|
340
|
+
response = CLIENT.merchant('1234').payments.create(request)
|
341
|
+
|
342
|
+
expect(response).to_not be_nil
|
343
|
+
expect(response.payment).to_not be_nil
|
344
|
+
expect(response.payment.id).to_not be_nil
|
345
|
+
|
346
|
+
validate_request_and_response(logger.entries[0], logger.entries[1], 'createPayment_unicode')
|
347
|
+
end
|
301
348
|
|
302
349
|
# tests create payment with an invalid card number
|
303
350
|
it 'can log error responses' do
|
@@ -23,6 +23,7 @@ describe RubyCommunicatorLogger do
|
|
23
23
|
File.delete(filename)
|
24
24
|
end
|
25
25
|
|
26
|
+
|
26
27
|
context 'logging without error' do
|
27
28
|
|
28
29
|
let(:errorLevel) { Logger::WARN }
|
@@ -32,6 +33,13 @@ describe RubyCommunicatorLogger do
|
|
32
33
|
let(:logLevel) { Logger::INFO }
|
33
34
|
let(:tag) { 'I' }
|
34
35
|
|
36
|
+
it 'should not throw an exception when logging unicode strings' do
|
37
|
+
message = ResponseLogMessageBuilder.new("aaa", 2345, 45.32)
|
38
|
+
body = "Schröder"
|
39
|
+
content = "JSON"
|
40
|
+
message.set_body(body, content)
|
41
|
+
sample.log(message.get_message())
|
42
|
+
end
|
35
43
|
it 'logs with the correct logLevel and message' do
|
36
44
|
sample.log(msg)
|
37
45
|
line = IO.readlines(filename).last
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: connect-sdk-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ingenico ePayments
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-06-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httpclient
|
@@ -107,13 +107,16 @@ files:
|
|
107
107
|
- README.md
|
108
108
|
- Rakefile
|
109
109
|
- connect-sdk-ruby.gemspec
|
110
|
+
- examples/merchant/captures/get_capture_example.rb
|
110
111
|
- examples/merchant/example_configuration.yml
|
111
112
|
- examples/merchant/hostedcheckouts/create_hosted_checkout_example.rb
|
112
113
|
- examples/merchant/hostedcheckouts/get_hosted_checkout_example.rb
|
113
114
|
- examples/merchant/payments/approve_payment_example.rb
|
114
115
|
- examples/merchant/payments/cancel_approval_payment_example.rb
|
115
116
|
- examples/merchant/payments/cancel_payment_example.rb
|
117
|
+
- examples/merchant/payments/capture_payment_example.rb
|
116
118
|
- examples/merchant/payments/create_payment_example.rb
|
119
|
+
- examples/merchant/payments/get_payment_captures_example.rb
|
117
120
|
- examples/merchant/payments/get_payment_example.rb
|
118
121
|
- examples/merchant/payments/process_challenged_payment_example.rb
|
119
122
|
- examples/merchant/payments/refund_payment_example.rb
|
@@ -167,6 +170,11 @@ files:
|
|
167
170
|
- lib/ingenico/connect/sdk/defaultimpl/default_authenticator.rb
|
168
171
|
- lib/ingenico/connect/sdk/defaultimpl/default_connection.rb
|
169
172
|
- lib/ingenico/connect/sdk/defaultimpl/default_marshaller.rb
|
173
|
+
- lib/ingenico/connect/sdk/domain/capture/capture.rb
|
174
|
+
- lib/ingenico/connect/sdk/domain/capture/capture_output.rb
|
175
|
+
- lib/ingenico/connect/sdk/domain/capture/capture_response.rb
|
176
|
+
- lib/ingenico/connect/sdk/domain/capture/capture_status_output.rb
|
177
|
+
- lib/ingenico/connect/sdk/domain/capture/captures_response.rb
|
170
178
|
- lib/ingenico/connect/sdk/domain/definitions/abstract_order_status.rb
|
171
179
|
- lib/ingenico/connect/sdk/domain/definitions/abstract_payment_method_specific_input.rb
|
172
180
|
- lib/ingenico/connect/sdk/domain/definitions/additional_order_input_airline_data.rb
|
@@ -185,6 +193,7 @@ files:
|
|
185
193
|
- lib/ingenico/connect/sdk/domain/definitions/contact_details_base.rb
|
186
194
|
- lib/ingenico/connect/sdk/domain/definitions/customer_base.rb
|
187
195
|
- lib/ingenico/connect/sdk/domain/definitions/fraud_fields.rb
|
196
|
+
- lib/ingenico/connect/sdk/domain/definitions/fraud_fields_shipping_details.rb
|
188
197
|
- lib/ingenico/connect/sdk/domain/definitions/fraud_results.rb
|
189
198
|
- lib/ingenico/connect/sdk/domain/definitions/fraud_results_retail_decisions.rb
|
190
199
|
- lib/ingenico/connect/sdk/domain/definitions/key_value_pair.rb
|
@@ -222,6 +231,7 @@ files:
|
|
222
231
|
- lib/ingenico/connect/sdk/domain/payment/cancel_payment_card_payment_method_specific_output.rb
|
223
232
|
- lib/ingenico/connect/sdk/domain/payment/cancel_payment_mobile_payment_method_specific_output.rb
|
224
233
|
- lib/ingenico/connect/sdk/domain/payment/cancel_payment_response.rb
|
234
|
+
- lib/ingenico/connect/sdk/domain/payment/capture_payment_request.rb
|
225
235
|
- lib/ingenico/connect/sdk/domain/payment/card_payment_method_specific_input.rb
|
226
236
|
- lib/ingenico/connect/sdk/domain/payment/card_payment_method_specific_input_base.rb
|
227
237
|
- lib/ingenico/connect/sdk/domain/payment/card_payment_method_specific_output.rb
|
@@ -293,7 +303,10 @@ files:
|
|
293
303
|
- lib/ingenico/connect/sdk/domain/payment/shopping_cart.rb
|
294
304
|
- lib/ingenico/connect/sdk/domain/payment/three_d_secure_results.rb
|
295
305
|
- lib/ingenico/connect/sdk/domain/payment/tokenize_payment_request.rb
|
306
|
+
- lib/ingenico/connect/sdk/domain/payout/abstract_payout_method_specific_input.rb
|
296
307
|
- lib/ingenico/connect/sdk/domain/payout/approve_payout_request.rb
|
308
|
+
- lib/ingenico/connect/sdk/domain/payout/bank_transfer_payout_method_specific_input.rb
|
309
|
+
- lib/ingenico/connect/sdk/domain/payout/card_payout_method_specific_input.rb
|
297
310
|
- lib/ingenico/connect/sdk/domain/payout/create_payout_request.rb
|
298
311
|
- lib/ingenico/connect/sdk/domain/payout/payout_customer.rb
|
299
312
|
- lib/ingenico/connect/sdk/domain/payout/payout_error_response.rb
|
@@ -401,6 +414,7 @@ files:
|
|
401
414
|
- lib/ingenico/connect/sdk/logging/stdout_communicator_logger.rb
|
402
415
|
- lib/ingenico/connect/sdk/marshaller.rb
|
403
416
|
- lib/ingenico/connect/sdk/marshaller_syntax_exception.rb
|
417
|
+
- lib/ingenico/connect/sdk/merchant/captures/captures_client.rb
|
404
418
|
- lib/ingenico/connect/sdk/merchant/hostedcheckouts/hostedcheckouts_client.rb
|
405
419
|
- lib/ingenico/connect/sdk/merchant/merchant_client.rb
|
406
420
|
- lib/ingenico/connect/sdk/merchant/payments/payments_client.rb
|
@@ -439,6 +453,7 @@ files:
|
|
439
453
|
- spec/fixtures/resources/defaultimpl/createPayment.failure.invalidCardNumber.json
|
440
454
|
- spec/fixtures/resources/defaultimpl/createPayment.failure.rejected.json
|
441
455
|
- spec/fixtures/resources/defaultimpl/createPayment.json
|
456
|
+
- spec/fixtures/resources/defaultimpl/createPayment.unicode.json
|
442
457
|
- spec/fixtures/resources/defaultimpl/idempotence_duplicate_failure.json
|
443
458
|
- spec/fixtures/resources/defaultimpl/idempotence_rejected.json
|
444
459
|
- spec/fixtures/resources/defaultimpl/idempotence_success.json
|
@@ -514,7 +529,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
514
529
|
version: '0'
|
515
530
|
requirements: []
|
516
531
|
rubyforge_project:
|
517
|
-
rubygems_version: 2.6.
|
532
|
+
rubygems_version: 2.6.12
|
518
533
|
signing_key:
|
519
534
|
specification_version: 4
|
520
535
|
summary: SDK to communicate with the GlobalCollect platform using the Ingenico Connect
|
@@ -525,6 +540,7 @@ test_files:
|
|
525
540
|
- spec/fixtures/resources/defaultimpl/createPayment.failure.invalidCardNumber.json
|
526
541
|
- spec/fixtures/resources/defaultimpl/createPayment.failure.rejected.json
|
527
542
|
- spec/fixtures/resources/defaultimpl/createPayment.json
|
543
|
+
- spec/fixtures/resources/defaultimpl/createPayment.unicode.json
|
528
544
|
- spec/fixtures/resources/defaultimpl/idempotence_duplicate_failure.json
|
529
545
|
- spec/fixtures/resources/defaultimpl/idempotence_rejected.json
|
530
546
|
- spec/fixtures/resources/defaultimpl/idempotence_success.json
|