dto

package
v0.0.0-...-b4fdffc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 14, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

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

Functions

This section is empty.

Types

type AdminObject

type AdminObject struct {
	ClientId string `json:"client_id"`
	ApiKey   string `json:"api_key"`
}

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 Events

type Events string

Events is struct for events

func (Events) String

func (e Events) String() string

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 JWTDTOPayload struct {
	ClientId      string `json:"client_id"`
	AssociationId string `json:"association_id"`
	ApiKeyType    string `json:"api_key_type"`
	Provider      string `json:"provider"`
	Scopes        string `json:"scopes"`
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL