io.sphere.sdk.payments.commands.PaymentCreateCommand Maven / Gradle / Ivy
/*
This class has been generated by class io.sphere.sdk.annotations.processors.CreateCommandEndpointAnnotationProcessor
induced by the annotation io.sphere.sdk.annotations.HasCreateCommand.
in the source class io.sphere.sdk.payments.Payment.
To render this class the handlebars template 'commands/createCommandInterface.hbs' has been used.
*/
package io.sphere.sdk.payments.commands;
import io.sphere.sdk.commands.DraftBasedCreateCommandDsl;
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;
/**
Command object to create a {@link Payment}.
{@include.example io.sphere.sdk.payments.commands.PaymentCreateCommandIntegrationTest#payingPerCreditCart() }
@see PaymentDraft
@see Payment
*/
public interface PaymentCreateCommand extends DraftBasedCreateCommandDsl, MetaModelReferenceExpansionDsl> {
/**
Creates a command object to create a {@link Payment}.
@param draft template to create the new object
@return a new create command
*/
static PaymentCreateCommand of(final PaymentDraft draft) {
return new PaymentCreateCommandImpl(draft);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy