2020-05-10 21:23:44 +02:00
package org.hso.ecommerce.app.config ;
2020-06-16 19:19:58 +02:00
import java.util.List ;
2020-05-10 21:23:44 +02:00
public class YAMLData {
private String installationName ;
private String companyName ;
2020-05-10 22:19:58 +02:00
private Address companyAddress ;
2020-05-10 21:23:44 +02:00
private int numberOfStorageSpaces ;
2020-06-16 19:19:58 +02:00
private List < Supplier > suppliers ;
2020-05-10 21:23:44 +02:00
private String parcelServiceName ;
private String parcelServiceApiURL ;
public String getInstallationName ( ) {
return installationName ;
}
public void setInstallationName ( String installationName ) {
this . installationName = installationName ;
}
public String getCompanyName ( ) {
return companyName ;
}
public void setCompanyName ( String companyName ) {
this . companyName = companyName ;
}
public Address getCompanyAddress ( ) {
return companyAddress ;
}
public void setCompanyAddress ( Address companyAddress ) {
this . companyAddress = companyAddress ;
}
public int getNumberOfStorageSpaces ( ) {
return numberOfStorageSpaces ;
}
public void setNumberOfStorageSpaces ( int numberOfStorageSpaces ) {
this . numberOfStorageSpaces = numberOfStorageSpaces ;
}
public List < Supplier > getSuppliers ( ) {
return suppliers ;
}
public void setSuppliers ( List < Supplier > suppliers ) {
this . suppliers = suppliers ;
}
public String getParcelServiceName ( ) {
return parcelServiceName ;
}
public void setParcelServiceName ( String parcelServiceName ) {
this . parcelServiceName = parcelServiceName ;
}
public String getParcelServiceApiURL ( ) {
return parcelServiceApiURL ;
}
public void setParcelServiceApiURL ( String parcelServiceApiURL ) {
this . parcelServiceApiURL = parcelServiceApiURL ;
}
2020-05-10 22:19:58 +02:00
2020-05-10 21:23:44 +02:00
public static class Address {
public String streetName ;
public String houseNumber ;
public String zipCode ;
public String cityName ;
public String countryName ;
2020-06-16 18:52:33 +02:00
public Address ( ) {
// needed by snakeyaml
}
public Address ( String streetName , String houseNumber , String zipCode , String cityName , String countryName ) {
this . streetName = streetName ;
this . houseNumber = houseNumber ;
this . zipCode = zipCode ;
this . cityName = cityName ;
this . countryName = countryName ;
}
public String getStreetName ( ) {
return streetName ;
}
public void setStreetName ( String streetName ) {
2020-05-10 21:23:44 +02:00
this . streetName = streetName ;
2020-06-16 18:52:33 +02:00
}
public String getHouseNumber ( ) {
return houseNumber ;
}
public void setHouseNumber ( String houseNumber ) {
this . houseNumber = houseNumber ;
}
public String getZipCode ( ) {
return zipCode ;
}
public void setZipCode ( String zipCode ) {
2020-05-10 21:23:44 +02:00
this . zipCode = zipCode ;
2020-06-16 18:52:33 +02:00
}
public String getCityName ( ) {
return cityName ;
}
public void setCityName ( String cityName ) {
2020-05-10 21:23:44 +02:00
this . cityName = cityName ;
2020-06-16 18:52:33 +02:00
}
public String getCountryName ( ) {
return countryName ;
}
public void setCountryName ( String countryName ) {
2020-05-10 21:23:44 +02:00
this . countryName = countryName ;
}
}
2020-06-16 19:19:58 +02:00
2020-05-10 21:23:44 +02:00
public static class Supplier {
public String name ;
public String id ;
public String apiURL ;
public int deliveryTime ;
2020-06-16 19:19:58 +02:00
public Address companyAddress ;
2020-05-10 21:23:44 +02:00
2020-06-16 18:52:33 +02:00
public Supplier ( ) {
// needed by snakeyaml
}
2020-06-16 19:19:58 +02:00
public Supplier ( String name , String id , String apiURL , int deliveryTime , Address companyAddress ) {
2020-05-10 21:23:44 +02:00
this . name = name ;
this . id = id ;
this . apiURL = apiURL ;
2020-06-16 19:19:58 +02:00
this . deliveryTime = deliveryTime ;
2020-05-10 21:23:44 +02:00
this . companyAddress = companyAddress ;
2020-06-16 19:19:58 +02:00
}
public String getName ( ) {
return name ;
}
public void setName ( String name ) {
this . name = name ;
}
public String getId ( ) {
return id ;
}
public void setId ( String id ) {
this . id = id ;
}
public String getApiURL ( ) {
return apiURL ;
}
public void setApiURL ( String apiURL ) {
this . apiURL = apiURL ;
}
public int getDeliveryTime ( ) {
return deliveryTime ;
}
public void setDeliveryTime ( int deliveryTime ) {
2020-05-10 21:23:44 +02:00
this . deliveryTime = deliveryTime ;
}
2020-06-16 19:19:58 +02:00
public Address getCompanyAddress ( ) {
return companyAddress ;
}
public void setCompanyAddress ( Address companyAddress ) {
this . companyAddress = companyAddress ;
}
2020-05-10 21:23:44 +02:00
}
2020-06-16 19:19:58 +02:00
2020-05-10 21:23:44 +02:00
}