001// Generated by delombok at Tue Dec 10 13:42:03 UTC 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;
024
025import java.util.ArrayList;
026import java.util.Collections;
027import java.util.Date;
028import java.util.List;
029import com.restfb.Facebook;
030import com.restfb.types.features.HasCreatedTime;
031
032/**
033 * Represents the <a href="https://developers.facebook.com/docs/graph-api/reference/payment">Payment Graph API type</a>.
034 */
035public class Payment extends FacebookType implements HasCreatedTime {
036  /**
037   * The consumer's first and last name along with their user id. May be omitted in some cases.
038   */
039  @Facebook
040  private User user;
041  /**
042   * The quantity of the product contained in the order
043   */
044  @Facebook
045  private Integer quantity;
046  /**
047   * The unique, optional app-created identifier passed into the JS function (255 character maximum)
048   */
049  @Facebook("request_id")
050  private String requestId;
051  /**
052   * The app associated with this payment
053   */
054  @Facebook
055  private Application application;
056  @Facebook
057  private List<Action> actions = new ArrayList<>();
058  @Facebook
059  private List<Item> items = new ArrayList<>();
060  /**
061   * Buyer's ISO Country Code, for tax purposes.
062   */
063  @Facebook
064  private String country;
065  /**
066   * The tax parameter specifies if a payment is subject to VAT and, if so, how the tax was paid.
067   * <p>
068   * This can take on the following values:
069   * </p>
070   * <ul>
071   * <li>{@code not_taxed}: There's no VAT on this payment because it came from outside the European Union.</li>
072   * <li>{@code already_paid}: The tax on this payment has already been paid by the user's mobile carrier or other
073   * upstream party</li>
074   * <li>{@code tax_remitted}: Facebook paid the VAT on this payment on your behalf. The tax amount will be deducted
075   * from your payout.</li>
076   * </ul>
077   */
078  @Facebook
079  private String tax;
080  /**
081   * The country determined by Facebook for tax calculation of this purchase, given as an ISO 3166-1 alpha-2 country
082   * code. Note: This field is for your information only, and it should not be used for any recalculation or
083   * reconciliation purposes. If tax is equal to not_taxed or already_paid this field will be omitted.
084   */
085  @Facebook("tax_country")
086  private String taxCountry;
087  /**
088   * The time the payment was originally created.
089   */
090  @Facebook("created_time")
091  private Date createdTime;
092  /**
093   * Exchange rate used to calculate payout amount which is remitted in USD.
094   */
095  @Facebook("payout_foreign_exchange_rate")
096  private Double payoutForeignExchangeRate;
097  @Facebook
098  private List<Dispute> disputes = new ArrayList<>();
099  /**
100   * Optional parameter that shows up when a payment is made by a payment tester listed in the app's dashboard. This
101   * represents a transaction that has not been charged to the consumer's payment instrument
102   */
103  @Facebook
104  private Boolean test;
105
106
107  /**
108   * The items associated with the payment.
109   */
110  public static class Item extends AbstractFacebookType {
111    /**
112     * The type of this item.
113     */
114    @Facebook
115    private String type;
116    /**
117     * The product URL of this item.
118     */
119    @Facebook
120    private String product;
121    /**
122     * The number of this item purchased.
123     */
124    @Facebook
125    private Integer quantity;
126
127    /**
128     * The type of this item.
129     */
130    @java.lang.SuppressWarnings("all")
131    public String getType() {
132      return this.type;
133    }
134
135    /**
136     * The type of this item.
137     */
138    @java.lang.SuppressWarnings("all")
139    public void setType(final String type) {
140      this.type = type;
141    }
142
143    /**
144     * The product URL of this item.
145     */
146    @java.lang.SuppressWarnings("all")
147    public String getProduct() {
148      return this.product;
149    }
150
151    /**
152     * The product URL of this item.
153     */
154    @java.lang.SuppressWarnings("all")
155    public void setProduct(final String product) {
156      this.product = product;
157    }
158
159    /**
160     * The number of this item purchased.
161     */
162    @java.lang.SuppressWarnings("all")
163    public Integer getQuantity() {
164      return this.quantity;
165    }
166
167    /**
168     * The number of this item purchased.
169     */
170    @java.lang.SuppressWarnings("all")
171    public void setQuantity(final Integer quantity) {
172      this.quantity = quantity;
173    }
174  }
175
176
177  /**
178   * The list of different action types that have occurred in this payment.
179   */
180  public static class Action extends AbstractFacebookType {
181    /**
182     * The type of this particular action. type can be:
183     * <ul>
184     * <li>{@code charge}: This designates the type of action that was taken on this payment was a charge. If the charge
185     * has a status of completed, then you should fulfill the order.</li>
186     * <li>{@code refund}: The refund type designates the payment has been refunded and the item sold to the consumer
187     * should be retracted if possible as you will no longer be paid out for this transaction.</li>
188     * <li>{@code chargeback}: A chargeback is initiated by a consumer with their bank disputing the payment in
189     * question. When a chargeback occurs, you should retract the in-game item from the costumer where possible as you
190     * will not be paid out for this order.</li>
191     * <li>{@code chargeback_reversal}: A chargeback_reversal occurs when a chargeback is retroactively reversed. In
192     * this case, you should reinstate the consumer's in-game item if possible as you will now be paid out for this
193     * payment.</li>
194     * <li>{@code decline}: A decline occurs when a funding source used to create a bundled transaction is declined at
195     * the moment of processing the payment. You should retract the in-game item from the consumer where possible as you
196     * will not be paid out for this order. More information on bundled transactions and declines can be found in
197     * Handling Disputes and Refunds.</li>
198     * </ul>
199     */
200    @Facebook
201    private String type;
202    /**
203     * The status for this particular action. status can be:
204     * <ul>
205     * <li>{@code initiated}: An initiated payment designates the payment was only initiated but not yet fully
206     * completed. You should not fulfill an order of this type with the consumer and you should not receive a real time
207     * update for a payment with this status. You will however get a real time update when the corresponding transaction
208     * is completed. Developers may see initiated state for certain payment methods which requires long time to settle,
209     * for example, certain methods require the costumer to fill-in a form online, print out a receipt and go to the
210     * bank offline to pay.</li>
211     * <li>{@code completed}: A completed status means the action was successfully completed. If the type was a charge
212     * you will want to fulfill the order to the consumer at this time. Similarly, if the action type was a refund you
213     * will want to retract the item from the consumer.</li>
214     * <li>{@code failed}: This designates a failed action for the underlying type. This value can be present for both a
215     * charge action type as well as a refund action type.</li>
216     * </ul>
217     */
218    @Facebook
219    private String status;
220    /**
221     * The amount of money covered by this action.
222     */
223    @Facebook
224    private String amount;
225    /**
226     * The currency of the above amount in this action.
227     */
228    @Facebook
229    private String currency;
230    /**
231     * When this action occurred.
232     */
233    @Facebook("time_created")
234    private Date timeCreated;
235    /**
236     * When this action was last updated.
237     */
238    @Facebook("time_updated")
239    private Date timeUpdated;
240    /**
241     * The amount reduced from your payout for any taxes remitted by Facebook. If {@code tax} is equal to
242     * {@code not_taxed} or {@code already_paid} this field will be omitted.
243     */
244    @Facebook("tax_amount")
245    private String taxAmount;
246
247    /**
248     * The type of this particular action. type can be:
249     * <ul>
250     * <li>{@code charge}: This designates the type of action that was taken on this payment was a charge. If the charge
251     * has a status of completed, then you should fulfill the order.</li>
252     * <li>{@code refund}: The refund type designates the payment has been refunded and the item sold to the consumer
253     * should be retracted if possible as you will no longer be paid out for this transaction.</li>
254     * <li>{@code chargeback}: A chargeback is initiated by a consumer with their bank disputing the payment in
255     * question. When a chargeback occurs, you should retract the in-game item from the costumer where possible as you
256     * will not be paid out for this order.</li>
257     * <li>{@code chargeback_reversal}: A chargeback_reversal occurs when a chargeback is retroactively reversed. In
258     * this case, you should reinstate the consumer's in-game item if possible as you will now be paid out for this
259     * payment.</li>
260     * <li>{@code decline}: A decline occurs when a funding source used to create a bundled transaction is declined at
261     * the moment of processing the payment. You should retract the in-game item from the consumer where possible as you
262     * will not be paid out for this order. More information on bundled transactions and declines can be found in
263     * Handling Disputes and Refunds.</li>
264     * </ul>
265     */
266    @java.lang.SuppressWarnings("all")
267    public String getType() {
268      return this.type;
269    }
270
271    /**
272     * The type of this particular action. type can be:
273     * <ul>
274     * <li>{@code charge}: This designates the type of action that was taken on this payment was a charge. If the charge
275     * has a status of completed, then you should fulfill the order.</li>
276     * <li>{@code refund}: The refund type designates the payment has been refunded and the item sold to the consumer
277     * should be retracted if possible as you will no longer be paid out for this transaction.</li>
278     * <li>{@code chargeback}: A chargeback is initiated by a consumer with their bank disputing the payment in
279     * question. When a chargeback occurs, you should retract the in-game item from the costumer where possible as you
280     * will not be paid out for this order.</li>
281     * <li>{@code chargeback_reversal}: A chargeback_reversal occurs when a chargeback is retroactively reversed. In
282     * this case, you should reinstate the consumer's in-game item if possible as you will now be paid out for this
283     * payment.</li>
284     * <li>{@code decline}: A decline occurs when a funding source used to create a bundled transaction is declined at
285     * the moment of processing the payment. You should retract the in-game item from the consumer where possible as you
286     * will not be paid out for this order. More information on bundled transactions and declines can be found in
287     * Handling Disputes and Refunds.</li>
288     * </ul>
289     */
290    @java.lang.SuppressWarnings("all")
291    public void setType(final String type) {
292      this.type = type;
293    }
294
295    /**
296     * The status for this particular action. status can be:
297     * <ul>
298     * <li>{@code initiated}: An initiated payment designates the payment was only initiated but not yet fully
299     * completed. You should not fulfill an order of this type with the consumer and you should not receive a real time
300     * update for a payment with this status. You will however get a real time update when the corresponding transaction
301     * is completed. Developers may see initiated state for certain payment methods which requires long time to settle,
302     * for example, certain methods require the costumer to fill-in a form online, print out a receipt and go to the
303     * bank offline to pay.</li>
304     * <li>{@code completed}: A completed status means the action was successfully completed. If the type was a charge
305     * you will want to fulfill the order to the consumer at this time. Similarly, if the action type was a refund you
306     * will want to retract the item from the consumer.</li>
307     * <li>{@code failed}: This designates a failed action for the underlying type. This value can be present for both a
308     * charge action type as well as a refund action type.</li>
309     * </ul>
310     */
311    @java.lang.SuppressWarnings("all")
312    public String getStatus() {
313      return this.status;
314    }
315
316    /**
317     * The status for this particular action. status can be:
318     * <ul>
319     * <li>{@code initiated}: An initiated payment designates the payment was only initiated but not yet fully
320     * completed. You should not fulfill an order of this type with the consumer and you should not receive a real time
321     * update for a payment with this status. You will however get a real time update when the corresponding transaction
322     * is completed. Developers may see initiated state for certain payment methods which requires long time to settle,
323     * for example, certain methods require the costumer to fill-in a form online, print out a receipt and go to the
324     * bank offline to pay.</li>
325     * <li>{@code completed}: A completed status means the action was successfully completed. If the type was a charge
326     * you will want to fulfill the order to the consumer at this time. Similarly, if the action type was a refund you
327     * will want to retract the item from the consumer.</li>
328     * <li>{@code failed}: This designates a failed action for the underlying type. This value can be present for both a
329     * charge action type as well as a refund action type.</li>
330     * </ul>
331     */
332    @java.lang.SuppressWarnings("all")
333    public void setStatus(final String status) {
334      this.status = status;
335    }
336
337    /**
338     * The amount of money covered by this action.
339     */
340    @java.lang.SuppressWarnings("all")
341    public String getAmount() {
342      return this.amount;
343    }
344
345    /**
346     * The amount of money covered by this action.
347     */
348    @java.lang.SuppressWarnings("all")
349    public void setAmount(final String amount) {
350      this.amount = amount;
351    }
352
353    /**
354     * The currency of the above amount in this action.
355     */
356    @java.lang.SuppressWarnings("all")
357    public String getCurrency() {
358      return this.currency;
359    }
360
361    /**
362     * The currency of the above amount in this action.
363     */
364    @java.lang.SuppressWarnings("all")
365    public void setCurrency(final String currency) {
366      this.currency = currency;
367    }
368
369    /**
370     * When this action occurred.
371     */
372    @java.lang.SuppressWarnings("all")
373    public Date getTimeCreated() {
374      return this.timeCreated;
375    }
376
377    /**
378     * When this action occurred.
379     */
380    @java.lang.SuppressWarnings("all")
381    public void setTimeCreated(final Date timeCreated) {
382      this.timeCreated = timeCreated;
383    }
384
385    /**
386     * When this action was last updated.
387     */
388    @java.lang.SuppressWarnings("all")
389    public Date getTimeUpdated() {
390      return this.timeUpdated;
391    }
392
393    /**
394     * When this action was last updated.
395     */
396    @java.lang.SuppressWarnings("all")
397    public void setTimeUpdated(final Date timeUpdated) {
398      this.timeUpdated = timeUpdated;
399    }
400
401    /**
402     * The amount reduced from your payout for any taxes remitted by Facebook. If {@code tax} is equal to
403     * {@code not_taxed} or {@code already_paid} this field will be omitted.
404     */
405    @java.lang.SuppressWarnings("all")
406    public String getTaxAmount() {
407      return this.taxAmount;
408    }
409
410    /**
411     * The amount reduced from your payout for any taxes remitted by Facebook. If {@code tax} is equal to
412     * {@code not_taxed} or {@code already_paid} this field will be omitted.
413     */
414    @java.lang.SuppressWarnings("all")
415    public void setTaxAmount(final String taxAmount) {
416      this.taxAmount = taxAmount;
417    }
418  }
419
420
421  /**
422   * Contains the information related to a dispute, including the user_comment and user_email which is provided by the
423   * consumer when the dispute is initiated. Additionally, contains the current status of the dispute, the time the
424   * dispute was created an an resolution reason, if available.
425   */
426  public static class Dispute extends AbstractFacebookType {
427    /**
428     * Comment provided by the consumer when the dispute is initiated.
429     */
430    @Facebook("user_comment")
431    private String userComment;
432    /**
433     * Email provided by the consumer when the dispute is initiated.
434     */
435    @Facebook("user_email")
436    private String userEmail;
437    /**
438     * The time the dispute was created.
439     */
440    @Facebook("time_created")
441    private Date timeCreated;
442    /**
443     * Current status of the dispute.
444     */
445    @Facebook
446    private String status;
447    /**
448     * The reason the developer or Facebook gave to resolve the dispute, after it has been resolved.
449     */
450    @Facebook
451    private String reason;
452
453    /**
454     * Comment provided by the consumer when the dispute is initiated.
455     */
456    @java.lang.SuppressWarnings("all")
457    public String getUserComment() {
458      return this.userComment;
459    }
460
461    /**
462     * Comment provided by the consumer when the dispute is initiated.
463     */
464    @java.lang.SuppressWarnings("all")
465    public void setUserComment(final String userComment) {
466      this.userComment = userComment;
467    }
468
469    /**
470     * Email provided by the consumer when the dispute is initiated.
471     */
472    @java.lang.SuppressWarnings("all")
473    public String getUserEmail() {
474      return this.userEmail;
475    }
476
477    /**
478     * Email provided by the consumer when the dispute is initiated.
479     */
480    @java.lang.SuppressWarnings("all")
481    public void setUserEmail(final String userEmail) {
482      this.userEmail = userEmail;
483    }
484
485    /**
486     * The time the dispute was created.
487     */
488    @java.lang.SuppressWarnings("all")
489    public Date getTimeCreated() {
490      return this.timeCreated;
491    }
492
493    /**
494     * The time the dispute was created.
495     */
496    @java.lang.SuppressWarnings("all")
497    public void setTimeCreated(final Date timeCreated) {
498      this.timeCreated = timeCreated;
499    }
500
501    /**
502     * Current status of the dispute.
503     */
504    @java.lang.SuppressWarnings("all")
505    public String getStatus() {
506      return this.status;
507    }
508
509    /**
510     * Current status of the dispute.
511     */
512    @java.lang.SuppressWarnings("all")
513    public void setStatus(final String status) {
514      this.status = status;
515    }
516
517    /**
518     * The reason the developer or Facebook gave to resolve the dispute, after it has been resolved.
519     */
520    @java.lang.SuppressWarnings("all")
521    public String getReason() {
522      return this.reason;
523    }
524
525    /**
526     * The reason the developer or Facebook gave to resolve the dispute, after it has been resolved.
527     */
528    @java.lang.SuppressWarnings("all")
529    public void setReason(final String reason) {
530      this.reason = reason;
531    }
532  }
533
534  /**
535   * The items associated with the payment.
536   * 
537   * @return list of items
538   */
539  public List<Item> getItems() {
540    return Collections.unmodifiableList(items);
541  }
542
543  public boolean addItem(Item item) {
544    return items.add(item);
545  }
546
547  public boolean removeItem(Item item) {
548    return items.remove(item);
549  }
550
551  /**
552   * The list of different action types that have occurred in this payment.
553   * 
554   * @return list of actions
555   */
556  public List<Action> getActions() {
557    return Collections.unmodifiableList(actions);
558  }
559
560  public boolean addAction(Action action) {
561    return actions.add(action);
562  }
563
564  public boolean removeAction(Action action) {
565    return actions.remove(action);
566  }
567
568  /**
569   * Contains the information related to a dispute, including the {@code user_comment} and {@code user_email} which is
570   * provided by the consumer when the dispute is initiated. Additionally, contains the current status of the dispute,
571   * the time the dispute was created an an resolution reason, if available.
572   * 
573   * @return list of disputes
574   */
575  public List<Dispute> getDisputes() {
576    return Collections.unmodifiableList(disputes);
577  }
578
579  public boolean addDispute(Dispute dispute) {
580    return disputes.add(dispute);
581  }
582
583  public boolean removeDispute(Dispute dispute) {
584    return disputes.remove(dispute);
585  }
586
587  /**
588   * The consumer's first and last name along with their user id. May be omitted in some cases.
589   */
590  @java.lang.SuppressWarnings("all")
591  public User getUser() {
592    return this.user;
593  }
594
595  /**
596   * The consumer's first and last name along with their user id. May be omitted in some cases.
597   */
598  @java.lang.SuppressWarnings("all")
599  public void setUser(final User user) {
600    this.user = user;
601  }
602
603  /**
604   * The quantity of the product contained in the order
605   */
606  @java.lang.SuppressWarnings("all")
607  public Integer getQuantity() {
608    return this.quantity;
609  }
610
611  /**
612   * The quantity of the product contained in the order
613   */
614  @java.lang.SuppressWarnings("all")
615  public void setQuantity(final Integer quantity) {
616    this.quantity = quantity;
617  }
618
619  /**
620   * The unique, optional app-created identifier passed into the JS function (255 character maximum)
621   */
622  @java.lang.SuppressWarnings("all")
623  public String getRequestId() {
624    return this.requestId;
625  }
626
627  /**
628   * The unique, optional app-created identifier passed into the JS function (255 character maximum)
629   */
630  @java.lang.SuppressWarnings("all")
631  public void setRequestId(final String requestId) {
632    this.requestId = requestId;
633  }
634
635  /**
636   * The app associated with this payment
637   */
638  @java.lang.SuppressWarnings("all")
639  public Application getApplication() {
640    return this.application;
641  }
642
643  /**
644   * The app associated with this payment
645   */
646  @java.lang.SuppressWarnings("all")
647  public void setApplication(final Application application) {
648    this.application = application;
649  }
650
651  /**
652   * Buyer's ISO Country Code, for tax purposes.
653   */
654  @java.lang.SuppressWarnings("all")
655  public String getCountry() {
656    return this.country;
657  }
658
659  /**
660   * Buyer's ISO Country Code, for tax purposes.
661   */
662  @java.lang.SuppressWarnings("all")
663  public void setCountry(final String country) {
664    this.country = country;
665  }
666
667  /**
668   * The tax parameter specifies if a payment is subject to VAT and, if so, how the tax was paid.
669   * <p>
670   * This can take on the following values:
671   * </p>
672   * <ul>
673   * <li>{@code not_taxed}: There's no VAT on this payment because it came from outside the European Union.</li>
674   * <li>{@code already_paid}: The tax on this payment has already been paid by the user's mobile carrier or other
675   * upstream party</li>
676   * <li>{@code tax_remitted}: Facebook paid the VAT on this payment on your behalf. The tax amount will be deducted
677   * from your payout.</li>
678   * </ul>
679   */
680  @java.lang.SuppressWarnings("all")
681  public String getTax() {
682    return this.tax;
683  }
684
685  /**
686   * The tax parameter specifies if a payment is subject to VAT and, if so, how the tax was paid.
687   * <p>
688   * This can take on the following values:
689   * </p>
690   * <ul>
691   * <li>{@code not_taxed}: There's no VAT on this payment because it came from outside the European Union.</li>
692   * <li>{@code already_paid}: The tax on this payment has already been paid by the user's mobile carrier or other
693   * upstream party</li>
694   * <li>{@code tax_remitted}: Facebook paid the VAT on this payment on your behalf. The tax amount will be deducted
695   * from your payout.</li>
696   * </ul>
697   */
698  @java.lang.SuppressWarnings("all")
699  public void setTax(final String tax) {
700    this.tax = tax;
701  }
702
703  /**
704   * The country determined by Facebook for tax calculation of this purchase, given as an ISO 3166-1 alpha-2 country
705   * code. Note: This field is for your information only, and it should not be used for any recalculation or
706   * reconciliation purposes. If tax is equal to not_taxed or already_paid this field will be omitted.
707   */
708  @java.lang.SuppressWarnings("all")
709  public String getTaxCountry() {
710    return this.taxCountry;
711  }
712
713  /**
714   * The country determined by Facebook for tax calculation of this purchase, given as an ISO 3166-1 alpha-2 country
715   * code. Note: This field is for your information only, and it should not be used for any recalculation or
716   * reconciliation purposes. If tax is equal to not_taxed or already_paid this field will be omitted.
717   */
718  @java.lang.SuppressWarnings("all")
719  public void setTaxCountry(final String taxCountry) {
720    this.taxCountry = taxCountry;
721  }
722
723  /**
724   * The time the payment was originally created.
725   */
726  @Override
727  @java.lang.SuppressWarnings("all")
728  public Date getCreatedTime() {
729    return this.createdTime;
730  }
731
732  /**
733   * The time the payment was originally created.
734   */
735  @java.lang.SuppressWarnings("all")
736  public void setCreatedTime(final Date createdTime) {
737    this.createdTime = createdTime;
738  }
739
740  /**
741   * Exchange rate used to calculate payout amount which is remitted in USD.
742   */
743  @java.lang.SuppressWarnings("all")
744  public Double getPayoutForeignExchangeRate() {
745    return this.payoutForeignExchangeRate;
746  }
747
748  /**
749   * Exchange rate used to calculate payout amount which is remitted in USD.
750   */
751  @java.lang.SuppressWarnings("all")
752  public void setPayoutForeignExchangeRate(final Double payoutForeignExchangeRate) {
753    this.payoutForeignExchangeRate = payoutForeignExchangeRate;
754  }
755
756  /**
757   * Optional parameter that shows up when a payment is made by a payment tester listed in the app's dashboard. This
758   * represents a transaction that has not been charged to the consumer's payment instrument
759   */
760  @java.lang.SuppressWarnings("all")
761  public Boolean getTest() {
762    return this.test;
763  }
764
765  /**
766   * Optional parameter that shows up when a payment is made by a payment tester listed in the app's dashboard. This
767   * represents a transaction that has not been charged to the consumer's payment instrument
768   */
769  @java.lang.SuppressWarnings("all")
770  public void setTest(final Boolean test) {
771    this.test = test;
772  }
773}