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
|
#
|
|
@@ -19,6 +21,14 @@ module OnlinePayments
|
|
|
19
21
|
|
|
20
22
|
attr_accessor :recipient_name
|
|
21
23
|
|
|
24
|
+
# Creates a new instance; every attribute can be given as a keyword argument.
|
|
25
|
+
def initialize(description: nil, expiration_date: nil, recipient_name: nil)
|
|
26
|
+
super()
|
|
27
|
+
@description = description
|
|
28
|
+
@expiration_date = expiration_date
|
|
29
|
+
@recipient_name = recipient_name
|
|
30
|
+
end
|
|
31
|
+
|
|
22
32
|
# Sets the property and returns this same instance.
|
|
23
33
|
def with_description(value)
|
|
24
34
|
@description = value
|
|
@@ -48,13 +58,13 @@ module OnlinePayments
|
|
|
48
58
|
|
|
49
59
|
def from_hash(hash)
|
|
50
60
|
super
|
|
51
|
-
if hash.
|
|
61
|
+
if hash.key? 'description'
|
|
52
62
|
@description = hash['description']
|
|
53
63
|
end
|
|
54
|
-
if hash.
|
|
64
|
+
if hash.key? 'expirationDate'
|
|
55
65
|
@expiration_date = DateTime.parse(hash['expirationDate'])
|
|
56
66
|
end
|
|
57
|
-
if hash.
|
|
67
|
+
if hash.key? 'recipientName'
|
|
58
68
|
@recipient_name = hash['recipientName']
|
|
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
|
#
|
|
@@ -65,6 +67,40 @@ module OnlinePayments
|
|
|
65
67
|
|
|
66
68
|
attr_accessor :transaction_date
|
|
67
69
|
|
|
70
|
+
# Creates a new instance; every attribute can be given as a keyword argument.
|
|
71
|
+
def initialize(acquired_amount: nil,
|
|
72
|
+
amount_of_money: nil,
|
|
73
|
+
amount_paid: nil,
|
|
74
|
+
card_payment_method_specific_output: nil,
|
|
75
|
+
customer: nil,
|
|
76
|
+
discount: nil,
|
|
77
|
+
merchant_parameters: nil,
|
|
78
|
+
mobile_payment_method_specific_output: nil,
|
|
79
|
+
payment_creation_date: nil,
|
|
80
|
+
payment_method: nil,
|
|
81
|
+
redirect_payment_method_specific_output: nil,
|
|
82
|
+
references: nil,
|
|
83
|
+
sepa_direct_debit_payment_method_specific_output: nil,
|
|
84
|
+
surcharge_specific_output: nil,
|
|
85
|
+
transaction_date: nil)
|
|
86
|
+
super()
|
|
87
|
+
@acquired_amount = acquired_amount
|
|
88
|
+
@amount_of_money = amount_of_money
|
|
89
|
+
@amount_paid = amount_paid
|
|
90
|
+
@card_payment_method_specific_output = card_payment_method_specific_output
|
|
91
|
+
@customer = customer
|
|
92
|
+
@discount = discount
|
|
93
|
+
@merchant_parameters = merchant_parameters
|
|
94
|
+
@mobile_payment_method_specific_output = mobile_payment_method_specific_output
|
|
95
|
+
@payment_creation_date = payment_creation_date
|
|
96
|
+
@payment_method = payment_method
|
|
97
|
+
@redirect_payment_method_specific_output = redirect_payment_method_specific_output
|
|
98
|
+
@references = references
|
|
99
|
+
@sepa_direct_debit_payment_method_specific_output = sepa_direct_debit_payment_method_specific_output
|
|
100
|
+
@surcharge_specific_output = surcharge_specific_output
|
|
101
|
+
@transaction_date = transaction_date
|
|
102
|
+
end
|
|
103
|
+
|
|
68
104
|
# Sets the property and returns this same instance.
|
|
69
105
|
def with_acquired_amount(value)
|
|
70
106
|
@acquired_amount = value
|
|
@@ -178,59 +214,59 @@ module OnlinePayments
|
|
|
178
214
|
|
|
179
215
|
def from_hash(hash)
|
|
180
216
|
super
|
|
181
|
-
if hash.
|
|
182
|
-
raise TypeError, "value '
|
|
217
|
+
if hash.key? 'acquiredAmount'
|
|
218
|
+
raise TypeError, "value '#{hash['acquiredAmount']}' is not a Hash" unless hash['acquiredAmount'].is_a? Hash
|
|
183
219
|
@acquired_amount = OnlinePayments::SDK::Domain::AmountOfMoney.new_from_hash(hash['acquiredAmount'])
|
|
184
220
|
end
|
|
185
|
-
if hash.
|
|
186
|
-
raise TypeError, "value '
|
|
221
|
+
if hash.key? 'amountOfMoney'
|
|
222
|
+
raise TypeError, "value '#{hash['amountOfMoney']}' is not a Hash" unless hash['amountOfMoney'].is_a? Hash
|
|
187
223
|
@amount_of_money = OnlinePayments::SDK::Domain::AmountOfMoney.new_from_hash(hash['amountOfMoney'])
|
|
188
224
|
end
|
|
189
|
-
if hash.
|
|
225
|
+
if hash.key? 'amountPaid'
|
|
190
226
|
@amount_paid = hash['amountPaid']
|
|
191
227
|
end
|
|
192
|
-
if hash.
|
|
193
|
-
raise TypeError, "value '
|
|
228
|
+
if hash.key? 'cardPaymentMethodSpecificOutput'
|
|
229
|
+
raise TypeError, "value '#{hash['cardPaymentMethodSpecificOutput']}' is not a Hash" unless hash['cardPaymentMethodSpecificOutput'].is_a? Hash
|
|
194
230
|
@card_payment_method_specific_output = OnlinePayments::SDK::Domain::CardPaymentMethodSpecificOutput.new_from_hash(hash['cardPaymentMethodSpecificOutput'])
|
|
195
231
|
end
|
|
196
|
-
if hash.
|
|
197
|
-
raise TypeError, "value '
|
|
232
|
+
if hash.key? 'customer'
|
|
233
|
+
raise TypeError, "value '#{hash['customer']}' is not a Hash" unless hash['customer'].is_a? Hash
|
|
198
234
|
@customer = OnlinePayments::SDK::Domain::CustomerOutput.new_from_hash(hash['customer'])
|
|
199
235
|
end
|
|
200
|
-
if hash.
|
|
201
|
-
raise TypeError, "value '
|
|
236
|
+
if hash.key? 'discount'
|
|
237
|
+
raise TypeError, "value '#{hash['discount']}' is not a Hash" unless hash['discount'].is_a? Hash
|
|
202
238
|
@discount = OnlinePayments::SDK::Domain::Discount.new_from_hash(hash['discount'])
|
|
203
239
|
end
|
|
204
|
-
if hash.
|
|
240
|
+
if hash.key? 'merchantParameters'
|
|
205
241
|
@merchant_parameters = hash['merchantParameters']
|
|
206
242
|
end
|
|
207
|
-
if hash.
|
|
208
|
-
raise TypeError, "value '
|
|
243
|
+
if hash.key? 'mobilePaymentMethodSpecificOutput'
|
|
244
|
+
raise TypeError, "value '#{hash['mobilePaymentMethodSpecificOutput']}' is not a Hash" unless hash['mobilePaymentMethodSpecificOutput'].is_a? Hash
|
|
209
245
|
@mobile_payment_method_specific_output = OnlinePayments::SDK::Domain::MobilePaymentMethodSpecificOutput.new_from_hash(hash['mobilePaymentMethodSpecificOutput'])
|
|
210
246
|
end
|
|
211
|
-
if hash.
|
|
247
|
+
if hash.key? 'paymentCreationDate'
|
|
212
248
|
@payment_creation_date = DateTime.parse(hash['paymentCreationDate'])
|
|
213
249
|
end
|
|
214
|
-
if hash.
|
|
250
|
+
if hash.key? 'paymentMethod'
|
|
215
251
|
@payment_method = hash['paymentMethod']
|
|
216
252
|
end
|
|
217
|
-
if hash.
|
|
218
|
-
raise TypeError, "value '
|
|
253
|
+
if hash.key? 'redirectPaymentMethodSpecificOutput'
|
|
254
|
+
raise TypeError, "value '#{hash['redirectPaymentMethodSpecificOutput']}' is not a Hash" unless hash['redirectPaymentMethodSpecificOutput'].is_a? Hash
|
|
219
255
|
@redirect_payment_method_specific_output = OnlinePayments::SDK::Domain::RedirectPaymentMethodSpecificOutput.new_from_hash(hash['redirectPaymentMethodSpecificOutput'])
|
|
220
256
|
end
|
|
221
|
-
if hash.
|
|
222
|
-
raise TypeError, "value '
|
|
257
|
+
if hash.key? 'references'
|
|
258
|
+
raise TypeError, "value '#{hash['references']}' is not a Hash" unless hash['references'].is_a? Hash
|
|
223
259
|
@references = OnlinePayments::SDK::Domain::PaymentReferences.new_from_hash(hash['references'])
|
|
224
260
|
end
|
|
225
|
-
if hash.
|
|
226
|
-
raise TypeError, "value '
|
|
261
|
+
if hash.key? 'sepaDirectDebitPaymentMethodSpecificOutput'
|
|
262
|
+
raise TypeError, "value '#{hash['sepaDirectDebitPaymentMethodSpecificOutput']}' is not a Hash" unless hash['sepaDirectDebitPaymentMethodSpecificOutput'].is_a? Hash
|
|
227
263
|
@sepa_direct_debit_payment_method_specific_output = OnlinePayments::SDK::Domain::SepaDirectDebitPaymentMethodSpecificOutput.new_from_hash(hash['sepaDirectDebitPaymentMethodSpecificOutput'])
|
|
228
264
|
end
|
|
229
|
-
if hash.
|
|
230
|
-
raise TypeError, "value '
|
|
265
|
+
if hash.key? 'surchargeSpecificOutput'
|
|
266
|
+
raise TypeError, "value '#{hash['surchargeSpecificOutput']}' is not a Hash" unless hash['surchargeSpecificOutput'].is_a? Hash
|
|
231
267
|
@surcharge_specific_output = OnlinePayments::SDK::Domain::SurchargeSpecificOutput.new_from_hash(hash['surchargeSpecificOutput'])
|
|
232
268
|
end
|
|
233
|
-
if hash.
|
|
269
|
+
if hash.key? 'transactionDate'
|
|
234
270
|
@transaction_date = DateTime.parse(hash['transactionDate'])
|
|
235
271
|
end
|
|
236
272
|
end
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
1
3
|
#
|
|
2
4
|
# This file was automatically generated.
|
|
3
5
|
#
|
|
@@ -25,6 +27,15 @@ module OnlinePayments
|
|
|
25
27
|
|
|
26
28
|
attr_accessor :transaction_date
|
|
27
29
|
|
|
30
|
+
# Creates a new instance; every attribute can be given as a keyword argument.
|
|
31
|
+
def initialize(amount_of_money: nil, card_payment_method_specific_output: nil, references: nil, transaction_date: nil)
|
|
32
|
+
super()
|
|
33
|
+
@amount_of_money = amount_of_money
|
|
34
|
+
@card_payment_method_specific_output = card_payment_method_specific_output
|
|
35
|
+
@references = references
|
|
36
|
+
@transaction_date = transaction_date
|
|
37
|
+
end
|
|
38
|
+
|
|
28
39
|
# Sets the property and returns this same instance.
|
|
29
40
|
def with_amount_of_money(value)
|
|
30
41
|
@amount_of_money = value
|
|
@@ -61,19 +72,19 @@ module OnlinePayments
|
|
|
61
72
|
|
|
62
73
|
def from_hash(hash)
|
|
63
74
|
super
|
|
64
|
-
if hash.
|
|
65
|
-
raise TypeError, "value '
|
|
75
|
+
if hash.key? 'amountOfMoney'
|
|
76
|
+
raise TypeError, "value '#{hash['amountOfMoney']}' is not a Hash" unless hash['amountOfMoney'].is_a? Hash
|
|
66
77
|
@amount_of_money = OnlinePayments::SDK::Domain::AmountOfMoney.new_from_hash(hash['amountOfMoney'])
|
|
67
78
|
end
|
|
68
|
-
if hash.
|
|
69
|
-
raise TypeError, "value '
|
|
79
|
+
if hash.key? 'cardPaymentMethodSpecificOutput'
|
|
80
|
+
raise TypeError, "value '#{hash['cardPaymentMethodSpecificOutput']}' is not a Hash" unless hash['cardPaymentMethodSpecificOutput'].is_a? Hash
|
|
70
81
|
@card_payment_method_specific_output = OnlinePayments::SDK::Domain::CardPaymentMethodSpecificOutputSummary.new_from_hash(hash['cardPaymentMethodSpecificOutput'])
|
|
71
82
|
end
|
|
72
|
-
if hash.
|
|
73
|
-
raise TypeError, "value '
|
|
83
|
+
if hash.key? 'references'
|
|
84
|
+
raise TypeError, "value '#{hash['references']}' is not a Hash" unless hash['references'].is_a? Hash
|
|
74
85
|
@references = OnlinePayments::SDK::Domain::PaymentReferences.new_from_hash(hash['references'])
|
|
75
86
|
end
|
|
76
|
-
if hash.
|
|
87
|
+
if hash.key? 'transactionDate'
|
|
77
88
|
@transaction_date = DateTime.parse(hash['transactionDate'])
|
|
78
89
|
end
|
|
79
90
|
end
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
1
3
|
#
|
|
2
4
|
# This file was automatically generated.
|
|
3
5
|
#
|
|
@@ -56,6 +58,38 @@ module OnlinePayments
|
|
|
56
58
|
|
|
57
59
|
attr_accessor :uses_redirection_to3rd_party
|
|
58
60
|
|
|
61
|
+
# Creates a new instance; every attribute can be given as a keyword argument.
|
|
62
|
+
def initialize(accounts_on_file: nil,
|
|
63
|
+
allows_authentication: nil,
|
|
64
|
+
allows_recurring: nil,
|
|
65
|
+
allows_tokenization: nil,
|
|
66
|
+
display_hints: nil,
|
|
67
|
+
display_hints_list: nil,
|
|
68
|
+
fields: nil,
|
|
69
|
+
id: nil,
|
|
70
|
+
payment_method: nil,
|
|
71
|
+
payment_product302_specific_data: nil,
|
|
72
|
+
payment_product320_specific_data: nil,
|
|
73
|
+
payment_product5002_specific_data: nil,
|
|
74
|
+
payment_product_group: nil,
|
|
75
|
+
uses_redirection_to3rd_party: nil)
|
|
76
|
+
super()
|
|
77
|
+
@accounts_on_file = accounts_on_file
|
|
78
|
+
@allows_authentication = allows_authentication
|
|
79
|
+
@allows_recurring = allows_recurring
|
|
80
|
+
@allows_tokenization = allows_tokenization
|
|
81
|
+
@display_hints = display_hints
|
|
82
|
+
@display_hints_list = display_hints_list
|
|
83
|
+
@fields = fields
|
|
84
|
+
@id = id
|
|
85
|
+
@payment_method = payment_method
|
|
86
|
+
@payment_product302_specific_data = payment_product302_specific_data
|
|
87
|
+
@payment_product320_specific_data = payment_product320_specific_data
|
|
88
|
+
@payment_product5002_specific_data = payment_product5002_specific_data
|
|
89
|
+
@payment_product_group = payment_product_group
|
|
90
|
+
@uses_redirection_to3rd_party = uses_redirection_to3rd_party
|
|
91
|
+
end
|
|
92
|
+
|
|
59
93
|
# Sets the property and returns this same instance.
|
|
60
94
|
def with_accounts_on_file(value)
|
|
61
95
|
@accounts_on_file = value
|
|
@@ -162,62 +196,62 @@ module OnlinePayments
|
|
|
162
196
|
|
|
163
197
|
def from_hash(hash)
|
|
164
198
|
super
|
|
165
|
-
if hash.
|
|
166
|
-
raise TypeError, "value '
|
|
199
|
+
if hash.key? 'accountsOnFile'
|
|
200
|
+
raise TypeError, "value '#{hash['accountsOnFile']}' is not an Array" unless hash['accountsOnFile'].is_a? Array
|
|
167
201
|
@accounts_on_file = []
|
|
168
202
|
hash['accountsOnFile'].each do |e|
|
|
169
203
|
@accounts_on_file << OnlinePayments::SDK::Domain::AccountOnFile.new_from_hash(e)
|
|
170
204
|
end
|
|
171
205
|
end
|
|
172
|
-
if hash.
|
|
206
|
+
if hash.key? 'allowsAuthentication'
|
|
173
207
|
@allows_authentication = hash['allowsAuthentication']
|
|
174
208
|
end
|
|
175
|
-
if hash.
|
|
209
|
+
if hash.key? 'allowsRecurring'
|
|
176
210
|
@allows_recurring = hash['allowsRecurring']
|
|
177
211
|
end
|
|
178
|
-
if hash.
|
|
212
|
+
if hash.key? 'allowsTokenization'
|
|
179
213
|
@allows_tokenization = hash['allowsTokenization']
|
|
180
214
|
end
|
|
181
|
-
if hash.
|
|
182
|
-
raise TypeError, "value '
|
|
215
|
+
if hash.key? 'displayHints'
|
|
216
|
+
raise TypeError, "value '#{hash['displayHints']}' is not a Hash" unless hash['displayHints'].is_a? Hash
|
|
183
217
|
@display_hints = OnlinePayments::SDK::Domain::PaymentProductDisplayHints.new_from_hash(hash['displayHints'])
|
|
184
218
|
end
|
|
185
|
-
if hash.
|
|
186
|
-
raise TypeError, "value '
|
|
219
|
+
if hash.key? 'displayHintsList'
|
|
220
|
+
raise TypeError, "value '#{hash['displayHintsList']}' is not an Array" unless hash['displayHintsList'].is_a? Array
|
|
187
221
|
@display_hints_list = []
|
|
188
222
|
hash['displayHintsList'].each do |e|
|
|
189
223
|
@display_hints_list << OnlinePayments::SDK::Domain::PaymentProductDisplayHints.new_from_hash(e)
|
|
190
224
|
end
|
|
191
225
|
end
|
|
192
|
-
if hash.
|
|
193
|
-
raise TypeError, "value '
|
|
226
|
+
if hash.key? 'fields'
|
|
227
|
+
raise TypeError, "value '#{hash['fields']}' is not an Array" unless hash['fields'].is_a? Array
|
|
194
228
|
@fields = []
|
|
195
229
|
hash['fields'].each do |e|
|
|
196
230
|
@fields << OnlinePayments::SDK::Domain::PaymentProductField.new_from_hash(e)
|
|
197
231
|
end
|
|
198
232
|
end
|
|
199
|
-
if hash.
|
|
233
|
+
if hash.key? 'id'
|
|
200
234
|
@id = hash['id']
|
|
201
235
|
end
|
|
202
|
-
if hash.
|
|
236
|
+
if hash.key? 'paymentMethod'
|
|
203
237
|
@payment_method = hash['paymentMethod']
|
|
204
238
|
end
|
|
205
|
-
if hash.
|
|
206
|
-
raise TypeError, "value '
|
|
239
|
+
if hash.key? 'paymentProduct302SpecificData'
|
|
240
|
+
raise TypeError, "value '#{hash['paymentProduct302SpecificData']}' is not a Hash" unless hash['paymentProduct302SpecificData'].is_a? Hash
|
|
207
241
|
@payment_product302_specific_data = OnlinePayments::SDK::Domain::PaymentProduct302SpecificData.new_from_hash(hash['paymentProduct302SpecificData'])
|
|
208
242
|
end
|
|
209
|
-
if hash.
|
|
210
|
-
raise TypeError, "value '
|
|
243
|
+
if hash.key? 'paymentProduct320SpecificData'
|
|
244
|
+
raise TypeError, "value '#{hash['paymentProduct320SpecificData']}' is not a Hash" unless hash['paymentProduct320SpecificData'].is_a? Hash
|
|
211
245
|
@payment_product320_specific_data = OnlinePayments::SDK::Domain::PaymentProduct320SpecificData.new_from_hash(hash['paymentProduct320SpecificData'])
|
|
212
246
|
end
|
|
213
|
-
if hash.
|
|
214
|
-
raise TypeError, "value '
|
|
247
|
+
if hash.key? 'paymentProduct5002SpecificData'
|
|
248
|
+
raise TypeError, "value '#{hash['paymentProduct5002SpecificData']}' is not a Hash" unless hash['paymentProduct5002SpecificData'].is_a? Hash
|
|
215
249
|
@payment_product5002_specific_data = OnlinePayments::SDK::Domain::PaymentProduct5002SpecificData.new_from_hash(hash['paymentProduct5002SpecificData'])
|
|
216
250
|
end
|
|
217
|
-
if hash.
|
|
251
|
+
if hash.key? 'paymentProductGroup'
|
|
218
252
|
@payment_product_group = hash['paymentProductGroup']
|
|
219
253
|
end
|
|
220
|
-
if hash.
|
|
254
|
+
if hash.key? 'usesRedirectionTo3rdParty'
|
|
221
255
|
@uses_redirection_to3rd_party = hash['usesRedirectionTo3rdParty']
|
|
222
256
|
end
|
|
223
257
|
end
|
|
@@ -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 :qr_code
|
|
25
27
|
|
|
28
|
+
# Creates a new instance; every attribute can be given as a keyword argument.
|
|
29
|
+
def initialize(payment_bic: nil, payment_beneficiary: nil, payment_iban: nil, payment_reference: nil, qr_code: nil)
|
|
30
|
+
super()
|
|
31
|
+
@payment_bic = payment_bic
|
|
32
|
+
@payment_beneficiary = payment_beneficiary
|
|
33
|
+
@payment_iban = payment_iban
|
|
34
|
+
@payment_reference = payment_reference
|
|
35
|
+
@qr_code = qr_code
|
|
36
|
+
end
|
|
37
|
+
|
|
26
38
|
# Sets the property and returns this same instance.
|
|
27
39
|
def with_payment_bic(value)
|
|
28
40
|
@payment_bic = 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? 'paymentBIC'
|
|
70
82
|
@payment_bic = hash['paymentBIC']
|
|
71
83
|
end
|
|
72
|
-
if hash.
|
|
84
|
+
if hash.key? 'paymentBeneficiary'
|
|
73
85
|
@payment_beneficiary = hash['paymentBeneficiary']
|
|
74
86
|
end
|
|
75
|
-
if hash.
|
|
87
|
+
if hash.key? 'paymentIBAN'
|
|
76
88
|
@payment_iban = hash['paymentIBAN']
|
|
77
89
|
end
|
|
78
|
-
if hash.
|
|
90
|
+
if hash.key? 'paymentReference'
|
|
79
91
|
@payment_reference = hash['paymentReference']
|
|
80
92
|
end
|
|
81
|
-
if hash.
|
|
93
|
+
if hash.key? 'qrCode'
|
|
82
94
|
@qr_code = hash['qrCode']
|
|
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
|
#
|
|
@@ -12,6 +14,12 @@ module OnlinePayments
|
|
|
12
14
|
|
|
13
15
|
attr_accessor :three_d_secure
|
|
14
16
|
|
|
17
|
+
# Creates a new instance; every attribute can be given as a keyword argument.
|
|
18
|
+
def initialize(three_d_secure: nil)
|
|
19
|
+
super()
|
|
20
|
+
@three_d_secure = three_d_secure
|
|
21
|
+
end
|
|
22
|
+
|
|
15
23
|
# Sets the property and returns this same instance.
|
|
16
24
|
def with_three_d_secure(value)
|
|
17
25
|
@three_d_secure = value
|
|
@@ -27,8 +35,8 @@ module OnlinePayments
|
|
|
27
35
|
|
|
28
36
|
def from_hash(hash)
|
|
29
37
|
super
|
|
30
|
-
if hash.
|
|
31
|
-
raise TypeError, "value '
|
|
38
|
+
if hash.key? 'threeDSecure'
|
|
39
|
+
raise TypeError, "value '#{hash['threeDSecure']}' is not a Hash" unless hash['threeDSecure'].is_a? Hash
|
|
32
40
|
@three_d_secure = OnlinePayments::SDK::Domain::PaymentProduct130SpecificThreeDSecure.new_from_hash(hash['threeDSecure'])
|
|
33
41
|
end
|
|
34
42
|
end
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
1
3
|
#
|
|
2
4
|
# This file was automatically generated.
|
|
3
5
|
#
|
|
@@ -20,6 +22,15 @@ module OnlinePayments
|
|
|
20
22
|
|
|
21
23
|
attr_accessor :usecase
|
|
22
24
|
|
|
25
|
+
# Creates a new instance; every attribute can be given as a keyword argument.
|
|
26
|
+
def initialize(acquirer_exemption: nil, merchant_score: nil, number_of_items: nil, usecase: nil)
|
|
27
|
+
super()
|
|
28
|
+
@acquirer_exemption = acquirer_exemption
|
|
29
|
+
@merchant_score = merchant_score
|
|
30
|
+
@number_of_items = number_of_items
|
|
31
|
+
@usecase = usecase
|
|
32
|
+
end
|
|
33
|
+
|
|
23
34
|
# Sets the property and returns this same instance.
|
|
24
35
|
def with_acquirer_exemption(value)
|
|
25
36
|
@acquirer_exemption = value
|
|
@@ -56,16 +67,16 @@ module OnlinePayments
|
|
|
56
67
|
|
|
57
68
|
def from_hash(hash)
|
|
58
69
|
super
|
|
59
|
-
if hash.
|
|
70
|
+
if hash.key? 'acquirerExemption'
|
|
60
71
|
@acquirer_exemption = hash['acquirerExemption']
|
|
61
72
|
end
|
|
62
|
-
if hash.
|
|
73
|
+
if hash.key? 'merchantScore'
|
|
63
74
|
@merchant_score = hash['merchantScore']
|
|
64
75
|
end
|
|
65
|
-
if hash.
|
|
76
|
+
if hash.key? 'numberOfItems'
|
|
66
77
|
@number_of_items = hash['numberOfItems']
|
|
67
78
|
end
|
|
68
|
-
if hash.
|
|
79
|
+
if hash.key? 'usecase'
|
|
69
80
|
@usecase = hash['usecase']
|
|
70
81
|
end
|
|
71
82
|
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 :url_intent
|
|
16
18
|
|
|
19
|
+
# Creates a new instance; every attribute can be given as a keyword argument.
|
|
20
|
+
def initialize(qr_code: nil, url_intent: nil)
|
|
21
|
+
super()
|
|
22
|
+
@qr_code = qr_code
|
|
23
|
+
@url_intent = url_intent
|
|
24
|
+
end
|
|
25
|
+
|
|
17
26
|
# Sets the property and returns this same instance.
|
|
18
27
|
def with_qr_code(value)
|
|
19
28
|
@qr_code = 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? 'qrCode'
|
|
40
49
|
@qr_code = hash['qrCode']
|
|
41
50
|
end
|
|
42
|
-
if hash.
|
|
51
|
+
if hash.key? 'urlIntent'
|
|
43
52
|
@url_intent = hash['urlIntent']
|
|
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
|
#
|
|
@@ -20,6 +22,15 @@ module OnlinePayments
|
|
|
20
22
|
|
|
21
23
|
attr_accessor :wip_merchant_authentication_method
|
|
22
24
|
|
|
25
|
+
# Creates a new instance; every attribute can be given as a keyword argument.
|
|
26
|
+
def initialize(force_authentication: nil, is_deferred_payment: nil, is_wip_transaction: nil, wip_merchant_authentication_method: nil)
|
|
27
|
+
super()
|
|
28
|
+
@force_authentication = force_authentication
|
|
29
|
+
@is_deferred_payment = is_deferred_payment
|
|
30
|
+
@is_wip_transaction = is_wip_transaction
|
|
31
|
+
@wip_merchant_authentication_method = wip_merchant_authentication_method
|
|
32
|
+
end
|
|
33
|
+
|
|
23
34
|
# Sets the property and returns this same instance.
|
|
24
35
|
def with_force_authentication(value)
|
|
25
36
|
@force_authentication = value
|
|
@@ -56,16 +67,16 @@ module OnlinePayments
|
|
|
56
67
|
|
|
57
68
|
def from_hash(hash)
|
|
58
69
|
super
|
|
59
|
-
if hash.
|
|
70
|
+
if hash.key? 'forceAuthentication'
|
|
60
71
|
@force_authentication = hash['forceAuthentication']
|
|
61
72
|
end
|
|
62
|
-
if hash.
|
|
73
|
+
if hash.key? 'isDeferredPayment'
|
|
63
74
|
@is_deferred_payment = hash['isDeferredPayment']
|
|
64
75
|
end
|
|
65
|
-
if hash.
|
|
76
|
+
if hash.key? 'isWipTransaction'
|
|
66
77
|
@is_wip_transaction = hash['isWipTransaction']
|
|
67
78
|
end
|
|
68
|
-
if hash.
|
|
79
|
+
if hash.key? 'wipMerchantAuthenticationMethod'
|
|
69
80
|
@wip_merchant_authentication_method = hash['wipMerchantAuthenticationMethod']
|
|
70
81
|
end
|
|
71
82
|
end
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
1
3
|
#
|
|
2
4
|
# This file was automatically generated.
|
|
3
5
|
#
|
|
@@ -17,6 +19,14 @@ module OnlinePayments
|
|
|
17
19
|
|
|
18
20
|
attr_accessor :purchasing_buyer_reference2
|
|
19
21
|
|
|
22
|
+
# Creates a new instance; every attribute can be given as a keyword argument.
|
|
23
|
+
def initialize(market_number: nil, purchasing_buyer_reference1: nil, purchasing_buyer_reference2: nil)
|
|
24
|
+
super()
|
|
25
|
+
@market_number = market_number
|
|
26
|
+
@purchasing_buyer_reference1 = purchasing_buyer_reference1
|
|
27
|
+
@purchasing_buyer_reference2 = purchasing_buyer_reference2
|
|
28
|
+
end
|
|
29
|
+
|
|
20
30
|
# Sets the property and returns this same instance.
|
|
21
31
|
def with_market_number(value)
|
|
22
32
|
@market_number = value
|
|
@@ -46,13 +56,13 @@ module OnlinePayments
|
|
|
46
56
|
|
|
47
57
|
def from_hash(hash)
|
|
48
58
|
super
|
|
49
|
-
if hash.
|
|
59
|
+
if hash.key? 'marketNumber'
|
|
50
60
|
@market_number = hash['marketNumber']
|
|
51
61
|
end
|
|
52
|
-
if hash.
|
|
62
|
+
if hash.key? 'purchasingBuyerReference1'
|
|
53
63
|
@purchasing_buyer_reference1 = hash['purchasingBuyerReference1']
|
|
54
64
|
end
|
|
55
|
-
if hash.
|
|
65
|
+
if hash.key? 'purchasingBuyerReference2'
|
|
56
66
|
@purchasing_buyer_reference2 = hash['purchasingBuyerReference2']
|
|
57
67
|
end
|
|
58
68
|
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 :networks
|
|
13
15
|
|
|
16
|
+
# Creates a new instance; every attribute can be given as a keyword argument.
|
|
17
|
+
def initialize(networks: nil)
|
|
18
|
+
super()
|
|
19
|
+
@networks = networks
|
|
20
|
+
end
|
|
21
|
+
|
|
14
22
|
# Sets the property and returns this same instance.
|
|
15
23
|
def with_networks(value)
|
|
16
24
|
@networks = value
|
|
@@ -26,8 +34,8 @@ module OnlinePayments
|
|
|
26
34
|
|
|
27
35
|
def from_hash(hash)
|
|
28
36
|
super
|
|
29
|
-
if hash.
|
|
30
|
-
raise TypeError, "value '
|
|
37
|
+
if hash.key? 'networks'
|
|
38
|
+
raise TypeError, "value '#{hash['networks']}' is not an Array" unless hash['networks'].is_a? Array
|
|
31
39
|
@networks = []
|
|
32
40
|
hash['networks'].each do |e|
|
|
33
41
|
@networks << e
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
1
3
|
#
|
|
2
4
|
# This file was automatically generated.
|
|
3
5
|
#
|
|
@@ -15,6 +17,13 @@ module OnlinePayments
|
|
|
15
17
|
|
|
16
18
|
attr_accessor :shipping_address
|
|
17
19
|
|
|
20
|
+
# Creates a new instance; every attribute can be given as a keyword argument.
|
|
21
|
+
def initialize(billing_address: nil, shipping_address: nil)
|
|
22
|
+
super()
|
|
23
|
+
@billing_address = billing_address
|
|
24
|
+
@shipping_address = shipping_address
|
|
25
|
+
end
|
|
26
|
+
|
|
18
27
|
# Sets the property and returns this same instance.
|
|
19
28
|
def with_billing_address(value)
|
|
20
29
|
@billing_address = value
|
|
@@ -37,12 +46,12 @@ module OnlinePayments
|
|
|
37
46
|
|
|
38
47
|
def from_hash(hash)
|
|
39
48
|
super
|
|
40
|
-
if hash.
|
|
41
|
-
raise TypeError, "value '
|
|
49
|
+
if hash.key? 'billingAddress'
|
|
50
|
+
raise TypeError, "value '#{hash['billingAddress']}' is not a Hash" unless hash['billingAddress'].is_a? Hash
|
|
42
51
|
@billing_address = OnlinePayments::SDK::Domain::AddressPersonal.new_from_hash(hash['billingAddress'])
|
|
43
52
|
end
|
|
44
|
-
if hash.
|
|
45
|
-
raise TypeError, "value '
|
|
53
|
+
if hash.key? 'shippingAddress'
|
|
54
|
+
raise TypeError, "value '#{hash['shippingAddress']}' is not a Hash" unless hash['shippingAddress'].is_a? Hash
|
|
46
55
|
@shipping_address = OnlinePayments::SDK::Domain::AddressPersonal.new_from_hash(hash['shippingAddress'])
|
|
47
56
|
end
|
|
48
57
|
end
|