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;
024
025import com.restfb.Facebook;
026import com.restfb.types.FacebookType;
027import com.restfb.types.ads.Business;
028
029public class ExtendedCredit extends FacebookType {
030  /**
031   * The total amount of credit that has been granted to other businesses.
032   *
033   * Going forward, credentials are measured in USD at the top level, and attachable
034   * to ad accounts of multiple currencies.
035   */
036  @Facebook("allocated_amount")
037  private CurrencyAmount allocatedAmount;
038  /**
039   * The total amount spent.
040   *
041   * This is calculated by adding parent ad account and all child ad accounts.
042   * Going forward, credentials are measured in USD at the top level, and attachable
043   * to ad accounts of multiple currencies.
044   */
045  @Facebook
046  private CurrencyAmount balance;
047  /**
048   * The credit available to this business
049   */
050  @Facebook("credit_available")
051  private CurrencyAmount creditAvailable;
052  /**
053   * The type of extended credit used.
054   *
055   * The most common are ADS_BUSINESS and ADS_SEQUENTIAL
056   */
057  @Facebook("credit_type")
058  private String creditType;
059  /**
060   * Returns true if credit owner removed access for previously shared credit line
061   */
062  @Facebook("is_access_revoked")
063  private Boolean isAccessRevoked;
064  /**
065   * Whether this credential is using the fully automated experience
066   */
067  @Facebook("is_automated_experience")
068  private Boolean isAutomatedExperience;
069  /**
070   * The legal entity name of the owner of a line
071   */
072  @Facebook("legal_entity_name")
073  private String legalEntityName;
074  /**
075   * When this credit is chosen as the payment method,
076   * the business name of the liable_party
077   */
078  @Facebook("liable_biz_name")
079  private String liableBizName;
080  /**
081   * The amount of credit available to a specific business.
082   *
083   * Going forward, credentials are measured in USD at the top level, and
084   * attachable to ad accounts of multiple currencies.
085   */
086  @Facebook("max_balance")
087  private CurrencyAmount maxBalance;
088  /**
089   * The raw credit limit for an entire business.
090   *
091   * Going forward, credentials are measured in USD at the top level, and
092   * attachable to ad accounts of multiple currencies.
093   */
094  @Facebook("online_max_balance")
095  private CurrencyAmount onlineMaxBalance;
096  /**
097   * The business account responsible for extended credit payment
098   */
099  @Facebook("owner_business")
100  private Business ownerBusiness;
101  /**
102   * The name of the business account responsible for extended credit payment
103   */
104  @Facebook("owner_business_name")
105  private String ownerBusinessName;
106  /**
107   * The name of the business that granted the credit line. For ADS_SEQUENTIAL credit types
108   */
109  @Facebook("partition_from")
110  private String partitionFrom;
111  /**
112   * When this credit is chosen as the payment method, the business name of the bill_to_party
113   */
114  @Facebook("send_bill_to_biz_name")
115  private String sendBillToBizNname;
116
117  /**
118   * The total amount of credit that has been granted to other businesses.
119   *
120   * Going forward, credentials are measured in USD at the top level, and attachable
121   * to ad accounts of multiple currencies.
122   */
123  @java.lang.SuppressWarnings("all")
124  public CurrencyAmount getAllocatedAmount() {
125    return this.allocatedAmount;
126  }
127
128  /**
129   * The total amount of credit that has been granted to other businesses.
130   *
131   * Going forward, credentials are measured in USD at the top level, and attachable
132   * to ad accounts of multiple currencies.
133   */
134  @java.lang.SuppressWarnings("all")
135  public void setAllocatedAmount(final CurrencyAmount allocatedAmount) {
136    this.allocatedAmount = allocatedAmount;
137  }
138
139  /**
140   * The total amount spent.
141   *
142   * This is calculated by adding parent ad account and all child ad accounts.
143   * Going forward, credentials are measured in USD at the top level, and attachable
144   * to ad accounts of multiple currencies.
145   */
146  @java.lang.SuppressWarnings("all")
147  public CurrencyAmount getBalance() {
148    return this.balance;
149  }
150
151  /**
152   * The total amount spent.
153   *
154   * This is calculated by adding parent ad account and all child ad accounts.
155   * Going forward, credentials are measured in USD at the top level, and attachable
156   * to ad accounts of multiple currencies.
157   */
158  @java.lang.SuppressWarnings("all")
159  public void setBalance(final CurrencyAmount balance) {
160    this.balance = balance;
161  }
162
163  /**
164   * The credit available to this business
165   */
166  @java.lang.SuppressWarnings("all")
167  public CurrencyAmount getCreditAvailable() {
168    return this.creditAvailable;
169  }
170
171  /**
172   * The credit available to this business
173   */
174  @java.lang.SuppressWarnings("all")
175  public void setCreditAvailable(final CurrencyAmount creditAvailable) {
176    this.creditAvailable = creditAvailable;
177  }
178
179  /**
180   * The type of extended credit used.
181   *
182   * The most common are ADS_BUSINESS and ADS_SEQUENTIAL
183   */
184  @java.lang.SuppressWarnings("all")
185  public String getCreditType() {
186    return this.creditType;
187  }
188
189  /**
190   * The type of extended credit used.
191   *
192   * The most common are ADS_BUSINESS and ADS_SEQUENTIAL
193   */
194  @java.lang.SuppressWarnings("all")
195  public void setCreditType(final String creditType) {
196    this.creditType = creditType;
197  }
198
199  /**
200   * Returns true if credit owner removed access for previously shared credit line
201   */
202  @java.lang.SuppressWarnings("all")
203  public Boolean getIsAccessRevoked() {
204    return this.isAccessRevoked;
205  }
206
207  /**
208   * Returns true if credit owner removed access for previously shared credit line
209   */
210  @java.lang.SuppressWarnings("all")
211  public void setIsAccessRevoked(final Boolean isAccessRevoked) {
212    this.isAccessRevoked = isAccessRevoked;
213  }
214
215  /**
216   * Whether this credential is using the fully automated experience
217   */
218  @java.lang.SuppressWarnings("all")
219  public Boolean getIsAutomatedExperience() {
220    return this.isAutomatedExperience;
221  }
222
223  /**
224   * Whether this credential is using the fully automated experience
225   */
226  @java.lang.SuppressWarnings("all")
227  public void setIsAutomatedExperience(final Boolean isAutomatedExperience) {
228    this.isAutomatedExperience = isAutomatedExperience;
229  }
230
231  /**
232   * The legal entity name of the owner of a line
233   */
234  @java.lang.SuppressWarnings("all")
235  public String getLegalEntityName() {
236    return this.legalEntityName;
237  }
238
239  /**
240   * The legal entity name of the owner of a line
241   */
242  @java.lang.SuppressWarnings("all")
243  public void setLegalEntityName(final String legalEntityName) {
244    this.legalEntityName = legalEntityName;
245  }
246
247  /**
248   * When this credit is chosen as the payment method,
249   * the business name of the liable_party
250   */
251  @java.lang.SuppressWarnings("all")
252  public String getLiableBizName() {
253    return this.liableBizName;
254  }
255
256  /**
257   * When this credit is chosen as the payment method,
258   * the business name of the liable_party
259   */
260  @java.lang.SuppressWarnings("all")
261  public void setLiableBizName(final String liableBizName) {
262    this.liableBizName = liableBizName;
263  }
264
265  /**
266   * The amount of credit available to a specific business.
267   *
268   * Going forward, credentials are measured in USD at the top level, and
269   * attachable to ad accounts of multiple currencies.
270   */
271  @java.lang.SuppressWarnings("all")
272  public CurrencyAmount getMaxBalance() {
273    return this.maxBalance;
274  }
275
276  /**
277   * The amount of credit available to a specific business.
278   *
279   * Going forward, credentials are measured in USD at the top level, and
280   * attachable to ad accounts of multiple currencies.
281   */
282  @java.lang.SuppressWarnings("all")
283  public void setMaxBalance(final CurrencyAmount maxBalance) {
284    this.maxBalance = maxBalance;
285  }
286
287  /**
288   * The raw credit limit for an entire business.
289   *
290   * Going forward, credentials are measured in USD at the top level, and
291   * attachable to ad accounts of multiple currencies.
292   */
293  @java.lang.SuppressWarnings("all")
294  public CurrencyAmount getOnlineMaxBalance() {
295    return this.onlineMaxBalance;
296  }
297
298  /**
299   * The raw credit limit for an entire business.
300   *
301   * Going forward, credentials are measured in USD at the top level, and
302   * attachable to ad accounts of multiple currencies.
303   */
304  @java.lang.SuppressWarnings("all")
305  public void setOnlineMaxBalance(final CurrencyAmount onlineMaxBalance) {
306    this.onlineMaxBalance = onlineMaxBalance;
307  }
308
309  /**
310   * The business account responsible for extended credit payment
311   */
312  @java.lang.SuppressWarnings("all")
313  public Business getOwnerBusiness() {
314    return this.ownerBusiness;
315  }
316
317  /**
318   * The business account responsible for extended credit payment
319   */
320  @java.lang.SuppressWarnings("all")
321  public void setOwnerBusiness(final Business ownerBusiness) {
322    this.ownerBusiness = ownerBusiness;
323  }
324
325  /**
326   * The name of the business account responsible for extended credit payment
327   */
328  @java.lang.SuppressWarnings("all")
329  public String getOwnerBusinessName() {
330    return this.ownerBusinessName;
331  }
332
333  /**
334   * The name of the business account responsible for extended credit payment
335   */
336  @java.lang.SuppressWarnings("all")
337  public void setOwnerBusinessName(final String ownerBusinessName) {
338    this.ownerBusinessName = ownerBusinessName;
339  }
340
341  /**
342   * The name of the business that granted the credit line. For ADS_SEQUENTIAL credit types
343   */
344  @java.lang.SuppressWarnings("all")
345  public String getPartitionFrom() {
346    return this.partitionFrom;
347  }
348
349  /**
350   * The name of the business that granted the credit line. For ADS_SEQUENTIAL credit types
351   */
352  @java.lang.SuppressWarnings("all")
353  public void setPartitionFrom(final String partitionFrom) {
354    this.partitionFrom = partitionFrom;
355  }
356
357  /**
358   * When this credit is chosen as the payment method, the business name of the bill_to_party
359   */
360  @java.lang.SuppressWarnings("all")
361  public String getSendBillToBizNname() {
362    return this.sendBillToBizNname;
363  }
364
365  /**
366   * When this credit is chosen as the payment method, the business name of the bill_to_party
367   */
368  @java.lang.SuppressWarnings("all")
369  public void setSendBillToBizNname(final String sendBillToBizNname) {
370    this.sendBillToBizNname = sendBillToBizNname;
371  }
372}