offercodes

package
v1.261116.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2026 License: MIT Imports: 12 Imported by: 0 modules, 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

func NewActiveUpdateCommand

func NewActiveUpdateCommand(config ActiveUpdateCommandConfig) *ffcli.Command

NewActiveUpdateCommand builds a command that updates a resource's active attribute.

func NewOfferCodeCustomCodesCommand

func NewOfferCodeCustomCodesCommand(d *shared.Deps) *ffcli.Command

NewOfferCodeCustomCodesCommand returns the custom codes command group built on d.

func NewOfferCodesGenerateCommand

func NewOfferCodesGenerateCommand(d *shared.Deps) *ffcli.Command

NewOfferCodesGenerateCommand returns the offer codes generate subcommand built on d.

func NewOfferCodesValuesCommand

func NewOfferCodesValuesCommand(d *shared.Deps) *ffcli.Command

NewOfferCodesValuesCommand returns the offer codes values subcommand built on d.

Types

type ActiveUpdateCommandConfig

type ActiveUpdateCommandConfig struct {
	FlagSetName string
	Name        string
	ShortUsage  string
	ShortHelp   string
	LongHelp    string
	IDFlag      string
	IDUsage     string
	IDType      string
	ErrorPrefix string
	// ConfirmOff names what --active false turns off permanently; when set,
	// --active false requires --confirm.
	ConfirmOff string
	Update     func(context.Context, *asc.Client, string, *bool) (any, error)
	// Deps is what the command is built on. It defaults to shared.DefaultDeps().
	Deps *shared.Deps
}

ActiveUpdateCommandConfig describes a command that sets a resource's active attribute.

Jump to

Keyboard shortcuts

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