@Generated public class BudgetsAPI extends Object
Constructor and Description |
---|
BudgetsAPI(ApiClient apiClient)
Regular-use constructor
|
BudgetsAPI(BudgetsService mock)
Constructor for mocks
|
Modifier and Type | Method and Description |
---|---|
WrappedBudgetWithStatus |
create(Budget budget) |
WrappedBudgetWithStatus |
create(WrappedBudget request)
Create a new budget.
|
void |
delete(DeleteBudgetRequest request)
Delete budget.
|
void |
delete(String budgetId) |
WrappedBudgetWithStatus |
get(GetBudgetRequest request)
Get budget and its status.
|
WrappedBudgetWithStatus |
get(String budgetId) |
BudgetsService |
impl() |
Iterable<BudgetWithStatus> |
list()
Get all budgets.
|
void |
update(String budgetId,
Budget budget) |
void |
update(WrappedBudget request)
Modify budget.
|
public BudgetsAPI(ApiClient apiClient)
public BudgetsAPI(BudgetsService mock)
public WrappedBudgetWithStatus create(Budget budget)
public WrappedBudgetWithStatus create(WrappedBudget request)
Creates a new budget in the specified account.
public void delete(String budgetId)
public void delete(DeleteBudgetRequest request)
Deletes the budget specified by its UUID.
public WrappedBudgetWithStatus get(String budgetId)
public WrappedBudgetWithStatus get(GetBudgetRequest request)
Gets the budget specified by its UUID, including noncumulative status for each day that the budget is configured to include.
public Iterable<BudgetWithStatus> list()
Gets all budgets associated with this account, including noncumulative status for each day that the budget is configured to include.
public void update(WrappedBudget request)
Modifies a budget in this account. Budget properties are completely overwritten.
public BudgetsService impl()
Copyright © 2023. All rights reserved.