qwil_api 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- 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
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 852707f846254756754d2d52b0794781f2dd286d
|
4
|
+
data.tar.gz: 1ac9a016c92ae478f5b4feb146a96f258aaa7c00
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 9447bab3076fa5700de4718c9e7d41b3396853a6c44a190c61c204577d049d44210ce4d9fda028759b1f3102ec7ba1532752962c9ba78a93d73b901c567b69da
|
7
|
+
data.tar.gz: be206ece0e6988a34aa89ceab62cb7e5444f84804da29132cad4a54f26cc2eb9a32b9d1d0f3dc482d4a96b7ea2fff4df06e1525ae22827148e8ae5cc9d2f1b0a
|
data/README.md
ADDED
@@ -0,0 +1,91 @@
|
|
1
|
+
# qwil_api
|
2
|
+
|
3
|
+
QwilAPI - the Ruby gem for the
|
4
|
+
|
5
|
+
No descripton provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
6
|
+
|
7
|
+
This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
|
8
|
+
|
9
|
+
- API version:
|
10
|
+
- Package version: 0.1.0
|
11
|
+
- Build date: 2016-12-22T19:24:41.076-08:00
|
12
|
+
- Build package: class io.swagger.codegen.languages.RubyClientCodegen
|
13
|
+
|
14
|
+
## Installation
|
15
|
+
|
16
|
+
### Build a gem
|
17
|
+
|
18
|
+
To build the Ruby code into a gem:
|
19
|
+
|
20
|
+
```shell
|
21
|
+
gem build qwil_api.gemspec
|
22
|
+
```
|
23
|
+
|
24
|
+
Then either install the gem locally:
|
25
|
+
|
26
|
+
```shell
|
27
|
+
gem install ./qwil_api-0.1.0.gem
|
28
|
+
```
|
29
|
+
(for development, run `gem install --dev ./qwil_api-0.1.0.gem` to install the development dependencies)
|
30
|
+
|
31
|
+
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
32
|
+
|
33
|
+
Finally add this to the Gemfile:
|
34
|
+
|
35
|
+
gem 'qwil_api', '~> 0.1.0'
|
36
|
+
|
37
|
+
### Install from Git
|
38
|
+
|
39
|
+
If the Ruby gem is hosted at a git repository: https://github.com/GIT_USER_ID/GIT_REPO_ID, then add the following in the Gemfile:
|
40
|
+
|
41
|
+
gem 'qwil_api', :git => 'https://github.com/GIT_USER_ID/GIT_REPO_ID.git'
|
42
|
+
|
43
|
+
### Include the Ruby code directly
|
44
|
+
|
45
|
+
Include the Ruby code directly using `-I` as follows:
|
46
|
+
|
47
|
+
```shell
|
48
|
+
ruby -Ilib script.rb
|
49
|
+
```
|
50
|
+
|
51
|
+
## Getting Started
|
52
|
+
|
53
|
+
Please follow the [installation](#installation) procedure and then run the following code:
|
54
|
+
```ruby
|
55
|
+
# Load the gem
|
56
|
+
require 'qwil_api'
|
57
|
+
|
58
|
+
api_instance = QwilAPI::MembershipsApi.new
|
59
|
+
|
60
|
+
pk = "pk_example" # String |
|
61
|
+
|
62
|
+
|
63
|
+
begin
|
64
|
+
#
|
65
|
+
result = api_instance.membership_retrieve(pk)
|
66
|
+
p result
|
67
|
+
rescue QwilAPI::ApiError => e
|
68
|
+
puts "Exception when calling MembershipsApi->membership_retrieve: #{e}"
|
69
|
+
end
|
70
|
+
|
71
|
+
```
|
72
|
+
|
73
|
+
## Documentation for API Endpoints
|
74
|
+
|
75
|
+
All URIs are relative to *http://localhost:8000/*
|
76
|
+
|
77
|
+
Class | Method | HTTP request | Description
|
78
|
+
------------ | ------------- | ------------- | -------------
|
79
|
+
*QwilAPI::MembershipsApi* | [**membership_retrieve**](docs/MembershipsApi.md#membership_retrieve) | **GET** /memberships/{pk}/ |
|
80
|
+
|
81
|
+
|
82
|
+
## Documentation for Models
|
83
|
+
|
84
|
+
- [QwilAPI::MembershipSerializer](docs/MembershipSerializer.md)
|
85
|
+
- [QwilAPI::WriteMembershipSerializer](docs/WriteMembershipSerializer.md)
|
86
|
+
|
87
|
+
|
88
|
+
## Documentation for Authorization
|
89
|
+
|
90
|
+
All endpoints do not require authorization.
|
91
|
+
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# QwilAPI::AccountSerializer
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**url** | **String** | |
|
7
|
+
**account_number** | **String** | |
|
8
|
+
**name** | **String** | The user's label for this Account. |
|
9
|
+
**routing_number** | **String** | The inter-bank routing nubmer for this Account. 8 or 9 digits in length. |
|
10
|
+
**is_tax_savings** | **BOOLEAN** | Flag specifying if the Account is used for tax savings. |
|
11
|
+
**is_paypal** | **BOOLEAN** | Flag specifying if the Account is a Paypal account. |
|
12
|
+
**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. |
|
13
|
+
**mychoice_user_id** | **Integer** | For MyChoice Accounts. Populated from the MyChoice API. |
|
14
|
+
**mychoice_card_id** | **Integer** | For MyChoice Accounts. Populated from the MyChoice API. |
|
15
|
+
**deleted** | **BOOLEAN** | True if the Account has been deleted by an end-user. |
|
16
|
+
**user** | **String** | |
|
17
|
+
|
18
|
+
|
data/docs/AccountsApi.md
ADDED
@@ -0,0 +1,243 @@
|
|
1
|
+
# QwilAPI::AccountsApi
|
2
|
+
|
3
|
+
All URIs are relative to *http://localhost:8000/*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**account_destroy**](AccountsApi.md#account_destroy) | **DELETE** /accounts/{pk}/ | The bank accounts for all Users
|
8
|
+
[**account_partial_update**](AccountsApi.md#account_partial_update) | **PATCH** /accounts/{pk}/ | The bank accounts for all Users
|
9
|
+
[**account_retrieve**](AccountsApi.md#account_retrieve) | **GET** /accounts/{pk}/ | The bank accounts for all Users
|
10
|
+
[**account_update**](AccountsApi.md#account_update) | **PUT** /accounts/{pk}/ | The bank accounts for all Users
|
11
|
+
|
12
|
+
|
13
|
+
# **account_destroy**
|
14
|
+
> AccountSerializer account_destroy(pk)
|
15
|
+
|
16
|
+
The bank accounts for all Users
|
17
|
+
|
18
|
+
The bank accounts for all Users. Enables retrieve, update (PUT/PATCH), and destroy.<br/>Note that the Account API objects are immutable, but the DELETE API method is still offered to allow users to remove Accounts.<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.<br/>=> PATCH https://api.qwil.co/accounts/1/ {...}<br/><= 200 OK { \"url\": \"https://api.qwil.co/accounts/2/\", ... }<br/>The DELETE HTTP method will cause Accounts to have the Account.deleted flag set to True, but deleted Accounts will still be displayed in the /accounts/ list.
|
19
|
+
|
20
|
+
### Example
|
21
|
+
```ruby
|
22
|
+
# load the gem
|
23
|
+
require 'qwil_api'
|
24
|
+
|
25
|
+
api_instance = QwilAPI::AccountsApi.new
|
26
|
+
|
27
|
+
pk = "pk_example" # String |
|
28
|
+
|
29
|
+
|
30
|
+
begin
|
31
|
+
#The bank accounts for all Users
|
32
|
+
result = api_instance.account_destroy(pk)
|
33
|
+
p result
|
34
|
+
rescue QwilAPI::ApiError => e
|
35
|
+
puts "Exception when calling AccountsApi->account_destroy: #{e}"
|
36
|
+
end
|
37
|
+
```
|
38
|
+
|
39
|
+
### Parameters
|
40
|
+
|
41
|
+
Name | Type | Description | Notes
|
42
|
+
------------- | ------------- | ------------- | -------------
|
43
|
+
**pk** | **String**| |
|
44
|
+
|
45
|
+
### Return type
|
46
|
+
|
47
|
+
[**AccountSerializer**](AccountSerializer.md)
|
48
|
+
|
49
|
+
### Authorization
|
50
|
+
|
51
|
+
No authorization required
|
52
|
+
|
53
|
+
### HTTP request headers
|
54
|
+
|
55
|
+
- **Content-Type**: Not defined
|
56
|
+
- **Accept**: Not defined
|
57
|
+
|
58
|
+
|
59
|
+
|
60
|
+
# **account_partial_update**
|
61
|
+
> AccountSerializer account_partial_update(pk, opts)
|
62
|
+
|
63
|
+
The bank accounts for all Users
|
64
|
+
|
65
|
+
The bank accounts for all Users. Enables retrieve, update (PUT/PATCH), and destroy.<br/>Note that the Account API objects are immutable, but the DELETE API method is still offered to allow users to remove Accounts.<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.<br/>=> PATCH https://api.qwil.co/accounts/1/ {...}<br/><= 200 OK { \"url\": \"https://api.qwil.co/accounts/2/\", ... }<br/>The DELETE HTTP method will cause Accounts to have the Account.deleted flag set to True, but deleted Accounts will still be displayed in the /accounts/ list.
|
66
|
+
|
67
|
+
### Example
|
68
|
+
```ruby
|
69
|
+
# load the gem
|
70
|
+
require 'qwil_api'
|
71
|
+
|
72
|
+
api_instance = QwilAPI::AccountsApi.new
|
73
|
+
|
74
|
+
pk = "pk_example" # String |
|
75
|
+
|
76
|
+
opts = {
|
77
|
+
account_number: "account_number_example", # String |
|
78
|
+
name: "name_example", # String | The user's label for this Account.
|
79
|
+
routing_number: "routing_number_example", # String | The inter-bank routing nubmer for this Account. 8 or 9 digits in length.
|
80
|
+
is_tax_savings: true, # BOOLEAN | Flag specifying if the Account is used for tax savings.
|
81
|
+
is_paypal: true, # BOOLEAN | Flag specifying if the Account is a Paypal account.
|
82
|
+
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.
|
83
|
+
mychoice_user_id: 789, # Integer | For MyChoice Accounts. Populated from the MyChoice API.
|
84
|
+
mychoice_card_id: 789, # Integer | For MyChoice Accounts. Populated from the MyChoice API.
|
85
|
+
user: "user_example" # String |
|
86
|
+
}
|
87
|
+
|
88
|
+
begin
|
89
|
+
#The bank accounts for all Users
|
90
|
+
result = api_instance.account_partial_update(pk, opts)
|
91
|
+
p result
|
92
|
+
rescue QwilAPI::ApiError => e
|
93
|
+
puts "Exception when calling AccountsApi->account_partial_update: #{e}"
|
94
|
+
end
|
95
|
+
```
|
96
|
+
|
97
|
+
### Parameters
|
98
|
+
|
99
|
+
Name | Type | Description | Notes
|
100
|
+
------------- | ------------- | ------------- | -------------
|
101
|
+
**pk** | **String**| |
|
102
|
+
**account_number** | **String**| | [optional]
|
103
|
+
**name** | **String**| The user's label for this Account. | [optional]
|
104
|
+
**routing_number** | **String**| The inter-bank routing nubmer for this Account. 8 or 9 digits in length. | [optional]
|
105
|
+
**is_tax_savings** | **BOOLEAN**| Flag specifying if the Account is used for tax savings. | [optional]
|
106
|
+
**is_paypal** | **BOOLEAN**| Flag specifying if the Account is a Paypal account. | [optional]
|
107
|
+
**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]
|
108
|
+
**mychoice_user_id** | **Integer**| For MyChoice Accounts. Populated from the MyChoice API. | [optional]
|
109
|
+
**mychoice_card_id** | **Integer**| For MyChoice Accounts. Populated from the MyChoice API. | [optional]
|
110
|
+
**user** | **String**| | [optional]
|
111
|
+
|
112
|
+
### Return type
|
113
|
+
|
114
|
+
[**AccountSerializer**](AccountSerializer.md)
|
115
|
+
|
116
|
+
### Authorization
|
117
|
+
|
118
|
+
No authorization required
|
119
|
+
|
120
|
+
### HTTP request headers
|
121
|
+
|
122
|
+
- **Content-Type**: Not defined
|
123
|
+
- **Accept**: Not defined
|
124
|
+
|
125
|
+
|
126
|
+
|
127
|
+
# **account_retrieve**
|
128
|
+
> AccountSerializer account_retrieve(pk)
|
129
|
+
|
130
|
+
The bank accounts for all Users
|
131
|
+
|
132
|
+
The bank accounts for all Users. Enables retrieve, update (PUT/PATCH), and destroy.<br/>Note that the Account API objects are immutable, but the DELETE API method is still offered to allow users to remove Accounts.<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.<br/>=> PATCH https://api.qwil.co/accounts/1/ {...}<br/><= 200 OK { \"url\": \"https://api.qwil.co/accounts/2/\", ... }<br/>The DELETE HTTP method will cause Accounts to have the Account.deleted flag set to True, but deleted Accounts will still be displayed in the /accounts/ list.
|
133
|
+
|
134
|
+
### Example
|
135
|
+
```ruby
|
136
|
+
# load the gem
|
137
|
+
require 'qwil_api'
|
138
|
+
|
139
|
+
api_instance = QwilAPI::AccountsApi.new
|
140
|
+
|
141
|
+
pk = "pk_example" # String |
|
142
|
+
|
143
|
+
|
144
|
+
begin
|
145
|
+
#The bank accounts for all Users
|
146
|
+
result = api_instance.account_retrieve(pk)
|
147
|
+
p result
|
148
|
+
rescue QwilAPI::ApiError => e
|
149
|
+
puts "Exception when calling AccountsApi->account_retrieve: #{e}"
|
150
|
+
end
|
151
|
+
```
|
152
|
+
|
153
|
+
### Parameters
|
154
|
+
|
155
|
+
Name | Type | Description | Notes
|
156
|
+
------------- | ------------- | ------------- | -------------
|
157
|
+
**pk** | **String**| |
|
158
|
+
|
159
|
+
### Return type
|
160
|
+
|
161
|
+
[**AccountSerializer**](AccountSerializer.md)
|
162
|
+
|
163
|
+
### Authorization
|
164
|
+
|
165
|
+
No authorization required
|
166
|
+
|
167
|
+
### HTTP request headers
|
168
|
+
|
169
|
+
- **Content-Type**: Not defined
|
170
|
+
- **Accept**: Not defined
|
171
|
+
|
172
|
+
|
173
|
+
|
174
|
+
# **account_update**
|
175
|
+
> AccountSerializer account_update(pk, account_number, name, routing_number, opts)
|
176
|
+
|
177
|
+
The bank accounts for all Users
|
178
|
+
|
179
|
+
The bank accounts for all Users. Enables retrieve, update (PUT/PATCH), and destroy.<br/>Note that the Account API objects are immutable, but the DELETE API method is still offered to allow users to remove Accounts.<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.<br/>=> PATCH https://api.qwil.co/accounts/1/ {...}<br/><= 200 OK { \"url\": \"https://api.qwil.co/accounts/2/\", ... }<br/>The DELETE HTTP method will cause Accounts to have the Account.deleted flag set to True, but deleted Accounts will still be displayed in the /accounts/ list.
|
180
|
+
|
181
|
+
### Example
|
182
|
+
```ruby
|
183
|
+
# load the gem
|
184
|
+
require 'qwil_api'
|
185
|
+
|
186
|
+
api_instance = QwilAPI::AccountsApi.new
|
187
|
+
|
188
|
+
pk = "pk_example" # String |
|
189
|
+
|
190
|
+
account_number = "account_number_example" # String |
|
191
|
+
|
192
|
+
name = "name_example" # String | The user's label for this Account.
|
193
|
+
|
194
|
+
routing_number = "routing_number_example" # String | The inter-bank routing nubmer for this Account. 8 or 9 digits in length.
|
195
|
+
|
196
|
+
opts = {
|
197
|
+
is_tax_savings: true, # BOOLEAN | Flag specifying if the Account is used for tax savings.
|
198
|
+
is_paypal: true, # BOOLEAN | Flag specifying if the Account is a Paypal account.
|
199
|
+
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.
|
200
|
+
mychoice_user_id: 789, # Integer | For MyChoice Accounts. Populated from the MyChoice API.
|
201
|
+
mychoice_card_id: 789, # Integer | For MyChoice Accounts. Populated from the MyChoice API.
|
202
|
+
user: "user_example" # String |
|
203
|
+
}
|
204
|
+
|
205
|
+
begin
|
206
|
+
#The bank accounts for all Users
|
207
|
+
result = api_instance.account_update(pk, account_number, name, routing_number, opts)
|
208
|
+
p result
|
209
|
+
rescue QwilAPI::ApiError => e
|
210
|
+
puts "Exception when calling AccountsApi->account_update: #{e}"
|
211
|
+
end
|
212
|
+
```
|
213
|
+
|
214
|
+
### Parameters
|
215
|
+
|
216
|
+
Name | Type | Description | Notes
|
217
|
+
------------- | ------------- | ------------- | -------------
|
218
|
+
**pk** | **String**| |
|
219
|
+
**account_number** | **String**| |
|
220
|
+
**name** | **String**| The user's label for this Account. |
|
221
|
+
**routing_number** | **String**| The inter-bank routing nubmer for this Account. 8 or 9 digits in length. |
|
222
|
+
**is_tax_savings** | **BOOLEAN**| Flag specifying if the Account is used for tax savings. | [optional]
|
223
|
+
**is_paypal** | **BOOLEAN**| Flag specifying if the Account is a Paypal account. | [optional]
|
224
|
+
**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]
|
225
|
+
**mychoice_user_id** | **Integer**| For MyChoice Accounts. Populated from the MyChoice API. | [optional]
|
226
|
+
**mychoice_card_id** | **Integer**| For MyChoice Accounts. Populated from the MyChoice API. | [optional]
|
227
|
+
**user** | **String**| | [optional]
|
228
|
+
|
229
|
+
### Return type
|
230
|
+
|
231
|
+
[**AccountSerializer**](AccountSerializer.md)
|
232
|
+
|
233
|
+
### Authorization
|
234
|
+
|
235
|
+
No authorization required
|
236
|
+
|
237
|
+
### HTTP request headers
|
238
|
+
|
239
|
+
- **Content-Type**: Not defined
|
240
|
+
- **Accept**: Not defined
|
241
|
+
|
242
|
+
|
243
|
+
|
@@ -0,0 +1,57 @@
|
|
1
|
+
# QwilAPI::ApitokenauthApi
|
2
|
+
|
3
|
+
All URIs are relative to *http://localhost:8000/*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**obtain_json_web_token_post**](ApitokenauthApi.md#obtain_json_web_token_post) | **POST** /api-token-auth/ | API View that receives a POST with a user's username and password
|
8
|
+
|
9
|
+
|
10
|
+
# **obtain_json_web_token_post**
|
11
|
+
> JSONWebTokenSerializer obtain_json_web_token_post(opts)
|
12
|
+
|
13
|
+
API View that receives a POST with a user's username and password
|
14
|
+
|
15
|
+
API View that receives a POST with a user's username and password.<br/>Returns a JSON Web Token that can be used for authenticated requests.
|
16
|
+
|
17
|
+
### Example
|
18
|
+
```ruby
|
19
|
+
# load the gem
|
20
|
+
require 'qwil_api'
|
21
|
+
|
22
|
+
api_instance = QwilAPI::ApitokenauthApi.new
|
23
|
+
|
24
|
+
opts = {
|
25
|
+
json_web_token_serializer: QwilAPI::JSONWebTokenSerializer.new # JSONWebTokenSerializer |
|
26
|
+
}
|
27
|
+
|
28
|
+
begin
|
29
|
+
#API View that receives a POST with a user's username and password
|
30
|
+
result = api_instance.obtain_json_web_token_post(opts)
|
31
|
+
p result
|
32
|
+
rescue QwilAPI::ApiError => e
|
33
|
+
puts "Exception when calling ApitokenauthApi->obtain_json_web_token_post: #{e}"
|
34
|
+
end
|
35
|
+
```
|
36
|
+
|
37
|
+
### Parameters
|
38
|
+
|
39
|
+
Name | Type | Description | Notes
|
40
|
+
------------- | ------------- | ------------- | -------------
|
41
|
+
**json_web_token_serializer** | [**JSONWebTokenSerializer**](JSONWebTokenSerializer.md)| | [optional]
|
42
|
+
|
43
|
+
### Return type
|
44
|
+
|
45
|
+
[**JSONWebTokenSerializer**](JSONWebTokenSerializer.md)
|
46
|
+
|
47
|
+
### Authorization
|
48
|
+
|
49
|
+
No authorization required
|
50
|
+
|
51
|
+
### HTTP request headers
|
52
|
+
|
53
|
+
- **Content-Type**: Not defined
|
54
|
+
- **Accept**: Not defined
|
55
|
+
|
56
|
+
|
57
|
+
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# QwilAPI::CashoutCalculationSerializer
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**amount** | **String** | The Cashout amount to calculate fees for. (This amount is net, i.e. before fees). |
|
7
|
+
**fee** | **String** | The Cashout fee that would be charged for the requested amount. |
|
8
|
+
**maximum_available** | **String** | The maximum Cashout amount available for the User. (This amount is net, i.e. before fees). |
|
9
|
+
|
10
|
+
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# QwilAPI::CashoutSerializer
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**url** | **String** | |
|
7
|
+
**amount** | **String** | |
|
8
|
+
**fee** | **String** | |
|
9
|
+
**cashout_time** | **DateTime** | |
|
10
|
+
**notes** | **String** | |
|
11
|
+
**type** | **String** | |
|
12
|
+
**method** | **String** | |
|
13
|
+
**status** | **String** | |
|
14
|
+
**transmit_time** | **DateTime** | |
|
15
|
+
**user** | **String** | |
|
16
|
+
**rebate** | **String** | The Rebate against which this Cashout will be collected. |
|
17
|
+
**account** | **String** | |
|
18
|
+
**incomes** | **Array<String>** | The Incomes that fund this Cashout. |
|
19
|
+
|
20
|
+
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# QwilAPI::CashoutSliceSerializer
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**amount** | **String** | The amount of Income that is included in the Cashout. |
|
7
|
+
**fee** | **String** | The fee charged for this Cashout. |
|
8
|
+
**cashout** | **String** | The User-facing Cashout that this object funds. |
|
9
|
+
**income** | **String** | An Income that is providing funds for the linked Cashout. |
|
10
|
+
|
11
|
+
|
data/docs/CashoutsApi.md
ADDED
@@ -0,0 +1,56 @@
|
|
1
|
+
# QwilAPI::CashoutsApi
|
2
|
+
|
3
|
+
All URIs are relative to *http://localhost:8000/*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**cashout_retrieve**](CashoutsApi.md#cashout_retrieve) | **GET** /cashouts/{pk}/ | The Cashouts endpoint for all Users
|
8
|
+
|
9
|
+
|
10
|
+
# **cashout_retrieve**
|
11
|
+
> CashoutSerializer cashout_retrieve(pk)
|
12
|
+
|
13
|
+
The Cashouts endpoint for all Users
|
14
|
+
|
15
|
+
The Cashouts endpoint for all Users. Only allows retrieval of individual objects e.g. GET /cashouts/1/.
|
16
|
+
|
17
|
+
### Example
|
18
|
+
```ruby
|
19
|
+
# load the gem
|
20
|
+
require 'qwil_api'
|
21
|
+
|
22
|
+
api_instance = QwilAPI::CashoutsApi.new
|
23
|
+
|
24
|
+
pk = "pk_example" # String |
|
25
|
+
|
26
|
+
|
27
|
+
begin
|
28
|
+
#The Cashouts endpoint for all Users
|
29
|
+
result = api_instance.cashout_retrieve(pk)
|
30
|
+
p result
|
31
|
+
rescue QwilAPI::ApiError => e
|
32
|
+
puts "Exception when calling CashoutsApi->cashout_retrieve: #{e}"
|
33
|
+
end
|
34
|
+
```
|
35
|
+
|
36
|
+
### Parameters
|
37
|
+
|
38
|
+
Name | Type | Description | Notes
|
39
|
+
------------- | ------------- | ------------- | -------------
|
40
|
+
**pk** | **String**| |
|
41
|
+
|
42
|
+
### Return type
|
43
|
+
|
44
|
+
[**CashoutSerializer**](CashoutSerializer.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,18 @@
|
|
1
|
+
# QwilAPI::CompanyInformationSerializer
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**address_city** | **String** | |
|
7
|
+
**address_state** | **String** | |
|
8
|
+
**business_name** | **String** | Business name. Only use this field if this user is a business entity. |
|
9
|
+
**entity_type** | **String** | |
|
10
|
+
**tax_id_type** | **String** | |
|
11
|
+
**phone_number** | **String** | |
|
12
|
+
**address_zip_code** | **String** | |
|
13
|
+
**tax_id_number** | **String** | |
|
14
|
+
**address** | **String** | |
|
15
|
+
**email** | **String** | |
|
16
|
+
**duns_number** | **String** | |
|
17
|
+
|
18
|
+
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# QwilAPI::ContactInformationSerializer
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**first_name** | **String** | First name, if the user is an individual. Leave blank if this user is a company. |
|
7
|
+
**last_name** | **String** | Last name, if the user is an individual. Leave blank if this user is a company. |
|
8
|
+
**email** | **String** | |
|
9
|
+
**entity_type** | **String** | |
|
10
|
+
**address** | **String** | |
|
11
|
+
**address_city** | **String** | |
|
12
|
+
**address_state** | **String** | |
|
13
|
+
**address_zip_code** | **String** | |
|
14
|
+
**phone_number** | **String** | |
|
15
|
+
|
16
|
+
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# QwilAPI::ContractorSerializer
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**url** | **String** | |
|
7
|
+
**email** | **String** | |
|
8
|
+
**income** | **String** | URL of the endpoint describing the User's Income. |
|
9
|
+
**name** | **String** | DEPRECATED: The full name of the contractor. Use first_name/last_name instead. |
|
10
|
+
**first_name** | **String** | First name, if the user is an individual. Leave blank if this user is a company. |
|
11
|
+
**last_name** | **String** | Last name, if the user is an individual. Leave blank if this user is a company. |
|
12
|
+
**business_name** | **String** | Business name. Only use this field if this user is a business entity. |
|
13
|
+
**contractor_type** | **String** | |
|
14
|
+
**accounts** | **String** | URL of the endpoint describing the User's Accounts. |
|
15
|
+
**default_account** | **String** | Default account to use for payment of unpaid income. |
|
16
|
+
**cashouts** | **String** | URL of the endpoint describing the User's Cashouts. |
|
17
|
+
**calculate_cashout_available** | **String** | Calculate what fees would be charged for a specific Cashout amount. |
|
18
|
+
**has_password** | **String** | Flag specifying if the User has set their password. |
|
19
|
+
|
20
|
+
|