001// Generated by delombok at Wed Oct 13 22:31:22 CEST 2021
002/*
003 * Copyright (c) 2010-2021 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;
024
025import com.restfb.Facebook;
026import com.restfb.types.NamedFacebookType;
027
028/**
029 * Represents the
030 * <a href="https://developers.facebook.com/docs/graph-api/reference/whats-app-business-account/">WhatsApp Business
031 * Account type </a>
032 */
033public class WhatsAppBusinessAccount extends NamedFacebookType {
034  private static final long serialVersionUID = 1L;
035  /**
036   * Status from account review process
037   */
038  @Facebook("account_review_status")
039  private String accountReviewStatus;
040  /**
041   * Analytics data of the WhatsApp Business Account
042   */
043  @Facebook
044  private WABAAnalytics analytics;
045  /**
046   * The currency in which the payment transactions for the WhatsApp Business Account will be processed
047   */
048  @Facebook
049  private String currency;
050  /**
051   * Whether or not the WhatsApp Business Account is eligible for sending notifications
052   */
053  @Facebook("eligible_for_sending_notifications")
054  private Boolean eligibleForSendingNotifications;
055  /**
056   * The reason why the WhatsApp Business Account is ineligible for delivery This field will be null when the
057   * <code>eligible_for_sending_notifications</code> field is false
058   */
059  @Facebook("ineligible_for_sending_notifications_reason")
060  private String ineligibleForSendingNotificationsReason;
061  /**
062   * Namespace string for the message templates that belong to the WhatsApp Business Account
063   */
064  @Facebook("message_template_namespace")
065  private String messageTemplateNamespace;
066  // WABAOnBehalfOfComputedInfo is not defined in Graph API reference
067  // @Getter
068  // @Setter
069  // @Facebook("WABAOnBehalfOfComputedInfo")
070  // private WABAOnBehalfOfComputedInfo onBehalfOfBusinessInfo;
071  /**
072   * Primary funding ID for the WhatsApp Business Account paid service
073   */
074  @Facebook("primary_funding_id")
075  private String primaryFundingId;
076  /**
077   * The purchase order number supplied by the business for payment management purposes
078   */
079  @Facebook("purchase_order_number")
080  private String purchaseOrderNumber;
081  /**
082   * Status of the WhatsApp Business Account.
083   *
084   * Default: ACTIVE
085   */
086  @Facebook
087  private String status;
088  /**
089   * The timezone of the WhatsApp Business Account
090   */
091  @Facebook("timezone_id")
092  private String timezoneId;
093
094  /**
095   * Status from account review process
096   */
097  @java.lang.SuppressWarnings("all")
098  public String getAccountReviewStatus() {
099    return this.accountReviewStatus;
100  }
101
102  /**
103   * Status from account review process
104   */
105  @java.lang.SuppressWarnings("all")
106  public void setAccountReviewStatus(final String accountReviewStatus) {
107    this.accountReviewStatus = accountReviewStatus;
108  }
109
110  /**
111   * Analytics data of the WhatsApp Business Account
112   */
113  @java.lang.SuppressWarnings("all")
114  public WABAAnalytics getAnalytics() {
115    return this.analytics;
116  }
117
118  /**
119   * Analytics data of the WhatsApp Business Account
120   */
121  @java.lang.SuppressWarnings("all")
122  public void setAnalytics(final WABAAnalytics analytics) {
123    this.analytics = analytics;
124  }
125
126  /**
127   * The currency in which the payment transactions for the WhatsApp Business Account will be processed
128   */
129  @java.lang.SuppressWarnings("all")
130  public String getCurrency() {
131    return this.currency;
132  }
133
134  /**
135   * The currency in which the payment transactions for the WhatsApp Business Account will be processed
136   */
137  @java.lang.SuppressWarnings("all")
138  public void setCurrency(final String currency) {
139    this.currency = currency;
140  }
141
142  /**
143   * Whether or not the WhatsApp Business Account is eligible for sending notifications
144   */
145  @java.lang.SuppressWarnings("all")
146  public Boolean getEligibleForSendingNotifications() {
147    return this.eligibleForSendingNotifications;
148  }
149
150  /**
151   * Whether or not the WhatsApp Business Account is eligible for sending notifications
152   */
153  @java.lang.SuppressWarnings("all")
154  public void setEligibleForSendingNotifications(final Boolean eligibleForSendingNotifications) {
155    this.eligibleForSendingNotifications = eligibleForSendingNotifications;
156  }
157
158  /**
159   * The reason why the WhatsApp Business Account is ineligible for delivery This field will be null when the
160   * <code>eligible_for_sending_notifications</code> field is false
161   */
162  @java.lang.SuppressWarnings("all")
163  public String getIneligibleForSendingNotificationsReason() {
164    return this.ineligibleForSendingNotificationsReason;
165  }
166
167  /**
168   * The reason why the WhatsApp Business Account is ineligible for delivery This field will be null when the
169   * <code>eligible_for_sending_notifications</code> field is false
170   */
171  @java.lang.SuppressWarnings("all")
172  public void setIneligibleForSendingNotificationsReason(final String ineligibleForSendingNotificationsReason) {
173    this.ineligibleForSendingNotificationsReason = ineligibleForSendingNotificationsReason;
174  }
175
176  /**
177   * Namespace string for the message templates that belong to the WhatsApp Business Account
178   */
179  @java.lang.SuppressWarnings("all")
180  public String getMessageTemplateNamespace() {
181    return this.messageTemplateNamespace;
182  }
183
184  /**
185   * Namespace string for the message templates that belong to the WhatsApp Business Account
186   */
187  @java.lang.SuppressWarnings("all")
188  public void setMessageTemplateNamespace(final String messageTemplateNamespace) {
189    this.messageTemplateNamespace = messageTemplateNamespace;
190  }
191
192  /**
193   * Primary funding ID for the WhatsApp Business Account paid service
194   */
195  @java.lang.SuppressWarnings("all")
196  public String getPrimaryFundingId() {
197    return this.primaryFundingId;
198  }
199
200  /**
201   * Primary funding ID for the WhatsApp Business Account paid service
202   */
203  @java.lang.SuppressWarnings("all")
204  public void setPrimaryFundingId(final String primaryFundingId) {
205    this.primaryFundingId = primaryFundingId;
206  }
207
208  /**
209   * The purchase order number supplied by the business for payment management purposes
210   */
211  @java.lang.SuppressWarnings("all")
212  public String getPurchaseOrderNumber() {
213    return this.purchaseOrderNumber;
214  }
215
216  /**
217   * The purchase order number supplied by the business for payment management purposes
218   */
219  @java.lang.SuppressWarnings("all")
220  public void setPurchaseOrderNumber(final String purchaseOrderNumber) {
221    this.purchaseOrderNumber = purchaseOrderNumber;
222  }
223
224  /**
225   * Status of the WhatsApp Business Account.
226   *
227   * Default: ACTIVE
228   */
229  @java.lang.SuppressWarnings("all")
230  public String getStatus() {
231    return this.status;
232  }
233
234  /**
235   * Status of the WhatsApp Business Account.
236   *
237   * Default: ACTIVE
238   */
239  @java.lang.SuppressWarnings("all")
240  public void setStatus(final String status) {
241    this.status = status;
242  }
243
244  /**
245   * The timezone of the WhatsApp Business Account
246   */
247  @java.lang.SuppressWarnings("all")
248  public String getTimezoneId() {
249    return this.timezoneId;
250  }
251
252  /**
253   * The timezone of the WhatsApp Business Account
254   */
255  @java.lang.SuppressWarnings("all")
256  public void setTimezoneId(final String timezoneId) {
257    this.timezoneId = timezoneId;
258  }
259}