invoices

package
v0.20241209.1115630 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: MPL-2.0 Imports: 14 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/resource-manager/billing/2020-05-01/invoices Documentation

The invoices SDK allows for interaction with Azure Resource Manager billing (API Version 2020-05-01).

This readme covers example usages, but further information on using this SDK can be found in the project root.

Import Path

import "github.com/hashicorp/go-azure-sdk/resource-manager/billing/2020-05-01/invoices"

Client Initialization

client := invoices.NewInvoicesClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: InvoicesClient.DownloadBillingSubscriptionInvoice

ctx := context.TODO()
id := invoices.NewBillingSubscriptionInvoiceID("subscriptionId", "invoiceName")

if err := client.DownloadBillingSubscriptionInvoiceThenPoll(ctx, id, invoices.DefaultDownloadBillingSubscriptionInvoiceOperationOptions()); err != nil {
	// handle the error
}

Example Usage: InvoicesClient.DownloadInvoice

ctx := context.TODO()
id := invoices.NewBillingAccountInvoiceID("billingAccountName", "invoiceName")

if err := client.DownloadInvoiceThenPoll(ctx, id, invoices.DefaultDownloadInvoiceOperationOptions()); err != nil {
	// handle the error
}

Example Usage: InvoicesClient.DownloadMultipleBillingProfileInvoices

ctx := context.TODO()
id := invoices.NewBillingAccountID("billingAccountName")
var payload []string

if err := client.DownloadMultipleBillingProfileInvoicesThenPoll(ctx, id, payload); err != nil {
	// handle the error
}

Example Usage: InvoicesClient.DownloadMultipleBillingSubscriptionInvoices

ctx := context.TODO()
id := invoices.NewBillingSubscriptionID("subscriptionId")
var payload []string

if err := client.DownloadMultipleBillingSubscriptionInvoicesThenPoll(ctx, id, payload); err != nil {
	// handle the error
}

Example Usage: InvoicesClient.Get

ctx := context.TODO()
id := invoices.NewBillingAccountInvoiceID("billingAccountName", "invoiceName")

