Skip to content
This repository has been archived by the owner on Sep 16, 2024. It is now read-only.

Commit

Permalink
feat: Add markedAs and billStatus to `#/components/schemas/Invoic…
Browse files Browse the repository at this point in the history
…e` (#108)

- Add `markedAS` and `billStatus` in Invoice
- Add `MarkedAsFilter` and `BillStatusFilter` in list Invoice
  • Loading branch information
ammbot authored Sep 13, 2024
1 parent 0861f13 commit cec90b5
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## Unreleased

- Add `markedAs` and `billStatus` to '#/components/schemas/Invoice'
- Add `InvoiceMarkedAsFilter` and `InvoiceBillStatusFilter` to `listInvoices`

## v0.22.0

- Add `acceptedAt` to `#/components/schemas/Payment`.
Expand Down
46 changes: 46 additions & 0 deletions vic.api.v0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -572,6 +572,8 @@ paths:
- $ref: '#/components/parameters/SinceFilter'
- $ref: '#/components/parameters/SortOrder'
- $ref: '#/components/parameters/InvoiceStateFilter'
- $ref: '#/components/parameters/InvoiceMarkedAsFilter'
- $ref: '#/components/parameters/InvoiceBillStatusFilter'
responses:
'200':
$ref: '#/components/responses/InvoicesResponse'
Expand Down Expand Up @@ -2009,6 +2011,28 @@ components:
anyOf:
- $ref: '#/components/schemas/InvoiceState'
- enum: [ALL, POSTED]
InvoiceMarkedAsFilter:
name: markedAs
in: query
description: |
selects the marked as of invoices which are to be searched
(defaults to `ALL`)
required: false
schema:
anyOf:
- $ref: '#/components/schemas/InvoiceMarkedAs'
- enum: [ALL]
InvoiceBillStatusFilter:
name: billStatus
in: query
description: |
selects the bill status of invoices as which are to be searched
(defaults to `ALL`)
required: false
schema:
anyOf:
- $ref: '#/components/schemas/InvoiceBillStatus'
- enum: [ALL]
VendorConfirmedFilter:
name: confirmed
in: query
Expand Down Expand Up @@ -3653,6 +3677,12 @@ components:
- type: string
maxLength: 255
- type: 'null'
markedAs:
oneOf:
- $ref: '#/components/schemas/InvoiceMarkedAs'
- type: 'null'
billStatus:
$ref: '#/components/schemas/InvoiceBillStatus'
InvoiceConfirm:
type: object
required: [externalId, externalUpdatedAt]
Expand Down Expand Up @@ -3688,6 +3718,22 @@ components:
- READY_FOR_TRANSFER
- POSTED
- TRANSFERRED
InvoiceMarkedAs:
type: string
enum:
- PAID
- UNPAID
- DELETED
InvoiceBillStatus:
type: string
enum:
- PAID
- UNPAID
- PARTIALLY_PAID
- PENDING
- REJECTED
- VOIDED
- SCHEDULED
PurchaseOrderStatus:
type: string
description: The status of the purchase order.
Expand Down

0 comments on commit cec90b5

Please sign in to comment.