pricing

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	// contains filtered or unexported fields
}

func NewAPI

func NewAPI(client HttpClient) *API

func (*API) List

func (a *API) List(ctx context.Context, subscription int) ([]*Pricing, error)

List will return the list of available pricing detail blocks for the provided subscription.

type HttpClient

type HttpClient interface {
	Get(ctx context.Context, name, path string, responseBody interface{}) error
}

type ListPricingResponse

type ListPricingResponse struct {
	Pricing []*Pricing `json:"pricing,omitempty"`
}

func (ListPricingResponse) String

func (o ListPricingResponse) String() string

type NotFound

type NotFound struct {
	// contains filtered or unexported fields
}

func (*NotFound) Error

func (f *NotFound) Error() string

type Pricing

type Pricing struct {
	DatabaseName        *string  `json:"databaseName,omitempty"`
	Type                *string  `json:"type,omitempty"`
	TypeDetails         *string  `json:"typeDetails,omitempty"`
	Quantity            *int     `json:"quantity,omitempty"`
	QuantityMeasurement *string  `json:"quantityMeasurement,omitempty"`
	PricePerUnit        *float64 `json:"pricePerUnit,omitempty"`
	PriceCurrency       *string  `json:"priceCurrency,omitempty"`
	PricePeriod         *string  `json:"pricePeriod,omitempty"`
	Region              *string  `json:"region,omitempty"`
}

func (Pricing) String

func (o Pricing) String() string

Jump to

Keyboard shortcuts

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