develop #38
@ -993,7 +993,7 @@ paths:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/patchCustomerProfileAddressResponse"
|
||||
$ref: "#/components/schemas/postCustomerProfileAddressResponse"
|
||||
security:
|
||||
- default: []
|
||||
x-auth-type: Application & Application User
|
||||
@ -1021,7 +1021,104 @@ paths:
|
||||
- default: []
|
||||
x-auth-type: Application & Application User
|
||||
x-throttling-tier: Unlimited
|
||||
|
||||
/customers/{customerProfileId}/phones:
|
||||
post:
|
||||
tags:
|
||||
- Customer
|
||||
summary: Add a customer phonenumber
|
||||
description: >-
|
||||
|
||||
parameters:
|
||||
- name: customerProfileId
|
||||
in: path
|
||||
required: true
|
||||
schema:
|
||||
type: integer
|
||||
example: 1
|
||||
requestBody:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/postPhoneEntity"
|
||||
examples:
|
||||
customerPhone:
|
||||
value:
|
||||
customerPhone:
|
||||
number: 0701112233
|
||||
countryCode: 0031
|
||||
phoneTypeId: 1
|
||||
isPreferred: true
|
||||
required: true
|
||||
responses:
|
||||
"201":
|
||||
description: Successfully created a customer phone
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/postPhoneResponse"
|
||||
security:
|
||||
- default: []
|
||||
x-auth-type: Application & Application User
|
||||
x-throttling-tier: Unlimited
|
||||
/phones/{phoneId}:
|
||||
patch:
|
||||
tags:
|
||||
- Customer
|
||||
summary: Edit a customer phone
|
||||
description: >-
|
||||
|
||||
parameters:
|
||||
- name: phoneId
|
||||
in: path
|
||||
required: true
|
||||
schema:
|
||||
type: integer
|
||||
example: 2
|
||||
requestBody:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/patchPhoneEntity"
|
||||
examples:
|
||||
updateAddressTypeId:
|
||||
value:
|
||||
address:
|
||||
addressTypeId: 2
|
||||
required: true
|
||||
responses:
|
||||
"200":
|
||||
description: Successfully modified a customer phonenumber
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/postPhoneResponse"
|
||||
security:
|
||||
- default: []
|
||||
x-auth-type: Application & Application User
|
||||
x-throttling-tier: Unlimited
|
||||
delete:
|
||||
tags:
|
||||
- Customer
|
||||
summary: Delete a customer phone
|
||||
description: >-
|
||||
|
||||
parameters:
|
||||
- name: phoneId
|
||||
in: path
|
||||
required: true
|
||||
schema:
|
||||
type: integer
|
||||
example: 2
|
||||
responses:
|
||||
"200":
|
||||
description: Successfully deleted a customer phonenumber
|
||||
content:
|
||||
application/json:
|
||||
{}
|
||||
security:
|
||||
- default: []
|
||||
x-auth-type: Application & Application User
|
||||
x-throttling-tier: Unlimited
|
||||
/ovpaytokens:
|
||||
get:
|
||||
tags:
|
||||
@ -1536,11 +1633,6 @@ components:
|
||||
type: string
|
||||
replacedByTokenId:
|
||||
type: integer
|
||||
postPhone:
|
||||
type: object
|
||||
properties:
|
||||
phone:
|
||||
$ref: "#/components/schemas/phonePostEntity"
|
||||
personEntity:
|
||||
type: object
|
||||
properties:
|
||||
@ -1583,7 +1675,7 @@ components:
|
||||
type: boolean
|
||||
addressTypeId:
|
||||
type: integer
|
||||
phonePostEntity:
|
||||
postPhoneEntity:
|
||||
required:
|
||||
- countryCode
|
||||
- number
|
||||
@ -1598,6 +1690,17 @@ components:
|
||||
type: integer
|
||||
isPreferred:
|
||||
type: boolean
|
||||
patchPostEntity:
|
||||
type: object
|
||||
properties:
|
||||
number:
|
||||
type: string
|
||||
countryCode:
|
||||
type: string
|
||||
phoneTypeId:
|
||||
type: integer
|
||||
isPreferred:
|
||||
type: boolean
|
||||
defaultCustomerProfileResponse:
|
||||
type: object
|
||||
properties:
|
||||
@ -1692,15 +1795,12 @@ components:
|
||||
addressId:
|
||||
type: integer
|
||||
example: 3
|
||||
postCustomerProfilePhoneResponse:
|
||||
postPhoneResponse:
|
||||
type: object
|
||||
properties:
|
||||
customerNumber:
|
||||
type: integer
|
||||
example: 10000001
|
||||
phoneId:
|
||||
type: integer
|
||||
example: 1
|
||||
example: 2
|
||||
postCustomerProfileBillingInformationResponse:
|
||||
type: object
|
||||
properties:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user