bookie

package
v0.0.0-...-09899ef Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2021 License: MIT Imports: 7 Imported by: 0

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

func CreatePayment

func CreatePayment(token string, params map[string]interface{}) (*Payment, error)

CreatePayment attempts to create/broadcast a payment using the given params FIXME-- this is a proof of concept for now...

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

type Service

type Service struct {
	api.Client
}

Service for the ident api

func InitBookieService

func InitBookieService(token *string) *Service

InitBookieService convenience method to initialize a `bookie.Service` instance

Jump to

Keyboard shortcuts

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