Skip to content
This repository has been archived by the owner on May 2, 2024. It is now read-only.

Commit

Permalink
Soporte para Silverlight 5 a traves de Nuget
Browse files Browse the repository at this point in the history
  • Loading branch information
erickorlando committed Mar 25, 2017
1 parent 5893934 commit bea2d03
Show file tree
Hide file tree
Showing 34 changed files with 619 additions and 49 deletions.
Binary file added Documentacion/RelacionPSE.xlsx
Binary file not shown.
11 changes: 11 additions & 0 deletions OpenInvoicePeru/Open Invoice Peru.sln
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OpenInvoicePeru.Servicio.So
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OpenInvoicePeru.Xml", "OpenInvoicePeru.Xml\OpenInvoicePeru.Xml.csproj", "{EDA74DC8-B11B-4C7C-B604-0763B210E7D4}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OpenInvoicePeru.Comun.Dto.Silverlight", "OpenInvoicePeru.Comun.Dto.Silverlight\OpenInvoicePeru.Comun.Dto.Silverlight.csproj", "{BDD67581-12E9-438E-A559-5731D391A404}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down Expand Up @@ -124,6 +126,14 @@ Global
{EDA74DC8-B11B-4C7C-B604-0763B210E7D4}.Release|Any CPU.Build.0 = Release|Any CPU
{EDA74DC8-B11B-4C7C-B604-0763B210E7D4}.Release|x64.ActiveCfg = Release|Any CPU
{EDA74DC8-B11B-4C7C-B604-0763B210E7D4}.Release|x64.Build.0 = Release|Any CPU
{BDD67581-12E9-438E-A559-5731D391A404}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{BDD67581-12E9-438E-A559-5731D391A404}.Debug|Any CPU.Build.0 = Debug|Any CPU
{BDD67581-12E9-438E-A559-5731D391A404}.Debug|x64.ActiveCfg = Debug|Any CPU
{BDD67581-12E9-438E-A559-5731D391A404}.Debug|x64.Build.0 = Debug|Any CPU
{BDD67581-12E9-438E-A559-5731D391A404}.Release|Any CPU.ActiveCfg = Release|Any CPU
{BDD67581-12E9-438E-A559-5731D391A404}.Release|Any CPU.Build.0 = Release|Any CPU
{BDD67581-12E9-438E-A559-5731D391A404}.Release|x64.ActiveCfg = Release|Any CPU
{BDD67581-12E9-438E-A559-5731D391A404}.Release|x64.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand All @@ -140,5 +150,6 @@ Global
{25D6B9AF-55A6-4E7F-A061-52A492CCDB6E} = {6D38A4CC-F1A2-487B-B28D-DFAD0DDB689A}
{F608FEA2-EC58-4DF7-81D6-960F6E1DAED2} = {6D38A4CC-F1A2-487B-B28D-DFAD0DDB689A}
{EDA74DC8-B11B-4C7C-B604-0763B210E7D4} = {6D38A4CC-F1A2-487B-B28D-DFAD0DDB689A}
{BDD67581-12E9-438E-A559-5731D391A404} = {6D38A4CC-F1A2-487B-B28D-DFAD0DDB689A}
EndGlobalSection
EndGlobal
Original file line number Diff line number Diff line change
@@ -0,0 +1,194 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>8.0.50727</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{BDD67581-12E9-438E-A559-5731D391A404}</ProjectGuid>
<ProjectTypeGuids>{A1591282-1198-4647-A2B1-27E5FF5F6F3B};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>OpenInvoicePeru.Comun.Dto</RootNamespace>
<AssemblyName>OpenInvoicePeru.Comun.Dto</AssemblyName>
<TargetFrameworkIdentifier>Silverlight</TargetFrameworkIdentifier>
<TargetFrameworkVersion>v5.0</TargetFrameworkVersion>
<SilverlightVersion>$(TargetFrameworkVersion)</SilverlightVersion>
<SilverlightApplication>false</SilverlightApplication>
<ValidateXaml>true</ValidateXaml>
<ThrowErrorsInValidation>true</ThrowErrorsInValidation>
</PropertyGroup>
<!-- This property group is only here to support building this project using the
MSBuild 3.5 toolset. In order to work correctly with this older toolset, it needs
to set the TargetFrameworkVersion to v3.5 -->
<PropertyGroup Condition="'$(MSBuildToolsVersion)' == '3.5'">
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>Bin\Debug</OutputPath>
<DefineConstants>DEBUG;TRACE;SILVERLIGHT</DefineConstants>
<NoStdLib>true</NoStdLib>
<NoConfig>true</NoConfig>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>Bin\Release</OutputPath>
<DefineConstants>TRACE;SILVERLIGHT</DefineConstants>
<NoStdLib>true</NoStdLib>
<NoConfig>true</NoConfig>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup>
<SignAssembly>true</SignAssembly>
</PropertyGroup>
<PropertyGroup>
<AssemblyOriginatorKeyFile>OpenInvoicePeru.snk</AssemblyOriginatorKeyFile>
</PropertyGroup>
<ItemGroup>
<Reference Include="mscorlib" />
<Reference Include="System.Windows" />
<Reference Include="system" />
<Reference Include="System.Core">
<HintPath>$(TargetFrameworkDirectory)System.Core.dll</HintPath>
</Reference>
<Reference Include="System.Xml" />
<Reference Include="System.Net" />
<Reference Include="System.Windows.Browser" />
</ItemGroup>
<ItemGroup>
<Compile Include="..\OpenInvoicePeru.Comun.Dto\Contratos\IDocumentoElectronico.cs">
<Link>Contratos\IDocumentoElectronico.cs</Link>
</Compile>
<Compile Include="..\OpenInvoicePeru.Comun.Dto\Intercambio\ConsultaConstanciaRequest.cs">
<Link>Intercambio\ConsultaConstanciaRequest.cs</Link>
</Compile>
<Compile Include="..\OpenInvoicePeru.Comun.Dto\Intercambio\ConsultaTicketRequest.cs">
<Link>Intercambio\ConsultaTicketRequest.cs</Link>
</Compile>
<Compile Include="..\OpenInvoicePeru.Comun.Dto\Intercambio\DocumentoResponse.cs">
<Link>Intercambio\DocumentoResponse.cs</Link>
</Compile>
<Compile Include="..\OpenInvoicePeru.Comun.Dto\Intercambio\EnviarDocumentoRequest.cs">
<Link>Intercambio\EnviarDocumentoRequest.cs</Link>
</Compile>
<Compile Include="..\OpenInvoicePeru.Comun.Dto\Intercambio\EnviarDocumentoResponse.cs">
<Link>Intercambio\EnviarDocumentoResponse.cs</Link>
</Compile>
<Compile Include="..\OpenInvoicePeru.Comun.Dto\Intercambio\EnviarResumenResponse.cs">
<Link>Intercambio\EnviarResumenResponse.cs</Link>
</Compile>
<Compile Include="..\OpenInvoicePeru.Comun.Dto\Intercambio\EnvioDocumentoComun.cs">
<Link>Intercambio\EnvioDocumentoComun.cs</Link>
</Compile>
<Compile Include="..\OpenInvoicePeru.Comun.Dto\Intercambio\FirmadoRequest.cs">
<Link>Intercambio\FirmadoRequest.cs</Link>
</Compile>
<Compile Include="..\OpenInvoicePeru.Comun.Dto\Intercambio\FirmadoResponse.cs">
<Link>Intercambio\FirmadoResponse.cs</Link>
</Compile>
<Compile Include="..\OpenInvoicePeru.Comun.Dto\Intercambio\RespuestaComun.cs">
<Link>Intercambio\RespuestaComun.cs</Link>
</Compile>
<Compile Include="..\OpenInvoicePeru.Comun.Dto\Intercambio\RespuestaComunConArchivo.cs">
<Link>Intercambio\RespuestaComunConArchivo.cs</Link>
</Compile>
<Compile Include="..\OpenInvoicePeru.Comun.Dto\Modelos\ComunicacionBaja.cs">
<Link>Modelos\ComunicacionBaja.cs</Link>
</Compile>
<Compile Include="..\OpenInvoicePeru.Comun.Dto\Modelos\Contribuyente.cs">
<Link>Modelos\Contribuyente.cs</Link>
</Compile>
<Compile Include="..\OpenInvoicePeru.Comun.Dto\Modelos\DatoAdicional.cs">
<Link>Modelos\DatoAdicional.cs</Link>
</Compile>
<Compile Include="..\OpenInvoicePeru.Comun.Dto\Modelos\DatosGuia.cs">
<Link>Modelos\DatosGuia.cs</Link>
</Compile>
<Compile Include="..\OpenInvoicePeru.Comun.Dto\Modelos\DetalleDocumento.cs">
<Link>Modelos\DetalleDocumento.cs</Link>
</Compile>
<Compile Include="..\OpenInvoicePeru.Comun.Dto\Modelos\DetalleGuia.cs">
<Link>Modelos\DetalleGuia.cs</Link>
</Compile>
<Compile Include="..\OpenInvoicePeru.Comun.Dto\Modelos\Direccion.cs">
<Link>Modelos\Direccion.cs</Link>
</Compile>
<Compile Include="..\OpenInvoicePeru.Comun.Dto\Modelos\Discrepancia.cs">
<Link>Modelos\Discrepancia.cs</Link>
</Compile>
<Compile Include="..\OpenInvoicePeru.Comun.Dto\Modelos\DocumentoBaja.cs">
<Link>Modelos\DocumentoBaja.cs</Link>
</Compile>
<Compile Include="..\OpenInvoicePeru.Comun.Dto\Modelos\DocumentoElectronico.cs">
<Link>Modelos\DocumentoElectronico.cs</Link>
</Compile>
<Compile Include="..\OpenInvoicePeru.Comun.Dto\Modelos\DocumentoPercepcion.cs">
<Link>Modelos\DocumentoPercepcion.cs</Link>
</Compile>
<Compile Include="..\OpenInvoicePeru.Comun.Dto\Modelos\DocumentoRelacionado.cs">
<Link>Modelos\DocumentoRelacionado.cs</Link>
</Compile>
<Compile Include="..\OpenInvoicePeru.Comun.Dto\Modelos\DocumentoResumen.cs">
<Link>Modelos\DocumentoResumen.cs</Link>
</Compile>
<Compile Include="..\OpenInvoicePeru.Comun.Dto\Modelos\DocumentoResumenDetalle.cs">
<Link>Modelos\DocumentoResumenDetalle.cs</Link>
</Compile>
<Compile Include="..\OpenInvoicePeru.Comun.Dto\Modelos\DocumentoRetencion.cs">
<Link>Modelos\DocumentoRetencion.cs</Link>
</Compile>
<Compile Include="..\OpenInvoicePeru.Comun.Dto\Modelos\DocumentoSunatBase.cs">
<Link>Modelos\DocumentoSunatBase.cs</Link>
</Compile>
<Compile Include="..\OpenInvoicePeru.Comun.Dto\Modelos\GrupoResumen.cs">
<Link>Modelos\GrupoResumen.cs</Link>
</Compile>
<Compile Include="..\OpenInvoicePeru.Comun.Dto\Modelos\GrupoResumenNuevo.cs">
<Link>Modelos\GrupoResumenNuevo.cs</Link>
</Compile>
<Compile Include="..\OpenInvoicePeru.Comun.Dto\Modelos\GuiaRemision.cs">
<Link>Modelos\GuiaRemision.cs</Link>
</Compile>
<Compile Include="..\OpenInvoicePeru.Comun.Dto\Modelos\ItemPercepcion.cs">
<Link>Modelos\ItemPercepcion.cs</Link>
</Compile>
<Compile Include="..\OpenInvoicePeru.Comun.Dto\Modelos\ItemRetencion.cs">
<Link>Modelos\ItemRetencion.cs</Link>
</Compile>
<Compile Include="..\OpenInvoicePeru.Comun.Dto\Modelos\ItemSunatBase.cs">
<Link>Modelos\ItemSunatBase.cs</Link>
</Compile>
<Compile Include="..\OpenInvoicePeru.Comun.Dto\Modelos\ResumenDiario.cs">
<Link>Modelos\ResumenDiario.cs</Link>
</Compile>
<Compile Include="..\OpenInvoicePeru.Comun.Dto\Modelos\ResumenDiarioNuevo.cs">
<Link>Modelos\ResumenDiarioNuevo.cs</Link>
</Compile>
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<None Include="OpenInvoicePeru.snk" />
</ItemGroup>
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\Silverlight\$(SilverlightVersion)\Microsoft.Silverlight.CSharp.targets" />
<ProjectExtensions>
<VisualStudio>
<FlavorProperties GUID="{A1591282-1198-4647-A2B1-27E5FF5F6F3B}">
<SilverlightProjectProperties />
</FlavorProperties>
</VisualStudio>
</ProjectExtensions>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("OpenInvoicePeru.Comun.Dto.Silverlight")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("OpenInvoicePeru.Comun.Dto.Silverlight")]
[assembly: AssemblyCopyright("Copyright © 2017")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]

// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("bdd67581-12e9-438e-a559-5731d391a404")]

// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Revision and Build Numbers
// by using the '*' as shown below:
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
using Newtonsoft.Json;

#if !SILVERLIGHT
using Newtonsoft.Json;
#endif
namespace OpenInvoicePeru.Comun.Dto.Intercambio
{
public class ConsultaConstanciaRequest : EnvioDocumentoComun
{
#if !SILVERLIGHT
[JsonProperty(Required = Required.Always)]
#endif
public string Serie { get; set; }
#if !SILVERLIGHT

[JsonProperty(Required = Required.Always)]
[JsonProperty(Required = Required.Always)]
#endif
public int Numero { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
using Newtonsoft.Json;

#if !SILVERLIGHT
using Newtonsoft.Json;
#endif
namespace OpenInvoicePeru.Comun.Dto.Intercambio
{
public class ConsultaTicketRequest : EnvioDocumentoComun
{
#if !SILVERLIGHT
[JsonProperty(Required = Required.Always)]
#endif
public string NroTicket { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
using Newtonsoft.Json;

#if !SILVERLIGHT
using Newtonsoft.Json;
#endif
namespace OpenInvoicePeru.Comun.Dto.Intercambio
{
public class EnviarDocumentoRequest : EnvioDocumentoComun
{
#if !SILVERLIGHT
[JsonProperty(Required = Required.Always)]
#endif
public string TramaXmlFirmado { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -1,25 +1,39 @@
using Newtonsoft.Json;
#if !SILVERLIGHT
using Newtonsoft.Json;
#endif

namespace OpenInvoicePeru.Comun.Dto.Intercambio
{
public abstract class EnvioDocumentoComun
{
#if !SILVERLIGHT
[JsonProperty(Required = Required.Always)]
#endif
public string Ruc { get; set; }

#if !SILVERLIGHT
[JsonProperty(Required = Required.Always)]
#endif
public string UsuarioSol { get; set; }

#if !SILVERLIGHT
[JsonProperty(Required = Required.Always)]
#endif
public string ClaveSol { get; set; }

#if !SILVERLIGHT
[JsonProperty(Required = Required.Always)]
#endif
public string IdDocumento { get; set; }

#if !SILVERLIGHT
[JsonProperty(Required = Required.Always)]
#endif
public string TipoDocumento { get; set; }

#if !SILVERLIGHT
[JsonProperty(Required = Required.Always)]
#endif
public string EndPointUrl { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -1,19 +1,25 @@
using Newtonsoft.Json;

#if !SILVERLIGHT
using Newtonsoft.Json;
#endif
namespace OpenInvoicePeru.Comun.Dto.Intercambio
{
public class FirmadoRequest
{
#if !SILVERLIGHT
[JsonProperty(Required = Required.Always)]
#endif
public string CertificadoDigital { get; set; }

#if !SILVERLIGHT
[JsonProperty(Required = Required.Always)]
#endif
public string PasswordCertificado { get; set; }

#if !SILVERLIGHT
[JsonProperty(Required = Required.Always)]
#endif
public string TramaXmlSinFirma { get; set; }

#if !SILVERLIGHT
[JsonProperty(Required = Required.Always)]
#endif
public bool UnSoloNodoExtension { get; set; }
}
}
Loading

0 comments on commit bea2d03

Please sign in to comment.