@Service(value="blGiftCardAccountService") public class GiftCardAccountServiceImpl extends Object implements GiftCardAccountService
| Modifier and Type | Field and Description |
|---|---|
protected CreditAccountNumberGenerator |
creditAccountNumberGenerator |
protected org.broadleafcommerce.common.email.service.EmailService |
emailService |
protected GiftCardAccountDao |
giftCardAccountDao
Services
|
protected org.broadleafcommerce.common.email.service.info.EmailInfo |
giftCardEmailInfo |
protected static org.apache.commons.logging.Log |
LOG |
static String |
PURCHASE |
static String |
REDEEMED |
static String |
REFUND |
static String |
ROLLBACK |
| Constructor and Description |
|---|
GiftCardAccountServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
GiftCardAccount |
createGiftCardAccount(org.broadleafcommerce.common.money.Money amount)
Creates a new Gift Card account.
|
GiftCardAccount |
createGiftCardAccount(org.broadleafcommerce.common.money.Money amount,
CreditAccountEventRequestDTO requestDTO)
Creates a new Gift Card account.
|
GiftCardAccount |
readAccountByGiftCardNumber(String giftCardNumber)
Returns a GiftCardAccount that matches the Gift Card Number.
|
GiftCardAccount |
sendAndUpdateGiftCardEmail(GiftCardAccount giftCardAccount)
Update and Resend the GiftCard to the recipient email address on the account.
|
CreditAccountEvent |
transferAccountBalance(CreditAccount sender,
CreditAccount receiver,
org.broadleafcommerce.common.money.Money amount)
Transfers an amount from the Sender CreditAccount to the Receiver CreditAccount.
|
protected static final org.apache.commons.logging.Log LOG
protected GiftCardAccountDao giftCardAccountDao
protected CreditAccountNumberGenerator creditAccountNumberGenerator
protected org.broadleafcommerce.common.email.service.EmailService emailService
protected org.broadleafcommerce.common.email.service.info.EmailInfo giftCardEmailInfo
public static final String ROLLBACK
public static final String REDEEMED
public static final String PURCHASE
public static final String REFUND
public GiftCardAccount readAccountByGiftCardNumber(String giftCardNumber)
GiftCardAccountServicereadAccountByGiftCardNumber in interface GiftCardAccountService@Transactional(value="blTransactionManager",
rollbackFor=javax.persistence.OptimisticLockException.class)
public CreditAccountEvent transferAccountBalance(CreditAccount sender,
CreditAccount receiver,
org.broadleafcommerce.common.money.Money amount)
GiftCardAccountServicetransferAccountBalance in interface GiftCardAccountService@Transactional(value="blTransactionManager",
rollbackFor=javax.persistence.OptimisticLockException.class)
public GiftCardAccount createGiftCardAccount(org.broadleafcommerce.common.money.Money amount)
GiftCardAccountServicecreateGiftCardAccount in interface GiftCardAccountService@Transactional(value="blTransactionManager",
rollbackFor=javax.persistence.OptimisticLockException.class)
public GiftCardAccount createGiftCardAccount(org.broadleafcommerce.common.money.Money amount,
CreditAccountEventRequestDTO requestDTO)
GiftCardAccountServicecreateGiftCardAccount in interface GiftCardAccountService@Transactional(value="blTransactionManager",
rollbackFor=javax.persistence.OptimisticLockException.class)
public GiftCardAccount sendAndUpdateGiftCardEmail(GiftCardAccount giftCardAccount)
GiftCardAccountServicesendAndUpdateGiftCardEmail in interface GiftCardAccountServiceCopyright © 2019. All rights reserved.