public MockPlanPhase(@Nullable final MockInternationalPrice recurringPrice, @Nullable final MockInternationalPrice fixedPrice, final BillingPeriod billingPeriod, final PhaseType phaseType) { setPhaseType(phaseType); setDuration(new DefaultDuration().setNumber(-1).setUnit(TimeUnit.UNLIMITED)); setPlan(new MockPlan(this)); setFixed(new MockFixed(fixedPrice)); setRecurring(new MockRecurring(billingPeriod, recurringPrice)); }
public MockPlanPhase( final BillingPeriod billingPeriod, final PhaseType type, final DefaultDuration duration, final DefaultInternationalPrice recurringPrice, final DefaultInternationalPrice fixedPrice) { setPhaseType(type); setDuration(duration); setFixed(new MockFixed(fixedPrice)); setRecurring(new MockRecurring(billingPeriod, recurringPrice).setPhase(this)); }
public MockPlanPhase(final MockPlan mockPlan) { setPhaseType(PhaseType.EVERGREEN); setDuration(new DefaultDuration().setNumber(-1).setUnit(TimeUnit.UNLIMITED)); setPlan(mockPlan); setFixed(new MockFixed(null)); setRecurring(new MockRecurring(BillingPeriod.MONTHLY, new MockInternationalPrice())); }
public MockPlanPhase(final Plan plan, final PhaseType phaseType) { setPhaseType(phaseType); setDuration(new DefaultDuration().setNumber(-1).setUnit(TimeUnit.UNLIMITED)); setPlan(plan); setFixed(new MockFixed(null)); setRecurring(new MockRecurring(BillingPeriod.MONTHLY, new MockInternationalPrice())); } }
public MockPlanPhase(@Nullable final MockInternationalPrice recurringPrice, @Nullable final MockInternationalPrice fixedPrice, final BillingPeriod billingPeriod, final PhaseType phaseType) { setPhaseType(phaseType); setDuration(new DefaultDuration().setNumber(-1).setUnit(TimeUnit.UNLIMITED)); setPlan(new MockPlan(this)); setFixed(new MockFixed(fixedPrice)); setRecurring(new MockRecurring(billingPeriod, recurringPrice)); }
public MockPlanPhase( final BillingPeriod billingPeriod, final PhaseType type, final DefaultDuration duration, final DefaultInternationalPrice recurringPrice, final DefaultInternationalPrice fixedPrice) { setPhaseType(type); setDuration(duration); setFixed(new MockFixed(fixedPrice)); setRecurring(new MockRecurring(billingPeriod, recurringPrice).setPhase(this)); }
public MockPlanPhase(final MockPlan mockPlan) { setPhaseType(PhaseType.EVERGREEN); setDuration(new DefaultDuration().setNumber(-1).setUnit(TimeUnit.UNLIMITED)); setPlan(mockPlan); setFixed(new MockFixed(null)); setRecurring(new MockRecurring(BillingPeriod.MONTHLY, new MockInternationalPrice())); }
public MockPlanPhase(final Plan plan, final PhaseType phaseType) { setPhaseType(phaseType); setDuration(new DefaultDuration().setNumber(-1).setUnit(TimeUnit.UNLIMITED)); setPlan(plan); setFixed(new MockFixed(null)); setRecurring(new MockRecurring(BillingPeriod.MONTHLY, new MockInternationalPrice())); } }