-
- All Implemented Interfaces:
public class CostInfo.Builder
-
-
Field Summary
Fields Modifier and Type Field Description private StringannualPercentageRateprivate List<FeeInfo>feeInfoprivate StringtotalPlanCostprivate StringtotalFeesprivate StringtotalUpfrontFeesprivate StringtotalRecurringFeesprivate InstallmentInfofirstInstallmentprivate InstallmentInfolastInstallmentprivate Stringcurrency
-
Method Summary
Modifier and Type Method Description CostInfo.BuildersetAnnualPercentageRate(String annualPercentageRate)Sets the annual percentage rate for the installment plan. CostInfo.BuildersetFeeInfo(@Nullable() List<FeeInfo> feeInfo)Sets the list of fee information. CostInfo.BuildersetTotalPlanCost(String totalPlanCost)Sets the total plan cost. CostInfo.BuildersetTotalFees(String totalFees)Sets the total fees. CostInfo.BuildersetTotalUpfrontFees(String totalUpfrontFees)Sets the total upfront fees. CostInfo.BuildersetTotalRecurringFees(String totalRecurringFees)Sets the total recurring fees. CostInfo.BuildersetFirstInstallment(@Nullable() InstallmentInfo firstInstallment)Sets the first installment information. CostInfo.BuildersetLastInstallment(@Nullable() InstallmentInfo lastInstallment)Sets the last installment information. CostInfo.BuildersetCurrency(@Nullable() String currency)Sets the currency of the cost information. CostInfobuild()Creates a new instance of with the provided values. -
-
Method Detail
-
setAnnualPercentageRate
CostInfo.Builder setAnnualPercentageRate(String annualPercentageRate)
Sets the annual percentage rate for the installment plan.
- Parameters:
annualPercentageRate- the annual percentage rate, must be a positive integer.
-
setFeeInfo
CostInfo.Builder setFeeInfo(@Nullable() List<FeeInfo> feeInfo)
Sets the list of fee information.
- Parameters:
feeInfo- the list of fee information, or null if not set.
-
setTotalPlanCost
CostInfo.Builder setTotalPlanCost(String totalPlanCost)
Sets the total plan cost.
- Parameters:
totalPlanCost- the total plan cost
-
setTotalFees
CostInfo.Builder setTotalFees(String totalFees)
Sets the total fees.
- Parameters:
totalFees- the total fees
-
setTotalUpfrontFees
CostInfo.Builder setTotalUpfrontFees(String totalUpfrontFees)
Sets the total upfront fees.
- Parameters:
totalUpfrontFees- the total upfront fees
-
setTotalRecurringFees
CostInfo.Builder setTotalRecurringFees(String totalRecurringFees)
Sets the total recurring fees.
- Parameters:
totalRecurringFees- the total recurring fees
-
setFirstInstallment
CostInfo.Builder setFirstInstallment(@Nullable() InstallmentInfo firstInstallment)
Sets the first installment information.
- Parameters:
firstInstallment- the first installment information, or null if not set.
-
setLastInstallment
CostInfo.Builder setLastInstallment(@Nullable() InstallmentInfo lastInstallment)
Sets the last installment information.
- Parameters:
lastInstallment- the last installment information, or null if not set.
-
setCurrency
CostInfo.Builder setCurrency(@Nullable() String currency)
Sets the currency of the cost information.
- Parameters:
currency- the currency, or null if not set.
-
-
-
-