read, err := client.Get(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: InvoicesClient.GetById

ctx := context.TODO()
id := invoices.NewInvoiceID("invoiceName")

read, err := client.GetById(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: InvoicesClient.GetBySubscriptionAndInvoiceId

ctx := context.TODO()
id := invoices.NewBillingSubscriptionInvoiceID("subscriptionId", "invoiceName")

read, err := client.GetBySubscriptionAndInvoiceId(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: InvoicesClient.ListByBillingAccount

ctx := context.TODO()
id := invoices.NewBillingAccountID("billingAccountName")

// alternatively `client.ListByBillingAccount(ctx, id, invoices.DefaultListByBillingAccountOperationOptions())` can be used to do batched pagination
items, err := client.ListByBillingAccountComplete(ctx, id, invoices.DefaultListByBillingAccountOperationOptions())
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: InvoicesClient.ListByBillingProfile

ctx := context.TODO()
id := invoices.NewBillingProfileID("billingAccountName", "billingProfileName")

// alternatively `client.ListByBillingProfile(ctx, id, invoices.DefaultListByBillingProfileOperationOptions())` can be used to do batched pagination
items, err := client.ListByBillingProfileComplete(ctx, id, invoices.DefaultListByBillingProfileOperationOptions())
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: InvoicesClient.ListByBillingSubscription

ctx := context.TODO()
id := invoices.NewBillingSubscriptionID("subscriptionId")

// alternatively `client.ListByBillingSubscription(ctx, id, invoices.DefaultListByBillingSubscriptionOperationOptions())` can be used to do batched pagination
items, err := client.ListByBillingSubscriptionComplete(ctx, id, invoices.DefaultListByBillingSubscriptionOperationOptions())
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForDocumentSource

func PossibleValuesForDocumentSource() []string

func PossibleValuesForDocumentType

func PossibleValuesForDocumentType() []string

func PossibleValuesForInvoiceDocumentType

func PossibleValuesForInvoiceDocumentType() []string

func PossibleValuesForInvoiceStatus

func PossibleValuesForInvoiceStatus() []string

func PossibleValuesForInvoiceType

func PossibleValuesForInvoiceType() []string

func PossibleValuesForPaymentMethodFamily

func PossibleValuesForPaymentMethodFamily() []string

func ValidateBillingAccountID

func ValidateBillingAccountID(input interface{}, key string) (warnings []string, errors []error)

ValidateBillingAccountID checks that 'input' can be parsed as a Billing Account ID

func ValidateBillingAccountInvoiceID

func ValidateBillingAccountInvoiceID(input interface{}, key string) (warnings []string, errors []error)

ValidateBillingAccountInvoiceID checks that 'input' can be parsed as a Billing Account Invoice ID

func ValidateBillingProfileID

func ValidateBillingProfileID(input interface{}, key string) (warnings []string, errors []error)

ValidateBillingProfileID checks that 'input' can be parsed as a Billing Profile ID

func ValidateBillingSubscriptionID

func ValidateBillingSubscriptionID(input interface{}, key string) (warnings []string, errors []error)

ValidateBillingSubscriptionID checks that 'input' can be parsed as a Billing Subscription ID

func ValidateBillingSubscriptionInvoiceID

func ValidateBillingSubscriptionInvoiceID(input interface{}, key string) (warnings []string, errors []error)

ValidateBillingSubscriptionInvoiceID checks that 'input' can be parsed as a Billing Subscription Invoice ID

func ValidateInvoiceID

func ValidateInvoiceID(input interface{}, key string) (warnings []string, errors []error)

ValidateInvoiceID checks that 'input' can be parsed as a Invoice ID

Types

type Amount

type Amount struct {
	Currency *string  `json:"currency,omitempty"`
	Value    *float64 `json:"value,omitempty"`
}

type BillingAccountId

type BillingAccountId struct {
	BillingAccountName string
}

BillingAccountId is a struct representing the Resource ID for a Billing Account

func NewBillingAccountID

func NewBillingAccountID(billingAccountName string) BillingAccountId

NewBillingAccountID returns a new BillingAccountId struct

func ParseBillingAccountID

func ParseBillingAccountID(input string) (*BillingAccountId, error)

ParseBillingAccountID parses 'input' into a BillingAccountId

func ParseBillingAccountIDInsensitively

func ParseBillingAccountIDInsensitively(input string) (*BillingAccountId, error)

ParseBillingAccountIDInsensitively parses 'input' case-insensitively into a BillingAccountId note: this method should only be used for API response data and not user input

func (*BillingAccountId) FromParseResult

func (id *BillingAccountId) FromParseResult(input resourceids.ParseResult) error

func (BillingAccountId) ID

func (id BillingAccountId) ID() string

ID returns the formatted Billing Account ID

func (BillingAccountId) Segments

func (id BillingAccountId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Billing Account ID

func (BillingAccountId) String

func (id BillingAccountId) String() string

String returns a human-readable description of this Billing Account ID

type BillingAccountInvoiceId

type BillingAccountInvoiceId struct {
	BillingAccountName string
	InvoiceName        string
}

BillingAccountInvoiceId is a struct representing the Resource ID for a Billing Account Invoice

func NewBillingAccountInvoiceID

func NewBillingAccountInvoiceID(billingAccountName string, invoiceName string) BillingAccountInvoiceId

NewBillingAccountInvoiceID returns a new BillingAccountInvoiceId struct

func ParseBillingAccountInvoiceID

func ParseBillingAccountInvoiceID(input string) (*BillingAccountInvoiceId, error)

ParseBillingAccountInvoiceID parses 'input' into a BillingAccountInvoiceId

func ParseBillingAccountInvoiceIDInsensitively

func ParseBillingAccountInvoiceIDInsensitively(input string) (*BillingAccountInvoiceId, error)

ParseBillingAccountInvoiceIDInsensitively parses 'input' case-insensitively into a BillingAccountInvoiceId note: this method should only be used for API response data and not user input

func (*BillingAccountInvoiceId) FromParseResult

func (id *BillingAccountInvoiceId) FromParseResult(input resourceids.ParseResult) error

func (BillingAccountInvoiceId) ID

ID returns the formatted Billing Account Invoice ID

func (BillingAccountInvoiceId) Segments

Segments returns a slice of Resource ID Segments which comprise this Billing Account Invoice ID

func (BillingAccountInvoiceId) String

func (id BillingAccountInvoiceId) String() string

String returns a human-readable description of this Billing Account Invoice ID

type BillingProfileId

type BillingProfileId struct {
	BillingAccountName string
	BillingProfileName string
}

BillingProfileId is a struct representing the Resource ID for a Billing Profile

func NewBillingProfileID

func NewBillingProfileID(billingAccountName string, billingProfileName string) BillingProfileId

NewBillingProfileID returns a new BillingProfileId struct

func ParseBillingProfileID

func ParseBillingProfileID(input string) (*BillingProfileId, error)

ParseBillingProfileID parses 'input' into a BillingProfileId

func ParseBillingProfileIDInsensitively

func ParseBillingProfileIDInsensitively(input string) (*BillingProfileId, error)

ParseBillingProfileIDInsensitively parses 'input' case-insensitively into a BillingProfileId note: this method should only be used for API response data and not user input

func (*BillingProfileId) FromParseResult

func (id *BillingProfileId) FromParseResult(input resourceids.ParseResult) error

func (BillingProfileId) ID

func (id BillingProfileId) ID() string

ID returns the formatted Billing Profile ID

func (BillingProfileId) Segments

func (id BillingProfileId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Billing Profile ID

func (BillingProfileId) String

func (id BillingProfileId) String() string

String returns a human-readable description of this Billing Profile ID

type BillingSubscriptionId

type BillingSubscriptionId struct {
	SubscriptionId string
}

BillingSubscriptionId is a struct representing the Resource ID for a Billing Subscription

func NewBillingSubscriptionID

func NewBillingSubscriptionID(subscriptionId string) BillingSubscriptionId

NewBillingSubscriptionID returns a new BillingSubscriptionId struct

func ParseBillingSubscriptionID

func ParseBillingSubscriptionID(input string) (*BillingSubscriptionId, error)

ParseBillingSubscriptionID parses 'input' into a BillingSubscriptionId

func ParseBillingSubscriptionIDInsensitively

func ParseBillingSubscriptionIDInsensitively(input string) (*BillingSubscriptionId, error)

ParseBillingSubscriptionIDInsensitively parses 'input' case-insensitively into a BillingSubscriptionId note: this method should only be used for API response data and not user input

func (*BillingSubscriptionId) FromParseResult

func (id *BillingSubscriptionId) FromParseResult(input resourceids.ParseResult) error

func (BillingSubscriptionId) ID

func (id BillingSubscriptionId) ID() string

ID returns the formatted Billing Subscription ID

func (BillingSubscriptionId) Segments

func (id BillingSubscriptionId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Billing Subscription ID

func (BillingSubscriptionId) String

func (id BillingSubscriptionId) String() string

String returns a human-readable description of this Billing Subscription ID

type BillingSubscriptionInvoiceId

type BillingSubscriptionInvoiceId struct {
	SubscriptionId string
	InvoiceName    string
}

BillingSubscriptionInvoiceId is a struct representing the Resource ID for a Billing Subscription Invoice

func NewBillingSubscriptionInvoiceID

func NewBillingSubscriptionInvoiceID(subscriptionId string, invoiceName string) BillingSubscriptionInvoiceId

NewBillingSubscriptionInvoiceID returns a new BillingSubscriptionInvoiceId struct

func ParseBillingSubscriptionInvoiceID

func ParseBillingSubscriptionInvoiceID(input string) (*BillingSubscriptionInvoiceId, error)

ParseBillingSubscriptionInvoiceID parses 'input' into a BillingSubscriptionInvoiceId

func ParseBillingSubscriptionInvoiceIDInsensitively

func ParseBillingSubscriptionInvoiceIDInsensitively(input string) (*BillingSubscriptionInvoiceId, error)

ParseBillingSubscriptionInvoiceIDInsensitively parses 'input' case-insensitively into a BillingSubscriptionInvoiceId note: this method should only be used for API response data and not user input

func (*BillingSubscriptionInvoiceId) FromParseResult

func (id *BillingSubscriptionInvoiceId) FromParseResult(input resourceids.ParseResult) error

func (BillingSubscriptionInvoiceId) ID

ID returns the formatted Billing Subscription Invoice ID

func (BillingSubscriptionInvoiceId) Segments

Segments returns a slice of Resource ID Segments which comprise this Billing Subscription Invoice ID

func (BillingSubscriptionInvoiceId) String

String returns a human-readable description of this Billing Subscription Invoice ID

type Document

type Document struct {
	Kind   *DocumentType   `json:"kind,omitempty"`
	Source *DocumentSource `json:"source,omitempty"`
	Url    *string         `json:"url,omitempty"`
}

type DocumentSource

type DocumentSource string
const (
	DocumentSourceDRS DocumentSource = "DRS"
	DocumentSourceENF DocumentSource = "ENF"
)

func (*DocumentSource) UnmarshalJSON

func (s *DocumentSource) UnmarshalJSON(bytes []byte) error

type DocumentType

type DocumentType string
const (
	DocumentTypeCreditNote DocumentType = "CreditNote"
	DocumentTypeInvoice    DocumentType = "Invoice"
	DocumentTypeTaxReceipt DocumentType = "TaxReceipt"
	DocumentTypeVoidNote   DocumentType = "VoidNote"
)

func (*DocumentType) UnmarshalJSON

func (s *DocumentType) UnmarshalJSON(bytes []byte) error

type DownloadBillingSubscriptionInvoiceOperationOptions

type DownloadBillingSubscriptionInvoiceOperationOptions struct {
	DownloadToken *string
}

func DefaultDownloadBillingSubscriptionInvoiceOperationOptions

func DefaultDownloadBillingSubscriptionInvoiceOperationOptions() DownloadBillingSubscriptionInvoiceOperationOptions

func (DownloadBillingSubscriptionInvoiceOperationOptions) ToHeaders

func (DownloadBillingSubscriptionInvoiceOperationOptions) ToOData

func (DownloadBillingSubscriptionInvoiceOperationOptions) ToQuery

type DownloadBillingSubscriptionInvoiceOperationResponse

type DownloadBillingSubscriptionInvoiceOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *DownloadURL
}

type DownloadInvoiceOperationOptions

type DownloadInvoiceOperationOptions struct {
	DownloadToken *string
}

func DefaultDownloadInvoiceOperationOptions

func DefaultDownloadInvoiceOperationOptions() DownloadInvoiceOperationOptions

func (DownloadInvoiceOperationOptions) ToHeaders

func (DownloadInvoiceOperationOptions) ToOData

func (DownloadInvoiceOperationOptions) ToQuery

type DownloadInvoiceOperationResponse

type DownloadInvoiceOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *DownloadURL
}

type DownloadMultipleBillingProfileInvoicesOperationResponse

type DownloadMultipleBillingProfileInvoicesOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *DownloadURL
}

type DownloadMultipleBillingSubscriptionInvoicesOperationResponse

type DownloadMultipleBillingSubscriptionInvoicesOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *DownloadURL
}

type DownloadURL added in v0.20241009.1142232

type DownloadURL struct {
	ExpiryTime *string `json:"expiryTime,omitempty"`
	Url        *string `json:"url,omitempty"`
}

func (*DownloadURL) GetExpiryTimeAsTime added in v0.20241009.1142232

func (o *DownloadURL) GetExpiryTimeAsTime() (*time.Time, error)

func (*DownloadURL) SetExpiryTimeAsTime added in v0.20241009.1142232

func (o *DownloadURL) SetExpiryTimeAsTime(input time.Time)

type GetByIdOperationResponse

type GetByIdOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *Invoice
}

type GetBySubscriptionAndInvoiceIdOperationResponse

type GetBySubscriptionAndInvoiceIdOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *Invoice
}

