billing

package
v2.0.0-beta.11 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BillingService

type BillingService struct {
	Options  []option.RequestOption
	Profiles *ProfileService
}

BillingService contains methods and other services that help with interacting with the cloudflare API. Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewBillingService method instead.

func NewBillingService

func NewBillingService(opts ...option.RequestOption) (r *BillingService)

NewBillingService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.

type Error

type Error = apierror.Error

type ProfileGetResponse

type ProfileGetResponse interface {
	ImplementsBillingProfileGetResponse()
}

Union satisfied by billing.ProfileGetResponseUnknown or shared.UnionString.

type ProfileGetResponseEnvelope

type ProfileGetResponseEnvelope struct {
	Errors   []ProfileGetResponseEnvelopeErrors   `json:"errors,required"`
	Messages []ProfileGetResponseEnvelopeMessages `json:"messages,required"`
	Result   ProfileGetResponse                   `json:"result,required"`
	// Whether the API call was successful
	Success ProfileGetResponseEnvelopeSuccess `json:"success,required"`
	JSON    profileGetResponseEnvelopeJSON    `json:"-"`
}

func (*ProfileGetResponseEnvelope) UnmarshalJSON

func (r *ProfileGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)

type ProfileGetResponseEnvelopeErrors

type ProfileGetResponseEnvelopeErrors struct {
	Code    int64                                `json:"code,required"`
	Message string                               `json:"message,required"`
	JSON    profileGetResponseEnvelopeErrorsJSON `json:"-"`
}

func (*ProfileGetResponseEnvelopeErrors) UnmarshalJSON

func (r *ProfileGetResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)

type ProfileGetResponseEnvelopeMessages

type ProfileGetResponseEnvelopeMessages struct {
	Code    int64                                  `json:"code,required"`
	Message string                                 `json:"message,required"`
	JSON    profileGetResponseEnvelopeMessagesJSON `json:"-"`
}

func (*ProfileGetResponseEnvelopeMessages) UnmarshalJSON

func (r *ProfileGetResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error)

type ProfileGetResponseEnvelopeSuccess

type ProfileGetResponseEnvelopeSuccess bool

Whether the API call was successful

const (
	ProfileGetResponseEnvelopeSuccessTrue ProfileGetResponseEnvelopeSuccess = true
)

func (ProfileGetResponseEnvelopeSuccess) IsKnown

type ProfileService

type ProfileService struct {
	Options []option.RequestOption
}

ProfileService contains methods and other services that help with interacting with the cloudflare API. Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewProfileService method instead.

func NewProfileService

func NewProfileService(opts ...option.RequestOption) (r *ProfileService)

NewProfileService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.

func (*ProfileService) Get

func (r *ProfileService) Get(ctx context.Context, accountIdentifier interface{}, opts ...option.RequestOption) (res *ProfileGetResponse, err error)

Gets the current billing profile for the account.

Jump to

Keyboard shortcuts

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