transaction

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2021 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LOGGER = logging.MustGetLogger("transaction")

Functions

func CreateDataForTransactionMemo

func CreateDataForTransactionMemo(data *sendmodel.StatusData) model.Send

Types

type CreateFundingOpereations

type CreateFundingOpereations struct {
	GasClient gasserviceclient.Client
	// contains filtered or unexported fields
}

func InitiateFundingOperations

func InitiateFundingOperations(pr, domain string) (op CreateFundingOpereations)

func (*CreateFundingOpereations) FundAndSubmitPaymentTransaction

func (op *CreateFundingOpereations) FundAndSubmitPaymentTransaction(rfiAccount, instructionId, xmlMsgType, rfiSettlementAccountName string, dbData sendmodel.SignData, memoHash xdr.Memo) (int, string, string)

func (*CreateFundingOpereations) SendToAdm

func (op *CreateFundingOpereations) SendToAdm(paymentInfo []model.TransactionReceipt, method, instructionId string, txMemo model.FitoFICCTMemoData)

SendToAdm - logs transaction in admin service, firebase, etc.

type FbTrxLog

type FbTrxLog struct {

	// HomeDomain
	ParticipantID *string `json:"participant_id"`

	// Transaction details included in transaction memo
	// debtor/creditor amounts, currencies, status
	TransactionMemo interface{} `json:"transaction_memo"`
}

FbTrxLog : Logs Non-PII transaction data for the portal

type FbTrxUpdateLog

type FbTrxUpdateLog struct {
	ParticipantID   string                 `json:"participant_id"`
	TransactionMemo map[string]interface{} `json:"transaction_memo"`
}

type Payment

type Payment struct {
	PaymentStatuses []model.TransactionReceipt
}

func InitiatePaymentLogOperation

func InitiatePaymentLogOperation() (op Payment)

func (*Payment) BuildTXMemo

func (op *Payment) BuildTXMemo(opType string, data *sendmodel.StatusData, stellarTxnId, orgnlMsgId, orgnlInstrId, ofiId, messageType, messageName string) model.FitoFICCTMemoData

func (*Payment) RecordPaymentStatus

func (op *Payment) RecordPaymentStatus(data ...string)

Jump to

Keyboard shortcuts

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