Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions src/main/java/co/lettermint/api/ApiClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import java.net.URLEncoder;
import java.util.Map;

public class ApiClient {

Check warning on line 10 in src/main/java/co/lettermint/api/ApiClient.java

View workflow job for this annotation

GitHub Actions / Test (Java 17 - ubuntu-latest)

no comment

Check warning on line 10 in src/main/java/co/lettermint/api/ApiClient.java

View workflow job for this annotation

GitHub Actions / Test (Java 21 - ubuntu-latest)

no comment

Check warning on line 10 in src/main/java/co/lettermint/api/ApiClient.java

View workflow job for this annotation

GitHub Actions / Build

no comment
private final LettermintClient client;
private final DomainsEndpoint domains;
private final MessagesEndpoint messages;
Expand All @@ -18,7 +18,7 @@
private final TeamEndpoint team;
private final WebhooksEndpoint webhooks;

public ApiClient(String apiToken, String baseUrl) {

Check warning on line 21 in src/main/java/co/lettermint/api/ApiClient.java

View workflow job for this annotation

GitHub Actions / Test (Java 17 - ubuntu-latest)

no comment

Check warning on line 21 in src/main/java/co/lettermint/api/ApiClient.java

View workflow job for this annotation

GitHub Actions / Test (Java 21 - ubuntu-latest)

no comment

Check warning on line 21 in src/main/java/co/lettermint/api/ApiClient.java

View workflow job for this annotation

GitHub Actions / Build

no comment
this.client = new LettermintClient(apiToken, baseUrl, LettermintClient.AuthMode.BEARER);
this.domains = new DomainsEndpoint(client);
this.messages = new MessagesEndpoint(client);
Expand Down Expand Up @@ -78,7 +78,7 @@
}
}

public static class DomainsEndpoint {

Check warning on line 81 in src/main/java/co/lettermint/api/ApiClient.java

View workflow job for this annotation

GitHub Actions / Test (Java 17 - ubuntu-latest)

no comment

Check warning on line 81 in src/main/java/co/lettermint/api/ApiClient.java

View workflow job for this annotation

GitHub Actions / Test (Java 21 - ubuntu-latest)

no comment

Check warning on line 81 in src/main/java/co/lettermint/api/ApiClient.java

View workflow job for this annotation

GitHub Actions / Build

no comment
private final LettermintClient client;

DomainsEndpoint(LettermintClient client) {
Expand Down Expand Up @@ -118,7 +118,7 @@
}
}

public static class MessagesEndpoint {

Check warning on line 121 in src/main/java/co/lettermint/api/ApiClient.java

View workflow job for this annotation

GitHub Actions / Test (Java 17 - ubuntu-latest)

no comment

Check warning on line 121 in src/main/java/co/lettermint/api/ApiClient.java

View workflow job for this annotation

GitHub Actions / Test (Java 21 - ubuntu-latest)

no comment

Check warning on line 121 in src/main/java/co/lettermint/api/ApiClient.java

View workflow job for this annotation

GitHub Actions / Build

no comment
private final LettermintClient client;

MessagesEndpoint(LettermintClient client) {
Expand Down Expand Up @@ -158,7 +158,7 @@
}
}

