Aggiunta ricerca indirizzo
This commit is contained in:
@@ -74,4 +74,38 @@ public class IntegryApiService(IIntegryApiRestClient integryApiRestClient, IUser
|
||||
|
||||
public Task<CheckVatResponseDTO> CheckVat(CheckVatRequestDTO request) =>
|
||||
integryApiRestClient.Post<CheckVatResponseDTO>("checkPartitaIva", request)!;
|
||||
|
||||
public Task<List<IndirizzoDTO>?> Geocode(string address)
|
||||
{
|
||||
var queryParams = new Dictionary<string, object>
|
||||
{
|
||||
{"address", address},
|
||||
{"retrieveAll", true}
|
||||
};
|
||||
|
||||
return integryApiRestClient.Get<List<IndirizzoDTO>>("geocode", queryParams);
|
||||
}
|
||||
|
||||
public Task<List<AutoCompleteAddressDTO>?> AutoCompleteAddress(string address, string language, string uuid)
|
||||
{
|
||||
var queryParams = new Dictionary<string, object>
|
||||
{
|
||||
{"address", address},
|
||||
{"language", language},
|
||||
{"uuid", uuid}
|
||||
};
|
||||
|
||||
return integryApiRestClient.Get<List<AutoCompleteAddressDTO>>("google/places/autoCompleteAddress", queryParams);
|
||||
}
|
||||
|
||||
public Task<IndirizzoDTO?> PlaceDetails(string placeId, string uuid)
|
||||
{
|
||||
var queryParams = new Dictionary<string, object>
|
||||
{
|
||||
{ "placeId", placeId },
|
||||
{ "uuid", uuid }
|
||||
};
|
||||
|
||||
return integryApiRestClient.Get<IndirizzoDTO>("google/places/placeDetails", queryParams);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user