namsorapi

package module
v2.0.15+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 17, 2021 License: AGPL-3.0 Imports: 21 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Go API client for namsorapi

NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. By default, enpoints use 1 unit per name (ex. Gender), but Ethnicity classification uses 10 to 20 units per name depending on taxonomy. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it!

Overview

This API client was generated by the OpenAPI Generator project. By using the OpenAPI-spec from a remote server, you can easily generate an API client.

  • API version: 2.0.15
  • Package version: 2.0.15
  • Build package: org.openapitools.codegen.languages.GoClientCodegen For more information, please visit http://www.namsor.com/

Installation

Install the following dependencies:

go get github.com/stretchr/testify/assert
go get golang.org/x/oauth2
go get golang.org/x/net/context
go get github.com/antihax/optional

Put the package under your project folder and add the following in import:

import "./namsorapi"

Documentation for API Endpoints

All URIs are relative to https://v2.namsor.com/NamSorAPIv2

Class Method HTTP request Description
AdminApi Anonymize Get /api2/json/anonymize/{source}/{anonymized} Activate/deactivate anonymization for a source.
AdminApi ApiStatus Get /api2/json/apiStatus Prints the current status of the classifiers. A classifier name in apiStatus corresponds to a service name in apiServices.
AdminApi ApiUsage Get /api2/json/apiUsage Print current API usage.
AdminApi ApiUsageHistory Get /api2/json/apiUsageHistory Print historical API usage.
AdminApi ApiUsageHistoryAggregate Get /api2/json/apiUsageHistoryAggregate Print historical API usage (in an aggregated view, by service, by day/hour/min).
AdminApi AvailableServices Get /api2/json/apiServices List of classification services and usage cost in Units per classification (default is 1=ONE Unit). Some API endpoints (ex. Corridor) combine multiple classifiers.
AdminApi Disable Get /api2/json/disable/{source}/{disabled} Activate/deactivate an API Key.
AdminApi Learnable Get /api2/json/learnable/{source}/{learnable} Activate/deactivate learning from a source.
AdminApi SoftwareVersion Get /api2/json/softwareVersion Get the current software version
AdminApi TaxonomyClasses Get /api2/json/taxonomyClasses/{classifierName} Print the taxonomy classes valid for the given classifier.
ChineseApi ChineseNameCandidates Get /api2/json/chineseNameCandidates/{chineseSurnameLatin}/{chineseGivenNameLatin} Identify Chinese name candidates, based on the romanized name ex. Wang Xiaoming
ChineseApi ChineseNameCandidatesBatch Post /api2/json/chineseNameCandidatesBatch Identify Chinese name candidates, based on the romanized name (firstName = chineseGivenName; lastName=chineseSurname), ex. Wang Xiaoming
ChineseApi ChineseNameCandidatesGenderBatch Post /api2/json/chineseNameCandidatesGenderBatch Identify Chinese name candidates, based on the romanized name (firstName = chineseGivenName; lastName=chineseSurname) ex. Wang Xiaoming.
ChineseApi ChineseNameGenderCandidates Get /api2/json/chineseNameGenderCandidates/{chineseSurnameLatin}/{chineseGivenNameLatin}/{knownGender} Identify Chinese name candidates, based on the romanized name ex. Wang Xiaoming - having a known gender ('male' or 'female')
ChineseApi ChineseNameMatch Get /api2/json/chineseNameMatch/{chineseSurnameLatin}/{chineseGivenNameLatin}/{chineseName} Return a score for matching Chinese name ex. 王晓明 with a romanized name ex. Wang Xiaoming
ChineseApi ChineseNameMatchBatch Post /api2/json/chineseNameMatchBatch Identify Chinese name candidates, based on the romanized name (firstName = chineseGivenName; lastName=chineseSurname), ex. Wang Xiaoming
ChineseApi GenderChineseName Get /api2/json/genderChineseName/{chineseName} Infer the likely gender of a Chinese full name ex. 王晓明
ChineseApi GenderChineseNameBatch Post /api2/json/genderChineseNameBatch Infer the likely gender of up to 100 full names ex. 王晓明
ChineseApi GenderChineseNamePinyin Get /api2/json/genderChineseNamePinyin/{chineseSurnameLatin}/{chineseGivenNameLatin} Infer the likely gender of a Chinese name in LATIN (Pinyin).
ChineseApi GenderChineseNamePinyinBatch Post /api2/json/genderChineseNamePinyinBatch Infer the likely gender of up to 100 Chinese names in LATIN (Pinyin).
ChineseApi ParseChineseName Get /api2/json/parseChineseName/{chineseName} Infer the likely first/last name structure of a name, ex. 王晓明 -> 王(surname) 晓明(given name)
ChineseApi ParseChineseNameBatch Post /api2/json/parseChineseNameBatch Infer the likely first/last name structure of a name, ex. 王晓明 -> 王(surname) 晓明(given name).
ChineseApi PinyinChineseName Get /api2/json/pinyinChineseName/{chineseName} Romanize the Chinese name to Pinyin, ex. 王晓明 -> Wang (surname) Xiaoming (given name)
ChineseApi PinyinChineseNameBatch Post /api2/json/pinyinChineseNameBatch Romanize a list of Chinese name to Pinyin, ex. 王晓明 -> Wang (surname) Xiaoming (given name).
GeneralApi NameType Get /api2/json/nameType/{properNoun} Infer the likely type of a proper noun (personal name, brand name, place name etc.)
GeneralApi NameTypeBatch Post /api2/json/nameTypeBatch Infer the likely common type of up to 100 proper nouns (personal name, brand name, place name etc.)
GeneralApi NameTypeGeo Get /api2/json/nameTypeGeo/{properNoun}/{countryIso2} Infer the likely type of a proper noun (personal name, brand name, place name etc.)
GeneralApi NameTypeGeoBatch Post /api2/json/nameTypeGeoBatch Infer the likely common type of up to 100 proper nouns (personal name, brand name, place name etc.)
JapaneseApi GenderJapaneseNameFull Get /api2/json/genderJapaneseNameFull/{japaneseName} Infer the likely gender of a Japanese full name ex. 王晓明
JapaneseApi GenderJapaneseNameFullBatch Post /api2/json/genderJapaneseNameFullBatch Infer the likely gender of up to 100 full names
JapaneseApi GenderJapaneseNamePinyin Get /api2/json/genderJapaneseName/{japaneseSurname}/{japaneseGivenName} Infer the likely gender of a Japanese name in LATIN (Pinyin).
JapaneseApi GenderJapaneseNamePinyinBatch Post /api2/json/genderJapaneseNameBatch Infer the likely gender of up to 100 Japanese names in LATIN (Pinyin).
JapaneseApi JapaneseNameGenderKanjiCandidatesBatch Post /api2/json/japaneseNameGenderKanjiCandidatesBatch Identify japanese name candidates in KANJI, based on the romanized name (firstName = japaneseGivenName; lastName=japaneseSurname) with KNOWN gender, ex. Yamamoto Sanae
JapaneseApi JapaneseNameKanjiCandidates Get /api2/json/japaneseNameKanjiCandidates/{japaneseSurnameLatin}/{japaneseGivenNameLatin}/{knownGender} Identify japanese name candidates in KANJI, based on the romanized name ex. Yamamoto Sanae - and a known gender.
JapaneseApi JapaneseNameKanjiCandidates1 Get /api2/json/japaneseNameKanjiCandidates/{japaneseSurnameLatin}/{japaneseGivenNameLatin} Identify japanese name candidates in KANJI, based on the romanized name ex. Yamamoto Sanae
JapaneseApi JapaneseNameKanjiCandidatesBatch Post /api2/json/japaneseNameKanjiCandidatesBatch Identify japanese name candidates in KANJI, based on the romanized name (firstName = japaneseGivenName; lastName=japaneseSurname), ex. Yamamoto Sanae
JapaneseApi JapaneseNameLatinCandidates Get /api2/json/japaneseNameLatinCandidates/{japaneseSurnameKanji}/{japaneseGivenNameKanji} Romanize japanese name, based on the name in Kanji.
JapaneseApi JapaneseNameLatinCandidatesBatch Post /api2/json/japaneseNameLatinCandidatesBatch Romanize japanese names, based on the name in KANJI
JapaneseApi JapaneseNameMatch Get /api2/json/japaneseNameMatch/{japaneseSurnameLatin}/{japaneseGivenNameLatin}/{japaneseName} Return a score for matching Japanese name in KANJI ex. 山本 早苗 with a romanized name ex. Yamamoto Sanae
JapaneseApi JapaneseNameMatchBatch Post /api2/json/japaneseNameMatchBatch Return a score for matching a list of Japanese names in KANJI ex. 山本 早苗 with romanized names ex. Yamamoto Sanae
JapaneseApi JapaneseNameMatchFeedbackLoop Get /api2/json/japaneseNameMatchFeedbackLoop/{japaneseSurnameLatin}/{japaneseGivenNameLatin}/{japaneseName} [CREDITS 1 UNIT] Feedback loop to better perform matching Japanese name in KANJI ex. 山本 早苗 with a romanized name ex. Yamamoto Sanae
JapaneseApi ParseJapaneseName Get /api2/json/parseJapaneseName/{japaneseName} Infer the likely first/last name structure of a name, ex. 山本 早苗 or Yamamoto Sanae
JapaneseApi ParseJapaneseNameBatch Post /api2/json/parseJapaneseNameBatch Infer the likely first/last name structure of a name, ex. 山本 早苗 or Yamamoto Sanae
PersonalApi Corridor Get /api2/json/corridor/{countryIso2From}/{firstNameFrom}/{lastNameFrom}/{countryIso2To}/{firstNameTo}/{lastNameTo} [USES 20 UNITS PER NAME COUPLE] Infer several classifications for a cross border interaction between names (ex. remit, travel, intl com)
PersonalApi CorridorBatch Post /api2/json/corridorBatch [USES 20 UNITS PER NAME PAIR] Infer several classifications for up to 100 cross border interaction between names (ex. remit, travel, intl com)
PersonalApi Country Get /api2/json/country/{personalNameFull} [USES 10 UNITS PER NAME] Infer the likely country of residence of a personal full name, or one surname. Assumes names as they are in the country of residence OR the country of origin.
PersonalApi CountryBatch Post /api2/json/countryBatch [USES 10 UNITS PER NAME] Infer the likely country of residence of up to 100 personal full names, or surnames. Assumes names as they are in the country of residence OR the country of origin.
PersonalApi Diaspora Get /api2/json/diaspora/{countryIso2}/{firstName}/{lastName} [USES 20 UNITS PER NAME] Infer the likely ethnicity/diaspora of a personal name, given a country of residence ISO2 code (ex. US, CA, AU, NZ etc.)
PersonalApi DiasporaBatch Post /api2/json/diasporaBatch [USES 20 UNITS PER NAME] Infer the likely ethnicity/diaspora of up to 100 personal names, given a country of residence ISO2 code (ex. US, CA, AU, NZ etc.)
PersonalApi Gender Get /api2/json/gender/{firstName}/{lastName} Infer the likely gender of a name.
PersonalApi GenderBatch Post /api2/json/genderBatch Infer the likely gender of up to 100 names, detecting automatically the cultural context.
PersonalApi GenderFull Get /api2/json/genderFull/{fullName} Infer the likely gender of a full name, ex. John H. Smith
PersonalApi GenderFullBatch Post /api2/json/genderFullBatch Infer the likely gender of up to 100 full names, detecting automatically the cultural context.
PersonalApi GenderFullGeo Get /api2/json/genderFullGeo/{fullName}/{countryIso2} Infer the likely gender of a full name, given a local context (ISO2 country code).
PersonalApi GenderFullGeoBatch Post /api2/json/genderFullGeoBatch Infer the likely gender of up to 100 full names, with a given cultural context (country ISO2 code).
PersonalApi GenderGeo Get /api2/json/genderGeo/{firstName}/{lastName}/{countryIso2} Infer the likely gender of a name, given a local context (ISO2 country code).
PersonalApi GenderGeoBatch Post /api2/json/genderGeoBatch Infer the likely gender of up to 100 names, each given a local context (ISO2 country code).
PersonalApi Origin Get /api2/json/origin/{firstName}/{lastName} [USES 10 UNITS PER NAME] Infer the likely country of origin of a personal name. Assumes names as they are in the country of origin. For US, CA, AU, NZ and other melting-pots : use 'diaspora' instead.
PersonalApi OriginBatch Post /api2/json/originBatch [USES 10 UNITS PER NAME] Infer the likely country of origin of up to 100 names, detecting automatically the cultural context.
PersonalApi ParseName Get /api2/json/parseName/{nameFull} Infer the likely first/last name structure of a name, ex. John Smith or SMITH, John or SMITH; John.
PersonalApi ParseNameBatch Post /api2/json/parseNameBatch Infer the likely first/last name structure of a name, ex. John Smith or SMITH, John or SMITH; John.
PersonalApi ParseNameGeo Get /api2/json/parseName/{nameFull}/{countryIso2} Infer the likely first/last name structure of a name, ex. John Smith or SMITH, John or SMITH; John. For better accuracy, provide a geographic context.
PersonalApi ParseNameGeoBatch Post /api2/json/parseNameGeoBatch Infer the likely first/last name structure of a name, ex. John Smith or SMITH, John or SMITH; John. Giving a local context improves precision.
PersonalApi UsRaceEthnicity Get /api2/json/usRaceEthnicity/{firstName}/{lastName} [USES 10 UNITS PER NAME] Infer a US resident's likely race/ethnicity according to US Census taxonomy W_NL (white, non latino), HL (hispano latino), A (asian, non latino), B_NL (black, non latino). Optionally add header X-OPTION-USRACEETHNICITY-TAXONOMY: USRACEETHNICITY-6CLASSES for two additional classes, AI_AN (American Indian or Alaskan Native) and PI (Pacific Islander).
PersonalApi UsRaceEthnicityBatch Post /api2/json/usRaceEthnicityBatch [USES 10 UNITS PER NAME] Infer up-to 100 US resident's likely race/ethnicity according to US Census taxonomy. Output is W_NL (white, non latino), HL (hispano latino), A (asian, non latino), B_NL (black, non latino). Optionally add header X-OPTION-USRACEETHNICITY-TAXONOMY: USRACEETHNICITY-6CLASSES for two additional classes, AI_AN (American Indian or Alaskan Native) and PI (Pacific Islander).
PersonalApi UsRaceEthnicityZIP5 Get /api2/json/usRaceEthnicityZIP5/{firstName}/{lastName}/{zip5Code} [USES 10 UNITS PER NAME] Infer a US resident's likely race/ethnicity according to US Census taxonomy, using (optional) ZIP5 code info. Output is W_NL (white, non latino), HL (hispano latino), A (asian, non latino), B_NL (black, non latino). Optionally add header X-OPTION-USRACEETHNICITY-TAXONOMY: USRACEETHNICITY-6CLASSES for two additional classes, AI_AN (American Indian or Alaskan Native) and PI (Pacific Islander).
PersonalApi UsZipRaceEthnicityBatch Post /api2/json/usZipRaceEthnicityBatch [USES 10 UNITS PER NAME] Infer up-to 100 US resident's likely race/ethnicity according to US Census taxonomy, with (optional) ZIP code. Output is W_NL (white, non latino), HL (hispano latino), A (asian, non latino), B_NL (black, non latino). Optionally add header X-OPTION-USRACEETHNICITY-TAXONOMY: USRACEETHNICITY-6CLASSES for two additional classes, AI_AN (American Indian or Alaskan Native) and PI (Pacific Islander).
SocialApi PhoneCode Get /api2/json/phoneCode/{firstName}/{lastName}/{phoneNumber} [USES 11 UNITS PER NAME] Infer the likely country and phone prefix, given a personal name and formatted / unformatted phone number.
SocialApi PhoneCodeBatch Post /api2/json/phoneCodeBatch [USES 11 UNITS PER NAME] Infer the likely country and phone prefix, of up to 100 personal names, detecting automatically the local context given a name and formatted / unformatted phone number.
SocialApi PhoneCodeGeo Get /api2/json/phoneCodeGeo/{firstName}/{lastName}/{phoneNumber}/{countryIso2} [USES 11 UNITS PER NAME] Infer the likely phone prefix, given a personal name and formatted / unformatted phone number, with a local context (ISO2 country of residence).
SocialApi PhoneCodeGeoBatch Post /api2/json/phoneCodeGeoBatch [USES 11 UNITS PER NAME] Infer the likely country and phone prefix, of up to 100 personal names, with a local context (ISO2 country of residence).
SocialApi PhoneCodeGeoFeedbackLoop Get /api2/json/phoneCodeGeoFeedbackLoop/{firstName}/{lastName}/{phoneNumber}/{phoneNumberE164}/{countryIso2} [CREDITS 1 UNIT] Feedback loop to better infer the likely phone prefix, given a personal name and formatted / unformatted phone number, with a local context (ISO2 country of residence).

