/// <summary> /// Initializes a new instance of the Address class /// </summary> /// <param name="country"></param> /// <param name="state"></param> /// <param name="city"></param> /// <param name="district"></param> /// <param name="postalCode"></param> /// <param name="street"></param> /// <param name="number"></param> /// <param name="complement"></param> public Address(string country, string state, string city, string district, string postalCode, string street, string number, string complement) { this.country = country; this.state = state; this.city = city; this.district = district; this.postalCode = PagSeguroUtils.GetOnlyNumbers(postalCode); this.street = street; this.number = PagSeguroUtils.GetOnlyNumbers(number); this.complement = complement; }
/// <summary> /// Initializes a new instance of the Phone class /// </summary> /// <param name="areaCode"></param> /// <param name="number"></param> public Phone(string areaCode, string number) { this.areaCode = PagSeguroUtils.GetOnlyNumbers(areaCode); this.number = PagSeguroUtils.GetOnlyNumbers(number); }
/// <summary> /// Initializes a new instance of the SenderDocumet class /// </summary> /// <param name="type"></param> /// <param name="value"></param> public SenderDocument(string type, string value) { this.type = type; this.value = PagSeguroUtils.GetOnlyNumbers(value); }