billing

package
v0.0.0-...-c33e12d Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetConsumptionsArgs

type GetConsumptionsArgs struct {
	// `projectId`) The ID of the project the consumption list is associated with.
	ProjectId *string `pulumi:"projectId"`
}

A collection of arguments for invoking getConsumptions.

type GetConsumptionsConsumption

type GetConsumptionsConsumption struct {
	// The consumed quantity.
	BilledQuantity string `pulumi:"billedQuantity"`
	// The name of the consumption category.
	CategoryName string `pulumi:"categoryName"`
	// The product name.
	ProductName string `pulumi:"productName"`
	// `projectId`) The ID of the project the consumption list is associated with.
	ProjectId string `pulumi:"projectId"`
	// The unique identifier of the product.
	Sku string `pulumi:"sku"`
	// The unit of consumed quantity.
	Unit string `pulumi:"unit"`
	// The monetary value of the consumption.
	Value string `pulumi:"value"`
}

type GetConsumptionsConsumptionArgs

type GetConsumptionsConsumptionArgs struct {
	// The consumed quantity.
	BilledQuantity pulumi.StringInput `pulumi:"billedQuantity"`
	// The name of the consumption category.
	CategoryName pulumi.StringInput `pulumi:"categoryName"`
	// The product name.
	ProductName pulumi.StringInput `pulumi:"productName"`
	// `projectId`) The ID of the project the consumption list is associated with.
	ProjectId pulumi.StringInput `pulumi:"projectId"`
	// The unique identifier of the product.
	Sku pulumi.StringInput `pulumi:"sku"`
	// The unit of consumed quantity.
	Unit pulumi.StringInput `pulumi:"unit"`
	// The monetary value of the consumption.
	Value pulumi.StringInput `pulumi:"value"`
}

func (GetConsumptionsConsumptionArgs) ElementType

func (GetConsumptionsConsumptionArgs) ToGetConsumptionsConsumptionOutput

func (i GetConsumptionsConsumptionArgs) ToGetConsumptionsConsumptionOutput() GetConsumptionsConsumptionOutput

func (GetConsumptionsConsumptionArgs) ToGetConsumptionsConsumptionOutputWithContext

func (i GetConsumptionsConsumptionArgs) ToGetConsumptionsConsumptionOutputWithContext(ctx context.Context) GetConsumptionsConsumptionOutput

type GetConsumptionsConsumptionArray

type GetConsumptionsConsumptionArray []GetConsumptionsConsumptionInput

func (GetConsumptionsConsumptionArray) ElementType

func (GetConsumptionsConsumptionArray) ToGetConsumptionsConsumptionArrayOutput

func (i GetConsumptionsConsumptionArray) ToGetConsumptionsConsumptionArrayOutput() GetConsumptionsConsumptionArrayOutput

func (GetConsumptionsConsumptionArray) ToGetConsumptionsConsumptionArrayOutputWithContext

func (i GetConsumptionsConsumptionArray) ToGetConsumptionsConsumptionArrayOutputWithContext(ctx context.Context) GetConsumptionsConsumptionArrayOutput

type GetConsumptionsConsumptionArrayInput

type GetConsumptionsConsumptionArrayInput interface {
	pulumi.Input

	ToGetConsumptionsConsumptionArrayOutput() GetConsumptionsConsumptionArrayOutput
	ToGetConsumptionsConsumptionArrayOutputWithContext(context.Context) GetConsumptionsConsumptionArrayOutput
}

GetConsumptionsConsumptionArrayInput is an input type that accepts GetConsumptionsConsumptionArray and GetConsumptionsConsumptionArrayOutput values. You can construct a concrete instance of `GetConsumptionsConsumptionArrayInput` via:

GetConsumptionsConsumptionArray{ GetConsumptionsConsumptionArgs{...} }

type GetConsumptionsConsumptionArrayOutput

type GetConsumptionsConsumptionArrayOutput struct{ *pulumi.OutputState }

func (GetConsumptionsConsumptionArrayOutput) ElementType

func (GetConsumptionsConsumptionArrayOutput) Index

func (GetConsumptionsConsumptionArrayOutput) ToGetConsumptionsConsumptionArrayOutput

func (o GetConsumptionsConsumptionArrayOutput) ToGetConsumptionsConsumptionArrayOutput() GetConsumptionsConsumptionArrayOutput

func (GetConsumptionsConsumptionArrayOutput) ToGetConsumptionsConsumptionArrayOutputWithContext

