transaction

package
v0.20240712.1173055 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2024 License: MPL-2.0 Imports: 15 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/billing/2024-04-01/transaction Documentation

The transaction SDK allows for interaction with the Azure Resource Manager Service billing (API Version 2024-04-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/2024-04-01/transaction"

Client Initialization

client := transaction.NewTransactionClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: TransactionClient.GetTransactionSummaryByInvoice

ctx := context.TODO()
id := transaction.NewBillingAccountInvoiceID("billingAccountValue", "invoiceValue")

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

Example Usage: TransactionClient.ListByBillingProfile

ctx := context.TODO()
id := transaction.NewBillingProfileID("billingAccountValue", "billingProfileValue")

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

Example Usage: TransactionClient.ListByCustomer

ctx := context.TODO()
id := transaction.NewBillingProfileCustomerID("billingAccountValue", "billingProfileValue", "customerValue")

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

Example Usage: TransactionClient.ListByInvoice

ctx := context.TODO()
id := transaction.NewBillingAccountInvoiceID("billingAccountValue", "invoiceValue")

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

Example Usage: TransactionClient.ListByInvoiceSection

ctx := context.TODO()
id := transaction.NewInvoiceSectionID("billingAccountValue", "billingProfileValue", "invoiceSectionValue")

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

Example Usage: TransactionClient.TransactionsDownloadByInvoice

ctx := context.TODO()
id := transaction.NewBillingAccountInvoiceID("billingAccountValue", "invoiceValue")

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForCreditType

func PossibleValuesForCreditType() []string

func PossibleValuesForSpecialTaxationType

func PossibleValuesForSpecialTaxationType() []string

func PossibleValuesForTransactionKind

func PossibleValuesForTransactionKind() []string

func PossibleValuesForTransactionType

func PossibleValuesForTransactionType() []string

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 ValidateBillingProfileCustomerID

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

ValidateBillingProfileCustomerID checks that 'input' can be parsed as a Billing Profile Customer 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 ValidateInvoiceSectionID

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

ValidateInvoiceSectionID checks that 'input' can be parsed as a Invoice Section ID

Types

type Amount

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

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 BillingProfileCustomerId

type BillingProfileCustomerId struct {
	BillingAccountName string
	BillingProfileName string
	CustomerName       string
}

BillingProfileCustomerId is a struct representing the Resource ID for a Billing Profile Customer

func NewBillingProfileCustomerID

func NewBillingProfileCustomerID(billingAccountName string, billingProfileName string, customerName string) BillingProfileCustomerId

NewBillingProfileCustomerID returns a new BillingProfileCustomerId struct

func ParseBillingProfileCustomerID

func ParseBillingProfileCustomerID(input string) (*BillingProfileCustomerId, error)

ParseBillingProfileCustomerID parses 'input' into a BillingProfileCustomerId

func ParseBillingProfileCustomerIDInsensitively

func ParseBillingProfileCustomerIDInsensitively(input string) (*BillingProfileCustomerId, error)

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

func (*BillingProfileCustomerId) FromParseResult

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

func (BillingProfileCustomerId) ID

ID returns the formatted Billing Profile Customer ID

func (BillingProfileCustomerId) Segments

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

func (BillingProfileCustomerId) String

func (id BillingProfileCustomerId) String() string

String returns a human-readable description of this Billing Profile Customer 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 CreditType

type CreditType string
const (
	CreditTypeAzureCreditOffer    CreditType = "AzureCreditOffer"
	CreditTypeAzureFreeCredit     CreditType = "AzureFreeCredit"
	CreditTypeOther               CreditType = "Other"
	CreditTypeRefund              CreditType = "Refund"
	CreditTypeServiceInterruption CreditType = "ServiceInterruption"
)

func (*CreditType) UnmarshalJSON

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

type DocumentDownloadResult

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

type GetTransactionSummaryByInvoiceOperationOptions

type GetTransactionSummaryByInvoiceOperationOptions struct {
	Filter *string
	Search *string
}

func DefaultGetTransactionSummaryByInvoiceOperationOptions

func DefaultGetTransactionSummaryByInvoiceOperationOptions() GetTransactionSummaryByInvoiceOperationOptions

func (GetTransactionSummaryByInvoiceOperationOptions) ToHeaders

func (GetTransactionSummaryByInvoiceOperationOptions) ToOData

func (GetTransactionSummaryByInvoiceOperationOptions) ToQuery

type GetTransactionSummaryByInvoiceOperationResponse

type GetTransactionSummaryByInvoiceOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *TransactionSummary
}

