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

io.sphere.sdk.customers.commands.updateactions.AddAddress Maven / Gradle / Ivy

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

import io.sphere.sdk.commands.UpdateActionImpl;
import io.sphere.sdk.customers.Customer;
import io.sphere.sdk.models.Address;

/**
 * Adds an address to a customer.
 *
 *  {@doc.gen intro}
 *
 * {@include.example io.sphere.sdk.customers.commands.CustomerUpdateCommandTest#addAddress()}
 *
 * @see Customer
 */
public class AddAddress extends UpdateActionImpl {
    private final Address address;

    private AddAddress(final Address address) {
        super("addAddress");
        this.address = address;
    }

    public static AddAddress of(final Address address) {
        return new AddAddress(address);
    }

    public Address getAddress() {
        return address;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy