The amount allocated to the budget.
Clears the remaining amount of the budget.
true
if the operation is successful, otherwise false
.
The date and time when the budget was created, in UTC.
The identifier of the customer associated with the budget.
The expiration date and time of the budget, in UTC.
Gets the remaining amount of the budget.
The remaining amount as a NumberInstance
.
The identifier of the budget.
Checks if the budget is still valid.
true
if the budget is valid, otherwise false
.
The ID of the Order Product Variant that the budget was purchased with, if applicable.
The type of the budget.
The usage history of the budget, represented as an array of MsBudgetUsageHistory
objects.
Uses the specified amount from the budget for an order.
The amount to use from the budget.
The order object associated with the usage.
Additional details about the usage.
true
if the operation is successful, otherwise false
.
Interface representing a budget object within the MegaScript context.