github.com/greenpau/go-authcrunch@v1.1.4/pkg/identity/location.go (about)

     1  // Copyright 2022 Paul Greenberg greenpau@outlook.com
     2  //
     3  // Licensed under the Apache License, Version 2.0 (the "License");
     4  // you may not use this file except in compliance with the License.
     5  // You may obtain a copy of the License at
     6  //
     7  //     http://www.apache.org/licenses/LICENSE-2.0
     8  //
     9  // Unless required by applicable law or agreed to in writing, software
    10  // distributed under the License is distributed on an "AS IS" BASIS,
    11  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    12  // See the License for the specific language governing permissions and
    13  // limitations under the License.
    14  
    15  package identity
    16  
    17  // Location repsents a location, e.g. street address.
    18  type Location struct {
    19  	Street      string `json:"street,omitempty" xml:"street,omitempty" yaml:"street,omitempty"`
    20  	City        string `json:"city,omitempty" xml:"city,omitempty" yaml:"city,omitempty"`
    21  	State       string `json:"state,omitempty" xml:"state,omitempty" yaml:"state,omitempty"`
    22  	ZipCode     string `json:"zip_code,omitempty" xml:"zip_code,omitempty" yaml:"zip_code,omitempty"`
    23  	Confirmed   bool   `json:"confirmed,omitempty" xml:"confirmed,omitempty" yaml:"confirmed,omitempty"`
    24  	Current     bool   `json:"current,omitempty" xml:"current,omitempty" yaml:"current,omitempty"`
    25  	Domicile    bool   `json:"domicile,omitempty" xml:"domicile,omitempty" yaml:"domicile,omitempty"`
    26  	Residential bool   `json:"residential,omitempty" xml:"residential,omitempty" yaml:"residential,omitempty"`
    27  	Commercial  bool   `json:"commercial,omitempty" xml:"commercial,omitempty" yaml:"commercial,omitempty"`
    28  }
    29  
    30  // NewLocation returns an instance of Location.
    31  func NewLocation() *Location {
    32  	return &Location{}
    33  }