Documentation ¶
Index ¶
- func PossibleValuesForReservationType() []string
- func PossibleValuesForTransactionTypeKind() []string
- func ValidateBillingAccountInvoiceID(input interface{}, key string) (warnings []string, errors []error)
- type Amount
- type BillingAccountInvoiceId
- type ListByInvoiceCompleteResult
- type ListByInvoiceCustomPager
- type ListByInvoiceOperationResponse
- type ReservationType
- type Transaction
- type TransactionOperationPredicate
- type TransactionProperties
- func (o *TransactionProperties) GetDateAsTime() (*time.Time, error)
- func (o *TransactionProperties) GetServicePeriodEndDateAsTime() (*time.Time, error)
- func (o *TransactionProperties) GetServicePeriodStartDateAsTime() (*time.Time, error)
- func (o *TransactionProperties) SetDateAsTime(input time.Time)
- func (o *TransactionProperties) SetServicePeriodEndDateAsTime(input time.Time)
- func (o *TransactionProperties) SetServicePeriodStartDateAsTime(input time.Time)
- type TransactionTypeKind
- type TransactionsClient
- func (c TransactionsClient) ListByInvoice(ctx context.Context, id BillingAccountInvoiceId) (result ListByInvoiceOperationResponse, err error)
- func (c TransactionsClient) ListByInvoiceComplete(ctx context.Context, id BillingAccountInvoiceId) (ListByInvoiceCompleteResult, error)
- func (c TransactionsClient) ListByInvoiceCompleteMatchingPredicate(ctx context.Context, id BillingAccountInvoiceId, ...) (result ListByInvoiceCompleteResult, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForReservationType ¶
func PossibleValuesForReservationType() []string
func PossibleValuesForTransactionTypeKind ¶
func PossibleValuesForTransactionTypeKind() []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
Types ¶
type BillingAccountInvoiceId ¶
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 ¶
func (id BillingAccountInvoiceId) ID() string
ID returns the formatted Billing Account Invoice ID
func (BillingAccountInvoiceId) Segments ¶
func (id BillingAccountInvoiceId) Segments() []resourceids.Segment
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 ListByInvoiceCompleteResult ¶
type ListByInvoiceCompleteResult struct { LatestHttpResponse *http.Response Items []Transaction }
type ListByInvoiceCustomPager ¶ added in v0.20240628.1153531
func (*ListByInvoiceCustomPager) NextPageLink ¶ added in v0.20240628.1153531
func (p *ListByInvoiceCustomPager) NextPageLink() *odata.Link
type ListByInvoiceOperationResponse ¶
type ListByInvoiceOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]Transaction }
type ReservationType ¶
type ReservationType string
const ( ReservationTypePurchase ReservationType = "Purchase" ReservationTypeUsageCharge ReservationType = "Usage Charge" )
func (*ReservationType) UnmarshalJSON ¶
func (s *ReservationType) UnmarshalJSON(bytes []byte) error
type Transaction ¶
type Transaction struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *TransactionProperties `json:"properties,omitempty"` Type *string `json:"type,omitempty"` }
type TransactionOperationPredicate ¶
func (TransactionOperationPredicate) Matches ¶
func (p TransactionOperationPredicate) Matches(input Transaction) bool
type TransactionProperties ¶
type TransactionProperties struct { AzureCreditApplied *Amount `json:"azureCreditApplied,omitempty"` AzurePlan *string `json:"azurePlan,omitempty"` BillingCurrency *string `json:"billingCurrency,omitempty"` BillingProfileDisplayName *string `json:"billingProfileDisplayName,omitempty"` BillingProfileId *string `json:"billingProfileId,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"` Kind *TransactionTypeKind `json:"kind,omitempty"` MarketPrice *Amount `json:"marketPrice,omitempty"` OrderId *string `json:"orderId,omitempty"` OrderName *string `json:"orderName,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"` ServicePeriodEndDate *string `json:"servicePeriodEndDate,omitempty"` ServicePeriodStartDate *string `json:"servicePeriodStartDate,omitempty"` SubTotal *Amount `json:"subTotal,omitempty"` SubscriptionId *string `json:"subscriptionId,omitempty"` SubscriptionName *string `json:"subscriptionName,omitempty"` Tax *Amount `json:"tax,omitempty"` TransactionAmount *Amount `json:"transactionAmount,omitempty"` TransactionType *ReservationType `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 TransactionTypeKind ¶
type TransactionTypeKind string
const ( TransactionTypeKindAll TransactionTypeKind = "all" TransactionTypeKindReservation TransactionTypeKind = "reservation" )
func (*TransactionTypeKind) UnmarshalJSON ¶
func (s *TransactionTypeKind) UnmarshalJSON(bytes []byte) error
type TransactionsClient ¶
type TransactionsClient struct {
Client *resourcemanager.Client
}
func NewTransactionsClientWithBaseURI ¶
func NewTransactionsClientWithBaseURI(sdkApi sdkEnv.Api) (*TransactionsClient, error)
func (TransactionsClient) ListByInvoice ¶
func (c TransactionsClient) ListByInvoice(ctx context.Context, id BillingAccountInvoiceId) (result ListByInvoiceOperationResponse, err error)
ListByInvoice ...
func (TransactionsClient) ListByInvoiceComplete ¶
func (c TransactionsClient) ListByInvoiceComplete(ctx context.Context, id BillingAccountInvoiceId) (ListByInvoiceCompleteResult, error)
ListByInvoiceComplete retrieves all the results into a single object
func (TransactionsClient) ListByInvoiceCompleteMatchingPredicate ¶
func (c TransactionsClient) ListByInvoiceCompleteMatchingPredicate(ctx context.Context, id BillingAccountInvoiceId, predicate TransactionOperationPredicate) (result ListByInvoiceCompleteResult, err error)
ListByInvoiceCompleteMatchingPredicate retrieves all the results and then applies the predicate