{"openapi":"3.0.0","servers":[{"description":"SwaggerHub API Auto Mocking","url":"https://virtserver.swaggerhub.com/meloedu/createCorteReconexionWO/1.0.0"}],"info":{"description":"API para crear en Fiel Service WorkOrders","version":"1.0.0","title":"API Crea WorkOrders","contact":{"email":"eduardo.melo@nespon.com"},"license":{"name":"Apache 2.0","url":"http://www.apache.org/licenses/LICENSE-2.0.html"}},"tags":null,"paths":{"/workOrder":{"post":{"tags":["admins"],"summary":"adds an FieldService WorkOrder","operationId":"addWorkOrder","description":"Adds an WorkOrder object to Field Service","responses":{"201":{"description":"WorkOrder created"},"400":{"description":"invalid input, object invalid"},"409":{"description":"an existing WorkOrder already exists"}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrder"}}},"description":"Inventory item to add"}}}},"components":{"schemas":{"WorkOrder":{"type":"object","required":["idOrdenSAP","idBPCliente"],"properties":{"idOrdenSAP":{"type":"string","maxLength":12,"example":null},"idBPCliente":{"type":"string","maxLength":10,"example":null},"direccion":{"type":"object","properties":{"tipoVia":{"type":"string","maxLength":2,"example":null},"nombreVia":{"type":"string","maxLength":100,"example":null},"numeroPuerta":{"type":"string","maxLength":50,"example":null},"manzana":{"type":"string","maxLength":50,"example":null},"lote":{"type":"string","maxLength":50,"example":null},"piso":{"type":"string","maxLength":10,"example":null},"tipoInterior":{"type":"string","maxLength":4,"example":null},"interior":{"type":"string","maxLength":20,"example":null},"tipoEdificio":{"type":"string","maxLength":20,"example":null},"nombreEfificio":{"type":"string","maxLength":30,"example":null},"tipoViviendaPrincipal":{"type":"string","maxLength":4,"example":null},"nombreViviendaPrincipal":{"type":"string","maxLength":50,"example":null},"detalleVivienda":{"type":"string","maxLength":4,"example":null},"tipoConjuntoVivienda":{"type":"string","maxLength":20,"example":null},"nombreConjuntoVivienda":{"type":"string","maxLength":50,"example":null},"distrito":{"type":"string","example":null}}},"telefonosContacto":{"type":"string","maxLength":255,"example":null},"correoElectronico":{"type":"string","maxLength":241,"example":null},"saldoActualCliente":{"type":"number","format":"double","example":null},"cantidadRecibos":{"type":"integer","example":null},"claseDeOrden":{"type":"string","maxLength":4,"example":null},"motivoCorte":{"type":"string","maxLength":4,"example":null},"textoOperacionCorte":{"type":"string","maxLength":256,"example":null},"coordenadaX":{"type":"number","example":null},"coordenadaY":{"type":"number","example":null},"observaciones":{"type":"string","maxLength":500,"example":null},"numeroDeSerieDisponible":{"type":"string","maxLength":10,"example":null},"ubicacionMedidor":{"type":"string","example":null},"nombreUsuarioCliente":{"type":"object","properties":{"firstName":{"type":"string","maxLength":255,"example":null},"lastName":{"type":"string","maxLength":255,"example":null}}},"lecturaCorte":{"type":"number","example":null},"rucContratista":{"type":"string","maxLength":20,"example":null},"fechaHoraCreacionSAP":{"type":"string","format":"date-time","example":"2024-10-24T14:30:00Z"},"fechaHoraEnvioSFS":{"type":"string","format":"date-time","example":"2024-10-24T14:30:00Z"}}}}}}