email_campaigns

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 email campaigns API

func New

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

New creates a new email campaigns API client.

func (*Client) CreateEmailCampaign

func (a *Client) CreateEmailCampaign(params *CreateEmailCampaignParams, authInfo runtime.ClientAuthInfoWriter) (*CreateEmailCampaignCreated, error)

CreateEmailCampaign creates an email campaign

func (*Client) DeleteEmailCampaigns

DeleteEmailCampaigns deletes an email campaign

func (*Client) EmailExportRecipients

EmailExportRecipients exports the recipients of a campaign

func (*Client) GetEmailCampaign

func (a *Client) GetEmailCampaign(params *GetEmailCampaignParams, authInfo runtime.ClientAuthInfoWriter) (*GetEmailCampaignOK, error)

GetEmailCampaign gets campaign informations

func (*Client) GetEmailCampaigns

func (a *Client) GetEmailCampaigns(params *GetEmailCampaignsParams, authInfo runtime.ClientAuthInfoWriter) (*GetEmailCampaignsOK, error)

GetEmailCampaigns returns all your created campaigns

func (*Client) SendEmailCampaignNow

SendEmailCampaignNow sends an email campaign id of the campaign immediately

func (*Client) SendReport

func (a *Client) SendReport(params *SendReportParams, authInfo runtime.ClientAuthInfoWriter) (*SendReportNoContent, error)

SendReport sends the report of a campaigns

A PDF will be sent to the specified email addresses

func (*Client) SendTestEmail

func (a *Client) SendTestEmail(params *SendTestEmailParams, authInfo runtime.ClientAuthInfoWriter) (*SendTestEmailNoContent, error)

SendTestEmail sends an email campaign to your test list

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

func (*Client) UpdateCampaignStatus

UpdateCampaignStatus updates a campaign status

func (*Client) UpdateEmailCampaigns

UpdateEmailCampaigns updates a campaign

type CreateEmailCampaignBadRequest

type CreateEmailCampaignBadRequest struct {
	Payload *models.ErrorModel
}

CreateEmailCampaignBadRequest handles this case with default header values.

bad request

func NewCreateEmailCampaignBadRequest

func NewCreateEmailCampaignBadRequest() *CreateEmailCampaignBadRequest

NewCreateEmailCampaignBadRequest creates a CreateEmailCampaignBadRequest with default headers values

func (*CreateEmailCampaignBadRequest) Error

type CreateEmailCampaignCreated

type CreateEmailCampaignCreated struct {
	Payload *models.CreateModel
}

CreateEmailCampaignCreated handles this case with default header values.

Email campaign created

func NewCreateEmailCampaignCreated

func NewCreateEmailCampaignCreated() *CreateEmailCampaignCreated

NewCreateEmailCampaignCreated creates a CreateEmailCampaignCreated with default headers values

func (*CreateEmailCampaignCreated) Error

type CreateEmailCampaignParams

