com.txtnation.android.products
Class Product

java.lang.Object
  extended by com.txtnation.android.products.Product
Direct Known Subclasses:
DirectBillingProduct, PremiumSMSProduct

public abstract class Product
extends java.lang.Object


Nested Class Summary
static class Product.DefaultCustomerServiceContact
           
static class Product.OperatorBillingType
           
static class Product.PrivacyAndSecurityType
           
static class Product.ProductType
           
static class Product.TermsAndConditionsType
           
 
Constructor Summary
Product()
           
 
Method Summary
 java.lang.String getCurrency()
          Gets currency
 java.lang.String getCustomerServiceContactAddress()
           
 java.lang.String getCustomerServiceContactEmail()
           
 java.lang.String getCustomerServiceContactPhone()
           
 java.lang.String getCustomerServiceContactWebsite()
           
 Product.DefaultCustomerServiceContact getDefaultCustomerServiceContact()
           
 java.lang.String getDoubleOptInMtMessagePattern()
           
 java.lang.String getDoubleOptInReplyMessage()
           
 java.math.BigDecimal getInitialPricePoint()
          Gets initialPricePoint
 java.lang.String getIntervalInWords()
           
 java.lang.Long getIntervalMs()
          Gets intervalMs
 Product.OperatorBillingType getOperatorBillingType()
           
 java.lang.String getOperatorLogoUrl()
           
 java.lang.String getOperatorName()
           
 Product.PrivacyAndSecurityType getPrivacyAndSecurityType()
           
 java.lang.String getPrivacyAndSecurityUrl()
           
 long getProductId()
          Gets productId
 java.lang.String getProductName()
          Gets productName
 Product.ProductType getProductType()
          Gets productType
 java.math.BigDecimal getRecurringPricePoint()
          Gets recurringPricePoint
 java.lang.String getStopKeyword()
           
 java.lang.String getStopShortcode()
           
 long getSubscriptionLengthMs()
          Gets subscriptionLengthMs
 Product.TermsAndConditionsType getTermsAndConditionsType()
           
 java.lang.String getTermsAndConditionsUrl()
           
 int getUnits()
          Gets Units
 java.lang.String getUnitsDescription()
          Gets unitsDescription
 boolean isEnableDblOptInAutoReply()
           
 boolean isHttpRedirectRequired()
           
 boolean isPromptDisableWifi()
           
 boolean isShowExtraConfirmDialog()
           
 boolean isShowMessageDataRatesApply()
           
 boolean isShowPriceSelectionWarning()
           
 boolean isShowStopMessage()
           
 boolean isSubscription()
           
 void setCurrency(java.lang.String currency)
           
 void setCustomerServiceContactAddress(java.lang.String customerServiceContactAddress)
           
 void setCustomerServiceContactEmail(java.lang.String customerServiceContactEmail)
           
 void setCustomerServiceContactPhone(java.lang.String customerServiceContactPhone)
           
 void setCustomerServiceContactWebsite(java.lang.String customerServiceContactWebsite)
           
 void setDefaultCustomerServiceContact(Product.DefaultCustomerServiceContact defaultCustomerServiceContact)
           
 void setDoubleOptInMtMessagePattern(java.lang.String doubleOptInMtMessagePattern)
           
 void setDoubleOptInReplyMessage(java.lang.String doubleOptInReplyMessage)
           
 void setEnableDblOptInAutoReply(boolean enableDblOptInAutoReply)
           
 void setHttpRedirectRequired(boolean isHttpRedirectRequired)
           
 void setInitialPricePoint(java.math.BigDecimal initialPricePoint)
           
 void setIntervalInWords(java.lang.String intervalInWords)
           
 void setIntervalMs(java.lang.Long intervalMs)
           
 void setIsSubscription(boolean isSubscription)
           
 void setOperatorBillingType(Product.OperatorBillingType operatorBillingType)
           
 void setOperatorLogoUrl(java.lang.String operatorLogoUrl)
           
 void setOperatorName(java.lang.String operatorName)
           
 void setPrivacyAndSecurityType(Product.PrivacyAndSecurityType privacyAndSecurityType)
           
 void setPrivacyAndSecurityUrl(java.lang.String privacyAndSecurityUrl)
           
 void setProductId(long productId)
           
 void setProductName(java.lang.String productName)
           
 void setProductType(Product.ProductType productType)
           
 void setPromptDisableWifi(boolean promptDisableWifi)
           
 void setRecurringPricePoint(java.math.BigDecimal recurringPricePoint)
           
 void setShowExtraConfirmDialog(boolean showExtraConfirmDialog)
           
 void setShowMessageDataRatesApply(boolean showMessageDataRatesApply)
           
 void setShowPriceSelectionWarning(boolean showPriceSelectionWarning)
           
 void setShowStopMessage(boolean showStopMessage)
           
 void setStopKeyword(java.lang.String stopKeyword)
           
 void setStopShortcode(java.lang.String stopShortcode)
           
 void setSubscription(boolean isSubscription)
           
 void setSubscriptionLengthMs(long subscriptionLengthMs)
           
 void setTermsAndConditionsType(Product.TermsAndConditionsType termsAndConditionsType)
           
 void setTermsAndConditionsUrl(java.lang.String termsAndConditionsUrl)
           
 void setUnits(java.lang.Integer units)
           
 void setUnitsDescription(java.lang.String unitsDescription)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Product

