Documentation ¶
Index ¶
- type CreateNotificationConfigurationRequest
- type DeleteNotificationConfigurationRequest
- type ErrorFieldType
- type ExchangeMessage
- type FieldType
- type GenericResponse
- type GetNotificationConfigurationListResponse
- type GetNotificationConfigurationRequest
- type GetNotificationConfigurationResponse
- type NotificationConfigurationDetails
- type NotificationEventConfiguration
- type PlatformsNotificationConfiguration
- func (a PlatformsNotificationConfiguration) CreateNotificationConfiguration(req *CreateNotificationConfigurationRequest, ctxs ..._context.Context) (GetNotificationConfigurationResponse, *_nethttp.Response, error)
- func (a PlatformsNotificationConfiguration) DeleteNotificationConfigurations(req *DeleteNotificationConfigurationRequest, ctxs ..._context.Context) (GenericResponse, *_nethttp.Response, error)
- func (a PlatformsNotificationConfiguration) GetNotificationConfiguration(req *GetNotificationConfigurationRequest, ctxs ..._context.Context) (GetNotificationConfigurationResponse, *_nethttp.Response, error)
- func (a PlatformsNotificationConfiguration) GetNotificationConfigurationList(req interface{}, ctxs ..._context.Context) (GetNotificationConfigurationListResponse, *_nethttp.Response, error)
- func (a PlatformsNotificationConfiguration) TestNotificationConfiguration(req *TestNotificationConfigurationRequest, ctxs ..._context.Context) (TestNotificationConfigurationResponse, *_nethttp.Response, error)
- func (a PlatformsNotificationConfiguration) UpdateNotificationConfiguration(req *UpdateNotificationConfigurationRequest, ctxs ..._context.Context) (GetNotificationConfigurationResponse, *_nethttp.Response, error)
- type TestNotificationConfigurationRequest
- type TestNotificationConfigurationResponse
- type UpdateNotificationConfigurationRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateNotificationConfigurationRequest ¶
type CreateNotificationConfigurationRequest struct {
ConfigurationDetails NotificationConfigurationDetails `json:"configurationDetails"`
}
CreateNotificationConfigurationRequest struct for CreateNotificationConfigurationRequest
type DeleteNotificationConfigurationRequest ¶
type DeleteNotificationConfigurationRequest struct { // A list of IDs of the notification subscription configurations to be deleted. NotificationIds []int64 `json:"notificationIds"` }
DeleteNotificationConfigurationRequest struct for DeleteNotificationConfigurationRequest
type ErrorFieldType ¶
type ErrorFieldType struct { // The validation error code. ErrorCode int32 `json:"errorCode,omitempty"` // A description of the validation error. ErrorDescription string `json:"errorDescription,omitempty"` FieldType *FieldType `json:"fieldType,omitempty"` }
ErrorFieldType struct for ErrorFieldType
type ExchangeMessage ¶
type ExchangeMessage struct { MessageCode string `json:"messageCode,omitempty"` MessageDescription string `json:"messageDescription,omitempty"` }
ExchangeMessage struct for ExchangeMessage
type FieldType ¶
type FieldType struct { // The full name of the property. Field string `json:"field,omitempty"` // The type of the field. FieldName string `json:"fieldName,omitempty"` ShareholderCode string `json:"shareholderCode,omitempty"` }
FieldType struct for FieldType
type GenericResponse ¶
type GenericResponse struct { // Contains field validation errors that would prevent requests from being processed. InvalidFields *[]ErrorFieldType `json:"invalidFields,omitempty"` // The reference of a request. Can be used to uniquely identify the request. PspReference string `json:"pspReference,omitempty"` // The result code. ResultCode string `json:"resultCode,omitempty"` }
GenericResponse struct for GenericResponse
type GetNotificationConfigurationListResponse ¶
type GetNotificationConfigurationListResponse struct { // Details of the notification subscription configurations. Configurations []NotificationConfigurationDetails `json:"configurations"` // Contains field validation errors that would prevent requests from being processed. InvalidFields *[]ErrorFieldType `json:"invalidFields,omitempty"` // The reference of a request. Can be used to uniquely identify the request. PspReference string `json:"pspReference,omitempty"` // The result code. ResultCode string `json:"resultCode,omitempty"` }
GetNotificationConfigurationListResponse struct for GetNotificationConfigurationListResponse
type GetNotificationConfigurationRequest ¶
type GetNotificationConfigurationRequest struct { // The ID of the notification subscription configuration whose details are to be retrieved. NotificationId int64 `json:"notificationId"` }
GetNotificationConfigurationRequest struct for GetNotificationConfigurationRequest
type GetNotificationConfigurationResponse ¶
type GetNotificationConfigurationResponse struct { ConfigurationDetails NotificationConfigurationDetails `json:"configurationDetails"` // Contains field validation errors that would prevent requests from being processed. InvalidFields *[]ErrorFieldType `json:"invalidFields,omitempty"` // The reference of a request. Can be used to uniquely identify the request. PspReference string `json:"pspReference,omitempty"` // The result code. ResultCode string `json:"resultCode,omitempty"` }
GetNotificationConfigurationResponse struct for GetNotificationConfigurationResponse
type NotificationConfigurationDetails ¶
type NotificationConfigurationDetails struct { // Indicates whether the notification subscription is active. Active bool `json:"active,omitempty"` // The API version of the notification to send. ApiVersion int32 `json:"apiVersion,omitempty"` // A description of the notification subscription configuration. Description string `json:"description,omitempty"` // The types of events whose notifications apply to this configuration. EventConfigs []NotificationEventConfiguration `json:"eventConfigs"` // A string with which to salt the notification(s) before hashing. If this field is provided, a hash value will be included under the notification header `HmacSignature` and the hash protocol will be included under the notification header `Protocol`. A notification body along with its `hmacSignatureKey` and `Protocol` can be used to calculate a hash value; matching this hash value with the `HmacSignature` will ensure that the notification body has not been tampered with or corrupted. >Must be a 32-byte hex-encoded string (i.e. a string containing 64 hexadecimal characters; e.g. \"b0ea55c2fe60d4d1d605e9c385e0e7f7e6cafbb939ce07010f31a327a0871f27\"). The omission of this field will preclude the provision of the `HmacSignature` and `Protocol` headers in notification(s). HmacSignatureKey string `json:"hmacSignatureKey,omitempty"` // The ID of the configuration. >Required if updating an existing configuration, ignored during the creation of a configuration. NotificationId int64 `json:"notificationId,omitempty"` // The password to use when accessing the notifyURL with the specified username. NotifyPassword string `json:"notifyPassword,omitempty"` // The URL to which the notifications are to be sent. NotifyURL string `json:"notifyURL"` // The username to use when accessing the notifyURL. NotifyUsername string `json:"notifyUsername,omitempty"` // The SSL protocol employed by the endpoint. >Permitted values: `SSL`, `SSLInsecureCiphers`, `TLS`, `TLSv10`, `TLSv10InsecureCiphers`, `TLSv11`, `TLSv12`. SslProtocol string `json:"sslProtocol,omitempty"` }
NotificationConfigurationDetails struct for NotificationConfigurationDetails
type NotificationEventConfiguration ¶
type NotificationEventConfiguration struct { // The type of event triggering the notification. >Permitted values: `ACCOUNT_HOLDER_CREATED`, `ACCOUNT_CREATED`, `ACCOUNT_UPDATED`, `ACCOUNT_HOLDER_UPDATED`, `ACCOUNT_HOLDER_STATUS_CHANGE`, `ACCOUNT_HOLDER_STORE_STATUS_CHANGE`, `ACCOUNT_HOLDER_VERIFICATION`, `ACCOUNT_HOLDER_LIMIT_REACHED`, `ACCOUNT_HOLDER_PAYOUT`, `PAYMENT_FAILURE`, `SCHEDULED_REFUNDS`, `REPORT_AVAILABLE`, `TRANSFER_FUNDS`, `BENEFICIARY_SETUP`, `COMPENSATE_NEGATIVE_BALANCE`. EventType string `json:"eventType"` // Indicates whether the specified eventType is to be sent to the endpoint or all events other than the specified eventType (and other specified eventTypes) are to be sent. >Permitted values: `INCLUDE`, `EXCLUDE`. >- `INCLUDE`: send the specified eventType. >- `EXCLUDE`: send all eventTypes other than the specified eventType (and other eventTypes marked with `EXCLUDE`). IncludeMode string `json:"includeMode"` }
NotificationEventConfiguration struct for NotificationEventConfiguration
type PlatformsNotificationConfiguration ¶
PlatformsNotificationConfiguration PlatformsNotificationConfiguration service Deprecated: Please migrate to the new Adyen For Platforms.
func (PlatformsNotificationConfiguration) CreateNotificationConfiguration ¶
func (a PlatformsNotificationConfiguration) CreateNotificationConfiguration(req *CreateNotificationConfigurationRequest, ctxs ..._context.Context) (GetNotificationConfigurationResponse, *_nethttp.Response, error)
PostCreateNotificationConfiguration Subscribe to notifications. Creates a subscription to notifications informing you of events on your platform. After the subscription is created, the events specified in the configuration will be sent to the URL specified in the configuration. Subscriptions must be configured on a per-event basis (as opposed to, for example, a per-account holder basis), so all event notifications of a marketplace and of a given type will be sent to the same endpoint(s). A marketplace may have multiple endpoints if desired; an event notification may be sent to as many or as few different endpoints as configured.
- @param request CreateNotificationConfigurationRequest - reference of CreateNotificationConfigurationRequest).
- @param ctxs ..._context.Context - optional, for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return GetNotificationConfigurationResponse
func (PlatformsNotificationConfiguration) DeleteNotificationConfigurations ¶
func (a PlatformsNotificationConfiguration) DeleteNotificationConfigurations(req *DeleteNotificationConfigurationRequest, ctxs ..._context.Context) (GenericResponse, *_nethttp.Response, error)
PostDeleteNotificationConfigurations Delete an existing notification subscription configuration. This endpoint is used to delete an existing notification subscription configuration. After the subscription is deleted, no further event notifications will be sent to the URL that was in the subscription.
- @param request DeleteNotificationConfigurationRequest - reference of DeleteNotificationConfigurationRequest).
- @param ctxs ..._context.Context - optional, for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return GenericResponse
func (PlatformsNotificationConfiguration) GetNotificationConfiguration ¶
func (a PlatformsNotificationConfiguration) GetNotificationConfiguration(req *GetNotificationConfigurationRequest, ctxs ..._context.Context) (GetNotificationConfigurationResponse, *_nethttp.Response, error)
PostGetNotificationConfiguration Retrieve an existing notification subscription configuration. This endpoint is used to retrieve the details of the configuration of a notification subscription.
- @param request GetNotificationConfigurationRequest - reference of GetNotificationConfigurationRequest).
- @param ctxs ..._context.Context - optional, for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return GetNotificationConfigurationResponse
func (PlatformsNotificationConfiguration) GetNotificationConfigurationList ¶
func (a PlatformsNotificationConfiguration) GetNotificationConfigurationList(req interface{}, ctxs ..._context.Context) (GetNotificationConfigurationListResponse, *_nethttp.Response, error)
PostGetNotificationConfigurationList Retrieve a list of existing notification subscription configurations. This endpoint is used to retrieve the details of the configurations of all of the notification subscriptions in the marketplace of the executing user.
- @param request Body - reference of interface{}).
- @param ctxs ..._context.Context - optional, for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return GetNotificationConfigurationListResponse
func (PlatformsNotificationConfiguration) TestNotificationConfiguration ¶
func (a PlatformsNotificationConfiguration) TestNotificationConfiguration(req *TestNotificationConfigurationRequest, ctxs ..._context.Context) (TestNotificationConfigurationResponse, *_nethttp.Response, error)
PostTestNotificationConfiguration Test an existing notification configuration. This endpoint is used to test an existing notification subscription configuration. For each event type specified, a test notification will be generated and sent to the URL configured in the subscription specified.
- @param request TestNotificationConfigurationRequest - reference of TestNotificationConfigurationRequest).
- @param ctxs ..._context.Context - optional, for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return TestNotificationConfigurationResponse
func (PlatformsNotificationConfiguration) UpdateNotificationConfiguration ¶
func (a PlatformsNotificationConfiguration) UpdateNotificationConfiguration(req *UpdateNotificationConfigurationRequest, ctxs ..._context.Context) (GetNotificationConfigurationResponse, *_nethttp.Response, error)
PostUpdateNotificationConfiguration Update an existing notification subscription configuration. This endpoint is used to update an existing notification subscription configuration. If updating the event types, all event types desired must be provided, otherwise the previous event type configuration will be overwritten.
- @param request UpdateNotificationConfigurationRequest - reference of UpdateNotificationConfigurationRequest).
- @param ctxs ..._context.Context - optional, for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return GetNotificationConfigurationResponse
type TestNotificationConfigurationRequest ¶
type TestNotificationConfigurationRequest struct { // The event types to test. If left blank, then all of the configured event types will be tested. >Permitted values: `ACCOUNT_HOLDER_CREATED`, `ACCOUNT_CREATED`, `ACCOUNT_UPDATED`, `ACCOUNT_HOLDER_UPDATED`, `ACCOUNT_HOLDER_STATUS_CHANGE`, `ACCOUNT_HOLDER_STORE_STATUS_CHANGE` `ACCOUNT_HOLDER_VERIFICATION`, `ACCOUNT_HOLDER_LIMIT_REACHED`, `ACCOUNT_HOLDER_PAYOUT`, `PAYMENT_FAILURE`, `SCHEDULED_REFUNDS`, `REPORT_AVAILABLE`, `TRANSFER_FUNDS`, `BENEFICIARY_SETUP`, `COMPENSATE_NEGATIVE_BALANCE`. EventTypes []string `json:"eventTypes,omitempty"` // The ID of the notification subscription configuration to be tested. NotificationId int64 `json:"notificationId"` }
TestNotificationConfigurationRequest struct for TestNotificationConfigurationRequest
type TestNotificationConfigurationResponse ¶
type TestNotificationConfigurationResponse struct { // Any error messages encountered. ErrorMessages []string `json:"errorMessages,omitempty"` // The event types that were tested. >Permitted values: `ACCOUNT_HOLDER_CREATED`, `ACCOUNT_CREATED`, `ACCOUNT_UPDATED`, `ACCOUNT_HOLDER_UPDATED`, `ACCOUNT_HOLDER_STATUS_CHANGE`, `ACCOUNT_HOLDER_STORE_STATUS_CHANGE` `ACCOUNT_HOLDER_VERIFICATION`, `ACCOUNT_HOLDER_LIMIT_REACHED`, `ACCOUNT_HOLDER_PAYOUT`, `PAYMENT_FAILURE`, `SCHEDULED_REFUNDS`, `REPORT_AVAILABLE`, `TRANSFER_FUNDS`, `BENEFICIARY_SETUP`, `COMPENSATE_NEGATIVE_BALANCE`. EventTypes []string `json:"eventTypes"` // The notification message and related response messages. ExchangeMessages []ExchangeMessage `json:"exchangeMessages"` // Contains field validation errors that would prevent requests from being processed. InvalidFields *[]ErrorFieldType `json:"invalidFields,omitempty"` // The ID of the notification subscription configuration. NotificationId int64 `json:"notificationId"` // A list of messages describing the testing steps. OkMessages []string `json:"okMessages"` // The reference of a request. Can be used to uniquely identify the request. PspReference string `json:"pspReference,omitempty"` // The result code. ResultCode string `json:"resultCode,omitempty"` }
TestNotificationConfigurationResponse struct for TestNotificationConfigurationResponse
type UpdateNotificationConfigurationRequest ¶
type UpdateNotificationConfigurationRequest struct {
ConfigurationDetails NotificationConfigurationDetails `json:"configurationDetails"`
}
UpdateNotificationConfigurationRequest struct for UpdateNotificationConfigurationRequest
Source Files ¶
- api_default.go
- model_create_notification_configuration_request.go
- model_delete_notification_configuration_request.go
- model_error_field_type.go
- model_exchange_message.go
- model_field_type.go
- model_generic_response.go
- model_get_notification_configuration_list_response.go
- model_get_notification_configuration_request.go
- model_get_notification_configuration_response.go
- model_notification_configuration_details.go
- model_notification_event_configuration.go
- model_test_notification_configuration_request.go
- model_test_notification_configuration_response.go
- model_update_notification_configuration_request.go