Share via


About the Billing Adapter System Specific Sample Files

 

Applies To: Windows Azure Pack

This topic provides information about the system specific sample source files for HostBill and WHMCS. For information about the billing adapter core engine, see About the Billing Adapter Core Engine Sample Files.

Billing.HostBill

Contains source code for the HostBill billing system specific implementation. Code in this folder can be used as a template for creating another system’s billing adapter or can be run as is. The code contains the following:

Data Contracts

Classes provided to abstract details of the billing system API responses into .NET objects.

IdentityMapping

Classes in this folder perform identity mapping of the Windows Azure Pack objects (plans, add-ons, and users) to the billing system-specific items. IdentityMappingManager.cs contains the functions that interact with the database to create, manage, and delete identity mappings

HostBillBillingAdapter.cs

Implements the selected methods from the interfaces in the billing adapter engine, specifically NotificationProcessor, NotificationResponder, and PricingResponder.

HostBillClient.cs

Code that interacts with the HostBill API. API calls are based on HostBill API version 4.9.8. For operations where there are no API calls, there is direct access to the HostBill databases instead.

Billing.WHMCS

This folder contains the WHMCS sample source code. Code in this folder can be used as a template for creating another system’s billing adapter or can be run as is.

DataContracts

Classes in this folder define the various objects used by other classes.

IdentityMapping

Classes in this folder perform identity mapping of the Windows Azure Pack objects (plans, add-ons, and users) to the billing system-specific items. IdentityMappingManager.cs contains the functions that interact with the database to create, manage, and delete identity mappings.

WHMCSBillingAdapter.cs

Implements the selected methods from the interfaces in the billing adapter engine, specifically NotificationProcessor and NotificationResponder.

WHMCSClient.cs

Code that directly interacts with the WHMCS API. API calls are based on WHMCS API version 5.2.7. For operations where there are no API calls, there is direct access to the WHMCS databases instead.

See Also

About the Billing Adapter Core Engine Sample Files