Table of Contents

Class PassThroughAddressVerificationService

Namespace
SEBT.Portal.Infrastructure.Services
Assembly
SEBT.Portal.Infrastructure.dll

When Smarty is disabled, performs trimming/ZIP formatting and enforces AddressValidationPolicySettings (e.g. General Delivery) without calling an external API.

public sealed class PassThroughAddressVerificationService : IAddressVerificationService
Inheritance
object
PassThroughAddressVerificationService
Implements

Constructors

PassThroughAddressVerificationService(IOptionsSnapshot<AddressValidationPolicySettings>)

When Smarty is disabled, performs trimming/ZIP formatting and enforces AddressValidationPolicySettings (e.g. General Delivery) without calling an external API.

public PassThroughAddressVerificationService(IOptionsSnapshot<AddressValidationPolicySettings> policySettingsSnapshot)

Parameters

policySettingsSnapshot IOptionsSnapshot<AddressValidationPolicySettings>

Methods

ValidateAndNormalizeAsync(AddressUpdateOperationRequest, CancellationToken)

Validates the address with Smarty (or pass-through when disabled), applies per-state policy (e.g. General Delivery), and returns a normalized address or structured validation errors.

public Task<Result<AddressUpdateSuccess>> ValidateAndNormalizeAsync(AddressUpdateOperationRequest request, CancellationToken cancellationToken = default)

Parameters

request AddressUpdateOperationRequest
cancellationToken CancellationToken

Returns

Task<Result<AddressUpdateSuccess>>