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 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,