univapay-client-sdk 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/LICENSE +28 -0
- data/README.md +212 -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 +909 -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 +128 -0
- data/lib/univapay_client_sdk/configuration.rb +179 -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_handler.rb +37 -0
- data/lib/univapay_client_sdk/events/webhooks/customs_handler.rb +37 -0
- data/lib/univapay_client_sdk/events/webhooks/refund_handler.rb +37 -0
- data/lib/univapay_client_sdk/events/webhooks/subscription_handler.rb +37 -0
- data/lib/univapay_client_sdk/events/webhooks/token_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/extensions.rb +127 -0
- data/lib/univapay_client_sdk/http/api_response.rb +19 -0
- data/lib/univapay_client_sdk/http/auth/oauth_2.rb +58 -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_event.rb +36 -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_webhook_event.rb +138 -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/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_create_request.rb +216 -0
- data/lib/univapay_client_sdk/models/subscription_event.rb +54 -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_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_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/subscription_webhook_event.rb +143 -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 +230 -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 +146 -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_event.rb +59 -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_webhook_event.rb +144 -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 +182 -0
- data/lib/univapay_client_sdk.rb +285 -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 +565 -0
- data/test/apis/test_error_messages.rb +38 -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_handler.rb +138 -0
- data/test/events/webhooks/test_customs_handler.rb +100 -0
- data/test/events/webhooks/test_refund_handler.rb +95 -0
- data/test/events/webhooks/test_subscription_handler.rb +346 -0
- data/test/events/webhooks/test_token_handler.rb +332 -0
- data/test/framework_integrations/rails_app_test_helper.rb +14 -0
- data/test/framework_integrations/webhooks/apps/hanami_charge_app.rb +61 -0
- data/test/framework_integrations/webhooks/apps/rails_charge_app.rb +24 -0
- data/test/framework_integrations/webhooks/apps/sinatra_charge_app.rb +27 -0
- data/test/framework_integrations/webhooks/test/test_hanami_charge_app.rb +57 -0
- data/test/framework_integrations/webhooks/test/test_rails_charge_app.rb +57 -0
- data/test/framework_integrations/webhooks/test/test_sinatra_charge_app.rb +58 -0
- data/test/http_response_catcher.rb +32 -0
- metadata +366 -0
|
@@ -0,0 +1,301 @@
|
|
|
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
|
+
# Card payment settings.
|
|
8
|
+
class MerchantWebhookCardConfiguration < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# Enables card payments.
|
|
13
|
+
# @return [TrueClass | FalseClass]
|
|
14
|
+
attr_accessor :enabled
|
|
15
|
+
|
|
16
|
+
# Allows debit cards for payment flows.
|
|
17
|
+
# @return [TrueClass | FalseClass]
|
|
18
|
+
attr_accessor :debit_enabled
|
|
19
|
+
|
|
20
|
+
# Allows prepaid cards for payment flows.
|
|
21
|
+
# @return [TrueClass | FalseClass]
|
|
22
|
+
attr_accessor :prepaid_enabled
|
|
23
|
+
|
|
24
|
+
# Allows authorization-only flows for debit cards.
|
|
25
|
+
# @return [TrueClass | FalseClass]
|
|
26
|
+
attr_accessor :debit_authorization_enabled
|
|
27
|
+
|
|
28
|
+
# Allows authorization-only flows for prepaid cards.
|
|
29
|
+
# @return [TrueClass | FalseClass]
|
|
30
|
+
attr_accessor :prepaid_authorization_enabled
|
|
31
|
+
|
|
32
|
+
# Card brands rejected by merchant policy.
|
|
33
|
+
# @return [Array[String]]
|
|
34
|
+
attr_accessor :forbidden_card_brands
|
|
35
|
+
|
|
36
|
+
# Source IP country codes allowed for card payments.
|
|
37
|
+
# @return [Array[String]]
|
|
38
|
+
attr_accessor :allowed_countries_by_ip
|
|
39
|
+
|
|
40
|
+
# Allows cards issued outside the primary operating country.
|
|
41
|
+
# @return [TrueClass | FalseClass]
|
|
42
|
+
attr_accessor :foreign_cards_allowed
|
|
43
|
+
|
|
44
|
+
# Rejects card charges from previously unseen customer email addresses.
|
|
45
|
+
# @return [TrueClass | FalseClass]
|
|
46
|
+
attr_accessor :fail_on_new_email
|
|
47
|
+
|
|
48
|
+
# Maximum number of cards allowed per customer context.
|
|
49
|
+
# @return [Integer]
|
|
50
|
+
attr_accessor :card_limit
|
|
51
|
+
|
|
52
|
+
# Allows card flows without providing a CVV.
|
|
53
|
+
# @return [TrueClass | FalseClass]
|
|
54
|
+
attr_accessor :allow_empty_cvv
|
|
55
|
+
|
|
56
|
+
# Limits card processing to direct-settlement currencies only.
|
|
57
|
+
# @return [TrueClass | FalseClass]
|
|
58
|
+
attr_accessor :only_direct_currency
|
|
59
|
+
|
|
60
|
+
# Requires 3-D Secure for eligible card flows.
|
|
61
|
+
# @return [TrueClass | FalseClass]
|
|
62
|
+
attr_accessor :three_ds_required
|
|
63
|
+
|
|
64
|
+
# Requires billing address data when running 3-D Secure.
|
|
65
|
+
# @return [TrueClass | FalseClass]
|
|
66
|
+
attr_accessor :three_ds_address_required
|
|
67
|
+
|
|
68
|
+
# Allows privileged callers to request 3-D Secure skip mode.
|
|
69
|
+
# @return [TrueClass | FalseClass]
|
|
70
|
+
attr_accessor :three_ds_skip_enabled
|
|
71
|
+
|
|
72
|
+
# Allows direct card token creation without hosted capture flows.
|
|
73
|
+
# @return [TrueClass | FalseClass]
|
|
74
|
+
attr_accessor :allow_direct_token_creation
|
|
75
|
+
|
|
76
|
+
# Requires a phone number when running 3-D Secure.
|
|
77
|
+
# @return [TrueClass | FalseClass]
|
|
78
|
+
attr_accessor :three_ds_phone_number_required
|
|
79
|
+
|
|
80
|
+
# A mapping from model property names to API property names.
|
|
81
|
+
def self.names
|
|
82
|
+
@_hash = {} if @_hash.nil?
|
|
83
|
+
@_hash['enabled'] = 'enabled'
|
|
84
|
+
@_hash['debit_enabled'] = 'debit_enabled'
|
|
85
|
+
@_hash['prepaid_enabled'] = 'prepaid_enabled'
|
|
86
|
+
@_hash['debit_authorization_enabled'] = 'debit_authorization_enabled'
|
|
87
|
+
@_hash['prepaid_authorization_enabled'] =
|
|
88
|
+
'prepaid_authorization_enabled'
|
|
89
|
+
@_hash['forbidden_card_brands'] = 'forbidden_card_brands'
|
|
90
|
+
@_hash['allowed_countries_by_ip'] = 'allowed_countries_by_ip'
|
|
91
|
+
@_hash['foreign_cards_allowed'] = 'foreign_cards_allowed'
|
|
92
|
+
@_hash['fail_on_new_email'] = 'fail_on_new_email'
|
|
93
|
+
@_hash['card_limit'] = 'card_limit'
|
|
94
|
+
@_hash['allow_empty_cvv'] = 'allow_empty_cvv'
|
|
95
|
+
@_hash['only_direct_currency'] = 'only_direct_currency'
|
|
96
|
+
@_hash['three_ds_required'] = 'three_ds_required'
|
|
97
|
+
@_hash['three_ds_address_required'] = 'three_ds_address_required'
|
|
98
|
+
@_hash['three_ds_skip_enabled'] = 'three_ds_skip_enabled'
|
|
99
|
+
@_hash['allow_direct_token_creation'] = 'allow_direct_token_creation'
|
|
100
|
+
@_hash['three_ds_phone_number_required'] =
|
|
101
|
+
'three_ds_phone_number_required'
|
|
102
|
+
@_hash
|
|
103
|
+
end
|
|
104
|
+
|
|
105
|
+
# An array for optional fields
|
|
106
|
+
def self.optionals
|
|
107
|
+
%w[
|
|
108
|
+
enabled
|
|
109
|
+
debit_enabled
|
|
110
|
+
prepaid_enabled
|
|
111
|
+
debit_authorization_enabled
|
|
112
|
+
prepaid_authorization_enabled
|
|
113
|
+
forbidden_card_brands
|
|
114
|
+
allowed_countries_by_ip
|
|
115
|
+
foreign_cards_allowed
|
|
116
|
+
fail_on_new_email
|
|
117
|
+
card_limit
|
|
118
|
+
allow_empty_cvv
|
|
119
|
+
only_direct_currency
|
|
120
|
+
three_ds_required
|
|
121
|
+
three_ds_address_required
|
|
122
|
+
three_ds_skip_enabled
|
|
123
|
+
allow_direct_token_creation
|
|
124
|
+
three_ds_phone_number_required
|
|
125
|
+
]
|
|
126
|
+
end
|
|
127
|
+
|
|
128
|
+
# An array for nullable fields
|
|
129
|
+
def self.nullables
|
|
130
|
+
%w[
|
|
131
|
+
enabled
|
|
132
|
+
debit_enabled
|
|
133
|
+
prepaid_enabled
|
|
134
|
+
debit_authorization_enabled
|
|
135
|
+
prepaid_authorization_enabled
|
|
136
|
+
forbidden_card_brands
|
|
137
|
+
allowed_countries_by_ip
|
|
138
|
+
foreign_cards_allowed
|
|
139
|
+
fail_on_new_email
|
|
140
|
+
card_limit
|
|
141
|
+
allow_empty_cvv
|
|
142
|
+
only_direct_currency
|
|
143
|
+
three_ds_required
|
|
144
|
+
three_ds_address_required
|
|
145
|
+
three_ds_skip_enabled
|
|
146
|
+
allow_direct_token_creation
|
|
147
|
+
three_ds_phone_number_required
|
|
148
|
+
]
|
|
149
|
+
end
|
|
150
|
+
|
|
151
|
+
def initialize(enabled: SKIP, debit_enabled: SKIP, prepaid_enabled: SKIP,
|
|
152
|
+
debit_authorization_enabled: SKIP,
|
|
153
|
+
prepaid_authorization_enabled: SKIP,
|
|
154
|
+
forbidden_card_brands: SKIP, allowed_countries_by_ip: SKIP,
|
|
155
|
+
foreign_cards_allowed: SKIP, fail_on_new_email: SKIP,
|
|
156
|
+
card_limit: SKIP, allow_empty_cvv: SKIP,
|
|
157
|
+
only_direct_currency: SKIP, three_ds_required: SKIP,
|
|
158
|
+
three_ds_address_required: SKIP, three_ds_skip_enabled: SKIP,
|
|
159
|
+
allow_direct_token_creation: SKIP,
|
|
160
|
+
three_ds_phone_number_required: SKIP,
|
|
161
|
+
additional_properties: nil)
|
|
162
|
+
# Add additional model properties to the instance
|
|
163
|
+
additional_properties = {} if additional_properties.nil?
|
|
164
|
+
|
|
165
|
+
@enabled = enabled unless enabled == SKIP
|
|
166
|
+
@debit_enabled = debit_enabled unless debit_enabled == SKIP
|
|
167
|
+
@prepaid_enabled = prepaid_enabled unless prepaid_enabled == SKIP
|
|
168
|
+
unless debit_authorization_enabled == SKIP
|
|
169
|
+
@debit_authorization_enabled =
|
|
170
|
+
debit_authorization_enabled
|
|
171
|
+
end
|
|
172
|
+
unless prepaid_authorization_enabled == SKIP
|
|
173
|
+
@prepaid_authorization_enabled =
|
|
174
|
+
prepaid_authorization_enabled
|
|
175
|
+
end
|
|
176
|
+
@forbidden_card_brands = forbidden_card_brands unless forbidden_card_brands == SKIP
|
|
177
|
+
@allowed_countries_by_ip = allowed_countries_by_ip unless allowed_countries_by_ip == SKIP
|
|
178
|
+
@foreign_cards_allowed = foreign_cards_allowed unless foreign_cards_allowed == SKIP
|
|
179
|
+
@fail_on_new_email = fail_on_new_email unless fail_on_new_email == SKIP
|
|
180
|
+
@card_limit = card_limit unless card_limit == SKIP
|
|
181
|
+
@allow_empty_cvv = allow_empty_cvv unless allow_empty_cvv == SKIP
|
|
182
|
+
@only_direct_currency = only_direct_currency unless only_direct_currency == SKIP
|
|
183
|
+
@three_ds_required = three_ds_required unless three_ds_required == SKIP
|
|
184
|
+
unless three_ds_address_required == SKIP
|
|
185
|
+
@three_ds_address_required =
|
|
186
|
+
three_ds_address_required
|
|
187
|
+
end
|
|
188
|
+
@three_ds_skip_enabled = three_ds_skip_enabled unless three_ds_skip_enabled == SKIP
|
|
189
|
+
unless allow_direct_token_creation == SKIP
|
|
190
|
+
@allow_direct_token_creation =
|
|
191
|
+
allow_direct_token_creation
|
|
192
|
+
end
|
|
193
|
+
unless three_ds_phone_number_required == SKIP
|
|
194
|
+
@three_ds_phone_number_required =
|
|
195
|
+
three_ds_phone_number_required
|
|
196
|
+
end
|
|
197
|
+
@additional_properties = additional_properties
|
|
198
|
+
end
|
|
199
|
+
|
|
200
|
+
# Creates an instance of the object from a hash.
|
|
201
|
+
def self.from_hash(hash)
|
|
202
|
+
return nil unless hash
|
|
203
|
+
|
|
204
|
+
# Extract variables from the hash.
|
|
205
|
+
enabled = hash.key?('enabled') ? hash['enabled'] : SKIP
|
|
206
|
+
debit_enabled = hash.key?('debit_enabled') ? hash['debit_enabled'] : SKIP
|
|
207
|
+
prepaid_enabled =
|
|
208
|
+
hash.key?('prepaid_enabled') ? hash['prepaid_enabled'] : SKIP
|
|
209
|
+
debit_authorization_enabled =
|
|
210
|
+
hash.key?('debit_authorization_enabled') ? hash['debit_authorization_enabled'] : SKIP
|
|
211
|
+
prepaid_authorization_enabled =
|
|
212
|
+
hash.key?('prepaid_authorization_enabled') ? hash['prepaid_authorization_enabled'] : SKIP
|
|
213
|
+
forbidden_card_brands =
|
|
214
|
+
hash.key?('forbidden_card_brands') ? hash['forbidden_card_brands'] : SKIP
|
|
215
|
+
allowed_countries_by_ip =
|
|
216
|
+
hash.key?('allowed_countries_by_ip') ? hash['allowed_countries_by_ip'] : SKIP
|
|
217
|
+
foreign_cards_allowed =
|
|
218
|
+
hash.key?('foreign_cards_allowed') ? hash['foreign_cards_allowed'] : SKIP
|
|
219
|
+
fail_on_new_email =
|
|
220
|
+
hash.key?('fail_on_new_email') ? hash['fail_on_new_email'] : SKIP
|
|
221
|
+
card_limit = hash.key?('card_limit') ? hash['card_limit'] : SKIP
|
|
222
|
+
allow_empty_cvv =
|
|
223
|
+
hash.key?('allow_empty_cvv') ? hash['allow_empty_cvv'] : SKIP
|
|
224
|
+
only_direct_currency =
|
|
225
|
+
hash.key?('only_direct_currency') ? hash['only_direct_currency'] : SKIP
|
|
226
|
+
three_ds_required =
|
|
227
|
+
hash.key?('three_ds_required') ? hash['three_ds_required'] : SKIP
|
|
228
|
+
three_ds_address_required =
|
|
229
|
+
hash.key?('three_ds_address_required') ? hash['three_ds_address_required'] : SKIP
|
|
230
|
+
three_ds_skip_enabled =
|
|
231
|
+
hash.key?('three_ds_skip_enabled') ? hash['three_ds_skip_enabled'] : SKIP
|
|
232
|
+
allow_direct_token_creation =
|
|
233
|
+
hash.key?('allow_direct_token_creation') ? hash['allow_direct_token_creation'] : SKIP
|
|
234
|
+
three_ds_phone_number_required =
|
|
235
|
+
hash.key?('three_ds_phone_number_required') ? hash['three_ds_phone_number_required'] : SKIP
|
|
236
|
+
|
|
237
|
+
# Create a new hash for additional properties, removing known properties.
|
|
238
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
239
|
+
|
|
240
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
241
|
+
new_hash, proc { |value| value }
|
|
242
|
+
)
|
|
243
|
+
|
|
244
|
+
# Create object from extracted values.
|
|
245
|
+
MerchantWebhookCardConfiguration.new(enabled: enabled,
|
|
246
|
+
debit_enabled: debit_enabled,
|
|
247
|
+
prepaid_enabled: prepaid_enabled,
|
|
248
|
+
debit_authorization_enabled: debit_authorization_enabled,
|
|
249
|
+
prepaid_authorization_enabled: prepaid_authorization_enabled,
|
|
250
|
+
forbidden_card_brands: forbidden_card_brands,
|
|
251
|
+
allowed_countries_by_ip: allowed_countries_by_ip,
|
|
252
|
+
foreign_cards_allowed: foreign_cards_allowed,
|
|
253
|
+
fail_on_new_email: fail_on_new_email,
|
|
254
|
+
card_limit: card_limit,
|
|
255
|
+
allow_empty_cvv: allow_empty_cvv,
|
|
256
|
+
only_direct_currency: only_direct_currency,
|
|
257
|
+
three_ds_required: three_ds_required,
|
|
258
|
+
three_ds_address_required: three_ds_address_required,
|
|
259
|
+
three_ds_skip_enabled: three_ds_skip_enabled,
|
|
260
|
+
allow_direct_token_creation: allow_direct_token_creation,
|
|
261
|
+
three_ds_phone_number_required: three_ds_phone_number_required,
|
|
262
|
+
additional_properties: additional_properties)
|
|
263
|
+
end
|
|
264
|
+
|
|
265
|
+
# Provides a human-readable string representation of the object.
|
|
266
|
+
def to_s
|
|
267
|
+
class_name = self.class.name.split('::').last
|
|
268
|
+
"<#{class_name} enabled: #{@enabled}, debit_enabled: #{@debit_enabled}, prepaid_enabled:"\
|
|
269
|
+
" #{@prepaid_enabled}, debit_authorization_enabled: #{@debit_authorization_enabled},"\
|
|
270
|
+
" prepaid_authorization_enabled: #{@prepaid_authorization_enabled}, forbidden_card_brands:"\
|
|
271
|
+
" #{@forbidden_card_brands}, allowed_countries_by_ip: #{@allowed_countries_by_ip},"\
|
|
272
|
+
" foreign_cards_allowed: #{@foreign_cards_allowed}, fail_on_new_email:"\
|
|
273
|
+
" #{@fail_on_new_email}, card_limit: #{@card_limit}, allow_empty_cvv: #{@allow_empty_cvv},"\
|
|
274
|
+
" only_direct_currency: #{@only_direct_currency}, three_ds_required: #{@three_ds_required},"\
|
|
275
|
+
" three_ds_address_required: #{@three_ds_address_required}, three_ds_skip_enabled:"\
|
|
276
|
+
" #{@three_ds_skip_enabled}, allow_direct_token_creation: #{@allow_direct_token_creation},"\
|
|
277
|
+
" three_ds_phone_number_required: #{@three_ds_phone_number_required}, additional_properties:"\
|
|
278
|
+
" #{@additional_properties}>"
|
|
279
|
+
end
|
|
280
|
+
|
|
281
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
282
|
+
def inspect
|
|
283
|
+
class_name = self.class.name.split('::').last
|
|
284
|
+
"<#{class_name} enabled: #{@enabled.inspect}, debit_enabled: #{@debit_enabled.inspect},"\
|
|
285
|
+
" prepaid_enabled: #{@prepaid_enabled.inspect}, debit_authorization_enabled:"\
|
|
286
|
+
" #{@debit_authorization_enabled.inspect}, prepaid_authorization_enabled:"\
|
|
287
|
+
" #{@prepaid_authorization_enabled.inspect}, forbidden_card_brands:"\
|
|
288
|
+
" #{@forbidden_card_brands.inspect}, allowed_countries_by_ip:"\
|
|
289
|
+
" #{@allowed_countries_by_ip.inspect}, foreign_cards_allowed:"\
|
|
290
|
+
" #{@foreign_cards_allowed.inspect}, fail_on_new_email: #{@fail_on_new_email.inspect},"\
|
|
291
|
+
" card_limit: #{@card_limit.inspect}, allow_empty_cvv: #{@allow_empty_cvv.inspect},"\
|
|
292
|
+
" only_direct_currency: #{@only_direct_currency.inspect}, three_ds_required:"\
|
|
293
|
+
" #{@three_ds_required.inspect}, three_ds_address_required:"\
|
|
294
|
+
" #{@three_ds_address_required.inspect}, three_ds_skip_enabled:"\
|
|
295
|
+
" #{@three_ds_skip_enabled.inspect}, allow_direct_token_creation:"\
|
|
296
|
+
" #{@allow_direct_token_creation.inspect}, three_ds_phone_number_required:"\
|
|
297
|
+
" #{@three_ds_phone_number_required.inspect}, additional_properties:"\
|
|
298
|
+
" #{@additional_properties}>"
|
|
299
|
+
end
|
|
300
|
+
end
|
|
301
|
+
end
|
|
@@ -0,0 +1,87 @@
|
|
|
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
|
+
# Checkout field collection settings.
|
|
8
|
+
class MerchantWebhookCheckoutConfiguration < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# Checkout feature toggle.
|
|
13
|
+
# @return [MerchantWebhookCheckoutToggle]
|
|
14
|
+
attr_accessor :ec_email
|
|
15
|
+
|
|
16
|
+
# Checkout feature toggle.
|
|
17
|
+
# @return [MerchantWebhookCheckoutToggle]
|
|
18
|
+
attr_accessor :ec_products
|
|
19
|
+
|
|
20
|
+
# A mapping from model property names to API property names.
|
|
21
|
+
def self.names
|
|
22
|
+
@_hash = {} if @_hash.nil?
|
|
23
|
+
@_hash['ec_email'] = 'ec_email'
|
|
24
|
+
@_hash['ec_products'] = 'ec_products'
|
|
25
|
+
@_hash
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
# An array for optional fields
|
|
29
|
+
def self.optionals
|
|
30
|
+
%w[
|
|
31
|
+
ec_email
|
|
32
|
+
ec_products
|
|
33
|
+
]
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
# An array for nullable fields
|
|
37
|
+
def self.nullables
|
|
38
|
+
[]
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
def initialize(ec_email: SKIP, ec_products: SKIP,
|
|
42
|
+
additional_properties: nil)
|
|
43
|
+
# Add additional model properties to the instance
|
|
44
|
+
additional_properties = {} if additional_properties.nil?
|
|
45
|
+
|
|
46
|
+
@ec_email = ec_email unless ec_email == SKIP
|
|
47
|
+
@ec_products = ec_products unless ec_products == SKIP
|
|
48
|
+
@additional_properties = additional_properties
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
# Creates an instance of the object from a hash.
|
|
52
|
+
def self.from_hash(hash)
|
|
53
|
+
return nil unless hash
|
|
54
|
+
|
|
55
|
+
# Extract variables from the hash.
|
|
56
|
+
ec_email = MerchantWebhookCheckoutToggle.from_hash(hash['ec_email']) if hash['ec_email']
|
|
57
|
+
ec_products = MerchantWebhookCheckoutToggle.from_hash(hash['ec_products']) if
|
|
58
|
+
hash['ec_products']
|
|
59
|
+
|
|
60
|
+
# Create a new hash for additional properties, removing known properties.
|
|
61
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
62
|
+
|
|
63
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
64
|
+
new_hash, proc { |value| value }
|
|
65
|
+
)
|
|
66
|
+
|
|
67
|
+
# Create object from extracted values.
|
|
68
|
+
MerchantWebhookCheckoutConfiguration.new(ec_email: ec_email,
|
|
69
|
+
ec_products: ec_products,
|
|
70
|
+
additional_properties: additional_properties)
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
# Provides a human-readable string representation of the object.
|
|
74
|
+
def to_s
|
|
75
|
+
class_name = self.class.name.split('::').last
|
|
76
|
+
"<#{class_name} ec_email: #{@ec_email}, ec_products: #{@ec_products},"\
|
|
77
|
+
" additional_properties: #{@additional_properties}>"
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
81
|
+
def inspect
|
|
82
|
+
class_name = self.class.name.split('::').last
|
|
83
|
+
"<#{class_name} ec_email: #{@ec_email.inspect}, ec_products: #{@ec_products.inspect},"\
|
|
84
|
+
" additional_properties: #{@additional_properties}>"
|
|
85
|
+
end
|
|
86
|
+
end
|
|
87
|
+
end
|
|
@@ -0,0 +1,77 @@
|
|
|
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
|
+
# Checkout feature toggle.
|
|
8
|
+
class MerchantWebhookCheckoutToggle < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# Enables this checkout field in hosted payment flows.
|
|
13
|
+
# @return [TrueClass | FalseClass]
|
|
14
|
+
attr_accessor :enabled
|
|
15
|
+
|
|
16
|
+
# A mapping from model property names to API property names.
|
|
17
|
+
def self.names
|
|
18
|
+
@_hash = {} if @_hash.nil?
|
|
19
|
+
@_hash['enabled'] = 'enabled'
|
|
20
|
+
@_hash
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
# An array for optional fields
|
|
24
|
+
def self.optionals
|
|
25
|
+
%w[
|
|
26
|
+
enabled
|
|
27
|
+
]
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
# An array for nullable fields
|
|
31
|
+
def self.nullables
|
|
32
|
+
%w[
|
|
33
|
+
enabled
|
|
34
|
+
]
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
def initialize(enabled: SKIP, additional_properties: nil)
|
|
38
|
+
# Add additional model properties to the instance
|
|
39
|
+
additional_properties = {} if additional_properties.nil?
|
|
40
|
+
|
|
41
|
+
@enabled = enabled unless enabled == SKIP
|
|
42
|
+
@additional_properties = additional_properties
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
# Creates an instance of the object from a hash.
|
|
46
|
+
def self.from_hash(hash)
|
|
47
|
+
return nil unless hash
|
|
48
|
+
|
|
49
|
+
# Extract variables from the hash.
|
|
50
|
+
enabled = hash.key?('enabled') ? hash['enabled'] : SKIP
|
|
51
|
+
|
|
52
|
+
# Create a new hash for additional properties, removing known properties.
|
|
53
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
54
|
+
|
|
55
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
56
|
+
new_hash, proc { |value| value }
|
|
57
|
+
)
|
|
58
|
+
|
|
59
|
+
# Create object from extracted values.
|
|
60
|
+
MerchantWebhookCheckoutToggle.new(enabled: enabled,
|
|
61
|
+
additional_properties: additional_properties)
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
# Provides a human-readable string representation of the object.
|
|
65
|
+
def to_s
|
|
66
|
+
class_name = self.class.name.split('::').last
|
|
67
|
+
"<#{class_name} enabled: #{@enabled}, additional_properties: #{@additional_properties}>"
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
71
|
+
def inspect
|
|
72
|
+
class_name = self.class.name.split('::').last
|
|
73
|
+
"<#{class_name} enabled: #{@enabled.inspect}, additional_properties:"\
|
|
74
|
+
" #{@additional_properties}>"
|
|
75
|
+
end
|
|
76
|
+
end
|
|
77
|
+
end
|