Skip to content

Commit

Permalink
Merge pull request #18 from jolicode/feature/spec-update
Browse files Browse the repository at this point in the history
Feature/spec update
  • Loading branch information
xavierlacot authored Aug 3, 2021
2 parents fbeae95 + 380ffb0 commit e3a20b3
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 27 deletions.
58 changes: 43 additions & 15 deletions generated/harvest-openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ components:
nullable: true
statement_key:
type: string
description: 'Used to build a URL to your client’s invoice dashboard:https://{ACCOUNT_SUBDOMAIN}.harvestapp.com/client/invoices/{statement_key}'
description: 'Used to build a URL to your client’s invoice dashboard:https://{ACCOUNT_SUBDOMAIN}.harvestapp.com/client/statements/{STATEMENT_KEY}'
nullable: true
currency:
type: string
Expand Down Expand Up @@ -157,6 +157,10 @@ components:
type: string
description: 'The format used to display time in Harvest. Returns either decimal or hours_minutes.'
nullable: true
date_format:
type: string
description: 'The format used to display date in Harvest. Returns one of: %m/%d/%Y, %d/%m/%Y, %Y-%m-%d, %d.%m.%Y,.%Y.%m.%d or %Y/%m/%d.'
nullable: true
plan_type:
type: string
description: 'The type of plan the company is on. Examples: trial, free, or simple-v4'
Expand Down Expand Up @@ -413,7 +417,7 @@ components:
nullable: true
client_key:
type: string
description: 'Used to build a URL to the public web invoice for your client:https://{ACCOUNT_SUBDOMAIN}.harvestapp.com/client/invoices/abc123456'
description: 'Used to build a URL to the public web invoice for your client:https://{ACCOUNT_SUBDOMAIN}.harvestapp.com/client/invoices/{CLIENT_KEY}'
nullable: true
number:
type: string
Expand Down Expand Up @@ -1005,6 +1009,16 @@ components:
type: string
description: 'Textual notes used to describe the expense.'
nullable: true
units:
type: integer
description: 'The quantity of units used to calculate the total_cost of the expense.'
nullable: true
format: int32
total_cost:
type: number
description: 'The total amount of the expense.'
nullable: true
format: float
billable:
type: boolean
description: 'Whether the expense is billable or not.'
Expand Down Expand Up @@ -1040,16 +1054,6 @@ components:
description: 'Date and time the expense was last updated.'
nullable: true
format: date-time
total_cost:
type: number
description: 'The total amount of the expense.'
format: float
nullable: true
units:
type: integer
description: 'The quantity of units to use in calculating the total_cost of the expense.'
format: int32
nullable: true
ExpenseCategory:
type: object
externalDocs:
Expand Down Expand Up @@ -1202,7 +1206,7 @@ components:
$ref: '#/components/schemas/TaskAssignment'
external_reference:
type: object
description: 'An object containing the id, group_id, permalink, service, and service_icon_url of the associated external reference.'
description: 'An object containing the id, group_id, account_id, permalink, service, and service_icon_url of the associated external reference.'
nullable: true
properties:
id:
Expand All @@ -1211,6 +1215,9 @@ components:
group_id:
type: string
nullable: true
account_id:
type: string
nullable: true
permalink:
type: string
nullable: true
Expand All @@ -1236,6 +1243,11 @@ components:
description: 'Number of (decimal time) hours tracked in this time entry.'
nullable: true
format: float
hours_without_timer:
type: number
description: 'Number of (decimal time) hours already tracked in this time entry, before the timer was last started.'
nullable: true
format: float
rounded_hours:
type: number
description: 'Number of (decimal time) hours tracked in this time entry used in summary reports and invoices. This value is rounded according to the Time Rounding setting in your Preferences.'
Expand Down Expand Up @@ -3536,6 +3548,7 @@ paths:
week_start_day: Monday
wants_timestamp_timers: true
time_format: hours_minutes
date_format: '%Y-%m-%d'
plan_type: sponsored
expense_feature: true
invoice_feature: true
Expand Down Expand Up @@ -3578,6 +3591,7 @@ paths:
week_start_day: Monday
wants_timestamp_timers: false
time_format: hours_minutes
date_format: '%Y-%m-%d'
plan_type: sponsored
expense_feature: true
invoice_feature: true
Expand Down Expand Up @@ -10112,6 +10126,7 @@ paths:
hourly_rate: 100.0
budget: null
hours: 2.11
hours_without_timer: 2.11
rounded_hours: 2.25
notes: 'Adding CSS styling'
created_at: '2017-06-27T15:50:15Z'
Expand Down Expand Up @@ -10162,6 +10177,7 @@ paths:
hourly_rate: 100.0
budget: null
hours: 1.35
hours_without_timer: 1.35
rounded_hours: 1.5
notes: 'Importing products'
created_at: '2017-06-27T15:49:28Z'
Expand Down Expand Up @@ -10214,6 +10230,7 @@ paths:
hourly_rate: 100.0
budget: null
hours: 1.0
hours_without_timer: 1.0
rounded_hours: 1.0
notes: 'Evaluating 3rd party libraries'
created_at: '2017-06-27T15:49:17Z'
Expand Down Expand Up @@ -10264,6 +10281,7 @@ paths:
hourly_rate: 100.0
budget: null
hours: 2.0
hours_without_timer: 2.0
rounded_hours: 2.0
notes: 'Planning meetings'
created_at: '2017-06-27T15:48:24Z'
Expand Down Expand Up @@ -10502,7 +10520,7 @@ paths:
nullable: true
external_reference:
type: object
description: 'An object containing the id, group_id, and permalink of the external reference.'
description: 'An object containing the id, group_id, account_id, and permalink of the external reference.'
nullable: true
properties:
id:
Expand All @@ -10511,6 +10529,9 @@ paths:
group_id:
type: string
nullable: true
account_id:
type: string
nullable: true
permalink:
type: string
nullable: true
Expand Down Expand Up @@ -10601,6 +10622,7 @@ paths:
hourly_rate: 100.0
budget: null
hours: 1.0
hours_without_timer: 1.0
rounded_hours: 1.0
notes: 'Importing products'
created_at: '2017-06-27T15:49:28Z'
Expand Down Expand Up @@ -10684,6 +10706,7 @@ paths:
hourly_rate: 100.0
budget: null
hours: 1.0
hours_without_timer: 1.0
rounded_hours: 1.0
notes: 'Updated notes'
created_at: '2017-06-27T16:01:23Z'
Expand Down Expand Up @@ -10757,7 +10780,7 @@ paths:
nullable: true
external_reference:
type: object
description: 'An object containing the id, group_id, and permalink of the external reference.'
description: 'An object containing the id, group_id, account_id, and permalink of the external reference.'
nullable: true
properties:
id:
Expand All @@ -10766,6 +10789,9 @@ paths:
group_id:
type: string
nullable: true
account_id:
type: string
nullable: true
permalink:
type: string
nullable: true
Expand Down Expand Up @@ -10848,6 +10874,7 @@ paths:
hourly_rate: 100
budget: null
hours: 0
hours_without_timer: 0
rounded_hours: 0
notes: null
created_at: '2017-08-22T17:40:24Z'
Expand Down Expand Up @@ -10930,6 +10957,7 @@ paths:
hourly_rate: 100
budget: null
hours: 0.02
hours_without_timer: 0.02
rounded_hours: 0.25
notes: null
created_at: '2017-08-22T17:37:13Z'
Expand Down
12 changes: 0 additions & 12 deletions src/Dumper/Dumper.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,18 +75,6 @@ public function dump(array $data): array
],
'Expense' => [
'properties' => [
'total_cost' => [
'type' => 'number',
'description' => 'The total amount of the expense.',
'format' => 'float',
'nullable' => true,
],
'units' => [
'type' => 'integer',
'description' => 'The quantity of units to use in calculating the total_cost of the expense.',
'format' => 'int32',
'nullable' => true,
],
'receipt' => [
'properties' => [
'file_size' => [
Expand Down

0 comments on commit e3a20b3

Please sign in to comment.