pq-api-matic-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 +208 -0
- data/bin/console +15 -0
- data/lib/pay_quicker_sdk/api_helper.rb +10 -0
- data/lib/pay_quicker_sdk/client.rb +205 -0
- data/lib/pay_quicker_sdk/configuration.rb +229 -0
- data/lib/pay_quicker_sdk/controllers/agreements_controller.rb +129 -0
- data/lib/pay_quicker_sdk/controllers/balances_controller.rb +156 -0
- data/lib/pay_quicker_sdk/controllers/bank_accounts_controller.rb +587 -0
- data/lib/pay_quicker_sdk/controllers/base_controller.rb +60 -0
- data/lib/pay_quicker_sdk/controllers/client_side_controller.rb +237 -0
- data/lib/pay_quicker_sdk/controllers/compliance_controller.rb +77 -0
- data/lib/pay_quicker_sdk/controllers/documents_controller.rb +233 -0
- data/lib/pay_quicker_sdk/controllers/electronic_wallets_controller.rb +280 -0
- data/lib/pay_quicker_sdk/controllers/events_controller.rb +75 -0
- data/lib/pay_quicker_sdk/controllers/invitations_controller.rb +179 -0
- data/lib/pay_quicker_sdk/controllers/jobs_controller.rb +154 -0
- data/lib/pay_quicker_sdk/controllers/o_auth_authorization_controller.rb +43 -0
- data/lib/pay_quicker_sdk/controllers/payments_controller.rb +217 -0
- data/lib/pay_quicker_sdk/controllers/prepaid_cards_controller.rb +262 -0
- data/lib/pay_quicker_sdk/controllers/program_controller.rb +88 -0
- data/lib/pay_quicker_sdk/controllers/receipts_controller.rb +287 -0
- data/lib/pay_quicker_sdk/controllers/spendback_controller.rb +201 -0
- data/lib/pay_quicker_sdk/controllers/spendback_refunds_controller.rb +232 -0
- data/lib/pay_quicker_sdk/controllers/statements_controller.rb +197 -0
- data/lib/pay_quicker_sdk/controllers/transfers_controller.rb +259 -0
- data/lib/pay_quicker_sdk/controllers/users_controller.rb +151 -0
- data/lib/pay_quicker_sdk/controllers/webhooks_controller.rb +173 -0
- data/lib/pay_quicker_sdk/exceptions/api_error_result_exception.rb +80 -0
- data/lib/pay_quicker_sdk/exceptions/api_exception.rb +21 -0
- data/lib/pay_quicker_sdk/exceptions/o_auth_provider_exception.rb +64 -0
- data/lib/pay_quicker_sdk/http/auth/clientside.rb +53 -0
- data/lib/pay_quicker_sdk/http/auth/server.rb +156 -0
- data/lib/pay_quicker_sdk/http/http_call_back.rb +10 -0
- data/lib/pay_quicker_sdk/http/http_method_enum.rb +10 -0
- data/lib/pay_quicker_sdk/http/http_request.rb +10 -0
- data/lib/pay_quicker_sdk/http/http_response.rb +10 -0
- data/lib/pay_quicker_sdk/http/proxy_settings.rb +22 -0
- data/lib/pay_quicker_sdk/logging/configuration/api_logging_configuration.rb +186 -0
- data/lib/pay_quicker_sdk/logging/sdk_logger.rb +17 -0
- data/lib/pay_quicker_sdk/models/addresses.rb +45 -0
- data/lib/pay_quicker_sdk/models/agreement_list_result_json.rb +106 -0
- data/lib/pay_quicker_sdk/models/agreement_object.rb +120 -0
- data/lib/pay_quicker_sdk/models/agreement_result.rb +130 -0
- data/lib/pay_quicker_sdk/models/agreement_types.rb +64 -0
- data/lib/pay_quicker_sdk/models/authorization_list_result.rb +106 -0
- data/lib/pay_quicker_sdk/models/authorization_object.rb +194 -0
- data/lib/pay_quicker_sdk/models/balance_list_result.rb +106 -0
- data/lib/pay_quicker_sdk/models/balance_object.rb +118 -0
- data/lib/pay_quicker_sdk/models/balance_result.rb +128 -0
- data/lib/pay_quicker_sdk/models/bank_account_address.rb +132 -0
- data/lib/pay_quicker_sdk/models/bank_account_field.rb +83 -0
- data/lib/pay_quicker_sdk/models/bank_account_fields.rb +195 -0
- data/lib/pay_quicker_sdk/models/bank_account_list_result.rb +106 -0
- data/lib/pay_quicker_sdk/models/bank_account_object.rb +226 -0
- data/lib/pay_quicker_sdk/models/bank_account_ownership.rb +36 -0
- data/lib/pay_quicker_sdk/models/bank_account_required_fields.rb +125 -0
- data/lib/pay_quicker_sdk/models/bank_account_requirement.rb +142 -0
- data/lib/pay_quicker_sdk/models/bank_account_requirement_format.rb +93 -0
- data/lib/pay_quicker_sdk/models/bank_account_requirement_format_legend.rb +93 -0
- data/lib/pay_quicker_sdk/models/bank_account_requirement_list_result.rb +110 -0
- data/lib/pay_quicker_sdk/models/bank_account_requirement_validator.rb +86 -0
- data/lib/pay_quicker_sdk/models/bank_account_result.rb +234 -0
- data/lib/pay_quicker_sdk/models/bank_account_statuses.rb +49 -0
- data/lib/pay_quicker_sdk/models/bank_account_types.rb +47 -0
- data/lib/pay_quicker_sdk/models/bank_types.rb +68 -0
- data/lib/pay_quicker_sdk/models/base_model.rb +122 -0
- data/lib/pay_quicker_sdk/models/business_contact_roles.rb +44 -0
- data/lib/pay_quicker_sdk/models/card_networks.rb +36 -0
- data/lib/pay_quicker_sdk/models/card_processors.rb +52 -0
- data/lib/pay_quicker_sdk/models/category_types.rb +36 -0
- data/lib/pay_quicker_sdk/models/countries.rb +1031 -0
- data/lib/pay_quicker_sdk/models/countries_alpha_code3.rb +1028 -0
- data/lib/pay_quicker_sdk/models/create_invitation.rb +614 -0
- data/lib/pay_quicker_sdk/models/create_or_update_bank_account.rb +163 -0
- data/lib/pay_quicker_sdk/models/create_or_update_document.rb +82 -0
- data/lib/pay_quicker_sdk/models/create_or_update_document_fields.rb +81 -0
- data/lib/pay_quicker_sdk/models/create_or_update_electronic_wallet.rb +126 -0
- data/lib/pay_quicker_sdk/models/create_or_update_user.rb +614 -0
- data/lib/pay_quicker_sdk/models/create_spendback_refund_quote.rb +173 -0
- data/lib/pay_quicker_sdk/models/create_webhook_request.rb +82 -0
- data/lib/pay_quicker_sdk/models/currencies.rb +700 -0
- data/lib/pay_quicker_sdk/models/delivery_details.rb +119 -0
- data/lib/pay_quicker_sdk/models/document_details.rb +81 -0
- data/lib/pay_quicker_sdk/models/document_list_result.rb +108 -0
- data/lib/pay_quicker_sdk/models/document_object.rb +147 -0
- data/lib/pay_quicker_sdk/models/document_requirements_list_result.rb +91 -0
- data/lib/pay_quicker_sdk/models/document_result.rb +157 -0
- data/lib/pay_quicker_sdk/models/document_status_types.rb +48 -0
- data/lib/pay_quicker_sdk/models/document_types.rb +264 -0
- data/lib/pay_quicker_sdk/models/electronic_funds_transfer_types.rb +36 -0
- data/lib/pay_quicker_sdk/models/electronic_transfer_failure_types.rb +97 -0
- data/lib/pay_quicker_sdk/models/electronic_transfer_status_types.rb +46 -0
- data/lib/pay_quicker_sdk/models/electronic_wallet_field.rb +83 -0
- data/lib/pay_quicker_sdk/models/electronic_wallet_fields.rb +41 -0
- data/lib/pay_quicker_sdk/models/electronic_wallet_list_result.rb +106 -0
- data/lib/pay_quicker_sdk/models/electronic_wallet_object.rb +186 -0
- data/lib/pay_quicker_sdk/models/electronic_wallet_required_fields.rb +125 -0
- data/lib/pay_quicker_sdk/models/electronic_wallet_requirement.rb +166 -0
- data/lib/pay_quicker_sdk/models/electronic_wallet_requirement_format.rb +93 -0
- data/lib/pay_quicker_sdk/models/electronic_wallet_requirement_format_legend.rb +93 -0
- data/lib/pay_quicker_sdk/models/electronic_wallet_requirement_list_result.rb +110 -0
- data/lib/pay_quicker_sdk/models/electronic_wallet_requirement_validator.rb +86 -0
- data/lib/pay_quicker_sdk/models/electronic_wallet_result.rb +195 -0
- data/lib/pay_quicker_sdk/models/electronic_wallet_statuses.rb +48 -0
- data/lib/pay_quicker_sdk/models/electronic_wallet_type.rb +99 -0
- data/lib/pay_quicker_sdk/models/electronic_wallet_types.rb +368 -0
- data/lib/pay_quicker_sdk/models/event_category_types.rb +40 -0
- data/lib/pay_quicker_sdk/models/event_list_result.rb +106 -0
- data/lib/pay_quicker_sdk/models/event_object.rb +191 -0
- data/lib/pay_quicker_sdk/models/event_requirement_categories.rb +56 -0
- data/lib/pay_quicker_sdk/models/event_requirements.rb +105 -0
- data/lib/pay_quicker_sdk/models/event_statuses.rb +52 -0
- data/lib/pay_quicker_sdk/models/event_types.rb +36 -0
- data/lib/pay_quicker_sdk/models/expected_delivery_types.rb +36 -0
- data/lib/pay_quicker_sdk/models/fee_configuration.rb +154 -0
- data/lib/pay_quicker_sdk/models/fee_distribution.rb +159 -0
- data/lib/pay_quicker_sdk/models/fee_responsibility_parties.rb +44 -0
- data/lib/pay_quicker_sdk/models/fee_responsibility_sources.rb +36 -0
- data/lib/pay_quicker_sdk/models/fee_sources.rb +40 -0
- data/lib/pay_quicker_sdk/models/fee_values.rb +36 -0
- data/lib/pay_quicker_sdk/models/fees.rb +222 -0
- data/lib/pay_quicker_sdk/models/fx_rate.rb +144 -0
- data/lib/pay_quicker_sdk/models/gateway_payment_job.rb +131 -0
- data/lib/pay_quicker_sdk/models/gateway_payment_job_quote.rb +167 -0
- data/lib/pay_quicker_sdk/models/gateway_payment_quote.rb +220 -0
- data/lib/pay_quicker_sdk/models/gateway_spendback_quote.rb +167 -0
- data/lib/pay_quicker_sdk/models/gateway_transfer_quote.rb +195 -0
- data/lib/pay_quicker_sdk/models/genders.rb +48 -0
- data/lib/pay_quicker_sdk/models/government_ids.rb +45 -0
- data/lib/pay_quicker_sdk/models/hateoas_relationship.rb +69 -0
- data/lib/pay_quicker_sdk/models/hateoas_self_ref.rb +84 -0
- data/lib/pay_quicker_sdk/models/identity_verification_providers.rb +62 -0
- data/lib/pay_quicker_sdk/models/identity_verification_result_sub_types.rb +38 -0
- data/lib/pay_quicker_sdk/models/identity_verification_result_types.rb +57 -0
- data/lib/pay_quicker_sdk/models/idv_check_list_result.rb +108 -0
- data/lib/pay_quicker_sdk/models/idv_check_object.rb +209 -0
- data/lib/pay_quicker_sdk/models/idv_check_result.rb +221 -0
- data/lib/pay_quicker_sdk/models/invitation_list_result.rb +106 -0
- data/lib/pay_quicker_sdk/models/invitation_object.rb +262 -0
- data/lib/pay_quicker_sdk/models/invitation_result.rb +272 -0
- data/lib/pay_quicker_sdk/models/job_status_types.rb +68 -0
- data/lib/pay_quicker_sdk/models/job_types.rb +36 -0
- data/lib/pay_quicker_sdk/models/languages.rb +101 -0
- data/lib/pay_quicker_sdk/models/list_metadata.rb +116 -0
- data/lib/pay_quicker_sdk/models/lock_side_types.rb +37 -0
- data/lib/pay_quicker_sdk/models/metadata.rb +72 -0
- data/lib/pay_quicker_sdk/models/metadata_items.rb +80 -0
- data/lib/pay_quicker_sdk/models/o_auth_provider_error.rb +62 -0
- data/lib/pay_quicker_sdk/models/o_auth_scope_server.rb +36 -0
- data/lib/pay_quicker_sdk/models/o_auth_token.rb +106 -0
- data/lib/pay_quicker_sdk/models/occupations.rb +100 -0
- data/lib/pay_quicker_sdk/models/operation_result.rb +72 -0
- data/lib/pay_quicker_sdk/models/order_prepaid_card.rb +97 -0
- data/lib/pay_quicker_sdk/models/payment_job_list_result.rb +106 -0
- data/lib/pay_quicker_sdk/models/payment_job_object.rb +211 -0
- data/lib/pay_quicker_sdk/models/payment_job_result.rb +220 -0
- data/lib/pay_quicker_sdk/models/payment_list_result.rb +106 -0
- data/lib/pay_quicker_sdk/models/payment_object.rb +263 -0
- data/lib/pay_quicker_sdk/models/payment_purposes.rb +58 -0
- data/lib/pay_quicker_sdk/models/payment_result.rb +272 -0
- data/lib/pay_quicker_sdk/models/portal_payment_job.rb +131 -0
- data/lib/pay_quicker_sdk/models/portal_payment_job_quote.rb +176 -0
- data/lib/pay_quicker_sdk/models/portal_payment_quote.rb +228 -0
- data/lib/pay_quicker_sdk/models/portal_spendback_quote.rb +177 -0
- data/lib/pay_quicker_sdk/models/portal_transfer_quote.rb +204 -0
- data/lib/pay_quicker_sdk/models/prepaid_card_authorizations.rb +129 -0
- data/lib/pay_quicker_sdk/models/prepaid_card_capabilities.rb +69 -0
- data/lib/pay_quicker_sdk/models/prepaid_card_data_object.rb +136 -0
- data/lib/pay_quicker_sdk/models/prepaid_card_data_result.rb +146 -0
- data/lib/pay_quicker_sdk/models/prepaid_card_data_token_object.rb +134 -0
- data/lib/pay_quicker_sdk/models/prepaid_card_data_token_result.rb +145 -0
- data/lib/pay_quicker_sdk/models/prepaid_card_data_type.rb +36 -0
- data/lib/pay_quicker_sdk/models/prepaid_card_image_side.rb +36 -0
- data/lib/pay_quicker_sdk/models/prepaid_card_list_result.rb +106 -0
- data/lib/pay_quicker_sdk/models/prepaid_card_object.rb +243 -0
- data/lib/pay_quicker_sdk/models/prepaid_card_pin_object.rb +108 -0
- data/lib/pay_quicker_sdk/models/prepaid_card_pin_result.rb +121 -0
- data/lib/pay_quicker_sdk/models/prepaid_card_pin_token_object.rb +128 -0
- data/lib/pay_quicker_sdk/models/prepaid_card_pin_token_result.rb +139 -0
- data/lib/pay_quicker_sdk/models/prepaid_card_replacement_reasons.rb +48 -0
- data/lib/pay_quicker_sdk/models/prepaid_card_result.rb +254 -0
- data/lib/pay_quicker_sdk/models/prepaid_card_statuses.rb +71 -0
- data/lib/pay_quicker_sdk/models/program_list_result.rb +106 -0
- data/lib/pay_quicker_sdk/models/program_object.rb +138 -0
- data/lib/pay_quicker_sdk/models/program_result.rb +147 -0
- data/lib/pay_quicker_sdk/models/program_types.rb +44 -0
- data/lib/pay_quicker_sdk/models/receipt_descriptions.rb +84 -0
- data/lib/pay_quicker_sdk/models/receipt_details.rb +439 -0
- data/lib/pay_quicker_sdk/models/receipt_list_result.rb +106 -0
- data/lib/pay_quicker_sdk/models/receipt_object.rb +241 -0
- data/lib/pay_quicker_sdk/models/receipt_result.rb +251 -0
- data/lib/pay_quicker_sdk/models/receipt_statuses.rb +76 -0
- data/lib/pay_quicker_sdk/models/replace_prepaid_card.rb +85 -0
- data/lib/pay_quicker_sdk/models/retrieve_card_data.rb +73 -0
- data/lib/pay_quicker_sdk/models/retrieve_card_pin.rb +76 -0
- data/lib/pay_quicker_sdk/models/sandbox_instance.rb +76 -0
- data/lib/pay_quicker_sdk/models/signs.rb +40 -0
- data/lib/pay_quicker_sdk/models/spendback_list_result.rb +106 -0
- data/lib/pay_quicker_sdk/models/spendback_object.rb +291 -0
- data/lib/pay_quicker_sdk/models/spendback_quote_accept_result.rb +301 -0
- data/lib/pay_quicker_sdk/models/spendback_refund_list_result.rb +106 -0
- data/lib/pay_quicker_sdk/models/spendback_refund_object.rb +251 -0
- data/lib/pay_quicker_sdk/models/spendback_refund_result.rb +262 -0
- data/lib/pay_quicker_sdk/models/spendback_result.rb +301 -0
- data/lib/pay_quicker_sdk/models/statement_list_result.rb +106 -0
- data/lib/pay_quicker_sdk/models/statement_object.rb +183 -0
- data/lib/pay_quicker_sdk/models/statement_result.rb +192 -0
- data/lib/pay_quicker_sdk/models/tax_resident_statuses.rb +40 -0
- data/lib/pay_quicker_sdk/models/token_purposes.rb +36 -0
- data/lib/pay_quicker_sdk/models/transfer_list_result.rb +106 -0
- data/lib/pay_quicker_sdk/models/transfer_method_types.rb +48 -0
- data/lib/pay_quicker_sdk/models/transfer_object.rb +309 -0
- data/lib/pay_quicker_sdk/models/transfer_result.rb +318 -0
- data/lib/pay_quicker_sdk/models/transfer_statuses.rb +76 -0
- data/lib/pay_quicker_sdk/models/transfer_types.rb +112 -0
- data/lib/pay_quicker_sdk/models/translation.rb +85 -0
- data/lib/pay_quicker_sdk/models/uat_instance.rb +48 -0
- data/lib/pay_quicker_sdk/models/update_card_pin.rb +87 -0
- data/lib/pay_quicker_sdk/models/update_prepaid_card.rb +85 -0
- data/lib/pay_quicker_sdk/models/upload_fields.rb +40 -0
- data/lib/pay_quicker_sdk/models/user_action.rb +40 -0
- data/lib/pay_quicker_sdk/models/user_doc_req_item_docs_items_metadata_items.rb +101 -0
- data/lib/pay_quicker_sdk/models/user_doc_req_item_docs_items_metadata_items_name_items.rb +83 -0
- data/lib/pay_quicker_sdk/models/user_doc_req_item_docs_items_supplemental_docs_items.rb +92 -0
- data/lib/pay_quicker_sdk/models/user_document_requirement_item.rb +105 -0
- data/lib/pay_quicker_sdk/models/user_document_requirement_item_documents_items.rb +132 -0
- data/lib/pay_quicker_sdk/models/user_event_result.rb +201 -0
- data/lib/pay_quicker_sdk/models/user_impact.rb +48 -0
- data/lib/pay_quicker_sdk/models/user_list_result.rb +106 -0
- data/lib/pay_quicker_sdk/models/user_object.rb +676 -0
- data/lib/pay_quicker_sdk/models/user_result.rb +686 -0
- data/lib/pay_quicker_sdk/models/user_statuses.rb +40 -0
- data/lib/pay_quicker_sdk/models/user_types.rb +36 -0
- data/lib/pay_quicker_sdk/models/validator_types.rb +50 -0
- data/lib/pay_quicker_sdk/models/webhook_namespaces.rb +307 -0
- data/lib/pay_quicker_sdk/models/webhook_subscription_list_result.rb +106 -0
- data/lib/pay_quicker_sdk/models/webhook_subscription_object.rb +158 -0
- data/lib/pay_quicker_sdk/models/webhook_subscription_result.rb +167 -0
- data/lib/pay_quicker_sdk/models/webhook_subscription_statuses.rb +44 -0
- data/lib/pay_quicker_sdk/utilities/date_time_helper.rb +11 -0
- data/lib/pay_quicker_sdk/utilities/file_wrapper.rb +28 -0
- data/lib/pay_quicker_sdk/utilities/union_type_lookup.rb +62 -0
- data/lib/pay_quicker_sdk.rb +274 -0
- data/test/controllers/controller_test_base.rb +24 -0
- data/test/controllers/test_agreements_controller.rb +108 -0
- data/test/controllers/test_balances_controller.rb +132 -0
- data/test/controllers/test_bank_accounts_controller.rb +645 -0
- data/test/controllers/test_client_side_controller.rb +295 -0
- data/test/controllers/test_compliance_controller.rb +86 -0
- data/test/controllers/test_documents_controller.rb +212 -0
- data/test/controllers/test_electronic_wallets_controller.rb +292 -0
- data/test/controllers/test_events_controller.rb +138 -0
- data/test/controllers/test_invitations_controller.rb +162 -0
- data/test/controllers/test_jobs_controller.rb +114 -0
- data/test/controllers/test_payments_controller.rb +323 -0
- data/test/controllers/test_prepaid_cards_controller.rb +351 -0
- data/test/controllers/test_program_controller.rb +134 -0
- data/test/controllers/test_receipts_controller.rb +813 -0
- data/test/controllers/test_spendback_controller.rb +302 -0
- data/test/controllers/test_spendback_refunds_controller.rb +128 -0
- data/test/controllers/test_statements_controller.rb +192 -0
- data/test/controllers/test_transfers_controller.rb +613 -0
- data/test/controllers/test_users_controller.rb +483 -0
- data/test/controllers/test_webhooks_controller.rb +402 -0
- data/test/http_response_catcher.rb +19 -0
- metadata +379 -0
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
# pay_quicker_sdk
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated for PayQuicker by
|
|
4
|
+
# APIMATIC v3.0 ( https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module PayQuickerSdk
|
|
7
|
+
# Classifies the required [bank account
|
|
8
|
+
# field](#/rest/models/structures/bank-account-required-fields) objects
|
|
9
|
+
class BankAccountRequiredFields < BaseModel
|
|
10
|
+
SKIP = Object.new
|
|
11
|
+
private_constant :SKIP
|
|
12
|
+
|
|
13
|
+
# Classifies the
|
|
14
|
+
# [format](#/rest/models/structures/bank-account-requirement-format) of the
|
|
15
|
+
# required information for a bank account
|
|
16
|
+
# @return [BankAccountRequirementFormat]
|
|
17
|
+
attr_accessor :format
|
|
18
|
+
|
|
19
|
+
# Classifies bank account [field
|
|
20
|
+
# types](#/rest/models/structures/bank-account-fields)
|
|
21
|
+
# @return [BankAccountFields]
|
|
22
|
+
attr_accessor :requirement
|
|
23
|
+
|
|
24
|
+
# Localized requirement description for display purposes
|
|
25
|
+
# @return [Array[Translation]]
|
|
26
|
+
attr_accessor :description
|
|
27
|
+
|
|
28
|
+
# Localized requirement description for display purposes
|
|
29
|
+
# @return [Array[BankAccountRequirementValidator]]
|
|
30
|
+
attr_accessor :validators
|
|
31
|
+
|
|
32
|
+
# A mapping from model property names to API property names.
|
|
33
|
+
def self.names
|
|
34
|
+
@_hash = {} if @_hash.nil?
|
|
35
|
+
@_hash['format'] = 'format'
|
|
36
|
+
@_hash['requirement'] = 'requirement'
|
|
37
|
+
@_hash['description'] = 'description'
|
|
38
|
+
@_hash['validators'] = 'validators'
|
|
39
|
+
@_hash
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
# An array for optional fields
|
|
43
|
+
def self.optionals
|
|
44
|
+
%w[
|
|
45
|
+
format
|
|
46
|
+
requirement
|
|
47
|
+
description
|
|
48
|
+
validators
|
|
49
|
+
]
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
# An array for nullable fields
|
|
53
|
+
def self.nullables
|
|
54
|
+
[]
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
def initialize(format = SKIP, requirement = SKIP, description = SKIP,
|
|
58
|
+
validators = SKIP, additional_properties = {})
|
|
59
|
+
# Add additional model properties to the instance.
|
|
60
|
+
additional_properties.each do |_name, _value|
|
|
61
|
+
instance_variable_set("@#{_name}", _value)
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
@format = format unless format == SKIP
|
|
65
|
+
@requirement = requirement unless requirement == SKIP
|
|
66
|
+
@description = description unless description == SKIP
|
|
67
|
+
@validators = validators unless validators == SKIP
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
# Creates an instance of the object from a hash.
|
|
71
|
+
def self.from_hash(hash)
|
|
72
|
+
return nil unless hash
|
|
73
|
+
|
|
74
|
+
# Extract variables from the hash.
|
|
75
|
+
format = BankAccountRequirementFormat.from_hash(hash['format']) if hash['format']
|
|
76
|
+
requirement = hash.key?('requirement') ? hash['requirement'] : SKIP
|
|
77
|
+
# Parameter is an array, so we need to iterate through it
|
|
78
|
+
description = nil
|
|
79
|
+
unless hash['description'].nil?
|
|
80
|
+
description = []
|
|
81
|
+
hash['description'].each do |structure|
|
|
82
|
+
description << (Translation.from_hash(structure) if structure)
|
|
83
|
+
end
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
description = SKIP unless hash.key?('description')
|
|
87
|
+
# Parameter is an array, so we need to iterate through it
|
|
88
|
+
validators = nil
|
|
89
|
+
unless hash['validators'].nil?
|
|
90
|
+
validators = []
|
|
91
|
+
hash['validators'].each do |structure|
|
|
92
|
+
validators << (BankAccountRequirementValidator.from_hash(structure) if structure)
|
|
93
|
+
end
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
validators = SKIP unless hash.key?('validators')
|
|
97
|
+
|
|
98
|
+
# Clean out expected properties from Hash.
|
|
99
|
+
additional_properties = hash.reject { |k, _| names.value?(k) }
|
|
100
|
+
|
|
101
|
+
# Create object from extracted values.
|
|
102
|
+
BankAccountRequiredFields.new(format,
|
|
103
|
+
requirement,
|
|
104
|
+
description,
|
|
105
|
+
validators,
|
|
106
|
+
additional_properties)
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
# Provides a human-readable string representation of the object.
|
|
110
|
+
def to_s
|
|
111
|
+
class_name = self.class.name.split('::').last
|
|
112
|
+
"<#{class_name} format: #{@format}, requirement: #{@requirement}, description:"\
|
|
113
|
+
" #{@description}, validators: #{@validators}, additional_properties:"\
|
|
114
|
+
" #{get_additional_properties}>"
|
|
115
|
+
end
|
|
116
|
+
|
|
117
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
118
|
+
def inspect
|
|
119
|
+
class_name = self.class.name.split('::').last
|
|
120
|
+
"<#{class_name} format: #{@format.inspect}, requirement: #{@requirement.inspect},"\
|
|
121
|
+
" description: #{@description.inspect}, validators: #{@validators.inspect},"\
|
|
122
|
+
" additional_properties: #{get_additional_properties}>"
|
|
123
|
+
end
|
|
124
|
+
end
|
|
125
|
+
end
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
# pay_quicker_sdk
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated for PayQuicker by
|
|
4
|
+
# APIMATIC v3.0 ( https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module PayQuickerSdk
|
|
7
|
+
# Classifies the bank account
|
|
8
|
+
# [required](#/rest/models/structures/bank-account-requirement) information
|
|
9
|
+
class BankAccountRequirement < BaseModel
|
|
10
|
+
SKIP = Object.new
|
|
11
|
+
private_constant :SKIP
|
|
12
|
+
|
|
13
|
+
# Throughout the PayQuicker API, the usage of the 2-letter alpha code is
|
|
14
|
+
# used in place of the country name, e.g., for bank country or residential
|
|
15
|
+
# country.
|
|
16
|
+
# The 2-letter codes adhere to the ISO 3166-1 spec and are listed here for
|
|
17
|
+
# convenience.
|
|
18
|
+
# @return [Countries]
|
|
19
|
+
attr_accessor :bank_country
|
|
20
|
+
|
|
21
|
+
# [Currency code type](#/rest/models/structures/country) for the object
|
|
22
|
+
# @return [Currencies]
|
|
23
|
+
attr_accessor :bank_currency
|
|
24
|
+
|
|
25
|
+
# [Currency code type](#/rest/models/structures/country) for the object
|
|
26
|
+
# @return [FeeConfiguration]
|
|
27
|
+
attr_accessor :fee
|
|
28
|
+
|
|
29
|
+
# Throughout the PayQuicker API, the usage of the 2-letter alpha code is
|
|
30
|
+
# used in place of the country name, e.g., for bank country or residential
|
|
31
|
+
# country.
|
|
32
|
+
# The 2-letter codes adhere to the ISO 3166-1 spec and are listed here for
|
|
33
|
+
# convenience.
|
|
34
|
+
# @return [Countries]
|
|
35
|
+
attr_accessor :source_country
|
|
36
|
+
|
|
37
|
+
# [Currency code type](#/rest/models/structures/country) for the object
|
|
38
|
+
# @return [Currencies]
|
|
39
|
+
attr_accessor :source_currency
|
|
40
|
+
|
|
41
|
+
# [Currency code type](#/rest/models/structures/country) for the object
|
|
42
|
+
# @return [Array[BankAccountRequiredFields]]
|
|
43
|
+
attr_accessor :requirements
|
|
44
|
+
|
|
45
|
+
# A mapping from model property names to API property names.
|
|
46
|
+
def self.names
|
|
47
|
+
@_hash = {} if @_hash.nil?
|
|
48
|
+
@_hash['bank_country'] = 'bankCountry'
|
|
49
|
+
@_hash['bank_currency'] = 'bankCurrency'
|
|
50
|
+
@_hash['fee'] = 'fee'
|
|
51
|
+
@_hash['source_country'] = 'sourceCountry'
|
|
52
|
+
@_hash['source_currency'] = 'sourceCurrency'
|
|
53
|
+
@_hash['requirements'] = 'requirements'
|
|
54
|
+
@_hash
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
# An array for optional fields
|
|
58
|
+
def self.optionals
|
|
59
|
+
%w[
|
|
60
|
+
bank_country
|
|
61
|
+
bank_currency
|
|
62
|
+
fee
|
|
63
|
+
source_country
|
|
64
|
+
source_currency
|
|
65
|
+
requirements
|
|
66
|
+
]
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
# An array for nullable fields
|
|
70
|
+
def self.nullables
|
|
71
|
+
[]
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
def initialize(bank_country = SKIP, bank_currency = Currencies::USD,
|
|
75
|
+
fee = SKIP, source_country = SKIP,
|
|
76
|
+
source_currency = Currencies::USD, requirements = SKIP,
|
|
77
|
+
additional_properties = {})
|
|
78
|
+
# Add additional model properties to the instance.
|
|
79
|
+
additional_properties.each do |_name, _value|
|
|
80
|
+
instance_variable_set("@#{_name}", _value)
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
@bank_country = bank_country unless bank_country == SKIP
|
|
84
|
+
@bank_currency = bank_currency unless bank_currency == SKIP
|
|
85
|
+
@fee = fee unless fee == SKIP
|
|
86
|
+
@source_country = source_country unless source_country == SKIP
|
|
87
|
+
@source_currency = source_currency unless source_currency == SKIP
|
|
88
|
+
@requirements = requirements unless requirements == SKIP
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
# Creates an instance of the object from a hash.
|
|
92
|
+
def self.from_hash(hash)
|
|
93
|
+
return nil unless hash
|
|
94
|
+
|
|
95
|
+
# Extract variables from the hash.
|
|
96
|
+
bank_country = hash.key?('bankCountry') ? hash['bankCountry'] : SKIP
|
|
97
|
+
bank_currency = hash['bankCurrency'] ||= Currencies::USD
|
|
98
|
+
fee = FeeConfiguration.from_hash(hash['fee']) if hash['fee']
|
|
99
|
+
source_country = hash.key?('sourceCountry') ? hash['sourceCountry'] : SKIP
|
|
100
|
+
source_currency = hash['sourceCurrency'] ||= Currencies::USD
|
|
101
|
+
# Parameter is an array, so we need to iterate through it
|
|
102
|
+
requirements = nil
|
|
103
|
+
unless hash['requirements'].nil?
|
|
104
|
+
requirements = []
|
|
105
|
+
hash['requirements'].each do |structure|
|
|
106
|
+
requirements << (BankAccountRequiredFields.from_hash(structure) if structure)
|
|
107
|
+
end
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
requirements = SKIP unless hash.key?('requirements')
|
|
111
|
+
|
|
112
|
+
# Clean out expected properties from Hash.
|
|
113
|
+
additional_properties = hash.reject { |k, _| names.value?(k) }
|
|
114
|
+
|
|
115
|
+
# Create object from extracted values.
|
|
116
|
+
BankAccountRequirement.new(bank_country,
|
|
117
|
+
bank_currency,
|
|
118
|
+
fee,
|
|
119
|
+
source_country,
|
|
120
|
+
source_currency,
|
|
121
|
+
requirements,
|
|
122
|
+
additional_properties)
|
|
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} bank_country: #{@bank_country}, bank_currency: #{@bank_currency}, fee:"\
|
|
129
|
+
" #{@fee}, source_country: #{@source_country}, source_currency: #{@source_currency},"\
|
|
130
|
+
" requirements: #{@requirements}, additional_properties: #{get_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} bank_country: #{@bank_country.inspect}, bank_currency:"\
|
|
137
|
+
" #{@bank_currency.inspect}, fee: #{@fee.inspect}, source_country:"\
|
|
138
|
+
" #{@source_country.inspect}, source_currency: #{@source_currency.inspect}, requirements:"\
|
|
139
|
+
" #{@requirements.inspect}, additional_properties: #{get_additional_properties}>"
|
|
140
|
+
end
|
|
141
|
+
end
|
|
142
|
+
end
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
# pay_quicker_sdk
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated for PayQuicker by
|
|
4
|
+
# APIMATIC v3.0 ( https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module PayQuickerSdk
|
|
7
|
+
# Classifies the
|
|
8
|
+
# [format](#/rest/models/structures/bank-account-requirement-format) of the
|
|
9
|
+
# required information for a bank account
|
|
10
|
+
class BankAccountRequirementFormat < BaseModel
|
|
11
|
+
SKIP = Object.new
|
|
12
|
+
private_constant :SKIP
|
|
13
|
+
|
|
14
|
+
# Example of a requirement generated from the validator(s)
|
|
15
|
+
# @return [String]
|
|
16
|
+
attr_accessor :example
|
|
17
|
+
|
|
18
|
+
# Example of a requirement generated from the validator(s)
|
|
19
|
+
# @return [Array[BankAccountRequirementFormatLegend]]
|
|
20
|
+
attr_accessor :legend
|
|
21
|
+
|
|
22
|
+
# A mapping from model property names to API property names.
|
|
23
|
+
def self.names
|
|
24
|
+
@_hash = {} if @_hash.nil?
|
|
25
|
+
@_hash['example'] = 'example'
|
|
26
|
+
@_hash['legend'] = 'legend'
|
|
27
|
+
@_hash
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
# An array for optional fields
|
|
31
|
+
def self.optionals
|
|
32
|
+
%w[
|
|
33
|
+
example
|
|
34
|
+
legend
|
|
35
|
+
]
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
# An array for nullable fields
|
|
39
|
+
def self.nullables
|
|
40
|
+
[]
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
def initialize(example = SKIP, legend = SKIP, additional_properties = {})
|
|
44
|
+
# Add additional model properties to the instance.
|
|
45
|
+
additional_properties.each do |_name, _value|
|
|
46
|
+
instance_variable_set("@#{_name}", _value)
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
@example = example unless example == SKIP
|
|
50
|
+
@legend = legend unless legend == SKIP
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
# Creates an instance of the object from a hash.
|
|
54
|
+
def self.from_hash(hash)
|
|
55
|
+
return nil unless hash
|
|
56
|
+
|
|
57
|
+
# Extract variables from the hash.
|
|
58
|
+
example = hash.key?('example') ? hash['example'] : SKIP
|
|
59
|
+
# Parameter is an array, so we need to iterate through it
|
|
60
|
+
legend = nil
|
|
61
|
+
unless hash['legend'].nil?
|
|
62
|
+
legend = []
|
|
63
|
+
hash['legend'].each do |structure|
|
|
64
|
+
legend << (BankAccountRequirementFormatLegend.from_hash(structure) if structure)
|
|
65
|
+
end
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
legend = SKIP unless hash.key?('legend')
|
|
69
|
+
|
|
70
|
+
# Clean out expected properties from Hash.
|
|
71
|
+
additional_properties = hash.reject { |k, _| names.value?(k) }
|
|
72
|
+
|
|
73
|
+
# Create object from extracted values.
|
|
74
|
+
BankAccountRequirementFormat.new(example,
|
|
75
|
+
legend,
|
|
76
|
+
additional_properties)
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
# Provides a human-readable string representation of the object.
|
|
80
|
+
def to_s
|
|
81
|
+
class_name = self.class.name.split('::').last
|
|
82
|
+
"<#{class_name} example: #{@example}, legend: #{@legend}, additional_properties:"\
|
|
83
|
+
" #{get_additional_properties}>"
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
87
|
+
def inspect
|
|
88
|
+
class_name = self.class.name.split('::').last
|
|
89
|
+
"<#{class_name} example: #{@example.inspect}, legend: #{@legend.inspect},"\
|
|
90
|
+
" additional_properties: #{get_additional_properties}>"
|
|
91
|
+
end
|
|
92
|
+
end
|
|
93
|
+
end
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
# pay_quicker_sdk
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated for PayQuicker by
|
|
4
|
+
# APIMATIC v3.0 ( https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module PayQuickerSdk
|
|
7
|
+
# Classifies the [legend
|
|
8
|
+
# format](#/rest/models/structures/bank-account-requirement-format-legend) of
|
|
9
|
+
# the required information for a bank account
|
|
10
|
+
class BankAccountRequirementFormatLegend < BaseModel
|
|
11
|
+
SKIP = Object.new
|
|
12
|
+
private_constant :SKIP
|
|
13
|
+
|
|
14
|
+
# TODO: Write general description for this method
|
|
15
|
+
# @return [String]
|
|
16
|
+
attr_accessor :key
|
|
17
|
+
|
|
18
|
+
# Localized requirement description for display purposes
|
|
19
|
+
# @return [Array[Translation]]
|
|
20
|
+
attr_accessor :descriptions
|
|
21
|
+
|
|
22
|
+
# A mapping from model property names to API property names.
|
|
23
|
+
def self.names
|
|
24
|
+
@_hash = {} if @_hash.nil?
|
|
25
|
+
@_hash['key'] = 'key'
|
|
26
|
+
@_hash['descriptions'] = 'descriptions'
|
|
27
|
+
@_hash
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
# An array for optional fields
|
|
31
|
+
def self.optionals
|
|
32
|
+
%w[
|
|
33
|
+
key
|
|
34
|
+
descriptions
|
|
35
|
+
]
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
# An array for nullable fields
|
|
39
|
+
def self.nullables
|
|
40
|
+
[]
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
def initialize(key = SKIP, descriptions = SKIP, additional_properties = {})
|
|
44
|
+
# Add additional model properties to the instance.
|
|
45
|
+
additional_properties.each do |_name, _value|
|
|
46
|
+
instance_variable_set("@#{_name}", _value)
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
@key = key unless key == SKIP
|
|
50
|
+
@descriptions = descriptions unless descriptions == SKIP
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
# Creates an instance of the object from a hash.
|
|
54
|
+
def self.from_hash(hash)
|
|
55
|
+
return nil unless hash
|
|
56
|
+
|
|
57
|
+
# Extract variables from the hash.
|
|
58
|
+
key = hash.key?('key') ? hash['key'] : SKIP
|
|
59
|
+
# Parameter is an array, so we need to iterate through it
|
|
60
|
+
descriptions = nil
|
|
61
|
+
unless hash['descriptions'].nil?
|
|
62
|
+
descriptions = []
|
|
63
|
+
hash['descriptions'].each do |structure|
|
|
64
|
+
descriptions << (Translation.from_hash(structure) if structure)
|
|
65
|
+
end
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
descriptions = SKIP unless hash.key?('descriptions')
|
|
69
|
+
|
|
70
|
+
# Clean out expected properties from Hash.
|
|
71
|
+
additional_properties = hash.reject { |k, _| names.value?(k) }
|
|
72
|
+
|
|
73
|
+
# Create object from extracted values.
|
|
74
|
+
BankAccountRequirementFormatLegend.new(key,
|
|
75
|
+
descriptions,
|
|
76
|
+
additional_properties)
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
# Provides a human-readable string representation of the object.
|
|
80
|
+
def to_s
|
|
81
|
+
class_name = self.class.name.split('::').last
|
|
82
|
+
"<#{class_name} key: #{@key}, descriptions: #{@descriptions}, additional_properties:"\
|
|
83
|
+
" #{get_additional_properties}>"
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
87
|
+
def inspect
|
|
88
|
+
class_name = self.class.name.split('::').last
|
|
89
|
+
"<#{class_name} key: #{@key.inspect}, descriptions: #{@descriptions.inspect},"\
|
|
90
|
+
" additional_properties: #{get_additional_properties}>"
|
|
91
|
+
end
|
|
92
|
+
end
|
|
93
|
+
end
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
# pay_quicker_sdk
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated for PayQuicker by
|
|
4
|
+
# APIMATIC v3.0 ( https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module PayQuickerSdk
|
|
7
|
+
# BankAccountRequirementListResult Model.
|
|
8
|
+
class BankAccountRequirementListResult < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# TODO: Write general description for this method
|
|
13
|
+
# @return [Array[BankAccountRequirement]]
|
|
14
|
+
attr_accessor :payload
|
|
15
|
+
|
|
16
|
+
# TODO: Write general description for this method
|
|
17
|
+
# @return [Array[HateoasSelfRef]]
|
|
18
|
+
attr_accessor :links
|
|
19
|
+
|
|
20
|
+
# TODO: Write general description for this method
|
|
21
|
+
# @return [ListMetadata]
|
|
22
|
+
attr_accessor :meta
|
|
23
|
+
|
|
24
|
+
# A mapping from model property names to API property names.
|
|
25
|
+
def self.names
|
|
26
|
+
@_hash = {} if @_hash.nil?
|
|
27
|
+
@_hash['payload'] = 'payload'
|
|
28
|
+
@_hash['links'] = 'links'
|
|
29
|
+
@_hash['meta'] = 'meta'
|
|
30
|
+
@_hash
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
# An array for optional fields
|
|
34
|
+
def self.optionals
|
|
35
|
+
%w[
|
|
36
|
+
payload
|
|
37
|
+
links
|
|
38
|
+
meta
|
|
39
|
+
]
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
# An array for nullable fields
|
|
43
|
+
def self.nullables
|
|
44
|
+
[]
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
def initialize(payload = SKIP, links = SKIP, meta = SKIP,
|
|
48
|
+
additional_properties = {})
|
|
49
|
+
# Add additional model properties to the instance.
|
|
50
|
+
additional_properties.each do |_name, _value|
|
|
51
|
+
instance_variable_set("@#{_name}", _value)
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
@payload = payload unless payload == SKIP
|
|
55
|
+
@links = links unless links == SKIP
|
|
56
|
+
@meta = meta unless meta == SKIP
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
# Creates an instance of the object from a hash.
|
|
60
|
+
def self.from_hash(hash)
|
|
61
|
+
return nil unless hash
|
|
62
|
+
|
|
63
|
+
# Extract variables from the hash.
|
|
64
|
+
# Parameter is an array, so we need to iterate through it
|
|
65
|
+
payload = nil
|
|
66
|
+
unless hash['payload'].nil?
|
|
67
|
+
payload = []
|
|
68
|
+
hash['payload'].each do |structure|
|
|
69
|
+
payload << (BankAccountRequirement.from_hash(structure) if structure)
|
|
70
|
+
end
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
payload = SKIP unless hash.key?('payload')
|
|
74
|
+
# Parameter is an array, so we need to iterate through it
|
|
75
|
+
links = nil
|
|
76
|
+
unless hash['links'].nil?
|
|
77
|
+
links = []
|
|
78
|
+
hash['links'].each do |structure|
|
|
79
|
+
links << (HateoasSelfRef.from_hash(structure) if structure)
|
|
80
|
+
end
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
links = SKIP unless hash.key?('links')
|
|
84
|
+
meta = ListMetadata.from_hash(hash['meta']) if hash['meta']
|
|
85
|
+
|
|
86
|
+
# Clean out expected properties from Hash.
|
|
87
|
+
additional_properties = hash.reject { |k, _| names.value?(k) }
|
|
88
|
+
|
|
89
|
+
# Create object from extracted values.
|
|
90
|
+
BankAccountRequirementListResult.new(payload,
|
|
91
|
+
links,
|
|
92
|
+
meta,
|
|
93
|
+
additional_properties)
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
# Provides a human-readable string representation of the object.
|
|
97
|
+
def to_s
|
|
98
|
+
class_name = self.class.name.split('::').last
|
|
99
|
+
"<#{class_name} payload: #{@payload}, links: #{@links}, meta: #{@meta},"\
|
|
100
|
+
" additional_properties: #{get_additional_properties}>"
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
104
|
+
def inspect
|
|
105
|
+
class_name = self.class.name.split('::').last
|
|
106
|
+
"<#{class_name} payload: #{@payload.inspect}, links: #{@links.inspect}, meta:"\
|
|
107
|
+
" #{@meta.inspect}, additional_properties: #{get_additional_properties}>"
|
|
108
|
+
end
|
|
109
|
+
end
|
|
110
|
+
end
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
# pay_quicker_sdk
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated for PayQuicker by
|
|
4
|
+
# APIMATIC v3.0 ( https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module PayQuickerSdk
|
|
7
|
+
# [Validator
|
|
8
|
+
# type](#/rest/models/structures/bank-account-requirement-validator) that for
|
|
9
|
+
# the required bank account information.
|
|
10
|
+
class BankAccountRequirementValidator < BaseModel
|
|
11
|
+
SKIP = Object.new
|
|
12
|
+
private_constant :SKIP
|
|
13
|
+
|
|
14
|
+
# [Validator
|
|
15
|
+
# types](#/rest/models/structures/bank-account-requirement-validator) for
|
|
16
|
+
# the required bank account information.
|
|
17
|
+
# @return [ValidatorTypes]
|
|
18
|
+
attr_accessor :validator_type
|
|
19
|
+
|
|
20
|
+
# Validation regular expression
|
|
21
|
+
# @return [String]
|
|
22
|
+
attr_accessor :expression
|
|
23
|
+
|
|
24
|
+
# A mapping from model property names to API property names.
|
|
25
|
+
def self.names
|
|
26
|
+
@_hash = {} if @_hash.nil?
|
|
27
|
+
@_hash['validator_type'] = 'validatorType'
|
|
28
|
+
@_hash['expression'] = 'expression'
|
|
29
|
+
@_hash
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
# An array for optional fields
|
|
33
|
+
def self.optionals
|
|
34
|
+
%w[
|
|
35
|
+
validator_type
|
|
36
|
+
]
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
# An array for nullable fields
|
|
40
|
+
def self.nullables
|
|
41
|
+
[]
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
def initialize(expression = nil, validator_type = SKIP,
|
|
45
|
+
additional_properties = {})
|
|
46
|
+
# Add additional model properties to the instance.
|
|
47
|
+
additional_properties.each do |_name, _value|
|
|
48
|
+
instance_variable_set("@#{_name}", _value)
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
@validator_type = validator_type unless validator_type == SKIP
|
|
52
|
+
@expression = expression
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
# Creates an instance of the object from a hash.
|
|
56
|
+
def self.from_hash(hash)
|
|
57
|
+
return nil unless hash
|
|
58
|
+
|
|
59
|
+
# Extract variables from the hash.
|
|
60
|
+
expression = hash.key?('expression') ? hash['expression'] : nil
|
|
61
|
+
validator_type = hash.key?('validatorType') ? hash['validatorType'] : SKIP
|
|
62
|
+
|
|
63
|
+
# Clean out expected properties from Hash.
|
|
64
|
+
additional_properties = hash.reject { |k, _| names.value?(k) }
|
|
65
|
+
|
|
66
|
+
# Create object from extracted values.
|
|
67
|
+
BankAccountRequirementValidator.new(expression,
|
|
68
|
+
validator_type,
|
|
69
|
+
additional_properties)
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
# Provides a human-readable string representation of the object.
|
|
73
|
+
def to_s
|
|
74
|
+
class_name = self.class.name.split('::').last
|
|
75
|
+
"<#{class_name} validator_type: #{@validator_type}, expression: #{@expression},"\
|
|
76
|
+
" additional_properties: #{get_additional_properties}>"
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
80
|
+
def inspect
|
|
81
|
+
class_name = self.class.name.split('::').last
|
|
82
|
+
"<#{class_name} validator_type: #{@validator_type.inspect}, expression:"\
|
|
83
|
+
" #{@expression.inspect}, additional_properties: #{get_additional_properties}>"
|
|
84
|
+
end
|
|
85
|
+
end
|
|
86
|
+
end
|