Click or drag to resize

AzureHelperCreateAzureUsageInvoice Method (Account, ListAzureMarkupData, DictionaryGuid, CreateAzureInvoiceConfig, DateTime, DateTime, IAtomiaBillingApi, Guid)

A method that creates an invoice based on collected usage from Azure.

Namespace:  Atomia.Billing.Core.Sdk.BusinessLogic
Assembly:  Atomia.Billing.Core.Sdk (in Atomia.Billing.Core.Sdk.dll) Version: 18.10.7096.28998
Syntax
public static Invoice CreateAzureUsageInvoice(
	Account customerAccount,
	List<AzureMarkupData> markups,
	Dictionary<Guid, CreateAzureInvoiceConfig> configuredResellers,
	DateTime startTime,
	DateTime endTime,
	IAtomiaBillingApi atomiaBillingApi,
	Guid neededAtomiaSubscriptionId
)

Parameters

customerAccount
Type: Account
Atomia customer account.
markups
Type: System.Collections.GenericListAzureMarkupData
List of defined Azure markups.
configuredResellers
Type: System.Collections.GenericDictionaryGuid, CreateAzureInvoiceConfig
Dictionary where key is reseller guid and value is reseller's Azure billing period day (if not defined, it considered as 1).
startTime
Type: SystemDateTime
Beginning of the usage period for invoicing.
endTime
Type: SystemDateTime
End of the usage period for invoicing.
atomiaBillingApi
Type: Atomia.Billing.Core.SdkIAtomiaBillingApi
Atomia Billing Api object.
neededAtomiaSubscriptionId
Type: SystemGuid
If specified, invoice will be returned only for that subscription

Return Value

Type: Invoice
Invoice for Azure usage for the given period.
Exceptions
ExceptionCondition
Exception
See Also