Adding fees in gbp

This commit is contained in:
Joaquin Ossa 2025-02-18 10:52:38 +01:00
parent 9540f18562
commit 6dda0cdcc2
4 changed files with 94 additions and 12 deletions

View file

@ -306,7 +306,6 @@ models:
tests:
- dbt_expectations.expect_column_values_to_be_between:
min_value: 0
max_value: 100000
strictly: true
- name: protection_basic_amount_in_local_currency
@ -317,7 +316,6 @@ models:
tests:
- dbt_expectations.expect_column_values_to_be_between:
min_value: 0
max_value: 100000
strictly: true
- name: protection_extended_amount_in_local_currency
@ -328,7 +326,6 @@ models:
tests:
- dbt_expectations.expect_column_values_to_be_between:
min_value: 0
max_value: 50000000
strictly: true
- name: pet_protection
@ -356,6 +353,12 @@ models:
to: ref('stg_core__currency')
field: id_currency
- name: currency_code
data_type: text
description: "ISO 4217 code of local currency."
tests:
- not_null
- name: checkin_date_utc
data_type: date
description: "Check-in date for the booking."
@ -393,7 +396,15 @@ models:
tests:
- dbt_expectations.expect_column_values_to_be_between:
min_value: 0
max_value: 10000000
strictly: true
- not_null
- name: total_fee_in_gbp
data_type: numeric
description: "Total fee in GBP, inclusive of all charges."
tests:
- dbt_expectations.expect_column_values_to_be_between:
min_value: 0
strictly: true
- not_null
@ -413,7 +424,15 @@ models:
tests:
- dbt_expectations.expect_column_values_to_be_between:
min_value: 0
max_value: 10000000
strictly: false
- not_null
- name: discount_amount_in_gbp
data_type: numeric
description: "Amount of discount in GBP applied to the booking."
tests:
- dbt_expectations.expect_column_values_to_be_between:
min_value: 0
strictly: false
- not_null
@ -423,7 +442,15 @@ models:
tests:
- dbt_expectations.expect_column_values_to_be_between:
min_value: 0
max_value: 10000000
strictly: true
- not_null
- name: total_fee_after_discount_in_gbp
data_type: numeric
description: "Total fee in GBP after applying the discount."
tests:
- dbt_expectations.expect_column_values_to_be_between:
min_value: 0
strictly: true
- not_null