001package ca.cdr.api.model.json; 002 003/* 004 * #%L 005 * Smile CDR - CDR 006 * %% 007 * Copyright (C) 2016 - 2026 Smile CDR, Inc. 008 * %% 009 * All rights reserved. 010 * #L% 011 */ 012 013import com.fasterxml.jackson.annotation.JsonProperty; 014import io.swagger.v3.oas.annotations.media.Schema; 015import jakarta.annotation.Nonnull; 016 017@Schema(name = "LocalizedCode", description = "A code and human-readable localized description") 018public class LocalizedCodeJson extends AbstractModelJson { 019 020 @Schema(description = "The event code identifier") 021 public final String code; 022 023 @Schema(description = "A human-readable description of the event code") 024 public final String description; 025 026 public LocalizedCodeJson( 027 @JsonProperty("code") @Nonnull String code, @JsonProperty("description") @Nonnull String description) { 028 this.code = code; 029 this.description = description; 030 } 031}