getAmount()
:
Money
Returns the original amount on the gift certificate.
getID()
:
String
Returns the code of the gift certificate.
getMessage()
:
String
Returns the message to include in the email of the person receiving the gift certificate.
getSenderName()
:
String
Returns the name of the person or organization that sent the gift certificate or null if undefined.
getStatus()
:
Number
Returns the status where the possible values are STATUS_PENDING, STATUS_ISSUED, STATUS_PARTIALLY_REDEEMED or STATUS_REDEEMED.
isEnabled()
:
boolean
Returns true if the Gift Certificate is enabled, false otherwise.
setDescription(description
:
String)
:
void
An optional description that you can use to categorize the gift certificate.
setEnabled(enabled
:
boolean)
:
void
Controls if the Gift Certificate is enabled.
setMessage(message
:
String)
:
void
Sets the message to include in the email of the person receiving the gift certificate.
setRecipientEmail(recipientEmail
:
String)
:
void
Sets the email address of the person receiving the gift certificate.
setSenderName(sender
:
String)
:
void
Sets the name of the person or organization that sent the gift certificate.
getAmount
Returns the original amount on the gift certificate.
Returns:
the original amount on the gift certificate.
getBalance
Returns the balance on the gift certificate.
Returns:
the balance on the gift certificate.
getDescription
Returns the description string.
Returns:
the description.
getGiftCertificateCode
getGiftCertificateCode()
:
String
Returns the code of the gift certificate. This redemption code is send to
gift certificate recipient.
Returns:
the code of the gift certificate.
getID
Returns the code of the gift certificate. This redemption code is send to
gift certificate recipient.
Returns:
the code of the gift certificate.
getMaskedGiftCertificateCode
getMaskedGiftCertificateCode()
:
String
Returns the masked gift certificate code with
all but the last 4 characters replaced with a '*' character.
Returns:
the masked gift certificate code.
getMaskedGiftCertificateCode
Returns the masked gift certificate code with
all but the specified number of characters replaced with a '*' character.
Parameters:
ignore
-
the number of characters to leave unmasked.
Returns:
the masked gift certificate code.
Throws:
IllegalArgumentException
-
if ignore is negative.
getMerchantID
Returns the merchant ID of the gift certificate.
Returns:
the merchant ID of the gift certificate.
getMessage
Returns the message to include in the email of the person receiving
the gift certificate.
Returns:
the message to include in the email of the person receiving the gift certificate.
getOrderNo
Returns the order number
Returns:
the order number
getRecipientEmail
Returns the email address of the person receiving
the gift certificate.
Returns:
the email address of the person receiving the gift certificate.
getRecipientName
Returns the name of the person receiving
the gift certificate.
Returns:
the name of the person receiving the gift certificate.
getSenderName
Returns the name of the person or organization that
sent the gift certificate or null if undefined.
Returns:
the name of the person or organization that sent the gift certificate or null if undefined.
getStatus
Returns the status where the possible values are
STATUS_PENDING, STATUS_ISSUED, STATUS_PARTIALLY_REDEEMED
or STATUS_REDEEMED.
isEnabled
isEnabled()
:
boolean
Returns true if the Gift Certificate is enabled, false otherwise.
Returns:
true if the Gift Certificate is enabled, false otherwise.
setDescription
setDescription(description
:
String)
:
void
An optional description that you can use to categorize the
gift certificate.
Parameters:
description
-
additional description.
setEnabled
setEnabled(enabled
:
boolean)
:
void
Controls if the Gift Certificate is enabled.
Parameters:
enabled
-
if true, enables the Gift Certificate.
setMessage
setMessage(message
:
String)
:
void
Sets the message to include in the email of the person receiving
the gift certificate.
Parameters:
message
-
the message to include in the email of the person receiving the gift certificate.
setOrderNo
setOrderNo(orderNo
:
String)
:
void
Sets the order number
Parameters:
orderNo
-
the order number to be set
setRecipientEmail
setRecipientEmail(recipientEmail
:
String)
:
void
Sets the email address of the person receiving
the gift certificate.
Parameters:
recipientEmail
-
the email address of the person receiving the gift certificate.
setRecipientName
setRecipientName(recipient
:
String)
:
void
Sets the name of the person receiving
the gift certificate.
Parameters:
recipient
-
the name of the person receiving the gift certificate.
setSenderName
setSenderName(sender
:
String)
:
void
Sets the name of the person or organization that
sent the gift certificate.
Parameters:
sender
-
the name of the person or organization that sent the gift certificate.
setStatus
setStatus(status
:
Number)
:
void
Parameters:
status
-
Gift certificate status