Updated tests on S&P fees

This commit is contained in:
Joaquin Ossa 2025-02-23 16:14:42 +01:00
parent 8cf7393173
commit f29b67addd
2 changed files with 51 additions and 51 deletions

View file

@ -216,19 +216,19 @@ models:
- name: checkin_date_utc
data_type: date
description: "Check-in date for the booking."
tests:
data_tests:
- not_null
- name: checkout_date_utc
data_type: date
description: "Check-out date for the booking."
tests:
data_tests:
- not_null
- name: number_of_nights
data_type: integer
description: Number of nights for the reservation.
tests:
data_tests:
- dbt_expectations.expect_column_values_to_be_between:
min_value: 1
@ -358,20 +358,20 @@ models:
- name: id_verification
data_type: text
description: "Unique identifier for the verification request."
tests:
data_tests:
- not_null
- unique
- name: id_booking
data_type: text
description: "Unique identifier for the booking associated with the verification."
tests:
data_tests:
- not_null
- name: id_user_partner
data_type: text
description: "Identifier for the partner user initiating the verification."
tests:
data_tests:
- not_null
- name: id_accommodation
@ -389,7 +389,7 @@ models:
- name: protection_type
data_type: text
description: "Specific protection type for the request."
tests:
data_tests:
- not_null
- accepted_values:
values:
@ -404,7 +404,7 @@ models:
description: Field used for protection type "STANDALONE PROTECTION" to
indicate the starting level of protection.
In local currency.
tests:
data_tests:
- dbt_expectations.expect_column_values_to_be_between:
min_value: 0
strictly: true
@ -414,7 +414,7 @@ models:
description: Field used for protection type "SCREEN & PROTECT",
"BASIC PROTECTION" or "DAMAGE WAIVER" to show the basic amount of protection.
In local currency.
tests:
data_tests:
- dbt_expectations.expect_column_values_to_be_between:
min_value: 0
strictly: true
@ -424,7 +424,7 @@ models:
description: Field used for protection type "SCREEN & PROTECT",
or "STANDALONE PROTECTION" to show the basic amount of protection.
In local currency.
tests:
data_tests:
- dbt_expectations.expect_column_values_to_be_between:
min_value: 0
strictly: true
@ -436,7 +436,7 @@ models:
- name: verification_status
data_type: text
description: Outcome of the verification process.
tests:
data_tests:
- not_null
- accepted_values:
values:
@ -448,7 +448,7 @@ models:
data_type: bigint
description: "Id of the currency, works as a foreign key to the
currency table"
tests:
data_tests:
- not_null
- relationships:
to: ref('stg_core__currency')
@ -457,25 +457,25 @@ models:
- name: currency_code
data_type: text
description: "ISO 4217 code of local currency."
tests:
data_tests:
- not_null
- name: checkin_date_utc
data_type: date
description: "Check-in date for the booking."
tests:
data_tests:
- not_null
- name: checkout_date_utc
data_type: date
description: "Check-out date for the booking."
tests:
data_tests:
- not_null
- name: number_of_nights
data_type: integer
description: Number of nights for the reservation.
tests:
data_tests:
- dbt_expectations.expect_column_values_to_be_between:
min_value: 1
@ -494,7 +494,7 @@ models:
- name: total_fee_in_local_currency
data_type: numeric
description: "Total fee in local currency, inclusive of all charges."
tests:
data_tests:
- dbt_expectations.expect_column_values_to_be_between:
min_value: 0
strictly: true
@ -503,7 +503,7 @@ models:
- name: total_fee_in_gbp
data_type: numeric
description: "Total fee in GBP, inclusive of all charges."
tests:
data_tests:
- dbt_expectations.expect_column_values_to_be_between:
min_value: 0
strictly: true
@ -512,7 +512,7 @@ models:
- name: discount_percentage
data_type: numeric
description: "Percentage of discount applied to the booking."
tests:
data_tests:
- dbt_expectations.expect_column_values_to_be_between:
min_value: 0
max_value: 99
@ -522,7 +522,7 @@ models:
- name: discount_amount_in_local_currency
data_type: numeric
description: "Amount of discount in local currency applied to the booking."
tests:
data_tests:
- dbt_expectations.expect_column_values_to_be_between:
min_value: 0
strictly: false
@ -531,7 +531,7 @@ models:
- name: discount_amount_in_gbp
data_type: numeric
description: "Amount of discount in GBP applied to the booking."
tests:
data_tests:
- dbt_expectations.expect_column_values_to_be_between:
min_value: 0
strictly: false
@ -540,7 +540,7 @@ models:
- name: total_fee_after_discount_in_local_currency
data_type: numeric
description: "Total fee in local currency after applying the discount."
tests:
data_tests:
- dbt_expectations.expect_column_values_to_be_between:
min_value: 0
strictly: true
@ -549,7 +549,7 @@ models:
- name: total_fee_after_discount_in_gbp
data_type: numeric
description: "Total fee in GBP after applying the discount."
tests:
data_tests:
- dbt_expectations.expect_column_values_to_be_between:
min_value: 0
strictly: true
@ -558,23 +558,23 @@ models:
- name: invoice_date_utc
data_type: date
description: "Date to consider for the invoice."
tests:
data_tests:
- not_null
- name: creation_at_utc
data_type: timestamp without time zone
description: "Timestamp of when the reservation was created."
tests:
data_tests:
- not_null
- name: creation_date_utc
data_type: date
description: "Date of when the reservation was created."
tests:
data_tests:
- not_null
- name: cosmos_created_date_utc
data_type: date
description: "Date of when the verification request was created in Cosmos DB."
tests:
data_tests:
- not_null