Adding fees in gbp
This commit is contained in:
parent
9540f18562
commit
6dda0cdcc2
4 changed files with 94 additions and 12 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -17,6 +17,7 @@ select
|
|||
as protection_extended_amount_in_local_currency,
|
||||
verification_status as verification_status,
|
||||
id_currency as id_currency,
|
||||
currency_code as currency_code,
|
||||
checkin_date_utc as checkin_date_utc,
|
||||
checkout_date_utc as checkout_date_utc,
|
||||
number_of_nights as number_of_nights,
|
||||
|
|
@ -24,10 +25,13 @@ select
|
|||
cancelled_at_utc as cancelled_at_utc,
|
||||
cancelled_date_utc as cancelled_date_utc,
|
||||
total_fee_in_local_currency as total_fee_in_local_currency,
|
||||
total_fee_in_gbp as total_fee_in_gbp,
|
||||
discount_percentage as discount_percentage,
|
||||
discount_amount_in_local_currency as discount_amount_in_local_currency,
|
||||
discount_amount_in_gbp as discount_amount_in_gbp,
|
||||
total_fee_after_discount_in_local_currency
|
||||
as total_fee_after_discount_in_local_currency,
|
||||
total_fee_after_discount_in_gbp as total_fee_after_discount_in_gbp,
|
||||
invoice_date_utc as invoice_date_utc,
|
||||
creation_at_utc as creation_at_utc,
|
||||
creation_date_utc as creation_date_utc,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue