Class TransactionExecutionResponse

    • Constructor Detail

      • TransactionExecutionResponse

        public TransactionExecutionResponse()
    • Method Detail

      • isIndeterminateResult

        public boolean isIndeterminateResult()
        Whether any of the transactions has an indeterminate result.
        Returns:
        Whether or not any of the transactions has an indeterminate result
      • getAmountSuccessfullyExecuted

        public javax.money.MonetaryAmount getAmountSuccessfullyExecuted()
        Gets the total amount that was successfully executed.
        Returns:
        The total amount that was successfully executed.
      • getAmountFailedToExecute

        public javax.money.MonetaryAmount getAmountFailedToExecute()
        Gets the total amount that failed to execute.
        Returns:
        The total amount that failed to execute.
      • getCurrency

        @Nullable
        public javax.money.CurrencyUnit getCurrency()
        The currency gathered from getPaymentSummary() or getExpectedTotalAmount().
        Returns:
        The currency gathered from the payment summary or expected total amount.
      • getPaymentId

        @Nullable
        public String getPaymentId()
      • getPaymentSummary

        @Nullable
        public PaymentSummary getPaymentSummary()
        The payment's updated PaymentSummary representation.

        This can be null if the payment is archived as a result of a failed transaction.

        Returns:
        The payment's updated PaymentSummary representation.
      • getTransactionType

        public String getTransactionType()
        The type of transactions that were executed.
        Returns:
        The type of transactions that were executed.
        See Also:
        TransactionType
      • getRequestId

        public String getRequestId()
        The id representing the customer's request to execute one or more transactions.
        Returns:
        The id representing the customer's request to execute one or more transactions.
      • getSubtotal

        public javax.money.MonetaryAmount getSubtotal()
        The payment's total usually excluding adjustments, tax, and shipping.
        Returns:
        The payment's total usually excluding adjustments, tax, and shipping.
      • getAdjustmentsTotal

        public javax.money.MonetaryAmount getAdjustmentsTotal()
        The payment's adjustments (a.k.a discounts) total, usually excluding shipping/fulfillment discounts.
        Returns:
        The payment's adjustments (a.k.a discounts) total, usually excluding shipping/fulfillment discounts.
      • getFulfillmentTotal

        public javax.money.MonetaryAmount getFulfillmentTotal()
        The payment's total fulfillment cost
        Returns:
        The payment's total fulfillment cost
      • getTaxTotal

        public javax.money.MonetaryAmount getTaxTotal()
        The payment's total tax cost
        Returns:
        The payment's total tax cost
      • setPaymentSummary

        public void setPaymentSummary​(@Nullable
                                      PaymentSummary paymentSummary)
        The payment's updated PaymentSummary representation.

        This can be null if the payment is archived as a result of a failed transaction.

        Parameters:
        paymentSummary - The payment's updated PaymentSummary representation.
      • setTransactionType

        public void setTransactionType​(String transactionType)
        The type of transactions that were executed.
        Parameters:
        transactionType - The type of transactions that were executed.
        See Also:
        TransactionType
      • setRequestId

        public void setRequestId​(String requestId)
        The id representing the customer's request to execute one or more transactions.
        Parameters:
        requestId - The id representing the customer's request to execute one or more transactions.
      • setSubtotal

        public void setSubtotal​(javax.money.MonetaryAmount subtotal)
        The payment's total usually excluding adjustments, tax, and shipping.
      • setAdjustmentsTotal

        public void setAdjustmentsTotal​(javax.money.MonetaryAmount adjustmentsTotal)
        The payment's adjustments (a.k.a discounts) total, usually excluding shipping/fulfillment discounts.
      • setFulfillmentTotal

        public void setFulfillmentTotal​(javax.money.MonetaryAmount fulfillmentTotal)
        The payment's total fulfillment cost
      • setTaxTotal

        public void setTaxTotal​(javax.money.MonetaryAmount taxTotal)
        The payment's total tax cost
      • canEqual

        protected boolean canEqual​(Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object