develop #38
@ -45,6 +45,12 @@ paths:
|
|||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: "#/components/schemas/TransactionItemsBulkPostResponseBody"
|
$ref: "#/components/schemas/TransactionItemsBulkPostResponseBody"
|
||||||
|
"400":
|
||||||
|
description: Bad request
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: "#/components/schemas/TransactionItemsBulkBadRequestResponseBody"
|
||||||
/transactionitems:
|
/transactionitems:
|
||||||
get:
|
get:
|
||||||
summary: Find transaction items.
|
summary: Find transaction items.
|
||||||
@ -1591,16 +1597,68 @@ components:
|
|||||||
- type
|
- type
|
||||||
- productCode
|
- productCode
|
||||||
TransactionItemsBulkPostResponseBody:
|
TransactionItemsBulkPostResponseBody:
|
||||||
type: array
|
type: object
|
||||||
items:
|
properties:
|
||||||
type: object
|
summary:
|
||||||
properties:
|
type: object
|
||||||
transactionItemId:
|
properties:
|
||||||
type: string
|
created:
|
||||||
format: uuid
|
type: integer
|
||||||
example: afce35b2-1dff-4ace-98d0-4b9ac405c87d
|
example: 15
|
||||||
required:
|
updated:
|
||||||
- transactionItemId
|
type: integer
|
||||||
|
example: 2
|
||||||
|
total:
|
||||||
|
type: integer
|
||||||
|
example: 17
|
||||||
|
required:
|
||||||
|
- created
|
||||||
|
- updated
|
||||||
|
- total
|
||||||
|
required:
|
||||||
|
- summary
|
||||||
|
TransactionItemsBulkBadRequestResponseBody:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
type:
|
||||||
|
type: string
|
||||||
|
format: url
|
||||||
|
example: https://htm.nl/api/v1/probs/fiko/validationerror
|
||||||
|
title:
|
||||||
|
type: string
|
||||||
|
example: Transaction validation failed.
|
||||||
|
detail:
|
||||||
|
type: string
|
||||||
|
example: One ore more transactions in the request are invalid.
|
||||||
|
instance:
|
||||||
|
type: string
|
||||||
|
example: urn:uuid:4017fabc-1b28-11e8-accf-0ed5f89f718b
|
||||||
|
errors:
|
||||||
|
type: array
|
||||||
|
items:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
detail:
|
||||||
|
type: string
|
||||||
|
example: Transaction is a duplicate of a transaction already in the system.
|
||||||
|
pointer:
|
||||||
|
type: string
|
||||||
|
example: "#/transactionItems/0"
|
||||||
|
transactionId:
|
||||||
|
type: string
|
||||||
|
example: 1ad109d3-fd7d-4b6f-872b-220d492f385f
|
||||||
|
transactionLineId:
|
||||||
|
type: string
|
||||||
|
example: fee907dd-e59d-44f5-a63b-bbdec38f79b7
|
||||||
|
required:
|
||||||
|
- detail
|
||||||
|
- pointer
|
||||||
|
- transactionId
|
||||||
|
required:
|
||||||
|
- type
|
||||||
|
- title
|
||||||
|
- detail
|
||||||
|
- instance
|
||||||
TransactionItemsPatchRequestBody:
|
TransactionItemsPatchRequestBody:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
@ -2529,7 +2587,7 @@ components:
|
|||||||
taxCode:
|
taxCode:
|
||||||
type: string
|
type: string
|
||||||
example: V21
|
example: V21
|
||||||
taxPercentageAmount:
|
taxPercentageAmount:
|
||||||
type: integer
|
type: integer
|
||||||
example: 21
|
example: 21
|
||||||
description:
|
description:
|
||||||
@ -2559,7 +2617,7 @@ components:
|
|||||||
sourceMetadata:
|
sourceMetadata:
|
||||||
type: array
|
type: array
|
||||||
items:
|
items:
|
||||||
$ref: '#/components/schemas/SourceMetadata'
|
$ref: "#/components/schemas/SourceMetadata"
|
||||||
href:
|
href:
|
||||||
type: string
|
type: string
|
||||||
nullable: true
|
nullable: true
|
||||||
@ -2731,7 +2789,7 @@ components:
|
|||||||
format: uuid
|
format: uuid
|
||||||
example: e0af8c8f-d421-4567-a14e-48e2a1bb86fb
|
example: e0af8c8f-d421-4567-a14e-48e2a1bb86fb
|
||||||
concession:
|
concession:
|
||||||
$ref: '#/components/schemas/Concession'
|
$ref: "#/components/schemas/Concession"
|
||||||
percentage:
|
percentage:
|
||||||
type: number
|
type: number
|
||||||
example: 84.021
|
example: 84.021
|
||||||
@ -2818,7 +2876,7 @@ components:
|
|||||||
concessions:
|
concessions:
|
||||||
type: array
|
type: array
|
||||||
items:
|
items:
|
||||||
$ref: '#/components/schemas/Concession'
|
$ref: "#/components/schemas/Concession"
|
||||||
href:
|
href:
|
||||||
type: string
|
type: string
|
||||||
nullable: true
|
nullable: true
|
||||||
@ -2830,7 +2888,7 @@ components:
|
|||||||
failureReasons:
|
failureReasons:
|
||||||
type: array
|
type: array
|
||||||
items:
|
items:
|
||||||
$ref: '#/components/schemas/FailureReason'
|
$ref: "#/components/schemas/FailureReason"
|
||||||
href:
|
href:
|
||||||
type: string
|
type: string
|
||||||
nullable: true
|
nullable: true
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user