fulfillment_script

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2022 License: MIT Imports: 12 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 fulfillment script API

func (*Client) CreateFulfillmentScript

CreateFulfillmentScript creates fulfillment script

Create fulfillment script.<br>Other detail info: <ul><li><i>Required permission</i>: resource="ADMIN:FULFILLMENT", action=1 (CREATE)</li></ul>Fulfillment scripts are used for adding custom fulfillment logic based on <b>ITEM_TYPE</b>: [MEDIA,INGAMEITEM] for now, and the custom scripts only cover grantDays.<br>Example for grantDays: <br><code>order && ((order.currency && order.currency.currencyCode) == 'LP' || order.isFree) ? 30 : -1</code><br>

func (*Client) CreateFulfillmentScriptShort added in v0.8.0

func (a *Client) CreateFulfillmentScriptShort(params *CreateFulfillmentScriptParams, authInfo runtime.ClientAuthInfoWriter) (*CreateFulfillmentScriptCreated, error)

func (*Client) DeleteFulfillmentScript

DeleteFulfillmentScript deletes fulfillment script

Delete fulfillment script.<br>Other detail info: <ul><li><i>Required permission</i>: resource="ADMIN:FULFILLMENT", action=8 (DELETE)</li></ul>

func (*Client) DeleteFulfillmentScriptShort added in v0.8.0

func (a *Client) DeleteFulfillmentScriptShort(params *DeleteFulfillmentScriptParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteFulfillmentScriptNoContent, error)

func (*Client) GetFulfillmentScript

GetFulfillmentScript gets fulfillment script by id

Get fulfillment script by id.<br>Other detail info: <ul><li><i>Required permission</i>: resource="ADMIN:FULFILLMENT", action=2 (READ)</li><li><i>Returns</i>: get fulfillment script</li></ul>

func (*Client) GetFulfillmentScriptShort added in v0.8.0

func (a *Client) GetFulfillmentScriptShort(params *GetFulfillmentScriptParams, authInfo runtime.ClientAuthInfoWriter) (*GetFulfillmentScriptOK, error)

func (*Client) ListFulfillmentScripts

func (a *Client) ListFulfillmentScripts(params *ListFulfillmentScriptsParams, authInfo runtime.ClientAuthInfoWriter) (*ListFulfillmentScriptsOK, error)

ListFulfillmentScripts lists all fulfillment scripts

List all fulfillment scripts.<br>Other detail info: <ul><li><i>Required permission</i>: resource="ADMIN:FULFILLMENT", action=2 (READ)</li></ul>

func (*Client) ListFulfillmentScriptsShort added in v0.8.0

func (a *Client) ListFulfillmentScriptsShort(params *ListFulfillmentScriptsParams, authInfo runtime.ClientAuthInfoWriter) (*ListFulfillmentScriptsOK, error)

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) TestFulfillmentScriptEval

func (a *Client) TestFulfillmentScriptEval(params *TestFulfillmentScriptEvalParams, authInfo runtime.ClientAuthInfoWriter) (*TestFulfillmentScriptEvalOK, error)

TestFulfillmentScriptEval tests eval fulfillment script

<b>[TEST FACILITY ONLY]</b>Test eval fulfillment script.<br>Other detail info: <ul><li><i>Required permission</i>: resource="ADMIN:FULFILLMENT", action=2 (READ)</li></ul>

func (*Client) TestFulfillmentScriptEvalShort added in v0.8.0

func (a *Client) TestFulfillmentScriptEvalShort(params *TestFulfillmentScriptEvalParams, authInfo runtime.ClientAuthInfoWriter) (*TestFulfillmentScriptEvalOK, error)

func (*Client) UpdateFulfillmentScript

UpdateFulfillmentScript updates fulfillment script

Update fulfillment script.<br>Other detail info: <ul><li><i>Required permission</i>: resource="ADMIN:FULFILLMENT", action=4 (UPDATE)</li></ul>

func (*Client) UpdateFulfillmentScriptShort added in v0.8.0

func (a *Client) UpdateFulfillmentScriptShort(params *UpdateFulfillmentScriptParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateFulfillmentScriptOK, error)

type ClientService

