001// Generated by delombok at Sun Apr 14 14:59:49 CEST 2024
002/*
003 * Copyright (c) 2010-2024 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.whatsapp.platform.message;
024
025import com.restfb.Facebook;
026import com.restfb.types.AbstractFacebookType;
027
028public class System extends AbstractFacebookType {
029  /**
030   * Describes the change to the customer's identity or phone number
031   */
032  @Facebook
033  private String body;
034  /**
035   * Hash for the identity fetched from server
036   */
037  private String identity;
038  /**
039   * New WhatsApp ID for the customer when their phone number is updated.
040   *
041   * Available on webhook versions V11 and below
042   */
043  @Facebook("new_wa_id")
044  private String newWaId;
045  /**
046   * New WhatsApp ID for the customer when their phone number is updated.
047   *
048   * Available on webhook versions V12 and above
049   */
050  @Facebook("wa_id")
051  private String waId;
052  /**
053   * Type of system update.
054   */
055  @Facebook
056  private String type;
057  /**
058   * The WhatsApp ID for the customer prior to the update
059   */
060  @Facebook
061  private String customer;
062
063  /**
064   * Describes the change to the customer's identity or phone number
065   */
066  @java.lang.SuppressWarnings("all")
067  public String getBody() {
068    return this.body;
069  }
070
071  /**
072   * Describes the change to the customer's identity or phone number
073   */
074  @java.lang.SuppressWarnings("all")
075  public void setBody(final String body) {
076    this.body = body;
077  }
078
079  /**
080   * New WhatsApp ID for the customer when their phone number is updated.
081   *
082   * Available on webhook versions V11 and below
083   */
084  @java.lang.SuppressWarnings("all")
085  public String getNewWaId() {
086    return this.newWaId;
087  }
088
089  /**
090   * New WhatsApp ID for the customer when their phone number is updated.
091   *
092   * Available on webhook versions V11 and below
093   */
094  @java.lang.SuppressWarnings("all")
095  public void setNewWaId(final String newWaId) {
096    this.newWaId = newWaId;
097  }
098
099  /**
100   * New WhatsApp ID for the customer when their phone number is updated.
101   *
102   * Available on webhook versions V12 and above
103   */
104  @java.lang.SuppressWarnings("all")
105  public String getWaId() {
106    return this.waId;
107  }
108
109  /**
110   * New WhatsApp ID for the customer when their phone number is updated.
111   *
112   * Available on webhook versions V12 and above
113   */
114  @java.lang.SuppressWarnings("all")
115  public void setWaId(final String waId) {
116    this.waId = waId;
117  }
118
119  /**
120   * Type of system update.
121   */
122  @java.lang.SuppressWarnings("all")
123  public String getType() {
124    return this.type;
125  }
126
127  /**
128   * Type of system update.
129   */
130  @java.lang.SuppressWarnings("all")
131  public void setType(final String type) {
132    this.type = type;
133  }
134
135  /**
136   * The WhatsApp ID for the customer prior to the update
137   */
138  @java.lang.SuppressWarnings("all")
139  public String getCustomer() {
140    return this.customer;
141  }
142
143  /**
144   * The WhatsApp ID for the customer prior to the update
145   */
146  @java.lang.SuppressWarnings("all")
147  public void setCustomer(final String customer) {
148    this.customer = customer;
149  }
150}