operations

package
v0.0.0-...-cd4da8b Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2022 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 operations API

func (*Client) DeleteProspects

func (a *Client) DeleteProspects(params *DeleteProspectsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteProspectsOK, error)

DeleteProspects gets the list of prospects

get the list of prospects

func (*Client) PostStopFollowups

func (a *Client) PostStopFollowups(params *PostStopFollowupsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostStopFollowupsOK, error)

PostStopFollowups changes prospect status to b l a c k l i s t

func (*Client) PostWebhooksSubscribe

func (a *Client) PostWebhooksSubscribe(params *PostWebhooksSubscribeParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostWebhooksSubscribeOK, error)

PostWebhooksSubscribe post webhooks subscribe API

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	DeleteProspects(params *DeleteProspectsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteProspectsOK, error)

	PostStopFollowups(params *PostStopFollowupsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostStopFollowupsOK, error)

	PostWebhooksSubscribe(params *PostWebhooksSubscribeParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostWebhooksSubscribeOK, error)

	SetTransport(transport runtime.ClientTransport)
}

ClientService is the interface for Client methods

func New

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

New creates a new operations API client.

type DeleteProspectsDefault

type DeleteProspectsDefault struct {
	Payload *models.Error
	// contains filtered or unexported fields
}
DeleteProspectsDefault describes a response with status code -1, with default header values.

Unexpected error

func NewDeleteProspectsDefault

func NewDeleteProspectsDefault(code int) *DeleteProspectsDefault

NewDeleteProspectsDefault creates a DeleteProspectsDefault with default headers values

func (*DeleteProspectsDefault) Code

func (o *DeleteProspectsDefault) Code() int

Code gets the status code for the delete prospects default response

func (*DeleteProspectsDefault) Error

func (o *DeleteProspectsDefault) Error() string

func (*DeleteProspectsDefault) GetPayload

func (o *DeleteProspectsDefault) GetPayload() *models.Error

type DeleteProspectsOK

type DeleteProspectsOK struct {
}
DeleteProspectsOK describes a response with status code 200, with default header values.

Empty response

func NewDeleteProspectsOK

func NewDeleteProspectsOK() *DeleteProspectsOK

NewDeleteProspectsOK creates a DeleteProspectsOK with default headers values

func (*DeleteProspectsOK) Error

func (o *DeleteProspectsOK) Error() string

type DeleteProspectsParams

