Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForAddressValidationStatus ¶
func PossibleValuesForAddressValidationStatus() []string
Types ¶
type AddressClient ¶
type AddressClient struct {
Client *resourcemanager.Client
}
func NewAddressClientWithBaseURI ¶
func NewAddressClientWithBaseURI(sdkApi sdkEnv.Api) (*AddressClient, error)
func (AddressClient) Validate ¶
func (c AddressClient) Validate(ctx context.Context, input AddressDetails) (result ValidateOperationResponse, err error)
Validate ...
type AddressDetails ¶
type AddressDetails struct { AddressLine1 *string `json:"addressLine1,omitempty"` AddressLine2 *string `json:"addressLine2,omitempty"` AddressLine3 *string `json:"addressLine3,omitempty"` City *string `json:"city,omitempty"` CompanyName *string `json:"companyName,omitempty"` Country *string `json:"country,omitempty"` FirstName *string `json:"firstName,omitempty"` LastName *string `json:"lastName,omitempty"` PostalCode *string `json:"postalCode,omitempty"` Region *string `json:"region,omitempty"` }
type AddressValidationStatus ¶
type AddressValidationStatus string
const ( AddressValidationStatusInvalid AddressValidationStatus = "Invalid" AddressValidationStatusValid AddressValidationStatus = "Valid" )
func (*AddressValidationStatus) UnmarshalJSON ¶
func (s *AddressValidationStatus) UnmarshalJSON(bytes []byte) error
type ValidateAddressResponse ¶
type ValidateAddressResponse struct { Status *AddressValidationStatus `json:"status,omitempty"` SuggestedAddresses *[]AddressDetails `json:"suggestedAddresses,omitempty"` ValidationMessage *string `json:"validationMessage,omitempty"` }
type ValidateOperationResponse ¶
type ValidateOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *ValidateAddressResponse }
Click to show internal directories.
Click to hide internal directories.