Documentation For Models

Documentation For Authorization

api_key

  • Type: API key

Example

auth := context.WithValue(context.Background(), sw.ContextAPIKey, sw.APIKey{
	Key: "APIKEY",
	Prefix: "Bearer", // Omit if not necessary.
})
r, err := client.Service.Operation(auth, args)

Author

contact@namsor.com

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ContextOAuth2 takes an oauth2.TokenSource as authentication for the request.
	ContextOAuth2 = contextKey("token")

	// ContextBasicAuth takes BasicAuth as authentication for the request.
	ContextBasicAuth = contextKey("basic")

	// ContextAccessToken takes a string oauth2 access token as authentication for the request.
	ContextAccessToken = contextKey("accesstoken")

	// ContextAPIKey takes an APIKey as authentication for the request
	ContextAPIKey = contextKey("apikey")
)

Functions

func CacheExpires

func CacheExpires(r *http.Response) time.Time

CacheExpires helper function to determine remaining time before repeating a request.

Types

type APIClient

type APIClient struct {
	AdminApi *AdminApiService

	ChineseApi *ChineseApiService

	GeneralApi *GeneralApiService

	JapaneseApi *JapaneseApiService

	PersonalApi *PersonalApiService

	SocialApi *SocialApiService
	// contains filtered or unexported fields
}

APIClient manages communication with the NamSor API v2 API v2.0.15 In most cases there should be only one, shared, APIClient.

func NewAPIClient

func NewAPIClient(cfg *Configuration) *APIClient

NewAPIClient creates a new API client. Requires a userAgent string describing your application. optionally a custom http.Client to allow for advanced features such as caching.

func (*APIClient) ChangeBasePath

func (c *APIClient) ChangeBasePath(path string)

Change base path to allow switching to mocks

type APIKey

type APIKey struct {
	Key    string
	Prefix string
}

APIKey provides API key based authentication to a request passed via context using ContextAPIKey

type APIResponse

type APIResponse struct {
	*http.Response `json:"-"`
	Message        string `json:"message,omitempty"`
	// Operation is the name of the OpenAPI operation.
	Operation string `json:"operation,omitempty"`
	// RequestURL is the request URL. This value is always available, even if the
	// embedded *http.Response is nil.
	RequestURL string `json:"url,omitempty"`
	// Method is the HTTP method used for the request.  This value is always
	// available, even if the embedded *http.Response is nil.
	Method string `json:"method,omitempty"`
	// Payload holds the contents of the response body (which may be nil or empty).
	// This is provided here as the raw response.Body() reader will have already
	// been drained.
	Payload []byte `json:"-"`
}

func NewAPIResponse

func NewAPIResponse(r *http.Response) *APIResponse

func NewAPIResponseWithError

func NewAPIResponseWithError(errorMessage string) *APIResponse

type AdminApiService

type AdminApiService service

func (*AdminApiService) Anonymize

func (a *AdminApiService) Anonymize(ctx context.Context, source string, anonymized bool) (*http.Response, error)

AdminApiService Activate/deactivate anonymization for a source.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param source
  • @param anonymized

func (*AdminApiService) ApiStatus

AdminApiService Prints the current status of the classifiers. A classifier name in apiStatus corresponds to a service name in apiServices.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().

@return ApiClassifiersStatusOut

func (*AdminApiService) ApiUsage

AdminApiService Print current API usage.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().

@return ApiPeriodUsageOut

func (*AdminApiService) ApiUsageHistory

func (a *AdminApiService) ApiUsageHistory(ctx context.Context) (ApiUsageHistoryOut, *http.Response, error)

AdminApiService Print historical API usage.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().

@return ApiUsageHistoryOut

func (*AdminApiService) ApiUsageHistoryAggregate

func (a *AdminApiService) ApiUsageHistoryAggregate(ctx context.Context) (ApiUsageAggregatedOut, *http.Response, error)

AdminApiService Print historical API usage (in an aggregated view, by service, by day/hour/min).

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().

@return ApiUsageAggregatedOut

func (*AdminApiService) AvailableServices

func (a *AdminApiService) AvailableServices(ctx context.Context) (ApiServicesOut, *http.Response, error)

AdminApiService List of classification services and usage cost in Units per classification (default is 1=ONE Unit). Some API endpoints (ex. Corridor) combine multiple classifiers.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().

@return ApiServicesOut

func (*AdminApiService) Disable

func (a *AdminApiService) Disable(ctx context.Context, source string, disabled bool) (*http.Response, error)

AdminApiService Activate/deactivate an API Key.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param source The API Key to set as enabled/disabled.
  • @param disabled

func (*AdminApiService) Learnable

func (a *AdminApiService) Learnable(ctx context.Context, source string, learnable bool) (*http.Response, error)

AdminApiService Activate/deactivate learning from a source.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param source The API Key to set as learnable/non learnable.
  • @param learnable

func (*AdminApiService) SoftwareVersion

func (a *AdminApiService) SoftwareVersion(ctx context.Context) (SoftwareVersionOut, *http.Response, error)

AdminApiService Get the current software version

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().

@return SoftwareVersionOut

func (*AdminApiService) TaxonomyClasses

func (a *AdminApiService) TaxonomyClasses(ctx context.Context, classifierName string) (ApiClassifierTaxonomyOut, *http.Response, error)

AdminApiService Print the taxonomy classes valid for the given classifier.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param classifierName

@return ApiClassifierTaxonomyOut

type ApiBillingPeriodUsageOut

type ApiBillingPeriodUsageOut struct {
	// User API Key.
	ApiKey string `json:"apiKey,omitempty"`
	// Datetime when the user subscribed to the plan.
	SubscriptionStarted int64 `json:"subscriptionStarted,omitempty"`
	// Datetime when the the plan's current period started.
	PeriodStarted int64 `json:"periodStarted,omitempty"`
	// Datetime when the the plan's current period endend.
	PeriodEnded int64 `json:"periodEnded,omitempty"`
	// Datetime when the the plan's current period endend (in Stripe). Internal and Stripe periodicity should ~coincide.
	StripeCurrentPeriodEnd int64 `json:"stripeCurrentPeriodEnd,omitempty"`
	// Datetime when the the plan's current period started (in Stripe). Internal and Stripe periodicity should ~coincide.
	StripeCurrentPeriodStart int64 `json:"stripeCurrentPeriodStart,omitempty"`
	// Current period billing status ex OPEN.
	BillingStatus string `json:"billingStatus,omitempty"`
	// Current period usage in units (NB some API endpoints use more than one unit).
	Usage int64 `json:"usage,omitempty"`
	// Current period soft limit (reaching the limit sends an email notification).
	SoftLimit int64 `json:"softLimit,omitempty"`
	// Current period hard limit (reaching the limit sends an email notification and blocks the API Key).
	HardLimit int64 `json:"hardLimit,omitempty"`
}

The current billing period.

type ApiClassifierOut

