Interface IncreaseRequestServiceAsync
-
- All Implemented Interfaces:
public interface IncreaseRequestServiceAsync
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceIncreaseRequestServiceAsync.WithRawResponseA view of IncreaseRequestServiceAsync that provides access to raw HTTP responses for each method.
-
Method Summary
-
-
Method Detail
-
withRawResponse
abstract IncreaseRequestServiceAsync.WithRawResponse withRawResponse()
Returns a view of this service that provides access to raw HTTP responses for each method.
-
withOptions
abstract IncreaseRequestServiceAsync withOptions(Consumer<ClientOptions.Builder> modifier)
Returns a view of this service with the given option modifications applied.
The original service is not modified.
-
retrieve
CompletableFuture<SpendLimitIncreaseRequest> retrieve(String spendLimitIncreaseRequestId)
Retrieve a spend limit increase request.
While
pending, the response includes a livespend_summaryfor the requester at the request's period.
-
retrieve
CompletableFuture<SpendLimitIncreaseRequest> retrieve(String spendLimitIncreaseRequestId, IncreaseRequestRetrieveParams params, RequestOptions requestOptions)
-
retrieve
CompletableFuture<SpendLimitIncreaseRequest> retrieve(String spendLimitIncreaseRequestId, IncreaseRequestRetrieveParams params)
-
retrieve
abstract CompletableFuture<SpendLimitIncreaseRequest> retrieve(IncreaseRequestRetrieveParams params, RequestOptions requestOptions)
-
retrieve
CompletableFuture<SpendLimitIncreaseRequest> retrieve(IncreaseRequestRetrieveParams params)
-
retrieve
CompletableFuture<SpendLimitIncreaseRequest> retrieve(String spendLimitIncreaseRequestId, RequestOptions requestOptions)
-
list
CompletableFuture<IncreaseRequestListPageAsync> list()
List spend limit increase requests, most recent first.
Pending requests include a live
spend_summaryfor the requester. Requests whose requester is no longer a member are excluded.
-
list
abstract CompletableFuture<IncreaseRequestListPageAsync> list(IncreaseRequestListParams params, RequestOptions requestOptions)
-
list
CompletableFuture<IncreaseRequestListPageAsync> list(RequestOptions requestOptions)
-
approve
CompletableFuture<IncreaseRequestApproveResponse> approve(String spendLimitIncreaseRequestId, IncreaseRequestApproveParams params)
Approve a pending spend limit increase request.
Writes a per-user spend limit at
amountfor the requester and transitions the request toapproved.perioddefaults to the period the member was blocked on. Anthropic emails the requester unlesssuppress_notificationis set.
-
approve
CompletableFuture<IncreaseRequestApproveResponse> approve(String spendLimitIncreaseRequestId, IncreaseRequestApproveParams params, RequestOptions requestOptions)
-
approve
CompletableFuture<IncreaseRequestApproveResponse> approve(IncreaseRequestApproveParams params)
-
approve
abstract CompletableFuture<IncreaseRequestApproveResponse> approve(IncreaseRequestApproveParams params, RequestOptions requestOptions)
-
deny
CompletableFuture<SpendLimitIncreaseRequest> deny(String spendLimitIncreaseRequestId)
Deny a pending spend limit increase request.
Idempotent on
denied; denying an already-approvedrequest returnsAnthropic emails the requester unless
suppress_notificationis set.
-
deny
CompletableFuture<SpendLimitIncreaseRequest> deny(String spendLimitIncreaseRequestId, IncreaseRequestDenyParams params, RequestOptions requestOptions)
-
deny
CompletableFuture<SpendLimitIncreaseRequest> deny(String spendLimitIncreaseRequestId, IncreaseRequestDenyParams params)
-
deny
abstract CompletableFuture<SpendLimitIncreaseRequest> deny(IncreaseRequestDenyParams params, RequestOptions requestOptions)
-
deny
CompletableFuture<SpendLimitIncreaseRequest> deny(String spendLimitIncreaseRequestId, RequestOptions requestOptions)
-
-
-
-