Class StandaloneRefundRequest

java.lang.Object
de.hybris.platform.payment.commands.request.AbstractRequest
de.hybris.platform.payment.commands.request.StandaloneRefundRequest

public class StandaloneRefundRequest extends AbstractRequest
  • Constructor Details

    • StandaloneRefundRequest

      public StandaloneRefundRequest(String merchantTransactionCode, BillingInfo billTo, CardInfo card, Currency currency, BigDecimal totalAmount)
      Constructs a simple request
      Parameters:
      merchantTransactionCode -
      billTo - customer address for which to refund money
      card - card information
      currency - currency
      totalAmount - how much money to refund
    • StandaloneRefundRequest

      public StandaloneRefundRequest(String merchantTransactionCode, String subscriptionID, BillingInfo billTo, CardInfo card, Currency currency, BigDecimal totalAmount)
      Constructs request, where missing data is filled by the payment provider from a previous txn.
      Parameters:
      merchantTransactionCode -
      subscriptionID - can be null
      billTo - customer address for which to refund money, can be null if subscriptionID is not null
      card - card information, can be null if subscriptionID is not null
      currency - currency
      totalAmount - how much money to refund
    • StandaloneRefundRequest

      public StandaloneRefundRequest(String merchantTransactionCode, String subscriptionID, BillingInfo billTo, CardInfo card, Currency currency, BigDecimal totalAmount, String paymentProvider)
      Constructs request
      Parameters:
      merchantTransactionCode - merchant transaction code
      subscriptionID - can be null
      billTo - customer address for which to refund money, can be null if subscriptionID is not null
      card - card information, can be null if subscriptionID is not null
      currency - currency
      totalAmount - how much money to refund
      paymentProvider - payment provider's name
  • Method Details

    • isTokenizedRequest

      public boolean isTokenizedRequest()
      Returns:
      the isTokenizedRequest
    • getSubscriptionID

      public String getSubscriptionID()
      Returns:
      the subscriptionID
    • getBillTo

      public BillingInfo getBillTo()
      Returns:
      the billTo
    • getCard

      public CardInfo getCard()
      Returns:
      the card
    • getCurrency

      public Currency getCurrency()
      Returns:
      the currency
    • getTotalAmount

      public BigDecimal getTotalAmount()
      Returns:
      the totalAmount
    • getPaymentProvider

      public String getPaymentProvider()
      Returns:
      the providerName