Skip to content

Commit

Permalink
novo sub_category em Template
Browse files Browse the repository at this point in the history
  • Loading branch information
brppe authored and brppe committed Jun 19, 2024
1 parent c7137df commit 6ffaab1
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
package com.whatsapp.api.domain.templates.response;

import java.util.List;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.whatsapp.api.domain.templates.Component;
import com.whatsapp.api.domain.templates.type.Category;

import java.util.List;

/**
* The type Data item.
*/
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties(ignoreUnknown = true)
public record Template(

@JsonProperty("components") List<Component<?>> components,
Expand All @@ -23,5 +25,6 @@ public record Template(

@JsonProperty("category") Category category,
@JsonProperty("previous_category") Category previousCategory,
@JsonProperty("status") String status) {
@JsonProperty("status") String status,
@JsonProperty("sub_category") String subCategory) {
}

0 comments on commit 6ffaab1

Please sign in to comment.