001// Generated by delombok at Fri Oct 04 16:05:59 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;
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  /**
067   * The "on behalf of" information for the WhatsApp Business Account
068   */
069  @Facebook("on_behalf_of_business_info")
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   * The "on behalf of" information for the WhatsApp Business Account
194   */
195  @java.lang.SuppressWarnings("all")
196  public WABAOnBehalfOfComputedInfo getOnBehalfOfBusinessInfo() {
197    return this.onBehalfOfBusinessInfo;
198  }
199
200  /**
201   * The "on behalf of" information for the WhatsApp Business Account
202   */
203  @java.lang.SuppressWarnings("all")
204  public void setOnBehalfOfBusinessInfo(final WABAOnBehalfOfComputedInfo onBehalfOfBusinessInfo) {
205    this.onBehalfOfBusinessInfo = onBehalfOfBusinessInfo;
206  }
207
208  /**
209   * Primary funding ID for the WhatsApp Business Account paid service
210   */
211  @java.lang.SuppressWarnings("all")
212  public String getPrimaryFundingId() {
213    return this.primaryFundingId;
214  }
215
216  /**
217   * Primary funding ID for the WhatsApp Business Account paid service
218   */
219  @java.lang.SuppressWarnings("all")
220  public void setPrimaryFundingId(final String primaryFundingId) {
221    this.primaryFundingId = primaryFundingId;
222  }
223
224  /**
225   * The purchase order number supplied by the business for payment management purposes
226   */
227  @java.lang.SuppressWarnings("all")
228  public String getPurchaseOrderNumber() {
229    return this.purchaseOrderNumber;
230  }
231
232  /**
233   * The purchase order number supplied by the business for payment management purposes
234   */
235  @java.lang.SuppressWarnings("all")
236  public void setPurchaseOrderNumber(final String purchaseOrderNumber) {
237    this.purchaseOrderNumber = purchaseOrderNumber;
238  }
239
240  /**
241   * Status of the WhatsApp Business Account.
242   *
243   * Default: ACTIVE
244   */
245  @java.lang.SuppressWarnings("all")
246  public String getStatus() {
247    return this.status;
248  }
249
250  /**
251   * Status of the WhatsApp Business Account.
252   *
253   * Default: ACTIVE
254   */
255  @java.lang.SuppressWarnings("all")
256  public void setStatus(final String status) {
257    this.status = status;
258  }
259
260  /**
261   * The timezone of the WhatsApp Business Account
262   */
263  @java.lang.SuppressWarnings("all")
264  public String getTimezoneId() {
265    return this.timezoneId;
266  }
267
268  /**
269   * The timezone of the WhatsApp Business Account
270   */
271  @java.lang.SuppressWarnings("all")
272  public void setTimezoneId(final String timezoneId) {
273    this.timezoneId = timezoneId;
274  }
275}