io.sphere.sdk.payments.commands.PaymentCreateCommand Maven / Gradle / Ivy
package io.sphere.sdk.payments.commands;
import io.sphere.sdk.commands.DraftBasedCreateCommand;
import io.sphere.sdk.expansion.MetaModelReferenceExpansionDsl;
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.PaymentCreateCommandIntegrationTest#payingPerCreditCart()}
*
* @see Payment
* @see io.sphere.sdk.payments.messages.PaymentCreatedMessage
*/
public interface PaymentCreateCommand extends DraftBasedCreateCommand, MetaModelReferenceExpansionDsl> {
static PaymentCreateCommand of(final PaymentDraft PaymentDraft) {
return new PaymentCreateCommandImpl(PaymentDraft);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy