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,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] name
|
10
|
+
class CompanyInformation < OnlinePayments::SDK::DataObject
|
11
|
+
attr_accessor :name
|
12
|
+
|
13
|
+
# @return (Hash)
|
14
|
+
def to_h
|
15
|
+
hash = super
|
16
|
+
hash['name'] = @name unless @name.nil?
|
17
|
+
hash
|
18
|
+
end
|
19
|
+
|
20
|
+
def from_hash(hash)
|
21
|
+
super
|
22
|
+
@name = hash['name'] if hash.key? 'name'
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
@@ -0,0 +1,30 @@
|
|
1
|
+
#
|
2
|
+
# This class was auto-generated.
|
3
|
+
#
|
4
|
+
require 'onlinepayments/sdk/data_object'
|
5
|
+
require 'onlinepayments/sdk/domain/card_without_cvv'
|
6
|
+
|
7
|
+
module OnlinePayments::SDK
|
8
|
+
module Domain
|
9
|
+
|
10
|
+
# @attr [OnlinePayments::SDK::Domain::CardWithoutCvv] card
|
11
|
+
class CompletePaymentCardPaymentMethodSpecificInput < OnlinePayments::SDK::DataObject
|
12
|
+
attr_accessor :card
|
13
|
+
|
14
|
+
# @return (Hash)
|
15
|
+
def to_h
|
16
|
+
hash = super
|
17
|
+
hash['card'] = @card.to_h if @card
|
18
|
+
hash
|
19
|
+
end
|
20
|
+
|
21
|
+
def from_hash(hash)
|
22
|
+
super
|
23
|
+
if hash.key? 'card'
|
24
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['card']] unless hash['card'].is_a? Hash
|
25
|
+
@card = OnlinePayments::SDK::Domain::CardWithoutCvv.new_from_hash(hash['card'])
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
@@ -0,0 +1,38 @@
|
|
1
|
+
#
|
2
|
+
# This class was auto-generated.
|
3
|
+
#
|
4
|
+
require 'onlinepayments/sdk/data_object'
|
5
|
+
require 'onlinepayments/sdk/domain/complete_payment_card_payment_method_specific_input'
|
6
|
+
require 'onlinepayments/sdk/domain/order'
|
7
|
+
|
8
|
+
module OnlinePayments::SDK
|
9
|
+
module Domain
|
10
|
+
|
11
|
+
# @attr [OnlinePayments::SDK::Domain::CompletePaymentCardPaymentMethodSpecificInput] card_payment_method_specific_input
|
12
|
+
# @attr [OnlinePayments::SDK::Domain::Order] order
|
13
|
+
class CompletePaymentRequest < OnlinePayments::SDK::DataObject
|
14
|
+
attr_accessor :card_payment_method_specific_input
|
15
|
+
attr_accessor :order
|
16
|
+
|
17
|
+
# @return (Hash)
|
18
|
+
def to_h
|
19
|
+
hash = super
|
20
|
+
hash['cardPaymentMethodSpecificInput'] = @card_payment_method_specific_input.to_h if @card_payment_method_specific_input
|
21
|
+
hash['order'] = @order.to_h if @order
|
22
|
+
hash
|
23
|
+
end
|
24
|
+
|
25
|
+
def from_hash(hash)
|
26
|
+
super
|
27
|
+
if hash.key? 'cardPaymentMethodSpecificInput'
|
28
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['cardPaymentMethodSpecificInput']] unless hash['cardPaymentMethodSpecificInput'].is_a? Hash
|
29
|
+
@card_payment_method_specific_input = OnlinePayments::SDK::Domain::CompletePaymentCardPaymentMethodSpecificInput.new_from_hash(hash['cardPaymentMethodSpecificInput'])
|
30
|
+
end
|
31
|
+
if hash.key? 'order'
|
32
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['order']] unless hash['order'].is_a? Hash
|
33
|
+
@order = OnlinePayments::SDK::Domain::Order.new_from_hash(hash['order'])
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
@@ -0,0 +1,46 @@
|
|
1
|
+
#
|
2
|
+
# This class was auto-generated.
|
3
|
+
#
|
4
|
+
require 'onlinepayments/sdk/data_object'
|
5
|
+
require 'onlinepayments/sdk/domain/merchant_action'
|
6
|
+
require 'onlinepayments/sdk/domain/payment_creation_output'
|
7
|
+
require 'onlinepayments/sdk/domain/payment_response'
|
8
|
+
|
9
|
+
module OnlinePayments::SDK
|
10
|
+
module Domain
|
11
|
+
|
12
|
+
# @attr [OnlinePayments::SDK::Domain::PaymentCreationOutput] creation_output
|
13
|
+
# @attr [OnlinePayments::SDK::Domain::MerchantAction] merchant_action
|
14
|
+
# @attr [OnlinePayments::SDK::Domain::PaymentResponse] payment
|
15
|
+
class CompletePaymentResponse < OnlinePayments::SDK::DataObject
|
16
|
+
attr_accessor :creation_output
|
17
|
+
attr_accessor :merchant_action
|
18
|
+
attr_accessor :payment
|
19
|
+
|
20
|
+
# @return (Hash)
|
21
|
+
def to_h
|
22
|
+
hash = super
|
23
|
+
hash['creationOutput'] = @creation_output.to_h if @creation_output
|
24
|
+
hash['merchantAction'] = @merchant_action.to_h if @merchant_action
|
25
|
+
hash['payment'] = @payment.to_h if @payment
|
26
|
+
hash
|
27
|
+
end
|
28
|
+
|
29
|
+
def from_hash(hash)
|
30
|
+
super
|
31
|
+
if hash.key? 'creationOutput'
|
32
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['creationOutput']] unless hash['creationOutput'].is_a? Hash
|
33
|
+
@creation_output = OnlinePayments::SDK::Domain::PaymentCreationOutput.new_from_hash(hash['creationOutput'])
|
34
|
+
end
|
35
|
+
if hash.key? 'merchantAction'
|
36
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['merchantAction']] unless hash['merchantAction'].is_a? Hash
|
37
|
+
@merchant_action = OnlinePayments::SDK::Domain::MerchantAction.new_from_hash(hash['merchantAction'])
|
38
|
+
end
|
39
|
+
if hash.key? 'payment'
|
40
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['payment']] unless hash['payment'].is_a? Hash
|
41
|
+
@payment = OnlinePayments::SDK::Domain::PaymentResponse.new_from_hash(hash['payment'])
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
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 [String] email_address
|
10
|
+
# @attr [String] fax_number
|
11
|
+
# @attr [String] mobile_phone_number
|
12
|
+
# @attr [String] phone_number
|
13
|
+
# @attr [String] work_phone_number
|
14
|
+
class ContactDetails < OnlinePayments::SDK::DataObject
|
15
|
+
attr_accessor :email_address
|
16
|
+
attr_accessor :fax_number
|
17
|
+
attr_accessor :mobile_phone_number
|
18
|
+
attr_accessor :phone_number
|
19
|
+
attr_accessor :work_phone_number
|
20
|
+
|
21
|
+
# @return (Hash)
|
22
|
+
def to_h
|
23
|
+
hash = super
|
24
|
+
hash['emailAddress'] = @email_address unless @email_address.nil?
|
25
|
+
hash['faxNumber'] = @fax_number unless @fax_number.nil?
|
26
|
+
hash['mobilePhoneNumber'] = @mobile_phone_number unless @mobile_phone_number.nil?
|
27
|
+
hash['phoneNumber'] = @phone_number unless @phone_number.nil?
|
28
|
+
hash['workPhoneNumber'] = @work_phone_number unless @work_phone_number.nil?
|
29
|
+
hash
|
30
|
+
end
|
31
|
+
|
32
|
+
def from_hash(hash)
|
33
|
+
super
|
34
|
+
@email_address = hash['emailAddress'] if hash.key? 'emailAddress'
|
35
|
+
@fax_number = hash['faxNumber'] if hash.key? 'faxNumber'
|
36
|
+
@mobile_phone_number = hash['mobilePhoneNumber'] if hash.key? 'mobilePhoneNumber'
|
37
|
+
@phone_number = hash['phoneNumber'] if hash.key? 'phoneNumber'
|
38
|
+
@work_phone_number = hash['workPhoneNumber'] if hash.key? 'workPhoneNumber'
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
@@ -0,0 +1,78 @@
|
|
1
|
+
#
|
2
|
+
# This class was auto-generated.
|
3
|
+
#
|
4
|
+
require 'onlinepayments/sdk/data_object'
|
5
|
+
require 'onlinepayments/sdk/domain/card_payment_method_specific_input_base'
|
6
|
+
require 'onlinepayments/sdk/domain/fraud_fields'
|
7
|
+
require 'onlinepayments/sdk/domain/hosted_checkout_specific_input'
|
8
|
+
require 'onlinepayments/sdk/domain/mobile_payment_method_hosted_checkout_specific_input'
|
9
|
+
require 'onlinepayments/sdk/domain/order'
|
10
|
+
require 'onlinepayments/sdk/domain/redirect_payment_method_specific_input'
|
11
|
+
require 'onlinepayments/sdk/domain/sepa_direct_debit_payment_method_specific_input_base'
|
12
|
+
|
13
|
+
module OnlinePayments::SDK
|
14
|
+
module Domain
|
15
|
+
|
16
|
+
# @attr [OnlinePayments::SDK::Domain::CardPaymentMethodSpecificInputBase] card_payment_method_specific_input
|
17
|
+
# @attr [OnlinePayments::SDK::Domain::FraudFields] fraud_fields
|
18
|
+
# @attr [OnlinePayments::SDK::Domain::HostedCheckoutSpecificInput] hosted_checkout_specific_input
|
19
|
+
# @attr [OnlinePayments::SDK::Domain::MobilePaymentMethodHostedCheckoutSpecificInput] mobile_payment_method_specific_input
|
20
|
+
# @attr [OnlinePayments::SDK::Domain::Order] order
|
21
|
+
# @attr [OnlinePayments::SDK::Domain::RedirectPaymentMethodSpecificInput] redirect_payment_method_specific_input
|
22
|
+
# @attr [OnlinePayments::SDK::Domain::SepaDirectDebitPaymentMethodSpecificInputBase] sepa_direct_debit_payment_method_specific_input
|
23
|
+
class CreateHostedCheckoutRequest < OnlinePayments::SDK::DataObject
|
24
|
+
attr_accessor :card_payment_method_specific_input
|
25
|
+
attr_accessor :fraud_fields
|
26
|
+
attr_accessor :hosted_checkout_specific_input
|
27
|
+
attr_accessor :mobile_payment_method_specific_input
|
28
|
+
attr_accessor :order
|
29
|
+
attr_accessor :redirect_payment_method_specific_input
|
30
|
+
attr_accessor :sepa_direct_debit_payment_method_specific_input
|
31
|
+
|
32
|
+
# @return (Hash)
|
33
|
+
def to_h
|
34
|
+
hash = super
|
35
|
+
hash['cardPaymentMethodSpecificInput'] = @card_payment_method_specific_input.to_h if @card_payment_method_specific_input
|
36
|
+
hash['fraudFields'] = @fraud_fields.to_h if @fraud_fields
|
37
|
+
hash['hostedCheckoutSpecificInput'] = @hosted_checkout_specific_input.to_h if @hosted_checkout_specific_input
|
38
|
+
hash['mobilePaymentMethodSpecificInput'] = @mobile_payment_method_specific_input.to_h if @mobile_payment_method_specific_input
|
39
|
+
hash['order'] = @order.to_h if @order
|
40
|
+
hash['redirectPaymentMethodSpecificInput'] = @redirect_payment_method_specific_input.to_h if @redirect_payment_method_specific_input
|
41
|
+
hash['sepaDirectDebitPaymentMethodSpecificInput'] = @sepa_direct_debit_payment_method_specific_input.to_h if @sepa_direct_debit_payment_method_specific_input
|
42
|
+
hash
|
43
|
+
end
|
44
|
+
|
45
|
+
def from_hash(hash)
|
46
|
+
super
|
47
|
+
if hash.key? 'cardPaymentMethodSpecificInput'
|
48
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['cardPaymentMethodSpecificInput']] unless hash['cardPaymentMethodSpecificInput'].is_a? Hash
|
49
|
+
@card_payment_method_specific_input = OnlinePayments::SDK::Domain::CardPaymentMethodSpecificInputBase.new_from_hash(hash['cardPaymentMethodSpecificInput'])
|
50
|
+
end
|
51
|
+
if hash.key? 'fraudFields'
|
52
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['fraudFields']] unless hash['fraudFields'].is_a? Hash
|
53
|
+
@fraud_fields = OnlinePayments::SDK::Domain::FraudFields.new_from_hash(hash['fraudFields'])
|
54
|
+
end
|
55
|
+
if hash.key? 'hostedCheckoutSpecificInput'
|
56
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['hostedCheckoutSpecificInput']] unless hash['hostedCheckoutSpecificInput'].is_a? Hash
|
57
|
+
@hosted_checkout_specific_input = OnlinePayments::SDK::Domain::HostedCheckoutSpecificInput.new_from_hash(hash['hostedCheckoutSpecificInput'])
|
58
|
+
end
|
59
|
+
if hash.key? 'mobilePaymentMethodSpecificInput'
|
60
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['mobilePaymentMethodSpecificInput']] unless hash['mobilePaymentMethodSpecificInput'].is_a? Hash
|
61
|
+
@mobile_payment_method_specific_input = OnlinePayments::SDK::Domain::MobilePaymentMethodHostedCheckoutSpecificInput.new_from_hash(hash['mobilePaymentMethodSpecificInput'])
|
62
|
+
end
|
63
|
+
if hash.key? 'order'
|
64
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['order']] unless hash['order'].is_a? Hash
|
65
|
+
@order = OnlinePayments::SDK::Domain::Order.new_from_hash(hash['order'])
|
66
|
+
end
|
67
|
+
if hash.key? 'redirectPaymentMethodSpecificInput'
|
68
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['redirectPaymentMethodSpecificInput']] unless hash['redirectPaymentMethodSpecificInput'].is_a? Hash
|
69
|
+
@redirect_payment_method_specific_input = OnlinePayments::SDK::Domain::RedirectPaymentMethodSpecificInput.new_from_hash(hash['redirectPaymentMethodSpecificInput'])
|
70
|
+
end
|
71
|
+
if hash.key? 'sepaDirectDebitPaymentMethodSpecificInput'
|
72
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['sepaDirectDebitPaymentMethodSpecificInput']] unless hash['sepaDirectDebitPaymentMethodSpecificInput'].is_a? Hash
|
73
|
+
@sepa_direct_debit_payment_method_specific_input = OnlinePayments::SDK::Domain::SepaDirectDebitPaymentMethodSpecificInputBase.new_from_hash(hash['sepaDirectDebitPaymentMethodSpecificInput'])
|
74
|
+
end
|
75
|
+
end
|
76
|
+
end
|
77
|
+
end
|
78
|
+
end
|
@@ -0,0 +1,48 @@
|
|
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] returnmac
|
10
|
+
# @attr [String] hosted_checkout_id
|
11
|
+
# @attr [Array<String>] invalid_tokens
|
12
|
+
# @attr [String] merchant_reference
|
13
|
+
# @attr [String] partial_redirect_url
|
14
|
+
class CreateHostedCheckoutResponse < OnlinePayments::SDK::DataObject
|
15
|
+
attr_accessor :returnmac
|
16
|
+
attr_accessor :hosted_checkout_id
|
17
|
+
attr_accessor :invalid_tokens
|
18
|
+
attr_accessor :merchant_reference
|
19
|
+
attr_accessor :partial_redirect_url
|
20
|
+
|
21
|
+
# @return (Hash)
|
22
|
+
def to_h
|
23
|
+
hash = super
|
24
|
+
hash['RETURNMAC'] = @returnmac unless @returnmac.nil?
|
25
|
+
hash['hostedCheckoutId'] = @hosted_checkout_id unless @hosted_checkout_id.nil?
|
26
|
+
hash['invalidTokens'] = @invalid_tokens unless @invalid_tokens.nil?
|
27
|
+
hash['merchantReference'] = @merchant_reference unless @merchant_reference.nil?
|
28
|
+
hash['partialRedirectUrl'] = @partial_redirect_url unless @partial_redirect_url.nil?
|
29
|
+
hash
|
30
|
+
end
|
31
|
+
|
32
|
+
def from_hash(hash)
|
33
|
+
super
|
34
|
+
@returnmac = hash['RETURNMAC'] if hash.key? 'RETURNMAC'
|
35
|
+
@hosted_checkout_id = hash['hostedCheckoutId'] if hash.key? 'hostedCheckoutId'
|
36
|
+
if hash.key? 'invalidTokens'
|
37
|
+
raise TypeError, "value '%s' is not an Array" % [hash['invalidTokens']] unless hash['invalidTokens'].is_a? Array
|
38
|
+
@invalid_tokens = []
|
39
|
+
hash['invalidTokens'].each do |e|
|
40
|
+
@invalid_tokens << e
|
41
|
+
end
|
42
|
+
end
|
43
|
+
@merchant_reference = hash['merchantReference'] if hash.key? 'merchantReference'
|
44
|
+
@partial_redirect_url = hash['partialRedirectUrl'] if hash.key? 'partialRedirectUrl'
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
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 [true/false] ask_consumer_consent
|
10
|
+
# @attr [String] locale
|
11
|
+
# @attr [String] tokens
|
12
|
+
# @attr [String] variant
|
13
|
+
class CreateHostedTokenizationRequest < OnlinePayments::SDK::DataObject
|
14
|
+
attr_accessor :ask_consumer_consent
|
15
|
+
attr_accessor :locale
|
16
|
+
attr_accessor :tokens
|
17
|
+
attr_accessor :variant
|
18
|
+
|
19
|
+
# @return (Hash)
|
20
|
+
def to_h
|
21
|
+
hash = super
|
22
|
+
hash['askConsumerConsent'] = @ask_consumer_consent unless @ask_consumer_consent.nil?
|
23
|
+
hash['locale'] = @locale unless @locale.nil?
|
24
|
+
hash['tokens'] = @tokens unless @tokens.nil?
|
25
|
+
hash['variant'] = @variant unless @variant.nil?
|
26
|
+
hash
|
27
|
+
end
|
28
|
+
|
29
|
+
def from_hash(hash)
|
30
|
+
super
|
31
|
+
@ask_consumer_consent = hash['askConsumerConsent'] if hash.key? 'askConsumerConsent'
|
32
|
+
@locale = hash['locale'] if hash.key? 'locale'
|
33
|
+
@tokens = hash['tokens'] if hash.key? 'tokens'
|
34
|
+
@variant = hash['variant'] if hash.key? 'variant'
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
@@ -0,0 +1,50 @@
|
|
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 [Array<String>] expired_card_tokens
|
10
|
+
# @attr [String] hosted_tokenization_id
|
11
|
+
# @attr [Array<String>] invalid_tokens
|
12
|
+
# @attr [String] partial_redirect_url
|
13
|
+
class CreateHostedTokenizationResponse < OnlinePayments::SDK::DataObject
|
14
|
+
attr_accessor :expired_card_tokens
|
15
|
+
attr_accessor :hosted_tokenization_id
|
16
|
+
attr_accessor :invalid_tokens
|
17
|
+
attr_accessor :partial_redirect_url
|
18
|
+
|
19
|
+
# @return (Hash)
|
20
|
+
def to_h
|
21
|
+
hash = super
|
22
|
+
hash['expiredCardTokens'] = @expired_card_tokens unless @expired_card_tokens.nil?
|
23
|
+
hash['hostedTokenizationId'] = @hosted_tokenization_id unless @hosted_tokenization_id.nil?
|
24
|
+
hash['invalidTokens'] = @invalid_tokens unless @invalid_tokens.nil?
|
25
|
+
hash['partialRedirectUrl'] = @partial_redirect_url unless @partial_redirect_url.nil?
|
26
|
+
hash
|
27
|
+
end
|
28
|
+
|
29
|
+
def from_hash(hash)
|
30
|
+
super
|
31
|
+
if hash.key? 'expiredCardTokens'
|
32
|
+
raise TypeError, "value '%s' is not an Array" % [hash['expiredCardTokens']] unless hash['expiredCardTokens'].is_a? Array
|
33
|
+
@expired_card_tokens = []
|
34
|
+
hash['expiredCardTokens'].each do |e|
|
35
|
+
@expired_card_tokens << e
|
36
|
+
end
|
37
|
+
end
|
38
|
+
@hosted_tokenization_id = hash['hostedTokenizationId'] if hash.key? 'hostedTokenizationId'
|
39
|
+
if hash.key? 'invalidTokens'
|
40
|
+
raise TypeError, "value '%s' is not an Array" % [hash['invalidTokens']] unless hash['invalidTokens'].is_a? Array
|
41
|
+
@invalid_tokens = []
|
42
|
+
hash['invalidTokens'].each do |e|
|
43
|
+
@invalid_tokens << e
|
44
|
+
end
|
45
|
+
end
|
46
|
+
@partial_redirect_url = hash['partialRedirectUrl'] if hash.key? 'partialRedirectUrl'
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
@@ -0,0 +1,58 @@
|
|
1
|
+
#
|
2
|
+
# This class was auto-generated.
|
3
|
+
#
|
4
|
+
require 'onlinepayments/sdk/data_object'
|
5
|
+
require 'onlinepayments/sdk/domain/mandate_customer'
|
6
|
+
|
7
|
+
module OnlinePayments::SDK
|
8
|
+
module Domain
|
9
|
+
|
10
|
+
# @attr [String] alias
|
11
|
+
# @attr [OnlinePayments::SDK::Domain::MandateCustomer] customer
|
12
|
+
# @attr [String] customer_reference
|
13
|
+
# @attr [String] language
|
14
|
+
# @attr [String] recurrence_type
|
15
|
+
# @attr [String] return_url
|
16
|
+
# @attr [String] signature_type
|
17
|
+
# @attr [String] unique_mandate_reference
|
18
|
+
class CreateMandateRequest < OnlinePayments::SDK::DataObject
|
19
|
+
attr_accessor :alias
|
20
|
+
attr_accessor :customer
|
21
|
+
attr_accessor :customer_reference
|
22
|
+
attr_accessor :language
|
23
|
+
attr_accessor :recurrence_type
|
24
|
+
attr_accessor :return_url
|
25
|
+
attr_accessor :signature_type
|
26
|
+
attr_accessor :unique_mandate_reference
|
27
|
+
|
28
|
+
# @return (Hash)
|
29
|
+
def to_h
|
30
|
+
hash = super
|
31
|
+
hash['alias'] = @alias unless @alias.nil?
|
32
|
+
hash['customer'] = @customer.to_h if @customer
|
33
|
+
hash['customerReference'] = @customer_reference unless @customer_reference.nil?
|
34
|
+
hash['language'] = @language unless @language.nil?
|
35
|
+
hash['recurrenceType'] = @recurrence_type unless @recurrence_type.nil?
|
36
|
+
hash['returnUrl'] = @return_url unless @return_url.nil?
|
37
|
+
hash['signatureType'] = @signature_type unless @signature_type.nil?
|
38
|
+
hash['uniqueMandateReference'] = @unique_mandate_reference unless @unique_mandate_reference.nil?
|
39
|
+
hash
|
40
|
+
end
|
41
|
+
|
42
|
+
def from_hash(hash)
|
43
|
+
super
|
44
|
+
@alias = hash['alias'] if hash.key? 'alias'
|
45
|
+
if hash.key? 'customer'
|
46
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['customer']] unless hash['customer'].is_a? Hash
|
47
|
+
@customer = OnlinePayments::SDK::Domain::MandateCustomer.new_from_hash(hash['customer'])
|
48
|
+
end
|
49
|
+
@customer_reference = hash['customerReference'] if hash.key? 'customerReference'
|
50
|
+
@language = hash['language'] if hash.key? 'language'
|
51
|
+
@recurrence_type = hash['recurrenceType'] if hash.key? 'recurrenceType'
|
52
|
+
@return_url = hash['returnUrl'] if hash.key? 'returnUrl'
|
53
|
+
@signature_type = hash['signatureType'] if hash.key? 'signatureType'
|
54
|
+
@unique_mandate_reference = hash['uniqueMandateReference'] if hash.key? 'uniqueMandateReference'
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
@@ -0,0 +1,38 @@
|
|
1
|
+
#
|
2
|
+
# This class was auto-generated.
|
3
|
+
#
|
4
|
+
require 'onlinepayments/sdk/data_object'
|
5
|
+
require 'onlinepayments/sdk/domain/mandate_merchant_action'
|
6
|
+
require 'onlinepayments/sdk/domain/mandate_response'
|
7
|
+
|
8
|
+
module OnlinePayments::SDK
|
9
|
+
module Domain
|
10
|
+
|
11
|
+
# @attr [OnlinePayments::SDK::Domain::MandateResponse] mandate
|
12
|
+
# @attr [OnlinePayments::SDK::Domain::MandateMerchantAction] merchant_action
|
13
|
+
class CreateMandateResponse < OnlinePayments::SDK::DataObject
|
14
|
+
attr_accessor :mandate
|
15
|
+
attr_accessor :merchant_action
|
16
|
+
|
17
|
+
# @return (Hash)
|
18
|
+
def to_h
|
19
|
+
hash = super
|
20
|
+
hash['mandate'] = @mandate.to_h if @mandate
|
21
|
+
hash['merchantAction'] = @merchant_action.to_h if @merchant_action
|
22
|
+
hash
|
23
|
+
end
|
24
|
+
|
25
|
+
def from_hash(hash)
|
26
|
+
super
|
27
|
+
if hash.key? 'mandate'
|
28
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['mandate']] unless hash['mandate'].is_a? Hash
|
29
|
+
@mandate = OnlinePayments::SDK::Domain::MandateResponse.new_from_hash(hash['mandate'])
|
30
|
+
end
|
31
|
+
if hash.key? 'merchantAction'
|
32
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['merchantAction']] unless hash['merchantAction'].is_a? Hash
|
33
|
+
@merchant_action = OnlinePayments::SDK::Domain::MandateMerchantAction.new_from_hash(hash['merchantAction'])
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
@@ -0,0 +1,58 @@
|
|
1
|
+
#
|
2
|
+
# This class was auto-generated.
|
3
|
+
#
|
4
|
+
require 'onlinepayments/sdk/data_object'
|
5
|
+
require 'onlinepayments/sdk/domain/mandate_customer'
|
6
|
+
|
7
|
+
module OnlinePayments::SDK
|
8
|
+
module Domain
|
9
|
+
|
10
|
+
# @attr [String] alias
|
11
|
+
# @attr [OnlinePayments::SDK::Domain::MandateCustomer] customer
|
12
|
+
# @attr [String] customer_reference
|
13
|
+
# @attr [String] language
|
14
|
+
# @attr [String] recurrence_type
|
15
|
+
# @attr [String] return_url
|
16
|
+
# @attr [String] signature_type
|
17
|
+
# @attr [String] unique_mandate_reference
|
18
|
+
class CreateMandateWithReturnUrl < OnlinePayments::SDK::DataObject
|
19
|
+
attr_accessor :alias
|
20
|
+
attr_accessor :customer
|
21
|
+
attr_accessor :customer_reference
|
22
|
+
attr_accessor :language
|
23
|
+
attr_accessor :recurrence_type
|
24
|
+
attr_accessor :return_url
|
25
|
+
attr_accessor :signature_type
|
26
|
+
attr_accessor :unique_mandate_reference
|
27
|
+
|
28
|
+
# @return (Hash)
|
29
|
+
def to_h
|
30
|
+
hash = super
|
31
|
+
hash['alias'] = @alias unless @alias.nil?
|
32
|
+
hash['customer'] = @customer.to_h if @customer
|
33
|
+
hash['customerReference'] = @customer_reference unless @customer_reference.nil?
|
34
|
+
hash['language'] = @language unless @language.nil?
|
35
|
+
hash['recurrenceType'] = @recurrence_type unless @recurrence_type.nil?
|
36
|
+
hash['returnUrl'] = @return_url unless @return_url.nil?
|
37
|
+
hash['signatureType'] = @signature_type unless @signature_type.nil?
|
38
|
+
hash['uniqueMandateReference'] = @unique_mandate_reference unless @unique_mandate_reference.nil?
|
39
|
+
hash
|
40
|
+
end
|
41
|
+
|
42
|
+
def from_hash(hash)
|
43
|
+
super
|
44
|
+
@alias = hash['alias'] if hash.key? 'alias'
|
45
|
+
if hash.key? 'customer'
|
46
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['customer']] unless hash['customer'].is_a? Hash
|
47
|
+
@customer = OnlinePayments::SDK::Domain::MandateCustomer.new_from_hash(hash['customer'])
|
48
|
+
end
|
49
|
+
@customer_reference = hash['customerReference'] if hash.key? 'customerReference'
|
50
|
+
@language = hash['language'] if hash.key? 'language'
|
51
|
+
@recurrence_type = hash['recurrenceType'] if hash.key? 'recurrenceType'
|
52
|
+
@return_url = hash['returnUrl'] if hash.key? 'returnUrl'
|
53
|
+
@signature_type = hash['signatureType'] if hash.key? 'signatureType'
|
54
|
+
@unique_mandate_reference = hash['uniqueMandateReference'] if hash.key? 'uniqueMandateReference'
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
@@ -0,0 +1,74 @@
|
|
1
|
+
#
|
2
|
+
# This class was auto-generated.
|
3
|
+
#
|
4
|
+
require 'onlinepayments/sdk/data_object'
|
5
|
+
require 'onlinepayments/sdk/domain/card_payment_method_specific_input'
|
6
|
+
require 'onlinepayments/sdk/domain/fraud_fields'
|
7
|
+
require 'onlinepayments/sdk/domain/mobile_payment_method_specific_input'
|
8
|
+
require 'onlinepayments/sdk/domain/order'
|
9
|
+
require 'onlinepayments/sdk/domain/redirect_payment_method_specific_input'
|
10
|
+
require 'onlinepayments/sdk/domain/sepa_direct_debit_payment_method_specific_input'
|
11
|
+
|
12
|
+
module OnlinePayments::SDK
|
13
|
+
module Domain
|
14
|
+
|
15
|
+
# @attr [OnlinePayments::SDK::Domain::CardPaymentMethodSpecificInput] card_payment_method_specific_input
|
16
|
+
# @attr [String] encrypted_customer_input
|
17
|
+
# @attr [OnlinePayments::SDK::Domain::FraudFields] fraud_fields
|
18
|
+
# @attr [OnlinePayments::SDK::Domain::MobilePaymentMethodSpecificInput] mobile_payment_method_specific_input
|
19
|
+
# @attr [OnlinePayments::SDK::Domain::Order] order
|
20
|
+
# @attr [OnlinePayments::SDK::Domain::RedirectPaymentMethodSpecificInput] redirect_payment_method_specific_input
|
21
|
+
# @attr [OnlinePayments::SDK::Domain::SepaDirectDebitPaymentMethodSpecificInput] sepa_direct_debit_payment_method_specific_input
|
22
|
+
class CreatePaymentRequest < OnlinePayments::SDK::DataObject
|
23
|
+
attr_accessor :card_payment_method_specific_input
|
24
|
+
attr_accessor :encrypted_customer_input
|
25
|
+
attr_accessor :fraud_fields
|
26
|
+
attr_accessor :mobile_payment_method_specific_input
|
27
|
+
attr_accessor :order
|
28
|
+
attr_accessor :redirect_payment_method_specific_input
|
29
|
+
attr_accessor :sepa_direct_debit_payment_method_specific_input
|
30
|
+
|
31
|
+
# @return (Hash)
|
32
|
+
def to_h
|
33
|
+
hash = super
|
34
|
+
hash['cardPaymentMethodSpecificInput'] = @card_payment_method_specific_input.to_h if @card_payment_method_specific_input
|
35
|
+
hash['encryptedCustomerInput'] = @encrypted_customer_input unless @encrypted_customer_input.nil?
|
36
|
+
hash['fraudFields'] = @fraud_fields.to_h if @fraud_fields
|
37
|
+
hash['mobilePaymentMethodSpecificInput'] = @mobile_payment_method_specific_input.to_h if @mobile_payment_method_specific_input
|
38
|
+
hash['order'] = @order.to_h if @order
|
39
|
+
hash['redirectPaymentMethodSpecificInput'] = @redirect_payment_method_specific_input.to_h if @redirect_payment_method_specific_input
|
40
|
+
hash['sepaDirectDebitPaymentMethodSpecificInput'] = @sepa_direct_debit_payment_method_specific_input.to_h if @sepa_direct_debit_payment_method_specific_input
|
41
|
+
hash
|
42
|
+
end
|
43
|
+
|
44
|
+
def from_hash(hash)
|
45
|
+
super
|
46
|
+
if hash.key? 'cardPaymentMethodSpecificInput'
|
47
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['cardPaymentMethodSpecificInput']] unless hash['cardPaymentMethodSpecificInput'].is_a? Hash
|
48
|
+
@card_payment_method_specific_input = OnlinePayments::SDK::Domain::CardPaymentMethodSpecificInput.new_from_hash(hash['cardPaymentMethodSpecificInput'])
|
49
|
+
end
|
50
|
+
@encrypted_customer_input = hash['encryptedCustomerInput'] if hash.key? 'encryptedCustomerInput'
|
51
|
+
if hash.key? 'fraudFields'
|
52
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['fraudFields']] unless hash['fraudFields'].is_a? Hash
|
53
|
+
@fraud_fields = OnlinePayments::SDK::Domain::FraudFields.new_from_hash(hash['fraudFields'])
|
54
|
+
end
|
55
|
+
if hash.key? 'mobilePaymentMethodSpecificInput'
|
56
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['mobilePaymentMethodSpecificInput']] unless hash['mobilePaymentMethodSpecificInput'].is_a? Hash
|
57
|
+
@mobile_payment_method_specific_input = OnlinePayments::SDK::Domain::MobilePaymentMethodSpecificInput.new_from_hash(hash['mobilePaymentMethodSpecificInput'])
|
58
|
+
end
|
59
|
+
if hash.key? 'order'
|
60
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['order']] unless hash['order'].is_a? Hash
|
61
|
+
@order = OnlinePayments::SDK::Domain::Order.new_from_hash(hash['order'])
|
62
|
+
end
|
63
|
+
if hash.key? 'redirectPaymentMethodSpecificInput'
|
64
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['redirectPaymentMethodSpecificInput']] unless hash['redirectPaymentMethodSpecificInput'].is_a? Hash
|
65
|
+
@redirect_payment_method_specific_input = OnlinePayments::SDK::Domain::RedirectPaymentMethodSpecificInput.new_from_hash(hash['redirectPaymentMethodSpecificInput'])
|
66
|
+
end
|
67
|
+
if hash.key? 'sepaDirectDebitPaymentMethodSpecificInput'
|
68
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['sepaDirectDebitPaymentMethodSpecificInput']] unless hash['sepaDirectDebitPaymentMethodSpecificInput'].is_a? Hash
|
69
|
+
@sepa_direct_debit_payment_method_specific_input = OnlinePayments::SDK::Domain::SepaDirectDebitPaymentMethodSpecificInput.new_from_hash(hash['sepaDirectDebitPaymentMethodSpecificInput'])
|
70
|
+
end
|
71
|
+
end
|
72
|
+
end
|
73
|
+
end
|
74
|
+
end
|