Class FilesClient
Files client. Thread-safe.
Inherited Members
Namespace: Ingenico.Connect.Sdk.Merchant.Files
Assembly: connect-sdk-dotnet.dll
Syntax
public class FilesClient : ApiResource
Constructors
FilesClient(ApiResource, IDictionary<string, string>)
Declaration
public FilesClient(ApiResource parent, IDictionary<string, string> pathContext)
Parameters
Type | Name | Description |
---|---|---|
ApiResource | parent | |
IDictionary<string, string> | pathContext |
Methods
GetFile(string, Action<Stream, IEnumerable<IResponseHeader>>, CallContext)
Resource /{merchantId}/files/{fileId}
Declaration
public Task GetFile(string fileId, Action<Stream, IEnumerable<IResponseHeader>> bodyHandler, CallContext context = null)
Parameters
Type | Name | Description |
---|---|---|
string | fileId | string |
Action<Stream, IEnumerable<IResponseHeader>> | bodyHandler | A callback that receives the contents of the body as a stream |
CallContext | context | CallContext |
Returns
Type | Description |
---|---|
Task |
Exceptions
Type | Condition |
---|---|
ValidationException | if the request was not correct and couldn't be processed (HTTP status code BadRequest) |
AuthorizationException | if the request was not allowed (HTTP status code Forbidden) |
IdempotenceException | if an idempotent request caused a conflict (HTTP status code Conflict) |
ReferenceException | if an object was attempted to be referenced that doesn't exist or has been removed, or there was a conflict (HTTP status code NotFound, Conflict or Gone) |
GlobalCollectException | 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 InternalServerError, BadGateway or ServiceUnavailable) |
ApiException | if the Ingenico ePayments platform returned any other error |