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