type ApiClassifierOut struct {
	// The classifier name
	ClassifierName string `json:"classifierName,omitempty"`
	// True if the classifier is serving requests (has reached minimal learning, is not shutting down)
	Serving bool `json:"serving,omitempty"`
	// True if the classifier is learning
	Learning bool `json:"learning,omitempty"`
	// True if the classifier is shutting down
	ShuttingDown bool `json:"shuttingDown,omitempty"`
	// True if the classifier has finished the initial learning and calibrated probabilities (meanwhile, during initial learning, probabilities will be equal to -1)
	ProbabilityCalibrated bool `json:"probabilityCalibrated,omitempty"`
}

The list of classifiers and versions.

type ApiClassifierTaxonomyOut

type ApiClassifierTaxonomyOut struct {
	// Name of the classifier as per apiStatus (corresponds also to the name of the service in apiServices)
	ClassifierName string `json:"classifierName,omitempty"`
	// The taxonomy classes this classifier classifies to
	TaxonomyClasses []string `json:"taxonomyClasses,omitempty"`
}

type ApiClassifiersStatusOut

type ApiClassifiersStatusOut struct {
	SoftwareVersion SoftwareVersionOut `json:"softwareVersion,omitempty"`
	// The list of classifiers and versions.
	Classifiers []ApiClassifierOut `json:"classifiers,omitempty"`
}

type ApiCounterV2Out

type ApiCounterV2Out struct {
	ApiKey ApiKeyOut `json:"apiKey,omitempty"`
	// The apiService corresponds to the classifier name.
	ApiService string `json:"apiService,omitempty"`
	// The create datetime of the counter.
	CreatedDateTime int64 `json:"createdDateTime,omitempty"`
	// The usage of the counter.
	TotalUsage int64 `json:"totalUsage,omitempty"`
	// The flush datetime of the counter.
	LastFlushedDateTime int64 `json:"lastFlushedDateTime,omitempty"`
	// The last usage datetime of the counter.
	LastUsedDateTime int64 `json:"lastUsedDateTime,omitempty"`
	// Usage of special features, such as Chinese, Japanese.
	ServiceFeaturesUsage map[string]int64 `json:"serviceFeaturesUsage,omitempty"`
}

Detailed usage as reported by the deduplicating API counter.

type ApiKeyOut

type ApiKeyOut struct {
	// The user API Key.
	ApiKey string `json:"apiKey,omitempty"`
	// The user identifier.
	UserId string `json:"userId,omitempty"`
	// The API Key has admin role.
	Admin bool `json:"admin,omitempty"`
	// The API Key is vetted (assumed truthful) for machine learning.
	Vetted bool `json:"vetted,omitempty"`
	// The API Key is learnable (without assuming truthfulness) for machine learning. Set learnable=false and anonymized=true for highest privacy (ie. to forget data as it's processed).
	Learnable bool `json:"learnable,omitempty"`
	// The API Key is anonymized (using SHA-252 digest for logging). Set learnable=false and anonymized=true for highest privacy (ie. to forget data as it's processed).
	Anonymized bool `json:"anonymized,omitempty"`
	// The API Key has partner role.
	Partner bool `json:"partner,omitempty"`
	// The API Key is associated to a valid Stripe account.
	Striped bool `json:"striped,omitempty"`
	// The API Key has role corporate (ex SWIFT payments instead of Stripe payments).
	Corporate bool `json:"corporate,omitempty"`
	// The API Key is temporarily or permanently disabled.
	Disabled bool `json:"disabled,omitempty"`
}

The API Key.

type ApiPeriodUsageOut

type ApiPeriodUsageOut struct {
	Subscription  ApiPlanSubscriptionOut   `json:"subscription,omitempty"`
	BillingPeriod ApiBillingPeriodUsageOut `json:"billingPeriod,omitempty"`
	// Overage amount including any tax.
	OverageExclTax float64 `json:"overageExclTax,omitempty"`
	// Overage amount including tax (if applicable).
	OverageInclTax float64 `json:"overageInclTax,omitempty"`
	// Currency of the overage amount.
	OverageCurrency string `json:"overageCurrency,omitempty"`
	// Quantity above monthly quota of the current subscritpion, in units.
	OverageQuantity int64 `json:"overageQuantity,omitempty"`
}

type ApiPlanOut

type ApiPlanOut struct {
	PlanName     string  `json:"planName,omitempty"`
	PlanQuota    int64   `json:"planQuota,omitempty"`
	Price        float64 `json:"price,omitempty"`
	PriceOverage float64 `json:"priceOverage,omitempty"`
}

type ApiPlanSubscriptionOut

type ApiPlanSubscriptionOut struct {
	// User API Key.
	ApiKey string `json:"apiKey,omitempty"`
	// Datetime when the user subscribed to the current plan.
	PlanStarted int64 `json:"planStarted,omitempty"`
	// Datetime when the user subscribed to the prior plan.
	PriorPlanStarted int64 `json:"priorPlanStarted,omitempty"`
	// Datetime when the user ended the plan.
	PlanEnded int64 `json:"planEnded,omitempty"`
	// Applicable tax rate for the plan.
	TaxRate float64 `json:"taxRate,omitempty"`
	// Current plan name.
	PlanName string `json:"planName,omitempty"`
	// Current plan key (as in Stripe product).
	PlanBaseFeesKey string `json:"planBaseFeesKey,omitempty"`
	// Plan status.
	PlanStatus string `json:"planStatus,omitempty"`
	// Current plan quota in quantity of units (NB: some API use several units per name).
	PlanQuota int64 `json:"planQuota,omitempty"`
	// Current plan monthly price expressed in USD (includes a free quota).
	PriceUSD float64 `json:"priceUSD,omitempty"`
	// Current plan price for overages expressed in USD (extra price per unit above the free quota).
	PriceOverageUSD float64 `json:"priceOverageUSD,omitempty"`
	// Current plan price for overages expressed in Currency (extra price per unit above the free quota).
	Price float64 `json:"price,omitempty"`
	// Current plan price for overages expressed in Currency (extra price per unit above the free quota).
	PriceOverage float64 `json:"priceOverage,omitempty"`
	// Current plan Currency for prices.
	Currency string `json:"currency,omitempty"`
	// For USD, GBP, EUR - the factor is 1.
	CurrencyFactor float64 `json:"currencyFactor,omitempty"`
	// Stripe customer identifier.
	StripeCustomerId string `json:"stripeCustomerId,omitempty"`
	// Stripe status ex active.
	StripeStatus string `json:"stripeStatus,omitempty"`
	// Stripe subscription identifier.
	StripeSubscription string `json:"stripeSubscription,omitempty"`
	// Internal user identifier.
	UserId string `json:"userId,omitempty"`
}

The API Plan governing the subscription.

type ApiPlansOut

type ApiPlansOut struct {
	UsageRatioForDupplicates int64        `json:"usageRatioForDupplicates,omitempty"`
	CurrencyIso3             string       `json:"currencyIso3,omitempty"`
	CurrencySymbol           string       `json:"currencySymbol,omitempty"`
	Plans                    []ApiPlanOut `json:"plans,omitempty"`
}

type ApiServiceOut

type ApiServiceOut struct {
	// A service name corresponds to classifier name in apiStatus (ex. personalname_gender or personalfullname_gender)
	ServiceName string `json:"serviceName,omitempty"`
	// Groups together classifiers providing a similar service (ex. gender groups personalname_gender and personalfullname_gender)
	ServiceGroup string `json:"serviceGroup,omitempty"`
	// Indicates how many units per call this service costs (ex. the number of units per name)
	CostInUnits int32 `json:"costInUnits,omitempty"`
}

List of API Services

type ApiServicesOut

type ApiServicesOut struct {
	// List of API Services
	ApiServices []ApiServiceOut `json:"apiServices,omitempty"`
}

type ApiUsageAggregatedOut

type ApiUsageAggregatedOut struct {
	// Time unit is DAY, WEEK or MONTH depending on prior usage
	TimeUnit string `json:"timeUnit,omitempty"`
	// Start datetime of the reporting period
	PeriodStart int64 `json:"periodStart,omitempty"`
	// End datetime of the reporting period
	PeriodEnd int64 `json:"periodEnd,omitempty"`
	// Total usage in the current period
	TotalUsage int64 `json:"totalUsage,omitempty"`
	// If the history was truncaded due to data limit
	HistoryTruncated bool `json:"historyTruncated,omitempty"`
	// Data points : usage per DAY, WEEK or MONTH and per apiService
	Data [][]int32 `json:"data,omitempty"`
	// apiServices as column headers
	ColHeaders []string `json:"colHeaders,omitempty"`
	// dates as row headers
	RowHeaders []string `json:"rowHeaders,omitempty"`
}

type ApiUsageHistoryOut

type ApiUsageHistoryOut struct {
	// Detailed usage as reported by the deduplicating API counter.
	DetailedUsage []ApiCounterV2Out `json:"detailedUsage,omitempty"`
}

type BasicAuth

type BasicAuth struct {
	UserName string `json:"userName,omitempty"`
	Password string `json:"password,omitempty"`
}

BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth

type BatchCorridorIn

type BatchCorridorIn struct {
	CorridorFromTo []CorridorIn `json:"corridorFromTo,omitempty"`
}

type BatchCorridorOut

type BatchCorridorOut struct {
	// Classified corridors
	CorridorFromTo []CorridorOut `json:"corridorFromTo,omitempty"`
}

type BatchFirstLastNameDiasporaedOut

type BatchFirstLastNameDiasporaedOut struct {
	// Classified diaspora names
	PersonalNames []FirstLastNameDiasporaedOut `json:"personalNames,omitempty"`
}

Represents the output of inferring the LIKELY ethnicity from a personal name, given an country of residence.

type BatchFirstLastNameGenderIn

type BatchFirstLastNameGenderIn struct {
	PersonalNames []FirstLastNameGenderIn `json:"personalNames,omitempty"`
}

type BatchFirstLastNameGenderedOut

type BatchFirstLastNameGenderedOut struct {
	// Classified genderized names
	PersonalNames []FirstLastNameGenderedOut `json:"personalNames,omitempty"`
}

Represents the output of inferring the LIKELY gender from a list of personal names.

type BatchFirstLastNameGeoIn

type BatchFirstLastNameGeoIn struct {
	PersonalNames []FirstLastNameGeoIn `json:"personalNames,omitempty"`
}

type BatchFirstLastNameGeoZippedIn

type BatchFirstLastNameGeoZippedIn struct {
	PersonalNames []FirstLastNameGeoZippedIn `json:"personalNames,omitempty"`
}

type BatchFirstLastNameIn

type BatchFirstLastNameIn struct {
	PersonalNames []FirstLastNameIn `json:"personalNames,omitempty"`
}

type BatchFirstLastNameOriginedOut

type BatchFirstLastNameOriginedOut struct {
	// Classified origined names
	PersonalNames []FirstLastNameOriginedOut `json:"personalNames,omitempty"`
}

Represents the output of inferring the LIKELY origin from a list of personal names.

type BatchFirstLastNamePhoneCodedOut

type BatchFirstLastNamePhoneCodedOut struct {
	// Classified phone-coded names
	PersonalNamesWithPhoneNumbers []FirstLastNamePhoneCodedOut `json:"personalNamesWithPhoneNumbers,omitempty"`
}

Represents the output of inferring the LIKELY country and phone code of personal names+phones.

type BatchFirstLastNamePhoneNumberGeoIn

type BatchFirstLastNamePhoneNumberGeoIn struct {
	PersonalNamesWithPhoneNumbers []FirstLastNamePhoneNumberGeoIn `json:"personalNamesWithPhoneNumbers,omitempty"`
}

type BatchFirstLastNamePhoneNumberIn

type BatchFirstLastNamePhoneNumberIn struct {
	PersonalNamesWithPhoneNumbers []FirstLastNamePhoneNumberIn `json:"personalNamesWithPhoneNumbers,omitempty"`
}

type BatchFirstLastNameUsRaceEthnicityOut

type BatchFirstLastNameUsRaceEthnicityOut struct {
	// Classified US 'race'/ethnicized names
	PersonalNames []FirstLastNameUsRaceEthnicityOut `json:"personalNames,omitempty"`
}

