transactional_sms

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

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 sms API

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client

New creates a new transactional sms API client.

func (*Client) GetSMSEvents added in v1.5.0

func (a *Client) GetSMSEvents(params *GetSMSEventsParams, authInfo runtime.ClientAuthInfoWriter) (*GetSMSEventsOK, error)

GetSMSEvents gets all the SMS activity unaggregated events

func (*Client) GetTransacAggregatedSMSReport added in v1.5.0

func (a *Client) GetTransacAggregatedSMSReport(params *GetTransacAggregatedSMSReportParams, authInfo runtime.ClientAuthInfoWriter) (*GetTransacAggregatedSMSReportOK, error)

GetTransacAggregatedSMSReport gets your SMS activity aggregated over a period of time

func (*Client) GetTransacSMSReport added in v1.5.0

func (a *Client) GetTransacSMSReport(params *GetTransacSMSReportParams, authInfo runtime.ClientAuthInfoWriter) (*GetTransacSMSReportOK, error)

GetTransacSMSReport gets your SMS activity aggregated per day

func (*Client) SendTransacSMS added in v1.5.0

func (a *Client) SendTransacSMS(params *SendTransacSMSParams, authInfo runtime.ClientAuthInfoWriter) (*SendTransacSMSCreated, error)

SendTransacSMS sends the SMS 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 added in v1.5.0

type GetSMSEventsBadRequest struct {
	Payload *models.ErrorModel
}

GetSMSEventsBadRequest handles this case with default header values.

bad request

func NewGetSMSEventsBadRequest added in v1.5.0

func NewGetSMSEventsBadRequest() *GetSMSEventsBadRequest

NewGetSMSEventsBadRequest creates a GetSMSEventsBadRequest with default headers values

func (*GetSMSEventsBadRequest) Error added in v1.5.0

func (o *GetSMSEventsBadRequest) Error() string

type GetSMSEventsOK added in v1.5.0

type GetSMSEventsOK struct {
	Payload *models.GetSMSEventReport
}

GetSMSEventsOK handles this case with default header values.

Sms events report informations

func NewGetSMSEventsOK added in v1.5.0

func NewGetSMSEventsOK() *GetSMSEventsOK

NewGetSMSEventsOK creates a GetSMSEventsOK with default headers values

func (*GetSMSEventsOK) Error added in v1.5.0

func (o *GetSMSEventsOK) Error() string

type GetSMSEventsParams added in v1.5.0

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 added in v1.5.0

func NewGetSMSEventsParams() *GetSMSEventsParams

NewGetSMSEventsParams creates a new GetSMSEventsParams object with the default values initialized.

func NewGetSMSEventsParamsWithContext added in v1.5.0

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 added in v1.5.0

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 added in v1.5.0

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 added in v1.5.0

func (o *GetSMSEventsParams) SetContext(ctx context.Context)

SetContext adds the context to the get Sms events params

func (*GetSMSEventsParams) SetDays added in v1.5.0

func (o *GetSMSEventsParams) SetDays(days *int64)

SetDays adds the days to the get Sms events params

func (*GetSMSEventsParams) SetEndDate added in v1.5.0

func (o *GetSMSEventsParams) SetEndDate(endDate *strfmt.Date)

SetEndDate adds the endDate to the get Sms events params

func (*GetSMSEventsParams) SetEvent added in v1.5.0

func (o *GetSMSEventsParams) SetEvent(event *string)

SetEvent adds the event to the get Sms events params

func (*GetSMSEventsParams) SetHTTPClient added in v1.5.0

