Class ByProjectKeyPaymentsPost

java.lang.Object
io.vrap.rmf.base.client.ApiMethod<T,TResult>
io.vrap.rmf.base.client.BodyApiMethod<T,TResult,TBody>
io.vrap.rmf.base.client.TypeBodyApiMethod<ByProjectKeyPaymentsPost,Payment,PaymentDraft>
com.commercetools.api.client.ByProjectKeyPaymentsPost
All Implemented Interfaces:
Deprecatable201Trait<ByProjectKeyPaymentsPost>, ErrorableTrait<ByProjectKeyPaymentsPost>, ExpandableTrait<ByProjectKeyPaymentsPost>, io.vrap.rmf.base.client.ClientRequestCommand<Payment>, io.vrap.rmf.base.client.CreateHttpRequestCommand, io.vrap.rmf.base.client.HttpRequestCommand<Payment>, io.vrap.rmf.base.client.RequestCommand<Payment>

public class ByProjectKeyPaymentsPost extends io.vrap.rmf.base.client.TypeBodyApiMethod<ByProjectKeyPaymentsPost,Payment,PaymentDraft> implements ExpandableTrait<ByProjectKeyPaymentsPost>, Deprecatable201Trait<ByProjectKeyPaymentsPost>, ErrorableTrait<ByProjectKeyPaymentsPost>

Creating a Payment produces the PaymentCreated Message.



   CompletableFuture<ApiHttpResponse<com.commercetools.api.models.payment.Payment>> result = apiRoot
            .withProjectKey("{projectKey}")
            .payments()
            .post(null)
            .execute()