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.
Files changed (268) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +28 -0
  3. data/README.md +208 -0
  4. data/bin/console +15 -0
  5. data/lib/pay_quicker_sdk/api_helper.rb +10 -0
  6. data/lib/pay_quicker_sdk/client.rb +205 -0
  7. data/lib/pay_quicker_sdk/configuration.rb +229 -0
  8. data/lib/pay_quicker_sdk/controllers/agreements_controller.rb +129 -0
  9. data/lib/pay_quicker_sdk/controllers/balances_controller.rb +156 -0
  10. data/lib/pay_quicker_sdk/controllers/bank_accounts_controller.rb +587 -0
  11. data/lib/pay_quicker_sdk/controllers/base_controller.rb +60 -0
  12. data/lib/pay_quicker_sdk/controllers/client_side_controller.rb +237 -0
  13. data/lib/pay_quicker_sdk/controllers/compliance_controller.rb +77 -0
  14. data/lib/pay_quicker_sdk/controllers/documents_controller.rb +233 -0
  15. data/lib/pay_quicker_sdk/controllers/electronic_wallets_controller.rb +280 -0
  16. data/lib/pay_quicker_sdk/controllers/events_controller.rb +75 -0
  17. data/lib/pay_quicker_sdk/controllers/invitations_controller.rb +179 -0
  18. data/lib/pay_quicker_sdk/controllers/jobs_controller.rb +154 -0
  19. data/lib/pay_quicker_sdk/controllers/o_auth_authorization_controller.rb +43 -0
  20. data/lib/pay_quicker_sdk/controllers/payments_controller.rb +217 -0
  21. data/lib/pay_quicker_sdk/controllers/prepaid_cards_controller.rb +262 -0
  22. data/lib/pay_quicker_sdk/controllers/program_controller.rb +88 -0
  23. data/lib/pay_quicker_sdk/controllers/receipts_controller.rb +287 -0
  24. data/lib/pay_quicker_sdk/controllers/spendback_controller.rb +201 -0
  25. data/lib/pay_quicker_sdk/controllers/spendback_refunds_controller.rb +232 -0
  26. data/lib/pay_quicker_sdk/controllers/statements_controller.rb +197 -0
  27. data/lib/pay_quicker_sdk/controllers/transfers_controller.rb +259 -0
  28. data/lib/pay_quicker_sdk/controllers/users_controller.rb +151 -0
  29. data/lib/pay_quicker_sdk/controllers/webhooks_controller.rb +173 -0
  30. data/lib/pay_quicker_sdk/exceptions/api_error_result_exception.rb +80 -0
  31. data/lib/pay_quicker_sdk/exceptions/api_exception.rb +21 -0
  32. data/lib/pay_quicker_sdk/exceptions/o_auth_provider_exception.rb +64 -0
  33. data/lib/pay_quicker_sdk/http/auth/clientside.rb +53 -0
  34. data/lib/pay_quicker_sdk/http/auth/server.rb +156 -0
  35. data/lib/pay_quicker_sdk/http/http_call_back.rb +10 -0
  36. data/lib/pay_quicker_sdk/http/http_method_enum.rb +10 -0
  37. data/lib/pay_quicker_sdk/http/http_request.rb +10 -0
  38. data/lib/pay_quicker_sdk/http/http_response.rb +10 -0
  39. data/lib/pay_quicker_sdk/http/proxy_settings.rb +22 -0
  40. data/lib/pay_quicker_sdk/logging/configuration/api_logging_configuration.rb +186 -0
  41. data/lib/pay_quicker_sdk/logging/sdk_logger.rb +17 -0
  42. data/lib/pay_quicker_sdk/models/addresses.rb +45 -0
  43. data/lib/pay_quicker_sdk/models/agreement_list_result_json.rb +106 -0
  44. data/lib/pay_quicker_sdk/models/agreement_object.rb +120 -0
  45. data/lib/pay_quicker_sdk/models/agreement_result.rb +130 -0
  46. data/lib/pay_quicker_sdk/models/agreement_types.rb +64 -0
  47. data/lib/pay_quicker_sdk/models/authorization_list_result.rb +106 -0
  48. data/lib/pay_quicker_sdk/models/authorization_object.rb +194 -0
  49. data/lib/pay_quicker_sdk/models/balance_list_result.rb +106 -0
  50. data/lib/pay_quicker_sdk/models/balance_object.rb +118 -0
  51. data/lib/pay_quicker_sdk/models/balance_result.rb +128 -0
  52. data/lib/pay_quicker_sdk/models/bank_account_address.rb +132 -0
  53. data/lib/pay_quicker_sdk/models/bank_account_field.rb +83 -0
  54. data/lib/pay_quicker_sdk/models/bank_account_fields.rb +195 -0
  55. data/lib/pay_quicker_sdk/models/bank_account_list_result.rb +106 -0
  56. data/lib/pay_quicker_sdk/models/bank_account_object.rb +226 -0
  57. data/lib/pay_quicker_sdk/models/bank_account_ownership.rb +36 -0
  58. data/lib/pay_quicker_sdk/models/bank_account_required_fields.rb +125 -0
  59. data/lib/pay_quicker_sdk/models/bank_account_requirement.rb +142 -0
  60. data/lib/pay_quicker_sdk/models/bank_account_requirement_format.rb +93 -0
  61. data/lib/pay_quicker_sdk/models/bank_account_requirement_format_legend.rb +93 -0
  62. data/lib/pay_quicker_sdk/models/bank_account_requirement_list_result.rb +110 -0
  63. data/lib/pay_quicker_sdk/models/bank_account_requirement_validator.rb +86 -0
  64. data/lib/pay_quicker_sdk/models/bank_account_result.rb +234 -0
  65. data/lib/pay_quicker_sdk/models/bank_account_statuses.rb +49 -0
  66. data/lib/pay_quicker_sdk/models/bank_account_types.rb +47 -0
  67. data/lib/pay_quicker_sdk/models/bank_types.rb +68 -0
  68. data/lib/pay_quicker_sdk/models/base_model.rb +122 -0
  69. data/lib/pay_quicker_sdk/models/business_contact_roles.rb +44 -0
  70. data/lib/pay_quicker_sdk/models/card_networks.rb +36 -0
  71. data/lib/pay_quicker_sdk/models/card_processors.rb +52 -0
  72. data/lib/pay_quicker_sdk/models/category_types.rb +36 -0
  73. data/lib/pay_quicker_sdk/models/countries.rb +1031 -0
  74. data/lib/pay_quicker_sdk/models/countries_alpha_code3.rb +1028 -0
  75. data/lib/pay_quicker_sdk/models/create_invitation.rb +614 -0
  76. data/lib/pay_quicker_sdk/models/create_or_update_bank_account.rb +163 -0
  77. data/lib/pay_quicker_sdk/models/create_or_update_document.rb +82 -0
  78. data/lib/pay_quicker_sdk/models/create_or_update_document_fields.rb +81 -0
  79. data/lib/pay_quicker_sdk/models/create_or_update_electronic_wallet.rb +126 -0
  80. data/lib/pay_quicker_sdk/models/create_or_update_user.rb +614 -0
  81. data/lib/pay_quicker_sdk/models/create_spendback_refund_quote.rb +173 -0
  82. data/lib/pay_quicker_sdk/models/create_webhook_request.rb +82 -0
  83. data/lib/pay_quicker_sdk/models/currencies.rb +700 -0
  84. data/lib/pay_quicker_sdk/models/delivery_details.rb +119 -0
  85. data/lib/pay_quicker_sdk/models/document_details.rb +81 -0
  86. data/lib/pay_quicker_sdk/models/document_list_result.rb +108 -0
  87. data/lib/pay_quicker_sdk/models/document_object.rb +147 -0
  88. data/lib/pay_quicker_sdk/models/document_requirements_list_result.rb +91 -0
  89. data/lib/pay_quicker_sdk/models/document_result.rb +157 -0
  90. data/lib/pay_quicker_sdk/models/document_status_types.rb +48 -0
  91. data/lib/pay_quicker_sdk/models/document_types.rb +264 -0
  92. data/lib/pay_quicker_sdk/models/electronic_funds_transfer_types.rb +36 -0
  93. data/lib/pay_quicker_sdk/models/electronic_transfer_failure_types.rb +97 -0
  94. data/lib/pay_quicker_sdk/models/electronic_transfer_status_types.rb +46 -0
  95. data/lib/pay_quicker_sdk/models/electronic_wallet_field.rb +83 -0
  96. data/lib/pay_quicker_sdk/models/electronic_wallet_fields.rb +41 -0
  97. data/lib/pay_quicker_sdk/models/electronic_wallet_list_result.rb +106 -0
  98. data/lib/pay_quicker_sdk/models/electronic_wallet_object.rb +186 -0
  99. data/lib/pay_quicker_sdk/models/electronic_wallet_required_fields.rb +125 -0
  100. data/lib/pay_quicker_sdk/models/electronic_wallet_requirement.rb +166 -0
  101. data/lib/pay_quicker_sdk/models/electronic_wallet_requirement_format.rb +93 -0
  102. data/lib/pay_quicker_sdk/models/electronic_wallet_requirement_format_legend.rb +93 -0
  103. data/lib/pay_quicker_sdk/models/electronic_wallet_requirement_list_result.rb +110 -0
  104. data/lib/pay_quicker_sdk/models/electronic_wallet_requirement_validator.rb +86 -0
  105. data/lib/pay_quicker_sdk/models/electronic_wallet_result.rb +195 -0
  106. data/lib/pay_quicker_sdk/models/electronic_wallet_statuses.rb +48 -0
  107. data/lib/pay_quicker_sdk/models/electronic_wallet_type.rb +99 -0
  108. data/lib/pay_quicker_sdk/models/electronic_wallet_types.rb +368 -0
  109. data/lib/pay_quicker_sdk/models/event_category_types.rb +40 -0
  110. data/lib/pay_quicker_sdk/models/event_list_result.rb +106 -0
  111. data/lib/pay_quicker_sdk/models/event_object.rb +191 -0
  112. data/lib/pay_quicker_sdk/models/event_requirement_categories.rb +56 -0
  113. data/lib/pay_quicker_sdk/models/event_requirements.rb +105 -0
  114. data/lib/pay_quicker_sdk/models/event_statuses.rb +52 -0
  115. data/lib/pay_quicker_sdk/models/event_types.rb +36 -0
  116. data/lib/pay_quicker_sdk/models/expected_delivery_types.rb +36 -0
  117. data/lib/pay_quicker_sdk/models/fee_configuration.rb +154 -0
  118. data/lib/pay_quicker_sdk/models/fee_distribution.rb +159 -0
  119. data/lib/pay_quicker_sdk/models/fee_responsibility_parties.rb +44 -0
  120. data/lib/pay_quicker_sdk/models/fee_responsibility_sources.rb +36 -0
  121. data/lib/pay_quicker_sdk/models/fee_sources.rb +40 -0
  122. data/lib/pay_quicker_sdk/models/fee_values.rb +36 -0
  123. data/lib/pay_quicker_sdk/models/fees.rb +222 -0
  124. data/lib/pay_quicker_sdk/models/fx_rate.rb +144 -0
  125. data/lib/pay_quicker_sdk/models/gateway_payment_job.rb +131 -0
  126. data/lib/pay_quicker_sdk/models/gateway_payment_job_quote.rb +167 -0
  127. data/lib/pay_quicker_sdk/models/gateway_payment_quote.rb +220 -0
  128. data/lib/pay_quicker_sdk/models/gateway_spendback_quote.rb +167 -0
  129. data/lib/pay_quicker_sdk/models/gateway_transfer_quote.rb +195 -0
  130. data/lib/pay_quicker_sdk/models/genders.rb +48 -0
  131. data/lib/pay_quicker_sdk/models/government_ids.rb +45 -0
  132. data/lib/pay_quicker_sdk/models/hateoas_relationship.rb +69 -0
  133. data/lib/pay_quicker_sdk/models/hateoas_self_ref.rb +84 -0
  134. data/lib/pay_quicker_sdk/models/identity_verification_providers.rb +62 -0
  135. data/lib/pay_quicker_sdk/models/identity_verification_result_sub_types.rb +38 -0
  136. data/lib/pay_quicker_sdk/models/identity_verification_result_types.rb +57 -0
  137. data/lib/pay_quicker_sdk/models/idv_check_list_result.rb +108 -0
  138. data/lib/pay_quicker_sdk/models/idv_check_object.rb +209 -0
  139. data/lib/pay_quicker_sdk/models/idv_check_result.rb +221 -0
  140. data/lib/pay_quicker_sdk/models/invitation_list_result.rb +106 -0
  141. data/lib/pay_quicker_sdk/models/invitation_object.rb +262 -0
  142. data/lib/pay_quicker_sdk/models/invitation_result.rb +272 -0
  143. data/lib/pay_quicker_sdk/models/job_status_types.rb +68 -0
  144. data/lib/pay_quicker_sdk/models/job_types.rb +36 -0
  145. data/lib/pay_quicker_sdk/models/languages.rb +101 -0
  146. data/lib/pay_quicker_sdk/models/list_metadata.rb +116 -0
  147. data/lib/pay_quicker_sdk/models/lock_side_types.rb +37 -0
  148. data/lib/pay_quicker_sdk/models/metadata.rb +72 -0
  149. data/lib/pay_quicker_sdk/models/metadata_items.rb +80 -0
  150. data/lib/pay_quicker_sdk/models/o_auth_provider_error.rb +62 -0
  151. data/lib/pay_quicker_sdk/models/o_auth_scope_server.rb +36 -0
  152. data/lib/pay_quicker_sdk/models/o_auth_token.rb +106 -0
  153. data/lib/pay_quicker_sdk/models/occupations.rb +100 -0
  154. data/lib/pay_quicker_sdk/models/operation_result.rb +72 -0
  155. data/lib/pay_quicker_sdk/models/order_prepaid_card.rb +97 -0
  156. data/lib/pay_quicker_sdk/models/payment_job_list_result.rb +106 -0
  157. data/lib/pay_quicker_sdk/models/payment_job_object.rb +211 -0
  158. data/lib/pay_quicker_sdk/models/payment_job_result.rb +220 -0
  159. data/lib/pay_quicker_sdk/models/payment_list_result.rb +106 -0
  160. data/lib/pay_quicker_sdk/models/payment_object.rb +263 -0
  161. data/lib/pay_quicker_sdk/models/payment_purposes.rb +58 -0
  162. data/lib/pay_quicker_sdk/models/payment_result.rb +272 -0
  163. data/lib/pay_quicker_sdk/models/portal_payment_job.rb +131 -0
  164. data/lib/pay_quicker_sdk/models/portal_payment_job_quote.rb +176 -0
  165. data/lib/pay_quicker_sdk/models/portal_payment_quote.rb +228 -0
  166. data/lib/pay_quicker_sdk/models/portal_spendback_quote.rb +177 -0
  167. data/lib/pay_quicker_sdk/models/portal_transfer_quote.rb +204 -0
  168. data/lib/pay_quicker_sdk/models/prepaid_card_authorizations.rb +129 -0
  169. data/lib/pay_quicker_sdk/models/prepaid_card_capabilities.rb +69 -0
  170. data/lib/pay_quicker_sdk/models/prepaid_card_data_object.rb +136 -0
  171. data/lib/pay_quicker_sdk/models/prepaid_card_data_result.rb +146 -0
  172. data/lib/pay_quicker_sdk/models/prepaid_card_data_token_object.rb +134 -0
  173. data/lib/pay_quicker_sdk/models/prepaid_card_data_token_result.rb +145 -0
  174. data/lib/pay_quicker_sdk/models/prepaid_card_data_type.rb +36 -0
  175. data/lib/pay_quicker_sdk/models/prepaid_card_image_side.rb +36 -0
  176. data/lib/pay_quicker_sdk/models/prepaid_card_list_result.rb +106 -0
  177. data/lib/pay_quicker_sdk/models/prepaid_card_object.rb +243 -0
  178. data/lib/pay_quicker_sdk/models/prepaid_card_pin_object.rb +108 -0
  179. data/lib/pay_quicker_sdk/models/prepaid_card_pin_result.rb +121 -0
  180. data/lib/pay_quicker_sdk/models/prepaid_card_pin_token_object.rb +128 -0
  181. data/lib/pay_quicker_sdk/models/prepaid_card_pin_token_result.rb +139 -0
  182. data/lib/pay_quicker_sdk/models/prepaid_card_replacement_reasons.rb +48 -0
  183. data/lib/pay_quicker_sdk/models/prepaid_card_result.rb +254 -0
  184. data/lib/pay_quicker_sdk/models/prepaid_card_statuses.rb +71 -0
  185. data/lib/pay_quicker_sdk/models/program_list_result.rb +106 -0
  186. data/lib/pay_quicker_sdk/models/program_object.rb +138 -0
  187. data/lib/pay_quicker_sdk/models/program_result.rb +147 -0
  188. data/lib/pay_quicker_sdk/models/program_types.rb +44 -0
  189. data/lib/pay_quicker_sdk/models/receipt_descriptions.rb +84 -0
  190. data/lib/pay_quicker_sdk/models/receipt_details.rb +439 -0
  191. data/lib/pay_quicker_sdk/models/receipt_list_result.rb +106 -0
  192. data/lib/pay_quicker_sdk/models/receipt_object.rb +241 -0
  193. data/lib/pay_quicker_sdk/models/receipt_result.rb +251 -0
  194. data/lib/pay_quicker_sdk/models/receipt_statuses.rb +76 -0
  195. data/lib/pay_quicker_sdk/models/replace_prepaid_card.rb +85 -0
  196. data/lib/pay_quicker_sdk/models/retrieve_card_data.rb +73 -0
  197. data/lib/pay_quicker_sdk/models/retrieve_card_pin.rb +76 -0
  198. data/lib/pay_quicker_sdk/models/sandbox_instance.rb +76 -0
  199. data/lib/pay_quicker_sdk/models/signs.rb +40 -0
  200. data/lib/pay_quicker_sdk/models/spendback_list_result.rb +106 -0
  201. data/lib/pay_quicker_sdk/models/spendback_object.rb +291 -0
  202. data/lib/pay_quicker_sdk/models/spendback_quote_accept_result.rb +301 -0
  203. data/lib/pay_quicker_sdk/models/spendback_refund_list_result.rb +106 -0
  204. data/lib/pay_quicker_sdk/models/spendback_refund_object.rb +251 -0
  205. data/lib/pay_quicker_sdk/models/spendback_refund_result.rb +262 -0
  206. data/lib/pay_quicker_sdk/models/spendback_result.rb +301 -0
  207. data/lib/pay_quicker_sdk/models/statement_list_result.rb +106 -0
  208. data/lib/pay_quicker_sdk/models/statement_object.rb +183 -0
  209. data/lib/pay_quicker_sdk/models/statement_result.rb +192 -0
  210. data/lib/pay_quicker_sdk/models/tax_resident_statuses.rb +40 -0
  211. data/lib/pay_quicker_sdk/models/token_purposes.rb +36 -0
  212. data/lib/pay_quicker_sdk/models/transfer_list_result.rb +106 -0
  213. data/lib/pay_quicker_sdk/models/transfer_method_types.rb +48 -0
  214. data/lib/pay_quicker_sdk/models/transfer_object.rb +309 -0
  215. data/lib/pay_quicker_sdk/models/transfer_result.rb +318 -0
  216. data/lib/pay_quicker_sdk/models/transfer_statuses.rb +76 -0
  217. data/lib/pay_quicker_sdk/models/transfer_types.rb +112 -0
  218. data/lib/pay_quicker_sdk/models/translation.rb +85 -0
  219. data/lib/pay_quicker_sdk/models/uat_instance.rb +48 -0
  220. data/lib/pay_quicker_sdk/models/update_card_pin.rb +87 -0
  221. data/lib/pay_quicker_sdk/models/update_prepaid_card.rb +85 -0
  222. data/lib/pay_quicker_sdk/models/upload_fields.rb +40 -0
  223. data/lib/pay_quicker_sdk/models/user_action.rb +40 -0
  224. data/lib/pay_quicker_sdk/models/user_doc_req_item_docs_items_metadata_items.rb +101 -0
  225. data/lib/pay_quicker_sdk/models/user_doc_req_item_docs_items_metadata_items_name_items.rb +83 -0
  226. data/lib/pay_quicker_sdk/models/user_doc_req_item_docs_items_supplemental_docs_items.rb +92 -0
  227. data/lib/pay_quicker_sdk/models/user_document_requirement_item.rb +105 -0
  228. data/lib/pay_quicker_sdk/models/user_document_requirement_item_documents_items.rb +132 -0
  229. data/lib/pay_quicker_sdk/models/user_event_result.rb +201 -0
  230. data/lib/pay_quicker_sdk/models/user_impact.rb +48 -0
  231. data/lib/pay_quicker_sdk/models/user_list_result.rb +106 -0
  232. data/lib/pay_quicker_sdk/models/user_object.rb +676 -0
  233. data/lib/pay_quicker_sdk/models/user_result.rb +686 -0
  234. data/lib/pay_quicker_sdk/models/user_statuses.rb +40 -0
  235. data/lib/pay_quicker_sdk/models/user_types.rb +36 -0
  236. data/lib/pay_quicker_sdk/models/validator_types.rb +50 -0
  237. data/lib/pay_quicker_sdk/models/webhook_namespaces.rb +307 -0
  238. data/lib/pay_quicker_sdk/models/webhook_subscription_list_result.rb +106 -0
  239. data/lib/pay_quicker_sdk/models/webhook_subscription_object.rb +158 -0
  240. data/lib/pay_quicker_sdk/models/webhook_subscription_result.rb +167 -0
  241. data/lib/pay_quicker_sdk/models/webhook_subscription_statuses.rb +44 -0
  242. data/lib/pay_quicker_sdk/utilities/date_time_helper.rb +11 -0
  243. data/lib/pay_quicker_sdk/utilities/file_wrapper.rb +28 -0
  244. data/lib/pay_quicker_sdk/utilities/union_type_lookup.rb +62 -0
  245. data/lib/pay_quicker_sdk.rb +274 -0
  246. data/test/controllers/controller_test_base.rb +24 -0
  247. data/test/controllers/test_agreements_controller.rb +108 -0
  248. data/test/controllers/test_balances_controller.rb +132 -0
  249. data/test/controllers/test_bank_accounts_controller.rb +645 -0
  250. data/test/controllers/test_client_side_controller.rb +295 -0
  251. data/test/controllers/test_compliance_controller.rb +86 -0
  252. data/test/controllers/test_documents_controller.rb +212 -0
  253. data/test/controllers/test_electronic_wallets_controller.rb +292 -0
  254. data/test/controllers/test_events_controller.rb +138 -0
  255. data/test/controllers/test_invitations_controller.rb +162 -0
  256. data/test/controllers/test_jobs_controller.rb +114 -0
  257. data/test/controllers/test_payments_controller.rb +323 -0
  258. data/test/controllers/test_prepaid_cards_controller.rb +351 -0
  259. data/test/controllers/test_program_controller.rb +134 -0
  260. data/test/controllers/test_receipts_controller.rb +813 -0
  261. data/test/controllers/test_spendback_controller.rb +302 -0
  262. data/test/controllers/test_spendback_refunds_controller.rb +128 -0
  263. data/test/controllers/test_statements_controller.rb +192 -0
  264. data/test/controllers/test_transfers_controller.rb +613 -0
  265. data/test/controllers/test_users_controller.rb +483 -0
  266. data/test/controllers/test_webhooks_controller.rb +402 -0
  267. data/test/http_response_catcher.rb +19 -0
  268. metadata +380 -0
