bill

package
v2.16.0 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2021 License: Apache-2.0 Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CsvRequest

type CsvRequest struct {
	ID types.ID
}

func (*CsvRequest) Validate

func (req *CsvRequest) Validate() error

type ListRequest

type ListRequest struct {
	Year  int `validate:"required_with=Month"`
	Month int `validate:"min=0,max=12"`
}

func (*ListRequest) Validate

func (req *ListRequest) Validate() error

type Service

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

Service provides a high-level API of for Bill

func New

func New(caller sacloud.APICaller) *Service

New returns new service instance of Bill

func (*Service) Csv

func (s *Service) Csv(req *CsvRequest) (*sacloud.BillDetailCSV, error)

func (*Service) CsvWithContext

func (s *Service) CsvWithContext(ctx context.Context, req *CsvRequest) (*sacloud.BillDetailCSV, error)

func (*Service) List

func (s *Service) List(req *ListRequest) ([]*sacloud.Bill, error)

func (*Service) ListWithContext

func (s *Service) ListWithContext(ctx context.Context, req *ListRequest) ([]*sacloud.Bill, error)

Jump to

Keyboard shortcuts

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