Documentation ¶
Index ¶
- type AddOnInputArgs
- type Client
- type ClientOption
- func ClientOptWithBasePath(basePath string) ClientOption
- func ClientOptWithDefaultHeader(defaultHeader map[string]string) ClientOption
- func ClientOptWithHTTPClient(httpClient *http.Client) ClientOption
- func ClientOptWithHost(host string) ClientOption
- func ClientOptWithScheme(scheme string) ClientOption
- func ClientOptWithUserAgent(userAgent string) ClientOption
- type ContactInfoInputArgs
- type CreateCreditGrantArgs
- type CreateCustomerArgs
- type CreatePricePlanArgs
- type CreateSubscriptionArgs
- type CreditGrant
- type Customer
- type CustomerMeasurementMappingInputArgs
- type CustomerMeasurmentMapping
- type CustomerMetadata
- type CustomerPaymentGatewayCredentialInputArgs
- type CustomerPortalToken
- type CustomerPortalTokenInputArgs
- type CustomerUsage
- type CustomersApiCustomersCustomerNameRevenueGetOpts
- type CustomersApiCustomersCustomerNameUsageGetOpts
- type DeleteSubscriptionArgs
- type Discount
- type FeatureInputArgs
- type LimitInputArgs
- type LineItems
- type Measurement
- type Meter
- type MeterInputArgs
- type MeteredComponentInputArgs
- type PaymentGatewayCredential
- type PriceInputArgs
- type PricePlan
- type PriceSchemeInputArgs
- type RevenueBreakdown
- type RevenueResponse
- type Subscription
- type TrialInputArgs
- type UpdateCustomerArgs
- type UpdateMeterArgs
- type UpdatePricePlanArgs
- type UpdateSubscriptionArgs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddOnInputArgs ¶
type AddOnInputArgs struct { Feature *FeatureInputArgs `json:"feature,omitempty"` Price int32 `json:"price,omitempty"` }
type Client ¶
type Client struct { Customers *customersAPI Measurements *measurementsAPI Meters *metersAPI PricePlans *pricePlansAPI Credits *creditsAPI }
Client is a client for accessing the Octane API.
func NewClient ¶
func NewClient(token string, options ...ClientOption) *Client
NewClient returns a new client for the Octane API.
type ClientOption ¶
type ClientOption func(*clientSettings)
ClientOption is used to customize a Client.
func ClientOptWithBasePath ¶
func ClientOptWithBasePath(basePath string) ClientOption
func ClientOptWithDefaultHeader ¶
func ClientOptWithDefaultHeader(defaultHeader map[string]string) ClientOption
func ClientOptWithHTTPClient ¶
func ClientOptWithHTTPClient(httpClient *http.Client) ClientOption
func ClientOptWithHost ¶
func ClientOptWithHost(host string) ClientOption
func ClientOptWithScheme ¶
func ClientOptWithScheme(scheme string) ClientOption
func ClientOptWithUserAgent ¶
func ClientOptWithUserAgent(userAgent string) ClientOption
type ContactInfoInputArgs ¶
type ContactInfoInputArgs struct { Country string `json:"country,omitempty"` AddressLine1 string `json:"address_line_1,omitempty"` State string `json:"state,omitempty"` Zipcode string `json:"zipcode,omitempty"` Email string `json:"email,omitempty"` AddressLine2 string `json:"address_line_2,omitempty"` City string `json:"city,omitempty"` Url string `json:"url,omitempty"` Phone string `json:"phone,omitempty"` LegalName string `json:"legal_name,omitempty"` }
type CreateCreditGrantArgs ¶ added in v0.4.7
type CreateCreditGrantArgs struct { // The date at which the grant is effective EffectiveAt *time.Time `json:"effective_at,omitempty"` // Number of credits to grant Amount float64 `json:"amount"` // The date at which this grant expires ExpiresAt *time.Time `json:"expires_at,omitempty"` // Name of the customer receving the grant CustomerName string `json:"customer_name"` // Optional description. This is only viewable internally Description string `json:"description,omitempty"` // Total price paid for the credits in cents. Defaults to $1 (100 cents) per credit if not specified Price int32 `json:"price"` }
type CreateCustomerArgs ¶
type CreateCustomerArgs struct { VendorId int32 `json:"vendor_id,omitempty"` Tags []string `json:"tags,omitempty"` DisplayName string `json:"display_name,omitempty"` ContactInfo *ContactInfoInputArgs `json:"contact_info,omitempty"` Name string `json:"name,omitempty"` MeasurementMappings []CustomerMeasurementMappingInputArgs `json:"measurement_mappings,omitempty"` PricePlanName string `json:"price_plan_name,omitempty"` PricePlanTag string `json:"price_plan_tag,omitempty"` AutogeneratePaymentGatewayCustomer bool `json:"autogenerate_payment_gateway_customer,omitempty"` CreatedAt time.Time `json:"created_at,omitempty"` CustomerMetadata []CustomerMetadata }
type CreatePricePlanArgs ¶
type CreatePricePlanArgs struct { VendorId int32 `json:"vendor_id,omitempty"` Description string `json:"description,omitempty"` Period string `json:"period,omitempty"` BasePrice int32 `json:"base_price,omitempty"` AddOns []AddOnInputArgs `json:"add_ons,omitempty"` Tags []string `json:"tags,omitempty"` Features []FeatureInputArgs `json:"features,omitempty"` Trial *TrialInputArgs `json:"trial,omitempty"` DisplayName string `json:"display_name,omitempty"` Name string `json:"name,omitempty"` Limits []LimitInputArgs `json:"limits,omitempty"` MeteredComponents []MeteredComponentInputArgs `json:"metered_components,omitempty"` }
type CreateSubscriptionArgs ¶
type CreateSubscriptionArgs struct { PricePlanName string `json:"price_plan_name,omitempty"` Discounts []Discount `json:"discounts,omitempty"` CouponOverrideName string `json:"coupon_override_name,omitempty"` EffectiveAt time.Time `json:"effective_at,omitempty"` CouponOverrideId int32 `json:"coupon_override_id,omitempty"` CustomerId int32 `json:"customer_id,omitempty"` PricePlanId int32 `json:"price_plan_id,omitempty"` VendorId int32 `json:"vendor_id,omitempty"` PricePlanTag string `json:"price_plan_tag,omitempty"` }
type CreditGrant ¶ added in v0.4.7
type CreditGrant struct { // Number of credits granted Amount float64 `json:"amount,omitempty"` // The date at which this grant is effective EffectiveAt *time.Time `json:"effective_at,omitempty"` // A unique identifier for this grant Uuid string `json:"uuid,omitempty"` // The date at which this grant expires ExpiresAt *time.Time `json:"expires_at,omitempty"` // Name of the customer who received the grant CustomerName string `json:"customer_name,omitempty"` // The source of the grant. Source string `json:"source,omitempty"` // Optional description. This is only viewable internally Description string `json:"description,omitempty"` // Total price paid for the credits, in cents Price int32 `json:"price,omitempty"` }
type CustomerMeasurmentMapping ¶ added in v0.3.0
type CustomerMeasurmentMapping swagger.CustomerMeasurementMapping
type CustomerMetadata ¶ added in v0.4.9
type CustomerPaymentGatewayCredentialInputArgs ¶
type CustomerPaymentGatewayCredentialInputArgs swagger.CustomerPaymentGatewayCredentialInputArgs
type CustomerPortalToken ¶ added in v0.4.3
type CustomerPortalToken swagger.CustomerPortalToken
type CustomerPortalTokenInputArgs ¶ added in v0.4.3
type CustomerPortalTokenInputArgs swagger.CustomerPortalTokenInputArgs
type CustomerUsage ¶ added in v0.3.0
type CustomerUsage swagger.CustomerUsage
type CustomersApiCustomersCustomerNameRevenueGetOpts ¶ added in v0.3.0
type CustomersApiCustomersCustomerNameRevenueGetOpts swagger.CustomersApiCustomersCustomerNameRevenueGetOpts
type CustomersApiCustomersCustomerNameUsageGetOpts ¶ added in v0.3.0
type CustomersApiCustomersCustomerNameUsageGetOpts swagger.CustomersApiCustomersCustomerNameUsageGetOpts
type DeleteSubscriptionArgs ¶
type DeleteSubscriptionArgs swagger.DeleteSubscriptionArgs
type FeatureInputArgs ¶
type LimitInputArgs ¶
type LimitInputArgs struct { Feature *FeatureInputArgs `json:"feature,omitempty"` Limit float64 `json:"limit,omitempty"` }
type Measurement ¶
type Measurement swagger.Measurement
type MeterInputArgs ¶
type MeterInputArgs swagger.MeterInputArgs
type MeteredComponentInputArgs ¶
type MeteredComponentInputArgs struct { MeterId int32 `json:"meter_id,omitempty"` PriceScheme *PriceSchemeInputArgs `json:"price_scheme,omitempty"` MeterName string `json:"meter_name,omitempty"` }
type PaymentGatewayCredential ¶
type PaymentGatewayCredential swagger.PaymentGatewayCredential
type PriceInputArgs ¶
type PriceSchemeInputArgs ¶
type PriceSchemeInputArgs struct { TimeUnitName string `json:"time_unit_name,omitempty"` UnitName string `json:"unit_name,omitempty"` SchemeType string `json:"scheme_type,omitempty"` Prices []PriceInputArgs `json:"prices,omitempty"` PriceList []interface{} `json:"price_list,omitempty"` }
type RevenueBreakdown ¶ added in v0.3.0
type RevenueResponse ¶ added in v0.3.0
type RevenueResponse swagger.RevenueResponse
type Subscription ¶
type Subscription swagger.Subscription
type TrialInputArgs ¶
type UpdateCustomerArgs ¶
type UpdateCustomerArgs struct { VendorId int32 `json:"vendor_id,omitempty"` Tags []string `json:"tags,omitempty"` DisplayName string `json:"display_name,omitempty"` ContactInfo *ContactInfoInputArgs `json:"contact_info,omitempty"` Name string `json:"name,omitempty"` MeasurementMappings []CustomerMeasurementMappingInputArgs `json:"measurement_mappings,omitempty"` }
type UpdateMeterArgs ¶
type UpdateMeterArgs swagger.UpdateMeterArgs
type UpdatePricePlanArgs ¶
type UpdatePricePlanArgs struct { VendorId int32 `json:"vendor_id,omitempty"` Description string `json:"description,omitempty"` Period string `json:"period,omitempty"` BasePrice int32 `json:"base_price,omitempty"` AddOns []AddOnInputArgs `json:"add_ons,omitempty"` Tags []string `json:"tags,omitempty"` Features []FeatureInputArgs `json:"features,omitempty"` Trial *TrialInputArgs `json:"trial,omitempty"` DisplayName string `json:"display_name,omitempty"` Name string `json:"name,omitempty"` Limits []LimitInputArgs `json:"limits,omitempty"` MeteredComponents []MeteredComponentInputArgs `json:"metered_components,omitempty"` }
type UpdateSubscriptionArgs ¶
type UpdateSubscriptionArgs swagger.UpdateSubscriptionArgs
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
examples
|
|
antler-db-cloud-shop
Module
|
|
customer-hours-tracker
Module
|
|
internal
|
|
swagger
* Octane API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
* Octane API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) |
Click to show internal directories.
Click to hide internal directories.