type InvoiceSectionId

type InvoiceSectionId struct {
	BillingAccountName string
	BillingProfileName string
	InvoiceSectionName string
}

InvoiceSectionId is a struct representing the Resource ID for a Invoice Section

func NewInvoiceSectionID

func NewInvoiceSectionID(billingAccountName string, billingProfileName string, invoiceSectionName string) InvoiceSectionId

NewInvoiceSectionID returns a new InvoiceSectionId struct

func ParseInvoiceSectionID

func ParseInvoiceSectionID(input string) (*InvoiceSectionId, error)

ParseInvoiceSectionID parses 'input' into a InvoiceSectionId

func ParseInvoiceSectionIDInsensitively

func ParseInvoiceSectionIDInsensitively(input string) (*InvoiceSectionId, error)

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

func (*InvoiceSectionId) FromParseResult

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

func (InvoiceSectionId) ID

func (id InvoiceSectionId) ID() string

ID returns the formatted Invoice Section ID

func (InvoiceSectionId) Segments

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

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

func (InvoiceSectionId) String

func (id InvoiceSectionId) String() string

String returns a human-readable description of this Invoice Section ID

type ListByBillingProfileCompleteResult

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

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 {
	Count           *bool
	Filter          *string
	OrderBy         *string
	PeriodEndDate   *string
	PeriodStartDate *string
	Search          *string
	Skip            *int64
	Top             *int64
	Type            *TransactionType
}

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        *[]Transaction
}

type ListByCustomerCompleteResult

type ListByCustomerCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []Transaction
}

type ListByCustomerCustomPager added in v0.20240628.1153531

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

type ListByCustomerOperationOptions

type ListByCustomerOperationOptions struct {
	Count           *bool
	Filter          *string
	OrderBy         *string
	PeriodEndDate   *string
	PeriodStartDate *string
	Search          *string
	Skip            *int64
	Top             *int64
	Type            *TransactionType
}

func DefaultListByCustomerOperationOptions

func DefaultListByCustomerOperationOptions() ListByCustomerOperationOptions

func (ListByCustomerOperationOptions) ToHeaders

func (ListByCustomerOperationOptions) ToOData

func (ListByCustomerOperationOptions) ToQuery

type ListByCustomerOperationResponse

type ListByCustomerOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]Transaction
}

type ListByInvoiceCompleteResult

type ListByInvoiceCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []Transaction
}

type ListByInvoiceCustomPager added in v0.20240628.1153531

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

type ListByInvoiceOperationOptions

type ListByInvoiceOperationOptions struct {
	Count   *bool
	Filter  *string
	OrderBy *string
	Search  *string
	Skip    *int64
	Top     *int64
}

func DefaultListByInvoiceOperationOptions

func DefaultListByInvoiceOperationOptions() ListByInvoiceOperationOptions

func (ListByInvoiceOperationOptions) ToHeaders

func (ListByInvoiceOperationOptions) ToOData

func (ListByInvoiceOperationOptions) ToQuery

type ListByInvoiceOperationResponse

type ListByInvoiceOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]Transaction
}

type ListByInvoiceSectionCompleteResult

type ListByInvoiceSectionCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []Transaction
}

type ListByInvoiceSectionCustomPager added in v0.20240628.1153531

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

type ListByInvoiceSectionOperationOptions

type ListByInvoiceSectionOperationOptions struct {
	Count           *bool
	Filter          *string
	OrderBy         *string
	PeriodEndDate   *string
	PeriodStartDate *string
	Search          *string
	Skip            *int64
	Top             *int64
	Type            *TransactionType
}

func DefaultListByInvoiceSectionOperationOptions

func DefaultListByInvoiceSectionOperationOptions() ListByInvoiceSectionOperationOptions

func (ListByInvoiceSectionOperationOptions) ToHeaders

func (ListByInvoiceSectionOperationOptions) ToOData

func (ListByInvoiceSectionOperationOptions) ToQuery

type ListByInvoiceSectionOperationResponse

type ListByInvoiceSectionOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]Transaction
}

type RefundTransactionDetails

type RefundTransactionDetails struct {
	AmountRefunded    *Amount `json:"amountRefunded,omitempty"`
	AmountRequested   *Amount `json:"amountRequested,omitempty"`
	RefundOperationId *string `json:"refundOperationId,omitempty"`
}

