Package io.meeds.billing.utils
Class Utils
java.lang.Object
io.meeds.billing.utils.Utils
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic HubBillingPlanfromEntity(HubBillingPlanEntity entity) static HubBillingSettingsstatic DategetCurrentPeriodEndDate(com.stripe.model.Subscription subscription) static com.stripe.model.PlangetPlanFromSubscription(com.stripe.model.Subscription subscription) static StringgetSpaceDisplayName(long spaceId) getSpaceManagers(long spaceId) static StringgetSubscriptionItemId(com.stripe.model.Subscription subscription) static longgetSubscriptionQuantity(com.stripe.model.Subscription subscription) static StringgetTemplatePriceId(long templateId) static StringgetTemplateTrialDays(long templateId) static HubBillingPlanEntitytoEntity(HubBillingPlan plan) static HubBillingSettingsEntity
-
Field Details
-
PUBLIC_KEY_PROPERTY
- See Also:
-
PRICING_TABLE_ID_PROPERTY
- See Also:
-
BILLING_ENABLED_PROPERTY
- See Also:
-
SUBSCRIPTION_RENEWAL
- See Also:
-
TRIAL_ENDING
- See Also:
-
TRIAL_EXPIRED
- See Also:
-
SUBSCRIPTION_PAST_DUE
- See Also:
-
HUB_USERS_LIMIT_EXCEEDED
- See Also:
-
HUB_PLAN_CHANGED
- See Also:
-
SUBSCRIPTION_CANCELED
- See Also:
-
-
Method Details
-
fromEntity
-
toEntity
-
getCurrentPeriodEndDate
-
getSubscriptionQuantity
public static long getSubscriptionQuantity(com.stripe.model.Subscription subscription) -
getSubscriptionItemId
-
getSpaceManagers
-
getSpaceDisplayName
-
fromEntity
-
toEntity
-
getPlanFromSubscription
public static com.stripe.model.Plan getPlanFromSubscription(com.stripe.model.Subscription subscription) -
getAdministrators
-
getTemplatePriceId
-
getTemplateTrialDays
-