func (o GetConsumptionsConsumptionArrayOutput) ToGetConsumptionsConsumptionArrayOutputWithContext(ctx context.Context) GetConsumptionsConsumptionArrayOutput

type GetConsumptionsConsumptionInput

type GetConsumptionsConsumptionInput interface {
	pulumi.Input

	ToGetConsumptionsConsumptionOutput() GetConsumptionsConsumptionOutput
	ToGetConsumptionsConsumptionOutputWithContext(context.Context) GetConsumptionsConsumptionOutput
}

GetConsumptionsConsumptionInput is an input type that accepts GetConsumptionsConsumptionArgs and GetConsumptionsConsumptionOutput values. You can construct a concrete instance of `GetConsumptionsConsumptionInput` via:

GetConsumptionsConsumptionArgs{...}

type GetConsumptionsConsumptionOutput

type GetConsumptionsConsumptionOutput struct{ *pulumi.OutputState }

func (GetConsumptionsConsumptionOutput) BilledQuantity

The consumed quantity.

func (GetConsumptionsConsumptionOutput) CategoryName

The name of the consumption category.

func (GetConsumptionsConsumptionOutput) ElementType

func (GetConsumptionsConsumptionOutput) ProductName

The product name.

func (GetConsumptionsConsumptionOutput) ProjectId

`projectId`) The ID of the project the consumption list is associated with.

func (GetConsumptionsConsumptionOutput) Sku

The unique identifier of the product.

func (GetConsumptionsConsumptionOutput) ToGetConsumptionsConsumptionOutput

func (o GetConsumptionsConsumptionOutput) ToGetConsumptionsConsumptionOutput() GetConsumptionsConsumptionOutput

func (GetConsumptionsConsumptionOutput) ToGetConsumptionsConsumptionOutputWithContext

func (o GetConsumptionsConsumptionOutput) ToGetConsumptionsConsumptionOutputWithContext(ctx context.Context) GetConsumptionsConsumptionOutput

func (GetConsumptionsConsumptionOutput) Unit

The unit of consumed quantity.

func (GetConsumptionsConsumptionOutput) Value

The monetary value of the consumption.

type GetConsumptionsOutputArgs

type GetConsumptionsOutputArgs struct {
	// `projectId`) The ID of the project the consumption list is associated with.
	ProjectId pulumi.StringPtrInput `pulumi:"projectId"`
}

A collection of arguments for invoking getConsumptions.

func (GetConsumptionsOutputArgs) ElementType

func (GetConsumptionsOutputArgs) ElementType() reflect.Type

type GetConsumptionsResult

type GetConsumptionsResult struct {
	// List of found consumptions
	Consumptions []GetConsumptionsConsumption `pulumi:"consumptions"`
	// The provider-assigned unique ID for this managed resource.
	Id             string `pulumi:"id"`
	OrganizationId string `pulumi:"organizationId"`
	// The project ID of the consumption.
	ProjectId string `pulumi:"projectId"`
	// The last consumption update date.
	UpdatedAt string `pulumi:"updatedAt"`
}

A collection of values returned by getConsumptions.

func GetConsumptions

func GetConsumptions(ctx *pulumi.Context, args *GetConsumptionsArgs, opts ...pulumi.InvokeOption) (*GetConsumptionsResult, error)

Gets information about your Consumptions.

type GetConsumptionsResultOutput

type GetConsumptionsResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getConsumptions.

func (GetConsumptionsResultOutput) Consumptions

List of found consumptions

func (GetConsumptionsResultOutput) ElementType

func (GetConsumptionsResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetConsumptionsResultOutput) OrganizationId

func (o GetConsumptionsResultOutput) OrganizationId() pulumi.StringOutput

func (GetConsumptionsResultOutput) ProjectId

The project ID of the consumption.

func (GetConsumptionsResultOutput) ToGetConsumptionsResultOutput

func (o GetConsumptionsResultOutput) ToGetConsumptionsResultOutput() GetConsumptionsResultOutput

func (GetConsumptionsResultOutput) ToGetConsumptionsResultOutputWithContext

func (o GetConsumptionsResultOutput) ToGetConsumptionsResultOutputWithContext(ctx context.Context) GetConsumptionsResultOutput

func (GetConsumptionsResultOutput) UpdatedAt

The last consumption update date.

type GetInvoicesArgs

