develop #38
@ -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:
|
||||||
@ -885,41 +884,156 @@ paths:
|
|||||||
x-auth-type: Application & Application User
|
x-auth-type: Application & Application User
|
||||||
x-throttling-tier: Unlimited
|
x-throttling-tier: Unlimited
|
||||||
/customerPreferences/{customerPreferenceId}:
|
/customerPreferences/{customerPreferenceId}:
|
||||||
|
patch:
|
||||||
|
tags:
|
||||||
|
- Customer
|
||||||
|
summary: Modify a customer preference element
|
||||||
|
description: >-
|
||||||
|
|
||||||
|
parameters:
|
||||||
|
- name: customerPreferenceId
|
||||||
|
in: path
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: integer
|
||||||
|
example: 1
|
||||||
|
requestBody:
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: "#/components/schemas/customerPreferencesEntity"
|
||||||
|
examples:
|
||||||
|
customerPreference:
|
||||||
|
value:
|
||||||
|
customerPreference:
|
||||||
|
languageId: 1
|
||||||
|
required: true
|
||||||
|
responses:
|
||||||
|
"200":
|
||||||
|
description: Successfully modified a customer preference
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: "#/components/schemas/patchCustomerPreferencesResponse"
|
||||||
|
security:
|
||||||
|
- default: []
|
||||||
|
x-auth-type: Application & Application User
|
||||||
|
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:
|
patch:
|
||||||
tags:
|
tags:
|
||||||
- Customer
|
- Customer
|
||||||
summary: Modify a customer preference element
|
summary: Edit a customer address
|
||||||
description: >-
|
description: >-
|
||||||
|
|
||||||
parameters:
|
parameters:
|
||||||
- name: customerPreferenceId
|
- name: addressId
|
||||||
in: path
|
in: path
|
||||||
required: true
|
required: true
|
||||||
schema:
|
schema:
|
||||||
type: integer
|
type: integer
|
||||||
example: 1
|
example: 2
|
||||||
requestBody:
|
requestBody:
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: "#/components/schemas/customerPreferencesEntity"
|
$ref: "#/components/schemas/patchCustomerAddress"
|
||||||
examples:
|
examples:
|
||||||
customerPreference:
|
updateAddressTypeId:
|
||||||
value:
|
value:
|
||||||
customerPreference:
|
address:
|
||||||
languageId: 1
|
addressTypeId: 2
|
||||||
required: true
|
required: true
|
||||||
responses:
|
responses:
|
||||||
"200":
|
"200":
|
||||||
description: Successfully modified a customer preference
|
description: Successfully modified a customer Address
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: "#/components/schemas/patchCustomerPreferencesResponse"
|
$ref: "#/components/schemas/patchCustomerProfileAddressResponse"
|
||||||
security:
|
security:
|
||||||
- default: []
|
- default: []
|
||||||
x-auth-type: Application & Application User
|
x-auth-type: Application & Application User
|
||||||
x-throttling-tier: Unlimited
|
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:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user