001// Generated by delombok at Thu Aug 13 13:56:43 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.ads; 024 025import com.restfb.Facebook; 026 027/** 028 * Represents the <a href="https://developers.facebook.com/docs/marketing-api/reference/transaction/">Ad transaction 029 * type</a> 030 */ 031public class AdTransaction extends BaseAdsObject { 032 private static final long serialVersionUID = 1L; 033 /** 034 * Time at which the transaction was created 035 */ 036 @Facebook 037 private Integer time; 038 /** 039 * ID of the source Ad Account 040 */ 041 @Facebook("account_id") 042 private String accountId; 043 /** 044 * ID for the Brazilian invoice (if transaction was made in Brazil) else 0 045 */ 046 @Facebook("fatura_id") 047 private Integer faturaId; 048 /** 049 * Type of charge involved in the transaction 050 */ 051 @Facebook("charge_type") 052 private String chargeType; 053 /** 054 * Current status of the transaction 055 */ 056 @Facebook 057 private String status; 058 /** 059 * Start time of the transaction's billing period 060 */ 061 @Facebook("billing_start_time") 062 private Integer billingStartTime; 063 /** 064 * End time of the transaction's billing period 065 */ 066 @Facebook("billing_end_time") 067 private Integer billingEndTime; 068 /** 069 * Method used to pay for the transaction 070 */ 071 @Facebook("payment_option") 072 private String paymentOption; 073 /** 074 * Monetary amount given to the app for this transaction 075 */ 076 @Facebook("app_amount") 077 private Integer appAmount; 078 /** 079 * The type of ads included in this transaction 080 */ 081 @Facebook("product_type") 082 private String productType; 083 /** 084 * Monetary amount charged to the user for this transaction 085 */ 086 @Facebook("provider_amount") 087 private Integer providerAmount; 088 089 /** 090 * Time at which the transaction was created 091 */ 092 @java.lang.SuppressWarnings("all") 093 @lombok.Generated 094 public Integer getTime() { 095 return this.time; 096 } 097 098 /** 099 * Time at which the transaction was created 100 */ 101 @java.lang.SuppressWarnings("all") 102 @lombok.Generated 103 public void setTime(final Integer time) { 104 this.time = time; 105 } 106 107 /** 108 * ID of the source Ad Account 109 */ 110 @java.lang.SuppressWarnings("all") 111 @lombok.Generated 112 public String getAccountId() { 113 return this.accountId; 114 } 115 116 /** 117 * ID of the source Ad Account 118 */ 119 @java.lang.SuppressWarnings("all") 120 @lombok.Generated 121 public void setAccountId(final String accountId) { 122 this.accountId = accountId; 123 } 124 125 /** 126 * ID for the Brazilian invoice (if transaction was made in Brazil) else 0 127 */ 128 @java.lang.SuppressWarnings("all") 129 @lombok.Generated 130 public Integer getFaturaId() { 131 return this.faturaId; 132 } 133 134 /** 135 * ID for the Brazilian invoice (if transaction was made in Brazil) else 0 136 */ 137 @java.lang.SuppressWarnings("all") 138 @lombok.Generated 139 public void setFaturaId(final Integer faturaId) { 140 this.faturaId = faturaId; 141 } 142 143 /** 144 * Type of charge involved in the transaction 145 */ 146 @java.lang.SuppressWarnings("all") 147 @lombok.Generated 148 public String getChargeType() { 149 return this.chargeType; 150 } 151 152 /** 153 * Type of charge involved in the transaction 154 */ 155 @java.lang.SuppressWarnings("all") 156 @lombok.Generated 157 public void setChargeType(final String chargeType) { 158 this.chargeType = chargeType; 159 } 160 161 /** 162 * Current status of the transaction 163 */ 164 @java.lang.SuppressWarnings("all") 165 @lombok.Generated 166 public String getStatus() { 167 return this.status; 168 } 169 170 /** 171 * Current status of the transaction 172 */ 173 @java.lang.SuppressWarnings("all") 174 @lombok.Generated 175 public void setStatus(final String status) { 176 this.status = status; 177 } 178 179 /** 180 * Start time of the transaction's billing period 181 */ 182 @java.lang.SuppressWarnings("all") 183 @lombok.Generated 184 public Integer getBillingStartTime() { 185 return this.billingStartTime; 186 } 187 188 /** 189 * Start time of the transaction's billing period 190 */ 191 @java.lang.SuppressWarnings("all") 192 @lombok.Generated 193 public void setBillingStartTime(final Integer billingStartTime) { 194 this.billingStartTime = billingStartTime; 195 } 196 197 /** 198 * End time of the transaction's billing period 199 */ 200 @java.lang.SuppressWarnings("all") 201 @lombok.Generated 202 public Integer getBillingEndTime() { 203 return this.billingEndTime; 204 } 205 206 /** 207 * End time of the transaction's billing period 208 */ 209 @java.lang.SuppressWarnings("all") 210 @lombok.Generated 211 public void setBillingEndTime(final Integer billingEndTime) { 212 this.billingEndTime = billingEndTime; 213 } 214 215 /** 216 * Method used to pay for the transaction 217 */ 218 @java.lang.SuppressWarnings("all") 219 @lombok.Generated 220 public String getPaymentOption() { 221 return this.paymentOption; 222 } 223 224 /** 225 * Method used to pay for the transaction 226 */ 227 @java.lang.SuppressWarnings("all") 228 @lombok.Generated 229 public void setPaymentOption(final String paymentOption) { 230 this.paymentOption = paymentOption; 231 } 232 233 /** 234 * Monetary amount given to the app for this transaction 235 */ 236 @java.lang.SuppressWarnings("all") 237 @lombok.Generated 238 public Integer getAppAmount() { 239 return this.appAmount; 240 } 241 242 /** 243 * Monetary amount given to the app for this transaction 244 */ 245 @java.lang.SuppressWarnings("all") 246 @lombok.Generated 247 public void setAppAmount(final Integer appAmount) { 248 this.appAmount = appAmount; 249 } 250 251 /** 252 * The type of ads included in this transaction 253 */ 254 @java.lang.SuppressWarnings("all") 255 @lombok.Generated 256 public String getProductType() { 257 return this.productType; 258 } 259 260 /** 261 * The type of ads included in this transaction 262 */ 263 @java.lang.SuppressWarnings("all") 264 @lombok.Generated 265 public void setProductType(final String productType) { 266 this.productType = productType; 267 } 268 269 /** 270 * Monetary amount charged to the user for this transaction 271 */ 272 @java.lang.SuppressWarnings("all") 273 @lombok.Generated 274 public Integer getProviderAmount() { 275 return this.providerAmount; 276 } 277 278 /** 279 * Monetary amount charged to the user for this transaction 280 */ 281 @java.lang.SuppressWarnings("all") 282 @lombok.Generated 283 public void setProviderAmount(final Integer providerAmount) { 284 this.providerAmount = providerAmount; 285 } 286}