Skip to content

Commit

Permalink
Unified ValidityPeriod and ValidityPeriodTimeUnit
Browse files Browse the repository at this point in the history
  • Loading branch information
ib-tjuhasz committed Dec 5, 2024
1 parent e5e1aef commit 9341456
Show file tree
Hide file tree
Showing 15 changed files with 47 additions and 429 deletions.
8 changes: 4 additions & 4 deletions src/main/java/com/infobip/model/MessagesApiEventOptions.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public class MessagesApiEventOptions {

private Platform platform;

private MessagesApiValidityPeriod validityPeriod;
private ValidityPeriod validityPeriod;

/**
* Sets platform.
Expand Down Expand Up @@ -58,7 +58,7 @@ public void setPlatform(Platform platform) {
* @param validityPeriod
* @return This {@link MessagesApiEventOptions instance}.
*/
public MessagesApiEventOptions validityPeriod(MessagesApiValidityPeriod validityPeriod) {
public MessagesApiEventOptions validityPeriod(ValidityPeriod validityPeriod) {
this.validityPeriod = validityPeriod;
return this;
}
Expand All @@ -69,7 +69,7 @@ public MessagesApiEventOptions validityPeriod(MessagesApiValidityPeriod validity
* @return validityPeriod
*/
@JsonProperty("validityPeriod")
public MessagesApiValidityPeriod getValidityPeriod() {
public ValidityPeriod getValidityPeriod() {
return validityPeriod;
}

Expand All @@ -79,7 +79,7 @@ public MessagesApiValidityPeriod getValidityPeriod() {
* @param validityPeriod
*/
@JsonProperty("validityPeriod")
public void setValidityPeriod(MessagesApiValidityPeriod validityPeriod) {
public void setValidityPeriod(ValidityPeriod validityPeriod) {
this.validityPeriod = validityPeriod;
}

Expand Down
8 changes: 4 additions & 4 deletions src/main/java/com/infobip/model/MessagesApiFailover.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public class MessagesApiFailover implements MessagesApiBaseFailover {

private MessagesApiMessageContent content;

private MessagesApiValidityPeriod validityPeriod;
private ValidityPeriod validityPeriod;

/**
* Sets channel.
Expand Down Expand Up @@ -145,7 +145,7 @@ public void setContent(MessagesApiMessageContent content) {
* @param validityPeriod
* @return This {@link MessagesApiFailover instance}.
*/
public MessagesApiFailover validityPeriod(MessagesApiValidityPeriod validityPeriod) {
public MessagesApiFailover validityPeriod(ValidityPeriod validityPeriod) {
this.validityPeriod = validityPeriod;
return this;
}
Expand All @@ -156,7 +156,7 @@ public MessagesApiFailover validityPeriod(MessagesApiValidityPeriod validityPeri
* @return validityPeriod
*/
@JsonProperty("validityPeriod")
public MessagesApiValidityPeriod getValidityPeriod() {
public ValidityPeriod getValidityPeriod() {
return validityPeriod;
}

Expand All @@ -166,7 +166,7 @@ public MessagesApiValidityPeriod getValidityPeriod() {
* @param validityPeriod
*/
@JsonProperty("validityPeriod")
public void setValidityPeriod(MessagesApiValidityPeriod validityPeriod) {
public void setValidityPeriod(ValidityPeriod validityPeriod) {
this.validityPeriod = validityPeriod;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public class MessagesApiMessageOptions {

private Platform platform;

private MessagesApiValidityPeriod validityPeriod;
private ValidityPeriod validityPeriod;

private Boolean adaptationMode;

Expand Down Expand Up @@ -64,7 +64,7 @@ public void setPlatform(Platform platform) {
* @param validityPeriod
* @return This {@link MessagesApiMessageOptions instance}.
*/
public MessagesApiMessageOptions validityPeriod(MessagesApiValidityPeriod validityPeriod) {
public MessagesApiMessageOptions validityPeriod(ValidityPeriod validityPeriod) {
this.validityPeriod = validityPeriod;
return this;
}
Expand All @@ -75,7 +75,7 @@ public MessagesApiMessageOptions validityPeriod(MessagesApiValidityPeriod validi
* @return validityPeriod
*/
@JsonProperty("validityPeriod")
public MessagesApiValidityPeriod getValidityPeriod() {
public ValidityPeriod getValidityPeriod() {
return validityPeriod;
}

Expand All @@ -85,7 +85,7 @@ public MessagesApiValidityPeriod getValidityPeriod() {
* @param validityPeriod
*/
@JsonProperty("validityPeriod")
public void setValidityPeriod(MessagesApiValidityPeriod validityPeriod) {
public void setValidityPeriod(ValidityPeriod validityPeriod) {
this.validityPeriod = validityPeriod;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public class MessagesApiTemplateFailover implements MessagesApiBaseFailover {

private MessagesApiTemplateMessageContent content;

private MessagesApiValidityPeriod validityPeriod;
private ValidityPeriod validityPeriod;

/**
* Sets channel.
Expand Down Expand Up @@ -184,7 +184,7 @@ public void setContent(MessagesApiTemplateMessageContent content) {
* @param validityPeriod
* @return This {@link MessagesApiTemplateFailover instance}.
*/
public MessagesApiTemplateFailover validityPeriod(MessagesApiValidityPeriod validityPeriod) {
public MessagesApiTemplateFailover validityPeriod(ValidityPeriod validityPeriod) {
this.validityPeriod = validityPeriod;
return this;
}
Expand All @@ -195,7 +195,7 @@ public MessagesApiTemplateFailover validityPeriod(MessagesApiValidityPeriod vali
* @return validityPeriod
*/
@JsonProperty("validityPeriod")
public MessagesApiValidityPeriod getValidityPeriod() {
public ValidityPeriod getValidityPeriod() {
return validityPeriod;
}

Expand All @@ -205,7 +205,7 @@ public MessagesApiValidityPeriod getValidityPeriod() {
* @param validityPeriod
*/
@JsonProperty("validityPeriod")
public void setValidityPeriod(MessagesApiValidityPeriod validityPeriod) {
public void setValidityPeriod(ValidityPeriod validityPeriod) {
this.validityPeriod = validityPeriod;
}

Expand Down

This file was deleted.

8 changes: 4 additions & 4 deletions src/main/java/com/infobip/model/SmsMessageOptions.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public class SmsMessageOptions {

private Platform platform;

private SmsValidityPeriod validityPeriod;
private ValidityPeriod validityPeriod;

private DeliveryTimeWindow deliveryTimeWindow;

Expand Down Expand Up @@ -66,7 +66,7 @@ public void setPlatform(Platform platform) {
* @param validityPeriod
* @return This {@link SmsMessageOptions instance}.
*/
public SmsMessageOptions validityPeriod(SmsValidityPeriod validityPeriod) {
public SmsMessageOptions validityPeriod(ValidityPeriod validityPeriod) {
this.validityPeriod = validityPeriod;
return this;
}
Expand All @@ -77,7 +77,7 @@ public SmsMessageOptions validityPeriod(SmsValidityPeriod validityPeriod) {
* @return validityPeriod
*/
@JsonProperty("validityPeriod")
public SmsValidityPeriod getValidityPeriod() {
public ValidityPeriod getValidityPeriod() {
return validityPeriod;
}

Expand All @@ -87,7 +87,7 @@ public SmsValidityPeriod getValidityPeriod() {
* @param validityPeriod
*/
@JsonProperty("validityPeriod")
public void setValidityPeriod(SmsValidityPeriod validityPeriod) {
public void setValidityPeriod(ValidityPeriod validityPeriod) {
this.validityPeriod = validityPeriod;
}

Expand Down
143 changes: 0 additions & 143 deletions src/main/java/com/infobip/model/SmsValidityPeriod.java

This file was deleted.

Loading

0 comments on commit 9341456

Please sign in to comment.