type GetOperationResponse

type GetOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *Invoice
}

type Invoice

type Invoice struct {
	Id         *string            `json:"id,omitempty"`
	Name       *string            `json:"name,omitempty"`
	Properties *InvoiceProperties `json:"properties,omitempty"`
	Type       *string            `json:"type,omitempty"`
}

type InvoiceDocumentType

type InvoiceDocumentType string
const (
	InvoiceDocumentTypeCreditNote InvoiceDocumentType = "CreditNote"
	InvoiceDocumentTypeInvoice    InvoiceDocumentType = "Invoice"
)

func (*InvoiceDocumentType) UnmarshalJSON

func (s *InvoiceDocumentType) UnmarshalJSON(bytes []byte) error

type InvoiceId

type InvoiceId struct {
	InvoiceName string
}

InvoiceId is a struct representing the Resource ID for a Invoice

func NewInvoiceID

func NewInvoiceID(invoiceName string) InvoiceId

NewInvoiceID returns a new InvoiceId struct

func ParseInvoiceID

func ParseInvoiceID(input string) (*InvoiceId, error)

ParseInvoiceID parses 'input' into a InvoiceId

func ParseInvoiceIDInsensitively

func ParseInvoiceIDInsensitively(input string) (*InvoiceId, error)

ParseInvoiceIDInsensitively parses 'input' case-insensitively into a InvoiceId note: this method should only be used for API response data and not user input

func (*InvoiceId) FromParseResult

func (id *InvoiceId) FromParseResult(input resourceids.ParseResult) error

func (InvoiceId) ID

func (id InvoiceId) ID() string

ID returns the formatted Invoice ID

func (InvoiceId) Segments

func (id InvoiceId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Invoice ID

func (InvoiceId) String

func (id InvoiceId) String() string

String returns a human-readable description of this Invoice ID

type InvoiceOperationPredicate

type InvoiceOperationPredicate struct {
	Id   *string
	Name *string
	Type *string
}

func (InvoiceOperationPredicate) Matches

func (p InvoiceOperationPredicate) Matches(input Invoice) bool

type InvoiceProperties

type InvoiceProperties struct {
	AmountDue                 *Amount                   `json:"amountDue,omitempty"`
	AzurePrepaymentApplied    *Amount                   `json:"azurePrepaymentApplied,omitempty"`
	BilledAmount              *Amount                   `json:"billedAmount,omitempty"`
	BilledDocumentId          *string                   `json:"billedDocumentId,omitempty"`
	BillingProfileDisplayName *string                   `json:"billingProfileDisplayName,omitempty"`
	BillingProfileId          *string                   `json:"billingProfileId,omitempty"`
	CreditAmount              *Amount                   `json:"creditAmount,omitempty"`
	CreditForDocumentId       *string                   `json:"creditForDocumentId,omitempty"`
	DocumentType              *InvoiceDocumentType      `json:"documentType,omitempty"`
	Documents                 *[]Document               `json:"documents,omitempty"`
	DueDate                   *string                   `json:"dueDate,omitempty"`
	FreeAzureCreditApplied    *Amount                   `json:"freeAzureCreditApplied,omitempty"`
	InvoiceDate               *string                   `json:"invoiceDate,omitempty"`
	InvoicePeriodEndDate      *string                   `json:"invoicePeriodEndDate,omitempty"`
	InvoicePeriodStartDate    *string                   `json:"invoicePeriodStartDate,omitempty"`
	InvoiceType               *InvoiceType              `json:"invoiceType,omitempty"`
	IsMonthlyInvoice          *bool                     `json:"isMonthlyInvoice,omitempty"`
	Payments                  *[]PaymentProperties      `json:"payments,omitempty"`
	PurchaseOrderNumber       *string                   `json:"purchaseOrderNumber,omitempty"`
	RebillDetails             *map[string]RebillDetails `json:"rebillDetails,omitempty"`
	Status                    *InvoiceStatus            `json:"status,omitempty"`
	SubTotal                  *Amount                   `json:"subTotal,omitempty"`
	SubscriptionId            *string                   `json:"subscriptionId,omitempty"`
	TaxAmount                 *Amount                   `json:"taxAmount,omitempty"`
	TotalAmount               *Amount                   `json:"totalAmount,omitempty"`
}

func (*InvoiceProperties) GetDueDateAsTime

func (o *InvoiceProperties) GetDueDateAsTime() (*time.Time, error)

func (*InvoiceProperties) GetInvoiceDateAsTime

func (o *InvoiceProperties) GetInvoiceDateAsTime() (*time.Time, error)

func (*InvoiceProperties) GetInvoicePeriodEndDateAsTime

func (o *InvoiceProperties) GetInvoicePeriodEndDateAsTime() (*time.Time, error)

func (*InvoiceProperties) GetInvoicePeriodStartDateAsTime

func (o *InvoiceProperties) GetInvoicePeriodStartDateAsTime() (*time.Time, error)

func (*InvoiceProperties) SetDueDateAsTime

func (o *InvoiceProperties) SetDueDateAsTime(input time.Time)

func (*InvoiceProperties) SetInvoiceDateAsTime

func (o *InvoiceProperties) SetInvoiceDateAsTime(input time.Time)

func (*InvoiceProperties) SetInvoicePeriodEndDateAsTime

func (o *InvoiceProperties) SetInvoicePeriodEndDateAsTime(input time.Time)

func (*InvoiceProperties) SetInvoicePeriodStartDateAsTime

func (o *InvoiceProperties) SetInvoicePeriodStartDateAsTime(input time.Time)

type InvoiceStatus

type InvoiceStatus string
const (
	InvoiceStatusDue     InvoiceStatus = "Due"
	InvoiceStatusOverDue InvoiceStatus = "OverDue"
	InvoiceStatusPaid    InvoiceStatus = "Paid"
	InvoiceStatusVoid    InvoiceStatus = "Void"
)

func (*InvoiceStatus) UnmarshalJSON

func (s *InvoiceStatus) UnmarshalJSON(bytes []byte) error

type InvoiceType

type InvoiceType string
const (
	InvoiceTypeAzureMarketplace InvoiceType = "AzureMarketplace"
	InvoiceTypeAzureService     InvoiceType = "AzureService"
	InvoiceTypeAzureSupport     InvoiceType = "AzureSupport"
)

func (*InvoiceType) UnmarshalJSON

func (s *InvoiceType) UnmarshalJSON(bytes []byte) error

type InvoicesClient

type InvoicesClient struct {
	Client *resourcemanager.Client
}

func NewInvoicesClientWithBaseURI

func NewInvoicesClientWithBaseURI(sdkApi sdkEnv.Api) (*InvoicesClient, error)

func (InvoicesClient) DownloadBillingSubscriptionInvoice

DownloadBillingSubscriptionInvoice ...

func (InvoicesClient) DownloadBillingSubscriptionInvoiceThenPoll

func (c InvoicesClient) DownloadBillingSubscriptionInvoiceThenPoll(ctx context.Context, id BillingSubscriptionInvoiceId, options DownloadBillingSubscriptionInvoiceOperationOptions) error

DownloadBillingSubscriptionInvoiceThenPoll performs DownloadBillingSubscriptionInvoice then polls until it's completed

func (InvoicesClient) DownloadInvoice

DownloadInvoice ...

func (InvoicesClient) DownloadInvoiceThenPoll

func (c InvoicesClient) DownloadInvoiceThenPoll(ctx context.Context, id BillingAccountInvoiceId, options DownloadInvoiceOperationOptions) error

DownloadInvoiceThenPoll performs DownloadInvoice then polls until it's completed

func (InvoicesClient) DownloadMultipleBillingProfileInvoices

func (c InvoicesClient) DownloadMultipleBillingProfileInvoices(ctx context.Context, id BillingAccountId, input []string) (result DownloadMultipleBillingProfileInvoicesOperationResponse, err error)

DownloadMultipleBillingProfileInvoices ...

func (InvoicesClient) DownloadMultipleBillingProfileInvoicesThenPoll

func (c InvoicesClient) DownloadMultipleBillingProfileInvoicesThenPoll(ctx context.Context, id BillingAccountId, input []string) error

DownloadMultipleBillingProfileInvoicesThenPoll performs DownloadMultipleBillingProfileInvoices then polls until it's completed

func (InvoicesClient) DownloadMultipleBillingSubscriptionInvoices

func (c InvoicesClient) DownloadMultipleBillingSubscriptionInvoices(ctx context.Context, id BillingSubscriptionId, input []string) (result DownloadMultipleBillingSubscriptionInvoicesOperationResponse, err error)

DownloadMultipleBillingSubscriptionInvoices ...

func (InvoicesClient) DownloadMultipleBillingSubscriptionInvoicesThenPoll

func (c InvoicesClient) DownloadMultipleBillingSubscriptionInvoicesThenPoll(ctx context.Context, id BillingSubscriptionId, input []string) error

DownloadMultipleBillingSubscriptionInvoicesThenPoll performs DownloadMultipleBillingSubscriptionInvoices then polls until it's completed

func (InvoicesClient) Get

Get ...

func (InvoicesClient) GetById

func (c InvoicesClient) GetById(ctx context.Context, id InvoiceId) (result GetByIdOperationResponse, err error)

GetById ...

func (InvoicesClient) GetBySubscriptionAndInvoiceId

GetBySubscriptionAndInvoiceId ...

func (InvoicesClient) ListByBillingAccount

ListByBillingAccount ...

func (InvoicesClient) ListByBillingAccountComplete

ListByBillingAccountComplete retrieves all the results into a single object

func (InvoicesClient) ListByBillingAccountCompleteMatchingPredicate

func (c InvoicesClient) ListByBillingAccountCompleteMatchingPredicate(ctx context.Context, id BillingAccountId, options ListByBillingAccountOperationOptions, predicate InvoiceOperationPredicate) (result ListByBillingAccountCompleteResult, err error)

ListByBillingAccountCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (InvoicesClient) ListByBillingProfile

ListByBillingProfile ...

func (InvoicesClient) ListByBillingProfileComplete

ListByBillingProfileComplete retrieves all the results into a single object

func (InvoicesClient) ListByBillingProfileCompleteMatchingPredicate

func (c InvoicesClient) ListByBillingProfileCompleteMatchingPredicate(ctx context.Context, id BillingProfileId, options ListByBillingProfileOperationOptions, predicate InvoiceOperationPredicate) (result ListByBillingProfileCompleteResult, err error)

ListByBillingProfileCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (InvoicesClient) ListByBillingSubscription

ListByBillingSubscription ...

func (InvoicesClient) ListByBillingSubscriptionComplete

ListByBillingSubscriptionComplete retrieves all the results into a single object

func (InvoicesClient) ListByBillingSubscriptionCompleteMatchingPredicate

func (c InvoicesClient) ListByBillingSubscriptionCompleteMatchingPredicate(ctx context.Context, id BillingSubscriptionId, options ListByBillingSubscriptionOperationOptions, predicate InvoiceOperationPredicate) (result ListByBillingSubscriptionCompleteResult, err error)

ListByBillingSubscriptionCompleteMatchingPredicate retrieves all the results and then applies the predicate

type ListByBillingAccountCompleteResult

type ListByBillingAccountCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []Invoice
}

type ListByBillingAccountCustomPager added in v0.20240628.1153531

type ListByBillingAccountCustomPager struct {
	NextLink *odata.Link `json:"nextLink"`
}
func (p *ListByBillingAccountCustomPager) NextPageLink() *odata.Link

type ListByBillingAccountOperationOptions

type ListByBillingAccountOperationOptions struct {
	PeriodEndDate   *string
	PeriodStartDate *string
}

func DefaultListByBillingAccountOperationOptions

func DefaultListByBillingAccountOperationOptions() ListByBillingAccountOperationOptions

func (ListByBillingAccountOperationOptions) ToHeaders

func (ListByBillingAccountOperationOptions) ToOData

func (ListByBillingAccountOperationOptions) ToQuery

type ListByBillingAccountOperationResponse

type ListByBillingAccountOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]Invoice
}

type ListByBillingProfileCompleteResult

type ListByBillingProfileCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []Invoice
}

type ListByBillingProfileCustomPager added in v0.20240628.1153531

type ListByBillingProfileCustomPager struct {
	NextLink *odata.Link `json:"nextLink"`
}
func (p *ListByBillingProfileCustomPager) NextPageLink() *odata.Link

type ListByBillingProfileOperationOptions

type ListByBillingProfileOperationOptions struct {
	PeriodEndDate   *string
	PeriodStartDate *string
}

