Documentation ¶
Index ¶
- Constants
- Variables
- 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
- type APIKey
- type APIResponse
- type BasicAuth
- type Client
- 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
- type Environment
- type 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) MarshalJSON() ([]byte, error)
- func (o *InvalidField) SetMessage(v string)
- func (o *InvalidField) SetName(v string)
- func (o *InvalidField) SetValue(v string)
- func (o InvalidField) ToMap() (map[string]interface{}, error)
- type InvalidFieldWrapper
- func (o *InvalidFieldWrapper) GetInvalidField() InvalidField
- func (o *InvalidFieldWrapper) GetInvalidFieldOk() (*InvalidField, bool)
- func (o *InvalidFieldWrapper) HasInvalidField() bool
- func (o InvalidFieldWrapper) MarshalJSON() ([]byte, error)
- func (o *InvalidFieldWrapper) SetInvalidField(v InvalidField)
- func (o InvalidFieldWrapper) ToMap() (map[string]interface{}, error)
- type MappedNullable
- type NullableBool
- type NullableFloat32
- type NullableFloat64
- type NullableInt
- type NullableInt32
- type NullableInt64
- type NullableInvalidField
- func (v NullableInvalidField) Get() *InvalidField
- func (v NullableInvalidField) IsSet() bool
- func (v NullableInvalidField) MarshalJSON() ([]byte, error)
- func (v *NullableInvalidField) Set(val *InvalidField)
- func (v *NullableInvalidField) UnmarshalJSON(src []byte) error
- func (v *NullableInvalidField) Unset()
- type NullableInvalidFieldWrapper
- func (v NullableInvalidFieldWrapper) Get() *InvalidFieldWrapper
- func (v NullableInvalidFieldWrapper) IsSet() bool
- func (v NullableInvalidFieldWrapper) MarshalJSON() ([]byte, error)
- func (v *NullableInvalidFieldWrapper) Set(val *InvalidFieldWrapper)
- func (v *NullableInvalidFieldWrapper) UnmarshalJSON(src []byte) error
- func (v *NullableInvalidFieldWrapper) Unset()
- type NullableRestServiceError
- func (v NullableRestServiceError) Get() *RestServiceError
- func (v NullableRestServiceError) IsSet() bool
- func (v NullableRestServiceError) MarshalJSON() ([]byte, error)
- func (v *NullableRestServiceError) Set(val *RestServiceError)
- func (v *NullableRestServiceError) UnmarshalJSON(src []byte) error
- func (v *NullableRestServiceError) Unset()
- type NullableString
- type NullableTime
- type RestServiceError
- func (o RestServiceError) Error() string
- 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) MarshalJSON() ([]byte, error)
- 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) ToMap() (map[string]interface{}, error)
- type Service
Constants ¶
const ( LibName = "adyen-go-api-library" LibVersion = "8.2.0" )
Variables ¶
var ( // ContextOAuth2 takes an oauth2.TokenSource as authentication for the Request. ContextOAuth2 = contextKey("token") // ContextBasicAuth takes BasicAuth as authentication for the Request. ContextBasicAuth = contextKey("basic") // ContextAccessToken takes a string oauth2 access token as authentication for the Request. ContextAccessToken = contextKey("accesstoken") // ContextAPIKey takes an APIKey as authentication for the Request ContextAPIKey = contextKey("apikey") )
Functions ¶
func CacheExpires ¶
CacheExpires helper function to determine remaining time before repeating a Request.
func CreateHTTPRequest ¶
func CreateHTTPRequest(c *Client, httpMethod string, req interface{}, res interface{}, path string, ctxs []context.Context) (*http.Response, error)
CreateHTTPRequest is used as base to create HTTP request for all methods (GET, POST, PATCH...) Deprecated
func IdempotencyKey ¶
IdempotencyKey Deprecated
func ParameterAddToHeaderOrQuery ¶
func ParameterAddToHeaderOrQuery(headerOrQueryParams interface{}, keyPrefix string, obj interface{}, collectionType string)
ParameterAddToHeaderOrQuery adds the provided object to the request header or url query supporting deep object syntax
func ParameterAddToQuery ¶
func ParameterAddToQuery(queryParams interface{}, keyPrefix string, obj interface{}, collectionType string)
ParameterAddToQuery adds the provided object to the url query supporting deep object syntax Deprecated
func ParameterValueToString ¶
func PtrFloat32 ¶
PtrFloat32 is a helper routine that returns a pointer to given float value.
func PtrFloat64 ¶
PtrFloat64 is a helper routine that returns a pointer to given float value.
func SelectHeaderAccept ¶
SelectHeaderAccept join all accept types and return
func SelectHeaderContentType ¶
SelectHeaderContentType select a content type from the available list.
func SendAPIRequest ¶
func WithIdempotencyKey ¶
WithIdempotencyKey returns a context with an Idempotency-Key added to the provided context. Pass this context as the first context to a call to Adyen, and the idempotency key will be added to the header Deprecated: Pass idempotency key via request parameter. This can be removed once all endpoints accepting it are declared explicitly in OpenAPI specs.
Types ¶
type APIError ¶
type APIError struct { RawBody []byte Err string Status float64 Message string Code string Type string }
APIError Provides access to the body, error and model on returned errors.
func NewAPIError ¶
NewAPIError returns a new error instance
type APIKey ¶
APIKey provides API key based authentication to a Request passed via context using ContextAPIKey
type APIResponse ¶
type APIResponse struct { *http.Response `json:"-"` Message string `json:"message,omitempty"` // Operation is the name of the OpenAPI operation. Operation string `json:"operation,omitempty"` // RequestURL is the Request URL. This value is always available, even if the // embedded *http.Response is nil. RequestURL string `json:"url,omitempty"` // Method is the HTTP method used for the Request. This value is always // available, even if the embedded *http.Response is nil. Method string `json:"method,omitempty"` // Payload holds the contents of the Response body (which may be nil or empty). // This is provided here as the raw Response.Body() reader will have already // been drained. Payload []byte `json:"-"` }
APIResponse stores the API Response returned by the server.
func NewAPIResponse ¶
func NewAPIResponse(r *http.Response) *APIResponse
NewAPIResponse returns a new APIResonse object.
func NewAPIResponseWithError ¶
func NewAPIResponseWithError(errorMessage string) *APIResponse
NewAPIResponseWithError returns a new APIResponse object with the provided error message.
type BasicAuth ¶
type BasicAuth struct { UserName string `json:"userName,omitempty"` Password string `json:"password,omitempty"` }
BasicAuth provides basic http authentication to a Request passed via context using ContextBasicAuth
type Client ¶
type Client struct {
Cfg *Config
}
Client manages communication with the Adyen API In most cases there should be only one, shared, APIClient.
func (*Client) MakeHTTPDeleteRequest ¶
func (c *Client) MakeHTTPDeleteRequest(res interface{}, path string, ctxs ...context.Context) (*http.Response, error)
MakeHTTPDeleteRequest is a generic method used to make HTTP DELETE requests
func (*Client) MakeHTTPGetRequest ¶
func (c *Client) MakeHTTPGetRequest(res interface{}, path string, ctxs ...context.Context) (*http.Response, error)
MakeHTTPGetRequest is a generic method used to make HTTP GET requests
func (*Client) MakeHTTPPatchRequest ¶
func (c *Client) MakeHTTPPatchRequest(req interface{}, res interface{}, path string, ctxs ...context.Context) (*http.Response, error)
MakeHTTPPatchRequest is a generic method used to make HTTP PATCH requests
type Config ¶
type Config struct { Username string `json:"username,omitempty"` Password string `json:"password,omitempty"` MerchantAccount string `json:"merchantAccount,omitempty"` Environment Environment `json:"environment,omitempty"` Endpoint string `json:"endpoint,omitempty"` MarketPayEndpoint string `json:"marketPayEndpoint,omitempty"` ApiKey string `json:"apiKey,omitempty"` ConnectionTimeoutMillis time.Duration `json:"connectionTimeoutMillis,omitempty"` CertificatePath string `json:"certificatePath,omitempty"` DisputesEndpoint string `json:"disputesEndpoint,omitempty"` BalancePlatformEndpoint string `json:"balancePlatformEndpoint,omitempty"` ManagementEndpoint string `json:"managementEndpoint,omitempty"` LegalEntityEndpoint string `json:"legalEntityEndpoint,omitempty"` TransfersEndpoint string `json:"transfersEndpoint,omitempty"` PosTerminalManagementEndpoint string `json:"posTerminalManagementEndpoint,omitempty"` DataProtectionEndpoint string `json:"dataProtectionEndpoint,omitempty"` //Checkout Specific CheckoutEndpoint string `json:"checkoutEndpoint,omitempty"` //Terminal API Specific TerminalApiCloudEndpoint string `json:"terminalApiCloudEndpoint,omitempty"` TerminalApiLocalEndpoint string `json:"terminalApiLocalEndpoint,omitempty"` TerminalCertificatePath string `json:"terminalCertificatePath,omitempty"` LiveEndpointURLPrefix string `json:"liveEndpointURLPrefix,omitempty"` DefaultHeader map[string]string `json:"defaultHeader,omitempty"` Debug bool `json:"debug,omitempty"` UserAgent string `json:"userAgent,omitempty"` HTTPClient *http.Client }
Config stores the configuration of the API client
func (*Config) GetCheckoutEndpoint ¶
type Environment ¶
type Environment string
const ( TestEnv Environment = "TEST" LiveEnv Environment = "LIVE" )
type InvalidField ¶
type InvalidField struct { // Description of the validation error. Message string `json:"message"` // The field that has an invalid value. Name string `json:"name"` // The invalid value. Value string `json:"value"` }
InvalidField struct for InvalidField
func NewInvalidField ¶
func NewInvalidField(message string, name string, value string) *InvalidField
NewInvalidField instantiates a new InvalidField object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewInvalidFieldWithDefaults ¶
func NewInvalidFieldWithDefaults() *InvalidField
NewInvalidFieldWithDefaults instantiates a new InvalidField object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (*InvalidField) GetMessage ¶
func (o *InvalidField) GetMessage() string
GetMessage returns the Message field value
func (*InvalidField) GetMessageOk ¶
func (o *InvalidField) GetMessageOk() (*string, bool)
GetMessageOk returns a tuple with the Message field value and a boolean to check if the value has been set.
func (*InvalidField) GetName ¶
func (o *InvalidField) GetName() string
GetName returns the Name field value
func (*InvalidField) GetNameOk ¶
func (o *InvalidField) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.
func (*InvalidField) GetValue ¶
func (o *InvalidField) GetValue() string
GetValue returns the Value field value
func (*InvalidField) GetValueOk ¶
func (o *InvalidField) GetValueOk() (*string, bool)
GetValueOk returns a tuple with the Value field value and a boolean to check if the value has been set.
func (InvalidField) MarshalJSON ¶
func (o InvalidField) MarshalJSON() ([]byte, error)
func (*InvalidField) SetMessage ¶
func (o *InvalidField) SetMessage(v string)
SetMessage sets field value
func (InvalidField) ToMap ¶
func (o InvalidField) ToMap() (map[string]interface{}, error)
type InvalidFieldWrapper ¶
type InvalidFieldWrapper struct {
InvalidField *InvalidField `json:"InvalidField,omitempty"`
}
InvalidFieldWrapper struct for InvalidFieldWrapper
func NewInvalidFieldWrapper ¶
func NewInvalidFieldWrapper() *InvalidFieldWrapper
NewInvalidFieldWrapper instantiates a new InvalidFieldWrapper object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewInvalidFieldWrapperWithDefaults ¶
func NewInvalidFieldWrapperWithDefaults() *InvalidFieldWrapper
NewInvalidFieldWrapperWithDefaults instantiates a new InvalidFieldWrapper object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (*InvalidFieldWrapper) GetInvalidField ¶
func (o *InvalidFieldWrapper) GetInvalidField() InvalidField
GetInvalidField returns the InvalidField field value if set, zero value otherwise.
func (*InvalidFieldWrapper) GetInvalidFieldOk ¶
func (o *InvalidFieldWrapper) GetInvalidFieldOk() (*InvalidField, bool)
GetInvalidFieldOk returns a tuple with the InvalidField field value if set, nil otherwise and a boolean to check if the value has been set.
func (*InvalidFieldWrapper) HasInvalidField ¶
func (o *InvalidFieldWrapper) HasInvalidField() bool
HasInvalidField returns a boolean if a field has been set.
func (InvalidFieldWrapper) MarshalJSON ¶
func (o InvalidFieldWrapper) MarshalJSON() ([]byte, error)
func (*InvalidFieldWrapper) SetInvalidField ¶
func (o *InvalidFieldWrapper) SetInvalidField(v InvalidField)
SetInvalidField gets a reference to the given InvalidField and assigns it to the InvalidField field.
func (InvalidFieldWrapper) ToMap ¶
func (o InvalidFieldWrapper) ToMap() (map[string]interface{}, error)
type MappedNullable ¶
type NullableBool ¶
type NullableBool struct {
// contains filtered or unexported fields
}
func NewNullableBool ¶
func NewNullableBool(val *bool) *NullableBool
func (NullableBool) Get ¶
func (v NullableBool) Get() *bool
func (NullableBool) IsSet ¶
func (v NullableBool) IsSet() bool
func (NullableBool) MarshalJSON ¶
func (v NullableBool) MarshalJSON() ([]byte, error)
func (*NullableBool) Set ¶
func (v *NullableBool) Set(val *bool)
func (*NullableBool) UnmarshalJSON ¶
func (v *NullableBool) UnmarshalJSON(src []byte) error
func (*NullableBool) Unset ¶
func (v *NullableBool) Unset()
type NullableFloat32 ¶
type NullableFloat32 struct {
// contains filtered or unexported fields
}
func NewNullableFloat32 ¶
func NewNullableFloat32(val *float32) *NullableFloat32
func (NullableFloat32) Get ¶
func (v NullableFloat32) Get() *float32
func (NullableFloat32) IsSet ¶
func (v NullableFloat32) IsSet() bool
func (NullableFloat32) MarshalJSON ¶
func (v NullableFloat32) MarshalJSON() ([]byte, error)
func (*NullableFloat32) Set ¶
func (v *NullableFloat32) Set(val *float32)
func (*NullableFloat32) UnmarshalJSON ¶
func (v *NullableFloat32) UnmarshalJSON(src []byte) error
func (*NullableFloat32) Unset ¶
func (v *NullableFloat32) Unset()
type NullableFloat64 ¶
type NullableFloat64 struct {
// contains filtered or unexported fields
}
func NewNullableFloat64 ¶
func NewNullableFloat64(val *float64) *NullableFloat64
func (NullableFloat64) Get ¶
func (v NullableFloat64) Get() *float64
func (NullableFloat64) IsSet ¶
func (v NullableFloat64) IsSet() bool
func (NullableFloat64) MarshalJSON ¶
func (v NullableFloat64) MarshalJSON() ([]byte, error)
func (*NullableFloat64) Set ¶
func (v *NullableFloat64) Set(val *float64)
func (*NullableFloat64) UnmarshalJSON ¶
func (v *NullableFloat64) UnmarshalJSON(src []byte) error
func (*NullableFloat64) Unset ¶
func (v *NullableFloat64) Unset()
type NullableInt ¶
type NullableInt struct {
// contains filtered or unexported fields
}
func NewNullableInt ¶
func NewNullableInt(val *int) *NullableInt
func (NullableInt) Get ¶
func (v NullableInt) Get() *int
func (NullableInt) IsSet ¶
func (v NullableInt) IsSet() bool
func (NullableInt) MarshalJSON ¶
func (v NullableInt) MarshalJSON() ([]byte, error)
func (*NullableInt) Set ¶
func (v *NullableInt) Set(val *int)
func (*NullableInt) UnmarshalJSON ¶
func (v *NullableInt) UnmarshalJSON(src []byte) error
func (*NullableInt) Unset ¶
func (v *NullableInt) Unset()
type NullableInt32 ¶
type NullableInt32 struct {
// contains filtered or unexported fields
}
func NewNullableInt32 ¶
func NewNullableInt32(val *int32) *NullableInt32
func (NullableInt32) Get ¶
func (v NullableInt32) Get() *int32
func (NullableInt32) IsSet ¶
func (v NullableInt32) IsSet() bool
func (NullableInt32) MarshalJSON ¶
func (v NullableInt32) MarshalJSON() ([]byte, error)
func (*NullableInt32) Set ¶
func (v *NullableInt32) Set(val *int32)
func (*NullableInt32) UnmarshalJSON ¶
func (v *NullableInt32) UnmarshalJSON(src []byte) error
func (*NullableInt32) Unset ¶
func (v *NullableInt32) Unset()
type NullableInt64 ¶
type NullableInt64 struct {
// contains filtered or unexported fields
}
func NewNullableInt64 ¶
func NewNullableInt64(val *int64) *NullableInt64
func (NullableInt64) Get ¶
func (v NullableInt64) Get() *int64
func (NullableInt64) IsSet ¶
func (v NullableInt64) IsSet() bool
func (NullableInt64) MarshalJSON ¶
func (v NullableInt64) MarshalJSON() ([]byte, error)
func (*NullableInt64) Set ¶
func (v *NullableInt64) Set(val *int64)
func (*NullableInt64) UnmarshalJSON ¶
func (v *NullableInt64) UnmarshalJSON(src []byte) error
func (*NullableInt64) Unset ¶
func (v *NullableInt64) Unset()
type NullableInvalidField ¶
type NullableInvalidField struct {
// contains filtered or unexported fields
}
func NewNullableInvalidField ¶
func NewNullableInvalidField(val *InvalidField) *NullableInvalidField
func (NullableInvalidField) Get ¶
func (v NullableInvalidField) Get() *InvalidField
func (NullableInvalidField) IsSet ¶
func (v NullableInvalidField) IsSet() bool
func (NullableInvalidField) MarshalJSON ¶
func (v NullableInvalidField) MarshalJSON() ([]byte, error)
func (*NullableInvalidField) Set ¶
func (v *NullableInvalidField) Set(val *InvalidField)
func (*NullableInvalidField) UnmarshalJSON ¶
func (v *NullableInvalidField) UnmarshalJSON(src []byte) error
func (*NullableInvalidField) Unset ¶
func (v *NullableInvalidField) Unset()
type NullableInvalidFieldWrapper ¶
type NullableInvalidFieldWrapper struct {
// contains filtered or unexported fields
}
func NewNullableInvalidFieldWrapper ¶
func NewNullableInvalidFieldWrapper(val *InvalidFieldWrapper) *NullableInvalidFieldWrapper
func (NullableInvalidFieldWrapper) Get ¶
func (v NullableInvalidFieldWrapper) Get() *InvalidFieldWrapper
func (NullableInvalidFieldWrapper) IsSet ¶
func (v NullableInvalidFieldWrapper) IsSet() bool
func (NullableInvalidFieldWrapper) MarshalJSON ¶
func (v NullableInvalidFieldWrapper) MarshalJSON() ([]byte, error)
func (*NullableInvalidFieldWrapper) Set ¶
func (v *NullableInvalidFieldWrapper) Set(val *InvalidFieldWrapper)
func (*NullableInvalidFieldWrapper) UnmarshalJSON ¶
func (v *NullableInvalidFieldWrapper) UnmarshalJSON(src []byte) error
func (*NullableInvalidFieldWrapper) Unset ¶
func (v *NullableInvalidFieldWrapper) Unset()
type NullableRestServiceError ¶
type NullableRestServiceError struct {
// contains filtered or unexported fields
}
func NewNullableRestServiceError ¶
func NewNullableRestServiceError(val *RestServiceError) *NullableRestServiceError
func (NullableRestServiceError) Get ¶
func (v NullableRestServiceError) Get() *RestServiceError
func (NullableRestServiceError) IsSet ¶
func (v NullableRestServiceError) IsSet() bool
func (NullableRestServiceError) MarshalJSON ¶
func (v NullableRestServiceError) MarshalJSON() ([]byte, error)
func (*NullableRestServiceError) Set ¶
func (v *NullableRestServiceError) Set(val *RestServiceError)
func (*NullableRestServiceError) UnmarshalJSON ¶
func (v *NullableRestServiceError) UnmarshalJSON(src []byte) error
func (*NullableRestServiceError) Unset ¶
func (v *NullableRestServiceError) Unset()
type NullableString ¶
type NullableString struct {
// contains filtered or unexported fields
}
func NewNullableString ¶
func NewNullableString(val *string) *NullableString
func (NullableString) Get ¶
func (v NullableString) Get() *string
func (NullableString) IsSet ¶
func (v NullableString) IsSet() bool
func (NullableString) MarshalJSON ¶
func (v NullableString) MarshalJSON() ([]byte, error)
func (*NullableString) Set ¶
func (v *NullableString) Set(val *string)
func (*NullableString) UnmarshalJSON ¶
func (v *NullableString) UnmarshalJSON(src []byte) error
func (*NullableString) Unset ¶
func (v *NullableString) Unset()
type NullableTime ¶
type NullableTime struct {
// contains filtered or unexported fields
}
func NewNullableTime ¶
func NewNullableTime(val *time.Time) *NullableTime
func (NullableTime) Get ¶
func (v NullableTime) Get() *time.Time
func (NullableTime) IsSet ¶
func (v NullableTime) IsSet() bool
func (NullableTime) MarshalJSON ¶
func (v NullableTime) MarshalJSON() ([]byte, error)
func (*NullableTime) Set ¶
func (v *NullableTime) Set(val *time.Time)
func (*NullableTime) UnmarshalJSON ¶
func (v *NullableTime) UnmarshalJSON(src []byte) error
func (*NullableTime) Unset ¶
func (v *NullableTime) Unset()
type RestServiceError ¶
type RestServiceError struct { // A human-readable explanation specific to this occurrence of the problem. Detail string `json:"detail"` // A code that identifies the problem type. ErrorCode string `json:"errorCode"` // A unique URI that identifies the specific occurrence of the problem. Instance *string `json:"instance,omitempty"` // Detailed explanation of each validation error, when applicable. InvalidFields []InvalidFieldWrapper `json:"invalidFields,omitempty"` // A unique reference for the request, essentially the same as `pspReference`. RequestId *string `json:"requestId,omitempty"` // The HTTP status code. Status int32 `json:"status"` // A short, human-readable summary of the problem type. Title string `json:"title"` // A URI that identifies the problem type, pointing to human-readable documentation on this problem type. Type string `json:"type"` }
RestServiceError struct for RestServiceError
func NewRestServiceError ¶
func NewRestServiceError(detail string, errorCode string, status int32, title string, type_ string) *RestServiceError
NewRestServiceError instantiates a new RestServiceError object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewRestServiceErrorWithDefaults ¶
func NewRestServiceErrorWithDefaults() *RestServiceError
NewRestServiceErrorWithDefaults instantiates a new RestServiceError object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (RestServiceError) Error ¶
func (o RestServiceError) Error() string
func (*RestServiceError) GetDetail ¶
func (o *RestServiceError) GetDetail() string
GetDetail returns the Detail field value
func (*RestServiceError) GetDetailOk ¶
func (o *RestServiceError) GetDetailOk() (*string, bool)
GetDetailOk returns a tuple with the Detail field value and a boolean to check if the value has been set.
func (*RestServiceError) GetErrorCode ¶
func (o *RestServiceError) GetErrorCode() string
GetErrorCode returns the ErrorCode field value
func (*RestServiceError) GetErrorCodeOk ¶
func (o *RestServiceError) GetErrorCodeOk() (*string, bool)
GetErrorCodeOk returns a tuple with the ErrorCode field value and a boolean to check if the value has been set.
func (*RestServiceError) GetInstance ¶
func (o *RestServiceError) GetInstance() string
GetInstance returns the Instance field value if set, zero value otherwise.
func (*RestServiceError) GetInstanceOk ¶
func (o *RestServiceError) GetInstanceOk() (*string, bool)
GetInstanceOk returns a tuple with the Instance field value if set, nil otherwise and a boolean to check if the value has been set.
func (*RestServiceError) GetInvalidFields ¶
func (o *RestServiceError) GetInvalidFields() []InvalidFieldWrapper
GetInvalidFields returns the InvalidFields field value if set, zero value otherwise.
func (*RestServiceError) GetInvalidFieldsOk ¶
func (o *RestServiceError) GetInvalidFieldsOk() ([]InvalidFieldWrapper, bool)
GetInvalidFieldsOk returns a tuple with the InvalidFields field value if set, nil otherwise and a boolean to check if the value has been set.
func (*RestServiceError) GetRequestId ¶
func (o *RestServiceError) GetRequestId() string
GetRequestId returns the RequestId field value if set, zero value otherwise.
func (*RestServiceError) GetRequestIdOk ¶
func (o *RestServiceError) GetRequestIdOk() (*string, bool)
GetRequestIdOk returns a tuple with the RequestId field value if set, nil otherwise and a boolean to check if the value has been set.
func (*RestServiceError) GetStatus ¶
func (o *RestServiceError) GetStatus() int32
GetStatus returns the Status field value
func (*RestServiceError) GetStatusOk ¶
func (o *RestServiceError) GetStatusOk() (*int32, bool)
GetStatusOk returns a tuple with the Status field value and a boolean to check if the value has been set.
func (*RestServiceError) GetTitle ¶
func (o *RestServiceError) GetTitle() string
GetTitle returns the Title field value
func (*RestServiceError) GetTitleOk ¶
func (o *RestServiceError) GetTitleOk() (*string, bool)
GetTitleOk returns a tuple with the Title field value and a boolean to check if the value has been set.
func (*RestServiceError) GetType ¶
func (o *RestServiceError) GetType() string
GetType returns the Type field value
func (*RestServiceError) GetTypeOk ¶
func (o *RestServiceError) GetTypeOk() (*string, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (*RestServiceError) HasInstance ¶
func (o *RestServiceError) HasInstance() bool
HasInstance returns a boolean if a field has been set.
func (*RestServiceError) HasInvalidFields ¶
func (o *RestServiceError) HasInvalidFields() bool
HasInvalidFields returns a boolean if a field has been set.
func (*RestServiceError) HasRequestId ¶
func (o *RestServiceError) HasRequestId() bool
HasRequestId returns a boolean if a field has been set.
func (RestServiceError) MarshalJSON ¶
func (o RestServiceError) MarshalJSON() ([]byte, error)
func (*RestServiceError) SetDetail ¶
func (o *RestServiceError) SetDetail(v string)
SetDetail sets field value
func (*RestServiceError) SetErrorCode ¶
func (o *RestServiceError) SetErrorCode(v string)
SetErrorCode sets field value
func (*RestServiceError) SetInstance ¶
func (o *RestServiceError) SetInstance(v string)
SetInstance gets a reference to the given string and assigns it to the Instance field.
func (*RestServiceError) SetInvalidFields ¶
func (o *RestServiceError) SetInvalidFields(v []InvalidFieldWrapper)
SetInvalidFields gets a reference to the given []InvalidFieldWrapper and assigns it to the InvalidFields field.
func (*RestServiceError) SetRequestId ¶
func (o *RestServiceError) SetRequestId(v string)
SetRequestId gets a reference to the given string and assigns it to the RequestId field.
func (*RestServiceError) SetStatus ¶
func (o *RestServiceError) SetStatus(v int32)
SetStatus sets field value
func (*RestServiceError) SetTitle ¶
func (o *RestServiceError) SetTitle(v string)
SetTitle sets field value
func (*RestServiceError) SetType ¶
func (o *RestServiceError) SetType(v string)
SetType sets field value
func (RestServiceError) ToMap ¶
func (o RestServiceError) ToMap() (map[string]interface{}, error)