messages

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BillingInfo

type BillingInfo struct {
	Name              string `json:"name"`
	Organization      string `json:"organization"`
	Address           string `json:"address"`
	DependentLocality string `json:"dependent_locality"`
	SortingCode       string `json:"sorting_code"`
	City              string `json:"city"`
	State             string `json:"state"`
	Zip               string `json:"zip"`
	Country           string `json:"country"`
}

type CurrentUsageResponse

type CurrentUsageResponse struct {
	Upload   uint64 `json:"upload"`
	Download uint64 `json:"download"`
	Storage  uint64 `json:"storage"`
}

type EphemeralKeyResponse

type EphemeralKeyResponse struct {
	Key string `json:"key"`
}

type ListBillingCitiesResponse

type ListBillingCitiesResponse = []*ListBillingCitiesResponseItem

type ListBillingCitiesResponseItem

type ListBillingCitiesResponseItem struct {
	Code string `json:"code"`
	Name string `json:"name"`
}

type ListBillingCountriesResponse

type ListBillingCountriesResponse = []*ListBillingCountriesResponseItem

type ListBillingCountriesResponseItem

type ListBillingCountriesResponseItem struct {
	Name              string   `json:"name"`
	Code              string   `json:"code"`
	SupportedEntities []string `json:"supported_entities,omitempty"`
}

type ListBillingStatesResponse

type ListBillingStatesResponse = []*ListBillingStatesResponseItem

type ListBillingStatesResponseItem

type ListBillingStatesResponseItem struct {
	Name string `json:"name"`
	Code string `json:"code"`
}

type PaymentInfo

type PaymentInfo struct {
	PaymentID      string    `json:"payment_id,omitempty"`
	PaymentExpires time.Time `json:"payment_expires,omitempty"`
	ClientSecret   string    `json:"client_secret,omitempty"`
	PublishableKey string    `json:"publishable_key,omitempty"`
}

type RequestPaymentMethodChangeResponse

type RequestPaymentMethodChangeResponse struct {
	ClientSecret string `json:"client_secret"`
}

type SubscriptionChangeRequest

type SubscriptionChangeRequest struct {
	Plan string `json:"plan"`
}

type SubscriptionChangeResponse

type SubscriptionChangeResponse struct {
	Plan *SubscriptionPlan `json:"plan"`
}

type SubscriptionConnectRequest

type SubscriptionConnectRequest struct {
	PaymentMethodID string `json:"payment_method_id"`
}

type SubscriptionPlan

type SubscriptionPlan struct {
	Name       string                 `json:"name"`
	Identifier string                 `json:"identifier"`
	Price      float64                `json:"price"`
	Period     SubscriptionPlanPeriod `json:"period"`
	Storage    uint64                 `json:"storage"`
	Upload     uint64                 `json:"upload"`
	Download   uint64                 `json:"download"`
	Status     SubscriptionPlanStatus `json:"status"`
	StartDate  *strfmt.DateTime       `json:"start_date,omitempty"`
	IsFree     bool                   `json:"is_free,omitempty"`
}

type SubscriptionPlanPeriod

type SubscriptionPlanPeriod string
const (
	SubscriptionPlanPeriodMonth SubscriptionPlanPeriod = "MONTH"
	SubscriptionPlanPeriodYear  SubscriptionPlanPeriod = "YEAR"
)

type SubscriptionPlanStatus

type SubscriptionPlanStatus string
const (
	SubscriptionPlanStatusActive  SubscriptionPlanStatus = "ACTIVE"
	SubscriptionPlanStatusPending SubscriptionPlanStatus = "PENDING"
)

type SubscriptionPlansResponse

type SubscriptionPlansResponse struct {
	Plans []*SubscriptionPlan `json:"plans"`
}

type SubscriptionResponse

type SubscriptionResponse struct {
	Plan        *SubscriptionPlan `json:"plan"`
	BillingInfo BillingInfo       `json:"billing_info"`
	PaymentInfo PaymentInfo       `json:"payment_info"`
}

type UpdateBillingInfoResponseError

type UpdateBillingInfoResponseError struct {
	Errors []*UpdateBillingInfoResponseErrorItem `json:"errors"`
}

type UpdateBillingInfoResponseErrorItem

type UpdateBillingInfoResponseErrorItem struct {
	Field   string `json:"field"`
	Message string `json:"message"`
}

type UsageData

type UsageData struct {
	Date  time.Time `json:"date"`
	Usage uint64    `json:"usage"`
}

Jump to

Keyboard shortcuts

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