-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
thunderpay-api: billing[catalog(BillingPeriod)]
- Loading branch information
1 parent
96eb5fd
commit 7bfebb1
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
36 changes: 36 additions & 0 deletions
36
thunderpay-api/src/main/java/org/thunderpay/billing/catalog/api/BillingPeriod.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/** | ||
* @file BillingPeriod.java | ||
* @author Krisna Pranav | ||
* @brief Billing Period | ||
* @version 1.0 | ||
* @date 2025-01-19 | ||
* | ||
* @copyright Copyright (c) 2024 ThunderPayment Developers, Krisna Pranav | ||
* | ||
*/ | ||
|
||
package org.thunderpay.billing.catalog.api; | ||
|
||
import org.joda.time.Period; | ||
|
||
public enum BillingPeriod { | ||
DAILY(Period.days(1)), | ||
WEEKLY(Period.weeks(1)), | ||
BIWEEKLY(Period.weeks(2)), | ||
THIRTY_DAYS(Period.days(30)), | ||
THIRTY_ONE_DAYS(Period.days(31)), | ||
SIXTY_DAYS(Period.days(60)), | ||
NINETY_DAYS(Period.days(90)), | ||
MONTHLY(Period.months(1)), | ||
BIMESTRIAL(Period.months(2)), | ||
QUARTERLY(Period.months(3)), | ||
TRIANNUAL(Period.months(4)), | ||
BIANNUAL(Period.months(6)), | ||
ANNUAL(Period.years(1)), | ||
SESQUIENNIAL(Period.months(18)), | ||
BIENNIAL(Period.years(2)), | ||
TRIENNIAL(Period.years(3)), | ||
NO_BILLING_PERIOD(Period.ZERO); | ||
|
||
private final Period period; | ||
} |