productgroups

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: 7 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 productgroups client. Thread-safe.

func NewClient

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

NewClient constructs a Productgroups Client

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

func (*Client) DeviceFingerprint

func (c *Client) DeviceFingerprint(paymentProductGroupID string, body product.DeviceFingerprintRequest, context communication.CallContext) (product.DeviceFingerprintResponse, error)

DeviceFingerprint represents the resource /{merchantId}/productgroups/{paymentProductGroupId}/deviceFingerprint - Get device fingerprint Documentation can be found at https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/go/productgroups/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) Find

Find represents the resource /{merchantId}/productgroups - Get payment product groups Documentation can be found at https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/go/productgroups/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(paymentProductGroupID string, query GetParams, context communication.CallContext) (product.PaymentProductGroupResponse, error)

Get represents the resource /{merchantId}/productgroups/{paymentProductGroupId} - Get payment product group Documentation can be found at https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/go/productgroups/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

type FindParams

type FindParams struct {
	CountryCode  *string
	CurrencyCode *string
	Locale       *string
	Amount       *int64
	IsRecurring  *bool
	Hide         []string
}

FindParams represents query parameters for Get payment product groups Documentation can be found at https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/go/productgroups/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
	Hide         []string
}

GetParams represents query parameters for Get payment product group Documentation can be found at https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/go/productgroups/get.html

func NewGetParams

func NewGetParams() *GetParams

NewGetParams constructs an instance of GetParams

func (*GetParams) AddHide

func (params *GetParams) AddHide(value string)

AddHide adds an element to the Hide array.

func (*GetParams) ToRequestParameters

func (params *GetParams) ToRequestParameters() communicator.RequestParams

ToRequestParameters converts the query to communicator.RequestParams

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