Skip to content

Commit 885398a

Browse files
Added missing DTOs for a few services.
1 parent 1dadce7 commit 885398a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+1775
-78
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Asaas .NET SDK 1.1.0
1+
# Asaas .NET SDK 1.1.1
22

33
Welcome to the official Asaas API SDK for .NET 8 documentation.
44

@@ -7,7 +7,7 @@ This guide will help you get started with integrating and using the Asaas SDK in
77
## Versions
88

99
- API version: `3.0.0`
10-
- SDK version: `1.1.0`
10+
- SDK version: `1.1.1`
1111
- .NET version: `8.0`
1212

1313
## About the API
@@ -40,21 +40,21 @@ This SDK is compatible with: `.NET 8.0` or higher
4040
### Using .NET CLI
4141

4242
```bash
43-
dotnet add package TorinoInfo.AsaasSdk --version 1.1.0
43+
dotnet add package TorinoInfo.AsaasSdk --version 1.1.1
4444
```
4545

4646
### Using Package Manager Console
4747

4848
```powershell
49-
Install-Package TorinoInfo.AsaasSdk -Version 1.1.0
49+
Install-Package TorinoInfo.AsaasSdk -Version 1.1.1
5050
```
5151

5252
### Using PackageReference
5353

5454
Add the following to your `.csproj` file:
5555

5656
```xml
57-
<PackageReference Include="TorinoInfo.AsaasSdk" Version="1.1.0" />
57+
<PackageReference Include="TorinoInfo.AsaasSdk" Version="1.1.1" />
5858
```
5959

6060
## Authentication

src/Asaas.Sdk.csproj

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
<Nullable>enable</Nullable>
77
<LangVersion>latest</LangVersion>
88
<PackageId>TorinoInfo.AsaasSdk</PackageId>
9-
<PackageVersion>1.1.0</PackageVersion>
10-
<Version>1.1.0</Version>
9+
<PackageVersion>1.1.1</PackageVersion>
10+
<Version>1.1.1</Version>
1111
<Authors>Marco Ribeiro</Authors>
1212
<Company>Torino Informática</Company>
1313
<Description>A .NET 8 SDK for Asaas Payment Gateway API</Description>
@@ -19,6 +19,7 @@
1919
<GenerateDocumentationFile>true</GenerateDocumentationFile>
2020
<NoWarn>CS1591;CS1584</NoWarn>
2121
<PackageReleaseNotes>
22+
* 1.1.1 - Added missing DTOs for a few services.
2223
* 1.1.0 - Fixed DefaultHeadersHandler ApiKey assignment.
2324
* 1.0.9 - Fixed DefaultHeadersHandler initialization issue.
2425
* 1.0.8 - Implemented missing DTOs related to Transfer and Finance services.

src/Config/AsaasSdkConfig.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ public class AsaasSdkConfig
88
/// <summary>
99
/// User agent string for HTTP requests
1010
/// </summary>
11-
public string UserAgent { get; set; } = "asaas-sdk-dotnet/1.1.0";
11+
public string UserAgent { get; set; } = "asaas-sdk-dotnet/1.1.1";
1212

1313
/// <summary>
1414
/// Base URL for API requests

src/Exceptions/ApiException.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
using System.Net;
2-
using System.Text.Json;
3-
41
namespace Asaas.Sdk.Exceptions;
52

