public interface ForecastServiceInterface extends Remote
| Modifier and Type | Method and Description |
|---|---|
Forecast |
getForecast(LineItem lineItem)
|
Forecast |
getForecastById(Long lineItemId)
|
Forecast getForecast(LineItem lineItem) throws RemoteException, ApiException
Forecast on a prospective LineItem object.
Valid
values for LineItemSummary.lineItemType are
LineItemType.SPONSORSHIP and LineItemType.STANDARD.
Other
values will result in
ReservationDetailsError.Reason#LINE_ITEM_TYPE_NOT_ALLOWED.lineItem - the target of the forecast. If LineItemSummary.id
is null
or no line item exists with that ID, a forecast is computed
for the
the subject, predicting what would happen if it were added
to the
system. If a line item already exists with LineItemSummary.id,
the
forecast is computed for the subject, predicting what would
happen
if the existing line item's settings were modified to match
the
subject.RemoteExceptionApiExceptionForecast getForecastById(Long lineItemId) throws RemoteException, ApiException
Forecast for an existing LineItem object.
Only
line items having type LineItemType.SPONSORSHIP or
LineItemType.STANDARD are valid. Other types will result in
ReservationDetailsError.Reason#LINE_ITEM_TYPE_NOT_ALLOWED.lineItemId - the ID of a LineItem to run the forecast
on.RemoteExceptionApiExceptionCopyright © 2014. All Rights Reserved.