paymentsconfig

package
v0.35.2 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2020 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Provider           string `help:"payments provider to use" default:""`
	StripeCoinPayments stripecoinpayments.Config
	StorageTBPrice     string      `help:"price user should pay for storing TB per month" default:"10"`
	EgressTBPrice      string      `help:"price user should pay for each TB of egress" default:"45"`
	ObjectPrice        string      `help:"price user should pay for each object stored in network per month" default:"0.0000022"`
	BonusRate          int64       `help:"amount of percents that user will earn as bonus credits by depositing in STORJ tokens" default:"10"`
	CouponValue        int64       `help:"coupon value in cents" default:"30"`
	CouponDuration     int64       `help:"duration a new coupon is valid in months/billing cycles" default:"2"`
	CouponProjectLimit memory.Size `help:"project limit to which increase to after applying the coupon, 0 B means not changing it from the default" default:"0 B"`
	MinCoinPayment     int64       `help:"minimum value of coin payments in cents before coupon is applied" default:"5000"`
}

Config defines global payments config.

Jump to

Keyboard shortcuts

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