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

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

There is a newer version: 2.16.0
Show newest version
package io.sphere.sdk.payments;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import io.sphere.sdk.annotations.ResourceValue;
import io.sphere.sdk.types.CustomFields;

import javax.annotation.Nullable;
import javax.money.MonetaryAmount;
import java.time.ZonedDateTime;

@ResourceValue
@JsonDeserialize(as = TransactionImpl.class)
public interface Transaction {
    @Nullable
    ZonedDateTime getTimestamp();

    TransactionType getType();

    MonetaryAmount getAmount();

    @Nullable
    String getInteractionId();

    String getId();

    TransactionState getState();

    @Nullable
    CustomFields getCustom();

    static String referenceTypeId() {
        return "transaction";
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy