Class ByProjectKeyMePaymentsByIDDelete

java.lang.Object
io.vrap.rmf.base.client.ApiMethod<ByProjectKeyMePaymentsByIDDelete,MyPayment>
com.commercetools.api.client.ByProjectKeyMePaymentsByIDDelete
All Implemented Interfaces:
ConflictingTrait<ByProjectKeyMePaymentsByIDDelete>, Deprecatable200Trait<ByProjectKeyMePaymentsByIDDelete>, ErrorableTrait<ByProjectKeyMePaymentsByIDDelete>, ExpandableTrait<ByProjectKeyMePaymentsByIDDelete>, VersionedTrait<ByProjectKeyMePaymentsByIDDelete>, io.vrap.rmf.base.client.ClientRequestCommand<MyPayment>, io.vrap.rmf.base.client.CreateHttpRequestCommand, io.vrap.rmf.base.client.RequestCommand<MyPayment>

This endpoint can only delete a Payment when it has no Transactions.



   CompletableFuture<ApiHttpResponse<com.commercetools.api.models.me.MyPayment>> result = apiRoot
            .withProjectKey("{projectKey}")
            .me()
            .payments()
            .withId("{ID}")
            .delete()
            .withVersion(version)
            .execute()