func (o *GetSMSEventsParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get Sms events params

func (*GetSMSEventsParams) SetLimit added in v1.5.0

func (o *GetSMSEventsParams) SetLimit(limit *int64)

SetLimit adds the limit to the get Sms events params

func (*GetSMSEventsParams) SetOffset added in v1.5.0

func (o *GetSMSEventsParams) SetOffset(offset *int64)

SetOffset adds the offset to the get Sms events params

func (*GetSMSEventsParams) SetPhoneNumber added in v1.5.0

func (o *GetSMSEventsParams) SetPhoneNumber(phoneNumber *string)

SetPhoneNumber adds the phoneNumber to the get Sms events params

func (*GetSMSEventsParams) SetStartDate added in v1.5.0

func (o *GetSMSEventsParams) SetStartDate(startDate *strfmt.Date)

SetStartDate adds the startDate to the get Sms events params

func (*GetSMSEventsParams) SetTags added in v1.5.0

func (o *GetSMSEventsParams) SetTags(tags *string)

SetTags adds the tags to the get Sms events params

func (*GetSMSEventsParams) SetTimeout added in v1.5.0

func (o *GetSMSEventsParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get Sms events params

func (*GetSMSEventsParams) WithContext added in v1.5.0

WithContext adds the context to the get Sms events params

func (*GetSMSEventsParams) WithDays added in v1.5.0

func (o *GetSMSEventsParams) WithDays(days *int64) *GetSMSEventsParams

WithDays adds the days to the get Sms events params

func (*GetSMSEventsParams) WithEndDate added in v1.5.0

func (o *GetSMSEventsParams) WithEndDate(endDate *strfmt.Date) *GetSMSEventsParams

WithEndDate adds the endDate to the get Sms events params

func (*GetSMSEventsParams) WithEvent added in v1.5.0

func (o *GetSMSEventsParams) WithEvent(event *string) *GetSMSEventsParams

WithEvent adds the event to the get Sms events params

func (*GetSMSEventsParams) WithHTTPClient added in v1.5.0

func (o *GetSMSEventsParams) WithHTTPClient(client *http.Client) *GetSMSEventsParams

WithHTTPClient adds the HTTPClient to the get Sms events params

func (*GetSMSEventsParams) WithLimit added in v1.5.0

func (o *GetSMSEventsParams) WithLimit(limit *int64) *GetSMSEventsParams

WithLimit adds the limit to the get Sms events params

func (*GetSMSEventsParams) WithOffset added in v1.5.0

func (o *GetSMSEventsParams) WithOffset(offset *int64) *GetSMSEventsParams

WithOffset adds the offset to the get Sms events params

func (*GetSMSEventsParams) WithPhoneNumber added in v1.5.0

func (o *GetSMSEventsParams) WithPhoneNumber(phoneNumber *string) *GetSMSEventsParams

WithPhoneNumber adds the phoneNumber to the get Sms events params

func (*GetSMSEventsParams) WithStartDate added in v1.5.0

func (o *GetSMSEventsParams) WithStartDate(startDate *strfmt.Date) *GetSMSEventsParams

WithStartDate adds the startDate to the get Sms events params

func (*GetSMSEventsParams) WithTags added in v1.5.0

func (o *GetSMSEventsParams) WithTags(tags *string) *GetSMSEventsParams

WithTags adds the tags to the get Sms events params

func (*GetSMSEventsParams) WithTimeout added in v1.5.0

func (o *GetSMSEventsParams) WithTimeout(timeout time.Duration) *GetSMSEventsParams

WithTimeout adds the timeout to the get Sms events params

func (*GetSMSEventsParams) WriteToRequest added in v1.5.0

func (o *GetSMSEventsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetSMSEventsReader added in v1.5.0

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

GetSMSEventsReader is a Reader for the GetSMSEvents structure.

func (*GetSMSEventsReader) ReadResponse added in v1.5.0

func (o *GetSMSEventsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetTransacAggregatedSMSReportBadRequest added in v1.5.0

type GetTransacAggregatedSMSReportBadRequest struct {
	Payload *models.ErrorModel
}

GetTransacAggregatedSMSReportBadRequest handles this case with default header values.

bad request

func NewGetTransacAggregatedSMSReportBadRequest added in v1.5.0

func NewGetTransacAggregatedSMSReportBadRequest() *GetTransacAggregatedSMSReportBadRequest

NewGetTransacAggregatedSMSReportBadRequest creates a GetTransacAggregatedSMSReportBadRequest with default headers values

func (*GetTransacAggregatedSMSReportBadRequest) Error added in v1.5.0

type GetTransacAggregatedSMSReportOK added in v1.5.0

type GetTransacAggregatedSMSReportOK struct {
	Payload *models.GetTransacAggregatedSMSReport
}

GetTransacAggregatedSMSReportOK handles this case with default header values.

Aggregated SMS report informations

func NewGetTransacAggregatedSMSReportOK added in v1.5.0

func NewGetTransacAggregatedSMSReportOK() *GetTransacAggregatedSMSReportOK

NewGetTransacAggregatedSMSReportOK creates a GetTransacAggregatedSMSReportOK with default headers values

func (*GetTransacAggregatedSMSReportOK) Error added in v1.5.0

type GetTransacAggregatedSMSReportParams added in v1.5.0

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 added in v1.5.0

func NewGetTransacAggregatedSMSReportParams() *GetTransacAggregatedSMSReportParams

NewGetTransacAggregatedSMSReportParams creates a new GetTransacAggregatedSMSReportParams object with the default values initialized.

func NewGetTransacAggregatedSMSReportParamsWithContext added in v1.5.0

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 added in v1.5.0

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 added in v1.5.0

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 added in v1.5.0

SetContext adds the context to the get transac aggregated Sms report params

func (*GetTransacAggregatedSMSReportParams) SetDays added in v1.5.0

func (o *GetTransacAggregatedSMSReportParams) SetDays(days *int64)

SetDays adds the days to the get transac aggregated Sms report params

func (*GetTransacAggregatedSMSReportParams) SetEndDate added in v1.5.0

func (o *GetTransacAggregatedSMSReportParams) SetEndDate(endDate *strfmt.Date)

SetEndDate adds the endDate to the get transac aggregated Sms report params

func (*GetTransacAggregatedSMSReportParams) SetHTTPClient added in v1.5.0

func (o *GetTransacAggregatedSMSReportParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get transac aggregated Sms report params

func (*GetTransacAggregatedSMSReportParams) SetStartDate added in v1.5.0

func (o *GetTransacAggregatedSMSReportParams) SetStartDate(startDate *strfmt.Date)

SetStartDate adds the startDate to the get transac aggregated Sms report params

func (*GetTransacAggregatedSMSReportParams) SetTag added in v1.5.0

SetTag adds the tag to the get transac aggregated Sms report params

func (*GetTransacAggregatedSMSReportParams) SetTimeout added in v1.5.0

func (o *GetTransacAggregatedSMSReportParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get transac aggregated Sms report params

func (*GetTransacAggregatedSMSReportParams) WithContext added in v1.5.0

WithContext adds the context to the get transac aggregated Sms report params

func (*GetTransacAggregatedSMSReportParams) WithDays added in v1.5.0

WithDays adds the days to the get transac aggregated Sms report params

func (*GetTransacAggregatedSMSReportParams) WithEndDate added in v1.5.0

WithEndDate adds the endDate to the get transac aggregated Sms report params

func (*GetTransacAggregatedSMSReportParams) WithHTTPClient added in v1.5.0

WithHTTPClient adds the HTTPClient to the get transac aggregated Sms report params

func (*GetTransacAggregatedSMSReportParams) WithStartDate added in v1.5.0

WithStartDate adds the startDate to the get transac aggregated Sms report params

func (*GetTransacAggregatedSMSReportParams) WithTag added in v1.5.0

WithTag adds the tag to the get transac aggregated Sms report params

func (*GetTransacAggregatedSMSReportParams) WithTimeout added in v1.5.0

WithTimeout adds the timeout to the get transac aggregated Sms report params

func (*GetTransacAggregatedSMSReportParams) WriteToRequest added in v1.5.0

WriteToRequest writes these params to a swagger request

type GetTransacAggregatedSMSReportReader added in v1.5.0

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

GetTransacAggregatedSMSReportReader is a Reader for the GetTransacAggregatedSMSReport structure.

func (*GetTransacAggregatedSMSReportReader) ReadResponse added in v1.5.0

func (o *GetTransacAggregatedSMSReportReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetTransacSMSReportBadRequest added in v1.5.0

type GetTransacSMSReportBadRequest struct {
	Payload *models.ErrorModel
}

GetTransacSMSReportBadRequest handles this case with default header values.

bad request

func NewGetTransacSMSReportBadRequest added in v1.5.0

func NewGetTransacSMSReportBadRequest() *GetTransacSMSReportBadRequest

NewGetTransacSMSReportBadRequest creates a GetTransacSMSReportBadRequest with default headers values

func (*GetTransacSMSReportBadRequest) Error added in v1.5.0

type GetTransacSMSReportOK added in v1.5.0

type GetTransacSMSReportOK struct {
	Payload *models.GetTransacSMSReport
}

GetTransacSMSReportOK handles this case with default header values.

Aggregated SMS report informations

func NewGetTransacSMSReportOK added in v1.5.0

func NewGetTransacSMSReportOK() *GetTransacSMSReportOK

NewGetTransacSMSReportOK creates a GetTransacSMSReportOK with default headers values

func (*GetTransacSMSReportOK) Error added in v1.5.0

func (o *GetTransacSMSReportOK) Error() string

type GetTransacSMSReportParams added in v1.5.0

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 added in v1.5.0

func NewGetTransacSMSReportParams() *GetTransacSMSReportParams

NewGetTransacSMSReportParams creates a new GetTransacSMSReportParams object with the default values initialized.

func NewGetTransacSMSReportParamsWithContext added in v1.5.0

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 added in v1.5.0

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 added in v1.5.0

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 added in v1.5.0

func (o *GetTransacSMSReportParams) SetContext(ctx context.Context)

SetContext adds the context to the get transac Sms report params

func (*GetTransacSMSReportParams) SetDays added in v1.5.0

func (o *GetTransacSMSReportParams) SetDays(days *int64)

SetDays adds the days to the get transac Sms report params

func (*GetTransacSMSReportParams) SetEndDate added in v1.5.0

func (o *GetTransacSMSReportParams) SetEndDate(endDate *strfmt.Date)

SetEndDate adds the endDate to the get transac Sms report params

func (*GetTransacSMSReportParams) SetHTTPClient added in v1.5.0

func (o *GetTransacSMSReportParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get transac Sms report params

func (*GetTransacSMSReportParams) SetStartDate added in v1.5.0

func (o *GetTransacSMSReportParams) SetStartDate(startDate *strfmt.Date)

SetStartDate adds the startDate to the get transac Sms report params

func (*GetTransacSMSReportParams) SetTag added in v1.5.0

func (o *GetTransacSMSReportParams) SetTag(tag *string)

SetTag adds the tag to the get transac Sms report params

func (*GetTransacSMSReportParams) SetTimeout added in v1.5.0

func (o *GetTransacSMSReportParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get transac Sms report params

func (*GetTransacSMSReportParams) WithContext added in v1.5.0

WithContext adds the context to the get transac Sms report params

func (*GetTransacSMSReportParams) WithDays added in v1.5.0

WithDays adds the days to the get transac Sms report params

func (*GetTransacSMSReportParams) WithEndDate added in v1.5.0

WithEndDate adds the endDate to the get transac Sms report params

func (*GetTransacSMSReportParams) WithHTTPClient added in v1.5.0

func (o *GetTransacSMSReportParams) WithHTTPClient(client *http.Client) *GetTransacSMSReportParams

WithHTTPClient adds the HTTPClient to the get transac Sms report params

func (*GetTransacSMSReportParams) WithStartDate added in v1.5.0

func (o *GetTransacSMSReportParams) WithStartDate(startDate *strfmt.Date) *GetTransacSMSReportParams

WithStartDate adds the startDate to the get transac Sms report params

func (*GetTransacSMSReportParams) WithTag added in v1.5.0

WithTag adds the tag to the get transac Sms report params

func (*GetTransacSMSReportParams) WithTimeout added in v1.5.0

WithTimeout adds the timeout to the get transac Sms report params

func (*GetTransacSMSReportParams) WriteToRequest added in v1.5.0

WriteToRequest writes these params to a swagger request

type GetTransacSMSReportReader added in v1.5.0

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

GetTransacSMSReportReader is a Reader for the GetTransacSMSReport structure.

func (*GetTransacSMSReportReader) ReadResponse added in v1.5.0

func (o *GetTransacSMSReportReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type SendTransacSMSBadRequest added in v1.5.0

type SendTransacSMSBadRequest struct {
	Payload *models.ErrorModel
}

SendTransacSMSBadRequest handles this case with default header values.

bad request

func NewSendTransacSMSBadRequest added in v1.5.0

func NewSendTransacSMSBadRequest() *SendTransacSMSBadRequest

NewSendTransacSMSBadRequest creates a SendTransacSMSBadRequest with default headers values

func (*SendTransacSMSBadRequest) Error added in v1.5.0

func (o *SendTransacSMSBadRequest) Error() string

type SendTransacSMSCreated added in v1.5.0

type SendTransacSMSCreated struct {
	Payload *models.SendSMS
}

SendTransacSMSCreated handles this case with default header values.

SMS has been sent successfully to the recipient

func NewSendTransacSMSCreated added in v1.5.0

func NewSendTransacSMSCreated() *SendTransacSMSCreated

NewSendTransacSMSCreated creates a SendTransacSMSCreated with default headers values

func (*SendTransacSMSCreated) Error added in v1.5.0

func (o *SendTransacSMSCreated) Error() string

type SendTransacSMSParams added in v1.5.0

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 added in v1.5.0

func NewSendTransacSMSParams() *SendTransacSMSParams

NewSendTransacSMSParams creates a new SendTransacSMSParams object with the default values initialized.

func NewSendTransacSMSParamsWithContext added in v1.5.0

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 added in v1.5.0

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 added in v1.5.0

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 added in v1.5.0

func (o *SendTransacSMSParams) SetContext(ctx context.Context)

SetContext adds the context to the send transac Sms params

func (*SendTransacSMSParams) SetHTTPClient added in v1.5.0

func (o *SendTransacSMSParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the send transac Sms params

func (*SendTransacSMSParams) SetSendTransacSMS added in v1.5.0

func (o *SendTransacSMSParams) SetSendTransacSMS(sendTransacSMS *models.SendTransacSMS)

SetSendTransacSMS adds the sendTransacSms to the send transac Sms params

func (*SendTransacSMSParams) SetTimeout added in v1.5.0

func (o *SendTransacSMSParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the send transac Sms params

func (*SendTransacSMSParams) WithContext added in v1.5.0

WithContext adds the context to the send transac Sms params

func (*SendTransacSMSParams) WithHTTPClient added in v1.5.0

func (o *SendTransacSMSParams) WithHTTPClient(client *http.Client) *SendTransacSMSParams

WithHTTPClient adds the HTTPClient to the send transac Sms params

func (*SendTransacSMSParams) WithSendTransacSMS added in v1.5.0

func (o *SendTransacSMSParams) WithSendTransacSMS(sendTransacSMS *models.SendTransacSMS) *SendTransacSMSParams

WithSendTransacSMS adds the sendTransacSMS to the send transac Sms params

func (*SendTransacSMSParams) WithTimeout added in v1.5.0

func (o *SendTransacSMSParams) WithTimeout(timeout time.Duration) *SendTransacSMSParams

WithTimeout adds the timeout to the send transac Sms params

func (*SendTransacSMSParams) WriteToRequest added in v1.5.0

func (o *SendTransacSMSParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type SendTransacSMSPaymentRequired added in v1.5.0

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 added in v1.5.0

func NewSendTransacSMSPaymentRequired() *SendTransacSMSPaymentRequired

NewSendTransacSMSPaymentRequired creates a SendTransacSMSPaymentRequired with default headers values

func (*SendTransacSMSPaymentRequired) Error added in v1.5.0

type SendTransacSMSReader added in v1.5.0

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

SendTransacSMSReader is a Reader for the SendTransacSMS structure.

func (*SendTransacSMSReader) ReadResponse added in v1.5.0

func (o *SendTransacSMSReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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