Documentation
¶
Index ¶
- type Account
- type AccountChange
- type AccountStats
- type AdminDashboardInfo
- type ApiError
- type ApiTokenInfo
- type CallbackSecret
- type Instance
- type InstanceBootstrap
- type InstanceInfo
- type InstanceStats
- type Merchant
- type MerchantAPIKeys
- type MerchantDashboardInfo
- type MerchantSettings
- type MerchantStats
- type NewAccount
- type Payment
- type PaymentFull
- type PaymentPageInfo
- type PostPaymentRequest
- type PostPaymentResponse
- type Theme
- type Withdrawal
- type WithdrawalRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountChange ¶
type AdminDashboardInfo ¶
type AdminDashboardInfo struct { Stats InstanceStats `json:"instance_stats"` RecentPayments []Payment `json:"recent_payments"` }
type ApiTokenInfo ¶
type CallbackSecret ¶
type Instance ¶
type Instance struct { Version string `json:"version,omitempty"` DefaultCommission uint64 `json:"default_commission"` DefaultCommissionFloat string `json:"default_commission_float,omitempty"` // Allow multiple merchants to use this instance and store their funds // in the instance's wallet. CustodialMode bool `json:"custodial_mode"` // If false, the instance is invite-only. If custodial mode is off // registrations can't be allowed. RegistrationsAllowed bool `json:"registrations_allowed"` // Decide when auto withdrawals should happen if custodial mode is on. WithdrawalTimes string `json:"withdrawal_times"` }
type InstanceBootstrap ¶
type InstanceBootstrap struct { // Flag to indicate bootstrapping is needed: // Creation of admin account, default theme etc. FirstRun bool `json:"first_run"` }
type InstanceInfo ¶
type InstanceInfo struct { Details Instance `json:"details"` Stats InstanceStats `json:"stats"` }
type InstanceStats ¶
type InstanceStats struct { // Total fees paid by merchants WalletBalance uint64 `json:"wallet_balance"` WalletBalanceFloat string `json:"wallet_balance_float,omitempty"` TotalProfits uint64 `json:"total_profits"` TotalProfitsFloat string `json:"total_profits_float,omitempty"` TotalMerchants uint64 `json:"total_merchants"` }
type MerchantAPIKeys ¶
type MerchantDashboardInfo ¶
type MerchantDashboardInfo struct { Stats MerchantStats `json:"merchant_stats"` RecentPayments []Payment `json:"recent_payments"` }
type MerchantSettings ¶
type MerchantStats ¶
type NewAccount ¶
type Payment ¶
type Payment struct { InvoiceId string `json:"invoice_id"` MerchantName string `json:"merchant_name"` Amount uint64 `json:"amount"` AmountFloat string `json:"amount_float,omitempty"` Fee uint64 `json:"fee"` FeeFloat string `json:"fee_float,omitempty"` // Merchant provided ID for this payment OrderId string `json:"order_id,omitempty"` // Possible statuses: pending, confirming, finished, cancelled, withdrawn Status string `json:"status"` LastUpdate time.Time `json:"last_update"` }
type PaymentFull ¶
type PaymentFull struct { InvoiceId string `json:"invoice_id"` MerchantName string `json:"merchant_name"` Amount uint64 `json:"amount"` AmountFloat string `json:"amount_float,omitempty"` Fee uint64 `json:"fee"` FeeFloat string `json:"fee_float,omitempty"` // Merchant provided ID for this payment OrderId string `json:"order_id,omitempty"` // Possible statuses: pending, confirming, finished, cancelled, withdrawn Status string `json:"status"` LastUpdate time.Time `json:"last_update"` AcceptUrl string `json:"accept_url,omitempty"` CancelUrl string `json:"cancel_url,omitempty"` CallbackUrl string `json:"callback_url,omitempty"` Address string `json:"address"` // Merchant provided extra data field ExtraData string `json:"extra_data,omitempty"` }
Contains all information related to a payment
type PaymentPageInfo ¶
type PaymentPageInfo struct { InvoiceId string `json:"invoice_id"` MerchantName string `json:"merchant_name"` TemplateId string `json:"template_id"` Amount uint64 `json:"amount"` AmountFloat string `json:"amount_float,omitempty"` // Merchant provided ID for this payment OrderId string `json:"order_id,omitempty"` // Possible statuses: pending, confirming, finished, cancelled, withdrawn Status string `json:"status"` LastUpdate time.Time `json:"last_update"` AcceptUrl string `json:"accept_url,omitempty"` CancelUrl string `json:"cancel_url,omitempty"` Address string `json:"address"` Qr string `json:"qr"` // Merchant provided extra data field ExtraData string `json:"extra_data,omitempty"` }
Payment data passed to checkout page template
type PostPaymentRequest ¶
type PostPaymentRequest struct { Amount uint64 `json:"amount"` // Merchant provided ID for this payment OrderId string `json:"order_id,omitempty"` // URL for redirection based on customer actions. // These variables are passed to the merchant template. AcceptUrl string `json:"accept_url,omitempty"` CancelUrl string `json:"cancel_url,omitempty"` CallbackUrl string `json:"callback_url,omitempty"` // Merchant provided extra data field ExtraData string `json:"extra_data,omitempty"` }
type PostPaymentResponse ¶
type Withdrawal ¶
type WithdrawalRequest ¶
type WithdrawalRequest struct {
Address string `json:"address"`
}
Click to show internal directories.
Click to hide internal directories.