type GetInvoicesArgs struct {
	// Invoices with the given type are listed. Valid values are `periodic` and `purchase`.
	InvoiceType *string `pulumi:"invoiceType"`
	// Invoices with a start date that are greater or equal to `startedAfter` are listed (RFC 3339 format).
	StartedAfter *string `pulumi:"startedAfter"`
	// Invoices with a start date that precedes `startedBefore` are listed (RFC 3339 format).
	StartedBefore *string `pulumi:"startedBefore"`
}

A collection of arguments for invoking getInvoices.

type GetInvoicesInvoice

type GetInvoicesInvoice struct {
	// The billing period of the invoice in the YYYY-MM format.
	BillingPeriod string `pulumi:"billingPeriod"`
	// The payment time limit, set according to the Organization's payment conditions (RFC 3339 format).
	DueDate string `pulumi:"dueDate"`
	// The associated invoice ID.
	Id string `pulumi:"id"`
	// Invoices with the given type are listed. Valid values are `periodic` and `purchase`.
	InvoiceType string `pulumi:"invoiceType"`
	// The date when the invoice was sent to the customer (RFC 3339 format).
	IssuedDate string `pulumi:"issuedDate"`
	// The invoice number.
	Number int `pulumi:"number"`
	// The organization name.
	OrganizationName string `pulumi:"organizationName"`
	// The name of the seller (Scaleway).
	SellerName string `pulumi:"sellerName"`
	// The start date of the billing period (RFC 3339 format).
	StartDate string `pulumi:"startDate"`
	// The state of the invoice.
	State string `pulumi:"state"`
	// The end date of the billing period (RFC 3339 format).
	StopDate string `pulumi:"stopDate"`
	// The total discount amount of the invoice.
	TotalDiscount string `pulumi:"totalDiscount"`
	// The total tax amount of the invoice.
	TotalTax string `pulumi:"totalTax"`
	// The total amount, taxed.
	TotalTaxed string `pulumi:"totalTaxed"`
	// The total amount of the invoice before applying the discount.
	TotalUndiscount string `pulumi:"totalUndiscount"`
	// The total amount, untaxed.
	TotalUntaxed string `pulumi:"totalUntaxed"`
}

type GetInvoicesInvoiceArgs

type GetInvoicesInvoiceArgs struct {
	// The billing period of the invoice in the YYYY-MM format.
	BillingPeriod pulumi.StringInput `pulumi:"billingPeriod"`
	// The payment time limit, set according to the Organization's payment conditions (RFC 3339 format).
	DueDate pulumi.StringInput `pulumi:"dueDate"`
	// The associated invoice ID.
	Id pulumi.StringInput `pulumi:"id"`
	// Invoices with the given type are listed. Valid values are `periodic` and `purchase`.
	InvoiceType pulumi.StringInput `pulumi:"invoiceType"`
	// The date when the invoice was sent to the customer (RFC 3339 format).
	IssuedDate pulumi.StringInput `pulumi:"issuedDate"`
	// The invoice number.
	Number pulumi.IntInput `pulumi:"number"`
	// The organization name.
	OrganizationName pulumi.StringInput `pulumi:"organizationName"`
	// The name of the seller (Scaleway).
	SellerName pulumi.StringInput `pulumi:"sellerName"`
	// The start date of the billing period (RFC 3339 format).
	StartDate pulumi.StringInput `pulumi:"startDate"`
	// The state of the invoice.
	State pulumi.StringInput `pulumi:"state"`
	// The end date of the billing period (RFC 3339 format).
	StopDate pulumi.StringInput `pulumi:"stopDate"`
	// The total discount amount of the invoice.
	TotalDiscount pulumi.StringInput `pulumi:"totalDiscount"`
	// The total tax amount of the invoice.
	TotalTax pulumi.StringInput `pulumi:"totalTax"`
	// The total amount, taxed.
	TotalTaxed pulumi.StringInput `pulumi:"totalTaxed"`
	// The total amount of the invoice before applying the discount.
	TotalUndiscount pulumi.StringInput `pulumi:"totalUndiscount"`
	// The total amount, untaxed.
	TotalUntaxed pulumi.StringInput `pulumi:"totalUntaxed"`
}

func (GetInvoicesInvoiceArgs) ElementType

func (GetInvoicesInvoiceArgs) ElementType() reflect.Type

func (GetInvoicesInvoiceArgs) ToGetInvoicesInvoiceOutput

func (i GetInvoicesInvoiceArgs) ToGetInvoicesInvoiceOutput() GetInvoicesInvoiceOutput

