Class EstimatedFuturePayment
java.lang.Object
com.broadleafcommerce.cartoperation.service.provider.domain.EstimatedFuturePayment
- All Implemented Interfaces:
Serializable
Describes the timing & amount of future subscription payments.
- Since:
- Cart Operation Service 2.3.0, Release Train 2.3.0
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanjavax.money.MonetaryAmountAmount due on the payment schedule date.The date on which the customer is expected to be billed.javax.money.MonetaryAmountFor edits, upgrades, and downgrades, the system has partial credits to the prorated amount that the customer already paid.A list ofSubscriptionPriceItemDetailsdescribing the individual item prices that contributed to the overallgetAmount().The date describing the end of the billing period that is being billed for.The period number of the billing period.The date describing the beginning of the billing period that is being billed for.javax.money.MonetaryAmountPrior to an upgrade, downgrade, or edit, the system may have prior unbilled charges that will be part of the next invoice.javax.money.MonetaryAmountProrated amount for this item (for new, this would match the amount)inthashCode()voidsetAmount(javax.money.MonetaryAmount amount) Amount due on the payment schedule date.voidsetBillDate(Instant billDate) The date on which the customer is expected to be billed.voidsetCreditedAmount(javax.money.MonetaryAmount creditedAmount) For edits, upgrades, and downgrades, the system has partial credits to the prorated amount that the customer already paid.voidsetItemDetails(List<SubscriptionItemPriceDetail> itemDetails) A list ofSubscriptionPriceItemDetailsdescribing the individual item prices that contributed to the overallgetAmount().voidsetPeriodEndDate(Instant periodEndDate) The date describing the end of the billing period that is being billed for.voidsetPeriodNumber(Integer periodNumber) The period number of the billing period.voidsetPeriodStartDate(Instant periodStartDate) The date describing the beginning of the billing period that is being billed for.voidsetPriorUnbilledAmount(javax.money.MonetaryAmount priorUnbilledAmount) Prior to an upgrade, downgrade, or edit, the system may have prior unbilled charges that will be part of the next invoice.voidsetProratedAmount(javax.money.MonetaryAmount proratedAmount) Prorated amount for this item (for new, this would match the amount)toString()
-
Constructor Details
-
EstimatedFuturePayment
public EstimatedFuturePayment()
-
-
Method Details
-
getPeriodNumber
The period number of the billing period. -
getBillDate
The date on which the customer is expected to be billed. -
getPeriodStartDate
The date describing the beginning of the billing period that is being billed for. -
getPeriodEndDate
The date describing the end of the billing period that is being billed for. -
getAmount
public javax.money.MonetaryAmount getAmount()Amount due on the payment schedule date. Equal togetProratedAmount()+getPriorUnbilledAmount()-getCreditedAmount(). -
getProratedAmount
public javax.money.MonetaryAmount getProratedAmount()Prorated amount for this item (for new, this would match the amount) -
getCreditedAmount
public javax.money.MonetaryAmount getCreditedAmount()For edits, upgrades, and downgrades, the system has partial credits to the prorated amount that the customer already paid. Typically only impacts the first period in the estimatedFuturePaymentsList. For example, consider a customer who is upgrading from 10 to 20 licenses at $1 each half-way through a 30 day month. The user prorated amount would be $10 for 20 licenses. This user has already partially paid for 10 of the licenses, so they will be due a credit of $5 toward the amount. -
getPriorUnbilledAmount
public javax.money.MonetaryAmount getPriorUnbilledAmount()Prior to an upgrade, downgrade, or edit, the system may have prior unbilled charges that will be part of the next invoice. In this case, the user will owe this in addition to the prorated charges for the changes being made. Typically only impacts the first period in the estimatedFuturePaymentsList. -
getItemDetails
A list ofSubscriptionPriceItemDetailsdescribing the individual item prices that contributed to the overallgetAmount(). -
setPeriodNumber
The period number of the billing period. -
setBillDate
The date on which the customer is expected to be billed. -
setPeriodStartDate
The date describing the beginning of the billing period that is being billed for. -
setPeriodEndDate
The date describing the end of the billing period that is being billed for. -
setAmount
public void setAmount(javax.money.MonetaryAmount amount) Amount due on the payment schedule date. Equal togetProratedAmount()+getPriorUnbilledAmount()-getCreditedAmount(). -
setProratedAmount
public void setProratedAmount(javax.money.MonetaryAmount proratedAmount) Prorated amount for this item (for new, this would match the amount) -
setCreditedAmount
public void setCreditedAmount(javax.money.MonetaryAmount creditedAmount) For edits, upgrades, and downgrades, the system has partial credits to the prorated amount that the customer already paid. Typically only impacts the first period in the estimatedFuturePaymentsList. For example, consider a customer who is upgrading from 10 to 20 licenses at $1 each half-way through a 30 day month. The user prorated amount would be $10 for 20 licenses. This user has already partially paid for 10 of the licenses, so they will be due a credit of $5 toward the amount. -
setPriorUnbilledAmount
public void setPriorUnbilledAmount(javax.money.MonetaryAmount priorUnbilledAmount) Prior to an upgrade, downgrade, or edit, the system may have prior unbilled charges that will be part of the next invoice. In this case, the user will owe this in addition to the prorated charges for the changes being made. Typically only impacts the first period in the estimatedFuturePaymentsList. -
setItemDetails
A list ofSubscriptionPriceItemDetailsdescribing the individual item prices that contributed to the overallgetAmount(). -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-