onlinepayments-sdk-ruby 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +2 -0
- data/LICENSE.txt +22 -0
- data/README.md +140 -0
- data/Rakefile +34 -0
- data/lib/onlinepayments/sdk/api_exception.rb +42 -0
- data/lib/onlinepayments/sdk/api_resource.rb +115 -0
- data/lib/onlinepayments/sdk/authenticator.rb +16 -0
- data/lib/onlinepayments/sdk/authorization_exception.rb +13 -0
- data/lib/onlinepayments/sdk/call_context.rb +26 -0
- data/lib/onlinepayments/sdk/client.rb +82 -0
- data/lib/onlinepayments/sdk/communication_exception.rb +16 -0
- data/lib/onlinepayments/sdk/communicator.rb +300 -0
- data/lib/onlinepayments/sdk/communicator_configuration.rb +59 -0
- data/lib/onlinepayments/sdk/connection.rb +41 -0
- data/lib/onlinepayments/sdk/data_object.rb +31 -0
- data/lib/onlinepayments/sdk/declined_payment_exception.rb +30 -0
- data/lib/onlinepayments/sdk/declined_payout_exception.rb +32 -0
- data/lib/onlinepayments/sdk/declined_refund_exception.rb +32 -0
- data/lib/onlinepayments/sdk/declined_transaction_exception.rb +16 -0
- data/lib/onlinepayments/sdk/defaultimpl/authorization_type.rb +24 -0
- data/lib/onlinepayments/sdk/defaultimpl/default_authenticator.rb +108 -0
- data/lib/onlinepayments/sdk/defaultimpl/default_connection.rb +295 -0
- data/lib/onlinepayments/sdk/defaultimpl/default_marshaller.rb +32 -0
- data/lib/onlinepayments/sdk/defaultimpl.rb +6 -0
- data/lib/onlinepayments/sdk/domain/account_on_file.rb +49 -0
- data/lib/onlinepayments/sdk/domain/account_on_file_attribute.rb +38 -0
- data/lib/onlinepayments/sdk/domain/account_on_file_display_hints.rb +37 -0
- data/lib/onlinepayments/sdk/domain/additional_order_input.rb +54 -0
- data/lib/onlinepayments/sdk/domain/address.rb +50 -0
- data/lib/onlinepayments/sdk/domain/address_personal.rb +58 -0
- data/lib/onlinepayments/sdk/domain/airline_data.rb +128 -0
- data/lib/onlinepayments/sdk/domain/airline_flight_leg.rb +102 -0
- data/lib/onlinepayments/sdk/domain/airline_passenger.rb +38 -0
- data/lib/onlinepayments/sdk/domain/amount_breakdown.rb +30 -0
- data/lib/onlinepayments/sdk/domain/amount_of_money.rb +30 -0
- data/lib/onlinepayments/sdk/domain/api_error.rb +46 -0
- data/lib/onlinepayments/sdk/domain/bank_account_iban.rb +26 -0
- data/lib/onlinepayments/sdk/domain/browser_data.rb +42 -0
- data/lib/onlinepayments/sdk/domain/cancel_payment_response.rb +30 -0
- data/lib/onlinepayments/sdk/domain/capture.rb +46 -0
- data/lib/onlinepayments/sdk/domain/capture_output.rb +82 -0
- data/lib/onlinepayments/sdk/domain/capture_payment_request.rb +38 -0
- data/lib/onlinepayments/sdk/domain/capture_response.rb +46 -0
- data/lib/onlinepayments/sdk/domain/capture_status_output.rb +26 -0
- data/lib/onlinepayments/sdk/domain/captures_response.rb +33 -0
- data/lib/onlinepayments/sdk/domain/card.rb +38 -0
- data/lib/onlinepayments/sdk/domain/card_essentials.rb +34 -0
- data/lib/onlinepayments/sdk/domain/card_fraud_results.rb +34 -0
- data/lib/onlinepayments/sdk/domain/card_payment_method_specific_input.rb +98 -0
- data/lib/onlinepayments/sdk/domain/card_payment_method_specific_input_base.rb +86 -0
- data/lib/onlinepayments/sdk/domain/card_payment_method_specific_input_for_hosted_checkout.rb +26 -0
- data/lib/onlinepayments/sdk/domain/card_payment_method_specific_output.rb +78 -0
- data/lib/onlinepayments/sdk/domain/card_payout_method_specific_input.rb +38 -0
- data/lib/onlinepayments/sdk/domain/card_recurrence_details.rb +26 -0
- data/lib/onlinepayments/sdk/domain/card_without_cvv.rb +34 -0
- data/lib/onlinepayments/sdk/domain/company_information.rb +26 -0
- data/lib/onlinepayments/sdk/domain/complete_payment_card_payment_method_specific_input.rb +30 -0
- data/lib/onlinepayments/sdk/domain/complete_payment_request.rb +38 -0
- data/lib/onlinepayments/sdk/domain/complete_payment_response.rb +46 -0
- data/lib/onlinepayments/sdk/domain/contact_details.rb +42 -0
- data/lib/onlinepayments/sdk/domain/create_hosted_checkout_request.rb +78 -0
- data/lib/onlinepayments/sdk/domain/create_hosted_checkout_response.rb +48 -0
- data/lib/onlinepayments/sdk/domain/create_hosted_tokenization_request.rb +38 -0
- data/lib/onlinepayments/sdk/domain/create_hosted_tokenization_response.rb +50 -0
- data/lib/onlinepayments/sdk/domain/create_mandate_request.rb +58 -0
- data/lib/onlinepayments/sdk/domain/create_mandate_response.rb +38 -0
- data/lib/onlinepayments/sdk/domain/create_mandate_with_return_url.rb +58 -0
- data/lib/onlinepayments/sdk/domain/create_payment_request.rb +74 -0
- data/lib/onlinepayments/sdk/domain/create_payment_response.rb +46 -0
- data/lib/onlinepayments/sdk/domain/create_payout_request.rb +46 -0
- data/lib/onlinepayments/sdk/domain/create_token_request.rb +34 -0
- data/lib/onlinepayments/sdk/domain/created_payment_output.rb +34 -0
- data/lib/onlinepayments/sdk/domain/created_token_response.rb +50 -0
- data/lib/onlinepayments/sdk/domain/customer.rb +86 -0
- data/lib/onlinepayments/sdk/domain/customer_account.rb +70 -0
- data/lib/onlinepayments/sdk/domain/customer_account_authentication.rb +30 -0
- data/lib/onlinepayments/sdk/domain/customer_device.rb +50 -0
- data/lib/onlinepayments/sdk/domain/customer_payment_activity.rb +34 -0
- data/lib/onlinepayments/sdk/domain/customer_token.rb +46 -0
- data/lib/onlinepayments/sdk/domain/decrypted_payment_data.rb +42 -0
- data/lib/onlinepayments/sdk/domain/directory_entry.rb +34 -0
- data/lib/onlinepayments/sdk/domain/empty_validator.rb +12 -0
- data/lib/onlinepayments/sdk/domain/error_response.rb +37 -0
- data/lib/onlinepayments/sdk/domain/external_cardholder_authentication_data.rb +58 -0
- data/lib/onlinepayments/sdk/domain/external_token_linked.rb +34 -0
- data/lib/onlinepayments/sdk/domain/fixed_list_validator.rb +32 -0
- data/lib/onlinepayments/sdk/domain/fraud_fields.rb +30 -0
- data/lib/onlinepayments/sdk/domain/fraud_results.rb +26 -0
- data/lib/onlinepayments/sdk/domain/g_pay_three_d_secure.rb +46 -0
- data/lib/onlinepayments/sdk/domain/get_hosted_checkout_response.rb +34 -0
- data/lib/onlinepayments/sdk/domain/get_hosted_tokenization_response.rb +34 -0
- data/lib/onlinepayments/sdk/domain/get_iin_details_request.rb +34 -0
- data/lib/onlinepayments/sdk/domain/get_iin_details_response.rb +45 -0
- data/lib/onlinepayments/sdk/domain/get_mandate_response.rb +30 -0
- data/lib/onlinepayments/sdk/domain/get_payment_product_groups_response.rb +33 -0
- data/lib/onlinepayments/sdk/domain/get_payment_products_response.rb +33 -0
- data/lib/onlinepayments/sdk/domain/gift_card_purchase.rb +34 -0
- data/lib/onlinepayments/sdk/domain/hosted_checkout_specific_input.rb +66 -0
- data/lib/onlinepayments/sdk/domain/hosted_checkout_specific_output.rb +30 -0
- data/lib/onlinepayments/sdk/domain/iin_detail.rb +30 -0
- data/lib/onlinepayments/sdk/domain/label_template_element.rb +30 -0
- data/lib/onlinepayments/sdk/domain/length_validator.rb +30 -0
- data/lib/onlinepayments/sdk/domain/line_item.rb +46 -0
- data/lib/onlinepayments/sdk/domain/line_item_invoice_data.rb +26 -0
- data/lib/onlinepayments/sdk/domain/loan_recipient.rb +42 -0
- data/lib/onlinepayments/sdk/domain/lodging_data.rb +26 -0
- data/lib/onlinepayments/sdk/domain/mandate_address.rb +42 -0
- data/lib/onlinepayments/sdk/domain/mandate_contact_details.rb +26 -0
- data/lib/onlinepayments/sdk/domain/mandate_customer.rb +58 -0
- data/lib/onlinepayments/sdk/domain/mandate_merchant_action.rb +34 -0
- data/lib/onlinepayments/sdk/domain/mandate_personal_information.rb +34 -0
- data/lib/onlinepayments/sdk/domain/mandate_personal_name.rb +30 -0
- data/lib/onlinepayments/sdk/domain/mandate_redirect_data.rb +30 -0
- data/lib/onlinepayments/sdk/domain/mandate_response.rb +50 -0
- data/lib/onlinepayments/sdk/domain/merchant_action.rb +34 -0
- data/lib/onlinepayments/sdk/domain/mobile_payment_data.rb +30 -0
- data/lib/onlinepayments/sdk/domain/mobile_payment_method_hosted_checkout_specific_input.rb +30 -0
- data/lib/onlinepayments/sdk/domain/mobile_payment_method_specific_input.rb +62 -0
- data/lib/onlinepayments/sdk/domain/mobile_payment_method_specific_output.rb +58 -0
- data/lib/onlinepayments/sdk/domain/mobile_payment_product320_specific_input.rb +30 -0
- data/lib/onlinepayments/sdk/domain/operation_output.rb +58 -0
- data/lib/onlinepayments/sdk/domain/order.rb +70 -0
- data/lib/onlinepayments/sdk/domain/order_line_details.rb +54 -0
- data/lib/onlinepayments/sdk/domain/order_references.rb +34 -0
- data/lib/onlinepayments/sdk/domain/order_status_output.rb +49 -0
- data/lib/onlinepayments/sdk/domain/order_type_information.rb +30 -0
- data/lib/onlinepayments/sdk/domain/payment_account_on_file.rb +30 -0
- data/lib/onlinepayments/sdk/domain/payment_context.rb +38 -0
- data/lib/onlinepayments/sdk/domain/payment_creation_output.rb +38 -0
- data/lib/onlinepayments/sdk/domain/payment_details_response.rb +65 -0
- data/lib/onlinepayments/sdk/domain/payment_error_response.rb +45 -0
- data/lib/onlinepayments/sdk/domain/payment_output.rb +82 -0
- data/lib/onlinepayments/sdk/domain/payment_product.rb +102 -0
- data/lib/onlinepayments/sdk/domain/payment_product130_specific_input.rb +30 -0
- data/lib/onlinepayments/sdk/domain/payment_product130_specific_three_d_secure.rb +38 -0
- data/lib/onlinepayments/sdk/domain/payment_product302_specific_data.rb +32 -0
- data/lib/onlinepayments/sdk/domain/payment_product320_specific_data.rb +36 -0
- data/lib/onlinepayments/sdk/domain/payment_product5100_specific_input.rb +26 -0
- data/lib/onlinepayments/sdk/domain/payment_product5402_specific_output.rb +26 -0
- data/lib/onlinepayments/sdk/domain/payment_product5500_specific_output.rb +34 -0
- data/lib/onlinepayments/sdk/domain/payment_product771_specific_output.rb +26 -0
- data/lib/onlinepayments/sdk/domain/payment_product840_customer_account.rb +54 -0
- data/lib/onlinepayments/sdk/domain/payment_product840_specific_output.rb +53 -0
- data/lib/onlinepayments/sdk/domain/payment_product_display_hints.rb +34 -0
- data/lib/onlinepayments/sdk/domain/payment_product_field.rb +46 -0
- data/lib/onlinepayments/sdk/domain/payment_product_field_data_restrictions.rb +34 -0
- data/lib/onlinepayments/sdk/domain/payment_product_field_display_element.rb +38 -0
- data/lib/onlinepayments/sdk/domain/payment_product_field_display_hints.rb +70 -0
- data/lib/onlinepayments/sdk/domain/payment_product_field_form_element.rb +37 -0
- data/lib/onlinepayments/sdk/domain/payment_product_field_tooltip.rb +30 -0
- data/lib/onlinepayments/sdk/domain/payment_product_field_validators.rb +90 -0
- data/lib/onlinepayments/sdk/domain/payment_product_filter.rb +42 -0
- data/lib/onlinepayments/sdk/domain/payment_product_filters_hosted_checkout.rb +37 -0
- data/lib/onlinepayments/sdk/domain/payment_product_group.rb +52 -0
- data/lib/onlinepayments/sdk/domain/payment_product_networks_response.rb +32 -0
- data/lib/onlinepayments/sdk/domain/payment_references.rb +30 -0
- data/lib/onlinepayments/sdk/domain/payment_response.rb +54 -0
- data/lib/onlinepayments/sdk/domain/payment_status_output.rb +57 -0
- data/lib/onlinepayments/sdk/domain/payout_error_response.rb +45 -0
- data/lib/onlinepayments/sdk/domain/payout_output.rb +30 -0
- data/lib/onlinepayments/sdk/domain/payout_response.rb +46 -0
- data/lib/onlinepayments/sdk/domain/payout_result.rb +46 -0
- data/lib/onlinepayments/sdk/domain/payout_status_output.rb +34 -0
- data/lib/onlinepayments/sdk/domain/personal_information.rb +38 -0
- data/lib/onlinepayments/sdk/domain/personal_information_token.rb +30 -0
- data/lib/onlinepayments/sdk/domain/personal_name.rb +34 -0
- data/lib/onlinepayments/sdk/domain/personal_name_token.rb +30 -0
- data/lib/onlinepayments/sdk/domain/product_directory.rb +33 -0
- data/lib/onlinepayments/sdk/domain/protection_eligibility.rb +30 -0
- data/lib/onlinepayments/sdk/domain/range_validator.rb +30 -0
- data/lib/onlinepayments/sdk/domain/redirect_data.rb +30 -0
- data/lib/onlinepayments/sdk/domain/redirect_payment_method_specific_input.rb +66 -0
- data/lib/onlinepayments/sdk/domain/redirect_payment_method_specific_output.rb +66 -0
- data/lib/onlinepayments/sdk/domain/redirect_payment_product809_specific_input.rb +26 -0
- data/lib/onlinepayments/sdk/domain/redirect_payment_product840_specific_input.rb +26 -0
- data/lib/onlinepayments/sdk/domain/redirection_data.rb +26 -0
- data/lib/onlinepayments/sdk/domain/refund_card_method_specific_output.rb +30 -0
- data/lib/onlinepayments/sdk/domain/refund_e_wallet_method_specific_output.rb +38 -0
- data/lib/onlinepayments/sdk/domain/refund_error_response.rb +45 -0
- data/lib/onlinepayments/sdk/domain/refund_mobile_method_specific_output.rb +34 -0
- data/lib/onlinepayments/sdk/domain/refund_output.rb +82 -0
- data/lib/onlinepayments/sdk/domain/refund_payment_product840_customer_account.rb +34 -0
- data/lib/onlinepayments/sdk/domain/refund_payment_product840_specific_output.rb +30 -0
- data/lib/onlinepayments/sdk/domain/refund_redirect_method_specific_output.rb +30 -0
- data/lib/onlinepayments/sdk/domain/refund_request.rb +38 -0
- data/lib/onlinepayments/sdk/domain/refund_response.rb +46 -0
- data/lib/onlinepayments/sdk/domain/refunds_response.rb +33 -0
- data/lib/onlinepayments/sdk/domain/regular_expression_validator.rb +26 -0
- data/lib/onlinepayments/sdk/domain/sepa_direct_debit_payment_method_specific_input.rb +34 -0
- data/lib/onlinepayments/sdk/domain/sepa_direct_debit_payment_method_specific_input_base.rb +34 -0
- data/lib/onlinepayments/sdk/domain/sepa_direct_debit_payment_method_specific_output.rb +42 -0
- data/lib/onlinepayments/sdk/domain/sepa_direct_debit_payment_product771_specific_input.rb +34 -0
- data/lib/onlinepayments/sdk/domain/sepa_direct_debit_payment_product771_specific_input_base.rb +34 -0
- data/lib/onlinepayments/sdk/domain/session_request.rb +32 -0
- data/lib/onlinepayments/sdk/domain/session_response.rb +48 -0
- data/lib/onlinepayments/sdk/domain/shipping.rb +58 -0
- data/lib/onlinepayments/sdk/domain/shopping_cart.rb +64 -0
- data/lib/onlinepayments/sdk/domain/shopping_cart_extension.rb +52 -0
- data/lib/onlinepayments/sdk/domain/test_connection.rb +26 -0
- data/lib/onlinepayments/sdk/domain/three_d_secure.rb +78 -0
- data/lib/onlinepayments/sdk/domain/three_d_secure_base.rb +58 -0
- data/lib/onlinepayments/sdk/domain/three_d_secure_data.rb +34 -0
- data/lib/onlinepayments/sdk/domain/three_d_secure_results.rb +30 -0
- data/lib/onlinepayments/sdk/domain/token_card.rb +34 -0
- data/lib/onlinepayments/sdk/domain/token_card_data.rb +30 -0
- data/lib/onlinepayments/sdk/domain/token_card_specific_input.rb +30 -0
- data/lib/onlinepayments/sdk/domain/token_data.rb +30 -0
- data/lib/onlinepayments/sdk/domain/token_e_wallet.rb +34 -0
- data/lib/onlinepayments/sdk/domain/token_response.rb +58 -0
- data/lib/onlinepayments/sdk/domain/value_mapping_element.rb +37 -0
- data/lib/onlinepayments/sdk/endpoint_configuration.rb +127 -0
- data/lib/onlinepayments/sdk/exceptions.rb +8 -0
- data/lib/onlinepayments/sdk/factory.rb +136 -0
- data/lib/onlinepayments/sdk/idempotence_exception.rb +24 -0
- data/lib/onlinepayments/sdk/logging/communicator_logger.rb +22 -0
- data/lib/onlinepayments/sdk/logging/log_message_builder.rb +56 -0
- data/lib/onlinepayments/sdk/logging/logging_capable.rb +17 -0
- data/lib/onlinepayments/sdk/logging/logging_util.rb +286 -0
- data/lib/onlinepayments/sdk/logging/request_log_message_builder.rb +39 -0
- data/lib/onlinepayments/sdk/logging/response_log_message_builder.rb +34 -0
- data/lib/onlinepayments/sdk/logging/ruby_communicator_logger.rb +57 -0
- data/lib/onlinepayments/sdk/logging/stdout_communicator_logger.rb +34 -0
- data/lib/onlinepayments/sdk/logging.rb +10 -0
- data/lib/onlinepayments/sdk/marshaller.rb +24 -0
- data/lib/onlinepayments/sdk/marshaller_syntax_exception.rb +6 -0
- data/lib/onlinepayments/sdk/merchant/hostedcheckout/hosted_checkout_client.rb +86 -0
- data/lib/onlinepayments/sdk/merchant/hostedtokenization/hosted_tokenization_client.rb +86 -0
- data/lib/onlinepayments/sdk/merchant/mandates/mandates_client.rb +182 -0
- data/lib/onlinepayments/sdk/merchant/merchant_client.rb +89 -0
- data/lib/onlinepayments/sdk/merchant/payments/payments_client.rb +322 -0
- data/lib/onlinepayments/sdk/merchant/payouts/payouts_client.rb +86 -0
- data/lib/onlinepayments/sdk/merchant/productgroups/get_product_group_params.rb +57 -0
- data/lib/onlinepayments/sdk/merchant/productgroups/get_product_groups_params.rb +57 -0
- data/lib/onlinepayments/sdk/merchant/productgroups/product_groups_client.rb +87 -0
- data/lib/onlinepayments/sdk/merchant/products/get_payment_product_networks_params.rb +38 -0
- data/lib/onlinepayments/sdk/merchant/products/get_payment_product_params.rb +57 -0
- data/lib/onlinepayments/sdk/merchant/products/get_payment_products_params.rb +57 -0
- data/lib/onlinepayments/sdk/merchant/products/get_product_directory_params.rb +30 -0
- data/lib/onlinepayments/sdk/merchant/products/products_client.rb +155 -0
- data/lib/onlinepayments/sdk/merchant/services/services_client.rb +82 -0
- data/lib/onlinepayments/sdk/merchant/sessions/sessions_client.rb +54 -0
- data/lib/onlinepayments/sdk/merchant/tokens/tokens_client.rb +116 -0
- data/lib/onlinepayments/sdk/meta_data_provider.rb +150 -0
- data/lib/onlinepayments/sdk/modules.rb +62 -0
- data/lib/onlinepayments/sdk/not_found_exception.rb +16 -0
- data/lib/onlinepayments/sdk/param_request.rb +11 -0
- data/lib/onlinepayments/sdk/payment_platform_exception.rb +15 -0
- data/lib/onlinepayments/sdk/pooled_connection.rb +21 -0
- data/lib/onlinepayments/sdk/proxy_configuration.rb +74 -0
- data/lib/onlinepayments/sdk/reference_exception.rb +14 -0
- data/lib/onlinepayments/sdk/request_header.rb +50 -0
- data/lib/onlinepayments/sdk/request_param.rb +23 -0
- data/lib/onlinepayments/sdk/response_exception.rb +47 -0
- data/lib/onlinepayments/sdk/response_header.rb +42 -0
- data/lib/onlinepayments/sdk/validation_exception.rb +14 -0
- data/lib/onlinepayments/sdk/webhooks/api_version_mismatch_exception.rb +20 -0
- data/lib/onlinepayments/sdk/webhooks/in_memory_secret_key_store.rb +56 -0
- data/lib/onlinepayments/sdk/webhooks/secret_key_not_available_exception.rb +17 -0
- data/lib/onlinepayments/sdk/webhooks/secret_key_store.rb +16 -0
- data/lib/onlinepayments/sdk/webhooks/signature_validation_exception.rb +19 -0
- data/lib/onlinepayments/sdk/webhooks/webhooks.rb +22 -0
- data/lib/onlinepayments/sdk/webhooks/webhooks_event.rb +58 -0
- data/lib/onlinepayments/sdk/webhooks/webhooks_helper.rb +100 -0
- data/lib/onlinepayments/sdk/webhooks/webhooks_helper_builder.rb +25 -0
- data/lib/onlinepayments/sdk/webhooks.rb +11 -0
- data/lib/onlinepayments/sdk.rb +26 -0
- data/onlinepayments-sdk-ruby.gemspec +28 -0
- metadata +416 -0
@@ -0,0 +1,58 @@
|
|
1
|
+
#
|
2
|
+
# This class was auto-generated.
|
3
|
+
#
|
4
|
+
require 'onlinepayments/sdk/data_object'
|
5
|
+
require 'onlinepayments/sdk/domain/personal_name'
|
6
|
+
|
7
|
+
module OnlinePayments::SDK
|
8
|
+
module Domain
|
9
|
+
|
10
|
+
# @attr [String] additional_info
|
11
|
+
# @attr [String] city
|
12
|
+
# @attr [String] country_code
|
13
|
+
# @attr [String] house_number
|
14
|
+
# @attr [OnlinePayments::SDK::Domain::PersonalName] name
|
15
|
+
# @attr [String] state
|
16
|
+
# @attr [String] street
|
17
|
+
# @attr [String] zip
|
18
|
+
class AddressPersonal < OnlinePayments::SDK::DataObject
|
19
|
+
attr_accessor :additional_info
|
20
|
+
attr_accessor :city
|
21
|
+
attr_accessor :country_code
|
22
|
+
attr_accessor :house_number
|
23
|
+
attr_accessor :name
|
24
|
+
attr_accessor :state
|
25
|
+
attr_accessor :street
|
26
|
+
attr_accessor :zip
|
27
|
+
|
28
|
+
# @return (Hash)
|
29
|
+
def to_h
|
30
|
+
hash = super
|
31
|
+
hash['additionalInfo'] = @additional_info unless @additional_info.nil?
|
32
|
+
hash['city'] = @city unless @city.nil?
|
33
|
+
hash['countryCode'] = @country_code unless @country_code.nil?
|
34
|
+
hash['houseNumber'] = @house_number unless @house_number.nil?
|
35
|
+
hash['name'] = @name.to_h if @name
|
36
|
+
hash['state'] = @state unless @state.nil?
|
37
|
+
hash['street'] = @street unless @street.nil?
|
38
|
+
hash['zip'] = @zip unless @zip.nil?
|
39
|
+
hash
|
40
|
+
end
|
41
|
+
|
42
|
+
def from_hash(hash)
|
43
|
+
super
|
44
|
+
@additional_info = hash['additionalInfo'] if hash.key? 'additionalInfo'
|
45
|
+
@city = hash['city'] if hash.key? 'city'
|
46
|
+
@country_code = hash['countryCode'] if hash.key? 'countryCode'
|
47
|
+
@house_number = hash['houseNumber'] if hash.key? 'houseNumber'
|
48
|
+
if hash.key? 'name'
|
49
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['name']] unless hash['name'].is_a? Hash
|
50
|
+
@name = OnlinePayments::SDK::Domain::PersonalName.new_from_hash(hash['name'])
|
51
|
+
end
|
52
|
+
@state = hash['state'] if hash.key? 'state'
|
53
|
+
@street = hash['street'] if hash.key? 'street'
|
54
|
+
@zip = hash['zip'] if hash.key? 'zip'
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
@@ -0,0 +1,128 @@
|
|
1
|
+
#
|
2
|
+
# This class was auto-generated.
|
3
|
+
#
|
4
|
+
require 'onlinepayments/sdk/data_object'
|
5
|
+
require 'onlinepayments/sdk/domain/airline_flight_leg'
|
6
|
+
require 'onlinepayments/sdk/domain/airline_passenger'
|
7
|
+
|
8
|
+
module OnlinePayments::SDK
|
9
|
+
module Domain
|
10
|
+
|
11
|
+
# @attr [String] agent_numeric_code
|
12
|
+
# @attr [String] code
|
13
|
+
# @attr [String] flight_date
|
14
|
+
# @attr [Array<OnlinePayments::SDK::Domain::AirlineFlightLeg>] flight_legs
|
15
|
+
# @attr [String] invoice_number
|
16
|
+
# @attr [true/false] is_e_ticket
|
17
|
+
# @attr [true/false] is_restricted_ticket
|
18
|
+
# @attr [true/false] is_third_party
|
19
|
+
# @attr [String] issue_date
|
20
|
+
# @attr [String] merchant_customer_id
|
21
|
+
# @attr [String] name
|
22
|
+
# @attr [String] passenger_name
|
23
|
+
# @attr [Array<OnlinePayments::SDK::Domain::AirlinePassenger>] passengers
|
24
|
+
# @attr [String] place_of_issue
|
25
|
+
# @attr [String] pnr
|
26
|
+
# @attr [String] point_of_sale
|
27
|
+
# @attr [String] pos_city_code
|
28
|
+
# @attr [String] ticket_delivery_method
|
29
|
+
# @attr [String] ticket_number
|
30
|
+
# @attr [Integer] total_fare
|
31
|
+
# @attr [Integer] total_fee
|
32
|
+
# @attr [Integer] total_taxes
|
33
|
+
# @attr [String] travel_agency_name
|
34
|
+
class AirlineData < OnlinePayments::SDK::DataObject
|
35
|
+
attr_accessor :agent_numeric_code
|
36
|
+
attr_accessor :code
|
37
|
+
attr_accessor :flight_date
|
38
|
+
attr_accessor :flight_legs
|
39
|
+
attr_accessor :invoice_number
|
40
|
+
attr_accessor :is_e_ticket
|
41
|
+
attr_accessor :is_restricted_ticket
|
42
|
+
attr_accessor :is_third_party
|
43
|
+
attr_accessor :issue_date
|
44
|
+
attr_accessor :merchant_customer_id
|
45
|
+
attr_accessor :name
|
46
|
+
attr_accessor :passenger_name
|
47
|
+
attr_accessor :passengers
|
48
|
+
attr_accessor :place_of_issue
|
49
|
+
attr_accessor :pnr
|
50
|
+
attr_accessor :point_of_sale
|
51
|
+
attr_accessor :pos_city_code
|
52
|
+
attr_accessor :ticket_delivery_method
|
53
|
+
attr_accessor :ticket_number
|
54
|
+
attr_accessor :total_fare
|
55
|
+
attr_accessor :total_fee
|
56
|
+
attr_accessor :total_taxes
|
57
|
+
attr_accessor :travel_agency_name
|
58
|
+
|
59
|
+
# @return (Hash)
|
60
|
+
def to_h
|
61
|
+
hash = super
|
62
|
+
hash['agentNumericCode'] = @agent_numeric_code unless @agent_numeric_code.nil?
|
63
|
+
hash['code'] = @code unless @code.nil?
|
64
|
+
hash['flightDate'] = @flight_date unless @flight_date.nil?
|
65
|
+
hash['flightLegs'] = @flight_legs.collect(&:to_h) if @flight_legs
|
66
|
+
hash['invoiceNumber'] = @invoice_number unless @invoice_number.nil?
|
67
|
+
hash['isETicket'] = @is_e_ticket unless @is_e_ticket.nil?
|
68
|
+
hash['isRestrictedTicket'] = @is_restricted_ticket unless @is_restricted_ticket.nil?
|
69
|
+
hash['isThirdParty'] = @is_third_party unless @is_third_party.nil?
|
70
|
+
hash['issueDate'] = @issue_date unless @issue_date.nil?
|
71
|
+
hash['merchantCustomerId'] = @merchant_customer_id unless @merchant_customer_id.nil?
|
72
|
+
hash['name'] = @name unless @name.nil?
|
73
|
+
hash['passengerName'] = @passenger_name unless @passenger_name.nil?
|
74
|
+
hash['passengers'] = @passengers.collect(&:to_h) if @passengers
|
75
|
+
hash['placeOfIssue'] = @place_of_issue unless @place_of_issue.nil?
|
76
|
+
hash['pnr'] = @pnr unless @pnr.nil?
|
77
|
+
hash['pointOfSale'] = @point_of_sale unless @point_of_sale.nil?
|
78
|
+
hash['posCityCode'] = @pos_city_code unless @pos_city_code.nil?
|
79
|
+
hash['ticketDeliveryMethod'] = @ticket_delivery_method unless @ticket_delivery_method.nil?
|
80
|
+
hash['ticketNumber'] = @ticket_number unless @ticket_number.nil?
|
81
|
+
hash['totalFare'] = @total_fare unless @total_fare.nil?
|
82
|
+
hash['totalFee'] = @total_fee unless @total_fee.nil?
|
83
|
+
hash['totalTaxes'] = @total_taxes unless @total_taxes.nil?
|
84
|
+
hash['travelAgencyName'] = @travel_agency_name unless @travel_agency_name.nil?
|
85
|
+
hash
|
86
|
+
end
|
87
|
+
|
88
|
+
def from_hash(hash)
|
89
|
+
super
|
90
|
+
@agent_numeric_code = hash['agentNumericCode'] if hash.key? 'agentNumericCode'
|
91
|
+
@code = hash['code'] if hash.key? 'code'
|
92
|
+
@flight_date = hash['flightDate'] if hash.key? 'flightDate'
|
93
|
+
if hash.key? 'flightLegs'
|
94
|
+
raise TypeError, "value '%s' is not an Array" % [hash['flightLegs']] unless hash['flightLegs'].is_a? Array
|
95
|
+
@flight_legs = []
|
96
|
+
hash['flightLegs'].each do |e|
|
97
|
+
@flight_legs << OnlinePayments::SDK::Domain::AirlineFlightLeg.new_from_hash(e)
|
98
|
+
end
|
99
|
+
end
|
100
|
+
@invoice_number = hash['invoiceNumber'] if hash.key? 'invoiceNumber'
|
101
|
+
@is_e_ticket = hash['isETicket'] if hash.key? 'isETicket'
|
102
|
+
@is_restricted_ticket = hash['isRestrictedTicket'] if hash.key? 'isRestrictedTicket'
|
103
|
+
@is_third_party = hash['isThirdParty'] if hash.key? 'isThirdParty'
|
104
|
+
@issue_date = hash['issueDate'] if hash.key? 'issueDate'
|
105
|
+
@merchant_customer_id = hash['merchantCustomerId'] if hash.key? 'merchantCustomerId'
|
106
|
+
@name = hash['name'] if hash.key? 'name'
|
107
|
+
@passenger_name = hash['passengerName'] if hash.key? 'passengerName'
|
108
|
+
if hash.key? 'passengers'
|
109
|
+
raise TypeError, "value '%s' is not an Array" % [hash['passengers']] unless hash['passengers'].is_a? Array
|
110
|
+
@passengers = []
|
111
|
+
hash['passengers'].each do |e|
|
112
|
+
@passengers << OnlinePayments::SDK::Domain::AirlinePassenger.new_from_hash(e)
|
113
|
+
end
|
114
|
+
end
|
115
|
+
@place_of_issue = hash['placeOfIssue'] if hash.key? 'placeOfIssue'
|
116
|
+
@pnr = hash['pnr'] if hash.key? 'pnr'
|
117
|
+
@point_of_sale = hash['pointOfSale'] if hash.key? 'pointOfSale'
|
118
|
+
@pos_city_code = hash['posCityCode'] if hash.key? 'posCityCode'
|
119
|
+
@ticket_delivery_method = hash['ticketDeliveryMethod'] if hash.key? 'ticketDeliveryMethod'
|
120
|
+
@ticket_number = hash['ticketNumber'] if hash.key? 'ticketNumber'
|
121
|
+
@total_fare = hash['totalFare'] if hash.key? 'totalFare'
|
122
|
+
@total_fee = hash['totalFee'] if hash.key? 'totalFee'
|
123
|
+
@total_taxes = hash['totalTaxes'] if hash.key? 'totalTaxes'
|
124
|
+
@travel_agency_name = hash['travelAgencyName'] if hash.key? 'travelAgencyName'
|
125
|
+
end
|
126
|
+
end
|
127
|
+
end
|
128
|
+
end
|
@@ -0,0 +1,102 @@
|
|
1
|
+
#
|
2
|
+
# This class was auto-generated.
|
3
|
+
#
|
4
|
+
require 'onlinepayments/sdk/data_object'
|
5
|
+
|
6
|
+
module OnlinePayments::SDK
|
7
|
+
module Domain
|
8
|
+
|
9
|
+
# @attr [String] airline_class
|
10
|
+
# @attr [String] arrival_airport
|
11
|
+
# @attr [String] arrival_time
|
12
|
+
# @attr [String] carrier_code
|
13
|
+
# @attr [String] conjunction_ticket
|
14
|
+
# @attr [String] coupon_number
|
15
|
+
# @attr [String] date
|
16
|
+
# @attr [String] departure_time
|
17
|
+
# @attr [String] endorsement_or_restriction
|
18
|
+
# @attr [String] exchange_ticket
|
19
|
+
# @attr [String] fare
|
20
|
+
# @attr [String] fare_basis
|
21
|
+
# @attr [Integer] fee
|
22
|
+
# @attr [String] flight_number
|
23
|
+
# @attr [Integer] leg_fare
|
24
|
+
# @attr [Integer] number
|
25
|
+
# @attr [String] origin_airport
|
26
|
+
# @attr [String] passenger_class
|
27
|
+
# @attr [String] stopover_code
|
28
|
+
# @attr [Integer] taxes
|
29
|
+
class AirlineFlightLeg < OnlinePayments::SDK::DataObject
|
30
|
+
attr_accessor :airline_class
|
31
|
+
attr_accessor :arrival_airport
|
32
|
+
attr_accessor :arrival_time
|
33
|
+
attr_accessor :carrier_code
|
34
|
+
attr_accessor :conjunction_ticket
|
35
|
+
attr_accessor :coupon_number
|
36
|
+
attr_accessor :date
|
37
|
+
attr_accessor :departure_time
|
38
|
+
attr_accessor :endorsement_or_restriction
|
39
|
+
attr_accessor :exchange_ticket
|
40
|
+
attr_accessor :fare
|
41
|
+
attr_accessor :fare_basis
|
42
|
+
attr_accessor :fee
|
43
|
+
attr_accessor :flight_number
|
44
|
+
attr_accessor :leg_fare
|
45
|
+
attr_accessor :number
|
46
|
+
attr_accessor :origin_airport
|
47
|
+
attr_accessor :passenger_class
|
48
|
+
attr_accessor :stopover_code
|
49
|
+
attr_accessor :taxes
|
50
|
+
|
51
|
+
# @return (Hash)
|
52
|
+
def to_h
|
53
|
+
hash = super
|
54
|
+
hash['airlineClass'] = @airline_class unless @airline_class.nil?
|
55
|
+
hash['arrivalAirport'] = @arrival_airport unless @arrival_airport.nil?
|
56
|
+
hash['arrivalTime'] = @arrival_time unless @arrival_time.nil?
|
57
|
+
hash['carrierCode'] = @carrier_code unless @carrier_code.nil?
|
58
|
+
hash['conjunctionTicket'] = @conjunction_ticket unless @conjunction_ticket.nil?
|
59
|
+
hash['couponNumber'] = @coupon_number unless @coupon_number.nil?
|
60
|
+
hash['date'] = @date unless @date.nil?
|
61
|
+
hash['departureTime'] = @departure_time unless @departure_time.nil?
|
62
|
+
hash['endorsementOrRestriction'] = @endorsement_or_restriction unless @endorsement_or_restriction.nil?
|
63
|
+
hash['exchangeTicket'] = @exchange_ticket unless @exchange_ticket.nil?
|
64
|
+
hash['fare'] = @fare unless @fare.nil?
|
65
|
+
hash['fareBasis'] = @fare_basis unless @fare_basis.nil?
|
66
|
+
hash['fee'] = @fee unless @fee.nil?
|
67
|
+
hash['flightNumber'] = @flight_number unless @flight_number.nil?
|
68
|
+
hash['legFare'] = @leg_fare unless @leg_fare.nil?
|
69
|
+
hash['number'] = @number unless @number.nil?
|
70
|
+
hash['originAirport'] = @origin_airport unless @origin_airport.nil?
|
71
|
+
hash['passengerClass'] = @passenger_class unless @passenger_class.nil?
|
72
|
+
hash['stopoverCode'] = @stopover_code unless @stopover_code.nil?
|
73
|
+
hash['taxes'] = @taxes unless @taxes.nil?
|
74
|
+
hash
|
75
|
+
end
|
76
|
+
|
77
|
+
def from_hash(hash)
|
78
|
+
super
|
79
|
+
@airline_class = hash['airlineClass'] if hash.key? 'airlineClass'
|
80
|
+
@arrival_airport = hash['arrivalAirport'] if hash.key? 'arrivalAirport'
|
81
|
+
@arrival_time = hash['arrivalTime'] if hash.key? 'arrivalTime'
|
82
|
+
@carrier_code = hash['carrierCode'] if hash.key? 'carrierCode'
|
83
|
+
@conjunction_ticket = hash['conjunctionTicket'] if hash.key? 'conjunctionTicket'
|
84
|
+
@coupon_number = hash['couponNumber'] if hash.key? 'couponNumber'
|
85
|
+
@date = hash['date'] if hash.key? 'date'
|
86
|
+
@departure_time = hash['departureTime'] if hash.key? 'departureTime'
|
87
|
+
@endorsement_or_restriction = hash['endorsementOrRestriction'] if hash.key? 'endorsementOrRestriction'
|
88
|
+
@exchange_ticket = hash['exchangeTicket'] if hash.key? 'exchangeTicket'
|
89
|
+
@fare = hash['fare'] if hash.key? 'fare'
|
90
|
+
@fare_basis = hash['fareBasis'] if hash.key? 'fareBasis'
|
91
|
+
@fee = hash['fee'] if hash.key? 'fee'
|
92
|
+
@flight_number = hash['flightNumber'] if hash.key? 'flightNumber'
|
93
|
+
@leg_fare = hash['legFare'] if hash.key? 'legFare'
|
94
|
+
@number = hash['number'] if hash.key? 'number'
|
95
|
+
@origin_airport = hash['originAirport'] if hash.key? 'originAirport'
|
96
|
+
@passenger_class = hash['passengerClass'] if hash.key? 'passengerClass'
|
97
|
+
@stopover_code = hash['stopoverCode'] if hash.key? 'stopoverCode'
|
98
|
+
@taxes = hash['taxes'] if hash.key? 'taxes'
|
99
|
+
end
|
100
|
+
end
|
101
|
+
end
|
102
|
+
end
|
@@ -0,0 +1,38 @@
|
|
1
|
+
#
|
2
|
+
# This class was auto-generated.
|
3
|
+
#
|
4
|
+
require 'onlinepayments/sdk/data_object'
|
5
|
+
|
6
|
+
module OnlinePayments::SDK
|
7
|
+
module Domain
|
8
|
+
|
9
|
+
# @attr [String] first_name
|
10
|
+
# @attr [String] surname
|
11
|
+
# @attr [String] surname_prefix
|
12
|
+
# @attr [String] title
|
13
|
+
class AirlinePassenger < OnlinePayments::SDK::DataObject
|
14
|
+
attr_accessor :first_name
|
15
|
+
attr_accessor :surname
|
16
|
+
attr_accessor :surname_prefix
|
17
|
+
attr_accessor :title
|
18
|
+
|
19
|
+
# @return (Hash)
|
20
|
+
def to_h
|
21
|
+
hash = super
|
22
|
+
hash['firstName'] = @first_name unless @first_name.nil?
|
23
|
+
hash['surname'] = @surname unless @surname.nil?
|
24
|
+
hash['surnamePrefix'] = @surname_prefix unless @surname_prefix.nil?
|
25
|
+
hash['title'] = @title unless @title.nil?
|
26
|
+
hash
|
27
|
+
end
|
28
|
+
|
29
|
+
def from_hash(hash)
|
30
|
+
super
|
31
|
+
@first_name = hash['firstName'] if hash.key? 'firstName'
|
32
|
+
@surname = hash['surname'] if hash.key? 'surname'
|
33
|
+
@surname_prefix = hash['surnamePrefix'] if hash.key? 'surnamePrefix'
|
34
|
+
@title = hash['title'] if hash.key? 'title'
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
@@ -0,0 +1,30 @@
|
|
1
|
+
#
|
2
|
+
# This class was auto-generated.
|
3
|
+
#
|
4
|
+
require 'onlinepayments/sdk/data_object'
|
5
|
+
|
6
|
+
module OnlinePayments::SDK
|
7
|
+
module Domain
|
8
|
+
|
9
|
+
# @attr [Long] amount
|
10
|
+
# @attr [String] type
|
11
|
+
class AmountBreakdown < OnlinePayments::SDK::DataObject
|
12
|
+
attr_accessor :amount
|
13
|
+
attr_accessor :type
|
14
|
+
|
15
|
+
# @return (Hash)
|
16
|
+
def to_h
|
17
|
+
hash = super
|
18
|
+
hash['amount'] = @amount unless @amount.nil?
|
19
|
+
hash['type'] = @type unless @type.nil?
|
20
|
+
hash
|
21
|
+
end
|
22
|
+
|
23
|
+
def from_hash(hash)
|
24
|
+
super
|
25
|
+
@amount = hash['amount'] if hash.key? 'amount'
|
26
|
+
@type = hash['type'] if hash.key? 'type'
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
@@ -0,0 +1,30 @@
|
|
1
|
+
#
|
2
|
+
# This class was auto-generated.
|
3
|
+
#
|
4
|
+
require 'onlinepayments/sdk/data_object'
|
5
|
+
|
6
|
+
module OnlinePayments::SDK
|
7
|
+
module Domain
|
8
|
+
|
9
|
+
# @attr [Long] amount
|
10
|
+
# @attr [String] currency_code
|
11
|
+
class AmountOfMoney < OnlinePayments::SDK::DataObject
|
12
|
+
attr_accessor :amount
|
13
|
+
attr_accessor :currency_code
|
14
|
+
|
15
|
+
# @return (Hash)
|
16
|
+
def to_h
|
17
|
+
hash = super
|
18
|
+
hash['amount'] = @amount unless @amount.nil?
|
19
|
+
hash['currencyCode'] = @currency_code unless @currency_code.nil?
|
20
|
+
hash
|
21
|
+
end
|
22
|
+
|
23
|
+
def from_hash(hash)
|
24
|
+
super
|
25
|
+
@amount = hash['amount'] if hash.key? 'amount'
|
26
|
+
@currency_code = hash['currencyCode'] if hash.key? 'currencyCode'
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
@@ -0,0 +1,46 @@
|
|
1
|
+
#
|
2
|
+
# This class was auto-generated.
|
3
|
+
#
|
4
|
+
require 'onlinepayments/sdk/data_object'
|
5
|
+
|
6
|
+
module OnlinePayments::SDK
|
7
|
+
module Domain
|
8
|
+
|
9
|
+
# @attr [String] category
|
10
|
+
# @attr [String] code
|
11
|
+
# @attr [Integer] http_status_code
|
12
|
+
# @attr [String] id
|
13
|
+
# @attr [String] message
|
14
|
+
# @attr [String] property_name
|
15
|
+
class APIError < OnlinePayments::SDK::DataObject
|
16
|
+
attr_accessor :category
|
17
|
+
attr_accessor :code
|
18
|
+
attr_accessor :http_status_code
|
19
|
+
attr_accessor :id
|
20
|
+
attr_accessor :message
|
21
|
+
attr_accessor :property_name
|
22
|
+
|
23
|
+
# @return (Hash)
|
24
|
+
def to_h
|
25
|
+
hash = super
|
26
|
+
hash['category'] = @category unless @category.nil?
|
27
|
+
hash['code'] = @code unless @code.nil?
|
28
|
+
hash['httpStatusCode'] = @http_status_code unless @http_status_code.nil?
|
29
|
+
hash['id'] = @id unless @id.nil?
|
30
|
+
hash['message'] = @message unless @message.nil?
|
31
|
+
hash['propertyName'] = @property_name unless @property_name.nil?
|
32
|
+
hash
|
33
|
+
end
|
34
|
+
|
35
|
+
def from_hash(hash)
|
36
|
+
super
|
37
|
+
@category = hash['category'] if hash.key? 'category'
|
38
|
+
@code = hash['code'] if hash.key? 'code'
|
39
|
+
@http_status_code = hash['httpStatusCode'] if hash.key? 'httpStatusCode'
|
40
|
+
@id = hash['id'] if hash.key? 'id'
|
41
|
+
@message = hash['message'] if hash.key? 'message'
|
42
|
+
@property_name = hash['propertyName'] if hash.key? 'propertyName'
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
#
|
2
|
+
# This class was auto-generated.
|
3
|
+
#
|
4
|
+
require 'onlinepayments/sdk/data_object'
|
5
|
+
|
6
|
+
module OnlinePayments::SDK
|
7
|
+
module Domain
|
8
|
+
|
9
|
+
# @attr [String] iban
|
10
|
+
class BankAccountIban < OnlinePayments::SDK::DataObject
|
11
|
+
attr_accessor :iban
|
12
|
+
|
13
|
+
# @return (Hash)
|
14
|
+
def to_h
|
15
|
+
hash = super
|
16
|
+
hash['iban'] = @iban unless @iban.nil?
|
17
|
+
hash
|
18
|
+
end
|
19
|
+
|
20
|
+
def from_hash(hash)
|
21
|
+
super
|
22
|
+
@iban = hash['iban'] if hash.key? 'iban'
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
@@ -0,0 +1,42 @@
|
|
1
|
+
#
|
2
|
+
# This class was auto-generated.
|
3
|
+
#
|
4
|
+
require 'onlinepayments/sdk/data_object'
|
5
|
+
|
6
|
+
module OnlinePayments::SDK
|
7
|
+
module Domain
|
8
|
+
|
9
|
+
# @attr [Integer] color_depth
|
10
|
+
# @attr [true/false] java_enabled
|
11
|
+
# @attr [true/false] java_script_enabled
|
12
|
+
# @attr [String] screen_height
|
13
|
+
# @attr [String] screen_width
|
14
|
+
class BrowserData < OnlinePayments::SDK::DataObject
|
15
|
+
attr_accessor :color_depth
|
16
|
+
attr_accessor :java_enabled
|
17
|
+
attr_accessor :java_script_enabled
|
18
|
+
attr_accessor :screen_height
|
19
|
+
attr_accessor :screen_width
|
20
|
+
|
21
|
+
# @return (Hash)
|
22
|
+
def to_h
|
23
|
+
hash = super
|
24
|
+
hash['colorDepth'] = @color_depth unless @color_depth.nil?
|
25
|
+
hash['javaEnabled'] = @java_enabled unless @java_enabled.nil?
|
26
|
+
hash['javaScriptEnabled'] = @java_script_enabled unless @java_script_enabled.nil?
|
27
|
+
hash['screenHeight'] = @screen_height unless @screen_height.nil?
|
28
|
+
hash['screenWidth'] = @screen_width unless @screen_width.nil?
|
29
|
+
hash
|
30
|
+
end
|
31
|
+
|
32
|
+
def from_hash(hash)
|
33
|
+
super
|
34
|
+
@color_depth = hash['colorDepth'] if hash.key? 'colorDepth'
|
35
|
+
@java_enabled = hash['javaEnabled'] if hash.key? 'javaEnabled'
|
36
|
+
@java_script_enabled = hash['javaScriptEnabled'] if hash.key? 'javaScriptEnabled'
|
37
|
+
@screen_height = hash['screenHeight'] if hash.key? 'screenHeight'
|
38
|
+
@screen_width = hash['screenWidth'] if hash.key? 'screenWidth'
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
@@ -0,0 +1,30 @@
|
|
1
|
+
#
|
2
|
+
# This class was auto-generated.
|
3
|
+
#
|
4
|
+
require 'onlinepayments/sdk/data_object'
|
5
|
+
require 'onlinepayments/sdk/domain/payment_response'
|
6
|
+
|
7
|
+
module OnlinePayments::SDK
|
8
|
+
module Domain
|
9
|
+
|
10
|
+
# @attr [OnlinePayments::SDK::Domain::PaymentResponse] payment
|
11
|
+
class CancelPaymentResponse < OnlinePayments::SDK::DataObject
|
12
|
+
attr_accessor :payment
|
13
|
+
|
14
|
+
# @return (Hash)
|
15
|
+
def to_h
|
16
|
+
hash = super
|
17
|
+
hash['payment'] = @payment.to_h if @payment
|
18
|
+
hash
|
19
|
+
end
|
20
|
+
|
21
|
+
def from_hash(hash)
|
22
|
+
super
|
23
|
+
if hash.key? 'payment'
|
24
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['payment']] unless hash['payment'].is_a? Hash
|
25
|
+
@payment = OnlinePayments::SDK::Domain::PaymentResponse.new_from_hash(hash['payment'])
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
@@ -0,0 +1,46 @@
|
|
1
|
+
#
|
2
|
+
# This class was auto-generated.
|
3
|
+
#
|
4
|
+
require 'onlinepayments/sdk/data_object'
|
5
|
+
require 'onlinepayments/sdk/domain/capture_output'
|
6
|
+
require 'onlinepayments/sdk/domain/capture_status_output'
|
7
|
+
|
8
|
+
module OnlinePayments::SDK
|
9
|
+
module Domain
|
10
|
+
|
11
|
+
# @attr [OnlinePayments::SDK::Domain::CaptureOutput] capture_output
|
12
|
+
# @attr [String] id
|
13
|
+
# @attr [String] status
|
14
|
+
# @attr [OnlinePayments::SDK::Domain::CaptureStatusOutput] status_output
|
15
|
+
class Capture < OnlinePayments::SDK::DataObject
|
16
|
+
attr_accessor :capture_output
|
17
|
+
attr_accessor :id
|
18
|
+
attr_accessor :status
|
19
|
+
attr_accessor :status_output
|
20
|
+
|
21
|
+
# @return (Hash)
|
22
|
+
def to_h
|
23
|
+
hash = super
|
24
|
+
hash['captureOutput'] = @capture_output.to_h if @capture_output
|
25
|
+
hash['id'] = @id unless @id.nil?
|
26
|
+
hash['status'] = @status unless @status.nil?
|
27
|
+
hash['statusOutput'] = @status_output.to_h if @status_output
|
28
|
+
hash
|
29
|
+
end
|
30
|
+
|
31
|
+
def from_hash(hash)
|
32
|
+
super
|
33
|
+
if hash.key? 'captureOutput'
|
34
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['captureOutput']] unless hash['captureOutput'].is_a? Hash
|
35
|
+
@capture_output = OnlinePayments::SDK::Domain::CaptureOutput.new_from_hash(hash['captureOutput'])
|
36
|
+
end
|
37
|
+
@id = hash['id'] if hash.key? 'id'
|
38
|
+
@status = hash['status'] if hash.key? 'status'
|
39
|
+
if hash.key? 'statusOutput'
|
40
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['statusOutput']] unless hash['statusOutput'].is_a? Hash
|
41
|
+
@status_output = OnlinePayments::SDK::Domain::CaptureStatusOutput.new_from_hash(hash['statusOutput'])
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
@@ -0,0 +1,82 @@
|
|
1
|
+
#
|
2
|
+
# This class was auto-generated.
|
3
|
+
#
|
4
|
+
require 'onlinepayments/sdk/data_object'
|
5
|
+
require 'onlinepayments/sdk/domain/amount_of_money'
|
6
|
+
require 'onlinepayments/sdk/domain/card_payment_method_specific_output'
|
7
|
+
require 'onlinepayments/sdk/domain/mobile_payment_method_specific_output'
|
8
|
+
require 'onlinepayments/sdk/domain/payment_references'
|
9
|
+
require 'onlinepayments/sdk/domain/redirect_payment_method_specific_output'
|
10
|
+
require 'onlinepayments/sdk/domain/sepa_direct_debit_payment_method_specific_output'
|
11
|
+
|
12
|
+
module OnlinePayments::SDK
|
13
|
+
module Domain
|
14
|
+
|
15
|
+
# @attr [OnlinePayments::SDK::Domain::AmountOfMoney] amount_of_money
|
16
|
+
# @attr [Long] amount_paid
|
17
|
+
# @attr [OnlinePayments::SDK::Domain::CardPaymentMethodSpecificOutput] card_payment_method_specific_output
|
18
|
+
# @attr [String] merchant_parameters
|
19
|
+
# @attr [OnlinePayments::SDK::Domain::MobilePaymentMethodSpecificOutput] mobile_payment_method_specific_output
|
20
|
+
# @attr [String] payment_method
|
21
|
+
# @attr [OnlinePayments::SDK::Domain::RedirectPaymentMethodSpecificOutput] redirect_payment_method_specific_output
|
22
|
+
# @attr [OnlinePayments::SDK::Domain::PaymentReferences] references
|
23
|
+
# @attr [OnlinePayments::SDK::Domain::SepaDirectDebitPaymentMethodSpecificOutput] sepa_direct_debit_payment_method_specific_output
|
24
|
+
class CaptureOutput < OnlinePayments::SDK::DataObject
|
25
|
+
attr_accessor :amount_of_money
|
26
|
+
attr_accessor :amount_paid
|
27
|
+
attr_accessor :card_payment_method_specific_output
|
28
|
+
attr_accessor :merchant_parameters
|
29
|
+
attr_accessor :mobile_payment_method_specific_output
|
30
|
+
attr_accessor :payment_method
|
31
|
+
attr_accessor :redirect_payment_method_specific_output
|
32
|
+
attr_accessor :references
|
33
|
+
attr_accessor :sepa_direct_debit_payment_method_specific_output
|
34
|
+
|
35
|
+
# @return (Hash)
|
36
|
+
def to_h
|
37
|
+
hash = super
|
38
|
+
hash['amountOfMoney'] = @amount_of_money.to_h if @amount_of_money
|
39
|
+
hash['amountPaid'] = @amount_paid unless @amount_paid.nil?
|
40
|
+
hash['cardPaymentMethodSpecificOutput'] = @card_payment_method_specific_output.to_h if @card_payment_method_specific_output
|
41
|
+
hash['merchantParameters'] = @merchant_parameters unless @merchant_parameters.nil?
|
42
|
+
hash['mobilePaymentMethodSpecificOutput'] = @mobile_payment_method_specific_output.to_h if @mobile_payment_method_specific_output
|
43
|
+
hash['paymentMethod'] = @payment_method unless @payment_method.nil?
|
44
|
+
hash['redirectPaymentMethodSpecificOutput'] = @redirect_payment_method_specific_output.to_h if @redirect_payment_method_specific_output
|
45
|
+
hash['references'] = @references.to_h if @references
|
46
|
+
hash['sepaDirectDebitPaymentMethodSpecificOutput'] = @sepa_direct_debit_payment_method_specific_output.to_h if @sepa_direct_debit_payment_method_specific_output
|
47
|
+
hash
|
48
|
+
end
|
49
|
+
|
50
|
+
def from_hash(hash)
|
51
|
+
super
|
52
|
+
if hash.key? 'amountOfMoney'
|
53
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['amountOfMoney']] unless hash['amountOfMoney'].is_a? Hash
|
54
|
+
@amount_of_money = OnlinePayments::SDK::Domain::AmountOfMoney.new_from_hash(hash['amountOfMoney'])
|
55
|
+
end
|
56
|
+
@amount_paid = hash['amountPaid'] if hash.key? 'amountPaid'
|
57
|
+
if hash.key? 'cardPaymentMethodSpecificOutput'
|
58
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['cardPaymentMethodSpecificOutput']] unless hash['cardPaymentMethodSpecificOutput'].is_a? Hash
|
59
|
+
@card_payment_method_specific_output = OnlinePayments::SDK::Domain::CardPaymentMethodSpecificOutput.new_from_hash(hash['cardPaymentMethodSpecificOutput'])
|
60
|
+
end
|
61
|
+
@merchant_parameters = hash['merchantParameters'] if hash.key? 'merchantParameters'
|
62
|
+
if hash.key? 'mobilePaymentMethodSpecificOutput'
|
63
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['mobilePaymentMethodSpecificOutput']] unless hash['mobilePaymentMethodSpecificOutput'].is_a? Hash
|
64
|
+
@mobile_payment_method_specific_output = OnlinePayments::SDK::Domain::MobilePaymentMethodSpecificOutput.new_from_hash(hash['mobilePaymentMethodSpecificOutput'])
|
65
|
+
end
|
66
|
+
@payment_method = hash['paymentMethod'] if hash.key? 'paymentMethod'
|
67
|
+
if hash.key? 'redirectPaymentMethodSpecificOutput'
|
68
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['redirectPaymentMethodSpecificOutput']] unless hash['redirectPaymentMethodSpecificOutput'].is_a? Hash
|
69
|
+
@redirect_payment_method_specific_output = OnlinePayments::SDK::Domain::RedirectPaymentMethodSpecificOutput.new_from_hash(hash['redirectPaymentMethodSpecificOutput'])
|
70
|
+
end
|
71
|
+
if hash.key? 'references'
|
72
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['references']] unless hash['references'].is_a? Hash
|
73
|
+
@references = OnlinePayments::SDK::Domain::PaymentReferences.new_from_hash(hash['references'])
|
74
|
+
end
|
75
|
+
if hash.key? 'sepaDirectDebitPaymentMethodSpecificOutput'
|
76
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['sepaDirectDebitPaymentMethodSpecificOutput']] unless hash['sepaDirectDebitPaymentMethodSpecificOutput'].is_a? Hash
|
77
|
+
@sepa_direct_debit_payment_method_specific_output = OnlinePayments::SDK::Domain::SepaDirectDebitPaymentMethodSpecificOutput.new_from_hash(hash['sepaDirectDebitPaymentMethodSpecificOutput'])
|
78
|
+
end
|
79
|
+
end
|
80
|
+
end
|
81
|
+
end
|
82
|
+
end
|