Skip to content

Commit

Permalink
thunderpay-api: billing[catalog(BillingPeriod)]
Browse files Browse the repository at this point in the history
  • Loading branch information
krishpranav committed Jan 19, 2025
1 parent 96eb5fd commit 7bfebb1
Showing 1 changed file with 36 additions and 0 deletions.
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;
}

0 comments on commit 7bfebb1

Please sign in to comment.