fulfillment_script

package
v0.45.0 Latest Latest
Warning

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

Go to latest
Published: May 23, 2023 License: MIT Imports: 15 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 deprecated

Deprecated: 2022-08-10 - Use CreateFulfillmentScriptShort instead.

CreateFulfillmentScript create fulfillment script Create fulfillment script. Other detail info:

  • Required permission : resource="ADMIN:FULFILLMENT", action=1 (CREATE)

Fulfillment scripts are used for adding custom fulfillment logic based on ITEM_TYPE : [MEDIA,INGAMEITEM] for now, and the custom scripts only cover grantDays. Example for grantDays: `order && ((order.currency && order.currency.currencyCode) == 'LP' || order.isFree) ? 30 : -1`

func (*Client) CreateFulfillmentScriptShort added in v0.8.0

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

CreateFulfillmentScriptShort create fulfillment script Create fulfillment script. Other detail info:

  • Required permission : resource="ADMIN:FULFILLMENT", action=1 (CREATE)

Fulfillment scripts are used for adding custom fulfillment logic based on ITEM_TYPE : [MEDIA,INGAMEITEM] for now, and the custom scripts only cover grantDays. Example for grantDays: `order && ((order.currency && order.currency.currencyCode) == 'LP' || order.isFree) ? 30 : -1`

func (*Client) DeleteFulfillmentScript deprecated

Deprecated: 2022-08-10 - Use DeleteFulfillmentScriptShort instead.

DeleteFulfillmentScript delete fulfillment script Delete fulfillment script. Other detail info:

  • Required permission : resource="ADMIN:FULFILLMENT", action=8 (DELETE)

func (*Client) DeleteFulfillmentScriptShort added in v0.8.0

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

DeleteFulfillmentScriptShort delete fulfillment script Delete fulfillment script. Other detail info:

  • Required permission : resource="ADMIN:FULFILLMENT", action=8 (DELETE)

func (*Client) GetFulfillmentScript deprecated

Deprecated: 2022-08-10 - Use GetFulfillmentScriptShort instead.

GetFulfillmentScript get fulfillment script by id Get fulfillment script by id. Other detail info:

  • Required permission : resource="ADMIN:FULFILLMENT", action=2 (READ)
  • Returns : get fulfillment script

func (*Client) GetFulfillmentScriptShort added in v0.8.0

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

GetFulfillmentScriptShort get fulfillment script by id Get fulfillment script by id. Other detail info:

  • Required permission : resource="ADMIN:FULFILLMENT", action=2 (READ)
  • Returns : get fulfillment script

func (*Client) ListFulfillmentScripts deprecated

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

Deprecated: 2022-08-10 - Use ListFulfillmentScriptsShort instead.

ListFulfillmentScripts list all fulfillment scripts List all fulfillment scripts. Other detail info:

  • Required permission : resource="ADMIN:FULFILLMENT", action=2 (READ)

func (*Client) ListFulfillmentScriptsShort added in v0.8.0

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

ListFulfillmentScriptsShort list all fulfillment scripts List all fulfillment scripts. Other detail info:

  • Required permission : resource="ADMIN:FULFILLMENT", action=2 (READ)

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) TestFulfillmentScriptEval deprecated

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

Deprecated: 2022-08-10 - Use TestFulfillmentScriptEvalShort instead.

TestFulfillmentScriptEval test eval fulfillment script

[TEST FACILITY ONLY] Test eval fulfillment script.

Other detail info:

  • Required permission : resource="ADMIN:FULFILLMENT", action=2 (READ)

func (*Client) TestFulfillmentScriptEvalShort added in v0.8.0

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

TestFulfillmentScriptEvalShort test eval fulfillment script

[TEST FACILITY ONLY] Test eval fulfillment script.

Other detail info:

  • Required permission : resource="ADMIN:FULFILLMENT", action=2 (READ)

func (*Client) UpdateFulfillmentScript deprecated

Deprecated: 2022-08-10 - Use UpdateFulfillmentScriptShort instead.

UpdateFulfillmentScript update fulfillment script Update fulfillment script. Other detail info:

  • Required permission : resource="ADMIN:FULFILLMENT", action=4 (UPDATE)

func (*Client) UpdateFulfillmentScriptShort added in v0.8.0

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

UpdateFulfillmentScriptShort update fulfillment script Update fulfillment script. Other detail info:

  • Required permission : resource="ADMIN:FULFILLMENT", action=4 (UPDATE)

type ClientService

type ClientService interface {
	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)
	GetFulfillmentScript(params *GetFulfillmentScriptParams, authInfo runtime.ClientAuthInfoWriter) (*GetFulfillmentScriptOK, *GetFulfillmentScriptNotFound, error)
	GetFulfillmentScriptShort(params *GetFulfillmentScriptParams, authInfo runtime.ClientAuthInfoWriter) (*GetFulfillmentScriptOK, error)
	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)
	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

func (*CreateFulfillmentScriptConflict) ToJSONString added in v0.25.0

func (o *CreateFulfillmentScriptConflict) ToJSONString() string

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

func (*CreateFulfillmentScriptCreated) ToJSONString added in v0.25.0

func (o *CreateFulfillmentScriptCreated) ToJSONString() string

type CreateFulfillmentScriptParams

type CreateFulfillmentScriptParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Body*/
	Body *platformclientmodels.FulfillmentScriptCreate
	/*ID*/
	ID string

	AuthInfoWriter runtime.ClientAuthInfoWriter
	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) SetAuthInfoWriter added in v0.17.0

func (o *CreateFulfillmentScriptParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)

SetAuthInfoWriter adds the authInfoWriter to the create fulfillment script params

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) SetHTTPClientTransport added in v0.19.0

func (o *CreateFulfillmentScriptParams) SetHTTPClientTransport(roundTripper http.RoundTripper)

SetHTTPClient adds the HTTPClient Transport to the create fulfillment script params

func (*CreateFulfillmentScriptParams) SetID

func (o *CreateFulfillmentScriptParams) SetID(idVar string)

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 idVar 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 {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*ID*/
	ID string

	AuthInfoWriter runtime.ClientAuthInfoWriter
	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) SetAuthInfoWriter added in v0.17.0

func (o *DeleteFulfillmentScriptParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)

SetAuthInfoWriter adds the authInfoWriter to the delete fulfillment script params

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) SetHTTPClientTransport added in v0.19.0

func (o *DeleteFulfillmentScriptParams) SetHTTPClientTransport(roundTripper http.RoundTripper)

SetHTTPClient adds the HTTPClient Transport to the delete fulfillment script params

func (*DeleteFulfillmentScriptParams) SetID

func (o *DeleteFulfillmentScriptParams) SetID(idVar string)

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 idVar 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

func (*GetFulfillmentScriptNotFound) ToJSONString added in v0.25.0

func (o *GetFulfillmentScriptNotFound) ToJSONString() string

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

func (*GetFulfillmentScriptOK) ToJSONString added in v0.25.0

func (o *GetFulfillmentScriptOK) ToJSONString() string

type GetFulfillmentScriptParams

type GetFulfillmentScriptParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*ID*/
	ID string

	AuthInfoWriter runtime.ClientAuthInfoWriter
	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) SetAuthInfoWriter added in v0.17.0

func (o *GetFulfillmentScriptParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)

SetAuthInfoWriter adds the authInfoWriter to the get fulfillment script params

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) SetHTTPClientTransport added in v0.19.0

func (o *GetFulfillmentScriptParams) SetHTTPClientTransport(roundTripper http.RoundTripper)

SetHTTPClient adds the HTTPClient Transport to the get fulfillment script params

func (*GetFulfillmentScriptParams) SetID

func (o *GetFulfillmentScriptParams) SetID(idVar 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 idVar 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

func (*ListFulfillmentScriptsOK) ToJSONString added in v0.25.0

func (o *ListFulfillmentScriptsOK) ToJSONString() string

type ListFulfillmentScriptsParams

type ListFulfillmentScriptsParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry

	AuthInfoWriter runtime.ClientAuthInfoWriter
	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) SetAuthInfoWriter added in v0.17.0

func (o *ListFulfillmentScriptsParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)

SetAuthInfoWriter adds the authInfoWriter to the list fulfillment scripts params

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) SetHTTPClientTransport added in v0.19.0

func (o *ListFulfillmentScriptsParams) SetHTTPClientTransport(roundTripper http.RoundTripper)

SetHTTPClient adds the HTTPClient Transport 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

func (*TestFulfillmentScriptEvalOK) ToJSONString added in v0.25.0

func (o *TestFulfillmentScriptEvalOK) ToJSONString() string

type TestFulfillmentScriptEvalParams

type TestFulfillmentScriptEvalParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Body*/
	Body *platformclientmodels.FulfillmentScriptEvalTestRequest

	AuthInfoWriter runtime.ClientAuthInfoWriter
	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) SetAuthInfoWriter added in v0.17.0

func (o *TestFulfillmentScriptEvalParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)

SetAuthInfoWriter adds the authInfoWriter to the test fulfillment script eval params

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) SetHTTPClientTransport added in v0.19.0

func (o *TestFulfillmentScriptEvalParams) SetHTTPClientTransport(roundTripper http.RoundTripper)

SetHTTPClient adds the HTTPClient Transport 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

func (*UpdateFulfillmentScriptBadRequest) ToJSONString added in v0.25.0

func (o *UpdateFulfillmentScriptBadRequest) ToJSONString() string

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

func (*UpdateFulfillmentScriptOK) ToJSONString added in v0.25.0

func (o *UpdateFulfillmentScriptOK) ToJSONString() string

type UpdateFulfillmentScriptParams

type UpdateFulfillmentScriptParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Body*/
	Body *platformclientmodels.FulfillmentScriptUpdate
	/*ID*/
	ID string

	AuthInfoWriter runtime.ClientAuthInfoWriter
	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) SetAuthInfoWriter added in v0.17.0

func (o *UpdateFulfillmentScriptParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)

SetAuthInfoWriter adds the authInfoWriter to the update fulfillment script params

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) SetHTTPClientTransport added in v0.19.0

func (o *UpdateFulfillmentScriptParams) SetHTTPClientTransport(roundTripper http.RoundTripper)

SetHTTPClient adds the HTTPClient Transport to the update fulfillment script params

func (*UpdateFulfillmentScriptParams) SetID

func (o *UpdateFulfillmentScriptParams) SetID(idVar string)

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 idVar 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