Skip to content

Commit

Permalink
Release 3.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
fern-api[bot] committed Jul 23, 2024
1 parent 71b5619 commit 2cd7dac
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 44 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ publishing {
maven(MavenPublication) {
groupId = 'com.courier'
artifactId = 'courier-java'
version = '3.2.0'
version = '3.2.1'
from components.java
pom {
name = 'courier'
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/courier/api/core/ClientOptions.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ private ClientOptions(
{
put("X-Fern-Language", "JAVA");
put("X-Fern-SDK-Name", "com.courier.fern:api-sdk");
put("X-Fern-SDK-Version", "3.2.0");
put("X-Fern-SDK-Version", "3.2.1");
}
});
this.headerSuppliers = headerSuppliers;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@ public final class MessageDetails {

private final MessageStatus status;

private final int enqueued;
private final long enqueued;

private final int sent;
private final long sent;

private final int delivered;
private final long delivered;

private final int opened;
private final long opened;

private final int clicked;
private final long clicked;

private final String recipient;

Expand All @@ -49,11 +49,11 @@ public final class MessageDetails {
private MessageDetails(
String id,
MessageStatus status,
int enqueued,
int sent,
int delivered,
int opened,
int clicked,
long enqueued,
long sent,
long delivered,
long opened,
long clicked,
String recipient,
String event,
String notification,
Expand Down Expand Up @@ -95,39 +95,39 @@ public MessageStatus getStatus() {
* @return A UTC timestamp at which Courier received the message request. Stored as a millisecond representation of the Unix epoch.
*/
@JsonProperty("enqueued")
public int getEnqueued() {
public long getEnqueued() {
return enqueued;
}

/**
* @return A UTC timestamp at which Courier passed the message to the Integration provider. Stored as a millisecond representation of the Unix epoch.
*/
@JsonProperty("sent")
public int getSent() {
public long getSent() {
return sent;
}

/**
* @return A UTC timestamp at which the Integration provider delivered the message. Stored as a millisecond representation of the Unix epoch.
*/
@JsonProperty("delivered")
public int getDelivered() {
public long getDelivered() {
return delivered;
}

/**
* @return A UTC timestamp at which the recipient opened a message for the first time. Stored as a millisecond representation of the Unix epoch.
*/
@JsonProperty("opened")
public int getOpened() {
public long getOpened() {
return opened;
}

/**
* @return A UTC timestamp at which the recipient clicked on a tracked link for the first time. Stored as a millisecond representation of the Unix epoch.
*/
@JsonProperty("clicked")
public int getClicked() {
public long getClicked() {
return clicked;
}

Expand Down Expand Up @@ -234,23 +234,23 @@ public interface StatusStage {
}

public interface EnqueuedStage {
SentStage enqueued(int enqueued);
SentStage enqueued(long enqueued);
}

public interface SentStage {
DeliveredStage sent(int sent);
DeliveredStage sent(long sent);
}

public interface DeliveredStage {
OpenedStage delivered(int delivered);
OpenedStage delivered(long delivered);
}

public interface OpenedStage {
ClickedStage opened(int opened);
ClickedStage opened(long opened);
}

public interface ClickedStage {
RecipientStage clicked(int clicked);
RecipientStage clicked(long clicked);
}

public interface RecipientStage {
Expand Down Expand Up @@ -294,15 +294,15 @@ public static final class Builder

private MessageStatus status;

private int enqueued;
private long enqueued;

private int sent;
private long sent;

private int delivered;
private long delivered;

private int opened;
private long opened;

private int clicked;
private long clicked;

private String recipient;

Expand Down Expand Up @@ -364,7 +364,7 @@ public EnqueuedStage status(MessageStatus status) {
*/
@java.lang.Override
@JsonSetter("enqueued")
public SentStage enqueued(int enqueued) {
public SentStage enqueued(long enqueued) {
this.enqueued = enqueued;
return this;
}
Expand All @@ -375,7 +375,7 @@ public SentStage enqueued(int enqueued) {
*/
@java.lang.Override
@JsonSetter("sent")
public DeliveredStage sent(int sent) {
public DeliveredStage sent(long sent) {
this.sent = sent;
return this;
}
Expand All @@ -386,7 +386,7 @@ public DeliveredStage sent(int sent) {
*/
@java.lang.Override
@JsonSetter("delivered")
public OpenedStage delivered(int delivered) {
public OpenedStage delivered(long delivered) {
this.delivered = delivered;
return this;
}
Expand All @@ -397,7 +397,7 @@ public OpenedStage delivered(int delivered) {
*/
@java.lang.Override
@JsonSetter("opened")
public ClickedStage opened(int opened) {
public ClickedStage opened(long opened) {
this.opened = opened;
return this;
}
Expand All @@ -408,7 +408,7 @@ public ClickedStage opened(int opened) {
*/
@java.lang.Override
@JsonSetter("clicked")
public RecipientStage clicked(int clicked) {
public RecipientStage clicked(long clicked) {
this.clicked = clicked;
return this;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@JsonDeserialize(builder = NotificationTemplates.Builder.class)
public final class NotificationTemplates {
private final int createdAt;
private final long createdAt;

private final String id;

Expand All @@ -31,17 +31,17 @@ public final class NotificationTemplates {

private final String title;

private final int updatedAt;
private final long updatedAt;

private final Map<String, Object> additionalProperties;

private NotificationTemplates(
int createdAt,
long createdAt,
String id,
RoutingStrategy routing,
List<Tag> tags,
String title,
int updatedAt,
long updatedAt,
Map<String, Object> additionalProperties) {
this.createdAt = createdAt;
this.id = id;
Expand All @@ -56,7 +56,7 @@ private NotificationTemplates(
* @return A UTC timestamp at which notification was created. This is stored as a millisecond representation of the Unix epoch (the time passed since January 1, 1970).
*/
@JsonProperty("created_at")
public int getCreatedAt() {
public long getCreatedAt() {
return createdAt;
}

Expand Down Expand Up @@ -96,7 +96,7 @@ public String getTitle() {
* @return A UTC timestamp at which notification was updated. This is stored as a millisecond representation of the Unix epoch (the time passed since January 1, 1970).
*/
@JsonProperty("updated_at")
public int getUpdatedAt() {
public long getUpdatedAt() {
return updatedAt;
}

Expand Down Expand Up @@ -135,7 +135,7 @@ public static CreatedAtStage builder() {
}

public interface CreatedAtStage {
IdStage createdAt(int createdAt);
IdStage createdAt(long createdAt);

Builder from(NotificationTemplates other);
}
Expand All @@ -153,7 +153,7 @@ public interface TitleStage {
}

public interface UpdatedAtStage {
_FinalStage updatedAt(int updatedAt);
_FinalStage updatedAt(long updatedAt);
}

public interface _FinalStage {
Expand All @@ -169,15 +169,15 @@ public interface _FinalStage {
@JsonIgnoreProperties(ignoreUnknown = true)
public static final class Builder
implements CreatedAtStage, IdStage, RoutingStage, TitleStage, UpdatedAtStage, _FinalStage {
private int createdAt;
private long createdAt;

private String id;

private RoutingStrategy routing;

private String title;

private int updatedAt;
private long updatedAt;

private List<Tag> tags = new ArrayList<>();

Expand All @@ -203,7 +203,7 @@ public Builder from(NotificationTemplates other) {
*/
@java.lang.Override
@JsonSetter("created_at")
public IdStage createdAt(int createdAt) {
public IdStage createdAt(long createdAt) {
this.createdAt = createdAt;
return this;
}
Expand Down Expand Up @@ -247,7 +247,7 @@ public UpdatedAtStage title(String title) {
*/
@java.lang.Override
@JsonSetter("updated_at")
public _FinalStage updatedAt(int updatedAt) {
public _FinalStage updatedAt(long updatedAt) {
this.updatedAt = updatedAt;
return this;
}
Expand Down

0 comments on commit 2cd7dac

Please sign in to comment.