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.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  public Integer getTime() {
094    return this.time;
095  }
096
097  /**
098   * Time at which the transaction was created
099   */
100  @java.lang.SuppressWarnings("all")
101  public void setTime(final Integer time) {
102    this.time = time;
103  }
104
105  /**
106   * ID of the source Ad Account
107   */
108  @java.lang.SuppressWarnings("all")
109  public String getAccountId() {
110    return this.accountId;
111  }
112
113  /**
114   * ID of the source Ad Account
115   */
116  @java.lang.SuppressWarnings("all")
117  public void setAccountId(final String accountId) {
118    this.accountId = accountId;
119  }
120
121  /**
122   * ID for the Brazilian invoice (if transaction was made in Brazil) else 0
123   */
124  @java.lang.SuppressWarnings("all")
125  public Integer getFaturaId() {
126    return this.faturaId;
127  }
128
129  /**
130   * ID for the Brazilian invoice (if transaction was made in Brazil) else 0
131   */
132  @java.lang.SuppressWarnings("all")
133  public void setFaturaId(final Integer faturaId) {
134    this.faturaId = faturaId;
135  }
136
137  /**
138   * Type of charge involved in the transaction
139   */
140  @java.lang.SuppressWarnings("all")
141  public String getChargeType() {
142    return this.chargeType;
143  }
144
145  /**
146   * Type of charge involved in the transaction
147   */
148  @java.lang.SuppressWarnings("all")
149  public void setChargeType(final String chargeType) {
150    this.chargeType = chargeType;
151  }
152
153  /**
154   * Current status of the transaction
155   */
156  @java.lang.SuppressWarnings("all")
157  public String getStatus() {
158    return this.status;
159  }
160
161  /**
162   * Current status of the transaction
163   */
164  @java.lang.SuppressWarnings("all")
165  public void setStatus(final String status) {
166    this.status = status;
167  }
168
169  /**
170   * Start time of the transaction's billing period
171   */
172  @java.lang.SuppressWarnings("all")
173  public Integer getBillingStartTime() {
174    return this.billingStartTime;
175  }
176
177  /**
178   * Start time of the transaction's billing period
179   */
180  @java.lang.SuppressWarnings("all")
181  public void setBillingStartTime(final Integer billingStartTime) {
182    this.billingStartTime = billingStartTime;
183  }
184
185  /**
186   * End time of the transaction's billing period
187   */
188  @java.lang.SuppressWarnings("all")
189  public Integer getBillingEndTime() {
190    return this.billingEndTime;
191  }
192
193  /**
194   * End time of the transaction's billing period
195   */
196  @java.lang.SuppressWarnings("all")
197  public void setBillingEndTime(final Integer billingEndTime) {
198    this.billingEndTime = billingEndTime;
199  }
200
201  /**
202   * Method used to pay for the transaction
203   */
204  @java.lang.SuppressWarnings("all")
205  public String getPaymentOption() {
206    return this.paymentOption;
207  }
208
209  /**
210   * Method used to pay for the transaction
211   */
212  @java.lang.SuppressWarnings("all")
213  public void setPaymentOption(final String paymentOption) {
214    this.paymentOption = paymentOption;
215  }
216
217  /**
218   * Monetary amount given to the app for this transaction
219   */
220  @java.lang.SuppressWarnings("all")
221  public Integer getAppAmount() {
222    return this.appAmount;
223  }
224
225  /**
226   * Monetary amount given to the app for this transaction
227   */
228  @java.lang.SuppressWarnings("all")
229  public void setAppAmount(final Integer appAmount) {
230    this.appAmount = appAmount;
231  }
232
233  /**
234   * The type of ads included in this transaction
235   */
236  @java.lang.SuppressWarnings("all")
237  public String getProductType() {
238    return this.productType;
239  }
240
241  /**
242   * The type of ads included in this transaction
243   */
244  @java.lang.SuppressWarnings("all")
245  public void setProductType(final String productType) {
246    this.productType = productType;
247  }
248
249  /**
250   * Monetary amount charged to the user for this transaction
251   */
252  @java.lang.SuppressWarnings("all")
253  public Integer getProviderAmount() {
254    return this.providerAmount;
255  }
256
257  /**
258   * Monetary amount charged to the user for this transaction
259   */
260  @java.lang.SuppressWarnings("all")
261  public void setProviderAmount(final Integer providerAmount) {
262    this.providerAmount = providerAmount;
263  }
264}