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