graphql

package
v0.4.0-alpha Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHasuraGraphQLClient

func NewHasuraGraphQLClient(AdminSecret string, Endpoint string) graphql.Client

Types

type Account_type_enum

type Account_type_enum string
const (
	Account_type_enumCustodialBusiness     Account_type_enum = "CUSTODIAL_BUSINESS"
	Account_type_enumCustodialCommunity    Account_type_enum = "CUSTODIAL_COMMUNITY"
	Account_type_enumCustodialPersonal     Account_type_enum = "CUSTODIAL_PERSONAL"
	Account_type_enumCustodialSystem       Account_type_enum = "CUSTODIAL_SYSTEM"
	Account_type_enumNonCustodialBusiness  Account_type_enum = "NON_CUSTODIAL_BUSINESS"
	Account_type_enumNonCustodialCommunity Account_type_enum = "NON_CUSTODIAL_COMMUNITY"
	Account_type_enumNonCustodialPersonal  Account_type_enum = "NON_CUSTODIAL_PERSONAL"
	Account_type_enumNonCustodialSystem    Account_type_enum = "NON_CUSTODIAL_SYSTEM"
)

type Interface_type_enum

type Interface_type_enum string
const (
	Interface_type_enumApp      Interface_type_enum = "APP"
	Interface_type_enumTelegram Interface_type_enum = "TELEGRAM"
	Interface_type_enumUssd     Interface_type_enum = "USSD"
)

type PrepareMessagePayloadReceiverAccounts

type PrepareMessagePayloadReceiverAccounts struct {
	Blockchain_address string            `json:"blockchain_address"`
	Account_type       Account_type_enum `json:"account_type"`
	// An object relationship
	User PrepareMessagePayloadReceiverAccountsUserUsers `json:"user"`
}

PrepareMessagePayloadReceiverAccounts includes the requested fields of the GraphQL type accounts. The GraphQL type's documentation follows.

columns and relationships of "accounts"

func (*PrepareMessagePayloadReceiverAccounts) GetAccount_type

GetAccount_type returns PrepareMessagePayloadReceiverAccounts.Account_type, and is useful for accessing the field via an interface.

func (*PrepareMessagePayloadReceiverAccounts) GetBlockchain_address

func (v *PrepareMessagePayloadReceiverAccounts) GetBlockchain_address() string

GetBlockchain_address returns PrepareMessagePayloadReceiverAccounts.Blockchain_address, and is useful for accessing the field via an interface.

func (*PrepareMessagePayloadReceiverAccounts) GetUser

GetUser returns PrepareMessagePayloadReceiverAccounts.User, and is useful for accessing the field via an interface.

type PrepareMessagePayloadReceiverAccountsUserUsers

type PrepareMessagePayloadReceiverAccountsUserUsers struct {
	Interface_type       Interface_type_enum `json:"interface_type"`
	Interface_identifier string              `json:"interface_identifier"`
	// An object relationship
	Personal_information PrepareMessagePayloadReceiverAccountsUserUsersPersonal_information `json:"personal_information"`
}

PrepareMessagePayloadReceiverAccountsUserUsers includes the requested fields of the GraphQL type users. The GraphQL type's documentation follows.

columns and relationships of "users"

func (*PrepareMessagePayloadReceiverAccountsUserUsers) GetInterface_identifier

func (v *PrepareMessagePayloadReceiverAccountsUserUsers) GetInterface_identifier() string

GetInterface_identifier returns PrepareMessagePayloadReceiverAccountsUserUsers.Interface_identifier, and is useful for accessing the field via an interface.

func (*PrepareMessagePayloadReceiverAccountsUserUsers) GetInterface_type

GetInterface_type returns PrepareMessagePayloadReceiverAccountsUserUsers.Interface_type, and is useful for accessing the field via an interface.

func (*PrepareMessagePayloadReceiverAccountsUserUsers) GetPersonal_information

GetPersonal_information returns PrepareMessagePayloadReceiverAccountsUserUsers.Personal_information, and is useful for accessing the field via an interface.

type PrepareMessagePayloadReceiverAccountsUserUsersPersonal_information

type PrepareMessagePayloadReceiverAccountsUserUsersPersonal_information struct {
	Family_name   string `json:"family_name"`
	Given_names   string `json:"given_names"`
	Language_code string `json:"language_code"`
}

PrepareMessagePayloadReceiverAccountsUserUsersPersonal_information includes the requested fields of the GraphQL type personal_information. The GraphQL type's documentation follows.

columns and relationships of "personal_information"

func (*PrepareMessagePayloadReceiverAccountsUserUsersPersonal_information) GetFamily_name

GetFamily_name returns PrepareMessagePayloadReceiverAccountsUserUsersPersonal_information.Family_name, and is useful for accessing the field via an interface.

func (*PrepareMessagePayloadReceiverAccountsUserUsersPersonal_information) GetGiven_names

GetGiven_names returns PrepareMessagePayloadReceiverAccountsUserUsersPersonal_information.Given_names, and is useful for accessing the field via an interface.

func (*PrepareMessagePayloadReceiverAccountsUserUsersPersonal_information) GetLanguage_code

GetLanguage_code returns PrepareMessagePayloadReceiverAccountsUserUsersPersonal_information.Language_code, and is useful for accessing the field via an interface.

type PrepareMessagePayloadResponse

