disputes

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

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AcceptDisputeOK

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

Success

func NewAcceptDisputeOK

func NewAcceptDisputeOK() *AcceptDisputeOK

NewAcceptDisputeOK creates a AcceptDisputeOK with default headers values

func (*AcceptDisputeOK) Error

func (o *AcceptDisputeOK) Error() string

func (*AcceptDisputeOK) GetPayload

func (o *AcceptDisputeOK) GetPayload() *models.AcceptDisputeResponse

type AcceptDisputeParams

type AcceptDisputeParams struct {

	/* DisputeID.

	   The ID of the dispute you want to accept.
	*/
	DisputeID string

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

AcceptDisputeParams contains all the parameters to send to the API endpoint

for the accept dispute operation.

Typically these are written to a http.Request.

func NewAcceptDisputeParams

func NewAcceptDisputeParams() *AcceptDisputeParams

NewAcceptDisputeParams creates a new AcceptDisputeParams 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 NewAcceptDisputeParamsWithContext

func NewAcceptDisputeParamsWithContext(ctx context.Context) *AcceptDisputeParams

NewAcceptDisputeParamsWithContext creates a new AcceptDisputeParams object with the ability to set a context for a request.

func NewAcceptDisputeParamsWithHTTPClient

func NewAcceptDisputeParamsWithHTTPClient(client *http.Client) *AcceptDisputeParams

NewAcceptDisputeParamsWithHTTPClient creates a new AcceptDisputeParams object with the ability to set a custom HTTPClient for a request.

func NewAcceptDisputeParamsWithTimeout

func NewAcceptDisputeParamsWithTimeout(timeout time.Duration) *AcceptDisputeParams

NewAcceptDisputeParamsWithTimeout creates a new AcceptDisputeParams object with the ability to set a timeout on a request.

func (*AcceptDisputeParams) SetContext

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

SetContext adds the context to the accept dispute params

func (*AcceptDisputeParams) SetDefaults

func (o *AcceptDisputeParams) SetDefaults()

SetDefaults hydrates default values in the accept dispute params (not the query body).

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

func (*AcceptDisputeParams) SetDisputeID

func (o *AcceptDisputeParams) SetDisputeID(disputeID string)

SetDisputeID adds the disputeId to the accept dispute params

func (*AcceptDisputeParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the accept dispute params

func (*AcceptDisputeParams) SetTimeout

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

SetTimeout adds the timeout to the accept dispute params

func (*AcceptDisputeParams) WithContext

WithContext adds the context to the accept dispute params

func (*AcceptDisputeParams) WithDefaults

func (o *AcceptDisputeParams) WithDefaults() *AcceptDisputeParams

WithDefaults hydrates default values in the accept dispute params (not the query body).

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

func (*AcceptDisputeParams) WithDisputeID

func (o *AcceptDisputeParams) WithDisputeID(disputeID string) *AcceptDisputeParams

WithDisputeID adds the disputeID to the accept dispute params

func (*AcceptDisputeParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the accept dispute params

func (*AcceptDisputeParams) WithTimeout

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

WithTimeout adds the timeout to the accept dispute params

func (*AcceptDisputeParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type AcceptDisputeReader

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

AcceptDisputeReader is a Reader for the AcceptDispute structure.

func (*AcceptDisputeReader) ReadResponse

func (o *AcceptDisputeReader) 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 disputes API

func (*Client) AcceptDispute

func (a *Client) AcceptDispute(params *AcceptDisputeParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AcceptDisputeOK, error)
AcceptDispute accepts dispute

Accepts the loss on a dispute. Square returns the disputed amount to the cardholder and

updates the dispute state to ACCEPTED.

Square debits the disputed amount from the seller’s Square account. If the Square account does not have sufficient funds, Square debits the associated bank account.

func (*Client) CreateDisputeEvidenceText

func (a *Client) CreateDisputeEvidenceText(params *CreateDisputeEvidenceTextParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateDisputeEvidenceTextOK, error)

CreateDisputeEvidenceText creates dispute evidence text

Uploads text to use as evidence for a dispute challenge.

func (*Client) ListDisputeEvidence

func (a *Client) ListDisputeEvidence(params *ListDisputeEvidenceParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListDisputeEvidenceOK, error)

ListDisputeEvidence lists dispute evidence

Returns a list of evidence associated with a dispute.

func (*Client) ListDisputes

func (a *Client) ListDisputes(params *ListDisputesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListDisputesOK, error)

ListDisputes lists disputes

Returns a list of disputes associated with a particular account.

func (*Client) RemoveDisputeEvidence

func (a *Client) RemoveDisputeEvidence(params *RemoveDisputeEvidenceParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RemoveDisputeEvidenceOK, error)
RemoveDisputeEvidence removes dispute evidence

Removes specified evidence from a dispute.

Square does not send the bank any evidence that is removed. Also, you cannot remove evidence after submitting it to the bank using [SubmitEvidence](/reference/square/disputes-api/submit-evidence).

func (*Client) RetrieveDispute

func (a *Client) RetrieveDispute(params *RetrieveDisputeParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RetrieveDisputeOK, error)

RetrieveDispute retrieves dispute

Returns details about a specific dispute.

func (*Client) RetrieveDisputeEvidence

func (a *Client) RetrieveDisputeEvidence(params *RetrieveDisputeEvidenceParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RetrieveDisputeEvidenceOK, error)
RetrieveDisputeEvidence retrieves dispute evidence

Returns the specific evidence metadata associated with a specific dispute.

You must maintain a copy of the evidence you upload if you want to reference it later. You cannot download the evidence after you upload it.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) SubmitEvidence

func (a *Client) SubmitEvidence(params *SubmitEvidenceParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SubmitEvidenceOK, error)
SubmitEvidence submits evidence

Submits evidence to the cardholder's bank.

Before submitting evidence, Square compiles all available evidence. This includes evidence uploaded using the [CreateDisputeEvidenceFile](/reference/square/disputes-api/create-dispute-evidence-file) and [CreateDisputeEvidenceText](/reference/square/disputes-api/create-dispute-evidence-text) endpoints and evidence automatically provided by Square, when available.

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	AcceptDispute(params *AcceptDisputeParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AcceptDisputeOK, error)

	CreateDisputeEvidenceText(params *CreateDisputeEvidenceTextParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateDisputeEvidenceTextOK, error)

	ListDisputeEvidence(params *ListDisputeEvidenceParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListDisputeEvidenceOK, error)

	ListDisputes(params *ListDisputesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListDisputesOK, error)

	RemoveDisputeEvidence(params *RemoveDisputeEvidenceParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RemoveDisputeEvidenceOK, error)

	RetrieveDispute(params *RetrieveDisputeParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RetrieveDisputeOK, error)

	RetrieveDisputeEvidence(params *RetrieveDisputeEvidenceParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RetrieveDisputeEvidenceOK, error)

	SubmitEvidence(params *SubmitEvidenceParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SubmitEvidenceOK, 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 disputes API client.

type CreateDisputeEvidenceTextOK

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

Success

func NewCreateDisputeEvidenceTextOK

func NewCreateDisputeEvidenceTextOK() *CreateDisputeEvidenceTextOK

NewCreateDisputeEvidenceTextOK creates a CreateDisputeEvidenceTextOK with default headers values

func (*CreateDisputeEvidenceTextOK) Error

func (*CreateDisputeEvidenceTextOK) GetPayload

type CreateDisputeEvidenceTextParams

type CreateDisputeEvidenceTextParams struct {

	/* Body.

	     An object containing the fields to POST for the request.

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

	/* DisputeID.

	   The ID of the dispute you want to upload evidence for.
	*/
	DisputeID string

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

CreateDisputeEvidenceTextParams contains all the parameters to send to the API endpoint

for the create dispute evidence text operation.

Typically these are written to a http.Request.

func NewCreateDisputeEvidenceTextParams

func NewCreateDisputeEvidenceTextParams() *CreateDisputeEvidenceTextParams

NewCreateDisputeEvidenceTextParams creates a new CreateDisputeEvidenceTextParams 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 NewCreateDisputeEvidenceTextParamsWithContext

func NewCreateDisputeEvidenceTextParamsWithContext(ctx context.Context) *CreateDisputeEvidenceTextParams

NewCreateDisputeEvidenceTextParamsWithContext creates a new CreateDisputeEvidenceTextParams object with the ability to set a context for a request.

func NewCreateDisputeEvidenceTextParamsWithHTTPClient

func NewCreateDisputeEvidenceTextParamsWithHTTPClient(client *http.Client) *CreateDisputeEvidenceTextParams

NewCreateDisputeEvidenceTextParamsWithHTTPClient creates a new CreateDisputeEvidenceTextParams object with the ability to set a custom HTTPClient for a request.

func NewCreateDisputeEvidenceTextParamsWithTimeout

func NewCreateDisputeEvidenceTextParamsWithTimeout(timeout time.Duration) *CreateDisputeEvidenceTextParams

NewCreateDisputeEvidenceTextParamsWithTimeout creates a new CreateDisputeEvidenceTextParams object with the ability to set a timeout on a request.

func (*CreateDisputeEvidenceTextParams) SetBody

SetBody adds the body to the create dispute evidence text params

func (*CreateDisputeEvidenceTextParams) SetContext

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

SetContext adds the context to the create dispute evidence text params

func (*CreateDisputeEvidenceTextParams) SetDefaults

func (o *CreateDisputeEvidenceTextParams) SetDefaults()

SetDefaults hydrates default values in the create dispute evidence text params (not the query body).

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

func (*CreateDisputeEvidenceTextParams) SetDisputeID

func (o *CreateDisputeEvidenceTextParams) SetDisputeID(disputeID string)

SetDisputeID adds the disputeId to the create dispute evidence text params

func (*CreateDisputeEvidenceTextParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create dispute evidence text params

func (*CreateDisputeEvidenceTextParams) SetTimeout

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

SetTimeout adds the timeout to the create dispute evidence text params

func (*CreateDisputeEvidenceTextParams) WithBody

WithBody adds the body to the create dispute evidence text params

func (*CreateDisputeEvidenceTextParams) WithContext

WithContext adds the context to the create dispute evidence text params

func (*CreateDisputeEvidenceTextParams) WithDefaults

WithDefaults hydrates default values in the create dispute evidence text params (not the query body).

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

func (*CreateDisputeEvidenceTextParams) WithDisputeID

WithDisputeID adds the disputeID to the create dispute evidence text params

func (*CreateDisputeEvidenceTextParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the create dispute evidence text params

func (*CreateDisputeEvidenceTextParams) WithTimeout

WithTimeout adds the timeout to the create dispute evidence text params

func (*CreateDisputeEvidenceTextParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreateDisputeEvidenceTextReader

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

CreateDisputeEvidenceTextReader is a Reader for the CreateDisputeEvidenceText structure.

func (*CreateDisputeEvidenceTextReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListDisputeEvidenceOK

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

Success

func NewListDisputeEvidenceOK

func NewListDisputeEvidenceOK() *ListDisputeEvidenceOK

NewListDisputeEvidenceOK creates a ListDisputeEvidenceOK with default headers values

func (*ListDisputeEvidenceOK) Error

func (o *ListDisputeEvidenceOK) Error() string

func (*ListDisputeEvidenceOK) GetPayload

type ListDisputeEvidenceParams

type ListDisputeEvidenceParams struct {

	/* DisputeID.

	   The ID of the dispute.
	*/
	DisputeID string

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

ListDisputeEvidenceParams contains all the parameters to send to the API endpoint

for the list dispute evidence operation.

Typically these are written to a http.Request.

func NewListDisputeEvidenceParams

func NewListDisputeEvidenceParams() *ListDisputeEvidenceParams

NewListDisputeEvidenceParams creates a new ListDisputeEvidenceParams 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 NewListDisputeEvidenceParamsWithContext

func NewListDisputeEvidenceParamsWithContext(ctx context.Context) *ListDisputeEvidenceParams

NewListDisputeEvidenceParamsWithContext creates a new ListDisputeEvidenceParams object with the ability to set a context for a request.

func NewListDisputeEvidenceParamsWithHTTPClient

func NewListDisputeEvidenceParamsWithHTTPClient(client *http.Client) *ListDisputeEvidenceParams

NewListDisputeEvidenceParamsWithHTTPClient creates a new ListDisputeEvidenceParams object with the ability to set a custom HTTPClient for a request.

func NewListDisputeEvidenceParamsWithTimeout

func NewListDisputeEvidenceParamsWithTimeout(timeout time.Duration) *ListDisputeEvidenceParams

NewListDisputeEvidenceParamsWithTimeout creates a new ListDisputeEvidenceParams object with the ability to set a timeout on a request.

func (*ListDisputeEvidenceParams) SetContext

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

SetContext adds the context to the list dispute evidence params

func (*ListDisputeEvidenceParams) SetDefaults

func (o *ListDisputeEvidenceParams) SetDefaults()

SetDefaults hydrates default values in the list dispute evidence params (not the query body).

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

func (*ListDisputeEvidenceParams) SetDisputeID

func (o *ListDisputeEvidenceParams) SetDisputeID(disputeID string)

SetDisputeID adds the disputeId to the list dispute evidence params

func (*ListDisputeEvidenceParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list dispute evidence params

func (*ListDisputeEvidenceParams) SetTimeout

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

SetTimeout adds the timeout to the list dispute evidence params

func (*ListDisputeEvidenceParams) WithContext

WithContext adds the context to the list dispute evidence params

func (*ListDisputeEvidenceParams) WithDefaults

WithDefaults hydrates default values in the list dispute evidence params (not the query body).

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

func (*ListDisputeEvidenceParams) WithDisputeID

func (o *ListDisputeEvidenceParams) WithDisputeID(disputeID string) *ListDisputeEvidenceParams

WithDisputeID adds the disputeID to the list dispute evidence params

func (*ListDisputeEvidenceParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list dispute evidence params

func (*ListDisputeEvidenceParams) WithTimeout

WithTimeout adds the timeout to the list dispute evidence params

func (*ListDisputeEvidenceParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ListDisputeEvidenceReader

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

ListDisputeEvidenceReader is a Reader for the ListDisputeEvidence structure.

func (*ListDisputeEvidenceReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListDisputesOK

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

Success

func NewListDisputesOK

func NewListDisputesOK() *ListDisputesOK

NewListDisputesOK creates a ListDisputesOK with default headers values

func (*ListDisputesOK) Error

func (o *ListDisputesOK) Error() string

func (*ListDisputesOK) GetPayload

func (o *ListDisputesOK) GetPayload() *models.ListDisputesResponse

type ListDisputesParams

type ListDisputesParams struct {

	/* Cursor.

	     A pagination cursor returned by a previous call to this endpoint.
	Provide this cursor to retrieve the next set of results for the original query.
	For more information, see [Pagination](https://developer.squareup.com/docs/basics/api101/pagination).
	*/
	Cursor *string

	/* LocationID.

	     The ID of the location for which to return a list of disputes. If not specified, the endpoint returns
	all open disputes (the dispute status is not `INQUIRY_CLOSED`, `WON`, or `LOST`) associated with all locations.
	*/
	LocationID *string

	/* States.

	     The dispute states to filter the result.
	If not specified, the endpoint returns all open disputes (the dispute status is not `INQUIRY_CLOSED`, `WON`,
	or `LOST`).
	*/
	States *string

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

ListDisputesParams contains all the parameters to send to the API endpoint

for the list disputes operation.

Typically these are written to a http.Request.

func NewListDisputesParams

func NewListDisputesParams() *ListDisputesParams

NewListDisputesParams creates a new ListDisputesParams 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 NewListDisputesParamsWithContext

func NewListDisputesParamsWithContext(ctx context.Context) *ListDisputesParams

NewListDisputesParamsWithContext creates a new ListDisputesParams object with the ability to set a context for a request.

func NewListDisputesParamsWithHTTPClient

func NewListDisputesParamsWithHTTPClient(client *http.Client) *ListDisputesParams

NewListDisputesParamsWithHTTPClient creates a new ListDisputesParams object with the ability to set a custom HTTPClient for a request.

func NewListDisputesParamsWithTimeout

func NewListDisputesParamsWithTimeout(timeout time.Duration) *ListDisputesParams

NewListDisputesParamsWithTimeout creates a new ListDisputesParams object with the ability to set a timeout on a request.

func (*ListDisputesParams) SetContext

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

SetContext adds the context to the list disputes params

func (*ListDisputesParams) SetCursor

func (o *ListDisputesParams) SetCursor(cursor *string)

SetCursor adds the cursor to the list disputes params

func (*ListDisputesParams) SetDefaults

func (o *ListDisputesParams) SetDefaults()

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

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

func (*ListDisputesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list disputes params

func (*ListDisputesParams) SetLocationID

func (o *ListDisputesParams) SetLocationID(locationID *string)

SetLocationID adds the locationId to the list disputes params

func (*ListDisputesParams) SetStates

func (o *ListDisputesParams) SetStates(states *string)

SetStates adds the states to the list disputes params

func (*ListDisputesParams) SetTimeout

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

SetTimeout adds the timeout to the list disputes params

func (*ListDisputesParams) WithContext

WithContext adds the context to the list disputes params

func (*ListDisputesParams) WithCursor

func (o *ListDisputesParams) WithCursor(cursor *string) *ListDisputesParams

WithCursor adds the cursor to the list disputes params

func (*ListDisputesParams) WithDefaults

func (o *ListDisputesParams) WithDefaults() *ListDisputesParams

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

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

func (*ListDisputesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list disputes params

func (*ListDisputesParams) WithLocationID

func (o *ListDisputesParams) WithLocationID(locationID *string) *ListDisputesParams

WithLocationID adds the locationID to the list disputes params

func (*ListDisputesParams) WithStates

func (o *ListDisputesParams) WithStates(states *string) *ListDisputesParams

WithStates adds the states to the list disputes params

func (*ListDisputesParams) WithTimeout

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

WithTimeout adds the timeout to the list disputes params

func (*ListDisputesParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ListDisputesReader

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

ListDisputesReader is a Reader for the ListDisputes structure.

func (*ListDisputesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type RemoveDisputeEvidenceOK

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

Success

func NewRemoveDisputeEvidenceOK

func NewRemoveDisputeEvidenceOK() *RemoveDisputeEvidenceOK

NewRemoveDisputeEvidenceOK creates a RemoveDisputeEvidenceOK with default headers values

func (*RemoveDisputeEvidenceOK) Error

func (o *RemoveDisputeEvidenceOK) Error() string

func (*RemoveDisputeEvidenceOK) GetPayload

type RemoveDisputeEvidenceParams

type RemoveDisputeEvidenceParams struct {

	/* DisputeID.

	   The ID of the dispute you want to remove evidence from.
	*/
	DisputeID string

	/* EvidenceID.

	   The ID of the evidence you want to remove.
	*/
	EvidenceID string

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

RemoveDisputeEvidenceParams contains all the parameters to send to the API endpoint

for the remove dispute evidence operation.

Typically these are written to a http.Request.

func NewRemoveDisputeEvidenceParams

func NewRemoveDisputeEvidenceParams() *RemoveDisputeEvidenceParams

NewRemoveDisputeEvidenceParams creates a new RemoveDisputeEvidenceParams 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 NewRemoveDisputeEvidenceParamsWithContext

func NewRemoveDisputeEvidenceParamsWithContext(ctx context.Context) *RemoveDisputeEvidenceParams

NewRemoveDisputeEvidenceParamsWithContext creates a new RemoveDisputeEvidenceParams object with the ability to set a context for a request.

func NewRemoveDisputeEvidenceParamsWithHTTPClient

func NewRemoveDisputeEvidenceParamsWithHTTPClient(client *http.Client) *RemoveDisputeEvidenceParams

NewRemoveDisputeEvidenceParamsWithHTTPClient creates a new RemoveDisputeEvidenceParams object with the ability to set a custom HTTPClient for a request.

func NewRemoveDisputeEvidenceParamsWithTimeout

func NewRemoveDisputeEvidenceParamsWithTimeout(timeout time.Duration) *RemoveDisputeEvidenceParams

NewRemoveDisputeEvidenceParamsWithTimeout creates a new RemoveDisputeEvidenceParams object with the ability to set a timeout on a request.

func (*RemoveDisputeEvidenceParams) SetContext

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

SetContext adds the context to the remove dispute evidence params

func (*RemoveDisputeEvidenceParams) SetDefaults

func (o *RemoveDisputeEvidenceParams) SetDefaults()

SetDefaults hydrates default values in the remove dispute evidence params (not the query body).

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

func (*RemoveDisputeEvidenceParams) SetDisputeID

func (o *RemoveDisputeEvidenceParams) SetDisputeID(disputeID string)

SetDisputeID adds the disputeId to the remove dispute evidence params

func (*RemoveDisputeEvidenceParams) SetEvidenceID

func (o *RemoveDisputeEvidenceParams) SetEvidenceID(evidenceID string)

SetEvidenceID adds the evidenceId to the remove dispute evidence params

func (*RemoveDisputeEvidenceParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the remove dispute evidence params

func (*RemoveDisputeEvidenceParams) SetTimeout

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

SetTimeout adds the timeout to the remove dispute evidence params

func (*RemoveDisputeEvidenceParams) WithContext

WithContext adds the context to the remove dispute evidence params

func (*RemoveDisputeEvidenceParams) WithDefaults

WithDefaults hydrates default values in the remove dispute evidence params (not the query body).

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

func (*RemoveDisputeEvidenceParams) WithDisputeID

func (o *RemoveDisputeEvidenceParams) WithDisputeID(disputeID string) *RemoveDisputeEvidenceParams

WithDisputeID adds the disputeID to the remove dispute evidence params

func (*RemoveDisputeEvidenceParams) WithEvidenceID

func (o *RemoveDisputeEvidenceParams) WithEvidenceID(evidenceID string) *RemoveDisputeEvidenceParams

WithEvidenceID adds the evidenceID to the remove dispute evidence params

func (*RemoveDisputeEvidenceParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the remove dispute evidence params

func (*RemoveDisputeEvidenceParams) WithTimeout

WithTimeout adds the timeout to the remove dispute evidence params

func (*RemoveDisputeEvidenceParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type RemoveDisputeEvidenceReader

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

RemoveDisputeEvidenceReader is a Reader for the RemoveDisputeEvidence structure.

func (*RemoveDisputeEvidenceReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type RetrieveDisputeEvidenceOK

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

Success

func NewRetrieveDisputeEvidenceOK

func NewRetrieveDisputeEvidenceOK() *RetrieveDisputeEvidenceOK

NewRetrieveDisputeEvidenceOK creates a RetrieveDisputeEvidenceOK with default headers values

func (*RetrieveDisputeEvidenceOK) Error

func (o *RetrieveDisputeEvidenceOK) Error() string

func (*RetrieveDisputeEvidenceOK) GetPayload

type RetrieveDisputeEvidenceParams

type RetrieveDisputeEvidenceParams struct {

	/* DisputeID.

	   The ID of the dispute that you want to retrieve evidence from.
	*/
	DisputeID string

	/* EvidenceID.

	   The ID of the evidence to retrieve.
	*/
	EvidenceID string

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

RetrieveDisputeEvidenceParams contains all the parameters to send to the API endpoint

for the retrieve dispute evidence operation.

Typically these are written to a http.Request.

func NewRetrieveDisputeEvidenceParams

func NewRetrieveDisputeEvidenceParams() *RetrieveDisputeEvidenceParams

NewRetrieveDisputeEvidenceParams creates a new RetrieveDisputeEvidenceParams 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 NewRetrieveDisputeEvidenceParamsWithContext

func NewRetrieveDisputeEvidenceParamsWithContext(ctx context.Context) *RetrieveDisputeEvidenceParams

NewRetrieveDisputeEvidenceParamsWithContext creates a new RetrieveDisputeEvidenceParams object with the ability to set a context for a request.

func NewRetrieveDisputeEvidenceParamsWithHTTPClient

func NewRetrieveDisputeEvidenceParamsWithHTTPClient(client *http.Client) *RetrieveDisputeEvidenceParams

NewRetrieveDisputeEvidenceParamsWithHTTPClient creates a new RetrieveDisputeEvidenceParams object with the ability to set a custom HTTPClient for a request.

func NewRetrieveDisputeEvidenceParamsWithTimeout

func NewRetrieveDisputeEvidenceParamsWithTimeout(timeout time.Duration) *RetrieveDisputeEvidenceParams

NewRetrieveDisputeEvidenceParamsWithTimeout creates a new RetrieveDisputeEvidenceParams object with the ability to set a timeout on a request.

func (*RetrieveDisputeEvidenceParams) SetContext

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

SetContext adds the context to the retrieve dispute evidence params

func (*RetrieveDisputeEvidenceParams) SetDefaults

func (o *RetrieveDisputeEvidenceParams) SetDefaults()

SetDefaults hydrates default values in the retrieve dispute evidence params (not the query body).

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

func (*RetrieveDisputeEvidenceParams) SetDisputeID

func (o *RetrieveDisputeEvidenceParams) SetDisputeID(disputeID string)

SetDisputeID adds the disputeId to the retrieve dispute evidence params

func (*RetrieveDisputeEvidenceParams) SetEvidenceID

func (o *RetrieveDisputeEvidenceParams) SetEvidenceID(evidenceID string)

SetEvidenceID adds the evidenceId to the retrieve dispute evidence params

func (*RetrieveDisputeEvidenceParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the retrieve dispute evidence params

func (*RetrieveDisputeEvidenceParams) SetTimeout

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

SetTimeout adds the timeout to the retrieve dispute evidence params

func (*RetrieveDisputeEvidenceParams) WithContext

WithContext adds the context to the retrieve dispute evidence params

func (*RetrieveDisputeEvidenceParams) WithDefaults

WithDefaults hydrates default values in the retrieve dispute evidence params (not the query body).

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

func (*RetrieveDisputeEvidenceParams) WithDisputeID

WithDisputeID adds the disputeID to the retrieve dispute evidence params

func (*RetrieveDisputeEvidenceParams) WithEvidenceID

WithEvidenceID adds the evidenceID to the retrieve dispute evidence params

func (*RetrieveDisputeEvidenceParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the retrieve dispute evidence params

func (*RetrieveDisputeEvidenceParams) WithTimeout

WithTimeout adds the timeout to the retrieve dispute evidence params

func (*RetrieveDisputeEvidenceParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type RetrieveDisputeEvidenceReader

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

RetrieveDisputeEvidenceReader is a Reader for the RetrieveDisputeEvidence structure.

func (*RetrieveDisputeEvidenceReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type RetrieveDisputeOK

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

Success

func NewRetrieveDisputeOK

func NewRetrieveDisputeOK() *RetrieveDisputeOK

NewRetrieveDisputeOK creates a RetrieveDisputeOK with default headers values

func (*RetrieveDisputeOK) Error

func (o *RetrieveDisputeOK) Error() string

func (*RetrieveDisputeOK) GetPayload

type RetrieveDisputeParams

type RetrieveDisputeParams struct {

	/* DisputeID.

	   The ID of the dispute you want more details about.
	*/
	DisputeID string

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

RetrieveDisputeParams contains all the parameters to send to the API endpoint

for the retrieve dispute operation.

Typically these are written to a http.Request.

func NewRetrieveDisputeParams

func NewRetrieveDisputeParams() *RetrieveDisputeParams

NewRetrieveDisputeParams creates a new RetrieveDisputeParams 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 NewRetrieveDisputeParamsWithContext

func NewRetrieveDisputeParamsWithContext(ctx context.Context) *RetrieveDisputeParams

NewRetrieveDisputeParamsWithContext creates a new RetrieveDisputeParams object with the ability to set a context for a request.

func NewRetrieveDisputeParamsWithHTTPClient

func NewRetrieveDisputeParamsWithHTTPClient(client *http.Client) *RetrieveDisputeParams

NewRetrieveDisputeParamsWithHTTPClient creates a new RetrieveDisputeParams object with the ability to set a custom HTTPClient for a request.

func NewRetrieveDisputeParamsWithTimeout

func NewRetrieveDisputeParamsWithTimeout(timeout time.Duration) *RetrieveDisputeParams

NewRetrieveDisputeParamsWithTimeout creates a new RetrieveDisputeParams object with the ability to set a timeout on a request.

func (*RetrieveDisputeParams) SetContext

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

SetContext adds the context to the retrieve dispute params

func (*RetrieveDisputeParams) SetDefaults

func (o *RetrieveDisputeParams) SetDefaults()

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

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

func (*RetrieveDisputeParams) SetDisputeID

func (o *RetrieveDisputeParams) SetDisputeID(disputeID string)

SetDisputeID adds the disputeId to the retrieve dispute params

func (*RetrieveDisputeParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the retrieve dispute params

func (*RetrieveDisputeParams) SetTimeout

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

SetTimeout adds the timeout to the retrieve dispute params

func (*RetrieveDisputeParams) WithContext

WithContext adds the context to the retrieve dispute params

func (*RetrieveDisputeParams) WithDefaults

func (o *RetrieveDisputeParams) WithDefaults() *RetrieveDisputeParams

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

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

func (*RetrieveDisputeParams) WithDisputeID

func (o *RetrieveDisputeParams) WithDisputeID(disputeID string) *RetrieveDisputeParams

WithDisputeID adds the disputeID to the retrieve dispute params

func (*RetrieveDisputeParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the retrieve dispute params

func (*RetrieveDisputeParams) WithTimeout

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

WithTimeout adds the timeout to the retrieve dispute params

func (*RetrieveDisputeParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type RetrieveDisputeReader

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

RetrieveDisputeReader is a Reader for the RetrieveDispute structure.

func (*RetrieveDisputeReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type SubmitEvidenceOK

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

Success

func NewSubmitEvidenceOK

func NewSubmitEvidenceOK() *SubmitEvidenceOK

NewSubmitEvidenceOK creates a SubmitEvidenceOK with default headers values

func (*SubmitEvidenceOK) Error

func (o *SubmitEvidenceOK) Error() string

func (*SubmitEvidenceOK) GetPayload

type SubmitEvidenceParams

type SubmitEvidenceParams struct {

	/* DisputeID.

	   The ID of the dispute that you want to submit evidence for.
	*/
	DisputeID string

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

SubmitEvidenceParams contains all the parameters to send to the API endpoint

for the submit evidence operation.

Typically these are written to a http.Request.

func NewSubmitEvidenceParams

func NewSubmitEvidenceParams() *SubmitEvidenceParams

NewSubmitEvidenceParams creates a new SubmitEvidenceParams 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 NewSubmitEvidenceParamsWithContext

func NewSubmitEvidenceParamsWithContext(ctx context.Context) *SubmitEvidenceParams

NewSubmitEvidenceParamsWithContext creates a new SubmitEvidenceParams object with the ability to set a context for a request.

func NewSubmitEvidenceParamsWithHTTPClient

func NewSubmitEvidenceParamsWithHTTPClient(client *http.Client) *SubmitEvidenceParams

NewSubmitEvidenceParamsWithHTTPClient creates a new SubmitEvidenceParams object with the ability to set a custom HTTPClient for a request.

func NewSubmitEvidenceParamsWithTimeout

func NewSubmitEvidenceParamsWithTimeout(timeout time.Duration) *SubmitEvidenceParams

NewSubmitEvidenceParamsWithTimeout creates a new SubmitEvidenceParams object with the ability to set a timeout on a request.

func (*SubmitEvidenceParams) SetContext

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

SetContext adds the context to the submit evidence params

func (*SubmitEvidenceParams) SetDefaults

func (o *SubmitEvidenceParams) SetDefaults()

SetDefaults hydrates default values in the submit evidence params (not the query body).

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

func (*SubmitEvidenceParams) SetDisputeID

func (o *SubmitEvidenceParams) SetDisputeID(disputeID string)

SetDisputeID adds the disputeId to the submit evidence params

func (*SubmitEvidenceParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the submit evidence params

func (*SubmitEvidenceParams) SetTimeout

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

SetTimeout adds the timeout to the submit evidence params

func (*SubmitEvidenceParams) WithContext

WithContext adds the context to the submit evidence params

func (*SubmitEvidenceParams) WithDefaults

func (o *SubmitEvidenceParams) WithDefaults() *SubmitEvidenceParams

WithDefaults hydrates default values in the submit evidence params (not the query body).

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

func (*SubmitEvidenceParams) WithDisputeID

func (o *SubmitEvidenceParams) WithDisputeID(disputeID string) *SubmitEvidenceParams

WithDisputeID adds the disputeID to the submit evidence params

func (*SubmitEvidenceParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the submit evidence params

func (*SubmitEvidenceParams) WithTimeout

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

WithTimeout adds the timeout to the submit evidence params

func (*SubmitEvidenceParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type SubmitEvidenceReader

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

SubmitEvidenceReader is a Reader for the SubmitEvidence structure.

func (*SubmitEvidenceReader) ReadResponse

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

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL