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

feat: Add ability to manage Purchase Orders using external id #107

Merged
merged 3 commits into from
Aug 27, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
id or external id if `useSystem=external` is passed.
- Add support for `useSystem=external` for `updatePaymentTerm` and
`deletePaymentTerm`.
- Add support for `useSystem=external` for `getPurchaseOrder`,
`updatePurchaseOrder`, `deletePurchaseOrder`, `getPurchaseOrderItem`, and
`deletePurchaseOrderItem`

## v0.21.0

Expand Down
55 changes: 47 additions & 8 deletions vic.api.v0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1439,9 +1439,12 @@ paths:
- name: purchaseOrderId
in: path
required: true
description: The internal id of the purchase order.
description: |
The internal or external of the purchase order. If using the
warmwaffles marked this conversation as resolved.
Show resolved Hide resolved
external id, you **must** pass `useSystem=external`.
schema:
type: string
- $ref: '#/components/parameters/UseSystem'
responses:
'200':
$ref: '#/components/responses/PurchaseOrderResponse'
Expand All @@ -1461,9 +1464,12 @@ paths:
- name: purchaseOrderId
in: path
required: true
description: The id of the purchase order.
description: |
The internal or external of the purchase order. If using the
warmwaffles marked this conversation as resolved.
Show resolved Hide resolved
external id, you **must** pass `useSystem=external`.
schema:
type: string
- $ref: '#/components/parameters/UseSystem'
requestBody:
$ref: '#/components/requestBodies/UpdatePurchaseOrderRequest'
responses:
Expand All @@ -1487,9 +1493,12 @@ paths:
- name: purchaseOrderId
in: path
required: true
description: The internal id of the purchase order.
description: |
The internal or external of the purchase order. If using the
warmwaffles marked this conversation as resolved.
Show resolved Hide resolved
external id, you **must** pass `useSystem=external`.
schema:
type: string
- $ref: '#/components/parameters/UseSystem'
responses:
'204':
$ref: '#/components/responses/PurchaseOrderDeletedResponse'
Expand All @@ -1511,9 +1520,12 @@ paths:
- name: purchaseOrderId
in: path
required: true
description: The internal id of the purchase order.
description: |
The internal or external of the purchase order. If using the
warmwaffles marked this conversation as resolved.
Show resolved Hide resolved
external id, you **must** pass `useSystem=external`.
schema:
type: string
- $ref: '#/components/parameters/UseSystem'
responses:
'200':
$ref: '#/components/responses/PurchaseOrderResponse'
Expand All @@ -1533,9 +1545,12 @@ paths:
- name: purchaseOrderId
in: path
required: true
description: The internal id of the purchase order.
description: |
The internal or external of the purchase order. If using the
warmwaffles marked this conversation as resolved.
Show resolved Hide resolved
external id, you **must** pass `useSystem=external`.
schema:
type: string
- $ref: '#/components/parameters/UseSystem'
responses:
'200':
$ref: '#/components/responses/PurchaseOrderResponse'
Expand All @@ -1555,9 +1570,12 @@ paths:
- name: purchaseOrderId
in: path
required: true
description: The internal id of the purchase order.
description: |
The internal or external of the purchase order. If using the
warmwaffles marked this conversation as resolved.
Show resolved Hide resolved
external id, you **must** pass `useSystem=external`.
schema:
type: string
- $ref: '#/components/parameters/UseSystem'
responses:
'200':
$ref: '#/components/responses/PurchaseOrderResponse'
Expand Down Expand Up @@ -1596,9 +1614,12 @@ paths:
- name: purchaseOrderLineItemId
in: path
required: true
description: The id of the purchase order line item.
description: |
The internal or external of the purchase order line item. If using
warmwaffles marked this conversation as resolved.
Show resolved Hide resolved
the external id, you **must** pass `useSystem=external`.
schema:
type: string
- $ref: '#/components/parameters/UseSystem'
requestBody:
$ref: '#/components/requestBodies/UpdatePurchaseOrderLineItemRequest'
responses:
Expand All @@ -1620,9 +1641,12 @@ paths:
- name: purchaseOrderLineItemId
in: path
required: true
description: The id of the purchase order line item.
description: |
The internal or external of the purchase order line item. If using
warmwaffles marked this conversation as resolved.
Show resolved Hide resolved
the external id, you **must** pass `useSystem=external`.
schema:
type: string
- $ref: '#/components/parameters/UseSystem'
responses:
'204':
$ref: '#/components/responses/PurchaseOrderLineItemDeletedResponse'
Expand Down Expand Up @@ -3341,6 +3365,11 @@ components:
lineNumber:
type: integer
minimum: 1
externalId:
oneOf:
- type: string
maxLength: 255
- type: 'null'
dimensions:
type: array
items:
Expand Down Expand Up @@ -3405,6 +3434,11 @@ components:
type: array
items:
$ref: '#/components/schemas/DimensionRef'
externalId:
oneOf:
- type: string
maxLength: 255
- type: 'null'
UpdatePurchaseOrderLineItem:
type: object
required:
Expand Down Expand Up @@ -3452,6 +3486,11 @@ components:
lineNumber:
type: integer
minimum: 1
externalId:
oneOf:
- type: string
maxLength: 255
- type: 'null'
warmwaffles marked this conversation as resolved.
Show resolved Hide resolved
dimensions:
type: array
items:
Expand Down
Loading