Uploaded image for project: 'Blesta Core'
  1. Blesta Core
  2. CORE-5210

Add support for grace periods and redemption periods

    Details

    • Type: Epic
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 5.10.0
    • Fix Version/s: 5.12.0-b1
    • Component/s: Plugins
    • Labels:
      None
    • Epic Name:
      Domain Manager: Add support for domain grace and redemption periods

      Description

      Domains have what are called Grace and Redemption Periods.

      Typically, if a domain expires, the name servers are updated and a domain expired page is shown with most registrars. Typically, within 30 days of the expiration, a domain can be renewed for the same price. 31-60 days after expiration, a domain can be renewed for an additional redemption price. After 60 days past expiration, the domain cannot be renewed.

      This will require several updates.

      Grace & Redemption Periods and Pricing

      UI Changes

      Under Packages > Domain Options > TLD Pricing, when you click Edit next to a TLD you see a pricing grid for 1-10 years. At the bottom of the pricing grid, we want to add the following 4 fields, categorized by Grace Period and Redemption Period:

      Grace Period

      1. of days (default to 30) and price (default to 0)

      Redemption Period

      1. of days (default to 30), and price (default to 0)

      (Note: The migrator should set both grace and redemption periods to 30 days as this is pretty consistent across most TLDs)

      Actions on status transition

      When a domain enters the grace period as set for the TLD, the price, if any, should be applied to the existing invoice for the domain. It's probably sufficient to update the current price by adding the price set for the grace period.

      When a domain enters the redemption period as set for the TLD (the redemption period is in ADDITION to the grace period, so if both are 30 days, redemption is 31-60 days from domain expiration), we need to take a couple actions:

      Update the invoice to apply the redemption price. (Current price + (Redemption Price - Grace Period Price). So if the redemption price is 80, the net effect would be 80+original domain price.

      Additionally, the domain needs to transition to a NEW STATUS called "Redemption". The Redemption status should appear on both Staff and Client area Domains widgets.

      If the domain is past the redemption period, the following should happen, in this order:

      1. Transition to "Canceled"
      2. Remove the invoice line item for the domain. If it is the only line item on the invoice, the invoice should be voided.

      Note! Make sure that the domain will not be attempted to be renewed with no invoice holding it up. This is why we transition to Canceled before adjusting the invoice.

      The goal here is that we do not want clients to be able to pay an invoice for a domain that can no longer be renewed.

      Bulk update for grace and redemption period

      Under Packages > Domain Options: TLD Pricing add a new bulk option

      Add a new bulk option to update Grace and Redemption Period and Grace and Redemption pricing. It should have 5 fields:

      • Dropdown for Currency (With all installed currencies, default to default currency)
      • Grace Period Days (Input box)
      • Price (Input box, default to 0)
      • Redemption Period Days (Input box)
      • Price (Input box, default to 0)

      This will allow bulk updating of grace/redemption periods and pricing, as most TLDs will likely be the same.

        Issues in Epic

        There are no issues in this epic.

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              admin Paul Phillips
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: