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
|
#
|
|
@@ -61,6 +63,38 @@ module OnlinePayments
|
|
|
61
63
|
|
|
62
64
|
attr_accessor :transaction_date
|
|
63
65
|
|
|
66
|
+
# Creates a new instance; every attribute can be given as a keyword argument.
|
|
67
|
+
def initialize(acquired_amount: nil,
|
|
68
|
+
amount_of_money: nil,
|
|
69
|
+
amount_paid: nil,
|
|
70
|
+
card_payment_method_specific_output: nil,
|
|
71
|
+
merchant_parameters: nil,
|
|
72
|
+
mobile_payment_method_specific_output: nil,
|
|
73
|
+
operation_references: nil,
|
|
74
|
+
payment_creation_date: nil,
|
|
75
|
+
payment_method: nil,
|
|
76
|
+
redirect_payment_method_specific_output: nil,
|
|
77
|
+
references: nil,
|
|
78
|
+
sepa_direct_debit_payment_method_specific_output: nil,
|
|
79
|
+
surcharge_specific_output: nil,
|
|
80
|
+
transaction_date: nil)
|
|
81
|
+
super()
|
|
82
|
+
@acquired_amount = acquired_amount
|
|
83
|
+
@amount_of_money = amount_of_money
|
|
84
|
+
@amount_paid = amount_paid
|
|
85
|
+
@card_payment_method_specific_output = card_payment_method_specific_output
|
|
86
|
+
@merchant_parameters = merchant_parameters
|
|
87
|
+
@mobile_payment_method_specific_output = mobile_payment_method_specific_output
|
|
88
|
+
@operation_references = operation_references
|
|
89
|
+
@payment_creation_date = payment_creation_date
|
|
90
|
+
@payment_method = payment_method
|
|
91
|
+
@redirect_payment_method_specific_output = redirect_payment_method_specific_output
|
|
92
|
+
@references = references
|
|
93
|
+
@sepa_direct_debit_payment_method_specific_output = sepa_direct_debit_payment_method_specific_output
|
|
94
|
+
@surcharge_specific_output = surcharge_specific_output
|
|
95
|
+
@transaction_date = transaction_date
|
|
96
|
+
end
|
|
97
|
+
|
|
64
98
|
# Sets the property and returns this same instance.
|
|
65
99
|
def with_acquired_amount(value)
|
|
66
100
|
@acquired_amount = value
|
|
@@ -167,55 +201,55 @@ module OnlinePayments
|
|
|
167
201
|
|
|
168
202
|
def from_hash(hash)
|
|
169
203
|
super
|
|
170
|
-
if hash.
|
|
171
|
-
raise TypeError, "value '
|
|
204
|
+
if hash.key? 'acquiredAmount'
|
|
205
|
+
raise TypeError, "value '#{hash['acquiredAmount']}' is not a Hash" unless hash['acquiredAmount'].is_a? Hash
|
|
172
206
|
@acquired_amount = OnlinePayments::SDK::Domain::AmountOfMoney.new_from_hash(hash['acquiredAmount'])
|
|
173
207
|
end
|
|
174
|
-
if hash.
|
|
175
|
-
raise TypeError, "value '
|
|
208
|
+
if hash.key? 'amountOfMoney'
|
|
209
|
+
raise TypeError, "value '#{hash['amountOfMoney']}' is not a Hash" unless hash['amountOfMoney'].is_a? Hash
|
|
176
210
|
@amount_of_money = OnlinePayments::SDK::Domain::AmountOfMoney.new_from_hash(hash['amountOfMoney'])
|
|
177
211
|
end
|
|
178
|
-
if hash.
|
|
212
|
+
if hash.key? 'amountPaid'
|
|
179
213
|
@amount_paid = hash['amountPaid']
|
|
180
214
|
end
|
|
181
|
-
if hash.
|
|
182
|
-
raise TypeError, "value '
|
|
215
|
+
if hash.key? 'cardPaymentMethodSpecificOutput'
|
|
216
|
+
raise TypeError, "value '#{hash['cardPaymentMethodSpecificOutput']}' is not a Hash" unless hash['cardPaymentMethodSpecificOutput'].is_a? Hash
|
|
183
217
|
@card_payment_method_specific_output = OnlinePayments::SDK::Domain::CardPaymentMethodSpecificOutput.new_from_hash(hash['cardPaymentMethodSpecificOutput'])
|
|
184
218
|
end
|
|
185
|
-
if hash.
|
|
219
|
+
if hash.key? 'merchantParameters'
|
|
186
220
|
@merchant_parameters = hash['merchantParameters']
|
|
187
221
|
end
|
|
188
|
-
if hash.
|
|
189
|
-
raise TypeError, "value '
|
|
222
|
+
if hash.key? 'mobilePaymentMethodSpecificOutput'
|
|
223
|
+
raise TypeError, "value '#{hash['mobilePaymentMethodSpecificOutput']}' is not a Hash" unless hash['mobilePaymentMethodSpecificOutput'].is_a? Hash
|
|
190
224
|
@mobile_payment_method_specific_output = OnlinePayments::SDK::Domain::MobilePaymentMethodSpecificOutput.new_from_hash(hash['mobilePaymentMethodSpecificOutput'])
|
|
191
225
|
end
|
|
192
|
-
if hash.
|
|
193
|
-
raise TypeError, "value '
|
|
226
|
+
if hash.key? 'operationReferences'
|
|
227
|
+
raise TypeError, "value '#{hash['operationReferences']}' is not a Hash" unless hash['operationReferences'].is_a? Hash
|
|
194
228
|
@operation_references = OnlinePayments::SDK::Domain::OperationPaymentReferences.new_from_hash(hash['operationReferences'])
|
|
195
229
|
end
|
|
196
|
-
if hash.
|
|
230
|
+
if hash.key? 'paymentCreationDate'
|
|
197
231
|
@payment_creation_date = DateTime.parse(hash['paymentCreationDate'])
|
|
198
232
|
end
|
|
199
|
-
if hash.
|
|
233
|
+
if hash.key? 'paymentMethod'
|
|
200
234
|
@payment_method = hash['paymentMethod']
|
|
201
235
|
end
|
|
202
|
-
if hash.
|
|
203
|
-
raise TypeError, "value '
|
|
236
|
+
if hash.key? 'redirectPaymentMethodSpecificOutput'
|
|
237
|
+
raise TypeError, "value '#{hash['redirectPaymentMethodSpecificOutput']}' is not a Hash" unless hash['redirectPaymentMethodSpecificOutput'].is_a? Hash
|
|
204
238
|
@redirect_payment_method_specific_output = OnlinePayments::SDK::Domain::RedirectPaymentMethodSpecificOutput.new_from_hash(hash['redirectPaymentMethodSpecificOutput'])
|
|
205
239
|
end
|
|
206
|
-
if hash.
|
|
207
|
-
raise TypeError, "value '
|
|
240
|
+
if hash.key? 'references'
|
|
241
|
+
raise TypeError, "value '#{hash['references']}' is not a Hash" unless hash['references'].is_a? Hash
|
|
208
242
|
@references = OnlinePayments::SDK::Domain::PaymentReferences.new_from_hash(hash['references'])
|
|
209
243
|
end
|
|
210
|
-
if hash.
|
|
211
|
-
raise TypeError, "value '
|
|
244
|
+
if hash.key? 'sepaDirectDebitPaymentMethodSpecificOutput'
|
|
245
|
+
raise TypeError, "value '#{hash['sepaDirectDebitPaymentMethodSpecificOutput']}' is not a Hash" unless hash['sepaDirectDebitPaymentMethodSpecificOutput'].is_a? Hash
|
|
212
246
|
@sepa_direct_debit_payment_method_specific_output = OnlinePayments::SDK::Domain::SepaDirectDebitPaymentMethodSpecificOutput.new_from_hash(hash['sepaDirectDebitPaymentMethodSpecificOutput'])
|
|
213
247
|
end
|
|
214
|
-
if hash.
|
|
215
|
-
raise TypeError, "value '
|
|
248
|
+
if hash.key? 'surchargeSpecificOutput'
|
|
249
|
+
raise TypeError, "value '#{hash['surchargeSpecificOutput']}' is not a Hash" unless hash['surchargeSpecificOutput'].is_a? Hash
|
|
216
250
|
@surcharge_specific_output = OnlinePayments::SDK::Domain::SurchargeSpecificOutput.new_from_hash(hash['surchargeSpecificOutput'])
|
|
217
251
|
end
|
|
218
|
-
if hash.
|
|
252
|
+
if hash.key? 'transactionDate'
|
|
219
253
|
@transaction_date = DateTime.parse(hash['transactionDate'])
|
|
220
254
|
end
|
|
221
255
|
end
|
|
@@ -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 :payment_id
|
|
17
19
|
|
|
20
|
+
# Creates a new instance; every attribute can be given as a keyword argument.
|
|
21
|
+
def initialize(capture: nil, payment_id: nil)
|
|
22
|
+
super()
|
|
23
|
+
@capture = capture
|
|
24
|
+
@payment_id = payment_id
|
|
25
|
+
end
|
|
26
|
+
|
|
18
27
|
# Sets the property and returns this same instance.
|
|
19
28
|
def with_capture(value)
|
|
20
29
|
@capture = 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? 'capture'
|
|
50
|
+
raise TypeError, "value '#{hash['capture']}' is not a Hash" unless hash['capture'].is_a? Hash
|
|
42
51
|
@capture = OnlinePayments::SDK::Domain::CapturePaymentRequest.new_from_hash(hash['capture'])
|
|
43
52
|
end
|
|
44
|
-
if hash.
|
|
53
|
+
if hash.key? 'paymentId'
|
|
45
54
|
@payment_id = hash['paymentId']
|
|
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
|
#
|
|
@@ -30,6 +32,17 @@ module OnlinePayments
|
|
|
30
32
|
|
|
31
33
|
attr_accessor :shipping
|
|
32
34
|
|
|
35
|
+
# Creates a new instance; every attribute can be given as a keyword argument.
|
|
36
|
+
def initialize(amount: nil, is_final: nil, line_item_details: nil, operation_references: nil, references: nil, shipping: nil)
|
|
37
|
+
super()
|
|
38
|
+
@amount = amount
|
|
39
|
+
@is_final = is_final
|
|
40
|
+
@line_item_details = line_item_details
|
|
41
|
+
@operation_references = operation_references
|
|
42
|
+
@references = references
|
|
43
|
+
@shipping = shipping
|
|
44
|
+
end
|
|
45
|
+
|
|
33
46
|
# Sets the property and returns this same instance.
|
|
34
47
|
def with_amount(value)
|
|
35
48
|
@amount = value
|
|
@@ -80,29 +93,29 @@ module OnlinePayments
|
|
|
80
93
|
|
|
81
94
|
def from_hash(hash)
|
|
82
95
|
super
|
|
83
|
-
if hash.
|
|
96
|
+
if hash.key? 'amount'
|
|
84
97
|
@amount = hash['amount']
|
|
85
98
|
end
|
|
86
|
-
if hash.
|
|
99
|
+
if hash.key? 'isFinal'
|
|
87
100
|
@is_final = hash['isFinal']
|
|
88
101
|
end
|
|
89
|
-
if hash.
|
|
90
|
-
raise TypeError, "value '
|
|
102
|
+
if hash.key? 'lineItemDetails'
|
|
103
|
+
raise TypeError, "value '#{hash['lineItemDetails']}' is not an Array" unless hash['lineItemDetails'].is_a? Array
|
|
91
104
|
@line_item_details = []
|
|
92
105
|
hash['lineItemDetails'].each do |e|
|
|
93
106
|
@line_item_details << OnlinePayments::SDK::Domain::LineItemDetail.new_from_hash(e)
|
|
94
107
|
end
|
|
95
108
|
end
|
|
96
|
-
if hash.
|
|
97
|
-
raise TypeError, "value '
|
|
109
|
+
if hash.key? 'operationReferences'
|
|
110
|
+
raise TypeError, "value '#{hash['operationReferences']}' is not a Hash" unless hash['operationReferences'].is_a? Hash
|
|
98
111
|
@operation_references = OnlinePayments::SDK::Domain::OperationPaymentReferences.new_from_hash(hash['operationReferences'])
|
|
99
112
|
end
|
|
100
|
-
if hash.
|
|
101
|
-
raise TypeError, "value '
|
|
113
|
+
if hash.key? 'references'
|
|
114
|
+
raise TypeError, "value '#{hash['references']}' is not a Hash" unless hash['references'].is_a? Hash
|
|
102
115
|
@references = OnlinePayments::SDK::Domain::PaymentReferences.new_from_hash(hash['references'])
|
|
103
116
|
end
|
|
104
|
-
if hash.
|
|
105
|
-
raise TypeError, "value '
|
|
117
|
+
if hash.key? 'shipping'
|
|
118
|
+
raise TypeError, "value '#{hash['shipping']}' is not a Hash" unless hash['shipping'].is_a? Hash
|
|
106
119
|
@shipping = OnlinePayments::SDK::Domain::ShippingDetail.new_from_hash(hash['shipping'])
|
|
107
120
|
end
|
|
108
121
|
end
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
1
3
|
#
|
|
2
4
|
# This file was automatically generated.
|
|
3
5
|
#
|
|
@@ -22,6 +24,15 @@ module OnlinePayments
|
|
|
22
24
|
|
|
23
25
|
attr_accessor :status_output
|
|
24
26
|
|
|
27
|
+
# Creates a new instance; every attribute can be given as a keyword argument.
|
|
28
|
+
def initialize(capture_output: nil, id: nil, status: nil, status_output: nil)
|
|
29
|
+
super()
|
|
30
|
+
@capture_output = capture_output
|
|
31
|
+
@id = id
|
|
32
|
+
@status = status
|
|
33
|
+
@status_output = status_output
|
|
34
|
+
end
|
|
35
|
+
|
|
25
36
|
# Sets the property and returns this same instance.
|
|
26
37
|
def with_capture_output(value)
|
|
27
38
|
@capture_output = value
|
|
@@ -58,18 +69,18 @@ module OnlinePayments
|
|
|
58
69
|
|
|
59
70
|
def from_hash(hash)
|
|
60
71
|
super
|
|
61
|
-
if hash.
|
|
62
|
-
raise TypeError, "value '
|
|
72
|
+
if hash.key? 'captureOutput'
|
|
73
|
+
raise TypeError, "value '#{hash['captureOutput']}' is not a Hash" unless hash['captureOutput'].is_a? Hash
|
|
63
74
|
@capture_output = OnlinePayments::SDK::Domain::CaptureOutput.new_from_hash(hash['captureOutput'])
|
|
64
75
|
end
|
|
65
|
-
if hash.
|
|
76
|
+
if hash.key? 'id'
|
|
66
77
|
@id = hash['id']
|
|
67
78
|
end
|
|
68
|
-
if hash.
|
|
79
|
+
if hash.key? 'status'
|
|
69
80
|
@status = hash['status']
|
|
70
81
|
end
|
|
71
|
-
if hash.
|
|
72
|
-
raise TypeError, "value '
|
|
82
|
+
if hash.key? 'statusOutput'
|
|
83
|
+
raise TypeError, "value '#{hash['statusOutput']}' is not a Hash" unless hash['statusOutput'].is_a? Hash
|
|
73
84
|
@status_output = OnlinePayments::SDK::Domain::CaptureStatusOutput.new_from_hash(hash['statusOutput'])
|
|
74
85
|
end
|
|
75
86
|
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 :status_code
|
|
13
15
|
|
|
16
|
+
# Creates a new instance; every attribute can be given as a keyword argument.
|
|
17
|
+
def initialize(status_code: nil)
|
|
18
|
+
super()
|
|
19
|
+
@status_code = status_code
|
|
20
|
+
end
|
|
21
|
+
|
|
14
22
|
# Sets the property and returns this same instance.
|
|
15
23
|
def with_status_code(value)
|
|
16
24
|
@status_code = 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? 'statusCode'
|
|
30
38
|
@status_code = hash['statusCode']
|
|
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 :captures
|
|
14
16
|
|
|
17
|
+
# Creates a new instance; every attribute can be given as a keyword argument.
|
|
18
|
+
def initialize(captures: nil)
|
|
19
|
+
super()
|
|
20
|
+
@captures = captures
|
|
21
|
+
end
|
|
22
|
+
|
|
15
23
|
# Sets the property and returns this same instance.
|
|
16
24
|
def with_captures(value)
|
|
17
25
|
@captures = 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? 'captures'
|
|
39
|
+
raise TypeError, "value '#{hash['captures']}' is not an Array" unless hash['captures'].is_a? Array
|
|
32
40
|
@captures = []
|
|
33
41
|
hash['captures'].each do |e|
|
|
34
42
|
@captures << OnlinePayments::SDK::Domain::Capture.new_from_hash(e)
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
1
3
|
#
|
|
2
4
|
# This file was automatically generated.
|
|
3
5
|
#
|
|
@@ -58,6 +60,42 @@ module OnlinePayments
|
|
|
58
60
|
|
|
59
61
|
attr_accessor :vehicle
|
|
60
62
|
|
|
63
|
+
# Creates a new instance; every attribute can be given as a keyword argument.
|
|
64
|
+
def initialize(agreement_number: nil,
|
|
65
|
+
cardholder_notified: nil,
|
|
66
|
+
charges_amount: nil,
|
|
67
|
+
charges_category: nil,
|
|
68
|
+
distance_measure: nil,
|
|
69
|
+
distance_unit: nil,
|
|
70
|
+
driver_identification_number: nil,
|
|
71
|
+
driver_tax_number: nil,
|
|
72
|
+
pickup_details: nil,
|
|
73
|
+
rental_rate_amount: nil,
|
|
74
|
+
rental_rate_type: nil,
|
|
75
|
+
renter_name: nil,
|
|
76
|
+
return_details: nil,
|
|
77
|
+
tax_exempt_indicator: nil,
|
|
78
|
+
toll_free_number: nil,
|
|
79
|
+
vehicle: nil)
|
|
80
|
+
super()
|
|
81
|
+
@agreement_number = agreement_number
|
|
82
|
+
@cardholder_notified = cardholder_notified
|
|
83
|
+
@charges_amount = charges_amount
|
|
84
|
+
@charges_category = charges_category
|
|
85
|
+
@distance_measure = distance_measure
|
|
86
|
+
@distance_unit = distance_unit
|
|
87
|
+
@driver_identification_number = driver_identification_number
|
|
88
|
+
@driver_tax_number = driver_tax_number
|
|
89
|
+
@pickup_details = pickup_details
|
|
90
|
+
@rental_rate_amount = rental_rate_amount
|
|
91
|
+
@rental_rate_type = rental_rate_type
|
|
92
|
+
@renter_name = renter_name
|
|
93
|
+
@return_details = return_details
|
|
94
|
+
@tax_exempt_indicator = tax_exempt_indicator
|
|
95
|
+
@toll_free_number = toll_free_number
|
|
96
|
+
@vehicle = vehicle
|
|
97
|
+
end
|
|
98
|
+
|
|
61
99
|
# Sets the property and returns this same instance.
|
|
62
100
|
def with_agreement_number(value)
|
|
63
101
|
@agreement_number = value
|
|
@@ -178,55 +216,55 @@ module OnlinePayments
|
|
|
178
216
|
|
|
179
217
|
def from_hash(hash)
|
|
180
218
|
super
|
|
181
|
-
if hash.
|
|
219
|
+
if hash.key? 'agreementNumber'
|
|
182
220
|
@agreement_number = hash['agreementNumber']
|
|
183
221
|
end
|
|
184
|
-
if hash.
|
|
222
|
+
if hash.key? 'cardholderNotified'
|
|
185
223
|
@cardholder_notified = hash['cardholderNotified']
|
|
186
224
|
end
|
|
187
|
-
if hash.
|
|
225
|
+
if hash.key? 'chargesAmount'
|
|
188
226
|
@charges_amount = hash['chargesAmount']
|
|
189
227
|
end
|
|
190
|
-
if hash.
|
|
228
|
+
if hash.key? 'chargesCategory'
|
|
191
229
|
@charges_category = hash['chargesCategory']
|
|
192
230
|
end
|
|
193
|
-
if hash.
|
|
231
|
+
if hash.key? 'distanceMeasure'
|
|
194
232
|
@distance_measure = hash['distanceMeasure']
|
|
195
233
|
end
|
|
196
|
-
if hash.
|
|
234
|
+
if hash.key? 'distanceUnit'
|
|
197
235
|
@distance_unit = hash['distanceUnit']
|
|
198
236
|
end
|
|
199
|
-
if hash.
|
|
237
|
+
if hash.key? 'driverIdentificationNumber'
|
|
200
238
|
@driver_identification_number = hash['driverIdentificationNumber']
|
|
201
239
|
end
|
|
202
|
-
if hash.
|
|
240
|
+
if hash.key? 'driverTaxNumber'
|
|
203
241
|
@driver_tax_number = hash['driverTaxNumber']
|
|
204
242
|
end
|
|
205
|
-
if hash.
|
|
206
|
-
raise TypeError, "value '
|
|
243
|
+
if hash.key? 'pickupDetails'
|
|
244
|
+
raise TypeError, "value '#{hash['pickupDetails']}' is not a Hash" unless hash['pickupDetails'].is_a? Hash
|
|
207
245
|
@pickup_details = OnlinePayments::SDK::Domain::CarRentalPickupReturnData.new_from_hash(hash['pickupDetails'])
|
|
208
246
|
end
|
|
209
|
-
if hash.
|
|
247
|
+
if hash.key? 'rentalRateAmount'
|
|
210
248
|
@rental_rate_amount = hash['rentalRateAmount']
|
|
211
249
|
end
|
|
212
|
-
if hash.
|
|
250
|
+
if hash.key? 'rentalRateType'
|
|
213
251
|
@rental_rate_type = hash['rentalRateType']
|
|
214
252
|
end
|
|
215
|
-
if hash.
|
|
253
|
+
if hash.key? 'renterName'
|
|
216
254
|
@renter_name = hash['renterName']
|
|
217
255
|
end
|
|
218
|
-
if hash.
|
|
219
|
-
raise TypeError, "value '
|
|
256
|
+
if hash.key? 'returnDetails'
|
|
257
|
+
raise TypeError, "value '#{hash['returnDetails']}' is not a Hash" unless hash['returnDetails'].is_a? Hash
|
|
220
258
|
@return_details = OnlinePayments::SDK::Domain::CarRentalPickupReturnData.new_from_hash(hash['returnDetails'])
|
|
221
259
|
end
|
|
222
|
-
if hash.
|
|
260
|
+
if hash.key? 'taxExemptIndicator'
|
|
223
261
|
@tax_exempt_indicator = hash['taxExemptIndicator']
|
|
224
262
|
end
|
|
225
|
-
if hash.
|
|
263
|
+
if hash.key? 'tollFreeNumber'
|
|
226
264
|
@toll_free_number = hash['tollFreeNumber']
|
|
227
265
|
end
|
|
228
|
-
if hash.
|
|
229
|
-
raise TypeError, "value '
|
|
266
|
+
if hash.key? 'vehicle'
|
|
267
|
+
raise TypeError, "value '#{hash['vehicle']}' is not a Hash" unless hash['vehicle'].is_a? Hash
|
|
230
268
|
@vehicle = OnlinePayments::SDK::Domain::CarRentalVehicleData.new_from_hash(hash['vehicle'])
|
|
231
269
|
end
|
|
232
270
|
end
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
1
3
|
#
|
|
2
4
|
# This file was automatically generated.
|
|
3
5
|
#
|
|
@@ -29,6 +31,18 @@ module OnlinePayments
|
|
|
29
31
|
|
|
30
32
|
attr_accessor :state
|
|
31
33
|
|
|
34
|
+
# Creates a new instance; every attribute can be given as a keyword argument.
|
|
35
|
+
def initialize(address: nil, city: nil, country: nil, date: nil, location: nil, postcode: nil, state: nil)
|
|
36
|
+
super()
|
|
37
|
+
@address = address
|
|
38
|
+
@city = city
|
|
39
|
+
@country = country
|
|
40
|
+
@date = date
|
|
41
|
+
@location = location
|
|
42
|
+
@postcode = postcode
|
|
43
|
+
@state = state
|
|
44
|
+
end
|
|
45
|
+
|
|
32
46
|
# Sets the property and returns this same instance.
|
|
33
47
|
def with_address(value)
|
|
34
48
|
@address = value
|
|
@@ -86,25 +100,25 @@ module OnlinePayments
|
|
|
86
100
|
|
|
87
101
|
def from_hash(hash)
|
|
88
102
|
super
|
|
89
|
-
if hash.
|
|
103
|
+
if hash.key? 'address'
|
|
90
104
|
@address = hash['address']
|
|
91
105
|
end
|
|
92
|
-
if hash.
|
|
106
|
+
if hash.key? 'city'
|
|
93
107
|
@city = hash['city']
|
|
94
108
|
end
|
|
95
|
-
if hash.
|
|
109
|
+
if hash.key? 'country'
|
|
96
110
|
@country = hash['country']
|
|
97
111
|
end
|
|
98
|
-
if hash.
|
|
112
|
+
if hash.key? 'date'
|
|
99
113
|
@date = hash['date']
|
|
100
114
|
end
|
|
101
|
-
if hash.
|
|
115
|
+
if hash.key? 'location'
|
|
102
116
|
@location = hash['location']
|
|
103
117
|
end
|
|
104
|
-
if hash.
|
|
118
|
+
if hash.key? 'postcode'
|
|
105
119
|
@postcode = hash['postcode']
|
|
106
120
|
end
|
|
107
|
-
if hash.
|
|
121
|
+
if hash.key? 'state'
|
|
108
122
|
@state = hash['state']
|
|
109
123
|
end
|
|
110
124
|
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 :identification_number
|
|
16
18
|
|
|
19
|
+
# Creates a new instance; every attribute can be given as a keyword argument.
|
|
20
|
+
def initialize(class_id: nil, identification_number: nil)
|
|
21
|
+
super()
|
|
22
|
+
@class_id = class_id
|
|
23
|
+
@identification_number = identification_number
|
|
24
|
+
end
|
|
25
|
+
|
|
17
26
|
# Sets the property and returns this same instance.
|
|
18
27
|
def with_class_id(value)
|
|
19
28
|
@class_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? 'classId'
|
|
40
49
|
@class_id = hash['classId']
|
|
41
50
|
end
|
|
42
|
-
if hash.
|
|
51
|
+
if hash.key? 'identificationNumber'
|
|
43
52
|
@identification_number = hash['identificationNumber']
|
|
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 :expiry_date
|
|
22
24
|
|
|
25
|
+
# Creates a new instance; every attribute can be given as a keyword argument.
|
|
26
|
+
def initialize(card_number: nil, cardholder_name: nil, cvv: nil, expiry_date: nil)
|
|
27
|
+
super()
|
|
28
|
+
@card_number = card_number
|
|
29
|
+
@cardholder_name = cardholder_name
|
|
30
|
+
@cvv = cvv
|
|
31
|
+
@expiry_date = expiry_date
|
|
32
|
+
end
|
|
33
|
+
|
|
23
34
|
# Sets the property and returns this same instance.
|
|
24
35
|
def with_card_number(value)
|
|
25
36
|
@card_number = 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? 'cardNumber'
|
|
60
71
|
@card_number = hash['cardNumber']
|
|
61
72
|
end
|
|
62
|
-
if hash.
|
|
73
|
+
if hash.key? 'cardholderName'
|
|
63
74
|
@cardholder_name = hash['cardholderName']
|
|
64
75
|
end
|
|
65
|
-
if hash.
|
|
76
|
+
if hash.key? 'cvv'
|
|
66
77
|
@cvv = hash['cvv']
|
|
67
78
|
end
|
|
68
|
-
if hash.
|
|
79
|
+
if hash.key? 'expiryDate'
|
|
69
80
|
@expiry_date = hash['expiryDate']
|
|
70
81
|
end
|
|
71
82
|
end
|