@Service(value="blAccountCreditOrderPaymentService") public class AccountCreditOrderPaymentServiceImpl extends Object implements AccountCreditOrderPaymentService
Modifier and Type | Field and Description |
---|---|
protected org.broadleafcommerce.core.payment.service.OrderPaymentService |
orderPaymentService |
Constructor and Description |
---|
AccountCreditOrderPaymentServiceImpl() |
Modifier and Type | Method and Description |
---|---|
protected org.broadleafcommerce.common.money.Money |
calculateAmountCovered(org.broadleafcommerce.core.order.domain.Order order,
CreditAccount creditAccount)
Note: the amount covered will NOT call order.getTotalAfterAppliedPayments()
See getTotalAfterAppliedGiftCardsAndCustomerCredit()
|
org.broadleafcommerce.core.payment.domain.OrderPayment |
constructCustomerCreditOrderPayment(org.broadleafcommerce.core.order.domain.Order order,
CustomerCreditAccount customerCreditAccount) |
org.broadleafcommerce.core.payment.domain.OrderPayment |
constructGiftCardOrderPayment(org.broadleafcommerce.core.order.domain.Order order,
GiftCardAccount giftCardAccount) |
org.broadleafcommerce.common.money.Money |
getTotalAfterAppliedGiftCardsAndCustomerCredit(org.broadleafcommerce.core.order.domain.Order order)
By default this logic will apply as much as possible to Order Payments of Type Gift Card or Account Credit.
|
protected org.broadleafcommerce.core.payment.service.OrderPaymentService orderPaymentService
public AccountCreditOrderPaymentServiceImpl()
public org.broadleafcommerce.core.payment.domain.OrderPayment constructCustomerCreditOrderPayment(org.broadleafcommerce.core.order.domain.Order order, CustomerCreditAccount customerCreditAccount)
constructCustomerCreditOrderPayment
in interface AccountCreditOrderPaymentService
public org.broadleafcommerce.core.payment.domain.OrderPayment constructGiftCardOrderPayment(org.broadleafcommerce.core.order.domain.Order order, GiftCardAccount giftCardAccount)
constructGiftCardOrderPayment
in interface AccountCreditOrderPaymentService
protected org.broadleafcommerce.common.money.Money calculateAmountCovered(org.broadleafcommerce.core.order.domain.Order order, CreditAccount creditAccount)
order
- creditAccount
- public org.broadleafcommerce.common.money.Money getTotalAfterAppliedGiftCardsAndCustomerCredit(org.broadleafcommerce.core.order.domain.Order order)
org.broadleafcommerce.core.pricing.service.workflow.AdjustOrderPaymentsActivity
will update the amount of a THIRD_PARTY_ACCOUNT to what is left after any applied payments (i.e. Gift Cards and Account Credits)order
- Copyright © 2019. All rights reserved.