type DeleteProspectsParams struct {

	/* CampaignID.

	   Prospect campaign's ID

	   Format: int32
	*/
	CampaignID *int32

	/* ID.

	   Prospect's ID

	   Format: int32
	*/
	ID int32

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

DeleteProspectsParams contains all the parameters to send to the API endpoint

for the delete prospects operation.

Typically these are written to a http.Request.

func NewDeleteProspectsParams

func NewDeleteProspectsParams() *DeleteProspectsParams

NewDeleteProspectsParams creates a new DeleteProspectsParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewDeleteProspectsParamsWithContext

func NewDeleteProspectsParamsWithContext(ctx context.Context) *DeleteProspectsParams

NewDeleteProspectsParamsWithContext creates a new DeleteProspectsParams object with the ability to set a context for a request.

func NewDeleteProspectsParamsWithHTTPClient

func NewDeleteProspectsParamsWithHTTPClient(client *http.Client) *DeleteProspectsParams

NewDeleteProspectsParamsWithHTTPClient creates a new DeleteProspectsParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteProspectsParamsWithTimeout

func NewDeleteProspectsParamsWithTimeout(timeout time.Duration) *DeleteProspectsParams

NewDeleteProspectsParamsWithTimeout creates a new DeleteProspectsParams object with the ability to set a timeout on a request.

func (*DeleteProspectsParams) SetCampaignID

func (o *DeleteProspectsParams) SetCampaignID(campaignID *int32)

SetCampaignID adds the campaignId to the delete prospects params

func (*DeleteProspectsParams) SetContext

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

SetContext adds the context to the delete prospects params

func (*DeleteProspectsParams) SetDefaults

func (o *DeleteProspectsParams) SetDefaults()

SetDefaults hydrates default values in the delete prospects params (not the query body).

All values with no default are reset to their zero value.

func (*DeleteProspectsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete prospects params

func (*DeleteProspectsParams) SetID

func (o *DeleteProspectsParams) SetID(id int32)

SetID adds the id to the delete prospects params

func (*DeleteProspectsParams) SetTimeout

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

SetTimeout adds the timeout to the delete prospects params

func (*DeleteProspectsParams) WithCampaignID

func (o *DeleteProspectsParams) WithCampaignID(campaignID *int32) *DeleteProspectsParams

WithCampaignID adds the campaignID to the delete prospects params

func (*DeleteProspectsParams) WithContext

WithContext adds the context to the delete prospects params

func (*DeleteProspectsParams) WithDefaults

func (o *DeleteProspectsParams) WithDefaults() *DeleteProspectsParams

WithDefaults hydrates default values in the delete prospects params (not the query body).

All values with no default are reset to their zero value.

func (*DeleteProspectsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete prospects params

func (*DeleteProspectsParams) WithID

WithID adds the id to the delete prospects params

func (*DeleteProspectsParams) WithTimeout

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

WithTimeout adds the timeout to the delete prospects params

func (*DeleteProspectsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DeleteProspectsReader

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

DeleteProspectsReader is a Reader for the DeleteProspects structure.

func (*DeleteProspectsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PostStopFollowupsBody

type PostStopFollowupsBody struct {

	// prospect
	Prospect *PostStopFollowupsParamsBodyProspect `json:"prospect,omitempty"`
}

PostStopFollowupsBody post stop followups body swagger:model PostStopFollowupsBody

func (*PostStopFollowupsBody) ContextValidate

func (o *PostStopFollowupsBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this post stop followups body based on the context it is used

func (*PostStopFollowupsBody) MarshalBinary

func (o *PostStopFollowupsBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PostStopFollowupsBody) UnmarshalBinary

func (o *PostStopFollowupsBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PostStopFollowupsBody) Validate

func (o *PostStopFollowupsBody) Validate(formats strfmt.Registry) error

Validate validates this post stop followups body

type PostStopFollowupsDefault

type PostStopFollowupsDefault struct {
	Payload *models.Error
	// contains filtered or unexported fields
}
PostStopFollowupsDefault describes a response with status code -1, with default header values.

Unexpected error

func NewPostStopFollowupsDefault

func NewPostStopFollowupsDefault(code int) *PostStopFollowupsDefault

NewPostStopFollowupsDefault creates a PostStopFollowupsDefault with default headers values

func (*PostStopFollowupsDefault) Code

func (o *PostStopFollowupsDefault) Code() int

Code gets the status code for the post stop followups default response

func (*PostStopFollowupsDefault) Error

func (o *PostStopFollowupsDefault) Error() string

func (*PostStopFollowupsDefault) GetPayload

func (o *PostStopFollowupsDefault) GetPayload() *models.Error

type PostStopFollowupsOK

type PostStopFollowupsOK struct {
	Payload *models.Status
}
PostStopFollowupsOK describes a response with status code 200, with default header values.

The created prospect

func NewPostStopFollowupsOK

func NewPostStopFollowupsOK() *PostStopFollowupsOK

NewPostStopFollowupsOK creates a PostStopFollowupsOK with default headers values

func (*PostStopFollowupsOK) Error

func (o *PostStopFollowupsOK) Error() string

func (*PostStopFollowupsOK) GetPayload

func (o *PostStopFollowupsOK) GetPayload() *models.Status

type PostStopFollowupsParams

type PostStopFollowupsParams struct {

	// Body.
	Body PostStopFollowupsBody

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

PostStopFollowupsParams contains all the parameters to send to the API endpoint

for the post stop followups operation.

Typically these are written to a http.Request.

func NewPostStopFollowupsParams

func NewPostStopFollowupsParams() *PostStopFollowupsParams

NewPostStopFollowupsParams creates a new PostStopFollowupsParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewPostStopFollowupsParamsWithContext

func NewPostStopFollowupsParamsWithContext(ctx context.Context) *PostStopFollowupsParams

NewPostStopFollowupsParamsWithContext creates a new PostStopFollowupsParams object with the ability to set a context for a request.

func NewPostStopFollowupsParamsWithHTTPClient

func NewPostStopFollowupsParamsWithHTTPClient(client *http.Client) *PostStopFollowupsParams

NewPostStopFollowupsParamsWithHTTPClient creates a new PostStopFollowupsParams object with the ability to set a custom HTTPClient for a request.

func NewPostStopFollowupsParamsWithTimeout

func NewPostStopFollowupsParamsWithTimeout(timeout time.Duration) *PostStopFollowupsParams

NewPostStopFollowupsParamsWithTimeout creates a new PostStopFollowupsParams object with the ability to set a timeout on a request.

func (*PostStopFollowupsParams) SetBody

SetBody adds the body to the post stop followups params

func (*PostStopFollowupsParams) SetContext

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

SetContext adds the context to the post stop followups params

func (*PostStopFollowupsParams) SetDefaults

func (o *PostStopFollowupsParams) SetDefaults()

SetDefaults hydrates default values in the post stop followups params (not the query body).

All values with no default are reset to their zero value.

func (*PostStopFollowupsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the post stop followups params

func (*PostStopFollowupsParams) SetTimeout

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

SetTimeout adds the timeout to the post stop followups params

func (*PostStopFollowupsParams) WithBody

WithBody adds the body to the post stop followups params

func (*PostStopFollowupsParams) WithContext

WithContext adds the context to the post stop followups params

func (*PostStopFollowupsParams) WithDefaults

WithDefaults hydrates default values in the post stop followups params (not the query body).

All values with no default are reset to their zero value.

func (*PostStopFollowupsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the post stop followups params

func (*PostStopFollowupsParams) WithTimeout

WithTimeout adds the timeout to the post stop followups params

func (*PostStopFollowupsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PostStopFollowupsParamsBodyProspect

type PostStopFollowupsParamsBodyProspect struct {

	// email
	Email string `json:"email,omitempty"`
}

PostStopFollowupsParamsBodyProspect post stop followups params body prospect swagger:model PostStopFollowupsParamsBodyProspect

func (*PostStopFollowupsParamsBodyProspect) ContextValidate

func (o *PostStopFollowupsParamsBodyProspect) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this post stop followups params body prospect based on context it is used

func (*PostStopFollowupsParamsBodyProspect) MarshalBinary

func (o *PostStopFollowupsParamsBodyProspect) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PostStopFollowupsParamsBodyProspect) UnmarshalBinary

func (o *PostStopFollowupsParamsBodyProspect) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PostStopFollowupsParamsBodyProspect) Validate

Validate validates this post stop followups params body prospect

type PostStopFollowupsReader

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

PostStopFollowupsReader is a Reader for the PostStopFollowups structure.

func (*PostStopFollowupsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PostWebhooksSubscribeDefault

type PostWebhooksSubscribeDefault struct {
	Payload *models.Error
	// contains filtered or unexported fields
}
PostWebhooksSubscribeDefault describes a response with status code -1, with default header values.

Unexpected error

func NewPostWebhooksSubscribeDefault

func NewPostWebhooksSubscribeDefault(code int) *PostWebhooksSubscribeDefault

NewPostWebhooksSubscribeDefault creates a PostWebhooksSubscribeDefault with default headers values

func (*PostWebhooksSubscribeDefault) Code

Code gets the status code for the post webhooks subscribe default response

func (*PostWebhooksSubscribeDefault) Error

func (*PostWebhooksSubscribeDefault) GetPayload

func (o *PostWebhooksSubscribeDefault) GetPayload() *models.Error

type PostWebhooksSubscribeOK

type PostWebhooksSubscribeOK struct {
}
PostWebhooksSubscribeOK describes a response with status code 200, with default header values.

The created prospect

func NewPostWebhooksSubscribeOK

func NewPostWebhooksSubscribeOK() *PostWebhooksSubscribeOK

NewPostWebhooksSubscribeOK creates a PostWebhooksSubscribeOK with default headers values

func (*PostWebhooksSubscribeOK) Error

func (o *PostWebhooksSubscribeOK) Error() string

type PostWebhooksSubscribeParams

type PostWebhooksSubscribeParams struct {

	// Body.
	Body *models.WebhookSubscribe

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

PostWebhooksSubscribeParams contains all the parameters to send to the API endpoint

for the post webhooks subscribe operation.

Typically these are written to a http.Request.

func NewPostWebhooksSubscribeParams

func NewPostWebhooksSubscribeParams() *PostWebhooksSubscribeParams

NewPostWebhooksSubscribeParams creates a new PostWebhooksSubscribeParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewPostWebhooksSubscribeParamsWithContext

func NewPostWebhooksSubscribeParamsWithContext(ctx context.Context) *PostWebhooksSubscribeParams

NewPostWebhooksSubscribeParamsWithContext creates a new PostWebhooksSubscribeParams object with the ability to set a context for a request.

func NewPostWebhooksSubscribeParamsWithHTTPClient

func NewPostWebhooksSubscribeParamsWithHTTPClient(client *http.Client) *PostWebhooksSubscribeParams

NewPostWebhooksSubscribeParamsWithHTTPClient creates a new PostWebhooksSubscribeParams object with the ability to set a custom HTTPClient for a request.

func NewPostWebhooksSubscribeParamsWithTimeout

func NewPostWebhooksSubscribeParamsWithTimeout(timeout time.Duration) *PostWebhooksSubscribeParams

NewPostWebhooksSubscribeParamsWithTimeout creates a new PostWebhooksSubscribeParams object with the ability to set a timeout on a request.

func (*PostWebhooksSubscribeParams) SetBody

SetBody adds the body to the post webhooks subscribe params

func (*PostWebhooksSubscribeParams) SetContext

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

SetContext adds the context to the post webhooks subscribe params

func (*PostWebhooksSubscribeParams) SetDefaults

func (o *PostWebhooksSubscribeParams) SetDefaults()

SetDefaults hydrates default values in the post webhooks subscribe params (not the query body).

All values with no default are reset to their zero value.

func (*PostWebhooksSubscribeParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the post webhooks subscribe params

func (*PostWebhooksSubscribeParams) SetTimeout

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

SetTimeout adds the timeout to the post webhooks subscribe params

func (*PostWebhooksSubscribeParams) WithBody

WithBody adds the body to the post webhooks subscribe params

func (*PostWebhooksSubscribeParams) WithContext

WithContext adds the context to the post webhooks subscribe params

func (*PostWebhooksSubscribeParams) WithDefaults

WithDefaults hydrates default values in the post webhooks subscribe params (not the query body).

All values with no default are reset to their zero value.

func (*PostWebhooksSubscribeParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the post webhooks subscribe params

func (*PostWebhooksSubscribeParams) WithTimeout

WithTimeout adds the timeout to the post webhooks subscribe params

func (*PostWebhooksSubscribeParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PostWebhooksSubscribeReader

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

PostWebhooksSubscribeReader is a Reader for the PostWebhooksSubscribe structure.

func (*PostWebhooksSubscribeReader) ReadResponse

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