io.sphere.sdk.payments.commands.PaymentCreateCommand Maven / Gradle / Ivy
package io.sphere.sdk.payments.commands;
import io.sphere.sdk.commands.CreateCommand;
import io.sphere.sdk.expansion.MetaModelExpansionDsl;
import io.sphere.sdk.payments.Payment;
import io.sphere.sdk.payments.PaymentDraft;
import io.sphere.sdk.payments.expansion.PaymentExpansionModel;
/**
* Creates a payment.
*
* {@include.example io.sphere.sdk.payments.commands.PaymentCreateCommandTest#payingPerCreditCart()}
*
* @see Payment
* @see io.sphere.sdk.payments.messages.PaymentCreatedMessage
*/
public interface PaymentCreateCommand extends CreateCommand, MetaModelExpansionDsl> {
static PaymentCreateCommand of(final PaymentDraft PaymentDraft) {
return new PaymentCreateCommandImpl(PaymentDraft);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy