Documentation ¶
Index ¶
- type Client
- func (c *Client) CustomerDetails(paymentProductID int32, body product.GetCustomerDetailsRequest, ...) (product.GetCustomerDetailsResponse, error)
- func (c *Client) DeviceFingerprint(paymentProductID int32, body product.DeviceFingerprintRequest, ...) (product.DeviceFingerprintResponse, error)
- func (c *Client) Directory(paymentProductID int32, query DirectoryParams, ...) (product.Directory, error)
- func (c *Client) Find(query FindParams, context communication.CallContext) (product.PaymentProducts, error)
- func (c *Client) Get(paymentProductID int32, query GetParams, context communication.CallContext) (product.PaymentProductResponse, error)
- func (c *Client) Networks(paymentProductID int32, query NetworksParams, ...) (product.PaymentProductNetworksResponse, error)
- func (c *Client) Sessions(paymentProductID int32, body product.CreatePaymentProductSessionRequest, ...) (product.CreatePaymentProductSessionResponse, error)
- type DirectoryParams
- type FindParams
- type GetParams
- type NetworksParams
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 products client. Thread-safe.
func NewClient ¶
func NewClient(parent *apiresource.APIResource, pathContext map[string]string) *Client
NewClient constructs a Products Client
parent is the *apiresource.APIResource on top of which we want to build the new Products Client
func (*Client) CustomerDetails ¶
func (c *Client) CustomerDetails(paymentProductID int32, body product.GetCustomerDetailsRequest, context communication.CallContext) (product.GetCustomerDetailsResponse, error)
CustomerDetails represents the resource /{merchantId}/products/{paymentProductId}/customerDetails - Get customer details Documentation can be found at https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/go/products/customerDetails.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) DeviceFingerprint ¶
func (c *Client) DeviceFingerprint(paymentProductID int32, body product.DeviceFingerprintRequest, context communication.CallContext) (product.DeviceFingerprintResponse, error)
DeviceFingerprint represents the resource /{merchantId}/products/{paymentProductId}/deviceFingerprint - Get device fingerprint Documentation can be found at https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/go/products/deviceFingerprint.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) Directory ¶
func (c *Client) Directory(paymentProductID int32, query DirectoryParams, context communication.CallContext) (product.Directory, error)
Directory represents the resource /{merchantId}/products/{paymentProductId}/directory - Get payment product directory Documentation can be found at https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/go/products/directory.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) Find ¶
func (c *Client) Find(query FindParams, context communication.CallContext) (product.PaymentProducts, error)
Find represents the resource /{merchantId}/products - Get payment products Documentation can be found at https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/go/products/find.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(paymentProductID int32, query GetParams, context communication.CallContext) (product.PaymentProductResponse, error)
Get represents the resource /{merchantId}/products/{paymentProductId} - Get payment product Documentation can be found at https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/go/products/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) Networks ¶
func (c *Client) Networks(paymentProductID int32, query NetworksParams, context communication.CallContext) (product.PaymentProductNetworksResponse, error)
Networks represents the resource /{merchantId}/products/{paymentProductId}/networks - Get payment product networks Documentation can be found at https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/go/products/networks.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) Sessions ¶
func (c *Client) Sessions(paymentProductID int32, body product.CreatePaymentProductSessionRequest, context communication.CallContext) (product.CreatePaymentProductSessionResponse, error)
Sessions represents the resource /{merchantId}/products/{paymentProductId}/sessions - Create session for payment product Documentation can be found at https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/go/products/sessions.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 DirectoryParams ¶
DirectoryParams represents query parameters for Get payment product directory Documentation can be found at https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/go/products/directory.html
func NewDirectoryParams ¶
func NewDirectoryParams() *DirectoryParams
NewDirectoryParams constructs an instance of DirectoryParams
func (*DirectoryParams) ToRequestParameters ¶
func (params *DirectoryParams) ToRequestParameters() communicator.RequestParams
ToRequestParameters converts the query to communicator.RequestParams
type FindParams ¶
type FindParams struct { CountryCode *string CurrencyCode *string Locale *string Amount *int64 IsRecurring *bool IsInstallments *bool Hide []string }
FindParams represents query parameters for Get payment products Documentation can be found at https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/go/products/find.html
func NewFindParams ¶
func NewFindParams() *FindParams
NewFindParams constructs an instance of FindParams
func (*FindParams) AddHide ¶
func (params *FindParams) AddHide(value string)
AddHide adds an element to the Hide array.
func (*FindParams) ToRequestParameters ¶
func (params *FindParams) ToRequestParameters() communicator.RequestParams
ToRequestParameters converts the query to communicator.RequestParams
type GetParams ¶
type GetParams struct { CountryCode *string CurrencyCode *string Locale *string Amount *int64 IsRecurring *bool IsInstallments *bool Hide []string ForceBasicFlow *bool }
GetParams represents query parameters for Get payment product Documentation can be found at https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/go/products/get.html
func (*GetParams) ToRequestParameters ¶
func (params *GetParams) ToRequestParameters() communicator.RequestParams
ToRequestParameters converts the query to communicator.RequestParams
type NetworksParams ¶
type NetworksParams struct { CountryCode *string CurrencyCode *string Amount *int64 IsRecurring *bool }
NetworksParams represents query parameters for Get payment product networks Documentation can be found at https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/go/products/networks.html
func NewNetworksParams ¶
func NewNetworksParams() *NetworksParams
NewNetworksParams constructs an instance of NetworksParams
func (*NetworksParams) ToRequestParameters ¶
func (params *NetworksParams) ToRequestParameters() communicator.RequestParams
ToRequestParameters converts the query to communicator.RequestParams