onlinepayments-sdk-ruby 11.0.0 → 12.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/AGENTS.md +25 -0
- data/README.md +152 -44
- data/Rakefile +8 -0
- data/lib/onlinepayments/sdk/api_exception.rb +5 -2
- data/lib/onlinepayments/sdk/api_resource.rb +19 -12
- data/lib/onlinepayments/sdk/authentication/authenticator.rb +2 -1
- data/lib/onlinepayments/sdk/authentication/authorization_type.rb +3 -1
- data/lib/onlinepayments/sdk/authentication/v1hmac_authenticator.rb +23 -19
- data/lib/onlinepayments/sdk/authentication.rb +2 -0
- data/lib/onlinepayments/sdk/authorization_exception.rb +2 -0
- data/lib/onlinepayments/sdk/call_context.rb +3 -7
- data/lib/onlinepayments/sdk/client.rb +4 -1
- data/lib/onlinepayments/sdk/communication/communication_exception.rb +2 -1
- data/lib/onlinepayments/sdk/communication/connection.rb +2 -0
- data/lib/onlinepayments/sdk/communication/default_connection.rb +187 -206
- data/lib/onlinepayments/sdk/communication/metadata_provider.rb +37 -47
- data/lib/onlinepayments/sdk/communication/multipart_form_data_object.rb +8 -17
- data/lib/onlinepayments/sdk/communication/multipart_form_data_request.rb +2 -0
- data/lib/onlinepayments/sdk/communication/not_found_exception.rb +2 -1
- data/lib/onlinepayments/sdk/communication/param_request.rb +2 -0
- data/lib/onlinepayments/sdk/communication/pooled_connection.rb +5 -5
- data/lib/onlinepayments/sdk/communication/request_header.rb +11 -15
- data/lib/onlinepayments/sdk/communication/request_param.rb +5 -6
- data/lib/onlinepayments/sdk/communication/response_exception.rb +7 -11
- data/lib/onlinepayments/sdk/communication/response_header.rb +17 -24
- data/lib/onlinepayments/sdk/communication.rb +2 -0
- data/lib/onlinepayments/sdk/communicator.rb +100 -175
- data/lib/onlinepayments/sdk/communicator_configuration.rb +71 -53
- data/lib/onlinepayments/sdk/declined_payment_exception.rb +2 -0
- data/lib/onlinepayments/sdk/declined_payout_exception.rb +2 -0
- data/lib/onlinepayments/sdk/declined_refund_exception.rb +2 -0
- data/lib/onlinepayments/sdk/declined_transaction_exception.rb +2 -0
- data/lib/onlinepayments/sdk/domain/acceptance.rb +13 -3
- data/lib/onlinepayments/sdk/domain/account_on_file.rb +17 -6
- data/lib/onlinepayments/sdk/domain/account_on_file_attribute.rb +15 -4
- data/lib/onlinepayments/sdk/domain/account_on_file_display_hints.rb +12 -3
- data/lib/onlinepayments/sdk/domain/acquirer_information.rb +12 -3
- data/lib/onlinepayments/sdk/domain/acquirer_selection_information.rb +13 -3
- data/lib/onlinepayments/sdk/domain/add_authorization_details_response.rb +10 -2
- data/lib/onlinepayments/sdk/domain/additional_order_input.rb +19 -8
- data/lib/onlinepayments/sdk/domain/address.rb +21 -7
- data/lib/onlinepayments/sdk/domain/address_personal.rb +26 -10
- data/lib/onlinepayments/sdk/domain/airline_data.rb +83 -27
- data/lib/onlinepayments/sdk/domain/airline_flight_leg.rb +69 -21
- data/lib/onlinepayments/sdk/domain/airline_passenger.rb +30 -8
- data/lib/onlinepayments/sdk/domain/amex.rb +15 -5
- data/lib/onlinepayments/sdk/domain/amount_breakdown.rb +11 -2
- data/lib/onlinepayments/sdk/domain/amount_of_money.rb +11 -2
- data/lib/onlinepayments/sdk/domain/api_error.rb +23 -8
- data/lib/onlinepayments/sdk/domain/api_parameters.rb +22 -10
- data/lib/onlinepayments/sdk/domain/apple_pay_line_item.rb +27 -7
- data/lib/onlinepayments/sdk/domain/apple_pay_recurring_payment_request.rb +19 -7
- data/lib/onlinepayments/sdk/domain/authentication_options.rb +15 -4
- data/lib/onlinepayments/sdk/domain/auto_capture.rb +9 -1
- data/lib/onlinepayments/sdk/domain/bank_account_iban.rb +9 -1
- data/lib/onlinepayments/sdk/domain/batch_metadata.rb +13 -3
- data/lib/onlinepayments/sdk/domain/browser_data.rb +17 -5
- data/lib/onlinepayments/sdk/domain/calculate_surcharge_request.rb +13 -4
- data/lib/onlinepayments/sdk/domain/calculate_surcharge_response.rb +10 -2
- data/lib/onlinepayments/sdk/domain/cancel_payment_batch_request.rb +12 -3
- data/lib/onlinepayments/sdk/domain/cancel_payment_request.rb +21 -9
- data/lib/onlinepayments/sdk/domain/cancel_payment_response.rb +10 -2
- data/lib/onlinepayments/sdk/domain/capture.rb +17 -6
- data/lib/onlinepayments/sdk/domain/capture_output.rb +57 -23
- data/lib/onlinepayments/sdk/domain/capture_payment_batch_request.rb +12 -3
- data/lib/onlinepayments/sdk/domain/capture_payment_request.rb +23 -10
- data/lib/onlinepayments/sdk/domain/capture_response.rb +17 -6
- data/lib/onlinepayments/sdk/domain/capture_status_output.rb +9 -1
- data/lib/onlinepayments/sdk/domain/captures_response.rb +10 -2
- data/lib/onlinepayments/sdk/domain/car_rental_data.rb +57 -19
- data/lib/onlinepayments/sdk/domain/car_rental_pickup_return_data.rb +21 -7
- data/lib/onlinepayments/sdk/domain/car_rental_vehicle_data.rb +11 -2
- data/lib/onlinepayments/sdk/domain/card.rb +15 -4
- data/lib/onlinepayments/sdk/domain/card_bin_details.rb +66 -20
- data/lib/onlinepayments/sdk/domain/card_data_without_cvv.rb +13 -3
- data/lib/onlinepayments/sdk/domain/card_essentials.rb +75 -23
- data/lib/onlinepayments/sdk/domain/card_fraud_results.rb +13 -3
- data/lib/onlinepayments/sdk/domain/card_info.rb +11 -2
- data/lib/onlinepayments/sdk/domain/card_installment_details.rb +6 -1
- data/lib/onlinepayments/sdk/domain/card_payment_method_specific_input.rb +122 -50
- data/lib/onlinepayments/sdk/domain/card_payment_method_specific_input_base.rb +93 -39
- data/lib/onlinepayments/sdk/domain/card_payment_method_specific_input_for_hosted_checkout.rb +16 -5
- data/lib/onlinepayments/sdk/domain/card_payment_method_specific_output.rb +88 -36
- data/lib/onlinepayments/sdk/domain/card_payment_method_specific_output_summary.rb +12 -3
- data/lib/onlinepayments/sdk/domain/card_payment_method_specific_output_summary_card.rb +9 -1
- data/lib/onlinepayments/sdk/domain/card_payout_method_specific_input.rb +18 -6
- data/lib/onlinepayments/sdk/domain/card_recurrence_details.rb +9 -1
- data/lib/onlinepayments/sdk/domain/card_source.rb +16 -5
- data/lib/onlinepayments/sdk/domain/card_token.rb +21 -7
- data/lib/onlinepayments/sdk/domain/card_without_cvv.rb +13 -3
- data/lib/onlinepayments/sdk/domain/click_to_pay.rb +9 -1
- data/lib/onlinepayments/sdk/domain/company_information.rb +9 -1
- data/lib/onlinepayments/sdk/domain/complete_payment_card_payment_method_specific_input.rb +10 -2
- data/lib/onlinepayments/sdk/domain/complete_payment_request.rb +13 -4
- data/lib/onlinepayments/sdk/domain/complete_payment_response.rb +16 -6
- data/lib/onlinepayments/sdk/domain/contact_details.rb +17 -5
- data/lib/onlinepayments/sdk/domain/create_certificate_response.rb +11 -2
- data/lib/onlinepayments/sdk/domain/create_hosted_checkout_request.rb +38 -16
- data/lib/onlinepayments/sdk/domain/create_hosted_checkout_response.rb +20 -7
- data/lib/onlinepayments/sdk/domain/create_hosted_fields_session_request.rb +17 -6
- data/lib/onlinepayments/sdk/domain/create_hosted_fields_session_response.rb +22 -9
- data/lib/onlinepayments/sdk/domain/create_hosted_tokenization_request.rb +23 -9
- data/lib/onlinepayments/sdk/domain/create_hosted_tokenization_response.rb +26 -8
- data/lib/onlinepayments/sdk/domain/create_mandate_request.rb +31 -9
- data/lib/onlinepayments/sdk/domain/create_mandate_response.rb +13 -4
- data/lib/onlinepayments/sdk/domain/create_mandate_with_return_url.rb +31 -9
- data/lib/onlinepayments/sdk/domain/create_payment_link_request.rb +61 -25
- data/lib/onlinepayments/sdk/domain/create_payment_request.rb +47 -19
- data/lib/onlinepayments/sdk/domain/create_payment_response.rb +16 -6
- data/lib/onlinepayments/sdk/domain/create_payout_request.rb +29 -11
- data/lib/onlinepayments/sdk/domain/create_token_request.rb +14 -4
- data/lib/onlinepayments/sdk/domain/created_payment_output.rb +12 -3
- data/lib/onlinepayments/sdk/domain/created_token_response.rb +22 -9
- data/lib/onlinepayments/sdk/domain/credit_card_specific_input_hosted_tokenization.rb +13 -4
- data/lib/onlinepayments/sdk/domain/credit_card_validation_rules.rb +11 -2
- data/lib/onlinepayments/sdk/domain/crm_token.rb +11 -2
- data/lib/onlinepayments/sdk/domain/csr_request.rb +9 -1
- data/lib/onlinepayments/sdk/domain/currency_conversion.rb +12 -3
- data/lib/onlinepayments/sdk/domain/currency_conversion_input.rb +11 -2
- data/lib/onlinepayments/sdk/domain/currency_conversion_request.rb +13 -4
- data/lib/onlinepayments/sdk/domain/currency_conversion_response.rb +15 -5
- data/lib/onlinepayments/sdk/domain/currency_conversion_result.rb +11 -2
- data/lib/onlinepayments/sdk/domain/currency_conversion_specific_input.rb +9 -1
- data/lib/onlinepayments/sdk/domain/cursor_pagination_info.rb +11 -2
- data/lib/onlinepayments/sdk/domain/customer.rb +42 -16
- data/lib/onlinepayments/sdk/domain/customer_account.rb +36 -12
- data/lib/onlinepayments/sdk/domain/customer_account_authentication.rb +13 -3
- data/lib/onlinepayments/sdk/domain/customer_bank_account.rb +13 -3
- data/lib/onlinepayments/sdk/domain/customer_device.rb +28 -8
- data/lib/onlinepayments/sdk/domain/customer_device_output.rb +9 -1
- data/lib/onlinepayments/sdk/domain/customer_output.rb +10 -2
- data/lib/onlinepayments/sdk/domain/customer_payment_activity.rb +13 -3
- data/lib/onlinepayments/sdk/domain/customer_token.rb +16 -6
- data/lib/onlinepayments/sdk/domain/data_object.rb +19 -2
- data/lib/onlinepayments/sdk/domain/dcc_card_source.rb +16 -5
- data/lib/onlinepayments/sdk/domain/dcc_proposal.rb +20 -8
- data/lib/onlinepayments/sdk/domain/decrypted_payment_data.rb +17 -5
- data/lib/onlinepayments/sdk/domain/detokenization_response.rb +10 -2
- data/lib/onlinepayments/sdk/domain/detokenized_token_response.rb +27 -7
- data/lib/onlinepayments/sdk/domain/directory_entry.rb +13 -3
- data/lib/onlinepayments/sdk/domain/discount.rb +9 -1
- data/lib/onlinepayments/sdk/domain/dpa_data.rb +9 -1
- data/lib/onlinepayments/sdk/domain/dpa_transaction_options.rb +10 -2
- data/lib/onlinepayments/sdk/domain/empty_validator.rb +2 -0
- data/lib/onlinepayments/sdk/domain/error_response.rb +12 -3
- data/lib/onlinepayments/sdk/domain/external_cardholder_authentication_data.rb +36 -10
- data/lib/onlinepayments/sdk/domain/external_token_linked.rb +13 -3
- data/lib/onlinepayments/sdk/domain/feedbacks.rb +12 -3
- data/lib/onlinepayments/sdk/domain/fixed_list_validator.rb +10 -2
- data/lib/onlinepayments/sdk/domain/fraud_fields.rb +14 -4
- data/lib/onlinepayments/sdk/domain/fraud_results.rb +9 -1
- data/lib/onlinepayments/sdk/domain/g_pay_three_d_secure.rb +25 -7
- data/lib/onlinepayments/sdk/domain/get_batch_status_response.rb +15 -4
- data/lib/onlinepayments/sdk/domain/get_hosted_checkout_response.rb +12 -3
- data/lib/onlinepayments/sdk/domain/get_hosted_fields_session_response.rb +12 -3
- data/lib/onlinepayments/sdk/domain/get_hosted_tokenization_response.rb +12 -3
- data/lib/onlinepayments/sdk/domain/get_iin_details_request.rb +12 -3
- data/lib/onlinepayments/sdk/domain/get_iin_details_response.rb +76 -24
- data/lib/onlinepayments/sdk/domain/get_mandate_response.rb +10 -2
- data/lib/onlinepayments/sdk/domain/get_payment_links_by_merchant_group_request.rb +16 -6
- data/lib/onlinepayments/sdk/domain/get_payment_product_groups_response.rb +10 -2
- data/lib/onlinepayments/sdk/domain/get_payment_products_response.rb +10 -2
- data/lib/onlinepayments/sdk/domain/get_privacy_policy_response.rb +9 -1
- data/lib/onlinepayments/sdk/domain/gift_card_purchase.rb +12 -3
- data/lib/onlinepayments/sdk/domain/hosted_checkout_specific_input.rb +48 -16
- data/lib/onlinepayments/sdk/domain/hosted_checkout_specific_output.rb +11 -2
- data/lib/onlinepayments/sdk/domain/iin_detail.rb +72 -22
- data/lib/onlinepayments/sdk/domain/import_cof_series_request.rb +33 -11
- data/lib/onlinepayments/sdk/domain/import_cof_series_response.rb +9 -1
- data/lib/onlinepayments/sdk/domain/increment_authorization_request.rb +10 -2
- data/lib/onlinepayments/sdk/domain/increment_authorization_response.rb +10 -2
- data/lib/onlinepayments/sdk/domain/label_template_element.rb +11 -2
- data/lib/onlinepayments/sdk/domain/length_validator.rb +11 -2
- data/lib/onlinepayments/sdk/domain/line_item.rb +19 -8
- data/lib/onlinepayments/sdk/domain/line_item_detail.rb +13 -3
- data/lib/onlinepayments/sdk/domain/line_item_invoice_data.rb +9 -1
- data/lib/onlinepayments/sdk/domain/loan_recipient.rb +17 -5
- data/lib/onlinepayments/sdk/domain/lodging_data.rb +9 -1
- data/lib/onlinepayments/sdk/domain/mandate_address.rb +17 -5
- data/lib/onlinepayments/sdk/domain/mandate_address_response.rb +17 -5
- data/lib/onlinepayments/sdk/domain/mandate_contact_details.rb +11 -2
- data/lib/onlinepayments/sdk/domain/mandate_customer.rb +21 -9
- data/lib/onlinepayments/sdk/domain/mandate_customer_response.rb +21 -9
- data/lib/onlinepayments/sdk/domain/mandate_merchant_action.rb +12 -3
- data/lib/onlinepayments/sdk/domain/mandate_personal_information.rb +12 -3
- data/lib/onlinepayments/sdk/domain/mandate_personal_information_response.rb +12 -3
- data/lib/onlinepayments/sdk/domain/mandate_personal_name.rb +11 -2
- data/lib/onlinepayments/sdk/domain/mandate_personal_name_response.rb +11 -2
- data/lib/onlinepayments/sdk/domain/mandate_redirect_data.rb +11 -2
- data/lib/onlinepayments/sdk/domain/mandate_response.rb +22 -8
- data/lib/onlinepayments/sdk/domain/market_place.rb +11 -2
- data/lib/onlinepayments/sdk/domain/mastercard.rb +14 -4
- data/lib/onlinepayments/sdk/domain/merchant_action.rb +21 -9
- data/lib/onlinepayments/sdk/domain/mobile_payment_data.rb +11 -2
- data/lib/onlinepayments/sdk/domain/mobile_payment_method_hosted_checkout_specific_input.rb +17 -6
- data/lib/onlinepayments/sdk/domain/mobile_payment_method_specific_input.rb +40 -14
- data/lib/onlinepayments/sdk/domain/mobile_payment_method_specific_output.rb +22 -9
- data/lib/onlinepayments/sdk/domain/mobile_payment_product302_specific_input.rb +17 -6
- data/lib/onlinepayments/sdk/domain/mobile_payment_product320_specific_input.rb +17 -6
- data/lib/onlinepayments/sdk/domain/mobile_three_d_secure_challenge_parameters.rb +15 -4
- data/lib/onlinepayments/sdk/domain/multiple_payment_information.rb +11 -2
- data/lib/onlinepayments/sdk/domain/network_token_data.rb +19 -6
- data/lib/onlinepayments/sdk/domain/network_token_essentials.rb +19 -6
- data/lib/onlinepayments/sdk/domain/network_token_linked.rb +13 -3
- data/lib/onlinepayments/sdk/domain/omnichannel_payment_specific_input.rb +9 -1
- data/lib/onlinepayments/sdk/domain/omnichannel_payout_specific_input.rb +11 -2
- data/lib/onlinepayments/sdk/domain/omnichannel_refund_specific_input.rb +9 -1
- data/lib/onlinepayments/sdk/domain/omnichannel_subsequent_specific_input.rb +9 -1
- data/lib/onlinepayments/sdk/domain/operation_output.rb +34 -12
- data/lib/onlinepayments/sdk/domain/operation_payment_references.rb +24 -6
- data/lib/onlinepayments/sdk/domain/order.rb +44 -18
- data/lib/onlinepayments/sdk/domain/order_line_details.rb +36 -10
- data/lib/onlinepayments/sdk/domain/order_references.rb +30 -8
- data/lib/onlinepayments/sdk/domain/order_status_output.rb +18 -6
- data/lib/onlinepayments/sdk/domain/order_type_information.rb +11 -2
- data/lib/onlinepayments/sdk/domain/other_details.rb +11 -2
- data/lib/onlinepayments/sdk/domain/pagination.rb +11 -2
- data/lib/onlinepayments/sdk/domain/payment_account_on_file.rb +11 -2
- data/lib/onlinepayments/sdk/domain/payment_context.rb +14 -4
- data/lib/onlinepayments/sdk/domain/payment_creation_output.rb +15 -4
- data/lib/onlinepayments/sdk/domain/payment_details_response.rb +23 -10
- data/lib/onlinepayments/sdk/domain/payment_error_response.rb +15 -5
- data/lib/onlinepayments/sdk/domain/payment_link_event.rb +13 -3
- data/lib/onlinepayments/sdk/domain/payment_link_order_input.rb +15 -5
- data/lib/onlinepayments/sdk/domain/payment_link_order_output.rb +15 -5
- data/lib/onlinepayments/sdk/domain/payment_link_overview_entry.rb +37 -11
- data/lib/onlinepayments/sdk/domain/payment_link_overview_filtering.rb +13 -4
- data/lib/onlinepayments/sdk/domain/payment_link_overview_response.rb +15 -5
- data/lib/onlinepayments/sdk/domain/payment_link_overview_sorting.rb +11 -2
- data/lib/onlinepayments/sdk/domain/payment_link_response.rb +38 -12
- data/lib/onlinepayments/sdk/domain/payment_link_specific_input.rb +13 -3
- data/lib/onlinepayments/sdk/domain/payment_output.rb +61 -25
- data/lib/onlinepayments/sdk/domain/payment_output_summary.rb +18 -7
- data/lib/onlinepayments/sdk/domain/payment_product.rb +55 -21
- data/lib/onlinepayments/sdk/domain/payment_product11.rb +17 -5
- data/lib/onlinepayments/sdk/domain/payment_product130_specific_input.rb +10 -2
- data/lib/onlinepayments/sdk/domain/payment_product130_specific_three_d_secure.rb +15 -4
- data/lib/onlinepayments/sdk/domain/payment_product3012.rb +11 -2
- data/lib/onlinepayments/sdk/domain/payment_product3012_specific_input.rb +15 -4
- data/lib/onlinepayments/sdk/domain/payment_product3013_specific_input.rb +13 -3
- data/lib/onlinepayments/sdk/domain/payment_product302_specific_data.rb +10 -2
- data/lib/onlinepayments/sdk/domain/payment_product3203_specific_output.rb +13 -4
- data/lib/onlinepayments/sdk/domain/payment_product3204_specific_output.rb +9 -1
- data/lib/onlinepayments/sdk/domain/payment_product3208_specific_input.rb +9 -1
- data/lib/onlinepayments/sdk/domain/payment_product3208_specific_output.rb +9 -1
- data/lib/onlinepayments/sdk/domain/payment_product3209_specific_input.rb +9 -1
- data/lib/onlinepayments/sdk/domain/payment_product3209_specific_output.rb +9 -1
- data/lib/onlinepayments/sdk/domain/payment_product320_specific_data.rb +12 -3
- data/lib/onlinepayments/sdk/domain/payment_product350.rb +11 -2
- data/lib/onlinepayments/sdk/domain/payment_product5001.rb +11 -2
- data/lib/onlinepayments/sdk/domain/payment_product5001_specific_output.rb +17 -5
- data/lib/onlinepayments/sdk/domain/payment_product5002_specific_data.rb +10 -2
- data/lib/onlinepayments/sdk/domain/payment_product5002_specific_input.rb +11 -2
- data/lib/onlinepayments/sdk/domain/payment_product5002default_brand_parameters.rb +11 -2
- data/lib/onlinepayments/sdk/domain/payment_product5100_specific_input.rb +9 -1
- data/lib/onlinepayments/sdk/domain/payment_product5402_specific_output.rb +9 -1
- data/lib/onlinepayments/sdk/domain/payment_product5404.rb +11 -2
- data/lib/onlinepayments/sdk/domain/payment_product5407.rb +11 -2
- data/lib/onlinepayments/sdk/domain/payment_product5407_auto_capture.rb +6 -1
- data/lib/onlinepayments/sdk/domain/payment_product5412.rb +13 -3
- data/lib/onlinepayments/sdk/domain/payment_product5500_specific_output.rb +15 -4
- data/lib/onlinepayments/sdk/domain/payment_product5704_auto_capture.rb +9 -1
- data/lib/onlinepayments/sdk/domain/payment_product771_specific_output.rb +9 -1
- data/lib/onlinepayments/sdk/domain/payment_product840.rb +9 -1
- data/lib/onlinepayments/sdk/domain/payment_product840_customer_account.rb +30 -8
- data/lib/onlinepayments/sdk/domain/payment_product840_specific_output.rb +33 -13
- data/lib/onlinepayments/sdk/domain/payment_product_display_hints.rb +13 -3
- data/lib/onlinepayments/sdk/domain/payment_product_field.rb +17 -6
- data/lib/onlinepayments/sdk/domain/payment_product_field_data_restrictions.rb +12 -3
- data/lib/onlinepayments/sdk/domain/payment_product_field_display_element.rb +15 -4
- data/lib/onlinepayments/sdk/domain/payment_product_field_display_hints.rb +38 -12
- data/lib/onlinepayments/sdk/domain/payment_product_field_form_element.rb +12 -3
- data/lib/onlinepayments/sdk/domain/payment_product_field_tooltip.rb +11 -2
- data/lib/onlinepayments/sdk/domain/payment_product_field_validators.rb +42 -18
- data/lib/onlinepayments/sdk/domain/payment_product_filter.rb +13 -4
- data/lib/onlinepayments/sdk/domain/payment_product_filter_hosted_tokenization.rb +10 -2
- data/lib/onlinepayments/sdk/domain/payment_product_filters_hosted_checkout.rb +13 -4
- data/lib/onlinepayments/sdk/domain/payment_product_filters_hosted_fields.rb +13 -4
- data/lib/onlinepayments/sdk/domain/payment_product_filters_hosted_tokenization.rb +13 -4
- data/lib/onlinepayments/sdk/domain/payment_product_group.rb +18 -7
- data/lib/onlinepayments/sdk/domain/payment_product_networks_response.rb +10 -2
- data/lib/onlinepayments/sdk/domain/payment_product_session302_specific_input.rb +11 -2
- data/lib/onlinepayments/sdk/domain/payment_product_session302_specific_output.rb +9 -1
- data/lib/onlinepayments/sdk/domain/payment_product_session_request.rb +10 -2
- data/lib/onlinepayments/sdk/domain/payment_product_session_response.rb +10 -2
- data/lib/onlinepayments/sdk/domain/payment_references.rb +27 -7
- data/lib/onlinepayments/sdk/domain/payment_response.rb +32 -12
- data/lib/onlinepayments/sdk/domain/payment_status_output.rb +28 -8
- data/lib/onlinepayments/sdk/domain/payment_status_output_summary.rb +16 -5
- data/lib/onlinepayments/sdk/domain/payment_summary.rb +17 -6
- data/lib/onlinepayments/sdk/domain/payments_report_response.rb +13 -4
- data/lib/onlinepayments/sdk/domain/payout_card_payment_method_specific_output.rb +17 -6
- data/lib/onlinepayments/sdk/domain/payout_error_response.rb +15 -5
- data/lib/onlinepayments/sdk/domain/payout_output.rb +27 -9
- data/lib/onlinepayments/sdk/domain/payout_response.rb +17 -6
- data/lib/onlinepayments/sdk/domain/payout_result.rb +17 -6
- data/lib/onlinepayments/sdk/domain/payout_status_output.rb +13 -3
- data/lib/onlinepayments/sdk/domain/pending_authentication.rb +9 -1
- data/lib/onlinepayments/sdk/domain/personal_information.rb +14 -4
- data/lib/onlinepayments/sdk/domain/personal_information_token.rb +10 -2
- data/lib/onlinepayments/sdk/domain/personal_name.rb +13 -3
- data/lib/onlinepayments/sdk/domain/personal_name_token.rb +11 -2
- data/lib/onlinepayments/sdk/domain/problem_details_response.rb +17 -5
- data/lib/onlinepayments/sdk/domain/product302_recurring.rb +9 -1
- data/lib/onlinepayments/sdk/domain/product320_recurring.rb +9 -1
- data/lib/onlinepayments/sdk/domain/product_directory.rb +10 -2
- data/lib/onlinepayments/sdk/domain/protection_eligibility.rb +11 -2
- data/lib/onlinepayments/sdk/domain/range_validator.rb +11 -2
- data/lib/onlinepayments/sdk/domain/rate_details.rb +17 -5
- data/lib/onlinepayments/sdk/domain/reattempt_instructions.rb +14 -4
- data/lib/onlinepayments/sdk/domain/reattempt_instructions_conditions.rb +11 -2
- data/lib/onlinepayments/sdk/domain/redirect_data.rb +11 -2
- data/lib/onlinepayments/sdk/domain/redirect_payment_method_specific_input.rb +117 -53
- data/lib/onlinepayments/sdk/domain/redirect_payment_method_specific_output.rb +50 -20
- data/lib/onlinepayments/sdk/domain/redirect_payment_product11_specific_input.rb +9 -1
- data/lib/onlinepayments/sdk/domain/redirect_payment_product3103_specific_input.rb +9 -1
- data/lib/onlinepayments/sdk/domain/redirect_payment_product3112_specific_input.rb +9 -1
- data/lib/onlinepayments/sdk/domain/redirect_payment_product3116_specific_input.rb +9 -1
- data/lib/onlinepayments/sdk/domain/redirect_payment_product3203_specific_input.rb +9 -1
- data/lib/onlinepayments/sdk/domain/redirect_payment_product3204_specific_input.rb +11 -2
- data/lib/onlinepayments/sdk/domain/redirect_payment_product3302_specific_input.rb +13 -3
- data/lib/onlinepayments/sdk/domain/redirect_payment_product3306_specific_input.rb +9 -1
- data/lib/onlinepayments/sdk/domain/redirect_payment_product3307_specific_input.rb +2 -0
- data/lib/onlinepayments/sdk/domain/redirect_payment_product5001_specific_input.rb +11 -2
- data/lib/onlinepayments/sdk/domain/redirect_payment_product5300_specific_input.rb +33 -9
- data/lib/onlinepayments/sdk/domain/redirect_payment_product5301_specific_input.rb +9 -1
- data/lib/onlinepayments/sdk/domain/redirect_payment_product5402_specific_input.rb +9 -1
- data/lib/onlinepayments/sdk/domain/redirect_payment_product5403_specific_input.rb +9 -1
- data/lib/onlinepayments/sdk/domain/redirect_payment_product5406_specific_input.rb +10 -2
- data/lib/onlinepayments/sdk/domain/redirect_payment_product5407_specific_input.rb +10 -2
- data/lib/onlinepayments/sdk/domain/redirect_payment_product5408_specific_input.rb +12 -3
- data/lib/onlinepayments/sdk/domain/redirect_payment_product5410_specific_input.rb +9 -1
- data/lib/onlinepayments/sdk/domain/redirect_payment_product5412_specific_input.rb +11 -2
- data/lib/onlinepayments/sdk/domain/redirect_payment_product5601_specific_input.rb +9 -1
- data/lib/onlinepayments/sdk/domain/redirect_payment_product809_specific_input.rb +9 -1
- data/lib/onlinepayments/sdk/domain/redirect_payment_product840_specific_input.rb +15 -4
- data/lib/onlinepayments/sdk/domain/redirect_payment_product900_specific_input.rb +9 -1
- data/lib/onlinepayments/sdk/domain/redirection_data.rb +9 -1
- data/lib/onlinepayments/sdk/domain/refund_card_method_specific_output.rb +27 -9
- data/lib/onlinepayments/sdk/domain/refund_e_wallet_method_specific_output.rb +14 -4
- data/lib/onlinepayments/sdk/domain/refund_error_response.rb +15 -5
- data/lib/onlinepayments/sdk/domain/refund_mobile_method_specific_output.rb +13 -3
- data/lib/onlinepayments/sdk/domain/refund_output.rb +49 -19
- data/lib/onlinepayments/sdk/domain/refund_payment_batch_request.rb +12 -3
- data/lib/onlinepayments/sdk/domain/refund_payment_product840_customer_account.rb +13 -3
- data/lib/onlinepayments/sdk/domain/refund_payment_product840_specific_output.rb +10 -2
- data/lib/onlinepayments/sdk/domain/refund_redirect_method_specific_output.rb +11 -2
- data/lib/onlinepayments/sdk/domain/refund_redirect_payment_method_specific_input.rb +10 -2
- data/lib/onlinepayments/sdk/domain/refund_redirect_payment_product900_specific_input.rb +9 -1
- data/lib/onlinepayments/sdk/domain/refund_request.rb +39 -15
- data/lib/onlinepayments/sdk/domain/refund_response.rb +17 -6
- data/lib/onlinepayments/sdk/domain/refunds_response.rb +10 -2
- data/lib/onlinepayments/sdk/domain/regular_expression_validator.rb +9 -1
- data/lib/onlinepayments/sdk/domain/revoke_mandate_request.rb +9 -1
- data/lib/onlinepayments/sdk/domain/send_test_request.rb +9 -1
- data/lib/onlinepayments/sdk/domain/sepa_direct_debit_payment_method_specific_input.rb +12 -3
- data/lib/onlinepayments/sdk/domain/sepa_direct_debit_payment_method_specific_input_base.rb +12 -3
- data/lib/onlinepayments/sdk/domain/sepa_direct_debit_payment_method_specific_output.rb +15 -5
- data/lib/onlinepayments/sdk/domain/sepa_direct_debit_payment_product771_specific_input.rb +12 -3
- data/lib/onlinepayments/sdk/domain/sepa_direct_debit_payment_product771_specific_input_base.rb +12 -3
- data/lib/onlinepayments/sdk/domain/session_data.rb +18 -6
- data/lib/onlinepayments/sdk/domain/session_details.rb +11 -2
- data/lib/onlinepayments/sdk/domain/session_request.rb +10 -2
- data/lib/onlinepayments/sdk/domain/session_response.rb +18 -6
- data/lib/onlinepayments/sdk/domain/share_payment_link_request.rb +13 -3
- data/lib/onlinepayments/sdk/domain/shipping.rb +35 -11
- data/lib/onlinepayments/sdk/domain/shipping_detail.rb +11 -2
- data/lib/onlinepayments/sdk/domain/shipping_method.rb +15 -4
- data/lib/onlinepayments/sdk/domain/shopping_cart.rb +27 -9
- data/lib/onlinepayments/sdk/domain/shopping_cart_extension.rb +16 -13
- data/lib/onlinepayments/sdk/domain/show_form_data.rb +42 -18
- data/lib/onlinepayments/sdk/domain/show_instructions_data.rb +9 -1
- data/lib/onlinepayments/sdk/domain/split_payment_product_filter.rb +10 -2
- data/lib/onlinepayments/sdk/domain/split_payment_product_filters_hosted_checkout.rb +13 -4
- data/lib/onlinepayments/sdk/domain/sub_merchant.rb +20 -7
- data/lib/onlinepayments/sdk/domain/submit_batch_request_body.rb +38 -16
- data/lib/onlinepayments/sdk/domain/submit_batch_response.rb +11 -2
- data/lib/onlinepayments/sdk/domain/subsequent_card_payment_method_specific_input.rb +32 -10
- data/lib/onlinepayments/sdk/domain/subsequent_payment_batch_request.rb +12 -3
- data/lib/onlinepayments/sdk/domain/subsequent_payment_product5001_specific_input.rb +9 -1
- data/lib/onlinepayments/sdk/domain/subsequent_payment_request.rb +22 -8
- data/lib/onlinepayments/sdk/domain/subsequent_payment_response.rb +10 -2
- data/lib/onlinepayments/sdk/domain/surcharge.rb +23 -10
- data/lib/onlinepayments/sdk/domain/surcharge_calculation_card.rb +11 -2
- data/lib/onlinepayments/sdk/domain/surcharge_for_payment_link.rb +9 -1
- data/lib/onlinepayments/sdk/domain/surcharge_rate.rb +15 -4
- data/lib/onlinepayments/sdk/domain/surcharge_specific_input.rb +12 -3
- data/lib/onlinepayments/sdk/domain/surcharge_specific_output.rb +15 -5
- data/lib/onlinepayments/sdk/domain/test_connection.rb +9 -1
- data/lib/onlinepayments/sdk/domain/three_d_secure.rb +45 -15
- data/lib/onlinepayments/sdk/domain/three_d_secure_base.rb +34 -10
- data/lib/onlinepayments/sdk/domain/three_d_secure_data.rb +13 -3
- data/lib/onlinepayments/sdk/domain/three_d_secure_results.rb +45 -13
- data/lib/onlinepayments/sdk/domain/three_ds_input_data.rb +13 -3
- data/lib/onlinepayments/sdk/domain/token_card.rb +12 -3
- data/lib/onlinepayments/sdk/domain/token_card_data.rb +15 -5
- data/lib/onlinepayments/sdk/domain/token_card_specific_input.rb +10 -2
- data/lib/onlinepayments/sdk/domain/token_data.rb +12 -3
- data/lib/onlinepayments/sdk/domain/token_e_wallet.rb +12 -3
- data/lib/onlinepayments/sdk/domain/token_info.rb +15 -4
- data/lib/onlinepayments/sdk/domain/token_response.rb +35 -13
- data/lib/onlinepayments/sdk/domain/transaction.rb +10 -2
- data/lib/onlinepayments/sdk/domain/update_authorization_additional_data_request.rb +10 -2
- data/lib/onlinepayments/sdk/domain/uploadable_file.rb +6 -8
- data/lib/onlinepayments/sdk/domain/validate_credentials_request.rb +11 -2
- data/lib/onlinepayments/sdk/domain/validate_credentials_response.rb +9 -1
- data/lib/onlinepayments/sdk/domain/value_mapping_element.rb +12 -3
- data/lib/onlinepayments/sdk/domain/visa.rb +18 -6
- data/lib/onlinepayments/sdk/domain/visa_authentication_options.rb +13 -3
- data/lib/onlinepayments/sdk/domain.rb +2 -0
- data/lib/onlinepayments/sdk/exception_factory.rb +3 -1
- data/lib/onlinepayments/sdk/factory.rb +131 -52
- data/lib/onlinepayments/sdk/idempotence_exception.rb +2 -0
- data/lib/onlinepayments/sdk/json/default_marshaller.rb +7 -5
- data/lib/onlinepayments/sdk/json/marshaller.rb +2 -1
- data/lib/onlinepayments/sdk/json/marshaller_syntax_exception.rb +2 -0
- data/lib/onlinepayments/sdk/json.rb +2 -0
- data/lib/onlinepayments/sdk/logging/communicator_logger.rb +4 -3
- data/lib/onlinepayments/sdk/logging/log_message_builder.rb +76 -69
- data/lib/onlinepayments/sdk/logging/logging_capable.rb +2 -1
- data/lib/onlinepayments/sdk/logging/obfuscation/body_obfuscator.rb +50 -49
- data/lib/onlinepayments/sdk/logging/obfuscation/header_obfuscator.rb +12 -15
- data/lib/onlinepayments/sdk/logging/obfuscation/obfuscation_capable.rb +27 -5
- data/lib/onlinepayments/sdk/logging/obfuscation/obfuscation_rule.rb +14 -16
- data/lib/onlinepayments/sdk/logging/obfuscation.rb +2 -0
- data/lib/onlinepayments/sdk/logging/request_log_message_builder.rb +18 -14
- data/lib/onlinepayments/sdk/logging/response_log_message_builder.rb +15 -13
- data/lib/onlinepayments/sdk/logging/ruby_communicator_logger.rb +12 -13
- data/lib/onlinepayments/sdk/logging/stdout_communicator_logger.rb +7 -5
- data/lib/onlinepayments/sdk/logging.rb +2 -0
- data/lib/onlinepayments/sdk/merchant/captures/captures_client.rb +2 -0
- data/lib/onlinepayments/sdk/merchant/captures.rb +2 -0
- data/lib/onlinepayments/sdk/merchant/cofseries/cof_series_client.rb +2 -0
- data/lib/onlinepayments/sdk/merchant/cofseries.rb +2 -0
- data/lib/onlinepayments/sdk/merchant/complete/complete_client.rb +2 -0
- data/lib/onlinepayments/sdk/merchant/complete.rb +2 -0
- data/lib/onlinepayments/sdk/merchant/hostedcheckout/hosted_checkout_client.rb +2 -0
- data/lib/onlinepayments/sdk/merchant/hostedcheckout.rb +2 -0
- data/lib/onlinepayments/sdk/merchant/hostedfields/hosted_fields_client.rb +2 -0
- data/lib/onlinepayments/sdk/merchant/hostedfields.rb +2 -0
- data/lib/onlinepayments/sdk/merchant/hostedtokenization/hosted_tokenization_client.rb +2 -0
- data/lib/onlinepayments/sdk/merchant/hostedtokenization.rb +2 -0
- data/lib/onlinepayments/sdk/merchant/mandates/mandates_client.rb +2 -0
- data/lib/onlinepayments/sdk/merchant/mandates.rb +2 -0
- data/lib/onlinepayments/sdk/merchant/merchant_client.rb +6 -0
- data/lib/onlinepayments/sdk/merchant/merchantbatch/get_payments_report_params.rb +9 -0
- data/lib/onlinepayments/sdk/merchant/merchantbatch/merchant_batch_client.rb +2 -0
- data/lib/onlinepayments/sdk/merchant/merchantbatch.rb +2 -0
- data/lib/onlinepayments/sdk/merchant/paymentlinks/payment_links_client.rb +2 -0
- data/lib/onlinepayments/sdk/merchant/paymentlinks.rb +2 -0
- data/lib/onlinepayments/sdk/merchant/payments/payments_client.rb +2 -0
- data/lib/onlinepayments/sdk/merchant/payments.rb +2 -0
- data/lib/onlinepayments/sdk/merchant/payouts/payouts_client.rb +2 -0
- data/lib/onlinepayments/sdk/merchant/payouts.rb +2 -0
- data/lib/onlinepayments/sdk/merchant/preauthorization/pre_authorization_client.rb +2 -0
- data/lib/onlinepayments/sdk/merchant/preauthorization.rb +2 -0
- data/lib/onlinepayments/sdk/merchant/privacypolicy/get_privacy_policy_params.rb +9 -0
- data/lib/onlinepayments/sdk/merchant/privacypolicy/privacy_policy_client.rb +2 -0
- data/lib/onlinepayments/sdk/merchant/privacypolicy.rb +2 -0
- data/lib/onlinepayments/sdk/merchant/productgroups/get_product_group_params.rb +13 -0
- data/lib/onlinepayments/sdk/merchant/productgroups/get_product_groups_params.rb +13 -0
- data/lib/onlinepayments/sdk/merchant/productgroups/product_groups_client.rb +2 -0
- data/lib/onlinepayments/sdk/merchant/productgroups.rb +2 -0
- data/lib/onlinepayments/sdk/merchant/products/get_payment_product_networks_params.rb +11 -0
- data/lib/onlinepayments/sdk/merchant/products/get_payment_product_params.rb +14 -0
- data/lib/onlinepayments/sdk/merchant/products/get_payment_products_params.rb +14 -0
- data/lib/onlinepayments/sdk/merchant/products/get_product_directory_params.rb +9 -0
- data/lib/onlinepayments/sdk/merchant/products/products_client.rb +2 -0
- data/lib/onlinepayments/sdk/merchant/products.rb +2 -0
- data/lib/onlinepayments/sdk/merchant/refunds/refunds_client.rb +2 -0
- data/lib/onlinepayments/sdk/merchant/refunds.rb +2 -0
- data/lib/onlinepayments/sdk/merchant/services/services_client.rb +2 -0
- data/lib/onlinepayments/sdk/merchant/services.rb +2 -0
- data/lib/onlinepayments/sdk/merchant/sessions/sessions_client.rb +2 -0
- data/lib/onlinepayments/sdk/merchant/sessions.rb +2 -0
- data/lib/onlinepayments/sdk/merchant/subsequent/subsequent_client.rb +2 -0
- data/lib/onlinepayments/sdk/merchant/subsequent.rb +2 -0
- data/lib/onlinepayments/sdk/merchant/tokenization/get_card_data_by_payments_params.rb +8 -0
- data/lib/onlinepayments/sdk/merchant/tokenization/get_card_data_by_tokens_params.rb +8 -0
- data/lib/onlinepayments/sdk/merchant/tokenization/tokenization_client.rb +2 -0
- data/lib/onlinepayments/sdk/merchant/tokenization.rb +2 -0
- data/lib/onlinepayments/sdk/merchant/tokens/tokens_client.rb +2 -0
- data/lib/onlinepayments/sdk/merchant/tokens.rb +2 -0
- data/lib/onlinepayments/sdk/merchant/webhooks/webhooks_client.rb +2 -0
- data/lib/onlinepayments/sdk/merchant/webhooks.rb +2 -0
- data/lib/onlinepayments/sdk/merchant.rb +2 -0
- data/lib/onlinepayments/sdk/platform_exception.rb +2 -0
- data/lib/onlinepayments/sdk/problem_details_exception.rb +2 -0
- data/lib/onlinepayments/sdk/proxy_configuration.rb +22 -18
- data/lib/onlinepayments/sdk/reference_exception.rb +2 -0
- data/lib/onlinepayments/sdk/validation_exception.rb +2 -0
- data/lib/onlinepayments/sdk/version.rb +8 -0
- data/lib/onlinepayments/sdk/webhooks/api_version_mismatch_exception.rb +3 -3
- data/lib/onlinepayments/sdk/webhooks/in_memory_secret_key_store.rb +7 -4
- data/lib/onlinepayments/sdk/webhooks/secret_key_not_available_exception.rb +4 -2
- data/lib/onlinepayments/sdk/webhooks/secret_key_store.rb +2 -1
- data/lib/onlinepayments/sdk/webhooks/signature_validation_exception.rb +2 -1
- data/lib/onlinepayments/sdk/webhooks/signature_validator.rb +13 -10
- data/lib/onlinepayments/sdk/webhooks/webhooks_event.rb +38 -62
- data/lib/onlinepayments/sdk/webhooks/webhooks_helper.rb +3 -1
- data/lib/onlinepayments/sdk/webhooks.rb +2 -0
- data/lib/onlinepayments/sdk.rb +2 -0
- data/onlinepayments-sdk-ruby.gemspec +13 -8
- data/skills/worldline-direct/SKILL.md +85 -0
- data/skills/worldline-direct/examples/after_payment_operations_example.rb +75 -0
- data/skills/worldline-direct/examples/app_types.rb +170 -0
- data/skills/worldline-direct/examples/client_integration_example.rb +76 -0
- data/skills/worldline-direct/examples/client_setup.rb +57 -0
- data/skills/worldline-direct/examples/create_payment_response_handler.rb +32 -0
- data/skills/worldline-direct/examples/customer_device.rb +32 -0
- data/skills/worldline-direct/examples/error_handling_example.rb +99 -0
- data/skills/worldline-direct/examples/hosted_checkout_example.rb +181 -0
- data/skills/worldline-direct/examples/hosted_fields_example.rb +82 -0
- data/skills/worldline-direct/examples/hosted_tokenization_example.rb +79 -0
- data/skills/worldline-direct/examples/payment_attempt.rb +30 -0
- data/skills/worldline-direct/examples/payment_links_example.rb +52 -0
- data/skills/worldline-direct/examples/payment_status_example.rb +62 -0
- data/skills/worldline-direct/examples/recurring_payments_example.rb +127 -0
- data/skills/worldline-direct/examples/server_to_server_example.rb +81 -0
- data/skills/worldline-direct/examples/webhook_event_processor.rb +40 -0
- data/skills/worldline-direct/examples/webhooks_endpoint.rb +73 -0
- data/skills/worldline-direct/examples/webhooks_setup.rb +41 -0
- data/skills/worldline-direct/references/errors.md +113 -0
- data/skills/worldline-direct/references/flows.md +966 -0
- data/skills/worldline-direct/references/ruby.md +209 -0
- data/skills/worldline-direct/references/webhooks.md +167 -0
- metadata +100 -23
- data/lib/onlinepayments/sdk/domain/credit_card_validation_rules_hosted_tokenization.rb +0 -37
- data/lib/onlinepayments/sdk/domain/payment_links_response.rb +0 -35
- data/lib/onlinepayments/sdk/domain/shopping_cart_output.rb +0 -35
- data/lib/onlinepayments/sdk/merchant/paymentlinks/get_payment_links_in_bulk_params.rb +0 -28
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
1
3
|
#
|
|
2
4
|
# This file was automatically generated.
|
|
3
5
|
#
|
|
@@ -23,6 +25,16 @@ module OnlinePayments
|
|
|
23
25
|
|
|
24
26
|
attr_accessor :source
|
|
25
27
|
|
|
28
|
+
# Creates a new instance; every attribute can be given as a keyword argument.
|
|
29
|
+
def initialize(exchange_rate: nil, inverted_exchange_rate: nil, mark_up_rate: nil, quotation_date_time: nil, source: nil)
|
|
30
|
+
super()
|
|
31
|
+
@exchange_rate = exchange_rate
|
|
32
|
+
@inverted_exchange_rate = inverted_exchange_rate
|
|
33
|
+
@mark_up_rate = mark_up_rate
|
|
34
|
+
@quotation_date_time = quotation_date_time
|
|
35
|
+
@source = source
|
|
36
|
+
end
|
|
37
|
+
|
|
26
38
|
# Sets the property and returns this same instance.
|
|
27
39
|
def with_exchange_rate(value)
|
|
28
40
|
@exchange_rate = value
|
|
@@ -66,19 +78,19 @@ module OnlinePayments
|
|
|
66
78
|
|
|
67
79
|
def from_hash(hash)
|
|
68
80
|
super
|
|
69
|
-
if hash.
|
|
81
|
+
if hash.key? 'exchangeRate'
|
|
70
82
|
@exchange_rate = hash['exchangeRate']
|
|
71
83
|
end
|
|
72
|
-
if hash.
|
|
84
|
+
if hash.key? 'invertedExchangeRate'
|
|
73
85
|
@inverted_exchange_rate = hash['invertedExchangeRate']
|
|
74
86
|
end
|
|
75
|
-
if hash.
|
|
87
|
+
if hash.key? 'markUpRate'
|
|
76
88
|
@mark_up_rate = hash['markUpRate']
|
|
77
89
|
end
|
|
78
|
-
if hash.
|
|
90
|
+
if hash.key? 'quotationDateTime'
|
|
79
91
|
@quotation_date_time = hash['quotationDateTime']
|
|
80
92
|
end
|
|
81
|
-
if hash.
|
|
93
|
+
if hash.key? 'source'
|
|
82
94
|
@source = hash['source']
|
|
83
95
|
end
|
|
84
96
|
end
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
1
3
|
#
|
|
2
4
|
# This file was automatically generated.
|
|
3
5
|
#
|
|
@@ -18,6 +20,14 @@ module OnlinePayments
|
|
|
18
20
|
|
|
19
21
|
attr_accessor :indicator
|
|
20
22
|
|
|
23
|
+
# Creates a new instance; every attribute can be given as a keyword argument.
|
|
24
|
+
def initialize(conditions: nil, frozen_period: nil, indicator: nil)
|
|
25
|
+
super()
|
|
26
|
+
@conditions = conditions
|
|
27
|
+
@frozen_period = frozen_period
|
|
28
|
+
@indicator = indicator
|
|
29
|
+
end
|
|
30
|
+
|
|
21
31
|
# Sets the property and returns this same instance.
|
|
22
32
|
def with_conditions(value)
|
|
23
33
|
@conditions = value
|
|
@@ -47,14 +57,14 @@ module OnlinePayments
|
|
|
47
57
|
|
|
48
58
|
def from_hash(hash)
|
|
49
59
|
super
|
|
50
|
-
if hash.
|
|
51
|
-
raise TypeError, "value '
|
|
60
|
+
if hash.key? 'conditions'
|
|
61
|
+
raise TypeError, "value '#{hash['conditions']}' is not a Hash" unless hash['conditions'].is_a? Hash
|
|
52
62
|
@conditions = OnlinePayments::SDK::Domain::ReattemptInstructionsConditions.new_from_hash(hash['conditions'])
|
|
53
63
|
end
|
|
54
|
-
if hash.
|
|
64
|
+
if hash.key? 'frozenPeriod'
|
|
55
65
|
@frozen_period = hash['frozenPeriod']
|
|
56
66
|
end
|
|
57
|
-
if hash.
|
|
67
|
+
if hash.key? 'indicator'
|
|
58
68
|
@indicator = hash['indicator']
|
|
59
69
|
end
|
|
60
70
|
end
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
1
3
|
#
|
|
2
4
|
# This file was automatically generated.
|
|
3
5
|
#
|
|
@@ -14,6 +16,13 @@ module OnlinePayments
|
|
|
14
16
|
|
|
15
17
|
attr_accessor :max_delay
|
|
16
18
|
|
|
19
|
+
# Creates a new instance; every attribute can be given as a keyword argument.
|
|
20
|
+
def initialize(max_attempts: nil, max_delay: nil)
|
|
21
|
+
super()
|
|
22
|
+
@max_attempts = max_attempts
|
|
23
|
+
@max_delay = max_delay
|
|
24
|
+
end
|
|
25
|
+
|
|
17
26
|
# Sets the property and returns this same instance.
|
|
18
27
|
def with_max_attempts(value)
|
|
19
28
|
@max_attempts = value
|
|
@@ -36,10 +45,10 @@ module OnlinePayments
|
|
|
36
45
|
|
|
37
46
|
def from_hash(hash)
|
|
38
47
|
super
|
|
39
|
-
if hash.
|
|
48
|
+
if hash.key? 'maxAttempts'
|
|
40
49
|
@max_attempts = hash['maxAttempts']
|
|
41
50
|
end
|
|
42
|
-
if hash.
|
|
51
|
+
if hash.key? 'maxDelay'
|
|
43
52
|
@max_delay = hash['maxDelay']
|
|
44
53
|
end
|
|
45
54
|
end
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
1
3
|
#
|
|
2
4
|
# This file was automatically generated.
|
|
3
5
|
#
|
|
@@ -14,6 +16,13 @@ module OnlinePayments
|
|
|
14
16
|
|
|
15
17
|
attr_accessor :redirect_url
|
|
16
18
|
|
|
19
|
+
# Creates a new instance; every attribute can be given as a keyword argument.
|
|
20
|
+
def initialize(returnmac: nil, redirect_url: nil)
|
|
21
|
+
super()
|
|
22
|
+
@returnmac = returnmac
|
|
23
|
+
@redirect_url = redirect_url
|
|
24
|
+
end
|
|
25
|
+
|
|
17
26
|
# Sets the property and returns this same instance.
|
|
18
27
|
def with_returnmac(value)
|
|
19
28
|
@returnmac = value
|
|
@@ -36,10 +45,10 @@ module OnlinePayments
|
|
|
36
45
|
|
|
37
46
|
def from_hash(hash)
|
|
38
47
|
super
|
|
39
|
-
if hash.
|
|
48
|
+
if hash.key? 'RETURNMAC'
|
|
40
49
|
@returnmac = hash['RETURNMAC']
|
|
41
50
|
end
|
|
42
|
-
if hash.
|
|
51
|
+
if hash.key? 'redirectURL'
|
|
43
52
|
@redirect_url = hash['redirectURL']
|
|
44
53
|
end
|
|
45
54
|
end
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
1
3
|
#
|
|
2
4
|
# This file was automatically generated.
|
|
3
5
|
#
|
|
@@ -119,6 +121,68 @@ module OnlinePayments
|
|
|
119
121
|
|
|
120
122
|
attr_accessor :tokenize
|
|
121
123
|
|
|
124
|
+
# Creates a new instance; every attribute can be given as a keyword argument.
|
|
125
|
+
def initialize(payment_option: nil,
|
|
126
|
+
payment_product11_specific_input: nil,
|
|
127
|
+
payment_product3103_specific_input: nil,
|
|
128
|
+
payment_product3112_specific_input: nil,
|
|
129
|
+
payment_product3116_specific_input: nil,
|
|
130
|
+
payment_product3203_specific_input: nil,
|
|
131
|
+
payment_product3204_specific_input: nil,
|
|
132
|
+
payment_product3302_specific_input: nil,
|
|
133
|
+
payment_product3306_specific_input: nil,
|
|
134
|
+
payment_product3307_specific_input: nil,
|
|
135
|
+
payment_product5001_specific_input: nil,
|
|
136
|
+
payment_product5300_specific_input: nil,
|
|
137
|
+
payment_product5301_specific_input: nil,
|
|
138
|
+
payment_product5402_specific_input: nil,
|
|
139
|
+
payment_product5403_specific_input: nil,
|
|
140
|
+
payment_product5406_specific_input: nil,
|
|
141
|
+
payment_product5407_specific_input: nil,
|
|
142
|
+
payment_product5408_specific_input: nil,
|
|
143
|
+
payment_product5410_specific_input: nil,
|
|
144
|
+
payment_product5412_specific_input: nil,
|
|
145
|
+
payment_product5601_specific_input: nil,
|
|
146
|
+
payment_product809_specific_input: nil,
|
|
147
|
+
payment_product840_specific_input: nil,
|
|
148
|
+
payment_product900_specific_input: nil,
|
|
149
|
+
payment_product_id: nil,
|
|
150
|
+
redirection_data: nil,
|
|
151
|
+
requires_approval: nil,
|
|
152
|
+
token: nil,
|
|
153
|
+
tokenize: nil)
|
|
154
|
+
super()
|
|
155
|
+
@payment_option = payment_option
|
|
156
|
+
@payment_product11_specific_input = payment_product11_specific_input
|
|
157
|
+
@payment_product3103_specific_input = payment_product3103_specific_input
|
|
158
|
+
@payment_product3112_specific_input = payment_product3112_specific_input
|
|
159
|
+
@payment_product3116_specific_input = payment_product3116_specific_input
|
|
160
|
+
@payment_product3203_specific_input = payment_product3203_specific_input
|
|
161
|
+
@payment_product3204_specific_input = payment_product3204_specific_input
|
|
162
|
+
@payment_product3302_specific_input = payment_product3302_specific_input
|
|
163
|
+
@payment_product3306_specific_input = payment_product3306_specific_input
|
|
164
|
+
@payment_product3307_specific_input = payment_product3307_specific_input
|
|
165
|
+
@payment_product5001_specific_input = payment_product5001_specific_input
|
|
166
|
+
@payment_product5300_specific_input = payment_product5300_specific_input
|
|
167
|
+
@payment_product5301_specific_input = payment_product5301_specific_input
|
|
168
|
+
@payment_product5402_specific_input = payment_product5402_specific_input
|
|
169
|
+
@payment_product5403_specific_input = payment_product5403_specific_input
|
|
170
|
+
@payment_product5406_specific_input = payment_product5406_specific_input
|
|
171
|
+
@payment_product5407_specific_input = payment_product5407_specific_input
|
|
172
|
+
@payment_product5408_specific_input = payment_product5408_specific_input
|
|
173
|
+
@payment_product5410_specific_input = payment_product5410_specific_input
|
|
174
|
+
@payment_product5412_specific_input = payment_product5412_specific_input
|
|
175
|
+
@payment_product5601_specific_input = payment_product5601_specific_input
|
|
176
|
+
@payment_product809_specific_input = payment_product809_specific_input
|
|
177
|
+
@payment_product840_specific_input = payment_product840_specific_input
|
|
178
|
+
@payment_product900_specific_input = payment_product900_specific_input
|
|
179
|
+
@payment_product_id = payment_product_id
|
|
180
|
+
@redirection_data = redirection_data
|
|
181
|
+
@requires_approval = requires_approval
|
|
182
|
+
@token = token
|
|
183
|
+
@tokenize = tokenize
|
|
184
|
+
end
|
|
185
|
+
|
|
122
186
|
# Sets the property and returns this same instance.
|
|
123
187
|
def with_payment_option(value)
|
|
124
188
|
@payment_option = value
|
|
@@ -330,115 +394,115 @@ module OnlinePayments
|
|
|
330
394
|
|
|
331
395
|
def from_hash(hash)
|
|
332
396
|
super
|
|
333
|
-
if hash.
|
|
397
|
+
if hash.key? 'paymentOption'
|
|
334
398
|
@payment_option = hash['paymentOption']
|
|
335
399
|
end
|
|
336
|
-
if hash.
|
|
337
|
-
raise TypeError, "value '
|
|
400
|
+
if hash.key? 'paymentProduct11SpecificInput'
|
|
401
|
+
raise TypeError, "value '#{hash['paymentProduct11SpecificInput']}' is not a Hash" unless hash['paymentProduct11SpecificInput'].is_a? Hash
|
|
338
402
|
@payment_product11_specific_input = OnlinePayments::SDK::Domain::RedirectPaymentProduct11SpecificInput.new_from_hash(hash['paymentProduct11SpecificInput'])
|
|
339
403
|
end
|
|
340
|
-
if hash.
|
|
341
|
-
raise TypeError, "value '
|
|
404
|
+
if hash.key? 'paymentProduct3103SpecificInput'
|
|
405
|
+
raise TypeError, "value '#{hash['paymentProduct3103SpecificInput']}' is not a Hash" unless hash['paymentProduct3103SpecificInput'].is_a? Hash
|
|
342
406
|
@payment_product3103_specific_input = OnlinePayments::SDK::Domain::RedirectPaymentProduct3103SpecificInput.new_from_hash(hash['paymentProduct3103SpecificInput'])
|
|
343
407
|
end
|
|
344
|
-
if hash.
|
|
345
|
-
raise TypeError, "value '
|
|
408
|
+
if hash.key? 'paymentProduct3112SpecificInput'
|
|
409
|
+
raise TypeError, "value '#{hash['paymentProduct3112SpecificInput']}' is not a Hash" unless hash['paymentProduct3112SpecificInput'].is_a? Hash
|
|
346
410
|
@payment_product3112_specific_input = OnlinePayments::SDK::Domain::RedirectPaymentProduct3112SpecificInput.new_from_hash(hash['paymentProduct3112SpecificInput'])
|
|
347
411
|
end
|
|
348
|
-
if hash.
|
|
349
|
-
raise TypeError, "value '
|
|
412
|
+
if hash.key? 'paymentProduct3116SpecificInput'
|
|
413
|
+
raise TypeError, "value '#{hash['paymentProduct3116SpecificInput']}' is not a Hash" unless hash['paymentProduct3116SpecificInput'].is_a? Hash
|
|
350
414
|
@payment_product3116_specific_input = OnlinePayments::SDK::Domain::RedirectPaymentProduct3116SpecificInput.new_from_hash(hash['paymentProduct3116SpecificInput'])
|
|
351
415
|
end
|
|
352
|
-
if hash.
|
|
353
|
-
raise TypeError, "value '
|
|
416
|
+
if hash.key? 'paymentProduct3203SpecificInput'
|
|
417
|
+
raise TypeError, "value '#{hash['paymentProduct3203SpecificInput']}' is not a Hash" unless hash['paymentProduct3203SpecificInput'].is_a? Hash
|
|
354
418
|
@payment_product3203_specific_input = OnlinePayments::SDK::Domain::RedirectPaymentProduct3203SpecificInput.new_from_hash(hash['paymentProduct3203SpecificInput'])
|
|
355
419
|
end
|
|
356
|
-
if hash.
|
|
357
|
-
raise TypeError, "value '
|
|
420
|
+
if hash.key? 'paymentProduct3204SpecificInput'
|
|
421
|
+
raise TypeError, "value '#{hash['paymentProduct3204SpecificInput']}' is not a Hash" unless hash['paymentProduct3204SpecificInput'].is_a? Hash
|
|
358
422
|
@payment_product3204_specific_input = OnlinePayments::SDK::Domain::RedirectPaymentProduct3204SpecificInput.new_from_hash(hash['paymentProduct3204SpecificInput'])
|
|
359
423
|
end
|
|
360
|
-
if hash.
|
|
361
|
-
raise TypeError, "value '
|
|
424
|
+
if hash.key? 'paymentProduct3302SpecificInput'
|
|
425
|
+
raise TypeError, "value '#{hash['paymentProduct3302SpecificInput']}' is not a Hash" unless hash['paymentProduct3302SpecificInput'].is_a? Hash
|
|
362
426
|
@payment_product3302_specific_input = OnlinePayments::SDK::Domain::RedirectPaymentProduct3302SpecificInput.new_from_hash(hash['paymentProduct3302SpecificInput'])
|
|
363
427
|
end
|
|
364
|
-
if hash.
|
|
365
|
-
raise TypeError, "value '
|
|
428
|
+
if hash.key? 'paymentProduct3306SpecificInput'
|
|
429
|
+
raise TypeError, "value '#{hash['paymentProduct3306SpecificInput']}' is not a Hash" unless hash['paymentProduct3306SpecificInput'].is_a? Hash
|
|
366
430
|
@payment_product3306_specific_input = OnlinePayments::SDK::Domain::RedirectPaymentProduct3306SpecificInput.new_from_hash(hash['paymentProduct3306SpecificInput'])
|
|
367
431
|
end
|
|
368
|
-
if hash.
|
|
369
|
-
raise TypeError, "value '
|
|
432
|
+
if hash.key? 'paymentProduct3307SpecificInput'
|
|
433
|
+
raise TypeError, "value '#{hash['paymentProduct3307SpecificInput']}' is not a Hash" unless hash['paymentProduct3307SpecificInput'].is_a? Hash
|
|
370
434
|
@payment_product3307_specific_input = OnlinePayments::SDK::Domain::RedirectPaymentProduct3307SpecificInput.new_from_hash(hash['paymentProduct3307SpecificInput'])
|
|
371
435
|
end
|
|
372
|
-
if hash.
|
|
373
|
-
raise TypeError, "value '
|
|
436
|
+
if hash.key? 'paymentProduct5001SpecificInput'
|
|
437
|
+
raise TypeError, "value '#{hash['paymentProduct5001SpecificInput']}' is not a Hash" unless hash['paymentProduct5001SpecificInput'].is_a? Hash
|
|
374
438
|
@payment_product5001_specific_input = OnlinePayments::SDK::Domain::RedirectPaymentProduct5001SpecificInput.new_from_hash(hash['paymentProduct5001SpecificInput'])
|
|
375
439
|
end
|
|
376
|
-
if hash.
|
|
377
|
-
raise TypeError, "value '
|
|
440
|
+
if hash.key? 'paymentProduct5300SpecificInput'
|
|
441
|
+
raise TypeError, "value '#{hash['paymentProduct5300SpecificInput']}' is not a Hash" unless hash['paymentProduct5300SpecificInput'].is_a? Hash
|
|
378
442
|
@payment_product5300_specific_input = OnlinePayments::SDK::Domain::RedirectPaymentProduct5300SpecificInput.new_from_hash(hash['paymentProduct5300SpecificInput'])
|
|
379
443
|
end
|
|
380
|
-
if hash.
|
|
381
|
-
raise TypeError, "value '
|
|
444
|
+
if hash.key? 'paymentProduct5301SpecificInput'
|
|
445
|
+
raise TypeError, "value '#{hash['paymentProduct5301SpecificInput']}' is not a Hash" unless hash['paymentProduct5301SpecificInput'].is_a? Hash
|
|
382
446
|
@payment_product5301_specific_input = OnlinePayments::SDK::Domain::RedirectPaymentProduct5301SpecificInput.new_from_hash(hash['paymentProduct5301SpecificInput'])
|
|
383
447
|
end
|
|
384
|
-
if hash.
|
|
385
|
-
raise TypeError, "value '
|
|
448
|
+
if hash.key? 'paymentProduct5402SpecificInput'
|
|
449
|
+
raise TypeError, "value '#{hash['paymentProduct5402SpecificInput']}' is not a Hash" unless hash['paymentProduct5402SpecificInput'].is_a? Hash
|
|
386
450
|
@payment_product5402_specific_input = OnlinePayments::SDK::Domain::RedirectPaymentProduct5402SpecificInput.new_from_hash(hash['paymentProduct5402SpecificInput'])
|
|
387
451
|
end
|
|
388
|
-
if hash.
|
|
389
|
-
raise TypeError, "value '
|
|
452
|
+
if hash.key? 'paymentProduct5403SpecificInput'
|
|
453
|
+
raise TypeError, "value '#{hash['paymentProduct5403SpecificInput']}' is not a Hash" unless hash['paymentProduct5403SpecificInput'].is_a? Hash
|
|
390
454
|
@payment_product5403_specific_input = OnlinePayments::SDK::Domain::RedirectPaymentProduct5403SpecificInput.new_from_hash(hash['paymentProduct5403SpecificInput'])
|
|
391
455
|
end
|
|
392
|
-
if hash.
|
|
393
|
-
raise TypeError, "value '
|
|
456
|
+
if hash.key? 'paymentProduct5406SpecificInput'
|
|
457
|
+
raise TypeError, "value '#{hash['paymentProduct5406SpecificInput']}' is not a Hash" unless hash['paymentProduct5406SpecificInput'].is_a? Hash
|
|
394
458
|
@payment_product5406_specific_input = OnlinePayments::SDK::Domain::RedirectPaymentProduct5406SpecificInput.new_from_hash(hash['paymentProduct5406SpecificInput'])
|
|
395
459
|
end
|
|
396
|
-
if hash.
|
|
397
|
-
raise TypeError, "value '
|
|
460
|
+
if hash.key? 'paymentProduct5407SpecificInput'
|
|
461
|
+
raise TypeError, "value '#{hash['paymentProduct5407SpecificInput']}' is not a Hash" unless hash['paymentProduct5407SpecificInput'].is_a? Hash
|
|
398
462
|
@payment_product5407_specific_input = OnlinePayments::SDK::Domain::RedirectPaymentProduct5407SpecificInput.new_from_hash(hash['paymentProduct5407SpecificInput'])
|
|
399
463
|
end
|
|
400
|
-
if hash.
|
|
401
|
-
raise TypeError, "value '
|
|
464
|
+
if hash.key? 'paymentProduct5408SpecificInput'
|
|
465
|
+
raise TypeError, "value '#{hash['paymentProduct5408SpecificInput']}' is not a Hash" unless hash['paymentProduct5408SpecificInput'].is_a? Hash
|
|
402
466
|
@payment_product5408_specific_input = OnlinePayments::SDK::Domain::RedirectPaymentProduct5408SpecificInput.new_from_hash(hash['paymentProduct5408SpecificInput'])
|
|
403
467
|
end
|
|
404
|
-
if hash.
|
|
405
|
-
raise TypeError, "value '
|
|
468
|
+
if hash.key? 'paymentProduct5410SpecificInput'
|
|
469
|
+
raise TypeError, "value '#{hash['paymentProduct5410SpecificInput']}' is not a Hash" unless hash['paymentProduct5410SpecificInput'].is_a? Hash
|
|
406
470
|
@payment_product5410_specific_input = OnlinePayments::SDK::Domain::RedirectPaymentProduct5410SpecificInput.new_from_hash(hash['paymentProduct5410SpecificInput'])
|
|
407
471
|
end
|
|
408
|
-
if hash.
|
|
409
|
-
raise TypeError, "value '
|
|
472
|
+
if hash.key? 'paymentProduct5412SpecificInput'
|
|
473
|
+
raise TypeError, "value '#{hash['paymentProduct5412SpecificInput']}' is not a Hash" unless hash['paymentProduct5412SpecificInput'].is_a? Hash
|
|
410
474
|
@payment_product5412_specific_input = OnlinePayments::SDK::Domain::RedirectPaymentProduct5412SpecificInput.new_from_hash(hash['paymentProduct5412SpecificInput'])
|
|
411
475
|
end
|
|
412
|
-
if hash.
|
|
413
|
-
raise TypeError, "value '
|
|
476
|
+
if hash.key? 'paymentProduct5601SpecificInput'
|
|
477
|
+
raise TypeError, "value '#{hash['paymentProduct5601SpecificInput']}' is not a Hash" unless hash['paymentProduct5601SpecificInput'].is_a? Hash
|
|
414
478
|
@payment_product5601_specific_input = OnlinePayments::SDK::Domain::RedirectPaymentProduct5601SpecificInput.new_from_hash(hash['paymentProduct5601SpecificInput'])
|
|
415
479
|
end
|
|
416
|
-
if hash.
|
|
417
|
-
raise TypeError, "value '
|
|
480
|
+
if hash.key? 'paymentProduct809SpecificInput'
|
|
481
|
+
raise TypeError, "value '#{hash['paymentProduct809SpecificInput']}' is not a Hash" unless hash['paymentProduct809SpecificInput'].is_a? Hash
|
|
418
482
|
@payment_product809_specific_input = OnlinePayments::SDK::Domain::RedirectPaymentProduct809SpecificInput.new_from_hash(hash['paymentProduct809SpecificInput'])
|
|
419
483
|
end
|
|
420
|
-
if hash.
|
|
421
|
-
raise TypeError, "value '
|
|
484
|
+
if hash.key? 'paymentProduct840SpecificInput'
|
|
485
|
+
raise TypeError, "value '#{hash['paymentProduct840SpecificInput']}' is not a Hash" unless hash['paymentProduct840SpecificInput'].is_a? Hash
|
|
422
486
|
@payment_product840_specific_input = OnlinePayments::SDK::Domain::RedirectPaymentProduct840SpecificInput.new_from_hash(hash['paymentProduct840SpecificInput'])
|
|
423
487
|
end
|
|
424
|
-
if hash.
|
|
425
|
-
raise TypeError, "value '
|
|
488
|
+
if hash.key? 'paymentProduct900SpecificInput'
|
|
489
|
+
raise TypeError, "value '#{hash['paymentProduct900SpecificInput']}' is not a Hash" unless hash['paymentProduct900SpecificInput'].is_a? Hash
|
|
426
490
|
@payment_product900_specific_input = OnlinePayments::SDK::Domain::RedirectPaymentProduct900SpecificInput.new_from_hash(hash['paymentProduct900SpecificInput'])
|
|
427
491
|
end
|
|
428
|
-
if hash.
|
|
492
|
+
if hash.key? 'paymentProductId'
|
|
429
493
|
@payment_product_id = hash['paymentProductId']
|
|
430
494
|
end
|
|
431
|
-
if hash.
|
|
432
|
-
raise TypeError, "value '
|
|
495
|
+
if hash.key? 'redirectionData'
|
|
496
|
+
raise TypeError, "value '#{hash['redirectionData']}' is not a Hash" unless hash['redirectionData'].is_a? Hash
|
|
433
497
|
@redirection_data = OnlinePayments::SDK::Domain::RedirectionData.new_from_hash(hash['redirectionData'])
|
|
434
498
|
end
|
|
435
|
-
if hash.
|
|
499
|
+
if hash.key? 'requiresApproval'
|
|
436
500
|
@requires_approval = hash['requiresApproval']
|
|
437
501
|
end
|
|
438
|
-
if hash.
|
|
502
|
+
if hash.key? 'token'
|
|
439
503
|
@token = hash['token']
|
|
440
504
|
end
|
|
441
|
-
if hash.
|
|
505
|
+
if hash.key? 'tokenize'
|
|
442
506
|
@tokenize = hash['tokenize']
|
|
443
507
|
end
|
|
444
508
|
end
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
1
3
|
#
|
|
2
4
|
# This file was automatically generated.
|
|
3
5
|
#
|
|
@@ -52,6 +54,34 @@ module OnlinePayments
|
|
|
52
54
|
|
|
53
55
|
attr_accessor :token
|
|
54
56
|
|
|
57
|
+
# Creates a new instance; every attribute can be given as a keyword argument.
|
|
58
|
+
def initialize(authorisation_code: nil,
|
|
59
|
+
customer_bank_account: nil,
|
|
60
|
+
fraud_results: nil,
|
|
61
|
+
payment_method3204_specific_output: nil,
|
|
62
|
+
payment_option: nil,
|
|
63
|
+
payment_product3203_specific_output: nil,
|
|
64
|
+
payment_product5001_specific_output: nil,
|
|
65
|
+
payment_product5402_specific_output: nil,
|
|
66
|
+
payment_product5500_specific_output: nil,
|
|
67
|
+
payment_product840_specific_output: nil,
|
|
68
|
+
payment_product_id: nil,
|
|
69
|
+
token: nil)
|
|
70
|
+
super()
|
|
71
|
+
@authorisation_code = authorisation_code
|
|
72
|
+
@customer_bank_account = customer_bank_account
|
|
73
|
+
@fraud_results = fraud_results
|
|
74
|
+
@payment_method3204_specific_output = payment_method3204_specific_output
|
|
75
|
+
@payment_option = payment_option
|
|
76
|
+
@payment_product3203_specific_output = payment_product3203_specific_output
|
|
77
|
+
@payment_product5001_specific_output = payment_product5001_specific_output
|
|
78
|
+
@payment_product5402_specific_output = payment_product5402_specific_output
|
|
79
|
+
@payment_product5500_specific_output = payment_product5500_specific_output
|
|
80
|
+
@payment_product840_specific_output = payment_product840_specific_output
|
|
81
|
+
@payment_product_id = payment_product_id
|
|
82
|
+
@token = token
|
|
83
|
+
end
|
|
84
|
+
|
|
55
85
|
# Sets the property and returns this same instance.
|
|
56
86
|
def with_authorisation_code(value)
|
|
57
87
|
@authorisation_code = value
|
|
@@ -144,48 +174,48 @@ module OnlinePayments
|
|
|
144
174
|
|
|
145
175
|
def from_hash(hash)
|
|
146
176
|
super
|
|
147
|
-
if hash.
|
|
177
|
+
if hash.key? 'authorisationCode'
|
|
148
178
|
@authorisation_code = hash['authorisationCode']
|
|
149
179
|
end
|
|
150
|
-
if hash.
|
|
151
|
-
raise TypeError, "value '
|
|
180
|
+
if hash.key? 'customerBankAccount'
|
|
181
|
+
raise TypeError, "value '#{hash['customerBankAccount']}' is not a Hash" unless hash['customerBankAccount'].is_a? Hash
|
|
152
182
|
@customer_bank_account = OnlinePayments::SDK::Domain::CustomerBankAccount.new_from_hash(hash['customerBankAccount'])
|
|
153
183
|
end
|
|
154
|
-
if hash.
|
|
155
|
-
raise TypeError, "value '
|
|
184
|
+
if hash.key? 'fraudResults'
|
|
185
|
+
raise TypeError, "value '#{hash['fraudResults']}' is not a Hash" unless hash['fraudResults'].is_a? Hash
|
|
156
186
|
@fraud_results = OnlinePayments::SDK::Domain::FraudResults.new_from_hash(hash['fraudResults'])
|
|
157
187
|
end
|
|
158
|
-
if hash.
|
|
159
|
-
raise TypeError, "value '
|
|
188
|
+
if hash.key? 'paymentMethod3204SpecificOutput'
|
|
189
|
+
raise TypeError, "value '#{hash['paymentMethod3204SpecificOutput']}' is not a Hash" unless hash['paymentMethod3204SpecificOutput'].is_a? Hash
|
|
160
190
|
@payment_method3204_specific_output = OnlinePayments::SDK::Domain::PaymentProduct3204SpecificOutput.new_from_hash(hash['paymentMethod3204SpecificOutput'])
|
|
161
191
|
end
|
|
162
|
-
if hash.
|
|
192
|
+
if hash.key? 'paymentOption'
|
|
163
193
|
@payment_option = hash['paymentOption']
|
|
164
194
|
end
|
|
165
|
-
if hash.
|
|
166
|
-
raise TypeError, "value '
|
|
195
|
+
if hash.key? 'paymentProduct3203SpecificOutput'
|
|
196
|
+
raise TypeError, "value '#{hash['paymentProduct3203SpecificOutput']}' is not a Hash" unless hash['paymentProduct3203SpecificOutput'].is_a? Hash
|
|
167
197
|
@payment_product3203_specific_output = OnlinePayments::SDK::Domain::PaymentProduct3203SpecificOutput.new_from_hash(hash['paymentProduct3203SpecificOutput'])
|
|
168
198
|
end
|
|
169
|
-
if hash.
|
|
170
|
-
raise TypeError, "value '
|
|
199
|
+
if hash.key? 'paymentProduct5001SpecificOutput'
|
|
200
|
+
raise TypeError, "value '#{hash['paymentProduct5001SpecificOutput']}' is not a Hash" unless hash['paymentProduct5001SpecificOutput'].is_a? Hash
|
|
171
201
|
@payment_product5001_specific_output = OnlinePayments::SDK::Domain::PaymentProduct5001SpecificOutput.new_from_hash(hash['paymentProduct5001SpecificOutput'])
|
|
172
202
|
end
|
|
173
|
-
if hash.
|
|
174
|
-
raise TypeError, "value '
|
|
203
|
+
if hash.key? 'paymentProduct5402SpecificOutput'
|
|
204
|
+
raise TypeError, "value '#{hash['paymentProduct5402SpecificOutput']}' is not a Hash" unless hash['paymentProduct5402SpecificOutput'].is_a? Hash
|
|
175
205
|
@payment_product5402_specific_output = OnlinePayments::SDK::Domain::PaymentProduct5402SpecificOutput.new_from_hash(hash['paymentProduct5402SpecificOutput'])
|
|
176
206
|
end
|
|
177
|
-
if hash.
|
|
178
|
-
raise TypeError, "value '
|
|
207
|
+
if hash.key? 'paymentProduct5500SpecificOutput'
|
|
208
|
+
raise TypeError, "value '#{hash['paymentProduct5500SpecificOutput']}' is not a Hash" unless hash['paymentProduct5500SpecificOutput'].is_a? Hash
|
|
179
209
|
@payment_product5500_specific_output = OnlinePayments::SDK::Domain::PaymentProduct5500SpecificOutput.new_from_hash(hash['paymentProduct5500SpecificOutput'])
|
|
180
210
|
end
|
|
181
|
-
if hash.
|
|
182
|
-
raise TypeError, "value '
|
|
211
|
+
if hash.key? 'paymentProduct840SpecificOutput'
|
|
212
|
+
raise TypeError, "value '#{hash['paymentProduct840SpecificOutput']}' is not a Hash" unless hash['paymentProduct840SpecificOutput'].is_a? Hash
|
|
183
213
|
@payment_product840_specific_output = OnlinePayments::SDK::Domain::PaymentProduct840SpecificOutput.new_from_hash(hash['paymentProduct840SpecificOutput'])
|
|
184
214
|
end
|
|
185
|
-
if hash.
|
|
215
|
+
if hash.key? 'paymentProductId'
|
|
186
216
|
@payment_product_id = hash['paymentProductId']
|
|
187
217
|
end
|
|
188
|
-
if hash.
|
|
218
|
+
if hash.key? 'token'
|
|
189
219
|
@token = hash['token']
|
|
190
220
|
end
|
|
191
221
|
end
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
1
3
|
#
|
|
2
4
|
# This file was automatically generated.
|
|
3
5
|
#
|
|
@@ -11,6 +13,12 @@ module OnlinePayments
|
|
|
11
13
|
|
|
12
14
|
attr_accessor :skip_email_validation
|
|
13
15
|
|
|
16
|
+
# Creates a new instance; every attribute can be given as a keyword argument.
|
|
17
|
+
def initialize(skip_email_validation: nil)
|
|
18
|
+
super()
|
|
19
|
+
@skip_email_validation = skip_email_validation
|
|
20
|
+
end
|
|
21
|
+
|
|
14
22
|
# Sets the property and returns this same instance.
|
|
15
23
|
def with_skip_email_validation(value)
|
|
16
24
|
@skip_email_validation = value
|
|
@@ -26,7 +34,7 @@ module OnlinePayments
|
|
|
26
34
|
|
|
27
35
|
def from_hash(hash)
|
|
28
36
|
super
|
|
29
|
-
if hash.
|
|
37
|
+
if hash.key? 'skipEmailValidation'
|
|
30
38
|
@skip_email_validation = hash['skipEmailValidation']
|
|
31
39
|
end
|
|
32
40
|
end
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
1
3
|
#
|
|
2
4
|
# This file was automatically generated.
|
|
3
5
|
#
|
|
@@ -11,6 +13,12 @@ module OnlinePayments
|
|
|
11
13
|
|
|
12
14
|
attr_accessor :complete_remaining_payment_amount
|
|
13
15
|
|
|
16
|
+
# Creates a new instance; every attribute can be given as a keyword argument.
|
|
17
|
+
def initialize(complete_remaining_payment_amount: nil)
|
|
18
|
+
super()
|
|
19
|
+
@complete_remaining_payment_amount = complete_remaining_payment_amount
|
|
20
|
+
end
|
|
21
|
+
|
|
14
22
|
# Sets the property and returns this same instance.
|
|
15
23
|
def with_complete_remaining_payment_amount(value)
|
|
16
24
|
@complete_remaining_payment_amount = value
|
|
@@ -26,7 +34,7 @@ module OnlinePayments
|
|
|
26
34
|
|
|
27
35
|
def from_hash(hash)
|
|
28
36
|
super
|
|
29
|
-
if hash.
|
|
37
|
+
if hash.key? 'completeRemainingPaymentAmount'
|
|
30
38
|
@complete_remaining_payment_amount = hash['completeRemainingPaymentAmount']
|
|
31
39
|
end
|
|
32
40
|
end
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
1
3
|
#
|
|
2
4
|
# This file was automatically generated.
|
|
3
5
|
#
|
|
@@ -11,6 +13,12 @@ module OnlinePayments
|
|
|
11
13
|
|
|
12
14
|
attr_accessor :complete_remaining_payment_amount
|
|
13
15
|
|
|
16
|
+
# Creates a new instance; every attribute can be given as a keyword argument.
|
|
17
|
+
def initialize(complete_remaining_payment_amount: nil)
|
|
18
|
+
super()
|
|
19
|
+
@complete_remaining_payment_amount = complete_remaining_payment_amount
|
|
20
|
+
end
|
|
21
|
+
|
|
14
22
|
# Sets the property and returns this same instance.
|
|
15
23
|
def with_complete_remaining_payment_amount(value)
|
|
16
24
|
@complete_remaining_payment_amount = value
|
|
@@ -26,7 +34,7 @@ module OnlinePayments
|
|
|
26
34
|
|
|
27
35
|
def from_hash(hash)
|
|
28
36
|
super
|
|
29
|
-
if hash.
|
|
37
|
+
if hash.key? 'completeRemainingPaymentAmount'
|
|
30
38
|
@complete_remaining_payment_amount = hash['completeRemainingPaymentAmount']
|
|
31
39
|
end
|
|
32
40
|
end
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
1
3
|
#
|
|
2
4
|
# This file was automatically generated.
|
|
3
5
|
#
|
|
@@ -11,6 +13,12 @@ module OnlinePayments
|
|
|
11
13
|
|
|
12
14
|
attr_accessor :complete_remaining_payment_amount
|
|
13
15
|
|
|
16
|
+
# Creates a new instance; every attribute can be given as a keyword argument.
|
|
17
|
+
def initialize(complete_remaining_payment_amount: nil)
|
|
18
|
+
super()
|
|
19
|
+
@complete_remaining_payment_amount = complete_remaining_payment_amount
|
|
20
|
+
end
|
|
21
|
+
|
|
14
22
|
# Sets the property and returns this same instance.
|
|
15
23
|
def with_complete_remaining_payment_amount(value)
|
|
16
24
|
@complete_remaining_payment_amount = value
|
|
@@ -26,7 +34,7 @@ module OnlinePayments
|
|
|
26
34
|
|
|
27
35
|
def from_hash(hash)
|
|
28
36
|
super
|
|
29
|
-
if hash.
|
|
37
|
+
if hash.key? 'completeRemainingPaymentAmount'
|
|
30
38
|
@complete_remaining_payment_amount = hash['completeRemainingPaymentAmount']
|
|
31
39
|
end
|
|
32
40
|
end
|