001// Generated by delombok at Thu Aug 13 13:56:44 UTC 2026
002/*
003 * Copyright (c) 2010-2026 Mark Allen, Norbert Bartels.
004 *
005 * Permission is hereby granted, free of charge, to any person obtaining a copy
006 * of this software and associated documentation files (the "Software"), to deal
007 * in the Software without restriction, including without limitation the rights
008 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
009 * copies of the Software, and to permit persons to whom the Software is
010 * furnished to do so, subject to the following conditions:
011 *
012 * The above copyright notice and this permission notice shall be included in
013 * all copies or substantial portions of the Software.
014 *
015 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
016 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
017 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
018 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
019 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
020 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
021 * THE SOFTWARE.
022 */
023package com.restfb.types.webhook.whatsapp;
024
025import java.util.ArrayList;
026import java.util.Date;
027import java.util.List;
028import com.restfb.Facebook;
029import com.restfb.types.whatsapp.platform.Metadata;
030import com.restfb.types.whatsapp.platform.message.Contact;
031
032public class UserIdUpdateValue extends AbstractWhatsappBaseChangeValue {
033  @Facebook("messaging_product")
034  private String messagingProduct;
035  @Facebook
036  private Metadata metadata;
037  @Facebook
038  private List<Contact> contacts = new ArrayList<>();
039  @Facebook("user_id_update")
040  private List<UserIdUpdateItem> userIdUpdate = new ArrayList<>();
041
042
043  public static class UserIdUpdateItem {
044    @Facebook("wa_id")
045    private String waId;
046    @Facebook
047    private String detail;
048    @Facebook("user_id")
049    private ChangedId userId;
050    @Facebook("parent_user_id")
051    private ChangedId parentUserId;
052    @Facebook
053    private Date timestamp;
054
055    @java.lang.SuppressWarnings("all")
056    @lombok.Generated
057    public String getWaId() {
058      return this.waId;
059    }
060
061    @java.lang.SuppressWarnings("all")
062    @lombok.Generated
063    public String getDetail() {
064      return this.detail;
065    }
066
067    @java.lang.SuppressWarnings("all")
068    @lombok.Generated
069    public ChangedId getUserId() {
070      return this.userId;
071    }
072
073    @java.lang.SuppressWarnings("all")
074    @lombok.Generated
075    public ChangedId getParentUserId() {
076      return this.parentUserId;
077    }
078
079    @java.lang.SuppressWarnings("all")
080    @lombok.Generated
081    public Date getTimestamp() {
082      return this.timestamp;
083    }
084  }
085
086
087  public static class ChangedId {
088    @Facebook
089    private String previous;
090    @Facebook
091    private String current;
092
093    @java.lang.SuppressWarnings("all")
094    @lombok.Generated
095    public String getPrevious() {
096      return this.previous;
097    }
098
099    @java.lang.SuppressWarnings("all")
100    @lombok.Generated
101    public String getCurrent() {
102      return this.current;
103    }
104  }
105
106  @java.lang.SuppressWarnings("all")
107  @lombok.Generated
108  public String getMessagingProduct() {
109    return this.messagingProduct;
110  }
111
112  @java.lang.SuppressWarnings("all")
113  @lombok.Generated
114  public Metadata getMetadata() {
115    return this.metadata;
116  }
117
118  @java.lang.SuppressWarnings("all")
119  @lombok.Generated
120  public List<Contact> getContacts() {
121    return this.contacts;
122  }
123
124  @java.lang.SuppressWarnings("all")
125  @lombok.Generated
126  public List<UserIdUpdateItem> getUserIdUpdate() {
127    return this.userIdUpdate;
128  }
129}