Documentation ¶
Index ¶
- type Client
- func (c *Client) Bankaccount(body services.BankDetailsRequest, context communication.CallContext) (services.BankDetailsResponse, error)
- func (c *Client) ConvertAmount(query ConvertAmountParams, context communication.CallContext) (services.ConvertAmount, error)
- func (c *Client) GetIINdetails(body services.GetIINDetailsRequest, context communication.CallContext) (services.GetIINDetailsResponse, error)
- func (c *Client) Privacypolicy(query PrivacypolicyParams, context communication.CallContext) (services.GetPrivacyPolicyResponse, error)
- func (c *Client) Testconnection(context communication.CallContext) (services.TestConnection, error)
- type ConvertAmountParams
- type PrivacypolicyParams
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 services client. Thread-safe.
func NewClient ¶
func NewClient(parent *apiresource.APIResource, pathContext map[string]string) *Client
NewClient constructs a Services Client
parent is the *apiresource.APIResource on top of which we want to build the new Services Client
func (*Client) Bankaccount ¶
func (c *Client) Bankaccount(body services.BankDetailsRequest, context communication.CallContext) (services.BankDetailsResponse, error)
Bankaccount represents the resource /{merchantId}/services/convert/bankaccount - Convert bankaccount Documentation can be found at https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/go/services/bankaccount.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) ConvertAmount ¶
func (c *Client) ConvertAmount(query ConvertAmountParams, context communication.CallContext) (services.ConvertAmount, error)
ConvertAmount represents the resource /{merchantId}/services/convert/amount - Convert amount Documentation can be found at https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/go/services/convertAmount.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) GetIINdetails ¶
func (c *Client) GetIINdetails(body services.GetIINDetailsRequest, context communication.CallContext) (services.GetIINDetailsResponse, error)
GetIINdetails represents the resource /{merchantId}/services/getIINdetails - Get IIN details Documentation can be found at https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/go/services/getIINdetails.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) Privacypolicy ¶
func (c *Client) Privacypolicy(query PrivacypolicyParams, context communication.CallContext) (services.GetPrivacyPolicyResponse, error)
Privacypolicy represents the resource /{merchantId}/services/privacypolicy - Get privacy policy Documentation can be found at https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/go/services/privacypolicy.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) Testconnection ¶
func (c *Client) Testconnection(context communication.CallContext) (services.TestConnection, error)
Testconnection represents the resource /{merchantId}/services/testconnection - Test connection Documentation can be found at https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/go/services/testconnection.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 ConvertAmountParams ¶
ConvertAmountParams represents query parameters for Convert amount Documentation can be found at https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/go/services/convertAmount.html
func NewConvertAmountParams ¶
func NewConvertAmountParams() *ConvertAmountParams
NewConvertAmountParams constructs an instance of ConvertAmountParams
func (*ConvertAmountParams) ToRequestParameters ¶
func (params *ConvertAmountParams) ToRequestParameters() communicator.RequestParams
ToRequestParameters converts the query to communicator.RequestParams
type PrivacypolicyParams ¶
PrivacypolicyParams represents query parameters for Get privacy policy Documentation can be found at https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/go/services/privacypolicy.html
func NewPrivacypolicyParams ¶
func NewPrivacypolicyParams() *PrivacypolicyParams
NewPrivacypolicyParams constructs an instance of PrivacypolicyParams
func (*PrivacypolicyParams) ToRequestParameters ¶
func (params *PrivacypolicyParams) ToRequestParameters() communicator.RequestParams
ToRequestParameters converts the query to communicator.RequestParams