public item BuildContactObject(string contactKey) { var details = new dt_assoc(); details.Items.Add(new item("first_name", first_name)); details.Items.Add(new item("last_name", last_name)); details.Items.Add(new item("phone", phone)); details.Items.Add(new item("email", email)); details.Items.Add(new item("org_name", org_name)); details.Items.Add(new item("address1", address1)); details.Items.Add(new item("address2", address2)); details.Items.Add(new item("address3", address3)); details.Items.Add(new item("city", city)); details.Items.Add(new item("state", state)); details.Items.Add(new item("country", country)); details.Items.Add(new item("postal_code", postal_code)); details.Items.Add(new item("fax", fax)); details.Items.Add(new item("lang", lang)); details.Items.Add(new item("vat", vat)); return(new item(contactKey) { Item = details }); }
public item BuildContactSet() { var contactSet = new item("contact_set"); var contactDetails = new dt_assoc(); if (owner != null) { contactDetails.Items.Add(owner.BuildContactObject("owner")); } if (admin != null) { contactDetails.Items.Add(admin.BuildContactObject("admin")); } if (billing != null) { contactDetails.Items.Add(billing.BuildContactObject("billing")); } if (tech != null) { contactDetails.Items.Add(tech.BuildContactObject("tech")); } contactSet.Item = contactDetails; return(contactSet); }
public item BuildItem() { var itemArray = new dt_assoc(); if (au_registrant_info != null) { itemArray.Items.Add(au_registrant_info.BuildItem()); } if (!string.IsNullOrEmpty(br_register_number)) { itemArray.Items.Add(new item("br_register_number", br_register_number)); } if (ced_info != null) { itemArray.Items.Add(ced_info.BuildItem()); } if (ipr_data != null) { itemArray.Items.Add(ipr_data.BuildItem()); } if (it_registrant_info != null) { itemArray.Items.Add(it_registrant_info.BuildItem()); } if (nexus != null) { itemArray.Items.Add(nexus.BuildItem()); } if (professional_data != null) { itemArray.Items.Add(professional_data.BuildItem()); } if (registrant_extra_info != null) { itemArray.Items.Add(registrant_extra_info.BuildItem()); } return(new item("tld_data", itemArray)); }
public item BuildItem() { var itemArray = new dt_assoc(); if (!string.IsNullOrEmpty(app_purpose)) { itemArray.Items.Add(new item("app_purpose", app_purpose)); } if (!string.IsNullOrEmpty(category)) { itemArray.Items.Add(new item("category", category)); } if (!string.IsNullOrEmpty(validator)) { itemArray.Items.Add(new item("validator", validator)); } return(new item("nexus", itemArray)); }
public item BuildItem() { var itemArray = new dt_assoc(); if (!string.IsNullOrEmpty(entity_type)) { itemArray.Items.Add(new item("entity_type", entity_type)); } if (!string.IsNullOrEmpty(nationality_code)) { itemArray.Items.Add(new item("nationality_code", nationality_code)); } if (!string.IsNullOrEmpty(reg_code)) { itemArray.Items.Add(new item("reg_code", reg_code)); } return(new item("it_registrant_info", itemArray)); }
public item BuildItem() { var itemArray = new dt_assoc(); if (!string.IsNullOrEmpty(contact_type)) { itemArray.Items.Add(new item("contact_type", contact_type)); } if (!string.IsNullOrEmpty(id_number)) { itemArray.Items.Add(new item("id_number", id_number)); } if (!string.IsNullOrEmpty(id_type)) { itemArray.Items.Add(new item("id_type", id_type)); } if (!string.IsNullOrEmpty(id_type_info)) { itemArray.Items.Add(new item("id_type_info", id_type_info)); } if (!string.IsNullOrEmpty(legal_entity_type)) { itemArray.Items.Add(new item("legal_entity_type", legal_entity_type)); } if (!string.IsNullOrEmpty(legal_entity_type_info)) { itemArray.Items.Add(new item("legal_entity_type_info", legal_entity_type_info)); } if (!string.IsNullOrEmpty(locality_city)) { itemArray.Items.Add(new item("locality_city", locality_city)); } if (!string.IsNullOrEmpty(locality_country)) { itemArray.Items.Add(new item("locality_country", locality_country)); } if (!string.IsNullOrEmpty(locality_state_prov)) { itemArray.Items.Add(new item("locality_state_prov", locality_state_prov)); } return(new item("ced_info", itemArray)); }
public item BuildItem() { var itemArray = new dt_assoc(); if (!string.IsNullOrEmpty(icm_membership_id)) { itemArray.Items.Add(new item("icm_membership_id", icm_membership_id)); } if (!string.IsNullOrEmpty(ipr_email)) { itemArray.Items.Add(new item("ipr_email", ipr_email)); } if (!string.IsNullOrEmpty(ipr_name)) { itemArray.Items.Add(new item("ipr_name", ipr_name)); } itemArray.Items.Add(new item("ipr_non_resolver", OpsObjectHelper.NetBoolToSrsBool(ipr_non_resolver))); return(new item("ipr_data", itemArray)); }
public item BuildItem() { var itemArray = new dt_assoc(); if (!string.IsNullOrEmpty(eligibility_id)) { itemArray.Items.Add(new item("eligibility_id", eligibility_id)); } if (!string.IsNullOrEmpty(eligibility_id_type)) { itemArray.Items.Add(new item("eligibility_id_type", eligibility_id_type)); } if (!string.IsNullOrEmpty(eligibility_name)) { itemArray.Items.Add(new item("eligibility_name", eligibility_name)); } if (!string.IsNullOrEmpty(eligibility_type)) { itemArray.Items.Add(new item("eligibility_type", eligibility_type)); } if (policy_reason.HasValue) { itemArray.Items.Add(new item("policy_reason", policy_reason.Value)); } if (!string.IsNullOrEmpty(registrant_id)) { itemArray.Items.Add(new item("registrant_id", registrant_id)); } if (!string.IsNullOrEmpty(registrant_id_type)) { itemArray.Items.Add(new item("registrant_id_type", registrant_id_type)); } if (!string.IsNullOrEmpty(registrant_name)) { itemArray.Items.Add(new item("registrant_name", registrant_name)); } return(new item("au_registrant_info", itemArray)); }
public item BuildItem() { var itemArray = new dt_assoc(); if (!string.IsNullOrEmpty(authority)) { itemArray.Items.Add(new item("authority", authority)); } if (!string.IsNullOrEmpty(authority_website)) { itemArray.Items.Add(new item("authority_website", authority_website)); } if (!string.IsNullOrEmpty(license_number)) { itemArray.Items.Add(new item("license_number", license_number)); } if (!string.IsNullOrEmpty(profession)) { itemArray.Items.Add(new item("profession", profession)); } return(new item("professional_data", itemArray)); }
/// <summary> /// Retrieves an item object from a dt_assoc array with the specified key /// </summary> public static item GetItemFromArray(dt_assoc array, string key) { return(array.Items.Cast <item>().FirstOrDefault(i => i.key == key)); }
public item BuildItem() { var itemArray = new dt_assoc(); if (!string.IsNullOrEmpty(aero_ens_id)) { itemArray.Items.Add(new item("aero_ens_id", aero_ens_id)); } if (!string.IsNullOrEmpty(aero_ens_password)) { itemArray.Items.Add(new item("aero_ens_password", aero_ens_password)); } if (!string.IsNullOrEmpty(coop_verification_code)) { itemArray.Items.Add(new item("coop_verification_code", coop_verification_code)); } if (!string.IsNullOrEmpty(country_of_birth)) { itemArray.Items.Add(new item("country_of_birth", country_of_birth)); } if (date_of_birth.HasValue) { itemArray.Items.Add(new item("date_of_birth", date_of_birth.Value.ToString("yyyy-MM-dd"))); } if (!string.IsNullOrEmpty(id_card_authority)) { itemArray.Items.Add(new item("id_card_authority", id_card_authority)); } if (id_card_issue_date.HasValue) { itemArray.Items.Add(new item("id_card_issue_date", id_card_issue_date.Value.ToString("yyyy-MM-dd"))); } if (!string.IsNullOrEmpty(id_card_number)) { itemArray.Items.Add(new item("id_card_number", id_card_number)); } if (!string.IsNullOrEmpty(jobs_admin_type)) { itemArray.Items.Add(new item("jobs_admin_type", jobs_admin_type)); } if (!string.IsNullOrEmpty(jobs_association_member)) { itemArray.Items.Add(new item("jobs_association_member", jobs_association_member)); } if (!string.IsNullOrEmpty(jobs_industry_type)) { itemArray.Items.Add(new item("jobs_industry_type", jobs_industry_type)); } if (!string.IsNullOrEmpty(jobs_title)) { itemArray.Items.Add(new item("jobs_title", jobs_title)); } if (!string.IsNullOrEmpty(jobs_website)) { itemArray.Items.Add(new item("jobs_website", jobs_website)); } if (!string.IsNullOrEmpty(place_of_birth)) { itemArray.Items.Add(new item("place_of_birth", place_of_birth)); } if (!string.IsNullOrEmpty(postal_code_of_birth)) { itemArray.Items.Add(new item("postal_code_of_birth", postal_code_of_birth)); } if (!string.IsNullOrEmpty(province_of_birth)) { itemArray.Items.Add(new item("province_of_birth", province_of_birth)); } if (!string.IsNullOrEmpty(registration_number)) { itemArray.Items.Add(new item("registration_number", registration_number)); } if (!string.IsNullOrEmpty(registrant_type)) { itemArray.Items.Add(new item("registrant_type", registrant_type)); } if (!string.IsNullOrEmpty(registrant_vat_id)) { itemArray.Items.Add(new item("registrant_vat_id", registrant_vat_id)); } if (!string.IsNullOrEmpty(siren_siret)) { itemArray.Items.Add(new item("siren_siret", siren_siret)); } if (!string.IsNullOrEmpty(tax_number)) { itemArray.Items.Add(new item("tax_number", tax_number)); } if (!string.IsNullOrEmpty(trademark_number)) { itemArray.Items.Add(new item("trademark_number", trademark_number)); } if (!string.IsNullOrEmpty(travel_uin)) { itemArray.Items.Add(new item("travel_uin", travel_uin)); } return(new item("registrant_extra_info", itemArray)); }