Documentation ¶
Index ¶
- type Client
- func (a *Client) CreateEmailCampaign(params *CreateEmailCampaignParams, authInfo runtime.ClientAuthInfoWriter) (*CreateEmailCampaignCreated, error)
- func (a *Client) DeleteEmailCampaigns(params *DeleteEmailCampaignsParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteEmailCampaignsNoContent, error)
- func (a *Client) EmailExportRecipients(params *EmailExportRecipientsParams, authInfo runtime.ClientAuthInfoWriter) (*EmailExportRecipientsAccepted, error)
- func (a *Client) GetEmailCampaign(params *GetEmailCampaignParams, authInfo runtime.ClientAuthInfoWriter) (*GetEmailCampaignOK, error)
- func (a *Client) GetEmailCampaigns(params *GetEmailCampaignsParams, authInfo runtime.ClientAuthInfoWriter) (*GetEmailCampaignsOK, error)
- func (a *Client) SendEmailCampaignNow(params *SendEmailCampaignNowParams, authInfo runtime.ClientAuthInfoWriter) (*SendEmailCampaignNowNoContent, error)
- func (a *Client) SendReport(params *SendReportParams, authInfo runtime.ClientAuthInfoWriter) (*SendReportNoContent, error)
- func (a *Client) SendTestEmail(params *SendTestEmailParams, authInfo runtime.ClientAuthInfoWriter) (*SendTestEmailNoContent, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UpdateCampaignStatus(params *UpdateCampaignStatusParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateCampaignStatusNoContent, error)
- func (a *Client) UpdateEmailCampaigns(params *UpdateEmailCampaignsParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateEmailCampaignsNoContent, error)
- type CreateEmailCampaignBadRequest
- type CreateEmailCampaignCreated
- type CreateEmailCampaignParams
- func NewCreateEmailCampaignParams() *CreateEmailCampaignParams
- func NewCreateEmailCampaignParamsWithContext(ctx context.Context) *CreateEmailCampaignParams
- func NewCreateEmailCampaignParamsWithHTTPClient(client *http.Client) *CreateEmailCampaignParams
- func NewCreateEmailCampaignParamsWithTimeout(timeout time.Duration) *CreateEmailCampaignParams
- func (o *CreateEmailCampaignParams) SetContext(ctx context.Context)
- func (o *CreateEmailCampaignParams) SetEmailCampaigns(emailCampaigns *models.CreateEmailCampaign)
- func (o *CreateEmailCampaignParams) SetHTTPClient(client *http.Client)
- func (o *CreateEmailCampaignParams) SetTimeout(timeout time.Duration)
- func (o *CreateEmailCampaignParams) WithContext(ctx context.Context) *CreateEmailCampaignParams
- func (o *CreateEmailCampaignParams) WithEmailCampaigns(emailCampaigns *models.CreateEmailCampaign) *CreateEmailCampaignParams
- func (o *CreateEmailCampaignParams) WithHTTPClient(client *http.Client) *CreateEmailCampaignParams
- func (o *CreateEmailCampaignParams) WithTimeout(timeout time.Duration) *CreateEmailCampaignParams
- func (o *CreateEmailCampaignParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateEmailCampaignReader
- type DeleteEmailCampaignsBadRequest
- type DeleteEmailCampaignsNoContent
- type DeleteEmailCampaignsNotFound
- type DeleteEmailCampaignsParams
- func NewDeleteEmailCampaignsParams() *DeleteEmailCampaignsParams
- func NewDeleteEmailCampaignsParamsWithContext(ctx context.Context) *DeleteEmailCampaignsParams
- func NewDeleteEmailCampaignsParamsWithHTTPClient(client *http.Client) *DeleteEmailCampaignsParams
- func NewDeleteEmailCampaignsParamsWithTimeout(timeout time.Duration) *DeleteEmailCampaignsParams
- func (o *DeleteEmailCampaignsParams) SetCampaignID(campaignID int64)
- func (o *DeleteEmailCampaignsParams) SetContext(ctx context.Context)
- func (o *DeleteEmailCampaignsParams) SetHTTPClient(client *http.Client)
- func (o *DeleteEmailCampaignsParams) SetTimeout(timeout time.Duration)
- func (o *DeleteEmailCampaignsParams) WithCampaignID(campaignID int64) *DeleteEmailCampaignsParams
- func (o *DeleteEmailCampaignsParams) WithContext(ctx context.Context) *DeleteEmailCampaignsParams
- func (o *DeleteEmailCampaignsParams) WithHTTPClient(client *http.Client) *DeleteEmailCampaignsParams
- func (o *DeleteEmailCampaignsParams) WithTimeout(timeout time.Duration) *DeleteEmailCampaignsParams
- func (o *DeleteEmailCampaignsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteEmailCampaignsReader
- type EmailExportRecipientsAccepted
- type EmailExportRecipientsBadRequest
- type EmailExportRecipientsNotFound
- type EmailExportRecipientsParams
- func NewEmailExportRecipientsParams() *EmailExportRecipientsParams
- func NewEmailExportRecipientsParamsWithContext(ctx context.Context) *EmailExportRecipientsParams
- func NewEmailExportRecipientsParamsWithHTTPClient(client *http.Client) *EmailExportRecipientsParams
- func NewEmailExportRecipientsParamsWithTimeout(timeout time.Duration) *EmailExportRecipientsParams
- func (o *EmailExportRecipientsParams) SetCampaignID(campaignID int64)
- func (o *EmailExportRecipientsParams) SetContext(ctx context.Context)
- func (o *EmailExportRecipientsParams) SetHTTPClient(client *http.Client)
- func (o *EmailExportRecipientsParams) SetRecipientExport(recipientExport *models.EmailExportRecipients)
- func (o *EmailExportRecipientsParams) SetTimeout(timeout time.Duration)
- func (o *EmailExportRecipientsParams) WithCampaignID(campaignID int64) *EmailExportRecipientsParams
- func (o *EmailExportRecipientsParams) WithContext(ctx context.Context) *EmailExportRecipientsParams
- func (o *EmailExportRecipientsParams) WithHTTPClient(client *http.Client) *EmailExportRecipientsParams
- func (o *EmailExportRecipientsParams) WithRecipientExport(recipientExport *models.EmailExportRecipients) *EmailExportRecipientsParams
- func (o *EmailExportRecipientsParams) WithTimeout(timeout time.Duration) *EmailExportRecipientsParams
- func (o *EmailExportRecipientsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type EmailExportRecipientsReader
- type GetEmailCampaignBadRequest
- type GetEmailCampaignNotFound
- type GetEmailCampaignOK
- type GetEmailCampaignParams
- func NewGetEmailCampaignParams() *GetEmailCampaignParams
- func NewGetEmailCampaignParamsWithContext(ctx context.Context) *GetEmailCampaignParams
- func NewGetEmailCampaignParamsWithHTTPClient(client *http.Client) *GetEmailCampaignParams
- func NewGetEmailCampaignParamsWithTimeout(timeout time.Duration) *GetEmailCampaignParams
- func (o *GetEmailCampaignParams) SetCampaignID(campaignID int64)
- func (o *GetEmailCampaignParams) SetContext(ctx context.Context)
- func (o *GetEmailCampaignParams) SetHTTPClient(client *http.Client)
- func (o *GetEmailCampaignParams) SetTimeout(timeout time.Duration)
- func (o *GetEmailCampaignParams) WithCampaignID(campaignID int64) *GetEmailCampaignParams
- func (o *GetEmailCampaignParams) WithContext(ctx context.Context) *GetEmailCampaignParams
- func (o *GetEmailCampaignParams) WithHTTPClient(client *http.Client) *GetEmailCampaignParams
- func (o *GetEmailCampaignParams) WithTimeout(timeout time.Duration) *GetEmailCampaignParams
- func (o *GetEmailCampaignParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetEmailCampaignReader
- type GetEmailCampaignsBadRequest
- type GetEmailCampaignsOK
- type GetEmailCampaignsParams
- func NewGetEmailCampaignsParams() *GetEmailCampaignsParams
- func NewGetEmailCampaignsParamsWithContext(ctx context.Context) *GetEmailCampaignsParams
- func NewGetEmailCampaignsParamsWithHTTPClient(client *http.Client) *GetEmailCampaignsParams
- func NewGetEmailCampaignsParamsWithTimeout(timeout time.Duration) *GetEmailCampaignsParams
- func (o *GetEmailCampaignsParams) SetContext(ctx context.Context)
- func (o *GetEmailCampaignsParams) SetHTTPClient(client *http.Client)
- func (o *GetEmailCampaignsParams) SetLimit(limit *int64)
- func (o *GetEmailCampaignsParams) SetOffset(offset *int64)
- func (o *GetEmailCampaignsParams) SetStatus(status *string)
- func (o *GetEmailCampaignsParams) SetTimeout(timeout time.Duration)
- func (o *GetEmailCampaignsParams) SetType(typeVar *string)
- func (o *GetEmailCampaignsParams) WithContext(ctx context.Context) *GetEmailCampaignsParams
- func (o *GetEmailCampaignsParams) WithHTTPClient(client *http.Client) *GetEmailCampaignsParams
- func (o *GetEmailCampaignsParams) WithLimit(limit *int64) *GetEmailCampaignsParams
- func (o *GetEmailCampaignsParams) WithOffset(offset *int64) *GetEmailCampaignsParams
- func (o *GetEmailCampaignsParams) WithStatus(status *string) *GetEmailCampaignsParams
- func (o *GetEmailCampaignsParams) WithTimeout(timeout time.Duration) *GetEmailCampaignsParams
- func (o *GetEmailCampaignsParams) WithType(typeVar *string) *GetEmailCampaignsParams
- func (o *GetEmailCampaignsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetEmailCampaignsReader
- type SendEmailCampaignNowBadRequest
- type SendEmailCampaignNowNoContent
- type SendEmailCampaignNowNotFound
- type SendEmailCampaignNowParams
- func NewSendEmailCampaignNowParams() *SendEmailCampaignNowParams
- func NewSendEmailCampaignNowParamsWithContext(ctx context.Context) *SendEmailCampaignNowParams
- func NewSendEmailCampaignNowParamsWithHTTPClient(client *http.Client) *SendEmailCampaignNowParams
- func NewSendEmailCampaignNowParamsWithTimeout(timeout time.Duration) *SendEmailCampaignNowParams
- func (o *SendEmailCampaignNowParams) SetCampaignID(campaignID int64)
- func (o *SendEmailCampaignNowParams) SetContext(ctx context.Context)
- func (o *SendEmailCampaignNowParams) SetHTTPClient(client *http.Client)
- func (o *SendEmailCampaignNowParams) SetTimeout(timeout time.Duration)
- func (o *SendEmailCampaignNowParams) WithCampaignID(campaignID int64) *SendEmailCampaignNowParams
- func (o *SendEmailCampaignNowParams) WithContext(ctx context.Context) *SendEmailCampaignNowParams
- func (o *SendEmailCampaignNowParams) WithHTTPClient(client *http.Client) *SendEmailCampaignNowParams
- func (o *SendEmailCampaignNowParams) WithTimeout(timeout time.Duration) *SendEmailCampaignNowParams
- func (o *SendEmailCampaignNowParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type SendEmailCampaignNowPaymentRequired
- type SendEmailCampaignNowReader
- type SendReportBadRequest
- type SendReportNoContent
- type SendReportNotFound
- type SendReportParams
- func (o *SendReportParams) SetCampaignID(campaignID int64)
- func (o *SendReportParams) SetContext(ctx context.Context)
- func (o *SendReportParams) SetHTTPClient(client *http.Client)
- func (o *SendReportParams) SetSendReport(sendReport *models.SendReport)
- func (o *SendReportParams) SetTimeout(timeout time.Duration)
- func (o *SendReportParams) WithCampaignID(campaignID int64) *SendReportParams
- func (o *SendReportParams) WithContext(ctx context.Context) *SendReportParams
- func (o *SendReportParams) WithHTTPClient(client *http.Client) *SendReportParams
- func (o *SendReportParams) WithSendReport(sendReport *models.SendReport) *SendReportParams
- func (o *SendReportParams) WithTimeout(timeout time.Duration) *SendReportParams
- func (o *SendReportParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type SendReportReader
- type SendTestEmailBadRequest
- type SendTestEmailNoContent
- type SendTestEmailNotFound
- type SendTestEmailParams
- func (o *SendTestEmailParams) SetCampaignID(campaignID int64)
- func (o *SendTestEmailParams) SetContext(ctx context.Context)
- func (o *SendTestEmailParams) SetEmailTo(emailTo *models.SendTestEmail)
- func (o *SendTestEmailParams) SetHTTPClient(client *http.Client)
- func (o *SendTestEmailParams) SetTimeout(timeout time.Duration)
- func (o *SendTestEmailParams) WithCampaignID(campaignID int64) *SendTestEmailParams
- func (o *SendTestEmailParams) WithContext(ctx context.Context) *SendTestEmailParams
- func (o *SendTestEmailParams) WithEmailTo(emailTo *models.SendTestEmail) *SendTestEmailParams
- func (o *SendTestEmailParams) WithHTTPClient(client *http.Client) *SendTestEmailParams
- func (o *SendTestEmailParams) WithTimeout(timeout time.Duration) *SendTestEmailParams
- func (o *SendTestEmailParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type SendTestEmailReader
- type UpdateCampaignStatusBadRequest
- type UpdateCampaignStatusNoContent
- type UpdateCampaignStatusNotFound
- type UpdateCampaignStatusParams
- func NewUpdateCampaignStatusParams() *UpdateCampaignStatusParams
- func NewUpdateCampaignStatusParamsWithContext(ctx context.Context) *UpdateCampaignStatusParams
- func NewUpdateCampaignStatusParamsWithHTTPClient(client *http.Client) *UpdateCampaignStatusParams
- func NewUpdateCampaignStatusParamsWithTimeout(timeout time.Duration) *UpdateCampaignStatusParams
- func (o *UpdateCampaignStatusParams) SetCampaignID(campaignID int64)
- func (o *UpdateCampaignStatusParams) SetContext(ctx context.Context)
- func (o *UpdateCampaignStatusParams) SetHTTPClient(client *http.Client)
- func (o *UpdateCampaignStatusParams) SetStatus(status *models.UpdateCampaignStatus)
- func (o *UpdateCampaignStatusParams) SetTimeout(timeout time.Duration)
- func (o *UpdateCampaignStatusParams) WithCampaignID(campaignID int64) *UpdateCampaignStatusParams
- func (o *UpdateCampaignStatusParams) WithContext(ctx context.Context) *UpdateCampaignStatusParams
- func (o *UpdateCampaignStatusParams) WithHTTPClient(client *http.Client) *UpdateCampaignStatusParams
- func (o *UpdateCampaignStatusParams) WithStatus(status *models.UpdateCampaignStatus) *UpdateCampaignStatusParams
- func (o *UpdateCampaignStatusParams) WithTimeout(timeout time.Duration) *UpdateCampaignStatusParams
- func (o *UpdateCampaignStatusParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateCampaignStatusReader
- type UpdateEmailCampaignsBadRequest
- type UpdateEmailCampaignsNoContent
- type UpdateEmailCampaignsNotFound
- type UpdateEmailCampaignsParams
- func NewUpdateEmailCampaignsParams() *UpdateEmailCampaignsParams
- func NewUpdateEmailCampaignsParamsWithContext(ctx context.Context) *UpdateEmailCampaignsParams
- func NewUpdateEmailCampaignsParamsWithHTTPClient(client *http.Client) *UpdateEmailCampaignsParams
- func NewUpdateEmailCampaignsParamsWithTimeout(timeout time.Duration) *UpdateEmailCampaignsParams
- func (o *UpdateEmailCampaignsParams) SetCampaignID(campaignID int64)
- func (o *UpdateEmailCampaignsParams) SetContext(ctx context.Context)
- func (o *UpdateEmailCampaignsParams) SetEmailCampaign(emailCampaign *models.UpdateEmailCampaign)
- func (o *UpdateEmailCampaignsParams) SetHTTPClient(client *http.Client)
- func (o *UpdateEmailCampaignsParams) SetTimeout(timeout time.Duration)
- func (o *UpdateEmailCampaignsParams) WithCampaignID(campaignID int64) *UpdateEmailCampaignsParams
- func (o *UpdateEmailCampaignsParams) WithContext(ctx context.Context) *UpdateEmailCampaignsParams
- func (o *UpdateEmailCampaignsParams) WithEmailCampaign(emailCampaign *models.UpdateEmailCampaign) *UpdateEmailCampaignsParams
- func (o *UpdateEmailCampaignsParams) WithHTTPClient(client *http.Client) *UpdateEmailCampaignsParams
- func (o *UpdateEmailCampaignsParams) WithTimeout(timeout time.Duration) *UpdateEmailCampaignsParams
- func (o *UpdateEmailCampaignsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateEmailCampaignsReader
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 ¶
func (a *Client) DeleteEmailCampaigns(params *DeleteEmailCampaignsParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteEmailCampaignsNoContent, error)
DeleteEmailCampaigns deletes an email campaign
func (*Client) EmailExportRecipients ¶
func (a *Client) EmailExportRecipients(params *EmailExportRecipientsParams, authInfo runtime.ClientAuthInfoWriter) (*EmailExportRecipientsAccepted, error)
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 ¶
func (a *Client) SendEmailCampaignNow(params *SendEmailCampaignNowParams, authInfo runtime.ClientAuthInfoWriter) (*SendEmailCampaignNowNoContent, error)
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 ¶
func (a *Client) UpdateCampaignStatus(params *UpdateCampaignStatusParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateCampaignStatusNoContent, error)
UpdateCampaignStatus updates a campaign status
func (*Client) UpdateEmailCampaigns ¶
func (a *Client) UpdateEmailCampaigns(params *UpdateEmailCampaignsParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateEmailCampaignsNoContent, error)
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 ¶
func (o *CreateEmailCampaignBadRequest) Error() string
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 ¶
func (o *CreateEmailCampaignCreated) Error() string
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 ¶
func (o *CreateEmailCampaignParams) WithContext(ctx context.Context) *CreateEmailCampaignParams
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 ¶
func (o *CreateEmailCampaignParams) WithTimeout(timeout time.Duration) *CreateEmailCampaignParams
WithTimeout adds the timeout to the create email campaign params
func (*CreateEmailCampaignParams) WriteToRequest ¶
func (o *CreateEmailCampaignParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *DeleteEmailCampaignsBadRequest) Error() string
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 ¶
func (o *DeleteEmailCampaignsNoContent) Error() string
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 ¶
func (o *DeleteEmailCampaignsNotFound) Error() string
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 ¶
func (o *DeleteEmailCampaignsParams) WithContext(ctx context.Context) *DeleteEmailCampaignsParams
WithContext adds the context to the delete email campaigns params
func (*DeleteEmailCampaignsParams) WithHTTPClient ¶
func (o *DeleteEmailCampaignsParams) WithHTTPClient(client *http.Client) *DeleteEmailCampaignsParams
WithHTTPClient adds the HTTPClient to the delete email campaigns params
func (*DeleteEmailCampaignsParams) WithTimeout ¶
func (o *DeleteEmailCampaignsParams) WithTimeout(timeout time.Duration) *DeleteEmailCampaignsParams
WithTimeout adds the timeout to the delete email campaigns params
func (*DeleteEmailCampaignsParams) WriteToRequest ¶
func (o *DeleteEmailCampaignsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *EmailExportRecipientsAccepted) Error() string
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 ¶
func (o *EmailExportRecipientsBadRequest) Error() string
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 ¶
func (o *EmailExportRecipientsNotFound) Error() string
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 ¶
func (o *EmailExportRecipientsParams) WithContext(ctx context.Context) *EmailExportRecipientsParams
WithContext adds the context to the email export recipients params
func (*EmailExportRecipientsParams) WithHTTPClient ¶
func (o *EmailExportRecipientsParams) WithHTTPClient(client *http.Client) *EmailExportRecipientsParams
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 ¶
func (o *EmailExportRecipientsParams) WithTimeout(timeout time.Duration) *EmailExportRecipientsParams
WithTimeout adds the timeout to the email export recipients params
func (*EmailExportRecipientsParams) WriteToRequest ¶
func (o *EmailExportRecipientsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *GetEmailCampaignBadRequest) Error() string
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 ¶
func (o *GetEmailCampaignParams) WithContext(ctx context.Context) *GetEmailCampaignParams
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 ¶
func (o *GetEmailCampaignParams) WithTimeout(timeout time.Duration) *GetEmailCampaignParams
WithTimeout adds the timeout to the get email campaign params
func (*GetEmailCampaignParams) WriteToRequest ¶
func (o *GetEmailCampaignParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *GetEmailCampaignsBadRequest) Error() string
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 ¶
func (o *GetEmailCampaignsParams) WithContext(ctx context.Context) *GetEmailCampaignsParams
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 ¶
func (o *GetEmailCampaignsParams) WithLimit(limit *int64) *GetEmailCampaignsParams
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 ¶
func (o *GetEmailCampaignsParams) WithTimeout(timeout time.Duration) *GetEmailCampaignsParams
WithTimeout adds the timeout to the get email campaigns params
func (*GetEmailCampaignsParams) WithType ¶
func (o *GetEmailCampaignsParams) WithType(typeVar *string) *GetEmailCampaignsParams
WithType adds the typeVar to the get email campaigns params
func (*GetEmailCampaignsParams) WriteToRequest ¶
func (o *GetEmailCampaignsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *SendEmailCampaignNowBadRequest) Error() string
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 ¶
func (o *SendEmailCampaignNowNoContent) Error() string
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 ¶
func (o *SendEmailCampaignNowNotFound) Error() string
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 ¶
func (o *SendEmailCampaignNowParams) WithContext(ctx context.Context) *SendEmailCampaignNowParams
WithContext adds the context to the send email campaign now params
func (*SendEmailCampaignNowParams) WithHTTPClient ¶
func (o *SendEmailCampaignNowParams) WithHTTPClient(client *http.Client) *SendEmailCampaignNowParams
WithHTTPClient adds the HTTPClient to the send email campaign now params
func (*SendEmailCampaignNowParams) WithTimeout ¶
func (o *SendEmailCampaignNowParams) WithTimeout(timeout time.Duration) *SendEmailCampaignNowParams
WithTimeout adds the timeout to the send email campaign now params
func (*SendEmailCampaignNowParams) WriteToRequest ¶
func (o *SendEmailCampaignNowParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *SendEmailCampaignNowPaymentRequired) Error() string
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 ¶
func (o *SendTestEmailParams) WithContext(ctx context.Context) *SendTestEmailParams
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 ¶
func (o *UpdateCampaignStatusBadRequest) Error() string
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 ¶
func (o *UpdateCampaignStatusNoContent) Error() string
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 ¶
func (o *UpdateCampaignStatusNotFound) Error() string
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 ¶
func (o *UpdateCampaignStatusParams) SetStatus(status *models.UpdateCampaignStatus)
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 ¶
func (o *UpdateCampaignStatusParams) WithContext(ctx context.Context) *UpdateCampaignStatusParams
WithContext adds the context to the update campaign status params
func (*UpdateCampaignStatusParams) WithHTTPClient ¶
func (o *UpdateCampaignStatusParams) WithHTTPClient(client *http.Client) *UpdateCampaignStatusParams
WithHTTPClient adds the HTTPClient to the update campaign status params
func (*UpdateCampaignStatusParams) WithStatus ¶
func (o *UpdateCampaignStatusParams) WithStatus(status *models.UpdateCampaignStatus) *UpdateCampaignStatusParams
WithStatus adds the status to the update campaign status params
func (*UpdateCampaignStatusParams) WithTimeout ¶
func (o *UpdateCampaignStatusParams) WithTimeout(timeout time.Duration) *UpdateCampaignStatusParams
WithTimeout adds the timeout to the update campaign status params
func (*UpdateCampaignStatusParams) WriteToRequest ¶
func (o *UpdateCampaignStatusParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *UpdateEmailCampaignsBadRequest) Error() string
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 ¶
func (o *UpdateEmailCampaignsNoContent) Error() string
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 ¶
func (o *UpdateEmailCampaignsNotFound) Error() string
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 ¶
func (o *UpdateEmailCampaignsParams) WithContext(ctx context.Context) *UpdateEmailCampaignsParams
WithContext adds the context to the update email campaigns params
func (*UpdateEmailCampaignsParams) WithEmailCampaign ¶
func (o *UpdateEmailCampaignsParams) WithEmailCampaign(emailCampaign *models.UpdateEmailCampaign) *UpdateEmailCampaignsParams
WithEmailCampaign adds the emailCampaign to the update email campaigns params
func (*UpdateEmailCampaignsParams) WithHTTPClient ¶
func (o *UpdateEmailCampaignsParams) WithHTTPClient(client *http.Client) *UpdateEmailCampaignsParams
WithHTTPClient adds the HTTPClient to the update email campaigns params
func (*UpdateEmailCampaignsParams) WithTimeout ¶
func (o *UpdateEmailCampaignsParams) WithTimeout(timeout time.Duration) *UpdateEmailCampaignsParams
WithTimeout adds the timeout to the update email campaigns params
func (*UpdateEmailCampaignsParams) WriteToRequest ¶
func (o *UpdateEmailCampaignsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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.
Source Files ¶
- create_email_campaign_parameters.go
- create_email_campaign_responses.go
- delete_email_campaigns_parameters.go
- delete_email_campaigns_responses.go
- email_campaigns_client.go
- email_export_recipients_parameters.go
- email_export_recipients_responses.go
- get_email_campaign_parameters.go
- get_email_campaign_responses.go
- get_email_campaigns_parameters.go
- get_email_campaigns_responses.go
- send_email_campaign_now_parameters.go
- send_email_campaign_now_responses.go
- send_report_parameters.go
- send_report_responses.go
- send_test_email_parameters.go
- send_test_email_responses.go
- update_campaign_status_parameters.go
- update_campaign_status_responses.go
- update_email_campaigns_parameters.go
- update_email_campaigns_responses.go