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,676 @@
|
|
|
1
|
+
# pay_quicker_sdk
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated for PayQuicker by
|
|
4
|
+
# APIMATIC v3.0 ( https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
require 'date'
|
|
7
|
+
module PayQuickerSdk
|
|
8
|
+
# UserObject Model.
|
|
9
|
+
class UserObject < BaseModel
|
|
10
|
+
SKIP = Object.new
|
|
11
|
+
private_constant :SKIP
|
|
12
|
+
|
|
13
|
+
# [Token](#/rest/models/structures/token) representing the resource
|
|
14
|
+
# @return [String]
|
|
15
|
+
attr_accessor :token
|
|
16
|
+
|
|
17
|
+
# Address Line 1
|
|
18
|
+
# @return [String]
|
|
19
|
+
attr_accessor :address_line1
|
|
20
|
+
|
|
21
|
+
# Address Line 1
|
|
22
|
+
# @return [String]
|
|
23
|
+
attr_accessor :address_line2
|
|
24
|
+
|
|
25
|
+
# Address Line 1
|
|
26
|
+
# @return [String]
|
|
27
|
+
attr_accessor :address_line3
|
|
28
|
+
|
|
29
|
+
# Business address line 1
|
|
30
|
+
# @return [String]
|
|
31
|
+
attr_accessor :business_address_line1
|
|
32
|
+
|
|
33
|
+
# Business address line 2
|
|
34
|
+
# @return [String]
|
|
35
|
+
attr_accessor :business_address_line2
|
|
36
|
+
|
|
37
|
+
# Business address line 3
|
|
38
|
+
# @return [String]
|
|
39
|
+
attr_accessor :business_address_line3
|
|
40
|
+
|
|
41
|
+
# Classifies the [address](#/rest/models/structures/address) type
|
|
42
|
+
# (*Residential*, *Business*, *Billing*, *Shipping*)
|
|
43
|
+
# @return [Addresses]
|
|
44
|
+
attr_accessor :business_address_type
|
|
45
|
+
|
|
46
|
+
# Business city
|
|
47
|
+
# @return [String]
|
|
48
|
+
attr_accessor :business_city
|
|
49
|
+
|
|
50
|
+
# Business contact role
|
|
51
|
+
# @return [BusinessContactRoles]
|
|
52
|
+
attr_accessor :business_contact_role
|
|
53
|
+
|
|
54
|
+
# Throughout the PayQuicker API, the usage of the 2-letter alpha code is
|
|
55
|
+
# used in place of the country name, e.g., for bank country or residential
|
|
56
|
+
# country.
|
|
57
|
+
# The 2-letter codes adhere to the ISO 3166-1 spec and are listed here for
|
|
58
|
+
# convenience.
|
|
59
|
+
# @return [Countries]
|
|
60
|
+
attr_accessor :business_country
|
|
61
|
+
|
|
62
|
+
# Business name
|
|
63
|
+
# @return [String]
|
|
64
|
+
attr_accessor :business_name
|
|
65
|
+
|
|
66
|
+
# Business name
|
|
67
|
+
# @return [String]
|
|
68
|
+
attr_accessor :business_postal_code
|
|
69
|
+
|
|
70
|
+
# Region that the business is based out of
|
|
71
|
+
# @return [String]
|
|
72
|
+
attr_accessor :business_region
|
|
73
|
+
|
|
74
|
+
# Region that the business is based out of
|
|
75
|
+
# @return [String]
|
|
76
|
+
attr_accessor :city
|
|
77
|
+
|
|
78
|
+
# Throughout the PayQuicker API, the usage of the 2-letter alpha code is
|
|
79
|
+
# used in place of the country name, e.g., for bank country or residential
|
|
80
|
+
# country.
|
|
81
|
+
# The 2-letter codes adhere to the ISO 3166-1 spec and are listed here for
|
|
82
|
+
# convenience.
|
|
83
|
+
# @return [Countries]
|
|
84
|
+
attr_accessor :country
|
|
85
|
+
|
|
86
|
+
# Throughout the PayQuicker API, the usage of the 2-letter alpha code is
|
|
87
|
+
# used in place of the country name, e.g., for bank country or residential
|
|
88
|
+
# country.
|
|
89
|
+
# The 2-letter codes adhere to the ISO 3166-1 spec and are listed here for
|
|
90
|
+
# convenience.
|
|
91
|
+
# @return [Countries]
|
|
92
|
+
attr_accessor :country_of_birth
|
|
93
|
+
|
|
94
|
+
# Throughout the PayQuicker API, the usage of the 2-letter alpha code is
|
|
95
|
+
# used in place of the country name, e.g., for bank country or residential
|
|
96
|
+
# country.
|
|
97
|
+
# The 2-letter codes adhere to the ISO 3166-1 spec and are listed here for
|
|
98
|
+
# convenience.
|
|
99
|
+
# @return [Countries]
|
|
100
|
+
attr_accessor :country_of_nationality
|
|
101
|
+
|
|
102
|
+
# Time object was [created](#/rest/models/structures/created-on)
|
|
103
|
+
# @return [DateTime]
|
|
104
|
+
attr_accessor :created_on
|
|
105
|
+
|
|
106
|
+
# [Currency code type](#/rest/models/structures/country) for the object
|
|
107
|
+
# @return [Currencies]
|
|
108
|
+
attr_accessor :currency
|
|
109
|
+
|
|
110
|
+
# [Currency code type](#/rest/models/structures/country) for the object
|
|
111
|
+
# @return [DateTime]
|
|
112
|
+
attr_accessor :date_of_birth
|
|
113
|
+
|
|
114
|
+
# Contact [email address](#/rest/models/structures/email-address) for the
|
|
115
|
+
# user account for the user account
|
|
116
|
+
# @return [String]
|
|
117
|
+
attr_accessor :email
|
|
118
|
+
|
|
119
|
+
# Employer id
|
|
120
|
+
# @return [String]
|
|
121
|
+
attr_accessor :employer_id
|
|
122
|
+
|
|
123
|
+
# First name
|
|
124
|
+
# @return [String]
|
|
125
|
+
attr_accessor :first_name
|
|
126
|
+
|
|
127
|
+
# [Gender](#/rest/models/structures/gender) as a user identifies
|
|
128
|
+
# @return [Genders]
|
|
129
|
+
attr_accessor :gender
|
|
130
|
+
|
|
131
|
+
# [Gender](#/rest/models/structures/gender) as a user identifies
|
|
132
|
+
# @return [String]
|
|
133
|
+
attr_accessor :government_id
|
|
134
|
+
|
|
135
|
+
# Indicates the type of ID submitted for user verification purposes.
|
|
136
|
+
# @return [GovernmentIds]
|
|
137
|
+
attr_accessor :government_id_type
|
|
138
|
+
|
|
139
|
+
# The [Language](#/rest/models/structures/language) type in IETF's BCP 47
|
|
140
|
+
# format
|
|
141
|
+
# @return [Languages]
|
|
142
|
+
attr_accessor :language
|
|
143
|
+
|
|
144
|
+
# Last name
|
|
145
|
+
# @return [String]
|
|
146
|
+
attr_accessor :last_name
|
|
147
|
+
|
|
148
|
+
# Last name
|
|
149
|
+
# @return [String]
|
|
150
|
+
attr_accessor :mailing_address_line1
|
|
151
|
+
|
|
152
|
+
# Last name
|
|
153
|
+
# @return [String]
|
|
154
|
+
attr_accessor :mailing_address_line2
|
|
155
|
+
|
|
156
|
+
# Last name
|
|
157
|
+
# @return [String]
|
|
158
|
+
attr_accessor :mailing_address_line3
|
|
159
|
+
|
|
160
|
+
# Last name
|
|
161
|
+
# @return [String]
|
|
162
|
+
attr_accessor :mailing_city
|
|
163
|
+
|
|
164
|
+
# Throughout the PayQuicker API, the usage of the 2-letter alpha code is
|
|
165
|
+
# used in place of the country name, e.g., for bank country or residential
|
|
166
|
+
# country.
|
|
167
|
+
# The 2-letter codes adhere to the ISO 3166-1 spec and are listed here for
|
|
168
|
+
# convenience.
|
|
169
|
+
# @return [Countries]
|
|
170
|
+
attr_accessor :mailing_country
|
|
171
|
+
|
|
172
|
+
# Throughout the PayQuicker API, the usage of the 2-letter alpha code is
|
|
173
|
+
# used in place of the country name, e.g., for bank country or residential
|
|
174
|
+
# country.
|
|
175
|
+
# The 2-letter codes adhere to the ISO 3166-1 spec and are listed here for
|
|
176
|
+
# convenience.
|
|
177
|
+
# @return [String]
|
|
178
|
+
attr_accessor :mailing_postal_code
|
|
179
|
+
|
|
180
|
+
# Throughout the PayQuicker API, the usage of the 2-letter alpha code is
|
|
181
|
+
# used in place of the country name, e.g., for bank country or residential
|
|
182
|
+
# country.
|
|
183
|
+
# The 2-letter codes adhere to the ISO 3166-1 spec and are listed here for
|
|
184
|
+
# convenience.
|
|
185
|
+
# @return [String]
|
|
186
|
+
attr_accessor :mailing_region
|
|
187
|
+
|
|
188
|
+
# Throughout the PayQuicker API, the usage of the 2-letter alpha code is
|
|
189
|
+
# used in place of the country name, e.g., for bank country or residential
|
|
190
|
+
# country.
|
|
191
|
+
# The 2-letter codes adhere to the ISO 3166-1 spec and are listed here for
|
|
192
|
+
# convenience.
|
|
193
|
+
# @return [String]
|
|
194
|
+
attr_accessor :mobile_number
|
|
195
|
+
|
|
196
|
+
# Throughout the PayQuicker API, the usage of the 2-letter alpha code is
|
|
197
|
+
# used in place of the country name, e.g., for bank country or residential
|
|
198
|
+
# country.
|
|
199
|
+
# The 2-letter codes adhere to the ISO 3166-1 spec and are listed here for
|
|
200
|
+
# convenience.
|
|
201
|
+
# @return [Countries]
|
|
202
|
+
attr_accessor :mobile_number_country
|
|
203
|
+
|
|
204
|
+
# Throughout the PayQuicker API, the usage of the 2-letter alpha code is
|
|
205
|
+
# used in place of the country name, e.g., for bank country or residential
|
|
206
|
+
# country.
|
|
207
|
+
# The 2-letter codes adhere to the ISO 3166-1 spec and are listed here for
|
|
208
|
+
# convenience.
|
|
209
|
+
# @return [String]
|
|
210
|
+
attr_accessor :occupation_title
|
|
211
|
+
|
|
212
|
+
# [Type of occupation](#/rest/models/structures/occupation) for the user
|
|
213
|
+
# @return [Occupations]
|
|
214
|
+
attr_accessor :occupation_type
|
|
215
|
+
|
|
216
|
+
# [Type of occupation](#/rest/models/structures/occupation) for the user
|
|
217
|
+
# @return [String]
|
|
218
|
+
attr_accessor :phone_number
|
|
219
|
+
|
|
220
|
+
# Throughout the PayQuicker API, the usage of the 2-letter alpha code is
|
|
221
|
+
# used in place of the country name, e.g., for bank country or residential
|
|
222
|
+
# country.
|
|
223
|
+
# The 2-letter codes adhere to the ISO 3166-1 spec and are listed here for
|
|
224
|
+
# convenience.
|
|
225
|
+
# @return [Countries]
|
|
226
|
+
attr_accessor :phone_number_country
|
|
227
|
+
|
|
228
|
+
# Throughout the PayQuicker API, the usage of the 2-letter alpha code is
|
|
229
|
+
# used in place of the country name, e.g., for bank country or residential
|
|
230
|
+
# country.
|
|
231
|
+
# The 2-letter codes adhere to the ISO 3166-1 spec and are listed here for
|
|
232
|
+
# convenience.
|
|
233
|
+
# @return [String]
|
|
234
|
+
attr_accessor :postal_code
|
|
235
|
+
|
|
236
|
+
# [Program identifier](#/rest/models/structures/program-user-id) for the
|
|
237
|
+
# user
|
|
238
|
+
# @return [String]
|
|
239
|
+
attr_accessor :program_user_id
|
|
240
|
+
|
|
241
|
+
# [Program identifier](#/rest/models/structures/program-user-id) for the
|
|
242
|
+
# user
|
|
243
|
+
# @return [String]
|
|
244
|
+
attr_accessor :region
|
|
245
|
+
|
|
246
|
+
# Status of the user [User status
|
|
247
|
+
# type](#/rest/models/structures/user-status)
|
|
248
|
+
# @return [UserStatuses]
|
|
249
|
+
attr_accessor :status
|
|
250
|
+
|
|
251
|
+
# Tax [resident status type](#/rest/models/structures/tax-resident-status)
|
|
252
|
+
# @return [TaxResidentStatuses]
|
|
253
|
+
attr_accessor :tax_resident_status
|
|
254
|
+
|
|
255
|
+
# Account holder's profile [type](#/rest/models/structures/user-type)
|
|
256
|
+
# @return [UserTypes]
|
|
257
|
+
attr_accessor :user_type
|
|
258
|
+
|
|
259
|
+
# Account holder's profile [type](#/rest/models/structures/user-type)
|
|
260
|
+
# @return [Array[HateoasSelfRef]]
|
|
261
|
+
attr_accessor :links
|
|
262
|
+
|
|
263
|
+
# A mapping from model property names to API property names.
|
|
264
|
+
def self.names
|
|
265
|
+
@_hash = {} if @_hash.nil?
|
|
266
|
+
@_hash['token'] = 'token'
|
|
267
|
+
@_hash['address_line1'] = 'addressLine1'
|
|
268
|
+
@_hash['address_line2'] = 'addressLine2'
|
|
269
|
+
@_hash['address_line3'] = 'addressLine3'
|
|
270
|
+
@_hash['business_address_line1'] = 'businessAddressLine1'
|
|
271
|
+
@_hash['business_address_line2'] = 'businessAddressLine2'
|
|
272
|
+
@_hash['business_address_line3'] = 'businessAddressLine3'
|
|
273
|
+
@_hash['business_address_type'] = 'businessAddressType'
|
|
274
|
+
@_hash['business_city'] = 'businessCity'
|
|
275
|
+
@_hash['business_contact_role'] = 'businessContactRole'
|
|
276
|
+
@_hash['business_country'] = 'businessCountry'
|
|
277
|
+
@_hash['business_name'] = 'businessName'
|
|
278
|
+
@_hash['business_postal_code'] = 'businessPostalCode'
|
|
279
|
+
@_hash['business_region'] = 'businessRegion'
|
|
280
|
+
@_hash['city'] = 'city'
|
|
281
|
+
@_hash['country'] = 'country'
|
|
282
|
+
@_hash['country_of_birth'] = 'countryOfBirth'
|
|
283
|
+
@_hash['country_of_nationality'] = 'countryOfNationality'
|
|
284
|
+
@_hash['created_on'] = 'createdOn'
|
|
285
|
+
@_hash['currency'] = 'currency'
|
|
286
|
+
@_hash['date_of_birth'] = 'dateOfBirth'
|
|
287
|
+
@_hash['email'] = 'email'
|
|
288
|
+
@_hash['employer_id'] = 'employerId'
|
|
289
|
+
@_hash['first_name'] = 'firstName'
|
|
290
|
+
@_hash['gender'] = 'gender'
|
|
291
|
+
@_hash['government_id'] = 'governmentId'
|
|
292
|
+
@_hash['government_id_type'] = 'governmentIdType'
|
|
293
|
+
@_hash['language'] = 'language'
|
|
294
|
+
@_hash['last_name'] = 'lastName'
|
|
295
|
+
@_hash['mailing_address_line1'] = 'mailingAddressLine1'
|
|
296
|
+
@_hash['mailing_address_line2'] = 'mailingAddressLine2'
|
|
297
|
+
@_hash['mailing_address_line3'] = 'mailingAddressLine3'
|
|
298
|
+
@_hash['mailing_city'] = 'mailingCity'
|
|
299
|
+
@_hash['mailing_country'] = 'mailingCountry'
|
|
300
|
+
@_hash['mailing_postal_code'] = 'mailingPostalCode'
|
|
301
|
+
@_hash['mailing_region'] = 'mailingRegion'
|
|
302
|
+
@_hash['mobile_number'] = 'mobileNumber'
|
|
303
|
+
@_hash['mobile_number_country'] = 'mobileNumberCountry'
|
|
304
|
+
@_hash['occupation_title'] = 'occupationTitle'
|
|
305
|
+
@_hash['occupation_type'] = 'occupationType'
|
|
306
|
+
@_hash['phone_number'] = 'phoneNumber'
|
|
307
|
+
@_hash['phone_number_country'] = 'phoneNumberCountry'
|
|
308
|
+
@_hash['postal_code'] = 'postalCode'
|
|
309
|
+
@_hash['program_user_id'] = 'programUserId'
|
|
310
|
+
@_hash['region'] = 'region'
|
|
311
|
+
@_hash['status'] = 'status'
|
|
312
|
+
@_hash['tax_resident_status'] = 'taxResidentStatus'
|
|
313
|
+
@_hash['user_type'] = 'userType'
|
|
314
|
+
@_hash['links'] = 'links'
|
|
315
|
+
@_hash
|
|
316
|
+
end
|
|
317
|
+
|
|
318
|
+
# An array for optional fields
|
|
319
|
+
def self.optionals
|
|
320
|
+
%w[
|
|
321
|
+
token
|
|
322
|
+
address_line1
|
|
323
|
+
address_line2
|
|
324
|
+
address_line3
|
|
325
|
+
business_address_line1
|
|
326
|
+
business_address_line2
|
|
327
|
+
business_address_line3
|
|
328
|
+
business_address_type
|
|
329
|
+
business_city
|
|
330
|
+
business_contact_role
|
|
331
|
+
business_country
|
|
332
|
+
business_name
|
|
333
|
+
business_postal_code
|
|
334
|
+
business_region
|
|
335
|
+
city
|
|
336
|
+
country
|
|
337
|
+
country_of_birth
|
|
338
|
+
country_of_nationality
|
|
339
|
+
created_on
|
|
340
|
+
currency
|
|
341
|
+
date_of_birth
|
|
342
|
+
email
|
|
343
|
+
employer_id
|
|
344
|
+
first_name
|
|
345
|
+
gender
|
|
346
|
+
government_id
|
|
347
|
+
government_id_type
|
|
348
|
+
language
|
|
349
|
+
last_name
|
|
350
|
+
mailing_address_line1
|
|
351
|
+
mailing_address_line2
|
|
352
|
+
mailing_address_line3
|
|
353
|
+
mailing_city
|
|
354
|
+
mailing_country
|
|
355
|
+
mailing_postal_code
|
|
356
|
+
mailing_region
|
|
357
|
+
mobile_number
|
|
358
|
+
mobile_number_country
|
|
359
|
+
occupation_title
|
|
360
|
+
occupation_type
|
|
361
|
+
phone_number
|
|
362
|
+
phone_number_country
|
|
363
|
+
postal_code
|
|
364
|
+
program_user_id
|
|
365
|
+
region
|
|
366
|
+
status
|
|
367
|
+
tax_resident_status
|
|
368
|
+
user_type
|
|
369
|
+
links
|
|
370
|
+
]
|
|
371
|
+
end
|
|
372
|
+
|
|
373
|
+
# An array for nullable fields
|
|
374
|
+
def self.nullables
|
|
375
|
+
[]
|
|
376
|
+
end
|
|
377
|
+
|
|
378
|
+
def initialize(token = SKIP, address_line1 = SKIP, address_line2 = SKIP,
|
|
379
|
+
address_line3 = SKIP, business_address_line1 = SKIP,
|
|
380
|
+
business_address_line2 = SKIP, business_address_line3 = SKIP,
|
|
381
|
+
business_address_type = SKIP, business_city = SKIP,
|
|
382
|
+
business_contact_role = SKIP, business_country = SKIP,
|
|
383
|
+
business_name = SKIP, business_postal_code = SKIP,
|
|
384
|
+
business_region = SKIP, city = SKIP, country = SKIP,
|
|
385
|
+
country_of_birth = SKIP, country_of_nationality = SKIP,
|
|
386
|
+
created_on = SKIP, currency = Currencies::USD,
|
|
387
|
+
date_of_birth = SKIP, email = SKIP, employer_id = SKIP,
|
|
388
|
+
first_name = SKIP, gender = SKIP, government_id = SKIP,
|
|
389
|
+
government_id_type = SKIP, language = SKIP, last_name = SKIP,
|
|
390
|
+
mailing_address_line1 = SKIP, mailing_address_line2 = SKIP,
|
|
391
|
+
mailing_address_line3 = SKIP, mailing_city = SKIP,
|
|
392
|
+
mailing_country = SKIP, mailing_postal_code = SKIP,
|
|
393
|
+
mailing_region = SKIP, mobile_number = SKIP,
|
|
394
|
+
mobile_number_country = SKIP, occupation_title = SKIP,
|
|
395
|
+
occupation_type = SKIP, phone_number = SKIP,
|
|
396
|
+
phone_number_country = SKIP, postal_code = SKIP,
|
|
397
|
+
program_user_id = SKIP, region = SKIP, status = SKIP,
|
|
398
|
+
tax_resident_status = SKIP, user_type = SKIP, links = SKIP,
|
|
399
|
+
additional_properties = {})
|
|
400
|
+
# Add additional model properties to the instance.
|
|
401
|
+
additional_properties.each do |_name, _value|
|
|
402
|
+
instance_variable_set("@#{_name}", _value)
|
|
403
|
+
end
|
|
404
|
+
|
|
405
|
+
@token = token unless token == SKIP
|
|
406
|
+
@address_line1 = address_line1 unless address_line1 == SKIP
|
|
407
|
+
@address_line2 = address_line2 unless address_line2 == SKIP
|
|
408
|
+
@address_line3 = address_line3 unless address_line3 == SKIP
|
|
409
|
+
@business_address_line1 = business_address_line1 unless business_address_line1 == SKIP
|
|
410
|
+
@business_address_line2 = business_address_line2 unless business_address_line2 == SKIP
|
|
411
|
+
@business_address_line3 = business_address_line3 unless business_address_line3 == SKIP
|
|
412
|
+
@business_address_type = business_address_type unless business_address_type == SKIP
|
|
413
|
+
@business_city = business_city unless business_city == SKIP
|
|
414
|
+
@business_contact_role = business_contact_role unless business_contact_role == SKIP
|
|
415
|
+
@business_country = business_country unless business_country == SKIP
|
|
416
|
+
@business_name = business_name unless business_name == SKIP
|
|
417
|
+
@business_postal_code = business_postal_code unless business_postal_code == SKIP
|
|
418
|
+
@business_region = business_region unless business_region == SKIP
|
|
419
|
+
@city = city unless city == SKIP
|
|
420
|
+
@country = country unless country == SKIP
|
|
421
|
+
@country_of_birth = country_of_birth unless country_of_birth == SKIP
|
|
422
|
+
@country_of_nationality = country_of_nationality unless country_of_nationality == SKIP
|
|
423
|
+
@created_on = created_on unless created_on == SKIP
|
|
424
|
+
@currency = currency unless currency == SKIP
|
|
425
|
+
@date_of_birth = date_of_birth unless date_of_birth == SKIP
|
|
426
|
+
@email = email unless email == SKIP
|
|
427
|
+
@employer_id = employer_id unless employer_id == SKIP
|
|
428
|
+
@first_name = first_name unless first_name == SKIP
|
|
429
|
+
@gender = gender unless gender == SKIP
|
|
430
|
+
@government_id = government_id unless government_id == SKIP
|
|
431
|
+
@government_id_type = government_id_type unless government_id_type == SKIP
|
|
432
|
+
@language = language unless language == SKIP
|
|
433
|
+
@last_name = last_name unless last_name == SKIP
|
|
434
|
+
@mailing_address_line1 = mailing_address_line1 unless mailing_address_line1 == SKIP
|
|
435
|
+
@mailing_address_line2 = mailing_address_line2 unless mailing_address_line2 == SKIP
|
|
436
|
+
@mailing_address_line3 = mailing_address_line3 unless mailing_address_line3 == SKIP
|
|
437
|
+
@mailing_city = mailing_city unless mailing_city == SKIP
|
|
438
|
+
@mailing_country = mailing_country unless mailing_country == SKIP
|
|
439
|
+
@mailing_postal_code = mailing_postal_code unless mailing_postal_code == SKIP
|
|
440
|
+
@mailing_region = mailing_region unless mailing_region == SKIP
|
|
441
|
+
@mobile_number = mobile_number unless mobile_number == SKIP
|
|
442
|
+
@mobile_number_country = mobile_number_country unless mobile_number_country == SKIP
|
|
443
|
+
@occupation_title = occupation_title unless occupation_title == SKIP
|
|
444
|
+
@occupation_type = occupation_type unless occupation_type == SKIP
|
|
445
|
+
@phone_number = phone_number unless phone_number == SKIP
|
|
446
|
+
@phone_number_country = phone_number_country unless phone_number_country == SKIP
|
|
447
|
+
@postal_code = postal_code unless postal_code == SKIP
|
|
448
|
+
@program_user_id = program_user_id unless program_user_id == SKIP
|
|
449
|
+
@region = region unless region == SKIP
|
|
450
|
+
@status = status unless status == SKIP
|
|
451
|
+
@tax_resident_status = tax_resident_status unless tax_resident_status == SKIP
|
|
452
|
+
@user_type = user_type unless user_type == SKIP
|
|
453
|
+
@links = links unless links == SKIP
|
|
454
|
+
end
|
|
455
|
+
|
|
456
|
+
# Creates an instance of the object from a hash.
|
|
457
|
+
def self.from_hash(hash)
|
|
458
|
+
return nil unless hash
|
|
459
|
+
|
|
460
|
+
# Extract variables from the hash.
|
|
461
|
+
token = hash.key?('token') ? hash['token'] : SKIP
|
|
462
|
+
address_line1 = hash.key?('addressLine1') ? hash['addressLine1'] : SKIP
|
|
463
|
+
address_line2 = hash.key?('addressLine2') ? hash['addressLine2'] : SKIP
|
|
464
|
+
address_line3 = hash.key?('addressLine3') ? hash['addressLine3'] : SKIP
|
|
465
|
+
business_address_line1 =
|
|
466
|
+
hash.key?('businessAddressLine1') ? hash['businessAddressLine1'] : SKIP
|
|
467
|
+
business_address_line2 =
|
|
468
|
+
hash.key?('businessAddressLine2') ? hash['businessAddressLine2'] : SKIP
|
|
469
|
+
business_address_line3 =
|
|
470
|
+
hash.key?('businessAddressLine3') ? hash['businessAddressLine3'] : SKIP
|
|
471
|
+
business_address_type =
|
|
472
|
+
hash.key?('businessAddressType') ? hash['businessAddressType'] : SKIP
|
|
473
|
+
business_city = hash.key?('businessCity') ? hash['businessCity'] : SKIP
|
|
474
|
+
business_contact_role =
|
|
475
|
+
hash.key?('businessContactRole') ? hash['businessContactRole'] : SKIP
|
|
476
|
+
business_country =
|
|
477
|
+
hash.key?('businessCountry') ? hash['businessCountry'] : SKIP
|
|
478
|
+
business_name = hash.key?('businessName') ? hash['businessName'] : SKIP
|
|
479
|
+
business_postal_code =
|
|
480
|
+
hash.key?('businessPostalCode') ? hash['businessPostalCode'] : SKIP
|
|
481
|
+
business_region =
|
|
482
|
+
hash.key?('businessRegion') ? hash['businessRegion'] : SKIP
|
|
483
|
+
city = hash.key?('city') ? hash['city'] : SKIP
|
|
484
|
+
country = hash.key?('country') ? hash['country'] : SKIP
|
|
485
|
+
country_of_birth =
|
|
486
|
+
hash.key?('countryOfBirth') ? hash['countryOfBirth'] : SKIP
|
|
487
|
+
country_of_nationality =
|
|
488
|
+
hash.key?('countryOfNationality') ? hash['countryOfNationality'] : SKIP
|
|
489
|
+
created_on = if hash.key?('createdOn')
|
|
490
|
+
(DateTimeHelper.from_rfc3339(hash['createdOn']) if hash['createdOn'])
|
|
491
|
+
else
|
|
492
|
+
SKIP
|
|
493
|
+
end
|
|
494
|
+
currency = hash['currency'] ||= Currencies::USD
|
|
495
|
+
date_of_birth = if hash.key?('dateOfBirth')
|
|
496
|
+
(DateTimeHelper.from_rfc3339(hash['dateOfBirth']) if hash['dateOfBirth'])
|
|
497
|
+
else
|
|
498
|
+
SKIP
|
|
499
|
+
end
|
|
500
|
+
email = hash.key?('email') ? hash['email'] : SKIP
|
|
501
|
+
employer_id = hash.key?('employerId') ? hash['employerId'] : SKIP
|
|
502
|
+
first_name = hash.key?('firstName') ? hash['firstName'] : SKIP
|
|
503
|
+
gender = hash.key?('gender') ? hash['gender'] : SKIP
|
|
504
|
+
government_id = hash.key?('governmentId') ? hash['governmentId'] : SKIP
|
|
505
|
+
government_id_type =
|
|
506
|
+
hash.key?('governmentIdType') ? hash['governmentIdType'] : SKIP
|
|
507
|
+
language = hash.key?('language') ? hash['language'] : SKIP
|
|
508
|
+
last_name = hash.key?('lastName') ? hash['lastName'] : SKIP
|
|
509
|
+
mailing_address_line1 =
|
|
510
|
+
hash.key?('mailingAddressLine1') ? hash['mailingAddressLine1'] : SKIP
|
|
511
|
+
mailing_address_line2 =
|
|
512
|
+
hash.key?('mailingAddressLine2') ? hash['mailingAddressLine2'] : SKIP
|
|
513
|
+
mailing_address_line3 =
|
|
514
|
+
hash.key?('mailingAddressLine3') ? hash['mailingAddressLine3'] : SKIP
|
|
515
|
+
mailing_city = hash.key?('mailingCity') ? hash['mailingCity'] : SKIP
|
|
516
|
+
mailing_country =
|
|
517
|
+
hash.key?('mailingCountry') ? hash['mailingCountry'] : SKIP
|
|
518
|
+
mailing_postal_code =
|
|
519
|
+
hash.key?('mailingPostalCode') ? hash['mailingPostalCode'] : SKIP
|
|
520
|
+
mailing_region = hash.key?('mailingRegion') ? hash['mailingRegion'] : SKIP
|
|
521
|
+
mobile_number = hash.key?('mobileNumber') ? hash['mobileNumber'] : SKIP
|
|
522
|
+
mobile_number_country =
|
|
523
|
+
hash.key?('mobileNumberCountry') ? hash['mobileNumberCountry'] : SKIP
|
|
524
|
+
occupation_title =
|
|
525
|
+
hash.key?('occupationTitle') ? hash['occupationTitle'] : SKIP
|
|
526
|
+
occupation_type =
|
|
527
|
+
hash.key?('occupationType') ? hash['occupationType'] : SKIP
|
|
528
|
+
phone_number = hash.key?('phoneNumber') ? hash['phoneNumber'] : SKIP
|
|
529
|
+
phone_number_country =
|
|
530
|
+
hash.key?('phoneNumberCountry') ? hash['phoneNumberCountry'] : SKIP
|
|
531
|
+
postal_code = hash.key?('postalCode') ? hash['postalCode'] : SKIP
|
|
532
|
+
program_user_id =
|
|
533
|
+
hash.key?('programUserId') ? hash['programUserId'] : SKIP
|
|
534
|
+
region = hash.key?('region') ? hash['region'] : SKIP
|
|
535
|
+
status = hash.key?('status') ? hash['status'] : SKIP
|
|
536
|
+
tax_resident_status =
|
|
537
|
+
hash.key?('taxResidentStatus') ? hash['taxResidentStatus'] : SKIP
|
|
538
|
+
user_type = hash.key?('userType') ? hash['userType'] : SKIP
|
|
539
|
+
# Parameter is an array, so we need to iterate through it
|
|
540
|
+
links = nil
|
|
541
|
+
unless hash['links'].nil?
|
|
542
|
+
links = []
|
|
543
|
+
hash['links'].each do |structure|
|
|
544
|
+
links << (HateoasSelfRef.from_hash(structure) if structure)
|
|
545
|
+
end
|
|
546
|
+
end
|
|
547
|
+
|
|
548
|
+
links = SKIP unless hash.key?('links')
|
|
549
|
+
|
|
550
|
+
# Clean out expected properties from Hash.
|
|
551
|
+
additional_properties = hash.reject { |k, _| names.value?(k) }
|
|
552
|
+
|
|
553
|
+
# Create object from extracted values.
|
|
554
|
+
UserObject.new(token,
|
|
555
|
+
address_line1,
|
|
556
|
+
address_line2,
|
|
557
|
+
address_line3,
|
|
558
|
+
business_address_line1,
|
|
559
|
+
business_address_line2,
|
|
560
|
+
business_address_line3,
|
|
561
|
+
business_address_type,
|
|
562
|
+
business_city,
|
|
563
|
+
business_contact_role,
|
|
564
|
+
business_country,
|
|
565
|
+
business_name,
|
|
566
|
+
business_postal_code,
|
|
567
|
+
business_region,
|
|
568
|
+
city,
|
|
569
|
+
country,
|
|
570
|
+
country_of_birth,
|
|
571
|
+
country_of_nationality,
|
|
572
|
+
created_on,
|
|
573
|
+
currency,
|
|
574
|
+
date_of_birth,
|
|
575
|
+
email,
|
|
576
|
+
employer_id,
|
|
577
|
+
first_name,
|
|
578
|
+
gender,
|
|
579
|
+
government_id,
|
|
580
|
+
government_id_type,
|
|
581
|
+
language,
|
|
582
|
+
last_name,
|
|
583
|
+
mailing_address_line1,
|
|
584
|
+
mailing_address_line2,
|
|
585
|
+
mailing_address_line3,
|
|
586
|
+
mailing_city,
|
|
587
|
+
mailing_country,
|
|
588
|
+
mailing_postal_code,
|
|
589
|
+
mailing_region,
|
|
590
|
+
mobile_number,
|
|
591
|
+
mobile_number_country,
|
|
592
|
+
occupation_title,
|
|
593
|
+
occupation_type,
|
|
594
|
+
phone_number,
|
|
595
|
+
phone_number_country,
|
|
596
|
+
postal_code,
|
|
597
|
+
program_user_id,
|
|
598
|
+
region,
|
|
599
|
+
status,
|
|
600
|
+
tax_resident_status,
|
|
601
|
+
user_type,
|
|
602
|
+
links,
|
|
603
|
+
additional_properties)
|
|
604
|
+
end
|
|
605
|
+
|
|
606
|
+
def to_custom_created_on
|
|
607
|
+
DateTimeHelper.to_rfc3339(created_on)
|
|
608
|
+
end
|
|
609
|
+
|
|
610
|
+
def to_custom_date_of_birth
|
|
611
|
+
DateTimeHelper.to_rfc3339(date_of_birth)
|
|
612
|
+
end
|
|
613
|
+
|
|
614
|
+
# Provides a human-readable string representation of the object.
|
|
615
|
+
def to_s
|
|
616
|
+
class_name = self.class.name.split('::').last
|
|
617
|
+
"<#{class_name} token: #{@token}, address_line1: #{@address_line1}, address_line2:"\
|
|
618
|
+
" #{@address_line2}, address_line3: #{@address_line3}, business_address_line1:"\
|
|
619
|
+
" #{@business_address_line1}, business_address_line2: #{@business_address_line2},"\
|
|
620
|
+
" business_address_line3: #{@business_address_line3}, business_address_type:"\
|
|
621
|
+
" #{@business_address_type}, business_city: #{@business_city}, business_contact_role:"\
|
|
622
|
+
" #{@business_contact_role}, business_country: #{@business_country}, business_name:"\
|
|
623
|
+
" #{@business_name}, business_postal_code: #{@business_postal_code}, business_region:"\
|
|
624
|
+
" #{@business_region}, city: #{@city}, country: #{@country}, country_of_birth:"\
|
|
625
|
+
" #{@country_of_birth}, country_of_nationality: #{@country_of_nationality}, created_on:"\
|
|
626
|
+
" #{@created_on}, currency: #{@currency}, date_of_birth: #{@date_of_birth}, email:"\
|
|
627
|
+
" #{@email}, employer_id: #{@employer_id}, first_name: #{@first_name}, gender: #{@gender},"\
|
|
628
|
+
" government_id: #{@government_id}, government_id_type: #{@government_id_type}, language:"\
|
|
629
|
+
" #{@language}, last_name: #{@last_name}, mailing_address_line1: #{@mailing_address_line1},"\
|
|
630
|
+
" mailing_address_line2: #{@mailing_address_line2}, mailing_address_line3:"\
|
|
631
|
+
" #{@mailing_address_line3}, mailing_city: #{@mailing_city}, mailing_country:"\
|
|
632
|
+
" #{@mailing_country}, mailing_postal_code: #{@mailing_postal_code}, mailing_region:"\
|
|
633
|
+
" #{@mailing_region}, mobile_number: #{@mobile_number}, mobile_number_country:"\
|
|
634
|
+
" #{@mobile_number_country}, occupation_title: #{@occupation_title}, occupation_type:"\
|
|
635
|
+
" #{@occupation_type}, phone_number: #{@phone_number}, phone_number_country:"\
|
|
636
|
+
" #{@phone_number_country}, postal_code: #{@postal_code}, program_user_id:"\
|
|
637
|
+
" #{@program_user_id}, region: #{@region}, status: #{@status}, tax_resident_status:"\
|
|
638
|
+
" #{@tax_resident_status}, user_type: #{@user_type}, links: #{@links},"\
|
|
639
|
+
" additional_properties: #{get_additional_properties}>"
|
|
640
|
+
end
|
|
641
|
+
|
|
642
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
643
|
+
def inspect
|
|
644
|
+
class_name = self.class.name.split('::').last
|
|
645
|
+
"<#{class_name} token: #{@token.inspect}, address_line1: #{@address_line1.inspect},"\
|
|
646
|
+
" address_line2: #{@address_line2.inspect}, address_line3: #{@address_line3.inspect},"\
|
|
647
|
+
" business_address_line1: #{@business_address_line1.inspect}, business_address_line2:"\
|
|
648
|
+
" #{@business_address_line2.inspect}, business_address_line3:"\
|
|
649
|
+
" #{@business_address_line3.inspect}, business_address_type:"\
|
|
650
|
+
" #{@business_address_type.inspect}, business_city: #{@business_city.inspect},"\
|
|
651
|
+
" business_contact_role: #{@business_contact_role.inspect}, business_country:"\
|
|
652
|
+
" #{@business_country.inspect}, business_name: #{@business_name.inspect},"\
|
|
653
|
+
" business_postal_code: #{@business_postal_code.inspect}, business_region:"\
|
|
654
|
+
" #{@business_region.inspect}, city: #{@city.inspect}, country: #{@country.inspect},"\
|
|
655
|
+
" country_of_birth: #{@country_of_birth.inspect}, country_of_nationality:"\
|
|
656
|
+
" #{@country_of_nationality.inspect}, created_on: #{@created_on.inspect}, currency:"\
|
|
657
|
+
" #{@currency.inspect}, date_of_birth: #{@date_of_birth.inspect}, email: #{@email.inspect},"\
|
|
658
|
+
" employer_id: #{@employer_id.inspect}, first_name: #{@first_name.inspect}, gender:"\
|
|
659
|
+
" #{@gender.inspect}, government_id: #{@government_id.inspect}, government_id_type:"\
|
|
660
|
+
" #{@government_id_type.inspect}, language: #{@language.inspect}, last_name:"\
|
|
661
|
+
" #{@last_name.inspect}, mailing_address_line1: #{@mailing_address_line1.inspect},"\
|
|
662
|
+
" mailing_address_line2: #{@mailing_address_line2.inspect}, mailing_address_line3:"\
|
|
663
|
+
" #{@mailing_address_line3.inspect}, mailing_city: #{@mailing_city.inspect},"\
|
|
664
|
+
" mailing_country: #{@mailing_country.inspect}, mailing_postal_code:"\
|
|
665
|
+
" #{@mailing_postal_code.inspect}, mailing_region: #{@mailing_region.inspect},"\
|
|
666
|
+
" mobile_number: #{@mobile_number.inspect}, mobile_number_country:"\
|
|
667
|
+
" #{@mobile_number_country.inspect}, occupation_title: #{@occupation_title.inspect},"\
|
|
668
|
+
" occupation_type: #{@occupation_type.inspect}, phone_number: #{@phone_number.inspect},"\
|
|
669
|
+
" phone_number_country: #{@phone_number_country.inspect}, postal_code:"\
|
|
670
|
+
" #{@postal_code.inspect}, program_user_id: #{@program_user_id.inspect}, region:"\
|
|
671
|
+
" #{@region.inspect}, status: #{@status.inspect}, tax_resident_status:"\
|
|
672
|
+
" #{@tax_resident_status.inspect}, user_type: #{@user_type.inspect}, links:"\
|
|
673
|
+
" #{@links.inspect}, additional_properties: #{get_additional_properties}>"
|
|
674
|
+
end
|
|
675
|
+
end
|
|
676
|
+
end
|