Documentation
¶
Index ¶
- type AccumulateLoyaltyPointsOK
- type AccumulateLoyaltyPointsParams
- func NewAccumulateLoyaltyPointsParams() *AccumulateLoyaltyPointsParams
- func NewAccumulateLoyaltyPointsParamsWithContext(ctx context.Context) *AccumulateLoyaltyPointsParams
- func NewAccumulateLoyaltyPointsParamsWithHTTPClient(client *http.Client) *AccumulateLoyaltyPointsParams
- func NewAccumulateLoyaltyPointsParamsWithTimeout(timeout time.Duration) *AccumulateLoyaltyPointsParams
- func (o *AccumulateLoyaltyPointsParams) SetAccountID(accountID string)
- func (o *AccumulateLoyaltyPointsParams) SetBody(body *models.AccumulateLoyaltyPointsRequest)
- func (o *AccumulateLoyaltyPointsParams) SetContext(ctx context.Context)
- func (o *AccumulateLoyaltyPointsParams) SetDefaults()
- func (o *AccumulateLoyaltyPointsParams) SetHTTPClient(client *http.Client)
- func (o *AccumulateLoyaltyPointsParams) SetTimeout(timeout time.Duration)
- func (o *AccumulateLoyaltyPointsParams) WithAccountID(accountID string) *AccumulateLoyaltyPointsParams
- func (o *AccumulateLoyaltyPointsParams) WithBody(body *models.AccumulateLoyaltyPointsRequest) *AccumulateLoyaltyPointsParams
- func (o *AccumulateLoyaltyPointsParams) WithContext(ctx context.Context) *AccumulateLoyaltyPointsParams
- func (o *AccumulateLoyaltyPointsParams) WithDefaults() *AccumulateLoyaltyPointsParams
- func (o *AccumulateLoyaltyPointsParams) WithHTTPClient(client *http.Client) *AccumulateLoyaltyPointsParams
- func (o *AccumulateLoyaltyPointsParams) WithTimeout(timeout time.Duration) *AccumulateLoyaltyPointsParams
- func (o *AccumulateLoyaltyPointsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type AccumulateLoyaltyPointsReader
- type AdjustLoyaltyPointsOK
- type AdjustLoyaltyPointsParams
- func NewAdjustLoyaltyPointsParams() *AdjustLoyaltyPointsParams
- func NewAdjustLoyaltyPointsParamsWithContext(ctx context.Context) *AdjustLoyaltyPointsParams
- func NewAdjustLoyaltyPointsParamsWithHTTPClient(client *http.Client) *AdjustLoyaltyPointsParams
- func NewAdjustLoyaltyPointsParamsWithTimeout(timeout time.Duration) *AdjustLoyaltyPointsParams
- func (o *AdjustLoyaltyPointsParams) SetAccountID(accountID string)
- func (o *AdjustLoyaltyPointsParams) SetBody(body *models.AdjustLoyaltyPointsRequest)
- func (o *AdjustLoyaltyPointsParams) SetContext(ctx context.Context)
- func (o *AdjustLoyaltyPointsParams) SetDefaults()
- func (o *AdjustLoyaltyPointsParams) SetHTTPClient(client *http.Client)
- func (o *AdjustLoyaltyPointsParams) SetTimeout(timeout time.Duration)
- func (o *AdjustLoyaltyPointsParams) WithAccountID(accountID string) *AdjustLoyaltyPointsParams
- func (o *AdjustLoyaltyPointsParams) WithBody(body *models.AdjustLoyaltyPointsRequest) *AdjustLoyaltyPointsParams
- func (o *AdjustLoyaltyPointsParams) WithContext(ctx context.Context) *AdjustLoyaltyPointsParams
- func (o *AdjustLoyaltyPointsParams) WithDefaults() *AdjustLoyaltyPointsParams
- func (o *AdjustLoyaltyPointsParams) WithHTTPClient(client *http.Client) *AdjustLoyaltyPointsParams
- func (o *AdjustLoyaltyPointsParams) WithTimeout(timeout time.Duration) *AdjustLoyaltyPointsParams
- func (o *AdjustLoyaltyPointsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type AdjustLoyaltyPointsReader
- type CalculateLoyaltyPointsOK
- type CalculateLoyaltyPointsParams
- func NewCalculateLoyaltyPointsParams() *CalculateLoyaltyPointsParams
- func NewCalculateLoyaltyPointsParamsWithContext(ctx context.Context) *CalculateLoyaltyPointsParams
- func NewCalculateLoyaltyPointsParamsWithHTTPClient(client *http.Client) *CalculateLoyaltyPointsParams
- func NewCalculateLoyaltyPointsParamsWithTimeout(timeout time.Duration) *CalculateLoyaltyPointsParams
- func (o *CalculateLoyaltyPointsParams) SetBody(body *models.CalculateLoyaltyPointsRequest)
- func (o *CalculateLoyaltyPointsParams) SetContext(ctx context.Context)
- func (o *CalculateLoyaltyPointsParams) SetDefaults()
- func (o *CalculateLoyaltyPointsParams) SetHTTPClient(client *http.Client)
- func (o *CalculateLoyaltyPointsParams) SetProgramID(programID string)
- func (o *CalculateLoyaltyPointsParams) SetTimeout(timeout time.Duration)
- func (o *CalculateLoyaltyPointsParams) WithBody(body *models.CalculateLoyaltyPointsRequest) *CalculateLoyaltyPointsParams
- func (o *CalculateLoyaltyPointsParams) WithContext(ctx context.Context) *CalculateLoyaltyPointsParams
- func (o *CalculateLoyaltyPointsParams) WithDefaults() *CalculateLoyaltyPointsParams
- func (o *CalculateLoyaltyPointsParams) WithHTTPClient(client *http.Client) *CalculateLoyaltyPointsParams
- func (o *CalculateLoyaltyPointsParams) WithProgramID(programID string) *CalculateLoyaltyPointsParams
- func (o *CalculateLoyaltyPointsParams) WithTimeout(timeout time.Duration) *CalculateLoyaltyPointsParams
- func (o *CalculateLoyaltyPointsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CalculateLoyaltyPointsReader
- type Client
- func (a *Client) AccumulateLoyaltyPoints(params *AccumulateLoyaltyPointsParams, authInfo runtime.ClientAuthInfoWriter, ...) (*AccumulateLoyaltyPointsOK, error)
- func (a *Client) AdjustLoyaltyPoints(params *AdjustLoyaltyPointsParams, authInfo runtime.ClientAuthInfoWriter, ...) (*AdjustLoyaltyPointsOK, error)
- func (a *Client) CalculateLoyaltyPoints(params *CalculateLoyaltyPointsParams, authInfo runtime.ClientAuthInfoWriter, ...) (*CalculateLoyaltyPointsOK, error)
- func (a *Client) CreateLoyaltyAccount(params *CreateLoyaltyAccountParams, authInfo runtime.ClientAuthInfoWriter, ...) (*CreateLoyaltyAccountOK, error)
- func (a *Client) CreateLoyaltyReward(params *CreateLoyaltyRewardParams, authInfo runtime.ClientAuthInfoWriter, ...) (*CreateLoyaltyRewardOK, error)
- func (a *Client) DeleteLoyaltyReward(params *DeleteLoyaltyRewardParams, authInfo runtime.ClientAuthInfoWriter, ...) (*DeleteLoyaltyRewardOK, error)
- func (a *Client) ListLoyaltyPrograms(params *ListLoyaltyProgramsParams, authInfo runtime.ClientAuthInfoWriter, ...) (*ListLoyaltyProgramsOK, error)
- func (a *Client) RedeemLoyaltyReward(params *RedeemLoyaltyRewardParams, authInfo runtime.ClientAuthInfoWriter, ...) (*RedeemLoyaltyRewardOK, error)
- func (a *Client) RetrieveLoyaltyAccount(params *RetrieveLoyaltyAccountParams, authInfo runtime.ClientAuthInfoWriter, ...) (*RetrieveLoyaltyAccountOK, error)
- func (a *Client) RetrieveLoyaltyReward(params *RetrieveLoyaltyRewardParams, authInfo runtime.ClientAuthInfoWriter, ...) (*RetrieveLoyaltyRewardOK, error)
- func (a *Client) SearchLoyaltyAccounts(params *SearchLoyaltyAccountsParams, authInfo runtime.ClientAuthInfoWriter, ...) (*SearchLoyaltyAccountsOK, error)
- func (a *Client) SearchLoyaltyEvents(params *SearchLoyaltyEventsParams, authInfo runtime.ClientAuthInfoWriter, ...) (*SearchLoyaltyEventsOK, error)
- func (a *Client) SearchLoyaltyRewards(params *SearchLoyaltyRewardsParams, authInfo runtime.ClientAuthInfoWriter, ...) (*SearchLoyaltyRewardsOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type CreateLoyaltyAccountOK
- type CreateLoyaltyAccountParams
- func NewCreateLoyaltyAccountParams() *CreateLoyaltyAccountParams
- func NewCreateLoyaltyAccountParamsWithContext(ctx context.Context) *CreateLoyaltyAccountParams
- func NewCreateLoyaltyAccountParamsWithHTTPClient(client *http.Client) *CreateLoyaltyAccountParams
- func NewCreateLoyaltyAccountParamsWithTimeout(timeout time.Duration) *CreateLoyaltyAccountParams
- func (o *CreateLoyaltyAccountParams) SetBody(body *models.CreateLoyaltyAccountRequest)
- func (o *CreateLoyaltyAccountParams) SetContext(ctx context.Context)
- func (o *CreateLoyaltyAccountParams) SetDefaults()
- func (o *CreateLoyaltyAccountParams) SetHTTPClient(client *http.Client)
- func (o *CreateLoyaltyAccountParams) SetTimeout(timeout time.Duration)
- func (o *CreateLoyaltyAccountParams) WithBody(body *models.CreateLoyaltyAccountRequest) *CreateLoyaltyAccountParams
- func (o *CreateLoyaltyAccountParams) WithContext(ctx context.Context) *CreateLoyaltyAccountParams
- func (o *CreateLoyaltyAccountParams) WithDefaults() *CreateLoyaltyAccountParams
- func (o *CreateLoyaltyAccountParams) WithHTTPClient(client *http.Client) *CreateLoyaltyAccountParams
- func (o *CreateLoyaltyAccountParams) WithTimeout(timeout time.Duration) *CreateLoyaltyAccountParams
- func (o *CreateLoyaltyAccountParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateLoyaltyAccountReader
- type CreateLoyaltyRewardOK
- type CreateLoyaltyRewardParams
- func NewCreateLoyaltyRewardParams() *CreateLoyaltyRewardParams
- func NewCreateLoyaltyRewardParamsWithContext(ctx context.Context) *CreateLoyaltyRewardParams
- func NewCreateLoyaltyRewardParamsWithHTTPClient(client *http.Client) *CreateLoyaltyRewardParams
- func NewCreateLoyaltyRewardParamsWithTimeout(timeout time.Duration) *CreateLoyaltyRewardParams
- func (o *CreateLoyaltyRewardParams) SetBody(body *models.CreateLoyaltyRewardRequest)
- func (o *CreateLoyaltyRewardParams) SetContext(ctx context.Context)
- func (o *CreateLoyaltyRewardParams) SetDefaults()
- func (o *CreateLoyaltyRewardParams) SetHTTPClient(client *http.Client)
- func (o *CreateLoyaltyRewardParams) SetTimeout(timeout time.Duration)
- func (o *CreateLoyaltyRewardParams) WithBody(body *models.CreateLoyaltyRewardRequest) *CreateLoyaltyRewardParams
- func (o *CreateLoyaltyRewardParams) WithContext(ctx context.Context) *CreateLoyaltyRewardParams
- func (o *CreateLoyaltyRewardParams) WithDefaults() *CreateLoyaltyRewardParams
- func (o *CreateLoyaltyRewardParams) WithHTTPClient(client *http.Client) *CreateLoyaltyRewardParams
- func (o *CreateLoyaltyRewardParams) WithTimeout(timeout time.Duration) *CreateLoyaltyRewardParams
- func (o *CreateLoyaltyRewardParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateLoyaltyRewardReader
- type DeleteLoyaltyRewardOK
- type DeleteLoyaltyRewardParams
- func NewDeleteLoyaltyRewardParams() *DeleteLoyaltyRewardParams
- func NewDeleteLoyaltyRewardParamsWithContext(ctx context.Context) *DeleteLoyaltyRewardParams
- func NewDeleteLoyaltyRewardParamsWithHTTPClient(client *http.Client) *DeleteLoyaltyRewardParams
- func NewDeleteLoyaltyRewardParamsWithTimeout(timeout time.Duration) *DeleteLoyaltyRewardParams
- func (o *DeleteLoyaltyRewardParams) SetContext(ctx context.Context)
- func (o *DeleteLoyaltyRewardParams) SetDefaults()
- func (o *DeleteLoyaltyRewardParams) SetHTTPClient(client *http.Client)
- func (o *DeleteLoyaltyRewardParams) SetRewardID(rewardID string)
- func (o *DeleteLoyaltyRewardParams) SetTimeout(timeout time.Duration)
- func (o *DeleteLoyaltyRewardParams) WithContext(ctx context.Context) *DeleteLoyaltyRewardParams
- func (o *DeleteLoyaltyRewardParams) WithDefaults() *DeleteLoyaltyRewardParams
- func (o *DeleteLoyaltyRewardParams) WithHTTPClient(client *http.Client) *DeleteLoyaltyRewardParams
- func (o *DeleteLoyaltyRewardParams) WithRewardID(rewardID string) *DeleteLoyaltyRewardParams
- func (o *DeleteLoyaltyRewardParams) WithTimeout(timeout time.Duration) *DeleteLoyaltyRewardParams
- func (o *DeleteLoyaltyRewardParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteLoyaltyRewardReader
- type ListLoyaltyProgramsOK
- type ListLoyaltyProgramsParams
- func NewListLoyaltyProgramsParams() *ListLoyaltyProgramsParams
- func NewListLoyaltyProgramsParamsWithContext(ctx context.Context) *ListLoyaltyProgramsParams
- func NewListLoyaltyProgramsParamsWithHTTPClient(client *http.Client) *ListLoyaltyProgramsParams
- func NewListLoyaltyProgramsParamsWithTimeout(timeout time.Duration) *ListLoyaltyProgramsParams
- func (o *ListLoyaltyProgramsParams) SetContext(ctx context.Context)
- func (o *ListLoyaltyProgramsParams) SetDefaults()
- func (o *ListLoyaltyProgramsParams) SetHTTPClient(client *http.Client)
- func (o *ListLoyaltyProgramsParams) SetTimeout(timeout time.Duration)
- func (o *ListLoyaltyProgramsParams) WithContext(ctx context.Context) *ListLoyaltyProgramsParams
- func (o *ListLoyaltyProgramsParams) WithDefaults() *ListLoyaltyProgramsParams
- func (o *ListLoyaltyProgramsParams) WithHTTPClient(client *http.Client) *ListLoyaltyProgramsParams
- func (o *ListLoyaltyProgramsParams) WithTimeout(timeout time.Duration) *ListLoyaltyProgramsParams
- func (o *ListLoyaltyProgramsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListLoyaltyProgramsReader
- type RedeemLoyaltyRewardOK
- type RedeemLoyaltyRewardParams
- func NewRedeemLoyaltyRewardParams() *RedeemLoyaltyRewardParams
- func NewRedeemLoyaltyRewardParamsWithContext(ctx context.Context) *RedeemLoyaltyRewardParams
- func NewRedeemLoyaltyRewardParamsWithHTTPClient(client *http.Client) *RedeemLoyaltyRewardParams
- func NewRedeemLoyaltyRewardParamsWithTimeout(timeout time.Duration) *RedeemLoyaltyRewardParams
- func (o *RedeemLoyaltyRewardParams) SetBody(body *models.RedeemLoyaltyRewardRequest)
- func (o *RedeemLoyaltyRewardParams) SetContext(ctx context.Context)
- func (o *RedeemLoyaltyRewardParams) SetDefaults()
- func (o *RedeemLoyaltyRewardParams) SetHTTPClient(client *http.Client)
- func (o *RedeemLoyaltyRewardParams) SetRewardID(rewardID string)
- func (o *RedeemLoyaltyRewardParams) SetTimeout(timeout time.Duration)
- func (o *RedeemLoyaltyRewardParams) WithBody(body *models.RedeemLoyaltyRewardRequest) *RedeemLoyaltyRewardParams
- func (o *RedeemLoyaltyRewardParams) WithContext(ctx context.Context) *RedeemLoyaltyRewardParams
- func (o *RedeemLoyaltyRewardParams) WithDefaults() *RedeemLoyaltyRewardParams
- func (o *RedeemLoyaltyRewardParams) WithHTTPClient(client *http.Client) *RedeemLoyaltyRewardParams
- func (o *RedeemLoyaltyRewardParams) WithRewardID(rewardID string) *RedeemLoyaltyRewardParams
- func (o *RedeemLoyaltyRewardParams) WithTimeout(timeout time.Duration) *RedeemLoyaltyRewardParams
- func (o *RedeemLoyaltyRewardParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type RedeemLoyaltyRewardReader
- type RetrieveLoyaltyAccountOK
- type RetrieveLoyaltyAccountParams
- func NewRetrieveLoyaltyAccountParams() *RetrieveLoyaltyAccountParams
- func NewRetrieveLoyaltyAccountParamsWithContext(ctx context.Context) *RetrieveLoyaltyAccountParams
- func NewRetrieveLoyaltyAccountParamsWithHTTPClient(client *http.Client) *RetrieveLoyaltyAccountParams
- func NewRetrieveLoyaltyAccountParamsWithTimeout(timeout time.Duration) *RetrieveLoyaltyAccountParams
- func (o *RetrieveLoyaltyAccountParams) SetAccountID(accountID string)
- func (o *RetrieveLoyaltyAccountParams) SetContext(ctx context.Context)
- func (o *RetrieveLoyaltyAccountParams) SetDefaults()
- func (o *RetrieveLoyaltyAccountParams) SetHTTPClient(client *http.Client)
- func (o *RetrieveLoyaltyAccountParams) SetTimeout(timeout time.Duration)
- func (o *RetrieveLoyaltyAccountParams) WithAccountID(accountID string) *RetrieveLoyaltyAccountParams
- func (o *RetrieveLoyaltyAccountParams) WithContext(ctx context.Context) *RetrieveLoyaltyAccountParams
- func (o *RetrieveLoyaltyAccountParams) WithDefaults() *RetrieveLoyaltyAccountParams
- func (o *RetrieveLoyaltyAccountParams) WithHTTPClient(client *http.Client) *RetrieveLoyaltyAccountParams
- func (o *RetrieveLoyaltyAccountParams) WithTimeout(timeout time.Duration) *RetrieveLoyaltyAccountParams
- func (o *RetrieveLoyaltyAccountParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type RetrieveLoyaltyAccountReader
- type RetrieveLoyaltyRewardOK
- type RetrieveLoyaltyRewardParams
- func NewRetrieveLoyaltyRewardParams() *RetrieveLoyaltyRewardParams
- func NewRetrieveLoyaltyRewardParamsWithContext(ctx context.Context) *RetrieveLoyaltyRewardParams
- func NewRetrieveLoyaltyRewardParamsWithHTTPClient(client *http.Client) *RetrieveLoyaltyRewardParams
- func NewRetrieveLoyaltyRewardParamsWithTimeout(timeout time.Duration) *RetrieveLoyaltyRewardParams
- func (o *RetrieveLoyaltyRewardParams) SetContext(ctx context.Context)
- func (o *RetrieveLoyaltyRewardParams) SetDefaults()
- func (o *RetrieveLoyaltyRewardParams) SetHTTPClient(client *http.Client)
- func (o *RetrieveLoyaltyRewardParams) SetRewardID(rewardID string)
- func (o *RetrieveLoyaltyRewardParams) SetTimeout(timeout time.Duration)
- func (o *RetrieveLoyaltyRewardParams) WithContext(ctx context.Context) *RetrieveLoyaltyRewardParams
- func (o *RetrieveLoyaltyRewardParams) WithDefaults() *RetrieveLoyaltyRewardParams
- func (o *RetrieveLoyaltyRewardParams) WithHTTPClient(client *http.Client) *RetrieveLoyaltyRewardParams
- func (o *RetrieveLoyaltyRewardParams) WithRewardID(rewardID string) *RetrieveLoyaltyRewardParams
- func (o *RetrieveLoyaltyRewardParams) WithTimeout(timeout time.Duration) *RetrieveLoyaltyRewardParams
- func (o *RetrieveLoyaltyRewardParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type RetrieveLoyaltyRewardReader
- type SearchLoyaltyAccountsOK
- type SearchLoyaltyAccountsParams
- func NewSearchLoyaltyAccountsParams() *SearchLoyaltyAccountsParams
- func NewSearchLoyaltyAccountsParamsWithContext(ctx context.Context) *SearchLoyaltyAccountsParams
- func NewSearchLoyaltyAccountsParamsWithHTTPClient(client *http.Client) *SearchLoyaltyAccountsParams
- func NewSearchLoyaltyAccountsParamsWithTimeout(timeout time.Duration) *SearchLoyaltyAccountsParams
- func (o *SearchLoyaltyAccountsParams) SetBody(body *models.SearchLoyaltyAccountsRequest)
- func (o *SearchLoyaltyAccountsParams) SetContext(ctx context.Context)
- func (o *SearchLoyaltyAccountsParams) SetDefaults()
- func (o *SearchLoyaltyAccountsParams) SetHTTPClient(client *http.Client)
- func (o *SearchLoyaltyAccountsParams) SetTimeout(timeout time.Duration)
- func (o *SearchLoyaltyAccountsParams) WithBody(body *models.SearchLoyaltyAccountsRequest) *SearchLoyaltyAccountsParams
- func (o *SearchLoyaltyAccountsParams) WithContext(ctx context.Context) *SearchLoyaltyAccountsParams
- func (o *SearchLoyaltyAccountsParams) WithDefaults() *SearchLoyaltyAccountsParams
- func (o *SearchLoyaltyAccountsParams) WithHTTPClient(client *http.Client) *SearchLoyaltyAccountsParams
- func (o *SearchLoyaltyAccountsParams) WithTimeout(timeout time.Duration) *SearchLoyaltyAccountsParams
- func (o *SearchLoyaltyAccountsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type SearchLoyaltyAccountsReader
- type SearchLoyaltyEventsOK
- type SearchLoyaltyEventsParams
- func NewSearchLoyaltyEventsParams() *SearchLoyaltyEventsParams
- func NewSearchLoyaltyEventsParamsWithContext(ctx context.Context) *SearchLoyaltyEventsParams
- func NewSearchLoyaltyEventsParamsWithHTTPClient(client *http.Client) *SearchLoyaltyEventsParams
- func NewSearchLoyaltyEventsParamsWithTimeout(timeout time.Duration) *SearchLoyaltyEventsParams
- func (o *SearchLoyaltyEventsParams) SetBody(body *models.SearchLoyaltyEventsRequest)
- func (o *SearchLoyaltyEventsParams) SetContext(ctx context.Context)
- func (o *SearchLoyaltyEventsParams) SetDefaults()
- func (o *SearchLoyaltyEventsParams) SetHTTPClient(client *http.Client)
- func (o *SearchLoyaltyEventsParams) SetTimeout(timeout time.Duration)
- func (o *SearchLoyaltyEventsParams) WithBody(body *models.SearchLoyaltyEventsRequest) *SearchLoyaltyEventsParams
- func (o *SearchLoyaltyEventsParams) WithContext(ctx context.Context) *SearchLoyaltyEventsParams
- func (o *SearchLoyaltyEventsParams) WithDefaults() *SearchLoyaltyEventsParams
- func (o *SearchLoyaltyEventsParams) WithHTTPClient(client *http.Client) *SearchLoyaltyEventsParams
- func (o *SearchLoyaltyEventsParams) WithTimeout(timeout time.Duration) *SearchLoyaltyEventsParams
- func (o *SearchLoyaltyEventsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type SearchLoyaltyEventsReader
- type SearchLoyaltyRewardsOK
- type SearchLoyaltyRewardsParams
- func NewSearchLoyaltyRewardsParams() *SearchLoyaltyRewardsParams
- func NewSearchLoyaltyRewardsParamsWithContext(ctx context.Context) *SearchLoyaltyRewardsParams
- func NewSearchLoyaltyRewardsParamsWithHTTPClient(client *http.Client) *SearchLoyaltyRewardsParams
- func NewSearchLoyaltyRewardsParamsWithTimeout(timeout time.Duration) *SearchLoyaltyRewardsParams
- func (o *SearchLoyaltyRewardsParams) SetBody(body *models.SearchLoyaltyRewardsRequest)
- func (o *SearchLoyaltyRewardsParams) SetContext(ctx context.Context)
- func (o *SearchLoyaltyRewardsParams) SetDefaults()
- func (o *SearchLoyaltyRewardsParams) SetHTTPClient(client *http.Client)
- func (o *SearchLoyaltyRewardsParams) SetTimeout(timeout time.Duration)
- func (o *SearchLoyaltyRewardsParams) WithBody(body *models.SearchLoyaltyRewardsRequest) *SearchLoyaltyRewardsParams
- func (o *SearchLoyaltyRewardsParams) WithContext(ctx context.Context) *SearchLoyaltyRewardsParams
- func (o *SearchLoyaltyRewardsParams) WithDefaults() *SearchLoyaltyRewardsParams
- func (o *SearchLoyaltyRewardsParams) WithHTTPClient(client *http.Client) *SearchLoyaltyRewardsParams
- func (o *SearchLoyaltyRewardsParams) WithTimeout(timeout time.Duration) *SearchLoyaltyRewardsParams
- func (o *SearchLoyaltyRewardsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type SearchLoyaltyRewardsReader
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 ¶
func (o *AccumulateLoyaltyPointsOK) GetPayload() *models.AccumulateLoyaltyPointsResponse
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 ¶
func (o *AccumulateLoyaltyPointsParams) SetBody(body *models.AccumulateLoyaltyPointsRequest)
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 ¶
func (o *AccumulateLoyaltyPointsParams) WithAccountID(accountID string) *AccumulateLoyaltyPointsParams
WithAccountID adds the accountID to the accumulate loyalty points params
func (*AccumulateLoyaltyPointsParams) WithBody ¶
func (o *AccumulateLoyaltyPointsParams) WithBody(body *models.AccumulateLoyaltyPointsRequest) *AccumulateLoyaltyPointsParams
WithBody adds the body to the accumulate loyalty points params
func (*AccumulateLoyaltyPointsParams) WithContext ¶
func (o *AccumulateLoyaltyPointsParams) WithContext(ctx context.Context) *AccumulateLoyaltyPointsParams
WithContext adds the context to the accumulate loyalty points params
func (*AccumulateLoyaltyPointsParams) WithDefaults ¶
func (o *AccumulateLoyaltyPointsParams) WithDefaults() *AccumulateLoyaltyPointsParams
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 ¶
func (o *AccumulateLoyaltyPointsParams) WithHTTPClient(client *http.Client) *AccumulateLoyaltyPointsParams
WithHTTPClient adds the HTTPClient to the accumulate loyalty points params
func (*AccumulateLoyaltyPointsParams) WithTimeout ¶
func (o *AccumulateLoyaltyPointsParams) WithTimeout(timeout time.Duration) *AccumulateLoyaltyPointsParams
WithTimeout adds the timeout to the accumulate loyalty points params
func (*AccumulateLoyaltyPointsParams) WriteToRequest ¶
func (o *AccumulateLoyaltyPointsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *AdjustLoyaltyPointsOK) GetPayload() *models.AdjustLoyaltyPointsResponse
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 ¶
func (o *AdjustLoyaltyPointsParams) SetBody(body *models.AdjustLoyaltyPointsRequest)
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 ¶
func (o *AdjustLoyaltyPointsParams) WithBody(body *models.AdjustLoyaltyPointsRequest) *AdjustLoyaltyPointsParams
WithBody adds the body to the adjust loyalty points params
func (*AdjustLoyaltyPointsParams) WithContext ¶
func (o *AdjustLoyaltyPointsParams) WithContext(ctx context.Context) *AdjustLoyaltyPointsParams
WithContext adds the context to the adjust loyalty points params
func (*AdjustLoyaltyPointsParams) WithDefaults ¶
func (o *AdjustLoyaltyPointsParams) WithDefaults() *AdjustLoyaltyPointsParams
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 ¶
func (o *AdjustLoyaltyPointsParams) WithTimeout(timeout time.Duration) *AdjustLoyaltyPointsParams
WithTimeout adds the timeout to the adjust loyalty points params
func (*AdjustLoyaltyPointsParams) WriteToRequest ¶
func (o *AdjustLoyaltyPointsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *CalculateLoyaltyPointsOK) GetPayload() *models.CalculateLoyaltyPointsResponse
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 ¶
func (o *CalculateLoyaltyPointsParams) SetBody(body *models.CalculateLoyaltyPointsRequest)
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 ¶
func (o *CalculateLoyaltyPointsParams) WithBody(body *models.CalculateLoyaltyPointsRequest) *CalculateLoyaltyPointsParams
WithBody adds the body to the calculate loyalty points params
func (*CalculateLoyaltyPointsParams) WithContext ¶
func (o *CalculateLoyaltyPointsParams) WithContext(ctx context.Context) *CalculateLoyaltyPointsParams
WithContext adds the context to the calculate loyalty points params
func (*CalculateLoyaltyPointsParams) WithDefaults ¶
func (o *CalculateLoyaltyPointsParams) WithDefaults() *CalculateLoyaltyPointsParams
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 ¶
func (o *CalculateLoyaltyPointsParams) WithHTTPClient(client *http.Client) *CalculateLoyaltyPointsParams
WithHTTPClient adds the HTTPClient to the calculate loyalty points params
func (*CalculateLoyaltyPointsParams) WithProgramID ¶
func (o *CalculateLoyaltyPointsParams) WithProgramID(programID string) *CalculateLoyaltyPointsParams
WithProgramID adds the programID to the calculate loyalty points params
func (*CalculateLoyaltyPointsParams) WithTimeout ¶
func (o *CalculateLoyaltyPointsParams) WithTimeout(timeout time.Duration) *CalculateLoyaltyPointsParams
WithTimeout adds the timeout to the calculate loyalty points params
func (*CalculateLoyaltyPointsParams) WriteToRequest ¶
func (o *CalculateLoyaltyPointsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *CreateLoyaltyAccountOK) GetPayload() *models.CreateLoyaltyAccountResponse
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 ¶
func (o *CreateLoyaltyAccountParams) SetBody(body *models.CreateLoyaltyAccountRequest)
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 ¶
func (o *CreateLoyaltyAccountParams) WithBody(body *models.CreateLoyaltyAccountRequest) *CreateLoyaltyAccountParams
WithBody adds the body to the create loyalty account params
func (*CreateLoyaltyAccountParams) WithContext ¶
func (o *CreateLoyaltyAccountParams) WithContext(ctx context.Context) *CreateLoyaltyAccountParams
WithContext adds the context to the create loyalty account params
func (*CreateLoyaltyAccountParams) WithDefaults ¶
func (o *CreateLoyaltyAccountParams) WithDefaults() *CreateLoyaltyAccountParams
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 ¶
func (o *CreateLoyaltyAccountParams) WithHTTPClient(client *http.Client) *CreateLoyaltyAccountParams
WithHTTPClient adds the HTTPClient to the create loyalty account params
func (*CreateLoyaltyAccountParams) WithTimeout ¶
func (o *CreateLoyaltyAccountParams) WithTimeout(timeout time.Duration) *CreateLoyaltyAccountParams
WithTimeout adds the timeout to the create loyalty account params
func (*CreateLoyaltyAccountParams) WriteToRequest ¶
func (o *CreateLoyaltyAccountParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *CreateLoyaltyRewardOK) GetPayload() *models.CreateLoyaltyRewardResponse
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 ¶
func (o *CreateLoyaltyRewardParams) SetBody(body *models.CreateLoyaltyRewardRequest)
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 ¶
func (o *CreateLoyaltyRewardParams) WithBody(body *models.CreateLoyaltyRewardRequest) *CreateLoyaltyRewardParams
WithBody adds the body to the create loyalty reward params
func (*CreateLoyaltyRewardParams) WithContext ¶
func (o *CreateLoyaltyRewardParams) WithContext(ctx context.Context) *CreateLoyaltyRewardParams
WithContext adds the context to the create loyalty reward params
func (*CreateLoyaltyRewardParams) WithDefaults ¶
func (o *CreateLoyaltyRewardParams) WithDefaults() *CreateLoyaltyRewardParams
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 ¶
func (o *CreateLoyaltyRewardParams) WithTimeout(timeout time.Duration) *CreateLoyaltyRewardParams
WithTimeout adds the timeout to the create loyalty reward params
func (*CreateLoyaltyRewardParams) WriteToRequest ¶
func (o *CreateLoyaltyRewardParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *DeleteLoyaltyRewardOK) GetPayload() *models.DeleteLoyaltyRewardResponse
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 ¶
func (o *DeleteLoyaltyRewardParams) WithContext(ctx context.Context) *DeleteLoyaltyRewardParams
WithContext adds the context to the delete loyalty reward params
func (*DeleteLoyaltyRewardParams) WithDefaults ¶
func (o *DeleteLoyaltyRewardParams) WithDefaults() *DeleteLoyaltyRewardParams
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 ¶
func (o *DeleteLoyaltyRewardParams) WithTimeout(timeout time.Duration) *DeleteLoyaltyRewardParams
WithTimeout adds the timeout to the delete loyalty reward params
func (*DeleteLoyaltyRewardParams) WriteToRequest ¶
func (o *DeleteLoyaltyRewardParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *ListLoyaltyProgramsOK) GetPayload() *models.ListLoyaltyProgramsResponse
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 ¶
func (o *ListLoyaltyProgramsParams) WithContext(ctx context.Context) *ListLoyaltyProgramsParams
WithContext adds the context to the list loyalty programs params
func (*ListLoyaltyProgramsParams) WithDefaults ¶
func (o *ListLoyaltyProgramsParams) WithDefaults() *ListLoyaltyProgramsParams
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 ¶
func (o *ListLoyaltyProgramsParams) WithTimeout(timeout time.Duration) *ListLoyaltyProgramsParams
WithTimeout adds the timeout to the list loyalty programs params
func (*ListLoyaltyProgramsParams) WriteToRequest ¶
func (o *ListLoyaltyProgramsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *RedeemLoyaltyRewardOK) GetPayload() *models.RedeemLoyaltyRewardResponse
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 ¶
func (o *RedeemLoyaltyRewardParams) SetBody(body *models.RedeemLoyaltyRewardRequest)
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 ¶
func (o *RedeemLoyaltyRewardParams) WithBody(body *models.RedeemLoyaltyRewardRequest) *RedeemLoyaltyRewardParams
WithBody adds the body to the redeem loyalty reward params
func (*RedeemLoyaltyRewardParams) WithContext ¶
func (o *RedeemLoyaltyRewardParams) WithContext(ctx context.Context) *RedeemLoyaltyRewardParams
WithContext adds the context to the redeem loyalty reward params
func (*RedeemLoyaltyRewardParams) WithDefaults ¶
func (o *RedeemLoyaltyRewardParams) WithDefaults() *RedeemLoyaltyRewardParams
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 ¶
func (o *RedeemLoyaltyRewardParams) WithTimeout(timeout time.Duration) *RedeemLoyaltyRewardParams
WithTimeout adds the timeout to the redeem loyalty reward params
func (*RedeemLoyaltyRewardParams) WriteToRequest ¶
func (o *RedeemLoyaltyRewardParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *RetrieveLoyaltyAccountOK) GetPayload() *models.RetrieveLoyaltyAccountResponse
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 ¶
func (o *RetrieveLoyaltyAccountParams) WithAccountID(accountID string) *RetrieveLoyaltyAccountParams
WithAccountID adds the accountID to the retrieve loyalty account params
func (*RetrieveLoyaltyAccountParams) WithContext ¶
func (o *RetrieveLoyaltyAccountParams) WithContext(ctx context.Context) *RetrieveLoyaltyAccountParams
WithContext adds the context to the retrieve loyalty account params
func (*RetrieveLoyaltyAccountParams) WithDefaults ¶
func (o *RetrieveLoyaltyAccountParams) WithDefaults() *RetrieveLoyaltyAccountParams
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 ¶
func (o *RetrieveLoyaltyAccountParams) WithHTTPClient(client *http.Client) *RetrieveLoyaltyAccountParams
WithHTTPClient adds the HTTPClient to the retrieve loyalty account params
func (*RetrieveLoyaltyAccountParams) WithTimeout ¶
func (o *RetrieveLoyaltyAccountParams) WithTimeout(timeout time.Duration) *RetrieveLoyaltyAccountParams
WithTimeout adds the timeout to the retrieve loyalty account params
func (*RetrieveLoyaltyAccountParams) WriteToRequest ¶
func (o *RetrieveLoyaltyAccountParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *RetrieveLoyaltyRewardOK) GetPayload() *models.RetrieveLoyaltyRewardResponse
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 ¶
func (o *RetrieveLoyaltyRewardParams) WithContext(ctx context.Context) *RetrieveLoyaltyRewardParams
WithContext adds the context to the retrieve loyalty reward params
func (*RetrieveLoyaltyRewardParams) WithDefaults ¶
func (o *RetrieveLoyaltyRewardParams) WithDefaults() *RetrieveLoyaltyRewardParams
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 ¶
func (o *RetrieveLoyaltyRewardParams) WithHTTPClient(client *http.Client) *RetrieveLoyaltyRewardParams
WithHTTPClient adds the HTTPClient to the retrieve loyalty reward params
func (*RetrieveLoyaltyRewardParams) WithRewardID ¶
func (o *RetrieveLoyaltyRewardParams) WithRewardID(rewardID string) *RetrieveLoyaltyRewardParams
WithRewardID adds the rewardID to the retrieve loyalty reward params
func (*RetrieveLoyaltyRewardParams) WithTimeout ¶
func (o *RetrieveLoyaltyRewardParams) WithTimeout(timeout time.Duration) *RetrieveLoyaltyRewardParams
WithTimeout adds the timeout to the retrieve loyalty reward params
func (*RetrieveLoyaltyRewardParams) WriteToRequest ¶
func (o *RetrieveLoyaltyRewardParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *SearchLoyaltyAccountsOK) GetPayload() *models.SearchLoyaltyAccountsResponse
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 ¶
func (o *SearchLoyaltyAccountsParams) SetBody(body *models.SearchLoyaltyAccountsRequest)
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 ¶
func (o *SearchLoyaltyAccountsParams) WithBody(body *models.SearchLoyaltyAccountsRequest) *SearchLoyaltyAccountsParams
WithBody adds the body to the search loyalty accounts params
func (*SearchLoyaltyAccountsParams) WithContext ¶
func (o *SearchLoyaltyAccountsParams) WithContext(ctx context.Context) *SearchLoyaltyAccountsParams
WithContext adds the context to the search loyalty accounts params
func (*SearchLoyaltyAccountsParams) WithDefaults ¶
func (o *SearchLoyaltyAccountsParams) WithDefaults() *SearchLoyaltyAccountsParams
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 ¶
func (o *SearchLoyaltyAccountsParams) WithHTTPClient(client *http.Client) *SearchLoyaltyAccountsParams
WithHTTPClient adds the HTTPClient to the search loyalty accounts params
func (*SearchLoyaltyAccountsParams) WithTimeout ¶
func (o *SearchLoyaltyAccountsParams) WithTimeout(timeout time.Duration) *SearchLoyaltyAccountsParams
WithTimeout adds the timeout to the search loyalty accounts params
func (*SearchLoyaltyAccountsParams) WriteToRequest ¶
func (o *SearchLoyaltyAccountsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *SearchLoyaltyEventsOK) GetPayload() *models.SearchLoyaltyEventsResponse
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 ¶
func (o *SearchLoyaltyEventsParams) SetBody(body *models.SearchLoyaltyEventsRequest)
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 ¶
func (o *SearchLoyaltyEventsParams) WithBody(body *models.SearchLoyaltyEventsRequest) *SearchLoyaltyEventsParams
WithBody adds the body to the search loyalty events params
func (*SearchLoyaltyEventsParams) WithContext ¶
func (o *SearchLoyaltyEventsParams) WithContext(ctx context.Context) *SearchLoyaltyEventsParams
WithContext adds the context to the search loyalty events params
func (*SearchLoyaltyEventsParams) WithDefaults ¶
func (o *SearchLoyaltyEventsParams) WithDefaults() *SearchLoyaltyEventsParams
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 ¶
func (o *SearchLoyaltyEventsParams) WithTimeout(timeout time.Duration) *SearchLoyaltyEventsParams
WithTimeout adds the timeout to the search loyalty events params
func (*SearchLoyaltyEventsParams) WriteToRequest ¶
func (o *SearchLoyaltyEventsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *SearchLoyaltyRewardsOK) GetPayload() *models.SearchLoyaltyRewardsResponse
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 ¶
func (o *SearchLoyaltyRewardsParams) SetBody(body *models.SearchLoyaltyRewardsRequest)
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 ¶
func (o *SearchLoyaltyRewardsParams) WithBody(body *models.SearchLoyaltyRewardsRequest) *SearchLoyaltyRewardsParams
WithBody adds the body to the search loyalty rewards params
func (*SearchLoyaltyRewardsParams) WithContext ¶
func (o *SearchLoyaltyRewardsParams) WithContext(ctx context.Context) *SearchLoyaltyRewardsParams
WithContext adds the context to the search loyalty rewards params
func (*SearchLoyaltyRewardsParams) WithDefaults ¶
func (o *SearchLoyaltyRewardsParams) WithDefaults() *SearchLoyaltyRewardsParams
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 ¶
func (o *SearchLoyaltyRewardsParams) WithHTTPClient(client *http.Client) *SearchLoyaltyRewardsParams
WithHTTPClient adds the HTTPClient to the search loyalty rewards params
func (*SearchLoyaltyRewardsParams) WithTimeout ¶
func (o *SearchLoyaltyRewardsParams) WithTimeout(timeout time.Duration) *SearchLoyaltyRewardsParams
WithTimeout adds the timeout to the search loyalty rewards params
func (*SearchLoyaltyRewardsParams) WriteToRequest ¶
func (o *SearchLoyaltyRewardsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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.
Source Files
¶
- accumulate_loyalty_points_parameters.go
- accumulate_loyalty_points_responses.go
- adjust_loyalty_points_parameters.go
- adjust_loyalty_points_responses.go
- calculate_loyalty_points_parameters.go
- calculate_loyalty_points_responses.go
- create_loyalty_account_parameters.go
- create_loyalty_account_responses.go
- create_loyalty_reward_parameters.go
- create_loyalty_reward_responses.go
- delete_loyalty_reward_parameters.go
- delete_loyalty_reward_responses.go
- list_loyalty_programs_parameters.go
- list_loyalty_programs_responses.go
- loyalty_client.go
- redeem_loyalty_reward_parameters.go
- redeem_loyalty_reward_responses.go
- retrieve_loyalty_account_parameters.go
- retrieve_loyalty_account_responses.go
- retrieve_loyalty_reward_parameters.go
- retrieve_loyalty_reward_responses.go
- search_loyalty_accounts_parameters.go
- search_loyalty_accounts_responses.go
- search_loyalty_events_parameters.go
- search_loyalty_events_responses.go
- search_loyalty_rewards_parameters.go
- search_loyalty_rewards_responses.go