﻿---
title: clsRatingPlanValidation
summary: API reference for clsRatingPlanValidation.
status: draft
owner: Technical Writer
last_reviewed: 2026-07-31
library: SAIF.Business.Policy.Rating
reference_type: package
---
# clsRatingPlanValidation
Represents a retrieve-only rating-plan validation row. The class is retrieved through BOF criteria objects and exposes the loaded row to rating callers.
## Purpose
- Represents a retrieve-only rating-plan validation row.
- The class is retrieved through BOF criteria objects and exposes the loaded row to rating callers.
## Context
- Namespace: `SAIF.Business.Policy.Rating`
- Assembly/package: `SAIF.Business.Policy.Rating`
## Public members
| Member | Signature | Purpose |
| --- | --- | --- |
| RatingPlanCode | `Public Property RatingPlanCode() As String` | Rating plan code participating in an allowed rating-plan/market-type combination. |
| MarketTypeCode | `Public Property MarketTypeCode() As String` | Persisted market-type code paired with the rating plan code in the validation table. |
| MarketType | `Public Property MarketType() As Enums.MarketTypes` | Enum projection of `MarketTypeCode` used when evaluating allowed rating-plan combinations. |
| Equals | `Public Overloads Shared Function Equals(ByVal objA As Object, ByVal objB As Object) As Boolean` | Compares two objects as rating-plan-validation rows by delegating to typed equality. |
| Equals | `Public Overloads Overrides Function Equals(ByVal inObject As Object) As Boolean` | Treats another object as equal only when it is a `clsRatingPlanValidation` with the same rating plan and market type. |
| Equals | `Public Overloads Function Equals(ByVal inObject As clsRatingPlanValidation) As Boolean` | Uses `RatingPlanCode` plus `MarketTypeCode` as the identity comparison for validation rows. |
| GetHashCode | `Public Overrides Function GetHashCode() As Integer` | Hashes `RatingPlanCode`, the value this type uses as its identity key in keyed collections. |
| New | `Public Sub New(ByVal inDataPortalInfo As IDataPortalInfo)` | Creates an empty BOF object shell that shared factory methods or retrieval logic can populate with a loaded row. |
## Inherited public members
| Member | Signature | Purpose | Origin |
| --- | --- | --- | --- |
| Rules | `Property Rules As clsRulesManager` | Owns the BOF rules manager used to evaluate registered validation logic.† | `SAIF.Framework.Core` — `clsBusinessBase` |
| BeginEdit | `Sub BeginEdit()` | Opens an n-level edit session for the business object.† | `SAIF.Framework.Core` — `clsBusinessBase` |
| CancelEdit | `Sub CancelEdit()` | Rolls back the active edit scope.† | `SAIF.Framework.Core` — `clsBusinessBase` |
| ApplyEdit | `Sub ApplyEdit()` | Commits the active edit scope.† | `SAIF.Framework.Core` — `clsBusinessBase` |
| Error | `ReadOnly Property Error As String` | Surfaces aggregate broken-rule text through `IDataErrorInfo`.† | `SAIF.Framework.Core` — `clsBusinessBase` |
## Behavioral notes
- The object layers convenience logic over the loaded row, such as equality keys, related-row resolution, or validation helpers.
## Constraints and usage notes
- Retrieve the row with the same keys and effective context that the caller will use later, because helper members derive additional data from that loaded state.
> **Note:** Statements marked with `†` are derived from dependency library
> documentation via the Legends CLI. They describe inherited behavior from the
> indicated origin library and should be verified if the dependency version changes.
## Sources
- `Business\SAIF.Business.Policy.Rating\clsRatingPlanValidation.vb`
