onlinepayments-sdk-ruby 4.23.0 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile +0 -0
- data/LICENSE.txt +0 -0
- data/README.md +5 -6
- data/Rakefile +0 -0
- data/lib/onlinepayments/sdk/api_exception.rb +47 -35
- data/lib/onlinepayments/sdk/api_resource.rb +49 -97
- data/lib/onlinepayments/sdk/authentication/authenticator.rb +19 -0
- data/lib/onlinepayments/sdk/authentication/authorization_type.rb +15 -0
- data/lib/onlinepayments/sdk/authentication/v1hmac_authenticator.rb +109 -0
- data/lib/onlinepayments/sdk/authentication.rb +1 -0
- data/lib/onlinepayments/sdk/authorization_exception.rb +14 -8
- data/lib/onlinepayments/sdk/call_context.rb +30 -21
- data/lib/onlinepayments/sdk/client.rb +36 -18
- data/lib/onlinepayments/sdk/communication/communication_exception.rb +19 -0
- data/lib/onlinepayments/sdk/communication/connection.rb +48 -0
- data/lib/onlinepayments/sdk/communication/default_connection.rb +427 -0
- data/lib/onlinepayments/sdk/communication/metadata_provider.rb +160 -0
- data/lib/onlinepayments/sdk/communication/multipart_form_data_object.rb +52 -0
- data/lib/onlinepayments/sdk/communication/multipart_form_data_request.rb +13 -0
- data/lib/onlinepayments/sdk/communication/not_found_exception.rb +19 -0
- data/lib/onlinepayments/sdk/communication/param_request.rb +14 -0
- data/lib/onlinepayments/sdk/communication/pooled_connection.rb +26 -0
- data/lib/onlinepayments/sdk/communication/request_header.rb +62 -0
- data/lib/onlinepayments/sdk/communication/request_param.rb +28 -0
- data/lib/onlinepayments/sdk/communication/response_exception.rb +56 -0
- data/lib/onlinepayments/sdk/communication/response_header.rb +78 -0
- data/lib/onlinepayments/sdk/communication.rb +1 -0
- data/lib/onlinepayments/sdk/communicator.rb +475 -268
- data/lib/onlinepayments/sdk/communicator_configuration.rb +162 -53
- data/lib/onlinepayments/sdk/declined_payment_exception.rb +28 -21
- data/lib/onlinepayments/sdk/declined_payout_exception.rb +28 -23
- data/lib/onlinepayments/sdk/declined_refund_exception.rb +28 -23
- data/lib/onlinepayments/sdk/declined_transaction_exception.rb +16 -10
- data/lib/onlinepayments/sdk/domain/account_on_file.rb +44 -35
- data/lib/onlinepayments/sdk/domain/account_on_file_attribute.rb +42 -28
- data/lib/onlinepayments/sdk/domain/account_on_file_display_hints.rb +29 -24
- data/lib/onlinepayments/sdk/domain/acquirer_information.rb +27 -22
- data/lib/onlinepayments/sdk/domain/acquirer_selection_information.rb +34 -24
- data/lib/onlinepayments/sdk/domain/additional_order_input.rb +43 -38
- data/lib/onlinepayments/sdk/domain/address.rb +65 -43
- data/lib/onlinepayments/sdk/domain/address_personal.rb +78 -52
- data/lib/onlinepayments/sdk/domain/airline_data.rb +204 -123
- data/lib/onlinepayments/sdk/domain/airline_flight_leg.rb +158 -95
- data/lib/onlinepayments/sdk/domain/airline_passenger.rb +59 -39
- data/lib/onlinepayments/sdk/domain/amount_breakdown.rb +27 -20
- data/lib/onlinepayments/sdk/domain/amount_of_money.rb +27 -20
- data/lib/onlinepayments/sdk/domain/api_error.rb +73 -47
- data/lib/onlinepayments/sdk/domain/apple_pay_line_item.rb +72 -0
- data/lib/onlinepayments/sdk/domain/apple_pay_recurring_payment_request.rb +61 -0
- data/lib/onlinepayments/sdk/domain/bank_account_iban.rb +20 -16
- data/lib/onlinepayments/sdk/domain/browser_data.rb +51 -35
- data/lib/onlinepayments/sdk/domain/calculate_surcharge_request.rb +27 -24
- data/lib/onlinepayments/sdk/domain/calculate_surcharge_response.rb +22 -20
- data/lib/onlinepayments/sdk/domain/cancel_payment_request.rb +27 -22
- data/lib/onlinepayments/sdk/domain/cancel_payment_response.rb +20 -18
- data/lib/onlinepayments/sdk/domain/capture.rb +41 -32
- data/lib/onlinepayments/sdk/domain/capture_output.rb +106 -78
- data/lib/onlinepayments/sdk/domain/capture_payment_request.rb +43 -26
- data/lib/onlinepayments/sdk/domain/capture_response.rb +41 -32
- data/lib/onlinepayments/sdk/domain/capture_status_output.rb +20 -16
- data/lib/onlinepayments/sdk/domain/captures_response.rb +22 -20
- data/lib/onlinepayments/sdk/domain/card.rb +41 -28
- data/lib/onlinepayments/sdk/domain/card_essentials.rb +41 -28
- data/lib/onlinepayments/sdk/domain/card_fraud_results.rb +34 -24
- data/lib/onlinepayments/sdk/domain/card_info.rb +27 -20
- data/lib/onlinepayments/sdk/domain/card_payment_method_specific_input.rb +199 -128
- data/lib/onlinepayments/sdk/domain/card_payment_method_specific_input_base.rb +149 -104
- data/lib/onlinepayments/sdk/domain/card_payment_method_specific_input_for_hosted_checkout.rb +36 -28
- data/lib/onlinepayments/sdk/domain/card_payment_method_specific_output.rb +133 -100
- data/lib/onlinepayments/sdk/domain/card_payout_method_specific_input.rb +41 -30
- data/lib/onlinepayments/sdk/domain/card_recurrence_details.rb +20 -16
- data/lib/onlinepayments/sdk/domain/card_source.rb +41 -30
- data/lib/onlinepayments/sdk/domain/card_without_cvv.rb +34 -24
- data/lib/onlinepayments/sdk/domain/company_information.rb +20 -16
- data/lib/onlinepayments/sdk/domain/complete_payment_card_payment_method_specific_input.rb +20 -18
- data/lib/onlinepayments/sdk/domain/complete_payment_request.rb +27 -24
- data/lib/onlinepayments/sdk/domain/complete_payment_response.rb +35 -31
- data/lib/onlinepayments/sdk/domain/contact_details.rb +51 -35
- data/lib/onlinepayments/sdk/domain/create_hosted_checkout_request.rb +76 -59
- data/lib/onlinepayments/sdk/domain/create_hosted_checkout_response.rb +60 -43
- data/lib/onlinepayments/sdk/domain/create_hosted_tokenization_request.rb +57 -42
- data/lib/onlinepayments/sdk/domain/create_hosted_tokenization_response.rb +57 -44
- data/lib/onlinepayments/sdk/domain/create_mandate_request.rb +71 -48
- data/lib/onlinepayments/sdk/domain/create_mandate_response.rb +27 -24
- data/lib/onlinepayments/sdk/domain/create_mandate_with_return_url.rb +71 -48
- data/lib/onlinepayments/sdk/domain/create_payment_link_request.rb +120 -87
- data/lib/onlinepayments/sdk/domain/create_payment_request.rb +82 -60
- data/lib/onlinepayments/sdk/domain/create_payment_response.rb +35 -31
- data/lib/onlinepayments/sdk/domain/create_payout_request.rb +61 -40
- data/lib/onlinepayments/sdk/domain/create_token_request.rb +27 -22
- data/lib/onlinepayments/sdk/domain/created_payment_output.rb +27 -22
- data/lib/onlinepayments/sdk/domain/created_token_response.rb +50 -38
- data/lib/onlinepayments/sdk/domain/credit_card_specific_input_hosted_tokenization.rb +29 -26
- data/lib/onlinepayments/sdk/domain/credit_card_validation_rules_hosted_tokenization.rb +27 -20
- data/lib/onlinepayments/sdk/domain/currency_conversion.rb +27 -22
- data/lib/onlinepayments/sdk/domain/currency_conversion_input.rb +27 -20
- data/lib/onlinepayments/sdk/domain/currency_conversion_request.rb +27 -24
- data/lib/onlinepayments/sdk/domain/currency_conversion_response.rb +34 -28
- data/lib/onlinepayments/sdk/domain/currency_conversion_result.rb +27 -20
- data/lib/onlinepayments/sdk/domain/currency_conversion_specific_input.rb +20 -16
- data/lib/onlinepayments/sdk/domain/customer.rb +87 -68
- data/lib/onlinepayments/sdk/domain/customer_account.rb +77 -55
- data/lib/onlinepayments/sdk/domain/customer_account_authentication.rb +34 -20
- data/lib/onlinepayments/sdk/domain/customer_bank_account.rb +34 -24
- data/lib/onlinepayments/sdk/domain/customer_device.rb +64 -44
- data/lib/onlinepayments/sdk/domain/customer_device_output.rb +20 -16
- data/lib/onlinepayments/sdk/domain/customer_output.rb +20 -18
- data/lib/onlinepayments/sdk/domain/customer_payment_activity.rb +34 -24
- data/lib/onlinepayments/sdk/domain/customer_token.rb +35 -31
- data/lib/onlinepayments/sdk/domain/data_object.rb +32 -0
- data/lib/onlinepayments/sdk/domain/dcc_card_source.rb +41 -30
- data/lib/onlinepayments/sdk/domain/dcc_proposal.rb +51 -41
- data/lib/onlinepayments/sdk/domain/decrypted_payment_data.rb +51 -35
- data/lib/onlinepayments/sdk/domain/directory_entry.rb +34 -24
- data/lib/onlinepayments/sdk/domain/discount.rb +20 -16
- data/lib/onlinepayments/sdk/domain/empty_validator.rb +7 -6
- data/lib/onlinepayments/sdk/domain/error_response.rb +29 -24
- data/lib/onlinepayments/sdk/domain/external_cardholder_authentication_data.rb +86 -55
- data/lib/onlinepayments/sdk/domain/external_token_linked.rb +35 -24
- data/lib/onlinepayments/sdk/domain/feedbacks.rb +30 -0
- data/lib/onlinepayments/sdk/domain/fixed_list_validator.rb +22 -20
- data/lib/onlinepayments/sdk/domain/fraud_fields.rb +37 -28
- data/lib/onlinepayments/sdk/domain/fraud_results.rb +20 -16
- data/lib/onlinepayments/sdk/domain/g_pay_three_d_secure.rb +50 -36
- data/lib/onlinepayments/sdk/domain/get_hosted_checkout_response.rb +27 -22
- data/lib/onlinepayments/sdk/domain/get_hosted_tokenization_response.rb +27 -22
- data/lib/onlinepayments/sdk/domain/get_iin_details_request.rb +27 -22
- data/lib/onlinepayments/sdk/domain/get_iin_details_response.rb +52 -38
- data/lib/onlinepayments/sdk/domain/get_mandate_response.rb +20 -18
- data/lib/onlinepayments/sdk/domain/get_payment_product_groups_response.rb +22 -20
- data/lib/onlinepayments/sdk/domain/get_payment_products_response.rb +22 -20
- data/lib/onlinepayments/sdk/domain/get_privacy_policy_response.rb +20 -16
- data/lib/onlinepayments/sdk/domain/gift_card_purchase.rb +27 -22
- data/lib/onlinepayments/sdk/domain/hosted_checkout_specific_input.rb +83 -56
- data/lib/onlinepayments/sdk/domain/hosted_checkout_specific_output.rb +27 -20
- data/lib/onlinepayments/sdk/domain/iin_detail.rb +34 -24
- data/lib/onlinepayments/sdk/domain/label_template_element.rb +27 -20
- data/lib/onlinepayments/sdk/domain/length_validator.rb +27 -20
- data/lib/onlinepayments/sdk/domain/line_item.rb +44 -31
- data/lib/onlinepayments/sdk/domain/line_item_invoice_data.rb +20 -16
- data/lib/onlinepayments/sdk/domain/loan_recipient.rb +51 -35
- data/lib/onlinepayments/sdk/domain/lodging_data.rb +20 -16
- data/lib/onlinepayments/sdk/domain/mandate_address.rb +51 -35
- data/lib/onlinepayments/sdk/domain/mandate_address_response.rb +51 -35
- data/lib/onlinepayments/sdk/domain/mandate_contact_details.rb +20 -16
- data/lib/onlinepayments/sdk/domain/mandate_customer.rb +52 -44
- data/lib/onlinepayments/sdk/domain/mandate_customer_response.rb +52 -44
- data/lib/onlinepayments/sdk/domain/mandate_merchant_action.rb +27 -22
- data/lib/onlinepayments/sdk/domain/mandate_personal_information.rb +27 -22
- data/lib/onlinepayments/sdk/domain/mandate_personal_information_response.rb +27 -22
- data/lib/onlinepayments/sdk/domain/mandate_personal_name.rb +27 -20
- data/lib/onlinepayments/sdk/domain/mandate_personal_name_response.rb +27 -20
- data/lib/onlinepayments/sdk/domain/mandate_redirect_data.rb +27 -20
- data/lib/onlinepayments/sdk/domain/mandate_response.rb +64 -44
- data/lib/onlinepayments/sdk/domain/merchant_action.rb +43 -28
- data/lib/onlinepayments/sdk/domain/mobile_payment_data.rb +27 -20
- data/lib/onlinepayments/sdk/domain/mobile_payment_method_hosted_checkout_specific_input.rb +43 -26
- data/lib/onlinepayments/sdk/domain/mobile_payment_method_specific_input.rb +71 -50
- data/lib/onlinepayments/sdk/domain/mobile_payment_method_specific_output.rb +58 -45
- data/lib/onlinepayments/sdk/domain/mobile_payment_product302_specific_input.rb +32 -0
- data/lib/onlinepayments/sdk/domain/mobile_payment_product320_specific_input.rb +20 -18
- data/lib/onlinepayments/sdk/domain/mobile_three_d_secure_challenge_parameters.rb +51 -0
- data/lib/onlinepayments/sdk/domain/multiple_payment_information.rb +27 -20
- data/lib/onlinepayments/sdk/domain/omnichannel_payout_specific_input.rb +20 -16
- data/lib/onlinepayments/sdk/domain/operation_output.rb +67 -45
- data/lib/onlinepayments/sdk/domain/operation_payment_references.rb +30 -0
- data/lib/onlinepayments/sdk/domain/order.rb +75 -66
- data/lib/onlinepayments/sdk/domain/order_line_details.rb +79 -47
- data/lib/onlinepayments/sdk/domain/order_references.rb +34 -24
- data/lib/onlinepayments/sdk/domain/order_status_output.rb +52 -38
- data/lib/onlinepayments/sdk/domain/order_type_information.rb +27 -20
- data/lib/onlinepayments/sdk/domain/other_details.rb +37 -0
- data/lib/onlinepayments/sdk/domain/payment_account_on_file.rb +27 -20
- data/lib/onlinepayments/sdk/domain/payment_context.rb +34 -26
- data/lib/onlinepayments/sdk/domain/payment_creation_output.rb +41 -28
- data/lib/onlinepayments/sdk/domain/payment_details_response.rb +60 -49
- data/lib/onlinepayments/sdk/domain/payment_error_response.rb +37 -31
- data/lib/onlinepayments/sdk/domain/payment_link_event.rb +34 -24
- data/lib/onlinepayments/sdk/domain/payment_link_order_input.rb +34 -28
- data/lib/onlinepayments/sdk/domain/payment_link_order_output.rb +34 -28
- data/lib/onlinepayments/sdk/domain/payment_link_response.rb +74 -51
- data/lib/onlinepayments/sdk/domain/payment_link_specific_input.rb +36 -24
- data/lib/onlinepayments/sdk/domain/payment_output.rb +115 -94
- data/lib/onlinepayments/sdk/domain/payment_product.rb +117 -85
- data/lib/onlinepayments/sdk/domain/payment_product130_specific_input.rb +20 -18
- data/lib/onlinepayments/sdk/domain/payment_product130_specific_three_d_secure.rb +41 -28
- data/lib/onlinepayments/sdk/domain/payment_product3012.rb +27 -20
- data/lib/onlinepayments/sdk/domain/payment_product3012_specific_input.rb +51 -0
- data/lib/onlinepayments/sdk/domain/payment_product302_specific_data.rb +22 -20
- data/lib/onlinepayments/sdk/domain/payment_product3203_specific_output.rb +27 -24
- data/lib/onlinepayments/sdk/domain/payment_product3208_specific_input.rb +20 -16
- data/lib/onlinepayments/sdk/domain/payment_product3208_specific_output.rb +20 -16
- data/lib/onlinepayments/sdk/domain/payment_product3209_specific_input.rb +20 -16
- data/lib/onlinepayments/sdk/domain/payment_product3209_specific_output.rb +20 -16
- data/lib/onlinepayments/sdk/domain/payment_product320_specific_data.rb +29 -24
- data/lib/onlinepayments/sdk/domain/payment_product5001_specific_output.rb +48 -16
- data/lib/onlinepayments/sdk/domain/payment_product5100_specific_input.rb +20 -16
- data/lib/onlinepayments/sdk/domain/payment_product5402_specific_output.rb +20 -16
- data/lib/onlinepayments/sdk/domain/payment_product5404.rb +27 -20
- data/lib/onlinepayments/sdk/domain/payment_product5407.rb +27 -20
- data/lib/onlinepayments/sdk/domain/payment_product5500_specific_output.rb +41 -24
- data/lib/onlinepayments/sdk/domain/payment_product771_specific_output.rb +20 -16
- data/lib/onlinepayments/sdk/domain/payment_product840_customer_account.rb +72 -47
- data/lib/onlinepayments/sdk/domain/payment_product840_specific_output.rb +43 -38
- data/lib/onlinepayments/sdk/domain/payment_product_display_hints.rb +34 -24
- data/lib/onlinepayments/sdk/domain/payment_product_field.rb +41 -32
- data/lib/onlinepayments/sdk/domain/payment_product_field_data_restrictions.rb +27 -22
- data/lib/onlinepayments/sdk/domain/payment_product_field_display_element.rb +41 -28
- data/lib/onlinepayments/sdk/domain/payment_product_field_display_hints.rb +84 -56
- data/lib/onlinepayments/sdk/domain/payment_product_field_form_element.rb +30 -24
- data/lib/onlinepayments/sdk/domain/payment_product_field_tooltip.rb +28 -20
- data/lib/onlinepayments/sdk/domain/payment_product_field_validators.rb +83 -73
- data/lib/onlinepayments/sdk/domain/payment_product_filter.rb +32 -29
- data/lib/onlinepayments/sdk/domain/payment_product_filter_hosted_tokenization.rb +22 -20
- data/lib/onlinepayments/sdk/domain/payment_product_filters_hosted_checkout.rb +27 -24
- data/lib/onlinepayments/sdk/domain/payment_product_filters_hosted_tokenization.rb +27 -24
- data/lib/onlinepayments/sdk/domain/payment_product_group.rb +44 -37
- data/lib/onlinepayments/sdk/domain/payment_product_networks_response.rb +22 -20
- data/lib/onlinepayments/sdk/domain/payment_references.rb +27 -20
- data/lib/onlinepayments/sdk/domain/payment_response.rb +51 -41
- data/lib/onlinepayments/sdk/domain/payment_status_output.rb +66 -46
- data/lib/onlinepayments/sdk/domain/payout_error_response.rb +37 -31
- data/lib/onlinepayments/sdk/domain/payout_output.rb +27 -22
- data/lib/onlinepayments/sdk/domain/payout_response.rb +41 -32
- data/lib/onlinepayments/sdk/domain/payout_result.rb +41 -32
- data/lib/onlinepayments/sdk/domain/payout_status_output.rb +34 -24
- data/lib/onlinepayments/sdk/domain/personal_information.rb +34 -26
- data/lib/onlinepayments/sdk/domain/personal_information_token.rb +20 -18
- data/lib/onlinepayments/sdk/domain/personal_name.rb +34 -24
- data/lib/onlinepayments/sdk/domain/personal_name_token.rb +27 -20
- data/lib/onlinepayments/sdk/domain/product_directory.rb +22 -20
- data/lib/onlinepayments/sdk/domain/protection_eligibility.rb +27 -20
- data/lib/onlinepayments/sdk/domain/range_validator.rb +27 -20
- data/lib/onlinepayments/sdk/domain/rate_details.rb +51 -35
- data/lib/onlinepayments/sdk/domain/redirect_data.rb +27 -20
- data/lib/onlinepayments/sdk/domain/redirect_payment_method_specific_input.rb +139 -88
- data/lib/onlinepayments/sdk/domain/redirect_payment_method_specific_output.rb +95 -75
- data/lib/onlinepayments/sdk/domain/redirect_payment_product3203_specific_input.rb +20 -16
- data/lib/onlinepayments/sdk/domain/redirect_payment_product3302_specific_input.rb +44 -0
- data/lib/onlinepayments/sdk/domain/redirect_payment_product3306_specific_input.rb +20 -16
- data/lib/onlinepayments/sdk/domain/redirect_payment_product5001_specific_input.rb +20 -16
- data/lib/onlinepayments/sdk/domain/redirect_payment_product5300_specific_input.rb +74 -0
- data/lib/onlinepayments/sdk/domain/redirect_payment_product5406_specific_input.rb +20 -18
- data/lib/onlinepayments/sdk/domain/redirect_payment_product5408_specific_input.rb +27 -22
- data/lib/onlinepayments/sdk/domain/redirect_payment_product5410_specific_input.rb +32 -0
- data/lib/onlinepayments/sdk/domain/redirect_payment_product809_specific_input.rb +20 -16
- data/lib/onlinepayments/sdk/domain/redirect_payment_product840_specific_input.rb +41 -20
- data/lib/onlinepayments/sdk/domain/redirection_data.rb +20 -16
- data/lib/onlinepayments/sdk/domain/refund_card_method_specific_output.rb +34 -26
- data/lib/onlinepayments/sdk/domain/refund_e_wallet_method_specific_output.rb +34 -26
- data/lib/onlinepayments/sdk/domain/refund_error_response.rb +37 -31
- data/lib/onlinepayments/sdk/domain/refund_mobile_method_specific_output.rb +34 -24
- data/lib/onlinepayments/sdk/domain/refund_output.rb +89 -64
- data/lib/onlinepayments/sdk/domain/refund_payment_product840_customer_account.rb +34 -24
- data/lib/onlinepayments/sdk/domain/refund_payment_product840_specific_output.rb +20 -18
- data/lib/onlinepayments/sdk/domain/refund_redirect_method_specific_output.rb +27 -20
- data/lib/onlinepayments/sdk/domain/refund_request.rb +43 -24
- data/lib/onlinepayments/sdk/domain/refund_response.rb +41 -32
- data/lib/onlinepayments/sdk/domain/refunds_response.rb +22 -20
- data/lib/onlinepayments/sdk/domain/regular_expression_validator.rb +20 -16
- data/lib/onlinepayments/sdk/domain/send_test_request.rb +30 -0
- data/lib/onlinepayments/sdk/domain/sepa_direct_debit_payment_method_specific_input.rb +27 -22
- data/lib/onlinepayments/sdk/domain/sepa_direct_debit_payment_method_specific_input_base.rb +27 -22
- data/lib/onlinepayments/sdk/domain/sepa_direct_debit_payment_method_specific_output.rb +34 -28
- data/lib/onlinepayments/sdk/domain/sepa_direct_debit_payment_product771_specific_input.rb +27 -22
- data/lib/onlinepayments/sdk/domain/sepa_direct_debit_payment_product771_specific_input_base.rb +27 -22
- data/lib/onlinepayments/sdk/domain/session_request.rb +22 -20
- data/lib/onlinepayments/sdk/domain/session_response.rb +53 -39
- data/lib/onlinepayments/sdk/domain/shipping.rb +76 -52
- data/lib/onlinepayments/sdk/domain/shipping_method.rb +41 -28
- data/lib/onlinepayments/sdk/domain/shopping_cart.rb +62 -48
- data/lib/onlinepayments/sdk/domain/shopping_cart_extension.rb +51 -43
- data/lib/onlinepayments/sdk/domain/show_form_data.rb +35 -31
- data/lib/onlinepayments/sdk/domain/subsequent_card_payment_method_specific_input.rb +60 -39
- data/lib/onlinepayments/sdk/domain/subsequent_payment_product5001_specific_input.rb +20 -16
- data/lib/onlinepayments/sdk/domain/subsequent_payment_request.rb +35 -31
- data/lib/onlinepayments/sdk/domain/subsequent_payment_response.rb +20 -18
- data/lib/onlinepayments/sdk/domain/surcharge.rb +59 -48
- data/lib/onlinepayments/sdk/domain/surcharge_calculation_card.rb +27 -20
- data/lib/onlinepayments/sdk/domain/surcharge_for_payment_link.rb +20 -16
- data/lib/onlinepayments/sdk/domain/surcharge_rate.rb +41 -28
- data/lib/onlinepayments/sdk/domain/surcharge_specific_input.rb +27 -22
- data/lib/onlinepayments/sdk/domain/surcharge_specific_output.rb +34 -28
- data/lib/onlinepayments/sdk/domain/test_connection.rb +20 -16
- data/lib/onlinepayments/sdk/domain/three_d_secure.rb +98 -63
- data/lib/onlinepayments/sdk/domain/three_d_secure_base.rb +78 -52
- data/lib/onlinepayments/sdk/domain/three_d_secure_data.rb +34 -24
- data/lib/onlinepayments/sdk/domain/three_d_secure_results.rb +107 -67
- data/lib/onlinepayments/sdk/domain/token_card.rb +27 -22
- data/lib/onlinepayments/sdk/domain/token_card_data.rb +27 -18
- data/lib/onlinepayments/sdk/domain/token_card_specific_input.rb +20 -18
- data/lib/onlinepayments/sdk/domain/token_data.rb +27 -18
- data/lib/onlinepayments/sdk/domain/token_e_wallet.rb +28 -22
- data/lib/onlinepayments/sdk/domain/token_response.rb +58 -45
- data/lib/onlinepayments/sdk/domain/transaction.rb +20 -18
- data/lib/onlinepayments/sdk/domain/uploadable_file.rb +33 -0
- data/lib/onlinepayments/sdk/domain/validate_credentials_request.rb +37 -0
- data/lib/onlinepayments/sdk/domain/validate_credentials_response.rb +30 -0
- data/lib/onlinepayments/sdk/domain/value_mapping_element.rb +29 -24
- data/lib/onlinepayments/sdk/domain.rb +4 -0
- data/lib/onlinepayments/sdk/exception_factory.rb +76 -0
- data/lib/onlinepayments/sdk/factory.rb +163 -118
- data/lib/onlinepayments/sdk/idempotence_exception.rb +23 -19
- data/lib/onlinepayments/sdk/json/default_marshaller.rb +34 -0
- data/lib/onlinepayments/sdk/json/marshaller.rb +27 -0
- data/lib/onlinepayments/sdk/json/marshaller_syntax_exception.rb +9 -0
- data/lib/onlinepayments/sdk/json.rb +1 -0
- data/lib/onlinepayments/sdk/logging/communicator_logger.rb +18 -16
- data/lib/onlinepayments/sdk/logging/log_message_builder.rb +80 -47
- data/lib/onlinepayments/sdk/logging/logging_capable.rb +1 -1
- data/lib/onlinepayments/sdk/logging/obfuscation/body_obfuscator.rb +113 -0
- data/lib/onlinepayments/sdk/logging/obfuscation/header_obfuscator.rb +54 -0
- data/lib/onlinepayments/sdk/logging/obfuscation/obfuscation_capable.rb +21 -0
- data/lib/onlinepayments/sdk/logging/obfuscation/obfuscation_rule.rb +47 -0
- data/lib/onlinepayments/sdk/logging/obfuscation.rb +1 -0
- data/lib/onlinepayments/sdk/logging/request_log_message_builder.rb +40 -29
- data/lib/onlinepayments/sdk/logging/response_log_message_builder.rb +30 -23
- data/lib/onlinepayments/sdk/logging/ruby_communicator_logger.rb +49 -45
- data/lib/onlinepayments/sdk/logging/stdout_communicator_logger.rb +20 -23
- data/lib/onlinepayments/sdk/logging.rb +1 -10
- data/lib/onlinepayments/sdk/merchant/captures/captures_client.rb +57 -0
- data/lib/onlinepayments/sdk/merchant/captures.rb +4 -0
- data/lib/onlinepayments/sdk/merchant/complete/complete_client.rb +60 -0
- data/lib/onlinepayments/sdk/merchant/complete.rb +4 -0
- data/lib/onlinepayments/sdk/merchant/hostedcheckout/hosted_checkout_client.rb +72 -71
- data/lib/onlinepayments/sdk/merchant/hostedcheckout.rb +4 -0
- data/lib/onlinepayments/sdk/merchant/hostedtokenization/hosted_tokenization_client.rb +72 -71
- data/lib/onlinepayments/sdk/merchant/hostedtokenization.rb +4 -0
- data/lib/onlinepayments/sdk/merchant/mandates/mandates_client.rb +165 -164
- data/lib/onlinepayments/sdk/merchant/mandates.rb +4 -0
- data/lib/onlinepayments/sdk/merchant/merchant_client.rb +116 -64
- data/lib/onlinepayments/sdk/merchant/paymentlinks/payment_links_client.rb +102 -101
- data/lib/onlinepayments/sdk/merchant/paymentlinks.rb +4 -0
- data/lib/onlinepayments/sdk/merchant/payments/payments_client.rb +233 -332
- data/lib/onlinepayments/sdk/merchant/payments.rb +4 -0
- data/lib/onlinepayments/sdk/merchant/payouts/payouts_client.rb +73 -71
- data/lib/onlinepayments/sdk/merchant/payouts.rb +4 -0
- data/lib/onlinepayments/sdk/merchant/privacypolicy/get_privacy_policy_params.rb +32 -0
- data/lib/onlinepayments/sdk/merchant/privacypolicy/privacy_policy_client.rb +54 -0
- data/lib/onlinepayments/sdk/merchant/privacypolicy.rb +4 -0
- data/lib/onlinepayments/sdk/merchant/productgroups/get_product_group_params.rb +50 -47
- data/lib/onlinepayments/sdk/merchant/productgroups/get_product_groups_params.rb +50 -47
- data/lib/onlinepayments/sdk/merchant/productgroups/product_groups_client.rb +72 -72
- data/lib/onlinepayments/sdk/merchant/productgroups.rb +4 -0
- data/lib/onlinepayments/sdk/merchant/products/get_payment_product_networks_params.rb +27 -25
- data/lib/onlinepayments/sdk/merchant/products/get_payment_product_params.rb +50 -47
- data/lib/onlinepayments/sdk/merchant/products/get_payment_products_params.rb +50 -47
- data/lib/onlinepayments/sdk/merchant/products/get_product_directory_params.rb +21 -19
- data/lib/onlinepayments/sdk/merchant/products/products_client.rb +134 -136
- data/lib/onlinepayments/sdk/merchant/products.rb +4 -0
- data/lib/onlinepayments/sdk/merchant/refunds/refunds_client.rb +57 -0
- data/lib/onlinepayments/sdk/merchant/refunds.rb +4 -0
- data/lib/onlinepayments/sdk/merchant/services/services_client.rb +124 -155
- data/lib/onlinepayments/sdk/merchant/services.rb +4 -0
- data/lib/onlinepayments/sdk/merchant/sessions/sessions_client.rb +42 -41
- data/lib/onlinepayments/sdk/merchant/sessions.rb +4 -0
- data/lib/onlinepayments/sdk/merchant/tokens/tokens_client.rb +101 -100
- data/lib/onlinepayments/sdk/merchant/tokens.rb +4 -0
- data/lib/onlinepayments/sdk/merchant/webhooks/webhooks_client.rb +83 -0
- data/lib/onlinepayments/sdk/merchant/webhooks.rb +4 -0
- data/lib/onlinepayments/sdk/merchant.rb +4 -0
- data/lib/onlinepayments/sdk/platform_exception.rb +19 -0
- data/lib/onlinepayments/sdk/proxy_configuration.rb +60 -60
- data/lib/onlinepayments/sdk/reference_exception.rb +14 -9
- data/lib/onlinepayments/sdk/validation_exception.rb +14 -9
- data/lib/onlinepayments/sdk/webhooks/api_version_mismatch_exception.rb +17 -15
- data/lib/onlinepayments/sdk/webhooks/in_memory_secret_key_store.rb +46 -43
- data/lib/onlinepayments/sdk/webhooks/secret_key_not_available_exception.rb +16 -12
- data/lib/onlinepayments/sdk/webhooks/secret_key_store.rb +13 -11
- data/lib/onlinepayments/sdk/webhooks/signature_validation_exception.rb +15 -14
- data/lib/onlinepayments/sdk/webhooks/signature_validator.rb +81 -0
- data/lib/onlinepayments/sdk/webhooks/webhooks_event.rb +84 -53
- data/lib/onlinepayments/sdk/webhooks/webhooks_helper.rb +28 -90
- data/lib/onlinepayments/sdk/webhooks.rb +1 -11
- data/lib/onlinepayments/sdk.rb +4 -26
- data/onlinepayments-sdk-ruby.gemspec +3 -2
- metadata +89 -35
- data/lib/onlinepayments/sdk/authenticator.rb +0 -16
- data/lib/onlinepayments/sdk/communication_exception.rb +0 -16
- data/lib/onlinepayments/sdk/connection.rb +0 -41
- data/lib/onlinepayments/sdk/data_object.rb +0 -31
- data/lib/onlinepayments/sdk/defaultimpl/authorization_type.rb +0 -24
- data/lib/onlinepayments/sdk/defaultimpl/default_authenticator.rb +0 -108
- data/lib/onlinepayments/sdk/defaultimpl/default_connection.rb +0 -365
- data/lib/onlinepayments/sdk/defaultimpl/default_marshaller.rb +0 -32
- data/lib/onlinepayments/sdk/defaultimpl.rb +0 -6
- data/lib/onlinepayments/sdk/endpoint_configuration.rb +0 -127
- data/lib/onlinepayments/sdk/exceptions.rb +0 -8
- data/lib/onlinepayments/sdk/logging/logging_util.rb +0 -286
- data/lib/onlinepayments/sdk/marshaller.rb +0 -24
- data/lib/onlinepayments/sdk/marshaller_syntax_exception.rb +0 -6
- data/lib/onlinepayments/sdk/merchant/services/get_privacy_policy_params.rb +0 -30
- data/lib/onlinepayments/sdk/meta_data_provider.rb +0 -150
- data/lib/onlinepayments/sdk/modules.rb +0 -62
- data/lib/onlinepayments/sdk/multipart_form_data_object.rb +0 -44
- data/lib/onlinepayments/sdk/multipart_form_data_request.rb +0 -9
- data/lib/onlinepayments/sdk/not_found_exception.rb +0 -16
- data/lib/onlinepayments/sdk/param_request.rb +0 -11
- data/lib/onlinepayments/sdk/payment_platform_exception.rb +0 -15
- data/lib/onlinepayments/sdk/pooled_connection.rb +0 -21
- data/lib/onlinepayments/sdk/request_header.rb +0 -50
- data/lib/onlinepayments/sdk/request_param.rb +0 -23
- data/lib/onlinepayments/sdk/response_exception.rb +0 -47
- data/lib/onlinepayments/sdk/response_header.rb +0 -42
- data/lib/onlinepayments/sdk/uploadable_file.rb +0 -30
- data/lib/onlinepayments/sdk/webhooks/webhooks.rb +0 -22
- data/lib/onlinepayments/sdk/webhooks/webhooks_helper_builder.rb +0 -25
@@ -1,101 +1,133 @@
|
|
1
1
|
#
|
2
|
-
# This
|
2
|
+
# This file was automatically generated.
|
3
3
|
#
|
4
|
-
require 'onlinepayments/sdk/data_object'
|
5
4
|
require 'onlinepayments/sdk/domain/account_on_file'
|
5
|
+
require 'onlinepayments/sdk/domain/data_object'
|
6
6
|
require 'onlinepayments/sdk/domain/payment_product302_specific_data'
|
7
7
|
require 'onlinepayments/sdk/domain/payment_product320_specific_data'
|
8
8
|
require 'onlinepayments/sdk/domain/payment_product_display_hints'
|
9
9
|
require 'onlinepayments/sdk/domain/payment_product_field'
|
10
10
|
|
11
|
-
module OnlinePayments
|
12
|
-
module
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
attr_accessor :allows_recurring
|
29
|
-
attr_accessor :allows_tokenization
|
30
|
-
attr_accessor :display_hints
|
31
|
-
attr_accessor :display_hints_list
|
32
|
-
attr_accessor :fields
|
33
|
-
attr_accessor :id
|
34
|
-
attr_accessor :payment_method
|
35
|
-
attr_accessor :payment_product302_specific_data
|
36
|
-
attr_accessor :payment_product320_specific_data
|
37
|
-
attr_accessor :payment_product_group
|
38
|
-
attr_accessor :uses_redirection_to3rd_party
|
39
|
-
|
40
|
-
# @return (Hash)
|
41
|
-
def to_h
|
42
|
-
hash = super
|
43
|
-
hash['accountsOnFile'] = @accounts_on_file.collect(&:to_h) if @accounts_on_file
|
44
|
-
hash['allowsRecurring'] = @allows_recurring unless @allows_recurring.nil?
|
45
|
-
hash['allowsTokenization'] = @allows_tokenization unless @allows_tokenization.nil?
|
46
|
-
hash['displayHints'] = @display_hints.to_h if @display_hints
|
47
|
-
hash['displayHintsList'] = @display_hints_list.collect(&:to_h) if @display_hints_list
|
48
|
-
hash['fields'] = @fields.collect(&:to_h) if @fields
|
49
|
-
hash['id'] = @id unless @id.nil?
|
50
|
-
hash['paymentMethod'] = @payment_method unless @payment_method.nil?
|
51
|
-
hash['paymentProduct302SpecificData'] = @payment_product302_specific_data.to_h if @payment_product302_specific_data
|
52
|
-
hash['paymentProduct320SpecificData'] = @payment_product320_specific_data.to_h if @payment_product320_specific_data
|
53
|
-
hash['paymentProductGroup'] = @payment_product_group unless @payment_product_group.nil?
|
54
|
-
hash['usesRedirectionTo3rdParty'] = @uses_redirection_to3rd_party unless @uses_redirection_to3rd_party.nil?
|
55
|
-
hash
|
56
|
-
end
|
11
|
+
module OnlinePayments
|
12
|
+
module SDK
|
13
|
+
module Domain
|
14
|
+
# @attr [Array<OnlinePayments::SDK::Domain::AccountOnFile>] accounts_on_file
|
15
|
+
# @attr [true/false] allows_authentication
|
16
|
+
# @attr [true/false] allows_recurring
|
17
|
+
# @attr [true/false] allows_tokenization
|
18
|
+
# @attr [OnlinePayments::SDK::Domain::PaymentProductDisplayHints] display_hints
|
19
|
+
# @attr [Array<OnlinePayments::SDK::Domain::PaymentProductDisplayHints>] display_hints_list
|
20
|
+
# @attr [Array<OnlinePayments::SDK::Domain::PaymentProductField>] fields
|
21
|
+
# @attr [Integer] id
|
22
|
+
# @attr [String] payment_method
|
23
|
+
# @attr [OnlinePayments::SDK::Domain::PaymentProduct302SpecificData] payment_product302_specific_data
|
24
|
+
# @attr [OnlinePayments::SDK::Domain::PaymentProduct320SpecificData] payment_product320_specific_data
|
25
|
+
# @attr [String] payment_product_group
|
26
|
+
# @attr [true/false] uses_redirection_to3rd_party
|
27
|
+
class PaymentProduct < OnlinePayments::SDK::Domain::DataObject
|
57
28
|
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
29
|
+
attr_accessor :accounts_on_file
|
30
|
+
|
31
|
+
attr_accessor :allows_authentication
|
32
|
+
|
33
|
+
attr_accessor :allows_recurring
|
34
|
+
|
35
|
+
attr_accessor :allows_tokenization
|
36
|
+
|
37
|
+
attr_accessor :display_hints
|
38
|
+
|
39
|
+
attr_accessor :display_hints_list
|
40
|
+
|
41
|
+
attr_accessor :fields
|
42
|
+
|
43
|
+
attr_accessor :id
|
44
|
+
|
45
|
+
attr_accessor :payment_method
|
46
|
+
|
47
|
+
attr_accessor :payment_product302_specific_data
|
48
|
+
|
49
|
+
attr_accessor :payment_product320_specific_data
|
50
|
+
|
51
|
+
attr_accessor :payment_product_group
|
52
|
+
|
53
|
+
attr_accessor :uses_redirection_to3rd_party
|
54
|
+
|
55
|
+
# @return (Hash)
|
56
|
+
def to_h
|
57
|
+
hash = super
|
58
|
+
hash['accountsOnFile'] = @accounts_on_file.collect{|val| val.to_h} unless @accounts_on_file.nil?
|
59
|
+
hash['allowsAuthentication'] = @allows_authentication unless @allows_authentication.nil?
|
60
|
+
hash['allowsRecurring'] = @allows_recurring unless @allows_recurring.nil?
|
61
|
+
hash['allowsTokenization'] = @allows_tokenization unless @allows_tokenization.nil?
|
62
|
+
hash['displayHints'] = @display_hints.to_h unless @display_hints.nil?
|
63
|
+
hash['displayHintsList'] = @display_hints_list.collect{|val| val.to_h} unless @display_hints_list.nil?
|
64
|
+
hash['fields'] = @fields.collect{|val| val.to_h} unless @fields.nil?
|
65
|
+
hash['id'] = @id unless @id.nil?
|
66
|
+
hash['paymentMethod'] = @payment_method unless @payment_method.nil?
|
67
|
+
hash['paymentProduct302SpecificData'] = @payment_product302_specific_data.to_h unless @payment_product302_specific_data.nil?
|
68
|
+
hash['paymentProduct320SpecificData'] = @payment_product320_specific_data.to_h unless @payment_product320_specific_data.nil?
|
69
|
+
hash['paymentProductGroup'] = @payment_product_group unless @payment_product_group.nil?
|
70
|
+
hash['usesRedirectionTo3rdParty'] = @uses_redirection_to3rd_party unless @uses_redirection_to3rd_party.nil?
|
71
|
+
hash
|
72
72
|
end
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
hash
|
77
|
-
|
73
|
+
|
74
|
+
def from_hash(hash)
|
75
|
+
super
|
76
|
+
if hash.has_key? 'accountsOnFile'
|
77
|
+
raise TypeError, "value '%s' is not an Array" % [hash['accountsOnFile']] unless hash['accountsOnFile'].is_a? Array
|
78
|
+
@accounts_on_file = []
|
79
|
+
hash['accountsOnFile'].each do |e|
|
80
|
+
@accounts_on_file << OnlinePayments::SDK::Domain::AccountOnFile.new_from_hash(e)
|
81
|
+
end
|
78
82
|
end
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
83
|
+
if hash.has_key? 'allowsAuthentication'
|
84
|
+
@allows_authentication = hash['allowsAuthentication']
|
85
|
+
end
|
86
|
+
if hash.has_key? 'allowsRecurring'
|
87
|
+
@allows_recurring = hash['allowsRecurring']
|
88
|
+
end
|
89
|
+
if hash.has_key? 'allowsTokenization'
|
90
|
+
@allows_tokenization = hash['allowsTokenization']
|
91
|
+
end
|
92
|
+
if hash.has_key? 'displayHints'
|
93
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['displayHints']] unless hash['displayHints'].is_a? Hash
|
94
|
+
@display_hints = OnlinePayments::SDK::Domain::PaymentProductDisplayHints.new_from_hash(hash['displayHints'])
|
95
|
+
end
|
96
|
+
if hash.has_key? 'displayHintsList'
|
97
|
+
raise TypeError, "value '%s' is not an Array" % [hash['displayHintsList']] unless hash['displayHintsList'].is_a? Array
|
98
|
+
@display_hints_list = []
|
99
|
+
hash['displayHintsList'].each do |e|
|
100
|
+
@display_hints_list << OnlinePayments::SDK::Domain::PaymentProductDisplayHints.new_from_hash(e)
|
101
|
+
end
|
102
|
+
end
|
103
|
+
if hash.has_key? 'fields'
|
104
|
+
raise TypeError, "value '%s' is not an Array" % [hash['fields']] unless hash['fields'].is_a? Array
|
105
|
+
@fields = []
|
106
|
+
hash['fields'].each do |e|
|
107
|
+
@fields << OnlinePayments::SDK::Domain::PaymentProductField.new_from_hash(e)
|
108
|
+
end
|
109
|
+
end
|
110
|
+
if hash.has_key? 'id'
|
111
|
+
@id = hash['id']
|
112
|
+
end
|
113
|
+
if hash.has_key? 'paymentMethod'
|
114
|
+
@payment_method = hash['paymentMethod']
|
115
|
+
end
|
116
|
+
if hash.has_key? 'paymentProduct302SpecificData'
|
117
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct302SpecificData']] unless hash['paymentProduct302SpecificData'].is_a? Hash
|
118
|
+
@payment_product302_specific_data = OnlinePayments::SDK::Domain::PaymentProduct302SpecificData.new_from_hash(hash['paymentProduct302SpecificData'])
|
119
|
+
end
|
120
|
+
if hash.has_key? 'paymentProduct320SpecificData'
|
121
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct320SpecificData']] unless hash['paymentProduct320SpecificData'].is_a? Hash
|
122
|
+
@payment_product320_specific_data = OnlinePayments::SDK::Domain::PaymentProduct320SpecificData.new_from_hash(hash['paymentProduct320SpecificData'])
|
123
|
+
end
|
124
|
+
if hash.has_key? 'paymentProductGroup'
|
125
|
+
@payment_product_group = hash['paymentProductGroup']
|
126
|
+
end
|
127
|
+
if hash.has_key? 'usesRedirectionTo3rdParty'
|
128
|
+
@uses_redirection_to3rd_party = hash['usesRedirectionTo3rdParty']
|
85
129
|
end
|
86
130
|
end
|
87
|
-
@id = hash['id'] if hash.key? 'id'
|
88
|
-
@payment_method = hash['paymentMethod'] if hash.key? 'paymentMethod'
|
89
|
-
if hash.key? 'paymentProduct302SpecificData'
|
90
|
-
raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct302SpecificData']] unless hash['paymentProduct302SpecificData'].is_a? Hash
|
91
|
-
@payment_product302_specific_data = OnlinePayments::SDK::Domain::PaymentProduct302SpecificData.new_from_hash(hash['paymentProduct302SpecificData'])
|
92
|
-
end
|
93
|
-
if hash.key? 'paymentProduct320SpecificData'
|
94
|
-
raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct320SpecificData']] unless hash['paymentProduct320SpecificData'].is_a? Hash
|
95
|
-
@payment_product320_specific_data = OnlinePayments::SDK::Domain::PaymentProduct320SpecificData.new_from_hash(hash['paymentProduct320SpecificData'])
|
96
|
-
end
|
97
|
-
@payment_product_group = hash['paymentProductGroup'] if hash.key? 'paymentProductGroup'
|
98
|
-
@uses_redirection_to3rd_party = hash['usesRedirectionTo3rdParty'] if hash.key? 'usesRedirectionTo3rdParty'
|
99
131
|
end
|
100
132
|
end
|
101
133
|
end
|
@@ -1,28 +1,30 @@
|
|
1
1
|
#
|
2
|
-
# This
|
2
|
+
# This file was automatically generated.
|
3
3
|
#
|
4
|
-
require 'onlinepayments/sdk/data_object'
|
4
|
+
require 'onlinepayments/sdk/domain/data_object'
|
5
5
|
require 'onlinepayments/sdk/domain/payment_product130_specific_three_d_secure'
|
6
6
|
|
7
|
-
module OnlinePayments
|
8
|
-
module
|
7
|
+
module OnlinePayments
|
8
|
+
module SDK
|
9
|
+
module Domain
|
10
|
+
# @attr [OnlinePayments::SDK::Domain::PaymentProduct130SpecificThreeDSecure] three_d_secure
|
11
|
+
class PaymentProduct130SpecificInput < OnlinePayments::SDK::Domain::DataObject
|
9
12
|
|
10
|
-
|
11
|
-
class PaymentProduct130SpecificInput < OnlinePayments::SDK::DataObject
|
12
|
-
attr_accessor :three_d_secure
|
13
|
+
attr_accessor :three_d_secure
|
13
14
|
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
15
|
+
# @return (Hash)
|
16
|
+
def to_h
|
17
|
+
hash = super
|
18
|
+
hash['threeDSecure'] = @three_d_secure.to_h unless @three_d_secure.nil?
|
19
|
+
hash
|
20
|
+
end
|
20
21
|
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
22
|
+
def from_hash(hash)
|
23
|
+
super
|
24
|
+
if hash.has_key? 'threeDSecure'
|
25
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['threeDSecure']] unless hash['threeDSecure'].is_a? Hash
|
26
|
+
@three_d_secure = OnlinePayments::SDK::Domain::PaymentProduct130SpecificThreeDSecure.new_from_hash(hash['threeDSecure'])
|
27
|
+
end
|
26
28
|
end
|
27
29
|
end
|
28
30
|
end
|
@@ -1,37 +1,50 @@
|
|
1
1
|
#
|
2
|
-
# This
|
2
|
+
# This file was automatically generated.
|
3
3
|
#
|
4
|
-
require 'onlinepayments/sdk/data_object'
|
4
|
+
require 'onlinepayments/sdk/domain/data_object'
|
5
5
|
|
6
|
-
module OnlinePayments
|
7
|
-
module
|
6
|
+
module OnlinePayments
|
7
|
+
module SDK
|
8
|
+
module Domain
|
9
|
+
# @attr [true/false] acquirer_exemption
|
10
|
+
# @attr [String] merchant_score
|
11
|
+
# @attr [Integer] number_of_items
|
12
|
+
# @attr [String] usecase
|
13
|
+
class PaymentProduct130SpecificThreeDSecure < OnlinePayments::SDK::Domain::DataObject
|
8
14
|
|
9
|
-
|
10
|
-
# @attr [String] merchant_score
|
11
|
-
# @attr [Integer] number_of_items
|
12
|
-
# @attr [String] usecase
|
13
|
-
class PaymentProduct130SpecificThreeDSecure < OnlinePayments::SDK::DataObject
|
14
|
-
attr_accessor :acquirer_exemption
|
15
|
-
attr_accessor :merchant_score
|
16
|
-
attr_accessor :number_of_items
|
17
|
-
attr_accessor :usecase
|
15
|
+
attr_accessor :acquirer_exemption
|
18
16
|
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
17
|
+
attr_accessor :merchant_score
|
18
|
+
|
19
|
+
attr_accessor :number_of_items
|
20
|
+
|
21
|
+
attr_accessor :usecase
|
22
|
+
|
23
|
+
# @return (Hash)
|
24
|
+
def to_h
|
25
|
+
hash = super
|
26
|
+
hash['acquirerExemption'] = @acquirer_exemption unless @acquirer_exemption.nil?
|
27
|
+
hash['merchantScore'] = @merchant_score unless @merchant_score.nil?
|
28
|
+
hash['numberOfItems'] = @number_of_items unless @number_of_items.nil?
|
29
|
+
hash['usecase'] = @usecase unless @usecase.nil?
|
30
|
+
hash
|
31
|
+
end
|
28
32
|
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
33
|
+
def from_hash(hash)
|
34
|
+
super
|
35
|
+
if hash.has_key? 'acquirerExemption'
|
36
|
+
@acquirer_exemption = hash['acquirerExemption']
|
37
|
+
end
|
38
|
+
if hash.has_key? 'merchantScore'
|
39
|
+
@merchant_score = hash['merchantScore']
|
40
|
+
end
|
41
|
+
if hash.has_key? 'numberOfItems'
|
42
|
+
@number_of_items = hash['numberOfItems']
|
43
|
+
end
|
44
|
+
if hash.has_key? 'usecase'
|
45
|
+
@usecase = hash['usecase']
|
46
|
+
end
|
47
|
+
end
|
35
48
|
end
|
36
49
|
end
|
37
50
|
end
|
@@ -1,29 +1,36 @@
|
|
1
1
|
#
|
2
|
-
# This
|
2
|
+
# This file was automatically generated.
|
3
3
|
#
|
4
|
-
require 'onlinepayments/sdk/data_object'
|
4
|
+
require 'onlinepayments/sdk/domain/data_object'
|
5
5
|
|
6
|
-
module OnlinePayments
|
7
|
-
module
|
6
|
+
module OnlinePayments
|
7
|
+
module SDK
|
8
|
+
module Domain
|
9
|
+
# @attr [String] qr_code
|
10
|
+
# @attr [String] url_intent
|
11
|
+
class PaymentProduct3012 < OnlinePayments::SDK::Domain::DataObject
|
8
12
|
|
9
|
-
|
10
|
-
# @attr [String] url_intent
|
11
|
-
class PaymentProduct3012 < OnlinePayments::SDK::DataObject
|
12
|
-
attr_accessor :qr_code
|
13
|
-
attr_accessor :url_intent
|
13
|
+
attr_accessor :qr_code
|
14
14
|
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
15
|
+
attr_accessor :url_intent
|
16
|
+
|
17
|
+
# @return (Hash)
|
18
|
+
def to_h
|
19
|
+
hash = super
|
20
|
+
hash['qrCode'] = @qr_code unless @qr_code.nil?
|
21
|
+
hash['urlIntent'] = @url_intent unless @url_intent.nil?
|
22
|
+
hash
|
23
|
+
end
|
22
24
|
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
25
|
+
def from_hash(hash)
|
26
|
+
super
|
27
|
+
if hash.has_key? 'qrCode'
|
28
|
+
@qr_code = hash['qrCode']
|
29
|
+
end
|
30
|
+
if hash.has_key? 'urlIntent'
|
31
|
+
@url_intent = hash['urlIntent']
|
32
|
+
end
|
33
|
+
end
|
27
34
|
end
|
28
35
|
end
|
29
36
|
end
|
@@ -0,0 +1,51 @@
|
|
1
|
+
#
|
2
|
+
# This file was automatically generated.
|
3
|
+
#
|
4
|
+
require 'onlinepayments/sdk/domain/data_object'
|
5
|
+
|
6
|
+
module OnlinePayments
|
7
|
+
module SDK
|
8
|
+
module Domain
|
9
|
+
# @attr [true/false] force_authentication
|
10
|
+
# @attr [true/false] is_deferred_payment
|
11
|
+
# @attr [true/false] is_wip_transaction
|
12
|
+
# @attr [String] wip_merchant_authentication_method
|
13
|
+
class PaymentProduct3012SpecificInput < OnlinePayments::SDK::Domain::DataObject
|
14
|
+
|
15
|
+
attr_accessor :force_authentication
|
16
|
+
|
17
|
+
attr_accessor :is_deferred_payment
|
18
|
+
|
19
|
+
attr_accessor :is_wip_transaction
|
20
|
+
|
21
|
+
attr_accessor :wip_merchant_authentication_method
|
22
|
+
|
23
|
+
# @return (Hash)
|
24
|
+
def to_h
|
25
|
+
hash = super
|
26
|
+
hash['forceAuthentication'] = @force_authentication unless @force_authentication.nil?
|
27
|
+
hash['isDeferredPayment'] = @is_deferred_payment unless @is_deferred_payment.nil?
|
28
|
+
hash['isWipTransaction'] = @is_wip_transaction unless @is_wip_transaction.nil?
|
29
|
+
hash['wipMerchantAuthenticationMethod'] = @wip_merchant_authentication_method unless @wip_merchant_authentication_method.nil?
|
30
|
+
hash
|
31
|
+
end
|
32
|
+
|
33
|
+
def from_hash(hash)
|
34
|
+
super
|
35
|
+
if hash.has_key? 'forceAuthentication'
|
36
|
+
@force_authentication = hash['forceAuthentication']
|
37
|
+
end
|
38
|
+
if hash.has_key? 'isDeferredPayment'
|
39
|
+
@is_deferred_payment = hash['isDeferredPayment']
|
40
|
+
end
|
41
|
+
if hash.has_key? 'isWipTransaction'
|
42
|
+
@is_wip_transaction = hash['isWipTransaction']
|
43
|
+
end
|
44
|
+
if hash.has_key? 'wipMerchantAuthenticationMethod'
|
45
|
+
@wip_merchant_authentication_method = hash['wipMerchantAuthenticationMethod']
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
@@ -1,29 +1,31 @@
|
|
1
1
|
#
|
2
|
-
# This
|
2
|
+
# This file was automatically generated.
|
3
3
|
#
|
4
|
-
require 'onlinepayments/sdk/data_object'
|
4
|
+
require 'onlinepayments/sdk/domain/data_object'
|
5
5
|
|
6
|
-
module OnlinePayments
|
7
|
-
module
|
6
|
+
module OnlinePayments
|
7
|
+
module SDK
|
8
|
+
module Domain
|
9
|
+
# @attr [Array<String>] networks
|
10
|
+
class PaymentProduct302SpecificData < OnlinePayments::SDK::Domain::DataObject
|
8
11
|
|
9
|
-
|
10
|
-
class PaymentProduct302SpecificData < OnlinePayments::SDK::DataObject
|
11
|
-
attr_accessor :networks
|
12
|
+
attr_accessor :networks
|
12
13
|
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
14
|
+
# @return (Hash)
|
15
|
+
def to_h
|
16
|
+
hash = super
|
17
|
+
hash['networks'] = @networks unless @networks.nil?
|
18
|
+
hash
|
19
|
+
end
|
19
20
|
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
21
|
+
def from_hash(hash)
|
22
|
+
super
|
23
|
+
if hash.has_key? 'networks'
|
24
|
+
raise TypeError, "value '%s' is not an Array" % [hash['networks']] unless hash['networks'].is_a? Array
|
25
|
+
@networks = []
|
26
|
+
hash['networks'].each do |e|
|
27
|
+
@networks << e
|
28
|
+
end
|
27
29
|
end
|
28
30
|
end
|
29
31
|
end
|
@@ -1,35 +1,38 @@
|
|
1
1
|
#
|
2
|
-
# This
|
2
|
+
# This file was automatically generated.
|
3
3
|
#
|
4
|
-
require 'onlinepayments/sdk/data_object'
|
5
4
|
require 'onlinepayments/sdk/domain/address_personal'
|
5
|
+
require 'onlinepayments/sdk/domain/data_object'
|
6
6
|
|
7
|
-
module OnlinePayments
|
8
|
-
module
|
7
|
+
module OnlinePayments
|
8
|
+
module SDK
|
9
|
+
module Domain
|
10
|
+
# @attr [OnlinePayments::SDK::Domain::AddressPersonal] billing_address
|
11
|
+
# @attr [OnlinePayments::SDK::Domain::AddressPersonal] shipping_address
|
12
|
+
class PaymentProduct3203SpecificOutput < OnlinePayments::SDK::Domain::DataObject
|
9
13
|
|
10
|
-
|
11
|
-
# @attr [OnlinePayments::SDK::Domain::AddressPersonal] shipping_address
|
12
|
-
class PaymentProduct3203SpecificOutput < OnlinePayments::SDK::DataObject
|
13
|
-
attr_accessor :billing_address
|
14
|
-
attr_accessor :shipping_address
|
14
|
+
attr_accessor :billing_address
|
15
15
|
|
16
|
-
|
17
|
-
def to_h
|
18
|
-
hash = super
|
19
|
-
hash['billingAddress'] = @billing_address.to_h if @billing_address
|
20
|
-
hash['shippingAddress'] = @shipping_address.to_h if @shipping_address
|
21
|
-
hash
|
22
|
-
end
|
16
|
+
attr_accessor :shipping_address
|
23
17
|
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
18
|
+
# @return (Hash)
|
19
|
+
def to_h
|
20
|
+
hash = super
|
21
|
+
hash['billingAddress'] = @billing_address.to_h unless @billing_address.nil?
|
22
|
+
hash['shippingAddress'] = @shipping_address.to_h unless @shipping_address.nil?
|
23
|
+
hash
|
29
24
|
end
|
30
|
-
|
31
|
-
|
32
|
-
|
25
|
+
|
26
|
+
def from_hash(hash)
|
27
|
+
super
|
28
|
+
if hash.has_key? 'billingAddress'
|
29
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['billingAddress']] unless hash['billingAddress'].is_a? Hash
|
30
|
+
@billing_address = OnlinePayments::SDK::Domain::AddressPersonal.new_from_hash(hash['billingAddress'])
|
31
|
+
end
|
32
|
+
if hash.has_key? 'shippingAddress'
|
33
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['shippingAddress']] unless hash['shippingAddress'].is_a? Hash
|
34
|
+
@shipping_address = OnlinePayments::SDK::Domain::AddressPersonal.new_from_hash(hash['shippingAddress'])
|
35
|
+
end
|
33
36
|
end
|
34
37
|
end
|
35
38
|
end
|
@@ -1,25 +1,29 @@
|
|
1
1
|
#
|
2
|
-
# This
|
2
|
+
# This file was automatically generated.
|
3
3
|
#
|
4
|
-
require 'onlinepayments/sdk/data_object'
|
4
|
+
require 'onlinepayments/sdk/domain/data_object'
|
5
5
|
|
6
|
-
module OnlinePayments
|
7
|
-
module
|
6
|
+
module OnlinePayments
|
7
|
+
module SDK
|
8
|
+
module Domain
|
9
|
+
# @attr [String] merchant_finance_code
|
10
|
+
class PaymentProduct3208SpecificInput < OnlinePayments::SDK::Domain::DataObject
|
8
11
|
|
9
|
-
|
10
|
-
class PaymentProduct3208SpecificInput < OnlinePayments::SDK::DataObject
|
11
|
-
attr_accessor :merchant_finance_code
|
12
|
+
attr_accessor :merchant_finance_code
|
12
13
|
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
14
|
+
# @return (Hash)
|
15
|
+
def to_h
|
16
|
+
hash = super
|
17
|
+
hash['merchantFinanceCode'] = @merchant_finance_code unless @merchant_finance_code.nil?
|
18
|
+
hash
|
19
|
+
end
|
19
20
|
|
20
|
-
|
21
|
-
|
22
|
-
|
21
|
+
def from_hash(hash)
|
22
|
+
super
|
23
|
+
if hash.has_key? 'merchantFinanceCode'
|
24
|
+
@merchant_finance_code = hash['merchantFinanceCode']
|
25
|
+
end
|
26
|
+
end
|
23
27
|
end
|
24
28
|
end
|
25
29
|
end
|