transactional_sms

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2018 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

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

GetSMSEvents gets all the SMS activity unaggregated events

func (*Client) GetTransacAggregatedSMSReport

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

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

GetTransacSMSReport gets your SMS activity aggregated per day

func (*Client) SendTransacSMS

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

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

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

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

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

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

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

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

func (*GetTransacAggregatedSMSReportParams) WithDays

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

func (*GetTransacAggregatedSMSReportParams) WithEndDate

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

func (*GetTransacAggregatedSMSReportParams) WithHTTPClient

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

func (*GetTransacAggregatedSMSReportParams) WithStartDate

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

func (*GetTransacAggregatedSMSReportParams) WithTag

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

func (*GetTransacAggregatedSMSReportParams) WithTimeout

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

func (*GetTransacAggregatedSMSReportParams) WriteToRequest

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

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

WithContext adds the context to the get transac Sms report params

func (*GetTransacSMSReportParams) WithDays

WithDays adds the days to the get transac Sms report params

func (*GetTransacSMSReportParams) WithEndDate

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

WithTag adds the tag to the get transac Sms report params

func (*GetTransacSMSReportParams) WithTimeout

WithTimeout adds the timeout to the get transac Sms report params

func (*GetTransacSMSReportParams) WriteToRequest

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

type SendTransacSMSCreated struct {
	Payload *models.SendSMS
}

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

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

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.

Jump to

Keyboard shortcuts

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