Class: QwilAPI::PlatformsApi
- Inherits:
-
Object
- Object
- QwilAPI::PlatformsApi
- Defined in:
- lib/qwil_api/api/platforms_api.rb
Instance Attribute Summary collapse
-
#api_client ⇒ Object
Returns the value of attribute api_client.
Instance Method Summary collapse
-
#accept_income_request_get(platform_pk, pk, opts = {}) ⇒ Object
View to offer a View to offer a ./accept endpoint for accepting a IncomeRequest.
-
#accept_income_request_get_with_http_info(platform_pk, pk, opts = {}) ⇒ Array<(Object, Fixnum, Hash)>
View to offer a View to offer a ./accept endpoint for accepting a IncomeRequest.
-
#accept_income_request_post(platform_pk, pk, opts = {}) ⇒ Object
View to offer a View to offer a ./accept endpoint for accepting a IncomeRequest.
-
#accept_income_request_post_with_http_info(platform_pk, pk, opts = {}) ⇒ Array<(Object, Fixnum, Hash)>
View to offer a View to offer a ./accept endpoint for accepting a IncomeRequest.
-
#accept_platform_membership_request_get(platform_pk, pk, opts = {}) ⇒ Object
View to offer a View to offer a ./accept endpoint for accepting a PlatformMembershipRequest.
-
#accept_platform_membership_request_get_with_http_info(platform_pk, pk, opts = {}) ⇒ Array<(Object, Fixnum, Hash)>
View to offer a View to offer a ./accept endpoint for accepting a PlatformMembershipRequest.
-
#accept_platform_membership_request_post(platform_pk, pk, opts = {}) ⇒ Object
View to offer a View to offer a ./accept endpoint for accepting a PlatformMembershipRequest.
-
#accept_platform_membership_request_post_with_http_info(platform_pk, pk, opts = {}) ⇒ Array<(Object, Fixnum, Hash)>
View to offer a View to offer a ./accept endpoint for accepting a PlatformMembershipRequest.
-
#deny_income_request_get(platform_pk, pk, opts = {}) ⇒ Object
View to offer a View to offer a ./deny endpoint for denying a IncomeRequest.
-
#deny_income_request_get_with_http_info(platform_pk, pk, opts = {}) ⇒ Array<(Object, Fixnum, Hash)>
View to offer a View to offer a ./deny endpoint for denying a IncomeRequest.
-
#deny_income_request_post(platform_pk, pk, opts = {}) ⇒ Object
View to offer a View to offer a ./deny endpoint for denying a IncomeRequest.
-
#deny_income_request_post_with_http_info(platform_pk, pk, opts = {}) ⇒ Array<(Object, Fixnum, Hash)>
View to offer a View to offer a ./deny endpoint for denying a IncomeRequest.
-
#deny_platform_membership_request_get(platform_pk, pk, opts = {}) ⇒ Object
View to offer a View to offer a ./accept endpoint for accepting a PlatformMembershipRequest.
-
#deny_platform_membership_request_get_with_http_info(platform_pk, pk, opts = {}) ⇒ Array<(Object, Fixnum, Hash)>
View to offer a View to offer a ./accept endpoint for accepting a PlatformMembershipRequest.
-
#deny_platform_membership_request_post(platform_pk, pk, opts = {}) ⇒ Object
View to offer a View to offer a ./accept endpoint for accepting a PlatformMembershipRequest.
-
#deny_platform_membership_request_post_with_http_info(platform_pk, pk, opts = {}) ⇒ Array<(Object, Fixnum, Hash)>
View to offer a View to offer a ./accept endpoint for accepting a PlatformMembershipRequest.
-
#income_platform_create(platform_pk, user, amount, opts = {}) ⇒ IncomeSerializerFixedSource
The list of Income items for a specific User 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.
-
#income_platform_create_with_http_info(platform_pk, user, amount, opts = {}) ⇒ Array<(IncomeSerializerFixedSource, Fixnum, Hash)>
The list of Income items for a specific User 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.
-
#income_platform_list(platform_pk, opts = {}) ⇒ Array<IncomeSerializerFixedSource>
The list of Income items for a specific User 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.
-
#income_platform_list_with_http_info(platform_pk, opts = {}) ⇒ Array<(Array<IncomeSerializerFixedSource>, Fixnum, Hash)>
The list of Income items for a specific User 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.
-
#initialize(api_client = ApiClient.default) ⇒ PlatformsApi
constructor
A new instance of PlatformsApi.
-
#platform_contractor_create(platform_pk, email, opts = {}) ⇒ ContractorSerializer
The set of users on a specific Platform The set of users on a specific Platform.<br/>Any users created through this ViewSet will have a profile created with the Platform set to the resource specified in the URL, e.g.
-
#platform_contractor_create_with_http_info(platform_pk, email, opts = {}) ⇒ Array<(ContractorSerializer, Fixnum, Hash)>
The set of users on a specific Platform The set of users on a specific Platform.<br/>Any users created through this ViewSet will have a profile created with the Platform set to the resource specified in the URL, e.g.
-
#platform_contractor_list(platform_pk, opts = {}) ⇒ Array<ContractorSerializer>
The set of users on a specific Platform The set of users on a specific Platform.<br/>Any users created through this ViewSet will have a profile created with the Platform set to the resource specified in the URL, e.g.
-
#platform_contractor_list_with_http_info(platform_pk, opts = {}) ⇒ Array<(Array<ContractorSerializer>, Fixnum, Hash)>
The set of users on a specific Platform The set of users on a specific Platform.<br/>Any users created through this ViewSet will have a profile created with the Platform set to the resource specified in the URL, e.g.
-
#platform_contractor_partial_update(platform_pk, pk, opts = {}) ⇒ ContractorSerializer
The set of users on a specific Platform The set of users on a specific Platform.<br/>Any users created through this ViewSet will have a profile created with the Platform set to the resource specified in the URL, e.g.
-
#platform_contractor_partial_update_with_http_info(platform_pk, pk, opts = {}) ⇒ Array<(ContractorSerializer, Fixnum, Hash)>
The set of users on a specific Platform The set of users on a specific Platform.<br/>Any users created through this ViewSet will have a profile created with the Platform set to the resource specified in the URL, e.g.
-
#platform_contractor_retrieve(platform_pk, pk, opts = {}) ⇒ ContractorSerializer
The set of users on a specific Platform The set of users on a specific Platform.<br/>Any users created through this ViewSet will have a profile created with the Platform set to the resource specified in the URL, e.g.
-
#platform_contractor_retrieve_with_http_info(platform_pk, pk, opts = {}) ⇒ Array<(ContractorSerializer, Fixnum, Hash)>
The set of users on a specific Platform The set of users on a specific Platform.<br/>Any users created through this ViewSet will have a profile created with the Platform set to the resource specified in the URL, e.g.
-
#platform_contractor_update(platform_pk, pk, email, opts = {}) ⇒ ContractorSerializer
The set of users on a specific Platform The set of users on a specific Platform.<br/>Any users created through this ViewSet will have a profile created with the Platform set to the resource specified in the URL, e.g.
-
#platform_contractor_update_with_http_info(platform_pk, pk, email, opts = {}) ⇒ Array<(ContractorSerializer, Fixnum, Hash)>
The set of users on a specific Platform The set of users on a specific Platform.<br/>Any users created through this ViewSet will have a profile created with the Platform set to the resource specified in the URL, e.g.
-
#platform_csv_upload_income_file_post(platform_pk, opts = {}) ⇒ Object
Viewset for uploading CSV files containing Income config Viewset for uploading CSV files containing Income config.<br/>The POST must use Content-Type: multipart/form-data<br/>The field name for the form-data must be "income-data".<br/>The first line specifies the field names, and each subsequent line will specify an Income object.
-
#platform_csv_upload_income_file_post_with_http_info(platform_pk, opts = {}) ⇒ Array<(Object, Fixnum, Hash)>
Viewset for uploading CSV files containing Income config Viewset for uploading CSV files containing Income config.<br/>The POST must use Content-Type: multipart/form-data<br/>The field name for the form-data must be "income-data".<br/>The first line specifies the field names, and each subsequent line will specify an Income object.
-
#platform_csv_upload_user_file_post(platform_pk, opts = {}) ⇒ Object
Viewset for uploading CSV files containing User config Viewset for uploading CSV files containing User config.<br/>The POST must use Content-Type: multipart/form-data<br/>The field name for the form-data must be "user-data".<br/>The first line specifies the field names, and each subsequent line will specify a User object.<br/>Note that the fields in User.PersonalInformation can also be specified,<br/>e.g.
-
#platform_csv_upload_user_file_post_with_http_info(platform_pk, opts = {}) ⇒ Array<(Object, Fixnum, Hash)>
Viewset for uploading CSV files containing User config Viewset for uploading CSV files containing User config.<br/>The POST must use Content-Type: multipart/form-data<br/>The field name for the form-data must be "user-data".<br/>The first line specifies the field names, and each subsequent line will specify a User object.<br/>Note that the fields in User.PersonalInformation can also be specified,<br/>e.g.
- #platform_income_request_list(platform_pk, opts = {}) ⇒ Array<PlatformIncomeRequestSerializer>
-
#platform_income_request_list_with_http_info(platform_pk, opts = {}) ⇒ Array<(Array<PlatformIncomeRequestSerializer>, Fixnum, Hash)>
Array<PlatformIncomeRequestSerializer> data, response status code and response headers.
- #platform_income_request_retrieve(platform_pk, pk, opts = {}) ⇒ PlatformIncomeRequestSerializer
-
#platform_income_request_retrieve_with_http_info(platform_pk, pk, opts = {}) ⇒ Array<(PlatformIncomeRequestSerializer, Fixnum, Hash)>
PlatformIncomeRequestSerializer data, response status code and response headers.
- #platform_invoice_create_create(platform_pk, income, opts = {}) ⇒ InvoiceSerializerFixedSourceCreate
-
#platform_invoice_create_create_with_http_info(platform_pk, income, opts = {}) ⇒ Array<(InvoiceSerializerFixedSourceCreate, Fixnum, Hash)>
InvoiceSerializerFixedSourceCreate data, response status code and response headers.
- #platform_invoice_list(platform_pk, opts = {}) ⇒ Array<InvoiceSerializer>
-
#platform_invoice_list_with_http_info(platform_pk, opts = {}) ⇒ Array<(Array<InvoiceSerializer>, Fixnum, Hash)>
Array<InvoiceSerializer> data, response status code and response headers.
- #platform_membership_create(platform_pk, user, opts = {}) ⇒ MembershipSerializer
-
#platform_membership_create_with_http_info(platform_pk, user, opts = {}) ⇒ Array<(MembershipSerializer, Fixnum, Hash)>
MembershipSerializer data, response status code and response headers.
-
#platform_membership_list(platform_pk, opts = {}) ⇒ Array<MembershipSerializer>
Temporary special-case logic to map old Platform memberships onto the new API Temporary special-case logic to map old Platform memberships onto the new API.<br/>Generate a faux Membership for each User.profile.platform FKey ref.
-
#platform_membership_list_with_http_info(platform_pk, opts = {}) ⇒ Array<(Array<MembershipSerializer>, Fixnum, Hash)>
Temporary special-case logic to map old Platform memberships onto the new API Temporary special-case logic to map old Platform memberships onto the new API.<br/>Generate a faux Membership for each User.profile.platform FKey ref.
- #platform_membership_request_list(platform_pk, opts = {}) ⇒ Array<PlatformMembershipRequestSerializer>
-
#platform_membership_request_list_with_http_info(platform_pk, opts = {}) ⇒ Array<(Array<PlatformMembershipRequestSerializer>, Fixnum, Hash)>
Array<PlatformMembershipRequestSerializer> data, response status code and response headers.
- #platform_membership_request_retrieve(platform_pk, pk, opts = {}) ⇒ PlatformMembershipRequestSerializer
-
#platform_membership_request_retrieve_with_http_info(platform_pk, pk, opts = {}) ⇒ Array<(PlatformMembershipRequestSerializer, Fixnum, Hash)>
PlatformMembershipRequestSerializer data, response status code and response headers.
- #platform_retrieve(pk, opts = {}) ⇒ PlatformSerializer
-
#platform_retrieve_with_http_info(pk, opts = {}) ⇒ Array<(PlatformSerializer, Fixnum, Hash)>
PlatformSerializer data, response status code and response headers.
Constructor Details
#initialize(api_client = ApiClient.default) ⇒ PlatformsApi
Returns a new instance of PlatformsApi.
28 29 30 |
# File 'lib/qwil_api/api/platforms_api.rb', line 28 def initialize(api_client = ApiClient.default) @api_client = api_client end |
Instance Attribute Details
#api_client ⇒ Object
Returns the value of attribute api_client.
26 27 28 |
# File 'lib/qwil_api/api/platforms_api.rb', line 26 def api_client @api_client end |
Instance Method Details
#accept_income_request_get(platform_pk, pk, opts = {}) ⇒ Object
View to offer a View to offer a ./accept endpoint for accepting a IncomeRequest.
38 39 40 41 |
# File 'lib/qwil_api/api/platforms_api.rb', line 38 def accept_income_request_get(platform_pk, pk, opts = {}) data, _status_code, _headers = accept_income_request_get_with_http_info(platform_pk, pk, opts) return data end |
#accept_income_request_get_with_http_info(platform_pk, pk, opts = {}) ⇒ Array<(Object, Fixnum, Hash)>
View to offer a View to offer a ./accept endpoint for accepting a IncomeRequest.
49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 |
# File 'lib/qwil_api/api/platforms_api.rb', line 49 def accept_income_request_get_with_http_info(platform_pk, pk, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: PlatformsApi.accept_income_request_get ..." end # verify the required parameter 'platform_pk' is set fail ArgumentError, "Missing the required parameter 'platform_pk' when calling PlatformsApi.accept_income_request_get" if platform_pk.nil? # verify the required parameter 'pk' is set fail ArgumentError, "Missing the required parameter 'pk' when calling PlatformsApi.accept_income_request_get" if pk.nil? # resource path local_var_path = "/platforms/{platform_pk}/income_requests/{pk}/accept/".sub('{format}','json').sub('{' + 'platform_pk' + '}', platform_pk.to_s).sub('{' + 'pk' + '}', pk.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = [] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = [] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'Object') if @api_client.config.debugging @api_client.config.logger.debug "API called: PlatformsApi#accept_income_request_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#accept_income_request_post(platform_pk, pk, opts = {}) ⇒ Object
View to offer a View to offer a ./accept endpoint for accepting a IncomeRequest.
99 100 101 102 |
# File 'lib/qwil_api/api/platforms_api.rb', line 99 def accept_income_request_post(platform_pk, pk, opts = {}) data, _status_code, _headers = accept_income_request_post_with_http_info(platform_pk, pk, opts) return data end |
#accept_income_request_post_with_http_info(platform_pk, pk, opts = {}) ⇒ Array<(Object, Fixnum, Hash)>
View to offer a View to offer a ./accept endpoint for accepting a IncomeRequest.
110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 |
# File 'lib/qwil_api/api/platforms_api.rb', line 110 def accept_income_request_post_with_http_info(platform_pk, pk, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: PlatformsApi.accept_income_request_post ..." end # verify the required parameter 'platform_pk' is set fail ArgumentError, "Missing the required parameter 'platform_pk' when calling PlatformsApi.accept_income_request_post" if platform_pk.nil? # verify the required parameter 'pk' is set fail ArgumentError, "Missing the required parameter 'pk' when calling PlatformsApi.accept_income_request_post" if pk.nil? # resource path local_var_path = "/platforms/{platform_pk}/income_requests/{pk}/accept/".sub('{format}','json').sub('{' + 'platform_pk' + '}', platform_pk.to_s).sub('{' + 'pk' + '}', pk.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = [] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = [] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = [] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'Object') if @api_client.config.debugging @api_client.config.logger.debug "API called: PlatformsApi#accept_income_request_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#accept_platform_membership_request_get(platform_pk, pk, opts = {}) ⇒ Object
View to offer a View to offer a ./accept endpoint for accepting a PlatformMembershipRequest.
160 161 162 163 |
# File 'lib/qwil_api/api/platforms_api.rb', line 160 def accept_platform_membership_request_get(platform_pk, pk, opts = {}) data, _status_code, _headers = accept_platform_membership_request_get_with_http_info(platform_pk, pk, opts) return data end |
#accept_platform_membership_request_get_with_http_info(platform_pk, pk, opts = {}) ⇒ Array<(Object, Fixnum, Hash)>
View to offer a View to offer a ./accept endpoint for accepting a PlatformMembershipRequest.
171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 |
# File 'lib/qwil_api/api/platforms_api.rb', line 171 def accept_platform_membership_request_get_with_http_info(platform_pk, pk, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: PlatformsApi.accept_platform_membership_request_get ..." end # verify the required parameter 'platform_pk' is set fail ArgumentError, "Missing the required parameter 'platform_pk' when calling PlatformsApi.accept_platform_membership_request_get" if platform_pk.nil? # verify the required parameter 'pk' is set fail ArgumentError, "Missing the required parameter 'pk' when calling PlatformsApi.accept_platform_membership_request_get" if pk.nil? # resource path local_var_path = "/platforms/{platform_pk}/membership_requests/{pk}/accept/".sub('{format}','json').sub('{' + 'platform_pk' + '}', platform_pk.to_s).sub('{' + 'pk' + '}', pk.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = [] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = [] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'Object') if @api_client.config.debugging @api_client.config.logger.debug "API called: PlatformsApi#accept_platform_membership_request_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#accept_platform_membership_request_post(platform_pk, pk, opts = {}) ⇒ Object
View to offer a View to offer a ./accept endpoint for accepting a PlatformMembershipRequest.
221 222 223 224 |
# File 'lib/qwil_api/api/platforms_api.rb', line 221 def accept_platform_membership_request_post(platform_pk, pk, opts = {}) data, _status_code, _headers = accept_platform_membership_request_post_with_http_info(platform_pk, pk, opts) return data end |
#accept_platform_membership_request_post_with_http_info(platform_pk, pk, opts = {}) ⇒ Array<(Object, Fixnum, Hash)>
View to offer a View to offer a ./accept endpoint for accepting a PlatformMembershipRequest.
232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 |
# File 'lib/qwil_api/api/platforms_api.rb', line 232 def accept_platform_membership_request_post_with_http_info(platform_pk, pk, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: PlatformsApi.accept_platform_membership_request_post ..." end # verify the required parameter 'platform_pk' is set fail ArgumentError, "Missing the required parameter 'platform_pk' when calling PlatformsApi.accept_platform_membership_request_post" if platform_pk.nil? # verify the required parameter 'pk' is set fail ArgumentError, "Missing the required parameter 'pk' when calling PlatformsApi.accept_platform_membership_request_post" if pk.nil? # resource path local_var_path = "/platforms/{platform_pk}/membership_requests/{pk}/accept/".sub('{format}','json').sub('{' + 'platform_pk' + '}', platform_pk.to_s).sub('{' + 'pk' + '}', pk.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = [] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = [] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = [] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'Object') if @api_client.config.debugging @api_client.config.logger.debug "API called: PlatformsApi#accept_platform_membership_request_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#deny_income_request_get(platform_pk, pk, opts = {}) ⇒ Object
View to offer a View to offer a ./deny endpoint for denying a IncomeRequest.
282 283 284 285 |
# File 'lib/qwil_api/api/platforms_api.rb', line 282 def deny_income_request_get(platform_pk, pk, opts = {}) data, _status_code, _headers = deny_income_request_get_with_http_info(platform_pk, pk, opts) return data end |
#deny_income_request_get_with_http_info(platform_pk, pk, opts = {}) ⇒ Array<(Object, Fixnum, Hash)>
View to offer a View to offer a ./deny endpoint for denying a IncomeRequest.
293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 |
# File 'lib/qwil_api/api/platforms_api.rb', line 293 def deny_income_request_get_with_http_info(platform_pk, pk, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: PlatformsApi.deny_income_request_get ..." end # verify the required parameter 'platform_pk' is set fail ArgumentError, "Missing the required parameter 'platform_pk' when calling PlatformsApi.deny_income_request_get" if platform_pk.nil? # verify the required parameter 'pk' is set fail ArgumentError, "Missing the required parameter 'pk' when calling PlatformsApi.deny_income_request_get" if pk.nil? # resource path local_var_path = "/platforms/{platform_pk}/income_requests/{pk}/deny/".sub('{format}','json').sub('{' + 'platform_pk' + '}', platform_pk.to_s).sub('{' + 'pk' + '}', pk.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = [] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = [] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'Object') if @api_client.config.debugging @api_client.config.logger.debug "API called: PlatformsApi#deny_income_request_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#deny_income_request_post(platform_pk, pk, opts = {}) ⇒ Object
View to offer a View to offer a ./deny endpoint for denying a IncomeRequest.
343 344 345 346 |
# File 'lib/qwil_api/api/platforms_api.rb', line 343 def deny_income_request_post(platform_pk, pk, opts = {}) data, _status_code, _headers = deny_income_request_post_with_http_info(platform_pk, pk, opts) return data end |
#deny_income_request_post_with_http_info(platform_pk, pk, opts = {}) ⇒ Array<(Object, Fixnum, Hash)>
View to offer a View to offer a ./deny endpoint for denying a IncomeRequest.
354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 |
# File 'lib/qwil_api/api/platforms_api.rb', line 354 def deny_income_request_post_with_http_info(platform_pk, pk, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: PlatformsApi.deny_income_request_post ..." end # verify the required parameter 'platform_pk' is set fail ArgumentError, "Missing the required parameter 'platform_pk' when calling PlatformsApi.deny_income_request_post" if platform_pk.nil? # verify the required parameter 'pk' is set fail ArgumentError, "Missing the required parameter 'pk' when calling PlatformsApi.deny_income_request_post" if pk.nil? # resource path local_var_path = "/platforms/{platform_pk}/income_requests/{pk}/deny/".sub('{format}','json').sub('{' + 'platform_pk' + '}', platform_pk.to_s).sub('{' + 'pk' + '}', pk.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = [] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = [] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = [] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'Object') if @api_client.config.debugging @api_client.config.logger.debug "API called: PlatformsApi#deny_income_request_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#deny_platform_membership_request_get(platform_pk, pk, opts = {}) ⇒ Object
View to offer a View to offer a ./accept endpoint for accepting a PlatformMembershipRequest.
404 405 406 407 |
# File 'lib/qwil_api/api/platforms_api.rb', line 404 def deny_platform_membership_request_get(platform_pk, pk, opts = {}) data, _status_code, _headers = deny_platform_membership_request_get_with_http_info(platform_pk, pk, opts) return data end |
#deny_platform_membership_request_get_with_http_info(platform_pk, pk, opts = {}) ⇒ Array<(Object, Fixnum, Hash)>
View to offer a View to offer a ./accept endpoint for accepting a PlatformMembershipRequest.
415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 |
# File 'lib/qwil_api/api/platforms_api.rb', line 415 def deny_platform_membership_request_get_with_http_info(platform_pk, pk, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: PlatformsApi.deny_platform_membership_request_get ..." end # verify the required parameter 'platform_pk' is set fail ArgumentError, "Missing the required parameter 'platform_pk' when calling PlatformsApi.deny_platform_membership_request_get" if platform_pk.nil? # verify the required parameter 'pk' is set fail ArgumentError, "Missing the required parameter 'pk' when calling PlatformsApi.deny_platform_membership_request_get" if pk.nil? # resource path local_var_path = "/platforms/{platform_pk}/membership_requests/{pk}/deny/".sub('{format}','json').sub('{' + 'platform_pk' + '}', platform_pk.to_s).sub('{' + 'pk' + '}', pk.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = [] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = [] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'Object') if @api_client.config.debugging @api_client.config.logger.debug "API called: PlatformsApi#deny_platform_membership_request_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#deny_platform_membership_request_post(platform_pk, pk, opts = {}) ⇒ Object
View to offer a View to offer a ./accept endpoint for accepting a PlatformMembershipRequest.
465 466 467 468 |
# File 'lib/qwil_api/api/platforms_api.rb', line 465 def deny_platform_membership_request_post(platform_pk, pk, opts = {}) data, _status_code, _headers = deny_platform_membership_request_post_with_http_info(platform_pk, pk, opts) return data end |
#deny_platform_membership_request_post_with_http_info(platform_pk, pk, opts = {}) ⇒ Array<(Object, Fixnum, Hash)>
View to offer a View to offer a ./accept endpoint for accepting a PlatformMembershipRequest.
476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 |
# File 'lib/qwil_api/api/platforms_api.rb', line 476 def deny_platform_membership_request_post_with_http_info(platform_pk, pk, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: PlatformsApi.deny_platform_membership_request_post ..." end # verify the required parameter 'platform_pk' is set fail ArgumentError, "Missing the required parameter 'platform_pk' when calling PlatformsApi.deny_platform_membership_request_post" if platform_pk.nil? # verify the required parameter 'pk' is set fail ArgumentError, "Missing the required parameter 'pk' when calling PlatformsApi.deny_platform_membership_request_post" if pk.nil? # resource path local_var_path = "/platforms/{platform_pk}/membership_requests/{pk}/deny/".sub('{format}','json').sub('{' + 'platform_pk' + '}', platform_pk.to_s).sub('{' + 'pk' + '}', pk.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = [] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = [] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = [] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'Object') if @api_client.config.debugging @api_client.config.logger.debug "API called: PlatformsApi#deny_platform_membership_request_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#income_platform_create(platform_pk, user, amount, opts = {}) ⇒ IncomeSerializerFixedSource
The list of Income items for a specific User 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.
530 531 532 533 |
# File 'lib/qwil_api/api/platforms_api.rb', line 530 def income_platform_create(platform_pk, user, amount, opts = {}) data, _status_code, _headers = income_platform_create_with_http_info(platform_pk, user, amount, opts) return data end |
#income_platform_create_with_http_info(platform_pk, user, amount, opts = {}) ⇒ Array<(IncomeSerializerFixedSource, Fixnum, Hash)>
The list of Income items for a specific User 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.
545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 |
# File 'lib/qwil_api/api/platforms_api.rb', line 545 def income_platform_create_with_http_info(platform_pk, user, amount, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: PlatformsApi.income_platform_create ..." end # verify the required parameter 'platform_pk' is set fail ArgumentError, "Missing the required parameter 'platform_pk' when calling PlatformsApi.income_platform_create" if platform_pk.nil? # verify the required parameter 'user' is set fail ArgumentError, "Missing the required parameter 'user' when calling PlatformsApi.income_platform_create" if user.nil? # verify the required parameter 'amount' is set fail ArgumentError, "Missing the required parameter 'amount' when calling PlatformsApi.income_platform_create" if amount.nil? # resource path local_var_path = "/platforms/{platform_pk}/income/".sub('{format}','json').sub('{' + 'platform_pk' + '}', platform_pk.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = [] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = [] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} form_params["user"] = user form_params["amount"] = amount form_params["external_id"] = opts[:'external_id'] if !opts[:'external_id'].nil? form_params["payment_time"] = opts[:'payment_time'] if !opts[:'payment_time'].nil? form_params["notes"] = opts[:'notes'] if !opts[:'notes'].nil? # http body (model) post_body = nil auth_names = [] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'IncomeSerializerFixedSource') if @api_client.config.debugging @api_client.config.logger.debug "API called: PlatformsApi#income_platform_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#income_platform_list(platform_pk, opts = {}) ⇒ Array<IncomeSerializerFixedSource>
The list of Income items for a specific User 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.
601 602 603 604 |
# File 'lib/qwil_api/api/platforms_api.rb', line 601 def income_platform_list(platform_pk, opts = {}) data, _status_code, _headers = income_platform_list_with_http_info(platform_pk, opts) return data end |
#income_platform_list_with_http_info(platform_pk, opts = {}) ⇒ Array<(Array<IncomeSerializerFixedSource>, Fixnum, Hash)>
The list of Income items for a specific User 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.
611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 |
# File 'lib/qwil_api/api/platforms_api.rb', line 611 def income_platform_list_with_http_info(platform_pk, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: PlatformsApi.income_platform_list ..." end # verify the required parameter 'platform_pk' is set fail ArgumentError, "Missing the required parameter 'platform_pk' when calling PlatformsApi.income_platform_list" if platform_pk.nil? # resource path local_var_path = "/platforms/{platform_pk}/income/".sub('{format}','json').sub('{' + 'platform_pk' + '}', platform_pk.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = [] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = [] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'Array<IncomeSerializerFixedSource>') if @api_client.config.debugging @api_client.config.logger.debug "API called: PlatformsApi#income_platform_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#platform_contractor_create(platform_pk, email, opts = {}) ⇒ ContractorSerializer
The set of users on a specific Platform The set of users on a specific Platform.<br/>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 = ‘/platforms/3/’.
665 666 667 668 |
# File 'lib/qwil_api/api/platforms_api.rb', line 665 def platform_contractor_create(platform_pk, email, opts = {}) data, _status_code, _headers = platform_contractor_create_with_http_info(platform_pk, email, opts) return data end |
#platform_contractor_create_with_http_info(platform_pk, email, opts = {}) ⇒ Array<(ContractorSerializer, Fixnum, Hash)>
The set of users on a specific Platform The set of users on a specific Platform.<br/>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 = '/platforms/3/'.
682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 |
# File 'lib/qwil_api/api/platforms_api.rb', line 682 def platform_contractor_create_with_http_info(platform_pk, email, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: PlatformsApi.platform_contractor_create ..." end # verify the required parameter 'platform_pk' is set fail ArgumentError, "Missing the required parameter 'platform_pk' when calling PlatformsApi.platform_contractor_create" if platform_pk.nil? # verify the required parameter 'email' is set fail ArgumentError, "Missing the required parameter 'email' when calling PlatformsApi.platform_contractor_create" if email.nil? if opts[:'contractor_type'] && !['INDIVIDUAL', 'BUSINESS'].include?(opts[:'contractor_type']) fail ArgumentError, 'invalid value for "contractor_type", must be one of INDIVIDUAL, BUSINESS' end # resource path local_var_path = "/platforms/{platform_pk}/contractors/".sub('{format}','json').sub('{' + 'platform_pk' + '}', platform_pk.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = [] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = [] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} form_params["email"] = email form_params["first_name"] = opts[:'first_name'] if !opts[:'first_name'].nil? form_params["last_name"] = opts[:'last_name'] if !opts[:'last_name'].nil? form_params["business_name"] = opts[:'business_name'] if !opts[:'business_name'].nil? form_params["contractor_type"] = opts[:'contractor_type'] if !opts[:'contractor_type'].nil? form_params["personal_information"] = opts[:'personal_information'] if !opts[:'personal_information'].nil? form_params["default_account"] = opts[:'default_account'] if !opts[:'default_account'].nil? # http body (model) post_body = nil auth_names = [] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'ContractorSerializer') if @api_client.config.debugging @api_client.config.logger.debug "API called: PlatformsApi#platform_contractor_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#platform_contractor_list(platform_pk, opts = {}) ⇒ Array<ContractorSerializer>
The set of users on a specific Platform The set of users on a specific Platform.<br/>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 = ‘/platforms/3/’.
741 742 743 744 |
# File 'lib/qwil_api/api/platforms_api.rb', line 741 def platform_contractor_list(platform_pk, opts = {}) data, _status_code, _headers = platform_contractor_list_with_http_info(platform_pk, opts) return data end |
#platform_contractor_list_with_http_info(platform_pk, opts = {}) ⇒ Array<(Array<ContractorSerializer>, Fixnum, Hash)>
The set of users on a specific Platform The set of users on a specific Platform.<br/>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 = '/platforms/3/'.
751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 |
# File 'lib/qwil_api/api/platforms_api.rb', line 751 def platform_contractor_list_with_http_info(platform_pk, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: PlatformsApi.platform_contractor_list ..." end # verify the required parameter 'platform_pk' is set fail ArgumentError, "Missing the required parameter 'platform_pk' when calling PlatformsApi.platform_contractor_list" if platform_pk.nil? # resource path local_var_path = "/platforms/{platform_pk}/contractors/".sub('{format}','json').sub('{' + 'platform_pk' + '}', platform_pk.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = [] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = [] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'Array<ContractorSerializer>') if @api_client.config.debugging @api_client.config.logger.debug "API called: PlatformsApi#platform_contractor_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#platform_contractor_partial_update(platform_pk, pk, opts = {}) ⇒ ContractorSerializer
The set of users on a specific Platform The set of users on a specific Platform.<br/>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 = ‘/platforms/3/’.
806 807 808 809 |
# File 'lib/qwil_api/api/platforms_api.rb', line 806 def platform_contractor_partial_update(platform_pk, pk, opts = {}) data, _status_code, _headers = platform_contractor_partial_update_with_http_info(platform_pk, pk, opts) return data end |
#platform_contractor_partial_update_with_http_info(platform_pk, pk, opts = {}) ⇒ Array<(ContractorSerializer, Fixnum, Hash)>
The set of users on a specific Platform The set of users on a specific Platform.<br/>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 = '/platforms/3/'.
824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 |
# File 'lib/qwil_api/api/platforms_api.rb', line 824 def platform_contractor_partial_update_with_http_info(platform_pk, pk, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: PlatformsApi.platform_contractor_partial_update ..." end # verify the required parameter 'platform_pk' is set fail ArgumentError, "Missing the required parameter 'platform_pk' when calling PlatformsApi.platform_contractor_partial_update" if platform_pk.nil? # verify the required parameter 'pk' is set fail ArgumentError, "Missing the required parameter 'pk' when calling PlatformsApi.platform_contractor_partial_update" if pk.nil? if opts[:'contractor_type'] && !['INDIVIDUAL', 'BUSINESS'].include?(opts[:'contractor_type']) fail ArgumentError, 'invalid value for "contractor_type", must be one of INDIVIDUAL, BUSINESS' end # resource path local_var_path = "/platforms/{platform_pk}/contractors/{pk}/".sub('{format}','json').sub('{' + 'platform_pk' + '}', platform_pk.to_s).sub('{' + 'pk' + '}', pk.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = [] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = [] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} form_params["email"] = opts[:'email'] if !opts[:'email'].nil? form_params["first_name"] = opts[:'first_name'] if !opts[:'first_name'].nil? form_params["last_name"] = opts[:'last_name'] if !opts[:'last_name'].nil? form_params["business_name"] = opts[:'business_name'] if !opts[:'business_name'].nil? form_params["contractor_type"] = opts[:'contractor_type'] if !opts[:'contractor_type'].nil? form_params["personal_information"] = opts[:'personal_information'] if !opts[:'personal_information'].nil? form_params["default_account"] = opts[:'default_account'] if !opts[:'default_account'].nil? # http body (model) post_body = nil auth_names = [] data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'ContractorSerializer') if @api_client.config.debugging @api_client.config.logger.debug "API called: PlatformsApi#platform_contractor_partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#platform_contractor_retrieve(platform_pk, pk, opts = {}) ⇒ ContractorSerializer
The set of users on a specific Platform The set of users on a specific Platform.<br/>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 = ‘/platforms/3/’.
884 885 886 887 |
# File 'lib/qwil_api/api/platforms_api.rb', line 884 def platform_contractor_retrieve(platform_pk, pk, opts = {}) data, _status_code, _headers = platform_contractor_retrieve_with_http_info(platform_pk, pk, opts) return data end |
#platform_contractor_retrieve_with_http_info(platform_pk, pk, opts = {}) ⇒ Array<(ContractorSerializer, Fixnum, Hash)>
The set of users on a specific Platform The set of users on a specific Platform.<br/>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 = '/platforms/3/'.
895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 |
# File 'lib/qwil_api/api/platforms_api.rb', line 895 def platform_contractor_retrieve_with_http_info(platform_pk, pk, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: PlatformsApi.platform_contractor_retrieve ..." end # verify the required parameter 'platform_pk' is set fail ArgumentError, "Missing the required parameter 'platform_pk' when calling PlatformsApi.platform_contractor_retrieve" if platform_pk.nil? # verify the required parameter 'pk' is set fail ArgumentError, "Missing the required parameter 'pk' when calling PlatformsApi.platform_contractor_retrieve" if pk.nil? # resource path local_var_path = "/platforms/{platform_pk}/contractors/{pk}/".sub('{format}','json').sub('{' + 'platform_pk' + '}', platform_pk.to_s).sub('{' + 'pk' + '}', pk.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = [] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = [] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'ContractorSerializer') if @api_client.config.debugging @api_client.config.logger.debug "API called: PlatformsApi#platform_contractor_retrieve\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#platform_contractor_update(platform_pk, pk, email, opts = {}) ⇒ ContractorSerializer
The set of users on a specific Platform The set of users on a specific Platform.<br/>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 = ‘/platforms/3/’.
952 953 954 955 |
# File 'lib/qwil_api/api/platforms_api.rb', line 952 def platform_contractor_update(platform_pk, pk, email, opts = {}) data, _status_code, _headers = platform_contractor_update_with_http_info(platform_pk, pk, email, opts) return data end |
#platform_contractor_update_with_http_info(platform_pk, pk, email, opts = {}) ⇒ Array<(ContractorSerializer, Fixnum, Hash)>
The set of users on a specific Platform The set of users on a specific Platform.<br/>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 = '/platforms/3/'.
970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 |
# File 'lib/qwil_api/api/platforms_api.rb', line 970 def platform_contractor_update_with_http_info(platform_pk, pk, email, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: PlatformsApi.platform_contractor_update ..." end # verify the required parameter 'platform_pk' is set fail ArgumentError, "Missing the required parameter 'platform_pk' when calling PlatformsApi.platform_contractor_update" if platform_pk.nil? # verify the required parameter 'pk' is set fail ArgumentError, "Missing the required parameter 'pk' when calling PlatformsApi.platform_contractor_update" if pk.nil? # verify the required parameter 'email' is set fail ArgumentError, "Missing the required parameter 'email' when calling PlatformsApi.platform_contractor_update" if email.nil? if opts[:'contractor_type'] && !['INDIVIDUAL', 'BUSINESS'].include?(opts[:'contractor_type']) fail ArgumentError, 'invalid value for "contractor_type", must be one of INDIVIDUAL, BUSINESS' end # resource path local_var_path = "/platforms/{platform_pk}/contractors/{pk}/".sub('{format}','json').sub('{' + 'platform_pk' + '}', platform_pk.to_s).sub('{' + 'pk' + '}', pk.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = [] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = [] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} form_params["email"] = email form_params["first_name"] = opts[:'first_name'] if !opts[:'first_name'].nil? form_params["last_name"] = opts[:'last_name'] if !opts[:'last_name'].nil? form_params["business_name"] = opts[:'business_name'] if !opts[:'business_name'].nil? form_params["contractor_type"] = opts[:'contractor_type'] if !opts[:'contractor_type'].nil? form_params["personal_information"] = opts[:'personal_information'] if !opts[:'personal_information'].nil? form_params["default_account"] = opts[:'default_account'] if !opts[:'default_account'].nil? # http body (model) post_body = nil auth_names = [] data, status_code, headers = @api_client.call_api(:PUT, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'ContractorSerializer') if @api_client.config.debugging @api_client.config.logger.debug "API called: PlatformsApi#platform_contractor_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#platform_csv_upload_income_file_post(platform_pk, opts = {}) ⇒ Object
Viewset for uploading CSV files containing Income config Viewset for uploading CSV files containing Income config.<br/>The POST must use Content-Type: multipart/form-data<br/>The field name for the form-data must be "income-data".<br/>The first line specifies the field names, and each subsequent line will specify an Income object.
1031 1032 1033 1034 |
# File 'lib/qwil_api/api/platforms_api.rb', line 1031 def platform_csv_upload_income_file_post(platform_pk, opts = {}) data, _status_code, _headers = platform_csv_upload_income_file_post_with_http_info(platform_pk, opts) return data end |
#platform_csv_upload_income_file_post_with_http_info(platform_pk, opts = {}) ⇒ Array<(Object, Fixnum, Hash)>
Viewset for uploading CSV files containing Income config Viewset for uploading CSV files containing Income config.<br/>The POST must use Content-Type: multipart/form-data<br/>The field name for the form-data must be "income-data".<br/>The first line specifies the field names, and each subsequent line will specify an Income object.
1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 |
# File 'lib/qwil_api/api/platforms_api.rb', line 1041 def platform_csv_upload_income_file_post_with_http_info(platform_pk, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: PlatformsApi.platform_csv_upload_income_file_post ..." end # verify the required parameter 'platform_pk' is set fail ArgumentError, "Missing the required parameter 'platform_pk' when calling PlatformsApi.platform_csv_upload_income_file_post" if platform_pk.nil? # resource path local_var_path = "/platforms/{platform_pk}/csv-upload/income".sub('{format}','json').sub('{' + 'platform_pk' + '}', platform_pk.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = [] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = [] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = [] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'Object') if @api_client.config.debugging @api_client.config.logger.debug "API called: PlatformsApi#platform_csv_upload_income_file_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#platform_csv_upload_user_file_post(platform_pk, opts = {}) ⇒ Object
Viewset for uploading CSV files containing User config Viewset for uploading CSV files containing User config.<br/>The POST must use Content-Type: multipart/form-data<br/>The field name for the form-data must be "user-data".<br/>The first line specifies the field names, and each subsequent line will specify a User object.<br/>Note that the fields in User.PersonalInformation can also be specified,<br/>e.g. first_name,last_name,email,tax_id_number
1088 1089 1090 1091 |
# File 'lib/qwil_api/api/platforms_api.rb', line 1088 def platform_csv_upload_user_file_post(platform_pk, opts = {}) data, _status_code, _headers = platform_csv_upload_user_file_post_with_http_info(platform_pk, opts) return data end |
#platform_csv_upload_user_file_post_with_http_info(platform_pk, opts = {}) ⇒ Array<(Object, Fixnum, Hash)>
Viewset for uploading CSV files containing User config Viewset for uploading CSV files containing User config.<br/>The POST must use Content-Type: multipart/form-data<br/>The field name for the form-data must be "user-data".<br/>The first line specifies the field names, and each subsequent line will specify a User object.<br/>Note that the fields in User.PersonalInformation can also be specified,<br/>e.g. first_name,last_name,email,tax_id_number
1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 |
# File 'lib/qwil_api/api/platforms_api.rb', line 1098 def platform_csv_upload_user_file_post_with_http_info(platform_pk, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: PlatformsApi.platform_csv_upload_user_file_post ..." end # verify the required parameter 'platform_pk' is set fail ArgumentError, "Missing the required parameter 'platform_pk' when calling PlatformsApi.platform_csv_upload_user_file_post" if platform_pk.nil? # resource path local_var_path = "/platforms/{platform_pk}/csv-upload/user".sub('{format}','json').sub('{' + 'platform_pk' + '}', platform_pk.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = [] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = [] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = [] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'Object') if @api_client.config.debugging @api_client.config.logger.debug "API called: PlatformsApi#platform_csv_upload_user_file_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#platform_income_request_list(platform_pk, opts = {}) ⇒ Array<PlatformIncomeRequestSerializer>
1145 1146 1147 1148 |
# File 'lib/qwil_api/api/platforms_api.rb', line 1145 def platform_income_request_list(platform_pk, opts = {}) data, _status_code, _headers = platform_income_request_list_with_http_info(platform_pk, opts) return data end |
#platform_income_request_list_with_http_info(platform_pk, opts = {}) ⇒ Array<(Array<PlatformIncomeRequestSerializer>, Fixnum, Hash)>
Returns Array<PlatformIncomeRequestSerializer> data, response status code and response headers.
1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 |
# File 'lib/qwil_api/api/platforms_api.rb', line 1155 def platform_income_request_list_with_http_info(platform_pk, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: PlatformsApi.platform_income_request_list ..." end # verify the required parameter 'platform_pk' is set fail ArgumentError, "Missing the required parameter 'platform_pk' when calling PlatformsApi.platform_income_request_list" if platform_pk.nil? # resource path local_var_path = "/platforms/{platform_pk}/income_requests/".sub('{format}','json').sub('{' + 'platform_pk' + '}', platform_pk.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = [] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = [] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'Array<PlatformIncomeRequestSerializer>') if @api_client.config.debugging @api_client.config.logger.debug "API called: PlatformsApi#platform_income_request_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#platform_income_request_retrieve(platform_pk, pk, opts = {}) ⇒ PlatformIncomeRequestSerializer
1203 1204 1205 1206 |
# File 'lib/qwil_api/api/platforms_api.rb', line 1203 def platform_income_request_retrieve(platform_pk, pk, opts = {}) data, _status_code, _headers = platform_income_request_retrieve_with_http_info(platform_pk, pk, opts) return data end |
#platform_income_request_retrieve_with_http_info(platform_pk, pk, opts = {}) ⇒ Array<(PlatformIncomeRequestSerializer, Fixnum, Hash)>
Returns PlatformIncomeRequestSerializer data, response status code and response headers.
1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 |
# File 'lib/qwil_api/api/platforms_api.rb', line 1214 def platform_income_request_retrieve_with_http_info(platform_pk, pk, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: PlatformsApi.platform_income_request_retrieve ..." end # verify the required parameter 'platform_pk' is set fail ArgumentError, "Missing the required parameter 'platform_pk' when calling PlatformsApi.platform_income_request_retrieve" if platform_pk.nil? # verify the required parameter 'pk' is set fail ArgumentError, "Missing the required parameter 'pk' when calling PlatformsApi.platform_income_request_retrieve" if pk.nil? # resource path local_var_path = "/platforms/{platform_pk}/income_requests/{pk}/".sub('{format}','json').sub('{' + 'platform_pk' + '}', platform_pk.to_s).sub('{' + 'pk' + '}', pk.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = [] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = [] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'PlatformIncomeRequestSerializer') if @api_client.config.debugging @api_client.config.logger.debug "API called: PlatformsApi#platform_income_request_retrieve\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#platform_invoice_create_create(platform_pk, income, opts = {}) ⇒ InvoiceSerializerFixedSourceCreate
1265 1266 1267 1268 |
# File 'lib/qwil_api/api/platforms_api.rb', line 1265 def platform_invoice_create_create(platform_pk, income, opts = {}) data, _status_code, _headers = platform_invoice_create_create_with_http_info(platform_pk, income, opts) return data end |
#platform_invoice_create_create_with_http_info(platform_pk, income, opts = {}) ⇒ Array<(InvoiceSerializerFixedSourceCreate, Fixnum, Hash)>
Returns InvoiceSerializerFixedSourceCreate data, response status code and response headers.
1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 |
# File 'lib/qwil_api/api/platforms_api.rb', line 1277 def platform_invoice_create_create_with_http_info(platform_pk, income, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: PlatformsApi.platform_invoice_create_create ..." end # verify the required parameter 'platform_pk' is set fail ArgumentError, "Missing the required parameter 'platform_pk' when calling PlatformsApi.platform_invoice_create_create" if platform_pk.nil? # verify the required parameter 'income' is set fail ArgumentError, "Missing the required parameter 'income' when calling PlatformsApi.platform_invoice_create_create" if income.nil? # resource path local_var_path = "/platforms/{platform_pk}/create_invoice/".sub('{format}','json').sub('{' + 'platform_pk' + '}', platform_pk.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = [] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = [] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} form_params["income"] = income form_params["external_id"] = opts[:'external_id'] if !opts[:'external_id'].nil? # http body (model) post_body = nil auth_names = [] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'InvoiceSerializerFixedSourceCreate') if @api_client.config.debugging @api_client.config.logger.debug "API called: PlatformsApi#platform_invoice_create_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#platform_invoice_list(platform_pk, opts = {}) ⇒ Array<InvoiceSerializer>
1328 1329 1330 1331 |
# File 'lib/qwil_api/api/platforms_api.rb', line 1328 def platform_invoice_list(platform_pk, opts = {}) data, _status_code, _headers = platform_invoice_list_with_http_info(platform_pk, opts) return data end |
#platform_invoice_list_with_http_info(platform_pk, opts = {}) ⇒ Array<(Array<InvoiceSerializer>, Fixnum, Hash)>
Returns Array<InvoiceSerializer> data, response status code and response headers.
1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 |
# File 'lib/qwil_api/api/platforms_api.rb', line 1338 def platform_invoice_list_with_http_info(platform_pk, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: PlatformsApi.platform_invoice_list ..." end # verify the required parameter 'platform_pk' is set fail ArgumentError, "Missing the required parameter 'platform_pk' when calling PlatformsApi.platform_invoice_list" if platform_pk.nil? # resource path local_var_path = "/platforms/{platform_pk}/invoices/".sub('{format}','json').sub('{' + 'platform_pk' + '}', platform_pk.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = [] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = [] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'Array<InvoiceSerializer>') if @api_client.config.debugging @api_client.config.logger.debug "API called: PlatformsApi#platform_invoice_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#platform_membership_create(platform_pk, user, opts = {}) ⇒ MembershipSerializer
1386 1387 1388 1389 |
# File 'lib/qwil_api/api/platforms_api.rb', line 1386 def platform_membership_create(platform_pk, user, opts = {}) data, _status_code, _headers = platform_membership_create_with_http_info(platform_pk, user, opts) return data end |
#platform_membership_create_with_http_info(platform_pk, user, opts = {}) ⇒ Array<(MembershipSerializer, Fixnum, Hash)>
Returns MembershipSerializer data, response status code and response headers.
1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 |
# File 'lib/qwil_api/api/platforms_api.rb', line 1397 def platform_membership_create_with_http_info(platform_pk, user, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: PlatformsApi.platform_membership_create ..." end # verify the required parameter 'platform_pk' is set fail ArgumentError, "Missing the required parameter 'platform_pk' when calling PlatformsApi.platform_membership_create" if platform_pk.nil? # verify the required parameter 'user' is set fail ArgumentError, "Missing the required parameter 'user' when calling PlatformsApi.platform_membership_create" if user.nil? # resource path local_var_path = "/platforms/{platform_pk}/memberships/".sub('{format}','json').sub('{' + 'platform_pk' + '}', platform_pk.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = [] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = [] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} form_params["user"] = user # http body (model) post_body = nil auth_names = [] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'MembershipSerializer') if @api_client.config.debugging @api_client.config.logger.debug "API called: PlatformsApi#platform_membership_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#platform_membership_list(platform_pk, opts = {}) ⇒ Array<MembershipSerializer>
Temporary special-case logic to map old Platform memberships onto the new API Temporary special-case logic to map old Platform memberships onto the new API.<br/>Generate a faux Membership for each User.profile.platform FKey ref.
1447 1448 1449 1450 |
# File 'lib/qwil_api/api/platforms_api.rb', line 1447 def platform_membership_list(platform_pk, opts = {}) data, _status_code, _headers = platform_membership_list_with_http_info(platform_pk, opts) return data end |
#platform_membership_list_with_http_info(platform_pk, opts = {}) ⇒ Array<(Array<MembershipSerializer>, Fixnum, Hash)>
Temporary special-case logic to map old Platform memberships onto the new API Temporary special-case logic to map old Platform memberships onto the new API.<br/>Generate a faux Membership for each User.profile.platform FKey ref.
1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 |
# File 'lib/qwil_api/api/platforms_api.rb', line 1457 def platform_membership_list_with_http_info(platform_pk, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: PlatformsApi.platform_membership_list ..." end # verify the required parameter 'platform_pk' is set fail ArgumentError, "Missing the required parameter 'platform_pk' when calling PlatformsApi.platform_membership_list" if platform_pk.nil? # resource path local_var_path = "/platforms/{platform_pk}/memberships/".sub('{format}','json').sub('{' + 'platform_pk' + '}', platform_pk.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = [] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = [] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'Array<MembershipSerializer>') if @api_client.config.debugging @api_client.config.logger.debug "API called: PlatformsApi#platform_membership_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#platform_membership_request_list(platform_pk, opts = {}) ⇒ Array<PlatformMembershipRequestSerializer>
1504 1505 1506 1507 |
# File 'lib/qwil_api/api/platforms_api.rb', line 1504 def platform_membership_request_list(platform_pk, opts = {}) data, _status_code, _headers = platform_membership_request_list_with_http_info(platform_pk, opts) return data end |
#platform_membership_request_list_with_http_info(platform_pk, opts = {}) ⇒ Array<(Array<PlatformMembershipRequestSerializer>, Fixnum, Hash)>
Returns Array<PlatformMembershipRequestSerializer> data, response status code and response headers.
1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 |
# File 'lib/qwil_api/api/platforms_api.rb', line 1514 def platform_membership_request_list_with_http_info(platform_pk, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: PlatformsApi.platform_membership_request_list ..." end # verify the required parameter 'platform_pk' is set fail ArgumentError, "Missing the required parameter 'platform_pk' when calling PlatformsApi.platform_membership_request_list" if platform_pk.nil? # resource path local_var_path = "/platforms/{platform_pk}/membership_requests/".sub('{format}','json').sub('{' + 'platform_pk' + '}', platform_pk.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = [] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = [] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'Array<PlatformMembershipRequestSerializer>') if @api_client.config.debugging @api_client.config.logger.debug "API called: PlatformsApi#platform_membership_request_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#platform_membership_request_retrieve(platform_pk, pk, opts = {}) ⇒ PlatformMembershipRequestSerializer
1562 1563 1564 1565 |
# File 'lib/qwil_api/api/platforms_api.rb', line 1562 def platform_membership_request_retrieve(platform_pk, pk, opts = {}) data, _status_code, _headers = platform_membership_request_retrieve_with_http_info(platform_pk, pk, opts) return data end |
#platform_membership_request_retrieve_with_http_info(platform_pk, pk, opts = {}) ⇒ Array<(PlatformMembershipRequestSerializer, Fixnum, Hash)>
Returns PlatformMembershipRequestSerializer data, response status code and response headers.
1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 |
# File 'lib/qwil_api/api/platforms_api.rb', line 1573 def platform_membership_request_retrieve_with_http_info(platform_pk, pk, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: PlatformsApi.platform_membership_request_retrieve ..." end # verify the required parameter 'platform_pk' is set fail ArgumentError, "Missing the required parameter 'platform_pk' when calling PlatformsApi.platform_membership_request_retrieve" if platform_pk.nil? # verify the required parameter 'pk' is set fail ArgumentError, "Missing the required parameter 'pk' when calling PlatformsApi.platform_membership_request_retrieve" if pk.nil? # resource path local_var_path = "/platforms/{platform_pk}/membership_requests/{pk}/".sub('{format}','json').sub('{' + 'platform_pk' + '}', platform_pk.to_s).sub('{' + 'pk' + '}', pk.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = [] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = [] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'PlatformMembershipRequestSerializer') if @api_client.config.debugging @api_client.config.logger.debug "API called: PlatformsApi#platform_membership_request_retrieve\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#platform_retrieve(pk, opts = {}) ⇒ PlatformSerializer
1622 1623 1624 1625 |
# File 'lib/qwil_api/api/platforms_api.rb', line 1622 def platform_retrieve(pk, opts = {}) data, _status_code, _headers = platform_retrieve_with_http_info(pk, opts) return data end |
#platform_retrieve_with_http_info(pk, opts = {}) ⇒ Array<(PlatformSerializer, Fixnum, Hash)>
Returns PlatformSerializer data, response status code and response headers.
1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 |
# File 'lib/qwil_api/api/platforms_api.rb', line 1632 def platform_retrieve_with_http_info(pk, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: PlatformsApi.platform_retrieve ..." end # verify the required parameter 'pk' is set fail ArgumentError, "Missing the required parameter 'pk' when calling PlatformsApi.platform_retrieve" if pk.nil? # resource path local_var_path = "/platforms/{pk}/".sub('{format}','json').sub('{' + 'pk' + '}', pk.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = [] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = [] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'PlatformSerializer') if @api_client.config.debugging @api_client.config.logger.debug "API called: PlatformsApi#platform_retrieve\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |