Documentation ¶
Index ¶
- Constants
- Variables
- type AdminObject
- type CallbackCashinMessage
- type CallbackCashoutMessage
- type ClientDTO
- type ErrorMessage
- type Events
- type JWTDTO
- type JWTDTOPayload
- type NotifierDTO
- type QueueMessage
- type ResponseDTO
- type ResponseNotifyDTO
- type ScopeDTO
- type ServiceEventsDTO
- type ServicesDTO
- type SubscriptionDTO
Constants ¶
View Source
const ( BatchCreating = "batch.creating" BatchItemError = "batch-item.error" BatchItemsCreating = "batch.items-creating" BatchItemPixQrcodecreated = "batch-item.pix.qrcodecreated" BatchItemPixUpdated = "batch-item.pix.updated" BatchItemPixPaid = "batch-item.pix.paid" BatchItemPixLiquidated = "batch-item.pix.liquidated" BatchItemTransferAccepted = "batch-item.transfer.accepted" BatchItemTransferResolved = "batch-item.transfer.resolved" BatchItemTransferRejected = "batch-item.transfer.rejected" BatchItemInvoiceCreated = "batch-item.invoice.created" BatchItemInvoiceInstrumentsCreated = "batch-item.invoice.instruments-created" BatchItemInvoicePaid = "batch-item.invoice.paid" BatchItemInvoiceRejected = "batch-item.invoice.rejected" ZemoGatewayChargePaid = "zemo-gateway.charge.paid" ZemoGatewayChargeRejected = "zemo-gateway.charge.rejected" )
Variables ¶
View Source
var AllEvents = []string{ BatchCreating, BatchItemError, BatchItemsCreating, BatchItemPixQrcodecreated, BatchItemPixUpdated, BatchItemPixPaid, BatchItemPixLiquidated, BatchItemTransferAccepted, BatchItemTransferResolved, BatchItemTransferRejected, BatchItemInvoiceCreated, BatchItemInvoiceInstrumentsCreated, BatchItemInvoicePaid, BatchItemInvoiceRejected, ZemoGatewayChargePaid, ZemoGatewayChargeRejected, }
Functions ¶
This section is empty.
Types ¶
type AdminObject ¶
AdminObject is struct the api key of admin
type CallbackCashinMessage ¶
type CallbackCashinMessage struct { Event string `json:"event,omitempty"` Payload map[string]interface{} `json:"payload,omitempty"` ClientId string `json:"client_id,omitempty"` CashinId string `json:"cashin_id,omitempty"` DeliveredStatus string `json:"delivered_status,omitempty"` DeliveredAt string `json:"delivered_at,omitempty"` DeliveredUrl string `json:"delivered_url,omitempty"` ErrorMessage string `json:"error_message,omitempty"` StatusCode int `json:"status_code,omitempty"` }
CallbackCashinMessage is struct for callback message
type CallbackCashoutMessage ¶
type CallbackCashoutMessage struct { Event string `json:"event,omitempty"` Payload map[string]interface{} `json:"payload,omitempty"` ClientId string `json:"client_id,omitempty"` CashoutId string `json:"cashout_id,omitempty"` DeliveredStatus string `json:"delivered_status,omitempty"` DeliveredAt string `json:"delivered_at,omitempty"` DeliveredUrl string `json:"delivered_url,omitempty"` ErrorMessage string `json:"error_message,omitempty"` StatusCode int `json:"status_code,omitempty"` }
CallbackCashinMessage is struct for callback message
type ClientDTO ¶
type ClientDTO struct { ApiKey string `json:"api_key,omitempty"` Identifier string `json:"identifier,omitempty"` Service string `json:"service,omitempty"` Scopes []string `json:"scopes,omitempty"` AssociationId string `json:"association_id,omitempty"` Description string `json:"description,omitempty"` Provider string `json:"provider,omitempty"` CreatedAt string `json:"created_at,omitempty"` UpdatedAt string `json:"updated_at,omitempty"` }
ClientDTO is struct for dto the clients
type ErrorMessage ¶
type ErrorMessage struct { Source string `json:"source,omitempty"` Input map[string]interface{} `json:"input,omitempty"` Reason string `json:"reason"` Output map[string]interface{} `json:"output,omitempty"` SourceMessage *QueueMessage `json:"-"` }
type JWTDTO ¶
type JWTDTO struct { Exp int `json:"exp"` Nbf int `json:"nbf"` Iat int `json:"iat"` Payload JWTDTOPayload `json:"payload"` }
JWTDto is struct for jwt claims
type JWTDTOPayload ¶
type NotifierDTO ¶
type NotifierDTO struct { ClientId string `json:"client_id,omitempty"` Event string `json:"event,omitempty"` Url string `json:"url,omitempty"` Data map[string]interface{} `json:"data,omitempty"` AssociationsId []string `json:"associations_id,omitempty"` Callback map[string]interface{} `json:"callback,omitempty"` CreatedAt string `json:"createdAt,omitempty"` }
NotifierDTO is struct for dto the notify
type QueueMessage ¶
type QueueMessage struct { ClientId string `json:"client_id"` Url string `json:"url"` AuthProvider string `json:"auth_provider,omitempty"` AssociationId string `json:"association_id,omitempty"` Retries int `json:"retries,omitempty"` Callback map[string]interface{} `json:"callback,omitempty"` Body map[string]interface{} `json:"body"` }
QueueMessage is struct of message to sqs
type ResponseDTO ¶
type ResponseDTO struct { Status string `json:"status,omitempty"` Message string `json:"message,omitempty"` }
ResponseDTO is struct for response default
type ResponseNotifyDTO ¶
type ResponseNotifyDTO struct { Ok bool `json:"ok"` Topic string `json:"topic"` SentTo []SubscriptionDTO `json:"sent_to"` }
ResponseNotifyDTO is struct for response the notify
type ScopeDTO ¶
type ScopeDTO struct { ApiKey string `json:"api_key,omitempty"` Identifier string `json:"identifier,omitempty"` ScopeId string `json:"scope_id,omitempty"` Scope string `json:"scope,omitempty"` Provider string `json:"provider,omitempty"` Service string `json:"service,omitempty"` AssociationId string `json:"association_id,omitempty"` CreatedAt string `json:"created_at,omitempty"` UpdatedAt string `json:"updated_at,omitempty"` }
ScopeDTO is struct for dto the scopes
type ServiceEventsDTO ¶
type ServiceEventsDTO struct { Name string `json:"name,omitempty"` Service string `json:"service,omitempty"` ServiceId string `json:"service_id,omitempty"` CreatedAt string `json:"created_at,omitempty"` UpdatedAt string `json:"updated_at,omitempty"` }
ServiceEventsDTO is struct for dto the service events
type ServicesDTO ¶
type ServicesDTO struct { Name string `json:"name,omitempty"` Events []string `json:"events,omitempty"` ServiceId string `json:"service_id,omitempty"` ApiKey string `json:"api_key,omitempty"` Entity string `json:"entity,omitempty"` CreatedAt string `json:"created_at,omitempty"` }
ServiceDTO is struct for dto the service
type SubscriptionDTO ¶
type SubscriptionDTO struct { ClientId string `json:"client_id,omitempty"` Events []string `json:"events,omitempty"` Url string `json:"url,omitempty"` AuthProvider string `json:"authProvider,omitempty"` SubscriptionUrl string `json:"subscription_url,omitempty"` SubscriptionId string `json:"subscription_id,omitempty"` SubscriptionEvent string `json:"subscription_event,omitempty"` AssociationId string `json:"association_id,omitempty"` Description string `json:"description,omitempty"` CreatedAt string `json:"createdAt,omitempty"` }
SubscriptionDTO is struct for dto the subscription
Click to show internal directories.
Click to hide internal directories.