data-dwh-dbt-project/models/intermediate
Pablo Martín 86719b6a10 Merged PR 3371: Update Host takes risk waivers logic
# Description

This PR originally started with the intent of modifying the applicable logic for waivers where the host takes the risk (in order to follow the [current state of this specification](https://www.notion.so/knowyourguest-superhog/Guest-Services-Taxes-How-to-calculate-a5ab4c049d61427fafab669dbbffb3a2?pvs=4)).

The verification payments model was quite convoluted already: adding this logic was turning it into an unmanageable ball of hair. So I broke the rules and refactored in the same PR. The end result is that:
- The model implementation has changed quite a bit.
- Behavior for everything but host-takes-risk waivers should remain unchanged.
- Behaviour for host-takes-risk waivers should have changed.

# 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.
- [X] I have checked for DRY opportunities with other models and docs.
- [X] I've picked the right materialization for the affected models.

# Other

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

Related work items: #20043
2024-10-30 10:16:16 +00:00
..
athena docs for athena int 2024-10-08 14:54:11 +02:00
core Merged PR 3371: Update Host takes risk waivers logic 2024-10-30 10:16:16 +00:00
cross Merged PR 3373: Setting current KPIs models for deprecation 2024-10-30 08:54:59 +00:00
edeposit move docs for int_edeposit__guesty_verifications 2024-10-08 14:45:50 +02:00
hubspot Merged PR 3194: First version of Hubspot deals in intermediate 2024-10-16 12:15:14 +00:00
kpis Merged PR 3329: First version of KPIs refactored - created bookings 2024-10-30 08:55:19 +00:00
xero Merged PR 3373: Setting current KPIs models for deprecation 2024-10-30 08:54:59 +00:00