SavingsPlan interface
Interface representing a SavingsPlan.
Methods
get(string, string, Savings |
Get savings plan. |
list(string, Savings |
List savings plans in an order. |
list |
List savings plans. |
update(string, string, Savings |
Update savings plan. |
validate |
Validate savings plan patch. |
Method Details
get(string, string, SavingsPlanGetOptionalParams)
Get savings plan.
function get(savingsPlanOrderId: string, savingsPlanId: string, options?: SavingsPlanGetOptionalParams): Promise<SavingsPlanModel>
Parameters
- savingsPlanOrderId
-
string
Order ID of the savings plan
- savingsPlanId
-
string
ID of the savings plan
- options
- SavingsPlanGetOptionalParams
The options parameters.
Returns
Promise<SavingsPlanModel>
list(string, SavingsPlanListOptionalParams)
List savings plans in an order.
function list(savingsPlanOrderId: string, options?: SavingsPlanListOptionalParams): PagedAsyncIterableIterator<SavingsPlanModel, SavingsPlanModel[], PageSettings>
Parameters
- savingsPlanOrderId
-
string
Order ID of the savings plan
- options
- SavingsPlanListOptionalParams
The options parameters.
Returns
listAll(SavingsPlanListAllOptionalParams)
List savings plans.
function listAll(options?: SavingsPlanListAllOptionalParams): PagedAsyncIterableIterator<SavingsPlanModel, SavingsPlanModel[], PageSettings>
Parameters
- options
- SavingsPlanListAllOptionalParams
The options parameters.
Returns
update(string, string, SavingsPlanUpdateRequest, SavingsPlanUpdateOptionalParams)
Update savings plan.
function update(savingsPlanOrderId: string, savingsPlanId: string, body: SavingsPlanUpdateRequest, options?: SavingsPlanUpdateOptionalParams): Promise<SavingsPlanModel>
Parameters
- savingsPlanOrderId
-
string
Order ID of the savings plan
- savingsPlanId
-
string
ID of the savings plan
Request body for patching a savings plan order alias
- options
- SavingsPlanUpdateOptionalParams
The options parameters.
Returns
Promise<SavingsPlanModel>
validateUpdate(string, string, SavingsPlanUpdateValidateRequest, SavingsPlanValidateUpdateOptionalParams)
Validate savings plan patch.
function validateUpdate(savingsPlanOrderId: string, savingsPlanId: string, body: SavingsPlanUpdateValidateRequest, options?: SavingsPlanValidateUpdateOptionalParams): Promise<SavingsPlanValidateResponse>
Parameters
- savingsPlanOrderId
-
string
Order ID of the savings plan
- savingsPlanId
-
string
ID of the savings plan
Request body for validating a savings plan patch request
The options parameters.
Returns
Promise<SavingsPlanValidateResponse>