model

package
v0.0.0-...-a2f44c0 Latest Latest
Warning

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

Go to latest
Published: May 21, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AllError = []Error{
	ErrorNoAuth,
}

Functions

This section is empty.

Types

type Balance

type Balance struct {
	Token      string  `json:"token"`
	Balance    float64 `json:"balance"`
	UsdBalance float64 `json:"usdBalance"`
}

type BalanceFilter

type BalanceFilter struct {
	AddressEq string `json:"addressEq"`
	ChainEq   string `json:"chainEq"`
	TokenEq   string `json:"tokenEq"`
}

type CheckInvoiceInput

type CheckInvoiceInput struct {
	ID string `json:"id"`
}

type CheckInvoicePayload

type CheckInvoicePayload struct {
	Invoice *invoices_service.Invoice `json:"invoice"`
}

type ClientMutations

type ClientMutations struct{}

type ClientsFilter

type ClientsFilter struct {
	UsernameIn []string `json:"username_in,omitempty"`
}

type ClientsPagination

type ClientsPagination struct {
	Items []*clients_service.Client `json:"items,omitempty"`
}

type CreateInvoiceInput

type CreateInvoiceInput struct {
	UsdAmount float64 `json:"usd_amount"`
}

type CreateInvoicePayload

type CreateInvoicePayload struct {
	ID string `json:"id"`
}

type Error

type Error string
const (
	ErrorNoAuth Error = "NO_AUTH"
)

func (Error) IsValid

func (e Error) IsValid() bool

func (Error) MarshalGQL

func (e Error) MarshalGQL(w io.Writer)

func (Error) String

func (e Error) String() string

func (*Error) UnmarshalGQL

func (e *Error) UnmarshalGQL(v interface{}) error

type FeeFilter

type FeeFilter struct {
	ChainEq  string `json:"chainEq"`
	GasLimit *int   `json:"gasLimit,omitempty"`
}

type FeePayload

type FeePayload struct {
	UsdAmount   float64 `json:"usd_amount"`
	TokenAmount float64 `json:"token_amount"`
}

type InvoiceMutations

type InvoiceMutations struct{}

type InvoiceStatus

type InvoiceStatus string
const (
	InvoiceStatusUnknownStatus   InvoiceStatus = "UNKNOWN_STATUS"
	InvoiceStatusNew             InvoiceStatus = "NEW"
	InvoiceStatusPending         InvoiceStatus = "PENDING"
	InvoiceStatusFailed          InvoiceStatus = "FAILED"
	InvoiceStatusSuccess         InvoiceStatus = "SUCCESS"
	InvoiceStatusExpired         InvoiceStatus = "EXPIRED"
	InvoiceStatusSendingToClient InvoiceStatus = "SENDING_TO_CLIENT"
	InvoiceStatusManualControl   InvoiceStatus = "MANUAL_CONTROL"
)

func (InvoiceStatus) IsValid

func (e InvoiceStatus) IsValid() bool

func (InvoiceStatus) MarshalGQL

func (e InvoiceStatus) MarshalGQL(w io.Writer)

func (InvoiceStatus) String

func (e InvoiceStatus) String() string

func (*InvoiceStatus) UnmarshalGQL

func (e *InvoiceStatus) UnmarshalGQL(v interface{}) error

type InvoicesFilter

type InvoicesFilter struct {
	IDIn       []string        `json:"idIn,omitempty"`
	ClientIDIn []string        `json:"clientIdIn,omitempty"`
	StatusIn   []InvoiceStatus `json:"statusIn,omitempty"`
}

type InvoicesPagination

type InvoicesPagination struct {
	Items []*invoices_service.Invoice `json:"items,omitempty"`
}

type LoginInput

type LoginInput struct {
	Username string `json:"username"`
	Password string `json:"password"`
}

type LoginPayload

type LoginPayload struct {
	Token string `json:"token"`
}

type MainBalance

type MainBalance struct {
	UsdBalance float64 `json:"usdBalance"`
}

type Mutations

type Mutations struct{}

type RegistrationMutations

type RegistrationMutations struct{}

type RestorePasswordMutations

type RestorePasswordMutations struct{}

type SendEmailOtpInput

type SendEmailOtpInput struct {
	Email string `json:"email"`
}

type SendEmailOtpPayload

type SendEmailOtpPayload struct {
	EmailCodeID string `json:"email_code_id"`
}

type SignUpInput

type SignUpInput struct {
	EmailCodeID string `json:"email_code_id"`
	EmailCode   string `json:"email_code"`
	Username    string `json:"username"`
	Password    string `json:"password"`
	Email       string `json:"email"`
}

type SignUpPayload

type SignUpPayload struct {
	Success bool `json:"success"`
}

type TransactionsFilter

type TransactionsFilter struct {
	AddressIn []string `json:"address_in,omitempty"`
}

type TransactionsPagination

type TransactionsPagination struct {
	Items []*crypto_service.Transaction `json:"items,omitempty"`
}

type TransferInput

type TransferInput struct {
	ReceiverAddress  *string `json:"receiver_address,omitempty"`
	ReceiverClientID *string `json:"receiver_client_id,omitempty"`
	GasLimit         *int    `json:"gas_limit,omitempty"`
	GasPrice         *int    `json:"gas_price,omitempty"`
	TokenAmount      float64 `json:"token_amount"`
	Chain            string  `json:"chain"`
}

type TransferPayload

type TransferPayload struct {
	Hash string `json:"hash"`
}

type UpdateClientInput

type UpdateClientInput struct {
	IsInvoiceNotificationEnabled *bool `json:"is_invoice_notification_enabled,omitempty"`
}

type UpdateInvoiceInput

type UpdateInvoiceInput struct {
	ID    string `json:"id"`
	Chain string `json:"chain"`
	Token string `json:"token"`
}

type UpdateInvoicePayload

type UpdateInvoicePayload struct {
	Invoice *invoices_service.Invoice `json:"invoice"`
}

type WalletsFilter

type WalletsFilter struct {
	ClientIDIn []string `json:"clientIdIn,omitempty"`
}

type WalletsPagination

type WalletsPagination struct {
	Items []*crypto_service.Wallet `json:"items,omitempty"`
}

Jump to

Keyboard shortcuts

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