Created
April 24, 2020 04:58
-
-
Save annibuliful/0f9602d0d2679438f47b9098e7bcb13e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body: { | |
additionalProperties: false, | |
type: 'object', | |
properties: { | |
customerId: { | |
type: 'number', | |
}, | |
type: { | |
type: 'string', | |
enum: ['department', 'department_employee'], | |
}, | |
departmentName: { | |
type: 'string', | |
}, | |
employeeName: { | |
type: 'string', | |
}, | |
email: { | |
type: 'string', | |
format: 'email', | |
}, | |
phoneNumber: { | |
type: 'string', | |
}, | |
}, | |
required: ['customerId', 'type', 'departmentName', 'employeeName', 'email', 'phoneNumber'], | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body: { | |
additionalProperties: false, | |
type: 'object', | |
properties: { | |
contactName: { | |
type: 'string', | |
}, | |
contactPhoneNumber: { | |
type: 'string', | |
}, | |
saleId: { | |
type: 'number', | |
}, | |
creditDay: { | |
type: 'number', | |
}, | |
customerType: { | |
type: 'string', | |
enum: [ | |
'hospital-direct', | |
'hospital-bidding', | |
'clinic', | |
'government_organization', | |
'company', | |
'pharmacy', | |
'individual', | |
'other', | |
], | |
}, | |
branchNumber: { | |
type: 'string', | |
}, | |
deliveryPlace: { | |
type: 'string', | |
}, | |
branchType: { | |
type: 'string', | |
enum: ['headquarter', 'branch_number', 'none'], | |
default: 'none', | |
}, | |
companyId: { | |
type: 'number', | |
}, | |
taxNumber: { | |
type: 'string', | |
}, | |
welfarePercentage: { | |
type: 'number', | |
}, | |
customerName: { | |
type: 'string', | |
}, | |
coordinators: { | |
type: 'array', | |
default: [], | |
items: { | |
type: 'object', | |
properties: { | |
type: { | |
type: 'string', | |
enum: ['department', 'department_employee'], | |
}, | |
departmentName: { | |
type: 'string', | |
}, | |
employeeName: { | |
type: 'string', | |
}, | |
email: { | |
type: 'string', | |
format: 'email', | |
}, | |
phoneNumber: { | |
type: 'string', | |
pattern: '^[0-9]{9,10}$', | |
}, | |
}, | |
required: ['type', 'departmentName', 'employeeName', 'email', 'phoneNumber'], | |
}, | |
}, | |
address: { | |
type: 'string', | |
}, | |
subDistrict: { | |
type: 'string', | |
}, | |
district: { | |
type: 'string', | |
}, | |
city: { | |
type: 'string', | |
}, | |
zipCode: { | |
type: 'number', | |
}, | |
}, | |
required: ['saleId', 'companyId', 'customerName', 'address', 'subDistrict', 'district', 'city', 'zipCode'], | |
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment