From c85ce8d0a792399fbefd8982aa59474d74678f37 Mon Sep 17 00:00:00 2001 From: Joaquin Ossa Date: Fri, 28 Feb 2025 09:13:29 +0100 Subject: [PATCH 1/2] new dash guest agreement fix --- models/staging/core/schema.yml | 1 + models/staging/core/stg_core__product_service.sql | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/models/staging/core/schema.yml b/models/staging/core/schema.yml index ce18ded..a93cfcc 100644 --- a/models/staging/core/schema.yml +++ b/models/staging/core/schema.yml @@ -567,6 +567,7 @@ models: values: - "SCREENING" - "DEPOSIT_MANAGEMENT" + - "GUEST_AGREEMENT" - name: is_default_service data_type: boolean diff --git a/models/staging/core/stg_core__product_service.sql b/models/staging/core/stg_core__product_service.sql index 8325f67..17384fe 100644 --- a/models/staging/core/stg_core__product_service.sql +++ b/models/staging/core/stg_core__product_service.sql @@ -35,6 +35,12 @@ select 9 -- 'WAIVER PRO' ) then 'DEPOSIT_MANAGEMENT' + when + id_product_service in ( + + 10 -- 'GUEST AGREEMENT' + ) + then 'GUEST_AGREEMENT' else null end as service_business_type, product_service_name, From 2bc8e6c0c38bc527ec472156e4c304f105168f17 Mon Sep 17 00:00:00 2001 From: Joaquin Ossa Date: Fri, 28 Feb 2025 09:49:31 +0100 Subject: [PATCH 2/2] Updated test --- models/intermediate/core/schema.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/models/intermediate/core/schema.yml b/models/intermediate/core/schema.yml index 0399b27..27d267a 100644 --- a/models/intermediate/core/schema.yml +++ b/models/intermediate/core/schema.yml @@ -3775,8 +3775,8 @@ models: - name: service_business_type data_type: string description: | - Identifies the service type (Screening, Deposit Management, Protection) - according to New Pricing documentation. + Identifies the service type (Screening, Deposit Management, Protection + or Guest Agreement) according to New Pricing documentation. Cannot be null. data_tests: - not_null @@ -3785,6 +3785,7 @@ models: - SCREENING - PROTECTION - DEPOSIT_MANAGEMENT + - GUEST_AGREEMENT - UNKNOWN - name: service_source