Class ByProjectKeyPaymentMethodsByIDDelete

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

Deletes a PaymentMethod in the Project. This request generates the PaymentMethodDeleted Message.



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