コード例 #1
0
        public TransferDomainResult TransferDomain(CommandParams args, DomainContacts contacts)
        {
            TransferDomainResult result = new TransferDomainResult();

            result[TransferDomainResult.TRANSFER_ORDER_NUMBER] = DateTime.Now.ToString("yyyy-MM-dd") + "-" + args[CommandParams.DOMAIN_NAME];

            return(result);
        }
コード例 #2
0
        private void AddCustomerContacts(DomainContacts contacts)
        {
            if (contacts != null)
            {
                foreach (string key in contacts.Keys)
                {
                    DomainContact contact = contacts[key];

                    string contactKey = key;

                    if (key == "Billing")
                    {
                        contactKey = "AuxBilling";
                    }

                    AddParam(contactKey + "EmailAddress", contact["Email"]);
                    AddParam(contactKey + "Fax", contact["Fax"]);
                    AddParam(contactKey + "Phone", contact["Phone"]);
                    AddParam(contactKey + "Country", contact["Country"]);
                    AddParam(contactKey + "PostalCode", contact["Zip"]);

                    // add state
                    if (contact.HasKey("State"))
                    {
                        AddParam(contactKey + "StateProvinceChoice", "S");
                        AddParam(contactKey + "StateProvince", contact["State"]);
                    }
                    // add province
                    else if (contact.HasKey("Province"))
                    {
                        AddParam(contactKey + "StateProvinceChoice", "Province");
                        AddParam(contactKey + "StateProvince", contact["Province"]);
                    }
                    // add blank
                    else
                    {
                        AddParam(contactKey + "StateProvinceChoice", "Blank");
                        AddParam(contactKey + "StateProvince", "");
                    }

                    AddParam(contactKey + "City", contact["City"]);
                    AddParam(contactKey + "Address1", contact["Address"]);
                    AddParam(contactKey + "Address2", contact["Address1"]);
                    AddParam(contactKey + "LastName", contact["LastName"]);
                    AddParam(contactKey + "FirstName", contact["FirstName"]);
                    AddParam(contactKey + "JobTitle", contact["JobTitle"]);
                    AddParam(contactKey + "OrganizationName", contact["Company"]);
                }
            }
        }
コード例 #3
0
 public TransferDomainResult TransferDomain(CommandParams args, DomainContacts contacts)
 {
     throw new NotSupportedException();
 }
コード例 #4
0
		public TransferDomainResult TransferDomain(CommandParams args, DomainContacts contacts)
		{
			throw new NotSupportedException();
		}
コード例 #5
0
 public TransferDomainResult TransferDomain(CommandParams args, DomainContacts contacts)
 {
     throw new Exception("The method or operation is not implemented.");
 }
コード例 #6
0
		public TransferDomainResult TransferDomain(CommandParams args, DomainContacts contacts)
		{
			throw new Exception("The method or operation is not implemented.");
		}
コード例 #7
0
		private void AddCustomerContacts(DomainContacts contacts)
		{
			if (contacts != null)
			{
				foreach (string key in contacts.Keys)
				{
					DomainContact contact = contacts[key];

					string contactKey = key;

					if (key == "Billing")
						contactKey = "AuxBilling";

					AddParam(contactKey + "EmailAddress", contact["Email"]);
					AddParam(contactKey + "Fax", contact["Fax"]);
					AddParam(contactKey + "Phone", contact["Phone"]);
					AddParam(contactKey + "Country", contact["Country"]);
					AddParam(contactKey + "PostalCode", contact["Zip"]);

					// add state
					if (contact.HasKey("State"))
					{
						AddParam(contactKey + "StateProvinceChoice", "S");
						AddParam(contactKey + "StateProvince", contact["State"]);
					}
					// add province
					else if (contact.HasKey("Province"))
					{
						AddParam(contactKey + "StateProvinceChoice", "Province");
						AddParam(contactKey + "StateProvince", contact["Province"]);
					}
					// add blank
					else
					{
						AddParam(contactKey + "StateProvinceChoice", "Blank");
						AddParam(contactKey + "StateProvince", "");
					}

					AddParam(contactKey + "City", contact["City"]);
					AddParam(contactKey + "Address1", contact["Address"]);
					AddParam(contactKey + "Address2", contact["Address1"]);
					AddParam(contactKey + "LastName", contact["LastName"]);
					AddParam(contactKey + "FirstName", contact["FirstName"]);
					AddParam(contactKey + "JobTitle", contact["JobTitle"]);
					AddParam(contactKey + "OrganizationName", contact["Company"]);
				}
			}
		}
コード例 #8
0
		public TransferDomainResult TransferDomain(CommandParams args, DomainContacts contacts)
		{
			TransferDomainResult result = new TransferDomainResult();

			result[TransferDomainResult.TRANSFER_ORDER_NUMBER] = DateTime.Now.ToString("yyyy-MM-dd") + "-" + args[CommandParams.DOMAIN_NAME];

			return result;
		}