feature/OVPAY2313-swagger-infoplaza #47

Open
maxmartens wants to merge 3 commits from feature/OVPAY2313-swagger-infoplaza into develop
Showing only changes of commit 822a1489bd - Show all commits

View File

@ -2209,7 +2209,7 @@ paths:
content: content:
application/json: application/json:
schema: schema:
$ref: "#/components/schemas/OvPayTokenProductInstancesResponse" $ref: "#/components/schemas/ProductInstancesResponse"
examples: examples:
getEmptyProductInstances: getEmptyProductInstances:
summary: No product-instances found on token summary: No product-instances found on token
@ -3440,14 +3440,14 @@ paths:
content: content:
application/json: application/json:
schema: schema:
$ref: "#/components/schemas/unavailable" $ref: "#/components/schemas/ProductInstancesResponse"
examples: examples:
getEmptyProductInstances: getEmptyProductInstances:
summary: No product-instances found for devi summary: No product-instances found for devi
value: value:
productInstances: [] productInstances: []
getSingleProductInstance: getSingleProductInstance:
summary: One non-renewable product-instance summary: One TapConnect product-instance
value: value:
{ {
"productInstances": "productInstances":
@ -3986,20 +3986,39 @@ components:
method: method:
type: string type: string
example: GET example: GET
OvPayTokenProductInstancesResponse: ProductInstancesResponse:
type: object type: object
required:
- productInstances
properties: properties:
productInstances: productInstances:
type: array type: array
items: items:
type: object type: object
required:
- productInstanceId
- productId
- name
- status
- purchasedProductType
- isRenewable
- productCategory
- _links
properties: properties:
productInstanceId:
type: string
format: uuid
example: 0f0981bf-6d60-4b06-bc55-de1ba325f366
productId: productId:
type: integer type: integer
example: 1 example: 1
name: name:
type: string type: string
example: HTM 90% Korting example: HTM 90% Korting
purchasedProductType:
type: string
description: The type of product instance (e.g. GBO, TapConnect, physical, etc.)
example: GBO
status: status:
type: string type: string
enum: ["Active", "Ended", "Refunded"] enum: ["Active", "Ended", "Refunded"]
@ -4040,6 +4059,10 @@ components:
format: uuid format: uuid
example: 56B17EF-C436-9043-B76C-481797WEB464F example: 56B17EF-C436-9043-B76C-481797WEB464F
description: Only present for subscriptions/contracts description: Only present for subscriptions/contracts
content:
type: object
description: Custom data for the product-instance, depending on the purchasedProductType
example: null
_links: _links:
type: object type: object
properties: properties:
@ -4054,21 +4077,31 @@ components:
example: GET example: GET
get_order: get_order:
type: object type: object
description: Always present for any HTM product-instance
properties: properties:
href: href:
type: string type: string
description: Always present for any HTM product-instance
example: https://api.integratielaag.nl/abt/touchpoint/1.0/orders/501B17EF-36C4-4039-B92C-6517969B464E example: https://api.integratielaag.nl/abt/touchpoint/1.0/orders/501B17EF-36C4-4039-B92C-6517969B464E
method: method:
type: string type: string
example: GET example: GET
get_contract: get_contract:
type: object type: object
description: Only present for subscriptions/contracts
properties: properties:
href: href:
type: string type: string
description: Only present for subscriptions/contracts
example: https://api.integratielaag.nl/abt/touchpoint/1.0/customers/contracts/56B17EF-C436-9043-B76C-481797WEB464F example: https://api.integratielaag.nl/abt/touchpoint/1.0/customers/contracts/56B17EF-C436-9043-B76C-481797WEB464F
method: method:
type: string type: string
example: GET example: GET
patch_productinstance:
type: object
description: Only present for TapConnect product-instances that need to be activated
properties:
href:
type: string
example: https://api.integratielaag.nl/abt/touchpoint/1.0/customers/productinstances/0f0981bf-6d60-4b06-bc55-de1ba325f366
method:
type: string
example: PATCH