Class AddressUpdateResult
- Namespace
- SEBT.Portal.Core.StateConnector
- Assembly
- SEBT.Portal.Core.dll
Result of an address update operation from a state connector. Distinguishes success, policy rejection (household not eligible), and backend errors.
public class AddressUpdateResult
- Inheritance
-
objectAddressUpdateResult
Properties
ErrorCode
Machine-readable error code for frontend/analytics consumption.
public string? ErrorCode { get; init; }
Property Value
- string
ErrorMessage
Human-readable error message.
public string? ErrorMessage { get; init; }
Property Value
- string
IsPolicyRejection
Whether the failure is a policy rejection (household not eligible for portal address updates) rather than a technical backend error.
public bool IsPolicyRejection { get; init; }
Property Value
- bool
IsSuccess
Whether the address was successfully persisted.
public bool IsSuccess { get; init; }
Property Value
- bool
Methods
BackendError(string, string)
The state backend returned an error.
public static AddressUpdateResult BackendError(string code, string message)
Parameters
codestringmessagestring
Returns
PolicyRejected(string, string)
The household is not eligible to update their address via the portal.
public static AddressUpdateResult PolicyRejected(string code, string message)
Parameters
codestringmessagestring
Returns
Success()
The address was persisted successfully.
public static AddressUpdateResult Success()