wallet

package
v0.0.0-...-0cf82f6 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConsumeOrderResponseForWalletService

func ConsumeOrderResponseForWalletService()

ConsumeOrderResponseForWalletService consumes messages from the processed orders topic to save them to the merchant wallet

func ProcessWalletData

func ProcessWalletData(txn *models.Transaction)

update the merchant wallet with the data from the successful tranactions

func PublishWalletUpdates

func PublishWalletUpdates(walletData *models.Wallet) error

PublishWalletUpdates publishes the wallet updates for a merchant to the wallet-update-topic then the notification service picks up the message and notifies the merchant about the order

func SaveWalletData

func SaveWalletData(walletData *models.Wallet) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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