-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
210 changed files
with
611 additions
and
23 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
61 changes: 61 additions & 0 deletions
61
BunqSdk/Model/Generated/Endpoint/AttachmentMonetaryAccountContent.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
using Bunq.Sdk.Context; | ||
using Bunq.Sdk.Http; | ||
using Bunq.Sdk.Json; | ||
using Bunq.Sdk.Model.Core; | ||
using Newtonsoft.Json; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
using System; | ||
|
||
namespace Bunq.Sdk.Model.Generated.Endpoint | ||
{ | ||
/// <summary> | ||
/// Fetch the raw content of a monetary account attachment with given ID. The raw content is the binary | ||
/// representation of a file, without any JSON wrapping. | ||
/// </summary> | ||
public class AttachmentMonetaryAccountContent : BunqModel | ||
{ | ||
/// <summary> | ||
/// Endpoint constants. | ||
/// </summary> | ||
protected const string ENDPOINT_URL_LISTING = "user/{0}/monetary-account/{1}/attachment/{2}/content"; | ||
|
||
/// <summary> | ||
/// Object type. | ||
/// </summary> | ||
private const string OBJECT_TYPE_GET = "AttachmentMonetaryAccountContent"; | ||
|
||
/// <summary> | ||
/// Get the raw content of a specific attachment. | ||
/// </summary> | ||
public static BunqResponse<byte[]> List(int attachmentId, int? monetaryAccountId = null, | ||
IDictionary<string, string> customHeaders = null) | ||
{ | ||
if (customHeaders == null) customHeaders = new Dictionary<string, string>(); | ||
|
||
var apiClient = new ApiClient(GetApiContext()); | ||
var responseRaw = | ||
apiClient.Get( | ||
string.Format(ENDPOINT_URL_LISTING, DetermineUserId(), | ||
DetermineMonetaryAccountId(monetaryAccountId), attachmentId), new Dictionary<string, string>(), | ||
customHeaders); | ||
|
||
return new BunqResponse<byte[]>(responseRaw.BodyBytes, responseRaw.Headers); | ||
} | ||
|
||
|
||
/// <summary> | ||
/// </summary> | ||
public override bool IsAllFieldNull() | ||
{ | ||
return true; | ||
} | ||
|
||
/// <summary> | ||
/// </summary> | ||
public static AttachmentMonetaryAccountContent CreateFromJsonString(string json) | ||
{ | ||
return BunqModel.CreateFromJsonString<AttachmentMonetaryAccountContent>(json); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
using Bunq.Sdk.Context; | ||
using Bunq.Sdk.Http; | ||
using Bunq.Sdk.Json; | ||
using Bunq.Sdk.Model.Core; | ||
using Newtonsoft.Json; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
using System; | ||
|
||
namespace Bunq.Sdk.Model.Generated.Endpoint | ||
{ | ||
/// <summary> | ||
/// Fetch the raw content of a user attachment with given ID. The raw content is the binary representation of a | ||
/// file, without any JSON wrapping. | ||
/// </summary> | ||
public class AttachmentUserContent : BunqModel | ||
{ | ||
/// <summary> | ||
/// Endpoint constants. | ||
/// </summary> | ||
protected const string ENDPOINT_URL_LISTING = "user/{0}/attachment/{1}/content"; | ||
|
||
/// <summary> | ||
/// Object type. | ||
/// </summary> | ||
private const string OBJECT_TYPE_GET = "AttachmentUserContent"; | ||
|
||
/// <summary> | ||
/// Get the raw content of a specific attachment. | ||
/// </summary> | ||
public static BunqResponse<byte[]> List(int attachmentId, IDictionary<string, string> customHeaders = null) | ||
{ | ||
if (customHeaders == null) customHeaders = new Dictionary<string, string>(); | ||
|
||
var apiClient = new ApiClient(GetApiContext()); | ||
var responseRaw = apiClient.Get(string.Format(ENDPOINT_URL_LISTING, DetermineUserId(), attachmentId), | ||
new Dictionary<string, string>(), customHeaders); | ||
|
||
return new BunqResponse<byte[]>(responseRaw.BodyBytes, responseRaw.Headers); | ||
} | ||
|
||
|
||
/// <summary> | ||
/// </summary> | ||
public override bool IsAllFieldNull() | ||
{ | ||
return true; | ||
} | ||
|
||
/// <summary> | ||
/// </summary> | ||
public static AttachmentUserContent CreateFromJsonString(string json) | ||
{ | ||
return BunqModel.CreateFromJsonString<AttachmentUserContent>(json); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.