Documentation ¶
Index ¶
Constants ¶
View Source
const ( Gateway = "https://api-gateway.kyivstar.ua" ServerModeLive serverMode = "" ServerModeMock serverMode = "mock" ServerModeSandbox serverMode = "sandbox" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { ServerUrl string `json:"serverUrl,omitempty" yaml:"serverUrl"` ClientID string `json:"clientId,omitempty" yaml:"clientId"` ClientSecret string `json:"clientSecret,omitempty" yaml:"clientSecret"` ServerMode serverMode `json:"serverMode,omitempty" yaml:"serverMode"` DebugEnabled bool `json:"debugEnabled" yaml:"debugEnabled"` }
type Err ¶
type Scoring ¶
type Scoring interface {
Scoring(phoneNumber string, modelId int) (ScoringResp, error)
}
type ScoringResp ¶
type ScoringResp struct {
Score int `json:"score"`
}
type Sms ¶
type Sms interface { Send(req SmsSendReq) (SmsSendResp, error) Check(msgID string) (SmsCheckResp, error) }
type SmsCheckResp ¶
type SmsSendReq ¶
type SmsSendResp ¶
type VerifySim ¶
type VerifySim interface {
VerifySim(phoneNumber string, params VerifySimReq) (VerifySimResp, error)
}
type VerifySimReq ¶
type VerifySimReq struct {
ActivationHours int `json:"activationHours"`
}
type VerifySimResp ¶
Click to show internal directories.
Click to hide internal directories.