Documentation ¶
Index ¶
- func NormalizeMDN(mdn string) string
- func ToDate(timestamp string) (t time.Time)
- func ToTime(timestamp string) (t time.Time)
- type AddServiceMessage
- type Client
- func (ws *Client) Get(uri, version string, request map[string]string) (response []byte, err error)
- func (ws *Client) Post(uri, version string, request []byte) (response []byte, err error)
- func (ws *Client) SetProxy(uri string) error
- func (ws *Client) SetTransport(proxyUri string)
- func (ws *Client) SubmitRequest(req *http.Request, version string) (response []byte, err error)
- type Customer
- type Subscriber
- func (s *Subscriber) AccountNumber() string
- func (s *Subscriber) ActiveDate() time.Time
- func (s *Subscriber) ActiveEndDate() time.Time
- func (s *Subscriber) AddService(serviceCode string) (result AddServiceMessage, err error)
- func (s *Subscriber) Balance() int
- func (s *Subscriber) Balances() []*SubscriberBalance
- func (s *Subscriber) BirthDay() string
- func (s *Subscriber) BirthPlace() string
- func (s *Subscriber) BonusBalance() int
- func (s *Subscriber) CurrentUsage() int
- func (s *Subscriber) CustomerGrade() string
- func (s *Subscriber) CustomerName() string
- func (s *Subscriber) CustomerType() string
- func (s *Subscriber) DefaultPricePlan() string
- func (s *Subscriber) DefaultPricePlanCode() string
- func (s *Subscriber) DocAddress() string
- func (s *Subscriber) DocNumber() string
- func (s *Subscriber) DocType() string
- func (s *Subscriber) DueDate() time.Time
- func (s *Subscriber) Email() string
- func (s *Subscriber) FraudLocked() string
- func (s *Subscriber) Gender() string
- func (s *Subscriber) ICCID() string
- func (s *Subscriber) IMSI() string
- func (s *Subscriber) LastPaymentDate() time.Time
- func (s *Subscriber) MarketingCategory() string
- func (s *Subscriber) MotherMaidenName() string
- func (s *Subscriber) NextState() string
- func (s *Subscriber) NextStateDate() time.Time
- func (s *Subscriber) OfferId() int
- func (s *Subscriber) OfferName() string
- func (s *Subscriber) PUK1() string
- func (s *Subscriber) PUK2() string
- func (s *Subscriber) ProductCode() string
- func (s *Subscriber) ProductName() string
- func (s *Subscriber) Query() (err error)
- func (s *Subscriber) RemainingCreditLimit() int
- func (s *Subscriber) Services() []*SubscriberService
- func (s *Subscriber) SettlementMethod() string
- func (s *Subscriber) Status() string
- func (s *Subscriber) TerminationDate() time.Time
- func (s *Subscriber) TotalCreditLimit() int
- type SubscriberBalance
- type SubscriberService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NormalizeMDN ¶
Types ¶
type AddServiceMessage ¶
type AddServiceMessage struct { MDN string `json:"mdn,omitempty"` ServiceCode string `json:"serviceCode,omitempty"` ServiceName string `json:"serviceName,omitempty"` EffectiveDate string `json:"effectiveDate,omitempty"` ExpiryDate string `json:"expireDate,omitempty"` TransactionID string `json:"transactionId,omitempty"` ReturnCode string `json:"returnCode,omitempty"` ResultMsg string `json:"resultMsg,omitempty"` }
type Subscriber ¶
func NewSubscriber ¶
func NewSubscriber(api *Client, mdn string) (s *Subscriber, err error)
func (*Subscriber) AccountNumber ¶
func (s *Subscriber) AccountNumber() string
func (*Subscriber) ActiveDate ¶
func (s *Subscriber) ActiveDate() time.Time
func (*Subscriber) ActiveEndDate ¶
func (s *Subscriber) ActiveEndDate() time.Time
func (*Subscriber) AddService ¶
func (s *Subscriber) AddService(serviceCode string) (result AddServiceMessage, err error)
func (*Subscriber) Balance ¶
func (s *Subscriber) Balance() int
func (*Subscriber) Balances ¶
func (s *Subscriber) Balances() []*SubscriberBalance
func (*Subscriber) BirthDay ¶
func (s *Subscriber) BirthDay() string
func (*Subscriber) BirthPlace ¶
func (s *Subscriber) BirthPlace() string
func (*Subscriber) BonusBalance ¶
func (s *Subscriber) BonusBalance() int
func (*Subscriber) CurrentUsage ¶
func (s *Subscriber) CurrentUsage() int
func (*Subscriber) CustomerGrade ¶
func (s *Subscriber) CustomerGrade() string
func (*Subscriber) CustomerName ¶
func (s *Subscriber) CustomerName() string
func (*Subscriber) CustomerType ¶
func (s *Subscriber) CustomerType() string
func (*Subscriber) DefaultPricePlan ¶
func (s *Subscriber) DefaultPricePlan() string
func (*Subscriber) DefaultPricePlanCode ¶
func (s *Subscriber) DefaultPricePlanCode() string
func (*Subscriber) DocAddress ¶
func (s *Subscriber) DocAddress() string
func (*Subscriber) DocNumber ¶
func (s *Subscriber) DocNumber() string
func (*Subscriber) DocType ¶
func (s *Subscriber) DocType() string
func (*Subscriber) DueDate ¶
func (s *Subscriber) DueDate() time.Time
func (*Subscriber) Email ¶
func (s *Subscriber) Email() string
func (*Subscriber) FraudLocked ¶
func (s *Subscriber) FraudLocked() string
func (*Subscriber) Gender ¶
func (s *Subscriber) Gender() string
func (*Subscriber) ICCID ¶
func (s *Subscriber) ICCID() string
func (*Subscriber) IMSI ¶
func (s *Subscriber) IMSI() string
func (*Subscriber) LastPaymentDate ¶
func (s *Subscriber) LastPaymentDate() time.Time
func (*Subscriber) MarketingCategory ¶
func (s *Subscriber) MarketingCategory() string
func (*Subscriber) MotherMaidenName ¶
func (s *Subscriber) MotherMaidenName() string
func (*Subscriber) NextState ¶
func (s *Subscriber) NextState() string
func (*Subscriber) NextStateDate ¶
func (s *Subscriber) NextStateDate() time.Time
func (*Subscriber) OfferId ¶
func (s *Subscriber) OfferId() int
func (*Subscriber) OfferName ¶
func (s *Subscriber) OfferName() string
func (*Subscriber) PUK1 ¶
func (s *Subscriber) PUK1() string
func (*Subscriber) PUK2 ¶
func (s *Subscriber) PUK2() string
func (*Subscriber) ProductCode ¶
func (s *Subscriber) ProductCode() string
func (*Subscriber) ProductName ¶
func (s *Subscriber) ProductName() string
func (*Subscriber) Query ¶
func (s *Subscriber) Query() (err error)
func (*Subscriber) RemainingCreditLimit ¶
func (s *Subscriber) RemainingCreditLimit() int
func (*Subscriber) Services ¶
func (s *Subscriber) Services() []*SubscriberService
func (*Subscriber) SettlementMethod ¶
func (s *Subscriber) SettlementMethod() string
func (*Subscriber) Status ¶
func (s *Subscriber) Status() string
func (*Subscriber) TerminationDate ¶
func (s *Subscriber) TerminationDate() time.Time
func (*Subscriber) TotalCreditLimit ¶
func (s *Subscriber) TotalCreditLimit() int
type SubscriberBalance ¶
Click to show internal directories.
Click to hide internal directories.