type SpecialTaxationType

type SpecialTaxationType string
const (
	SpecialTaxationTypeInvoiceLevel  SpecialTaxationType = "InvoiceLevel"
	SpecialTaxationTypeSubtotalLevel SpecialTaxationType = "SubtotalLevel"
)

func (*SpecialTaxationType) UnmarshalJSON

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

type Transaction

type Transaction struct {
	Id         *string                `json:"id,omitempty"`
	Name       *string                `json:"name,omitempty"`
	Properties *TransactionProperties `json:"properties,omitempty"`
	SystemData *systemdata.SystemData `json:"systemData,omitempty"`
	Tags       *map[string]string     `json:"tags,omitempty"`
	Type       *string                `json:"type,omitempty"`
}

type TransactionClient

type TransactionClient struct {
	Client *resourcemanager.Client
}

func NewTransactionClientWithBaseURI

func NewTransactionClientWithBaseURI(sdkApi sdkEnv.Api) (*TransactionClient, error)

func (TransactionClient) GetTransactionSummaryByInvoice

GetTransactionSummaryByInvoice ...

func (TransactionClient) ListByBillingProfile

ListByBillingProfile ...

func (TransactionClient) ListByBillingProfileComplete

ListByBillingProfileComplete retrieves all the results into a single object

func (TransactionClient) ListByBillingProfileCompleteMatchingPredicate

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

ListByBillingProfileCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (TransactionClient) ListByCustomer

ListByCustomer ...

func (TransactionClient) ListByCustomerComplete

ListByCustomerComplete retrieves all the results into a single object

func (TransactionClient) ListByCustomerCompleteMatchingPredicate

func (c TransactionClient) ListByCustomerCompleteMatchingPredicate(ctx context.Context, id BillingProfileCustomerId, options ListByCustomerOperationOptions, predicate TransactionOperationPredicate) (result ListByCustomerCompleteResult, err error)

ListByCustomerCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (TransactionClient) ListByInvoice

ListByInvoice ...

func (TransactionClient) ListByInvoiceComplete

ListByInvoiceComplete retrieves all the results into a single object

func (TransactionClient) ListByInvoiceCompleteMatchingPredicate

func (c TransactionClient) ListByInvoiceCompleteMatchingPredicate(ctx context.Context, id BillingAccountInvoiceId, options ListByInvoiceOperationOptions, predicate TransactionOperationPredicate) (result ListByInvoiceCompleteResult, err error)

ListByInvoiceCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (TransactionClient) ListByInvoiceSection

ListByInvoiceSection ...

func (TransactionClient) ListByInvoiceSectionComplete

ListByInvoiceSectionComplete retrieves all the results into a single object

func (TransactionClient) ListByInvoiceSectionCompleteMatchingPredicate

func (c TransactionClient) ListByInvoiceSectionCompleteMatchingPredicate(ctx context.Context, id InvoiceSectionId, options ListByInvoiceSectionOperationOptions, predicate TransactionOperationPredicate) (result ListByInvoiceSectionCompleteResult, err error)

ListByInvoiceSectionCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (TransactionClient) TransactionsDownloadByInvoice

TransactionsDownloadByInvoice ...

func (TransactionClient) TransactionsDownloadByInvoiceThenPoll

func (c TransactionClient) TransactionsDownloadByInvoiceThenPoll(ctx context.Context, id BillingAccountInvoiceId) error

TransactionsDownloadByInvoiceThenPoll performs TransactionsDownloadByInvoice then polls until it's completed

type TransactionKind

type TransactionKind string
const (
	TransactionKindAll         TransactionKind = "All"
	TransactionKindOther       TransactionKind = "Other"
	TransactionKindReservation TransactionKind = "Reservation"
)

func (*TransactionKind) UnmarshalJSON

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

type TransactionOperationPredicate

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

func (TransactionOperationPredicate) Matches

type TransactionProperties

