Documentation ¶
Index ¶
- type Client
- func (a *Client) GetSmsEvents(params *GetSmsEventsParams, authInfo runtime.ClientAuthInfoWriter) (*GetSmsEventsOK, error)
- func (a *Client) GetTransacAggregatedSmsReport(params *GetTransacAggregatedSmsReportParams, ...) (*GetTransacAggregatedSmsReportOK, error)
- func (a *Client) GetTransacSmsReport(params *GetTransacSmsReportParams, authInfo runtime.ClientAuthInfoWriter) (*GetTransacSmsReportOK, error)
- func (a *Client) SendTransacSms(params *SendTransacSmsParams, authInfo runtime.ClientAuthInfoWriter) (*SendTransacSmsCreated, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type GetSmsEventsBadRequest
- type GetSmsEventsOK
- type GetSmsEventsParams
- func (o *GetSmsEventsParams) SetContext(ctx context.Context)
- func (o *GetSmsEventsParams) SetDays(days *int64)
- func (o *GetSmsEventsParams) SetEndDate(endDate *strfmt.Date)
- func (o *GetSmsEventsParams) SetEvent(event *string)
- func (o *GetSmsEventsParams) SetHTTPClient(client *http.Client)
- func (o *GetSmsEventsParams) SetLimit(limit *int64)
- func (o *GetSmsEventsParams) SetOffset(offset *int64)
- func (o *GetSmsEventsParams) SetPhoneNumber(phoneNumber *string)
- func (o *GetSmsEventsParams) SetStartDate(startDate *strfmt.Date)
- func (o *GetSmsEventsParams) SetTags(tags *string)
- func (o *GetSmsEventsParams) SetTimeout(timeout time.Duration)
- func (o *GetSmsEventsParams) WithContext(ctx context.Context) *GetSmsEventsParams
- func (o *GetSmsEventsParams) WithDays(days *int64) *GetSmsEventsParams
- func (o *GetSmsEventsParams) WithEndDate(endDate *strfmt.Date) *GetSmsEventsParams
- func (o *GetSmsEventsParams) WithEvent(event *string) *GetSmsEventsParams
- func (o *GetSmsEventsParams) WithHTTPClient(client *http.Client) *GetSmsEventsParams
- func (o *GetSmsEventsParams) WithLimit(limit *int64) *GetSmsEventsParams
- func (o *GetSmsEventsParams) WithOffset(offset *int64) *GetSmsEventsParams
- func (o *GetSmsEventsParams) WithPhoneNumber(phoneNumber *string) *GetSmsEventsParams
- func (o *GetSmsEventsParams) WithStartDate(startDate *strfmt.Date) *GetSmsEventsParams
- func (o *GetSmsEventsParams) WithTags(tags *string) *GetSmsEventsParams
- func (o *GetSmsEventsParams) WithTimeout(timeout time.Duration) *GetSmsEventsParams
- func (o *GetSmsEventsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetSmsEventsReader
- type GetTransacAggregatedSmsReportBadRequest
- type GetTransacAggregatedSmsReportOK
- type GetTransacAggregatedSmsReportParams
- func NewGetTransacAggregatedSmsReportParams() *GetTransacAggregatedSmsReportParams
- func NewGetTransacAggregatedSmsReportParamsWithContext(ctx context.Context) *GetTransacAggregatedSmsReportParams
- func NewGetTransacAggregatedSmsReportParamsWithHTTPClient(client *http.Client) *GetTransacAggregatedSmsReportParams
- func NewGetTransacAggregatedSmsReportParamsWithTimeout(timeout time.Duration) *GetTransacAggregatedSmsReportParams
- func (o *GetTransacAggregatedSmsReportParams) SetContext(ctx context.Context)
- func (o *GetTransacAggregatedSmsReportParams) SetDays(days *int64)
- func (o *GetTransacAggregatedSmsReportParams) SetEndDate(endDate *strfmt.Date)
- func (o *GetTransacAggregatedSmsReportParams) SetHTTPClient(client *http.Client)
- func (o *GetTransacAggregatedSmsReportParams) SetStartDate(startDate *strfmt.Date)
- func (o *GetTransacAggregatedSmsReportParams) SetTag(tag *string)
- func (o *GetTransacAggregatedSmsReportParams) SetTimeout(timeout time.Duration)
- func (o *GetTransacAggregatedSmsReportParams) WithContext(ctx context.Context) *GetTransacAggregatedSmsReportParams
- func (o *GetTransacAggregatedSmsReportParams) WithDays(days *int64) *GetTransacAggregatedSmsReportParams
- func (o *GetTransacAggregatedSmsReportParams) WithEndDate(endDate *strfmt.Date) *GetTransacAggregatedSmsReportParams
- func (o *GetTransacAggregatedSmsReportParams) WithHTTPClient(client *http.Client) *GetTransacAggregatedSmsReportParams
- func (o *GetTransacAggregatedSmsReportParams) WithStartDate(startDate *strfmt.Date) *GetTransacAggregatedSmsReportParams
- func (o *GetTransacAggregatedSmsReportParams) WithTag(tag *string) *GetTransacAggregatedSmsReportParams
- func (o *GetTransacAggregatedSmsReportParams) WithTimeout(timeout time.Duration) *GetTransacAggregatedSmsReportParams
- func (o *GetTransacAggregatedSmsReportParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetTransacAggregatedSmsReportReader
- type GetTransacSmsReportBadRequest
- type GetTransacSmsReportOK
- type GetTransacSmsReportParams
- func NewGetTransacSmsReportParams() *GetTransacSmsReportParams
- func NewGetTransacSmsReportParamsWithContext(ctx context.Context) *GetTransacSmsReportParams
- func NewGetTransacSmsReportParamsWithHTTPClient(client *http.Client) *GetTransacSmsReportParams
- func NewGetTransacSmsReportParamsWithTimeout(timeout time.Duration) *GetTransacSmsReportParams
- func (o *GetTransacSmsReportParams) SetContext(ctx context.Context)
- func (o *GetTransacSmsReportParams) SetDays(days *int64)
- func (o *GetTransacSmsReportParams) SetEndDate(endDate *strfmt.Date)
- func (o *GetTransacSmsReportParams) SetHTTPClient(client *http.Client)
- func (o *GetTransacSmsReportParams) SetStartDate(startDate *strfmt.Date)
- func (o *GetTransacSmsReportParams) SetTag(tag *string)
- func (o *GetTransacSmsReportParams) SetTimeout(timeout time.Duration)
- func (o *GetTransacSmsReportParams) WithContext(ctx context.Context) *GetTransacSmsReportParams
- func (o *GetTransacSmsReportParams) WithDays(days *int64) *GetTransacSmsReportParams
- func (o *GetTransacSmsReportParams) WithEndDate(endDate *strfmt.Date) *GetTransacSmsReportParams
- func (o *GetTransacSmsReportParams) WithHTTPClient(client *http.Client) *GetTransacSmsReportParams
- func (o *GetTransacSmsReportParams) WithStartDate(startDate *strfmt.Date) *GetTransacSmsReportParams
- func (o *GetTransacSmsReportParams) WithTag(tag *string) *GetTransacSmsReportParams
- func (o *GetTransacSmsReportParams) WithTimeout(timeout time.Duration) *GetTransacSmsReportParams
- func (o *GetTransacSmsReportParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetTransacSmsReportReader
- type SendTransacSmsBadRequest
- type SendTransacSmsCreated
- type SendTransacSmsParams
- func NewSendTransacSmsParams() *SendTransacSmsParams
- func NewSendTransacSmsParamsWithContext(ctx context.Context) *SendTransacSmsParams
- func NewSendTransacSmsParamsWithHTTPClient(client *http.Client) *SendTransacSmsParams
- func NewSendTransacSmsParamsWithTimeout(timeout time.Duration) *SendTransacSmsParams
- func (o *SendTransacSmsParams) SetContext(ctx context.Context)
- func (o *SendTransacSmsParams) SetHTTPClient(client *http.Client)
- func (o *SendTransacSmsParams) SetSendTransacSms(sendTransacSms *models.SendTransacSms)
- func (o *SendTransacSmsParams) SetTimeout(timeout time.Duration)
- func (o *SendTransacSmsParams) WithContext(ctx context.Context) *SendTransacSmsParams
- func (o *SendTransacSmsParams) WithHTTPClient(client *http.Client) *SendTransacSmsParams
- func (o *SendTransacSmsParams) WithSendTransacSms(sendTransacSms *models.SendTransacSms) *SendTransacSmsParams
- func (o *SendTransacSmsParams) WithTimeout(timeout time.Duration) *SendTransacSmsParams
- func (o *SendTransacSmsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type SendTransacSmsPaymentRequired
- type SendTransacSmsReader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for transactional s m s API
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client
New creates a new transactional s m s API client.
func (*Client) GetSmsEvents ¶
func (a *Client) GetSmsEvents(params *GetSmsEventsParams, authInfo runtime.ClientAuthInfoWriter) (*GetSmsEventsOK, error)
GetSmsEvents gets all the s m s activity unaggregated events
func (*Client) GetTransacAggregatedSmsReport ¶
func (a *Client) GetTransacAggregatedSmsReport(params *GetTransacAggregatedSmsReportParams, authInfo runtime.ClientAuthInfoWriter) (*GetTransacAggregatedSmsReportOK, error)
GetTransacAggregatedSmsReport gets your s m s activity aggregated over a period of time
func (*Client) GetTransacSmsReport ¶
func (a *Client) GetTransacSmsReport(params *GetTransacSmsReportParams, authInfo runtime.ClientAuthInfoWriter) (*GetTransacSmsReportOK, error)
GetTransacSmsReport gets your s m s activity aggregated per day
func (*Client) SendTransacSms ¶
func (a *Client) SendTransacSms(params *SendTransacSmsParams, authInfo runtime.ClientAuthInfoWriter) (*SendTransacSmsCreated, error)
SendTransacSms sends the s m s campaign to the specified mobile number
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type GetSmsEventsBadRequest ¶
type GetSmsEventsBadRequest struct {
Payload *models.ErrorModel
}
GetSmsEventsBadRequest handles this case with default header values.
bad request
func NewGetSmsEventsBadRequest ¶
func NewGetSmsEventsBadRequest() *GetSmsEventsBadRequest
NewGetSmsEventsBadRequest creates a GetSmsEventsBadRequest with default headers values
func (*GetSmsEventsBadRequest) Error ¶
func (o *GetSmsEventsBadRequest) Error() string
type GetSmsEventsOK ¶
type GetSmsEventsOK struct {
Payload *models.GetSmsEventReport
}
GetSmsEventsOK handles this case with default header values.
Sms events report informations
func NewGetSmsEventsOK ¶
func NewGetSmsEventsOK() *GetSmsEventsOK
NewGetSmsEventsOK creates a GetSmsEventsOK with default headers values
func (*GetSmsEventsOK) Error ¶
func (o *GetSmsEventsOK) Error() string
type GetSmsEventsParams ¶
type GetSmsEventsParams struct { /*Days Number of days in the past including today (positive integer). Not compatible with 'startDate' and 'endDate' */ Days *int64 /*EndDate Mandatory if startDate is used. Ending date (YYYY-MM-DD) of the report */ EndDate *strfmt.Date /*Event Filter the report for specific events */ Event *string /*Limit Number of documents per page */ Limit *int64 /*Offset Index of the first document of the page */ Offset *int64 /*PhoneNumber Filter the report for a specific phone number */ PhoneNumber *string /*StartDate Mandatory if endDate is used. Starting date (YYYY-MM-DD) of the report */ StartDate *strfmt.Date /*Tags Filter the report for specific tags passed as a serialized urlencoded array */ Tags *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetSmsEventsParams contains all the parameters to send to the API endpoint for the get sms events operation typically these are written to a http.Request
func NewGetSmsEventsParams ¶
func NewGetSmsEventsParams() *GetSmsEventsParams
NewGetSmsEventsParams creates a new GetSmsEventsParams object with the default values initialized.
func NewGetSmsEventsParamsWithContext ¶
func NewGetSmsEventsParamsWithContext(ctx context.Context) *GetSmsEventsParams
NewGetSmsEventsParamsWithContext creates a new GetSmsEventsParams object with the default values initialized, and the ability to set a context for a request
func NewGetSmsEventsParamsWithHTTPClient ¶
func NewGetSmsEventsParamsWithHTTPClient(client *http.Client) *GetSmsEventsParams
NewGetSmsEventsParamsWithHTTPClient creates a new GetSmsEventsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetSmsEventsParamsWithTimeout ¶
func NewGetSmsEventsParamsWithTimeout(timeout time.Duration) *GetSmsEventsParams
NewGetSmsEventsParamsWithTimeout creates a new GetSmsEventsParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetSmsEventsParams) SetContext ¶
func (o *GetSmsEventsParams) SetContext(ctx context.Context)
SetContext adds the context to the get sms events params
func (*GetSmsEventsParams) SetDays ¶
func (o *GetSmsEventsParams) SetDays(days *int64)
SetDays adds the days to the get sms events params
func (*GetSmsEventsParams) SetEndDate ¶
func (o *GetSmsEventsParams) SetEndDate(endDate *strfmt.Date)
SetEndDate adds the endDate to the get sms events params
func (*GetSmsEventsParams) SetEvent ¶
func (o *GetSmsEventsParams) SetEvent(event *string)
SetEvent adds the event to the get sms events params
func (*GetSmsEventsParams) SetHTTPClient ¶
func (o *GetSmsEventsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get sms events params
func (*GetSmsEventsParams) SetLimit ¶
func (o *GetSmsEventsParams) SetLimit(limit *int64)
SetLimit adds the limit to the get sms events params
func (*GetSmsEventsParams) SetOffset ¶
func (o *GetSmsEventsParams) SetOffset(offset *int64)
SetOffset adds the offset to the get sms events params
func (*GetSmsEventsParams) SetPhoneNumber ¶
func (o *GetSmsEventsParams) SetPhoneNumber(phoneNumber *string)
SetPhoneNumber adds the phoneNumber to the get sms events params
func (*GetSmsEventsParams) SetStartDate ¶
func (o *GetSmsEventsParams) SetStartDate(startDate *strfmt.Date)
SetStartDate adds the startDate to the get sms events params
func (*GetSmsEventsParams) SetTags ¶
func (o *GetSmsEventsParams) SetTags(tags *string)
SetTags adds the tags to the get sms events params
func (*GetSmsEventsParams) SetTimeout ¶
func (o *GetSmsEventsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get sms events params
func (*GetSmsEventsParams) WithContext ¶
func (o *GetSmsEventsParams) WithContext(ctx context.Context) *GetSmsEventsParams
WithContext adds the context to the get sms events params
func (*GetSmsEventsParams) WithDays ¶
func (o *GetSmsEventsParams) WithDays(days *int64) *GetSmsEventsParams
WithDays adds the days to the get sms events params
func (*GetSmsEventsParams) WithEndDate ¶
func (o *GetSmsEventsParams) WithEndDate(endDate *strfmt.Date) *GetSmsEventsParams
WithEndDate adds the endDate to the get sms events params
func (*GetSmsEventsParams) WithEvent ¶
func (o *GetSmsEventsParams) WithEvent(event *string) *GetSmsEventsParams
WithEvent adds the event to the get sms events params
func (*GetSmsEventsParams) WithHTTPClient ¶
func (o *GetSmsEventsParams) WithHTTPClient(client *http.Client) *GetSmsEventsParams
WithHTTPClient adds the HTTPClient to the get sms events params
func (*GetSmsEventsParams) WithLimit ¶
func (o *GetSmsEventsParams) WithLimit(limit *int64) *GetSmsEventsParams
WithLimit adds the limit to the get sms events params
func (*GetSmsEventsParams) WithOffset ¶
func (o *GetSmsEventsParams) WithOffset(offset *int64) *GetSmsEventsParams
WithOffset adds the offset to the get sms events params
func (*GetSmsEventsParams) WithPhoneNumber ¶
func (o *GetSmsEventsParams) WithPhoneNumber(phoneNumber *string) *GetSmsEventsParams
WithPhoneNumber adds the phoneNumber to the get sms events params
func (*GetSmsEventsParams) WithStartDate ¶
func (o *GetSmsEventsParams) WithStartDate(startDate *strfmt.Date) *GetSmsEventsParams
WithStartDate adds the startDate to the get sms events params
func (*GetSmsEventsParams) WithTags ¶
func (o *GetSmsEventsParams) WithTags(tags *string) *GetSmsEventsParams
WithTags adds the tags to the get sms events params
func (*GetSmsEventsParams) WithTimeout ¶
func (o *GetSmsEventsParams) WithTimeout(timeout time.Duration) *GetSmsEventsParams
WithTimeout adds the timeout to the get sms events params
func (*GetSmsEventsParams) WriteToRequest ¶
func (o *GetSmsEventsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetSmsEventsReader ¶
type GetSmsEventsReader struct {
// contains filtered or unexported fields
}
GetSmsEventsReader is a Reader for the GetSmsEvents structure.
func (*GetSmsEventsReader) ReadResponse ¶
func (o *GetSmsEventsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetTransacAggregatedSmsReportBadRequest ¶
type GetTransacAggregatedSmsReportBadRequest struct {
Payload *models.ErrorModel
}
GetTransacAggregatedSmsReportBadRequest handles this case with default header values.
bad request
func NewGetTransacAggregatedSmsReportBadRequest ¶
func NewGetTransacAggregatedSmsReportBadRequest() *GetTransacAggregatedSmsReportBadRequest
NewGetTransacAggregatedSmsReportBadRequest creates a GetTransacAggregatedSmsReportBadRequest with default headers values
func (*GetTransacAggregatedSmsReportBadRequest) Error ¶
func (o *GetTransacAggregatedSmsReportBadRequest) Error() string
type GetTransacAggregatedSmsReportOK ¶
type GetTransacAggregatedSmsReportOK struct {
Payload *models.GetTransacAggregatedSmsReport
}
GetTransacAggregatedSmsReportOK handles this case with default header values.
Aggregated SMS report informations
func NewGetTransacAggregatedSmsReportOK ¶
func NewGetTransacAggregatedSmsReportOK() *GetTransacAggregatedSmsReportOK
NewGetTransacAggregatedSmsReportOK creates a GetTransacAggregatedSmsReportOK with default headers values
func (*GetTransacAggregatedSmsReportOK) Error ¶
func (o *GetTransacAggregatedSmsReportOK) Error() string
type GetTransacAggregatedSmsReportParams ¶
type GetTransacAggregatedSmsReportParams struct { /*Days Number of days in the past including today (positive integer). Not compatible with startDate and endDate */ Days *int64 /*EndDate Mandatory if startDate is used. Ending date (YYYY-MM-DD) of the report */ EndDate *strfmt.Date /*StartDate Mandatory if endDate is used. Starting date (YYYY-MM-DD) of the report */ StartDate *strfmt.Date /*Tag Filter on a tag */ Tag *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetTransacAggregatedSmsReportParams contains all the parameters to send to the API endpoint for the get transac aggregated sms report operation typically these are written to a http.Request
func NewGetTransacAggregatedSmsReportParams ¶
func NewGetTransacAggregatedSmsReportParams() *GetTransacAggregatedSmsReportParams
NewGetTransacAggregatedSmsReportParams creates a new GetTransacAggregatedSmsReportParams object with the default values initialized.
func NewGetTransacAggregatedSmsReportParamsWithContext ¶
func NewGetTransacAggregatedSmsReportParamsWithContext(ctx context.Context) *GetTransacAggregatedSmsReportParams
NewGetTransacAggregatedSmsReportParamsWithContext creates a new GetTransacAggregatedSmsReportParams object with the default values initialized, and the ability to set a context for a request
func NewGetTransacAggregatedSmsReportParamsWithHTTPClient ¶
func NewGetTransacAggregatedSmsReportParamsWithHTTPClient(client *http.Client) *GetTransacAggregatedSmsReportParams
NewGetTransacAggregatedSmsReportParamsWithHTTPClient creates a new GetTransacAggregatedSmsReportParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetTransacAggregatedSmsReportParamsWithTimeout ¶
func NewGetTransacAggregatedSmsReportParamsWithTimeout(timeout time.Duration) *GetTransacAggregatedSmsReportParams
NewGetTransacAggregatedSmsReportParamsWithTimeout creates a new GetTransacAggregatedSmsReportParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetTransacAggregatedSmsReportParams) SetContext ¶
func (o *GetTransacAggregatedSmsReportParams) SetContext(ctx context.Context)
SetContext adds the context to the get transac aggregated sms report params
func (*GetTransacAggregatedSmsReportParams) SetDays ¶
func (o *GetTransacAggregatedSmsReportParams) SetDays(days *int64)
SetDays adds the days to the get transac aggregated sms report params
func (*GetTransacAggregatedSmsReportParams) SetEndDate ¶
func (o *GetTransacAggregatedSmsReportParams) SetEndDate(endDate *strfmt.Date)
SetEndDate adds the endDate to the get transac aggregated sms report params
func (*GetTransacAggregatedSmsReportParams) SetHTTPClient ¶
func (o *GetTransacAggregatedSmsReportParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get transac aggregated sms report params
func (*GetTransacAggregatedSmsReportParams) SetStartDate ¶
func (o *GetTransacAggregatedSmsReportParams) SetStartDate(startDate *strfmt.Date)
SetStartDate adds the startDate to the get transac aggregated sms report params
func (*GetTransacAggregatedSmsReportParams) SetTag ¶
func (o *GetTransacAggregatedSmsReportParams) SetTag(tag *string)
SetTag adds the tag to the get transac aggregated sms report params
func (*GetTransacAggregatedSmsReportParams) SetTimeout ¶
func (o *GetTransacAggregatedSmsReportParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get transac aggregated sms report params
func (*GetTransacAggregatedSmsReportParams) WithContext ¶
func (o *GetTransacAggregatedSmsReportParams) WithContext(ctx context.Context) *GetTransacAggregatedSmsReportParams
WithContext adds the context to the get transac aggregated sms report params
func (*GetTransacAggregatedSmsReportParams) WithDays ¶
func (o *GetTransacAggregatedSmsReportParams) WithDays(days *int64) *GetTransacAggregatedSmsReportParams
WithDays adds the days to the get transac aggregated sms report params
func (*GetTransacAggregatedSmsReportParams) WithEndDate ¶
func (o *GetTransacAggregatedSmsReportParams) WithEndDate(endDate *strfmt.Date) *GetTransacAggregatedSmsReportParams
WithEndDate adds the endDate to the get transac aggregated sms report params
func (*GetTransacAggregatedSmsReportParams) WithHTTPClient ¶
func (o *GetTransacAggregatedSmsReportParams) WithHTTPClient(client *http.Client) *GetTransacAggregatedSmsReportParams
WithHTTPClient adds the HTTPClient to the get transac aggregated sms report params
func (*GetTransacAggregatedSmsReportParams) WithStartDate ¶
func (o *GetTransacAggregatedSmsReportParams) WithStartDate(startDate *strfmt.Date) *GetTransacAggregatedSmsReportParams
WithStartDate adds the startDate to the get transac aggregated sms report params
func (*GetTransacAggregatedSmsReportParams) WithTag ¶
func (o *GetTransacAggregatedSmsReportParams) WithTag(tag *string) *GetTransacAggregatedSmsReportParams
WithTag adds the tag to the get transac aggregated sms report params
func (*GetTransacAggregatedSmsReportParams) WithTimeout ¶
func (o *GetTransacAggregatedSmsReportParams) WithTimeout(timeout time.Duration) *GetTransacAggregatedSmsReportParams
WithTimeout adds the timeout to the get transac aggregated sms report params
func (*GetTransacAggregatedSmsReportParams) WriteToRequest ¶
func (o *GetTransacAggregatedSmsReportParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetTransacAggregatedSmsReportReader ¶
type GetTransacAggregatedSmsReportReader struct {
// contains filtered or unexported fields
}
GetTransacAggregatedSmsReportReader is a Reader for the GetTransacAggregatedSmsReport structure.
func (*GetTransacAggregatedSmsReportReader) ReadResponse ¶
func (o *GetTransacAggregatedSmsReportReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetTransacSmsReportBadRequest ¶
type GetTransacSmsReportBadRequest struct {
Payload *models.ErrorModel
}
GetTransacSmsReportBadRequest handles this case with default header values.
bad request
func NewGetTransacSmsReportBadRequest ¶
func NewGetTransacSmsReportBadRequest() *GetTransacSmsReportBadRequest
NewGetTransacSmsReportBadRequest creates a GetTransacSmsReportBadRequest with default headers values
func (*GetTransacSmsReportBadRequest) Error ¶
func (o *GetTransacSmsReportBadRequest) Error() string
type GetTransacSmsReportOK ¶
type GetTransacSmsReportOK struct {
Payload *models.GetTransacSmsReport
}
GetTransacSmsReportOK handles this case with default header values.
Aggregated SMS report informations
func NewGetTransacSmsReportOK ¶
func NewGetTransacSmsReportOK() *GetTransacSmsReportOK
NewGetTransacSmsReportOK creates a GetTransacSmsReportOK with default headers values
func (*GetTransacSmsReportOK) Error ¶
func (o *GetTransacSmsReportOK) Error() string
type GetTransacSmsReportParams ¶
type GetTransacSmsReportParams struct { /*Days Number of days in the past including today (positive integer). Not compatible with 'startDate' and 'endDate' */ Days *int64 /*EndDate Mandatory if startDate is used. Ending date (YYYY-MM-DD) of the report */ EndDate *strfmt.Date /*StartDate Mandatory if endDate is used. Starting date (YYYY-MM-DD) of the report */ StartDate *strfmt.Date /*Tag Filter on a tag */ Tag *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetTransacSmsReportParams contains all the parameters to send to the API endpoint for the get transac sms report operation typically these are written to a http.Request
func NewGetTransacSmsReportParams ¶
func NewGetTransacSmsReportParams() *GetTransacSmsReportParams
NewGetTransacSmsReportParams creates a new GetTransacSmsReportParams object with the default values initialized.
func NewGetTransacSmsReportParamsWithContext ¶
func NewGetTransacSmsReportParamsWithContext(ctx context.Context) *GetTransacSmsReportParams
NewGetTransacSmsReportParamsWithContext creates a new GetTransacSmsReportParams object with the default values initialized, and the ability to set a context for a request
func NewGetTransacSmsReportParamsWithHTTPClient ¶
func NewGetTransacSmsReportParamsWithHTTPClient(client *http.Client) *GetTransacSmsReportParams
NewGetTransacSmsReportParamsWithHTTPClient creates a new GetTransacSmsReportParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetTransacSmsReportParamsWithTimeout ¶
func NewGetTransacSmsReportParamsWithTimeout(timeout time.Duration) *GetTransacSmsReportParams
NewGetTransacSmsReportParamsWithTimeout creates a new GetTransacSmsReportParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetTransacSmsReportParams) SetContext ¶
func (o *GetTransacSmsReportParams) SetContext(ctx context.Context)
SetContext adds the context to the get transac sms report params
func (*GetTransacSmsReportParams) SetDays ¶
func (o *GetTransacSmsReportParams) SetDays(days *int64)
SetDays adds the days to the get transac sms report params
func (*GetTransacSmsReportParams) SetEndDate ¶
func (o *GetTransacSmsReportParams) SetEndDate(endDate *strfmt.Date)
SetEndDate adds the endDate to the get transac sms report params
func (*GetTransacSmsReportParams) SetHTTPClient ¶
func (o *GetTransacSmsReportParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get transac sms report params
func (*GetTransacSmsReportParams) SetStartDate ¶
func (o *GetTransacSmsReportParams) SetStartDate(startDate *strfmt.Date)
SetStartDate adds the startDate to the get transac sms report params
func (*GetTransacSmsReportParams) SetTag ¶
func (o *GetTransacSmsReportParams) SetTag(tag *string)
SetTag adds the tag to the get transac sms report params
func (*GetTransacSmsReportParams) SetTimeout ¶
func (o *GetTransacSmsReportParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get transac sms report params
func (*GetTransacSmsReportParams) WithContext ¶
func (o *GetTransacSmsReportParams) WithContext(ctx context.Context) *GetTransacSmsReportParams
WithContext adds the context to the get transac sms report params
func (*GetTransacSmsReportParams) WithDays ¶
func (o *GetTransacSmsReportParams) WithDays(days *int64) *GetTransacSmsReportParams
WithDays adds the days to the get transac sms report params
func (*GetTransacSmsReportParams) WithEndDate ¶
func (o *GetTransacSmsReportParams) WithEndDate(endDate *strfmt.Date) *GetTransacSmsReportParams
WithEndDate adds the endDate to the get transac sms report params
func (*GetTransacSmsReportParams) WithHTTPClient ¶
func (o *GetTransacSmsReportParams) WithHTTPClient(client *http.Client) *GetTransacSmsReportParams
WithHTTPClient adds the HTTPClient to the get transac sms report params
func (*GetTransacSmsReportParams) WithStartDate ¶
func (o *GetTransacSmsReportParams) WithStartDate(startDate *strfmt.Date) *GetTransacSmsReportParams
WithStartDate adds the startDate to the get transac sms report params
func (*GetTransacSmsReportParams) WithTag ¶
func (o *GetTransacSmsReportParams) WithTag(tag *string) *GetTransacSmsReportParams
WithTag adds the tag to the get transac sms report params
func (*GetTransacSmsReportParams) WithTimeout ¶
func (o *GetTransacSmsReportParams) WithTimeout(timeout time.Duration) *GetTransacSmsReportParams
WithTimeout adds the timeout to the get transac sms report params
func (*GetTransacSmsReportParams) WriteToRequest ¶
func (o *GetTransacSmsReportParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetTransacSmsReportReader ¶
type GetTransacSmsReportReader struct {
// contains filtered or unexported fields
}
GetTransacSmsReportReader is a Reader for the GetTransacSmsReport structure.
func (*GetTransacSmsReportReader) ReadResponse ¶
func (o *GetTransacSmsReportReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type SendTransacSmsBadRequest ¶
type SendTransacSmsBadRequest struct {
Payload *models.ErrorModel
}
SendTransacSmsBadRequest handles this case with default header values.
bad request
func NewSendTransacSmsBadRequest ¶
func NewSendTransacSmsBadRequest() *SendTransacSmsBadRequest
NewSendTransacSmsBadRequest creates a SendTransacSmsBadRequest with default headers values
func (*SendTransacSmsBadRequest) Error ¶
func (o *SendTransacSmsBadRequest) Error() string
type SendTransacSmsCreated ¶
SendTransacSmsCreated handles this case with default header values.
SMS has been sent successfully to the recipient
func NewSendTransacSmsCreated ¶
func NewSendTransacSmsCreated() *SendTransacSmsCreated
NewSendTransacSmsCreated creates a SendTransacSmsCreated with default headers values
func (*SendTransacSmsCreated) Error ¶
func (o *SendTransacSmsCreated) Error() string
type SendTransacSmsParams ¶
type SendTransacSmsParams struct { /*SendTransacSms Values to send a transactional SMS */ SendTransacSms *models.SendTransacSms Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
SendTransacSmsParams contains all the parameters to send to the API endpoint for the send transac sms operation typically these are written to a http.Request
func NewSendTransacSmsParams ¶
func NewSendTransacSmsParams() *SendTransacSmsParams
NewSendTransacSmsParams creates a new SendTransacSmsParams object with the default values initialized.
func NewSendTransacSmsParamsWithContext ¶
func NewSendTransacSmsParamsWithContext(ctx context.Context) *SendTransacSmsParams
NewSendTransacSmsParamsWithContext creates a new SendTransacSmsParams object with the default values initialized, and the ability to set a context for a request
func NewSendTransacSmsParamsWithHTTPClient ¶
func NewSendTransacSmsParamsWithHTTPClient(client *http.Client) *SendTransacSmsParams
NewSendTransacSmsParamsWithHTTPClient creates a new SendTransacSmsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewSendTransacSmsParamsWithTimeout ¶
func NewSendTransacSmsParamsWithTimeout(timeout time.Duration) *SendTransacSmsParams
NewSendTransacSmsParamsWithTimeout creates a new SendTransacSmsParams object with the default values initialized, and the ability to set a timeout on a request
func (*SendTransacSmsParams) SetContext ¶
func (o *SendTransacSmsParams) SetContext(ctx context.Context)
SetContext adds the context to the send transac sms params
func (*SendTransacSmsParams) SetHTTPClient ¶
func (o *SendTransacSmsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the send transac sms params
func (*SendTransacSmsParams) SetSendTransacSms ¶
func (o *SendTransacSmsParams) SetSendTransacSms(sendTransacSms *models.SendTransacSms)
SetSendTransacSms adds the sendTransacSms to the send transac sms params
func (*SendTransacSmsParams) SetTimeout ¶
func (o *SendTransacSmsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the send transac sms params
func (*SendTransacSmsParams) WithContext ¶
func (o *SendTransacSmsParams) WithContext(ctx context.Context) *SendTransacSmsParams
WithContext adds the context to the send transac sms params
func (*SendTransacSmsParams) WithHTTPClient ¶
func (o *SendTransacSmsParams) WithHTTPClient(client *http.Client) *SendTransacSmsParams
WithHTTPClient adds the HTTPClient to the send transac sms params
func (*SendTransacSmsParams) WithSendTransacSms ¶
func (o *SendTransacSmsParams) WithSendTransacSms(sendTransacSms *models.SendTransacSms) *SendTransacSmsParams
WithSendTransacSms adds the sendTransacSms to the send transac sms params
func (*SendTransacSmsParams) WithTimeout ¶
func (o *SendTransacSmsParams) WithTimeout(timeout time.Duration) *SendTransacSmsParams
WithTimeout adds the timeout to the send transac sms params
func (*SendTransacSmsParams) WriteToRequest ¶
func (o *SendTransacSmsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type SendTransacSmsPaymentRequired ¶
type SendTransacSmsPaymentRequired struct {
Payload *models.ErrorModel
}
SendTransacSmsPaymentRequired handles this case with default header values.
You don't have enough credit to send your SMS. Please update your plan
func NewSendTransacSmsPaymentRequired ¶
func NewSendTransacSmsPaymentRequired() *SendTransacSmsPaymentRequired
NewSendTransacSmsPaymentRequired creates a SendTransacSmsPaymentRequired with default headers values
func (*SendTransacSmsPaymentRequired) Error ¶
func (o *SendTransacSmsPaymentRequired) Error() string
type SendTransacSmsReader ¶
type SendTransacSmsReader struct {
// contains filtered or unexported fields
}
SendTransacSmsReader is a Reader for the SendTransacSms structure.
func (*SendTransacSmsReader) ReadResponse ¶
func (o *SendTransacSmsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
Source Files ¶
- get_sms_events_parameters.go
- get_sms_events_responses.go
- get_transac_aggregated_sms_report_parameters.go
- get_transac_aggregated_sms_report_responses.go
- get_transac_sms_report_parameters.go
- get_transac_sms_report_responses.go
- send_transac_sms_parameters.go
- send_transac_sms_responses.go
- transactional_s_m_s_client.go