Click or drag to resize

AzureHelperCreateAzureUsageInvoice Method (Account, ListAzureMarkupData, DictionaryGuid, CreateAzureInvoiceConfig, DateTime, DateTime, IAtomiaBillingApi, Guid, ListGuid, ListAzureUsageData, ListAzureUsageData, ListGuid, 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,
	List<Guid> completedAzureSubIds,
	List<AzureUsageData> azureUsage,
	out List<AzureUsageData> invoicedUsage,
	out List<Guid> uncompletedAzureSubIds,
	out Guid rateCardResellerId
)

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
completedAzureSubIds
Type: System.Collections.GenericListGuid

[Missing <param name="completedAzureSubIds"/> documentation for "M:Atomia.Billing.Core.Sdk.BusinessLogic.AzureHelper.CreateAzureUsageInvoice(Atomia.Account.Lib.BusinessObjects.Account,System.Collections.Generic.List{Atomia.Billing.Core.DataLayer.Entities.AzureMarkupData},System.Collections.Generic.Dictionary{System.Guid,Atomia.Billing.Core.Sdk.BusinessLogic.CreateAzureInvoiceConfig},System.DateTime,System.DateTime,Atomia.Billing.Core.Sdk.IAtomiaBillingApi,System.Guid,System.Collections.Generic.List{System.Guid},System.Collections.Generic.List{Atomia.Billing.Core.DataLayer.Entities.AzureUsageData},System.Collections.Generic.List{Atomia.Billing.Core.DataLayer.Entities.AzureUsageData}@,System.Collections.Generic.List{System.Guid}@,System.Guid@)"]

azureUsage
Type: System.Collections.GenericListAzureUsageData

[Missing <param name="azureUsage"/> documentation for "M:Atomia.Billing.Core.Sdk.BusinessLogic.AzureHelper.CreateAzureUsageInvoice(Atomia.Account.Lib.BusinessObjects.Account,System.Collections.Generic.List{Atomia.Billing.Core.DataLayer.Entities.AzureMarkupData},System.Collections.Generic.Dictionary{System.Guid,Atomia.Billing.Core.Sdk.BusinessLogic.CreateAzureInvoiceConfig},System.DateTime,System.DateTime,Atomia.Billing.Core.Sdk.IAtomiaBillingApi,System.Guid,System.Collections.Generic.List{System.Guid},System.Collections.Generic.List{Atomia.Billing.Core.DataLayer.Entities.AzureUsageData},System.Collections.Generic.List{Atomia.Billing.Core.DataLayer.Entities.AzureUsageData}@,System.Collections.Generic.List{System.Guid}@,System.Guid@)"]

invoicedUsage
Type: System.Collections.GenericListAzureUsageData
Return parameter, all usages that are on the return invoice.
uncompletedAzureSubIds
Type: System.Collections.GenericListGuid

[Missing <param name="uncompletedAzureSubIds"/> documentation for "M:Atomia.Billing.Core.Sdk.BusinessLogic.AzureHelper.CreateAzureUsageInvoice(Atomia.Account.Lib.BusinessObjects.Account,System.Collections.Generic.List{Atomia.Billing.Core.DataLayer.Entities.AzureMarkupData},System.Collections.Generic.Dictionary{System.Guid,Atomia.Billing.Core.Sdk.BusinessLogic.CreateAzureInvoiceConfig},System.DateTime,System.DateTime,Atomia.Billing.Core.Sdk.IAtomiaBillingApi,System.Guid,System.Collections.Generic.List{System.Guid},System.Collections.Generic.List{Atomia.Billing.Core.DataLayer.Entities.AzureUsageData},System.Collections.Generic.List{Atomia.Billing.Core.DataLayer.Entities.AzureUsageData}@,System.Collections.Generic.List{System.Guid}@,System.Guid@)"]

rateCardResellerId
Type: SystemGuid

[Missing <param name="rateCardResellerId"/> documentation for "M:Atomia.Billing.Core.Sdk.BusinessLogic.AzureHelper.CreateAzureUsageInvoice(Atomia.Account.Lib.BusinessObjects.Account,System.Collections.Generic.List{Atomia.Billing.Core.DataLayer.Entities.AzureMarkupData},System.Collections.Generic.Dictionary{System.Guid,Atomia.Billing.Core.Sdk.BusinessLogic.CreateAzureInvoiceConfig},System.DateTime,System.DateTime,Atomia.Billing.Core.Sdk.IAtomiaBillingApi,System.Guid,System.Collections.Generic.List{System.Guid},System.Collections.Generic.List{Atomia.Billing.Core.DataLayer.Entities.AzureUsageData},System.Collections.Generic.List{Atomia.Billing.Core.DataLayer.Entities.AzureUsageData}@,System.Collections.Generic.List{System.Guid}@,System.Guid@)"]

Return Value

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