Versions in this module Expand all Collapse all v13 v13.0.0 Oct 21, 2024 Changes in this version + const LibName + const LibVersion + var ContextAPIKey = contextKey("apikey") + var ContextAccessToken = contextKey("accesstoken") + var ContextBasicAuth = contextKey("basic") + var ContextOAuth2 = contextKey("token") + func CacheExpires(r *http.Response) time.Time + func CreateHTTPRequest(c *Client, httpMethod string, req interface{}, res interface{}, path string, ...) (*http.Response, error) + func IdempotencyKey(ctx context.Context) (string, bool) + func IsNil(i interface{}) bool + func ParameterAddToHeaderOrQuery(headerOrQueryParams interface{}, keyPrefix string, obj interface{}, ...) + func ParameterAddToQuery(queryParams interface{}, keyPrefix string, obj interface{}, ...) + func ParameterValueToString(obj interface{}, key string) string + 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 + func SendAPIRequest(ctx context.Context, c *Client, req, res interface{}, httpMethod string, ...) (*http.Response, error) + func WithIdempotencyKey(ctx context.Context, idempotencyKey string) context.Context + 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) MakeHTTPDeleteRequest(res interface{}, path string, ctxs ...context.Context) (*http.Response, error) + func (c *Client) MakeHTTPGetRequest(res interface{}, path string, ctxs ...context.Context) (*http.Response, error) + func (c *Client) MakeHTTPPatchRequest(req interface{}, res interface{}, path string, ctxs ...context.Context) (*http.Response, 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 + BalancePlatformEndpoint string + CertificatePath string + CheckoutEndpoint string + ConnectionTimeoutMillis time.Duration + DataProtectionEndpoint string + Debug bool + DefaultHeader map[string]string + DisputesEndpoint string + Endpoint string + Environment Environment + HTTPClient *http.Client + LegalEntityEndpoint string + LiveEndpointURLPrefix string + ManagementEndpoint string + MarketPayEndpoint string + MerchantAccount string + Password string + PaymentsAppEndpoint string + PosTerminalManagementEndpoint string + TerminalApiCloudEndpoint string + TerminalApiLocalEndpoint string + TerminalCertificatePath string + TransfersEndpoint string + UserAgent string + Username string + func (c *Config) GetCheckoutEndpoint() (string, error) + type Environment string + const LiveEnv + const TestEnv + type InvalidField struct + Message string + Name string + Value string + func NewInvalidField(message string, name string, value string) *InvalidField + func NewInvalidFieldWithDefaults() *InvalidField + func (o *InvalidField) GetMessage() string + func (o *InvalidField) GetMessageOk() (*string, bool) + func (o *InvalidField) GetName() string + func (o *InvalidField) GetNameOk() (*string, bool) + func (o *InvalidField) GetValue() string + func (o *InvalidField) GetValueOk() (*string, bool) + func (o *InvalidField) SetMessage(v string) + func (o *InvalidField) SetName(v string) + func (o *InvalidField) SetValue(v string) + func (o InvalidField) MarshalJSON() ([]byte, error) + func (o InvalidField) ToMap() (map[string]interface{}, error) + type InvalidFieldWrapper struct + InvalidField *InvalidField + func NewInvalidFieldWrapper() *InvalidFieldWrapper + func NewInvalidFieldWrapperWithDefaults() *InvalidFieldWrapper + func (o *InvalidFieldWrapper) GetInvalidField() InvalidField + func (o *InvalidFieldWrapper) GetInvalidFieldOk() (*InvalidField, bool) + func (o *InvalidFieldWrapper) HasInvalidField() bool + func (o *InvalidFieldWrapper) SetInvalidField(v InvalidField) + func (o InvalidFieldWrapper) MarshalJSON() ([]byte, error) + func (o InvalidFieldWrapper) ToMap() (map[string]interface{}, error) + type MappedNullable interface + ToMap func() (map[string]interface{}, error) + type NullableBool struct + func NewNullableBool(val *bool) *NullableBool + func (v *NullableBool) Set(val *bool) + func (v *NullableBool) UnmarshalJSON(src []byte) error + func (v *NullableBool) Unset() + func (v NullableBool) Get() *bool + func (v NullableBool) IsSet() bool + func (v NullableBool) MarshalJSON() ([]byte, error) + type NullableFloat32 struct + func NewNullableFloat32(val *float32) *NullableFloat32 + func (v *NullableFloat32) Set(val *float32) + func (v *NullableFloat32) UnmarshalJSON(src []byte) error + func (v *NullableFloat32) Unset() + func (v NullableFloat32) Get() *float32 + func (v NullableFloat32) IsSet() bool + func (v NullableFloat32) MarshalJSON() ([]byte, error) + type NullableFloat64 struct + func NewNullableFloat64(val *float64) *NullableFloat64 + func (v *NullableFloat64) Set(val *float64) + func (v *NullableFloat64) UnmarshalJSON(src []byte) error + func (v *NullableFloat64) Unset() + func (v NullableFloat64) Get() *float64 + func (v NullableFloat64) IsSet() bool + func (v NullableFloat64) MarshalJSON() ([]byte, error) + type NullableInt struct + func NewNullableInt(val *int) *NullableInt + func (v *NullableInt) Set(val *int) + func (v *NullableInt) UnmarshalJSON(src []byte) error + func (v *NullableInt) Unset() + func (v NullableInt) Get() *int + func (v NullableInt) IsSet() bool + func (v NullableInt) MarshalJSON() ([]byte, error) + type NullableInt32 struct + func NewNullableInt32(val *int32) *NullableInt32 + func (v *NullableInt32) Set(val *int32) + func (v *NullableInt32) UnmarshalJSON(src []byte) error + func (v *NullableInt32) Unset() + func (v NullableInt32) Get() *int32 + func (v NullableInt32) IsSet() bool + func (v NullableInt32) MarshalJSON() ([]byte, error) + type NullableInt64 struct + func NewNullableInt64(val *int64) *NullableInt64 + func (v *NullableInt64) Set(val *int64) + func (v *NullableInt64) UnmarshalJSON(src []byte) error + func (v *NullableInt64) Unset() + func (v NullableInt64) Get() *int64 + func (v NullableInt64) IsSet() bool + func (v NullableInt64) MarshalJSON() ([]byte, error) + type NullableInvalidField struct + func NewNullableInvalidField(val *InvalidField) *NullableInvalidField + func (v *NullableInvalidField) Set(val *InvalidField) + func (v *NullableInvalidField) UnmarshalJSON(src []byte) error + func (v *NullableInvalidField) Unset() + func (v NullableInvalidField) Get() *InvalidField + func (v NullableInvalidField) IsSet() bool + func (v NullableInvalidField) MarshalJSON() ([]byte, error) + type NullableInvalidFieldWrapper struct + func NewNullableInvalidFieldWrapper(val *InvalidFieldWrapper) *NullableInvalidFieldWrapper + func (v *NullableInvalidFieldWrapper) Set(val *InvalidFieldWrapper) + func (v *NullableInvalidFieldWrapper) UnmarshalJSON(src []byte) error + func (v *NullableInvalidFieldWrapper) Unset() + func (v NullableInvalidFieldWrapper) Get() *InvalidFieldWrapper + func (v NullableInvalidFieldWrapper) IsSet() bool + func (v NullableInvalidFieldWrapper) MarshalJSON() ([]byte, error) + type NullableRestServiceError struct + func NewNullableRestServiceError(val *RestServiceError) *NullableRestServiceError + func (v *NullableRestServiceError) Set(val *RestServiceError) + func (v *NullableRestServiceError) UnmarshalJSON(src []byte) error + func (v *NullableRestServiceError) Unset() + func (v NullableRestServiceError) Get() *RestServiceError + func (v NullableRestServiceError) IsSet() bool + func (v NullableRestServiceError) MarshalJSON() ([]byte, error) + type NullableString struct + func NewNullableString(val *string) *NullableString + func (v *NullableString) Set(val *string) + func (v *NullableString) UnmarshalJSON(src []byte) error + func (v *NullableString) Unset() + func (v NullableString) Get() *string + func (v NullableString) IsSet() bool + func (v NullableString) MarshalJSON() ([]byte, error) + type NullableTime struct + func NewNullableTime(val *time.Time) *NullableTime + func (v *NullableTime) Set(val *time.Time) + func (v *NullableTime) UnmarshalJSON(src []byte) error + func (v *NullableTime) Unset() + func (v NullableTime) Get() *time.Time + func (v NullableTime) IsSet() bool + func (v NullableTime) MarshalJSON() ([]byte, error) + type RestServiceError struct + Detail string + ErrorCode string + Instance *string + InvalidFields []InvalidFieldWrapper + RequestId *string + Status int32 + Title string + Type string + func NewRestServiceError(detail string, errorCode string, status int32, title string, type_ string) *RestServiceError + func NewRestServiceErrorWithDefaults() *RestServiceError + func (o *RestServiceError) GetDetail() string + func (o *RestServiceError) GetDetailOk() (*string, bool) + func (o *RestServiceError) GetErrorCode() string + func (o *RestServiceError) GetErrorCodeOk() (*string, bool) + func (o *RestServiceError) GetInstance() string + func (o *RestServiceError) GetInstanceOk() (*string, bool) + func (o *RestServiceError) GetInvalidFields() []InvalidFieldWrapper + func (o *RestServiceError) GetInvalidFieldsOk() ([]InvalidFieldWrapper, bool) + func (o *RestServiceError) GetRequestId() string + func (o *RestServiceError) GetRequestIdOk() (*string, bool) + func (o *RestServiceError) GetStatus() int32 + func (o *RestServiceError) GetStatusOk() (*int32, bool) + func (o *RestServiceError) GetTitle() string + func (o *RestServiceError) GetTitleOk() (*string, bool) + func (o *RestServiceError) GetType() string + func (o *RestServiceError) GetTypeOk() (*string, bool) + func (o *RestServiceError) HasInstance() bool + func (o *RestServiceError) HasInvalidFields() bool + func (o *RestServiceError) HasRequestId() bool + func (o *RestServiceError) SetDetail(v string) + func (o *RestServiceError) SetErrorCode(v string) + func (o *RestServiceError) SetInstance(v string) + func (o *RestServiceError) SetInvalidFields(v []InvalidFieldWrapper) + func (o *RestServiceError) SetRequestId(v string) + func (o *RestServiceError) SetStatus(v int32) + func (o *RestServiceError) SetTitle(v string) + func (o *RestServiceError) SetType(v string) + func (o RestServiceError) Error() string + func (o RestServiceError) MarshalJSON() ([]byte, error) + func (o RestServiceError) ToMap() (map[string]interface{}, error) + 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/v10 github.com/adyen/adyen-go-api-library/v11 github.com/adyen/adyen-go-api-library/v12 github.com/adyen/adyen-go-api-library/v14 github.com/adyen/adyen-go-api-library/v15 github.com/adyen/adyen-go-api-library/v16 github.com/adyen/adyen-go-api-library/v17 github.com/adyen/adyen-go-api-library/v18 github.com/adyen/adyen-go-api-library/v19 github.com/adyen/adyen-go-api-library/v2 github.com/adyen/adyen-go-api-library/v20 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