Skip to content

Commit

Permalink
feat: revert 554 POST /<admin/approver>/expenses/bulk
Browse files Browse the repository at this point in the history
  • Loading branch information
prabs222 committed Dec 6, 2024
1 parent 29be530 commit 82813c9
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 272 deletions.
72 changes: 0 additions & 72 deletions reference/admin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4353,25 +4353,6 @@ components:
- ROUND_TRIP
- NO_DEDUCTION
- null
expenses_in:
type: array
additionalProperties: false
items:
type: object
required:
- id
properties:
id:
allOf:
- $ref: '#/components/schemas/id_string'
description: |
This id is provided by Fyle to identify an object
admin_amount:
type: number
nullable: false
description: |
The expense amount which is added or modified by admin or approver.
example: 1900
attach_files_to_expense_in:
type: object
required:
Expand Down Expand Up @@ -17365,59 +17346,6 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/404'
/admin/expenses/bulk:
post:
tags:
- Expenses
summary: Update expenses in bulk
description: |
Update expenses in bulk.
operationId: expenses_post_bulk
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
data:
$ref: '#/components/schemas/expenses_in'
responses:
'200':
description: OK
content:
application/json:
schema:
type: object
properties:
data:
type: array
items:
$ref: '#/components/schemas/expense_out'
'400':
description: Bad request
content:
application/json:
schema:
$ref: '#/components/schemas/400'
'401':
description: Unauthorized request
content:
application/json:
schema:
$ref: '#/components/schemas/401'
'403':
description: Forbidden
content:
application/json:
schema:
$ref: '#/components/schemas/403'
'404':
description: Not Found
content:
application/json:
schema:
$ref: '#/components/schemas/404'
/admin/expenses/attach_files/bulk:
post:
tags:
Expand Down
72 changes: 0 additions & 72 deletions reference/approver.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2580,25 +2580,6 @@ components:
- ROUND_TRIP
- NO_DEDUCTION
- null
expenses_in:
type: array
additionalProperties: false
items:
type: object
required:
- id
properties:
id:
allOf:
- $ref: '#/components/schemas/id_string'
description: |
This id is provided by Fyle to identify an object
admin_amount:
type: number
nullable: false
description: |
The expense amount which is added or modified by admin or approver.
example: 1900
attach_files_to_expense_in:
type: object
required:
Expand Down Expand Up @@ -4727,59 +4708,6 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/404'
/approver/expenses/bulk:
post:
tags:
- Expenses
summary: Update expenses in bulk
description: |
Update expenses in bulk.
operationId: expenses_post_bulk
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
data:
$ref: '#/components/schemas/expenses_in'
responses:
'200':
description: OK
content:
application/json:
schema:
type: object
properties:
data:
type: array
items:
$ref: '#/components/schemas/expense_out'
'400':
description: Bad request
content:
application/json:
schema:
$ref: '#/components/schemas/400'
'401':
description: Unauthorized request
content:
application/json:
schema:
$ref: '#/components/schemas/401'
'403':
description: Forbidden
content:
application/json:
schema:
$ref: '#/components/schemas/403'
'404':
description: Not Found
content:
application/json:
schema:
$ref: '#/components/schemas/404'
/approver/expenses/attach_files/bulk:
post:
tags:
Expand Down
2 changes: 0 additions & 2 deletions src/admin/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,6 @@ paths:
$ref: paths/admin@[email protected]
/admin/expenses:
$ref: paths/[email protected]
/admin/expenses/bulk:
$ref: paths/admin@[email protected]
/admin/expenses/attach_files/bulk :
$ref: paths/admin@expenses@[email protected]
/admin/expenses/accounting_export_summary/bulk:
Expand Down
52 changes: 0 additions & 52 deletions src/admin/paths/admin@[email protected]

This file was deleted.

2 changes: 0 additions & 2 deletions src/approver/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,6 @@ paths:
$ref: paths/approver@[email protected]
/approver/expenses:
$ref: 'paths/[email protected]'
/approver/expenses/bulk:
$ref: 'paths/approver@[email protected]'
/approver/expenses/attach_files/bulk :
$ref: paths/approver@expenses@[email protected]
/approver/reports/eject_expenses:
Expand Down
52 changes: 0 additions & 52 deletions src/approver/paths/approver@[email protected]

This file was deleted.

20 changes: 0 additions & 20 deletions src/components/schemas/expense.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -897,26 +897,6 @@ spender_expense_in:
- NO_DEDUCTION
- null

expenses_in:
type: array
additionalProperties: false
items:
type: object
required:
- id
properties:
id:
allOf:
- $ref: './fields.yaml#/id_string'
description: |
This id is provided by Fyle to identify an object
admin_amount:
type: number
nullable: false
description: |
The expense amount which is added or modified by admin or approver.
example: 1900

admin_expense_in:
type: object
additionalProperties: false
Expand Down

0 comments on commit 82813c9

Please sign in to comment.