univapay-apimatic-sdk 0.0.1
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 +7 -0
- data/LICENSE +28 -0
- data/README.md +224 -0
- data/bin/console +15 -0
- data/lib/univapay_client_sdk/api_helper.rb +10 -0
- data/lib/univapay_client_sdk/apis/base_api.rb +67 -0
- data/lib/univapay_client_sdk/apis/cancels_api.rb +293 -0
- data/lib/univapay_client_sdk/apis/charges_api.rb +903 -0
- data/lib/univapay_client_sdk/apis/merchants_api.rb +57 -0
- data/lib/univapay_client_sdk/apis/refunds_api.rb +298 -0
- data/lib/univapay_client_sdk/apis/stores_api.rb +126 -0
- data/lib/univapay_client_sdk/apis/subscriptions_api.rb +1014 -0
- data/lib/univapay_client_sdk/apis/transaction_tokens_api.rb +455 -0
- data/lib/univapay_client_sdk/apis/webhooks_api.rb +463 -0
- data/lib/univapay_client_sdk/client.rb +116 -0
- data/lib/univapay_client_sdk/configuration.rb +178 -0
- data/lib/univapay_client_sdk/events/unknown_event.rb +32 -0
- data/lib/univapay_client_sdk/events/webhooks/bank_transfer_handler.rb +37 -0
- data/lib/univapay_client_sdk/events/webhooks/cancel_handler.rb +37 -0
- data/lib/univapay_client_sdk/events/webhooks/charge_finished_handler.rb +37 -0
- data/lib/univapay_client_sdk/events/webhooks/charge_updated_handler.rb +37 -0
- data/lib/univapay_client_sdk/events/webhooks/customs_handler.rb +37 -0
- data/lib/univapay_client_sdk/events/webhooks/recurring_token_deleted_handler.rb +37 -0
- data/lib/univapay_client_sdk/events/webhooks/refund_handler.rb +37 -0
- data/lib/univapay_client_sdk/events/webhooks/subscription_canceled_handler.rb +37 -0
- data/lib/univapay_client_sdk/events/webhooks/subscription_completed_handler.rb +37 -0
- data/lib/univapay_client_sdk/events/webhooks/subscription_created_handler.rb +37 -0
- data/lib/univapay_client_sdk/events/webhooks/subscription_failure_handler.rb +37 -0
- data/lib/univapay_client_sdk/events/webhooks/subscription_payment_handler.rb +37 -0
- data/lib/univapay_client_sdk/events/webhooks/subscription_suspended_handler.rb +37 -0
- data/lib/univapay_client_sdk/events/webhooks/token_created_handler.rb +37 -0
- data/lib/univapay_client_sdk/events/webhooks/token_cvv_auth_check_updated_handler.rb +37 -0
- data/lib/univapay_client_sdk/events/webhooks/token_cvv_auth_updated_handler.rb +37 -0
- data/lib/univapay_client_sdk/events/webhooks/token_replaced_handler.rb +37 -0
- data/lib/univapay_client_sdk/events/webhooks/token_three_ds_updated_handler.rb +37 -0
- data/lib/univapay_client_sdk/events/webhooks/token_updated_handler.rb +37 -0
- data/lib/univapay_client_sdk/exceptions/api_error_exception.rb +199 -0
- data/lib/univapay_client_sdk/exceptions/api_exception.rb +21 -0
- data/lib/univapay_client_sdk/http/api_response.rb +19 -0
- data/lib/univapay_client_sdk/http/auth/oauth_2.rb +53 -0
- data/lib/univapay_client_sdk/http/http_call_back.rb +10 -0
- data/lib/univapay_client_sdk/http/http_method_enum.rb +10 -0
- data/lib/univapay_client_sdk/http/http_request.rb +10 -0
- data/lib/univapay_client_sdk/http/http_response.rb +10 -0
- data/lib/univapay_client_sdk/http/proxy_settings.rb +22 -0
- data/lib/univapay_client_sdk/logging/configuration/api_logging_configuration.rb +186 -0
- data/lib/univapay_client_sdk/logging/sdk_logger.rb +17 -0
- data/lib/univapay_client_sdk/models/api_error_detail.rb +87 -0
- data/lib/univapay_client_sdk/models/api_error_status.rb +26 -0
- data/lib/univapay_client_sdk/models/bank_transfer_event.rb +27 -0
- data/lib/univapay_client_sdk/models/bank_transfer_ledger.rb +199 -0
- data/lib/univapay_client_sdk/models/bank_transfer_ledger_bank_ledger_type.rb +36 -0
- data/lib/univapay_client_sdk/models/bank_transfer_ledger_list.rb +104 -0
- data/lib/univapay_client_sdk/models/bank_transfer_ledger_mode.rb +36 -0
- data/lib/univapay_client_sdk/models/bank_transfer_payment_status.rb +44 -0
- data/lib/univapay_client_sdk/models/bank_transfer_status_data.rb +229 -0
- data/lib/univapay_client_sdk/models/bank_transfer_status_webhook_callback.rb +134 -0
- data/lib/univapay_client_sdk/models/bank_transfer_status_webhook_callback_extension.rb +75 -0
- data/lib/univapay_client_sdk/models/base_bank_transfer_data.rb +100 -0
- data/lib/univapay_client_sdk/models/base_konbini_data.rb +99 -0
- data/lib/univapay_client_sdk/models/base_konbini_data_convenience_store.rb +60 -0
- data/lib/univapay_client_sdk/models/base_model.rb +110 -0
- data/lib/univapay_client_sdk/models/base_online_data.rb +123 -0
- data/lib/univapay_client_sdk/models/base_online_data_brand.rb +48 -0
- data/lib/univapay_client_sdk/models/base_online_data_call_method.rb +52 -0
- data/lib/univapay_client_sdk/models/base_online_data_os_type.rb +36 -0
- data/lib/univapay_client_sdk/models/base_online_data_user_identifier_source.rb +36 -0
- data/lib/univapay_client_sdk/models/cancel.rb +183 -0
- data/lib/univapay_client_sdk/models/cancel_create_request.rb +77 -0
- data/lib/univapay_client_sdk/models/cancel_event.rb +26 -0
- data/lib/univapay_client_sdk/models/cancel_list.rb +94 -0
- data/lib/univapay_client_sdk/models/cancel_status.rb +44 -0
- data/lib/univapay_client_sdk/models/cancel_update_request.rb +76 -0
- data/lib/univapay_client_sdk/models/cancel_webhook_callback.rb +132 -0
- data/lib/univapay_client_sdk/models/cancel_webhook_callback_extension.rb +74 -0
- data/lib/univapay_client_sdk/models/card_processor_installment_config.rb +89 -0
- data/lib/univapay_client_sdk/models/charge.rb +411 -0
- data/lib/univapay_client_sdk/models/charge_capture_request.rb +84 -0
- data/lib/univapay_client_sdk/models/charge_create_request.rb +179 -0
- data/lib/univapay_client_sdk/models/charge_create_request_client_metadata.rb +76 -0
- data/lib/univapay_client_sdk/models/charge_create_request_redirect.rb +75 -0
- data/lib/univapay_client_sdk/models/charge_create_request_three_ds.rb +88 -0
- data/lib/univapay_client_sdk/models/charge_create_request_three_ds_mode.rb +44 -0
- data/lib/univapay_client_sdk/models/charge_finished_webhook_callback.rb +131 -0
- data/lib/univapay_client_sdk/models/charge_list.rb +104 -0
- data/lib/univapay_client_sdk/models/charge_mode.rb +36 -0
- data/lib/univapay_client_sdk/models/charge_redirect.rb +96 -0
- data/lib/univapay_client_sdk/models/charge_status.rb +56 -0
- data/lib/univapay_client_sdk/models/charge_three_ds.rb +97 -0
- data/lib/univapay_client_sdk/models/charge_transaction_token_type.rb +40 -0
- data/lib/univapay_client_sdk/models/charge_update_request.rb +75 -0
- data/lib/univapay_client_sdk/models/charge_updated_webhook_callback.rb +131 -0
- data/lib/univapay_client_sdk/models/cursor_direction_query.rb +36 -0
- data/lib/univapay_client_sdk/models/customs_declaration_create_request.rb +106 -0
- data/lib/univapay_client_sdk/models/customs_declaration_event.rb +27 -0
- data/lib/univapay_client_sdk/models/customs_declaration_patch_request.rb +77 -0
- data/lib/univapay_client_sdk/models/customs_declaration_webhook_callback.rb +135 -0
- data/lib/univapay_client_sdk/models/customs_declaration_webhook_callback_extension.rb +76 -0
- data/lib/univapay_client_sdk/models/customs_declaration_webhook_data.rb +232 -0
- data/lib/univapay_client_sdk/models/customs_declaration_webhook_declaration.rb +121 -0
- data/lib/univapay_client_sdk/models/customs_declaration_webhook_error.rb +127 -0
- data/lib/univapay_client_sdk/models/customs_declaration_webhook_other_error.rb +120 -0
- data/lib/univapay_client_sdk/models/customs_declaration_webhook_result.rb +125 -0
- data/lib/univapay_client_sdk/models/customs_declaration_webhook_status.rb +44 -0
- data/lib/univapay_client_sdk/models/generic_metadata.rb +111 -0
- data/lib/univapay_client_sdk/models/installment_fixed_cycles.rb +70 -0
- data/lib/univapay_client_sdk/models/installment_plan_type.rb +36 -0
- data/lib/univapay_client_sdk/models/issuer_token.rb +177 -0
- data/lib/univapay_client_sdk/models/issuer_token_call_method.rb +51 -0
- data/lib/univapay_client_sdk/models/issuer_token_payload.rb +105 -0
- data/lib/univapay_client_sdk/models/issuer_token_payment_type.rb +36 -0
- data/lib/univapay_client_sdk/models/merchant.rb +179 -0
- data/lib/univapay_client_sdk/models/merchant_webhook_bank_transfer_configuration.rb +342 -0
- data/lib/univapay_client_sdk/models/merchant_webhook_card_brand_percent_fees.rb +167 -0
- data/lib/univapay_client_sdk/models/merchant_webhook_card_configuration.rb +301 -0
- data/lib/univapay_client_sdk/models/merchant_webhook_checkout_configuration.rb +87 -0
- data/lib/univapay_client_sdk/models/merchant_webhook_checkout_toggle.rb +77 -0
- data/lib/univapay_client_sdk/models/merchant_webhook_configuration.rb +505 -0
- data/lib/univapay_client_sdk/models/merchant_webhook_convenience_configuration.rb +88 -0
- data/lib/univapay_client_sdk/models/merchant_webhook_customer_management_configuration.rb +99 -0
- data/lib/univapay_client_sdk/models/merchant_webhook_installment_plan_configuration.rb +139 -0
- data/lib/univapay_client_sdk/models/merchant_webhook_limit_charge_by_card_configuration.rb +88 -0
- data/lib/univapay_client_sdk/models/merchant_webhook_limit_refund_by_sales_configuration.rb +100 -0
- data/lib/univapay_client_sdk/models/merchant_webhook_money_amount.rb +85 -0
- data/lib/univapay_client_sdk/models/merchant_webhook_online_configuration.rb +77 -0
- data/lib/univapay_client_sdk/models/merchant_webhook_paidy_configuration.rb +77 -0
- data/lib/univapay_client_sdk/models/merchant_webhook_qr_merchant_configuration.rb +77 -0
- data/lib/univapay_client_sdk/models/merchant_webhook_qr_scan_configuration.rb +93 -0
- data/lib/univapay_client_sdk/models/merchant_webhook_recurring_cvv_confirmation_config.rb +97 -0
- data/lib/univapay_client_sdk/models/merchant_webhook_recurring_token_configuration.rb +109 -0
- data/lib/univapay_client_sdk/models/merchant_webhook_security_configuration.rb +234 -0
- data/lib/univapay_client_sdk/models/merchant_webhook_subscription_configuration.rb +138 -0
- data/lib/univapay_client_sdk/models/merchant_webhook_subscription_plan_configuration.rb +138 -0
- data/lib/univapay_client_sdk/models/merchant_webhook_transfer_schedule_configuration.rb +159 -0
- data/lib/univapay_client_sdk/models/merchant_webhook_user_transactions_configuration.rb +349 -0
- data/lib/univapay_client_sdk/models/mode_query.rb +36 -0
- data/lib/univapay_client_sdk/models/payment_error.rb +178 -0
- data/lib/univapay_client_sdk/models/plan_settings_type.rb +36 -0
- data/lib/univapay_client_sdk/models/recurring_token_deleted_webhook_callback.rb +132 -0
- data/lib/univapay_client_sdk/models/refund.rb +240 -0
- data/lib/univapay_client_sdk/models/refund_create_request.rb +118 -0
- data/lib/univapay_client_sdk/models/refund_event.rb +26 -0
- data/lib/univapay_client_sdk/models/refund_list.rb +104 -0
- data/lib/univapay_client_sdk/models/refund_reason_request.rb +42 -0
- data/lib/univapay_client_sdk/models/refund_reason_response.rb +62 -0
- data/lib/univapay_client_sdk/models/refund_status.rb +47 -0
- data/lib/univapay_client_sdk/models/refund_update_request.rb +99 -0
- data/lib/univapay_client_sdk/models/refund_webhook_callback.rb +132 -0
- data/lib/univapay_client_sdk/models/refund_webhook_callback_extension.rb +74 -0
- data/lib/univapay_client_sdk/models/restrict_ip_after_failed_charge_config.rb +99 -0
- data/lib/univapay_client_sdk/models/store.rb +119 -0
- data/lib/univapay_client_sdk/models/store_list.rb +104 -0
- data/lib/univapay_client_sdk/models/store_list_item.rb +114 -0
- data/lib/univapay_client_sdk/models/subscription.rb +310 -0
- data/lib/univapay_client_sdk/models/subscription_canceled_webhook_callback.rb +132 -0
- data/lib/univapay_client_sdk/models/subscription_completed_webhook_callback.rb +132 -0
- data/lib/univapay_client_sdk/models/subscription_create_request.rb +216 -0
- data/lib/univapay_client_sdk/models/subscription_created_webhook_callback.rb +132 -0
- data/lib/univapay_client_sdk/models/subscription_failure_webhook_callback.rb +132 -0
- data/lib/univapay_client_sdk/models/subscription_installment_plan.rb +86 -0
- data/lib/univapay_client_sdk/models/subscription_list.rb +104 -0
- data/lib/univapay_client_sdk/models/subscription_list_item.rb +352 -0
- data/lib/univapay_client_sdk/models/subscription_next_payment.rb +222 -0
- data/lib/univapay_client_sdk/models/subscription_patch_payment_request.rb +117 -0
- data/lib/univapay_client_sdk/models/subscription_patch_token_request.rb +79 -0
- data/lib/univapay_client_sdk/models/subscription_payment.rb +185 -0
- data/lib/univapay_client_sdk/models/subscription_payment_list.rb +94 -0
- data/lib/univapay_client_sdk/models/subscription_payment_webhook_callback.rb +132 -0
- data/lib/univapay_client_sdk/models/subscription_period.rb +56 -0
- data/lib/univapay_client_sdk/models/subscription_plan_settings.rb +98 -0
- data/lib/univapay_client_sdk/models/subscription_schedule_settings.rb +132 -0
- data/lib/univapay_client_sdk/models/subscription_status.rb +56 -0
- data/lib/univapay_client_sdk/models/subscription_suspend_request.rb +79 -0
- data/lib/univapay_client_sdk/models/subscription_suspended_webhook_callback.rb +132 -0
- data/lib/univapay_client_sdk/models/subscription_terminate_with_status.rb +36 -0
- data/lib/univapay_client_sdk/models/subscription_termination_mode.rb +36 -0
- data/lib/univapay_client_sdk/models/subscription_update_next_payment.rb +104 -0
- data/lib/univapay_client_sdk/models/subscription_update_request.rb +134 -0
- data/lib/univapay_client_sdk/models/subscription_update_schedule_settings.rb +110 -0
- data/lib/univapay_client_sdk/models/subscription_update_status.rb +37 -0
- data/lib/univapay_client_sdk/models/subscription_user_data.rb +134 -0
- data/lib/univapay_client_sdk/models/suspend_schedule_settings.rb +78 -0
- data/lib/univapay_client_sdk/models/three_ds_issuer_token.rb +116 -0
- data/lib/univapay_client_sdk/models/three_ds_issuer_token_call_method.rb +26 -0
- data/lib/univapay_client_sdk/models/three_ds_issuer_token_payment_type.rb +26 -0
- data/lib/univapay_client_sdk/models/token_create_bank_transfer_data.rb +122 -0
- data/lib/univapay_client_sdk/models/token_create_card_data.rb +231 -0
- data/lib/univapay_client_sdk/models/token_create_card_data_cvv_authorize.rb +95 -0
- data/lib/univapay_client_sdk/models/token_create_card_data_three_ds.rb +97 -0
- data/lib/univapay_client_sdk/models/token_create_konbini_data.rb +147 -0
- data/lib/univapay_client_sdk/models/token_create_online_data.rb +142 -0
- data/lib/univapay_client_sdk/models/token_create_phone_number.rb +104 -0
- data/lib/univapay_client_sdk/models/token_created_webhook_callback.rb +131 -0
- data/lib/univapay_client_sdk/models/token_cvv_auth_check_updated_webhook_callback.rb +132 -0
- data/lib/univapay_client_sdk/models/token_cvv_auth_updated_webhook_callback.rb +132 -0
- data/lib/univapay_client_sdk/models/token_replaced_webhook_callback.rb +131 -0
- data/lib/univapay_client_sdk/models/token_response_bank_transfer_data.rb +181 -0
- data/lib/univapay_client_sdk/models/token_response_card_data.rb +129 -0
- data/lib/univapay_client_sdk/models/token_response_card_data_billing.rb +153 -0
- data/lib/univapay_client_sdk/models/token_response_card_data_card.rb +187 -0
- data/lib/univapay_client_sdk/models/token_response_card_data_cvv_authorize.rb +132 -0
- data/lib/univapay_client_sdk/models/token_response_card_data_cvv_authorize_check.rb +118 -0
- data/lib/univapay_client_sdk/models/token_response_card_data_three_ds.rb +142 -0
- data/lib/univapay_client_sdk/models/token_response_card_data_three_ds_status.rb +48 -0
- data/lib/univapay_client_sdk/models/token_response_konbini_data.rb +135 -0
- data/lib/univapay_client_sdk/models/token_response_online_data.rb +158 -0
- data/lib/univapay_client_sdk/models/token_response_phone_number.rb +96 -0
- data/lib/univapay_client_sdk/models/token_three_ds_updated_webhook_callback.rb +132 -0
- data/lib/univapay_client_sdk/models/token_updated_webhook_callback.rb +131 -0
- data/lib/univapay_client_sdk/models/transaction_token.rb +250 -0
- data/lib/univapay_client_sdk/models/transaction_token_create_request.rb +161 -0
- data/lib/univapay_client_sdk/models/transaction_token_create_request_metadata.rb +124 -0
- data/lib/univapay_client_sdk/models/transaction_token_create_request_payment_type.rb +44 -0
- data/lib/univapay_client_sdk/models/transaction_token_create_request_type.rb +40 -0
- data/lib/univapay_client_sdk/models/transaction_token_list.rb +104 -0
- data/lib/univapay_client_sdk/models/transaction_token_list_item.rb +204 -0
- data/lib/univapay_client_sdk/models/transaction_token_list_item_user_data.rb +96 -0
- data/lib/univapay_client_sdk/models/transaction_token_mode.rb +36 -0
- data/lib/univapay_client_sdk/models/transaction_token_payment_type.rb +48 -0
- data/lib/univapay_client_sdk/models/transaction_token_type.rb +40 -0
- data/lib/univapay_client_sdk/models/transaction_token_update_request.rb +95 -0
- data/lib/univapay_client_sdk/models/transaction_token_update_request_data.rb +184 -0
- data/lib/univapay_client_sdk/models/transaction_token_update_request_data_phone_number.rb +86 -0
- data/lib/univapay_client_sdk/models/webhook.rb +191 -0
- data/lib/univapay_client_sdk/models/webhook_callback_envelope.rb +98 -0
- data/lib/univapay_client_sdk/models/webhook_create_request.rb +97 -0
- data/lib/univapay_client_sdk/models/webhook_event.rb +166 -0
- data/lib/univapay_client_sdk/models/webhook_event_list.rb +94 -0
- data/lib/univapay_client_sdk/models/webhook_list.rb +94 -0
- data/lib/univapay_client_sdk/models/webhook_trigger.rb +104 -0
- data/lib/univapay_client_sdk/models/webhook_update_request.rb +108 -0
- data/lib/univapay_client_sdk/utilities/date_time_helper.rb +11 -0
- data/lib/univapay_client_sdk/utilities/file_wrapper.rb +28 -0
- data/lib/univapay_client_sdk/utilities/union_type_lookup.rb +242 -0
- data/lib/univapay_client_sdk.rb +322 -0
- data/test/apis/api_test_base.rb +23 -0
- data/test/apis/test_cancels_api.rb +162 -0
- data/test/apis/test_charges_api.rb +564 -0
- data/test/apis/test_merchants_api.rb +50 -0
- data/test/apis/test_refunds_api.rb +172 -0
- data/test/apis/test_stores_api.rb +86 -0
- data/test/apis/test_subscriptions_api.rb +579 -0
- data/test/apis/test_transaction_tokens_api.rb +305 -0
- data/test/apis/test_webhooks_api.rb +245 -0
- data/test/events/webhooks/test_bank_transfer_handler.rb +95 -0
- data/test/events/webhooks/test_cancel_handler.rb +90 -0
- data/test/events/webhooks/test_charge_finished_handler.rb +95 -0
- data/test/events/webhooks/test_charge_updated_handler.rb +95 -0
- data/test/events/webhooks/test_customs_handler.rb +100 -0
- data/test/events/webhooks/test_recurring_token_deleted_handler.rb +92 -0
- data/test/events/webhooks/test_refund_handler.rb +95 -0
- data/test/events/webhooks/test_subscription_canceled_handler.rb +101 -0
- data/test/events/webhooks/test_subscription_completed_handler.rb +101 -0
- data/test/events/webhooks/test_subscription_created_handler.rb +101 -0
- data/test/events/webhooks/test_subscription_failure_handler.rb +101 -0
- data/test/events/webhooks/test_subscription_payment_handler.rb +101 -0
- data/test/events/webhooks/test_subscription_suspended_handler.rb +101 -0
- data/test/events/webhooks/test_token_created_handler.rb +92 -0
- data/test/events/webhooks/test_token_cvv_auth_check_updated_handler.rb +92 -0
- data/test/events/webhooks/test_token_cvv_auth_updated_handler.rb +92 -0
- data/test/events/webhooks/test_token_replaced_handler.rb +92 -0
- data/test/events/webhooks/test_token_three_ds_updated_handler.rb +92 -0
- data/test/events/webhooks/test_token_updated_handler.rb +92 -0
- data/test/framework_integrations/rails_app_test_helper.rb +14 -0
- data/test/framework_integrations/webhooks/apps/hanami_charge_updated_app.rb +61 -0
- data/test/framework_integrations/webhooks/apps/rails_charge_updated_app.rb +24 -0
- data/test/framework_integrations/webhooks/apps/sinatra_charge_updated_app.rb +27 -0
- data/test/framework_integrations/webhooks/test/test_hanami_charge_updated_app.rb +57 -0
- data/test/framework_integrations/webhooks/test/test_rails_charge_updated_app.rb +57 -0
- data/test/framework_integrations/webhooks/test/test_sinatra_charge_updated_app.rb +58 -0
- data/test/http_response_catcher.rb +19 -0
- metadata +397 -0
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
# univapay_client_sdk
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated for Univapay
|
|
4
|
+
# by APIMATIC v3.0 ( https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module UnivapayClientSdk
|
|
7
|
+
# Token Response Card Data Card schema.
|
|
8
|
+
class TokenResponseCardDataCard < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# Cardholder name.
|
|
13
|
+
# @return [String]
|
|
14
|
+
attr_accessor :cardholder
|
|
15
|
+
|
|
16
|
+
# Card expiration month.
|
|
17
|
+
# @return [Integer]
|
|
18
|
+
attr_accessor :exp_month
|
|
19
|
+
|
|
20
|
+
# Card expiration year.
|
|
21
|
+
# @return [Integer]
|
|
22
|
+
attr_accessor :exp_year
|
|
23
|
+
|
|
24
|
+
# Card bin value.
|
|
25
|
+
# @return [String]
|
|
26
|
+
attr_accessor :card_bin
|
|
27
|
+
|
|
28
|
+
# Last four value.
|
|
29
|
+
# @return [String]
|
|
30
|
+
attr_accessor :last_four
|
|
31
|
+
|
|
32
|
+
# Brand or network name.
|
|
33
|
+
# @return [String]
|
|
34
|
+
attr_accessor :brand
|
|
35
|
+
|
|
36
|
+
# Card type value.
|
|
37
|
+
# @return [String]
|
|
38
|
+
attr_accessor :card_type
|
|
39
|
+
|
|
40
|
+
# Country code.
|
|
41
|
+
# @return [String]
|
|
42
|
+
attr_accessor :country
|
|
43
|
+
|
|
44
|
+
# Category value.
|
|
45
|
+
# @return [String]
|
|
46
|
+
attr_accessor :category
|
|
47
|
+
|
|
48
|
+
# Issuer value.
|
|
49
|
+
# @return [String]
|
|
50
|
+
attr_accessor :issuer
|
|
51
|
+
|
|
52
|
+
# Sub brand value.
|
|
53
|
+
# @return [String]
|
|
54
|
+
attr_accessor :sub_brand
|
|
55
|
+
|
|
56
|
+
# A mapping from model property names to API property names.
|
|
57
|
+
def self.names
|
|
58
|
+
@_hash = {} if @_hash.nil?
|
|
59
|
+
@_hash['cardholder'] = 'cardholder'
|
|
60
|
+
@_hash['exp_month'] = 'exp_month'
|
|
61
|
+
@_hash['exp_year'] = 'exp_year'
|
|
62
|
+
@_hash['card_bin'] = 'card_bin'
|
|
63
|
+
@_hash['last_four'] = 'last_four'
|
|
64
|
+
@_hash['brand'] = 'brand'
|
|
65
|
+
@_hash['card_type'] = 'card_type'
|
|
66
|
+
@_hash['country'] = 'country'
|
|
67
|
+
@_hash['category'] = 'category'
|
|
68
|
+
@_hash['issuer'] = 'issuer'
|
|
69
|
+
@_hash['sub_brand'] = 'sub_brand'
|
|
70
|
+
@_hash
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
# An array for optional fields
|
|
74
|
+
def self.optionals
|
|
75
|
+
%w[
|
|
76
|
+
cardholder
|
|
77
|
+
exp_month
|
|
78
|
+
exp_year
|
|
79
|
+
card_bin
|
|
80
|
+
last_four
|
|
81
|
+
brand
|
|
82
|
+
card_type
|
|
83
|
+
country
|
|
84
|
+
category
|
|
85
|
+
issuer
|
|
86
|
+
sub_brand
|
|
87
|
+
]
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
# An array for nullable fields
|
|
91
|
+
def self.nullables
|
|
92
|
+
%w[
|
|
93
|
+
category
|
|
94
|
+
issuer
|
|
95
|
+
]
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
def initialize(cardholder: SKIP, exp_month: SKIP, exp_year: SKIP,
|
|
99
|
+
card_bin: SKIP, last_four: SKIP, brand: SKIP,
|
|
100
|
+
card_type: SKIP, country: SKIP, category: SKIP, issuer: SKIP,
|
|
101
|
+
sub_brand: SKIP, additional_properties: nil)
|
|
102
|
+
# Add additional model properties to the instance
|
|
103
|
+
additional_properties = {} if additional_properties.nil?
|
|
104
|
+
|
|
105
|
+
@cardholder = cardholder unless cardholder == SKIP
|
|
106
|
+
@exp_month = exp_month unless exp_month == SKIP
|
|
107
|
+
@exp_year = exp_year unless exp_year == SKIP
|
|
108
|
+
@card_bin = card_bin unless card_bin == SKIP
|
|
109
|
+
@last_four = last_four unless last_four == SKIP
|
|
110
|
+
@brand = brand unless brand == SKIP
|
|
111
|
+
@card_type = card_type unless card_type == SKIP
|
|
112
|
+
@country = country unless country == SKIP
|
|
113
|
+
@category = category unless category == SKIP
|
|
114
|
+
@issuer = issuer unless issuer == SKIP
|
|
115
|
+
@sub_brand = sub_brand unless sub_brand == SKIP
|
|
116
|
+
@additional_properties = additional_properties
|
|
117
|
+
end
|
|
118
|
+
|
|
119
|
+
# Creates an instance of the object from a hash.
|
|
120
|
+
def self.from_hash(hash)
|
|
121
|
+
return nil unless hash
|
|
122
|
+
|
|
123
|
+
# Extract variables from the hash.
|
|
124
|
+
cardholder = hash.key?('cardholder') ? hash['cardholder'] : SKIP
|
|
125
|
+
exp_month = hash.key?('exp_month') ? hash['exp_month'] : SKIP
|
|
126
|
+
exp_year = hash.key?('exp_year') ? hash['exp_year'] : SKIP
|
|
127
|
+
card_bin = hash.key?('card_bin') ? hash['card_bin'] : SKIP
|
|
128
|
+
last_four = hash.key?('last_four') ? hash['last_four'] : SKIP
|
|
129
|
+
brand = hash.key?('brand') ? hash['brand'] : SKIP
|
|
130
|
+
card_type = hash.key?('card_type') ? hash['card_type'] : SKIP
|
|
131
|
+
country = hash.key?('country') ? hash['country'] : SKIP
|
|
132
|
+
category = hash.key?('category') ? hash['category'] : SKIP
|
|
133
|
+
issuer = hash.key?('issuer') ? hash['issuer'] : SKIP
|
|
134
|
+
sub_brand = hash.key?('sub_brand') ? hash['sub_brand'] : SKIP
|
|
135
|
+
|
|
136
|
+
# Create a new hash for additional properties, removing known properties.
|
|
137
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
138
|
+
|
|
139
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
140
|
+
new_hash, proc { |value| value }
|
|
141
|
+
)
|
|
142
|
+
|
|
143
|
+
# Create object from extracted values.
|
|
144
|
+
TokenResponseCardDataCard.new(cardholder: cardholder,
|
|
145
|
+
exp_month: exp_month,
|
|
146
|
+
exp_year: exp_year,
|
|
147
|
+
card_bin: card_bin,
|
|
148
|
+
last_four: last_four,
|
|
149
|
+
brand: brand,
|
|
150
|
+
card_type: card_type,
|
|
151
|
+
country: country,
|
|
152
|
+
category: category,
|
|
153
|
+
issuer: issuer,
|
|
154
|
+
sub_brand: sub_brand,
|
|
155
|
+
additional_properties: additional_properties)
|
|
156
|
+
end
|
|
157
|
+
|
|
158
|
+
# Validates an instance of the object from a given value.
|
|
159
|
+
# @param [TokenResponseCardDataCard | Hash] The value against the validation is performed.
|
|
160
|
+
def self.validate(value)
|
|
161
|
+
return true if value.instance_of? self
|
|
162
|
+
|
|
163
|
+
return false unless value.instance_of? Hash
|
|
164
|
+
|
|
165
|
+
true
|
|
166
|
+
end
|
|
167
|
+
|
|
168
|
+
# Provides a human-readable string representation of the object.
|
|
169
|
+
def to_s
|
|
170
|
+
class_name = self.class.name.split('::').last
|
|
171
|
+
"<#{class_name} cardholder: #{@cardholder}, exp_month: #{@exp_month}, exp_year:"\
|
|
172
|
+
" #{@exp_year}, card_bin: #{@card_bin}, last_four: #{@last_four}, brand: #{@brand},"\
|
|
173
|
+
" card_type: #{@card_type}, country: #{@country}, category: #{@category}, issuer:"\
|
|
174
|
+
" #{@issuer}, sub_brand: #{@sub_brand}, additional_properties: #{@additional_properties}>"
|
|
175
|
+
end
|
|
176
|
+
|
|
177
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
178
|
+
def inspect
|
|
179
|
+
class_name = self.class.name.split('::').last
|
|
180
|
+
"<#{class_name} cardholder: #{@cardholder.inspect}, exp_month: #{@exp_month.inspect},"\
|
|
181
|
+
" exp_year: #{@exp_year.inspect}, card_bin: #{@card_bin.inspect}, last_four:"\
|
|
182
|
+
" #{@last_four.inspect}, brand: #{@brand.inspect}, card_type: #{@card_type.inspect},"\
|
|
183
|
+
" country: #{@country.inspect}, category: #{@category.inspect}, issuer: #{@issuer.inspect},"\
|
|
184
|
+
" sub_brand: #{@sub_brand.inspect}, additional_properties: #{@additional_properties}>"
|
|
185
|
+
end
|
|
186
|
+
end
|
|
187
|
+
end
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
# univapay_client_sdk
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated for Univapay
|
|
4
|
+
# by APIMATIC v3.0 ( https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module UnivapayClientSdk
|
|
7
|
+
# Token Response Card Data Cvv Authorize schema.
|
|
8
|
+
class TokenResponseCardDataCvvAuthorize < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# Enabled value.
|
|
13
|
+
# @return [TrueClass | FalseClass]
|
|
14
|
+
attr_accessor :enabled
|
|
15
|
+
|
|
16
|
+
# Current status of the resource.
|
|
17
|
+
# @return [String]
|
|
18
|
+
attr_accessor :status
|
|
19
|
+
|
|
20
|
+
# Charge identifier.
|
|
21
|
+
# @return [UUID | String]
|
|
22
|
+
attr_accessor :charge_id
|
|
23
|
+
|
|
24
|
+
# Credentials identifier.
|
|
25
|
+
# @return [UUID | String]
|
|
26
|
+
attr_accessor :credentials_id
|
|
27
|
+
|
|
28
|
+
# ISO-4217 currency code.
|
|
29
|
+
# @return [String]
|
|
30
|
+
attr_accessor :currency
|
|
31
|
+
|
|
32
|
+
# A mapping from model property names to API property names.
|
|
33
|
+
def self.names
|
|
34
|
+
@_hash = {} if @_hash.nil?
|
|
35
|
+
@_hash['enabled'] = 'enabled'
|
|
36
|
+
@_hash['status'] = 'status'
|
|
37
|
+
@_hash['charge_id'] = 'charge_id'
|
|
38
|
+
@_hash['credentials_id'] = 'credentials_id'
|
|
39
|
+
@_hash['currency'] = 'currency'
|
|
40
|
+
@_hash
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
# An array for optional fields
|
|
44
|
+
def self.optionals
|
|
45
|
+
%w[
|
|
46
|
+
enabled
|
|
47
|
+
status
|
|
48
|
+
charge_id
|
|
49
|
+
credentials_id
|
|
50
|
+
currency
|
|
51
|
+
]
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
# An array for nullable fields
|
|
55
|
+
def self.nullables
|
|
56
|
+
%w[
|
|
57
|
+
status
|
|
58
|
+
charge_id
|
|
59
|
+
credentials_id
|
|
60
|
+
currency
|
|
61
|
+
]
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
def initialize(enabled: SKIP, status: SKIP, charge_id: SKIP,
|
|
65
|
+
credentials_id: SKIP, currency: SKIP,
|
|
66
|
+
additional_properties: nil)
|
|
67
|
+
# Add additional model properties to the instance
|
|
68
|
+
additional_properties = {} if additional_properties.nil?
|
|
69
|
+
|
|
70
|
+
@enabled = enabled unless enabled == SKIP
|
|
71
|
+
@status = status unless status == SKIP
|
|
72
|
+
@charge_id = charge_id unless charge_id == SKIP
|
|
73
|
+
@credentials_id = credentials_id unless credentials_id == SKIP
|
|
74
|
+
@currency = currency unless currency == SKIP
|
|
75
|
+
@additional_properties = additional_properties
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
# Creates an instance of the object from a hash.
|
|
79
|
+
def self.from_hash(hash)
|
|
80
|
+
return nil unless hash
|
|
81
|
+
|
|
82
|
+
# Extract variables from the hash.
|
|
83
|
+
enabled = hash.key?('enabled') ? hash['enabled'] : SKIP
|
|
84
|
+
status = hash.key?('status') ? hash['status'] : SKIP
|
|
85
|
+
charge_id = hash.key?('charge_id') ? hash['charge_id'] : SKIP
|
|
86
|
+
credentials_id =
|
|
87
|
+
hash.key?('credentials_id') ? hash['credentials_id'] : SKIP
|
|
88
|
+
currency = hash.key?('currency') ? hash['currency'] : SKIP
|
|
89
|
+
|
|
90
|
+
# Create a new hash for additional properties, removing known properties.
|
|
91
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
92
|
+
|
|
93
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
94
|
+
new_hash, proc { |value| value }
|
|
95
|
+
)
|
|
96
|
+
|
|
97
|
+
# Create object from extracted values.
|
|
98
|
+
TokenResponseCardDataCvvAuthorize.new(enabled: enabled,
|
|
99
|
+
status: status,
|
|
100
|
+
charge_id: charge_id,
|
|
101
|
+
credentials_id: credentials_id,
|
|
102
|
+
currency: currency,
|
|
103
|
+
additional_properties: additional_properties)
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
# Validates an instance of the object from a given value.
|
|
107
|
+
# @param [TokenResponseCardDataCvvAuthorize | Hash] The value against the validation is performed.
|
|
108
|
+
def self.validate(value)
|
|
109
|
+
return true if value.instance_of? self
|
|
110
|
+
|
|
111
|
+
return false unless value.instance_of? Hash
|
|
112
|
+
|
|
113
|
+
true
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
# Provides a human-readable string representation of the object.
|
|
117
|
+
def to_s
|
|
118
|
+
class_name = self.class.name.split('::').last
|
|
119
|
+
"<#{class_name} enabled: #{@enabled}, status: #{@status}, charge_id: #{@charge_id},"\
|
|
120
|
+
" credentials_id: #{@credentials_id}, currency: #{@currency}, additional_properties:"\
|
|
121
|
+
" #{@additional_properties}>"
|
|
122
|
+
end
|
|
123
|
+
|
|
124
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
125
|
+
def inspect
|
|
126
|
+
class_name = self.class.name.split('::').last
|
|
127
|
+
"<#{class_name} enabled: #{@enabled.inspect}, status: #{@status.inspect}, charge_id:"\
|
|
128
|
+
" #{@charge_id.inspect}, credentials_id: #{@credentials_id.inspect}, currency:"\
|
|
129
|
+
" #{@currency.inspect}, additional_properties: #{@additional_properties}>"
|
|
130
|
+
end
|
|
131
|
+
end
|
|
132
|
+
end
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
# univapay_client_sdk
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated for Univapay
|
|
4
|
+
# by APIMATIC v3.0 ( https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
require 'date'
|
|
7
|
+
module UnivapayClientSdk
|
|
8
|
+
# Token Response Card Data Cvv Authorize Check schema.
|
|
9
|
+
class TokenResponseCardDataCvvAuthorizeCheck < BaseModel
|
|
10
|
+
SKIP = Object.new
|
|
11
|
+
private_constant :SKIP
|
|
12
|
+
|
|
13
|
+
# Current status of the resource.
|
|
14
|
+
# @return [String]
|
|
15
|
+
attr_accessor :status
|
|
16
|
+
|
|
17
|
+
# Charge identifier.
|
|
18
|
+
# @return [UUID | String]
|
|
19
|
+
attr_accessor :charge_id
|
|
20
|
+
|
|
21
|
+
# Date value.
|
|
22
|
+
# @return [DateTime]
|
|
23
|
+
attr_accessor :date
|
|
24
|
+
|
|
25
|
+
# A mapping from model property names to API property names.
|
|
26
|
+
def self.names
|
|
27
|
+
@_hash = {} if @_hash.nil?
|
|
28
|
+
@_hash['status'] = 'status'
|
|
29
|
+
@_hash['charge_id'] = 'charge_id'
|
|
30
|
+
@_hash['date'] = 'date'
|
|
31
|
+
@_hash
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
# An array for optional fields
|
|
35
|
+
def self.optionals
|
|
36
|
+
%w[
|
|
37
|
+
status
|
|
38
|
+
charge_id
|
|
39
|
+
date
|
|
40
|
+
]
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
# An array for nullable fields
|
|
44
|
+
def self.nullables
|
|
45
|
+
%w[
|
|
46
|
+
status
|
|
47
|
+
charge_id
|
|
48
|
+
date
|
|
49
|
+
]
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
def initialize(status: SKIP, charge_id: SKIP, date: SKIP,
|
|
53
|
+
additional_properties: nil)
|
|
54
|
+
# Add additional model properties to the instance
|
|
55
|
+
additional_properties = {} if additional_properties.nil?
|
|
56
|
+
|
|
57
|
+
@status = status unless status == SKIP
|
|
58
|
+
@charge_id = charge_id unless charge_id == SKIP
|
|
59
|
+
@date = date unless date == SKIP
|
|
60
|
+
@additional_properties = additional_properties
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
# Creates an instance of the object from a hash.
|
|
64
|
+
def self.from_hash(hash)
|
|
65
|
+
return nil unless hash
|
|
66
|
+
|
|
67
|
+
# Extract variables from the hash.
|
|
68
|
+
status = hash.key?('status') ? hash['status'] : SKIP
|
|
69
|
+
charge_id = hash.key?('charge_id') ? hash['charge_id'] : SKIP
|
|
70
|
+
date = if hash.key?('date')
|
|
71
|
+
(DateTimeHelper.from_rfc3339(hash['date']) if hash['date'])
|
|
72
|
+
else
|
|
73
|
+
SKIP
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
# Create a new hash for additional properties, removing known properties.
|
|
77
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
78
|
+
|
|
79
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
80
|
+
new_hash, proc { |value| value }
|
|
81
|
+
)
|
|
82
|
+
|
|
83
|
+
# Create object from extracted values.
|
|
84
|
+
TokenResponseCardDataCvvAuthorizeCheck.new(status: status,
|
|
85
|
+
charge_id: charge_id,
|
|
86
|
+
date: date,
|
|
87
|
+
additional_properties: additional_properties)
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
def to_custom_date
|
|
91
|
+
DateTimeHelper.to_rfc3339(date)
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
# Validates an instance of the object from a given value.
|
|
95
|
+
# @param [TokenResponseCardDataCvvAuthorizeCheck | Hash] The value against the validation is performed.
|
|
96
|
+
def self.validate(value)
|
|
97
|
+
return true if value.instance_of? self
|
|
98
|
+
|
|
99
|
+
return false unless value.instance_of? Hash
|
|
100
|
+
|
|
101
|
+
true
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
# Provides a human-readable string representation of the object.
|
|
105
|
+
def to_s
|
|
106
|
+
class_name = self.class.name.split('::').last
|
|
107
|
+
"<#{class_name} status: #{@status}, charge_id: #{@charge_id}, date: #{@date},"\
|
|
108
|
+
" additional_properties: #{@additional_properties}>"
|
|
109
|
+
end
|
|
110
|
+
|
|
111
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
112
|
+
def inspect
|
|
113
|
+
class_name = self.class.name.split('::').last
|
|
114
|
+
"<#{class_name} status: #{@status.inspect}, charge_id: #{@charge_id.inspect}, date:"\
|
|
115
|
+
" #{@date.inspect}, additional_properties: #{@additional_properties}>"
|
|
116
|
+
end
|
|
117
|
+
end
|
|
118
|
+
end
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
# univapay_client_sdk
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated for Univapay
|
|
4
|
+
# by APIMATIC v3.0 ( https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module UnivapayClientSdk
|
|
7
|
+
# Token Response Card Data Three Ds schema.
|
|
8
|
+
class TokenResponseCardDataThreeDs < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# Enabled value.
|
|
13
|
+
# @return [TrueClass | FalseClass]
|
|
14
|
+
attr_accessor :enabled
|
|
15
|
+
|
|
16
|
+
# Token Response Card Data Three Ds Status schema.
|
|
17
|
+
# @return [TokenResponseCardDataThreeDsStatus]
|
|
18
|
+
attr_accessor :status
|
|
19
|
+
|
|
20
|
+
# Redirect endpoint URL.
|
|
21
|
+
# @return [String]
|
|
22
|
+
attr_accessor :redirect_endpoint
|
|
23
|
+
|
|
24
|
+
# Redirect identifier.
|
|
25
|
+
# @return [UUID | String]
|
|
26
|
+
attr_accessor :redirect_id
|
|
27
|
+
|
|
28
|
+
# Indicates if the 3DS check was exempted. When creating charge 3DS check
|
|
29
|
+
# will not be required.
|
|
30
|
+
# @return [TrueClass | FalseClass]
|
|
31
|
+
attr_accessor :exempted
|
|
32
|
+
|
|
33
|
+
# Payment error details, or null if successful.
|
|
34
|
+
# @return [PaymentError]
|
|
35
|
+
attr_accessor :error
|
|
36
|
+
|
|
37
|
+
# A mapping from model property names to API property names.
|
|
38
|
+
def self.names
|
|
39
|
+
@_hash = {} if @_hash.nil?
|
|
40
|
+
@_hash['enabled'] = 'enabled'
|
|
41
|
+
@_hash['status'] = 'status'
|
|
42
|
+
@_hash['redirect_endpoint'] = 'redirect_endpoint'
|
|
43
|
+
@_hash['redirect_id'] = 'redirect_id'
|
|
44
|
+
@_hash['exempted'] = 'exempted'
|
|
45
|
+
@_hash['error'] = 'error'
|
|
46
|
+
@_hash
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
# An array for optional fields
|
|
50
|
+
def self.optionals
|
|
51
|
+
%w[
|
|
52
|
+
enabled
|
|
53
|
+
status
|
|
54
|
+
redirect_endpoint
|
|
55
|
+
redirect_id
|
|
56
|
+
exempted
|
|
57
|
+
error
|
|
58
|
+
]
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
# An array for nullable fields
|
|
62
|
+
def self.nullables
|
|
63
|
+
%w[
|
|
64
|
+
redirect_endpoint
|
|
65
|
+
redirect_id
|
|
66
|
+
error
|
|
67
|
+
]
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
def initialize(enabled: SKIP, status: SKIP, redirect_endpoint: SKIP,
|
|
71
|
+
redirect_id: SKIP, exempted: SKIP, error: SKIP,
|
|
72
|
+
additional_properties: nil)
|
|
73
|
+
# Add additional model properties to the instance
|
|
74
|
+
additional_properties = {} if additional_properties.nil?
|
|
75
|
+
|
|
76
|
+
@enabled = enabled unless enabled == SKIP
|
|
77
|
+
@status = status unless status == SKIP
|
|
78
|
+
@redirect_endpoint = redirect_endpoint unless redirect_endpoint == SKIP
|
|
79
|
+
@redirect_id = redirect_id unless redirect_id == SKIP
|
|
80
|
+
@exempted = exempted unless exempted == SKIP
|
|
81
|
+
@error = error unless error == SKIP
|
|
82
|
+
@additional_properties = additional_properties
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
# Creates an instance of the object from a hash.
|
|
86
|
+
def self.from_hash(hash)
|
|
87
|
+
return nil unless hash
|
|
88
|
+
|
|
89
|
+
# Extract variables from the hash.
|
|
90
|
+
enabled = hash.key?('enabled') ? hash['enabled'] : SKIP
|
|
91
|
+
status = hash.key?('status') ? hash['status'] : SKIP
|
|
92
|
+
redirect_endpoint =
|
|
93
|
+
hash.key?('redirect_endpoint') ? hash['redirect_endpoint'] : SKIP
|
|
94
|
+
redirect_id = hash.key?('redirect_id') ? hash['redirect_id'] : SKIP
|
|
95
|
+
exempted = hash.key?('exempted') ? hash['exempted'] : SKIP
|
|
96
|
+
error = PaymentError.from_hash(hash['error']) if hash['error']
|
|
97
|
+
|
|
98
|
+
# Create a new hash for additional properties, removing known properties.
|
|
99
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
100
|
+
|
|
101
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
102
|
+
new_hash, proc { |value| value }
|
|
103
|
+
)
|
|
104
|
+
|
|
105
|
+
# Create object from extracted values.
|
|
106
|
+
TokenResponseCardDataThreeDs.new(enabled: enabled,
|
|
107
|
+
status: status,
|
|
108
|
+
redirect_endpoint: redirect_endpoint,
|
|
109
|
+
redirect_id: redirect_id,
|
|
110
|
+
exempted: exempted,
|
|
111
|
+
error: error,
|
|
112
|
+
additional_properties: additional_properties)
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
# Validates an instance of the object from a given value.
|
|
116
|
+
# @param [TokenResponseCardDataThreeDs | Hash] The value against the validation is performed.
|
|
117
|
+
def self.validate(value)
|
|
118
|
+
return true if value.instance_of? self
|
|
119
|
+
|
|
120
|
+
return false unless value.instance_of? Hash
|
|
121
|
+
|
|
122
|
+
true
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
# Provides a human-readable string representation of the object.
|
|
126
|
+
def to_s
|
|
127
|
+
class_name = self.class.name.split('::').last
|
|
128
|
+
"<#{class_name} enabled: #{@enabled}, status: #{@status}, redirect_endpoint:"\
|
|
129
|
+
" #{@redirect_endpoint}, redirect_id: #{@redirect_id}, exempted: #{@exempted}, error:"\
|
|
130
|
+
" #{@error}, additional_properties: #{@additional_properties}>"
|
|
131
|
+
end
|
|
132
|
+
|
|
133
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
134
|
+
def inspect
|
|
135
|
+
class_name = self.class.name.split('::').last
|
|
136
|
+
"<#{class_name} enabled: #{@enabled.inspect}, status: #{@status.inspect},"\
|
|
137
|
+
" redirect_endpoint: #{@redirect_endpoint.inspect}, redirect_id: #{@redirect_id.inspect},"\
|
|
138
|
+
" exempted: #{@exempted.inspect}, error: #{@error.inspect}, additional_properties:"\
|
|
139
|
+
" #{@additional_properties}>"
|
|
140
|
+
end
|
|
141
|
+
end
|
|
142
|
+
end
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# univapay_client_sdk
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated for Univapay
|
|
4
|
+
# by APIMATIC v3.0 ( https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module UnivapayClientSdk
|
|
7
|
+
# Token Response Card Data Three Ds Status schema.
|
|
8
|
+
class TokenResponseCardDataThreeDsStatus
|
|
9
|
+
TOKEN_RESPONSE_CARD_DATA_THREE_DS_STATUS = [
|
|
10
|
+
# TODO: Write general description for PENDING
|
|
11
|
+
PENDING = 'pending'.freeze,
|
|
12
|
+
|
|
13
|
+
# TODO: Write general description for AWAITING
|
|
14
|
+
AWAITING = 'awaiting'.freeze,
|
|
15
|
+
|
|
16
|
+
# TODO: Write general description for SUCCESSFUL
|
|
17
|
+
SUCCESSFUL = 'successful'.freeze,
|
|
18
|
+
|
|
19
|
+
# TODO: Write general description for FAILED
|
|
20
|
+
FAILED = 'failed'.freeze,
|
|
21
|
+
|
|
22
|
+
# TODO: Write general description for ERROR
|
|
23
|
+
ERROR = 'error'.freeze
|
|
24
|
+
].freeze
|
|
25
|
+
|
|
26
|
+
def self.validate(value)
|
|
27
|
+
return false if value.nil?
|
|
28
|
+
|
|
29
|
+
TOKEN_RESPONSE_CARD_DATA_THREE_DS_STATUS.include?(value)
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
def self.from_value(value, default_value = PENDING)
|
|
33
|
+
return default_value if value.nil?
|
|
34
|
+
|
|
35
|
+
str = value.to_s.strip
|
|
36
|
+
|
|
37
|
+
case str.downcase
|
|
38
|
+
when 'pending' then PENDING
|
|
39
|
+
when 'awaiting' then AWAITING
|
|
40
|
+
when 'successful' then SUCCESSFUL
|
|
41
|
+
when 'failed' then FAILED
|
|
42
|
+
when 'error' then ERROR
|
|
43
|
+
else
|
|
44
|
+
default_value
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
end
|