Class UpsServiceOptions
- Namespace
- Visus.AddressValidation.Integration.Ups.Configuration
- Assembly
- Visus.AddressValidation.Integration.Ups.dll
Configuration options for the UPS address validation service.
public sealed class UpsServiceOptions : AbstractServiceOptions, IValidatableObject
- Inheritance
-
UpsServiceOptions
- Implements
- Inherited Members
Fields
SectionName
The configuration section path used to bind these options from
appsettings.json or other configuration sources.
public const string SectionName = "AddressValidationSettings:Ups"
Field Value
Properties
AccountNumber
Gets or sets the UPS account number used to authenticate API requests.
[Required(AllowEmptyStrings = false)]
public required string AccountNumber { get; set; }
Property Value
ClientId
Gets or sets the OAuth 2.0 client ID issued by UPS for the registered application.
[Required(AllowEmptyStrings = false)]
public required string ClientId { get; set; }
Property Value
ClientSecret
Gets or sets the OAuth 2.0 client secret issued by UPS for the registered application.
[Required(AllowEmptyStrings = false)]
public required string ClientSecret { get; set; }
Property Value
EndpointUri
Gets the base URI of the provider's API endpoint, derived from the current ClientEnvironment value.
public override Uri EndpointUri { get; }