Class ByProjectKeyMePaymentsByIDDelete

All Implemented Interfaces:
ConflictingTrait<ByProjectKeyMePaymentsByIDDelete>, Deprecatable200Trait<ByProjectKeyMePaymentsByIDDelete>, ErrorableTrait<ByProjectKeyMePaymentsByIDDelete>, ExpandableTrait<ByProjectKeyMePaymentsByIDDelete>, VersionedTrait<ByProjectKeyMePaymentsByIDDelete>, ClientRequestCommand<MyPayment>, CreateHttpRequestCommand, HttpRequestCommand<MyPayment>, RequestCommand<MyPayment>

Deletes the Payment for a given id. You can only delete a Payment if it has no Transactions.



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