GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Merge pull request #7 from FacturAPI/feature/orgs-api · FacturAPI/facturapi-net@4863da3

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • FacturapiTest
    • FacturapiTest.csproj
  • facturapi-net.sln
  • facturapi-net
    • Constants
      • InvoiceRelation.cs
      • TaxSystem.cs
    • Facturapi.csproj
    • Models
      • ApiKeys.cs
      • Certificate.cs
      • CompletionStep.cs
      • Customer.cs
      • Customization.cs
      • Invoice.cs
      • Legal.cs
      • Organization.cs
      • PdfExtra.cs
      • Product.cs
    • Properties
      • AssemblyInfo.cs
    • Router
      • OrganizationRouter.cs
    • Settings.cs
    • Wrapper.cs
    • Wrapper
      • OrganizationWrapper.cs
    • packages.config
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎FacturapiTest/FacturapiTest.csproj‎

Copy file name to clipboardExpand all lines: FacturapiTest/FacturapiTest.csproj
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
2+
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
33
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
44
<PropertyGroup>
55
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
Collapse file

‎facturapi-net.sln‎

Copy file name to clipboardExpand all lines: facturapi-net.sln
+5Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FacturapiTest", "FacturapiT
1010
{A91D3CF3-1051-41F4-833E-C52EE8FBCE20} = {A91D3CF3-1051-41F4-833E-C52EE8FBCE20}
1111
EndProjectSection
1212
EndProject
13+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{7375A381-9AA2-4E14-95DF-89068A6EBF76}"
14+
ProjectSection(SolutionItems) = preProject
15+
README.md = README.md
16+
EndProjectSection
17+
EndProject
1318
Global
1419
GlobalSection(SolutionConfigurationPlatforms) = preSolution
1520
Debug|Any CPU = Debug|Any CPU
Collapse file

‎facturapi-net/Constants/InvoiceRelation.cs‎

