Skip to content

Commit

Permalink
regenerates from OAS 2.29.3
Browse files Browse the repository at this point in the history
  • Loading branch information
RettBehrens committed Sep 14, 2022
1 parent 2029004 commit 60931fb
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 12 deletions.
7 changes: 4 additions & 3 deletions docs/projects/ProjectApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ Name | Type | Description | Notes

## create_task

> create_task(xero_tenant_id, project_id, task_create_or_update)
> Task create_task(xero_tenant_id, project_id, task_create_or_update)
Allows you to create a task

Expand Down Expand Up @@ -125,7 +125,8 @@ project_id = 'project_id_example' # String | You can create a task on a specifie
task_create_or_update = { "status": "INPROGRESS" } # TaskCreateOrUpdate | The task object you are creating
begin
#Allows you to create a task
api_instance.create_task(xero_tenant_id, project_id, task_create_or_update)
result = api_instance.create_task(xero_tenant_id, project_id, task_create_or_update)
p result
rescue XeroRuby::Projects::ApiError => e
puts "Exception when calling ProjectApi->create_task: #{e}"
end
Expand All @@ -142,7 +143,7 @@ Name | Type | Description | Notes

### Return type

nil (empty response body)
[**Task**](Task.md)

### Authorization

Expand Down
10 changes: 5 additions & 5 deletions lib/xero-ruby/api/project_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,10 @@ def create_project_with_http_info(xero_tenant_id, project_create_or_update, opti
# @param project_id [String] You can create a task on a specified projectId
# @param task_create_or_update [TaskCreateOrUpdate] The task object you are creating
# @param [Hash] opts the optional parameters
# @return [nil]
# @return [Task]
def create_task(xero_tenant_id, project_id, task_create_or_update, opts = {})
create_task_with_http_info(xero_tenant_id, project_id, task_create_or_update, opts)
nil
data, _status_code, _headers = create_task_with_http_info(xero_tenant_id, project_id, task_create_or_update, opts)
data
end

# Allows you to create a task
Expand All @@ -111,7 +111,7 @@ def create_task(xero_tenant_id, project_id, task_create_or_update, opts = {})
# @param project_id [String] You can create a task on a specified projectId
# @param task_create_or_update [TaskCreateOrUpdate] The task object you are creating
# @param [Hash] opts the optional parameters
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
# @return [Array<(Task, Integer, Hash)>] Task data, response status code and response headers
def create_task_with_http_info(xero_tenant_id, project_id, task_create_or_update, options = {})
opts = options.dup
if @api_client.config.debugging
Expand Down Expand Up @@ -157,7 +157,7 @@ def create_task_with_http_info(xero_tenant_id, project_id, task_create_or_update
post_body = opts[:body] || @api_client.object_to_http_body(task_create_or_update)

# return_type
return_type = opts[:return_type]
return_type = opts[:return_type] || 'Task'

# auth_names
auth_names = opts[:auth_names] || ['OAuth2']
Expand Down
7 changes: 4 additions & 3 deletions lib/xero-ruby/api_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def payroll_nz_api
@config.base_url = @config.payroll_nz_url
XeroRuby::PayrollNzApi.new(self)
end

def payroll_uk_api
@config.base_url = @config.payroll_uk_url
XeroRuby::PayrollUkApi.new(self)
Expand Down Expand Up @@ -142,7 +142,7 @@ def set_token_set(token_set)

set_access_token(token_set[:access_token]) if token_set[:access_token]
set_id_token(token_set[:id_token]) if token_set[:id_token]

return true
end

Expand Down Expand Up @@ -196,6 +196,7 @@ def validate_state(params)

def decode_jwt(tkn, verify=true)
if verify == true

response = Faraday.get('https://identity.xero.com/.well-known/openid-configuration/jwks') do |req|
req.headers['User-Agent'] = @user_agent
end
Expand Down Expand Up @@ -465,7 +466,7 @@ def deserialize(response, return_type, api_client)
else
raise e
end
end
end

convert_to_type(data, return_type, api_client)
end
Expand Down
2 changes: 1 addition & 1 deletion lib/xero-ruby/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 4.3.1
The version of the XeroOpenAPI document: 2.29.1
The version of the XeroOpenAPI document: 2.29.3
=end

module XeroRuby
Expand Down

0 comments on commit 60931fb

Please sign in to comment.