@@ -0,0 +1,686 @@
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
+ # UserResult Model.
9
+ class UserResult < 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
+ # Account holder's profile [type](#/rest/models/structures/user-type)
264
+ # @return [MetadataItems]
265
+ attr_accessor :meta
266
+
267
+ # A mapping from model property names to API property names.
268
+ def self.names
269
+ @_hash = {} if @_hash.nil?
270
+ @_hash['token'] = 'token'
271
+ @_hash['address_line1'] = 'addressLine1'
272
+ @_hash['address_line2'] = 'addressLine2'
273
+ @_hash['address_line3'] = 'addressLine3'
274
+ @_hash['business_address_line1'] = 'businessAddressLine1'
275
+ @_hash['business_address_line2'] = 'businessAddressLine2'
276
+ @_hash['business_address_line3'] = 'businessAddressLine3'
277
+ @_hash['business_address_type'] = 'businessAddressType'
278
+ @_hash['business_city'] = 'businessCity'
279
+ @_hash['business_contact_role'] = 'businessContactRole'
280
+ @_hash['business_country'] = 'businessCountry'
281
+ @_hash['business_name'] = 'businessName'
282
+ @_hash['business_postal_code'] = 'businessPostalCode'
283
+ @_hash['business_region'] = 'businessRegion'
284
+ @_hash['city'] = 'city'
285
+ @_hash['country'] = 'country'
286
+ @_hash['country_of_birth'] = 'countryOfBirth'
287
+ @_hash['country_of_nationality'] = 'countryOfNationality'
288
+ @_hash['created_on'] = 'createdOn'
289
+ @_hash['currency'] = 'currency'
290
+ @_hash['date_of_birth'] = 'dateOfBirth'
291
+ @_hash['email'] = 'email'
292
+ @_hash['employer_id'] = 'employerId'
293
+ @_hash['first_name'] = 'firstName'
294
+ @_hash['gender'] = 'gender'
295
+ @_hash['government_id'] = 'governmentId'
296
+ @_hash['government_id_type'] = 'governmentIdType'
297
+ @_hash['language'] = 'language'
298
+ @_hash['last_name'] = 'lastName'
299
+ @_hash['mailing_address_line1'] = 'mailingAddressLine1'
300
+ @_hash['mailing_address_line2'] = 'mailingAddressLine2'
301
+ @_hash['mailing_address_line3'] = 'mailingAddressLine3'
302
+ @_hash['mailing_city'] = 'mailingCity'
303
+ @_hash['mailing_country'] = 'mailingCountry'
304
+ @_hash['mailing_postal_code'] = 'mailingPostalCode'
305
+ @_hash['mailing_region'] = 'mailingRegion'
306
+ @_hash['mobile_number'] = 'mobileNumber'
307
+ @_hash['mobile_number_country'] = 'mobileNumberCountry'
308
+ @_hash['occupation_title'] = 'occupationTitle'
309
+ @_hash['occupation_type'] = 'occupationType'
310
+ @_hash['phone_number'] = 'phoneNumber'
311
+ @_hash['phone_number_country'] = 'phoneNumberCountry'
312
+ @_hash['postal_code'] = 'postalCode'
313
+ @_hash['program_user_id'] = 'programUserId'
314
+ @_hash['region'] = 'region'
315
+ @_hash['status'] = 'status'
316
+ @_hash['tax_resident_status'] = 'taxResidentStatus'
317
+ @_hash['user_type'] = 'userType'
318
+ @_hash['links'] = 'links'
319
+ @_hash['meta'] = 'meta'
320
+ @_hash
321
+ end
322
+
323
+ # An array for optional fields
324
+ def self.optionals
325
+ %w[
326
+ token
327
+ address_line1
328
+ address_line2
329
+ address_line3
330
+ business_address_line1
331
+ business_address_line2
332
+ business_address_line3
333
+ business_address_type
334
+ business_city
335
+ business_contact_role
336
+ business_country
337
+ business_name
338
+ business_postal_code
339
+ business_region
340
+ city
341
+ country
342
+ country_of_birth
343
+ country_of_nationality
344
+ created_on
345
+ currency
346
+ date_of_birth
347
+ email
348
+ employer_id
349
+ first_name
350
+ gender
351
+ government_id
352
+ government_id_type
353
+ language
354
+ last_name
355
+ mailing_address_line1
356
+ mailing_address_line2
357
+ mailing_address_line3
358
+ mailing_city
359
+ mailing_country
360
+ mailing_postal_code
361
+ mailing_region
362
+ mobile_number
363
+ mobile_number_country
364
+ occupation_title
365
+ occupation_type
366
+ phone_number
367
+ phone_number_country
368
+ postal_code
369
+ program_user_id
370
+ region
371
+ status
372
+ tax_resident_status
373
+ user_type
374
+ links
375
+ meta
376
+ ]
377
+ end
378
+
379
+ # An array for nullable fields
380
+ def self.nullables
381
+ []
382
+ end
383
+
384
+ def initialize(token = SKIP, address_line1 = SKIP, address_line2 = SKIP,
385
+ address_line3 = SKIP, business_address_line1 = SKIP,
386
+ business_address_line2 = SKIP, business_address_line3 = SKIP,
387
+ business_address_type = SKIP, business_city = SKIP,
388
+ business_contact_role = SKIP, business_country = SKIP,
389
+ business_name = SKIP, business_postal_code = SKIP,
390
+ business_region = SKIP, city = SKIP, country = SKIP,
391
+ country_of_birth = SKIP, country_of_nationality = SKIP,
392
+ created_on = SKIP, currency = Currencies::USD,
393
+ date_of_birth = SKIP, email = SKIP, employer_id = SKIP,
394
+ first_name = SKIP, gender = SKIP, government_id = SKIP,
395
+ government_id_type = SKIP, language = SKIP, last_name = SKIP,
396
+ mailing_address_line1 = SKIP, mailing_address_line2 = SKIP,
397
+ mailing_address_line3 = SKIP, mailing_city = SKIP,
398
+ mailing_country = SKIP, mailing_postal_code = SKIP,
399
+ mailing_region = SKIP, mobile_number = SKIP,
400
+ mobile_number_country = SKIP, occupation_title = SKIP,
401
+ occupation_type = SKIP, phone_number = SKIP,
402
+ phone_number_country = SKIP, postal_code = SKIP,
403
+ program_user_id = SKIP, region = SKIP, status = SKIP,
404
+ tax_resident_status = SKIP, user_type = SKIP, links = SKIP,
405
+ meta = SKIP, additional_properties = {})
406
+ # Add additional model properties to the instance.
407
+ additional_properties.each do |_name, _value|
408
+ instance_variable_set("@#{_name}", _value)
409
+ end
410
+
411
+ @token = token unless token == SKIP
412
+ @address_line1 = address_line1 unless address_line1 == SKIP
413
+ @address_line2 = address_line2 unless address_line2 == SKIP
414
+ @address_line3 = address_line3 unless address_line3 == SKIP
415
+ @business_address_line1 = business_address_line1 unless business_address_line1 == SKIP
416
+ @business_address_line2 = business_address_line2 unless business_address_line2 == SKIP
417
+ @business_address_line3 = business_address_line3 unless business_address_line3 == SKIP
418
+ @business_address_type = business_address_type unless business_address_type == SKIP
419
+ @business_city = business_city unless business_city == SKIP
420
+ @business_contact_role = business_contact_role unless business_contact_role == SKIP
421
+ @business_country = business_country unless business_country == SKIP
422
+ @business_name = business_name unless business_name == SKIP
423
+ @business_postal_code = business_postal_code unless business_postal_code == SKIP
424
+ @business_region = business_region unless business_region == SKIP
425
+ @city = city unless city == SKIP
426
+ @country = country unless country == SKIP
427
+ @country_of_birth = country_of_birth unless country_of_birth == SKIP
428
+ @country_of_nationality = country_of_nationality unless country_of_nationality == SKIP
429
+ @created_on = created_on unless created_on == SKIP
430
+ @currency = currency unless currency == SKIP
431
+ @date_of_birth = date_of_birth unless date_of_birth == SKIP
432
+ @email = email unless email == SKIP
433
+ @employer_id = employer_id unless employer_id == SKIP
434
+ @first_name = first_name unless first_name == SKIP
435
+ @gender = gender unless gender == SKIP
436
+ @government_id = government_id unless government_id == SKIP
437
+ @government_id_type = government_id_type unless government_id_type == SKIP
438
+ @language = language unless language == SKIP
439
+ @last_name = last_name unless last_name == SKIP
440
+ @mailing_address_line1 = mailing_address_line1 unless mailing_address_line1 == SKIP
441
+ @mailing_address_line2 = mailing_address_line2 unless mailing_address_line2 == SKIP
442
+ @mailing_address_line3 = mailing_address_line3 unless mailing_address_line3 == SKIP
443
+ @mailing_city = mailing_city unless mailing_city == SKIP
444
+ @mailing_country = mailing_country unless mailing_country == SKIP
445
+ @mailing_postal_code = mailing_postal_code unless mailing_postal_code == SKIP
446
+ @mailing_region = mailing_region unless mailing_region == SKIP
447
+ @mobile_number = mobile_number unless mobile_number == SKIP
448
+ @mobile_number_country = mobile_number_country unless mobile_number_country == SKIP
449
+ @occupation_title = occupation_title unless occupation_title == SKIP
450
+ @occupation_type = occupation_type unless occupation_type == SKIP
451
+ @phone_number = phone_number unless phone_number == SKIP
452
+ @phone_number_country = phone_number_country unless phone_number_country == SKIP
453
+ @postal_code = postal_code unless postal_code == SKIP
454
+ @program_user_id = program_user_id unless program_user_id == SKIP
455
+ @region = region unless region == SKIP
456
+ @status = status unless status == SKIP
457
+ @tax_resident_status = tax_resident_status unless tax_resident_status == SKIP
458
+ @user_type = user_type unless user_type == SKIP
459
+ @links = links unless links == SKIP
460
+ @meta = meta unless meta == SKIP
461
+ end
462
+
463
+ # Creates an instance of the object from a hash.
464
+ def self.from_hash(hash)
465
+ return nil unless hash
466
+
467
+ # Extract variables from the hash.
468
+ token = hash.key?('token') ? hash['token'] : SKIP
469
+ address_line1 = hash.key?('addressLine1') ? hash['addressLine1'] : SKIP
470
+ address_line2 = hash.key?('addressLine2') ? hash['addressLine2'] : SKIP
471
+ address_line3 = hash.key?('addressLine3') ? hash['addressLine3'] : SKIP
472
+ business_address_line1 =
473
+ hash.key?('businessAddressLine1') ? hash['businessAddressLine1'] : SKIP
474
+ business_address_line2 =
475
+ hash.key?('businessAddressLine2') ? hash['businessAddressLine2'] : SKIP
476
+ business_address_line3 =
477
+ hash.key?('businessAddressLine3') ? hash['businessAddressLine3'] : SKIP
478
+ business_address_type =
479
+ hash.key?('businessAddressType') ? hash['businessAddressType'] : SKIP
480
+ business_city = hash.key?('businessCity') ? hash['businessCity'] : SKIP
481
+ business_contact_role =
482
+ hash.key?('businessContactRole') ? hash['businessContactRole'] : SKIP
483
+ business_country =
484
+ hash.key?('businessCountry') ? hash['businessCountry'] : SKIP
485
+ business_name = hash.key?('businessName') ? hash['businessName'] : SKIP
486
+ business_postal_code =
487
+ hash.key?('businessPostalCode') ? hash['businessPostalCode'] : SKIP
488
+ business_region =
489
+ hash.key?('businessRegion') ? hash['businessRegion'] : SKIP
490
+ city = hash.key?('city') ? hash['city'] : SKIP
491
+ country = hash.key?('country') ? hash['country'] : SKIP
492
+ country_of_birth =
493
+ hash.key?('countryOfBirth') ? hash['countryOfBirth'] : SKIP
494
+ country_of_nationality =
495
+ hash.key?('countryOfNationality') ? hash['countryOfNationality'] : SKIP
496
+ created_on = if hash.key?('createdOn')
497
+ (DateTimeHelper.from_rfc3339(hash['createdOn']) if hash['createdOn'])
498
+ else
499
+ SKIP
500
+ end
501
+ currency = hash['currency'] ||= Currencies::USD
502
+ date_of_birth = if hash.key?('dateOfBirth')
503
+ (DateTimeHelper.from_rfc3339(hash['dateOfBirth']) if hash['dateOfBirth'])
504
+ else
505
+ SKIP
506
+ end
507
+ email = hash.key?('email') ? hash['email'] : SKIP
508
+ employer_id = hash.key?('employerId') ? hash['employerId'] : SKIP
509
+ first_name = hash.key?('firstName') ? hash['firstName'] : SKIP
510
+ gender = hash.key?('gender') ? hash['gender'] : SKIP
511
+ government_id = hash.key?('governmentId') ? hash['governmentId'] : SKIP
512
+ government_id_type =
513
+ hash.key?('governmentIdType') ? hash['governmentIdType'] : SKIP
514
+ language = hash.key?('language') ? hash['language'] : SKIP
515
+ last_name = hash.key?('lastName') ? hash['lastName'] : SKIP
516
+ mailing_address_line1 =
517
+ hash.key?('mailingAddressLine1') ? hash['mailingAddressLine1'] : SKIP
518
+ mailing_address_line2 =
519
+ hash.key?('mailingAddressLine2') ? hash['mailingAddressLine2'] : SKIP
520
+ mailing_address_line3 =
521
+ hash.key?('mailingAddressLine3') ? hash['mailingAddressLine3'] : SKIP
522
+ mailing_city = hash.key?('mailingCity') ? hash['mailingCity'] : SKIP
523
+ mailing_country =
524
+ hash.key?('mailingCountry') ? hash['mailingCountry'] : SKIP
525
+ mailing_postal_code =
526
+ hash.key?('mailingPostalCode') ? hash['mailingPostalCode'] : SKIP
527
+ mailing_region = hash.key?('mailingRegion') ? hash['mailingRegion'] : SKIP
528
+ mobile_number = hash.key?('mobileNumber') ? hash['mobileNumber'] : SKIP
529
+ mobile_number_country =
530
+ hash.key?('mobileNumberCountry') ? hash['mobileNumberCountry'] : SKIP
531
+ occupation_title =
532
+ hash.key?('occupationTitle') ? hash['occupationTitle'] : SKIP
533
+ occupation_type =
534
+ hash.key?('occupationType') ? hash['occupationType'] : SKIP
535
+ phone_number = hash.key?('phoneNumber') ? hash['phoneNumber'] : SKIP
536
+ phone_number_country =
537
+ hash.key?('phoneNumberCountry') ? hash['phoneNumberCountry'] : SKIP
538
+ postal_code = hash.key?('postalCode') ? hash['postalCode'] : SKIP
539
+ program_user_id =
540
+ hash.key?('programUserId') ? hash['programUserId'] : SKIP
541
+ region = hash.key?('region') ? hash['region'] : SKIP
542
+ status = hash.key?('status') ? hash['status'] : SKIP
543
+ tax_resident_status =
544
+ hash.key?('taxResidentStatus') ? hash['taxResidentStatus'] : SKIP
545
+ user_type = hash.key?('userType') ? hash['userType'] : SKIP
546
+ # Parameter is an array, so we need to iterate through it
547
+ links = nil
548
+ unless hash['links'].nil?
549
+ links = []
550
+ hash['links'].each do |structure|
551
+ links << (HateoasSelfRef.from_hash(structure) if structure)
552
+ end
553
+ end
554
+
555
+ links = SKIP unless hash.key?('links')
556
+ meta = MetadataItems.from_hash(hash['meta']) if hash['meta']
557
+
558
+ # Clean out expected properties from Hash.
559
+ additional_properties = hash.reject { |k, _| names.value?(k) }
560
+
561
+ # Create object from extracted values.
562
+ UserResult.new(token,
563
+ address_line1,
564
+ address_line2,
565
+ address_line3,
566
+ business_address_line1,
567
+ business_address_line2,
568
+ business_address_line3,
569
+ business_address_type,
570
+ business_city,
571
+ business_contact_role,
572
+ business_country,
573
+ business_name,
574
+ business_postal_code,
575
+ business_region,
576
+ city,
577
+ country,
578
+ country_of_birth,
579
+ country_of_nationality,
580
+ created_on,
581
+ currency,
582
+ date_of_birth,
583
+ email,
584
+ employer_id,
585
+ first_name,
586
+ gender,
587
+ government_id,
588
+ government_id_type,
589
+ language,
590
+ last_name,
591
+ mailing_address_line1,
592
+ mailing_address_line2,
593
+ mailing_address_line3,
594
+ mailing_city,
595
+ mailing_country,
596
+ mailing_postal_code,
597
+ mailing_region,
598
+ mobile_number,
599
+ mobile_number_country,
600
+ occupation_title,
601
+ occupation_type,
602
+ phone_number,
603
+ phone_number_country,
604
+ postal_code,
605
+ program_user_id,
606
+ region,
607
+ status,
608
+ tax_resident_status,
609
+ user_type,
610
+ links,
611
+ meta,
612
+ additional_properties)
613
+ end
614
+
615
+ def to_custom_created_on
616
+ DateTimeHelper.to_rfc3339(created_on)
617
+ end
618
+
619
+ def to_custom_date_of_birth
620
+ DateTimeHelper.to_rfc3339(date_of_birth)
621
+ end
622
+
623
+ # Provides a human-readable string representation of the object.
624
+ def to_s
625
+ class_name = self.class.name.split('::').last
626
+ "<#{class_name} token: #{@token}, address_line1: #{@address_line1}, address_line2:"\
627
+ " #{@address_line2}, address_line3: #{@address_line3}, business_address_line1:"\
628
+ " #{@business_address_line1}, business_address_line2: #{@business_address_line2},"\
629
+ " business_address_line3: #{@business_address_line3}, business_address_type:"\
630
+ " #{@business_address_type}, business_city: #{@business_city}, business_contact_role:"\
631
+ " #{@business_contact_role}, business_country: #{@business_country}, business_name:"\
632
+ " #{@business_name}, business_postal_code: #{@business_postal_code}, business_region:"\
633
+ " #{@business_region}, city: #{@city}, country: #{@country}, country_of_birth:"\
634
+ " #{@country_of_birth}, country_of_nationality: #{@country_of_nationality}, created_on:"\
635
+ " #{@created_on}, currency: #{@currency}, date_of_birth: #{@date_of_birth}, email:"\
636
+ " #{@email}, employer_id: #{@employer_id}, first_name: #{@first_name}, gender: #{@gender},"\
637
+ " government_id: #{@government_id}, government_id_type: #{@government_id_type}, language:"\
638
+ " #{@language}, last_name: #{@last_name}, mailing_address_line1: #{@mailing_address_line1},"\
639
+ " mailing_address_line2: #{@mailing_address_line2}, mailing_address_line3:"\
640
+ " #{@mailing_address_line3}, mailing_city: #{@mailing_city}, mailing_country:"\
641
+ " #{@mailing_country}, mailing_postal_code: #{@mailing_postal_code}, mailing_region:"\
642
+ " #{@mailing_region}, mobile_number: #{@mobile_number}, mobile_number_country:"\
643
+ " #{@mobile_number_country}, occupation_title: #{@occupation_title}, occupation_type:"\
644
+ " #{@occupation_type}, phone_number: #{@phone_number}, phone_number_country:"\
645
+ " #{@phone_number_country}, postal_code: #{@postal_code}, program_user_id:"\
646
+ " #{@program_user_id}, region: #{@region}, status: #{@status}, tax_resident_status:"\
647
+ " #{@tax_resident_status}, user_type: #{@user_type}, links: #{@links}, meta: #{@meta},"\
648
+ " additional_properties: #{get_additional_properties}>"
649
+ end
650
+
651
+ # Provides a debugging-friendly string with detailed object information.
652
+ def inspect
653
+ class_name = self.class.name.split('::').last
654
+ "<#{class_name} token: #{@token.inspect}, address_line1: #{@address_line1.inspect},"\
655
+ " address_line2: #{@address_line2.inspect}, address_line3: #{@address_line3.inspect},"\
656
+ " business_address_line1: #{@business_address_line1.inspect}, business_address_line2:"\
657
+ " #{@business_address_line2.inspect}, business_address_line3:"\
658
+ " #{@business_address_line3.inspect}, business_address_type:"\
659
+ " #{@business_address_type.inspect}, business_city: #{@business_city.inspect},"\
660
+ " business_contact_role: #{@business_contact_role.inspect}, business_country:"\
661
+ " #{@business_country.inspect}, business_name: #{@business_name.inspect},"\
662
+ " business_postal_code: #{@business_postal_code.inspect}, business_region:"\
663
+ " #{@business_region.inspect}, city: #{@city.inspect}, country: #{@country.inspect},"\
664
+ " country_of_birth: #{@country_of_birth.inspect}, country_of_nationality:"\
665
+ " #{@country_of_nationality.inspect}, created_on: #{@created_on.inspect}, currency:"\
666
+ " #{@currency.inspect}, date_of_birth: #{@date_of_birth.inspect}, email: #{@email.inspect},"\
667
+ " employer_id: #{@employer_id.inspect}, first_name: #{@first_name.inspect}, gender:"\
668
+ " #{@gender.inspect}, government_id: #{@government_id.inspect}, government_id_type:"\
669
+ " #{@government_id_type.inspect}, language: #{@language.inspect}, last_name:"\
670
+ " #{@last_name.inspect}, mailing_address_line1: #{@mailing_address_line1.inspect},"\
671
+ " mailing_address_line2: #{@mailing_address_line2.inspect}, mailing_address_line3:"\
672
+ " #{@mailing_address_line3.inspect}, mailing_city: #{@mailing_city.inspect},"\
673
+ " mailing_country: #{@mailing_country.inspect}, mailing_postal_code:"\
674
+ " #{@mailing_postal_code.inspect}, mailing_region: #{@mailing_region.inspect},"\
675
+ " mobile_number: #{@mobile_number.inspect}, mobile_number_country:"\
676
+ " #{@mobile_number_country.inspect}, occupation_title: #{@occupation_title.inspect},"\
677
+ " occupation_type: #{@occupation_type.inspect}, phone_number: #{@phone_number.inspect},"\
678
+ " phone_number_country: #{@phone_number_country.inspect}, postal_code:"\
679
+ " #{@postal_code.inspect}, program_user_id: #{@program_user_id.inspect}, region:"\
680
+ " #{@region.inspect}, status: #{@status.inspect}, tax_resident_status:"\
681
+ " #{@tax_resident_status.inspect}, user_type: #{@user_type.inspect}, links:"\
682
+ " #{@links.inspect}, meta: #{@meta.inspect}, additional_properties:"\
683
+ " #{get_additional_properties}>"
684
+ end
685
+ end
686
+ end