From 48d473d9a2bb6643d956da7b525f4ab05b0e63da Mon Sep 17 00:00:00 2001 From: Andre de Roos Date: Sat, 2 Aug 2025 10:06:04 +0200 Subject: [PATCH 1/4] Replace all occurences of itemId from int to long --- BunqSdk/Context/ApiContext.cs | 6 +- BunqSdk/Context/SessionContext.cs | 8 +- BunqSdk/Http/Pagination.cs | 10 +- BunqSdk/Model/Core/BunqModel.cs | 6 +- BunqSdk/Model/Core/Id.cs | 4 +- ...icationFilterUrlMonetaryAccountInternal.cs | 4 +- ...TransactionInformationCategoryApiObject.cs | 2 +- ...InformationCategoryUserDefinedApiObject.cs | 2 +- .../AttachmentConversationContentApiObject.cs | 2 +- .../AttachmentMonetaryAccountApiObject.cs | 4 +- ...tachmentMonetaryAccountContentApiObject.cs | 2 +- .../Endpoint/AttachmentUserApiObject.cs | 4 +- .../AttachmentUserContentApiObject.cs | 2 +- ...viceNetherlandsIncomingPaymentApiObject.cs | 2 +- .../BillingContractSubscriptionApiObject.cs | 4 +- .../BirdeeInvestmentPortfolioApiObject.cs | 4 +- .../BunqMeFundraiserProfileUserApiObject.cs | 6 +- .../BunqMeFundraiserResultApiObject.cs | 4 +- .../Generated/Endpoint/BunqMeTabApiObject.cs | 14 +- .../BunqMeTabResultInquiryApiObject.cs | 2 +- .../BunqMeTabResultResponseApiObject.cs | 2 +- .../Model/Generated/Endpoint/CardApiObject.cs | 14 +- .../Generated/Endpoint/CardCreditApiObject.cs | 12 +- .../Generated/Endpoint/CardDebitApiObject.cs | 12 +- .../Endpoint/CardGeneratedCvc2ApiObject.cs | 10 +- .../Endpoint/CardReplaceApiObject.cs | 4 +- .../Endpoint/CardReplacementApiObject.cs | 4 +- .../Endpoint/CertificatePinnedApiObject.cs | 8 +- .../CoOwnerInviteResponseApiObject.cs | 2 +- .../Generated/Endpoint/CompanyApiObject.cs | 6 +- .../Endpoint/CompanyEmployeeCardApiObject.cs | 2 +- .../CompanyEmployeeCardLimitApiObject.cs | 4 +- ...yeeSettingAdyenCardTransactionApiObject.cs | 4 +- .../CurrencyCloudBeneficiaryApiObject.cs | 6 +- .../CurrencyCloudPaymentQuoteApiObject.cs | 2 +- .../Endpoint/CurrencyConversionApiObject.cs | 6 +- .../CurrencyConversionQuoteApiObject.cs | 8 +- .../Generated/Endpoint/CustomerApiObject.cs | 2 +- .../Endpoint/CustomerLimitApiObject.cs | 14 +- .../Generated/Endpoint/DeviceApiObject.cs | 2 +- .../Endpoint/DeviceServerApiObject.cs | 6 +- .../Endpoint/DraftPaymentApiObject.cs | 29 +- .../Generated/Endpoint/EventApiObject.cs | 4 +- .../Endpoint/ExportAnnualOverviewApiObject.cs | 10 +- .../ExportAnnualOverviewContentApiObject.cs | 2 +- .../Generated/Endpoint/ExportRibApiObject.cs | 10 +- .../Endpoint/ExportRibContentApiObject.cs | 2 +- .../Endpoint/ExportStatementApiObject.cs | 12 +- .../Endpoint/ExportStatementCardApiObject.cs | 8 +- .../ExportStatementCardContentApiObject.cs | 2 +- .../ExportStatementCardCsvApiObject.cs | 12 +- .../ExportStatementCardPdfApiObject.cs | 12 +- .../ExportStatementContentApiObject.cs | 2 +- .../ExportStatementPaymentApiObject.cs | 6 +- .../ExportStatementPaymentContentApiObject.cs | 2 +- .../Endpoint/FeatureAnnouncementApiObject.cs | 2 +- .../Endpoint/FulfillmentApiObject.cs | 2 +- .../Endpoint/GinmonTransactionApiObject.cs | 2 +- .../IdealMerchantTransactionApiObject.cs | 8 +- .../Generated/Endpoint/InsightApiObject.cs | 2 +- .../Endpoint/InsightEventApiObject.cs | 2 +- .../InsightPreferenceDateApiObject.cs | 2 +- .../InstallationServerPublicKeyApiObject.cs | 2 +- .../Generated/Endpoint/InvoiceApiObject.cs | 18 +- .../Endpoint/InvoiceByUserApiObject.cs | 4 +- .../Endpoint/InvoiceExportPdfApiObject.cs | 10 +- .../InvoiceExportPdfContentApiObject.cs | 2 +- .../Endpoint/MasterCardActionApiObject.cs | 14 +- .../MasterCardActionRefundApiObject.cs | 4 +- .../MasterCardActionReportApiObject.cs | 2 +- ...ntityCheckChallengeRequestUserApiObject.cs | 8 +- .../Endpoint/MasterCardPaymentApiObject.cs | 10 +- .../Endpoint/MonetaryAccountApiObject.cs | 14 +- .../Endpoint/MonetaryAccountBankApiObject.cs | 22 +- .../MonetaryAccountBudgetApiObject.cs | 4 +- .../Endpoint/MonetaryAccountCardApiObject.cs | 30 +- .../MonetaryAccountExternalApiObject.cs | 22 +- ...MonetaryAccountExternalSavingsApiObject.cs | 22 +- .../MonetaryAccountInvestmentApiObject.cs | 18 +- .../Endpoint/MonetaryAccountJointApiObject.cs | 22 +- .../Endpoint/MonetaryAccountLightApiObject.cs | 16 +- .../MonetaryAccountSavingsApiObject.cs | 22 +- .../MonetaryAccountSwitchServiceApiObject.cs | 14 +- ...AttachmentAdyenCardTransactionApiObject.cs | 14 +- ...viceNetherlandsIncomingPaymentApiObject.cs | 14 +- ...tachmentBunqMeFundraiserResultApiObject.cs | 14 +- .../NoteAttachmentDraftPaymentApiObject.cs | 14 +- ...chmentIdealMerchantTransactionApiObject.cs | 14 +- ...NoteAttachmentMasterCardActionApiObject.cs | 14 +- ...OpenBankingMerchantTransactionApiObject.cs | 14 +- .../NoteAttachmentPaymentApiObject.cs | 14 +- .../NoteAttachmentPaymentBatchApiObject.cs | 14 +- .../NoteAttachmentPaymentDelayedApiObject.cs | 14 +- ...NoteAttachmentPaymentSuspendedApiObject.cs | 198 +++++++++++ .../NoteAttachmentRequestInquiryApiObject.cs | 14 +- ...eAttachmentRequestInquiryBatchApiObject.cs | 14 +- .../NoteAttachmentRequestResponseApiObject.cs | 14 +- ...NoteAttachmentScheduleInstanceApiObject.cs | 14 +- .../NoteAttachmentSchedulePaymentApiObject.cs | 14 +- ...AttachmentSchedulePaymentBatchApiObject.cs | 14 +- .../NoteAttachmentScheduleRequestApiObject.cs | 14 +- ...AttachmentScheduleRequestBatchApiObject.cs | 14 +- ...hmentSofortMerchantTransactionApiObject.cs | 14 +- .../NoteAttachmentWhitelistResultApiObject.cs | 14 +- .../NoteTextAdyenCardTransactionApiObject.cs | 12 +- ...viceNetherlandsIncomingPaymentApiObject.cs | 12 +- ...NoteTextBunqMeFundraiserResultApiObject.cs | 12 +- .../Endpoint/NoteTextDraftPaymentApiObject.cs | 12 +- ...teTextIdealMerchantTransactionApiObject.cs | 12 +- .../NoteTextMasterCardActionApiObject.cs | 12 +- ...OpenBankingMerchantTransactionApiObject.cs | 12 +- .../Endpoint/NoteTextPaymentApiObject.cs | 12 +- .../Endpoint/NoteTextPaymentBatchApiObject.cs | 12 +- .../NoteTextPaymentDelayedApiObject.cs | 12 +- .../NoteTextPaymentSuspendedApiObject.cs | 180 ++++++++++ .../NoteTextRequestInquiryApiObject.cs | 12 +- .../NoteTextRequestInquiryBatchApiObject.cs | 12 +- .../NoteTextRequestResponseApiObject.cs | 12 +- .../NoteTextScheduleInstanceApiObject.cs | 12 +- .../NoteTextSchedulePaymentApiObject.cs | 12 +- .../NoteTextSchedulePaymentBatchApiObject.cs | 12 +- .../NoteTextScheduleRequestApiObject.cs | 12 +- .../NoteTextScheduleRequestBatchApiObject.cs | 12 +- ...eTextSofortMerchantTransactionApiObject.cs | 12 +- .../NoteTextWhitelistResultApiObject.cs | 12 +- .../NotificationFilterFailureApiObject.cs | 6 +- .../NotificationFilterUrlApiObject.cs | 2 +- ...cationFilterUrlMonetaryAccountApiObject.cs | 4 +- .../Endpoint/OauthCallbackUrlApiObject.cs | 10 +- .../Endpoint/OauthClientApiObject.cs | 8 +- .../PartnerPromotionCashbackApiObject.cs | 2 +- .../Generated/Endpoint/PaymentApiObject.cs | 14 +- .../Endpoint/PaymentAutoAllocateApiObject.cs | 14 +- .../PaymentAutoAllocateDefinitionApiObject.cs | 4 +- .../PaymentAutoAllocateInstanceApiObject.cs | 10 +- .../Endpoint/PaymentBatchApiObject.cs | 97 +++++- .../Endpoint/PaymentBatchEntryApiObject.cs | 162 +++++++++ .../Endpoint/PaymentDelayedApiObject.cs | 129 ++++++++ .../PaymentDelayedIncomingApiObject.cs | 109 +++++++ .../PaymentDelayedOutgoingApiObject.cs | 155 +++++++++ ...ymentServiceProviderCredentialApiObject.cs | 6 +- ...entServiceProviderDraftPaymentApiObject.cs | 6 +- ...rviceProviderIssuerTransactionApiObject.cs | 8 +- .../Endpoint/PermittedIpApiObject.cs | 8 +- .../Endpoint/PointMutationApiObject.cs | 2 +- .../Generated/Endpoint/RegistryApiObject.cs | 307 ++++++++++++++++++ .../Endpoint/RegistryEntryApiObject.cs | 305 +++++++++++++++++ .../RegistryGalleryAttachmentApiObject.cs | 59 ++++ .../RegistryImportSplitwiseCsvApiObject.cs | 71 ++++ .../Endpoint/RegistryMembershipApiObject.cs | 167 ++++++++++ .../Endpoint/RegistrySettingApiObject.cs | 72 ++++ .../Endpoint/RelationUserApiObject.cs | 44 ++- .../Endpoint/RequestInquiryApiObject.cs | 20 +- .../Endpoint/RequestInquiryBatchApiObject.cs | 10 +- .../Endpoint/RequestResponseApiObject.cs | 20 +- .../Endpoint/SandboxUserCompanyApiObject.cs | 18 +- .../Generated/Endpoint/ScheduleApiObject.cs | 6 +- .../Endpoint/ScheduleInstanceApiObject.cs | 6 +- .../Endpoint/SchedulePaymentApiObject.cs | 10 +- .../Endpoint/SchedulePaymentBatchApiObject.cs | 8 +- .../Endpoint/ServerErrorApiObject.cs | 2 +- .../Generated/Endpoint/SessionApiObject.cs | 2 +- ...reInviteMonetaryAccountInquiryApiObject.cs | 14 +- ...eInviteMonetaryAccountResponseApiObject.cs | 12 +- .../SofortMerchantTransactionApiObject.cs | 6 +- .../Endpoint/TokenQrRequestIdealApiObject.cs | 8 +- .../TransferwiseAccountQuoteApiObject.cs | 8 +- ...TransferwiseAccountRequirementApiObject.cs | 4 +- .../Endpoint/TransferwiseQuoteApiObject.cs | 6 +- .../TransferwiseQuoteTemporaryApiObject.cs | 6 +- .../Endpoint/TransferwiseTransferApiObject.cs | 6 +- ...ransferwiseTransferRequirementApiObject.cs | 2 +- .../Endpoint/TransferwiseUserApiObject.cs | 4 +- .../Generated/Endpoint/UserApiKeyApiObject.cs | 2 +- ...serBlocklistMasterCardMerchantApiObject.cs | 2 +- .../Endpoint/UserCompanyApiObject.cs | 6 +- .../Endpoint/UserCompanyNameApiObject.cs | 2 +- .../UserCredentialPasswordIpApiObject.cs | 4 +- .../UserPartnerPromotionCashbackApiObject.cs | 2 +- .../UserPaymentServiceProviderApiObject.cs | 6 +- .../Generated/Endpoint/UserPersonApiObject.cs | 10 +- .../Endpoint/WhitelistResultApiObject.cs | 4 +- .../Endpoint/WhitelistSddApiObject.cs | 10 +- ...telistSddMonetaryAccountPayingApiObject.cs | 10 +- .../Endpoint/WhitelistSddOneOffApiObject.cs | 16 +- .../WhitelistSddRecurringApiObject.cs | 16 +- .../Generated/Object/AllocationItemObject.cs | 100 ++++++ .../AttachmentMasterCardActionRefundObject.cs | 4 +- .../AttachmentMonetaryAccountPaymentObject.cs | 6 +- .../Model/Generated/Object/BunqIdObject.cs | 4 +- .../Generated/Object/CardBatchEntryObject.cs | 6 +- .../Object/CardBatchReplaceEntryObject.cs | 4 +- .../Object/CardCountryPermissionObject.cs | 2 +- .../Object/CardPinAssignmentObject.cs | 2 +- .../Object/CardPrimaryAccountNumberObject.cs | 6 +- .../Object/DraftPaymentEntryObject.cs | 2 +- BunqSdk/Model/Generated/Object/ImageObject.cs | 4 +- .../Generated/Object/InvoiceItemObject.cs | 2 +- .../Object/MasterCardActionReferenceObject.cs | 2 +- .../Object/NotificationFilterUrlObject.cs | 2 +- .../Object/OauthCallbackUrlObject.cs | 2 +- .../Generated/Object/PaymentFeeObject.cs | 2 +- .../Object/RegistryEntryAttachmentObject.cs | 52 +++ .../Object/RegistryEntryReferenceObject.cs | 37 +++ .../Object/RegistryMembershipSettingObject.cs | 77 +++++ .../Object/RequestInquiryReferenceObject.cs | 2 +- .../Generated/Object/TaxResidentObject.cs | 2 +- ...WhitelistResultViewAnchoredObjectObject.cs | 2 +- 208 files changed, 3164 insertions(+), 740 deletions(-) create mode 100644 BunqSdk/Model/Generated/Endpoint/NoteAttachmentPaymentSuspendedApiObject.cs create mode 100644 BunqSdk/Model/Generated/Endpoint/NoteTextPaymentSuspendedApiObject.cs create mode 100644 BunqSdk/Model/Generated/Endpoint/PaymentBatchEntryApiObject.cs create mode 100644 BunqSdk/Model/Generated/Endpoint/PaymentDelayedApiObject.cs create mode 100644 BunqSdk/Model/Generated/Endpoint/PaymentDelayedIncomingApiObject.cs create mode 100644 BunqSdk/Model/Generated/Endpoint/PaymentDelayedOutgoingApiObject.cs create mode 100644 BunqSdk/Model/Generated/Endpoint/RegistryApiObject.cs create mode 100644 BunqSdk/Model/Generated/Endpoint/RegistryEntryApiObject.cs create mode 100644 BunqSdk/Model/Generated/Endpoint/RegistryGalleryAttachmentApiObject.cs create mode 100644 BunqSdk/Model/Generated/Endpoint/RegistryImportSplitwiseCsvApiObject.cs create mode 100644 BunqSdk/Model/Generated/Endpoint/RegistryMembershipApiObject.cs create mode 100644 BunqSdk/Model/Generated/Endpoint/RegistrySettingApiObject.cs create mode 100644 BunqSdk/Model/Generated/Object/AllocationItemObject.cs create mode 100644 BunqSdk/Model/Generated/Object/RegistryEntryAttachmentObject.cs create mode 100644 BunqSdk/Model/Generated/Object/RegistryEntryReferenceObject.cs create mode 100644 BunqSdk/Model/Generated/Object/RegistryMembershipSettingObject.cs diff --git a/BunqSdk/Context/ApiContext.cs b/BunqSdk/Context/ApiContext.cs index 514705b4..9b66e049 100644 --- a/BunqSdk/Context/ApiContext.cs +++ b/BunqSdk/Context/ApiContext.cs @@ -31,12 +31,12 @@ public class ApiContext /// /// Measure of any time unit when none of it is needed. /// - private const int TIME_UNIT_COUNT_NONE = 0; + private const long TIME_UNIT_COUNT_NONE = 0; /// /// Minimum time to session expiry not requiring session reset. /// - private const int TIME_TO_SESSION_EXPIRY_MINIMUM_SECONDS = 30; + private const long TIME_TO_SESSION_EXPIRY_MINIMUM_SECONDS = 30; /// /// Default path to store the serialized context. @@ -46,7 +46,7 @@ public class ApiContext /// /// Dummy ID to pass to Session endpoint. /// - private const int SESSION_ID_DUMMY = 0; + private const long SESSION_ID_DUMMY = 0; /// /// Encoding of the serialized context. diff --git a/BunqSdk/Context/SessionContext.cs b/BunqSdk/Context/SessionContext.cs index 03899857..7ac59c62 100644 --- a/BunqSdk/Context/SessionContext.cs +++ b/BunqSdk/Context/SessionContext.cs @@ -38,7 +38,7 @@ public class SessionContext public DateTime ExpiryTime { get; private set; } [JsonProperty(PropertyName = "user_id")] - public int UserId { get; private set; } + public long UserId { get; private set; } [JsonProperty(PropertyName = "user_person")] public UserPersonApiObject UserPerson { get; private set; } @@ -89,7 +89,7 @@ private void SetUser(BunqModel user) } } - private static int GetUserId(SessionServer sessionServer) + private static long GetUserId(SessionServer sessionServer) { if (sessionServer.UserCompany != null) { @@ -155,7 +155,7 @@ private static double GetSessionTimeout(SessionServer sessionServer) private static double GetSessionTimeOutForUser(BunqModel user) { - int? sessionTimeout; + long? sessionTimeout; if (user.GetType() == typeof(UserPersonApiObject)) { @@ -177,7 +177,7 @@ private static double GetSessionTimeOutForUser(BunqModel user) return GetDoubleFromSessionTimeout(sessionTimeout); } - private static double GetDoubleFromSessionTimeout(int? sessionTimeout) + private static double GetDoubleFromSessionTimeout(long? sessionTimeout) { if (sessionTimeout == null) { diff --git a/BunqSdk/Http/Pagination.cs b/BunqSdk/Http/Pagination.cs index 3cf063d7..f8e3416c 100644 --- a/BunqSdk/Http/Pagination.cs +++ b/BunqSdk/Http/Pagination.cs @@ -20,10 +20,10 @@ public class Pagination public const string PARAM_FUTURE_ID = "future_id"; public const string PARAM_COUNT = "count"; - public int? OlderId { get; set; } - public int? NewerId { get; set; } - public int? FutureId { get; set; } - public int? Count { get; set; } + public long? OlderId { get; set; } + public long? NewerId { get; set; } + public long? FutureId { get; set; } + public long? Count { get; set; } /// /// Get the URL params required to request the next page of the listing. @@ -58,7 +58,7 @@ private void AddCountToParamsIfNeeded(IDictionary urlParams) } } - private int? NextId + private long? NextId { get { return HasNextPageAssured() ? NewerId : FutureId; } } diff --git a/BunqSdk/Model/Core/BunqModel.cs b/BunqSdk/Model/Core/BunqModel.cs index 975a9cc5..bc812746 100644 --- a/BunqSdk/Model/Core/BunqModel.cs +++ b/BunqSdk/Model/Core/BunqModel.cs @@ -39,15 +39,15 @@ protected static BunqResponse FromJsonArrayNested(BunqResponseRaw response } /// - /// De-serializes an ID object and returns its integer value. + /// De-serializes an ID object and returns its long value. /// - protected static BunqResponse ProcessForId(BunqResponseRaw responseRaw) + protected static BunqResponse ProcessForId(BunqResponseRaw responseRaw) { var responseItemObject = GetResponseItemObject(responseRaw); var unwrappedItemJsonString = GetUnwrappedItemJsonString(responseItemObject, FIELD_ID); var responseValue = BunqJsonConvert.DeserializeObject(unwrappedItemJsonString).IdInt; - return new BunqResponse(responseValue, responseRaw.Headers); + return new BunqResponse(responseValue, responseRaw.Headers); } private static JObject GetResponseItemObject(BunqResponseRaw responseRaw) diff --git a/BunqSdk/Model/Core/Id.cs b/BunqSdk/Model/Core/Id.cs index 9e810132..e69bed18 100644 --- a/BunqSdk/Model/Core/Id.cs +++ b/BunqSdk/Model/Core/Id.cs @@ -4,9 +4,9 @@ namespace Bunq.Sdk.Model.Core { public class Id { - [JsonProperty(PropertyName = "id")] public int IdInt { get; private set; } + [JsonProperty(PropertyName = "id")] public long IdInt { get; private set; } - public Id(int idInt) + public Id(long idInt) { IdInt = idInt; } diff --git a/BunqSdk/Model/Core/NotificationFilterUrlMonetaryAccountInternal.cs b/BunqSdk/Model/Core/NotificationFilterUrlMonetaryAccountInternal.cs index 16ed5668..5e12ed5d 100644 --- a/BunqSdk/Model/Core/NotificationFilterUrlMonetaryAccountInternal.cs +++ b/BunqSdk/Model/Core/NotificationFilterUrlMonetaryAccountInternal.cs @@ -27,7 +27,7 @@ public static BunqResponse> CreateWithListResp /// Create notification filters with list response type. /// public static BunqResponse> CreateWithListResponse( - int monetaryAccountId, + long monetaryAccountId, List allNotificationFilter ) { @@ -38,7 +38,7 @@ List allNotificationFilter /// Create notification filters with list response type. /// public static BunqResponse> CreateWithListResponse( - int? monetaryAccountId, + long? monetaryAccountId, List allNotificationFilter, Dictionary customHeaders ) diff --git a/BunqSdk/Model/Generated/Endpoint/AdditionalTransactionInformationCategoryApiObject.cs b/BunqSdk/Model/Generated/Endpoint/AdditionalTransactionInformationCategoryApiObject.cs index f4ec929a..493de877 100644 --- a/BunqSdk/Model/Generated/Endpoint/AdditionalTransactionInformationCategoryApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/AdditionalTransactionInformationCategoryApiObject.cs @@ -43,7 +43,7 @@ public class AdditionalTransactionInformationCategoryApiObject : BunqModel /// The sort order of the category. /// [JsonProperty(PropertyName = "order")] - public int? Order { get; set; } + public long? Order { get; set; } /// /// The description of the category. /// diff --git a/BunqSdk/Model/Generated/Endpoint/AdditionalTransactionInformationCategoryUserDefinedApiObject.cs b/BunqSdk/Model/Generated/Endpoint/AdditionalTransactionInformationCategoryUserDefinedApiObject.cs index da0b3d75..0b7a15a9 100644 --- a/BunqSdk/Model/Generated/Endpoint/AdditionalTransactionInformationCategoryUserDefinedApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/AdditionalTransactionInformationCategoryUserDefinedApiObject.cs @@ -62,7 +62,7 @@ public class AdditionalTransactionInformationCategoryUserDefinedApiObject : Bunq /// The description of the category. /// The color of the category. /// The icon of the category. - public static BunqResponse Create(string status, string category = null, string description = null, string color = null, string icon = null, IDictionary customHeaders = null) + public static BunqResponse Create(string status, string category = null, string description = null, string color = null, string icon = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); diff --git a/BunqSdk/Model/Generated/Endpoint/AttachmentConversationContentApiObject.cs b/BunqSdk/Model/Generated/Endpoint/AttachmentConversationContentApiObject.cs index 340bec35..b017e61f 100644 --- a/BunqSdk/Model/Generated/Endpoint/AttachmentConversationContentApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/AttachmentConversationContentApiObject.cs @@ -28,7 +28,7 @@ public class AttachmentConversationContentApiObject : BunqModel /// /// Get the raw content of a specific attachment. /// - public static BunqResponse List(int chatConversationId, int attachmentId, IDictionary customHeaders = null) + public static BunqResponse List(long chatConversationId, long attachmentId, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); diff --git a/BunqSdk/Model/Generated/Endpoint/AttachmentMonetaryAccountApiObject.cs b/BunqSdk/Model/Generated/Endpoint/AttachmentMonetaryAccountApiObject.cs index db5343e6..a0be4951 100644 --- a/BunqSdk/Model/Generated/Endpoint/AttachmentMonetaryAccountApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/AttachmentMonetaryAccountApiObject.cs @@ -31,7 +31,7 @@ public class AttachmentMonetaryAccountApiObject : BunqModel /// The ID of the attachment created. /// [JsonProperty(PropertyName = "id")] - public int? Id { get; set; } + public long? Id { get; set; } /// /// Create a new monetary account attachment. Create a POST request with a payload that contains the binary @@ -39,7 +39,7 @@ public class AttachmentMonetaryAccountApiObject : BunqModel /// in the Content-Type header. You are required to provide a description of the attachment using the /// X-Bunq-Attachment-Description header. /// - public static BunqResponse Create(byte[] requestBytes, int? monetaryAccountId= null, IDictionary customHeaders = null) + public static BunqResponse Create(byte[] requestBytes, long? monetaryAccountId= null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); diff --git a/BunqSdk/Model/Generated/Endpoint/AttachmentMonetaryAccountContentApiObject.cs b/BunqSdk/Model/Generated/Endpoint/AttachmentMonetaryAccountContentApiObject.cs index d3e832fc..fcdfea8d 100644 --- a/BunqSdk/Model/Generated/Endpoint/AttachmentMonetaryAccountContentApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/AttachmentMonetaryAccountContentApiObject.cs @@ -28,7 +28,7 @@ public class AttachmentMonetaryAccountContentApiObject : BunqModel /// /// Get the raw content of a specific attachment. /// - public static BunqResponse List(int attachmentId, int? monetaryAccountId= null, IDictionary customHeaders = null) + public static BunqResponse List(long attachmentId, long? monetaryAccountId= null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); diff --git a/BunqSdk/Model/Generated/Endpoint/AttachmentUserApiObject.cs b/BunqSdk/Model/Generated/Endpoint/AttachmentUserApiObject.cs index 4f8a3337..880f440c 100644 --- a/BunqSdk/Model/Generated/Endpoint/AttachmentUserApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/AttachmentUserApiObject.cs @@ -30,7 +30,7 @@ public class AttachmentUserApiObject : BunqModel /// The id of the attachment. /// [JsonProperty(PropertyName = "id")] - public int? Id { get; set; } + public long? Id { get; set; } /// /// The timestamp of the attachment's creation. /// @@ -50,7 +50,7 @@ public class AttachmentUserApiObject : BunqModel /// /// Get a specific attachment. The header of the response contains the content-type of the attachment. /// - public static BunqResponse Get(int attachmentUserId, IDictionary customHeaders = null) + public static BunqResponse Get(long attachmentUserId, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); diff --git a/BunqSdk/Model/Generated/Endpoint/AttachmentUserContentApiObject.cs b/BunqSdk/Model/Generated/Endpoint/AttachmentUserContentApiObject.cs index c4c3cbdc..85a90c0a 100644 --- a/BunqSdk/Model/Generated/Endpoint/AttachmentUserContentApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/AttachmentUserContentApiObject.cs @@ -28,7 +28,7 @@ public class AttachmentUserContentApiObject : BunqModel /// /// Get the raw content of a specific attachment. /// - public static BunqResponse List(int attachmentId, IDictionary customHeaders = null) + public static BunqResponse List(long attachmentId, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); diff --git a/BunqSdk/Model/Generated/Endpoint/BankSwitchServiceNetherlandsIncomingPaymentApiObject.cs b/BunqSdk/Model/Generated/Endpoint/BankSwitchServiceNetherlandsIncomingPaymentApiObject.cs index 4dd64b35..ab468365 100644 --- a/BunqSdk/Model/Generated/Endpoint/BankSwitchServiceNetherlandsIncomingPaymentApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/BankSwitchServiceNetherlandsIncomingPaymentApiObject.cs @@ -38,7 +38,7 @@ public class BankSwitchServiceNetherlandsIncomingPaymentApiObject : BunqModel /// /// - public static BunqResponse Get(int bankSwitchServiceNetherlandsIncomingPaymentId, int? monetaryAccountId= null, IDictionary customHeaders = null) + public static BunqResponse Get(long bankSwitchServiceNetherlandsIncomingPaymentId, long? monetaryAccountId= null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); diff --git a/BunqSdk/Model/Generated/Endpoint/BillingContractSubscriptionApiObject.cs b/BunqSdk/Model/Generated/Endpoint/BillingContractSubscriptionApiObject.cs index 240a524b..81cf4333 100644 --- a/BunqSdk/Model/Generated/Endpoint/BillingContractSubscriptionApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/BillingContractSubscriptionApiObject.cs @@ -39,7 +39,7 @@ public class BillingContractSubscriptionApiObject : BunqModel /// The id of the billing contract. /// [JsonProperty(PropertyName = "id")] - public int? Id { get; set; } + public long? Id { get; set; } /// /// The timestamp when the billing contract was made. /// @@ -64,7 +64,7 @@ public class BillingContractSubscriptionApiObject : BunqModel /// The version of the billing contract. /// [JsonProperty(PropertyName = "contract_version")] - public int? ContractVersion { get; set; } + public long? ContractVersion { get; set; } /// /// The subscription type the user will have after a subscription downgrade. Will be null if downgrading is not /// possible. diff --git a/BunqSdk/Model/Generated/Endpoint/BirdeeInvestmentPortfolioApiObject.cs b/BunqSdk/Model/Generated/Endpoint/BirdeeInvestmentPortfolioApiObject.cs index e7987ee4..af068627 100644 --- a/BunqSdk/Model/Generated/Endpoint/BirdeeInvestmentPortfolioApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/BirdeeInvestmentPortfolioApiObject.cs @@ -48,12 +48,12 @@ public class BirdeeInvestmentPortfolioApiObject : BunqModel /// Maximum number of strategy changes in a year. /// [JsonProperty(PropertyName = "number_of_strategy_change_annual_maximum")] - public int? NumberOfStrategyChangeAnnualMaximum { get; set; } + public long? NumberOfStrategyChangeAnnualMaximum { get; set; } /// /// Maximum number of strategy changes used. /// [JsonProperty(PropertyName = "number_of_strategy_change_annual_used")] - public int? NumberOfStrategyChangeAnnualUsed { get; set; } + public long? NumberOfStrategyChangeAnnualUsed { get; set; } /// /// The external identifier of the portfolio. /// diff --git a/BunqSdk/Model/Generated/Endpoint/BunqMeFundraiserProfileUserApiObject.cs b/BunqSdk/Model/Generated/Endpoint/BunqMeFundraiserProfileUserApiObject.cs index 766f4b58..5c059990 100644 --- a/BunqSdk/Model/Generated/Endpoint/BunqMeFundraiserProfileUserApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/BunqMeFundraiserProfileUserApiObject.cs @@ -41,7 +41,7 @@ public class BunqMeFundraiserProfileUserApiObject : BunqModel /// Id of the monetary account on which you want to receive bunq.me payments. /// [JsonProperty(PropertyName = "monetary_account_id")] - public int? MonetaryAccountId { get; set; } + public long? MonetaryAccountId { get; set; } /// /// The color chosen for the bunq.me fundraiser profile in hexadecimal format. /// @@ -76,7 +76,7 @@ public class BunqMeFundraiserProfileUserApiObject : BunqModel /// Id of the user owning the profile. /// [JsonProperty(PropertyName = "owner_user_id")] - public int? OwnerUserId { get; set; } + public long? OwnerUserId { get; set; } /// /// The LabelMonetaryAccount with the public information of the User and the MonetaryAccount that created the /// bunq.me fundraiser profile. @@ -96,7 +96,7 @@ public class BunqMeFundraiserProfileUserApiObject : BunqModel /// /// - public static BunqResponse Get(int bunqMeFundraiserProfileUserId, IDictionary customHeaders = null) + public static BunqResponse Get(long bunqMeFundraiserProfileUserId, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); diff --git a/BunqSdk/Model/Generated/Endpoint/BunqMeFundraiserResultApiObject.cs b/BunqSdk/Model/Generated/Endpoint/BunqMeFundraiserResultApiObject.cs index 4e182250..62758e8c 100644 --- a/BunqSdk/Model/Generated/Endpoint/BunqMeFundraiserResultApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/BunqMeFundraiserResultApiObject.cs @@ -28,7 +28,7 @@ public class BunqMeFundraiserResultApiObject : BunqModel /// The id of the bunq.me. /// [JsonProperty(PropertyName = "id")] - public int? Id { get; set; } + public long? Id { get; set; } /// /// The timestamp when the bunq.me was created. /// @@ -52,7 +52,7 @@ public class BunqMeFundraiserResultApiObject : BunqModel /// /// - public static BunqResponse Get(int bunqMeFundraiserResultId, int? monetaryAccountId= null, IDictionary customHeaders = null) + public static BunqResponse Get(long bunqMeFundraiserResultId, long? monetaryAccountId= null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); diff --git a/BunqSdk/Model/Generated/Endpoint/BunqMeTabApiObject.cs b/BunqSdk/Model/Generated/Endpoint/BunqMeTabApiObject.cs index b6ff7dba..0f846aad 100644 --- a/BunqSdk/Model/Generated/Endpoint/BunqMeTabApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/BunqMeTabApiObject.cs @@ -50,12 +50,12 @@ public class BunqMeTabApiObject : BunqModel /// The ID of the related event if the bunqMeTab made by 'split' functionality. /// [JsonProperty(PropertyName = "event_id")] - public int? EventId { get; set; } + public long? EventId { get; set; } /// /// The id of the created bunq.me. /// [JsonProperty(PropertyName = "id")] - public int? Id { get; set; } + public long? Id { get; set; } /// /// The timestamp when the bunq.me was created. /// @@ -75,7 +75,7 @@ public class BunqMeTabApiObject : BunqModel /// The id of the MonetaryAccount the bunq.me was sent from. /// [JsonProperty(PropertyName = "monetary_account_id")] - public int? MonetaryAccountId { get; set; } + public long? MonetaryAccountId { get; set; } /// /// The type of the bunq.me Tab. Should be BUNQ_ME /// @@ -108,7 +108,7 @@ public class BunqMeTabApiObject : BunqModel /// The bunq.me entry containing the payment information. /// The status of the bunq.me. Ignored in POST requests but can be used for cancelling the bunq.me by setting status as CANCELLED with a PUT request. /// The ID of the related event if the bunqMeTab made by 'split' functionality. - public static BunqResponse Create(BunqMeTabEntryApiObject bunqmeTabEntry, int? monetaryAccountId= null, string status = null, int? eventId = null, IDictionary customHeaders = null) + public static BunqResponse Create(BunqMeTabEntryApiObject bunqmeTabEntry, long? monetaryAccountId= null, string status = null, long? eventId = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -130,7 +130,7 @@ public static BunqResponse Create(BunqMeTabEntryApiObject bunqmeTabEntry, i /// /// /// The status of the bunq.me. Ignored in POST requests but can be used for cancelling the bunq.me by setting status as CANCELLED with a PUT request. - public static BunqResponse Update(int bunqMeTabId, int? monetaryAccountId= null, string status = null, IDictionary customHeaders = null) + public static BunqResponse Update(long bunqMeTabId, long? monetaryAccountId= null, string status = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -149,7 +149,7 @@ public static BunqResponse Update(int bunqMeTabId, int? monetaryAccountId= /// /// - public static BunqResponse> List(int? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) + public static BunqResponse> List(long? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) { if (urlParams == null) urlParams = new Dictionary(); if (customHeaders == null) customHeaders = new Dictionary(); @@ -162,7 +162,7 @@ public static BunqResponse> List(int? monetaryAccountId /// /// - public static BunqResponse Get(int bunqMeTabId, int? monetaryAccountId= null, IDictionary customHeaders = null) + public static BunqResponse Get(long bunqMeTabId, long? monetaryAccountId= null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); diff --git a/BunqSdk/Model/Generated/Endpoint/BunqMeTabResultInquiryApiObject.cs b/BunqSdk/Model/Generated/Endpoint/BunqMeTabResultInquiryApiObject.cs index ab8a7f1b..38c18967 100644 --- a/BunqSdk/Model/Generated/Endpoint/BunqMeTabResultInquiryApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/BunqMeTabResultInquiryApiObject.cs @@ -19,7 +19,7 @@ public class BunqMeTabResultInquiryApiObject : BunqModel /// The Id of the bunq.me tab that this BunqMeTabResultInquiry belongs to. /// [JsonProperty(PropertyName = "bunq_me_tab_id")] - public int? BunqMeTabId { get; set; } + public long? BunqMeTabId { get; set; } /// diff --git a/BunqSdk/Model/Generated/Endpoint/BunqMeTabResultResponseApiObject.cs b/BunqSdk/Model/Generated/Endpoint/BunqMeTabResultResponseApiObject.cs index 09ff2570..33e66cd3 100644 --- a/BunqSdk/Model/Generated/Endpoint/BunqMeTabResultResponseApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/BunqMeTabResultResponseApiObject.cs @@ -33,7 +33,7 @@ public class BunqMeTabResultResponseApiObject : BunqModel /// /// - public static BunqResponse Get(int bunqMeTabResultResponseId, int? monetaryAccountId= null, IDictionary customHeaders = null) + public static BunqResponse Get(long bunqMeTabResultResponseId, long? monetaryAccountId= null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); diff --git a/BunqSdk/Model/Generated/Endpoint/CardApiObject.cs b/BunqSdk/Model/Generated/Endpoint/CardApiObject.cs index 2caa5a30..3e95939a 100644 --- a/BunqSdk/Model/Generated/Endpoint/CardApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/CardApiObject.cs @@ -99,7 +99,7 @@ public class CardApiObject : BunqModel /// not supplied. /// [JsonProperty(PropertyName = "monetary_account_id_fallback")] - public int? MonetaryAccountIdFallback { get; set; } + public long? MonetaryAccountIdFallback { get; set; } /// /// The user's preferred name on the card. /// @@ -119,7 +119,7 @@ public class CardApiObject : BunqModel /// The id of the card. /// [JsonProperty(PropertyName = "id")] - public int? Id { get; set; } + public long? Id { get; set; } /// /// The timestamp of the card's creation. /// @@ -139,17 +139,17 @@ public class CardApiObject : BunqModel /// DEPRECATED. ID of the user who is owner of the card. /// [JsonProperty(PropertyName = "user_id")] - public int? UserId { get; set; } + public long? UserId { get; set; } /// /// ID of the user who is owner of the card. /// [JsonProperty(PropertyName = "user_owner_id")] - public int? UserOwnerId { get; set; } + public long? UserOwnerId { get; set; } /// /// ID of the user who is holder of the card. /// [JsonProperty(PropertyName = "user_holder_id")] - public int? UserHolderId { get; set; } + public long? UserHolderId { get; set; } /// /// The type of the card. Can be MAESTRO, MASTERCARD. /// @@ -269,7 +269,7 @@ public class CardApiObject : BunqModel /// The user's preferred name as it will be on the card. /// The second line of text on the card /// The reason for card cancellation. - public static BunqResponse Update(int cardId, string pinCode = null, string activationCode = null, string status = null, string orderStatus = null, AmountObject cardLimit = null, AmountObject cardLimitAtm = null, List countryPermission = null, List pinCodeAssignment = null, List primaryAccountNumbers = null, int? monetaryAccountIdFallback = null, string preferredNameOnCard = null, string secondLine = null, string cancellationReason = null, IDictionary customHeaders = null) + public static BunqResponse Update(long cardId, string pinCode = null, string activationCode = null, string status = null, string orderStatus = null, AmountObject cardLimit = null, AmountObject cardLimitAtm = null, List countryPermission = null, List pinCodeAssignment = null, List primaryAccountNumbers = null, long? monetaryAccountIdFallback = null, string preferredNameOnCard = null, string secondLine = null, string cancellationReason = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -301,7 +301,7 @@ public static BunqResponse Update(int cardId, string pinCode = nu /// /// Return the details of a specific card. /// - public static BunqResponse Get(int cardId, IDictionary customHeaders = null) + public static BunqResponse Get(long cardId, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); diff --git a/BunqSdk/Model/Generated/Endpoint/CardCreditApiObject.cs b/BunqSdk/Model/Generated/Endpoint/CardCreditApiObject.cs index 1da4bab1..80227b72 100644 --- a/BunqSdk/Model/Generated/Endpoint/CardCreditApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/CardCreditApiObject.cs @@ -86,7 +86,7 @@ public class CardCreditApiObject : BunqModel /// not supplied. /// [JsonProperty(PropertyName = "monetary_account_id_fallback")] - public int? MonetaryAccountIdFallback { get; set; } + public long? MonetaryAccountIdFallback { get; set; } /// /// The order status of the card. Can be NEW_CARD_REQUEST_RECEIVED, CARD_REQUEST_PENDING, SENT_FOR_PRODUCTION, /// ACCEPTED_FOR_PRODUCTION, DELIVERED_TO_CUSTOMER, CARD_UPDATE_REQUESTED, CARD_UPDATE_PENDING, @@ -99,7 +99,7 @@ public class CardCreditApiObject : BunqModel /// The id of the card. /// [JsonProperty(PropertyName = "id")] - public int? Id { get; set; } + public long? Id { get; set; } /// /// The timestamp of the card's creation. /// @@ -119,17 +119,17 @@ public class CardCreditApiObject : BunqModel /// DEPRECATED. ID of the user who is owner of the card. /// [JsonProperty(PropertyName = "user_id")] - public int? UserId { get; set; } + public long? UserId { get; set; } /// /// ID of the user who is owner of the card. /// [JsonProperty(PropertyName = "user_owner_id")] - public int? UserOwnerId { get; set; } + public long? UserOwnerId { get; set; } /// /// ID of the user who is holder of the card. /// [JsonProperty(PropertyName = "user_holder_id")] - public int? UserHolderId { get; set; } + public long? UserHolderId { get; set; } /// /// The sub-type of the card. /// @@ -250,7 +250,7 @@ public class CardCreditApiObject : BunqModel /// Array of Types, PINs, account IDs assigned to the card. /// ID of the MA to be used as fallback for this card if insufficient balance. Fallback account is removed if not supplied. /// The order status of this card. Can be CARD_REQUEST_PENDING or VIRTUAL_DELIVERY. - public static BunqResponse Create(string secondLine, string nameOnCard, string type, string productType, string firstLine = null, string preferredNameOnCard = null, PointerObject alias = null, List pinCodeAssignment = null, int? monetaryAccountIdFallback = null, string orderStatus = null, IDictionary customHeaders = null) + public static BunqResponse Create(string secondLine, string nameOnCard, string type, string productType, string firstLine = null, string preferredNameOnCard = null, PointerObject alias = null, List pinCodeAssignment = null, long? monetaryAccountIdFallback = null, string orderStatus = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); diff --git a/BunqSdk/Model/Generated/Endpoint/CardDebitApiObject.cs b/BunqSdk/Model/Generated/Endpoint/CardDebitApiObject.cs index e5bd14a3..adf808d0 100644 --- a/BunqSdk/Model/Generated/Endpoint/CardDebitApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/CardDebitApiObject.cs @@ -80,7 +80,7 @@ public class CardDebitApiObject : BunqModel /// not supplied. /// [JsonProperty(PropertyName = "monetary_account_id_fallback")] - public int? MonetaryAccountIdFallback { get; set; } + public long? MonetaryAccountIdFallback { get; set; } /// /// The order status of the card. Can be NEW_CARD_REQUEST_RECEIVED, CARD_REQUEST_PENDING, SENT_FOR_PRODUCTION, /// ACCEPTED_FOR_PRODUCTION, DELIVERED_TO_CUSTOMER, CARD_UPDATE_REQUESTED, CARD_UPDATE_PENDING, @@ -93,7 +93,7 @@ public class CardDebitApiObject : BunqModel /// The id of the card. /// [JsonProperty(PropertyName = "id")] - public int? Id { get; set; } + public long? Id { get; set; } /// /// The timestamp of the card's creation. /// @@ -113,17 +113,17 @@ public class CardDebitApiObject : BunqModel /// DEPRECATED. ID of the user who is owner of the card. /// [JsonProperty(PropertyName = "user_id")] - public int? UserId { get; set; } + public long? UserId { get; set; } /// /// ID of the user who is owner of the card. /// [JsonProperty(PropertyName = "user_owner_id")] - public int? UserOwnerId { get; set; } + public long? UserOwnerId { get; set; } /// /// ID of the user who is holder of the card. /// [JsonProperty(PropertyName = "user_holder_id")] - public int? UserHolderId { get; set; } + public long? UserHolderId { get; set; } /// /// The sub-type of the card. /// @@ -248,7 +248,7 @@ public class CardDebitApiObject : BunqModel /// Array of Types, PINs, account IDs assigned to the card. /// ID of the MA to be used as fallback for this card if insufficient balance. Fallback account is removed if not supplied. /// The order status of this card. Can be CARD_REQUEST_PENDING or VIRTUAL_DELIVERY. - public static BunqResponse Create(string secondLine, string nameOnCard, string type, string productType, string preferredNameOnCard = null, PointerObject alias = null, List pinCodeAssignment = null, int? monetaryAccountIdFallback = null, string orderStatus = null, IDictionary customHeaders = null) + public static BunqResponse Create(string secondLine, string nameOnCard, string type, string productType, string preferredNameOnCard = null, PointerObject alias = null, List pinCodeAssignment = null, long? monetaryAccountIdFallback = null, string orderStatus = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); diff --git a/BunqSdk/Model/Generated/Endpoint/CardGeneratedCvc2ApiObject.cs b/BunqSdk/Model/Generated/Endpoint/CardGeneratedCvc2ApiObject.cs index c4a9e2e6..839763aa 100644 --- a/BunqSdk/Model/Generated/Endpoint/CardGeneratedCvc2ApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/CardGeneratedCvc2ApiObject.cs @@ -41,7 +41,7 @@ public class CardGeneratedCvc2ApiObject : BunqModel /// The id of the cvc code. /// [JsonProperty(PropertyName = "id")] - public int? Id { get; set; } + public long? Id { get; set; } /// /// The timestamp of the cvc code's creation. /// @@ -72,7 +72,7 @@ public class CardGeneratedCvc2ApiObject : BunqModel /// Generate a new CVC2 code for a card. /// /// The type of generated cvc2. Can be STATIC or GENERATED. - public static BunqResponse Create(int cardId, string type = null, IDictionary customHeaders = null) + public static BunqResponse Create(long cardId, string type = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -92,7 +92,7 @@ public static BunqResponse Create(int cardId, string type = null, IDictiona /// /// Get the details for a specific generated CVC2 code. /// - public static BunqResponse Get(int cardId, int cardGeneratedCvc2Id, IDictionary customHeaders = null) + public static BunqResponse Get(long cardId, long cardGeneratedCvc2Id, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -105,7 +105,7 @@ public static BunqResponse Get(int cardId, int cardG /// /// /// The type of generated cvc2. Can be STATIC or GENERATED. - public static BunqResponse Update(int cardId, int cardGeneratedCvc2Id, string type = null, IDictionary customHeaders = null) + public static BunqResponse Update(long cardId, long cardGeneratedCvc2Id, string type = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -125,7 +125,7 @@ public static BunqResponse Update(int cardId, int cardGeneratedCvc2Id, stri /// /// Get all generated CVC2 codes for a card. /// - public static BunqResponse> List(int cardId, IDictionary urlParams = null, IDictionary customHeaders = null) + public static BunqResponse> List(long cardId, IDictionary urlParams = null, IDictionary customHeaders = null) { if (urlParams == null) urlParams = new Dictionary(); if (customHeaders == null) customHeaders = new Dictionary(); diff --git a/BunqSdk/Model/Generated/Endpoint/CardReplaceApiObject.cs b/BunqSdk/Model/Generated/Endpoint/CardReplaceApiObject.cs index 06bbd1c2..7ca4ae51 100644 --- a/BunqSdk/Model/Generated/Endpoint/CardReplaceApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/CardReplaceApiObject.cs @@ -56,7 +56,7 @@ public class CardReplaceApiObject : BunqModel /// The id of the new card. /// [JsonProperty(PropertyName = "id")] - public int? Id { get; set; } + public long? Id { get; set; } /// /// Request a card replacement. @@ -65,7 +65,7 @@ public class CardReplaceApiObject : BunqModel /// The user's preferred name that can be put on the card. /// Array of Types, PINs, account IDs assigned to the card. /// The second line on the card. - public static BunqResponse Create(int cardId, string nameOnCard = null, string preferredNameOnCard = null, List pinCodeAssignment = null, string secondLine = null, IDictionary customHeaders = null) + public static BunqResponse Create(long cardId, string nameOnCard = null, string preferredNameOnCard = null, List pinCodeAssignment = null, string secondLine = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); diff --git a/BunqSdk/Model/Generated/Endpoint/CardReplacementApiObject.cs b/BunqSdk/Model/Generated/Endpoint/CardReplacementApiObject.cs index b2f4dc01..ef1f9302 100644 --- a/BunqSdk/Model/Generated/Endpoint/CardReplacementApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/CardReplacementApiObject.cs @@ -37,12 +37,12 @@ public class CardReplacementApiObject : BunqModel /// The original card that belongs to the CardReplacement. /// [JsonProperty(PropertyName = "card_id")] - public int? CardId { get; set; } + public long? CardId { get; set; } /// /// The new card that replaces the original card in the CardReplacement. /// [JsonProperty(PropertyName = "card_new_id")] - public int? CardNewId { get; set; } + public long? CardNewId { get; set; } /// diff --git a/BunqSdk/Model/Generated/Endpoint/CertificatePinnedApiObject.cs b/BunqSdk/Model/Generated/Endpoint/CertificatePinnedApiObject.cs index fbafb3b2..6417398c 100644 --- a/BunqSdk/Model/Generated/Endpoint/CertificatePinnedApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/CertificatePinnedApiObject.cs @@ -43,13 +43,13 @@ public class CertificatePinnedApiObject : BunqModel /// The id generated for the pinned certificate chain. /// [JsonProperty(PropertyName = "id")] - public int? Id { get; set; } + public long? Id { get; set; } /// /// Pin the certificate chain. /// /// The certificate chain in .PEM format. - public static BunqResponse Create(List certificateChain, IDictionary customHeaders = null) + public static BunqResponse Create(List certificateChain, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -69,7 +69,7 @@ public static BunqResponse Create(List certificateChain, /// /// Remove the pinned certificate chain with the specific ID. /// - public static BunqResponse Delete(int certificatePinnedId, IDictionary customHeaders = null) + public static BunqResponse Delete(long certificatePinnedId, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -96,7 +96,7 @@ public static BunqResponse> List( IDictionary /// Get the pinned certificate chain with the specified ID. /// - public static BunqResponse Get(int certificatePinnedId, IDictionary customHeaders = null) + public static BunqResponse Get(long certificatePinnedId, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); diff --git a/BunqSdk/Model/Generated/Endpoint/CoOwnerInviteResponseApiObject.cs b/BunqSdk/Model/Generated/Endpoint/CoOwnerInviteResponseApiObject.cs index 6387f00d..9eb65462 100644 --- a/BunqSdk/Model/Generated/Endpoint/CoOwnerInviteResponseApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/CoOwnerInviteResponseApiObject.cs @@ -36,7 +36,7 @@ public class CoOwnerInviteResponseApiObject : BunqModel /// The ID of the monetaryAccount /// [JsonProperty(PropertyName = "monetary_account_id")] - public int? MonetaryAccountId { get; set; } + public long? MonetaryAccountId { get; set; } /// /// The extension type of the monetaryAccount /// diff --git a/BunqSdk/Model/Generated/Endpoint/CompanyApiObject.cs b/BunqSdk/Model/Generated/Endpoint/CompanyApiObject.cs index 095d0131..82cfc643 100644 --- a/BunqSdk/Model/Generated/Endpoint/CompanyApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/CompanyApiObject.cs @@ -123,7 +123,7 @@ public class CompanyApiObject : BunqModel /// DEPRECATED All the vat numbers of the company /// All the vat numbers of the company /// The type of signup track the user is following. - public static BunqResponse Create(string name, AddressObject addressMain, AddressObject addressPostal, string country, string legalForm, string subscriptionType, List ubo = null, string chamberOfCommerceNumber = null, string avatarUuid = null, CompanyVatNumberObject vatNumber = null, List vatNumbers = null, string signupTrackType = null, IDictionary customHeaders = null) + public static BunqResponse Create(string name, AddressObject addressMain, AddressObject addressPostal, string country, string legalForm, string subscriptionType, List ubo = null, string chamberOfCommerceNumber = null, string avatarUuid = null, CompanyVatNumberObject vatNumber = null, List vatNumbers = null, string signupTrackType = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -153,7 +153,7 @@ public static BunqResponse Create(string name, AddressObject addressMain, A /// /// - public static BunqResponse Get(int companyId, IDictionary customHeaders = null) + public static BunqResponse Get(long companyId, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -179,7 +179,7 @@ public static BunqResponse> List( IDictionary /// /// The public UUID of the company's avatar. - public static BunqResponse Update(int companyId, string avatarUuid = null, IDictionary customHeaders = null) + public static BunqResponse Update(long companyId, string avatarUuid = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); diff --git a/BunqSdk/Model/Generated/Endpoint/CompanyEmployeeCardApiObject.cs b/BunqSdk/Model/Generated/Endpoint/CompanyEmployeeCardApiObject.cs index 683e5216..d266b473 100644 --- a/BunqSdk/Model/Generated/Endpoint/CompanyEmployeeCardApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/CompanyEmployeeCardApiObject.cs @@ -83,7 +83,7 @@ public class CompanyEmployeeCardApiObject : BunqModel /// The number of transactions that still need a receipt. /// [JsonProperty(PropertyName = "number_of_company_employee_card_receipt_pending")] - public int? NumberOfCompanyEmployeeCardReceiptPending { get; set; } + public long? NumberOfCompanyEmployeeCardReceiptPending { get; set; } /// /// The company employee's monthly cumulative card limit. /// diff --git a/BunqSdk/Model/Generated/Endpoint/CompanyEmployeeCardLimitApiObject.cs b/BunqSdk/Model/Generated/Endpoint/CompanyEmployeeCardLimitApiObject.cs index 1d872aa7..b667d243 100644 --- a/BunqSdk/Model/Generated/Endpoint/CompanyEmployeeCardLimitApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/CompanyEmployeeCardLimitApiObject.cs @@ -25,12 +25,12 @@ public class CompanyEmployeeCardLimitApiObject : BunqModel /// Company item id. /// [JsonProperty(PropertyName = "user_company_id")] - public int? UserCompanyId { get; set; } + public long? UserCompanyId { get; set; } /// /// Company employee item id. /// [JsonProperty(PropertyName = "user_employee_id")] - public int? UserEmployeeId { get; set; } + public long? UserEmployeeId { get; set; } /// /// The monthly spend for this employee on the card. /// diff --git a/BunqSdk/Model/Generated/Endpoint/CompanyEmployeeSettingAdyenCardTransactionApiObject.cs b/BunqSdk/Model/Generated/Endpoint/CompanyEmployeeSettingAdyenCardTransactionApiObject.cs index a25a0a72..a326cbc8 100644 --- a/BunqSdk/Model/Generated/Endpoint/CompanyEmployeeSettingAdyenCardTransactionApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/CompanyEmployeeSettingAdyenCardTransactionApiObject.cs @@ -46,11 +46,11 @@ public class CompanyEmployeeSettingAdyenCardTransactionApiObject : BunqModel /// The ID of the monetary account where Tap to Pay transactions should be paid out to. /// [JsonProperty(PropertyName = "monetary_account_payout_id")] - public int? MonetaryAccountPayoutId { get; set; } + public long? MonetaryAccountPayoutId { get; set; } /// /// - public static BunqResponse Get(int companyEmployeeSettingAdyenCardTransactionId, IDictionary customHeaders = null) + public static BunqResponse Get(long companyEmployeeSettingAdyenCardTransactionId, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); diff --git a/BunqSdk/Model/Generated/Endpoint/CurrencyCloudBeneficiaryApiObject.cs b/BunqSdk/Model/Generated/Endpoint/CurrencyCloudBeneficiaryApiObject.cs index 620c8f38..798bd2f3 100644 --- a/BunqSdk/Model/Generated/Endpoint/CurrencyCloudBeneficiaryApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/CurrencyCloudBeneficiaryApiObject.cs @@ -71,7 +71,7 @@ public class CurrencyCloudBeneficiaryApiObject : BunqModel /// The id of the profile. /// [JsonProperty(PropertyName = "id")] - public int? Id { get; set; } + public long? Id { get; set; } /// /// The timestamp of the beneficiaries creation. /// @@ -101,7 +101,7 @@ public class CurrencyCloudBeneficiaryApiObject : BunqModel /// The payment type this requirement is for. /// The legal entity type of the beneficiary. /// All fields that were required by CurrencyCloud. Obtained through the CurrencyCloudBeneficiaryRequirement listing. - public static BunqResponse Create(string name, string country, string currency, string paymentType, string legalEntityType, List allField, IDictionary customHeaders = null) + public static BunqResponse Create(string name, string country, string currency, string paymentType, string legalEntityType, List allField, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -125,7 +125,7 @@ public static BunqResponse Create(string name, string country, string curre /// /// - public static BunqResponse Get(int currencyCloudBeneficiaryId, IDictionary customHeaders = null) + public static BunqResponse Get(long currencyCloudBeneficiaryId, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); diff --git a/BunqSdk/Model/Generated/Endpoint/CurrencyCloudPaymentQuoteApiObject.cs b/BunqSdk/Model/Generated/Endpoint/CurrencyCloudPaymentQuoteApiObject.cs index 6d6377d3..66ee1219 100644 --- a/BunqSdk/Model/Generated/Endpoint/CurrencyCloudPaymentQuoteApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/CurrencyCloudPaymentQuoteApiObject.cs @@ -40,7 +40,7 @@ public class CurrencyCloudPaymentQuoteApiObject : BunqModel /// /// /// The points we want to know the fees for. - public static BunqResponse Create(List pointers, int? monetaryAccountId= null, IDictionary customHeaders = null) + public static BunqResponse Create(List pointers, long? monetaryAccountId= null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); diff --git a/BunqSdk/Model/Generated/Endpoint/CurrencyConversionApiObject.cs b/BunqSdk/Model/Generated/Endpoint/CurrencyConversionApiObject.cs index e3442bd7..9134bd75 100644 --- a/BunqSdk/Model/Generated/Endpoint/CurrencyConversionApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/CurrencyConversionApiObject.cs @@ -30,7 +30,7 @@ public class CurrencyConversionApiObject : BunqModel /// The id of the conversion. /// [JsonProperty(PropertyName = "id")] - public int? Id { get; set; } + public long? Id { get; set; } /// /// The timestamp of the conversion's creation. /// @@ -99,7 +99,7 @@ public class CurrencyConversionApiObject : BunqModel /// /// - public static BunqResponse> List(int? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) + public static BunqResponse> List(long? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) { if (urlParams == null) urlParams = new Dictionary(); if (customHeaders == null) customHeaders = new Dictionary(); @@ -112,7 +112,7 @@ public static BunqResponse> List(int? monetary /// /// - public static BunqResponse Get(int currencyConversionId, int? monetaryAccountId= null, IDictionary customHeaders = null) + public static BunqResponse Get(long currencyConversionId, long? monetaryAccountId= null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); diff --git a/BunqSdk/Model/Generated/Endpoint/CurrencyConversionQuoteApiObject.cs b/BunqSdk/Model/Generated/Endpoint/CurrencyConversionQuoteApiObject.cs index ffc4c5f4..393b35d9 100644 --- a/BunqSdk/Model/Generated/Endpoint/CurrencyConversionQuoteApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/CurrencyConversionQuoteApiObject.cs @@ -72,7 +72,7 @@ public class CurrencyConversionQuoteApiObject : BunqModel /// The id of the quote. /// [JsonProperty(PropertyName = "id")] - public int? Id { get; set; } + public long? Id { get; set; } /// /// The timestamp of the quote's creation. /// @@ -112,7 +112,7 @@ public class CurrencyConversionQuoteApiObject : BunqModel /// The type of the quote, SELL or BUY. /// The Alias of the party we are transferring the money to. /// The status of the quote. - public static BunqResponse Create(AmountObject amount, string currencySource, string currencyTarget, string orderType, PointerObject counterpartyAlias, int? monetaryAccountId= null, string status = null, IDictionary customHeaders = null) + public static BunqResponse Create(AmountObject amount, string currencySource, string currencyTarget, string orderType, PointerObject counterpartyAlias, long? monetaryAccountId= null, string status = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -136,7 +136,7 @@ public static BunqResponse Create(AmountObject amount, string currencySourc /// /// - public static BunqResponse Get(int currencyConversionQuoteId, int? monetaryAccountId= null, IDictionary customHeaders = null) + public static BunqResponse Get(long currencyConversionQuoteId, long? monetaryAccountId= null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -149,7 +149,7 @@ public static BunqResponse Get(int currencyCon /// /// /// The status of the quote. - public static BunqResponse Update(int currencyConversionQuoteId, int? monetaryAccountId= null, string status = null, IDictionary customHeaders = null) + public static BunqResponse Update(long currencyConversionQuoteId, long? monetaryAccountId= null, string status = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); diff --git a/BunqSdk/Model/Generated/Endpoint/CustomerApiObject.cs b/BunqSdk/Model/Generated/Endpoint/CustomerApiObject.cs index d41459a0..5ad0cba7 100644 --- a/BunqSdk/Model/Generated/Endpoint/CustomerApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/CustomerApiObject.cs @@ -30,7 +30,7 @@ public class CustomerApiObject : BunqModel /// The id of the customer. /// [JsonProperty(PropertyName = "id")] - public int? Id { get; set; } + public long? Id { get; set; } /// /// The timestamp of the customer object's creation. /// diff --git a/BunqSdk/Model/Generated/Endpoint/CustomerLimitApiObject.cs b/BunqSdk/Model/Generated/Endpoint/CustomerLimitApiObject.cs index 6d7a67ef..78e4bb6f 100644 --- a/BunqSdk/Model/Generated/Endpoint/CustomerLimitApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/CustomerLimitApiObject.cs @@ -29,37 +29,37 @@ public class CustomerLimitApiObject : BunqModel /// The limit of monetary accounts. /// [JsonProperty(PropertyName = "limit_monetary_account")] - public int? LimitMonetaryAccount { get; set; } + public long? LimitMonetaryAccount { get; set; } /// /// The amount of additional monetary accounts you can create. /// [JsonProperty(PropertyName = "limit_monetary_account_remaining")] - public int? LimitMonetaryAccountRemaining { get; set; } + public long? LimitMonetaryAccountRemaining { get; set; } /// /// The limit of Maestro cards. /// [JsonProperty(PropertyName = "limit_card_debit_maestro")] - public int? LimitCardDebitMaestro { get; set; } + public long? LimitCardDebitMaestro { get; set; } /// /// The limit of MasterCard cards. /// [JsonProperty(PropertyName = "limit_card_debit_mastercard")] - public int? LimitCardDebitMastercard { get; set; } + public long? LimitCardDebitMastercard { get; set; } /// /// DEPRECTATED: The limit of wildcards, e.g. Maestro or MasterCard cards. /// [JsonProperty(PropertyName = "limit_card_debit_wildcard")] - public int? LimitCardDebitWildcard { get; set; } + public long? LimitCardDebitWildcard { get; set; } /// /// The limit of wildcards, e.g. Maestro or MasterCard cards. /// [JsonProperty(PropertyName = "limit_card_wildcard")] - public int? LimitCardWildcard { get; set; } + public long? LimitCardWildcard { get; set; } /// /// The limit of free replacement cards. /// [JsonProperty(PropertyName = "limit_card_replacement")] - public int? LimitCardReplacement { get; set; } + public long? LimitCardReplacement { get; set; } /// /// The maximum amount a user is allowed to spend in a month. /// diff --git a/BunqSdk/Model/Generated/Endpoint/DeviceApiObject.cs b/BunqSdk/Model/Generated/Endpoint/DeviceApiObject.cs index bff5e888..37579d39 100644 --- a/BunqSdk/Model/Generated/Endpoint/DeviceApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/DeviceApiObject.cs @@ -39,7 +39,7 @@ public class DeviceApiObject : BunqModel, IAnchorObjectInterface /// /// Get a single Device. A Device is either a DevicePhone or a DeviceServer. /// - public static BunqResponse Get(int deviceId, IDictionary customHeaders = null) + public static BunqResponse Get(long deviceId, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); diff --git a/BunqSdk/Model/Generated/Endpoint/DeviceServerApiObject.cs b/BunqSdk/Model/Generated/Endpoint/DeviceServerApiObject.cs index 1e8a534a..f4f200ad 100644 --- a/BunqSdk/Model/Generated/Endpoint/DeviceServerApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/DeviceServerApiObject.cs @@ -54,7 +54,7 @@ public class DeviceServerApiObject : BunqModel /// The id of the DeviceServer as created on the server. /// [JsonProperty(PropertyName = "id")] - public int? Id { get; set; } + public long? Id { get; set; } /// /// The timestamp of the DeviceServer's creation. /// @@ -87,7 +87,7 @@ public class DeviceServerApiObject : BunqModel /// The description of the DeviceServer. This is only for your own reference when reading the DeviceServer again. /// The API key. You can request an API key in the bunq app. /// An array of IPs (v4 or v6) this DeviceServer will be able to do calls from. These will be linked to the API key. - public static BunqResponse Create(string description, string secret, List permittedIps = null, IDictionary customHeaders = null) + public static BunqResponse Create(string description, string secret, List permittedIps = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -109,7 +109,7 @@ public static BunqResponse Create(string description, string secret, List /// Get one of your DeviceServers. /// - public static BunqResponse Get(int deviceServerId, IDictionary customHeaders = null) + public static BunqResponse Get(long deviceServerId, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); diff --git a/BunqSdk/Model/Generated/Endpoint/DraftPaymentApiObject.cs b/BunqSdk/Model/Generated/Endpoint/DraftPaymentApiObject.cs index 387c47b4..02151d62 100644 --- a/BunqSdk/Model/Generated/Endpoint/DraftPaymentApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/DraftPaymentApiObject.cs @@ -32,6 +32,7 @@ public class DraftPaymentApiObject : BunqModel public const string FIELD_PREVIOUS_UPDATED_TIMESTAMP = "previous_updated_timestamp"; public const string FIELD_NUMBER_OF_REQUIRED_ACCEPTS = "number_of_required_accepts"; public const string FIELD_SCHEDULE = "schedule"; + public const string FIELD_PAYMENT_BATCH_EXECUTION_TYPE = "payment_batch_execution_type"; /// /// Object type. @@ -59,22 +60,27 @@ public class DraftPaymentApiObject : BunqModel /// is valid. /// [JsonProperty(PropertyName = "number_of_required_accepts")] - public int? NumberOfRequiredAccepts { get; set; } + public long? NumberOfRequiredAccepts { get; set; } /// /// The schedule details. /// [JsonProperty(PropertyName = "schedule")] public ScheduleApiObject Schedule { get; set; } /// + /// The execution type that will be used when converting this draft payment to a payment batch. + /// + [JsonProperty(PropertyName = "payment_batch_execution_type")] + public string PaymentBatchExecutionType { get; set; } + /// /// The id of the created DrafPayment. /// [JsonProperty(PropertyName = "id")] - public int? Id { get; set; } + public long? Id { get; set; } /// /// The id of the MonetaryAccount the DraftPayment applies to. /// [JsonProperty(PropertyName = "monetary_account_id")] - public int? MonetaryAccountId { get; set; } + public long? MonetaryAccountId { get; set; } /// /// The label of the User who created the DraftPayment. /// @@ -109,7 +115,8 @@ public class DraftPaymentApiObject : BunqModel /// The status of the DraftPayment. /// The last updated_timestamp that you received for this DraftPayment. This needs to be provided to prevent race conditions. /// The schedule details when creating or updating a scheduled payment. - public static BunqResponse Create(List entries, int? numberOfRequiredAccepts, int? monetaryAccountId= null, string status = null, string previousUpdatedTimestamp = null, ScheduleApiObject schedule = null, IDictionary customHeaders = null) + /// The execution type that will be used when converting this draft payment to a payment batch. + public static BunqResponse Create(List entries, long? numberOfRequiredAccepts, long? monetaryAccountId= null, string status = null, string previousUpdatedTimestamp = null, ScheduleApiObject schedule = null, string paymentBatchExecutionType = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -122,6 +129,7 @@ public static BunqResponse Create(List entries, in {FIELD_PREVIOUS_UPDATED_TIMESTAMP, previousUpdatedTimestamp}, {FIELD_NUMBER_OF_REQUIRED_ACCEPTS, numberOfRequiredAccepts}, {FIELD_SCHEDULE, schedule}, + {FIELD_PAYMENT_BATCH_EXECUTION_TYPE, paymentBatchExecutionType}, }; var requestBytes = Encoding.UTF8.GetBytes(BunqJsonConvert.SerializeObject(requestMap)); @@ -136,7 +144,8 @@ public static BunqResponse Create(List entries, in /// The status of the DraftPayment. /// The last updated_timestamp that you received for this DraftPayment. This needs to be provided to prevent race conditions. /// The schedule details when creating or updating a scheduled payment. - public static BunqResponse Update(int draftPaymentId, int? monetaryAccountId= null, string status = null, string previousUpdatedTimestamp = null, ScheduleApiObject schedule = null, IDictionary customHeaders = null) + /// The execution type that will be used when converting this draft payment to a payment batch. + public static BunqResponse Update(long draftPaymentId, long? monetaryAccountId= null, string status = null, string previousUpdatedTimestamp = null, ScheduleApiObject schedule = null, string paymentBatchExecutionType = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -147,6 +156,7 @@ public static BunqResponse Update(int draftPaymentId, int? monetaryAccountI {FIELD_STATUS, status}, {FIELD_PREVIOUS_UPDATED_TIMESTAMP, previousUpdatedTimestamp}, {FIELD_SCHEDULE, schedule}, + {FIELD_PAYMENT_BATCH_EXECUTION_TYPE, paymentBatchExecutionType}, }; var requestBytes = Encoding.UTF8.GetBytes(BunqJsonConvert.SerializeObject(requestMap)); @@ -158,7 +168,7 @@ public static BunqResponse Update(int draftPaymentId, int? monetaryAccountI /// /// Get a listing of all DraftPayments from a given MonetaryAccount. /// - public static BunqResponse> List(int? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) + public static BunqResponse> List(long? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) { if (urlParams == null) urlParams = new Dictionary(); if (customHeaders == null) customHeaders = new Dictionary(); @@ -172,7 +182,7 @@ public static BunqResponse> List(int? monetaryAccoun /// /// Get a specific DraftPayment. /// - public static BunqResponse Get(int draftPaymentId, int? monetaryAccountId= null, IDictionary customHeaders = null) + public static BunqResponse Get(long draftPaymentId, long? monetaryAccountId= null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -237,6 +247,11 @@ public override bool IsAllFieldNull() return false; } + if (this.PaymentBatchExecutionType != null) + { + return false; + } + return true; } diff --git a/BunqSdk/Model/Generated/Endpoint/EventApiObject.cs b/BunqSdk/Model/Generated/Endpoint/EventApiObject.cs index 1fa86399..a54c19d6 100644 --- a/BunqSdk/Model/Generated/Endpoint/EventApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/EventApiObject.cs @@ -32,7 +32,7 @@ public class EventApiObject : BunqModel /// The id of the event. /// [JsonProperty(PropertyName = "id")] - public int? Id { get; set; } + public long? Id { get; set; } /// /// The timestamp of the event's creation. /// @@ -88,7 +88,7 @@ public class EventApiObject : BunqModel /// /// Get a specific event for a given user. /// - public static BunqResponse Get(int eventId, IDictionary customHeaders = null) + public static BunqResponse Get(long eventId, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); diff --git a/BunqSdk/Model/Generated/Endpoint/ExportAnnualOverviewApiObject.cs b/BunqSdk/Model/Generated/Endpoint/ExportAnnualOverviewApiObject.cs index 540cb830..c099e009 100644 --- a/BunqSdk/Model/Generated/Endpoint/ExportAnnualOverviewApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/ExportAnnualOverviewApiObject.cs @@ -38,12 +38,12 @@ public class ExportAnnualOverviewApiObject : BunqModel /// The year for which the overview is. /// [JsonProperty(PropertyName = "year")] - public int? Year { get; set; } + public long? Year { get; set; } /// /// The id of the annual overview as created on the server. /// [JsonProperty(PropertyName = "id")] - public int? Id { get; set; } + public long? Id { get; set; } /// /// The timestamp of the annual overview 's creation. /// @@ -69,7 +69,7 @@ public class ExportAnnualOverviewApiObject : BunqModel /// Create a new annual overview for a specific year. An overview can be generated only for a past year. /// /// The year for which the overview is. - public static BunqResponse Create(int? year, IDictionary customHeaders = null) + public static BunqResponse Create(long? year, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -89,7 +89,7 @@ public static BunqResponse Create(int? year, IDictionary cu /// /// Get an annual overview for a user by its id. /// - public static BunqResponse Get(int exportAnnualOverviewId, IDictionary customHeaders = null) + public static BunqResponse Get(long exportAnnualOverviewId, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -101,7 +101,7 @@ public static BunqResponse Get(int exportAnnualOv /// /// - public static BunqResponse Delete(int exportAnnualOverviewId, IDictionary customHeaders = null) + public static BunqResponse Delete(long exportAnnualOverviewId, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); diff --git a/BunqSdk/Model/Generated/Endpoint/ExportAnnualOverviewContentApiObject.cs b/BunqSdk/Model/Generated/Endpoint/ExportAnnualOverviewContentApiObject.cs index f168e4d7..6f1d08a9 100644 --- a/BunqSdk/Model/Generated/Endpoint/ExportAnnualOverviewContentApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/ExportAnnualOverviewContentApiObject.cs @@ -28,7 +28,7 @@ public class ExportAnnualOverviewContentApiObject : BunqModel /// /// Used to retrieve the raw content of an annual overview. /// - public static BunqResponse List(int exportAnnualOverviewId, IDictionary customHeaders = null) + public static BunqResponse List(long exportAnnualOverviewId, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); diff --git a/BunqSdk/Model/Generated/Endpoint/ExportRibApiObject.cs b/BunqSdk/Model/Generated/Endpoint/ExportRibApiObject.cs index 12077478..15111ab8 100644 --- a/BunqSdk/Model/Generated/Endpoint/ExportRibApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/ExportRibApiObject.cs @@ -31,7 +31,7 @@ public class ExportRibApiObject : BunqModel /// The id of the rib as created on the server. /// [JsonProperty(PropertyName = "id")] - public int? Id { get; set; } + public long? Id { get; set; } /// /// The timestamp of the RIB's creation. /// @@ -46,7 +46,7 @@ public class ExportRibApiObject : BunqModel /// /// Create a new RIB. /// - public static BunqResponse Create(int? monetaryAccountId= null, IDictionary customHeaders = null) + public static BunqResponse Create(long? monetaryAccountId= null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -65,7 +65,7 @@ public static BunqResponse Create(int? monetaryAccountId= null, IDictionary /// /// Get a RIB for a monetary account by its id. /// - public static BunqResponse Get(int exportRibId, int? monetaryAccountId= null, IDictionary customHeaders = null) + public static BunqResponse Get(long exportRibId, long? monetaryAccountId= null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -77,7 +77,7 @@ public static BunqResponse Get(int exportRibId, int? monetar /// /// - public static BunqResponse Delete(int exportRibId, int? monetaryAccountId= null, IDictionary customHeaders = null) + public static BunqResponse Delete(long exportRibId, long? monetaryAccountId= null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -90,7 +90,7 @@ public static BunqResponse Delete(int exportRibId, int? monetaryAccountI /// /// List all the RIBs for a monetary account. /// - public static BunqResponse> List(int? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) + public static BunqResponse> List(long? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) { if (urlParams == null) urlParams = new Dictionary(); if (customHeaders == null) customHeaders = new Dictionary(); diff --git a/BunqSdk/Model/Generated/Endpoint/ExportRibContentApiObject.cs b/BunqSdk/Model/Generated/Endpoint/ExportRibContentApiObject.cs index e79a862b..edd00630 100644 --- a/BunqSdk/Model/Generated/Endpoint/ExportRibContentApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/ExportRibContentApiObject.cs @@ -27,7 +27,7 @@ public class ExportRibContentApiObject : BunqModel /// /// Used to retrieve the raw content of an RIB. /// - public static BunqResponse List(int exportRibId, int? monetaryAccountId= null, IDictionary customHeaders = null) + public static BunqResponse List(long exportRibId, long? monetaryAccountId= null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); diff --git a/BunqSdk/Model/Generated/Endpoint/ExportStatementApiObject.cs b/BunqSdk/Model/Generated/Endpoint/ExportStatementApiObject.cs index 956f3928..161d2154 100644 --- a/BunqSdk/Model/Generated/Endpoint/ExportStatementApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/ExportStatementApiObject.cs @@ -67,7 +67,7 @@ public class ExportStatementApiObject : BunqModel /// The id of the customer statement model. /// [JsonProperty(PropertyName = "id")] - public int? Id { get; set; } + public long? Id { get; set; } /// /// The timestamp of the statement model's creation. /// @@ -87,7 +87,7 @@ public class ExportStatementApiObject : BunqModel /// MT940 Statement number. Unique per monetary account. /// [JsonProperty(PropertyName = "statement_number")] - public int? StatementNumber { get; set; } + public long? StatementNumber { get; set; } /// /// The monetary account for which this statement was created. /// @@ -101,7 +101,7 @@ public class ExportStatementApiObject : BunqModel /// The end date for making statements. /// Required for CSV exports. The regional format of the statement, can be UK_US (comma-separated) or EUROPEAN (semicolon-separated). /// Only for PDF exports. Includes attachments to mutations in the export, such as scanned receipts. - public static BunqResponse Create(string statementFormat, string dateStart, string dateEnd, int? monetaryAccountId= null, string regionalFormat = null, bool? includeAttachment = null, IDictionary customHeaders = null) + public static BunqResponse Create(string statementFormat, string dateStart, string dateEnd, long? monetaryAccountId= null, string regionalFormat = null, bool? includeAttachment = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -124,7 +124,7 @@ public static BunqResponse Create(string statementFormat, string dateStart, /// /// - public static BunqResponse Get(int exportStatementId, int? monetaryAccountId= null, IDictionary customHeaders = null) + public static BunqResponse Get(long exportStatementId, long? monetaryAccountId= null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -136,7 +136,7 @@ public static BunqResponse Get(int exportStatementId, /// /// - public static BunqResponse> List(int? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) + public static BunqResponse> List(long? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) { if (urlParams == null) urlParams = new Dictionary(); if (customHeaders == null) customHeaders = new Dictionary(); @@ -149,7 +149,7 @@ public static BunqResponse> List(int? monetaryAcc /// /// - public static BunqResponse Delete(int exportStatementId, int? monetaryAccountId= null, IDictionary customHeaders = null) + public static BunqResponse Delete(long exportStatementId, long? monetaryAccountId= null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); diff --git a/BunqSdk/Model/Generated/Endpoint/ExportStatementCardApiObject.cs b/BunqSdk/Model/Generated/Endpoint/ExportStatementCardApiObject.cs index 940faab2..e7bb3670 100644 --- a/BunqSdk/Model/Generated/Endpoint/ExportStatementCardApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/ExportStatementCardApiObject.cs @@ -30,7 +30,7 @@ public class ExportStatementCardApiObject : BunqModel /// The id of the customer statement model. /// [JsonProperty(PropertyName = "id")] - public int? Id { get; set; } + public long? Id { get; set; } /// /// The timestamp of the statement model's creation. /// @@ -65,11 +65,11 @@ public class ExportStatementCardApiObject : BunqModel /// The card for which this statement was created. /// [JsonProperty(PropertyName = "card_id")] - public int? CardId { get; set; } + public long? CardId { get; set; } /// /// - public static BunqResponse Get(int cardId, int exportStatementCardId, IDictionary customHeaders = null) + public static BunqResponse Get(long cardId, long exportStatementCardId, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -81,7 +81,7 @@ public static BunqResponse Get(int cardId, int exp /// /// - public static BunqResponse> List(int cardId, IDictionary urlParams = null, IDictionary customHeaders = null) + public static BunqResponse> List(long cardId, IDictionary urlParams = null, IDictionary customHeaders = null) { if (urlParams == null) urlParams = new Dictionary(); if (customHeaders == null) customHeaders = new Dictionary(); diff --git a/BunqSdk/Model/Generated/Endpoint/ExportStatementCardContentApiObject.cs b/BunqSdk/Model/Generated/Endpoint/ExportStatementCardContentApiObject.cs index c94f9345..3530c766 100644 --- a/BunqSdk/Model/Generated/Endpoint/ExportStatementCardContentApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/ExportStatementCardContentApiObject.cs @@ -28,7 +28,7 @@ public class ExportStatementCardContentApiObject : BunqModel /// /// - public static BunqResponse List(int cardId, int exportStatementCardId, IDictionary customHeaders = null) + public static BunqResponse List(long cardId, long exportStatementCardId, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); diff --git a/BunqSdk/Model/Generated/Endpoint/ExportStatementCardCsvApiObject.cs b/BunqSdk/Model/Generated/Endpoint/ExportStatementCardCsvApiObject.cs index 6a2b09a2..fb03cbbd 100644 --- a/BunqSdk/Model/Generated/Endpoint/ExportStatementCardCsvApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/ExportStatementCardCsvApiObject.cs @@ -53,7 +53,7 @@ public class ExportStatementCardCsvApiObject : BunqModel /// The id of the customer statement model. /// [JsonProperty(PropertyName = "id")] - public int? Id { get; set; } + public long? Id { get; set; } /// /// The timestamp of the statement model's creation. /// @@ -73,14 +73,14 @@ public class ExportStatementCardCsvApiObject : BunqModel /// The card for which this statement was created. /// [JsonProperty(PropertyName = "card_id")] - public int? CardId { get; set; } + public long? CardId { get; set; } /// /// /// The start date for making statements. /// The end date for making statements. /// Required for CSV exports. The regional format of the statement, can be UK_US (comma-separated) or EUROPEAN (semicolon-separated). - public static BunqResponse Create(int cardId, string dateStart, string dateEnd, string regionalFormat, IDictionary customHeaders = null) + public static BunqResponse Create(long cardId, string dateStart, string dateEnd, string regionalFormat, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -101,7 +101,7 @@ public static BunqResponse Create(int cardId, string dateStart, string date /// /// - public static BunqResponse Get(int cardId, int exportStatementCardCsvId, IDictionary customHeaders = null) + public static BunqResponse Get(long cardId, long exportStatementCardCsvId, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -113,7 +113,7 @@ public static BunqResponse Get(int cardId, int /// /// - public static BunqResponse> List(int cardId, IDictionary urlParams = null, IDictionary customHeaders = null) + public static BunqResponse> List(long cardId, IDictionary urlParams = null, IDictionary customHeaders = null) { if (urlParams == null) urlParams = new Dictionary(); if (customHeaders == null) customHeaders = new Dictionary(); @@ -126,7 +126,7 @@ public static BunqResponse> List(int cardI /// /// - public static BunqResponse Delete(int cardId, int exportStatementCardCsvId, IDictionary customHeaders = null) + public static BunqResponse Delete(long cardId, long exportStatementCardCsvId, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); diff --git a/BunqSdk/Model/Generated/Endpoint/ExportStatementCardPdfApiObject.cs b/BunqSdk/Model/Generated/Endpoint/ExportStatementCardPdfApiObject.cs index 5e5e2429..37921d17 100644 --- a/BunqSdk/Model/Generated/Endpoint/ExportStatementCardPdfApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/ExportStatementCardPdfApiObject.cs @@ -47,7 +47,7 @@ public class ExportStatementCardPdfApiObject : BunqModel /// The id of the customer statement model. /// [JsonProperty(PropertyName = "id")] - public int? Id { get; set; } + public long? Id { get; set; } /// /// The timestamp of the statement model's creation. /// @@ -67,13 +67,13 @@ public class ExportStatementCardPdfApiObject : BunqModel /// The card for which this statement was created. /// [JsonProperty(PropertyName = "card_id")] - public int? CardId { get; set; } + public long? CardId { get; set; } /// /// /// The start date for making statements. /// The end date for making statements. - public static BunqResponse Create(int cardId, string dateStart, string dateEnd, IDictionary customHeaders = null) + public static BunqResponse Create(long cardId, string dateStart, string dateEnd, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -93,7 +93,7 @@ public static BunqResponse Create(int cardId, string dateStart, string date /// /// - public static BunqResponse Get(int cardId, int exportStatementCardPdfId, IDictionary customHeaders = null) + public static BunqResponse Get(long cardId, long exportStatementCardPdfId, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -105,7 +105,7 @@ public static BunqResponse Get(int cardId, int /// /// - public static BunqResponse> List(int cardId, IDictionary urlParams = null, IDictionary customHeaders = null) + public static BunqResponse> List(long cardId, IDictionary urlParams = null, IDictionary customHeaders = null) { if (urlParams == null) urlParams = new Dictionary(); if (customHeaders == null) customHeaders = new Dictionary(); @@ -118,7 +118,7 @@ public static BunqResponse> List(int cardI /// /// - public static BunqResponse Delete(int cardId, int exportStatementCardPdfId, IDictionary customHeaders = null) + public static BunqResponse Delete(long cardId, long exportStatementCardPdfId, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); diff --git a/BunqSdk/Model/Generated/Endpoint/ExportStatementContentApiObject.cs b/BunqSdk/Model/Generated/Endpoint/ExportStatementContentApiObject.cs index eb474052..cfca676f 100644 --- a/BunqSdk/Model/Generated/Endpoint/ExportStatementContentApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/ExportStatementContentApiObject.cs @@ -28,7 +28,7 @@ public class ExportStatementContentApiObject : BunqModel /// /// - public static BunqResponse List(int customerStatementId, int? monetaryAccountId= null, IDictionary customHeaders = null) + public static BunqResponse List(long customerStatementId, long? monetaryAccountId= null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); diff --git a/BunqSdk/Model/Generated/Endpoint/ExportStatementPaymentApiObject.cs b/BunqSdk/Model/Generated/Endpoint/ExportStatementPaymentApiObject.cs index d89cb340..459d8f54 100644 --- a/BunqSdk/Model/Generated/Endpoint/ExportStatementPaymentApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/ExportStatementPaymentApiObject.cs @@ -29,7 +29,7 @@ public class ExportStatementPaymentApiObject : BunqModel /// The id of the single payment statement model. /// [JsonProperty(PropertyName = "id")] - public int? Id { get; set; } + public long? Id { get; set; } /// /// The timestamp of the statement model's creation. /// @@ -48,7 +48,7 @@ public class ExportStatementPaymentApiObject : BunqModel /// /// - public static BunqResponse Create(int eventId, int? monetaryAccountId= null, IDictionary customHeaders = null) + public static BunqResponse Create(long eventId, long? monetaryAccountId= null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -66,7 +66,7 @@ public static BunqResponse Create(int eventId, int? monetaryAccountId= null /// /// - public static BunqResponse Get(int eventId, int exportStatementPaymentId, int? monetaryAccountId= null, IDictionary customHeaders = null) + public static BunqResponse Get(long eventId, long exportStatementPaymentId, long? monetaryAccountId= null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); diff --git a/BunqSdk/Model/Generated/Endpoint/ExportStatementPaymentContentApiObject.cs b/BunqSdk/Model/Generated/Endpoint/ExportStatementPaymentContentApiObject.cs index 9b7a282e..185963f8 100644 --- a/BunqSdk/Model/Generated/Endpoint/ExportStatementPaymentContentApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/ExportStatementPaymentContentApiObject.cs @@ -26,7 +26,7 @@ public class ExportStatementPaymentContentApiObject : BunqModel /// /// - public static BunqResponse List(int eventId, int statementId, int? monetaryAccountId= null, IDictionary customHeaders = null) + public static BunqResponse List(long eventId, long statementId, long? monetaryAccountId= null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); diff --git a/BunqSdk/Model/Generated/Endpoint/FeatureAnnouncementApiObject.cs b/BunqSdk/Model/Generated/Endpoint/FeatureAnnouncementApiObject.cs index 6d335ffe..ae999e5b 100644 --- a/BunqSdk/Model/Generated/Endpoint/FeatureAnnouncementApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/FeatureAnnouncementApiObject.cs @@ -48,7 +48,7 @@ public class FeatureAnnouncementApiObject : BunqModel /// /// - public static BunqResponse Get(int featureAnnouncementId, IDictionary customHeaders = null) + public static BunqResponse Get(long featureAnnouncementId, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); diff --git a/BunqSdk/Model/Generated/Endpoint/FulfillmentApiObject.cs b/BunqSdk/Model/Generated/Endpoint/FulfillmentApiObject.cs index 3ac74ccb..a77411b6 100644 --- a/BunqSdk/Model/Generated/Endpoint/FulfillmentApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/FulfillmentApiObject.cs @@ -38,7 +38,7 @@ public class FulfillmentApiObject : BunqModel /// The user id this fulfillment is required for. /// [JsonProperty(PropertyName = "user_id")] - public int? UserId { get; set; } + public long? UserId { get; set; } /// /// The allowed statusses for this fulfillment. /// diff --git a/BunqSdk/Model/Generated/Endpoint/GinmonTransactionApiObject.cs b/BunqSdk/Model/Generated/Endpoint/GinmonTransactionApiObject.cs index ed8f197f..01408a05 100644 --- a/BunqSdk/Model/Generated/Endpoint/GinmonTransactionApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/GinmonTransactionApiObject.cs @@ -64,7 +64,7 @@ public class GinmonTransactionApiObject : BunqModel /// The id of the event of transaction. /// [JsonProperty(PropertyName = "event_id")] - public int? EventId { get; set; } + public long? EventId { get; set; } /// diff --git a/BunqSdk/Model/Generated/Endpoint/IdealMerchantTransactionApiObject.cs b/BunqSdk/Model/Generated/Endpoint/IdealMerchantTransactionApiObject.cs index 259834e6..e58b7962 100644 --- a/BunqSdk/Model/Generated/Endpoint/IdealMerchantTransactionApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/IdealMerchantTransactionApiObject.cs @@ -47,7 +47,7 @@ public class IdealMerchantTransactionApiObject : BunqModel /// The id of the monetary account this ideal merchant transaction links to. /// [JsonProperty(PropertyName = "monetary_account_id")] - public int? MonetaryAccountId { get; set; } + public long? MonetaryAccountId { get; set; } /// /// The alias of the monetary account to add money to. /// @@ -103,7 +103,7 @@ public class IdealMerchantTransactionApiObject : BunqModel /// /// The requested amount of money to add. /// The BIC of the issuing bank to ask for money. - public static BunqResponse Create(AmountObject amountRequested, string issuer, int? monetaryAccountId= null, IDictionary customHeaders = null) + public static BunqResponse Create(AmountObject amountRequested, string issuer, long? monetaryAccountId= null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -123,7 +123,7 @@ public static BunqResponse Create(AmountObject amountRequested, string issu /// /// - public static BunqResponse Get(int idealMerchantTransactionId, int? monetaryAccountId= null, IDictionary customHeaders = null) + public static BunqResponse Get(long idealMerchantTransactionId, long? monetaryAccountId= null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -135,7 +135,7 @@ public static BunqResponse Get(int idealMerch /// /// - public static BunqResponse> List(int? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) + public static BunqResponse> List(long? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) { if (urlParams == null) urlParams = new Dictionary(); if (customHeaders == null) customHeaders = new Dictionary(); diff --git a/BunqSdk/Model/Generated/Endpoint/InsightApiObject.cs b/BunqSdk/Model/Generated/Endpoint/InsightApiObject.cs index 0890c5be..cb275698 100644 --- a/BunqSdk/Model/Generated/Endpoint/InsightApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/InsightApiObject.cs @@ -54,7 +54,7 @@ public class InsightApiObject : BunqModel /// The number of the transactions in the category. /// [JsonProperty(PropertyName = "number_of_transactions")] - public int? NumberOfTransactions { get; set; } + public long? NumberOfTransactions { get; set; } /// /// diff --git a/BunqSdk/Model/Generated/Endpoint/InsightEventApiObject.cs b/BunqSdk/Model/Generated/Endpoint/InsightEventApiObject.cs index b146c3b9..2870e29b 100644 --- a/BunqSdk/Model/Generated/Endpoint/InsightEventApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/InsightEventApiObject.cs @@ -29,7 +29,7 @@ public class InsightEventApiObject : BunqModel /// The id of the event. /// [JsonProperty(PropertyName = "id")] - public int? Id { get; set; } + public long? Id { get; set; } /// /// The timestamp of the event's creation. /// diff --git a/BunqSdk/Model/Generated/Endpoint/InsightPreferenceDateApiObject.cs b/BunqSdk/Model/Generated/Endpoint/InsightPreferenceDateApiObject.cs index 951563d6..b7140402 100644 --- a/BunqSdk/Model/Generated/Endpoint/InsightPreferenceDateApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/InsightPreferenceDateApiObject.cs @@ -33,7 +33,7 @@ public class InsightPreferenceDateApiObject : BunqModel /// The day of month at which budgeting/insights should start. /// [JsonProperty(PropertyName = "day_of_month")] - public int? DayOfMonth { get; set; } + public long? DayOfMonth { get; set; } /// /// diff --git a/BunqSdk/Model/Generated/Endpoint/InstallationServerPublicKeyApiObject.cs b/BunqSdk/Model/Generated/Endpoint/InstallationServerPublicKeyApiObject.cs index e1c4ee3e..21f67c93 100644 --- a/BunqSdk/Model/Generated/Endpoint/InstallationServerPublicKeyApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/InstallationServerPublicKeyApiObject.cs @@ -34,7 +34,7 @@ public class InstallationServerPublicKeyApiObject : BunqModel /// /// Show the ServerPublicKey for this Installation. /// - public static BunqResponse> List(int installationId, IDictionary urlParams = null, IDictionary customHeaders = null) + public static BunqResponse> List(long installationId, IDictionary urlParams = null, IDictionary customHeaders = null) { if (urlParams == null) urlParams = new Dictionary(); if (customHeaders == null) customHeaders = new Dictionary(); diff --git a/BunqSdk/Model/Generated/Endpoint/InvoiceApiObject.cs b/BunqSdk/Model/Generated/Endpoint/InvoiceApiObject.cs index 44c2bb68..63e2f557 100644 --- a/BunqSdk/Model/Generated/Endpoint/InvoiceApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/InvoiceApiObject.cs @@ -18,8 +18,8 @@ public class InvoiceApiObject : BunqModel /// /// Endpoint constants. /// - protected const string ENDPOINT_URL_LISTING = "user/{0}/monetary-account/{1}/invoice"; protected const string ENDPOINT_URL_READ = "user/{0}/monetary-account/{1}/invoice/{2}"; + protected const string ENDPOINT_URL_LISTING = "user/{0}/monetary-account/{1}/invoice"; /// /// Field constants. @@ -52,7 +52,7 @@ public class InvoiceApiObject : BunqModel /// The id of the invoice object. /// [JsonProperty(PropertyName = "id")] - public int? Id { get; set; } + public long? Id { get; set; } /// /// The timestamp of the invoice object's creation. /// @@ -136,27 +136,27 @@ public class InvoiceApiObject : BunqModel /// /// - public static BunqResponse> List(int? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) + public static BunqResponse Get(long invoiceId, long? monetaryAccountId= null, IDictionary customHeaders = null) { - if (urlParams == null) urlParams = new Dictionary(); if (customHeaders == null) customHeaders = new Dictionary(); var apiClient = new ApiClient(GetApiContext()); - var responseRaw = apiClient.Get(string.Format(ENDPOINT_URL_LISTING, DetermineUserId(), DetermineMonetaryAccountId(monetaryAccountId)), urlParams, customHeaders); + var responseRaw = apiClient.Get(string.Format(ENDPOINT_URL_READ, DetermineUserId(), DetermineMonetaryAccountId(monetaryAccountId), invoiceId), new Dictionary(), customHeaders); - return FromJsonList(responseRaw, OBJECT_TYPE_GET); + return FromJson(responseRaw, OBJECT_TYPE_GET); } /// /// - public static BunqResponse Get(int invoiceId, int? monetaryAccountId= null, IDictionary customHeaders = null) + public static BunqResponse> List(long? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) { + if (urlParams == null) urlParams = new Dictionary(); if (customHeaders == null) customHeaders = new Dictionary(); var apiClient = new ApiClient(GetApiContext()); - var responseRaw = apiClient.Get(string.Format(ENDPOINT_URL_READ, DetermineUserId(), DetermineMonetaryAccountId(monetaryAccountId), invoiceId), new Dictionary(), customHeaders); + var responseRaw = apiClient.Get(string.Format(ENDPOINT_URL_LISTING, DetermineUserId(), DetermineMonetaryAccountId(monetaryAccountId)), urlParams, customHeaders); - return FromJson(responseRaw, OBJECT_TYPE_GET); + return FromJsonList(responseRaw, OBJECT_TYPE_GET); } diff --git a/BunqSdk/Model/Generated/Endpoint/InvoiceByUserApiObject.cs b/BunqSdk/Model/Generated/Endpoint/InvoiceByUserApiObject.cs index 2b26bebc..3078d440 100644 --- a/BunqSdk/Model/Generated/Endpoint/InvoiceByUserApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/InvoiceByUserApiObject.cs @@ -30,7 +30,7 @@ public class InvoiceByUserApiObject : BunqModel /// The id of the invoice object. /// [JsonProperty(PropertyName = "id")] - public int? Id { get; set; } + public long? Id { get; set; } /// /// The timestamp of the invoice object's creation. /// @@ -122,7 +122,7 @@ public static BunqResponse> List( IDictionary /// - public static BunqResponse Get(int invoiceByUserId, IDictionary customHeaders = null) + public static BunqResponse Get(long invoiceByUserId, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); diff --git a/BunqSdk/Model/Generated/Endpoint/InvoiceExportPdfApiObject.cs b/BunqSdk/Model/Generated/Endpoint/InvoiceExportPdfApiObject.cs index 57bae2eb..a0831b51 100644 --- a/BunqSdk/Model/Generated/Endpoint/InvoiceExportPdfApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/InvoiceExportPdfApiObject.cs @@ -31,7 +31,7 @@ public class InvoiceExportPdfApiObject : BunqModel /// The id of the invoice export model. /// [JsonProperty(PropertyName = "id")] - public int? Id { get; set; } + public long? Id { get; set; } /// /// The timestamp of the invoice export's creation. /// @@ -50,7 +50,7 @@ public class InvoiceExportPdfApiObject : BunqModel /// /// - public static BunqResponse Get(int invoiceId, int invoiceExportPdfId, IDictionary customHeaders = null) + public static BunqResponse Get(long invoiceId, long invoiceExportPdfId, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -62,7 +62,7 @@ public static BunqResponse Get(int invoiceId, int inv /// /// - public static BunqResponse Create(int invoiceId, IDictionary customHeaders = null) + public static BunqResponse Create(long invoiceId, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -80,7 +80,7 @@ public static BunqResponse Create(int invoiceId, IDictionary /// - public static BunqResponse Update(int invoiceId, int invoiceExportPdfId, IDictionary customHeaders = null) + public static BunqResponse Update(long invoiceId, long invoiceExportPdfId, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -98,7 +98,7 @@ public static BunqResponse Update(int invoiceId, int invoiceExportPdfId, ID /// /// - public static BunqResponse Delete(int invoiceId, int invoiceExportPdfId, IDictionary customHeaders = null) + public static BunqResponse Delete(long invoiceId, long invoiceExportPdfId, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); diff --git a/BunqSdk/Model/Generated/Endpoint/InvoiceExportPdfContentApiObject.cs b/BunqSdk/Model/Generated/Endpoint/InvoiceExportPdfContentApiObject.cs index 4199ba6a..c1e0296b 100644 --- a/BunqSdk/Model/Generated/Endpoint/InvoiceExportPdfContentApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/InvoiceExportPdfContentApiObject.cs @@ -26,7 +26,7 @@ public class InvoiceExportPdfContentApiObject : BunqModel /// /// - public static BunqResponse List(int invoiceId, IDictionary customHeaders = null) + public static BunqResponse List(long invoiceId, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); diff --git a/BunqSdk/Model/Generated/Endpoint/MasterCardActionApiObject.cs b/BunqSdk/Model/Generated/Endpoint/MasterCardActionApiObject.cs index a20a13f0..65e3793e 100644 --- a/BunqSdk/Model/Generated/Endpoint/MasterCardActionApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/MasterCardActionApiObject.cs @@ -30,17 +30,17 @@ public class MasterCardActionApiObject : BunqModel /// The id of the MastercardAction. /// [JsonProperty(PropertyName = "id")] - public int? Id { get; set; } + public long? Id { get; set; } /// /// The id of the monetary account this action links to. /// [JsonProperty(PropertyName = "monetary_account_id")] - public int? MonetaryAccountId { get; set; } + public long? MonetaryAccountId { get; set; } /// /// The id of the card this action links to. /// [JsonProperty(PropertyName = "card_id")] - public int? CardId { get; set; } + public long? CardId { get; set; } /// /// The amount of the transaction in local currency. /// @@ -188,7 +188,7 @@ public class MasterCardActionApiObject : BunqModel /// The secure code id for this mastercard action or null. /// [JsonProperty(PropertyName = "secure_code_id")] - public int? SecureCodeId { get; set; } + public long? SecureCodeId { get; set; } /// /// The ID of the wallet provider as defined by MasterCard. 420 = bunq Android app with Tap&Pay; 103 = Apple /// Pay. @@ -224,7 +224,7 @@ public class MasterCardActionApiObject : BunqModel /// The whitelist id for this action or null. /// [JsonProperty(PropertyName = "eligible_whitelist_id")] - public int? EligibleWhitelistId { get; set; } + public long? EligibleWhitelistId { get; set; } /// /// The cashback payout item for this action or null /// @@ -273,7 +273,7 @@ public class MasterCardActionApiObject : BunqModel /// /// - public static BunqResponse Get(int masterCardActionId, int? monetaryAccountId= null, IDictionary customHeaders = null) + public static BunqResponse Get(long masterCardActionId, long? monetaryAccountId= null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -285,7 +285,7 @@ public static BunqResponse Get(int masterCardActionId /// /// - public static BunqResponse> List(int? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) + public static BunqResponse> List(long? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) { if (urlParams == null) urlParams = new Dictionary(); if (customHeaders == null) customHeaders = new Dictionary(); diff --git a/BunqSdk/Model/Generated/Endpoint/MasterCardActionRefundApiObject.cs b/BunqSdk/Model/Generated/Endpoint/MasterCardActionRefundApiObject.cs index 05f72256..b3aec00f 100644 --- a/BunqSdk/Model/Generated/Endpoint/MasterCardActionRefundApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/MasterCardActionRefundApiObject.cs @@ -68,7 +68,7 @@ public class MasterCardActionRefundApiObject : BunqModel /// The id of the refund. /// [JsonProperty(PropertyName = "id")] - public int? Id { get; set; } + public long? Id { get; set; } /// /// The timestamp of the refund's creation. /// @@ -99,7 +99,7 @@ public class MasterCardActionRefundApiObject : BunqModel /// The id of mastercard action being refunded. /// [JsonProperty(PropertyName = "mastercard_action_id")] - public int? MastercardActionId { get; set; } + public long? MastercardActionId { get; set; } /// /// The monetary account label of the account that this action is created for. /// diff --git a/BunqSdk/Model/Generated/Endpoint/MasterCardActionReportApiObject.cs b/BunqSdk/Model/Generated/Endpoint/MasterCardActionReportApiObject.cs index 62215a5a..6134bbbf 100644 --- a/BunqSdk/Model/Generated/Endpoint/MasterCardActionReportApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/MasterCardActionReportApiObject.cs @@ -22,7 +22,7 @@ public class MasterCardActionReportApiObject : BunqModel /// The id of mastercard action being reported. /// [JsonProperty(PropertyName = "mastercard_action_id")] - public int? MastercardActionId { get; set; } + public long? MastercardActionId { get; set; } /// /// The id of mastercard action being reported. /// diff --git a/BunqSdk/Model/Generated/Endpoint/MasterCardIdentityCheckChallengeRequestUserApiObject.cs b/BunqSdk/Model/Generated/Endpoint/MasterCardIdentityCheckChallengeRequestUserApiObject.cs index cdaaf7fa..dd5f756c 100644 --- a/BunqSdk/Model/Generated/Endpoint/MasterCardIdentityCheckChallengeRequestUserApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/MasterCardIdentityCheckChallengeRequestUserApiObject.cs @@ -75,16 +75,16 @@ public class MasterCardIdentityCheckChallengeRequestUserApiObject : BunqModel /// The ID of the latest event for the identity check. /// [JsonProperty(PropertyName = "event_id")] - public int? EventId { get; set; } + public long? EventId { get; set; } /// /// The ID of the card used for the authentication request of the identity check. /// [JsonProperty(PropertyName = "card_id")] - public int? CardId { get; set; } + public long? CardId { get; set; } /// /// - public static BunqResponse Get(int masterCardIdentityCheckChallengeRequestUserId, IDictionary customHeaders = null) + public static BunqResponse Get(long masterCardIdentityCheckChallengeRequestUserId, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -97,7 +97,7 @@ public static BunqResponse /// /// /// The status of the identity check. Can be ACCEPTED_PENDING_RESPONSE or REJECTED_PENDING_RESPONSE. - public static BunqResponse Update(int masterCardIdentityCheckChallengeRequestUserId, string status = null, IDictionary customHeaders = null) + public static BunqResponse Update(long masterCardIdentityCheckChallengeRequestUserId, string status = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); diff --git a/BunqSdk/Model/Generated/Endpoint/MasterCardPaymentApiObject.cs b/BunqSdk/Model/Generated/Endpoint/MasterCardPaymentApiObject.cs index 7e023094..1b1c6fdf 100644 --- a/BunqSdk/Model/Generated/Endpoint/MasterCardPaymentApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/MasterCardPaymentApiObject.cs @@ -29,7 +29,7 @@ public class MasterCardPaymentApiObject : BunqModel /// The id of the Payment. /// [JsonProperty(PropertyName = "id")] - public int? Id { get; set; } + public long? Id { get; set; } /// /// The timestamp when the Payment was done. /// @@ -45,7 +45,7 @@ public class MasterCardPaymentApiObject : BunqModel /// outgoing Payment). /// [JsonProperty(PropertyName = "monetary_account_id")] - public int? MonetaryAccountId { get; set; } + public long? MonetaryAccountId { get; set; } /// /// The Amount transferred by the Payment. Will be negative for outgoing Payments and positive for incoming /// Payments (relative to the MonetaryAccount indicated by monetary_account_id). @@ -122,12 +122,12 @@ public class MasterCardPaymentApiObject : BunqModel /// The id of the PaymentBatch if this Payment was part of one. /// [JsonProperty(PropertyName = "batch_id")] - public int? BatchId { get; set; } + public long? BatchId { get; set; } /// /// The id of the JobScheduled if the Payment was scheduled. /// [JsonProperty(PropertyName = "scheduled_id")] - public int? ScheduledId { get; set; } + public long? ScheduledId { get; set; } /// /// A shipping Address provided with the Payment, currently unused. /// @@ -171,7 +171,7 @@ public class MasterCardPaymentApiObject : BunqModel /// /// - public static BunqResponse> List(int mastercardActionId, int? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) + public static BunqResponse> List(long mastercardActionId, long? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) { if (urlParams == null) urlParams = new Dictionary(); if (customHeaders == null) customHeaders = new Dictionary(); diff --git a/BunqSdk/Model/Generated/Endpoint/MonetaryAccountApiObject.cs b/BunqSdk/Model/Generated/Endpoint/MonetaryAccountApiObject.cs index d39739e6..2816824f 100644 --- a/BunqSdk/Model/Generated/Endpoint/MonetaryAccountApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/MonetaryAccountApiObject.cs @@ -40,10 +40,15 @@ public class MonetaryAccountApiObject : BunqModel [JsonProperty(PropertyName = "balance")] public AmountObject Balance { get; set; } /// + /// The current available balance amount of the MonetaryAccount, converted to the user's default currency. + /// + [JsonProperty(PropertyName = "balance_converted")] + public AmountObject BalanceConverted { get; set; } + /// /// The profiles of the account. /// [JsonProperty(PropertyName = "monetary_account_profile")] - public MonetaryAccountProfileApiObject MonetaryAccountProfile { get; set; } + public List MonetaryAccountProfile { get; set; } /// /// The settings of the MonetaryAccount. /// @@ -150,7 +155,7 @@ public class MonetaryAccountApiObject : BunqModel /// /// Get a specific MonetaryAccount. /// - public static BunqResponse Get(int monetaryAccountId, IDictionary customHeaders = null) + public static BunqResponse Get(long monetaryAccountId, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -189,6 +194,11 @@ public override bool IsAllFieldNull() return false; } + if (this.BalanceConverted != null) + { + return false; + } + if (this.MonetaryAccountProfile != null) { return false; diff --git a/BunqSdk/Model/Generated/Endpoint/MonetaryAccountBankApiObject.cs b/BunqSdk/Model/Generated/Endpoint/MonetaryAccountBankApiObject.cs index 63e854a8..950c57b7 100644 --- a/BunqSdk/Model/Generated/Endpoint/MonetaryAccountBankApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/MonetaryAccountBankApiObject.cs @@ -110,7 +110,7 @@ public class MonetaryAccountBankApiObject : BunqModel /// The id of the MonetaryAccountBank. /// [JsonProperty(PropertyName = "id")] - public int? Id { get; set; } + public long? Id { get; set; } /// /// The timestamp of the MonetaryAccountBank's creation. /// @@ -160,12 +160,12 @@ public class MonetaryAccountBankApiObject : BunqModel /// The id of the User who owns the MonetaryAccountBank. /// [JsonProperty(PropertyName = "user_id")] - public int? UserId { get; set; } + public long? UserId { get; set; } /// /// The profiles of the account. /// [JsonProperty(PropertyName = "monetary_account_profile")] - public MonetaryAccountProfileApiObject MonetaryAccountProfile { get; set; } + public List MonetaryAccountProfile { get; set; } /// /// The ids of the AutoSave. /// @@ -177,6 +177,11 @@ public class MonetaryAccountBankApiObject : BunqModel [JsonProperty(PropertyName = "fulfillments")] public List Fulfillments { get; set; } /// + /// The current available balance amount of the MonetaryAccount, converted to the user's default currency. + /// + [JsonProperty(PropertyName = "balance_converted")] + public AmountObject BalanceConverted { get; set; } + /// /// The budgets of the MonetaryAccount. /// [JsonProperty(PropertyName = "budget")] @@ -221,7 +226,7 @@ public class MonetaryAccountBankApiObject : BunqModel /// The legal name of the user / company using this monetary account. /// The settings of the MonetaryAccountBank. /// The country of the monetary account IBAN. - public static BunqResponse Create(string currency, string description = null, AmountObject dailyLimit = null, string avatarUuid = null, string status = null, string subStatus = null, string reason = null, string reasonDescription = null, string displayName = null, MonetaryAccountSettingObject setting = null, string countryIban = null, IDictionary customHeaders = null) + public static BunqResponse Create(string currency, string description = null, AmountObject dailyLimit = null, string avatarUuid = null, string status = null, string subStatus = null, string reason = null, string reasonDescription = null, string displayName = null, MonetaryAccountSettingObject setting = null, string countryIban = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -251,7 +256,7 @@ public static BunqResponse Create(string currency, string description = nul /// /// Get a specific MonetaryAccountBank. /// - public static BunqResponse Get(int monetaryAccountBankId, IDictionary customHeaders = null) + public static BunqResponse Get(long monetaryAccountBankId, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -273,7 +278,7 @@ public static BunqResponse Get(int monetaryAccount /// The optional free-form reason for voluntarily cancelling (closing) the MonetaryAccountBank. Can be any user provided message. Should only be specified if updating the status to CANCELLED. /// The legal name of the user / company using this monetary account. /// The settings of the MonetaryAccountBank. - public static BunqResponse Update(int monetaryAccountBankId, string description = null, AmountObject dailyLimit = null, string avatarUuid = null, string status = null, string subStatus = null, string reason = null, string reasonDescription = null, string displayName = null, MonetaryAccountSettingObject setting = null, IDictionary customHeaders = null) + public static BunqResponse Update(long monetaryAccountBankId, string description = null, AmountObject dailyLimit = null, string avatarUuid = null, string status = null, string subStatus = null, string reason = null, string reasonDescription = null, string displayName = null, MonetaryAccountSettingObject setting = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -432,6 +437,11 @@ public override bool IsAllFieldNull() return false; } + if (this.BalanceConverted != null) + { + return false; + } + if (this.Budget != null) { return false; diff --git a/BunqSdk/Model/Generated/Endpoint/MonetaryAccountBudgetApiObject.cs b/BunqSdk/Model/Generated/Endpoint/MonetaryAccountBudgetApiObject.cs index c12eaea7..4bc3a5c8 100644 --- a/BunqSdk/Model/Generated/Endpoint/MonetaryAccountBudgetApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/MonetaryAccountBudgetApiObject.cs @@ -39,12 +39,12 @@ public class MonetaryAccountBudgetApiObject : BunqModel /// DEPRECATED. The monetary account's ID from/to which the missing/exceeding funds will be transferred. /// [JsonProperty(PropertyName = "monetary_account_source_funding_id")] - public int? MonetaryAccountSourceFundingId { get; set; } + public long? MonetaryAccountSourceFundingId { get; set; } /// /// DEPRECATED. The day of the month for the automatic top-up. /// [JsonProperty(PropertyName = "payment_day_of_month")] - public int? PaymentDayOfMonth { get; set; } + public long? PaymentDayOfMonth { get; set; } /// diff --git a/BunqSdk/Model/Generated/Endpoint/MonetaryAccountCardApiObject.cs b/BunqSdk/Model/Generated/Endpoint/MonetaryAccountCardApiObject.cs index c2057169..78f621b1 100644 --- a/BunqSdk/Model/Generated/Endpoint/MonetaryAccountCardApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/MonetaryAccountCardApiObject.cs @@ -30,7 +30,7 @@ public class MonetaryAccountCardApiObject : BunqModel /// The id of the MonetaryAccountCard. /// [JsonProperty(PropertyName = "id")] - public int? Id { get; set; } + public long? Id { get; set; } /// /// The timestamp of the MonetaryAccountCard's creation. /// @@ -67,11 +67,6 @@ public class MonetaryAccountCardApiObject : BunqModel [JsonProperty(PropertyName = "balance")] public AmountObject Balance { get; set; } /// - /// The current real balance Amount of the MonetaryAccountCard. - /// - [JsonProperty(PropertyName = "balance_real")] - public AmountObject BalanceReal { get; set; } - /// /// The aliases for the MonetaryAccount. /// [JsonProperty(PropertyName = "alias")] @@ -95,17 +90,22 @@ public class MonetaryAccountCardApiObject : BunqModel /// The id of the User who owns the MonetaryAccountCard. /// [JsonProperty(PropertyName = "user_id")] - public int? UserId { get; set; } + public long? UserId { get; set; } /// /// The RelationUser when the MonetaryAccount is accessed by the User via a share/connect. /// [JsonProperty(PropertyName = "relation_user")] public RelationUserApiObject RelationUser { get; set; } /// + /// The current available balance amount of the MonetaryAccount, converted to the user's default currency. + /// + [JsonProperty(PropertyName = "balance_converted")] + public AmountObject BalanceConverted { get; set; } + /// /// The profiles of the account. /// [JsonProperty(PropertyName = "monetary_account_profile")] - public MonetaryAccountProfileApiObject MonetaryAccountProfile { get; set; } + public List MonetaryAccountProfile { get; set; } /// /// The settings of the MonetaryAccount. /// @@ -171,7 +171,7 @@ public class MonetaryAccountCardApiObject : BunqModel /// /// Get a specific MonetaryAccountCard. /// - public static BunqResponse Get(int monetaryAccountCardId, IDictionary customHeaders = null) + public static BunqResponse Get(long monetaryAccountCardId, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -184,7 +184,7 @@ public static BunqResponse Get(int monetaryAccount /// /// Update a specific existing MonetaryAccountCard. /// - public static BunqResponse Update(int monetaryAccountCardId, IDictionary customHeaders = null) + public static BunqResponse Update(long monetaryAccountCardId, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -259,11 +259,6 @@ public override bool IsAllFieldNull() return false; } - if (this.BalanceReal != null) - { - return false; - } - if (this.Alias != null) { return false; @@ -294,6 +289,11 @@ public override bool IsAllFieldNull() return false; } + if (this.BalanceConverted != null) + { + return false; + } + if (this.MonetaryAccountProfile != null) { return false; diff --git a/BunqSdk/Model/Generated/Endpoint/MonetaryAccountExternalApiObject.cs b/BunqSdk/Model/Generated/Endpoint/MonetaryAccountExternalApiObject.cs index 8e246d3c..d1dd4332 100644 --- a/BunqSdk/Model/Generated/Endpoint/MonetaryAccountExternalApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/MonetaryAccountExternalApiObject.cs @@ -106,7 +106,7 @@ public class MonetaryAccountExternalApiObject : BunqModel /// The id of the MonetaryAccountExternal. /// [JsonProperty(PropertyName = "id")] - public int? Id { get; set; } + public long? Id { get; set; } /// /// The timestamp of the MonetaryAccountExternal's creation. /// @@ -156,12 +156,12 @@ public class MonetaryAccountExternalApiObject : BunqModel /// The id of the User who owns the MonetaryAccountExternal. /// [JsonProperty(PropertyName = "user_id")] - public int? UserId { get; set; } + public long? UserId { get; set; } /// /// The profiles of the account. /// [JsonProperty(PropertyName = "monetary_account_profile")] - public MonetaryAccountProfileApiObject MonetaryAccountProfile { get; set; } + public List MonetaryAccountProfile { get; set; } /// /// The ids of the AutoSave. /// @@ -178,6 +178,11 @@ public class MonetaryAccountExternalApiObject : BunqModel [JsonProperty(PropertyName = "open_banking_account")] public OpenBankingAccountApiObject OpenBankingAccount { get; set; } /// + /// The current available balance amount of the MonetaryAccount, converted to the user's default currency. + /// + [JsonProperty(PropertyName = "balance_converted")] + public AmountObject BalanceConverted { get; set; } + /// /// The budgets of the MonetaryAccount. /// [JsonProperty(PropertyName = "budget")] @@ -216,7 +221,7 @@ public class MonetaryAccountExternalApiObject : BunqModel /// The optional free-form reason for voluntarily cancelling (closing) the MonetaryAccountExternal. Can be any user provided message. Should only be specified if updating the status to CANCELLED. /// The legal name of the user / company using this monetary account. /// The settings of the MonetaryAccountExternal. - public static BunqResponse Create(string currency, string service, string description = null, AmountObject dailyLimit = null, string avatarUuid = null, string status = null, string subStatus = null, string reason = null, string reasonDescription = null, string displayName = null, MonetaryAccountSettingObject setting = null, IDictionary customHeaders = null) + public static BunqResponse Create(string currency, string service, string description = null, AmountObject dailyLimit = null, string avatarUuid = null, string status = null, string subStatus = null, string reason = null, string reasonDescription = null, string displayName = null, MonetaryAccountSettingObject setting = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -245,7 +250,7 @@ public static BunqResponse Create(string currency, string service, string d /// /// - public static BunqResponse Get(int monetaryAccountExternalId, IDictionary customHeaders = null) + public static BunqResponse Get(long monetaryAccountExternalId, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -266,7 +271,7 @@ public static BunqResponse Get(int monetaryAcc /// The optional free-form reason for voluntarily cancelling (closing) the MonetaryAccountExternal. Can be any user provided message. Should only be specified if updating the status to CANCELLED. /// The legal name of the user / company using this monetary account. /// The settings of the MonetaryAccountExternal. - public static BunqResponse Update(int monetaryAccountExternalId, string description = null, AmountObject dailyLimit = null, string avatarUuid = null, string status = null, string subStatus = null, string reason = null, string reasonDescription = null, string displayName = null, MonetaryAccountSettingObject setting = null, IDictionary customHeaders = null) + public static BunqResponse Update(long monetaryAccountExternalId, string description = null, AmountObject dailyLimit = null, string avatarUuid = null, string status = null, string subStatus = null, string reason = null, string reasonDescription = null, string displayName = null, MonetaryAccountSettingObject setting = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -434,6 +439,11 @@ public override bool IsAllFieldNull() return false; } + if (this.BalanceConverted != null) + { + return false; + } + if (this.Budget != null) { return false; diff --git a/BunqSdk/Model/Generated/Endpoint/MonetaryAccountExternalSavingsApiObject.cs b/BunqSdk/Model/Generated/Endpoint/MonetaryAccountExternalSavingsApiObject.cs index 64a34b15..35634d53 100644 --- a/BunqSdk/Model/Generated/Endpoint/MonetaryAccountExternalSavingsApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/MonetaryAccountExternalSavingsApiObject.cs @@ -112,7 +112,7 @@ public class MonetaryAccountExternalSavingsApiObject : BunqModel /// The id of the MonetaryAccountExternalSavings. /// [JsonProperty(PropertyName = "id")] - public int? Id { get; set; } + public long? Id { get; set; } /// /// The timestamp of the MonetaryAccountExternalSavings's creation. /// @@ -157,12 +157,12 @@ public class MonetaryAccountExternalSavingsApiObject : BunqModel /// The id of the User who owns the MonetaryAccountExternalSavings. /// [JsonProperty(PropertyName = "user_id")] - public int? UserId { get; set; } + public long? UserId { get; set; } /// /// The profiles of the account. /// [JsonProperty(PropertyName = "monetary_account_profile")] - public MonetaryAccountProfileApiObject MonetaryAccountProfile { get; set; } + public List MonetaryAccountProfile { get; set; } /// /// The ids of the AutoSave. /// @@ -184,6 +184,11 @@ public class MonetaryAccountExternalSavingsApiObject : BunqModel [JsonProperty(PropertyName = "number_of_payment_remaining")] public string NumberOfPaymentRemaining { get; set; } /// + /// The current available balance amount of the MonetaryAccount, converted to the user's default currency. + /// + [JsonProperty(PropertyName = "balance_converted")] + public AmountObject BalanceConverted { get; set; } + /// /// The budgets of the MonetaryAccount. /// [JsonProperty(PropertyName = "budget")] @@ -228,7 +233,7 @@ public class MonetaryAccountExternalSavingsApiObject : BunqModel /// The legal name of the user / company using this monetary account. /// The settings of the MonetaryAccountExternalSavings. /// The Savings Goal set for this MonetaryAccountSavings. - public static BunqResponse Create(string currency, string service, string description = null, AmountObject dailyLimit = null, string avatarUuid = null, string status = null, string subStatus = null, string reason = null, string reasonDescription = null, string displayName = null, MonetaryAccountSettingObject setting = null, AmountObject savingsGoal = null, IDictionary customHeaders = null) + public static BunqResponse Create(string currency, string service, string description = null, AmountObject dailyLimit = null, string avatarUuid = null, string status = null, string subStatus = null, string reason = null, string reasonDescription = null, string displayName = null, MonetaryAccountSettingObject setting = null, AmountObject savingsGoal = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -258,7 +263,7 @@ public static BunqResponse Create(string currency, string service, string d /// /// - public static BunqResponse Get(int monetaryAccountExternalSavingsId, IDictionary customHeaders = null) + public static BunqResponse Get(long monetaryAccountExternalSavingsId, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -280,7 +285,7 @@ public static BunqResponse Get(int mone /// The legal name of the user / company using this monetary account. /// The settings of the MonetaryAccountExternalSavings. /// The Savings Goal set for this MonetaryAccountSavings. - public static BunqResponse Update(int monetaryAccountExternalSavingsId, string description = null, AmountObject dailyLimit = null, string avatarUuid = null, string status = null, string subStatus = null, string reason = null, string reasonDescription = null, string displayName = null, MonetaryAccountSettingObject setting = null, AmountObject savingsGoal = null, IDictionary customHeaders = null) + public static BunqResponse Update(long monetaryAccountExternalSavingsId, string description = null, AmountObject dailyLimit = null, string avatarUuid = null, string status = null, string subStatus = null, string reason = null, string reasonDescription = null, string displayName = null, MonetaryAccountSettingObject setting = null, AmountObject savingsGoal = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -449,6 +454,11 @@ public override bool IsAllFieldNull() return false; } + if (this.BalanceConverted != null) + { + return false; + } + if (this.Budget != null) { return false; diff --git a/BunqSdk/Model/Generated/Endpoint/MonetaryAccountInvestmentApiObject.cs b/BunqSdk/Model/Generated/Endpoint/MonetaryAccountInvestmentApiObject.cs index 628fbe63..7a99f752 100644 --- a/BunqSdk/Model/Generated/Endpoint/MonetaryAccountInvestmentApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/MonetaryAccountInvestmentApiObject.cs @@ -97,7 +97,7 @@ public class MonetaryAccountInvestmentApiObject : BunqModel /// ID of the MA to be used for the initial deposit to the investment account. /// [JsonProperty(PropertyName = "monetary_account_deposit_initial_id")] - public int? MonetaryAccountDepositInitialId { get; set; } + public long? MonetaryAccountDepositInitialId { get; set; } /// /// The amount to be transferred to the investment account as the initial deposit. /// @@ -107,7 +107,7 @@ public class MonetaryAccountInvestmentApiObject : BunqModel /// The id of the MonetaryAccountInvestment. /// [JsonProperty(PropertyName = "id")] - public int? Id { get; set; } + public long? Id { get; set; } /// /// The timestamp of the MonetaryAccountInvestment's creation. /// @@ -152,12 +152,12 @@ public class MonetaryAccountInvestmentApiObject : BunqModel /// The id of the User who owns the MonetaryAccountInvestment. /// [JsonProperty(PropertyName = "user_id")] - public int? UserId { get; set; } + public long? UserId { get; set; } /// /// The profiles of the account. /// [JsonProperty(PropertyName = "monetary_account_profile")] - public MonetaryAccountProfileApiObject MonetaryAccountProfile { get; set; } + public List MonetaryAccountProfile { get; set; } /// /// The ids of the AutoSave. /// @@ -169,6 +169,11 @@ public class MonetaryAccountInvestmentApiObject : BunqModel [JsonProperty(PropertyName = "fulfillments")] public List Fulfillments { get; set; } /// + /// The current available balance amount of the MonetaryAccount, converted to the user's default currency. + /// + [JsonProperty(PropertyName = "balance_converted")] + public AmountObject BalanceConverted { get; set; } + /// /// The budgets of the MonetaryAccount. /// [JsonProperty(PropertyName = "budget")] @@ -314,6 +319,11 @@ public override bool IsAllFieldNull() return false; } + if (this.BalanceConverted != null) + { + return false; + } + if (this.Budget != null) { return false; diff --git a/BunqSdk/Model/Generated/Endpoint/MonetaryAccountJointApiObject.cs b/BunqSdk/Model/Generated/Endpoint/MonetaryAccountJointApiObject.cs index 76174997..dc983425 100644 --- a/BunqSdk/Model/Generated/Endpoint/MonetaryAccountJointApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/MonetaryAccountJointApiObject.cs @@ -112,7 +112,7 @@ public class MonetaryAccountJointApiObject : BunqModel /// The id of the MonetaryAccountJoint. /// [JsonProperty(PropertyName = "id")] - public int? Id { get; set; } + public long? Id { get; set; } /// /// The timestamp of the MonetaryAccountJoint's creation. /// @@ -152,12 +152,12 @@ public class MonetaryAccountJointApiObject : BunqModel /// The id of the User who owns the MonetaryAccountJoint. /// [JsonProperty(PropertyName = "user_id")] - public int? UserId { get; set; } + public long? UserId { get; set; } /// /// The profiles of the account. /// [JsonProperty(PropertyName = "monetary_account_profile")] - public MonetaryAccountProfileApiObject MonetaryAccountProfile { get; set; } + public List MonetaryAccountProfile { get; set; } /// /// The ids of the AutoSave. /// @@ -174,6 +174,11 @@ public class MonetaryAccountJointApiObject : BunqModel [JsonProperty(PropertyName = "co_owner_invite")] public CoOwnerInviteResponseApiObject CoOwnerInvite { get; set; } /// + /// The current available balance amount of the MonetaryAccount, converted to the user's default currency. + /// + [JsonProperty(PropertyName = "balance_converted")] + public AmountObject BalanceConverted { get; set; } + /// /// The budgets of the MonetaryAccount. /// [JsonProperty(PropertyName = "budget")] @@ -208,7 +213,7 @@ public class MonetaryAccountJointApiObject : BunqModel /// The reason for voluntarily cancelling (closing) the MonetaryAccountJoint, can only be OTHER. Should only be specified if updating the status to CANCELLED. /// The optional free-form reason for voluntarily cancelling (closing) the MonetaryAccountJoint. Can be any user provided message. Should only be specified if updating the status to CANCELLED. /// The settings of the MonetaryAccountJoint. - public static BunqResponse Create(string currency, List allCoOwner, string description = null, AmountObject dailyLimit = null, AmountObject overdraftLimit = null, List alias = null, string avatarUuid = null, string status = null, string subStatus = null, string reason = null, string reasonDescription = null, MonetaryAccountSettingObject setting = null, IDictionary customHeaders = null) + public static BunqResponse Create(string currency, List allCoOwner, string description = null, AmountObject dailyLimit = null, AmountObject overdraftLimit = null, List alias = null, string avatarUuid = null, string status = null, string subStatus = null, string reason = null, string reasonDescription = null, MonetaryAccountSettingObject setting = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -238,7 +243,7 @@ public static BunqResponse Create(string currency, List allC /// /// - public static BunqResponse Get(int monetaryAccountJointId, IDictionary customHeaders = null) + public static BunqResponse Get(long monetaryAccountJointId, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -258,7 +263,7 @@ public static BunqResponse Get(int monetaryAccoun /// The reason for voluntarily cancelling (closing) the MonetaryAccountJoint, can only be OTHER. Should only be specified if updating the status to CANCELLED. /// The optional free-form reason for voluntarily cancelling (closing) the MonetaryAccountJoint. Can be any user provided message. Should only be specified if updating the status to CANCELLED. /// The settings of the MonetaryAccountJoint. - public static BunqResponse Update(int monetaryAccountJointId, string description = null, AmountObject dailyLimit = null, string avatarUuid = null, string status = null, string subStatus = null, string reason = null, string reasonDescription = null, MonetaryAccountSettingObject setting = null, IDictionary customHeaders = null) + public static BunqResponse Update(long monetaryAccountJointId, string description = null, AmountObject dailyLimit = null, string avatarUuid = null, string status = null, string subStatus = null, string reason = null, string reasonDescription = null, MonetaryAccountSettingObject setting = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -420,6 +425,11 @@ public override bool IsAllFieldNull() return false; } + if (this.BalanceConverted != null) + { + return false; + } + if (this.Budget != null) { return false; diff --git a/BunqSdk/Model/Generated/Endpoint/MonetaryAccountLightApiObject.cs b/BunqSdk/Model/Generated/Endpoint/MonetaryAccountLightApiObject.cs index 1f9effdb..cbbc2a5a 100644 --- a/BunqSdk/Model/Generated/Endpoint/MonetaryAccountLightApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/MonetaryAccountLightApiObject.cs @@ -80,7 +80,7 @@ public class MonetaryAccountLightApiObject : BunqModel /// The id of the MonetaryAccountLight. /// [JsonProperty(PropertyName = "id")] - public int? Id { get; set; } + public long? Id { get; set; } /// /// The timestamp of the MonetaryAccountLight's creation. /// @@ -115,7 +115,7 @@ public class MonetaryAccountLightApiObject : BunqModel /// The id of the User who owns the MonetaryAccountLight. /// [JsonProperty(PropertyName = "user_id")] - public int? UserId { get; set; } + public long? UserId { get; set; } /// /// The ShareInviteBankResponse when the MonetaryAccount is accessed by the User via a share/connect. /// @@ -167,10 +167,15 @@ public class MonetaryAccountLightApiObject : BunqModel [JsonProperty(PropertyName = "fulfillments")] public List Fulfillments { get; set; } /// + /// The current available balance amount of the MonetaryAccount, converted to the user's default currency. + /// + [JsonProperty(PropertyName = "balance_converted")] + public AmountObject BalanceConverted { get; set; } + /// /// The profiles of the account. /// [JsonProperty(PropertyName = "monetary_account_profile")] - public MonetaryAccountProfileApiObject MonetaryAccountProfile { get; set; } + public List MonetaryAccountProfile { get; set; } /// /// The budgets of the MonetaryAccount. /// @@ -342,6 +347,11 @@ public override bool IsAllFieldNull() return false; } + if (this.BalanceConverted != null) + { + return false; + } + if (this.MonetaryAccountProfile != null) { return false; diff --git a/BunqSdk/Model/Generated/Endpoint/MonetaryAccountSavingsApiObject.cs b/BunqSdk/Model/Generated/Endpoint/MonetaryAccountSavingsApiObject.cs index ed600707..8a6532da 100644 --- a/BunqSdk/Model/Generated/Endpoint/MonetaryAccountSavingsApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/MonetaryAccountSavingsApiObject.cs @@ -106,7 +106,7 @@ public class MonetaryAccountSavingsApiObject : BunqModel /// The id of the MonetaryAccountSavings. /// [JsonProperty(PropertyName = "id")] - public int? Id { get; set; } + public long? Id { get; set; } /// /// The timestamp of the MonetaryAccountSavings's creation. /// @@ -151,12 +151,12 @@ public class MonetaryAccountSavingsApiObject : BunqModel /// The id of the User who owns the MonetaryAccountSavings. /// [JsonProperty(PropertyName = "user_id")] - public int? UserId { get; set; } + public long? UserId { get; set; } /// /// The profiles of the account. /// [JsonProperty(PropertyName = "monetary_account_profile")] - public MonetaryAccountProfileApiObject MonetaryAccountProfile { get; set; } + public List MonetaryAccountProfile { get; set; } /// /// The progress in percentages for the Savings Goal set for this MonetaryAccountSavings. /// @@ -183,6 +183,11 @@ public class MonetaryAccountSavingsApiObject : BunqModel [JsonProperty(PropertyName = "co_owner_invite")] public CoOwnerInviteResponseApiObject CoOwnerInvite { get; set; } /// + /// The current available balance amount of the MonetaryAccount, converted to the user's default currency. + /// + [JsonProperty(PropertyName = "balance_converted")] + public AmountObject BalanceConverted { get; set; } + /// /// The budgets of the MonetaryAccount. /// [JsonProperty(PropertyName = "budget")] @@ -217,7 +222,7 @@ public class MonetaryAccountSavingsApiObject : BunqModel /// The users the account will be joint with. /// The settings of the MonetaryAccountSavings. /// The Savings Goal set for this MonetaryAccountSavings. - public static BunqResponse Create(string currency, string description = null, AmountObject dailyLimit = null, string avatarUuid = null, string status = null, string subStatus = null, string reason = null, string reasonDescription = null, List allCoOwner = null, MonetaryAccountSettingObject setting = null, AmountObject savingsGoal = null, IDictionary customHeaders = null) + public static BunqResponse Create(string currency, string description = null, AmountObject dailyLimit = null, string avatarUuid = null, string status = null, string subStatus = null, string reason = null, string reasonDescription = null, List allCoOwner = null, MonetaryAccountSettingObject setting = null, AmountObject savingsGoal = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -247,7 +252,7 @@ public static BunqResponse Create(string currency, string description = nul /// /// Get a specific MonetaryAccountSavings. /// - public static BunqResponse Get(int monetaryAccountSavingsId, IDictionary customHeaders = null) + public static BunqResponse Get(long monetaryAccountSavingsId, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -269,7 +274,7 @@ public static BunqResponse Get(int monetaryAcco /// The optional free-form reason for voluntarily cancelling (closing) the MonetaryAccountSavings. Can be any user provided message. Should only be specified if updating the status to CANCELLED. /// The settings of the MonetaryAccountSavings. /// The Savings Goal set for this MonetaryAccountSavings. - public static BunqResponse Update(int monetaryAccountSavingsId, string description = null, AmountObject dailyLimit = null, string avatarUuid = null, string status = null, string subStatus = null, string reason = null, string reasonDescription = null, MonetaryAccountSettingObject setting = null, AmountObject savingsGoal = null, IDictionary customHeaders = null) + public static BunqResponse Update(long monetaryAccountSavingsId, string description = null, AmountObject dailyLimit = null, string avatarUuid = null, string status = null, string subStatus = null, string reason = null, string reasonDescription = null, MonetaryAccountSettingObject setting = null, AmountObject savingsGoal = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -443,6 +448,11 @@ public override bool IsAllFieldNull() return false; } + if (this.BalanceConverted != null) + { + return false; + } + if (this.Budget != null) { return false; diff --git a/BunqSdk/Model/Generated/Endpoint/MonetaryAccountSwitchServiceApiObject.cs b/BunqSdk/Model/Generated/Endpoint/MonetaryAccountSwitchServiceApiObject.cs index b834fd42..9523162e 100644 --- a/BunqSdk/Model/Generated/Endpoint/MonetaryAccountSwitchServiceApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/MonetaryAccountSwitchServiceApiObject.cs @@ -14,7 +14,7 @@ public class MonetaryAccountSwitchServiceApiObject : BunqModel /// The id of the monetary account. /// [JsonProperty(PropertyName = "id")] - public int? Id { get; set; } + public long? Id { get; set; } /// /// The timestamp of the monetary account's creation. /// @@ -46,10 +46,15 @@ public class MonetaryAccountSwitchServiceApiObject : BunqModel [JsonProperty(PropertyName = "balance")] public AmountObject Balance { get; set; } /// + /// The current available balance amount of the MonetaryAccount, converted to the user's default currency. + /// + [JsonProperty(PropertyName = "balance_converted")] + public AmountObject BalanceConverted { get; set; } + /// /// The profiles of the account. /// [JsonProperty(PropertyName = "monetary_account_profile")] - public MonetaryAccountProfileApiObject MonetaryAccountProfile { get; set; } + public List MonetaryAccountProfile { get; set; } /// /// The settings of the MonetaryAccount. /// @@ -157,6 +162,11 @@ public override bool IsAllFieldNull() return false; } + if (this.BalanceConverted != null) + { + return false; + } + if (this.MonetaryAccountProfile != null) { return false; diff --git a/BunqSdk/Model/Generated/Endpoint/NoteAttachmentAdyenCardTransactionApiObject.cs b/BunqSdk/Model/Generated/Endpoint/NoteAttachmentAdyenCardTransactionApiObject.cs index c54501fa..f157e27b 100644 --- a/BunqSdk/Model/Generated/Endpoint/NoteAttachmentAdyenCardTransactionApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/NoteAttachmentAdyenCardTransactionApiObject.cs @@ -44,12 +44,12 @@ public class NoteAttachmentAdyenCardTransactionApiObject : BunqModel /// The reference to the uploaded file to attach to this note. /// [JsonProperty(PropertyName = "attachment_id")] - public int? AttachmentId { get; set; } + public long? AttachmentId { get; set; } /// /// The id of the note. /// [JsonProperty(PropertyName = "id")] - public int? Id { get; set; } + public long? Id { get; set; } /// /// The timestamp of the note's creation. /// @@ -75,7 +75,7 @@ public class NoteAttachmentAdyenCardTransactionApiObject : BunqModel /// /// The reference to the uploaded file to attach to this note. /// Optional description of the attachment. - public static BunqResponse Create(int adyenCardTransactionId, int? attachmentId, int? monetaryAccountId= null, string description = null, IDictionary customHeaders = null) + public static BunqResponse Create(long adyenCardTransactionId, long? attachmentId, long? monetaryAccountId= null, string description = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -96,7 +96,7 @@ public static BunqResponse Create(int adyenCardTransactionId, int? attachme /// /// /// Optional description of the attachment. - public static BunqResponse Update(int adyenCardTransactionId, int noteAttachmentAdyenCardTransactionId, int? monetaryAccountId= null, string description = null, IDictionary customHeaders = null) + public static BunqResponse Update(long adyenCardTransactionId, long noteAttachmentAdyenCardTransactionId, long? monetaryAccountId= null, string description = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -115,7 +115,7 @@ public static BunqResponse Update(int adyenCardTransactionId, int noteAttac /// /// - public static BunqResponse Delete(int adyenCardTransactionId, int noteAttachmentAdyenCardTransactionId, int? monetaryAccountId= null, IDictionary customHeaders = null) + public static BunqResponse Delete(long adyenCardTransactionId, long noteAttachmentAdyenCardTransactionId, long? monetaryAccountId= null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -127,7 +127,7 @@ public static BunqResponse Delete(int adyenCardTransactionId, int noteAt /// /// - public static BunqResponse> List(int adyenCardTransactionId, int? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) + public static BunqResponse> List(long adyenCardTransactionId, long? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) { if (urlParams == null) urlParams = new Dictionary(); if (customHeaders == null) customHeaders = new Dictionary(); @@ -140,7 +140,7 @@ public static BunqResponse> Li /// /// - public static BunqResponse Get(int adyenCardTransactionId, int noteAttachmentAdyenCardTransactionId, int? monetaryAccountId= null, IDictionary customHeaders = null) + public static BunqResponse Get(long adyenCardTransactionId, long noteAttachmentAdyenCardTransactionId, long? monetaryAccountId= null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); diff --git a/BunqSdk/Model/Generated/Endpoint/NoteAttachmentBankSwitchServiceNetherlandsIncomingPaymentApiObject.cs b/BunqSdk/Model/Generated/Endpoint/NoteAttachmentBankSwitchServiceNetherlandsIncomingPaymentApiObject.cs index 087b7c7e..06a15741 100644 --- a/BunqSdk/Model/Generated/Endpoint/NoteAttachmentBankSwitchServiceNetherlandsIncomingPaymentApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/NoteAttachmentBankSwitchServiceNetherlandsIncomingPaymentApiObject.cs @@ -44,12 +44,12 @@ public class NoteAttachmentBankSwitchServiceNetherlandsIncomingPaymentApiObject /// The reference to the uploaded file to attach to this note. /// [JsonProperty(PropertyName = "attachment_id")] - public int? AttachmentId { get; set; } + public long? AttachmentId { get; set; } /// /// The id of the note. /// [JsonProperty(PropertyName = "id")] - public int? Id { get; set; } + public long? Id { get; set; } /// /// The timestamp of the note's creation. /// @@ -75,7 +75,7 @@ public class NoteAttachmentBankSwitchServiceNetherlandsIncomingPaymentApiObject /// /// The reference to the uploaded file to attach to this note. /// Optional description of the attachment. - public static BunqResponse Create(int switchServicePaymentId, int? attachmentId, int? monetaryAccountId= null, string description = null, IDictionary customHeaders = null) + public static BunqResponse Create(long switchServicePaymentId, long? attachmentId, long? monetaryAccountId= null, string description = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -96,7 +96,7 @@ public static BunqResponse Create(int switchServicePaymentId, int? attachme /// /// /// Optional description of the attachment. - public static BunqResponse Update(int switchServicePaymentId, int noteAttachmentBankSwitchServiceNetherlandsIncomingPaymentId, int? monetaryAccountId= null, string description = null, IDictionary customHeaders = null) + public static BunqResponse Update(long switchServicePaymentId, long noteAttachmentBankSwitchServiceNetherlandsIncomingPaymentId, long? monetaryAccountId= null, string description = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -115,7 +115,7 @@ public static BunqResponse Update(int switchServicePaymentId, int noteAttac /// /// - public static BunqResponse Delete(int switchServicePaymentId, int noteAttachmentBankSwitchServiceNetherlandsIncomingPaymentId, int? monetaryAccountId= null, IDictionary customHeaders = null) + public static BunqResponse Delete(long switchServicePaymentId, long noteAttachmentBankSwitchServiceNetherlandsIncomingPaymentId, long? monetaryAccountId= null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -128,7 +128,7 @@ public static BunqResponse Delete(int switchServicePaymentId, int noteAt /// /// Manage the notes for a given user. /// - public static BunqResponse> List(int switchServicePaymentId, int? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) + public static BunqResponse> List(long switchServicePaymentId, long? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) { if (urlParams == null) urlParams = new Dictionary(); if (customHeaders == null) customHeaders = new Dictionary(); @@ -141,7 +141,7 @@ public static BunqResponse /// - public static BunqResponse Get(int switchServicePaymentId, int noteAttachmentBankSwitchServiceNetherlandsIncomingPaymentId, int? monetaryAccountId= null, IDictionary customHeaders = null) + public static BunqResponse Get(long switchServicePaymentId, long noteAttachmentBankSwitchServiceNetherlandsIncomingPaymentId, long? monetaryAccountId= null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); diff --git a/BunqSdk/Model/Generated/Endpoint/NoteAttachmentBunqMeFundraiserResultApiObject.cs b/BunqSdk/Model/Generated/Endpoint/NoteAttachmentBunqMeFundraiserResultApiObject.cs index fd485ec5..672b4dc0 100644 --- a/BunqSdk/Model/Generated/Endpoint/NoteAttachmentBunqMeFundraiserResultApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/NoteAttachmentBunqMeFundraiserResultApiObject.cs @@ -44,12 +44,12 @@ public class NoteAttachmentBunqMeFundraiserResultApiObject : BunqModel /// The reference to the uploaded file to attach to this note. /// [JsonProperty(PropertyName = "attachment_id")] - public int? AttachmentId { get; set; } + public long? AttachmentId { get; set; } /// /// The id of the note. /// [JsonProperty(PropertyName = "id")] - public int? Id { get; set; } + public long? Id { get; set; } /// /// The timestamp of the note's creation. /// @@ -75,7 +75,7 @@ public class NoteAttachmentBunqMeFundraiserResultApiObject : BunqModel /// /// The reference to the uploaded file to attach to this note. /// Optional description of the attachment. - public static BunqResponse Create(int bunqmeFundraiserResultId, int? attachmentId, int? monetaryAccountId= null, string description = null, IDictionary customHeaders = null) + public static BunqResponse Create(long bunqmeFundraiserResultId, long? attachmentId, long? monetaryAccountId= null, string description = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -96,7 +96,7 @@ public static BunqResponse Create(int bunqmeFundraiserResultId, int? attach /// /// /// Optional description of the attachment. - public static BunqResponse Update(int bunqmeFundraiserResultId, int noteAttachmentBunqMeFundraiserResultId, int? monetaryAccountId= null, string description = null, IDictionary customHeaders = null) + public static BunqResponse Update(long bunqmeFundraiserResultId, long noteAttachmentBunqMeFundraiserResultId, long? monetaryAccountId= null, string description = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -115,7 +115,7 @@ public static BunqResponse Update(int bunqmeFundraiserResultId, int noteAtt /// /// - public static BunqResponse Delete(int bunqmeFundraiserResultId, int noteAttachmentBunqMeFundraiserResultId, int? monetaryAccountId= null, IDictionary customHeaders = null) + public static BunqResponse Delete(long bunqmeFundraiserResultId, long noteAttachmentBunqMeFundraiserResultId, long? monetaryAccountId= null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -128,7 +128,7 @@ public static BunqResponse Delete(int bunqmeFundraiserResultId, int note /// /// Manage the notes for a given user. /// - public static BunqResponse> List(int bunqmeFundraiserResultId, int? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) + public static BunqResponse> List(long bunqmeFundraiserResultId, long? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) { if (urlParams == null) urlParams = new Dictionary(); if (customHeaders == null) customHeaders = new Dictionary(); @@ -141,7 +141,7 @@ public static BunqResponse> /// /// - public static BunqResponse Get(int bunqmeFundraiserResultId, int noteAttachmentBunqMeFundraiserResultId, int? monetaryAccountId= null, IDictionary customHeaders = null) + public static BunqResponse Get(long bunqmeFundraiserResultId, long noteAttachmentBunqMeFundraiserResultId, long? monetaryAccountId= null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); diff --git a/BunqSdk/Model/Generated/Endpoint/NoteAttachmentDraftPaymentApiObject.cs b/BunqSdk/Model/Generated/Endpoint/NoteAttachmentDraftPaymentApiObject.cs index a457faf9..f465cb17 100644 --- a/BunqSdk/Model/Generated/Endpoint/NoteAttachmentDraftPaymentApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/NoteAttachmentDraftPaymentApiObject.cs @@ -44,12 +44,12 @@ public class NoteAttachmentDraftPaymentApiObject : BunqModel /// The reference to the uploaded file to attach to this note. /// [JsonProperty(PropertyName = "attachment_id")] - public int? AttachmentId { get; set; } + public long? AttachmentId { get; set; } /// /// The id of the note. /// [JsonProperty(PropertyName = "id")] - public int? Id { get; set; } + public long? Id { get; set; } /// /// The timestamp of the note's creation. /// @@ -75,7 +75,7 @@ public class NoteAttachmentDraftPaymentApiObject : BunqModel /// /// The reference to the uploaded file to attach to this note. /// Optional description of the attachment. - public static BunqResponse Create(int draftPaymentId, int? attachmentId, int? monetaryAccountId= null, string description = null, IDictionary customHeaders = null) + public static BunqResponse Create(long draftPaymentId, long? attachmentId, long? monetaryAccountId= null, string description = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -96,7 +96,7 @@ public static BunqResponse Create(int draftPaymentId, int? attachmentId, in /// /// /// Optional description of the attachment. - public static BunqResponse Update(int draftPaymentId, int noteAttachmentDraftPaymentId, int? monetaryAccountId= null, string description = null, IDictionary customHeaders = null) + public static BunqResponse Update(long draftPaymentId, long noteAttachmentDraftPaymentId, long? monetaryAccountId= null, string description = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -115,7 +115,7 @@ public static BunqResponse Update(int draftPaymentId, int noteAttachmentDra /// /// - public static BunqResponse Delete(int draftPaymentId, int noteAttachmentDraftPaymentId, int? monetaryAccountId= null, IDictionary customHeaders = null) + public static BunqResponse Delete(long draftPaymentId, long noteAttachmentDraftPaymentId, long? monetaryAccountId= null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -128,7 +128,7 @@ public static BunqResponse Delete(int draftPaymentId, int noteAttachment /// /// Manage the notes for a given user. /// - public static BunqResponse> List(int draftPaymentId, int? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) + public static BunqResponse> List(long draftPaymentId, long? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) { if (urlParams == null) urlParams = new Dictionary(); if (customHeaders == null) customHeaders = new Dictionary(); @@ -141,7 +141,7 @@ public static BunqResponse> List(int d /// /// - public static BunqResponse Get(int draftPaymentId, int noteAttachmentDraftPaymentId, int? monetaryAccountId= null, IDictionary customHeaders = null) + public static BunqResponse Get(long draftPaymentId, long noteAttachmentDraftPaymentId, long? monetaryAccountId= null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); diff --git a/BunqSdk/Model/Generated/Endpoint/NoteAttachmentIdealMerchantTransactionApiObject.cs b/BunqSdk/Model/Generated/Endpoint/NoteAttachmentIdealMerchantTransactionApiObject.cs index 751ba9ac..ea939940 100644 --- a/BunqSdk/Model/Generated/Endpoint/NoteAttachmentIdealMerchantTransactionApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/NoteAttachmentIdealMerchantTransactionApiObject.cs @@ -44,12 +44,12 @@ public class NoteAttachmentIdealMerchantTransactionApiObject : BunqModel /// The reference to the uploaded file to attach to this note. /// [JsonProperty(PropertyName = "attachment_id")] - public int? AttachmentId { get; set; } + public long? AttachmentId { get; set; } /// /// The id of the note. /// [JsonProperty(PropertyName = "id")] - public int? Id { get; set; } + public long? Id { get; set; } /// /// The timestamp of the note's creation. /// @@ -75,7 +75,7 @@ public class NoteAttachmentIdealMerchantTransactionApiObject : BunqModel /// /// The reference to the uploaded file to attach to this note. /// Optional description of the attachment. - public static BunqResponse Create(int idealMerchantTransactionId, int? attachmentId, int? monetaryAccountId= null, string description = null, IDictionary customHeaders = null) + public static BunqResponse Create(long idealMerchantTransactionId, long? attachmentId, long? monetaryAccountId= null, string description = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -96,7 +96,7 @@ public static BunqResponse Create(int idealMerchantTransactionId, int? atta /// /// /// Optional description of the attachment. - public static BunqResponse Update(int idealMerchantTransactionId, int noteAttachmentIdealMerchantTransactionId, int? monetaryAccountId= null, string description = null, IDictionary customHeaders = null) + public static BunqResponse Update(long idealMerchantTransactionId, long noteAttachmentIdealMerchantTransactionId, long? monetaryAccountId= null, string description = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -115,7 +115,7 @@ public static BunqResponse Update(int idealMerchantTransactionId, int noteA /// /// - public static BunqResponse Delete(int idealMerchantTransactionId, int noteAttachmentIdealMerchantTransactionId, int? monetaryAccountId= null, IDictionary customHeaders = null) + public static BunqResponse Delete(long idealMerchantTransactionId, long noteAttachmentIdealMerchantTransactionId, long? monetaryAccountId= null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -128,7 +128,7 @@ public static BunqResponse Delete(int idealMerchantTransactionId, int no /// /// Manage the notes for a given user. /// - public static BunqResponse> List(int idealMerchantTransactionId, int? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) + public static BunqResponse> List(long idealMerchantTransactionId, long? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) { if (urlParams == null) urlParams = new Dictionary(); if (customHeaders == null) customHeaders = new Dictionary(); @@ -141,7 +141,7 @@ public static BunqResponse /// /// - public static BunqResponse Get(int idealMerchantTransactionId, int noteAttachmentIdealMerchantTransactionId, int? monetaryAccountId= null, IDictionary customHeaders = null) + public static BunqResponse Get(long idealMerchantTransactionId, long noteAttachmentIdealMerchantTransactionId, long? monetaryAccountId= null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); diff --git a/BunqSdk/Model/Generated/Endpoint/NoteAttachmentMasterCardActionApiObject.cs b/BunqSdk/Model/Generated/Endpoint/NoteAttachmentMasterCardActionApiObject.cs index b6efecf3..64dca1d5 100644 --- a/BunqSdk/Model/Generated/Endpoint/NoteAttachmentMasterCardActionApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/NoteAttachmentMasterCardActionApiObject.cs @@ -44,12 +44,12 @@ public class NoteAttachmentMasterCardActionApiObject : BunqModel /// The reference to the uploaded file to attach to this note. /// [JsonProperty(PropertyName = "attachment_id")] - public int? AttachmentId { get; set; } + public long? AttachmentId { get; set; } /// /// The id of the note. /// [JsonProperty(PropertyName = "id")] - public int? Id { get; set; } + public long? Id { get; set; } /// /// The timestamp of the note's creation. /// @@ -75,7 +75,7 @@ public class NoteAttachmentMasterCardActionApiObject : BunqModel /// /// Optional description of the attachment. /// The reference to the uploaded file to attach to this note. - public static BunqResponse Create(int mastercardActionId, string description, int? attachmentId, int? monetaryAccountId= null, IDictionary customHeaders = null) + public static BunqResponse Create(long mastercardActionId, string description, long? attachmentId, long? monetaryAccountId= null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -96,7 +96,7 @@ public static BunqResponse Create(int mastercardActionId, string descriptio /// /// /// Optional description of the attachment. - public static BunqResponse Update(int mastercardActionId, int noteAttachmentMasterCardActionId, int? monetaryAccountId= null, string description = null, IDictionary customHeaders = null) + public static BunqResponse Update(long mastercardActionId, long noteAttachmentMasterCardActionId, long? monetaryAccountId= null, string description = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -115,7 +115,7 @@ public static BunqResponse Update(int mastercardActionId, int noteAttachmen /// /// - public static BunqResponse Delete(int mastercardActionId, int noteAttachmentMasterCardActionId, int? monetaryAccountId= null, IDictionary customHeaders = null) + public static BunqResponse Delete(long mastercardActionId, long noteAttachmentMasterCardActionId, long? monetaryAccountId= null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -128,7 +128,7 @@ public static BunqResponse Delete(int mastercardActionId, int noteAttach /// /// Manage the notes for a given user. /// - public static BunqResponse> List(int mastercardActionId, int? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) + public static BunqResponse> List(long mastercardActionId, long? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) { if (urlParams == null) urlParams = new Dictionary(); if (customHeaders == null) customHeaders = new Dictionary(); @@ -141,7 +141,7 @@ public static BunqResponse> List(i /// /// - public static BunqResponse Get(int mastercardActionId, int noteAttachmentMasterCardActionId, int? monetaryAccountId= null, IDictionary customHeaders = null) + public static BunqResponse Get(long mastercardActionId, long noteAttachmentMasterCardActionId, long? monetaryAccountId= null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); diff --git a/BunqSdk/Model/Generated/Endpoint/NoteAttachmentOpenBankingMerchantTransactionApiObject.cs b/BunqSdk/Model/Generated/Endpoint/NoteAttachmentOpenBankingMerchantTransactionApiObject.cs index f1306b8e..82fd8221 100644 --- a/BunqSdk/Model/Generated/Endpoint/NoteAttachmentOpenBankingMerchantTransactionApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/NoteAttachmentOpenBankingMerchantTransactionApiObject.cs @@ -44,12 +44,12 @@ public class NoteAttachmentOpenBankingMerchantTransactionApiObject : BunqModel /// The reference to the uploaded file to attach to this note. /// [JsonProperty(PropertyName = "attachment_id")] - public int? AttachmentId { get; set; } + public long? AttachmentId { get; set; } /// /// The id of the note. /// [JsonProperty(PropertyName = "id")] - public int? Id { get; set; } + public long? Id { get; set; } /// /// The timestamp of the note's creation. /// @@ -75,7 +75,7 @@ public class NoteAttachmentOpenBankingMerchantTransactionApiObject : BunqModel /// /// The reference to the uploaded file to attach to this note. /// Optional description of the attachment. - public static BunqResponse Create(int openBankingMerchantTransactionId, int? attachmentId, int? monetaryAccountId= null, string description = null, IDictionary customHeaders = null) + public static BunqResponse Create(long openBankingMerchantTransactionId, long? attachmentId, long? monetaryAccountId= null, string description = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -96,7 +96,7 @@ public static BunqResponse Create(int openBankingMerchantTransactionId, int /// /// /// Optional description of the attachment. - public static BunqResponse Update(int openBankingMerchantTransactionId, int noteAttachmentOpenBankingMerchantTransactionId, int? monetaryAccountId= null, string description = null, IDictionary customHeaders = null) + public static BunqResponse Update(long openBankingMerchantTransactionId, long noteAttachmentOpenBankingMerchantTransactionId, long? monetaryAccountId= null, string description = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -115,7 +115,7 @@ public static BunqResponse Update(int openBankingMerchantTransactionId, int /// /// - public static BunqResponse Delete(int openBankingMerchantTransactionId, int noteAttachmentOpenBankingMerchantTransactionId, int? monetaryAccountId= null, IDictionary customHeaders = null) + public static BunqResponse Delete(long openBankingMerchantTransactionId, long noteAttachmentOpenBankingMerchantTransactionId, long? monetaryAccountId= null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -127,7 +127,7 @@ public static BunqResponse Delete(int openBankingMerchantTransactionId, /// /// - public static BunqResponse> List(int openBankingMerchantTransactionId, int? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) + public static BunqResponse> List(long openBankingMerchantTransactionId, long? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) { if (urlParams == null) urlParams = new Dictionary(); if (customHeaders == null) customHeaders = new Dictionary(); @@ -140,7 +140,7 @@ public static BunqResponse /// - public static BunqResponse Get(int openBankingMerchantTransactionId, int noteAttachmentOpenBankingMerchantTransactionId, int? monetaryAccountId= null, IDictionary customHeaders = null) + public static BunqResponse Get(long openBankingMerchantTransactionId, long noteAttachmentOpenBankingMerchantTransactionId, long? monetaryAccountId= null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); diff --git a/BunqSdk/Model/Generated/Endpoint/NoteAttachmentPaymentApiObject.cs b/BunqSdk/Model/Generated/Endpoint/NoteAttachmentPaymentApiObject.cs index c7d0c209..518b3de0 100644 --- a/BunqSdk/Model/Generated/Endpoint/NoteAttachmentPaymentApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/NoteAttachmentPaymentApiObject.cs @@ -44,12 +44,12 @@ public class NoteAttachmentPaymentApiObject : BunqModel /// The reference to the uploaded file to attach to this note. /// [JsonProperty(PropertyName = "attachment_id")] - public int? AttachmentId { get; set; } + public long? AttachmentId { get; set; } /// /// The id of the note. /// [JsonProperty(PropertyName = "id")] - public int? Id { get; set; } + public long? Id { get; set; } /// /// The timestamp of the note's creation. /// @@ -75,7 +75,7 @@ public class NoteAttachmentPaymentApiObject : BunqModel /// /// The reference to the uploaded file to attach to this note. /// Optional description of the attachment. - public static BunqResponse Create(int paymentId, int? attachmentId, int? monetaryAccountId= null, string description = null, IDictionary customHeaders = null) + public static BunqResponse Create(long paymentId, long? attachmentId, long? monetaryAccountId= null, string description = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -96,7 +96,7 @@ public static BunqResponse Create(int paymentId, int? attachmentId, int? mo /// /// /// Optional description of the attachment. - public static BunqResponse Update(int paymentId, int noteAttachmentPaymentId, int? monetaryAccountId= null, string description = null, IDictionary customHeaders = null) + public static BunqResponse Update(long paymentId, long noteAttachmentPaymentId, long? monetaryAccountId= null, string description = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -115,7 +115,7 @@ public static BunqResponse Update(int paymentId, int noteAttachmentPaymentI /// /// - public static BunqResponse Delete(int paymentId, int noteAttachmentPaymentId, int? monetaryAccountId= null, IDictionary customHeaders = null) + public static BunqResponse Delete(long paymentId, long noteAttachmentPaymentId, long? monetaryAccountId= null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -128,7 +128,7 @@ public static BunqResponse Delete(int paymentId, int noteAttachmentPayme /// /// Manage the notes for a given user. /// - public static BunqResponse> List(int paymentId, int? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) + public static BunqResponse> List(long paymentId, long? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) { if (urlParams == null) urlParams = new Dictionary(); if (customHeaders == null) customHeaders = new Dictionary(); @@ -141,7 +141,7 @@ public static BunqResponse> List(int paymen /// /// - public static BunqResponse Get(int paymentId, int noteAttachmentPaymentId, int? monetaryAccountId= null, IDictionary customHeaders = null) + public static BunqResponse Get(long paymentId, long noteAttachmentPaymentId, long? monetaryAccountId= null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); diff --git a/BunqSdk/Model/Generated/Endpoint/NoteAttachmentPaymentBatchApiObject.cs b/BunqSdk/Model/Generated/Endpoint/NoteAttachmentPaymentBatchApiObject.cs index e873c2f2..d88a139e 100644 --- a/BunqSdk/Model/Generated/Endpoint/NoteAttachmentPaymentBatchApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/NoteAttachmentPaymentBatchApiObject.cs @@ -44,12 +44,12 @@ public class NoteAttachmentPaymentBatchApiObject : BunqModel /// The reference to the uploaded file to attach to this note. /// [JsonProperty(PropertyName = "attachment_id")] - public int? AttachmentId { get; set; } + public long? AttachmentId { get; set; } /// /// The id of the note. /// [JsonProperty(PropertyName = "id")] - public int? Id { get; set; } + public long? Id { get; set; } /// /// The timestamp of the note's creation. /// @@ -75,7 +75,7 @@ public class NoteAttachmentPaymentBatchApiObject : BunqModel /// /// The reference to the uploaded file to attach to this note. /// Optional description of the attachment. - public static BunqResponse Create(int paymentBatchId, int? attachmentId, int? monetaryAccountId= null, string description = null, IDictionary customHeaders = null) + public static BunqResponse Create(long paymentBatchId, long? attachmentId, long? monetaryAccountId= null, string description = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -96,7 +96,7 @@ public static BunqResponse Create(int paymentBatchId, int? attachmentId, in /// /// /// Optional description of the attachment. - public static BunqResponse Update(int paymentBatchId, int noteAttachmentPaymentBatchId, int? monetaryAccountId= null, string description = null, IDictionary customHeaders = null) + public static BunqResponse Update(long paymentBatchId, long noteAttachmentPaymentBatchId, long? monetaryAccountId= null, string description = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -115,7 +115,7 @@ public static BunqResponse Update(int paymentBatchId, int noteAttachmentPay /// /// - public static BunqResponse Delete(int paymentBatchId, int noteAttachmentPaymentBatchId, int? monetaryAccountId= null, IDictionary customHeaders = null) + public static BunqResponse Delete(long paymentBatchId, long noteAttachmentPaymentBatchId, long? monetaryAccountId= null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -128,7 +128,7 @@ public static BunqResponse Delete(int paymentBatchId, int noteAttachment /// /// Manage the notes for a given user. /// - public static BunqResponse> List(int paymentBatchId, int? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) + public static BunqResponse> List(long paymentBatchId, long? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) { if (urlParams == null) urlParams = new Dictionary(); if (customHeaders == null) customHeaders = new Dictionary(); @@ -141,7 +141,7 @@ public static BunqResponse> List(int p /// /// - public static BunqResponse Get(int paymentBatchId, int noteAttachmentPaymentBatchId, int? monetaryAccountId= null, IDictionary customHeaders = null) + public static BunqResponse Get(long paymentBatchId, long noteAttachmentPaymentBatchId, long? monetaryAccountId= null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); diff --git a/BunqSdk/Model/Generated/Endpoint/NoteAttachmentPaymentDelayedApiObject.cs b/BunqSdk/Model/Generated/Endpoint/NoteAttachmentPaymentDelayedApiObject.cs index 5e70064a..e8369cf1 100644 --- a/BunqSdk/Model/Generated/Endpoint/NoteAttachmentPaymentDelayedApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/NoteAttachmentPaymentDelayedApiObject.cs @@ -44,12 +44,12 @@ public class NoteAttachmentPaymentDelayedApiObject : BunqModel /// The reference to the uploaded file to attach to this note. /// [JsonProperty(PropertyName = "attachment_id")] - public int? AttachmentId { get; set; } + public long? AttachmentId { get; set; } /// /// The id of the note. /// [JsonProperty(PropertyName = "id")] - public int? Id { get; set; } + public long? Id { get; set; } /// /// The timestamp of the note's creation. /// @@ -75,7 +75,7 @@ public class NoteAttachmentPaymentDelayedApiObject : BunqModel /// /// The reference to the uploaded file to attach to this note. /// Optional description of the attachment. - public static BunqResponse Create(int paymentDelayedId, int? attachmentId, int? monetaryAccountId= null, string description = null, IDictionary customHeaders = null) + public static BunqResponse Create(long paymentDelayedId, long? attachmentId, long? monetaryAccountId= null, string description = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -96,7 +96,7 @@ public static BunqResponse Create(int paymentDelayedId, int? attachmentId, /// /// /// Optional description of the attachment. - public static BunqResponse Update(int paymentDelayedId, int noteAttachmentPaymentDelayedId, int? monetaryAccountId= null, string description = null, IDictionary customHeaders = null) + public static BunqResponse Update(long paymentDelayedId, long noteAttachmentPaymentDelayedId, long? monetaryAccountId= null, string description = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -115,7 +115,7 @@ public static BunqResponse Update(int paymentDelayedId, int noteAttachmentP /// /// - public static BunqResponse Delete(int paymentDelayedId, int noteAttachmentPaymentDelayedId, int? monetaryAccountId= null, IDictionary customHeaders = null) + public static BunqResponse Delete(long paymentDelayedId, long noteAttachmentPaymentDelayedId, long? monetaryAccountId= null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -127,7 +127,7 @@ public static BunqResponse Delete(int paymentDelayedId, int noteAttachme /// /// - public static BunqResponse> List(int paymentDelayedId, int? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) + public static BunqResponse> List(long paymentDelayedId, long? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) { if (urlParams == null) urlParams = new Dictionary(); if (customHeaders == null) customHeaders = new Dictionary(); @@ -140,7 +140,7 @@ public static BunqResponse> List(int /// /// - public static BunqResponse Get(int paymentDelayedId, int noteAttachmentPaymentDelayedId, int? monetaryAccountId= null, IDictionary customHeaders = null) + public static BunqResponse Get(long paymentDelayedId, long noteAttachmentPaymentDelayedId, long? monetaryAccountId= null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); diff --git a/BunqSdk/Model/Generated/Endpoint/NoteAttachmentPaymentSuspendedApiObject.cs b/BunqSdk/Model/Generated/Endpoint/NoteAttachmentPaymentSuspendedApiObject.cs new file mode 100644 index 00000000..338f60e8 --- /dev/null +++ b/BunqSdk/Model/Generated/Endpoint/NoteAttachmentPaymentSuspendedApiObject.cs @@ -0,0 +1,198 @@ +using Bunq.Sdk.Context; +using Bunq.Sdk.Http; +using Bunq.Sdk.Json; +using Bunq.Sdk.Model.Core; +using Bunq.Sdk.Model.Generated.Object; +using Newtonsoft.Json; +using System.Collections.Generic; +using System.Text; +using System; + +namespace Bunq.Sdk.Model.Generated.Endpoint +{ + /// + /// Used to manage attachment notes. + /// + public class NoteAttachmentPaymentSuspendedApiObject : BunqModel + { + /// + /// Endpoint constants. + /// + protected const string ENDPOINT_URL_CREATE = "user/{0}/monetary-account/{1}/payment-suspended/{2}/note-attachment"; + protected const string ENDPOINT_URL_UPDATE = "user/{0}/monetary-account/{1}/payment-suspended/{2}/note-attachment/{3}"; + protected const string ENDPOINT_URL_DELETE = "user/{0}/monetary-account/{1}/payment-suspended/{2}/note-attachment/{3}"; + protected const string ENDPOINT_URL_LISTING = "user/{0}/monetary-account/{1}/payment-suspended/{2}/note-attachment"; + protected const string ENDPOINT_URL_READ = "user/{0}/monetary-account/{1}/payment-suspended/{2}/note-attachment/{3}"; + + /// + /// Field constants. + /// + public const string FIELD_DESCRIPTION = "description"; + public const string FIELD_ATTACHMENT_ID = "attachment_id"; + + /// + /// Object type. + /// + private const string OBJECT_TYPE_GET = "NoteAttachment"; + + /// + /// Optional description of the attachment. + /// + [JsonProperty(PropertyName = "description")] + public string Description { get; set; } + /// + /// The reference to the uploaded file to attach to this note. + /// + [JsonProperty(PropertyName = "attachment_id")] + public long? AttachmentId { get; set; } + /// + /// The id of the note. + /// + [JsonProperty(PropertyName = "id")] + public long? Id { get; set; } + /// + /// The timestamp of the note's creation. + /// + [JsonProperty(PropertyName = "created")] + public string Created { get; set; } + /// + /// The timestamp of the note's last update. + /// + [JsonProperty(PropertyName = "updated")] + public string Updated { get; set; } + /// + /// The label of the user who created this note. + /// + [JsonProperty(PropertyName = "label_user_creator")] + public MonetaryAccountReference LabelUserCreator { get; set; } + /// + /// The attachment attached to the note. + /// + [JsonProperty(PropertyName = "attachment")] + public List Attachment { get; set; } + + /// + /// + /// The reference to the uploaded file to attach to this note. + /// Optional description of the attachment. + public static BunqResponse Create(long paymentSuspendedId, long? attachmentId, long? monetaryAccountId= null, string description = null, IDictionary customHeaders = null) + { + if (customHeaders == null) customHeaders = new Dictionary(); + + var apiClient = new ApiClient(GetApiContext()); + + var requestMap = new Dictionary + { + {FIELD_DESCRIPTION, description}, + {FIELD_ATTACHMENT_ID, attachmentId}, + }; + + var requestBytes = Encoding.UTF8.GetBytes(BunqJsonConvert.SerializeObject(requestMap)); + var responseRaw = apiClient.Post(string.Format(ENDPOINT_URL_CREATE, DetermineUserId(), DetermineMonetaryAccountId(monetaryAccountId), paymentSuspendedId), requestBytes, customHeaders); + + return ProcessForId(responseRaw); + } + + /// + /// + /// Optional description of the attachment. + public static BunqResponse Update(long paymentSuspendedId, long noteAttachmentPaymentSuspendedId, long? monetaryAccountId= null, string description = null, IDictionary customHeaders = null) + { + if (customHeaders == null) customHeaders = new Dictionary(); + + var apiClient = new ApiClient(GetApiContext()); + + var requestMap = new Dictionary + { + {FIELD_DESCRIPTION, description}, + }; + + var requestBytes = Encoding.UTF8.GetBytes(BunqJsonConvert.SerializeObject(requestMap)); + var responseRaw = apiClient.Put(string.Format(ENDPOINT_URL_UPDATE, DetermineUserId(), DetermineMonetaryAccountId(monetaryAccountId), paymentSuspendedId, noteAttachmentPaymentSuspendedId), requestBytes, customHeaders); + + return ProcessForId(responseRaw); + } + + /// + /// + public static BunqResponse Delete(long paymentSuspendedId, long noteAttachmentPaymentSuspendedId, long? monetaryAccountId= null, IDictionary customHeaders = null) + { + if (customHeaders == null) customHeaders = new Dictionary(); + + var apiClient = new ApiClient(GetApiContext()); + var responseRaw = apiClient.Delete(string.Format(ENDPOINT_URL_DELETE, DetermineUserId(), DetermineMonetaryAccountId(monetaryAccountId), paymentSuspendedId, noteAttachmentPaymentSuspendedId), customHeaders); + + return new BunqResponse(null, responseRaw.Headers); + } + + /// + /// + public static BunqResponse> List(long paymentSuspendedId, long? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) + { + if (urlParams == null) urlParams = new Dictionary(); + if (customHeaders == null) customHeaders = new Dictionary(); + + var apiClient = new ApiClient(GetApiContext()); + var responseRaw = apiClient.Get(string.Format(ENDPOINT_URL_LISTING, DetermineUserId(), DetermineMonetaryAccountId(monetaryAccountId), paymentSuspendedId), urlParams, customHeaders); + + return FromJsonList(responseRaw, OBJECT_TYPE_GET); + } + + /// + /// + public static BunqResponse Get(long paymentSuspendedId, long noteAttachmentPaymentSuspendedId, long? monetaryAccountId= null, IDictionary customHeaders = null) + { + if (customHeaders == null) customHeaders = new Dictionary(); + + var apiClient = new ApiClient(GetApiContext()); + var responseRaw = apiClient.Get(string.Format(ENDPOINT_URL_READ, DetermineUserId(), DetermineMonetaryAccountId(monetaryAccountId), paymentSuspendedId, noteAttachmentPaymentSuspendedId), new Dictionary(), customHeaders); + + return FromJson(responseRaw, OBJECT_TYPE_GET); + } + + + /// + /// + public override bool IsAllFieldNull() + { + if (this.Id != null) + { + return false; + } + + if (this.Created != null) + { + return false; + } + + if (this.Updated != null) + { + return false; + } + + if (this.LabelUserCreator != null) + { + return false; + } + + if (this.Description != null) + { + return false; + } + + if (this.Attachment != null) + { + return false; + } + + return true; + } + + /// + /// + public static NoteAttachmentPaymentSuspendedApiObject CreateFromJsonString(string json) + { + return BunqModel.CreateFromJsonString(json); + } + } +} diff --git a/BunqSdk/Model/Generated/Endpoint/NoteAttachmentRequestInquiryApiObject.cs b/BunqSdk/Model/Generated/Endpoint/NoteAttachmentRequestInquiryApiObject.cs index d7b00280..390255a6 100644 --- a/BunqSdk/Model/Generated/Endpoint/NoteAttachmentRequestInquiryApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/NoteAttachmentRequestInquiryApiObject.cs @@ -44,12 +44,12 @@ public class NoteAttachmentRequestInquiryApiObject : BunqModel /// The reference to the uploaded file to attach to this note. /// [JsonProperty(PropertyName = "attachment_id")] - public int? AttachmentId { get; set; } + public long? AttachmentId { get; set; } /// /// The id of the note. /// [JsonProperty(PropertyName = "id")] - public int? Id { get; set; } + public long? Id { get; set; } /// /// The timestamp of the note's creation. /// @@ -75,7 +75,7 @@ public class NoteAttachmentRequestInquiryApiObject : BunqModel /// /// The reference to the uploaded file to attach to this note. /// Optional description of the attachment. - public static BunqResponse Create(int requestInquiryId, int? attachmentId, int? monetaryAccountId= null, string description = null, IDictionary customHeaders = null) + public static BunqResponse Create(long requestInquiryId, long? attachmentId, long? monetaryAccountId= null, string description = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -96,7 +96,7 @@ public static BunqResponse Create(int requestInquiryId, int? attachmentId, /// /// /// Optional description of the attachment. - public static BunqResponse Update(int requestInquiryId, int noteAttachmentRequestInquiryId, int? monetaryAccountId= null, string description = null, IDictionary customHeaders = null) + public static BunqResponse Update(long requestInquiryId, long noteAttachmentRequestInquiryId, long? monetaryAccountId= null, string description = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -115,7 +115,7 @@ public static BunqResponse Update(int requestInquiryId, int noteAttachmentR /// /// - public static BunqResponse Delete(int requestInquiryId, int noteAttachmentRequestInquiryId, int? monetaryAccountId= null, IDictionary customHeaders = null) + public static BunqResponse Delete(long requestInquiryId, long noteAttachmentRequestInquiryId, long? monetaryAccountId= null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -128,7 +128,7 @@ public static BunqResponse Delete(int requestInquiryId, int noteAttachme /// /// Manage the notes for a given user. /// - public static BunqResponse> List(int requestInquiryId, int? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) + public static BunqResponse> List(long requestInquiryId, long? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) { if (urlParams == null) urlParams = new Dictionary(); if (customHeaders == null) customHeaders = new Dictionary(); @@ -141,7 +141,7 @@ public static BunqResponse> List(int /// /// - public static BunqResponse Get(int requestInquiryId, int noteAttachmentRequestInquiryId, int? monetaryAccountId= null, IDictionary customHeaders = null) + public static BunqResponse Get(long requestInquiryId, long noteAttachmentRequestInquiryId, long? monetaryAccountId= null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); diff --git a/BunqSdk/Model/Generated/Endpoint/NoteAttachmentRequestInquiryBatchApiObject.cs b/BunqSdk/Model/Generated/Endpoint/NoteAttachmentRequestInquiryBatchApiObject.cs index 5babdfe3..6a9bb08f 100644 --- a/BunqSdk/Model/Generated/Endpoint/NoteAttachmentRequestInquiryBatchApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/NoteAttachmentRequestInquiryBatchApiObject.cs @@ -44,12 +44,12 @@ public class NoteAttachmentRequestInquiryBatchApiObject : BunqModel /// The reference to the uploaded file to attach to this note. /// [JsonProperty(PropertyName = "attachment_id")] - public int? AttachmentId { get; set; } + public long? AttachmentId { get; set; } /// /// The id of the note. /// [JsonProperty(PropertyName = "id")] - public int? Id { get; set; } + public long? Id { get; set; } /// /// The timestamp of the note's creation. /// @@ -75,7 +75,7 @@ public class NoteAttachmentRequestInquiryBatchApiObject : BunqModel /// /// The reference to the uploaded file to attach to this note. /// Optional description of the attachment. - public static BunqResponse Create(int requestInquiryBatchId, int? attachmentId, int? monetaryAccountId= null, string description = null, IDictionary customHeaders = null) + public static BunqResponse Create(long requestInquiryBatchId, long? attachmentId, long? monetaryAccountId= null, string description = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -96,7 +96,7 @@ public static BunqResponse Create(int requestInquiryBatchId, int? attachmen /// /// /// Optional description of the attachment. - public static BunqResponse Update(int requestInquiryBatchId, int noteAttachmentRequestInquiryBatchId, int? monetaryAccountId= null, string description = null, IDictionary customHeaders = null) + public static BunqResponse Update(long requestInquiryBatchId, long noteAttachmentRequestInquiryBatchId, long? monetaryAccountId= null, string description = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -115,7 +115,7 @@ public static BunqResponse Update(int requestInquiryBatchId, int noteAttach /// /// - public static BunqResponse Delete(int requestInquiryBatchId, int noteAttachmentRequestInquiryBatchId, int? monetaryAccountId= null, IDictionary customHeaders = null) + public static BunqResponse Delete(long requestInquiryBatchId, long noteAttachmentRequestInquiryBatchId, long? monetaryAccountId= null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -128,7 +128,7 @@ public static BunqResponse Delete(int requestInquiryBatchId, int noteAtt /// /// Manage the notes for a given user. /// - public static BunqResponse> List(int requestInquiryBatchId, int? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) + public static BunqResponse> List(long requestInquiryBatchId, long? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) { if (urlParams == null) urlParams = new Dictionary(); if (customHeaders == null) customHeaders = new Dictionary(); @@ -141,7 +141,7 @@ public static BunqResponse> Lis /// /// - public static BunqResponse Get(int requestInquiryBatchId, int noteAttachmentRequestInquiryBatchId, int? monetaryAccountId= null, IDictionary customHeaders = null) + public static BunqResponse Get(long requestInquiryBatchId, long noteAttachmentRequestInquiryBatchId, long? monetaryAccountId= null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); diff --git a/BunqSdk/Model/Generated/Endpoint/NoteAttachmentRequestResponseApiObject.cs b/BunqSdk/Model/Generated/Endpoint/NoteAttachmentRequestResponseApiObject.cs index d033a6b6..a9b73232 100644 --- a/BunqSdk/Model/Generated/Endpoint/NoteAttachmentRequestResponseApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/NoteAttachmentRequestResponseApiObject.cs @@ -44,12 +44,12 @@ public class NoteAttachmentRequestResponseApiObject : BunqModel /// The reference to the uploaded file to attach to this note. /// [JsonProperty(PropertyName = "attachment_id")] - public int? AttachmentId { get; set; } + public long? AttachmentId { get; set; } /// /// The id of the note. /// [JsonProperty(PropertyName = "id")] - public int? Id { get; set; } + public long? Id { get; set; } /// /// The timestamp of the note's creation. /// @@ -75,7 +75,7 @@ public class NoteAttachmentRequestResponseApiObject : BunqModel /// /// The reference to the uploaded file to attach to this note. /// Optional description of the attachment. - public static BunqResponse Create(int requestResponseId, int? attachmentId, int? monetaryAccountId= null, string description = null, IDictionary customHeaders = null) + public static BunqResponse Create(long requestResponseId, long? attachmentId, long? monetaryAccountId= null, string description = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -96,7 +96,7 @@ public static BunqResponse Create(int requestResponseId, int? attachmentId, /// /// /// Optional description of the attachment. - public static BunqResponse Update(int requestResponseId, int noteAttachmentRequestResponseId, int? monetaryAccountId= null, string description = null, IDictionary customHeaders = null) + public static BunqResponse Update(long requestResponseId, long noteAttachmentRequestResponseId, long? monetaryAccountId= null, string description = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -115,7 +115,7 @@ public static BunqResponse Update(int requestResponseId, int noteAttachment /// /// - public static BunqResponse Delete(int requestResponseId, int noteAttachmentRequestResponseId, int? monetaryAccountId= null, IDictionary customHeaders = null) + public static BunqResponse Delete(long requestResponseId, long noteAttachmentRequestResponseId, long? monetaryAccountId= null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -128,7 +128,7 @@ public static BunqResponse Delete(int requestResponseId, int noteAttachm /// /// Manage the notes for a given user. /// - public static BunqResponse> List(int requestResponseId, int? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) + public static BunqResponse> List(long requestResponseId, long? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) { if (urlParams == null) urlParams = new Dictionary(); if (customHeaders == null) customHeaders = new Dictionary(); @@ -141,7 +141,7 @@ public static BunqResponse> List(in /// /// - public static BunqResponse Get(int requestResponseId, int noteAttachmentRequestResponseId, int? monetaryAccountId= null, IDictionary customHeaders = null) + public static BunqResponse Get(long requestResponseId, long noteAttachmentRequestResponseId, long? monetaryAccountId= null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); diff --git a/BunqSdk/Model/Generated/Endpoint/NoteAttachmentScheduleInstanceApiObject.cs b/BunqSdk/Model/Generated/Endpoint/NoteAttachmentScheduleInstanceApiObject.cs index 9e8178d3..b2c2509f 100644 --- a/BunqSdk/Model/Generated/Endpoint/NoteAttachmentScheduleInstanceApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/NoteAttachmentScheduleInstanceApiObject.cs @@ -44,12 +44,12 @@ public class NoteAttachmentScheduleInstanceApiObject : BunqModel /// The reference to the uploaded file to attach to this note. /// [JsonProperty(PropertyName = "attachment_id")] - public int? AttachmentId { get; set; } + public long? AttachmentId { get; set; } /// /// The id of the note. /// [JsonProperty(PropertyName = "id")] - public int? Id { get; set; } + public long? Id { get; set; } /// /// The timestamp of the note's creation. /// @@ -75,7 +75,7 @@ public class NoteAttachmentScheduleInstanceApiObject : BunqModel /// /// The reference to the uploaded file to attach to this note. /// Optional description of the attachment. - public static BunqResponse Create(int scheduleId, int scheduleInstanceId, int? attachmentId, int? monetaryAccountId= null, string description = null, IDictionary customHeaders = null) + public static BunqResponse Create(long scheduleId, long scheduleInstanceId, long? attachmentId, long? monetaryAccountId= null, string description = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -96,7 +96,7 @@ public static BunqResponse Create(int scheduleId, int scheduleInstanceId, i /// /// /// Optional description of the attachment. - public static BunqResponse Update(int scheduleId, int scheduleInstanceId, int noteAttachmentScheduleInstanceId, int? monetaryAccountId= null, string description = null, IDictionary customHeaders = null) + public static BunqResponse Update(long scheduleId, long scheduleInstanceId, long noteAttachmentScheduleInstanceId, long? monetaryAccountId= null, string description = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -115,7 +115,7 @@ public static BunqResponse Update(int scheduleId, int scheduleInstanceId, i /// /// - public static BunqResponse Delete(int scheduleId, int scheduleInstanceId, int noteAttachmentScheduleInstanceId, int? monetaryAccountId= null, IDictionary customHeaders = null) + public static BunqResponse Delete(long scheduleId, long scheduleInstanceId, long noteAttachmentScheduleInstanceId, long? monetaryAccountId= null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -128,7 +128,7 @@ public static BunqResponse Delete(int scheduleId, int scheduleInstanceId /// /// Manage the notes for a given user. /// - public static BunqResponse> List(int scheduleId, int scheduleInstanceId, int? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) + public static BunqResponse> List(long scheduleId, long scheduleInstanceId, long? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) { if (urlParams == null) urlParams = new Dictionary(); if (customHeaders == null) customHeaders = new Dictionary(); @@ -141,7 +141,7 @@ public static BunqResponse> List(i /// /// - public static BunqResponse Get(int scheduleId, int scheduleInstanceId, int noteAttachmentScheduleInstanceId, int? monetaryAccountId= null, IDictionary customHeaders = null) + public static BunqResponse Get(long scheduleId, long scheduleInstanceId, long noteAttachmentScheduleInstanceId, long? monetaryAccountId= null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); diff --git a/BunqSdk/Model/Generated/Endpoint/NoteAttachmentSchedulePaymentApiObject.cs b/BunqSdk/Model/Generated/Endpoint/NoteAttachmentSchedulePaymentApiObject.cs index 675d57d9..956bd9db 100644 --- a/BunqSdk/Model/Generated/Endpoint/NoteAttachmentSchedulePaymentApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/NoteAttachmentSchedulePaymentApiObject.cs @@ -44,12 +44,12 @@ public class NoteAttachmentSchedulePaymentApiObject : BunqModel /// The reference to the uploaded file to attach to this note. /// [JsonProperty(PropertyName = "attachment_id")] - public int? AttachmentId { get; set; } + public long? AttachmentId { get; set; } /// /// The id of the note. /// [JsonProperty(PropertyName = "id")] - public int? Id { get; set; } + public long? Id { get; set; } /// /// The timestamp of the note's creation. /// @@ -75,7 +75,7 @@ public class NoteAttachmentSchedulePaymentApiObject : BunqModel /// /// The reference to the uploaded file to attach to this note. /// Optional description of the attachment. - public static BunqResponse Create(int schedulePaymentId, int? attachmentId, int? monetaryAccountId= null, string description = null, IDictionary customHeaders = null) + public static BunqResponse Create(long schedulePaymentId, long? attachmentId, long? monetaryAccountId= null, string description = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -96,7 +96,7 @@ public static BunqResponse Create(int schedulePaymentId, int? attachmentId, /// /// /// Optional description of the attachment. - public static BunqResponse Update(int schedulePaymentId, int noteAttachmentSchedulePaymentId, int? monetaryAccountId= null, string description = null, IDictionary customHeaders = null) + public static BunqResponse Update(long schedulePaymentId, long noteAttachmentSchedulePaymentId, long? monetaryAccountId= null, string description = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -115,7 +115,7 @@ public static BunqResponse Update(int schedulePaymentId, int noteAttachment /// /// - public static BunqResponse Delete(int schedulePaymentId, int noteAttachmentSchedulePaymentId, int? monetaryAccountId= null, IDictionary customHeaders = null) + public static BunqResponse Delete(long schedulePaymentId, long noteAttachmentSchedulePaymentId, long? monetaryAccountId= null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -128,7 +128,7 @@ public static BunqResponse Delete(int schedulePaymentId, int noteAttachm /// /// Manage the notes for a given user. /// - public static BunqResponse> List(int schedulePaymentId, int? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) + public static BunqResponse> List(long schedulePaymentId, long? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) { if (urlParams == null) urlParams = new Dictionary(); if (customHeaders == null) customHeaders = new Dictionary(); @@ -141,7 +141,7 @@ public static BunqResponse> List(in /// /// - public static BunqResponse Get(int schedulePaymentId, int noteAttachmentSchedulePaymentId, int? monetaryAccountId= null, IDictionary customHeaders = null) + public static BunqResponse Get(long schedulePaymentId, long noteAttachmentSchedulePaymentId, long? monetaryAccountId= null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); diff --git a/BunqSdk/Model/Generated/Endpoint/NoteAttachmentSchedulePaymentBatchApiObject.cs b/BunqSdk/Model/Generated/Endpoint/NoteAttachmentSchedulePaymentBatchApiObject.cs index ce1a8026..ca257e93 100644 --- a/BunqSdk/Model/Generated/Endpoint/NoteAttachmentSchedulePaymentBatchApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/NoteAttachmentSchedulePaymentBatchApiObject.cs @@ -44,12 +44,12 @@ public class NoteAttachmentSchedulePaymentBatchApiObject : BunqModel /// The reference to the uploaded file to attach to this note. /// [JsonProperty(PropertyName = "attachment_id")] - public int? AttachmentId { get; set; } + public long? AttachmentId { get; set; } /// /// The id of the note. /// [JsonProperty(PropertyName = "id")] - public int? Id { get; set; } + public long? Id { get; set; } /// /// The timestamp of the note's creation. /// @@ -75,7 +75,7 @@ public class NoteAttachmentSchedulePaymentBatchApiObject : BunqModel /// /// The reference to the uploaded file to attach to this note. /// Optional description of the attachment. - public static BunqResponse Create(int schedulePaymentBatchId, int? attachmentId, int? monetaryAccountId= null, string description = null, IDictionary customHeaders = null) + public static BunqResponse Create(long schedulePaymentBatchId, long? attachmentId, long? monetaryAccountId= null, string description = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -96,7 +96,7 @@ public static BunqResponse Create(int schedulePaymentBatchId, int? attachme /// /// /// Optional description of the attachment. - public static BunqResponse Update(int schedulePaymentBatchId, int noteAttachmentSchedulePaymentBatchId, int? monetaryAccountId= null, string description = null, IDictionary customHeaders = null) + public static BunqResponse Update(long schedulePaymentBatchId, long noteAttachmentSchedulePaymentBatchId, long? monetaryAccountId= null, string description = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -115,7 +115,7 @@ public static BunqResponse Update(int schedulePaymentBatchId, int noteAttac /// /// - public static BunqResponse Delete(int schedulePaymentBatchId, int noteAttachmentSchedulePaymentBatchId, int? monetaryAccountId= null, IDictionary customHeaders = null) + public static BunqResponse Delete(long schedulePaymentBatchId, long noteAttachmentSchedulePaymentBatchId, long? monetaryAccountId= null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -128,7 +128,7 @@ public static BunqResponse Delete(int schedulePaymentBatchId, int noteAt /// /// Manage the notes for a given user. /// - public static BunqResponse> List(int schedulePaymentBatchId, int? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) + public static BunqResponse> List(long schedulePaymentBatchId, long? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) { if (urlParams == null) urlParams = new Dictionary(); if (customHeaders == null) customHeaders = new Dictionary(); @@ -141,7 +141,7 @@ public static BunqResponse> Li /// /// - public static BunqResponse Get(int schedulePaymentBatchId, int noteAttachmentSchedulePaymentBatchId, int? monetaryAccountId= null, IDictionary customHeaders = null) + public static BunqResponse Get(long schedulePaymentBatchId, long noteAttachmentSchedulePaymentBatchId, long? monetaryAccountId= null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); diff --git a/BunqSdk/Model/Generated/Endpoint/NoteAttachmentScheduleRequestApiObject.cs b/BunqSdk/Model/Generated/Endpoint/NoteAttachmentScheduleRequestApiObject.cs index 6aacb2ba..16d8c536 100644 --- a/BunqSdk/Model/Generated/Endpoint/NoteAttachmentScheduleRequestApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/NoteAttachmentScheduleRequestApiObject.cs @@ -44,12 +44,12 @@ public class NoteAttachmentScheduleRequestApiObject : BunqModel /// The reference to the uploaded file to attach to this note. /// [JsonProperty(PropertyName = "attachment_id")] - public int? AttachmentId { get; set; } + public long? AttachmentId { get; set; } /// /// The id of the note. /// [JsonProperty(PropertyName = "id")] - public int? Id { get; set; } + public long? Id { get; set; } /// /// The timestamp of the note's creation. /// @@ -75,7 +75,7 @@ public class NoteAttachmentScheduleRequestApiObject : BunqModel /// /// The reference to the uploaded file to attach to this note. /// Optional description of the attachment. - public static BunqResponse Create(int scheduleRequestInquiryId, int? attachmentId, int? monetaryAccountId= null, string description = null, IDictionary customHeaders = null) + public static BunqResponse Create(long scheduleRequestInquiryId, long? attachmentId, long? monetaryAccountId= null, string description = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -96,7 +96,7 @@ public static BunqResponse Create(int scheduleRequestInquiryId, int? attach /// /// /// Optional description of the attachment. - public static BunqResponse Update(int scheduleRequestInquiryId, int noteAttachmentScheduleRequestId, int? monetaryAccountId= null, string description = null, IDictionary customHeaders = null) + public static BunqResponse Update(long scheduleRequestInquiryId, long noteAttachmentScheduleRequestId, long? monetaryAccountId= null, string description = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -115,7 +115,7 @@ public static BunqResponse Update(int scheduleRequestInquiryId, int noteAtt /// /// - public static BunqResponse Delete(int scheduleRequestInquiryId, int noteAttachmentScheduleRequestId, int? monetaryAccountId= null, IDictionary customHeaders = null) + public static BunqResponse Delete(long scheduleRequestInquiryId, long noteAttachmentScheduleRequestId, long? monetaryAccountId= null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -128,7 +128,7 @@ public static BunqResponse Delete(int scheduleRequestInquiryId, int note /// /// Manage the notes for a scheduled request. /// - public static BunqResponse> List(int scheduleRequestInquiryId, int? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) + public static BunqResponse> List(long scheduleRequestInquiryId, long? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) { if (urlParams == null) urlParams = new Dictionary(); if (customHeaders == null) customHeaders = new Dictionary(); @@ -141,7 +141,7 @@ public static BunqResponse> List(in /// /// - public static BunqResponse Get(int scheduleRequestInquiryId, int noteAttachmentScheduleRequestId, int? monetaryAccountId= null, IDictionary customHeaders = null) + public static BunqResponse Get(long scheduleRequestInquiryId, long noteAttachmentScheduleRequestId, long? monetaryAccountId= null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); diff --git a/BunqSdk/Model/Generated/Endpoint/NoteAttachmentScheduleRequestBatchApiObject.cs b/BunqSdk/Model/Generated/Endpoint/NoteAttachmentScheduleRequestBatchApiObject.cs index 673d207f..dd50bf7e 100644 --- a/BunqSdk/Model/Generated/Endpoint/NoteAttachmentScheduleRequestBatchApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/NoteAttachmentScheduleRequestBatchApiObject.cs @@ -44,12 +44,12 @@ public class NoteAttachmentScheduleRequestBatchApiObject : BunqModel /// The reference to the uploaded file to attach to this note. /// [JsonProperty(PropertyName = "attachment_id")] - public int? AttachmentId { get; set; } + public long? AttachmentId { get; set; } /// /// The id of the note. /// [JsonProperty(PropertyName = "id")] - public int? Id { get; set; } + public long? Id { get; set; } /// /// The timestamp of the note's creation. /// @@ -75,7 +75,7 @@ public class NoteAttachmentScheduleRequestBatchApiObject : BunqModel /// /// The reference to the uploaded file to attach to this note. /// Optional description of the attachment. - public static BunqResponse Create(int scheduleRequestInquiryBatchId, int? attachmentId, int? monetaryAccountId= null, string description = null, IDictionary customHeaders = null) + public static BunqResponse Create(long scheduleRequestInquiryBatchId, long? attachmentId, long? monetaryAccountId= null, string description = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -96,7 +96,7 @@ public static BunqResponse Create(int scheduleRequestInquiryBatchId, int? a /// /// /// Optional description of the attachment. - public static BunqResponse Update(int scheduleRequestInquiryBatchId, int noteAttachmentScheduleRequestBatchId, int? monetaryAccountId= null, string description = null, IDictionary customHeaders = null) + public static BunqResponse Update(long scheduleRequestInquiryBatchId, long noteAttachmentScheduleRequestBatchId, long? monetaryAccountId= null, string description = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -115,7 +115,7 @@ public static BunqResponse Update(int scheduleRequestInquiryBatchId, int no /// /// - public static BunqResponse Delete(int scheduleRequestInquiryBatchId, int noteAttachmentScheduleRequestBatchId, int? monetaryAccountId= null, IDictionary customHeaders = null) + public static BunqResponse Delete(long scheduleRequestInquiryBatchId, long noteAttachmentScheduleRequestBatchId, long? monetaryAccountId= null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -128,7 +128,7 @@ public static BunqResponse Delete(int scheduleRequestInquiryBatchId, int /// /// Manage the notes for a scheduled request. /// - public static BunqResponse> List(int scheduleRequestInquiryBatchId, int? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) + public static BunqResponse> List(long scheduleRequestInquiryBatchId, long? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) { if (urlParams == null) urlParams = new Dictionary(); if (customHeaders == null) customHeaders = new Dictionary(); @@ -141,7 +141,7 @@ public static BunqResponse> Li /// /// - public static BunqResponse Get(int scheduleRequestInquiryBatchId, int noteAttachmentScheduleRequestBatchId, int? monetaryAccountId= null, IDictionary customHeaders = null) + public static BunqResponse Get(long scheduleRequestInquiryBatchId, long noteAttachmentScheduleRequestBatchId, long? monetaryAccountId= null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); diff --git a/BunqSdk/Model/Generated/Endpoint/NoteAttachmentSofortMerchantTransactionApiObject.cs b/BunqSdk/Model/Generated/Endpoint/NoteAttachmentSofortMerchantTransactionApiObject.cs index 69823e35..a7d6ea47 100644 --- a/BunqSdk/Model/Generated/Endpoint/NoteAttachmentSofortMerchantTransactionApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/NoteAttachmentSofortMerchantTransactionApiObject.cs @@ -44,12 +44,12 @@ public class NoteAttachmentSofortMerchantTransactionApiObject : BunqModel /// The reference to the uploaded file to attach to this note. /// [JsonProperty(PropertyName = "attachment_id")] - public int? AttachmentId { get; set; } + public long? AttachmentId { get; set; } /// /// The id of the note. /// [JsonProperty(PropertyName = "id")] - public int? Id { get; set; } + public long? Id { get; set; } /// /// The timestamp of the note's creation. /// @@ -75,7 +75,7 @@ public class NoteAttachmentSofortMerchantTransactionApiObject : BunqModel /// /// The reference to the uploaded file to attach to this note. /// Optional description of the attachment. - public static BunqResponse Create(int sofortMerchantTransactionId, int? attachmentId, int? monetaryAccountId= null, string description = null, IDictionary customHeaders = null) + public static BunqResponse Create(long sofortMerchantTransactionId, long? attachmentId, long? monetaryAccountId= null, string description = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -96,7 +96,7 @@ public static BunqResponse Create(int sofortMerchantTransactionId, int? att /// /// /// Optional description of the attachment. - public static BunqResponse Update(int sofortMerchantTransactionId, int noteAttachmentSofortMerchantTransactionId, int? monetaryAccountId= null, string description = null, IDictionary customHeaders = null) + public static BunqResponse Update(long sofortMerchantTransactionId, long noteAttachmentSofortMerchantTransactionId, long? monetaryAccountId= null, string description = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -115,7 +115,7 @@ public static BunqResponse Update(int sofortMerchantTransactionId, int note /// /// - public static BunqResponse Delete(int sofortMerchantTransactionId, int noteAttachmentSofortMerchantTransactionId, int? monetaryAccountId= null, IDictionary customHeaders = null) + public static BunqResponse Delete(long sofortMerchantTransactionId, long noteAttachmentSofortMerchantTransactionId, long? monetaryAccountId= null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -128,7 +128,7 @@ public static BunqResponse Delete(int sofortMerchantTransactionId, int n /// /// Manage the notes for a given user. /// - public static BunqResponse> List(int sofortMerchantTransactionId, int? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) + public static BunqResponse> List(long sofortMerchantTransactionId, long? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) { if (urlParams == null) urlParams = new Dictionary(); if (customHeaders == null) customHeaders = new Dictionary(); @@ -141,7 +141,7 @@ public static BunqResponse /// - public static BunqResponse Get(int sofortMerchantTransactionId, int noteAttachmentSofortMerchantTransactionId, int? monetaryAccountId= null, IDictionary customHeaders = null) + public static BunqResponse Get(long sofortMerchantTransactionId, long noteAttachmentSofortMerchantTransactionId, long? monetaryAccountId= null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); diff --git a/BunqSdk/Model/Generated/Endpoint/NoteAttachmentWhitelistResultApiObject.cs b/BunqSdk/Model/Generated/Endpoint/NoteAttachmentWhitelistResultApiObject.cs index 527380e3..b2a32ff2 100644 --- a/BunqSdk/Model/Generated/Endpoint/NoteAttachmentWhitelistResultApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/NoteAttachmentWhitelistResultApiObject.cs @@ -44,12 +44,12 @@ public class NoteAttachmentWhitelistResultApiObject : BunqModel /// The reference to the uploaded file to attach to this note. /// [JsonProperty(PropertyName = "attachment_id")] - public int? AttachmentId { get; set; } + public long? AttachmentId { get; set; } /// /// The id of the note. /// [JsonProperty(PropertyName = "id")] - public int? Id { get; set; } + public long? Id { get; set; } /// /// The timestamp of the note's creation. /// @@ -75,7 +75,7 @@ public class NoteAttachmentWhitelistResultApiObject : BunqModel /// /// The reference to the uploaded file to attach to this note. /// Optional description of the attachment. - public static BunqResponse Create(int whitelistId, int whitelistResultId, int? attachmentId, int? monetaryAccountId= null, string description = null, IDictionary customHeaders = null) + public static BunqResponse Create(long whitelistId, long whitelistResultId, long? attachmentId, long? monetaryAccountId= null, string description = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -96,7 +96,7 @@ public static BunqResponse Create(int whitelistId, int whitelistResultId, i /// /// /// Optional description of the attachment. - public static BunqResponse Update(int whitelistId, int whitelistResultId, int noteAttachmentWhitelistResultId, int? monetaryAccountId= null, string description = null, IDictionary customHeaders = null) + public static BunqResponse Update(long whitelistId, long whitelistResultId, long noteAttachmentWhitelistResultId, long? monetaryAccountId= null, string description = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -115,7 +115,7 @@ public static BunqResponse Update(int whitelistId, int whitelistResultId, i /// /// - public static BunqResponse Delete(int whitelistId, int whitelistResultId, int noteAttachmentWhitelistResultId, int? monetaryAccountId= null, IDictionary customHeaders = null) + public static BunqResponse Delete(long whitelistId, long whitelistResultId, long noteAttachmentWhitelistResultId, long? monetaryAccountId= null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -128,7 +128,7 @@ public static BunqResponse Delete(int whitelistId, int whitelistResultId /// /// Manage the notes for a given user. /// - public static BunqResponse> List(int whitelistId, int whitelistResultId, int? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) + public static BunqResponse> List(long whitelistId, long whitelistResultId, long? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) { if (urlParams == null) urlParams = new Dictionary(); if (customHeaders == null) customHeaders = new Dictionary(); @@ -141,7 +141,7 @@ public static BunqResponse> List(in /// /// - public static BunqResponse Get(int whitelistId, int whitelistResultId, int noteAttachmentWhitelistResultId, int? monetaryAccountId= null, IDictionary customHeaders = null) + public static BunqResponse Get(long whitelistId, long whitelistResultId, long noteAttachmentWhitelistResultId, long? monetaryAccountId= null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); diff --git a/BunqSdk/Model/Generated/Endpoint/NoteTextAdyenCardTransactionApiObject.cs b/BunqSdk/Model/Generated/Endpoint/NoteTextAdyenCardTransactionApiObject.cs index 11916844..d87b3c5c 100644 --- a/BunqSdk/Model/Generated/Endpoint/NoteTextAdyenCardTransactionApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/NoteTextAdyenCardTransactionApiObject.cs @@ -43,7 +43,7 @@ public class NoteTextAdyenCardTransactionApiObject : BunqModel /// The id of the note. /// [JsonProperty(PropertyName = "id")] - public int? Id { get; set; } + public long? Id { get; set; } /// /// The timestamp of the note's creation. /// @@ -63,7 +63,7 @@ public class NoteTextAdyenCardTransactionApiObject : BunqModel /// /// /// The content of the note. - public static BunqResponse Create(int adyenCardTransactionId, int? monetaryAccountId= null, string content = null, IDictionary customHeaders = null) + public static BunqResponse Create(long adyenCardTransactionId, long? monetaryAccountId= null, string content = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -83,7 +83,7 @@ public static BunqResponse Create(int adyenCardTransactionId, int? monetary /// /// /// The content of the note. - public static BunqResponse Update(int adyenCardTransactionId, int noteTextAdyenCardTransactionId, int? monetaryAccountId= null, string content = null, IDictionary customHeaders = null) + public static BunqResponse Update(long adyenCardTransactionId, long noteTextAdyenCardTransactionId, long? monetaryAccountId= null, string content = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -102,7 +102,7 @@ public static BunqResponse Update(int adyenCardTransactionId, int noteTextA /// /// - public static BunqResponse Delete(int adyenCardTransactionId, int noteTextAdyenCardTransactionId, int? monetaryAccountId= null, IDictionary customHeaders = null) + public static BunqResponse Delete(long adyenCardTransactionId, long noteTextAdyenCardTransactionId, long? monetaryAccountId= null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -114,7 +114,7 @@ public static BunqResponse Delete(int adyenCardTransactionId, int noteTe /// /// - public static BunqResponse> List(int adyenCardTransactionId, int? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) + public static BunqResponse> List(long adyenCardTransactionId, long? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) { if (urlParams == null) urlParams = new Dictionary(); if (customHeaders == null) customHeaders = new Dictionary(); @@ -127,7 +127,7 @@ public static BunqResponse> List(int /// /// - public static BunqResponse Get(int adyenCardTransactionId, int noteTextAdyenCardTransactionId, int? monetaryAccountId= null, IDictionary customHeaders = null) + public static BunqResponse Get(long adyenCardTransactionId, long noteTextAdyenCardTransactionId, long? monetaryAccountId= null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); diff --git a/BunqSdk/Model/Generated/Endpoint/NoteTextBankSwitchServiceNetherlandsIncomingPaymentApiObject.cs b/BunqSdk/Model/Generated/Endpoint/NoteTextBankSwitchServiceNetherlandsIncomingPaymentApiObject.cs index 2bc58308..44370894 100644 --- a/BunqSdk/Model/Generated/Endpoint/NoteTextBankSwitchServiceNetherlandsIncomingPaymentApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/NoteTextBankSwitchServiceNetherlandsIncomingPaymentApiObject.cs @@ -43,7 +43,7 @@ public class NoteTextBankSwitchServiceNetherlandsIncomingPaymentApiObject : Bunq /// The id of the note. /// [JsonProperty(PropertyName = "id")] - public int? Id { get; set; } + public long? Id { get; set; } /// /// The timestamp of the note's creation. /// @@ -63,7 +63,7 @@ public class NoteTextBankSwitchServiceNetherlandsIncomingPaymentApiObject : Bunq /// /// /// The content of the note. - public static BunqResponse Create(int switchServicePaymentId, int? monetaryAccountId= null, string content = null, IDictionary customHeaders = null) + public static BunqResponse Create(long switchServicePaymentId, long? monetaryAccountId= null, string content = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -83,7 +83,7 @@ public static BunqResponse Create(int switchServicePaymentId, int? monetary /// /// /// The content of the note. - public static BunqResponse Update(int switchServicePaymentId, int noteTextBankSwitchServiceNetherlandsIncomingPaymentId, int? monetaryAccountId= null, string content = null, IDictionary customHeaders = null) + public static BunqResponse Update(long switchServicePaymentId, long noteTextBankSwitchServiceNetherlandsIncomingPaymentId, long? monetaryAccountId= null, string content = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -102,7 +102,7 @@ public static BunqResponse Update(int switchServicePaymentId, int noteTextB /// /// - public static BunqResponse Delete(int switchServicePaymentId, int noteTextBankSwitchServiceNetherlandsIncomingPaymentId, int? monetaryAccountId= null, IDictionary customHeaders = null) + public static BunqResponse Delete(long switchServicePaymentId, long noteTextBankSwitchServiceNetherlandsIncomingPaymentId, long? monetaryAccountId= null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -115,7 +115,7 @@ public static BunqResponse Delete(int switchServicePaymentId, int noteTe /// /// Manage the notes for a given user. /// - public static BunqResponse> List(int switchServicePaymentId, int? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) + public static BunqResponse> List(long switchServicePaymentId, long? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) { if (urlParams == null) urlParams = new Dictionary(); if (customHeaders == null) customHeaders = new Dictionary(); @@ -128,7 +128,7 @@ public static BunqResponse /// - public static BunqResponse Get(int switchServicePaymentId, int noteTextBankSwitchServiceNetherlandsIncomingPaymentId, int? monetaryAccountId= null, IDictionary customHeaders = null) + public static BunqResponse Get(long switchServicePaymentId, long noteTextBankSwitchServiceNetherlandsIncomingPaymentId, long? monetaryAccountId= null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); diff --git a/BunqSdk/Model/Generated/Endpoint/NoteTextBunqMeFundraiserResultApiObject.cs b/BunqSdk/Model/Generated/Endpoint/NoteTextBunqMeFundraiserResultApiObject.cs index 4f2f6d7e..c71e1d45 100644 --- a/BunqSdk/Model/Generated/Endpoint/NoteTextBunqMeFundraiserResultApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/NoteTextBunqMeFundraiserResultApiObject.cs @@ -43,7 +43,7 @@ public class NoteTextBunqMeFundraiserResultApiObject : BunqModel /// The id of the note. /// [JsonProperty(PropertyName = "id")] - public int? Id { get; set; } + public long? Id { get; set; } /// /// The timestamp of the note's creation. /// @@ -63,7 +63,7 @@ public class NoteTextBunqMeFundraiserResultApiObject : BunqModel /// /// /// The content of the note. - public static BunqResponse Create(int bunqmeFundraiserResultId, int? monetaryAccountId= null, string content = null, IDictionary customHeaders = null) + public static BunqResponse Create(long bunqmeFundraiserResultId, long? monetaryAccountId= null, string content = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -83,7 +83,7 @@ public static BunqResponse Create(int bunqmeFundraiserResultId, int? moneta /// /// /// The content of the note. - public static BunqResponse Update(int bunqmeFundraiserResultId, int noteTextBunqMeFundraiserResultId, int? monetaryAccountId= null, string content = null, IDictionary customHeaders = null) + public static BunqResponse Update(long bunqmeFundraiserResultId, long noteTextBunqMeFundraiserResultId, long? monetaryAccountId= null, string content = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -102,7 +102,7 @@ public static BunqResponse Update(int bunqmeFundraiserResultId, int noteTex /// /// - public static BunqResponse Delete(int bunqmeFundraiserResultId, int noteTextBunqMeFundraiserResultId, int? monetaryAccountId= null, IDictionary customHeaders = null) + public static BunqResponse Delete(long bunqmeFundraiserResultId, long noteTextBunqMeFundraiserResultId, long? monetaryAccountId= null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -115,7 +115,7 @@ public static BunqResponse Delete(int bunqmeFundraiserResultId, int note /// /// Manage the notes for a given user. /// - public static BunqResponse> List(int bunqmeFundraiserResultId, int? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) + public static BunqResponse> List(long bunqmeFundraiserResultId, long? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) { if (urlParams == null) urlParams = new Dictionary(); if (customHeaders == null) customHeaders = new Dictionary(); @@ -128,7 +128,7 @@ public static BunqResponse> List(i /// /// - public static BunqResponse Get(int bunqmeFundraiserResultId, int noteTextBunqMeFundraiserResultId, int? monetaryAccountId= null, IDictionary customHeaders = null) + public static BunqResponse Get(long bunqmeFundraiserResultId, long noteTextBunqMeFundraiserResultId, long? monetaryAccountId= null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); diff --git a/BunqSdk/Model/Generated/Endpoint/NoteTextDraftPaymentApiObject.cs b/BunqSdk/Model/Generated/Endpoint/NoteTextDraftPaymentApiObject.cs index a2d22cee..cd78926a 100644 --- a/BunqSdk/Model/Generated/Endpoint/NoteTextDraftPaymentApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/NoteTextDraftPaymentApiObject.cs @@ -43,7 +43,7 @@ public class NoteTextDraftPaymentApiObject : BunqModel /// The id of the note. /// [JsonProperty(PropertyName = "id")] - public int? Id { get; set; } + public long? Id { get; set; } /// /// The timestamp of the note's creation. /// @@ -63,7 +63,7 @@ public class NoteTextDraftPaymentApiObject : BunqModel /// /// /// The content of the note. - public static BunqResponse Create(int draftPaymentId, int? monetaryAccountId= null, string content = null, IDictionary customHeaders = null) + public static BunqResponse Create(long draftPaymentId, long? monetaryAccountId= null, string content = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -83,7 +83,7 @@ public static BunqResponse Create(int draftPaymentId, int? monetaryAccountI /// /// /// The content of the note. - public static BunqResponse Update(int draftPaymentId, int noteTextDraftPaymentId, int? monetaryAccountId= null, string content = null, IDictionary customHeaders = null) + public static BunqResponse Update(long draftPaymentId, long noteTextDraftPaymentId, long? monetaryAccountId= null, string content = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -102,7 +102,7 @@ public static BunqResponse Update(int draftPaymentId, int noteTextDraftPaym /// /// - public static BunqResponse Delete(int draftPaymentId, int noteTextDraftPaymentId, int? monetaryAccountId= null, IDictionary customHeaders = null) + public static BunqResponse Delete(long draftPaymentId, long noteTextDraftPaymentId, long? monetaryAccountId= null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -115,7 +115,7 @@ public static BunqResponse Delete(int draftPaymentId, int noteTextDraftP /// /// Manage the notes for a given user. /// - public static BunqResponse> List(int draftPaymentId, int? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) + public static BunqResponse> List(long draftPaymentId, long? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) { if (urlParams == null) urlParams = new Dictionary(); if (customHeaders == null) customHeaders = new Dictionary(); @@ -128,7 +128,7 @@ public static BunqResponse> List(int draftPa /// /// - public static BunqResponse Get(int draftPaymentId, int noteTextDraftPaymentId, int? monetaryAccountId= null, IDictionary customHeaders = null) + public static BunqResponse Get(long draftPaymentId, long noteTextDraftPaymentId, long? monetaryAccountId= null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); diff --git a/BunqSdk/Model/Generated/Endpoint/NoteTextIdealMerchantTransactionApiObject.cs b/BunqSdk/Model/Generated/Endpoint/NoteTextIdealMerchantTransactionApiObject.cs index 8e9430fa..60ba2a39 100644 --- a/BunqSdk/Model/Generated/Endpoint/NoteTextIdealMerchantTransactionApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/NoteTextIdealMerchantTransactionApiObject.cs @@ -43,7 +43,7 @@ public class NoteTextIdealMerchantTransactionApiObject : BunqModel /// The id of the note. /// [JsonProperty(PropertyName = "id")] - public int? Id { get; set; } + public long? Id { get; set; } /// /// The timestamp of the note's creation. /// @@ -63,7 +63,7 @@ public class NoteTextIdealMerchantTransactionApiObject : BunqModel /// /// /// The content of the note. - public static BunqResponse Create(int idealMerchantTransactionId, int? monetaryAccountId= null, string content = null, IDictionary customHeaders = null) + public static BunqResponse Create(long idealMerchantTransactionId, long? monetaryAccountId= null, string content = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -83,7 +83,7 @@ public static BunqResponse Create(int idealMerchantTransactionId, int? mone /// /// /// The content of the note. - public static BunqResponse Update(int idealMerchantTransactionId, int noteTextIdealMerchantTransactionId, int? monetaryAccountId= null, string content = null, IDictionary customHeaders = null) + public static BunqResponse Update(long idealMerchantTransactionId, long noteTextIdealMerchantTransactionId, long? monetaryAccountId= null, string content = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -102,7 +102,7 @@ public static BunqResponse Update(int idealMerchantTransactionId, int noteT /// /// - public static BunqResponse Delete(int idealMerchantTransactionId, int noteTextIdealMerchantTransactionId, int? monetaryAccountId= null, IDictionary customHeaders = null) + public static BunqResponse Delete(long idealMerchantTransactionId, long noteTextIdealMerchantTransactionId, long? monetaryAccountId= null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -115,7 +115,7 @@ public static BunqResponse Delete(int idealMerchantTransactionId, int no /// /// Manage the notes for a given user. /// - public static BunqResponse> List(int idealMerchantTransactionId, int? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) + public static BunqResponse> List(long idealMerchantTransactionId, long? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) { if (urlParams == null) urlParams = new Dictionary(); if (customHeaders == null) customHeaders = new Dictionary(); @@ -128,7 +128,7 @@ public static BunqResponse> List /// /// - public static BunqResponse Get(int idealMerchantTransactionId, int noteTextIdealMerchantTransactionId, int? monetaryAccountId= null, IDictionary customHeaders = null) + public static BunqResponse Get(long idealMerchantTransactionId, long noteTextIdealMerchantTransactionId, long? monetaryAccountId= null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); diff --git a/BunqSdk/Model/Generated/Endpoint/NoteTextMasterCardActionApiObject.cs b/BunqSdk/Model/Generated/Endpoint/NoteTextMasterCardActionApiObject.cs index df978c1c..30246274 100644 --- a/BunqSdk/Model/Generated/Endpoint/NoteTextMasterCardActionApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/NoteTextMasterCardActionApiObject.cs @@ -43,7 +43,7 @@ public class NoteTextMasterCardActionApiObject : BunqModel /// The id of the note. /// [JsonProperty(PropertyName = "id")] - public int? Id { get; set; } + public long? Id { get; set; } /// /// The timestamp of the note's creation. /// @@ -63,7 +63,7 @@ public class NoteTextMasterCardActionApiObject : BunqModel /// /// /// The content of the note. - public static BunqResponse Create(int mastercardActionId, int? monetaryAccountId= null, string content = null, IDictionary customHeaders = null) + public static BunqResponse Create(long mastercardActionId, long? monetaryAccountId= null, string content = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -83,7 +83,7 @@ public static BunqResponse Create(int mastercardActionId, int? monetaryAcco /// /// /// The content of the note. - public static BunqResponse Update(int mastercardActionId, int noteTextMasterCardActionId, int? monetaryAccountId= null, string content = null, IDictionary customHeaders = null) + public static BunqResponse Update(long mastercardActionId, long noteTextMasterCardActionId, long? monetaryAccountId= null, string content = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -102,7 +102,7 @@ public static BunqResponse Update(int mastercardActionId, int noteTextMaste /// /// - public static BunqResponse Delete(int mastercardActionId, int noteTextMasterCardActionId, int? monetaryAccountId= null, IDictionary customHeaders = null) + public static BunqResponse Delete(long mastercardActionId, long noteTextMasterCardActionId, long? monetaryAccountId= null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -115,7 +115,7 @@ public static BunqResponse Delete(int mastercardActionId, int noteTextMa /// /// Manage the notes for a given user. /// - public static BunqResponse> List(int mastercardActionId, int? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) + public static BunqResponse> List(long mastercardActionId, long? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) { if (urlParams == null) urlParams = new Dictionary(); if (customHeaders == null) customHeaders = new Dictionary(); @@ -128,7 +128,7 @@ public static BunqResponse> List(int mas /// /// - public static BunqResponse Get(int mastercardActionId, int noteTextMasterCardActionId, int? monetaryAccountId= null, IDictionary customHeaders = null) + public static BunqResponse Get(long mastercardActionId, long noteTextMasterCardActionId, long? monetaryAccountId= null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); diff --git a/BunqSdk/Model/Generated/Endpoint/NoteTextOpenBankingMerchantTransactionApiObject.cs b/BunqSdk/Model/Generated/Endpoint/NoteTextOpenBankingMerchantTransactionApiObject.cs index 9eccb80b..dffdb87a 100644 --- a/BunqSdk/Model/Generated/Endpoint/NoteTextOpenBankingMerchantTransactionApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/NoteTextOpenBankingMerchantTransactionApiObject.cs @@ -43,7 +43,7 @@ public class NoteTextOpenBankingMerchantTransactionApiObject : BunqModel /// The id of the note. /// [JsonProperty(PropertyName = "id")] - public int? Id { get; set; } + public long? Id { get; set; } /// /// The timestamp of the note's creation. /// @@ -63,7 +63,7 @@ public class NoteTextOpenBankingMerchantTransactionApiObject : BunqModel /// /// /// The content of the note. - public static BunqResponse Create(int openBankingMerchantTransactionId, int? monetaryAccountId= null, string content = null, IDictionary customHeaders = null) + public static BunqResponse Create(long openBankingMerchantTransactionId, long? monetaryAccountId= null, string content = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -83,7 +83,7 @@ public static BunqResponse Create(int openBankingMerchantTransactionId, int /// /// /// The content of the note. - public static BunqResponse Update(int openBankingMerchantTransactionId, int noteTextOpenBankingMerchantTransactionId, int? monetaryAccountId= null, string content = null, IDictionary customHeaders = null) + public static BunqResponse Update(long openBankingMerchantTransactionId, long noteTextOpenBankingMerchantTransactionId, long? monetaryAccountId= null, string content = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -102,7 +102,7 @@ public static BunqResponse Update(int openBankingMerchantTransactionId, int /// /// - public static BunqResponse Delete(int openBankingMerchantTransactionId, int noteTextOpenBankingMerchantTransactionId, int? monetaryAccountId= null, IDictionary customHeaders = null) + public static BunqResponse Delete(long openBankingMerchantTransactionId, long noteTextOpenBankingMerchantTransactionId, long? monetaryAccountId= null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -114,7 +114,7 @@ public static BunqResponse Delete(int openBankingMerchantTransactionId, /// /// - public static BunqResponse> List(int openBankingMerchantTransactionId, int? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) + public static BunqResponse> List(long openBankingMerchantTransactionId, long? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) { if (urlParams == null) urlParams = new Dictionary(); if (customHeaders == null) customHeaders = new Dictionary(); @@ -127,7 +127,7 @@ public static BunqResponse /// /// - public static BunqResponse Get(int openBankingMerchantTransactionId, int noteTextOpenBankingMerchantTransactionId, int? monetaryAccountId= null, IDictionary customHeaders = null) + public static BunqResponse Get(long openBankingMerchantTransactionId, long noteTextOpenBankingMerchantTransactionId, long? monetaryAccountId= null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); diff --git a/BunqSdk/Model/Generated/Endpoint/NoteTextPaymentApiObject.cs b/BunqSdk/Model/Generated/Endpoint/NoteTextPaymentApiObject.cs index 369bca3b..6cb614d5 100644 --- a/BunqSdk/Model/Generated/Endpoint/NoteTextPaymentApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/NoteTextPaymentApiObject.cs @@ -43,7 +43,7 @@ public class NoteTextPaymentApiObject : BunqModel /// The id of the note. /// [JsonProperty(PropertyName = "id")] - public int? Id { get; set; } + public long? Id { get; set; } /// /// The timestamp of the note's creation. /// @@ -63,7 +63,7 @@ public class NoteTextPaymentApiObject : BunqModel /// /// /// The content of the note. - public static BunqResponse Create(int paymentId, int? monetaryAccountId= null, string content = null, IDictionary customHeaders = null) + public static BunqResponse Create(long paymentId, long? monetaryAccountId= null, string content = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -83,7 +83,7 @@ public static BunqResponse Create(int paymentId, int? monetaryAccountId= nu /// /// /// The content of the note. - public static BunqResponse Update(int paymentId, int noteTextPaymentId, int? monetaryAccountId= null, string content = null, IDictionary customHeaders = null) + public static BunqResponse Update(long paymentId, long noteTextPaymentId, long? monetaryAccountId= null, string content = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -102,7 +102,7 @@ public static BunqResponse Update(int paymentId, int noteTextPaymentId, int /// /// - public static BunqResponse Delete(int paymentId, int noteTextPaymentId, int? monetaryAccountId= null, IDictionary customHeaders = null) + public static BunqResponse Delete(long paymentId, long noteTextPaymentId, long? monetaryAccountId= null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -115,7 +115,7 @@ public static BunqResponse Delete(int paymentId, int noteTextPaymentId, /// /// Manage the notes for a given user. /// - public static BunqResponse> List(int paymentId, int? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) + public static BunqResponse> List(long paymentId, long? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) { if (urlParams == null) urlParams = new Dictionary(); if (customHeaders == null) customHeaders = new Dictionary(); @@ -128,7 +128,7 @@ public static BunqResponse> List(int paymentId, i /// /// - public static BunqResponse Get(int paymentId, int noteTextPaymentId, int? monetaryAccountId= null, IDictionary customHeaders = null) + public static BunqResponse Get(long paymentId, long noteTextPaymentId, long? monetaryAccountId= null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); diff --git a/BunqSdk/Model/Generated/Endpoint/NoteTextPaymentBatchApiObject.cs b/BunqSdk/Model/Generated/Endpoint/NoteTextPaymentBatchApiObject.cs index 963b9de3..274b0e94 100644 --- a/BunqSdk/Model/Generated/Endpoint/NoteTextPaymentBatchApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/NoteTextPaymentBatchApiObject.cs @@ -43,7 +43,7 @@ public class NoteTextPaymentBatchApiObject : BunqModel /// The id of the note. /// [JsonProperty(PropertyName = "id")] - public int? Id { get; set; } + public long? Id { get; set; } /// /// The timestamp of the note's creation. /// @@ -63,7 +63,7 @@ public class NoteTextPaymentBatchApiObject : BunqModel /// /// /// The content of the note. - public static BunqResponse Create(int paymentBatchId, int? monetaryAccountId= null, string content = null, IDictionary customHeaders = null) + public static BunqResponse Create(long paymentBatchId, long? monetaryAccountId= null, string content = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -83,7 +83,7 @@ public static BunqResponse Create(int paymentBatchId, int? monetaryAccountI /// /// /// The content of the note. - public static BunqResponse Update(int paymentBatchId, int noteTextPaymentBatchId, int? monetaryAccountId= null, string content = null, IDictionary customHeaders = null) + public static BunqResponse Update(long paymentBatchId, long noteTextPaymentBatchId, long? monetaryAccountId= null, string content = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -102,7 +102,7 @@ public static BunqResponse Update(int paymentBatchId, int noteTextPaymentBa /// /// - public static BunqResponse Delete(int paymentBatchId, int noteTextPaymentBatchId, int? monetaryAccountId= null, IDictionary customHeaders = null) + public static BunqResponse Delete(long paymentBatchId, long noteTextPaymentBatchId, long? monetaryAccountId= null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -115,7 +115,7 @@ public static BunqResponse Delete(int paymentBatchId, int noteTextPaymen /// /// Manage the notes for a given user. /// - public static BunqResponse> List(int paymentBatchId, int? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) + public static BunqResponse> List(long paymentBatchId, long? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) { if (urlParams == null) urlParams = new Dictionary(); if (customHeaders == null) customHeaders = new Dictionary(); @@ -128,7 +128,7 @@ public static BunqResponse> List(int payment /// /// - public static BunqResponse Get(int paymentBatchId, int noteTextPaymentBatchId, int? monetaryAccountId= null, IDictionary customHeaders = null) + public static BunqResponse Get(long paymentBatchId, long noteTextPaymentBatchId, long? monetaryAccountId= null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); diff --git a/BunqSdk/Model/Generated/Endpoint/NoteTextPaymentDelayedApiObject.cs b/BunqSdk/Model/Generated/Endpoint/NoteTextPaymentDelayedApiObject.cs index 578da6b0..fc08cd44 100644 --- a/BunqSdk/Model/Generated/Endpoint/NoteTextPaymentDelayedApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/NoteTextPaymentDelayedApiObject.cs @@ -43,7 +43,7 @@ public class NoteTextPaymentDelayedApiObject : BunqModel /// The id of the note. /// [JsonProperty(PropertyName = "id")] - public int? Id { get; set; } + public long? Id { get; set; } /// /// The timestamp of the note's creation. /// @@ -63,7 +63,7 @@ public class NoteTextPaymentDelayedApiObject : BunqModel /// /// /// The content of the note. - public static BunqResponse Create(int paymentDelayedId, int? monetaryAccountId= null, string content = null, IDictionary customHeaders = null) + public static BunqResponse Create(long paymentDelayedId, long? monetaryAccountId= null, string content = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -83,7 +83,7 @@ public static BunqResponse Create(int paymentDelayedId, int? monetaryAccoun /// /// /// The content of the note. - public static BunqResponse Update(int paymentDelayedId, int noteTextPaymentDelayedId, int? monetaryAccountId= null, string content = null, IDictionary customHeaders = null) + public static BunqResponse Update(long paymentDelayedId, long noteTextPaymentDelayedId, long? monetaryAccountId= null, string content = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -102,7 +102,7 @@ public static BunqResponse Update(int paymentDelayedId, int noteTextPayment /// /// - public static BunqResponse Delete(int paymentDelayedId, int noteTextPaymentDelayedId, int? monetaryAccountId= null, IDictionary customHeaders = null) + public static BunqResponse Delete(long paymentDelayedId, long noteTextPaymentDelayedId, long? monetaryAccountId= null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -114,7 +114,7 @@ public static BunqResponse Delete(int paymentDelayedId, int noteTextPaym /// /// - public static BunqResponse> List(int paymentDelayedId, int? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) + public static BunqResponse> List(long paymentDelayedId, long? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) { if (urlParams == null) urlParams = new Dictionary(); if (customHeaders == null) customHeaders = new Dictionary(); @@ -127,7 +127,7 @@ public static BunqResponse> List(int payme /// /// - public static BunqResponse Get(int paymentDelayedId, int noteTextPaymentDelayedId, int? monetaryAccountId= null, IDictionary customHeaders = null) + public static BunqResponse Get(long paymentDelayedId, long noteTextPaymentDelayedId, long? monetaryAccountId= null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); diff --git a/BunqSdk/Model/Generated/Endpoint/NoteTextPaymentSuspendedApiObject.cs b/BunqSdk/Model/Generated/Endpoint/NoteTextPaymentSuspendedApiObject.cs new file mode 100644 index 00000000..8f15f3b9 --- /dev/null +++ b/BunqSdk/Model/Generated/Endpoint/NoteTextPaymentSuspendedApiObject.cs @@ -0,0 +1,180 @@ +using Bunq.Sdk.Context; +using Bunq.Sdk.Http; +using Bunq.Sdk.Json; +using Bunq.Sdk.Model.Core; +using Bunq.Sdk.Model.Generated.Object; +using Newtonsoft.Json; +using System.Collections.Generic; +using System.Text; +using System; + +namespace Bunq.Sdk.Model.Generated.Endpoint +{ + /// + /// Used to manage text notes. + /// + public class NoteTextPaymentSuspendedApiObject : BunqModel + { + /// + /// Endpoint constants. + /// + protected const string ENDPOINT_URL_CREATE = "user/{0}/monetary-account/{1}/payment-suspended/{2}/note-text"; + protected const string ENDPOINT_URL_UPDATE = "user/{0}/monetary-account/{1}/payment-suspended/{2}/note-text/{3}"; + protected const string ENDPOINT_URL_DELETE = "user/{0}/monetary-account/{1}/payment-suspended/{2}/note-text/{3}"; + protected const string ENDPOINT_URL_LISTING = "user/{0}/monetary-account/{1}/payment-suspended/{2}/note-text"; + protected const string ENDPOINT_URL_READ = "user/{0}/monetary-account/{1}/payment-suspended/{2}/note-text/{3}"; + + /// + /// Field constants. + /// + public const string FIELD_CONTENT = "content"; + + /// + /// Object type. + /// + private const string OBJECT_TYPE_GET = "NoteText"; + + /// + /// The content of the note. + /// + [JsonProperty(PropertyName = "content")] + public string Content { get; set; } + /// + /// The id of the note. + /// + [JsonProperty(PropertyName = "id")] + public long? Id { get; set; } + /// + /// The timestamp of the note's creation. + /// + [JsonProperty(PropertyName = "created")] + public string Created { get; set; } + /// + /// The timestamp of the note's last update. + /// + [JsonProperty(PropertyName = "updated")] + public string Updated { get; set; } + /// + /// The label of the user who created this note. + /// + [JsonProperty(PropertyName = "label_user_creator")] + public MonetaryAccountReference LabelUserCreator { get; set; } + + /// + /// + /// The content of the note. + public static BunqResponse Create(long paymentSuspendedId, long? monetaryAccountId= null, string content = null, IDictionary customHeaders = null) + { + if (customHeaders == null) customHeaders = new Dictionary(); + + var apiClient = new ApiClient(GetApiContext()); + + var requestMap = new Dictionary + { + {FIELD_CONTENT, content}, + }; + + var requestBytes = Encoding.UTF8.GetBytes(BunqJsonConvert.SerializeObject(requestMap)); + var responseRaw = apiClient.Post(string.Format(ENDPOINT_URL_CREATE, DetermineUserId(), DetermineMonetaryAccountId(monetaryAccountId), paymentSuspendedId), requestBytes, customHeaders); + + return ProcessForId(responseRaw); + } + + /// + /// + /// The content of the note. + public static BunqResponse Update(long paymentSuspendedId, long noteTextPaymentSuspendedId, long? monetaryAccountId= null, string content = null, IDictionary customHeaders = null) + { + if (customHeaders == null) customHeaders = new Dictionary(); + + var apiClient = new ApiClient(GetApiContext()); + + var requestMap = new Dictionary + { + {FIELD_CONTENT, content}, + }; + + var requestBytes = Encoding.UTF8.GetBytes(BunqJsonConvert.SerializeObject(requestMap)); + var responseRaw = apiClient.Put(string.Format(ENDPOINT_URL_UPDATE, DetermineUserId(), DetermineMonetaryAccountId(monetaryAccountId), paymentSuspendedId, noteTextPaymentSuspendedId), requestBytes, customHeaders); + + return ProcessForId(responseRaw); + } + + /// + /// + public static BunqResponse Delete(long paymentSuspendedId, long noteTextPaymentSuspendedId, long? monetaryAccountId= null, IDictionary customHeaders = null) + { + if (customHeaders == null) customHeaders = new Dictionary(); + + var apiClient = new ApiClient(GetApiContext()); + var responseRaw = apiClient.Delete(string.Format(ENDPOINT_URL_DELETE, DetermineUserId(), DetermineMonetaryAccountId(monetaryAccountId), paymentSuspendedId, noteTextPaymentSuspendedId), customHeaders); + + return new BunqResponse(null, responseRaw.Headers); + } + + /// + /// + public static BunqResponse> List(long paymentSuspendedId, long? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) + { + if (urlParams == null) urlParams = new Dictionary(); + if (customHeaders == null) customHeaders = new Dictionary(); + + var apiClient = new ApiClient(GetApiContext()); + var responseRaw = apiClient.Get(string.Format(ENDPOINT_URL_LISTING, DetermineUserId(), DetermineMonetaryAccountId(monetaryAccountId), paymentSuspendedId), urlParams, customHeaders); + + return FromJsonList(responseRaw, OBJECT_TYPE_GET); + } + + /// + /// + public static BunqResponse Get(long paymentSuspendedId, long noteTextPaymentSuspendedId, long? monetaryAccountId= null, IDictionary customHeaders = null) + { + if (customHeaders == null) customHeaders = new Dictionary(); + + var apiClient = new ApiClient(GetApiContext()); + var responseRaw = apiClient.Get(string.Format(ENDPOINT_URL_READ, DetermineUserId(), DetermineMonetaryAccountId(monetaryAccountId), paymentSuspendedId, noteTextPaymentSuspendedId), new Dictionary(), customHeaders); + + return FromJson(responseRaw, OBJECT_TYPE_GET); + } + + + /// + /// + public override bool IsAllFieldNull() + { + if (this.Id != null) + { + return false; + } + + if (this.Created != null) + { + return false; + } + + if (this.Updated != null) + { + return false; + } + + if (this.LabelUserCreator != null) + { + return false; + } + + if (this.Content != null) + { + return false; + } + + return true; + } + + /// + /// + public static NoteTextPaymentSuspendedApiObject CreateFromJsonString(string json) + { + return BunqModel.CreateFromJsonString(json); + } + } +} diff --git a/BunqSdk/Model/Generated/Endpoint/NoteTextRequestInquiryApiObject.cs b/BunqSdk/Model/Generated/Endpoint/NoteTextRequestInquiryApiObject.cs index 45cbea61..5fe44d27 100644 --- a/BunqSdk/Model/Generated/Endpoint/NoteTextRequestInquiryApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/NoteTextRequestInquiryApiObject.cs @@ -43,7 +43,7 @@ public class NoteTextRequestInquiryApiObject : BunqModel /// The id of the note. /// [JsonProperty(PropertyName = "id")] - public int? Id { get; set; } + public long? Id { get; set; } /// /// The timestamp of the note's creation. /// @@ -63,7 +63,7 @@ public class NoteTextRequestInquiryApiObject : BunqModel /// /// /// The content of the note. - public static BunqResponse Create(int requestInquiryId, int? monetaryAccountId= null, string content = null, IDictionary customHeaders = null) + public static BunqResponse Create(long requestInquiryId, long? monetaryAccountId= null, string content = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -83,7 +83,7 @@ public static BunqResponse Create(int requestInquiryId, int? monetaryAccoun /// /// /// The content of the note. - public static BunqResponse Update(int requestInquiryId, int noteTextRequestInquiryId, int? monetaryAccountId= null, string content = null, IDictionary customHeaders = null) + public static BunqResponse Update(long requestInquiryId, long noteTextRequestInquiryId, long? monetaryAccountId= null, string content = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -102,7 +102,7 @@ public static BunqResponse Update(int requestInquiryId, int noteTextRequest /// /// - public static BunqResponse Delete(int requestInquiryId, int noteTextRequestInquiryId, int? monetaryAccountId= null, IDictionary customHeaders = null) + public static BunqResponse Delete(long requestInquiryId, long noteTextRequestInquiryId, long? monetaryAccountId= null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -115,7 +115,7 @@ public static BunqResponse Delete(int requestInquiryId, int noteTextRequ /// /// Manage the notes for a given user. /// - public static BunqResponse> List(int requestInquiryId, int? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) + public static BunqResponse> List(long requestInquiryId, long? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) { if (urlParams == null) urlParams = new Dictionary(); if (customHeaders == null) customHeaders = new Dictionary(); @@ -128,7 +128,7 @@ public static BunqResponse> List(int reque /// /// - public static BunqResponse Get(int requestInquiryId, int noteTextRequestInquiryId, int? monetaryAccountId= null, IDictionary customHeaders = null) + public static BunqResponse Get(long requestInquiryId, long noteTextRequestInquiryId, long? monetaryAccountId= null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); diff --git a/BunqSdk/Model/Generated/Endpoint/NoteTextRequestInquiryBatchApiObject.cs b/BunqSdk/Model/Generated/Endpoint/NoteTextRequestInquiryBatchApiObject.cs index 2080773a..fa38f5d6 100644 --- a/BunqSdk/Model/Generated/Endpoint/NoteTextRequestInquiryBatchApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/NoteTextRequestInquiryBatchApiObject.cs @@ -43,7 +43,7 @@ public class NoteTextRequestInquiryBatchApiObject : BunqModel /// The id of the note. /// [JsonProperty(PropertyName = "id")] - public int? Id { get; set; } + public long? Id { get; set; } /// /// The timestamp of the note's creation. /// @@ -63,7 +63,7 @@ public class NoteTextRequestInquiryBatchApiObject : BunqModel /// /// /// The content of the note. - public static BunqResponse Create(int requestInquiryBatchId, int? monetaryAccountId= null, string content = null, IDictionary customHeaders = null) + public static BunqResponse Create(long requestInquiryBatchId, long? monetaryAccountId= null, string content = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -83,7 +83,7 @@ public static BunqResponse Create(int requestInquiryBatchId, int? monetaryA /// /// /// The content of the note. - public static BunqResponse Update(int requestInquiryBatchId, int noteTextRequestInquiryBatchId, int? monetaryAccountId= null, string content = null, IDictionary customHeaders = null) + public static BunqResponse Update(long requestInquiryBatchId, long noteTextRequestInquiryBatchId, long? monetaryAccountId= null, string content = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -102,7 +102,7 @@ public static BunqResponse Update(int requestInquiryBatchId, int noteTextRe /// /// - public static BunqResponse Delete(int requestInquiryBatchId, int noteTextRequestInquiryBatchId, int? monetaryAccountId= null, IDictionary customHeaders = null) + public static BunqResponse Delete(long requestInquiryBatchId, long noteTextRequestInquiryBatchId, long? monetaryAccountId= null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -115,7 +115,7 @@ public static BunqResponse Delete(int requestInquiryBatchId, int noteTex /// /// Manage the notes for a given user. /// - public static BunqResponse> List(int requestInquiryBatchId, int? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) + public static BunqResponse> List(long requestInquiryBatchId, long? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) { if (urlParams == null) urlParams = new Dictionary(); if (customHeaders == null) customHeaders = new Dictionary(); @@ -128,7 +128,7 @@ public static BunqResponse> List(int /// /// - public static BunqResponse Get(int requestInquiryBatchId, int noteTextRequestInquiryBatchId, int? monetaryAccountId= null, IDictionary customHeaders = null) + public static BunqResponse Get(long requestInquiryBatchId, long noteTextRequestInquiryBatchId, long? monetaryAccountId= null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); diff --git a/BunqSdk/Model/Generated/Endpoint/NoteTextRequestResponseApiObject.cs b/BunqSdk/Model/Generated/Endpoint/NoteTextRequestResponseApiObject.cs index cfe2a441..54dfc124 100644 --- a/BunqSdk/Model/Generated/Endpoint/NoteTextRequestResponseApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/NoteTextRequestResponseApiObject.cs @@ -43,7 +43,7 @@ public class NoteTextRequestResponseApiObject : BunqModel /// The id of the note. /// [JsonProperty(PropertyName = "id")] - public int? Id { get; set; } + public long? Id { get; set; } /// /// The timestamp of the note's creation. /// @@ -63,7 +63,7 @@ public class NoteTextRequestResponseApiObject : BunqModel /// /// /// The content of the note. - public static BunqResponse Create(int requestResponseId, int? monetaryAccountId= null, string content = null, IDictionary customHeaders = null) + public static BunqResponse Create(long requestResponseId, long? monetaryAccountId= null, string content = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -83,7 +83,7 @@ public static BunqResponse Create(int requestResponseId, int? monetaryAccou /// /// /// The content of the note. - public static BunqResponse Update(int requestResponseId, int noteTextRequestResponseId, int? monetaryAccountId= null, string content = null, IDictionary customHeaders = null) + public static BunqResponse Update(long requestResponseId, long noteTextRequestResponseId, long? monetaryAccountId= null, string content = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -102,7 +102,7 @@ public static BunqResponse Update(int requestResponseId, int noteTextReques /// /// - public static BunqResponse Delete(int requestResponseId, int noteTextRequestResponseId, int? monetaryAccountId= null, IDictionary customHeaders = null) + public static BunqResponse Delete(long requestResponseId, long noteTextRequestResponseId, long? monetaryAccountId= null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -115,7 +115,7 @@ public static BunqResponse Delete(int requestResponseId, int noteTextReq /// /// Manage the notes for a given user. /// - public static BunqResponse> List(int requestResponseId, int? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) + public static BunqResponse> List(long requestResponseId, long? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) { if (urlParams == null) urlParams = new Dictionary(); if (customHeaders == null) customHeaders = new Dictionary(); @@ -128,7 +128,7 @@ public static BunqResponse> List(int requ /// /// - public static BunqResponse Get(int requestResponseId, int noteTextRequestResponseId, int? monetaryAccountId= null, IDictionary customHeaders = null) + public static BunqResponse Get(long requestResponseId, long noteTextRequestResponseId, long? monetaryAccountId= null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); diff --git a/BunqSdk/Model/Generated/Endpoint/NoteTextScheduleInstanceApiObject.cs b/BunqSdk/Model/Generated/Endpoint/NoteTextScheduleInstanceApiObject.cs index 08581692..345a8f85 100644 --- a/BunqSdk/Model/Generated/Endpoint/NoteTextScheduleInstanceApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/NoteTextScheduleInstanceApiObject.cs @@ -43,7 +43,7 @@ public class NoteTextScheduleInstanceApiObject : BunqModel /// The id of the note. /// [JsonProperty(PropertyName = "id")] - public int? Id { get; set; } + public long? Id { get; set; } /// /// The timestamp of the note's creation. /// @@ -63,7 +63,7 @@ public class NoteTextScheduleInstanceApiObject : BunqModel /// /// /// The content of the note. - public static BunqResponse Create(int scheduleId, int scheduleInstanceId, int? monetaryAccountId= null, string content = null, IDictionary customHeaders = null) + public static BunqResponse Create(long scheduleId, long scheduleInstanceId, long? monetaryAccountId= null, string content = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -83,7 +83,7 @@ public static BunqResponse Create(int scheduleId, int scheduleInstanceId, i /// /// /// The content of the note. - public static BunqResponse Update(int scheduleId, int scheduleInstanceId, int noteTextScheduleInstanceId, int? monetaryAccountId= null, string content = null, IDictionary customHeaders = null) + public static BunqResponse Update(long scheduleId, long scheduleInstanceId, long noteTextScheduleInstanceId, long? monetaryAccountId= null, string content = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -102,7 +102,7 @@ public static BunqResponse Update(int scheduleId, int scheduleInstanceId, i /// /// - public static BunqResponse Delete(int scheduleId, int scheduleInstanceId, int noteTextScheduleInstanceId, int? monetaryAccountId= null, IDictionary customHeaders = null) + public static BunqResponse Delete(long scheduleId, long scheduleInstanceId, long noteTextScheduleInstanceId, long? monetaryAccountId= null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -115,7 +115,7 @@ public static BunqResponse Delete(int scheduleId, int scheduleInstanceId /// /// Manage the notes for a given user. /// - public static BunqResponse> List(int scheduleId, int scheduleInstanceId, int? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) + public static BunqResponse> List(long scheduleId, long scheduleInstanceId, long? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) { if (urlParams == null) urlParams = new Dictionary(); if (customHeaders == null) customHeaders = new Dictionary(); @@ -128,7 +128,7 @@ public static BunqResponse> List(int sch /// /// - public static BunqResponse Get(int scheduleId, int scheduleInstanceId, int noteTextScheduleInstanceId, int? monetaryAccountId= null, IDictionary customHeaders = null) + public static BunqResponse Get(long scheduleId, long scheduleInstanceId, long noteTextScheduleInstanceId, long? monetaryAccountId= null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); diff --git a/BunqSdk/Model/Generated/Endpoint/NoteTextSchedulePaymentApiObject.cs b/BunqSdk/Model/Generated/Endpoint/NoteTextSchedulePaymentApiObject.cs index 4a7dc938..2fdb6923 100644 --- a/BunqSdk/Model/Generated/Endpoint/NoteTextSchedulePaymentApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/NoteTextSchedulePaymentApiObject.cs @@ -43,7 +43,7 @@ public class NoteTextSchedulePaymentApiObject : BunqModel /// The id of the note. /// [JsonProperty(PropertyName = "id")] - public int? Id { get; set; } + public long? Id { get; set; } /// /// The timestamp of the note's creation. /// @@ -63,7 +63,7 @@ public class NoteTextSchedulePaymentApiObject : BunqModel /// /// /// The content of the note. - public static BunqResponse Create(int schedulePaymentId, int? monetaryAccountId= null, string content = null, IDictionary customHeaders = null) + public static BunqResponse Create(long schedulePaymentId, long? monetaryAccountId= null, string content = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -83,7 +83,7 @@ public static BunqResponse Create(int schedulePaymentId, int? monetaryAccou /// /// /// The content of the note. - public static BunqResponse Update(int schedulePaymentId, int noteTextSchedulePaymentId, int? monetaryAccountId= null, string content = null, IDictionary customHeaders = null) + public static BunqResponse Update(long schedulePaymentId, long noteTextSchedulePaymentId, long? monetaryAccountId= null, string content = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -102,7 +102,7 @@ public static BunqResponse Update(int schedulePaymentId, int noteTextSchedu /// /// - public static BunqResponse Delete(int schedulePaymentId, int noteTextSchedulePaymentId, int? monetaryAccountId= null, IDictionary customHeaders = null) + public static BunqResponse Delete(long schedulePaymentId, long noteTextSchedulePaymentId, long? monetaryAccountId= null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -115,7 +115,7 @@ public static BunqResponse Delete(int schedulePaymentId, int noteTextSch /// /// Manage the notes for a given user. /// - public static BunqResponse> List(int schedulePaymentId, int? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) + public static BunqResponse> List(long schedulePaymentId, long? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) { if (urlParams == null) urlParams = new Dictionary(); if (customHeaders == null) customHeaders = new Dictionary(); @@ -128,7 +128,7 @@ public static BunqResponse> List(int sche /// /// - public static BunqResponse Get(int schedulePaymentId, int noteTextSchedulePaymentId, int? monetaryAccountId= null, IDictionary customHeaders = null) + public static BunqResponse Get(long schedulePaymentId, long noteTextSchedulePaymentId, long? monetaryAccountId= null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); diff --git a/BunqSdk/Model/Generated/Endpoint/NoteTextSchedulePaymentBatchApiObject.cs b/BunqSdk/Model/Generated/Endpoint/NoteTextSchedulePaymentBatchApiObject.cs index ae551ef0..223998f4 100644 --- a/BunqSdk/Model/Generated/Endpoint/NoteTextSchedulePaymentBatchApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/NoteTextSchedulePaymentBatchApiObject.cs @@ -43,7 +43,7 @@ public class NoteTextSchedulePaymentBatchApiObject : BunqModel /// The id of the note. /// [JsonProperty(PropertyName = "id")] - public int? Id { get; set; } + public long? Id { get; set; } /// /// The timestamp of the note's creation. /// @@ -63,7 +63,7 @@ public class NoteTextSchedulePaymentBatchApiObject : BunqModel /// /// /// The content of the note. - public static BunqResponse Create(int schedulePaymentBatchId, int? monetaryAccountId= null, string content = null, IDictionary customHeaders = null) + public static BunqResponse Create(long schedulePaymentBatchId, long? monetaryAccountId= null, string content = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -83,7 +83,7 @@ public static BunqResponse Create(int schedulePaymentBatchId, int? monetary /// /// /// The content of the note. - public static BunqResponse Update(int schedulePaymentBatchId, int noteTextSchedulePaymentBatchId, int? monetaryAccountId= null, string content = null, IDictionary customHeaders = null) + public static BunqResponse Update(long schedulePaymentBatchId, long noteTextSchedulePaymentBatchId, long? monetaryAccountId= null, string content = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -102,7 +102,7 @@ public static BunqResponse Update(int schedulePaymentBatchId, int noteTextS /// /// - public static BunqResponse Delete(int schedulePaymentBatchId, int noteTextSchedulePaymentBatchId, int? monetaryAccountId= null, IDictionary customHeaders = null) + public static BunqResponse Delete(long schedulePaymentBatchId, long noteTextSchedulePaymentBatchId, long? monetaryAccountId= null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -115,7 +115,7 @@ public static BunqResponse Delete(int schedulePaymentBatchId, int noteTe /// /// Manage the notes for a given user. /// - public static BunqResponse> List(int schedulePaymentBatchId, int? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) + public static BunqResponse> List(long schedulePaymentBatchId, long? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) { if (urlParams == null) urlParams = new Dictionary(); if (customHeaders == null) customHeaders = new Dictionary(); @@ -128,7 +128,7 @@ public static BunqResponse> List(int /// /// - public static BunqResponse Get(int schedulePaymentBatchId, int noteTextSchedulePaymentBatchId, int? monetaryAccountId= null, IDictionary customHeaders = null) + public static BunqResponse Get(long schedulePaymentBatchId, long noteTextSchedulePaymentBatchId, long? monetaryAccountId= null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); diff --git a/BunqSdk/Model/Generated/Endpoint/NoteTextScheduleRequestApiObject.cs b/BunqSdk/Model/Generated/Endpoint/NoteTextScheduleRequestApiObject.cs index 47c22126..3436c2f7 100644 --- a/BunqSdk/Model/Generated/Endpoint/NoteTextScheduleRequestApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/NoteTextScheduleRequestApiObject.cs @@ -43,7 +43,7 @@ public class NoteTextScheduleRequestApiObject : BunqModel /// The id of the note. /// [JsonProperty(PropertyName = "id")] - public int? Id { get; set; } + public long? Id { get; set; } /// /// The timestamp of the note's creation. /// @@ -63,7 +63,7 @@ public class NoteTextScheduleRequestApiObject : BunqModel /// /// /// The content of the note. - public static BunqResponse Create(int scheduleRequestInquiryId, int? monetaryAccountId= null, string content = null, IDictionary customHeaders = null) + public static BunqResponse Create(long scheduleRequestInquiryId, long? monetaryAccountId= null, string content = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -83,7 +83,7 @@ public static BunqResponse Create(int scheduleRequestInquiryId, int? moneta /// /// /// The content of the note. - public static BunqResponse Update(int scheduleRequestInquiryId, int noteTextScheduleRequestId, int? monetaryAccountId= null, string content = null, IDictionary customHeaders = null) + public static BunqResponse Update(long scheduleRequestInquiryId, long noteTextScheduleRequestId, long? monetaryAccountId= null, string content = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -102,7 +102,7 @@ public static BunqResponse Update(int scheduleRequestInquiryId, int noteTex /// /// - public static BunqResponse Delete(int scheduleRequestInquiryId, int noteTextScheduleRequestId, int? monetaryAccountId= null, IDictionary customHeaders = null) + public static BunqResponse Delete(long scheduleRequestInquiryId, long noteTextScheduleRequestId, long? monetaryAccountId= null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -115,7 +115,7 @@ public static BunqResponse Delete(int scheduleRequestInquiryId, int note /// /// Manage the notes for a given schedule request. /// - public static BunqResponse> List(int scheduleRequestInquiryId, int? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) + public static BunqResponse> List(long scheduleRequestInquiryId, long? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) { if (urlParams == null) urlParams = new Dictionary(); if (customHeaders == null) customHeaders = new Dictionary(); @@ -128,7 +128,7 @@ public static BunqResponse> List(int sche /// /// - public static BunqResponse Get(int scheduleRequestInquiryId, int noteTextScheduleRequestId, int? monetaryAccountId= null, IDictionary customHeaders = null) + public static BunqResponse Get(long scheduleRequestInquiryId, long noteTextScheduleRequestId, long? monetaryAccountId= null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); diff --git a/BunqSdk/Model/Generated/Endpoint/NoteTextScheduleRequestBatchApiObject.cs b/BunqSdk/Model/Generated/Endpoint/NoteTextScheduleRequestBatchApiObject.cs index 31f80e0a..dd6d8620 100644 --- a/BunqSdk/Model/Generated/Endpoint/NoteTextScheduleRequestBatchApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/NoteTextScheduleRequestBatchApiObject.cs @@ -43,7 +43,7 @@ public class NoteTextScheduleRequestBatchApiObject : BunqModel /// The id of the note. /// [JsonProperty(PropertyName = "id")] - public int? Id { get; set; } + public long? Id { get; set; } /// /// The timestamp of the note's creation. /// @@ -63,7 +63,7 @@ public class NoteTextScheduleRequestBatchApiObject : BunqModel /// /// /// The content of the note. - public static BunqResponse Create(int scheduleRequestInquiryBatchId, int? monetaryAccountId= null, string content = null, IDictionary customHeaders = null) + public static BunqResponse Create(long scheduleRequestInquiryBatchId, long? monetaryAccountId= null, string content = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -83,7 +83,7 @@ public static BunqResponse Create(int scheduleRequestInquiryBatchId, int? m /// /// /// The content of the note. - public static BunqResponse Update(int scheduleRequestInquiryBatchId, int noteTextScheduleRequestBatchId, int? monetaryAccountId= null, string content = null, IDictionary customHeaders = null) + public static BunqResponse Update(long scheduleRequestInquiryBatchId, long noteTextScheduleRequestBatchId, long? monetaryAccountId= null, string content = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -102,7 +102,7 @@ public static BunqResponse Update(int scheduleRequestInquiryBatchId, int no /// /// - public static BunqResponse Delete(int scheduleRequestInquiryBatchId, int noteTextScheduleRequestBatchId, int? monetaryAccountId= null, IDictionary customHeaders = null) + public static BunqResponse Delete(long scheduleRequestInquiryBatchId, long noteTextScheduleRequestBatchId, long? monetaryAccountId= null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -115,7 +115,7 @@ public static BunqResponse Delete(int scheduleRequestInquiryBatchId, int /// /// Manage the notes for a given schedule request. /// - public static BunqResponse> List(int scheduleRequestInquiryBatchId, int? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) + public static BunqResponse> List(long scheduleRequestInquiryBatchId, long? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) { if (urlParams == null) urlParams = new Dictionary(); if (customHeaders == null) customHeaders = new Dictionary(); @@ -128,7 +128,7 @@ public static BunqResponse> List(int /// /// - public static BunqResponse Get(int scheduleRequestInquiryBatchId, int noteTextScheduleRequestBatchId, int? monetaryAccountId= null, IDictionary customHeaders = null) + public static BunqResponse Get(long scheduleRequestInquiryBatchId, long noteTextScheduleRequestBatchId, long? monetaryAccountId= null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); diff --git a/BunqSdk/Model/Generated/Endpoint/NoteTextSofortMerchantTransactionApiObject.cs b/BunqSdk/Model/Generated/Endpoint/NoteTextSofortMerchantTransactionApiObject.cs index 71e109e3..8d30af6f 100644 --- a/BunqSdk/Model/Generated/Endpoint/NoteTextSofortMerchantTransactionApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/NoteTextSofortMerchantTransactionApiObject.cs @@ -43,7 +43,7 @@ public class NoteTextSofortMerchantTransactionApiObject : BunqModel /// The id of the note. /// [JsonProperty(PropertyName = "id")] - public int? Id { get; set; } + public long? Id { get; set; } /// /// The timestamp of the note's creation. /// @@ -63,7 +63,7 @@ public class NoteTextSofortMerchantTransactionApiObject : BunqModel /// /// /// The content of the note. - public static BunqResponse Create(int sofortMerchantTransactionId, int? monetaryAccountId= null, string content = null, IDictionary customHeaders = null) + public static BunqResponse Create(long sofortMerchantTransactionId, long? monetaryAccountId= null, string content = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -83,7 +83,7 @@ public static BunqResponse Create(int sofortMerchantTransactionId, int? mon /// /// /// The content of the note. - public static BunqResponse Update(int sofortMerchantTransactionId, int noteTextSofortMerchantTransactionId, int? monetaryAccountId= null, string content = null, IDictionary customHeaders = null) + public static BunqResponse Update(long sofortMerchantTransactionId, long noteTextSofortMerchantTransactionId, long? monetaryAccountId= null, string content = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -102,7 +102,7 @@ public static BunqResponse Update(int sofortMerchantTransactionId, int note /// /// - public static BunqResponse Delete(int sofortMerchantTransactionId, int noteTextSofortMerchantTransactionId, int? monetaryAccountId= null, IDictionary customHeaders = null) + public static BunqResponse Delete(long sofortMerchantTransactionId, long noteTextSofortMerchantTransactionId, long? monetaryAccountId= null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -115,7 +115,7 @@ public static BunqResponse Delete(int sofortMerchantTransactionId, int n /// /// Manage the notes for a given user. /// - public static BunqResponse> List(int sofortMerchantTransactionId, int? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) + public static BunqResponse> List(long sofortMerchantTransactionId, long? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) { if (urlParams == null) urlParams = new Dictionary(); if (customHeaders == null) customHeaders = new Dictionary(); @@ -128,7 +128,7 @@ public static BunqResponse> Lis /// /// - public static BunqResponse Get(int sofortMerchantTransactionId, int noteTextSofortMerchantTransactionId, int? monetaryAccountId= null, IDictionary customHeaders = null) + public static BunqResponse Get(long sofortMerchantTransactionId, long noteTextSofortMerchantTransactionId, long? monetaryAccountId= null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); diff --git a/BunqSdk/Model/Generated/Endpoint/NoteTextWhitelistResultApiObject.cs b/BunqSdk/Model/Generated/Endpoint/NoteTextWhitelistResultApiObject.cs index e68db03a..8afe7023 100644 --- a/BunqSdk/Model/Generated/Endpoint/NoteTextWhitelistResultApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/NoteTextWhitelistResultApiObject.cs @@ -43,7 +43,7 @@ public class NoteTextWhitelistResultApiObject : BunqModel /// The id of the note. /// [JsonProperty(PropertyName = "id")] - public int? Id { get; set; } + public long? Id { get; set; } /// /// The timestamp of the note's creation. /// @@ -63,7 +63,7 @@ public class NoteTextWhitelistResultApiObject : BunqModel /// /// /// The content of the note. - public static BunqResponse Create(int whitelistId, int whitelistResultId, int? monetaryAccountId= null, string content = null, IDictionary customHeaders = null) + public static BunqResponse Create(long whitelistId, long whitelistResultId, long? monetaryAccountId= null, string content = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -83,7 +83,7 @@ public static BunqResponse Create(int whitelistId, int whitelistResultId, i /// /// /// The content of the note. - public static BunqResponse Update(int whitelistId, int whitelistResultId, int noteTextWhitelistResultId, int? monetaryAccountId= null, string content = null, IDictionary customHeaders = null) + public static BunqResponse Update(long whitelistId, long whitelistResultId, long noteTextWhitelistResultId, long? monetaryAccountId= null, string content = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -102,7 +102,7 @@ public static BunqResponse Update(int whitelistId, int whitelistResultId, i /// /// - public static BunqResponse Delete(int whitelistId, int whitelistResultId, int noteTextWhitelistResultId, int? monetaryAccountId= null, IDictionary customHeaders = null) + public static BunqResponse Delete(long whitelistId, long whitelistResultId, long noteTextWhitelistResultId, long? monetaryAccountId= null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -115,7 +115,7 @@ public static BunqResponse Delete(int whitelistId, int whitelistResultId /// /// Manage the notes for a given user. /// - public static BunqResponse> List(int whitelistId, int whitelistResultId, int? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) + public static BunqResponse> List(long whitelistId, long whitelistResultId, long? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) { if (urlParams == null) urlParams = new Dictionary(); if (customHeaders == null) customHeaders = new Dictionary(); @@ -128,7 +128,7 @@ public static BunqResponse> List(int whit /// /// - public static BunqResponse Get(int whitelistId, int whitelistResultId, int noteTextWhitelistResultId, int? monetaryAccountId= null, IDictionary customHeaders = null) + public static BunqResponse Get(long whitelistId, long whitelistResultId, long noteTextWhitelistResultId, long? monetaryAccountId= null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); diff --git a/BunqSdk/Model/Generated/Endpoint/NotificationFilterFailureApiObject.cs b/BunqSdk/Model/Generated/Endpoint/NotificationFilterFailureApiObject.cs index b9c88fc8..7b75ca0c 100644 --- a/BunqSdk/Model/Generated/Endpoint/NotificationFilterFailureApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/NotificationFilterFailureApiObject.cs @@ -55,7 +55,7 @@ public class NotificationFilterFailureApiObject : BunqModel /// The object id used to generate the body of the notification. /// [JsonProperty(PropertyName = "object_id")] - public int? ObjectId { get; set; } + public long? ObjectId { get; set; } /// /// The exception bunq encountered when processing the callback. /// @@ -65,12 +65,12 @@ public class NotificationFilterFailureApiObject : BunqModel /// The response code (or null) received from the endpoint. /// [JsonProperty(PropertyName = "response_code")] - public int? ResponseCode { get; set; } + public long? ResponseCode { get; set; } /// /// /// The IDs to retry. - public static BunqResponse Create(string notificationFilterFailedIds, IDictionary customHeaders = null) + public static BunqResponse Create(string notificationFilterFailedIds, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); diff --git a/BunqSdk/Model/Generated/Endpoint/NotificationFilterUrlApiObject.cs b/BunqSdk/Model/Generated/Endpoint/NotificationFilterUrlApiObject.cs index 9388a86a..a1b2c5ab 100644 --- a/BunqSdk/Model/Generated/Endpoint/NotificationFilterUrlApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/NotificationFilterUrlApiObject.cs @@ -40,7 +40,7 @@ public class NotificationFilterUrlApiObject : BunqModel /// /// /// The types of notifications that will result in a url notification for this user. - public static BunqResponse Create(List notificationFilters = null, IDictionary customHeaders = null) + public static BunqResponse Create(List notificationFilters = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); diff --git a/BunqSdk/Model/Generated/Endpoint/NotificationFilterUrlMonetaryAccountApiObject.cs b/BunqSdk/Model/Generated/Endpoint/NotificationFilterUrlMonetaryAccountApiObject.cs index 090554c9..afcc0268 100644 --- a/BunqSdk/Model/Generated/Endpoint/NotificationFilterUrlMonetaryAccountApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/NotificationFilterUrlMonetaryAccountApiObject.cs @@ -40,7 +40,7 @@ public class NotificationFilterUrlMonetaryAccountApiObject : BunqModel /// /// /// The types of notifications that will result in a url notification for this monetary account. - public static BunqResponse Create(int? monetaryAccountId= null, List notificationFilters = null, IDictionary customHeaders = null) + public static BunqResponse Create(long? monetaryAccountId= null, List notificationFilters = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -59,7 +59,7 @@ public static BunqResponse Create(int? monetaryAccountId= null, List /// - public static BunqResponse> List(int? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) + public static BunqResponse> List(long? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) { if (urlParams == null) urlParams = new Dictionary(); if (customHeaders == null) customHeaders = new Dictionary(); diff --git a/BunqSdk/Model/Generated/Endpoint/OauthCallbackUrlApiObject.cs b/BunqSdk/Model/Generated/Endpoint/OauthCallbackUrlApiObject.cs index 9027cc8c..ec44ebcc 100644 --- a/BunqSdk/Model/Generated/Endpoint/OauthCallbackUrlApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/OauthCallbackUrlApiObject.cs @@ -41,7 +41,7 @@ public class OauthCallbackUrlApiObject : BunqModel /// /// - public static BunqResponse Get(int oauthClientId, int oauthCallbackUrlId, IDictionary customHeaders = null) + public static BunqResponse Get(long oauthClientId, long oauthCallbackUrlId, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -54,7 +54,7 @@ public static BunqResponse Get(int oauthClientId, int /// /// /// The URL for this callback. - public static BunqResponse Create(int oauthClientId, string url, IDictionary customHeaders = null) + public static BunqResponse Create(long oauthClientId, string url, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -74,7 +74,7 @@ public static BunqResponse Create(int oauthClientId, string url, IDictionar /// /// /// The URL for this callback. - public static BunqResponse Update(int oauthClientId, int oauthCallbackUrlId, string url = null, IDictionary customHeaders = null) + public static BunqResponse Update(long oauthClientId, long oauthCallbackUrlId, string url = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -93,7 +93,7 @@ public static BunqResponse Update(int oauthClientId, int oauthCallbackUrlId /// /// - public static BunqResponse> List(int oauthClientId, IDictionary urlParams = null, IDictionary customHeaders = null) + public static BunqResponse> List(long oauthClientId, IDictionary urlParams = null, IDictionary customHeaders = null) { if (urlParams == null) urlParams = new Dictionary(); if (customHeaders == null) customHeaders = new Dictionary(); @@ -106,7 +106,7 @@ public static BunqResponse> List(int oauthClient /// /// - public static BunqResponse Delete(int oauthClientId, int oauthCallbackUrlId, IDictionary customHeaders = null) + public static BunqResponse Delete(long oauthClientId, long oauthCallbackUrlId, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); diff --git a/BunqSdk/Model/Generated/Endpoint/OauthClientApiObject.cs b/BunqSdk/Model/Generated/Endpoint/OauthClientApiObject.cs index f7e68232..07f79a76 100644 --- a/BunqSdk/Model/Generated/Endpoint/OauthClientApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/OauthClientApiObject.cs @@ -42,7 +42,7 @@ public class OauthClientApiObject : BunqModel /// Id of the client. /// [JsonProperty(PropertyName = "id")] - public int? Id { get; set; } + public long? Id { get; set; } /// /// The display name of this Oauth Client /// @@ -66,7 +66,7 @@ public class OauthClientApiObject : BunqModel /// /// - public static BunqResponse Get(int oauthClientId, IDictionary customHeaders = null) + public static BunqResponse Get(long oauthClientId, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -79,7 +79,7 @@ public static BunqResponse Get(int oauthClientId, IDiction /// /// /// The status of the Oauth Client, can be ACTIVE or CANCELLED. - public static BunqResponse Create(string status = null, IDictionary customHeaders = null) + public static BunqResponse Create(string status = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -99,7 +99,7 @@ public static BunqResponse Create(string status = null, IDictionary /// /// The status of the Oauth Client, can be ACTIVE or CANCELLED. - public static BunqResponse Update(int oauthClientId, string status = null, IDictionary customHeaders = null) + public static BunqResponse Update(long oauthClientId, string status = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); diff --git a/BunqSdk/Model/Generated/Endpoint/PartnerPromotionCashbackApiObject.cs b/BunqSdk/Model/Generated/Endpoint/PartnerPromotionCashbackApiObject.cs index 0e97bb05..a5323d29 100644 --- a/BunqSdk/Model/Generated/Endpoint/PartnerPromotionCashbackApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/PartnerPromotionCashbackApiObject.cs @@ -34,7 +34,7 @@ public class PartnerPromotionCashbackApiObject : BunqModel /// The maximum number of transactions that can be made. /// [JsonProperty(PropertyName = "number_of_transaction_maximum")] - public int? NumberOfTransactionMaximum { get; set; } + public long? NumberOfTransactionMaximum { get; set; } /// /// The minimum amount of a transaction. /// diff --git a/BunqSdk/Model/Generated/Endpoint/PaymentApiObject.cs b/BunqSdk/Model/Generated/Endpoint/PaymentApiObject.cs index e87f59e3..a9a63517 100644 --- a/BunqSdk/Model/Generated/Endpoint/PaymentApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/PaymentApiObject.cs @@ -76,7 +76,7 @@ public class PaymentApiObject : BunqModel /// The id of the created Payment. /// [JsonProperty(PropertyName = "id")] - public int? Id { get; set; } + public long? Id { get; set; } /// /// The timestamp when the Payment was done. /// @@ -92,7 +92,7 @@ public class PaymentApiObject : BunqModel /// outgoing Payment). /// [JsonProperty(PropertyName = "monetary_account_id")] - public int? MonetaryAccountId { get; set; } + public long? MonetaryAccountId { get; set; } /// /// The LabelMonetaryAccount containing the public information of 'this' (party) side of the Payment. /// @@ -142,12 +142,12 @@ public class PaymentApiObject : BunqModel /// The id of the PaymentBatch if this Payment was part of one. /// [JsonProperty(PropertyName = "batch_id")] - public int? BatchId { get; set; } + public long? BatchId { get; set; } /// /// The id of the JobScheduled if the Payment was scheduled. /// [JsonProperty(PropertyName = "scheduled_id")] - public int? ScheduledId { get; set; } + public long? ScheduledId { get; set; } /// /// A shipping Address provided with the Payment, currently unused. /// @@ -198,7 +198,7 @@ public class PaymentApiObject : BunqModel /// The Attachments to attach to the Payment. /// Optional data to be included with the Payment specific to the merchant. /// Whether or not sending a bunq.to payment is allowed. - public static BunqResponse Create(AmountObject amount, PointerObject counterpartyAlias, string description, int? monetaryAccountId= null, List attachment = null, string merchantReference = null, bool? allowBunqto = null, IDictionary customHeaders = null) + public static BunqResponse Create(AmountObject amount, PointerObject counterpartyAlias, string description, long? monetaryAccountId= null, List attachment = null, string merchantReference = null, bool? allowBunqto = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -223,7 +223,7 @@ public static BunqResponse Create(AmountObject amount, PointerObject counte /// /// Get a specific previous Payment. /// - public static BunqResponse Get(int paymentId, int? monetaryAccountId= null, IDictionary customHeaders = null) + public static BunqResponse Get(long paymentId, long? monetaryAccountId= null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -236,7 +236,7 @@ public static BunqResponse Get(int paymentId, int? monetaryAcc /// /// Get a listing of all Payments performed on a given MonetaryAccount (incoming and outgoing). /// - public static BunqResponse> List(int? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) + public static BunqResponse> List(long? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) { if (urlParams == null) urlParams = new Dictionary(); if (customHeaders == null) customHeaders = new Dictionary(); diff --git a/BunqSdk/Model/Generated/Endpoint/PaymentAutoAllocateApiObject.cs b/BunqSdk/Model/Generated/Endpoint/PaymentAutoAllocateApiObject.cs index 2e06e91b..15758a47 100644 --- a/BunqSdk/Model/Generated/Endpoint/PaymentAutoAllocateApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/PaymentAutoAllocateApiObject.cs @@ -40,7 +40,7 @@ public class PaymentAutoAllocateApiObject : BunqModel /// The payment that should be used to define the triggers for the payment auto allocate. /// [JsonProperty(PropertyName = "payment_id")] - public int? PaymentId { get; set; } + public long? PaymentId { get; set; } /// /// The type. /// @@ -55,7 +55,7 @@ public class PaymentAutoAllocateApiObject : BunqModel /// The id of the PaymentAutoAllocate. /// [JsonProperty(PropertyName = "id")] - public int? Id { get; set; } + public long? Id { get; set; } /// /// The timestamp when the PaymentAutoAllocate was created. /// @@ -97,7 +97,7 @@ public class PaymentAutoAllocateApiObject : BunqModel /// The payment that should be used to define the triggers for the payment auto allocate. /// Whether a payment should be sorted ONCE or RECURRING. /// The definition of how the money should be allocated. - public static BunqResponse Create(int? paymentId, string type, List definition, int? monetaryAccountId= null, IDictionary customHeaders = null) + public static BunqResponse Create(long? paymentId, string type, List definition, long? monetaryAccountId= null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -118,7 +118,7 @@ public static BunqResponse Create(int? paymentId, string type, List /// - public static BunqResponse Get(int paymentAutoAllocateId, int? monetaryAccountId= null, IDictionary customHeaders = null) + public static BunqResponse Get(long paymentAutoAllocateId, long? monetaryAccountId= null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -130,7 +130,7 @@ public static BunqResponse Get(int paymentAutoAllo /// /// - public static BunqResponse> List(int? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) + public static BunqResponse> List(long? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) { if (urlParams == null) urlParams = new Dictionary(); if (customHeaders == null) customHeaders = new Dictionary(); @@ -144,7 +144,7 @@ public static BunqResponse> List(int? monetar /// /// /// The definition of how the money should be allocated. - public static BunqResponse Update(int paymentAutoAllocateId, int? monetaryAccountId= null, List definition = null, IDictionary customHeaders = null) + public static BunqResponse Update(long paymentAutoAllocateId, long? monetaryAccountId= null, List definition = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -163,7 +163,7 @@ public static BunqResponse Update(int paymentAutoAllocateId, int? monetaryA /// /// - public static BunqResponse Delete(int paymentAutoAllocateId, int? monetaryAccountId= null, IDictionary customHeaders = null) + public static BunqResponse Delete(long paymentAutoAllocateId, long? monetaryAccountId= null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); diff --git a/BunqSdk/Model/Generated/Endpoint/PaymentAutoAllocateDefinitionApiObject.cs b/BunqSdk/Model/Generated/Endpoint/PaymentAutoAllocateDefinitionApiObject.cs index 2bbbc4c4..2c6e4488 100644 --- a/BunqSdk/Model/Generated/Endpoint/PaymentAutoAllocateDefinitionApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/PaymentAutoAllocateDefinitionApiObject.cs @@ -63,7 +63,7 @@ public class PaymentAutoAllocateDefinitionApiObject : BunqModel /// The id of the PaymentAutoAllocateDefinition. /// [JsonProperty(PropertyName = "id")] - public int? Id { get; set; } + public long? Id { get; set; } /// /// The timestamp when the PaymentAutoAllocateDefinition was created. /// @@ -77,7 +77,7 @@ public class PaymentAutoAllocateDefinitionApiObject : BunqModel /// /// - public static BunqResponse> List(int paymentAutoAllocateId, int? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) + public static BunqResponse> List(long paymentAutoAllocateId, long? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) { if (urlParams == null) urlParams = new Dictionary(); if (customHeaders == null) customHeaders = new Dictionary(); diff --git a/BunqSdk/Model/Generated/Endpoint/PaymentAutoAllocateInstanceApiObject.cs b/BunqSdk/Model/Generated/Endpoint/PaymentAutoAllocateInstanceApiObject.cs index 5d641372..c2165e7b 100644 --- a/BunqSdk/Model/Generated/Endpoint/PaymentAutoAllocateInstanceApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/PaymentAutoAllocateInstanceApiObject.cs @@ -30,7 +30,7 @@ public class PaymentAutoAllocateInstanceApiObject : BunqModel /// The id of the PaymentAutoAllocateInstance. /// [JsonProperty(PropertyName = "id")] - public int? Id { get; set; } + public long? Id { get; set; } /// /// The timestamp when the PaymentAutoAllocateInstance was created. /// @@ -45,7 +45,7 @@ public class PaymentAutoAllocateInstanceApiObject : BunqModel /// The ID of the payment auto allocate this instance belongs to. /// [JsonProperty(PropertyName = "payment_auto_allocate_id")] - public int? PaymentAutoAllocateId { get; set; } + public long? PaymentAutoAllocateId { get; set; } /// /// The status of the payment auto allocate instance. SUCCEEDED or FAILED. /// @@ -65,7 +65,7 @@ public class PaymentAutoAllocateInstanceApiObject : BunqModel /// The ID of the payment that triggered the allocating of the payments. /// [JsonProperty(PropertyName = "payment_id")] - public int? PaymentId { get; set; } + public long? PaymentId { get; set; } /// /// All Ginmon transaction orders executed with this instance. /// @@ -74,7 +74,7 @@ public class PaymentAutoAllocateInstanceApiObject : BunqModel /// /// - public static BunqResponse> List(int paymentAutoAllocateId, int? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) + public static BunqResponse> List(long paymentAutoAllocateId, long? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) { if (urlParams == null) urlParams = new Dictionary(); if (customHeaders == null) customHeaders = new Dictionary(); @@ -87,7 +87,7 @@ public static BunqResponse> List(int /// /// - public static BunqResponse Get(int paymentAutoAllocateId, int paymentAutoAllocateInstanceId, int? monetaryAccountId= null, IDictionary customHeaders = null) + public static BunqResponse Get(long paymentAutoAllocateId, long paymentAutoAllocateInstanceId, long? monetaryAccountId= null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); diff --git a/BunqSdk/Model/Generated/Endpoint/PaymentBatchApiObject.cs b/BunqSdk/Model/Generated/Endpoint/PaymentBatchApiObject.cs index efcdf51c..c4198647 100644 --- a/BunqSdk/Model/Generated/Endpoint/PaymentBatchApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/PaymentBatchApiObject.cs @@ -2,6 +2,7 @@ using Bunq.Sdk.Http; using Bunq.Sdk.Json; using Bunq.Sdk.Model.Core; +using Bunq.Sdk.Model.Generated.Object; using Newtonsoft.Json; using System.Collections.Generic; using System.Text; @@ -26,6 +27,8 @@ public class PaymentBatchApiObject : BunqModel /// Field constants. /// public const string FIELD_PAYMENTS = "payments"; + public const string FIELD_EXECUTION_TYPE = "execution_type"; + public const string FIELD_STATUS = "status"; /// /// Object type. @@ -37,12 +40,54 @@ public class PaymentBatchApiObject : BunqModel /// [JsonProperty(PropertyName = "payments")] public List Payments { get; set; } + /// + /// Whether the payment batch should be executed synchronously or asynchronously. + /// + [JsonProperty(PropertyName = "execution_type")] + public string ExecutionType { get; set; } + /// + /// The status of the payment batch. + /// + [JsonProperty(PropertyName = "status")] + public string Status { get; set; } + /// + /// The ID of the monetary account that this payment batch belongs to. + /// + [JsonProperty(PropertyName = "monetary_account_id")] + public long? MonetaryAccountId { get; set; } + /// + /// The label to display for the monetary account. + /// + [JsonProperty(PropertyName = "label")] + public MonetaryAccountReference Label { get; set; } + /// + /// The total amount of the payment batch. + /// + [JsonProperty(PropertyName = "amount_total")] + public AmountObject AmountTotal { get; set; } + /// + /// The total amount of the successful payments in the batch. + /// + [JsonProperty(PropertyName = "amount_successful")] + public AmountObject AmountSuccessful { get; set; } + /// + /// The ID of the latest event for the payment batch. + /// + [JsonProperty(PropertyName = "event_id")] + public long? EventId { get; set; } + /// + /// The entries that are part of this batch. + /// + [JsonProperty(PropertyName = "entries")] + public List Entries { get; set; } /// /// Create a payment batch by sending an array of single payment objects, that will become part of the batch. /// /// The list of payments we want to send in a single batch. - public static BunqResponse Create(List payments, int? monetaryAccountId= null, IDictionary customHeaders = null) + /// Whether the payment batch should be executed synchronously or asynchronously. + /// The status of the payment batch, used to retry failed payments. + public static BunqResponse Create(List payments, long? monetaryAccountId= null, string executionType = null, string status = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -51,6 +96,8 @@ public static BunqResponse Create(List payments, int? mon var requestMap = new Dictionary { {FIELD_PAYMENTS, payments}, + {FIELD_EXECUTION_TYPE, executionType}, + {FIELD_STATUS, status}, }; var requestBytes = Encoding.UTF8.GetBytes(BunqJsonConvert.SerializeObject(requestMap)); @@ -62,7 +109,8 @@ public static BunqResponse Create(List payments, int? mon /// /// Revoke a bunq.to payment batch. The status of all the payments will be set to REVOKED. /// - public static BunqResponse Update(int paymentBatchId, int? monetaryAccountId= null, IDictionary customHeaders = null) + /// The status of the payment batch, used to retry failed payments. + public static BunqResponse Update(long paymentBatchId, long? monetaryAccountId= null, string status = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -70,6 +118,7 @@ public static BunqResponse Update(int paymentBatchId, int? monetaryAccountI var requestMap = new Dictionary { + {FIELD_STATUS, status}, }; var requestBytes = Encoding.UTF8.GetBytes(BunqJsonConvert.SerializeObject(requestMap)); @@ -81,7 +130,7 @@ public static BunqResponse Update(int paymentBatchId, int? monetaryAccountI /// /// Return the details of a specific payment batch. /// - public static BunqResponse Get(int paymentBatchId, int? monetaryAccountId= null, IDictionary customHeaders = null) + public static BunqResponse Get(long paymentBatchId, long? monetaryAccountId= null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -94,7 +143,7 @@ public static BunqResponse Get(int paymentBatchId, int? m /// /// Return all the payment batches for a monetary account. /// - public static BunqResponse> List(int? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) + public static BunqResponse> List(long? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) { if (urlParams == null) urlParams = new Dictionary(); if (customHeaders == null) customHeaders = new Dictionary(); @@ -110,11 +159,51 @@ public static BunqResponse> List(int? monetaryAccoun /// public override bool IsAllFieldNull() { + if (this.MonetaryAccountId != null) + { + return false; + } + + if (this.ExecutionType != null) + { + return false; + } + + if (this.Status != null) + { + return false; + } + + if (this.Label != null) + { + return false; + } + + if (this.AmountTotal != null) + { + return false; + } + + if (this.AmountSuccessful != null) + { + return false; + } + + if (this.EventId != null) + { + return false; + } + if (this.Payments != null) { return false; } + if (this.Entries != null) + { + return false; + } + return true; } diff --git a/BunqSdk/Model/Generated/Endpoint/PaymentBatchEntryApiObject.cs b/BunqSdk/Model/Generated/Endpoint/PaymentBatchEntryApiObject.cs new file mode 100644 index 00000000..16a0939d --- /dev/null +++ b/BunqSdk/Model/Generated/Endpoint/PaymentBatchEntryApiObject.cs @@ -0,0 +1,162 @@ +using Bunq.Sdk.Context; +using Bunq.Sdk.Http; +using Bunq.Sdk.Json; +using Bunq.Sdk.Model.Core; +using Bunq.Sdk.Model.Generated.Object; +using Newtonsoft.Json; +using System.Collections.Generic; +using System.Text; +using System; + +namespace Bunq.Sdk.Model.Generated.Endpoint +{ + /// + /// Manage entries inside of a payment batch. + /// + public class PaymentBatchEntryApiObject : BunqModel + { + /// + /// Endpoint constants. + /// + protected const string ENDPOINT_URL_READ = "user/{0}/monetary-account/{1}/payment-batch/{2}/entry/{3}"; + protected const string ENDPOINT_URL_UPDATE = "user/{0}/monetary-account/{1}/payment-batch/{2}/entry/{3}"; + + /// + /// Field constants. + /// + public const string FIELD_STATUS = "status"; + + /// + /// Object type. + /// + private const string OBJECT_TYPE_GET = "PaymentBatchEntry"; + + /// + /// The status of the Payment. + /// + [JsonProperty(PropertyName = "status")] + public string Status { get; set; } + /// + /// The ID of the monetary account from which the payment was made. + /// + [JsonProperty(PropertyName = "monetary_account_id")] + public long? MonetaryAccountId { get; set; } + /// + /// The ID of the Payment Batch Entry. + /// + [JsonProperty(PropertyName = "payment_batch_id")] + public long? PaymentBatchId { get; set; } + /// + /// The amount. + /// + [JsonProperty(PropertyName = "amount")] + public AmountObject Amount { get; set; } + /// + /// The pointer to the party where the payment should be made to. + /// + [JsonProperty(PropertyName = "counter_pointer")] + public MonetaryAccountReference CounterPointer { get; set; } + /// + /// The description for the Payment. + /// + [JsonProperty(PropertyName = "description")] + public string Description { get; set; } + /// + /// The payment, if it was made. + /// + [JsonProperty(PropertyName = "payment")] + public PaymentApiObject Payment { get; set; } + /// + /// The errors encountered while executing the payment. + /// + [JsonProperty(PropertyName = "errors")] + public List Errors { get; set; } + + /// + /// + public static BunqResponse Get(long paymentBatchId, long paymentBatchEntryId, long? monetaryAccountId= null, IDictionary customHeaders = null) + { + if (customHeaders == null) customHeaders = new Dictionary(); + + var apiClient = new ApiClient(GetApiContext()); + var responseRaw = apiClient.Get(string.Format(ENDPOINT_URL_READ, DetermineUserId(), DetermineMonetaryAccountId(monetaryAccountId), paymentBatchId, paymentBatchEntryId), new Dictionary(), customHeaders); + + return FromJson(responseRaw, OBJECT_TYPE_GET); + } + + /// + /// + /// The status of the payment batch, used to retry. + public static BunqResponse Update(long paymentBatchId, long paymentBatchEntryId, long? monetaryAccountId= null, string status = null, IDictionary customHeaders = null) + { + if (customHeaders == null) customHeaders = new Dictionary(); + + var apiClient = new ApiClient(GetApiContext()); + + var requestMap = new Dictionary + { + {FIELD_STATUS, status}, + }; + + var requestBytes = Encoding.UTF8.GetBytes(BunqJsonConvert.SerializeObject(requestMap)); + var responseRaw = apiClient.Put(string.Format(ENDPOINT_URL_UPDATE, DetermineUserId(), DetermineMonetaryAccountId(monetaryAccountId), paymentBatchId, paymentBatchEntryId), requestBytes, customHeaders); + + return ProcessForId(responseRaw); + } + + + /// + /// + public override bool IsAllFieldNull() + { + if (this.MonetaryAccountId != null) + { + return false; + } + + if (this.PaymentBatchId != null) + { + return false; + } + + if (this.Status != null) + { + return false; + } + + if (this.Amount != null) + { + return false; + } + + if (this.CounterPointer != null) + { + return false; + } + + if (this.Description != null) + { + return false; + } + + if (this.Payment != null) + { + return false; + } + + if (this.Errors != null) + { + return false; + } + + return true; + } + + /// + /// + public static PaymentBatchEntryApiObject CreateFromJsonString(string json) + { + return BunqModel.CreateFromJsonString(json); + } + } +} diff --git a/BunqSdk/Model/Generated/Endpoint/PaymentDelayedApiObject.cs b/BunqSdk/Model/Generated/Endpoint/PaymentDelayedApiObject.cs new file mode 100644 index 00000000..b3adc634 --- /dev/null +++ b/BunqSdk/Model/Generated/Endpoint/PaymentDelayedApiObject.cs @@ -0,0 +1,129 @@ +using Bunq.Sdk.Context; +using Bunq.Sdk.Exception; +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 +{ + /// + /// Payments that are not processed yet. + /// + public class PaymentDelayedApiObject : BunqModel, IAnchorObjectInterface + { + /// + /// Error constants. + /// + private const string ERROR_NULL_FIELDS = "All fields of an extended model or object are null."; + + /// + /// Endpoint constants. + /// + protected const string ENDPOINT_URL_UPDATE = "user/{0}/monetary-account/{1}/payment-delayed/{2}"; + protected const string ENDPOINT_URL_READ = "user/{0}/monetary-account/{1}/payment-delayed/{2}"; + protected const string ENDPOINT_URL_LISTING = "user/{0}/monetary-account/{1}/payment-delayed"; + + /// + /// Object type. + /// + private const string OBJECT_TYPE_GET = "PaymentDelayed"; + + /// + /// + [JsonProperty(PropertyName = "PaymentDelayedIncoming")] + public PaymentDelayedIncomingApiObject PaymentDelayedIncoming { get; set; } + /// + /// + [JsonProperty(PropertyName = "PaymentDelayedOutgoing")] + public PaymentDelayedOutgoingApiObject PaymentDelayedOutgoing { get; set; } + + /// + /// + public static BunqResponse Update(long paymentDelayedId, long? monetaryAccountId= null, IDictionary customHeaders = null) + { + if (customHeaders == null) customHeaders = new Dictionary(); + + var apiClient = new ApiClient(GetApiContext()); + + var requestMap = new Dictionary + { + }; + + var requestBytes = Encoding.UTF8.GetBytes(BunqJsonConvert.SerializeObject(requestMap)); + var responseRaw = apiClient.Put(string.Format(ENDPOINT_URL_UPDATE, DetermineUserId(), DetermineMonetaryAccountId(monetaryAccountId), paymentDelayedId), requestBytes, customHeaders); + + return ProcessForId(responseRaw); + } + + /// + /// + public static BunqResponse Get(long paymentDelayedId, long? monetaryAccountId= null, IDictionary customHeaders = null) + { + if (customHeaders == null) customHeaders = new Dictionary(); + + var apiClient = new ApiClient(GetApiContext()); + var responseRaw = apiClient.Get(string.Format(ENDPOINT_URL_READ, DetermineUserId(), DetermineMonetaryAccountId(monetaryAccountId), paymentDelayedId), new Dictionary(), customHeaders); + + return FromJson(responseRaw); + } + + /// + /// + public static BunqResponse> List(long? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) + { + if (urlParams == null) urlParams = new Dictionary(); + if (customHeaders == null) customHeaders = new Dictionary(); + + var apiClient = new ApiClient(GetApiContext()); + var responseRaw = apiClient.Get(string.Format(ENDPOINT_URL_LISTING, DetermineUserId(), DetermineMonetaryAccountId(monetaryAccountId)), urlParams, customHeaders); + + return FromJsonList(responseRaw); + } + + + /// + /// + public BunqModel GetReferencedObject() + { + if (this.PaymentDelayedIncoming != null) + { + return this.PaymentDelayedIncoming; + } + + if (this.PaymentDelayedOutgoing != null) + { + return this.PaymentDelayedOutgoing; + } + + throw new BunqException(ERROR_NULL_FIELDS); + } + + /// + /// + public override bool IsAllFieldNull() + { + if (this.PaymentDelayedIncoming != null) + { + return false; + } + + if (this.PaymentDelayedOutgoing != null) + { + return false; + } + + return true; + } + + /// + /// + public static PaymentDelayedApiObject CreateFromJsonString(string json) + { + return BunqModel.CreateFromJsonString(json); + } + } +} diff --git a/BunqSdk/Model/Generated/Endpoint/PaymentDelayedIncomingApiObject.cs b/BunqSdk/Model/Generated/Endpoint/PaymentDelayedIncomingApiObject.cs new file mode 100644 index 00000000..b9a7193a --- /dev/null +++ b/BunqSdk/Model/Generated/Endpoint/PaymentDelayedIncomingApiObject.cs @@ -0,0 +1,109 @@ +using Bunq.Sdk.Model.Core; +using Bunq.Sdk.Model.Generated.Object; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace Bunq.Sdk.Model.Generated.Endpoint +{ + /// + /// Payments that are not processed yet. + /// + public class PaymentDelayedIncomingApiObject : BunqModel + { + /// + /// The status of the delayed payment. + /// + [JsonProperty(PropertyName = "status")] + public string Status { get; set; } + /// + /// The id of the monetary account. + /// + [JsonProperty(PropertyName = "monetary_account_id")] + public long? MonetaryAccountId { get; set; } + /// + /// The amount of the payment. + /// + [JsonProperty(PropertyName = "amount")] + public AmountObject Amount { get; set; } + /// + /// The LabelMonetaryAccount containing the public information of 'this' (party) side of the payment. + /// + [JsonProperty(PropertyName = "alias")] + public MonetaryAccountReference Alias { get; set; } + /// + /// The LabelMonetaryAccount containing the public information of the other (counterparty) side of the payment. + /// + [JsonProperty(PropertyName = "counterparty_alias")] + public MonetaryAccountReference CounterpartyAlias { get; set; } + /// + /// The description of the payment. + /// + [JsonProperty(PropertyName = "description")] + public string Description { get; set; } + /// + /// Information about the expected arrival of the payment. + /// + [JsonProperty(PropertyName = "payment_arrival_expected")] + public PaymentArrivalExpectedObject PaymentArrivalExpected { get; set; } + /// + /// The resulting payment, only when it’s successful. + /// + [JsonProperty(PropertyName = "payment_result")] + public PaymentApiObject PaymentResult { get; set; } + + + /// + /// + public override bool IsAllFieldNull() + { + if (this.Status != null) + { + return false; + } + + if (this.MonetaryAccountId != null) + { + return false; + } + + if (this.Amount != null) + { + return false; + } + + if (this.Alias != null) + { + return false; + } + + if (this.CounterpartyAlias != null) + { + return false; + } + + if (this.Description != null) + { + return false; + } + + if (this.PaymentArrivalExpected != null) + { + return false; + } + + if (this.PaymentResult != null) + { + return false; + } + + return true; + } + + /// + /// + public static PaymentDelayedIncomingApiObject CreateFromJsonString(string json) + { + return BunqModel.CreateFromJsonString(json); + } + } +} diff --git a/BunqSdk/Model/Generated/Endpoint/PaymentDelayedOutgoingApiObject.cs b/BunqSdk/Model/Generated/Endpoint/PaymentDelayedOutgoingApiObject.cs new file mode 100644 index 00000000..e5b7970e --- /dev/null +++ b/BunqSdk/Model/Generated/Endpoint/PaymentDelayedOutgoingApiObject.cs @@ -0,0 +1,155 @@ +using Bunq.Sdk.Model.Core; +using Bunq.Sdk.Model.Generated.Object; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace Bunq.Sdk.Model.Generated.Endpoint +{ + /// + /// Payments that are not processed yet. + /// + public class PaymentDelayedOutgoingApiObject : BunqModel + { + /// + /// Field constants. + /// + public const string FIELD_STATUS = "status"; + + + /// + /// The status of the delayed payment. + /// + [JsonProperty(PropertyName = "status")] + public string Status { get; set; } + /// + /// The id of the monetary account. + /// + [JsonProperty(PropertyName = "monetary_account_id")] + public long? MonetaryAccountId { get; set; } + /// + /// The amount of the payment. + /// + [JsonProperty(PropertyName = "amount")] + public AmountObject Amount { get; set; } + /// + /// The pointer to which the payment should be sent. + /// + [JsonProperty(PropertyName = "counterparty_pointer")] + public MonetaryAccountReference CounterpartyPointer { get; set; } + /// + /// The LabelMonetaryAccount containing the public information of 'this' (party) side of the payment. + /// + [JsonProperty(PropertyName = "alias")] + public MonetaryAccountReference Alias { get; set; } + /// + /// The LabelMonetaryAccount containing the public information of the other (counterparty) side of the payment. + /// + [JsonProperty(PropertyName = "counterparty_alias")] + public MonetaryAccountReference CounterpartyAlias { get; set; } + /// + /// The description of the payment. + /// + [JsonProperty(PropertyName = "description")] + public string Description { get; set; } + /// + /// The reason for the payment being delayed. + /// + [JsonProperty(PropertyName = "reason")] + public string Reason { get; set; } + /// + /// The time this payment should be executed. + /// + [JsonProperty(PropertyName = "time_execution")] + public string TimeExecution { get; set; } + /// + /// Information about the expected arrival of the payment. + /// + [JsonProperty(PropertyName = "payment_arrival_expected")] + public PaymentArrivalExpectedObject PaymentArrivalExpected { get; set; } + /// + /// The reason why the payment failed. + /// + [JsonProperty(PropertyName = "error_message")] + public List ErrorMessage { get; set; } + /// + /// The resulting payment, only when it’s successful. + /// + [JsonProperty(PropertyName = "payment_result")] + public PaymentApiObject PaymentResult { get; set; } + + + /// + /// + public override bool IsAllFieldNull() + { + if (this.Status != null) + { + return false; + } + + if (this.MonetaryAccountId != null) + { + return false; + } + + if (this.Amount != null) + { + return false; + } + + if (this.CounterpartyPointer != null) + { + return false; + } + + if (this.Alias != null) + { + return false; + } + + if (this.CounterpartyAlias != null) + { + return false; + } + + if (this.Description != null) + { + return false; + } + + if (this.Reason != null) + { + return false; + } + + if (this.TimeExecution != null) + { + return false; + } + + if (this.PaymentArrivalExpected != null) + { + return false; + } + + if (this.ErrorMessage != null) + { + return false; + } + + if (this.PaymentResult != null) + { + return false; + } + + return true; + } + + /// + /// + public static PaymentDelayedOutgoingApiObject CreateFromJsonString(string json) + { + return BunqModel.CreateFromJsonString(json); + } + } +} diff --git a/BunqSdk/Model/Generated/Endpoint/PaymentServiceProviderCredentialApiObject.cs b/BunqSdk/Model/Generated/Endpoint/PaymentServiceProviderCredentialApiObject.cs index e898e225..d3bc974f 100644 --- a/BunqSdk/Model/Generated/Endpoint/PaymentServiceProviderCredentialApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/PaymentServiceProviderCredentialApiObject.cs @@ -53,7 +53,7 @@ public class PaymentServiceProviderCredentialApiObject : BunqModel /// The id of the credential. /// [JsonProperty(PropertyName = "id")] - public int? Id { get; set; } + public long? Id { get; set; } /// /// The timestamp of the credential object's creation. /// @@ -87,7 +87,7 @@ public class PaymentServiceProviderCredentialApiObject : BunqModel /// /// - public static BunqResponse Get(int paymentServiceProviderCredentialId, IDictionary customHeaders = null) + public static BunqResponse Get(long paymentServiceProviderCredentialId, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -102,7 +102,7 @@ public static BunqResponse Get(int pa /// Payment Services Directive 2 compatible QSEAL certificate /// Intermediate and root certificate belonging to the provided certificate. /// The Base64 encoded signature of the public key provided during installation and with the installation token appended as a nonce. Signed with the private key belonging to the QSEAL certificate. - public static BunqResponse Create(string clientPaymentServiceProviderCertificate, string clientPaymentServiceProviderCertificateChain, string clientPublicKeySignature, IDictionary customHeaders = null) + public static BunqResponse Create(string clientPaymentServiceProviderCertificate, string clientPaymentServiceProviderCertificateChain, string clientPublicKeySignature, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); diff --git a/BunqSdk/Model/Generated/Endpoint/PaymentServiceProviderDraftPaymentApiObject.cs b/BunqSdk/Model/Generated/Endpoint/PaymentServiceProviderDraftPaymentApiObject.cs index c8c3b9e9..c40afd39 100644 --- a/BunqSdk/Model/Generated/Endpoint/PaymentServiceProviderDraftPaymentApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/PaymentServiceProviderDraftPaymentApiObject.cs @@ -89,7 +89,7 @@ public class PaymentServiceProviderDraftPaymentApiObject : BunqModel /// The Amount to transfer with the Payment. Must be bigger than 0. /// The name of the sender. /// The new status of the Draft Payment. Can only be set to REJECTED or CANCELLED by update. - public static BunqResponse Create(string senderIban, string counterpartyIban, string counterpartyName, string description, AmountObject amount, string senderName = null, string status = null, IDictionary customHeaders = null) + public static BunqResponse Create(string senderIban, string counterpartyIban, string counterpartyName, string description, AmountObject amount, string senderName = null, string status = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -115,7 +115,7 @@ public static BunqResponse Create(string senderIban, string counterpartyIba /// /// /// The new status of the Draft Payment. Can only be set to REJECTED or CANCELLED by update. - public static BunqResponse Update(int paymentServiceProviderDraftPaymentId, string status = null, IDictionary customHeaders = null) + public static BunqResponse Update(long paymentServiceProviderDraftPaymentId, string status = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -147,7 +147,7 @@ public static BunqResponse> Li /// /// - public static BunqResponse Get(int paymentServiceProviderDraftPaymentId, IDictionary customHeaders = null) + public static BunqResponse Get(long paymentServiceProviderDraftPaymentId, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); diff --git a/BunqSdk/Model/Generated/Endpoint/PaymentServiceProviderIssuerTransactionApiObject.cs b/BunqSdk/Model/Generated/Endpoint/PaymentServiceProviderIssuerTransactionApiObject.cs index 4e5a0752..09254723 100644 --- a/BunqSdk/Model/Generated/Endpoint/PaymentServiceProviderIssuerTransactionApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/PaymentServiceProviderIssuerTransactionApiObject.cs @@ -72,7 +72,7 @@ public class PaymentServiceProviderIssuerTransactionApiObject : BunqModel /// The id of this transaction. /// [JsonProperty(PropertyName = "id")] - public int? Id { get; set; } + public long? Id { get; set; } /// /// The time this transaction was created. /// @@ -102,7 +102,7 @@ public class PaymentServiceProviderIssuerTransactionApiObject : BunqModel /// The url to which the user should be redirected once the transaction is accepted or rejected. /// The (optional) expiration time of the transaction. Defaults to 10 minutes. /// The status of the transaction. Can only be used for cancelling the transaction. - public static BunqResponse Create(PointerObject counterpartyAlias, AmountObject amount, string description, string urlRedirect, string timeExpiry = null, string status = null, IDictionary customHeaders = null) + public static BunqResponse Create(PointerObject counterpartyAlias, AmountObject amount, string description, string urlRedirect, string timeExpiry = null, string status = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -126,7 +126,7 @@ public static BunqResponse Create(PointerObject counterpartyAlias, AmountOb /// /// - public static BunqResponse Get(int paymentServiceProviderIssuerTransactionId, IDictionary customHeaders = null) + public static BunqResponse Get(long paymentServiceProviderIssuerTransactionId, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -139,7 +139,7 @@ public static BunqResponse Get /// /// /// The status of the transaction. Can only be used for cancelling the transaction. - public static BunqResponse Update(int paymentServiceProviderIssuerTransactionId, string status = null, IDictionary customHeaders = null) + public static BunqResponse Update(long paymentServiceProviderIssuerTransactionId, string status = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); diff --git a/BunqSdk/Model/Generated/Endpoint/PermittedIpApiObject.cs b/BunqSdk/Model/Generated/Endpoint/PermittedIpApiObject.cs index 8bba62bf..6c21c355 100644 --- a/BunqSdk/Model/Generated/Endpoint/PermittedIpApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/PermittedIpApiObject.cs @@ -47,7 +47,7 @@ public class PermittedIpApiObject : BunqModel /// /// - public static BunqResponse Get(int credentialPasswordIpId, int permittedIpId, IDictionary customHeaders = null) + public static BunqResponse Get(long credentialPasswordIpId, long permittedIpId, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -61,7 +61,7 @@ public static BunqResponse Get(int credentialPasswordIpId, /// /// The IP address. /// The status of the IP. May be "ACTIVE" or "INACTIVE". It is only possible to make requests from "ACTIVE" IP addresses. Only "ACTIVE" IPs will be billed. - public static BunqResponse Create(int credentialPasswordIpId, string ip, string status = null, IDictionary customHeaders = null) + public static BunqResponse Create(long credentialPasswordIpId, string ip, string status = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -81,7 +81,7 @@ public static BunqResponse Create(int credentialPasswordIpId, string ip, st /// /// - public static BunqResponse> List(int credentialPasswordIpId, IDictionary urlParams = null, IDictionary customHeaders = null) + public static BunqResponse> List(long credentialPasswordIpId, IDictionary urlParams = null, IDictionary customHeaders = null) { if (urlParams == null) urlParams = new Dictionary(); if (customHeaders == null) customHeaders = new Dictionary(); @@ -95,7 +95,7 @@ public static BunqResponse> List(int credentialPasswo /// /// /// The status of the IP. May be "ACTIVE" or "INACTIVE". It is only possible to make requests from "ACTIVE" IP addresses. Only "ACTIVE" IPs will be billed. - public static BunqResponse Update(int credentialPasswordIpId, int permittedIpId, string status = null, IDictionary customHeaders = null) + public static BunqResponse Update(long credentialPasswordIpId, long permittedIpId, string status = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); diff --git a/BunqSdk/Model/Generated/Endpoint/PointMutationApiObject.cs b/BunqSdk/Model/Generated/Endpoint/PointMutationApiObject.cs index 1e830889..763fb8f0 100644 --- a/BunqSdk/Model/Generated/Endpoint/PointMutationApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/PointMutationApiObject.cs @@ -13,7 +13,7 @@ public class PointMutationApiObject : BunqModel /// The number of points earned. /// [JsonProperty(PropertyName = "number_of_point")] - public int? NumberOfPoint { get; set; } + public long? NumberOfPoint { get; set; } /// diff --git a/BunqSdk/Model/Generated/Endpoint/RegistryApiObject.cs b/BunqSdk/Model/Generated/Endpoint/RegistryApiObject.cs new file mode 100644 index 00000000..b21a2914 --- /dev/null +++ b/BunqSdk/Model/Generated/Endpoint/RegistryApiObject.cs @@ -0,0 +1,307 @@ +using Bunq.Sdk.Model.Core; +using Bunq.Sdk.Model.Generated.Object; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace Bunq.Sdk.Model.Generated.Endpoint +{ + /// + /// Initially used to manage Slice groups, now it is used to manage Tricounts + /// + public class RegistryApiObject : BunqModel + { + /// + /// Field constants. + /// + public const string FIELD_UPDATED = "updated"; + public const string FIELD_UUID = "uuid"; + public const string FIELD_PUBLIC_IDENTIFIER_TOKEN = "public_identifier_token"; + public const string FIELD_CURRENCY = "currency"; + public const string FIELD_TITLE = "title"; + public const string FIELD_DESCRIPTION = "description"; + public const string FIELD_CATEGORY = "category"; + public const string FIELD_STATUS = "status"; + public const string FIELD_LAST_REGISTRY_ENTRY_SEEN_ID = "last_registry_entry_seen_id"; + public const string FIELD_PREVIOUS_UPDATED_TIMESTAMP = "previous_updated_timestamp"; + public const string FIELD_MEMBERSHIP_UUID_ACTIVE = "membership_uuid_active"; + public const string FIELD_MEMBERSHIPS = "memberships"; + public const string FIELD_MEMBERSHIPS_PREVIOUS = "memberships_previous"; + public const string FIELD_DELETED_MEMBERSHIP_IDS = "deleted_membership_ids"; + public const string FIELD_AUTO_ADD_CARD_TRANSACTION = "auto_add_card_transaction"; + public const string FIELD_MEMBERSHIP_SETTING = "membership_setting"; + public const string FIELD_AVATAR_UUID = "avatar_uuid"; + public const string FIELD_SETTING = "setting"; + public const string FIELD_ALL_REGISTRY_ENTRY = "all_registry_entry"; + public const string FIELD_ALIAS_CREATOR = "alias_creator"; + public const string FIELD_EMOJI = "emoji"; + + + /// + /// The timestamp of the Registry's last update. + /// + [JsonProperty(PropertyName = "updated")] + public string Updated { get; set; } + /// + /// The uuid of the Registry. If it was provided by the client on creation, then the client can use it to match + /// the returned Registry to the row stored locally. + /// + [JsonProperty(PropertyName = "uuid")] + public string Uuid { get; set; } + /// + /// Public identifier token provided by the client. Will remain null if not provided in the POST call. + /// + [JsonProperty(PropertyName = "public_identifier_token")] + public string PublicIdentifierToken { get; set; } + /// + /// The currency for the Registry as an ISO 4217 formatted currency code. + /// + [JsonProperty(PropertyName = "currency")] + public string Currency { get; set; } + /// + /// The title of the Registry. + /// + [JsonProperty(PropertyName = "title")] + public string Title { get; set; } + /// + /// A description about the Registry. + /// + [JsonProperty(PropertyName = "description")] + public string Description { get; set; } + /// + /// The category of the Registry. Can be one of the following values: GENERAL, TRIP, SHARED_HOUSE, COUPLE, + /// EVENT, PROJECT, OTHER + /// + [JsonProperty(PropertyName = "category")] + public string Category { get; set; } + /// + /// The status of the Registry. + /// + [JsonProperty(PropertyName = "status")] + public string Status { get; set; } + /// + /// The id of the last RegistryEntry that the user has seen. + /// + [JsonProperty(PropertyName = "last_registry_entry_seen_id")] + public long? LastRegistryEntrySeenId { get; set; } + /// + /// The previous updated timestamp that you received for this Registry. + /// + [JsonProperty(PropertyName = "previous_updated_timestamp")] + public string PreviousUpdatedTimestamp { get; set; } + /// + /// The UUID of the membership which is currently linked to the logged in user. + /// + [JsonProperty(PropertyName = "membership_uuid_active")] + public string MembershipUuidActive { get; set; } + /// + /// List of memberships to replace the current one. + /// + [JsonProperty(PropertyName = "memberships")] + public List Memberships { get; set; } + /// + /// Previous list of memberships. + /// + [JsonProperty(PropertyName = "memberships_previous")] + public List MembershipsPrevious { get; set; } + /// + /// The ids of the memberships that have been deleted. + /// + [JsonProperty(PropertyName = "deleted_membership_ids")] + public List DeletedMembershipIds { get; set; } + /// + /// The setting for adding automatically card transactions to the registry for the creator. (deprecated) + /// + [JsonProperty(PropertyName = "auto_add_card_transaction")] + public string AutoAddCardTransaction { get; set; } + /// + /// User creator registry membership setting. + /// + [JsonProperty(PropertyName = "membership_setting")] + public RegistryMembershipSettingObject MembershipSetting { get; set; } + /// + /// The UUID of the avatar. Use the calls /attachment-public and /avatar to create a new Avatar and get its + /// UUID. + /// + [JsonProperty(PropertyName = "avatar_uuid")] + public string AvatarUuid { get; set; } + /// + /// The settings for this Registry. + /// + [JsonProperty(PropertyName = "setting")] + public RegistrySettingApiObject Setting { get; set; } + /// + /// + [JsonProperty(PropertyName = "all_registry_entry")] + public List AllRegistryEntry { get; set; } + /// + /// The alias of the creator, so we can send a confirmation even when the creator doesn't yet have an alias + /// saved for their user. + /// + [JsonProperty(PropertyName = "alias_creator")] + public MonetaryAccountReference AliasCreator { get; set; } + /// + /// The emoji of the registry. + /// + [JsonProperty(PropertyName = "emoji")] + public string Emoji { get; set; } + /// + /// The id of the Registry. + /// + [JsonProperty(PropertyName = "id")] + public long? Id { get; set; } + /// + /// The timestamp of the Registry's creation. + /// + [JsonProperty(PropertyName = "created")] + public string Created { get; set; } + /// + /// The total amount spent in this Registry since the last settlement. + /// + [JsonProperty(PropertyName = "total_amount_spent")] + public AmountObject TotalAmountSpent { get; set; } + /// + /// Whether the Registry has previously been settled. + /// + [JsonProperty(PropertyName = "is_previously_settled")] + public bool? IsPreviouslySettled { get; set; } + /// + /// The registry's avatar. + /// + [JsonProperty(PropertyName = "avatar")] + public AvatarObject Avatar { get; set; } + /// + /// The optional ID of the last settlement of this activity. + /// + [JsonProperty(PropertyName = "last_settlement_id")] + public long? LastSettlementId { get; set; } + /// + /// The timestamp of the latest activity seen for this registry. + /// + [JsonProperty(PropertyName = "last_activity_timestamp")] + public string LastActivityTimestamp { get; set; } + /// + /// + [JsonProperty(PropertyName = "all_registry_gallery_attachment")] + public List AllRegistryGalleryAttachment { get; set; } + + + /// + /// + public override bool IsAllFieldNull() + { + if (this.Id != null) + { + return false; + } + + if (this.Uuid != null) + { + return false; + } + + if (this.PublicIdentifierToken != null) + { + return false; + } + + if (this.Created != null) + { + return false; + } + + if (this.Updated != null) + { + return false; + } + + if (this.Currency != null) + { + return false; + } + + if (this.Emoji != null) + { + return false; + } + + if (this.Title != null) + { + return false; + } + + if (this.Description != null) + { + return false; + } + + if (this.Category != null) + { + return false; + } + + if (this.Status != null) + { + return false; + } + + if (this.TotalAmountSpent != null) + { + return false; + } + + if (this.IsPreviouslySettled != null) + { + return false; + } + + if (this.MembershipUuidActive != null) + { + return false; + } + + if (this.Memberships != null) + { + return false; + } + + if (this.Setting != null) + { + return false; + } + + if (this.Avatar != null) + { + return false; + } + + if (this.LastSettlementId != null) + { + return false; + } + + if (this.LastActivityTimestamp != null) + { + return false; + } + + if (this.AllRegistryEntry != null) + { + return false; + } + + if (this.AllRegistryGalleryAttachment != null) + { + return false; + } + + return true; + } + + /// + /// + public static RegistryApiObject CreateFromJsonString(string json) + { + return BunqModel.CreateFromJsonString(json); + } + } +} diff --git a/BunqSdk/Model/Generated/Endpoint/RegistryEntryApiObject.cs b/BunqSdk/Model/Generated/Endpoint/RegistryEntryApiObject.cs new file mode 100644 index 00000000..dbf64649 --- /dev/null +++ b/BunqSdk/Model/Generated/Endpoint/RegistryEntryApiObject.cs @@ -0,0 +1,305 @@ +using Bunq.Sdk.Model.Core; +using Bunq.Sdk.Model.Generated.Object; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace Bunq.Sdk.Model.Generated.Endpoint +{ + /// + /// Used to manage Slice group payment. + /// + public class RegistryEntryApiObject : BunqModel + { + /// + /// Field constants. + /// + public const string FIELD_ID = "id"; + public const string FIELD_UUID = "uuid"; + public const string FIELD_UPDATED = "updated"; + public const string FIELD_STATUS = "status"; + public const string FIELD_MEMBERSHIP_UUID_OWNER = "membership_uuid_owner"; + public const string FIELD_MEMBERSHIP_TRICOUNT_ID_OWNER = "membership_tricount_id_owner"; + public const string FIELD_ALIAS_OWNER = "alias_owner"; + public const string FIELD_AMOUNT = "amount"; + public const string FIELD_AMOUNT_LOCAL = "amount_local"; + public const string FIELD_EXCHANGE_RATE = "exchange_rate"; + public const string FIELD_OBJECT_REFERENCE = "object_reference"; + public const string FIELD_DESCRIPTION = "description"; + public const string FIELD_ALLOCATIONS = "allocations"; + public const string FIELD_ATTACHMENT = "attachment"; + public const string FIELD_CATEGORY = "category"; + public const string FIELD_CATEGORY_CUSTOM = "category_custom"; + public const string FIELD_DATE = "date"; + public const string FIELD_TYPE_TRANSACTION = "type_transaction"; + public const string FIELD_TRICOUNT_ID = "tricount_id"; + + + /// + /// The id of the RegistryEntry. + /// + [JsonProperty(PropertyName = "id")] + public long? Id { get; set; } + /// + /// The uuid of the RegistryEntry. If it was provided by the client on creation, then the client can use it to + /// match the returned RegistryEntry to the row stored locally. + /// + [JsonProperty(PropertyName = "uuid")] + public string Uuid { get; set; } + /// + /// The timestamp of the RegistryEntry's last update. + /// + [JsonProperty(PropertyName = "updated")] + public string Updated { get; set; } + /// + /// The status of the RegistryEntry. + /// + [JsonProperty(PropertyName = "status")] + public string Status { get; set; } + /// + /// The UUID of the RegistryMembership of the party we are allocating money for. Can be provided instead of the + /// "alias_owner" field. + /// + [JsonProperty(PropertyName = "membership_uuid_owner")] + public string MembershipUuidOwner { get; set; } + /// + /// The original tricount id of the membership for backwards compatibility, to ensure clients are able to sync + /// updates to transactions made offline before the Tricount migration to the bunq backend. + /// + [JsonProperty(PropertyName = "membership_tricount_id_owner")] + public long? MembershipTricountIdOwner { get; set; } + /// + /// The Alias of the party we are allocating money for. + /// + [JsonProperty(PropertyName = "alias_owner")] + public MonetaryAccountReference AliasOwner { get; set; } + /// + /// The Amount of the RegistryEntry. + /// + [JsonProperty(PropertyName = "amount")] + public AmountObject Amount { get; set; } + /// + /// The Amount of the RegistryEntry in a local currency. + /// + [JsonProperty(PropertyName = "amount_local")] + public AmountObject AmountLocal { get; set; } + /// + /// The exchange rate used to convert between amount and amount_local. + /// + [JsonProperty(PropertyName = "exchange_rate")] + public string ExchangeRate { get; set; } + /// + /// The object linked to the RegistryEntry. + /// + [JsonProperty(PropertyName = "object_reference")] + public RegistryEntryReferenceObject ObjectReference { get; set; } + /// + /// A description about the RegistryEntry. + /// + [JsonProperty(PropertyName = "description")] + public string Description { get; set; } + /// + /// An array of AllocationItems. + /// + [JsonProperty(PropertyName = "allocations")] + public List Allocations { get; set; } + /// + /// The attachments attached to the payment. + /// + [JsonProperty(PropertyName = "attachment")] + public List Attachment { get; set; } + /// + /// The category of this RegistryEntry. Supported values: UNCATEGORIZED, OTHER, ACCOMODATION, ENTERTAINMENT, + /// GROCERIES, HEALTHCARE, INSURANCE, RENT, RESTAURANTS, SHOPPING, TRANSPORT + /// + [JsonProperty(PropertyName = "category")] + public string Category { get; set; } + /// + /// A custom user-provided category description for this RegistryEntry. Only allowed if `category` is set to + /// "OTHER". + /// + [JsonProperty(PropertyName = "category_custom")] + public string CategoryCustom { get; set; } + /// + /// A user provided date for this RegistryEntry. Returns a full timestamp to allow apps to also use this to sort + /// transactions client-side. + /// + [JsonProperty(PropertyName = "date")] + public string Date { get; set; } + /// + /// The RegistryEntry transaction type. NORMAL, INCOME, or BALANCE. + /// + [JsonProperty(PropertyName = "type_transaction")] + public string TypeTransaction { get; set; } + /// + /// The original tricount id for backwards compatibility, to ensure clients are able to sync updates to + /// transactions made offline before the Tricount migration to the bunq backend. + /// + [JsonProperty(PropertyName = "tricount_id")] + public long? TricountId { get; set; } + /// + /// The timestamp of the RegistryEntry's creation. + /// + [JsonProperty(PropertyName = "created")] + public string Created { get; set; } + /// + /// The id of the Registry. + /// + [JsonProperty(PropertyName = "registry_id")] + public long? RegistryId { get; set; } + /// + /// The RegistryEntry type. AUTO if created by Auto Slice, MANUAL for manually added entries. + /// + [JsonProperty(PropertyName = "type")] + public string Type { get; set; } + /// + /// The LabelUser with the public information of the party of this RegistryEntry. + /// + [JsonProperty(PropertyName = "alias")] + public MonetaryAccountReference Alias { get; set; } + /// + /// The LabelUser with the public information of the counter party of this RegistryEntry. + /// + [JsonProperty(PropertyName = "counterparty_alias")] + public MonetaryAccountReference CounterpartyAlias { get; set; } + /// + /// The LabelUser with the public information of the User that created the RegistryEntry. + /// + [JsonProperty(PropertyName = "user_alias_created")] + public MonetaryAccountReference UserAliasCreated { get; set; } + /// + /// The membership of the creator. + /// + [JsonProperty(PropertyName = "membership_created")] + public RegistryMembershipApiObject MembershipCreated { get; set; } + /// + /// The membership of the owner. + /// + [JsonProperty(PropertyName = "membership_owned")] + public RegistryMembershipApiObject MembershipOwned { get; set; } + + + /// + /// + public override bool IsAllFieldNull() + { + if (this.Id != null) + { + return false; + } + + if (this.Uuid != null) + { + return false; + } + + if (this.Created != null) + { + return false; + } + + if (this.Updated != null) + { + return false; + } + + if (this.RegistryId != null) + { + return false; + } + + if (this.Status != null) + { + return false; + } + + if (this.Amount != null) + { + return false; + } + + if (this.AmountLocal != null) + { + return false; + } + + if (this.ExchangeRate != null) + { + return false; + } + + if (this.Description != null) + { + return false; + } + + if (this.Type != null) + { + return false; + } + + if (this.TypeTransaction != null) + { + return false; + } + + if (this.Alias != null) + { + return false; + } + + if (this.CounterpartyAlias != null) + { + return false; + } + + if (this.UserAliasCreated != null) + { + return false; + } + + if (this.MembershipCreated != null) + { + return false; + } + + if (this.MembershipOwned != null) + { + return false; + } + + if (this.Allocations != null) + { + return false; + } + + if (this.Attachment != null) + { + return false; + } + + if (this.Category != null) + { + return false; + } + + if (this.CategoryCustom != null) + { + return false; + } + + if (this.Date != null) + { + return false; + } + + return true; + } + + /// + /// + public static RegistryEntryApiObject CreateFromJsonString(string json) + { + return BunqModel.CreateFromJsonString(json); + } + } +} diff --git a/BunqSdk/Model/Generated/Endpoint/RegistryGalleryAttachmentApiObject.cs b/BunqSdk/Model/Generated/Endpoint/RegistryGalleryAttachmentApiObject.cs new file mode 100644 index 00000000..506071c4 --- /dev/null +++ b/BunqSdk/Model/Generated/Endpoint/RegistryGalleryAttachmentApiObject.cs @@ -0,0 +1,59 @@ +using Bunq.Sdk.Model.Core; +using Bunq.Sdk.Model.Generated.Object; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace Bunq.Sdk.Model.Generated.Endpoint +{ + /// + /// This call is used to upload an photo that is accessible by all members of a registry. + /// + public class RegistryGalleryAttachmentApiObject : BunqModel + { + /// + /// The id of the user owner. + /// + [JsonProperty(PropertyName = "user_id")] + public long? UserId { get; set; } + /// + /// The attachment. + /// + [JsonProperty(PropertyName = "attachment")] + public AttachmentObject Attachment { get; set; } + /// + /// The membership of the owner uuid. + /// + [JsonProperty(PropertyName = "membership_uuid")] + public string MembershipUuid { get; set; } + + + /// + /// + public override bool IsAllFieldNull() + { + if (this.UserId != null) + { + return false; + } + + if (this.Attachment != null) + { + return false; + } + + if (this.MembershipUuid != null) + { + return false; + } + + return true; + } + + /// + /// + public static RegistryGalleryAttachmentApiObject CreateFromJsonString(string json) + { + return BunqModel.CreateFromJsonString(json); + } + } +} diff --git a/BunqSdk/Model/Generated/Endpoint/RegistryImportSplitwiseCsvApiObject.cs b/BunqSdk/Model/Generated/Endpoint/RegistryImportSplitwiseCsvApiObject.cs new file mode 100644 index 00000000..afc80021 --- /dev/null +++ b/BunqSdk/Model/Generated/Endpoint/RegistryImportSplitwiseCsvApiObject.cs @@ -0,0 +1,71 @@ +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 +{ + /// + /// Used to upload a CSV export from Splitwise, and create a new Registry from it. + /// + public class RegistryImportSplitwiseCsvApiObject : BunqModel + { + /// + /// Endpoint constants. + /// + protected const string ENDPOINT_URL_CREATE = "user/{0}/registry-import-splitwise-csv"; + + /// + /// Object type. + /// + private const string OBJECT_TYPE_POST = "RegistryImport"; + + /// + /// The registry details. + /// + [JsonProperty(PropertyName = "registry")] + public RegistryApiObject Registry { get; set; } + + /// + /// + public static BunqResponse Create( IDictionary customHeaders = null) + { + if (customHeaders == null) customHeaders = new Dictionary(); + + var apiClient = new ApiClient(GetApiContext()); + + var requestMap = new Dictionary + { + }; + + var requestBytes = Encoding.UTF8.GetBytes(BunqJsonConvert.SerializeObject(requestMap)); + var responseRaw = apiClient.Post(string.Format(ENDPOINT_URL_CREATE, DetermineUserId()), requestBytes, customHeaders); + + return FromJson(responseRaw, OBJECT_TYPE_POST); + } + + + /// + /// + public override bool IsAllFieldNull() + { + if (this.Registry != null) + { + return false; + } + + return true; + } + + /// + /// + public static RegistryImportSplitwiseCsvApiObject CreateFromJsonString(string json) + { + return BunqModel.CreateFromJsonString(json); + } + } +} diff --git a/BunqSdk/Model/Generated/Endpoint/RegistryMembershipApiObject.cs b/BunqSdk/Model/Generated/Endpoint/RegistryMembershipApiObject.cs new file mode 100644 index 00000000..52a7a8b6 --- /dev/null +++ b/BunqSdk/Model/Generated/Endpoint/RegistryMembershipApiObject.cs @@ -0,0 +1,167 @@ +using Bunq.Sdk.Model.Core; +using Bunq.Sdk.Model.Generated.Object; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace Bunq.Sdk.Model.Generated.Endpoint +{ + /// + /// View for RegistryMembership. + /// + public class RegistryMembershipApiObject : BunqModel + { + /// + /// Field constants. + /// + public const string FIELD_UUID = "uuid"; + public const string FIELD_ALIAS = "alias"; + public const string FIELD_STATUS = "status"; + public const string FIELD_AUTO_ADD_CARD_TRANSACTION = "auto_add_card_transaction"; + public const string FIELD_SETTING = "setting"; + public const string FIELD_MEMBERSHIP_TICOUNT_ID = "membership_ticount_id"; + + + /// + /// The UUID of the membership. + /// + [JsonProperty(PropertyName = "uuid")] + public string Uuid { get; set; } + /// + /// The LabelMonetaryAccount of the user who belongs to this RegistryMembership. + /// + [JsonProperty(PropertyName = "alias")] + public MonetaryAccountReference Alias { get; set; } + /// + /// The status of the RegistryMembership. + /// + [JsonProperty(PropertyName = "status")] + public string Status { get; set; } + /// + /// The setting for adding automatically card transactions to the registry. (deprecated) + /// + [JsonProperty(PropertyName = "auto_add_card_transaction")] + public string AutoAddCardTransaction { get; set; } + /// + /// Registry membership setting. + /// + [JsonProperty(PropertyName = "setting")] + public RegistryMembershipSettingObject Setting { get; set; } + /// + /// The original TricountId of the membership for backwards compatibility. May be used as an alternative to the + /// UUID to identify specific memberships to allow clients to sync changes made offline before the Tricount + /// migration. + /// + [JsonProperty(PropertyName = "membership_ticount_id")] + public long? MembershipTicountId { get; set; } + /// + /// The balance of this RegistryMembership. + /// + [JsonProperty(PropertyName = "balance")] + public AmountObject Balance { get; set; } + /// + /// The total amount spent of this RegistryMembership. + /// + [JsonProperty(PropertyName = "total_amount_spent")] + public AmountObject TotalAmountSpent { get; set; } + /// + /// The status of the settlement of the Registry. Can be PENDING or SETTLED. + /// + [JsonProperty(PropertyName = "status_settlement")] + public string StatusSettlement { get; set; } + /// + /// The registry id. + /// + [JsonProperty(PropertyName = "registry_id")] + public long? RegistryId { get; set; } + /// + /// The registry title. + /// + [JsonProperty(PropertyName = "registry_title")] + public string RegistryTitle { get; set; } + /// + /// For dinner and grocery expenses. + /// + [JsonProperty(PropertyName = "registry_description")] + public string RegistryDescription { get; set; } + /// + /// The label of the user that sent the invite. + /// + [JsonProperty(PropertyName = "invitor")] + public MonetaryAccountReference Invitor { get; set; } + + + /// + /// + public override bool IsAllFieldNull() + { + if (this.Uuid != null) + { + return false; + } + + if (this.Alias != null) + { + return false; + } + + if (this.Balance != null) + { + return false; + } + + if (this.TotalAmountSpent != null) + { + return false; + } + + if (this.Status != null) + { + return false; + } + + if (this.StatusSettlement != null) + { + return false; + } + + if (this.AutoAddCardTransaction != null) + { + return false; + } + + if (this.Setting != null) + { + return false; + } + + if (this.RegistryId != null) + { + return false; + } + + if (this.RegistryTitle != null) + { + return false; + } + + if (this.RegistryDescription != null) + { + return false; + } + + if (this.Invitor != null) + { + return false; + } + + return true; + } + + /// + /// + public static RegistryMembershipApiObject CreateFromJsonString(string json) + { + return BunqModel.CreateFromJsonString(json); + } + } +} diff --git a/BunqSdk/Model/Generated/Endpoint/RegistrySettingApiObject.cs b/BunqSdk/Model/Generated/Endpoint/RegistrySettingApiObject.cs new file mode 100644 index 00000000..8aea67ad --- /dev/null +++ b/BunqSdk/Model/Generated/Endpoint/RegistrySettingApiObject.cs @@ -0,0 +1,72 @@ +using Bunq.Sdk.Model.Core; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace Bunq.Sdk.Model.Generated.Endpoint +{ + /// + /// Used to manage Slice group settings. + /// + public class RegistrySettingApiObject : BunqModel + { + /// + /// Field constants. + /// + public const string FIELD_COLOR = "color"; + public const string FIELD_ICON = "icon"; + public const string FIELD_DEFAULT_AVATAR_STATUS = "default_avatar_status"; + public const string FIELD_SDD_EXPIRATION_ACTION = "sdd_expiration_action"; + + + /// + /// The color chosen for the Registry. + /// + [JsonProperty(PropertyName = "color")] + public string Color { get; set; } + /// + /// The icon chosen for the Registry. + /// + [JsonProperty(PropertyName = "icon")] + public string Icon { get; set; } + /// + /// The status of the avatar. Can be either AVATAR_DEFAULT, AVATAR_CUSTOM, AVATAR_ICON or AVATAR_UNDETERMINED. + /// + [JsonProperty(PropertyName = "default_avatar_status")] + public string DefaultAvatarStatus { get; set; } + /// + /// A monetaryAccountSetting field that should not be here, added for app support. + /// + [JsonProperty(PropertyName = "sdd_expiration_action")] + public string SddExpirationAction { get; set; } + + + /// + /// + public override bool IsAllFieldNull() + { + if (this.Color != null) + { + return false; + } + + if (this.Icon != null) + { + return false; + } + + if (this.DefaultAvatarStatus != null) + { + return false; + } + + return true; + } + + /// + /// + public static RegistrySettingApiObject CreateFromJsonString(string json) + { + return BunqModel.CreateFromJsonString(json); + } + } +} diff --git a/BunqSdk/Model/Generated/Endpoint/RelationUserApiObject.cs b/BunqSdk/Model/Generated/Endpoint/RelationUserApiObject.cs index 2698a562..c0028955 100644 --- a/BunqSdk/Model/Generated/Endpoint/RelationUserApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/RelationUserApiObject.cs @@ -41,16 +41,36 @@ public class RelationUserApiObject : BunqModel [JsonProperty(PropertyName = "status")] public string Status { get; set; } /// - /// The account status of a user + /// The account status of a user. /// [JsonProperty(PropertyName = "user_status")] public string UserStatus { get; set; } /// - /// The account status of a user + /// The account sub-status of the user. + /// + [JsonProperty(PropertyName = "user_sub_status")] + public string UserSubStatus { get; set; } + /// + /// The account verification status of the user. + /// + [JsonProperty(PropertyName = "user_verification_status")] + public string UserVerificationStatus { get; set; } + /// + /// The account sub-status of the counter user. /// [JsonProperty(PropertyName = "counter_user_status")] public string CounterUserStatus { get; set; } /// + /// The account sub-status of the counter user. + /// + [JsonProperty(PropertyName = "counter_user_sub_status")] + public string CounterUserSubStatus { get; set; } + /// + /// The account verification status of the counter user. + /// + [JsonProperty(PropertyName = "counter_user_verification_status")] + public string CounterUserVerificationStatus { get; set; } + /// /// Tap to Pay settings for the company employee. /// [JsonProperty(PropertyName = "company_employee_setting_adyen_card_transaction")] @@ -101,11 +121,31 @@ public override bool IsAllFieldNull() return false; } + if (this.UserSubStatus != null) + { + return false; + } + + if (this.UserVerificationStatus != null) + { + return false; + } + if (this.CounterUserStatus != null) { return false; } + if (this.CounterUserSubStatus != null) + { + return false; + } + + if (this.CounterUserVerificationStatus != null) + { + return false; + } + if (this.CompanyEmployeeSettingAdyenCardTransaction != null) { return false; diff --git a/BunqSdk/Model/Generated/Endpoint/RequestInquiryApiObject.cs b/BunqSdk/Model/Generated/Endpoint/RequestInquiryApiObject.cs index f38d7947..76ac523f 100644 --- a/BunqSdk/Model/Generated/Endpoint/RequestInquiryApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/RequestInquiryApiObject.cs @@ -84,7 +84,7 @@ public class RequestInquiryApiObject : BunqModel /// The minimum age the user accepting the RequestInquiry must have. /// [JsonProperty(PropertyName = "minimum_age")] - public int? MinimumAge { get; set; } + public long? MinimumAge { get; set; } /// /// Whether or not an address must be provided on accept. /// @@ -122,12 +122,12 @@ public class RequestInquiryApiObject : BunqModel /// The ID of the associated event if the request was made using 'split the bill'. /// [JsonProperty(PropertyName = "event_id")] - public int? EventId { get; set; } + public long? EventId { get; set; } /// /// The id of the created RequestInquiry. /// [JsonProperty(PropertyName = "id")] - public int? Id { get; set; } + public long? Id { get; set; } /// /// The timestamp of the payment request's creation. /// @@ -152,7 +152,7 @@ public class RequestInquiryApiObject : BunqModel /// The id of the monetary account the request response applies to. /// [JsonProperty(PropertyName = "monetary_account_id")] - public int? MonetaryAccountId { get; set; } + public long? MonetaryAccountId { get; set; } /// /// The responded amount. /// @@ -172,12 +172,12 @@ public class RequestInquiryApiObject : BunqModel /// The id of the batch if the request was part of a batch. /// [JsonProperty(PropertyName = "batch_id")] - public int? BatchId { get; set; } + public long? BatchId { get; set; } /// /// The id of the scheduled job if the request was scheduled. /// [JsonProperty(PropertyName = "scheduled_id")] - public int? ScheduledId { get; set; } + public long? ScheduledId { get; set; } /// /// The url that points to the bunq.me request. /// @@ -222,7 +222,7 @@ public class RequestInquiryApiObject : BunqModel /// [DEPRECATED] Whether or not the accepting user can choose to accept with a higher amount than requested. Defaults to false. /// The URL which the user is sent to after accepting or rejecting the Request. /// The ID of the associated event if the request was made using 'split the bill'. - public static BunqResponse Create(AmountObject amountInquired, PointerObject counterpartyAlias, string description, bool? allowBunqme, int? monetaryAccountId= null, List attachment = null, string merchantReference = null, string status = null, int? minimumAge = null, string requireAddress = null, bool? wantTip = null, bool? allowAmountLower = null, bool? allowAmountHigher = null, string redirectUrl = null, int? eventId = null, IDictionary customHeaders = null) + public static BunqResponse Create(AmountObject amountInquired, PointerObject counterpartyAlias, string description, bool? allowBunqme, long? monetaryAccountId= null, List attachment = null, string merchantReference = null, string status = null, long? minimumAge = null, string requireAddress = null, bool? wantTip = null, bool? allowAmountLower = null, bool? allowAmountHigher = null, string redirectUrl = null, long? eventId = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -256,7 +256,7 @@ public static BunqResponse Create(AmountObject amountInquired, PointerObjec /// Revoke a request for payment, by updating the status to REVOKED. /// /// The status of the RequestInquiry. Ignored in POST requests but can be used for revoking (cancelling) the RequestInquiry by setting REVOKED with a PUT request. - public static BunqResponse Update(int requestInquiryId, int? monetaryAccountId= null, string status = null, IDictionary customHeaders = null) + public static BunqResponse Update(long requestInquiryId, long? monetaryAccountId= null, string status = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -277,7 +277,7 @@ public static BunqResponse Update(int requestInquiryId, /// Get all payment requests for a user's monetary account. bunqme_share_url is always null if the counterparty /// is a bunq user. /// - public static BunqResponse> List(int? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) + public static BunqResponse> List(long? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) { if (urlParams == null) urlParams = new Dictionary(); if (customHeaders == null) customHeaders = new Dictionary(); @@ -292,7 +292,7 @@ public static BunqResponse> List(int? monetaryAcco /// Get the details of a specific payment request, including its status. bunqme_share_url is always null if the /// counterparty is a bunq user. /// - public static BunqResponse Get(int requestInquiryId, int? monetaryAccountId= null, IDictionary customHeaders = null) + public static BunqResponse Get(long requestInquiryId, long? monetaryAccountId= null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); diff --git a/BunqSdk/Model/Generated/Endpoint/RequestInquiryBatchApiObject.cs b/BunqSdk/Model/Generated/Endpoint/RequestInquiryBatchApiObject.cs index 6a36b00c..394149ad 100644 --- a/BunqSdk/Model/Generated/Endpoint/RequestInquiryBatchApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/RequestInquiryBatchApiObject.cs @@ -55,7 +55,7 @@ public class RequestInquiryBatchApiObject : BunqModel /// The ID of the associated event if the request batch was made using 'split the bill'. /// [JsonProperty(PropertyName = "event_id")] - public int? EventId { get; set; } + public long? EventId { get; set; } /// /// The reference to the object used for split the bill. Can be Payment, PaymentBatch, ScheduleInstance, /// RequestResponse and MasterCardAction @@ -70,7 +70,7 @@ public class RequestInquiryBatchApiObject : BunqModel /// The total amount originally inquired for this batch. /// The status of the request. /// The ID of the associated event if the request batch was made using 'split the bill'. - public static BunqResponse Create(List requestInquiries, AmountObject totalAmountInquired, int? monetaryAccountId= null, string status = null, int? eventId = null, IDictionary customHeaders = null) + public static BunqResponse Create(List requestInquiries, AmountObject totalAmountInquired, long? monetaryAccountId= null, string status = null, long? eventId = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -94,7 +94,7 @@ public static BunqResponse Create(List requestInqu /// Revoke a request batch. The status of all the requests will be set to REVOKED. /// /// The status of the request. - public static BunqResponse Update(int requestInquiryBatchId, int? monetaryAccountId= null, string status = null, IDictionary customHeaders = null) + public static BunqResponse Update(long requestInquiryBatchId, long? monetaryAccountId= null, string status = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -114,7 +114,7 @@ public static BunqResponse Update(int requestInquiryBatchId, int? monetaryA /// /// Return the details of a specific request batch. /// - public static BunqResponse Get(int requestInquiryBatchId, int? monetaryAccountId= null, IDictionary customHeaders = null) + public static BunqResponse Get(long requestInquiryBatchId, long? monetaryAccountId= null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -127,7 +127,7 @@ public static BunqResponse Get(int requestInquiryB /// /// Return all the request batches for a monetary account. /// - public static BunqResponse> List(int? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) + public static BunqResponse> List(long? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) { if (urlParams == null) urlParams = new Dictionary(); if (customHeaders == null) customHeaders = new Dictionary(); diff --git a/BunqSdk/Model/Generated/Endpoint/RequestResponseApiObject.cs b/BunqSdk/Model/Generated/Endpoint/RequestResponseApiObject.cs index ca0b61b8..58b7cd5d 100644 --- a/BunqSdk/Model/Generated/Endpoint/RequestResponseApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/RequestResponseApiObject.cs @@ -66,12 +66,12 @@ public class RequestResponseApiObject : BunqModel /// convert. /// [JsonProperty(PropertyName = "currency_conversion_quote_id")] - public int? CurrencyConversionQuoteId { get; set; } + public long? CurrencyConversionQuoteId { get; set; } /// /// The id of the Request Response. /// [JsonProperty(PropertyName = "id")] - public int? Id { get; set; } + public long? Id { get; set; } /// /// The timestamp when the Request Response was created. /// @@ -111,7 +111,7 @@ public class RequestResponseApiObject : BunqModel /// The id of the MonetaryAccount the RequestResponse was received on. /// [JsonProperty(PropertyName = "monetary_account_id")] - public int? MonetaryAccountId { get; set; } + public long? MonetaryAccountId { get; set; } /// /// The requested Amount. /// @@ -143,7 +143,7 @@ public class RequestResponseApiObject : BunqModel /// The minimum age the user accepting the RequestResponse must have. /// [JsonProperty(PropertyName = "minimum_age")] - public int? MinimumAge { get; set; } + public long? MinimumAge { get; set; } /// /// Whether or not an address must be provided on accept. /// @@ -189,7 +189,7 @@ public class RequestResponseApiObject : BunqModel /// The whitelist id for this action or null. /// [JsonProperty(PropertyName = "eligible_whitelist_id")] - public int? EligibleWhitelistId { get; set; } + public long? EligibleWhitelistId { get; set; } /// /// The reference to the object used for split the bill. Can be RequestInquiry or RequestInquiryBatch /// @@ -199,12 +199,12 @@ public class RequestResponseApiObject : BunqModel /// The ID of the latest event for the request. /// [JsonProperty(PropertyName = "event_id")] - public int? EventId { get; set; } + public long? EventId { get; set; } /// /// The ID of the monetary account this user prefers to pay the request from. /// [JsonProperty(PropertyName = "monetary_account_preferred_id")] - public int? MonetaryAccountPreferredId { get; set; } + public long? MonetaryAccountPreferredId { get; set; } /// /// Update the status to accept or reject the RequestResponse. @@ -214,7 +214,7 @@ public class RequestResponseApiObject : BunqModel /// The shipping Address to return to the user who created the RequestInquiry. Should only be provided if 'require_address' is set to SHIPPING, BILLING_SHIPPING or OPTIONAL. /// The billing Address to return to the user who created the RequestInquiry. Should only be provided if 'require_address' is set to BILLING, BILLING_SHIPPING or OPTIONAL. /// When the request is accepted on a monetary account with a different currency, a quote is expected to convert. - public static BunqResponse Update(int requestResponseId, int? monetaryAccountId= null, AmountObject amountResponded = null, string status = null, AddressObject addressShipping = null, AddressObject addressBilling = null, int? currencyConversionQuoteId = null, IDictionary customHeaders = null) + public static BunqResponse Update(long requestResponseId, long? monetaryAccountId= null, AmountObject amountResponded = null, string status = null, AddressObject addressShipping = null, AddressObject addressBilling = null, long? currencyConversionQuoteId = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -238,7 +238,7 @@ public static BunqResponse Update(int requestResponseI /// /// Get all RequestResponses for a MonetaryAccount. /// - public static BunqResponse> List(int? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) + public static BunqResponse> List(long? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) { if (urlParams == null) urlParams = new Dictionary(); if (customHeaders == null) customHeaders = new Dictionary(); @@ -252,7 +252,7 @@ public static BunqResponse> List(int? monetaryAcc /// /// Get the details for a specific existing RequestResponse. /// - public static BunqResponse Get(int requestResponseId, int? monetaryAccountId= null, IDictionary customHeaders = null) + public static BunqResponse Get(long requestResponseId, long? monetaryAccountId= null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); diff --git a/BunqSdk/Model/Generated/Endpoint/SandboxUserCompanyApiObject.cs b/BunqSdk/Model/Generated/Endpoint/SandboxUserCompanyApiObject.cs index 72fe6520..1db4c786 100644 --- a/BunqSdk/Model/Generated/Endpoint/SandboxUserCompanyApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/SandboxUserCompanyApiObject.cs @@ -30,10 +30,15 @@ public class SandboxUserCompanyApiObject : BunqModel [JsonProperty(PropertyName = "api_key")] public string ApiKey { get; set; } /// - /// The user which was created. + /// The user company which was created. /// - [JsonProperty(PropertyName = "user")] - public UserApiObject User { get; set; } + [JsonProperty(PropertyName = "user_company")] + public UserCompanyApiObject UserCompany { get; set; } + /// + /// The director of the company which was created. + /// + [JsonProperty(PropertyName = "user_person")] + public UserPersonApiObject UserPerson { get; set; } /// /// The login code which the developer can use to log into their sandbox user. /// @@ -68,7 +73,12 @@ public override bool IsAllFieldNull() return false; } - if (this.User != null) + if (this.UserCompany != null) + { + return false; + } + + if (this.UserPerson != null) { return false; } diff --git a/BunqSdk/Model/Generated/Endpoint/ScheduleApiObject.cs b/BunqSdk/Model/Generated/Endpoint/ScheduleApiObject.cs index 936c9127..28d338f4 100644 --- a/BunqSdk/Model/Generated/Endpoint/ScheduleApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/ScheduleApiObject.cs @@ -53,7 +53,7 @@ public class ScheduleApiObject : BunqModel /// The schedule recurrence size. For example size 4 and unit WEEKLY means the recurrence is every 4 weeks. /// [JsonProperty(PropertyName = "recurrence_size")] - public int? RecurrenceSize { get; set; } + public long? RecurrenceSize { get; set; } /// /// The schedule status, options: ACTIVE, FINISHED, CANCELLED. /// @@ -68,7 +68,7 @@ public class ScheduleApiObject : BunqModel /// /// Get a specific schedule definition for a given monetary account. /// - public static BunqResponse Get(int scheduleId, int? monetaryAccountId= null, IDictionary customHeaders = null) + public static BunqResponse Get(long scheduleId, long? monetaryAccountId= null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -83,7 +83,7 @@ public static BunqResponse Get(int scheduleId, int? monetaryA /// filter the response. When type={SCHEDULE_DEFINITION_PAYMENT,SCHEDULE_DEFINITION_PAYMENT_BATCH} is provided /// only schedule definition object that relate to these definitions are returned. /// - public static BunqResponse> List(int? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) + public static BunqResponse> List(long? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) { if (urlParams == null) urlParams = new Dictionary(); if (customHeaders == null) customHeaders = new Dictionary(); diff --git a/BunqSdk/Model/Generated/Endpoint/ScheduleInstanceApiObject.cs b/BunqSdk/Model/Generated/Endpoint/ScheduleInstanceApiObject.cs index af0045df..2a759e2a 100644 --- a/BunqSdk/Model/Generated/Endpoint/ScheduleInstanceApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/ScheduleInstanceApiObject.cs @@ -70,7 +70,7 @@ public class ScheduleInstanceApiObject : BunqModel /// /// - public static BunqResponse Get(int scheduleId, int scheduleInstanceId, int? monetaryAccountId= null, IDictionary customHeaders = null) + public static BunqResponse Get(long scheduleId, long scheduleInstanceId, long? monetaryAccountId= null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -83,7 +83,7 @@ public static BunqResponse Get(int scheduleId, int sc /// /// /// Change the state of the scheduleInstance from FAILED_USER_ERROR to RETRY. - public static BunqResponse Update(int scheduleId, int scheduleInstanceId, int? monetaryAccountId= null, string state = null, IDictionary customHeaders = null) + public static BunqResponse Update(long scheduleId, long scheduleInstanceId, long? monetaryAccountId= null, string state = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -102,7 +102,7 @@ public static BunqResponse Update(int scheduleId, int scheduleInstanceId, i /// /// - public static BunqResponse> List(int scheduleId, int? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) + public static BunqResponse> List(long scheduleId, long? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) { if (urlParams == null) urlParams = new Dictionary(); if (customHeaders == null) customHeaders = new Dictionary(); diff --git a/BunqSdk/Model/Generated/Endpoint/SchedulePaymentApiObject.cs b/BunqSdk/Model/Generated/Endpoint/SchedulePaymentApiObject.cs index a942c532..571f4ea9 100644 --- a/BunqSdk/Model/Generated/Endpoint/SchedulePaymentApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/SchedulePaymentApiObject.cs @@ -63,7 +63,7 @@ public class SchedulePaymentApiObject : BunqModel /// The payment details. /// The schedule details when creating or updating a scheduled payment. /// The purpose of this scheduled payment. - public static BunqResponse Create(SchedulePaymentEntryObject payment, ScheduleApiObject schedule, int? monetaryAccountId= null, string purpose = null, IDictionary customHeaders = null) + public static BunqResponse Create(SchedulePaymentEntryObject payment, ScheduleApiObject schedule, long? monetaryAccountId= null, string purpose = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -84,7 +84,7 @@ public static BunqResponse Create(SchedulePaymentEntryObject payment, Sched /// /// - public static BunqResponse Delete(int schedulePaymentId, int? monetaryAccountId= null, IDictionary customHeaders = null) + public static BunqResponse Delete(long schedulePaymentId, long? monetaryAccountId= null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -96,7 +96,7 @@ public static BunqResponse Delete(int schedulePaymentId, int? monetaryAc /// /// - public static BunqResponse Get(int schedulePaymentId, int? monetaryAccountId= null, IDictionary customHeaders = null) + public static BunqResponse Get(long schedulePaymentId, long? monetaryAccountId= null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -108,7 +108,7 @@ public static BunqResponse Get(int schedulePaymentId, /// /// - public static BunqResponse> List(int? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) + public static BunqResponse> List(long? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) { if (urlParams == null) urlParams = new Dictionary(); if (customHeaders == null) customHeaders = new Dictionary(); @@ -123,7 +123,7 @@ public static BunqResponse> List(int? monetaryAcc /// /// The payment details. /// The schedule details when creating or updating a scheduled payment. - public static BunqResponse Update(int schedulePaymentId, int? monetaryAccountId= null, SchedulePaymentEntryObject payment = null, ScheduleApiObject schedule = null, IDictionary customHeaders = null) + public static BunqResponse Update(long schedulePaymentId, long? monetaryAccountId= null, SchedulePaymentEntryObject payment = null, ScheduleApiObject schedule = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); diff --git a/BunqSdk/Model/Generated/Endpoint/SchedulePaymentBatchApiObject.cs b/BunqSdk/Model/Generated/Endpoint/SchedulePaymentBatchApiObject.cs index e41663ae..eb67ecb9 100644 --- a/BunqSdk/Model/Generated/Endpoint/SchedulePaymentBatchApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/SchedulePaymentBatchApiObject.cs @@ -47,7 +47,7 @@ public class SchedulePaymentBatchApiObject : BunqModel /// /// - public static BunqResponse Get(int schedulePaymentBatchId, int? monetaryAccountId= null, IDictionary customHeaders = null) + public static BunqResponse Get(long schedulePaymentBatchId, long? monetaryAccountId= null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -61,7 +61,7 @@ public static BunqResponse Get(int schedulePaymen /// /// The payment details. /// The schedule details when creating a scheduled payment. - public static BunqResponse Create(List payments, ScheduleApiObject schedule, int? monetaryAccountId= null, IDictionary customHeaders = null) + public static BunqResponse Create(List payments, ScheduleApiObject schedule, long? monetaryAccountId= null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -83,7 +83,7 @@ public static BunqResponse Create(List payments /// /// The payment details. /// The schedule details when creating a scheduled payment. - public static BunqResponse Update(int schedulePaymentBatchId, int? monetaryAccountId= null, List payments = null, ScheduleApiObject schedule = null, IDictionary customHeaders = null) + public static BunqResponse Update(long schedulePaymentBatchId, long? monetaryAccountId= null, List payments = null, ScheduleApiObject schedule = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -103,7 +103,7 @@ public static BunqResponse Update(int schedulePaymentBatchId, int? monetary /// /// - public static BunqResponse Delete(int schedulePaymentBatchId, int? monetaryAccountId= null, IDictionary customHeaders = null) + public static BunqResponse Delete(long schedulePaymentBatchId, long? monetaryAccountId= null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); diff --git a/BunqSdk/Model/Generated/Endpoint/ServerErrorApiObject.cs b/BunqSdk/Model/Generated/Endpoint/ServerErrorApiObject.cs index d1ceb654..4ab13192 100644 --- a/BunqSdk/Model/Generated/Endpoint/ServerErrorApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/ServerErrorApiObject.cs @@ -22,7 +22,7 @@ public class ServerErrorApiObject : BunqModel /// /// - public static BunqResponse Create( IDictionary customHeaders = null) + public static BunqResponse Create( IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); diff --git a/BunqSdk/Model/Generated/Endpoint/SessionApiObject.cs b/BunqSdk/Model/Generated/Endpoint/SessionApiObject.cs index f1c1eb44..ddba57f3 100644 --- a/BunqSdk/Model/Generated/Endpoint/SessionApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/SessionApiObject.cs @@ -23,7 +23,7 @@ public class SessionApiObject : BunqModel /// /// Deletes the current session. /// - public static BunqResponse Delete(int sessionId, IDictionary customHeaders = null) + public static BunqResponse Delete(long sessionId, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); diff --git a/BunqSdk/Model/Generated/Endpoint/ShareInviteMonetaryAccountInquiryApiObject.cs b/BunqSdk/Model/Generated/Endpoint/ShareInviteMonetaryAccountInquiryApiObject.cs index f7d1c46f..a9c862a2 100644 --- a/BunqSdk/Model/Generated/Endpoint/ShareInviteMonetaryAccountInquiryApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/ShareInviteMonetaryAccountInquiryApiObject.cs @@ -57,7 +57,7 @@ public class ShareInviteMonetaryAccountInquiryApiObject : BunqModel /// DEPRECATED: USE `access_type` INSTEAD | The id of the draft share invite bank. /// [JsonProperty(PropertyName = "draft_share_invite_bank_id")] - public int? DraftShareInviteBankId { get; set; } + public long? DraftShareInviteBankId { get; set; } /// /// DEPRECATED: USE `access_type` INSTEAD | The share details. Only one of these objects may be passed. /// @@ -107,12 +107,12 @@ public class ShareInviteMonetaryAccountInquiryApiObject : BunqModel /// The id of the monetary account the share applies to. /// [JsonProperty(PropertyName = "monetary_account_id")] - public int? MonetaryAccountId { get; set; } + public long? MonetaryAccountId { get; set; } /// /// The id of the newly created share invite. /// [JsonProperty(PropertyName = "id")] - public int? Id { get; set; } + public long? Id { get; set; } /// /// [DEPRECATED - use /share-invite-monetary-account-response] Create a new share inquiry for a monetary @@ -127,7 +127,7 @@ public class ShareInviteMonetaryAccountInquiryApiObject : BunqModel /// DEPRECATED: USE `access_type` INSTEAD | The share type, either STANDARD or MUTUAL. /// DEPRECATED: USE `access_type` INSTEAD | The start date of this share. /// DEPRECATED: USE `access_type` INSTEAD | The expiration date of this share. - public static BunqResponse Create(PointerObject counterUserAlias, int? monetaryAccountId= null, string accessType = null, int? draftShareInviteBankId = null, ShareDetailObject shareDetail = null, string status = null, string relationship = null, string shareType = null, string startDate = null, string endDate = null, IDictionary customHeaders = null) + public static BunqResponse Create(PointerObject counterUserAlias, long? monetaryAccountId= null, string accessType = null, long? draftShareInviteBankId = null, ShareDetailObject shareDetail = null, string status = null, string relationship = null, string shareType = null, string startDate = null, string endDate = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -155,7 +155,7 @@ public static BunqResponse Create(PointerObject counterUserAlias, int? mone /// /// [DEPRECATED - use /share-invite-monetary-account-response] Get the details of a specific share inquiry. /// - public static BunqResponse Get(int shareInviteMonetaryAccountInquiryId, int? monetaryAccountId= null, IDictionary customHeaders = null) + public static BunqResponse Get(long shareInviteMonetaryAccountInquiryId, long? monetaryAccountId= null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -174,7 +174,7 @@ public static BunqResponse Get(int s /// The status of the share. Can be ACTIVE, REVOKED, REJECTED. /// DEPRECATED: USE `access_type` INSTEAD | The start date of this share. /// DEPRECATED: USE `access_type` INSTEAD | The expiration date of this share. - public static BunqResponse Update(int shareInviteMonetaryAccountInquiryId, int? monetaryAccountId= null, string accessType = null, ShareDetailObject shareDetail = null, string status = null, string startDate = null, string endDate = null, IDictionary customHeaders = null) + public static BunqResponse Update(long shareInviteMonetaryAccountInquiryId, long? monetaryAccountId= null, string accessType = null, ShareDetailObject shareDetail = null, string status = null, string startDate = null, string endDate = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -199,7 +199,7 @@ public static BunqResponse Update(int shareInviteMonetaryAccountInquiryId, /// [DEPRECATED - use /share-invite-monetary-account-response] Get a list with all the share inquiries for a /// monetary account, only if the requesting user has permission to change the details of the various ones. /// - public static BunqResponse> List(int? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) + public static BunqResponse> List(long? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) { if (urlParams == null) urlParams = new Dictionary(); if (customHeaders == null) customHeaders = new Dictionary(); diff --git a/BunqSdk/Model/Generated/Endpoint/ShareInviteMonetaryAccountResponseApiObject.cs b/BunqSdk/Model/Generated/Endpoint/ShareInviteMonetaryAccountResponseApiObject.cs index d14aa833..aea89899 100644 --- a/BunqSdk/Model/Generated/Endpoint/ShareInviteMonetaryAccountResponseApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/ShareInviteMonetaryAccountResponseApiObject.cs @@ -43,12 +43,12 @@ public class ShareInviteMonetaryAccountResponseApiObject : BunqModel /// The card to link to the shared monetary account. Used only if share_detail is ShareDetailCardPayment. /// [JsonProperty(PropertyName = "card_id")] - public int? CardId { get; set; } + public long? CardId { get; set; } /// /// The id of the ShareInviteBankResponse. /// [JsonProperty(PropertyName = "id")] - public int? Id { get; set; } + public long? Id { get; set; } /// /// The timestamp of the ShareInviteBankResponse creation. /// @@ -73,12 +73,12 @@ public class ShareInviteMonetaryAccountResponseApiObject : BunqModel /// The id of the monetary account the ACCEPTED share applies to. null otherwise. /// [JsonProperty(PropertyName = "monetary_account_id")] - public int? MonetaryAccountId { get; set; } + public long? MonetaryAccountId { get; set; } /// /// The id of the draft share invite bank. /// [JsonProperty(PropertyName = "draft_share_invite_bank_id")] - public int? DraftShareInviteBankId { get; set; } + public long? DraftShareInviteBankId { get; set; } /// /// The share details. /// @@ -118,7 +118,7 @@ public class ShareInviteMonetaryAccountResponseApiObject : BunqModel /// /// Return the details of a specific share a user was invited to. /// - public static BunqResponse Get(int shareInviteMonetaryAccountResponseId, IDictionary customHeaders = null) + public static BunqResponse Get(long shareInviteMonetaryAccountResponseId, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -133,7 +133,7 @@ public static BunqResponse Get(int /// /// The status of the share. Can be PENDING, REVOKED (the user deletes the share inquiry before it's accepted), ACCEPTED, CANCELLED (the user deletes an active share) or CANCELLATION_PENDING, CANCELLATION_ACCEPTED, CANCELLATION_REJECTED (for canceling mutual connects) /// The card to link to the shared monetary account. Used only if share_detail is ShareDetailCardPayment. - public static BunqResponse Update(int shareInviteMonetaryAccountResponseId, string status = null, int? cardId = null, IDictionary customHeaders = null) + public static BunqResponse Update(long shareInviteMonetaryAccountResponseId, string status = null, long? cardId = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); diff --git a/BunqSdk/Model/Generated/Endpoint/SofortMerchantTransactionApiObject.cs b/BunqSdk/Model/Generated/Endpoint/SofortMerchantTransactionApiObject.cs index 8a061318..7d2db32f 100644 --- a/BunqSdk/Model/Generated/Endpoint/SofortMerchantTransactionApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/SofortMerchantTransactionApiObject.cs @@ -46,7 +46,7 @@ public class SofortMerchantTransactionApiObject : BunqModel /// The id of the monetary account this sofort merchant transaction links to. /// [JsonProperty(PropertyName = "monetary_account_id")] - public int? MonetaryAccountId { get; set; } + public long? MonetaryAccountId { get; set; } /// /// The alias of the monetary account to add money to. /// @@ -85,7 +85,7 @@ public class SofortMerchantTransactionApiObject : BunqModel /// /// - public static BunqResponse Get(int sofortMerchantTransactionId, int? monetaryAccountId= null, IDictionary customHeaders = null) + public static BunqResponse Get(long sofortMerchantTransactionId, long? monetaryAccountId= null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -97,7 +97,7 @@ public static BunqResponse Get(int sofortMer /// /// - public static BunqResponse> List(int? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) + public static BunqResponse> List(long? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) { if (urlParams == null) urlParams = new Dictionary(); if (customHeaders == null) customHeaders = new Dictionary(); diff --git a/BunqSdk/Model/Generated/Endpoint/TokenQrRequestIdealApiObject.cs b/BunqSdk/Model/Generated/Endpoint/TokenQrRequestIdealApiObject.cs index 4ee4a362..ae8add41 100644 --- a/BunqSdk/Model/Generated/Endpoint/TokenQrRequestIdealApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/TokenQrRequestIdealApiObject.cs @@ -42,7 +42,7 @@ public class TokenQrRequestIdealApiObject : BunqModel /// The id of the RequestResponse. /// [JsonProperty(PropertyName = "id")] - public int? Id { get; set; } + public long? Id { get; set; } /// /// The timestamp of when the RequestResponse was responded to. /// @@ -57,7 +57,7 @@ public class TokenQrRequestIdealApiObject : BunqModel /// The id of the MonetaryAccount the RequestResponse was received on. /// [JsonProperty(PropertyName = "monetary_account_id")] - public int? MonetaryAccountId { get; set; } + public long? MonetaryAccountId { get; set; } /// /// The requested Amount. /// @@ -99,7 +99,7 @@ public class TokenQrRequestIdealApiObject : BunqModel /// The minimum age the user accepting the RequestResponse must have. /// [JsonProperty(PropertyName = "minimum_age")] - public int? MinimumAge { get; set; } + public long? MinimumAge { get; set; } /// /// Whether or not an address must be provided on accept. /// @@ -139,7 +139,7 @@ public class TokenQrRequestIdealApiObject : BunqModel /// The whitelist id for this action or null. /// [JsonProperty(PropertyName = "eligible_whitelist_id")] - public int? EligibleWhitelistId { get; set; } + public long? EligibleWhitelistId { get; set; } /// /// Create a request from an ideal transaction. diff --git a/BunqSdk/Model/Generated/Endpoint/TransferwiseAccountQuoteApiObject.cs b/BunqSdk/Model/Generated/Endpoint/TransferwiseAccountQuoteApiObject.cs index 2454551b..8e36227a 100644 --- a/BunqSdk/Model/Generated/Endpoint/TransferwiseAccountQuoteApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/TransferwiseAccountQuoteApiObject.cs @@ -84,7 +84,7 @@ public class TransferwiseAccountQuoteApiObject : BunqModel /// The chosen recipient account type. The possible options are provided dynamically in the response endpoint. /// The country of the receiving account. /// The fields which were specified as "required" and have since been filled by the user. Always provide the full list. - public static BunqResponse Create(int transferwiseQuoteId, string nameAccountHolder, string type, string country = null, List detail = null, IDictionary customHeaders = null) + public static BunqResponse Create(long transferwiseQuoteId, string nameAccountHolder, string type, string country = null, List detail = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -106,7 +106,7 @@ public static BunqResponse Create(int transferwiseQuoteId, string nameAccou /// /// - public static BunqResponse Get(int transferwiseQuoteId, int transferwiseAccountQuoteId, IDictionary customHeaders = null) + public static BunqResponse Get(long transferwiseQuoteId, long transferwiseAccountQuoteId, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -118,7 +118,7 @@ public static BunqResponse Get(int transferwi /// /// - public static BunqResponse> List(int transferwiseQuoteId, IDictionary urlParams = null, IDictionary customHeaders = null) + public static BunqResponse> List(long transferwiseQuoteId, IDictionary urlParams = null, IDictionary customHeaders = null) { if (urlParams == null) urlParams = new Dictionary(); if (customHeaders == null) customHeaders = new Dictionary(); @@ -131,7 +131,7 @@ public static BunqResponse> List(int tra /// /// - public static BunqResponse Delete(int transferwiseQuoteId, int transferwiseAccountQuoteId, IDictionary customHeaders = null) + public static BunqResponse Delete(long transferwiseQuoteId, long transferwiseAccountQuoteId, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); diff --git a/BunqSdk/Model/Generated/Endpoint/TransferwiseAccountRequirementApiObject.cs b/BunqSdk/Model/Generated/Endpoint/TransferwiseAccountRequirementApiObject.cs index 538adfd4..7c085659 100644 --- a/BunqSdk/Model/Generated/Endpoint/TransferwiseAccountRequirementApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/TransferwiseAccountRequirementApiObject.cs @@ -72,7 +72,7 @@ public class TransferwiseAccountRequirementApiObject : BunqModel /// The chosen recipient account type. The possible options are provided dynamically in the response endpoint. /// The country of the receiving account. /// The fields which were specified as "required" and have since been filled by the user. Always provide the full list. - public static BunqResponse Create(int transferwiseQuoteId, string nameAccountHolder, string type, string country = null, List detail = null, IDictionary customHeaders = null) + public static BunqResponse Create(long transferwiseQuoteId, string nameAccountHolder, string type, string country = null, List detail = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -94,7 +94,7 @@ public static BunqResponse Create(int transferwiseQuoteId, string nameAccou /// /// - public static BunqResponse> List(int transferwiseQuoteId, IDictionary urlParams = null, IDictionary customHeaders = null) + public static BunqResponse> List(long transferwiseQuoteId, IDictionary urlParams = null, IDictionary customHeaders = null) { if (urlParams == null) urlParams = new Dictionary(); if (customHeaders == null) customHeaders = new Dictionary(); diff --git a/BunqSdk/Model/Generated/Endpoint/TransferwiseQuoteApiObject.cs b/BunqSdk/Model/Generated/Endpoint/TransferwiseQuoteApiObject.cs index bd6e1641..d7d629d9 100644 --- a/BunqSdk/Model/Generated/Endpoint/TransferwiseQuoteApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/TransferwiseQuoteApiObject.cs @@ -58,7 +58,7 @@ public class TransferwiseQuoteApiObject : BunqModel /// The id of the quote. /// [JsonProperty(PropertyName = "id")] - public int? Id { get; set; } + public long? Id { get; set; } /// /// The timestamp of the quote's creation. /// @@ -101,7 +101,7 @@ public class TransferwiseQuoteApiObject : BunqModel /// The target currency. /// The source amount. Required if target amount is left empty. /// The target amount. Required if source amount is left empty. - public static BunqResponse Create(string currencySource, string currencyTarget, AmountObject amountSource = null, AmountObject amountTarget = null, IDictionary customHeaders = null) + public static BunqResponse Create(string currencySource, string currencyTarget, AmountObject amountSource = null, AmountObject amountTarget = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -123,7 +123,7 @@ public static BunqResponse Create(string currencySource, string currencyTar /// /// - public static BunqResponse Get(int transferwiseQuoteId, IDictionary customHeaders = null) + public static BunqResponse Get(long transferwiseQuoteId, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); diff --git a/BunqSdk/Model/Generated/Endpoint/TransferwiseQuoteTemporaryApiObject.cs b/BunqSdk/Model/Generated/Endpoint/TransferwiseQuoteTemporaryApiObject.cs index 79f04722..d27cc682 100644 --- a/BunqSdk/Model/Generated/Endpoint/TransferwiseQuoteTemporaryApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/TransferwiseQuoteTemporaryApiObject.cs @@ -58,7 +58,7 @@ public class TransferwiseQuoteTemporaryApiObject : BunqModel /// The id of the quote. /// [JsonProperty(PropertyName = "id")] - public int? Id { get; set; } + public long? Id { get; set; } /// /// The timestamp of the note's creation. /// @@ -91,7 +91,7 @@ public class TransferwiseQuoteTemporaryApiObject : BunqModel /// The target currency. /// The source amount. Required if target amount is left empty. /// The target amount. Required if source amount is left empty. - public static BunqResponse Create(string currencySource, string currencyTarget, AmountObject amountSource = null, AmountObject amountTarget = null, IDictionary customHeaders = null) + public static BunqResponse Create(string currencySource, string currencyTarget, AmountObject amountSource = null, AmountObject amountTarget = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -113,7 +113,7 @@ public static BunqResponse Create(string currencySource, string currencyTar /// /// - public static BunqResponse Get(int transferwiseQuoteTemporaryId, IDictionary customHeaders = null) + public static BunqResponse Get(long transferwiseQuoteTemporaryId, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); diff --git a/BunqSdk/Model/Generated/Endpoint/TransferwiseTransferApiObject.cs b/BunqSdk/Model/Generated/Endpoint/TransferwiseTransferApiObject.cs index e2ab0ec5..0a9a8a8f 100644 --- a/BunqSdk/Model/Generated/Endpoint/TransferwiseTransferApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/TransferwiseTransferApiObject.cs @@ -113,7 +113,7 @@ public class TransferwiseTransferApiObject : BunqModel /// /// The id of the monetary account the payment should be made from. /// The id of the target account. - public static BunqResponse Create(int transferwiseQuoteId, string monetaryAccountId, string recipientId, IDictionary customHeaders = null) + public static BunqResponse Create(long transferwiseQuoteId, string monetaryAccountId, string recipientId, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -133,7 +133,7 @@ public static BunqResponse Create(int transferwiseQuoteId, string monetaryA /// /// - public static BunqResponse Get(int transferwiseQuoteId, int transferwiseTransferId, IDictionary customHeaders = null) + public static BunqResponse Get(long transferwiseQuoteId, long transferwiseTransferId, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -145,7 +145,7 @@ public static BunqResponse Get(int transferwiseQu /// /// - public static BunqResponse> List(int transferwiseQuoteId, IDictionary urlParams = null, IDictionary customHeaders = null) + public static BunqResponse> List(long transferwiseQuoteId, IDictionary urlParams = null, IDictionary customHeaders = null) { if (urlParams == null) urlParams = new Dictionary(); if (customHeaders == null) customHeaders = new Dictionary(); diff --git a/BunqSdk/Model/Generated/Endpoint/TransferwiseTransferRequirementApiObject.cs b/BunqSdk/Model/Generated/Endpoint/TransferwiseTransferRequirementApiObject.cs index 81a10897..08647dab 100644 --- a/BunqSdk/Model/Generated/Endpoint/TransferwiseTransferRequirementApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/TransferwiseTransferRequirementApiObject.cs @@ -58,7 +58,7 @@ public class TransferwiseTransferRequirementApiObject : BunqModel /// /// The id of the target account. /// The fields which were specified as "required" and have since been filled by the user. Always provide the full list. - public static BunqResponse Create(int transferwiseQuoteId, string recipientId, List detail = null, IDictionary customHeaders = null) + public static BunqResponse Create(long transferwiseQuoteId, string recipientId, List detail = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); diff --git a/BunqSdk/Model/Generated/Endpoint/TransferwiseUserApiObject.cs b/BunqSdk/Model/Generated/Endpoint/TransferwiseUserApiObject.cs index 933bcfd5..eab909ee 100644 --- a/BunqSdk/Model/Generated/Endpoint/TransferwiseUserApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/TransferwiseUserApiObject.cs @@ -40,7 +40,7 @@ public class TransferwiseUserApiObject : BunqModel /// The id of the TransferwiseUser. /// [JsonProperty(PropertyName = "id")] - public int? Id { get; set; } + public long? Id { get; set; } /// /// The timestamp of the TransferwiseUser's creation. /// @@ -70,7 +70,7 @@ public class TransferwiseUserApiObject : BunqModel /// /// /// The OAuth code returned by Transferwise we should be using to gain access to the user's Transferwise account. - public static BunqResponse Create(string oauthCode = null, IDictionary customHeaders = null) + public static BunqResponse Create(string oauthCode = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); diff --git a/BunqSdk/Model/Generated/Endpoint/UserApiKeyApiObject.cs b/BunqSdk/Model/Generated/Endpoint/UserApiKeyApiObject.cs index e4bf4706..6ed74690 100644 --- a/BunqSdk/Model/Generated/Endpoint/UserApiKeyApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/UserApiKeyApiObject.cs @@ -14,7 +14,7 @@ public class UserApiKeyApiObject : BunqModel /// The id of the user. /// [JsonProperty(PropertyName = "id")] - public int? Id { get; set; } + public long? Id { get; set; } /// /// The timestamp of the user object's creation. /// diff --git a/BunqSdk/Model/Generated/Endpoint/UserBlocklistMasterCardMerchantApiObject.cs b/BunqSdk/Model/Generated/Endpoint/UserBlocklistMasterCardMerchantApiObject.cs index b88c3c3a..9ecb30ce 100644 --- a/BunqSdk/Model/Generated/Endpoint/UserBlocklistMasterCardMerchantApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/UserBlocklistMasterCardMerchantApiObject.cs @@ -48,7 +48,7 @@ public class UserBlocklistMasterCardMerchantApiObject : BunqModel /// The id of the blocklist. /// [JsonProperty(PropertyName = "id")] - public int? Id { get; set; } + public long? Id { get; set; } /// /// The timestamp of the object's creation. /// diff --git a/BunqSdk/Model/Generated/Endpoint/UserCompanyApiObject.cs b/BunqSdk/Model/Generated/Endpoint/UserCompanyApiObject.cs index 4da42d14..4cb3e310 100644 --- a/BunqSdk/Model/Generated/Endpoint/UserCompanyApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/UserCompanyApiObject.cs @@ -119,7 +119,7 @@ public class UserCompanyApiObject : BunqModel /// The setting for the session timeout of the company in seconds. /// [JsonProperty(PropertyName = "session_timeout")] - public int? SessionTimeout { get; set; } + public long? SessionTimeout { get; set; } /// /// The amount the company can pay in the session without asking for credentials. /// @@ -129,7 +129,7 @@ public class UserCompanyApiObject : BunqModel /// The id of the modified company. /// [JsonProperty(PropertyName = "id")] - public int? Id { get; set; } + public long? Id { get; set; } /// /// The timestamp of the company object's creation. /// @@ -257,7 +257,7 @@ public static BunqResponse Get( IDictionaryThe user sub-status. Can be: NONE, FACE_RESET, APPROVAL, APPROVAL_DIRECTOR, APPROVAL_PARENT, APPROVAL_SUPPORT, COUNTER_IBAN, IDEAL or SUBMIT. /// The setting for the session timeout of the company in seconds. /// The amount the company can pay in the session without asking for credentials. - public static BunqResponse Update(string name = null, string publicNickName = null, string avatarUuid = null, AddressObject addressMain = null, AddressObject addressPostal = null, string language = null, string region = null, string country = null, List ubo = null, string chamberOfCommerceNumber = null, string legalForm = null, string status = null, string subStatus = null, int? sessionTimeout = null, AmountObject dailyLimitWithoutConfirmationLogin = null, IDictionary customHeaders = null) + public static BunqResponse Update(string name = null, string publicNickName = null, string avatarUuid = null, AddressObject addressMain = null, AddressObject addressPostal = null, string language = null, string region = null, string country = null, List ubo = null, string chamberOfCommerceNumber = null, string legalForm = null, string status = null, string subStatus = null, long? sessionTimeout = null, AmountObject dailyLimitWithoutConfirmationLogin = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); diff --git a/BunqSdk/Model/Generated/Endpoint/UserCompanyNameApiObject.cs b/BunqSdk/Model/Generated/Endpoint/UserCompanyNameApiObject.cs index 089dc49b..374f9d10 100644 --- a/BunqSdk/Model/Generated/Endpoint/UserCompanyNameApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/UserCompanyNameApiObject.cs @@ -34,7 +34,7 @@ public class UserCompanyNameApiObject : BunqModel /// /// Return all the known (trade) names for a specific user company. /// - public static BunqResponse> List(int userCompanyId, IDictionary urlParams = null, IDictionary customHeaders = null) + public static BunqResponse> List(long userCompanyId, IDictionary urlParams = null, IDictionary customHeaders = null) { if (urlParams == null) urlParams = new Dictionary(); if (customHeaders == null) customHeaders = new Dictionary(); diff --git a/BunqSdk/Model/Generated/Endpoint/UserCredentialPasswordIpApiObject.cs b/BunqSdk/Model/Generated/Endpoint/UserCredentialPasswordIpApiObject.cs index c18d62a4..377450c7 100644 --- a/BunqSdk/Model/Generated/Endpoint/UserCredentialPasswordIpApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/UserCredentialPasswordIpApiObject.cs @@ -31,7 +31,7 @@ public class UserCredentialPasswordIpApiObject : BunqModel /// The id of the credential. /// [JsonProperty(PropertyName = "id")] - public int? Id { get; set; } + public long? Id { get; set; } /// /// The timestamp of the credential object's creation. /// @@ -65,7 +65,7 @@ public class UserCredentialPasswordIpApiObject : BunqModel /// /// - public static BunqResponse Get(int userCredentialPasswordIpId, IDictionary customHeaders = null) + public static BunqResponse Get(long userCredentialPasswordIpId, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); diff --git a/BunqSdk/Model/Generated/Endpoint/UserPartnerPromotionCashbackApiObject.cs b/BunqSdk/Model/Generated/Endpoint/UserPartnerPromotionCashbackApiObject.cs index 6e44393c..a3ff419d 100644 --- a/BunqSdk/Model/Generated/Endpoint/UserPartnerPromotionCashbackApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/UserPartnerPromotionCashbackApiObject.cs @@ -29,7 +29,7 @@ public class UserPartnerPromotionCashbackApiObject : BunqModel /// The number of transactions that are still eligible for this promotion. /// [JsonProperty(PropertyName = "number_of_transaction_remaining")] - public int? NumberOfTransactionRemaining { get; set; } + public long? NumberOfTransactionRemaining { get; set; } /// /// The promotion that the user signed up with. /// diff --git a/BunqSdk/Model/Generated/Endpoint/UserPaymentServiceProviderApiObject.cs b/BunqSdk/Model/Generated/Endpoint/UserPaymentServiceProviderApiObject.cs index 6e99de16..8ee065e5 100644 --- a/BunqSdk/Model/Generated/Endpoint/UserPaymentServiceProviderApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/UserPaymentServiceProviderApiObject.cs @@ -29,7 +29,7 @@ public class UserPaymentServiceProviderApiObject : BunqModel /// The id of the user. /// [JsonProperty(PropertyName = "id")] - public int? Id { get; set; } + public long? Id { get; set; } /// /// The timestamp of the user object's creation. /// @@ -96,11 +96,11 @@ public class UserPaymentServiceProviderApiObject : BunqModel /// The setting for the session timeout of the user in seconds. /// [JsonProperty(PropertyName = "session_timeout")] - public int? SessionTimeout { get; set; } + public long? SessionTimeout { get; set; } /// /// - public static BunqResponse Get(int userPaymentServiceProviderId, IDictionary customHeaders = null) + public static BunqResponse Get(long userPaymentServiceProviderId, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); diff --git a/BunqSdk/Model/Generated/Endpoint/UserPersonApiObject.cs b/BunqSdk/Model/Generated/Endpoint/UserPersonApiObject.cs index 1449d924..3e6a1c69 100644 --- a/BunqSdk/Model/Generated/Endpoint/UserPersonApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/UserPersonApiObject.cs @@ -123,12 +123,12 @@ public class UserPersonApiObject : BunqModel /// The reference to the uploaded picture/scan of the front side of the identification document. /// [JsonProperty(PropertyName = "document_front_attachment_id")] - public int? DocumentFrontAttachmentId { get; set; } + public long? DocumentFrontAttachmentId { get; set; } /// /// The reference to the uploaded picture/scan of the back side of the identification document. /// [JsonProperty(PropertyName = "document_back_attachment_id")] - public int? DocumentBackAttachmentId { get; set; } + public long? DocumentBackAttachmentId { get; set; } /// /// The person's date of birth. Accepts ISO8601 date formats. /// @@ -181,7 +181,7 @@ public class UserPersonApiObject : BunqModel /// The setting for the session timeout of the user in seconds. /// [JsonProperty(PropertyName = "session_timeout")] - public int? SessionTimeout { get; set; } + public long? SessionTimeout { get; set; } /// /// The amount the user can pay in the session without asking for credentials. /// @@ -201,7 +201,7 @@ public class UserPersonApiObject : BunqModel /// The id of the modified person object. /// [JsonProperty(PropertyName = "id")] - public int? Id { get; set; } + public long? Id { get; set; } /// /// The timestamp of the person object's creation. /// @@ -304,7 +304,7 @@ public static BunqResponse Get( IDictionary /// The setting for the session timeout of the user in seconds. /// The amount the user can pay in the session without asking for credentials. /// The person's legal name. Available legal names can be listed via the 'user/{user_id}/legal-name' endpoint. - public static BunqResponse Update(string firstName = null, string middleName = null, string lastName = null, string publicNickName = null, AddressObject addressMain = null, AddressObject addressPostal = null, string avatarUuid = null, List taxResident = null, string documentType = null, string documentNumber = null, string documentCountryOfIssuance = null, int? documentFrontAttachmentId = null, int? documentBackAttachmentId = null, string dateOfBirth = null, string nationality = null, List allNationality = null, string language = null, string region = null, string gender = null, string status = null, string subStatus = null, PointerObject legalGuardianAlias = null, int? sessionTimeout = null, AmountObject dailyLimitWithoutConfirmationLogin = null, string displayName = null, IDictionary customHeaders = null) + public static BunqResponse Update(string firstName = null, string middleName = null, string lastName = null, string publicNickName = null, AddressObject addressMain = null, AddressObject addressPostal = null, string avatarUuid = null, List taxResident = null, string documentType = null, string documentNumber = null, string documentCountryOfIssuance = null, long? documentFrontAttachmentId = null, long? documentBackAttachmentId = null, string dateOfBirth = null, string nationality = null, List allNationality = null, string language = null, string region = null, string gender = null, string status = null, string subStatus = null, PointerObject legalGuardianAlias = null, long? sessionTimeout = null, AmountObject dailyLimitWithoutConfirmationLogin = null, string displayName = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); diff --git a/BunqSdk/Model/Generated/Endpoint/WhitelistResultApiObject.cs b/BunqSdk/Model/Generated/Endpoint/WhitelistResultApiObject.cs index d074e785..9118cc04 100644 --- a/BunqSdk/Model/Generated/Endpoint/WhitelistResultApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/WhitelistResultApiObject.cs @@ -14,12 +14,12 @@ public class WhitelistResultApiObject : BunqModel /// The ID of the whitelist entry. /// [JsonProperty(PropertyName = "id")] - public int? Id { get; set; } + public long? Id { get; set; } /// /// The account from which payments will be deducted when a transaction is matched with this whitelist. /// [JsonProperty(PropertyName = "monetary_account_paying_id")] - public int? MonetaryAccountPayingId { get; set; } + public long? MonetaryAccountPayingId { get; set; } /// /// The status of the WhitelistResult. /// diff --git a/BunqSdk/Model/Generated/Endpoint/WhitelistSddApiObject.cs b/BunqSdk/Model/Generated/Endpoint/WhitelistSddApiObject.cs index 27df3867..b2fa6160 100644 --- a/BunqSdk/Model/Generated/Endpoint/WhitelistSddApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/WhitelistSddApiObject.cs @@ -37,12 +37,12 @@ public class WhitelistSddApiObject : BunqModel /// The account from which payments will be deducted when a transaction is matched with this whitelist. /// [JsonProperty(PropertyName = "monetary_account_paying_id")] - public int? MonetaryAccountPayingId { get; set; } + public long? MonetaryAccountPayingId { get; set; } /// /// ID of the request for which you want to whitelist the originating SDD. /// [JsonProperty(PropertyName = "request_id")] - public int? RequestId { get; set; } + public long? RequestId { get; set; } /// /// The monthly maximum amount that can be deducted from the target account. /// @@ -52,12 +52,12 @@ public class WhitelistSddApiObject : BunqModel /// The ID of the whitelist entry. /// [JsonProperty(PropertyName = "id")] - public int? Id { get; set; } + public long? Id { get; set; } /// /// The account to which payments will come in before possibly being 'redirected' by the whitelist. /// [JsonProperty(PropertyName = "monetary_account_incoming_id")] - public int? MonetaryAccountIncomingId { get; set; } + public long? MonetaryAccountIncomingId { get; set; } /// /// The type of the SDD whitelist, can be CORE or B2B. /// @@ -92,7 +92,7 @@ public class WhitelistSddApiObject : BunqModel /// /// Get a specific recurring SDD whitelist entry. /// - public static BunqResponse Get(int whitelistSddId, IDictionary customHeaders = null) + public static BunqResponse Get(long whitelistSddId, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); diff --git a/BunqSdk/Model/Generated/Endpoint/WhitelistSddMonetaryAccountPayingApiObject.cs b/BunqSdk/Model/Generated/Endpoint/WhitelistSddMonetaryAccountPayingApiObject.cs index df341289..610e9433 100644 --- a/BunqSdk/Model/Generated/Endpoint/WhitelistSddMonetaryAccountPayingApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/WhitelistSddMonetaryAccountPayingApiObject.cs @@ -30,17 +30,17 @@ public class WhitelistSddMonetaryAccountPayingApiObject : BunqModel /// The ID of the whitelist entry. /// [JsonProperty(PropertyName = "id")] - public int? Id { get; set; } + public long? Id { get; set; } /// /// The account to which payments will come in before possibly being 'redirected' by the whitelist. /// [JsonProperty(PropertyName = "monetary_account_incoming_id")] - public int? MonetaryAccountIncomingId { get; set; } + public long? MonetaryAccountIncomingId { get; set; } /// /// The account from which payments will be deducted when a transaction is matched with this whitelist. /// [JsonProperty(PropertyName = "monetary_account_paying_id")] - public int? MonetaryAccountPayingId { get; set; } + public long? MonetaryAccountPayingId { get; set; } /// /// The type of the SDD whitelist, can be CORE or B2B. /// @@ -80,7 +80,7 @@ public class WhitelistSddMonetaryAccountPayingApiObject : BunqModel /// /// Get a specific SDD whitelist entry. /// - public static BunqResponse Get(int whitelistSddMonetaryAccountPayingId, int? monetaryAccountId= null, IDictionary customHeaders = null) + public static BunqResponse Get(long whitelistSddMonetaryAccountPayingId, long? monetaryAccountId= null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -93,7 +93,7 @@ public static BunqResponse Get(int w /// /// Get a listing of all SDD whitelist entries for a target monetary account. /// - public static BunqResponse> List(int? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) + public static BunqResponse> List(long? monetaryAccountId= null, IDictionary urlParams = null, IDictionary customHeaders = null) { if (urlParams == null) urlParams = new Dictionary(); if (customHeaders == null) customHeaders = new Dictionary(); diff --git a/BunqSdk/Model/Generated/Endpoint/WhitelistSddOneOffApiObject.cs b/BunqSdk/Model/Generated/Endpoint/WhitelistSddOneOffApiObject.cs index 69226387..1b6e4b76 100644 --- a/BunqSdk/Model/Generated/Endpoint/WhitelistSddOneOffApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/WhitelistSddOneOffApiObject.cs @@ -43,12 +43,12 @@ public class WhitelistSddOneOffApiObject : BunqModel /// The account from which payments will be deducted when a transaction is matched with this whitelist. /// [JsonProperty(PropertyName = "monetary_account_paying_id")] - public int? MonetaryAccountPayingId { get; set; } + public long? MonetaryAccountPayingId { get; set; } /// /// ID of the request for which you want to whitelist the originating SDD. /// [JsonProperty(PropertyName = "request_id")] - public int? RequestId { get; set; } + public long? RequestId { get; set; } /// /// The monthly maximum amount that can be deducted from the target account. /// @@ -68,12 +68,12 @@ public class WhitelistSddOneOffApiObject : BunqModel /// The ID of the whitelist entry. /// [JsonProperty(PropertyName = "id")] - public int? Id { get; set; } + public long? Id { get; set; } /// /// The account to which payments will come in before possibly being 'redirected' by the whitelist. /// [JsonProperty(PropertyName = "monetary_account_incoming_id")] - public int? MonetaryAccountIncomingId { get; set; } + public long? MonetaryAccountIncomingId { get; set; } /// /// The type of the SDD whitelist, can be CORE or B2B. /// @@ -103,7 +103,7 @@ public class WhitelistSddOneOffApiObject : BunqModel /// /// Get a specific one off SDD whitelist entry. /// - public static BunqResponse Get(int whitelistSddOneOffId, IDictionary customHeaders = null) + public static BunqResponse Get(long whitelistSddOneOffId, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -121,7 +121,7 @@ public static BunqResponse Get(int whitelistSddOneO /// The maximum amount of money that is allowed to be deducted per month based on the whitelist. /// The maximum amount of money that is allowed to be deducted per payment based on the whitelist. /// The type of routing for this whitelist. Should be changed to non-optional CIT/technical#12806. - public static BunqResponse Create(int? monetaryAccountPayingId, int? requestId, AmountObject maximumAmountPerMonth = null, AmountObject maximumAmountPerPayment = null, string routingType = null, IDictionary customHeaders = null) + public static BunqResponse Create(long? monetaryAccountPayingId, long? requestId, AmountObject maximumAmountPerMonth = null, AmountObject maximumAmountPerPayment = null, string routingType = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -148,7 +148,7 @@ public static BunqResponse Create(int? monetaryAccountPayingId, int? reques /// The maximum amount of money that is allowed to be deducted per month based on the whitelist. /// The maximum amount of money that is allowed to be deducted per payment based on the whitelist. /// The type of routing for this whitelist. Should be changed to non-optional CIT/technical#12806. - public static BunqResponse Update(int whitelistSddOneOffId, int? monetaryAccountPayingId = null, AmountObject maximumAmountPerMonth = null, AmountObject maximumAmountPerPayment = null, string routingType = null, IDictionary customHeaders = null) + public static BunqResponse Update(long whitelistSddOneOffId, long? monetaryAccountPayingId = null, AmountObject maximumAmountPerMonth = null, AmountObject maximumAmountPerPayment = null, string routingType = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -170,7 +170,7 @@ public static BunqResponse Update(int whitelistSddOneOffId, int? monetaryAc /// /// - public static BunqResponse Delete(int whitelistSddOneOffId, IDictionary customHeaders = null) + public static BunqResponse Delete(long whitelistSddOneOffId, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); diff --git a/BunqSdk/Model/Generated/Endpoint/WhitelistSddRecurringApiObject.cs b/BunqSdk/Model/Generated/Endpoint/WhitelistSddRecurringApiObject.cs index a40eab35..97e6ece2 100644 --- a/BunqSdk/Model/Generated/Endpoint/WhitelistSddRecurringApiObject.cs +++ b/BunqSdk/Model/Generated/Endpoint/WhitelistSddRecurringApiObject.cs @@ -42,12 +42,12 @@ public class WhitelistSddRecurringApiObject : BunqModel /// The account from which payments will be deducted when a transaction is matched with this whitelist. /// [JsonProperty(PropertyName = "monetary_account_paying_id")] - public int? MonetaryAccountPayingId { get; set; } + public long? MonetaryAccountPayingId { get; set; } /// /// ID of the request for which you want to whitelist the originating SDD. /// [JsonProperty(PropertyName = "request_id")] - public int? RequestId { get; set; } + public long? RequestId { get; set; } /// /// The monthly maximum amount that can be deducted from the target account. /// @@ -67,12 +67,12 @@ public class WhitelistSddRecurringApiObject : BunqModel /// The ID of the whitelist entry. /// [JsonProperty(PropertyName = "id")] - public int? Id { get; set; } + public long? Id { get; set; } /// /// The account to which payments will come in before possibly being 'redirected' by the whitelist. /// [JsonProperty(PropertyName = "monetary_account_incoming_id")] - public int? MonetaryAccountIncomingId { get; set; } + public long? MonetaryAccountIncomingId { get; set; } /// /// The type of the SDD whitelist, can be CORE or B2B. /// @@ -107,7 +107,7 @@ public class WhitelistSddRecurringApiObject : BunqModel /// /// Get a specific recurring SDD whitelist entry. /// - public static BunqResponse Get(int whitelistSddRecurringId, IDictionary customHeaders = null) + public static BunqResponse Get(long whitelistSddRecurringId, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -125,7 +125,7 @@ public static BunqResponse Get(int whitelistSddR /// The maximum amount of money that is allowed to be deducted per month based on the whitelist. /// The maximum amount of money that is allowed to be deducted per payment based on the whitelist. /// The type of routing for this whitelist. Should be changed to non-optional CIT/technical#12806. - public static BunqResponse Create(int? monetaryAccountPayingId, int? requestId, AmountObject maximumAmountPerMonth = null, AmountObject maximumAmountPerPayment = null, string routingType = null, IDictionary customHeaders = null) + public static BunqResponse Create(long? monetaryAccountPayingId, long? requestId, AmountObject maximumAmountPerMonth = null, AmountObject maximumAmountPerPayment = null, string routingType = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -152,7 +152,7 @@ public static BunqResponse Create(int? monetaryAccountPayingId, int? reques /// The maximum amount of money that is allowed to be deducted per month based on the whitelist. /// The maximum amount of money that is allowed to be deducted per payment based on the whitelist. /// The type of routing for this whitelist. Should be changed to non-optional CIT/technical#12806. - public static BunqResponse Update(int whitelistSddRecurringId, int? monetaryAccountPayingId = null, AmountObject maximumAmountPerMonth = null, AmountObject maximumAmountPerPayment = null, string routingType = null, IDictionary customHeaders = null) + public static BunqResponse Update(long whitelistSddRecurringId, long? monetaryAccountPayingId = null, AmountObject maximumAmountPerMonth = null, AmountObject maximumAmountPerPayment = null, string routingType = null, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); @@ -174,7 +174,7 @@ public static BunqResponse Update(int whitelistSddRecurringId, int? monetar /// /// - public static BunqResponse Delete(int whitelistSddRecurringId, IDictionary customHeaders = null) + public static BunqResponse Delete(long whitelistSddRecurringId, IDictionary customHeaders = null) { if (customHeaders == null) customHeaders = new Dictionary(); diff --git a/BunqSdk/Model/Generated/Object/AllocationItemObject.cs b/BunqSdk/Model/Generated/Object/AllocationItemObject.cs new file mode 100644 index 00000000..25c8a26a --- /dev/null +++ b/BunqSdk/Model/Generated/Object/AllocationItemObject.cs @@ -0,0 +1,100 @@ +using Bunq.Sdk.Model.Core; +using Bunq.Sdk.Model.Generated.Endpoint; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace Bunq.Sdk.Model.Generated.Object +{ + /// + /// + public class AllocationItemObject : BunqModel + { + /// + /// The UUID of the RegistryMembership we are allocating money for. Can be provided instead of the "alias" + /// field. + /// + [JsonProperty(PropertyName = "membership_uuid")] + public string MembershipUuid { get; set; } + /// + /// The Tricount ID of the membership for backwards compatibility, to be able to handle changed made offline + /// before the Tricount migration, but synced to the backend after the Tricount migration. + /// + [JsonProperty(PropertyName = "membership_tricount_id")] + public long? MembershipTricountId { get; set; } + /// + /// The Alias of the party we are allocating money for. + /// + [JsonProperty(PropertyName = "alias")] + public MonetaryAccountReference Alias { get; set; } + /// + /// The type of the AllocationItem. + /// + [JsonProperty(PropertyName = "type")] + public string Type { get; set; } + /// + /// The Amount of the AllocationItem. + /// + [JsonProperty(PropertyName = "amount")] + public AmountObject Amount { get; set; } + /// + /// The Amount of the AllocationItem in the local currency. + /// + [JsonProperty(PropertyName = "amount_local")] + public AmountObject AmountLocal { get; set; } + /// + /// The share ratio of the AllocationItem. + /// + [JsonProperty(PropertyName = "share_ratio")] + public long? ShareRatio { get; set; } + /// + /// The membership. + /// + [JsonProperty(PropertyName = "membership")] + public RegistryMembershipApiObject Membership { get; set; } + + public AllocationItemObject(string type) + { + Type = type; + } + + + /// + /// + public override bool IsAllFieldNull() + { + if (this.Type != null) + { + return false; + } + + if (this.Membership != null) + { + return false; + } + + if (this.Amount != null) + { + return false; + } + + if (this.AmountLocal != null) + { + return false; + } + + if (this.ShareRatio != null) + { + return false; + } + + return true; + } + + /// + /// + public static AllocationItemObject CreateFromJsonString(string json) + { + return BunqModel.CreateFromJsonString(json); + } + } +} diff --git a/BunqSdk/Model/Generated/Object/AttachmentMasterCardActionRefundObject.cs b/BunqSdk/Model/Generated/Object/AttachmentMasterCardActionRefundObject.cs index 5f81e6ef..644e8b33 100644 --- a/BunqSdk/Model/Generated/Object/AttachmentMasterCardActionRefundObject.cs +++ b/BunqSdk/Model/Generated/Object/AttachmentMasterCardActionRefundObject.cs @@ -12,9 +12,9 @@ public class AttachmentMasterCardActionRefundObject : BunqModel /// The id of the attached Attachment. /// [JsonProperty(PropertyName = "id")] - public int? Id { get; set; } + public long? Id { get; set; } - public AttachmentMasterCardActionRefundObject(int? id) + public AttachmentMasterCardActionRefundObject(long? id) { Id = id; } diff --git a/BunqSdk/Model/Generated/Object/AttachmentMonetaryAccountPaymentObject.cs b/BunqSdk/Model/Generated/Object/AttachmentMonetaryAccountPaymentObject.cs index 47e9b780..bf865a58 100644 --- a/BunqSdk/Model/Generated/Object/AttachmentMonetaryAccountPaymentObject.cs +++ b/BunqSdk/Model/Generated/Object/AttachmentMonetaryAccountPaymentObject.cs @@ -12,14 +12,14 @@ public class AttachmentMonetaryAccountPaymentObject : BunqModel /// The id of the attached Attachment. /// [JsonProperty(PropertyName = "id")] - public int? Id { get; set; } + public long? Id { get; set; } /// /// The id of the MonetaryAccount this Attachment is attached from. /// [JsonProperty(PropertyName = "monetary_account_id")] - public int? MonetaryAccountId { get; set; } + public long? MonetaryAccountId { get; set; } - public AttachmentMonetaryAccountPaymentObject(int? id) + public AttachmentMonetaryAccountPaymentObject(long? id) { Id = id; } diff --git a/BunqSdk/Model/Generated/Object/BunqIdObject.cs b/BunqSdk/Model/Generated/Object/BunqIdObject.cs index c4f9d16d..e108c786 100644 --- a/BunqSdk/Model/Generated/Object/BunqIdObject.cs +++ b/BunqSdk/Model/Generated/Object/BunqIdObject.cs @@ -12,9 +12,9 @@ public class BunqIdObject : BunqModel /// An integer ID of an object. Unique per object type. /// [JsonProperty(PropertyName = "id")] - public int? Id { get; set; } + public long? Id { get; set; } - public BunqIdObject(int? id) + public BunqIdObject(long? id) { Id = id; } diff --git a/BunqSdk/Model/Generated/Object/CardBatchEntryObject.cs b/BunqSdk/Model/Generated/Object/CardBatchEntryObject.cs index 5a86bd44..c4840b03 100644 --- a/BunqSdk/Model/Generated/Object/CardBatchEntryObject.cs +++ b/BunqSdk/Model/Generated/Object/CardBatchEntryObject.cs @@ -12,7 +12,7 @@ public class CardBatchEntryObject : BunqModel /// The ID of the card that needs to be updated. /// [JsonProperty(PropertyName = "id")] - public int? Id { get; set; } + public long? Id { get; set; } /// /// The status to set for the card. Can be ACTIVE, DEACTIVATED, LOST, STOLEN or CANCELLED, and can only be set /// to LOST/STOLEN/CANCELLED when order status is @@ -43,9 +43,9 @@ public class CardBatchEntryObject : BunqModel /// not supplied. /// [JsonProperty(PropertyName = "monetary_account_id_fallback")] - public int? MonetaryAccountIdFallback { get; set; } + public long? MonetaryAccountIdFallback { get; set; } - public CardBatchEntryObject(int? id) + public CardBatchEntryObject(long? id) { Id = id; } diff --git a/BunqSdk/Model/Generated/Object/CardBatchReplaceEntryObject.cs b/BunqSdk/Model/Generated/Object/CardBatchReplaceEntryObject.cs index ac0cfec2..7eaba18c 100644 --- a/BunqSdk/Model/Generated/Object/CardBatchReplaceEntryObject.cs +++ b/BunqSdk/Model/Generated/Object/CardBatchReplaceEntryObject.cs @@ -12,7 +12,7 @@ public class CardBatchReplaceEntryObject : BunqModel /// The ID of the card that needs to be replaced. /// [JsonProperty(PropertyName = "id")] - public int? Id { get; set; } + public long? Id { get; set; } /// /// The user's name as it will be on the card. Check 'card-name' for the available card names for a user. /// @@ -29,7 +29,7 @@ public class CardBatchReplaceEntryObject : BunqModel [JsonProperty(PropertyName = "second_line")] public string SecondLine { get; set; } - public CardBatchReplaceEntryObject(int? id) + public CardBatchReplaceEntryObject(long? id) { Id = id; } diff --git a/BunqSdk/Model/Generated/Object/CardCountryPermissionObject.cs b/BunqSdk/Model/Generated/Object/CardCountryPermissionObject.cs index 96fdd76d..3e895f8f 100644 --- a/BunqSdk/Model/Generated/Object/CardCountryPermissionObject.cs +++ b/BunqSdk/Model/Generated/Object/CardCountryPermissionObject.cs @@ -22,7 +22,7 @@ public class CardCountryPermissionObject : BunqModel /// The id of the card country permission entry. /// [JsonProperty(PropertyName = "id")] - public int? Id { get; set; } + public long? Id { get; set; } public CardCountryPermissionObject(string country) { diff --git a/BunqSdk/Model/Generated/Object/CardPinAssignmentObject.cs b/BunqSdk/Model/Generated/Object/CardPinAssignmentObject.cs index 81c4b2c8..3bc2fa12 100644 --- a/BunqSdk/Model/Generated/Object/CardPinAssignmentObject.cs +++ b/BunqSdk/Model/Generated/Object/CardPinAssignmentObject.cs @@ -27,7 +27,7 @@ public class CardPinAssignmentObject : BunqModel /// The ID of the monetary account to assign to this pin for the card. /// [JsonProperty(PropertyName = "monetary_account_id")] - public int? MonetaryAccountId { get; set; } + public long? MonetaryAccountId { get; set; } /// /// The status of the card pin assignment. /// diff --git a/BunqSdk/Model/Generated/Object/CardPrimaryAccountNumberObject.cs b/BunqSdk/Model/Generated/Object/CardPrimaryAccountNumberObject.cs index 7004754a..bab806c5 100644 --- a/BunqSdk/Model/Generated/Object/CardPrimaryAccountNumberObject.cs +++ b/BunqSdk/Model/Generated/Object/CardPrimaryAccountNumberObject.cs @@ -12,7 +12,7 @@ public class CardPrimaryAccountNumberObject : BunqModel /// The ID for this Virtual PAN. /// [JsonProperty(PropertyName = "id")] - public int? Id { get; set; } + public long? Id { get; set; } /// /// The description for this PAN. /// @@ -27,7 +27,7 @@ public class CardPrimaryAccountNumberObject : BunqModel /// The ID of the monetary account to assign to this PAN, only for Online Cards. /// [JsonProperty(PropertyName = "monetary_account_id")] - public int? MonetaryAccountId { get; set; } + public long? MonetaryAccountId { get; set; } /// /// The UUID for this Virtual PAN. /// @@ -44,7 +44,7 @@ public class CardPrimaryAccountNumberObject : BunqModel [JsonProperty(PropertyName = "type")] public string Type { get; set; } - public CardPrimaryAccountNumberObject(int? id) + public CardPrimaryAccountNumberObject(long? id) { Id = id; } diff --git a/BunqSdk/Model/Generated/Object/DraftPaymentEntryObject.cs b/BunqSdk/Model/Generated/Object/DraftPaymentEntryObject.cs index c488518a..0b95de83 100644 --- a/BunqSdk/Model/Generated/Object/DraftPaymentEntryObject.cs +++ b/BunqSdk/Model/Generated/Object/DraftPaymentEntryObject.cs @@ -39,7 +39,7 @@ public class DraftPaymentEntryObject : BunqModel /// The id of the draft payment entry. /// [JsonProperty(PropertyName = "id")] - public int? Id { get; set; } + public long? Id { get; set; } /// /// The LabelMonetaryAccount containing the public information of 'this' (party) side of the DraftPayment. /// diff --git a/BunqSdk/Model/Generated/Object/ImageObject.cs b/BunqSdk/Model/Generated/Object/ImageObject.cs index a7b5575f..10eefd0b 100644 --- a/BunqSdk/Model/Generated/Object/ImageObject.cs +++ b/BunqSdk/Model/Generated/Object/ImageObject.cs @@ -22,12 +22,12 @@ public class ImageObject : BunqModel /// The image height in pixels. /// [JsonProperty(PropertyName = "height")] - public int? Height { get; set; } + public long? Height { get; set; } /// /// The image width in pixels. /// [JsonProperty(PropertyName = "width")] - public int? Width { get; set; } + public long? Width { get; set; } /// diff --git a/BunqSdk/Model/Generated/Object/InvoiceItemObject.cs b/BunqSdk/Model/Generated/Object/InvoiceItemObject.cs index 2a2f94b0..a62c10a6 100644 --- a/BunqSdk/Model/Generated/Object/InvoiceItemObject.cs +++ b/BunqSdk/Model/Generated/Object/InvoiceItemObject.cs @@ -12,7 +12,7 @@ public class InvoiceItemObject : BunqModel /// The id of the invoice item. /// [JsonProperty(PropertyName = "id")] - public int? Id { get; set; } + public long? Id { get; set; } /// /// The billing date of the item. /// diff --git a/BunqSdk/Model/Generated/Object/MasterCardActionReferenceObject.cs b/BunqSdk/Model/Generated/Object/MasterCardActionReferenceObject.cs index 198ab5d1..3f4a15b7 100644 --- a/BunqSdk/Model/Generated/Object/MasterCardActionReferenceObject.cs +++ b/BunqSdk/Model/Generated/Object/MasterCardActionReferenceObject.cs @@ -12,7 +12,7 @@ public class MasterCardActionReferenceObject : BunqModel /// The id of the event. /// [JsonProperty(PropertyName = "event_id")] - public int? EventId { get; set; } + public long? EventId { get; set; } /// diff --git a/BunqSdk/Model/Generated/Object/NotificationFilterUrlObject.cs b/BunqSdk/Model/Generated/Object/NotificationFilterUrlObject.cs index 34d24521..2cccba99 100644 --- a/BunqSdk/Model/Generated/Object/NotificationFilterUrlObject.cs +++ b/BunqSdk/Model/Generated/Object/NotificationFilterUrlObject.cs @@ -37,7 +37,7 @@ public class NotificationFilterUrlObject : BunqModel /// The id of the NotificationFilterUrl. /// [JsonProperty(PropertyName = "id")] - public int? Id { get; set; } + public long? Id { get; set; } /// /// The timestamp of the NotificationFilterUrl's creation. /// diff --git a/BunqSdk/Model/Generated/Object/OauthCallbackUrlObject.cs b/BunqSdk/Model/Generated/Object/OauthCallbackUrlObject.cs index cba0bd4e..83895741 100644 --- a/BunqSdk/Model/Generated/Object/OauthCallbackUrlObject.cs +++ b/BunqSdk/Model/Generated/Object/OauthCallbackUrlObject.cs @@ -12,7 +12,7 @@ public class OauthCallbackUrlObject : BunqModel /// The id of the callback URL. /// [JsonProperty(PropertyName = "id")] - public int? Id { get; set; } + public long? Id { get; set; } /// /// The timestamp of the callback URL's creation. /// diff --git a/BunqSdk/Model/Generated/Object/PaymentFeeObject.cs b/BunqSdk/Model/Generated/Object/PaymentFeeObject.cs index 7b012270..4276c533 100644 --- a/BunqSdk/Model/Generated/Object/PaymentFeeObject.cs +++ b/BunqSdk/Model/Generated/Object/PaymentFeeObject.cs @@ -22,7 +22,7 @@ public class PaymentFeeObject : BunqModel /// The id of the invoice related to possible payment fee. /// [JsonProperty(PropertyName = "invoice_id")] - public int? InvoiceId { get; set; } + public long? InvoiceId { get; set; } /// diff --git a/BunqSdk/Model/Generated/Object/RegistryEntryAttachmentObject.cs b/BunqSdk/Model/Generated/Object/RegistryEntryAttachmentObject.cs new file mode 100644 index 00000000..9c3bb214 --- /dev/null +++ b/BunqSdk/Model/Generated/Object/RegistryEntryAttachmentObject.cs @@ -0,0 +1,52 @@ +using Bunq.Sdk.Model.Core; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace Bunq.Sdk.Model.Generated.Object +{ + /// + /// + public class RegistryEntryAttachmentObject : BunqModel + { + /// + /// The id of the attachment. + /// + [JsonProperty(PropertyName = "id")] + public long? Id { get; set; } + /// + /// The id of the monetary account to which the attachment belongs. + /// + [JsonProperty(PropertyName = "monetary_account_id")] + public long? MonetaryAccountId { get; set; } + + public RegistryEntryAttachmentObject(long? id) + { + Id = id; + } + + + /// + /// + public override bool IsAllFieldNull() + { + if (this.Id != null) + { + return false; + } + + if (this.MonetaryAccountId != null) + { + return false; + } + + return true; + } + + /// + /// + public static RegistryEntryAttachmentObject CreateFromJsonString(string json) + { + return BunqModel.CreateFromJsonString(json); + } + } +} diff --git a/BunqSdk/Model/Generated/Object/RegistryEntryReferenceObject.cs b/BunqSdk/Model/Generated/Object/RegistryEntryReferenceObject.cs new file mode 100644 index 00000000..55c2593e --- /dev/null +++ b/BunqSdk/Model/Generated/Object/RegistryEntryReferenceObject.cs @@ -0,0 +1,37 @@ +using Bunq.Sdk.Model.Core; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace Bunq.Sdk.Model.Generated.Object +{ + /// + /// + public class RegistryEntryReferenceObject : BunqModel + { + /// + /// The object type that will be linked to the RegistryEntry. + /// + [JsonProperty(PropertyName = "type")] + public string Type { get; set; } + /// + /// The ID of the object that will be used for the RegistryEntry. + /// + [JsonProperty(PropertyName = "id")] + public long? Id { get; set; } + + + /// + /// + public override bool IsAllFieldNull() + { + return true; + } + + /// + /// + public static RegistryEntryReferenceObject CreateFromJsonString(string json) + { + return BunqModel.CreateFromJsonString(json); + } + } +} diff --git a/BunqSdk/Model/Generated/Object/RegistryMembershipSettingObject.cs b/BunqSdk/Model/Generated/Object/RegistryMembershipSettingObject.cs new file mode 100644 index 00000000..9a8ea9cf --- /dev/null +++ b/BunqSdk/Model/Generated/Object/RegistryMembershipSettingObject.cs @@ -0,0 +1,77 @@ +using Bunq.Sdk.Model.Core; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace Bunq.Sdk.Model.Generated.Object +{ + /// + /// + public class RegistryMembershipSettingObject : BunqModel + { + /// + /// The setting for for adding automatically card transactions to the registry. + /// + [JsonProperty(PropertyName = "auto_add_card_transaction")] + public string AutoAddCardTransaction { get; set; } + /// + /// The time when auto add card gets active + /// + [JsonProperty(PropertyName = "time_auto_add_card_transaction_start")] + public string TimeAutoAddCardTransactionStart { get; set; } + /// + /// The time when auto add card gets inactive + /// + [JsonProperty(PropertyName = "time_auto_add_card_transaction_end")] + public string TimeAutoAddCardTransactionEnd { get; set; } + /// + /// The ids of the cards that have been added to registry membership setting. + /// + [JsonProperty(PropertyName = "card_ids")] + public List CardIds { get; set; } + /// + /// The cards of which payments will be automatically added to this Registry. + /// + [JsonProperty(PropertyName = "card_labels")] + public List CardLabels { get; set; } + + + /// + /// + public override bool IsAllFieldNull() + { + if (this.AutoAddCardTransaction != null) + { + return false; + } + + if (this.TimeAutoAddCardTransactionStart != null) + { + return false; + } + + if (this.TimeAutoAddCardTransactionEnd != null) + { + return false; + } + + if (this.CardIds != null) + { + return false; + } + + if (this.CardLabels != null) + { + return false; + } + + return true; + } + + /// + /// + public static RegistryMembershipSettingObject CreateFromJsonString(string json) + { + return BunqModel.CreateFromJsonString(json); + } + } +} diff --git a/BunqSdk/Model/Generated/Object/RequestInquiryReferenceObject.cs b/BunqSdk/Model/Generated/Object/RequestInquiryReferenceObject.cs index a6d88da0..3598de91 100644 --- a/BunqSdk/Model/Generated/Object/RequestInquiryReferenceObject.cs +++ b/BunqSdk/Model/Generated/Object/RequestInquiryReferenceObject.cs @@ -17,7 +17,7 @@ public class RequestInquiryReferenceObject : BunqModel /// The id of the request inquiry (batch). /// [JsonProperty(PropertyName = "id")] - public int? Id { get; set; } + public long? Id { get; set; } /// diff --git a/BunqSdk/Model/Generated/Object/TaxResidentObject.cs b/BunqSdk/Model/Generated/Object/TaxResidentObject.cs index e0788c29..d2534de6 100644 --- a/BunqSdk/Model/Generated/Object/TaxResidentObject.cs +++ b/BunqSdk/Model/Generated/Object/TaxResidentObject.cs @@ -27,7 +27,7 @@ public class TaxResidentObject : BunqModel /// The id of the tax resident. /// [JsonProperty(PropertyName = "id")] - public int? Id { get; set; } + public long? Id { get; set; } public TaxResidentObject(string country, string taxNumber) { diff --git a/BunqSdk/Model/Generated/Object/WhitelistResultViewAnchoredObjectObject.cs b/BunqSdk/Model/Generated/Object/WhitelistResultViewAnchoredObjectObject.cs index 49d31367..ca9d9ea6 100644 --- a/BunqSdk/Model/Generated/Object/WhitelistResultViewAnchoredObjectObject.cs +++ b/BunqSdk/Model/Generated/Object/WhitelistResultViewAnchoredObjectObject.cs @@ -13,7 +13,7 @@ public class WhitelistResultViewAnchoredObjectObject : BunqModel /// The ID of the whitelist entry. /// [JsonProperty(PropertyName = "id")] - public int? Id { get; set; } + public long? Id { get; set; } /// /// The RequestResponse object /// From 70f6a785a71c3bd44465691abda6af61caaaa83e Mon Sep 17 00:00:00 2001 From: andrederoos Date: Sun, 3 Aug 2025 08:04:59 +0200 Subject: [PATCH 2/4] Update all other int occurences to long --- BunqSdk/Context/ApiContext.cs | 4 ++-- BunqSdk/Context/UserContext.cs | 4 ++-- BunqSdk/Model/Core/BunqModel.cs | 4 ++-- BunqSdk/Model/Core/DeviceServerInternal.cs | 2 +- BunqSdk/Model/Core/Installation.cs | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/BunqSdk/Context/ApiContext.cs b/BunqSdk/Context/ApiContext.cs index 9b66e049..aeab466d 100644 --- a/BunqSdk/Context/ApiContext.cs +++ b/BunqSdk/Context/ApiContext.cs @@ -31,12 +31,12 @@ public class ApiContext /// /// Measure of any time unit when none of it is needed. /// - private const long TIME_UNIT_COUNT_NONE = 0; + private const int TIME_UNIT_COUNT_NONE = 0; /// /// Minimum time to session expiry not requiring session reset. /// - private const long TIME_TO_SESSION_EXPIRY_MINIMUM_SECONDS = 30; + private const int TIME_TO_SESSION_EXPIRY_MINIMUM_SECONDS = 30; /// /// Default path to store the serialized context. diff --git a/BunqSdk/Context/UserContext.cs b/BunqSdk/Context/UserContext.cs index 7feb2a07..18691505 100644 --- a/BunqSdk/Context/UserContext.cs +++ b/BunqSdk/Context/UserContext.cs @@ -29,9 +29,9 @@ public MonetaryAccountBankApiObject PrimaryMonetaryAccountBank private set => primaryMonetaryAccountBank = value ?? throw new ArgumentNullException(nameof(value)); } - public int UserId { get; } + public long UserId { get; } - public UserContext(int userId, BunqModel user) + public UserContext(long userId, BunqModel user) { UserId = userId; SetUser(user); diff --git a/BunqSdk/Model/Core/BunqModel.cs b/BunqSdk/Model/Core/BunqModel.cs index bc812746..5940d1f1 100644 --- a/BunqSdk/Model/Core/BunqModel.cs +++ b/BunqSdk/Model/Core/BunqModel.cs @@ -218,12 +218,12 @@ protected static ApiContext GetApiContext() return BunqContext.ApiContext; } - protected static int DetermineUserId() + protected static long DetermineUserId() { return BunqContext.UserContext.UserId; } - protected static int DetermineMonetaryAccountId(int? monetaryAccountId = null) + protected static long DetermineMonetaryAccountId(long? monetaryAccountId = null) { return monetaryAccountId ?? BunqContext.UserContext.PrimaryMonetaryAccountBank.Id.Value; } diff --git a/BunqSdk/Model/Core/DeviceServerInternal.cs b/BunqSdk/Model/Core/DeviceServerInternal.cs index e14d913d..4f230d92 100644 --- a/BunqSdk/Model/Core/DeviceServerInternal.cs +++ b/BunqSdk/Model/Core/DeviceServerInternal.cs @@ -17,7 +17,7 @@ public class DeviceServerInternal : DeviceServerApiObject /// more at this link https://bunq.com/en/apikey-dynamic-ip. /// - public static BunqResponse Create(ApiContext apiContext, string description, string secret, + public static BunqResponse Create(ApiContext apiContext, string description, string secret, List permittedIps = null, IDictionary customHeaders = null) { diff --git a/BunqSdk/Model/Core/Installation.cs b/BunqSdk/Model/Core/Installation.cs index 588b593b..52f8eac5 100644 --- a/BunqSdk/Model/Core/Installation.cs +++ b/BunqSdk/Model/Core/Installation.cs @@ -56,7 +56,7 @@ private static byte[] GenerateRequestBodyBytes(string publicKeyClientString) return Encoding.UTF8.GetBytes(BunqJsonConvert.SerializeObject(installationRequestBody)); } - public int GetIdInt() + public long GetIdInt() { return id.IdInt; } From 5d3eeba29eaf641b24c35599d12f9c194e80eecb Mon Sep 17 00:00:00 2001 From: andrederoos Date: Sun, 3 Aug 2025 08:18:39 +0200 Subject: [PATCH 3/4] Update all test int occurences to long --- BunqSdk.Tests/Context/Psd2ApiContextTest.cs | 2 +- .../Model/Generated/Endpoint/MonetaryAccountBankTest.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/BunqSdk.Tests/Context/Psd2ApiContextTest.cs b/BunqSdk.Tests/Context/Psd2ApiContextTest.cs index 5d19c871..d223436e 100644 --- a/BunqSdk.Tests/Context/Psd2ApiContextTest.cs +++ b/BunqSdk.Tests/Context/Psd2ApiContextTest.cs @@ -55,7 +55,7 @@ public void TestCreateOauthClient() return; } - int clientId = OauthClientApiObject.Create().Value; + long clientId = OauthClientApiObject.Create().Value; OauthClientApiObject oauthClient = OauthClientApiObject.Get(clientId).Value; Assert.NotNull(oauthClient); diff --git a/BunqSdk.Tests/Model/Generated/Endpoint/MonetaryAccountBankTest.cs b/BunqSdk.Tests/Model/Generated/Endpoint/MonetaryAccountBankTest.cs index de8529e2..64ec7ec2 100644 --- a/BunqSdk.Tests/Model/Generated/Endpoint/MonetaryAccountBankTest.cs +++ b/BunqSdk.Tests/Model/Generated/Endpoint/MonetaryAccountBankTest.cs @@ -31,7 +31,7 @@ public void TestCreationNewMonetaryAccount() DeleteMonetaryAccount(monetaryAccountToCloseId); } - private static void DeleteMonetaryAccount(int idToClose) + private static void DeleteMonetaryAccount(long idToClose) { MonetaryAccountBankApiObject.Update(idToClose, status: Status, subStatus: SubStatus, reason: Reason, reasonDescription: ReasonDescription); From 63aa2ba09892817f27babbdc195bb112b0ada094 Mon Sep 17 00:00:00 2001 From: andrederoos Date: Sun, 3 Aug 2025 08:41:56 +0200 Subject: [PATCH 4/4] Update test config --- BunqSdk.Tests/Config.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/BunqSdk.Tests/Config.cs b/BunqSdk.Tests/Config.cs index 72a87911..e695efa2 100644 --- a/BunqSdk.Tests/Config.cs +++ b/BunqSdk.Tests/Config.cs @@ -51,14 +51,14 @@ public static PointerObject GetCounterPartyAliasSelf() return new PointerObject(type, alias); } - public static int GetSecondMonetaryAccountId() + public static long GetSecondMonetaryAccountId() { - return GetConfig()[FIELD_MONETARY_ACCOUNT_ID2].ToObject(); + return GetConfig()[FIELD_MONETARY_ACCOUNT_ID2].ToObject(); } - public static int GetMonetaryAccountId() + public static long GetMonetaryAccountId() { - return GetConfig()[FIELD_MONETARY_ACCOUNT_ID].ToObject(); + return GetConfig()[FIELD_MONETARY_ACCOUNT_ID].ToObject(); } public static string GetAttachmentPathIn() @@ -90,9 +90,9 @@ public static string GetApiKey() return GetConfig()[FIELD_API_KEY].ToString(); } - public static int GetUserId() + public static long GetUserId() { - return GetConfig()[FIELD_USER_ID].ToObject(); + return GetConfig()[FIELD_USER_ID].ToObject(); } private static JObject GetConfig()