public static class ProjectsEndpoint {

Check warning on line 161 in src/main/java/co/lettermint/api/ApiClient.java

View workflow job for this annotation

GitHub Actions / Test (Java 17 - ubuntu-latest)

no comment

Check warning on line 161 in src/main/java/co/lettermint/api/ApiClient.java

View workflow job for this annotation

GitHub Actions / Test (Java 21 - ubuntu-latest)

no comment

Check warning on line 161 in src/main/java/co/lettermint/api/ApiClient.java

View workflow job for this annotation

GitHub Actions / Build

no comment
private final LettermintClient client;

ProjectsEndpoint(LettermintClient client) {
Expand Down Expand Up @@ -193,18 +193,6 @@
return client.post("/projects/" + segment(projectId) + "/rotate-token", null, ProjectRotateTokenResponse.class);
}

public ProjectUpdateMembersResponse updateMembers(String projectId, UpdateProjectMembersData payload) {
return client.put("/projects/" + segment(projectId) + "/members", payload, ProjectUpdateMembersResponse.class);
}

public ProjectAddMemberResponse addMember(String projectId, String teamMemberId) {
return client.post("/projects/" + segment(projectId) + "/members/" + segment(teamMemberId), null, ProjectAddMemberResponse.class);
}

public ProjectRemoveMemberResponse removeMember(String projectId, String teamMemberId) {
return client.delete("/projects/" + segment(projectId) + "/members/" + segment(teamMemberId), ProjectRemoveMemberResponse.class);
}

public RouteIndexResponse routes(String projectId) {
return routes(projectId, null);
}
Expand All @@ -218,7 +206,7 @@
}
}

public static class RoutesEndpoint {

Check warning on line 209 in src/main/java/co/lettermint/api/ApiClient.java

View workflow job for this annotation

GitHub Actions / Test (Java 17 - ubuntu-latest)

no comment

Check warning on line 209 in src/main/java/co/lettermint/api/ApiClient.java

View workflow job for this annotation

GitHub Actions / Test (Java 21 - ubuntu-latest)

no comment

Check warning on line 209 in src/main/java/co/lettermint/api/ApiClient.java

View workflow job for this annotation

GitHub Actions / Build

no comment
private final LettermintClient client;

RoutesEndpoint(LettermintClient client) {
Expand All @@ -242,7 +230,7 @@
}
}

public static class StatsEndpoint {

Check warning on line 233 in src/main/java/co/lettermint/api/ApiClient.java

View workflow job for this annotation

GitHub Actions / Test (Java 17 - ubuntu-latest)

no comment

Check warning on line 233 in src/main/java/co/lettermint/api/ApiClient.java

View workflow job for this annotation

GitHub Actions / Test (Java 21 - ubuntu-latest)

no comment

Check warning on line 233 in src/main/java/co/lettermint/api/ApiClient.java

View workflow job for this annotation

GitHub Actions / Build

no comment
private final LettermintClient client;

StatsEndpoint(LettermintClient client) {
Expand All @@ -258,7 +246,7 @@
}
}

public static class SuppressionsEndpoint {

Check warning on line 249 in src/main/java/co/lettermint/api/ApiClient.java

View workflow job for this annotation

GitHub Actions / Test (Java 17 - ubuntu-latest)

no comment

Check warning on line 249 in src/main/java/co/lettermint/api/ApiClient.java

View workflow job for this annotation

GitHub Actions / Test (Java 21 - ubuntu-latest)

no comment

Check warning on line 249 in src/main/java/co/lettermint/api/ApiClient.java

View workflow job for this annotation

GitHub Actions / Build

no comment
private final LettermintClient client;

SuppressionsEndpoint(LettermintClient client) {
Expand All @@ -282,7 +270,7 @@
}
}

public static class TeamEndpoint {

Check warning on line 273 in src/main/java/co/lettermint/api/ApiClient.java

View workflow job for this annotation

GitHub Actions / Test (Java 17 - ubuntu-latest)

no comment

Check warning on line 273 in src/main/java/co/lettermint/api/ApiClient.java

View workflow job for this annotation

GitHub Actions / Test (Java 21 - ubuntu-latest)

no comment

Check warning on line 273 in src/main/java/co/lettermint/api/ApiClient.java

View workflow job for this annotation

GitHub Actions / Build

no comment
private final LettermintClient client;

TeamEndpoint(LettermintClient client) {
Expand All @@ -305,16 +293,28 @@
return client.get("/team/usage", TeamUsageDetailData.class, query);
}

public TeamRolesResponse roles() {
return client.get("/team/roles", TeamRolesResponse.class);
}

public TeamMembersResponse members() {
return members(null);
}

public TeamMembersResponse members(Map<String, String> query) {
return client.get("/team/members", TeamMembersResponse.class, query);
}

public TeamMemberData member(String userId) {
return client.get("/team/members/" + segment(userId), TeamMemberData.class);
}

public TeamMemberData updateMemberAssignment(String userId, UpdateTeamMemberAssignmentData payload) {
return client.put("/team/members/" + segment(userId) + "/assignment", payload, TeamMemberData.class);
}
}

