develop #38
@ -993,7 +993,7 @@ paths:
|
|||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: "#/components/schemas/patchCustomerProfileAddressResponse"
|
$ref: "#/components/schemas/postCustomerProfileAddressResponse"
|
||||||
security:
|
security:
|
||||||
- default: []
|
- default: []
|
||||||
x-auth-type: Application & Application User
|
x-auth-type: Application & Application User
|
||||||
@ -1021,7 +1021,104 @@ 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}/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:
|
/ovpaytokens:
|
||||||
get:
|
get:
|
||||||
tags:
|
tags:
|
||||||
@ -1536,11 +1633,6 @@ components:
|
|||||||
type: string
|
type: string
|
||||||
replacedByTokenId:
|
replacedByTokenId:
|
||||||
type: integer
|
type: integer
|
||||||
postPhone:
|
|
||||||
type: object
|
|
||||||
properties:
|
|
||||||
phone:
|
|
||||||
$ref: "#/components/schemas/phonePostEntity"
|
|
||||||
personEntity:
|
personEntity:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
@ -1583,7 +1675,7 @@ components:
|
|||||||
type: boolean
|
type: boolean
|
||||||
addressTypeId:
|
addressTypeId:
|
||||||
type: integer
|
type: integer
|
||||||
phonePostEntity:
|
postPhoneEntity:
|
||||||
required:
|
required:
|
||||||
- countryCode
|
- countryCode
|
||||||
- number
|
- number
|
||||||
@ -1598,6 +1690,17 @@ components:
|
|||||||
type: integer
|
type: integer
|
||||||
isPreferred:
|
isPreferred:
|
||||||
type: boolean
|
type: boolean
|
||||||
|
patchPostEntity:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
number:
|
||||||
|
type: string
|
||||||
|
countryCode:
|
||||||
|
type: string
|
||||||
|
phoneTypeId:
|
||||||
|
type: integer
|
||||||
|
isPreferred:
|
||||||
|
type: boolean
|
||||||
defaultCustomerProfileResponse:
|
defaultCustomerProfileResponse:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
@ -1692,15 +1795,12 @@ components:
|
|||||||
addressId:
|
addressId:
|
||||||
type: integer
|
type: integer
|
||||||
example: 3
|
example: 3
|
||||||
postCustomerProfilePhoneResponse:
|
postPhoneResponse:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
customerNumber:
|
|
||||||
type: integer
|
|
||||||
example: 10000001
|
|
||||||
phoneId:
|
phoneId:
|
||||||
type: integer
|
type: integer
|
||||||
example: 1
|
example: 2
|
||||||
postCustomerProfileBillingInformationResponse:
|
postCustomerProfileBillingInformationResponse:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user