Smartswitch
|
The interface to manipulate with the partner Company. More...
defined in <Company.ice>
interface Company extends Smartswitch::Destroyable { ... }
Operations | |
Billing::CurrencyAmountSequence | getBalance (CompanyBalance which) throws AccessException |
Obtain the current Company balance. More... | |
idempotent long | getId () |
Obtain the unique constant ID of a Company. More... | |
idempotent string | getName () throws AccessException |
Obtain the name of a Company. More... | |
bool | isActivated () |
Check if the Company is currently active. More... | |
bool | refill (ApplyToBalance apply, Billing::Service *service, Billing::CurrencyAmount amount) throws AccessException |
Refill the Company balance. More... | |
void | setActivated (bool activated) |
Activate the Company. More... | |
bool | writeOff (ApplyToBalance apply, Billing::Service *service, Billing::CurrencyAmount amount) throws AccessException |
Write-off from the Company balance. More... | |
Operations inherited from Smartswitch::Destroyable | |
void | destroy () |
Destroy the proxy entity at the Smartswitch side. More... | |
The interface to manipulate with the partner Company.
Billing::CurrencyAmountSequence getBalance | ( | CompanyBalance | which | ) | throws AccessException |
idempotent string getName | ( | ) | throws AccessException |
bool isActivated | ( | ) |
Check if the Company is currently active.
true
if the Company is activated.bool refill | ( | ApplyToBalance | apply, |
Billing::Service * | service, | ||
Billing::CurrencyAmount | amount | ||
) | throws AccessException |
void setActivated | ( | bool | activated | ) |
Activate the Company.
When the Company is activated, we may perform periodical write-offs of a subscriber fee (if configured).
When the Company is deactivated, we will block the services provision.
bool writeOff | ( | ApplyToBalance | apply, |
Billing::Service * | service, | ||
Billing::CurrencyAmount | amount | ||
) | throws AccessException |