@@ -84,6 +84,11 @@ public class MessageCallback {
8484 @ javax .annotation .Nullable
8585 private Integer errorCode ;
8686
87+ public static final String SERIALIZED_NAME_CARRIER_NAME = "carrierName" ;
88+ @ SerializedName (SERIALIZED_NAME_CARRIER_NAME )
89+ @ javax .annotation .Nullable
90+ private String carrierName ;
91+
8792 public MessageCallback () {
8893 }
8994
@@ -200,6 +205,25 @@ public void setErrorCode(@javax.annotation.Nullable Integer errorCode) {
200205 this .errorCode = errorCode ;
201206 }
202207
208+
209+ public MessageCallback carrierName (@ javax .annotation .Nullable String carrierName ) {
210+ this .carrierName = carrierName ;
211+ return this ;
212+ }
213+
214+ /**
215+ * The name of the Authorized Message Provider (AMP) that handled this message. In the US, this is the carrier that the message was sent to.
216+ * @return carrierName
217+ */
218+ @ javax .annotation .Nullable
219+ public String getCarrierName () {
220+ return carrierName ;
221+ }
222+
223+ public void setCarrierName (@ javax .annotation .Nullable String carrierName ) {
224+ this .carrierName = carrierName ;
225+ }
226+
203227 /**
204228 * A container for additional, undeclared properties.
205229 * This is a holder for any undeclared properties as specified with
@@ -260,7 +284,8 @@ public boolean equals(Object o) {
260284 Objects .equals (this .to , messageCallback .to ) &&
261285 Objects .equals (this .description , messageCallback .description ) &&
262286 Objects .equals (this .message , messageCallback .message ) &&
263- Objects .equals (this .errorCode , messageCallback .errorCode )&&
287+ Objects .equals (this .errorCode , messageCallback .errorCode ) &&
288+ Objects .equals (this .carrierName , messageCallback .carrierName )&&
264289 Objects .equals (this .additionalProperties , messageCallback .additionalProperties );
265290 }
266291
@@ -270,7 +295,7 @@ private static <T> boolean equalsNullable(JsonNullable<T> a, JsonNullable<T> b)
270295
271296 @ Override
272297 public int hashCode () {
273- return Objects .hash (time , type , to , description , message , errorCode , additionalProperties );
298+ return Objects .hash (time , type , to , description , message , errorCode , carrierName , additionalProperties );
274299 }
275300
276301 private static <T > int hashCodeNullable (JsonNullable <T > a ) {
@@ -290,6 +315,7 @@ public String toString() {
290315 sb .append (" description: " ).append (toIndentedString (description )).append ("\n " );
291316 sb .append (" message: " ).append (toIndentedString (message )).append ("\n " );
292317 sb .append (" errorCode: " ).append (toIndentedString (errorCode )).append ("\n " );
318+ sb .append (" carrierName: " ).append (toIndentedString (carrierName )).append ("\n " );
293319 sb .append (" additionalProperties: " ).append (toIndentedString (additionalProperties )).append ("\n " );
294320 sb .append ("}" );
295321 return sb .toString ();
@@ -319,6 +345,7 @@ private String toIndentedString(Object o) {
319345 openapiFields .add ("description" );
320346 openapiFields .add ("message" );
321347 openapiFields .add ("errorCode" );
348+ openapiFields .add ("carrierName" );
322349
323350 // a set of required properties/fields (JSON key names)
324351 openapiRequiredFields = new HashSet <String >();
@@ -359,6 +386,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
359386 }
360387 // validate the required field `message`
361388 MessageCallbackMessage .validateJsonElement (jsonObj .get ("message" ));
389+ if ((jsonObj .get ("carrierName" ) != null && !jsonObj .get ("carrierName" ).isJsonNull ()) && !jsonObj .get ("carrierName" ).isJsonPrimitive ()) {
390+ throw new IllegalArgumentException (String .format ("Expected the field `carrierName` to be a primitive type in the JSON string but got `%s`" , jsonObj .get ("carrierName" ).toString ()));
391+ }
362392 }
363393
364394 public static class CustomTypeAdapterFactory implements TypeAdapterFactory {
0 commit comments