Skip to content

Commit c1df038

Browse files
Implemented missing DTOs related to Transfer services.
1 parent 90cfa2c commit c1df038

15 files changed

+644
-22
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.0.7
1+
# Asaas .NET SDK 1.0.8
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.0.7`
10+
- SDK version: `1.0.8`
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.0.7
43+
dotnet add package TorinoInfo.AsaasSdk --version 1.0.8
4444
```
4545

4646
### Using Package Manager Console
4747

4848
```powershell
49-
Install-Package TorinoInfo.AsaasSdk -Version 1.0.7
49+
Install-Package TorinoInfo.AsaasSdk -Version 1.0.8
5050
```
5151

5252
### Using PackageReference
5353

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

5656
```xml
57-
<PackageReference Include="TorinoInfo.AsaasSdk" Version="1.0.7" />
57+
<PackageReference Include="TorinoInfo.AsaasSdk" Version="1.0.8" />
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.0.7</PackageVersion>
10-
<Version>1.0.7</Version>
9+
<PackageVersion>1.0.8</PackageVersion>
10+
<Version>1.0.8</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.0.8 - Implemented missing DTOs related to Transfer services.
2223
* 1.0.7 - Implemented missing DTOs related to Webhook services.
2324
* 1.0.6 - Refactored Subaccount service to use newly created DTOs.
2425
* 1.0.5 - Implemented missing DTOs related to Account services.
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
using System.Text.Json.Serialization;
2+
3+
namespace Asaas.Sdk.Models;
4+
5+
/// <summary>
6+
/// Transfer bank account response
7+
/// </summary>
8+
public class TransferBankAccountGetResponseDto
9+
{
10+
/// <summary>
11+
/// Bank information
12+
/// </summary>
13+
[JsonPropertyName("bank")]
14+
public TransferBankGetResponseDto? Bank { get; set; }
15+
16+
/// <summary>
17+
/// Account holder name
18+
/// </summary>
19+
[JsonPropertyName("accountName")]
20+
public string? AccountName { get; set; }
21+
22+
/// <summary>
23+
/// Account owner name
24+
/// </summary>
25+
[JsonPropertyName("ownerName")]
26+
public string? OwnerName { get; set; }
27+
28+
/// <summary>
29+
/// CPF or CNPJ of the account owner
30+
/// </summary>
31+
[JsonPropertyName("cpfCnpj")]
32+
public string? CpfCnpj { get; set; }
33+
34+
/// <summary>
35+
/// Bank agency
36+
/// </summary>
37+
[JsonPropertyName("agency")]
38+
public string? Agency { get; set; }
39+
40+
/// <summary>
41+
/// Agency digit
42+
/// </summary>
43+
[JsonPropertyName("agencyDigit")]
44+
public string? AgencyDigit { get; set; }
45+
46+
/// <summary>
47+
/// Account number
48+
/// </summary>
49+
[JsonPropertyName("account")]
50+
public string? Account { get; set; }
51+
52+
/// <summary>
53+
/// Account digit
54+
/// </summary>
55+
[JsonPropertyName("accountDigit")]
56+
public string? AccountDigit { get; set; }
57+
58+
/// <summary>
59+
/// Account type
60+
/// </summary>
61+
[JsonPropertyName("bankAccountType")]
62+
public string? BankAccountType { get; set; }
63+
64+
/// <summary>
65+
/// Pix address key
66+
/// </summary>
67+
[JsonPropertyName("pixAddressKey")]
68+
public string? PixAddressKey { get; set; }
69+
}
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
using System.Text.Json.Serialization;
2+
3+
namespace Asaas.Sdk.Models;
4+
5+
/// <summary>
6+
/// Transfer bank account save request
7+
/// </summary>
8+
public class TransferBankAccountSaveRequestDto
9+
{
10+
/// <summary>
11+
/// Bank information
12+
/// </summary>
13+
[JsonPropertyName("bank")]
14+
public TransferBankSaveRequestDto? Bank { get; set; }
15+
16+
/// <summary>
17+
/// Account holder name
18+
/// </summary>
19+
[JsonPropertyName("accountName")]
20+
public string? AccountName { get; set; }
21+
22+
/// <summary>
23+
/// Account owner name
24+
/// </summary>
25+
[JsonPropertyName("ownerName")]
26+
public string? OwnerName { get; set; }
27+
28+
/// <summary>
29+
/// Owner's date of birth
30+
/// </summary>
31+
[JsonPropertyName("ownerBirthDate")]
32+
public string? OwnerBirthDate { get; set; }
33+
34+
/// <summary>
35+
/// CPF or CNPJ of the account owner
36+
/// </summary>
37+
[JsonPropertyName("cpfCnpj")]
38+
public string? CpfCnpj { get; set; }
39+
40+
/// <summary>
41+
/// Bank agency
42+
/// </summary>
43+
[JsonPropertyName("agency")]
44+
public string? Agency { get; set; }
45+
46+
/// <summary>
47+
/// Agency digit
48+
/// </summary>
49+
[JsonPropertyName("agencyDigit")]
50+
public string? AgencyDigit { get; set; }
51+
52+
/// <summary>
53+
/// Account number
54+
/// </summary>
55+
[JsonPropertyName("account")]
56+
public string? Account { get; set; }
57+
58+
/// <summary>
59+
/// Account digit
60+
/// </summary>
61+
[JsonPropertyName("accountDigit")]
62+
public string? AccountDigit { get; set; }
63+
64+
/// <summary>
65+
/// Account type (CONTA_CORRENTE, CONTA_POUPANCA, CONTA_CORRENTE_CONJUNTA, CONTA_POUPANCA_CONJUNTA)
66+
/// </summary>
67+
[JsonPropertyName("bankAccountType")]
68+
public string? BankAccountType { get; set; }
69+
}
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+
/// Transfer bank information response
7+
/// </summary>
8+
public class TransferBankGetResponseDto
9+
{
10+
/// <summary>
11+
/// Bank code
12+
/// </summary>
13+
[JsonPropertyName("code")]
14+
public string? Code { get; set; }
15+
16+
/// <summary>
17+
/// Bank name
18+
/// </summary>
19+
[JsonPropertyName("name")]
20+
public string? Name { get; set; }
21+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
using System.Text.Json.Serialization;
2+
3+
namespace Asaas.Sdk.Models;
4+
5+
/// <summary>
6+
/// Transfer bank information
7+
/// </summary>
8+
public class TransferBankSaveRequestDto
9+
{
10+
/// <summary>
11+
/// Bank code
12+
/// </summary>
13+
[JsonPropertyName("code")]
14+
public string? Code { get; set; }
15+
}
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+
/// Transfer delete/cancel response
7+
/// </summary>
8+
public class TransferDeleteResponseDto
9+
{
10+
/// <summary>
11+
/// Indicates whether the transfer was deleted/cancelled
12+
/// </summary>
13+
[JsonPropertyName("deleted")]
14+
public bool? Deleted { get; set; }
15+
16+
/// <summary>
17+
/// Transfer identifier
18+
/// </summary>
19+
[JsonPropertyName("id")]
20+
public string? Id { get; set; }
21+
}
Lines changed: 123 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,123 @@
1+
using System.Text.Json.Serialization;
2+
3+
namespace Asaas.Sdk.Models;
4+
5+
/// <summary>
6+
/// Transfer response
7+
/// </summary>
8+
public class TransferGetResponseDto
9+
{
10+
/// <summary>
11+
/// Object type
12+
/// </summary>
13+
[JsonPropertyName("object")]
14+
public string? Object { get; set; }
15+
16+
/// <summary>
17+
/// Unique transfer identifier in Asaas
18+
/// </summary>
19+
[JsonPropertyName("id")]
20+
public string? Id { get; set; }
21+
22+
/// <summary>
23+
/// Type of transfer (BANK_ACCOUNT, ASAAS_ACCOUNT)
24+
/// </summary>
25+
[JsonPropertyName("type")]
26+
public string? Type { get; set; }
27+
28+
/// <summary>
29+
/// Transfer request date
30+
/// </summary>
31+
[JsonPropertyName("dateCreated")]
32+
public string? DateCreated { get; set; }
33+
34+
/// <summary>
35+
/// Transfer amount
36+
/// </summary>
37+
[JsonPropertyName("value")]
38+
public double? Value { get; set; }
39+
40+
/// <summary>
41+
/// Net value minus transfer fee
42+
/// </summary>
43+
[JsonPropertyName("netValue")]
44+
public double? NetValue { get; set; }
45+
46+
/// <summary>
47+
/// Transfer status (PENDING, BANK_PROCESSING, DONE, CANCELLED, FAILED)
48+
/// </summary>
49+
[JsonPropertyName("status")]
50+
public string? Status { get; set; }
51+
52+
/// <summary>
53+
/// Transfer rate
54+
/// </summary>
55+
[JsonPropertyName("transferFee")]
56+
public double? TransferFee { get; set; }
57+
58+
/// <summary>
59+
/// Effective date
60+
/// </summary>
61+
[JsonPropertyName("effectiveDate")]
62+
public string? EffectiveDate { get; set; }
63+
64+
/// <summary>
65+
/// Schedule date
66+
/// </summary>
67+
[JsonPropertyName("scheduleDate")]
68+
public string? ScheduleDate { get; set; }
69+
70+
/// <summary>
71+
/// Unique identifier of the Pix transaction at the Central Bank
72+
/// </summary>
73+
[JsonPropertyName("endToEndIdentifier")]
74+
public string? EndToEndIdentifier { get; set; }
75+
76+
/// <summary>
77+
/// False when awaiting authorization via SMS Token
78+
/// </summary>
79+
[JsonPropertyName("authorized")]
80+
public bool? Authorized { get; set; }
81+
82+
/// <summary>
83+
/// Reason for transfer failure
84+
/// </summary>
85+
[JsonPropertyName("failReason")]
86+
public string? FailReason { get; set; }
87+
88+
/// <summary>
89+
/// Transfer identifier in your system
90+
/// </summary>
91+
[JsonPropertyName("externalReference")]
92+
public string? ExternalReference { get; set; }
93+
94+
/// <summary>
95+
/// Proof of transfer will be available after the transfer is confirmed
96+
/// </summary>
97+
[JsonPropertyName("transactionReceiptUrl")]
98+
public string? TransactionReceiptUrl { get; set; }
99+
100+
/// <summary>
101+
/// Transfer method (PIX, TED, INTERNAL)
102+
/// </summary>
103+
[JsonPropertyName("operationType")]
104+
public string? OperationType { get; set; }
105+
106+
/// <summary>
107+
/// Transfer description
108+
/// </summary>
109+
[JsonPropertyName("description")]
110+
public string? Description { get; set; }
111+
112+
/// <summary>
113+
/// Recurring transfer identifier
114+
/// </summary>
115+
[JsonPropertyName("recurring")]
116+
public string? Recurring { get; set; }
117+
118+
/// <summary>
119+
/// Bank account information
120+
/// </summary>
121+
[JsonPropertyName("bankAccount")]
122+
public TransferBankAccountGetResponseDto? BankAccount { get; set; }
123+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
namespace Asaas.Sdk.Models;
2+
3+
/// <summary>
4+
/// Transfer list response
5+
/// </summary>
6+
public class TransferListResponseDto : ListResponseDto<TransferGetResponseDto>
7+
{
8+
}

0 commit comments

Comments
 (0)