loyalty

package
v0.0.0-...-dc3cc4a Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccumulateLoyaltyPointsOK

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

Success

func NewAccumulateLoyaltyPointsOK

func NewAccumulateLoyaltyPointsOK() *AccumulateLoyaltyPointsOK

NewAccumulateLoyaltyPointsOK creates a AccumulateLoyaltyPointsOK with default headers values

func (*AccumulateLoyaltyPointsOK) Error

func (o *AccumulateLoyaltyPointsOK) Error() string

func (*AccumulateLoyaltyPointsOK) GetPayload

type AccumulateLoyaltyPointsParams

type AccumulateLoyaltyPointsParams struct {

	/* AccountID.

	   The `loyalty account` ID to which to add the points.
	*/
	AccountID string

	/* Body.

	     An object containing the fields to POST for the request.

	See the corresponding object definition for field details.
	*/
	Body *models.AccumulateLoyaltyPointsRequest

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

AccumulateLoyaltyPointsParams contains all the parameters to send to the API endpoint

for the accumulate loyalty points operation.

Typically these are written to a http.Request.

func NewAccumulateLoyaltyPointsParams

func NewAccumulateLoyaltyPointsParams() *AccumulateLoyaltyPointsParams

NewAccumulateLoyaltyPointsParams creates a new AccumulateLoyaltyPointsParams 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 NewAccumulateLoyaltyPointsParamsWithContext

func NewAccumulateLoyaltyPointsParamsWithContext(ctx context.Context) *AccumulateLoyaltyPointsParams

NewAccumulateLoyaltyPointsParamsWithContext creates a new AccumulateLoyaltyPointsParams object with the ability to set a context for a request.

func NewAccumulateLoyaltyPointsParamsWithHTTPClient

func NewAccumulateLoyaltyPointsParamsWithHTTPClient(client *http.Client) *AccumulateLoyaltyPointsParams

NewAccumulateLoyaltyPointsParamsWithHTTPClient creates a new AccumulateLoyaltyPointsParams object with the ability to set a custom HTTPClient for a request.

func NewAccumulateLoyaltyPointsParamsWithTimeout

func NewAccumulateLoyaltyPointsParamsWithTimeout(timeout time.Duration) *AccumulateLoyaltyPointsParams

NewAccumulateLoyaltyPointsParamsWithTimeout creates a new AccumulateLoyaltyPointsParams object with the ability to set a timeout on a request.

func (*AccumulateLoyaltyPointsParams) SetAccountID

func (o *AccumulateLoyaltyPointsParams) SetAccountID(accountID string)

SetAccountID adds the accountId to the accumulate loyalty points params

func (*AccumulateLoyaltyPointsParams) SetBody

SetBody adds the body to the accumulate loyalty points params

func (*AccumulateLoyaltyPointsParams) SetContext

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

SetContext adds the context to the accumulate loyalty points params

func (*AccumulateLoyaltyPointsParams) SetDefaults

func (o *AccumulateLoyaltyPointsParams) SetDefaults()

SetDefaults hydrates default values in the accumulate loyalty points params (not the query body).

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

func (*AccumulateLoyaltyPointsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the accumulate loyalty points params

func (*AccumulateLoyaltyPointsParams) SetTimeout

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

SetTimeout adds the timeout to the accumulate loyalty points params

func (*AccumulateLoyaltyPointsParams) WithAccountID

WithAccountID adds the accountID to the accumulate loyalty points params

func (*AccumulateLoyaltyPointsParams) WithBody

WithBody adds the body to the accumulate loyalty points params

func (*AccumulateLoyaltyPointsParams) WithContext

WithContext adds the context to the accumulate loyalty points params

func (*AccumulateLoyaltyPointsParams) WithDefaults

WithDefaults hydrates default values in the accumulate loyalty points params (not the query body).

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

func (*AccumulateLoyaltyPointsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the accumulate loyalty points params

func (*AccumulateLoyaltyPointsParams) WithTimeout

WithTimeout adds the timeout to the accumulate loyalty points params

func (*AccumulateLoyaltyPointsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type AccumulateLoyaltyPointsReader

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

AccumulateLoyaltyPointsReader is a Reader for the AccumulateLoyaltyPoints structure.

func (*AccumulateLoyaltyPointsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type AdjustLoyaltyPointsOK

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

Success

func NewAdjustLoyaltyPointsOK

func NewAdjustLoyaltyPointsOK() *AdjustLoyaltyPointsOK

NewAdjustLoyaltyPointsOK creates a AdjustLoyaltyPointsOK with default headers values

func (*AdjustLoyaltyPointsOK) Error

func (o *AdjustLoyaltyPointsOK) Error() string

func (*AdjustLoyaltyPointsOK) GetPayload

type AdjustLoyaltyPointsParams

type AdjustLoyaltyPointsParams struct {

	/* AccountID.

	   The ID of the `loyalty account` in which to adjust the points.
	*/
	AccountID string

	/* Body.

	     An object containing the fields to POST for the request.

	See the corresponding object definition for field details.
	*/
	Body *models.AdjustLoyaltyPointsRequest

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

AdjustLoyaltyPointsParams contains all the parameters to send to the API endpoint

for the adjust loyalty points operation.

Typically these are written to a http.Request.

func NewAdjustLoyaltyPointsParams

func NewAdjustLoyaltyPointsParams() *AdjustLoyaltyPointsParams

NewAdjustLoyaltyPointsParams creates a new AdjustLoyaltyPointsParams 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 NewAdjustLoyaltyPointsParamsWithContext

func NewAdjustLoyaltyPointsParamsWithContext(ctx context.Context) *AdjustLoyaltyPointsParams

NewAdjustLoyaltyPointsParamsWithContext creates a new AdjustLoyaltyPointsParams object with the ability to set a context for a request.

func NewAdjustLoyaltyPointsParamsWithHTTPClient

func NewAdjustLoyaltyPointsParamsWithHTTPClient(client *http.Client) *AdjustLoyaltyPointsParams

NewAdjustLoyaltyPointsParamsWithHTTPClient creates a new AdjustLoyaltyPointsParams object with the ability to set a custom HTTPClient for a request.

func NewAdjustLoyaltyPointsParamsWithTimeout

func NewAdjustLoyaltyPointsParamsWithTimeout(timeout time.Duration) *AdjustLoyaltyPointsParams

NewAdjustLoyaltyPointsParamsWithTimeout creates a new AdjustLoyaltyPointsParams object with the ability to set a timeout on a request.

func (*AdjustLoyaltyPointsParams) SetAccountID

func (o *AdjustLoyaltyPointsParams) SetAccountID(accountID string)

SetAccountID adds the accountId to the adjust loyalty points params

func (*AdjustLoyaltyPointsParams) SetBody

SetBody adds the body to the adjust loyalty points params

func (*AdjustLoyaltyPointsParams) SetContext

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

SetContext adds the context to the adjust loyalty points params

func (*AdjustLoyaltyPointsParams) SetDefaults

func (o *AdjustLoyaltyPointsParams) SetDefaults()

SetDefaults hydrates default values in the adjust loyalty points params (not the query body).

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

func (*AdjustLoyaltyPointsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the adjust loyalty points params

func (*AdjustLoyaltyPointsParams) SetTimeout

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

SetTimeout adds the timeout to the adjust loyalty points params

func (*AdjustLoyaltyPointsParams) WithAccountID

func (o *AdjustLoyaltyPointsParams) WithAccountID(accountID string) *AdjustLoyaltyPointsParams

WithAccountID adds the accountID to the adjust loyalty points params

func (*AdjustLoyaltyPointsParams) WithBody

WithBody adds the body to the adjust loyalty points params

func (*AdjustLoyaltyPointsParams) WithContext

WithContext adds the context to the adjust loyalty points params

func (*AdjustLoyaltyPointsParams) WithDefaults

WithDefaults hydrates default values in the adjust loyalty points params (not the query body).

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

func (*AdjustLoyaltyPointsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the adjust loyalty points params

func (*AdjustLoyaltyPointsParams) WithTimeout

WithTimeout adds the timeout to the adjust loyalty points params

func (*AdjustLoyaltyPointsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type AdjustLoyaltyPointsReader

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

AdjustLoyaltyPointsReader is a Reader for the AdjustLoyaltyPoints structure.

func (*AdjustLoyaltyPointsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CalculateLoyaltyPointsOK

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

Success

func NewCalculateLoyaltyPointsOK

func NewCalculateLoyaltyPointsOK() *CalculateLoyaltyPointsOK

NewCalculateLoyaltyPointsOK creates a CalculateLoyaltyPointsOK with default headers values

func (*CalculateLoyaltyPointsOK) Error

func (o *CalculateLoyaltyPointsOK) Error() string

func (*CalculateLoyaltyPointsOK) GetPayload

type CalculateLoyaltyPointsParams

type CalculateLoyaltyPointsParams struct {

	/* Body.

	     An object containing the fields to POST for the request.

	See the corresponding object definition for field details.
	*/
	Body *models.CalculateLoyaltyPointsRequest

	/* ProgramID.

	   The `loyalty program` ID, which defines the rules for accruing points.
	*/
	ProgramID string

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

CalculateLoyaltyPointsParams contains all the parameters to send to the API endpoint

for the calculate loyalty points operation.

Typically these are written to a http.Request.

func NewCalculateLoyaltyPointsParams

func NewCalculateLoyaltyPointsParams() *CalculateLoyaltyPointsParams

NewCalculateLoyaltyPointsParams creates a new CalculateLoyaltyPointsParams 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 NewCalculateLoyaltyPointsParamsWithContext

func NewCalculateLoyaltyPointsParamsWithContext(ctx context.Context) *CalculateLoyaltyPointsParams

NewCalculateLoyaltyPointsParamsWithContext creates a new CalculateLoyaltyPointsParams object with the ability to set a context for a request.

func NewCalculateLoyaltyPointsParamsWithHTTPClient

func NewCalculateLoyaltyPointsParamsWithHTTPClient(client *http.Client) *CalculateLoyaltyPointsParams

NewCalculateLoyaltyPointsParamsWithHTTPClient creates a new CalculateLoyaltyPointsParams object with the ability to set a custom HTTPClient for a request.

func NewCalculateLoyaltyPointsParamsWithTimeout

func NewCalculateLoyaltyPointsParamsWithTimeout(timeout time.Duration) *CalculateLoyaltyPointsParams

NewCalculateLoyaltyPointsParamsWithTimeout creates a new CalculateLoyaltyPointsParams object with the ability to set a timeout on a request.

func (*CalculateLoyaltyPointsParams) SetBody

SetBody adds the body to the calculate loyalty points params

func (*CalculateLoyaltyPointsParams) SetContext

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

SetContext adds the context to the calculate loyalty points params

func (*CalculateLoyaltyPointsParams) SetDefaults

func (o *CalculateLoyaltyPointsParams) SetDefaults()

SetDefaults hydrates default values in the calculate loyalty points params (not the query body).

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

func (*CalculateLoyaltyPointsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the calculate loyalty points params

func (*CalculateLoyaltyPointsParams) SetProgramID

func (o *CalculateLoyaltyPointsParams) SetProgramID(programID string)

SetProgramID adds the programId to the calculate loyalty points params

func (*CalculateLoyaltyPointsParams) SetTimeout

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

SetTimeout adds the timeout to the calculate loyalty points params

func (*CalculateLoyaltyPointsParams) WithBody

WithBody adds the body to the calculate loyalty points params

func (*CalculateLoyaltyPointsParams) WithContext

WithContext adds the context to the calculate loyalty points params

func (*CalculateLoyaltyPointsParams) WithDefaults

WithDefaults hydrates default values in the calculate loyalty points params (not the query body).

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

func (*CalculateLoyaltyPointsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the calculate loyalty points params

func (*CalculateLoyaltyPointsParams) WithProgramID

WithProgramID adds the programID to the calculate loyalty points params

func (*CalculateLoyaltyPointsParams) WithTimeout

WithTimeout adds the timeout to the calculate loyalty points params

func (*CalculateLoyaltyPointsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CalculateLoyaltyPointsReader

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

CalculateLoyaltyPointsReader is a Reader for the CalculateLoyaltyPoints structure.

func (*CalculateLoyaltyPointsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type Client

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

Client for loyalty API

func (*Client) AccumulateLoyaltyPoints

func (a *Client) AccumulateLoyaltyPoints(params *AccumulateLoyaltyPointsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AccumulateLoyaltyPointsOK, error)
AccumulateLoyaltyPoints accumulates loyalty points

Adds points to a loyalty account.

- If you are using the Orders API to manage orders, you only provide the `order_id`. The endpoint reads the order to compute points to add to the buyer's account. - If you are not using the Orders API to manage orders, you first perform a client-side computation to compute the points. For spend-based and visit-based programs, you can call [CalculateLoyaltyPoints](#endpoint-Loyalty-CalculateLoyaltyPoints) to compute the points. For more information, see [Loyalty Program Overview](/docs/loyalty/overview). You then provide the points in a request to this endpoint.

func (*Client) AdjustLoyaltyPoints

func (a *Client) AdjustLoyaltyPoints(params *AdjustLoyaltyPointsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AdjustLoyaltyPointsOK, error)
AdjustLoyaltyPoints adjusts loyalty points

Adds points to or subtracts points from a buyer's account.

Use this endpoint only when you need to manually adjust points. Otherwise, in your application flow, you call [AccumulateLoyaltyPoints](#endpoint-Loyalty-AccumulateLoyaltyPoints) to add points when a buyer pays for the purchase.

func (*Client) CalculateLoyaltyPoints

func (a *Client) CalculateLoyaltyPoints(params *CalculateLoyaltyPointsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CalculateLoyaltyPointsOK, error)
CalculateLoyaltyPoints calculates loyalty points

Calculates the points a purchase earns.

- If you are using the Orders API to manage orders, you provide `order_id` in the request. The endpoint calculates the points by reading the order. - If you are not using the Orders API to manage orders, you provide the purchase amount in the request for the endpoint to calculate the points.

An application might call this endpoint to show the points that a buyer can earn with the specific purchase.

func (*Client) CreateLoyaltyAccount

func (a *Client) CreateLoyaltyAccount(params *CreateLoyaltyAccountParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateLoyaltyAccountOK, error)

CreateLoyaltyAccount creates loyalty account

Creates a loyalty account.

func (*Client) CreateLoyaltyReward

func (a *Client) CreateLoyaltyReward(params *CreateLoyaltyRewardParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateLoyaltyRewardOK, error)
CreateLoyaltyReward creates loyalty reward

Creates a loyalty reward. In the process, the endpoint does following:

- Uses the `reward_tier_id` in the request to determine the number of points to lock for this reward. - If the request includes `order_id`, it adds the reward and related discount to the order.

After a reward is created, the points are locked and not available for the buyer to redeem another reward.

func (*Client) DeleteLoyaltyReward

func (a *Client) DeleteLoyaltyReward(params *DeleteLoyaltyRewardParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteLoyaltyRewardOK, error)
DeleteLoyaltyReward deletes loyalty reward

Deletes a loyalty reward by doing the following:

- Returns the loyalty points back to the loyalty account. - If an order ID was specified when the reward was created (see [CreateLoyaltyReward](#endpoint-Loyalty-CreateLoyaltyReward)), it updates the order by removing the reward and related discounts.

You cannot delete a reward that has reached the terminal state (REDEEMED).

func (*Client) ListLoyaltyPrograms

func (a *Client) ListLoyaltyPrograms(params *ListLoyaltyProgramsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListLoyaltyProgramsOK, error)
ListLoyaltyPrograms lists loyalty programs

Returns a list of loyalty programs in the seller's account.

Currently, a seller can only have one loyalty program.

func (*Client) RedeemLoyaltyReward

func (a *Client) RedeemLoyaltyReward(params *RedeemLoyaltyRewardParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RedeemLoyaltyRewardOK, error)
RedeemLoyaltyReward redeems loyalty reward

Redeems a loyalty reward.

The endpoint sets the reward to the `REDEEMED` terminal state.

If you are using your own order processing system (not using the Orders API), you call this endpoint after the buyer paid for the purchase.

After the reward reaches the terminal state, it cannot be deleted. In other words, points used for the reward cannot be returned to the account.

func (*Client) RetrieveLoyaltyAccount

func (a *Client) RetrieveLoyaltyAccount(params *RetrieveLoyaltyAccountParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RetrieveLoyaltyAccountOK, error)

RetrieveLoyaltyAccount retrieves loyalty account

Retrieves a loyalty account.

func (*Client) RetrieveLoyaltyReward

func (a *Client) RetrieveLoyaltyReward(params *RetrieveLoyaltyRewardParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RetrieveLoyaltyRewardOK, error)

RetrieveLoyaltyReward retrieves loyalty reward

Retrieves a loyalty reward.

func (*Client) SearchLoyaltyAccounts

func (a *Client) SearchLoyaltyAccounts(params *SearchLoyaltyAccountsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SearchLoyaltyAccountsOK, error)
SearchLoyaltyAccounts searches loyalty accounts

Searches for loyalty accounts in a loyalty program.

You can search for a loyalty account using the phone number or customer ID associated with the account. To return all loyalty accounts, specify an empty `query` object or omit it entirely.

Search results are sorted by `created_at` in ascending order.

func (*Client) SearchLoyaltyEvents

func (a *Client) SearchLoyaltyEvents(params *SearchLoyaltyEventsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SearchLoyaltyEventsOK, error)
SearchLoyaltyEvents searches loyalty events

Searches for loyalty events.

A Square loyalty program maintains a ledger of events that occur during the lifetime of a buyer's loyalty account. Each change in the point balance (for example, points earned, points redeemed, and points expired) is recorded in the ledger. Using this endpoint, you can search the ledger for events.

func (*Client) SearchLoyaltyRewards

func (a *Client) SearchLoyaltyRewards(params *SearchLoyaltyRewardsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SearchLoyaltyRewardsOK, error)
SearchLoyaltyRewards searches loyalty rewards

Searches for loyalty rewards in a loyalty account.

In the current implementation, the endpoint supports search by the reward `status`.

If you know a reward ID, use the [RetrieveLoyaltyReward](#endpoint-Loyalty-RetrieveLoyaltyReward) endpoint.

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 {
	AccumulateLoyaltyPoints(params *AccumulateLoyaltyPointsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AccumulateLoyaltyPointsOK, error)

	AdjustLoyaltyPoints(params *AdjustLoyaltyPointsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AdjustLoyaltyPointsOK, error)

	CalculateLoyaltyPoints(params *CalculateLoyaltyPointsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CalculateLoyaltyPointsOK, error)

	CreateLoyaltyAccount(params *CreateLoyaltyAccountParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateLoyaltyAccountOK, error)

	CreateLoyaltyReward(params *CreateLoyaltyRewardParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateLoyaltyRewardOK, error)

	DeleteLoyaltyReward(params *DeleteLoyaltyRewardParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteLoyaltyRewardOK, error)

	ListLoyaltyPrograms(params *ListLoyaltyProgramsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListLoyaltyProgramsOK, error)

	RedeemLoyaltyReward(params *RedeemLoyaltyRewardParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RedeemLoyaltyRewardOK, error)

	RetrieveLoyaltyAccount(params *RetrieveLoyaltyAccountParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RetrieveLoyaltyAccountOK, error)

	RetrieveLoyaltyReward(params *RetrieveLoyaltyRewardParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RetrieveLoyaltyRewardOK, error)

	SearchLoyaltyAccounts(params *SearchLoyaltyAccountsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SearchLoyaltyAccountsOK, error)

	SearchLoyaltyEvents(params *SearchLoyaltyEventsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SearchLoyaltyEventsOK, error)

	SearchLoyaltyRewards(params *SearchLoyaltyRewardsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SearchLoyaltyRewardsOK, 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 loyalty API client.

type CreateLoyaltyAccountOK

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

Success

func NewCreateLoyaltyAccountOK

func NewCreateLoyaltyAccountOK() *CreateLoyaltyAccountOK

NewCreateLoyaltyAccountOK creates a CreateLoyaltyAccountOK with default headers values

func (*CreateLoyaltyAccountOK) Error

func (o *CreateLoyaltyAccountOK) Error() string

func (*CreateLoyaltyAccountOK) GetPayload

type CreateLoyaltyAccountParams

type CreateLoyaltyAccountParams struct {

	/* Body.

	     An object containing the fields to POST for the request.

	See the corresponding object definition for field details.
	*/
	Body *models.CreateLoyaltyAccountRequest

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

CreateLoyaltyAccountParams contains all the parameters to send to the API endpoint

for the create loyalty account operation.

Typically these are written to a http.Request.

func NewCreateLoyaltyAccountParams

func NewCreateLoyaltyAccountParams() *CreateLoyaltyAccountParams

NewCreateLoyaltyAccountParams creates a new CreateLoyaltyAccountParams 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 NewCreateLoyaltyAccountParamsWithContext

func NewCreateLoyaltyAccountParamsWithContext(ctx context.Context) *CreateLoyaltyAccountParams

NewCreateLoyaltyAccountParamsWithContext creates a new CreateLoyaltyAccountParams object with the ability to set a context for a request.

func NewCreateLoyaltyAccountParamsWithHTTPClient

func NewCreateLoyaltyAccountParamsWithHTTPClient(client *http.Client) *CreateLoyaltyAccountParams

NewCreateLoyaltyAccountParamsWithHTTPClient creates a new CreateLoyaltyAccountParams object with the ability to set a custom HTTPClient for a request.

func NewCreateLoyaltyAccountParamsWithTimeout

func NewCreateLoyaltyAccountParamsWithTimeout(timeout time.Duration) *CreateLoyaltyAccountParams

NewCreateLoyaltyAccountParamsWithTimeout creates a new CreateLoyaltyAccountParams object with the ability to set a timeout on a request.

func (*CreateLoyaltyAccountParams) SetBody

SetBody adds the body to the create loyalty account params

func (*CreateLoyaltyAccountParams) SetContext

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

SetContext adds the context to the create loyalty account params

func (*CreateLoyaltyAccountParams) SetDefaults

func (o *CreateLoyaltyAccountParams) SetDefaults()

SetDefaults hydrates default values in the create loyalty account params (not the query body).

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

func (*CreateLoyaltyAccountParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create loyalty account params

func (*CreateLoyaltyAccountParams) SetTimeout

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

SetTimeout adds the timeout to the create loyalty account params

func (*CreateLoyaltyAccountParams) WithBody

WithBody adds the body to the create loyalty account params

func (*CreateLoyaltyAccountParams) WithContext

WithContext adds the context to the create loyalty account params

func (*CreateLoyaltyAccountParams) WithDefaults

WithDefaults hydrates default values in the create loyalty account params (not the query body).

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

func (*CreateLoyaltyAccountParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the create loyalty account params

func (*CreateLoyaltyAccountParams) WithTimeout

WithTimeout adds the timeout to the create loyalty account params

func (*CreateLoyaltyAccountParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreateLoyaltyAccountReader

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

CreateLoyaltyAccountReader is a Reader for the CreateLoyaltyAccount structure.

func (*CreateLoyaltyAccountReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CreateLoyaltyRewardOK

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

Success

func NewCreateLoyaltyRewardOK

func NewCreateLoyaltyRewardOK() *CreateLoyaltyRewardOK

NewCreateLoyaltyRewardOK creates a CreateLoyaltyRewardOK with default headers values

func (*CreateLoyaltyRewardOK) Error

func (o *CreateLoyaltyRewardOK) Error() string

func (*CreateLoyaltyRewardOK) GetPayload

type CreateLoyaltyRewardParams

type CreateLoyaltyRewardParams struct {

	/* Body.

	     An object containing the fields to POST for the request.

	See the corresponding object definition for field details.
	*/
	Body *models.CreateLoyaltyRewardRequest

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

CreateLoyaltyRewardParams contains all the parameters to send to the API endpoint

for the create loyalty reward operation.

Typically these are written to a http.Request.

func NewCreateLoyaltyRewardParams

func NewCreateLoyaltyRewardParams() *CreateLoyaltyRewardParams

NewCreateLoyaltyRewardParams creates a new CreateLoyaltyRewardParams 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 NewCreateLoyaltyRewardParamsWithContext

func NewCreateLoyaltyRewardParamsWithContext(ctx context.Context) *CreateLoyaltyRewardParams

NewCreateLoyaltyRewardParamsWithContext creates a new CreateLoyaltyRewardParams object with the ability to set a context for a request.

func NewCreateLoyaltyRewardParamsWithHTTPClient

func NewCreateLoyaltyRewardParamsWithHTTPClient(client *http.Client) *CreateLoyaltyRewardParams

NewCreateLoyaltyRewardParamsWithHTTPClient creates a new CreateLoyaltyRewardParams object with the ability to set a custom HTTPClient for a request.

func NewCreateLoyaltyRewardParamsWithTimeout

func NewCreateLoyaltyRewardParamsWithTimeout(timeout time.Duration) *CreateLoyaltyRewardParams

NewCreateLoyaltyRewardParamsWithTimeout creates a new CreateLoyaltyRewardParams object with the ability to set a timeout on a request.

func (*CreateLoyaltyRewardParams) SetBody

SetBody adds the body to the create loyalty reward params

func (*CreateLoyaltyRewardParams) SetContext

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

SetContext adds the context to the create loyalty reward params

func (*CreateLoyaltyRewardParams) SetDefaults

func (o *CreateLoyaltyRewardParams) SetDefaults()

SetDefaults hydrates default values in the create loyalty reward params (not the query body).

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

func (*CreateLoyaltyRewardParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create loyalty reward params

func (*CreateLoyaltyRewardParams) SetTimeout

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

SetTimeout adds the timeout to the create loyalty reward params

func (*CreateLoyaltyRewardParams) WithBody

WithBody adds the body to the create loyalty reward params

func (*CreateLoyaltyRewardParams) WithContext

WithContext adds the context to the create loyalty reward params

func (*CreateLoyaltyRewardParams) WithDefaults

WithDefaults hydrates default values in the create loyalty reward params (not the query body).

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

func (*CreateLoyaltyRewardParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create loyalty reward params

func (*CreateLoyaltyRewardParams) WithTimeout

WithTimeout adds the timeout to the create loyalty reward params

func (*CreateLoyaltyRewardParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreateLoyaltyRewardReader

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

CreateLoyaltyRewardReader is a Reader for the CreateLoyaltyReward structure.

func (*CreateLoyaltyRewardReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteLoyaltyRewardOK

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

Success

func NewDeleteLoyaltyRewardOK

func NewDeleteLoyaltyRewardOK() *DeleteLoyaltyRewardOK

NewDeleteLoyaltyRewardOK creates a DeleteLoyaltyRewardOK with default headers values

func (*DeleteLoyaltyRewardOK) Error

func (o *DeleteLoyaltyRewardOK) Error() string

func (*DeleteLoyaltyRewardOK) GetPayload

type DeleteLoyaltyRewardParams

type DeleteLoyaltyRewardParams struct {

	/* RewardID.

	   The ID of the `loyalty reward` to delete.
	*/
	RewardID string

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

DeleteLoyaltyRewardParams contains all the parameters to send to the API endpoint

for the delete loyalty reward operation.

Typically these are written to a http.Request.

func NewDeleteLoyaltyRewardParams

func NewDeleteLoyaltyRewardParams() *DeleteLoyaltyRewardParams

NewDeleteLoyaltyRewardParams creates a new DeleteLoyaltyRewardParams 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 NewDeleteLoyaltyRewardParamsWithContext

func NewDeleteLoyaltyRewardParamsWithContext(ctx context.Context) *DeleteLoyaltyRewardParams

NewDeleteLoyaltyRewardParamsWithContext creates a new DeleteLoyaltyRewardParams object with the ability to set a context for a request.

func NewDeleteLoyaltyRewardParamsWithHTTPClient

func NewDeleteLoyaltyRewardParamsWithHTTPClient(client *http.Client) *DeleteLoyaltyRewardParams

NewDeleteLoyaltyRewardParamsWithHTTPClient creates a new DeleteLoyaltyRewardParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteLoyaltyRewardParamsWithTimeout

func NewDeleteLoyaltyRewardParamsWithTimeout(timeout time.Duration) *DeleteLoyaltyRewardParams

NewDeleteLoyaltyRewardParamsWithTimeout creates a new DeleteLoyaltyRewardParams object with the ability to set a timeout on a request.

func (*DeleteLoyaltyRewardParams) SetContext

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

SetContext adds the context to the delete loyalty reward params

func (*DeleteLoyaltyRewardParams) SetDefaults

func (o *DeleteLoyaltyRewardParams) SetDefaults()

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

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

func (*DeleteLoyaltyRewardParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete loyalty reward params

func (*DeleteLoyaltyRewardParams) SetRewardID

func (o *DeleteLoyaltyRewardParams) SetRewardID(rewardID string)

SetRewardID adds the rewardId to the delete loyalty reward params

func (*DeleteLoyaltyRewardParams) SetTimeout

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

SetTimeout adds the timeout to the delete loyalty reward params

func (*DeleteLoyaltyRewardParams) WithContext

WithContext adds the context to the delete loyalty reward params

func (*DeleteLoyaltyRewardParams) WithDefaults

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

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

func (*DeleteLoyaltyRewardParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete loyalty reward params

func (*DeleteLoyaltyRewardParams) WithRewardID

func (o *DeleteLoyaltyRewardParams) WithRewardID(rewardID string) *DeleteLoyaltyRewardParams

WithRewardID adds the rewardID to the delete loyalty reward params

func (*DeleteLoyaltyRewardParams) WithTimeout

WithTimeout adds the timeout to the delete loyalty reward params

func (*DeleteLoyaltyRewardParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteLoyaltyRewardReader

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

DeleteLoyaltyRewardReader is a Reader for the DeleteLoyaltyReward structure.

func (*DeleteLoyaltyRewardReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListLoyaltyProgramsOK

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

Success

func NewListLoyaltyProgramsOK

func NewListLoyaltyProgramsOK() *ListLoyaltyProgramsOK

NewListLoyaltyProgramsOK creates a ListLoyaltyProgramsOK with default headers values

func (*ListLoyaltyProgramsOK) Error

func (o *ListLoyaltyProgramsOK) Error() string

func (*ListLoyaltyProgramsOK) GetPayload

type ListLoyaltyProgramsParams

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

ListLoyaltyProgramsParams contains all the parameters to send to the API endpoint

for the list loyalty programs operation.

Typically these are written to a http.Request.

func NewListLoyaltyProgramsParams

func NewListLoyaltyProgramsParams() *ListLoyaltyProgramsParams

NewListLoyaltyProgramsParams creates a new ListLoyaltyProgramsParams 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 NewListLoyaltyProgramsParamsWithContext

func NewListLoyaltyProgramsParamsWithContext(ctx context.Context) *ListLoyaltyProgramsParams

NewListLoyaltyProgramsParamsWithContext creates a new ListLoyaltyProgramsParams object with the ability to set a context for a request.

func NewListLoyaltyProgramsParamsWithHTTPClient

func NewListLoyaltyProgramsParamsWithHTTPClient(client *http.Client) *ListLoyaltyProgramsParams

NewListLoyaltyProgramsParamsWithHTTPClient creates a new ListLoyaltyProgramsParams object with the ability to set a custom HTTPClient for a request.

func NewListLoyaltyProgramsParamsWithTimeout

func NewListLoyaltyProgramsParamsWithTimeout(timeout time.Duration) *ListLoyaltyProgramsParams

NewListLoyaltyProgramsParamsWithTimeout creates a new ListLoyaltyProgramsParams object with the ability to set a timeout on a request.

func (*ListLoyaltyProgramsParams) SetContext

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

SetContext adds the context to the list loyalty programs params

func (*ListLoyaltyProgramsParams) SetDefaults

func (o *ListLoyaltyProgramsParams) SetDefaults()

SetDefaults hydrates default values in the list loyalty programs params (not the query body).

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

func (*ListLoyaltyProgramsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list loyalty programs params

func (*ListLoyaltyProgramsParams) SetTimeout

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

SetTimeout adds the timeout to the list loyalty programs params

func (*ListLoyaltyProgramsParams) WithContext

WithContext adds the context to the list loyalty programs params

func (*ListLoyaltyProgramsParams) WithDefaults

WithDefaults hydrates default values in the list loyalty programs params (not the query body).

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

func (*ListLoyaltyProgramsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list loyalty programs params

func (*ListLoyaltyProgramsParams) WithTimeout

WithTimeout adds the timeout to the list loyalty programs params

func (*ListLoyaltyProgramsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ListLoyaltyProgramsReader

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

ListLoyaltyProgramsReader is a Reader for the ListLoyaltyPrograms structure.

func (*ListLoyaltyProgramsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type RedeemLoyaltyRewardOK

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

Success

func NewRedeemLoyaltyRewardOK

func NewRedeemLoyaltyRewardOK() *RedeemLoyaltyRewardOK

NewRedeemLoyaltyRewardOK creates a RedeemLoyaltyRewardOK with default headers values

func (*RedeemLoyaltyRewardOK) Error

func (o *RedeemLoyaltyRewardOK) Error() string

func (*RedeemLoyaltyRewardOK) GetPayload

type RedeemLoyaltyRewardParams

type RedeemLoyaltyRewardParams struct {

	/* Body.

	     An object containing the fields to POST for the request.

	See the corresponding object definition for field details.
	*/
	Body *models.RedeemLoyaltyRewardRequest

	/* RewardID.

	   The ID of the `loyalty reward` to redeem.
	*/
	RewardID string

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

RedeemLoyaltyRewardParams contains all the parameters to send to the API endpoint

for the redeem loyalty reward operation.

Typically these are written to a http.Request.

func NewRedeemLoyaltyRewardParams

func NewRedeemLoyaltyRewardParams() *RedeemLoyaltyRewardParams

NewRedeemLoyaltyRewardParams creates a new RedeemLoyaltyRewardParams 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 NewRedeemLoyaltyRewardParamsWithContext

func NewRedeemLoyaltyRewardParamsWithContext(ctx context.Context) *RedeemLoyaltyRewardParams

NewRedeemLoyaltyRewardParamsWithContext creates a new RedeemLoyaltyRewardParams object with the ability to set a context for a request.

func NewRedeemLoyaltyRewardParamsWithHTTPClient

func NewRedeemLoyaltyRewardParamsWithHTTPClient(client *http.Client) *RedeemLoyaltyRewardParams

NewRedeemLoyaltyRewardParamsWithHTTPClient creates a new RedeemLoyaltyRewardParams object with the ability to set a custom HTTPClient for a request.

func NewRedeemLoyaltyRewardParamsWithTimeout

func NewRedeemLoyaltyRewardParamsWithTimeout(timeout time.Duration) *RedeemLoyaltyRewardParams

NewRedeemLoyaltyRewardParamsWithTimeout creates a new RedeemLoyaltyRewardParams object with the ability to set a timeout on a request.

func (*RedeemLoyaltyRewardParams) SetBody

SetBody adds the body to the redeem loyalty reward params

func (*RedeemLoyaltyRewardParams) SetContext

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

SetContext adds the context to the redeem loyalty reward params

func (*RedeemLoyaltyRewardParams) SetDefaults

func (o *RedeemLoyaltyRewardParams) SetDefaults()

SetDefaults hydrates default values in the redeem loyalty reward params (not the query body).

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

func (*RedeemLoyaltyRewardParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the redeem loyalty reward params

func (*RedeemLoyaltyRewardParams) SetRewardID

func (o *RedeemLoyaltyRewardParams) SetRewardID(rewardID string)

SetRewardID adds the rewardId to the redeem loyalty reward params

func (*RedeemLoyaltyRewardParams) SetTimeout

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

SetTimeout adds the timeout to the redeem loyalty reward params

func (*RedeemLoyaltyRewardParams) WithBody

WithBody adds the body to the redeem loyalty reward params

func (*RedeemLoyaltyRewardParams) WithContext

WithContext adds the context to the redeem loyalty reward params

func (*RedeemLoyaltyRewardParams) WithDefaults

WithDefaults hydrates default values in the redeem loyalty reward params (not the query body).

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

func (*RedeemLoyaltyRewardParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the redeem loyalty reward params

func (*RedeemLoyaltyRewardParams) WithRewardID

func (o *RedeemLoyaltyRewardParams) WithRewardID(rewardID string) *RedeemLoyaltyRewardParams

WithRewardID adds the rewardID to the redeem loyalty reward params

func (*RedeemLoyaltyRewardParams) WithTimeout

WithTimeout adds the timeout to the redeem loyalty reward params

func (*RedeemLoyaltyRewardParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type RedeemLoyaltyRewardReader

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

RedeemLoyaltyRewardReader is a Reader for the RedeemLoyaltyReward structure.

func (*RedeemLoyaltyRewardReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type RetrieveLoyaltyAccountOK

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

Success

func NewRetrieveLoyaltyAccountOK

func NewRetrieveLoyaltyAccountOK() *RetrieveLoyaltyAccountOK

NewRetrieveLoyaltyAccountOK creates a RetrieveLoyaltyAccountOK with default headers values

func (*RetrieveLoyaltyAccountOK) Error

func (o *RetrieveLoyaltyAccountOK) Error() string

func (*RetrieveLoyaltyAccountOK) GetPayload

type RetrieveLoyaltyAccountParams

type RetrieveLoyaltyAccountParams struct {

	/* AccountID.

	   The ID of the `loyalty account` to retrieve.
	*/
	AccountID string

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

RetrieveLoyaltyAccountParams contains all the parameters to send to the API endpoint

for the retrieve loyalty account operation.

Typically these are written to a http.Request.

func NewRetrieveLoyaltyAccountParams

func NewRetrieveLoyaltyAccountParams() *RetrieveLoyaltyAccountParams

NewRetrieveLoyaltyAccountParams creates a new RetrieveLoyaltyAccountParams 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 NewRetrieveLoyaltyAccountParamsWithContext

func NewRetrieveLoyaltyAccountParamsWithContext(ctx context.Context) *RetrieveLoyaltyAccountParams

NewRetrieveLoyaltyAccountParamsWithContext creates a new RetrieveLoyaltyAccountParams object with the ability to set a context for a request.

func NewRetrieveLoyaltyAccountParamsWithHTTPClient

func NewRetrieveLoyaltyAccountParamsWithHTTPClient(client *http.Client) *RetrieveLoyaltyAccountParams

NewRetrieveLoyaltyAccountParamsWithHTTPClient creates a new RetrieveLoyaltyAccountParams object with the ability to set a custom HTTPClient for a request.

func NewRetrieveLoyaltyAccountParamsWithTimeout

func NewRetrieveLoyaltyAccountParamsWithTimeout(timeout time.Duration) *RetrieveLoyaltyAccountParams

NewRetrieveLoyaltyAccountParamsWithTimeout creates a new RetrieveLoyaltyAccountParams object with the ability to set a timeout on a request.

func (*RetrieveLoyaltyAccountParams) SetAccountID

func (o *RetrieveLoyaltyAccountParams) SetAccountID(accountID string)

SetAccountID adds the accountId to the retrieve loyalty account params

func (*RetrieveLoyaltyAccountParams) SetContext

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

SetContext adds the context to the retrieve loyalty account params

func (*RetrieveLoyaltyAccountParams) SetDefaults

func (o *RetrieveLoyaltyAccountParams) SetDefaults()

SetDefaults hydrates default values in the retrieve loyalty account params (not the query body).

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

func (*RetrieveLoyaltyAccountParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the retrieve loyalty account params

func (*RetrieveLoyaltyAccountParams) SetTimeout

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

SetTimeout adds the timeout to the retrieve loyalty account params

func (*RetrieveLoyaltyAccountParams) WithAccountID

WithAccountID adds the accountID to the retrieve loyalty account params

func (*RetrieveLoyaltyAccountParams) WithContext

WithContext adds the context to the retrieve loyalty account params

func (*RetrieveLoyaltyAccountParams) WithDefaults

WithDefaults hydrates default values in the retrieve loyalty account params (not the query body).

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

func (*RetrieveLoyaltyAccountParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the retrieve loyalty account params

func (*RetrieveLoyaltyAccountParams) WithTimeout

WithTimeout adds the timeout to the retrieve loyalty account params

func (*RetrieveLoyaltyAccountParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type RetrieveLoyaltyAccountReader

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

RetrieveLoyaltyAccountReader is a Reader for the RetrieveLoyaltyAccount structure.

func (*RetrieveLoyaltyAccountReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type RetrieveLoyaltyRewardOK

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

Success

func NewRetrieveLoyaltyRewardOK

func NewRetrieveLoyaltyRewardOK() *RetrieveLoyaltyRewardOK

NewRetrieveLoyaltyRewardOK creates a RetrieveLoyaltyRewardOK with default headers values

func (*RetrieveLoyaltyRewardOK) Error

func (o *RetrieveLoyaltyRewardOK) Error() string

func (*RetrieveLoyaltyRewardOK) GetPayload

type RetrieveLoyaltyRewardParams

type RetrieveLoyaltyRewardParams struct {

	/* RewardID.

	   The ID of the `loyalty reward` to retrieve.
	*/
	RewardID string

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

RetrieveLoyaltyRewardParams contains all the parameters to send to the API endpoint

for the retrieve loyalty reward operation.

Typically these are written to a http.Request.

func NewRetrieveLoyaltyRewardParams

func NewRetrieveLoyaltyRewardParams() *RetrieveLoyaltyRewardParams

NewRetrieveLoyaltyRewardParams creates a new RetrieveLoyaltyRewardParams 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 NewRetrieveLoyaltyRewardParamsWithContext

func NewRetrieveLoyaltyRewardParamsWithContext(ctx context.Context) *RetrieveLoyaltyRewardParams

NewRetrieveLoyaltyRewardParamsWithContext creates a new RetrieveLoyaltyRewardParams object with the ability to set a context for a request.

func NewRetrieveLoyaltyRewardParamsWithHTTPClient

func NewRetrieveLoyaltyRewardParamsWithHTTPClient(client *http.Client) *RetrieveLoyaltyRewardParams

NewRetrieveLoyaltyRewardParamsWithHTTPClient creates a new RetrieveLoyaltyRewardParams object with the ability to set a custom HTTPClient for a request.

func NewRetrieveLoyaltyRewardParamsWithTimeout

func NewRetrieveLoyaltyRewardParamsWithTimeout(timeout time.Duration) *RetrieveLoyaltyRewardParams

NewRetrieveLoyaltyRewardParamsWithTimeout creates a new RetrieveLoyaltyRewardParams object with the ability to set a timeout on a request.

func (*RetrieveLoyaltyRewardParams) SetContext

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

SetContext adds the context to the retrieve loyalty reward params

func (*RetrieveLoyaltyRewardParams) SetDefaults

func (o *RetrieveLoyaltyRewardParams) SetDefaults()

SetDefaults hydrates default values in the retrieve loyalty reward params (not the query body).

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

func (*RetrieveLoyaltyRewardParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the retrieve loyalty reward params

func (*RetrieveLoyaltyRewardParams) SetRewardID

func (o *RetrieveLoyaltyRewardParams) SetRewardID(rewardID string)

SetRewardID adds the rewardId to the retrieve loyalty reward params

func (*RetrieveLoyaltyRewardParams) SetTimeout

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

SetTimeout adds the timeout to the retrieve loyalty reward params

func (*RetrieveLoyaltyRewardParams) WithContext

WithContext adds the context to the retrieve loyalty reward params

func (*RetrieveLoyaltyRewardParams) WithDefaults

WithDefaults hydrates default values in the retrieve loyalty reward params (not the query body).

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

func (*RetrieveLoyaltyRewardParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the retrieve loyalty reward params

func (*RetrieveLoyaltyRewardParams) WithRewardID

WithRewardID adds the rewardID to the retrieve loyalty reward params

func (*RetrieveLoyaltyRewardParams) WithTimeout

WithTimeout adds the timeout to the retrieve loyalty reward params

func (*RetrieveLoyaltyRewardParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type RetrieveLoyaltyRewardReader

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

RetrieveLoyaltyRewardReader is a Reader for the RetrieveLoyaltyReward structure.

func (*RetrieveLoyaltyRewardReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type SearchLoyaltyAccountsOK

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

Success

func NewSearchLoyaltyAccountsOK

func NewSearchLoyaltyAccountsOK() *SearchLoyaltyAccountsOK

NewSearchLoyaltyAccountsOK creates a SearchLoyaltyAccountsOK with default headers values

func (*SearchLoyaltyAccountsOK) Error

func (o *SearchLoyaltyAccountsOK) Error() string

func (*SearchLoyaltyAccountsOK) GetPayload

type SearchLoyaltyAccountsParams

type SearchLoyaltyAccountsParams struct {

	/* Body.

	     An object containing the fields to POST for the request.

	See the corresponding object definition for field details.
	*/
	Body *models.SearchLoyaltyAccountsRequest

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

SearchLoyaltyAccountsParams contains all the parameters to send to the API endpoint

for the search loyalty accounts operation.

Typically these are written to a http.Request.

func NewSearchLoyaltyAccountsParams

func NewSearchLoyaltyAccountsParams() *SearchLoyaltyAccountsParams

NewSearchLoyaltyAccountsParams creates a new SearchLoyaltyAccountsParams 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 NewSearchLoyaltyAccountsParamsWithContext

func NewSearchLoyaltyAccountsParamsWithContext(ctx context.Context) *SearchLoyaltyAccountsParams

NewSearchLoyaltyAccountsParamsWithContext creates a new SearchLoyaltyAccountsParams object with the ability to set a context for a request.

func NewSearchLoyaltyAccountsParamsWithHTTPClient

func NewSearchLoyaltyAccountsParamsWithHTTPClient(client *http.Client) *SearchLoyaltyAccountsParams

NewSearchLoyaltyAccountsParamsWithHTTPClient creates a new SearchLoyaltyAccountsParams object with the ability to set a custom HTTPClient for a request.

func NewSearchLoyaltyAccountsParamsWithTimeout

func NewSearchLoyaltyAccountsParamsWithTimeout(timeout time.Duration) *SearchLoyaltyAccountsParams

NewSearchLoyaltyAccountsParamsWithTimeout creates a new SearchLoyaltyAccountsParams object with the ability to set a timeout on a request.

func (*SearchLoyaltyAccountsParams) SetBody

SetBody adds the body to the search loyalty accounts params

func (*SearchLoyaltyAccountsParams) SetContext

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

SetContext adds the context to the search loyalty accounts params

func (*SearchLoyaltyAccountsParams) SetDefaults

func (o *SearchLoyaltyAccountsParams) SetDefaults()

SetDefaults hydrates default values in the search loyalty accounts params (not the query body).

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

func (*SearchLoyaltyAccountsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the search loyalty accounts params

func (*SearchLoyaltyAccountsParams) SetTimeout

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

SetTimeout adds the timeout to the search loyalty accounts params

func (*SearchLoyaltyAccountsParams) WithBody

WithBody adds the body to the search loyalty accounts params

func (*SearchLoyaltyAccountsParams) WithContext

WithContext adds the context to the search loyalty accounts params

func (*SearchLoyaltyAccountsParams) WithDefaults

WithDefaults hydrates default values in the search loyalty accounts params (not the query body).

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

func (*SearchLoyaltyAccountsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the search loyalty accounts params

func (*SearchLoyaltyAccountsParams) WithTimeout

WithTimeout adds the timeout to the search loyalty accounts params

func (*SearchLoyaltyAccountsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type SearchLoyaltyAccountsReader

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

SearchLoyaltyAccountsReader is a Reader for the SearchLoyaltyAccounts structure.

func (*SearchLoyaltyAccountsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type SearchLoyaltyEventsOK

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

Success

func NewSearchLoyaltyEventsOK

func NewSearchLoyaltyEventsOK() *SearchLoyaltyEventsOK

NewSearchLoyaltyEventsOK creates a SearchLoyaltyEventsOK with default headers values

func (*SearchLoyaltyEventsOK) Error

func (o *SearchLoyaltyEventsOK) Error() string

func (*SearchLoyaltyEventsOK) GetPayload

type SearchLoyaltyEventsParams

type SearchLoyaltyEventsParams struct {

	/* Body.

	     An object containing the fields to POST for the request.

	See the corresponding object definition for field details.
	*/
	Body *models.SearchLoyaltyEventsRequest

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

SearchLoyaltyEventsParams contains all the parameters to send to the API endpoint

for the search loyalty events operation.

Typically these are written to a http.Request.

func NewSearchLoyaltyEventsParams

func NewSearchLoyaltyEventsParams() *SearchLoyaltyEventsParams

NewSearchLoyaltyEventsParams creates a new SearchLoyaltyEventsParams 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 NewSearchLoyaltyEventsParamsWithContext

func NewSearchLoyaltyEventsParamsWithContext(ctx context.Context) *SearchLoyaltyEventsParams

NewSearchLoyaltyEventsParamsWithContext creates a new SearchLoyaltyEventsParams object with the ability to set a context for a request.

func NewSearchLoyaltyEventsParamsWithHTTPClient

func NewSearchLoyaltyEventsParamsWithHTTPClient(client *http.Client) *SearchLoyaltyEventsParams

NewSearchLoyaltyEventsParamsWithHTTPClient creates a new SearchLoyaltyEventsParams object with the ability to set a custom HTTPClient for a request.

func NewSearchLoyaltyEventsParamsWithTimeout

func NewSearchLoyaltyEventsParamsWithTimeout(timeout time.Duration) *SearchLoyaltyEventsParams

NewSearchLoyaltyEventsParamsWithTimeout creates a new SearchLoyaltyEventsParams object with the ability to set a timeout on a request.

func (*SearchLoyaltyEventsParams) SetBody

SetBody adds the body to the search loyalty events params

func (*SearchLoyaltyEventsParams) SetContext

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

SetContext adds the context to the search loyalty events params

func (*SearchLoyaltyEventsParams) SetDefaults

func (o *SearchLoyaltyEventsParams) SetDefaults()

SetDefaults hydrates default values in the search loyalty events params (not the query body).

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

func (*SearchLoyaltyEventsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the search loyalty events params

func (*SearchLoyaltyEventsParams) SetTimeout

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

SetTimeout adds the timeout to the search loyalty events params

func (*SearchLoyaltyEventsParams) WithBody

WithBody adds the body to the search loyalty events params

func (*SearchLoyaltyEventsParams) WithContext

WithContext adds the context to the search loyalty events params

func (*SearchLoyaltyEventsParams) WithDefaults

WithDefaults hydrates default values in the search loyalty events params (not the query body).

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

func (*SearchLoyaltyEventsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the search loyalty events params

func (*SearchLoyaltyEventsParams) WithTimeout

WithTimeout adds the timeout to the search loyalty events params

func (*SearchLoyaltyEventsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type SearchLoyaltyEventsReader

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

SearchLoyaltyEventsReader is a Reader for the SearchLoyaltyEvents structure.

func (*SearchLoyaltyEventsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type SearchLoyaltyRewardsOK

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

Success

func NewSearchLoyaltyRewardsOK

func NewSearchLoyaltyRewardsOK() *SearchLoyaltyRewardsOK

NewSearchLoyaltyRewardsOK creates a SearchLoyaltyRewardsOK with default headers values

func (*SearchLoyaltyRewardsOK) Error

func (o *SearchLoyaltyRewardsOK) Error() string

func (*SearchLoyaltyRewardsOK) GetPayload

type SearchLoyaltyRewardsParams

type SearchLoyaltyRewardsParams struct {

	/* Body.

	     An object containing the fields to POST for the request.

	See the corresponding object definition for field details.
	*/
	Body *models.SearchLoyaltyRewardsRequest

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

SearchLoyaltyRewardsParams contains all the parameters to send to the API endpoint

for the search loyalty rewards operation.

Typically these are written to a http.Request.

func NewSearchLoyaltyRewardsParams

func NewSearchLoyaltyRewardsParams() *SearchLoyaltyRewardsParams

NewSearchLoyaltyRewardsParams creates a new SearchLoyaltyRewardsParams 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 NewSearchLoyaltyRewardsParamsWithContext

func NewSearchLoyaltyRewardsParamsWithContext(ctx context.Context) *SearchLoyaltyRewardsParams

NewSearchLoyaltyRewardsParamsWithContext creates a new SearchLoyaltyRewardsParams object with the ability to set a context for a request.

func NewSearchLoyaltyRewardsParamsWithHTTPClient

func NewSearchLoyaltyRewardsParamsWithHTTPClient(client *http.Client) *SearchLoyaltyRewardsParams

NewSearchLoyaltyRewardsParamsWithHTTPClient creates a new SearchLoyaltyRewardsParams object with the ability to set a custom HTTPClient for a request.

func NewSearchLoyaltyRewardsParamsWithTimeout

func NewSearchLoyaltyRewardsParamsWithTimeout(timeout time.Duration) *SearchLoyaltyRewardsParams

NewSearchLoyaltyRewardsParamsWithTimeout creates a new SearchLoyaltyRewardsParams object with the ability to set a timeout on a request.

func (*SearchLoyaltyRewardsParams) SetBody

SetBody adds the body to the search loyalty rewards params

func (*SearchLoyaltyRewardsParams) SetContext

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

SetContext adds the context to the search loyalty rewards params

func (*SearchLoyaltyRewardsParams) SetDefaults

func (o *SearchLoyaltyRewardsParams) SetDefaults()

SetDefaults hydrates default values in the search loyalty rewards params (not the query body).

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

func (*SearchLoyaltyRewardsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the search loyalty rewards params

func (*SearchLoyaltyRewardsParams) SetTimeout

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

SetTimeout adds the timeout to the search loyalty rewards params

func (*SearchLoyaltyRewardsParams) WithBody

WithBody adds the body to the search loyalty rewards params

func (*SearchLoyaltyRewardsParams) WithContext

WithContext adds the context to the search loyalty rewards params

func (*SearchLoyaltyRewardsParams) WithDefaults

WithDefaults hydrates default values in the search loyalty rewards params (not the query body).

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

func (*SearchLoyaltyRewardsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the search loyalty rewards params

func (*SearchLoyaltyRewardsParams) WithTimeout

WithTimeout adds the timeout to the search loyalty rewards params

func (*SearchLoyaltyRewardsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type SearchLoyaltyRewardsReader

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

SearchLoyaltyRewardsReader is a Reader for the SearchLoyaltyRewards structure.

func (*SearchLoyaltyRewardsReader) ReadResponse

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