qwil_api 0.1.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 (230) hide show
  1. checksums.yaml +7 -0
  2. data/README.md +91 -0
  3. data/docs/AccountSerializer.md +18 -0
  4. data/docs/AccountsApi.md +243 -0
  5. data/docs/ApitokenauthApi.md +57 -0
  6. data/docs/CashoutCalculationSerializer.md +10 -0
  7. data/docs/CashoutSerializer.md +20 -0
  8. data/docs/CashoutSliceSerializer.md +11 -0
  9. data/docs/CashoutsApi.md +56 -0
  10. data/docs/CompanyInformationSerializer.md +18 -0
  11. data/docs/ContactInfoSerializer.md +10 -0
  12. data/docs/ContactInformationSerializer.md +16 -0
  13. data/docs/ContractorSerializer.md +20 -0
  14. data/docs/IncomeApi.md +98 -0
  15. data/docs/IncomeNestedSerializer.md +18 -0
  16. data/docs/IncomeSerializer.md +18 -0
  17. data/docs/IncomeSerializerFixedSource.md +18 -0
  18. data/docs/InvoiceSerializer.md +17 -0
  19. data/docs/InvoiceSerializerFixedSourceCreate.md +17 -0
  20. data/docs/InvoicesApi.md +98 -0
  21. data/docs/JSONWebTokenSerializer.md +7 -0
  22. data/docs/ManagerPlatformSerializer.md +22 -0
  23. data/docs/ManagerSerializer.md +10 -0
  24. data/docs/ManagersApi.md +172 -0
  25. data/docs/MembershipSerializer.md +9 -0
  26. data/docs/MembershipsApi.md +56 -0
  27. data/docs/PersonalInformationSerializer.md +16 -0
  28. data/docs/PlaidPublicTokenSerializer.md +8 -0
  29. data/docs/PlatformIncomeRequestSerializer.md +15 -0
  30. data/docs/PlatformMembershipRequestSerializer.md +11 -0
  31. data/docs/PlatformSerializer.md +30 -0
  32. data/docs/PlatformSummarySerializer.md +10 -0
  33. data/docs/PlatformsApi.md +1369 -0
  34. data/docs/RebateSerializer.md +15 -0
  35. data/docs/RebatesApi.md +98 -0
  36. data/docs/ReceivablesSerializer.md +9 -0
  37. data/docs/TaxSavingsSerializer.md +10 -0
  38. data/docs/UserAccountSerializer.md +17 -0
  39. data/docs/UserCashoutSerializer.md +20 -0
  40. data/docs/UserIncomeRequestSerializer.md +15 -0
  41. data/docs/UserPlatformMembershipRequestSerializer.md +13 -0
  42. data/docs/UserSerializer.md +40 -0
  43. data/docs/UsersApi.md +2173 -0
  44. data/docs/WriteAccountSerializer.md +16 -0
  45. data/docs/WriteCashoutCalculationSerializer.md +8 -0
  46. data/docs/WriteCashoutSerializer.md +16 -0
  47. data/docs/WriteCashoutSliceSerializer.md +11 -0
  48. data/docs/WriteCompanyInformationSerializer.md +17 -0
  49. data/docs/WriteContactInfoSerializer.md +10 -0
  50. data/docs/WriteContactInformationSerializer.md +15 -0
  51. data/docs/WriteContractorSerializer.md +14 -0
  52. data/docs/WriteIncomeNestedSerializer.md +12 -0
  53. data/docs/WriteIncomeSerializer.md +13 -0
  54. data/docs/WriteIncomeSerializerFixedSource.md +12 -0
  55. data/docs/WriteInvoiceSerializer.md +13 -0
  56. data/docs/WriteInvoiceSerializerFixedSourceCreate.md +9 -0
  57. data/docs/WriteJSONWebTokenSerializer.md +7 -0
  58. data/docs/WriteManagerPlatformSerializer.md +15 -0
  59. data/docs/WriteManagerSerializer.md +8 -0
  60. data/docs/WriteMembershipSerializer.md +8 -0
  61. data/docs/WritePersonalInformationSerializer.md +16 -0
  62. data/docs/WritePlaidPublicTokenSerializer.md +8 -0
  63. data/docs/WritePlatformIncomeRequestSerializer.md +10 -0
  64. data/docs/WritePlatformMembershipRequestSerializer.md +7 -0
  65. data/docs/WritePlatformSerializer.md +19 -0
  66. data/docs/WritePlatformSummarySerializer.md +8 -0
  67. data/docs/WriteRebateSerializer.md +9 -0
  68. data/docs/WriteReceivablesSerializer.md +8 -0
  69. data/docs/WriteTaxSavingsSerializer.md +8 -0
  70. data/docs/WriteUserAccountSerializer.md +14 -0
  71. data/docs/WriteUserCashoutSerializer.md +15 -0
  72. data/docs/WriteUserIncomeRequestSerializer.md +10 -0
  73. data/docs/WriteUserPlatformMembershipRequestSerializer.md +9 -0
  74. data/docs/WriteUserSerializer.md +21 -0
  75. data/generate-client.sh +6 -0
  76. data/lib/qwil_api/api/accounts_api.rb +320 -0
  77. data/lib/qwil_api/api/apitokenauth_api.rb +87 -0
  78. data/lib/qwil_api/api/cashouts_api.rb +89 -0
  79. data/lib/qwil_api/api/income_api.rb +142 -0
  80. data/lib/qwil_api/api/invoices_api.rb +142 -0
  81. data/lib/qwil_api/api/managers_api.rb +237 -0
  82. data/lib/qwil_api/api/memberships_api.rb +89 -0
  83. data/lib/qwil_api/api/platforms_api.rb +1674 -0
  84. data/lib/qwil_api/api/rebates_api.rb +142 -0
  85. data/lib/qwil_api/api/users_api.rb +2672 -0
  86. data/lib/qwil_api/api_client.rb +376 -0
  87. data/lib/qwil_api/api_error.rb +45 -0
  88. data/lib/qwil_api/configuration.rb +205 -0
  89. data/lib/qwil_api/models/account_serializer.rb +370 -0
  90. data/lib/qwil_api/models/cashout_calculation_serializer.rb +221 -0
  91. data/lib/qwil_api/models/cashout_serializer.rb +379 -0
  92. data/lib/qwil_api/models/cashout_slice_serializer.rb +232 -0
  93. data/lib/qwil_api/models/company_information_serializer.rb +299 -0
  94. data/lib/qwil_api/models/contact_info_serializer.rb +218 -0
  95. data/lib/qwil_api/models/contact_information_serializer.rb +280 -0
  96. data/lib/qwil_api/models/contractor_serializer.rb +361 -0
  97. data/lib/qwil_api/models/income_nested_serializer.rb +302 -0
  98. data/lib/qwil_api/models/income_serializer.rb +302 -0
  99. data/lib/qwil_api/models/income_serializer_fixed_source.rb +302 -0
  100. data/lib/qwil_api/models/invoice_serializer.rb +299 -0
  101. data/lib/qwil_api/models/invoice_serializer_fixed_source_create.rb +299 -0
  102. data/lib/qwil_api/models/json_web_token_serializer.rb +188 -0
  103. data/lib/qwil_api/models/manager_platform_serializer.rb +391 -0
  104. data/lib/qwil_api/models/manager_serializer.rb +218 -0
  105. data/lib/qwil_api/models/membership_serializer.rb +208 -0
  106. data/lib/qwil_api/models/personal_information_serializer.rb +279 -0
  107. data/lib/qwil_api/models/plaid_public_token_serializer.rb +199 -0
  108. data/lib/qwil_api/models/platform_income_request_serializer.rb +307 -0
  109. data/lib/qwil_api/models/platform_membership_request_serializer.rb +262 -0
  110. data/lib/qwil_api/models/platform_serializer.rb +480 -0
  111. data/lib/qwil_api/models/platform_summary_serializer.rb +218 -0
  112. data/lib/qwil_api/models/rebate_serializer.rb +276 -0
  113. data/lib/qwil_api/models/receivables_serializer.rb +208 -0
  114. data/lib/qwil_api/models/tax_savings_serializer.rb +219 -0
  115. data/lib/qwil_api/models/user_account_serializer.rb +359 -0
  116. data/lib/qwil_api/models/user_cashout_serializer.rb +379 -0
  117. data/lib/qwil_api/models/user_income_request_serializer.rb +307 -0
  118. data/lib/qwil_api/models/user_platform_membership_request_serializer.rb +283 -0
  119. data/lib/qwil_api/models/user_serializer.rb +592 -0
  120. data/lib/qwil_api/models/write_account_serializer.rb +331 -0
  121. data/lib/qwil_api/models/write_cashout_calculation_serializer.rb +198 -0
  122. data/lib/qwil_api/models/write_cashout_serializer.rb +316 -0
  123. data/lib/qwil_api/models/write_cashout_slice_serializer.rb +232 -0
  124. data/lib/qwil_api/models/write_company_information_serializer.rb +280 -0
  125. data/lib/qwil_api/models/write_contact_info_serializer.rb +218 -0
  126. data/lib/qwil_api/models/write_contact_information_serializer.rb +262 -0
  127. data/lib/qwil_api/models/write_contractor_serializer.rb +289 -0
  128. data/lib/qwil_api/models/write_income_nested_serializer.rb +236 -0
  129. data/lib/qwil_api/models/write_income_serializer.rb +247 -0
  130. data/lib/qwil_api/models/write_income_serializer_fixed_source.rb +236 -0
  131. data/lib/qwil_api/models/write_invoice_serializer.rb +252 -0
  132. data/lib/qwil_api/models/write_invoice_serializer_fixed_source_create.rb +210 -0
  133. data/lib/qwil_api/models/write_json_web_token_serializer.rb +188 -0
  134. data/lib/qwil_api/models/write_manager_platform_serializer.rb +314 -0
  135. data/lib/qwil_api/models/write_manager_serializer.rb +198 -0
  136. data/lib/qwil_api/models/write_membership_serializer.rb +198 -0
  137. data/lib/qwil_api/models/write_personal_information_serializer.rb +270 -0
  138. data/lib/qwil_api/models/write_plaid_public_token_serializer.rb +199 -0
  139. data/lib/qwil_api/models/write_platform_income_request_serializer.rb +220 -0
  140. data/lib/qwil_api/models/write_platform_membership_request_serializer.rb +188 -0
  141. data/lib/qwil_api/models/write_platform_serializer.rb +309 -0
  142. data/lib/qwil_api/models/write_platform_summary_serializer.rb +198 -0
  143. data/lib/qwil_api/models/write_rebate_serializer.rb +209 -0
  144. data/lib/qwil_api/models/write_receivables_serializer.rb +198 -0
  145. data/lib/qwil_api/models/write_tax_savings_serializer.rb +198 -0
  146. data/lib/qwil_api/models/write_user_account_serializer.rb +312 -0
  147. data/lib/qwil_api/models/write_user_cashout_serializer.rb +307 -0
  148. data/lib/qwil_api/models/write_user_income_request_serializer.rb +220 -0
  149. data/lib/qwil_api/models/write_user_platform_membership_request_serializer.rb +208 -0
  150. data/lib/qwil_api/models/write_user_serializer.rb +358 -0
  151. data/lib/qwil_api/version.rb +24 -0
  152. data/lib/qwil_api.rb +51 -0
  153. data/qwil_api.gemspec +53 -0
  154. data/spec/api/accounts_api_spec.rb +110 -0
  155. data/spec/api/apitokenauth_api_spec.rb +56 -0
  156. data/spec/api/cashouts_api_spec.rb +56 -0
  157. data/spec/api/income_api_spec.rb +67 -0
  158. data/spec/api/invoices_api_spec.rb +67 -0
  159. data/spec/api/managers_api_spec.rb +88 -0
  160. data/spec/api/memberships_api_spec.rb +56 -0
  161. data/spec/api/platforms_api_spec.rb +398 -0
  162. data/spec/api/rebates_api_spec.rb +67 -0
  163. data/spec/api/users_api_spec.rb +625 -0
  164. data/spec/api_client_spec.rb +235 -0
  165. data/spec/configuration_spec.rb +51 -0
  166. data/spec/models/account_serializer_spec.rb +111 -0
  167. data/spec/models/cashout_calculation_serializer_spec.rb +63 -0
  168. data/spec/models/cashout_serializer_spec.rb +135 -0
  169. data/spec/models/cashout_slice_serializer_spec.rb +69 -0
  170. data/spec/models/company_information_serializer_spec.rb +111 -0
  171. data/spec/models/contact_info_serializer_spec.rb +63 -0
  172. data/spec/models/contact_information_serializer_spec.rb +99 -0
  173. data/spec/models/contractor_serializer_spec.rb +127 -0
  174. data/spec/models/income_nested_serializer_spec.rb +111 -0
  175. data/spec/models/income_serializer_fixed_source_spec.rb +111 -0
  176. data/spec/models/income_serializer_spec.rb +111 -0
  177. data/spec/models/invoice_serializer_fixed_source_create_spec.rb +105 -0
  178. data/spec/models/invoice_serializer_spec.rb +105 -0
  179. data/spec/models/json_web_token_serializer_spec.rb +45 -0
  180. data/spec/models/manager_platform_serializer_spec.rb +143 -0
  181. data/spec/models/manager_serializer_spec.rb +63 -0
  182. data/spec/models/membership_serializer_spec.rb +57 -0
  183. data/spec/models/personal_information_serializer_spec.rb +99 -0
  184. data/spec/models/plaid_public_token_serializer_spec.rb +51 -0
  185. data/spec/models/platform_income_request_serializer_spec.rb +97 -0
  186. data/spec/models/platform_membership_request_serializer_spec.rb +73 -0
  187. data/spec/models/platform_serializer_spec.rb +191 -0
  188. data/spec/models/platform_summary_serializer_spec.rb +63 -0
  189. data/spec/models/rebate_serializer_spec.rb +93 -0
  190. data/spec/models/receivables_serializer_spec.rb +57 -0
  191. data/spec/models/tax_savings_serializer_spec.rb +63 -0
  192. data/spec/models/user_account_serializer_spec.rb +105 -0
  193. data/spec/models/user_cashout_serializer_spec.rb +135 -0
  194. data/spec/models/user_income_request_serializer_spec.rb +97 -0
  195. data/spec/models/user_platform_membership_request_serializer_spec.rb +85 -0
  196. data/spec/models/user_serializer_spec.rb +251 -0
  197. data/spec/models/write_account_serializer_spec.rb +99 -0
  198. data/spec/models/write_cashout_calculation_serializer_spec.rb +51 -0
  199. data/spec/models/write_cashout_serializer_spec.rb +107 -0
  200. data/spec/models/write_cashout_slice_serializer_spec.rb +69 -0
  201. data/spec/models/write_company_information_serializer_spec.rb +105 -0
  202. data/spec/models/write_contact_info_serializer_spec.rb +63 -0
  203. data/spec/models/write_contact_information_serializer_spec.rb +93 -0
  204. data/spec/models/write_contractor_serializer_spec.rb +91 -0
  205. data/spec/models/write_income_nested_serializer_spec.rb +75 -0
  206. data/spec/models/write_income_serializer_fixed_source_spec.rb +75 -0
  207. data/spec/models/write_income_serializer_spec.rb +81 -0
  208. data/spec/models/write_invoice_serializer_fixed_source_create_spec.rb +57 -0
  209. data/spec/models/write_invoice_serializer_spec.rb +81 -0
  210. data/spec/models/write_json_web_token_serializer_spec.rb +45 -0
  211. data/spec/models/write_manager_platform_serializer_spec.rb +101 -0
  212. data/spec/models/write_manager_serializer_spec.rb +51 -0
  213. data/spec/models/write_membership_serializer_spec.rb +51 -0
  214. data/spec/models/write_personal_information_serializer_spec.rb +99 -0
  215. data/spec/models/write_plaid_public_token_serializer_spec.rb +51 -0
  216. data/spec/models/write_platform_income_request_serializer_spec.rb +63 -0
  217. data/spec/models/write_platform_membership_request_serializer_spec.rb +45 -0
  218. data/spec/models/write_platform_serializer_spec.rb +117 -0
  219. data/spec/models/write_platform_summary_serializer_spec.rb +51 -0
  220. data/spec/models/write_rebate_serializer_spec.rb +57 -0
  221. data/spec/models/write_receivables_serializer_spec.rb +51 -0
  222. data/spec/models/write_tax_savings_serializer_spec.rb +51 -0
  223. data/spec/models/write_user_account_serializer_spec.rb +87 -0
  224. data/spec/models/write_user_cashout_serializer_spec.rb +101 -0
  225. data/spec/models/write_user_income_request_serializer_spec.rb +63 -0
  226. data/spec/models/write_user_platform_membership_request_serializer_spec.rb +57 -0
  227. data/spec/models/write_user_serializer_spec.rb +133 -0
  228. data/spec/spec_helper.rb +120 -0
  229. data/swagger-codegen-config.json +9 -0
  230. metadata +527 -0
