@Service(value="blCustomerCreditAccountService")
@ManagedResource(objectName="org.broadleafcommerce:name=CustomerCreditAccountService",
description="CustomerCreditAccount Service",
currencyTimeLimit=15)
public class CustomerCreditAccountServiceImpl
extends Object
implements CustomerCreditAccountService
| Modifier and Type | Field and Description |
|---|---|
protected AccountCreditOrderPaymentService |
accountCreditOrderPaymentService |
protected CreditAccountEventDetailService |
creditAccountEventDetailService |
protected CreditAccountEventService |
creditAccountEventService |
protected CreditAccountNumberGenerator |
creditAccountNumberGenerator |
protected CreditAccountService |
creditAccountService
Services
|
protected CustomerCreditAccountDao |
customerCreditAccountDao
DAOs
|
protected static org.apache.commons.logging.Log |
LOG |
protected org.broadleafcommerce.core.order.service.OrderService |
orderService |
| Constructor and Description |
|---|
CustomerCreditAccountServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAccountCreditPayment(org.broadleafcommerce.core.order.domain.Order order,
CustomerCreditAccount customerCreditAccount)
Adds a payment to an order from the Credit Account id passed in.
|
List<CreditAccount> |
addAccountCreditPaymentsFromCreditInfoForm(org.broadleafcommerce.core.order.domain.Order order,
org.broadleafcommerce.core.web.checkout.model.CustomerCreditInfoForm creditInfoForm)
Adds a payment to an order from each Credit Account passed in the credit info form.
|
CustomerCreditAccount |
create()
Creates a CustomerCreditAccount.
|
CustomerCreditAccount |
createCreditAccount(org.broadleafcommerce.profile.core.domain.Customer customer,
CreditAccountEventRequestDTO requestDTO)
Creates a CustomerCreditAccount for the customer.
|
List<CustomerCreditAccount> |
getAllCustomerAccounts(org.broadleafcommerce.profile.core.domain.Customer customer)
Returns a List of all Credit Accounts of the customer passed in.
|
List<CustomerCreditAccount> |
getAllCustomerAccountsByCurrency(org.broadleafcommerce.profile.core.domain.Customer customer,
org.broadleafcommerce.common.currency.domain.BroadleafCurrency currency)
Returns a List of all Customer Credit Accounts of the customer and currency passed in.
|
CustomerCreditAccount |
readAccountByAccountNumber(String accountNumber)
Returns a CustomerCreditAccount that matches the account number.
|
CustomerCreditAccount |
readAccountByCustomer(org.broadleafcommerce.profile.core.domain.Customer customer)
Returns a CustomerCreditAccount associated with the customer.
|
protected static final org.apache.commons.logging.Log LOG
protected CustomerCreditAccountDao customerCreditAccountDao
protected CreditAccountService creditAccountService
protected CreditAccountEventService creditAccountEventService
protected CreditAccountEventDetailService creditAccountEventDetailService
protected CreditAccountNumberGenerator creditAccountNumberGenerator
protected org.broadleafcommerce.core.order.service.OrderService orderService
protected AccountCreditOrderPaymentService accountCreditOrderPaymentService
public CustomerCreditAccount create()
CustomerCreditAccountServicecreate in interface CustomerCreditAccountService@Transactional(value="blTransactionManager",
rollbackFor=javax.persistence.OptimisticLockException.class)
public CustomerCreditAccount createCreditAccount(org.broadleafcommerce.profile.core.domain.Customer customer,
CreditAccountEventRequestDTO requestDTO)
CustomerCreditAccountServicecreateCreditAccount in interface CustomerCreditAccountServicepublic CustomerCreditAccount readAccountByCustomer(org.broadleafcommerce.profile.core.domain.Customer customer)
CustomerCreditAccountServicereadAccountByCustomer in interface CustomerCreditAccountServicepublic CustomerCreditAccount readAccountByAccountNumber(String accountNumber)
CustomerCreditAccountServicereadAccountByAccountNumber in interface CustomerCreditAccountServicepublic List<CreditAccount> addAccountCreditPaymentsFromCreditInfoForm(org.broadleafcommerce.core.order.domain.Order order, org.broadleafcommerce.core.web.checkout.model.CustomerCreditInfoForm creditInfoForm) throws org.broadleafcommerce.core.pricing.service.exception.PricingException
CustomerCreditAccountServiceaddAccountCreditPaymentsFromCreditInfoForm in interface CustomerCreditAccountServiceorg.broadleafcommerce.core.pricing.service.exception.PricingExceptionpublic void addAccountCreditPayment(org.broadleafcommerce.core.order.domain.Order order,
CustomerCreditAccount customerCreditAccount)
throws org.broadleafcommerce.core.pricing.service.exception.PricingException
CustomerCreditAccountServiceaddAccountCreditPayment in interface CustomerCreditAccountServiceorg.broadleafcommerce.core.pricing.service.exception.PricingExceptionpublic List<CustomerCreditAccount> getAllCustomerAccounts(org.broadleafcommerce.profile.core.domain.Customer customer)
CustomerCreditAccountServicegetAllCustomerAccounts in interface CustomerCreditAccountServicepublic List<CustomerCreditAccount> getAllCustomerAccountsByCurrency(org.broadleafcommerce.profile.core.domain.Customer customer, org.broadleafcommerce.common.currency.domain.BroadleafCurrency currency)
CustomerCreditAccountServicegetAllCustomerAccountsByCurrency in interface CustomerCreditAccountServiceCopyright © 2019. All rights reserved.