Represents the output of inferring the LIKELY US 'race/ethnicity' from a personal name, given US country of residence and (optionally) a ZIP5 code.

type BatchMatchPersonalFirstLastNameIn

type BatchMatchPersonalFirstLastNameIn struct {
	PersonalNames []MatchPersonalFirstLastNameIn `json:"personalNames,omitempty"`
}

type BatchNameGeoIn

type BatchNameGeoIn struct {
	ProperNouns []NameGeoIn `json:"properNouns,omitempty"`
}

type BatchNameIn

type BatchNameIn struct {
	ProperNouns []NameIn `json:"properNouns,omitempty"`
}

type BatchNameMatchCandidatesOut

type BatchNameMatchCandidatesOut struct {
	// Classified matched names
	NamesAndMatchCandidates []NameMatchCandidatesOut `json:"namesAndMatchCandidates,omitempty"`
}

type BatchNameMatchedOut

type BatchNameMatchedOut struct {
	// Classified matched names
	MatchedNames []NameMatchedOut `json:"matchedNames,omitempty"`
}

type BatchParsedFullNameGeoIn

type BatchParsedFullNameGeoIn struct {
	PersonalNames []ParsedFullNameGeoIn `json:"personalNames,omitempty"`
}

type BatchParsedFullNameIn

type BatchParsedFullNameIn struct {
	PersonalNames []ParsedFullNameIn `json:"personalNames,omitempty"`
}

type BatchPersonalNameGenderedOut

type BatchPersonalNameGenderedOut struct {
	// Classified genderized names
	PersonalNames []PersonalNameGenderedOut `json:"personalNames,omitempty"`
}

type BatchPersonalNameGeoIn

type BatchPersonalNameGeoIn struct {
	PersonalNames []PersonalNameGeoIn `json:"personalNames,omitempty"`
}

type BatchPersonalNameGeoOut

type BatchPersonalNameGeoOut struct {
	// Classified geo names
	PersonalNames []PersonalNameGeoOut `json:"personalNames,omitempty"`
}

type BatchPersonalNameIn

type BatchPersonalNameIn struct {
	PersonalNames []PersonalNameIn `json:"personalNames,omitempty"`
}

type BatchPersonalNameParsedOut

type BatchPersonalNameParsedOut struct {
	// Classified parsed names
	PersonalNames []PersonalNameParsedOut `json:"personalNames,omitempty"`
}

type BatchProperNounCategorizedOut

type BatchProperNounCategorizedOut struct {
	// Classified typed proper names
	ProperNouns []ProperNounCategorizedOut `json:"properNouns,omitempty"`
}

Represents the output of inferring the common type (anthroponym, toponym, brand, etc.) from a list of proper names.

type BillingHistoryOut

type BillingHistoryOut struct {
	StripeInvoices    []InvoiceOut `json:"stripeInvoices,omitempty"`
	CorporateInvoices []InvoiceOut `json:"corporateInvoices,omitempty"`
}

type BillingInfoInOut

type BillingInfoInOut struct {
	BillingEmail      string `json:"billingEmail,omitempty"`
	PreferredCurrency string `json:"preferredCurrency,omitempty"`
	CustomerName      string `json:"customerName,omitempty"`
	CustomerPhone     string `json:"customerPhone,omitempty"`
	AddressLine1      string `json:"addressLine1,omitempty"`
	AddressLine2      string `json:"addressLine2,omitempty"`
	AddressCity       string `json:"addressCity,omitempty"`
	AddressPostalCode string `json:"addressPostalCode,omitempty"`
	AddressState      string `json:"addressState,omitempty"`
	AddressCountry    string `json:"addressCountry,omitempty"`
	VatID             string `json:"vatID,omitempty"`
}

type CacheMetricsOut

type CacheMetricsOut struct {
	CacheName  string `json:"cacheName,omitempty"`
	CacheStats string `json:"cacheStats,omitempty"`
}

Simple metrics system caches

type ChineseApiService

type ChineseApiService service

func (*ChineseApiService) ChineseNameCandidates

func (a *ChineseApiService) ChineseNameCandidates(ctx context.Context, chineseSurnameLatin string, chineseGivenNameLatin string) (NameMatchCandidatesOut, *http.Response, error)

ChineseApiService Identify Chinese name candidates, based on the romanized name ex. Wang Xiaoming

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param chineseSurnameLatin
  • @param chineseGivenNameLatin

@return NameMatchCandidatesOut

func (*ChineseApiService) ChineseNameCandidatesBatch

func (a *ChineseApiService) ChineseNameCandidatesBatch(ctx context.Context, localVarOptionals *ChineseNameCandidatesBatchOpts) (BatchNameMatchCandidatesOut, *http.Response, error)

func (*ChineseApiService) ChineseNameCandidatesGenderBatch

func (a *ChineseApiService) ChineseNameCandidatesGenderBatch(ctx context.Context, localVarOptionals *ChineseNameCandidatesGenderBatchOpts) (BatchNameMatchCandidatesOut, *http.Response, error)

func (*ChineseApiService) ChineseNameGenderCandidates

func (a *ChineseApiService) ChineseNameGenderCandidates(ctx context.Context, chineseSurnameLatin string, chineseGivenNameLatin string, knownGender string) (NameMatchCandidatesOut, *http.Response, error)

ChineseApiService Identify Chinese name candidates, based on the romanized name ex. Wang Xiaoming - having a known gender ('male' or 'female')

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param chineseSurnameLatin
  • @param chineseGivenNameLatin
  • @param knownGender

@return NameMatchCandidatesOut

func (*ChineseApiService) ChineseNameMatch

func (a *ChineseApiService) ChineseNameMatch(ctx context.Context, chineseSurnameLatin string, chineseGivenNameLatin string, chineseName string) (NameMatchedOut, *http.Response, error)

ChineseApiService Return a score for matching Chinese name ex. 王晓明 with a romanized name ex. Wang Xiaoming

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param chineseSurnameLatin
  • @param chineseGivenNameLatin
  • @param chineseName

@return NameMatchedOut

func (*ChineseApiService) ChineseNameMatchBatch

func (a *ChineseApiService) ChineseNameMatchBatch(ctx context.Context, localVarOptionals *ChineseNameMatchBatchOpts) (BatchNameMatchedOut, *http.Response, error)

func (*ChineseApiService) GenderChineseName

func (a *ChineseApiService) GenderChineseName(ctx context.Context, chineseName string) (PersonalNameGenderedOut, *http.Response, error)

ChineseApiService Infer the likely gender of a Chinese full name ex. 王晓明

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param chineseName

@return PersonalNameGenderedOut

func (*ChineseApiService) GenderChineseNameBatch

func (a *ChineseApiService) GenderChineseNameBatch(ctx context.Context, localVarOptionals *GenderChineseNameBatchOpts) (BatchPersonalNameGenderedOut, *http.Response, error)

func (*ChineseApiService) GenderChineseNamePinyin

func (a *ChineseApiService) GenderChineseNamePinyin(ctx context.Context, chineseSurnameLatin string, chineseGivenNameLatin string) (FirstLastNameGenderedOut, *http.Response, error)

ChineseApiService Infer the likely gender of a Chinese name in LATIN (Pinyin).

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param chineseSurnameLatin
  • @param chineseGivenNameLatin

@return FirstLastNameGenderedOut

func (*ChineseApiService) GenderChineseNamePinyinBatch

func (a *ChineseApiService) GenderChineseNamePinyinBatch(ctx context.Context, localVarOptionals *GenderChineseNamePinyinBatchOpts) (BatchFirstLastNameGenderedOut, *http.Response, error)

func (*ChineseApiService) ParseChineseName

func (a *ChineseApiService) ParseChineseName(ctx context.Context, chineseName string) (PersonalNameParsedOut, *http.Response, error)

ChineseApiService Infer the likely first/last name structure of a name, ex. 王晓明 -> 王(surname) 晓明(given name)

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param chineseName

@return PersonalNameParsedOut

func (*ChineseApiService) ParseChineseNameBatch

func (a *ChineseApiService) ParseChineseNameBatch(ctx context.Context, localVarOptionals *ParseChineseNameBatchOpts) (BatchPersonalNameParsedOut, *http.Response, error)

func (*ChineseApiService) PinyinChineseName

func (a *ChineseApiService) PinyinChineseName(ctx context.Context, chineseName string) (PersonalNameParsedOut, *http.Response, error)

ChineseApiService Romanize the Chinese name to Pinyin, ex. 王晓明 -> Wang (surname) Xiaoming (given name)

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param chineseName

@return PersonalNameParsedOut

func (*ChineseApiService) PinyinChineseNameBatch

func (a *ChineseApiService) PinyinChineseNameBatch(ctx context.Context, localVarOptionals *PinyinChineseNameBatchOpts) (BatchPersonalNameParsedOut, *http.Response, error)

type ChineseNameCandidatesBatchOpts

type ChineseNameCandidatesBatchOpts struct {
	BatchFirstLastNameIn optional.Interface
}

type ChineseNameCandidatesGenderBatchOpts

type ChineseNameCandidatesGenderBatchOpts struct {
	BatchFirstLastNameGenderIn optional.Interface
}

type ChineseNameMatchBatchOpts

type ChineseNameMatchBatchOpts struct {
	BatchMatchPersonalFirstLastNameIn optional.Interface
}

type ClassifierMetricsOut

type ClassifierMetricsOut struct {
	SoftwareVersion                 string                    `json:"softwareVersion,omitempty"`
	HostAddress                     string                    `json:"hostAddress,omitempty"`
	LearnQueueSize                  int32                     `json:"learnQueueSize,omitempty"`
	BufferSize                      int32                     `json:"bufferSize,omitempty"`
	PreClassifyQueueSize            int32                     `json:"preClassifyQueueSize,omitempty"`
	FactKeysSize                    int32                     `json:"factKeysSize,omitempty"`
	FactsLearned                    int64                     `json:"factsLearned,omitempty"`
	ClassifyDurationsCurrent        float64                   `json:"classifyDurationsCurrent,omitempty"`
	ClassifyDurationsSummary        float64                   `json:"classifyDurationsSummary,omitempty"`
	LearnDurationsCurrent           float64                   `json:"learnDurationsCurrent,omitempty"`
	LearnDurationsSummary           float64                   `json:"learnDurationsSummary,omitempty"`
	ClassifierName                  string                    `json:"classifierName,omitempty"`
	FeaturesSize                    int64                     `json:"featuresSize,omitempty"`
	AiVettedEstimateTotal           int64                     `json:"aiVettedEstimateTotal,omitempty"`
	AiVettedEstimatePrecision       float64                   `json:"aiVettedEstimatePrecision,omitempty"`
	AiVettedEstimateRecall          float64                   `json:"aiVettedEstimateRecall,omitempty"`
	AiVettedLearnTotal              int64                     `json:"aiVettedLearnTotal,omitempty"`
	AiNonVettedEstimateTotal        int64                     `json:"aiNonVettedEstimateTotal,omitempty"`
	AiNonVettedEstimatePrecision    float64                   `json:"aiNonVettedEstimatePrecision,omitempty"`
	AiNonVettedEstimateRecall       float64                   `json:"aiNonVettedEstimateRecall,omitempty"`
	AiNonVettedLearnTotal           int64                     `json:"aiNonVettedLearnTotal,omitempty"`
	MetricTimeStamp                 int64                     `json:"metricTimeStamp,omitempty"`
	AiStartTime                     int64                     `json:"aiStartTime,omitempty"`
	AiVettedExpectedClassMetrics    []ExpectedClassMetricsOut `json:"aiVettedExpectedClassMetrics,omitempty"`
	AiNonVettedExpectedClassMetrics []ExpectedClassMetricsOut `json:"aiNonVettedExpectedClassMetrics,omitempty"`
}

Simple metrics on a classifier

type Configuration

