Skip to content

Commit c98c433

Browse files
committed
Travis update: Jul 2024 (Build 776)
[skip ci]
1 parent 875477a commit c98c433

3 files changed

Lines changed: 38 additions & 2 deletions

File tree

api/openapi.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2464,6 +2464,7 @@ components:
24642464
total_price: total_price
24652465
part_price: part_price
24662466
err: 0
2467+
sender: sender
24672468
channel: sms
24682469
message_id: message_id
24692470
error: error
@@ -2474,6 +2475,7 @@ components:
24742475
total_price: total_price
24752476
part_price: part_price
24762477
err: 0
2478+
sender: sender
24772479
channel: sms
24782480
message_id: message_id
24792481
error: error
@@ -2508,6 +2510,7 @@ components:
25082510
total_price: total_price
25092511
part_price: part_price
25102512
err: 0
2513+
sender: sender
25112514
channel: sms
25122515
message_id: message_id
25132516
error: error
@@ -2535,6 +2538,9 @@ components:
25352538
type: string
25362539
price_info:
25372540
$ref: '#/components/schemas/PriceInfo'
2541+
sender:
2542+
description: the sender of the message
2543+
type: string
25382544
type: object
25392545
PriceInfo:
25402546
description: Contains price information for the message. This value is *null*

docs/DeliveryResult.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ A delivery report
1515
|**err** | **ErrorCodeOmnichannelMachine** | | [optional] |
1616
|**timestamp** | **OffsetDateTime** | When this status was received by Omnichannel API | [optional] |
1717
|**priceInfo** | [**PriceInfo**](PriceInfo.md) | | [optional] |
18+
|**sender** | **String** | the sender of the message | [optional] |
1819

1920

2021

src/main/java/com/messente/api/DeliveryResult.java

Lines changed: 31 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,10 @@ public class DeliveryResult {
8686
@SerializedName(SERIALIZED_NAME_PRICE_INFO)
8787
private PriceInfo priceInfo;
8888

89+
public static final String SERIALIZED_NAME_SENDER = "sender";
90+
@SerializedName(SERIALIZED_NAME_SENDER)
91+
private String sender;
92+
8993
public DeliveryResult() {
9094
}
9195

@@ -222,6 +226,25 @@ public void setPriceInfo(PriceInfo priceInfo) {
222226
}
223227

224228

229+
public DeliveryResult sender(String sender) {
230+
this.sender = sender;
231+
return this;
232+
}
233+
234+
/**
235+
* the sender of the message
236+
* @return sender
237+
**/
238+
@javax.annotation.Nullable
239+
public String getSender() {
240+
return sender;
241+
}
242+
243+
public void setSender(String sender) {
244+
this.sender = sender;
245+
}
246+
247+
225248

226249
@Override
227250
public boolean equals(Object o) {
@@ -238,7 +261,8 @@ public boolean equals(Object o) {
238261
Objects.equals(this.error, deliveryResult.error) &&
239262
Objects.equals(this.err, deliveryResult.err) &&
240263
Objects.equals(this.timestamp, deliveryResult.timestamp) &&
241-
Objects.equals(this.priceInfo, deliveryResult.priceInfo);
264+
Objects.equals(this.priceInfo, deliveryResult.priceInfo) &&
265+
Objects.equals(this.sender, deliveryResult.sender);
242266
}
243267

244268
private static <T> boolean equalsNullable(JsonNullable<T> a, JsonNullable<T> b) {
@@ -247,7 +271,7 @@ private static <T> boolean equalsNullable(JsonNullable<T> a, JsonNullable<T> b)
247271

248272
@Override
249273
public int hashCode() {
250-
return Objects.hash(status, channel, messageId, error, err, timestamp, priceInfo);
274+
return Objects.hash(status, channel, messageId, error, err, timestamp, priceInfo, sender);
251275
}
252276

253277
private static <T> int hashCodeNullable(JsonNullable<T> a) {
@@ -268,6 +292,7 @@ public String toString() {
268292
sb.append(" err: ").append(toIndentedString(err)).append("\n");
269293
sb.append(" timestamp: ").append(toIndentedString(timestamp)).append("\n");
270294
sb.append(" priceInfo: ").append(toIndentedString(priceInfo)).append("\n");
295+
sb.append(" sender: ").append(toIndentedString(sender)).append("\n");
271296
sb.append("}");
272297
return sb.toString();
273298
}
@@ -297,6 +322,7 @@ private String toIndentedString(Object o) {
297322
openapiFields.add("err");
298323
openapiFields.add("timestamp");
299324
openapiFields.add("price_info");
325+
openapiFields.add("sender");
300326

301327
// a set of required properties/fields (JSON key names)
302328
openapiRequiredFields = new HashSet<String>();
@@ -345,6 +371,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
345371
if (jsonObj.get("price_info") != null && !jsonObj.get("price_info").isJsonNull()) {
346372
PriceInfo.validateJsonElement(jsonObj.get("price_info"));
347373
}
374+
if ((jsonObj.get("sender") != null && !jsonObj.get("sender").isJsonNull()) && !jsonObj.get("sender").isJsonPrimitive()) {
375+
throw new IllegalArgumentException(String.format("Expected the field `sender` to be a primitive type in the JSON string but got `%s`", jsonObj.get("sender").toString()));
376+
}
348377
}
349378

350379
public static class CustomTypeAdapterFactory implements TypeAdapterFactory {

0 commit comments

Comments
 (0)