Adding fees in gbp
This commit is contained in:
parent
9540f18562
commit
6dda0cdcc2
4 changed files with 94 additions and 12 deletions
|
|
@ -403,7 +403,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
|
||||
|
|
@ -414,7 +413,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
|
||||
|
|
@ -425,7 +423,6 @@ models:
|
|||
tests:
|
||||
- dbt_expectations.expect_column_values_to_be_between:
|
||||
min_value: 0
|
||||
max_value: 50000000
|
||||
strictly: true
|
||||
|
||||
- name: pet_protection
|
||||
|
|
@ -453,6 +450,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."
|
||||
|
|
@ -490,7 +493,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
|
||||
|
||||
|
|
@ -510,7 +521,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
|
||||
|
||||
|
|
@ -520,7 +539,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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue