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

io.sphere.sdk.payments.TransactionImpl Maven / Gradle / Ivy

The newest version!
package io.sphere.sdk.payments;

import com.fasterxml.jackson.annotation.JsonCreator;
import io.sphere.sdk.models.Base;
import io.sphere.sdk.types.CustomFields;
import java.lang.String;
import java.time.ZonedDateTime;
import javax.annotation.Generated;
import javax.annotation.Nullable;
import javax.money.MonetaryAmount;

@Generated(
    value = "io.sphere.sdk.annotations.processors.generators.ResourceValueImplGenerator",
    comments = "Generated from: io.sphere.sdk.payments.Transaction"
)
final class TransactionImpl extends Base implements Transaction {
  private MonetaryAmount amount;

  @Nullable
  private CustomFields custom;

  private String id;

  @Nullable
  private String interactionId;

  private TransactionState state;

  @Nullable
  private ZonedDateTime timestamp;

  private TransactionType type;

  @JsonCreator
  TransactionImpl(final MonetaryAmount amount, @Nullable final CustomFields custom, final String id,
      @Nullable final String interactionId, final TransactionState state,
      @Nullable final ZonedDateTime timestamp, final TransactionType type) {
    this.amount = amount;
    this.custom = custom;
    this.id = id;
    this.interactionId = interactionId;
    this.state = state;
    this.timestamp = timestamp;
    this.type = type;
  }

  public MonetaryAmount getAmount() {
    return amount;
  }

  @Nullable
  public CustomFields getCustom() {
    return custom;
  }

  public String getId() {
    return id;
  }

  @Nullable
  public String getInteractionId() {
    return interactionId;
  }

  public TransactionState getState() {
    return state;
  }

  @Nullable
  public ZonedDateTime getTimestamp() {
    return timestamp;
  }

  public TransactionType getType() {
    return type;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy