package com.commercetools.pspadapter.payone.mapping;

import com.commercetools.pspadapter.payone.PayoneConfig;
import com.commercetools.pspadapter.payone.domain.payone.model.common.PreauthorizationRequest;
import io.sphere.sdk.carts.Cart;
import io.sphere.sdk.orders.Order;
import io.sphere.sdk.payments.Payment;

/**
 * @author fhaertig
 * @date 14.12.15
 */
public abstract class PayoneRequestFactory {

    public PreauthorizationRequest createPreauthorizationRequest(final Payment ctPayment, final Order ctOrder, final Cart ctCart, final PayoneConfig config) {
        throw new UnsupportedOperationException("this request type is not supported by this payment method.");
    }

    //further methods e.g. capture,...
}

@@ -232,16 +232,53 @@
 s.Cart;%0A
+import io.sphere.sdk.carts.CartLike;%0A
 import i
@@ -536,40 +536,30 @@
 nal 
-Order ctOrder, final Cart
+CartLike%3C?%3E
  ctCart
+Like
 , fi

Use CartLike in RequestFactory