Documentation
¶
Index ¶
- type BillingInfo
- type CurrentUsageResponse
- type EphemeralKeyResponse
- type ListBillingCitiesResponse
- type ListBillingCitiesResponseItem
- type ListBillingCountriesResponse
- type ListBillingCountriesResponseItem
- type ListBillingStatesResponse
- type ListBillingStatesResponseItem
- type PaymentInfo
- type RequestPaymentMethodChangeResponse
- type SubscriptionChangeRequest
- type SubscriptionChangeResponse
- type SubscriptionConnectRequest
- type SubscriptionPlan
- type SubscriptionPlanPeriod
- type SubscriptionPlanStatus
- type SubscriptionPlansResponse
- type SubscriptionResponse
- type UpdateBillingInfoResponseError
- type UpdateBillingInfoResponseErrorItem
- type UsageData
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 EphemeralKeyResponse ¶
type EphemeralKeyResponse struct {
Key string `json:"key"`
}
type ListBillingCitiesResponse ¶
type ListBillingCitiesResponse = []*ListBillingCitiesResponseItem
type ListBillingCountriesResponse ¶
type ListBillingCountriesResponse = []*ListBillingCountriesResponseItem
type ListBillingStatesResponse ¶
type ListBillingStatesResponse = []*ListBillingStatesResponseItem
type PaymentInfo ¶
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"`
}
Click to show internal directories.
Click to hide internal directories.