@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()
CustomerCreditAccountService
create
in interface CustomerCreditAccountService
@Transactional(value="blTransactionManager", rollbackFor=javax.persistence.OptimisticLockException.class) public CustomerCreditAccount createCreditAccount(org.broadleafcommerce.profile.core.domain.Customer customer, CreditAccountEventRequestDTO requestDTO)
CustomerCreditAccountService
createCreditAccount
in interface CustomerCreditAccountService
public CustomerCreditAccount readAccountByCustomer(org.broadleafcommerce.profile.core.domain.Customer customer)
CustomerCreditAccountService
readAccountByCustomer
in interface CustomerCreditAccountService
public CustomerCreditAccount readAccountByAccountNumber(String accountNumber)
CustomerCreditAccountService
readAccountByAccountNumber
in interface CustomerCreditAccountService
public 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
CustomerCreditAccountService
addAccountCreditPaymentsFromCreditInfoForm
in interface CustomerCreditAccountService
org.broadleafcommerce.core.pricing.service.exception.PricingException
public void addAccountCreditPayment(org.broadleafcommerce.core.order.domain.Order order, CustomerCreditAccount customerCreditAccount) throws org.broadleafcommerce.core.pricing.service.exception.PricingException
CustomerCreditAccountService
addAccountCreditPayment
in interface CustomerCreditAccountService
org.broadleafcommerce.core.pricing.service.exception.PricingException
public List<CustomerCreditAccount> getAllCustomerAccounts(org.broadleafcommerce.profile.core.domain.Customer customer)
CustomerCreditAccountService
getAllCustomerAccounts
in interface CustomerCreditAccountService
public List<CustomerCreditAccount> getAllCustomerAccountsByCurrency(org.broadleafcommerce.profile.core.domain.Customer customer, org.broadleafcommerce.common.currency.domain.BroadleafCurrency currency)
CustomerCreditAccountService
getAllCustomerAccountsByCurrency
in interface CustomerCreditAccountService
Copyright © 2019. All rights reserved.