Beispiel #1
0
 /// <remarks/>
 public void OrderResourceRenewalsAsync(string sCLTRID, Credential credential, Shopper shopper, ResourceRenewal[] items, string sROID, object userState) {
     if ((this.OrderResourceRenewalsOperationCompleted == null)) {
         this.OrderResourceRenewalsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnOrderResourceRenewalsOperationCompleted);
     }
     this.InvokeAsync("OrderResourceRenewals", new object[] {
                 sCLTRID,
                 credential,
                 shopper,
                 items,
                 sROID}, this.OrderResourceRenewalsOperationCompleted, userState);
 }
Beispiel #2
0
 /// <remarks/>
 public void OrderResourceRenewalsAsync(string sCLTRID, Credential credential, Shopper shopper, ResourceRenewal[] items, string sROID) {
     this.OrderResourceRenewalsAsync(sCLTRID, credential, shopper, items, sROID, null);
 }
Beispiel #3
0
 /// <remarks/>
 public void OrderPrivateDomainRenewalsAsync(string sCLTRID, Credential credential, Shopper shopper, DomainRenewal[] items, ResourceRenewal[] dbpItems, string sROID) {
     this.OrderPrivateDomainRenewalsAsync(sCLTRID, credential, shopper, items, dbpItems, sROID, null);
 }
Beispiel #4
0
 public string OrderResourceRenewals(string sCLTRID, Credential credential, Shopper shopper, ResourceRenewal[] items, string sROID) {
     object[] results = this.Invoke("OrderResourceRenewals", new object[] {
                 sCLTRID,
                 credential,
                 shopper,
                 items,
                 sROID});
     return ((string)(results[0]));
 }
		private void Renew()
		{
			DomainRenewal[] drArray = new DomainRenewal[2];
			for (int i = 0; i < domainNames.Length; i++)
			{
				string tld = Helpers.GetTopLevelDomain(domainNames[i]);
				drArray[i] = new DomainRenewal()
				{
					resourceid = pollResponse.Items.Find(item => item.ROID == "domain" && item.RIID == i.ToString()).ResourceID,
					tld = tld,
					sld = Helpers.GetSecondLevelDomain(domainNames[i]),
					period = 1,
					order = new OrderItem()
					{
						productid = (int)GetProductID(tld, 1, true),
						duration = 1,
						quantity = 1,
						riid = i.ToString()
					}
				};
			}

			PollResponse p = new PollResponse(
				wapi.Poll(this.orderPrivacyTransactionID, cred, null));

			Shopper shopper = new Shopper() { user = userID.ToString(), dbpuser = dbpuserID.ToString(), dbppwd = "defgh" };

			ResourceRenewal rr = new ResourceRenewal()
			{
				resourceid = p.Items[0].ResourceID,
				order = new OrderItem()
				{
					productid = (int)ProductID.PrivateRegistrationServicesRenewalAPI,
					duration = 1,
					quantity = 1
				}
			};

			string trid = Guid.NewGuid().ToString();
			string resp1 =
				wapi.OrderPrivateDomainRenewals(trid, cred, shopper, drArray, new ResourceRenewal[] { rr }, null);

			otherTransactionIDs.Add(trid);
		}