From b9fe9a055268f106f4e07b340c676a53027382bf Mon Sep 17 00:00:00 2001 From: Joaquin Date: Wed, 2 Jul 2025 14:37:44 +0200 Subject: [PATCH] stay confident inclusion --- models/intermediate/core/schema.yml | 18 ------------------ models/reporting/core/core__payments.sql | 2 ++ models/reporting/core/schema.yml | 1 + 3 files changed, 3 insertions(+), 18 deletions(-) diff --git a/models/intermediate/core/schema.yml b/models/intermediate/core/schema.yml index ac158d4..5040122 100644 --- a/models/intermediate/core/schema.yml +++ b/models/intermediate/core/schema.yml @@ -4817,14 +4817,6 @@ models: - name: product_name data_type: character varying description: Type of payment verification, categorizing the transaction. - data_tests: - - accepted_values: - values: - - "WAIVER" - - "DEPOSIT" - - "CHECKINCOVER" - - "FEE" - - "UNKNOWN" - name: is_host_taking_waiver_risk data_type: boolean @@ -4875,38 +4867,28 @@ models: description: | The total amount of the payment in GBP. This includes taxes if applicable. - data_tests: - - not_null - name: amount_without_taxes_in_txn_currency data_type: numeric description: | The net amount of the payment without taxes, in local currency. - data_tests: - - not_null - name: amount_without_taxes_in_gbp data_type: numeric description: | The net amount of the payment without taxes, in GBP. - data_tests: - - not_null - name: tax_amount_in_txn_currency data_type: numeric description: | The tax portion of the payment, in local currency. Will be 0 if no taxes apply. - data_tests: - - not_null - name: tax_amount_in_gbp data_type: numeric description: | The tax portion of the payment, in GBP. Will be 0 if no taxes apply. - data_tests: - - not_null - name: amount_due_to_host_in_txn_currency data_type: numeric diff --git a/models/reporting/core/core__payments.sql b/models/reporting/core/core__payments.sql index 318babf..fc8a5c4 100644 --- a/models/reporting/core/core__payments.sql +++ b/models/reporting/core/core__payments.sql @@ -12,6 +12,8 @@ select then 'Waiver' when product_name = 'DEPOSIT' then 'Deposit' + when product_name = 'STAYDISRUPT' + then 'StayDisrupt' when product_name = 'UNKNOWN' then null else product_name diff --git a/models/reporting/core/schema.yml b/models/reporting/core/schema.yml index f512266..831071c 100644 --- a/models/reporting/core/schema.yml +++ b/models/reporting/core/schema.yml @@ -1530,6 +1530,7 @@ models: - "Waiver" - "Deposit" - "CheckInCover" + - "StayDisrupt" - "Fee" - name: is_host_taking_waiver_risk