/// <remarks/> public void OrderDomainPrivacyAsync(string sCLTRID, Credential credential, Shopper shopper, DomainByProxy[] items, string sROID, object userState) { if ((this.OrderDomainPrivacyOperationCompleted == null)) { this.OrderDomainPrivacyOperationCompleted = new System.Threading.SendOrPostCallback(this.OnOrderDomainPrivacyOperationCompleted); } this.InvokeAsync("OrderDomainPrivacy", new object[] { sCLTRID, credential, shopper, items, sROID}, this.OrderDomainPrivacyOperationCompleted, userState); }
/// <remarks/> public void OrderDomainPrivacyAsync(string sCLTRID, Credential credential, Shopper shopper, DomainByProxy[] items, string sROID) { this.OrderDomainPrivacyAsync(sCLTRID, credential, shopper, items, sROID, null); }
public string OrderDomainPrivacy(string sCLTRID, Credential credential, Shopper shopper, DomainByProxy[] items, string sROID) { object[] results = this.Invoke("OrderDomainPrivacy", new object[] { sCLTRID, credential, shopper, items, sROID}); return ((string)(results[0])); }
/// <remarks/> public void OrderDomainsAsync(string sCLTRID, Credential credential, Shopper shopper, DomainRegistration[] items, DomainByProxy[] dbpItems, string sROID) { this.OrderDomainsAsync(sCLTRID, credential, shopper, items, dbpItems, sROID, null); }
public string OrderDomains(string sCLTRID, Credential credential, Shopper shopper, DomainRegistration[] items, DomainByProxy[] dbpItems, string sROID) { object[] results = this.Invoke("OrderDomains", new object[] { sCLTRID, credential, shopper, items, dbpItems, sROID}); return ((string)(results[0])); }
private void PurchasePrivacy() { string pollResponseXml = wapi.Poll(this.orderDomainTransactionID, cred, null); pollResponse = new PollResponse(pollResponseXml); if (this.orderDomainTransactionID != pollResponse.UniqueClientTransactionID) throw new InvalidResponseException(pollResponseXml); Shopper s = new Shopper(); s.user = this.userID.ToString(); s.dbpuser = "******"; s.dbppwd = "defgh"; s.dbpemail = "*****@*****.**"; DomainByProxy dbp = new DomainByProxy() { sld = "example", tld = "us", resourceid = pollResponse.Items.Find(i => i.ROID == "domain" && i.RIID == "0").ResourceID, order = new OrderItem() { duration = 1, productid = (int)ProductID.PrivateRegistrationServicesAPI } }; string response = wapi.OrderDomainPrivacy(this.orderPrivacyTransactionID, cred, s, new DomainByProxy[] { dbp }, null); OrderDomainPrivacyResponse r = new OrderDomainPrivacyResponse(response); if (this.orderPrivacyTransactionID != r.UniqueClientTransactionID) throw new InvalidResponseException(response); dbpuserID = r.DbpUserID; }