Documentation ¶
Index ¶
- type AcceptDisputeOK
- type AcceptDisputeParams
- func (o *AcceptDisputeParams) SetContext(ctx context.Context)
- func (o *AcceptDisputeParams) SetDefaults()
- func (o *AcceptDisputeParams) SetDisputeID(disputeID string)
- func (o *AcceptDisputeParams) SetHTTPClient(client *http.Client)
- func (o *AcceptDisputeParams) SetTimeout(timeout time.Duration)
- func (o *AcceptDisputeParams) WithContext(ctx context.Context) *AcceptDisputeParams
- func (o *AcceptDisputeParams) WithDefaults() *AcceptDisputeParams
- func (o *AcceptDisputeParams) WithDisputeID(disputeID string) *AcceptDisputeParams
- func (o *AcceptDisputeParams) WithHTTPClient(client *http.Client) *AcceptDisputeParams
- func (o *AcceptDisputeParams) WithTimeout(timeout time.Duration) *AcceptDisputeParams
- func (o *AcceptDisputeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type AcceptDisputeReader
- type Client
- func (a *Client) AcceptDispute(params *AcceptDisputeParams, authInfo runtime.ClientAuthInfoWriter, ...) (*AcceptDisputeOK, error)
- func (a *Client) CreateDisputeEvidenceText(params *CreateDisputeEvidenceTextParams, authInfo runtime.ClientAuthInfoWriter, ...) (*CreateDisputeEvidenceTextOK, error)
- func (a *Client) ListDisputeEvidence(params *ListDisputeEvidenceParams, authInfo runtime.ClientAuthInfoWriter, ...) (*ListDisputeEvidenceOK, error)
- func (a *Client) ListDisputes(params *ListDisputesParams, authInfo runtime.ClientAuthInfoWriter, ...) (*ListDisputesOK, error)
- func (a *Client) RemoveDisputeEvidence(params *RemoveDisputeEvidenceParams, authInfo runtime.ClientAuthInfoWriter, ...) (*RemoveDisputeEvidenceOK, error)
- func (a *Client) RetrieveDispute(params *RetrieveDisputeParams, authInfo runtime.ClientAuthInfoWriter, ...) (*RetrieveDisputeOK, error)
- func (a *Client) RetrieveDisputeEvidence(params *RetrieveDisputeEvidenceParams, authInfo runtime.ClientAuthInfoWriter, ...) (*RetrieveDisputeEvidenceOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) SubmitEvidence(params *SubmitEvidenceParams, authInfo runtime.ClientAuthInfoWriter, ...) (*SubmitEvidenceOK, error)
- type ClientOption
- type ClientService
- type CreateDisputeEvidenceTextOK
- type CreateDisputeEvidenceTextParams
- func NewCreateDisputeEvidenceTextParams() *CreateDisputeEvidenceTextParams
- func NewCreateDisputeEvidenceTextParamsWithContext(ctx context.Context) *CreateDisputeEvidenceTextParams
- func NewCreateDisputeEvidenceTextParamsWithHTTPClient(client *http.Client) *CreateDisputeEvidenceTextParams
- func NewCreateDisputeEvidenceTextParamsWithTimeout(timeout time.Duration) *CreateDisputeEvidenceTextParams
- func (o *CreateDisputeEvidenceTextParams) SetBody(body *models.CreateDisputeEvidenceTextRequest)
- func (o *CreateDisputeEvidenceTextParams) SetContext(ctx context.Context)
- func (o *CreateDisputeEvidenceTextParams) SetDefaults()
- func (o *CreateDisputeEvidenceTextParams) SetDisputeID(disputeID string)
- func (o *CreateDisputeEvidenceTextParams) SetHTTPClient(client *http.Client)
- func (o *CreateDisputeEvidenceTextParams) SetTimeout(timeout time.Duration)
- func (o *CreateDisputeEvidenceTextParams) WithBody(body *models.CreateDisputeEvidenceTextRequest) *CreateDisputeEvidenceTextParams
- func (o *CreateDisputeEvidenceTextParams) WithContext(ctx context.Context) *CreateDisputeEvidenceTextParams
- func (o *CreateDisputeEvidenceTextParams) WithDefaults() *CreateDisputeEvidenceTextParams
- func (o *CreateDisputeEvidenceTextParams) WithDisputeID(disputeID string) *CreateDisputeEvidenceTextParams
- func (o *CreateDisputeEvidenceTextParams) WithHTTPClient(client *http.Client) *CreateDisputeEvidenceTextParams
- func (o *CreateDisputeEvidenceTextParams) WithTimeout(timeout time.Duration) *CreateDisputeEvidenceTextParams
- func (o *CreateDisputeEvidenceTextParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateDisputeEvidenceTextReader
- type ListDisputeEvidenceOK
- type ListDisputeEvidenceParams
- func NewListDisputeEvidenceParams() *ListDisputeEvidenceParams
- func NewListDisputeEvidenceParamsWithContext(ctx context.Context) *ListDisputeEvidenceParams
- func NewListDisputeEvidenceParamsWithHTTPClient(client *http.Client) *ListDisputeEvidenceParams
- func NewListDisputeEvidenceParamsWithTimeout(timeout time.Duration) *ListDisputeEvidenceParams
- func (o *ListDisputeEvidenceParams) SetContext(ctx context.Context)
- func (o *ListDisputeEvidenceParams) SetDefaults()
- func (o *ListDisputeEvidenceParams) SetDisputeID(disputeID string)
- func (o *ListDisputeEvidenceParams) SetHTTPClient(client *http.Client)
- func (o *ListDisputeEvidenceParams) SetTimeout(timeout time.Duration)
- func (o *ListDisputeEvidenceParams) WithContext(ctx context.Context) *ListDisputeEvidenceParams
- func (o *ListDisputeEvidenceParams) WithDefaults() *ListDisputeEvidenceParams
- func (o *ListDisputeEvidenceParams) WithDisputeID(disputeID string) *ListDisputeEvidenceParams
- func (o *ListDisputeEvidenceParams) WithHTTPClient(client *http.Client) *ListDisputeEvidenceParams
- func (o *ListDisputeEvidenceParams) WithTimeout(timeout time.Duration) *ListDisputeEvidenceParams
- func (o *ListDisputeEvidenceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListDisputeEvidenceReader
- type ListDisputesOK
- type ListDisputesParams
- func (o *ListDisputesParams) SetContext(ctx context.Context)
- func (o *ListDisputesParams) SetCursor(cursor *string)
- func (o *ListDisputesParams) SetDefaults()
- func (o *ListDisputesParams) SetHTTPClient(client *http.Client)
- func (o *ListDisputesParams) SetLocationID(locationID *string)
- func (o *ListDisputesParams) SetStates(states *string)
- func (o *ListDisputesParams) SetTimeout(timeout time.Duration)
- func (o *ListDisputesParams) WithContext(ctx context.Context) *ListDisputesParams
- func (o *ListDisputesParams) WithCursor(cursor *string) *ListDisputesParams
- func (o *ListDisputesParams) WithDefaults() *ListDisputesParams
- func (o *ListDisputesParams) WithHTTPClient(client *http.Client) *ListDisputesParams
- func (o *ListDisputesParams) WithLocationID(locationID *string) *ListDisputesParams
- func (o *ListDisputesParams) WithStates(states *string) *ListDisputesParams
- func (o *ListDisputesParams) WithTimeout(timeout time.Duration) *ListDisputesParams
- func (o *ListDisputesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListDisputesReader
- type RemoveDisputeEvidenceOK
- type RemoveDisputeEvidenceParams
- func NewRemoveDisputeEvidenceParams() *RemoveDisputeEvidenceParams
- func NewRemoveDisputeEvidenceParamsWithContext(ctx context.Context) *RemoveDisputeEvidenceParams
- func NewRemoveDisputeEvidenceParamsWithHTTPClient(client *http.Client) *RemoveDisputeEvidenceParams
- func NewRemoveDisputeEvidenceParamsWithTimeout(timeout time.Duration) *RemoveDisputeEvidenceParams
- func (o *RemoveDisputeEvidenceParams) SetContext(ctx context.Context)
- func (o *RemoveDisputeEvidenceParams) SetDefaults()
- func (o *RemoveDisputeEvidenceParams) SetDisputeID(disputeID string)
- func (o *RemoveDisputeEvidenceParams) SetEvidenceID(evidenceID string)
- func (o *RemoveDisputeEvidenceParams) SetHTTPClient(client *http.Client)
- func (o *RemoveDisputeEvidenceParams) SetTimeout(timeout time.Duration)
- func (o *RemoveDisputeEvidenceParams) WithContext(ctx context.Context) *RemoveDisputeEvidenceParams
- func (o *RemoveDisputeEvidenceParams) WithDefaults() *RemoveDisputeEvidenceParams
- func (o *RemoveDisputeEvidenceParams) WithDisputeID(disputeID string) *RemoveDisputeEvidenceParams
- func (o *RemoveDisputeEvidenceParams) WithEvidenceID(evidenceID string) *RemoveDisputeEvidenceParams
- func (o *RemoveDisputeEvidenceParams) WithHTTPClient(client *http.Client) *RemoveDisputeEvidenceParams
- func (o *RemoveDisputeEvidenceParams) WithTimeout(timeout time.Duration) *RemoveDisputeEvidenceParams
- func (o *RemoveDisputeEvidenceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type RemoveDisputeEvidenceReader
- type RetrieveDisputeEvidenceOK
- type RetrieveDisputeEvidenceParams
- func NewRetrieveDisputeEvidenceParams() *RetrieveDisputeEvidenceParams
- func NewRetrieveDisputeEvidenceParamsWithContext(ctx context.Context) *RetrieveDisputeEvidenceParams
- func NewRetrieveDisputeEvidenceParamsWithHTTPClient(client *http.Client) *RetrieveDisputeEvidenceParams
- func NewRetrieveDisputeEvidenceParamsWithTimeout(timeout time.Duration) *RetrieveDisputeEvidenceParams
- func (o *RetrieveDisputeEvidenceParams) SetContext(ctx context.Context)
- func (o *RetrieveDisputeEvidenceParams) SetDefaults()
- func (o *RetrieveDisputeEvidenceParams) SetDisputeID(disputeID string)
- func (o *RetrieveDisputeEvidenceParams) SetEvidenceID(evidenceID string)
- func (o *RetrieveDisputeEvidenceParams) SetHTTPClient(client *http.Client)
- func (o *RetrieveDisputeEvidenceParams) SetTimeout(timeout time.Duration)
- func (o *RetrieveDisputeEvidenceParams) WithContext(ctx context.Context) *RetrieveDisputeEvidenceParams
- func (o *RetrieveDisputeEvidenceParams) WithDefaults() *RetrieveDisputeEvidenceParams
- func (o *RetrieveDisputeEvidenceParams) WithDisputeID(disputeID string) *RetrieveDisputeEvidenceParams
- func (o *RetrieveDisputeEvidenceParams) WithEvidenceID(evidenceID string) *RetrieveDisputeEvidenceParams
- func (o *RetrieveDisputeEvidenceParams) WithHTTPClient(client *http.Client) *RetrieveDisputeEvidenceParams
- func (o *RetrieveDisputeEvidenceParams) WithTimeout(timeout time.Duration) *RetrieveDisputeEvidenceParams
- func (o *RetrieveDisputeEvidenceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type RetrieveDisputeEvidenceReader
- type RetrieveDisputeOK
- type RetrieveDisputeParams
- func NewRetrieveDisputeParams() *RetrieveDisputeParams
- func NewRetrieveDisputeParamsWithContext(ctx context.Context) *RetrieveDisputeParams
- func NewRetrieveDisputeParamsWithHTTPClient(client *http.Client) *RetrieveDisputeParams
- func NewRetrieveDisputeParamsWithTimeout(timeout time.Duration) *RetrieveDisputeParams
- func (o *RetrieveDisputeParams) SetContext(ctx context.Context)
- func (o *RetrieveDisputeParams) SetDefaults()
- func (o *RetrieveDisputeParams) SetDisputeID(disputeID string)
- func (o *RetrieveDisputeParams) SetHTTPClient(client *http.Client)
- func (o *RetrieveDisputeParams) SetTimeout(timeout time.Duration)
- func (o *RetrieveDisputeParams) WithContext(ctx context.Context) *RetrieveDisputeParams
- func (o *RetrieveDisputeParams) WithDefaults() *RetrieveDisputeParams
- func (o *RetrieveDisputeParams) WithDisputeID(disputeID string) *RetrieveDisputeParams
- func (o *RetrieveDisputeParams) WithHTTPClient(client *http.Client) *RetrieveDisputeParams
- func (o *RetrieveDisputeParams) WithTimeout(timeout time.Duration) *RetrieveDisputeParams
- func (o *RetrieveDisputeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type RetrieveDisputeReader
- type SubmitEvidenceOK
- type SubmitEvidenceParams
- func NewSubmitEvidenceParams() *SubmitEvidenceParams
- func NewSubmitEvidenceParamsWithContext(ctx context.Context) *SubmitEvidenceParams
- func NewSubmitEvidenceParamsWithHTTPClient(client *http.Client) *SubmitEvidenceParams
- func NewSubmitEvidenceParamsWithTimeout(timeout time.Duration) *SubmitEvidenceParams
- func (o *SubmitEvidenceParams) SetContext(ctx context.Context)
- func (o *SubmitEvidenceParams) SetDefaults()
- func (o *SubmitEvidenceParams) SetDisputeID(disputeID string)
- func (o *SubmitEvidenceParams) SetHTTPClient(client *http.Client)
- func (o *SubmitEvidenceParams) SetTimeout(timeout time.Duration)
- func (o *SubmitEvidenceParams) WithContext(ctx context.Context) *SubmitEvidenceParams
- func (o *SubmitEvidenceParams) WithDefaults() *SubmitEvidenceParams
- func (o *SubmitEvidenceParams) WithDisputeID(disputeID string) *SubmitEvidenceParams
- func (o *SubmitEvidenceParams) WithHTTPClient(client *http.Client) *SubmitEvidenceParams
- func (o *SubmitEvidenceParams) WithTimeout(timeout time.Duration) *SubmitEvidenceParams
- func (o *SubmitEvidenceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type SubmitEvidenceReader
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 ¶
func (o *AcceptDisputeParams) WithContext(ctx context.Context) *AcceptDisputeParams
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 (o *CreateDisputeEvidenceTextOK) Error() string
func (*CreateDisputeEvidenceTextOK) GetPayload ¶
func (o *CreateDisputeEvidenceTextOK) GetPayload() *models.CreateDisputeEvidenceTextResponse
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 ¶
func (o *CreateDisputeEvidenceTextParams) SetBody(body *models.CreateDisputeEvidenceTextRequest)
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 ¶
func (o *CreateDisputeEvidenceTextParams) WithBody(body *models.CreateDisputeEvidenceTextRequest) *CreateDisputeEvidenceTextParams
WithBody adds the body to the create dispute evidence text params
func (*CreateDisputeEvidenceTextParams) WithContext ¶
func (o *CreateDisputeEvidenceTextParams) WithContext(ctx context.Context) *CreateDisputeEvidenceTextParams
WithContext adds the context to the create dispute evidence text params
func (*CreateDisputeEvidenceTextParams) WithDefaults ¶
func (o *CreateDisputeEvidenceTextParams) WithDefaults() *CreateDisputeEvidenceTextParams
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 ¶
func (o *CreateDisputeEvidenceTextParams) WithDisputeID(disputeID string) *CreateDisputeEvidenceTextParams
WithDisputeID adds the disputeID to the create dispute evidence text params
func (*CreateDisputeEvidenceTextParams) WithHTTPClient ¶
func (o *CreateDisputeEvidenceTextParams) WithHTTPClient(client *http.Client) *CreateDisputeEvidenceTextParams
WithHTTPClient adds the HTTPClient to the create dispute evidence text params
func (*CreateDisputeEvidenceTextParams) WithTimeout ¶
func (o *CreateDisputeEvidenceTextParams) WithTimeout(timeout time.Duration) *CreateDisputeEvidenceTextParams
WithTimeout adds the timeout to the create dispute evidence text params
func (*CreateDisputeEvidenceTextParams) WriteToRequest ¶
func (o *CreateDisputeEvidenceTextParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *ListDisputeEvidenceOK) GetPayload() *models.ListDisputeEvidenceResponse
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 ¶
func (o *ListDisputeEvidenceParams) WithContext(ctx context.Context) *ListDisputeEvidenceParams
WithContext adds the context to the list dispute evidence params
func (*ListDisputeEvidenceParams) WithDefaults ¶
func (o *ListDisputeEvidenceParams) WithDefaults() *ListDisputeEvidenceParams
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 ¶
func (o *ListDisputeEvidenceParams) WithTimeout(timeout time.Duration) *ListDisputeEvidenceParams
WithTimeout adds the timeout to the list dispute evidence params
func (*ListDisputeEvidenceParams) WriteToRequest ¶
func (o *ListDisputeEvidenceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *ListDisputesParams) WithContext(ctx context.Context) *ListDisputesParams
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 ¶
func (o *RemoveDisputeEvidenceOK) GetPayload() *models.RemoveDisputeEvidenceResponse
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 ¶
func (o *RemoveDisputeEvidenceParams) WithContext(ctx context.Context) *RemoveDisputeEvidenceParams
WithContext adds the context to the remove dispute evidence params
func (*RemoveDisputeEvidenceParams) WithDefaults ¶
func (o *RemoveDisputeEvidenceParams) WithDefaults() *RemoveDisputeEvidenceParams
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 ¶
func (o *RemoveDisputeEvidenceParams) WithHTTPClient(client *http.Client) *RemoveDisputeEvidenceParams
WithHTTPClient adds the HTTPClient to the remove dispute evidence params
func (*RemoveDisputeEvidenceParams) WithTimeout ¶
func (o *RemoveDisputeEvidenceParams) WithTimeout(timeout time.Duration) *RemoveDisputeEvidenceParams
WithTimeout adds the timeout to the remove dispute evidence params
func (*RemoveDisputeEvidenceParams) WriteToRequest ¶
func (o *RemoveDisputeEvidenceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *RetrieveDisputeEvidenceOK) GetPayload() *models.RetrieveDisputeEvidenceResponse
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 ¶
func (o *RetrieveDisputeEvidenceParams) WithContext(ctx context.Context) *RetrieveDisputeEvidenceParams
WithContext adds the context to the retrieve dispute evidence params
func (*RetrieveDisputeEvidenceParams) WithDefaults ¶
func (o *RetrieveDisputeEvidenceParams) WithDefaults() *RetrieveDisputeEvidenceParams
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 ¶
func (o *RetrieveDisputeEvidenceParams) WithDisputeID(disputeID string) *RetrieveDisputeEvidenceParams
WithDisputeID adds the disputeID to the retrieve dispute evidence params
func (*RetrieveDisputeEvidenceParams) WithEvidenceID ¶
func (o *RetrieveDisputeEvidenceParams) WithEvidenceID(evidenceID string) *RetrieveDisputeEvidenceParams
WithEvidenceID adds the evidenceID to the retrieve dispute evidence params
func (*RetrieveDisputeEvidenceParams) WithHTTPClient ¶
func (o *RetrieveDisputeEvidenceParams) WithHTTPClient(client *http.Client) *RetrieveDisputeEvidenceParams
WithHTTPClient adds the HTTPClient to the retrieve dispute evidence params
func (*RetrieveDisputeEvidenceParams) WithTimeout ¶
func (o *RetrieveDisputeEvidenceParams) WithTimeout(timeout time.Duration) *RetrieveDisputeEvidenceParams
WithTimeout adds the timeout to the retrieve dispute evidence params
func (*RetrieveDisputeEvidenceParams) WriteToRequest ¶
func (o *RetrieveDisputeEvidenceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *RetrieveDisputeOK) GetPayload() *models.RetrieveDisputeResponse
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 ¶
func (o *RetrieveDisputeParams) WithContext(ctx context.Context) *RetrieveDisputeParams
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 ¶
func (o *SubmitEvidenceOK) GetPayload() *models.SubmitEvidenceResponse
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 ¶
func (o *SubmitEvidenceParams) WithContext(ctx context.Context) *SubmitEvidenceParams
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.
Source Files ¶
- accept_dispute_parameters.go
- accept_dispute_responses.go
- create_dispute_evidence_text_parameters.go
- create_dispute_evidence_text_responses.go
- disputes_client.go
- list_dispute_evidence_parameters.go
- list_dispute_evidence_responses.go
- list_disputes_parameters.go
- list_disputes_responses.go
- remove_dispute_evidence_parameters.go
- remove_dispute_evidence_responses.go
- retrieve_dispute_evidence_parameters.go
- retrieve_dispute_evidence_responses.go
- retrieve_dispute_parameters.go
- retrieve_dispute_responses.go
- submit_evidence_parameters.go
- submit_evidence_responses.go