public Product()
Method Detail

isSubscription

public boolean isSubscription()

getProductId

public long getProductId()
Gets productId

Returns:
This is the unique ID of the Product on sale

getCurrency

public java.lang.String getCurrency()
Gets currency

Returns:
ISO Currency Code

getProductName

public java.lang.String getProductName()
Gets productName

Returns:
Name of the Product on sale

getUnits

public int getUnits()
Gets Units

Returns:
Number of Units allocated to Price

getUnitsDescription

public java.lang.String getUnitsDescription()
Gets unitsDescription

Returns:
Description of the Units

getInitialPricePoint

public java.math.BigDecimal getInitialPricePoint()
Gets initialPricePoint

Returns:
The Price at which the Customer is to be billed for the first time at the point of Subscription signup. For non-subscription product this is the normal price to charge the user.

getRecurringPricePoint

public java.math.BigDecimal getRecurringPricePoint()
Gets recurringPricePoint

Returns:
The Price at which each recurring subscription billing occurs after the initial payment. Applies to subscription products only

getIntervalMs

public java.lang.Long getIntervalMs()
Gets intervalMs

Returns:
The period (in milliseconds) between recurring subscription payments

getSubscriptionLengthMs

public long getSubscriptionLengthMs()
Gets subscriptionLengthMs

Returns:
The length (in milliseconds) of the Subscription lifetime

getProductType

public Product.ProductType getProductType()
Gets productType

Returns:
Type of Product - Possible values: SUBSCRIPTION, CONSUMABLE, NON_CONSUMABLE

setProductType

public void setProductType(Product.ProductType productType)

setIsSubscription

public void setIsSubscription(boolean isSubscription)

setUnits

public void setUnits(java.lang.Integer units)

setUnitsDescription

public void setUnitsDescription(java.lang.String unitsDescription)

setRecurringPricePoint

public void setRecurringPricePoint(java.math.BigDecimal recurringPricePoint)

setIntervalMs

public void setIntervalMs(java.lang.Long intervalMs)

setSubscriptionLengthMs

public void setSubscriptionLengthMs(long subscriptionLengthMs)

setSubscription

public void setSubscription(boolean isSubscription)

setProductId

public void setProductId(long productId)

setCurrency

public void setCurrency(java.lang.String currency)

setProductName

public void setProductName(java.lang.String productName)

setInitialPricePoint

public void setInitialPricePoint(java.math.BigDecimal initialPricePoint)

getOperatorBillingType

public Product.OperatorBillingType getOperatorBillingType()

setOperatorBillingType

public void setOperatorBillingType(Product.OperatorBillingType operatorBillingType)

getDoubleOptInMtMessagePattern

public java.lang.String getDoubleOptInMtMessagePattern()

setDoubleOptInMtMessagePattern

public void setDoubleOptInMtMessagePattern(java.lang.String doubleOptInMtMessagePattern)

isHttpRedirectRequired

public boolean isHttpRedirectRequired()

setHttpRedirectRequired

public void setHttpRedirectRequired(boolean isHttpRedirectRequired)

getTermsAndConditionsType

public Product.TermsAndConditionsType getTermsAndConditionsType()

setTermsAndConditionsType

public void setTermsAndConditionsType(Product.TermsAndConditionsType termsAndConditionsType)

getTermsAndConditionsUrl

public java.lang.String getTermsAndConditionsUrl()

setTermsAndConditionsUrl

public void setTermsAndConditionsUrl(java.lang.String termsAndConditionsUrl)

getPrivacyAndSecurityType

public Product.PrivacyAndSecurityType getPrivacyAndSecurityType()

setPrivacyAndSecurityType

public void setPrivacyAndSecurityType(Product.PrivacyAndSecurityType privacyAndSecurityType)

getPrivacyAndSecurityUrl

public java.lang.String getPrivacyAndSecurityUrl()

setPrivacyAndSecurityUrl

public void setPrivacyAndSecurityUrl(java.lang.String privacyAndSecurityUrl)

isEnableDblOptInAutoReply

public boolean isEnableDblOptInAutoReply()

setEnableDblOptInAutoReply

public void setEnableDblOptInAutoReply(boolean enableDblOptInAutoReply)

getDoubleOptInReplyMessage

public java.lang.String getDoubleOptInReplyMessage()

setDoubleOptInReplyMessage

public void setDoubleOptInReplyMessage(java.lang.String doubleOptInReplyMessage)

getCustomerServiceContactPhone

public java.lang.String getCustomerServiceContactPhone()

setCustomerServiceContactPhone

public void setCustomerServiceContactPhone(java.lang.String customerServiceContactPhone)

getCustomerServiceContactEmail

public java.lang.String getCustomerServiceContactEmail()

setCustomerServiceContactEmail

public void setCustomerServiceContactEmail(java.lang.String customerServiceContactEmail)

getCustomerServiceContactAddress

public java.lang.String getCustomerServiceContactAddress()

setCustomerServiceContactAddress

public void setCustomerServiceContactAddress(java.lang.String customerServiceContactAddress)

getCustomerServiceContactWebsite

public java.lang.String getCustomerServiceContactWebsite()

setCustomerServiceContactWebsite

public void setCustomerServiceContactWebsite(java.lang.String customerServiceContactWebsite)

getDefaultCustomerServiceContact

public Product.DefaultCustomerServiceContact getDefaultCustomerServiceContact()

setDefaultCustomerServiceContact

public void setDefaultCustomerServiceContact(Product.DefaultCustomerServiceContact defaultCustomerServiceContact)

isShowExtraConfirmDialog

public boolean isShowExtraConfirmDialog()

setShowExtraConfirmDialog

public void setShowExtraConfirmDialog(boolean showExtraConfirmDialog)

isPromptDisableWifi

public boolean isPromptDisableWifi()

setPromptDisableWifi

public void setPromptDisableWifi(boolean promptDisableWifi)

isShowPriceSelectionWarning

public boolean isShowPriceSelectionWarning()

setShowPriceSelectionWarning

public void setShowPriceSelectionWarning(boolean showPriceSelectionWarning)

isShowMessageDataRatesApply

public boolean isShowMessageDataRatesApply()

setShowMessageDataRatesApply

public void setShowMessageDataRatesApply(boolean showMessageDataRatesApply)

isShowStopMessage

public boolean isShowStopMessage()

setShowStopMessage

public void setShowStopMessage(boolean showStopMessage)

getIntervalInWords

public java.lang.String getIntervalInWords()

setIntervalInWords

public void setIntervalInWords(java.lang.String intervalInWords)

getStopShortcode

public java.lang.String getStopShortcode()

setStopShortcode

public void setStopShortcode(java.lang.String stopShortcode)

getStopKeyword

public java.lang.String getStopKeyword()

setStopKeyword

public void setStopKeyword(java.lang.String stopKeyword)

getOperatorName

public java.lang.String getOperatorName()

setOperatorName

public void setOperatorName(java.lang.String operatorName)

getOperatorLogoUrl

public java.lang.String getOperatorLogoUrl()

setOperatorLogoUrl

public void setOperatorLogoUrl(java.lang.String operatorLogoUrl)