notif

package
Version: v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2020 License: GPL-2.0, GPL-3.0 Imports: 8 Imported by: 0

README

Notif

Package notif is used to send out notifications to parties when an event happens (for eg an order is invested in or a recipient has received some assets from the platform). The received emails can also be used as proofs of payment / investment in case something goes wrong's side.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SendAlertEmail

func SendAlertEmail(message string, to string) error

SendAlertEmail sends an alert email to an entity

func SendContractNotification

func SendContractNotification(Hash1 string, Hash2 string, Hash3 string, Hash4 string, Hash5 string, to string) error

SendContractNotification sends a notification after an entity signs a contract

func SendDisconnectionEmail

func SendDisconnectionEmail(projIndex int, to string) error

SendDisconnectionEmail sends an email when the amount for 6 payment cycles is due

func SendDisconnectionEmailG

func SendDisconnectionEmailG(projIndex int, to string) error

SendDisconnectionEmailG sends a disconnection email notification to the guarantor

func SendDisconnectionEmailI

func SendDisconnectionEmailI(projIndex int, to string) error

SendDisconnectionEmailI sends an email to the investor when the amount for 6 payment cycles is due on the recipient's end

func SendEmail

func SendEmail(message string, to string, name string) error

SendEmail is a helper for the rpc to send an email to an entity

func SendInvestmentNotifToInvestor

func SendInvestmentNotifToInvestor(projIndex int, to string, stableHash string, trustHash string, assetHash string) error

SendInvestmentNotifToInvestor sends a notification to the investor when they invest in a particular project

func SendInvestmentNotifToRecipient

func SendInvestmentNotifToRecipient(projIndex int, to string, recpPbTrustHash string, recpAssetHash string, recpDebtTrustHash string, recpDebtAssetHash string) error

SendInvestmentNotifToRecipient sends a notification to the recipient when an investor invests in a project they're recipient of

func SendMail

func SendMail(body string, to string) error

SendMail sends an email request to openx for fulfilment

func SendNicePaybackAlertEmail

func SendNicePaybackAlertEmail(projIndex int, to string) error

SendNicePaybackAlertEmail sends an email when the amount for 2 payment cycles is due

func SendPaybackAlertEmail

func SendPaybackAlertEmail(projIndex int, to string) error

SendPaybackAlertEmail sends a payback alert email. We don't know if the user has paid and send this even if the user has paid / received a donation towards this month

func SendPaybackNotifToInvestor

func SendPaybackNotifToInvestor(projIndex int, to string, stableUSDHash string, debtPaybackHash string) error

SendPaybackNotifToInvestor sends a notification email to the investor when the recipient pays back towards an order

func SendPaybackNotifToRecipient

func SendPaybackNotifToRecipient(projIndex int, to string, stableUSDHash string, debtPaybackHash string) error

SendPaybackNotifToRecipient sends a notification email to the recipient when they pay back towards a particular project

func SendRecpNotFoundEmail

func SendRecpNotFoundEmail(projIndex int, recpIndex int) error

SendRecpNotFoundEmail sends an email to the platform admin that the recipient was not found associacted with a project.

func SendSeedInvestmentNotifToInvestor

func SendSeedInvestmentNotifToInvestor(projIndex int, to string, stableHash string, trustHash string, assetHash string) error

SendSeedInvestmentNotifToInvestor sends a notification to the user after seed investment

func SendSternPaybackAlertEmail

func SendSternPaybackAlertEmail(projIndex int, to string) error

SendSternPaybackAlertEmail sends an email when the amount for 4 payment cycles is due.

func SendSternPaybackAlertEmailG

func SendSternPaybackAlertEmailG(projIndex int, to string) error

SendSternPaybackAlertEmailG sends a stern payback email notification to the guarantor

func SendSternPaybackAlertEmailI

func SendSternPaybackAlertEmailI(projIndex int, to string) error

SendSternPaybackAlertEmailI sends a stern payback email notification to the investor

func SendTellerDownEmail

func SendTellerDownEmail(projIndex int, recpIndex int) error

SendTellerDownEmail is an email to the platform notifying that the teller for a particular project is down.

func SendTellerPaymentFailedEmail

func SendTellerPaymentFailedEmail(from string, projIndex string, deviceID string) error

SendTellerPaymentFailedEmail is a notification ot the platform that the teller's payback routine has been disturbed

func SendTellerShutdownEmail

func SendTellerShutdownEmail(from string, projIndex string, deviceID string, tx1 string, tx2 string) error

SendTellerShutdownEmail sends the platform admin an email notifying that the teller has shut down

func SendUnlockNotifToRecipient

func SendUnlockNotifToRecipient(projIndex int, to string) error

SendUnlockNotifToRecipient sends a notification email to the recipient to unlock the given project for accepting investment

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL