onlinepayments-sdk-ruby 4.23.0 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile +0 -0
- data/LICENSE.txt +0 -0
- data/README.md +5 -6
- data/Rakefile +0 -0
- data/lib/onlinepayments/sdk/api_exception.rb +47 -35
- data/lib/onlinepayments/sdk/api_resource.rb +49 -97
- data/lib/onlinepayments/sdk/authentication/authenticator.rb +19 -0
- data/lib/onlinepayments/sdk/authentication/authorization_type.rb +15 -0
- data/lib/onlinepayments/sdk/authentication/v1hmac_authenticator.rb +109 -0
- data/lib/onlinepayments/sdk/authentication.rb +1 -0
- data/lib/onlinepayments/sdk/authorization_exception.rb +14 -8
- data/lib/onlinepayments/sdk/call_context.rb +30 -21
- data/lib/onlinepayments/sdk/client.rb +36 -18
- data/lib/onlinepayments/sdk/communication/communication_exception.rb +19 -0
- data/lib/onlinepayments/sdk/communication/connection.rb +48 -0
- data/lib/onlinepayments/sdk/communication/default_connection.rb +427 -0
- data/lib/onlinepayments/sdk/communication/metadata_provider.rb +160 -0
- data/lib/onlinepayments/sdk/communication/multipart_form_data_object.rb +52 -0
- data/lib/onlinepayments/sdk/communication/multipart_form_data_request.rb +13 -0
- data/lib/onlinepayments/sdk/communication/not_found_exception.rb +19 -0
- data/lib/onlinepayments/sdk/communication/param_request.rb +14 -0
- data/lib/onlinepayments/sdk/communication/pooled_connection.rb +26 -0
- data/lib/onlinepayments/sdk/communication/request_header.rb +62 -0
- data/lib/onlinepayments/sdk/communication/request_param.rb +28 -0
- data/lib/onlinepayments/sdk/communication/response_exception.rb +56 -0
- data/lib/onlinepayments/sdk/communication/response_header.rb +78 -0
- data/lib/onlinepayments/sdk/communication.rb +1 -0
- data/lib/onlinepayments/sdk/communicator.rb +475 -268
- data/lib/onlinepayments/sdk/communicator_configuration.rb +162 -53
- data/lib/onlinepayments/sdk/declined_payment_exception.rb +28 -21
- data/lib/onlinepayments/sdk/declined_payout_exception.rb +28 -23
- data/lib/onlinepayments/sdk/declined_refund_exception.rb +28 -23
- data/lib/onlinepayments/sdk/declined_transaction_exception.rb +16 -10
- data/lib/onlinepayments/sdk/domain/account_on_file.rb +44 -35
- data/lib/onlinepayments/sdk/domain/account_on_file_attribute.rb +42 -28
- data/lib/onlinepayments/sdk/domain/account_on_file_display_hints.rb +29 -24
- data/lib/onlinepayments/sdk/domain/acquirer_information.rb +27 -22
- data/lib/onlinepayments/sdk/domain/acquirer_selection_information.rb +34 -24
- data/lib/onlinepayments/sdk/domain/additional_order_input.rb +43 -38
- data/lib/onlinepayments/sdk/domain/address.rb +65 -43
- data/lib/onlinepayments/sdk/domain/address_personal.rb +78 -52
- data/lib/onlinepayments/sdk/domain/airline_data.rb +204 -123
- data/lib/onlinepayments/sdk/domain/airline_flight_leg.rb +158 -95
- data/lib/onlinepayments/sdk/domain/airline_passenger.rb +59 -39
- data/lib/onlinepayments/sdk/domain/amount_breakdown.rb +27 -20
- data/lib/onlinepayments/sdk/domain/amount_of_money.rb +27 -20
- data/lib/onlinepayments/sdk/domain/api_error.rb +73 -47
- data/lib/onlinepayments/sdk/domain/apple_pay_line_item.rb +72 -0
- data/lib/onlinepayments/sdk/domain/apple_pay_recurring_payment_request.rb +61 -0
- data/lib/onlinepayments/sdk/domain/bank_account_iban.rb +20 -16
- data/lib/onlinepayments/sdk/domain/browser_data.rb +51 -35
- data/lib/onlinepayments/sdk/domain/calculate_surcharge_request.rb +27 -24
- data/lib/onlinepayments/sdk/domain/calculate_surcharge_response.rb +22 -20
- data/lib/onlinepayments/sdk/domain/cancel_payment_request.rb +27 -22
- data/lib/onlinepayments/sdk/domain/cancel_payment_response.rb +20 -18
- data/lib/onlinepayments/sdk/domain/capture.rb +41 -32
- data/lib/onlinepayments/sdk/domain/capture_output.rb +106 -78
- data/lib/onlinepayments/sdk/domain/capture_payment_request.rb +43 -26
- data/lib/onlinepayments/sdk/domain/capture_response.rb +41 -32
- data/lib/onlinepayments/sdk/domain/capture_status_output.rb +20 -16
- data/lib/onlinepayments/sdk/domain/captures_response.rb +22 -20
- data/lib/onlinepayments/sdk/domain/card.rb +41 -28
- data/lib/onlinepayments/sdk/domain/card_essentials.rb +41 -28
- data/lib/onlinepayments/sdk/domain/card_fraud_results.rb +34 -24
- data/lib/onlinepayments/sdk/domain/card_info.rb +27 -20
- data/lib/onlinepayments/sdk/domain/card_payment_method_specific_input.rb +199 -128
- data/lib/onlinepayments/sdk/domain/card_payment_method_specific_input_base.rb +149 -104
- data/lib/onlinepayments/sdk/domain/card_payment_method_specific_input_for_hosted_checkout.rb +36 -28
- data/lib/onlinepayments/sdk/domain/card_payment_method_specific_output.rb +133 -100
- data/lib/onlinepayments/sdk/domain/card_payout_method_specific_input.rb +41 -30
- data/lib/onlinepayments/sdk/domain/card_recurrence_details.rb +20 -16
- data/lib/onlinepayments/sdk/domain/card_source.rb +41 -30
- data/lib/onlinepayments/sdk/domain/card_without_cvv.rb +34 -24
- data/lib/onlinepayments/sdk/domain/company_information.rb +20 -16
- data/lib/onlinepayments/sdk/domain/complete_payment_card_payment_method_specific_input.rb +20 -18
- data/lib/onlinepayments/sdk/domain/complete_payment_request.rb +27 -24
- data/lib/onlinepayments/sdk/domain/complete_payment_response.rb +35 -31
- data/lib/onlinepayments/sdk/domain/contact_details.rb +51 -35
- data/lib/onlinepayments/sdk/domain/create_hosted_checkout_request.rb +76 -59
- data/lib/onlinepayments/sdk/domain/create_hosted_checkout_response.rb +60 -43
- data/lib/onlinepayments/sdk/domain/create_hosted_tokenization_request.rb +57 -42
- data/lib/onlinepayments/sdk/domain/create_hosted_tokenization_response.rb +57 -44
- data/lib/onlinepayments/sdk/domain/create_mandate_request.rb +71 -48
- data/lib/onlinepayments/sdk/domain/create_mandate_response.rb +27 -24
- data/lib/onlinepayments/sdk/domain/create_mandate_with_return_url.rb +71 -48
- data/lib/onlinepayments/sdk/domain/create_payment_link_request.rb +120 -87
- data/lib/onlinepayments/sdk/domain/create_payment_request.rb +82 -60
- data/lib/onlinepayments/sdk/domain/create_payment_response.rb +35 -31
- data/lib/onlinepayments/sdk/domain/create_payout_request.rb +61 -40
- data/lib/onlinepayments/sdk/domain/create_token_request.rb +27 -22
- data/lib/onlinepayments/sdk/domain/created_payment_output.rb +27 -22
- data/lib/onlinepayments/sdk/domain/created_token_response.rb +50 -38
- data/lib/onlinepayments/sdk/domain/credit_card_specific_input_hosted_tokenization.rb +29 -26
- data/lib/onlinepayments/sdk/domain/credit_card_validation_rules_hosted_tokenization.rb +27 -20
- data/lib/onlinepayments/sdk/domain/currency_conversion.rb +27 -22
- data/lib/onlinepayments/sdk/domain/currency_conversion_input.rb +27 -20
- data/lib/onlinepayments/sdk/domain/currency_conversion_request.rb +27 -24
- data/lib/onlinepayments/sdk/domain/currency_conversion_response.rb +34 -28
- data/lib/onlinepayments/sdk/domain/currency_conversion_result.rb +27 -20
- data/lib/onlinepayments/sdk/domain/currency_conversion_specific_input.rb +20 -16
- data/lib/onlinepayments/sdk/domain/customer.rb +87 -68
- data/lib/onlinepayments/sdk/domain/customer_account.rb +77 -55
- data/lib/onlinepayments/sdk/domain/customer_account_authentication.rb +34 -20
- data/lib/onlinepayments/sdk/domain/customer_bank_account.rb +34 -24
- data/lib/onlinepayments/sdk/domain/customer_device.rb +64 -44
- data/lib/onlinepayments/sdk/domain/customer_device_output.rb +20 -16
- data/lib/onlinepayments/sdk/domain/customer_output.rb +20 -18
- data/lib/onlinepayments/sdk/domain/customer_payment_activity.rb +34 -24
- data/lib/onlinepayments/sdk/domain/customer_token.rb +35 -31
- data/lib/onlinepayments/sdk/domain/data_object.rb +32 -0
- data/lib/onlinepayments/sdk/domain/dcc_card_source.rb +41 -30
- data/lib/onlinepayments/sdk/domain/dcc_proposal.rb +51 -41
- data/lib/onlinepayments/sdk/domain/decrypted_payment_data.rb +51 -35
- data/lib/onlinepayments/sdk/domain/directory_entry.rb +34 -24
- data/lib/onlinepayments/sdk/domain/discount.rb +20 -16
- data/lib/onlinepayments/sdk/domain/empty_validator.rb +7 -6
- data/lib/onlinepayments/sdk/domain/error_response.rb +29 -24
- data/lib/onlinepayments/sdk/domain/external_cardholder_authentication_data.rb +86 -55
- data/lib/onlinepayments/sdk/domain/external_token_linked.rb +35 -24
- data/lib/onlinepayments/sdk/domain/feedbacks.rb +30 -0
- data/lib/onlinepayments/sdk/domain/fixed_list_validator.rb +22 -20
- data/lib/onlinepayments/sdk/domain/fraud_fields.rb +37 -28
- data/lib/onlinepayments/sdk/domain/fraud_results.rb +20 -16
- data/lib/onlinepayments/sdk/domain/g_pay_three_d_secure.rb +50 -36
- data/lib/onlinepayments/sdk/domain/get_hosted_checkout_response.rb +27 -22
- data/lib/onlinepayments/sdk/domain/get_hosted_tokenization_response.rb +27 -22
- data/lib/onlinepayments/sdk/domain/get_iin_details_request.rb +27 -22
- data/lib/onlinepayments/sdk/domain/get_iin_details_response.rb +52 -38
- data/lib/onlinepayments/sdk/domain/get_mandate_response.rb +20 -18
- data/lib/onlinepayments/sdk/domain/get_payment_product_groups_response.rb +22 -20
- data/lib/onlinepayments/sdk/domain/get_payment_products_response.rb +22 -20
- data/lib/onlinepayments/sdk/domain/get_privacy_policy_response.rb +20 -16
- data/lib/onlinepayments/sdk/domain/gift_card_purchase.rb +27 -22
- data/lib/onlinepayments/sdk/domain/hosted_checkout_specific_input.rb +83 -56
- data/lib/onlinepayments/sdk/domain/hosted_checkout_specific_output.rb +27 -20
- data/lib/onlinepayments/sdk/domain/iin_detail.rb +34 -24
- data/lib/onlinepayments/sdk/domain/label_template_element.rb +27 -20
- data/lib/onlinepayments/sdk/domain/length_validator.rb +27 -20
- data/lib/onlinepayments/sdk/domain/line_item.rb +44 -31
- data/lib/onlinepayments/sdk/domain/line_item_invoice_data.rb +20 -16
- data/lib/onlinepayments/sdk/domain/loan_recipient.rb +51 -35
- data/lib/onlinepayments/sdk/domain/lodging_data.rb +20 -16
- data/lib/onlinepayments/sdk/domain/mandate_address.rb +51 -35
- data/lib/onlinepayments/sdk/domain/mandate_address_response.rb +51 -35
- data/lib/onlinepayments/sdk/domain/mandate_contact_details.rb +20 -16
- data/lib/onlinepayments/sdk/domain/mandate_customer.rb +52 -44
- data/lib/onlinepayments/sdk/domain/mandate_customer_response.rb +52 -44
- data/lib/onlinepayments/sdk/domain/mandate_merchant_action.rb +27 -22
- data/lib/onlinepayments/sdk/domain/mandate_personal_information.rb +27 -22
- data/lib/onlinepayments/sdk/domain/mandate_personal_information_response.rb +27 -22
- data/lib/onlinepayments/sdk/domain/mandate_personal_name.rb +27 -20
- data/lib/onlinepayments/sdk/domain/mandate_personal_name_response.rb +27 -20
- data/lib/onlinepayments/sdk/domain/mandate_redirect_data.rb +27 -20
- data/lib/onlinepayments/sdk/domain/mandate_response.rb +64 -44
- data/lib/onlinepayments/sdk/domain/merchant_action.rb +43 -28
- data/lib/onlinepayments/sdk/domain/mobile_payment_data.rb +27 -20
- data/lib/onlinepayments/sdk/domain/mobile_payment_method_hosted_checkout_specific_input.rb +43 -26
- data/lib/onlinepayments/sdk/domain/mobile_payment_method_specific_input.rb +71 -50
- data/lib/onlinepayments/sdk/domain/mobile_payment_method_specific_output.rb +58 -45
- data/lib/onlinepayments/sdk/domain/mobile_payment_product302_specific_input.rb +32 -0
- data/lib/onlinepayments/sdk/domain/mobile_payment_product320_specific_input.rb +20 -18
- data/lib/onlinepayments/sdk/domain/mobile_three_d_secure_challenge_parameters.rb +51 -0
- data/lib/onlinepayments/sdk/domain/multiple_payment_information.rb +27 -20
- data/lib/onlinepayments/sdk/domain/omnichannel_payout_specific_input.rb +20 -16
- data/lib/onlinepayments/sdk/domain/operation_output.rb +67 -45
- data/lib/onlinepayments/sdk/domain/operation_payment_references.rb +30 -0
- data/lib/onlinepayments/sdk/domain/order.rb +75 -66
- data/lib/onlinepayments/sdk/domain/order_line_details.rb +79 -47
- data/lib/onlinepayments/sdk/domain/order_references.rb +34 -24
- data/lib/onlinepayments/sdk/domain/order_status_output.rb +52 -38
- data/lib/onlinepayments/sdk/domain/order_type_information.rb +27 -20
- data/lib/onlinepayments/sdk/domain/other_details.rb +37 -0
- data/lib/onlinepayments/sdk/domain/payment_account_on_file.rb +27 -20
- data/lib/onlinepayments/sdk/domain/payment_context.rb +34 -26
- data/lib/onlinepayments/sdk/domain/payment_creation_output.rb +41 -28
- data/lib/onlinepayments/sdk/domain/payment_details_response.rb +60 -49
- data/lib/onlinepayments/sdk/domain/payment_error_response.rb +37 -31
- data/lib/onlinepayments/sdk/domain/payment_link_event.rb +34 -24
- data/lib/onlinepayments/sdk/domain/payment_link_order_input.rb +34 -28
- data/lib/onlinepayments/sdk/domain/payment_link_order_output.rb +34 -28
- data/lib/onlinepayments/sdk/domain/payment_link_response.rb +74 -51
- data/lib/onlinepayments/sdk/domain/payment_link_specific_input.rb +36 -24
- data/lib/onlinepayments/sdk/domain/payment_output.rb +115 -94
- data/lib/onlinepayments/sdk/domain/payment_product.rb +117 -85
- data/lib/onlinepayments/sdk/domain/payment_product130_specific_input.rb +20 -18
- data/lib/onlinepayments/sdk/domain/payment_product130_specific_three_d_secure.rb +41 -28
- data/lib/onlinepayments/sdk/domain/payment_product3012.rb +27 -20
- data/lib/onlinepayments/sdk/domain/payment_product3012_specific_input.rb +51 -0
- data/lib/onlinepayments/sdk/domain/payment_product302_specific_data.rb +22 -20
- data/lib/onlinepayments/sdk/domain/payment_product3203_specific_output.rb +27 -24
- data/lib/onlinepayments/sdk/domain/payment_product3208_specific_input.rb +20 -16
- data/lib/onlinepayments/sdk/domain/payment_product3208_specific_output.rb +20 -16
- data/lib/onlinepayments/sdk/domain/payment_product3209_specific_input.rb +20 -16
- data/lib/onlinepayments/sdk/domain/payment_product3209_specific_output.rb +20 -16
- data/lib/onlinepayments/sdk/domain/payment_product320_specific_data.rb +29 -24
- data/lib/onlinepayments/sdk/domain/payment_product5001_specific_output.rb +48 -16
- data/lib/onlinepayments/sdk/domain/payment_product5100_specific_input.rb +20 -16
- data/lib/onlinepayments/sdk/domain/payment_product5402_specific_output.rb +20 -16
- data/lib/onlinepayments/sdk/domain/payment_product5404.rb +27 -20
- data/lib/onlinepayments/sdk/domain/payment_product5407.rb +27 -20
- data/lib/onlinepayments/sdk/domain/payment_product5500_specific_output.rb +41 -24
- data/lib/onlinepayments/sdk/domain/payment_product771_specific_output.rb +20 -16
- data/lib/onlinepayments/sdk/domain/payment_product840_customer_account.rb +72 -47
- data/lib/onlinepayments/sdk/domain/payment_product840_specific_output.rb +43 -38
- data/lib/onlinepayments/sdk/domain/payment_product_display_hints.rb +34 -24
- data/lib/onlinepayments/sdk/domain/payment_product_field.rb +41 -32
- data/lib/onlinepayments/sdk/domain/payment_product_field_data_restrictions.rb +27 -22
- data/lib/onlinepayments/sdk/domain/payment_product_field_display_element.rb +41 -28
- data/lib/onlinepayments/sdk/domain/payment_product_field_display_hints.rb +84 -56
- data/lib/onlinepayments/sdk/domain/payment_product_field_form_element.rb +30 -24
- data/lib/onlinepayments/sdk/domain/payment_product_field_tooltip.rb +28 -20
- data/lib/onlinepayments/sdk/domain/payment_product_field_validators.rb +83 -73
- data/lib/onlinepayments/sdk/domain/payment_product_filter.rb +32 -29
- data/lib/onlinepayments/sdk/domain/payment_product_filter_hosted_tokenization.rb +22 -20
- data/lib/onlinepayments/sdk/domain/payment_product_filters_hosted_checkout.rb +27 -24
- data/lib/onlinepayments/sdk/domain/payment_product_filters_hosted_tokenization.rb +27 -24
- data/lib/onlinepayments/sdk/domain/payment_product_group.rb +44 -37
- data/lib/onlinepayments/sdk/domain/payment_product_networks_response.rb +22 -20
- data/lib/onlinepayments/sdk/domain/payment_references.rb +27 -20
- data/lib/onlinepayments/sdk/domain/payment_response.rb +51 -41
- data/lib/onlinepayments/sdk/domain/payment_status_output.rb +66 -46
- data/lib/onlinepayments/sdk/domain/payout_error_response.rb +37 -31
- data/lib/onlinepayments/sdk/domain/payout_output.rb +27 -22
- data/lib/onlinepayments/sdk/domain/payout_response.rb +41 -32
- data/lib/onlinepayments/sdk/domain/payout_result.rb +41 -32
- data/lib/onlinepayments/sdk/domain/payout_status_output.rb +34 -24
- data/lib/onlinepayments/sdk/domain/personal_information.rb +34 -26
- data/lib/onlinepayments/sdk/domain/personal_information_token.rb +20 -18
- data/lib/onlinepayments/sdk/domain/personal_name.rb +34 -24
- data/lib/onlinepayments/sdk/domain/personal_name_token.rb +27 -20
- data/lib/onlinepayments/sdk/domain/product_directory.rb +22 -20
- data/lib/onlinepayments/sdk/domain/protection_eligibility.rb +27 -20
- data/lib/onlinepayments/sdk/domain/range_validator.rb +27 -20
- data/lib/onlinepayments/sdk/domain/rate_details.rb +51 -35
- data/lib/onlinepayments/sdk/domain/redirect_data.rb +27 -20
- data/lib/onlinepayments/sdk/domain/redirect_payment_method_specific_input.rb +139 -88
- data/lib/onlinepayments/sdk/domain/redirect_payment_method_specific_output.rb +95 -75
- data/lib/onlinepayments/sdk/domain/redirect_payment_product3203_specific_input.rb +20 -16
- data/lib/onlinepayments/sdk/domain/redirect_payment_product3302_specific_input.rb +44 -0
- data/lib/onlinepayments/sdk/domain/redirect_payment_product3306_specific_input.rb +20 -16
- data/lib/onlinepayments/sdk/domain/redirect_payment_product5001_specific_input.rb +20 -16
- data/lib/onlinepayments/sdk/domain/redirect_payment_product5300_specific_input.rb +74 -0
- data/lib/onlinepayments/sdk/domain/redirect_payment_product5406_specific_input.rb +20 -18
- data/lib/onlinepayments/sdk/domain/redirect_payment_product5408_specific_input.rb +27 -22
- data/lib/onlinepayments/sdk/domain/redirect_payment_product5410_specific_input.rb +32 -0
- data/lib/onlinepayments/sdk/domain/redirect_payment_product809_specific_input.rb +20 -16
- data/lib/onlinepayments/sdk/domain/redirect_payment_product840_specific_input.rb +41 -20
- data/lib/onlinepayments/sdk/domain/redirection_data.rb +20 -16
- data/lib/onlinepayments/sdk/domain/refund_card_method_specific_output.rb +34 -26
- data/lib/onlinepayments/sdk/domain/refund_e_wallet_method_specific_output.rb +34 -26
- data/lib/onlinepayments/sdk/domain/refund_error_response.rb +37 -31
- data/lib/onlinepayments/sdk/domain/refund_mobile_method_specific_output.rb +34 -24
- data/lib/onlinepayments/sdk/domain/refund_output.rb +89 -64
- data/lib/onlinepayments/sdk/domain/refund_payment_product840_customer_account.rb +34 -24
- data/lib/onlinepayments/sdk/domain/refund_payment_product840_specific_output.rb +20 -18
- data/lib/onlinepayments/sdk/domain/refund_redirect_method_specific_output.rb +27 -20
- data/lib/onlinepayments/sdk/domain/refund_request.rb +43 -24
- data/lib/onlinepayments/sdk/domain/refund_response.rb +41 -32
- data/lib/onlinepayments/sdk/domain/refunds_response.rb +22 -20
- data/lib/onlinepayments/sdk/domain/regular_expression_validator.rb +20 -16
- data/lib/onlinepayments/sdk/domain/send_test_request.rb +30 -0
- data/lib/onlinepayments/sdk/domain/sepa_direct_debit_payment_method_specific_input.rb +27 -22
- data/lib/onlinepayments/sdk/domain/sepa_direct_debit_payment_method_specific_input_base.rb +27 -22
- data/lib/onlinepayments/sdk/domain/sepa_direct_debit_payment_method_specific_output.rb +34 -28
- data/lib/onlinepayments/sdk/domain/sepa_direct_debit_payment_product771_specific_input.rb +27 -22
- data/lib/onlinepayments/sdk/domain/sepa_direct_debit_payment_product771_specific_input_base.rb +27 -22
- data/lib/onlinepayments/sdk/domain/session_request.rb +22 -20
- data/lib/onlinepayments/sdk/domain/session_response.rb +53 -39
- data/lib/onlinepayments/sdk/domain/shipping.rb +76 -52
- data/lib/onlinepayments/sdk/domain/shipping_method.rb +41 -28
- data/lib/onlinepayments/sdk/domain/shopping_cart.rb +62 -48
- data/lib/onlinepayments/sdk/domain/shopping_cart_extension.rb +51 -43
- data/lib/onlinepayments/sdk/domain/show_form_data.rb +35 -31
- data/lib/onlinepayments/sdk/domain/subsequent_card_payment_method_specific_input.rb +60 -39
- data/lib/onlinepayments/sdk/domain/subsequent_payment_product5001_specific_input.rb +20 -16
- data/lib/onlinepayments/sdk/domain/subsequent_payment_request.rb +35 -31
- data/lib/onlinepayments/sdk/domain/subsequent_payment_response.rb +20 -18
- data/lib/onlinepayments/sdk/domain/surcharge.rb +59 -48
- data/lib/onlinepayments/sdk/domain/surcharge_calculation_card.rb +27 -20
- data/lib/onlinepayments/sdk/domain/surcharge_for_payment_link.rb +20 -16
- data/lib/onlinepayments/sdk/domain/surcharge_rate.rb +41 -28
- data/lib/onlinepayments/sdk/domain/surcharge_specific_input.rb +27 -22
- data/lib/onlinepayments/sdk/domain/surcharge_specific_output.rb +34 -28
- data/lib/onlinepayments/sdk/domain/test_connection.rb +20 -16
- data/lib/onlinepayments/sdk/domain/three_d_secure.rb +98 -63
- data/lib/onlinepayments/sdk/domain/three_d_secure_base.rb +78 -52
- data/lib/onlinepayments/sdk/domain/three_d_secure_data.rb +34 -24
- data/lib/onlinepayments/sdk/domain/three_d_secure_results.rb +107 -67
- data/lib/onlinepayments/sdk/domain/token_card.rb +27 -22
- data/lib/onlinepayments/sdk/domain/token_card_data.rb +27 -18
- data/lib/onlinepayments/sdk/domain/token_card_specific_input.rb +20 -18
- data/lib/onlinepayments/sdk/domain/token_data.rb +27 -18
- data/lib/onlinepayments/sdk/domain/token_e_wallet.rb +28 -22
- data/lib/onlinepayments/sdk/domain/token_response.rb +58 -45
- data/lib/onlinepayments/sdk/domain/transaction.rb +20 -18
- data/lib/onlinepayments/sdk/domain/uploadable_file.rb +33 -0
- data/lib/onlinepayments/sdk/domain/validate_credentials_request.rb +37 -0
- data/lib/onlinepayments/sdk/domain/validate_credentials_response.rb +30 -0
- data/lib/onlinepayments/sdk/domain/value_mapping_element.rb +29 -24
- data/lib/onlinepayments/sdk/domain.rb +4 -0
- data/lib/onlinepayments/sdk/exception_factory.rb +76 -0
- data/lib/onlinepayments/sdk/factory.rb +163 -118
- data/lib/onlinepayments/sdk/idempotence_exception.rb +23 -19
- data/lib/onlinepayments/sdk/json/default_marshaller.rb +34 -0
- data/lib/onlinepayments/sdk/json/marshaller.rb +27 -0
- data/lib/onlinepayments/sdk/json/marshaller_syntax_exception.rb +9 -0
- data/lib/onlinepayments/sdk/json.rb +1 -0
- data/lib/onlinepayments/sdk/logging/communicator_logger.rb +18 -16
- data/lib/onlinepayments/sdk/logging/log_message_builder.rb +80 -47
- data/lib/onlinepayments/sdk/logging/logging_capable.rb +1 -1
- data/lib/onlinepayments/sdk/logging/obfuscation/body_obfuscator.rb +113 -0
- data/lib/onlinepayments/sdk/logging/obfuscation/header_obfuscator.rb +54 -0
- data/lib/onlinepayments/sdk/logging/obfuscation/obfuscation_capable.rb +21 -0
- data/lib/onlinepayments/sdk/logging/obfuscation/obfuscation_rule.rb +47 -0
- data/lib/onlinepayments/sdk/logging/obfuscation.rb +1 -0
- data/lib/onlinepayments/sdk/logging/request_log_message_builder.rb +40 -29
- data/lib/onlinepayments/sdk/logging/response_log_message_builder.rb +30 -23
- data/lib/onlinepayments/sdk/logging/ruby_communicator_logger.rb +49 -45
- data/lib/onlinepayments/sdk/logging/stdout_communicator_logger.rb +20 -23
- data/lib/onlinepayments/sdk/logging.rb +1 -10
- data/lib/onlinepayments/sdk/merchant/captures/captures_client.rb +57 -0
- data/lib/onlinepayments/sdk/merchant/captures.rb +4 -0
- data/lib/onlinepayments/sdk/merchant/complete/complete_client.rb +60 -0
- data/lib/onlinepayments/sdk/merchant/complete.rb +4 -0
- data/lib/onlinepayments/sdk/merchant/hostedcheckout/hosted_checkout_client.rb +72 -71
- data/lib/onlinepayments/sdk/merchant/hostedcheckout.rb +4 -0
- data/lib/onlinepayments/sdk/merchant/hostedtokenization/hosted_tokenization_client.rb +72 -71
- data/lib/onlinepayments/sdk/merchant/hostedtokenization.rb +4 -0
- data/lib/onlinepayments/sdk/merchant/mandates/mandates_client.rb +165 -164
- data/lib/onlinepayments/sdk/merchant/mandates.rb +4 -0
- data/lib/onlinepayments/sdk/merchant/merchant_client.rb +116 -64
- data/lib/onlinepayments/sdk/merchant/paymentlinks/payment_links_client.rb +102 -101
- data/lib/onlinepayments/sdk/merchant/paymentlinks.rb +4 -0
- data/lib/onlinepayments/sdk/merchant/payments/payments_client.rb +233 -332
- data/lib/onlinepayments/sdk/merchant/payments.rb +4 -0
- data/lib/onlinepayments/sdk/merchant/payouts/payouts_client.rb +73 -71
- data/lib/onlinepayments/sdk/merchant/payouts.rb +4 -0
- data/lib/onlinepayments/sdk/merchant/privacypolicy/get_privacy_policy_params.rb +32 -0
- data/lib/onlinepayments/sdk/merchant/privacypolicy/privacy_policy_client.rb +54 -0
- data/lib/onlinepayments/sdk/merchant/privacypolicy.rb +4 -0
- data/lib/onlinepayments/sdk/merchant/productgroups/get_product_group_params.rb +50 -47
- data/lib/onlinepayments/sdk/merchant/productgroups/get_product_groups_params.rb +50 -47
- data/lib/onlinepayments/sdk/merchant/productgroups/product_groups_client.rb +72 -72
- data/lib/onlinepayments/sdk/merchant/productgroups.rb +4 -0
- data/lib/onlinepayments/sdk/merchant/products/get_payment_product_networks_params.rb +27 -25
- data/lib/onlinepayments/sdk/merchant/products/get_payment_product_params.rb +50 -47
- data/lib/onlinepayments/sdk/merchant/products/get_payment_products_params.rb +50 -47
- data/lib/onlinepayments/sdk/merchant/products/get_product_directory_params.rb +21 -19
- data/lib/onlinepayments/sdk/merchant/products/products_client.rb +134 -136
- data/lib/onlinepayments/sdk/merchant/products.rb +4 -0
- data/lib/onlinepayments/sdk/merchant/refunds/refunds_client.rb +57 -0
- data/lib/onlinepayments/sdk/merchant/refunds.rb +4 -0
- data/lib/onlinepayments/sdk/merchant/services/services_client.rb +124 -155
- data/lib/onlinepayments/sdk/merchant/services.rb +4 -0
- data/lib/onlinepayments/sdk/merchant/sessions/sessions_client.rb +42 -41
- data/lib/onlinepayments/sdk/merchant/sessions.rb +4 -0
- data/lib/onlinepayments/sdk/merchant/tokens/tokens_client.rb +101 -100
- data/lib/onlinepayments/sdk/merchant/tokens.rb +4 -0
- data/lib/onlinepayments/sdk/merchant/webhooks/webhooks_client.rb +83 -0
- data/lib/onlinepayments/sdk/merchant/webhooks.rb +4 -0
- data/lib/onlinepayments/sdk/merchant.rb +4 -0
- data/lib/onlinepayments/sdk/platform_exception.rb +19 -0
- data/lib/onlinepayments/sdk/proxy_configuration.rb +60 -60
- data/lib/onlinepayments/sdk/reference_exception.rb +14 -9
- data/lib/onlinepayments/sdk/validation_exception.rb +14 -9
- data/lib/onlinepayments/sdk/webhooks/api_version_mismatch_exception.rb +17 -15
- data/lib/onlinepayments/sdk/webhooks/in_memory_secret_key_store.rb +46 -43
- data/lib/onlinepayments/sdk/webhooks/secret_key_not_available_exception.rb +16 -12
- data/lib/onlinepayments/sdk/webhooks/secret_key_store.rb +13 -11
- data/lib/onlinepayments/sdk/webhooks/signature_validation_exception.rb +15 -14
- data/lib/onlinepayments/sdk/webhooks/signature_validator.rb +81 -0
- data/lib/onlinepayments/sdk/webhooks/webhooks_event.rb +84 -53
- data/lib/onlinepayments/sdk/webhooks/webhooks_helper.rb +28 -90
- data/lib/onlinepayments/sdk/webhooks.rb +1 -11
- data/lib/onlinepayments/sdk.rb +4 -26
- data/onlinepayments-sdk-ruby.gemspec +3 -2
- metadata +89 -35
- data/lib/onlinepayments/sdk/authenticator.rb +0 -16
- data/lib/onlinepayments/sdk/communication_exception.rb +0 -16
- data/lib/onlinepayments/sdk/connection.rb +0 -41
- data/lib/onlinepayments/sdk/data_object.rb +0 -31
- data/lib/onlinepayments/sdk/defaultimpl/authorization_type.rb +0 -24
- data/lib/onlinepayments/sdk/defaultimpl/default_authenticator.rb +0 -108
- data/lib/onlinepayments/sdk/defaultimpl/default_connection.rb +0 -365
- data/lib/onlinepayments/sdk/defaultimpl/default_marshaller.rb +0 -32
- data/lib/onlinepayments/sdk/defaultimpl.rb +0 -6
- data/lib/onlinepayments/sdk/endpoint_configuration.rb +0 -127
- data/lib/onlinepayments/sdk/exceptions.rb +0 -8
- data/lib/onlinepayments/sdk/logging/logging_util.rb +0 -286
- data/lib/onlinepayments/sdk/marshaller.rb +0 -24
- data/lib/onlinepayments/sdk/marshaller_syntax_exception.rb +0 -6
- data/lib/onlinepayments/sdk/merchant/services/get_privacy_policy_params.rb +0 -30
- data/lib/onlinepayments/sdk/meta_data_provider.rb +0 -150
- data/lib/onlinepayments/sdk/modules.rb +0 -62
- data/lib/onlinepayments/sdk/multipart_form_data_object.rb +0 -44
- data/lib/onlinepayments/sdk/multipart_form_data_request.rb +0 -9
- data/lib/onlinepayments/sdk/not_found_exception.rb +0 -16
- data/lib/onlinepayments/sdk/param_request.rb +0 -11
- data/lib/onlinepayments/sdk/payment_platform_exception.rb +0 -15
- data/lib/onlinepayments/sdk/pooled_connection.rb +0 -21
- data/lib/onlinepayments/sdk/request_header.rb +0 -50
- data/lib/onlinepayments/sdk/request_param.rb +0 -23
- data/lib/onlinepayments/sdk/response_exception.rb +0 -47
- data/lib/onlinepayments/sdk/response_header.rb +0 -42
- data/lib/onlinepayments/sdk/uploadable_file.rb +0 -30
- data/lib/onlinepayments/sdk/webhooks/webhooks.rb +0 -22
- data/lib/onlinepayments/sdk/webhooks/webhooks_helper_builder.rb +0 -25
@@ -1,145 +1,216 @@
|
|
1
1
|
#
|
2
|
-
# This
|
2
|
+
# This file was automatically generated.
|
3
3
|
#
|
4
|
-
require 'onlinepayments/sdk/data_object'
|
5
4
|
require 'onlinepayments/sdk/domain/card'
|
6
5
|
require 'onlinepayments/sdk/domain/card_recurrence_details'
|
7
6
|
require 'onlinepayments/sdk/domain/currency_conversion_input'
|
7
|
+
require 'onlinepayments/sdk/domain/data_object'
|
8
8
|
require 'onlinepayments/sdk/domain/multiple_payment_information'
|
9
9
|
require 'onlinepayments/sdk/domain/payment_product130_specific_input'
|
10
|
+
require 'onlinepayments/sdk/domain/payment_product3012_specific_input'
|
10
11
|
require 'onlinepayments/sdk/domain/payment_product3208_specific_input'
|
11
12
|
require 'onlinepayments/sdk/domain/payment_product3209_specific_input'
|
12
13
|
require 'onlinepayments/sdk/domain/three_d_secure'
|
13
14
|
|
14
|
-
module OnlinePayments
|
15
|
-
module
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
attr_accessor :card
|
44
|
-
attr_accessor :card_on_file_recurring_expiration
|
45
|
-
attr_accessor :card_on_file_recurring_frequency
|
46
|
-
attr_accessor :currency_conversion
|
47
|
-
attr_accessor :initial_scheme_transaction_id
|
48
|
-
attr_accessor :is_recurring
|
49
|
-
attr_accessor :multiple_payment_information
|
50
|
-
attr_accessor :payment_product130_specific_input
|
51
|
-
attr_accessor :payment_product3208_specific_input
|
52
|
-
attr_accessor :payment_product3209_specific_input
|
53
|
-
attr_accessor :payment_product_id
|
54
|
-
attr_accessor :recurring
|
55
|
-
attr_accessor :return_url
|
56
|
-
attr_accessor :scheme_reference_data
|
57
|
-
attr_accessor :skip_authentication
|
58
|
-
attr_accessor :three_d_secure
|
59
|
-
attr_accessor :token
|
60
|
-
attr_accessor :tokenize
|
61
|
-
attr_accessor :transaction_channel
|
62
|
-
attr_accessor :unscheduled_card_on_file_requestor
|
63
|
-
attr_accessor :unscheduled_card_on_file_sequence_indicator
|
64
|
-
|
65
|
-
# @return (Hash)
|
66
|
-
def to_h
|
67
|
-
hash = super
|
68
|
-
hash['allowDynamicLinking'] = @allow_dynamic_linking unless @allow_dynamic_linking.nil?
|
69
|
-
hash['authorizationMode'] = @authorization_mode unless @authorization_mode.nil?
|
70
|
-
hash['card'] = @card.to_h if @card
|
71
|
-
hash['cardOnFileRecurringExpiration'] = @card_on_file_recurring_expiration unless @card_on_file_recurring_expiration.nil?
|
72
|
-
hash['cardOnFileRecurringFrequency'] = @card_on_file_recurring_frequency unless @card_on_file_recurring_frequency.nil?
|
73
|
-
hash['currencyConversion'] = @currency_conversion.to_h if @currency_conversion
|
74
|
-
hash['initialSchemeTransactionId'] = @initial_scheme_transaction_id unless @initial_scheme_transaction_id.nil?
|
75
|
-
hash['isRecurring'] = @is_recurring unless @is_recurring.nil?
|
76
|
-
hash['multiplePaymentInformation'] = @multiple_payment_information.to_h if @multiple_payment_information
|
77
|
-
hash['paymentProduct130SpecificInput'] = @payment_product130_specific_input.to_h if @payment_product130_specific_input
|
78
|
-
hash['paymentProduct3208SpecificInput'] = @payment_product3208_specific_input.to_h if @payment_product3208_specific_input
|
79
|
-
hash['paymentProduct3209SpecificInput'] = @payment_product3209_specific_input.to_h if @payment_product3209_specific_input
|
80
|
-
hash['paymentProductId'] = @payment_product_id unless @payment_product_id.nil?
|
81
|
-
hash['recurring'] = @recurring.to_h if @recurring
|
82
|
-
hash['returnUrl'] = @return_url unless @return_url.nil?
|
83
|
-
hash['schemeReferenceData'] = @scheme_reference_data unless @scheme_reference_data.nil?
|
84
|
-
hash['skipAuthentication'] = @skip_authentication unless @skip_authentication.nil?
|
85
|
-
hash['threeDSecure'] = @three_d_secure.to_h if @three_d_secure
|
86
|
-
hash['token'] = @token unless @token.nil?
|
87
|
-
hash['tokenize'] = @tokenize unless @tokenize.nil?
|
88
|
-
hash['transactionChannel'] = @transaction_channel unless @transaction_channel.nil?
|
89
|
-
hash['unscheduledCardOnFileRequestor'] = @unscheduled_card_on_file_requestor unless @unscheduled_card_on_file_requestor.nil?
|
90
|
-
hash['unscheduledCardOnFileSequenceIndicator'] = @unscheduled_card_on_file_sequence_indicator unless @unscheduled_card_on_file_sequence_indicator.nil?
|
91
|
-
hash
|
92
|
-
end
|
15
|
+
module OnlinePayments
|
16
|
+
module SDK
|
17
|
+
module Domain
|
18
|
+
# @attr [true/false] allow_dynamic_linking
|
19
|
+
# @attr [String] authorization_mode
|
20
|
+
# @attr [OnlinePayments::SDK::Domain::Card] card
|
21
|
+
# @attr [String] card_on_file_recurring_expiration
|
22
|
+
# @attr [String] card_on_file_recurring_frequency
|
23
|
+
# @attr [String] cobrand_selection_indicator
|
24
|
+
# @attr [OnlinePayments::SDK::Domain::CurrencyConversionInput] currency_conversion
|
25
|
+
# @attr [String] initial_scheme_transaction_id
|
26
|
+
# @attr [true/false] is_recurring
|
27
|
+
# @attr [OnlinePayments::SDK::Domain::MultiplePaymentInformation] multiple_payment_information
|
28
|
+
# @attr [OnlinePayments::SDK::Domain::PaymentProduct130SpecificInput] payment_product130_specific_input
|
29
|
+
# @attr [OnlinePayments::SDK::Domain::PaymentProduct3012SpecificInput] payment_product3012_specific_input
|
30
|
+
# @attr [OnlinePayments::SDK::Domain::PaymentProduct3208SpecificInput] payment_product3208_specific_input
|
31
|
+
# @attr [OnlinePayments::SDK::Domain::PaymentProduct3209SpecificInput] payment_product3209_specific_input
|
32
|
+
# @attr [Integer] payment_product_id
|
33
|
+
# @attr [OnlinePayments::SDK::Domain::CardRecurrenceDetails] recurring
|
34
|
+
# @attr [String] return_url
|
35
|
+
# @attr [String] scheme_reference_data
|
36
|
+
# @attr [true/false] skip_authentication
|
37
|
+
# @attr [OnlinePayments::SDK::Domain::ThreeDSecure] three_d_secure
|
38
|
+
# @attr [String] token
|
39
|
+
# @attr [true/false] tokenize
|
40
|
+
# @attr [String] transaction_channel
|
41
|
+
# @attr [String] unscheduled_card_on_file_requestor
|
42
|
+
# @attr [String] unscheduled_card_on_file_sequence_indicator
|
43
|
+
class CardPaymentMethodSpecificInput < OnlinePayments::SDK::Domain::DataObject
|
93
44
|
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
45
|
+
attr_accessor :allow_dynamic_linking
|
46
|
+
|
47
|
+
attr_accessor :authorization_mode
|
48
|
+
|
49
|
+
attr_accessor :card
|
50
|
+
|
51
|
+
attr_accessor :card_on_file_recurring_expiration
|
52
|
+
|
53
|
+
attr_accessor :card_on_file_recurring_frequency
|
54
|
+
|
55
|
+
attr_accessor :cobrand_selection_indicator
|
56
|
+
|
57
|
+
attr_accessor :currency_conversion
|
58
|
+
|
59
|
+
attr_accessor :initial_scheme_transaction_id
|
60
|
+
|
61
|
+
attr_accessor :is_recurring
|
62
|
+
|
63
|
+
attr_accessor :multiple_payment_information
|
64
|
+
|
65
|
+
attr_accessor :payment_product130_specific_input
|
66
|
+
|
67
|
+
attr_accessor :payment_product3012_specific_input
|
68
|
+
|
69
|
+
attr_accessor :payment_product3208_specific_input
|
70
|
+
|
71
|
+
attr_accessor :payment_product3209_specific_input
|
72
|
+
|
73
|
+
attr_accessor :payment_product_id
|
74
|
+
|
75
|
+
attr_accessor :recurring
|
76
|
+
|
77
|
+
attr_accessor :return_url
|
78
|
+
|
79
|
+
attr_accessor :scheme_reference_data
|
80
|
+
|
81
|
+
# @deprecated Use threeDSecure.skipAuthentication instead. * true = 3D Secure authentication will be skipped for this transaction. This setting should be used when isRecurring is set to true and recurringPaymentSequenceIndicator is set to recurring. * false = 3D Secure authentication will not be skipped for this transaction. Note: This is only possible if your account in our system is setup for 3D Secure authentication and if your configuration in our system allows you to override it per transaction.
|
82
|
+
attr_accessor :skip_authentication
|
83
|
+
|
84
|
+
attr_accessor :three_d_secure
|
85
|
+
|
86
|
+
attr_accessor :token
|
87
|
+
|
88
|
+
attr_accessor :tokenize
|
89
|
+
|
90
|
+
attr_accessor :transaction_channel
|
91
|
+
|
92
|
+
attr_accessor :unscheduled_card_on_file_requestor
|
93
|
+
|
94
|
+
attr_accessor :unscheduled_card_on_file_sequence_indicator
|
95
|
+
|
96
|
+
# @return (Hash)
|
97
|
+
def to_h
|
98
|
+
hash = super
|
99
|
+
hash['allowDynamicLinking'] = @allow_dynamic_linking unless @allow_dynamic_linking.nil?
|
100
|
+
hash['authorizationMode'] = @authorization_mode unless @authorization_mode.nil?
|
101
|
+
hash['card'] = @card.to_h unless @card.nil?
|
102
|
+
hash['cardOnFileRecurringExpiration'] = @card_on_file_recurring_expiration unless @card_on_file_recurring_expiration.nil?
|
103
|
+
hash['cardOnFileRecurringFrequency'] = @card_on_file_recurring_frequency unless @card_on_file_recurring_frequency.nil?
|
104
|
+
hash['cobrandSelectionIndicator'] = @cobrand_selection_indicator unless @cobrand_selection_indicator.nil?
|
105
|
+
hash['currencyConversion'] = @currency_conversion.to_h unless @currency_conversion.nil?
|
106
|
+
hash['initialSchemeTransactionId'] = @initial_scheme_transaction_id unless @initial_scheme_transaction_id.nil?
|
107
|
+
hash['isRecurring'] = @is_recurring unless @is_recurring.nil?
|
108
|
+
hash['multiplePaymentInformation'] = @multiple_payment_information.to_h unless @multiple_payment_information.nil?
|
109
|
+
hash['paymentProduct130SpecificInput'] = @payment_product130_specific_input.to_h unless @payment_product130_specific_input.nil?
|
110
|
+
hash['paymentProduct3012SpecificInput'] = @payment_product3012_specific_input.to_h unless @payment_product3012_specific_input.nil?
|
111
|
+
hash['paymentProduct3208SpecificInput'] = @payment_product3208_specific_input.to_h unless @payment_product3208_specific_input.nil?
|
112
|
+
hash['paymentProduct3209SpecificInput'] = @payment_product3209_specific_input.to_h unless @payment_product3209_specific_input.nil?
|
113
|
+
hash['paymentProductId'] = @payment_product_id unless @payment_product_id.nil?
|
114
|
+
hash['recurring'] = @recurring.to_h unless @recurring.nil?
|
115
|
+
hash['returnUrl'] = @return_url unless @return_url.nil?
|
116
|
+
hash['schemeReferenceData'] = @scheme_reference_data unless @scheme_reference_data.nil?
|
117
|
+
hash['skipAuthentication'] = @skip_authentication unless @skip_authentication.nil?
|
118
|
+
hash['threeDSecure'] = @three_d_secure.to_h unless @three_d_secure.nil?
|
119
|
+
hash['token'] = @token unless @token.nil?
|
120
|
+
hash['tokenize'] = @tokenize unless @tokenize.nil?
|
121
|
+
hash['transactionChannel'] = @transaction_channel unless @transaction_channel.nil?
|
122
|
+
hash['unscheduledCardOnFileRequestor'] = @unscheduled_card_on_file_requestor unless @unscheduled_card_on_file_requestor.nil?
|
123
|
+
hash['unscheduledCardOnFileSequenceIndicator'] = @unscheduled_card_on_file_sequence_indicator unless @unscheduled_card_on_file_sequence_indicator.nil?
|
124
|
+
hash
|
130
125
|
end
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
126
|
+
|
127
|
+
def from_hash(hash)
|
128
|
+
super
|
129
|
+
if hash.has_key? 'allowDynamicLinking'
|
130
|
+
@allow_dynamic_linking = hash['allowDynamicLinking']
|
131
|
+
end
|
132
|
+
if hash.has_key? 'authorizationMode'
|
133
|
+
@authorization_mode = hash['authorizationMode']
|
134
|
+
end
|
135
|
+
if hash.has_key? 'card'
|
136
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['card']] unless hash['card'].is_a? Hash
|
137
|
+
@card = OnlinePayments::SDK::Domain::Card.new_from_hash(hash['card'])
|
138
|
+
end
|
139
|
+
if hash.has_key? 'cardOnFileRecurringExpiration'
|
140
|
+
@card_on_file_recurring_expiration = hash['cardOnFileRecurringExpiration']
|
141
|
+
end
|
142
|
+
if hash.has_key? 'cardOnFileRecurringFrequency'
|
143
|
+
@card_on_file_recurring_frequency = hash['cardOnFileRecurringFrequency']
|
144
|
+
end
|
145
|
+
if hash.has_key? 'cobrandSelectionIndicator'
|
146
|
+
@cobrand_selection_indicator = hash['cobrandSelectionIndicator']
|
147
|
+
end
|
148
|
+
if hash.has_key? 'currencyConversion'
|
149
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['currencyConversion']] unless hash['currencyConversion'].is_a? Hash
|
150
|
+
@currency_conversion = OnlinePayments::SDK::Domain::CurrencyConversionInput.new_from_hash(hash['currencyConversion'])
|
151
|
+
end
|
152
|
+
if hash.has_key? 'initialSchemeTransactionId'
|
153
|
+
@initial_scheme_transaction_id = hash['initialSchemeTransactionId']
|
154
|
+
end
|
155
|
+
if hash.has_key? 'isRecurring'
|
156
|
+
@is_recurring = hash['isRecurring']
|
157
|
+
end
|
158
|
+
if hash.has_key? 'multiplePaymentInformation'
|
159
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['multiplePaymentInformation']] unless hash['multiplePaymentInformation'].is_a? Hash
|
160
|
+
@multiple_payment_information = OnlinePayments::SDK::Domain::MultiplePaymentInformation.new_from_hash(hash['multiplePaymentInformation'])
|
161
|
+
end
|
162
|
+
if hash.has_key? 'paymentProduct130SpecificInput'
|
163
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct130SpecificInput']] unless hash['paymentProduct130SpecificInput'].is_a? Hash
|
164
|
+
@payment_product130_specific_input = OnlinePayments::SDK::Domain::PaymentProduct130SpecificInput.new_from_hash(hash['paymentProduct130SpecificInput'])
|
165
|
+
end
|
166
|
+
if hash.has_key? 'paymentProduct3012SpecificInput'
|
167
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct3012SpecificInput']] unless hash['paymentProduct3012SpecificInput'].is_a? Hash
|
168
|
+
@payment_product3012_specific_input = OnlinePayments::SDK::Domain::PaymentProduct3012SpecificInput.new_from_hash(hash['paymentProduct3012SpecificInput'])
|
169
|
+
end
|
170
|
+
if hash.has_key? 'paymentProduct3208SpecificInput'
|
171
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct3208SpecificInput']] unless hash['paymentProduct3208SpecificInput'].is_a? Hash
|
172
|
+
@payment_product3208_specific_input = OnlinePayments::SDK::Domain::PaymentProduct3208SpecificInput.new_from_hash(hash['paymentProduct3208SpecificInput'])
|
173
|
+
end
|
174
|
+
if hash.has_key? 'paymentProduct3209SpecificInput'
|
175
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct3209SpecificInput']] unless hash['paymentProduct3209SpecificInput'].is_a? Hash
|
176
|
+
@payment_product3209_specific_input = OnlinePayments::SDK::Domain::PaymentProduct3209SpecificInput.new_from_hash(hash['paymentProduct3209SpecificInput'])
|
177
|
+
end
|
178
|
+
if hash.has_key? 'paymentProductId'
|
179
|
+
@payment_product_id = hash['paymentProductId']
|
180
|
+
end
|
181
|
+
if hash.has_key? 'recurring'
|
182
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['recurring']] unless hash['recurring'].is_a? Hash
|
183
|
+
@recurring = OnlinePayments::SDK::Domain::CardRecurrenceDetails.new_from_hash(hash['recurring'])
|
184
|
+
end
|
185
|
+
if hash.has_key? 'returnUrl'
|
186
|
+
@return_url = hash['returnUrl']
|
187
|
+
end
|
188
|
+
if hash.has_key? 'schemeReferenceData'
|
189
|
+
@scheme_reference_data = hash['schemeReferenceData']
|
190
|
+
end
|
191
|
+
if hash.has_key? 'skipAuthentication'
|
192
|
+
@skip_authentication = hash['skipAuthentication']
|
193
|
+
end
|
194
|
+
if hash.has_key? 'threeDSecure'
|
195
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['threeDSecure']] unless hash['threeDSecure'].is_a? Hash
|
196
|
+
@three_d_secure = OnlinePayments::SDK::Domain::ThreeDSecure.new_from_hash(hash['threeDSecure'])
|
197
|
+
end
|
198
|
+
if hash.has_key? 'token'
|
199
|
+
@token = hash['token']
|
200
|
+
end
|
201
|
+
if hash.has_key? 'tokenize'
|
202
|
+
@tokenize = hash['tokenize']
|
203
|
+
end
|
204
|
+
if hash.has_key? 'transactionChannel'
|
205
|
+
@transaction_channel = hash['transactionChannel']
|
206
|
+
end
|
207
|
+
if hash.has_key? 'unscheduledCardOnFileRequestor'
|
208
|
+
@unscheduled_card_on_file_requestor = hash['unscheduledCardOnFileRequestor']
|
209
|
+
end
|
210
|
+
if hash.has_key? 'unscheduledCardOnFileSequenceIndicator'
|
211
|
+
@unscheduled_card_on_file_sequence_indicator = hash['unscheduledCardOnFileSequenceIndicator']
|
212
|
+
end
|
137
213
|
end
|
138
|
-
@token = hash['token'] if hash.key? 'token'
|
139
|
-
@tokenize = hash['tokenize'] if hash.key? 'tokenize'
|
140
|
-
@transaction_channel = hash['transactionChannel'] if hash.key? 'transactionChannel'
|
141
|
-
@unscheduled_card_on_file_requestor = hash['unscheduledCardOnFileRequestor'] if hash.key? 'unscheduledCardOnFileRequestor'
|
142
|
-
@unscheduled_card_on_file_sequence_indicator = hash['unscheduledCardOnFileSequenceIndicator'] if hash.key? 'unscheduledCardOnFileSequenceIndicator'
|
143
214
|
end
|
144
215
|
end
|
145
216
|
end
|
@@ -1,121 +1,166 @@
|
|
1
1
|
#
|
2
|
-
# This
|
2
|
+
# This file was automatically generated.
|
3
3
|
#
|
4
|
-
require 'onlinepayments/sdk/data_object'
|
5
4
|
require 'onlinepayments/sdk/domain/card_recurrence_details'
|
6
5
|
require 'onlinepayments/sdk/domain/currency_conversion_specific_input'
|
6
|
+
require 'onlinepayments/sdk/domain/data_object'
|
7
7
|
require 'onlinepayments/sdk/domain/multiple_payment_information'
|
8
8
|
require 'onlinepayments/sdk/domain/payment_product130_specific_input'
|
9
|
+
require 'onlinepayments/sdk/domain/payment_product3012_specific_input'
|
9
10
|
require 'onlinepayments/sdk/domain/payment_product3208_specific_input'
|
10
11
|
require 'onlinepayments/sdk/domain/payment_product3209_specific_input'
|
11
12
|
require 'onlinepayments/sdk/domain/payment_product5100_specific_input'
|
12
13
|
require 'onlinepayments/sdk/domain/three_d_secure_base'
|
13
14
|
|
14
|
-
module OnlinePayments
|
15
|
-
module
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
attr_accessor :authorization_mode
|
37
|
-
attr_accessor :currency_conversion_specific_input
|
38
|
-
attr_accessor :initial_scheme_transaction_id
|
39
|
-
attr_accessor :multiple_payment_information
|
40
|
-
attr_accessor :payment_product130_specific_input
|
41
|
-
attr_accessor :payment_product3208_specific_input
|
42
|
-
attr_accessor :payment_product3209_specific_input
|
43
|
-
attr_accessor :payment_product5100_specific_input
|
44
|
-
attr_accessor :payment_product_id
|
45
|
-
attr_accessor :recurring
|
46
|
-
attr_accessor :three_d_secure
|
47
|
-
attr_accessor :token
|
48
|
-
attr_accessor :tokenize
|
49
|
-
attr_accessor :transaction_channel
|
50
|
-
attr_accessor :unscheduled_card_on_file_requestor
|
51
|
-
attr_accessor :unscheduled_card_on_file_sequence_indicator
|
52
|
-
|
53
|
-
# @return (Hash)
|
54
|
-
def to_h
|
55
|
-
hash = super
|
56
|
-
hash['allowDynamicLinking'] = @allow_dynamic_linking unless @allow_dynamic_linking.nil?
|
57
|
-
hash['authorizationMode'] = @authorization_mode unless @authorization_mode.nil?
|
58
|
-
hash['currencyConversionSpecificInput'] = @currency_conversion_specific_input.to_h if @currency_conversion_specific_input
|
59
|
-
hash['initialSchemeTransactionId'] = @initial_scheme_transaction_id unless @initial_scheme_transaction_id.nil?
|
60
|
-
hash['multiplePaymentInformation'] = @multiple_payment_information.to_h if @multiple_payment_information
|
61
|
-
hash['paymentProduct130SpecificInput'] = @payment_product130_specific_input.to_h if @payment_product130_specific_input
|
62
|
-
hash['paymentProduct3208SpecificInput'] = @payment_product3208_specific_input.to_h if @payment_product3208_specific_input
|
63
|
-
hash['paymentProduct3209SpecificInput'] = @payment_product3209_specific_input.to_h if @payment_product3209_specific_input
|
64
|
-
hash['paymentProduct5100SpecificInput'] = @payment_product5100_specific_input.to_h if @payment_product5100_specific_input
|
65
|
-
hash['paymentProductId'] = @payment_product_id unless @payment_product_id.nil?
|
66
|
-
hash['recurring'] = @recurring.to_h if @recurring
|
67
|
-
hash['threeDSecure'] = @three_d_secure.to_h if @three_d_secure
|
68
|
-
hash['token'] = @token unless @token.nil?
|
69
|
-
hash['tokenize'] = @tokenize unless @tokenize.nil?
|
70
|
-
hash['transactionChannel'] = @transaction_channel unless @transaction_channel.nil?
|
71
|
-
hash['unscheduledCardOnFileRequestor'] = @unscheduled_card_on_file_requestor unless @unscheduled_card_on_file_requestor.nil?
|
72
|
-
hash['unscheduledCardOnFileSequenceIndicator'] = @unscheduled_card_on_file_sequence_indicator unless @unscheduled_card_on_file_sequence_indicator.nil?
|
73
|
-
hash
|
74
|
-
end
|
15
|
+
module OnlinePayments
|
16
|
+
module SDK
|
17
|
+
module Domain
|
18
|
+
# @attr [true/false] allow_dynamic_linking
|
19
|
+
# @attr [String] authorization_mode
|
20
|
+
# @attr [OnlinePayments::SDK::Domain::CurrencyConversionSpecificInput] currency_conversion_specific_input
|
21
|
+
# @attr [String] initial_scheme_transaction_id
|
22
|
+
# @attr [OnlinePayments::SDK::Domain::MultiplePaymentInformation] multiple_payment_information
|
23
|
+
# @attr [OnlinePayments::SDK::Domain::PaymentProduct130SpecificInput] payment_product130_specific_input
|
24
|
+
# @attr [OnlinePayments::SDK::Domain::PaymentProduct3012SpecificInput] payment_product3012_specific_input
|
25
|
+
# @attr [OnlinePayments::SDK::Domain::PaymentProduct3208SpecificInput] payment_product3208_specific_input
|
26
|
+
# @attr [OnlinePayments::SDK::Domain::PaymentProduct3209SpecificInput] payment_product3209_specific_input
|
27
|
+
# @attr [OnlinePayments::SDK::Domain::PaymentProduct5100SpecificInput] payment_product5100_specific_input
|
28
|
+
# @attr [Integer] payment_product_id
|
29
|
+
# @attr [OnlinePayments::SDK::Domain::CardRecurrenceDetails] recurring
|
30
|
+
# @attr [OnlinePayments::SDK::Domain::ThreeDSecureBase] three_d_secure
|
31
|
+
# @attr [String] token
|
32
|
+
# @attr [true/false] tokenize
|
33
|
+
# @attr [String] transaction_channel
|
34
|
+
# @attr [String] unscheduled_card_on_file_requestor
|
35
|
+
# @attr [String] unscheduled_card_on_file_sequence_indicator
|
36
|
+
class CardPaymentMethodSpecificInputBase < OnlinePayments::SDK::Domain::DataObject
|
75
37
|
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
38
|
+
attr_accessor :allow_dynamic_linking
|
39
|
+
|
40
|
+
attr_accessor :authorization_mode
|
41
|
+
|
42
|
+
attr_accessor :currency_conversion_specific_input
|
43
|
+
|
44
|
+
attr_accessor :initial_scheme_transaction_id
|
45
|
+
|
46
|
+
attr_accessor :multiple_payment_information
|
47
|
+
|
48
|
+
attr_accessor :payment_product130_specific_input
|
49
|
+
|
50
|
+
attr_accessor :payment_product3012_specific_input
|
51
|
+
|
52
|
+
attr_accessor :payment_product3208_specific_input
|
53
|
+
|
54
|
+
attr_accessor :payment_product3209_specific_input
|
55
|
+
|
56
|
+
attr_accessor :payment_product5100_specific_input
|
57
|
+
|
58
|
+
attr_accessor :payment_product_id
|
59
|
+
|
60
|
+
attr_accessor :recurring
|
61
|
+
|
62
|
+
attr_accessor :three_d_secure
|
63
|
+
|
64
|
+
attr_accessor :token
|
65
|
+
|
66
|
+
attr_accessor :tokenize
|
67
|
+
|
68
|
+
attr_accessor :transaction_channel
|
69
|
+
|
70
|
+
attr_accessor :unscheduled_card_on_file_requestor
|
71
|
+
|
72
|
+
attr_accessor :unscheduled_card_on_file_sequence_indicator
|
73
|
+
|
74
|
+
# @return (Hash)
|
75
|
+
def to_h
|
76
|
+
hash = super
|
77
|
+
hash['allowDynamicLinking'] = @allow_dynamic_linking unless @allow_dynamic_linking.nil?
|
78
|
+
hash['authorizationMode'] = @authorization_mode unless @authorization_mode.nil?
|
79
|
+
hash['currencyConversionSpecificInput'] = @currency_conversion_specific_input.to_h unless @currency_conversion_specific_input.nil?
|
80
|
+
hash['initialSchemeTransactionId'] = @initial_scheme_transaction_id unless @initial_scheme_transaction_id.nil?
|
81
|
+
hash['multiplePaymentInformation'] = @multiple_payment_information.to_h unless @multiple_payment_information.nil?
|
82
|
+
hash['paymentProduct130SpecificInput'] = @payment_product130_specific_input.to_h unless @payment_product130_specific_input.nil?
|
83
|
+
hash['paymentProduct3012SpecificInput'] = @payment_product3012_specific_input.to_h unless @payment_product3012_specific_input.nil?
|
84
|
+
hash['paymentProduct3208SpecificInput'] = @payment_product3208_specific_input.to_h unless @payment_product3208_specific_input.nil?
|
85
|
+
hash['paymentProduct3209SpecificInput'] = @payment_product3209_specific_input.to_h unless @payment_product3209_specific_input.nil?
|
86
|
+
hash['paymentProduct5100SpecificInput'] = @payment_product5100_specific_input.to_h unless @payment_product5100_specific_input.nil?
|
87
|
+
hash['paymentProductId'] = @payment_product_id unless @payment_product_id.nil?
|
88
|
+
hash['recurring'] = @recurring.to_h unless @recurring.nil?
|
89
|
+
hash['threeDSecure'] = @three_d_secure.to_h unless @three_d_secure.nil?
|
90
|
+
hash['token'] = @token unless @token.nil?
|
91
|
+
hash['tokenize'] = @tokenize unless @tokenize.nil?
|
92
|
+
hash['transactionChannel'] = @transaction_channel unless @transaction_channel.nil?
|
93
|
+
hash['unscheduledCardOnFileRequestor'] = @unscheduled_card_on_file_requestor unless @unscheduled_card_on_file_requestor.nil?
|
94
|
+
hash['unscheduledCardOnFileSequenceIndicator'] = @unscheduled_card_on_file_sequence_indicator unless @unscheduled_card_on_file_sequence_indicator.nil?
|
95
|
+
hash
|
109
96
|
end
|
110
|
-
|
111
|
-
|
112
|
-
|
97
|
+
|
98
|
+
def from_hash(hash)
|
99
|
+
super
|
100
|
+
if hash.has_key? 'allowDynamicLinking'
|
101
|
+
@allow_dynamic_linking = hash['allowDynamicLinking']
|
102
|
+
end
|
103
|
+
if hash.has_key? 'authorizationMode'
|
104
|
+
@authorization_mode = hash['authorizationMode']
|
105
|
+
end
|
106
|
+
if hash.has_key? 'currencyConversionSpecificInput'
|
107
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['currencyConversionSpecificInput']] unless hash['currencyConversionSpecificInput'].is_a? Hash
|
108
|
+
@currency_conversion_specific_input = OnlinePayments::SDK::Domain::CurrencyConversionSpecificInput.new_from_hash(hash['currencyConversionSpecificInput'])
|
109
|
+
end
|
110
|
+
if hash.has_key? 'initialSchemeTransactionId'
|
111
|
+
@initial_scheme_transaction_id = hash['initialSchemeTransactionId']
|
112
|
+
end
|
113
|
+
if hash.has_key? 'multiplePaymentInformation'
|
114
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['multiplePaymentInformation']] unless hash['multiplePaymentInformation'].is_a? Hash
|
115
|
+
@multiple_payment_information = OnlinePayments::SDK::Domain::MultiplePaymentInformation.new_from_hash(hash['multiplePaymentInformation'])
|
116
|
+
end
|
117
|
+
if hash.has_key? 'paymentProduct130SpecificInput'
|
118
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct130SpecificInput']] unless hash['paymentProduct130SpecificInput'].is_a? Hash
|
119
|
+
@payment_product130_specific_input = OnlinePayments::SDK::Domain::PaymentProduct130SpecificInput.new_from_hash(hash['paymentProduct130SpecificInput'])
|
120
|
+
end
|
121
|
+
if hash.has_key? 'paymentProduct3012SpecificInput'
|
122
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct3012SpecificInput']] unless hash['paymentProduct3012SpecificInput'].is_a? Hash
|
123
|
+
@payment_product3012_specific_input = OnlinePayments::SDK::Domain::PaymentProduct3012SpecificInput.new_from_hash(hash['paymentProduct3012SpecificInput'])
|
124
|
+
end
|
125
|
+
if hash.has_key? 'paymentProduct3208SpecificInput'
|
126
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct3208SpecificInput']] unless hash['paymentProduct3208SpecificInput'].is_a? Hash
|
127
|
+
@payment_product3208_specific_input = OnlinePayments::SDK::Domain::PaymentProduct3208SpecificInput.new_from_hash(hash['paymentProduct3208SpecificInput'])
|
128
|
+
end
|
129
|
+
if hash.has_key? 'paymentProduct3209SpecificInput'
|
130
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct3209SpecificInput']] unless hash['paymentProduct3209SpecificInput'].is_a? Hash
|
131
|
+
@payment_product3209_specific_input = OnlinePayments::SDK::Domain::PaymentProduct3209SpecificInput.new_from_hash(hash['paymentProduct3209SpecificInput'])
|
132
|
+
end
|
133
|
+
if hash.has_key? 'paymentProduct5100SpecificInput'
|
134
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct5100SpecificInput']] unless hash['paymentProduct5100SpecificInput'].is_a? Hash
|
135
|
+
@payment_product5100_specific_input = OnlinePayments::SDK::Domain::PaymentProduct5100SpecificInput.new_from_hash(hash['paymentProduct5100SpecificInput'])
|
136
|
+
end
|
137
|
+
if hash.has_key? 'paymentProductId'
|
138
|
+
@payment_product_id = hash['paymentProductId']
|
139
|
+
end
|
140
|
+
if hash.has_key? 'recurring'
|
141
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['recurring']] unless hash['recurring'].is_a? Hash
|
142
|
+
@recurring = OnlinePayments::SDK::Domain::CardRecurrenceDetails.new_from_hash(hash['recurring'])
|
143
|
+
end
|
144
|
+
if hash.has_key? 'threeDSecure'
|
145
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['threeDSecure']] unless hash['threeDSecure'].is_a? Hash
|
146
|
+
@three_d_secure = OnlinePayments::SDK::Domain::ThreeDSecureBase.new_from_hash(hash['threeDSecure'])
|
147
|
+
end
|
148
|
+
if hash.has_key? 'token'
|
149
|
+
@token = hash['token']
|
150
|
+
end
|
151
|
+
if hash.has_key? 'tokenize'
|
152
|
+
@tokenize = hash['tokenize']
|
153
|
+
end
|
154
|
+
if hash.has_key? 'transactionChannel'
|
155
|
+
@transaction_channel = hash['transactionChannel']
|
156
|
+
end
|
157
|
+
if hash.has_key? 'unscheduledCardOnFileRequestor'
|
158
|
+
@unscheduled_card_on_file_requestor = hash['unscheduledCardOnFileRequestor']
|
159
|
+
end
|
160
|
+
if hash.has_key? 'unscheduledCardOnFileSequenceIndicator'
|
161
|
+
@unscheduled_card_on_file_sequence_indicator = hash['unscheduledCardOnFileSequenceIndicator']
|
162
|
+
end
|
113
163
|
end
|
114
|
-
@token = hash['token'] if hash.key? 'token'
|
115
|
-
@tokenize = hash['tokenize'] if hash.key? 'tokenize'
|
116
|
-
@transaction_channel = hash['transactionChannel'] if hash.key? 'transactionChannel'
|
117
|
-
@unscheduled_card_on_file_requestor = hash['unscheduledCardOnFileRequestor'] if hash.key? 'unscheduledCardOnFileRequestor'
|
118
|
-
@unscheduled_card_on_file_sequence_indicator = hash['unscheduledCardOnFileSequenceIndicator'] if hash.key? 'unscheduledCardOnFileSequenceIndicator'
|
119
164
|
end
|
120
165
|
end
|
121
166
|
end
|