Merged PR 5607: stay confident inclusion

# Description

Removed tests in intermediate model and added StayDisrupt as an accepted value for `product_name`

# Checklist

- [x] The edited models and dependants run properly with production data.
- [x] The edited models are sufficiently documented.
- [x] The edited models contain PK tests, and I've ran and passed them.
- [ ] I have checked for DRY opportunities with other models and docs.
- [ ] I've picked the right materialization for the affected models.

# Other

- [ ] Check if a full-refresh is required after this PR is merged.

stay confident inclusion

Related work items: #31721
This commit is contained in:
Joaquin Ossa 2025-07-02 13:42:45 +00:00
commit e0e97709c0
3 changed files with 3 additions and 18 deletions

View file

@ -4817,14 +4817,6 @@ models:
- name: product_name - name: product_name
data_type: character varying data_type: character varying
description: Type of payment verification, categorizing the transaction. description: Type of payment verification, categorizing the transaction.
data_tests:
- accepted_values:
values:
- "WAIVER"
- "DEPOSIT"
- "CHECKINCOVER"
- "FEE"
- "UNKNOWN"
- name: is_host_taking_waiver_risk - name: is_host_taking_waiver_risk
data_type: boolean data_type: boolean
@ -4875,38 +4867,28 @@ models:
description: | description: |
The total amount of the payment in GBP. The total amount of the payment in GBP.
This includes taxes if applicable. This includes taxes if applicable.
data_tests:
- not_null
- name: amount_without_taxes_in_txn_currency - name: amount_without_taxes_in_txn_currency
data_type: numeric data_type: numeric
description: | description: |
The net amount of the payment without taxes, in local currency. The net amount of the payment without taxes, in local currency.
data_tests:
- not_null
- name: amount_without_taxes_in_gbp - name: amount_without_taxes_in_gbp
data_type: numeric data_type: numeric
description: | description: |
The net amount of the payment without taxes, in GBP. The net amount of the payment without taxes, in GBP.
data_tests:
- not_null
- name: tax_amount_in_txn_currency - name: tax_amount_in_txn_currency
data_type: numeric data_type: numeric
description: | description: |
The tax portion of the payment, in local currency. The tax portion of the payment, in local currency.
Will be 0 if no taxes apply. Will be 0 if no taxes apply.
data_tests:
- not_null
- name: tax_amount_in_gbp - name: tax_amount_in_gbp
data_type: numeric data_type: numeric
description: | description: |
The tax portion of the payment, in GBP. Will be 0 if no The tax portion of the payment, in GBP. Will be 0 if no
taxes apply. taxes apply.
data_tests:
- not_null
- name: amount_due_to_host_in_txn_currency - name: amount_due_to_host_in_txn_currency
data_type: numeric data_type: numeric

View file

@ -12,6 +12,8 @@ select
then 'Waiver' then 'Waiver'
when product_name = 'DEPOSIT' when product_name = 'DEPOSIT'
then 'Deposit' then 'Deposit'
when product_name = 'STAYDISRUPT'
then 'StayDisrupt'
when product_name = 'UNKNOWN' when product_name = 'UNKNOWN'
then null then null
else product_name else product_name

View file

@ -1530,6 +1530,7 @@ models:
- "Waiver" - "Waiver"
- "Deposit" - "Deposit"
- "CheckInCover" - "CheckInCover"
- "StayDisrupt"
- "Fee" - "Fee"
- name: is_host_taking_waiver_risk - name: is_host_taking_waiver_risk