Skip to content

Commit

Permalink
Merge pull request #820 from NipunaRanasinghe/main
Browse files Browse the repository at this point in the history
Fix invoices and client API issues in ronin connector
  • Loading branch information
LakshanSS authored Nov 20, 2023
2 parents faac2bf + dd38f02 commit ce107fb
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 46 deletions.
2 changes: 1 addition & 1 deletion openapi/ronin/Ballerina.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ name = "ronin"
icon = "icon.png"
distribution = "2201.4.1"
repository = "https://github.com/ballerina-platform/openapi-connectors/tree/main/openapi/ronin"
version = "1.5.1"
version = "1.5.2"
authors = ["Ballerina"]
85 changes: 47 additions & 38 deletions openapi/ronin/openapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ paths:
description: "https://www.roninapp.com/api/clients"
parameters: []
requestBody:
description: The data required to create a client.
description: The data required to create a client.
content:
application/json:
schema:
schema:
$ref: '#/components/schemas/CreateClientRequest'
tags:
- "clients"
Expand All @@ -40,7 +40,7 @@ paths:
description: "Created client"
content:
application/json:
schema:
schema:
$ref: '#/components/schemas/ClientObject'
operationId: "create_client"
get:
Expand Down Expand Up @@ -72,7 +72,7 @@ paths:
description: "An object with a property clients which is an array of Client objects."
content:
application/json:
schema:
schema:
$ref: '#/components/schemas/Clients'
operationId: "list_clients"
/api/v2/clients/{id}.json:
Expand All @@ -93,25 +93,25 @@ paths:
description: "A client object"
content:
application/json:
schema:
schema:
$ref: '#/components/schemas/ClientObject'
operationId: "get_client"
/api/v2/clients/{client_id}/contacts.json:
post:
summary: "Creates a new contact. Contacts represent individuals belonging to Clients. In many cases, if a Contact is a Client, the Contact is where the email and other important information for the client whereas the Client is just a shell container."
description: "https://www.roninapp.com/api/contacts"
parameters:
parameters:
- in: "path"
name: "client_id"
description: "The client ID"
schema:
type: string
required: true
requestBody:
description: The data required to create a contact.
description: The data required to create a contact.
content:
application/json:
schema:
schema:
$ref: '#/components/schemas/CreateContactRequest'
tags:
- "contacts"
Expand All @@ -120,7 +120,7 @@ paths:
description: "Created contact"
content:
application/json:
schema:
schema:
$ref: '#/components/schemas/Contact'
operationId: "create_contact"
get:
Expand Down Expand Up @@ -152,7 +152,7 @@ paths:
description: "An object with a property contacts which is an array of Contact objects."
content:
application/json:
schema:
schema:
$ref: '#/components/schemas/Contacts'
operationId: "list_contacts_by_client"
/api/v2/contacts.json:
Expand All @@ -179,7 +179,7 @@ paths:
description: "An object with a property contacts which is an array of Contact objects."
content:
application/json:
schema:
schema:
$ref: '#/components/schemas/Contacts'
operationId: "list_contacts"
/api/v2/contacts/{id}.json:
Expand All @@ -200,7 +200,7 @@ paths:
description: "A contact object"
content:
application/json:
schema:
schema:
$ref: '#/components/schemas/Contact'
operationId: "get_contact"
/api/v2/estimates.json:
Expand All @@ -209,10 +209,10 @@ paths:
description: "https://www.roninapp.com/api/estimates"
parameters: []
requestBody:
description: The data required to create an estimate.
description: The data required to create an estimate.
content:
application/json:
schema:
schema:
$ref: '#/components/schemas/CreateEstimateRequest'
tags:
- "estimates"
Expand All @@ -221,7 +221,7 @@ paths:
description: "Created estimate"
content:
application/json:
schema:
schema:
$ref: '#/components/schemas/Estimate'
operationId: "create_estimate"
get:
Expand All @@ -241,7 +241,7 @@ paths:
description: "An object with a property estimates which is an array of Estimate objects."
content:
application/json:
schema:
schema:
$ref: '#/components/schemas/Estimates'
operationId: "list_estimates"
/api/v2/estimates/{id}.json:
Expand All @@ -262,7 +262,7 @@ paths:
description: "An estimate object"
content:
application/json:
schema:
schema:
$ref: '#/components/schemas/Estimate'
operationId: "get_estimate"
/api/v2/invoices.json:
Expand All @@ -271,10 +271,10 @@ paths:
description: "https://www.roninapp.com/api/invoices"
parameters: []
requestBody:
description: The data required to create an invoice.
description: The data required to create an invoice.
content:
application/json:
schema:
schema:
$ref: '#/components/schemas/CreateInvoiceRequest'
tags:
- "invoices"
Expand All @@ -283,7 +283,7 @@ paths:
description: "Created invoice"
content:
application/json:
schema:
schema:
$ref: '#/components/schemas/Invoice'
operationId: "create_invoice"
get:
Expand All @@ -309,7 +309,7 @@ paths:
description: "An object with a property invoices which is an array of Invoice objects."
content:
application/json:
schema:
schema:
$ref: '#/components/schemas/Invoices'
operationId: "list_invoices"
/api/v2/invoices/{id}.json:
Expand All @@ -330,7 +330,7 @@ paths:
description: "An invoice object"
content:
application/json:
schema:
schema:
$ref: '#/components/schemas/Invoice'
operationId: "get_invoice"
/api/v2/projects.json:
Expand All @@ -339,10 +339,10 @@ paths:
description: "https://www.roninapp.com/api/projects"
parameters: []
requestBody:
description: The data required to create a project.
description: The data required to create a project.
content:
application/json:
schema:
schema:
$ref: '#/components/schemas/CreateProjectRequest'
tags:
- "projects"
Expand All @@ -351,7 +351,7 @@ paths:
description: "Created project"
content:
application/json:
schema:
schema:
$ref: '#/components/schemas/Project'
operationId: "create_project"
get:
Expand All @@ -377,7 +377,7 @@ paths:
description: "An object with a property projects which is an array of Project objects."
content:
application/json:
schema:
schema:
$ref: '#/components/schemas/Projects'
operationId: "list_projects"
/api/v2/projects/{id}.json:
Expand All @@ -398,7 +398,7 @@ paths:
description: "An project object"
content:
application/json:
schema:
schema:
$ref: '#/components/schemas/Projects'
operationId: "get_project"
/api/v2/task.json:
Expand All @@ -407,10 +407,10 @@ paths:
description: "https://www.roninapp.com/api/tasks"
parameters: []
requestBody:
description: The data required to create a task.
description: The data required to create a task.
content:
application/json:
schema:
schema:
$ref: '#/components/schemas/CreateTaskRequest'
tags:
- "tasks"
Expand All @@ -419,7 +419,7 @@ paths:
description: "Created task"
content:
application/json:
schema:
schema:
$ref: '#/components/schemas/Task'
operationId: "create_task"
get:
Expand All @@ -433,7 +433,7 @@ paths:
description: "An object with a property tasks which is an array of Task objects."
content:
application/json:
schema:
schema:
$ref: '#/components/schemas/Tasks'
operationId: "list_tasks"
/api/v2/tasks/{id}.json:
Expand All @@ -454,24 +454,24 @@ paths:
description: "An task object"
content:
application/json:
schema:
schema:
$ref: '#/components/schemas/Task'
operationId: "get_task"
put:
summary: "Updates a new task. Tasks are TODO items that can be added to projects and assigned to staff members."
description: "https://www.roninapp.com/api/tasks"
parameters:
parameters:
- in: "path"
name: "id"
description: "The task ID"
schema:
type: string
required: true
requestBody:
description: The data required to update a task.
description: The data required to update a task.
content:
application/json:
schema:
schema:
$ref: '#/components/schemas/UpdateTaskRequest'
tags:
- "tasks"
Expand Down Expand Up @@ -530,6 +530,7 @@ components:
number:
type: string
description: The unique number for the client
nullable: true
name:
type: string
description: The name of the client
Expand All @@ -551,12 +552,15 @@ components:
website:
type: string
description: The website of the client
nullable: true
address_2:
type: string
description: The address2 of the client
nullable: true
description:
type: string
description: The description about the client
nullable: true
state:
type: string
description: The state of the client
Expand Down Expand Up @@ -1027,6 +1031,7 @@ components:
tax2_label:
type: string
description: Secondary tax label
nullable: true
summary:
type: string
description: Summary
Expand All @@ -1053,6 +1058,7 @@ components:
tax3_label:
type: string
description: Tertiary tax label
nullable: true
tax3:
type: number
description: Tertiary tax
Expand All @@ -1066,7 +1072,10 @@ components:
type: object
properties:
price:
type: string
oneOf:
- type: string
- type: number
format: float
description: Price
title:
type: string
Expand Down Expand Up @@ -1238,7 +1247,7 @@ components:
budget:
type: number
description: Budget
description: Projects represent hubs of work, tasks, logged hours, expenses, and invoices related to a Client. budget_type can be 0 (total budgeted hours) or 1 (total budgeted amount). project_type can be 0 (hourly rate project) or 2 (fixed amount project). Rate the total cost of the project in the latter case.
description: Projects represent hubs of work, tasks, logged hours, expenses, and invoices related to a Client. budget_type can be 0 (total budgeted hours) or 1 (total budgeted amount). project_type can be 0 (hourly rate project) or 2 (fixed amount project). Rate the total cost of the project in the latter case.
CreateTaskRequest:
type: object
properties:
Expand Down Expand Up @@ -1350,7 +1359,7 @@ components:
$ref: '#/components/schemas/Task'
description: An array of Task objects.
description: An object with a property tasks which is an array of Task objects.


securitySchemes:
basicAuth:
Expand Down
Loading

0 comments on commit ce107fb

Please sign in to comment.