Class DropInServiceResult.Update

  • All Implemented Interfaces:

    
    public final class DropInServiceResult.Update
    extends DropInServiceResult
                        

    Only applicable for partial payments flow.

    Update Drop-in with a new list of payment methods and optionally an order.

    After submitting a partial payment, you might need to call /paymentMethods again with the new remaining amount, and pass the updated payment methods list, alongside the latest order object.

    Also after cancelling an order, you need to call /paymentMethods again with the original payment amount, and pass the updated payment methods list, with a null order object.

    Use OrderResponse.SERIALIZER to deserialize your JSON response string.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private final PaymentMethodsApiResponse paymentMethodsApiResponse
      private final OrderResponse order
    • Constructor Summary

      Constructors 
      Constructor Description
      DropInServiceResult.Update(PaymentMethodsApiResponse paymentMethodsApiResponse, OrderResponse order)
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final PaymentMethodsApiResponse getPaymentMethodsApiResponse()
      final OrderResponse getOrder()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DropInServiceResult.Update

        DropInServiceResult.Update(PaymentMethodsApiResponse paymentMethodsApiResponse, OrderResponse order)
        Parameters:
        paymentMethodsApiResponse - the updated payment methods list.
        order - the order object returned from the backend, or null if an order was cancelled.