func DefaultListByBillingProfileOperationOptions

func DefaultListByBillingProfileOperationOptions() ListByBillingProfileOperationOptions

func (ListByBillingProfileOperationOptions) ToHeaders

func (ListByBillingProfileOperationOptions) ToOData

func (ListByBillingProfileOperationOptions) ToQuery

type ListByBillingProfileOperationResponse

type ListByBillingProfileOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]Invoice
}

type ListByBillingSubscriptionCompleteResult

type ListByBillingSubscriptionCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []Invoice
}

type ListByBillingSubscriptionCustomPager added in v0.20240628.1153531

type ListByBillingSubscriptionCustomPager struct {
	NextLink *odata.Link `json:"nextLink"`
}
func (p *ListByBillingSubscriptionCustomPager) NextPageLink() *odata.Link

type ListByBillingSubscriptionOperationOptions

type ListByBillingSubscriptionOperationOptions struct {
	PeriodEndDate   *string
	PeriodStartDate *string
}

func DefaultListByBillingSubscriptionOperationOptions

func DefaultListByBillingSubscriptionOperationOptions() ListByBillingSubscriptionOperationOptions

func (ListByBillingSubscriptionOperationOptions) ToHeaders

func (ListByBillingSubscriptionOperationOptions) ToOData

func (ListByBillingSubscriptionOperationOptions) ToQuery

