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,242 @@
|
|
|
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
|
+
# The `UnionTypeLookUp` class serves as a utility class for
|
|
8
|
+
# storing and managing type combinator templates. It acts as a container for the templates
|
|
9
|
+
# used in handling various oneof/anyof instances within the sdk.
|
|
10
|
+
class UnionTypeLookUp
|
|
11
|
+
include CoreLibrary
|
|
12
|
+
# rubocop:disable Lint/RedundantCopDisableDirective, Style/HashSyntax, Layout/FirstArgumentIndentation
|
|
13
|
+
def self.union_types
|
|
14
|
+
{
|
|
15
|
+
:GenericMetadataValue => AnyOf.new(
|
|
16
|
+
[
|
|
17
|
+
LeafType.new(String),
|
|
18
|
+
LeafType.new(Float),
|
|
19
|
+
AnyOf.new([LeafType.new(TrueClass), LeafType.new(FalseClass)])
|
|
20
|
+
]
|
|
21
|
+
),
|
|
22
|
+
|
|
23
|
+
:TransactionTokenCreateRequestData => AnyOf.new(
|
|
24
|
+
[
|
|
25
|
+
LeafType.new(TokenCreateCardData),
|
|
26
|
+
LeafType.new(TokenCreateKonbiniData),
|
|
27
|
+
LeafType.new(TokenCreateOnlineData),
|
|
28
|
+
LeafType.new(TokenCreateBankTransferData)
|
|
29
|
+
]
|
|
30
|
+
),
|
|
31
|
+
|
|
32
|
+
:TransactionTokenCreateMetadataProps => OneOf.new(
|
|
33
|
+
[
|
|
34
|
+
LeafType.new(String),
|
|
35
|
+
AnyOf.new([LeafType.new(TrueClass), LeafType.new(FalseClass)]),
|
|
36
|
+
LeafType.new(Float)
|
|
37
|
+
]
|
|
38
|
+
),
|
|
39
|
+
|
|
40
|
+
:TransactionTokenMetadataAdditionalProperties => AnyOf.new(
|
|
41
|
+
[
|
|
42
|
+
LeafType.new(String),
|
|
43
|
+
LeafType.new(Float),
|
|
44
|
+
AnyOf.new([LeafType.new(TrueClass), LeafType.new(FalseClass)])
|
|
45
|
+
],
|
|
46
|
+
UnionTypeContext.new(
|
|
47
|
+
is_dict: true,
|
|
48
|
+
is_optional: true
|
|
49
|
+
)
|
|
50
|
+
),
|
|
51
|
+
|
|
52
|
+
:TransactionTokenData => AnyOf.new(
|
|
53
|
+
[
|
|
54
|
+
LeafType.new(TokenResponseCardData),
|
|
55
|
+
LeafType.new(TokenResponseKonbiniData),
|
|
56
|
+
LeafType.new(TokenResponseOnlineData),
|
|
57
|
+
LeafType.new(TokenResponseBankTransferData)
|
|
58
|
+
],
|
|
59
|
+
UnionTypeContext.new(
|
|
60
|
+
is_optional: true
|
|
61
|
+
)
|
|
62
|
+
),
|
|
63
|
+
|
|
64
|
+
:ChargeUpdated => OneOf.new(
|
|
65
|
+
[
|
|
66
|
+
LeafType.new(ChargeUpdatedWebhookCallback, UnionTypeContext.new(
|
|
67
|
+
discriminator_value: 'charge_updated',
|
|
68
|
+
discriminator: 'event'
|
|
69
|
+
))
|
|
70
|
+
]
|
|
71
|
+
),
|
|
72
|
+
|
|
73
|
+
:ChargeFinished => OneOf.new(
|
|
74
|
+
[
|
|
75
|
+
LeafType.new(ChargeFinishedWebhookCallback, UnionTypeContext.new(
|
|
76
|
+
discriminator_value: 'charge_finished',
|
|
77
|
+
discriminator: 'event'
|
|
78
|
+
))
|
|
79
|
+
]
|
|
80
|
+
),
|
|
81
|
+
|
|
82
|
+
:TokenCreated => OneOf.new(
|
|
83
|
+
[
|
|
84
|
+
LeafType.new(TokenCreatedWebhookCallback, UnionTypeContext.new(
|
|
85
|
+
discriminator_value: 'token_created',
|
|
86
|
+
discriminator: 'event'
|
|
87
|
+
))
|
|
88
|
+
]
|
|
89
|
+
),
|
|
90
|
+
|
|
91
|
+
:TokenUpdated => OneOf.new(
|
|
92
|
+
[
|
|
93
|
+
LeafType.new(TokenUpdatedWebhookCallback, UnionTypeContext.new(
|
|
94
|
+
discriminator_value: 'token_updated',
|
|
95
|
+
discriminator: 'event'
|
|
96
|
+
))
|
|
97
|
+
]
|
|
98
|
+
),
|
|
99
|
+
|
|
100
|
+
:TokenThreeDsUpdated => OneOf.new(
|
|
101
|
+
[
|
|
102
|
+
LeafType.new(TokenThreeDsUpdatedWebhookCallback, UnionTypeContext.new(
|
|
103
|
+
discriminator_value: 'token_three_d_s_updated',
|
|
104
|
+
discriminator: 'event'
|
|
105
|
+
))
|
|
106
|
+
]
|
|
107
|
+
),
|
|
108
|
+
|
|
109
|
+
:TokenCvvAuthUpdated => OneOf.new(
|
|
110
|
+
[
|
|
111
|
+
LeafType.new(TokenCvvAuthUpdatedWebhookCallback, UnionTypeContext.new(
|
|
112
|
+
discriminator_value: 'token_cvv_auth_updated',
|
|
113
|
+
discriminator: 'event'
|
|
114
|
+
))
|
|
115
|
+
]
|
|
116
|
+
),
|
|
117
|
+
|
|
118
|
+
:TokenCvvAuthCheckUpdated => OneOf.new(
|
|
119
|
+
[
|
|
120
|
+
LeafType.new(TokenCvvAuthCheckUpdatedWebhookCallback, UnionTypeContext.new(
|
|
121
|
+
discriminator_value: 'token_cvv_auth_check_updated',
|
|
122
|
+
discriminator: 'event'
|
|
123
|
+
))
|
|
124
|
+
]
|
|
125
|
+
),
|
|
126
|
+
|
|
127
|
+
:TokenReplaced => OneOf.new(
|
|
128
|
+
[
|
|
129
|
+
LeafType.new(TokenReplacedWebhookCallback, UnionTypeContext.new(
|
|
130
|
+
discriminator_value: 'token_replaced',
|
|
131
|
+
discriminator: 'event'
|
|
132
|
+
))
|
|
133
|
+
]
|
|
134
|
+
),
|
|
135
|
+
|
|
136
|
+
:RecurringTokenDeleted => OneOf.new(
|
|
137
|
+
[
|
|
138
|
+
LeafType.new(RecurringTokenDeletedWebhookCallback, UnionTypeContext.new(
|
|
139
|
+
discriminator_value: 'recurring_token_deleted',
|
|
140
|
+
discriminator: 'event'
|
|
141
|
+
))
|
|
142
|
+
]
|
|
143
|
+
),
|
|
144
|
+
|
|
145
|
+
:Refund => OneOf.new(
|
|
146
|
+
[
|
|
147
|
+
LeafType.new(RefundWebhookCallback, UnionTypeContext.new(
|
|
148
|
+
discriminator_value: 'refund_finished',
|
|
149
|
+
discriminator: 'event'
|
|
150
|
+
))
|
|
151
|
+
]
|
|
152
|
+
),
|
|
153
|
+
|
|
154
|
+
:Cancel => OneOf.new(
|
|
155
|
+
[
|
|
156
|
+
LeafType.new(CancelWebhookCallback, UnionTypeContext.new(
|
|
157
|
+
discriminator_value: 'cancel_finished',
|
|
158
|
+
discriminator: 'event'
|
|
159
|
+
))
|
|
160
|
+
]
|
|
161
|
+
),
|
|
162
|
+
|
|
163
|
+
:SubscriptionCreated => OneOf.new(
|
|
164
|
+
[
|
|
165
|
+
LeafType.new(SubscriptionCreatedWebhookCallback, UnionTypeContext.new(
|
|
166
|
+
discriminator_value: 'subscription_created',
|
|
167
|
+
discriminator: 'event'
|
|
168
|
+
))
|
|
169
|
+
]
|
|
170
|
+
),
|
|
171
|
+
|
|
172
|
+
:SubscriptionPayment => OneOf.new(
|
|
173
|
+
[
|
|
174
|
+
LeafType.new(SubscriptionPaymentWebhookCallback, UnionTypeContext.new(
|
|
175
|
+
discriminator_value: 'subscription_payment',
|
|
176
|
+
discriminator: 'event'
|
|
177
|
+
))
|
|
178
|
+
]
|
|
179
|
+
),
|
|
180
|
+
|
|
181
|
+
:SubscriptionCompleted => OneOf.new(
|
|
182
|
+
[
|
|
183
|
+
LeafType.new(SubscriptionCompletedWebhookCallback, UnionTypeContext.new(
|
|
184
|
+
discriminator_value: 'subscription_completed',
|
|
185
|
+
discriminator: 'event'
|
|
186
|
+
))
|
|
187
|
+
]
|
|
188
|
+
),
|
|
189
|
+
|
|
190
|
+
:SubscriptionFailure => OneOf.new(
|
|
191
|
+
[
|
|
192
|
+
LeafType.new(SubscriptionFailureWebhookCallback, UnionTypeContext.new(
|
|
193
|
+
discriminator_value: 'subscription_failure',
|
|
194
|
+
discriminator: 'event'
|
|
195
|
+
))
|
|
196
|
+
]
|
|
197
|
+
),
|
|
198
|
+
|
|
199
|
+
:SubscriptionCanceled => OneOf.new(
|
|
200
|
+
[
|
|
201
|
+
LeafType.new(SubscriptionCanceledWebhookCallback, UnionTypeContext.new(
|
|
202
|
+
discriminator_value: 'subscription_canceled',
|
|
203
|
+
discriminator: 'event'
|
|
204
|
+
))
|
|
205
|
+
]
|
|
206
|
+
),
|
|
207
|
+
|
|
208
|
+
:SubscriptionSuspended => OneOf.new(
|
|
209
|
+
[
|
|
210
|
+
LeafType.new(SubscriptionSuspendedWebhookCallback, UnionTypeContext.new(
|
|
211
|
+
discriminator_value: 'subscription_suspended',
|
|
212
|
+
discriminator: 'event'
|
|
213
|
+
))
|
|
214
|
+
]
|
|
215
|
+
),
|
|
216
|
+
|
|
217
|
+
:BankTransfer => OneOf.new(
|
|
218
|
+
[
|
|
219
|
+
LeafType.new(BankTransferStatusWebhookCallback, UnionTypeContext.new(
|
|
220
|
+
discriminator_value: 'bank_transfer_status_updated',
|
|
221
|
+
discriminator: 'event'
|
|
222
|
+
))
|
|
223
|
+
]
|
|
224
|
+
),
|
|
225
|
+
|
|
226
|
+
:Customs => OneOf.new(
|
|
227
|
+
[
|
|
228
|
+
LeafType.new(CustomsDeclarationWebhookCallback, UnionTypeContext.new(
|
|
229
|
+
discriminator_value: 'customs_declaration_finished',
|
|
230
|
+
discriminator: 'event'
|
|
231
|
+
))
|
|
232
|
+
]
|
|
233
|
+
)
|
|
234
|
+
}
|
|
235
|
+
end
|
|
236
|
+
# rubocop:enable Lint/RedundantCopDisableDirective, Style/HashSyntax, Layout/FirstArgumentIndentation
|
|
237
|
+
|
|
238
|
+
def self.get(name)
|
|
239
|
+
UnionTypeLookUp.union_types[name]
|
|
240
|
+
end
|
|
241
|
+
end
|
|
242
|
+
end
|
|
@@ -0,0 +1,322 @@
|
|
|
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
|
+
require 'json'
|
|
8
|
+
|
|
9
|
+
require 'apimatic_core_interfaces'
|
|
10
|
+
require 'apimatic_core'
|
|
11
|
+
require 'apimatic_faraday_client_adapter'
|
|
12
|
+
|
|
13
|
+
require_relative 'univapay_client_sdk/api_helper'
|
|
14
|
+
require_relative 'univapay_client_sdk/client'
|
|
15
|
+
|
|
16
|
+
# Utilities
|
|
17
|
+
require_relative 'univapay_client_sdk/utilities/file_wrapper'
|
|
18
|
+
require_relative 'univapay_client_sdk/utilities/date_time_helper'
|
|
19
|
+
require_relative 'univapay_client_sdk/utilities/union_type_lookup'
|
|
20
|
+
|
|
21
|
+
# Http
|
|
22
|
+
require_relative 'univapay_client_sdk/http/api_response'
|
|
23
|
+
require_relative 'univapay_client_sdk/http/http_call_back'
|
|
24
|
+
require_relative 'univapay_client_sdk/http/http_method_enum'
|
|
25
|
+
require_relative 'univapay_client_sdk/http/http_request'
|
|
26
|
+
require_relative 'univapay_client_sdk/http/http_response'
|
|
27
|
+
require_relative 'univapay_client_sdk/http/proxy_settings'
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
# Logger
|
|
31
|
+
require_relative 'univapay_client_sdk/logging/configuration/' \
|
|
32
|
+
'api_logging_configuration'
|
|
33
|
+
require_relative 'univapay_client_sdk/logging/sdk_logger'
|
|
34
|
+
require_relative 'univapay_client_sdk/http/auth/oauth_2'
|
|
35
|
+
|
|
36
|
+
# Events
|
|
37
|
+
require_relative 'univapay_client_sdk/events/webhooks/charge_updated_handler'
|
|
38
|
+
require_relative 'univapay_client_sdk/events/webhooks/charge_finished_handler'
|
|
39
|
+
require_relative 'univapay_client_sdk/events/webhooks/token_created_handler'
|
|
40
|
+
require_relative 'univapay_client_sdk/events/webhooks/token_updated_handler'
|
|
41
|
+
require_relative 'univapay_client_sdk/events/webhooks/' \
|
|
42
|
+
'token_three_ds_updated_handler'
|
|
43
|
+
require_relative 'univapay_client_sdk/events/webhooks/' \
|
|
44
|
+
'token_cvv_auth_updated_handler'
|
|
45
|
+
require_relative 'univapay_client_sdk/events/webhooks/' \
|
|
46
|
+
'token_cvv_auth_check_updated_handler'
|
|
47
|
+
require_relative 'univapay_client_sdk/events/webhooks/token_replaced_handler'
|
|
48
|
+
require_relative 'univapay_client_sdk/events/webhooks/' \
|
|
49
|
+
'recurring_token_deleted_handler'
|
|
50
|
+
require_relative 'univapay_client_sdk/events/webhooks/refund_handler'
|
|
51
|
+
require_relative 'univapay_client_sdk/events/webhooks/cancel_handler'
|
|
52
|
+
require_relative 'univapay_client_sdk/events/webhooks/' \
|
|
53
|
+
'subscription_created_handler'
|
|
54
|
+
require_relative 'univapay_client_sdk/events/webhooks/' \
|
|
55
|
+
'subscription_payment_handler'
|
|
56
|
+
require_relative 'univapay_client_sdk/events/webhooks/' \
|
|
57
|
+
'subscription_completed_handler'
|
|
58
|
+
require_relative 'univapay_client_sdk/events/webhooks/' \
|
|
59
|
+
'subscription_failure_handler'
|
|
60
|
+
require_relative 'univapay_client_sdk/events/webhooks/' \
|
|
61
|
+
'subscription_canceled_handler'
|
|
62
|
+
require_relative 'univapay_client_sdk/events/webhooks/' \
|
|
63
|
+
'subscription_suspended_handler'
|
|
64
|
+
require_relative 'univapay_client_sdk/events/webhooks/bank_transfer_handler'
|
|
65
|
+
require_relative 'univapay_client_sdk/events/webhooks/customs_handler'
|
|
66
|
+
require_relative 'univapay_client_sdk/events/unknown_event'
|
|
67
|
+
|
|
68
|
+
# Models
|
|
69
|
+
require_relative 'univapay_client_sdk/models/base_model'
|
|
70
|
+
require_relative 'univapay_client_sdk/models/api_error_detail'
|
|
71
|
+
require_relative 'univapay_client_sdk/models/issuer_token_payload'
|
|
72
|
+
require_relative 'univapay_client_sdk/models/payment_error'
|
|
73
|
+
require_relative 'univapay_client_sdk/models/generic_metadata'
|
|
74
|
+
require_relative 'univapay_client_sdk/models/charge_create_request'
|
|
75
|
+
require_relative 'univapay_client_sdk/models/charge'
|
|
76
|
+
require_relative 'univapay_client_sdk/models/charge_update_request'
|
|
77
|
+
require_relative 'univapay_client_sdk/models/charge_capture_request'
|
|
78
|
+
require_relative 'univapay_client_sdk/models/charge_list'
|
|
79
|
+
require_relative 'univapay_client_sdk/models/base_konbini_data'
|
|
80
|
+
require_relative 'univapay_client_sdk/models/base_online_data'
|
|
81
|
+
require_relative 'univapay_client_sdk/models/token_create_phone_number'
|
|
82
|
+
require_relative 'univapay_client_sdk/models/token_response_phone_number'
|
|
83
|
+
require_relative 'univapay_client_sdk/models/token_create_card_data'
|
|
84
|
+
require_relative 'univapay_client_sdk/models/token_create_konbini_data'
|
|
85
|
+
require_relative 'univapay_client_sdk/models/token_create_online_data'
|
|
86
|
+
require_relative 'univapay_client_sdk/models/base_bank_transfer_data'
|
|
87
|
+
require_relative 'univapay_client_sdk/models/token_create_bank_transfer_data'
|
|
88
|
+
require_relative 'univapay_client_sdk/models/token_response_card_data'
|
|
89
|
+
require_relative 'univapay_client_sdk/models/token_response_konbini_data'
|
|
90
|
+
require_relative 'univapay_client_sdk/models/token_response_online_data'
|
|
91
|
+
require_relative 'univapay_client_sdk/models/token_response_bank_transfer_data'
|
|
92
|
+
require_relative 'univapay_client_sdk/models/transaction_token_create_request'
|
|
93
|
+
require_relative 'univapay_client_sdk/models/' \
|
|
94
|
+
'transaction_token_create_request_metadata'
|
|
95
|
+
require_relative 'univapay_client_sdk/models/transaction_token'
|
|
96
|
+
require_relative 'univapay_client_sdk/models/transaction_token_update_request'
|
|
97
|
+
require_relative 'univapay_client_sdk/models/transaction_token_list_item'
|
|
98
|
+
require_relative 'univapay_client_sdk/models/transaction_token_list'
|
|
99
|
+
require_relative 'univapay_client_sdk/models/issuer_token'
|
|
100
|
+
require_relative 'univapay_client_sdk/models/three_ds_issuer_token'
|
|
101
|
+
require_relative 'univapay_client_sdk/models/bank_transfer_ledger'
|
|
102
|
+
require_relative 'univapay_client_sdk/models/bank_transfer_ledger_list'
|
|
103
|
+
require_relative 'univapay_client_sdk/models/' \
|
|
104
|
+
'charge_create_request_client_metadata'
|
|
105
|
+
require_relative 'univapay_client_sdk/models/charge_create_request_redirect'
|
|
106
|
+
require_relative 'univapay_client_sdk/models/charge_create_request_three_ds'
|
|
107
|
+
require_relative 'univapay_client_sdk/models/charge_redirect'
|
|
108
|
+
require_relative 'univapay_client_sdk/models/charge_three_ds'
|
|
109
|
+
require_relative 'univapay_client_sdk/models/' \
|
|
110
|
+
'token_create_card_data_cvv_authorize'
|
|
111
|
+
require_relative 'univapay_client_sdk/models/token_create_card_data_three_ds'
|
|
112
|
+
require_relative 'univapay_client_sdk/models/token_response_card_data_card'
|
|
113
|
+
require_relative 'univapay_client_sdk/models/token_response_card_data_billing'
|
|
114
|
+
require_relative 'univapay_client_sdk/models/' \
|
|
115
|
+
'token_response_card_data_cvv_authorize'
|
|
116
|
+
require_relative 'univapay_client_sdk/models/' \
|
|
117
|
+
'token_response_card_data_cvv_authorize_check'
|
|
118
|
+
require_relative 'univapay_client_sdk/models/token_response_card_data_three_ds'
|
|
119
|
+
require_relative 'univapay_client_sdk/models/' \
|
|
120
|
+
'transaction_token_update_request_data'
|
|
121
|
+
require_relative 'univapay_client_sdk/models/' \
|
|
122
|
+
'transaction_token_update_request_data_phone_number'
|
|
123
|
+
require_relative 'univapay_client_sdk/models/' \
|
|
124
|
+
'transaction_token_list_item_user_data'
|
|
125
|
+
require_relative 'univapay_client_sdk/models/subscription'
|
|
126
|
+
require_relative 'univapay_client_sdk/models/subscription_create_request'
|
|
127
|
+
require_relative 'univapay_client_sdk/models/subscription_schedule_settings'
|
|
128
|
+
require_relative 'univapay_client_sdk/models/subscription_update_request'
|
|
129
|
+
require_relative 'univapay_client_sdk/models/' \
|
|
130
|
+
'subscription_update_schedule_settings'
|
|
131
|
+
require_relative 'univapay_client_sdk/models/subscription_update_next_payment'
|
|
132
|
+
require_relative 'univapay_client_sdk/models/subscription_next_payment'
|
|
133
|
+
require_relative 'univapay_client_sdk/models/subscription_installment_plan'
|
|
134
|
+
require_relative 'univapay_client_sdk/models/subscription_plan_settings'
|
|
135
|
+
require_relative 'univapay_client_sdk/models/subscription_list_item'
|
|
136
|
+
require_relative 'univapay_client_sdk/models/subscription_user_data'
|
|
137
|
+
require_relative 'univapay_client_sdk/models/subscription_list'
|
|
138
|
+
require_relative 'univapay_client_sdk/models/subscription_patch_payment_request'
|
|
139
|
+
require_relative 'univapay_client_sdk/models/subscription_suspend_request'
|
|
140
|
+
require_relative 'univapay_client_sdk/models/subscription_patch_token_request'
|
|
141
|
+
require_relative 'univapay_client_sdk/models/subscription_payment'
|
|
142
|
+
require_relative 'univapay_client_sdk/models/subscription_payment_list'
|
|
143
|
+
require_relative 'univapay_client_sdk/models/refund'
|
|
144
|
+
require_relative 'univapay_client_sdk/models/refund_list'
|
|
145
|
+
require_relative 'univapay_client_sdk/models/refund_create_request'
|
|
146
|
+
require_relative 'univapay_client_sdk/models/refund_update_request'
|
|
147
|
+
require_relative 'univapay_client_sdk/models/cancel'
|
|
148
|
+
require_relative 'univapay_client_sdk/models/cancel_list'
|
|
149
|
+
require_relative 'univapay_client_sdk/models/cancel_create_request'
|
|
150
|
+
require_relative 'univapay_client_sdk/models/cancel_update_request'
|
|
151
|
+
require_relative 'univapay_client_sdk/models/customs_declaration_create_request'
|
|
152
|
+
require_relative 'univapay_client_sdk/models/customs_declaration_patch_request'
|
|
153
|
+
require_relative 'univapay_client_sdk/models/webhook'
|
|
154
|
+
require_relative 'univapay_client_sdk/models/webhook_list'
|
|
155
|
+
require_relative 'univapay_client_sdk/models/webhook_create_request'
|
|
156
|
+
require_relative 'univapay_client_sdk/models/webhook_update_request'
|
|
157
|
+
require_relative 'univapay_client_sdk/models/webhook_event'
|
|
158
|
+
require_relative 'univapay_client_sdk/models/webhook_event_list'
|
|
159
|
+
require_relative 'univapay_client_sdk/models/bank_transfer_status_data'
|
|
160
|
+
require_relative 'univapay_client_sdk/models/merchant_webhook_money_amount'
|
|
161
|
+
require_relative 'univapay_client_sdk/models/' \
|
|
162
|
+
'merchant_webhook_transfer_schedule_configuration'
|
|
163
|
+
require_relative 'univapay_client_sdk/models/' \
|
|
164
|
+
'merchant_webhook_user_transactions_configuration'
|
|
165
|
+
require_relative 'univapay_client_sdk/models/' \
|
|
166
|
+
'merchant_webhook_recurring_cvv_confirmation_config'
|
|
167
|
+
require_relative 'univapay_client_sdk/models/' \
|
|
168
|
+
'merchant_webhook_recurring_token_configuration'
|
|
169
|
+
require_relative 'univapay_client_sdk/models/' \
|
|
170
|
+
'merchant_webhook_limit_charge_by_card_configuration'
|
|
171
|
+
require_relative 'univapay_client_sdk/models/' \
|
|
172
|
+
'merchant_webhook_limit_refund_by_sales_configuration'
|
|
173
|
+
require_relative 'univapay_client_sdk/models/' \
|
|
174
|
+
'merchant_webhook_security_configuration'
|
|
175
|
+
require_relative 'univapay_client_sdk/models/merchant_webhook_checkout_toggle'
|
|
176
|
+
require_relative 'univapay_client_sdk/models/' \
|
|
177
|
+
'merchant_webhook_checkout_configuration'
|
|
178
|
+
require_relative 'univapay_client_sdk/models/' \
|
|
179
|
+
'merchant_webhook_installment_plan_configuration'
|
|
180
|
+
require_relative 'univapay_client_sdk/models/' \
|
|
181
|
+
'merchant_webhook_subscription_plan_configuration'
|
|
182
|
+
require_relative 'univapay_client_sdk/models/' \
|
|
183
|
+
'merchant_webhook_card_brand_percent_fees'
|
|
184
|
+
require_relative 'univapay_client_sdk/models/' \
|
|
185
|
+
'merchant_webhook_card_configuration'
|
|
186
|
+
require_relative 'univapay_client_sdk/models/' \
|
|
187
|
+
'merchant_webhook_qr_scan_configuration'
|
|
188
|
+
require_relative 'univapay_client_sdk/models/' \
|
|
189
|
+
'merchant_webhook_convenience_configuration'
|
|
190
|
+
require_relative 'univapay_client_sdk/models/' \
|
|
191
|
+
'merchant_webhook_paidy_configuration'
|
|
192
|
+
require_relative 'univapay_client_sdk/models/' \
|
|
193
|
+
'merchant_webhook_qr_merchant_configuration'
|
|
194
|
+
require_relative 'univapay_client_sdk/models/' \
|
|
195
|
+
'merchant_webhook_online_configuration'
|
|
196
|
+
require_relative 'univapay_client_sdk/models/' \
|
|
197
|
+
'merchant_webhook_bank_transfer_configuration'
|
|
198
|
+
require_relative 'univapay_client_sdk/models/' \
|
|
199
|
+
'merchant_webhook_subscription_configuration'
|
|
200
|
+
require_relative 'univapay_client_sdk/models/' \
|
|
201
|
+
'merchant_webhook_customer_management_configuration'
|
|
202
|
+
require_relative 'univapay_client_sdk/models/merchant_webhook_configuration'
|
|
203
|
+
require_relative 'univapay_client_sdk/models/merchant'
|
|
204
|
+
require_relative 'univapay_client_sdk/models/store_list_item'
|
|
205
|
+
require_relative 'univapay_client_sdk/models/store_list'
|
|
206
|
+
require_relative 'univapay_client_sdk/models/store'
|
|
207
|
+
require_relative 'univapay_client_sdk/models/' \
|
|
208
|
+
'customs_declaration_webhook_declaration'
|
|
209
|
+
require_relative 'univapay_client_sdk/models/customs_declaration_webhook_result'
|
|
210
|
+
require_relative 'univapay_client_sdk/models/' \
|
|
211
|
+
'customs_declaration_webhook_other_error'
|
|
212
|
+
require_relative 'univapay_client_sdk/models/customs_declaration_webhook_error'
|
|
213
|
+
require_relative 'univapay_client_sdk/models/customs_declaration_webhook_data'
|
|
214
|
+
require_relative 'univapay_client_sdk/models/webhook_callback_envelope'
|
|
215
|
+
require_relative 'univapay_client_sdk/models/refund_webhook_callback_extension'
|
|
216
|
+
require_relative 'univapay_client_sdk/models/refund_webhook_callback'
|
|
217
|
+
require_relative 'univapay_client_sdk/models/cancel_webhook_callback_extension'
|
|
218
|
+
require_relative 'univapay_client_sdk/models/cancel_webhook_callback'
|
|
219
|
+
require_relative 'univapay_client_sdk/models/charge_updated_webhook_callback'
|
|
220
|
+
require_relative 'univapay_client_sdk/models/charge_finished_webhook_callback'
|
|
221
|
+
require_relative 'univapay_client_sdk/models/token_created_webhook_callback'
|
|
222
|
+
require_relative 'univapay_client_sdk/models/token_updated_webhook_callback'
|
|
223
|
+
require_relative 'univapay_client_sdk/models/' \
|
|
224
|
+
'token_three_ds_updated_webhook_callback'
|
|
225
|
+
require_relative 'univapay_client_sdk/models/' \
|
|
226
|
+
'token_cvv_auth_updated_webhook_callback'
|
|
227
|
+
require_relative 'univapay_client_sdk/models/' \
|
|
228
|
+
'token_cvv_auth_check_updated_webhook_callback'
|
|
229
|
+
require_relative 'univapay_client_sdk/models/token_replaced_webhook_callback'
|
|
230
|
+
require_relative 'univapay_client_sdk/models/' \
|
|
231
|
+
'recurring_token_deleted_webhook_callback'
|
|
232
|
+
require_relative 'univapay_client_sdk/models/' \
|
|
233
|
+
'subscription_created_webhook_callback'
|
|
234
|
+
require_relative 'univapay_client_sdk/models/' \
|
|
235
|
+
'subscription_payment_webhook_callback'
|
|
236
|
+
require_relative 'univapay_client_sdk/models/' \
|
|
237
|
+
'subscription_completed_webhook_callback'
|
|
238
|
+
require_relative 'univapay_client_sdk/models/' \
|
|
239
|
+
'subscription_failure_webhook_callback'
|
|
240
|
+
require_relative 'univapay_client_sdk/models/' \
|
|
241
|
+
'subscription_canceled_webhook_callback'
|
|
242
|
+
require_relative 'univapay_client_sdk/models/' \
|
|
243
|
+
'subscription_suspended_webhook_callback'
|
|
244
|
+
require_relative 'univapay_client_sdk/models/' \
|
|
245
|
+
'bank_transfer_status_webhook_callback_extension'
|
|
246
|
+
require_relative 'univapay_client_sdk/models/' \
|
|
247
|
+
'bank_transfer_status_webhook_callback'
|
|
248
|
+
require_relative 'univapay_client_sdk/models/' \
|
|
249
|
+
'customs_declaration_webhook_callback_extension'
|
|
250
|
+
require_relative 'univapay_client_sdk/models/' \
|
|
251
|
+
'customs_declaration_webhook_callback'
|
|
252
|
+
require_relative 'univapay_client_sdk/models/card_processor_installment_config'
|
|
253
|
+
require_relative 'univapay_client_sdk/models/' \
|
|
254
|
+
'restrict_ip_after_failed_charge_config'
|
|
255
|
+
require_relative 'univapay_client_sdk/models/suspend_schedule_settings'
|
|
256
|
+
require_relative 'univapay_client_sdk/models/cursor_direction_query'
|
|
257
|
+
require_relative 'univapay_client_sdk/models/mode_query'
|
|
258
|
+
require_relative 'univapay_client_sdk/models/api_error_status'
|
|
259
|
+
require_relative 'univapay_client_sdk/models/' \
|
|
260
|
+
'charge_create_request_three_ds_mode'
|
|
261
|
+
require_relative 'univapay_client_sdk/models/charge_transaction_token_type'
|
|
262
|
+
require_relative 'univapay_client_sdk/models/charge_status'
|
|
263
|
+
require_relative 'univapay_client_sdk/models/charge_mode'
|
|
264
|
+
require_relative 'univapay_client_sdk/models/' \
|
|
265
|
+
'base_konbini_data_convenience_store'
|
|
266
|
+
require_relative 'univapay_client_sdk/models/base_online_data_brand'
|
|
267
|
+
require_relative 'univapay_client_sdk/models/base_online_data_call_method'
|
|
268
|
+
require_relative 'univapay_client_sdk/models/base_online_data_os_type'
|
|
269
|
+
require_relative 'univapay_client_sdk/models/' \
|
|
270
|
+
'base_online_data_user_identifier_source'
|
|
271
|
+
require_relative 'univapay_client_sdk/models/' \
|
|
272
|
+
'token_response_card_data_three_ds_status'
|
|
273
|
+
require_relative 'univapay_client_sdk/models/' \
|
|
274
|
+
'transaction_token_create_request_payment_type'
|
|
275
|
+
require_relative 'univapay_client_sdk/models/' \
|
|
276
|
+
'transaction_token_create_request_type'
|
|
277
|
+
require_relative 'univapay_client_sdk/models/transaction_token_payment_type'
|
|
278
|
+
require_relative 'univapay_client_sdk/models/transaction_token_mode'
|
|
279
|
+
require_relative 'univapay_client_sdk/models/transaction_token_type'
|
|
280
|
+
require_relative 'univapay_client_sdk/models/issuer_token_payment_type'
|
|
281
|
+
require_relative 'univapay_client_sdk/models/issuer_token_call_method'
|
|
282
|
+
require_relative 'univapay_client_sdk/models/three_ds_issuer_token_payment_type'
|
|
283
|
+
require_relative 'univapay_client_sdk/models/three_ds_issuer_token_call_method'
|
|
284
|
+
require_relative 'univapay_client_sdk/models/' \
|
|
285
|
+
'bank_transfer_ledger_bank_ledger_type'
|
|
286
|
+
require_relative 'univapay_client_sdk/models/bank_transfer_ledger_mode'
|
|
287
|
+
require_relative 'univapay_client_sdk/models/subscription_update_status'
|
|
288
|
+
require_relative 'univapay_client_sdk/models/subscription_terminate_with_status'
|
|
289
|
+
require_relative 'univapay_client_sdk/models/subscription_period'
|
|
290
|
+
require_relative 'univapay_client_sdk/models/subscription_termination_mode'
|
|
291
|
+
require_relative 'univapay_client_sdk/models/subscription_status'
|
|
292
|
+
require_relative 'univapay_client_sdk/models/refund_status'
|
|
293
|
+
require_relative 'univapay_client_sdk/models/refund_reason_request'
|
|
294
|
+
require_relative 'univapay_client_sdk/models/refund_reason_response'
|
|
295
|
+
require_relative 'univapay_client_sdk/models/cancel_status'
|
|
296
|
+
require_relative 'univapay_client_sdk/models/webhook_trigger'
|
|
297
|
+
require_relative 'univapay_client_sdk/models/bank_transfer_payment_status'
|
|
298
|
+
require_relative 'univapay_client_sdk/models/customs_declaration_webhook_status'
|
|
299
|
+
require_relative 'univapay_client_sdk/models/bank_transfer_event'
|
|
300
|
+
require_relative 'univapay_client_sdk/models/cancel_event'
|
|
301
|
+
require_relative 'univapay_client_sdk/models/customs_declaration_event'
|
|
302
|
+
require_relative 'univapay_client_sdk/models/installment_fixed_cycles'
|
|
303
|
+
require_relative 'univapay_client_sdk/models/installment_plan_type'
|
|
304
|
+
require_relative 'univapay_client_sdk/models/plan_settings_type'
|
|
305
|
+
require_relative 'univapay_client_sdk/models/refund_event'
|
|
306
|
+
|
|
307
|
+
# Exceptions
|
|
308
|
+
require_relative 'univapay_client_sdk/exceptions/api_exception'
|
|
309
|
+
require_relative 'univapay_client_sdk/exceptions/api_error_exception'
|
|
310
|
+
|
|
311
|
+
require_relative 'univapay_client_sdk/configuration'
|
|
312
|
+
|
|
313
|
+
# Controllers
|
|
314
|
+
require_relative 'univapay_client_sdk/apis/base_api'
|
|
315
|
+
require_relative 'univapay_client_sdk/apis/charges_api'
|
|
316
|
+
require_relative 'univapay_client_sdk/apis/transaction_tokens_api'
|
|
317
|
+
require_relative 'univapay_client_sdk/apis/refunds_api'
|
|
318
|
+
require_relative 'univapay_client_sdk/apis/subscriptions_api'
|
|
319
|
+
require_relative 'univapay_client_sdk/apis/cancels_api'
|
|
320
|
+
require_relative 'univapay_client_sdk/apis/merchants_api'
|
|
321
|
+
require_relative 'univapay_client_sdk/apis/stores_api'
|
|
322
|
+
require_relative 'univapay_client_sdk/apis/webhooks_api'
|
|
@@ -0,0 +1,23 @@
|
|
|
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 'json'
|
|
7
|
+
require 'minitest/autorun'
|
|
8
|
+
require 'minitest/hell'
|
|
9
|
+
require 'minitest/pride'
|
|
10
|
+
require 'minitest/proveit'
|
|
11
|
+
require 'univapay_client_sdk'
|
|
12
|
+
require_relative '../http_response_catcher'
|
|
13
|
+
|
|
14
|
+
class ApiTestBase < Minitest::Test
|
|
15
|
+
parallelize_me!
|
|
16
|
+
include UnivapayClientSdk
|
|
17
|
+
include CoreLibrary
|
|
18
|
+
|
|
19
|
+
# Initializes the base test controller
|
|
20
|
+
def setup_class
|
|
21
|
+
@client = Client.from_env(http_callback: HttpResponseCatcher.new)
|
|
22
|
+
end
|
|
23
|
+
end
|