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

io.sphere.sdk.discountcodes.DiscountCodeImpl Maven / Gradle / Ivy

There is a newer version: 2.16.0
Show newest version
package io.sphere.sdk.discountcodes;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.JsonNode;
import io.sphere.sdk.cartdiscounts.CartDiscount;
import io.sphere.sdk.models.Base;
import io.sphere.sdk.models.LocalizedString;
import io.sphere.sdk.models.Reference;
import io.sphere.sdk.types.CustomFields;
import java.lang.Boolean;
import java.lang.Long;
import java.lang.String;
import java.time.ZonedDateTime;
import java.util.List;
import javax.annotation.Generated;
import javax.annotation.Nullable;

@Generated(
    value = "io.sphere.sdk.annotations.processors.generators.ResourceValueImplGenerator",
    comments = "Generated from: io.sphere.sdk.discountcodes.DiscountCode"
)
final class DiscountCodeImpl extends Base implements DiscountCode {
  @JsonProperty("isActive")
  private Boolean active;

  private List> cartDiscounts;

  @Nullable
  private String cartPredicate;

  private String code;

  private ZonedDateTime createdAt;

  @Nullable
  private CustomFields custom;

  @Nullable
  private LocalizedString description;

  private List groups;

  private String id;

  private ZonedDateTime lastModifiedAt;

  @Nullable
  private Long maxApplications;

  @Nullable
  private Long maxApplicationsPerCustomer;

  @Nullable
  private LocalizedString name;

  private List> references;

  @Nullable
  private ZonedDateTime validFrom;

  @Nullable
  private ZonedDateTime validUntil;

  private Long version;

  @JsonCreator
  DiscountCodeImpl(@JsonProperty("isActive") final Boolean active,
      final List> cartDiscounts, @Nullable final String cartPredicate,
      final String code, final ZonedDateTime createdAt, @Nullable final CustomFields custom,
      @Nullable final LocalizedString description, final List groups, final String id,
      final ZonedDateTime lastModifiedAt, @Nullable final Long maxApplications,
      @Nullable final Long maxApplicationsPerCustomer, @Nullable final LocalizedString name,
      final List> references, @Nullable final ZonedDateTime validFrom,
      @Nullable final ZonedDateTime validUntil, final Long version) {
    this.active = active;
    this.cartDiscounts = cartDiscounts;
    this.cartPredicate = cartPredicate;
    this.code = code;
    this.createdAt = createdAt;
    this.custom = custom;
    this.description = description;
    this.groups = groups;
    this.id = id;
    this.lastModifiedAt = lastModifiedAt;
    this.maxApplications = maxApplications;
    this.maxApplicationsPerCustomer = maxApplicationsPerCustomer;
    this.name = name;
    this.references = references;
    this.validFrom = validFrom;
    this.validUntil = validUntil;
    this.version = version;
  }

  @JsonProperty("isActive")
  public Boolean isActive() {
    return active;
  }

  public List> getCartDiscounts() {
    return cartDiscounts;
  }

  @Nullable
  public String getCartPredicate() {
    return cartPredicate;
  }

  public String getCode() {
    return code;
  }

  public ZonedDateTime getCreatedAt() {
    return createdAt;
  }

  @Nullable
  public CustomFields getCustom() {
    return custom;
  }

  @Nullable
  public LocalizedString getDescription() {
    return description;
  }

  public List getGroups() {
    return groups;
  }

  public String getId() {
    return id;
  }

  public ZonedDateTime getLastModifiedAt() {
    return lastModifiedAt;
  }

  @Nullable
  public Long getMaxApplications() {
    return maxApplications;
  }

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

  @Nullable
  public LocalizedString getName() {
    return name;
  }

  public List> getReferences() {
    return references;
  }

  @Nullable
  public ZonedDateTime getValidFrom() {
    return validFrom;
  }

  @Nullable
  public ZonedDateTime getValidUntil() {
    return validUntil;
  }

  public Long getVersion() {
    return version;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy