pricing

package
v1.46.25 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2026 License: MIT Imports: 6 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Fees

type Fees struct {
	Id string `json:"id"`

	// Debit/Credit Card processing fees
	Card struct {
		Percent       float64        `json:"percent,omitempty"`
		Flat          currency.Cents `json:"flat,omitempty"`
		Amex          float64        `json:"amex,omitempty"`
		International float64        `json:"international,omitempty"`
	} `json:"card"`

	Bitcoin struct {
		Percent float64        `json:"percent,omitempty"`
		Flat    currency.Cents `json:"flat,omitempty"`
	} `json:"bitcoin"`

	Ethereum struct {
		Percent float64        `json:"percent,omitempty"`
		Flat    currency.Cents `json:"flat,omitempty"`
	} `json:"ethereum"`

	// Affiliate fees
	Affiliate struct {
		Percent float64        `json:"percent,omitempty"`
		Flat    currency.Cents `json:"flat,omitempty"`
	} `json:"affiliate"`
}

Various fees we collect

func (Fees) Key

func (f Fees) Key(ctx context.Context) iface.Key

type Partner

type Partner struct {
	Id string `json:"id"`

	// Commission partner receives
	Card struct {
		Commission commission.Commission `json:"commission"`
	} `json:"card"`

	Bitcoin struct {
		Commission commission.Commission `json:"commission"`
	} `json:"bitcoin"`

	Ethereum struct {
		Commission commission.Commission `json:"commission"`
	} `json:"ethereum"`
}

Partner pricing fees

func (Partner) Key

func (p Partner) Key(ctx context.Context) iface.Key

Jump to

Keyboard shortcuts

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