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{ recurringpb.OrderStatusNew: "NEW", recurringpb.OrderStatusPaymentSystemCreate: "IN_PROGRESS", recurringpb.OrderStatusPaymentSystemRejectOnCreate: "DECLINED", recurringpb.OrderStatusPaymentSystemReject: "DECLINED", recurringpb.OrderStatusPaymentSystemComplete: "COMPLETED", recurringpb.OrderStatusProjectInProgress: "COMPLETED", recurringpb.OrderStatusProjectComplete: "COMPLETED", recurringpb.OrderStatusProjectPending: "COMPLETED", recurringpb.OrderStatusProjectReject: "REFUNDED", recurringpb.OrderStatusRefund: "REFUNDED", recurringpb.OrderStatusChargeback: "CHARGEBACK_RESOLVED", recurringpb.OrderStatusPaymentSystemDeclined: "DECLINED", recurringpb.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 *billingpb.Order, rep billingpb.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.