type ClientService interface {
	CreateFulfillmentScript(params *CreateFulfillmentScriptParams, authInfo runtime.ClientAuthInfoWriter) (*CreateFulfillmentScriptCreated, *CreateFulfillmentScriptConflict, error)
	CreateFulfillmentScriptShort(params *CreateFulfillmentScriptParams, authInfo runtime.ClientAuthInfoWriter) (*CreateFulfillmentScriptCreated, error)
	DeleteFulfillmentScript(params *DeleteFulfillmentScriptParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteFulfillmentScriptNoContent, error)
	DeleteFulfillmentScriptShort(params *DeleteFulfillmentScriptParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteFulfillmentScriptNoContent, error)
	GetFulfillmentScript(params *GetFulfillmentScriptParams, authInfo runtime.ClientAuthInfoWriter) (*GetFulfillmentScriptOK, *GetFulfillmentScriptNotFound, error)
	GetFulfillmentScriptShort(params *GetFulfillmentScriptParams, authInfo runtime.ClientAuthInfoWriter) (*GetFulfillmentScriptOK, error)
	ListFulfillmentScripts(params *ListFulfillmentScriptsParams, authInfo runtime.ClientAuthInfoWriter) (*ListFulfillmentScriptsOK, error)
	ListFulfillmentScriptsShort(params *ListFulfillmentScriptsParams, authInfo runtime.ClientAuthInfoWriter) (*ListFulfillmentScriptsOK, error)
	TestFulfillmentScriptEval(params *TestFulfillmentScriptEvalParams, authInfo runtime.ClientAuthInfoWriter) (*TestFulfillmentScriptEvalOK, error)
	TestFulfillmentScriptEvalShort(params *TestFulfillmentScriptEvalParams, authInfo runtime.ClientAuthInfoWriter) (*TestFulfillmentScriptEvalOK, error)
	UpdateFulfillmentScript(params *UpdateFulfillmentScriptParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateFulfillmentScriptOK, *UpdateFulfillmentScriptBadRequest, error)
	UpdateFulfillmentScriptShort(params *UpdateFulfillmentScriptParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateFulfillmentScriptOK, 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 fulfillment script API client.

type CreateFulfillmentScriptConflict

type CreateFulfillmentScriptConflict struct {
	Payload *platformclientmodels.ErrorEntity
}

CreateFulfillmentScriptConflict handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>38171</td><td>Fulfillment script already exists</td></tr></table>

func NewCreateFulfillmentScriptConflict

func NewCreateFulfillmentScriptConflict() *CreateFulfillmentScriptConflict

NewCreateFulfillmentScriptConflict creates a CreateFulfillmentScriptConflict with default headers values

func (*CreateFulfillmentScriptConflict) Error

func (*CreateFulfillmentScriptConflict) GetPayload

type CreateFulfillmentScriptCreated

type CreateFulfillmentScriptCreated struct {
	Payload *platformclientmodels.FulfillmentScriptInfo
}

CreateFulfillmentScriptCreated handles this case with default header values.

successful operation

func NewCreateFulfillmentScriptCreated

func NewCreateFulfillmentScriptCreated() *CreateFulfillmentScriptCreated

NewCreateFulfillmentScriptCreated creates a CreateFulfillmentScriptCreated with default headers values

func (*CreateFulfillmentScriptCreated) Error

func (*CreateFulfillmentScriptCreated) GetPayload

type CreateFulfillmentScriptParams

type CreateFulfillmentScriptParams struct {

	/*Body*/
	Body *platformclientmodels.FulfillmentScriptCreate
	/*ID*/
	ID string

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

CreateFulfillmentScriptParams contains all the parameters to send to the API endpoint for the create fulfillment script operation typically these are written to a http.Request

func NewCreateFulfillmentScriptParams

func NewCreateFulfillmentScriptParams() *CreateFulfillmentScriptParams

NewCreateFulfillmentScriptParams creates a new CreateFulfillmentScriptParams object with the default values initialized.

func NewCreateFulfillmentScriptParamsWithContext

func NewCreateFulfillmentScriptParamsWithContext(ctx context.Context) *CreateFulfillmentScriptParams

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

func NewCreateFulfillmentScriptParamsWithHTTPClient

func NewCreateFulfillmentScriptParamsWithHTTPClient(client *http.Client) *CreateFulfillmentScriptParams

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

func NewCreateFulfillmentScriptParamsWithTimeout

func NewCreateFulfillmentScriptParamsWithTimeout(timeout time.Duration) *CreateFulfillmentScriptParams

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

func (*CreateFulfillmentScriptParams) SetBody

SetBody adds the body to the create fulfillment script params

func (*CreateFulfillmentScriptParams) SetContext

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

SetContext adds the context to the create fulfillment script params

func (*CreateFulfillmentScriptParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create fulfillment script params

func (*CreateFulfillmentScriptParams) SetID

SetID adds the id to the create fulfillment script params

func (*CreateFulfillmentScriptParams) SetTimeout

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

SetTimeout adds the timeout to the create fulfillment script params

func (*CreateFulfillmentScriptParams) WithBody

WithBody adds the body to the create fulfillment script params

func (*CreateFulfillmentScriptParams) WithContext

WithContext adds the context to the create fulfillment script params

func (*CreateFulfillmentScriptParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the create fulfillment script params

func (*CreateFulfillmentScriptParams) WithID

WithID adds the id to the create fulfillment script params

func (*CreateFulfillmentScriptParams) WithTimeout

WithTimeout adds the timeout to the create fulfillment script params

func (*CreateFulfillmentScriptParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreateFulfillmentScriptReader

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

CreateFulfillmentScriptReader is a Reader for the CreateFulfillmentScript structure.

func (*CreateFulfillmentScriptReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteFulfillmentScriptNoContent

type DeleteFulfillmentScriptNoContent struct {
}

DeleteFulfillmentScriptNoContent handles this case with default header values.

delete fulfillment script successfully

func NewDeleteFulfillmentScriptNoContent

func NewDeleteFulfillmentScriptNoContent() *DeleteFulfillmentScriptNoContent

NewDeleteFulfillmentScriptNoContent creates a DeleteFulfillmentScriptNoContent with default headers values

func (*DeleteFulfillmentScriptNoContent) Error

type DeleteFulfillmentScriptParams

type DeleteFulfillmentScriptParams struct {

	/*ID*/
	ID string

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

DeleteFulfillmentScriptParams contains all the parameters to send to the API endpoint for the delete fulfillment script operation typically these are written to a http.Request

func NewDeleteFulfillmentScriptParams

func NewDeleteFulfillmentScriptParams() *DeleteFulfillmentScriptParams

NewDeleteFulfillmentScriptParams creates a new DeleteFulfillmentScriptParams object with the default values initialized.

func NewDeleteFulfillmentScriptParamsWithContext

func NewDeleteFulfillmentScriptParamsWithContext(ctx context.Context) *DeleteFulfillmentScriptParams

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

func NewDeleteFulfillmentScriptParamsWithHTTPClient

func NewDeleteFulfillmentScriptParamsWithHTTPClient(client *http.Client) *DeleteFulfillmentScriptParams

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

func NewDeleteFulfillmentScriptParamsWithTimeout

func NewDeleteFulfillmentScriptParamsWithTimeout(timeout time.Duration) *DeleteFulfillmentScriptParams

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

func (*DeleteFulfillmentScriptParams) SetContext

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

SetContext adds the context to the delete fulfillment script params

func (*DeleteFulfillmentScriptParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete fulfillment script params

func (*DeleteFulfillmentScriptParams) SetID

SetID adds the id to the delete fulfillment script params

func (*DeleteFulfillmentScriptParams) SetTimeout

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

SetTimeout adds the timeout to the delete fulfillment script params

func (*DeleteFulfillmentScriptParams) WithContext

WithContext adds the context to the delete fulfillment script params

func (*DeleteFulfillmentScriptParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the delete fulfillment script params

func (*DeleteFulfillmentScriptParams) WithID

WithID adds the id to the delete fulfillment script params

func (*DeleteFulfillmentScriptParams) WithTimeout

WithTimeout adds the timeout to the delete fulfillment script params

func (*DeleteFulfillmentScriptParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteFulfillmentScriptReader

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

DeleteFulfillmentScriptReader is a Reader for the DeleteFulfillmentScript structure.

func (*DeleteFulfillmentScriptReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetFulfillmentScriptNotFound

type GetFulfillmentScriptNotFound struct {
	Payload *platformclientmodels.ErrorEntity
}

GetFulfillmentScriptNotFound handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>38141</td><td>Fulfillment script does not exist</td></tr></table>

func NewGetFulfillmentScriptNotFound

func NewGetFulfillmentScriptNotFound() *GetFulfillmentScriptNotFound

NewGetFulfillmentScriptNotFound creates a GetFulfillmentScriptNotFound with default headers values

func (*GetFulfillmentScriptNotFound) Error

func (*GetFulfillmentScriptNotFound) GetPayload

type GetFulfillmentScriptOK

type GetFulfillmentScriptOK struct {
	Payload *platformclientmodels.FulfillmentScriptInfo
}

GetFulfillmentScriptOK handles this case with default header values.

successful operation

func NewGetFulfillmentScriptOK

func NewGetFulfillmentScriptOK() *GetFulfillmentScriptOK

NewGetFulfillmentScriptOK creates a GetFulfillmentScriptOK with default headers values

func (*GetFulfillmentScriptOK) Error

func (o *GetFulfillmentScriptOK) Error() string

func (*GetFulfillmentScriptOK) GetPayload

type GetFulfillmentScriptParams

type GetFulfillmentScriptParams struct {

	/*ID*/
	ID string

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

GetFulfillmentScriptParams contains all the parameters to send to the API endpoint for the get fulfillment script operation typically these are written to a http.Request

func NewGetFulfillmentScriptParams

func NewGetFulfillmentScriptParams() *GetFulfillmentScriptParams

NewGetFulfillmentScriptParams creates a new GetFulfillmentScriptParams object with the default values initialized.

func NewGetFulfillmentScriptParamsWithContext

func NewGetFulfillmentScriptParamsWithContext(ctx context.Context) *GetFulfillmentScriptParams

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

func NewGetFulfillmentScriptParamsWithHTTPClient

func NewGetFulfillmentScriptParamsWithHTTPClient(client *http.Client) *GetFulfillmentScriptParams

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

func NewGetFulfillmentScriptParamsWithTimeout

func NewGetFulfillmentScriptParamsWithTimeout(timeout time.Duration) *GetFulfillmentScriptParams

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

func (*GetFulfillmentScriptParams) SetContext

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

SetContext adds the context to the get fulfillment script params

func (*GetFulfillmentScriptParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get fulfillment script params

func (*GetFulfillmentScriptParams) SetID

func (o *GetFulfillmentScriptParams) SetID(id string)

SetID adds the id to the get fulfillment script params

func (*GetFulfillmentScriptParams) SetTimeout

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

SetTimeout adds the timeout to the get fulfillment script params

func (*GetFulfillmentScriptParams) WithContext

WithContext adds the context to the get fulfillment script params

func (*GetFulfillmentScriptParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get fulfillment script params

func (*GetFulfillmentScriptParams) WithID

WithID adds the id to the get fulfillment script params

func (*GetFulfillmentScriptParams) WithTimeout

WithTimeout adds the timeout to the get fulfillment script params

func (*GetFulfillmentScriptParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetFulfillmentScriptReader

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

GetFulfillmentScriptReader is a Reader for the GetFulfillmentScript structure.

func (*GetFulfillmentScriptReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListFulfillmentScriptsOK

type ListFulfillmentScriptsOK struct {
	Payload []*platformclientmodels.FulfillmentScriptInfo
}

ListFulfillmentScriptsOK handles this case with default header values.

successful operation

func NewListFulfillmentScriptsOK

func NewListFulfillmentScriptsOK() *ListFulfillmentScriptsOK

NewListFulfillmentScriptsOK creates a ListFulfillmentScriptsOK with default headers values

func (*ListFulfillmentScriptsOK) Error

func (o *ListFulfillmentScriptsOK) Error() string

func (*ListFulfillmentScriptsOK) GetPayload

type ListFulfillmentScriptsParams

type ListFulfillmentScriptsParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

ListFulfillmentScriptsParams contains all the parameters to send to the API endpoint for the list fulfillment scripts operation typically these are written to a http.Request

func NewListFulfillmentScriptsParams

func NewListFulfillmentScriptsParams() *ListFulfillmentScriptsParams

NewListFulfillmentScriptsParams creates a new ListFulfillmentScriptsParams object with the default values initialized.

func NewListFulfillmentScriptsParamsWithContext

func NewListFulfillmentScriptsParamsWithContext(ctx context.Context) *ListFulfillmentScriptsParams

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

func NewListFulfillmentScriptsParamsWithHTTPClient

func NewListFulfillmentScriptsParamsWithHTTPClient(client *http.Client) *ListFulfillmentScriptsParams

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

func NewListFulfillmentScriptsParamsWithTimeout

func NewListFulfillmentScriptsParamsWithTimeout(timeout time.Duration) *ListFulfillmentScriptsParams

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

func (*ListFulfillmentScriptsParams) SetContext

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

SetContext adds the context to the list fulfillment scripts params

func (*ListFulfillmentScriptsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list fulfillment scripts params

func (*ListFulfillmentScriptsParams) SetTimeout

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

SetTimeout adds the timeout to the list fulfillment scripts params

func (*ListFulfillmentScriptsParams) WithContext

WithContext adds the context to the list fulfillment scripts params

func (*ListFulfillmentScriptsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the list fulfillment scripts params

func (*ListFulfillmentScriptsParams) WithTimeout

WithTimeout adds the timeout to the list fulfillment scripts params

func (*ListFulfillmentScriptsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ListFulfillmentScriptsReader

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

ListFulfillmentScriptsReader is a Reader for the ListFulfillmentScripts structure.

func (*ListFulfillmentScriptsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type TestFulfillmentScriptEvalOK

type TestFulfillmentScriptEvalOK struct {
	Payload *platformclientmodels.FulfillmentScriptEvalTestResult
}

TestFulfillmentScriptEvalOK handles this case with default header values.

successful operation

func NewTestFulfillmentScriptEvalOK

func NewTestFulfillmentScriptEvalOK() *TestFulfillmentScriptEvalOK

NewTestFulfillmentScriptEvalOK creates a TestFulfillmentScriptEvalOK with default headers values

func (*TestFulfillmentScriptEvalOK) Error

func (*TestFulfillmentScriptEvalOK) GetPayload

type TestFulfillmentScriptEvalParams

type TestFulfillmentScriptEvalParams struct {

	/*Body*/
	Body *platformclientmodels.FulfillmentScriptEvalTestRequest

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

TestFulfillmentScriptEvalParams contains all the parameters to send to the API endpoint for the test fulfillment script eval operation typically these are written to a http.Request

func NewTestFulfillmentScriptEvalParams

func NewTestFulfillmentScriptEvalParams() *TestFulfillmentScriptEvalParams

NewTestFulfillmentScriptEvalParams creates a new TestFulfillmentScriptEvalParams object with the default values initialized.

func NewTestFulfillmentScriptEvalParamsWithContext

func NewTestFulfillmentScriptEvalParamsWithContext(ctx context.Context) *TestFulfillmentScriptEvalParams

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

func NewTestFulfillmentScriptEvalParamsWithHTTPClient

func NewTestFulfillmentScriptEvalParamsWithHTTPClient(client *http.Client) *TestFulfillmentScriptEvalParams

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

func NewTestFulfillmentScriptEvalParamsWithTimeout

func NewTestFulfillmentScriptEvalParamsWithTimeout(timeout time.Duration) *TestFulfillmentScriptEvalParams

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

func (*TestFulfillmentScriptEvalParams) SetBody

SetBody adds the body to the test fulfillment script eval params

func (*TestFulfillmentScriptEvalParams) SetContext

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

SetContext adds the context to the test fulfillment script eval params

func (*TestFulfillmentScriptEvalParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the test fulfillment script eval params

func (*TestFulfillmentScriptEvalParams) SetTimeout

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

SetTimeout adds the timeout to the test fulfillment script eval params

func (*TestFulfillmentScriptEvalParams) WithBody

WithBody adds the body to the test fulfillment script eval params

func (*TestFulfillmentScriptEvalParams) WithContext

WithContext adds the context to the test fulfillment script eval params

func (*TestFulfillmentScriptEvalParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the test fulfillment script eval params

func (*TestFulfillmentScriptEvalParams) WithTimeout

WithTimeout adds the timeout to the test fulfillment script eval params

func (*TestFulfillmentScriptEvalParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type TestFulfillmentScriptEvalReader

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

TestFulfillmentScriptEvalReader is a Reader for the TestFulfillmentScriptEval structure.

func (*TestFulfillmentScriptEvalReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateFulfillmentScriptBadRequest

type UpdateFulfillmentScriptBadRequest struct {
	Payload *platformclientmodels.ErrorEntity
}

UpdateFulfillmentScriptBadRequest handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>38141</td><td>Fulfillment script does not exist</td></tr></table>

func NewUpdateFulfillmentScriptBadRequest

func NewUpdateFulfillmentScriptBadRequest() *UpdateFulfillmentScriptBadRequest

NewUpdateFulfillmentScriptBadRequest creates a UpdateFulfillmentScriptBadRequest with default headers values

func (*UpdateFulfillmentScriptBadRequest) Error

func (*UpdateFulfillmentScriptBadRequest) GetPayload

type UpdateFulfillmentScriptOK

type UpdateFulfillmentScriptOK struct {
	Payload *platformclientmodels.FulfillmentScriptInfo
}

UpdateFulfillmentScriptOK handles this case with default header values.

successful operation

func NewUpdateFulfillmentScriptOK

func NewUpdateFulfillmentScriptOK() *UpdateFulfillmentScriptOK

NewUpdateFulfillmentScriptOK creates a UpdateFulfillmentScriptOK with default headers values

func (*UpdateFulfillmentScriptOK) Error

func (o *UpdateFulfillmentScriptOK) Error() string

func (*UpdateFulfillmentScriptOK) GetPayload

type UpdateFulfillmentScriptParams

type UpdateFulfillmentScriptParams struct {

	/*Body*/
	Body *platformclientmodels.FulfillmentScriptUpdate
	/*ID*/
	ID string

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

UpdateFulfillmentScriptParams contains all the parameters to send to the API endpoint for the update fulfillment script operation typically these are written to a http.Request

func NewUpdateFulfillmentScriptParams

func NewUpdateFulfillmentScriptParams() *UpdateFulfillmentScriptParams

NewUpdateFulfillmentScriptParams creates a new UpdateFulfillmentScriptParams object with the default values initialized.

func NewUpdateFulfillmentScriptParamsWithContext

func NewUpdateFulfillmentScriptParamsWithContext(ctx context.Context) *UpdateFulfillmentScriptParams

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

func NewUpdateFulfillmentScriptParamsWithHTTPClient

func NewUpdateFulfillmentScriptParamsWithHTTPClient(client *http.Client) *UpdateFulfillmentScriptParams

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

func NewUpdateFulfillmentScriptParamsWithTimeout

func NewUpdateFulfillmentScriptParamsWithTimeout(timeout time.Duration) *UpdateFulfillmentScriptParams

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

func (*UpdateFulfillmentScriptParams) SetBody

SetBody adds the body to the update fulfillment script params

func (*UpdateFulfillmentScriptParams) SetContext

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

SetContext adds the context to the update fulfillment script params

func (*UpdateFulfillmentScriptParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update fulfillment script params

func (*UpdateFulfillmentScriptParams) SetID

SetID adds the id to the update fulfillment script params

func (*UpdateFulfillmentScriptParams) SetTimeout

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

SetTimeout adds the timeout to the update fulfillment script params

func (*UpdateFulfillmentScriptParams) WithBody

WithBody adds the body to the update fulfillment script params

func (*UpdateFulfillmentScriptParams) WithContext

WithContext adds the context to the update fulfillment script params

func (*UpdateFulfillmentScriptParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the update fulfillment script params

func (*UpdateFulfillmentScriptParams) WithID

WithID adds the id to the update fulfillment script params

func (*UpdateFulfillmentScriptParams) WithTimeout

WithTimeout adds the timeout to the update fulfillment script params

func (*UpdateFulfillmentScriptParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UpdateFulfillmentScriptReader

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

UpdateFulfillmentScriptReader is a Reader for the UpdateFulfillmentScript structure.

func (*UpdateFulfillmentScriptReader) ReadResponse

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