plansubscription

package
v1.0.0-beta.210 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChangeSubscriptionRequest

type ChangeSubscriptionRequest struct {
	ID            models.NamespacedID
	WorkflowInput subscriptionworkflow.ChangeSubscriptionWorkflowInput
	PlanInput     PlanInput
}

type CreateSubscriptionRequest

type CreateSubscriptionRequest struct {
	WorkflowInput subscriptionworkflow.CreateSubscriptionWorkflowInput
	PlanInput     PlanInput
}

type MigrateSubscriptionRequest

type MigrateSubscriptionRequest struct {
	ID            models.NamespacedID
	TargetVersion *int
}

type Phase

type Phase struct {
	productcatalog.Phase
	StartAfter isodate.Period
}

func (*Phase) GetKey

func (p *Phase) GetKey() string

func (*Phase) GetRateCards

func (p *Phase) GetRateCards() []subscription.PlanRateCard

func (*Phase) ToCreateSubscriptionPhasePlanInput

func (p *Phase) ToCreateSubscriptionPhasePlanInput() subscription.CreateSubscriptionPhasePlanInput

type Plan

type Plan struct {
	productcatalog.Plan
	Ref *models.NamespacedID
}

func (*Plan) Currency

func (p *Plan) Currency() currencyx.Code

func (*Plan) GetName

func (p *Plan) GetName() string

func (*Plan) GetPhases

func (p *Plan) GetPhases() []subscription.PlanPhase

func (*Plan) ToCreateSubscriptionPlanInput

func (p *Plan) ToCreateSubscriptionPlanInput() subscription.CreateSubscriptionPlanInput

type PlanInput

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

func (*PlanInput) AsInput

func (p *PlanInput) AsInput() *plan.CreatePlanInput

func (*PlanInput) AsRef

func (p *PlanInput) AsRef() *PlanRefInput

func (*PlanInput) FromInput

func (p *PlanInput) FromInput(pi *plan.CreatePlanInput)

func (*PlanInput) FromRef

func (p *PlanInput) FromRef(pr *PlanRefInput)

func (*PlanInput) Validate

func (p *PlanInput) Validate() error

type PlanRefInput

type PlanRefInput struct {
	Key     string `json:"key"`
	Version *int   `json:"version,omitempty"`
}

type RateCard

type RateCard struct {
	PhaseKey string
	productcatalog.RateCard
}

func (*RateCard) GetKey

func (r *RateCard) GetKey() string

func (*RateCard) ToCreateSubscriptionItemPlanInput

func (r *RateCard) ToCreateSubscriptionItemPlanInput() subscription.CreateSubscriptionItemPlanInput

type SubscriptionChangeResponse

type SubscriptionChangeResponse struct {
	Current subscription.Subscription
	Next    subscription.SubscriptionView
}

Generic response where a customer's subscription is changed to a different one.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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