payquicker-apimatic-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 +380 -0
|
@@ -0,0 +1,83 @@
|
|
|
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
|
+
# UserDocReqItemDocsItemsMetadataItemsNameItems Model.
|
|
8
|
+
class UserDocReqItemDocsItemsMetadataItemsNameItems < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# TODO: Write general description for this method
|
|
13
|
+
# @return [String]
|
|
14
|
+
attr_accessor :language
|
|
15
|
+
|
|
16
|
+
# TODO: Write general description for this method
|
|
17
|
+
# @return [String]
|
|
18
|
+
attr_accessor :translation
|
|
19
|
+
|
|
20
|
+
# A mapping from model property names to API property names.
|
|
21
|
+
def self.names
|
|
22
|
+
@_hash = {} if @_hash.nil?
|
|
23
|
+
@_hash['language'] = 'language'
|
|
24
|
+
@_hash['translation'] = 'translation'
|
|
25
|
+
@_hash
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
# An array for optional fields
|
|
29
|
+
def self.optionals
|
|
30
|
+
%w[
|
|
31
|
+
language
|
|
32
|
+
translation
|
|
33
|
+
]
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
# An array for nullable fields
|
|
37
|
+
def self.nullables
|
|
38
|
+
[]
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
def initialize(language = SKIP, translation = SKIP,
|
|
42
|
+
additional_properties = {})
|
|
43
|
+
# Add additional model properties to the instance.
|
|
44
|
+
additional_properties.each do |_name, _value|
|
|
45
|
+
instance_variable_set("@#{_name}", _value)
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
@language = language unless language == SKIP
|
|
49
|
+
@translation = translation unless translation == SKIP
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
# Creates an instance of the object from a hash.
|
|
53
|
+
def self.from_hash(hash)
|
|
54
|
+
return nil unless hash
|
|
55
|
+
|
|
56
|
+
# Extract variables from the hash.
|
|
57
|
+
language = hash.key?('language') ? hash['language'] : SKIP
|
|
58
|
+
translation = hash.key?('translation') ? hash['translation'] : SKIP
|
|
59
|
+
|
|
60
|
+
# Clean out expected properties from Hash.
|
|
61
|
+
additional_properties = hash.reject { |k, _| names.value?(k) }
|
|
62
|
+
|
|
63
|
+
# Create object from extracted values.
|
|
64
|
+
UserDocReqItemDocsItemsMetadataItemsNameItems.new(language,
|
|
65
|
+
translation,
|
|
66
|
+
additional_properties)
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
# Provides a human-readable string representation of the object.
|
|
70
|
+
def to_s
|
|
71
|
+
class_name = self.class.name.split('::').last
|
|
72
|
+
"<#{class_name} language: #{@language}, translation: #{@translation},"\
|
|
73
|
+
" additional_properties: #{get_additional_properties}>"
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
77
|
+
def inspect
|
|
78
|
+
class_name = self.class.name.split('::').last
|
|
79
|
+
"<#{class_name} language: #{@language.inspect}, translation: #{@translation.inspect},"\
|
|
80
|
+
" additional_properties: #{get_additional_properties}>"
|
|
81
|
+
end
|
|
82
|
+
end
|
|
83
|
+
end
|
|
@@ -0,0 +1,92 @@
|
|
|
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
|
+
# UserDocReqItemDocsItemsSupplementalDocsItems Model.
|
|
8
|
+
class UserDocReqItemDocsItemsSupplementalDocsItems < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# Full path of the URI used for this object
|
|
13
|
+
# @return [String]
|
|
14
|
+
attr_accessor :example_image
|
|
15
|
+
|
|
16
|
+
# Status Type of a document
|
|
17
|
+
# @return [DocumentStatusTypes]
|
|
18
|
+
attr_accessor :status
|
|
19
|
+
|
|
20
|
+
# Indicates the enums for KYC.
|
|
21
|
+
# @return [DocumentTypes]
|
|
22
|
+
attr_accessor :type
|
|
23
|
+
|
|
24
|
+
# A mapping from model property names to API property names.
|
|
25
|
+
def self.names
|
|
26
|
+
@_hash = {} if @_hash.nil?
|
|
27
|
+
@_hash['example_image'] = 'exampleImage'
|
|
28
|
+
@_hash['status'] = 'status'
|
|
29
|
+
@_hash['type'] = 'type'
|
|
30
|
+
@_hash
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
# An array for optional fields
|
|
34
|
+
def self.optionals
|
|
35
|
+
%w[
|
|
36
|
+
example_image
|
|
37
|
+
status
|
|
38
|
+
type
|
|
39
|
+
]
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
# An array for nullable fields
|
|
43
|
+
def self.nullables
|
|
44
|
+
[]
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
def initialize(example_image = SKIP, status = SKIP, type = 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
|
+
@example_image = example_image unless example_image == SKIP
|
|
55
|
+
@status = status unless status == SKIP
|
|
56
|
+
@type = type unless type == 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
|
+
example_image = hash.key?('exampleImage') ? hash['exampleImage'] : SKIP
|
|
65
|
+
status = hash.key?('status') ? hash['status'] : SKIP
|
|
66
|
+
type = hash.key?('type') ? hash['type'] : SKIP
|
|
67
|
+
|
|
68
|
+
# Clean out expected properties from Hash.
|
|
69
|
+
additional_properties = hash.reject { |k, _| names.value?(k) }
|
|
70
|
+
|
|
71
|
+
# Create object from extracted values.
|
|
72
|
+
UserDocReqItemDocsItemsSupplementalDocsItems.new(example_image,
|
|
73
|
+
status,
|
|
74
|
+
type,
|
|
75
|
+
additional_properties)
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
# Provides a human-readable string representation of the object.
|
|
79
|
+
def to_s
|
|
80
|
+
class_name = self.class.name.split('::').last
|
|
81
|
+
"<#{class_name} example_image: #{@example_image}, status: #{@status}, type: #{@type},"\
|
|
82
|
+
" additional_properties: #{get_additional_properties}>"
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
86
|
+
def inspect
|
|
87
|
+
class_name = self.class.name.split('::').last
|
|
88
|
+
"<#{class_name} example_image: #{@example_image.inspect}, status: #{@status.inspect}, type:"\
|
|
89
|
+
" #{@type.inspect}, additional_properties: #{get_additional_properties}>"
|
|
90
|
+
end
|
|
91
|
+
end
|
|
92
|
+
end
|
|
@@ -0,0 +1,105 @@
|
|
|
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
|
+
# UserDocumentRequirementItem Model.
|
|
8
|
+
class UserDocumentRequirementItem < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# TODO: Write general description for this method
|
|
13
|
+
# @return [String]
|
|
14
|
+
attr_accessor :country_of_birth
|
|
15
|
+
|
|
16
|
+
# TODO: Write general description for this method
|
|
17
|
+
# @return [String]
|
|
18
|
+
attr_accessor :country_of_nationality
|
|
19
|
+
|
|
20
|
+
# TODO: Write general description for this method
|
|
21
|
+
# @return [Array[UserDocumentRequirementItemDocumentsItems]]
|
|
22
|
+
attr_accessor :documents
|
|
23
|
+
|
|
24
|
+
# A mapping from model property names to API property names.
|
|
25
|
+
def self.names
|
|
26
|
+
@_hash = {} if @_hash.nil?
|
|
27
|
+
@_hash['country_of_birth'] = 'countryOfBirth'
|
|
28
|
+
@_hash['country_of_nationality'] = 'countryOfNationality'
|
|
29
|
+
@_hash['documents'] = 'documents'
|
|
30
|
+
@_hash
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
# An array for optional fields
|
|
34
|
+
def self.optionals
|
|
35
|
+
%w[
|
|
36
|
+
country_of_birth
|
|
37
|
+
country_of_nationality
|
|
38
|
+
documents
|
|
39
|
+
]
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
# An array for nullable fields
|
|
43
|
+
def self.nullables
|
|
44
|
+
[]
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
def initialize(country_of_birth = SKIP, country_of_nationality = SKIP,
|
|
48
|
+
documents = SKIP, 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
|
+
@country_of_birth = country_of_birth unless country_of_birth == SKIP
|
|
55
|
+
@country_of_nationality = country_of_nationality unless country_of_nationality == SKIP
|
|
56
|
+
@documents = documents unless documents == 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
|
+
country_of_birth =
|
|
65
|
+
hash.key?('countryOfBirth') ? hash['countryOfBirth'] : SKIP
|
|
66
|
+
country_of_nationality =
|
|
67
|
+
hash.key?('countryOfNationality') ? hash['countryOfNationality'] : SKIP
|
|
68
|
+
# Parameter is an array, so we need to iterate through it
|
|
69
|
+
documents = nil
|
|
70
|
+
unless hash['documents'].nil?
|
|
71
|
+
documents = []
|
|
72
|
+
hash['documents'].each do |structure|
|
|
73
|
+
documents << (UserDocumentRequirementItemDocumentsItems.from_hash(structure) if structure)
|
|
74
|
+
end
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
documents = SKIP unless hash.key?('documents')
|
|
78
|
+
|
|
79
|
+
# Clean out expected properties from Hash.
|
|
80
|
+
additional_properties = hash.reject { |k, _| names.value?(k) }
|
|
81
|
+
|
|
82
|
+
# Create object from extracted values.
|
|
83
|
+
UserDocumentRequirementItem.new(country_of_birth,
|
|
84
|
+
country_of_nationality,
|
|
85
|
+
documents,
|
|
86
|
+
additional_properties)
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
# Provides a human-readable string representation of the object.
|
|
90
|
+
def to_s
|
|
91
|
+
class_name = self.class.name.split('::').last
|
|
92
|
+
"<#{class_name} country_of_birth: #{@country_of_birth}, country_of_nationality:"\
|
|
93
|
+
" #{@country_of_nationality}, documents: #{@documents}, additional_properties:"\
|
|
94
|
+
" #{get_additional_properties}>"
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
98
|
+
def inspect
|
|
99
|
+
class_name = self.class.name.split('::').last
|
|
100
|
+
"<#{class_name} country_of_birth: #{@country_of_birth.inspect}, country_of_nationality:"\
|
|
101
|
+
" #{@country_of_nationality.inspect}, documents: #{@documents.inspect},"\
|
|
102
|
+
" additional_properties: #{get_additional_properties}>"
|
|
103
|
+
end
|
|
104
|
+
end
|
|
105
|
+
end
|
|
@@ -0,0 +1,132 @@
|
|
|
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
|
+
# UserDocumentRequirementItemDocumentsItems Model.
|
|
8
|
+
class UserDocumentRequirementItemDocumentsItems < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# Full path of the URI used for this object
|
|
13
|
+
# @return [String]
|
|
14
|
+
attr_accessor :example_image
|
|
15
|
+
|
|
16
|
+
# Full path of the URI used for this object
|
|
17
|
+
# @return [Array[UserDocReqItemDocsItemsSupplementalDocsItems]]
|
|
18
|
+
attr_accessor :supplemental_documents
|
|
19
|
+
|
|
20
|
+
# Full path of the URI used for this object
|
|
21
|
+
# @return [Array[UserDocReqItemDocsItemsMetadataItems]]
|
|
22
|
+
attr_accessor :metadata
|
|
23
|
+
|
|
24
|
+
# Status Type of a document
|
|
25
|
+
# @return [DocumentStatusTypes]
|
|
26
|
+
attr_accessor :status
|
|
27
|
+
|
|
28
|
+
# Indicates the enums for KYC.
|
|
29
|
+
# @return [DocumentTypes]
|
|
30
|
+
attr_accessor :type
|
|
31
|
+
|
|
32
|
+
# A mapping from model property names to API property names.
|
|
33
|
+
def self.names
|
|
34
|
+
@_hash = {} if @_hash.nil?
|
|
35
|
+
@_hash['example_image'] = 'exampleImage'
|
|
36
|
+
@_hash['supplemental_documents'] = 'supplementalDocuments'
|
|
37
|
+
@_hash['metadata'] = 'metadata'
|
|
38
|
+
@_hash['status'] = 'status'
|
|
39
|
+
@_hash['type'] = 'type'
|
|
40
|
+
@_hash
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
# An array for optional fields
|
|
44
|
+
def self.optionals
|
|
45
|
+
%w[
|
|
46
|
+
example_image
|
|
47
|
+
supplemental_documents
|
|
48
|
+
metadata
|
|
49
|
+
status
|
|
50
|
+
type
|
|
51
|
+
]
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
# An array for nullable fields
|
|
55
|
+
def self.nullables
|
|
56
|
+
[]
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
def initialize(example_image = SKIP, supplemental_documents = SKIP,
|
|
60
|
+
metadata = SKIP, status = SKIP, type = SKIP,
|
|
61
|
+
additional_properties = {})
|
|
62
|
+
# Add additional model properties to the instance.
|
|
63
|
+
additional_properties.each do |_name, _value|
|
|
64
|
+
instance_variable_set("@#{_name}", _value)
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
@example_image = example_image unless example_image == SKIP
|
|
68
|
+
@supplemental_documents = supplemental_documents unless supplemental_documents == SKIP
|
|
69
|
+
@metadata = metadata unless metadata == SKIP
|
|
70
|
+
@status = status unless status == SKIP
|
|
71
|
+
@type = type unless type == SKIP
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
# Creates an instance of the object from a hash.
|
|
75
|
+
def self.from_hash(hash)
|
|
76
|
+
return nil unless hash
|
|
77
|
+
|
|
78
|
+
# Extract variables from the hash.
|
|
79
|
+
example_image = hash.key?('exampleImage') ? hash['exampleImage'] : SKIP
|
|
80
|
+
# Parameter is an array, so we need to iterate through it
|
|
81
|
+
supplemental_documents = nil
|
|
82
|
+
unless hash['supplementalDocuments'].nil?
|
|
83
|
+
supplemental_documents = []
|
|
84
|
+
hash['supplementalDocuments'].each do |structure|
|
|
85
|
+
supplemental_documents << (UserDocReqItemDocsItemsSupplementalDocsItems.from_hash(structure) if structure)
|
|
86
|
+
end
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
supplemental_documents = SKIP unless hash.key?('supplementalDocuments')
|
|
90
|
+
# Parameter is an array, so we need to iterate through it
|
|
91
|
+
metadata = nil
|
|
92
|
+
unless hash['metadata'].nil?
|
|
93
|
+
metadata = []
|
|
94
|
+
hash['metadata'].each do |structure|
|
|
95
|
+
metadata << (UserDocReqItemDocsItemsMetadataItems.from_hash(structure) if structure)
|
|
96
|
+
end
|
|
97
|
+
end
|
|
98
|
+
|
|
99
|
+
metadata = SKIP unless hash.key?('metadata')
|
|
100
|
+
status = hash.key?('status') ? hash['status'] : SKIP
|
|
101
|
+
type = hash.key?('type') ? hash['type'] : SKIP
|
|
102
|
+
|
|
103
|
+
# Clean out expected properties from Hash.
|
|
104
|
+
additional_properties = hash.reject { |k, _| names.value?(k) }
|
|
105
|
+
|
|
106
|
+
# Create object from extracted values.
|
|
107
|
+
UserDocumentRequirementItemDocumentsItems.new(example_image,
|
|
108
|
+
supplemental_documents,
|
|
109
|
+
metadata,
|
|
110
|
+
status,
|
|
111
|
+
type,
|
|
112
|
+
additional_properties)
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
# Provides a human-readable string representation of the object.
|
|
116
|
+
def to_s
|
|
117
|
+
class_name = self.class.name.split('::').last
|
|
118
|
+
"<#{class_name} example_image: #{@example_image}, supplemental_documents:"\
|
|
119
|
+
" #{@supplemental_documents}, metadata: #{@metadata}, status: #{@status}, type: #{@type},"\
|
|
120
|
+
" additional_properties: #{get_additional_properties}>"
|
|
121
|
+
end
|
|
122
|
+
|
|
123
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
124
|
+
def inspect
|
|
125
|
+
class_name = self.class.name.split('::').last
|
|
126
|
+
"<#{class_name} example_image: #{@example_image.inspect}, supplemental_documents:"\
|
|
127
|
+
" #{@supplemental_documents.inspect}, metadata: #{@metadata.inspect}, status:"\
|
|
128
|
+
" #{@status.inspect}, type: #{@type.inspect}, additional_properties:"\
|
|
129
|
+
" #{get_additional_properties}>"
|
|
130
|
+
end
|
|
131
|
+
end
|
|
132
|
+
end
|
|
@@ -0,0 +1,201 @@
|
|
|
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
|
+
# UserEventResult Model.
|
|
8
|
+
class UserEventResult < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# [Token](#/rest/models/structures/token) representing the resource
|
|
13
|
+
# @return [String]
|
|
14
|
+
attr_accessor :token
|
|
15
|
+
|
|
16
|
+
# [Token](#/rest/models/structures/token) representing the resource
|
|
17
|
+
# @return [TrueClass | FalseClass]
|
|
18
|
+
attr_accessor :can_be_cancelled
|
|
19
|
+
|
|
20
|
+
# [Token](#/rest/models/structures/token) representing the resource
|
|
21
|
+
# @return [EventRequirementCategories]
|
|
22
|
+
attr_accessor :event_requirement_category_type
|
|
23
|
+
|
|
24
|
+
# [Token](#/rest/models/structures/token) representing the resource
|
|
25
|
+
# @return [EventRequirements]
|
|
26
|
+
attr_accessor :event_requirement_type
|
|
27
|
+
|
|
28
|
+
# Indicates the current verification status type of an event.
|
|
29
|
+
# @return [EventStatuses]
|
|
30
|
+
attr_accessor :event_status
|
|
31
|
+
|
|
32
|
+
# Indicates the current verification status type of an event.
|
|
33
|
+
# @return [EventTypes]
|
|
34
|
+
attr_accessor :event_type
|
|
35
|
+
|
|
36
|
+
# Indicates the current verification status type of an event.
|
|
37
|
+
# @return [TrueClass | FalseClass]
|
|
38
|
+
attr_accessor :is_complete
|
|
39
|
+
|
|
40
|
+
# Indicates the current verification status type of an event.
|
|
41
|
+
# @return [UserAction]
|
|
42
|
+
attr_accessor :user_action
|
|
43
|
+
|
|
44
|
+
# Indicates the current verification status type of an event.
|
|
45
|
+
# @return [UserImpact]
|
|
46
|
+
attr_accessor :user_impact
|
|
47
|
+
|
|
48
|
+
# The type of Registration tied to a particular event
|
|
49
|
+
# @return [EventCategoryTypes]
|
|
50
|
+
attr_accessor :event
|
|
51
|
+
|
|
52
|
+
# The type of Registration tied to a particular event
|
|
53
|
+
# @return [Array[HateoasSelfRef]]
|
|
54
|
+
attr_accessor :links
|
|
55
|
+
|
|
56
|
+
# The type of Registration tied to a particular event
|
|
57
|
+
# @return [MetadataItems]
|
|
58
|
+
attr_accessor :meta
|
|
59
|
+
|
|
60
|
+
# A mapping from model property names to API property names.
|
|
61
|
+
def self.names
|
|
62
|
+
@_hash = {} if @_hash.nil?
|
|
63
|
+
@_hash['token'] = 'token'
|
|
64
|
+
@_hash['can_be_cancelled'] = 'canBeCancelled'
|
|
65
|
+
@_hash['event_requirement_category_type'] =
|
|
66
|
+
'eventRequirementCategoryType'
|
|
67
|
+
@_hash['event_requirement_type'] = 'eventRequirementType'
|
|
68
|
+
@_hash['event_status'] = 'eventStatus'
|
|
69
|
+
@_hash['event_type'] = 'eventType'
|
|
70
|
+
@_hash['is_complete'] = 'isComplete'
|
|
71
|
+
@_hash['user_action'] = 'userAction'
|
|
72
|
+
@_hash['user_impact'] = 'userImpact'
|
|
73
|
+
@_hash['event'] = 'event'
|
|
74
|
+
@_hash['links'] = 'links'
|
|
75
|
+
@_hash['meta'] = 'meta'
|
|
76
|
+
@_hash
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
# An array for optional fields
|
|
80
|
+
def self.optionals
|
|
81
|
+
%w[
|
|
82
|
+
token
|
|
83
|
+
can_be_cancelled
|
|
84
|
+
event_requirement_category_type
|
|
85
|
+
event_requirement_type
|
|
86
|
+
event_status
|
|
87
|
+
event_type
|
|
88
|
+
is_complete
|
|
89
|
+
user_action
|
|
90
|
+
user_impact
|
|
91
|
+
links
|
|
92
|
+
meta
|
|
93
|
+
]
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
# An array for nullable fields
|
|
97
|
+
def self.nullables
|
|
98
|
+
[]
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
def initialize(event = nil, token = SKIP, can_be_cancelled = SKIP,
|
|
102
|
+
event_requirement_category_type = SKIP,
|
|
103
|
+
event_requirement_type = SKIP, event_status = SKIP,
|
|
104
|
+
event_type = SKIP, is_complete = SKIP, user_action = SKIP,
|
|
105
|
+
user_impact = SKIP, links = SKIP, meta = SKIP,
|
|
106
|
+
additional_properties = {})
|
|
107
|
+
# Add additional model properties to the instance.
|
|
108
|
+
additional_properties.each do |_name, _value|
|
|
109
|
+
instance_variable_set("@#{_name}", _value)
|
|
110
|
+
end
|
|
111
|
+
|
|
112
|
+
@token = token unless token == SKIP
|
|
113
|
+
@can_be_cancelled = can_be_cancelled unless can_be_cancelled == SKIP
|
|
114
|
+
unless event_requirement_category_type == SKIP
|
|
115
|
+
@event_requirement_category_type =
|
|
116
|
+
event_requirement_category_type
|
|
117
|
+
end
|
|
118
|
+
@event_requirement_type = event_requirement_type unless event_requirement_type == SKIP
|
|
119
|
+
@event_status = event_status unless event_status == SKIP
|
|
120
|
+
@event_type = event_type unless event_type == SKIP
|
|
121
|
+
@is_complete = is_complete unless is_complete == SKIP
|
|
122
|
+
@user_action = user_action unless user_action == SKIP
|
|
123
|
+
@user_impact = user_impact unless user_impact == SKIP
|
|
124
|
+
@event = event
|
|
125
|
+
@links = links unless links == SKIP
|
|
126
|
+
@meta = meta unless meta == SKIP
|
|
127
|
+
end
|
|
128
|
+
|
|
129
|
+
# Creates an instance of the object from a hash.
|
|
130
|
+
def self.from_hash(hash)
|
|
131
|
+
return nil unless hash
|
|
132
|
+
|
|
133
|
+
# Extract variables from the hash.
|
|
134
|
+
event = hash.key?('event') ? hash['event'] : nil
|
|
135
|
+
token = hash.key?('token') ? hash['token'] : SKIP
|
|
136
|
+
can_be_cancelled =
|
|
137
|
+
hash.key?('canBeCancelled') ? hash['canBeCancelled'] : SKIP
|
|
138
|
+
event_requirement_category_type =
|
|
139
|
+
hash.key?('eventRequirementCategoryType') ? hash['eventRequirementCategoryType'] : SKIP
|
|
140
|
+
event_requirement_type =
|
|
141
|
+
hash.key?('eventRequirementType') ? hash['eventRequirementType'] : SKIP
|
|
142
|
+
event_status = hash.key?('eventStatus') ? hash['eventStatus'] : SKIP
|
|
143
|
+
event_type = hash.key?('eventType') ? hash['eventType'] : SKIP
|
|
144
|
+
is_complete = hash.key?('isComplete') ? hash['isComplete'] : SKIP
|
|
145
|
+
user_action = hash.key?('userAction') ? hash['userAction'] : SKIP
|
|
146
|
+
user_impact = hash.key?('userImpact') ? hash['userImpact'] : SKIP
|
|
147
|
+
# Parameter is an array, so we need to iterate through it
|
|
148
|
+
links = nil
|
|
149
|
+
unless hash['links'].nil?
|
|
150
|
+
links = []
|
|
151
|
+
hash['links'].each do |structure|
|
|
152
|
+
links << (HateoasSelfRef.from_hash(structure) if structure)
|
|
153
|
+
end
|
|
154
|
+
end
|
|
155
|
+
|
|
156
|
+
links = SKIP unless hash.key?('links')
|
|
157
|
+
meta = MetadataItems.from_hash(hash['meta']) if hash['meta']
|
|
158
|
+
|
|
159
|
+
# Clean out expected properties from Hash.
|
|
160
|
+
additional_properties = hash.reject { |k, _| names.value?(k) }
|
|
161
|
+
|
|
162
|
+
# Create object from extracted values.
|
|
163
|
+
UserEventResult.new(event,
|
|
164
|
+
token,
|
|
165
|
+
can_be_cancelled,
|
|
166
|
+
event_requirement_category_type,
|
|
167
|
+
event_requirement_type,
|
|
168
|
+
event_status,
|
|
169
|
+
event_type,
|
|
170
|
+
is_complete,
|
|
171
|
+
user_action,
|
|
172
|
+
user_impact,
|
|
173
|
+
links,
|
|
174
|
+
meta,
|
|
175
|
+
additional_properties)
|
|
176
|
+
end
|
|
177
|
+
|
|
178
|
+
# Provides a human-readable string representation of the object.
|
|
179
|
+
def to_s
|
|
180
|
+
class_name = self.class.name.split('::').last
|
|
181
|
+
"<#{class_name} token: #{@token}, can_be_cancelled: #{@can_be_cancelled},"\
|
|
182
|
+
" event_requirement_category_type: #{@event_requirement_category_type},"\
|
|
183
|
+
" event_requirement_type: #{@event_requirement_type}, event_status: #{@event_status},"\
|
|
184
|
+
" event_type: #{@event_type}, is_complete: #{@is_complete}, user_action: #{@user_action},"\
|
|
185
|
+
" user_impact: #{@user_impact}, event: #{@event}, links: #{@links}, meta: #{@meta},"\
|
|
186
|
+
" additional_properties: #{get_additional_properties}>"
|
|
187
|
+
end
|
|
188
|
+
|
|
189
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
190
|
+
def inspect
|
|
191
|
+
class_name = self.class.name.split('::').last
|
|
192
|
+
"<#{class_name} token: #{@token.inspect}, can_be_cancelled: #{@can_be_cancelled.inspect},"\
|
|
193
|
+
" event_requirement_category_type: #{@event_requirement_category_type.inspect},"\
|
|
194
|
+
" event_requirement_type: #{@event_requirement_type.inspect}, event_status:"\
|
|
195
|
+
" #{@event_status.inspect}, event_type: #{@event_type.inspect}, is_complete:"\
|
|
196
|
+
" #{@is_complete.inspect}, user_action: #{@user_action.inspect}, user_impact:"\
|
|
197
|
+
" #{@user_impact.inspect}, event: #{@event.inspect}, links: #{@links.inspect}, meta:"\
|
|
198
|
+
" #{@meta.inspect}, additional_properties: #{get_additional_properties}>"
|
|
199
|
+
end
|
|
200
|
+
end
|
|
201
|
+
end
|
|
@@ -0,0 +1,48 @@
|
|
|
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
|
+
# _UserImpact.
|
|
8
|
+
class UserImpact
|
|
9
|
+
USER_IMPACT = [
|
|
10
|
+
# TODO: Write general description for NO_IMPACT
|
|
11
|
+
NO_IMPACT = 'NO_IMPACT'.freeze,
|
|
12
|
+
|
|
13
|
+
# TODO: Write general description for USER_RESTRICTIONS
|
|
14
|
+
USER_RESTRICTIONS = 'USER_RESTRICTIONS'.freeze,
|
|
15
|
+
|
|
16
|
+
# TODO: Write general description for USER_SUSPENDED
|
|
17
|
+
USER_SUSPENDED = 'USER_SUSPENDED'.freeze,
|
|
18
|
+
|
|
19
|
+
# TODO: Write general description for USER_PENDING_REGISTRATION
|
|
20
|
+
USER_PENDING_REGISTRATION = 'USER_PENDING_REGISTRATION'.freeze,
|
|
21
|
+
|
|
22
|
+
# TODO: Write general description for USER_CLOSED
|
|
23
|
+
USER_CLOSED = 'USER_CLOSED'.freeze
|
|
24
|
+
].freeze
|
|
25
|
+
|
|
26
|
+
def self.validate(value)
|
|
27
|
+
return false if value.nil?
|
|
28
|
+
|
|
29
|
+
USER_IMPACT.include?(value)
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
def self.from_value(value, default_value = NO_IMPACT)
|
|
33
|
+
return default_value if value.nil?
|
|
34
|
+
|
|
35
|
+
str = value.to_s.strip
|
|
36
|
+
|
|
37
|
+
case str.downcase
|
|
38
|
+
when 'no_impact' then NO_IMPACT
|
|
39
|
+
when 'user_restrictions' then USER_RESTRICTIONS
|
|
40
|
+
when 'user_suspended' then USER_SUSPENDED
|
|
41
|
+
when 'user_pending_registration' then USER_PENDING_REGISTRATION
|
|
42
|
+
when 'user_closed' then USER_CLOSED
|
|
43
|
+
else
|
|
44
|
+
default_value
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
end
|