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

com.revinate.ship.profile.Membership Maven / Gradle / Ivy

package com.revinate.ship.profile;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.*;

import javax.validation.constraints.NotNull;
import java.time.LocalDate;

@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor(access = AccessLevel.PRIVATE)
@Builder
@EqualsAndHashCode
@ToString
@JsonInclude(JsonInclude.Include.NON_NULL)
public class Membership {

    @JsonProperty(required = true)
    @NotNull
    private String loyaltyNumber;

    private String programCode;

    private String levelCode;

    private LocalDate expireDate;

    @JsonIgnore
    public Membership(String loyaltyNumber) {
        this.loyaltyNumber = loyaltyNumber;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy