feat: add invoice-config-items management functionality
This commit is contained in:
@@ -164,6 +164,27 @@ definitions:
|
||||
updatedAt:
|
||||
type: string
|
||||
type: object
|
||||
models.InvoiceConfigItem:
|
||||
properties:
|
||||
allowAlternative:
|
||||
type: boolean
|
||||
componentId:
|
||||
type: integer
|
||||
id:
|
||||
type: integer
|
||||
invoiceConfigId:
|
||||
type: integer
|
||||
metadata:
|
||||
items:
|
||||
type: integer
|
||||
type: array
|
||||
note:
|
||||
type: string
|
||||
priorityOrder:
|
||||
type: integer
|
||||
requiredQuantity:
|
||||
type: integer
|
||||
type: object
|
||||
models.Room:
|
||||
properties:
|
||||
createdAt:
|
||||
@@ -333,6 +354,26 @@ definitions:
|
||||
- name
|
||||
- shelfId
|
||||
type: object
|
||||
requests.CreateInvoiceConfigItemRequest:
|
||||
properties:
|
||||
allowAlternative:
|
||||
type: boolean
|
||||
componentId:
|
||||
type: integer
|
||||
invoiceConfigId:
|
||||
type: integer
|
||||
note:
|
||||
type: string
|
||||
priorityOrder:
|
||||
type: integer
|
||||
requiredQuantity:
|
||||
type: integer
|
||||
required:
|
||||
- componentId
|
||||
- invoiceConfigId
|
||||
- priorityOrder
|
||||
- requiredQuantity
|
||||
type: object
|
||||
requests.CreateInvoiceConfigRequest:
|
||||
properties:
|
||||
description:
|
||||
@@ -479,6 +520,17 @@ definitions:
|
||||
name:
|
||||
type: string
|
||||
type: object
|
||||
requests.UpdateInvoiceConfigItemRequest:
|
||||
properties:
|
||||
allowAlternative:
|
||||
type: boolean
|
||||
note:
|
||||
type: string
|
||||
priorityOrder:
|
||||
type: integer
|
||||
requiredQuantity:
|
||||
type: integer
|
||||
type: object
|
||||
requests.UpdateInvoiceConfigRequest:
|
||||
properties:
|
||||
description:
|
||||
@@ -572,6 +624,11 @@ definitions:
|
||||
id:
|
||||
type: integer
|
||||
type: object
|
||||
responses.CreateInvoiceConfigItemResponse:
|
||||
properties:
|
||||
id:
|
||||
type: integer
|
||||
type: object
|
||||
responses.CreateInvoiceConfigResponse:
|
||||
properties:
|
||||
id:
|
||||
@@ -693,6 +750,23 @@ definitions:
|
||||
shelfId:
|
||||
type: integer
|
||||
type: object
|
||||
responses.UpdateInvoiceConfigItemResponse:
|
||||
properties:
|
||||
allowAlternative:
|
||||
type: boolean
|
||||
componentId:
|
||||
type: integer
|
||||
id:
|
||||
type: integer
|
||||
invoiceConfigId:
|
||||
type: integer
|
||||
note:
|
||||
type: string
|
||||
priorityOrder:
|
||||
type: integer
|
||||
requiredQuantity:
|
||||
type: integer
|
||||
type: object
|
||||
responses.UpdateInvoiceConfigResponse:
|
||||
properties:
|
||||
description:
|
||||
@@ -1908,6 +1982,176 @@ paths:
|
||||
summary: Update container
|
||||
tags:
|
||||
- container
|
||||
/v1/invoice-config-items:
|
||||
get:
|
||||
consumes:
|
||||
- application/json
|
||||
description: Retrieve a list of all invoice config items
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
schema:
|
||||
allOf:
|
||||
- $ref: '#/definitions/response.SuccessResponse'
|
||||
- properties:
|
||||
data:
|
||||
items:
|
||||
$ref: '#/definitions/models.InvoiceConfigItem'
|
||||
type: array
|
||||
type: object
|
||||
"500":
|
||||
description: Internal Server Error
|
||||
schema:
|
||||
$ref: '#/definitions/response.ErrorResponse'
|
||||
summary: List all invoice config items
|
||||
tags:
|
||||
- invoice-config-item
|
||||
post:
|
||||
consumes:
|
||||
- application/json
|
||||
description: Create a new invoice config item with the provided details
|
||||
parameters:
|
||||
- description: Invoice config item request body
|
||||
in: body
|
||||
name: body
|
||||
required: true
|
||||
schema:
|
||||
$ref: '#/definitions/requests.CreateInvoiceConfigItemRequest'
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"201":
|
||||
description: Created
|
||||
schema:
|
||||
allOf:
|
||||
- $ref: '#/definitions/response.SuccessResponse'
|
||||
- properties:
|
||||
data:
|
||||
$ref: '#/definitions/responses.CreateInvoiceConfigItemResponse'
|
||||
type: object
|
||||
"400":
|
||||
description: Bad Request
|
||||
schema:
|
||||
$ref: '#/definitions/response.ErrorResponse'
|
||||
"500":
|
||||
description: Internal Server Error
|
||||
schema:
|
||||
$ref: '#/definitions/response.ErrorResponse'
|
||||
summary: Create a new invoice config item
|
||||
tags:
|
||||
- invoice-config-item
|
||||
/v1/invoice-config-items/{id}:
|
||||
delete:
|
||||
consumes:
|
||||
- application/json
|
||||
description: Delete an invoice config item by its unique identifier
|
||||
parameters:
|
||||
- description: Invoice config item ID
|
||||
in: path
|
||||
name: id
|
||||
required: true
|
||||
type: integer
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
schema:
|
||||
$ref: '#/definitions/response.SuccessResponse'
|
||||
"400":
|
||||
description: Bad Request
|
||||
schema:
|
||||
$ref: '#/definitions/response.ErrorResponse'
|
||||
"500":
|
||||
description: Internal Server Error
|
||||
schema:
|
||||
$ref: '#/definitions/response.ErrorResponse'
|
||||
summary: Delete invoice config item
|
||||
tags:
|
||||
- invoice-config-item
|
||||
get:
|
||||
consumes:
|
||||
- application/json
|
||||
description: Retrieve a single invoice config item using its unique identifier
|
||||
parameters:
|
||||
- description: Invoice config item ID
|
||||
in: path
|
||||
name: id
|
||||
required: true
|
||||
type: integer
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
schema:
|
||||
allOf:
|
||||
- $ref: '#/definitions/response.SuccessResponse'
|
||||
- properties:
|
||||
data:
|
||||
$ref: '#/definitions/models.InvoiceConfigItem'
|
||||
type: object
|
||||
"400":
|
||||
description: Bad Request
|
||||
schema:
|
||||
$ref: '#/definitions/response.ErrorResponse'
|
||||
"404":
|
||||
description: Not Found
|
||||
schema:
|
||||
$ref: '#/definitions/response.ErrorResponse'
|
||||
"500":
|
||||
description: Internal Server Error
|
||||
schema:
|
||||
$ref: '#/definitions/response.ErrorResponse'
|
||||
summary: Get invoice config item by ID
|
||||
tags:
|
||||
- invoice-config-item
|
||||
put:
|
||||
consumes:
|
||||
- application/json
|
||||
description: Update an existing invoice config item by its ID. Only non-empty
|
||||
fields will be updated.
|
||||
parameters:
|
||||
- description: Invoice config item ID
|
||||
in: path
|
||||
name: id
|
||||
required: true
|
||||
type: integer
|
||||
- description: Invoice config item request body
|
||||
in: body
|
||||
name: body
|
||||
required: true
|
||||
schema:
|
||||
$ref: '#/definitions/requests.UpdateInvoiceConfigItemRequest'
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
schema:
|
||||
allOf:
|
||||
- $ref: '#/definitions/response.SuccessResponse'
|
||||
- properties:
|
||||
data:
|
||||
$ref: '#/definitions/responses.UpdateInvoiceConfigItemResponse'
|
||||
type: object
|
||||
"400":
|
||||
description: Bad Request
|
||||
schema:
|
||||
$ref: '#/definitions/response.ErrorResponse'
|
||||
"404":
|
||||
description: Not Found
|
||||
schema:
|
||||
$ref: '#/definitions/response.ErrorResponse'
|
||||
"500":
|
||||
description: Internal Server Error
|
||||
schema:
|
||||
$ref: '#/definitions/response.ErrorResponse'
|
||||
summary: Update invoice config item
|
||||
tags:
|
||||
- invoice-config-item
|
||||
/v1/invoice-configs:
|
||||
get:
|
||||
consumes:
|
||||
|
||||
Reference in New Issue
Block a user