Class ByProjectKeyPaymentMethodsKeyByKeyDelete

All Implemented Interfaces:
ConflictingTrait<ByProjectKeyPaymentMethodsKeyByKeyDelete>, Deprecatable200Trait<ByProjectKeyPaymentMethodsKeyByKeyDelete>, ErrorableTrait<ByProjectKeyPaymentMethodsKeyByKeyDelete>, ExpandableTrait<ByProjectKeyPaymentMethodsKeyByKeyDelete>, VersionedTrait<ByProjectKeyPaymentMethodsKeyByKeyDelete>, 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()
            .withKey("{key}")
            .delete()
            .withVersion(version)
            .execute()