public static class WebhooksEndpoint {

Check warning on line 317 in src/main/java/co/lettermint/api/ApiClient.java

View workflow job for this annotation

GitHub Actions / Test (Java 17 - ubuntu-latest)

no comment

Check warning on line 317 in src/main/java/co/lettermint/api/ApiClient.java

View workflow job for this annotation

GitHub Actions / Test (Java 21 - ubuntu-latest)

no comment

Check warning on line 317 in src/main/java/co/lettermint/api/ApiClient.java

View workflow job for this annotation

GitHub Actions / Build

no comment
private final LettermintClient client;

WebhooksEndpoint(LettermintClient client) {
Expand Down
6 changes: 5 additions & 1 deletion src/main/java/co/lettermint/client/LettermintClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,11 @@ public <T> T post(String path, Object payload, Class<T> responseClass, Map<Strin
}

public <T> T post(String path, Object payload, TypeReference<T> responseType) {
return request("POST", url(path, null), payload, null, responseType, null);
return post(path, payload, responseType, null);
}

public <T> T post(String path, Object payload, TypeReference<T> responseType, Map<String, String> headers) {
return request("POST", url(path, null), payload, null, responseType, headers);
}

public <T> T get(String path, Class<T> responseClass) {
Expand Down
40 changes: 32 additions & 8 deletions src/main/java/co/lettermint/endpoints/EmailEndpoint.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
private List<Attachment> attachments;
private String route;
private Map<String, Object> metadata;
private List<String> tags;
private String tag;
private Map<String, Object> settings;
private String idempotencyKey;

public EmailEndpoint(LettermintClient client) {
Expand All @@ -50,7 +51,8 @@
this.attachments = new ArrayList<>();
this.route = null;
this.metadata = new LinkedHashMap<>();
this.tags = new ArrayList<>();
this.tag = null;
this.settings = null;
this.idempotencyKey = null;
}

Expand All @@ -58,7 +60,7 @@
* Set the sender email address.
* Format: {@code "Name <email>"} or just {@code "email"}
*/
public EmailEndpoint from(String from) {

Check warning on line 63 in src/main/java/co/lettermint/endpoints/EmailEndpoint.java

View workflow job for this annotation

GitHub Actions / Test (Java 8 - ubuntu-latest)

Check warning on line 63 in src/main/java/co/lettermint/endpoints/EmailEndpoint.java

View workflow job for this annotation

GitHub Actions / Test (Java 8 - ubuntu-latest)

no @PARAM for from

Check warning on line 63 in src/main/java/co/lettermint/endpoints/EmailEndpoint.java

View workflow job for this annotation

GitHub Actions / Test (Java 11 - ubuntu-latest)

Check warning on line 63 in src/main/java/co/lettermint/endpoints/EmailEndpoint.java

View workflow job for this annotation

GitHub Actions / Test (Java 11 - ubuntu-latest)

no @PARAM for from
this.from = from;
return this;
}
Expand All @@ -66,7 +68,7 @@
/**
* Set recipient email addresses. Replaces any existing recipients.
*/
public EmailEndpoint to(String... emails) {

Check warning on line 71 in src/main/java/co/lettermint/endpoints/EmailEndpoint.java

View workflow job for this annotation

GitHub Actions / Test (Java 8 - ubuntu-latest)

Check warning on line 71 in src/main/java/co/lettermint/endpoints/EmailEndpoint.java

View workflow job for this annotation

GitHub Actions / Test (Java 8 - ubuntu-latest)

no @PARAM for emails

Check warning on line 71 in src/main/java/co/lettermint/endpoints/EmailEndpoint.java

View workflow job for this annotation

GitHub Actions / Test (Java 11 - ubuntu-latest)

Check warning on line 71 in src/main/java/co/lettermint/endpoints/EmailEndpoint.java

View workflow job for this annotation

GitHub Actions / Test (Java 11 - ubuntu-latest)

no @PARAM for emails
this.to = new ArrayList<>(Arrays.asList(emails));
return this;
}
Expand All @@ -74,7 +76,7 @@
/**
* Set CC email addresses. Replaces any existing CC recipients.
*/
public EmailEndpoint cc(String... emails) {

Check warning on line 79 in src/main/java/co/lettermint/endpoints/EmailEndpoint.java

View workflow job for this annotation

GitHub Actions / Test (Java 8 - ubuntu-latest)

Check warning on line 79 in src/main/java/co/lettermint/endpoints/EmailEndpoint.java

View workflow job for this annotation

GitHub Actions / Test (Java 8 - ubuntu-latest)

no @PARAM for emails

Check warning on line 79 in src/main/java/co/lettermint/endpoints/EmailEndpoint.java

View workflow job for this annotation

GitHub Actions / Test (Java 11 - ubuntu-latest)

Check warning on line 79 in src/main/java/co/lettermint/endpoints/EmailEndpoint.java

View workflow job for this annotation

GitHub Actions / Test (Java 11 - ubuntu-latest)

no @PARAM for emails
this.cc = new ArrayList<>(Arrays.asList(emails));
return this;
}
Expand All @@ -82,7 +84,7 @@
/**
* Set BCC email addresses. Replaces any existing BCC recipients.
*/
public EmailEndpoint bcc(String... emails) {

Check warning on line 87 in src/main/java/co/lettermint/endpoints/EmailEndpoint.java

View workflow job for this annotation

GitHub Actions / Test (Java 8 - ubuntu-latest)

Check warning on line 87 in src/main/java/co/lettermint/endpoints/EmailEndpoint.java

View workflow job for this annotation

GitHub Actions / Test (Java 8 - ubuntu-latest)

no @PARAM for emails

Check warning on line 87 in src/main/java/co/lettermint/endpoints/EmailEndpoint.java

View workflow job for this annotation

GitHub Actions / Test (Java 11 - ubuntu-latest)

Check warning on line 87 in src/main/java/co/lettermint/endpoints/EmailEndpoint.java

View workflow job for this annotation

GitHub Actions / Test (Java 11 - ubuntu-latest)

no @PARAM for emails
this.bcc = new ArrayList<>(Arrays.asList(emails));
return this;
}
Expand All @@ -90,7 +92,7 @@
/**
* Set reply-to email addresses. Replaces any existing reply-to addresses.
*/
public EmailEndpoint replyTo(String... emails) {

Check warning on line 95 in src/main/java/co/lettermint/endpoints/EmailEndpoint.java

View workflow job for this annotation

GitHub Actions / Test (Java 8 - ubuntu-latest)

Check warning on line 95 in src/main/java/co/lettermint/endpoints/EmailEndpoint.java

View workflow job for this annotation

GitHub Actions / Test (Java 8 - ubuntu-latest)

no @PARAM for emails

Check warning on line 95 in src/main/java/co/lettermint/endpoints/EmailEndpoint.java

View workflow job for this annotation

GitHub Actions / Test (Java 11 - ubuntu-latest)

Check warning on line 95 in src/main/java/co/lettermint/endpoints/EmailEndpoint.java

View workflow job for this annotation

GitHub Actions / Test (Java 11 - ubuntu-latest)

no @PARAM for emails
this.replyTo = new ArrayList<>(Arrays.asList(emails));
return this;
}
Expand Down Expand Up @@ -196,10 +198,18 @@
}

/**
* Add tags to the email.
* Set the email tag.
*/
public EmailEndpoint tag(String... tags) {
this.tags.addAll(Arrays.asList(tags));
public EmailEndpoint tag(String tag) {
this.tag = tag;
return this;
}

/**
* Set per-email settings that override the selected route.
*/
public EmailEndpoint settings(Map<String, Object> settings) {
this.settings = new LinkedHashMap<>(settings);
return this;
}

Expand Down Expand Up @@ -231,7 +241,17 @@
}

public List<SendMailResponse> sendBatch(List<SendMailRequest> payloads) {
return client.post("/send/batch", payloads, new TypeReference<List<SendMailResponse>>() {});
Map<String, String> requestHeaders = null;

if (idempotencyKey != null && !idempotencyKey.isEmpty()) {
requestHeaders = Collections.singletonMap("Idempotency-Key", idempotencyKey);
}

try {
return client.post("/send/batch", payloads, new TypeReference<List<SendMailResponse>>() {}, requestHeaders);
} finally {
reset();
}
}

public String ping() {
Expand Down Expand Up @@ -289,8 +309,12 @@
payload.put("metadata", metadata);
}

if (!tags.isEmpty()) {
payload.put("tags", tags);
if (tag != null) {
payload.put("tag", tag);
}

if (settings != null) {
payload.put("settings", settings);
}

return payload;
Expand Down
9 changes: 9 additions & 0 deletions src/main/java/co/lettermint/models/api/BuiltInTeamRole.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package co.lettermint.models.api;

public final class BuiltInTeamRole {
public static final String OWNER = "owner";
public static final String ADMIN = "admin";
public static final String MEMBER = "member";

private BuiltInTeamRole() {}
}
29 changes: 29 additions & 0 deletions src/main/java/co/lettermint/models/api/CursorPaginator.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
package co.lettermint.models.api;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;

@JsonIgnoreProperties(ignoreUnknown = true)
public class CursorPaginator {
@JsonProperty("data")
public List<String> data;

@JsonProperty("path")
public String path;

@JsonProperty("per_page")
public Integer perPage;

@JsonProperty("next_cursor")
public String nextCursor;

@JsonProperty("next_page_url")
public String nextPageUrl;

@JsonProperty("prev_cursor")
public String prevCursor;

@JsonProperty("prev_page_url")
public String prevPageUrl;
}
8 changes: 8 additions & 0 deletions src/main/java/co/lettermint/models/api/DkimMode.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package co.lettermint.models.api;

public final class DkimMode {
public static final String LEGACYTXT = "legacy_txt";
public static final String MANAGEDCNAME = "managed_cname";

private DkimMode() {}
}
11 changes: 11 additions & 0 deletions src/main/java/co/lettermint/models/api/DnsRecordPurpose.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package co.lettermint.models.api;

public final class DnsRecordPurpose {
public static final String RETURNPATH = "return_path";
public static final String DMARC = "dmarc";
public static final String DKIMLEGACY = "dkim_legacy";
public static final String DKIMPRIMARY = "dkim_primary";
public static final String DKIMSECONDARY = "dkim_secondary";

private DnsRecordPurpose() {}
}
10 changes: 10 additions & 0 deletions src/main/java/co/lettermint/models/api/DnsVerificationScope.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package co.lettermint.models.api;

public final class DnsVerificationScope {
public static final String REQUIRED = "required";
public static final String RECOMMENDED = "recommended";
public static final String MIGRATION = "migration";
public static final String DEPRECATED = "deprecated";

private DnsVerificationScope() {}
}
6 changes: 6 additions & 0 deletions src/main/java/co/lettermint/models/api/DomainData.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ public class DomainData {
@JsonProperty("domain")
public String domain;

@JsonProperty("dkim_mode")
public String dkimMode;

@JsonProperty("rotation_ready")
public Boolean rotationReady;

@JsonProperty("status_changed_at")
public String statusChangedAt;

Expand Down
13 changes: 11 additions & 2 deletions src/main/java/co/lettermint/models/api/DomainDnsRecordData.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public class DomainDnsRecordData {
public String id;

@JsonProperty("type")
public RecordType type;
public String type;

@JsonProperty("hostname")
public String hostname;
Expand All @@ -21,7 +21,16 @@ public class DomainDnsRecordData {
public String content;

@JsonProperty("status")
public DnsRecordStatus status;
public String status;

@JsonProperty("purpose")
public String purpose;

@JsonProperty("verification_scope")
public String verificationScope;

@JsonProperty("required_for_verification")
public Boolean requiredForVerification;

@JsonProperty("verified_at")
public String verifiedAt;
Expand Down
5 changes: 4 additions & 1 deletion src/main/java/co/lettermint/models/api/DomainListData.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ public class DomainListData {
public String domain;

@JsonProperty("status")
public DomainStatus status;
public String status;

@JsonProperty("dkim_mode")
public String dkimMode;

@JsonProperty("status_changed_at")
public String statusChangedAt;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,14 @@

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
import java.util.Map;

@JsonIgnoreProperties(ignoreUnknown = true)
public class DomainVerifyDnsRecordsResponse {
@JsonProperty("message")
public String message;

@JsonProperty("recommended_failed_records")
public List<Map<String, Object>> recommendedFailedRecords;
}
4 changes: 2 additions & 2 deletions src/main/java/co/lettermint/models/api/MessageData.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ public class MessageData {
public String id;

@JsonProperty("type")
public MessageType type;
public String type;

@JsonProperty("status")
public MessageStatus status;
public String status;

@JsonProperty("status_changed_at")
public String statusChangedAt;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public class MessageEventData {
public String messageId;

@JsonProperty("event")
public MessageEventType event;
public String event;

@JsonProperty("metadata")
public Map<String, Object> metadata;
Expand Down
21 changes: 5 additions & 16 deletions src/main/java/co/lettermint/models/api/MessageIndexResponse.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,16 @@
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
import java.util.Map;

@JsonIgnoreProperties(ignoreUnknown = true)
public class MessageIndexResponse {
@JsonProperty("data")
public List<MessageListData> data;

@JsonProperty("path")
public String path;
@JsonProperty("links")
public List<String> links;

@JsonProperty("per_page")
public Integer perPage;

@JsonProperty("next_cursor")
public String nextCursor;

@JsonProperty("next_page_url")
public String nextPageUrl;

@JsonProperty("prev_cursor")
public String prevCursor;

@JsonProperty("prev_page_url")
public String prevPageUrl;
@JsonProperty("meta")
public Map<String, Object> meta;
}
10 changes: 8 additions & 2 deletions src/main/java/co/lettermint/models/api/MessageListData.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,13 @@ public class MessageListData {
public String id;

@JsonProperty("type")
public MessageType type;
public String type;

@JsonProperty("status")
public MessageStatus status;
public String status;

@JsonProperty("spam_score")
public Double spamScore;

@JsonProperty("from_email")
public String fromEmail;
Expand All @@ -39,6 +42,9 @@ public class MessageListData {
@JsonProperty("tag")
public String tag;

@JsonProperty("status_changed_at")
public String statusChangedAt;

@JsonProperty("created_at")
public String createdAt;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package co.lettermint.models.api;

public final class ProjectAccessScope {
public static final String ALL = "all";
public static final String SELECTED = "selected";

private ProjectAccessScope() {}
}

This file was deleted.

6 changes: 0 additions & 6 deletions src/main/java/co/lettermint/models/api/ProjectData.java
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,6 @@ public class ProjectData {
@JsonProperty("domains_count")
public Integer domainsCount;

@JsonProperty("team_members")
public List<TeamMemberData> teamMembers;

@JsonProperty("team_members_count")
public Integer teamMembersCount;

@JsonProperty("last_28_days")
public MessageStatsData last28Days;

Expand Down
3 changes: 0 additions & 3 deletions src/main/java/co/lettermint/models/api/ProjectListData.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@ public class ProjectListData {
@JsonProperty("domains_count")
public Integer domainsCount;

@JsonProperty("team_members_count")
public Integer teamMembersCount;

@JsonProperty("last_28_days")
public MessageStatsData last28Days;

Expand Down
Loading