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

io.sphere.sdk.payments.commands.updateactions.ChangeTransactionInteractionId Maven / Gradle / Ivy

package io.sphere.sdk.payments.commands.updateactions;

import io.sphere.sdk.commands.UpdateActionImpl;
import io.sphere.sdk.payments.Payment;

/**
 * Changes the interactionId of a transaction. It should correspond to an Id of an interface interaction.
 *
 * {@include.example io.sphere.sdk.payments.commands.PaymentUpdateCommandTest#changeTransactionInteractionId()}
 */
public class ChangeTransactionInteractionId extends UpdateActionImpl {
    private String interactionId;
    private String transactionId;

    private ChangeTransactionInteractionId(final String interactionId, final String transactionId) {
        super("changeTransactionInteractionId");
        this.interactionId = interactionId;
        this.transactionId = transactionId;
    }

    public static ChangeTransactionInteractionId of(final String interactionId, final String transactionId) {
        return new ChangeTransactionInteractionId(interactionId, transactionId);
    }

    public String getInteractionId() {
        return interactionId;
    }

    public String getTransactionId() {
        return transactionId;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy