1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-15 23:52:33 +01:00
invoiceninja/openapi/components/schemas.yaml

314 lines
8.7 KiB
YAML
Raw Normal View History

2023-02-12 08:58:00 +01:00
schemas:
2023-03-19 00:39:21 +01:00
CreditPaymentable:
2023-02-12 08:58:00 +01:00
properties:
2023-03-19 00:39:21 +01:00
credit_id:
description: 'The credit hashed id'
2023-02-12 08:58:00 +01:00
type: string
example: Opnel5aKBz
2023-03-19 00:39:21 +01:00
amount:
description: 'The credit amount'
2023-02-12 08:58:00 +01:00
type: string
example: '2'
type: object
2023-03-19 00:39:21 +01:00
GenericReportSchema:
2023-02-12 08:58:00 +01:00
properties:
2023-03-19 00:39:21 +01:00
date_range:
description: 'The string representation of the date range of data to be returned'
2023-02-12 08:58:00 +01:00
type: string
2023-03-19 00:39:21 +01:00
example: last7
date_key:
description: 'The date column to search between.'
2023-02-12 08:58:00 +01:00
type: string
2023-03-19 00:39:21 +01:00
example: created_at
start_date:
description: 'The start date to search between'
2023-02-12 08:58:00 +01:00
type: string
2023-03-19 00:39:21 +01:00
example: '2000-10-31'
end_date:
description: 'The end date to search between'
2023-02-12 08:58:00 +01:00
type: string
example: '2'
2023-03-19 00:39:21 +01:00
report_keys:
2023-02-12 08:58:00 +01:00
type: array
items:
2023-03-19 00:39:21 +01:00
description: 'Array of Keys to export'
type: string
example: '[''name'',''date'']'
2023-02-12 08:58:00 +01:00
type: object
2023-03-19 00:39:21 +01:00
GroupSetting:
2023-02-12 08:58:00 +01:00
properties:
id:
2023-03-19 00:39:21 +01:00
description: 'The group setting hashed id'
2023-02-12 08:58:00 +01:00
type: string
2023-03-19 00:39:21 +01:00
example: Opnel5aKBz
user_id:
description: 'The user hashed id'
2023-02-12 08:58:00 +01:00
type: string
2023-03-19 00:39:21 +01:00
example: Opnel5aKBz
company_id:
description: 'The company hashed id'
2023-02-12 08:58:00 +01:00
type: string
2023-03-19 00:39:21 +01:00
example: Opnel5aKBz
name:
description: 'The name of the group'
2023-02-12 08:58:00 +01:00
type: string
2023-03-19 00:39:21 +01:00
example: 'A groupies group'
2023-02-12 08:58:00 +01:00
settings:
2023-03-19 00:39:21 +01:00
description: 'The settings object'
type: object
example: ''
2023-02-12 08:58:00 +01:00
type: object
2023-03-19 00:39:21 +01:00
InvoicePaymentable:
2023-02-12 08:58:00 +01:00
properties:
2023-03-19 00:39:21 +01:00
invoice_id:
description: ______
2023-02-12 08:58:00 +01:00
type: string
2023-03-19 00:39:21 +01:00
example: Opnel5aKBz
amount:
description: ______
2023-02-12 08:58:00 +01:00
type: string
2023-03-19 00:39:21 +01:00
example: '2'
type: object
2023-03-19 01:15:52 +01:00
2023-02-12 08:58:00 +01:00
TaskSchedulerSchema:
properties:
paused:
description: 'The scheduler paused state'
type: boolean
example: 'false'
repeat_every:
description: 'Accepted values (DAY,WEEK,MONTH,3MONTHS,YEAR)'
type: string
example: DAY
start_from:
description: 'Timestamp when we should start the scheduler, default is today'
type: integer
example: '1652898504'
job:
description: 'Job, we can find list of available jobs in Scheduler model'
type: string
example: create_credit_report
date_range:
description: 'The string representation of the date range of data to be returned'
type: string
example: last7
date_key:
description: 'The date column to search between.'
type: string
example: created_at
start_date:
description: 'The start date to search between'
type: string
example: '2022-10-31'
end_date:
description: 'The end date to search between'
type: string
example: '2022-10-31'
report_keys:
type: array
items:
description: 'Array of Keys to export'
type: string
example: '[''name'',''date'']'
type: object
UpdateTaskSchedulerSchema:
properties:
paused:
description: 'The scheduler paused state'
type: boolean
example: 'false'
repeat_every:
description: 'Accepted values (DAY,WEEK,MONTH,3MONTHS,YEAR)'
type: string
example: DAY
start_from:
description: 'Timestamp when we should start the scheduler, default is today'
type: integer
example: '1652898504'
job:
description: 'Job, we can find list of available jobs in Scheduler model'
type: string
example: create_credit_report
date_range:
description: 'The string representation of the date range of data to be returned'
type: string
example: last7
date_key:
description: 'The date column to search between.'
type: string
example: created_at
start_date:
description: 'The start date to search between'
type: string
example: '2022-10-31'
end_date:
description: 'The end date to search between'
type: string
example: '2022-10-31'
type: object
UpdateJobForASchedulerSchema:
properties:
job:
description: 'Set action name, action names can be found in Scheduler Model'
type: string
example: create_client_report
type: object
2023-03-19 00:39:21 +01:00
2023-02-12 08:58:00 +01:00
TaskStatus:
properties:
2023-10-02 01:17:15 +02:00
id:
description: 'The task status hashed id'
type: string
example: Opnel5aKBz
readOnly: true
2023-02-12 08:58:00 +01:00
name:
description: 'The task status name'
type: string
example: Backlog
2023-10-02 01:17:15 +02:00
color:
description: 'The task status color - hex value'
type: string
example: '#000000'
task_status_order:
description: 'The order of the task status'
type: integer
example: '4'
2023-02-12 08:58:00 +01:00
created_at:
description: Timestamp
type: number
format: integer
example: '134341234234'
2023-10-02 01:17:15 +02:00
readOnly: true
2023-02-12 08:58:00 +01:00
is_deleted:
description: 'A boolean flag determining if the task status has been deleted'
type: boolean
example: true
2023-10-02 01:17:15 +02:00
readOnly: true
2023-02-12 08:58:00 +01:00
updated_at:
description: Timestamp
type: number
format: integer
example: '134341234234'
2023-10-02 01:17:15 +02:00
readOnly: true
2023-02-12 08:58:00 +01:00
archived_at:
description: Timestamp
type: number
format: integer
example: '134341234234'
2023-10-02 01:17:15 +02:00
readOnly: true
2023-02-12 08:58:00 +01:00
type: object
TaxRate:
properties:
id:
description: 'Thie hashed id of the tax'
type: string
example: Opnel5aKBz
2023-10-02 01:17:15 +02:00
readOnly: true
2023-02-12 08:58:00 +01:00
name:
description: 'The tax name'
type: string
example: GST
rate:
description: 'The tax rate'
type: number
example: '10'
is_deleted:
description: 'Boolean flag determining if the tax has been deleted'
type: boolean
example: true
type: object
Template:
properties:
html:
description: 'The template HTML'
type: string
example: '<HTML></HTML>'
type: object
2023-03-19 00:39:21 +01:00
2023-02-12 08:58:00 +01:00
AuthenticationError:
type: object
properties:
message:
description: 'These credentials do not match our records / Invalid Token'
type: string
example: 'These credentials do not match our records / Invalid Token'
ValidationError:
properties:
message:
description: 'The error message'
type: string
example: 'The given data was invalid.'
errors:
properties:
value:
type: array
items:
type: string
type: object
type: object
AuthorizationError:
properties:
message:
description: 'Insufficient permissions for this resource.'
type: string
example: 'Insufficient permissions for this resource.'
errors:
properties:
value:
type: array
items:
type: string
type: object
type: object
RateLimiterError:
properties:
message:
description: 'Rate limit exceeded.'
type: string
example: 'Rate limit exceeded.'
errors:
properties:
value:
type: array
items:
type: string
type: object
type: object
InvalidInputError:
properties:
message:
description: 'Invalid input'
type: string
example: 'Invalid input'
errors:
properties:
value:
type: array
items:
type: string
type: object
type: object
2023-02-12 08:58:00 +01:00
Webhook:
properties:
id:
description: 'The subscription hashed id'
type: string
example: AS3df3A
event_id:
description: 'The subscription event id'
type: string
example: AS3df3A
target_url:
description: 'The api endpoint'
type: string
example: AS3df3A
format:
description: 'JSON or UBL'
type: string
example: JSON
type: object