diff --git a/models/intermediate/core/schema.yml b/models/intermediate/core/schema.yml index 55f10f6..7a52e18 100644 --- a/models/intermediate/core/schema.yml +++ b/models/intermediate/core/schema.yml @@ -970,6 +970,33 @@ models: total_amount_in_txn_currency. tests: - not_null + - name: vat_rate + data_type: numeric + description: | + The applicable VAT rate to this payment. This is inferred from (1) + which service is the payment related to and (2) what's the billing + country of the guest. + tests: + - not_null + - is_valid_percentage + + - name: is_service_subject_to_vat + data_type: boolean + description: | + Whether the related payment is subject to VAT. For instance, + deposit payments are not. + tests: + - not_null + + - name: is_subject_to_vat + data_type: boolean + description: | + Syntactic suger to indicate if there's any VAT on this payment. + Will be true if so, false if not for any reason (guest country has + no VAT, the payment is for a deposit, etc.) + tests: + - not_null + - include: all exclude: [amount_in_txn_currency, amount_in_gbp] - name: int_core__country