Skip to content

Commit 8dbfc14

Browse files
authored
Merge pull request #36 from FacturAPI/fix/send-by-email-signature
Fix/send by email signature
2 parents a007492 + 379af9b commit 8dbfc14

File tree

7 files changed

+22
-4
lines changed

7 files changed

+22
-4
lines changed

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,17 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [4.9.1] - 2025-07-21
9+
10+
### Fixed
11+
12+
- Fix `Invoices.SendByEmailAsync`, `Receipts.SendByEmailAsync`, `Retentions.SendByEmailAsync` method and mark the `data` parameter as optional.
13+
14+
### Added
15+
16+
- Add `AddOns` property to `Organization` model to support Facturapi add-ons.
17+
- Add missing properties to `Organization.Customization.PdfExtra` model: `AddressCodes`, `RoundUnitPrice`, `TaxBreakdown`, `IepsBreakdown`, `RenderCartaPorte`, and `RepeatSignature`.
18+
819
## [4.9.0] - 2025-06-16
920

1021
### Added

Models/Organization.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,6 @@ public class Organization
1414
public SelfInvoiceSettings SelfInvoice { get; set; }
1515
public Certificate Certificate { get; set; }
1616
public List<LiveApiKey> ApiKeys { get; set; }
17+
public List<string> AddOns { get; set; }
1718
}
1819
}

Models/PdfExtra.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ namespace Facturapi
33
public class PdfExtra
44
{
55
public bool Codes { get; set; }
6+
public bool AddressCodes { get; set; }
67
public bool ProductKey { get; set; }
8+
public bool RoundUnitPrice { get; set; }
9+
public bool TaxBreakdown { get; set; }
10+
public bool IepsBreakdown { get; set; }
11+
public bool RenderCartaPorte { get; set; }
12+
public bool RepeatSignature { get; set; }
713
}
814
}

Wrappers/InvoiceWrapper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public async Task<Invoice> CancelAsync(string id, Dictionary<string, object> que
7070
return invoice;
7171
}
7272

73-
public async Task SendByEmailAsync(string id, Dictionary<string, object> data)
73+
public async Task SendByEmailAsync(string id, Dictionary<string, object> data = null)
7474
{
7575
var response = await client.PostAsync(Router.SendByEmail(id), new StringContent(JsonConvert.SerializeObject(data), Encoding.UTF8, "application/json"));
7676
if (!response.IsSuccessStatusCode)

Wrappers/ReceiptWrapper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public async Task CreateGlobalInvoiceAsync(string id, Dictionary<string, object>
9090
}
9191
}
9292

93-
public async Task SendByEmailAsync(string id, Dictionary<string, object> data)
93+
public async Task SendByEmailAsync(string id, Dictionary<string, object> data = null)
9494
{
9595
var response = await client.PostAsync(Router.SendReceiptByEmail(id), new StringContent(JsonConvert.SerializeObject(data), Encoding.UTF8, "application/json"));
9696
if (!response.IsSuccessStatusCode)

Wrappers/RetentionWrapper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public async Task<Invoice> CancelAsync(string id)
7070
return customer;
7171
}
7272

73-
public async Task SendByEmailAsync(string id, Dictionary<string, object> data)
73+
public async Task SendByEmailAsync(string id, Dictionary<string, object> data = null)
7474
{
7575
var response = await client.PostAsync(Router.SendRetentionByEmail(id), new StringContent(JsonConvert.SerializeObject(data), Encoding.UTF8, "application/json"));
7676
if (!response.IsSuccessStatusCode)

facturapi-net.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
API Keys creando una cuenta gratuita en https://www.facturapi.io</Summary>
1212
<PackageTags>factura factura-electronica cfdi facturapi mexico conekta</PackageTags>
1313
<Title>Facturapi</Title>
14-
<Version>4.9.0</Version>
14+
<Version>4.9.1</Version>
1515
<PackageVersion>$(Version)</PackageVersion>
1616
<Owners>Facturapi</Owners>
1717
<ApplicationIcon>facturapi.ico</ApplicationIcon>

0 commit comments

Comments
 (0)