Module Values.AddressSource

The details of the address associated with the TRN information.

Sourcetype nonrec t = {
  1. addressLine1 : AddressLine1.t;
    (*

    The first line of the address.

    *)
  2. addressLine2 : AddressLine2.t option;
    (*

    The second line of the address, if applicable.

    *)
  3. addressLine3 : AddressLine3.t option;
    (*

    The third line of the address, if applicable. Currently, the Tax Settings API accepts the addressLine3 parameter only for Saudi Arabia. When you specify a TRN in Saudi Arabia, you must enter the addressLine3 and specify the building number for the address. For example, you might enter 1234.

    *)
  4. city : City.t;
    (*

    The city that the address is in.

    *)
  5. countryCode : CountryCode.t;
    (*

    The country code for the country that the address is in.

    *)
  6. districtOrCounty : District.t option;
    (*

    The district or county the address is located. For addresses in Brazil, this parameter uses the name of the neighborhood. When you set a TRN in Brazil, use districtOrCounty for the neighborhood name.

    *)
  7. postalCode : PostalCode.t;
    (*

    The postal code associated with the address.

    *)
  8. stateOrRegion : State.t option;
    (*

    The state, region, or province that the address is located. This field is only required for Canada, India, United Arab Emirates, Romania, and Brazil (CPF). It is optional for all other countries. If this is required for tax settings, use the same name as shown on the Tax Settings page.

    *)
}
Sourceval context_ : string
Sourceval make : ?addressLine2:??? -> ?addressLine3:??? -> ?districtOrCounty:??? -> ?stateOrRegion:??? -> addressLine1:AddressLine1.t -> city:City.t -> countryCode:CountryCode.t -> postalCode:PostalCode.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `String of AddressLine1.t ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t