Class StandaloneRefundRequest
java.lang.Object
de.hybris.platform.payment.commands.request.AbstractRequest
de.hybris.platform.payment.commands.request.StandaloneRefundRequest
Request for
StandaloneRefundCommand-
Constructor Summary
ConstructorsConstructorDescriptionStandaloneRefundRequest(String merchantTransactionCode, BillingInfo billTo, CardInfo card, Currency currency, BigDecimal totalAmount) Constructs a simple requestStandaloneRefundRequest(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.StandaloneRefundRequest(String merchantTransactionCode, String subscriptionID, BillingInfo billTo, CardInfo card, Currency currency, BigDecimal totalAmount, String paymentProvider) Constructs request -
Method Summary
Methods inherited from class de.hybris.platform.payment.commands.request.AbstractRequest
getMerchantTransactionCode
-
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 moneycard- card informationcurrency- currencytotalAmount- 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 nullbillTo- customer address for which to refund money, can be null if subscriptionID is not nullcard- card information, can be null if subscriptionID is not nullcurrency- currencytotalAmount- 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 codesubscriptionID- can be nullbillTo- customer address for which to refund money, can be null if subscriptionID is not nullcard- card information, can be null if subscriptionID is not nullcurrency- currencytotalAmount- how much money to refundpaymentProvider- payment provider's name
-
-
Method Details
-
isTokenizedRequest
public boolean isTokenizedRequest()- Returns:
- the isTokenizedRequest
-
getSubscriptionID
- Returns:
- the subscriptionID
-
getBillTo
- Returns:
- the billTo
-
getCard
- Returns:
- the card
-
getCurrency
- Returns:
- the currency
-
getTotalAmount
- Returns:
- the totalAmount
-
getPaymentProvider
- Returns:
- the providerName
-