Package org.killbill.billing.jaxrs.json
Class SubscriptionJson
- java.lang.Object
-
- org.killbill.billing.jaxrs.json.JsonBase
-
- org.killbill.billing.jaxrs.json.SubscriptionJson
-
public class SubscriptionJson extends JsonBase
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSubscriptionJson.EventSubscriptionJson
-
Constructor Summary
Constructors Constructor Description SubscriptionJson(UUID accountId, UUID bundleId, String bundleExternalKey, UUID subscriptionId, String externalKey, org.joda.time.DateTime startDate, String productName, ProductCategory productCategory, BillingPeriod billingPeriod, PhaseType phaseType, String priceList, String planName, Entitlement.EntitlementState state, Entitlement.EntitlementSourceType sourceType, org.joda.time.DateTime cancelledDate, org.joda.time.LocalDate chargedThroughDate, org.joda.time.DateTime billingStartDate, org.joda.time.DateTime billingEndDate, Integer billCycleDayLocal, Integer quantity, List<SubscriptionJson.EventSubscriptionJson> events, List<PhasePriceJson> priceOverrides, List<PhasePriceJson> prices, List<AuditLogJson> auditLogs)SubscriptionJson(Subscription subscription, Currency currency, AccountAuditLogs accountAuditLogs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)UUIDgetAccountId()IntegergetBillCycleDayLocal()org.joda.time.DateTimegetBillingEndDate()BillingPeriodgetBillingPeriod()org.joda.time.DateTimegetBillingStartDate()StringgetBundleExternalKey()UUIDgetBundleId()org.joda.time.DateTimegetCancelledDate()org.joda.time.LocalDategetChargedThroughDate()List<SubscriptionJson.EventSubscriptionJson>getEvents()StringgetExternalKey()PhaseTypegetPhaseType()StringgetPlanName()StringgetPriceList()List<PhasePriceJson>getPriceOverrides()List<PhasePriceJson>getPrices()ProductCategorygetProductCategory()StringgetProductName()IntegergetQuantity()Entitlement.EntitlementSourceTypegetSourceType()org.joda.time.DateTimegetStartDate()Entitlement.EntitlementStategetState()UUIDgetSubscriptionId()inthashCode()StringtoString()-
Methods inherited from class org.killbill.billing.jaxrs.json.JsonBase
getAuditLogs, propertiesToList, propertiesToMap, toAuditLogJson, toPluginPropertyJson, toString
-
-
-
-
Constructor Detail
-
SubscriptionJson
public SubscriptionJson(@Nullable UUID accountId, @Nullable UUID bundleId, @Nullable String bundleExternalKey, @Nullable UUID subscriptionId, @Nullable String externalKey, @Nullable org.joda.time.DateTime startDate, @Nullable String productName, @Nullable ProductCategory productCategory, @Nullable BillingPeriod billingPeriod, @Nullable PhaseType phaseType, @Nullable String priceList, @Nullable String planName, @Nullable Entitlement.EntitlementState state, @Nullable Entitlement.EntitlementSourceType sourceType, @Nullable org.joda.time.DateTime cancelledDate, @Nullable org.joda.time.LocalDate chargedThroughDate, @Nullable org.joda.time.DateTime billingStartDate, @Nullable org.joda.time.DateTime billingEndDate, @Nullable Integer billCycleDayLocal, @Nullable Integer quantity, @Nullable List<SubscriptionJson.EventSubscriptionJson> events, List<PhasePriceJson> priceOverrides, List<PhasePriceJson> prices, @Nullable List<AuditLogJson> auditLogs)
-
SubscriptionJson
public SubscriptionJson(Subscription subscription, @Nullable Currency currency, @Nullable AccountAuditLogs accountAuditLogs) throws CatalogApiException
- Throws:
CatalogApiException
-
-
Method Detail
-
getAccountId
public UUID getAccountId()
-
getBundleId
public UUID getBundleId()
-
getSubscriptionId
public UUID getSubscriptionId()
-
getBundleExternalKey
public String getBundleExternalKey()
-
getExternalKey
public String getExternalKey()
-
getStartDate
public org.joda.time.DateTime getStartDate()
-
getProductName
public String getProductName()
-
getProductCategory
public ProductCategory getProductCategory()
-
getBillingPeriod
public BillingPeriod getBillingPeriod()
-
getPhaseType
public PhaseType getPhaseType()
-
getPriceList
public String getPriceList()
-
getPlanName
public String getPlanName()
-
getState
public Entitlement.EntitlementState getState()
-
getSourceType
public Entitlement.EntitlementSourceType getSourceType()
-
getCancelledDate
public org.joda.time.DateTime getCancelledDate()
-
getChargedThroughDate
public org.joda.time.LocalDate getChargedThroughDate()
-
getBillingStartDate
public org.joda.time.DateTime getBillingStartDate()
-
getBillingEndDate
public org.joda.time.DateTime getBillingEndDate()
-
getBillCycleDayLocal
public Integer getBillCycleDayLocal()
-
getQuantity
public Integer getQuantity()
-
getEvents
public List<SubscriptionJson.EventSubscriptionJson> getEvents()
-
getPriceOverrides
public List<PhasePriceJson> getPriceOverrides()
-
getPrices
public List<PhasePriceJson> getPrices()
-
-