Documentation
¶
Index ¶
- type RESELLERS
- type RESELLERS_IMPL
- func (me *RESELLERS_IMPL) AddClient(name string, email string, password string, msisdn string, format string, ...) (interface{}, error)
- func (me *RESELLERS_IMPL) EditClient(clientId string, format string, name *string, contact *string, email *string, ...) (interface{}, error)
- func (me *RESELLERS_IMPL) GetClient(clientId string, format string) (interface{}, error)
- func (me *RESELLERS_IMPL) GetClients(format string, page *string, max *string) (interface{}, error)
- func (me *RESELLERS_IMPL) GetTransaction(id string, format string) (interface{}, error)
- func (me *RESELLERS_IMPL) GetTransactions(clientId string, format string, start *string, end *string, page *string, ...) (interface{}, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RESELLERS ¶
type RESELLERS interface { GetTransaction(string, string) (interface{}, error) EditClient(string, string, *string, *string, *string, *string, *string, *string, *string, *string) (interface{}, error) GetTransactions(string, string, *string, *string, *string, *string) (interface{}, error) GetClient(string, string) (interface{}, error) GetClients(string, *string, *string) (interface{}, error) AddClient(string, string, string, string, string, *string, *string, *string, *string, *string) (interface{}, error) }
* Interface for the RESELLERS_IMPL
type RESELLERS_IMPL ¶
type RESELLERS_IMPL struct {
// contains filtered or unexported fields
}
* Client structure as interface implementation
func NewRESELLERS ¶
func NewRESELLERS(config configuration_pkg.CONFIGURATION) *RESELLERS_IMPL
* Factory for the RESELLERS interaface returning RESELLERS_IMPL
func (*RESELLERS_IMPL) AddClient ¶
func (me *RESELLERS_IMPL) AddClient( name string, email string, password string, msisdn string, format string, contact *string, timezone *string, clientPays *string, smsMargin *string, numberMargin *string) (interface{}, error)
*
- Add a new client.
- @param string name parameter: Required
- @param string email parameter: Required
- @param string password parameter: Required
- @param string msisdn parameter: Required
- @param string format parameter: Required
- @param *string contact parameter: Optional
- @param *string timezone parameter: Optional
- @param *string clientPays parameter: Optional
- @param *string smsMargin parameter: Optional
- @param *string numberMargin parameter: Optional
- @return Returns the interface{} response from the API call
func (*RESELLERS_IMPL) EditClient ¶
func (me *RESELLERS_IMPL) EditClient( clientId string, format string, name *string, contact *string, email *string, password *string, msisdn *string, timezone *string, clientPays *string, smsMargin *string) (interface{}, error)
*
- Edit an existing client
- @param string clientId parameter: Required
- @param string format parameter: Required
- @param *string name parameter: Optional
- @param *string contact parameter: Optional
- @param *string email parameter: Optional
- @param *string password parameter: Optional
- @param *string msisdn parameter: Optional
- @param *string timezone parameter: Optional
- @param *string clientPays parameter: Optional
- @param *string smsMargin parameter: Optional
- @return Returns the interface{} response from the API call
func (*RESELLERS_IMPL) GetClient ¶
func (me *RESELLERS_IMPL) GetClient( clientId string, format string) (interface{}, error)
*
- Get detailed information about a client.
- @param string clientId parameter: Required
- @param string format parameter: Required
- @return Returns the interface{} response from the API call
func (*RESELLERS_IMPL) GetClients ¶
func (me *RESELLERS_IMPL) GetClients( format string, page *string, max *string) (interface{}, error)
*
- Get a list of all clients.
- @param string format parameter: Required
- @param *string page parameter: Optional
- @param *string max parameter: Optional
- @return Returns the interface{} response from the API call
func (*RESELLERS_IMPL) GetTransaction ¶
func (me *RESELLERS_IMPL) GetTransaction( id string, format string) (interface{}, error)
*
- Get a list of transactions for an account.
- @param string id parameter: Required
- @param string format parameter: Required
- @return Returns the interface{} response from the API call
func (*RESELLERS_IMPL) GetTransactions ¶
func (me *RESELLERS_IMPL) GetTransactions( clientId string, format string, start *string, end *string, page *string, max *string) (interface{}, error)
*
- Get a list of transactions for a client.
- @param string clientId parameter: Required
- @param string format parameter: Required
- @param *string start parameter: Optional
- @param *string end parameter: Optional
- @param *string page parameter: Optional
- @param *string max parameter: Optional
- @return Returns the interface{} response from the API call