qwil_api 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (230) hide show
  1. checksums.yaml +7 -0
  2. data/README.md +91 -0
  3. data/docs/AccountSerializer.md +18 -0
  4. data/docs/AccountsApi.md +243 -0
  5. data/docs/ApitokenauthApi.md +57 -0
  6. data/docs/CashoutCalculationSerializer.md +10 -0
  7. data/docs/CashoutSerializer.md +20 -0
  8. data/docs/CashoutSliceSerializer.md +11 -0
  9. data/docs/CashoutsApi.md +56 -0
  10. data/docs/CompanyInformationSerializer.md +18 -0
  11. data/docs/ContactInfoSerializer.md +10 -0
  12. data/docs/ContactInformationSerializer.md +16 -0
  13. data/docs/ContractorSerializer.md +20 -0
  14. data/docs/IncomeApi.md +98 -0
  15. data/docs/IncomeNestedSerializer.md +18 -0
  16. data/docs/IncomeSerializer.md +18 -0
  17. data/docs/IncomeSerializerFixedSource.md +18 -0
  18. data/docs/InvoiceSerializer.md +17 -0
  19. data/docs/InvoiceSerializerFixedSourceCreate.md +17 -0
  20. data/docs/InvoicesApi.md +98 -0
  21. data/docs/JSONWebTokenSerializer.md +7 -0
  22. data/docs/ManagerPlatformSerializer.md +22 -0
  23. data/docs/ManagerSerializer.md +10 -0
  24. data/docs/ManagersApi.md +172 -0
  25. data/docs/MembershipSerializer.md +9 -0
  26. data/docs/MembershipsApi.md +56 -0
  27. data/docs/PersonalInformationSerializer.md +16 -0
  28. data/docs/PlaidPublicTokenSerializer.md +8 -0
  29. data/docs/PlatformIncomeRequestSerializer.md +15 -0
  30. data/docs/PlatformMembershipRequestSerializer.md +11 -0
  31. data/docs/PlatformSerializer.md +30 -0
  32. data/docs/PlatformSummarySerializer.md +10 -0
  33. data/docs/PlatformsApi.md +1369 -0
  34. data/docs/RebateSerializer.md +15 -0
  35. data/docs/RebatesApi.md +98 -0
  36. data/docs/ReceivablesSerializer.md +9 -0
  37. data/docs/TaxSavingsSerializer.md +10 -0
  38. data/docs/UserAccountSerializer.md +17 -0
  39. data/docs/UserCashoutSerializer.md +20 -0
  40. data/docs/UserIncomeRequestSerializer.md +15 -0
  41. data/docs/UserPlatformMembershipRequestSerializer.md +13 -0
  42. data/docs/UserSerializer.md +40 -0
  43. data/docs/UsersApi.md +2173 -0
  44. data/docs/WriteAccountSerializer.md +16 -0
  45. data/docs/WriteCashoutCalculationSerializer.md +8 -0
  46. data/docs/WriteCashoutSerializer.md +16 -0
  47. data/docs/WriteCashoutSliceSerializer.md +11 -0
  48. data/docs/WriteCompanyInformationSerializer.md +17 -0
  49. data/docs/WriteContactInfoSerializer.md +10 -0
  50. data/docs/WriteContactInformationSerializer.md +15 -0
  51. data/docs/WriteContractorSerializer.md +14 -0
  52. data/docs/WriteIncomeNestedSerializer.md +12 -0
  53. data/docs/WriteIncomeSerializer.md +13 -0
  54. data/docs/WriteIncomeSerializerFixedSource.md +12 -0
  55. data/docs/WriteInvoiceSerializer.md +13 -0
  56. data/docs/WriteInvoiceSerializerFixedSourceCreate.md +9 -0
  57. data/docs/WriteJSONWebTokenSerializer.md +7 -0
  58. data/docs/WriteManagerPlatformSerializer.md +15 -0
  59. data/docs/WriteManagerSerializer.md +8 -0
  60. data/docs/WriteMembershipSerializer.md +8 -0
  61. data/docs/WritePersonalInformationSerializer.md +16 -0
  62. data/docs/WritePlaidPublicTokenSerializer.md +8 -0
  63. data/docs/WritePlatformIncomeRequestSerializer.md +10 -0
  64. data/docs/WritePlatformMembershipRequestSerializer.md +7 -0
  65. data/docs/WritePlatformSerializer.md +19 -0
  66. data/docs/WritePlatformSummarySerializer.md +8 -0
  67. data/docs/WriteRebateSerializer.md +9 -0
  68. data/docs/WriteReceivablesSerializer.md +8 -0
  69. data/docs/WriteTaxSavingsSerializer.md +8 -0
  70. data/docs/WriteUserAccountSerializer.md +14 -0
  71. data/docs/WriteUserCashoutSerializer.md +15 -0
  72. data/docs/WriteUserIncomeRequestSerializer.md +10 -0
  73. data/docs/WriteUserPlatformMembershipRequestSerializer.md +9 -0
  74. data/docs/WriteUserSerializer.md +21 -0
  75. data/generate-client.sh +6 -0
  76. data/lib/qwil_api/api/accounts_api.rb +320 -0
  77. data/lib/qwil_api/api/apitokenauth_api.rb +87 -0
  78. data/lib/qwil_api/api/cashouts_api.rb +89 -0
  79. data/lib/qwil_api/api/income_api.rb +142 -0
  80. data/lib/qwil_api/api/invoices_api.rb +142 -0
  81. data/lib/qwil_api/api/managers_api.rb +237 -0
  82. data/lib/qwil_api/api/memberships_api.rb +89 -0
  83. data/lib/qwil_api/api/platforms_api.rb +1674 -0
  84. data/lib/qwil_api/api/rebates_api.rb +142 -0
  85. data/lib/qwil_api/api/users_api.rb +2672 -0
  86. data/lib/qwil_api/api_client.rb +376 -0
  87. data/lib/qwil_api/api_error.rb +45 -0
  88. data/lib/qwil_api/configuration.rb +205 -0
  89. data/lib/qwil_api/models/account_serializer.rb +370 -0
  90. data/lib/qwil_api/models/cashout_calculation_serializer.rb +221 -0
  91. data/lib/qwil_api/models/cashout_serializer.rb +379 -0
  92. data/lib/qwil_api/models/cashout_slice_serializer.rb +232 -0
  93. data/lib/qwil_api/models/company_information_serializer.rb +299 -0
  94. data/lib/qwil_api/models/contact_info_serializer.rb +218 -0
  95. data/lib/qwil_api/models/contact_information_serializer.rb +280 -0
  96. data/lib/qwil_api/models/contractor_serializer.rb +361 -0
  97. data/lib/qwil_api/models/income_nested_serializer.rb +302 -0
  98. data/lib/qwil_api/models/income_serializer.rb +302 -0
  99. data/lib/qwil_api/models/income_serializer_fixed_source.rb +302 -0
  100. data/lib/qwil_api/models/invoice_serializer.rb +299 -0
  101. data/lib/qwil_api/models/invoice_serializer_fixed_source_create.rb +299 -0
  102. data/lib/qwil_api/models/json_web_token_serializer.rb +188 -0
  103. data/lib/qwil_api/models/manager_platform_serializer.rb +391 -0
  104. data/lib/qwil_api/models/manager_serializer.rb +218 -0
  105. data/lib/qwil_api/models/membership_serializer.rb +208 -0
  106. data/lib/qwil_api/models/personal_information_serializer.rb +279 -0
  107. data/lib/qwil_api/models/plaid_public_token_serializer.rb +199 -0
  108. data/lib/qwil_api/models/platform_income_request_serializer.rb +307 -0
  109. data/lib/qwil_api/models/platform_membership_request_serializer.rb +262 -0
  110. data/lib/qwil_api/models/platform_serializer.rb +480 -0
  111. data/lib/qwil_api/models/platform_summary_serializer.rb +218 -0
  112. data/lib/qwil_api/models/rebate_serializer.rb +276 -0
  113. data/lib/qwil_api/models/receivables_serializer.rb +208 -0
  114. data/lib/qwil_api/models/tax_savings_serializer.rb +219 -0
  115. data/lib/qwil_api/models/user_account_serializer.rb +359 -0
  116. data/lib/qwil_api/models/user_cashout_serializer.rb +379 -0
  117. data/lib/qwil_api/models/user_income_request_serializer.rb +307 -0
  118. data/lib/qwil_api/models/user_platform_membership_request_serializer.rb +283 -0
  119. data/lib/qwil_api/models/user_serializer.rb +592 -0
  120. data/lib/qwil_api/models/write_account_serializer.rb +331 -0
  121. data/lib/qwil_api/models/write_cashout_calculation_serializer.rb +198 -0
  122. data/lib/qwil_api/models/write_cashout_serializer.rb +316 -0
  123. data/lib/qwil_api/models/write_cashout_slice_serializer.rb +232 -0
  124. data/lib/qwil_api/models/write_company_information_serializer.rb +280 -0
  125. data/lib/qwil_api/models/write_contact_info_serializer.rb +218 -0
  126. data/lib/qwil_api/models/write_contact_information_serializer.rb +262 -0
  127. data/lib/qwil_api/models/write_contractor_serializer.rb +289 -0
  128. data/lib/qwil_api/models/write_income_nested_serializer.rb +236 -0
  129. data/lib/qwil_api/models/write_income_serializer.rb +247 -0
  130. data/lib/qwil_api/models/write_income_serializer_fixed_source.rb +236 -0
  131. data/lib/qwil_api/models/write_invoice_serializer.rb +252 -0
  132. data/lib/qwil_api/models/write_invoice_serializer_fixed_source_create.rb +210 -0
  133. data/lib/qwil_api/models/write_json_web_token_serializer.rb +188 -0
  134. data/lib/qwil_api/models/write_manager_platform_serializer.rb +314 -0
  135. data/lib/qwil_api/models/write_manager_serializer.rb +198 -0
  136. data/lib/qwil_api/models/write_membership_serializer.rb +198 -0
  137. data/lib/qwil_api/models/write_personal_information_serializer.rb +270 -0
  138. data/lib/qwil_api/models/write_plaid_public_token_serializer.rb +199 -0
  139. data/lib/qwil_api/models/write_platform_income_request_serializer.rb +220 -0
  140. data/lib/qwil_api/models/write_platform_membership_request_serializer.rb +188 -0
  141. data/lib/qwil_api/models/write_platform_serializer.rb +309 -0
  142. data/lib/qwil_api/models/write_platform_summary_serializer.rb +198 -0
  143. data/lib/qwil_api/models/write_rebate_serializer.rb +209 -0
  144. data/lib/qwil_api/models/write_receivables_serializer.rb +198 -0
  145. data/lib/qwil_api/models/write_tax_savings_serializer.rb +198 -0
  146. data/lib/qwil_api/models/write_user_account_serializer.rb +312 -0
  147. data/lib/qwil_api/models/write_user_cashout_serializer.rb +307 -0
  148. data/lib/qwil_api/models/write_user_income_request_serializer.rb +220 -0
  149. data/lib/qwil_api/models/write_user_platform_membership_request_serializer.rb +208 -0
  150. data/lib/qwil_api/models/write_user_serializer.rb +358 -0
  151. data/lib/qwil_api/version.rb +24 -0
  152. data/lib/qwil_api.rb +51 -0
  153. data/qwil_api.gemspec +53 -0
  154. data/spec/api/accounts_api_spec.rb +110 -0
  155. data/spec/api/apitokenauth_api_spec.rb +56 -0
  156. data/spec/api/cashouts_api_spec.rb +56 -0
  157. data/spec/api/income_api_spec.rb +67 -0
  158. data/spec/api/invoices_api_spec.rb +67 -0
  159. data/spec/api/managers_api_spec.rb +88 -0
  160. data/spec/api/memberships_api_spec.rb +56 -0
  161. data/spec/api/platforms_api_spec.rb +398 -0
  162. data/spec/api/rebates_api_spec.rb +67 -0
  163. data/spec/api/users_api_spec.rb +625 -0
  164. data/spec/api_client_spec.rb +235 -0
  165. data/spec/configuration_spec.rb +51 -0
  166. data/spec/models/account_serializer_spec.rb +111 -0
  167. data/spec/models/cashout_calculation_serializer_spec.rb +63 -0
  168. data/spec/models/cashout_serializer_spec.rb +135 -0
  169. data/spec/models/cashout_slice_serializer_spec.rb +69 -0
  170. data/spec/models/company_information_serializer_spec.rb +111 -0
  171. data/spec/models/contact_info_serializer_spec.rb +63 -0
  172. data/spec/models/contact_information_serializer_spec.rb +99 -0
  173. data/spec/models/contractor_serializer_spec.rb +127 -0
  174. data/spec/models/income_nested_serializer_spec.rb +111 -0
  175. data/spec/models/income_serializer_fixed_source_spec.rb +111 -0
  176. data/spec/models/income_serializer_spec.rb +111 -0
  177. data/spec/models/invoice_serializer_fixed_source_create_spec.rb +105 -0
  178. data/spec/models/invoice_serializer_spec.rb +105 -0
  179. data/spec/models/json_web_token_serializer_spec.rb +45 -0
  180. data/spec/models/manager_platform_serializer_spec.rb +143 -0
  181. data/spec/models/manager_serializer_spec.rb +63 -0
  182. data/spec/models/membership_serializer_spec.rb +57 -0
  183. data/spec/models/personal_information_serializer_spec.rb +99 -0
  184. data/spec/models/plaid_public_token_serializer_spec.rb +51 -0
  185. data/spec/models/platform_income_request_serializer_spec.rb +97 -0
  186. data/spec/models/platform_membership_request_serializer_spec.rb +73 -0
  187. data/spec/models/platform_serializer_spec.rb +191 -0
  188. data/spec/models/platform_summary_serializer_spec.rb +63 -0
  189. data/spec/models/rebate_serializer_spec.rb +93 -0
  190. data/spec/models/receivables_serializer_spec.rb +57 -0
  191. data/spec/models/tax_savings_serializer_spec.rb +63 -0
  192. data/spec/models/user_account_serializer_spec.rb +105 -0
  193. data/spec/models/user_cashout_serializer_spec.rb +135 -0
  194. data/spec/models/user_income_request_serializer_spec.rb +97 -0
  195. data/spec/models/user_platform_membership_request_serializer_spec.rb +85 -0
  196. data/spec/models/user_serializer_spec.rb +251 -0
  197. data/spec/models/write_account_serializer_spec.rb +99 -0
  198. data/spec/models/write_cashout_calculation_serializer_spec.rb +51 -0
  199. data/spec/models/write_cashout_serializer_spec.rb +107 -0
  200. data/spec/models/write_cashout_slice_serializer_spec.rb +69 -0
  201. data/spec/models/write_company_information_serializer_spec.rb +105 -0
  202. data/spec/models/write_contact_info_serializer_spec.rb +63 -0
  203. data/spec/models/write_contact_information_serializer_spec.rb +93 -0
  204. data/spec/models/write_contractor_serializer_spec.rb +91 -0
  205. data/spec/models/write_income_nested_serializer_spec.rb +75 -0
  206. data/spec/models/write_income_serializer_fixed_source_spec.rb +75 -0
  207. data/spec/models/write_income_serializer_spec.rb +81 -0
  208. data/spec/models/write_invoice_serializer_fixed_source_create_spec.rb +57 -0
  209. data/spec/models/write_invoice_serializer_spec.rb +81 -0
  210. data/spec/models/write_json_web_token_serializer_spec.rb +45 -0
  211. data/spec/models/write_manager_platform_serializer_spec.rb +101 -0
  212. data/spec/models/write_manager_serializer_spec.rb +51 -0
  213. data/spec/models/write_membership_serializer_spec.rb +51 -0
  214. data/spec/models/write_personal_information_serializer_spec.rb +99 -0
  215. data/spec/models/write_plaid_public_token_serializer_spec.rb +51 -0
  216. data/spec/models/write_platform_income_request_serializer_spec.rb +63 -0
  217. data/spec/models/write_platform_membership_request_serializer_spec.rb +45 -0
  218. data/spec/models/write_platform_serializer_spec.rb +117 -0
  219. data/spec/models/write_platform_summary_serializer_spec.rb +51 -0
  220. data/spec/models/write_rebate_serializer_spec.rb +57 -0
  221. data/spec/models/write_receivables_serializer_spec.rb +51 -0
  222. data/spec/models/write_tax_savings_serializer_spec.rb +51 -0
  223. data/spec/models/write_user_account_serializer_spec.rb +87 -0
  224. data/spec/models/write_user_cashout_serializer_spec.rb +101 -0
  225. data/spec/models/write_user_income_request_serializer_spec.rb +63 -0
  226. data/spec/models/write_user_platform_membership_request_serializer_spec.rb +57 -0
  227. data/spec/models/write_user_serializer_spec.rb +133 -0
  228. data/spec/spec_helper.rb +120 -0
  229. data/swagger-codegen-config.json +9 -0
  230. metadata +527 -0
