Versions in this module Expand all Collapse all v2 v2.1.0 Jun 25, 2020 Changes in this version + const LibName + const LibVersion + var ContextAPIKey = contextKey("apikey") + var ContextAccessToken = contextKey("accesstoken") + var ContextBasicAuth = contextKey("basic") + var ContextOAuth2 = contextKey("token") + var ErrInvalidNullable = errors.New("nullable cannot have non-zero Value and ExplicitNull simultaneously") + var ResultCodeValues = [...]string + func CacheExpires(r *http.Response) time.Time + func PtrBool(v bool) *bool + func PtrFloat32(v float32) *float32 + func PtrFloat64(v float64) *float64 + func PtrInt(v int) *int + func PtrInt32(v int32) *int32 + func PtrInt64(v int64) *int64 + func PtrString(v string) *string + func PtrTime(v time.Time) *time.Time + func SelectHeaderAccept(accepts []string) string + func SelectHeaderContentType(contentTypes []string) string + type APIError struct + Code string + Err string + Message string + RawBody []byte + Status float64 + Type string + func NewAPIError(body []byte, errMsg string) APIError + func (e APIError) Error() string + type APIKey struct + Key string + Prefix string + type APIResponse struct + Message string + Method string + Operation string + Payload []byte + RequestURL string + func NewAPIResponse(r *http.Response) *APIResponse + func NewAPIResponseWithError(errorMessage string) *APIResponse + type BasicAuth struct + Password string + UserName string + type Client struct + Cfg *Config + func (c *Client) CallAPI(request *http.Request) (*http.Response, error) + func (c *Client) Decode(v interface{}, b []byte, contentType string) (err error) + func (c *Client) MakeHTTPPostRequest(req interface{}, res interface{}, path string, ctxs ...context.Context) (*http.Response, error) + func (c *Client) PrepareRequest(ctx context.Context, path string, method string, postBody interface{}, ...) (localVarRequest *http.Request, err error) + type Config struct + ApiKey string + CertificatePath string + CheckoutEndpoint string + ConnectionTimeoutMillis time.Duration + Debug bool + DefaultHeader map[string]string + Endpoint string + Environment Environment + HTTPClient *http.Client + LiveEndpointURLPrefix string + MarketPayEndpoint string + MerchantAccount string + Password string + TerminalApiCloudEndpoint string + TerminalApiLocalEndpoint string + TerminalCertificatePath string + UserAgent string + Username string + func (c *Config) AddDefaultHeader(key string, value string) + func (c *Config) GetCheckoutEndpoint() (string, error) + type Environment string + const LiveEnv + const TestEnv + type NullableBool struct + ExplicitNull bool + Value bool + func (v *NullableBool) UnmarshalJSON(src []byte) error + func (v NullableBool) MarshalJSON() ([]byte, error) + type NullableFloat32 struct + ExplicitNull bool + Value float32 + func (v *NullableFloat32) UnmarshalJSON(src []byte) error + func (v NullableFloat32) MarshalJSON() ([]byte, error) + type NullableFloat64 struct + ExplicitNull bool + Value float64 + func (v *NullableFloat64) UnmarshalJSON(src []byte) error + func (v NullableFloat64) MarshalJSON() ([]byte, error) + type NullableInt struct + ExplicitNull bool + Value int + func (v *NullableInt) UnmarshalJSON(src []byte) error + func (v NullableInt) MarshalJSON() ([]byte, error) + type NullableInt32 struct + ExplicitNull bool + Value int32 + func (v *NullableInt32) UnmarshalJSON(src []byte) error + func (v NullableInt32) MarshalJSON() ([]byte, error) + type NullableInt64 struct + ExplicitNull bool + Value int64 + func (v *NullableInt64) UnmarshalJSON(src []byte) error + func (v NullableInt64) MarshalJSON() ([]byte, error) + type NullableString struct + ExplicitNull bool + Value string + func (v *NullableString) UnmarshalJSON(src []byte) error + func (v NullableString) MarshalJSON() ([]byte, error) + type NullableTime struct + ExplicitNull bool + Value time.Time + func (v *NullableTime) UnmarshalJSON(src []byte) error + func (v NullableTime) MarshalJSON() ([]byte, error) + type ResultCode int + const AuthenticationFinished + const AuthenticationNotRequired + const Authorised + const Cancelled + const ChallengeShopper + const Error + const IdentifyShopper + const Pending + const PresentToShopper + const Received + const RedirectShopper + const Refused + func ResultCodeFromString(value string) (ResultCode, error) + func (s *ResultCode) MarshalJSON() ([]byte, error) + func (s *ResultCode) UnmarshalJSON(b []byte) error + func (s ResultCode) String() string + type Service struct + BasePath func() string + Client *Client Other modules containing this package github.com/adyen/adyen-go-api-library github.com/adyen/adyen-go-api-library/v3 github.com/adyen/adyen-go-api-library/v4 github.com/adyen/adyen-go-api-library/v5 github.com/adyen/adyen-go-api-library/v6 github.com/adyen/adyen-go-api-library/v7 github.com/adyen/adyen-go-api-library/v8 github.com/adyen/adyen-go-api-library/v9