Documentation
¶
Index ¶
Constants ¶
View Source
const ( LoggerNotificationCentrifugo = "Send message to centrifugo failed" LoggerNotificationRedis = "Set stat in redis failed" MIMEApplicationJSON = "application/json" HeaderAccept = "Accept" HeaderContentType = "Content-Type" HeaderSignature = "Signature" HeaderAuthorization = "Authorization" NotificationActionCheck = "check" NotificationActionPayment = "payment" RetryDlxTimeout = 600 RetryExchangeName = "notify-payment-retry" RetryMaxCount = 288 CountryCodeUSA = "US" )
Variables ¶
View Source
var OrderAlphabetStatuses = map[int32]string{ constant.OrderStatusNew: "NEW", constant.OrderStatusPaymentSystemCreate: "IN_PROGRESS", constant.OrderStatusPaymentSystemRejectOnCreate: "DECLINED", constant.OrderStatusPaymentSystemReject: "DECLINED", constant.OrderStatusPaymentSystemComplete: "COMPLETED", constant.OrderStatusProjectInProgress: "COMPLETED", constant.OrderStatusProjectComplete: "COMPLETED", constant.OrderStatusProjectPending: "COMPLETED", constant.OrderStatusProjectReject: "REFUNDED", constant.OrderStatusRefund: "REFUNDED", constant.OrderStatusChargeback: "CHARGEBACK_RESOLVED", constant.OrderStatusPaymentSystemDeclined: "DECLINED", constant.OrderStatusPaymentSystemCanceled: "CANCELLED", }
Functions ¶
This section is empty.
Types ¶
type Centrifugo ¶ added in v1.1.0
type Centrifugo struct {
// contains filtered or unexported fields
}
type CentrifugoInterface ¶ added in v1.1.0
func NewCentrifugo ¶ added in v1.1.0
func NewCentrifugo(cfg *config.Centrifugo, httpClient *http.Client) CentrifugoInterface
type Handler ¶
type Handler struct { RetryCount int32 // contains filtered or unexported fields }
func NewHandler ¶
func NewHandler( o *proto.Order, rep grpc.BillingService, retBrok rabbitmq.BrokerInterface, taxjarTransactionsBroker rabbitmq.BrokerInterface, taxjarRefundsBroker rabbitmq.BrokerInterface, redis *redis.Client, dlv amqp.Delivery, cfg *config.Config, centrifugoPaymentForm CentrifugoInterface, centrifugoDashboard CentrifugoInterface, ) *Handler
func (*Handler) GetNotifier ¶
type NotificationStat ¶
type NotificationStat struct { StatKey string // contains filtered or unexported fields }
func (*NotificationStat) Get ¶
func (ns *NotificationStat) Get(key string) bool
Click to show internal directories.
Click to hide internal directories.