Merged PR 4448: Added booking id to payments model

# Description

Added booking id to payments model to upgrade payments report

# 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.

Added booking id to payments model

Related work items: #27771
This commit is contained in:
Joaquin Ossa 2025-02-19 10:59:13 +00:00
commit 5585880b63
4 changed files with 12 additions and 0 deletions

View file

@ -38,6 +38,7 @@ select
vp.superhog_fee_without_taxes_in_gbp, vp.superhog_fee_without_taxes_in_gbp,
vp.currency, vp.currency,
der.rate as exchange_rate_to_gbp, der.rate as exchange_rate_to_gbp,
b.id_booking,
uh.id_user_host, uh.id_user_host,
uh.id_deal, uh.id_deal,
uh.first_name as host_first_name, uh.first_name as host_first_name,

View file

@ -5580,6 +5580,11 @@ models:
The exchange rate used to convert the payment amount from local currency The exchange rate used to convert the payment amount from local currency
to GBP. to GBP.
- name: id_booking
data_type: bigint
description: The unique, Superhog generated id for this booking.
Can be null for verification request not related to a booking.
- name: id_user_host - name: id_user_host
data_type: character varying data_type: character varying
description: | description: |

View file

@ -30,6 +30,7 @@ select
superhog_fee_without_taxes_in_gbp as superhog_fee_without_taxes_in_gbp, superhog_fee_without_taxes_in_gbp as superhog_fee_without_taxes_in_gbp,
currency as currency, currency as currency,
exchange_rate_to_gbp as exchange_rate_to_gbp, exchange_rate_to_gbp as exchange_rate_to_gbp,
id_booking as id_booking,
id_user_host as id_user_host, id_user_host as id_user_host,
id_deal as id_deal, id_deal as id_deal,
host_first_name as host_first_name, host_first_name as host_first_name,

View file

@ -1841,6 +1841,11 @@ models:
The exchange rate used to convert the payment amount from local currency The exchange rate used to convert the payment amount from local currency
to GBP. to GBP.
- name: id_booking
data_type: bigint
description: The unique, Superhog generated id for this booking.
Can be null for verification request not related to a booking.
- name: id_user_host - name: id_user_host
data_type: character varying data_type: character varying
description: | description: |