63
/// <summary>
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
using System.Text.Json.Serialization;
2+
3+
namespace Asaas.Sdk.Models;
4+
5+
/// <summary>
6+
/// Account document delete response
7+
/// </summary>
8+
public class AccountDocumentDeleteResponseDto
9+
{
10+
/// <summary>
11+
/// Indicates whether the document was removed
12+
/// </summary>
13+
[JsonPropertyName("deleted")]
14+
public bool? Deleted { get; set; }
15+
16+
/// <summary>
17+
/// Unique document identifier in Asaas
18+
/// </summary>
19+
[JsonPropertyName("id")]
20+
public string? Id { get; set; }
21+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
using System.Text.Json.Serialization;
2+
3+
namespace Asaas.Sdk.Models;
4+
5+
/// <summary>
6+
/// Account document get response
7+
/// </summary>
8+
public class AccountDocumentGetResponseDto
9+
{
10+
/// <summary>
11+
/// Unique document identifier in Asaas
12+
/// </summary>
13+
[JsonPropertyName("id")]
14+
public string? Id { get; set; }
15+
16+
/// <summary>
17+
/// Document approval status
18+
/// </summary>
19+
[JsonPropertyName("status")]
20+
public AccountDocumentStatus? Status { get; set; }
21+
}
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
using System.Text.Json.Serialization;
2+
3+
namespace Asaas.Sdk.Models;
4+
5+
/// <summary>
6+
/// Account document group response
7+
/// </summary>
8+
public class AccountDocumentGroupResponseDto
9+
{
10+
/// <summary>
11+
/// Unique document group identifier in Asaas
12+
/// </summary>
13+
[JsonPropertyName("id")]
14+
public string? Id { get; set; }
15+
16+
/// <summary>
17+
/// Document group status
18+
/// </summary>
19+
[JsonPropertyName("status")]
20+
public AccountDocumentStatus? Status { get; set; }
21+
22+
/// <summary>
23+
/// Type of documents
24+
/// </summary>
25+
[JsonPropertyName("type")]
26+
public AccountDocumentType? Type { get; set; }
27+
28+
/// <summary>
29+
/// Document group title
30+
/// </summary>
31+
[JsonPropertyName("title")]
32+
public string? Title { get; set; }
33+
34+
/// <summary>
35+
/// Document group description
36+
/// </summary>
37+
[JsonPropertyName("description")]
38+
public string? Description { get; set; }
39+
40+
/// <summary>
41+
/// Who is responsible for sending these documents
42+
/// </summary>
43+
[JsonPropertyName("responsible")]
44+
public AccountDocumentResponsibleResponseDto? Responsible { get; set; }
45+
46+
/// <summary>
47+
/// URL for onboarding
48+
/// </summary>
49+
[JsonPropertyName("onboardingUrl")]
50+
public string? OnboardingUrl { get; set; }
51+
52+
/// <summary>
53+
/// Onboarding URL expiration date
54+
/// </summary>
55+
[JsonPropertyName("onboardingUrlExpirationDate")]
56+
public string? OnboardingUrlExpirationDate { get; set; }
57+
58+
/// <summary>
59+
/// Documents that have already been sent with their respective identifiers
60+
/// </summary>
61+
[JsonPropertyName("documents")]
62+
public List<AccountDocumentGetResponseDto>? Documents { get; set; }
63+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
using System.Text.Json.Serialization;
2+
3+
namespace Asaas.Sdk.Models;
4+
5+
/// <summary>
6+
/// Who is responsible for sending these documents
7+
/// </summary>
8+
public class AccountDocumentResponsibleResponseDto
9+
{
10+
/// <summary>
11+
/// Responsible name
12+
/// </summary>
13+
[JsonPropertyName("name")]
14+
public string? Name { get; set; }
15+
16+
/// <summary>
17+
/// Responsible type
18+
/// </summary>
19+
[JsonPropertyName("type")]
20+
public List<AccountDocumentResponsibleType>? Type { get; set; }
21+
}
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
using System.Runtime.Serialization;
2+
using System.Text.Json.Serialization;
3+
4+
namespace Asaas.Sdk.Models;
5+
6+
/// <summary>
7+
/// Responsible type
8+
/// </summary>
9+
[JsonConverter(typeof(JsonStringEnumConverter<AccountDocumentResponsibleType>))]
10+
public enum AccountDocumentResponsibleType
11+
{
12+
[EnumMember(Value = "ALLOW_BANK_ACCOUNT_DEPOSIT_STATEMENT")]
13+
AllowBankAccountDepositStatement,
14+
15+
[EnumMember(Value = "ASAAS_ACCOUNT_OWNER_EMANCIPATION_AGE")]
16+
AsaasAccountOwnerEmancipationAge,
17+
18+
[EnumMember(Value = "ASAAS_ACCOUNT_OWNER")]
19+
AsaasAccountOwner,
20+
21+
[EnumMember(Value = "ASSOCIATION")]
22+
Association,
23+
24+
[EnumMember(Value = "BANK_ACCOUNT_OWNER_EMANCIPATION_AGE")]
25+
BankAccountOwnerEmancipationAge,
26+
27+
[EnumMember(Value = "BANK_ACCOUNT_OWNER")]
28+
BankAccountOwner,
29+
30+
[EnumMember(Value = "CUSTOM")]
31+
Custom,
32+
33+
[EnumMember(Value = "DIRECTOR")]
34+
Director,
35+
36+
[EnumMember(Value = "INDIVIDUAL_COMPANY")]
37+
IndividualCompany,
38+
39+
[EnumMember(Value = "LIMITED_COMPANY")]
40+
LimitedCompany,
41+
42+
[EnumMember(Value = "MEI")]
43+
Mei,
44+
45+
[EnumMember(Value = "PARTNER")]
46+
Partner
47+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
using System.Text.Json.Serialization;
2+
3+
namespace Asaas.Sdk.Models;
4+
5+
/// <summary>
6+
/// Account document save request
7+
/// </summary>
8+
public class AccountDocumentSaveRequestDto
9+
{
10+
/// <summary>
11+
/// File
12+
/// </summary>
13+
[JsonPropertyName("documentFile")]
14+
public byte[]? DocumentFile { get; set; }
15+
16+
/// <summary>
17+
/// Document Type
18+
/// </summary>
19+
[JsonPropertyName("type")]
20+
public AccountDocumentType? Type { get; set; }
21+
}

0 commit comments

Comments
 (0)