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

io.sphere.sdk.customers.commands.updateactions.SetCustomerNumber 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;

/**
 * Sets a string that uniquely identifies a customer. It can be used to create more human-readable (in contrast to ID) identifier for the customer.
 *
 *  {@doc.gen intro}
 *
 * {@include.example io.sphere.sdk.customers.commands.CustomerUpdateCommandTest#setCustomerNumber()}
 */
public class SetCustomerNumber extends UpdateActionImpl {
    private final String customerNumber;

    private SetCustomerNumber(final String customerNumber) {
        super("setCustomerNumber");
        this.customerNumber = customerNumber;
    }

    public static SetCustomerNumber of(final String customerNumber) {
        return new SetCustomerNumber(customerNumber);
    }

    public String getCustomerNumber() {
        return customerNumber;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy