13 #include "iberbox/config.h" 20 #include <scapix/bridge/object.h> 35 :
public scapix::bridge::object<SubscriptionInfoData>
139 :
public scapix::bridge::object<PaymentMethodInfoData>
151 PMT_DIRECT_DEBIT = 3,
152 PMT_BANK_TRANSFER = 4,
198 uint64_t getExpirationTime()
const;
205 int getStatus()
const;
211 uint64_t mExpirationTime;
216 typedef std::shared_ptr<PaymentInfoData>
PaymentInfo;
223 :
public scapix::bridge::object<PaymentInfoData>
246 std::string getInfo()
const;
251 std::string getSignature()
const;
256 std::string getSignatureVersion()
const;
262 std::string getUrl()
const;
267 std::string mSignature;
268 std::string mSignatureVersion;
273 typedef std::shared_ptr<InvoiceInfoData>
InvoiceInfo;
279 :
public scapix::bridge::object<InvoiceInfoData>
287 uint64_t getCreationTime()
const;
288 std::string getSubject()
const;
294 uint64_t mCreationTime;
295 std::string mSubject;
305 :
public scapix::bridge::object<InvoicingInfoData>
314 std::string getAddress()
const;
315 std::string getAddress2()
const;
316 std::string getNIF()
const;
317 SubscriptionInfo getSubscriptionInfo()
const;
318 uint64_t getRenewTime()
const;
319 bool hasCredit()
const;
320 PaymentMethodInfo getPaymentMethodInfo()
const;
321 InvoiceInfoList getInvoices()
const;
326 std::string mAddress;
327 std::string mAddress2;
329 SubscriptionInfo mSubscriptionInfo;
332 PaymentMethodInfo mPaymentMethod;
333 InvoiceInfoList mInvoices;
virtual ~SubscriptionInfoData()
Destroys the Subscription Info Data object.
Definition: payments.h:277
std::shared_ptr< PaymentMethodInfoData > PaymentMethodInfo
Definition: payments.h:131
Definition: payments.h:303
The iberbox namespace.
Definition: task.h:21
int getTotal() const
Gets the total price of the subscription for the current period.
Backup feature.
Definition: payments.h:57
std::shared_ptr< InvoicingInfoData > InvoicingInfo
Definition: payments.h:300
Monthly subscription.
Definition: payments.h:46
std::shared_ptr< InvoiceInfoDataList > InvoiceInfoList
Definition: payments.h:275
Secret spaces feature.
Definition: payments.h:59
The Payment Info Data class.
Definition: payments.h:221
std::shared_ptr< SubscriptionInfoData > SubscriptionInfo
Definition: payments.h:25
std::string getName() const
Gets the name of the subscription option.
SubscriptionPeriod
The Subscription Period enum.
Definition: payments.h:43
uint32_t getFeatures() const
Gets account features bitmap.
int getDiscount() const
Gets the discount price over the fee of the subscription for the current period.
std::shared_ptr< PaymentInfoData > PaymentInfo
Definition: payments.h:215
uint64_t getStorage() const
Gets the contracted storage with the subscription.
std::vector< InvoiceInfo > InvoiceInfoDataList
Definition: payments.h:274
std::shared_ptr< InvoiceInfoData > InvoiceInfo
Definition: payments.h:272
int getAmount() const
Gets the fee of the subscription for the current period.
FeatureType
The Feature Type enum.
Definition: payments.h:54
PaymentMethodStatus
The Payment Method Status enum.
Definition: payments.h:158
No subscription period.
Definition: payments.h:45
Cloud feature.
Definition: payments.h:58
int getId() const
Gets the identifier of the subscription.
PaymentMethodType
The Payment Method Type enum.
Definition: payments.h:146
Yearly subscription.
Definition: payments.h:47
std::shared_ptr< SubscriptionInfoDataList > SubscriptionInfoList
Definition: payments.h:28
Bmail feature.
Definition: payments.h:56
std::vector< SubscriptionInfo > SubscriptionInfoDataList
Definition: payments.h:27
int getPeriod() const
Gets the subscription period.
The Subscription Info Data class.
Definition: payments.h:33
SubscriptionInfoData()
Constructs a new Subscription Info Data object.
The Payment Info Data class.
Definition: payments.h:137
int getType() const
Gets the type of the subscription.