change "tests:" to "data_tests:"

This commit is contained in:
Pablo Martin 2025-01-13 16:00:35 +01:00
parent db1edf7a1c
commit c3c628aec4
29 changed files with 1565 additions and 1565 deletions

View file

@ -10,7 +10,7 @@ models:
- name: id_contact
data_type: character varying
description: Xero's unique identifier for the contact.
tests:
data_tests:
- not_null
- unique
@ -21,14 +21,14 @@ models:
- name: contact_name
data_type: character varying
description: The name for the customer.
tests:
data_tests:
- not_null
- unique
- name: is_customer
data_type: boolean
description: Flag that shows if the contact is a Superhog customer.
tests:
data_tests:
- not_null
- accepted_values:
values:
@ -38,7 +38,7 @@ models:
- name: is_supplier
data_type: boolean
description: Flag that shows if the contact is a Superhog supplier.
tests:
data_tests:
- not_null
- accepted_values:
values:
@ -199,7 +199,7 @@ models:
- name: id_invoice
data_type: character varying
description: Xero's unique identifier for the invoice.
tests:
data_tests:
- not_null
- unique
@ -216,7 +216,7 @@ models:
description: |
This field indicates whether the invoice is from Superhog towards a customer
(value is "ACCREC") or from a supplier towards Superhog (value is "ACCPAY").
tests:
data_tests:
- not_null
- accepted_values:
values:
@ -226,31 +226,31 @@ models:
- name: total_amount_local_curr
data_type: numeric
description: The total amount to be paid, in the currency the invoice is denominated in.
tests:
data_tests:
- not_null
- name: total_amount_wo_tax_local_curr
data_type: numeric
description: The total amount to be paid minus taxes, in the currency the invoice is denominated in.
tests:
data_tests:
- not_null
- name: total_tax_local_curr
data_type: numeric
description: The total tax, in the currency the invoice is denominated in.
tests:
data_tests:
- not_null
- name: total_due_local_curr
data_type: numeric
description: The total amount outstanding right now, in the currency the invoice is denominated in.
tests:
data_tests:
- not_null
- name: total_paid_local_curr
data_type: numeric
description: The total amount that has already been paid, in the currency the invoice is denominated in.
tests:
data_tests:
- not_null
- name: invoice_status
@ -261,7 +261,7 @@ models:
Can be one of: PAID, VOIDED, DRAFT, DELETED, AUTHORISED, SUBMITTED.
You can read more here: https://developer.xero.com/documentation/api/accounting/types#invoices
tests:
data_tests:
- not_null
- accepted_values:
values:
@ -278,7 +278,7 @@ models:
The contact related to this invoice.
The customer if it's an Accounts Receivables one, the supplier if it's an Accounts Payables one.
tests:
data_tests:
- not_null
- name: invoice_due_date_utc
@ -297,7 +297,7 @@ models:
- name: line_items
data_type: jsonb
description: An array with all the line items and their details.
tests:
data_tests:
- not_null
- name: reference
@ -321,7 +321,7 @@ models:
- name: invoice_currency_iso_4217
data_type: character varying
description: The ISO 4217 code for the currency which this invoice uses as unit of account.
tests:
data_tests:
- not_null
- length_between:
min_length: 3
@ -337,7 +337,7 @@ models:
For example, if the invoice is 135 ZAR, and this rate is 0.0167, the invoice value in GBP is 2.25
(135ZAR * 0.0167GBP/ZAR = 2.25GBP).
tests:
data_tests:
- not_null
- not_negative
@ -399,7 +399,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
@ -428,7 +428,7 @@ models:
- name: id_credit_note
data_type: character varying
description: Xero's unique identifier for the credit note.
tests:
data_tests:
- not_null
- unique
@ -451,7 +451,7 @@ models:
- name: credit_note_type
data_type: character varying
description: The type of the credit note (e.g., ACCRECCREDIT or ACCPAYCREDIT).
tests:
data_tests:
- not_null
- accepted_values:
values:
@ -468,32 +468,32 @@ models:
The implied exchange rate between the credit note currency and GBP.
This is the XXX to GBP rate, indicating how many GBP one unit of XXX is worth.
tests:
data_tests:
- not_null
- not_negative
- name: total_amount_local_curr
data_type: numeric
description: The total amount of the credit note in the local currency.
tests:
data_tests:
- not_null
- name: subtotal_local_curr
data_type: numeric
description: The subtotal of the credit note in the local currency, before tax.
tests:
data_tests:
- not_null
- name: total_tax_local_curr
data_type: numeric
description: The total tax amount of the credit note in the local currency.
tests:
data_tests:
- not_null
- name: remaining_credit_local_curr
data_type: numeric
description: The remaining credit amount in the local currency.
tests:
data_tests:
- not_null
- name: applied_amount
@ -508,7 +508,7 @@ models:
Can be one of: PAID, VOIDED, DRAFT, DELETED, AUTHORISED, SUBMITTED.
You can read more here: https://developer.xero.com/documentation/api/accounting/types#invoices
tests:
data_tests:
- not_null
- accepted_values:
values:
@ -522,7 +522,7 @@ models:
- name: full_contact_details
data_type: jsonb
description: The full contact details related to the credit note.
tests:
data_tests:
- not_null
- name: credit_note_due_date
@ -532,7 +532,7 @@ models:
- name: line_items
data_type: jsonb
description: An array of line items associated with the credit note.
tests:
data_tests:
- not_null
- name: date_string
@ -573,7 +573,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 credit note (NoTax).
tests:
data_tests:
- accepted_values:
values:
- Inclusive
@ -597,7 +597,7 @@ models:
- name: id_bank_transaction
data_type: character varying
description: Xero's unique identifier for the transaction.
tests:
data_tests:
- not_null
- unique
@ -633,7 +633,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:
@ -653,7 +653,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:
@ -668,7 +668,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:
@ -688,7 +688,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_wo_tax_local_curr
@ -706,7 +706,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
@ -729,7 +729,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
@ -738,7 +738,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
@ -755,19 +755,19 @@ models:
- name: line_items
data_type: jsonb
description: An array with all the line items and their details.
tests:
data_tests:
- not_null
- name: bank_account
data_type: jsonb
description: An array with the details of the related bank account.
tests:
data_tests:
- not_null
- name: is_reconciled
data_type: boolean
description: A flag indicating if the transaction has been reconciled.
tests:
data_tests:
- not_null
- name: has_attachments
@ -801,11 +801,11 @@ models:
- name: id_account
data_type: character varying
description: Xero's unique identifier for the account.
tests:
data_tests:
- not_null
- unique
- name: account_code
data_type: character varying
description: Human readable account code.
tests:
data_tests:
- unique