models

package
v1.0.0-beta.168 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FeatureKeyAndID

type FeatureKeyAndID struct {
	Key string `json:"key"`
	ID  string `json:"id"`
}

func (FeatureKeyAndID) Validate

func (f FeatureKeyAndID) Validate() error

type NamespaceID

type NamespaceID struct {
	ID string `json:"id"`
}

func (NamespaceID) Validate

func (i NamespaceID) Validate() error

type Subject

type Subject struct {
	Id                 *string                `json:"id"`
	Key                string                 `json:"key"`
	DisplayName        *string                `json:"displayName,omitempty"`
	Metadata           map[string]interface{} `json:"metadata"`
	CurrentPeriodStart *time.Time             `json:"currentPeriodStart,omitempty"`
	CurrentPeriodEnd   *time.Time             `json:"currentPeriodEnd,omitempty"`
	StripeCustomerId   *string                `json:"stripeCustomerId,omitempty"`
}

func (Subject) ToAPIModel

func (s Subject) ToAPIModel() api.Subject

func (Subject) Validate

func (s Subject) Validate() error

type SubjectKeyAndID

type SubjectKeyAndID struct {
	Key string `json:"key"`
	ID  string `json:"id,omitempty"`
}

func (SubjectKeyAndID) Validate

func (s SubjectKeyAndID) Validate() error

Jump to

Keyboard shortcuts

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