type PrepareMessagePayloadResponse struct {
	// An array relationship
	Sender []PrepareMessagePayloadSenderAccounts `json:"sender"`
	// An array relationship
	Receiver []PrepareMessagePayloadReceiverAccounts `json:"receiver"`
	// fetch data from the table: "vouchers"
	Vouchers []PrepareMessagePayloadVouchers `json:"vouchers"`
}

PrepareMessagePayloadResponse is returned by PrepareMessagePayload on success.

func PrepareMessagePayload

func PrepareMessagePayload(
	ctx context.Context,
	client graphql.Client,
	fromAddress string,
	toAddress string,
	voucherAddress string,
) (*PrepareMessagePayloadResponse, error)

func (*PrepareMessagePayloadResponse) GetReceiver

GetReceiver returns PrepareMessagePayloadResponse.Receiver, and is useful for accessing the field via an interface.

func (*PrepareMessagePayloadResponse) GetSender

GetSender returns PrepareMessagePayloadResponse.Sender, and is useful for accessing the field via an interface.

func (*PrepareMessagePayloadResponse) GetVouchers

GetVouchers returns PrepareMessagePayloadResponse.Vouchers, and is useful for accessing the field via an interface.

type PrepareMessagePayloadSenderAccounts

type PrepareMessagePayloadSenderAccounts struct {
	Blockchain_address string            `json:"blockchain_address"`
	Account_type       Account_type_enum `json:"account_type"`
	// An object relationship
	User PrepareMessagePayloadSenderAccountsUserUsers `json:"user"`
}

PrepareMessagePayloadSenderAccounts includes the requested fields of the GraphQL type accounts. The GraphQL type's documentation follows.

columns and relationships of "accounts"

func (*PrepareMessagePayloadSenderAccounts) GetAccount_type

GetAccount_type returns PrepareMessagePayloadSenderAccounts.Account_type, and is useful for accessing the field via an interface.

func (*PrepareMessagePayloadSenderAccounts) GetBlockchain_address

func (v *PrepareMessagePayloadSenderAccounts) GetBlockchain_address() string

GetBlockchain_address returns PrepareMessagePayloadSenderAccounts.Blockchain_address, and is useful for accessing the field via an interface.

func (*PrepareMessagePayloadSenderAccounts) GetUser

GetUser returns PrepareMessagePayloadSenderAccounts.User, and is useful for accessing the field via an interface.

type PrepareMessagePayloadSenderAccountsUserUsers

type PrepareMessagePayloadSenderAccountsUserUsers struct {
	Interface_type       Interface_type_enum `json:"interface_type"`
	Interface_identifier string              `json:"interface_identifier"`
	// An object relationship
	Personal_information PrepareMessagePayloadSenderAccountsUserUsersPersonal_information `json:"personal_information"`
}

PrepareMessagePayloadSenderAccountsUserUsers includes the requested fields of the GraphQL type users. The GraphQL type's documentation follows.

columns and relationships of "users"

func (*PrepareMessagePayloadSenderAccountsUserUsers) GetInterface_identifier

func (v *PrepareMessagePayloadSenderAccountsUserUsers) GetInterface_identifier() string

GetInterface_identifier returns PrepareMessagePayloadSenderAccountsUserUsers.Interface_identifier, and is useful for accessing the field via an interface.

func (*PrepareMessagePayloadSenderAccountsUserUsers) GetInterface_type

GetInterface_type returns PrepareMessagePayloadSenderAccountsUserUsers.Interface_type, and is useful for accessing the field via an interface.

func (*PrepareMessagePayloadSenderAccountsUserUsers) GetPersonal_information

GetPersonal_information returns PrepareMessagePayloadSenderAccountsUserUsers.Personal_information, and is useful for accessing the field via an interface.

type PrepareMessagePayloadSenderAccountsUserUsersPersonal_information

type PrepareMessagePayloadSenderAccountsUserUsersPersonal_information struct {
	Family_name   string `json:"family_name"`
	Given_names   string `json:"given_names"`
	Language_code string `json:"language_code"`
}

PrepareMessagePayloadSenderAccountsUserUsersPersonal_information includes the requested fields of the GraphQL type personal_information. The GraphQL type's documentation follows.

columns and relationships of "personal_information"

func (*PrepareMessagePayloadSenderAccountsUserUsersPersonal_information) GetFamily_name

GetFamily_name returns PrepareMessagePayloadSenderAccountsUserUsersPersonal_information.Family_name, and is useful for accessing the field via an interface.

func (*PrepareMessagePayloadSenderAccountsUserUsersPersonal_information) GetGiven_names

GetGiven_names returns PrepareMessagePayloadSenderAccountsUserUsersPersonal_information.Given_names, and is useful for accessing the field via an interface.

func (*PrepareMessagePayloadSenderAccountsUserUsersPersonal_information) GetLanguage_code

GetLanguage_code returns PrepareMessagePayloadSenderAccountsUserUsersPersonal_information.Language_code, and is useful for accessing the field via an interface.

type PrepareMessagePayloadVouchers

type PrepareMessagePayloadVouchers struct {
	Symbol string `json:"symbol"`
}

PrepareMessagePayloadVouchers includes the requested fields of the GraphQL type vouchers. The GraphQL type's documentation follows.

columns and relationships of "vouchers"

func (*PrepareMessagePayloadVouchers) GetSymbol

func (v *PrepareMessagePayloadVouchers) GetSymbol() string

GetSymbol returns PrepareMessagePayloadVouchers.Symbol, and is useful for accessing the field via an interface.

Jump to

Keyboard shortcuts

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