Package com.rometools.modules.base
Interface Service
-
- All Superinterfaces:
GlobalInterface,Serializable
- All Known Subinterfaces:
GoogleBase
- All Known Implementing Classes:
GoogleBaseImpl
public interface Service extends GlobalInterface
This is an interface for the GoogleBase plug in that exposes methods used for service offerings.
-
-
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.StringgetLocation()Location of the where the service is offered.PaymentTypeEnumeration[]getPaymentAccepted()Payment Methods acceptable for the service.StringgetPaymentNotes()Additional payment information.FloatUnitgetPrice()Price for the service.PriceTypeEnumerationgetPriceType()Price type information.IntegergetQuantity()Quantity available.StringgetServiceType()The type of service being offered.ShippingType[]getShipping()Shipping options available for an item.FloatgetTaxPercent()Tax rate associated with the service.StringgetTaxRegion()Region where tax applies.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.voidsetLocation(String location)Location of the where the service is offered.voidsetPaymentAccepted(PaymentTypeEnumeration[] paymentAccepted)Payment Methods acceptable for the service.voidsetPaymentNotes(String paymentNotes)Additional payment information.voidsetPrice(FloatUnit price)Price for the service.voidsetPriceType(PriceTypeEnumeration priceType)Price type information.voidsetQuantity(Integer quantity)Quantity available.voidsetServiceType(String serviceType)The type of service being offered.voidsetShipping(ShippingType[] shipping)Shipping options available for an item.voidsetTaxPercent(Float taxPercent)Tax rate associated with the item.voidsetTaxRegion(String taxRegion)Region where tax applies.-
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.
-
setLocation
void setLocation(String location)
Location of the where the service is offered.- Parameters:
location- Location of the where the service is offered.
-
getLocation
String getLocation()
Location of the where the service is offered.- Returns:
- Location of the where the service is offered.
-
setPaymentAccepted
void setPaymentAccepted(PaymentTypeEnumeration[] paymentAccepted)
Payment Methods acceptable for the service.- Parameters:
paymentAccepted- Payment Methods acceptable for the service.
-
getPaymentAccepted
PaymentTypeEnumeration[] getPaymentAccepted()
Payment Methods acceptable for the service.- Returns:
- Payment Methods acceptable for the service.
-
setPaymentNotes
void setPaymentNotes(String paymentNotes)
Additional payment information.- Parameters:
paymentNotes- Additional payment information.
-
getPaymentNotes
String getPaymentNotes()
Additional payment information.- Returns:
- Additional payment information.
-
setPrice
void setPrice(FloatUnit price)
Price for the service.
- Parameters:
price- Price for the service.
-
getPrice
FloatUnit getPrice()
Price for the service.
- Returns:
- Price for the service.
-
setPriceType
void setPriceType(PriceTypeEnumeration priceType)
Price type information.- Parameters:
priceType- Price type information.
-
getPriceType
PriceTypeEnumeration getPriceType()
Price type information.- Returns:
- Price type information.
-
setQuantity
void setQuantity(Integer quantity)
Quantity available.- Parameters:
quantity- Quantity available.
-
getQuantity
Integer getQuantity()
Quantity available.- Returns:
- Quantity available.
-
setServiceType
void setServiceType(String serviceType)
The type of service being offered.service_type Details The type of service being offered. Web hosting, legal, gardening, etc. Example <g:service_type>consulting</g:service_type> Attribute of Housing Content type string - Parameters:
serviceType- The type of service being offered.
-
getServiceType
String getServiceType()
The type of service being offered.service_type Details The type of service being offered. Web hosting, legal, gardening, etc. Example <g:service_type>consulting</g:service_type> Attribute of Housing Content type string - Returns:
- The type of service being offered.
-
setShipping
void setShipping(ShippingType[] shipping)
Shipping options available for an item.- Parameters:
shipping- Shipping options available for an item.
-
getShipping
ShippingType[] getShipping()
Shipping options available for an item.- Returns:
- Shipping options available for an item.
-
setTaxPercent
void setTaxPercent(Float taxPercent)
Tax rate associated with the item.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.
-
-