boy scout: contact tests
This commit is contained in:
parent
79d69a9286
commit
c671701071
1 changed files with 18 additions and 0 deletions
|
|
@ -10,6 +10,9 @@ models:
|
||||||
- name: id_contact
|
- name: id_contact
|
||||||
data_type: character varying
|
data_type: character varying
|
||||||
description: Xero's unique identifier for the contact.
|
description: Xero's unique identifier for the contact.
|
||||||
|
tests:
|
||||||
|
- not_null
|
||||||
|
- unique
|
||||||
|
|
||||||
- name: account_number
|
- name: account_number
|
||||||
data_type: character varying
|
data_type: character varying
|
||||||
|
|
@ -18,14 +21,29 @@ models:
|
||||||
- name: contact_name
|
- name: contact_name
|
||||||
data_type: character varying
|
data_type: character varying
|
||||||
description: The name for the customer.
|
description: The name for the customer.
|
||||||
|
tests:
|
||||||
|
- not_null
|
||||||
|
- unique
|
||||||
|
|
||||||
- name: is_customer
|
- name: is_customer
|
||||||
data_type: boolean
|
data_type: boolean
|
||||||
description: Flag that shows if the contact is a Superhog customer.
|
description: Flag that shows if the contact is a Superhog customer.
|
||||||
|
tests:
|
||||||
|
- not_null
|
||||||
|
- accepted_values:
|
||||||
|
values:
|
||||||
|
- true
|
||||||
|
- false
|
||||||
|
|
||||||
- name: is_supplier
|
- name: is_supplier
|
||||||
data_type: boolean
|
data_type: boolean
|
||||||
description: Flag that shows if the contact is a Superhog supplier.
|
description: Flag that shows if the contact is a Superhog supplier.
|
||||||
|
tests:
|
||||||
|
- not_null
|
||||||
|
- accepted_values:
|
||||||
|
values:
|
||||||
|
- true
|
||||||
|
- false
|
||||||
|
|
||||||
- name: tax_number
|
- name: tax_number
|
||||||
data_type: character varying
|
data_type: character varying
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue