All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.sphere.sdk.orders.commands.updateactions.AddDelivery Maven / Gradle / Ivy

There is a newer version: 1.0.0-M12
Show newest version
package io.sphere.sdk.orders.commands.updateactions;

import io.sphere.sdk.commands.UpdateAction;
import io.sphere.sdk.orders.DeliveryItem;
import io.sphere.sdk.orders.Order;

import java.util.Collections;
import java.util.List;

/**

 {@include.example io.sphere.sdk.orders.commands.OrderUpdateCommandTest#addDelivery()}
 */
public class AddDelivery extends UpdateAction {
    private final List items;
    private final List parcels;


    private AddDelivery(final List items, final List parcels) {
        super("addDelivery");
        this.items = items;
        this.parcels = parcels;
    }

    public static AddDelivery of(final List items, final List parcels) {
        return new AddDelivery(items, parcels);
    }

    public static AddDelivery of(final List items) {
        return of(items, Collections.emptyList());
    }

    public List getItems() {
        return items;
    }

    public List getParcels() {
        return parcels;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy