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
)
Public Shared Function CreateInvoice (
subscription As Subscription,
order As Order,
penaltyRate As Decimal,
atomiaBillingApi As IAtomiaBillingApi,
accountHash As Dictionary(Of Guid, Account),
accountDetailsHash As Dictionary(Of Guid, AccountDetails)
) As Invoice
public:
static Invoice^ CreateInvoice(
Subscription^ subscription,
Order^ order,
Decimal penaltyRate,
IAtomiaBillingApi^ atomiaBillingApi,
Dictionary<Guid, Account^>^ accountHash,
Dictionary<Guid, AccountDetails^>^ accountDetailsHash
)
static member CreateInvoice :
subscription : Subscription *
order : Order *
penaltyRate : decimal *
atomiaBillingApi : IAtomiaBillingApi *
accountHash : Dictionary<Guid, Account> *
accountDetailsHash : Dictionary<Guid, AccountDetails> -> Invoice
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:
InvoiceCreated invoice.
See Also