Austin.Linode.LinodeClient.Account_EstimateInvoice C# (CSharp) Метод

Account_EstimateInvoice() публичный Метод

Estimates the invoice for adding a new Linode or NodeBalancer as well as resizing a Linode. This returns two fields: PRICE which is the estimated cost of the invoice, and INVOICE_TO which is the date invoice would be though with timezone set to America/New_York
possible errors: VALIDATION
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'.
Результат 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);
        }