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.
- checksums.yaml +7 -0
- data/README.md +91 -0
- data/docs/AccountSerializer.md +18 -0
- data/docs/AccountsApi.md +243 -0
- data/docs/ApitokenauthApi.md +57 -0
- data/docs/CashoutCalculationSerializer.md +10 -0
- data/docs/CashoutSerializer.md +20 -0
- data/docs/CashoutSliceSerializer.md +11 -0
- data/docs/CashoutsApi.md +56 -0
- data/docs/CompanyInformationSerializer.md +18 -0
- data/docs/ContactInfoSerializer.md +10 -0
- data/docs/ContactInformationSerializer.md +16 -0
- data/docs/ContractorSerializer.md +20 -0
- data/docs/IncomeApi.md +98 -0
- data/docs/IncomeNestedSerializer.md +18 -0
- data/docs/IncomeSerializer.md +18 -0
- data/docs/IncomeSerializerFixedSource.md +18 -0
- data/docs/InvoiceSerializer.md +17 -0
- data/docs/InvoiceSerializerFixedSourceCreate.md +17 -0
- data/docs/InvoicesApi.md +98 -0
- data/docs/JSONWebTokenSerializer.md +7 -0
- data/docs/ManagerPlatformSerializer.md +22 -0
- data/docs/ManagerSerializer.md +10 -0
- data/docs/ManagersApi.md +172 -0
- data/docs/MembershipSerializer.md +9 -0
- data/docs/MembershipsApi.md +56 -0
- data/docs/PersonalInformationSerializer.md +16 -0
- data/docs/PlaidPublicTokenSerializer.md +8 -0
- data/docs/PlatformIncomeRequestSerializer.md +15 -0
- data/docs/PlatformMembershipRequestSerializer.md +11 -0
- data/docs/PlatformSerializer.md +30 -0
- data/docs/PlatformSummarySerializer.md +10 -0
- data/docs/PlatformsApi.md +1369 -0
- data/docs/RebateSerializer.md +15 -0
- data/docs/RebatesApi.md +98 -0
- data/docs/ReceivablesSerializer.md +9 -0
- data/docs/TaxSavingsSerializer.md +10 -0
- data/docs/UserAccountSerializer.md +17 -0
- data/docs/UserCashoutSerializer.md +20 -0
- data/docs/UserIncomeRequestSerializer.md +15 -0
- data/docs/UserPlatformMembershipRequestSerializer.md +13 -0
- data/docs/UserSerializer.md +40 -0
- data/docs/UsersApi.md +2173 -0
- data/docs/WriteAccountSerializer.md +16 -0
- data/docs/WriteCashoutCalculationSerializer.md +8 -0
- data/docs/WriteCashoutSerializer.md +16 -0
- data/docs/WriteCashoutSliceSerializer.md +11 -0
- data/docs/WriteCompanyInformationSerializer.md +17 -0
- data/docs/WriteContactInfoSerializer.md +10 -0
- data/docs/WriteContactInformationSerializer.md +15 -0
- data/docs/WriteContractorSerializer.md +14 -0
- data/docs/WriteIncomeNestedSerializer.md +12 -0
- data/docs/WriteIncomeSerializer.md +13 -0
- data/docs/WriteIncomeSerializerFixedSource.md +12 -0
- data/docs/WriteInvoiceSerializer.md +13 -0
- data/docs/WriteInvoiceSerializerFixedSourceCreate.md +9 -0
- data/docs/WriteJSONWebTokenSerializer.md +7 -0
- data/docs/WriteManagerPlatformSerializer.md +15 -0
- data/docs/WriteManagerSerializer.md +8 -0
- data/docs/WriteMembershipSerializer.md +8 -0
- data/docs/WritePersonalInformationSerializer.md +16 -0
- data/docs/WritePlaidPublicTokenSerializer.md +8 -0
- data/docs/WritePlatformIncomeRequestSerializer.md +10 -0
- data/docs/WritePlatformMembershipRequestSerializer.md +7 -0
- data/docs/WritePlatformSerializer.md +19 -0
- data/docs/WritePlatformSummarySerializer.md +8 -0
- data/docs/WriteRebateSerializer.md +9 -0
- data/docs/WriteReceivablesSerializer.md +8 -0
- data/docs/WriteTaxSavingsSerializer.md +8 -0
- data/docs/WriteUserAccountSerializer.md +14 -0
- data/docs/WriteUserCashoutSerializer.md +15 -0
- data/docs/WriteUserIncomeRequestSerializer.md +10 -0
- data/docs/WriteUserPlatformMembershipRequestSerializer.md +9 -0
- data/docs/WriteUserSerializer.md +21 -0
- data/generate-client.sh +6 -0
- data/lib/qwil_api/api/accounts_api.rb +320 -0
- data/lib/qwil_api/api/apitokenauth_api.rb +87 -0
- data/lib/qwil_api/api/cashouts_api.rb +89 -0
- data/lib/qwil_api/api/income_api.rb +142 -0
- data/lib/qwil_api/api/invoices_api.rb +142 -0
- data/lib/qwil_api/api/managers_api.rb +237 -0
- data/lib/qwil_api/api/memberships_api.rb +89 -0
- data/lib/qwil_api/api/platforms_api.rb +1674 -0
- data/lib/qwil_api/api/rebates_api.rb +142 -0
- data/lib/qwil_api/api/users_api.rb +2672 -0
- data/lib/qwil_api/api_client.rb +376 -0
- data/lib/qwil_api/api_error.rb +45 -0
- data/lib/qwil_api/configuration.rb +205 -0
- data/lib/qwil_api/models/account_serializer.rb +370 -0
- data/lib/qwil_api/models/cashout_calculation_serializer.rb +221 -0
- data/lib/qwil_api/models/cashout_serializer.rb +379 -0
- data/lib/qwil_api/models/cashout_slice_serializer.rb +232 -0
- data/lib/qwil_api/models/company_information_serializer.rb +299 -0
- data/lib/qwil_api/models/contact_info_serializer.rb +218 -0
- data/lib/qwil_api/models/contact_information_serializer.rb +280 -0
- data/lib/qwil_api/models/contractor_serializer.rb +361 -0
- data/lib/qwil_api/models/income_nested_serializer.rb +302 -0
- data/lib/qwil_api/models/income_serializer.rb +302 -0
- data/lib/qwil_api/models/income_serializer_fixed_source.rb +302 -0
- data/lib/qwil_api/models/invoice_serializer.rb +299 -0
- data/lib/qwil_api/models/invoice_serializer_fixed_source_create.rb +299 -0
- data/lib/qwil_api/models/json_web_token_serializer.rb +188 -0
- data/lib/qwil_api/models/manager_platform_serializer.rb +391 -0
- data/lib/qwil_api/models/manager_serializer.rb +218 -0
- data/lib/qwil_api/models/membership_serializer.rb +208 -0
- data/lib/qwil_api/models/personal_information_serializer.rb +279 -0
- data/lib/qwil_api/models/plaid_public_token_serializer.rb +199 -0
- data/lib/qwil_api/models/platform_income_request_serializer.rb +307 -0
- data/lib/qwil_api/models/platform_membership_request_serializer.rb +262 -0
- data/lib/qwil_api/models/platform_serializer.rb +480 -0
- data/lib/qwil_api/models/platform_summary_serializer.rb +218 -0
- data/lib/qwil_api/models/rebate_serializer.rb +276 -0
- data/lib/qwil_api/models/receivables_serializer.rb +208 -0
- data/lib/qwil_api/models/tax_savings_serializer.rb +219 -0
- data/lib/qwil_api/models/user_account_serializer.rb +359 -0
- data/lib/qwil_api/models/user_cashout_serializer.rb +379 -0
- data/lib/qwil_api/models/user_income_request_serializer.rb +307 -0
- data/lib/qwil_api/models/user_platform_membership_request_serializer.rb +283 -0
- data/lib/qwil_api/models/user_serializer.rb +592 -0
- data/lib/qwil_api/models/write_account_serializer.rb +331 -0
- data/lib/qwil_api/models/write_cashout_calculation_serializer.rb +198 -0
- data/lib/qwil_api/models/write_cashout_serializer.rb +316 -0
- data/lib/qwil_api/models/write_cashout_slice_serializer.rb +232 -0
- data/lib/qwil_api/models/write_company_information_serializer.rb +280 -0
- data/lib/qwil_api/models/write_contact_info_serializer.rb +218 -0
- data/lib/qwil_api/models/write_contact_information_serializer.rb +262 -0
- data/lib/qwil_api/models/write_contractor_serializer.rb +289 -0
- data/lib/qwil_api/models/write_income_nested_serializer.rb +236 -0
- data/lib/qwil_api/models/write_income_serializer.rb +247 -0
- data/lib/qwil_api/models/write_income_serializer_fixed_source.rb +236 -0
- data/lib/qwil_api/models/write_invoice_serializer.rb +252 -0
- data/lib/qwil_api/models/write_invoice_serializer_fixed_source_create.rb +210 -0
- data/lib/qwil_api/models/write_json_web_token_serializer.rb +188 -0
- data/lib/qwil_api/models/write_manager_platform_serializer.rb +314 -0
- data/lib/qwil_api/models/write_manager_serializer.rb +198 -0
- data/lib/qwil_api/models/write_membership_serializer.rb +198 -0
- data/lib/qwil_api/models/write_personal_information_serializer.rb +270 -0
- data/lib/qwil_api/models/write_plaid_public_token_serializer.rb +199 -0
- data/lib/qwil_api/models/write_platform_income_request_serializer.rb +220 -0
- data/lib/qwil_api/models/write_platform_membership_request_serializer.rb +188 -0
- data/lib/qwil_api/models/write_platform_serializer.rb +309 -0
- data/lib/qwil_api/models/write_platform_summary_serializer.rb +198 -0
- data/lib/qwil_api/models/write_rebate_serializer.rb +209 -0
- data/lib/qwil_api/models/write_receivables_serializer.rb +198 -0
- data/lib/qwil_api/models/write_tax_savings_serializer.rb +198 -0
- data/lib/qwil_api/models/write_user_account_serializer.rb +312 -0
- data/lib/qwil_api/models/write_user_cashout_serializer.rb +307 -0
- data/lib/qwil_api/models/write_user_income_request_serializer.rb +220 -0
- data/lib/qwil_api/models/write_user_platform_membership_request_serializer.rb +208 -0
- data/lib/qwil_api/models/write_user_serializer.rb +358 -0
- data/lib/qwil_api/version.rb +24 -0
- data/lib/qwil_api.rb +51 -0
- data/qwil_api.gemspec +53 -0
- data/spec/api/accounts_api_spec.rb +110 -0
- data/spec/api/apitokenauth_api_spec.rb +56 -0
- data/spec/api/cashouts_api_spec.rb +56 -0
- data/spec/api/income_api_spec.rb +67 -0
- data/spec/api/invoices_api_spec.rb +67 -0
- data/spec/api/managers_api_spec.rb +88 -0
- data/spec/api/memberships_api_spec.rb +56 -0
- data/spec/api/platforms_api_spec.rb +398 -0
- data/spec/api/rebates_api_spec.rb +67 -0
- data/spec/api/users_api_spec.rb +625 -0
- data/spec/api_client_spec.rb +235 -0
- data/spec/configuration_spec.rb +51 -0
- data/spec/models/account_serializer_spec.rb +111 -0
- data/spec/models/cashout_calculation_serializer_spec.rb +63 -0
- data/spec/models/cashout_serializer_spec.rb +135 -0
- data/spec/models/cashout_slice_serializer_spec.rb +69 -0
- data/spec/models/company_information_serializer_spec.rb +111 -0
- data/spec/models/contact_info_serializer_spec.rb +63 -0
- data/spec/models/contact_information_serializer_spec.rb +99 -0
- data/spec/models/contractor_serializer_spec.rb +127 -0
- data/spec/models/income_nested_serializer_spec.rb +111 -0
- data/spec/models/income_serializer_fixed_source_spec.rb +111 -0
- data/spec/models/income_serializer_spec.rb +111 -0
- data/spec/models/invoice_serializer_fixed_source_create_spec.rb +105 -0
- data/spec/models/invoice_serializer_spec.rb +105 -0
- data/spec/models/json_web_token_serializer_spec.rb +45 -0
- data/spec/models/manager_platform_serializer_spec.rb +143 -0
- data/spec/models/manager_serializer_spec.rb +63 -0
- data/spec/models/membership_serializer_spec.rb +57 -0
- data/spec/models/personal_information_serializer_spec.rb +99 -0
- data/spec/models/plaid_public_token_serializer_spec.rb +51 -0
- data/spec/models/platform_income_request_serializer_spec.rb +97 -0
- data/spec/models/platform_membership_request_serializer_spec.rb +73 -0
- data/spec/models/platform_serializer_spec.rb +191 -0
- data/spec/models/platform_summary_serializer_spec.rb +63 -0
- data/spec/models/rebate_serializer_spec.rb +93 -0
- data/spec/models/receivables_serializer_spec.rb +57 -0
- data/spec/models/tax_savings_serializer_spec.rb +63 -0
- data/spec/models/user_account_serializer_spec.rb +105 -0
- data/spec/models/user_cashout_serializer_spec.rb +135 -0
- data/spec/models/user_income_request_serializer_spec.rb +97 -0
- data/spec/models/user_platform_membership_request_serializer_spec.rb +85 -0
- data/spec/models/user_serializer_spec.rb +251 -0
- data/spec/models/write_account_serializer_spec.rb +99 -0
- data/spec/models/write_cashout_calculation_serializer_spec.rb +51 -0
- data/spec/models/write_cashout_serializer_spec.rb +107 -0
- data/spec/models/write_cashout_slice_serializer_spec.rb +69 -0
- data/spec/models/write_company_information_serializer_spec.rb +105 -0
- data/spec/models/write_contact_info_serializer_spec.rb +63 -0
- data/spec/models/write_contact_information_serializer_spec.rb +93 -0
- data/spec/models/write_contractor_serializer_spec.rb +91 -0
- data/spec/models/write_income_nested_serializer_spec.rb +75 -0
- data/spec/models/write_income_serializer_fixed_source_spec.rb +75 -0
- data/spec/models/write_income_serializer_spec.rb +81 -0
- data/spec/models/write_invoice_serializer_fixed_source_create_spec.rb +57 -0
- data/spec/models/write_invoice_serializer_spec.rb +81 -0
- data/spec/models/write_json_web_token_serializer_spec.rb +45 -0
- data/spec/models/write_manager_platform_serializer_spec.rb +101 -0
- data/spec/models/write_manager_serializer_spec.rb +51 -0
- data/spec/models/write_membership_serializer_spec.rb +51 -0
- data/spec/models/write_personal_information_serializer_spec.rb +99 -0
- data/spec/models/write_plaid_public_token_serializer_spec.rb +51 -0
- data/spec/models/write_platform_income_request_serializer_spec.rb +63 -0
- data/spec/models/write_platform_membership_request_serializer_spec.rb +45 -0
- data/spec/models/write_platform_serializer_spec.rb +117 -0
- data/spec/models/write_platform_summary_serializer_spec.rb +51 -0
- data/spec/models/write_rebate_serializer_spec.rb +57 -0
- data/spec/models/write_receivables_serializer_spec.rb +51 -0
- data/spec/models/write_tax_savings_serializer_spec.rb +51 -0
- data/spec/models/write_user_account_serializer_spec.rb +87 -0
- data/spec/models/write_user_cashout_serializer_spec.rb +101 -0
- data/spec/models/write_user_income_request_serializer_spec.rb +63 -0
- data/spec/models/write_user_platform_membership_request_serializer_spec.rb +57 -0
- data/spec/models/write_user_serializer_spec.rb +133 -0
- data/spec/spec_helper.rb +120 -0
- data/swagger-codegen-config.json +9 -0
- metadata +527 -0
|
@@ -0,0 +1,625 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#No descripton provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
|
3
|
+
|
|
4
|
+
OpenAPI spec version:
|
|
5
|
+
|
|
6
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
7
|
+
|
|
8
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
+
you may not use this file except in compliance with the License.
|
|
10
|
+
You may obtain a copy of the License at
|
|
11
|
+
|
|
12
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
|
|
14
|
+
Unless required by applicable law or agreed to in writing, software
|
|
15
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
16
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
17
|
+
See the License for the specific language governing permissions and
|
|
18
|
+
limitations under the License.
|
|
19
|
+
|
|
20
|
+
=end
|
|
21
|
+
|
|
22
|
+
require 'spec_helper'
|
|
23
|
+
require 'json'
|
|
24
|
+
|
|
25
|
+
# Unit tests for QwilAPI::UsersApi
|
|
26
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
|
27
|
+
# Please update as you see appropriate
|
|
28
|
+
describe 'UsersApi' do
|
|
29
|
+
before do
|
|
30
|
+
# run before each test
|
|
31
|
+
@instance = QwilAPI::UsersApi.new
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
after do
|
|
35
|
+
# run after each test
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
describe 'test an instance of UsersApi' do
|
|
39
|
+
it 'should create an instact of UsersApi' do
|
|
40
|
+
expect(@instance).to be_instance_of(QwilAPI::UsersApi)
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
# unit tests for account_user_create
|
|
45
|
+
# The bank accounts for a specific User
|
|
46
|
+
# 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\", ... }
|
|
47
|
+
# @param user_pk
|
|
48
|
+
# @param account_number
|
|
49
|
+
# @param name The user's label for this Account.
|
|
50
|
+
# @param routing_number The inter-bank routing nubmer for this Account. 8 or 9 digits in length.
|
|
51
|
+
# @param [Hash] opts the optional parameters
|
|
52
|
+
# @option opts [BOOLEAN] :is_paypal Flag specifying if the Account is a Paypal account.
|
|
53
|
+
# @option opts [BOOLEAN] :is_mychoice Flag specifying if the Account is a MyChoice card. If it is, the mychoice_user_id and mychoice_card_id must be filled in.
|
|
54
|
+
# @option opts [Integer] :mychoice_user_id For MyChoice Accounts. Populated from the MyChoice API.
|
|
55
|
+
# @option opts [Integer] :mychoice_card_id For MyChoice Accounts. Populated from the MyChoice API.
|
|
56
|
+
# @return [UserAccountSerializer]
|
|
57
|
+
describe 'account_user_create test' do
|
|
58
|
+
it "should work" do
|
|
59
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
60
|
+
end
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
# unit tests for account_user_destroy
|
|
64
|
+
# The bank accounts for a specific User
|
|
65
|
+
# 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\", ... }
|
|
66
|
+
# @param user_pk
|
|
67
|
+
# @param pk
|
|
68
|
+
# @param [Hash] opts the optional parameters
|
|
69
|
+
# @return [UserAccountSerializer]
|
|
70
|
+
describe 'account_user_destroy test' do
|
|
71
|
+
it "should work" do
|
|
72
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
73
|
+
end
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
# unit tests for account_user_list
|
|
77
|
+
# The bank accounts for a specific User
|
|
78
|
+
# 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\", ... }
|
|
79
|
+
# @param user_pk
|
|
80
|
+
# @param [Hash] opts the optional parameters
|
|
81
|
+
# @return [Array<UserAccountSerializer>]
|
|
82
|
+
describe 'account_user_list test' do
|
|
83
|
+
it "should work" do
|
|
84
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
85
|
+
end
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
# unit tests for account_user_partial_update
|
|
89
|
+
# The bank accounts for a specific User
|
|
90
|
+
# 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\", ... }
|
|
91
|
+
# @param user_pk
|
|
92
|
+
# @param pk
|
|
93
|
+
# @param [Hash] opts the optional parameters
|
|
94
|
+
# @option opts [String] :account_number
|
|
95
|
+
# @option opts [String] :name The user's label for this Account.
|
|
96
|
+
# @option opts [String] :routing_number The inter-bank routing nubmer for this Account. 8 or 9 digits in length.
|
|
97
|
+
# @option opts [BOOLEAN] :is_paypal Flag specifying if the Account is a Paypal account.
|
|
98
|
+
# @option opts [BOOLEAN] :is_mychoice Flag specifying if the Account is a MyChoice card. If it is, the mychoice_user_id and mychoice_card_id must be filled in.
|
|
99
|
+
# @option opts [Integer] :mychoice_user_id For MyChoice Accounts. Populated from the MyChoice API.
|
|
100
|
+
# @option opts [Integer] :mychoice_card_id For MyChoice Accounts. Populated from the MyChoice API.
|
|
101
|
+
# @return [UserAccountSerializer]
|
|
102
|
+
describe 'account_user_partial_update test' do
|
|
103
|
+
it "should work" do
|
|
104
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
105
|
+
end
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
# unit tests for account_user_retrieve
|
|
109
|
+
# The bank accounts for a specific User
|
|
110
|
+
# 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\", ... }
|
|
111
|
+
# @param user_pk
|
|
112
|
+
# @param pk
|
|
113
|
+
# @param [Hash] opts the optional parameters
|
|
114
|
+
# @return [UserAccountSerializer]
|
|
115
|
+
describe 'account_user_retrieve test' do
|
|
116
|
+
it "should work" do
|
|
117
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
118
|
+
end
|
|
119
|
+
end
|
|
120
|
+
|
|
121
|
+
# unit tests for account_user_update
|
|
122
|
+
# The bank accounts for a specific User
|
|
123
|
+
# 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\", ... }
|
|
124
|
+
# @param user_pk
|
|
125
|
+
# @param pk
|
|
126
|
+
# @param account_number
|
|
127
|
+
# @param name The user's label for this Account.
|
|
128
|
+
# @param routing_number The inter-bank routing nubmer for this Account. 8 or 9 digits in length.
|
|
129
|
+
# @param [Hash] opts the optional parameters
|
|
130
|
+
# @option opts [BOOLEAN] :is_paypal Flag specifying if the Account is a Paypal account.
|
|
131
|
+
# @option opts [BOOLEAN] :is_mychoice Flag specifying if the Account is a MyChoice card. If it is, the mychoice_user_id and mychoice_card_id must be filled in.
|
|
132
|
+
# @option opts [Integer] :mychoice_user_id For MyChoice Accounts. Populated from the MyChoice API.
|
|
133
|
+
# @option opts [Integer] :mychoice_card_id For MyChoice Accounts. Populated from the MyChoice API.
|
|
134
|
+
# @return [UserAccountSerializer]
|
|
135
|
+
describe 'account_user_update test' do
|
|
136
|
+
it "should work" do
|
|
137
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
138
|
+
end
|
|
139
|
+
end
|
|
140
|
+
|
|
141
|
+
# unit tests for admin_platform_create
|
|
142
|
+
# View to create new platforms on which the user is an admin
|
|
143
|
+
# 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.
|
|
144
|
+
# @param user_pk
|
|
145
|
+
# @param name
|
|
146
|
+
# @param [Hash] opts the optional parameters
|
|
147
|
+
# @return [PlatformSummarySerializer]
|
|
148
|
+
describe 'admin_platform_create test' do
|
|
149
|
+
it "should work" do
|
|
150
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
151
|
+
end
|
|
152
|
+
end
|
|
153
|
+
|
|
154
|
+
# unit tests for cancel_income_request_get
|
|
155
|
+
# On GET, cancel the income request
|
|
156
|
+
# 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.
|
|
157
|
+
# @param user_pk
|
|
158
|
+
# @param pk
|
|
159
|
+
# @param [Hash] opts the optional parameters
|
|
160
|
+
# @return [Object]
|
|
161
|
+
describe 'cancel_income_request_get test' do
|
|
162
|
+
it "should work" do
|
|
163
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
164
|
+
end
|
|
165
|
+
end
|
|
166
|
+
|
|
167
|
+
# unit tests for cancel_income_request_post
|
|
168
|
+
# On POST, cancel the income request
|
|
169
|
+
# View to offer a ./cancel endpoint for cancelling an IncomeRequest. <br/>On POST, cancel the income request.
|
|
170
|
+
# @param user_pk
|
|
171
|
+
# @param pk
|
|
172
|
+
# @param [Hash] opts the optional parameters
|
|
173
|
+
# @return [Object]
|
|
174
|
+
describe 'cancel_income_request_post test' do
|
|
175
|
+
it "should work" do
|
|
176
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
177
|
+
end
|
|
178
|
+
end
|
|
179
|
+
|
|
180
|
+
# unit tests for cancel_platform_membership_request_get
|
|
181
|
+
# On GET, cancel the membership request
|
|
182
|
+
# 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.
|
|
183
|
+
# @param user_pk
|
|
184
|
+
# @param pk
|
|
185
|
+
# @param [Hash] opts the optional parameters
|
|
186
|
+
# @return [Object]
|
|
187
|
+
describe 'cancel_platform_membership_request_get test' do
|
|
188
|
+
it "should work" do
|
|
189
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
190
|
+
end
|
|
191
|
+
end
|
|
192
|
+
|
|
193
|
+
# unit tests for cancel_platform_membership_request_post
|
|
194
|
+
# On POST, cancel the membership request
|
|
195
|
+
# View to offer a ./accept endpoint for accepting a PlatformMembershipRequest. <br/>On POST, cancel the membership request.
|
|
196
|
+
# @param user_pk
|
|
197
|
+
# @param pk
|
|
198
|
+
# @param [Hash] opts the optional parameters
|
|
199
|
+
# @return [Object]
|
|
200
|
+
describe 'cancel_platform_membership_request_post test' do
|
|
201
|
+
it "should work" do
|
|
202
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
203
|
+
end
|
|
204
|
+
end
|
|
205
|
+
|
|
206
|
+
# unit tests for cashout_available_create
|
|
207
|
+
# Calculate the fees for a specific Cashout amount
|
|
208
|
+
# Calculate the fees for a specific Cashout amount.<br/>This returns the fees for a specific cashout amount, plus the maximum amount available.
|
|
209
|
+
# @param user_pk
|
|
210
|
+
# @param [Hash] opts the optional parameters
|
|
211
|
+
# @option opts [String] :amount The Cashout amount to calculate fees for. (This amount is net, i.e. before fees).
|
|
212
|
+
# @return [CashoutCalculationSerializer]
|
|
213
|
+
describe 'cashout_available_create test' do
|
|
214
|
+
it "should work" do
|
|
215
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
216
|
+
end
|
|
217
|
+
end
|
|
218
|
+
|
|
219
|
+
# unit tests for cashout_available_retrieve
|
|
220
|
+
# Calculate the available cashout for a User
|
|
221
|
+
# Calculate the available cashout for a User.<br/>This returns the maximum cashout amount available, and the fee for that amount.
|
|
222
|
+
# @param user_pk
|
|
223
|
+
# @param [Hash] opts the optional parameters
|
|
224
|
+
# @return [CashoutCalculationSerializer]
|
|
225
|
+
describe 'cashout_available_retrieve test' do
|
|
226
|
+
it "should work" do
|
|
227
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
228
|
+
end
|
|
229
|
+
end
|
|
230
|
+
|
|
231
|
+
# unit tests for cashout_user_viewset_create
|
|
232
|
+
# The Cashouts for a specific User
|
|
233
|
+
# The Cashouts for a specific User. Enables create, retrieve, list.
|
|
234
|
+
# @param user_pk
|
|
235
|
+
# @param amount
|
|
236
|
+
# @param [Hash] opts the optional parameters
|
|
237
|
+
# @option opts [DateTime] :cashout_time
|
|
238
|
+
# @option opts [String] :notes
|
|
239
|
+
# @option opts [String] :type
|
|
240
|
+
# @option opts [String] :method
|
|
241
|
+
# @option opts [DateTime] :transmit_time
|
|
242
|
+
# @option opts [String] :rebate The Rebate against which this Cashout will be collected.
|
|
243
|
+
# @option opts [String] :account
|
|
244
|
+
# @return [UserCashoutSerializer]
|
|
245
|
+
describe 'cashout_user_viewset_create test' do
|
|
246
|
+
it "should work" do
|
|
247
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
248
|
+
end
|
|
249
|
+
end
|
|
250
|
+
|
|
251
|
+
# unit tests for cashout_user_viewset_list
|
|
252
|
+
# The Cashouts for a specific User
|
|
253
|
+
# The Cashouts for a specific User. Enables create, retrieve, list.
|
|
254
|
+
# @param user_pk
|
|
255
|
+
# @param [Hash] opts the optional parameters
|
|
256
|
+
# @return [Array<UserCashoutSerializer>]
|
|
257
|
+
describe 'cashout_user_viewset_list test' do
|
|
258
|
+
it "should work" do
|
|
259
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
260
|
+
end
|
|
261
|
+
end
|
|
262
|
+
|
|
263
|
+
# unit tests for cashout_user_viewset_retrieve
|
|
264
|
+
# The Cashouts for a specific User
|
|
265
|
+
# The Cashouts for a specific User. Enables create, retrieve, list.
|
|
266
|
+
# @param user_pk
|
|
267
|
+
# @param pk
|
|
268
|
+
# @param [Hash] opts the optional parameters
|
|
269
|
+
# @return [UserCashoutSerializer]
|
|
270
|
+
describe 'cashout_user_viewset_retrieve test' do
|
|
271
|
+
it "should work" do
|
|
272
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
273
|
+
end
|
|
274
|
+
end
|
|
275
|
+
|
|
276
|
+
# unit tests for income_user_list
|
|
277
|
+
# The list of Income items for a specific User
|
|
278
|
+
# 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.
|
|
279
|
+
# @param user_pk
|
|
280
|
+
# @param [Hash] opts the optional parameters
|
|
281
|
+
# @return [Array<IncomeSerializerFixedSource>]
|
|
282
|
+
describe 'income_user_list test' do
|
|
283
|
+
it "should work" do
|
|
284
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
285
|
+
end
|
|
286
|
+
end
|
|
287
|
+
|
|
288
|
+
# unit tests for my_user_partial_update
|
|
289
|
+
# The currently logged in User
|
|
290
|
+
# The currently logged in User.
|
|
291
|
+
# @param [Hash] opts the optional parameters
|
|
292
|
+
# @option opts [String] :email
|
|
293
|
+
# @option opts [String] :first_name First name, if the user is an individual. Leave blank if this user is a company.
|
|
294
|
+
# @option opts [String] :last_name Last name, if the user is an individual. Leave blank if this user is a company.
|
|
295
|
+
# @option opts [String] :business_name Business name. Only use this field if this user is a business entity.
|
|
296
|
+
# @option opts [String] :contractor_type
|
|
297
|
+
# @option opts [String] :default_account Default account to use for payment of unpaid income.
|
|
298
|
+
# @option opts [String] :tax_savings_account Account to use for tax savings.
|
|
299
|
+
# @option opts [String] :tax_savings_percent The percent of income to be withheld for tax savings purposes.
|
|
300
|
+
# @option opts [BOOLEAN] :use_plaid Feature flag specifying if Plaid integration should be used.
|
|
301
|
+
# @option opts [BOOLEAN] :use_income_requests Feature flag specifying if IncomeRequests should be enabled for this user.
|
|
302
|
+
# @option opts [BOOLEAN] :use_tax_savings Feature flag specifying if tax savings should be enabled.
|
|
303
|
+
# @option opts [BOOLEAN] :is_auto_cashout_enabled Whether or not all income should be immediately cashed out for this user.
|
|
304
|
+
# @option opts [String] :password
|
|
305
|
+
# @option opts [String] :personal_information
|
|
306
|
+
# @return [UserSerializer]
|
|
307
|
+
describe 'my_user_partial_update test' do
|
|
308
|
+
it "should work" do
|
|
309
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
310
|
+
end
|
|
311
|
+
end
|
|
312
|
+
|
|
313
|
+
# unit tests for my_user_retrieve
|
|
314
|
+
# The currently logged in User
|
|
315
|
+
# The currently logged in User.
|
|
316
|
+
# @param [Hash] opts the optional parameters
|
|
317
|
+
# @return [UserSerializer]
|
|
318
|
+
describe 'my_user_retrieve test' do
|
|
319
|
+
it "should work" do
|
|
320
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
321
|
+
end
|
|
322
|
+
end
|
|
323
|
+
|
|
324
|
+
# unit tests for my_user_update
|
|
325
|
+
# The currently logged in User
|
|
326
|
+
# The currently logged in User.
|
|
327
|
+
# @param email
|
|
328
|
+
# @param [Hash] opts the optional parameters
|
|
329
|
+
# @option opts [String] :first_name First name, if the user is an individual. Leave blank if this user is a company.
|
|
330
|
+
# @option opts [String] :last_name Last name, if the user is an individual. Leave blank if this user is a company.
|
|
331
|
+
# @option opts [String] :business_name Business name. Only use this field if this user is a business entity.
|
|
332
|
+
# @option opts [String] :contractor_type
|
|
333
|
+
# @option opts [String] :default_account Default account to use for payment of unpaid income.
|
|
334
|
+
# @option opts [String] :tax_savings_account Account to use for tax savings.
|
|
335
|
+
# @option opts [String] :tax_savings_percent The percent of income to be withheld for tax savings purposes.
|
|
336
|
+
# @option opts [BOOLEAN] :use_plaid Feature flag specifying if Plaid integration should be used.
|
|
337
|
+
# @option opts [BOOLEAN] :use_income_requests Feature flag specifying if IncomeRequests should be enabled for this user.
|
|
338
|
+
# @option opts [BOOLEAN] :use_tax_savings Feature flag specifying if tax savings should be enabled.
|
|
339
|
+
# @option opts [BOOLEAN] :is_auto_cashout_enabled Whether or not all income should be immediately cashed out for this user.
|
|
340
|
+
# @option opts [String] :password
|
|
341
|
+
# @option opts [String] :personal_information
|
|
342
|
+
# @return [UserSerializer]
|
|
343
|
+
describe 'my_user_update test' do
|
|
344
|
+
it "should work" do
|
|
345
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
346
|
+
end
|
|
347
|
+
end
|
|
348
|
+
|
|
349
|
+
# unit tests for plaid_accounts_post
|
|
350
|
+
# Authenticate with Plaid Auth and list the user's accounts
|
|
351
|
+
# 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.
|
|
352
|
+
# @param user_pk
|
|
353
|
+
# @param public_token A public_token generated by authenticating with Plaid Link.
|
|
354
|
+
# @param [Hash] opts the optional parameters
|
|
355
|
+
# @return [PlaidPublicTokenSerializer]
|
|
356
|
+
describe 'plaid_accounts_post test' do
|
|
357
|
+
it "should work" do
|
|
358
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
359
|
+
end
|
|
360
|
+
end
|
|
361
|
+
|
|
362
|
+
# unit tests for receivables_user_api_get
|
|
363
|
+
# The list of all Receivables for a specific User
|
|
364
|
+
# 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.
|
|
365
|
+
# @param user_pk
|
|
366
|
+
# @param [Hash] opts the optional parameters
|
|
367
|
+
# @return [ReceivablesSerializer]
|
|
368
|
+
describe 'receivables_user_api_get test' do
|
|
369
|
+
it "should work" do
|
|
370
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
371
|
+
end
|
|
372
|
+
end
|
|
373
|
+
|
|
374
|
+
# unit tests for tax_savings_partial_update
|
|
375
|
+
# View for handling access to tax savings info for a User
|
|
376
|
+
# View for handling access to tax savings info for a User.
|
|
377
|
+
# @param user_pk
|
|
378
|
+
# @param [Hash] opts the optional parameters
|
|
379
|
+
# @option opts [String] :tax_savings_percent The percent of income to be withheld for tax savings purposes.
|
|
380
|
+
# @return [TaxSavingsSerializer]
|
|
381
|
+
describe 'tax_savings_partial_update test' do
|
|
382
|
+
it "should work" do
|
|
383
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
384
|
+
end
|
|
385
|
+
end
|
|
386
|
+
|
|
387
|
+
# unit tests for tax_savings_retrieve
|
|
388
|
+
# View for handling access to tax savings info for a User
|
|
389
|
+
# View for handling access to tax savings info for a User.
|
|
390
|
+
# @param user_pk
|
|
391
|
+
# @param [Hash] opts the optional parameters
|
|
392
|
+
# @return [TaxSavingsSerializer]
|
|
393
|
+
describe 'tax_savings_retrieve test' do
|
|
394
|
+
it "should work" do
|
|
395
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
396
|
+
end
|
|
397
|
+
end
|
|
398
|
+
|
|
399
|
+
# unit tests for tax_savings_update
|
|
400
|
+
# View for handling access to tax savings info for a User
|
|
401
|
+
# View for handling access to tax savings info for a User.
|
|
402
|
+
# @param user_pk
|
|
403
|
+
# @param [Hash] opts the optional parameters
|
|
404
|
+
# @option opts [String] :tax_savings_percent The percent of income to be withheld for tax savings purposes.
|
|
405
|
+
# @return [TaxSavingsSerializer]
|
|
406
|
+
describe 'tax_savings_update test' do
|
|
407
|
+
it "should work" do
|
|
408
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
409
|
+
end
|
|
410
|
+
end
|
|
411
|
+
|
|
412
|
+
# unit tests for user_create
|
|
413
|
+
# The list of registered Qwil Users
|
|
414
|
+
# The list of registered Qwil Users.
|
|
415
|
+
# @param email
|
|
416
|
+
# @param [Hash] opts the optional parameters
|
|
417
|
+
# @option opts [String] :first_name First name, if the user is an individual. Leave blank if this user is a company.
|
|
418
|
+
# @option opts [String] :last_name Last name, if the user is an individual. Leave blank if this user is a company.
|
|
419
|
+
# @option opts [String] :business_name Business name. Only use this field if this user is a business entity.
|
|
420
|
+
# @option opts [String] :contractor_type
|
|
421
|
+
# @option opts [String] :default_account Default account to use for payment of unpaid income.
|
|
422
|
+
# @option opts [String] :tax_savings_account Account to use for tax savings.
|
|
423
|
+
# @option opts [String] :tax_savings_percent The percent of income to be withheld for tax savings purposes.
|
|
424
|
+
# @option opts [BOOLEAN] :use_plaid Feature flag specifying if Plaid integration should be used.
|
|
425
|
+
# @option opts [BOOLEAN] :use_income_requests Feature flag specifying if IncomeRequests should be enabled for this user.
|
|
426
|
+
# @option opts [BOOLEAN] :use_tax_savings Feature flag specifying if tax savings should be enabled.
|
|
427
|
+
# @option opts [BOOLEAN] :is_auto_cashout_enabled Whether or not all income should be immediately cashed out for this user.
|
|
428
|
+
# @option opts [String] :password
|
|
429
|
+
# @option opts [String] :personal_information
|
|
430
|
+
# @return [UserSerializer]
|
|
431
|
+
describe 'user_create test' do
|
|
432
|
+
it "should work" do
|
|
433
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
434
|
+
end
|
|
435
|
+
end
|
|
436
|
+
|
|
437
|
+
# unit tests for user_income_request_create
|
|
438
|
+
#
|
|
439
|
+
#
|
|
440
|
+
# @param user_pk
|
|
441
|
+
# @param amount The dollar value of income requested by the User
|
|
442
|
+
# @param platform The platform that the User is requesting Income from.
|
|
443
|
+
# @param [Hash] opts the optional parameters
|
|
444
|
+
# @option opts [String] :note Text visible to the Platform and User describing the Income Request
|
|
445
|
+
# @return [UserIncomeRequestSerializer]
|
|
446
|
+
describe 'user_income_request_create test' do
|
|
447
|
+
it "should work" do
|
|
448
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
449
|
+
end
|
|
450
|
+
end
|
|
451
|
+
|
|
452
|
+
# unit tests for user_income_request_list
|
|
453
|
+
#
|
|
454
|
+
#
|
|
455
|
+
# @param user_pk
|
|
456
|
+
# @param [Hash] opts the optional parameters
|
|
457
|
+
# @return [Array<UserIncomeRequestSerializer>]
|
|
458
|
+
describe 'user_income_request_list test' do
|
|
459
|
+
it "should work" do
|
|
460
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
461
|
+
end
|
|
462
|
+
end
|
|
463
|
+
|
|
464
|
+
# unit tests for user_income_request_retrieve
|
|
465
|
+
#
|
|
466
|
+
#
|
|
467
|
+
# @param user_pk
|
|
468
|
+
# @param pk
|
|
469
|
+
# @param [Hash] opts the optional parameters
|
|
470
|
+
# @return [UserIncomeRequestSerializer]
|
|
471
|
+
describe 'user_income_request_retrieve test' do
|
|
472
|
+
it "should work" do
|
|
473
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
474
|
+
end
|
|
475
|
+
end
|
|
476
|
+
|
|
477
|
+
# unit tests for user_list
|
|
478
|
+
# The list of registered Qwil Users
|
|
479
|
+
# The list of registered Qwil Users.
|
|
480
|
+
# @param [Hash] opts the optional parameters
|
|
481
|
+
# @return [Array<ContractorSerializer>]
|
|
482
|
+
describe 'user_list test' do
|
|
483
|
+
it "should work" do
|
|
484
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
485
|
+
end
|
|
486
|
+
end
|
|
487
|
+
|
|
488
|
+
# unit tests for user_partial_update
|
|
489
|
+
# The list of registered Qwil Users
|
|
490
|
+
# The list of registered Qwil Users.
|
|
491
|
+
# @param pk
|
|
492
|
+
# @param [Hash] opts the optional parameters
|
|
493
|
+
# @option opts [String] :email
|
|
494
|
+
# @option opts [String] :first_name First name, if the user is an individual. Leave blank if this user is a company.
|
|
495
|
+
# @option opts [String] :last_name Last name, if the user is an individual. Leave blank if this user is a company.
|
|
496
|
+
# @option opts [String] :business_name Business name. Only use this field if this user is a business entity.
|
|
497
|
+
# @option opts [String] :contractor_type
|
|
498
|
+
# @option opts [String] :personal_information
|
|
499
|
+
# @option opts [String] :default_account Default account to use for payment of unpaid income.
|
|
500
|
+
# @return [ContractorSerializer]
|
|
501
|
+
describe 'user_partial_update test' do
|
|
502
|
+
it "should work" do
|
|
503
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
504
|
+
end
|
|
505
|
+
end
|
|
506
|
+
|
|
507
|
+
# unit tests for user_platform_membership_request_create
|
|
508
|
+
#
|
|
509
|
+
#
|
|
510
|
+
# @param user_pk
|
|
511
|
+
# @param platform The platform that the User requests to join.
|
|
512
|
+
# @param [Hash] opts the optional parameters
|
|
513
|
+
# @option opts [String] :decision_maker
|
|
514
|
+
# @return [UserPlatformMembershipRequestSerializer]
|
|
515
|
+
describe 'user_platform_membership_request_create test' do
|
|
516
|
+
it "should work" do
|
|
517
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
518
|
+
end
|
|
519
|
+
end
|
|
520
|
+
|
|
521
|
+
# unit tests for user_platform_membership_request_list
|
|
522
|
+
#
|
|
523
|
+
#
|
|
524
|
+
# @param user_pk
|
|
525
|
+
# @param [Hash] opts the optional parameters
|
|
526
|
+
# @return [Array<UserPlatformMembershipRequestSerializer>]
|
|
527
|
+
describe 'user_platform_membership_request_list test' do
|
|
528
|
+
it "should work" do
|
|
529
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
530
|
+
end
|
|
531
|
+
end
|
|
532
|
+
|
|
533
|
+
# unit tests for user_platform_membership_request_retrieve
|
|
534
|
+
#
|
|
535
|
+
#
|
|
536
|
+
# @param user_pk
|
|
537
|
+
# @param pk
|
|
538
|
+
# @param [Hash] opts the optional parameters
|
|
539
|
+
# @return [UserPlatformMembershipRequestSerializer]
|
|
540
|
+
describe 'user_platform_membership_request_retrieve test' do
|
|
541
|
+
it "should work" do
|
|
542
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
543
|
+
end
|
|
544
|
+
end
|
|
545
|
+
|
|
546
|
+
# unit tests for user_retrieve
|
|
547
|
+
# The list of registered Qwil Users
|
|
548
|
+
# The list of registered Qwil Users.
|
|
549
|
+
# @param pk
|
|
550
|
+
# @param [Hash] opts the optional parameters
|
|
551
|
+
# @return [ContractorSerializer]
|
|
552
|
+
describe 'user_retrieve test' do
|
|
553
|
+
it "should work" do
|
|
554
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
555
|
+
end
|
|
556
|
+
end
|
|
557
|
+
|
|
558
|
+
# unit tests for user_update
|
|
559
|
+
# The list of registered Qwil Users
|
|
560
|
+
# The list of registered Qwil Users.
|
|
561
|
+
# @param pk
|
|
562
|
+
# @param email
|
|
563
|
+
# @param [Hash] opts the optional parameters
|
|
564
|
+
# @option opts [String] :first_name First name, if the user is an individual. Leave blank if this user is a company.
|
|
565
|
+
# @option opts [String] :last_name Last name, if the user is an individual. Leave blank if this user is a company.
|
|
566
|
+
# @option opts [String] :business_name Business name. Only use this field if this user is a business entity.
|
|
567
|
+
# @option opts [String] :contractor_type
|
|
568
|
+
# @option opts [String] :personal_information
|
|
569
|
+
# @option opts [String] :default_account Default account to use for payment of unpaid income.
|
|
570
|
+
# @return [ContractorSerializer]
|
|
571
|
+
describe 'user_update test' do
|
|
572
|
+
it "should work" do
|
|
573
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
574
|
+
end
|
|
575
|
+
end
|
|
576
|
+
|
|
577
|
+
# unit tests for xero_account_get
|
|
578
|
+
#
|
|
579
|
+
#
|
|
580
|
+
# @param user_pk
|
|
581
|
+
# @param [Hash] opts the optional parameters
|
|
582
|
+
# @return [Object]
|
|
583
|
+
describe 'xero_account_get test' do
|
|
584
|
+
it "should work" do
|
|
585
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
586
|
+
end
|
|
587
|
+
end
|
|
588
|
+
|
|
589
|
+
# unit tests for xero_account_put
|
|
590
|
+
#
|
|
591
|
+
#
|
|
592
|
+
# @param user_pk
|
|
593
|
+
# @param [Hash] opts the optional parameters
|
|
594
|
+
# @return [Object]
|
|
595
|
+
describe 'xero_account_put test' do
|
|
596
|
+
it "should work" do
|
|
597
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
598
|
+
end
|
|
599
|
+
end
|
|
600
|
+
|
|
601
|
+
# unit tests for xero_auth_callback_get
|
|
602
|
+
#
|
|
603
|
+
#
|
|
604
|
+
# @param user_pk
|
|
605
|
+
# @param [Hash] opts the optional parameters
|
|
606
|
+
# @return [Object]
|
|
607
|
+
describe 'xero_auth_callback_get test' do
|
|
608
|
+
it "should work" do
|
|
609
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
610
|
+
end
|
|
611
|
+
end
|
|
612
|
+
|
|
613
|
+
# unit tests for xero_auth_url_get
|
|
614
|
+
#
|
|
615
|
+
#
|
|
616
|
+
# @param user_pk
|
|
617
|
+
# @param [Hash] opts the optional parameters
|
|
618
|
+
# @return [Object]
|
|
619
|
+
describe 'xero_auth_url_get test' do
|
|
620
|
+
it "should work" do
|
|
621
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
622
|
+
end
|
|
623
|
+
end
|
|
624
|
+
|
|
625
|
+
end
|