type CreateEmailCampaignParams struct {

	/*EmailCampaigns
	  Values to create a campaign

	*/
	EmailCampaigns *models.CreateEmailCampaign

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

CreateEmailCampaignParams contains all the parameters to send to the API endpoint for the create email campaign operation typically these are written to a http.Request

func NewCreateEmailCampaignParams

func NewCreateEmailCampaignParams() *CreateEmailCampaignParams

NewCreateEmailCampaignParams creates a new CreateEmailCampaignParams object with the default values initialized.

func NewCreateEmailCampaignParamsWithContext

func NewCreateEmailCampaignParamsWithContext(ctx context.Context) *CreateEmailCampaignParams

NewCreateEmailCampaignParamsWithContext creates a new CreateEmailCampaignParams object with the default values initialized, and the ability to set a context for a request

func NewCreateEmailCampaignParamsWithHTTPClient

func NewCreateEmailCampaignParamsWithHTTPClient(client *http.Client) *CreateEmailCampaignParams

NewCreateEmailCampaignParamsWithHTTPClient creates a new CreateEmailCampaignParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewCreateEmailCampaignParamsWithTimeout

func NewCreateEmailCampaignParamsWithTimeout(timeout time.Duration) *CreateEmailCampaignParams

NewCreateEmailCampaignParamsWithTimeout creates a new CreateEmailCampaignParams object with the default values initialized, and the ability to set a timeout on a request

func (*CreateEmailCampaignParams) SetContext

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

SetContext adds the context to the create email campaign params

func (*CreateEmailCampaignParams) SetEmailCampaigns

func (o *CreateEmailCampaignParams) SetEmailCampaigns(emailCampaigns *models.CreateEmailCampaign)

SetEmailCampaigns adds the emailCampaigns to the create email campaign params

func (*CreateEmailCampaignParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create email campaign params

func (*CreateEmailCampaignParams) SetTimeout

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

SetTimeout adds the timeout to the create email campaign params

func (*CreateEmailCampaignParams) WithContext

WithContext adds the context to the create email campaign params

func (*CreateEmailCampaignParams) WithEmailCampaigns

func (o *CreateEmailCampaignParams) WithEmailCampaigns(emailCampaigns *models.CreateEmailCampaign) *CreateEmailCampaignParams

WithEmailCampaigns adds the emailCampaigns to the create email campaign params

func (*CreateEmailCampaignParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create email campaign params

func (*CreateEmailCampaignParams) WithTimeout

WithTimeout adds the timeout to the create email campaign params

func (*CreateEmailCampaignParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreateEmailCampaignReader

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

CreateEmailCampaignReader is a Reader for the CreateEmailCampaign structure.

func (*CreateEmailCampaignReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteEmailCampaignsBadRequest

type DeleteEmailCampaignsBadRequest struct {
	Payload *models.ErrorModel
}

DeleteEmailCampaignsBadRequest handles this case with default header values.

bad request

func NewDeleteEmailCampaignsBadRequest

func NewDeleteEmailCampaignsBadRequest() *DeleteEmailCampaignsBadRequest

NewDeleteEmailCampaignsBadRequest creates a DeleteEmailCampaignsBadRequest with default headers values

func (*DeleteEmailCampaignsBadRequest) Error

type DeleteEmailCampaignsNoContent

type DeleteEmailCampaignsNoContent struct {
}

DeleteEmailCampaignsNoContent handles this case with default header values.

Email campaign has been deleted

func NewDeleteEmailCampaignsNoContent

func NewDeleteEmailCampaignsNoContent() *DeleteEmailCampaignsNoContent

NewDeleteEmailCampaignsNoContent creates a DeleteEmailCampaignsNoContent with default headers values

func (*DeleteEmailCampaignsNoContent) Error

type DeleteEmailCampaignsNotFound

type DeleteEmailCampaignsNotFound struct {
	Payload *models.ErrorModel
}

DeleteEmailCampaignsNotFound handles this case with default header values.

Campaign ID not found

func NewDeleteEmailCampaignsNotFound

func NewDeleteEmailCampaignsNotFound() *DeleteEmailCampaignsNotFound

NewDeleteEmailCampaignsNotFound creates a DeleteEmailCampaignsNotFound with default headers values

func (*DeleteEmailCampaignsNotFound) Error

type DeleteEmailCampaignsParams

type DeleteEmailCampaignsParams struct {

	/*CampaignID
	  id of the campaign

	*/
	CampaignID int64

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

DeleteEmailCampaignsParams contains all the parameters to send to the API endpoint for the delete email campaigns operation typically these are written to a http.Request

func NewDeleteEmailCampaignsParams

func NewDeleteEmailCampaignsParams() *DeleteEmailCampaignsParams

NewDeleteEmailCampaignsParams creates a new DeleteEmailCampaignsParams object with the default values initialized.

func NewDeleteEmailCampaignsParamsWithContext

func NewDeleteEmailCampaignsParamsWithContext(ctx context.Context) *DeleteEmailCampaignsParams

NewDeleteEmailCampaignsParamsWithContext creates a new DeleteEmailCampaignsParams object with the default values initialized, and the ability to set a context for a request

func NewDeleteEmailCampaignsParamsWithHTTPClient

func NewDeleteEmailCampaignsParamsWithHTTPClient(client *http.Client) *DeleteEmailCampaignsParams

NewDeleteEmailCampaignsParamsWithHTTPClient creates a new DeleteEmailCampaignsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewDeleteEmailCampaignsParamsWithTimeout

func NewDeleteEmailCampaignsParamsWithTimeout(timeout time.Duration) *DeleteEmailCampaignsParams

NewDeleteEmailCampaignsParamsWithTimeout creates a new DeleteEmailCampaignsParams object with the default values initialized, and the ability to set a timeout on a request

func (*DeleteEmailCampaignsParams) SetCampaignID

func (o *DeleteEmailCampaignsParams) SetCampaignID(campaignID int64)

SetCampaignID adds the campaignId to the delete email campaigns params

func (*DeleteEmailCampaignsParams) SetContext

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

SetContext adds the context to the delete email campaigns params

func (*DeleteEmailCampaignsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete email campaigns params

func (*DeleteEmailCampaignsParams) SetTimeout

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

SetTimeout adds the timeout to the delete email campaigns params

func (*DeleteEmailCampaignsParams) WithCampaignID

func (o *DeleteEmailCampaignsParams) WithCampaignID(campaignID int64) *DeleteEmailCampaignsParams

WithCampaignID adds the campaignID to the delete email campaigns params

func (*DeleteEmailCampaignsParams) WithContext

WithContext adds the context to the delete email campaigns params

func (*DeleteEmailCampaignsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the delete email campaigns params

func (*DeleteEmailCampaignsParams) WithTimeout

WithTimeout adds the timeout to the delete email campaigns params

func (*DeleteEmailCampaignsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteEmailCampaignsReader

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

DeleteEmailCampaignsReader is a Reader for the DeleteEmailCampaigns structure.

func (*DeleteEmailCampaignsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type EmailExportRecipientsAccepted

type EmailExportRecipientsAccepted struct {
	Payload *models.CreatedProcessID
}

EmailExportRecipientsAccepted handles this case with default header values.

Recipient export request has been accepted

func NewEmailExportRecipientsAccepted

func NewEmailExportRecipientsAccepted() *EmailExportRecipientsAccepted

NewEmailExportRecipientsAccepted creates a EmailExportRecipientsAccepted with default headers values

func (*EmailExportRecipientsAccepted) Error

type EmailExportRecipientsBadRequest

type EmailExportRecipientsBadRequest struct {
	Payload *models.ErrorModel
}

EmailExportRecipientsBadRequest handles this case with default header values.

bad request

func NewEmailExportRecipientsBadRequest

func NewEmailExportRecipientsBadRequest() *EmailExportRecipientsBadRequest

NewEmailExportRecipientsBadRequest creates a EmailExportRecipientsBadRequest with default headers values

func (*EmailExportRecipientsBadRequest) Error

type EmailExportRecipientsNotFound

type EmailExportRecipientsNotFound struct {
	Payload *models.ErrorModel
}

EmailExportRecipientsNotFound handles this case with default header values.

Campaign ID not found

func NewEmailExportRecipientsNotFound

func NewEmailExportRecipientsNotFound() *EmailExportRecipientsNotFound

NewEmailExportRecipientsNotFound creates a EmailExportRecipientsNotFound with default headers values

func (*EmailExportRecipientsNotFound) Error

type EmailExportRecipientsParams

type EmailExportRecipientsParams struct {

	/*CampaignID
	  Id of the campaign

	*/
	CampaignID int64
	/*RecipientExport
	  Values to send for a recipient export request

	*/
	RecipientExport *models.EmailExportRecipients

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

EmailExportRecipientsParams contains all the parameters to send to the API endpoint for the email export recipients operation typically these are written to a http.Request

func NewEmailExportRecipientsParams

func NewEmailExportRecipientsParams() *EmailExportRecipientsParams

NewEmailExportRecipientsParams creates a new EmailExportRecipientsParams object with the default values initialized.

func NewEmailExportRecipientsParamsWithContext

func NewEmailExportRecipientsParamsWithContext(ctx context.Context) *EmailExportRecipientsParams

NewEmailExportRecipientsParamsWithContext creates a new EmailExportRecipientsParams object with the default values initialized, and the ability to set a context for a request

func NewEmailExportRecipientsParamsWithHTTPClient

func NewEmailExportRecipientsParamsWithHTTPClient(client *http.Client) *EmailExportRecipientsParams

NewEmailExportRecipientsParamsWithHTTPClient creates a new EmailExportRecipientsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewEmailExportRecipientsParamsWithTimeout

func NewEmailExportRecipientsParamsWithTimeout(timeout time.Duration) *EmailExportRecipientsParams

NewEmailExportRecipientsParamsWithTimeout creates a new EmailExportRecipientsParams object with the default values initialized, and the ability to set a timeout on a request

func (*EmailExportRecipientsParams) SetCampaignID

func (o *EmailExportRecipientsParams) SetCampaignID(campaignID int64)

SetCampaignID adds the campaignId to the email export recipients params

func (*EmailExportRecipientsParams) SetContext

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

SetContext adds the context to the email export recipients params

func (*EmailExportRecipientsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the email export recipients params

func (*EmailExportRecipientsParams) SetRecipientExport

func (o *EmailExportRecipientsParams) SetRecipientExport(recipientExport *models.EmailExportRecipients)

SetRecipientExport adds the recipientExport to the email export recipients params

func (*EmailExportRecipientsParams) SetTimeout

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

SetTimeout adds the timeout to the email export recipients params

func (*EmailExportRecipientsParams) WithCampaignID

func (o *EmailExportRecipientsParams) WithCampaignID(campaignID int64) *EmailExportRecipientsParams

WithCampaignID adds the campaignID to the email export recipients params

func (*EmailExportRecipientsParams) WithContext

WithContext adds the context to the email export recipients params

func (*EmailExportRecipientsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the email export recipients params

func (*EmailExportRecipientsParams) WithRecipientExport

func (o *EmailExportRecipientsParams) WithRecipientExport(recipientExport *models.EmailExportRecipients) *EmailExportRecipientsParams

WithRecipientExport adds the recipientExport to the email export recipients params

func (*EmailExportRecipientsParams) WithTimeout

WithTimeout adds the timeout to the email export recipients params

func (*EmailExportRecipientsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type EmailExportRecipientsReader

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

EmailExportRecipientsReader is a Reader for the EmailExportRecipients structure.

func (*EmailExportRecipientsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetEmailCampaignBadRequest

type GetEmailCampaignBadRequest struct {
	Payload *models.ErrorModel
}

GetEmailCampaignBadRequest handles this case with default header values.

bad request

func NewGetEmailCampaignBadRequest

func NewGetEmailCampaignBadRequest() *GetEmailCampaignBadRequest

NewGetEmailCampaignBadRequest creates a GetEmailCampaignBadRequest with default headers values

func (*GetEmailCampaignBadRequest) Error

type GetEmailCampaignNotFound

type GetEmailCampaignNotFound struct {
	Payload *models.ErrorModel
}

GetEmailCampaignNotFound handles this case with default header values.

Campaign ID not found

func NewGetEmailCampaignNotFound

func NewGetEmailCampaignNotFound() *GetEmailCampaignNotFound

NewGetEmailCampaignNotFound creates a GetEmailCampaignNotFound with default headers values

func (*GetEmailCampaignNotFound) Error

func (o *GetEmailCampaignNotFound) Error() string

type GetEmailCampaignOK

type GetEmailCampaignOK struct {
	Payload *models.GetEmailCampaign
}

GetEmailCampaignOK handles this case with default header values.

Email campaign informations

func NewGetEmailCampaignOK

func NewGetEmailCampaignOK() *GetEmailCampaignOK

NewGetEmailCampaignOK creates a GetEmailCampaignOK with default headers values

func (*GetEmailCampaignOK) Error

func (o *GetEmailCampaignOK) Error() string

type GetEmailCampaignParams

type GetEmailCampaignParams struct {

	/*CampaignID
	  Id of the campaign

	*/
	CampaignID int64

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetEmailCampaignParams contains all the parameters to send to the API endpoint for the get email campaign operation typically these are written to a http.Request

func NewGetEmailCampaignParams

func NewGetEmailCampaignParams() *GetEmailCampaignParams

NewGetEmailCampaignParams creates a new GetEmailCampaignParams object with the default values initialized.

func NewGetEmailCampaignParamsWithContext

func NewGetEmailCampaignParamsWithContext(ctx context.Context) *GetEmailCampaignParams

NewGetEmailCampaignParamsWithContext creates a new GetEmailCampaignParams object with the default values initialized, and the ability to set a context for a request

func NewGetEmailCampaignParamsWithHTTPClient

func NewGetEmailCampaignParamsWithHTTPClient(client *http.Client) *GetEmailCampaignParams

NewGetEmailCampaignParamsWithHTTPClient creates a new GetEmailCampaignParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetEmailCampaignParamsWithTimeout

func NewGetEmailCampaignParamsWithTimeout(timeout time.Duration) *GetEmailCampaignParams

NewGetEmailCampaignParamsWithTimeout creates a new GetEmailCampaignParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetEmailCampaignParams) SetCampaignID

func (o *GetEmailCampaignParams) SetCampaignID(campaignID int64)

SetCampaignID adds the campaignId to the get email campaign params

func (*GetEmailCampaignParams) SetContext

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

SetContext adds the context to the get email campaign params

func (*GetEmailCampaignParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get email campaign params

func (*GetEmailCampaignParams) SetTimeout

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

SetTimeout adds the timeout to the get email campaign params

func (*GetEmailCampaignParams) WithCampaignID

func (o *GetEmailCampaignParams) WithCampaignID(campaignID int64) *GetEmailCampaignParams

WithCampaignID adds the campaignID to the get email campaign params

func (*GetEmailCampaignParams) WithContext

WithContext adds the context to the get email campaign params

func (*GetEmailCampaignParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get email campaign params

func (*GetEmailCampaignParams) WithTimeout

WithTimeout adds the timeout to the get email campaign params

func (*GetEmailCampaignParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetEmailCampaignReader

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

GetEmailCampaignReader is a Reader for the GetEmailCampaign structure.

func (*GetEmailCampaignReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetEmailCampaignsBadRequest

type GetEmailCampaignsBadRequest struct {
	Payload *models.ErrorModel
}

GetEmailCampaignsBadRequest handles this case with default header values.

bad request

func NewGetEmailCampaignsBadRequest

func NewGetEmailCampaignsBadRequest() *GetEmailCampaignsBadRequest

NewGetEmailCampaignsBadRequest creates a GetEmailCampaignsBadRequest with default headers values

func (*GetEmailCampaignsBadRequest) Error

type GetEmailCampaignsOK

type GetEmailCampaignsOK struct {
	Payload *models.GetEmailCampaigns
}

GetEmailCampaignsOK handles this case with default header values.

Email campaigns informations

func NewGetEmailCampaignsOK

func NewGetEmailCampaignsOK() *GetEmailCampaignsOK

NewGetEmailCampaignsOK creates a GetEmailCampaignsOK with default headers values

func (*GetEmailCampaignsOK) Error

func (o *GetEmailCampaignsOK) Error() string

type GetEmailCampaignsParams

type GetEmailCampaignsParams struct {

	/*Limit
	  Number of documents per page

	*/
	Limit *int64
	/*Offset
	  Index of the first document in the page

	*/
	Offset *int64
	/*Status
	  Filter on the status of the campaign

	*/
	Status *string
	/*Type
	  Filter on the type of the campaigns

	*/
	Type *string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetEmailCampaignsParams contains all the parameters to send to the API endpoint for the get email campaigns operation typically these are written to a http.Request

func NewGetEmailCampaignsParams

func NewGetEmailCampaignsParams() *GetEmailCampaignsParams

NewGetEmailCampaignsParams creates a new GetEmailCampaignsParams object with the default values initialized.

func NewGetEmailCampaignsParamsWithContext

func NewGetEmailCampaignsParamsWithContext(ctx context.Context) *GetEmailCampaignsParams

NewGetEmailCampaignsParamsWithContext creates a new GetEmailCampaignsParams object with the default values initialized, and the ability to set a context for a request

func NewGetEmailCampaignsParamsWithHTTPClient

func NewGetEmailCampaignsParamsWithHTTPClient(client *http.Client) *GetEmailCampaignsParams

NewGetEmailCampaignsParamsWithHTTPClient creates a new GetEmailCampaignsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetEmailCampaignsParamsWithTimeout

func NewGetEmailCampaignsParamsWithTimeout(timeout time.Duration) *GetEmailCampaignsParams

NewGetEmailCampaignsParamsWithTimeout creates a new GetEmailCampaignsParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetEmailCampaignsParams) SetContext

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

SetContext adds the context to the get email campaigns params

func (*GetEmailCampaignsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get email campaigns params

func (*GetEmailCampaignsParams) SetLimit

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

SetLimit adds the limit to the get email campaigns params

func (*GetEmailCampaignsParams) SetOffset

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

SetOffset adds the offset to the get email campaigns params

func (*GetEmailCampaignsParams) SetStatus

func (o *GetEmailCampaignsParams) SetStatus(status *string)

SetStatus adds the status to the get email campaigns params

func (*GetEmailCampaignsParams) SetTimeout

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

SetTimeout adds the timeout to the get email campaigns params

func (*GetEmailCampaignsParams) SetType

func (o *GetEmailCampaignsParams) SetType(typeVar *string)

SetType adds the type to the get email campaigns params

func (*GetEmailCampaignsParams) WithContext

WithContext adds the context to the get email campaigns params

func (*GetEmailCampaignsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get email campaigns params

func (*GetEmailCampaignsParams) WithLimit

WithLimit adds the limit to the get email campaigns params

func (*GetEmailCampaignsParams) WithOffset

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

WithOffset adds the offset to the get email campaigns params

func (*GetEmailCampaignsParams) WithStatus

func (o *GetEmailCampaignsParams) WithStatus(status *string) *GetEmailCampaignsParams

WithStatus adds the status to the get email campaigns params

func (*GetEmailCampaignsParams) WithTimeout

WithTimeout adds the timeout to the get email campaigns params

func (*GetEmailCampaignsParams) WithType

WithType adds the typeVar to the get email campaigns params

func (*GetEmailCampaignsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetEmailCampaignsReader

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

GetEmailCampaignsReader is a Reader for the GetEmailCampaigns structure.

func (*GetEmailCampaignsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type SendEmailCampaignNowBadRequest

type SendEmailCampaignNowBadRequest struct {
	Payload *models.ErrorModel
}

SendEmailCampaignNowBadRequest handles this case with default header values.

Campaign could not be sent

func NewSendEmailCampaignNowBadRequest

func NewSendEmailCampaignNowBadRequest() *SendEmailCampaignNowBadRequest

NewSendEmailCampaignNowBadRequest creates a SendEmailCampaignNowBadRequest with default headers values

func (*SendEmailCampaignNowBadRequest) Error

type SendEmailCampaignNowNoContent

type SendEmailCampaignNowNoContent struct {
}

SendEmailCampaignNowNoContent handles this case with default header values.

Email campaign has been scheduled

func NewSendEmailCampaignNowNoContent

func NewSendEmailCampaignNowNoContent() *SendEmailCampaignNowNoContent

NewSendEmailCampaignNowNoContent creates a SendEmailCampaignNowNoContent with default headers values

func (*SendEmailCampaignNowNoContent) Error

type SendEmailCampaignNowNotFound

type SendEmailCampaignNowNotFound struct {
	Payload *models.ErrorModel
}

SendEmailCampaignNowNotFound handles this case with default header values.

Campaign ID not found

func NewSendEmailCampaignNowNotFound

func NewSendEmailCampaignNowNotFound() *SendEmailCampaignNowNotFound

NewSendEmailCampaignNowNotFound creates a SendEmailCampaignNowNotFound with default headers values

func (*SendEmailCampaignNowNotFound) Error

type SendEmailCampaignNowParams

type SendEmailCampaignNowParams struct {

	/*CampaignID
	  Id of the campaign

	*/
	CampaignID int64

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

SendEmailCampaignNowParams contains all the parameters to send to the API endpoint for the send email campaign now operation typically these are written to a http.Request

func NewSendEmailCampaignNowParams

func NewSendEmailCampaignNowParams() *SendEmailCampaignNowParams

NewSendEmailCampaignNowParams creates a new SendEmailCampaignNowParams object with the default values initialized.

func NewSendEmailCampaignNowParamsWithContext

func NewSendEmailCampaignNowParamsWithContext(ctx context.Context) *SendEmailCampaignNowParams

NewSendEmailCampaignNowParamsWithContext creates a new SendEmailCampaignNowParams object with the default values initialized, and the ability to set a context for a request

func NewSendEmailCampaignNowParamsWithHTTPClient

func NewSendEmailCampaignNowParamsWithHTTPClient(client *http.Client) *SendEmailCampaignNowParams

NewSendEmailCampaignNowParamsWithHTTPClient creates a new SendEmailCampaignNowParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewSendEmailCampaignNowParamsWithTimeout

func NewSendEmailCampaignNowParamsWithTimeout(timeout time.Duration) *SendEmailCampaignNowParams

NewSendEmailCampaignNowParamsWithTimeout creates a new SendEmailCampaignNowParams object with the default values initialized, and the ability to set a timeout on a request

func (*SendEmailCampaignNowParams) SetCampaignID

func (o *SendEmailCampaignNowParams) SetCampaignID(campaignID int64)

SetCampaignID adds the campaignId to the send email campaign now params

func (*SendEmailCampaignNowParams) SetContext

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

SetContext adds the context to the send email campaign now params

func (*SendEmailCampaignNowParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the send email campaign now params

func (*SendEmailCampaignNowParams) SetTimeout

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

SetTimeout adds the timeout to the send email campaign now params

func (*SendEmailCampaignNowParams) WithCampaignID

func (o *SendEmailCampaignNowParams) WithCampaignID(campaignID int64) *SendEmailCampaignNowParams

WithCampaignID adds the campaignID to the send email campaign now params

func (*SendEmailCampaignNowParams) WithContext

WithContext adds the context to the send email campaign now params

func (*SendEmailCampaignNowParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the send email campaign now params

func (*SendEmailCampaignNowParams) WithTimeout

WithTimeout adds the timeout to the send email campaign now params

func (*SendEmailCampaignNowParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type SendEmailCampaignNowPaymentRequired

type SendEmailCampaignNowPaymentRequired struct {
	Payload *models.ErrorModel
}

SendEmailCampaignNowPaymentRequired handles this case with default header values.

You don't have enough credit to send your campaign. Please update your plan

func NewSendEmailCampaignNowPaymentRequired

func NewSendEmailCampaignNowPaymentRequired() *SendEmailCampaignNowPaymentRequired

NewSendEmailCampaignNowPaymentRequired creates a SendEmailCampaignNowPaymentRequired with default headers values

func (*SendEmailCampaignNowPaymentRequired) Error

type SendEmailCampaignNowReader

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

SendEmailCampaignNowReader is a Reader for the SendEmailCampaignNow structure.

func (*SendEmailCampaignNowReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type SendReportBadRequest

type SendReportBadRequest struct {
	Payload *models.ErrorModel
}

SendReportBadRequest handles this case with default header values.

bad request

func NewSendReportBadRequest

func NewSendReportBadRequest() *SendReportBadRequest

NewSendReportBadRequest creates a SendReportBadRequest with default headers values

func (*SendReportBadRequest) Error

func (o *SendReportBadRequest) Error() string

type SendReportNoContent

type SendReportNoContent struct {
}

SendReportNoContent handles this case with default header values.

Report has been successfully sent to the defined recipients

func NewSendReportNoContent

func NewSendReportNoContent() *SendReportNoContent

NewSendReportNoContent creates a SendReportNoContent with default headers values

func (*SendReportNoContent) Error

func (o *SendReportNoContent) Error() string

type SendReportNotFound

type SendReportNotFound struct {
	Payload *models.ErrorModel
}

SendReportNotFound handles this case with default header values.

Campaign ID not found

func NewSendReportNotFound

func NewSendReportNotFound() *SendReportNotFound

NewSendReportNotFound creates a SendReportNotFound with default headers values

func (*SendReportNotFound) Error

func (o *SendReportNotFound) Error() string

type SendReportParams

type SendReportParams struct {

	/*CampaignID
	  Id of the campaign

	*/
	CampaignID int64
	/*SendReport
	  Values for send a report

	*/
	SendReport *models.SendReport

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

SendReportParams contains all the parameters to send to the API endpoint for the send report operation typically these are written to a http.Request

func NewSendReportParams

func NewSendReportParams() *SendReportParams

NewSendReportParams creates a new SendReportParams object with the default values initialized.

func NewSendReportParamsWithContext

func NewSendReportParamsWithContext(ctx context.Context) *SendReportParams

NewSendReportParamsWithContext creates a new SendReportParams object with the default values initialized, and the ability to set a context for a request

func NewSendReportParamsWithHTTPClient

func NewSendReportParamsWithHTTPClient(client *http.Client) *SendReportParams

NewSendReportParamsWithHTTPClient creates a new SendReportParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewSendReportParamsWithTimeout

func NewSendReportParamsWithTimeout(timeout time.Duration) *SendReportParams

NewSendReportParamsWithTimeout creates a new SendReportParams object with the default values initialized, and the ability to set a timeout on a request

func (*SendReportParams) SetCampaignID

func (o *SendReportParams) SetCampaignID(campaignID int64)

SetCampaignID adds the campaignId to the send report params

func (*SendReportParams) SetContext

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

SetContext adds the context to the send report params

func (*SendReportParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the send report params

func (*SendReportParams) SetSendReport

func (o *SendReportParams) SetSendReport(sendReport *models.SendReport)

SetSendReport adds the sendReport to the send report params

func (*SendReportParams) SetTimeout

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

SetTimeout adds the timeout to the send report params

func (*SendReportParams) WithCampaignID

func (o *SendReportParams) WithCampaignID(campaignID int64) *SendReportParams

WithCampaignID adds the campaignID to the send report params

func (*SendReportParams) WithContext

func (o *SendReportParams) WithContext(ctx context.Context) *SendReportParams

WithContext adds the context to the send report params

func (*SendReportParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the send report params

func (*SendReportParams) WithSendReport

func (o *SendReportParams) WithSendReport(sendReport *models.SendReport) *SendReportParams

WithSendReport adds the sendReport to the send report params

func (*SendReportParams) WithTimeout

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

WithTimeout adds the timeout to the send report params

func (*SendReportParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type SendReportReader

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

SendReportReader is a Reader for the SendReport structure.

func (*SendReportReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type SendTestEmailBadRequest

type SendTestEmailBadRequest struct {
	Payload *models.PostSendFailed
}

SendTestEmailBadRequest handles this case with default header values.

Test email could not be sent to the following email addresses

func NewSendTestEmailBadRequest

func NewSendTestEmailBadRequest() *SendTestEmailBadRequest

NewSendTestEmailBadRequest creates a SendTestEmailBadRequest with default headers values

func (*SendTestEmailBadRequest) Error

func (o *SendTestEmailBadRequest) Error() string

type SendTestEmailNoContent

type SendTestEmailNoContent struct {
}

SendTestEmailNoContent handles this case with default header values.

Test email has been sent successfully to all recipients

func NewSendTestEmailNoContent

func NewSendTestEmailNoContent() *SendTestEmailNoContent

NewSendTestEmailNoContent creates a SendTestEmailNoContent with default headers values

func (*SendTestEmailNoContent) Error

func (o *SendTestEmailNoContent) Error() string

type SendTestEmailNotFound

type SendTestEmailNotFound struct {
	Payload *models.ErrorModel
}

SendTestEmailNotFound handles this case with default header values.

Campaign ID not found

func NewSendTestEmailNotFound

func NewSendTestEmailNotFound() *SendTestEmailNotFound

NewSendTestEmailNotFound creates a SendTestEmailNotFound with default headers values

func (*SendTestEmailNotFound) Error

func (o *SendTestEmailNotFound) Error() string

type SendTestEmailParams

type SendTestEmailParams struct {

	/*CampaignID
	  Id of the campaign

	*/
	CampaignID int64
	/*EmailTo*/
	EmailTo *models.SendTestEmail

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

SendTestEmailParams contains all the parameters to send to the API endpoint for the send test email operation typically these are written to a http.Request

func NewSendTestEmailParams

func NewSendTestEmailParams() *SendTestEmailParams

NewSendTestEmailParams creates a new SendTestEmailParams object with the default values initialized.

func NewSendTestEmailParamsWithContext

func NewSendTestEmailParamsWithContext(ctx context.Context) *SendTestEmailParams

NewSendTestEmailParamsWithContext creates a new SendTestEmailParams object with the default values initialized, and the ability to set a context for a request

func NewSendTestEmailParamsWithHTTPClient

func NewSendTestEmailParamsWithHTTPClient(client *http.Client) *SendTestEmailParams

NewSendTestEmailParamsWithHTTPClient creates a new SendTestEmailParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewSendTestEmailParamsWithTimeout

func NewSendTestEmailParamsWithTimeout(timeout time.Duration) *SendTestEmailParams

NewSendTestEmailParamsWithTimeout creates a new SendTestEmailParams object with the default values initialized, and the ability to set a timeout on a request

func (*SendTestEmailParams) SetCampaignID

func (o *SendTestEmailParams) SetCampaignID(campaignID int64)

SetCampaignID adds the campaignId to the send test email params

func (*SendTestEmailParams) SetContext

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

SetContext adds the context to the send test email params

func (*SendTestEmailParams) SetEmailTo

func (o *SendTestEmailParams) SetEmailTo(emailTo *models.SendTestEmail)

SetEmailTo adds the emailTo to the send test email params

func (*SendTestEmailParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the send test email params

func (*SendTestEmailParams) SetTimeout

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

SetTimeout adds the timeout to the send test email params

func (*SendTestEmailParams) WithCampaignID

func (o *SendTestEmailParams) WithCampaignID(campaignID int64) *SendTestEmailParams

WithCampaignID adds the campaignID to the send test email params

func (*SendTestEmailParams) WithContext

WithContext adds the context to the send test email params

func (*SendTestEmailParams) WithEmailTo

func (o *SendTestEmailParams) WithEmailTo(emailTo *models.SendTestEmail) *SendTestEmailParams

WithEmailTo adds the emailTo to the send test email params

func (*SendTestEmailParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the send test email params

func (*SendTestEmailParams) WithTimeout

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

WithTimeout adds the timeout to the send test email params

func (*SendTestEmailParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type SendTestEmailReader

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

SendTestEmailReader is a Reader for the SendTestEmail structure.

func (*SendTestEmailReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateCampaignStatusBadRequest

type UpdateCampaignStatusBadRequest struct {
	Payload *models.ErrorModel
}

UpdateCampaignStatusBadRequest handles this case with default header values.

bad request

func NewUpdateCampaignStatusBadRequest

func NewUpdateCampaignStatusBadRequest() *UpdateCampaignStatusBadRequest

NewUpdateCampaignStatusBadRequest creates a UpdateCampaignStatusBadRequest with default headers values

func (*UpdateCampaignStatusBadRequest) Error

type UpdateCampaignStatusNoContent

type UpdateCampaignStatusNoContent struct {
}

UpdateCampaignStatusNoContent handles this case with default header values.

The campaign status has been updated successfully

func NewUpdateCampaignStatusNoContent

func NewUpdateCampaignStatusNoContent() *UpdateCampaignStatusNoContent

NewUpdateCampaignStatusNoContent creates a UpdateCampaignStatusNoContent with default headers values

func (*UpdateCampaignStatusNoContent) Error

type UpdateCampaignStatusNotFound

type UpdateCampaignStatusNotFound struct {
	Payload *models.ErrorModel
}

UpdateCampaignStatusNotFound handles this case with default header values.

Campaign ID not found

func NewUpdateCampaignStatusNotFound

func NewUpdateCampaignStatusNotFound() *UpdateCampaignStatusNotFound

NewUpdateCampaignStatusNotFound creates a UpdateCampaignStatusNotFound with default headers values

func (*UpdateCampaignStatusNotFound) Error

type UpdateCampaignStatusParams

type UpdateCampaignStatusParams struct {

	/*CampaignID
	  Id of the campaign

	*/
	CampaignID int64
	/*Status
	  Status of the campaign

	*/
	Status *models.UpdateCampaignStatus

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

UpdateCampaignStatusParams contains all the parameters to send to the API endpoint for the update campaign status operation typically these are written to a http.Request

func NewUpdateCampaignStatusParams

func NewUpdateCampaignStatusParams() *UpdateCampaignStatusParams

NewUpdateCampaignStatusParams creates a new UpdateCampaignStatusParams object with the default values initialized.

func NewUpdateCampaignStatusParamsWithContext

func NewUpdateCampaignStatusParamsWithContext(ctx context.Context) *UpdateCampaignStatusParams

NewUpdateCampaignStatusParamsWithContext creates a new UpdateCampaignStatusParams object with the default values initialized, and the ability to set a context for a request

func NewUpdateCampaignStatusParamsWithHTTPClient

func NewUpdateCampaignStatusParamsWithHTTPClient(client *http.Client) *UpdateCampaignStatusParams

NewUpdateCampaignStatusParamsWithHTTPClient creates a new UpdateCampaignStatusParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewUpdateCampaignStatusParamsWithTimeout

func NewUpdateCampaignStatusParamsWithTimeout(timeout time.Duration) *UpdateCampaignStatusParams

NewUpdateCampaignStatusParamsWithTimeout creates a new UpdateCampaignStatusParams object with the default values initialized, and the ability to set a timeout on a request

func (*UpdateCampaignStatusParams) SetCampaignID

func (o *UpdateCampaignStatusParams) SetCampaignID(campaignID int64)

SetCampaignID adds the campaignId to the update campaign status params

func (*UpdateCampaignStatusParams) SetContext

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

SetContext adds the context to the update campaign status params

func (*UpdateCampaignStatusParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update campaign status params

func (*UpdateCampaignStatusParams) SetStatus

SetStatus adds the status to the update campaign status params

func (*UpdateCampaignStatusParams) SetTimeout

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

SetTimeout adds the timeout to the update campaign status params

func (*UpdateCampaignStatusParams) WithCampaignID

func (o *UpdateCampaignStatusParams) WithCampaignID(campaignID int64) *UpdateCampaignStatusParams

WithCampaignID adds the campaignID to the update campaign status params

func (*UpdateCampaignStatusParams) WithContext

WithContext adds the context to the update campaign status params

func (*UpdateCampaignStatusParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the update campaign status params

func (*UpdateCampaignStatusParams) WithStatus

WithStatus adds the status to the update campaign status params

func (*UpdateCampaignStatusParams) WithTimeout

WithTimeout adds the timeout to the update campaign status params

func (*UpdateCampaignStatusParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UpdateCampaignStatusReader

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

UpdateCampaignStatusReader is a Reader for the UpdateCampaignStatus structure.

func (*UpdateCampaignStatusReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateEmailCampaignsBadRequest

type UpdateEmailCampaignsBadRequest struct {
	Payload *models.ErrorModel
}

UpdateEmailCampaignsBadRequest handles this case with default header values.

bad request

func NewUpdateEmailCampaignsBadRequest

func NewUpdateEmailCampaignsBadRequest() *UpdateEmailCampaignsBadRequest

NewUpdateEmailCampaignsBadRequest creates a UpdateEmailCampaignsBadRequest with default headers values

func (*UpdateEmailCampaignsBadRequest) Error

type UpdateEmailCampaignsNoContent

type UpdateEmailCampaignsNoContent struct {
}

UpdateEmailCampaignsNoContent handles this case with default header values.

Email Campaign has been updated

func NewUpdateEmailCampaignsNoContent

func NewUpdateEmailCampaignsNoContent() *UpdateEmailCampaignsNoContent

NewUpdateEmailCampaignsNoContent creates a UpdateEmailCampaignsNoContent with default headers values

func (*UpdateEmailCampaignsNoContent) Error

type UpdateEmailCampaignsNotFound

type UpdateEmailCampaignsNotFound struct {
	Payload *models.ErrorModel
}

UpdateEmailCampaignsNotFound handles this case with default header values.

Campaign ID not found

func NewUpdateEmailCampaignsNotFound

func NewUpdateEmailCampaignsNotFound() *UpdateEmailCampaignsNotFound

NewUpdateEmailCampaignsNotFound creates a UpdateEmailCampaignsNotFound with default headers values

func (*UpdateEmailCampaignsNotFound) Error

type UpdateEmailCampaignsParams

type UpdateEmailCampaignsParams struct {

	/*CampaignID
	  Id of the campaign

	*/
	CampaignID int64
	/*EmailCampaign
	  Values to update a campaign

	*/
	EmailCampaign *models.UpdateEmailCampaign

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

UpdateEmailCampaignsParams contains all the parameters to send to the API endpoint for the update email campaigns operation typically these are written to a http.Request

func NewUpdateEmailCampaignsParams

func NewUpdateEmailCampaignsParams() *UpdateEmailCampaignsParams

NewUpdateEmailCampaignsParams creates a new UpdateEmailCampaignsParams object with the default values initialized.

func NewUpdateEmailCampaignsParamsWithContext

func NewUpdateEmailCampaignsParamsWithContext(ctx context.Context) *UpdateEmailCampaignsParams

NewUpdateEmailCampaignsParamsWithContext creates a new UpdateEmailCampaignsParams object with the default values initialized, and the ability to set a context for a request

func NewUpdateEmailCampaignsParamsWithHTTPClient

func NewUpdateEmailCampaignsParamsWithHTTPClient(client *http.Client) *UpdateEmailCampaignsParams

NewUpdateEmailCampaignsParamsWithHTTPClient creates a new UpdateEmailCampaignsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewUpdateEmailCampaignsParamsWithTimeout

func NewUpdateEmailCampaignsParamsWithTimeout(timeout time.Duration) *UpdateEmailCampaignsParams

NewUpdateEmailCampaignsParamsWithTimeout creates a new UpdateEmailCampaignsParams object with the default values initialized, and the ability to set a timeout on a request

func (*UpdateEmailCampaignsParams) SetCampaignID

func (o *UpdateEmailCampaignsParams) SetCampaignID(campaignID int64)

SetCampaignID adds the campaignId to the update email campaigns params

func (*UpdateEmailCampaignsParams) SetContext

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

SetContext adds the context to the update email campaigns params

func (*UpdateEmailCampaignsParams) SetEmailCampaign

func (o *UpdateEmailCampaignsParams) SetEmailCampaign(emailCampaign *models.UpdateEmailCampaign)

SetEmailCampaign adds the emailCampaign to the update email campaigns params

func (*UpdateEmailCampaignsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update email campaigns params

func (*UpdateEmailCampaignsParams) SetTimeout

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

SetTimeout adds the timeout to the update email campaigns params

func (*UpdateEmailCampaignsParams) WithCampaignID

func (o *UpdateEmailCampaignsParams) WithCampaignID(campaignID int64) *UpdateEmailCampaignsParams

WithCampaignID adds the campaignID to the update email campaigns params

func (*UpdateEmailCampaignsParams) WithContext

WithContext adds the context to the update email campaigns params

func (*UpdateEmailCampaignsParams) WithEmailCampaign

WithEmailCampaign adds the emailCampaign to the update email campaigns params

func (*UpdateEmailCampaignsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the update email campaigns params

func (*UpdateEmailCampaignsParams) WithTimeout

WithTimeout adds the timeout to the update email campaigns params

func (*UpdateEmailCampaignsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UpdateEmailCampaignsReader

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

UpdateEmailCampaignsReader is a Reader for the UpdateEmailCampaigns structure.

func (*UpdateEmailCampaignsReader) ReadResponse

func (o *UpdateEmailCampaignsReader) 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