Class StandaloneRefundRequest

    • 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 money
        card - card information
        currency - currency
        totalAmount - 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 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​(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 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 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