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

io.sphere.sdk.discountcodes.commands.updateactions.SetMaxApplicationsPerCustomer Maven / Gradle / Ivy

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

import io.sphere.sdk.commands.UpdateActionImpl;
import io.sphere.sdk.discountcodes.DiscountCode;

import javax.annotation.Nullable;

/**
 * Sets the maximum number of applicable discount codes per customer.
 *
 * {@doc.gen intro}
 *
 * {@include.example io.sphere.sdk.discountcodes.commands.DiscountCodeUpdateCommandTest#setMaxApplicationsPerCustomer()}
 */
public class SetMaxApplicationsPerCustomer extends UpdateActionImpl {
    @Nullable
    private final Long maxApplicationsPerCustomer;

    private SetMaxApplicationsPerCustomer(@Nullable final Long maxApplicationsPerCustomer) {
        super("setMaxApplicationsPerCustomer");
        this.maxApplicationsPerCustomer = maxApplicationsPerCustomer;
    }

    public static SetMaxApplicationsPerCustomer of(@Nullable final Long maxApplications) {
        return new SetMaxApplicationsPerCustomer(maxApplications);
    }

    @Nullable
    public Long getMaxApplicationsPerCustomer() {
        return maxApplicationsPerCustomer;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy