#Quotation web services (QuotationV2Ws) Provides service methods to handle quotation operations. * **Type**: SOAP * **Production WSDL**: https://services.generali.gr/soap/v2/quotation?wsdl * **Test WSDL**: https://services-test.generali.gr/soap/v2/quotation?wsdl Methods * [tariffy](#tariffy) * [issue](#issue) * [listPackagesInfo](#listPackagesInfo) * [getPackageInfo](#getPackageInfo) * [listOpenPendencies](#listOpenPendencies) * [uploadPendency](#uploadPendency) * [getQuotationDocument](#getQuotationDocument) * [getQuotationStatus](#getQuotationStatus) ##tariffy <a name="tariffy"></a> Tariffies the selected coverages of an insurable object. Notice that regarding the covers, only the *missing* information is required. This includes the sum insured, the parameters, and rarely the premium of the covers that are not disabled as well as those covers that are optional (even if they contain no extra input information). Any other data sent will be ignored by the tariffication engine. In order to know which values should be sent in your request you could: * Use our [listPackagesInfo](#listPackagesInfo) *(prefered)* or the [getPackageInfo](#getPackageInfo) : Check the list of mandatory and optional covers in order to know which ones can be selected. Check the [cover field](#FieldInfo) type values to know which of them (if any) should be sent with their cover. * Use OneView as a reference: Check the list of mandatory and optional covers in order to know which ones can be selected. Check the inputs that are capable of taking values from the user (they are not disabled), those are the ones that should be sent along with their cover. Check the examples to get a better idea of how to use the service. ###Input Field | Type | Value | Required/Optional | Description | Example ----- | ---- | ----- | ----------------- | ----------- | ------- distChannelCode | String (1-5 chars) | Numerical code | Required | The 5 digit code representing the distribution channel | 50072 duration | Integer | **1**: Annual</br> **2**: Semiannual</br> **4**: Terminally</br> | Required | The duration of the policy | 1 insuranceStartDate | Date | Date | Required | The start date of the policy's insurance period | 2015-11-23 policyHolder | Person | Person | Optional if insurable contains a Person already | The policy holder | *(see below)* insurable | Insurable | MotorInsurable, so far | Required | The object insured by the policy | *(see below)* pack | Pack | Pack | Required | The package to tariffy (including extra products and parameters) | *(see below)* ####Pack Field | Type | Value | Required/Optional | Description | Example ----- | ---- | ----- | ----------------- | ----------- | ------- code | String | Numerical | Required | The code of the package | 123000000 products | List[Cover] | Cover | Required | The chosen products of the package | List["123000000", Value[20223.23], Value["100"], List["paramType", "400", Value[1000.50]]] ####Cover Field | Type | Value | Required/Optional | Description | Example ----- | ---- | ----- | |---------------- | ----------- | ------- code | String | String | Required | The code of the product | 234 sumInsured | Value | Value | Optional | The sum insured of the product | Value[20223.23] premium | Value | Value | Otional | The premium of the product | Value["100"] params | List[CoverParam] | CoverParam | Optional | The params of the product | List["paramType", "400", Value[1000.50]] ####CoverParam Field | Type | Value | Required/Optional | Description | Example ----- | ---- | ----- | ----------------- | ----------- | ------- type | String | String | Required | The type of the product param | "GGY" code | String | String | Required | The code of the product param | "400" ####Value Can be choosen either the codeValue or the numericalValue. Field | Type | Value | Required/Optional | Description | Example ----- | ---- | ----- | |---------------- | ----------- | ------- codeValue | String | String | Required | The value as code | 200 numericalValue | BigDecimal | BigDecimal | Required | The value as number | 5000.43 ###Output Field | Type | Value | Description | Example ----- | ---- | ----- | ----------- | ------- requestCode | String | String | Is the key code of the tariffication in case of tracking it down | 162 totalPremiumGross | BigDecimal | BigDecimal | Tariffication's total premium gross amount | 450.67 totalPremiumNet | BigDecimal | BigDecimal | Tariffication's total premium net amount | 390.81 coverageList | Package | Package | The selected coverages and products | *(see above)* ###Example 1 In this example, taken from OneView, we tariffy package Speed 2 with different policy holder from driver and get a valid result. Notice that only the *missing* information is sent (red circles), which is the one coming from the the non disabled inputs. ![Speed2](images/OneView-speed2.png) *Input* ``` <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:v2="http://v2.soap.ws.api.gbox.generali.gr/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <soapenv:Header/> <soapenv:Body> <v2:tariffy> <distChannel>08000</distChannel> <duration>1</duration> <insuranceStartDate>2015-11-24</insuranceStartDate> <policyHolder> <afm>123456789</afm> <genderCode>1</genderCode> <birthDate>1962-08-22</birthDate> </policyHolder> <insurable xsi:type="v2:MotorInsurable"> <motorUseCode>000</motorUseCode> <manufacturerYear>2010</manufacturerYear> <marketValue>12940</marketValue> <eurotaxCode>35603</eurotaxCode> <noOfClaims>2</noOfClaims> <plateNo>IBZ8972</plateNo> <taxHp>10</taxHp> <driver> <birthDate>1982-08-22</birthDate> <maritalStatusCode>1</maritalStatusCode> <postalCode>500 01</postalCode> <genderCode>1</genderCode>genderCode> </driver> </insurable> <pack code="802"> <cover code="280000000"> <sumInsured> <codeValue>953</codeValue> </sumInsured> </cover> <cover code="281000000"> <sumInsured> <codeValue>950</codeValue> </sumInsured> </cover> </pack> </v2:tariffy> </soapenv:Body> </soapenv:Envelope> ``` *Output* ``` <S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"> <S:Body> <ns2:tariffyResponse xmlns:ns2="http://v2.soap.ws.api.gbox.generali.gr/"> <return> <requestCode>req-08000-1493206558206</requestCode> <totalPremiumNet>244.27</totalPremiumNet> <totalPremiumGross>356.83</totalPremiumGross> <pack code="802"> <cover code="215150000"> <sumInsured> <numericalvalue>1000000.00</numericalvalue> </sumInsured> </cover> <cover code="215151000"> <sumInsured> <numericalvalue>1000000.00</numericalvalue> </sumInsured> </cover> <cover code="215152000"> <sumInsured> <numericalvalue>0.00</numericalvalue> </sumInsured> </cover> <cover code="283000000"> <sumInsured> <numericalvalue>12940.00</numericalvalue> </sumInsured> </cover> <cover code="282000000"> <sumInsured> <numericalvalue>15000.00</numericalvalue> </sumInsured> </cover> <cover code="211000000"> <sumInsured> <numericalvalue>12940.00</numericalvalue> </sumInsured> </cover> <cover code="285000000"> <sumInsured> <numericalvalue>12940.00</numericalvalue> </sumInsured> </cover> <cover code="736000000"> <param code="701" type="GGY"/> <sumInsured> <numericalvalue>12940.00</numericalvalue> </sumInsured> </cover> <cover code="281000000"> <sumInsured> <codeValue>950</codeValue> <numericalvalue>1000.00</numericalvalue> </sumInsured> </cover> <cover code="280000000"> <sumInsured> <codeValue>953</codeValue> <numericalvalue>10000.00</numericalvalue> </sumInsured> </cover> <cover code="295154000"> <sumInsured> <numericalvalue>1500.00</numericalvalue> </sumInsured> </cover> <cover code="294153000"> <sumInsured> <numericalvalue>30000.00</numericalvalue> </sumInsured> </cover> <cover code="297000000"> <sumInsured> <numericalvalue>800.00</numericalvalue> </sumInsured> </cover> <cover code="129000000"> <sumInsured> <numericalvalue>3000.00</numericalvalue> </sumInsured> </cover> <cover code="527000000"> <sumInsured> <numericalvalue>150.00</numericalvalue> </sumInsured> </cover> <cover code="528000000"> <sumInsured> <numericalvalue>150.00</numericalvalue> </sumInsured> </cover> <cover code="742265173"> <sumInsured> <numericalvalue>0.00</numericalvalue> </sumInsured> </cover> <cover code="752000000"> <sumInsured> <numericalvalue>0.00</numericalvalue> </sumInsured> </cover> </pack> </return> </ns2:tariffyResponse> </S:Body> </S:Envelope> ``` ###Example 2 In this example, taken from OneView, we tariffy package Speed 2 with the same policy holder and driver and get a valid result. *Input* ``` <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:v2="http://v2.soap.ws.api.gbox.generali.gr/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <soapenv:Header/> <soapenv:Body> <v2:tariffy> <distChannel>08000</distChannel> <duration>1</duration> <insuranceStartDate>2015-11-24</insuranceStartDate> <insurable xsi:type="v2:MotorInsurable"> <motorUseCode>000</motorUseCode> <manufacturerYear>2010</manufacturerYear> <marketValue>12940</marketValue> <eurotaxCode>35603</eurotaxCode> <noOfClaims>2</noOfClaims> <plateNo>IBZ8972</plateNo> <taxHp>10</taxHp> <driver> <birthDate>1982-08-22</birthDate> <maritalStatusCode>1</maritalStatusCode> <postalCode>500 01</postalCode> <genderCode>1</genderCode>genderCode> </driver> </insurable> <pack code="802"> <cover code="280000000"> <sumInsured> <codeValue>953</codeValue> </sumInsured> </cover> <cover code="281000000"> <sumInsured> <codeValue>950</codeValue> </sumInsured> </cover> </pack> </v2:tariffy> </soapenv:Body> </soapenv:Envelope> ``` *Output* ``` <S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"> <S:Body> <ns2:tariffyResponse xmlns:ns2="http://v2.soap.ws.api.gbox.generali.gr/"> <return> <requestCode>req-08000-1493206649927</requestCode> <totalPremiumNet>244.27</totalPremiumNet> <totalPremiumGross>356.83</totalPremiumGross> <pack code="802"> <cover code="215150000"> <sumInsured> <numericalvalue>1000000.00</numericalvalue> </sumInsured> </cover> <cover code="215151000"> <sumInsured> <numericalvalue>1000000.00</numericalvalue> </sumInsured> </cover> <cover code="215152000"> <sumInsured> <numericalvalue>0.00</numericalvalue> </sumInsured> </cover> <cover code="283000000"> <sumInsured> <numericalvalue>12940.00</numericalvalue> </sumInsured> </cover> <cover code="282000000"> <sumInsured> <numericalvalue>15000.00</numericalvalue> </sumInsured> </cover> <cover code="211000000"> <sumInsured> <numericalvalue>12940.00</numericalvalue> </sumInsured> </cover> <cover code="285000000"> <sumInsured> <numericalvalue>12940.00</numericalvalue> </sumInsured> </cover> <cover code="736000000"> <param code="701" type="GGY"/> <sumInsured> <numericalvalue>12940.00</numericalvalue> </sumInsured> </cover> <cover code="281000000"> <sumInsured> <codeValue>950</codeValue> <numericalvalue>1000.00</numericalvalue> </sumInsured> </cover> <cover code="280000000"> <sumInsured> <codeValue>953</codeValue> <numericalvalue>10000.00</numericalvalue> </sumInsured> </cover> <cover code="295154000"> <sumInsured> <numericalvalue>1500.00</numericalvalue> </sumInsured> </cover> <cover code="294153000"> <sumInsured> <numericalvalue>30000.00</numericalvalue> </sumInsured> </cover> <cover code="297000000"> <sumInsured> <numericalvalue>800.00</numericalvalue> </sumInsured> </cover> <cover code="129000000"> <sumInsured> <numericalvalue>3000.00</numericalvalue> </sumInsured> </cover> <cover code="527000000"> <sumInsured> <numericalvalue>150.00</numericalvalue> </sumInsured> </cover> <cover code="528000000"> <sumInsured> <numericalvalue>150.00</numericalvalue> </sumInsured> </cover> <cover code="742265173"> <sumInsured> <numericalvalue>0.00</numericalvalue> </sumInsured> </cover> <cover code="752000000"> <sumInsured> <numericalvalue>0.00</numericalvalue> </sumInsured> </cover> </pack> </return> </ns2:tariffyResponse> </S:Body> </S:Envelope> ``` #### Client example (in Java) Example of a simple Java client. Notice that the name of the classes depends entirely on your client generator and it may vary from the following. ``` import java.math.BigDecimal; import java.util.GregorianCalendar; import java.util.List; import java.util.Map; import java.util.logging.Level; import java.util.logging.Logger; import javax.xml.datatype.DatatypeConfigurationException; import javax.xml.datatype.DatatypeFactory; import javax.xml.ws.BindingProvider; public class TarifficationExample1 { public static final void main(String[] args) { Soap_002fV2_002fQuotation service = new Soap_002fV2_002fQuotation(); QuotationWsV2 quotationService = service.getQuotationWsV2BasePort(); Map<String, Object> context = ((BindingProvider)quotationService).getRequestContext(); context.put(BindingProvider.USERNAME_PROPERTY, "ws-000000028ezr9"); context.put(BindingProvider.PASSWORD_PROPERTY, "CP64UpfDVZ-test"); Person driver = new Person(); driver.setBirthDate(date(1982, 8, 22)); driver.setMaritalStatusCode(1); driver.setGenderCode(1); driver.setPostalCode("500 01"); MotorInsurable motorInsurable = new MotorInsurable(); motorInsurable.setMotorUseCode("000"); motorInsurable.setEurotaxCode("35603"); motorInsurable.setManufacturerYear(2010); motorInsurable.setMarketValue(BigDecimal.valueOf(15650)); motorInsurable.setPlateNo("IBZ8976"); motorInsurable.setNoOfClaims(2); motorInsurable.setDriver(driver); // Fill mandatory Cover for Personal Accident Cover personalAccident = new Cover(); Value sumInsuredPersonal = new Value(); sumInsuredPersonal.setCodeValue("953"); personalAccident.setCode("280000000"); personalAccident.setSumInsured(sumInsuredPersonal); // Fill mandatory Cover for Windscreen Cover windscreen = new Cover(); Value sumInsuredWindscreen = new Value(); sumInsuredWindscreen.setCodeValue("950"); windscreen.setCode("281000000"); windscreen.setSumInsured(sumInsuredWindscreen); // Fill optional Cover for Motor Assistance Cover motorAssistance = new Cover(); motorAssistance.setCode("753450171"); Pack pack = new Pack(); pack.setCode("802"); pack.getCover().add(personalAccident); pack.getCover().add(windscreen); pack.getCover().add(motorAssistance); String distChannelCode = "08000"; int duration = 1; Person policyHolder = null; try { Tariffication tariffication = quotationService.tariffy(distChannelCode, duration, date(2015, 11, 23), policyHolder, motorInsurable, pack); System.out.println(tariffication.getTotalPremiumGross()); } catch(ValidationException e) { for(Message message : e.getFaultInfo().getReport().getMessage()) { System.out.println(message.getCode()+" - "+message.getSeverity()+" - "+message.getTarget()+": "+message.getBody()); } } } } ``` Being the output: Request code: req-50045-1400571612142 Premium Gross Amount: 439.31 Premium Net Amount: 313.85 ###Example 3 In this example, taken from OneView *(see image above)*, we tariffy package Speed 2 and get an invalid result. Notice that the input is missing some required informations about covers. *Input* ``` <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:v2="http://v2.soap.ws.api.gbox.generali.gr/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <soapenv:Header/> <soapenv:Body> <v2:tariffy> <distChannel>08000</distChannel> <duration>1</duration> <insuranceStartDate>2015-11-24</insuranceStartDate> <insurable xsi:type="v2:MotorInsurable"> <motorUseCode>000</motorUseCode> <manufacturerYear>2010</manufacturerYear> <marketValue>12940</marketValue> <eurotaxCode>35603</eurotaxCode> <noOfClaims>2</noOfClaims> <plateNo>IBZ8972</plateNo> <taxHp>10</taxHp> <driver> <birthDate>1982-08-22</birthDate> <maritalStatusCode>1</maritalStatusCode> <postalCode>500 01</postalCode> <genderCode>1</genderCode>genderCode> </driver> </insurable> <pack code="802"> <cover code="280000000"> <sumInsured> <codeValue>953</codeValue> </sumInsured> </cover> </pack> </v2:tariffy> </soapenv:Body> </soapenv:Envelope> ``` *Output* ``` <S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"> <S:Body> <ns2:Fault xmlns:ns2="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns3="http://www.w3.org/2003/05/soap-envelope"> <faultcode>ns2:Server</faultcode> <faultstring>Παρουσιάστηκε σφάλμα κατά την τιμολόγηση.</faultstring> <detail> <ns2:ValidationException xmlns:ns2="http://v2.soap.ws.api.gbox.generali.gr/"> <report> <message> <severity>error</severity> <code>1</code> <target>/pack/cover[@code="281000000"]</target> <body>Η κάλυψη με κωδικό: 281000000 είναι υποχρεωτικό να δηλωθεί.</body> </message> <valid>false</valid> </report> </ns2:ValidationException> </detail> </ns2:Fault> </S:Body> </S:Envelope> ``` ###Example 4 In this example, we tariffy package Speed 3 and get an invalid result, caused by insurable's wrong data. *Input* ``` <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:v2="http://v2.soap.ws.api.gbox.generali.gr/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <soapenv:Header/> <soapenv:Body> <v2:tariffy> <distChannel>08000</distChannel> <duration>1</duration> <insuranceStartDate>2015-11-24</insuranceStartDate> <insurable xsi:type="v2:MotorInsurable"> <motorUseCode>000</motorUseCode> <manufacturerYear>2010</manufacturerYear> <marketValue>12940</marketValue> <eurotaxCode>35603</eurotaxCode> <noOfClaims>2</noOfClaims> <plateNo>IBZ8972</plateNo> <taxHp>10</taxHp> <driver> <birthDate></birthDate> <maritalStatusCode>1</maritalStatusCode> <postalCode>500 01</postalCode> <genderCode>1</genderCode>genderCode> </driver> </insurable> <pack code="802"> <cover code="280000000"> <sumInsured> <codeValue>953</codeValue> </sumInsured> </cover> </pack> </v2:tariffy> </soapenv:Body> </soapenv:Envelope> ``` *Output* ``` <S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"> <S:Body> <ns2:Fault xmlns:ns2="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns3="http://www.w3.org/2003/05/soap-envelope"> <faultcode>ns2:Server</faultcode> <faultstring>Παρουσιάστηκε σφάλμα κατά την τιμολόγηση.</faultstring> <detail> <ns2:ValidationException xmlns:ns2="http://v2.soap.ws.api.gbox.generali.gr/"> <report> <message> <severity>error</severity> <code>2</code> <target>/insurable/driver/birthdate</target> <body>Το πεδίο δεν πρέπει να είναι κενό.</body> </message> <valid>false</valid> </report> </ns2:ValidationException> </detail> </ns2:Fault> </S:Body> </S:Envelope> ``` ###Example 5 In this example, we tariffy package Speed 3 and get an invalid result, caused by a missing deductible. *Input* ``` <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:v2="http://v2.soap.ws.api.gbox.generali.gr/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <soapenv:Header/> <soapenv:Body> <v2:tariffy> <distChannel>00301</distChannel> <duration>1</duration> <insuranceStartDate>2015-11-24</insuranceStartDate> <policyHolder> <afm>123456789</afm> <genderCode>1</genderCode> <birthDate>1962-08-22</birthDate> </policyHolder> <insurable xsi:type="v2:MotorInsurable"> <motorUseCode>000</motorUseCode> <manufacturerYear>2010</manufacturerYear> <marketValue>15650</marketValue> <eurotaxCode>35603</eurotaxCode> <noOfClaims>1</noOfClaims> <plateNo>IBZ8972</plateNo> <taxHp>10</taxHp> <purchasedDate>2011-11-20</purchasedDate> <driver> <birthDate>1982-08-22</birthDate> <maritalStatusCode>1</maritalStatusCode> <postalCode>500 01</postalCode> <genderCode>1</genderCode> </driver> <protectionmeasures> <protectionmeasures>002</protectionmeasures> </protectionmeasures> </insurable> <pack code="803"> <cover code="280000000"> <sumInsured> <codeValue>953</codeValue> </sumInsured> </cover> <cover code="281000000"> <sumInsured> <codeValue>950</codeValue> </sumInsured> </cover> <cover code="166000000"> </cover> <cover code="284000000"> <param type="GGY" code="701"/> </cover> </pack> </v2:tariffy> </soapenv:Body> </soapenv:Envelope> ``` *Output* ``` <S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"> <S:Body> <ns2:Fault xmlns:ns2="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns3="http://www.w3.org/2003/05/soap-envelope"> <faultcode>ns2:Server</faultcode> <faultstring>Παρουσιάστηκε σφάλμα κατά την τιμολόγηση.</faultstring> <detail> <ns2:ValidationException xmlns:ns2="http://v2.soap.ws.api.gbox.generali.gr/"> <report> <message> <severity>error</severity> <code>5</code> <target>/pack/cover[@code="166000000"]/param[@type="GGY"]</target> <body>Στην κάλυψη με κωδικό: 166000000 η παράμετρος τύπου GGY δεν διαθέτει στοιχείο με κωδικό: null.</body> </message> <valid>false</valid> </report> </ns2:ValidationException> </detail> </ns2:Fault> </S:Body> </S:Envelope> ``` ##issue <a name="issue"></a> Issues a quotation for the provided insurable and the selected covers. The quotation is valid within a time window, in which is possible to convert it into a policy. There are 3 different outcomes (excluding failure): * A green quotation: The quotation is created correctly and it is ready to become a policy. A bill document and a list of pendencies are provided. * A yellow quotation: The quotation is created but requires the aproval of an underwriter. It will eventually become green or red. Until then it cannot be converted into a policy. Pendencies can still be uploaded in order to speed up the whole process. * A red quotation: The quotation is created but contains errors. These errors can be solved and the quotation resubmitted. In case of resubmission though, the quotation should include the quotationCode returned by the issue method. This way our system will understand you want to update the quotation and not just created a new one. Notice that, regarding the covers, only the *missing* information should be sent. This includes the sum insured, the parameters, and rarely the premium of the covers that are not disabled as well as those covers that are optional (even if they contain no extra input information). In order to know which coverages should be sent to our system you could: * Use our [listPackagesInfo](#listPackagesInfo) *(prefered)* or the [getPackageInfo](#getPackageInfo) : Check the list of mandatory and optional covers in order to know which ones can be selected. Check the [cover field](#FieldInfo) type values to know which of them (if any) should be sent with their cover. * Use OneView as a reference: Check the list of mandatory and optional covers in order to know which ones can be selected. Check the inputs that are capable of taking values from the user (they are not disabled), those are the ones that should be sent along with their cover. Check the examples to get a better idea of how to use the service. ![QuotationIssue](images/quotationIssue.png) ### Input Field | Type | Value | Required/Optional | Description | Example ----- | ---- | ----- | ----------------- | ----------- | ------- quotation | Quotation | MotorQuotation | Required | The quotation to be issued | *(see below)* Notice that *Quotation* is an abstract type. **What you should pass as a parameter is the subtype MotorQuotation**. Eventually we may add other types of quotations for the rest of the business areas. ####Quotation Field | Type | Value | Required/Optional | Description | Example ----- | ---- | ----- | ----------------- | ----------- | ------------ | distChannelCode | String | Numerical code | Required | The 5 digit code representing the distribution channel | 08000 policyHolder | Person | Person | Required | The policy holder info |*(see example)* insuranceStartDate | Date | Date | Required | Insurance's start date |2015-10-05 duration | Integer | 1 if annual 2 if semiannual 4 if terminally | Required | The quotation's duration | 1 coverageList | Pack | Pack | Required | The desirable product with coverages |*(see example)* endorsementCode | String | String | Required | The policy's endorsement policy | 000000000 oldPolicyCode | String | String | Required | The policy's code in case of reneal | empty insurable | Insurable | MotorInsurable for now | Required | The insurable object |*(see example)* ####MotorInsurable Field | Type | Value | Required/Optional | Description | Example --------------------| ---------- | -----------| ------------------- | ---------------------------- | ------- motorUseCode | String | listMotorUses(): code | Required | The motor use code | 000 for E.I.X motorMakeCode | String | listMotorMakes(): code | Required (Motor packages)| The motor make code | 00007 for CITROEN eurotaxCode | String | String | Required (Speed packages)| The eurotax code | 46932 plateNo | String | String | Required | The motor's plate no | IBY1234 manufacturerYear | Integer | String | Required | The motor's manufacturer year| 2010 marketValue | BigDecimal | BigDecimal | Required | Motor's market value | 15000 noOfClaims | Integer | Integer | Required | Number of claims | 0 protectionMeasures | Set[String]| listProtectionMeasures(): code | Optional | Protection measures of the vehicle | 001 purchasedDate | Date | Date | Optional | Motor's puschase date | 2010-01-01 licenseDate | Date | Date | Required(Speed packages or in case there is driver) | Driver's lisence date | 2005-01-01 taxHp | Integer | Integer | Required (Speed packages)| Motor's tax hp | 10 cc | Integer | Integer | Required (Motor packages) | Motor's cc | 650 provinceCode | String | listProvinceCodes(): code | Required (Motor packages)| The province code | *(see example)* driver | Person | String | Optional if policy holder is different from main driver or in Motor packages| Driver info | *(see example)* ####Person Field | Type | Value | Required/Optional | Description | Example ----- | ---- | ----- | ----------------- | ----------- | ------- gender | int | listGenders():code | Required | The gender of the person | 1 surname | String(1-30 chars) | String | * **Required** *: If the gender is male or female * **Not allowed** *: If the gender is company | The surname of the person | *(see example)* firstname | String(1-15 chars) | String | * **Required** *: If the gender is male or female * **Not allowed** *: If the gender is company | The name of the person | *(see example)* fathername | String(1-15 chars) | String | Optional | Father's name | *(see example)* employmentType | String | listEmployments():code | Optional | The code of the person's employment type | 220 licenseDate | Date | Date | Required | The license date of the person | 20/01/1999 birthDate | Date | Date | * **Required** *: If the gender is male or female * **Optional** *: If the gender is company | The birthdate of the person | 01/01/1987 maritalStatus | int | listMaritalStatuses():code | * **Required** *: If the gender is male or female * **Not allowed** * | The marital status of the person | 3 afm | String(1-9 chars) | Numerical | Required | The Tax Registration Number of the person | 123456789 personId | String | String | Optional | The person's ID number | AI12345 iban1-iban7 | String(1-34 chars) | String | Optional | The digits of the IBAN | 1111 streetName | String(1-30 chars) | String | Required | The street name of the person's residence | *(see example)* streetNo | String(1-10 chars) | String | Optional | The street number of the person's residence | *(see example)* postCode | String(1-15 chars) | Numerical | Required | The postal code of the person's residence | *(see example)* city | String(1-30 chars) | String | Required | The city of the person's residence | *(see example)* phoneNo | String(1-15 chars) | Numerical | Optional | The phone number (home or mobile) of the person | *(see example)* fax | String(1-15 chars) | Numerical | Optional | The fax number of the person | *(see example)* email | String(1-60 chars) | String | Optional | The email of the person | *(see example)* nameNo | String | Numerical | Optional | The nameNo of a person, if existing | 13734832 ####Pack check *[tariffy](#tariffy)* method. ### Output #### Quotation report Field | Type | Description | Example ----- | ---- | ----------- | ------- quotationCode | String | The quotation's code | 00232425 status | String | The quotation's status (e.g GREEN, YELLOW, RED)| GREEN Report | Report | The report notifying errors while issuing the quotation | *(see example)* pendencies | List<Pendency> | The list of pendencies (e.g Driver lisence doc) | *(see example)* #### Pendency Field | Type | Description | Example ----- | ---- | ----------- | ------- code | String | String | 100071626 type | String | String | 20000 description | String | String | Δεν έχει σταλεί η Αδεια Κυκλοφορίας του Οχήματος ###Example1 Example with yellow quotation *Input* ``` <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:v2="http://v2.soap.ws.api.gbox.generali.gr/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <soapenv:Header/> <soapenv:Body> <v2:issue> <quotation xsi:type="v2:MotorQuotation"> <pack code="802"> <cover code="280000000"> <sumInsured> <codeValue>953</codeValue> </sumInsured> </cover> <cover code="281000000"> <sumInsured> <codeValue>950</codeValue> </sumInsured> </cover> <cover code="753450171"> </cover> </pack> <distChannelCode>08000</distChannelCode> <insuranceStartDate>2017-04-27</insuranceStartDate> <duration>1</duration> <motorInsurable> <eurotaxCode>35603</eurotaxCode> <manufacturerYear>2010</manufacturerYear> <marketValue>18000</marketValue> <motorUseCode>000</motorUseCode> <noOfClaims>0</noOfClaims> <plateNo>IKM9589</plateNo> <protectionMeasures>0</protectionMeasures> <purchasedDate>2010-01-01</purchasedDate> <taxHp>1</taxHp> </motorInsurable> <policyHolder> <afm>094327684</afm> <birthDate>1985-01-01</birthDate> <city>ΑΘΗΝΑ</city> <companyName></companyName> <email>xxxxxxx@gmail.com</email> <employmentTypeCode>220</employmentTypeCode> <genderCode>2</genderCode> <licenseDate>2006-05-06</licenseDate> <maritalStatusCode>1</maritalStatusCode> <firstname>XXXXX</firstname> <lastname>XXXXXX</lastname> <nameNo></nameNo> <nationality>ΕΛΛΗΝΙΚΗ</nationality> <personId></personId> <phoneNo>21088888888</phoneNo> <postalCode>104 45</postalCode> <streetName>ΠΥΘΕΟΥ</streetName> <streetNo>2</streetNo> <surname>XXXX</surname> <postalCode>166 75</postalCode> </policyHolder> </quotation> </v2:issue> </soapenv:Body> </soapenv:Envelope> ``` *Output* ``` <S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"> <S:Body> <ns2:issueResponse xmlns:ns2="http://v2.soap.ws.api.gbox.generali.gr/"> <return> <quotationCode>01981652</quotationCode> <status>YELLOW</status> <pendency> <code>101764114</code> <type>20000</type> <description>Δεν έχει σταλεί η Αδεια Οδήγησης</description> </pendency> <pendency> <code>101764116</code> <type>20010</type> <description>Δεν έχει σταλεί η Αδεια Κυκλοφορίας του Οχήματος</description> </pendency> <pendency> <code>101764118</code> <type>20030</type> <description>Λοιπά συννημένα</description> </pendency> <report> <message> <severity>WARNING</severity> <code>0</code> <target>/quotation</target> <body>Η ασφαλισμένη αξία έχει διαφορά μεγαλύτερη του 20% από το EUROTAX</body> </message> <message> <severity>WARNING</severity> <code>0</code> <target>/quotation</target> <body>Ο Συμβ/νος έχει ήδη Ασφ/ριο με ζημιές, άκυρο από την Εταιρία</body> </message> <valid>true</valid> </report> </return> </ns2:issueResponse> </S:Body> </S:Envelope> ``` ###Example2 Example with green quotation *Input* ``` <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:v2="http://v2.soap.ws.api.gbox.generali.gr/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <soapenv:Header/> <soapenv:Body> <v2:issue> <quotation xsi:type="v2:MotorQuotation"> <pack code="802"> <cover code="280000000"> <sumInsured> <codeValue>953</codeValue> </sumInsured> </cover> <cover code="281000000"> <sumInsured> <codeValue>950</codeValue> </sumInsured> </cover> <cover code="753450171"> </cover> </pack> <distChannelCode>08000</distChannelCode> <insuranceStartDate>2017-04-27</insuranceStartDate> <duration>1</duration> <motorInsurable> <eurotaxCode>35603</eurotaxCode> <manufacturerYear>2010</manufacturerYear> <marketValue>12000</marketValue> <motorUseCode>000</motorUseCode> <noOfClaims>0</noOfClaims> <plateNo>IKM9550</plateNo> <protectionMeasures>0</protectionMeasures> <purchasedDate>2010-01-01</purchasedDate> <taxHp>1</taxHp> </motorInsurable> <policyHolder> <afm>123564296</afm> <birthDate>1985-01-01</birthDate> <city>ΑΘΗΝΑ</city> <companyName></companyName> <email>xxxxxxx@gmail.com</email> <employmentTypeCode>220</employmentTypeCode> <genderCode>2</genderCode> <licenseDate>2006-05-06</licenseDate> <maritalStatusCode>1</maritalStatusCode> <firstname>XXXXX</firstname> <lastname>XXXXXX</lastname> <nameNo></nameNo> <nationality>ΕΛΛΗΝΙΚΗ</nationality> <personId></personId> <phoneNo>21088888888</phoneNo> <postalCode>104 45</postalCode> <streetName>ΠΥΘΕΟΥ</streetName> <streetNo>2</streetNo> <surname>XXXX</surname> <postalCode>166 75</postalCode> </policyHolder> </quotation> </v2:issue> </soapenv:Body> </soapenv:Envelope> ``` *Output* ``` <S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"> <S:Body> <ns2:issueResponse xmlns:ns2="http://v2.soap.ws.api.gbox.generali.gr/"> <return> <quotationCode>01981662</quotationCode> <status>GREEN</status> <pendency> <code>101764194</code> <type>20000</type> <description>Δεν έχει σταλεί η Αδεια Οδήγησης</description> </pendency> <pendency> <code>101764196</code> <type>20010</type> <description>Δεν έχει σταλεί η Αδεια Κυκλοφορίας του Οχήματος</description> </pendency> <pendency> <code>101764198</code> <type>20030</type> <description>Λοιπά συννημένα</description> </pendency> <report> <valid>true</valid> </report> </return> </ns2:issueResponse> </S:Body> </S:Envelope> ``` ###Example3 Example with a RED quotation *Input* ``` <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:v2="http://v2.soap.ws.api.gbox.generali.gr/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <soapenv:Header/> <soapenv:Body> <v2:issue> <quotation xsi:type="v2:MotorQuotation"> <pack code="802"> <cover code="280000000"> <sumInsured> <codeValue>953</codeValue> </sumInsured> </cover> <cover code="281000000"> <sumInsured> <codeValue>950</codeValue> </sumInsured> </cover> <cover code="753450171"> </cover> </pack> <distChannelCode>08000</distChannelCode> <insuranceStartDate>2017-04-27</insuranceStartDate> <duration>1</duration> <motorInsurable> <eurotaxCode>35603</eurotaxCode> <manufacturerYear>2010</manufacturerYear> <marketValue>12000</marketValue> <motorUseCode>000</motorUseCode> <noOfClaims>0</noOfClaims> <plateNo>IKM9550</plateNo> <protectionMeasures>0</protectionMeasures> <purchasedDate>2010-01-01</purchasedDate> <taxHp>1</taxHp> </motorInsurable> <policyHolder> <afm>123564295</afm> <birthDate>1985-01-01</birthDate> <city>ΑΘΗΝΑ</city> <companyName></companyName> <email>xxxxxxx@gmail.com</email> <employmentTypeCode>220</employmentTypeCode> <genderCode>2</genderCode> <licenseDate>2006-05-06</licenseDate> <maritalStatusCode>1</maritalStatusCode> <firstname>XXXXX</firstname> <lastname>XXXXXX</lastname> <nameNo></nameNo> <nationality>ΕΛΛΗΝΙΚΗ</nationality> <personId></personId> <phoneNo>21088888888</phoneNo> <postalCode>104 45</postalCode> <streetName>ΠΥΘΕΟΥ</streetName> <streetNo>2</streetNo> <surname>XXXX</surname> <postalCode>166 75</postalCode> </policyHolder> </quotation> </v2:issue> </soapenv:Body> </soapenv:Envelope> ``` *Output* ``` <S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"> <S:Body> <ns2:issueResponse xmlns:ns2="http://v2.soap.ws.api.gbox.generali.gr/"> <return> <quotationCode>01981663</quotationCode> <status>RED</status> <report> <message> <severity>ERROR</severity> <code>0</code> <target>/quotation</target> <body>Το Α.Φ.Μ. του Συμβαλλομένου είναι λάθος</body> </message> <valid>false</valid> </report> </return> </ns2:issueResponse> </S:Body> </S:Envelope> ``` ### Code example (in Java) ``` public static final void main(String[] args) { Soap_002fV2_002fQuotation service = new Soap_002fV2_002fQuotation(); QuotationWsV2 quotationService = service.getQuotationWsV2BasePort(); Map<String, Object> context = ((BindingProvider)quotationService).getRequestContext(); context.put(BindingProvider.USERNAME_PROPERTY, "ws-000000028ezr9"); context.put(BindingProvider.PASSWORD_PROPERTY, "CP64UpfDVZ-test"); Person policyHolder = new Person(); policyHolder.setBirthDate(date(1972, 4, 12)); policyHolder.setMaritalStatusCode(3); policyHolder.setGenderCode(1); policyHolder.setPostalCode("104 45"); policyHolder.setAfm("154452074"); policyHolder.setEmploymentTypeCode("220"); policyHolder.setStreetName("Ermou"); Person driver = new Person(); driver.setBirthDate(date(1982, 8, 22)); driver.setMaritalStatusCode(1); driver.setGenderCode(1); driver.setPostalCode("104 45"); driver.setAfm("045319514"); driver.setEmploymentTypeCode("220"); driver.setStreetName("Ramblas"); MotorInsurable motorInsurable = new MotorInsurable(); motorInsurable.setMotorUseCode("000"); motorInsurable.setEurotaxCode("35603"); motorInsurable.setManufacturerYear(2010); motorInsurable.setMarketValue(BigDecimal.valueOf(15650)); motorInsurable.setPlateNo("IBZ8976"); motorInsurable.setNoOfClaims(2); motorInsurable.setDriver(driver); // Fill mandatory Cover for Personal Accident Cover personalAccident = new Cover(); Value sumInsuredPersonal = new Value(); sumInsuredPersonal.setCodeValue("953"); personalAccident.setCode("280000000"); personalAccident.setSumInsured(sumInsuredPersonal); // Fill mandatory Cover for Windscreen Cover windscreen = new Cover(); Value sumInsuredWindscreen = new Value(); sumInsuredWindscreen.setCodeValue("950"); windscreen.setCode("281000000"); windscreen.setSumInsured(sumInsuredWindscreen); // Fill optional Cover for Motor Assistance Cover motorAssistance = new Cover(); motorAssistance.setCode("753450171"); Pack pack = new Pack(); pack.setCode("802"); pack.getCover().add(personalAccident); pack.getCover().add(windscreen); pack.getCover().add(motorAssistance); MotorQuotation quotation = new MotorQuotation(); quotation.setDistChannelCode("08000"); quotation.setDuration(1); quotation.setInsuranceStartDate(date(2015, 11, 23)); quotation.setMotorInsurable(motorInsurable); quotation.setPack(pack); quotation.setPolicyHolder(policyHolder); try { QuotationCreateReport report = quotationService.issue(quotation); System.out.println(report.getStatus()); } catch(ValidationException e) { for(Message message : e.getFaultInfo().getReport().getMessage()) { System.out.println(message.getCode()+" - "+message.getSeverity()+" - "+message.getTarget()+": "+message.getBody()); } } } ``` ##listPackagesInfo <a name="listPackagesInfo"></a> Provides information about the selectable packages. This information includes the covers and parameters that should be sent to our system when performing tariffication or issuing policies. Pay notice that packages (801-804) are reffered to E.I.X motoruse only and 003 refers to every other use than E.I.X. ### Output Field | Type | Value | Description | Example ----- | ---- | ----- | ----------- | ------- packageInfo | List[PackageInfo] | PackageInfo | A List of the available packages | *(see below)* #### PackageInfo Field | Type | Value | Description | Example ----- | ---- | ----- | ----------- | ------- code | String | Numerical | The code of the package | 801 description | String | Textual | The description of the package | Speed1 cover | List[CoverInfo] | List[CoverInfo] | The products belonging to the package | *(see example)* #### ProductInfo Field | Type | Value | Description | Example ----- | ---- | ----- | ----------- | ------- code | String | Numerical | The code of the product | 001 description | String | Textual | The description of the product | Product 1 mandatory | Boolean | Boolean | Defines if the product is mandatory or optional | false sumInsured | FieldInfo | FieldInfo | The information about the sum insured | ["automatic", Value[3000], List[]] premium | FieldInfo | FieldInfo | The information about the premium | ["automatic", Value[3000], List[ Param["001", "MERCEDES"], Param["002", "AUDI"]]] params | List[ParamInfo] | ParamInfo | The parameters of the product | ["001", "Extra Param1", Value[1000], List[ Param["001", "ALARM"] ]] #### FieldInfo <a name="FieldInfo"></a> Field | Type | Value | Description | Example ----- | ---- | ----- | ----------- | ------- type | String | automatic, typeIn, none, param | The type of the field | automatic value | Value | Value | The value of the field | Value[3000] options | list[Param] | Param | Possible options of the field | *(see General considerations)* About the type element: The FieldInfo *type* refers to the kind of value that the field holds. Type | Description ---- | ----------- typeIn | A numerical value, freely chosen. The value can still be negatively validated from our business rules. param | A code value, to be chosen among a provided list. The list of options is provided with the field. automatic | A value that is not chosen by the client application but outputted by our system. none | There is no value assignable, neither from the client, neither from our system. #### ParamInfo Field | Type | Value | Description | Example ----- | ---- | ----- | ----------- | ------- type | String | String | Specifies the type of the parameter | 001 label | String | String | The label of the parameter | Extra Param1 value | Value | Value | The value of the parameter | Value[1000] options | List[Param] | Param | Options of the parameter | *(see General considerations)* ###Example ``` <S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"> <S:Body> <ns2:listPackagesInfoResponse xmlns:ns2="http://v2.soap.ws.api.gbox.generali.gr/"> <return code="801"> <description>Πακέτο Speed1</description> <cover code="215150000"> <description>Α.Ε.-Σωμ.Βλάβες</description> <mandatory>true</mandatory> <sumInsured> <type>automatic</type> </sumInsured> <premium> <type>automatic</type> </premium> </cover> <cover code="215151000"> <description>Α.Ε.-Υλ.Ζημιές</description> <mandatory>true</mandatory> <sumInsured> <type>automatic</type> </sumInsured> <premium> <type>automatic</type> </premium> </cover> <cover code="215152000"> <description>Α.Ε.στη μεταφ.&amp; σε φυλ.χώρους</description> <mandatory>true</mandatory> <sumInsured> <type>none</type> </sumInsured> <premium> <type>automatic</type> </premium> </cover> <cover code="294153000"> <description>Υλ.Ζημιές από ανασφ.όχημα</description> <mandatory>true</mandatory> <sumInsured> <type>automatic</type> </sumInsured> <premium> <type>automatic</type> </premium> </cover> <cover code="297000000"> <description>Κάλυψη αερόσακων</description> <mandatory>true</mandatory> <sumInsured> <type>automatic</type> </sumInsured> <premium> <type>automatic</type> </premium> </cover> <cover code="129000000"> <description>Νομική Στήριξη</description> <mandatory>true</mandatory> <sumInsured> <type>automatic</type> </sumInsured> <premium> <type>automatic</type> </premium> </cover> <cover code="742265173"> <description>Φροντίδα Ατυχήματος</description> <mandatory>true</mandatory> <sumInsured> <type>none</type> </sumInsured> <premium> <type>automatic</type> </premium> </cover> <cover code="752000000"> <description>Ρυμούλκ.λόγω ατυχ.</description> <mandatory>true</mandatory> <sumInsured> <type>none</type> </sumInsured> <premium> <type>automatic</type> </premium> </cover> <cover code="280000000"> <description>Προσωπικό Ατύχημα</description> <mandatory>true</mandatory> <sumInsured> <type>param</type> <option code="954"> <description>Ασφ.Κεφ.15.000 Ευρώ</description> </option> <option code="953"> <description>Ασφ.Κεφ.10.000 Ευρώ</description> </option> <option code="955"> <description>Ασφ.Κεφ.30.000 Ευρώ</description> </option> </sumInsured> <premium> <type>automatic</type> </premium> </cover> <cover code="283000000"> <description>Πυρκαγιά</description> <mandatory>true</mandatory> <sumInsured> <type>automatic</type> </sumInsured> <premium> <type>automatic</type> </premium> </cover> <cover code="282000000"> <description>Α.Ε.από πυρκαγιά</description> <mandatory>true</mandatory> <sumInsured> <type>automatic</type> </sumInsured> <premium> <type>automatic</type> </premium> </cover> <cover code="211000000"> <description>Ολική Κλοπή</description> <mandatory>true</mandatory> <sumInsured> <type>automatic</type> </sumInsured> <premium> <type>automatic</type> </premium> </cover> <cover code="285000000"> <description>Μερική Κλοπή</description> <mandatory>true</mandatory> <sumInsured> <type>automatic</type> </sumInsured> <premium> <type>automatic</type> </premium> </cover> <cover code="295154000"> <description>Ενοικ.αυτοκ.λόγω πυρκ.-ολ.κλ.</description> <mandatory>true</mandatory> <sumInsured> <type>automatic</type> </sumInsured> <premium> <type>automatic</type> </premium> </cover> <cover code="736000000"> <description>Φυσικά Φαινόμενα</description> <mandatory>true</mandatory> <sumInsured> <type>automatic</type> </sumInsured> <premium> <type>automatic</type> </premium> <param> <type>GGY</type> <description>Απαλλαγή</description> <option code="701"> <description>Απαλλαγή 300</description> </option> </param> </cover> <cover code="281000000"> <description>Θραύση Κρυστάλλων</description> <mandatory>true</mandatory> <sumInsured> <type>param</type> <option code="951"> <description>Ασφ.Κεφ.3.000 Ευρώ</description> </option> <option code="950"> <description>Ασφ.Κεφ.1.000 Ευρώ</description> </option> <option code="952"> <description>Ασφ.Κεφ.5.000 Ευρώ</description> </option> </sumInsured> <premium> <type>automatic</type> </premium> </cover> <cover code="527000000"> <description>Αντικατάσταση κλειδιών</description> <mandatory>true</mandatory> <sumInsured> <type>automatic</type> </sumInsured> <premium> <type>automatic</type> </premium> </cover> <cover code="528000000"> <description>Απώλεια εγγράφων</description> <mandatory>true</mandatory> <sumInsured> <type>automatic</type> </sumInsured> <premium> <type>automatic</type> </premium> </cover> <cover code="526000000"> <description>Προστασία αξίας οχήματος</description> <mandatory>false</mandatory> <sumInsured> <type>automatic</type> </sumInsured> <premium> <type>automatic</type> </premium> </cover> <cover code="753450174"> <description>Οδική Βοήθεια</description> <mandatory>false</mandatory> <sumInsured> <type>automatic</type> </sumInsured> <premium> <type>automatic</type> </premium> </cover> <cover code="105255000"> <description>Α.Ε.Ρυμουλκούμενου</description> <mandatory>false</mandatory> <sumInsured> <type>automatic</type> </sumInsured> <premium> <type>automatic</type> </premium> </cover> <cover code="576000000"> <description>Νέος σε ηλικία οδηγός</description> <mandatory>false</mandatory> <sumInsured> <type>automatic</type> </sumInsured> <premium> <type>automatic</type> </premium> </cover> <cover code="577000000"> <description>Νέος σε δίπλωμα οδηγός</description> <mandatory>false</mandatory> <sumInsured> <type>automatic</type> </sumInsured> <premium> <type>automatic</type> </premium> </cover> </return> <return code="802"> <description>Πακέτο Speed2</description> <cover code="215150000"> <description>Α.Ε.-Σωμ.Βλάβες</description> <mandatory>true</mandatory> <sumInsured> <type>automatic</type> </sumInsured> <premium> <type>automatic</type> </premium> </cover> <cover code="215151000"> <description>Α.Ε.-Υλ.Ζημιές</description> <mandatory>true</mandatory> <sumInsured> <type>automatic</type> </sumInsured> <premium> <type>automatic</type> </premium> </cover> <cover code="215152000"> <description>Α.Ε.στη μεταφ.&amp; σε φυλ.χώρους</description> <mandatory>true</mandatory> <sumInsured> <type>none</type> </sumInsured> <premium> <type>automatic</type> </premium> </cover> <cover code="294153000"> <description>Υλ.Ζημιές από ανασφ.όχημα</description> <mandatory>true</mandatory> <sumInsured> <type>automatic</type> </sumInsured> <premium> <type>automatic</type> </premium> </cover> <cover code="297000000"> <description>Κάλυψη αερόσακων</description> <mandatory>true</mandatory> <sumInsured> <type>automatic</type> </sumInsured> <premium> <type>automatic</type> </premium> </cover> <cover code="129000000"> <description>Νομική Στήριξη</description> <mandatory>true</mandatory> <sumInsured> <type>automatic</type> </sumInsured> <premium> <type>automatic</type> </premium> </cover> <cover code="742265173"> <description>Φροντίδα Ατυχήματος</description> <mandatory>true</mandatory> <sumInsured> <type>none</type> </sumInsured> <premium> <type>automatic</type> </premium> </cover> <cover code="752000000"> <description>Ρυμούλκ.λόγω ατυχ.</description> <mandatory>true</mandatory> <sumInsured> <type>none</type> </sumInsured> <premium> <type>automatic</type> </premium> </cover> <cover code="280000000"> <description>Προσωπικό Ατύχημα</description> <mandatory>true</mandatory> <sumInsured> <type>param</type> <option code="954"> <description>Ασφ.Κεφ.15.000 Ευρώ</description> </option> <option code="953"> <description>Ασφ.Κεφ.10.000 Ευρώ</description> </option> <option code="955"> <description>Ασφ.Κεφ.30.000 Ευρώ</description> </option> </sumInsured> <premium> <type>automatic</type> </premium> </cover> <cover code="283000000"> <description>Πυρκαγιά</description> <mandatory>true</mandatory> <sumInsured> <type>automatic</type> </sumInsured> <premium> <type>automatic</type> </premium> </cover> <cover code="282000000"> <description>Α.Ε.από πυρκαγιά</description> <mandatory>true</mandatory> <sumInsured> <type>automatic</type> </sumInsured> <premium> <type>automatic</type> </premium> </cover> <cover code="211000000"> <description>Ολική Κλοπή</description> <mandatory>true</mandatory> <sumInsured> <type>automatic</type> </sumInsured> <premium> <type>automatic</type> </premium> </cover> <cover code="285000000"> <description>Μερική Κλοπή</description> <mandatory>true</mandatory> <sumInsured> <type>automatic</type> </sumInsured> <premium> <type>automatic</type> </premium> </cover> <cover code="295154000"> <description>Ενοικ.αυτοκ.λόγω πυρκ.-ολ.κλ.</description> <mandatory>true</mandatory> <sumInsured> <type>automatic</type> </sumInsured> <premium> <type>automatic</type> </premium> </cover> <cover code="736000000"> <description>Φυσικά Φαινόμενα</description> <mandatory>true</mandatory> <sumInsured> <type>automatic</type> </sumInsured> <premium> <type>automatic</type> </premium> <param> <type>GGY</type> <description>Απαλλαγή</description> <option code="701"> <description>Απαλλαγή 300</description> </option> </param> </cover> <cover code="281000000"> <description>Θραύση Κρυστάλλων</description> <mandatory>true</mandatory> <sumInsured> <type>param</type> <option code="951"> <description>Ασφ.Κεφ.3.000 Ευρώ</description> </option> <option code="950"> <description>Ασφ.Κεφ.1.000 Ευρώ</description> </option> <option code="952"> <description>Ασφ.Κεφ.5.000 Ευρώ</description> </option> </sumInsured> <premium> <type>automatic</type> </premium> </cover> <cover code="527000000"> <description>Αντικατάσταση κλειδιών</description> <mandatory>true</mandatory> <sumInsured> <type>automatic</type> </sumInsured> <premium> <type>automatic</type> </premium> </cover> <cover code="528000000"> <description>Απώλεια εγγράφων</description> <mandatory>true</mandatory> <sumInsured> <type>automatic</type> </sumInsured> <premium> <type>automatic</type> </premium> </cover> <cover code="526000000"> <description>Προστασία αξίας οχήματος</description> <mandatory>false</mandatory> <sumInsured> <type>automatic</type> </sumInsured> <premium> <type>automatic</type> </premium> </cover> <cover code="753450174"> <description>Οδική Βοήθεια</description> <mandatory>false</mandatory> <sumInsured> <type>automatic</type> </sumInsured> <premium> <type>automatic</type> </premium> </cover> <cover code="105255000"> <description>Α.Ε.Ρυμουλκούμενου</description> <mandatory>false</mandatory> <sumInsured> <type>automatic</type> </sumInsured> <premium> <type>automatic</type> </premium> </cover> <cover code="576000000"> <description>Νέος σε ηλικία οδηγός</description> <mandatory>false</mandatory> <sumInsured> <type>automatic</type> </sumInsured> <premium> <type>automatic</type> </premium> </cover> <cover code="577000000"> <description>Νέος σε δίπλωμα οδηγός</description> <mandatory>false</mandatory> <sumInsured> <type>automatic</type> </sumInsured> <premium> <type>automatic</type> </premium> </cover> </return> <return code="803"> <description>Πακέτο Speed3</description> <cover code="215150000"> <description>Α.Ε.-Σωμ.Βλάβες</description> <mandatory>true</mandatory> <sumInsured> <type>automatic</type> </sumInsured> <premium> <type>automatic</type> </premium> </cover> <cover code="215151000"> <description>Α.Ε.-Υλ.Ζημιές</description> <mandatory>true</mandatory> <sumInsured> <type>automatic</type> </sumInsured> <premium> <type>automatic</type> </premium> </cover> <cover code="215152000"> <description>Α.Ε.στη μεταφ.&amp; σε φυλ.χώρους</description> <mandatory>true</mandatory> <sumInsured> <type>none</type> </sumInsured> <premium> <type>automatic</type> </premium> </cover> <cover code="294153000"> <description>Υλ.Ζημιές από ανασφ.όχημα</description> <mandatory>true</mandatory> <sumInsured> <type>automatic</type> </sumInsured> <premium> <type>automatic</type> </premium> </cover> <cover code="297000000"> <description>Κάλυψη αερόσακων</description> <mandatory>true</mandatory> <sumInsured> <type>automatic</type> </sumInsured> <premium> <type>automatic</type> </premium> </cover> <cover code="129000000"> <description>Νομική Στήριξη</description> <mandatory>true</mandatory> <sumInsured> <type>automatic</type> </sumInsured> <premium> <type>automatic</type> </premium> </cover> <cover code="742265173"> <description>Φροντίδα Ατυχήματος</description> <mandatory>true</mandatory> <sumInsured> <type>none</type> </sumInsured> <premium> <type>automatic</type> </premium> </cover> <cover code="752000000"> <description>Ρυμούλκ.λόγω ατυχ.</description> <mandatory>true</mandatory> <sumInsured> <type>none</type> </sumInsured> <premium> <type>automatic</type> </premium> </cover> <cover code="280000000"> <description>Προσωπικό Ατύχημα</description> <mandatory>true</mandatory> <sumInsured> <type>param</type> <option code="954"> <description>Ασφ.Κεφ.15.000 Ευρώ</description> </option> <option code="953"> <description>Ασφ.Κεφ.10.000 Ευρώ</description> </option> <option code="955"> <description>Ασφ.Κεφ.30.000 Ευρώ</description> </option> </sumInsured> <premium> <type>automatic</type> </premium> </cover> <cover code="283000000"> <description>Πυρκαγιά</description> <mandatory>true</mandatory> <sumInsured> <type>automatic</type> </sumInsured> <premium> <type>automatic</type> </premium> </cover> <cover code="282000000"> <description>Α.Ε.από πυρκαγιά</description> <mandatory>true</mandatory> <sumInsured> <type>automatic</type> </sumInsured> <premium> <type>automatic</type> </premium> </cover> <cover code="211000000"> <description>Ολική Κλοπή</description> <mandatory>true</mandatory> <sumInsured> <type>automatic</type> </sumInsured> <premium> <type>automatic</type> </premium> </cover> <cover code="285000000"> <description>Μερική Κλοπή</description> <mandatory>true</mandatory> <sumInsured> <type>automatic</type> </sumInsured> <premium> <type>automatic</type> </premium> </cover> <cover code="295154000"> <description>Ενοικ.αυτοκ.λόγω πυρκ.-ολ.κλ.</description> <mandatory>true</mandatory> <sumInsured> <type>automatic</type> </sumInsured> <premium> <type>automatic</type> </premium> </cover> <cover code="736000000"> <description>Φυσικά Φαινόμενα</description> <mandatory>true</mandatory> <sumInsured> <type>automatic</type> </sumInsured> <premium> <type>automatic</type> </premium> <param> <type>GGY</type> <description>Απαλλαγή</description> <option code="701"> <description>Απαλλαγή 300</description> </option> </param> </cover> <cover code="281000000"> <description>Θραύση Κρυστάλλων</description> <mandatory>true</mandatory> <sumInsured> <type>param</type> <option code="951"> <description>Ασφ.Κεφ.3.000 Ευρώ</description> </option> <option code="950"> <description>Ασφ.Κεφ.1.000 Ευρώ</description> </option> <option code="952"> <description>Ασφ.Κεφ.5.000 Ευρώ</description> </option> </sumInsured> <premium> <type>automatic</type> </premium> </cover> <cover code="527000000"> <description>Αντικατάσταση κλειδιών</description> <mandatory>true</mandatory> <sumInsured> <type>automatic</type> </sumInsured> <premium> <type>automatic</type> </premium> </cover> <cover code="528000000"> <description>Απώλεια εγγράφων</description> <mandatory>true</mandatory> <sumInsured> <type>automatic</type> </sumInsured> <premium> <type>automatic</type> </premium> </cover> <cover code="526000000"> <description>Προστασία αξίας οχήματος</description> <mandatory>false</mandatory> <sumInsured> <type>automatic</type> </sumInsured> <premium> <type>automatic</type> </premium> </cover> <cover code="753450174"> <description>Οδική Βοήθεια</description> <mandatory>false</mandatory> <sumInsured> <type>automatic</type> </sumInsured> <premium> <type>automatic</type> </premium> </cover> <cover code="105255000"> <description>Α.Ε.Ρυμουλκούμενου</description> <mandatory>false</mandatory> <sumInsured> <type>automatic</type> </sumInsured> <premium> <type>automatic</type> </premium> </cover> <cover code="576000000"> <description>Νέος σε ηλικία οδηγός</description> <mandatory>false</mandatory> <sumInsured> <type>automatic</type> </sumInsured> <premium> <type>automatic</type> </premium> </cover> <cover code="577000000"> <description>Νέος σε δίπλωμα οδηγός</description> <mandatory>false</mandatory> <sumInsured> <type>automatic</type> </sumInsured> <premium> <type>automatic</type> </premium> </cover> </return> <return code="003"> <description>Πακέτο Motor</description> <cover code="215150000"> <description>Α.Ε.-Σωμ.Βλάβες</description> <mandatory>true</mandatory> <sumInsured> <type>automatic</type> </sumInsured> <premium> <type>automatic</type> </premium> </cover> <cover code="215151000"> <description>Α.Ε.-Υλ.Ζημιές</description> <mandatory>true</mandatory> <sumInsured> <type>automatic</type> </sumInsured> <premium> <type>automatic</type> </premium> </cover> <cover code="215152000"> <description>Α.Ε.στη μεταφ.&amp; σε φυλ.χώρους</description> <mandatory>true</mandatory> <sumInsured> <type>none</type> </sumInsured> <premium> <type>automatic</type> </premium> </cover> <cover code="294153000"> <description>Υλ.Ζημιές από ανασφ.όχημα</description> <mandatory>true</mandatory> <sumInsured> <type>automatic</type> </sumInsured> <premium> <type>automatic</type> </premium> </cover> <cover code="297000000"> <description>Κάλυψη αερόσακων</description> <mandatory>true</mandatory> <sumInsured> <type>automatic</type> </sumInsured> <premium> <type>automatic</type> </premium> </cover> <cover code="129000000"> <description>Νομική Στήριξη</description> <mandatory>true</mandatory> <sumInsured> <type>automatic</type> </sumInsured> <premium> <type>automatic</type> </premium> </cover> <cover code="742265173"> <description>Φροντίδα Ατυχήματος</description> <mandatory>true</mandatory> <sumInsured> <type>none</type> </sumInsured> <premium> <type>automatic</type> </premium> </cover> <cover code="752000000"> <description>Ρυμούλκ.λόγω ατυχ.</description> <mandatory>true</mandatory> <sumInsured> <type>none</type> </sumInsured> <premium> <type>automatic</type> </premium> </cover> <cover code="280000000"> <description>Προσωπικό Ατύχημα</description> <mandatory>true</mandatory> <sumInsured> <type>param</type> <option code="954"> <description>Ασφ.Κεφ.15.000 Ευρώ</description> </option> <option code="953"> <description>Ασφ.Κεφ.10.000 Ευρώ</description> </option> <option code="955"> <description>Ασφ.Κεφ.30.000 Ευρώ</description> </option> </sumInsured> <premium> <type>automatic</type> </premium> </cover> <cover code="283000000"> <description>Πυρκαγιά</description> <mandatory>true</mandatory> <sumInsured> <type>automatic</type> </sumInsured> <premium> <type>automatic</type> </premium> </cover> <cover code="282000000"> <description>Α.Ε.από πυρκαγιά</description> <mandatory>true</mandatory> <sumInsured> <type>automatic</type> </sumInsured> <premium> <type>automatic</type> </premium> </cover> <cover code="211000000"> <description>Ολική Κλοπή</description> <mandatory>true</mandatory> <sumInsured> <type>automatic</type> </sumInsured> <premium> <type>automatic</type> </premium> </cover> <cover code="285000000"> <description>Μερική Κλοπή</description> <mandatory>true</mandatory> <sumInsured> <type>automatic</type> </sumInsured> <premium> <type>automatic</type> </premium> </cover> <cover code="295154000"> <description>Ενοικ.αυτοκ.λόγω πυρκ.-ολ.κλ.</description> <mandatory>true</mandatory> <sumInsured> <type>automatic</type> </sumInsured> <premium> <type>automatic</type> </premium> </cover> <cover code="736000000"> <description>Φυσικά Φαινόμενα</description> <mandatory>true</mandatory> <sumInsured> <type>automatic</type> </sumInsured> <premium> <type>automatic</type> </premium> <param> <type>GGY</type> <description>Απαλλαγή</description> <option code="701"> <description>Απαλλαγή 300</description> </option> </param> </cover> <cover code="281000000"> <description>Θραύση Κρυστάλλων</description> <mandatory>true</mandatory> <sumInsured> <type>param</type> <option code="951"> <description>Ασφ.Κεφ.3.000 Ευρώ</description> </option> <option code="950"> <description>Ασφ.Κεφ.1.000 Ευρώ</description> </option> <option code="952"> <description>Ασφ.Κεφ.5.000 Ευρώ</description> </option> </sumInsured> <premium> <type>automatic</type> </premium> </cover> <cover code="527000000"> <description>Αντικατάσταση κλειδιών</description> <mandatory>true</mandatory> <sumInsured> <type>automatic</type> </sumInsured> <premium> <type>automatic</type> </premium> </cover> <cover code="528000000"> <description>Απώλεια εγγράφων</description> <mandatory>true</mandatory> <sumInsured> <type>automatic</type> </sumInsured> <premium> <type>automatic</type> </premium> </cover> <cover code="526000000"> <description>Προστασία αξίας οχήματος</description> <mandatory>false</mandatory> <sumInsured> <type>automatic</type> </sumInsured> <premium> <type>automatic</type> </premium> </cover> <cover code="753450174"> <description>Οδική Βοήθεια</description> <mandatory>false</mandatory> <sumInsured> <type>automatic</type> </sumInsured> <premium> <type>automatic</type> </premium> </cover> <cover code="105255000"> <description>Α.Ε.Ρυμουλκούμενου</description> <mandatory>false</mandatory> <sumInsured> <type>automatic</type> </sumInsured> <premium> <type>automatic</type> </premium> </cover> <cover code="576000000"> <description>Νέος σε ηλικία οδηγός</description> <mandatory>false</mandatory> <sumInsured> <type>automatic</type> </sumInsured> <premium> <type>automatic</type> </premium> </cover> <cover code="577000000"> <description>Νέος σε δίπλωμα οδηγός</description> <mandatory>false</mandatory> <sumInsured> <type>automatic</type> </sumInsured> <premium> <type>automatic</type> </premium> </cover> </return> </ns2:listPackagesInfoResponse> </S:Body> </S:Envelope> ``` ##getPackageInfo <a name="getPackageInfo"></a> Provides information about a selected package. This information includes the covers and parameters that should be sent to our system when performing tariffication or issuing policies. ### Input Field | Type | Value | Required/Optional | Description | Example ----- | ---- | ----- | ----------------- | ----------- | ------- packageCode | String | Numerical | required | The code of the requesting package | 801 ### Output Field | Type | Value | Description | Example ----- | ---- | ----- | ----------- | ------- packageInfo | PackageInfo | PackageInfo | A List of the available packages | *(see listPackageInfo)* ###Example 1 **Valid Example** *Input* ``` <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:v2="http://v2.soap.ws.api.gbox.generali.gr/"> <soapenv:Header/> <soapenv:Body> <v2:getPackageInfo> <!--Optional:--> <pack>801</pack> </v2:getPackageInfo> </soapenv:Body> </soapenv:Envelope> ``` *Output* ``` <S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"> <S:Body> <ns2:getPackageInfoResponse xmlns:ns2="http://v2.soap.ws.api.gbox.generali.gr/"> <return code="801"> <description>Πακέτο Speed1</description> <cover code="215150000"> <description>Α.Ε.-Σωμ.Βλάβες</description> <mandatory>true</mandatory> <sumInsured> <type>automatic</type> </sumInsured> <premium> <type>automatic</type> </premium> </cover> <cover code="215151000"> <description>Α.Ε.-Υλ.Ζημιές</description> <mandatory>true</mandatory> <sumInsured> <type>automatic</type> </sumInsured> <premium> <type>automatic</type> </premium> </cover> <cover code="215152000"> <description>Α.Ε.στη μεταφ.&amp; σε φυλ.χώρους</description> <mandatory>true</mandatory> <sumInsured> <type>none</type> </sumInsured> <premium> <type>automatic</type> </premium> </cover> <cover code="294153000"> <description>Υλ.Ζημιές από ανασφ.όχημα</description> <mandatory>true</mandatory> <sumInsured> <type>automatic</type> </sumInsured> <premium> <type>automatic</type> </premium> </cover> <cover code="297000000"> <description>Κάλυψη αερόσακων</description> <mandatory>true</mandatory> <sumInsured> <type>automatic</type> </sumInsured> <premium> <type>automatic</type> </premium> </cover> <cover code="129000000"> <description>Νομική Στήριξη</description> <mandatory>true</mandatory> <sumInsured> <type>automatic</type> </sumInsured> <premium> <type>automatic</type> </premium> </cover> <cover code="742265173"> <description>Φροντίδα Ατυχήματος</description> <mandatory>true</mandatory> <sumInsured> <type>none</type> </sumInsured> <premium> <type>automatic</type> </premium> </cover> <cover code="752000000"> <description>Ρυμούλκ.λόγω ατυχ.</description> <mandatory>true</mandatory> <sumInsured> <type>none</type> </sumInsured> <premium> <type>automatic</type> </premium> </cover> <cover code="280000000"> <description>Προσωπικό Ατύχημα</description> <mandatory>true</mandatory> <sumInsured> <type>param</type> <option code="954"> <description>Ασφ.Κεφ.15.000 Ευρώ</description> </option> <option code="953"> <description>Ασφ.Κεφ.10.000 Ευρώ</description> </option> <option code="955"> <description>Ασφ.Κεφ.30.000 Ευρώ</description> </option> </sumInsured> <premium> <type>automatic</type> </premium> </cover> <cover code="283000000"> <description>Πυρκαγιά</description> <mandatory>true</mandatory> <sumInsured> <type>automatic</type> </sumInsured> <premium> <type>automatic</type> </premium> </cover> <cover code="282000000"> <description>Α.Ε.από πυρκαγιά</description> <mandatory>true</mandatory> <sumInsured> <type>automatic</type> </sumInsured> <premium> <type>automatic</type> </premium> </cover> <cover code="211000000"> <description>Ολική Κλοπή</description> <mandatory>true</mandatory> <sumInsured> <type>automatic</type> </sumInsured> <premium> <type>automatic</type> </premium> </cover> <cover code="285000000"> <description>Μερική Κλοπή</description> <mandatory>true</mandatory> <sumInsured> <type>automatic</type> </sumInsured> <premium> <type>automatic</type> </premium> </cover> <cover code="295154000"> <description>Ενοικ.αυτοκ.λόγω πυρκ.-ολ.κλ.</description> <mandatory>true</mandatory> <sumInsured> <type>automatic</type> </sumInsured> <premium> <type>automatic</type> </premium> </cover> <cover code="736000000"> <description>Φυσικά Φαινόμενα</description> <mandatory>true</mandatory> <sumInsured> <type>automatic</type> </sumInsured> <premium> <type>automatic</type> </premium> <param> <type>GGY</type> <description>Απαλλαγή</description> <option code="701"> <description>Απαλλαγή 300</description> </option> </param> </cover> <cover code="281000000"> <description>Θραύση Κρυστάλλων</description> <mandatory>true</mandatory> <sumInsured> <type>param</type> <option code="951"> <description>Ασφ.Κεφ.3.000 Ευρώ</description> </option> <option code="950"> <description>Ασφ.Κεφ.1.000 Ευρώ</description> </option> <option code="952"> <description>Ασφ.Κεφ.5.000 Ευρώ</description> </option> </sumInsured> <premium> <type>automatic</type> </premium> </cover> <cover code="527000000"> <description>Αντικατάσταση κλειδιών</description> <mandatory>true</mandatory> <sumInsured> <type>automatic</type> </sumInsured> <premium> <type>automatic</type> </premium> </cover> <cover code="528000000"> <description>Απώλεια εγγράφων</description> <mandatory>true</mandatory> <sumInsured> <type>automatic</type> </sumInsured> <premium> <type>automatic</type> </premium> </cover> <cover code="526000000"> <description>Προστασία αξίας οχήματος</description> <mandatory>false</mandatory> <sumInsured> <type>automatic</type> </sumInsured> <premium> <type>automatic</type> </premium> </cover> <cover code="753450174"> <description>Οδική Βοήθεια</description> <mandatory>false</mandatory> <sumInsured> <type>automatic</type> </sumInsured> <premium> <type>automatic</type> </premium> </cover> <cover code="105255000"> <description>Α.Ε.Ρυμουλκούμενου</description> <mandatory>false</mandatory> <sumInsured> <type>automatic</type> </sumInsured> <premium> <type>automatic</type> </premium> </cover> <cover code="576000000"> <description>Νέος σε ηλικία οδηγός</description> <mandatory>false</mandatory> <sumInsured> <type>automatic</type> </sumInsured> <premium> <type>automatic</type> </premium> </cover> <cover code="577000000"> <description>Νέος σε δίπλωμα οδηγός</description> <mandatory>false</mandatory> <sumInsured> <type>automatic</type> </sumInsured> <premium> <type>automatic</type> </premium> </cover> </return> </ns2:getPackageInfoResponse> </S:Body> </S:Envelope> ``` ###Example 2 **Example with error** *Input* ``` <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:v1="http://v1.soap.ws.api.gbox.generali.gr/"> <soapenv:Header/> <soapenv:Body> <v1:getPackageInfo> <packageCode>1</packageCode> </v1:getPackageInfo> </soapenv:Body> </soapenv:Envelope> ``` *Output* ``` <S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"> <S:Body> <S:Fault xmlns:ns4="http://www.w3.org/2003/05/soap-envelope"> <faultcode>S:Server</faultcode> <faultstring>Invalid package code: 1</faultstring> </S:Fault> </S:Body> </S:Envelope> ``` ##listOpenPendencies <a name="listOpenPendencies"></a> This method is responsible for listing all open pendencies given the quotation code. ### Input Field | Type | Value | Required/Optional | Description | Example ----- | ---- | ----- | ----------------- | ----------- | ------- quotationCode | String | Numerical | required | The quotation code | 00915180 ### Output Field | Type | Value | Description | Example ----- | ---- | ----- | ----------- | ------- pendencies | List<Pendency> | The list of pendencies (e.g Driver lisence doc) | *(see example)* #### Pendency Field | Type | Description | Example ----- | ---- | ----------- | ------- code | String | String | 100071626 type | String | String | 20000 description | String | String | Δεν έχει σταλεί η Αδεια Κυκλοφορίας του Οχήματος ###Example 1 *Input* ``` <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:v2="http://v2.soap.ws.api.gbox.generali.gr/"> <soapenv:Header/> <soapenv:Body> <v2:listOpenPendencies> <quotationCode>00915180</quotationCode> </v2:listOpenPendencies> </soapenv:Body> </soapenv:Envelope> ``` *Output* ``` <S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"> <S:Body> <ns2:listOpenPendenciesResponse xmlns:ns2="http://v2.soap.ws.api.gbox.generali.gr/"> <return> <code>100071596</code> <type>20000</type> <description>Δεν έχει σταλεί η Αδεια Οδήγησης</description> </return> <return> <code>100071598</code> <type>20010</type> <description>Δεν έχει σταλεί η Αδεια Κυκλοφορίας του Οχήματος</description> </return> </ns2:listOpenPendenciesResponse> </S:Body> </S:Envelope> ``` ##uploadPendency <a name="uploadPendency"></a> ### Input Field | Type | Value | Required/Optional | Description | Example ----- | ---- | ----- | ----------------- | ----------- | ------- pendencyCode | String | listOpenPendencies | Required | The pendency code| 100071596 quotationCode | String | Numerical | Required | The code of the requesting package | 00915180 title | String | String | Required | The desired title of the uploaded document | adeia_odigisis_xxxx document | byte[] | byte[] | Required | The byte[] of the document | *(see example)* ###Example 1 *Input* ``` <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:v2="http://v2.soap.ws.api.gbox.generali.gr/"> <soapenv:Header/> <soapenv:Body> <v2:uploadPendency> <pendencyCode>100071596</pendencyCode> <quotationCode>00915180</quotationCode> <title>adeia_odigisis_blabla.pdf</title> <content>cid:adeiaodigisis_blabla.pdf</content> </v2:uploadPendency> </soapenv:Body> </soapenv:Envelope> ``` *Output* ``` <S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"> <S:Body> <ns2:uploadPendencyResponse xmlns:ns2="http://v2.soap.ws.api.gbox.generali.gr/"/> </S:Body> </S:Envelope> ``` ##getQuotationDocument <a name="getQuotationDocument"></a> This method is responsible for getting the quotation document in byte[] format ### Input Field | Type | Value | Required/Optional | Description | Example ----- | ---- | ----- | ----------------- | ----------- | ------- quotationCode | String | Numerical | required | The quotation code | 00915180 ### Output Field | Type | Value | Description | Example ----- | ---- | ----- | ----------- | ------- document | byte[] | byte[] | get quotation document in byte[] format | *(see example)* ###Example 1 *Input* ``` <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:v2="http://v2.soap.ws.api.gbox.generali.gr/"> <soapenv:Header/> <soapenv:Body> <v2:getQuotationDocument> <quotationCode>00915180</quotationCode> </v2:getQuotationDocument> </soapenv:Body> </soapenv:Envelope> ``` *Output* ``` <S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"> <S:Body> <ns2:getQuotationDocumentResponse xmlns:ns2="http://v2.soap.ws.api.gbox.generali.gr/"> <return>JVBERi0...oyMDYzNzYNCiUlRU9GDQo=</return> </ns2:getQuotationDocumentResponse> </S:Body> </S:Envelope> ``` ##getQuotationStatus <a name="getQuotationStatus"></a> This method is responsible for getting the status of quotation (GREEN, YELLOW, RED) ### Input Field | Type | Value | Required/Optional | Description | Example ----- | ---- | ----- | ----------------- | ----------- | ------- quotationCode | String | Numerical | required | The quotation code | 01243410 ### Output Type | Description | Example ----- | ---- | ----- | ----------- | ------- String| get quotation status | *(see example)* ###Example 1 *Input* ``` <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:v2="http://v2.soap.ws.api.gbox.generali.gr/"> <soapenv:Header/> <soapenv:Body> <v2:getQuotationStatus> <!--Optional:--> <quotationCode>01243410</quotationCode> </v2:getQuotationStatus> </soapenv:Body> </soapenv:Envelope> ``` *Output* ``` <S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"> <S:Body> <ns2:getQuotationStatusResponse xmlns:ns2="http://v2.soap.ws.api.gbox.generali.gr/"> <return>GREEN</return> </ns2:getQuotationStatusResponse> </S:Body> </S:Envelope> ```