type TransactionProperties struct {
	AzureCreditApplied               *Amount                   `json:"azureCreditApplied,omitempty"`
	AzurePlan                        *string                   `json:"azurePlan,omitempty"`
	BillingCurrency                  *string                   `json:"billingCurrency,omitempty"`
	BillingProfileDisplayName        *interface{}              `json:"billingProfileDisplayName,omitempty"`
	BillingProfileId                 *string                   `json:"billingProfileId,omitempty"`
	ConsumptionCommitmentDecremented *Amount                   `json:"consumptionCommitmentDecremented,omitempty"`
	CreditType                       *CreditType               `json:"creditType,omitempty"`
	CustomerDisplayName              *string                   `json:"customerDisplayName,omitempty"`
	CustomerId                       *string                   `json:"customerId,omitempty"`
	Date                             *string                   `json:"date,omitempty"`
	Discount                         *float64                  `json:"discount,omitempty"`
	EffectivePrice                   *Amount                   `json:"effectivePrice,omitempty"`
	ExchangeRate                     *float64                  `json:"exchangeRate,omitempty"`
	Invoice                          *string                   `json:"invoice,omitempty"`
	InvoiceId                        *string                   `json:"invoiceId,omitempty"`
	InvoiceSectionDisplayName        *string                   `json:"invoiceSectionDisplayName,omitempty"`
	InvoiceSectionId                 *string                   `json:"invoiceSectionId,omitempty"`
	IsThirdParty                     *bool                     `json:"isThirdParty,omitempty"`
	Kind                             *TransactionKind          `json:"kind,omitempty"`
	MarketPrice                      *Amount                   `json:"marketPrice,omitempty"`
	PartNumber                       *string                   `json:"partNumber,omitempty"`
	PricingCurrency                  *string                   `json:"pricingCurrency,omitempty"`
	ProductDescription               *string                   `json:"productDescription,omitempty"`
	ProductFamily                    *string                   `json:"productFamily,omitempty"`
	ProductType                      *string                   `json:"productType,omitempty"`
	ProductTypeId                    *string                   `json:"productTypeId,omitempty"`
	Quantity                         *int64                    `json:"quantity,omitempty"`
	ReasonCode                       *string                   `json:"reasonCode,omitempty"`
	RefundTransactionDetails         *RefundTransactionDetails `json:"refundTransactionDetails,omitempty"`
	ServicePeriodEndDate             *string                   `json:"servicePeriodEndDate,omitempty"`
	ServicePeriodStartDate           *string                   `json:"servicePeriodStartDate,omitempty"`
	SpecialTaxationType              *SpecialTaxationType      `json:"specialTaxationType,omitempty"`
	SubTotal                         *Amount                   `json:"subTotal,omitempty"`
	Tax                              *Amount                   `json:"tax,omitempty"`
	TransactionAmount                *Amount                   `json:"transactionAmount,omitempty"`
	TransactionType                  *string                   `json:"transactionType,omitempty"`
	UnitOfMeasure                    *string                   `json:"unitOfMeasure,omitempty"`
	UnitType                         *string                   `json:"unitType,omitempty"`
	Units                            *float64                  `json:"units,omitempty"`
}

func (*TransactionProperties) GetDateAsTime

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

func (*TransactionProperties) GetServicePeriodEndDateAsTime

func (o *TransactionProperties) GetServicePeriodEndDateAsTime() (*time.Time, error)

func (*TransactionProperties) GetServicePeriodStartDateAsTime

func (o *TransactionProperties) GetServicePeriodStartDateAsTime() (*time.Time, error)

func (*TransactionProperties) SetDateAsTime

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

func (*TransactionProperties) SetServicePeriodEndDateAsTime

func (o *TransactionProperties) SetServicePeriodEndDateAsTime(input time.Time)

func (*TransactionProperties) SetServicePeriodStartDateAsTime

func (o *TransactionProperties) SetServicePeriodStartDateAsTime(input time.Time)

type TransactionSummary

type TransactionSummary struct {
	AzureCreditApplied               *float64 `json:"azureCreditApplied,omitempty"`
	BillingCurrency                  *string  `json:"billingCurrency,omitempty"`
	ConsumptionCommitmentDecremented *float64 `json:"consumptionCommitmentDecremented,omitempty"`
	SubTotal                         *float64 `json:"subTotal,omitempty"`
	Tax                              *float64 `json:"tax,omitempty"`
	Total                            *float64 `json:"total,omitempty"`
}

type TransactionType

type TransactionType string
const (
	TransactionTypeBilled   TransactionType = "Billed"
	TransactionTypeOther    TransactionType = "Other"
	TransactionTypeUnbilled TransactionType = "Unbilled"
)

func (*TransactionType) UnmarshalJSON

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

type TransactionsDownloadByInvoiceOperationResponse

type TransactionsDownloadByInvoiceOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *DocumentDownloadResult
}

Jump to

Keyboard shortcuts

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