func (GetInvoicesInvoiceArgs) ToGetInvoicesInvoiceOutputWithContext

func (i GetInvoicesInvoiceArgs) ToGetInvoicesInvoiceOutputWithContext(ctx context.Context) GetInvoicesInvoiceOutput

type GetInvoicesInvoiceArray

type GetInvoicesInvoiceArray []GetInvoicesInvoiceInput

func (GetInvoicesInvoiceArray) ElementType

func (GetInvoicesInvoiceArray) ElementType() reflect.Type

func (GetInvoicesInvoiceArray) ToGetInvoicesInvoiceArrayOutput

func (i GetInvoicesInvoiceArray) ToGetInvoicesInvoiceArrayOutput() GetInvoicesInvoiceArrayOutput

func (GetInvoicesInvoiceArray) ToGetInvoicesInvoiceArrayOutputWithContext

func (i GetInvoicesInvoiceArray) ToGetInvoicesInvoiceArrayOutputWithContext(ctx context.Context) GetInvoicesInvoiceArrayOutput

type GetInvoicesInvoiceArrayInput

type GetInvoicesInvoiceArrayInput interface {
	pulumi.Input

	ToGetInvoicesInvoiceArrayOutput() GetInvoicesInvoiceArrayOutput
	ToGetInvoicesInvoiceArrayOutputWithContext(context.Context) GetInvoicesInvoiceArrayOutput
}

GetInvoicesInvoiceArrayInput is an input type that accepts GetInvoicesInvoiceArray and GetInvoicesInvoiceArrayOutput values. You can construct a concrete instance of `GetInvoicesInvoiceArrayInput` via:

GetInvoicesInvoiceArray{ GetInvoicesInvoiceArgs{...} }

type GetInvoicesInvoiceArrayOutput

type GetInvoicesInvoiceArrayOutput struct{ *pulumi.OutputState }

func (GetInvoicesInvoiceArrayOutput) ElementType

func (GetInvoicesInvoiceArrayOutput) Index

func (GetInvoicesInvoiceArrayOutput) ToGetInvoicesInvoiceArrayOutput

func (o GetInvoicesInvoiceArrayOutput) ToGetInvoicesInvoiceArrayOutput() GetInvoicesInvoiceArrayOutput

func (GetInvoicesInvoiceArrayOutput) ToGetInvoicesInvoiceArrayOutputWithContext

func (o GetInvoicesInvoiceArrayOutput) ToGetInvoicesInvoiceArrayOutputWithContext(ctx context.Context) GetInvoicesInvoiceArrayOutput

type GetInvoicesInvoiceInput

type GetInvoicesInvoiceInput interface {
	pulumi.Input

	ToGetInvoicesInvoiceOutput() GetInvoicesInvoiceOutput
	ToGetInvoicesInvoiceOutputWithContext(context.Context) GetInvoicesInvoiceOutput
}

GetInvoicesInvoiceInput is an input type that accepts GetInvoicesInvoiceArgs and GetInvoicesInvoiceOutput values. You can construct a concrete instance of `GetInvoicesInvoiceInput` via:

GetInvoicesInvoiceArgs{...}

type GetInvoicesInvoiceOutput

type GetInvoicesInvoiceOutput struct{ *pulumi.OutputState }

func (GetInvoicesInvoiceOutput) BillingPeriod

func (o GetInvoicesInvoiceOutput) BillingPeriod() pulumi.StringOutput

The billing period of the invoice in the YYYY-MM format.

func (GetInvoicesInvoiceOutput) DueDate

The payment time limit, set according to the Organization's payment conditions (RFC 3339 format).

func (GetInvoicesInvoiceOutput) ElementType

func (GetInvoicesInvoiceOutput) ElementType() reflect.Type

func (GetInvoicesInvoiceOutput) Id

The associated invoice ID.

func (GetInvoicesInvoiceOutput) InvoiceType

Invoices with the given type are listed. Valid values are `periodic` and `purchase`.

func (GetInvoicesInvoiceOutput) IssuedDate

The date when the invoice was sent to the customer (RFC 3339 format).

func (GetInvoicesInvoiceOutput) Number

The invoice number.

func (GetInvoicesInvoiceOutput) OrganizationName

func (o GetInvoicesInvoiceOutput) OrganizationName() pulumi.StringOutput

The organization name.

func (GetInvoicesInvoiceOutput) SellerName

The name of the seller (Scaleway).