Copy file name to clipboardExpand all lines: facturapi-net/Constants/InvoiceRelation.cs
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
namespace Facturapi
22
{
3-
class InvoiceRelation
3+
public static class InvoiceRelation
44
{
55
public const string NOTA_DE_CREDITO = "01";
66
public const string NOTA_DE_DEBITO = "02";
Collapse file

‎facturapi-net/Constants/TaxSystem.cs‎

Copy file name to clipboard
+33Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Text;
5+
using System.Threading.Tasks;
6+
7+
namespace Facturapi
8+
{
9+
public static class TaxSystem
10+
{
11+
public const string GENERAL_LEY_DE_PERSONAS_MORALES = "601";
12+
public const string PERSONAS_MORALES_CON_FINES_NO_LUCRATIVOS = "603";
13+
public const string SUELDOS_Y_SALARIOS = "605";
14+
public const string ARRENDAMIENTO = "606";
15+
public const string DEMAS_INGRESOS = "608";
16+
public const string CONSOLIDACION = "609";
17+
public const string RESIDENTES_EN_EL_EXTRANJERO = "610";
18+
public const string INGRESOS_POR_DIVIDENDOS_SOCIOS_Y_ACCIONISTAS = "611";
19+
public const string PERSONAS_FISICAS_CON_ACTIVIDADES_EMPRESARIALES_Y_PROFESIONALES = "612";
20+
public const string INGRESOS_POR_INTERESES = "614";
21+
public const string SIN_OBLIGACIONES_FISCALES = "616";
22+
public const string SOCIEDADES_COOPERATIVAS_DE_PRODUCCION = "620";
23+
public const string REGIMEN_DE_INCORPORACION_FISCAL = "621";
24+
public const string ACTIVIDADES_AGRICOLAS_GANADERAS_SILVICOLAS_Y_PESQUERAS = "622";
25+
public const string OPCIONAL_PARA_GRUPOS_DE_SOCIEDADES = "623";
26+
public const string COORDINADOS = "624";
27+
public const string HIDROCARBUROS = "628";
28+
public const string REGIMEN_DE_ENAJENACION_O_ADQUISICION_DE_BIENES = "607";
29+
public const string PREFERENTES_Y_EMPRESAS_MULTINACIONALES = "629";
30+
public const string ENAJENACION_DE_ACCIONES_EN_BOLSA_DE_VALORES = "630";
31+
public const string REGIMEN_DE_LOS_INGRESOS_POR_OBTENCION_DE_PREMIOS = "615";
32+
}
33+
}
Collapse file

‎facturapi-net/Facturapi.csproj‎

Copy file name to clipboardExpand all lines: facturapi-net/Facturapi.csproj
+46-2Lines changed: 46 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
2+
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<Import Project="..\packages\NuGet.Build.Packaging.0.2.2\build\NuGet.Build.Packaging.props" Condition="Exists('..\packages\NuGet.Build.Packaging.0.2.2\build\NuGet.Build.Packaging.props')" />
34
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
45
<PropertyGroup>
56
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
@@ -12,6 +13,23 @@
1213
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
1314
<FileAlignment>512</FileAlignment>
1415
<TargetFrameworkProfile />
16+
<PackOnBuild>true</PackOnBuild>
17+
<Authors>Javier Rosas</Authors>
18+
<PackageIconUrl>https://github.com/FacturAPI/facturapi-net/raw/master/facturapi-net/facturapi.png</PackageIconUrl>
19+
<NeutralLanguage>es-MX</NeutralLanguage>
20+
<PackageLicenseUrl>https://raw.githubusercontent.com/FacturAPI/facturapi-net/master/LICENSE</PackageLicenseUrl>
21+
<Owners>Facturapi</Owners>
22+
<PackageProjectUrl>https://www.facturapi.io</PackageProjectUrl>
23+
<Summary>Genera facturas electrónicas válidas en México (CFDI) lo más fácil posible. Obtén tus API Keys creando una cuenta gratuita en https://www.facturapi.io</Summary>
24+
<PackageTags>factura factura-electronica cfdi facturapi mexico conekta</PackageTags>
25+
<Title>Facturapi</Title>
26+
<Description>Genera facturas electrónicas válidas en México (CFDI) lo más fácil posible. Obtén tus API Keys creando una cuenta gratuita en https://www.facturapi.io</Description>
27+
<PackageId>Facturapi</PackageId>
28+
<ReleaseVersion>0.3.0</ReleaseVersion>
29+
<SynchReleaseVersion>false</SynchReleaseVersion>
30+
<PackageVersion>0.3.1</PackageVersion>
31+
<NuGetPackageImportStamp>
32+
</NuGetPackageImportStamp>
1533
</PropertyGroup>
1634
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
1735
<DebugSymbols>true</DebugSymbols>
@@ -22,9 +40,17 @@
2240
<ErrorReport>prompt</ErrorReport>
2341
<WarningLevel>4</WarningLevel>
2442
<Prefer32Bit>false</Prefer32Bit>
43+
<CustomCommands>
44+
<CustomCommands>
45+
<Command>
46+
<type>Build</type>
47+
</Command>
48+
</CustomCommands>
49+
</CustomCommands>
2550
</PropertyGroup>
2651
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
27-
<DebugType>pdbonly</DebugType>
52+
<DebugType>
53+
</DebugType>
2854
<Optimize>true</Optimize>
2955
<OutputPath>bin\Release\</OutputPath>
3056
<DefineConstants>TRACE</DefineConstants>
@@ -57,17 +83,26 @@
5783
<Compile Include="Constants\InvoiceUse.cs" />
5884
<Compile Include="Constants\PaymentMethod.cs" />
5985
<Compile Include="Constants\PaymentForm.cs" />
86+
<Compile Include="Constants\TaxSystem.cs" />
6087
<Compile Include="FacturapiException.cs" />
6188
<Compile Include="Models\Address.cs" />
89+
<Compile Include="Models\ApiKeys.cs" />
90+
<Compile Include="Models\Certificate.cs" />
91+
<Compile Include="Models\CompletionStep.cs" />
6292
<Compile Include="Models\Customer.cs" />
93+
<Compile Include="Models\Customization.cs" />
6394
<Compile Include="Models\Invoice.cs" />
6495
<Compile Include="Models\InvoiceItem.cs" />
96+
<Compile Include="Models\Legal.cs" />
97+
<Compile Include="Models\Organization.cs" />
98+
<Compile Include="Models\PdfExtra.cs" />
6599
<Compile Include="Models\Product.cs" />
66100
<Compile Include="Constants\TaxType.cs" />
67101
<Compile Include="Models\SearchResult.cs" />
68102
<Compile Include="Properties\AssemblyInfo.cs" />
69103
<Compile Include="Models\Tax.cs" />
70104
<Compile Include="Router\InvoiceRouter.cs" />
105+
<Compile Include="Router\OrganizationRouter.cs" />
71106
<Compile Include="Settings.cs" />
72107
<Compile Include="Util\SnakeCasePropertyNamesContractResolver.cs" />
73108
<Compile Include="Router\CustomerRouter.cs" />
@@ -76,6 +111,7 @@
76111
<Compile Include="Router\ProductRouter.cs" />
77112
<Compile Include="Router\Router.cs" />
78113
<Compile Include="Wrapper\InvoiceWrapper.cs" />
114+
<Compile Include="Wrapper\OrganizationWrapper.cs" />
79115
<Compile Include="Wrapper\ProductWrapper.cs" />
80116
<Compile Include="Wrapper\BaseWrapper.cs" />
81117
</ItemGroup>
@@ -88,4 +124,12 @@
88124
<Content Include="facturapi.ico" />
89125
</ItemGroup>
90126
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
127+
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
128+
<PropertyGroup>
129+
<ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
130+
</PropertyGroup>
131+
<Error Condition="!Exists('..\packages\NuGet.Build.Packaging.0.2.2\build\NuGet.Build.Packaging.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\NuGet.Build.Packaging.0.2.2\build\NuGet.Build.Packaging.props'))" />
132+
<Error Condition="!Exists('..\packages\NuGet.Build.Packaging.0.2.2\build\NuGet.Build.Packaging.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\NuGet.Build.Packaging.0.2.2\build\NuGet.Build.Packaging.targets'))" />
133+
</Target>
134+
<Import Project="..\packages\NuGet.Build.Packaging.0.2.2\build\NuGet.Build.Packaging.targets" Condition="Exists('..\packages\NuGet.Build.Packaging.0.2.2\build\NuGet.Build.Packaging.targets')" />
91135
</Project>
Collapse file

‎facturapi-net/Models/ApiKeys.cs‎

Copy file name to clipboard
+8Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
namespace Facturapi
2+
{
3+
public class ApiKeys
4+
{
5+
public string LiveKey { get; set; }
6+
public string TestKey { get; set; }
7+
}
8+
}
Collapse file

‎facturapi-net/Models/Certificate.cs‎

Copy file name to clipboard
+11Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
using System;
2+
3+
namespace Facturapi
4+
{
5+
public class Certificate
6+
{
7+
public DateTime UpdatedAt { get; set; }
8+
public DateTime ExpiresAt { get; set; }
9+
public bool HasCertificate { get; set; }
10+
}
11+
}
Collapse file

‎facturapi-net/Models/CompletionStep.cs‎

Copy file name to clipboard
+15Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
using Facturapi.Wrappers;
2+
using System;
3+
using System.Collections.Generic;
4+
using System.Linq;
5+
using System.Text;
6+
using System.Threading.Tasks;
7+
8+
namespace Facturapi
9+
{
10+
public class CompletionStep
11+
{
12+
public string Type { get; set; }
13+
public string Description { get; set; }
14+
}
15+
}
Collapse file

‎facturapi-net/Models/Customer.cs‎

Copy file name to clipboardExpand all lines: facturapi-net/Models/Customer.cs
+6-1Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,27 +17,32 @@ public class Customer
1717
public Address Address { get; set; }
1818
public string LegalName { get; set; }
1919
public string TaxId { get; set; }
20-
20+
21+
[Obsolete("Methods requiring you to set ApiKeys globally are deprecated and will be removed in the next major release. Use methods from the Facturapi.Wrapper instance instead.")]
2122
public static Task<SearchResult<Customer>> ListAsync (Dictionary<string, object> query = null)
2223
{
2324
return new CustomerWrapper().ListAsync(query);
2425
}
2526

27+
[Obsolete("Methods requiring you to set ApiKeys globally are deprecated and will be removed in the next major release. Use methods from the Facturapi.Wrapper instance instead.")]
2628
public static Task<Customer> CreateAsync (Dictionary<string, object> data)
2729
{
2830
return new CustomerWrapper().CreateAsync(data);
2931
}
3032

33+
[Obsolete("Methods requiring you to set ApiKeys globally are deprecated and will be removed in the next major release. Use methods from the Facturapi.Wrapper instance instead.")]
3134
public static Task<Customer> RetrieveAsync (string id)
3235
{
3336
return new CustomerWrapper().RetrieveAsync(id);
3437
}
3538

39+
[Obsolete("Methods requiring you to set ApiKeys globally are deprecated and will be removed in the next major release. Use methods from the Facturapi.Wrapper instance instead.")]
3640
public static Task<Customer> DeleteAsync (string id)
3741
{
3842
return new CustomerWrapper().DeleteAsync(id);
3943
}
4044

45+
[Obsolete("Methods requiring you to set ApiKeys globally are deprecated and will be removed in the next major release. Use methods from the Facturapi.Wrapper instance instead.")]
4146
public static Task<Customer> UpdateAsync (string id, Dictionary<string, object> data)
4247
{
4348
return new CustomerWrapper().UpdateAsync(id, data);
Collapse file

‎facturapi-net/Models/Customization.cs‎

Copy file name to clipboard
+9Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
namespace Facturapi
2+
{
3+
public class Customization
4+
{
5+
public string Color { get; set; }
6+
public bool HasLogo { get; set; }
7+
public PdfExtra PdfExtra { get; set; }
8+
}
9+
}

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.