| 21 | ) |
| 22 | |
| 23 | type Identity struct { |
| 24 | IdentityID string `json:"identity_id" form:"identity_id"` |
| 25 | IdentityType string `json:"identity_type" form:"identity_type"` |
| 26 | OrganizationName string `json:"organization_name" form:"organization_name"` |
| 27 | Category string `json:"category" form:"category"` |
| 28 | FirstName string `json:"first_name" form:"first_name"` |
| 29 | LastName string `json:"last_name" form:"last_name"` |
| 30 | OtherNames string `json:"other_names" form:"other_names"` |
| 31 | Gender string `json:"gender" form:"gender"` |
| 32 | EmailAddress string `json:"email_address" form:"email_address"` |
| 33 | PhoneNumber string `json:"phone_number" form:"phone_number"` |
| 34 | Nationality string `json:"nationality" form:"nationality"` |
| 35 | Street string `json:"street" form:"street"` |
| 36 | Country string `json:"country" form:"country"` |
| 37 | State string `json:"state" form:"state"` |
| 38 | PostCode string `json:"post_code" form:"postCode"` |
| 39 | City string `json:"city" form:"city"` |
| 40 | DOB time.Time `json:"dob" form:"dob"` |
| 41 | CreatedAt time.Time `json:"created_at" form:"createdAt"` |
| 42 | MetaData map[string]interface{} `json:"meta_data" form:"metaData"` |
| 43 | } |
| 44 | |
| 45 | // convertToStructFieldName ensures consistent field name format by returning |
| 46 | // the Go struct field name (typically capitalized) for the given input |
nothing calls this directly
no outgoing calls
no test coverage detected