Method: Propertyware::AccountingApi#get_owner_draws_with_http_info
- Defined in:
- lib/propertyware/api/accounting_api.rb
#get_owner_draws_with_http_info(opts = {}) ⇒ Array<(Array<OwnerDraw>, Integer, Hash)>
Retrieve all the owner draws (BETA) <p class="betaWarning"><b>Note: </b>This operation is still in beta and might be subject to breaking changes. Production integrations should be avoided at this stage.</p> Retrieves a list of owner draws.<br/><br/><b>Required permission:</b><br/><span class="permissionBlock">PORTFOLIOS</span> - <code>Read</code> <br/><br/><b>Sortable by:</b> <code>postdate</code>, <code>createddate</code>, <code>lastmodifieddatetime</code>, <code>portfolioid</code>, <code>id</code>
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 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 |
# File 'lib/propertyware/api/accounting_api.rb', line 841 def get_owner_draws_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AccountingApi.get_owner_draws ...' end # resource path local_var_path = '/accounting/ownerdraws' # query parameters query_params = opts[:query_params] || {} query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'lastModifiedDateTimeStart'] = opts[:'last_modified_date_time_start'] if !opts[:'last_modified_date_time_start'].nil? query_params[:'lastModifiedDateTimeEnd'] = opts[:'last_modified_date_time_end'] if !opts[:'last_modified_date_time_end'].nil? query_params[:'orderby'] = opts[:'orderby'] if !opts[:'orderby'].nil? query_params[:'postDateStart'] = opts[:'post_date_start'] if !opts[:'post_date_start'].nil? query_params[:'postDateEnd'] = opts[:'post_date_end'] if !opts[:'post_date_end'].nil? query_params[:'portfolioID'] = opts[:'portfolio_id'] if !opts[:'portfolio_id'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'Array<OwnerDraw>' # auth_names auth_names = opts[:debug_auth_names] || ['organizationId', 'clientId', 'clientSecret'] = opts.merge( :operation => :"AccountingApi.get_owner_draws", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: AccountingApi#get_owner_draws\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |