io.sphere.sdk.payments.commands.PaymentUpdateCommand Maven / Gradle / Ivy
package io.sphere.sdk.payments.commands;
import io.sphere.sdk.commands.UpdateAction;
import io.sphere.sdk.commands.UpdateCommandDsl;
import io.sphere.sdk.expansion.ExpansionPath;
import io.sphere.sdk.expansion.MetaModelExpansionDsl;
import io.sphere.sdk.models.Versioned;
import io.sphere.sdk.payments.Payment;
import io.sphere.sdk.payments.expansion.PaymentExpansionModel;
import java.util.Collections;
import java.util.List;
import java.util.function.Function;
/**
Updates a payment.
{@doc.gen list actions}
@see Payment
*/
public interface PaymentUpdateCommand extends UpdateCommandDsl, MetaModelExpansionDsl> {
static PaymentUpdateCommand of(final Versioned versioned, final UpdateAction updateAction) {
return of(versioned, Collections.singletonList(updateAction));
}
static PaymentUpdateCommand of(final Versioned versioned, final List extends UpdateAction> updateActions) {
return new PaymentUpdateCommandImpl(versioned, updateActions);
}
@Override
PaymentUpdateCommand plusExpansionPaths(final Function, ExpansionPath> m);
@Override
PaymentUpdateCommand withExpansionPaths(final Function, ExpansionPath> m);
@Override
PaymentUpdateCommand withExpansionPaths(final List> expansionPaths);
@Override
PaymentUpdateCommand withExpansionPaths(final ExpansionPath expansionPath);
@Override
PaymentUpdateCommand plusExpansionPaths(final List> expansionPaths);
@Override
PaymentUpdateCommand plusExpansionPaths(final ExpansionPath expansionPath);
@Override
PaymentUpdateCommand withVersion(final Versioned versioned);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy