change "tests:" to "data_tests:"
This commit is contained in:
parent
db1edf7a1c
commit
c3c628aec4
29 changed files with 1565 additions and 1565 deletions
|
|
@ -795,7 +795,7 @@ models:
|
|||
- name: id_bank_transaction
|
||||
data_type: character varying
|
||||
description: Xero's unique identifier for the transaction.
|
||||
tests:
|
||||
data_tests:
|
||||
- not_null
|
||||
- unique
|
||||
|
||||
|
|
@ -841,7 +841,7 @@ models:
|
|||
negative, amounts we receive are positive.
|
||||
|
||||
You can read more here: https://developer.xero.com/documentation/api/accounting/types#bank-transactions
|
||||
tests:
|
||||
data_tests:
|
||||
- not_null
|
||||
- accepted_values:
|
||||
values:
|
||||
|
|
@ -861,7 +861,7 @@ models:
|
|||
receiving transactions show as 1. This helps in converting the
|
||||
transaction amounts in the right sign, since Xero brings all amounts
|
||||
as positive by default.
|
||||
tests:
|
||||
data_tests:
|
||||
- not_null
|
||||
- accepted_values:
|
||||
values:
|
||||
|
|
@ -876,7 +876,7 @@ models:
|
|||
Can be one of: AUTHORISED, DELETED.
|
||||
|
||||
You can read more here: https://developer.xero.com/documentation/api/accounting/types#bank-transaction-status-codes
|
||||
tests:
|
||||
data_tests:
|
||||
- not_null
|
||||
- accepted_values:
|
||||
values:
|
||||
|
|
@ -900,7 +900,7 @@ models:
|
|||
description: |
|
||||
Total of bank transaction tax inclusive, in the currency the
|
||||
transaction is denominated in.
|
||||
tests:
|
||||
data_tests:
|
||||
- not_null
|
||||
|
||||
- name: total_amount_in_gbp
|
||||
|
|
@ -933,7 +933,7 @@ models:
|
|||
- name: transaction_currency_iso_4217
|
||||
data_type: character varying
|
||||
description: The ISO 4217 code for the currency of the transaction.
|
||||
tests:
|
||||
data_tests:
|
||||
- not_null
|
||||
- length_between:
|
||||
min_length: 3
|
||||
|
|
@ -956,7 +956,7 @@ models:
|
|||
For example, if the transaction is 135 ZAR, and this rate is 0.0167,
|
||||
the transaction value in GBP is 2.25 (135ZAR * 0.0167GBP/ZAR =
|
||||
2.25GBP).
|
||||
tests:
|
||||
data_tests:
|
||||
- not_negative
|
||||
|
||||
- name: line_amount_tax_inclusiveness
|
||||
|
|
@ -965,7 +965,7 @@ models:
|
|||
Indicates whether the amounts included in line items are tax
|
||||
inclusive (Inclusive), tax exclusive (Exclusive) or simply,
|
||||
there are no taxes on the invoice (NoTax).
|
||||
tests:
|
||||
data_tests:
|
||||
- accepted_values:
|
||||
values:
|
||||
- Inclusive
|
||||
|
|
@ -975,7 +975,7 @@ models:
|
|||
- name: is_reconciled
|
||||
data_type: boolean
|
||||
description: A flag indicating if the transaction has been reconciled.
|
||||
tests:
|
||||
data_tests:
|
||||
- not_null
|
||||
|
||||
- name: has_attachments
|
||||
|
|
@ -1011,13 +1011,13 @@ models:
|
|||
- name: id_bank_transaction
|
||||
data_type: character varying
|
||||
description: Xero's unique identifier for the transaction.
|
||||
tests:
|
||||
data_tests:
|
||||
- not_null
|
||||
|
||||
- name: id_line_item
|
||||
data_type: text
|
||||
description: Xero's unique identifier for the line item.
|
||||
tests:
|
||||
data_tests:
|
||||
- not_null
|
||||
- unique
|
||||
|
||||
|
|
@ -1121,7 +1121,7 @@ models:
|
|||
- name: id_line_item
|
||||
data_type: text
|
||||
description: Xero's unique identifier for the line item.
|
||||
tests:
|
||||
data_tests:
|
||||
- not_null
|
||||
- unique
|
||||
|
||||
|
|
@ -1156,7 +1156,7 @@ models:
|
|||
- name: id_line_item
|
||||
data_type: text
|
||||
description: ""
|
||||
tests:
|
||||
data_tests:
|
||||
- not_null
|
||||
- unique
|
||||
|
||||
|
|
@ -1168,7 +1168,7 @@ models:
|
|||
data_type: text
|
||||
description: |
|
||||
Indicates whether the record belongs in an invoice or a credit note.
|
||||
tests:
|
||||
data_tests:
|
||||
- not_null
|
||||
- accepted_values:
|
||||
values:
|
||||
|
|
@ -1218,7 +1218,7 @@ models:
|
|||
- name: document_currency_iso_4217
|
||||
data_type: character varying
|
||||
description: ""
|
||||
tests:
|
||||
data_tests:
|
||||
- not_null
|
||||
- length_between:
|
||||
min_length: 3
|
||||
|
|
@ -1231,7 +1231,7 @@ models:
|
|||
- name: id_document
|
||||
data_type: character varying
|
||||
description: ""
|
||||
tests:
|
||||
data_tests:
|
||||
- not_null
|
||||
|
||||
- name: reference
|
||||
|
|
@ -1253,7 +1253,7 @@ models:
|
|||
- name: document_type
|
||||
data_type: character varying
|
||||
description: ""
|
||||
tests:
|
||||
data_tests:
|
||||
- not_null
|
||||
- accepted_values:
|
||||
values:
|
||||
|
|
@ -1269,14 +1269,14 @@ models:
|
|||
- name: exchange_rate_to_gbp
|
||||
data_type: numeric
|
||||
description: ""
|
||||
tests:
|
||||
data_tests:
|
||||
- not_null
|
||||
- not_negative
|
||||
|
||||
- name: document_status
|
||||
data_type: character varying
|
||||
description: ""
|
||||
tests:
|
||||
data_tests:
|
||||
- not_null
|
||||
- accepted_values:
|
||||
values:
|
||||
|
|
@ -1290,7 +1290,7 @@ models:
|
|||
- name: line_amount_tax_inclusiveness
|
||||
data_type: character varying
|
||||
description: ""
|
||||
tests:
|
||||
data_tests:
|
||||
- accepted_values:
|
||||
values:
|
||||
- Inclusive
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue