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

@ -261,20 +261,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
@ -292,7 +292,7 @@ models:
- name: protection_type
data_type: text
description: "Specific protection type for the request."
tests:
data_tests:
- not_null
- accepted_values:
values:
@ -307,7 +307,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
@ -317,7 +317,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
@ -327,7 +327,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
@ -339,7 +339,7 @@ models:
- name: verification_status
data_type: text
description: Outcome of the verification process.
tests:
data_tests:
- not_null
- accepted_values:
values:
@ -351,7 +351,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')
@ -360,25 +360,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
@ -397,7 +397,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
@ -406,7 +406,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
@ -415,7 +415,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
@ -425,7 +425,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
@ -434,7 +434,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
@ -443,7 +443,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
@ -452,7 +452,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
@ -461,23 +461,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