public Account_EstimateInvoice ( string mode, int LinodeID = null, int PaymentTerm = null, int PlanID = null ) : void | ||
mode | string | This is one of the following options: 'linode_new', 'linode_resize', or 'nodebalancer_new'. |
LinodeID | int | This is the LinodeID you want to resize and is required for mode 'linode_resize'. |
PaymentTerm | int | Subscription term in months. One of: 1, 12, or 24. This is required for modes 'linode_new' and 'nodebalancer_new'. |
PlanID | int | The desired PlanID available from avail.LinodePlans(). This is required for modes 'linode_new' and 'linode_resize'. |
return | void |
public void Account_EstimateInvoice(
string mode,
int? LinodeID = null,
int? PaymentTerm = null,
int? PlanID = null)
{
var myParams = new Dictionary<string, string>();
myParams.Add("mode", mode);
if (LinodeID != null)
myParams.Add("LinodeID", LinodeID.Value.ToString(CultureInfo.InvariantCulture));
if (PaymentTerm != null)
myParams.Add("PaymentTerm", PaymentTerm.Value.ToString(CultureInfo.InvariantCulture));
if (PlanID != null)
myParams.Add("PlanID", PlanID.Value.ToString(CultureInfo.InvariantCulture));
GetResponse<object>("account.estimateinvoice", myParams);
}