ADDRESSVALIDATION

addressvalidation.provideValidationFeedback

enum_GoogleMapsAddressvalidationV1ProvideValidationFeedbackRequestConclusion := [ "VALIDATION_CONCLUSION_UNSPECIFIED", "VALIDATED_VERSION_USED", "USER_VERSION_USED", "UNVALIDATED_VERSION_USED", "UNUSED" ]

valid {
    input.Body.conclusion == enum_GoogleMapsAddressvalidationV1ProvideValidationFeedbackRequestConclusion[_]
    input.Body.responseId == STRING
    input.ProviderMetadata.Region == STRING
}

addressvalidation.validateAddress

valid {
    input.Body.address.addressLines[_] == STRING
    input.Body.address.administrativeArea == STRING
    input.Body.address.languageCode == STRING
    input.Body.address.locality == STRING
    input.Body.address.organization == STRING
    input.Body.address.postalCode == STRING
    input.Body.address.recipients[_] == STRING
    input.Body.address.regionCode == STRING
    input.Body.address.revision == INTEGER
    input.Body.address.sortingCode == STRING
    input.Body.address.sublocality == STRING
    input.Body.enableUspsCass == BOOLEAN
    input.Body.languageOptions.returnEnglishLatinAddress == BOOLEAN
    input.Body.previousResponseId == STRING
    input.Body.sessionToken == STRING
    input.ProviderMetadata.Region == STRING
}