@@ -0,0 +1,398 @@
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::PlatformsApi
26
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
27
+ # Please update as you see appropriate
28
+ describe 'PlatformsApi' do
29
+ before do
30
+ # run before each test
31
+ @instance = QwilAPI::PlatformsApi.new
32
+ end
33
+
34
+ after do
35
+ # run after each test
36
+ end
37
+
38
+ describe 'test an instance of PlatformsApi' do
39
+ it 'should create an instact of PlatformsApi' do
40
+ expect(@instance).to be_instance_of(QwilAPI::PlatformsApi)
41
+ end
42
+ end
43
+
44
+ # unit tests for accept_income_request_get
45
+ # View to offer a
46
+ # View to offer a ./accept endpoint for accepting a IncomeRequest.
47
+ # @param platform_pk
48
+ # @param pk
49
+ # @param [Hash] opts the optional parameters
50
+ # @return [Object]
51
+ describe 'accept_income_request_get test' do
52
+ it "should work" do
53
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
54
+ end
55
+ end
56
+
57
+ # unit tests for accept_income_request_post
58
+ # View to offer a
59
+ # View to offer a ./accept endpoint for accepting a IncomeRequest.
60
+ # @param platform_pk
61
+ # @param pk
62
+ # @param [Hash] opts the optional parameters
63
+ # @return [Object]
64
+ describe 'accept_income_request_post test' do
65
+ it "should work" do
66
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
67
+ end
68
+ end
69
+
70
+ # unit tests for accept_platform_membership_request_get
71
+ # View to offer a
72
+ # View to offer a ./accept endpoint for accepting a PlatformMembershipRequest.
73
+ # @param platform_pk
74
+ # @param pk
75
+ # @param [Hash] opts the optional parameters
76
+ # @return [Object]
77
+ describe 'accept_platform_membership_request_get test' do
78
+ it "should work" do
79
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
80
+ end
81
+ end
82
+
83
+ # unit tests for accept_platform_membership_request_post
84
+ # View to offer a
85
+ # View to offer a ./accept endpoint for accepting a PlatformMembershipRequest.
86
+ # @param platform_pk
87
+ # @param pk
88
+ # @param [Hash] opts the optional parameters
89
+ # @return [Object]
90
+ describe 'accept_platform_membership_request_post test' do
91
+ it "should work" do
92
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
93
+ end
94
+ end
95
+
96
+ # unit tests for deny_income_request_get
97
+ # View to offer a
98
+ # View to offer a ./deny endpoint for denying a IncomeRequest.
99
+ # @param platform_pk
100
+ # @param pk
101
+ # @param [Hash] opts the optional parameters
102
+ # @return [Object]
103
+ describe 'deny_income_request_get test' do
104
+ it "should work" do
105
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
106
+ end
107
+ end
108
+
109
+ # unit tests for deny_income_request_post
110
+ # View to offer a
111
+ # View to offer a ./deny endpoint for denying a IncomeRequest.
112
+ # @param platform_pk
113
+ # @param pk
114
+ # @param [Hash] opts the optional parameters
115
+ # @return [Object]
116
+ describe 'deny_income_request_post test' do
117
+ it "should work" do
118
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
119
+ end
120
+ end
121
+
122
+ # unit tests for deny_platform_membership_request_get
123
+ # View to offer a
124
+ # View to offer a ./accept endpoint for accepting a PlatformMembershipRequest.
125
+ # @param platform_pk
126
+ # @param pk
127
+ # @param [Hash] opts the optional parameters
128
+ # @return [Object]
129
+ describe 'deny_platform_membership_request_get test' do
130
+ it "should work" do
131
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
132
+ end
133
+ end
134
+
135
+ # unit tests for deny_platform_membership_request_post
136
+ # View to offer a
137
+ # View to offer a ./accept endpoint for accepting a PlatformMembershipRequest.
138
+ # @param platform_pk
139
+ # @param pk
140
+ # @param [Hash] opts the optional parameters
141
+ # @return [Object]
142
+ describe 'deny_platform_membership_request_post test' do
143
+ it "should work" do
144
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
145
+ end
146
+ end
147
+
148
+ # unit tests for income_platform_create
149
+ # The list of Income items for a specific User
150
+ # 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.
151
+ # @param platform_pk
152
+ # @param user
153
+ # @param amount
154
+ # @param [Hash] opts the optional parameters
155
+ # @option opts [String] :external_id 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.
156
+ # @option opts [DateTime] :payment_time
157
+ # @option opts [String] :notes
158
+ # @return [IncomeSerializerFixedSource]
159
+ describe 'income_platform_create test' do
160
+ it "should work" do
161
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
162
+ end
163
+ end
164
+
165
+ # unit tests for income_platform_list
166
+ # The list of Income items for a specific User
167
+ # 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.
168
+ # @param platform_pk
169
+ # @param [Hash] opts the optional parameters
170
+ # @return [Array<IncomeSerializerFixedSource>]
171
+ describe 'income_platform_list test' do
172
+ it "should work" do
173
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
174
+ end
175
+ end
176
+
177
+ # unit tests for platform_contractor_create
178
+ # The set of users on a specific Platform
179
+ # The set of users on a specific Platform.&lt;br/&gt;Any users created through this ViewSet will have a profile created with the Platform set to the resource specified in the URL, e.g. POST /platforms/3/contractors/ will create a user with User.Profile.platform &#x3D; &#39;/platforms/3/&#39;.
180
+ # @param platform_pk
181
+ # @param email
182
+ # @param [Hash] opts the optional parameters
183
+ # @option opts [String] :first_name First name, if the user is an individual. Leave blank if this user is a company.
184
+ # @option opts [String] :last_name Last name, if the user is an individual. Leave blank if this user is a company.
185
+ # @option opts [String] :business_name Business name. Only use this field if this user is a business entity.
186
+ # @option opts [String] :contractor_type
187
+ # @option opts [String] :personal_information
188
+ # @option opts [String] :default_account Default account to use for payment of unpaid income.
189
+ # @return [ContractorSerializer]
190
+ describe 'platform_contractor_create test' do
191
+ it "should work" do
192
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
193
+ end
194
+ end
195
+
196
+ # unit tests for platform_contractor_list
197
+ # The set of users on a specific Platform
198
+ # The set of users on a specific Platform.&lt;br/&gt;Any users created through this ViewSet will have a profile created with the Platform set to the resource specified in the URL, e.g. POST /platforms/3/contractors/ will create a user with User.Profile.platform &#x3D; &#39;/platforms/3/&#39;.
199
+ # @param platform_pk
200
+ # @param [Hash] opts the optional parameters
201
+ # @return [Array<ContractorSerializer>]
202
+ describe 'platform_contractor_list test' do
203
+ it "should work" do
204
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
205
+ end
206
+ end
207
+
208
+ # unit tests for platform_contractor_partial_update
209
+ # The set of users on a specific Platform
210
+ # The set of users on a specific Platform.&lt;br/&gt;Any users created through this ViewSet will have a profile created with the Platform set to the resource specified in the URL, e.g. POST /platforms/3/contractors/ will create a user with User.Profile.platform &#x3D; &#39;/platforms/3/&#39;.
211
+ # @param platform_pk
212
+ # @param pk
213
+ # @param [Hash] opts the optional parameters
214
+ # @option opts [String] :email
215
+ # @option opts [String] :first_name First name, if the user is an individual. Leave blank if this user is a company.
216
+ # @option opts [String] :last_name Last name, if the user is an individual. Leave blank if this user is a company.
217
+ # @option opts [String] :business_name Business name. Only use this field if this user is a business entity.
218
+ # @option opts [String] :contractor_type
219
+ # @option opts [String] :personal_information
220
+ # @option opts [String] :default_account Default account to use for payment of unpaid income.
221
+ # @return [ContractorSerializer]
222
+ describe 'platform_contractor_partial_update test' do
223
+ it "should work" do
224
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
225
+ end
226
+ end
227
+
228
+ # unit tests for platform_contractor_retrieve
229
+ # The set of users on a specific Platform
230
+ # The set of users on a specific Platform.&lt;br/&gt;Any users created through this ViewSet will have a profile created with the Platform set to the resource specified in the URL, e.g. POST /platforms/3/contractors/ will create a user with User.Profile.platform &#x3D; &#39;/platforms/3/&#39;.
231
+ # @param platform_pk
232
+ # @param pk
233
+ # @param [Hash] opts the optional parameters
234
+ # @return [ContractorSerializer]
235
+ describe 'platform_contractor_retrieve test' do
236
+ it "should work" do
237
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
238
+ end
239
+ end
240
+
241
+ # unit tests for platform_contractor_update
242
+ # The set of users on a specific Platform
243
+ # The set of users on a specific Platform.&lt;br/&gt;Any users created through this ViewSet will have a profile created with the Platform set to the resource specified in the URL, e.g. POST /platforms/3/contractors/ will create a user with User.Profile.platform &#x3D; &#39;/platforms/3/&#39;.
244
+ # @param platform_pk
245
+ # @param pk
246
+ # @param email
247
+ # @param [Hash] opts the optional parameters
248
+ # @option opts [String] :first_name First name, if the user is an individual. Leave blank if this user is a company.
249
+ # @option opts [String] :last_name Last name, if the user is an individual. Leave blank if this user is a company.
250
+ # @option opts [String] :business_name Business name. Only use this field if this user is a business entity.
251
+ # @option opts [String] :contractor_type
252
+ # @option opts [String] :personal_information
253
+ # @option opts [String] :default_account Default account to use for payment of unpaid income.
254
+ # @return [ContractorSerializer]
255
+ describe 'platform_contractor_update test' do
256
+ it "should work" do
257
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
258
+ end
259
+ end
260
+
261
+ # unit tests for platform_csv_upload_income_file_post
262
+ # Viewset for uploading CSV files containing Income config
263
+ # Viewset for uploading CSV files containing Income config.&lt;br/&gt;The POST must use Content-Type: multipart/form-data&lt;br/&gt;The field name for the form-data must be \&quot;income-data\&quot;.&lt;br/&gt;The first line specifies the field names, and each subsequent line will specify an Income object.
264
+ # @param platform_pk
265
+ # @param [Hash] opts the optional parameters
266
+ # @return [Object]
267
+ describe 'platform_csv_upload_income_file_post test' do
268
+ it "should work" do
269
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
270
+ end
271
+ end
272
+
273
+ # unit tests for platform_csv_upload_user_file_post
274
+ # Viewset for uploading CSV files containing User config
275
+ # Viewset for uploading CSV files containing User config.&lt;br/&gt;The POST must use Content-Type: multipart/form-data&lt;br/&gt;The field name for the form-data must be \&quot;user-data\&quot;.&lt;br/&gt;The first line specifies the field names, and each subsequent line will specify a User object.&lt;br/&gt;Note that the fields in User.PersonalInformation can also be specified,&lt;br/&gt;e.g. first_name,last_name,email,tax_id_number
276
+ # @param platform_pk
277
+ # @param [Hash] opts the optional parameters
278
+ # @return [Object]
279
+ describe 'platform_csv_upload_user_file_post test' do
280
+ it "should work" do
281
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
282
+ end
283
+ end
284
+
285
+ # unit tests for platform_income_request_list
286
+ #
287
+ #
288
+ # @param platform_pk
289
+ # @param [Hash] opts the optional parameters
290
+ # @return [Array<PlatformIncomeRequestSerializer>]
291
+ describe 'platform_income_request_list test' do
292
+ it "should work" do
293
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
294
+ end
295
+ end
296
+
297
+ # unit tests for platform_income_request_retrieve
298
+ #
299
+ #
300
+ # @param platform_pk
301
+ # @param pk
302
+ # @param [Hash] opts the optional parameters
303
+ # @return [PlatformIncomeRequestSerializer]
304
+ describe 'platform_income_request_retrieve test' do
305
+ it "should work" do
306
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
307
+ end
308
+ end
309
+
310
+ # unit tests for platform_invoice_create_create
311
+ #
312
+ #
313
+ # @param platform_pk
314
+ # @param income
315
+ # @param [Hash] opts the optional parameters
316
+ # @option opts [String] :external_id 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.
317
+ # @return [InvoiceSerializerFixedSourceCreate]
318
+ describe 'platform_invoice_create_create 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 platform_invoice_list
325
+ #
326
+ #
327
+ # @param platform_pk
328
+ # @param [Hash] opts the optional parameters
329
+ # @return [Array<InvoiceSerializer>]
330
+ describe 'platform_invoice_list test' do
331
+ it "should work" do
332
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
333
+ end
334
+ end
335
+
336
+ # unit tests for platform_membership_create
337
+ #
338
+ #
339
+ # @param platform_pk
340
+ # @param user
341
+ # @param [Hash] opts the optional parameters
342
+ # @return [MembershipSerializer]
343
+ describe 'platform_membership_create 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 platform_membership_list
350
+ # Temporary special-case logic to map old Platform memberships onto the new API
351
+ # Temporary special-case logic to map old Platform memberships onto the new API.&lt;br/&gt;Generate a faux Membership for each User.profile.platform FKey ref.
352
+ # @param platform_pk
353
+ # @param [Hash] opts the optional parameters
354
+ # @return [Array<MembershipSerializer>]
355
+ describe 'platform_membership_list test' do
356
+ it "should work" do
357
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
358
+ end
359
+ end
360
+
361
+ # unit tests for platform_membership_request_list
362
+ #
363
+ #
364
+ # @param platform_pk
365
+ # @param [Hash] opts the optional parameters
366
+ # @return [Array<PlatformMembershipRequestSerializer>]
367
+ describe 'platform_membership_request_list test' do
368
+ it "should work" do
369
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
370
+ end
371
+ end
372
+
373
+ # unit tests for platform_membership_request_retrieve
374
+ #
375
+ #
376
+ # @param platform_pk
377
+ # @param pk
378
+ # @param [Hash] opts the optional parameters
379
+ # @return [PlatformMembershipRequestSerializer]
380
+ describe 'platform_membership_request_retrieve test' do
381
+ it "should work" do
382
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
383
+ end
384
+ end
385
+
386
+ # unit tests for platform_retrieve
387
+ #
388
+ #
389
+ # @param pk
390
+ # @param [Hash] opts the optional parameters
391
+ # @return [PlatformSerializer]
392
+ describe 'platform_retrieve test' do
393
+ it "should work" do
394
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
395
+ end
396
+ end
397
+
398
+ end
@@ -0,0 +1,67 @@
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::RebatesApi
26
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
27
+ # Please update as you see appropriate
28
+ describe 'RebatesApi' do
29
+ before do
30
+ # run before each test
31
+ @instance = QwilAPI::RebatesApi.new
32
+ end
33
+
34
+ after do
35
+ # run after each test
36
+ end
37
+
38
+ describe 'test an instance of RebatesApi' do
39
+ it 'should create an instact of RebatesApi' do
40
+ expect(@instance).to be_instance_of(QwilAPI::RebatesApi)
41
+ end
42
+ end
43
+
44
+ # unit tests for rebate_list
45
+ #
46
+ #
47
+ # @param [Hash] opts the optional parameters
48
+ # @return [Array<RebateSerializer>]
49
+ describe 'rebate_list test' do
50
+ it "should work" do
51
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
52
+ end
53
+ end
54
+
55
+ # unit tests for rebate_retrieve
56
+ #
57
+ #
58
+ # @param pk
59
+ # @param [Hash] opts the optional parameters
60
+ # @return [RebateSerializer]
61
+ describe 'rebate_retrieve test' do
62
+ it "should work" do
63
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
64
+ end
65
+ end
66
+
67
+ end