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
)
Public Shared Function CreateAzureUsageInvoice (
customerAccount As Account,
markups As List(Of AzureMarkupData),
configuredResellers As Dictionary(Of Guid, CreateAzureInvoiceConfig),
startTime As DateTime,
endTime As DateTime,
atomiaBillingApi As IAtomiaBillingApi,
neededAtomiaSubscriptionId As Guid
) As Invoice
public:
static Invoice^ CreateAzureUsageInvoice(
Account^ customerAccount,
List<AzureMarkupData^>^ markups,
Dictionary<Guid, CreateAzureInvoiceConfig^>^ configuredResellers,
DateTime startTime,
DateTime endTime,
IAtomiaBillingApi^ atomiaBillingApi,
Guid neededAtomiaSubscriptionId
)
static member CreateAzureUsageInvoice :
customerAccount : Account *
markups : List<AzureMarkupData> *
configuredResellers : Dictionary<Guid, CreateAzureInvoiceConfig> *
startTime : DateTime *
endTime : DateTime *
atomiaBillingApi : IAtomiaBillingApi *
neededAtomiaSubscriptionId : Guid -> Invoice
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:
InvoiceInvoice for Azure usage for the given period.
Exceptions See Also