type Configuration struct {
	BasePath      string            `json:"basePath,omitempty"`
	Host          string            `json:"host,omitempty"`
	Scheme        string            `json:"scheme,omitempty"`
	DefaultHeader map[string]string `json:"defaultHeader,omitempty"`
	UserAgent     string            `json:"userAgent,omitempty"`
	HTTPClient    *http.Client
}

func NewConfiguration

func NewConfiguration() *Configuration

func (*Configuration) AddDefaultHeader

func (c *Configuration) AddDefaultHeader(key string, value string)

type CorridorBatchOpts

type CorridorBatchOpts struct {
	BatchCorridorIn optional.Interface
}

type CorridorIn

type CorridorIn struct {
	Id                   string             `json:"id,omitempty"`
	FirstLastNameGeoFrom FirstLastNameGeoIn `json:"firstLastNameGeoFrom,omitempty"`
	FirstLastNameGeoTo   FirstLastNameGeoIn `json:"firstLastNameGeoTo,omitempty"`
}

Represent any transnational interaction between names (ex. remittance, communication, cross-border investment, airline travel

type CorridorOut

type CorridorOut struct {
	Id                         string                     `json:"id,omitempty"`
	FirstLastNameGenderedOut   FirstLastNameGenderedOut   `json:"FirstLastNameGenderedOut,omitempty"`
	FirstLastNameOriginedOut   FirstLastNameOriginedOut   `json:"FirstLastNameOriginedOut,omitempty"`
	FirstLastNameDiasporaedOut FirstLastNameDiasporaedOut `json:"FirstLastNameDiasporaedOut,omitempty"`
	Script                     string                     `json:"script,omitempty"`
}

Represent multiple classifications for corridor sender and receiver (gender, country, origin, diaspora)

type CountryBatchOpts

type CountryBatchOpts struct {
	BatchPersonalNameIn optional.Interface
}

type CurrenciesOut

type CurrenciesOut struct {
	CurrenciesIso3 []string `json:"currenciesIso3,omitempty"`
}

type DeployUiOut

type DeployUiOut struct {
	ErrorMessage string `json:"errorMessage,omitempty"`
	Succeeded    bool   `json:"succeeded,omitempty"`
}

type DiasporaBatchOpts

type DiasporaBatchOpts struct {
	BatchFirstLastNameGeoIn optional.Interface
}

type ExpectedClassMetricsOut

type ExpectedClassMetricsOut struct {
	ClassifierName      string  `json:"classifierName,omitempty"`
	ExpectedClass       string  `json:"expectedClass,omitempty"`
	AiEstimateTotal     int64   `json:"aiEstimateTotal,omitempty"`
	AiEstimatePrecision float64 `json:"aiEstimatePrecision,omitempty"`
	AiEstimateRecall    float64 `json:"aiEstimateRecall,omitempty"`
	AiLearnTotal        int64   `json:"aiLearnTotal,omitempty"`
}

Simple metrics on a classifier, for a given expected class

type FeedbackLoopOut

type FeedbackLoopOut struct {
	// Number of units recredited as per feedback loop successful classification
	FeedbackCredits int64 `json:"feedbackCredits,omitempty"`
}

type FirstLastNameDiasporaedOut

type FirstLastNameDiasporaedOut struct {
	Script string `json:"script,omitempty"`
	Id     string `json:"id,omitempty"`
	// The first name (also known as given name)
	FirstName string `json:"firstName,omitempty"`
	// The last name (also known as family name, or surname)
	LastName string `json:"lastName,omitempty"`
	// Compatibility to NamSor_v1 Diaspora score value. Higher score is better, but score is not normalized. Use calibratedProbability if available.
	Score float64 `json:"score,omitempty"`
	// The second best alternative ethnicity
	EthnicityAlt string `json:"ethnicityAlt,omitempty"`
	// The most likely ethnicity
	Ethnicity string `json:"ethnicity,omitempty"`
	// Indicates if the output ethnicity is based on machine learning only, or further lifted as a known fact by a country-specific rule. Let us know if you believe ethnicity is incorrect on a specific case where lifted is true.
	Lifted bool `json:"lifted,omitempty"`
	// From input data, the countryIso2 of geographic context (US,CA etc.)
	CountryIso2 string `json:"countryIso2,omitempty"`
	// List most likely ethnicities (top 10)
	EthnicitiesTop []string `json:"ethnicitiesTop,omitempty"`
}

Represents the output of inferring the LIKELY ethnicity from a personal name, given an country of residence.

type FirstLastNameGenderIn

type FirstLastNameGenderIn struct {
	Id        string `json:"id,omitempty"`
	FirstName string `json:"firstName,omitempty"`
	LastName  string `json:"lastName,omitempty"`
	// The known gender of the name
	Gender string `json:"gender,omitempty"`
}

type FirstLastNameGenderedOut

type FirstLastNameGenderedOut struct {
	Script string `json:"script,omitempty"`
	Id     string `json:"id,omitempty"`
	// The first name (also known as given name)
	FirstName string `json:"firstName,omitempty"`
	// The last name (also known as family name, or surname)
	LastName string `json:"lastName,omitempty"`
	// Most likely gender
	LikelyGender string `json:"likelyGender,omitempty"`
	// Compatibility to NamSor_v1 Gender Scale M[-1..U..+1]F value
	GenderScale float64 `json:"genderScale,omitempty"`
	// Compatibility to NamSor_v1 Gender score value. Higher score is better, but score is not normalized. Use calibratedProbability if available.
	Score float64 `json:"score,omitempty"`
	// The calibrated probability for inferred gender to have been guessed correctly.
	ProbabilityCalibrated float64 `json:"probabilityCalibrated,omitempty"`
}

Represents the output of inferring the LIKELY gender from a personal name.

type FirstLastNameGeoIn

type FirstLastNameGeoIn struct {
	Id          string `json:"id,omitempty"`
	FirstName   string `json:"firstName,omitempty"`
	LastName    string `json:"lastName,omitempty"`
	CountryIso2 string `json:"countryIso2,omitempty"`
}

type FirstLastNameGeoZippedIn

type FirstLastNameGeoZippedIn struct {
	Id          string `json:"id,omitempty"`
	FirstName   string `json:"firstName,omitempty"`
	LastName    string `json:"lastName,omitempty"`
	CountryIso2 string `json:"countryIso2,omitempty"`
	ZipCode     string `json:"zipCode,omitempty"`
}

type FirstLastNameIn

type FirstLastNameIn struct {
	Id        string `json:"id,omitempty"`
	FirstName string `json:"firstName,omitempty"`
	LastName  string `json:"lastName,omitempty"`
}

type FirstLastNameOriginedOut

type FirstLastNameOriginedOut struct {
	Script string `json:"script,omitempty"`
	Id     string `json:"id,omitempty"`
	// The first name (also known as given name)
	FirstName string `json:"firstName,omitempty"`
	// The last name (also known as family name, or surname)
	LastName string `json:"lastName,omitempty"`
	// Most likely country of Origin
	CountryOrigin string `json:"countryOrigin,omitempty"`
	// Second best alternative : country of Origin
	CountryOriginAlt string `json:"countryOriginAlt,omitempty"`
	// List countries of Origin (top 10)
	CountriesOriginTop []string `json:"countriesOriginTop,omitempty"`
	// Compatibility to NamSor_v1 Origin score value. Higher score is better, but score is not normalized. Use calibratedProbability if available.
	Score float64 `json:"score,omitempty"`
	// Most likely region of Origin (based on countryOrigin ISO2 code)
	RegionOrigin string `json:"regionOrigin,omitempty"`
	// Most likely top region of Origin (based on countryOrigin ISO2 code)
	TopRegionOrigin string `json:"topRegionOrigin,omitempty"`
	// Most likely sub region of Origin (based on countryOrigin ISO2 code)
	SubRegionOrigin string `json:"subRegionOrigin,omitempty"`
	// The calibrated probability for countryOrigin to have been guessed correctly.
	ProbabilityCalibrated float64 `json:"probabilityCalibrated,omitempty"`
	// The calibrated probability for countryOrigin OR countryOriginAlt to have been guessed correctly.
	ProbabilityAltCalibrated float64 `json:"probabilityAltCalibrated,omitempty"`
}

Represents the output of inferring the LIKELY country of Origin from a personal name.

type FirstLastNameOut

type FirstLastNameOut struct {
	Script string `json:"script,omitempty"`
	Id     string `json:"id,omitempty"`
	// The first name (also known as given name)
	FirstName string `json:"firstName,omitempty"`
	// The last name (also known as family name, or surname)
	LastName string `json:"lastName,omitempty"`
}

First / last name structure corresponding to the most likely parsing.

type FirstLastNamePhoneCodedOut

type FirstLastNamePhoneCodedOut struct {
	Script string `json:"script,omitempty"`
	Id     string `json:"id,omitempty"`
	// The first name (also known as given name)
	FirstName string `json:"firstName,omitempty"`
	// The last name (also known as family name, or surname)
	LastName string `json:"lastName,omitempty"`
	// The normalized phone number, verified using libphonenumber.
	InternationalPhoneNumberVerified string `json:"internationalPhoneNumberVerified,omitempty"`
	// The phone ISO2 country code, verified using libphonenumber.
	PhoneCountryIso2Verified string `json:"phoneCountryIso2Verified,omitempty"`
	// The phone country code of the phone number, verified using libphonenumber.
	PhoneCountryCode int32 `json:"phoneCountryCode,omitempty"`
	// The best alternative phone country code of the phone number.
	PhoneCountryCodeAlt int32 `json:"phoneCountryCodeAlt,omitempty"`
	// The likely country of the phone number.
	PhoneCountryIso2 string `json:"phoneCountryIso2,omitempty"`
	// The best alternative country of the phone number.
	PhoneCountryIso2Alt string `json:"phoneCountryIso2Alt,omitempty"`
	// The likely country of origin of the name.
	OriginCountryIso2 string `json:"originCountryIso2,omitempty"`
	// The best alternative country of origin of the name.
	OriginCountryIso2Alt string `json:"originCountryIso2Alt,omitempty"`
	// The input phone number.
	PhoneNumber string `json:"phoneNumber,omitempty"`
	// Indicates if the phone number could be positively verified using libphonenumber.
	Verified bool `json:"verified,omitempty"`
	// Higher score is better, but score is not normalized. Use calibratedProbability if available.
	Score       float64 `json:"score,omitempty"`
	CountryIso2 string  `json:"countryIso2,omitempty"`
}

Represents the output of inferring the LIKELY country and phone code from a personal name and phone number.

type FirstLastNamePhoneNumberGeoIn

type FirstLastNamePhoneNumberGeoIn struct {
	Id                       string                   `json:"id,omitempty"`
	FirstName                string                   `json:"firstName,omitempty"`
	LastName                 string                   `json:"lastName,omitempty"`
	PhoneNumber              string                   `json:"phoneNumber,omitempty"`
	FirstLastNameOriginedOut FirstLastNameOriginedOut `json:"FirstLastNameOriginedOut,omitempty"`
	CountryIso2              string                   `json:"countryIso2,omitempty"`
	CountryIso2Alt           string                   `json:"countryIso2Alt,omitempty"`
}

type FirstLastNamePhoneNumberIn

type FirstLastNamePhoneNumberIn struct {
	Id                       string                   `json:"id,omitempty"`
	FirstName                string                   `json:"firstName,omitempty"`
	LastName                 string                   `json:"lastName,omitempty"`
	PhoneNumber              string                   `json:"phoneNumber,omitempty"`
	FirstLastNameOriginedOut FirstLastNameOriginedOut `json:"FirstLastNameOriginedOut,omitempty"`
}

type FirstLastNameUsRaceEthnicityOut

type FirstLastNameUsRaceEthnicityOut struct {
	Script string `json:"script,omitempty"`
	Id     string `json:"id,omitempty"`
	// The first name (also known as given name)
	FirstName string `json:"firstName,omitempty"`
	// The last name (also known as family name, or surname)
	LastName string `json:"lastName,omitempty"`
	// Second most likely US 'race'/ethnicity
	RaceEthnicityAlt string `json:"raceEthnicityAlt,omitempty"`
	// Most likely US 'race'/ethnicity
	RaceEthnicity string `json:"raceEthnicity,omitempty"`
	// Higher score is better, but score is not normalized. Use calibratedProbability if available.
	Score float64 `json:"score,omitempty"`
	// List 'race'/ethnicities
	RaceEthnicitiesTop []string `json:"raceEthnicitiesTop,omitempty"`
	// The calibrated probability for raceEthnicity to have been guessed correctly.
	ProbabilityCalibrated float64 `json:"probabilityCalibrated,omitempty"`
	// The calibrated probability for raceEthnicity OR raceEthnicityAlt to have been guessed correctly.
	ProbabilityAltCalibrated float64 `json:"probabilityAltCalibrated,omitempty"`
}

Represents the output of inferring the LIKELY US 'race/ethnicity' from a personal name, given US country of residence and (optionally) a ZIP5 code.

type GenderBatchOpts

type GenderBatchOpts struct {
	BatchFirstLastNameIn optional.Interface
}

type GenderChineseNameBatchOpts

type GenderChineseNameBatchOpts struct {
	BatchPersonalNameIn optional.Interface
}

type GenderChineseNamePinyinBatchOpts

type GenderChineseNamePinyinBatchOpts struct {
	BatchFirstLastNameIn optional.Interface
}

type GenderFullBatchOpts

type GenderFullBatchOpts struct {
	BatchPersonalNameIn optional.Interface
}

type GenderFullGeoBatchOpts

type GenderFullGeoBatchOpts struct {
	BatchPersonalNameGeoIn optional.Interface
}

type GenderGeoBatchOpts

type GenderGeoBatchOpts struct {
	BatchFirstLastNameGeoIn optional.Interface
}

type GenderJapaneseNameFullBatchOpts

type GenderJapaneseNameFullBatchOpts struct {
	BatchPersonalNameIn optional.Interface
}

type GenderJapaneseNamePinyinBatchOpts

type GenderJapaneseNamePinyinBatchOpts struct {
	BatchFirstLastNameIn optional.Interface
}

type GeneralApiService

type GeneralApiService service

func (*GeneralApiService) NameType

GeneralApiService Infer the likely type of a proper noun (personal name, brand name, place name etc.)

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param properNoun

@return ProperNounCategorizedOut

func (*GeneralApiService) NameTypeBatch

func (a *GeneralApiService) NameTypeBatch(ctx context.Context, localVarOptionals *NameTypeBatchOpts) (BatchProperNounCategorizedOut, *http.Response, error)

func (*GeneralApiService) NameTypeGeo

func (a *GeneralApiService) NameTypeGeo(ctx context.Context, properNoun string, countryIso2 string) (ProperNounCategorizedOut, *http.Response, error)

GeneralApiService Infer the likely type of a proper noun (personal name, brand name, place name etc.)

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param properNoun
  • @param countryIso2

@return ProperNounCategorizedOut

func (*GeneralApiService) NameTypeGeoBatch

func (a *GeneralApiService) NameTypeGeoBatch(ctx context.Context, localVarOptionals *NameTypeGeoBatchOpts) (BatchProperNounCategorizedOut, *http.Response, error)

type GenericOpenAPIError

type GenericOpenAPIError struct {
	// contains filtered or unexported fields
}

GenericOpenAPIError Provides access to the body, error and model on returned errors.

func (GenericOpenAPIError) Body

func (e GenericOpenAPIError) Body() []byte

Body returns the raw bytes of the response

func (GenericOpenAPIError) Error

func (e GenericOpenAPIError) Error() string

Error returns non-empty string if there was an error.

func (GenericOpenAPIError) Model

func (e GenericOpenAPIError) Model() interface{}

Model returns the unpacked model of the error

type InlineObject

type InlineObject struct {
	StripeToken string `json:"stripeToken,omitempty"`
	StripeEmail string `json:"stripeEmail,omitempty"`
}

type InvoiceItemOut

type InvoiceItemOut struct {
	ItemId           string `json:"itemId,omitempty"`
	Amount           int64  `json:"amount,omitempty"`
	Currency         string `json:"currency,omitempty"`
	Description      string `json:"description,omitempty"`
	Quantity         int64  `json:"quantity,omitempty"`
	Subscription     string `json:"subscription,omitempty"`
	SubscriptionItem string `json:"subscriptionItem,omitempty"`
	InvoiceItemType  string `json:"invoiceItemType,omitempty"`
	PlanNickname     string `json:"planNickname,omitempty"`
	PlanDesc         string `json:"planDesc,omitempty"`
	PlanName         string `json:"planName,omitempty"`
}

type InvoiceOut

type InvoiceOut struct {
	Items            []InvoiceItemOut `json:"items,omitempty"`
	UserId           string           `json:"userId,omitempty"`
	InvoiceId        string           `json:"invoiceId,omitempty"`
	IsStriped        bool             `json:"isStriped,omitempty"`
	StripeCustomerId string           `json:"stripeCustomerId,omitempty"`
	AmountDue        int64            `json:"amountDue,omitempty"`
	AmountPaid       int64            `json:"amountPaid,omitempty"`
	AmountRemaining  int64            `json:"amountRemaining,omitempty"`
	Attempted        bool             `json:"attempted,omitempty"`
	Currency         string           `json:"currency,omitempty"`
	InvoiceDate      time.Time        `json:"invoiceDate,omitempty"`
	DueDate          time.Time        `json:"dueDate,omitempty"`
	Description      string           `json:"description,omitempty"`
	InvoicePdf       string           `json:"invoicePdf,omitempty"`
	PeriodStart      time.Time        `json:"periodStart,omitempty"`
	PeriodEnd        time.Time        `json:"periodEnd,omitempty"`
	ReceiptNumber    string           `json:"receiptNumber,omitempty"`
	InvoiceStatus    string           `json:"invoiceStatus,omitempty"`
	SubTotal         int64            `json:"subTotal,omitempty"`
	Tax              int64            `json:"tax,omitempty"`
	TaxPercent       int64            `json:"taxPercent,omitempty"`
	Total            int64            `json:"total,omitempty"`
}

type JapaneseApiService

type JapaneseApiService service

func (*JapaneseApiService) GenderJapaneseNameFull

func (a *JapaneseApiService) GenderJapaneseNameFull(ctx context.Context, japaneseName string) (PersonalNameGenderedOut, *http.Response, error)

JapaneseApiService Infer the likely gender of a Japanese full name ex. 王晓明

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param japaneseName

@return PersonalNameGenderedOut

func (*JapaneseApiService) GenderJapaneseNameFullBatch

func (a *JapaneseApiService) GenderJapaneseNameFullBatch(ctx context.Context, localVarOptionals *GenderJapaneseNameFullBatchOpts) (BatchPersonalNameGenderedOut, *http.Response, error)

func (*JapaneseApiService) GenderJapaneseNamePinyin

func (a *JapaneseApiService) GenderJapaneseNamePinyin(ctx context.Context, japaneseSurname string, japaneseGivenName string) (FirstLastNameGenderedOut, *http.Response, error)

JapaneseApiService Infer the likely gender of a Japanese name in LATIN (Pinyin).

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param japaneseSurname
  • @param japaneseGivenName

@return FirstLastNameGenderedOut

func (*JapaneseApiService) GenderJapaneseNamePinyinBatch

func (a *JapaneseApiService) GenderJapaneseNamePinyinBatch(ctx context.Context, localVarOptionals *GenderJapaneseNamePinyinBatchOpts) (BatchFirstLastNameGenderedOut, *http.Response, error)

func (*JapaneseApiService) JapaneseNameGenderKanjiCandidatesBatch

func (a *JapaneseApiService) JapaneseNameGenderKanjiCandidatesBatch(ctx context.Context, localVarOptionals *JapaneseNameGenderKanjiCandidatesBatchOpts) (BatchNameMatchCandidatesOut, *http.Response, error)

func (*JapaneseApiService) JapaneseNameKanjiCandidates

func (a *JapaneseApiService) JapaneseNameKanjiCandidates(ctx context.Context, japaneseSurnameLatin string, japaneseGivenNameLatin string, knownGender string) (NameMatchCandidatesOut, *http.Response, error)

JapaneseApiService Identify japanese name candidates in KANJI, based on the romanized name ex. Yamamoto Sanae - and a known gender.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param japaneseSurnameLatin
  • @param japaneseGivenNameLatin
  • @param knownGender

@return NameMatchCandidatesOut

func (*JapaneseApiService) JapaneseNameKanjiCandidates1

func (a *JapaneseApiService) JapaneseNameKanjiCandidates1(ctx context.Context, japaneseSurnameLatin string, japaneseGivenNameLatin string) (NameMatchCandidatesOut, *http.Response, error)

JapaneseApiService Identify japanese name candidates in KANJI, based on the romanized name ex. Yamamoto Sanae

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param japaneseSurnameLatin
  • @param japaneseGivenNameLatin

@return NameMatchCandidatesOut

func (*JapaneseApiService) JapaneseNameKanjiCandidatesBatch

func (a *JapaneseApiService) JapaneseNameKanjiCandidatesBatch(ctx context.Context, localVarOptionals *JapaneseNameKanjiCandidatesBatchOpts) (BatchNameMatchCandidatesOut, *http.Response, error)

func (*JapaneseApiService) JapaneseNameLatinCandidates

func (a *JapaneseApiService) JapaneseNameLatinCandidates(ctx context.Context, japaneseSurnameKanji string, japaneseGivenNameKanji string) (NameMatchCandidatesOut, *http.Response, error)

JapaneseApiService Romanize japanese name, based on the name in Kanji.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param japaneseSurnameKanji
  • @param japaneseGivenNameKanji

@return NameMatchCandidatesOut

func (*JapaneseApiService) JapaneseNameLatinCandidatesBatch

func (a *JapaneseApiService) JapaneseNameLatinCandidatesBatch(ctx context.Context, localVarOptionals *JapaneseNameLatinCandidatesBatchOpts) (BatchNameMatchCandidatesOut, *http.Response, error)

func (*JapaneseApiService) JapaneseNameMatch

func (a *JapaneseApiService) JapaneseNameMatch(ctx context.Context, japaneseSurnameLatin string, japaneseGivenNameLatin string, japaneseName string) (NameMatchedOut, *http.Response, error)

JapaneseApiService Return a score for matching Japanese name in KANJI ex. 山本 早苗 with a romanized name ex. Yamamoto Sanae

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param japaneseSurnameLatin
  • @param japaneseGivenNameLatin
  • @param japaneseName

@return NameMatchedOut

func (*JapaneseApiService) JapaneseNameMatchBatch

func (a *JapaneseApiService) JapaneseNameMatchBatch(ctx context.Context, localVarOptionals *JapaneseNameMatchBatchOpts) (BatchNameMatchedOut, *http.Response, error)

func (*JapaneseApiService) JapaneseNameMatchFeedbackLoop

func (a *JapaneseApiService) JapaneseNameMatchFeedbackLoop(ctx context.Context, japaneseSurnameLatin string, japaneseGivenNameLatin string, japaneseName string) (FeedbackLoopOut, *http.Response, error)

JapaneseApiService [CREDITS 1 UNIT] Feedback loop to better perform matching Japanese name in KANJI ex. 山本 早苗 with a romanized name ex. Yamamoto Sanae

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param japaneseSurnameLatin
  • @param japaneseGivenNameLatin
  • @param japaneseName

@return FeedbackLoopOut

func (*JapaneseApiService) ParseJapaneseName

func (a *JapaneseApiService) ParseJapaneseName(ctx context.Context, japaneseName string) (PersonalNameParsedOut, *http.Response, error)

JapaneseApiService Infer the likely first/last name structure of a name, ex. 山本 早苗 or Yamamoto Sanae

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param japaneseName

@return PersonalNameParsedOut

func (*JapaneseApiService) ParseJapaneseNameBatch

func (a *JapaneseApiService) ParseJapaneseNameBatch(ctx context.Context, localVarOptionals *ParseJapaneseNameBatchOpts) (BatchPersonalNameParsedOut, *http.Response, error)

type JapaneseNameGenderKanjiCandidatesBatchOpts

type JapaneseNameGenderKanjiCandidatesBatchOpts struct {
	BatchFirstLastNameGenderIn optional.Interface
}

type JapaneseNameKanjiCandidatesBatchOpts

type JapaneseNameKanjiCandidatesBatchOpts struct {
	BatchFirstLastNameIn optional.Interface
}

type JapaneseNameLatinCandidatesBatchOpts

type JapaneseNameLatinCandidatesBatchOpts struct {
	BatchFirstLastNameIn optional.Interface
}

type JapaneseNameMatchBatchOpts

type JapaneseNameMatchBatchOpts struct {
	BatchMatchPersonalFirstLastNameIn optional.Interface
}

type MatchPersonalFirstLastNameIn

type MatchPersonalFirstLastNameIn struct {
	Id    string          `json:"id,omitempty"`
	Name1 FirstLastNameIn `json:"name1,omitempty"`
	Name2 PersonalNameIn  `json:"name2,omitempty"`
}

type NamSorCounterOut

type NamSorCounterOut struct {
	Counter int64 `json:"counter,omitempty"`
}

type NameGeoIn

type NameGeoIn struct {
	Id          string `json:"id,omitempty"`
	Name        string `json:"name,omitempty"`
	CountryIso2 string `json:"countryIso2,omitempty"`
}

type NameIn

type NameIn struct {
	Id   string `json:"id,omitempty"`
	Name string `json:"name,omitempty"`
}

type NameMatchCandidateOut

type NameMatchCandidateOut struct {
	// The name matching candidate name
	CandidateName string `json:"candidateName,omitempty"`
	// The name matching estimated probability.
	Probability float64 `json:"probability,omitempty"`
	// The given name prediction score.
	PredScoreGivenName float64 `json:"predScoreGivenName,omitempty"`
	// The family name prediction score.
	PredScoreFamilyName float64 `json:"predScoreFamilyName,omitempty"`
}

The ordered list of name matching candidates

type NameMatchCandidatesOut

type NameMatchCandidatesOut struct {
	Script string `json:"script,omitempty"`
	Id     string `json:"id,omitempty"`
	// The first name (also known as given name)
	FirstName string `json:"firstName,omitempty"`
	// The last name (also known as family name, or surname)
	LastName string `json:"lastName,omitempty"`
	// The option for ordering
	OrderOption string `json:"orderOption,omitempty"`
	// The ordered list of name matching candidates
	MatchCandidates []NameMatchCandidateOut `json:"matchCandidates,omitempty"`
}

Classified matched names

type NameMatchedOut

type NameMatchedOut struct {
	Script string `json:"script,omitempty"`
	Id     string `json:"id,omitempty"`
	// The name matching status.
	MatchStatus string  `json:"matchStatus,omitempty"`
	Score       float64 `json:"score,omitempty"`
}

Classified matched names

type NameTypeBatchOpts

type NameTypeBatchOpts struct {
	BatchNameIn optional.Interface
}

type NameTypeGeoBatchOpts

type NameTypeGeoBatchOpts struct {
	BatchNameGeoIn optional.Interface
}

type OriginBatchOpts

type OriginBatchOpts struct {
	BatchFirstLastNameIn optional.Interface
}

type ParseChineseNameBatchOpts

type ParseChineseNameBatchOpts struct {
	BatchPersonalNameIn optional.Interface
}

type ParseJapaneseNameBatchOpts

type ParseJapaneseNameBatchOpts struct {
	BatchPersonalNameIn optional.Interface
}

type ParseNameBatchOpts

type ParseNameBatchOpts struct {
	BatchPersonalNameIn optional.Interface
}

type ParseNameGeoBatchOpts

type ParseNameGeoBatchOpts struct {
	BatchPersonalNameGeoIn optional.Interface
}

type ParsedFullNameGeoIn

type ParsedFullNameGeoIn struct {
	Id            string `json:"id,omitempty"`
	FirstName     string `json:"firstName,omitempty"`
	LastName      string `json:"lastName,omitempty"`
	PrefixOrTitle string `json:"prefixOrTitle,omitempty"`
	Suffix        string `json:"suffix,omitempty"`
	MiddleName    string `json:"middleName,omitempty"`
	CountryIso2   string `json:"countryIso2,omitempty"`
}

type ParsedFullNameIn

type ParsedFullNameIn struct {
	Id            string `json:"id,omitempty"`
	FirstName     string `json:"firstName,omitempty"`
	LastName      string `json:"lastName,omitempty"`
	PrefixOrTitle string `json:"prefixOrTitle,omitempty"`
	Suffix        string `json:"suffix,omitempty"`
	MiddleName    string `json:"middleName,omitempty"`
}

type PersonalApiService

type PersonalApiService service

func (*PersonalApiService) Corridor

func (a *PersonalApiService) Corridor(ctx context.Context, countryIso2From string, firstNameFrom string, lastNameFrom string, countryIso2To string, firstNameTo string, lastNameTo string) (CorridorOut, *http.Response, error)

PersonalApiService [USES 20 UNITS PER NAME COUPLE] Infer several classifications for a cross border interaction between names (ex. remit, travel, intl com)

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param countryIso2From
  • @param firstNameFrom
  • @param lastNameFrom
  • @param countryIso2To
  • @param firstNameTo
  • @param lastNameTo

@return CorridorOut

func (*PersonalApiService) CorridorBatch

func (a *PersonalApiService) CorridorBatch(ctx context.Context, localVarOptionals *CorridorBatchOpts) (BatchCorridorOut, *http.Response, error)

func (*PersonalApiService) Country

func (a *PersonalApiService) Country(ctx context.Context, personalNameFull string) (PersonalNameGeoOut, *http.Response, error)

PersonalApiService [USES 10 UNITS PER NAME] Infer the likely country of residence of a personal full name, or one surname. Assumes names as they are in the country of residence OR the country of origin.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param personalNameFull

@return PersonalNameGeoOut

func (*PersonalApiService) CountryBatch

func (a *PersonalApiService) CountryBatch(ctx context.Context, localVarOptionals *CountryBatchOpts) (BatchPersonalNameGeoOut, *http.Response, error)

func (*PersonalApiService) Diaspora

func (a *PersonalApiService) Diaspora(ctx context.Context, countryIso2 string, firstName string, lastName string) (FirstLastNameDiasporaedOut, *http.Response, error)

PersonalApiService [USES 20 UNITS PER NAME] Infer the likely ethnicity/diaspora of a personal name, given a country of residence ISO2 code (ex. US, CA, AU, NZ etc.)

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param countryIso2
  • @param firstName
  • @param lastName

@return FirstLastNameDiasporaedOut

func (*PersonalApiService) DiasporaBatch

func (*PersonalApiService) Gender

func (a *PersonalApiService) Gender(ctx context.Context, firstName string, lastName string) (FirstLastNameGenderedOut, *http.Response, error)

PersonalApiService Infer the likely gender of a name.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param firstName
  • @param lastName

@return FirstLastNameGenderedOut

func (*PersonalApiService) GenderBatch

func (*PersonalApiService) GenderFull

PersonalApiService Infer the likely gender of a full name, ex. John H. Smith

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param fullName

@return PersonalNameGenderedOut

func (*PersonalApiService) GenderFullBatch

func (a *PersonalApiService) GenderFullBatch(ctx context.Context, localVarOptionals *GenderFullBatchOpts) (BatchPersonalNameGenderedOut, *http.Response, error)

func (*PersonalApiService) GenderFullGeo

func (a *PersonalApiService) GenderFullGeo(ctx context.Context, fullName string, countryIso2 string) (PersonalNameGenderedOut, *http.Response, error)

PersonalApiService Infer the likely gender of a full name, given a local context (ISO2 country code).

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param fullName
  • @param countryIso2

@return PersonalNameGenderedOut

func (*PersonalApiService) GenderFullGeoBatch

func (a *PersonalApiService) GenderFullGeoBatch(ctx context.Context, localVarOptionals *GenderFullGeoBatchOpts) (BatchPersonalNameGenderedOut, *http.Response, error)

func (*PersonalApiService) GenderGeo

func (a *PersonalApiService) GenderGeo(ctx context.Context, firstName string, lastName string, countryIso2 string) (FirstLastNameGenderedOut, *http.Response, error)

PersonalApiService Infer the likely gender of a name, given a local context (ISO2 country code).

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param firstName
  • @param lastName
  • @param countryIso2

@return FirstLastNameGenderedOut

func (*PersonalApiService) GenderGeoBatch

func (a *PersonalApiService) GenderGeoBatch(ctx context.Context, localVarOptionals *GenderGeoBatchOpts) (BatchFirstLastNameGenderedOut, *http.Response, error)

func (*PersonalApiService) Origin

func (a *PersonalApiService) Origin(ctx context.Context, firstName string, lastName string) (FirstLastNameOriginedOut, *http.Response, error)

PersonalApiService [USES 10 UNITS PER NAME] Infer the likely country of origin of a personal name. Assumes names as they are in the country of origin. For US, CA, AU, NZ and other melting-pots : use 'diaspora' instead.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param firstName
  • @param lastName

@return FirstLastNameOriginedOut

func (*PersonalApiService) OriginBatch

func (*PersonalApiService) ParseName

PersonalApiService Infer the likely first/last name structure of a name, ex. John Smith or SMITH, John or SMITH; John.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param nameFull

@return PersonalNameParsedOut

func (*PersonalApiService) ParseNameBatch

func (a *PersonalApiService) ParseNameBatch(ctx context.Context, localVarOptionals *ParseNameBatchOpts) (BatchPersonalNameParsedOut, *http.Response, error)

func (*PersonalApiService) ParseNameGeo

func (a *PersonalApiService) ParseNameGeo(ctx context.Context, nameFull string, countryIso2 string) (PersonalNameParsedOut, *http.Response, error)

PersonalApiService Infer the likely first/last name structure of a name, ex. John Smith or SMITH, John or SMITH; John. For better accuracy, provide a geographic context.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param nameFull
  • @param countryIso2

@return PersonalNameParsedOut

func (*PersonalApiService) ParseNameGeoBatch

func (a *PersonalApiService) ParseNameGeoBatch(ctx context.Context, localVarOptionals *ParseNameGeoBatchOpts) (BatchPersonalNameParsedOut, *http.Response, error)

func (*PersonalApiService) UsRaceEthnicity

func (a *PersonalApiService) UsRaceEthnicity(ctx context.Context, firstName string, lastName string) (FirstLastNameUsRaceEthnicityOut, *http.Response, error)

PersonalApiService [USES 10 UNITS PER NAME] Infer a US resident's likely race/ethnicity according to US Census taxonomy W_NL (white, non latino), HL (hispano latino), A (asian, non latino), B_NL (black, non latino). Optionally add header X-OPTION-USRACEETHNICITY-TAXONOMY: USRACEETHNICITY-6CLASSES for two additional classes, AI_AN (American Indian or Alaskan Native) and PI (Pacific Islander).

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param firstName
  • @param lastName

@return FirstLastNameUsRaceEthnicityOut

func (*PersonalApiService) UsRaceEthnicityBatch

func (*PersonalApiService) UsRaceEthnicityZIP5

func (a *PersonalApiService) UsRaceEthnicityZIP5(ctx context.Context, firstName string, lastName string, zip5Code string) (FirstLastNameUsRaceEthnicityOut, *http.Response, error)

PersonalApiService [USES 10 UNITS PER NAME] Infer a US resident's likely race/ethnicity according to US Census taxonomy, using (optional) ZIP5 code info. Output is W_NL (white, non latino), HL (hispano latino), A (asian, non latino), B_NL (black, non latino). Optionally add header X-OPTION-USRACEETHNICITY-TAXONOMY: USRACEETHNICITY-6CLASSES for two additional classes, AI_AN (American Indian or Alaskan Native) and PI (Pacific Islander).

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param firstName
  • @param lastName
  • @param zip5Code

@return FirstLastNameUsRaceEthnicityOut

func (*PersonalApiService) UsZipRaceEthnicityBatch

type PersonalNameGenderedOut

type PersonalNameGenderedOut struct {
	Script string `json:"script,omitempty"`
	Id     string `json:"id,omitempty"`
	// The input name
	Name string `json:"name,omitempty"`
	// Most likely gender
	LikelyGender string `json:"likelyGender,omitempty"`
	// Compatibility to NamSor_v1 Gender Scale M[-1..U..+1]F value
	GenderScale float64 `json:"genderScale,omitempty"`
	// Compatibility to NamSor_v1 Gender score value. Higher score is better, but score is not normalized. Use calibratedProbability if available.
	Score float64 `json:"score,omitempty"`
	// The calibrated probability for inferred gender to have been guessed correctly.
	ProbabilityCalibrated float64 `json:"probabilityCalibrated,omitempty"`
}

Classified genderized names

type PersonalNameGeoIn

type PersonalNameGeoIn struct {
	Id          string `json:"id,omitempty"`
	Name        string `json:"name,omitempty"`
	CountryIso2 string `json:"countryIso2,omitempty"`
}

type PersonalNameGeoOut

type PersonalNameGeoOut struct {
	Script string `json:"script,omitempty"`
	Id     string `json:"id,omitempty"`
	// The input name.
	Name string `json:"name,omitempty"`
	// Higher score is better, but score is not normalized. Use calibratedProbability if available.
	Score float64 `json:"score,omitempty"`
	// Most likely country
	Country string `json:"country,omitempty"`
	// Second best alternative : country
	CountryAlt string `json:"countryAlt,omitempty"`
	// Most likely region (based on country ISO2 code)
	Region string `json:"region,omitempty"`
	// Most likely top region (based on country ISO2 code)
	TopRegion string `json:"topRegion,omitempty"`
	// Most likely sub region (based on country ISO2 code)
	SubRegion string `json:"subRegion,omitempty"`
	// List countries (top 10)
	CountriesTop []string `json:"countriesTop,omitempty"`
	// The calibrated probability for country to have been guessed correctly.
	ProbabilityCalibrated float64 `json:"probabilityCalibrated,omitempty"`
	// The calibrated probability for country OR countryAlt to have been guessed correctly.
	ProbabilityAltCalibrated float64 `json:"probabilityAltCalibrated,omitempty"`
}

Classified geo names

type PersonalNameIn

type PersonalNameIn struct {
	Id   string `json:"id,omitempty"`
	Name string `json:"name,omitempty"`
}

type PersonalNameParsedOut

type PersonalNameParsedOut struct {
	Script string `json:"script,omitempty"`
	Id     string `json:"id,omitempty"`
	// The input name
	Name string `json:"name,omitempty"`
	// Name parsing is addressed as a classification problem, for example FN1LN1 means a first then last name order.
	NameParserType string `json:"nameParserType,omitempty"`
	// Second best alternative parsing. Name parsing is addressed as a classification problem, for example FN1LN1 means a first then last name order.
	NameParserTypeAlt string           `json:"nameParserTypeAlt,omitempty"`
	FirstLastName     FirstLastNameOut `json:"firstLastName,omitempty"`
	// Higher score is better, but score is not normalized. Use calibratedProbability if available.
	Score float64 `json:"score,omitempty"`
}

type PhoneCodeBatchOpts

type PhoneCodeBatchOpts struct {
	BatchFirstLastNamePhoneNumberIn optional.Interface
}

type PhoneCodeGeoBatchOpts

type PhoneCodeGeoBatchOpts struct {
	BatchFirstLastNamePhoneNumberGeoIn optional.Interface
}

type PinyinChineseNameBatchOpts

type PinyinChineseNameBatchOpts struct {
	BatchPersonalNameIn optional.Interface
}

type ProperNounCategorizedOut

type ProperNounCategorizedOut struct {
	Script string `json:"script,omitempty"`
	Id     string `json:"id,omitempty"`
	// The input name
	Name string `json:"name,omitempty"`
	// The most likely common name type
	CommonType string `json:"commonType,omitempty"`
	// Best alternative for : The most likely common name type
	CommonTypeAlt string `json:"commonTypeAlt,omitempty"`
	// Higher score is better, but score is not normalized. Use calibratedProbability if available.
	Score float64 `json:"score,omitempty"`
}

Classified typed proper names

type RomanizedNameOut

type RomanizedNameOut struct {
	Script         string  `json:"script,omitempty"`
	Id             string  `json:"id,omitempty"`
	LatinName      string  `json:"latinName,omitempty"`
	OriginalName   string  `json:"originalName,omitempty"`
	SourceLanguage string  `json:"sourceLanguage,omitempty"`
	TargetLanguage string  `json:"targetLanguage,omitempty"`
	SourceScript   string  `json:"sourceScript,omitempty"`
	TargetScript   string  `json:"targetScript,omitempty"`
	Score          float64 `json:"score,omitempty"`
	Category       string  `json:"category,omitempty"`
}

type SocialApiService

type SocialApiService service

func (*SocialApiService) PhoneCode

func (a *SocialApiService) PhoneCode(ctx context.Context, firstName string, lastName string, phoneNumber string) (FirstLastNamePhoneCodedOut, *http.Response, error)

SocialApiService [USES 11 UNITS PER NAME] Infer the likely country and phone prefix, given a personal name and formatted / unformatted phone number.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param firstName
  • @param lastName
  • @param phoneNumber

@return FirstLastNamePhoneCodedOut

func (*SocialApiService) PhoneCodeBatch

func (a *SocialApiService) PhoneCodeBatch(ctx context.Context, localVarOptionals *PhoneCodeBatchOpts) (BatchFirstLastNamePhoneCodedOut, *http.Response, error)

func (*SocialApiService) PhoneCodeGeo

func (a *SocialApiService) PhoneCodeGeo(ctx context.Context, firstName string, lastName string, phoneNumber string, countryIso2 string) (FirstLastNamePhoneCodedOut, *http.Response, error)

SocialApiService [USES 11 UNITS PER NAME] Infer the likely phone prefix, given a personal name and formatted / unformatted phone number, with a local context (ISO2 country of residence).

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param firstName
  • @param lastName
  • @param phoneNumber
  • @param countryIso2

@return FirstLastNamePhoneCodedOut

func (*SocialApiService) PhoneCodeGeoBatch

func (a *SocialApiService) PhoneCodeGeoBatch(ctx context.Context, localVarOptionals *PhoneCodeGeoBatchOpts) (BatchFirstLastNamePhoneCodedOut, *http.Response, error)

func (*SocialApiService) PhoneCodeGeoFeedbackLoop

func (a *SocialApiService) PhoneCodeGeoFeedbackLoop(ctx context.Context, firstName string, lastName string, phoneNumber string, phoneNumberE164 string, countryIso2 string) (FirstLastNamePhoneCodedOut, *http.Response, error)

SocialApiService [CREDITS 1 UNIT] Feedback loop to better infer the likely phone prefix, given a personal name and formatted / unformatted phone number, with a local context (ISO2 country of residence).

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param firstName
  • @param lastName
  • @param phoneNumber
  • @param phoneNumberE164
  • @param countryIso2

@return FirstLastNamePhoneCodedOut

type SoftwareVersionOut

type SoftwareVersionOut struct {
	// The software version
	SoftwareNameAndVersion string `json:"softwareNameAndVersion,omitempty"`
	// The software version major minor build
	SoftwareVersion []int32 `json:"softwareVersion,omitempty"`
}

The software version.

type SourceDetailedMetricsOut

type SourceDetailedMetricsOut struct {
	ClassifierName       string                    `json:"classifierName,omitempty"`
	Source               ApiKeyOut                 `json:"source,omitempty"`
	AiEstimateTotal      int64                     `json:"aiEstimateTotal,omitempty"`
	AiEstimatePrecision  float64                   `json:"aiEstimatePrecision,omitempty"`
	AiEstimateRecall     float64                   `json:"aiEstimateRecall,omitempty"`
	MetricTimeStamp      int64                     `json:"metricTimeStamp,omitempty"`
	AiStartTime          int64                     `json:"aiStartTime,omitempty"`
	AiLearnTotal         int64                     `json:"aiLearnTotal,omitempty"`
	SnapshotDate         int64                     `json:"snapshotDate,omitempty"`
	ExpectedClassMetrics []ExpectedClassMetricsOut `json:"expectedClassMetrics,omitempty"`
}

Simple metrics on source, with details by classifier.

type SourceMetricsOut

type SourceMetricsOut struct {
	ClassifierName      string    `json:"classifierName,omitempty"`
	Source              ApiKeyOut `json:"source,omitempty"`
	AiEstimateTotal     int64     `json:"aiEstimateTotal,omitempty"`
	AiEstimatePrecision float64   `json:"aiEstimatePrecision,omitempty"`
	AiEstimateRecall    float64   `json:"aiEstimateRecall,omitempty"`
	MetricTimeStamp     int64     `json:"metricTimeStamp,omitempty"`
	AiStartTime         int64     `json:"aiStartTime,omitempty"`
	AiLearnTotal        int64     `json:"aiLearnTotal,omitempty"`
	SnapshotDate        int64     `json:"snapshotDate,omitempty"`
}

Simple metrics on a classifier, for a given source

type StripeCardOut

type StripeCardOut struct {
	DefaultCard bool   `json:"defaultCard,omitempty"`
	SourceId    string `json:"sourceId,omitempty"`
	ExpMonth    int64  `json:"expMonth,omitempty"`
	ExpYear     int64  `json:"expYear,omitempty"`
	Last4       string `json:"last4,omitempty"`
	Brand       string `json:"brand,omitempty"`
}

type StripeCustomerOut

type StripeCustomerOut struct {
	StripeCustomerId string          `json:"stripeCustomerId,omitempty"`
	SourceCountry    string          `json:"sourceCountry,omitempty"`
	SourceCurrency   string          `json:"sourceCurrency,omitempty"`
	StripedCards     []StripeCardOut `json:"stripedCards,omitempty"`
}

type SystemMetricsOut

type SystemMetricsOut struct {
	CacheMetrics      []CacheMetricsOut      `json:"cacheMetrics,omitempty"`
	ClassifierMetrics []ClassifierMetricsOut `json:"classifierMetrics,omitempty"`
	SourceMetrics     []SourceMetricsOut     `json:"sourceMetrics,omitempty"`
	TotalMem          int64                  `json:"totalMem,omitempty"`
	FreeMem           int64                  `json:"freeMem,omitempty"`
	MaxMem            int64                  `json:"maxMem,omitempty"`
}

type UsRaceEthnicityBatchOpts

type UsRaceEthnicityBatchOpts struct {
	BatchFirstLastNameGeoIn optional.Interface
}

type UsZipRaceEthnicityBatchOpts

type UsZipRaceEthnicityBatchOpts struct {
	BatchFirstLastNameGeoZippedIn optional.Interface
}

type UserInfoOut

type UserInfoOut struct {
	Uid                 string        `json:"uid,omitempty"`
	Email               string        `json:"email,omitempty"`
	PhoneNumber         string        `json:"phoneNumber,omitempty"`
	EmailVerified       bool          `json:"emailVerified,omitempty"`
	DisplayName         string        `json:"displayName,omitempty"`
	PhotoUrl            string        `json:"photoUrl,omitempty"`
	Disabled            bool          `json:"disabled,omitempty"`
	FirstKnownIpAddress string        `json:"firstKnownIpAddress,omitempty"`
	ProviderId          string        `json:"providerId,omitempty"`
	TimeStamp           int64         `json:"timeStamp,omitempty"`
	VerifyToken         string        `json:"verifyToken,omitempty"`
	ApiKey              string        `json:"apiKey,omitempty"`
	StripePerishableKey string        `json:"stripePerishableKey,omitempty"`
	StripeCustomerId    string        `json:"stripeCustomerId,omitempty"`
	OtherInfos          []UserInfoOut `json:"otherInfos,omitempty"`
}

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址