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

io.sphere.sdk.customers.commands.updateactions.SetDateOfBirth 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 javax.annotation.Nullable;
import java.time.LocalDate;

/**
 * Sets a date of birth for the customer.
 *
 *  {@doc.gen intro}
 *
 * {@include.example io.sphere.sdk.customers.commands.CustomerUpdateCommandTest#setDateOfBirth()}
 */
public class SetDateOfBirth extends UpdateActionImpl {
    @Nullable
    private final LocalDate dateOfBirth;

    private SetDateOfBirth(@Nullable final LocalDate dateOfBirth) {
        super("setDateOfBirth");
        this.dateOfBirth = dateOfBirth;
    }

    public static SetDateOfBirth of(@Nullable final LocalDate dateOfBirth) {
        return new SetDateOfBirth(dateOfBirth);
    }

    @Nullable
    public LocalDate getDateOfBirth() {
        return dateOfBirth;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy