Click or drag to resize

InvoiceHelperCreateInvoice Method (Subscription, Order, Decimal, IAtomiaBillingApi, DictionaryGuid, Account, DictionaryGuid, AccountDetails)

Creates the invoice from the specified subscription and with specified penalty rate.

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 CreateInvoice(
	Subscription subscription,
	Order order,
	decimal penaltyRate,
	IAtomiaBillingApi atomiaBillingApi,
	Dictionary<Guid, Account> accountHash,
	Dictionary<Guid, AccountDetails> accountDetailsHash
)

Parameters

subscription
Type: Atomia.Billing.Core.Sdk.BusinessObjectsSubscription
The subscription.
order
Type: Atomia.Billing.Core.Sdk.BusinessObjectsOrder
The order.
penaltyRate
Type: SystemDecimal
Invoice penalty rate.
atomiaBillingApi
Type: Atomia.Billing.Core.SdkIAtomiaBillingApi
The Atomia Billing API instance.
accountHash
Type: System.Collections.GenericDictionaryGuid, Account
A dictionary of accounts keyed by id, if the account needed isn't here (or it the parameter is null) then we look it up.
accountDetailsHash
Type: System.Collections.GenericDictionaryGuid, AccountDetails
A dictionary of account details keyed by id of account, if the details needed isn't here (or it the parameter is null) then we look it up.

Return Value

Type: Invoice
Created invoice.
See Also