type ListByBillingSubscriptionOperationResponse

type ListByBillingSubscriptionOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]Invoice
}

type PaymentMethodFamily

type PaymentMethodFamily string
const (
	PaymentMethodFamilyCheckWire  PaymentMethodFamily = "CheckWire"
	PaymentMethodFamilyCreditCard PaymentMethodFamily = "CreditCard"
	PaymentMethodFamilyCredits    PaymentMethodFamily = "Credits"
	PaymentMethodFamilyNone       PaymentMethodFamily = "None"
)

func (*PaymentMethodFamily) UnmarshalJSON

func (s *PaymentMethodFamily) UnmarshalJSON(bytes []byte) error

type PaymentProperties

type PaymentProperties struct {
	Amount              *Amount              `json:"amount,omitempty"`
	Date                *string              `json:"date,omitempty"`
	PaymentMethodFamily *PaymentMethodFamily `json:"paymentMethodFamily,omitempty"`
	PaymentMethodType   *string              `json:"paymentMethodType,omitempty"`
	PaymentType         *string              `json:"paymentType,omitempty"`
}

func (*PaymentProperties) GetDateAsTime

func (o *PaymentProperties) GetDateAsTime() (*time.Time, error)

func (*PaymentProperties) SetDateAsTime

func (o *PaymentProperties) SetDateAsTime(input time.Time)

type RebillDetails

type RebillDetails struct {
	CreditNoteDocumentId *string                   `json:"creditNoteDocumentId,omitempty"`
	InvoiceDocumentId    *string                   `json:"invoiceDocumentId,omitempty"`
	RebillDetails        *map[string]RebillDetails `json:"rebillDetails,omitempty"`
}

Jump to

Keyboard shortcuts

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