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

View file

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