Interface CardProduct
public interface CardProduct
CardProduct provides the information of a particular card.
-
Method Summary
Modifier and TypeMethodDescriptionFetches the CardArt object retrieved from the server as part of CardProduct.Fetches the customer service phone number.Fetches the URL of the customer service page.Fetches the long description.Fetches the product ID.Fetches the product name.doubleFetches the refundable deposit.Fetches the short description 1.Fetches the short description 2.Fetches the list of top up amounts.Fetches the validity period of the card.
-
Method Details
-
getProductId
String getProductId()Fetches the product ID.- Returns:
- A String representation of the card product ID.
-
getProductName
String getProductName()Fetches the product name.- Returns:
- A String representation of the card product name.
-
getShortDesc1
String getShortDesc1()Fetches the short description 1.- Returns:
- A String representation of short description 1 if it is present in the card. Otherwise, a null value will be returned.
-
getShortDesc2
String getShortDesc2()Fetches the short description 2.- Returns:
- A String representation of short description 2 if it is present in the card. Otherwise, a null value will be returned.
-
getLongDesc
String getLongDesc()Fetches the long description.- Returns:
- A String representation of the long description if it is present in the card. Otherwise, a null value will be returned.
-
getTopupAmounts
Fetches the list of top up amounts.- Returns:
- A list of Integer representation of the top up amounts if it is present in the card. Otherwise, a null value will be returned.
-
getRefundableDeposit
double getRefundableDeposit()Fetches the refundable deposit.- Returns:
- A double representation of the card refundable deposit if it is present in the card. Otherwise, a null value will be returned.
-
getCsWebsiteUrl
String getCsWebsiteUrl()Fetches the URL of the customer service page.- Returns:
- A String representation of the cs wehsite URL of the card if it is present in the card. Otherwise, a null value will be returned.
-
getCsPhoneNumber
String getCsPhoneNumber()Fetches the customer service phone number.- Returns:
- A String representation of the card customer service phone number if it is present in the card. Otherwise, a null value will be returned.
-
getCardArt
CardArt getCardArt()Fetches the CardArt object retrieved from the server as part of CardProduct. This method is used after the CardProduct list is retrieved.- Returns:
- A CardArt object if it is present in the card. Otherwise, a null value will be returned.
-
getValidityPeriod
ValidityPeriod getValidityPeriod()Fetches the validity period of the card.- Returns:
- A ValidityPeriod object if it is present in the card. Otherwise, a null value will be returned.
The ValidityPeriod object stores the String representations of the start date and end date coded in ISO 8601 format (YYYY-MM-DDThh:mm:ssTZD).
-