func (GetInvoicesInvoiceOutput) StartDate

The start date of the billing period (RFC 3339 format).

func (GetInvoicesInvoiceOutput) State

The state of the invoice.

func (GetInvoicesInvoiceOutput) StopDate

The end date of the billing period (RFC 3339 format).

func (GetInvoicesInvoiceOutput) ToGetInvoicesInvoiceOutput

func (o GetInvoicesInvoiceOutput) ToGetInvoicesInvoiceOutput() GetInvoicesInvoiceOutput

func (GetInvoicesInvoiceOutput) ToGetInvoicesInvoiceOutputWithContext

func (o GetInvoicesInvoiceOutput) ToGetInvoicesInvoiceOutputWithContext(ctx context.Context) GetInvoicesInvoiceOutput

func (GetInvoicesInvoiceOutput) TotalDiscount

func (o GetInvoicesInvoiceOutput) TotalDiscount() pulumi.StringOutput

The total discount amount of the invoice.

func (GetInvoicesInvoiceOutput) TotalTax

The total tax amount of the invoice.

func (GetInvoicesInvoiceOutput) TotalTaxed

The total amount, taxed.

func (GetInvoicesInvoiceOutput) TotalUndiscount

func (o GetInvoicesInvoiceOutput) TotalUndiscount() pulumi.StringOutput

The total amount of the invoice before applying the discount.

func (GetInvoicesInvoiceOutput) TotalUntaxed

func (o GetInvoicesInvoiceOutput) TotalUntaxed() pulumi.StringOutput

The total amount, untaxed.

type GetInvoicesOutputArgs

type GetInvoicesOutputArgs struct {
	// Invoices with the given type are listed. Valid values are `periodic` and `purchase`.
	InvoiceType pulumi.StringPtrInput `pulumi:"invoiceType"`
	// Invoices with a start date that are greater or equal to `startedAfter` are listed (RFC 3339 format).
	StartedAfter pulumi.StringPtrInput `pulumi:"startedAfter"`
	// Invoices with a start date that precedes `startedBefore` are listed (RFC 3339 format).
	StartedBefore pulumi.StringPtrInput `pulumi:"startedBefore"`
}

A collection of arguments for invoking getInvoices.

func (GetInvoicesOutputArgs) ElementType

func (GetInvoicesOutputArgs) ElementType() reflect.Type

type GetInvoicesResult

type GetInvoicesResult struct {
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// The type of invoice.
	InvoiceType *string `pulumi:"invoiceType"`
	// List of found invoices
	Invoices       []GetInvoicesInvoice `pulumi:"invoices"`
	OrganizationId string               `pulumi:"organizationId"`
	StartedAfter   *string              `pulumi:"startedAfter"`
	StartedBefore  *string              `pulumi:"startedBefore"`
}

A collection of values returned by getInvoices.

func GetInvoices

func GetInvoices(ctx *pulumi.Context, args *GetInvoicesArgs, opts ...pulumi.InvokeOption) (*GetInvoicesResult, error)

Gets information about your Invoices.

## Example Usage

<!--Start PulumiCodeChooser --> ```go package main

import (

"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/raeumlich/pulumi-scaleway/sdk/go/scaleway/billing"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := billing.GetInvoices(ctx, &billing.GetInvoicesArgs{
			InvoiceType: pulumi.StringRef("periodic"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

``` <!--End PulumiCodeChooser -->

type GetInvoicesResultOutput

type GetInvoicesResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getInvoices.

func (GetInvoicesResultOutput) ElementType

func (GetInvoicesResultOutput) ElementType() reflect.Type

func (GetInvoicesResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetInvoicesResultOutput) InvoiceType

The type of invoice.

func (GetInvoicesResultOutput) Invoices

List of found invoices

func (GetInvoicesResultOutput) OrganizationId

func (o GetInvoicesResultOutput) OrganizationId() pulumi.StringOutput

func (GetInvoicesResultOutput) StartedAfter

func (GetInvoicesResultOutput) StartedBefore

func (GetInvoicesResultOutput) ToGetInvoicesResultOutput

func (o GetInvoicesResultOutput) ToGetInvoicesResultOutput() GetInvoicesResultOutput

func (GetInvoicesResultOutput) ToGetInvoicesResultOutputWithContext

func (o GetInvoicesResultOutput) ToGetInvoicesResultOutputWithContext(ctx context.Context) GetInvoicesResultOutput

Jump to

Keyboard shortcuts

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