Uses of Class
com.broadleafcommerce.orderoperation.service.payment.DefaultPaymentRefundService.PaymentRefundPackage
-
Uses of DefaultPaymentRefundService.PaymentRefundPackage in com.broadleafcommerce.orderoperation.service.payment
Modifier and TypeClassDescriptionstatic class
An intermediary data structure used internally byDefaultPaymentRefundService
to keep track of a return refund that will be executed.Modifier and TypeMethodDescriptionDefaultPaymentRefundService.buildFulfillmentRefundPackage
(PaymentSummary payment, javax.money.MonetaryAmount amountToRefund, String orderFulfillmentId) Modifier and TypeMethodDescriptionDefaultPaymentRefundService.buildFromPaymentDistributionDetails
(@NonNull javax.money.MonetaryAmount totalToRefund, @NonNull List<DefaultPaymentRefundService.PaymentWithRefundableAmount> paymentWithRefundableAmounts, @NonNull com.broadleafcommerce.order.client.domain.Order order, @NonNull String fulfillmentId, boolean isForReturnConfirmation, com.broadleafcommerce.order.client.domain.ReturnConfirmation returnConfirmation) Builds a list ofPaymentRefundPackages
based on theOrder.getPaymentDistributionDetails()
.DefaultPaymentRefundService.buildFromPaymentPriority
(@NonNull javax.money.MonetaryAmount totalToRefund, @NonNull List<DefaultPaymentRefundService.PaymentWithRefundableAmount> paymentWithRefundableAmounts, @NonNull com.broadleafcommerce.order.client.domain.Order order, @NonNull String fulfillmentId, boolean isForReturnConfirmation, com.broadleafcommerce.order.client.domain.ReturnConfirmation returnConfirmation) Builds a list ofPaymentRefundPackages
based on the payment priority.DefaultPaymentRefundService.buildFulfillmentPaymentRefundPackages
(@NonNull com.broadleafcommerce.order.client.domain.Order order, @NonNull com.broadleafcommerce.order.client.domain.OrderFulfillment fulfillment, @NonNull javax.money.MonetaryAmount totalToRefund, @NonNull List<DefaultPaymentRefundService.PaymentWithRefundableAmount> paymentWithRefundableAmounts) BuildsPaymentRefundPackages
to refund for the fulfillment, consuming amounts fromtransactionsWithRefundableAmountsByPaymentId
as necessary.DefaultPaymentRefundService.buildPaymentRefundPackages
(@NonNull com.broadleafcommerce.order.client.domain.Order order, @NonNull String fulfillmentId, @NonNull javax.money.MonetaryAmount totalToRefund, @NonNull List<DefaultPaymentRefundService.PaymentWithRefundableAmount> paymentWithRefundableAmounts, boolean isForReturnConfirmation, com.broadleafcommerce.order.client.domain.ReturnConfirmation returnConfirmation) DefaultPaymentRefundService.buildPaymentRefundPackagesFromDistribution
(@NonNull PaymentDistributionResult distributionResult, @NonNull List<DefaultPaymentRefundService.PaymentWithRefundableAmount> paymentWithRefundableAmounts, @NonNull com.broadleafcommerce.order.client.domain.Order order, @NonNull String fulfillmentId, boolean isForReturnConfirmation, com.broadleafcommerce.order.client.domain.ReturnConfirmation returnConfirmation) Builds a list ofPaymentRefundPackages
from the givenPaymentDistributionResult
.Modifier and TypeMethodDescriptionprotected TransactionExecutionResponse
DefaultPaymentRefundService.issueRefund
(DefaultPaymentRefundService.PaymentRefundPackage refundPackage, @NonNull String lockToken, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Executes the refund for the givenDefaultPaymentRefundService.ReturnPaymentRefundPackage
against theDefaultPaymentRefundService.paymentProvider
to actually issue the refund.protected void
DefaultPaymentRefundService.updateRefundPackagePayment
(@NonNull DefaultPaymentRefundService.PaymentRefundPackage refundPackage, @NonNull Map<String, PaymentSummary> paymentsById) Updates thegetPayment()
based on the givenpaymentsById
.Modifier and TypeMethodDescriptionDefaultPaymentRefundService.getPaymentIds
(List<? extends DefaultPaymentRefundService.PaymentRefundPackage> refundPackages) Deprecated, for removal: This API element is subject to removal in a future version.since 1.7.2, no longer usedprotected Map<String,
PaymentSummary> DefaultPaymentRefundService.getPaymentsById
(List<? extends DefaultPaymentRefundService.PaymentRefundPackage> refundPackages) Gets a map of payments by its id from the given list ofPaymentRefundPackages
.protected List<TransactionExecutionResponse>
DefaultPaymentRefundService.issueRefunds
(List<? extends DefaultPaymentRefundService.PaymentRefundPackage> paymentRefundPackages, com.broadleafcommerce.order.client.domain.Order order, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Given a list ofReturnPaymentRefundPackages
, executes the refunds against theDefaultPaymentRefundService.paymentProvider
to actually issue the refund.