Package com.rometools.modules.base
Interface Travel
-
- All Superinterfaces:
GlobalInterface,Serializable
- All Known Subinterfaces:
GoogleBase
- All Known Implementing Classes:
GoogleBaseImpl
public interface Travel extends GlobalInterface
This is an interface for the GoogleBase plug in that exposes methods used for travel items.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CurrencyEnumerationgetCurrency()Currency of the price amount for an item.StringgetDeliveryNotes()Additional instructions to explain the item’s delivery process.FloatUnitgetDeliveryRadius()The maximum distance you will deliver an item in any direction.StringgetFromLocation()Starting city and state/country of the trip.StringgetLocation()Location of the property.PaymentTypeEnumeration[]getPaymentAccepted()Acceptable payment methods for item purchases.StringgetPaymentNotes()Additional instructions to explain a payment policy.FloatUnitgetPrice()Price of the item.PriceTypeEnumerationgetPriceType()The type of pricing for the item.IntegergetQuantity()Quantity available.ShippingType[]getShipping()Shipping options available for an item.FloatgetTaxPercent()Tax rate associated with the service.StringgetTaxRegion()Region where tax applies.StringgetToLocation()Destination city and state/country of the trip.DateTimeRangegetTravelDateRange()Departure date and time of the trip.voidsetCurrency(CurrencyEnumeration value)Currency of the price amount for an item.voidsetDeliveryNotes(String deliveryNotes)Additional instructions to explain the item’s delivery process.voidsetDeliveryRadius(FloatUnit deliveryRadius)The maximum distance you will deliver an item in any direction.voidsetFromLocation(String fromLocation)Starting city and state/country of the trip.voidsetLocation(String location)Location of the property.voidsetPaymentAccepted(PaymentTypeEnumeration[] paymentAccepted)Acceptable payment methods for item purchases.voidsetPaymentNotes(String paymentNotes)Additional instructions to explain a payment policy.voidsetPriceType(PriceTypeEnumeration priceType)The type of pricing for the item.voidsetQuantity(Integer quantity)Quantity available.voidsetTaxPercent(Float taxPercent)Tax rate associated with the event.voidsetTaxRegion(String taxRegion)Region where tax applies.voidsetToLocation(String toLocation)Destination city and state/country of the trip.voidsetTravelDateRange(DateTimeRange travelDateRange)Departure date and time of the trip.-
Methods inherited from interface com.rometools.modules.base.GlobalInterface
getExpirationDate, getExpirationDateTime, getId, getImageLinks, getLabels, setExpirationDate, setExpirationDateTime, setId, setImageLinks, setLabels
-
-
-
-
Method Detail
-
setCurrency
void setCurrency(CurrencyEnumeration value)
Currency of the price amount for an item.currency Details Currency of the price amount for an item. Values must be in ISO 4217 currency code format. Example Acceptable:
<g:currency>USD</g:currency>
Not acceptable:
<g:currency>US Dollars</g:currency>Attribute of Events, Housing, Products, Services, Travel, Vehicles Content type currencyEnumeration - Parameters:
value- Currency of the price amount for an item.
-
getCurrency
CurrencyEnumeration getCurrency()
Currency of the price amount for an item.currency Details Currency of the price amount for an item. Values must be in ISO 4217 currency code format. Example Acceptable:
<g:currency>USD</g:currency>
Not acceptable:
<g:currency>US Dollars</g:currency>Attribute of Events, Housing, Products, Services, Travel, Vehicles Content type currencyEnumeration - Returns:
- Currency of the price amount for an item.
-
setDeliveryNotes
void setDeliveryNotes(String deliveryNotes)
Additional instructions to explain the item’s delivery process.- Parameters:
deliveryNotes- Additional instructions to explain the item’s delivery process.
-
getDeliveryNotes
String getDeliveryNotes()
Additional instructions to explain the item’s delivery process.- Returns:
- Additional instructions to explain the item’s delivery process.
-
setDeliveryRadius
void setDeliveryRadius(FloatUnit deliveryRadius)
The maximum distance you will deliver an item in any direction.- Parameters:
deliveryRadius- The maximum distance you will deliver an item in any direction.
-
getDeliveryRadius
FloatUnit getDeliveryRadius()
The maximum distance you will deliver an item in any direction.- Returns:
- The maximum distance you will deliver an item in any direction.
-
setFromLocation
void setFromLocation(String fromLocation)
Starting city and state/country of the trip.- Parameters:
fromLocation- Starting city and state/country of the trip.
-
getFromLocation
String getFromLocation()
Starting city and state/country of the trip.- Returns:
- Starting city and state/country of the trip.
-
setPaymentAccepted
void setPaymentAccepted(PaymentTypeEnumeration[] paymentAccepted)
Acceptable payment methods for item purchases.- Parameters:
paymentAccepted- Acceptable payment methods for item purchases.
-
getPaymentAccepted
PaymentTypeEnumeration[] getPaymentAccepted()
Acceptable payment methods for item purchases.- Returns:
- Acceptable payment methods for item purchases.
-
setPaymentNotes
void setPaymentNotes(String paymentNotes)
Additional instructions to explain a payment policy.- Parameters:
paymentNotes- Additional instructions to explain a payment policy.
-
getPaymentNotes
String getPaymentNotes()
Additional instructions to explain a payment policy.- Returns:
- Additional instructions to explain a payment policy.
-
getPrice
FloatUnit getPrice()
Price of the item.- Returns:
- Price of the item.
-
setPriceType
void setPriceType(PriceTypeEnumeration priceType)
The type of pricing for the item.- Parameters:
priceType- The type of pricing for the item.
-
getPriceType
PriceTypeEnumeration getPriceType()
The type of pricing for the item.- Returns:
- The type of pricing for the item.
-
setQuantity
void setQuantity(Integer quantity)
Quantity available.- Parameters:
quantity- Quantity available.
-
getQuantity
Integer getQuantity()
Quantity available.- Returns:
- Quantity available.
-
setTaxPercent
void setTaxPercent(Float taxPercent)
Tax rate associated with the event.tax_percent Details Tax rate as a percentage. Example <g:tax_percent>8.2<g:/tax_percent> Attribute of Products, Events Content type percentType - Parameters:
taxPercent- Tax rate associated with the event.
-
getTaxPercent
Float getTaxPercent()
Tax rate associated with the service.tax_percent Details Tax rate as a percentage. Example <g:tax_percent>8.2<g:/tax_percent> Attribute of Products, Events Content type percentType - Returns:
- Tax rate associated with the event.
-
setTaxRegion
void setTaxRegion(String taxRegion)
Region where tax applies.tax_region Details Geographical region a tax rate applies to. Example <g:tax_region>California</g:tax_region> Attribute of Product, Events, Content type string - Parameters:
taxRegion- Region where tax applies.
-
getTaxRegion
String getTaxRegion()
Region where tax applies.tax_region Details Geographical region a tax rate applies to. Example <g:tax_region>California</g:tax_region> Attribute of Product, Events, Content type string - Returns:
- Region where tax applies.
-
setToLocation
void setToLocation(String toLocation)
Destination city and state/country of the trip.- Parameters:
toLocation- Destination city and state/country of the trip.
-
getToLocation
String getToLocation()
Destination city and state/country of the trip.- Returns:
- Destination city and state/country of the trip.
-
setTravelDateRange
void setTravelDateRange(DateTimeRange travelDateRange)
Departure date and time of the trip.travel_date_range Details Departure date and time of the trip in ISO 8601 format: YYYY-MM-DD,hh:mmAM (12 hour clock) or YYYY-MM-DD,hh:mm (24 hour clock). Two sub-attributes are included in travel_date_range attribute. - start = Start date and time of a trip in format YYYY-MM-DDThh:mm:ss
- end = End date and time of a trip in format YYYY-MM-DDThh:mm:ss
Example <g:travel_date_range>
<g:start>2005-12-20T06:00:00</g:start>
<g:end>2005-12-29T13:00:00</g:end>
</g:travel_date_range>Attribute of Travel Content type dateTimeRange - Parameters:
travelDateRange- Departure date and time of the trip.
-
getTravelDateRange
DateTimeRange getTravelDateRange()
Departure date and time of the trip.travel_date_range Details Departure date and time of the trip in ISO 8601 format: YYYY-MM-DD,hh:mmAM (12 hour clock) or YYYY-MM-DD,hh:mm (24 hour clock). Two sub-attributes are included in travel_date_range attribute. - start = Start date and time of a trip in format YYYY-MM-DDThh:mm:ss
- end = End date and time of a trip in format YYYY-MM-DDThh:mm:ss
Example <g:travel_date_range>
<g:start>2005-12-20T06:00:00</g:start>
<g:end>2005-12-29T13:00:00</g:end>
</g:travel_date_range>Attribute of Travel Content type dateTimeRange - Returns:
- Departure date and time of the trip.
-
setLocation
void setLocation(String location)
Location of the property.- Parameters:
location- Location of the property.
-
getLocation
String getLocation()
Location of the property.- Returns:
- Location of the property.
-
getShipping
ShippingType[] getShipping()
Shipping options available for an item.- Returns:
- Shipping options available for an item.
-
-