processing_request

package
v0.9.8-RC08 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InitializeRequest

type InitializeRequest struct {
	// Host (http://domain.example:574 or https://127.0.0.1:999)
	Host                  string `json:"host" validate:"required,url"`
	CallbackDomain        string `json:"callback_domain" validate:"required"`
	MerchantDomain        string `json:"merchant_domain" validate:"required"`
	MerchantPayFormDomain string `json:"merchant_pay_form_domain" validate:"required"`

} // @name InitializeProcessingRequest

type MnemonicOwnerConfirmRequest

type MnemonicOwnerConfirmRequest struct {
	Mnemonic string `json:"mnemonic"`
}

type MnemonicRequest

type MnemonicRequest struct {
	Mnemonic string `json:"mnemonic" validate:"required"`
}

type ProcessingWebhook

type ProcessingWebhook struct {
	Blockchain       models.Blockchain        `json:"blockchain"`
	Hash             string                   `json:"hash"`
	RequestID        uuid.NullUUID            `json:"request_id"`
	NetworkCreatedAt time.Time                `json:"network_created_at"`
	FromAddress      string                   `json:"from_address,omitempty"`
	ToAddress        string                   `json:"to_address,omitempty"`
	Amount           string                   `json:"amount"`
	ContractAddress  string                   `json:"contract_address,omitempty"`
	Status           models.TransactionStatus `json:"status"`
	IsSystem         bool                     `json:"is_system"`
	Fee              string                   `json:"fee"`
	Confirmations    uint64                   `json:"confirmations"`
	TxUniqKey        string                   `json:"tx_uniq_key,omitempty"`
	ExternalWalletID string                   `json:"external_wallet_id,omitempty"`
	WalletType       models.WalletType        `json:"wallet_type"`
	Kind             models.WebhookKind       `json:"kind"`

} // @name ProcessingWebhook

type TransferStatusWebhook

type TransferStatusWebhook struct {
	Kind               models.WebhookKind           `json:"kind"`
	Status             models.TransferStatus        `json:"status" `
	SystemTransactions []TransferSystemTransactions `json:"system_transactions" validate:"dive"`
	Step               string                       `json:"step"`
	ErrorMessage       *string                      `json:"error_message,omitempty"`
	RequestID          *uuid.UUID                   `json:"request_id,omitempty" format:"uuid"`

} // @name TransferStatusWebhook

type TransferSystemTransactions

type TransferSystemTransactions struct {
	ID                uuid.UUID                         `json:"id"`
	TransferID        uuid.UUID                         `json:"transfer_id"`
	TxHash            string                            `json:"tx_hash"`
	BandwidthAmount   decimal.Decimal                   `json:"bandwidth_amount" validate:"required,decimal_gte=0"`
	EnergyAmount      decimal.Decimal                   `json:"energy_amount" validate:"required,decimal_gte=0"`
	NativeTokenAmount decimal.Decimal                   `json:"native_token_amount" validate:"required,decimal_gte=0"`
	NativeTokenFee    decimal.Decimal                   `json:"native_token_fee" validate:"required,decimal_gte=0"`
	TxType            models.TransferTransactionType    `` /* 126-byte string literal not displayed */
	Status            models.TransferTransactionsStatus `json:"status" validate:"required,oneof=pending unconfirmed confirmed failed"`
	Step              string                            `json:"step"`

} // @name TransferSystemTransactions

type UpdateProcessingCallbackDomain

type UpdateProcessingCallbackDomain struct {
	Domain string `json:"domain" validate:"required,min=1,max=255"`
}

Jump to

Keyboard shortcuts

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