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) 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) 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)
type PlanRefInput ¶
type PlanSubscriptionService ¶
type PlanSubscriptionService interface {
Create(ctx context.Context, request CreateSubscriptionRequest) (subscription.Subscription, error)
Migrate(ctx context.Context, request MigrateSubscriptionRequest) (SubscriptionChangeResponse, error)
Change(ctx context.Context, request ChangeSubscriptionRequest) (SubscriptionChangeResponse, error)
}
type RateCard ¶
type RateCard struct {
PhaseKey string
productcatalog.RateCard
}
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.
Click to show internal directories.
Click to hide internal directories.