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
-
objectPassThroughAddressVerificationService
- 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
policySettingsSnapshotIOptionsSnapshot<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
requestAddressUpdateOperationRequestcancellationTokenCancellationToken
Returns
- Task<Result<AddressUpdateSuccess>>