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
data/docs/IncomeApi.md
ADDED
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
# QwilAPI::IncomeApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost:8000/*
|
|
4
|
+
|
|
5
|
+
Method | HTTP request | Description
|
|
6
|
+
------------- | ------------- | -------------
|
|
7
|
+
[**income_list**](IncomeApi.md#income_list) | **GET** /income/ | The list of Income items for all Users
|
|
8
|
+
[**income_retrieve**](IncomeApi.md#income_retrieve) | **GET** /income/{pk}/ | The list of Income items for all Users
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
# **income_list**
|
|
12
|
+
> Array<IncomeSerializer> income_list
|
|
13
|
+
|
|
14
|
+
The list of Income items for all Users
|
|
15
|
+
|
|
16
|
+
The list of Income items for all Users.<br/>This can be filtered by date using the start_date and end_date query parameters.
|
|
17
|
+
|
|
18
|
+
### Example
|
|
19
|
+
```ruby
|
|
20
|
+
# load the gem
|
|
21
|
+
require 'qwil_api'
|
|
22
|
+
|
|
23
|
+
api_instance = QwilAPI::IncomeApi.new
|
|
24
|
+
|
|
25
|
+
begin
|
|
26
|
+
#The list of Income items for all Users
|
|
27
|
+
result = api_instance.income_list
|
|
28
|
+
p result
|
|
29
|
+
rescue QwilAPI::ApiError => e
|
|
30
|
+
puts "Exception when calling IncomeApi->income_list: #{e}"
|
|
31
|
+
end
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
### Parameters
|
|
35
|
+
This endpoint does not need any parameter.
|
|
36
|
+
|
|
37
|
+
### Return type
|
|
38
|
+
|
|
39
|
+
[**Array<IncomeSerializer>**](IncomeSerializer.md)
|
|
40
|
+
|
|
41
|
+
### Authorization
|
|
42
|
+
|
|
43
|
+
No authorization required
|
|
44
|
+
|
|
45
|
+
### HTTP request headers
|
|
46
|
+
|
|
47
|
+
- **Content-Type**: Not defined
|
|
48
|
+
- **Accept**: Not defined
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
# **income_retrieve**
|
|
53
|
+
> IncomeSerializer income_retrieve(pk)
|
|
54
|
+
|
|
55
|
+
The list of Income items for all Users
|
|
56
|
+
|
|
57
|
+
The list of Income items for all Users.<br/>This can be filtered by date using the start_date and end_date query parameters.
|
|
58
|
+
|
|
59
|
+
### Example
|
|
60
|
+
```ruby
|
|
61
|
+
# load the gem
|
|
62
|
+
require 'qwil_api'
|
|
63
|
+
|
|
64
|
+
api_instance = QwilAPI::IncomeApi.new
|
|
65
|
+
|
|
66
|
+
pk = "pk_example" # String |
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
begin
|
|
70
|
+
#The list of Income items for all Users
|
|
71
|
+
result = api_instance.income_retrieve(pk)
|
|
72
|
+
p result
|
|
73
|
+
rescue QwilAPI::ApiError => e
|
|
74
|
+
puts "Exception when calling IncomeApi->income_retrieve: #{e}"
|
|
75
|
+
end
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
### Parameters
|
|
79
|
+
|
|
80
|
+
Name | Type | Description | Notes
|
|
81
|
+
------------- | ------------- | ------------- | -------------
|
|
82
|
+
**pk** | **String**| |
|
|
83
|
+
|
|
84
|
+
### Return type
|
|
85
|
+
|
|
86
|
+
[**IncomeSerializer**](IncomeSerializer.md)
|
|
87
|
+
|
|
88
|
+
### Authorization
|
|
89
|
+
|
|
90
|
+
No authorization required
|
|
91
|
+
|
|
92
|
+
### HTTP request headers
|
|
93
|
+
|
|
94
|
+
- **Content-Type**: Not defined
|
|
95
|
+
- **Accept**: Not defined
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# QwilAPI::IncomeNestedSerializer
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**url** | **String** | |
|
|
7
|
+
**user** | **String** | |
|
|
8
|
+
**amount** | **String** | |
|
|
9
|
+
**platform** | **String** | The Platform that made this payment to the contractor |
|
|
10
|
+
**platform_name** | **String** | |
|
|
11
|
+
**external_id** | **String** | Optional unique ID to correlate this Income to a record in another system. If specified, this will prevent duplicate Incomes being created with the same external_id. This field is unique per Platform. If this field is omitted, no uniqueness check is performed. |
|
|
12
|
+
**payment_time** | **DateTime** | |
|
|
13
|
+
**notes** | **String** | |
|
|
14
|
+
**imported_time** | **DateTime** | |
|
|
15
|
+
**invoice** | **String** | The Invoice in which this Income is to be repaid by the platform. |
|
|
16
|
+
**rebate** | **String** | The Rebate in which this Income will be paid to the Contractor. |
|
|
17
|
+
|
|
18
|
+
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# QwilAPI::IncomeSerializer
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**url** | **String** | |
|
|
7
|
+
**user** | **String** | |
|
|
8
|
+
**amount** | **String** | |
|
|
9
|
+
**platform** | **String** | The Platform that made this payment to the contractor |
|
|
10
|
+
**platform_name** | **String** | |
|
|
11
|
+
**external_id** | **String** | Optional unique ID to correlate this Income to a record in another system. If specified, this will prevent duplicate Incomes being created with the same external_id. This field is unique per Platform. If this field is omitted, no uniqueness check is performed. |
|
|
12
|
+
**payment_time** | **DateTime** | |
|
|
13
|
+
**notes** | **String** | |
|
|
14
|
+
**imported_time** | **DateTime** | |
|
|
15
|
+
**invoice** | **String** | The Invoice in which this Income is to be repaid by the platform. |
|
|
16
|
+
**rebate** | **String** | The Rebate in which this Income will be paid to the Contractor. |
|
|
17
|
+
|
|
18
|
+
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# QwilAPI::IncomeSerializerFixedSource
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**url** | **String** | |
|
|
7
|
+
**user** | **String** | |
|
|
8
|
+
**amount** | **String** | |
|
|
9
|
+
**platform** | **String** | The Platform that made this payment to the contractor |
|
|
10
|
+
**platform_name** | **String** | |
|
|
11
|
+
**external_id** | **String** | Optional unique ID to correlate this Income to a record in another system. If specified, this will prevent duplicate Incomes being created with the same external_id. This field is unique per Platform. If this field is omitted, no uniqueness check is performed. |
|
|
12
|
+
**payment_time** | **DateTime** | |
|
|
13
|
+
**notes** | **String** | |
|
|
14
|
+
**imported_time** | **DateTime** | |
|
|
15
|
+
**invoice** | **String** | The Invoice in which this Income is to be repaid by the platform. |
|
|
16
|
+
**rebate** | **String** | The Rebate in which this Income will be paid to the Contractor. |
|
|
17
|
+
|
|
18
|
+
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# QwilAPI::InvoiceSerializer
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**url** | **String** | |
|
|
7
|
+
**platform** | **String** | The Platform that is liable to pay this Invoice. |
|
|
8
|
+
**paid** | **BOOLEAN** | Flag specifying if the Invoice has been paid by the Platform. |
|
|
9
|
+
**payments** | **Array<String>** | The Cashouts that pay for this Invoice. |
|
|
10
|
+
**date** | **Date** | The date of the final day in the Invoice period. |
|
|
11
|
+
**contractor_payment_fee** | **String** | The total fee for Contractors billed this period. |
|
|
12
|
+
**per_user_charge** | **String** | The per-user charge for the period billed in this Invoice. |
|
|
13
|
+
**amount** | **String** | |
|
|
14
|
+
**external_id** | **String** | Optional unique ID to correlate this Invoice to a record in another system. If specified, this will prevent duplicate Invoices being created with the same external_id. This field is unique per Platform. If this field is omitted, no uniqueness check is performed. |
|
|
15
|
+
**income** | **Array<String>** | |
|
|
16
|
+
|
|
17
|
+
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# QwilAPI::InvoiceSerializerFixedSourceCreate
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**url** | **String** | |
|
|
7
|
+
**platform** | **String** | The Platform for this Invoice |
|
|
8
|
+
**paid** | **BOOLEAN** | Flag specifying if the Invoice has been paid by the Platform. |
|
|
9
|
+
**payments** | **Array<String>** | The Cashouts that pay for this Invoice. |
|
|
10
|
+
**date** | **Date** | The date of the final day in the Invoice period. |
|
|
11
|
+
**contractor_payment_fee** | **String** | The total fee for Contractors billed this period. |
|
|
12
|
+
**per_user_charge** | **String** | The per-user charge for the period billed in this Invoice. |
|
|
13
|
+
**amount** | **String** | |
|
|
14
|
+
**external_id** | **String** | Optional unique ID to correlate this Invoice to a record in another system. If specified, this will prevent duplicate Invoices being created with the same external_id. This field is unique per Platform. If this field is omitted, no uniqueness check is performed. |
|
|
15
|
+
**income** | [**Array<IncomeNestedSerializer>**](IncomeNestedSerializer.md) | |
|
|
16
|
+
|
|
17
|
+
|
data/docs/InvoicesApi.md
ADDED
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
# QwilAPI::InvoicesApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost:8000/*
|
|
4
|
+
|
|
5
|
+
Method | HTTP request | Description
|
|
6
|
+
------------- | ------------- | -------------
|
|
7
|
+
[**invoice_list**](InvoicesApi.md#invoice_list) | **GET** /invoices/ |
|
|
8
|
+
[**invoice_retrieve**](InvoicesApi.md#invoice_retrieve) | **GET** /invoices/{pk}/ |
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
# **invoice_list**
|
|
12
|
+
> Array<InvoiceSerializer> invoice_list
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Example
|
|
19
|
+
```ruby
|
|
20
|
+
# load the gem
|
|
21
|
+
require 'qwil_api'
|
|
22
|
+
|
|
23
|
+
api_instance = QwilAPI::InvoicesApi.new
|
|
24
|
+
|
|
25
|
+
begin
|
|
26
|
+
#
|
|
27
|
+
result = api_instance.invoice_list
|
|
28
|
+
p result
|
|
29
|
+
rescue QwilAPI::ApiError => e
|
|
30
|
+
puts "Exception when calling InvoicesApi->invoice_list: #{e}"
|
|
31
|
+
end
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
### Parameters
|
|
35
|
+
This endpoint does not need any parameter.
|
|
36
|
+
|
|
37
|
+
### Return type
|
|
38
|
+
|
|
39
|
+
[**Array<InvoiceSerializer>**](InvoiceSerializer.md)
|
|
40
|
+
|
|
41
|
+
### Authorization
|
|
42
|
+
|
|
43
|
+
No authorization required
|
|
44
|
+
|
|
45
|
+
### HTTP request headers
|
|
46
|
+
|
|
47
|
+
- **Content-Type**: Not defined
|
|
48
|
+
- **Accept**: Not defined
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
# **invoice_retrieve**
|
|
53
|
+
> InvoiceSerializer invoice_retrieve(pk)
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
### Example
|
|
60
|
+
```ruby
|
|
61
|
+
# load the gem
|
|
62
|
+
require 'qwil_api'
|
|
63
|
+
|
|
64
|
+
api_instance = QwilAPI::InvoicesApi.new
|
|
65
|
+
|
|
66
|
+
pk = "pk_example" # String |
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
begin
|
|
70
|
+
#
|
|
71
|
+
result = api_instance.invoice_retrieve(pk)
|
|
72
|
+
p result
|
|
73
|
+
rescue QwilAPI::ApiError => e
|
|
74
|
+
puts "Exception when calling InvoicesApi->invoice_retrieve: #{e}"
|
|
75
|
+
end
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
### Parameters
|
|
79
|
+
|
|
80
|
+
Name | Type | Description | Notes
|
|
81
|
+
------------- | ------------- | ------------- | -------------
|
|
82
|
+
**pk** | **String**| |
|
|
83
|
+
|
|
84
|
+
### Return type
|
|
85
|
+
|
|
86
|
+
[**InvoiceSerializer**](InvoiceSerializer.md)
|
|
87
|
+
|
|
88
|
+
### Authorization
|
|
89
|
+
|
|
90
|
+
No authorization required
|
|
91
|
+
|
|
92
|
+
### HTTP request headers
|
|
93
|
+
|
|
94
|
+
- **Content-Type**: Not defined
|
|
95
|
+
- **Accept**: Not defined
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# QwilAPI::ManagerPlatformSerializer
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**url** | **String** | |
|
|
7
|
+
**name** | **String** | |
|
|
8
|
+
**contact_information** | [**ContactInformationSerializer**](ContactInformationSerializer.md) | |
|
|
9
|
+
**company_information** | [**CompanyInformationSerializer**](CompanyInformationSerializer.md) | |
|
|
10
|
+
**contractors** | **String** | |
|
|
11
|
+
**currency** | **String** | The ISO 4217 currency code for which all payments for this Platform are handled. Note: Immutable after Platform is created. |
|
|
12
|
+
**income** | **String** | |
|
|
13
|
+
**invoices** | **String** | |
|
|
14
|
+
**create_invoice** | **String** | |
|
|
15
|
+
**payment_schedule** | **String** | The frequency of contractor rebates on this platform. |
|
|
16
|
+
**payment_date** | **Date** | The date that the first payment is due for the platform's pay cycle. |
|
|
17
|
+
**accounts** | **Array<String>** | The accounts configured for billing on this Platform. |
|
|
18
|
+
**default_account** | **String** | The account to use for billing purposes. |
|
|
19
|
+
**manager** | **String** | |
|
|
20
|
+
**memberships** | **String** | URL of the list of Platform Memberships. |
|
|
21
|
+
|
|
22
|
+
|
data/docs/ManagersApi.md
ADDED
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
# QwilAPI::ManagersApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost:8000/*
|
|
4
|
+
|
|
5
|
+
Method | HTTP request | Description
|
|
6
|
+
------------- | ------------- | -------------
|
|
7
|
+
[**manager_platform_create**](ManagersApi.md#manager_platform_create) | **POST** /managers/{manager_pk}/platforms/ | Endpoint for the Platforms owned by a Manager
|
|
8
|
+
[**manager_platform_list**](ManagersApi.md#manager_platform_list) | **GET** /managers/{manager_pk}/platforms/ | Endpoint for the Platforms owned by a Manager
|
|
9
|
+
[**manager_retrieve**](ManagersApi.md#manager_retrieve) | **GET** /managers/{pk}/ | Endpoint for Manager objects, which describe entities that can create and manage Platforms
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
# **manager_platform_create**
|
|
13
|
+
> ManagerPlatformSerializer manager_platform_create(manager_pk, name, company_information, opts)
|
|
14
|
+
|
|
15
|
+
Endpoint for the Platforms owned by a Manager
|
|
16
|
+
|
|
17
|
+
Endpoint for the Platforms owned by a Manager.
|
|
18
|
+
|
|
19
|
+
### Example
|
|
20
|
+
```ruby
|
|
21
|
+
# load the gem
|
|
22
|
+
require 'qwil_api'
|
|
23
|
+
|
|
24
|
+
api_instance = QwilAPI::ManagersApi.new
|
|
25
|
+
|
|
26
|
+
manager_pk = "manager_pk_example" # String |
|
|
27
|
+
|
|
28
|
+
name = "name_example" # String |
|
|
29
|
+
|
|
30
|
+
company_information = "company_information_example" # String |
|
|
31
|
+
|
|
32
|
+
opts = {
|
|
33
|
+
contact_information: "contact_information_example", # String |
|
|
34
|
+
currency: "currency_example", # String | The ISO 4217 currency code for which all payments for this Platform are handled. Note: Immutable after Platform is created.
|
|
35
|
+
payment_schedule: "payment_schedule_example", # String | The frequency of contractor rebates on this platform.
|
|
36
|
+
payment_date: Date.parse("2013-10-20"), # Date | The date that the first payment is due for the platform's pay cycle.
|
|
37
|
+
accounts: "accounts_example", # String | The accounts configured for billing on this Platform.
|
|
38
|
+
default_account: "default_account_example" # String | The account to use for billing purposes.
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
begin
|
|
42
|
+
#Endpoint for the Platforms owned by a Manager
|
|
43
|
+
result = api_instance.manager_platform_create(manager_pk, name, company_information, opts)
|
|
44
|
+
p result
|
|
45
|
+
rescue QwilAPI::ApiError => e
|
|
46
|
+
puts "Exception when calling ManagersApi->manager_platform_create: #{e}"
|
|
47
|
+
end
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
### Parameters
|
|
51
|
+
|
|
52
|
+
Name | Type | Description | Notes
|
|
53
|
+
------------- | ------------- | ------------- | -------------
|
|
54
|
+
**manager_pk** | **String**| |
|
|
55
|
+
**name** | **String**| |
|
|
56
|
+
**company_information** | **String**| |
|
|
57
|
+
**contact_information** | **String**| | [optional]
|
|
58
|
+
**currency** | **String**| The ISO 4217 currency code for which all payments for this Platform are handled. Note: Immutable after Platform is created. | [optional]
|
|
59
|
+
**payment_schedule** | **String**| The frequency of contractor rebates on this platform. | [optional]
|
|
60
|
+
**payment_date** | **Date**| The date that the first payment is due for the platform's pay cycle. | [optional]
|
|
61
|
+
**accounts** | **String**| The accounts configured for billing on this Platform. | [optional]
|
|
62
|
+
**default_account** | **String**| The account to use for billing purposes. | [optional]
|
|
63
|
+
|
|
64
|
+
### Return type
|
|
65
|
+
|
|
66
|
+
[**ManagerPlatformSerializer**](ManagerPlatformSerializer.md)
|
|
67
|
+
|
|
68
|
+
### Authorization
|
|
69
|
+
|
|
70
|
+
No authorization required
|
|
71
|
+
|
|
72
|
+
### HTTP request headers
|
|
73
|
+
|
|
74
|
+
- **Content-Type**: Not defined
|
|
75
|
+
- **Accept**: Not defined
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
# **manager_platform_list**
|
|
80
|
+
> Array<ManagerPlatformSerializer> manager_platform_list(manager_pk)
|
|
81
|
+
|
|
82
|
+
Endpoint for the Platforms owned by a Manager
|
|
83
|
+
|
|
84
|
+
Endpoint for the Platforms owned by a Manager.
|
|
85
|
+
|
|
86
|
+
### Example
|
|
87
|
+
```ruby
|
|
88
|
+
# load the gem
|
|
89
|
+
require 'qwil_api'
|
|
90
|
+
|
|
91
|
+
api_instance = QwilAPI::ManagersApi.new
|
|
92
|
+
|
|
93
|
+
manager_pk = "manager_pk_example" # String |
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
begin
|
|
97
|
+
#Endpoint for the Platforms owned by a Manager
|
|
98
|
+
result = api_instance.manager_platform_list(manager_pk)
|
|
99
|
+
p result
|
|
100
|
+
rescue QwilAPI::ApiError => e
|
|
101
|
+
puts "Exception when calling ManagersApi->manager_platform_list: #{e}"
|
|
102
|
+
end
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
### Parameters
|
|
106
|
+
|
|
107
|
+
Name | Type | Description | Notes
|
|
108
|
+
------------- | ------------- | ------------- | -------------
|
|
109
|
+
**manager_pk** | **String**| |
|
|
110
|
+
|
|
111
|
+
### Return type
|
|
112
|
+
|
|
113
|
+
[**Array<ManagerPlatformSerializer>**](ManagerPlatformSerializer.md)
|
|
114
|
+
|
|
115
|
+
### Authorization
|
|
116
|
+
|
|
117
|
+
No authorization required
|
|
118
|
+
|
|
119
|
+
### HTTP request headers
|
|
120
|
+
|
|
121
|
+
- **Content-Type**: Not defined
|
|
122
|
+
- **Accept**: Not defined
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
# **manager_retrieve**
|
|
127
|
+
> ManagerSerializer manager_retrieve(pk)
|
|
128
|
+
|
|
129
|
+
Endpoint for Manager objects, which describe entities that can create and manage Platforms
|
|
130
|
+
|
|
131
|
+
Endpoint for Manager objects, which describe entities that can create and manage Platforms.
|
|
132
|
+
|
|
133
|
+
### Example
|
|
134
|
+
```ruby
|
|
135
|
+
# load the gem
|
|
136
|
+
require 'qwil_api'
|
|
137
|
+
|
|
138
|
+
api_instance = QwilAPI::ManagersApi.new
|
|
139
|
+
|
|
140
|
+
pk = "pk_example" # String |
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
begin
|
|
144
|
+
#Endpoint for Manager objects, which describe entities that can create and manage Platforms
|
|
145
|
+
result = api_instance.manager_retrieve(pk)
|
|
146
|
+
p result
|
|
147
|
+
rescue QwilAPI::ApiError => e
|
|
148
|
+
puts "Exception when calling ManagersApi->manager_retrieve: #{e}"
|
|
149
|
+
end
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
### Parameters
|
|
153
|
+
|
|
154
|
+
Name | Type | Description | Notes
|
|
155
|
+
------------- | ------------- | ------------- | -------------
|
|
156
|
+
**pk** | **String**| |
|
|
157
|
+
|
|
158
|
+
### Return type
|
|
159
|
+
|
|
160
|
+
[**ManagerSerializer**](ManagerSerializer.md)
|
|
161
|
+
|
|
162
|
+
### Authorization
|
|
163
|
+
|
|
164
|
+
No authorization required
|
|
165
|
+
|
|
166
|
+
### HTTP request headers
|
|
167
|
+
|
|
168
|
+
- **Content-Type**: Not defined
|
|
169
|
+
- **Accept**: Not defined
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
# QwilAPI::MembershipsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost:8000/*
|
|
4
|
+
|
|
5
|
+
Method | HTTP request | Description
|
|
6
|
+
------------- | ------------- | -------------
|
|
7
|
+
[**membership_retrieve**](MembershipsApi.md#membership_retrieve) | **GET** /memberships/{pk}/ |
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
# **membership_retrieve**
|
|
11
|
+
> MembershipSerializer membership_retrieve(pk)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Example
|
|
18
|
+
```ruby
|
|
19
|
+
# load the gem
|
|
20
|
+
require 'qwil_api'
|
|
21
|
+
|
|
22
|
+
api_instance = QwilAPI::MembershipsApi.new
|
|
23
|
+
|
|
24
|
+
pk = "pk_example" # String |
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
begin
|
|
28
|
+
#
|
|
29
|
+
result = api_instance.membership_retrieve(pk)
|
|
30
|
+
p result
|
|
31
|
+
rescue QwilAPI::ApiError => e
|
|
32
|
+
puts "Exception when calling MembershipsApi->membership_retrieve: #{e}"
|
|
33
|
+
end
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
### Parameters
|
|
37
|
+
|
|
38
|
+
Name | Type | Description | Notes
|
|
39
|
+
------------- | ------------- | ------------- | -------------
|
|
40
|
+
**pk** | **String**| |
|
|
41
|
+
|
|
42
|
+
### Return type
|
|
43
|
+
|
|
44
|
+
[**MembershipSerializer**](MembershipSerializer.md)
|
|
45
|
+
|
|
46
|
+
### Authorization
|
|
47
|
+
|
|
48
|
+
No authorization required
|
|
49
|
+
|
|
50
|
+
### HTTP request headers
|
|
51
|
+
|
|
52
|
+
- **Content-Type**: Not defined
|
|
53
|
+
- **Accept**: Not defined
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# QwilAPI::PersonalInformationSerializer
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**date_of_birth** | **Date** | |
|
|
7
|
+
**address_city** | **String** | |
|
|
8
|
+
**address_state** | **String** | |
|
|
9
|
+
**tax_id_type** | **String** | |
|
|
10
|
+
**phone_number** | **String** | |
|
|
11
|
+
**address_zip_code** | **String** | |
|
|
12
|
+
**tax_id_number** | **String** | |
|
|
13
|
+
**address** | **String** | |
|
|
14
|
+
**duns_number** | **String** | The Dun and Bradstreet number (D-U-N-S) for this entity |
|
|
15
|
+
|
|
16
|
+
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# QwilAPI::PlatformIncomeRequestSerializer
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**url** | **String** | |
|
|
7
|
+
**actions** | **String** | |
|
|
8
|
+
**status** | **String** | The status of the income request. |
|
|
9
|
+
**amount** | **String** | The dollar value of income requested by the User |
|
|
10
|
+
**note** | **String** | Text visible to the Platform and User describing the Income Request |
|
|
11
|
+
**request_time** | **DateTime** | The time the IncomeRequest was submitted by the User |
|
|
12
|
+
**user** | **String** | The User making the request for Income |
|
|
13
|
+
**income** | **String** | The resulting Income |
|
|
14
|
+
|
|
15
|
+
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# QwilAPI::PlatformMembershipRequestSerializer
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**url** | **String** | |
|
|
7
|
+
**contractor** | [**ContractorSerializer**](ContractorSerializer.md) | |
|
|
8
|
+
**actions** | **String** | |
|
|
9
|
+
**status** | **String** | The status of the membership request. |
|
|
10
|
+
|
|
11
|
+
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# QwilAPI::PlatformSerializer
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**url** | **String** | |
|
|
7
|
+
**contractors** | **String** | |
|
|
8
|
+
**income** | **String** | |
|
|
9
|
+
**invoices** | **String** | |
|
|
10
|
+
**create_invoice** | **String** | |
|
|
11
|
+
**membership_requests** | **String** | URL of the list of platform membership requests. |
|
|
12
|
+
**income_requests** | **String** | URL of the list of income requests. |
|
|
13
|
+
**memberships** | **String** | URL of the list of Platform Memberships. |
|
|
14
|
+
**name** | **String** | |
|
|
15
|
+
**payment_schedule** | **String** | The frequency of contractor rebates on this platform. |
|
|
16
|
+
**payment_date** | **Date** | The date that the first payment is due for the platform's pay cycle. |
|
|
17
|
+
**automatic_debit** | **BOOLEAN** | Flag specifying if the Platform's Invoices should be debited automatically. |
|
|
18
|
+
**currency** | **String** | The ISO 4217 currency code for which all payments for this Platform are handled. Note: Immutable after Platform is created. |
|
|
19
|
+
**thumbnail_url** | **String** | |
|
|
20
|
+
**validated** | **BOOLEAN** | If True, this platform is has been validated as a real company. |
|
|
21
|
+
**featured** | **BOOLEAN** | If True, this platform is featured in the search list. |
|
|
22
|
+
**is_demo_platform** | **BOOLEAN** | If True, all users on this platform are demo users, and no payments will be debited/credited. |
|
|
23
|
+
**xero_enabled** | **BOOLEAN** | If True, this platform can enable the Xero integration. |
|
|
24
|
+
**use_income_requests** | **BOOLEAN** | If True, enable experimental IncomeRequest UI for this User. |
|
|
25
|
+
**enable_emails** | **BOOLEAN** | Flag indicating if we should send any emails to Users on this Platform. If not set, email checks fall through to global defaults. |
|
|
26
|
+
**default_account** | **String** | The account to use for billing purposes. |
|
|
27
|
+
**manager** | **String** | |
|
|
28
|
+
**accounts** | **Array<String>** | The accounts configured for billing on this Platform. |
|
|
29
|
+
|
|
30
|
+
|