All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.recurly.v3.requests.ExternalTransaction Maven / Gradle / Ivy

There is a newer version: 4.58.0
Show newest version
/**
 * This file is automatically created by Recurly's OpenAPI generation process and thus any edits you
 * make by hand will be lost. If you wish to make a change to this file, please create a Github
 * issue explaining the changes you need and we will usher them to the appropriate places.
 */
package com.recurly.v3.requests;

import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import com.recurly.v3.Constants;
import com.recurly.v3.Request;
import com.recurly.v3.resources.*;
import java.math.BigDecimal;
import org.joda.time.DateTime;

public class ExternalTransaction extends Request {

  /** The total amount of the transcaction. Cannot excceed the invoice total. */
  @SerializedName("amount")
  @Expose
  private BigDecimal amount;

  /** Datetime that the external payment was collected. Defaults to current datetime. */
  @SerializedName("collected_at")
  @Expose
  private DateTime collectedAt;

  /** Used as the transaction's description. */
  @SerializedName("description")
  @Expose
  private String description;

  /** Payment method used for external transaction. */
  @SerializedName("payment_method")
  @Expose
  private Constants.ExternalPaymentMethod paymentMethod;

  /** The total amount of the transcaction. Cannot excceed the invoice total. */
  public BigDecimal getAmount() {
    return this.amount;
  }

  /** @param amount The total amount of the transcaction. Cannot excceed the invoice total. */
  public void setAmount(final BigDecimal amount) {
    this.amount = amount;
  }

  /** Datetime that the external payment was collected. Defaults to current datetime. */
  public DateTime getCollectedAt() {
    return this.collectedAt;
  }

  /**
   * @param collectedAt Datetime that the external payment was collected. Defaults to current
   *     datetime.
   */
  public void setCollectedAt(final DateTime collectedAt) {
    this.collectedAt = collectedAt;
  }

  /** Used as the transaction's description. */
  public String getDescription() {
    return this.description;
  }

  /** @param description Used as the transaction's description. */
  public void setDescription(final String description) {
    this.description = description;
  }

  /** Payment method used for external transaction. */
  public Constants.ExternalPaymentMethod getPaymentMethod() {
    return this.paymentMethod;
  }

  /** @param paymentMethod Payment method used for external transaction. */
  public void setPaymentMethod(final Constants.ExternalPaymentMethod paymentMethod) {
    this.paymentMethod = paymentMethod;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy