onlinepayments-sdk-ruby 11.1.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 +9 -7
- data/README.md +133 -47
- 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 +127 -54
- 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 +3 -1
- 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 +12 -7
- data/skills/worldline-direct/examples/client_setup.rb +10 -13
- data/skills/worldline-direct/examples/webhooks_setup.rb +2 -2
- data/skills/worldline-direct/references/ruby.md +30 -29
- data/skills/worldline-direct/references/webhooks.md +2 -2
- metadata +76 -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
|
#
|
|
@@ -15,6 +17,13 @@ module OnlinePayments
|
|
|
15
17
|
|
|
16
18
|
attr_accessor :number_of_gift_cards
|
|
17
19
|
|
|
20
|
+
# Creates a new instance; every attribute can be given as a keyword argument.
|
|
21
|
+
def initialize(amount_of_money: nil, number_of_gift_cards: nil)
|
|
22
|
+
super()
|
|
23
|
+
@amount_of_money = amount_of_money
|
|
24
|
+
@number_of_gift_cards = number_of_gift_cards
|
|
25
|
+
end
|
|
26
|
+
|
|
18
27
|
# Sets the property and returns this same instance.
|
|
19
28
|
def with_amount_of_money(value)
|
|
20
29
|
@amount_of_money = value
|
|
@@ -37,11 +46,11 @@ module OnlinePayments
|
|
|
37
46
|
|
|
38
47
|
def from_hash(hash)
|
|
39
48
|
super
|
|
40
|
-
if hash.
|
|
41
|
-
raise TypeError, "value '
|
|
49
|
+
if hash.key? 'amountOfMoney'
|
|
50
|
+
raise TypeError, "value '#{hash['amountOfMoney']}' is not a Hash" unless hash['amountOfMoney'].is_a? Hash
|
|
42
51
|
@amount_of_money = OnlinePayments::SDK::Domain::AmountOfMoney.new_from_hash(hash['amountOfMoney'])
|
|
43
52
|
end
|
|
44
|
-
if hash.
|
|
53
|
+
if hash.key? 'numberOfGiftCards'
|
|
45
54
|
@number_of_gift_cards = hash['numberOfGiftCards']
|
|
46
55
|
end
|
|
47
56
|
end
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
1
3
|
#
|
|
2
4
|
# This file was automatically generated.
|
|
3
5
|
#
|
|
@@ -50,6 +52,36 @@ module OnlinePayments
|
|
|
50
52
|
|
|
51
53
|
attr_accessor :variant
|
|
52
54
|
|
|
55
|
+
# Creates a new instance; every attribute can be given as a keyword argument.
|
|
56
|
+
def initialize(allowed_number_of_payment_attempts: nil,
|
|
57
|
+
auto_refund_split_payments: nil,
|
|
58
|
+
card_payment_method_specific_input: nil,
|
|
59
|
+
is_new_unscheduled_card_on_file_series: nil,
|
|
60
|
+
is_recurring: nil,
|
|
61
|
+
locale: nil,
|
|
62
|
+
payment_product_filters: nil,
|
|
63
|
+
return_url: nil,
|
|
64
|
+
session_timeout: nil,
|
|
65
|
+
show_result_page: nil,
|
|
66
|
+
split_payment_product_filters: nil,
|
|
67
|
+
tokens: nil,
|
|
68
|
+
variant: nil)
|
|
69
|
+
super()
|
|
70
|
+
@allowed_number_of_payment_attempts = allowed_number_of_payment_attempts
|
|
71
|
+
@auto_refund_split_payments = auto_refund_split_payments
|
|
72
|
+
@card_payment_method_specific_input = card_payment_method_specific_input
|
|
73
|
+
@is_new_unscheduled_card_on_file_series = is_new_unscheduled_card_on_file_series
|
|
74
|
+
@is_recurring = is_recurring
|
|
75
|
+
@locale = locale
|
|
76
|
+
@payment_product_filters = payment_product_filters
|
|
77
|
+
@return_url = return_url
|
|
78
|
+
@session_timeout = session_timeout
|
|
79
|
+
@show_result_page = show_result_page
|
|
80
|
+
@split_payment_product_filters = split_payment_product_filters
|
|
81
|
+
@tokens = tokens
|
|
82
|
+
@variant = variant
|
|
83
|
+
end
|
|
84
|
+
|
|
53
85
|
# Sets the property and returns this same instance.
|
|
54
86
|
def with_allowed_number_of_payment_attempts(value)
|
|
55
87
|
@allowed_number_of_payment_attempts = value
|
|
@@ -149,46 +181,46 @@ module OnlinePayments
|
|
|
149
181
|
|
|
150
182
|
def from_hash(hash)
|
|
151
183
|
super
|
|
152
|
-
if hash.
|
|
184
|
+
if hash.key? 'allowedNumberOfPaymentAttempts'
|
|
153
185
|
@allowed_number_of_payment_attempts = hash['allowedNumberOfPaymentAttempts']
|
|
154
186
|
end
|
|
155
|
-
if hash.
|
|
187
|
+
if hash.key? 'autoRefundSplitPayments'
|
|
156
188
|
@auto_refund_split_payments = hash['autoRefundSplitPayments']
|
|
157
189
|
end
|
|
158
|
-
if hash.
|
|
159
|
-
raise TypeError, "value '
|
|
190
|
+
if hash.key? 'cardPaymentMethodSpecificInput'
|
|
191
|
+
raise TypeError, "value '#{hash['cardPaymentMethodSpecificInput']}' is not a Hash" unless hash['cardPaymentMethodSpecificInput'].is_a? Hash
|
|
160
192
|
@card_payment_method_specific_input = OnlinePayments::SDK::Domain::CardPaymentMethodSpecificInputForHostedCheckout.new_from_hash(hash['cardPaymentMethodSpecificInput'])
|
|
161
193
|
end
|
|
162
|
-
if hash.
|
|
194
|
+
if hash.key? 'isNewUnscheduledCardOnFileSeries'
|
|
163
195
|
@is_new_unscheduled_card_on_file_series = hash['isNewUnscheduledCardOnFileSeries']
|
|
164
196
|
end
|
|
165
|
-
if hash.
|
|
197
|
+
if hash.key? 'isRecurring'
|
|
166
198
|
@is_recurring = hash['isRecurring']
|
|
167
199
|
end
|
|
168
|
-
if hash.
|
|
200
|
+
if hash.key? 'locale'
|
|
169
201
|
@locale = hash['locale']
|
|
170
202
|
end
|
|
171
|
-
if hash.
|
|
172
|
-
raise TypeError, "value '
|
|
203
|
+
if hash.key? 'paymentProductFilters'
|
|
204
|
+
raise TypeError, "value '#{hash['paymentProductFilters']}' is not a Hash" unless hash['paymentProductFilters'].is_a? Hash
|
|
173
205
|
@payment_product_filters = OnlinePayments::SDK::Domain::PaymentProductFiltersHostedCheckout.new_from_hash(hash['paymentProductFilters'])
|
|
174
206
|
end
|
|
175
|
-
if hash.
|
|
207
|
+
if hash.key? 'returnUrl'
|
|
176
208
|
@return_url = hash['returnUrl']
|
|
177
209
|
end
|
|
178
|
-
if hash.
|
|
210
|
+
if hash.key? 'sessionTimeout'
|
|
179
211
|
@session_timeout = hash['sessionTimeout']
|
|
180
212
|
end
|
|
181
|
-
if hash.
|
|
213
|
+
if hash.key? 'showResultPage'
|
|
182
214
|
@show_result_page = hash['showResultPage']
|
|
183
215
|
end
|
|
184
|
-
if hash.
|
|
185
|
-
raise TypeError, "value '
|
|
216
|
+
if hash.key? 'splitPaymentProductFilters'
|
|
217
|
+
raise TypeError, "value '#{hash['splitPaymentProductFilters']}' is not a Hash" unless hash['splitPaymentProductFilters'].is_a? Hash
|
|
186
218
|
@split_payment_product_filters = OnlinePayments::SDK::Domain::SplitPaymentProductFiltersHostedCheckout.new_from_hash(hash['splitPaymentProductFilters'])
|
|
187
219
|
end
|
|
188
|
-
if hash.
|
|
220
|
+
if hash.key? 'tokens'
|
|
189
221
|
@tokens = hash['tokens']
|
|
190
222
|
end
|
|
191
|
-
if hash.
|
|
223
|
+
if hash.key? 'variant'
|
|
192
224
|
@variant = hash['variant']
|
|
193
225
|
end
|
|
194
226
|
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 :variant
|
|
16
18
|
|
|
19
|
+
# Creates a new instance; every attribute can be given as a keyword argument.
|
|
20
|
+
def initialize(hosted_checkout_id: nil, variant: nil)
|
|
21
|
+
super()
|
|
22
|
+
@hosted_checkout_id = hosted_checkout_id
|
|
23
|
+
@variant = variant
|
|
24
|
+
end
|
|
25
|
+
|
|
17
26
|
# Sets the property and returns this same instance.
|
|
18
27
|
def with_hosted_checkout_id(value)
|
|
19
28
|
@hosted_checkout_id = 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? 'hostedCheckoutId'
|
|
40
49
|
@hosted_checkout_id = hash['hostedCheckoutId']
|
|
41
50
|
end
|
|
42
|
-
if hash.
|
|
51
|
+
if hash.key? 'variant'
|
|
43
52
|
@variant = hash['variant']
|
|
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
|
#
|
|
@@ -76,6 +78,54 @@ module OnlinePayments
|
|
|
76
78
|
|
|
77
79
|
attr_accessor :virtual_card_indicator
|
|
78
80
|
|
|
81
|
+
# Creates a new instance; every attribute can be given as a keyword argument.
|
|
82
|
+
def initialize(card_corporate_indicator: nil,
|
|
83
|
+
card_effective_date: nil,
|
|
84
|
+
card_effective_date_indicator: nil,
|
|
85
|
+
card_pan_type: nil,
|
|
86
|
+
card_product_code: nil,
|
|
87
|
+
card_product_name: nil,
|
|
88
|
+
card_product_usage_label: nil,
|
|
89
|
+
card_scheme: nil,
|
|
90
|
+
card_type: nil,
|
|
91
|
+
country_code: nil,
|
|
92
|
+
is_allowed_in_context: nil,
|
|
93
|
+
issuer_code: nil,
|
|
94
|
+
issuer_name: nil,
|
|
95
|
+
issuer_principal_member_code: nil,
|
|
96
|
+
issuer_principal_member_name: nil,
|
|
97
|
+
issuer_region_code: nil,
|
|
98
|
+
issuing_country_code: nil,
|
|
99
|
+
pan_length_max: nil,
|
|
100
|
+
pan_length_min: nil,
|
|
101
|
+
pan_luhn_check: nil,
|
|
102
|
+
payment_product_id: nil,
|
|
103
|
+
virtual_card_indicator: nil)
|
|
104
|
+
super()
|
|
105
|
+
@card_corporate_indicator = card_corporate_indicator
|
|
106
|
+
@card_effective_date = card_effective_date
|
|
107
|
+
@card_effective_date_indicator = card_effective_date_indicator
|
|
108
|
+
@card_pan_type = card_pan_type
|
|
109
|
+
@card_product_code = card_product_code
|
|
110
|
+
@card_product_name = card_product_name
|
|
111
|
+
@card_product_usage_label = card_product_usage_label
|
|
112
|
+
@card_scheme = card_scheme
|
|
113
|
+
@card_type = card_type
|
|
114
|
+
@country_code = country_code
|
|
115
|
+
@is_allowed_in_context = is_allowed_in_context
|
|
116
|
+
@issuer_code = issuer_code
|
|
117
|
+
@issuer_name = issuer_name
|
|
118
|
+
@issuer_principal_member_code = issuer_principal_member_code
|
|
119
|
+
@issuer_principal_member_name = issuer_principal_member_name
|
|
120
|
+
@issuer_region_code = issuer_region_code
|
|
121
|
+
@issuing_country_code = issuing_country_code
|
|
122
|
+
@pan_length_max = pan_length_max
|
|
123
|
+
@pan_length_min = pan_length_min
|
|
124
|
+
@pan_luhn_check = pan_luhn_check
|
|
125
|
+
@payment_product_id = payment_product_id
|
|
126
|
+
@virtual_card_indicator = virtual_card_indicator
|
|
127
|
+
end
|
|
128
|
+
|
|
79
129
|
# Sets the property and returns this same instance.
|
|
80
130
|
def with_card_corporate_indicator(value)
|
|
81
131
|
@card_corporate_indicator = value
|
|
@@ -238,70 +288,70 @@ module OnlinePayments
|
|
|
238
288
|
|
|
239
289
|
def from_hash(hash)
|
|
240
290
|
super
|
|
241
|
-
if hash.
|
|
291
|
+
if hash.key? 'cardCorporateIndicator'
|
|
242
292
|
@card_corporate_indicator = hash['cardCorporateIndicator']
|
|
243
293
|
end
|
|
244
|
-
if hash.
|
|
294
|
+
if hash.key? 'cardEffectiveDate'
|
|
245
295
|
@card_effective_date = Date.parse(hash['cardEffectiveDate'])
|
|
246
296
|
end
|
|
247
|
-
if hash.
|
|
297
|
+
if hash.key? 'cardEffectiveDateIndicator'
|
|
248
298
|
@card_effective_date_indicator = hash['cardEffectiveDateIndicator']
|
|
249
299
|
end
|
|
250
|
-
if hash.
|
|
300
|
+
if hash.key? 'cardPanType'
|
|
251
301
|
@card_pan_type = hash['cardPanType']
|
|
252
302
|
end
|
|
253
|
-
if hash.
|
|
303
|
+
if hash.key? 'cardProductCode'
|
|
254
304
|
@card_product_code = hash['cardProductCode']
|
|
255
305
|
end
|
|
256
|
-
if hash.
|
|
306
|
+
if hash.key? 'cardProductName'
|
|
257
307
|
@card_product_name = hash['cardProductName']
|
|
258
308
|
end
|
|
259
|
-
if hash.
|
|
309
|
+
if hash.key? 'cardProductUsageLabel'
|
|
260
310
|
@card_product_usage_label = hash['cardProductUsageLabel']
|
|
261
311
|
end
|
|
262
|
-
if hash.
|
|
312
|
+
if hash.key? 'cardScheme'
|
|
263
313
|
@card_scheme = hash['cardScheme']
|
|
264
314
|
end
|
|
265
|
-
if hash.
|
|
315
|
+
if hash.key? 'cardType'
|
|
266
316
|
@card_type = hash['cardType']
|
|
267
317
|
end
|
|
268
|
-
if hash.
|
|
318
|
+
if hash.key? 'countryCode'
|
|
269
319
|
@country_code = hash['countryCode']
|
|
270
320
|
end
|
|
271
|
-
if hash.
|
|
321
|
+
if hash.key? 'isAllowedInContext'
|
|
272
322
|
@is_allowed_in_context = hash['isAllowedInContext']
|
|
273
323
|
end
|
|
274
|
-
if hash.
|
|
324
|
+
if hash.key? 'issuerCode'
|
|
275
325
|
@issuer_code = hash['issuerCode']
|
|
276
326
|
end
|
|
277
|
-
if hash.
|
|
327
|
+
if hash.key? 'issuerName'
|
|
278
328
|
@issuer_name = hash['issuerName']
|
|
279
329
|
end
|
|
280
|
-
if hash.
|
|
330
|
+
if hash.key? 'issuerPrincipalMemberCode'
|
|
281
331
|
@issuer_principal_member_code = hash['issuerPrincipalMemberCode']
|
|
282
332
|
end
|
|
283
|
-
if hash.
|
|
333
|
+
if hash.key? 'issuerPrincipalMemberName'
|
|
284
334
|
@issuer_principal_member_name = hash['issuerPrincipalMemberName']
|
|
285
335
|
end
|
|
286
|
-
if hash.
|
|
336
|
+
if hash.key? 'issuerRegionCode'
|
|
287
337
|
@issuer_region_code = hash['issuerRegionCode']
|
|
288
338
|
end
|
|
289
|
-
if hash.
|
|
339
|
+
if hash.key? 'issuingCountryCode'
|
|
290
340
|
@issuing_country_code = hash['issuingCountryCode']
|
|
291
341
|
end
|
|
292
|
-
if hash.
|
|
342
|
+
if hash.key? 'panLengthMax'
|
|
293
343
|
@pan_length_max = hash['panLengthMax']
|
|
294
344
|
end
|
|
295
|
-
if hash.
|
|
345
|
+
if hash.key? 'panLengthMin'
|
|
296
346
|
@pan_length_min = hash['panLengthMin']
|
|
297
347
|
end
|
|
298
|
-
if hash.
|
|
348
|
+
if hash.key? 'panLuhnCheck'
|
|
299
349
|
@pan_luhn_check = hash['panLuhnCheck']
|
|
300
350
|
end
|
|
301
|
-
if hash.
|
|
351
|
+
if hash.key? 'paymentProductId'
|
|
302
352
|
@payment_product_id = hash['paymentProductId']
|
|
303
353
|
end
|
|
304
|
-
if hash.
|
|
354
|
+
if hash.key? 'virtualCardIndicator'
|
|
305
355
|
@virtual_card_indicator = hash['virtualCardIndicator']
|
|
306
356
|
end
|
|
307
357
|
end
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
1
3
|
#
|
|
2
4
|
# This file was automatically generated.
|
|
3
5
|
#
|
|
@@ -35,6 +37,26 @@ module OnlinePayments
|
|
|
35
37
|
|
|
36
38
|
attr_accessor :transaction_link_identifier
|
|
37
39
|
|
|
40
|
+
# Creates a new instance; every attribute can be given as a keyword argument.
|
|
41
|
+
def initialize(card: nil,
|
|
42
|
+
currency_code: nil,
|
|
43
|
+
network_token_data: nil,
|
|
44
|
+
payment_product_id: nil,
|
|
45
|
+
scheme_reference_data: nil,
|
|
46
|
+
sub_merchant: nil,
|
|
47
|
+
token_id: nil,
|
|
48
|
+
transaction_link_identifier: nil)
|
|
49
|
+
super()
|
|
50
|
+
@card = card
|
|
51
|
+
@currency_code = currency_code
|
|
52
|
+
@network_token_data = network_token_data
|
|
53
|
+
@payment_product_id = payment_product_id
|
|
54
|
+
@scheme_reference_data = scheme_reference_data
|
|
55
|
+
@sub_merchant = sub_merchant
|
|
56
|
+
@token_id = token_id
|
|
57
|
+
@transaction_link_identifier = transaction_link_identifier
|
|
58
|
+
end
|
|
59
|
+
|
|
38
60
|
# Sets the property and returns this same instance.
|
|
39
61
|
def with_card(value)
|
|
40
62
|
@card = value
|
|
@@ -99,31 +121,31 @@ module OnlinePayments
|
|
|
99
121
|
|
|
100
122
|
def from_hash(hash)
|
|
101
123
|
super
|
|
102
|
-
if hash.
|
|
103
|
-
raise TypeError, "value '
|
|
124
|
+
if hash.key? 'card'
|
|
125
|
+
raise TypeError, "value '#{hash['card']}' is not a Hash" unless hash['card'].is_a? Hash
|
|
104
126
|
@card = OnlinePayments::SDK::Domain::CardDataWithoutCvv.new_from_hash(hash['card'])
|
|
105
127
|
end
|
|
106
|
-
if hash.
|
|
128
|
+
if hash.key? 'currencyCode'
|
|
107
129
|
@currency_code = hash['currencyCode']
|
|
108
130
|
end
|
|
109
|
-
if hash.
|
|
110
|
-
raise TypeError, "value '
|
|
131
|
+
if hash.key? 'networkTokenData'
|
|
132
|
+
raise TypeError, "value '#{hash['networkTokenData']}' is not a Hash" unless hash['networkTokenData'].is_a? Hash
|
|
111
133
|
@network_token_data = OnlinePayments::SDK::Domain::NetworkTokenData.new_from_hash(hash['networkTokenData'])
|
|
112
134
|
end
|
|
113
|
-
if hash.
|
|
135
|
+
if hash.key? 'paymentProductId'
|
|
114
136
|
@payment_product_id = hash['paymentProductId']
|
|
115
137
|
end
|
|
116
|
-
if hash.
|
|
138
|
+
if hash.key? 'schemeReferenceData'
|
|
117
139
|
@scheme_reference_data = hash['schemeReferenceData']
|
|
118
140
|
end
|
|
119
|
-
if hash.
|
|
120
|
-
raise TypeError, "value '
|
|
141
|
+
if hash.key? 'subMerchant'
|
|
142
|
+
raise TypeError, "value '#{hash['subMerchant']}' is not a Hash" unless hash['subMerchant'].is_a? Hash
|
|
121
143
|
@sub_merchant = OnlinePayments::SDK::Domain::SubMerchant.new_from_hash(hash['subMerchant'])
|
|
122
144
|
end
|
|
123
|
-
if hash.
|
|
145
|
+
if hash.key? 'tokenId'
|
|
124
146
|
@token_id = hash['tokenId']
|
|
125
147
|
end
|
|
126
|
-
if hash.
|
|
148
|
+
if hash.key? 'transactionLinkIdentifier'
|
|
127
149
|
@transaction_link_identifier = hash['transactionLinkIdentifier']
|
|
128
150
|
end
|
|
129
151
|
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 :payment_id
|
|
13
15
|
|
|
16
|
+
# Creates a new instance; every attribute can be given as a keyword argument.
|
|
17
|
+
def initialize(payment_id: nil)
|
|
18
|
+
super()
|
|
19
|
+
@payment_id = payment_id
|
|
20
|
+
end
|
|
21
|
+
|
|
14
22
|
# Sets the property and returns this same instance.
|
|
15
23
|
def with_payment_id(value)
|
|
16
24
|
@payment_id = 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? 'paymentId'
|
|
30
38
|
@payment_id = hash['paymentId']
|
|
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
|
#
|
|
@@ -12,6 +14,12 @@ module OnlinePayments
|
|
|
12
14
|
|
|
13
15
|
attr_accessor :amount_of_money
|
|
14
16
|
|
|
17
|
+
# Creates a new instance; every attribute can be given as a keyword argument.
|
|
18
|
+
def initialize(amount_of_money: nil)
|
|
19
|
+
super()
|
|
20
|
+
@amount_of_money = amount_of_money
|
|
21
|
+
end
|
|
22
|
+
|
|
15
23
|
# Sets the property and returns this same instance.
|
|
16
24
|
def with_amount_of_money(value)
|
|
17
25
|
@amount_of_money = 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? 'amountOfMoney'
|
|
39
|
+
raise TypeError, "value '#{hash['amountOfMoney']}' is not a Hash" unless hash['amountOfMoney'].is_a? Hash
|
|
32
40
|
@amount_of_money = OnlinePayments::SDK::Domain::AmountOfMoney.new_from_hash(hash['amountOfMoney'])
|
|
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
|
#
|
|
@@ -12,6 +14,12 @@ module OnlinePayments
|
|
|
12
14
|
|
|
13
15
|
attr_accessor :payment
|
|
14
16
|
|
|
17
|
+
# Creates a new instance; every attribute can be given as a keyword argument.
|
|
18
|
+
def initialize(payment: nil)
|
|
19
|
+
super()
|
|
20
|
+
@payment = payment
|
|
21
|
+
end
|
|
22
|
+
|
|
15
23
|
# Sets the property and returns this same instance.
|
|
16
24
|
def with_payment(value)
|
|
17
25
|
@payment = 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? 'payment'
|
|
39
|
+
raise TypeError, "value '#{hash['payment']}' is not a Hash" unless hash['payment'].is_a? Hash
|
|
32
40
|
@payment = OnlinePayments::SDK::Domain::PaymentResponse.new_from_hash(hash['payment'])
|
|
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
|
#
|
|
@@ -14,6 +16,13 @@ module OnlinePayments
|
|
|
14
16
|
|
|
15
17
|
attr_accessor :mask
|
|
16
18
|
|
|
19
|
+
# Creates a new instance; every attribute can be given as a keyword argument.
|
|
20
|
+
def initialize(attribute_key: nil, mask: nil)
|
|
21
|
+
super()
|
|
22
|
+
@attribute_key = attribute_key
|
|
23
|
+
@mask = mask
|
|
24
|
+
end
|
|
25
|
+
|
|
17
26
|
# Sets the property and returns this same instance.
|
|
18
27
|
def with_attribute_key(value)
|
|
19
28
|
@attribute_key = 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? 'attributeKey'
|
|
40
49
|
@attribute_key = hash['attributeKey']
|
|
41
50
|
end
|
|
42
|
-
if hash.
|
|
51
|
+
if hash.key? 'mask'
|
|
43
52
|
@mask = hash['mask']
|
|
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 :min_length
|
|
16
18
|
|
|
19
|
+
# Creates a new instance; every attribute can be given as a keyword argument.
|
|
20
|
+
def initialize(max_length: nil, min_length: nil)
|
|
21
|
+
super()
|
|
22
|
+
@max_length = max_length
|
|
23
|
+
@min_length = min_length
|
|
24
|
+
end
|
|
25
|
+
|
|
17
26
|
# Sets the property and returns this same instance.
|
|
18
27
|
def with_max_length(value)
|
|
19
28
|
@max_length = 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? 'maxLength'
|
|
40
49
|
@max_length = hash['maxLength']
|
|
41
50
|
end
|
|
42
|
-
if hash.
|
|
51
|
+
if hash.key? 'minLength'
|
|
43
52
|
@min_length = hash['minLength']
|
|
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
|
#
|
|
@@ -24,6 +26,15 @@ module OnlinePayments
|
|
|
24
26
|
|
|
25
27
|
attr_accessor :other_details
|
|
26
28
|
|
|
29
|
+
# Creates a new instance; every attribute can be given as a keyword argument.
|
|
30
|
+
def initialize(amount_of_money: nil, invoice_data: nil, order_line_details: nil, other_details: nil)
|
|
31
|
+
super()
|
|
32
|
+
@amount_of_money = amount_of_money
|
|
33
|
+
@invoice_data = invoice_data
|
|
34
|
+
@order_line_details = order_line_details
|
|
35
|
+
@other_details = other_details
|
|
36
|
+
end
|
|
37
|
+
|
|
27
38
|
# Sets the property and returns this same instance.
|
|
28
39
|
def with_amount_of_money(value)
|
|
29
40
|
@amount_of_money = value
|
|
@@ -60,20 +71,20 @@ module OnlinePayments
|
|
|
60
71
|
|
|
61
72
|
def from_hash(hash)
|
|
62
73
|
super
|
|
63
|
-
if hash.
|
|
64
|
-
raise TypeError, "value '
|
|
74
|
+
if hash.key? 'amountOfMoney'
|
|
75
|
+
raise TypeError, "value '#{hash['amountOfMoney']}' is not a Hash" unless hash['amountOfMoney'].is_a? Hash
|
|
65
76
|
@amount_of_money = OnlinePayments::SDK::Domain::AmountOfMoney.new_from_hash(hash['amountOfMoney'])
|
|
66
77
|
end
|
|
67
|
-
if hash.
|
|
68
|
-
raise TypeError, "value '
|
|
78
|
+
if hash.key? 'invoiceData'
|
|
79
|
+
raise TypeError, "value '#{hash['invoiceData']}' is not a Hash" unless hash['invoiceData'].is_a? Hash
|
|
69
80
|
@invoice_data = OnlinePayments::SDK::Domain::LineItemInvoiceData.new_from_hash(hash['invoiceData'])
|
|
70
81
|
end
|
|
71
|
-
if hash.
|
|
72
|
-
raise TypeError, "value '
|
|
82
|
+
if hash.key? 'orderLineDetails'
|
|
83
|
+
raise TypeError, "value '#{hash['orderLineDetails']}' is not a Hash" unless hash['orderLineDetails'].is_a? Hash
|
|
73
84
|
@order_line_details = OnlinePayments::SDK::Domain::OrderLineDetails.new_from_hash(hash['orderLineDetails'])
|
|
74
85
|
end
|
|
75
|
-
if hash.
|
|
76
|
-
raise TypeError, "value '
|
|
86
|
+
if hash.key? 'otherDetails'
|
|
87
|
+
raise TypeError, "value '#{hash['otherDetails']}' is not a Hash" unless hash['otherDetails'].is_a? Hash
|
|
77
88
|
@other_details = OnlinePayments::SDK::Domain::OtherDetails.new_from_hash(hash['otherDetails'])
|
|
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
|
#
|
|
@@ -17,6 +19,14 @@ module OnlinePayments
|
|
|
17
19
|
|
|
18
20
|
attr_accessor :quantity
|
|
19
21
|
|
|
22
|
+
# Creates a new instance; every attribute can be given as a keyword argument.
|
|
23
|
+
def initialize(discount_amount: nil, line_item_id: nil, quantity: nil)
|
|
24
|
+
super()
|
|
25
|
+
@discount_amount = discount_amount
|
|
26
|
+
@line_item_id = line_item_id
|
|
27
|
+
@quantity = quantity
|
|
28
|
+
end
|
|
29
|
+
|
|
20
30
|
# Sets the property and returns this same instance.
|
|
21
31
|
def with_discount_amount(value)
|
|
22
32
|
@discount_amount = 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? 'discountAmount'
|
|
50
60
|
@discount_amount = hash['discountAmount']
|
|
51
61
|
end
|
|
52
|
-
if hash.
|
|
62
|
+
if hash.key? 'lineItemId'
|
|
53
63
|
@line_item_id = hash['lineItemId']
|
|
54
64
|
end
|
|
55
|
-
if hash.
|
|
65
|
+
if hash.key? 'quantity'
|
|
56
66
|
@quantity = hash['quantity']
|
|
57
67
|
end
|
|
58
68
|
end
|