data/docs/UsersApi.md ADDED
@@ -0,0 +1,2173 @@
1
+ # QwilAPI::UsersApi
2
+
3
+ All URIs are relative to *http://localhost:8000/*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**account_user_create**](UsersApi.md#account_user_create) | **POST** /users/{user_pk}/accounts/ | The bank accounts for a specific User
8
+ [**account_user_destroy**](UsersApi.md#account_user_destroy) | **DELETE** /users/{user_pk}/accounts/{pk}/ | The bank accounts for a specific User
9
+ [**account_user_list**](UsersApi.md#account_user_list) | **GET** /users/{user_pk}/accounts/ | The bank accounts for a specific User
10
+ [**account_user_partial_update**](UsersApi.md#account_user_partial_update) | **PATCH** /users/{user_pk}/accounts/{pk}/ | The bank accounts for a specific User
11
+ [**account_user_retrieve**](UsersApi.md#account_user_retrieve) | **GET** /users/{user_pk}/accounts/{pk}/ | The bank accounts for a specific User
12
+ [**account_user_update**](UsersApi.md#account_user_update) | **PUT** /users/{user_pk}/accounts/{pk}/ | The bank accounts for a specific User
13
+ [**admin_platform_create**](UsersApi.md#admin_platform_create) | **POST** /users/{user_pk}/administered_platforms/ | View to create new platforms on which the user is an admin
14
+ [**cancel_income_request_get**](UsersApi.md#cancel_income_request_get) | **GET** /users/{user_pk}/income_requests/{pk}/cancel/ | On GET, cancel the income request
15
+ [**cancel_income_request_post**](UsersApi.md#cancel_income_request_post) | **POST** /users/{user_pk}/income_requests/{pk}/cancel/ | On POST, cancel the income request
16
+ [**cancel_platform_membership_request_get**](UsersApi.md#cancel_platform_membership_request_get) | **GET** /users/{user_pk}/platform_membership_requests/{pk}/cancel/ | On GET, cancel the membership request
17
+ [**cancel_platform_membership_request_post**](UsersApi.md#cancel_platform_membership_request_post) | **POST** /users/{user_pk}/platform_membership_requests/{pk}/cancel/ | On POST, cancel the membership request
18
+ [**cashout_available_create**](UsersApi.md#cashout_available_create) | **POST** /users/{user_pk}/cashout_available/ | Calculate the fees for a specific Cashout amount
19
+ [**cashout_available_retrieve**](UsersApi.md#cashout_available_retrieve) | **GET** /users/{user_pk}/cashout_available/ | Calculate the available cashout for a User
20
+ [**cashout_user_viewset_create**](UsersApi.md#cashout_user_viewset_create) | **POST** /users/{user_pk}/cashouts/ | The Cashouts for a specific User
21
+ [**cashout_user_viewset_list**](UsersApi.md#cashout_user_viewset_list) | **GET** /users/{user_pk}/cashouts/ | The Cashouts for a specific User
22
+ [**cashout_user_viewset_retrieve**](UsersApi.md#cashout_user_viewset_retrieve) | **GET** /users/{user_pk}/cashouts/{pk}/ | The Cashouts for a specific User
23
+ [**income_user_list**](UsersApi.md#income_user_list) | **GET** /users/{user_pk}/income/ | The list of Income items for a specific User
24
+ [**my_user_partial_update**](UsersApi.md#my_user_partial_update) | **PATCH** /users/me/ | The currently logged in User
25
+ [**my_user_retrieve**](UsersApi.md#my_user_retrieve) | **GET** /users/me/ | The currently logged in User
26
+ [**my_user_update**](UsersApi.md#my_user_update) | **PUT** /users/me/ | The currently logged in User
27
+ [**plaid_accounts_post**](UsersApi.md#plaid_accounts_post) | **POST** /users/{user_pk}/integrations/plaid/accounts/ | Authenticate with Plaid Auth and list the user's accounts
28
+ [**receivables_user_api_get**](UsersApi.md#receivables_user_api_get) | **GET** /users/{user_pk}/receivables/ | The list of all Receivables for a specific User
29
+ [**tax_savings_partial_update**](UsersApi.md#tax_savings_partial_update) | **PATCH** /users/{user_pk}/tax_savings/ | View for handling access to tax savings info for a User
30
+ [**tax_savings_retrieve**](UsersApi.md#tax_savings_retrieve) | **GET** /users/{user_pk}/tax_savings/ | View for handling access to tax savings info for a User
31
+ [**tax_savings_update**](UsersApi.md#tax_savings_update) | **PUT** /users/{user_pk}/tax_savings/ | View for handling access to tax savings info for a User
32
+ [**user_create**](UsersApi.md#user_create) | **POST** /users/ | The list of registered Qwil Users
33
+ [**user_income_request_create**](UsersApi.md#user_income_request_create) | **POST** /users/{user_pk}/income_requests/ |
34
+ [**user_income_request_list**](UsersApi.md#user_income_request_list) | **GET** /users/{user_pk}/income_requests/ |
35
+ [**user_income_request_retrieve**](UsersApi.md#user_income_request_retrieve) | **GET** /users/{user_pk}/income_requests/{pk}/ |
36
+ [**user_list**](UsersApi.md#user_list) | **GET** /users/ | The list of registered Qwil Users
37
+ [**user_partial_update**](UsersApi.md#user_partial_update) | **PATCH** /users/{pk}/ | The list of registered Qwil Users
38
+ [**user_platform_membership_request_create**](UsersApi.md#user_platform_membership_request_create) | **POST** /users/{user_pk}/platform_membership_requests/ |
39
+ [**user_platform_membership_request_list**](UsersApi.md#user_platform_membership_request_list) | **GET** /users/{user_pk}/platform_membership_requests/ |
40
+ [**user_platform_membership_request_retrieve**](UsersApi.md#user_platform_membership_request_retrieve) | **GET** /users/{user_pk}/platform_membership_requests/{pk}/ |
41
+ [**user_retrieve**](UsersApi.md#user_retrieve) | **GET** /users/{pk}/ | The list of registered Qwil Users
42
+ [**user_update**](UsersApi.md#user_update) | **PUT** /users/{pk}/ | The list of registered Qwil Users
43
+ [**xero_account_get**](UsersApi.md#xero_account_get) | **GET** /users/{user_pk}/integrations/xero/accounts/ |
44
+ [**xero_account_put**](UsersApi.md#xero_account_put) | **PUT** /users/{user_pk}/integrations/xero/accounts/ |
45
+ [**xero_auth_callback_get**](UsersApi.md#xero_auth_callback_get) | **GET** /users/{user_pk}/integrations/xero/authenticate/ |
46
+ [**xero_auth_url_get**](UsersApi.md#xero_auth_url_get) | **GET** /users/{user_pk}/integrations/xero/ |
47
+
48
+
49
+ # **account_user_create**
50
+ > UserAccountSerializer account_user_create(user_pk, account_number, name, routing_number, opts)
51
+
52
+ The bank accounts for a specific User
53
+
54
+ The bank accounts for a specific User. Enables create, retrieve, update (PUT/PATCH), destroy, and list.<br/>Note that the Account DB models are immutable, but the PUT/PATCH/DELETE API methods are still offered to allow users to modify/remove Accounts.<br/>The PUT/PATCH HTTP methods will create a new Account with the same data as the old one, and then apply the update to that new account. The old Account will be marked as deleted.<br/>NOTE: if you update an Account, it will get a new primary key, and therefore a new URL. You will need to extract the new URL from the body of the HTTP response to the update request.<br/>e.g. PATCH https://api.qwil.co/accounts/1/ {...} { \"url\": \"https://api.qwil.co/accounts/2/\", ... }<br/>The DELETE HTTP method will cause Accounts to have the Account.deleted flag set to True, and such Accounts will not be displayed in the /users/<user_id>/accounts/ list.<br/>To view even deleted accounts, use the URL /users/<user_id>/accounts/?show_deleted=true<br/>Note that deleted Accounts can still be retrieved directly, e.g.<br/>GET https://api.qwil.co/accounts/1/ { ... \"deleted\": \"true\", ... }
55
+
56
+ ### Example
57
+ ```ruby
58
+ # load the gem
59
+ require 'qwil_api'
60
+
61
+ api_instance = QwilAPI::UsersApi.new
62
+
63
+ user_pk = "user_pk_example" # String |
64
+
65
+ account_number = "account_number_example" # String |
66
+
67
+ name = "name_example" # String | The user's label for this Account.
68
+
69
+ routing_number = "routing_number_example" # String | The inter-bank routing nubmer for this Account. 8 or 9 digits in length.
70
+
71
+ opts = {
72
+ is_paypal: true, # BOOLEAN | Flag specifying if the Account is a Paypal account.
73
+ is_mychoice: true, # BOOLEAN | Flag specifying if the Account is a MyChoice card. If it is, the mychoice_user_id and mychoice_card_id must be filled in.
74
+ mychoice_user_id: 789, # Integer | For MyChoice Accounts. Populated from the MyChoice API.
75
+ mychoice_card_id: 789 # Integer | For MyChoice Accounts. Populated from the MyChoice API.
76
+ }
77
+
78
+ begin
79
+ #The bank accounts for a specific User
80
+ result = api_instance.account_user_create(user_pk, account_number, name, routing_number, opts)
81
+ p result
82
+ rescue QwilAPI::ApiError => e
83
+ puts "Exception when calling UsersApi->account_user_create: #{e}"
84
+ end
85
+ ```
86
+
87
+ ### Parameters
88
+
89
+ Name | Type | Description | Notes
90
+ ------------- | ------------- | ------------- | -------------
91
+ **user_pk** | **String**| |
92
+ **account_number** | **String**| |
93
+ **name** | **String**| The user&#39;s label for this Account. |
94
+ **routing_number** | **String**| The inter-bank routing nubmer for this Account. 8 or 9 digits in length. |
95
+ **is_paypal** | **BOOLEAN**| Flag specifying if the Account is a Paypal account. | [optional]
96
+ **is_mychoice** | **BOOLEAN**| Flag specifying if the Account is a MyChoice card. If it is, the mychoice_user_id and mychoice_card_id must be filled in. | [optional]
97
+ **mychoice_user_id** | **Integer**| For MyChoice Accounts. Populated from the MyChoice API. | [optional]
98
+ **mychoice_card_id** | **Integer**| For MyChoice Accounts. Populated from the MyChoice API. | [optional]
99
+
100
+ ### Return type
101
+
102
+ [**UserAccountSerializer**](UserAccountSerializer.md)
103
+
104
+ ### Authorization
105
+
106
+ No authorization required
107
+
108
+ ### HTTP request headers
109
+
110
+ - **Content-Type**: Not defined
111
+ - **Accept**: Not defined
112
+
113
+
114
+
115
+ # **account_user_destroy**
116
+ > UserAccountSerializer account_user_destroy(user_pk, pk)
117
+
118
+ The bank accounts for a specific User
119
+
120
+ The bank accounts for a specific User. Enables create, retrieve, update (PUT/PATCH), destroy, and list.<br/>Note that the Account DB models are immutable, but the PUT/PATCH/DELETE API methods are still offered to allow users to modify/remove Accounts.<br/>The PUT/PATCH HTTP methods will create a new Account with the same data as the old one, and then apply the update to that new account. The old Account will be marked as deleted.<br/>NOTE: if you update an Account, it will get a new primary key, and therefore a new URL. You will need to extract the new URL from the body of the HTTP response to the update request.<br/>e.g. PATCH https://api.qwil.co/accounts/1/ {...} { \"url\": \"https://api.qwil.co/accounts/2/\", ... }<br/>The DELETE HTTP method will cause Accounts to have the Account.deleted flag set to True, and such Accounts will not be displayed in the /users/<user_id>/accounts/ list.<br/>To view even deleted accounts, use the URL /users/<user_id>/accounts/?show_deleted=true<br/>Note that deleted Accounts can still be retrieved directly, e.g.<br/>GET https://api.qwil.co/accounts/1/ { ... \"deleted\": \"true\", ... }
121
+
122
+ ### Example
123
+ ```ruby
124
+ # load the gem
125
+ require 'qwil_api'
126
+
127
+ api_instance = QwilAPI::UsersApi.new
128
+
129
+ user_pk = "user_pk_example" # String |
130
+
131
+ pk = "pk_example" # String |
132
+
133
+
134
+ begin
135
+ #The bank accounts for a specific User
136
+ result = api_instance.account_user_destroy(user_pk, pk)
137
+ p result
138
+ rescue QwilAPI::ApiError => e
139
+ puts "Exception when calling UsersApi->account_user_destroy: #{e}"
140
+ end
141
+ ```
142
+
143
+ ### Parameters
144
+
145
+ Name | Type | Description | Notes
146
+ ------------- | ------------- | ------------- | -------------
147
+ **user_pk** | **String**| |
148
+ **pk** | **String**| |
149
+
150
+ ### Return type
151
+
152
+ [**UserAccountSerializer**](UserAccountSerializer.md)
153
+
154
+ ### Authorization
155
+
156
+ No authorization required
157
+
158
+ ### HTTP request headers
159
+
160
+ - **Content-Type**: Not defined
161
+ - **Accept**: Not defined
162
+
163
+
164
+
165
+ # **account_user_list**
166
+ > Array&lt;UserAccountSerializer&gt; account_user_list(user_pk)
167
+
168
+ The bank accounts for a specific User
169
+
170
+ The bank accounts for a specific User. Enables create, retrieve, update (PUT/PATCH), destroy, and list.<br/>Note that the Account DB models are immutable, but the PUT/PATCH/DELETE API methods are still offered to allow users to modify/remove Accounts.<br/>The PUT/PATCH HTTP methods will create a new Account with the same data as the old one, and then apply the update to that new account. The old Account will be marked as deleted.<br/>NOTE: if you update an Account, it will get a new primary key, and therefore a new URL. You will need to extract the new URL from the body of the HTTP response to the update request.<br/>e.g. PATCH https://api.qwil.co/accounts/1/ {...} { \"url\": \"https://api.qwil.co/accounts/2/\", ... }<br/>The DELETE HTTP method will cause Accounts to have the Account.deleted flag set to True, and such Accounts will not be displayed in the /users/<user_id>/accounts/ list.<br/>To view even deleted accounts, use the URL /users/<user_id>/accounts/?show_deleted=true<br/>Note that deleted Accounts can still be retrieved directly, e.g.<br/>GET https://api.qwil.co/accounts/1/ { ... \"deleted\": \"true\", ... }
171
+
172
+ ### Example
173
+ ```ruby
174
+ # load the gem
175
+ require 'qwil_api'
176
+
177
+ api_instance = QwilAPI::UsersApi.new
178
+
179
+ user_pk = "user_pk_example" # String |
180
+
181
+
182
+ begin
183
+ #The bank accounts for a specific User
184
+ result = api_instance.account_user_list(user_pk)
185
+ p result
186
+ rescue QwilAPI::ApiError => e
187
+ puts "Exception when calling UsersApi->account_user_list: #{e}"
188
+ end
189
+ ```
190
+
191
+ ### Parameters
192
+
193
+ Name | Type | Description | Notes
194
+ ------------- | ------------- | ------------- | -------------
195
+ **user_pk** | **String**| |
196
+
197
+ ### Return type
198
+
199
+ [**Array&lt;UserAccountSerializer&gt;**](UserAccountSerializer.md)
200
+
201
+ ### Authorization
202
+
203
+ No authorization required
204
+
205
+ ### HTTP request headers
206
+
207
+ - **Content-Type**: Not defined
208
+ - **Accept**: Not defined
209
+
210
+
211
+
212
+ # **account_user_partial_update**
213
+ > UserAccountSerializer account_user_partial_update(user_pk, pk, opts)
214
+
215
+ The bank accounts for a specific User
216
+
217
+ The bank accounts for a specific User. Enables create, retrieve, update (PUT/PATCH), destroy, and list.<br/>Note that the Account DB models are immutable, but the PUT/PATCH/DELETE API methods are still offered to allow users to modify/remove Accounts.<br/>The PUT/PATCH HTTP methods will create a new Account with the same data as the old one, and then apply the update to that new account. The old Account will be marked as deleted.<br/>NOTE: if you update an Account, it will get a new primary key, and therefore a new URL. You will need to extract the new URL from the body of the HTTP response to the update request.<br/>e.g. PATCH https://api.qwil.co/accounts/1/ {...} { \"url\": \"https://api.qwil.co/accounts/2/\", ... }<br/>The DELETE HTTP method will cause Accounts to have the Account.deleted flag set to True, and such Accounts will not be displayed in the /users/<user_id>/accounts/ list.<br/>To view even deleted accounts, use the URL /users/<user_id>/accounts/?show_deleted=true<br/>Note that deleted Accounts can still be retrieved directly, e.g.<br/>GET https://api.qwil.co/accounts/1/ { ... \"deleted\": \"true\", ... }
218
+
219
+ ### Example
220
+ ```ruby
221
+ # load the gem
222
+ require 'qwil_api'
223
+
224
+ api_instance = QwilAPI::UsersApi.new
225
+
226
+ user_pk = "user_pk_example" # String |
227
+
228
+ pk = "pk_example" # String |
229
+
230
+ opts = {
231
+ account_number: "account_number_example", # String |
232
+ name: "name_example", # String | The user's label for this Account.
233
+ routing_number: "routing_number_example", # String | The inter-bank routing nubmer for this Account. 8 or 9 digits in length.
234
+ is_paypal: true, # BOOLEAN | Flag specifying if the Account is a Paypal account.
235
+ is_mychoice: true, # BOOLEAN | Flag specifying if the Account is a MyChoice card. If it is, the mychoice_user_id and mychoice_card_id must be filled in.
236
+ mychoice_user_id: 789, # Integer | For MyChoice Accounts. Populated from the MyChoice API.
237
+ mychoice_card_id: 789 # Integer | For MyChoice Accounts. Populated from the MyChoice API.
238
+ }
239
+
240
+ begin
241
+ #The bank accounts for a specific User
242
+ result = api_instance.account_user_partial_update(user_pk, pk, opts)
243
+ p result
244
+ rescue QwilAPI::ApiError => e
245
+ puts "Exception when calling UsersApi->account_user_partial_update: #{e}"
246
+ end
247
+ ```
248
+
249
+ ### Parameters
250
+
251
+ Name | Type | Description | Notes
252
+ ------------- | ------------- | ------------- | -------------
253
+ **user_pk** | **String**| |
254
+ **pk** | **String**| |
255
+ **account_number** | **String**| | [optional]
256
+ **name** | **String**| The user&#39;s label for this Account. | [optional]
257
+ **routing_number** | **String**| The inter-bank routing nubmer for this Account. 8 or 9 digits in length. | [optional]
258
+ **is_paypal** | **BOOLEAN**| Flag specifying if the Account is a Paypal account. | [optional]
259
+ **is_mychoice** | **BOOLEAN**| Flag specifying if the Account is a MyChoice card. If it is, the mychoice_user_id and mychoice_card_id must be filled in. | [optional]
260
+ **mychoice_user_id** | **Integer**| For MyChoice Accounts. Populated from the MyChoice API. | [optional]
261
+ **mychoice_card_id** | **Integer**| For MyChoice Accounts. Populated from the MyChoice API. | [optional]
262
+
263
+ ### Return type
264
+
265
+ [**UserAccountSerializer**](UserAccountSerializer.md)
266
+
267
+ ### Authorization
268
+
269
+ No authorization required
270
+
271
+ ### HTTP request headers
272
+
273
+ - **Content-Type**: Not defined
274
+ - **Accept**: Not defined
275
+
276
+
277
+
278
+ # **account_user_retrieve**
279
+ > UserAccountSerializer account_user_retrieve(user_pk, pk)
280
+
281
+ The bank accounts for a specific User
282
+
283
+ The bank accounts for a specific User. Enables create, retrieve, update (PUT/PATCH), destroy, and list.<br/>Note that the Account DB models are immutable, but the PUT/PATCH/DELETE API methods are still offered to allow users to modify/remove Accounts.<br/>The PUT/PATCH HTTP methods will create a new Account with the same data as the old one, and then apply the update to that new account. The old Account will be marked as deleted.<br/>NOTE: if you update an Account, it will get a new primary key, and therefore a new URL. You will need to extract the new URL from the body of the HTTP response to the update request.<br/>e.g. PATCH https://api.qwil.co/accounts/1/ {...} { \"url\": \"https://api.qwil.co/accounts/2/\", ... }<br/>The DELETE HTTP method will cause Accounts to have the Account.deleted flag set to True, and such Accounts will not be displayed in the /users/<user_id>/accounts/ list.<br/>To view even deleted accounts, use the URL /users/<user_id>/accounts/?show_deleted=true<br/>Note that deleted Accounts can still be retrieved directly, e.g.<br/>GET https://api.qwil.co/accounts/1/ { ... \"deleted\": \"true\", ... }
284
+
285
+ ### Example
286
+ ```ruby
287
+ # load the gem
288
+ require 'qwil_api'
289
+
290
+ api_instance = QwilAPI::UsersApi.new
291
+
292
+ user_pk = "user_pk_example" # String |
293
+
294
+ pk = "pk_example" # String |
295
+
296
+
297
+ begin
298
+ #The bank accounts for a specific User
299
+ result = api_instance.account_user_retrieve(user_pk, pk)
300
+ p result
301
+ rescue QwilAPI::ApiError => e
302
+ puts "Exception when calling UsersApi->account_user_retrieve: #{e}"
303
+ end
304
+ ```
305
+
306
+ ### Parameters
307
+
308
+ Name | Type | Description | Notes
309
+ ------------- | ------------- | ------------- | -------------
310
+ **user_pk** | **String**| |
311
+ **pk** | **String**| |
312
+
313
+ ### Return type
314
+
315
+ [**UserAccountSerializer**](UserAccountSerializer.md)
316
+
317
+ ### Authorization
318
+
319
+ No authorization required
320
+
321
+ ### HTTP request headers
322
+
323
+ - **Content-Type**: Not defined
324
+ - **Accept**: Not defined
325
+
326
+
327
+
328
+ # **account_user_update**
329
+ > UserAccountSerializer account_user_update(user_pk, pk, account_number, name, routing_number, opts)
330
+
331
+ The bank accounts for a specific User
332
+
333
+ The bank accounts for a specific User. Enables create, retrieve, update (PUT/PATCH), destroy, and list.<br/>Note that the Account DB models are immutable, but the PUT/PATCH/DELETE API methods are still offered to allow users to modify/remove Accounts.<br/>The PUT/PATCH HTTP methods will create a new Account with the same data as the old one, and then apply the update to that new account. The old Account will be marked as deleted.<br/>NOTE: if you update an Account, it will get a new primary key, and therefore a new URL. You will need to extract the new URL from the body of the HTTP response to the update request.<br/>e.g. PATCH https://api.qwil.co/accounts/1/ {...} { \"url\": \"https://api.qwil.co/accounts/2/\", ... }<br/>The DELETE HTTP method will cause Accounts to have the Account.deleted flag set to True, and such Accounts will not be displayed in the /users/<user_id>/accounts/ list.<br/>To view even deleted accounts, use the URL /users/<user_id>/accounts/?show_deleted=true<br/>Note that deleted Accounts can still be retrieved directly, e.g.<br/>GET https://api.qwil.co/accounts/1/ { ... \"deleted\": \"true\", ... }
334
+
335
+ ### Example
336
+ ```ruby
337
+ # load the gem
338
+ require 'qwil_api'
339
+
340
+ api_instance = QwilAPI::UsersApi.new
341
+
342
+ user_pk = "user_pk_example" # String |
343
+
344
+ pk = "pk_example" # String |
345
+
346
+ account_number = "account_number_example" # String |
347
+
348
+ name = "name_example" # String | The user's label for this Account.
349
+
350
+ routing_number = "routing_number_example" # String | The inter-bank routing nubmer for this Account. 8 or 9 digits in length.
351
+
352
+ opts = {
353
+ is_paypal: true, # BOOLEAN | Flag specifying if the Account is a Paypal account.
354
+ is_mychoice: true, # BOOLEAN | Flag specifying if the Account is a MyChoice card. If it is, the mychoice_user_id and mychoice_card_id must be filled in.
355
+ mychoice_user_id: 789, # Integer | For MyChoice Accounts. Populated from the MyChoice API.
356
+ mychoice_card_id: 789 # Integer | For MyChoice Accounts. Populated from the MyChoice API.
357
+ }
358
+
359
+ begin
360
+ #The bank accounts for a specific User
361
+ result = api_instance.account_user_update(user_pk, pk, account_number, name, routing_number, opts)
362
+ p result
363
+ rescue QwilAPI::ApiError => e
364
+ puts "Exception when calling UsersApi->account_user_update: #{e}"
365
+ end
366
+ ```
367
+
368
+ ### Parameters
369
+
370
+ Name | Type | Description | Notes
371
+ ------------- | ------------- | ------------- | -------------
372
+ **user_pk** | **String**| |
373
+ **pk** | **String**| |
374
+ **account_number** | **String**| |
375
+ **name** | **String**| The user&#39;s label for this Account. |
376
+ **routing_number** | **String**| The inter-bank routing nubmer for this Account. 8 or 9 digits in length. |
377
+ **is_paypal** | **BOOLEAN**| Flag specifying if the Account is a Paypal account. | [optional]
378
+ **is_mychoice** | **BOOLEAN**| Flag specifying if the Account is a MyChoice card. If it is, the mychoice_user_id and mychoice_card_id must be filled in. | [optional]
379
+ **mychoice_user_id** | **Integer**| For MyChoice Accounts. Populated from the MyChoice API. | [optional]
380
+ **mychoice_card_id** | **Integer**| For MyChoice Accounts. Populated from the MyChoice API. | [optional]
381
+
382
+ ### Return type
383
+
384
+ [**UserAccountSerializer**](UserAccountSerializer.md)
385
+
386
+ ### Authorization
387
+
388
+ No authorization required
389
+
390
+ ### HTTP request headers
391
+
392
+ - **Content-Type**: Not defined
393
+ - **Accept**: Not defined
394
+
395
+
396
+
397
+ # **admin_platform_create**
398
+ > PlatformSummarySerializer admin_platform_create(user_pk, name)
399
+
400
+ View to create new platforms on which the user is an admin
401
+
402
+ View to create new platforms on which the user is an admin.<br/>POSTing to this endpoint will create a new Platform with the specified name, and will set the current User as an Admin on that platform.
403
+
404
+ ### Example
405
+ ```ruby
406
+ # load the gem
407
+ require 'qwil_api'
408
+
409
+ api_instance = QwilAPI::UsersApi.new
410
+
411
+ user_pk = "user_pk_example" # String |
412
+
413
+ name = "name_example" # String |
414
+
415
+
416
+ begin
417
+ #View to create new platforms on which the user is an admin
418
+ result = api_instance.admin_platform_create(user_pk, name)
419
+ p result
420
+ rescue QwilAPI::ApiError => e
421
+ puts "Exception when calling UsersApi->admin_platform_create: #{e}"
422
+ end
423
+ ```
424
+
425
+ ### Parameters
426
+
427
+ Name | Type | Description | Notes
428
+ ------------- | ------------- | ------------- | -------------
429
+ **user_pk** | **String**| |
430
+ **name** | **String**| |
431
+
432
+ ### Return type
433
+
434
+ [**PlatformSummarySerializer**](PlatformSummarySerializer.md)
435
+
436
+ ### Authorization
437
+
438
+ No authorization required
439
+
440
+ ### HTTP request headers
441
+
442
+ - **Content-Type**: Not defined
443
+ - **Accept**: Not defined
444
+
445
+
446
+
447
+ # **cancel_income_request_get**
448
+ > Object cancel_income_request_get(user_pk, pk)
449
+
450
+ On GET, cancel the income request
451
+
452
+ View to offer a ./cancel endpoint for cancelling an IncomeRequest. <br/>On GET, cancel the income request.<br/>Keep GET for browsability on the API.
453
+
454
+ ### Example
455
+ ```ruby
456
+ # load the gem
457
+ require 'qwil_api'
458
+
459
+ api_instance = QwilAPI::UsersApi.new
460
+
461
+ user_pk = "user_pk_example" # String |
462
+
463
+ pk = "pk_example" # String |
464
+
465
+
466
+ begin
467
+ #On GET, cancel the income request
468
+ result = api_instance.cancel_income_request_get(user_pk, pk)
469
+ p result
470
+ rescue QwilAPI::ApiError => e
471
+ puts "Exception when calling UsersApi->cancel_income_request_get: #{e}"
472
+ end
473
+ ```
474
+
475
+ ### Parameters
476
+
477
+ Name | Type | Description | Notes
478
+ ------------- | ------------- | ------------- | -------------
479
+ **user_pk** | **String**| |
480
+ **pk** | **String**| |
481
+
482
+ ### Return type
483
+
484
+ **Object**
485
+
486
+ ### Authorization
487
+
488
+ No authorization required
489
+
490
+ ### HTTP request headers
491
+
492
+ - **Content-Type**: Not defined
493
+ - **Accept**: Not defined
494
+
495
+
496
+
497
+ # **cancel_income_request_post**
498
+ > Object cancel_income_request_post(user_pk, pk)
499
+
500
+ On POST, cancel the income request
501
+
502
+ View to offer a ./cancel endpoint for cancelling an IncomeRequest. <br/>On POST, cancel the income request.
503
+
504
+ ### Example
505
+ ```ruby
506
+ # load the gem
507
+ require 'qwil_api'
508
+
509
+ api_instance = QwilAPI::UsersApi.new
510
+
511
+ user_pk = "user_pk_example" # String |
512
+
513
+ pk = "pk_example" # String |
514
+
515
+
516
+ begin
517
+ #On POST, cancel the income request
518
+ result = api_instance.cancel_income_request_post(user_pk, pk)
519
+ p result
520
+ rescue QwilAPI::ApiError => e
521
+ puts "Exception when calling UsersApi->cancel_income_request_post: #{e}"
522
+ end
523
+ ```
524
+
525
+ ### Parameters
526
+
527
+ Name | Type | Description | Notes
528
+ ------------- | ------------- | ------------- | -------------
529
+ **user_pk** | **String**| |
530
+ **pk** | **String**| |
531
+
532
+ ### Return type
533
+
534
+ **Object**
535
+
536
+ ### Authorization
537
+
538
+ No authorization required
539
+
540
+ ### HTTP request headers
541
+
542
+ - **Content-Type**: Not defined
543
+ - **Accept**: Not defined
544
+
545
+
546
+
547
+ # **cancel_platform_membership_request_get**
548
+ > Object cancel_platform_membership_request_get(user_pk, pk)
549
+
550
+ On GET, cancel the membership request
551
+
552
+ View to offer a ./accept endpoint for accepting a PlatformMembershipRequest. <br/>On GET, cancel the membership request.<br/>Keep GET for browsability on the API.
553
+
554
+ ### Example
555
+ ```ruby
556
+ # load the gem
557
+ require 'qwil_api'
558
+
559
+ api_instance = QwilAPI::UsersApi.new
560
+
561
+ user_pk = "user_pk_example" # String |
562
+
563
+ pk = "pk_example" # String |
564
+
565
+
566
+ begin
567
+ #On GET, cancel the membership request
568
+ result = api_instance.cancel_platform_membership_request_get(user_pk, pk)
569
+ p result
570
+ rescue QwilAPI::ApiError => e
571
+ puts "Exception when calling UsersApi->cancel_platform_membership_request_get: #{e}"
572
+ end
573
+ ```
574
+
575
+ ### Parameters
576
+
577
+ Name | Type | Description | Notes
578
+ ------------- | ------------- | ------------- | -------------
579
+ **user_pk** | **String**| |
580
+ **pk** | **String**| |
581
+
582
+ ### Return type
583
+
584
+ **Object**
585
+
586
+ ### Authorization
587
+
588
+ No authorization required
589
+
590
+ ### HTTP request headers
591
+
592
+ - **Content-Type**: Not defined
593
+ - **Accept**: Not defined
594
+
595
+
596
+
597
+ # **cancel_platform_membership_request_post**
598
+ > Object cancel_platform_membership_request_post(user_pk, pk)
599
+
600
+ On POST, cancel the membership request
601
+
602
+ View to offer a ./accept endpoint for accepting a PlatformMembershipRequest. <br/>On POST, cancel the membership request.
603
+
604
+ ### Example
605
+ ```ruby
606
+ # load the gem
607
+ require 'qwil_api'
608
+
609
+ api_instance = QwilAPI::UsersApi.new
610
+
611
+ user_pk = "user_pk_example" # String |
612
+
613
+ pk = "pk_example" # String |
614
+
615
+
616
+ begin
617
+ #On POST, cancel the membership request
618
+ result = api_instance.cancel_platform_membership_request_post(user_pk, pk)
619
+ p result
620
+ rescue QwilAPI::ApiError => e
621
+ puts "Exception when calling UsersApi->cancel_platform_membership_request_post: #{e}"
622
+ end
623
+ ```
624
+
625
+ ### Parameters
626
+
627
+ Name | Type | Description | Notes
628
+ ------------- | ------------- | ------------- | -------------
629
+ **user_pk** | **String**| |
630
+ **pk** | **String**| |
631
+
632
+ ### Return type
633
+
634
+ **Object**
635
+
636
+ ### Authorization
637
+
638
+ No authorization required
639
+
640
+ ### HTTP request headers
641
+
642
+ - **Content-Type**: Not defined
643
+ - **Accept**: Not defined
644
+
645
+
646
+
647
+ # **cashout_available_create**
648
+ > CashoutCalculationSerializer cashout_available_create(user_pk, opts)
649
+
650
+ Calculate the fees for a specific Cashout amount
651
+
652
+ Calculate the fees for a specific Cashout amount.<br/>This returns the fees for a specific cashout amount, plus the maximum amount available.
653
+
654
+ ### Example
655
+ ```ruby
656
+ # load the gem
657
+ require 'qwil_api'
658
+
659
+ api_instance = QwilAPI::UsersApi.new
660
+
661
+ user_pk = "user_pk_example" # String |
662
+
663
+ opts = {
664
+ amount: "amount_example" # String | The Cashout amount to calculate fees for. (This amount is net, i.e. before fees).
665
+ }
666
+
667
+ begin
668
+ #Calculate the fees for a specific Cashout amount
669
+ result = api_instance.cashout_available_create(user_pk, opts)
670
+ p result
671
+ rescue QwilAPI::ApiError => e
672
+ puts "Exception when calling UsersApi->cashout_available_create: #{e}"
673
+ end
674
+ ```
675
+
676
+ ### Parameters
677
+
678
+ Name | Type | Description | Notes
679
+ ------------- | ------------- | ------------- | -------------
680
+ **user_pk** | **String**| |
681
+ **amount** | **String**| The Cashout amount to calculate fees for. (This amount is net, i.e. before fees). | [optional]
682
+
683
+ ### Return type
684
+
685
+ [**CashoutCalculationSerializer**](CashoutCalculationSerializer.md)
686
+
687
+ ### Authorization
688
+
689
+ No authorization required
690
+
691
+ ### HTTP request headers
692
+
693
+ - **Content-Type**: Not defined
694
+ - **Accept**: Not defined
695
+
696
+
697
+
698
+ # **cashout_available_retrieve**
699
+ > CashoutCalculationSerializer cashout_available_retrieve(user_pk)
700
+
701
+ Calculate the available cashout for a User
702
+
703
+ Calculate the available cashout for a User.<br/>This returns the maximum cashout amount available, and the fee for that amount.
704
+
705
+ ### Example
706
+ ```ruby
707
+ # load the gem
708
+ require 'qwil_api'
709
+
710
+ api_instance = QwilAPI::UsersApi.new
711
+
712
+ user_pk = "user_pk_example" # String |
713
+
714
+
715
+ begin
716
+ #Calculate the available cashout for a User
717
+ result = api_instance.cashout_available_retrieve(user_pk)
718
+ p result
719
+ rescue QwilAPI::ApiError => e
720
+ puts "Exception when calling UsersApi->cashout_available_retrieve: #{e}"
721
+ end
722
+ ```
723
+
724
+ ### Parameters
725
+
726
+ Name | Type | Description | Notes
727
+ ------------- | ------------- | ------------- | -------------
728
+ **user_pk** | **String**| |
729
+
730
+ ### Return type
731
+
732
+ [**CashoutCalculationSerializer**](CashoutCalculationSerializer.md)
733
+
734
+ ### Authorization
735
+
736
+ No authorization required
737
+
738
+ ### HTTP request headers
739
+
740
+ - **Content-Type**: Not defined
741
+ - **Accept**: Not defined
742
+
743
+
744
+
745
+ # **cashout_user_viewset_create**
746
+ > UserCashoutSerializer cashout_user_viewset_create(user_pk, amount, opts)
747
+
748
+ The Cashouts for a specific User
749
+
750
+ The Cashouts for a specific User. Enables create, retrieve, list.
751
+
752
+ ### Example
753
+ ```ruby
754
+ # load the gem
755
+ require 'qwil_api'
756
+
757
+ api_instance = QwilAPI::UsersApi.new
758
+
759
+ user_pk = "user_pk_example" # String |
760
+
761
+ amount = "amount_example" # String |
762
+
763
+ opts = {
764
+ cashout_time: DateTime.parse("2013-10-20T19:20:30+01:00"), # DateTime |
765
+ notes: "notes_example", # String |
766
+ type: "type_example", # String |
767
+ method: "method_example", # String |
768
+ transmit_time: DateTime.parse("2013-10-20T19:20:30+01:00"), # DateTime |
769
+ rebate: "rebate_example", # String | The Rebate against which this Cashout will be collected.
770
+ account: "account_example" # String |
771
+ }
772
+
773
+ begin
774
+ #The Cashouts for a specific User
775
+ result = api_instance.cashout_user_viewset_create(user_pk, amount, opts)
776
+ p result
777
+ rescue QwilAPI::ApiError => e
778
+ puts "Exception when calling UsersApi->cashout_user_viewset_create: #{e}"
779
+ end
780
+ ```
781
+
782
+ ### Parameters
783
+
784
+ Name | Type | Description | Notes
785
+ ------------- | ------------- | ------------- | -------------
786
+ **user_pk** | **String**| |
787
+ **amount** | **String**| |
788
+ **cashout_time** | **DateTime**| | [optional]
789
+ **notes** | **String**| | [optional]
790
+ **type** | **String**| | [optional]
791
+ **method** | **String**| | [optional]
792
+ **transmit_time** | **DateTime**| | [optional]
793
+ **rebate** | **String**| The Rebate against which this Cashout will be collected. | [optional]
794
+ **account** | **String**| | [optional]
795
+
796
+ ### Return type
797
+
798
+ [**UserCashoutSerializer**](UserCashoutSerializer.md)
799
+
800
+ ### Authorization
801
+
802
+ No authorization required
803
+
804
+ ### HTTP request headers
805
+
806
+ - **Content-Type**: Not defined
807
+ - **Accept**: Not defined
808
+
809
+
810
+
811
+ # **cashout_user_viewset_list**
812
+ > Array&lt;UserCashoutSerializer&gt; cashout_user_viewset_list(user_pk)
813
+
814
+ The Cashouts for a specific User
815
+
816
+ The Cashouts for a specific User. Enables create, retrieve, list.
817
+
818
+ ### Example
819
+ ```ruby
820
+ # load the gem
821
+ require 'qwil_api'
822
+
823
+ api_instance = QwilAPI::UsersApi.new
824
+
825
+ user_pk = "user_pk_example" # String |
826
+
827
+
828
+ begin
829
+ #The Cashouts for a specific User
830
+ result = api_instance.cashout_user_viewset_list(user_pk)
831
+ p result
832
+ rescue QwilAPI::ApiError => e
833
+ puts "Exception when calling UsersApi->cashout_user_viewset_list: #{e}"
834
+ end
835
+ ```
836
+
837
+ ### Parameters
838
+
839
+ Name | Type | Description | Notes
840
+ ------------- | ------------- | ------------- | -------------
841
+ **user_pk** | **String**| |
842
+
843
+ ### Return type
844
+
845
+ [**Array&lt;UserCashoutSerializer&gt;**](UserCashoutSerializer.md)
846
+
847
+ ### Authorization
848
+
849
+ No authorization required
850
+
851
+ ### HTTP request headers
852
+
853
+ - **Content-Type**: Not defined
854
+ - **Accept**: Not defined
855
+
856
+
857
+
858
+ # **cashout_user_viewset_retrieve**
859
+ > UserCashoutSerializer cashout_user_viewset_retrieve(user_pk, pk)
860
+
861
+ The Cashouts for a specific User
862
+
863
+ The Cashouts for a specific User. Enables create, retrieve, list.
864
+
865
+ ### Example
866
+ ```ruby
867
+ # load the gem
868
+ require 'qwil_api'
869
+
870
+ api_instance = QwilAPI::UsersApi.new
871
+
872
+ user_pk = "user_pk_example" # String |
873
+
874
+ pk = "pk_example" # String |
875
+
876
+
877
+ begin
878
+ #The Cashouts for a specific User
879
+ result = api_instance.cashout_user_viewset_retrieve(user_pk, pk)
880
+ p result
881
+ rescue QwilAPI::ApiError => e
882
+ puts "Exception when calling UsersApi->cashout_user_viewset_retrieve: #{e}"
883
+ end
884
+ ```
885
+
886
+ ### Parameters
887
+
888
+ Name | Type | Description | Notes
889
+ ------------- | ------------- | ------------- | -------------
890
+ **user_pk** | **String**| |
891
+ **pk** | **String**| |
892
+
893
+ ### Return type
894
+
895
+ [**UserCashoutSerializer**](UserCashoutSerializer.md)
896
+
897
+ ### Authorization
898
+
899
+ No authorization required
900
+
901
+ ### HTTP request headers
902
+
903
+ - **Content-Type**: Not defined
904
+ - **Accept**: Not defined
905
+
906
+
907
+
908
+ # **income_user_list**
909
+ > Array&lt;IncomeSerializerFixedSource&gt; income_user_list(user_pk)
910
+
911
+ The list of Income items for a specific User
912
+
913
+ The list of Income items for a specific User.<br/>This can be filtered by date using the start_date and end_date query parameters.
914
+
915
+ ### Example
916
+ ```ruby
917
+ # load the gem
918
+ require 'qwil_api'
919
+
920
+ api_instance = QwilAPI::UsersApi.new
921
+
922
+ user_pk = "user_pk_example" # String |
923
+
924
+
925
+ begin
926
+ #The list of Income items for a specific User
927
+ result = api_instance.income_user_list(user_pk)
928
+ p result
929
+ rescue QwilAPI::ApiError => e
930
+ puts "Exception when calling UsersApi->income_user_list: #{e}"
931
+ end
932
+ ```
933
+
934
+ ### Parameters
935
+
936
+ Name | Type | Description | Notes
937
+ ------------- | ------------- | ------------- | -------------
938
+ **user_pk** | **String**| |
939
+
940
+ ### Return type
941
+
942
+ [**Array&lt;IncomeSerializerFixedSource&gt;**](IncomeSerializerFixedSource.md)
943
+
944
+ ### Authorization
945
+
946
+ No authorization required
947
+
948
+ ### HTTP request headers
949
+
950
+ - **Content-Type**: Not defined
951
+ - **Accept**: Not defined
952
+
953
+
954
+
955
+ # **my_user_partial_update**
956
+ > UserSerializer my_user_partial_update(opts)
957
+
958
+ The currently logged in User
959
+
960
+ The currently logged in User.
961
+
962
+ ### Example
963
+ ```ruby
964
+ # load the gem
965
+ require 'qwil_api'
966
+
967
+ api_instance = QwilAPI::UsersApi.new
968
+
969
+ opts = {
970
+ email: "email_example", # String |
971
+ first_name: "first_name_example", # String | First name, if the user is an individual. Leave blank if this user is a company.
972
+ last_name: "last_name_example", # String | Last name, if the user is an individual. Leave blank if this user is a company.
973
+ business_name: "business_name_example", # String | Business name. Only use this field if this user is a business entity.
974
+ contractor_type: "INDIVIDUAL", # String |
975
+ default_account: "default_account_example", # String | Default account to use for payment of unpaid income.
976
+ tax_savings_account: "tax_savings_account_example", # String | Account to use for tax savings.
977
+ tax_savings_percent: "tax_savings_percent_example", # String | The percent of income to be withheld for tax savings purposes.
978
+ use_plaid: true, # BOOLEAN | Feature flag specifying if Plaid integration should be used.
979
+ use_income_requests: true, # BOOLEAN | Feature flag specifying if IncomeRequests should be enabled for this user.
980
+ use_tax_savings: true, # BOOLEAN | Feature flag specifying if tax savings should be enabled.
981
+ is_auto_cashout_enabled: true, # BOOLEAN | Whether or not all income should be immediately cashed out for this user.
982
+ password: "password_example", # String |
983
+ personal_information: "personal_information_example" # String |
984
+ }
985
+
986
+ begin
987
+ #The currently logged in User
988
+ result = api_instance.my_user_partial_update(opts)
989
+ p result
990
+ rescue QwilAPI::ApiError => e
991
+ puts "Exception when calling UsersApi->my_user_partial_update: #{e}"
992
+ end
993
+ ```
994
+
995
+ ### Parameters
996
+
997
+ Name | Type | Description | Notes
998
+ ------------- | ------------- | ------------- | -------------
999
+ **email** | **String**| | [optional]
1000
+ **first_name** | **String**| First name, if the user is an individual. Leave blank if this user is a company. | [optional]
1001
+ **last_name** | **String**| Last name, if the user is an individual. Leave blank if this user is a company. | [optional]
1002
+ **business_name** | **String**| Business name. Only use this field if this user is a business entity. | [optional]
1003
+ **contractor_type** | **String**| | [optional] [default to INDIVIDUAL]
1004
+ **default_account** | **String**| Default account to use for payment of unpaid income. | [optional]
1005
+ **tax_savings_account** | **String**| Account to use for tax savings. | [optional]
1006
+ **tax_savings_percent** | **String**| The percent of income to be withheld for tax savings purposes. | [optional]
1007
+ **use_plaid** | **BOOLEAN**| Feature flag specifying if Plaid integration should be used. | [optional]
1008
+ **use_income_requests** | **BOOLEAN**| Feature flag specifying if IncomeRequests should be enabled for this user. | [optional]
1009
+ **use_tax_savings** | **BOOLEAN**| Feature flag specifying if tax savings should be enabled. | [optional]
1010
+ **is_auto_cashout_enabled** | **BOOLEAN**| Whether or not all income should be immediately cashed out for this user. | [optional]
1011
+ **password** | **String**| | [optional]
1012
+ **personal_information** | **String**| | [optional]
1013
+
1014
+ ### Return type
1015
+
1016
+ [**UserSerializer**](UserSerializer.md)
1017
+
1018
+ ### Authorization
1019
+
1020
+ No authorization required
1021
+
1022
+ ### HTTP request headers
1023
+
1024
+ - **Content-Type**: Not defined
1025
+ - **Accept**: Not defined
1026
+
1027
+
1028
+
1029
+ # **my_user_retrieve**
1030
+ > UserSerializer my_user_retrieve
1031
+
1032
+ The currently logged in User
1033
+
1034
+ The currently logged in User.
1035
+
1036
+ ### Example
1037
+ ```ruby
1038
+ # load the gem
1039
+ require 'qwil_api'
1040
+
1041
+ api_instance = QwilAPI::UsersApi.new
1042
+
1043
+ begin
1044
+ #The currently logged in User
1045
+ result = api_instance.my_user_retrieve
1046
+ p result
1047
+ rescue QwilAPI::ApiError => e
1048
+ puts "Exception when calling UsersApi->my_user_retrieve: #{e}"
1049
+ end
1050
+ ```
1051
+
1052
+ ### Parameters
1053
+ This endpoint does not need any parameter.
1054
+
1055
+ ### Return type
1056
+
1057
+ [**UserSerializer**](UserSerializer.md)
1058
+
1059
+ ### Authorization
1060
+
1061
+ No authorization required
1062
+
1063
+ ### HTTP request headers
1064
+
1065
+ - **Content-Type**: Not defined
1066
+ - **Accept**: Not defined
1067
+
1068
+
1069
+
1070
+ # **my_user_update**
1071
+ > UserSerializer my_user_update(email, opts)
1072
+
1073
+ The currently logged in User
1074
+
1075
+ The currently logged in User.
1076
+
1077
+ ### Example
1078
+ ```ruby
1079
+ # load the gem
1080
+ require 'qwil_api'
1081
+
1082
+ api_instance = QwilAPI::UsersApi.new
1083
+
1084
+ email = "email_example" # String |
1085
+
1086
+ opts = {
1087
+ first_name: "first_name_example", # String | First name, if the user is an individual. Leave blank if this user is a company.
1088
+ last_name: "last_name_example", # String | Last name, if the user is an individual. Leave blank if this user is a company.
1089
+ business_name: "business_name_example", # String | Business name. Only use this field if this user is a business entity.
1090
+ contractor_type: "INDIVIDUAL", # String |
1091
+ default_account: "default_account_example", # String | Default account to use for payment of unpaid income.
1092
+ tax_savings_account: "tax_savings_account_example", # String | Account to use for tax savings.
1093
+ tax_savings_percent: "tax_savings_percent_example", # String | The percent of income to be withheld for tax savings purposes.
1094
+ use_plaid: true, # BOOLEAN | Feature flag specifying if Plaid integration should be used.
1095
+ use_income_requests: true, # BOOLEAN | Feature flag specifying if IncomeRequests should be enabled for this user.
1096
+ use_tax_savings: true, # BOOLEAN | Feature flag specifying if tax savings should be enabled.
1097
+ is_auto_cashout_enabled: true, # BOOLEAN | Whether or not all income should be immediately cashed out for this user.
1098
+ password: "password_example", # String |
1099
+ personal_information: "personal_information_example" # String |
1100
+ }
1101
+
1102
+ begin
1103
+ #The currently logged in User
1104
+ result = api_instance.my_user_update(email, opts)
1105
+ p result
1106
+ rescue QwilAPI::ApiError => e
1107
+ puts "Exception when calling UsersApi->my_user_update: #{e}"
1108
+ end
1109
+ ```
1110
+
1111
+ ### Parameters
1112
+
1113
+ Name | Type | Description | Notes
1114
+ ------------- | ------------- | ------------- | -------------
1115
+ **email** | **String**| |
1116
+ **first_name** | **String**| First name, if the user is an individual. Leave blank if this user is a company. | [optional]
1117
+ **last_name** | **String**| Last name, if the user is an individual. Leave blank if this user is a company. | [optional]
1118
+ **business_name** | **String**| Business name. Only use this field if this user is a business entity. | [optional]
1119
+ **contractor_type** | **String**| | [optional] [default to INDIVIDUAL]
1120
+ **default_account** | **String**| Default account to use for payment of unpaid income. | [optional]
1121
+ **tax_savings_account** | **String**| Account to use for tax savings. | [optional]
1122
+ **tax_savings_percent** | **String**| The percent of income to be withheld for tax savings purposes. | [optional]
1123
+ **use_plaid** | **BOOLEAN**| Feature flag specifying if Plaid integration should be used. | [optional]
1124
+ **use_income_requests** | **BOOLEAN**| Feature flag specifying if IncomeRequests should be enabled for this user. | [optional]
1125
+ **use_tax_savings** | **BOOLEAN**| Feature flag specifying if tax savings should be enabled. | [optional]
1126
+ **is_auto_cashout_enabled** | **BOOLEAN**| Whether or not all income should be immediately cashed out for this user. | [optional]
1127
+ **password** | **String**| | [optional]
1128
+ **personal_information** | **String**| | [optional]
1129
+
1130
+ ### Return type
1131
+
1132
+ [**UserSerializer**](UserSerializer.md)
1133
+
1134
+ ### Authorization
1135
+
1136
+ No authorization required
1137
+
1138
+ ### HTTP request headers
1139
+
1140
+ - **Content-Type**: Not defined
1141
+ - **Accept**: Not defined
1142
+
1143
+
1144
+
1145
+ # **plaid_accounts_post**
1146
+ > PlaidPublicTokenSerializer plaid_accounts_post(user_pk, public_token)
1147
+
1148
+ Authenticate with Plaid Auth and list the user's accounts
1149
+
1150
+ Fetch the user's accounts from the Plaid Auth service. <br/>Authenticate with Plaid Auth and list the user's accounts.<br/>Use the provided public_token from Plaid Link to authenticate. The accounts are reformatted to the Qwil account format, so that they are usable to create Qwil accounts.
1151
+
1152
+ ### Example
1153
+ ```ruby
1154
+ # load the gem
1155
+ require 'qwil_api'
1156
+
1157
+ api_instance = QwilAPI::UsersApi.new
1158
+
1159
+ user_pk = "user_pk_example" # String |
1160
+
1161
+ public_token = "public_token_example" # String | A public_token generated by authenticating with Plaid Link.
1162
+
1163
+
1164
+ begin
1165
+ #Authenticate with Plaid Auth and list the user's accounts
1166
+ result = api_instance.plaid_accounts_post(user_pk, public_token)
1167
+ p result
1168
+ rescue QwilAPI::ApiError => e
1169
+ puts "Exception when calling UsersApi->plaid_accounts_post: #{e}"
1170
+ end
1171
+ ```
1172
+
1173
+ ### Parameters
1174
+
1175
+ Name | Type | Description | Notes
1176
+ ------------- | ------------- | ------------- | -------------
1177
+ **user_pk** | **String**| |
1178
+ **public_token** | **String**| A public_token generated by authenticating with Plaid Link. |
1179
+
1180
+ ### Return type
1181
+
1182
+ [**PlaidPublicTokenSerializer**](PlaidPublicTokenSerializer.md)
1183
+
1184
+ ### Authorization
1185
+
1186
+ No authorization required
1187
+
1188
+ ### HTTP request headers
1189
+
1190
+ - **Content-Type**: Not defined
1191
+ - **Accept**: Not defined
1192
+
1193
+
1194
+
1195
+ # **receivables_user_api_get**
1196
+ > ReceivablesSerializer receivables_user_api_get(user_pk)
1197
+
1198
+ The list of all Receivables for a specific User
1199
+
1200
+ The list of all Receivables for a specific User.<br/>Receivables include Income items and Cashouts.<br/>This API endpoint returns multiple model types; the Model.type field specifies what type a given model is.<br/>Note that currently this means that there are few common fields between different types of Receivable.
1201
+
1202
+ ### Example
1203
+ ```ruby
1204
+ # load the gem
1205
+ require 'qwil_api'
1206
+
1207
+ api_instance = QwilAPI::UsersApi.new
1208
+
1209
+ user_pk = "user_pk_example" # String |
1210
+
1211
+
1212
+ begin
1213
+ #The list of all Receivables for a specific User
1214
+ result = api_instance.receivables_user_api_get(user_pk)
1215
+ p result
1216
+ rescue QwilAPI::ApiError => e
1217
+ puts "Exception when calling UsersApi->receivables_user_api_get: #{e}"
1218
+ end
1219
+ ```
1220
+
1221
+ ### Parameters
1222
+
1223
+ Name | Type | Description | Notes
1224
+ ------------- | ------------- | ------------- | -------------
1225
+ **user_pk** | **String**| |
1226
+
1227
+ ### Return type
1228
+
1229
+ [**ReceivablesSerializer**](ReceivablesSerializer.md)
1230
+
1231
+ ### Authorization
1232
+
1233
+ No authorization required
1234
+
1235
+ ### HTTP request headers
1236
+
1237
+ - **Content-Type**: Not defined
1238
+ - **Accept**: Not defined
1239
+
1240
+
1241
+
1242
+ # **tax_savings_partial_update**
1243
+ > TaxSavingsSerializer tax_savings_partial_update(user_pk, opts)
1244
+
1245
+ View for handling access to tax savings info for a User
1246
+
1247
+ View for handling access to tax savings info for a User.
1248
+
1249
+ ### Example
1250
+ ```ruby
1251
+ # load the gem
1252
+ require 'qwil_api'
1253
+
1254
+ api_instance = QwilAPI::UsersApi.new
1255
+
1256
+ user_pk = "user_pk_example" # String |
1257
+
1258
+ opts = {
1259
+ tax_savings_percent: "tax_savings_percent_example" # String | The percent of income to be withheld for tax savings purposes.
1260
+ }
1261
+
1262
+ begin
1263
+ #View for handling access to tax savings info for a User
1264
+ result = api_instance.tax_savings_partial_update(user_pk, opts)
1265
+ p result
1266
+ rescue QwilAPI::ApiError => e
1267
+ puts "Exception when calling UsersApi->tax_savings_partial_update: #{e}"
1268
+ end
1269
+ ```
1270
+
1271
+ ### Parameters
1272
+
1273
+ Name | Type | Description | Notes
1274
+ ------------- | ------------- | ------------- | -------------
1275
+ **user_pk** | **String**| |
1276
+ **tax_savings_percent** | **String**| The percent of income to be withheld for tax savings purposes. | [optional]
1277
+
1278
+ ### Return type
1279
+
1280
+ [**TaxSavingsSerializer**](TaxSavingsSerializer.md)
1281
+
1282
+ ### Authorization
1283
+
1284
+ No authorization required
1285
+
1286
+ ### HTTP request headers
1287
+
1288
+ - **Content-Type**: Not defined
1289
+ - **Accept**: Not defined
1290
+
1291
+
1292
+
1293
+ # **tax_savings_retrieve**
1294
+ > TaxSavingsSerializer tax_savings_retrieve(user_pk)
1295
+
1296
+ View for handling access to tax savings info for a User
1297
+
1298
+ View for handling access to tax savings info for a User.
1299
+
1300
+ ### Example
1301
+ ```ruby
1302
+ # load the gem
1303
+ require 'qwil_api'
1304
+
1305
+ api_instance = QwilAPI::UsersApi.new
1306
+
1307
+ user_pk = "user_pk_example" # String |
1308
+
1309
+
1310
+ begin
1311
+ #View for handling access to tax savings info for a User
1312
+ result = api_instance.tax_savings_retrieve(user_pk)
1313
+ p result
1314
+ rescue QwilAPI::ApiError => e
1315
+ puts "Exception when calling UsersApi->tax_savings_retrieve: #{e}"
1316
+ end
1317
+ ```
1318
+
1319
+ ### Parameters
1320
+
1321
+ Name | Type | Description | Notes
1322
+ ------------- | ------------- | ------------- | -------------
1323
+ **user_pk** | **String**| |
1324
+
1325
+ ### Return type
1326
+
1327
+ [**TaxSavingsSerializer**](TaxSavingsSerializer.md)
1328
+
1329
+ ### Authorization
1330
+
1331
+ No authorization required
1332
+
1333
+ ### HTTP request headers
1334
+
1335
+ - **Content-Type**: Not defined
1336
+ - **Accept**: Not defined
1337
+
1338
+
1339
+
1340
+ # **tax_savings_update**
1341
+ > TaxSavingsSerializer tax_savings_update(user_pk, opts)
1342
+
1343
+ View for handling access to tax savings info for a User
1344
+
1345
+ View for handling access to tax savings info for a User.
1346
+
1347
+ ### Example
1348
+ ```ruby
1349
+ # load the gem
1350
+ require 'qwil_api'
1351
+
1352
+ api_instance = QwilAPI::UsersApi.new
1353
+
1354
+ user_pk = "user_pk_example" # String |
1355
+
1356
+ opts = {
1357
+ tax_savings_percent: "tax_savings_percent_example" # String | The percent of income to be withheld for tax savings purposes.
1358
+ }
1359
+
1360
+ begin
1361
+ #View for handling access to tax savings info for a User
1362
+ result = api_instance.tax_savings_update(user_pk, opts)
1363
+ p result
1364
+ rescue QwilAPI::ApiError => e
1365
+ puts "Exception when calling UsersApi->tax_savings_update: #{e}"
1366
+ end
1367
+ ```
1368
+
1369
+ ### Parameters
1370
+
1371
+ Name | Type | Description | Notes
1372
+ ------------- | ------------- | ------------- | -------------
1373
+ **user_pk** | **String**| |
1374
+ **tax_savings_percent** | **String**| The percent of income to be withheld for tax savings purposes. | [optional]
1375
+
1376
+ ### Return type
1377
+
1378
+ [**TaxSavingsSerializer**](TaxSavingsSerializer.md)
1379
+
1380
+ ### Authorization
1381
+
1382
+ No authorization required
1383
+
1384
+ ### HTTP request headers
1385
+
1386
+ - **Content-Type**: Not defined
1387
+ - **Accept**: Not defined
1388
+
1389
+
1390
+
1391
+ # **user_create**
1392
+ > UserSerializer user_create(email, opts)
1393
+
1394
+ The list of registered Qwil Users
1395
+
1396
+ The list of registered Qwil Users.
1397
+
1398
+ ### Example
1399
+ ```ruby
1400
+ # load the gem
1401
+ require 'qwil_api'
1402
+
1403
+ api_instance = QwilAPI::UsersApi.new
1404
+
1405
+ email = "email_example" # String |
1406
+
1407
+ opts = {
1408
+ first_name: "first_name_example", # String | First name, if the user is an individual. Leave blank if this user is a company.
1409
+ last_name: "last_name_example", # String | Last name, if the user is an individual. Leave blank if this user is a company.
1410
+ business_name: "business_name_example", # String | Business name. Only use this field if this user is a business entity.
1411
+ contractor_type: "INDIVIDUAL", # String |
1412
+ default_account: "default_account_example", # String | Default account to use for payment of unpaid income.
1413
+ tax_savings_account: "tax_savings_account_example", # String | Account to use for tax savings.
1414
+ tax_savings_percent: "tax_savings_percent_example", # String | The percent of income to be withheld for tax savings purposes.
1415
+ use_plaid: true, # BOOLEAN | Feature flag specifying if Plaid integration should be used.
1416
+ use_income_requests: true, # BOOLEAN | Feature flag specifying if IncomeRequests should be enabled for this user.
1417
+ use_tax_savings: true, # BOOLEAN | Feature flag specifying if tax savings should be enabled.
1418
+ is_auto_cashout_enabled: true, # BOOLEAN | Whether or not all income should be immediately cashed out for this user.
1419
+ password: "password_example", # String |
1420
+ personal_information: "personal_information_example" # String |
1421
+ }
1422
+
1423
+ begin
1424
+ #The list of registered Qwil Users
1425
+ result = api_instance.user_create(email, opts)
1426
+ p result
1427
+ rescue QwilAPI::ApiError => e
1428
+ puts "Exception when calling UsersApi->user_create: #{e}"
1429
+ end
1430
+ ```
1431
+
1432
+ ### Parameters
1433
+
1434
+ Name | Type | Description | Notes
1435
+ ------------- | ------------- | ------------- | -------------
1436
+ **email** | **String**| |
1437
+ **first_name** | **String**| First name, if the user is an individual. Leave blank if this user is a company. | [optional]
1438
+ **last_name** | **String**| Last name, if the user is an individual. Leave blank if this user is a company. | [optional]
1439
+ **business_name** | **String**| Business name. Only use this field if this user is a business entity. | [optional]
1440
+ **contractor_type** | **String**| | [optional] [default to INDIVIDUAL]
1441
+ **default_account** | **String**| Default account to use for payment of unpaid income. | [optional]
1442
+ **tax_savings_account** | **String**| Account to use for tax savings. | [optional]
1443
+ **tax_savings_percent** | **String**| The percent of income to be withheld for tax savings purposes. | [optional]
1444
+ **use_plaid** | **BOOLEAN**| Feature flag specifying if Plaid integration should be used. | [optional]
1445
+ **use_income_requests** | **BOOLEAN**| Feature flag specifying if IncomeRequests should be enabled for this user. | [optional]
1446
+ **use_tax_savings** | **BOOLEAN**| Feature flag specifying if tax savings should be enabled. | [optional]
1447
+ **is_auto_cashout_enabled** | **BOOLEAN**| Whether or not all income should be immediately cashed out for this user. | [optional]
1448
+ **password** | **String**| | [optional]
1449
+ **personal_information** | **String**| | [optional]
1450
+
1451
+ ### Return type
1452
+
1453
+ [**UserSerializer**](UserSerializer.md)
1454
+
1455
+ ### Authorization
1456
+
1457
+ No authorization required
1458
+
1459
+ ### HTTP request headers
1460
+
1461
+ - **Content-Type**: Not defined
1462
+ - **Accept**: Not defined
1463
+
1464
+
1465
+
1466
+ # **user_income_request_create**
1467
+ > UserIncomeRequestSerializer user_income_request_create(user_pk, amount, platform, opts)
1468
+
1469
+
1470
+
1471
+
1472
+
1473
+ ### Example
1474
+ ```ruby
1475
+ # load the gem
1476
+ require 'qwil_api'
1477
+
1478
+ api_instance = QwilAPI::UsersApi.new
1479
+
1480
+ user_pk = "user_pk_example" # String |
1481
+
1482
+ amount = "amount_example" # String | The dollar value of income requested by the User
1483
+
1484
+ platform = "platform_example" # String | The platform that the User is requesting Income from.
1485
+
1486
+ opts = {
1487
+ note: "note_example" # String | Text visible to the Platform and User describing the Income Request
1488
+ }
1489
+
1490
+ begin
1491
+ #
1492
+ result = api_instance.user_income_request_create(user_pk, amount, platform, opts)
1493
+ p result
1494
+ rescue QwilAPI::ApiError => e
1495
+ puts "Exception when calling UsersApi->user_income_request_create: #{e}"
1496
+ end
1497
+ ```
1498
+
1499
+ ### Parameters
1500
+
1501
+ Name | Type | Description | Notes
1502
+ ------------- | ------------- | ------------- | -------------
1503
+ **user_pk** | **String**| |
1504
+ **amount** | **String**| The dollar value of income requested by the User |
1505
+ **platform** | **String**| The platform that the User is requesting Income from. |
1506
+ **note** | **String**| Text visible to the Platform and User describing the Income Request | [optional]
1507
+
1508
+ ### Return type
1509
+
1510
+ [**UserIncomeRequestSerializer**](UserIncomeRequestSerializer.md)
1511
+
1512
+ ### Authorization
1513
+
1514
+ No authorization required
1515
+
1516
+ ### HTTP request headers
1517
+
1518
+ - **Content-Type**: Not defined
1519
+ - **Accept**: Not defined
1520
+
1521
+
1522
+
1523
+ # **user_income_request_list**
1524
+ > Array&lt;UserIncomeRequestSerializer&gt; user_income_request_list(user_pk)
1525
+
1526
+
1527
+
1528
+
1529
+
1530
+ ### Example
1531
+ ```ruby
1532
+ # load the gem
1533
+ require 'qwil_api'
1534
+
1535
+ api_instance = QwilAPI::UsersApi.new
1536
+
1537
+ user_pk = "user_pk_example" # String |
1538
+
1539
+
1540
+ begin
1541
+ #
1542
+ result = api_instance.user_income_request_list(user_pk)
1543
+ p result
1544
+ rescue QwilAPI::ApiError => e
1545
+ puts "Exception when calling UsersApi->user_income_request_list: #{e}"
1546
+ end
1547
+ ```
1548
+
1549
+ ### Parameters
1550
+
1551
+ Name | Type | Description | Notes
1552
+ ------------- | ------------- | ------------- | -------------
1553
+ **user_pk** | **String**| |
1554
+
1555
+ ### Return type
1556
+
1557
+ [**Array&lt;UserIncomeRequestSerializer&gt;**](UserIncomeRequestSerializer.md)
1558
+
1559
+ ### Authorization
1560
+
1561
+ No authorization required
1562
+
1563
+ ### HTTP request headers
1564
+
1565
+ - **Content-Type**: Not defined
1566
+ - **Accept**: Not defined
1567
+
1568
+
1569
+
1570
+ # **user_income_request_retrieve**
1571
+ > UserIncomeRequestSerializer user_income_request_retrieve(user_pk, pk)
1572
+
1573
+
1574
+
1575
+
1576
+
1577
+ ### Example
1578
+ ```ruby
1579
+ # load the gem
1580
+ require 'qwil_api'
1581
+
1582
+ api_instance = QwilAPI::UsersApi.new
1583
+
1584
+ user_pk = "user_pk_example" # String |
1585
+
1586
+ pk = "pk_example" # String |
1587
+
1588
+
1589
+ begin
1590
+ #
1591
+ result = api_instance.user_income_request_retrieve(user_pk, pk)
1592
+ p result
1593
+ rescue QwilAPI::ApiError => e
1594
+ puts "Exception when calling UsersApi->user_income_request_retrieve: #{e}"
1595
+ end
1596
+ ```
1597
+
1598
+ ### Parameters
1599
+
1600
+ Name | Type | Description | Notes
1601
+ ------------- | ------------- | ------------- | -------------
1602
+ **user_pk** | **String**| |
1603
+ **pk** | **String**| |
1604
+
1605
+ ### Return type
1606
+
1607
+ [**UserIncomeRequestSerializer**](UserIncomeRequestSerializer.md)
1608
+
1609
+ ### Authorization
1610
+
1611
+ No authorization required
1612
+
1613
+ ### HTTP request headers
1614
+
1615
+ - **Content-Type**: Not defined
1616
+ - **Accept**: Not defined
1617
+
1618
+
1619
+
1620
+ # **user_list**
1621
+ > Array&lt;ContractorSerializer&gt; user_list
1622
+
1623
+ The list of registered Qwil Users
1624
+
1625
+ The list of registered Qwil Users.
1626
+
1627
+ ### Example
1628
+ ```ruby
1629
+ # load the gem
1630
+ require 'qwil_api'
1631
+
1632
+ api_instance = QwilAPI::UsersApi.new
1633
+
1634
+ begin
1635
+ #The list of registered Qwil Users
1636
+ result = api_instance.user_list
1637
+ p result
1638
+ rescue QwilAPI::ApiError => e
1639
+ puts "Exception when calling UsersApi->user_list: #{e}"
1640
+ end
1641
+ ```
1642
+
1643
+ ### Parameters
1644
+ This endpoint does not need any parameter.
1645
+
1646
+ ### Return type
1647
+
1648
+ [**Array&lt;ContractorSerializer&gt;**](ContractorSerializer.md)
1649
+
1650
+ ### Authorization
1651
+
1652
+ No authorization required
1653
+
1654
+ ### HTTP request headers
1655
+
1656
+ - **Content-Type**: Not defined
1657
+ - **Accept**: Not defined
1658
+
1659
+
1660
+
1661
+ # **user_partial_update**
1662
+ > ContractorSerializer user_partial_update(pk, opts)
1663
+
1664
+ The list of registered Qwil Users
1665
+
1666
+ The list of registered Qwil Users.
1667
+
1668
+ ### Example
1669
+ ```ruby
1670
+ # load the gem
1671
+ require 'qwil_api'
1672
+
1673
+ api_instance = QwilAPI::UsersApi.new
1674
+
1675
+ pk = "pk_example" # String |
1676
+
1677
+ opts = {
1678
+ email: "email_example", # String |
1679
+ first_name: "first_name_example", # String | First name, if the user is an individual. Leave blank if this user is a company.
1680
+ last_name: "last_name_example", # String | Last name, if the user is an individual. Leave blank if this user is a company.
1681
+ business_name: "business_name_example", # String | Business name. Only use this field if this user is a business entity.
1682
+ contractor_type: "INDIVIDUAL", # String |
1683
+ personal_information: "personal_information_example", # String |
1684
+ default_account: "default_account_example" # String | Default account to use for payment of unpaid income.
1685
+ }
1686
+
1687
+ begin
1688
+ #The list of registered Qwil Users
1689
+ result = api_instance.user_partial_update(pk, opts)
1690
+ p result
1691
+ rescue QwilAPI::ApiError => e
1692
+ puts "Exception when calling UsersApi->user_partial_update: #{e}"
1693
+ end
1694
+ ```
1695
+
1696
+ ### Parameters
1697
+
1698
+ Name | Type | Description | Notes
1699
+ ------------- | ------------- | ------------- | -------------
1700
+ **pk** | **String**| |
1701
+ **email** | **String**| | [optional]
1702
+ **first_name** | **String**| First name, if the user is an individual. Leave blank if this user is a company. | [optional]
1703
+ **last_name** | **String**| Last name, if the user is an individual. Leave blank if this user is a company. | [optional]
1704
+ **business_name** | **String**| Business name. Only use this field if this user is a business entity. | [optional]
1705
+ **contractor_type** | **String**| | [optional] [default to INDIVIDUAL]
1706
+ **personal_information** | **String**| | [optional]
1707
+ **default_account** | **String**| Default account to use for payment of unpaid income. | [optional]
1708
+
1709
+ ### Return type
1710
+
1711
+ [**ContractorSerializer**](ContractorSerializer.md)
1712
+
1713
+ ### Authorization
1714
+
1715
+ No authorization required
1716
+
1717
+ ### HTTP request headers
1718
+
1719
+ - **Content-Type**: Not defined
1720
+ - **Accept**: Not defined
1721
+
1722
+
1723
+
1724
+ # **user_platform_membership_request_create**
1725
+ > UserPlatformMembershipRequestSerializer user_platform_membership_request_create(user_pk, platform, opts)
1726
+
1727
+
1728
+
1729
+
1730
+
1731
+ ### Example
1732
+ ```ruby
1733
+ # load the gem
1734
+ require 'qwil_api'
1735
+
1736
+ api_instance = QwilAPI::UsersApi.new
1737
+
1738
+ user_pk = "user_pk_example" # String |
1739
+
1740
+ platform = "platform_example" # String | The platform that the User requests to join.
1741
+
1742
+ opts = {
1743
+ decision_maker: "decision_maker_example" # String |
1744
+ }
1745
+
1746
+ begin
1747
+ #
1748
+ result = api_instance.user_platform_membership_request_create(user_pk, platform, opts)
1749
+ p result
1750
+ rescue QwilAPI::ApiError => e
1751
+ puts "Exception when calling UsersApi->user_platform_membership_request_create: #{e}"
1752
+ end
1753
+ ```
1754
+
1755
+ ### Parameters
1756
+
1757
+ Name | Type | Description | Notes
1758
+ ------------- | ------------- | ------------- | -------------
1759
+ **user_pk** | **String**| |
1760
+ **platform** | **String**| The platform that the User requests to join. |
1761
+ **decision_maker** | **String**| | [optional]
1762
+
1763
+ ### Return type
1764
+
1765
+ [**UserPlatformMembershipRequestSerializer**](UserPlatformMembershipRequestSerializer.md)
1766
+
1767
+ ### Authorization
1768
+
1769
+ No authorization required
1770
+
1771
+ ### HTTP request headers
1772
+
1773
+ - **Content-Type**: Not defined
1774
+ - **Accept**: Not defined
1775
+
1776
+
1777
+
1778
+ # **user_platform_membership_request_list**
1779
+ > Array&lt;UserPlatformMembershipRequestSerializer&gt; user_platform_membership_request_list(user_pk)
1780
+
1781
+
1782
+
1783
+
1784
+
1785
+ ### Example
1786
+ ```ruby
1787
+ # load the gem
1788
+ require 'qwil_api'
1789
+
1790
+ api_instance = QwilAPI::UsersApi.new
1791
+
1792
+ user_pk = "user_pk_example" # String |
1793
+
1794
+
1795
+ begin
1796
+ #
1797
+ result = api_instance.user_platform_membership_request_list(user_pk)
1798
+ p result
1799
+ rescue QwilAPI::ApiError => e
1800
+ puts "Exception when calling UsersApi->user_platform_membership_request_list: #{e}"
1801
+ end
1802
+ ```
1803
+
1804
+ ### Parameters
1805
+
1806
+ Name | Type | Description | Notes
1807
+ ------------- | ------------- | ------------- | -------------
1808
+ **user_pk** | **String**| |
1809
+
1810
+ ### Return type
1811
+
1812
+ [**Array&lt;UserPlatformMembershipRequestSerializer&gt;**](UserPlatformMembershipRequestSerializer.md)
1813
+
1814
+ ### Authorization
1815
+
1816
+ No authorization required
1817
+
1818
+ ### HTTP request headers
1819
+
1820
+ - **Content-Type**: Not defined
1821
+ - **Accept**: Not defined
1822
+
1823
+
1824
+
1825
+ # **user_platform_membership_request_retrieve**
1826
+ > UserPlatformMembershipRequestSerializer user_platform_membership_request_retrieve(user_pk, pk)
1827
+
1828
+
1829
+
1830
+
1831
+
1832
+ ### Example
1833
+ ```ruby
1834
+ # load the gem
1835
+ require 'qwil_api'
1836
+
1837
+ api_instance = QwilAPI::UsersApi.new
1838
+
1839
+ user_pk = "user_pk_example" # String |
1840
+
1841
+ pk = "pk_example" # String |
1842
+
1843
+
1844
+ begin
1845
+ #
1846
+ result = api_instance.user_platform_membership_request_retrieve(user_pk, pk)
1847
+ p result
1848
+ rescue QwilAPI::ApiError => e
1849
+ puts "Exception when calling UsersApi->user_platform_membership_request_retrieve: #{e}"
1850
+ end
1851
+ ```
1852
+
1853
+ ### Parameters
1854
+
1855
+ Name | Type | Description | Notes
1856
+ ------------- | ------------- | ------------- | -------------
1857
+ **user_pk** | **String**| |
1858
+ **pk** | **String**| |
1859
+
1860
+ ### Return type
1861
+
1862
+ [**UserPlatformMembershipRequestSerializer**](UserPlatformMembershipRequestSerializer.md)
1863
+
1864
+ ### Authorization
1865
+
1866
+ No authorization required
1867
+
1868
+ ### HTTP request headers
1869
+
1870
+ - **Content-Type**: Not defined
1871
+ - **Accept**: Not defined
1872
+
1873
+
1874
+
1875
+ # **user_retrieve**
1876
+ > ContractorSerializer user_retrieve(pk)
1877
+
1878
+ The list of registered Qwil Users
1879
+
1880
+ The list of registered Qwil Users.
1881
+
1882
+ ### Example
1883
+ ```ruby
1884
+ # load the gem
1885
+ require 'qwil_api'
1886
+
1887
+ api_instance = QwilAPI::UsersApi.new
1888
+
1889
+ pk = "pk_example" # String |
1890
+
1891
+
1892
+ begin
1893
+ #The list of registered Qwil Users
1894
+ result = api_instance.user_retrieve(pk)
1895
+ p result
1896
+ rescue QwilAPI::ApiError => e
1897
+ puts "Exception when calling UsersApi->user_retrieve: #{e}"
1898
+ end
1899
+ ```
1900
+
1901
+ ### Parameters
1902
+
1903
+ Name | Type | Description | Notes
1904
+ ------------- | ------------- | ------------- | -------------
1905
+ **pk** | **String**| |
1906
+
1907
+ ### Return type
1908
+
1909
+ [**ContractorSerializer**](ContractorSerializer.md)
1910
+
1911
+ ### Authorization
1912
+
1913
+ No authorization required
1914
+
1915
+ ### HTTP request headers
1916
+
1917
+ - **Content-Type**: Not defined
1918
+ - **Accept**: Not defined
1919
+
1920
+
1921
+
1922
+ # **user_update**
1923
+ > ContractorSerializer user_update(pk, email, opts)
1924
+
1925
+ The list of registered Qwil Users
1926
+
1927
+ The list of registered Qwil Users.
1928
+
1929
+ ### Example
1930
+ ```ruby
1931
+ # load the gem
1932
+ require 'qwil_api'
1933
+
1934
+ api_instance = QwilAPI::UsersApi.new
1935
+
1936
+ pk = "pk_example" # String |
1937
+
1938
+ email = "email_example" # String |
1939
+
1940
+ opts = {
1941
+ first_name: "first_name_example", # String | First name, if the user is an individual. Leave blank if this user is a company.
1942
+ last_name: "last_name_example", # String | Last name, if the user is an individual. Leave blank if this user is a company.
1943
+ business_name: "business_name_example", # String | Business name. Only use this field if this user is a business entity.
1944
+ contractor_type: "INDIVIDUAL", # String |
1945
+ personal_information: "personal_information_example", # String |
1946
+ default_account: "default_account_example" # String | Default account to use for payment of unpaid income.
1947
+ }
1948
+
1949
+ begin
1950
+ #The list of registered Qwil Users
1951
+ result = api_instance.user_update(pk, email, opts)
1952
+ p result
1953
+ rescue QwilAPI::ApiError => e
1954
+ puts "Exception when calling UsersApi->user_update: #{e}"
1955
+ end
1956
+ ```
1957
+
1958
+ ### Parameters
1959
+
1960
+ Name | Type | Description | Notes
1961
+ ------------- | ------------- | ------------- | -------------
1962
+ **pk** | **String**| |
1963
+ **email** | **String**| |
1964
+ **first_name** | **String**| First name, if the user is an individual. Leave blank if this user is a company. | [optional]
1965
+ **last_name** | **String**| Last name, if the user is an individual. Leave blank if this user is a company. | [optional]
1966
+ **business_name** | **String**| Business name. Only use this field if this user is a business entity. | [optional]
1967
+ **contractor_type** | **String**| | [optional] [default to INDIVIDUAL]
1968
+ **personal_information** | **String**| | [optional]
1969
+ **default_account** | **String**| Default account to use for payment of unpaid income. | [optional]
1970
+
1971
+ ### Return type
1972
+
1973
+ [**ContractorSerializer**](ContractorSerializer.md)
1974
+
1975
+ ### Authorization
1976
+
1977
+ No authorization required
1978
+
1979
+ ### HTTP request headers
1980
+
1981
+ - **Content-Type**: Not defined
1982
+ - **Accept**: Not defined
1983
+
1984
+
1985
+
1986
+ # **xero_account_get**
1987
+ > Object xero_account_get(user_pk)
1988
+
1989
+
1990
+
1991
+
1992
+
1993
+ ### Example
1994
+ ```ruby
1995
+ # load the gem
1996
+ require 'qwil_api'
1997
+
1998
+ api_instance = QwilAPI::UsersApi.new
1999
+
2000
+ user_pk = "user_pk_example" # String |
2001
+
2002
+
2003
+ begin
2004
+ #
2005
+ result = api_instance.xero_account_get(user_pk)
2006
+ p result
2007
+ rescue QwilAPI::ApiError => e
2008
+ puts "Exception when calling UsersApi->xero_account_get: #{e}"
2009
+ end
2010
+ ```
2011
+
2012
+ ### Parameters
2013
+
2014
+ Name | Type | Description | Notes
2015
+ ------------- | ------------- | ------------- | -------------
2016
+ **user_pk** | **String**| |
2017
+
2018
+ ### Return type
2019
+
2020
+ **Object**
2021
+
2022
+ ### Authorization
2023
+
2024
+ No authorization required
2025
+
2026
+ ### HTTP request headers
2027
+
2028
+ - **Content-Type**: Not defined
2029
+ - **Accept**: Not defined
2030
+
2031
+
2032
+
2033
+ # **xero_account_put**
2034
+ > Object xero_account_put(user_pk)
2035
+
2036
+
2037
+
2038
+
2039
+
2040
+ ### Example
2041
+ ```ruby
2042
+ # load the gem
2043
+ require 'qwil_api'
2044
+
2045
+ api_instance = QwilAPI::UsersApi.new
2046
+
2047
+ user_pk = "user_pk_example" # String |
2048
+
2049
+
2050
+ begin
2051
+ #
2052
+ result = api_instance.xero_account_put(user_pk)
2053
+ p result
2054
+ rescue QwilAPI::ApiError => e
2055
+ puts "Exception when calling UsersApi->xero_account_put: #{e}"
2056
+ end
2057
+ ```
2058
+
2059
+ ### Parameters
2060
+
2061
+ Name | Type | Description | Notes
2062
+ ------------- | ------------- | ------------- | -------------
2063
+ **user_pk** | **String**| |
2064
+
2065
+ ### Return type
2066
+
2067
+ **Object**
2068
+
2069
+ ### Authorization
2070
+
2071
+ No authorization required
2072
+
2073
+ ### HTTP request headers
2074
+
2075
+ - **Content-Type**: Not defined
2076
+ - **Accept**: Not defined
2077
+
2078
+
2079
+
2080
+ # **xero_auth_callback_get**
2081
+ > Object xero_auth_callback_get(user_pk)
2082
+
2083
+
2084
+
2085
+
2086
+
2087
+ ### Example
2088
+ ```ruby
2089
+ # load the gem
2090
+ require 'qwil_api'
2091
+
2092
+ api_instance = QwilAPI::UsersApi.new
2093
+
2094
+ user_pk = "user_pk_example" # String |
2095
+
2096
+
2097
+ begin
2098
+ #
2099
+ result = api_instance.xero_auth_callback_get(user_pk)
2100
+ p result
2101
+ rescue QwilAPI::ApiError => e
2102
+ puts "Exception when calling UsersApi->xero_auth_callback_get: #{e}"
2103
+ end
2104
+ ```
2105
+
2106
+ ### Parameters
2107
+
2108
+ Name | Type | Description | Notes
2109
+ ------------- | ------------- | ------------- | -------------
2110
+ **user_pk** | **String**| |
2111
+
2112
+ ### Return type
2113
+
2114
+ **Object**
2115
+
2116
+ ### Authorization
2117
+
2118
+ No authorization required
2119
+
2120
+ ### HTTP request headers
2121
+
2122
+ - **Content-Type**: Not defined
2123
+ - **Accept**: Not defined
2124
+
2125
+
2126
+
2127
+ # **xero_auth_url_get**
2128
+ > Object xero_auth_url_get(user_pk)
2129
+
2130
+
2131
+
2132
+
2133
+
2134
+ ### Example
2135
+ ```ruby
2136
+ # load the gem
2137
+ require 'qwil_api'
2138
+
2139
+ api_instance = QwilAPI::UsersApi.new
2140
+
2141
+ user_pk = "user_pk_example" # String |
2142
+
2143
+
2144
+ begin
2145
+ #
2146
+ result = api_instance.xero_auth_url_get(user_pk)
2147
+ p result
2148
+ rescue QwilAPI::ApiError => e
2149
+ puts "Exception when calling UsersApi->xero_auth_url_get: #{e}"
2150
+ end
2151
+ ```
2152
+
2153
+ ### Parameters
2154
+
2155
+ Name | Type | Description | Notes
2156
+ ------------- | ------------- | ------------- | -------------
2157
+ **user_pk** | **String**| |
2158
+
2159
+ ### Return type
2160
+
2161
+ **Object**
2162
+
2163
+ ### Authorization
2164
+
2165
+ No authorization required
2166
+
2167
+ ### HTTP request headers
2168
+
2169
+ - **Content-Type**: Not defined
2170
+ - **Accept**: Not defined
2171
+
2172
+
2173
+