Class StandaloneRefundRequest
- java.lang.Object
-
- de.hybris.platform.payment.commands.request.AbstractRequest
-
- de.hybris.platform.payment.commands.request.StandaloneRefundRequest
-
public class StandaloneRefundRequest extends AbstractRequest
Request forStandaloneRefundCommand
-
-
Constructor Summary
Constructors Constructor Description StandaloneRefundRequest(java.lang.String merchantTransactionCode, BillingInfo billTo, CardInfo card, java.util.Currency currency, java.math.BigDecimal totalAmount)Constructs a simple requestStandaloneRefundRequest(java.lang.String merchantTransactionCode, java.lang.String subscriptionID, BillingInfo billTo, CardInfo card, java.util.Currency currency, java.math.BigDecimal totalAmount)Constructs request, where missing data is filled by the payment provider from a previous txn.StandaloneRefundRequest(java.lang.String merchantTransactionCode, java.lang.String subscriptionID, BillingInfo billTo, CardInfo card, java.util.Currency currency, java.math.BigDecimal totalAmount, java.lang.String paymentProvider)Constructs request
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BillingInfogetBillTo()CardInfogetCard()java.util.CurrencygetCurrency()java.lang.StringgetPaymentProvider()java.lang.StringgetSubscriptionID()java.math.BigDecimalgetTotalAmount()booleanisTokenizedRequest()-
Methods inherited from class de.hybris.platform.payment.commands.request.AbstractRequest
getMerchantTransactionCode
-
-
-
-
Constructor Detail
-
StandaloneRefundRequest
public StandaloneRefundRequest(java.lang.String merchantTransactionCode, BillingInfo billTo, CardInfo card, java.util.Currency currency, java.math.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(java.lang.String merchantTransactionCode, java.lang.String subscriptionID, BillingInfo billTo, CardInfo card, java.util.Currency currency, java.math.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(java.lang.String merchantTransactionCode, java.lang.String subscriptionID, BillingInfo billTo, CardInfo card, java.util.Currency currency, java.math.BigDecimal totalAmount, java.lang.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 Detail
-
isTokenizedRequest
public boolean isTokenizedRequest()
- Returns:
- the isTokenizedRequest
-
getSubscriptionID
public java.lang.String getSubscriptionID()
- Returns:
- the subscriptionID
-
getBillTo
public BillingInfo getBillTo()
- Returns:
- the billTo
-
getCard
public CardInfo getCard()
- Returns:
- the card
-
getCurrency
public java.util.Currency getCurrency()
- Returns:
- the currency
-
getTotalAmount
public java.math.BigDecimal getTotalAmount()
- Returns:
- the totalAmount
-
getPaymentProvider
public java.lang.String getPaymentProvider()
- Returns:
- the providerName
-
-