pricingtier

package
v4.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssignPricingTierToTenant

func AssignPricingTierToTenant(pricingTierId string, tenantId string) (*warrant.Warrant, error)

func AssignPricingTierToUser

func AssignPricingTierToUser(pricingTierId string, userId string) (*warrant.Warrant, error)

func Create

func Create(params *warrant.PricingTierParams) (*warrant.PricingTier, error)

func Delete

func Delete(pricingTierId string) error

func Get

func Get(pricingTierId string) (*warrant.PricingTier, error)

func ListPricingTiers

func ListPricingTiers(listParams *warrant.ListPricingTierParams) ([]warrant.PricingTier, error)

func ListPricingTiersForTenant

func ListPricingTiersForTenant(userId string, listParams *warrant.ListPricingTierParams) ([]warrant.PricingTier, error)

func ListPricingTiersForUser

func ListPricingTiersForUser(userId string, listParams *warrant.ListPricingTierParams) ([]warrant.PricingTier, error)

func RemovePricingTierFromTenant

func RemovePricingTierFromTenant(pricingTierId string, tenantId string) error

func RemovePricingTierFromUser

func RemovePricingTierFromUser(pricingTierId string, userId string) error

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(config config.ClientConfig) Client

func (Client) AssignPricingTierToTenant

func (c Client) AssignPricingTierToTenant(pricingTierId string, tenantId string) (*warrant.Warrant, error)

func (Client) AssignPricingTierToUser

func (c Client) AssignPricingTierToUser(pricingTierId string, userId string) (*warrant.Warrant, error)

func (Client) Create

func (c Client) Create(params *warrant.PricingTierParams) (*warrant.PricingTier, error)

func (Client) Delete

func (c Client) Delete(pricingTierId string) error

func (Client) Get

func (c Client) Get(pricingTierId string) (*warrant.PricingTier, error)

func (Client) ListPricingTiers

func (c Client) ListPricingTiers(listParams *warrant.ListPricingTierParams) ([]warrant.PricingTier, error)

func (Client) ListPricingTiersForTenant

func (c Client) ListPricingTiersForTenant(tenantId string, listParams *warrant.ListPricingTierParams) ([]warrant.PricingTier, error)

func (Client) ListPricingTiersForUser

func (c Client) ListPricingTiersForUser(userId string, listParams *warrant.ListPricingTierParams) ([]warrant.PricingTier, error)

func (Client) RemovePricingTierFromTenant

func (c Client) RemovePricingTierFromTenant(pricingTierId string, tenantId string) error

func (Client) RemovePricingTierFromUser

func (c Client) RemovePricingTierFromUser(pricingTierId string, userId string) error

Jump to

Keyboard shortcuts

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