fee treatment added
This commit is contained in:
@@ -313,7 +313,7 @@ func (s *Service) publishPendingConfirmationResult(pending *storagemodel.Pending
|
||||
return nil
|
||||
}
|
||||
|
||||
func (s *Service) sendTelegramText(ctx context.Context, request *model.TelegramTextRequest) error {
|
||||
func (s *Service) sendTelegramText(_ context.Context, request *model.TelegramTextRequest) error {
|
||||
if request == nil {
|
||||
return merrors.InvalidArgument("telegram text request is nil", "request")
|
||||
}
|
||||
|
||||
@@ -756,27 +756,3 @@ func readEnv(env string) string {
|
||||
}
|
||||
|
||||
var _ grpcapp.Service = (*Service)(nil)
|
||||
|
||||
func statusFromConfirmationResult(r *model.ConfirmationResult) storagemodel.PaymentStatus {
|
||||
if r == nil {
|
||||
return storagemodel.PaymentStatusWaiting
|
||||
}
|
||||
|
||||
switch r.Status {
|
||||
|
||||
case model.ConfirmationStatusConfirmed:
|
||||
return storagemodel.PaymentStatusProcessing
|
||||
|
||||
case model.ConfirmationStatusClarified:
|
||||
return storagemodel.PaymentStatusWaiting
|
||||
|
||||
case model.ConfirmationStatusRejected:
|
||||
return storagemodel.PaymentStatusFailed
|
||||
|
||||
case model.ConfirmationStatusTimeout:
|
||||
return storagemodel.PaymentStatusFailed
|
||||
|
||||
default:
|
||||
return storagemodel.PaymentStatusFailed
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user