Smartswitch
Company.ice
Go to the documentation of this file.
1 #pragma once
2 
3 [["python:pkgdir:Smartswitch/Peer"]]
4 
5 #include <Config.ice>
6 #include <Glacier2/Session.ice>
7 #include <Common.ice>
8 #include <Destroyable.ice>
9 #include <AccessException.ice>
10 #ifdef CONFIG_BILLING
12 #include <Billing/Service.ice>
13 #endif
14 
15 module Smartswitch
16 {
17  module Peer
18  {
23  {
25  Our,
27  };
28 
33  {
34  Their,
35  Our,
36  };
37 
41  interface Company extends Destroyable
42  {
48  idempotent long getId();
49 
55  idempotent string getName() throws AccessException;
56 
65  void setActivated(bool activated);
66 
74  bool isActivated();
75 
76 #ifdef CONFIG_BILLING
77 
85 
95  bool refill(ApplyToBalance apply,
96  Billing::Service* service,
98 
108  bool writeOff(ApplyToBalance apply,
109  Billing::Service* service,
111 #endif
112  };
113  };
114 };
This interface allows to destroy a proxy entity at the Smartswitch side.
Definition: Destroyable.ice:12
CompanyBalance
Selects type of a Company balance.
Definition: Company.ice:22
ApplyToBalance
Selects type of a Company balance to which to apply a Transaction.
Definition: Company.ice:32
Definition: AccessException.ice:7
Their balance - Our balance.
Definition: Company.ice:26
The interface to manipulate with the partner Company.
Definition: Company.ice:41
This interface allows to manipulate a Service.
Definition: Service.ice:19
Thrown when a user tries perform an action which is not allowed for him.
Definition: AccessException.ice:20
The struct defines an amount of money in a given Currency.
Definition: CurrencyAmount.ice:16
sequence< CurrencyAmount > CurrencyAmountSequence
Definition: CurrencyAmount.ice:21
Our balance at Company side.
Definition: Company.ice:25
The balance of a Company at our side.
Definition: Company.ice:24