disputes

package
Version: v0.0.0-...-e18a67d Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2021 License: BSD-3-Clause, MIT Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client represents a disputes client. Thread-safe.

func NewClient

func NewClient(parent *apiresource.APIResource, pathContext map[string]string) *Client

NewClient constructs a Disputes Client

parent is the *apiresource.APIResource on top of which we want to build the new Disputes Client

func (*Client) Cancel

func (c *Client) Cancel(disputeID string, context communication.CallContext) (dispute.Response, error)

Cancel represents the resource /{merchantId}/disputes/{disputeId}/cancel - Cancel dispute Documentation can be found at https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/go/disputes/cancel.html

Can return any of the following errors: * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) * AuthorizationError if the request was not allowed (HTTP status code 403) * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, or there was a conflict (HTTP status code 404, 409 or 410) * GlobalCollectError if something went wrong at the Ingenico ePayments platform, the Ingenico ePayments platform was unable to process a message from a downstream partner/acquirer, or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) * APIError if the Ingenico ePayments platform returned any other error

func (*Client) Get

func (c *Client) Get(disputeID string, context communication.CallContext) (dispute.Response, error)

Get represents the resource /{merchantId}/disputes/{disputeId} - Get dispute Documentation can be found at https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/go/disputes/get.html

Can return any of the following errors: * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) * AuthorizationError if the request was not allowed (HTTP status code 403) * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, or there was a conflict (HTTP status code 404, 409 or 410) * GlobalCollectError if something went wrong at the Ingenico ePayments platform, the Ingenico ePayments platform was unable to process a message from a downstream partner/acquirer, or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) * APIError if the Ingenico ePayments platform returned any other error

func (*Client) Submit

func (c *Client) Submit(disputeID string, context communication.CallContext) (dispute.Response, error)

Submit represents the resource /{merchantId}/disputes/{disputeId}/submit - Submit dispute Documentation can be found at https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/go/disputes/submit.html

Can return any of the following errors: * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) * AuthorizationError if the request was not allowed (HTTP status code 403) * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, or there was a conflict (HTTP status code 404, 409 or 410) * GlobalCollectError if something went wrong at the Ingenico ePayments platform, the Ingenico ePayments platform was unable to process a message from a downstream partner/acquirer, or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) * APIError if the Ingenico ePayments platform returned any other error

func (*Client) UploadFile

UploadFile represents the resource /{merchantId}/disputes/{disputeId} - Upload File Documentation can be found at https://epayments-api.developer-ingenico.com/fileserviceapi/v1/en_US/go/disputes/uploadFile.html

Can return any of the following errors: * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) * AuthorizationError if the request was not allowed (HTTP status code 403) * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, or there was a conflict (HTTP status code 404, 409 or 410) * GlobalCollectError if something went wrong at the Ingenico ePayments platform, the Ingenico ePayments platform was unable to process a message from a downstream partner/acquirer, or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) * APIError if the Ingenico ePayments platform returned any other error

type UploadFileRequest

type UploadFileRequest struct {
	File *communication.UploadableFile
}

UploadFileRequest represents multipart/form-data parameters for Upload File Documentation can be found at https://epayments-api.developer-ingenico.com/fileserviceapi/v1/en_US/go/disputes/uploadFile.html

func NewUploadFileRequest

func NewUploadFileRequest() *UploadFileRequest

NewUploadFileRequest constructs an instance of UploadFileRequest

func (*UploadFileRequest) ToMultipartFormDataObject

func (request *UploadFileRequest) ToMultipartFormDataObject() *communication.MultipartFormDataObject

ToMultipartFormDataObject converts the multipart/form-data request to communication.MultipartFormDataObject

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL