Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BillingAccount ¶
type BillingAccount struct { api.Model ApplicationID uuid.UUID `json:"application_id,omitempty"` OrganizationID uuid.UUID `json:"organization_id,omitempty"` UserID uuid.UUID `json:"user_id,omitempty"` Nickname *string `json:"nickname"` KYCProvider *string `json:"kyc_provider,omitempty"` KYCApplicationID *uuid.UUID `json:"kyc_application_id,omitempty"` MoneyServiceProvider *string `json:"money_service_provider,omitempty"` Identifier *string `json:"identifier,omitempty"` Address *string `json:"address,omitempty"` Verified bool `json:"verified,omitempty"` }
BillingAccount instances represent a virtual account with which payment methods can be associated (i.e., for charging customers); currently this is a singleton-per-user
type Payment ¶
type Payment struct { api.Model NetworkID uuid.UUID `json:"network_id,omitempty"` ApplicationID uuid.UUID `json:"application_id,omitempty"` OrganizationID uuid.UUID `json:"organization_id,omitempty"` UserID uuid.UUID `json:"user_id,omitempty"` Address *string `json:"address,omitempty"` Description *string `json:"description"` Status *string `json:"status"` Type *string `json:"type"` Params map[string]interface{} `json:"params"` Provider *string `json:"provider"` Value *big.Int `json:"value"` }
Payment defines a payment request
type PaymentMethod ¶
type PaymentMethod struct { api.Model ApplicationID uuid.UUID `json:"application_id,omitempty"` OrganizationID uuid.UUID `json:"organization_id,omitempty"` UserID uuid.UUID `json:"user_id,omitempty"` Nickname *string `json:"nickname"` Brand *string `json:"brand,omitempty"` ExpMonth *uint8 `json:"exp_month,omitempty"` ExpYear *uint16 `json:"exp_year,omitempty"` Last4 *string `json:"last4,omitempty"` Metadata *json.RawMessage `json:"metadata,omitempty"` }
PaymentMethod represents a tokenized or virtual means by which value can be transferred
Click to show internal directories.
Click to hide internal directories.