This commit is contained in:
Mirjam Herald 2025-02-17 11:55:32 +01:00
parent 96f77d8f2f
commit 0ea5d1532a

View File

@ -794,7 +794,7 @@ paths:
content: content:
application/json: application/json:
schema: schema:
$ref: "#/components/schemas/customerEntity" $ref: "#/components/schemas/customersEntity"
examples: examples:
customer: customer:
value: value:
@ -815,7 +815,7 @@ paths:
post: post:
tags: tags:
- Customer - Customer
summary: Create a new customerStatus summary: Create a new customer status element
description: >- description: >-
parameters: parameters:
@ -847,7 +847,6 @@ paths:
- default: [] - default: []
x-auth-type: Application & Application User x-auth-type: Application & Application User
x-throttling-tier: Unlimited x-throttling-tier: Unlimited
/customers/{customerProfileId}/customerPreferences: /customers/{customerProfileId}/customerPreferences:
post: post:
tags: tags:
@ -920,6 +919,121 @@ paths:
- default: [] - default: []
x-auth-type: Application & Application User x-auth-type: Application & Application User
x-throttling-tier: Unlimited x-throttling-tier: Unlimited
/customers/{customerProfileId}/addresses:
post:
tags:
- Customer
summary: Add a customer address
description: >-
parameters:
- name: customerProfileId
in: path
required: true
schema:
type: integer
example: 1
requestBody:
content:
application/json:
schema:
$ref: "#/components/schemas/postCustomerAddress"
examples:
customerAddress:
value:
customerAddress:
addressTypeId: 1
street: Sesamstraat
houseNumber: 1
houseNumberSuffix: A
postalCode: 1234 AB
city: Den Haag
country: NL
isPreferred: true
required: true
responses:
"201":
description: Successfully created a customer address
content:
application/json:
schema:
$ref: "#/components/schemas/postCustomerProfileAddressResponse"
security:
- default: []
x-auth-type: Application & Application User
x-throttling-tier: Unlimited
/addresses/{addressId}:
patch:
tags:
- Customer
summary: Edit a customer address
description: >-
parameters:
- name: addressId
in: path
required: true
schema:
type: integer
example: 2
requestBody:
content:
application/json:
schema:
$ref: "#/components/schemas/patchCustomerAddress"
examples:
updateAddressTypeId:
value:
address:
addressTypeId: 2
required: true
responses:
"200":
description: Successfully modified a customer Address
content:
application/json:
schema:
$ref: "#/components/schemas/patchCustomerProfileAddressResponse"
security:
- default: []
x-auth-type: Application & Application User
x-throttling-tier: Unlimited
delete:
tags:
- Customer
summary: Delete a customer address
description: >-
parameters:
- name: addressId
in: path
required: true
schema:
type: integer
example: 2
requestBody:
content:
application/json:
schema:
$ref: "#/components/schemas/patchCustomerAddress"
examples:
updateAddressTypeId:
value:
address:
addressTypeId: 2
required: true
responses:
"200":
description: Successfully modified a customer Address
content:
application/json:
schema:
$ref: "#/components/schemas/patchCustomerProfileAddressResponse"
security:
- default: []
x-auth-type: Application & Application User
x-throttling-tier: Unlimited
/ovpaytokens: /ovpaytokens:
get: get:
tags: tags:
@ -1519,6 +1633,25 @@ components:
type: array type: array
items: items:
$ref: '#/components/schemas/phonePostEntity' $ref: '#/components/schemas/phonePostEntity'
postCustomerAddress:
type: object
properties:
street:
type: string
houseNumber:
type: integer
houseNumberSuffix:
type: string
postalCode:
type: string
city:
type: string
country:
type: string
isPreferred:
type: boolean
addressType:
type: integer
customerPreferencesEntity: customerPreferencesEntity:
type: object type: object
properties: properties:
@ -1546,12 +1679,12 @@ components:
postCustomerProfileAddressResponse: postCustomerProfileAddressResponse:
type: object type: object
properties: properties:
customerNumber: customerProfileId:
type: integer
example: 10000001
addressId:
type: integer type: integer
example: 1 example: 1
addressId:
type: integer
example: 3
postCustomerProfilePhoneResponse: postCustomerProfilePhoneResponse:
type: object type: object
properties: properties: