TiersDto.java

package com.github.badpop.jcoinbase.service.user.dto;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.github.badpop.jcoinbase.model.user.Tiers;
import lombok.AllArgsConstructor;
import lombok.Builder;

@Builder
@AllArgsConstructor
@JsonIgnoreProperties(value = {"upgrade_button_text", "header", "body"})
public class TiersDto {
  private final String completedDescription;

  public Tiers toTiers() {
    return Tiers.builder().completedDescription(completedDescription).build();
  }
}