From 6337f7c314f831391c3fee661964e9b2c3db543a Mon Sep 17 00:00:00 2001 From: Michael Dekker Date: Thu, 23 Jan 2020 17:47:43 +0100 Subject: [PATCH 1/6] refactor: Generate TypeScript types from OpenAPI definition --- build/types/LICENSE.md | 7 + build/types/generate-types.js | 357 + package.json | 1 + src/Types/AddressDetails.ts | 14 +- src/Types/Amount.ts | 10 +- src/Types/AmountValue.ts | 3 + src/Types/ApiTypes.ts | 12018 ++++++++++++++++ src/Types/AssignmentType.ts | 7 +- src/Types/CardType.ts | 7 +- src/Types/Coordinate.ts | 10 +- src/Types/CounterPartyAliasCollection.ts | 3 + src/Types/CounterpartyAlias.ts | 3 + src/Types/CountryPermission.ts | 10 +- src/Types/CountryPermissionCollection.ts | 3 + src/Types/LocationCoords.ts | 3 + src/Types/MagStripePermission.ts | 3 + src/Types/MonetaryAccountPutRequest.ts | 3 + src/Types/NoteEventType.ts | 20 +- src/Types/NotificationFilter.ts | 30 +- src/Types/PaymentRequestObject.ts | 3 + src/Types/PaymentRequestObjectCollection.ts | 3 + src/Types/PinCodeAssignment.ts | 11 +- src/Types/PinCodeAssignmentCollection.ts | 3 + src/Types/RequestInquiryPostOptions.ts | 3 + src/Types/RequestResponsePutOptions.ts | 3 + src/Types/Schedule.ts | 17 +- .../ShareInviteMonetaryAccountInquiry.ts | 21 + .../ShareInviteMonetaryAccountResponse.ts | 13 +- 28 files changed, 12508 insertions(+), 81 deletions(-) create mode 100644 build/types/LICENSE.md create mode 100755 build/types/generate-types.js create mode 100644 src/Types/ApiTypes.ts diff --git a/build/types/LICENSE.md b/build/types/LICENSE.md new file mode 100644 index 0000000..e8af7a6 --- /dev/null +++ b/build/types/LICENSE.md @@ -0,0 +1,7 @@ +Based on https://github.com/manifoldco/swagger-to-ts + +Copyright 2020 drew@pow.rs + +Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. diff --git a/build/types/generate-types.js b/build/types/generate-types.js new file mode 100755 index 0000000..181e6c7 --- /dev/null +++ b/build/types/generate-types.js @@ -0,0 +1,357 @@ +#!/usr/bin/env node +const fs = require("fs"); +const path = require("path"); +const axios = require("axios"); +const prettier = require("prettier"); + +// Primitives only! +const TYPES = { + string: "string", + int: "number", + integer: "number", + float: "number", + double: "number", + number: "number", + bool: "boolean", + boolean: "boolean", +}; + +// Primitive classes only! +const RESERVED_TYPES = [ + "Error", + "Array", +]; + +// Custom types to be added +const CUSTOM_TYPES = { + BunqId: ` string`, + AssignmentType: ` "PRIMARY" | "SECONDARY" | "TERTIARY"`, + CardType: ` "MAESTRO" | "MASTERCARD" | "MAESTRO_MOBILE_NFC"`, + NoteEventType: ` + | "bunqme-fundraiser-result" + | "draft-payment" + | "ideal-merchant-transaction" + | "mastercard-action" + | "payment-batch" + | "payment" + | "request-inquiry-batch" + | "request-inquiry" + | "request-response" + | "schedule" + | "sofort-merchant-transaction" + | "switch-service-payment" + | "whitelist"`, + NotificationCategoryType: ` + | "BILLING" + | "CARD_TRANSACTION_FAILED" + | "CARD_TRANSACTION_SUCCESSFUL" + | "CHAT" + | "DRAFT_PAYMENT" + | "IDEAL" + | "SOFORT" + | "MONETARY_ACCOUNT_PROFILE" + | "MUTATION" + | "PAYMENT" + | "PROMOTION" + | "REQUEST" + | "SCHEDULE_RESULT" + | "SCHEDULE_STATUS" + | "SHARE" + | "SUPPORT" + | "TAB_RESULT" + | "USER_APPROVAL"`, + NotificationDeliveryMethodType: ` + | "URL" + | "PUSH"`, + RecurrenceUnitType: `"ONCE" | "HOURLY" | "DAILY" | "WEEKLY" | "MONTHLY" | "YEARLY"`, + ScheduleStatusType: `"ACTIVE" | "FINISHED" | "CANCELLED"`, + ShareInviteMonetaryAccountResponseStatus: ` + | "REVOKED" + | "ACCEPTED" + | "CANCELLED" + | "CANCELLATION_PENDING" + | "CANCELLATION_ACCEPTED" + | "CANCELLATION_REJECTED"` +}; + +// Type overrides. +// Target object is the Open API schema. References can be made to both schema types and `CUSTOM_TYPES`. +const TYPE_OVERRIDES = { + CardPinAssignment: { + type: "AssignmentType", + }, + NotificationFilter: { + notification_delivery_method: "NotificationDeliveryMethodType", + category: "NotificationCategoryType", + }, + Schedule: { + recurrence_unit: "RecurrenceUnitType", + status: "ScheduleStatusType", + }, +}; + +// Required overrides. +// `true` means required, `false` means optional. +const REQUIRED_OVERRIDES = { + Address: { + street: true, + house_number: true, + postal_code: true, + city: true, + country: true, + po_box: true, + }, + Amount: { + value: true, + currency: true, + }, + CardCountryPermission: { + country: true, + expiry_time: true, + }, + CardPinAssignment: { + type: true, + monetary_account_id: true, + }, + Geolocation: { + latitude: true, + longitude: true, + }, + LabelMonetaryAccount: { + type: true, + value: true, + }, + NotificationFilter: { + notification_delivery_method: true, + notification_target: true, + category: true, + }, + Schedule: { + time_start: true, + recurrence_size: true, + recurrence_unit: true, + }, +}; + +function capitalize(str) { + return `${str[0].toUpperCase()}${str.slice(1)}`; +} + +function camelCase(name) { + return name.replace(/(-|_|\.|\s)+\w/g, (letter) => + letter.toUpperCase().replace(/[^0-9a-z]/gi, "") + ); +} + +function sanitize(name) { + return name.includes("-") ? `'${name}'` : name; +} + +function spacesToUnderscores(name) { + return name.replace(/\s/g, "_"); +} + +function generateCustomTypes() { + let output = ""; + for (const [name, customType] of Object.entries(CUSTOM_TYPES)) { + output += `export type ${name} =${customType}; +`; + } + + return output; +} + +function applyAliases(input) { + return input.replace(/ShareInviteBank/g, "ShareInviteMonetaryAccount"); +} + +function parse(spec, options= {}) { + const shouldCamelCase = options.camelcase || false; + + const queue = []; + + const interfaces = {}; + + const { definitions } = spec; + + function getRef(lookup) { + const ID = lookup.replace("#/components/schemas/", ""); + const ref = definitions[ID]; + return [ID, ref]; + } + + // Returns primitive type, or 'object' or 'any' + function getType(definition, nestedName) { + const { $ref, items, type, ...value } = definition; + + const nextInterface = camelCase(nestedName); // if this becomes an interface, it’ll need to be camelCased + + const DEFAULT_TYPE = "any"; + + if ($ref) { + const [refName, refProperties] = getRef($ref); + const convertedRefName = spacesToUnderscores(refName); + // If a shallow array interface, return that instead + if (refProperties.items && refProperties.items.$ref) { + return getType(refProperties, refName); + } + if ((TYPE_OVERRIDES[refName] || {})[refProperties.type]) { + return TYPE_OVERRIDES[refName][refProperties.type]; + } + if (refProperties.type && TYPES[refProperties.type]) { + return TYPES[refProperties.type]; + } + if (convertedRefName) { + if (RESERVED_TYPES.concat(Object.keys(CUSTOM_TYPES)).includes(convertedRefName)) { + return convertedRefName; + } + return `I${convertedRefName}`; + } + + return DEFAULT_TYPE; + } + + if (items && items.$ref) { + const [refName] = getRef(items.$ref); + return `Array<${getType(items, refName)}>`; + } + + if (items && items.type) { + // if an array, keep nesting + if (items.type === "array") { + return `Array<${getType(items, nestedName)}>`; + } + // else if primitive, return type + if (TYPES[items.type]) { + return `Array<${TYPES[items.type]}>`; + } + // otherwise if this is an array of nested types, return that interface for later + queue.push([nextInterface, items]); + return `Array<${nextInterface}>`; + } + + if (Array.isArray(value.oneOf)) { + return value.oneOf.map((def) => getType(def, "")).join(" | "); + } + + if (value.properties) { + // If this is a nested object, let’s add it to the stack for later + queue.push([nextInterface, { $ref, items, type, ...value }]); + return nextInterface; + } + + if (type) { + return TYPES[type] || type || DEFAULT_TYPE; + } + + return DEFAULT_TYPE; + } + + function buildNextInterface() { + const singleInterface = []; + const nextObject = queue.pop(); + if (!nextObject) return; + let [ID, { allOf, properties, required, additionalProperties, type }] = nextObject; + + let allProperties = properties || {}; + const includes = []; + + // Include allOf, if specified + if (Array.isArray(allOf)) { + allOf.forEach((item) => { + // Add “implements“ if this references other items + if (item.$ref) { + const [refName] = getRef(item.$ref); + includes.push(refName); + } else if (item.properties) { + allProperties = { ...allProperties, ...item.properties }; + } + }); + } + + // If nothing’s here, let’s skip this one. + if ( + !Object.keys(allProperties).length && + additionalProperties !== true && + type && + TYPES[type] + ) { + return; + } + // Open interface + const isExtending = includes.length ? ` extends ${includes.join(', ')}` : ''; + const interfaceName = `I${shouldCamelCase ? camelCase(ID) : spacesToUnderscores(ID)}`; + + singleInterface.push( + `export interface ${interfaceName}${isExtending} {` + ); + + // Populate interface + Object.entries(allProperties).forEach(([key, value]) => { + const optional = !((required || []).includes(key) || !!((REQUIRED_OVERRIDES[ID] || {})[key])); + const formattedKey = shouldCamelCase ? camelCase(key) : key; + const name = `${sanitize(formattedKey)}${optional ? "?" : ""}`; + const newID = `${ID}${capitalize(formattedKey)}`; + const interfaceType = (TYPE_OVERRIDES[ID] || {})[key] || getType(value, newID); + + if (typeof value.description === "string") { + // Print out descriptions as jsdoc comments, but only if there’s something there (.*) + singleInterface.push(`/**\n* ${value.description.replace(/\n$/, "").replace(/\n/g, "\n* ")}\n*/`); + } + + // Handle enums in the same definition + if (Array.isArray(value.enum)) { + singleInterface.push(`${name}: ${value.enum.map(option => JSON.stringify(option)).join(" | ")};`); + return; + } + + singleInterface.push(`${name}: ${interfaceType}`); + }); + + if (additionalProperties) { + if ((additionalProperties) === true) { + singleInterface.push('[name: string]: any'); + } + + if ((additionalProperties).type) { + const interfaceType = getType(additionalProperties, ""); + singleInterface.push(`[name: string]: ${interfaceType}`); + } + } + + // Close interface + singleInterface.push('}'); + + interfaces[interfaceName] = (prettier.format(singleInterface.join("\n"), { parser: "typescript", singleQuote: true })); + } + + // Begin parsing top-level entries + Object.entries(definitions).forEach((entry) => { + // Ignore top-level array definitions + if (entry[1].type === "object") { + queue.push(entry); + } + }); + queue.sort((a, b) => a[0].localeCompare(b[0])); + while (queue.length > 0) { + buildNextInterface(); + } + + return interfaces; +} + +(async function () { + try { + const bunqDocs = JSON.parse(applyAliases(JSON.stringify((await axios.get("https://raw.githubusercontent.com/bunq/doc/master/swagger.json")).data))); + const interfaces = parse({ definitions: bunqDocs.components.schemas }); + let output = ""; + for (const singleInterface of Object.values(interfaces)) { + output += `${singleInterface} +`; + } + output += generateCustomTypes(); + fs.writeFileSync(path.join(__dirname, "../../src/Types/ApiTypes.ts"), output); + } catch (e) { + console.error(e); + } +})(); diff --git a/package.json b/package.json index 3c77a20..b58d9e2 100644 --- a/package.json +++ b/package.json @@ -17,6 +17,7 @@ "scripts": { "build": "tsc --listFiles --newline lf", "build:dev": "tsc -w --newline lf", + "build:types": "./build/types/generate-types.js", "test": "npm run test:prettier && npm run test:jest", "posttest": "rm -r tests/custom-db/*", "test:dev": "cross-env ENV_CI=true DEV_MODE=true jest --watch --coverage --config jest.config.js", diff --git a/src/Types/AddressDetails.ts b/src/Types/AddressDetails.ts index 34fc5c0..5b70841 100644 --- a/src/Types/AddressDetails.ts +++ b/src/Types/AddressDetails.ts @@ -1,10 +1,8 @@ -type AddressDetails = { - street: string; - house_number: string; - po_box: string | boolean; - postal_code: string; - city: string; - country: string; -}; +import { IAddress } from "./ApiTypes"; + +/** + * @deprecated Use ApiTypes.IAddress instead. + */ +type AddressDetails = IAddress; export default AddressDetails; diff --git a/src/Types/Amount.ts b/src/Types/Amount.ts index 40b57fc..87ea86a 100644 --- a/src/Types/Amount.ts +++ b/src/Types/Amount.ts @@ -1,8 +1,8 @@ -import AmountValue from "./AmountValue"; +import { IAmount } from "./ApiTypes"; -type Amount = { - value: AmountValue; - currency: string; -}; +/** + * @deprecated Use ApiTypes.IAmount instead. + */ +type Amount = IAmount; export default Amount; diff --git a/src/Types/AmountValue.ts b/src/Types/AmountValue.ts index c85f294..37673c5 100644 --- a/src/Types/AmountValue.ts +++ b/src/Types/AmountValue.ts @@ -1,3 +1,6 @@ +/** + * @deprecated No alternative. + */ type AmountValue = string; export default AmountValue; diff --git a/src/Types/ApiTypes.ts b/src/Types/ApiTypes.ts new file mode 100644 index 0000000..b5370ce --- /dev/null +++ b/src/Types/ApiTypes.ts @@ -0,0 +1,12018 @@ +export interface IWhitelistSddUpdate { + /** + * The id of the created item + */ + Id?: BunqId; +} + +export interface IWhitelistSddRead { + /** + * The ID of the whitelist entry. + */ + id?: number; + /** + * The account to which payments will come in before possibly being 'redirected' by the whitelist. + */ + monetary_account_incoming_id?: number; + /** + * The account from which payments will be deducted when a transaction is matched with this whitelist. + */ + monetary_account_paying_id?: number; + /** + * The type of the SDD whitelist, can be CORE or B2B. + */ + type?: string; + /** + * The status of the whitelist. + */ + status?: string; + /** + * The credit scheme ID provided by the counterparty. + */ + credit_scheme_identifier?: string; + /** + * The mandate ID provided by the counterparty. + */ + mandate_identifier?: string; + /** + * The account to which payments will be paid. + */ + counterparty_alias?: ILabelMonetaryAccount; + /** + * The monthly maximum amount that can be deducted from the target account. + */ + maximum_amount_per_month?: IAmount; + /** + * The user who created the whitelist entry. + */ + user_alias_created?: ILabelUser; +} + +export interface IWhitelistSddListing { + /** + * The ID of the whitelist entry. + */ + id?: number; + /** + * The account to which payments will come in before possibly being 'redirected' by the whitelist. + */ + monetary_account_incoming_id?: number; + /** + * The account from which payments will be deducted when a transaction is matched with this whitelist. + */ + monetary_account_paying_id?: number; + /** + * The type of the SDD whitelist, can be CORE or B2B. + */ + type?: string; + /** + * The status of the whitelist. + */ + status?: string; + /** + * The credit scheme ID provided by the counterparty. + */ + credit_scheme_identifier?: string; + /** + * The mandate ID provided by the counterparty. + */ + mandate_identifier?: string; + /** + * The account to which payments will be paid. + */ + counterparty_alias?: ILabelMonetaryAccount; + /** + * The monthly maximum amount that can be deducted from the target account. + */ + maximum_amount_per_month?: IAmount; + /** + * The user who created the whitelist entry. + */ + user_alias_created?: ILabelUser; +} + +export interface IWhitelistSddDelete {} + +export interface IWhitelistSddCreate { + /** + * The id of the created item + */ + Id?: BunqId; +} + +export interface IWhitelistSdd { + /** + * ID of the monetary account of which you want to pay from. + */ + monetary_account_paying_id: number; + /** + * ID of the request for which you want to whitelist the originating SDD. + */ + request_id: number; + /** + * The maximum amount of money that is allowed to be deducted based on the whitelist. + */ + maximum_amount_per_month: IAmount; +} + +export interface IWhitelistResultViewAnchoredObject { + /** + * The ID of the whitelist entry. + */ + id?: number; + /** + * The RequestResponse object + */ + requestResponse?: IRequestResponse; + /** + * The DraftPayment object + */ + draftPayment?: IDraftPayment; +} + +export interface IWhitelistResult { + /** + * The ID of the whitelist entry. + */ + id?: number; + /** + * The account from which payments will be deducted when a transaction is matched with this whitelist. + */ + monetary_account_paying_id?: number; + /** + * The status of the WhitelistResult. + */ + status?: string; + /** + * The subStatus of the WhitelistResult. + */ + sub_status?: string; + /** + * The message when the whitelist result has failed due to user error. + */ + error_message?: Array; + /** + * The corresponding whitelist. + */ + whitelist?: IWhitelist; + /** + * The details of the external object the event was created for. + */ + object?: IWhitelistResultViewAnchoredObject; + /** + * The reference to the object used for split the bill. Can be RequestInquiry or RequestInquiryBatch + */ + request_reference_split_the_bill?: Array; +} + +export interface IWhitelist {} + +export interface IUserRead { + /** + * + */ + UserLight?: IUserLight; + /** + * + */ + UserPerson?: IUserPerson; + /** + * + */ + UserCompany?: IUserCompany; + /** + * + */ + UserApiKey?: IUserApiKey; + /** + * + */ + UserPaymentServiceProvider?: IUserPaymentServiceProvider; +} + +export interface IUserPersonUpdate { + /** + * The id of the modified person object. + */ + id?: number; +} + +export interface IUserPersonRead { + /** + * The id of the modified person object. + */ + id?: number; + /** + * The timestamp of the person object's creation. + */ + created?: string; + /** + * The timestamp of the person object's last update. + */ + updated?: string; + /** + * The person's public UUID. + */ + public_uuid?: string; + /** + * The person's first name. + */ + first_name?: string; + /** + * The person's middle name. + */ + middle_name?: string; + /** + * The person's last name. + */ + last_name?: string; + /** + * The person's legal name. + */ + legal_name?: string; + /** + * The display name for the person. + */ + display_name?: string; + /** + * The public nick name for the person. + */ + public_nick_name?: string; + /** + * The aliases of the user. + */ + alias?: Array; + /** + * The user's tax residence numbers for different countries. + */ + tax_resident?: Array; + /** + * The type of identification document the person registered with. + */ + document_type?: string; + /** + * The identification document number the person registered with. + */ + document_number?: string; + /** + * The country which issued the identification document the person registered with. + */ + document_country_of_issuance?: string; + /** + * The person's main address. + */ + address_main?: IAddress; + /** + * The person's postal address. + */ + address_postal?: IAddress; + /** + * The person's date of birth. Accepts ISO8601 date formats. + */ + date_of_birth?: string; + /** + * The person's place of birth. + */ + place_of_birth?: string; + /** + * The person's country of birth. Formatted as a SO 3166-1 alpha-2 country code. + */ + country_of_birth?: string; + /** + * The person's nationality. Formatted as a SO 3166-1 alpha-2 country code. + */ + nationality?: string; + /** + * The person's preferred language. Formatted as a ISO 639-1 language code plus a ISO 3166-1 alpha-2 country code, seperated by an underscore. + */ + language?: string; + /** + * The person's preferred region. Formatted as a ISO 639-1 language code plus a ISO 3166-1 alpha-2 country code, seperated by an underscore. + */ + region?: string; + /** + * The person's gender. Can be MALE, FEMALE or UNKNOWN. + */ + gender?: string; + /** + * The user's avatar. + */ + avatar?: IAvatar; + /** + * The version of the terms of service accepted by the user. + */ + version_terms_of_service?: string; + /** + * The user status. The user status. Can be: ACTIVE, BLOCKED, SIGNUP, RECOVERY, DENIED or ABORTED. + */ + status?: string; + /** + * The user sub-status. Can be: NONE, FACE_RESET, APPROVAL, APPROVAL_DIRECTOR, APPROVAL_PARENT, APPROVAL_SUPPORT, COUNTER_IBAN, IDEAL or SUBMIT. + */ + sub_status?: string; + /** + * The setting for the session timeout of the user in seconds. + */ + session_timeout?: number; + /** + * The amount the user can pay in the session without asking for credentials. + */ + daily_limit_without_confirmation_login?: IAmount; + /** + * The types of notifications that will result in a push notification or URL callback for this UserPerson. + */ + notification_filters?: Array; +} + +export interface IUserPerson { + /** + * The person's first name. + */ + first_name?: string; + /** + * The person's middle name. + */ + middle_name?: string; + /** + * The person's last name. + */ + last_name?: string; + /** + * The public nick name for the person. + */ + public_nick_name?: string; + /** + * The person's main address. + */ + address_main?: IAddress; + /** + * The person's postal address. + */ + address_postal?: IAddress; + /** + * The public UUID of the user's avatar. + */ + avatar_uuid: string; + /** + * The user's tax residence numbers for different countries. + */ + tax_resident?: Array; + /** + * The type of identification document the person registered with. + */ + document_type?: string; + /** + * The identification document number the person registered with. + */ + document_number?: string; + /** + * The country which issued the identification document the person registered with. + */ + document_country_of_issuance?: string; + /** + * The reference to the uploaded picture/scan of the front side of the identification document. + */ + document_front_attachment_id: number; + /** + * The reference to the uploaded picture/scan of the back side of the identification document. + */ + document_back_attachment_id?: number; + /** + * The person's date of birth. Accepts ISO8601 date formats. + */ + date_of_birth?: string; + /** + * The person's place of birth. + */ + place_of_birth?: string; + /** + * The person's country of birth. Formatted as a SO 3166-1 alpha-2 country code. + */ + country_of_birth?: string; + /** + * The person's nationality. Formatted as a SO 3166-1 alpha-2 country code. + */ + nationality?: string; + /** + * The person's preferred language. Formatted as a ISO 639-1 language code plus a ISO 3166-1 alpha-2 country code, seperated by an underscore. + */ + language?: string; + /** + * The person's preferred region. Formatted as a ISO 639-1 language code plus a ISO 3166-1 alpha-2 country code, seperated by an underscore. + */ + region?: string; + /** + * The person's gender. Can be MALE, FEMALE or UNKNOWN. + */ + gender?: string; + /** + * The user status. The user status. Can be: ACTIVE, BLOCKED, SIGNUP, RECOVERY, DENIED or ABORTED. + */ + status?: string; + /** + * The user sub-status. Can be: NONE, FACE_RESET, APPROVAL, APPROVAL_DIRECTOR, APPROVAL_PARENT, APPROVAL_SUPPORT, COUNTER_IBAN, IDEAL or SUBMIT. + */ + sub_status?: string; + /** + * The legal guardian of the user. Required for minors. + */ + legal_guardian_alias: IPointer; + /** + * The setting for the session timeout of the user in seconds. + */ + session_timeout?: number; + /** + * The amount the user can pay in the session without asking for credentials. + */ + daily_limit_without_confirmation_login?: IAmount; + /** + * The display name for the person. + */ + display_name?: string; + /** + * The id of the modified person object. + */ + id?: number; + /** + * The timestamp of the person object's creation. + */ + created?: string; + /** + * The timestamp of the person object's last update. + */ + updated?: string; + /** + * The person's public UUID. + */ + public_uuid?: string; + /** + * The person's legal name. + */ + legal_name?: string; + /** + * The aliases of the user. + */ + alias?: Array; + /** + * The user's avatar. + */ + avatar?: IAvatar; + /** + * The version of the terms of service accepted by the user. + */ + version_terms_of_service?: string; + /** + * The types of notifications that will result in a push notification or URL callback for this UserPerson. + */ + notification_filters?: Array; +} + +export interface IUserPaymentServiceProviderRead { + /** + * The id of the user. + */ + id?: number; + /** + * The timestamp of the user object's creation. + */ + created?: string; + /** + * The timestamp of the user object's last update. + */ + updated?: string; + /** + * The distinguished name from the certificate used to identify this user. + */ + certificate_distinguished_name?: string; + /** + * The aliases of the user. + */ + alias?: Array; + /** + * The user's avatar. + */ + avatar?: IAvatar; + /** + * The user status. The user status. Can be: ACTIVE, BLOCKED or DENIED. + */ + status?: string; + /** + * The user sub-status. Can be: NONE + */ + sub_status?: string; + /** + * The providers's public UUID. + */ + public_uuid?: string; + /** + * The display name for the provider. + */ + display_name?: string; + /** + * The public nick name for the provider. + */ + public_nick_name?: string; + /** + * The provider's language. Formatted as a ISO 639-1 language code plus a ISO 3166-1 alpha-2 country code, separated by an underscore. + */ + language?: string; + /** + * The provider's region. Formatted as a ISO 639-1 language code plus a ISO 3166-1 alpha-2 country code, separated by an underscore. + */ + region?: string; + /** + * The setting for the session timeout of the user in seconds. + */ + session_timeout?: number; +} + +export interface IUserPaymentServiceProvider { + /** + * The id of the user. + */ + id?: number; + /** + * The timestamp of the user object's creation. + */ + created?: string; + /** + * The timestamp of the user object's last update. + */ + updated?: string; + /** + * The distinguished name from the certificate used to identify this user. + */ + certificate_distinguished_name?: string; + /** + * The aliases of the user. + */ + alias?: Array; + /** + * The user's avatar. + */ + avatar?: IAvatar; + /** + * The user status. The user status. Can be: ACTIVE, BLOCKED or DENIED. + */ + status?: string; + /** + * The user sub-status. Can be: NONE + */ + sub_status?: string; + /** + * The providers's public UUID. + */ + public_uuid?: string; + /** + * The display name for the provider. + */ + display_name?: string; + /** + * The public nick name for the provider. + */ + public_nick_name?: string; + /** + * The provider's language. Formatted as a ISO 639-1 language code plus a ISO 3166-1 alpha-2 country code, separated by an underscore. + */ + language?: string; + /** + * The provider's region. Formatted as a ISO 639-1 language code plus a ISO 3166-1 alpha-2 country code, separated by an underscore. + */ + region?: string; + /** + * The setting for the session timeout of the user in seconds. + */ + session_timeout?: number; +} + +export interface IUserListing { + /** + * + */ + UserLight?: IUserLight; + /** + * + */ + UserPerson?: IUserPerson; + /** + * + */ + UserCompany?: IUserCompany; + /** + * + */ + UserApiKey?: IUserApiKey; + /** + * + */ + UserPaymentServiceProvider?: IUserPaymentServiceProvider; +} + +export interface IUserLight { + /** + * The user's first name. + */ + first_name?: string; + /** + * The user's middle name. + */ + middle_name?: string; + /** + * The user's last name. + */ + last_name?: string; + /** + * The public nick name for the user. + */ + public_nick_name?: string; + /** + * The user's main address. + */ + address_main?: IAddress; + /** + * The user's postal address. + */ + address_postal?: IAddress; + /** + * The public UUID of the user's avatar. + */ + avatar_uuid: string; + /** + * The user's social security number. + */ + social_security_number?: string; + /** + * The user's tax residence numbers for different countries. + */ + tax_resident?: Array; + /** + * The type of identification document the user registered with. + */ + document_type?: string; + /** + * The identification document number the user registered with. + */ + document_number?: string; + /** + * The country which issued the identification document the user registered with. + */ + document_country_of_issuance?: string; + /** + * The reference to the uploaded picture/scan of the front side of the identification document. + */ + document_front_attachment_id?: number; + /** + * The reference to the uploaded picture/scan of the back side of the identification document. + */ + document_back_attachment_id?: number; + /** + * The user's date of birth. Accepts ISO8601 date formats. + */ + date_of_birth?: string; + /** + * The user's place of birth. + */ + place_of_birth?: string; + /** + * The user's country of birth. Formatted as a SO 3166-1 alpha-2 country code. + */ + country_of_birth?: string; + /** + * The user's nationality. Formatted as a SO 3166-1 alpha-2 country code. + */ + nationality?: string; + /** + * The user's preferred language. Formatted as a ISO 639-1 language code plus a ISO 3166-1 alpha-2 country code, seperated by an underscore. + */ + language?: string; + /** + * The user's preferred region. Formatted as a ISO 639-1 language code plus a ISO 3166-1 alpha-2 country code, seperated by an underscore. + */ + region?: string; + /** + * The user's gender. Can be MALE, FEMALE or UNKNOWN. + */ + gender?: string; + /** + * The user status. The user status. Can be: ACTIVE, BLOCKED, SIGNUP, DENIED or ABORTED. + */ + status?: string; + /** + * The user sub-status. Can be: NONE, FACE_RESET, APPROVAL, APPROVAL_PARENT, AWAITING_PARENT, APPROVAL_SUPPORT, COUNTER_IBAN, IDEAL or SUBMIT. + */ + sub_status?: string; + /** + * The legal guardian of the user. Required for minors. + */ + legal_guardian_alias?: IPointer; + /** + * The setting for the session timeout of the user in seconds. + */ + session_timeout?: number; + /** + * The amount the user can pay in the session without asking for credentials. + */ + daily_limit_without_confirmation_login?: IAmount; + /** + * The id of the user. + */ + id?: number; + /** + * The timestamp of the user object's creation. + */ + created?: string; + /** + * The timestamp of the user object's last update. + */ + updated?: string; + /** + * The user's public UUID. + */ + public_uuid?: string; + /** + * The user's legal name. + */ + legal_name?: string; + /** + * The display name for the user. + */ + display_name?: string; + /** + * The aliases of the user. + */ + alias?: Array; + /** + * The user's avatar. + */ + avatar?: IAvatar; + /** + * The version of the terms of service accepted by the user. + */ + version_terms_of_service?: string; + /** + * The types of notifications that will result in a push notification or URL callback for this UserLight. + */ + notification_filters?: Array; + /** + * The user deny reason. + */ + deny_reason?: string; +} + +export interface IUserLegalNameListing { + /** + * All legal names that can be used by the user + */ + legal_names?: Array; +} + +export interface IUserCredentialPasswordIpRead { + /** + * The id of the credential. + */ + id?: number; + /** + * The timestamp of the credential object's creation. + */ + created?: string; + /** + * The timestamp of the credential object's last update. + */ + updated?: string; + /** + * The status of the credential. + */ + status?: string; + /** + * When the status is PENDING_FIRST_USE: when the credential expires. + */ + expiry_time?: string; + /** + * When the status is PENDING_FIRST_USE: the value of the token. + */ + token_value?: string; + /** + * When the status is ACTIVE: the details of the device that may use the credential. + */ + permitted_device?: IPermittedDevice; +} + +export interface IUserCredentialPasswordIpListing { + /** + * The id of the credential. + */ + id?: number; + /** + * The timestamp of the credential object's creation. + */ + created?: string; + /** + * The timestamp of the credential object's last update. + */ + updated?: string; + /** + * The status of the credential. + */ + status?: string; + /** + * When the status is PENDING_FIRST_USE: when the credential expires. + */ + expiry_time?: string; + /** + * When the status is PENDING_FIRST_USE: the value of the token. + */ + token_value?: string; + /** + * When the status is ACTIVE: the details of the device that may use the credential. + */ + permitted_device?: IPermittedDevice; +} + +export interface IUserCompanyUpdate { + /** + * The id of the modified company. + */ + id?: number; +} + +export interface IUserCompanyRead { + /** + * The id of the modified company. + */ + id?: number; + /** + * The timestamp of the company object's creation. + */ + created?: string; + /** + * The timestamp of the company object's last update. + */ + updated?: string; + /** + * The company's public UUID. + */ + public_uuid?: string; + /** + * The company name. + */ + name?: string; + /** + * The company's display name. + */ + display_name?: string; + /** + * The company's public nick name. + */ + public_nick_name?: string; + /** + * The aliases of the account. + */ + alias?: Array; + /** + * The company's chamber of commerce number. + */ + chamber_of_commerce_number?: string; + /** + * The company's legal form. + */ + legal_form?: string; + /** + * The type of business entity. + */ + type_of_business_entity?: string; + /** + * The sector of industry. + */ + sector_of_industry?: string; + /** + * The company's other bank account IBAN, through which we verify it. + */ + counter_bank_iban?: string; + /** + * The company's avatar. + */ + avatar?: IAvatar; + /** + * The company's main address. + */ + address_main?: IAddress; + /** + * The company's postal address. + */ + address_postal?: IAddress; + /** + * The version of the terms of service accepted by the user. + */ + version_terms_of_service?: string; + /** + * The existing bunq user alias for the company's director. + */ + director_alias?: ILabelUser; + /** + * The person's preferred language. Formatted as a ISO 639-1 language code plus a ISO 3166-1 alpha-2 country code, seperated by an underscore. + */ + language?: string; + /** + * The country as an ISO 3166-1 alpha-2 country code.. + */ + country?: string; + /** + * The person's preferred region. Formatted as a ISO 639-1 language code plus a ISO 3166-1 alpha-2 country code, seperated by an underscore. + */ + region?: string; + /** + * The names of the company's ultimate beneficiary owners. Minimum zero, maximum four. + */ + ubo?: Array; + /** + * The user status. Can be: ACTIVE, SIGNUP, RECOVERY. + */ + status?: string; + /** + * The user sub-status. Can be: NONE, FACE_RESET, APPROVAL, APPROVAL_DIRECTOR, APPROVAL_PARENT, APPROVAL_SUPPORT, COUNTER_IBAN, IDEAL or SUBMIT. + */ + sub_status?: string; + /** + * The setting for the session timeout of the company in seconds. + */ + session_timeout?: number; + /** + * The amount the company can pay in the session without asking for credentials. + */ + daily_limit_without_confirmation_login?: IAmount; + /** + * The types of notifications that will result in a push notification or URL callback for this UserCompany. + */ + notification_filters?: Array; + /** + * The customer profile of the company. + */ + customer?: ICustomer; + /** + * The customer limits of the company. + */ + customer_limit?: ICustomerLimit; + /** + * The subscription of the company. + */ + billing_contract?: Array; + /** + * The user deny reason. + */ + deny_reason?: string; +} + +export interface IUserCompanyNameListing { + /** + * All known (trade) names for a user company. + */ + name_array?: Array; +} + +export interface IUserCompany { + /** + * The company name. + */ + name?: string; + /** + * The company's public nick name. + */ + public_nick_name?: string; + /** + * The public UUID of the company's avatar. + */ + avatar_uuid?: string; + /** + * The company's main address. + */ + address_main?: IAddress; + /** + * The company's postal address. + */ + address_postal?: IAddress; + /** + * The person's preferred language. Formatted as a ISO 639-1 language code plus a ISO 3166-1 alpha-2 country code, seperated by an underscore. + */ + language?: string; + /** + * The person's preferred region. Formatted as a ISO 639-1 language code plus a ISO 3166-1 alpha-2 country code, seperated by an underscore. + */ + region?: string; + /** + * The country as an ISO 3166-1 alpha-2 country code.. + */ + country?: string; + /** + * The names of the company's ultimate beneficiary owners. Minimum zero, maximum four. + */ + ubo?: Array; + /** + * The company's chamber of commerce number. + */ + chamber_of_commerce_number?: string; + /** + * The company's legal form. + */ + legal_form?: string; + /** + * The user status. Can be: ACTIVE, SIGNUP, RECOVERY. + */ + status?: string; + /** + * The user sub-status. Can be: NONE, FACE_RESET, APPROVAL, APPROVAL_DIRECTOR, APPROVAL_PARENT, APPROVAL_SUPPORT, COUNTER_IBAN, IDEAL or SUBMIT. + */ + sub_status?: string; + /** + * The setting for the session timeout of the company in seconds. + */ + session_timeout?: number; + /** + * The amount the company can pay in the session without asking for credentials. + */ + daily_limit_without_confirmation_login?: IAmount; + /** + * The id of the modified company. + */ + id?: number; + /** + * The timestamp of the company object's creation. + */ + created?: string; + /** + * The timestamp of the company object's last update. + */ + updated?: string; + /** + * The company's public UUID. + */ + public_uuid?: string; + /** + * The company's display name. + */ + display_name?: string; + /** + * The aliases of the account. + */ + alias?: Array; + /** + * The type of business entity. + */ + type_of_business_entity?: string; + /** + * The sector of industry. + */ + sector_of_industry?: string; + /** + * The company's other bank account IBAN, through which we verify it. + */ + counter_bank_iban?: string; + /** + * The company's avatar. + */ + avatar?: IAvatar; + /** + * The version of the terms of service accepted by the user. + */ + version_terms_of_service?: string; + /** + * The existing bunq user alias for the company's director. + */ + director_alias?: ILabelUser; + /** + * The types of notifications that will result in a push notification or URL callback for this UserCompany. + */ + notification_filters?: Array; + /** + * The customer profile of the company. + */ + customer?: ICustomer; + /** + * The customer limits of the company. + */ + customer_limit?: ICustomerLimit; + /** + * The subscription of the company. + */ + billing_contract?: Array; + /** + * The user deny reason. + */ + deny_reason?: string; +} + +export interface IUserApiKeyAnchoredUser { + /** + * + */ + UserPerson?: IUserPerson; + /** + * + */ + UserCompany?: IUserCompany; + /** + * + */ + UserPaymentServiceProvider?: IUserPaymentServiceProvider; +} + +export interface IUserApiKey { + /** + * The id of the user. + */ + id?: number; + /** + * The timestamp of the user object's creation. + */ + created?: string; + /** + * The timestamp of the user object's last update. + */ + updated?: string; + /** + * The user who requested access. + */ + requested_by_user?: IUserApiKeyAnchoredUser; + /** + * The user who granted access. + */ + granted_by_user?: IUserApiKeyAnchoredUser; +} + +export interface IUbo { + /** + * The name of the ultimate beneficiary owner. + */ + name?: string; + /** + * The date of birth of the ultimate beneficiary owner. + */ + date_of_birth?: string; + /** + * The nationality of the ultimate beneficiary owner. + */ + nationality?: string; +} + +export interface ITreeProgressListing { + /** + * The number of trees this user and all users have planted. + */ + number_of_tree?: number; + /** + * The progress towards the next tree. + */ + progress_tree_next?: number; +} + +export interface ITransferwiseTransfer { + /** + * The id of the monetary account the payment should be made from. + */ + monetary_account_id: string; + /** + * The id of the target account. + */ + recipient_id: string; + /** + * The LabelMonetaryAccount containing the public information of 'this' (party) side of the Payment. + */ + alias?: ILabelMonetaryAccount; + /** + * The LabelMonetaryAccount containing the public information of the other (counterparty) side of the Payment. + */ + counterparty_alias?: ILabelMonetaryAccount; + /** + * The status. + */ + status?: string; + /** + * The subStatus. + */ + sub_status?: string; + /** + * The status as Transferwise reports it. + */ + status_transferwise?: string; + /** + * A status to indicatie if Transferwise has an issue with this payment and requires more information. + */ + status_transferwise_issue?: string; + /** + * The source amount. + */ + amount_source?: IAmount; + /** + * The target amount. + */ + amount_target?: IAmount; + /** + * The rate of the payment. + */ + rate?: string; + /** + * The reference of the payment. + */ + reference?: string; + /** + * The Pay-In reference of the payment. + */ + pay_in_reference?: string; + /** + * The estimated delivery time. + */ + time_delivery_estimate?: string; + /** + * The quote details used to created the payment. + */ + quote?: ITransferwiseQuote; +} + +export interface ITransferwiseQuote { + /** + * The source currency. + */ + currency_source: string; + /** + * The target currency. + */ + currency_target: string; + /** + * The source amount. + */ + amount_source?: IAmount; + /** + * The target amount. + */ + amount_target?: IAmount; + /** + * The id of the quote. + */ + id?: number; + /** + * The timestamp of the quote's creation. + */ + created?: string; + /** + * The timestamp of the quote's last update. + */ + updated?: string; + /** + * The expiration timestamp of the quote. + */ + time_expiry?: string; + /** + * The quote id Transferwise needs. + */ + quote_id?: string; + /** + * The fee amount. + */ + amount_fee?: IAmount; + /** + * The rate. + */ + rate?: string; + /** + * The estimated delivery time. + */ + time_delivery_estimate?: string; +} + +export interface ITokenQrRequestSofortCreate { + /** + * The id of the created item + */ + Id?: BunqId; +} + +export interface ITokenQrRequestSofort { + /** + * The token passed from a site or read from a QR code. + */ + token: string; +} + +export interface ITokenQrRequestIdealCreate { + /** + * The id of the RequestResponse. + */ + id?: number; + /** + * The timestamp of when the RequestResponse was responded to. + */ + time_responded?: string; + /** + * The timestamp of when the RequestResponse expired or will expire. + */ + time_expiry?: string; + /** + * The id of the MonetaryAccount the RequestResponse was received on. + */ + monetary_account_id?: number; + /** + * The requested Amount. + */ + amount_inquired?: IAmount; + /** + * The Amount the RequestResponse was accepted with. + */ + amount_responded?: IAmount; + /** + * The LabelMonetaryAccount with the public information of the MonetaryAccount this RequestResponse was received on. + */ + alias?: ILabelMonetaryAccount; + /** + * The LabelMonetaryAccount with the public information of the MonetaryAccount that is requesting money with this RequestResponse. + */ + counterparty_alias?: ILabelMonetaryAccount; + /** + * The description for the RequestResponse provided by the requesting party. Maximum 9000 characters. + */ + description?: string; + /** + * The Attachments attached to the RequestResponse. + */ + attachment?: Array; + /** + * The status of the created RequestResponse. Can only be PENDING. + */ + status?: string; + /** + * The minimum age the user accepting the RequestResponse must have. + */ + minimum_age?: number; + /** + * Whether or not an address must be provided on accept. + */ + require_address?: string; + /** + * The shipping address provided by the accepting user if an address was requested. + */ + address_shipping?: IAddress; + /** + * The billing address provided by the accepting user if an address was requested. + */ + address_billing?: IAddress; + /** + * The Geolocation where the RequestResponse was created. + */ + geolocation?: IGeolocation; + /** + * The URL which the user is sent to after accepting or rejecting the Request. + */ + redirect_url?: string; + /** + * The type of the RequestResponse. Can be only be IDEAL. + */ + type?: string; + /** + * The subtype of the RequestResponse. Can be only be NONE. + */ + sub_type?: string; + /** + * Whether or not chat messages are allowed. + */ + allow_chat?: boolean; + /** + * The whitelist id for this action or null. + */ + eligible_whitelist_id?: number; +} + +export interface ITokenQrRequestIdeal { + /** + * The token passed from a site or read from a QR code. + */ + token: string; +} + +export interface ITaxResident { + /** + * The country of the tax number. + */ + country?: string; + /** + * The tax number. + */ + tax_number?: string; + /** + * The status of the tax number. Either CONFIRMED or UNCONFIRMED. + */ + status?: string; +} + +export interface ITabVisibility { + /** + * When true the tab will be linked to the ACTIVE cash registers QR code. + */ + cash_register_qr_code?: boolean; + /** + * When true the tab will be visible through its own QR code. Use ../tab/{tab-id}/qr-code-content to get the raw content of this QR code + */ + tab_qr_code?: boolean; + /** + * The location of the Tab in NearPay. + */ + location?: IGeolocation; +} + +export interface ITabUsageSingleUpdate { + /** + * The uuid of the modified TabUsageSingle. + */ + uuid?: string; +} + +export interface ITabUsageSingleRead { + /** + * The uuid of the created TabUsageSingle. + */ + uuid?: string; + /** + * The timestamp of the Tab's creation. + */ + created?: string; + /** + * The timestamp of the Tab's last update. + */ + updated?: string; + /** + * The merchant reference of the Tab, as defined by the owner. + */ + merchant_reference?: string; + /** + * The description of the TabUsageMultiple. Maximum 9000 characters. + */ + description?: string; + /** + * The status of the Tab. Can be OPEN, WAITING_FOR_PAYMENT, PAID or CANCELED. + */ + status?: string; + /** + * The total amount of the Tab. + */ + amount_total?: IAmount; + /** + * The amount that has been paid for this Tab. + */ + amount_paid?: IAmount; + /** + * The token used to redirect mobile devices directly to the bunq app. Because they can't scan a QR code. + */ + qr_code_token?: string; + /** + * The URL redirecting user to the tab payment in the bunq app. Only works on mobile devices. + */ + tab_url?: string; + /** + * The visibility of a Tab. A Tab can be visible trough NearPay, the QR code of the CashRegister and its own QR code. + */ + visibility?: ITabVisibility; + /** + * The minimum age of the user paying the Tab. + */ + minimum_age?: boolean; + /** + * Whether or not an billing and shipping address must be provided when paying the Tab. + */ + require_address?: string; + /** + * The URL which the user is sent to after paying the Tab. + */ + redirect_url?: string; + /** + * The moment when this Tab expires. + */ + expiration?: string; + /** + * The alias of the party that owns this tab. + */ + alias?: ILabelMonetaryAccount; + /** + * The location of the cash register that created this tab. + */ + cash_register_location?: IGeolocation; + /** + * The tab items of this tab. + */ + tab_item?: Array; + /** + * An array of attachments that describe the tab. Uploaded through the POST /user/{userid}/attachment-tab endpoint. + */ + tab_attachment?: Array; +} + +export interface ITabUsageSingleListing { + /** + * The uuid of the created TabUsageSingle. + */ + uuid?: string; + /** + * The timestamp of the Tab's creation. + */ + created?: string; + /** + * The timestamp of the Tab's last update. + */ + updated?: string; + /** + * The merchant reference of the Tab, as defined by the owner. + */ + merchant_reference?: string; + /** + * The description of the TabUsageMultiple. Maximum 9000 characters. + */ + description?: string; + /** + * The status of the Tab. Can be OPEN, WAITING_FOR_PAYMENT, PAID or CANCELED. + */ + status?: string; + /** + * The total amount of the Tab. + */ + amount_total?: IAmount; + /** + * The amount that has been paid for this Tab. + */ + amount_paid?: IAmount; + /** + * The token used to redirect mobile devices directly to the bunq app. Because they can't scan a QR code. + */ + qr_code_token?: string; + /** + * The URL redirecting user to the tab payment in the bunq app. Only works on mobile devices. + */ + tab_url?: string; + /** + * The visibility of a Tab. A Tab can be visible trough NearPay, the QR code of the CashRegister and its own QR code. + */ + visibility?: ITabVisibility; + /** + * The minimum age of the user paying the Tab. + */ + minimum_age?: boolean; + /** + * Whether or not an billing and shipping address must be provided when paying the Tab. + */ + require_address?: string; + /** + * The URL which the user is sent to after paying the Tab. + */ + redirect_url?: string; + /** + * The moment when this Tab expires. + */ + expiration?: string; + /** + * The alias of the party that owns this tab. + */ + alias?: ILabelMonetaryAccount; + /** + * The location of the cash register that created this tab. + */ + cash_register_location?: IGeolocation; + /** + * The tab items of this tab. + */ + tab_item?: Array; + /** + * An array of attachments that describe the tab. Uploaded through the POST /user/{userid}/attachment-tab endpoint. + */ + tab_attachment?: Array; +} + +export interface ITabUsageSingleDelete {} + +export interface ITabUsageSingleCreate { + /** + * The uuid of the created TabUsageSingle. + */ + uuid?: string; +} + +export interface ITabUsageSingle { + /** + * The merchant reference of the Tab, as defined by the owner. + */ + merchant_reference?: string; + /** + * The description of the TabUsageMultiple. Maximum 9000 characters. + */ + description?: string; + /** + * The status of the Tab. Can be OPEN, WAITING_FOR_PAYMENT, PAID or CANCELED. + */ + status?: string; + /** + * The total amount of the Tab. + */ + amount_total?: IAmount; + /** + * [DEPRECATED] Whether or not a higher amount can be paid. + */ + allow_amount_higher?: boolean; + /** + * [DEPRECATED] Whether or not a lower amount can be paid. + */ + allow_amount_lower?: boolean; + /** + * [DEPRECATED] Whether or not the user paying the Tab should be asked if he wants to give a tip. When want_tip is set to true, allow_amount_higher must also be set to true and allow_amount_lower must be false. + */ + want_tip?: boolean; + /** + * The minimum age of the user paying the Tab. + */ + minimum_age?: boolean; + /** + * Whether or not an billing and shipping address must be provided when paying the Tab. + */ + require_address?: string; + /** + * The URL which the user is sent to after paying the Tab. + */ + redirect_url?: string; + /** + * The visibility of a Tab. A Tab can be visible trough NearPay, the QR code of the CashRegister and its own QR code. + */ + visibility?: ITabVisibility; + /** + * The moment when this Tab expires. + */ + expiration?: string; + /** + * An array of attachments that describe the tab. Uploaded through the POST /user/{userid}/attachment-tab endpoint. + */ + tab_attachment?: Array; + /** + * The uuid of the created TabUsageSingle. + */ + uuid?: string; + /** + * The timestamp of the Tab's creation. + */ + created?: string; + /** + * The timestamp of the Tab's last update. + */ + updated?: string; + /** + * The amount that has been paid for this Tab. + */ + amount_paid?: IAmount; + /** + * The token used to redirect mobile devices directly to the bunq app. Because they can't scan a QR code. + */ + qr_code_token?: string; + /** + * The URL redirecting user to the tab payment in the bunq app. Only works on mobile devices. + */ + tab_url?: string; + /** + * The alias of the party that owns this tab. + */ + alias?: ILabelMonetaryAccount; + /** + * The location of the cash register that created this tab. + */ + cash_register_location?: IGeolocation; + /** + * The tab items of this tab. + */ + tab_item?: Array; +} + +export interface ITabUsageMultipleUpdate { + /** + * The uuid of the modified TabUsageMultiple. + */ + uuid?: string; +} + +export interface ITabUsageMultipleRead { + /** + * The uuid of the created TabUsageMultiple. + */ + uuid?: string; + /** + * The timestamp of the Tab's creation. + */ + created?: string; + /** + * The timestamp of the Tab's last update. + */ + updated?: string; + /** + * The description of the TabUsageMultiple. Maximum 9000 characters. + */ + description?: string; + /** + * The status of the Tab. Can be OPEN, PAYABLE or CLOSED. + */ + status?: string; + /** + * The total amount of the Tab. + */ + amount_total?: IAmount; + /** + * The token used to redirect mobile devices directly to the bunq app. Because they can't scan a QR code. + */ + qr_code_token?: string; + /** + * The URL redirecting user to the tab payment in the bunq app. Only works on mobile devices. + */ + tab_url?: string; + /** + * The visibility of a Tab. A Tab can be visible trough NearPay, the QR code of the CashRegister and its own QR code. + */ + visibility?: ITabVisibility; + /** + * The minimum age of the user paying the Tab. + */ + minimum_age?: boolean; + /** + * Whether or not an billing and shipping address must be provided when paying the Tab. + */ + require_address?: string; + /** + * The URL which the user is sent to after paying the Tab. + */ + redirect_url?: string; + /** + * The moment when this Tab expires. + */ + expiration?: string; + /** + * The alias of the party that owns this tab. + */ + alias?: ILabelMonetaryAccount; + /** + * The location of the cash register that created this tab. + */ + cash_register_location?: IGeolocation; + /** + * The tab items of this tab. + */ + tab_item?: Array; + /** + * An array of attachments that describe the tab. Viewable through the GET /tab/{tabid}/attachment/{attachmentid}/content endpoint. + */ + tab_attachment?: Array; +} + +export interface ITabUsageMultipleListing { + /** + * The uuid of the created TabUsageMultiple. + */ + uuid?: string; + /** + * The timestamp of the Tab's creation. + */ + created?: string; + /** + * The timestamp of the Tab's last update. + */ + updated?: string; + /** + * The description of the TabUsageMultiple. Maximum 9000 characters. + */ + description?: string; + /** + * The status of the Tab. Can be OPEN, PAYABLE or CLOSED. + */ + status?: string; + /** + * The total amount of the Tab. + */ + amount_total?: IAmount; + /** + * The token used to redirect mobile devices directly to the bunq app. Because they can't scan a QR code. + */ + qr_code_token?: string; + /** + * The URL redirecting user to the tab payment in the bunq app. Only works on mobile devices. + */ + tab_url?: string; + /** + * The visibility of a Tab. A Tab can be visible trough NearPay, the QR code of the CashRegister and its own QR code. + */ + visibility?: ITabVisibility; + /** + * The minimum age of the user paying the Tab. + */ + minimum_age?: boolean; + /** + * Whether or not an billing and shipping address must be provided when paying the Tab. + */ + require_address?: string; + /** + * The URL which the user is sent to after paying the Tab. + */ + redirect_url?: string; + /** + * The moment when this Tab expires. + */ + expiration?: string; + /** + * The alias of the party that owns this tab. + */ + alias?: ILabelMonetaryAccount; + /** + * The location of the cash register that created this tab. + */ + cash_register_location?: IGeolocation; + /** + * The tab items of this tab. + */ + tab_item?: Array; + /** + * An array of attachments that describe the tab. Viewable through the GET /tab/{tabid}/attachment/{attachmentid}/content endpoint. + */ + tab_attachment?: Array; +} + +export interface ITabUsageMultipleDelete {} + +export interface ITabUsageMultipleCreate { + /** + * The uuid of the created TabUsageMultiple. + */ + uuid?: string; +} + +export interface ITabUsageMultiple { + /** + * The description of the TabUsageMultiple. Maximum 9000 characters. + */ + description?: string; + /** + * The status of the Tab. Can be OPEN, PAYABLE or CLOSED. + */ + status?: string; + /** + * The total amount of the Tab. + */ + amount_total?: IAmount; + /** + * [DEPRECATED] Whether or not a higher amount can be paid. + */ + allow_amount_higher?: boolean; + /** + * [DEPRECATED] Whether or not a lower amount can be paid. + */ + allow_amount_lower?: boolean; + /** + * [DEPRECATED] Whether or not the user paying the Tab should be asked if he wants to give a tip. When want_tip is set to true, allow_amount_higher must also be set to true and allow_amount_lower must be false. + */ + want_tip?: boolean; + /** + * The minimum age of the user paying the Tab. + */ + minimum_age?: boolean; + /** + * Whether or not an billing and shipping address must be provided when paying the Tab. + */ + require_address?: string; + /** + * The URL which the user is sent to after paying the Tab. + */ + redirect_url?: string; + /** + * The visibility of a Tab. A Tab can be visible trough NearPay, the QR code of the CashRegister and its own QR code. + */ + visibility?: ITabVisibility; + /** + * The moment when this Tab expires. + */ + expiration?: string; + /** + * An array of attachments that describe the tab. Viewable through the GET /tab/{tabid}/attachment/{attachmentid}/content endpoint. + */ + tab_attachment?: Array; + /** + * The uuid of the created TabUsageMultiple. + */ + uuid?: string; + /** + * The timestamp of the Tab's creation. + */ + created?: string; + /** + * The timestamp of the Tab's last update. + */ + updated?: string; + /** + * The token used to redirect mobile devices directly to the bunq app. Because they can't scan a QR code. + */ + qr_code_token?: string; + /** + * The URL redirecting user to the tab payment in the bunq app. Only works on mobile devices. + */ + tab_url?: string; + /** + * The alias of the party that owns this tab. + */ + alias?: ILabelMonetaryAccount; + /** + * The location of the cash register that created this tab. + */ + cash_register_location?: IGeolocation; + /** + * The tab items of this tab. + */ + tab_item?: Array; +} + +export interface ITabTextWaitingScreen { + /** + * Language of tab text + */ + language?: string; + /** + * Tab text + */ + description?: string; +} + +export interface ITabResultResponseRead { + /** + * The Tab details. + */ + tab?: ITab; + /** + * The payment made for the Tab. + */ + payment?: IPayment; + /** + * The reference to the object used for split the bill. Can be RequestInquiry or RequestInquiryBatch + */ + request_reference_split_the_bill?: Array; +} + +export interface ITabResultResponseListing { + /** + * The Tab details. + */ + tab?: ITab; + /** + * The payment made for the Tab. + */ + payment?: IPayment; + /** + * The reference to the object used for split the bill. Can be RequestInquiry or RequestInquiryBatch + */ + request_reference_split_the_bill?: Array; +} + +export interface ITabResultResponse { + /** + * The Tab details. + */ + tab?: ITab; + /** + * The payment made for the Tab. + */ + payment?: IPayment; + /** + * The reference to the object used for split the bill. Can be RequestInquiry or RequestInquiryBatch + */ + request_reference_split_the_bill?: Array; +} + +export interface ITabResultInquiryRead { + /** + * The Tab details. + */ + tab?: ITab; + /** + * The payment made for the Tab. + */ + payment?: IPayment; +} + +export interface ITabResultInquiryListing { + /** + * The Tab details. + */ + tab?: ITab; + /** + * The payment made for the Tab. + */ + payment?: IPayment; +} + +export interface ITabResultInquiry { + /** + * The Tab details. + */ + tab?: ITab; + /** + * The payment made for the Tab. + */ + payment?: IPayment; +} + +export interface ITabRead { + /** + * + */ + TabUsageSingle?: ITabUsageSingle; + /** + * + */ + TabUsageMultiple?: ITabUsageMultiple; +} + +export interface ITabQrCodeContentListing {} + +export interface ITabListing { + /** + * + */ + TabUsageSingle?: ITabUsageSingle; + /** + * + */ + TabUsageMultiple?: ITabUsageMultiple; +} + +export interface ITabItemShopUpdate { + /** + * The id of the modified TabItem. + */ + id?: number; +} + +export interface ITabItemShopRead { + /** + * The id of the created TabItem. + */ + id?: number; + /** + * The TabItem's brief description. + */ + description?: string; + /** + * The TabItem's EAN code. + */ + ean_code?: string; + /** + * A struct with an AttachmentPublic UUID that used as an avatar for the TabItem. + */ + avatar_attachment?: IAttachmentPublic; + /** + * A list of AttachmentTab attached to the TabItem. + */ + tab_attachment?: Array; + /** + * The quantity of the TabItem. + */ + quantity?: number; + /** + * The money amount of the TabItem. + */ + amount?: IAmount; +} + +export interface ITabItemShopListing { + /** + * The id of the created TabItem. + */ + id?: number; + /** + * The TabItem's brief description. + */ + description?: string; + /** + * The TabItem's EAN code. + */ + ean_code?: string; + /** + * A struct with an AttachmentPublic UUID that used as an avatar for the TabItem. + */ + avatar_attachment?: IAttachmentPublic; + /** + * A list of AttachmentTab attached to the TabItem. + */ + tab_attachment?: Array; + /** + * The quantity of the TabItem. + */ + quantity?: number; + /** + * The money amount of the TabItem. + */ + amount?: IAmount; +} + +export interface ITabItemShopDelete {} + +export interface ITabItemShopCreate { + /** + * The id of the created TabItem. + */ + id?: number; +} + +export interface ITabItemShopBatchCreate { + /** + * The id of the created item + */ + Id?: BunqId; +} + +export interface ITabItemShopBatch { + /** + * The list of tab items we want to create in a single batch. Limited to 50 items per batch. + */ + tab_items: Array; +} + +export interface ITabItemShop { + /** + * The TabItem's brief description. + */ + description?: string; + /** + * The TabItem's EAN code. + */ + ean_code?: string; + /** + * An AttachmentPublic UUID that used as an avatar for the TabItem. + */ + avatar_attachment_uuid?: string; + /** + * A list of AttachmentTab attached to the TabItem. + */ + tab_attachment?: Array; + /** + * The quantity of the TabItem. + */ + quantity?: number; + /** + * The money amount of the TabItem. + */ + amount?: IAmount; + /** + * The id of the created TabItem. + */ + id?: number; + /** + * A struct with an AttachmentPublic UUID that used as an avatar for the TabItem. + */ + avatar_attachment?: IAttachmentPublic; +} + +export interface ITabItem { + /** + * The id of the tab item. + */ + id?: number; + /** + * The item's brief description. + */ + description?: string; + /** + * The item's EAN code. + */ + ean_code?: string; + /** + * A struct with an AttachmentPublic UUID that used as an avatar for the TabItem. + */ + avatar_attachment?: IAttachmentPublic; + /** + * A list of AttachmentTab attached to the TabItem. + */ + tab_attachment?: Array; + /** + * The quantity of the item. Formatted as a number containing up to 15 digits, up to 15 decimals and using a dot. + */ + quantity?: string; + /** + * The money amount of the item. + */ + amount?: IAmount; +} + +export interface ITabAttachmentTabRead { + /** + * The id of the attachment. + */ + id?: number; + /** + * The timestamp of the attachment's creation. + */ + created?: string; + /** + * The timestamp of the attachment's last update. + */ + updated?: string; + /** + * The attachment. + */ + attachment?: IAttachment; +} + +export interface ITabAttachmentTabContentListing {} + +export interface ITab { + /** + * + */ + TabUsageSingle?: ITabUsageSingle; + /** + * + */ + TabUsageMultiple?: ITabUsageMultiple; +} + +export interface ISofortMerchantTransactionRead { + /** + * The id of the monetary account this sofort merchant transaction links to. + */ + monetary_account_id?: number; + /** + * The alias of the monetary account to add money to. + */ + alias?: ILabelMonetaryAccount; + /** + * The alias of the monetary account the money comes from. + */ + counterparty_alias?: ILabelMonetaryAccount; + /** + * In case of a successful transaction, the amount of money that will be transferred. + */ + amount_guaranteed?: IAmount; + /** + * The requested amount of money to add. + */ + amount_requested?: IAmount; + /** + * The BIC of the issuer. + */ + issuer?: string; + /** + * The URL to visit to + */ + issuer_authentication_url?: string; + /** + * The status of the transaction. + */ + status?: string; + /** + * The error message of the transaction. + */ + error_message?: Array; + /** + * The 'transaction ID' of the Sofort transaction. + */ + transaction_identifier?: string; +} + +export interface ISofortMerchantTransactionListing { + /** + * The id of the monetary account this sofort merchant transaction links to. + */ + monetary_account_id?: number; + /** + * The alias of the monetary account to add money to. + */ + alias?: ILabelMonetaryAccount; + /** + * The alias of the monetary account the money comes from. + */ + counterparty_alias?: ILabelMonetaryAccount; + /** + * In case of a successful transaction, the amount of money that will be transferred. + */ + amount_guaranteed?: IAmount; + /** + * The requested amount of money to add. + */ + amount_requested?: IAmount; + /** + * The BIC of the issuer. + */ + issuer?: string; + /** + * The URL to visit to + */ + issuer_authentication_url?: string; + /** + * The status of the transaction. + */ + status?: string; + /** + * The error message of the transaction. + */ + error_message?: Array; + /** + * The 'transaction ID' of the Sofort transaction. + */ + transaction_identifier?: string; +} + +export interface ISofortMerchantTransaction { + /** + * The requested amount of money to add. + */ + amount_requested?: IAmount; + /** + * The BIC of the issuer. + */ + issuer?: string; + /** + * The id of the monetary account this sofort merchant transaction links to. + */ + monetary_account_id?: number; + /** + * The alias of the monetary account to add money to. + */ + alias?: ILabelMonetaryAccount; + /** + * The alias of the monetary account the money comes from. + */ + counterparty_alias?: ILabelMonetaryAccount; + /** + * In case of a successful transaction, the amount of money that will be transferred. + */ + amount_guaranteed?: IAmount; + /** + * The URL to visit to + */ + issuer_authentication_url?: string; + /** + * The status of the transaction. + */ + status?: string; + /** + * The error message of the transaction. + */ + error_message?: Array; + /** + * The 'transaction ID' of the Sofort transaction. + */ + transaction_identifier?: string; +} + +export interface IShareInviteMonetaryAccountResponseUpdate { + /** + * The id of the created item + */ + Id?: BunqId; +} + +export interface IShareInviteMonetaryAccountResponseRead { + /** + * The id of the ShareInviteMonetaryAccountResponse. + */ + id?: number; + /** + * The timestamp of the ShareInviteMonetaryAccountResponse creation. + */ + created?: string; + /** + * The timestamp of the ShareInviteMonetaryAccountResponse last update. + */ + updated?: string; + /** + * The monetary account and user who created the share. + */ + counter_alias?: ILabelMonetaryAccount; + /** + * The user who cancelled the share if it has been revoked or rejected. + */ + user_alias_cancelled?: ILabelUser; + /** + * The id of the monetary account the ACCEPTED share applies to. null otherwise. + */ + monetary_account_id?: number; + /** + * The id of the draft share invite bank. + */ + draft_share_invite_bank_id?: number; + /** + * The share details. + */ + share_detail?: IShareDetail; + /** + * 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) + */ + status?: string; + /** + * The share type, either STANDARD or MUTUAL. + */ + share_type?: string; + /** + * The start date of this share. + */ + start_date?: string; + /** + * The expiration date of this share. + */ + end_date?: string; + /** + * The description of this share. It is basically the monetary account description. + */ + description?: string; +} + +export interface IShareInviteMonetaryAccountResponseListing { + /** + * The id of the ShareInviteMonetaryAccountResponse. + */ + id?: number; + /** + * The timestamp of the ShareInviteMonetaryAccountResponse creation. + */ + created?: string; + /** + * The timestamp of the ShareInviteMonetaryAccountResponse last update. + */ + updated?: string; + /** + * The monetary account and user who created the share. + */ + counter_alias?: ILabelMonetaryAccount; + /** + * The user who cancelled the share if it has been revoked or rejected. + */ + user_alias_cancelled?: ILabelUser; + /** + * The id of the monetary account the ACCEPTED share applies to. null otherwise. + */ + monetary_account_id?: number; + /** + * The id of the draft share invite bank. + */ + draft_share_invite_bank_id?: number; + /** + * The share details. + */ + share_detail?: IShareDetail; + /** + * 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) + */ + status?: string; + /** + * The share type, either STANDARD or MUTUAL. + */ + share_type?: string; + /** + * The start date of this share. + */ + start_date?: string; + /** + * The expiration date of this share. + */ + end_date?: string; + /** + * The description of this share. It is basically the monetary account description. + */ + description?: string; +} + +export interface IShareInviteMonetaryAccountResponse { + /** + * 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) + */ + status?: string; + /** + * The card to link to the shared monetary account. Used only if share_detail is ShareDetailCardPayment. + */ + card_id?: number; + /** + * The id of the ShareInviteMonetaryAccountResponse. + */ + id?: number; + /** + * The timestamp of the ShareInviteMonetaryAccountResponse creation. + */ + created?: string; + /** + * The timestamp of the ShareInviteMonetaryAccountResponse last update. + */ + updated?: string; + /** + * The monetary account and user who created the share. + */ + counter_alias?: ILabelMonetaryAccount; + /** + * The user who cancelled the share if it has been revoked or rejected. + */ + user_alias_cancelled?: ILabelUser; + /** + * The id of the monetary account the ACCEPTED share applies to. null otherwise. + */ + monetary_account_id?: number; + /** + * The id of the draft share invite bank. + */ + draft_share_invite_bank_id?: number; + /** + * The share details. + */ + share_detail?: IShareDetail; + /** + * The share type, either STANDARD or MUTUAL. + */ + share_type?: string; + /** + * The start date of this share. + */ + start_date?: string; + /** + * The expiration date of this share. + */ + end_date?: string; + /** + * The description of this share. It is basically the monetary account description. + */ + description?: string; +} + +export interface IShareInviteMonetaryAccountInquiryUpdate { + /** + * The id of the created item + */ + Id?: BunqId; +} + +export interface IShareInviteMonetaryAccountInquiryRead { + /** + * The label of the monetary account that's being shared. + */ + alias?: ILabelMonetaryAccount; + /** + * The user who created the share. + */ + user_alias_created?: ILabelUser; + /** + * The user who revoked the share. + */ + user_alias_revoked?: ILabelUser; + /** + * The label of the user to share with. + */ + counter_user_alias?: ILabelUser; + /** + * The id of the monetary account the share applies to. + */ + monetary_account_id?: number; + /** + * The id of the draft share invite bank. + */ + draft_share_invite_bank_id?: number; + /** + * The share details. Only one of these objects is returned. + */ + share_detail?: IShareDetail; + /** + * 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) + */ + status?: string; + /** + * The share type, either STANDARD or MUTUAL. + */ + share_type?: string; + /** + * The start date of this share. + */ + start_date?: string; + /** + * The expiration date of this share. + */ + end_date?: string; + /** + * The id of the newly created share invite. + */ + id?: number; +} + +export interface IShareInviteMonetaryAccountInquiryListing { + /** + * The label of the monetary account that's being shared. + */ + alias?: ILabelMonetaryAccount; + /** + * The user who created the share. + */ + user_alias_created?: ILabelUser; + /** + * The user who revoked the share. + */ + user_alias_revoked?: ILabelUser; + /** + * The label of the user to share with. + */ + counter_user_alias?: ILabelUser; + /** + * The id of the monetary account the share applies to. + */ + monetary_account_id?: number; + /** + * The id of the draft share invite bank. + */ + draft_share_invite_bank_id?: number; + /** + * The share details. Only one of these objects is returned. + */ + share_detail?: IShareDetail; + /** + * 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) + */ + status?: string; + /** + * The share type, either STANDARD or MUTUAL. + */ + share_type?: string; + /** + * The start date of this share. + */ + start_date?: string; + /** + * The expiration date of this share. + */ + end_date?: string; + /** + * The id of the newly created share invite. + */ + id?: number; +} + +export interface IShareInviteMonetaryAccountInquiryCreate { + /** + * The id of the newly created share invite. + */ + id?: number; +} + +export interface IShareInviteMonetaryAccountInquiryBatch { + /** + * The list of share invite bank inquiries that were made. + */ + share_invite_bank_inquiries?: Array; + /** + * The LabelMonetaryAccount containing the public information of this share invite inquiry batch. + */ + alias?: ILabelMonetaryAccount; +} + +export interface IShareInviteMonetaryAccountInquiry { + /** + * The label of the user to share with. + */ + counter_user_alias?: ILabelUser; + /** + * The id of the draft share invite bank. + */ + draft_share_invite_bank_id?: number; + /** + * The share details. Only one of these objects is returned. + */ + share_detail?: IShareDetail; + /** + * 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) + */ + status?: string; + /** + * The share type, either STANDARD or MUTUAL. + */ + share_type?: string; + /** + * The start date of this share. + */ + start_date?: string; + /** + * The expiration date of this share. + */ + end_date?: string; + /** + * The label of the monetary account that's being shared. + */ + alias?: ILabelMonetaryAccount; + /** + * The user who created the share. + */ + user_alias_created?: ILabelUser; + /** + * The user who revoked the share. + */ + user_alias_revoked?: ILabelUser; + /** + * The id of the monetary account the share applies to. + */ + monetary_account_id?: number; + /** + * The id of the newly created share invite. + */ + id?: number; +} + +export interface IShareInviteMonetaryAccountAmountUsedDelete {} + +export interface IShareDetailReadOnly { + /** + * If set to true, the invited user will be able to view the account balance. + */ + view_balance?: boolean; + /** + * If set to true, the invited user will be able to view events from before the share was active. + */ + view_old_events?: boolean; + /** + * If set to true, the invited user will be able to view events starting from the time the share became active. + */ + view_new_events?: boolean; +} + +export interface IShareDetailPayment { + /** + * If set to true, the invited user will be able to make payments from the shared account. + */ + make_payments?: boolean; + /** + * If set to true, the invited user will be able to make draft payments from the shared account. + */ + make_draft_payments?: boolean; + /** + * If set to true, the invited user will be able to view the account balance. + */ + view_balance?: boolean; + /** + * If set to true, the invited user will be able to view events from before the share was active. + */ + view_old_events?: boolean; + /** + * If set to true, the invited user will be able to view events starting from the time the share became active. + */ + view_new_events?: boolean; + /** + * The budget restriction. + */ + budget?: IBudgetRestriction; +} + +export interface IShareDetailDraftPayment { + /** + * If set to true, the invited user will be able to make draft payments from the shared account. + */ + make_draft_payments?: boolean; + /** + * If set to true, the invited user will be able to view the account balance. + */ + view_balance?: boolean; + /** + * If set to true, the invited user will be able to view events from before the share was active. + */ + view_old_events?: boolean; + /** + * If set to true, the invited user will be able to view events starting from the time the share became active. + */ + view_new_events?: boolean; +} + +export interface IShareDetail { + /** + * The share details for a payment share. In the response 'payment' is replaced by 'ShareDetailPayment'. + */ + payment?: IShareDetailPayment; + /** + * The share details for viewing a share. In the response 'read_only' is replaced by 'ShareDetailReadOnly'. + */ + read_only?: IShareDetailReadOnly; + /** + * The share details for a draft payment share. In the response 'draft_payment' is replaced by 'ShareDetailDraftPayment'. + */ + draft_payment?: IShareDetailDraftPayment; +} + +export interface ISessionServerToken { + /** + * The id of the Token. + */ + id?: number; + /** + * The Session token is the token the client has to provide in the "X-Bunq-Client-Authentication" header for each API call that requires a Session (only the creation of a Installation and DeviceServer don't require a Session). + */ + token?: string; +} + +export interface ISessionServerCreate { + /** + * The Id object of the created Session. + */ + Id?: BunqId; + /** + * The token object of this Session. + */ + Token?: ISessionServerToken; + /** + * The UserCompany object that is logged in with this Session. + */ + UserCompany?: IUserCompany; + /** + * The UserPerson object that is logged in with this Session. + */ + UserPerson?: IUserPerson; + /** + * The UserApiKey object that is logged in with this Session. + */ + UserApiKey?: IUserApiKey; + /** + * The UserPaymentServiceProvider object that is logged in with this Session. + */ + UserPaymentServiceProvider?: IUserPaymentServiceProvider; +} + +export interface ISessionServer { + /** + * The API key of the user you want to login. If your API key has not been used before, it will be bound to the ip address of this DeviceServer. + */ + secret: string; +} + +export interface ISessionDelete {} + +export interface IScheduleUserListing {} + +export interface IScheduleRead { + /** + * The schedule start time (UTC). + */ + time_start?: string; + /** + * The schedule end time (UTC). + */ + time_end?: string; + /** + * The schedule recurrence unit, options: ONCE, HOURLY, DAILY, WEEKLY, MONTHLY, YEARLY + */ + recurrence_unit?: string; + /** + * The schedule recurrence size. For example size 4 and unit WEEKLY means the recurrence is every 4 weeks. + */ + recurrence_size?: number; + /** + * The schedule status, options: ACTIVE, FINISHED, CANCELLED. + */ + status?: string; + /** + * The scheduled object. (Payment, PaymentBatch) + */ + object?: IScheduleAnchorObject; +} + +export interface ISchedulePaymentUpdate { + /** + * The id of the created item + */ + Id?: BunqId; +} + +export interface ISchedulePaymentRead { + /** + * The payment details. + */ + payment?: ISchedulePaymentEntry; + /** + * The schedule details. + */ + schedule?: ISchedule; + /** + * The schedule status, options: ACTIVE, FINISHED, CANCELLED. + */ + status?: string; +} + +export interface ISchedulePaymentListing { + /** + * The payment details. + */ + payment?: ISchedulePaymentEntry; + /** + * The schedule details. + */ + schedule?: ISchedule; + /** + * The schedule status, options: ACTIVE, FINISHED, CANCELLED. + */ + status?: string; +} + +export interface ISchedulePaymentEntry { + /** + * 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). + */ + amount?: IAmount; + /** + * The LabelMonetaryAccount containing the public information of the other (counterparty) side of the Payment. + */ + counterparty_alias?: ILabelMonetaryAccount; + /** + * The description for the Payment. Maximum 140 characters for Payments to external IBANs, 9000 characters for Payments to only other bunq MonetaryAccounts. + */ + description?: string; + /** + * The Attachments attached to the Payment. + */ + attachment?: Array; + /** + * Optional data included with the Payment specific to the merchant. + */ + merchant_reference?: string; + /** + * Whether or not sending a bunq.to payment is allowed. + */ + allow_bunqto?: boolean; + /** + * The LabelMonetaryAccount containing the public information of 'this' (party) side of the Payment. + */ + alias?: ILabelMonetaryAccount; +} + +export interface ISchedulePaymentDelete {} + +export interface ISchedulePaymentCreate { + /** + * The id of the created item + */ + Id?: BunqId; +} + +export interface ISchedulePaymentBatchUpdate { + /** + * The id of the created item + */ + Id?: BunqId; +} + +export interface ISchedulePaymentBatchDelete {} + +export interface ISchedulePaymentBatchCreate { + /** + * The id of the created item + */ + Id?: BunqId; +} + +export interface ISchedulePaymentBatch { + /** + * The payment details. + */ + payments?: Array; + /** + * The schedule details. + */ + schedule?: ISchedule; +} + +export interface ISchedulePayment { + /** + * The payment details. + */ + payment?: ISchedulePaymentEntry; + /** + * The schedule details. + */ + schedule?: ISchedule; + /** + * The schedule status, options: ACTIVE, FINISHED, CANCELLED. + */ + status?: string; +} + +export interface IScheduleListing { + /** + * The schedule start time (UTC). + */ + time_start?: string; + /** + * The schedule end time (UTC). + */ + time_end?: string; + /** + * The schedule recurrence unit, options: ONCE, HOURLY, DAILY, WEEKLY, MONTHLY, YEARLY + */ + recurrence_unit?: string; + /** + * The schedule recurrence size. For example size 4 and unit WEEKLY means the recurrence is every 4 weeks. + */ + recurrence_size?: number; + /** + * The schedule status, options: ACTIVE, FINISHED, CANCELLED. + */ + status?: string; + /** + * The scheduled object. (Payment, PaymentBatch) + */ + object?: IScheduleAnchorObject; +} + +export interface IScheduleInstanceUpdate { + /** + * The id of the created item + */ + Id?: BunqId; +} + +export interface IScheduleInstanceRead { + /** + * The state of the scheduleInstance. (FINISHED_SUCCESSFULLY, RETRY, FAILED_USER_ERROR) + */ + state?: string; + /** + * The schedule start time (UTC). + */ + time_start?: string; + /** + * The schedule end time (UTC). + */ + time_end?: string; + /** + * The message when the scheduled instance has run and failed due to user error. + */ + error_message?: Array; + /** + * The scheduled object. (Payment, PaymentBatch) + */ + scheduled_object?: IScheduleAnchorObject; + /** + * The result object of this schedule instance. (Payment, PaymentBatch) + */ + result_object?: IScheduleInstanceAnchorObject; + /** + * The reference to the object used for split the bill. Can be RequestInquiry or RequestInquiryBatch + */ + request_reference_split_the_bill?: Array; +} + +export interface IScheduleInstanceListing { + /** + * The state of the scheduleInstance. (FINISHED_SUCCESSFULLY, RETRY, FAILED_USER_ERROR) + */ + state?: string; + /** + * The schedule start time (UTC). + */ + time_start?: string; + /** + * The schedule end time (UTC). + */ + time_end?: string; + /** + * The message when the scheduled instance has run and failed due to user error. + */ + error_message?: Array; + /** + * The scheduled object. (Payment, PaymentBatch) + */ + scheduled_object?: IScheduleAnchorObject; + /** + * The result object of this schedule instance. (Payment, PaymentBatch) + */ + result_object?: IScheduleInstanceAnchorObject; + /** + * The reference to the object used for split the bill. Can be RequestInquiry or RequestInquiryBatch + */ + request_reference_split_the_bill?: Array; +} + +export interface IScheduleInstanceAnchorObject { + /** + * + */ + Payment?: IPayment; + /** + * + */ + PaymentBatch?: IPaymentBatch; +} + +export interface IScheduleInstance { + /** + * The state of the scheduleInstance. (FINISHED_SUCCESSFULLY, RETRY, FAILED_USER_ERROR) + */ + state?: string; + /** + * The schedule start time (UTC). + */ + time_start?: string; + /** + * The schedule end time (UTC). + */ + time_end?: string; + /** + * The message when the scheduled instance has run and failed due to user error. + */ + error_message?: Array; + /** + * The scheduled object. (Payment, PaymentBatch) + */ + scheduled_object?: IScheduleAnchorObject; + /** + * The result object of this schedule instance. (Payment, PaymentBatch) + */ + result_object?: IScheduleInstanceAnchorObject; + /** + * The reference to the object used for split the bill. Can be RequestInquiry or RequestInquiryBatch + */ + request_reference_split_the_bill?: Array; +} + +export interface IScheduleAnchorObject { + /** + * + */ + Payment?: IPayment; + /** + * + */ + PaymentBatch?: IPaymentBatch; +} + +export interface ISchedule { + /** + * The schedule start time (UTC). + */ + time_start: string; + /** + * The schedule end time (UTC). + */ + time_end?: string; + /** + * The schedule recurrence unit, options: ONCE, HOURLY, DAILY, WEEKLY, MONTHLY, YEARLY + */ + recurrence_unit: RecurrenceUnitType; + /** + * The schedule recurrence size. For example size 4 and unit WEEKLY means the recurrence is every 4 weeks. + */ + recurrence_size: number; + /** + * The schedule status, options: ACTIVE, FINISHED, CANCELLED. + */ + status?: ScheduleStatusType; + /** + * The scheduled object. (Payment, PaymentBatch) + */ + object?: IScheduleAnchorObject; +} + +export interface ISandboxUserCreate { + /** + * The id of the created item + */ + Id?: BunqId; +} + +export interface ISandboxUser {} + +export interface IRewardSenderRead { + /** + * The id of the reward. + */ + id?: number; + /** + * The time the reward was created. + */ + created?: string; + /** + * The time the reward was last updated. + */ + updated?: string; + /** + * The status of the reward. + */ + status?: string; + /** + * The subStatus of the reward. + */ + sub_status?: string; + /** + * The type of the reward. + */ + type?: string; + /** + * The alias of the other user eligible for the reward award. + */ + counterparty_alias?: ILabelUser; + /** + * The amount that will be/was awarded as reward for the reward. + */ + amount_reward?: IAmount; +} + +export interface IRewardSenderListing { + /** + * The id of the reward. + */ + id?: number; + /** + * The time the reward was created. + */ + created?: string; + /** + * The time the reward was last updated. + */ + updated?: string; + /** + * The status of the reward. + */ + status?: string; + /** + * The subStatus of the reward. + */ + sub_status?: string; + /** + * The type of the reward. + */ + type?: string; + /** + * The alias of the other user eligible for the reward award. + */ + counterparty_alias?: ILabelUser; + /** + * The amount that will be/was awarded as reward for the reward. + */ + amount_reward?: IAmount; +} + +export interface IRewardSender { + /** + * The id of the reward. + */ + id?: number; + /** + * The time the reward was created. + */ + created?: string; + /** + * The time the reward was last updated. + */ + updated?: string; + /** + * The status of the reward. + */ + status?: string; + /** + * The subStatus of the reward. + */ + sub_status?: string; + /** + * The type of the reward. + */ + type?: string; + /** + * The alias of the other user eligible for the reward award. + */ + counterparty_alias?: ILabelUser; + /** + * The amount that will be/was awarded as reward for the reward. + */ + amount_reward?: IAmount; +} + +export interface IRewardRecipientRead { + /** + * The id of the reward. + */ + id?: number; + /** + * The time the reward was created. + */ + created?: string; + /** + * The time the reward was last updated. + */ + updated?: string; + /** + * The status of the reward. + */ + status?: string; + /** + * The subStatus of the reward. + */ + sub_status?: string; + /** + * The type of the reward. + */ + type?: string; + /** + * The alias of the other user eligible for the reward award. + */ + counterparty_alias?: ILabelUser; + /** + * The amount that will be/was awarded as reward for the reward. + */ + amount_reward?: IAmount; +} + +export interface IRewardRecipientListing { + /** + * The id of the reward. + */ + id?: number; + /** + * The time the reward was created. + */ + created?: string; + /** + * The time the reward was last updated. + */ + updated?: string; + /** + * The status of the reward. + */ + status?: string; + /** + * The subStatus of the reward. + */ + sub_status?: string; + /** + * The type of the reward. + */ + type?: string; + /** + * The alias of the other user eligible for the reward award. + */ + counterparty_alias?: ILabelUser; + /** + * The amount that will be/was awarded as reward for the reward. + */ + amount_reward?: IAmount; +} + +export interface IRewardRecipient { + /** + * The id of the reward. + */ + id?: number; + /** + * The time the reward was created. + */ + created?: string; + /** + * The time the reward was last updated. + */ + updated?: string; + /** + * The status of the reward. + */ + status?: string; + /** + * The subStatus of the reward. + */ + sub_status?: string; + /** + * The type of the reward. + */ + type?: string; + /** + * The alias of the other user eligible for the reward award. + */ + counterparty_alias?: ILabelUser; + /** + * The amount that will be/was awarded as reward for the reward. + */ + amount_reward?: IAmount; +} + +export interface IRewardRead { + /** + * The id of the reward. + */ + id?: number; + /** + * The time the reward was created. + */ + created?: string; + /** + * The time the reward was last updated. + */ + updated?: string; + /** + * The status of the reward. + */ + status?: string; + /** + * The subStatus of the reward. + */ + sub_status?: string; + /** + * The type of the reward. + */ + type?: string; + /** + * The alias of the other user eligible for the reward award. + */ + counterparty_alias?: ILabelUser; + /** + * The amount that will be/was awarded as reward for the reward. + */ + amount_reward?: IAmount; +} + +export interface IRewardListing { + /** + * The id of the reward. + */ + id?: number; + /** + * The time the reward was created. + */ + created?: string; + /** + * The time the reward was last updated. + */ + updated?: string; + /** + * The status of the reward. + */ + status?: string; + /** + * The subStatus of the reward. + */ + sub_status?: string; + /** + * The type of the reward. + */ + type?: string; + /** + * The alias of the other user eligible for the reward award. + */ + counterparty_alias?: ILabelUser; + /** + * The amount that will be/was awarded as reward for the reward. + */ + amount_reward?: IAmount; +} + +export interface IRequestResponseUpdate { + /** + * The id of the created item + */ + Id?: BunqId; +} + +export interface IRequestResponseRead { + /** + * The id of the Request Response. + */ + id?: number; + /** + * The timestamp when the Request Response was created. + */ + created?: string; + /** + * The timestamp when the Request Response was last updated (will be updated when chat messages are received). + */ + updated?: string; + /** + * The timestamp of when the RequestResponse was responded to. + */ + time_responded?: string; + /** + * The timestamp of when the RequestResponse expired or will expire. + */ + time_expiry?: string; + /** + * The timestamp of when a refund request for the RequestResponse was claimed. + */ + time_refund_requested?: string; + /** + * The timestamp of when the RequestResponse was refunded. + */ + time_refunded?: string; + /** + * The label of the user that requested the refund. + */ + user_refund_requested?: ILabelUser; + /** + * The id of the MonetaryAccount the RequestResponse was received on. + */ + monetary_account_id?: number; + /** + * The requested Amount. + */ + amount_inquired?: IAmount; + /** + * The Amount the RequestResponse was accepted with. + */ + amount_responded?: IAmount; + /** + * The status of the RequestResponse. Can be ACCEPTED, PENDING, REJECTED, REFUND_REQUESTED, REFUNDED or REVOKED. + */ + status?: string; + /** + * The description for the RequestResponse provided by the requesting party. Maximum 9000 characters. + */ + description?: string; + /** + * The LabelMonetaryAccount with the public information of the MonetaryAccount this RequestResponse was received on. + */ + alias?: ILabelMonetaryAccount; + /** + * The LabelMonetaryAccount with the public information of the MonetaryAccount that is requesting money with this RequestResponse. + */ + counterparty_alias?: ILabelMonetaryAccount; + /** + * The Attachments attached to the RequestResponse. + */ + attachment?: Array; + /** + * The minimum age the user accepting the RequestResponse must have. + */ + minimum_age?: number; + /** + * Whether or not an address must be provided on accept. + */ + require_address?: string; + /** + * The Geolocation where the RequestResponse was created. + */ + geolocation?: IGeolocation; + /** + * The type of the RequestInquiry. Can be DIRECT_DEBIT, DIRECT_DEBIT_B2B, IDEAL, SOFORT or INTERNAL. + */ + type?: string; + /** + * The subtype of the RequestInquiry. Can be ONCE or RECURRING for DIRECT_DEBIT RequestInquiries and NONE for all other. + */ + sub_type?: string; + /** + * The URL which the user is sent to after accepting or rejecting the Request. + */ + redirect_url?: string; + /** + * The billing address provided by the accepting user if an address was requested. + */ + address_billing?: IAddress; + /** + * The shipping address provided by the accepting user if an address was requested. + */ + address_shipping?: IAddress; + /** + * Whether or not chat messages are allowed. + */ + allow_chat?: boolean; + /** + * The credit scheme id provided by the counterparty for DIRECT_DEBIT inquiries. + */ + credit_scheme_identifier?: string; + /** + * The mandate id provided by the counterparty for DIRECT_DEBIT inquiries. + */ + mandate_identifier?: string; + /** + * The whitelist id for this action or null. + */ + eligible_whitelist_id?: number; + /** + * The reference to the object used for split the bill. Can be RequestInquiry or RequestInquiryBatch + */ + request_reference_split_the_bill?: Array; +} + +export interface IRequestResponseListing { + /** + * The id of the Request Response. + */ + id?: number; + /** + * The timestamp when the Request Response was created. + */ + created?: string; + /** + * The timestamp when the Request Response was last updated (will be updated when chat messages are received). + */ + updated?: string; + /** + * The timestamp of when the RequestResponse was responded to. + */ + time_responded?: string; + /** + * The timestamp of when the RequestResponse expired or will expire. + */ + time_expiry?: string; + /** + * The timestamp of when a refund request for the RequestResponse was claimed. + */ + time_refund_requested?: string; + /** + * The timestamp of when the RequestResponse was refunded. + */ + time_refunded?: string; + /** + * The label of the user that requested the refund. + */ + user_refund_requested?: ILabelUser; + /** + * The id of the MonetaryAccount the RequestResponse was received on. + */ + monetary_account_id?: number; + /** + * The requested Amount. + */ + amount_inquired?: IAmount; + /** + * The Amount the RequestResponse was accepted with. + */ + amount_responded?: IAmount; + /** + * The status of the RequestResponse. Can be ACCEPTED, PENDING, REJECTED, REFUND_REQUESTED, REFUNDED or REVOKED. + */ + status?: string; + /** + * The description for the RequestResponse provided by the requesting party. Maximum 9000 characters. + */ + description?: string; + /** + * The LabelMonetaryAccount with the public information of the MonetaryAccount this RequestResponse was received on. + */ + alias?: ILabelMonetaryAccount; + /** + * The LabelMonetaryAccount with the public information of the MonetaryAccount that is requesting money with this RequestResponse. + */ + counterparty_alias?: ILabelMonetaryAccount; + /** + * The Attachments attached to the RequestResponse. + */ + attachment?: Array; + /** + * The minimum age the user accepting the RequestResponse must have. + */ + minimum_age?: number; + /** + * Whether or not an address must be provided on accept. + */ + require_address?: string; + /** + * The Geolocation where the RequestResponse was created. + */ + geolocation?: IGeolocation; + /** + * The type of the RequestInquiry. Can be DIRECT_DEBIT, DIRECT_DEBIT_B2B, IDEAL, SOFORT or INTERNAL. + */ + type?: string; + /** + * The subtype of the RequestInquiry. Can be ONCE or RECURRING for DIRECT_DEBIT RequestInquiries and NONE for all other. + */ + sub_type?: string; + /** + * The URL which the user is sent to after accepting or rejecting the Request. + */ + redirect_url?: string; + /** + * The billing address provided by the accepting user if an address was requested. + */ + address_billing?: IAddress; + /** + * The shipping address provided by the accepting user if an address was requested. + */ + address_shipping?: IAddress; + /** + * Whether or not chat messages are allowed. + */ + allow_chat?: boolean; + /** + * The credit scheme id provided by the counterparty for DIRECT_DEBIT inquiries. + */ + credit_scheme_identifier?: string; + /** + * The mandate id provided by the counterparty for DIRECT_DEBIT inquiries. + */ + mandate_identifier?: string; + /** + * The whitelist id for this action or null. + */ + eligible_whitelist_id?: number; + /** + * The reference to the object used for split the bill. Can be RequestInquiry or RequestInquiryBatch + */ + request_reference_split_the_bill?: Array; +} + +export interface IRequestResponse { + /** + * The Amount the RequestResponse was accepted with. + */ + amount_responded?: IAmount; + /** + * The status of the RequestResponse. Can be ACCEPTED, PENDING, REJECTED, REFUND_REQUESTED, REFUNDED or REVOKED. + */ + status?: string; + /** + * The shipping address provided by the accepting user if an address was requested. + */ + address_shipping?: IAddress; + /** + * The billing address provided by the accepting user if an address was requested. + */ + address_billing?: IAddress; + /** + * The id of the Request Response. + */ + id?: number; + /** + * The timestamp when the Request Response was created. + */ + created?: string; + /** + * The timestamp when the Request Response was last updated (will be updated when chat messages are received). + */ + updated?: string; + /** + * The timestamp of when the RequestResponse was responded to. + */ + time_responded?: string; + /** + * The timestamp of when the RequestResponse expired or will expire. + */ + time_expiry?: string; + /** + * The timestamp of when a refund request for the RequestResponse was claimed. + */ + time_refund_requested?: string; + /** + * The timestamp of when the RequestResponse was refunded. + */ + time_refunded?: string; + /** + * The label of the user that requested the refund. + */ + user_refund_requested?: ILabelUser; + /** + * The id of the MonetaryAccount the RequestResponse was received on. + */ + monetary_account_id?: number; + /** + * The requested Amount. + */ + amount_inquired?: IAmount; + /** + * The description for the RequestResponse provided by the requesting party. Maximum 9000 characters. + */ + description?: string; + /** + * The LabelMonetaryAccount with the public information of the MonetaryAccount this RequestResponse was received on. + */ + alias?: ILabelMonetaryAccount; + /** + * The LabelMonetaryAccount with the public information of the MonetaryAccount that is requesting money with this RequestResponse. + */ + counterparty_alias?: ILabelMonetaryAccount; + /** + * The Attachments attached to the RequestResponse. + */ + attachment?: Array; + /** + * The minimum age the user accepting the RequestResponse must have. + */ + minimum_age?: number; + /** + * Whether or not an address must be provided on accept. + */ + require_address?: string; + /** + * The Geolocation where the RequestResponse was created. + */ + geolocation?: IGeolocation; + /** + * The type of the RequestInquiry. Can be DIRECT_DEBIT, DIRECT_DEBIT_B2B, IDEAL, SOFORT or INTERNAL. + */ + type?: string; + /** + * The subtype of the RequestInquiry. Can be ONCE or RECURRING for DIRECT_DEBIT RequestInquiries and NONE for all other. + */ + sub_type?: string; + /** + * The URL which the user is sent to after accepting or rejecting the Request. + */ + redirect_url?: string; + /** + * Whether or not chat messages are allowed. + */ + allow_chat?: boolean; + /** + * The credit scheme id provided by the counterparty for DIRECT_DEBIT inquiries. + */ + credit_scheme_identifier?: string; + /** + * The mandate id provided by the counterparty for DIRECT_DEBIT inquiries. + */ + mandate_identifier?: string; + /** + * The whitelist id for this action or null. + */ + eligible_whitelist_id?: number; + /** + * The reference to the object used for split the bill. Can be RequestInquiry or RequestInquiryBatch + */ + request_reference_split_the_bill?: Array; +} + +export interface IRequestReferenceSplitTheBillAnchorObject { + /** + * + */ + BillingInvoice?: IInvoice; + /** + * + */ + DraftPayment?: IDraftPayment; + /** + * + */ + MasterCardAction?: IMasterCardAction; + /** + * + */ + Payment?: IPayment; + /** + * + */ + PaymentBatch?: IPaymentBatch; + /** + * + */ + RequestResponse?: IRequestResponse; + /** + * + */ + ScheduleInstance?: IScheduleInstance; + /** + * + */ + TabResultResponse?: ITabResultResponse; + /** + * + */ + WhitelistResult?: IWhitelistResult; + /** + * + */ + TransferwisePayment?: ITransferwiseTransfer; +} + +export interface IRequestInquiryUpdate { + /** + * The id of the payment request. + */ + id?: number; + /** + * The timestamp of the payment request's creation. + */ + created?: string; + /** + * The timestamp of the payment request's last update. + */ + updated?: string; + /** + * The timestamp of when the payment request was responded to. + */ + time_responded?: string; + /** + * The timestamp of when the payment request expired. + */ + time_expiry?: string; + /** + * The id of the monetary account the request response applies to. + */ + monetary_account_id?: number; + /** + * The requested amount. + */ + amount_inquired?: IAmount; + /** + * The responded amount. + */ + amount_responded?: IAmount; + /** + * The label that's displayed to the counterparty with the mutation. Includes user. + */ + user_alias_created?: ILabelUser; + /** + * The label that's displayed to the counterparty with the mutation. Includes user. + */ + user_alias_revoked?: ILabelUser; + /** + * The LabelMonetaryAccount with the public information of the MonetaryAccount the money was requested from. + */ + counterparty_alias?: ILabelMonetaryAccount; + /** + * The description of the inquiry. + */ + description?: string; + /** + * The client's custom reference that was attached to the request and the mutation. + */ + merchant_reference?: string; + /** + * The attachments attached to the payment. + */ + attachment?: Array; + /** + * The status of the request. + */ + status?: string; + /** + * The id of the batch if the request was part of a batch. + */ + batch_id?: number; + /** + * The id of the scheduled job if the request was scheduled. + */ + scheduled_id?: number; + /** + * The minimum age the user accepting the RequestInquiry must have. + */ + minimum_age?: number; + /** + * Whether or not an address must be provided on accept. + */ + require_address?: string; + /** + * The shipping address provided by the accepting user if an address was requested. + */ + address_shipping?: IAddress; + /** + * The billing address provided by the accepting user if an address was requested. + */ + address_billing?: IAddress; + /** + * The geolocation where the payment was done. + */ + geolocation?: IGeolocation; + /** + * The reference to the object used for split the bill. Can be Payment, PaymentBatch, ScheduleInstance, RequestResponse and MasterCardAction + */ + reference_split_the_bill?: IRequestReferenceSplitTheBillAnchorObject; +} + +export interface IRequestInquiryReference { + /** + * The type of request inquiry. Can be RequestInquiry or RequestInquiryBatch. + */ + type?: string; + /** + * The id of the request inquiry (batch). + */ + id?: number; +} + +export interface IRequestInquiryRead { + /** + * The id of the created RequestInquiry. + */ + id?: number; + /** + * The timestamp of the payment request's creation. + */ + created?: string; + /** + * The timestamp of the payment request's last update. + */ + updated?: string; + /** + * The timestamp of when the payment request was responded to. + */ + time_responded?: string; + /** + * The timestamp of when the payment request expired. + */ + time_expiry?: string; + /** + * The id of the monetary account the request response applies to. + */ + monetary_account_id?: number; + /** + * The requested amount. + */ + amount_inquired?: IAmount; + /** + * The responded amount. + */ + amount_responded?: IAmount; + /** + * The label that's displayed to the counterparty with the mutation. Includes user. + */ + user_alias_created?: ILabelUser; + /** + * The label that's displayed to the counterparty with the mutation. Includes user. + */ + user_alias_revoked?: ILabelUser; + /** + * The LabelMonetaryAccount with the public information of the MonetaryAccount the money was requested from. + */ + counterparty_alias?: ILabelMonetaryAccount; + /** + * The description of the inquiry. + */ + description?: string; + /** + * The client's custom reference that was attached to the request and the mutation. + */ + merchant_reference?: string; + /** + * The attachments attached to the payment. + */ + attachment?: Array; + /** + * The status of the request. + */ + status?: string; + /** + * The id of the batch if the request was part of a batch. + */ + batch_id?: number; + /** + * The id of the scheduled job if the request was scheduled. + */ + scheduled_id?: number; + /** + * The minimum age the user accepting the RequestInquiry must have. + */ + minimum_age?: number; + /** + * Whether or not an address must be provided on accept. + */ + require_address?: string; + /** + * The url that points to the bunq.me request. + */ + bunqme_share_url?: string; + /** + * The URL which the user is sent to after accepting or rejecting the Request. + */ + redirect_url?: string; + /** + * The shipping address provided by the accepting user if an address was requested. + */ + address_shipping?: IAddress; + /** + * The billing address provided by the accepting user if an address was requested. + */ + address_billing?: IAddress; + /** + * The geolocation where the payment was done. + */ + geolocation?: IGeolocation; + /** + * Whether or not chat messages are allowed. + */ + allow_chat?: boolean; + /** + * The reference to the object used for split the bill. Can be Payment, PaymentBatch, ScheduleInstance, RequestResponse and MasterCardAction + */ + reference_split_the_bill?: IRequestReferenceSplitTheBillAnchorObject; +} + +export interface IRequestInquiryListing { + /** + * The id of the created RequestInquiry. + */ + id?: number; + /** + * The timestamp of the payment request's creation. + */ + created?: string; + /** + * The timestamp of the payment request's last update. + */ + updated?: string; + /** + * The timestamp of when the payment request was responded to. + */ + time_responded?: string; + /** + * The timestamp of when the payment request expired. + */ + time_expiry?: string; + /** + * The id of the monetary account the request response applies to. + */ + monetary_account_id?: number; + /** + * The requested amount. + */ + amount_inquired?: IAmount; + /** + * The responded amount. + */ + amount_responded?: IAmount; + /** + * The label that's displayed to the counterparty with the mutation. Includes user. + */ + user_alias_created?: ILabelUser; + /** + * The label that's displayed to the counterparty with the mutation. Includes user. + */ + user_alias_revoked?: ILabelUser; + /** + * The LabelMonetaryAccount with the public information of the MonetaryAccount the money was requested from. + */ + counterparty_alias?: ILabelMonetaryAccount; + /** + * The description of the inquiry. + */ + description?: string; + /** + * The client's custom reference that was attached to the request and the mutation. + */ + merchant_reference?: string; + /** + * The attachments attached to the payment. + */ + attachment?: Array; + /** + * The status of the request. + */ + status?: string; + /** + * The id of the batch if the request was part of a batch. + */ + batch_id?: number; + /** + * The id of the scheduled job if the request was scheduled. + */ + scheduled_id?: number; + /** + * The minimum age the user accepting the RequestInquiry must have. + */ + minimum_age?: number; + /** + * Whether or not an address must be provided on accept. + */ + require_address?: string; + /** + * The url that points to the bunq.me request. + */ + bunqme_share_url?: string; + /** + * The URL which the user is sent to after accepting or rejecting the Request. + */ + redirect_url?: string; + /** + * The shipping address provided by the accepting user if an address was requested. + */ + address_shipping?: IAddress; + /** + * The billing address provided by the accepting user if an address was requested. + */ + address_billing?: IAddress; + /** + * The geolocation where the payment was done. + */ + geolocation?: IGeolocation; + /** + * Whether or not chat messages are allowed. + */ + allow_chat?: boolean; + /** + * The reference to the object used for split the bill. Can be Payment, PaymentBatch, ScheduleInstance, RequestResponse and MasterCardAction + */ + reference_split_the_bill?: IRequestReferenceSplitTheBillAnchorObject; +} + +export interface IRequestInquiryCreate { + /** + * The id of the created RequestInquiry. + */ + id?: number; +} + +export interface IRequestInquiryBatchUpdate { + /** + * The id of the created item + */ + Id?: BunqId; +} + +export interface IRequestInquiryBatchRead { + /** + * The list of requests that were made. + */ + request_inquiries?: Array; + /** + * The total amount originally inquired for this batch. + */ + total_amount_inquired?: IAmount; + /** + * The reference to the object used for split the bill. Can be Payment, PaymentBatch, ScheduleInstance, RequestResponse and MasterCardAction + */ + reference_split_the_bill?: IRequestReferenceSplitTheBillAnchorObject; +} + +export interface IRequestInquiryBatchListing { + /** + * The list of requests that were made. + */ + request_inquiries?: Array; + /** + * The total amount originally inquired for this batch. + */ + total_amount_inquired?: IAmount; + /** + * The reference to the object used for split the bill. Can be Payment, PaymentBatch, ScheduleInstance, RequestResponse and MasterCardAction + */ + reference_split_the_bill?: IRequestReferenceSplitTheBillAnchorObject; +} + +export interface IRequestInquiryBatchCreate { + /** + * The id of the created item + */ + Id?: BunqId; +} + +export interface IRequestInquiryBatch { + /** + * The list of requests that were made. + */ + request_inquiries?: Array; + /** + * The status of the request. + */ + status?: string; + /** + * The total amount originally inquired for this batch. + */ + total_amount_inquired?: IAmount; + /** + * The ID of the associated event if the request batch was made using 'split the bill'. + */ + event_id?: number; + /** + * The reference to the object used for split the bill. Can be Payment, PaymentBatch, ScheduleInstance, RequestResponse and MasterCardAction + */ + reference_split_the_bill?: IRequestReferenceSplitTheBillAnchorObject; +} + +export interface IRequestInquiry { + /** + * The requested amount. + */ + amount_inquired?: IAmount; + /** + * The LabelMonetaryAccount with the public information of the MonetaryAccount the money was requested from. + */ + counterparty_alias?: ILabelMonetaryAccount; + /** + * The description of the inquiry. + */ + description?: string; + /** + * The attachments attached to the payment. + */ + attachment?: Array; + /** + * The client's custom reference that was attached to the request and the mutation. + */ + merchant_reference?: string; + /** + * The status of the request. + */ + status?: string; + /** + * The minimum age the user accepting the RequestInquiry must have. + */ + minimum_age?: number; + /** + * Whether or not an address must be provided on accept. + */ + require_address?: string; + /** + * [DEPRECATED] Whether or not the accepting user can give an extra tip on top of the requested Amount. Defaults to false. + */ + want_tip?: boolean; + /** + * [DEPRECATED] Whether or not the accepting user can choose to accept with a lower amount than requested. Defaults to false. + */ + allow_amount_lower?: boolean; + /** + * [DEPRECATED] Whether or not the accepting user can choose to accept with a higher amount than requested. Defaults to false. + */ + allow_amount_higher?: boolean; + /** + * Whether or not sending a bunq.me request is allowed. + */ + allow_bunqme: boolean; + /** + * The URL which the user is sent to after accepting or rejecting the Request. + */ + redirect_url?: string; + /** + * The ID of the associated event if the request was made using 'split the bill'. + */ + event_id?: number; + /** + * The id of the created RequestInquiry. + */ + id?: number; + /** + * The timestamp of the payment request's creation. + */ + created?: string; + /** + * The timestamp of the payment request's last update. + */ + updated?: string; + /** + * The timestamp of when the payment request was responded to. + */ + time_responded?: string; + /** + * The timestamp of when the payment request expired. + */ + time_expiry?: string; + /** + * The id of the monetary account the request response applies to. + */ + monetary_account_id?: number; + /** + * The responded amount. + */ + amount_responded?: IAmount; + /** + * The label that's displayed to the counterparty with the mutation. Includes user. + */ + user_alias_created?: ILabelUser; + /** + * The label that's displayed to the counterparty with the mutation. Includes user. + */ + user_alias_revoked?: ILabelUser; + /** + * The id of the batch if the request was part of a batch. + */ + batch_id?: number; + /** + * The id of the scheduled job if the request was scheduled. + */ + scheduled_id?: number; + /** + * The url that points to the bunq.me request. + */ + bunqme_share_url?: string; + /** + * The shipping address provided by the accepting user if an address was requested. + */ + address_shipping?: IAddress; + /** + * The billing address provided by the accepting user if an address was requested. + */ + address_billing?: IAddress; + /** + * The geolocation where the payment was done. + */ + geolocation?: IGeolocation; + /** + * Whether or not chat messages are allowed. + */ + allow_chat?: boolean; + /** + * The reference to the object used for split the bill. Can be Payment, PaymentBatch, ScheduleInstance, RequestResponse and MasterCardAction + */ + reference_split_the_bill?: IRequestReferenceSplitTheBillAnchorObject; +} + +export interface IPointer { + /** + * The alias type, can be: EMAIL|PHONE_NUMBER|IBAN. + */ + type?: string; + /** + * The alias value. + */ + value?: string; + /** + * The alias name. + */ + name?: string; +} + +export interface IPermittedIpUpdate { + /** + * The id of the created item + */ + Id?: BunqId; +} + +export interface IPermittedIpRead { + /** + * The IP address. + */ + ip?: string; + /** + * 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. + */ + status?: string; +} + +export interface IPermittedIpListing { + /** + * The IP address. + */ + ip?: string; + /** + * 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. + */ + status?: string; +} + +export interface IPermittedIpCreate { + /** + * The id of the created item + */ + Id?: BunqId; +} + +export interface IPermittedIp { + /** + * The IP address. + */ + ip: string; + /** + * 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. + */ + status?: string; +} + +export interface IPermittedDevice { + /** + * The description of the device that may use the credential. + */ + description?: string; + /** + * The IP address of the device that may use the credential. + */ + ip?: string; +} + +export interface IPaymentServiceProviderCredentialRead { + /** + * The id of the credential. + */ + id?: number; + /** + * The timestamp of the credential object's creation. + */ + created?: string; + /** + * The timestamp of the credential object's last update. + */ + updated?: string; + /** + * The status of the credential. + */ + status?: string; + /** + * When the status is PENDING_FIRST_USE: when the credential expires. + */ + expiry_time?: string; + /** + * When the status is PENDING_FIRST_USE: the value of the token. + */ + token_value?: string; + /** + * When the status is ACTIVE: the details of the device that may use the credential. + */ + permitted_device?: IPermittedDevice; +} + +export interface IPaymentServiceProviderCredentialCreate { + /** + * The id of the created item + */ + Id?: BunqId; +} + +export interface IPaymentServiceProviderCredential { + /** + * Payment Services Directive 2 compatible QSEAL certificate + */ + client_payment_service_provider_certificate: string; + /** + * Intermediate and root certificate belonging to the provided certificate. + */ + client_payment_service_provider_certificate_chain: string; + /** + * 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. + */ + client_public_key_signature: string; +} + +export interface IPaymentRead { + /** + * The id of the created Payment. + */ + id?: number; + /** + * The timestamp when the Payment was done. + */ + created?: string; + /** + * The timestamp when the Payment was last updated (will be updated when chat messages are received). + */ + updated?: string; + /** + * The id of the MonetaryAccount the Payment was made to or from (depending on whether this is an incoming or outgoing Payment). + */ + monetary_account_id?: number; + /** + * 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). + */ + amount?: IAmount; + /** + * The LabelMonetaryAccount containing the public information of 'this' (party) side of the Payment. + */ + alias?: ILabelMonetaryAccount; + /** + * The LabelMonetaryAccount containing the public information of the other (counterparty) side of the Payment. + */ + counterparty_alias?: ILabelMonetaryAccount; + /** + * The description for the Payment. Maximum 140 characters for Payments to external IBANs, 9000 characters for Payments to only other bunq MonetaryAccounts. + */ + description?: string; + /** + * The type of Payment, can be BUNQ, EBA_SCT, EBA_SDD, IDEAL, SWIFT or FIS (card). + */ + type?: string; + /** + * The sub-type of the Payment, can be PAYMENT, WITHDRAWAL, REVERSAL, REQUEST, BILLING, SCT, SDD or NLO. + */ + sub_type?: string; + /** + * The status of the bunq.to payment. + */ + bunqto_status?: string; + /** + * The sub status of the bunq.to payment. + */ + bunqto_sub_status?: string; + /** + * The status of the bunq.to payment. + */ + bunqto_share_url?: string; + /** + * When bunq.to payment is about to expire. + */ + bunqto_expiry?: string; + /** + * The timestamp of when the bunq.to payment was responded to. + */ + bunqto_time_responded?: string; + /** + * The Attachments attached to the Payment. + */ + attachment?: Array; + /** + * Optional data included with the Payment specific to the merchant. + */ + merchant_reference?: string; + /** + * The id of the PaymentBatch if this Payment was part of one. + */ + batch_id?: number; + /** + * The id of the JobScheduled if the Payment was scheduled. + */ + scheduled_id?: number; + /** + * A shipping Address provided with the Payment, currently unused. + */ + address_shipping?: IAddress; + /** + * A billing Address provided with the Payment, currently unused. + */ + address_billing?: IAddress; + /** + * The Geolocation where the Payment was done from. + */ + geolocation?: IGeolocation; + /** + * Whether or not chat messages are allowed. + */ + allow_chat?: boolean; + /** + * The reference to the object used for split the bill. Can be RequestInquiry or RequestInquiryBatch + */ + request_reference_split_the_bill?: Array; + /** + * The new balance of the monetary account after the mutation. + */ + balance_after_mutation?: IAmount; +} + +export interface IPaymentListing { + /** + * The id of the created Payment. + */ + id?: number; + /** + * The timestamp when the Payment was done. + */ + created?: string; + /** + * The timestamp when the Payment was last updated (will be updated when chat messages are received). + */ + updated?: string; + /** + * The id of the MonetaryAccount the Payment was made to or from (depending on whether this is an incoming or outgoing Payment). + */ + monetary_account_id?: number; + /** + * 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). + */ + amount?: IAmount; + /** + * The LabelMonetaryAccount containing the public information of 'this' (party) side of the Payment. + */ + alias?: ILabelMonetaryAccount; + /** + * The LabelMonetaryAccount containing the public information of the other (counterparty) side of the Payment. + */ + counterparty_alias?: ILabelMonetaryAccount; + /** + * The description for the Payment. Maximum 140 characters for Payments to external IBANs, 9000 characters for Payments to only other bunq MonetaryAccounts. + */ + description?: string; + /** + * The type of Payment, can be BUNQ, EBA_SCT, EBA_SDD, IDEAL, SWIFT or FIS (card). + */ + type?: string; + /** + * The sub-type of the Payment, can be PAYMENT, WITHDRAWAL, REVERSAL, REQUEST, BILLING, SCT, SDD or NLO. + */ + sub_type?: string; + /** + * The status of the bunq.to payment. + */ + bunqto_status?: string; + /** + * The sub status of the bunq.to payment. + */ + bunqto_sub_status?: string; + /** + * The status of the bunq.to payment. + */ + bunqto_share_url?: string; + /** + * When bunq.to payment is about to expire. + */ + bunqto_expiry?: string; + /** + * The timestamp of when the bunq.to payment was responded to. + */ + bunqto_time_responded?: string; + /** + * The Attachments attached to the Payment. + */ + attachment?: Array; + /** + * Optional data included with the Payment specific to the merchant. + */ + merchant_reference?: string; + /** + * The id of the PaymentBatch if this Payment was part of one. + */ + batch_id?: number; + /** + * The id of the JobScheduled if the Payment was scheduled. + */ + scheduled_id?: number; + /** + * A shipping Address provided with the Payment, currently unused. + */ + address_shipping?: IAddress; + /** + * A billing Address provided with the Payment, currently unused. + */ + address_billing?: IAddress; + /** + * The Geolocation where the Payment was done from. + */ + geolocation?: IGeolocation; + /** + * Whether or not chat messages are allowed. + */ + allow_chat?: boolean; + /** + * The reference to the object used for split the bill. Can be RequestInquiry or RequestInquiryBatch + */ + request_reference_split_the_bill?: Array; + /** + * The new balance of the monetary account after the mutation. + */ + balance_after_mutation?: IAmount; +} + +export interface IPaymentCreate { + /** + * The id of the created Payment. + */ + id?: number; +} + +export interface IPaymentBatchUpdate { + /** + * The id of the created item + */ + Id?: BunqId; +} + +export interface IPaymentBatchRead { + /** + * The list of mutations that were made. + */ + payments?: Array; +} + +export interface IPaymentBatchListing { + /** + * The list of mutations that were made. + */ + payments?: Array; +} + +export interface IPaymentBatchCreate { + /** + * The id of the created item + */ + Id?: BunqId; +} + +export interface IPaymentBatch { + /** + * The list of mutations that were made. + */ + payments?: Array; +} + +export interface IPayment { + /** + * 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). + */ + amount?: IAmount; + /** + * The LabelMonetaryAccount containing the public information of the other (counterparty) side of the Payment. + */ + counterparty_alias?: ILabelMonetaryAccount; + /** + * The description for the Payment. Maximum 140 characters for Payments to external IBANs, 9000 characters for Payments to only other bunq MonetaryAccounts. + */ + description?: string; + /** + * The Attachments attached to the Payment. + */ + attachment?: Array; + /** + * Optional data included with the Payment specific to the merchant. + */ + merchant_reference?: string; + /** + * Whether or not sending a bunq.to payment is allowed. + */ + allow_bunqto?: boolean; + /** + * The id of the created Payment. + */ + id?: number; + /** + * The timestamp when the Payment was done. + */ + created?: string; + /** + * The timestamp when the Payment was last updated (will be updated when chat messages are received). + */ + updated?: string; + /** + * The id of the MonetaryAccount the Payment was made to or from (depending on whether this is an incoming or outgoing Payment). + */ + monetary_account_id?: number; + /** + * The LabelMonetaryAccount containing the public information of 'this' (party) side of the Payment. + */ + alias?: ILabelMonetaryAccount; + /** + * The type of Payment, can be BUNQ, EBA_SCT, EBA_SDD, IDEAL, SWIFT or FIS (card). + */ + type?: string; + /** + * The sub-type of the Payment, can be PAYMENT, WITHDRAWAL, REVERSAL, REQUEST, BILLING, SCT, SDD or NLO. + */ + sub_type?: string; + /** + * The status of the bunq.to payment. + */ + bunqto_status?: string; + /** + * The sub status of the bunq.to payment. + */ + bunqto_sub_status?: string; + /** + * The status of the bunq.to payment. + */ + bunqto_share_url?: string; + /** + * When bunq.to payment is about to expire. + */ + bunqto_expiry?: string; + /** + * The timestamp of when the bunq.to payment was responded to. + */ + bunqto_time_responded?: string; + /** + * The id of the PaymentBatch if this Payment was part of one. + */ + batch_id?: number; + /** + * The id of the JobScheduled if the Payment was scheduled. + */ + scheduled_id?: number; + /** + * A shipping Address provided with the Payment, currently unused. + */ + address_shipping?: IAddress; + /** + * A billing Address provided with the Payment, currently unused. + */ + address_billing?: IAddress; + /** + * The Geolocation where the Payment was done from. + */ + geolocation?: IGeolocation; + /** + * Whether or not chat messages are allowed. + */ + allow_chat?: boolean; + /** + * The reference to the object used for split the bill. Can be RequestInquiry or RequestInquiryBatch + */ + request_reference_split_the_bill?: Array; + /** + * The new balance of the monetary account after the mutation. + */ + balance_after_mutation?: IAmount; +} + +export interface IOauthClientUpdate { + /** + * The id of the created item + */ + Id?: BunqId; +} + +export interface IOauthClientRead { + /** + * Id of the client. + */ + id?: number; + /** + * The status of the pack group, can be ACTIVE, CANCELLED or CANCELLED_PENDING. + */ + status?: string; + /** + * The Client ID associated with this Oauth Client + */ + client_id?: string; + /** + * Secret associated with this Oauth Client + */ + secret?: string; + /** + * The callback URLs which are bound to this Oauth Client + */ + callback_url?: Array; +} + +export interface IOauthClientListing { + /** + * Id of the client. + */ + id?: number; + /** + * The status of the pack group, can be ACTIVE, CANCELLED or CANCELLED_PENDING. + */ + status?: string; + /** + * The Client ID associated with this Oauth Client + */ + client_id?: string; + /** + * Secret associated with this Oauth Client + */ + secret?: string; + /** + * The callback URLs which are bound to this Oauth Client + */ + callback_url?: Array; +} + +export interface IOauthClientCreate { + /** + * The id of the created item + */ + Id?: BunqId; +} + +export interface IOauthClient { + /** + * The status of the Oauth Client, can be ACTIVE or CANCELLED. + */ + status?: string; +} + +export interface IOauthCallbackUrlUpdate { + /** + * The id of the created item + */ + Id?: BunqId; +} + +export interface IOauthCallbackUrlRead { + /** + * The URL for this callback. + */ + url?: string; +} + +export interface IOauthCallbackUrlListing { + /** + * The URL for this callback. + */ + url?: string; +} + +export interface IOauthCallbackUrlDelete {} + +export interface IOauthCallbackUrlCreate { + /** + * The id of the created item + */ + Id?: BunqId; +} + +export interface IOauthCallbackUrl { + /** + * The URL for this callback. + */ + url: string; +} + +export interface INotificationFilterUrlUserListing { + /** + * The types of notifications that will result in a url notification for this user. + */ + notification_filters?: Array; +} + +export interface INotificationFilterUrlUserCreate { + /** + * The id of the created item + */ + Id?: BunqId; +} + +export interface INotificationFilterUrlUser { + /** + * The types of notifications that will result in a url notification for this user. + */ + notification_filters?: Array; +} + +export interface INotificationFilterUrlMonetaryAccountListing { + /** + * The types of notifications that will result in a url notification for this monetary account. + */ + notification_filters?: Array; +} + +export interface INotificationFilterUrlMonetaryAccountCreate { + /** + * The id of the created item + */ + Id?: BunqId; +} + +export interface INotificationFilterUrlMonetaryAccount { + /** + * The types of notifications that will result in a url notification for this monetary account. + */ + notification_filters?: Array; +} + +export interface INotificationFilterUrl { + /** + * The notification category that will match this notification filter. + */ + category?: string; + /** + * The URL to which the callback should be made. + */ + notification_target?: string; + /** + * The id of the NotificationFilterUrl. + */ + id?: number; + /** + * The timestamp of the NotificationFilterUrl's creation. + */ + created?: string; + /** + * The timestamp of the NotificationFilterUrl's last update. + */ + updated?: string; +} + +export interface INotificationFilterPushUserListing { + /** + * The types of notifications that will result in a push notification for this user. + */ + notification_filters?: Array; +} + +export interface INotificationFilterPushUserCreate { + /** + * The id of the created item + */ + Id?: BunqId; +} + +export interface INotificationFilterPushUser { + /** + * The types of notifications that will result in a push notification for this user. + */ + notification_filters?: Array; +} + +export interface INotificationFilterPush { + /** + * The notification category that will match this notification filter. + */ + category?: string; +} + +export interface INotificationFilter { + /** + * The delivery method via which notifications that match this notification filter will be delivered. Possible choices are PUSH for delivery via push notification and URL for delivery via URL callback. + */ + notification_delivery_method: NotificationDeliveryMethodType; + /** + * The target of notifications that match this notification filter. For URL notification filters this is the URL to which the callback will be made. For PUSH notifications filters this should always be null. + */ + notification_target: string; + /** + * The notification category that will match this notification filter. Possible choices are BILLING, CARD_TRANSACTION_FAILED, CARD_TRANSACTION_SUCCESSFUL, CHAT, DRAFT_PAYMENT, IDEAL, SOFORT, MONETARY_ACCOUNT_PROFILE, MUTATION, PAYMENT, PROMOTION, REQUEST, SCHEDULE_RESULT, SCHEDULE_STATUS, SHARE, SUPPORT, TAB_RESULT, USER_APPROVAL. + */ + category: NotificationCategoryType; +} + +export interface INoteTextWhitelistResultUpdate { + /** + * The id of the created item + */ + Id?: BunqId; +} + +export interface INoteTextWhitelistResultRead { + /** + * The id of the note. + */ + id?: number; + /** + * The timestamp of the note's creation. + */ + created?: string; + /** + * The timestamp of the note's last update. + */ + updated?: string; + /** + * The label of the user who created this note. + */ + label_user_creator?: ILabelUser; + /** + * The content of the note. + */ + content?: string; +} + +export interface INoteTextWhitelistResultListing { + /** + * The id of the note. + */ + id?: number; + /** + * The timestamp of the note's creation. + */ + created?: string; + /** + * The timestamp of the note's last update. + */ + updated?: string; + /** + * The label of the user who created this note. + */ + label_user_creator?: ILabelUser; + /** + * The content of the note. + */ + content?: string; +} + +export interface INoteTextWhitelistResultDelete {} + +export interface INoteTextWhitelistResultCreate { + /** + * The id of the created item + */ + Id?: BunqId; +} + +export interface INoteTextWhitelistResult { + /** + * The content of the note. + */ + content?: string; +} + +export interface INoteTextSofortMerchantTransactionUpdate { + /** + * The id of the created item + */ + Id?: BunqId; +} + +export interface INoteTextSofortMerchantTransactionRead { + /** + * The id of the note. + */ + id?: number; + /** + * The timestamp of the note's creation. + */ + created?: string; + /** + * The timestamp of the note's last update. + */ + updated?: string; + /** + * The label of the user who created this note. + */ + label_user_creator?: ILabelUser; + /** + * The content of the note. + */ + content?: string; +} + +export interface INoteTextSofortMerchantTransactionListing { + /** + * The id of the note. + */ + id?: number; + /** + * The timestamp of the note's creation. + */ + created?: string; + /** + * The timestamp of the note's last update. + */ + updated?: string; + /** + * The label of the user who created this note. + */ + label_user_creator?: ILabelUser; + /** + * The content of the note. + */ + content?: string; +} + +export interface INoteTextSofortMerchantTransactionDelete {} + +export interface INoteTextSofortMerchantTransactionCreate { + /** + * The id of the created item + */ + Id?: BunqId; +} + +export interface INoteTextSofortMerchantTransaction { + /** + * The content of the note. + */ + content?: string; +} + +export interface INoteTextSchedulePaymentUpdate { + /** + * The id of the created item + */ + Id?: BunqId; +} + +export interface INoteTextSchedulePaymentRead { + /** + * The id of the note. + */ + id?: number; + /** + * The timestamp of the note's creation. + */ + created?: string; + /** + * The timestamp of the note's last update. + */ + updated?: string; + /** + * The label of the user who created this note. + */ + label_user_creator?: ILabelUser; + /** + * The content of the note. + */ + content?: string; +} + +export interface INoteTextSchedulePaymentListing { + /** + * The id of the note. + */ + id?: number; + /** + * The timestamp of the note's creation. + */ + created?: string; + /** + * The timestamp of the note's last update. + */ + updated?: string; + /** + * The label of the user who created this note. + */ + label_user_creator?: ILabelUser; + /** + * The content of the note. + */ + content?: string; +} + +export interface INoteTextSchedulePaymentDelete {} + +export interface INoteTextSchedulePaymentCreate { + /** + * The id of the created item + */ + Id?: BunqId; +} + +export interface INoteTextSchedulePaymentBatchUpdate { + /** + * The id of the created item + */ + Id?: BunqId; +} + +export interface INoteTextSchedulePaymentBatchRead { + /** + * The id of the note. + */ + id?: number; + /** + * The timestamp of the note's creation. + */ + created?: string; + /** + * The timestamp of the note's last update. + */ + updated?: string; + /** + * The label of the user who created this note. + */ + label_user_creator?: ILabelUser; + /** + * The content of the note. + */ + content?: string; +} + +export interface INoteTextSchedulePaymentBatchListing { + /** + * The id of the note. + */ + id?: number; + /** + * The timestamp of the note's creation. + */ + created?: string; + /** + * The timestamp of the note's last update. + */ + updated?: string; + /** + * The label of the user who created this note. + */ + label_user_creator?: ILabelUser; + /** + * The content of the note. + */ + content?: string; +} + +export interface INoteTextSchedulePaymentBatchDelete {} + +export interface INoteTextSchedulePaymentBatchCreate { + /** + * The id of the created item + */ + Id?: BunqId; +} + +export interface INoteTextSchedulePaymentBatch { + /** + * The content of the note. + */ + content?: string; +} + +export interface INoteTextSchedulePayment { + /** + * The content of the note. + */ + content?: string; +} + +export interface INoteTextScheduleInstanceUpdate { + /** + * The id of the created item + */ + Id?: BunqId; +} + +export interface INoteTextScheduleInstanceRead { + /** + * The id of the note. + */ + id?: number; + /** + * The timestamp of the note's creation. + */ + created?: string; + /** + * The timestamp of the note's last update. + */ + updated?: string; + /** + * The label of the user who created this note. + */ + label_user_creator?: ILabelUser; + /** + * The content of the note. + */ + content?: string; +} + +export interface INoteTextScheduleInstanceListing { + /** + * The id of the note. + */ + id?: number; + /** + * The timestamp of the note's creation. + */ + created?: string; + /** + * The timestamp of the note's last update. + */ + updated?: string; + /** + * The label of the user who created this note. + */ + label_user_creator?: ILabelUser; + /** + * The content of the note. + */ + content?: string; +} + +export interface INoteTextScheduleInstanceDelete {} + +export interface INoteTextScheduleInstanceCreate { + /** + * The id of the created item + */ + Id?: BunqId; +} + +export interface INoteTextScheduleInstance { + /** + * The content of the note. + */ + content?: string; +} + +export interface INoteTextRequestResponseUpdate { + /** + * The id of the created item + */ + Id?: BunqId; +} + +export interface INoteTextRequestResponseRead { + /** + * The id of the note. + */ + id?: number; + /** + * The timestamp of the note's creation. + */ + created?: string; + /** + * The timestamp of the note's last update. + */ + updated?: string; + /** + * The label of the user who created this note. + */ + label_user_creator?: ILabelUser; + /** + * The content of the note. + */ + content?: string; +} + +export interface INoteTextRequestResponseListing { + /** + * The id of the note. + */ + id?: number; + /** + * The timestamp of the note's creation. + */ + created?: string; + /** + * The timestamp of the note's last update. + */ + updated?: string; + /** + * The label of the user who created this note. + */ + label_user_creator?: ILabelUser; + /** + * The content of the note. + */ + content?: string; +} + +export interface INoteTextRequestResponseDelete {} + +export interface INoteTextRequestResponseCreate { + /** + * The id of the created item + */ + Id?: BunqId; +} + +export interface INoteTextRequestResponse { + /** + * The content of the note. + */ + content?: string; +} + +export interface INoteTextRequestInquiryUpdate { + /** + * The id of the created item + */ + Id?: BunqId; +} + +export interface INoteTextRequestInquiryRead { + /** + * The id of the note. + */ + id?: number; + /** + * The timestamp of the note's creation. + */ + created?: string; + /** + * The timestamp of the note's last update. + */ + updated?: string; + /** + * The label of the user who created this note. + */ + label_user_creator?: ILabelUser; + /** + * The content of the note. + */ + content?: string; +} + +export interface INoteTextRequestInquiryListing { + /** + * The id of the note. + */ + id?: number; + /** + * The timestamp of the note's creation. + */ + created?: string; + /** + * The timestamp of the note's last update. + */ + updated?: string; + /** + * The label of the user who created this note. + */ + label_user_creator?: ILabelUser; + /** + * The content of the note. + */ + content?: string; +} + +export interface INoteTextRequestInquiryDelete {} + +export interface INoteTextRequestInquiryCreate { + /** + * The id of the created item + */ + Id?: BunqId; +} + +export interface INoteTextRequestInquiryBatchUpdate { + /** + * The id of the created item + */ + Id?: BunqId; +} + +export interface INoteTextRequestInquiryBatchRead { + /** + * The id of the note. + */ + id?: number; + /** + * The timestamp of the note's creation. + */ + created?: string; + /** + * The timestamp of the note's last update. + */ + updated?: string; + /** + * The label of the user who created this note. + */ + label_user_creator?: ILabelUser; + /** + * The content of the note. + */ + content?: string; +} + +export interface INoteTextRequestInquiryBatchListing { + /** + * The id of the note. + */ + id?: number; + /** + * The timestamp of the note's creation. + */ + created?: string; + /** + * The timestamp of the note's last update. + */ + updated?: string; + /** + * The label of the user who created this note. + */ + label_user_creator?: ILabelUser; + /** + * The content of the note. + */ + content?: string; +} + +export interface INoteTextRequestInquiryBatchDelete {} + +export interface INoteTextRequestInquiryBatchCreate { + /** + * The id of the created item + */ + Id?: BunqId; +} + +export interface INoteTextRequestInquiryBatch { + /** + * The content of the note. + */ + content?: string; +} + +export interface INoteTextRequestInquiry { + /** + * The content of the note. + */ + content?: string; +} + +export interface INoteTextPaymentUpdate { + /** + * The id of the created item + */ + Id?: BunqId; +} + +export interface INoteTextPaymentRead { + /** + * The id of the note. + */ + id?: number; + /** + * The timestamp of the note's creation. + */ + created?: string; + /** + * The timestamp of the note's last update. + */ + updated?: string; + /** + * The label of the user who created this note. + */ + label_user_creator?: ILabelUser; + /** + * The content of the note. + */ + content?: string; +} + +export interface INoteTextPaymentListing { + /** + * The id of the note. + */ + id?: number; + /** + * The timestamp of the note's creation. + */ + created?: string; + /** + * The timestamp of the note's last update. + */ + updated?: string; + /** + * The label of the user who created this note. + */ + label_user_creator?: ILabelUser; + /** + * The content of the note. + */ + content?: string; +} + +export interface INoteTextPaymentDelete {} + +export interface INoteTextPaymentCreate { + /** + * The id of the created item + */ + Id?: BunqId; +} + +export interface INoteTextPaymentBatchUpdate { + /** + * The id of the created item + */ + Id?: BunqId; +} + +export interface INoteTextPaymentBatchRead { + /** + * The id of the note. + */ + id?: number; + /** + * The timestamp of the note's creation. + */ + created?: string; + /** + * The timestamp of the note's last update. + */ + updated?: string; + /** + * The label of the user who created this note. + */ + label_user_creator?: ILabelUser; + /** + * The content of the note. + */ + content?: string; +} + +export interface INoteTextPaymentBatchListing { + /** + * The id of the note. + */ + id?: number; + /** + * The timestamp of the note's creation. + */ + created?: string; + /** + * The timestamp of the note's last update. + */ + updated?: string; + /** + * The label of the user who created this note. + */ + label_user_creator?: ILabelUser; + /** + * The content of the note. + */ + content?: string; +} + +export interface INoteTextPaymentBatchDelete {} + +export interface INoteTextPaymentBatchCreate { + /** + * The id of the created item + */ + Id?: BunqId; +} + +export interface INoteTextPaymentBatch { + /** + * The content of the note. + */ + content?: string; +} + +export interface INoteTextPayment { + /** + * The content of the note. + */ + content?: string; +} + +export interface INoteTextMasterCardActionUpdate { + /** + * The id of the created item + */ + Id?: BunqId; +} + +export interface INoteTextMasterCardActionRead { + /** + * The id of the note. + */ + id?: number; + /** + * The timestamp of the note's creation. + */ + created?: string; + /** + * The timestamp of the note's last update. + */ + updated?: string; + /** + * The label of the user who created this note. + */ + label_user_creator?: ILabelUser; + /** + * The content of the note. + */ + content?: string; +} + +export interface INoteTextMasterCardActionListing { + /** + * The id of the note. + */ + id?: number; + /** + * The timestamp of the note's creation. + */ + created?: string; + /** + * The timestamp of the note's last update. + */ + updated?: string; + /** + * The label of the user who created this note. + */ + label_user_creator?: ILabelUser; + /** + * The content of the note. + */ + content?: string; +} + +export interface INoteTextMasterCardActionDelete {} + +export interface INoteTextMasterCardActionCreate { + /** + * The id of the created item + */ + Id?: BunqId; +} + +export interface INoteTextMasterCardAction { + /** + * The content of the note. + */ + content?: string; +} + +export interface INoteTextIdealMerchantTransactionUpdate { + /** + * The id of the created item + */ + Id?: BunqId; +} + +export interface INoteTextIdealMerchantTransactionRead { + /** + * The id of the note. + */ + id?: number; + /** + * The timestamp of the note's creation. + */ + created?: string; + /** + * The timestamp of the note's last update. + */ + updated?: string; + /** + * The label of the user who created this note. + */ + label_user_creator?: ILabelUser; + /** + * The content of the note. + */ + content?: string; +} + +export interface INoteTextIdealMerchantTransactionListing { + /** + * The id of the note. + */ + id?: number; + /** + * The timestamp of the note's creation. + */ + created?: string; + /** + * The timestamp of the note's last update. + */ + updated?: string; + /** + * The label of the user who created this note. + */ + label_user_creator?: ILabelUser; + /** + * The content of the note. + */ + content?: string; +} + +export interface INoteTextIdealMerchantTransactionDelete {} + +export interface INoteTextIdealMerchantTransactionCreate { + /** + * The id of the created item + */ + Id?: BunqId; +} + +export interface INoteTextIdealMerchantTransaction { + /** + * The content of the note. + */ + content?: string; +} + +export interface INoteTextDraftPaymentUpdate { + /** + * The id of the created item + */ + Id?: BunqId; +} + +export interface INoteTextDraftPaymentRead { + /** + * The id of the note. + */ + id?: number; + /** + * The timestamp of the note's creation. + */ + created?: string; + /** + * The timestamp of the note's last update. + */ + updated?: string; + /** + * The label of the user who created this note. + */ + label_user_creator?: ILabelUser; + /** + * The content of the note. + */ + content?: string; +} + +export interface INoteTextDraftPaymentListing { + /** + * The id of the note. + */ + id?: number; + /** + * The timestamp of the note's creation. + */ + created?: string; + /** + * The timestamp of the note's last update. + */ + updated?: string; + /** + * The label of the user who created this note. + */ + label_user_creator?: ILabelUser; + /** + * The content of the note. + */ + content?: string; +} + +export interface INoteTextDraftPaymentDelete {} + +export interface INoteTextDraftPaymentCreate { + /** + * The id of the created item + */ + Id?: BunqId; +} + +export interface INoteTextDraftPayment { + /** + * The content of the note. + */ + content?: string; +} + +export interface INoteTextBunqMeFundraiserResultUpdate { + /** + * The id of the created item + */ + Id?: BunqId; +} + +export interface INoteTextBunqMeFundraiserResultRead { + /** + * The id of the note. + */ + id?: number; + /** + * The timestamp of the note's creation. + */ + created?: string; + /** + * The timestamp of the note's last update. + */ + updated?: string; + /** + * The label of the user who created this note. + */ + label_user_creator?: ILabelUser; + /** + * The content of the note. + */ + content?: string; +} + +export interface INoteTextBunqMeFundraiserResultListing { + /** + * The id of the note. + */ + id?: number; + /** + * The timestamp of the note's creation. + */ + created?: string; + /** + * The timestamp of the note's last update. + */ + updated?: string; + /** + * The label of the user who created this note. + */ + label_user_creator?: ILabelUser; + /** + * The content of the note. + */ + content?: string; +} + +export interface INoteTextBunqMeFundraiserResultDelete {} + +export interface INoteTextBunqMeFundraiserResultCreate { + /** + * The id of the created item + */ + Id?: BunqId; +} + +export interface INoteTextBunqMeFundraiserResult { + /** + * The content of the note. + */ + content?: string; +} + +export interface INoteTextBankSwitchServiceNetherlandsIncomingPaymentUpdate { + /** + * The id of the created item + */ + Id?: BunqId; +} + +export interface INoteTextBankSwitchServiceNetherlandsIncomingPaymentRead { + /** + * The id of the note. + */ + id?: number; + /** + * The timestamp of the note's creation. + */ + created?: string; + /** + * The timestamp of the note's last update. + */ + updated?: string; + /** + * The label of the user who created this note. + */ + label_user_creator?: ILabelUser; + /** + * The content of the note. + */ + content?: string; +} + +export interface INoteTextBankSwitchServiceNetherlandsIncomingPaymentListing { + /** + * The id of the note. + */ + id?: number; + /** + * The timestamp of the note's creation. + */ + created?: string; + /** + * The timestamp of the note's last update. + */ + updated?: string; + /** + * The label of the user who created this note. + */ + label_user_creator?: ILabelUser; + /** + * The content of the note. + */ + content?: string; +} + +export interface INoteTextBankSwitchServiceNetherlandsIncomingPaymentDelete {} + +export interface INoteTextBankSwitchServiceNetherlandsIncomingPaymentCreate { + /** + * The id of the created item + */ + Id?: BunqId; +} + +export interface INoteTextBankSwitchServiceNetherlandsIncomingPayment { + /** + * The content of the note. + */ + content?: string; +} + +export interface INoteAttachmentWhitelistResultUpdate { + /** + * The id of the created item + */ + Id?: BunqId; +} + +export interface INoteAttachmentWhitelistResultRead { + /** + * The id of the note. + */ + id?: number; + /** + * The timestamp of the note's creation. + */ + created?: string; + /** + * The timestamp of the note's last update. + */ + updated?: string; + /** + * The label of the user who created this note. + */ + label_user_creator?: ILabelUser; + /** + * Optional description of the attachment. + */ + description?: string; + /** + * The attachment attached to the note. + */ + attachment?: Array; +} + +export interface INoteAttachmentWhitelistResultListing { + /** + * The id of the note. + */ + id?: number; + /** + * The timestamp of the note's creation. + */ + created?: string; + /** + * The timestamp of the note's last update. + */ + updated?: string; + /** + * The label of the user who created this note. + */ + label_user_creator?: ILabelUser; + /** + * Optional description of the attachment. + */ + description?: string; + /** + * The attachment attached to the note. + */ + attachment?: Array; +} + +export interface INoteAttachmentWhitelistResultDelete {} + +export interface INoteAttachmentWhitelistResultCreate { + /** + * The id of the created item + */ + Id?: BunqId; +} + +export interface INoteAttachmentWhitelistResult { + /** + * Optional description of the attachment. + */ + description?: string; + /** + * The reference to the uploaded file to attach to this note. + */ + attachment_id: number; +} + +export interface INoteAttachmentSofortMerchantTransactionUpdate { + /** + * The id of the created item + */ + Id?: BunqId; +} + +export interface INoteAttachmentSofortMerchantTransactionRead { + /** + * The id of the note. + */ + id?: number; + /** + * The timestamp of the note's creation. + */ + created?: string; + /** + * The timestamp of the note's last update. + */ + updated?: string; + /** + * The label of the user who created this note. + */ + label_user_creator?: ILabelUser; + /** + * Optional description of the attachment. + */ + description?: string; + /** + * The attachment attached to the note. + */ + attachment?: Array; +} + +export interface INoteAttachmentSofortMerchantTransactionListing { + /** + * The id of the note. + */ + id?: number; + /** + * The timestamp of the note's creation. + */ + created?: string; + /** + * The timestamp of the note's last update. + */ + updated?: string; + /** + * The label of the user who created this note. + */ + label_user_creator?: ILabelUser; + /** + * Optional description of the attachment. + */ + description?: string; + /** + * The attachment attached to the note. + */ + attachment?: Array; +} + +export interface INoteAttachmentSofortMerchantTransactionDelete {} + +export interface INoteAttachmentSofortMerchantTransactionCreate { + /** + * The id of the created item + */ + Id?: BunqId; +} + +export interface INoteAttachmentSofortMerchantTransaction { + /** + * Optional description of the attachment. + */ + description?: string; + /** + * The reference to the uploaded file to attach to this note. + */ + attachment_id: number; +} + +export interface INoteAttachmentSchedulePaymentUpdate { + /** + * The id of the created item + */ + Id?: BunqId; +} + +export interface INoteAttachmentSchedulePaymentRead { + /** + * The id of the note. + */ + id?: number; + /** + * The timestamp of the note's creation. + */ + created?: string; + /** + * The timestamp of the note's last update. + */ + updated?: string; + /** + * The label of the user who created this note. + */ + label_user_creator?: ILabelUser; + /** + * Optional description of the attachment. + */ + description?: string; + /** + * The attachment attached to the note. + */ + attachment?: Array; +} + +export interface INoteAttachmentSchedulePaymentListing { + /** + * The id of the note. + */ + id?: number; + /** + * The timestamp of the note's creation. + */ + created?: string; + /** + * The timestamp of the note's last update. + */ + updated?: string; + /** + * The label of the user who created this note. + */ + label_user_creator?: ILabelUser; + /** + * Optional description of the attachment. + */ + description?: string; + /** + * The attachment attached to the note. + */ + attachment?: Array; +} + +export interface INoteAttachmentSchedulePaymentDelete {} + +export interface INoteAttachmentSchedulePaymentCreate { + /** + * The id of the created item + */ + Id?: BunqId; +} + +export interface INoteAttachmentSchedulePaymentBatchUpdate { + /** + * The id of the created item + */ + Id?: BunqId; +} + +export interface INoteAttachmentSchedulePaymentBatchRead { + /** + * The id of the note. + */ + id?: number; + /** + * The timestamp of the note's creation. + */ + created?: string; + /** + * The timestamp of the note's last update. + */ + updated?: string; + /** + * The label of the user who created this note. + */ + label_user_creator?: ILabelUser; + /** + * Optional description of the attachment. + */ + description?: string; + /** + * The attachment attached to the note. + */ + attachment?: Array; +} + +export interface INoteAttachmentSchedulePaymentBatchListing { + /** + * The id of the note. + */ + id?: number; + /** + * The timestamp of the note's creation. + */ + created?: string; + /** + * The timestamp of the note's last update. + */ + updated?: string; + /** + * The label of the user who created this note. + */ + label_user_creator?: ILabelUser; + /** + * Optional description of the attachment. + */ + description?: string; + /** + * The attachment attached to the note. + */ + attachment?: Array; +} + +export interface INoteAttachmentSchedulePaymentBatchDelete {} + +export interface INoteAttachmentSchedulePaymentBatchCreate { + /** + * The id of the created item + */ + Id?: BunqId; +} + +export interface INoteAttachmentSchedulePaymentBatch { + /** + * Optional description of the attachment. + */ + description?: string; + /** + * The reference to the uploaded file to attach to this note. + */ + attachment_id: number; +} + +export interface INoteAttachmentSchedulePayment { + /** + * Optional description of the attachment. + */ + description?: string; + /** + * The reference to the uploaded file to attach to this note. + */ + attachment_id: number; +} + +export interface INoteAttachmentScheduleInstanceUpdate { + /** + * The id of the created item + */ + Id?: BunqId; +} + +export interface INoteAttachmentScheduleInstanceRead { + /** + * The id of the note. + */ + id?: number; + /** + * The timestamp of the note's creation. + */ + created?: string; + /** + * The timestamp of the note's last update. + */ + updated?: string; + /** + * The label of the user who created this note. + */ + label_user_creator?: ILabelUser; + /** + * Optional description of the attachment. + */ + description?: string; + /** + * The attachment attached to the note. + */ + attachment?: Array; +} + +export interface INoteAttachmentScheduleInstanceListing { + /** + * The id of the note. + */ + id?: number; + /** + * The timestamp of the note's creation. + */ + created?: string; + /** + * The timestamp of the note's last update. + */ + updated?: string; + /** + * The label of the user who created this note. + */ + label_user_creator?: ILabelUser; + /** + * Optional description of the attachment. + */ + description?: string; + /** + * The attachment attached to the note. + */ + attachment?: Array; +} + +export interface INoteAttachmentScheduleInstanceDelete {} + +export interface INoteAttachmentScheduleInstanceCreate { + /** + * The id of the created item + */ + Id?: BunqId; +} + +export interface INoteAttachmentScheduleInstance { + /** + * Optional description of the attachment. + */ + description?: string; + /** + * The reference to the uploaded file to attach to this note. + */ + attachment_id: number; +} + +export interface INoteAttachmentRequestResponseUpdate { + /** + * The id of the created item + */ + Id?: BunqId; +} + +export interface INoteAttachmentRequestResponseRead { + /** + * The id of the note. + */ + id?: number; + /** + * The timestamp of the note's creation. + */ + created?: string; + /** + * The timestamp of the note's last update. + */ + updated?: string; + /** + * The label of the user who created this note. + */ + label_user_creator?: ILabelUser; + /** + * Optional description of the attachment. + */ + description?: string; + /** + * The attachment attached to the note. + */ + attachment?: Array; +} + +export interface INoteAttachmentRequestResponseListing { + /** + * The id of the note. + */ + id?: number; + /** + * The timestamp of the note's creation. + */ + created?: string; + /** + * The timestamp of the note's last update. + */ + updated?: string; + /** + * The label of the user who created this note. + */ + label_user_creator?: ILabelUser; + /** + * Optional description of the attachment. + */ + description?: string; + /** + * The attachment attached to the note. + */ + attachment?: Array; +} + +export interface INoteAttachmentRequestResponseDelete {} + +export interface INoteAttachmentRequestResponseCreate { + /** + * The id of the created item + */ + Id?: BunqId; +} + +export interface INoteAttachmentRequestResponse { + /** + * Optional description of the attachment. + */ + description?: string; + /** + * The reference to the uploaded file to attach to this note. + */ + attachment_id: number; +} + +export interface INoteAttachmentRequestInquiryUpdate { + /** + * The id of the created item + */ + Id?: BunqId; +} + +export interface INoteAttachmentRequestInquiryRead { + /** + * The id of the note. + */ + id?: number; + /** + * The timestamp of the note's creation. + */ + created?: string; + /** + * The timestamp of the note's last update. + */ + updated?: string; + /** + * The label of the user who created this note. + */ + label_user_creator?: ILabelUser; + /** + * Optional description of the attachment. + */ + description?: string; + /** + * The attachment attached to the note. + */ + attachment?: Array; +} + +export interface INoteAttachmentRequestInquiryListing { + /** + * The id of the note. + */ + id?: number; + /** + * The timestamp of the note's creation. + */ + created?: string; + /** + * The timestamp of the note's last update. + */ + updated?: string; + /** + * The label of the user who created this note. + */ + label_user_creator?: ILabelUser; + /** + * Optional description of the attachment. + */ + description?: string; + /** + * The attachment attached to the note. + */ + attachment?: Array; +} + +export interface INoteAttachmentRequestInquiryDelete {} + +export interface INoteAttachmentRequestInquiryCreate { + /** + * The id of the created item + */ + Id?: BunqId; +} + +export interface INoteAttachmentRequestInquiryBatchUpdate { + /** + * The id of the created item + */ + Id?: BunqId; +} + +export interface INoteAttachmentRequestInquiryBatchRead { + /** + * The id of the note. + */ + id?: number; + /** + * The timestamp of the note's creation. + */ + created?: string; + /** + * The timestamp of the note's last update. + */ + updated?: string; + /** + * The label of the user who created this note. + */ + label_user_creator?: ILabelUser; + /** + * Optional description of the attachment. + */ + description?: string; + /** + * The attachment attached to the note. + */ + attachment?: Array; +} + +export interface INoteAttachmentRequestInquiryBatchListing { + /** + * The id of the note. + */ + id?: number; + /** + * The timestamp of the note's creation. + */ + created?: string; + /** + * The timestamp of the note's last update. + */ + updated?: string; + /** + * The label of the user who created this note. + */ + label_user_creator?: ILabelUser; + /** + * Optional description of the attachment. + */ + description?: string; + /** + * The attachment attached to the note. + */ + attachment?: Array; +} + +export interface INoteAttachmentRequestInquiryBatchDelete {} + +export interface INoteAttachmentRequestInquiryBatchCreate { + /** + * The id of the created item + */ + Id?: BunqId; +} + +export interface INoteAttachmentRequestInquiryBatch { + /** + * Optional description of the attachment. + */ + description?: string; + /** + * The reference to the uploaded file to attach to this note. + */ + attachment_id: number; +} + +export interface INoteAttachmentRequestInquiry { + /** + * Optional description of the attachment. + */ + description?: string; + /** + * The reference to the uploaded file to attach to this note. + */ + attachment_id: number; +} + +export interface INoteAttachmentPaymentUpdate { + /** + * The id of the created item + */ + Id?: BunqId; +} + +export interface INoteAttachmentPaymentRead { + /** + * The id of the note. + */ + id?: number; + /** + * The timestamp of the note's creation. + */ + created?: string; + /** + * The timestamp of the note's last update. + */ + updated?: string; + /** + * The label of the user who created this note. + */ + label_user_creator?: ILabelUser; + /** + * Optional description of the attachment. + */ + description?: string; + /** + * The attachment attached to the note. + */ + attachment?: Array; +} + +export interface INoteAttachmentPaymentListing { + /** + * The id of the note. + */ + id?: number; + /** + * The timestamp of the note's creation. + */ + created?: string; + /** + * The timestamp of the note's last update. + */ + updated?: string; + /** + * The label of the user who created this note. + */ + label_user_creator?: ILabelUser; + /** + * Optional description of the attachment. + */ + description?: string; + /** + * The attachment attached to the note. + */ + attachment?: Array; +} + +export interface INoteAttachmentPaymentDelete {} + +export interface INoteAttachmentPaymentCreate { + /** + * The id of the created item + */ + Id?: BunqId; +} + +export interface INoteAttachmentPaymentBatchUpdate { + /** + * The id of the created item + */ + Id?: BunqId; +} + +export interface INoteAttachmentPaymentBatchRead { + /** + * The id of the note. + */ + id?: number; + /** + * The timestamp of the note's creation. + */ + created?: string; + /** + * The timestamp of the note's last update. + */ + updated?: string; + /** + * The label of the user who created this note. + */ + label_user_creator?: ILabelUser; + /** + * Optional description of the attachment. + */ + description?: string; + /** + * The attachment attached to the note. + */ + attachment?: Array; +} + +export interface INoteAttachmentPaymentBatchListing { + /** + * The id of the note. + */ + id?: number; + /** + * The timestamp of the note's creation. + */ + created?: string; + /** + * The timestamp of the note's last update. + */ + updated?: string; + /** + * The label of the user who created this note. + */ + label_user_creator?: ILabelUser; + /** + * Optional description of the attachment. + */ + description?: string; + /** + * The attachment attached to the note. + */ + attachment?: Array; +} + +export interface INoteAttachmentPaymentBatchDelete {} + +export interface INoteAttachmentPaymentBatchCreate { + /** + * The id of the created item + */ + Id?: BunqId; +} + +export interface INoteAttachmentPaymentBatch { + /** + * Optional description of the attachment. + */ + description?: string; + /** + * The reference to the uploaded file to attach to this note. + */ + attachment_id: number; +} + +export interface INoteAttachmentPayment { + /** + * Optional description of the attachment. + */ + description?: string; + /** + * The reference to the uploaded file to attach to this note. + */ + attachment_id: number; +} + +export interface INoteAttachmentMasterCardActionUpdate { + /** + * The id of the created item + */ + Id?: BunqId; +} + +export interface INoteAttachmentMasterCardActionRead { + /** + * The id of the note. + */ + id?: number; + /** + * The timestamp of the note's creation. + */ + created?: string; + /** + * The timestamp of the note's last update. + */ + updated?: string; + /** + * The label of the user who created this note. + */ + label_user_creator?: ILabelUser; + /** + * Optional description of the attachment. + */ + description?: string; + /** + * The attachment attached to the note. + */ + attachment?: Array; +} + +export interface INoteAttachmentMasterCardActionListing { + /** + * The id of the note. + */ + id?: number; + /** + * The timestamp of the note's creation. + */ + created?: string; + /** + * The timestamp of the note's last update. + */ + updated?: string; + /** + * The label of the user who created this note. + */ + label_user_creator?: ILabelUser; + /** + * Optional description of the attachment. + */ + description?: string; + /** + * The attachment attached to the note. + */ + attachment?: Array; +} + +export interface INoteAttachmentMasterCardActionDelete {} + +export interface INoteAttachmentMasterCardActionCreate { + /** + * The id of the created item + */ + Id?: BunqId; +} + +export interface INoteAttachmentMasterCardAction { + /** + * Optional description of the attachment. + */ + description?: string; + /** + * The reference to the uploaded file to attach to this note. + */ + attachment_id: number; +} + +export interface INoteAttachmentIdealMerchantTransactionUpdate { + /** + * The id of the created item + */ + Id?: BunqId; +} + +export interface INoteAttachmentIdealMerchantTransactionRead { + /** + * The id of the note. + */ + id?: number; + /** + * The timestamp of the note's creation. + */ + created?: string; + /** + * The timestamp of the note's last update. + */ + updated?: string; + /** + * The label of the user who created this note. + */ + label_user_creator?: ILabelUser; + /** + * Optional description of the attachment. + */ + description?: string; + /** + * The attachment attached to the note. + */ + attachment?: Array; +} + +export interface INoteAttachmentIdealMerchantTransactionListing { + /** + * The id of the note. + */ + id?: number; + /** + * The timestamp of the note's creation. + */ + created?: string; + /** + * The timestamp of the note's last update. + */ + updated?: string; + /** + * The label of the user who created this note. + */ + label_user_creator?: ILabelUser; + /** + * Optional description of the attachment. + */ + description?: string; + /** + * The attachment attached to the note. + */ + attachment?: Array; +} + +export interface INoteAttachmentIdealMerchantTransactionDelete {} + +export interface INoteAttachmentIdealMerchantTransactionCreate { + /** + * The id of the created item + */ + Id?: BunqId; +} + +export interface INoteAttachmentIdealMerchantTransaction { + /** + * Optional description of the attachment. + */ + description?: string; + /** + * The reference to the uploaded file to attach to this note. + */ + attachment_id: number; +} + +export interface INoteAttachmentDraftPaymentUpdate { + /** + * The id of the created item + */ + Id?: BunqId; +} + +export interface INoteAttachmentDraftPaymentRead { + /** + * The id of the note. + */ + id?: number; + /** + * The timestamp of the note's creation. + */ + created?: string; + /** + * The timestamp of the note's last update. + */ + updated?: string; + /** + * The label of the user who created this note. + */ + label_user_creator?: ILabelUser; + /** + * Optional description of the attachment. + */ + description?: string; + /** + * The attachment attached to the note. + */ + attachment?: Array; +} + +export interface INoteAttachmentDraftPaymentListing { + /** + * The id of the note. + */ + id?: number; + /** + * The timestamp of the note's creation. + */ + created?: string; + /** + * The timestamp of the note's last update. + */ + updated?: string; + /** + * The label of the user who created this note. + */ + label_user_creator?: ILabelUser; + /** + * Optional description of the attachment. + */ + description?: string; + /** + * The attachment attached to the note. + */ + attachment?: Array; +} + +export interface INoteAttachmentDraftPaymentDelete {} + +export interface INoteAttachmentDraftPaymentCreate { + /** + * The id of the created item + */ + Id?: BunqId; +} + +export interface INoteAttachmentDraftPayment { + /** + * Optional description of the attachment. + */ + description?: string; + /** + * The reference to the uploaded file to attach to this note. + */ + attachment_id: number; +} + +export interface INoteAttachmentBunqMeFundraiserResultUpdate { + /** + * The id of the created item + */ + Id?: BunqId; +} + +export interface INoteAttachmentBunqMeFundraiserResultRead { + /** + * The id of the note. + */ + id?: number; + /** + * The timestamp of the note's creation. + */ + created?: string; + /** + * The timestamp of the note's last update. + */ + updated?: string; + /** + * The label of the user who created this note. + */ + label_user_creator?: ILabelUser; + /** + * Optional description of the attachment. + */ + description?: string; + /** + * The attachment attached to the note. + */ + attachment?: Array; +} + +export interface INoteAttachmentBunqMeFundraiserResultListing { + /** + * The id of the note. + */ + id?: number; + /** + * The timestamp of the note's creation. + */ + created?: string; + /** + * The timestamp of the note's last update. + */ + updated?: string; + /** + * The label of the user who created this note. + */ + label_user_creator?: ILabelUser; + /** + * Optional description of the attachment. + */ + description?: string; + /** + * The attachment attached to the note. + */ + attachment?: Array; +} + +export interface INoteAttachmentBunqMeFundraiserResultDelete {} + +export interface INoteAttachmentBunqMeFundraiserResultCreate { + /** + * The id of the created item + */ + Id?: BunqId; +} + +export interface INoteAttachmentBunqMeFundraiserResult { + /** + * Optional description of the attachment. + */ + description?: string; + /** + * The reference to the uploaded file to attach to this note. + */ + attachment_id: number; +} + +export interface INoteAttachmentBankSwitchServiceNetherlandsIncomingPaymentUpdate { + /** + * The id of the created item + */ + Id?: BunqId; +} + +export interface INoteAttachmentBankSwitchServiceNetherlandsIncomingPaymentRead { + /** + * The id of the note. + */ + id?: number; + /** + * The timestamp of the note's creation. + */ + created?: string; + /** + * The timestamp of the note's last update. + */ + updated?: string; + /** + * The label of the user who created this note. + */ + label_user_creator?: ILabelUser; + /** + * Optional description of the attachment. + */ + description?: string; + /** + * The attachment attached to the note. + */ + attachment?: Array; +} + +export interface INoteAttachmentBankSwitchServiceNetherlandsIncomingPaymentListing { + /** + * The id of the note. + */ + id?: number; + /** + * The timestamp of the note's creation. + */ + created?: string; + /** + * The timestamp of the note's last update. + */ + updated?: string; + /** + * The label of the user who created this note. + */ + label_user_creator?: ILabelUser; + /** + * Optional description of the attachment. + */ + description?: string; + /** + * The attachment attached to the note. + */ + attachment?: Array; +} + +export interface INoteAttachmentBankSwitchServiceNetherlandsIncomingPaymentDelete {} + +export interface INoteAttachmentBankSwitchServiceNetherlandsIncomingPaymentCreate { + /** + * The id of the created item + */ + Id?: BunqId; +} + +export interface INoteAttachmentBankSwitchServiceNetherlandsIncomingPayment { + /** + * Optional description of the attachment. + */ + description?: string; + /** + * The reference to the uploaded file to attach to this note. + */ + attachment_id: number; +} + +export interface IMonetaryAccountSetting { + /** + * The color chosen for the MonetaryAccount. + */ + color?: string; + /** + * The icon chosen for the MonetaryAccount. + */ + icon?: string; + /** + * The status of the avatar. Can be either AVATAR_DEFAULT, AVATAR_CUSTOM or AVATAR_UNDETERMINED. + */ + default_avatar_status?: string; + /** + * The chat restriction. Possible values are ALLOW_INCOMING or BLOCK_INCOMING + */ + restriction_chat?: string; +} + +export interface IMonetaryAccountSavingsUpdate { + /** + * The id of the created item + */ + Id?: BunqId; +} + +export interface IMonetaryAccountSavingsRead { + /** + * The id of the MonetaryAccountSavings. + */ + id?: number; + /** + * The timestamp of the MonetaryAccountSavings's creation. + */ + created?: string; + /** + * The timestamp of the MonetaryAccountSavings's last update. + */ + updated?: string; + /** + * The Avatar of the MonetaryAccountSavings. + */ + avatar?: IAvatar; + /** + * The currency of the MonetaryAccountSavings as an ISO 4217 formatted currency code. + */ + currency?: string; + /** + * The description of the MonetaryAccountSavings. Defaults to 'bunq account'. + */ + description?: string; + /** + * The daily spending limit Amount of the MonetaryAccountSavings. Defaults to 1000 EUR. Currency must match the MonetaryAccountSavings's currency. Limited to 10000 EUR. + */ + daily_limit?: IAmount; + /** + * The maximum Amount the MonetaryAccountSavings can be 'in the red'. Must be 0 EUR or omitted. + */ + overdraft_limit?: IAmount; + /** + * The current available balance Amount of the MonetaryAccountSavings. + */ + balance?: IAmount; + /** + * The Aliases for the MonetaryAccountSavings. + */ + alias?: Array; + /** + * The MonetaryAccountSavings's public UUID. + */ + public_uuid?: string; + /** + * The status of the MonetaryAccountSavings. Can be: ACTIVE, BLOCKED, CANCELLED or PENDING_REOPEN + */ + status?: string; + /** + * The sub-status of the MonetaryAccountSavings providing extra information regarding the status. Will be NONE for ACTIVE or PENDING_REOPEN, COMPLETELY or ONLY_ACCEPTING_INCOMING for BLOCKED and REDEMPTION_INVOLUNTARY, REDEMPTION_VOLUNTARY or PERMANENT for CANCELLED. + */ + sub_status?: string; + /** + * The reason for voluntarily cancelling (closing) the MonetaryAccountSavings, can only be OTHER. + */ + reason?: string; + /** + * The optional free-form reason for voluntarily cancelling (closing) the MonetaryAccountSavings. Can be any user provided message. + */ + reason_description?: string; + /** + * The users the account will be joint with. + */ + all_co_owner?: Array; + /** + * The id of the User who owns the MonetaryAccountSavings. + */ + user_id?: number; + /** + * The profile of the account. + */ + monetary_account_profile?: IMonetaryAccountProfile; + /** + * The settings of the MonetaryAccountSavings. + */ + setting?: IMonetaryAccountSetting; + /** + * The Savings Goal set for this MonetaryAccountSavings. + */ + savings_goal?: IAmount; + /** + * The progress in percentages for the Savings Goal set for this MonetaryAccountSavings. + */ + savings_goal_progress?: number; + /** + * The id of the AutoSave. + */ + auto_save_id?: number; + /** + * The ids of the AutoSave. + */ + all_auto_save_id?: Array; +} + +export interface IMonetaryAccountSavingsListing { + /** + * The id of the MonetaryAccountSavings. + */ + id?: number; + /** + * The timestamp of the MonetaryAccountSavings's creation. + */ + created?: string; + /** + * The timestamp of the MonetaryAccountSavings's last update. + */ + updated?: string; + /** + * The Avatar of the MonetaryAccountSavings. + */ + avatar?: IAvatar; + /** + * The currency of the MonetaryAccountSavings as an ISO 4217 formatted currency code. + */ + currency?: string; + /** + * The description of the MonetaryAccountSavings. Defaults to 'bunq account'. + */ + description?: string; + /** + * The daily spending limit Amount of the MonetaryAccountSavings. Defaults to 1000 EUR. Currency must match the MonetaryAccountSavings's currency. Limited to 10000 EUR. + */ + daily_limit?: IAmount; + /** + * The maximum Amount the MonetaryAccountSavings can be 'in the red'. Must be 0 EUR or omitted. + */ + overdraft_limit?: IAmount; + /** + * The current available balance Amount of the MonetaryAccountSavings. + */ + balance?: IAmount; + /** + * The Aliases for the MonetaryAccountSavings. + */ + alias?: Array; + /** + * The MonetaryAccountSavings's public UUID. + */ + public_uuid?: string; + /** + * The status of the MonetaryAccountSavings. Can be: ACTIVE, BLOCKED, CANCELLED or PENDING_REOPEN + */ + status?: string; + /** + * The sub-status of the MonetaryAccountSavings providing extra information regarding the status. Will be NONE for ACTIVE or PENDING_REOPEN, COMPLETELY or ONLY_ACCEPTING_INCOMING for BLOCKED and REDEMPTION_INVOLUNTARY, REDEMPTION_VOLUNTARY or PERMANENT for CANCELLED. + */ + sub_status?: string; + /** + * The reason for voluntarily cancelling (closing) the MonetaryAccountSavings, can only be OTHER. + */ + reason?: string; + /** + * The optional free-form reason for voluntarily cancelling (closing) the MonetaryAccountSavings. Can be any user provided message. + */ + reason_description?: string; + /** + * The users the account will be joint with. + */ + all_co_owner?: Array; + /** + * The id of the User who owns the MonetaryAccountSavings. + */ + user_id?: number; + /** + * The profile of the account. + */ + monetary_account_profile?: IMonetaryAccountProfile; + /** + * The settings of the MonetaryAccountSavings. + */ + setting?: IMonetaryAccountSetting; + /** + * The Savings Goal set for this MonetaryAccountSavings. + */ + savings_goal?: IAmount; + /** + * The progress in percentages for the Savings Goal set for this MonetaryAccountSavings. + */ + savings_goal_progress?: number; + /** + * The id of the AutoSave. + */ + auto_save_id?: number; + /** + * The ids of the AutoSave. + */ + all_auto_save_id?: Array; +} + +export interface IMonetaryAccountSavingsCreate { + /** + * The id of the created item + */ + Id?: BunqId; +} + +export interface IMonetaryAccountSavings { + /** + * The currency of the MonetaryAccountSavings as an ISO 4217 formatted currency code. + */ + currency: string; + /** + * The description of the MonetaryAccountSavings. Defaults to 'bunq account'. + */ + description?: string; + /** + * The daily spending limit Amount of the MonetaryAccountSavings. Defaults to 1000 EUR. Currency must match the MonetaryAccountSavings's currency. Limited to 10000 EUR. + */ + daily_limit?: IAmount; + /** + * The UUID of the Avatar of the MonetaryAccountSavings. + */ + avatar_uuid?: string; + /** + * The status of the MonetaryAccountSavings. Ignored in POST requests (always set to ACTIVE) can be CANCELLED or PENDING_REOPEN in PUT requests to cancel (close) or reopen the MonetaryAccountSavings. When updating the status and/or sub_status no other fields can be updated in the same request (and vice versa). + */ + status?: string; + /** + * The sub-status of the MonetaryAccountSavings providing extra information regarding the status. Should be ignored for POST requests. In case of PUT requests with status CANCELLED it can only be REDEMPTION_VOLUNTARY, while with status PENDING_REOPEN it can only be NONE. When updating the status and/or sub_status no other fields can be updated in the same request (and vice versa). + */ + sub_status?: string; + /** + * The reason for voluntarily cancelling (closing) the MonetaryAccountSavings, can only be OTHER. Should only be specified if updating the status to CANCELLED. + */ + reason?: string; + /** + * 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. + */ + reason_description?: string; + /** + * The users the account will be joint with. + */ + all_co_owner?: Array; + /** + * The settings of the MonetaryAccountSavings. + */ + setting?: IMonetaryAccountSetting; + /** + * The Savings Goal set for this MonetaryAccountSavings. + */ + savings_goal?: IAmount; +} + +export interface IMonetaryAccountRead { + /** + * + */ + MonetaryAccountBank?: IMonetaryAccountBank; + /** + * + */ + MonetaryAccountJoint?: IMonetaryAccountJoint; + /** + * + */ + MonetaryAccountLight?: IMonetaryAccountLight; + /** + * + */ + MonetaryAccountSavings?: IMonetaryAccountSavings; +} + +export interface IMonetaryAccountProfileFill { + /** + * The status of the profile. + */ + status?: string; + /** + * The goal balance. + */ + balance_preferred?: IAmount; + /** + * The low threshold balance. + */ + balance_threshold_low?: IAmount; + /** + * The method used to fill the monetary account. Currently only iDEAL is supported, and it is the default one. + */ + method_fill?: string; + /** + * The bank the fill is supposed to happen from, with BIC and bank name. + */ + issuer?: IIssuer; +} + +export interface IMonetaryAccountProfileDrain { + /** + * The status of the profile. + */ + status?: string; + /** + * The goal balance. + */ + balance_preferred?: IAmount; + /** + * The high threshold balance. + */ + balance_threshold_high?: IAmount; + /** + * The savings monetary account. + */ + savings_account_alias?: ILabelMonetaryAccount; +} + +export interface IMonetaryAccountProfile { + /** + * The profile settings for triggering the fill of a monetary account. + */ + profile_fill?: IMonetaryAccountProfileFill; + /** + * The profile settings for moving excesses to a savings account + */ + profile_drain?: IMonetaryAccountProfileDrain; +} + +export interface IMonetaryAccountListing { + /** + * + */ + MonetaryAccountBank?: IMonetaryAccountBank; + /** + * + */ + MonetaryAccountJoint?: IMonetaryAccountJoint; + /** + * + */ + MonetaryAccountLight?: IMonetaryAccountLight; + /** + * + */ + MonetaryAccountSavings?: IMonetaryAccountSavings; +} + +export interface IMonetaryAccountLight { + /** + * The currency of the MonetaryAccountLight as an ISO 4217 formatted currency code. + */ + currency?: string; + /** + * The description of the MonetaryAccountLight. Defaults to 'bunq account'. + */ + description?: string; + /** + * The daily spending limit Amount of the MonetaryAccountLight. Defaults to 1000 EUR. Currency must match the MonetaryAccountLight's currency. Limited to 10000 EUR. + */ + daily_limit?: IAmount; + /** + * The UUID of the Avatar of the MonetaryAccountLight. + */ + avatar_uuid?: string; + /** + * The status of the MonetaryAccountLight. Can be: ACTIVE, BLOCKED, CANCELLED or PENDING_REOPEN + */ + status?: string; + /** + * The sub-status of the MonetaryAccountLight providing extra information regarding the status. Will be NONE for ACTIVE or PENDING_REOPEN, COMPLETELY or ONLY_ACCEPTING_INCOMING for BLOCKED and REDEMPTION_INVOLUNTARY, REDEMPTION_VOLUNTARY or PERMANENT for CANCELLED. + */ + sub_status?: string; + /** + * The reason for voluntarily cancelling (closing) the MonetaryAccountBank, can only be OTHER. + */ + reason?: string; + /** + * The optional free-form reason for voluntarily cancelling (closing) the MonetaryAccountBank. Can be any user provided message. + */ + reason_description?: string; + /** + * The settings of the MonetaryAccountLight. + */ + setting?: IMonetaryAccountSetting; + /** + * The id of the MonetaryAccountLight. + */ + id?: number; + /** + * The timestamp of the MonetaryAccountLight's creation. + */ + created?: string; + /** + * The timestamp of the MonetaryAccountLight's last update. + */ + updated?: string; + /** + * The Avatar of the MonetaryAccountLight. + */ + avatar?: IAvatar; + /** + * The current available balance Amount of the MonetaryAccountLight. + */ + balance?: IAmount; + /** + * The current real balance Amount of the MonetaryAccountLight. + */ + balance_real?: IAmount; + /** + * The Aliases for the MonetaryAccountLight. + */ + alias?: Array; + /** + * The MonetaryAccountLight's public UUID. + */ + public_uuid?: string; + /** + * The id of the User who owns the MonetaryAccountLight. + */ + user_id?: number; + /** + * The maximum balance Amount of the MonetaryAccountLight. + */ + balance_maximum?: IAmount; + /** + * The amount of the monthly budget used. + */ + budget_month_used?: IAmount; + /** + * The total amount of the monthly budget. + */ + budget_month_maximum?: IAmount; + /** + * The amount of the yearly budget used. + */ + budget_year_used?: IAmount; + /** + * The total amount of the yearly budget. + */ + budget_year_maximum?: IAmount; + /** + * The amount of the yearly withdrawal budget used. + */ + budget_withdrawal_year_used?: IAmount; + /** + * The total amount of the yearly withdrawal budget. + */ + budget_withdrawal_year_maximum?: IAmount; +} + +export interface IMonetaryAccountJointUpdate { + /** + * The id of the created item + */ + Id?: BunqId; +} + +export interface IMonetaryAccountJointRead { + /** + * The id of the MonetaryAccountJoint. + */ + id?: number; + /** + * The timestamp of the MonetaryAccountJoint's creation. + */ + created?: string; + /** + * The timestamp of the MonetaryAccountJoint's last update. + */ + updated?: string; + /** + * The Avatar of the MonetaryAccountJoint. + */ + avatar?: IAvatar; + /** + * The currency of the MonetaryAccountJoint as an ISO 4217 formatted currency code. + */ + currency?: string; + /** + * The description of the MonetaryAccountJoint. Defaults to 'bunq account'. + */ + description?: string; + /** + * The daily spending limit Amount of the MonetaryAccountJoint. Defaults to 1000 EUR. Currency must match the MonetaryAccountJoint's currency. Limited to 10000 EUR. + */ + daily_limit?: IAmount; + /** + * The maximum Amount the MonetaryAccountJoint can be 'in the red'. + */ + overdraft_limit?: IAmount; + /** + * The current available balance Amount of the MonetaryAccountJoint. + */ + balance?: IAmount; + /** + * The Aliases for the MonetaryAccountJoint. + */ + alias?: Array; + /** + * The MonetaryAccountJoint's public UUID. + */ + public_uuid?: string; + /** + * The status of the MonetaryAccountJoint. Can be: ACTIVE, BLOCKED, CANCELLED or PENDING_REOPEN + */ + status?: string; + /** + * The sub-status of the MonetaryAccountJoint providing extra information regarding the status. Will be NONE for ACTIVE or PENDING_REOPEN, COMPLETELY or ONLY_ACCEPTING_INCOMING for BLOCKED and REDEMPTION_INVOLUNTARY, REDEMPTION_VOLUNTARY or PERMANENT for CANCELLED. + */ + sub_status?: string; + /** + * The reason for voluntarily cancelling (closing) the MonetaryAccountJoint, can only be OTHER. + */ + reason?: string; + /** + * The optional free-form reason for voluntarily cancelling (closing) the MonetaryAccountJoint. Can be any user provided message. + */ + reason_description?: string; + /** + * The users the account will be joint with. + */ + all_co_owner?: Array; + /** + * The id of the User who owns the MonetaryAccountJoint. + */ + user_id?: number; + /** + * The profile of the account. + */ + monetary_account_profile?: IMonetaryAccountProfile; + /** + * The settings of the MonetaryAccountJoint. + */ + setting?: IMonetaryAccountSetting; + /** + * The id of the AutoSave. + */ + auto_save_id?: number; + /** + * The ids of the AutoSave. + */ + all_auto_save_id?: Array; +} + +export interface IMonetaryAccountJointListing { + /** + * The id of the MonetaryAccountJoint. + */ + id?: number; + /** + * The timestamp of the MonetaryAccountJoint's creation. + */ + created?: string; + /** + * The timestamp of the MonetaryAccountJoint's last update. + */ + updated?: string; + /** + * The Avatar of the MonetaryAccountJoint. + */ + avatar?: IAvatar; + /** + * The currency of the MonetaryAccountJoint as an ISO 4217 formatted currency code. + */ + currency?: string; + /** + * The description of the MonetaryAccountJoint. Defaults to 'bunq account'. + */ + description?: string; + /** + * The daily spending limit Amount of the MonetaryAccountJoint. Defaults to 1000 EUR. Currency must match the MonetaryAccountJoint's currency. Limited to 10000 EUR. + */ + daily_limit?: IAmount; + /** + * The maximum Amount the MonetaryAccountJoint can be 'in the red'. + */ + overdraft_limit?: IAmount; + /** + * The current available balance Amount of the MonetaryAccountJoint. + */ + balance?: IAmount; + /** + * The Aliases for the MonetaryAccountJoint. + */ + alias?: Array; + /** + * The MonetaryAccountJoint's public UUID. + */ + public_uuid?: string; + /** + * The status of the MonetaryAccountJoint. Can be: ACTIVE, BLOCKED, CANCELLED or PENDING_REOPEN + */ + status?: string; + /** + * The sub-status of the MonetaryAccountJoint providing extra information regarding the status. Will be NONE for ACTIVE or PENDING_REOPEN, COMPLETELY or ONLY_ACCEPTING_INCOMING for BLOCKED and REDEMPTION_INVOLUNTARY, REDEMPTION_VOLUNTARY or PERMANENT for CANCELLED. + */ + sub_status?: string; + /** + * The reason for voluntarily cancelling (closing) the MonetaryAccountJoint, can only be OTHER. + */ + reason?: string; + /** + * The optional free-form reason for voluntarily cancelling (closing) the MonetaryAccountJoint. Can be any user provided message. + */ + reason_description?: string; + /** + * The users the account will be joint with. + */ + all_co_owner?: Array; + /** + * The id of the User who owns the MonetaryAccountJoint. + */ + user_id?: number; + /** + * The profile of the account. + */ + monetary_account_profile?: IMonetaryAccountProfile; + /** + * The settings of the MonetaryAccountJoint. + */ + setting?: IMonetaryAccountSetting; + /** + * The id of the AutoSave. + */ + auto_save_id?: number; + /** + * The ids of the AutoSave. + */ + all_auto_save_id?: Array; +} + +export interface IMonetaryAccountJointCreate { + /** + * The id of the created item + */ + Id?: BunqId; +} + +export interface IMonetaryAccountJoint { + /** + * The currency of the MonetaryAccountJoint as an ISO 4217 formatted currency code. + */ + currency: string; + /** + * The description of the MonetaryAccountJoint. Defaults to 'bunq account'. + */ + description?: string; + /** + * The daily spending limit Amount of the MonetaryAccountJoint. Defaults to 1000 EUR. Currency must match the MonetaryAccountJoint's currency. Limited to 10000 EUR. + */ + daily_limit?: IAmount; + /** + * The maximum Amount the MonetaryAccountJoint can be 'in the red'. Must be 0 EUR or omitted. + */ + overdraft_limit?: IAmount; + /** + * The Aliases to add to MonetaryAccountJoint. Must all be confirmed first. Can mostly be ignored. + */ + alias?: Array; + /** + * The UUID of the Avatar of the MonetaryAccountJoint. + */ + avatar_uuid?: string; + /** + * The status of the MonetaryAccountJoint. Ignored in POST requests (always set to ACTIVE) can be CANCELLED or PENDING_REOPEN in PUT requests to cancel (close) or reopen the MonetaryAccountJoint. When updating the status and/or sub_status no other fields can be updated in the same request (and vice versa). + */ + status?: string; + /** + * The sub-status of the MonetaryAccountJoint providing extra information regarding the status. Should be ignored for POST requests. In case of PUT requests with status CANCELLED it can only be REDEMPTION_VOLUNTARY, while with status PENDING_REOPEN it can only be NONE. When updating the status and/or sub_status no other fields can be updated in the same request (and vice versa). + */ + sub_status?: string; + /** + * The reason for voluntarily cancelling (closing) the MonetaryAccountJoint, can only be OTHER. Should only be specified if updating the status to CANCELLED. + */ + reason?: string; + /** + * 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. + */ + reason_description?: string; + /** + * The users the account will be joint with. + */ + all_co_owner: Array; + /** + * The settings of the MonetaryAccountJoint. + */ + setting?: IMonetaryAccountSetting; +} + +export interface IMonetaryAccountBankUpdate { + /** + * The id of the created item + */ + Id?: BunqId; +} + +export interface IMonetaryAccountBankRead { + /** + * The id of the MonetaryAccountBank. + */ + id?: number; + /** + * The timestamp of the MonetaryAccountBank's creation. + */ + created?: string; + /** + * The timestamp of the MonetaryAccountBank's last update. + */ + updated?: string; + /** + * The Avatar of the MonetaryAccountBank. + */ + avatar?: IAvatar; + /** + * The currency of the MonetaryAccountBank as an ISO 4217 formatted currency code. + */ + currency?: string; + /** + * The description of the MonetaryAccountBank. Defaults to 'bunq account'. + */ + description?: string; + /** + * The daily spending limit Amount of the MonetaryAccountBank. Defaults to 1000 EUR. Currency must match the MonetaryAccountBank's currency. Limited to 10000 EUR. + */ + daily_limit?: IAmount; + /** + * The maximum Amount the MonetaryAccountBank can be 'in the red'. + */ + overdraft_limit?: IAmount; + /** + * The current available balance Amount of the MonetaryAccountBank. + */ + balance?: IAmount; + /** + * The Aliases for the MonetaryAccountBank. + */ + alias?: Array; + /** + * The MonetaryAccountBank's public UUID. + */ + public_uuid?: string; + /** + * The status of the MonetaryAccountBank. Can be: ACTIVE, BLOCKED, CANCELLED or PENDING_REOPEN + */ + status?: string; + /** + * The sub-status of the MonetaryAccountBank providing extra information regarding the status. Will be NONE for ACTIVE or PENDING_REOPEN, COMPLETELY or ONLY_ACCEPTING_INCOMING for BLOCKED and REDEMPTION_INVOLUNTARY, REDEMPTION_VOLUNTARY or PERMANENT for CANCELLED. + */ + sub_status?: string; + /** + * The reason for voluntarily cancelling (closing) the MonetaryAccountBank, can only be OTHER. + */ + reason?: string; + /** + * The optional free-form reason for voluntarily cancelling (closing) the MonetaryAccountBank. Can be any user provided message. + */ + reason_description?: string; + /** + * The id of the User who owns the MonetaryAccountBank. + */ + user_id?: number; + /** + * The profile of the account. + */ + monetary_account_profile?: IMonetaryAccountProfile; + /** + * The legal name of the user / company using this monetary account. + */ + display_name?: string; + /** + * The settings of the MonetaryAccountBank. + */ + setting?: IMonetaryAccountSetting; + /** + * The id of the AutoSave. + */ + auto_save_id?: number; + /** + * The ids of the AutoSave. + */ + all_auto_save_id?: Array; +} + +export interface IMonetaryAccountBankListing { + /** + * The id of the MonetaryAccountBank. + */ + id?: number; + /** + * The timestamp of the MonetaryAccountBank's creation. + */ + created?: string; + /** + * The timestamp of the MonetaryAccountBank's last update. + */ + updated?: string; + /** + * The Avatar of the MonetaryAccountBank. + */ + avatar?: IAvatar; + /** + * The currency of the MonetaryAccountBank as an ISO 4217 formatted currency code. + */ + currency?: string; + /** + * The description of the MonetaryAccountBank. Defaults to 'bunq account'. + */ + description?: string; + /** + * The daily spending limit Amount of the MonetaryAccountBank. Defaults to 1000 EUR. Currency must match the MonetaryAccountBank's currency. Limited to 10000 EUR. + */ + daily_limit?: IAmount; + /** + * The maximum Amount the MonetaryAccountBank can be 'in the red'. + */ + overdraft_limit?: IAmount; + /** + * The current available balance Amount of the MonetaryAccountBank. + */ + balance?: IAmount; + /** + * The Aliases for the MonetaryAccountBank. + */ + alias?: Array; + /** + * The MonetaryAccountBank's public UUID. + */ + public_uuid?: string; + /** + * The status of the MonetaryAccountBank. Can be: ACTIVE, BLOCKED, CANCELLED or PENDING_REOPEN + */ + status?: string; + /** + * The sub-status of the MonetaryAccountBank providing extra information regarding the status. Will be NONE for ACTIVE or PENDING_REOPEN, COMPLETELY or ONLY_ACCEPTING_INCOMING for BLOCKED and REDEMPTION_INVOLUNTARY, REDEMPTION_VOLUNTARY or PERMANENT for CANCELLED. + */ + sub_status?: string; + /** + * The reason for voluntarily cancelling (closing) the MonetaryAccountBank, can only be OTHER. + */ + reason?: string; + /** + * The optional free-form reason for voluntarily cancelling (closing) the MonetaryAccountBank. Can be any user provided message. + */ + reason_description?: string; + /** + * The id of the User who owns the MonetaryAccountBank. + */ + user_id?: number; + /** + * The profile of the account. + */ + monetary_account_profile?: IMonetaryAccountProfile; + /** + * The legal name of the user / company using this monetary account. + */ + display_name?: string; + /** + * The settings of the MonetaryAccountBank. + */ + setting?: IMonetaryAccountSetting; + /** + * The id of the AutoSave. + */ + auto_save_id?: number; + /** + * The ids of the AutoSave. + */ + all_auto_save_id?: Array; +} + +export interface IMonetaryAccountBankCreate { + /** + * The id of the created item + */ + Id?: BunqId; +} + +export interface IMonetaryAccountBank { + /** + * The currency of the MonetaryAccountBank as an ISO 4217 formatted currency code. + */ + currency: string; + /** + * The description of the MonetaryAccountBank. Defaults to 'bunq account'. + */ + description?: string; + /** + * The daily spending limit Amount of the MonetaryAccountBank. Defaults to 1000 EUR. Currency must match the MonetaryAccountBank's currency. Limited to 10000 EUR. + */ + daily_limit?: IAmount; + /** + * The UUID of the Avatar of the MonetaryAccountBank. + */ + avatar_uuid?: string; + /** + * The status of the MonetaryAccountBank. Ignored in POST requests (always set to ACTIVE) can be CANCELLED or PENDING_REOPEN in PUT requests to cancel (close) or reopen the MonetaryAccountBank. When updating the status and/or sub_status no other fields can be updated in the same request (and vice versa). + */ + status?: string; + /** + * The sub-status of the MonetaryAccountBank providing extra information regarding the status. Should be ignored for POST requests. In case of PUT requests with status CANCELLED it can only be REDEMPTION_VOLUNTARY, while with status PENDING_REOPEN it can only be NONE. When updating the status and/or sub_status no other fields can be updated in the same request (and vice versa). + */ + sub_status?: string; + /** + * The reason for voluntarily cancelling (closing) the MonetaryAccountBank, can only be OTHER. Should only be specified if updating the status to CANCELLED. + */ + reason?: string; + /** + * 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. + */ + reason_description?: string; + /** + * The legal name of the user / company using this monetary account. + */ + display_name?: string; + /** + * The settings of the MonetaryAccountBank. + */ + setting?: IMonetaryAccountSetting; +} + +export interface IMasterCardActionRead { + /** + * The id of the MastercardAction. + */ + id?: number; + /** + * The id of the monetary account this action links to. + */ + monetary_account_id?: number; + /** + * The id of the card this action links to. + */ + card_id?: number; + /** + * The amount of the transaction in local currency. + */ + amount_local?: IAmount; + /** + * The amount of the transaction in local currency. + */ + amount_converted?: IAmount; + /** + * The amount of the transaction in the monetary account's currency. + */ + amount_billing?: IAmount; + /** + * The original amount in local currency. + */ + amount_original_local?: IAmount; + /** + * The original amount in the monetary account's currency. + */ + amount_original_billing?: IAmount; + /** + * The fee amount as charged by the merchant, if applicable. + */ + amount_fee?: IAmount; + /** + * The response code by which authorised transaction can be identified as authorised by bunq. + */ + card_authorisation_id_response?: string; + /** + * Why the transaction was denied, if it was denied, or just ALLOWED. + */ + decision?: string; + /** + * The payment status of the transaction. For example PAYMENT_SUCCESSFUL, for a successful payment. + */ + payment_status?: string; + /** + * Empty if allowed, otherwise a textual explanation of why it was denied. + */ + decision_description?: string; + /** + * Empty if allowed, otherwise a textual explanation of why it was denied in user's language. + */ + decision_description_translated?: string; + /** + * The description for this transaction to display. + */ + description?: string; + /** + * The status in the authorisation process. + */ + authorisation_status?: string; + /** + * The type of transaction that was delivered using the card. + */ + authorisation_type?: string; + /** + * The type of entry mode the user used. Can be 'ATM', 'ICC', 'MAGNETIC_STRIPE' or 'E_COMMERCE'. + */ + pan_entry_mode_user?: string; + /** + * The setlement status in the authorisation process. + */ + settlement_status?: string; + /** + * The clearing status of the authorisation. Can be 'PENDING', 'FIRST_PRESENTMENT_COMPLETE' or 'REFUND_LENIENCY'. + */ + clearing_status?: string; + /** + * The maturity date. + */ + maturity_date?: string; + /** + * The city where the message originates from as announced by the terminal. + */ + city?: string; + /** + * The monetary account label of the account that this action is created for. + */ + alias?: ILabelMonetaryAccount; + /** + * The monetary account label of the counterparty. + */ + counterparty_alias?: ILabelMonetaryAccount; + /** + * The label of the card. + */ + label_card?: ILabelCard; + /** + * If this is a tokenisation action, this shows the status of the token. + */ + token_status?: string; + /** + * If this is a reservation, the moment the reservation will expire. + */ + reservation_expiry_time?: string; + /** + * The time when the processing of the clearing is expired, refunding the authorisation. + */ + clearing_expiry_time?: string; + /** + * The type of the limit applied to validate if this MasterCardAction was within the spending limits. The returned string matches the limit types as defined in the card endpoint. + */ + applied_limit?: string; + /** + * Whether or not chat messages are allowed. + */ + allow_chat?: boolean; + /** + * The secure code id for this mastercard action or null. + */ + secure_code_id?: number; + /** + * The ID of the wallet provider as defined by MasterCard. 420 = bunq Android app with Tap&Pay; 103 = Apple Pay. + */ + wallet_provider_id?: string; + /** + * The reference to the object used for split the bill. Can be RequestInquiry or RequestInquiryBatch + */ + request_reference_split_the_bill?: Array; +} + +export interface IMasterCardActionListing { + /** + * The id of the MastercardAction. + */ + id?: number; + /** + * The id of the monetary account this action links to. + */ + monetary_account_id?: number; + /** + * The id of the card this action links to. + */ + card_id?: number; + /** + * The amount of the transaction in local currency. + */ + amount_local?: IAmount; + /** + * The amount of the transaction in local currency. + */ + amount_converted?: IAmount; + /** + * The amount of the transaction in the monetary account's currency. + */ + amount_billing?: IAmount; + /** + * The original amount in local currency. + */ + amount_original_local?: IAmount; + /** + * The original amount in the monetary account's currency. + */ + amount_original_billing?: IAmount; + /** + * The fee amount as charged by the merchant, if applicable. + */ + amount_fee?: IAmount; + /** + * The response code by which authorised transaction can be identified as authorised by bunq. + */ + card_authorisation_id_response?: string; + /** + * Why the transaction was denied, if it was denied, or just ALLOWED. + */ + decision?: string; + /** + * The payment status of the transaction. For example PAYMENT_SUCCESSFUL, for a successful payment. + */ + payment_status?: string; + /** + * Empty if allowed, otherwise a textual explanation of why it was denied. + */ + decision_description?: string; + /** + * Empty if allowed, otherwise a textual explanation of why it was denied in user's language. + */ + decision_description_translated?: string; + /** + * The description for this transaction to display. + */ + description?: string; + /** + * The status in the authorisation process. + */ + authorisation_status?: string; + /** + * The type of transaction that was delivered using the card. + */ + authorisation_type?: string; + /** + * The type of entry mode the user used. Can be 'ATM', 'ICC', 'MAGNETIC_STRIPE' or 'E_COMMERCE'. + */ + pan_entry_mode_user?: string; + /** + * The setlement status in the authorisation process. + */ + settlement_status?: string; + /** + * The clearing status of the authorisation. Can be 'PENDING', 'FIRST_PRESENTMENT_COMPLETE' or 'REFUND_LENIENCY'. + */ + clearing_status?: string; + /** + * The maturity date. + */ + maturity_date?: string; + /** + * The city where the message originates from as announced by the terminal. + */ + city?: string; + /** + * The monetary account label of the account that this action is created for. + */ + alias?: ILabelMonetaryAccount; + /** + * The monetary account label of the counterparty. + */ + counterparty_alias?: ILabelMonetaryAccount; + /** + * The label of the card. + */ + label_card?: ILabelCard; + /** + * If this is a tokenisation action, this shows the status of the token. + */ + token_status?: string; + /** + * If this is a reservation, the moment the reservation will expire. + */ + reservation_expiry_time?: string; + /** + * The time when the processing of the clearing is expired, refunding the authorisation. + */ + clearing_expiry_time?: string; + /** + * The type of the limit applied to validate if this MasterCardAction was within the spending limits. The returned string matches the limit types as defined in the card endpoint. + */ + applied_limit?: string; + /** + * Whether or not chat messages are allowed. + */ + allow_chat?: boolean; + /** + * The secure code id for this mastercard action or null. + */ + secure_code_id?: number; + /** + * The ID of the wallet provider as defined by MasterCard. 420 = bunq Android app with Tap&Pay; 103 = Apple Pay. + */ + wallet_provider_id?: string; + /** + * The reference to the object used for split the bill. Can be RequestInquiry or RequestInquiryBatch + */ + request_reference_split_the_bill?: Array; +} + +export interface IMasterCardAction { + /** + * The id of the MastercardAction. + */ + id?: number; + /** + * The id of the monetary account this action links to. + */ + monetary_account_id?: number; + /** + * The id of the card this action links to. + */ + card_id?: number; + /** + * The amount of the transaction in local currency. + */ + amount_local?: IAmount; + /** + * The amount of the transaction in local currency. + */ + amount_converted?: IAmount; + /** + * The amount of the transaction in the monetary account's currency. + */ + amount_billing?: IAmount; + /** + * The original amount in local currency. + */ + amount_original_local?: IAmount; + /** + * The original amount in the monetary account's currency. + */ + amount_original_billing?: IAmount; + /** + * The fee amount as charged by the merchant, if applicable. + */ + amount_fee?: IAmount; + /** + * The response code by which authorised transaction can be identified as authorised by bunq. + */ + card_authorisation_id_response?: string; + /** + * Why the transaction was denied, if it was denied, or just ALLOWED. + */ + decision?: string; + /** + * The payment status of the transaction. For example PAYMENT_SUCCESSFUL, for a successful payment. + */ + payment_status?: string; + /** + * Empty if allowed, otherwise a textual explanation of why it was denied. + */ + decision_description?: string; + /** + * Empty if allowed, otherwise a textual explanation of why it was denied in user's language. + */ + decision_description_translated?: string; + /** + * The description for this transaction to display. + */ + description?: string; + /** + * The status in the authorisation process. + */ + authorisation_status?: string; + /** + * The type of transaction that was delivered using the card. + */ + authorisation_type?: string; + /** + * The type of entry mode the user used. Can be 'ATM', 'ICC', 'MAGNETIC_STRIPE' or 'E_COMMERCE'. + */ + pan_entry_mode_user?: string; + /** + * The setlement status in the authorisation process. + */ + settlement_status?: string; + /** + * The clearing status of the authorisation. Can be 'PENDING', 'FIRST_PRESENTMENT_COMPLETE' or 'REFUND_LENIENCY'. + */ + clearing_status?: string; + /** + * The maturity date. + */ + maturity_date?: string; + /** + * The city where the message originates from as announced by the terminal. + */ + city?: string; + /** + * The monetary account label of the account that this action is created for. + */ + alias?: ILabelMonetaryAccount; + /** + * The monetary account label of the counterparty. + */ + counterparty_alias?: ILabelMonetaryAccount; + /** + * The label of the card. + */ + label_card?: ILabelCard; + /** + * If this is a tokenisation action, this shows the status of the token. + */ + token_status?: string; + /** + * If this is a reservation, the moment the reservation will expire. + */ + reservation_expiry_time?: string; + /** + * The time when the processing of the clearing is expired, refunding the authorisation. + */ + clearing_expiry_time?: string; + /** + * The type of the limit applied to validate if this MasterCardAction was within the spending limits. The returned string matches the limit types as defined in the card endpoint. + */ + applied_limit?: string; + /** + * Whether or not chat messages are allowed. + */ + allow_chat?: boolean; + /** + * The secure code id for this mastercard action or null. + */ + secure_code_id?: number; + /** + * The ID of the wallet provider as defined by MasterCard. 420 = bunq Android app with Tap&Pay; 103 = Apple Pay. + */ + wallet_provider_id?: string; + /** + * The reference to the object used for split the bill. Can be RequestInquiry or RequestInquiryBatch + */ + request_reference_split_the_bill?: Array; +} + +export interface ILabelUser { + /** + * The public UUID of the label-user. + */ + uuid?: string; + /** + * The name to be displayed for this user, as it was given on the request. + */ + display_name?: string; + /** + * The country of the user. 000 stands for "unknown" + */ + country?: string; + /** + * The current avatar of the user. + */ + avatar?: IAvatar; + /** + * The current nickname of the user. + */ + public_nick_name?: string; +} + +export interface ILabelMonetaryAccount { + /** + * The IBAN of the monetary account. + */ + iban?: string; + /** + * The name to display with this monetary account. + */ + display_name?: string; + /** + * The avatar of the monetary account. + */ + avatar?: IAvatar; + /** + * The user this monetary account belongs to. + */ + label_user?: ILabelUser; + /** + * The country of the user. Formatted as a ISO 3166-1 alpha-2 country code. + */ + country?: string; + /** + * Bunq.me pointer with type and value. + */ + bunq_me?: IPointer; + /** + * Whether or not the monetary account is light. + */ + is_light?: boolean; + /** + * The BIC used for a SWIFT payment. + */ + swift_bic?: string; + /** + * The account number used for a SWIFT payment. May or may not be an IBAN. + */ + swift_account_number?: string; + /** + * The account number used for a Transferwise payment. May or may not be an IBAN. + */ + transferwise_account_number?: string; + /** + * The bank code used for a Transferwise payment. May or may not be a BIC. + */ + transferwise_bank_code?: string; + /** + * The merchant category code. + */ + merchant_category_code?: string; +} + +export interface ILabelCard { + /** + * The public UUID. + */ + uuid?: string; + /** + * The type of the card. + */ + type?: string; + /** + * The second line on the card. + */ + second_line?: string; + /** + * The date this card will expire. + */ + expiry_date?: string; + /** + * The status of the card. + */ + status?: string; + /** + * The owner of this card. + */ + label_user?: ILabelUser; +} + +export interface IIssuer { + /** + * The BIC code. + */ + bic?: string; + /** + * The name of the bank. + */ + name?: string; +} + +export interface IInvoiceRead { + /** + * The id of the invoice object. + */ + id?: number; + /** + * The timestamp of the invoice object's creation. + */ + created?: string; + /** + * The timestamp of the invoice object's last update. + */ + updated?: string; + /** + * The invoice date. + */ + invoice_date?: string; + /** + * The invoice number. + */ + invoice_number?: string; + /** + * The invoice status. + */ + status?: string; + /** + * The category to display to the user. + */ + category?: string; + /** + * The invoice item groups. + */ + group?: Array; + /** + * The total discounted item price including VAT. + */ + total_vat_inclusive?: IAmount; + /** + * The total discounted item price excluding VAT. + */ + total_vat_exclusive?: IAmount; + /** + * The VAT on the total discounted item price. + */ + total_vat?: IAmount; + /** + * The label that's displayed to the counterparty with the invoice. Includes user. + */ + alias?: ILabelMonetaryAccount; + /** + * The customer's address. + */ + address?: IAddress; + /** + * The label of the counterparty of the invoice. Includes user. + */ + counterparty_alias?: ILabelMonetaryAccount; + /** + * The company's address. + */ + counterparty_address?: IAddress; + /** + * The company's chamber of commerce number. + */ + chamber_of_commerce_number?: string; + /** + * The company's chamber of commerce number. + */ + vat_number?: string; + /** + * The reference to the object used for split the bill. Can be RequestInquiry or RequestInquiryBatch + */ + request_reference_split_the_bill?: Array; +} + +export interface IInvoiceListing { + /** + * The id of the invoice object. + */ + id?: number; + /** + * The timestamp of the invoice object's creation. + */ + created?: string; + /** + * The timestamp of the invoice object's last update. + */ + updated?: string; + /** + * The invoice date. + */ + invoice_date?: string; + /** + * The invoice number. + */ + invoice_number?: string; + /** + * The invoice status. + */ + status?: string; + /** + * The category to display to the user. + */ + category?: string; + /** + * The invoice item groups. + */ + group?: Array; + /** + * The total discounted item price including VAT. + */ + total_vat_inclusive?: IAmount; + /** + * The total discounted item price excluding VAT. + */ + total_vat_exclusive?: IAmount; + /** + * The VAT on the total discounted item price. + */ + total_vat?: IAmount; + /** + * The label that's displayed to the counterparty with the invoice. Includes user. + */ + alias?: ILabelMonetaryAccount; + /** + * The customer's address. + */ + address?: IAddress; + /** + * The label of the counterparty of the invoice. Includes user. + */ + counterparty_alias?: ILabelMonetaryAccount; + /** + * The company's address. + */ + counterparty_address?: IAddress; + /** + * The company's chamber of commerce number. + */ + chamber_of_commerce_number?: string; + /** + * The company's chamber of commerce number. + */ + vat_number?: string; + /** + * The reference to the object used for split the bill. Can be RequestInquiry or RequestInquiryBatch + */ + request_reference_split_the_bill?: Array; +} + +export interface IInvoiceItemGroup { + /** + * The type of the invoice item group. + */ + type?: string; + /** + * The description of the type of the invoice item group. + */ + type_description?: string; + /** + * The translated description of the type of the invoice item group. + */ + type_description_translated?: string; + /** + * The identifier of the invoice item group. + */ + instance_description?: string; + /** + * The unit item price excluding VAT. + */ + product_vat_exclusive?: IAmount; + /** + * The unit item price including VAT. + */ + product_vat_inclusive?: IAmount; + /** + * The invoice items in the group. + */ + item?: Array; +} + +export interface IInvoiceItem { + /** + * The billing date of the item. + */ + billing_date?: string; + /** + * The price description. + */ + type_description?: string; + /** + * The translated price description. + */ + type_description_translated?: string; + /** + * The unit item price excluding VAT. + */ + unit_vat_exclusive?: IAmount; + /** + * The unit item price including VAT. + */ + unit_vat_inclusive?: IAmount; + /** + * The VAT tax fraction. + */ + vat?: number; + /** + * The number of items priced. + */ + quantity?: number; + /** + * The item price excluding VAT. + */ + total_vat_exclusive?: IAmount; + /** + * The item price including VAT. + */ + total_vat_inclusive?: IAmount; +} + +export interface IInvoiceExportPdfContentListing {} + +export interface IInvoiceByUserRead { + /** + * The id of the invoice object. + */ + id?: number; + /** + * The timestamp of the invoice object's creation. + */ + created?: string; + /** + * The timestamp of the invoice object's last update. + */ + updated?: string; + /** + * The invoice date. + */ + invoice_date?: string; + /** + * The invoice number. + */ + invoice_number?: string; + /** + * The invoice status. + */ + status?: string; + /** + * The invoice item groups. + */ + group?: Array; + /** + * The total discounted item price including VAT. + */ + total_vat_inclusive?: IAmount; + /** + * The total discounted item price excluding VAT. + */ + total_vat_exclusive?: IAmount; + /** + * The VAT on the total discounted item price. + */ + total_vat?: IAmount; + /** + * The label that's displayed to the counterparty with the invoice. Includes user. + */ + alias?: ILabelMonetaryAccount; + /** + * The customer's address. + */ + address?: IAddress; + /** + * The label of the counterparty of the invoice. Includes user. + */ + counterparty_alias?: ILabelMonetaryAccount; + /** + * The company's address. + */ + counterparty_address?: IAddress; + /** + * The company's chamber of commerce number. + */ + chamber_of_commerce_number?: string; + /** + * The company's chamber of commerce number. + */ + vat_number?: string; +} + +export interface IInvoiceByUserListing { + /** + * The id of the invoice object. + */ + id?: number; + /** + * The timestamp of the invoice object's creation. + */ + created?: string; + /** + * The timestamp of the invoice object's last update. + */ + updated?: string; + /** + * The invoice date. + */ + invoice_date?: string; + /** + * The invoice number. + */ + invoice_number?: string; + /** + * The invoice status. + */ + status?: string; + /** + * The invoice item groups. + */ + group?: Array; + /** + * The total discounted item price including VAT. + */ + total_vat_inclusive?: IAmount; + /** + * The total discounted item price excluding VAT. + */ + total_vat_exclusive?: IAmount; + /** + * The VAT on the total discounted item price. + */ + total_vat?: IAmount; + /** + * The label that's displayed to the counterparty with the invoice. Includes user. + */ + alias?: ILabelMonetaryAccount; + /** + * The customer's address. + */ + address?: IAddress; + /** + * The label of the counterparty of the invoice. Includes user. + */ + counterparty_alias?: ILabelMonetaryAccount; + /** + * The company's address. + */ + counterparty_address?: IAddress; + /** + * The company's chamber of commerce number. + */ + chamber_of_commerce_number?: string; + /** + * The company's chamber of commerce number. + */ + vat_number?: string; +} + +export interface IInvoice { + /** + * The invoice status. + */ + status?: string; + /** + * The description provided by the admin. + */ + description: string; + /** + * The external url provided by the admin. + */ + external_url: string; + /** + * The id of the invoice object. + */ + id?: number; + /** + * The timestamp of the invoice object's creation. + */ + created?: string; + /** + * The timestamp of the invoice object's last update. + */ + updated?: string; + /** + * The invoice date. + */ + invoice_date?: string; + /** + * The invoice number. + */ + invoice_number?: string; + /** + * The category to display to the user. + */ + category?: string; + /** + * The invoice item groups. + */ + group?: Array; + /** + * The total discounted item price including VAT. + */ + total_vat_inclusive?: IAmount; + /** + * The total discounted item price excluding VAT. + */ + total_vat_exclusive?: IAmount; + /** + * The VAT on the total discounted item price. + */ + total_vat?: IAmount; + /** + * The label that's displayed to the counterparty with the invoice. Includes user. + */ + alias?: ILabelMonetaryAccount; + /** + * The customer's address. + */ + address?: IAddress; + /** + * The label of the counterparty of the invoice. Includes user. + */ + counterparty_alias?: ILabelMonetaryAccount; + /** + * The company's address. + */ + counterparty_address?: IAddress; + /** + * The company's chamber of commerce number. + */ + chamber_of_commerce_number?: string; + /** + * The company's chamber of commerce number. + */ + vat_number?: string; + /** + * The reference to the object used for split the bill. Can be RequestInquiry or RequestInquiryBatch + */ + request_reference_split_the_bill?: Array; +} + +export interface IInstallationToken { + /** + * The id of the Token. + */ + id?: number; + /** + * The timestamp of the Token's creation. + */ + created?: string; + /** + * The timestamp of the Token's last update. + */ + updated?: string; + /** + * The installation token is the token the client has to provide in the "X-Bunq-Client-Authentication" header for the creation of a DeviceServer and SessionServer. + */ + token?: string; +} + +export interface IInstallationServerPublicKeyListing { + /** + * The server's public key for this Installation. + */ + server_public_key?: string; +} + +export interface IInstallationServerPublicKey { + /** + * The server's public key for this Installation. You should use this key to verify the "X-Bunq-Server-Signature" header for each response from the server. + */ + server_public_key?: string; +} + +export interface IInstallationRead { + /** + * The id of the Installation as created on the server. You can use this id to request the server's public key again. + */ + id?: number; +} + +export interface IInstallationListing { + /** + * The id of the Installation as created on the server. You can use this id to request the server's public key again. + */ + id?: number; +} + +export interface IInstallationCreate { + /** + * The Id object of the created Installation + */ + Id?: BunqId; + /** + * The Token object of this Installation. + */ + Token?: IInstallationToken; + /** + * The ServerPublicKey object of the created Installation + */ + ServerPublicKey?: IInstallationServerPublicKey; +} + +export interface IInstallation { + /** + * Your public key. This is the public part of the key pair that you are going to use to create value of the "X-Bunq-Client-Signature" header for all future API calls. + */ + client_public_key: string; +} + +export interface IInsightListing { + /** + * The category. + */ + category?: string; + /** + * The translated category. + */ + category_translated?: string; + /** + * The total amount of the transactions in the category. + */ + amount_total?: IAmount; + /** + * The number of the transactions in the category. + */ + number_of_transactions?: number; +} + +export interface IInsightEventListing { + /** + * The id of the event. + */ + id?: number; + /** + * The timestamp of the event's creation. + */ + created?: string; + /** + * The timestamp of the event's last update. + */ + updated?: string; + /** + * The performed action. Can be: CREATE or UPDATE. + */ + action?: string; + /** + * The id of the user the event applied to (if it was a user event). + */ + user_id?: string; + /** + * The id of the monetary account the event applied to (if it was a monetary account event). + */ + monetary_account_id?: string; + /** + * The details of the external object the event was created for. + */ + object?: IEventObject; + /** + * The event status. Can be: FINALIZED or AWAITING_REPLY. An example of FINALIZED event is a payment received event, while an AWAITING_REPLY event is a request received event. + */ + status?: string; +} + +export interface IImage { + /** + * The public UUID of the public attachment containing the image. + */ + attachment_public_uuid?: string; + /** + * The content-type as a MIME filetype. + */ + content_type?: string; + /** + * The image height in pixels. + */ + height?: number; + /** + * The image width in pixels. + */ + width?: number; +} + +export interface IIdealMerchantTransactionRead { + /** + * The id of the monetary account this ideal merchant transaction links to. + */ + monetary_account_id?: number; + /** + * The alias of the monetary account to add money to. + */ + alias?: ILabelMonetaryAccount; + /** + * The alias of the monetary account the money comes from. + */ + counterparty_alias?: ILabelMonetaryAccount; + /** + * In case of a successful transaction, the amount of money that will be transferred. + */ + amount_guaranteed?: IAmount; + /** + * The requested amount of money to add. + */ + amount_requested?: IAmount; + /** + * When the transaction will expire. + */ + expiration?: string; + /** + * The BIC of the issuer. + */ + issuer?: string; + /** + * The Name of the issuer. + */ + issuer_name?: string; + /** + * The URL to visit to + */ + issuer_authentication_url?: string; + /** + * The 'purchase ID' of the iDEAL transaction. + */ + purchase_identifier?: string; + /** + * The status of the transaction. + */ + status?: string; + /** + * When the status was last updated. + */ + status_timestamp?: string; + /** + * The 'transaction ID' of the iDEAL transaction. + */ + transaction_identifier?: string; + /** + * Whether or not chat messages are allowed. + */ + allow_chat?: boolean; +} + +export interface IIdealMerchantTransactionListing { + /** + * The id of the monetary account this ideal merchant transaction links to. + */ + monetary_account_id?: number; + /** + * The alias of the monetary account to add money to. + */ + alias?: ILabelMonetaryAccount; + /** + * The alias of the monetary account the money comes from. + */ + counterparty_alias?: ILabelMonetaryAccount; + /** + * In case of a successful transaction, the amount of money that will be transferred. + */ + amount_guaranteed?: IAmount; + /** + * The requested amount of money to add. + */ + amount_requested?: IAmount; + /** + * When the transaction will expire. + */ + expiration?: string; + /** + * The BIC of the issuer. + */ + issuer?: string; + /** + * The Name of the issuer. + */ + issuer_name?: string; + /** + * The URL to visit to + */ + issuer_authentication_url?: string; + /** + * The 'purchase ID' of the iDEAL transaction. + */ + purchase_identifier?: string; + /** + * The status of the transaction. + */ + status?: string; + /** + * When the status was last updated. + */ + status_timestamp?: string; + /** + * The 'transaction ID' of the iDEAL transaction. + */ + transaction_identifier?: string; + /** + * Whether or not chat messages are allowed. + */ + allow_chat?: boolean; +} + +export interface IIdealMerchantTransactionCreate { + /** + * The id of the created item + */ + Id?: BunqId; +} + +export interface IIdealMerchantTransaction { + /** + * The requested amount of money to add. + */ + amount_requested?: IAmount; + /** + * The BIC of the issuer. + */ + issuer?: string; + /** + * The id of the monetary account this ideal merchant transaction links to. + */ + monetary_account_id?: number; + /** + * The alias of the monetary account to add money to. + */ + alias?: ILabelMonetaryAccount; + /** + * The alias of the monetary account the money comes from. + */ + counterparty_alias?: ILabelMonetaryAccount; + /** + * In case of a successful transaction, the amount of money that will be transferred. + */ + amount_guaranteed?: IAmount; + /** + * When the transaction will expire. + */ + expiration?: string; + /** + * The Name of the issuer. + */ + issuer_name?: string; + /** + * The URL to visit to + */ + issuer_authentication_url?: string; + /** + * The 'purchase ID' of the iDEAL transaction. + */ + purchase_identifier?: string; + /** + * The status of the transaction. + */ + status?: string; + /** + * When the status was last updated. + */ + status_timestamp?: string; + /** + * The 'transaction ID' of the iDEAL transaction. + */ + transaction_identifier?: string; + /** + * Whether or not chat messages are allowed. + */ + allow_chat?: boolean; +} + +export interface IGeolocation { + /** + * The latitude for a geolocation restriction. + */ + latitude: number; + /** + * The longitude for a geolocation restriction. + */ + longitude: number; + /** + * The altitude for a geolocation restriction. + */ + altitude?: number; + /** + * The radius for a geolocation restriction. + */ + radius?: number; +} + +export interface IFeatureAnnouncementRead { + /** + * The Avatar of the event overview. + */ + avatar?: IAvatar; + /** + * The event overview title of the feature display + */ + title?: string; + /** + * The event overview subtitle of the feature display + */ + sub_title?: string; +} + +export interface IFeatureAnnouncement { + /** + * The Avatar of the event overview. + */ + avatar?: IAvatar; + /** + * The event overview title of the feature display + */ + title?: string; + /** + * The event overview subtitle of the feature display + */ + sub_title?: string; +} + +export interface IExportStatementRead { + /** + * The id of the customer statement model. + */ + id?: number; + /** + * The timestamp of the statement model's creation. + */ + created?: string; + /** + * The timestamp of the statement model's last update. + */ + updated?: string; + /** + * The date from when this statement shows transactions. + */ + date_start?: string; + /** + * The date until which statement shows transactions. + */ + date_end?: string; + /** + * The status of the export. + */ + status?: string; + /** + * MT940 Statement number. Unique per monetary account. + */ + statement_number?: number; + /** + * The format of statement. + */ + statement_format?: string; + /** + * The regional format of a CSV statement. + */ + regional_format?: string; + /** + * The monetary account for which this statement was created. + */ + alias_monetary_account?: ILabelMonetaryAccount; +} + +export interface IExportStatementPaymentRead { + /** + * The id of the single payment statement model. + */ + id?: number; + /** + * The timestamp of the statement model's creation. + */ + created?: string; + /** + * The timestamp of the statement model's last update. + */ + updated?: string; + /** + * The status of the export. + */ + status?: string; +} + +export interface IExportStatementPaymentCreate { + /** + * The id of the created item + */ + Id?: BunqId; +} + +export interface IExportStatementPaymentContentListing {} + +export interface IExportStatementPayment {} + +export interface IExportStatementListing { + /** + * The id of the customer statement model. + */ + id?: number; + /** + * The timestamp of the statement model's creation. + */ + created?: string; + /** + * The timestamp of the statement model's last update. + */ + updated?: string; + /** + * The date from when this statement shows transactions. + */ + date_start?: string; + /** + * The date until which statement shows transactions. + */ + date_end?: string; + /** + * The status of the export. + */ + status?: string; + /** + * MT940 Statement number. Unique per monetary account. + */ + statement_number?: number; + /** + * The format of statement. + */ + statement_format?: string; + /** + * The regional format of a CSV statement. + */ + regional_format?: string; + /** + * The monetary account for which this statement was created. + */ + alias_monetary_account?: ILabelMonetaryAccount; +} + +export interface IExportStatementDelete {} + +export interface IExportStatementCreate { + /** + * The id of the created item + */ + Id?: BunqId; +} + +export interface IExportStatementContentListing {} + +export interface IExportStatement { + /** + * The format type of statement. Allowed values: MT940, CSV, PDF. + */ + statement_format: string; + /** + * The start date for making statements. + */ + date_start: string; + /** + * The end date for making statements. + */ + date_end: string; + /** + * Required for CSV exports. The regional format of the statement, can be UK_US (comma-separated) or EUROPEAN (semicolon-separated). + */ + regional_format?: string; + /** + * Only for PDF exports. Includes attachments to mutations in the export, such as scanned receipts. + */ + include_attachment?: boolean; +} + +export interface IExportRibRead { + /** + * The id of the rib as created on the server. + */ + id?: number; + /** + * The timestamp of the RIB's creation. + */ + created?: string; + /** + * The timestamp of the RIB's last update. + */ + updated?: string; +} + +export interface IExportRibListing { + /** + * The id of the rib as created on the server. + */ + id?: number; + /** + * The timestamp of the RIB's creation. + */ + created?: string; + /** + * The timestamp of the RIB's last update. + */ + updated?: string; +} + +export interface IExportRibDelete {} + +export interface IExportRibCreate { + /** + * The id of the rib as created on the server. + */ + id?: number; +} + +export interface IExportRibContentListing {} + +export interface IExportRib {} + +export interface IExportAnnualOverviewRead { + /** + * The id of the annual overview as created on the server. + */ + id?: number; + /** + * The timestamp of the annual overview 's creation. + */ + created?: string; + /** + * The timestamp of the annual overview 's last update. + */ + updated?: string; + /** + * The year for which the overview is. + */ + year?: number; + /** + * The user to which this annual overview belongs. + */ + alias_user?: ILabelUser; +} + +export interface IExportAnnualOverviewListing { + /** + * The id of the annual overview as created on the server. + */ + id?: number; + /** + * The timestamp of the annual overview 's creation. + */ + created?: string; + /** + * The timestamp of the annual overview 's last update. + */ + updated?: string; + /** + * The year for which the overview is. + */ + year?: number; + /** + * The user to which this annual overview belongs. + */ + alias_user?: ILabelUser; +} + +export interface IExportAnnualOverviewDelete {} + +export interface IExportAnnualOverviewCreate { + /** + * The id of the annual overview as created on the server. + */ + id?: number; +} + +export interface IExportAnnualOverviewContentListing {} + +export interface IExportAnnualOverview { + /** + * The year for which the overview is. + */ + year: number; +} + +export interface IEventRead { + /** + * The id of the event. + */ + id?: number; + /** + * The timestamp of the event's creation. + */ + created?: string; + /** + * The timestamp of the event's last update. + */ + updated?: string; + /** + * The performed action. Can be: CREATE or UPDATE. + */ + action?: string; + /** + * The id of the user the event applied to (if it was a user event). + */ + user_id?: string; + /** + * The id of the monetary account the event applied to (if it was a monetary account event). + */ + monetary_account_id?: string; + /** + * The details of the external object the event was created for. + */ + object?: IEventObject; + /** + * The event status. Can be: FINALIZED or AWAITING_REPLY. An example of FINALIZED event is a payment received event, while an AWAITING_REPLY event is a request received event. + */ + status?: string; +} + +export interface IEventObject { + /** + * + */ + BunqMeTab?: IBunqMeTab; + /** + * + */ + BunqMeTabResultResponse?: IBunqMeTabResultResponse; + /** + * + */ + BunqMeFundraiserResult?: IBunqMeFundraiserResult; + /** + * + */ + Card?: ICard; + /** + * + */ + CardDebit?: ICardDebit; + /** + * + */ + DraftPayment?: IDraftPayment; + /** + * + */ + FeatureAnnouncement?: IFeatureAnnouncement; + /** + * + */ + IdealMerchantTransaction?: IIdealMerchantTransaction; + /** + * + */ + Invoice?: IInvoice; + /** + * + */ + ScheduledPayment?: ISchedulePayment; + /** + * + */ + ScheduledPaymentBatch?: ISchedulePaymentBatch; + /** + * + */ + ScheduledInstance?: IScheduleInstance; + /** + * + */ + MasterCardAction?: IMasterCardAction; + /** + * + */ + BankSwitchServiceNetherlandsIncomingPayment?: IBankSwitchServiceNetherlandsIncomingPayment; + /** + * + */ + Payment?: IPayment; + /** + * + */ + PaymentBatch?: IPaymentBatch; + /** + * + */ + RequestInquiryBatch?: IRequestInquiryBatch; + /** + * + */ + RequestInquiry?: IRequestInquiry; + /** + * + */ + RequestResponse?: IRequestResponse; + /** + * + */ + RewardRecipient?: IRewardRecipient; + /** + * + */ + RewardSender?: IRewardSender; + /** + * + */ + ShareInviteMonetaryAccountInquiryBatch?: IShareInviteMonetaryAccountInquiryBatch; + /** + * + */ + ShareInviteMonetaryAccountInquiry?: IShareInviteMonetaryAccountInquiry; + /** + * + */ + ShareInviteMonetaryAccountResponse?: IShareInviteMonetaryAccountResponse; + /** + * + */ + SofortMerchantTransaction?: ISofortMerchantTransaction; + /** + * + */ + TabResultInquiry?: ITabResultInquiry; + /** + * + */ + TabResultResponse?: ITabResultResponse; + /** + * + */ + TransferwisePayment?: ITransferwiseTransfer; +} + +export interface IEventListing { + /** + * The id of the event. + */ + id?: number; + /** + * The timestamp of the event's creation. + */ + created?: string; + /** + * The timestamp of the event's last update. + */ + updated?: string; + /** + * The performed action. Can be: CREATE or UPDATE. + */ + action?: string; + /** + * The id of the user the event applied to (if it was a user event). + */ + user_id?: string; + /** + * The id of the monetary account the event applied to (if it was a monetary account event). + */ + monetary_account_id?: string; + /** + * The details of the external object the event was created for. + */ + object?: IEventObject; + /** + * The event status. Can be: FINALIZED or AWAITING_REPLY. An example of FINALIZED event is a payment received event, while an AWAITING_REPLY event is a request received event. + */ + status?: string; +} + +export interface IDraftShareInviteMonetaryAccountUpdate { + /** + * The id of the created item + */ + Id?: BunqId; +} + +export interface IDraftShareInviteMonetaryAccountRead { + /** + * The user who created the draft share invite. + */ + user_alias_created?: ILabelUser; + /** + * The status of the draft share invite. Can be USED, CANCELLED and PENDING. + */ + status?: string; + /** + * The moment when this draft share invite expires. + */ + expiration?: string; + /** + * The id of the share invite bank response this draft share belongs to. + */ + share_invite_bank_response_id?: number; + /** + * The URL redirecting user to the draft share invite in the app. Only works on mobile devices. + */ + draft_share_url?: string; + /** + * The draft share invite details. + */ + draft_share_settings?: IDraftShareInviteEntry; + /** + * The id of the newly created draft share invite. + */ + id?: number; +} + +export interface IDraftShareInviteMonetaryAccountQrCodeContentListing {} + +export interface IDraftShareInviteMonetaryAccountListing { + /** + * The user who created the draft share invite. + */ + user_alias_created?: ILabelUser; + /** + * The status of the draft share invite. Can be USED, CANCELLED and PENDING. + */ + status?: string; + /** + * The moment when this draft share invite expires. + */ + expiration?: string; + /** + * The id of the share invite bank response this draft share belongs to. + */ + share_invite_bank_response_id?: number; + /** + * The URL redirecting user to the draft share invite in the app. Only works on mobile devices. + */ + draft_share_url?: string; + /** + * The draft share invite details. + */ + draft_share_settings?: IDraftShareInviteEntry; + /** + * The id of the newly created draft share invite. + */ + id?: number; +} + +export interface IDraftShareInviteMonetaryAccountCreate { + /** + * The id of the newly created draft share invite. + */ + id?: number; +} + +export interface IDraftShareInviteMonetaryAccount { + /** + * The status of the draft share invite. Can be CANCELLED (the user cancels the draft share before it's used). + */ + status?: string; + /** + * The moment when this draft share invite expires. + */ + expiration: string; + /** + * The draft share invite details. + */ + draft_share_settings: IDraftShareInviteEntry; +} + +export interface IDraftShareInviteEntry { + /** + * The share details. Only one of these objects is returned. + */ + share_detail?: IShareDetail; + /** + * The start date of this share. + */ + start_date?: string; + /** + * The expiration date of this share. + */ + end_date?: string; +} + +export interface IDraftPaymentUpdate { + /** + * The id of the created DrafPayment. + */ + id?: number; +} + +export interface IDraftPaymentResponse { + /** + * The status with which was responded. + */ + status?: string; + /** + * The user that responded to the DraftPayment. + */ + user_alias_created?: ILabelUser; +} + +export interface IDraftPaymentRead { + /** + * The id of the created DrafPayment. + */ + id?: number; + /** + * The id of the MonetaryAccount the DraftPayment applies to. + */ + monetary_account_id?: number; + /** + * The label of the User who created the DraftPayment. + */ + user_alias_created?: ILabelUser; + /** + * All responses to this draft payment. + */ + responses?: Array; + /** + * The status of the DraftPayment. + */ + status?: string; + /** + * The type of the DraftPayment. + */ + type?: string; + /** + * The entries in the DraftPayment. + */ + entries?: Array; + /** + * The Payment or PaymentBatch. This will only be present after the DraftPayment has been accepted. + */ + object?: IDraftPaymentAnchorObject; + /** + * The reference to the object used for split the bill. Can be RequestInquiry or RequestInquiryBatch + */ + request_reference_split_the_bill?: Array; + /** + * The schedule details. + */ + schedule?: ISchedule; +} + +export interface IDraftPaymentListing { + /** + * The id of the created DrafPayment. + */ + id?: number; + /** + * The id of the MonetaryAccount the DraftPayment applies to. + */ + monetary_account_id?: number; + /** + * The label of the User who created the DraftPayment. + */ + user_alias_created?: ILabelUser; + /** + * All responses to this draft payment. + */ + responses?: Array; + /** + * The status of the DraftPayment. + */ + status?: string; + /** + * The type of the DraftPayment. + */ + type?: string; + /** + * The entries in the DraftPayment. + */ + entries?: Array; + /** + * The Payment or PaymentBatch. This will only be present after the DraftPayment has been accepted. + */ + object?: IDraftPaymentAnchorObject; + /** + * The reference to the object used for split the bill. Can be RequestInquiry or RequestInquiryBatch + */ + request_reference_split_the_bill?: Array; + /** + * The schedule details. + */ + schedule?: ISchedule; +} + +export interface IDraftPaymentEntry { + /** + * The amount of the payment. + */ + amount?: IAmount; + /** + * The LabelMonetaryAccount containing the public information of the other (counterparty) side of the DraftPayment. + */ + counterparty_alias?: ILabelMonetaryAccount; + /** + * The description for the DraftPayment. Maximum 140 characters for DraftPayments to external IBANs, 9000 characters for DraftPayments to only other bunq MonetaryAccounts. + */ + description?: string; + /** + * Optional data to be included with the Payment specific to the merchant. + */ + merchant_reference?: string; + /** + * The Attachments attached to the DraftPayment. + */ + attachment?: Array; + /** + * The id of the draft payment entry. + */ + id?: number; + /** + * The LabelMonetaryAccount containing the public information of 'this' (party) side of the DraftPayment. + */ + alias?: ILabelMonetaryAccount; + /** + * The type of the draft payment entry. + */ + type?: string; +} + +export interface IDraftPaymentCreate { + /** + * The id of the created DrafPayment. + */ + id?: number; +} + +export interface IDraftPaymentAnchorObject { + /** + * + */ + Payment?: IPayment; + /** + * + */ + PaymentBatch?: IPaymentBatch; +} + +export interface IDraftPayment { + /** + * The status of the DraftPayment. + */ + status?: string; + /** + * The list of entries in the DraftPayment. Each entry will result in a payment when the DraftPayment is accepted. + */ + entries: Array; + /** + * The last updated_timestamp that you received for this DraftPayment. This needs to be provided to prevent race conditions. + */ + previous_updated_timestamp?: string; + /** + * The number of accepts that are required for the draft payment to receive status ACCEPTED. Currently only 1 is valid. + */ + number_of_required_accepts: number; + /** + * The schedule details when creating or updating a scheduled payment. + */ + schedule?: ISchedule; +} + +export interface IDeviceServerRead { + /** + * The id of the DeviceServer as created on the server. + */ + id?: number; + /** + * The timestamp of the DeviceServer's creation. + */ + created?: string; + /** + * The timestamp of the DeviceServer's last update. + */ + updated?: string; + /** + * The description of the DeviceServer. + */ + description?: string; + /** + * The ip address which was used to create the DeviceServer. + */ + ip?: string; + /** + * The status of the DeviceServer. Can be ACTIVE, BLOCKED, NEEDS_CONFIRMATION or OBSOLETE. + */ + status?: string; +} + +export interface IDeviceServerListing { + /** + * The id of the DeviceServer as created on the server. + */ + id?: number; + /** + * The timestamp of the DeviceServer's creation. + */ + created?: string; + /** + * The timestamp of the DeviceServer's last update. + */ + updated?: string; + /** + * The description of the DeviceServer. + */ + description?: string; + /** + * The ip address which was used to create the DeviceServer. + */ + ip?: string; + /** + * The status of the DeviceServer. Can be ACTIVE, BLOCKED, NEEDS_CONFIRMATION or OBSOLETE. + */ + status?: string; +} + +export interface IDeviceServerCreate { + /** + * The id of the DeviceServer as created on the server. + */ + id?: number; +} + +export interface IDeviceServer { + /** + * The description of the DeviceServer. This is only for your own reference when reading the DeviceServer again. + */ + description: string; + /** + * The API key. You can request an API key in the bunq app. + */ + secret: string; + /** + * An array of IPs (v4 or v6) this DeviceServer will be able to do calls from. These will be linked to the API key. + */ + permitted_ips?: Array; +} + +export interface IDeviceRead { + /** + * + */ + DeviceServer?: IDeviceServer; +} + +export interface IDeviceListing { + /** + * + */ + DeviceServer?: IDeviceServer; +} + +export interface ICustomerLimitListing { + /** + * The limit of monetary accounts. + */ + limit_monetary_account?: number; + /** + * The amount of additional monetary accounts you can create. + */ + limit_monetary_account_remaining?: number; + /** + * The limit of Maestro cards. + */ + limit_card_debit_maestro?: number; + /** + * The limit of MasterCard cards. + */ + limit_card_debit_mastercard?: number; + /** + * DEPRECTATED: The limit of wildcards, e.g. Maestro or MasterCard cards. + */ + limit_card_debit_wildcard?: number; + /** + * The limit of wildcards, e.g. Maestro or MasterCard cards. + */ + limit_card_wildcard?: number; + /** + * DEPRECTATED: The limit of free replacement debit cards, replaced by: limit_card_replacement + */ + limit_card_debit_replacement?: number; + /** + * The limit of free replacement cards. + */ + limit_card_replacement?: number; + /** + * The maximum amount a user is allowed to spend in a month. + */ + limit_amount_monthly?: IAmount; + /** + * The amount the user has spent in the last month. + */ + spent_amount_monthly?: IAmount; +} + +export interface ICustomerLimit { + /** + * The limit of monetary accounts. + */ + limit_monetary_account?: number; + /** + * The amount of additional monetary accounts you can create. + */ + limit_monetary_account_remaining?: number; + /** + * The limit of Maestro cards. + */ + limit_card_debit_maestro?: number; + /** + * The limit of MasterCard cards. + */ + limit_card_debit_mastercard?: number; + /** + * DEPRECTATED: The limit of wildcards, e.g. Maestro or MasterCard cards. + */ + limit_card_debit_wildcard?: number; + /** + * The limit of wildcards, e.g. Maestro or MasterCard cards. + */ + limit_card_wildcard?: number; + /** + * DEPRECTATED: The limit of free replacement debit cards, replaced by: limit_card_replacement + */ + limit_card_debit_replacement?: number; + /** + * The limit of free replacement cards. + */ + limit_card_replacement?: number; + /** + * The maximum amount a user is allowed to spend in a month. + */ + limit_amount_monthly?: IAmount; + /** + * The amount the user has spent in the last month. + */ + spent_amount_monthly?: IAmount; +} + +export interface ICustomer { + /** + * The primary billing account account's id. + */ + billing_account_id?: string; + /** + * The preferred notification type for invoices. + */ + invoice_notification_preference?: string; + /** + * The id of the customer. + */ + id?: number; + /** + * The timestamp of the customer object's creation. + */ + created?: string; + /** + * The timestamp of the customer object's last update. + */ + updated?: string; +} + +export interface ICoOwner { + /** + * The Alias of the co-owner. + */ + alias?: ILabelUser; + /** + * Can be: ACCEPTED, REJECTED, PENDING or REVOKED + */ + status?: string; +} + +export interface IConfirmationOfFundsCreate { + /** + * The id of the created item + */ + Id?: BunqId; +} + +export interface IConfirmationOfFunds { + /** + * The pointer (IBAN) of the account we're querying. + */ + pointer_iban: IPointer; + /** + * The amount we want to check for. + */ + amount: IAmount; +} + +export interface ICertificatePinnedRead { + /** + * The certificate chain in .PEM format. Certificates are glued with newline characters. + */ + certificate_chain?: string; + /** + * The id generated for the pinned certificate chain. + */ + id?: number; +} + +export interface ICertificatePinnedListing { + /** + * The certificate chain in .PEM format. Certificates are glued with newline characters. + */ + certificate_chain?: string; + /** + * The id generated for the pinned certificate chain. + */ + id?: number; +} + +export interface ICertificatePinnedDelete {} + +export interface ICertificatePinnedCreate { + /** + * The id generated for the pinned certificate chain. + */ + id?: number; +} + +export interface ICertificatePinned { + /** + * The certificate chain in .PEM format. + */ + certificate_chain: Array; +} + +export interface ICertificate { + /** + * A single certificate in the chain in .PEM format. + */ + certificate?: string; +} + +export interface ICashRegisterUpdate { + /** + * The id of the updated CashRegister. + */ + id?: number; +} + +export interface ICashRegisterRead { + /** + * The id of the created CashRegister. + */ + id?: number; + /** + * The timestamp of the CashRegister's creation. + */ + created?: string; + /** + * The timestamp of the CashRegister's last update. + */ + updated?: string; + /** + * The name of the CashRegister. + */ + name?: string; + /** + * The status of the CashRegister. Can be PENDING_APPROVAL, ACTIVE, DENIED or CLOSED. + */ + status?: string; + /** + * The Avatar of the CashRegister. + */ + avatar?: IAvatar; + /** + * The geolocation of the CashRegister. Can be null. + */ + location?: IGeolocation; + /** + * The tab text for waiting screen of CashRegister. + */ + tab_text_waiting_screen?: Array; +} + +export interface ICashRegisterQrCodeUpdate { + /** + * The id of the updated QR code. Use this id to get the RAW content of the QR code with: ../qr-code/{id}/content + */ + id?: number; +} + +export interface ICashRegisterQrCodeRead { + /** + * The id of the created QR code. Use this id to get the RAW content of the QR code with: ../qr-code/{id}/content + */ + id?: number; + /** + * The timestamp of the QR code's creation. + */ + created?: string; + /** + * The timestamp of the TokenQrCashRegister's last update. + */ + updated?: string; + /** + * The status of this QR code. If the status is "ACTIVE" the QR code can be scanned to see the linked CashRegister and tab. If the status is "INACTIVE" the QR code does not link to a anything. + */ + status?: string; + /** + * The CashRegister that is linked to the token. + */ + cash_register?: ICashRegister; + /** + * Holds the Tab object. Can be TabUsageSingle, TabUsageMultiple or null + */ + tab_object?: ITab; +} + +export interface ICashRegisterQrCodeListing { + /** + * The id of the created QR code. Use this id to get the RAW content of the QR code with: ../qr-code/{id}/content + */ + id?: number; + /** + * The timestamp of the QR code's creation. + */ + created?: string; + /** + * The timestamp of the TokenQrCashRegister's last update. + */ + updated?: string; + /** + * The status of this QR code. If the status is "ACTIVE" the QR code can be scanned to see the linked CashRegister and tab. If the status is "INACTIVE" the QR code does not link to a anything. + */ + status?: string; + /** + * The CashRegister that is linked to the token. + */ + cash_register?: ICashRegister; + /** + * Holds the Tab object. Can be TabUsageSingle, TabUsageMultiple or null + */ + tab_object?: ITab; +} + +export interface ICashRegisterQrCodeCreate { + /** + * The id of the created QR code. Use this id to get the RAW content of the QR code with: ../qr-code/{id}/content + */ + id?: number; +} + +export interface ICashRegisterQrCodeContentListing {} + +export interface ICashRegisterQrCode { + /** + * The status of the QR code. ACTIVE or INACTIVE. Only one QR code can be ACTIVE for a CashRegister at any time. Setting a QR code to ACTIVE will deactivate any other CashRegister QR codes. + */ + status: string; +} + +export interface ICashRegisterListing { + /** + * The id of the created CashRegister. + */ + id?: number; + /** + * The timestamp of the CashRegister's creation. + */ + created?: string; + /** + * The timestamp of the CashRegister's last update. + */ + updated?: string; + /** + * The name of the CashRegister. + */ + name?: string; + /** + * The status of the CashRegister. Can be PENDING_APPROVAL, ACTIVE, DENIED or CLOSED. + */ + status?: string; + /** + * The Avatar of the CashRegister. + */ + avatar?: IAvatar; + /** + * The geolocation of the CashRegister. Can be null. + */ + location?: IGeolocation; + /** + * The tab text for waiting screen of CashRegister. + */ + tab_text_waiting_screen?: Array; +} + +export interface ICashRegisterCreate { + /** + * The id of the created CashRegister. + */ + id?: number; +} + +export interface ICashRegister { + /** + * The name of the CashRegister. + */ + name?: string; + /** + * The status of the CashRegister. Can be PENDING_APPROVAL, ACTIVE, DENIED or CLOSED. + */ + status?: string; + /** + * The UUID of the avatar of the CashRegister. Use the calls /attachment-public and /avatar to create a new Avatar and get its UUID. + */ + avatar_uuid: string; + /** + * The geolocation of the CashRegister. Can be null. + */ + location?: IGeolocation; + /** + * The tab text for waiting screen of CashRegister. + */ + tab_text_waiting_screen?: Array; + /** + * The id of the created CashRegister. + */ + id?: number; + /** + * The timestamp of the CashRegister's creation. + */ + created?: string; + /** + * The timestamp of the CashRegister's last update. + */ + updated?: string; + /** + * The Avatar of the CashRegister. + */ + avatar?: IAvatar; +} + +export interface ICardUpdate { + /** + * The id of the created item + */ + Id?: BunqId; +} + +export interface ICardReplaceCreate { + /** + * The id of the created item + */ + Id?: BunqId; +} + +export interface ICardReplace { + /** + * The user's name as it will be on the card. Check 'card-name' for the available card names for a user. + */ + name_on_card?: string; + /** + * Array of Types, PINs, account IDs assigned to the card. + */ + pin_code_assignment?: Array; + /** + * The second line on the card. + */ + second_line?: string; +} + +export interface ICardRead { + /** + * The id of the card. + */ + id?: number; + /** + * The timestamp of the card's creation. + */ + created?: string; + /** + * The timestamp of the card's last update. + */ + updated?: string; + /** + * The public UUID of the card. + */ + public_uuid?: string; + /** + * The type of the card. Can be MAESTRO, MASTERCARD. + */ + type?: string; + /** + * The sub-type of the card. + */ + sub_type?: string; + /** + * The second line of text on the card + */ + second_line?: string; + /** + * The status to set for the card. Can be ACTIVE, DEACTIVATED, LOST, STOLEN, CANCELLED, EXPIRED or PIN_TRIES_EXCEEDED. + */ + status?: string; + /** + * The sub-status of the card. Can be NONE or REPLACED. + */ + sub_status?: string; + /** + * The order status of the card. Can be CARD_UPDATE_REQUESTED, CARD_UPDATE_SENT, CARD_UPDATE_ACCEPTED, ACCEPTED_FOR_PRODUCTION or DELIVERED_TO_CUSTOMER. + */ + order_status?: string; + /** + * Expiry date of the card. + */ + expiry_date?: string; + /** + * The user's name on the card. + */ + name_on_card?: string; + /** + * Array of PANs and their attributes. + */ + primary_account_numbers?: Array; + /** + * The spending limit for the card. + */ + card_limit?: IAmount; + /** + * The ATM spending limit for the card. + */ + card_limit_atm?: IAmount; + /** + * The countries for which to grant (temporary) permissions to use the card. + */ + country_permission?: Array; + /** + * The monetary account this card was ordered on and the label user that owns the card. + */ + label_monetary_account_ordered?: ILabelMonetaryAccount; + /** + * The monetary account that this card is currently linked to and the label user viewing it. + */ + label_monetary_account_current?: ILabelMonetaryAccount; + /** + * Array of Types, PINs, account IDs assigned to the card. + */ + pin_code_assignment?: Array; + /** + * ID of the MA to be used as fallback for this card if insufficient balance. Fallback account is removed if not supplied. + */ + monetary_account_id_fallback?: number; + /** + * The country that is domestic to the card. Defaults to country of residence of user. + */ + country?: string; +} + +export interface ICardPrimaryAccountNumber { + /** + * The ID for this Virtual PAN. + */ + id?: number; + /** + * The description for this PAN. + */ + description?: string; + /** + * The status for this PAN, only for Online Cards. + */ + status?: string; + /** + * The ID of the monetary account to assign to this PAN, only for Online Cards. + */ + monetary_account_id?: number; + /** + * The UUID for this Virtual PAN. + */ + uuid?: string; + /** + * The last four digits of the PAN. + */ + four_digit?: string; +} + +export interface ICardPinAssignment { + /** + * PIN type. Can be PRIMARY, SECONDARY or TERTIARY + */ + type: AssignmentType; + /** + * The 4 digit PIN to be assigned to this account. + */ + pin_code?: string; + /** + * The ID of the monetary account to assign to this pin for the card. + */ + monetary_account_id: number; +} + +export interface ICardNameListing { + /** + * All possible variations (of suitable length) of user's legal name for the debit card. + */ + possible_card_name_array?: Array; +} + +export interface ICardListing { + /** + * The id of the card. + */ + id?: number; + /** + * The timestamp of the card's creation. + */ + created?: string; + /** + * The timestamp of the card's last update. + */ + updated?: string; + /** + * The public UUID of the card. + */ + public_uuid?: string; + /** + * The type of the card. Can be MAESTRO, MASTERCARD. + */ + type?: string; + /** + * The sub-type of the card. + */ + sub_type?: string; + /** + * The second line of text on the card + */ + second_line?: string; + /** + * The status to set for the card. Can be ACTIVE, DEACTIVATED, LOST, STOLEN, CANCELLED, EXPIRED or PIN_TRIES_EXCEEDED. + */ + status?: string; + /** + * The sub-status of the card. Can be NONE or REPLACED. + */ + sub_status?: string; + /** + * The order status of the card. Can be CARD_UPDATE_REQUESTED, CARD_UPDATE_SENT, CARD_UPDATE_ACCEPTED, ACCEPTED_FOR_PRODUCTION or DELIVERED_TO_CUSTOMER. + */ + order_status?: string; + /** + * Expiry date of the card. + */ + expiry_date?: string; + /** + * The user's name on the card. + */ + name_on_card?: string; + /** + * Array of PANs and their attributes. + */ + primary_account_numbers?: Array; + /** + * The spending limit for the card. + */ + card_limit?: IAmount; + /** + * The ATM spending limit for the card. + */ + card_limit_atm?: IAmount; + /** + * The countries for which to grant (temporary) permissions to use the card. + */ + country_permission?: Array; + /** + * The monetary account this card was ordered on and the label user that owns the card. + */ + label_monetary_account_ordered?: ILabelMonetaryAccount; + /** + * The monetary account that this card is currently linked to and the label user viewing it. + */ + label_monetary_account_current?: ILabelMonetaryAccount; + /** + * Array of Types, PINs, account IDs assigned to the card. + */ + pin_code_assignment?: Array; + /** + * ID of the MA to be used as fallback for this card if insufficient balance. Fallback account is removed if not supplied. + */ + monetary_account_id_fallback?: number; + /** + * The country that is domestic to the card. Defaults to country of residence of user. + */ + country?: string; +} + +export interface ICardGeneratedCvc2Update { + /** + * The id of the created item + */ + Id?: BunqId; +} + +export interface ICardGeneratedCvc2Read { + /** + * The id of the cvc code. + */ + id?: number; + /** + * The timestamp of the cvc code's creation. + */ + created?: string; + /** + * The timestamp of the cvc code's last update. + */ + updated?: string; + /** + * The type of generated cvc2. Can be STATIC or GENERATED. + */ + type?: string; + /** + * The cvc2 code. + */ + cvc2?: string; + /** + * The status of the cvc2. Can be AVAILABLE, USED, EXPIRED, BLOCKED. + */ + status?: string; + /** + * Expiry time of the cvc2. + */ + expiry_time?: string; +} + +export interface ICardGeneratedCvc2Listing { + /** + * The id of the cvc code. + */ + id?: number; + /** + * The timestamp of the cvc code's creation. + */ + created?: string; + /** + * The timestamp of the cvc code's last update. + */ + updated?: string; + /** + * The type of generated cvc2. Can be STATIC or GENERATED. + */ + type?: string; + /** + * The cvc2 code. + */ + cvc2?: string; + /** + * The status of the cvc2. Can be AVAILABLE, USED, EXPIRED, BLOCKED. + */ + status?: string; + /** + * Expiry time of the cvc2. + */ + expiry_time?: string; +} + +export interface ICardGeneratedCvc2Create { + /** + * The id of the created item + */ + Id?: BunqId; +} + +export interface ICardGeneratedCvc2 { + /** + * The type of generated cvc2. Can be STATIC or GENERATED. + */ + type?: string; +} + +export interface ICardDebitCreate { + /** + * The id of the created item + */ + Id?: BunqId; +} + +export interface ICardDebit { + /** + * The second line of text on the card, used as name/description for it. It can contain at most 17 characters and it can be empty. + */ + second_line: string; + /** + * The user's name as it will be on the card. Check 'card-name' for the available card names for a user. + */ + name_on_card: string; + /** + * The pointer to the monetary account that will be connected at first with the card. Its IBAN code is also the one that will be printed on the card itself. The pointer must be of type IBAN. + */ + alias?: IPointer; + /** + * The type of card to order. Can be MAESTRO or MASTERCARD. + */ + type: string; + /** + * Array of Types, PINs, account IDs assigned to the card. + */ + pin_code_assignment?: Array; + /** + * ID of the MA to be used as fallback for this card if insufficient balance. Fallback account is removed if not supplied. + */ + monetary_account_id_fallback?: number; +} + +export interface ICardCreditCreate { + /** + * The id of the created item + */ + Id?: BunqId; +} + +export interface ICardCredit { + /** + * The second line of text on the card, used as name/description for it. It can contain at most 17 characters and it can be empty. + */ + second_line: string; + /** + * The user's name as it will be on the card. Check 'card-name' for the available card names for a user. + */ + name_on_card: string; + /** + * The pointer to the monetary account that will be connected at first with the card. Its IBAN code is also the one that will be printed on the card itself. The pointer must be of type IBAN. + */ + alias?: IPointer; + /** + * The type of card to order. Can be MASTERCARD. + */ + type: string; + /** + * Array of Types, PINs, account IDs assigned to the card. + */ + pin_code_assignment?: Array; + /** + * ID of the MA to be used as fallback for this card if insufficient balance. Fallback account is removed if not supplied. + */ + monetary_account_id_fallback?: number; +} + +export interface ICardCountryPermission { + /** + * The country to allow transactions in (e.g. NL, DE). + */ + country: string; + /** + * Expiry time of this rule. + */ + expiry_time: string; + /** + * The id of the card country permission entry. + */ + id?: number; +} + +export interface ICardBatchEntry { + /** + * The ID of the card that needs to be updated. + */ + id: number; + /** + * 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 ACCEPTED_FOR_PRODUCTION/DELIVERED_TO_CUSTOMER/CARD_UPDATE_REQUESTED/CARD_UPDATE_SENT/CARD_UPDATE_ACCEPTED. Can only be set to DEACTIVATED after initial activation, i.e. order_status is DELIVERED_TO_CUSTOMER/CARD_UPDATE_REQUESTED/CARD_UPDATE_SENT/CARD_UPDATE_ACCEPTED. Mind that all the possible choices (apart from ACTIVE and DEACTIVATED) are permanent and cannot be changed after. + */ + status?: string; + /** + * The spending limit for the card. + */ + card_limit?: IAmount; + /** + * The ATM spending limit for the card. + */ + card_limit_atm?: IAmount; + /** + * The countries for which to grant (temporary) permissions to use the card. + */ + country_permission?: Array; + /** + * ID of the MA to be used as fallback for this card if insufficient balance. Fallback account is removed if not supplied. + */ + monetary_account_id_fallback?: number; +} + +export interface ICardBatchCreate { + /** + * The ids of the cards that have been updated. + */ + updated_card_ids?: Array; +} + +export interface ICardBatch { + /** + * The cards that need to be updated. + */ + cards: Array; +} + +export interface ICard { + /** + * The plaintext pin code. Requests require encryption to be enabled. + */ + pin_code?: string; + /** + * DEPRECATED: Activate a card by setting status to ACTIVE when the order_status is ACCEPTED_FOR_PRODUCTION. + */ + activation_code?: string; + /** + * 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 ACCEPTED_FOR_PRODUCTION/DELIVERED_TO_CUSTOMER/CARD_UPDATE_REQUESTED/CARD_UPDATE_SENT/CARD_UPDATE_ACCEPTED. Can only be set to DEACTIVATED after initial activation, i.e. order_status is DELIVERED_TO_CUSTOMER/CARD_UPDATE_REQUESTED/CARD_UPDATE_SENT/CARD_UPDATE_ACCEPTED. Mind that all the possible choices (apart from ACTIVE and DEACTIVATED) are permanent and cannot be changed after. + */ + status?: string; + /** + * The spending limit for the card. + */ + card_limit?: IAmount; + /** + * The ATM spending limit for the card. + */ + card_limit_atm?: IAmount; + /** + * The countries for which to grant (temporary) permissions to use the card. + */ + country_permission?: Array; + /** + * Array of Types, PINs, account IDs assigned to the card. + */ + pin_code_assignment?: Array; + /** + * Array of PANs and their attributes. + */ + primary_account_numbers?: Array; + /** + * ID of the MA to be used as fallback for this card if insufficient balance. Fallback account is removed if not supplied. + */ + monetary_account_id_fallback?: number; +} + +export interface IBunqMeTabUpdate { + /** + * The id of the created item + */ + Id?: BunqId; +} + +export interface IBunqMeTabResultResponseRead { + /** + * The payment made for the bunq.me tab. + */ + payment?: IPayment; +} + +export interface IBunqMeTabResultResponse { + /** + * The payment made for the bunq.me tab. + */ + payment?: IPayment; +} + +export interface IBunqMeTabResultInquiry { + /** + * The payment made for the Tab. + */ + payment?: IPayment; + /** + * The Id of the bunq.me tab that this BunqMeTabResultInquiry belongs to. + */ + bunq_me_tab_id?: number; +} + +export interface IBunqMeTabRead { + /** + * The id of the created bunq.me. + */ + id?: number; + /** + * The timestamp when the bunq.me was created. + */ + created?: string; + /** + * The timestamp when the bunq.me was last updated. + */ + updated?: string; + /** + * The timestamp of when the bunq.me expired or will expire. + */ + time_expiry?: string; + /** + * The id of the MonetaryAccount the bunq.me was sent from. + */ + monetary_account_id?: number; + /** + * The status of the bunq.me. Can be WAITING_FOR_PAYMENT, CANCELLED or EXPIRED. + */ + status?: string; + /** + * The url that points to the bunq.me page. + */ + bunqme_tab_share_url?: string; + /** + * The bunq.me entry containing the payment information. + */ + bunqme_tab_entry?: IBunqMeTabEntry; + /** + * The list of bunq.me result Inquiries successfully made and paid. + */ + result_inquiries?: Array; +} + +export interface IBunqMeTabListing { + /** + * The id of the created bunq.me. + */ + id?: number; + /** + * The timestamp when the bunq.me was created. + */ + created?: string; + /** + * The timestamp when the bunq.me was last updated. + */ + updated?: string; + /** + * The timestamp of when the bunq.me expired or will expire. + */ + time_expiry?: string; + /** + * The id of the MonetaryAccount the bunq.me was sent from. + */ + monetary_account_id?: number; + /** + * The status of the bunq.me. Can be WAITING_FOR_PAYMENT, CANCELLED or EXPIRED. + */ + status?: string; + /** + * The url that points to the bunq.me page. + */ + bunqme_tab_share_url?: string; + /** + * The bunq.me entry containing the payment information. + */ + bunqme_tab_entry?: IBunqMeTabEntry; + /** + * The list of bunq.me result Inquiries successfully made and paid. + */ + result_inquiries?: Array; +} + +export interface IBunqMeTabEntry { + /** + * The requested Amount. + */ + amount_inquired?: IAmount; + /** + * The description for the bunq.me. Maximum 9000 characters. + */ + description?: string; + /** + * The URL which the user is sent to when a payment is completed. + */ + redirect_url?: string; + /** + * The uuid of the bunq.me. + */ + uuid?: string; + /** + * The LabelMonetaryAccount with the public information of the User and the MonetaryAccount that created the bunq.me link. + */ + alias?: ILabelMonetaryAccount; + /** + * The status of the bunq.me. Can be WAITING_FOR_PAYMENT, CANCELLED or EXPIRED. + */ + status?: string; + /** + * List of available merchants. + */ + merchant_available?: Array; +} + +export interface IBunqMeTabCreate { + /** + * The id of the created bunq.me. + */ + id?: number; +} + +export interface IBunqMeTab { + /** + * The bunq.me entry containing the payment information. + */ + bunqme_tab_entry: IBunqMeTabEntry; + /** + * 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. + */ + status?: string; +} + +export interface IBunqMeMerchantAvailable { + /** + * A merchant type supported by bunq.me. + */ + merchant_type?: string; + /** + * Whether or not the merchant is available for the user. + */ + available?: boolean; +} + +export interface IBunqMeFundraiserResultRead { + /** + * The id of the bunq.me. + */ + id?: number; + /** + * The timestamp when the bunq.me was created. + */ + created?: string; + /** + * The timestamp when the bunq.me was last updated. + */ + updated?: string; + /** + * The bunq.me fundraiser profile. + */ + bunqme_fundraiser_profile?: IBunqMeFundraiserProfile; + /** + * The list of payments, paid to the bunq.me fundraiser profile. + */ + payments?: Array; +} + +export interface IBunqMeFundraiserResult { + /** + * The id of the bunq.me. + */ + id?: number; + /** + * The timestamp when the bunq.me was created. + */ + created?: string; + /** + * The timestamp when the bunq.me was last updated. + */ + updated?: string; + /** + * The bunq.me fundraiser profile. + */ + bunqme_fundraiser_profile?: IBunqMeFundraiserProfile; + /** + * The list of payments, paid to the bunq.me fundraiser profile. + */ + payments?: Array; +} + +export interface IBunqMeFundraiserProfileUserRead { + /** + * Id of the monetary account on which you want to receive bunq.me payments. + */ + monetary_account_id?: number; + /** + * The color chosen for the bunq.me fundraiser profile in hexadecimal format. + */ + color?: string; + /** + * The LabelMonetaryAccount with the public information of the User and the MonetaryAccount that created the bunq.me fundraiser profile. + */ + alias?: ILabelMonetaryAccount; + /** + * The description of the bunq.me fundraiser profile. + */ + description?: string; + /** + * The attachment used for the background of the bunq.me fundraiser profile. + */ + attachment?: IAttachmentPublic; + /** + * The pointer (url) which will be used to access the bunq.me fundraiser profile. + */ + pointer?: IPointer; + /** + * The URL which the user is sent to when a payment is completed. + */ + redirect_url?: string; + /** + * The status of the bunq.me fundraiser profile, can be ACTIVE or DEACTIVATED. + */ + status?: string; +} + +export interface IBunqMeFundraiserProfileUserListing { + /** + * Id of the monetary account on which you want to receive bunq.me payments. + */ + monetary_account_id?: number; + /** + * The color chosen for the bunq.me fundraiser profile in hexadecimal format. + */ + color?: string; + /** + * The LabelMonetaryAccount with the public information of the User and the MonetaryAccount that created the bunq.me fundraiser profile. + */ + alias?: ILabelMonetaryAccount; + /** + * The description of the bunq.me fundraiser profile. + */ + description?: string; + /** + * The attachment used for the background of the bunq.me fundraiser profile. + */ + attachment?: IAttachmentPublic; + /** + * The pointer (url) which will be used to access the bunq.me fundraiser profile. + */ + pointer?: IPointer; + /** + * The URL which the user is sent to when a payment is completed. + */ + redirect_url?: string; + /** + * The status of the bunq.me fundraiser profile, can be ACTIVE or DEACTIVATED. + */ + status?: string; +} + +export interface IBunqMeFundraiserProfile { + /** + * The pointer (url) which will be used to access the bunq.me fundraiser profile. + */ + pointer?: IPointer; + /** + * The color chosen for the bunq.me fundraiser profile in hexadecimal format. + */ + color?: string; + /** + * The LabelMonetaryAccount with the public information of the User and the MonetaryAccount that created the bunq.me fundraiser profile. + */ + alias?: ILabelMonetaryAccount; + /** + * The description of the bunq.me fundraiser profile. + */ + description?: string; + /** + * The attachment attached to the fundraiser profile. + */ + attachment?: IAttachmentPublic; + /** + * The status of the bunq.me fundraiser profile, can be ACTIVE or DEACTIVATED. + */ + status?: string; + /** + * The URL which the user is sent to when a payment is completed. + */ + redirect_url?: string; + /** + * Provided if the user has enabled their invite link. + */ + invite_profile_name?: string; +} + +export interface IBunqId { + /** + * An integer ID of an object. Unique per object type. + */ + id?: number; +} + +export interface IBudgetRestriction { + /** + * The amount of the budget given to the invited user. + */ + amount?: IAmount; + /** + * The duration for a budget restriction. Valid values are DAILY, WEEKLY, MONTHLY, YEARLY. + */ + frequency?: string; +} + +export interface IBillingContractSubscriptionListing { + /** + * The id of the billing contract. + */ + id?: number; + /** + * The timestamp when the billing contract was made. + */ + created?: string; + /** + * The timestamp when the billing contract was last updated. + */ + updated?: string; + /** + * The date from when the billing contract is valid. + */ + contract_date_start?: string; + /** + * The date until when the billing contract is valid. + */ + contract_date_end?: string; + /** + * The version of the billing contract. + */ + contract_version?: number; + /** + * The subscription type of the user. Can be one of PERSON_SUPER_LIGHT_V1, PERSON_LIGHT_V1, PERSON_MORE_V1, PERSON_FREE_V1, PERSON_PREMIUM_V1, COMPANY_V1, or COMPANY_V2. + */ + subscription_type?: string; + /** + * The subscription type the user will have after a subscription downgrade. Will be null if downgrading is not possible. + */ + subscription_type_downgrade?: string; + /** + * The subscription status. + */ + status?: string; + /** + * The subscription substatus. + */ + sub_status?: string; +} + +export interface IBillingContractSubscription { + /** + * The subscription type of the user. Can be one of PERSON_SUPER_LIGHT_V1, PERSON_LIGHT_V1, PERSON_MORE_V1, PERSON_FREE_V1, PERSON_PREMIUM_V1, COMPANY_V1, or COMPANY_V2. + */ + subscription_type?: string; + /** + * The id of the billing contract. + */ + id?: number; + /** + * The timestamp when the billing contract was made. + */ + created?: string; + /** + * The timestamp when the billing contract was last updated. + */ + updated?: string; + /** + * The date from when the billing contract is valid. + */ + contract_date_start?: string; + /** + * The date until when the billing contract is valid. + */ + contract_date_end?: string; + /** + * The version of the billing contract. + */ + contract_version?: number; + /** + * The subscription type the user will have after a subscription downgrade. Will be null if downgrading is not possible. + */ + subscription_type_downgrade?: string; + /** + * The subscription status. + */ + status?: string; + /** + * The subscription substatus. + */ + sub_status?: string; +} + +export interface IBankSwitchServiceNetherlandsIncomingPaymentRead { + /** + * The bank switch service details. + */ + bank_switch_service?: IBankSwitchServiceNetherlandsIncoming; + /** + * The payment made using bank switch service. + */ + payment?: IPayment; +} + +export interface IBankSwitchServiceNetherlandsIncomingPayment { + /** + * The bank switch service details. + */ + bank_switch_service?: IBankSwitchServiceNetherlandsIncoming; + /** + * The payment made using bank switch service. + */ + payment?: IPayment; +} + +export interface IBankSwitchServiceNetherlandsIncoming { + /** + * The label of the monetary of this switch service. + */ + alias?: ILabelMonetaryAccount; + /** + * The IBAN alias that's displayed for this switch service. + */ + counterparty_alias?: ILabelMonetaryAccount; + /** + * The status of the switch service. + */ + status?: string; + /** + * The sub status of the switch service. + */ + sub_status?: string; + /** + * The timestamp when the switch service actually starts. + */ + time_start_actual?: string; + /** + * The label of the user creator of this switch service. + */ + user_alias?: ILabelUser; + /** + * The timestamp when the switch service desired to be start. + */ + time_start_desired?: string; + /** + * The timestamp when the switch service ends. + */ + time_end?: string; + /** + * Reference to the bank transfer form for this switch-service. + */ + attachment?: IAttachment; +} + +export interface IAvatarRead { + /** + * The UUID of the created avatar. + */ + uuid?: string; + /** + * The content type of the image. + */ + image?: Array; +} + +export interface IAvatarCreate { + /** + * The UUID of the created avatar. + */ + uuid?: string; +} + +export interface IAvatar { + /** + * The public UUID of the avatar. + */ + uuid?: string; + /** + * The public UUID of object this avatar is anchored to. + */ + anchor_uuid?: string; + /** + * The actual image information of this avatar. + */ + image?: Array; +} + +export interface IAttachmentUserRead { + /** + * The id of the attachment. + */ + id?: number; + /** + * The timestamp of the attachment's creation. + */ + created?: string; + /** + * The timestamp of the attachment's last update. + */ + updated?: string; + /** + * The attachment. + */ + attachment?: IAttachment; +} + +export interface IAttachmentUserContentListing {} + +export interface IAttachmentTabRead { + /** + * The id of the attachment. + */ + id?: number; + /** + * The timestamp of the attachment's creation. + */ + created?: string; + /** + * The timestamp of the attachment's last update. + */ + updated?: string; + /** + * The attachment. + */ + attachment?: IAttachment; +} + +export interface IAttachmentTabCreate { + /** + * The id of the created item + */ + Id?: BunqId; +} + +export interface IAttachmentTabContentListing {} + +export interface IAttachmentTab {} + +export interface IAttachmentPublicRead { + /** + * The UUID of the attachment. + */ + uuid?: string; + /** + * The timestamp of the attachment's creation. + */ + created?: string; + /** + * The timestamp of the attachment's last update. + */ + updated?: string; + /** + * The attachment. + */ + attachment?: IAttachment; +} + +export interface IAttachmentPublicCreate { + /** + * The id of the created item + */ + Id?: BunqId; +} + +export interface IAttachmentPublicContentListing {} + +export interface IAttachmentPublic {} + +export interface IAttachmentMonetaryAccountPayment { + /** + * The id of the attached Attachment. + */ + id?: number; + /** + * The id of the MonetaryAccount this Attachment is attached from. + */ + monetary_account_id?: number; +} + +export interface IAttachmentMonetaryAccountCreate { + /** + * The ID of the attachment created. + */ + id?: number; +} + +export interface IAttachmentMonetaryAccountContentListing {} + +export interface IAttachmentMonetaryAccount {} + +export interface IAttachmentConversationContentListing {} + +export interface IAttachment { + /** + * The description of the attachment. + */ + description?: string; + /** + * The content type of the attachment's file. + */ + content_type?: string; +} + +export interface IAmount { + /** + * The amount formatted to two decimal places. + */ + value: string; + /** + * The currency of the amount. It is an ISO 4217 formatted currency code. + */ + currency: string; +} + +export interface IAddress { + /** + * The street. + */ + street: string; + /** + * The house number. + */ + house_number: string; + /** + * The PO box. + */ + po_box: string; + /** + * The postal code. + */ + postal_code: string; + /** + * The city. + */ + city: string; + /** + * The country as an ISO 3166-1 alpha-2 country code.. + */ + country: string; + /** + * The appartment, building or other extra information for addresses. + */ + extra?: string; + /** + * The name on the mailbox (only used for Postal addresses). + */ + mailbox_name?: string; + /** + * The province according to local standard. + */ + province?: string; +} + +export type BunqId = string; +export type AssignmentType = "PRIMARY" | "SECONDARY" | "TERTIARY"; +export type CardType = "MAESTRO" | "MASTERCARD" | "MAESTRO_MOBILE_NFC"; +export type NoteEventType = + | "bunqme-fundraiser-result" + | "draft-payment" + | "ideal-merchant-transaction" + | "mastercard-action" + | "payment-batch" + | "payment" + | "request-inquiry-batch" + | "request-inquiry" + | "request-response" + | "schedule" + | "sofort-merchant-transaction" + | "switch-service-payment" + | "whitelist"; +export type NotificationCategoryType = + | "BILLING" + | "CARD_TRANSACTION_FAILED" + | "CARD_TRANSACTION_SUCCESSFUL" + | "CHAT" + | "DRAFT_PAYMENT" + | "IDEAL" + | "SOFORT" + | "MONETARY_ACCOUNT_PROFILE" + | "MUTATION" + | "PAYMENT" + | "PROMOTION" + | "REQUEST" + | "SCHEDULE_RESULT" + | "SCHEDULE_STATUS" + | "SHARE" + | "SUPPORT" + | "TAB_RESULT" + | "USER_APPROVAL"; +export type NotificationDeliveryMethodType = + | "URL" + | "PUSH"; +export type RecurrenceUnitType ="ONCE" | "HOURLY" | "DAILY" | "WEEKLY" | "MONTHLY" | "YEARLY"; +export type ScheduleStatusType ="ACTIVE" | "FINISHED" | "CANCELLED"; +export type ShareInviteMonetaryAccountResponseStatus = + | "REVOKED" + | "ACCEPTED" + | "CANCELLED" + | "CANCELLATION_PENDING" + | "CANCELLATION_ACCEPTED" + | "CANCELLATION_REJECTED"; diff --git a/src/Types/AssignmentType.ts b/src/Types/AssignmentType.ts index 2b868b4..3ecc96b 100644 --- a/src/Types/AssignmentType.ts +++ b/src/Types/AssignmentType.ts @@ -1,3 +1,8 @@ -type AssignmentType = "PRIMARY" | "SECONDARY" | "TERTIARY"; +import { AssignmentType as ApiAssignmentType } from "./ApiTypes"; + +/** + * @deprecated Use ApiTypes.AssignmentType instead. + */ +type AssignmentType = ApiAssignmentType; export default AssignmentType; diff --git a/src/Types/CardType.ts b/src/Types/CardType.ts index 6a66e54..592f857 100644 --- a/src/Types/CardType.ts +++ b/src/Types/CardType.ts @@ -1,3 +1,8 @@ -type CardType = "MAESTRO" | "MASTERCARD" | "MAESTRO_MOBILE_NFC"; +import { CardType as ApiCardType } from "./ApiTypes"; + +/** + * @deprecated Use ApiTypes.CardType instead. + */ +type CardType = ApiCardType; export default CardType; diff --git a/src/Types/Coordinate.ts b/src/Types/Coordinate.ts index 4a8daae..746f481 100644 --- a/src/Types/Coordinate.ts +++ b/src/Types/Coordinate.ts @@ -1,6 +1,8 @@ -type Coordinate = { - latitude: number; - longitude: number; -}; +import { IGeolocation } from "./ApiTypes"; + +/** + * @deprecated Use ApiTypes.IGeoLocation instead. + */ +type Coordinate = IGeolocation export default Coordinate; diff --git a/src/Types/CounterPartyAliasCollection.ts b/src/Types/CounterPartyAliasCollection.ts index 9ee9629..b831d8f 100644 --- a/src/Types/CounterPartyAliasCollection.ts +++ b/src/Types/CounterPartyAliasCollection.ts @@ -1,5 +1,8 @@ import CounterpartyAlias from "./CounterpartyAlias"; +/** + * @deprecated No alternative. + */ type CounterPartyAliasCollection = [CounterpartyAlias]; export default CounterPartyAliasCollection; diff --git a/src/Types/CounterpartyAlias.ts b/src/Types/CounterpartyAlias.ts index 81d43f0..666af64 100644 --- a/src/Types/CounterpartyAlias.ts +++ b/src/Types/CounterpartyAlias.ts @@ -1,3 +1,6 @@ +/** + * @deprecated No alternative. + */ type CounterpartyAlias = { type: string; value: string; diff --git a/src/Types/CountryPermission.ts b/src/Types/CountryPermission.ts index fa18fbf..87ecf0c 100644 --- a/src/Types/CountryPermission.ts +++ b/src/Types/CountryPermission.ts @@ -1,6 +1,8 @@ -type CountryPermission = { - country: string; - expiry_time: string; -}; +import { ICardCountryPermission } from "./ApiTypes"; + +/** + * @deprecated Use ApiTypes.ICardCountryPermission instead. + */ +type CountryPermission = ICardCountryPermission export default CountryPermission; diff --git a/src/Types/CountryPermissionCollection.ts b/src/Types/CountryPermissionCollection.ts index 591c60f..b4bb0c1 100644 --- a/src/Types/CountryPermissionCollection.ts +++ b/src/Types/CountryPermissionCollection.ts @@ -1,5 +1,8 @@ import CountryPermission from "./CountryPermission"; +/** + * @deprecated Use ApiTypes.ICardCountryPermission instead. + */ type CountryPermissionCollection = [CountryPermission]; export default CountryPermissionCollection; diff --git a/src/Types/LocationCoords.ts b/src/Types/LocationCoords.ts index 9522e6b..e540fb0 100644 --- a/src/Types/LocationCoords.ts +++ b/src/Types/LocationCoords.ts @@ -1,5 +1,8 @@ import Coordinate from "./Coordinate"; +/** + * @deprecated No alternative. + */ type LocationCoords = { coords: Coordinate; }; diff --git a/src/Types/MagStripePermission.ts b/src/Types/MagStripePermission.ts index dab1c21..fd49d73 100644 --- a/src/Types/MagStripePermission.ts +++ b/src/Types/MagStripePermission.ts @@ -1,3 +1,6 @@ +/** + * @deprecated This feature has been removed from the API. + */ type MagStripePermission = { expiry_time: string; }; diff --git a/src/Types/MonetaryAccountPutRequest.ts b/src/Types/MonetaryAccountPutRequest.ts index 83cdb77..cf96fdc 100644 --- a/src/Types/MonetaryAccountPutRequest.ts +++ b/src/Types/MonetaryAccountPutRequest.ts @@ -1,6 +1,9 @@ import Amount from "./Amount"; import NotificationFilter from "./NotificationFilter"; +/** + * @deprecated + */ export interface MonetaryAccountPutRequest { description?: string; daily_limit?: Amount; diff --git a/src/Types/NoteEventType.ts b/src/Types/NoteEventType.ts index 68941bf..211e84a 100644 --- a/src/Types/NoteEventType.ts +++ b/src/Types/NoteEventType.ts @@ -1,16 +1,8 @@ -type NoteEventType = - | "bunqme-fundraiser-result" - | "draft-payment" - | "ideal-merchant-transaction" - | "mastercard-action" - | "payment-batch" - | "payment" - | "request-inquiry-batch" - | "request-inquiry" - | "request-response" - | "schedule" - | "sofort-merchant-transaction" - | "switch-service-payment" - | "whitelist"; +import { NoteEventType as ApiNotEventType } from "./ApiTypes"; + +/** + * @deprecated Use ApiTypes.NoteEventType instead. + */ +type NoteEventType = ApiNotEventType; export default NoteEventType; diff --git a/src/Types/NotificationFilter.ts b/src/Types/NotificationFilter.ts index ccad996..afbd41f 100644 --- a/src/Types/NotificationFilter.ts +++ b/src/Types/NotificationFilter.ts @@ -1,26 +1,8 @@ -type NotificationFilter = { - notification_delivery_method: "URL" | "PUSH"; - notification_target: string | null; - category: - | "BILLING" - | "BUNQME_TAB" - | "CARD_TRANSACTION_FAILED" - | "CARD_TRANSACTION_SUCCESSFUL" - | "CHAT" - | "DRAFT_PAYMENT" - | "IDEAL" - | "SOFORT" - | "MONETARY_ACCOUNT_PROFILE" - | "MUTATION" - | "PAYMENT" - | "PROMOTION" - | "REQUEST" - | "SCHEDULE_RESULT" - | "SCHEDULE_STATUS" - | "SHARE" - | "SUPPORT" - | "TAB_RESULT" - | "USER_APPROVAL"; -}; +import { INotificationFilter } from "./ApiTypes"; + +/** + * @deprecated Use ApiTypes.INotificationFilter instead. + */ +type NotificationFilter = INotificationFilter; export default NotificationFilter; diff --git a/src/Types/PaymentRequestObject.ts b/src/Types/PaymentRequestObject.ts index e4c889f..93e7224 100644 --- a/src/Types/PaymentRequestObject.ts +++ b/src/Types/PaymentRequestObject.ts @@ -1,6 +1,9 @@ import CounterpartyAlias from "./CounterpartyAlias"; import Amount from "./Amount"; +/** + * @deprecated + */ export type PaymentRequestObject = { description: string; amount: Amount; diff --git a/src/Types/PaymentRequestObjectCollection.ts b/src/Types/PaymentRequestObjectCollection.ts index 08965c8..a473d5e 100644 --- a/src/Types/PaymentRequestObjectCollection.ts +++ b/src/Types/PaymentRequestObjectCollection.ts @@ -1,5 +1,8 @@ import PaymentRequestObject from "./PaymentRequestObject"; +/** + * @deprecated + */ export type PaymentRequestObjectCollection = PaymentRequestObject[]; export default PaymentRequestObjectCollection; diff --git a/src/Types/PinCodeAssignment.ts b/src/Types/PinCodeAssignment.ts index cbfd3ba..4aee3d7 100644 --- a/src/Types/PinCodeAssignment.ts +++ b/src/Types/PinCodeAssignment.ts @@ -1,9 +1,8 @@ -import AssignmentType from "./AssignmentType"; +import { ICardPinAssignment } from "./ApiTypes"; -export type PinCodeAssignment = { - type: AssignmentType; - pin_code?: string; - monetary_account_id: number; -}; +/** + * @deprecated Use ApiTypes.ICardPinAssignment instead. + */ +export type PinCodeAssignment = ICardPinAssignment; export default PinCodeAssignment; diff --git a/src/Types/PinCodeAssignmentCollection.ts b/src/Types/PinCodeAssignmentCollection.ts index 6ffff8d..8d225c6 100644 --- a/src/Types/PinCodeAssignmentCollection.ts +++ b/src/Types/PinCodeAssignmentCollection.ts @@ -1,5 +1,8 @@ import PinCodeAssignment from "./PinCodeAssignment"; +/** + * @deprecated Use an array of ApiTypes.ICardPinAssignment directly. + */ type PinCodeAssignmentCollection = [PinCodeAssignment]; export default PinCodeAssignmentCollection; diff --git a/src/Types/RequestInquiryPostOptions.ts b/src/Types/RequestInquiryPostOptions.ts index 2f07db9..8e4d8bc 100644 --- a/src/Types/RequestInquiryPostOptions.ts +++ b/src/Types/RequestInquiryPostOptions.ts @@ -1,3 +1,6 @@ +/** + * @deprecated + */ type RequestInquiryPostOptions = { status?: "REVOKED" | false; minimum_age?: number | false; diff --git a/src/Types/RequestResponsePutOptions.ts b/src/Types/RequestResponsePutOptions.ts index 4aee5f5..5f9bb72 100644 --- a/src/Types/RequestResponsePutOptions.ts +++ b/src/Types/RequestResponsePutOptions.ts @@ -1,6 +1,9 @@ import Amount from "./Amount"; import AddressDetails from "./AddressDetails"; +/** + * @deprecated + */ type RequestResponsePutOptions = { amount_responded?: Amount; address_shipping?: AddressDetails; diff --git a/src/Types/Schedule.ts b/src/Types/Schedule.ts index 025d780..cc61358 100644 --- a/src/Types/Schedule.ts +++ b/src/Types/Schedule.ts @@ -1,10 +1,13 @@ -export type RecurrenceUnit = "ONCE" | "HOURLY" | "DAILY" | "WEEKLY" | "MONTHLY" | "YEARLY"; +import { ISchedule, RecurrenceUnitType } from "./ApiTypes"; -type Schedule = { - time_start: string; - time_end?: string; - recurrence_unit: RecurrenceUnit; - recurrence_size: number; -}; +/** + * @deprecated Use ApiTypes.RecurrenceUnitType instead. + */ +export type RecurrenceUnit = RecurrenceUnitType; + +/** + * @deprecated Use ApiTypes.ISchedule instead. + */ +type Schedule = ISchedule; export default Schedule; diff --git a/src/Types/ShareInviteMonetaryAccountInquiry.ts b/src/Types/ShareInviteMonetaryAccountInquiry.ts index 3baf7e8..ea69629 100644 --- a/src/Types/ShareInviteMonetaryAccountInquiry.ts +++ b/src/Types/ShareInviteMonetaryAccountInquiry.ts @@ -1,17 +1,26 @@ import Amount from "./Amount"; +/** + * @deprecated + */ export type ShareInviteMonetaryAccountInquiryPostOptions = { share_type?: "STANDARD" | "MUTUAL"; start_date?: Date; end_date?: Date; }; +/** + * @deprecated + */ export type ShareInviteMonetaryAccountInquiryPostShareDetail = { ShareDetailPayment?: ShareInviteMonetaryAccountInquiryPostShareDetailPayment; ShareDetailReadOnly?: ShareInviteMonetaryAccountInquiryPostShareDetailReadOnly; ShareDetailDraftPayment?: ShareInviteMonetaryAccountInquiryPostShareDetailDraftPayment; }; +/** + * @deprecated + */ export type ShareInviteMonetaryAccountInquiryPostShareDetailPayment = { make_payments?: boolean; make_draft_payments?: boolean; @@ -21,17 +30,26 @@ export type ShareInviteMonetaryAccountInquiryPostShareDetailPayment = { budget?: ShareInviteMonetaryAccountInquiryPostShareDetailPaymentBudget; }; +/** + * @deprecated + */ export type ShareInviteMonetaryAccountInquiryPostShareDetailPaymentBudget = { amount: Amount; frequency: "DAILY" | "WEEKLY" | "MONTHLY" | "YEARLY"; }; +/** + * @deprecated + */ export type ShareInviteMonetaryAccountInquiryPostShareDetailReadOnly = { view_balance?: boolean; view_old_events?: boolean; view_new_events?: boolean; }; +/** + * @deprecated + */ export type ShareInviteMonetaryAccountInquiryPostShareDetailDraftPayment = { make_draft_payments?: boolean; view_balance?: boolean; @@ -39,6 +57,9 @@ export type ShareInviteMonetaryAccountInquiryPostShareDetailDraftPayment = { view_new_events?: boolean; }; +/** + * @deprecated Use ApiTypes.ShareInviteMonetaryAccountInquiryStatus instead. + */ export type ShareInviteMonetaryAccountInquiryPostStatus = | "PENDING" | "REVOKED" diff --git a/src/Types/ShareInviteMonetaryAccountResponse.ts b/src/Types/ShareInviteMonetaryAccountResponse.ts index afadd4b..ced41d8 100644 --- a/src/Types/ShareInviteMonetaryAccountResponse.ts +++ b/src/Types/ShareInviteMonetaryAccountResponse.ts @@ -1,7 +1,6 @@ -export type ShareInviteMonetaryAccountResponsePutStatus = - | "REVOKED" - | "ACCEPTED" - | "CANCELLED" - | "CANCELLATION_PENDING" - | "CANCELLATION_ACCEPTED" - | "CANCELLATION_REJECTED"; +import { ShareInviteMonetaryAccountResponseStatus } from "./ApiTypes"; + +/** + * @deprecated Use ApiTypes.InviteMonetaryAccountResponseStatus instead + */ +export type ShareInviteMonetaryAccountResponsePutStatus = ShareInviteMonetaryAccountResponseStatus; From 209b01b12fb8813ebba9cffb58daa69f645503cb Mon Sep 17 00:00:00 2001 From: Michael Dekker Date: Thu, 23 Jan 2020 19:20:59 +0100 Subject: [PATCH 2/6] build: Support API read-only types & provide (Deep)Mutable helpers --- build/types/generate-types.js | 7 +- src/Types/ApiTypes.ts | 4326 +++++++++++++++++---------------- src/Types/DeepMutable.ts | 9 + 3 files changed, 2177 insertions(+), 2165 deletions(-) create mode 100644 src/Types/DeepMutable.ts diff --git a/build/types/generate-types.js b/build/types/generate-types.js index 181e6c7..7ed6602 100755 --- a/build/types/generate-types.js +++ b/build/types/generate-types.js @@ -251,7 +251,7 @@ function parse(spec, options= {}) { const singleInterface = []; const nextObject = queue.pop(); if (!nextObject) return; - let [ID, { allOf, properties, required, additionalProperties, type }] = nextObject; + let [ID, { allOf, properties, required, readOnly, additionalProperties, type }] = nextObject; let allProperties = properties || {}; const includes = []; @@ -289,6 +289,7 @@ function parse(spec, options= {}) { // Populate interface Object.entries(allProperties).forEach(([key, value]) => { const optional = !((required || []).includes(key) || !!((REQUIRED_OVERRIDES[ID] || {})[key])); + const readOnly = value.readOnly ? 'readonly ' : ''; const formattedKey = shouldCamelCase ? camelCase(key) : key; const name = `${sanitize(formattedKey)}${optional ? "?" : ""}`; const newID = `${ID}${capitalize(formattedKey)}`; @@ -301,11 +302,11 @@ function parse(spec, options= {}) { // Handle enums in the same definition if (Array.isArray(value.enum)) { - singleInterface.push(`${name}: ${value.enum.map(option => JSON.stringify(option)).join(" | ")};`); + singleInterface.push(`${readOnly}${name}: ${value.enum.map(option => JSON.stringify(option)).join(" | ")};`); return; } - singleInterface.push(`${name}: ${interfaceType}`); + singleInterface.push(`${readOnly}${name}: ${interfaceType}`); }); if (additionalProperties) { diff --git a/src/Types/ApiTypes.ts b/src/Types/ApiTypes.ts index b5370ce..7fab138 100644 --- a/src/Types/ApiTypes.ts +++ b/src/Types/ApiTypes.ts @@ -2,93 +2,93 @@ export interface IWhitelistSddUpdate { /** * The id of the created item */ - Id?: BunqId; + readonly Id?: BunqId; } export interface IWhitelistSddRead { /** * The ID of the whitelist entry. */ - id?: number; + readonly id?: number; /** * The account to which payments will come in before possibly being 'redirected' by the whitelist. */ - monetary_account_incoming_id?: number; + readonly monetary_account_incoming_id?: number; /** * The account from which payments will be deducted when a transaction is matched with this whitelist. */ - monetary_account_paying_id?: number; + readonly monetary_account_paying_id?: number; /** * The type of the SDD whitelist, can be CORE or B2B. */ - type?: string; + readonly type?: string; /** * The status of the whitelist. */ - status?: string; + readonly status?: string; /** * The credit scheme ID provided by the counterparty. */ - credit_scheme_identifier?: string; + readonly credit_scheme_identifier?: string; /** * The mandate ID provided by the counterparty. */ - mandate_identifier?: string; + readonly mandate_identifier?: string; /** * The account to which payments will be paid. */ - counterparty_alias?: ILabelMonetaryAccount; + readonly counterparty_alias?: ILabelMonetaryAccount; /** * The monthly maximum amount that can be deducted from the target account. */ - maximum_amount_per_month?: IAmount; + readonly maximum_amount_per_month?: IAmount; /** * The user who created the whitelist entry. */ - user_alias_created?: ILabelUser; + readonly user_alias_created?: ILabelUser; } export interface IWhitelistSddListing { /** * The ID of the whitelist entry. */ - id?: number; + readonly id?: number; /** * The account to which payments will come in before possibly being 'redirected' by the whitelist. */ - monetary_account_incoming_id?: number; + readonly monetary_account_incoming_id?: number; /** * The account from which payments will be deducted when a transaction is matched with this whitelist. */ - monetary_account_paying_id?: number; + readonly monetary_account_paying_id?: number; /** * The type of the SDD whitelist, can be CORE or B2B. */ - type?: string; + readonly type?: string; /** * The status of the whitelist. */ - status?: string; + readonly status?: string; /** * The credit scheme ID provided by the counterparty. */ - credit_scheme_identifier?: string; + readonly credit_scheme_identifier?: string; /** * The mandate ID provided by the counterparty. */ - mandate_identifier?: string; + readonly mandate_identifier?: string; /** * The account to which payments will be paid. */ - counterparty_alias?: ILabelMonetaryAccount; + readonly counterparty_alias?: ILabelMonetaryAccount; /** * The monthly maximum amount that can be deducted from the target account. */ - maximum_amount_per_month?: IAmount; + readonly maximum_amount_per_month?: IAmount; /** * The user who created the whitelist entry. */ - user_alias_created?: ILabelUser; + readonly user_alias_created?: ILabelUser; } export interface IWhitelistSddDelete {} @@ -97,7 +97,7 @@ export interface IWhitelistSddCreate { /** * The id of the created item */ - Id?: BunqId; + readonly Id?: BunqId; } export interface IWhitelistSdd { @@ -119,50 +119,50 @@ export interface IWhitelistResultViewAnchoredObject { /** * The ID of the whitelist entry. */ - id?: number; + readonly id?: number; /** * The RequestResponse object */ - requestResponse?: IRequestResponse; + readonly requestResponse?: IRequestResponse; /** * The DraftPayment object */ - draftPayment?: IDraftPayment; + readonly draftPayment?: IDraftPayment; } export interface IWhitelistResult { /** * The ID of the whitelist entry. */ - id?: number; + readonly id?: number; /** * The account from which payments will be deducted when a transaction is matched with this whitelist. */ - monetary_account_paying_id?: number; + readonly monetary_account_paying_id?: number; /** * The status of the WhitelistResult. */ - status?: string; + readonly status?: string; /** * The subStatus of the WhitelistResult. */ - sub_status?: string; + readonly sub_status?: string; /** * The message when the whitelist result has failed due to user error. */ - error_message?: Array; + readonly error_message?: Array; /** * The corresponding whitelist. */ - whitelist?: IWhitelist; + readonly whitelist?: IWhitelist; /** * The details of the external object the event was created for. */ - object?: IWhitelistResultViewAnchoredObject; + readonly object?: IWhitelistResultViewAnchoredObject; /** * The reference to the object used for split the bill. Can be RequestInquiry or RequestInquiryBatch */ - request_reference_split_the_bill?: Array; + readonly request_reference_split_the_bill?: Array; } export interface IWhitelist {} @@ -171,157 +171,157 @@ export interface IUserRead { /** * */ - UserLight?: IUserLight; + readonly UserLight?: IUserLight; /** * */ - UserPerson?: IUserPerson; + readonly UserPerson?: IUserPerson; /** * */ - UserCompany?: IUserCompany; + readonly UserCompany?: IUserCompany; /** * */ - UserApiKey?: IUserApiKey; + readonly UserApiKey?: IUserApiKey; /** * */ - UserPaymentServiceProvider?: IUserPaymentServiceProvider; + readonly UserPaymentServiceProvider?: IUserPaymentServiceProvider; } export interface IUserPersonUpdate { /** * The id of the modified person object. */ - id?: number; + readonly id?: number; } export interface IUserPersonRead { /** * The id of the modified person object. */ - id?: number; + readonly id?: number; /** * The timestamp of the person object's creation. */ - created?: string; + readonly created?: string; /** * The timestamp of the person object's last update. */ - updated?: string; + readonly updated?: string; /** * The person's public UUID. */ - public_uuid?: string; + readonly public_uuid?: string; /** * The person's first name. */ - first_name?: string; + readonly first_name?: string; /** * The person's middle name. */ - middle_name?: string; + readonly middle_name?: string; /** * The person's last name. */ - last_name?: string; + readonly last_name?: string; /** * The person's legal name. */ - legal_name?: string; + readonly legal_name?: string; /** * The display name for the person. */ - display_name?: string; + readonly display_name?: string; /** * The public nick name for the person. */ - public_nick_name?: string; + readonly public_nick_name?: string; /** * The aliases of the user. */ - alias?: Array; + readonly alias?: Array; /** * The user's tax residence numbers for different countries. */ - tax_resident?: Array; + readonly tax_resident?: Array; /** * The type of identification document the person registered with. */ - document_type?: string; + readonly document_type?: string; /** * The identification document number the person registered with. */ - document_number?: string; + readonly document_number?: string; /** * The country which issued the identification document the person registered with. */ - document_country_of_issuance?: string; + readonly document_country_of_issuance?: string; /** * The person's main address. */ - address_main?: IAddress; + readonly address_main?: IAddress; /** * The person's postal address. */ - address_postal?: IAddress; + readonly address_postal?: IAddress; /** * The person's date of birth. Accepts ISO8601 date formats. */ - date_of_birth?: string; + readonly date_of_birth?: string; /** * The person's place of birth. */ - place_of_birth?: string; + readonly place_of_birth?: string; /** * The person's country of birth. Formatted as a SO 3166-1 alpha-2 country code. */ - country_of_birth?: string; + readonly country_of_birth?: string; /** * The person's nationality. Formatted as a SO 3166-1 alpha-2 country code. */ - nationality?: string; + readonly nationality?: string; /** * The person's preferred language. Formatted as a ISO 639-1 language code plus a ISO 3166-1 alpha-2 country code, seperated by an underscore. */ - language?: string; + readonly language?: string; /** * The person's preferred region. Formatted as a ISO 639-1 language code plus a ISO 3166-1 alpha-2 country code, seperated by an underscore. */ - region?: string; + readonly region?: string; /** * The person's gender. Can be MALE, FEMALE or UNKNOWN. */ - gender?: string; + readonly gender?: string; /** * The user's avatar. */ - avatar?: IAvatar; + readonly avatar?: IAvatar; /** * The version of the terms of service accepted by the user. */ - version_terms_of_service?: string; + readonly version_terms_of_service?: string; /** * The user status. The user status. Can be: ACTIVE, BLOCKED, SIGNUP, RECOVERY, DENIED or ABORTED. */ - status?: string; + readonly status?: string; /** * The user sub-status. Can be: NONE, FACE_RESET, APPROVAL, APPROVAL_DIRECTOR, APPROVAL_PARENT, APPROVAL_SUPPORT, COUNTER_IBAN, IDEAL or SUBMIT. */ - sub_status?: string; + readonly sub_status?: string; /** * The setting for the session timeout of the user in seconds. */ - session_timeout?: number; + readonly session_timeout?: number; /** * The amount the user can pay in the session without asking for credentials. */ - daily_limit_without_confirmation_login?: IAmount; + readonly daily_limit_without_confirmation_login?: IAmount; /** * The types of notifications that will result in a push notification or URL callback for this UserPerson. */ - notification_filters?: Array; + readonly notification_filters?: Array; } export interface IUserPerson { @@ -432,180 +432,180 @@ export interface IUserPerson { /** * The id of the modified person object. */ - id?: number; + readonly id?: number; /** * The timestamp of the person object's creation. */ - created?: string; + readonly created?: string; /** * The timestamp of the person object's last update. */ - updated?: string; + readonly updated?: string; /** * The person's public UUID. */ - public_uuid?: string; + readonly public_uuid?: string; /** * The person's legal name. */ - legal_name?: string; + readonly legal_name?: string; /** * The aliases of the user. */ - alias?: Array; + readonly alias?: Array; /** * The user's avatar. */ - avatar?: IAvatar; + readonly avatar?: IAvatar; /** * The version of the terms of service accepted by the user. */ - version_terms_of_service?: string; + readonly version_terms_of_service?: string; /** * The types of notifications that will result in a push notification or URL callback for this UserPerson. */ - notification_filters?: Array; + readonly notification_filters?: Array; } export interface IUserPaymentServiceProviderRead { /** * The id of the user. */ - id?: number; + readonly id?: number; /** * The timestamp of the user object's creation. */ - created?: string; + readonly created?: string; /** * The timestamp of the user object's last update. */ - updated?: string; + readonly updated?: string; /** * The distinguished name from the certificate used to identify this user. */ - certificate_distinguished_name?: string; + readonly certificate_distinguished_name?: string; /** * The aliases of the user. */ - alias?: Array; + readonly alias?: Array; /** * The user's avatar. */ - avatar?: IAvatar; + readonly avatar?: IAvatar; /** * The user status. The user status. Can be: ACTIVE, BLOCKED or DENIED. */ - status?: string; + readonly status?: string; /** * The user sub-status. Can be: NONE */ - sub_status?: string; + readonly sub_status?: string; /** * The providers's public UUID. */ - public_uuid?: string; + readonly public_uuid?: string; /** * The display name for the provider. */ - display_name?: string; + readonly display_name?: string; /** * The public nick name for the provider. */ - public_nick_name?: string; + readonly public_nick_name?: string; /** * The provider's language. Formatted as a ISO 639-1 language code plus a ISO 3166-1 alpha-2 country code, separated by an underscore. */ - language?: string; + readonly language?: string; /** * The provider's region. Formatted as a ISO 639-1 language code plus a ISO 3166-1 alpha-2 country code, separated by an underscore. */ - region?: string; + readonly region?: string; /** * The setting for the session timeout of the user in seconds. */ - session_timeout?: number; + readonly session_timeout?: number; } export interface IUserPaymentServiceProvider { /** * The id of the user. */ - id?: number; + readonly id?: number; /** * The timestamp of the user object's creation. */ - created?: string; + readonly created?: string; /** * The timestamp of the user object's last update. */ - updated?: string; + readonly updated?: string; /** * The distinguished name from the certificate used to identify this user. */ - certificate_distinguished_name?: string; + readonly certificate_distinguished_name?: string; /** * The aliases of the user. */ - alias?: Array; + readonly alias?: Array; /** * The user's avatar. */ - avatar?: IAvatar; + readonly avatar?: IAvatar; /** * The user status. The user status. Can be: ACTIVE, BLOCKED or DENIED. */ - status?: string; + readonly status?: string; /** * The user sub-status. Can be: NONE */ - sub_status?: string; + readonly sub_status?: string; /** * The providers's public UUID. */ - public_uuid?: string; + readonly public_uuid?: string; /** * The display name for the provider. */ - display_name?: string; + readonly display_name?: string; /** * The public nick name for the provider. */ - public_nick_name?: string; + readonly public_nick_name?: string; /** * The provider's language. Formatted as a ISO 639-1 language code plus a ISO 3166-1 alpha-2 country code, separated by an underscore. */ - language?: string; + readonly language?: string; /** * The provider's region. Formatted as a ISO 639-1 language code plus a ISO 3166-1 alpha-2 country code, separated by an underscore. */ - region?: string; + readonly region?: string; /** * The setting for the session timeout of the user in seconds. */ - session_timeout?: number; + readonly session_timeout?: number; } export interface IUserListing { /** * */ - UserLight?: IUserLight; + readonly UserLight?: IUserLight; /** * */ - UserPerson?: IUserPerson; + readonly UserPerson?: IUserPerson; /** * */ - UserCompany?: IUserCompany; + readonly UserCompany?: IUserCompany; /** * */ - UserApiKey?: IUserApiKey; + readonly UserApiKey?: IUserApiKey; /** * */ - UserPaymentServiceProvider?: IUserPaymentServiceProvider; + readonly UserPaymentServiceProvider?: IUserPaymentServiceProvider; } export interface IUserLight { @@ -716,257 +716,257 @@ export interface IUserLight { /** * The id of the user. */ - id?: number; + readonly id?: number; /** * The timestamp of the user object's creation. */ - created?: string; + readonly created?: string; /** * The timestamp of the user object's last update. */ - updated?: string; + readonly updated?: string; /** * The user's public UUID. */ - public_uuid?: string; + readonly public_uuid?: string; /** * The user's legal name. */ - legal_name?: string; + readonly legal_name?: string; /** * The display name for the user. */ - display_name?: string; + readonly display_name?: string; /** * The aliases of the user. */ - alias?: Array; + readonly alias?: Array; /** * The user's avatar. */ - avatar?: IAvatar; + readonly avatar?: IAvatar; /** * The version of the terms of service accepted by the user. */ - version_terms_of_service?: string; + readonly version_terms_of_service?: string; /** * The types of notifications that will result in a push notification or URL callback for this UserLight. */ - notification_filters?: Array; + readonly notification_filters?: Array; /** * The user deny reason. */ - deny_reason?: string; + readonly deny_reason?: string; } export interface IUserLegalNameListing { /** * All legal names that can be used by the user */ - legal_names?: Array; + readonly legal_names?: Array; } export interface IUserCredentialPasswordIpRead { /** * The id of the credential. */ - id?: number; + readonly id?: number; /** * The timestamp of the credential object's creation. */ - created?: string; + readonly created?: string; /** * The timestamp of the credential object's last update. */ - updated?: string; + readonly updated?: string; /** * The status of the credential. */ - status?: string; + readonly status?: string; /** * When the status is PENDING_FIRST_USE: when the credential expires. */ - expiry_time?: string; + readonly expiry_time?: string; /** * When the status is PENDING_FIRST_USE: the value of the token. */ - token_value?: string; + readonly token_value?: string; /** * When the status is ACTIVE: the details of the device that may use the credential. */ - permitted_device?: IPermittedDevice; + readonly permitted_device?: IPermittedDevice; } export interface IUserCredentialPasswordIpListing { /** * The id of the credential. */ - id?: number; + readonly id?: number; /** * The timestamp of the credential object's creation. */ - created?: string; + readonly created?: string; /** * The timestamp of the credential object's last update. */ - updated?: string; + readonly updated?: string; /** * The status of the credential. */ - status?: string; + readonly status?: string; /** * When the status is PENDING_FIRST_USE: when the credential expires. */ - expiry_time?: string; + readonly expiry_time?: string; /** * When the status is PENDING_FIRST_USE: the value of the token. */ - token_value?: string; + readonly token_value?: string; /** * When the status is ACTIVE: the details of the device that may use the credential. */ - permitted_device?: IPermittedDevice; + readonly permitted_device?: IPermittedDevice; } export interface IUserCompanyUpdate { /** * The id of the modified company. */ - id?: number; + readonly id?: number; } export interface IUserCompanyRead { /** * The id of the modified company. */ - id?: number; + readonly id?: number; /** * The timestamp of the company object's creation. */ - created?: string; + readonly created?: string; /** * The timestamp of the company object's last update. */ - updated?: string; + readonly updated?: string; /** * The company's public UUID. */ - public_uuid?: string; + readonly public_uuid?: string; /** * The company name. */ - name?: string; + readonly name?: string; /** * The company's display name. */ - display_name?: string; + readonly display_name?: string; /** * The company's public nick name. */ - public_nick_name?: string; + readonly public_nick_name?: string; /** * The aliases of the account. */ - alias?: Array; + readonly alias?: Array; /** * The company's chamber of commerce number. */ - chamber_of_commerce_number?: string; + readonly chamber_of_commerce_number?: string; /** * The company's legal form. */ - legal_form?: string; + readonly legal_form?: string; /** * The type of business entity. */ - type_of_business_entity?: string; + readonly type_of_business_entity?: string; /** * The sector of industry. */ - sector_of_industry?: string; + readonly sector_of_industry?: string; /** * The company's other bank account IBAN, through which we verify it. */ - counter_bank_iban?: string; + readonly counter_bank_iban?: string; /** * The company's avatar. */ - avatar?: IAvatar; + readonly avatar?: IAvatar; /** * The company's main address. */ - address_main?: IAddress; + readonly address_main?: IAddress; /** * The company's postal address. */ - address_postal?: IAddress; + readonly address_postal?: IAddress; /** * The version of the terms of service accepted by the user. */ - version_terms_of_service?: string; + readonly version_terms_of_service?: string; /** * The existing bunq user alias for the company's director. */ - director_alias?: ILabelUser; + readonly director_alias?: ILabelUser; /** * The person's preferred language. Formatted as a ISO 639-1 language code plus a ISO 3166-1 alpha-2 country code, seperated by an underscore. */ - language?: string; + readonly language?: string; /** * The country as an ISO 3166-1 alpha-2 country code.. */ - country?: string; + readonly country?: string; /** * The person's preferred region. Formatted as a ISO 639-1 language code plus a ISO 3166-1 alpha-2 country code, seperated by an underscore. */ - region?: string; + readonly region?: string; /** * The names of the company's ultimate beneficiary owners. Minimum zero, maximum four. */ - ubo?: Array; + readonly ubo?: Array; /** * The user status. Can be: ACTIVE, SIGNUP, RECOVERY. */ - status?: string; + readonly status?: string; /** * The user sub-status. Can be: NONE, FACE_RESET, APPROVAL, APPROVAL_DIRECTOR, APPROVAL_PARENT, APPROVAL_SUPPORT, COUNTER_IBAN, IDEAL or SUBMIT. */ - sub_status?: string; + readonly sub_status?: string; /** * The setting for the session timeout of the company in seconds. */ - session_timeout?: number; + readonly session_timeout?: number; /** * The amount the company can pay in the session without asking for credentials. */ - daily_limit_without_confirmation_login?: IAmount; + readonly daily_limit_without_confirmation_login?: IAmount; /** * The types of notifications that will result in a push notification or URL callback for this UserCompany. */ - notification_filters?: Array; + readonly notification_filters?: Array; /** * The customer profile of the company. */ - customer?: ICustomer; + readonly customer?: ICustomer; /** * The customer limits of the company. */ - customer_limit?: ICustomerLimit; + readonly customer_limit?: ICustomerLimit; /** * The subscription of the company. */ - billing_contract?: Array; + readonly billing_contract?: Array; /** * The user deny reason. */ - deny_reason?: string; + readonly deny_reason?: string; } export interface IUserCompanyNameListing { /** * All known (trade) names for a user company. */ - name_array?: Array; + readonly name_array?: Array; } export interface IUserCompany { @@ -1033,109 +1033,109 @@ export interface IUserCompany { /** * The id of the modified company. */ - id?: number; + readonly id?: number; /** * The timestamp of the company object's creation. */ - created?: string; + readonly created?: string; /** * The timestamp of the company object's last update. */ - updated?: string; + readonly updated?: string; /** * The company's public UUID. */ - public_uuid?: string; + readonly public_uuid?: string; /** * The company's display name. */ - display_name?: string; + readonly display_name?: string; /** * The aliases of the account. */ - alias?: Array; + readonly alias?: Array; /** * The type of business entity. */ - type_of_business_entity?: string; + readonly type_of_business_entity?: string; /** * The sector of industry. */ - sector_of_industry?: string; + readonly sector_of_industry?: string; /** * The company's other bank account IBAN, through which we verify it. */ - counter_bank_iban?: string; + readonly counter_bank_iban?: string; /** * The company's avatar. */ - avatar?: IAvatar; + readonly avatar?: IAvatar; /** * The version of the terms of service accepted by the user. */ - version_terms_of_service?: string; + readonly version_terms_of_service?: string; /** * The existing bunq user alias for the company's director. */ - director_alias?: ILabelUser; + readonly director_alias?: ILabelUser; /** * The types of notifications that will result in a push notification or URL callback for this UserCompany. */ - notification_filters?: Array; + readonly notification_filters?: Array; /** * The customer profile of the company. */ - customer?: ICustomer; + readonly customer?: ICustomer; /** * The customer limits of the company. */ - customer_limit?: ICustomerLimit; + readonly customer_limit?: ICustomerLimit; /** * The subscription of the company. */ - billing_contract?: Array; + readonly billing_contract?: Array; /** * The user deny reason. */ - deny_reason?: string; + readonly deny_reason?: string; } export interface IUserApiKeyAnchoredUser { /** * */ - UserPerson?: IUserPerson; + readonly UserPerson?: IUserPerson; /** * */ - UserCompany?: IUserCompany; + readonly UserCompany?: IUserCompany; /** * */ - UserPaymentServiceProvider?: IUserPaymentServiceProvider; + readonly UserPaymentServiceProvider?: IUserPaymentServiceProvider; } export interface IUserApiKey { /** * The id of the user. */ - id?: number; + readonly id?: number; /** * The timestamp of the user object's creation. */ - created?: string; + readonly created?: string; /** * The timestamp of the user object's last update. */ - updated?: string; + readonly updated?: string; /** * The user who requested access. */ - requested_by_user?: IUserApiKeyAnchoredUser; + readonly requested_by_user?: IUserApiKeyAnchoredUser; /** * The user who granted access. */ - granted_by_user?: IUserApiKeyAnchoredUser; + readonly granted_by_user?: IUserApiKeyAnchoredUser; } export interface IUbo { @@ -1157,11 +1157,11 @@ export interface ITreeProgressListing { /** * The number of trees this user and all users have planted. */ - number_of_tree?: number; + readonly number_of_tree?: number; /** * The progress towards the next tree. */ - progress_tree_next?: number; + readonly progress_tree_next?: number; } export interface ITransferwiseTransfer { @@ -1176,55 +1176,55 @@ export interface ITransferwiseTransfer { /** * The LabelMonetaryAccount containing the public information of 'this' (party) side of the Payment. */ - alias?: ILabelMonetaryAccount; + readonly alias?: ILabelMonetaryAccount; /** * The LabelMonetaryAccount containing the public information of the other (counterparty) side of the Payment. */ - counterparty_alias?: ILabelMonetaryAccount; + readonly counterparty_alias?: ILabelMonetaryAccount; /** * The status. */ - status?: string; + readonly status?: string; /** * The subStatus. */ - sub_status?: string; + readonly sub_status?: string; /** * The status as Transferwise reports it. */ - status_transferwise?: string; + readonly status_transferwise?: string; /** * A status to indicatie if Transferwise has an issue with this payment and requires more information. */ - status_transferwise_issue?: string; + readonly status_transferwise_issue?: string; /** * The source amount. */ - amount_source?: IAmount; + readonly amount_source?: IAmount; /** * The target amount. */ - amount_target?: IAmount; + readonly amount_target?: IAmount; /** * The rate of the payment. */ - rate?: string; + readonly rate?: string; /** * The reference of the payment. */ - reference?: string; + readonly reference?: string; /** * The Pay-In reference of the payment. */ - pay_in_reference?: string; + readonly pay_in_reference?: string; /** * The estimated delivery time. */ - time_delivery_estimate?: string; + readonly time_delivery_estimate?: string; /** * The quote details used to created the payment. */ - quote?: ITransferwiseQuote; + readonly quote?: ITransferwiseQuote; } export interface ITransferwiseQuote { @@ -1247,42 +1247,42 @@ export interface ITransferwiseQuote { /** * The id of the quote. */ - id?: number; + readonly id?: number; /** * The timestamp of the quote's creation. */ - created?: string; + readonly created?: string; /** * The timestamp of the quote's last update. */ - updated?: string; + readonly updated?: string; /** * The expiration timestamp of the quote. */ - time_expiry?: string; + readonly time_expiry?: string; /** * The quote id Transferwise needs. */ - quote_id?: string; + readonly quote_id?: string; /** * The fee amount. */ - amount_fee?: IAmount; + readonly amount_fee?: IAmount; /** * The rate. */ - rate?: string; + readonly rate?: string; /** * The estimated delivery time. */ - time_delivery_estimate?: string; + readonly time_delivery_estimate?: string; } export interface ITokenQrRequestSofortCreate { /** * The id of the created item */ - Id?: BunqId; + readonly Id?: BunqId; } export interface ITokenQrRequestSofort { @@ -1296,87 +1296,87 @@ export interface ITokenQrRequestIdealCreate { /** * The id of the RequestResponse. */ - id?: number; + readonly id?: number; /** * The timestamp of when the RequestResponse was responded to. */ - time_responded?: string; + readonly time_responded?: string; /** * The timestamp of when the RequestResponse expired or will expire. */ - time_expiry?: string; + readonly time_expiry?: string; /** * The id of the MonetaryAccount the RequestResponse was received on. */ - monetary_account_id?: number; + readonly monetary_account_id?: number; /** * The requested Amount. */ - amount_inquired?: IAmount; + readonly amount_inquired?: IAmount; /** * The Amount the RequestResponse was accepted with. */ - amount_responded?: IAmount; + readonly amount_responded?: IAmount; /** * The LabelMonetaryAccount with the public information of the MonetaryAccount this RequestResponse was received on. */ - alias?: ILabelMonetaryAccount; + readonly alias?: ILabelMonetaryAccount; /** * The LabelMonetaryAccount with the public information of the MonetaryAccount that is requesting money with this RequestResponse. */ - counterparty_alias?: ILabelMonetaryAccount; + readonly counterparty_alias?: ILabelMonetaryAccount; /** * The description for the RequestResponse provided by the requesting party. Maximum 9000 characters. */ - description?: string; + readonly description?: string; /** * The Attachments attached to the RequestResponse. */ - attachment?: Array; + readonly attachment?: Array; /** * The status of the created RequestResponse. Can only be PENDING. */ - status?: string; + readonly status?: string; /** * The minimum age the user accepting the RequestResponse must have. */ - minimum_age?: number; + readonly minimum_age?: number; /** * Whether or not an address must be provided on accept. */ - require_address?: string; + readonly require_address?: string; /** * The shipping address provided by the accepting user if an address was requested. */ - address_shipping?: IAddress; + readonly address_shipping?: IAddress; /** * The billing address provided by the accepting user if an address was requested. */ - address_billing?: IAddress; + readonly address_billing?: IAddress; /** * The Geolocation where the RequestResponse was created. */ - geolocation?: IGeolocation; + readonly geolocation?: IGeolocation; /** * The URL which the user is sent to after accepting or rejecting the Request. */ - redirect_url?: string; + readonly redirect_url?: string; /** * The type of the RequestResponse. Can be only be IDEAL. */ - type?: string; + readonly type?: string; /** * The subtype of the RequestResponse. Can be only be NONE. */ - sub_type?: string; + readonly sub_type?: string; /** * Whether or not chat messages are allowed. */ - allow_chat?: boolean; + readonly allow_chat?: boolean; /** * The whitelist id for this action or null. */ - eligible_whitelist_id?: number; + readonly eligible_whitelist_id?: number; } export interface ITokenQrRequestIdeal { @@ -1420,165 +1420,165 @@ export interface ITabUsageSingleUpdate { /** * The uuid of the modified TabUsageSingle. */ - uuid?: string; + readonly uuid?: string; } export interface ITabUsageSingleRead { /** * The uuid of the created TabUsageSingle. */ - uuid?: string; + readonly uuid?: string; /** * The timestamp of the Tab's creation. */ - created?: string; + readonly created?: string; /** * The timestamp of the Tab's last update. */ - updated?: string; + readonly updated?: string; /** * The merchant reference of the Tab, as defined by the owner. */ - merchant_reference?: string; + readonly merchant_reference?: string; /** * The description of the TabUsageMultiple. Maximum 9000 characters. */ - description?: string; + readonly description?: string; /** * The status of the Tab. Can be OPEN, WAITING_FOR_PAYMENT, PAID or CANCELED. */ - status?: string; + readonly status?: string; /** * The total amount of the Tab. */ - amount_total?: IAmount; + readonly amount_total?: IAmount; /** * The amount that has been paid for this Tab. */ - amount_paid?: IAmount; + readonly amount_paid?: IAmount; /** * The token used to redirect mobile devices directly to the bunq app. Because they can't scan a QR code. */ - qr_code_token?: string; + readonly qr_code_token?: string; /** * The URL redirecting user to the tab payment in the bunq app. Only works on mobile devices. */ - tab_url?: string; + readonly tab_url?: string; /** * The visibility of a Tab. A Tab can be visible trough NearPay, the QR code of the CashRegister and its own QR code. */ - visibility?: ITabVisibility; + readonly visibility?: ITabVisibility; /** * The minimum age of the user paying the Tab. */ - minimum_age?: boolean; + readonly minimum_age?: boolean; /** * Whether or not an billing and shipping address must be provided when paying the Tab. */ - require_address?: string; + readonly require_address?: string; /** * The URL which the user is sent to after paying the Tab. */ - redirect_url?: string; + readonly redirect_url?: string; /** * The moment when this Tab expires. */ - expiration?: string; + readonly expiration?: string; /** * The alias of the party that owns this tab. */ - alias?: ILabelMonetaryAccount; + readonly alias?: ILabelMonetaryAccount; /** * The location of the cash register that created this tab. */ - cash_register_location?: IGeolocation; + readonly cash_register_location?: IGeolocation; /** * The tab items of this tab. */ - tab_item?: Array; + readonly tab_item?: Array; /** * An array of attachments that describe the tab. Uploaded through the POST /user/{userid}/attachment-tab endpoint. */ - tab_attachment?: Array; + readonly tab_attachment?: Array; } export interface ITabUsageSingleListing { /** * The uuid of the created TabUsageSingle. */ - uuid?: string; + readonly uuid?: string; /** * The timestamp of the Tab's creation. */ - created?: string; + readonly created?: string; /** * The timestamp of the Tab's last update. */ - updated?: string; + readonly updated?: string; /** * The merchant reference of the Tab, as defined by the owner. */ - merchant_reference?: string; + readonly merchant_reference?: string; /** * The description of the TabUsageMultiple. Maximum 9000 characters. */ - description?: string; + readonly description?: string; /** * The status of the Tab. Can be OPEN, WAITING_FOR_PAYMENT, PAID or CANCELED. */ - status?: string; + readonly status?: string; /** * The total amount of the Tab. */ - amount_total?: IAmount; + readonly amount_total?: IAmount; /** * The amount that has been paid for this Tab. */ - amount_paid?: IAmount; + readonly amount_paid?: IAmount; /** * The token used to redirect mobile devices directly to the bunq app. Because they can't scan a QR code. */ - qr_code_token?: string; + readonly qr_code_token?: string; /** * The URL redirecting user to the tab payment in the bunq app. Only works on mobile devices. */ - tab_url?: string; + readonly tab_url?: string; /** * The visibility of a Tab. A Tab can be visible trough NearPay, the QR code of the CashRegister and its own QR code. */ - visibility?: ITabVisibility; + readonly visibility?: ITabVisibility; /** * The minimum age of the user paying the Tab. */ - minimum_age?: boolean; + readonly minimum_age?: boolean; /** * Whether or not an billing and shipping address must be provided when paying the Tab. */ - require_address?: string; + readonly require_address?: string; /** * The URL which the user is sent to after paying the Tab. */ - redirect_url?: string; + readonly redirect_url?: string; /** * The moment when this Tab expires. */ - expiration?: string; + readonly expiration?: string; /** * The alias of the party that owns this tab. */ - alias?: ILabelMonetaryAccount; + readonly alias?: ILabelMonetaryAccount; /** * The location of the cash register that created this tab. */ - cash_register_location?: IGeolocation; + readonly cash_register_location?: IGeolocation; /** * The tab items of this tab. */ - tab_item?: Array; + readonly tab_item?: Array; /** * An array of attachments that describe the tab. Uploaded through the POST /user/{userid}/attachment-tab endpoint. */ - tab_attachment?: Array; + readonly tab_attachment?: Array; } export interface ITabUsageSingleDelete {} @@ -1587,7 +1587,7 @@ export interface ITabUsageSingleCreate { /** * The uuid of the created TabUsageSingle. */ - uuid?: string; + readonly uuid?: string; } export interface ITabUsageSingle { @@ -1646,188 +1646,188 @@ export interface ITabUsageSingle { /** * The uuid of the created TabUsageSingle. */ - uuid?: string; + readonly uuid?: string; /** * The timestamp of the Tab's creation. */ - created?: string; + readonly created?: string; /** * The timestamp of the Tab's last update. */ - updated?: string; + readonly updated?: string; /** * The amount that has been paid for this Tab. */ - amount_paid?: IAmount; + readonly amount_paid?: IAmount; /** * The token used to redirect mobile devices directly to the bunq app. Because they can't scan a QR code. */ - qr_code_token?: string; + readonly qr_code_token?: string; /** * The URL redirecting user to the tab payment in the bunq app. Only works on mobile devices. */ - tab_url?: string; + readonly tab_url?: string; /** * The alias of the party that owns this tab. */ - alias?: ILabelMonetaryAccount; + readonly alias?: ILabelMonetaryAccount; /** * The location of the cash register that created this tab. */ - cash_register_location?: IGeolocation; + readonly cash_register_location?: IGeolocation; /** * The tab items of this tab. */ - tab_item?: Array; + readonly tab_item?: Array; } export interface ITabUsageMultipleUpdate { /** * The uuid of the modified TabUsageMultiple. */ - uuid?: string; + readonly uuid?: string; } export interface ITabUsageMultipleRead { /** * The uuid of the created TabUsageMultiple. */ - uuid?: string; + readonly uuid?: string; /** * The timestamp of the Tab's creation. */ - created?: string; + readonly created?: string; /** * The timestamp of the Tab's last update. */ - updated?: string; + readonly updated?: string; /** * The description of the TabUsageMultiple. Maximum 9000 characters. */ - description?: string; + readonly description?: string; /** * The status of the Tab. Can be OPEN, PAYABLE or CLOSED. */ - status?: string; + readonly status?: string; /** * The total amount of the Tab. */ - amount_total?: IAmount; + readonly amount_total?: IAmount; /** * The token used to redirect mobile devices directly to the bunq app. Because they can't scan a QR code. */ - qr_code_token?: string; + readonly qr_code_token?: string; /** * The URL redirecting user to the tab payment in the bunq app. Only works on mobile devices. */ - tab_url?: string; + readonly tab_url?: string; /** * The visibility of a Tab. A Tab can be visible trough NearPay, the QR code of the CashRegister and its own QR code. */ - visibility?: ITabVisibility; + readonly visibility?: ITabVisibility; /** * The minimum age of the user paying the Tab. */ - minimum_age?: boolean; + readonly minimum_age?: boolean; /** * Whether or not an billing and shipping address must be provided when paying the Tab. */ - require_address?: string; + readonly require_address?: string; /** * The URL which the user is sent to after paying the Tab. */ - redirect_url?: string; + readonly redirect_url?: string; /** * The moment when this Tab expires. */ - expiration?: string; + readonly expiration?: string; /** * The alias of the party that owns this tab. */ - alias?: ILabelMonetaryAccount; + readonly alias?: ILabelMonetaryAccount; /** * The location of the cash register that created this tab. */ - cash_register_location?: IGeolocation; + readonly cash_register_location?: IGeolocation; /** * The tab items of this tab. */ - tab_item?: Array; + readonly tab_item?: Array; /** * An array of attachments that describe the tab. Viewable through the GET /tab/{tabid}/attachment/{attachmentid}/content endpoint. */ - tab_attachment?: Array; + readonly tab_attachment?: Array; } export interface ITabUsageMultipleListing { /** * The uuid of the created TabUsageMultiple. */ - uuid?: string; + readonly uuid?: string; /** * The timestamp of the Tab's creation. */ - created?: string; + readonly created?: string; /** * The timestamp of the Tab's last update. */ - updated?: string; + readonly updated?: string; /** * The description of the TabUsageMultiple. Maximum 9000 characters. */ - description?: string; + readonly description?: string; /** * The status of the Tab. Can be OPEN, PAYABLE or CLOSED. */ - status?: string; + readonly status?: string; /** * The total amount of the Tab. */ - amount_total?: IAmount; + readonly amount_total?: IAmount; /** * The token used to redirect mobile devices directly to the bunq app. Because they can't scan a QR code. */ - qr_code_token?: string; + readonly qr_code_token?: string; /** * The URL redirecting user to the tab payment in the bunq app. Only works on mobile devices. */ - tab_url?: string; + readonly tab_url?: string; /** * The visibility of a Tab. A Tab can be visible trough NearPay, the QR code of the CashRegister and its own QR code. */ - visibility?: ITabVisibility; + readonly visibility?: ITabVisibility; /** * The minimum age of the user paying the Tab. */ - minimum_age?: boolean; + readonly minimum_age?: boolean; /** * Whether or not an billing and shipping address must be provided when paying the Tab. */ - require_address?: string; + readonly require_address?: string; /** * The URL which the user is sent to after paying the Tab. */ - redirect_url?: string; + readonly redirect_url?: string; /** * The moment when this Tab expires. */ - expiration?: string; + readonly expiration?: string; /** * The alias of the party that owns this tab. */ - alias?: ILabelMonetaryAccount; + readonly alias?: ILabelMonetaryAccount; /** * The location of the cash register that created this tab. */ - cash_register_location?: IGeolocation; + readonly cash_register_location?: IGeolocation; /** * The tab items of this tab. */ - tab_item?: Array; + readonly tab_item?: Array; /** * An array of attachments that describe the tab. Viewable through the GET /tab/{tabid}/attachment/{attachmentid}/content endpoint. */ - tab_attachment?: Array; + readonly tab_attachment?: Array; } export interface ITabUsageMultipleDelete {} @@ -1836,7 +1836,7 @@ export interface ITabUsageMultipleCreate { /** * The uuid of the created TabUsageMultiple. */ - uuid?: string; + readonly uuid?: string; } export interface ITabUsageMultiple { @@ -1891,35 +1891,35 @@ export interface ITabUsageMultiple { /** * The uuid of the created TabUsageMultiple. */ - uuid?: string; + readonly uuid?: string; /** * The timestamp of the Tab's creation. */ - created?: string; + readonly created?: string; /** * The timestamp of the Tab's last update. */ - updated?: string; + readonly updated?: string; /** * The token used to redirect mobile devices directly to the bunq app. Because they can't scan a QR code. */ - qr_code_token?: string; + readonly qr_code_token?: string; /** * The URL redirecting user to the tab payment in the bunq app. Only works on mobile devices. */ - tab_url?: string; + readonly tab_url?: string; /** * The alias of the party that owns this tab. */ - alias?: ILabelMonetaryAccount; + readonly alias?: ILabelMonetaryAccount; /** * The location of the cash register that created this tab. */ - cash_register_location?: IGeolocation; + readonly cash_register_location?: IGeolocation; /** * The tab items of this tab. */ - tab_item?: Array; + readonly tab_item?: Array; } export interface ITabTextWaitingScreen { @@ -1937,89 +1937,89 @@ export interface ITabResultResponseRead { /** * The Tab details. */ - tab?: ITab; + readonly tab?: ITab; /** * The payment made for the Tab. */ - payment?: IPayment; + readonly payment?: IPayment; /** * The reference to the object used for split the bill. Can be RequestInquiry or RequestInquiryBatch */ - request_reference_split_the_bill?: Array; + readonly request_reference_split_the_bill?: Array; } export interface ITabResultResponseListing { /** * The Tab details. */ - tab?: ITab; + readonly tab?: ITab; /** * The payment made for the Tab. */ - payment?: IPayment; + readonly payment?: IPayment; /** * The reference to the object used for split the bill. Can be RequestInquiry or RequestInquiryBatch */ - request_reference_split_the_bill?: Array; + readonly request_reference_split_the_bill?: Array; } export interface ITabResultResponse { /** * The Tab details. */ - tab?: ITab; + readonly tab?: ITab; /** * The payment made for the Tab. */ - payment?: IPayment; + readonly payment?: IPayment; /** * The reference to the object used for split the bill. Can be RequestInquiry or RequestInquiryBatch */ - request_reference_split_the_bill?: Array; + readonly request_reference_split_the_bill?: Array; } export interface ITabResultInquiryRead { /** * The Tab details. */ - tab?: ITab; + readonly tab?: ITab; /** * The payment made for the Tab. */ - payment?: IPayment; + readonly payment?: IPayment; } export interface ITabResultInquiryListing { /** * The Tab details. */ - tab?: ITab; + readonly tab?: ITab; /** * The payment made for the Tab. */ - payment?: IPayment; + readonly payment?: IPayment; } export interface ITabResultInquiry { /** * The Tab details. */ - tab?: ITab; + readonly tab?: ITab; /** * The payment made for the Tab. */ - payment?: IPayment; + readonly payment?: IPayment; } export interface ITabRead { /** * */ - TabUsageSingle?: ITabUsageSingle; + readonly TabUsageSingle?: ITabUsageSingle; /** * */ - TabUsageMultiple?: ITabUsageMultiple; + readonly TabUsageMultiple?: ITabUsageMultiple; } export interface ITabQrCodeContentListing {} @@ -2028,80 +2028,80 @@ export interface ITabListing { /** * */ - TabUsageSingle?: ITabUsageSingle; + readonly TabUsageSingle?: ITabUsageSingle; /** * */ - TabUsageMultiple?: ITabUsageMultiple; + readonly TabUsageMultiple?: ITabUsageMultiple; } export interface ITabItemShopUpdate { /** * The id of the modified TabItem. */ - id?: number; + readonly id?: number; } export interface ITabItemShopRead { /** * The id of the created TabItem. */ - id?: number; + readonly id?: number; /** * The TabItem's brief description. */ - description?: string; + readonly description?: string; /** * The TabItem's EAN code. */ - ean_code?: string; + readonly ean_code?: string; /** * A struct with an AttachmentPublic UUID that used as an avatar for the TabItem. */ - avatar_attachment?: IAttachmentPublic; + readonly avatar_attachment?: IAttachmentPublic; /** * A list of AttachmentTab attached to the TabItem. */ - tab_attachment?: Array; + readonly tab_attachment?: Array; /** * The quantity of the TabItem. */ - quantity?: number; + readonly quantity?: number; /** * The money amount of the TabItem. */ - amount?: IAmount; + readonly amount?: IAmount; } export interface ITabItemShopListing { /** * The id of the created TabItem. */ - id?: number; + readonly id?: number; /** * The TabItem's brief description. */ - description?: string; + readonly description?: string; /** * The TabItem's EAN code. */ - ean_code?: string; + readonly ean_code?: string; /** * A struct with an AttachmentPublic UUID that used as an avatar for the TabItem. */ - avatar_attachment?: IAttachmentPublic; + readonly avatar_attachment?: IAttachmentPublic; /** * A list of AttachmentTab attached to the TabItem. */ - tab_attachment?: Array; + readonly tab_attachment?: Array; /** * The quantity of the TabItem. */ - quantity?: number; + readonly quantity?: number; /** * The money amount of the TabItem. */ - amount?: IAmount; + readonly amount?: IAmount; } export interface ITabItemShopDelete {} @@ -2110,14 +2110,14 @@ export interface ITabItemShopCreate { /** * The id of the created TabItem. */ - id?: number; + readonly id?: number; } export interface ITabItemShopBatchCreate { /** * The id of the created item */ - Id?: BunqId; + readonly Id?: BunqId; } export interface ITabItemShopBatch { @@ -2155,61 +2155,61 @@ export interface ITabItemShop { /** * The id of the created TabItem. */ - id?: number; + readonly id?: number; /** * A struct with an AttachmentPublic UUID that used as an avatar for the TabItem. */ - avatar_attachment?: IAttachmentPublic; + readonly avatar_attachment?: IAttachmentPublic; } export interface ITabItem { /** * The id of the tab item. */ - id?: number; + readonly id?: number; /** * The item's brief description. */ - description?: string; + readonly description?: string; /** * The item's EAN code. */ - ean_code?: string; + readonly ean_code?: string; /** * A struct with an AttachmentPublic UUID that used as an avatar for the TabItem. */ - avatar_attachment?: IAttachmentPublic; + readonly avatar_attachment?: IAttachmentPublic; /** * A list of AttachmentTab attached to the TabItem. */ - tab_attachment?: Array; + readonly tab_attachment?: Array; /** * The quantity of the item. Formatted as a number containing up to 15 digits, up to 15 decimals and using a dot. */ - quantity?: string; + readonly quantity?: string; /** * The money amount of the item. */ - amount?: IAmount; + readonly amount?: IAmount; } export interface ITabAttachmentTabRead { /** * The id of the attachment. */ - id?: number; + readonly id?: number; /** * The timestamp of the attachment's creation. */ - created?: string; + readonly created?: string; /** * The timestamp of the attachment's last update. */ - updated?: string; + readonly updated?: string; /** * The attachment. */ - attachment?: IAttachment; + readonly attachment?: IAttachment; } export interface ITabAttachmentTabContentListing {} @@ -2218,97 +2218,97 @@ export interface ITab { /** * */ - TabUsageSingle?: ITabUsageSingle; + readonly TabUsageSingle?: ITabUsageSingle; /** * */ - TabUsageMultiple?: ITabUsageMultiple; + readonly TabUsageMultiple?: ITabUsageMultiple; } export interface ISofortMerchantTransactionRead { /** * The id of the monetary account this sofort merchant transaction links to. */ - monetary_account_id?: number; + readonly monetary_account_id?: number; /** * The alias of the monetary account to add money to. */ - alias?: ILabelMonetaryAccount; + readonly alias?: ILabelMonetaryAccount; /** * The alias of the monetary account the money comes from. */ - counterparty_alias?: ILabelMonetaryAccount; + readonly counterparty_alias?: ILabelMonetaryAccount; /** * In case of a successful transaction, the amount of money that will be transferred. */ - amount_guaranteed?: IAmount; + readonly amount_guaranteed?: IAmount; /** * The requested amount of money to add. */ - amount_requested?: IAmount; + readonly amount_requested?: IAmount; /** * The BIC of the issuer. */ - issuer?: string; + readonly issuer?: string; /** * The URL to visit to */ - issuer_authentication_url?: string; + readonly issuer_authentication_url?: string; /** * The status of the transaction. */ - status?: string; + readonly status?: string; /** * The error message of the transaction. */ - error_message?: Array; + readonly error_message?: Array; /** * The 'transaction ID' of the Sofort transaction. */ - transaction_identifier?: string; + readonly transaction_identifier?: string; } export interface ISofortMerchantTransactionListing { /** * The id of the monetary account this sofort merchant transaction links to. */ - monetary_account_id?: number; + readonly monetary_account_id?: number; /** * The alias of the monetary account to add money to. */ - alias?: ILabelMonetaryAccount; + readonly alias?: ILabelMonetaryAccount; /** * The alias of the monetary account the money comes from. */ - counterparty_alias?: ILabelMonetaryAccount; + readonly counterparty_alias?: ILabelMonetaryAccount; /** * In case of a successful transaction, the amount of money that will be transferred. */ - amount_guaranteed?: IAmount; + readonly amount_guaranteed?: IAmount; /** * The requested amount of money to add. */ - amount_requested?: IAmount; + readonly amount_requested?: IAmount; /** * The BIC of the issuer. */ - issuer?: string; + readonly issuer?: string; /** * The URL to visit to */ - issuer_authentication_url?: string; + readonly issuer_authentication_url?: string; /** * The status of the transaction. */ - status?: string; + readonly status?: string; /** * The error message of the transaction. */ - error_message?: Array; + readonly error_message?: Array; /** * The 'transaction ID' of the Sofort transaction. */ - transaction_identifier?: string; + readonly transaction_identifier?: string; } export interface ISofortMerchantTransaction { @@ -2323,152 +2323,152 @@ export interface ISofortMerchantTransaction { /** * The id of the monetary account this sofort merchant transaction links to. */ - monetary_account_id?: number; + readonly monetary_account_id?: number; /** * The alias of the monetary account to add money to. */ - alias?: ILabelMonetaryAccount; + readonly alias?: ILabelMonetaryAccount; /** * The alias of the monetary account the money comes from. */ - counterparty_alias?: ILabelMonetaryAccount; + readonly counterparty_alias?: ILabelMonetaryAccount; /** * In case of a successful transaction, the amount of money that will be transferred. */ - amount_guaranteed?: IAmount; + readonly amount_guaranteed?: IAmount; /** * The URL to visit to */ - issuer_authentication_url?: string; + readonly issuer_authentication_url?: string; /** * The status of the transaction. */ - status?: string; + readonly status?: string; /** * The error message of the transaction. */ - error_message?: Array; + readonly error_message?: Array; /** * The 'transaction ID' of the Sofort transaction. */ - transaction_identifier?: string; + readonly transaction_identifier?: string; } export interface IShareInviteMonetaryAccountResponseUpdate { /** * The id of the created item */ - Id?: BunqId; + readonly Id?: BunqId; } export interface IShareInviteMonetaryAccountResponseRead { /** * The id of the ShareInviteMonetaryAccountResponse. */ - id?: number; + readonly id?: number; /** * The timestamp of the ShareInviteMonetaryAccountResponse creation. */ - created?: string; + readonly created?: string; /** * The timestamp of the ShareInviteMonetaryAccountResponse last update. */ - updated?: string; + readonly updated?: string; /** * The monetary account and user who created the share. */ - counter_alias?: ILabelMonetaryAccount; + readonly counter_alias?: ILabelMonetaryAccount; /** * The user who cancelled the share if it has been revoked or rejected. */ - user_alias_cancelled?: ILabelUser; + readonly user_alias_cancelled?: ILabelUser; /** * The id of the monetary account the ACCEPTED share applies to. null otherwise. */ - monetary_account_id?: number; + readonly monetary_account_id?: number; /** * The id of the draft share invite bank. */ - draft_share_invite_bank_id?: number; + readonly draft_share_invite_bank_id?: number; /** * The share details. */ - share_detail?: IShareDetail; + readonly share_detail?: IShareDetail; /** * 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) */ - status?: string; + readonly status?: string; /** * The share type, either STANDARD or MUTUAL. */ - share_type?: string; + readonly share_type?: string; /** * The start date of this share. */ - start_date?: string; + readonly start_date?: string; /** * The expiration date of this share. */ - end_date?: string; + readonly end_date?: string; /** * The description of this share. It is basically the monetary account description. */ - description?: string; + readonly description?: string; } export interface IShareInviteMonetaryAccountResponseListing { /** * The id of the ShareInviteMonetaryAccountResponse. */ - id?: number; + readonly id?: number; /** * The timestamp of the ShareInviteMonetaryAccountResponse creation. */ - created?: string; + readonly created?: string; /** * The timestamp of the ShareInviteMonetaryAccountResponse last update. */ - updated?: string; + readonly updated?: string; /** * The monetary account and user who created the share. */ - counter_alias?: ILabelMonetaryAccount; + readonly counter_alias?: ILabelMonetaryAccount; /** * The user who cancelled the share if it has been revoked or rejected. */ - user_alias_cancelled?: ILabelUser; + readonly user_alias_cancelled?: ILabelUser; /** * The id of the monetary account the ACCEPTED share applies to. null otherwise. */ - monetary_account_id?: number; + readonly monetary_account_id?: number; /** * The id of the draft share invite bank. */ - draft_share_invite_bank_id?: number; + readonly draft_share_invite_bank_id?: number; /** * The share details. */ - share_detail?: IShareDetail; + readonly share_detail?: IShareDetail; /** * 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) */ - status?: string; + readonly status?: string; /** * The share type, either STANDARD or MUTUAL. */ - share_type?: string; + readonly share_type?: string; /** * The start date of this share. */ - start_date?: string; + readonly start_date?: string; /** * The expiration date of this share. */ - end_date?: string; + readonly end_date?: string; /** * The description of this share. It is basically the monetary account description. */ - description?: string; + readonly description?: string; } export interface IShareInviteMonetaryAccountResponse { @@ -2483,178 +2483,180 @@ export interface IShareInviteMonetaryAccountResponse { /** * The id of the ShareInviteMonetaryAccountResponse. */ - id?: number; + readonly id?: number; /** * The timestamp of the ShareInviteMonetaryAccountResponse creation. */ - created?: string; + readonly created?: string; /** * The timestamp of the ShareInviteMonetaryAccountResponse last update. */ - updated?: string; + readonly updated?: string; /** * The monetary account and user who created the share. */ - counter_alias?: ILabelMonetaryAccount; + readonly counter_alias?: ILabelMonetaryAccount; /** * The user who cancelled the share if it has been revoked or rejected. */ - user_alias_cancelled?: ILabelUser; + readonly user_alias_cancelled?: ILabelUser; /** * The id of the monetary account the ACCEPTED share applies to. null otherwise. */ - monetary_account_id?: number; + readonly monetary_account_id?: number; /** * The id of the draft share invite bank. */ - draft_share_invite_bank_id?: number; + readonly draft_share_invite_bank_id?: number; /** * The share details. */ - share_detail?: IShareDetail; + readonly share_detail?: IShareDetail; /** * The share type, either STANDARD or MUTUAL. */ - share_type?: string; + readonly share_type?: string; /** * The start date of this share. */ - start_date?: string; + readonly start_date?: string; /** * The expiration date of this share. */ - end_date?: string; + readonly end_date?: string; /** * The description of this share. It is basically the monetary account description. */ - description?: string; + readonly description?: string; } export interface IShareInviteMonetaryAccountInquiryUpdate { /** * The id of the created item */ - Id?: BunqId; + readonly Id?: BunqId; } export interface IShareInviteMonetaryAccountInquiryRead { /** * The label of the monetary account that's being shared. */ - alias?: ILabelMonetaryAccount; + readonly alias?: ILabelMonetaryAccount; /** * The user who created the share. */ - user_alias_created?: ILabelUser; + readonly user_alias_created?: ILabelUser; /** * The user who revoked the share. */ - user_alias_revoked?: ILabelUser; + readonly user_alias_revoked?: ILabelUser; /** * The label of the user to share with. */ - counter_user_alias?: ILabelUser; + readonly counter_user_alias?: ILabelUser; /** * The id of the monetary account the share applies to. */ - monetary_account_id?: number; + readonly monetary_account_id?: number; /** * The id of the draft share invite bank. */ - draft_share_invite_bank_id?: number; + readonly draft_share_invite_bank_id?: number; /** * The share details. Only one of these objects is returned. */ - share_detail?: IShareDetail; + readonly share_detail?: IShareDetail; /** * 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) */ - status?: string; + readonly status?: string; /** * The share type, either STANDARD or MUTUAL. */ - share_type?: string; + readonly share_type?: string; /** * The start date of this share. */ - start_date?: string; + readonly start_date?: string; /** * The expiration date of this share. */ - end_date?: string; + readonly end_date?: string; /** * The id of the newly created share invite. */ - id?: number; + readonly id?: number; } export interface IShareInviteMonetaryAccountInquiryListing { /** * The label of the monetary account that's being shared. */ - alias?: ILabelMonetaryAccount; + readonly alias?: ILabelMonetaryAccount; /** * The user who created the share. */ - user_alias_created?: ILabelUser; + readonly user_alias_created?: ILabelUser; /** * The user who revoked the share. */ - user_alias_revoked?: ILabelUser; + readonly user_alias_revoked?: ILabelUser; /** * The label of the user to share with. */ - counter_user_alias?: ILabelUser; + readonly counter_user_alias?: ILabelUser; /** * The id of the monetary account the share applies to. */ - monetary_account_id?: number; + readonly monetary_account_id?: number; /** * The id of the draft share invite bank. */ - draft_share_invite_bank_id?: number; + readonly draft_share_invite_bank_id?: number; /** * The share details. Only one of these objects is returned. */ - share_detail?: IShareDetail; + readonly share_detail?: IShareDetail; /** * 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) */ - status?: string; + readonly status?: string; /** * The share type, either STANDARD or MUTUAL. */ - share_type?: string; + readonly share_type?: string; /** * The start date of this share. */ - start_date?: string; + readonly start_date?: string; /** * The expiration date of this share. */ - end_date?: string; + readonly end_date?: string; /** * The id of the newly created share invite. */ - id?: number; + readonly id?: number; } export interface IShareInviteMonetaryAccountInquiryCreate { /** * The id of the newly created share invite. */ - id?: number; + readonly id?: number; } export interface IShareInviteMonetaryAccountInquiryBatch { /** * The list of share invite bank inquiries that were made. */ - share_invite_bank_inquiries?: Array; + readonly share_invite_bank_inquiries?: Array< + IShareInviteMonetaryAccountInquiry + >; /** * The LabelMonetaryAccount containing the public information of this share invite inquiry batch. */ - alias?: ILabelMonetaryAccount; + readonly alias?: ILabelMonetaryAccount; } export interface IShareInviteMonetaryAccountInquiry { @@ -2689,23 +2691,23 @@ export interface IShareInviteMonetaryAccountInquiry { /** * The label of the monetary account that's being shared. */ - alias?: ILabelMonetaryAccount; + readonly alias?: ILabelMonetaryAccount; /** * The user who created the share. */ - user_alias_created?: ILabelUser; + readonly user_alias_created?: ILabelUser; /** * The user who revoked the share. */ - user_alias_revoked?: ILabelUser; + readonly user_alias_revoked?: ILabelUser; /** * The id of the monetary account the share applies to. */ - monetary_account_id?: number; + readonly monetary_account_id?: number; /** * The id of the newly created share invite. */ - id?: number; + readonly id?: number; } export interface IShareInviteMonetaryAccountAmountUsedDelete {} @@ -2790,38 +2792,38 @@ export interface ISessionServerToken { /** * The id of the Token. */ - id?: number; + readonly id?: number; /** * The Session token is the token the client has to provide in the "X-Bunq-Client-Authentication" header for each API call that requires a Session (only the creation of a Installation and DeviceServer don't require a Session). */ - token?: string; + readonly token?: string; } export interface ISessionServerCreate { /** * The Id object of the created Session. */ - Id?: BunqId; + readonly Id?: BunqId; /** * The token object of this Session. */ - Token?: ISessionServerToken; + readonly Token?: ISessionServerToken; /** * The UserCompany object that is logged in with this Session. */ - UserCompany?: IUserCompany; + readonly UserCompany?: IUserCompany; /** * The UserPerson object that is logged in with this Session. */ - UserPerson?: IUserPerson; + readonly UserPerson?: IUserPerson; /** * The UserApiKey object that is logged in with this Session. */ - UserApiKey?: IUserApiKey; + readonly UserApiKey?: IUserApiKey; /** * The UserPaymentServiceProvider object that is logged in with this Session. */ - UserPaymentServiceProvider?: IUserPaymentServiceProvider; + readonly UserPaymentServiceProvider?: IUserPaymentServiceProvider; } export interface ISessionServer { @@ -2839,64 +2841,64 @@ export interface IScheduleRead { /** * The schedule start time (UTC). */ - time_start?: string; + readonly time_start?: string; /** * The schedule end time (UTC). */ - time_end?: string; + readonly time_end?: string; /** * The schedule recurrence unit, options: ONCE, HOURLY, DAILY, WEEKLY, MONTHLY, YEARLY */ - recurrence_unit?: string; + readonly recurrence_unit?: string; /** * The schedule recurrence size. For example size 4 and unit WEEKLY means the recurrence is every 4 weeks. */ - recurrence_size?: number; + readonly recurrence_size?: number; /** * The schedule status, options: ACTIVE, FINISHED, CANCELLED. */ - status?: string; + readonly status?: string; /** * The scheduled object. (Payment, PaymentBatch) */ - object?: IScheduleAnchorObject; + readonly object?: IScheduleAnchorObject; } export interface ISchedulePaymentUpdate { /** * The id of the created item */ - Id?: BunqId; + readonly Id?: BunqId; } export interface ISchedulePaymentRead { /** * The payment details. */ - payment?: ISchedulePaymentEntry; + readonly payment?: ISchedulePaymentEntry; /** * The schedule details. */ - schedule?: ISchedule; + readonly schedule?: ISchedule; /** * The schedule status, options: ACTIVE, FINISHED, CANCELLED. */ - status?: string; + readonly status?: string; } export interface ISchedulePaymentListing { /** * The payment details. */ - payment?: ISchedulePaymentEntry; + readonly payment?: ISchedulePaymentEntry; /** * The schedule details. */ - schedule?: ISchedule; + readonly schedule?: ISchedule; /** * The schedule status, options: ACTIVE, FINISHED, CANCELLED. */ - status?: string; + readonly status?: string; } export interface ISchedulePaymentEntry { @@ -2927,7 +2929,7 @@ export interface ISchedulePaymentEntry { /** * The LabelMonetaryAccount containing the public information of 'this' (party) side of the Payment. */ - alias?: ILabelMonetaryAccount; + readonly alias?: ILabelMonetaryAccount; } export interface ISchedulePaymentDelete {} @@ -2936,14 +2938,14 @@ export interface ISchedulePaymentCreate { /** * The id of the created item */ - Id?: BunqId; + readonly Id?: BunqId; } export interface ISchedulePaymentBatchUpdate { /** * The id of the created item */ - Id?: BunqId; + readonly Id?: BunqId; } export interface ISchedulePaymentBatchDelete {} @@ -2952,7 +2954,7 @@ export interface ISchedulePaymentBatchCreate { /** * The id of the created item */ - Id?: BunqId; + readonly Id?: BunqId; } export interface ISchedulePaymentBatch { @@ -2978,114 +2980,114 @@ export interface ISchedulePayment { /** * The schedule status, options: ACTIVE, FINISHED, CANCELLED. */ - status?: string; + readonly status?: string; } export interface IScheduleListing { /** * The schedule start time (UTC). */ - time_start?: string; + readonly time_start?: string; /** * The schedule end time (UTC). */ - time_end?: string; + readonly time_end?: string; /** * The schedule recurrence unit, options: ONCE, HOURLY, DAILY, WEEKLY, MONTHLY, YEARLY */ - recurrence_unit?: string; + readonly recurrence_unit?: string; /** * The schedule recurrence size. For example size 4 and unit WEEKLY means the recurrence is every 4 weeks. */ - recurrence_size?: number; + readonly recurrence_size?: number; /** * The schedule status, options: ACTIVE, FINISHED, CANCELLED. */ - status?: string; + readonly status?: string; /** * The scheduled object. (Payment, PaymentBatch) */ - object?: IScheduleAnchorObject; + readonly object?: IScheduleAnchorObject; } export interface IScheduleInstanceUpdate { /** * The id of the created item */ - Id?: BunqId; + readonly Id?: BunqId; } export interface IScheduleInstanceRead { /** * The state of the scheduleInstance. (FINISHED_SUCCESSFULLY, RETRY, FAILED_USER_ERROR) */ - state?: string; + readonly state?: string; /** * The schedule start time (UTC). */ - time_start?: string; + readonly time_start?: string; /** * The schedule end time (UTC). */ - time_end?: string; + readonly time_end?: string; /** * The message when the scheduled instance has run and failed due to user error. */ - error_message?: Array; + readonly error_message?: Array; /** * The scheduled object. (Payment, PaymentBatch) */ - scheduled_object?: IScheduleAnchorObject; + readonly scheduled_object?: IScheduleAnchorObject; /** * The result object of this schedule instance. (Payment, PaymentBatch) */ - result_object?: IScheduleInstanceAnchorObject; + readonly result_object?: IScheduleInstanceAnchorObject; /** * The reference to the object used for split the bill. Can be RequestInquiry or RequestInquiryBatch */ - request_reference_split_the_bill?: Array; + readonly request_reference_split_the_bill?: Array; } export interface IScheduleInstanceListing { /** * The state of the scheduleInstance. (FINISHED_SUCCESSFULLY, RETRY, FAILED_USER_ERROR) */ - state?: string; + readonly state?: string; /** * The schedule start time (UTC). */ - time_start?: string; + readonly time_start?: string; /** * The schedule end time (UTC). */ - time_end?: string; + readonly time_end?: string; /** * The message when the scheduled instance has run and failed due to user error. */ - error_message?: Array; + readonly error_message?: Array; /** * The scheduled object. (Payment, PaymentBatch) */ - scheduled_object?: IScheduleAnchorObject; + readonly scheduled_object?: IScheduleAnchorObject; /** * The result object of this schedule instance. (Payment, PaymentBatch) */ - result_object?: IScheduleInstanceAnchorObject; + readonly result_object?: IScheduleInstanceAnchorObject; /** * The reference to the object used for split the bill. Can be RequestInquiry or RequestInquiryBatch */ - request_reference_split_the_bill?: Array; + readonly request_reference_split_the_bill?: Array; } export interface IScheduleInstanceAnchorObject { /** * */ - Payment?: IPayment; + readonly Payment?: IPayment; /** * */ - PaymentBatch?: IPaymentBatch; + readonly PaymentBatch?: IPaymentBatch; } export interface IScheduleInstance { @@ -3096,38 +3098,38 @@ export interface IScheduleInstance { /** * The schedule start time (UTC). */ - time_start?: string; + readonly time_start?: string; /** * The schedule end time (UTC). */ - time_end?: string; + readonly time_end?: string; /** * The message when the scheduled instance has run and failed due to user error. */ - error_message?: Array; + readonly error_message?: Array; /** * The scheduled object. (Payment, PaymentBatch) */ - scheduled_object?: IScheduleAnchorObject; + readonly scheduled_object?: IScheduleAnchorObject; /** * The result object of this schedule instance. (Payment, PaymentBatch) */ - result_object?: IScheduleInstanceAnchorObject; + readonly result_object?: IScheduleInstanceAnchorObject; /** * The reference to the object used for split the bill. Can be RequestInquiry or RequestInquiryBatch */ - request_reference_split_the_bill?: Array; + readonly request_reference_split_the_bill?: Array; } export interface IScheduleAnchorObject { /** * */ - Payment?: IPayment; + readonly Payment?: IPayment; /** * */ - PaymentBatch?: IPaymentBatch; + readonly PaymentBatch?: IPaymentBatch; } export interface ISchedule { @@ -3150,18 +3152,18 @@ export interface ISchedule { /** * The schedule status, options: ACTIVE, FINISHED, CANCELLED. */ - status?: ScheduleStatusType; + readonly status?: ScheduleStatusType; /** * The scheduled object. (Payment, PaymentBatch) */ - object?: IScheduleAnchorObject; + readonly object?: IScheduleAnchorObject; } export interface ISandboxUserCreate { /** * The id of the created item */ - Id?: BunqId; + readonly Id?: BunqId; } export interface ISandboxUser {} @@ -3170,525 +3172,525 @@ export interface IRewardSenderRead { /** * The id of the reward. */ - id?: number; + readonly id?: number; /** * The time the reward was created. */ - created?: string; + readonly created?: string; /** * The time the reward was last updated. */ - updated?: string; + readonly updated?: string; /** * The status of the reward. */ - status?: string; + readonly status?: string; /** * The subStatus of the reward. */ - sub_status?: string; + readonly sub_status?: string; /** * The type of the reward. */ - type?: string; + readonly type?: string; /** * The alias of the other user eligible for the reward award. */ - counterparty_alias?: ILabelUser; + readonly counterparty_alias?: ILabelUser; /** * The amount that will be/was awarded as reward for the reward. */ - amount_reward?: IAmount; + readonly amount_reward?: IAmount; } export interface IRewardSenderListing { /** * The id of the reward. */ - id?: number; + readonly id?: number; /** * The time the reward was created. */ - created?: string; + readonly created?: string; /** * The time the reward was last updated. */ - updated?: string; + readonly updated?: string; /** * The status of the reward. */ - status?: string; + readonly status?: string; /** * The subStatus of the reward. */ - sub_status?: string; + readonly sub_status?: string; /** * The type of the reward. */ - type?: string; + readonly type?: string; /** * The alias of the other user eligible for the reward award. */ - counterparty_alias?: ILabelUser; + readonly counterparty_alias?: ILabelUser; /** * The amount that will be/was awarded as reward for the reward. */ - amount_reward?: IAmount; + readonly amount_reward?: IAmount; } export interface IRewardSender { /** * The id of the reward. */ - id?: number; + readonly id?: number; /** * The time the reward was created. */ - created?: string; + readonly created?: string; /** * The time the reward was last updated. */ - updated?: string; + readonly updated?: string; /** * The status of the reward. */ - status?: string; + readonly status?: string; /** * The subStatus of the reward. */ - sub_status?: string; + readonly sub_status?: string; /** * The type of the reward. */ - type?: string; + readonly type?: string; /** * The alias of the other user eligible for the reward award. */ - counterparty_alias?: ILabelUser; + readonly counterparty_alias?: ILabelUser; /** * The amount that will be/was awarded as reward for the reward. */ - amount_reward?: IAmount; + readonly amount_reward?: IAmount; } export interface IRewardRecipientRead { /** * The id of the reward. */ - id?: number; + readonly id?: number; /** * The time the reward was created. */ - created?: string; + readonly created?: string; /** * The time the reward was last updated. */ - updated?: string; + readonly updated?: string; /** * The status of the reward. */ - status?: string; + readonly status?: string; /** * The subStatus of the reward. */ - sub_status?: string; + readonly sub_status?: string; /** * The type of the reward. */ - type?: string; + readonly type?: string; /** * The alias of the other user eligible for the reward award. */ - counterparty_alias?: ILabelUser; + readonly counterparty_alias?: ILabelUser; /** * The amount that will be/was awarded as reward for the reward. */ - amount_reward?: IAmount; + readonly amount_reward?: IAmount; } export interface IRewardRecipientListing { /** * The id of the reward. */ - id?: number; + readonly id?: number; /** * The time the reward was created. */ - created?: string; + readonly created?: string; /** * The time the reward was last updated. */ - updated?: string; + readonly updated?: string; /** * The status of the reward. */ - status?: string; + readonly status?: string; /** * The subStatus of the reward. */ - sub_status?: string; + readonly sub_status?: string; /** * The type of the reward. */ - type?: string; + readonly type?: string; /** * The alias of the other user eligible for the reward award. */ - counterparty_alias?: ILabelUser; + readonly counterparty_alias?: ILabelUser; /** * The amount that will be/was awarded as reward for the reward. */ - amount_reward?: IAmount; + readonly amount_reward?: IAmount; } export interface IRewardRecipient { /** * The id of the reward. */ - id?: number; + readonly id?: number; /** * The time the reward was created. */ - created?: string; + readonly created?: string; /** * The time the reward was last updated. */ - updated?: string; + readonly updated?: string; /** * The status of the reward. */ - status?: string; + readonly status?: string; /** * The subStatus of the reward. */ - sub_status?: string; + readonly sub_status?: string; /** * The type of the reward. */ - type?: string; + readonly type?: string; /** * The alias of the other user eligible for the reward award. */ - counterparty_alias?: ILabelUser; + readonly counterparty_alias?: ILabelUser; /** * The amount that will be/was awarded as reward for the reward. */ - amount_reward?: IAmount; + readonly amount_reward?: IAmount; } export interface IRewardRead { /** * The id of the reward. */ - id?: number; + readonly id?: number; /** * The time the reward was created. */ - created?: string; + readonly created?: string; /** * The time the reward was last updated. */ - updated?: string; + readonly updated?: string; /** * The status of the reward. */ - status?: string; + readonly status?: string; /** * The subStatus of the reward. */ - sub_status?: string; + readonly sub_status?: string; /** * The type of the reward. */ - type?: string; + readonly type?: string; /** * The alias of the other user eligible for the reward award. */ - counterparty_alias?: ILabelUser; + readonly counterparty_alias?: ILabelUser; /** * The amount that will be/was awarded as reward for the reward. */ - amount_reward?: IAmount; + readonly amount_reward?: IAmount; } export interface IRewardListing { /** * The id of the reward. */ - id?: number; + readonly id?: number; /** * The time the reward was created. */ - created?: string; + readonly created?: string; /** * The time the reward was last updated. */ - updated?: string; + readonly updated?: string; /** * The status of the reward. */ - status?: string; + readonly status?: string; /** * The subStatus of the reward. */ - sub_status?: string; + readonly sub_status?: string; /** * The type of the reward. */ - type?: string; + readonly type?: string; /** * The alias of the other user eligible for the reward award. */ - counterparty_alias?: ILabelUser; + readonly counterparty_alias?: ILabelUser; /** * The amount that will be/was awarded as reward for the reward. */ - amount_reward?: IAmount; + readonly amount_reward?: IAmount; } export interface IRequestResponseUpdate { /** * The id of the created item */ - Id?: BunqId; + readonly Id?: BunqId; } export interface IRequestResponseRead { /** * The id of the Request Response. */ - id?: number; + readonly id?: number; /** * The timestamp when the Request Response was created. */ - created?: string; + readonly created?: string; /** * The timestamp when the Request Response was last updated (will be updated when chat messages are received). */ - updated?: string; + readonly updated?: string; /** * The timestamp of when the RequestResponse was responded to. */ - time_responded?: string; + readonly time_responded?: string; /** * The timestamp of when the RequestResponse expired or will expire. */ - time_expiry?: string; + readonly time_expiry?: string; /** * The timestamp of when a refund request for the RequestResponse was claimed. */ - time_refund_requested?: string; + readonly time_refund_requested?: string; /** * The timestamp of when the RequestResponse was refunded. */ - time_refunded?: string; + readonly time_refunded?: string; /** * The label of the user that requested the refund. */ - user_refund_requested?: ILabelUser; + readonly user_refund_requested?: ILabelUser; /** * The id of the MonetaryAccount the RequestResponse was received on. */ - monetary_account_id?: number; + readonly monetary_account_id?: number; /** * The requested Amount. */ - amount_inquired?: IAmount; + readonly amount_inquired?: IAmount; /** * The Amount the RequestResponse was accepted with. */ - amount_responded?: IAmount; + readonly amount_responded?: IAmount; /** * The status of the RequestResponse. Can be ACCEPTED, PENDING, REJECTED, REFUND_REQUESTED, REFUNDED or REVOKED. */ - status?: string; + readonly status?: string; /** * The description for the RequestResponse provided by the requesting party. Maximum 9000 characters. */ - description?: string; + readonly description?: string; /** * The LabelMonetaryAccount with the public information of the MonetaryAccount this RequestResponse was received on. */ - alias?: ILabelMonetaryAccount; + readonly alias?: ILabelMonetaryAccount; /** * The LabelMonetaryAccount with the public information of the MonetaryAccount that is requesting money with this RequestResponse. */ - counterparty_alias?: ILabelMonetaryAccount; + readonly counterparty_alias?: ILabelMonetaryAccount; /** * The Attachments attached to the RequestResponse. */ - attachment?: Array; + readonly attachment?: Array; /** * The minimum age the user accepting the RequestResponse must have. */ - minimum_age?: number; + readonly minimum_age?: number; /** * Whether or not an address must be provided on accept. */ - require_address?: string; + readonly require_address?: string; /** * The Geolocation where the RequestResponse was created. */ - geolocation?: IGeolocation; + readonly geolocation?: IGeolocation; /** * The type of the RequestInquiry. Can be DIRECT_DEBIT, DIRECT_DEBIT_B2B, IDEAL, SOFORT or INTERNAL. */ - type?: string; + readonly type?: string; /** * The subtype of the RequestInquiry. Can be ONCE or RECURRING for DIRECT_DEBIT RequestInquiries and NONE for all other. */ - sub_type?: string; + readonly sub_type?: string; /** * The URL which the user is sent to after accepting or rejecting the Request. */ - redirect_url?: string; + readonly redirect_url?: string; /** * The billing address provided by the accepting user if an address was requested. */ - address_billing?: IAddress; + readonly address_billing?: IAddress; /** * The shipping address provided by the accepting user if an address was requested. */ - address_shipping?: IAddress; + readonly address_shipping?: IAddress; /** * Whether or not chat messages are allowed. */ - allow_chat?: boolean; + readonly allow_chat?: boolean; /** * The credit scheme id provided by the counterparty for DIRECT_DEBIT inquiries. */ - credit_scheme_identifier?: string; + readonly credit_scheme_identifier?: string; /** * The mandate id provided by the counterparty for DIRECT_DEBIT inquiries. */ - mandate_identifier?: string; + readonly mandate_identifier?: string; /** * The whitelist id for this action or null. */ - eligible_whitelist_id?: number; + readonly eligible_whitelist_id?: number; /** * The reference to the object used for split the bill. Can be RequestInquiry or RequestInquiryBatch */ - request_reference_split_the_bill?: Array; + readonly request_reference_split_the_bill?: Array; } export interface IRequestResponseListing { /** * The id of the Request Response. */ - id?: number; + readonly id?: number; /** * The timestamp when the Request Response was created. */ - created?: string; + readonly created?: string; /** * The timestamp when the Request Response was last updated (will be updated when chat messages are received). */ - updated?: string; + readonly updated?: string; /** * The timestamp of when the RequestResponse was responded to. */ - time_responded?: string; + readonly time_responded?: string; /** * The timestamp of when the RequestResponse expired or will expire. */ - time_expiry?: string; + readonly time_expiry?: string; /** * The timestamp of when a refund request for the RequestResponse was claimed. */ - time_refund_requested?: string; + readonly time_refund_requested?: string; /** * The timestamp of when the RequestResponse was refunded. */ - time_refunded?: string; + readonly time_refunded?: string; /** * The label of the user that requested the refund. */ - user_refund_requested?: ILabelUser; + readonly user_refund_requested?: ILabelUser; /** * The id of the MonetaryAccount the RequestResponse was received on. */ - monetary_account_id?: number; + readonly monetary_account_id?: number; /** * The requested Amount. */ - amount_inquired?: IAmount; + readonly amount_inquired?: IAmount; /** * The Amount the RequestResponse was accepted with. */ - amount_responded?: IAmount; + readonly amount_responded?: IAmount; /** * The status of the RequestResponse. Can be ACCEPTED, PENDING, REJECTED, REFUND_REQUESTED, REFUNDED or REVOKED. */ - status?: string; + readonly status?: string; /** * The description for the RequestResponse provided by the requesting party. Maximum 9000 characters. */ - description?: string; + readonly description?: string; /** * The LabelMonetaryAccount with the public information of the MonetaryAccount this RequestResponse was received on. */ - alias?: ILabelMonetaryAccount; + readonly alias?: ILabelMonetaryAccount; /** * The LabelMonetaryAccount with the public information of the MonetaryAccount that is requesting money with this RequestResponse. */ - counterparty_alias?: ILabelMonetaryAccount; + readonly counterparty_alias?: ILabelMonetaryAccount; /** * The Attachments attached to the RequestResponse. */ - attachment?: Array; + readonly attachment?: Array; /** * The minimum age the user accepting the RequestResponse must have. */ - minimum_age?: number; + readonly minimum_age?: number; /** * Whether or not an address must be provided on accept. */ - require_address?: string; + readonly require_address?: string; /** * The Geolocation where the RequestResponse was created. */ - geolocation?: IGeolocation; + readonly geolocation?: IGeolocation; /** * The type of the RequestInquiry. Can be DIRECT_DEBIT, DIRECT_DEBIT_B2B, IDEAL, SOFORT or INTERNAL. */ - type?: string; + readonly type?: string; /** * The subtype of the RequestInquiry. Can be ONCE or RECURRING for DIRECT_DEBIT RequestInquiries and NONE for all other. */ - sub_type?: string; + readonly sub_type?: string; /** * The URL which the user is sent to after accepting or rejecting the Request. */ - redirect_url?: string; + readonly redirect_url?: string; /** * The billing address provided by the accepting user if an address was requested. */ - address_billing?: IAddress; + readonly address_billing?: IAddress; /** * The shipping address provided by the accepting user if an address was requested. */ - address_shipping?: IAddress; + readonly address_shipping?: IAddress; /** * Whether or not chat messages are allowed. */ - allow_chat?: boolean; + readonly allow_chat?: boolean; /** * The credit scheme id provided by the counterparty for DIRECT_DEBIT inquiries. */ - credit_scheme_identifier?: string; + readonly credit_scheme_identifier?: string; /** * The mandate id provided by the counterparty for DIRECT_DEBIT inquiries. */ - mandate_identifier?: string; + readonly mandate_identifier?: string; /** * The whitelist id for this action or null. */ - eligible_whitelist_id?: number; + readonly eligible_whitelist_id?: number; /** * The reference to the object used for split the bill. Can be RequestInquiry or RequestInquiryBatch */ - request_reference_split_the_bill?: Array; + readonly request_reference_split_the_bill?: Array; } export interface IRequestResponse { @@ -3711,517 +3713,517 @@ export interface IRequestResponse { /** * The id of the Request Response. */ - id?: number; + readonly id?: number; /** * The timestamp when the Request Response was created. */ - created?: string; + readonly created?: string; /** * The timestamp when the Request Response was last updated (will be updated when chat messages are received). */ - updated?: string; + readonly updated?: string; /** * The timestamp of when the RequestResponse was responded to. */ - time_responded?: string; + readonly time_responded?: string; /** * The timestamp of when the RequestResponse expired or will expire. */ - time_expiry?: string; + readonly time_expiry?: string; /** * The timestamp of when a refund request for the RequestResponse was claimed. */ - time_refund_requested?: string; + readonly time_refund_requested?: string; /** * The timestamp of when the RequestResponse was refunded. */ - time_refunded?: string; + readonly time_refunded?: string; /** * The label of the user that requested the refund. */ - user_refund_requested?: ILabelUser; + readonly user_refund_requested?: ILabelUser; /** * The id of the MonetaryAccount the RequestResponse was received on. */ - monetary_account_id?: number; + readonly monetary_account_id?: number; /** * The requested Amount. */ - amount_inquired?: IAmount; + readonly amount_inquired?: IAmount; /** * The description for the RequestResponse provided by the requesting party. Maximum 9000 characters. */ - description?: string; + readonly description?: string; /** * The LabelMonetaryAccount with the public information of the MonetaryAccount this RequestResponse was received on. */ - alias?: ILabelMonetaryAccount; + readonly alias?: ILabelMonetaryAccount; /** * The LabelMonetaryAccount with the public information of the MonetaryAccount that is requesting money with this RequestResponse. */ - counterparty_alias?: ILabelMonetaryAccount; + readonly counterparty_alias?: ILabelMonetaryAccount; /** * The Attachments attached to the RequestResponse. */ - attachment?: Array; + readonly attachment?: Array; /** * The minimum age the user accepting the RequestResponse must have. */ - minimum_age?: number; + readonly minimum_age?: number; /** * Whether or not an address must be provided on accept. */ - require_address?: string; + readonly require_address?: string; /** * The Geolocation where the RequestResponse was created. */ - geolocation?: IGeolocation; + readonly geolocation?: IGeolocation; /** * The type of the RequestInquiry. Can be DIRECT_DEBIT, DIRECT_DEBIT_B2B, IDEAL, SOFORT or INTERNAL. */ - type?: string; + readonly type?: string; /** * The subtype of the RequestInquiry. Can be ONCE or RECURRING for DIRECT_DEBIT RequestInquiries and NONE for all other. */ - sub_type?: string; + readonly sub_type?: string; /** * The URL which the user is sent to after accepting or rejecting the Request. */ - redirect_url?: string; + readonly redirect_url?: string; /** * Whether or not chat messages are allowed. */ - allow_chat?: boolean; + readonly allow_chat?: boolean; /** * The credit scheme id provided by the counterparty for DIRECT_DEBIT inquiries. */ - credit_scheme_identifier?: string; + readonly credit_scheme_identifier?: string; /** * The mandate id provided by the counterparty for DIRECT_DEBIT inquiries. */ - mandate_identifier?: string; + readonly mandate_identifier?: string; /** * The whitelist id for this action or null. */ - eligible_whitelist_id?: number; + readonly eligible_whitelist_id?: number; /** * The reference to the object used for split the bill. Can be RequestInquiry or RequestInquiryBatch */ - request_reference_split_the_bill?: Array; + readonly request_reference_split_the_bill?: Array; } export interface IRequestReferenceSplitTheBillAnchorObject { /** * */ - BillingInvoice?: IInvoice; + readonly BillingInvoice?: IInvoice; /** * */ - DraftPayment?: IDraftPayment; + readonly DraftPayment?: IDraftPayment; /** * */ - MasterCardAction?: IMasterCardAction; + readonly MasterCardAction?: IMasterCardAction; /** * */ - Payment?: IPayment; + readonly Payment?: IPayment; /** * */ - PaymentBatch?: IPaymentBatch; + readonly PaymentBatch?: IPaymentBatch; /** * */ - RequestResponse?: IRequestResponse; + readonly RequestResponse?: IRequestResponse; /** * */ - ScheduleInstance?: IScheduleInstance; + readonly ScheduleInstance?: IScheduleInstance; /** * */ - TabResultResponse?: ITabResultResponse; + readonly TabResultResponse?: ITabResultResponse; /** * */ - WhitelistResult?: IWhitelistResult; + readonly WhitelistResult?: IWhitelistResult; /** * */ - TransferwisePayment?: ITransferwiseTransfer; + readonly TransferwisePayment?: ITransferwiseTransfer; } export interface IRequestInquiryUpdate { /** * The id of the payment request. */ - id?: number; + readonly id?: number; /** * The timestamp of the payment request's creation. */ - created?: string; + readonly created?: string; /** * The timestamp of the payment request's last update. */ - updated?: string; + readonly updated?: string; /** * The timestamp of when the payment request was responded to. */ - time_responded?: string; + readonly time_responded?: string; /** * The timestamp of when the payment request expired. */ - time_expiry?: string; + readonly time_expiry?: string; /** * The id of the monetary account the request response applies to. */ - monetary_account_id?: number; + readonly monetary_account_id?: number; /** * The requested amount. */ - amount_inquired?: IAmount; + readonly amount_inquired?: IAmount; /** * The responded amount. */ - amount_responded?: IAmount; + readonly amount_responded?: IAmount; /** * The label that's displayed to the counterparty with the mutation. Includes user. */ - user_alias_created?: ILabelUser; + readonly user_alias_created?: ILabelUser; /** * The label that's displayed to the counterparty with the mutation. Includes user. */ - user_alias_revoked?: ILabelUser; + readonly user_alias_revoked?: ILabelUser; /** * The LabelMonetaryAccount with the public information of the MonetaryAccount the money was requested from. */ - counterparty_alias?: ILabelMonetaryAccount; + readonly counterparty_alias?: ILabelMonetaryAccount; /** * The description of the inquiry. */ - description?: string; + readonly description?: string; /** * The client's custom reference that was attached to the request and the mutation. */ - merchant_reference?: string; + readonly merchant_reference?: string; /** * The attachments attached to the payment. */ - attachment?: Array; + readonly attachment?: Array; /** * The status of the request. */ - status?: string; + readonly status?: string; /** * The id of the batch if the request was part of a batch. */ - batch_id?: number; + readonly batch_id?: number; /** * The id of the scheduled job if the request was scheduled. */ - scheduled_id?: number; + readonly scheduled_id?: number; /** * The minimum age the user accepting the RequestInquiry must have. */ - minimum_age?: number; + readonly minimum_age?: number; /** * Whether or not an address must be provided on accept. */ - require_address?: string; + readonly require_address?: string; /** * The shipping address provided by the accepting user if an address was requested. */ - address_shipping?: IAddress; + readonly address_shipping?: IAddress; /** * The billing address provided by the accepting user if an address was requested. */ - address_billing?: IAddress; + readonly address_billing?: IAddress; /** * The geolocation where the payment was done. */ - geolocation?: IGeolocation; + readonly geolocation?: IGeolocation; /** * The reference to the object used for split the bill. Can be Payment, PaymentBatch, ScheduleInstance, RequestResponse and MasterCardAction */ - reference_split_the_bill?: IRequestReferenceSplitTheBillAnchorObject; + readonly reference_split_the_bill?: IRequestReferenceSplitTheBillAnchorObject; } export interface IRequestInquiryReference { /** * The type of request inquiry. Can be RequestInquiry or RequestInquiryBatch. */ - type?: string; + readonly type?: string; /** * The id of the request inquiry (batch). */ - id?: number; + readonly id?: number; } export interface IRequestInquiryRead { /** * The id of the created RequestInquiry. */ - id?: number; + readonly id?: number; /** * The timestamp of the payment request's creation. */ - created?: string; + readonly created?: string; /** * The timestamp of the payment request's last update. */ - updated?: string; + readonly updated?: string; /** * The timestamp of when the payment request was responded to. */ - time_responded?: string; + readonly time_responded?: string; /** * The timestamp of when the payment request expired. */ - time_expiry?: string; + readonly time_expiry?: string; /** * The id of the monetary account the request response applies to. */ - monetary_account_id?: number; + readonly monetary_account_id?: number; /** * The requested amount. */ - amount_inquired?: IAmount; + readonly amount_inquired?: IAmount; /** * The responded amount. */ - amount_responded?: IAmount; + readonly amount_responded?: IAmount; /** * The label that's displayed to the counterparty with the mutation. Includes user. */ - user_alias_created?: ILabelUser; + readonly user_alias_created?: ILabelUser; /** * The label that's displayed to the counterparty with the mutation. Includes user. */ - user_alias_revoked?: ILabelUser; + readonly user_alias_revoked?: ILabelUser; /** * The LabelMonetaryAccount with the public information of the MonetaryAccount the money was requested from. */ - counterparty_alias?: ILabelMonetaryAccount; + readonly counterparty_alias?: ILabelMonetaryAccount; /** * The description of the inquiry. */ - description?: string; + readonly description?: string; /** * The client's custom reference that was attached to the request and the mutation. */ - merchant_reference?: string; + readonly merchant_reference?: string; /** * The attachments attached to the payment. */ - attachment?: Array; + readonly attachment?: Array; /** * The status of the request. */ - status?: string; + readonly status?: string; /** * The id of the batch if the request was part of a batch. */ - batch_id?: number; + readonly batch_id?: number; /** * The id of the scheduled job if the request was scheduled. */ - scheduled_id?: number; + readonly scheduled_id?: number; /** * The minimum age the user accepting the RequestInquiry must have. */ - minimum_age?: number; + readonly minimum_age?: number; /** * Whether or not an address must be provided on accept. */ - require_address?: string; + readonly require_address?: string; /** * The url that points to the bunq.me request. */ - bunqme_share_url?: string; + readonly bunqme_share_url?: string; /** * The URL which the user is sent to after accepting or rejecting the Request. */ - redirect_url?: string; + readonly redirect_url?: string; /** * The shipping address provided by the accepting user if an address was requested. */ - address_shipping?: IAddress; + readonly address_shipping?: IAddress; /** * The billing address provided by the accepting user if an address was requested. */ - address_billing?: IAddress; + readonly address_billing?: IAddress; /** * The geolocation where the payment was done. */ - geolocation?: IGeolocation; + readonly geolocation?: IGeolocation; /** * Whether or not chat messages are allowed. */ - allow_chat?: boolean; + readonly allow_chat?: boolean; /** * The reference to the object used for split the bill. Can be Payment, PaymentBatch, ScheduleInstance, RequestResponse and MasterCardAction */ - reference_split_the_bill?: IRequestReferenceSplitTheBillAnchorObject; + readonly reference_split_the_bill?: IRequestReferenceSplitTheBillAnchorObject; } export interface IRequestInquiryListing { /** * The id of the created RequestInquiry. */ - id?: number; + readonly id?: number; /** * The timestamp of the payment request's creation. */ - created?: string; + readonly created?: string; /** * The timestamp of the payment request's last update. */ - updated?: string; + readonly updated?: string; /** * The timestamp of when the payment request was responded to. */ - time_responded?: string; + readonly time_responded?: string; /** * The timestamp of when the payment request expired. */ - time_expiry?: string; + readonly time_expiry?: string; /** * The id of the monetary account the request response applies to. */ - monetary_account_id?: number; + readonly monetary_account_id?: number; /** * The requested amount. */ - amount_inquired?: IAmount; + readonly amount_inquired?: IAmount; /** * The responded amount. */ - amount_responded?: IAmount; + readonly amount_responded?: IAmount; /** * The label that's displayed to the counterparty with the mutation. Includes user. */ - user_alias_created?: ILabelUser; + readonly user_alias_created?: ILabelUser; /** * The label that's displayed to the counterparty with the mutation. Includes user. */ - user_alias_revoked?: ILabelUser; + readonly user_alias_revoked?: ILabelUser; /** * The LabelMonetaryAccount with the public information of the MonetaryAccount the money was requested from. */ - counterparty_alias?: ILabelMonetaryAccount; + readonly counterparty_alias?: ILabelMonetaryAccount; /** * The description of the inquiry. */ - description?: string; + readonly description?: string; /** * The client's custom reference that was attached to the request and the mutation. */ - merchant_reference?: string; + readonly merchant_reference?: string; /** * The attachments attached to the payment. */ - attachment?: Array; + readonly attachment?: Array; /** * The status of the request. */ - status?: string; + readonly status?: string; /** * The id of the batch if the request was part of a batch. */ - batch_id?: number; + readonly batch_id?: number; /** * The id of the scheduled job if the request was scheduled. */ - scheduled_id?: number; + readonly scheduled_id?: number; /** * The minimum age the user accepting the RequestInquiry must have. */ - minimum_age?: number; + readonly minimum_age?: number; /** * Whether or not an address must be provided on accept. */ - require_address?: string; + readonly require_address?: string; /** * The url that points to the bunq.me request. */ - bunqme_share_url?: string; + readonly bunqme_share_url?: string; /** * The URL which the user is sent to after accepting or rejecting the Request. */ - redirect_url?: string; + readonly redirect_url?: string; /** * The shipping address provided by the accepting user if an address was requested. */ - address_shipping?: IAddress; + readonly address_shipping?: IAddress; /** * The billing address provided by the accepting user if an address was requested. */ - address_billing?: IAddress; + readonly address_billing?: IAddress; /** * The geolocation where the payment was done. */ - geolocation?: IGeolocation; + readonly geolocation?: IGeolocation; /** * Whether or not chat messages are allowed. */ - allow_chat?: boolean; + readonly allow_chat?: boolean; /** * The reference to the object used for split the bill. Can be Payment, PaymentBatch, ScheduleInstance, RequestResponse and MasterCardAction */ - reference_split_the_bill?: IRequestReferenceSplitTheBillAnchorObject; + readonly reference_split_the_bill?: IRequestReferenceSplitTheBillAnchorObject; } export interface IRequestInquiryCreate { /** * The id of the created RequestInquiry. */ - id?: number; + readonly id?: number; } export interface IRequestInquiryBatchUpdate { /** * The id of the created item */ - Id?: BunqId; + readonly Id?: BunqId; } export interface IRequestInquiryBatchRead { /** * The list of requests that were made. */ - request_inquiries?: Array; + readonly request_inquiries?: Array; /** * The total amount originally inquired for this batch. */ - total_amount_inquired?: IAmount; + readonly total_amount_inquired?: IAmount; /** * The reference to the object used for split the bill. Can be Payment, PaymentBatch, ScheduleInstance, RequestResponse and MasterCardAction */ - reference_split_the_bill?: IRequestReferenceSplitTheBillAnchorObject; + readonly reference_split_the_bill?: IRequestReferenceSplitTheBillAnchorObject; } export interface IRequestInquiryBatchListing { /** * The list of requests that were made. */ - request_inquiries?: Array; + readonly request_inquiries?: Array; /** * The total amount originally inquired for this batch. */ - total_amount_inquired?: IAmount; + readonly total_amount_inquired?: IAmount; /** * The reference to the object used for split the bill. Can be Payment, PaymentBatch, ScheduleInstance, RequestResponse and MasterCardAction */ - reference_split_the_bill?: IRequestReferenceSplitTheBillAnchorObject; + readonly reference_split_the_bill?: IRequestReferenceSplitTheBillAnchorObject; } export interface IRequestInquiryBatchCreate { /** * The id of the created item */ - Id?: BunqId; + readonly Id?: BunqId; } export interface IRequestInquiryBatch { @@ -4244,7 +4246,7 @@ export interface IRequestInquiryBatch { /** * The reference to the object used for split the bill. Can be Payment, PaymentBatch, ScheduleInstance, RequestResponse and MasterCardAction */ - reference_split_the_bill?: IRequestReferenceSplitTheBillAnchorObject; + readonly reference_split_the_bill?: IRequestReferenceSplitTheBillAnchorObject; } export interface IRequestInquiry { @@ -4307,71 +4309,71 @@ export interface IRequestInquiry { /** * The id of the created RequestInquiry. */ - id?: number; + readonly id?: number; /** * The timestamp of the payment request's creation. */ - created?: string; + readonly created?: string; /** * The timestamp of the payment request's last update. */ - updated?: string; + readonly updated?: string; /** * The timestamp of when the payment request was responded to. */ - time_responded?: string; + readonly time_responded?: string; /** * The timestamp of when the payment request expired. */ - time_expiry?: string; + readonly time_expiry?: string; /** * The id of the monetary account the request response applies to. */ - monetary_account_id?: number; + readonly monetary_account_id?: number; /** * The responded amount. */ - amount_responded?: IAmount; + readonly amount_responded?: IAmount; /** * The label that's displayed to the counterparty with the mutation. Includes user. */ - user_alias_created?: ILabelUser; + readonly user_alias_created?: ILabelUser; /** * The label that's displayed to the counterparty with the mutation. Includes user. */ - user_alias_revoked?: ILabelUser; + readonly user_alias_revoked?: ILabelUser; /** * The id of the batch if the request was part of a batch. */ - batch_id?: number; + readonly batch_id?: number; /** * The id of the scheduled job if the request was scheduled. */ - scheduled_id?: number; + readonly scheduled_id?: number; /** * The url that points to the bunq.me request. */ - bunqme_share_url?: string; + readonly bunqme_share_url?: string; /** * The shipping address provided by the accepting user if an address was requested. */ - address_shipping?: IAddress; + readonly address_shipping?: IAddress; /** * The billing address provided by the accepting user if an address was requested. */ - address_billing?: IAddress; + readonly address_billing?: IAddress; /** * The geolocation where the payment was done. */ - geolocation?: IGeolocation; + readonly geolocation?: IGeolocation; /** * Whether or not chat messages are allowed. */ - allow_chat?: boolean; + readonly allow_chat?: boolean; /** * The reference to the object used for split the bill. Can be Payment, PaymentBatch, ScheduleInstance, RequestResponse and MasterCardAction */ - reference_split_the_bill?: IRequestReferenceSplitTheBillAnchorObject; + readonly reference_split_the_bill?: IRequestReferenceSplitTheBillAnchorObject; } export interface IPointer { @@ -4393,36 +4395,36 @@ export interface IPermittedIpUpdate { /** * The id of the created item */ - Id?: BunqId; + readonly Id?: BunqId; } export interface IPermittedIpRead { /** * The IP address. */ - ip?: string; + readonly ip?: string; /** * 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. */ - status?: string; + readonly status?: string; } export interface IPermittedIpListing { /** * The IP address. */ - ip?: string; + readonly ip?: string; /** * 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. */ - status?: string; + readonly status?: string; } export interface IPermittedIpCreate { /** * The id of the created item */ - Id?: BunqId; + readonly Id?: BunqId; } export interface IPermittedIp { @@ -4440,49 +4442,49 @@ export interface IPermittedDevice { /** * The description of the device that may use the credential. */ - description?: string; + readonly description?: string; /** * The IP address of the device that may use the credential. */ - ip?: string; + readonly ip?: string; } export interface IPaymentServiceProviderCredentialRead { /** * The id of the credential. */ - id?: number; + readonly id?: number; /** * The timestamp of the credential object's creation. */ - created?: string; + readonly created?: string; /** * The timestamp of the credential object's last update. */ - updated?: string; + readonly updated?: string; /** * The status of the credential. */ - status?: string; + readonly status?: string; /** * When the status is PENDING_FIRST_USE: when the credential expires. */ - expiry_time?: string; + readonly expiry_time?: string; /** * When the status is PENDING_FIRST_USE: the value of the token. */ - token_value?: string; + readonly token_value?: string; /** * When the status is ACTIVE: the details of the device that may use the credential. */ - permitted_device?: IPermittedDevice; + readonly permitted_device?: IPermittedDevice; } export interface IPaymentServiceProviderCredentialCreate { /** * The id of the created item */ - Id?: BunqId; + readonly Id?: BunqId; } export interface IPaymentServiceProviderCredential { @@ -4504,241 +4506,241 @@ export interface IPaymentRead { /** * The id of the created Payment. */ - id?: number; + readonly id?: number; /** * The timestamp when the Payment was done. */ - created?: string; + readonly created?: string; /** * The timestamp when the Payment was last updated (will be updated when chat messages are received). */ - updated?: string; + readonly updated?: string; /** * The id of the MonetaryAccount the Payment was made to or from (depending on whether this is an incoming or outgoing Payment). */ - monetary_account_id?: number; + readonly monetary_account_id?: number; /** * 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). */ - amount?: IAmount; + readonly amount?: IAmount; /** * The LabelMonetaryAccount containing the public information of 'this' (party) side of the Payment. */ - alias?: ILabelMonetaryAccount; + readonly alias?: ILabelMonetaryAccount; /** * The LabelMonetaryAccount containing the public information of the other (counterparty) side of the Payment. */ - counterparty_alias?: ILabelMonetaryAccount; + readonly counterparty_alias?: ILabelMonetaryAccount; /** * The description for the Payment. Maximum 140 characters for Payments to external IBANs, 9000 characters for Payments to only other bunq MonetaryAccounts. */ - description?: string; + readonly description?: string; /** * The type of Payment, can be BUNQ, EBA_SCT, EBA_SDD, IDEAL, SWIFT or FIS (card). */ - type?: string; + readonly type?: string; /** * The sub-type of the Payment, can be PAYMENT, WITHDRAWAL, REVERSAL, REQUEST, BILLING, SCT, SDD or NLO. */ - sub_type?: string; + readonly sub_type?: string; /** * The status of the bunq.to payment. */ - bunqto_status?: string; + readonly bunqto_status?: string; /** * The sub status of the bunq.to payment. */ - bunqto_sub_status?: string; + readonly bunqto_sub_status?: string; /** * The status of the bunq.to payment. */ - bunqto_share_url?: string; + readonly bunqto_share_url?: string; /** * When bunq.to payment is about to expire. */ - bunqto_expiry?: string; + readonly bunqto_expiry?: string; /** * The timestamp of when the bunq.to payment was responded to. */ - bunqto_time_responded?: string; + readonly bunqto_time_responded?: string; /** * The Attachments attached to the Payment. */ - attachment?: Array; + readonly attachment?: Array; /** * Optional data included with the Payment specific to the merchant. */ - merchant_reference?: string; + readonly merchant_reference?: string; /** * The id of the PaymentBatch if this Payment was part of one. */ - batch_id?: number; + readonly batch_id?: number; /** * The id of the JobScheduled if the Payment was scheduled. */ - scheduled_id?: number; + readonly scheduled_id?: number; /** * A shipping Address provided with the Payment, currently unused. */ - address_shipping?: IAddress; + readonly address_shipping?: IAddress; /** * A billing Address provided with the Payment, currently unused. */ - address_billing?: IAddress; + readonly address_billing?: IAddress; /** * The Geolocation where the Payment was done from. */ - geolocation?: IGeolocation; + readonly geolocation?: IGeolocation; /** * Whether or not chat messages are allowed. */ - allow_chat?: boolean; + readonly allow_chat?: boolean; /** * The reference to the object used for split the bill. Can be RequestInquiry or RequestInquiryBatch */ - request_reference_split_the_bill?: Array; + readonly request_reference_split_the_bill?: Array; /** * The new balance of the monetary account after the mutation. */ - balance_after_mutation?: IAmount; + readonly balance_after_mutation?: IAmount; } export interface IPaymentListing { /** * The id of the created Payment. */ - id?: number; + readonly id?: number; /** * The timestamp when the Payment was done. */ - created?: string; + readonly created?: string; /** * The timestamp when the Payment was last updated (will be updated when chat messages are received). */ - updated?: string; + readonly updated?: string; /** * The id of the MonetaryAccount the Payment was made to or from (depending on whether this is an incoming or outgoing Payment). */ - monetary_account_id?: number; + readonly monetary_account_id?: number; /** * 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). */ - amount?: IAmount; + readonly amount?: IAmount; /** * The LabelMonetaryAccount containing the public information of 'this' (party) side of the Payment. */ - alias?: ILabelMonetaryAccount; + readonly alias?: ILabelMonetaryAccount; /** * The LabelMonetaryAccount containing the public information of the other (counterparty) side of the Payment. */ - counterparty_alias?: ILabelMonetaryAccount; + readonly counterparty_alias?: ILabelMonetaryAccount; /** * The description for the Payment. Maximum 140 characters for Payments to external IBANs, 9000 characters for Payments to only other bunq MonetaryAccounts. */ - description?: string; + readonly description?: string; /** * The type of Payment, can be BUNQ, EBA_SCT, EBA_SDD, IDEAL, SWIFT or FIS (card). */ - type?: string; + readonly type?: string; /** * The sub-type of the Payment, can be PAYMENT, WITHDRAWAL, REVERSAL, REQUEST, BILLING, SCT, SDD or NLO. */ - sub_type?: string; + readonly sub_type?: string; /** * The status of the bunq.to payment. */ - bunqto_status?: string; + readonly bunqto_status?: string; /** * The sub status of the bunq.to payment. */ - bunqto_sub_status?: string; + readonly bunqto_sub_status?: string; /** * The status of the bunq.to payment. */ - bunqto_share_url?: string; + readonly bunqto_share_url?: string; /** * When bunq.to payment is about to expire. */ - bunqto_expiry?: string; + readonly bunqto_expiry?: string; /** * The timestamp of when the bunq.to payment was responded to. */ - bunqto_time_responded?: string; + readonly bunqto_time_responded?: string; /** * The Attachments attached to the Payment. */ - attachment?: Array; + readonly attachment?: Array; /** * Optional data included with the Payment specific to the merchant. */ - merchant_reference?: string; + readonly merchant_reference?: string; /** * The id of the PaymentBatch if this Payment was part of one. */ - batch_id?: number; + readonly batch_id?: number; /** * The id of the JobScheduled if the Payment was scheduled. */ - scheduled_id?: number; + readonly scheduled_id?: number; /** * A shipping Address provided with the Payment, currently unused. */ - address_shipping?: IAddress; + readonly address_shipping?: IAddress; /** * A billing Address provided with the Payment, currently unused. */ - address_billing?: IAddress; + readonly address_billing?: IAddress; /** * The Geolocation where the Payment was done from. */ - geolocation?: IGeolocation; + readonly geolocation?: IGeolocation; /** * Whether or not chat messages are allowed. */ - allow_chat?: boolean; + readonly allow_chat?: boolean; /** * The reference to the object used for split the bill. Can be RequestInquiry or RequestInquiryBatch */ - request_reference_split_the_bill?: Array; + readonly request_reference_split_the_bill?: Array; /** * The new balance of the monetary account after the mutation. */ - balance_after_mutation?: IAmount; + readonly balance_after_mutation?: IAmount; } export interface IPaymentCreate { /** * The id of the created Payment. */ - id?: number; + readonly id?: number; } export interface IPaymentBatchUpdate { /** * The id of the created item */ - Id?: BunqId; + readonly Id?: BunqId; } export interface IPaymentBatchRead { /** * The list of mutations that were made. */ - payments?: Array; + readonly payments?: Array; } export interface IPaymentBatchListing { /** * The list of mutations that were made. */ - payments?: Array; + readonly payments?: Array; } export interface IPaymentBatchCreate { /** * The id of the created item */ - Id?: BunqId; + readonly Id?: BunqId; } export interface IPaymentBatch { @@ -4776,143 +4778,143 @@ export interface IPayment { /** * The id of the created Payment. */ - id?: number; + readonly id?: number; /** * The timestamp when the Payment was done. */ - created?: string; + readonly created?: string; /** * The timestamp when the Payment was last updated (will be updated when chat messages are received). */ - updated?: string; + readonly updated?: string; /** * The id of the MonetaryAccount the Payment was made to or from (depending on whether this is an incoming or outgoing Payment). */ - monetary_account_id?: number; + readonly monetary_account_id?: number; /** * The LabelMonetaryAccount containing the public information of 'this' (party) side of the Payment. */ - alias?: ILabelMonetaryAccount; + readonly alias?: ILabelMonetaryAccount; /** * The type of Payment, can be BUNQ, EBA_SCT, EBA_SDD, IDEAL, SWIFT or FIS (card). */ - type?: string; + readonly type?: string; /** * The sub-type of the Payment, can be PAYMENT, WITHDRAWAL, REVERSAL, REQUEST, BILLING, SCT, SDD or NLO. */ - sub_type?: string; + readonly sub_type?: string; /** * The status of the bunq.to payment. */ - bunqto_status?: string; + readonly bunqto_status?: string; /** * The sub status of the bunq.to payment. */ - bunqto_sub_status?: string; + readonly bunqto_sub_status?: string; /** * The status of the bunq.to payment. */ - bunqto_share_url?: string; + readonly bunqto_share_url?: string; /** * When bunq.to payment is about to expire. */ - bunqto_expiry?: string; + readonly bunqto_expiry?: string; /** * The timestamp of when the bunq.to payment was responded to. */ - bunqto_time_responded?: string; + readonly bunqto_time_responded?: string; /** * The id of the PaymentBatch if this Payment was part of one. */ - batch_id?: number; + readonly batch_id?: number; /** * The id of the JobScheduled if the Payment was scheduled. */ - scheduled_id?: number; + readonly scheduled_id?: number; /** * A shipping Address provided with the Payment, currently unused. */ - address_shipping?: IAddress; + readonly address_shipping?: IAddress; /** * A billing Address provided with the Payment, currently unused. */ - address_billing?: IAddress; + readonly address_billing?: IAddress; /** * The Geolocation where the Payment was done from. */ - geolocation?: IGeolocation; + readonly geolocation?: IGeolocation; /** * Whether or not chat messages are allowed. */ - allow_chat?: boolean; + readonly allow_chat?: boolean; /** * The reference to the object used for split the bill. Can be RequestInquiry or RequestInquiryBatch */ - request_reference_split_the_bill?: Array; + readonly request_reference_split_the_bill?: Array; /** * The new balance of the monetary account after the mutation. */ - balance_after_mutation?: IAmount; + readonly balance_after_mutation?: IAmount; } export interface IOauthClientUpdate { /** * The id of the created item */ - Id?: BunqId; + readonly Id?: BunqId; } export interface IOauthClientRead { /** * Id of the client. */ - id?: number; + readonly id?: number; /** * The status of the pack group, can be ACTIVE, CANCELLED or CANCELLED_PENDING. */ - status?: string; + readonly status?: string; /** * The Client ID associated with this Oauth Client */ - client_id?: string; + readonly client_id?: string; /** * Secret associated with this Oauth Client */ - secret?: string; + readonly secret?: string; /** * The callback URLs which are bound to this Oauth Client */ - callback_url?: Array; + readonly callback_url?: Array; } export interface IOauthClientListing { /** * Id of the client. */ - id?: number; + readonly id?: number; /** * The status of the pack group, can be ACTIVE, CANCELLED or CANCELLED_PENDING. */ - status?: string; + readonly status?: string; /** * The Client ID associated with this Oauth Client */ - client_id?: string; + readonly client_id?: string; /** * Secret associated with this Oauth Client */ - secret?: string; + readonly secret?: string; /** * The callback URLs which are bound to this Oauth Client */ - callback_url?: Array; + readonly callback_url?: Array; } export interface IOauthClientCreate { /** * The id of the created item */ - Id?: BunqId; + readonly Id?: BunqId; } export interface IOauthClient { @@ -4926,21 +4928,21 @@ export interface IOauthCallbackUrlUpdate { /** * The id of the created item */ - Id?: BunqId; + readonly Id?: BunqId; } export interface IOauthCallbackUrlRead { /** * The URL for this callback. */ - url?: string; + readonly url?: string; } export interface IOauthCallbackUrlListing { /** * The URL for this callback. */ - url?: string; + readonly url?: string; } export interface IOauthCallbackUrlDelete {} @@ -4949,7 +4951,7 @@ export interface IOauthCallbackUrlCreate { /** * The id of the created item */ - Id?: BunqId; + readonly Id?: BunqId; } export interface IOauthCallbackUrl { @@ -4963,14 +4965,14 @@ export interface INotificationFilterUrlUserListing { /** * The types of notifications that will result in a url notification for this user. */ - notification_filters?: Array; + readonly notification_filters?: Array; } export interface INotificationFilterUrlUserCreate { /** * The id of the created item */ - Id?: BunqId; + readonly Id?: BunqId; } export interface INotificationFilterUrlUser { @@ -4984,14 +4986,14 @@ export interface INotificationFilterUrlMonetaryAccountListing { /** * The types of notifications that will result in a url notification for this monetary account. */ - notification_filters?: Array; + readonly notification_filters?: Array; } export interface INotificationFilterUrlMonetaryAccountCreate { /** * The id of the created item */ - Id?: BunqId; + readonly Id?: BunqId; } export interface INotificationFilterUrlMonetaryAccount { @@ -5013,29 +5015,29 @@ export interface INotificationFilterUrl { /** * The id of the NotificationFilterUrl. */ - id?: number; + readonly id?: number; /** * The timestamp of the NotificationFilterUrl's creation. */ - created?: string; + readonly created?: string; /** * The timestamp of the NotificationFilterUrl's last update. */ - updated?: string; + readonly updated?: string; } export interface INotificationFilterPushUserListing { /** * The types of notifications that will result in a push notification for this user. */ - notification_filters?: Array; + readonly notification_filters?: Array; } export interface INotificationFilterPushUserCreate { /** * The id of the created item */ - Id?: BunqId; + readonly Id?: BunqId; } export interface INotificationFilterPushUser { @@ -5071,53 +5073,53 @@ export interface INoteTextWhitelistResultUpdate { /** * The id of the created item */ - Id?: BunqId; + readonly Id?: BunqId; } export interface INoteTextWhitelistResultRead { /** * The id of the note. */ - id?: number; + readonly id?: number; /** * The timestamp of the note's creation. */ - created?: string; + readonly created?: string; /** * The timestamp of the note's last update. */ - updated?: string; + readonly updated?: string; /** * The label of the user who created this note. */ - label_user_creator?: ILabelUser; + readonly label_user_creator?: ILabelUser; /** * The content of the note. */ - content?: string; + readonly content?: string; } export interface INoteTextWhitelistResultListing { /** * The id of the note. */ - id?: number; + readonly id?: number; /** * The timestamp of the note's creation. */ - created?: string; + readonly created?: string; /** * The timestamp of the note's last update. */ - updated?: string; + readonly updated?: string; /** * The label of the user who created this note. */ - label_user_creator?: ILabelUser; + readonly label_user_creator?: ILabelUser; /** * The content of the note. */ - content?: string; + readonly content?: string; } export interface INoteTextWhitelistResultDelete {} @@ -5126,7 +5128,7 @@ export interface INoteTextWhitelistResultCreate { /** * The id of the created item */ - Id?: BunqId; + readonly Id?: BunqId; } export interface INoteTextWhitelistResult { @@ -5140,53 +5142,53 @@ export interface INoteTextSofortMerchantTransactionUpdate { /** * The id of the created item */ - Id?: BunqId; + readonly Id?: BunqId; } export interface INoteTextSofortMerchantTransactionRead { /** * The id of the note. */ - id?: number; + readonly id?: number; /** * The timestamp of the note's creation. */ - created?: string; + readonly created?: string; /** * The timestamp of the note's last update. */ - updated?: string; + readonly updated?: string; /** * The label of the user who created this note. */ - label_user_creator?: ILabelUser; + readonly label_user_creator?: ILabelUser; /** * The content of the note. */ - content?: string; + readonly content?: string; } export interface INoteTextSofortMerchantTransactionListing { /** * The id of the note. */ - id?: number; + readonly id?: number; /** * The timestamp of the note's creation. */ - created?: string; + readonly created?: string; /** * The timestamp of the note's last update. */ - updated?: string; + readonly updated?: string; /** * The label of the user who created this note. */ - label_user_creator?: ILabelUser; + readonly label_user_creator?: ILabelUser; /** * The content of the note. */ - content?: string; + readonly content?: string; } export interface INoteTextSofortMerchantTransactionDelete {} @@ -5195,7 +5197,7 @@ export interface INoteTextSofortMerchantTransactionCreate { /** * The id of the created item */ - Id?: BunqId; + readonly Id?: BunqId; } export interface INoteTextSofortMerchantTransaction { @@ -5209,53 +5211,53 @@ export interface INoteTextSchedulePaymentUpdate { /** * The id of the created item */ - Id?: BunqId; + readonly Id?: BunqId; } export interface INoteTextSchedulePaymentRead { /** * The id of the note. */ - id?: number; + readonly id?: number; /** * The timestamp of the note's creation. */ - created?: string; + readonly created?: string; /** * The timestamp of the note's last update. */ - updated?: string; + readonly updated?: string; /** * The label of the user who created this note. */ - label_user_creator?: ILabelUser; + readonly label_user_creator?: ILabelUser; /** * The content of the note. */ - content?: string; + readonly content?: string; } export interface INoteTextSchedulePaymentListing { /** * The id of the note. */ - id?: number; + readonly id?: number; /** * The timestamp of the note's creation. */ - created?: string; + readonly created?: string; /** * The timestamp of the note's last update. */ - updated?: string; + readonly updated?: string; /** * The label of the user who created this note. */ - label_user_creator?: ILabelUser; + readonly label_user_creator?: ILabelUser; /** * The content of the note. */ - content?: string; + readonly content?: string; } export interface INoteTextSchedulePaymentDelete {} @@ -5264,60 +5266,60 @@ export interface INoteTextSchedulePaymentCreate { /** * The id of the created item */ - Id?: BunqId; + readonly Id?: BunqId; } export interface INoteTextSchedulePaymentBatchUpdate { /** * The id of the created item */ - Id?: BunqId; + readonly Id?: BunqId; } export interface INoteTextSchedulePaymentBatchRead { /** * The id of the note. */ - id?: number; + readonly id?: number; /** * The timestamp of the note's creation. */ - created?: string; + readonly created?: string; /** * The timestamp of the note's last update. */ - updated?: string; + readonly updated?: string; /** * The label of the user who created this note. */ - label_user_creator?: ILabelUser; + readonly label_user_creator?: ILabelUser; /** * The content of the note. */ - content?: string; + readonly content?: string; } export interface INoteTextSchedulePaymentBatchListing { /** * The id of the note. */ - id?: number; + readonly id?: number; /** * The timestamp of the note's creation. */ - created?: string; + readonly created?: string; /** * The timestamp of the note's last update. */ - updated?: string; + readonly updated?: string; /** * The label of the user who created this note. */ - label_user_creator?: ILabelUser; + readonly label_user_creator?: ILabelUser; /** * The content of the note. */ - content?: string; + readonly content?: string; } export interface INoteTextSchedulePaymentBatchDelete {} @@ -5326,7 +5328,7 @@ export interface INoteTextSchedulePaymentBatchCreate { /** * The id of the created item */ - Id?: BunqId; + readonly Id?: BunqId; } export interface INoteTextSchedulePaymentBatch { @@ -5347,53 +5349,53 @@ export interface INoteTextScheduleInstanceUpdate { /** * The id of the created item */ - Id?: BunqId; + readonly Id?: BunqId; } export interface INoteTextScheduleInstanceRead { /** * The id of the note. */ - id?: number; + readonly id?: number; /** * The timestamp of the note's creation. */ - created?: string; + readonly created?: string; /** * The timestamp of the note's last update. */ - updated?: string; + readonly updated?: string; /** * The label of the user who created this note. */ - label_user_creator?: ILabelUser; + readonly label_user_creator?: ILabelUser; /** * The content of the note. */ - content?: string; + readonly content?: string; } export interface INoteTextScheduleInstanceListing { /** * The id of the note. */ - id?: number; + readonly id?: number; /** * The timestamp of the note's creation. */ - created?: string; + readonly created?: string; /** * The timestamp of the note's last update. */ - updated?: string; + readonly updated?: string; /** * The label of the user who created this note. */ - label_user_creator?: ILabelUser; + readonly label_user_creator?: ILabelUser; /** * The content of the note. */ - content?: string; + readonly content?: string; } export interface INoteTextScheduleInstanceDelete {} @@ -5402,7 +5404,7 @@ export interface INoteTextScheduleInstanceCreate { /** * The id of the created item */ - Id?: BunqId; + readonly Id?: BunqId; } export interface INoteTextScheduleInstance { @@ -5416,53 +5418,53 @@ export interface INoteTextRequestResponseUpdate { /** * The id of the created item */ - Id?: BunqId; + readonly Id?: BunqId; } export interface INoteTextRequestResponseRead { /** * The id of the note. */ - id?: number; + readonly id?: number; /** * The timestamp of the note's creation. */ - created?: string; + readonly created?: string; /** * The timestamp of the note's last update. */ - updated?: string; + readonly updated?: string; /** * The label of the user who created this note. */ - label_user_creator?: ILabelUser; + readonly label_user_creator?: ILabelUser; /** * The content of the note. */ - content?: string; + readonly content?: string; } export interface INoteTextRequestResponseListing { /** * The id of the note. */ - id?: number; + readonly id?: number; /** * The timestamp of the note's creation. */ - created?: string; + readonly created?: string; /** * The timestamp of the note's last update. */ - updated?: string; + readonly updated?: string; /** * The label of the user who created this note. */ - label_user_creator?: ILabelUser; + readonly label_user_creator?: ILabelUser; /** * The content of the note. */ - content?: string; + readonly content?: string; } export interface INoteTextRequestResponseDelete {} @@ -5471,7 +5473,7 @@ export interface INoteTextRequestResponseCreate { /** * The id of the created item */ - Id?: BunqId; + readonly Id?: BunqId; } export interface INoteTextRequestResponse { @@ -5485,53 +5487,53 @@ export interface INoteTextRequestInquiryUpdate { /** * The id of the created item */ - Id?: BunqId; + readonly Id?: BunqId; } export interface INoteTextRequestInquiryRead { /** * The id of the note. */ - id?: number; + readonly id?: number; /** * The timestamp of the note's creation. */ - created?: string; + readonly created?: string; /** * The timestamp of the note's last update. */ - updated?: string; + readonly updated?: string; /** * The label of the user who created this note. */ - label_user_creator?: ILabelUser; + readonly label_user_creator?: ILabelUser; /** * The content of the note. */ - content?: string; + readonly content?: string; } export interface INoteTextRequestInquiryListing { /** * The id of the note. */ - id?: number; + readonly id?: number; /** * The timestamp of the note's creation. */ - created?: string; + readonly created?: string; /** * The timestamp of the note's last update. */ - updated?: string; + readonly updated?: string; /** * The label of the user who created this note. */ - label_user_creator?: ILabelUser; + readonly label_user_creator?: ILabelUser; /** * The content of the note. */ - content?: string; + readonly content?: string; } export interface INoteTextRequestInquiryDelete {} @@ -5540,60 +5542,60 @@ export interface INoteTextRequestInquiryCreate { /** * The id of the created item */ - Id?: BunqId; + readonly Id?: BunqId; } export interface INoteTextRequestInquiryBatchUpdate { /** * The id of the created item */ - Id?: BunqId; + readonly Id?: BunqId; } export interface INoteTextRequestInquiryBatchRead { /** * The id of the note. */ - id?: number; + readonly id?: number; /** * The timestamp of the note's creation. */ - created?: string; + readonly created?: string; /** * The timestamp of the note's last update. */ - updated?: string; + readonly updated?: string; /** * The label of the user who created this note. */ - label_user_creator?: ILabelUser; + readonly label_user_creator?: ILabelUser; /** * The content of the note. */ - content?: string; + readonly content?: string; } export interface INoteTextRequestInquiryBatchListing { /** * The id of the note. */ - id?: number; + readonly id?: number; /** * The timestamp of the note's creation. */ - created?: string; + readonly created?: string; /** * The timestamp of the note's last update. */ - updated?: string; + readonly updated?: string; /** * The label of the user who created this note. */ - label_user_creator?: ILabelUser; + readonly label_user_creator?: ILabelUser; /** * The content of the note. */ - content?: string; + readonly content?: string; } export interface INoteTextRequestInquiryBatchDelete {} @@ -5602,7 +5604,7 @@ export interface INoteTextRequestInquiryBatchCreate { /** * The id of the created item */ - Id?: BunqId; + readonly Id?: BunqId; } export interface INoteTextRequestInquiryBatch { @@ -5623,53 +5625,53 @@ export interface INoteTextPaymentUpdate { /** * The id of the created item */ - Id?: BunqId; + readonly Id?: BunqId; } export interface INoteTextPaymentRead { /** * The id of the note. */ - id?: number; + readonly id?: number; /** * The timestamp of the note's creation. */ - created?: string; + readonly created?: string; /** * The timestamp of the note's last update. */ - updated?: string; + readonly updated?: string; /** * The label of the user who created this note. */ - label_user_creator?: ILabelUser; + readonly label_user_creator?: ILabelUser; /** * The content of the note. */ - content?: string; + readonly content?: string; } export interface INoteTextPaymentListing { /** * The id of the note. */ - id?: number; + readonly id?: number; /** * The timestamp of the note's creation. */ - created?: string; + readonly created?: string; /** * The timestamp of the note's last update. */ - updated?: string; + readonly updated?: string; /** * The label of the user who created this note. */ - label_user_creator?: ILabelUser; + readonly label_user_creator?: ILabelUser; /** * The content of the note. */ - content?: string; + readonly content?: string; } export interface INoteTextPaymentDelete {} @@ -5678,60 +5680,60 @@ export interface INoteTextPaymentCreate { /** * The id of the created item */ - Id?: BunqId; + readonly Id?: BunqId; } export interface INoteTextPaymentBatchUpdate { /** * The id of the created item */ - Id?: BunqId; + readonly Id?: BunqId; } export interface INoteTextPaymentBatchRead { /** * The id of the note. */ - id?: number; + readonly id?: number; /** * The timestamp of the note's creation. */ - created?: string; + readonly created?: string; /** * The timestamp of the note's last update. */ - updated?: string; + readonly updated?: string; /** * The label of the user who created this note. */ - label_user_creator?: ILabelUser; + readonly label_user_creator?: ILabelUser; /** * The content of the note. */ - content?: string; + readonly content?: string; } export interface INoteTextPaymentBatchListing { /** * The id of the note. */ - id?: number; + readonly id?: number; /** * The timestamp of the note's creation. */ - created?: string; + readonly created?: string; /** * The timestamp of the note's last update. */ - updated?: string; + readonly updated?: string; /** * The label of the user who created this note. */ - label_user_creator?: ILabelUser; + readonly label_user_creator?: ILabelUser; /** * The content of the note. */ - content?: string; + readonly content?: string; } export interface INoteTextPaymentBatchDelete {} @@ -5740,7 +5742,7 @@ export interface INoteTextPaymentBatchCreate { /** * The id of the created item */ - Id?: BunqId; + readonly Id?: BunqId; } export interface INoteTextPaymentBatch { @@ -5761,53 +5763,53 @@ export interface INoteTextMasterCardActionUpdate { /** * The id of the created item */ - Id?: BunqId; + readonly Id?: BunqId; } export interface INoteTextMasterCardActionRead { /** * The id of the note. */ - id?: number; + readonly id?: number; /** * The timestamp of the note's creation. */ - created?: string; + readonly created?: string; /** * The timestamp of the note's last update. */ - updated?: string; + readonly updated?: string; /** * The label of the user who created this note. */ - label_user_creator?: ILabelUser; + readonly label_user_creator?: ILabelUser; /** * The content of the note. */ - content?: string; + readonly content?: string; } export interface INoteTextMasterCardActionListing { /** * The id of the note. */ - id?: number; + readonly id?: number; /** * The timestamp of the note's creation. */ - created?: string; + readonly created?: string; /** * The timestamp of the note's last update. */ - updated?: string; + readonly updated?: string; /** * The label of the user who created this note. */ - label_user_creator?: ILabelUser; + readonly label_user_creator?: ILabelUser; /** * The content of the note. */ - content?: string; + readonly content?: string; } export interface INoteTextMasterCardActionDelete {} @@ -5816,7 +5818,7 @@ export interface INoteTextMasterCardActionCreate { /** * The id of the created item */ - Id?: BunqId; + readonly Id?: BunqId; } export interface INoteTextMasterCardAction { @@ -5830,53 +5832,53 @@ export interface INoteTextIdealMerchantTransactionUpdate { /** * The id of the created item */ - Id?: BunqId; + readonly Id?: BunqId; } export interface INoteTextIdealMerchantTransactionRead { /** * The id of the note. */ - id?: number; + readonly id?: number; /** * The timestamp of the note's creation. */ - created?: string; + readonly created?: string; /** * The timestamp of the note's last update. */ - updated?: string; + readonly updated?: string; /** * The label of the user who created this note. */ - label_user_creator?: ILabelUser; + readonly label_user_creator?: ILabelUser; /** * The content of the note. */ - content?: string; + readonly content?: string; } export interface INoteTextIdealMerchantTransactionListing { /** * The id of the note. */ - id?: number; + readonly id?: number; /** * The timestamp of the note's creation. */ - created?: string; + readonly created?: string; /** * The timestamp of the note's last update. */ - updated?: string; + readonly updated?: string; /** * The label of the user who created this note. */ - label_user_creator?: ILabelUser; + readonly label_user_creator?: ILabelUser; /** * The content of the note. */ - content?: string; + readonly content?: string; } export interface INoteTextIdealMerchantTransactionDelete {} @@ -5885,7 +5887,7 @@ export interface INoteTextIdealMerchantTransactionCreate { /** * The id of the created item */ - Id?: BunqId; + readonly Id?: BunqId; } export interface INoteTextIdealMerchantTransaction { @@ -5899,53 +5901,53 @@ export interface INoteTextDraftPaymentUpdate { /** * The id of the created item */ - Id?: BunqId; + readonly Id?: BunqId; } export interface INoteTextDraftPaymentRead { /** * The id of the note. */ - id?: number; + readonly id?: number; /** * The timestamp of the note's creation. */ - created?: string; + readonly created?: string; /** * The timestamp of the note's last update. */ - updated?: string; + readonly updated?: string; /** * The label of the user who created this note. */ - label_user_creator?: ILabelUser; + readonly label_user_creator?: ILabelUser; /** * The content of the note. */ - content?: string; + readonly content?: string; } export interface INoteTextDraftPaymentListing { /** * The id of the note. */ - id?: number; + readonly id?: number; /** * The timestamp of the note's creation. */ - created?: string; + readonly created?: string; /** * The timestamp of the note's last update. */ - updated?: string; + readonly updated?: string; /** * The label of the user who created this note. */ - label_user_creator?: ILabelUser; + readonly label_user_creator?: ILabelUser; /** * The content of the note. */ - content?: string; + readonly content?: string; } export interface INoteTextDraftPaymentDelete {} @@ -5954,7 +5956,7 @@ export interface INoteTextDraftPaymentCreate { /** * The id of the created item */ - Id?: BunqId; + readonly Id?: BunqId; } export interface INoteTextDraftPayment { @@ -5968,53 +5970,53 @@ export interface INoteTextBunqMeFundraiserResultUpdate { /** * The id of the created item */ - Id?: BunqId; + readonly Id?: BunqId; } export interface INoteTextBunqMeFundraiserResultRead { /** * The id of the note. */ - id?: number; + readonly id?: number; /** * The timestamp of the note's creation. */ - created?: string; + readonly created?: string; /** * The timestamp of the note's last update. */ - updated?: string; + readonly updated?: string; /** * The label of the user who created this note. */ - label_user_creator?: ILabelUser; + readonly label_user_creator?: ILabelUser; /** * The content of the note. */ - content?: string; + readonly content?: string; } export interface INoteTextBunqMeFundraiserResultListing { /** * The id of the note. */ - id?: number; + readonly id?: number; /** * The timestamp of the note's creation. */ - created?: string; + readonly created?: string; /** * The timestamp of the note's last update. */ - updated?: string; + readonly updated?: string; /** * The label of the user who created this note. */ - label_user_creator?: ILabelUser; + readonly label_user_creator?: ILabelUser; /** * The content of the note. */ - content?: string; + readonly content?: string; } export interface INoteTextBunqMeFundraiserResultDelete {} @@ -6023,7 +6025,7 @@ export interface INoteTextBunqMeFundraiserResultCreate { /** * The id of the created item */ - Id?: BunqId; + readonly Id?: BunqId; } export interface INoteTextBunqMeFundraiserResult { @@ -6037,53 +6039,53 @@ export interface INoteTextBankSwitchServiceNetherlandsIncomingPaymentUpdate { /** * The id of the created item */ - Id?: BunqId; + readonly Id?: BunqId; } export interface INoteTextBankSwitchServiceNetherlandsIncomingPaymentRead { /** * The id of the note. */ - id?: number; + readonly id?: number; /** * The timestamp of the note's creation. */ - created?: string; + readonly created?: string; /** * The timestamp of the note's last update. */ - updated?: string; + readonly updated?: string; /** * The label of the user who created this note. */ - label_user_creator?: ILabelUser; + readonly label_user_creator?: ILabelUser; /** * The content of the note. */ - content?: string; + readonly content?: string; } export interface INoteTextBankSwitchServiceNetherlandsIncomingPaymentListing { /** * The id of the note. */ - id?: number; + readonly id?: number; /** * The timestamp of the note's creation. */ - created?: string; + readonly created?: string; /** * The timestamp of the note's last update. */ - updated?: string; + readonly updated?: string; /** * The label of the user who created this note. */ - label_user_creator?: ILabelUser; + readonly label_user_creator?: ILabelUser; /** * The content of the note. */ - content?: string; + readonly content?: string; } export interface INoteTextBankSwitchServiceNetherlandsIncomingPaymentDelete {} @@ -6092,7 +6094,7 @@ export interface INoteTextBankSwitchServiceNetherlandsIncomingPaymentCreate { /** * The id of the created item */ - Id?: BunqId; + readonly Id?: BunqId; } export interface INoteTextBankSwitchServiceNetherlandsIncomingPayment { @@ -6106,61 +6108,61 @@ export interface INoteAttachmentWhitelistResultUpdate { /** * The id of the created item */ - Id?: BunqId; + readonly Id?: BunqId; } export interface INoteAttachmentWhitelistResultRead { /** * The id of the note. */ - id?: number; + readonly id?: number; /** * The timestamp of the note's creation. */ - created?: string; + readonly created?: string; /** * The timestamp of the note's last update. */ - updated?: string; + readonly updated?: string; /** * The label of the user who created this note. */ - label_user_creator?: ILabelUser; + readonly label_user_creator?: ILabelUser; /** * Optional description of the attachment. */ - description?: string; + readonly description?: string; /** * The attachment attached to the note. */ - attachment?: Array; + readonly attachment?: Array; } export interface INoteAttachmentWhitelistResultListing { /** * The id of the note. */ - id?: number; + readonly id?: number; /** * The timestamp of the note's creation. */ - created?: string; + readonly created?: string; /** * The timestamp of the note's last update. */ - updated?: string; + readonly updated?: string; /** * The label of the user who created this note. */ - label_user_creator?: ILabelUser; + readonly label_user_creator?: ILabelUser; /** * Optional description of the attachment. */ - description?: string; + readonly description?: string; /** * The attachment attached to the note. */ - attachment?: Array; + readonly attachment?: Array; } export interface INoteAttachmentWhitelistResultDelete {} @@ -6169,7 +6171,7 @@ export interface INoteAttachmentWhitelistResultCreate { /** * The id of the created item */ - Id?: BunqId; + readonly Id?: BunqId; } export interface INoteAttachmentWhitelistResult { @@ -6187,61 +6189,61 @@ export interface INoteAttachmentSofortMerchantTransactionUpdate { /** * The id of the created item */ - Id?: BunqId; + readonly Id?: BunqId; } export interface INoteAttachmentSofortMerchantTransactionRead { /** * The id of the note. */ - id?: number; + readonly id?: number; /** * The timestamp of the note's creation. */ - created?: string; + readonly created?: string; /** * The timestamp of the note's last update. */ - updated?: string; + readonly updated?: string; /** * The label of the user who created this note. */ - label_user_creator?: ILabelUser; + readonly label_user_creator?: ILabelUser; /** * Optional description of the attachment. */ - description?: string; + readonly description?: string; /** * The attachment attached to the note. */ - attachment?: Array; + readonly attachment?: Array; } export interface INoteAttachmentSofortMerchantTransactionListing { /** * The id of the note. */ - id?: number; + readonly id?: number; /** * The timestamp of the note's creation. */ - created?: string; + readonly created?: string; /** * The timestamp of the note's last update. */ - updated?: string; + readonly updated?: string; /** * The label of the user who created this note. */ - label_user_creator?: ILabelUser; + readonly label_user_creator?: ILabelUser; /** * Optional description of the attachment. */ - description?: string; + readonly description?: string; /** * The attachment attached to the note. */ - attachment?: Array; + readonly attachment?: Array; } export interface INoteAttachmentSofortMerchantTransactionDelete {} @@ -6250,7 +6252,7 @@ export interface INoteAttachmentSofortMerchantTransactionCreate { /** * The id of the created item */ - Id?: BunqId; + readonly Id?: BunqId; } export interface INoteAttachmentSofortMerchantTransaction { @@ -6268,61 +6270,61 @@ export interface INoteAttachmentSchedulePaymentUpdate { /** * The id of the created item */ - Id?: BunqId; + readonly Id?: BunqId; } export interface INoteAttachmentSchedulePaymentRead { /** * The id of the note. */ - id?: number; + readonly id?: number; /** * The timestamp of the note's creation. */ - created?: string; + readonly created?: string; /** * The timestamp of the note's last update. */ - updated?: string; + readonly updated?: string; /** * The label of the user who created this note. */ - label_user_creator?: ILabelUser; + readonly label_user_creator?: ILabelUser; /** * Optional description of the attachment. */ - description?: string; + readonly description?: string; /** * The attachment attached to the note. */ - attachment?: Array; + readonly attachment?: Array; } export interface INoteAttachmentSchedulePaymentListing { /** * The id of the note. */ - id?: number; + readonly id?: number; /** * The timestamp of the note's creation. */ - created?: string; + readonly created?: string; /** * The timestamp of the note's last update. */ - updated?: string; + readonly updated?: string; /** * The label of the user who created this note. */ - label_user_creator?: ILabelUser; + readonly label_user_creator?: ILabelUser; /** * Optional description of the attachment. */ - description?: string; + readonly description?: string; /** * The attachment attached to the note. */ - attachment?: Array; + readonly attachment?: Array; } export interface INoteAttachmentSchedulePaymentDelete {} @@ -6331,68 +6333,68 @@ export interface INoteAttachmentSchedulePaymentCreate { /** * The id of the created item */ - Id?: BunqId; + readonly Id?: BunqId; } export interface INoteAttachmentSchedulePaymentBatchUpdate { /** * The id of the created item */ - Id?: BunqId; + readonly Id?: BunqId; } export interface INoteAttachmentSchedulePaymentBatchRead { /** * The id of the note. */ - id?: number; + readonly id?: number; /** * The timestamp of the note's creation. */ - created?: string; + readonly created?: string; /** * The timestamp of the note's last update. */ - updated?: string; + readonly updated?: string; /** * The label of the user who created this note. */ - label_user_creator?: ILabelUser; + readonly label_user_creator?: ILabelUser; /** * Optional description of the attachment. */ - description?: string; + readonly description?: string; /** * The attachment attached to the note. */ - attachment?: Array; + readonly attachment?: Array; } export interface INoteAttachmentSchedulePaymentBatchListing { /** * The id of the note. */ - id?: number; + readonly id?: number; /** * The timestamp of the note's creation. */ - created?: string; + readonly created?: string; /** * The timestamp of the note's last update. */ - updated?: string; + readonly updated?: string; /** * The label of the user who created this note. */ - label_user_creator?: ILabelUser; + readonly label_user_creator?: ILabelUser; /** * Optional description of the attachment. */ - description?: string; + readonly description?: string; /** * The attachment attached to the note. */ - attachment?: Array; + readonly attachment?: Array; } export interface INoteAttachmentSchedulePaymentBatchDelete {} @@ -6401,7 +6403,7 @@ export interface INoteAttachmentSchedulePaymentBatchCreate { /** * The id of the created item */ - Id?: BunqId; + readonly Id?: BunqId; } export interface INoteAttachmentSchedulePaymentBatch { @@ -6430,61 +6432,61 @@ export interface INoteAttachmentScheduleInstanceUpdate { /** * The id of the created item */ - Id?: BunqId; + readonly Id?: BunqId; } export interface INoteAttachmentScheduleInstanceRead { /** * The id of the note. */ - id?: number; + readonly id?: number; /** * The timestamp of the note's creation. */ - created?: string; + readonly created?: string; /** * The timestamp of the note's last update. */ - updated?: string; + readonly updated?: string; /** * The label of the user who created this note. */ - label_user_creator?: ILabelUser; + readonly label_user_creator?: ILabelUser; /** * Optional description of the attachment. */ - description?: string; + readonly description?: string; /** * The attachment attached to the note. */ - attachment?: Array; + readonly attachment?: Array; } export interface INoteAttachmentScheduleInstanceListing { /** * The id of the note. */ - id?: number; + readonly id?: number; /** * The timestamp of the note's creation. */ - created?: string; + readonly created?: string; /** * The timestamp of the note's last update. */ - updated?: string; + readonly updated?: string; /** * The label of the user who created this note. */ - label_user_creator?: ILabelUser; + readonly label_user_creator?: ILabelUser; /** * Optional description of the attachment. */ - description?: string; + readonly description?: string; /** * The attachment attached to the note. */ - attachment?: Array; + readonly attachment?: Array; } export interface INoteAttachmentScheduleInstanceDelete {} @@ -6493,7 +6495,7 @@ export interface INoteAttachmentScheduleInstanceCreate { /** * The id of the created item */ - Id?: BunqId; + readonly Id?: BunqId; } export interface INoteAttachmentScheduleInstance { @@ -6511,61 +6513,61 @@ export interface INoteAttachmentRequestResponseUpdate { /** * The id of the created item */ - Id?: BunqId; + readonly Id?: BunqId; } export interface INoteAttachmentRequestResponseRead { /** * The id of the note. */ - id?: number; + readonly id?: number; /** * The timestamp of the note's creation. */ - created?: string; + readonly created?: string; /** * The timestamp of the note's last update. */ - updated?: string; + readonly updated?: string; /** * The label of the user who created this note. */ - label_user_creator?: ILabelUser; + readonly label_user_creator?: ILabelUser; /** * Optional description of the attachment. */ - description?: string; + readonly description?: string; /** * The attachment attached to the note. */ - attachment?: Array; + readonly attachment?: Array; } export interface INoteAttachmentRequestResponseListing { /** * The id of the note. */ - id?: number; + readonly id?: number; /** * The timestamp of the note's creation. */ - created?: string; + readonly created?: string; /** * The timestamp of the note's last update. */ - updated?: string; + readonly updated?: string; /** * The label of the user who created this note. */ - label_user_creator?: ILabelUser; + readonly label_user_creator?: ILabelUser; /** * Optional description of the attachment. */ - description?: string; + readonly description?: string; /** * The attachment attached to the note. */ - attachment?: Array; + readonly attachment?: Array; } export interface INoteAttachmentRequestResponseDelete {} @@ -6574,7 +6576,7 @@ export interface INoteAttachmentRequestResponseCreate { /** * The id of the created item */ - Id?: BunqId; + readonly Id?: BunqId; } export interface INoteAttachmentRequestResponse { @@ -6592,61 +6594,61 @@ export interface INoteAttachmentRequestInquiryUpdate { /** * The id of the created item */ - Id?: BunqId; + readonly Id?: BunqId; } export interface INoteAttachmentRequestInquiryRead { /** * The id of the note. */ - id?: number; + readonly id?: number; /** * The timestamp of the note's creation. */ - created?: string; + readonly created?: string; /** * The timestamp of the note's last update. */ - updated?: string; + readonly updated?: string; /** * The label of the user who created this note. */ - label_user_creator?: ILabelUser; + readonly label_user_creator?: ILabelUser; /** * Optional description of the attachment. */ - description?: string; + readonly description?: string; /** * The attachment attached to the note. */ - attachment?: Array; + readonly attachment?: Array; } export interface INoteAttachmentRequestInquiryListing { /** * The id of the note. */ - id?: number; + readonly id?: number; /** * The timestamp of the note's creation. */ - created?: string; + readonly created?: string; /** * The timestamp of the note's last update. */ - updated?: string; + readonly updated?: string; /** * The label of the user who created this note. */ - label_user_creator?: ILabelUser; + readonly label_user_creator?: ILabelUser; /** * Optional description of the attachment. */ - description?: string; + readonly description?: string; /** * The attachment attached to the note. */ - attachment?: Array; + readonly attachment?: Array; } export interface INoteAttachmentRequestInquiryDelete {} @@ -6655,68 +6657,68 @@ export interface INoteAttachmentRequestInquiryCreate { /** * The id of the created item */ - Id?: BunqId; + readonly Id?: BunqId; } export interface INoteAttachmentRequestInquiryBatchUpdate { /** * The id of the created item */ - Id?: BunqId; + readonly Id?: BunqId; } export interface INoteAttachmentRequestInquiryBatchRead { /** * The id of the note. */ - id?: number; + readonly id?: number; /** * The timestamp of the note's creation. */ - created?: string; + readonly created?: string; /** * The timestamp of the note's last update. */ - updated?: string; + readonly updated?: string; /** * The label of the user who created this note. */ - label_user_creator?: ILabelUser; + readonly label_user_creator?: ILabelUser; /** * Optional description of the attachment. */ - description?: string; + readonly description?: string; /** * The attachment attached to the note. */ - attachment?: Array; + readonly attachment?: Array; } export interface INoteAttachmentRequestInquiryBatchListing { /** * The id of the note. */ - id?: number; + readonly id?: number; /** * The timestamp of the note's creation. */ - created?: string; + readonly created?: string; /** * The timestamp of the note's last update. */ - updated?: string; + readonly updated?: string; /** * The label of the user who created this note. */ - label_user_creator?: ILabelUser; + readonly label_user_creator?: ILabelUser; /** * Optional description of the attachment. */ - description?: string; + readonly description?: string; /** * The attachment attached to the note. */ - attachment?: Array; + readonly attachment?: Array; } export interface INoteAttachmentRequestInquiryBatchDelete {} @@ -6725,7 +6727,7 @@ export interface INoteAttachmentRequestInquiryBatchCreate { /** * The id of the created item */ - Id?: BunqId; + readonly Id?: BunqId; } export interface INoteAttachmentRequestInquiryBatch { @@ -6754,61 +6756,61 @@ export interface INoteAttachmentPaymentUpdate { /** * The id of the created item */ - Id?: BunqId; + readonly Id?: BunqId; } export interface INoteAttachmentPaymentRead { /** * The id of the note. */ - id?: number; + readonly id?: number; /** * The timestamp of the note's creation. */ - created?: string; + readonly created?: string; /** * The timestamp of the note's last update. */ - updated?: string; + readonly updated?: string; /** * The label of the user who created this note. */ - label_user_creator?: ILabelUser; + readonly label_user_creator?: ILabelUser; /** * Optional description of the attachment. */ - description?: string; + readonly description?: string; /** * The attachment attached to the note. */ - attachment?: Array; + readonly attachment?: Array; } export interface INoteAttachmentPaymentListing { /** * The id of the note. */ - id?: number; + readonly id?: number; /** * The timestamp of the note's creation. */ - created?: string; + readonly created?: string; /** * The timestamp of the note's last update. */ - updated?: string; + readonly updated?: string; /** * The label of the user who created this note. */ - label_user_creator?: ILabelUser; + readonly label_user_creator?: ILabelUser; /** * Optional description of the attachment. */ - description?: string; + readonly description?: string; /** * The attachment attached to the note. */ - attachment?: Array; + readonly attachment?: Array; } export interface INoteAttachmentPaymentDelete {} @@ -6817,68 +6819,68 @@ export interface INoteAttachmentPaymentCreate { /** * The id of the created item */ - Id?: BunqId; + readonly Id?: BunqId; } export interface INoteAttachmentPaymentBatchUpdate { /** * The id of the created item */ - Id?: BunqId; + readonly Id?: BunqId; } export interface INoteAttachmentPaymentBatchRead { /** * The id of the note. */ - id?: number; + readonly id?: number; /** * The timestamp of the note's creation. */ - created?: string; + readonly created?: string; /** * The timestamp of the note's last update. */ - updated?: string; + readonly updated?: string; /** * The label of the user who created this note. */ - label_user_creator?: ILabelUser; + readonly label_user_creator?: ILabelUser; /** * Optional description of the attachment. */ - description?: string; + readonly description?: string; /** * The attachment attached to the note. */ - attachment?: Array; + readonly attachment?: Array; } export interface INoteAttachmentPaymentBatchListing { /** * The id of the note. */ - id?: number; + readonly id?: number; /** * The timestamp of the note's creation. */ - created?: string; + readonly created?: string; /** * The timestamp of the note's last update. */ - updated?: string; + readonly updated?: string; /** * The label of the user who created this note. */ - label_user_creator?: ILabelUser; + readonly label_user_creator?: ILabelUser; /** * Optional description of the attachment. */ - description?: string; + readonly description?: string; /** * The attachment attached to the note. */ - attachment?: Array; + readonly attachment?: Array; } export interface INoteAttachmentPaymentBatchDelete {} @@ -6887,7 +6889,7 @@ export interface INoteAttachmentPaymentBatchCreate { /** * The id of the created item */ - Id?: BunqId; + readonly Id?: BunqId; } export interface INoteAttachmentPaymentBatch { @@ -6916,61 +6918,61 @@ export interface INoteAttachmentMasterCardActionUpdate { /** * The id of the created item */ - Id?: BunqId; + readonly Id?: BunqId; } export interface INoteAttachmentMasterCardActionRead { /** * The id of the note. */ - id?: number; + readonly id?: number; /** * The timestamp of the note's creation. */ - created?: string; + readonly created?: string; /** * The timestamp of the note's last update. */ - updated?: string; + readonly updated?: string; /** * The label of the user who created this note. */ - label_user_creator?: ILabelUser; + readonly label_user_creator?: ILabelUser; /** * Optional description of the attachment. */ - description?: string; + readonly description?: string; /** * The attachment attached to the note. */ - attachment?: Array; + readonly attachment?: Array; } export interface INoteAttachmentMasterCardActionListing { /** * The id of the note. */ - id?: number; + readonly id?: number; /** * The timestamp of the note's creation. */ - created?: string; + readonly created?: string; /** * The timestamp of the note's last update. */ - updated?: string; + readonly updated?: string; /** * The label of the user who created this note. */ - label_user_creator?: ILabelUser; + readonly label_user_creator?: ILabelUser; /** * Optional description of the attachment. */ - description?: string; + readonly description?: string; /** * The attachment attached to the note. */ - attachment?: Array; + readonly attachment?: Array; } export interface INoteAttachmentMasterCardActionDelete {} @@ -6979,7 +6981,7 @@ export interface INoteAttachmentMasterCardActionCreate { /** * The id of the created item */ - Id?: BunqId; + readonly Id?: BunqId; } export interface INoteAttachmentMasterCardAction { @@ -6997,61 +6999,61 @@ export interface INoteAttachmentIdealMerchantTransactionUpdate { /** * The id of the created item */ - Id?: BunqId; + readonly Id?: BunqId; } export interface INoteAttachmentIdealMerchantTransactionRead { /** * The id of the note. */ - id?: number; + readonly id?: number; /** * The timestamp of the note's creation. */ - created?: string; + readonly created?: string; /** * The timestamp of the note's last update. */ - updated?: string; + readonly updated?: string; /** * The label of the user who created this note. */ - label_user_creator?: ILabelUser; + readonly label_user_creator?: ILabelUser; /** * Optional description of the attachment. */ - description?: string; + readonly description?: string; /** * The attachment attached to the note. */ - attachment?: Array; + readonly attachment?: Array; } export interface INoteAttachmentIdealMerchantTransactionListing { /** * The id of the note. */ - id?: number; + readonly id?: number; /** * The timestamp of the note's creation. */ - created?: string; + readonly created?: string; /** * The timestamp of the note's last update. */ - updated?: string; + readonly updated?: string; /** * The label of the user who created this note. */ - label_user_creator?: ILabelUser; + readonly label_user_creator?: ILabelUser; /** * Optional description of the attachment. */ - description?: string; + readonly description?: string; /** * The attachment attached to the note. */ - attachment?: Array; + readonly attachment?: Array; } export interface INoteAttachmentIdealMerchantTransactionDelete {} @@ -7060,7 +7062,7 @@ export interface INoteAttachmentIdealMerchantTransactionCreate { /** * The id of the created item */ - Id?: BunqId; + readonly Id?: BunqId; } export interface INoteAttachmentIdealMerchantTransaction { @@ -7078,61 +7080,61 @@ export interface INoteAttachmentDraftPaymentUpdate { /** * The id of the created item */ - Id?: BunqId; + readonly Id?: BunqId; } export interface INoteAttachmentDraftPaymentRead { /** * The id of the note. */ - id?: number; + readonly id?: number; /** * The timestamp of the note's creation. */ - created?: string; + readonly created?: string; /** * The timestamp of the note's last update. */ - updated?: string; + readonly updated?: string; /** * The label of the user who created this note. */ - label_user_creator?: ILabelUser; + readonly label_user_creator?: ILabelUser; /** * Optional description of the attachment. */ - description?: string; + readonly description?: string; /** * The attachment attached to the note. */ - attachment?: Array; + readonly attachment?: Array; } export interface INoteAttachmentDraftPaymentListing { /** * The id of the note. */ - id?: number; + readonly id?: number; /** * The timestamp of the note's creation. */ - created?: string; + readonly created?: string; /** * The timestamp of the note's last update. */ - updated?: string; + readonly updated?: string; /** * The label of the user who created this note. */ - label_user_creator?: ILabelUser; + readonly label_user_creator?: ILabelUser; /** * Optional description of the attachment. */ - description?: string; + readonly description?: string; /** * The attachment attached to the note. */ - attachment?: Array; + readonly attachment?: Array; } export interface INoteAttachmentDraftPaymentDelete {} @@ -7141,7 +7143,7 @@ export interface INoteAttachmentDraftPaymentCreate { /** * The id of the created item */ - Id?: BunqId; + readonly Id?: BunqId; } export interface INoteAttachmentDraftPayment { @@ -7159,61 +7161,61 @@ export interface INoteAttachmentBunqMeFundraiserResultUpdate { /** * The id of the created item */ - Id?: BunqId; + readonly Id?: BunqId; } export interface INoteAttachmentBunqMeFundraiserResultRead { /** * The id of the note. */ - id?: number; + readonly id?: number; /** * The timestamp of the note's creation. */ - created?: string; + readonly created?: string; /** * The timestamp of the note's last update. */ - updated?: string; + readonly updated?: string; /** * The label of the user who created this note. */ - label_user_creator?: ILabelUser; + readonly label_user_creator?: ILabelUser; /** * Optional description of the attachment. */ - description?: string; + readonly description?: string; /** * The attachment attached to the note. */ - attachment?: Array; + readonly attachment?: Array; } export interface INoteAttachmentBunqMeFundraiserResultListing { /** * The id of the note. */ - id?: number; + readonly id?: number; /** * The timestamp of the note's creation. */ - created?: string; + readonly created?: string; /** * The timestamp of the note's last update. */ - updated?: string; + readonly updated?: string; /** * The label of the user who created this note. */ - label_user_creator?: ILabelUser; + readonly label_user_creator?: ILabelUser; /** * Optional description of the attachment. */ - description?: string; + readonly description?: string; /** * The attachment attached to the note. */ - attachment?: Array; + readonly attachment?: Array; } export interface INoteAttachmentBunqMeFundraiserResultDelete {} @@ -7222,7 +7224,7 @@ export interface INoteAttachmentBunqMeFundraiserResultCreate { /** * The id of the created item */ - Id?: BunqId; + readonly Id?: BunqId; } export interface INoteAttachmentBunqMeFundraiserResult { @@ -7240,61 +7242,61 @@ export interface INoteAttachmentBankSwitchServiceNetherlandsIncomingPaymentUpdat /** * The id of the created item */ - Id?: BunqId; + readonly Id?: BunqId; } export interface INoteAttachmentBankSwitchServiceNetherlandsIncomingPaymentRead { /** * The id of the note. */ - id?: number; + readonly id?: number; /** * The timestamp of the note's creation. */ - created?: string; + readonly created?: string; /** * The timestamp of the note's last update. */ - updated?: string; + readonly updated?: string; /** * The label of the user who created this note. */ - label_user_creator?: ILabelUser; + readonly label_user_creator?: ILabelUser; /** * Optional description of the attachment. */ - description?: string; + readonly description?: string; /** * The attachment attached to the note. */ - attachment?: Array; + readonly attachment?: Array; } export interface INoteAttachmentBankSwitchServiceNetherlandsIncomingPaymentListing { /** * The id of the note. */ - id?: number; + readonly id?: number; /** * The timestamp of the note's creation. */ - created?: string; + readonly created?: string; /** * The timestamp of the note's last update. */ - updated?: string; + readonly updated?: string; /** * The label of the user who created this note. */ - label_user_creator?: ILabelUser; + readonly label_user_creator?: ILabelUser; /** * Optional description of the attachment. */ - description?: string; + readonly description?: string; /** * The attachment attached to the note. */ - attachment?: Array; + readonly attachment?: Array; } export interface INoteAttachmentBankSwitchServiceNetherlandsIncomingPaymentDelete {} @@ -7303,7 +7305,7 @@ export interface INoteAttachmentBankSwitchServiceNetherlandsIncomingPaymentCreat /** * The id of the created item */ - Id?: BunqId; + readonly Id?: BunqId; } export interface INoteAttachmentBankSwitchServiceNetherlandsIncomingPayment { @@ -7340,204 +7342,204 @@ export interface IMonetaryAccountSavingsUpdate { /** * The id of the created item */ - Id?: BunqId; + readonly Id?: BunqId; } export interface IMonetaryAccountSavingsRead { /** * The id of the MonetaryAccountSavings. */ - id?: number; + readonly id?: number; /** * The timestamp of the MonetaryAccountSavings's creation. */ - created?: string; + readonly created?: string; /** * The timestamp of the MonetaryAccountSavings's last update. */ - updated?: string; + readonly updated?: string; /** * The Avatar of the MonetaryAccountSavings. */ - avatar?: IAvatar; + readonly avatar?: IAvatar; /** * The currency of the MonetaryAccountSavings as an ISO 4217 formatted currency code. */ - currency?: string; + readonly currency?: string; /** * The description of the MonetaryAccountSavings. Defaults to 'bunq account'. */ - description?: string; + readonly description?: string; /** * The daily spending limit Amount of the MonetaryAccountSavings. Defaults to 1000 EUR. Currency must match the MonetaryAccountSavings's currency. Limited to 10000 EUR. */ - daily_limit?: IAmount; + readonly daily_limit?: IAmount; /** * The maximum Amount the MonetaryAccountSavings can be 'in the red'. Must be 0 EUR or omitted. */ - overdraft_limit?: IAmount; + readonly overdraft_limit?: IAmount; /** * The current available balance Amount of the MonetaryAccountSavings. */ - balance?: IAmount; + readonly balance?: IAmount; /** * The Aliases for the MonetaryAccountSavings. */ - alias?: Array; + readonly alias?: Array; /** * The MonetaryAccountSavings's public UUID. */ - public_uuid?: string; + readonly public_uuid?: string; /** * The status of the MonetaryAccountSavings. Can be: ACTIVE, BLOCKED, CANCELLED or PENDING_REOPEN */ - status?: string; + readonly status?: string; /** * The sub-status of the MonetaryAccountSavings providing extra information regarding the status. Will be NONE for ACTIVE or PENDING_REOPEN, COMPLETELY or ONLY_ACCEPTING_INCOMING for BLOCKED and REDEMPTION_INVOLUNTARY, REDEMPTION_VOLUNTARY or PERMANENT for CANCELLED. */ - sub_status?: string; + readonly sub_status?: string; /** * The reason for voluntarily cancelling (closing) the MonetaryAccountSavings, can only be OTHER. */ - reason?: string; + readonly reason?: string; /** * The optional free-form reason for voluntarily cancelling (closing) the MonetaryAccountSavings. Can be any user provided message. */ - reason_description?: string; + readonly reason_description?: string; /** * The users the account will be joint with. */ - all_co_owner?: Array; + readonly all_co_owner?: Array; /** * The id of the User who owns the MonetaryAccountSavings. */ - user_id?: number; + readonly user_id?: number; /** * The profile of the account. */ - monetary_account_profile?: IMonetaryAccountProfile; + readonly monetary_account_profile?: IMonetaryAccountProfile; /** * The settings of the MonetaryAccountSavings. */ - setting?: IMonetaryAccountSetting; + readonly setting?: IMonetaryAccountSetting; /** * The Savings Goal set for this MonetaryAccountSavings. */ - savings_goal?: IAmount; + readonly savings_goal?: IAmount; /** * The progress in percentages for the Savings Goal set for this MonetaryAccountSavings. */ - savings_goal_progress?: number; + readonly savings_goal_progress?: number; /** * The id of the AutoSave. */ - auto_save_id?: number; + readonly auto_save_id?: number; /** * The ids of the AutoSave. */ - all_auto_save_id?: Array; + readonly all_auto_save_id?: Array; } export interface IMonetaryAccountSavingsListing { /** * The id of the MonetaryAccountSavings. */ - id?: number; + readonly id?: number; /** * The timestamp of the MonetaryAccountSavings's creation. */ - created?: string; + readonly created?: string; /** * The timestamp of the MonetaryAccountSavings's last update. */ - updated?: string; + readonly updated?: string; /** * The Avatar of the MonetaryAccountSavings. */ - avatar?: IAvatar; + readonly avatar?: IAvatar; /** * The currency of the MonetaryAccountSavings as an ISO 4217 formatted currency code. */ - currency?: string; + readonly currency?: string; /** * The description of the MonetaryAccountSavings. Defaults to 'bunq account'. */ - description?: string; + readonly description?: string; /** * The daily spending limit Amount of the MonetaryAccountSavings. Defaults to 1000 EUR. Currency must match the MonetaryAccountSavings's currency. Limited to 10000 EUR. */ - daily_limit?: IAmount; + readonly daily_limit?: IAmount; /** * The maximum Amount the MonetaryAccountSavings can be 'in the red'. Must be 0 EUR or omitted. */ - overdraft_limit?: IAmount; + readonly overdraft_limit?: IAmount; /** * The current available balance Amount of the MonetaryAccountSavings. */ - balance?: IAmount; + readonly balance?: IAmount; /** * The Aliases for the MonetaryAccountSavings. */ - alias?: Array; + readonly alias?: Array; /** * The MonetaryAccountSavings's public UUID. */ - public_uuid?: string; + readonly public_uuid?: string; /** * The status of the MonetaryAccountSavings. Can be: ACTIVE, BLOCKED, CANCELLED or PENDING_REOPEN */ - status?: string; + readonly status?: string; /** * The sub-status of the MonetaryAccountSavings providing extra information regarding the status. Will be NONE for ACTIVE or PENDING_REOPEN, COMPLETELY or ONLY_ACCEPTING_INCOMING for BLOCKED and REDEMPTION_INVOLUNTARY, REDEMPTION_VOLUNTARY or PERMANENT for CANCELLED. */ - sub_status?: string; + readonly sub_status?: string; /** * The reason for voluntarily cancelling (closing) the MonetaryAccountSavings, can only be OTHER. */ - reason?: string; + readonly reason?: string; /** * The optional free-form reason for voluntarily cancelling (closing) the MonetaryAccountSavings. Can be any user provided message. */ - reason_description?: string; + readonly reason_description?: string; /** * The users the account will be joint with. */ - all_co_owner?: Array; + readonly all_co_owner?: Array; /** * The id of the User who owns the MonetaryAccountSavings. */ - user_id?: number; + readonly user_id?: number; /** * The profile of the account. */ - monetary_account_profile?: IMonetaryAccountProfile; + readonly monetary_account_profile?: IMonetaryAccountProfile; /** * The settings of the MonetaryAccountSavings. */ - setting?: IMonetaryAccountSetting; + readonly setting?: IMonetaryAccountSetting; /** * The Savings Goal set for this MonetaryAccountSavings. */ - savings_goal?: IAmount; + readonly savings_goal?: IAmount; /** * The progress in percentages for the Savings Goal set for this MonetaryAccountSavings. */ - savings_goal_progress?: number; + readonly savings_goal_progress?: number; /** * The id of the AutoSave. */ - auto_save_id?: number; + readonly auto_save_id?: number; /** * The ids of the AutoSave. */ - all_auto_save_id?: Array; + readonly all_auto_save_id?: Array; } export interface IMonetaryAccountSavingsCreate { /** * The id of the created item */ - Id?: BunqId; + readonly Id?: BunqId; } export interface IMonetaryAccountSavings { @@ -7591,19 +7593,19 @@ export interface IMonetaryAccountRead { /** * */ - MonetaryAccountBank?: IMonetaryAccountBank; + readonly MonetaryAccountBank?: IMonetaryAccountBank; /** * */ - MonetaryAccountJoint?: IMonetaryAccountJoint; + readonly MonetaryAccountJoint?: IMonetaryAccountJoint; /** * */ - MonetaryAccountLight?: IMonetaryAccountLight; + readonly MonetaryAccountLight?: IMonetaryAccountLight; /** * */ - MonetaryAccountSavings?: IMonetaryAccountSavings; + readonly MonetaryAccountSavings?: IMonetaryAccountSavings; } export interface IMonetaryAccountProfileFill { @@ -7663,19 +7665,19 @@ export interface IMonetaryAccountListing { /** * */ - MonetaryAccountBank?: IMonetaryAccountBank; + readonly MonetaryAccountBank?: IMonetaryAccountBank; /** * */ - MonetaryAccountJoint?: IMonetaryAccountJoint; + readonly MonetaryAccountJoint?: IMonetaryAccountJoint; /** * */ - MonetaryAccountLight?: IMonetaryAccountLight; + readonly MonetaryAccountLight?: IMonetaryAccountLight; /** * */ - MonetaryAccountSavings?: IMonetaryAccountSavings; + readonly MonetaryAccountSavings?: IMonetaryAccountSavings; } export interface IMonetaryAccountLight { @@ -7718,255 +7720,255 @@ export interface IMonetaryAccountLight { /** * The id of the MonetaryAccountLight. */ - id?: number; + readonly id?: number; /** * The timestamp of the MonetaryAccountLight's creation. */ - created?: string; + readonly created?: string; /** * The timestamp of the MonetaryAccountLight's last update. */ - updated?: string; + readonly updated?: string; /** * The Avatar of the MonetaryAccountLight. */ - avatar?: IAvatar; + readonly avatar?: IAvatar; /** * The current available balance Amount of the MonetaryAccountLight. */ - balance?: IAmount; + readonly balance?: IAmount; /** * The current real balance Amount of the MonetaryAccountLight. */ - balance_real?: IAmount; + readonly balance_real?: IAmount; /** * The Aliases for the MonetaryAccountLight. */ - alias?: Array; + readonly alias?: Array; /** * The MonetaryAccountLight's public UUID. */ - public_uuid?: string; + readonly public_uuid?: string; /** * The id of the User who owns the MonetaryAccountLight. */ - user_id?: number; + readonly user_id?: number; /** * The maximum balance Amount of the MonetaryAccountLight. */ - balance_maximum?: IAmount; + readonly balance_maximum?: IAmount; /** * The amount of the monthly budget used. */ - budget_month_used?: IAmount; + readonly budget_month_used?: IAmount; /** * The total amount of the monthly budget. */ - budget_month_maximum?: IAmount; + readonly budget_month_maximum?: IAmount; /** * The amount of the yearly budget used. */ - budget_year_used?: IAmount; + readonly budget_year_used?: IAmount; /** * The total amount of the yearly budget. */ - budget_year_maximum?: IAmount; + readonly budget_year_maximum?: IAmount; /** * The amount of the yearly withdrawal budget used. */ - budget_withdrawal_year_used?: IAmount; + readonly budget_withdrawal_year_used?: IAmount; /** * The total amount of the yearly withdrawal budget. */ - budget_withdrawal_year_maximum?: IAmount; + readonly budget_withdrawal_year_maximum?: IAmount; } export interface IMonetaryAccountJointUpdate { /** * The id of the created item */ - Id?: BunqId; + readonly Id?: BunqId; } export interface IMonetaryAccountJointRead { /** * The id of the MonetaryAccountJoint. */ - id?: number; + readonly id?: number; /** * The timestamp of the MonetaryAccountJoint's creation. */ - created?: string; + readonly created?: string; /** * The timestamp of the MonetaryAccountJoint's last update. */ - updated?: string; + readonly updated?: string; /** * The Avatar of the MonetaryAccountJoint. */ - avatar?: IAvatar; + readonly avatar?: IAvatar; /** * The currency of the MonetaryAccountJoint as an ISO 4217 formatted currency code. */ - currency?: string; + readonly currency?: string; /** * The description of the MonetaryAccountJoint. Defaults to 'bunq account'. */ - description?: string; + readonly description?: string; /** * The daily spending limit Amount of the MonetaryAccountJoint. Defaults to 1000 EUR. Currency must match the MonetaryAccountJoint's currency. Limited to 10000 EUR. */ - daily_limit?: IAmount; + readonly daily_limit?: IAmount; /** * The maximum Amount the MonetaryAccountJoint can be 'in the red'. */ - overdraft_limit?: IAmount; + readonly overdraft_limit?: IAmount; /** * The current available balance Amount of the MonetaryAccountJoint. */ - balance?: IAmount; + readonly balance?: IAmount; /** * The Aliases for the MonetaryAccountJoint. */ - alias?: Array; + readonly alias?: Array; /** * The MonetaryAccountJoint's public UUID. */ - public_uuid?: string; + readonly public_uuid?: string; /** * The status of the MonetaryAccountJoint. Can be: ACTIVE, BLOCKED, CANCELLED or PENDING_REOPEN */ - status?: string; + readonly status?: string; /** * The sub-status of the MonetaryAccountJoint providing extra information regarding the status. Will be NONE for ACTIVE or PENDING_REOPEN, COMPLETELY or ONLY_ACCEPTING_INCOMING for BLOCKED and REDEMPTION_INVOLUNTARY, REDEMPTION_VOLUNTARY or PERMANENT for CANCELLED. */ - sub_status?: string; + readonly sub_status?: string; /** * The reason for voluntarily cancelling (closing) the MonetaryAccountJoint, can only be OTHER. */ - reason?: string; + readonly reason?: string; /** * The optional free-form reason for voluntarily cancelling (closing) the MonetaryAccountJoint. Can be any user provided message. */ - reason_description?: string; + readonly reason_description?: string; /** * The users the account will be joint with. */ - all_co_owner?: Array; + readonly all_co_owner?: Array; /** * The id of the User who owns the MonetaryAccountJoint. */ - user_id?: number; + readonly user_id?: number; /** * The profile of the account. */ - monetary_account_profile?: IMonetaryAccountProfile; + readonly monetary_account_profile?: IMonetaryAccountProfile; /** * The settings of the MonetaryAccountJoint. */ - setting?: IMonetaryAccountSetting; + readonly setting?: IMonetaryAccountSetting; /** * The id of the AutoSave. */ - auto_save_id?: number; + readonly auto_save_id?: number; /** * The ids of the AutoSave. */ - all_auto_save_id?: Array; + readonly all_auto_save_id?: Array; } export interface IMonetaryAccountJointListing { /** * The id of the MonetaryAccountJoint. */ - id?: number; + readonly id?: number; /** * The timestamp of the MonetaryAccountJoint's creation. */ - created?: string; + readonly created?: string; /** * The timestamp of the MonetaryAccountJoint's last update. */ - updated?: string; + readonly updated?: string; /** * The Avatar of the MonetaryAccountJoint. */ - avatar?: IAvatar; + readonly avatar?: IAvatar; /** * The currency of the MonetaryAccountJoint as an ISO 4217 formatted currency code. */ - currency?: string; + readonly currency?: string; /** * The description of the MonetaryAccountJoint. Defaults to 'bunq account'. */ - description?: string; + readonly description?: string; /** * The daily spending limit Amount of the MonetaryAccountJoint. Defaults to 1000 EUR. Currency must match the MonetaryAccountJoint's currency. Limited to 10000 EUR. */ - daily_limit?: IAmount; + readonly daily_limit?: IAmount; /** * The maximum Amount the MonetaryAccountJoint can be 'in the red'. */ - overdraft_limit?: IAmount; + readonly overdraft_limit?: IAmount; /** * The current available balance Amount of the MonetaryAccountJoint. */ - balance?: IAmount; + readonly balance?: IAmount; /** * The Aliases for the MonetaryAccountJoint. */ - alias?: Array; + readonly alias?: Array; /** * The MonetaryAccountJoint's public UUID. */ - public_uuid?: string; + readonly public_uuid?: string; /** * The status of the MonetaryAccountJoint. Can be: ACTIVE, BLOCKED, CANCELLED or PENDING_REOPEN */ - status?: string; + readonly status?: string; /** * The sub-status of the MonetaryAccountJoint providing extra information regarding the status. Will be NONE for ACTIVE or PENDING_REOPEN, COMPLETELY or ONLY_ACCEPTING_INCOMING for BLOCKED and REDEMPTION_INVOLUNTARY, REDEMPTION_VOLUNTARY or PERMANENT for CANCELLED. */ - sub_status?: string; + readonly sub_status?: string; /** * The reason for voluntarily cancelling (closing) the MonetaryAccountJoint, can only be OTHER. */ - reason?: string; + readonly reason?: string; /** * The optional free-form reason for voluntarily cancelling (closing) the MonetaryAccountJoint. Can be any user provided message. */ - reason_description?: string; + readonly reason_description?: string; /** * The users the account will be joint with. */ - all_co_owner?: Array; + readonly all_co_owner?: Array; /** * The id of the User who owns the MonetaryAccountJoint. */ - user_id?: number; + readonly user_id?: number; /** * The profile of the account. */ - monetary_account_profile?: IMonetaryAccountProfile; + readonly monetary_account_profile?: IMonetaryAccountProfile; /** * The settings of the MonetaryAccountJoint. */ - setting?: IMonetaryAccountSetting; + readonly setting?: IMonetaryAccountSetting; /** * The id of the AutoSave. */ - auto_save_id?: number; + readonly auto_save_id?: number; /** * The ids of the AutoSave. */ - all_auto_save_id?: Array; + readonly all_auto_save_id?: Array; } export interface IMonetaryAccountJointCreate { /** * The id of the created item */ - Id?: BunqId; + readonly Id?: BunqId; } export interface IMonetaryAccountJoint { @@ -8024,188 +8026,188 @@ export interface IMonetaryAccountBankUpdate { /** * The id of the created item */ - Id?: BunqId; + readonly Id?: BunqId; } export interface IMonetaryAccountBankRead { /** * The id of the MonetaryAccountBank. */ - id?: number; + readonly id?: number; /** * The timestamp of the MonetaryAccountBank's creation. */ - created?: string; + readonly created?: string; /** * The timestamp of the MonetaryAccountBank's last update. */ - updated?: string; + readonly updated?: string; /** * The Avatar of the MonetaryAccountBank. */ - avatar?: IAvatar; + readonly avatar?: IAvatar; /** * The currency of the MonetaryAccountBank as an ISO 4217 formatted currency code. */ - currency?: string; + readonly currency?: string; /** * The description of the MonetaryAccountBank. Defaults to 'bunq account'. */ - description?: string; + readonly description?: string; /** * The daily spending limit Amount of the MonetaryAccountBank. Defaults to 1000 EUR. Currency must match the MonetaryAccountBank's currency. Limited to 10000 EUR. */ - daily_limit?: IAmount; + readonly daily_limit?: IAmount; /** * The maximum Amount the MonetaryAccountBank can be 'in the red'. */ - overdraft_limit?: IAmount; + readonly overdraft_limit?: IAmount; /** * The current available balance Amount of the MonetaryAccountBank. */ - balance?: IAmount; + readonly balance?: IAmount; /** * The Aliases for the MonetaryAccountBank. */ - alias?: Array; + readonly alias?: Array; /** * The MonetaryAccountBank's public UUID. */ - public_uuid?: string; + readonly public_uuid?: string; /** * The status of the MonetaryAccountBank. Can be: ACTIVE, BLOCKED, CANCELLED or PENDING_REOPEN */ - status?: string; + readonly status?: string; /** * The sub-status of the MonetaryAccountBank providing extra information regarding the status. Will be NONE for ACTIVE or PENDING_REOPEN, COMPLETELY or ONLY_ACCEPTING_INCOMING for BLOCKED and REDEMPTION_INVOLUNTARY, REDEMPTION_VOLUNTARY or PERMANENT for CANCELLED. */ - sub_status?: string; + readonly sub_status?: string; /** * The reason for voluntarily cancelling (closing) the MonetaryAccountBank, can only be OTHER. */ - reason?: string; + readonly reason?: string; /** * The optional free-form reason for voluntarily cancelling (closing) the MonetaryAccountBank. Can be any user provided message. */ - reason_description?: string; + readonly reason_description?: string; /** * The id of the User who owns the MonetaryAccountBank. */ - user_id?: number; + readonly user_id?: number; /** * The profile of the account. */ - monetary_account_profile?: IMonetaryAccountProfile; + readonly monetary_account_profile?: IMonetaryAccountProfile; /** * The legal name of the user / company using this monetary account. */ - display_name?: string; + readonly display_name?: string; /** * The settings of the MonetaryAccountBank. */ - setting?: IMonetaryAccountSetting; + readonly setting?: IMonetaryAccountSetting; /** * The id of the AutoSave. */ - auto_save_id?: number; + readonly auto_save_id?: number; /** * The ids of the AutoSave. */ - all_auto_save_id?: Array; + readonly all_auto_save_id?: Array; } export interface IMonetaryAccountBankListing { /** * The id of the MonetaryAccountBank. */ - id?: number; + readonly id?: number; /** * The timestamp of the MonetaryAccountBank's creation. */ - created?: string; + readonly created?: string; /** * The timestamp of the MonetaryAccountBank's last update. */ - updated?: string; + readonly updated?: string; /** * The Avatar of the MonetaryAccountBank. */ - avatar?: IAvatar; + readonly avatar?: IAvatar; /** * The currency of the MonetaryAccountBank as an ISO 4217 formatted currency code. */ - currency?: string; + readonly currency?: string; /** * The description of the MonetaryAccountBank. Defaults to 'bunq account'. */ - description?: string; + readonly description?: string; /** * The daily spending limit Amount of the MonetaryAccountBank. Defaults to 1000 EUR. Currency must match the MonetaryAccountBank's currency. Limited to 10000 EUR. */ - daily_limit?: IAmount; + readonly daily_limit?: IAmount; /** * The maximum Amount the MonetaryAccountBank can be 'in the red'. */ - overdraft_limit?: IAmount; + readonly overdraft_limit?: IAmount; /** * The current available balance Amount of the MonetaryAccountBank. */ - balance?: IAmount; + readonly balance?: IAmount; /** * The Aliases for the MonetaryAccountBank. */ - alias?: Array; + readonly alias?: Array; /** * The MonetaryAccountBank's public UUID. */ - public_uuid?: string; + readonly public_uuid?: string; /** * The status of the MonetaryAccountBank. Can be: ACTIVE, BLOCKED, CANCELLED or PENDING_REOPEN */ - status?: string; + readonly status?: string; /** * The sub-status of the MonetaryAccountBank providing extra information regarding the status. Will be NONE for ACTIVE or PENDING_REOPEN, COMPLETELY or ONLY_ACCEPTING_INCOMING for BLOCKED and REDEMPTION_INVOLUNTARY, REDEMPTION_VOLUNTARY or PERMANENT for CANCELLED. */ - sub_status?: string; + readonly sub_status?: string; /** * The reason for voluntarily cancelling (closing) the MonetaryAccountBank, can only be OTHER. */ - reason?: string; + readonly reason?: string; /** * The optional free-form reason for voluntarily cancelling (closing) the MonetaryAccountBank. Can be any user provided message. */ - reason_description?: string; + readonly reason_description?: string; /** * The id of the User who owns the MonetaryAccountBank. */ - user_id?: number; + readonly user_id?: number; /** * The profile of the account. */ - monetary_account_profile?: IMonetaryAccountProfile; + readonly monetary_account_profile?: IMonetaryAccountProfile; /** * The legal name of the user / company using this monetary account. */ - display_name?: string; + readonly display_name?: string; /** * The settings of the MonetaryAccountBank. */ - setting?: IMonetaryAccountSetting; + readonly setting?: IMonetaryAccountSetting; /** * The id of the AutoSave. */ - auto_save_id?: number; + readonly auto_save_id?: number; /** * The ids of the AutoSave. */ - all_auto_save_id?: Array; + readonly all_auto_save_id?: Array; } export interface IMonetaryAccountBankCreate { /** * The id of the created item */ - Id?: BunqId; + readonly Id?: BunqId; } export interface IMonetaryAccountBank { @@ -8255,405 +8257,405 @@ export interface IMasterCardActionRead { /** * The id of the MastercardAction. */ - id?: number; + readonly id?: number; /** * The id of the monetary account this action links to. */ - monetary_account_id?: number; + readonly monetary_account_id?: number; /** * The id of the card this action links to. */ - card_id?: number; + readonly card_id?: number; /** * The amount of the transaction in local currency. */ - amount_local?: IAmount; + readonly amount_local?: IAmount; /** * The amount of the transaction in local currency. */ - amount_converted?: IAmount; + readonly amount_converted?: IAmount; /** * The amount of the transaction in the monetary account's currency. */ - amount_billing?: IAmount; + readonly amount_billing?: IAmount; /** * The original amount in local currency. */ - amount_original_local?: IAmount; + readonly amount_original_local?: IAmount; /** * The original amount in the monetary account's currency. */ - amount_original_billing?: IAmount; + readonly amount_original_billing?: IAmount; /** * The fee amount as charged by the merchant, if applicable. */ - amount_fee?: IAmount; + readonly amount_fee?: IAmount; /** * The response code by which authorised transaction can be identified as authorised by bunq. */ - card_authorisation_id_response?: string; + readonly card_authorisation_id_response?: string; /** * Why the transaction was denied, if it was denied, or just ALLOWED. */ - decision?: string; + readonly decision?: string; /** * The payment status of the transaction. For example PAYMENT_SUCCESSFUL, for a successful payment. */ - payment_status?: string; + readonly payment_status?: string; /** * Empty if allowed, otherwise a textual explanation of why it was denied. */ - decision_description?: string; + readonly decision_description?: string; /** * Empty if allowed, otherwise a textual explanation of why it was denied in user's language. */ - decision_description_translated?: string; + readonly decision_description_translated?: string; /** * The description for this transaction to display. */ - description?: string; + readonly description?: string; /** * The status in the authorisation process. */ - authorisation_status?: string; + readonly authorisation_status?: string; /** * The type of transaction that was delivered using the card. */ - authorisation_type?: string; + readonly authorisation_type?: string; /** * The type of entry mode the user used. Can be 'ATM', 'ICC', 'MAGNETIC_STRIPE' or 'E_COMMERCE'. */ - pan_entry_mode_user?: string; + readonly pan_entry_mode_user?: string; /** * The setlement status in the authorisation process. */ - settlement_status?: string; + readonly settlement_status?: string; /** * The clearing status of the authorisation. Can be 'PENDING', 'FIRST_PRESENTMENT_COMPLETE' or 'REFUND_LENIENCY'. */ - clearing_status?: string; + readonly clearing_status?: string; /** * The maturity date. */ - maturity_date?: string; + readonly maturity_date?: string; /** * The city where the message originates from as announced by the terminal. */ - city?: string; + readonly city?: string; /** * The monetary account label of the account that this action is created for. */ - alias?: ILabelMonetaryAccount; + readonly alias?: ILabelMonetaryAccount; /** * The monetary account label of the counterparty. */ - counterparty_alias?: ILabelMonetaryAccount; + readonly counterparty_alias?: ILabelMonetaryAccount; /** * The label of the card. */ - label_card?: ILabelCard; + readonly label_card?: ILabelCard; /** * If this is a tokenisation action, this shows the status of the token. */ - token_status?: string; + readonly token_status?: string; /** * If this is a reservation, the moment the reservation will expire. */ - reservation_expiry_time?: string; + readonly reservation_expiry_time?: string; /** * The time when the processing of the clearing is expired, refunding the authorisation. */ - clearing_expiry_time?: string; + readonly clearing_expiry_time?: string; /** * The type of the limit applied to validate if this MasterCardAction was within the spending limits. The returned string matches the limit types as defined in the card endpoint. */ - applied_limit?: string; + readonly applied_limit?: string; /** * Whether or not chat messages are allowed. */ - allow_chat?: boolean; + readonly allow_chat?: boolean; /** * The secure code id for this mastercard action or null. */ - secure_code_id?: number; + readonly secure_code_id?: number; /** * The ID of the wallet provider as defined by MasterCard. 420 = bunq Android app with Tap&Pay; 103 = Apple Pay. */ - wallet_provider_id?: string; + readonly wallet_provider_id?: string; /** * The reference to the object used for split the bill. Can be RequestInquiry or RequestInquiryBatch */ - request_reference_split_the_bill?: Array; + readonly request_reference_split_the_bill?: Array; } export interface IMasterCardActionListing { /** * The id of the MastercardAction. */ - id?: number; + readonly id?: number; /** * The id of the monetary account this action links to. */ - monetary_account_id?: number; + readonly monetary_account_id?: number; /** * The id of the card this action links to. */ - card_id?: number; + readonly card_id?: number; /** * The amount of the transaction in local currency. */ - amount_local?: IAmount; + readonly amount_local?: IAmount; /** * The amount of the transaction in local currency. */ - amount_converted?: IAmount; + readonly amount_converted?: IAmount; /** * The amount of the transaction in the monetary account's currency. */ - amount_billing?: IAmount; + readonly amount_billing?: IAmount; /** * The original amount in local currency. */ - amount_original_local?: IAmount; + readonly amount_original_local?: IAmount; /** * The original amount in the monetary account's currency. */ - amount_original_billing?: IAmount; + readonly amount_original_billing?: IAmount; /** * The fee amount as charged by the merchant, if applicable. */ - amount_fee?: IAmount; + readonly amount_fee?: IAmount; /** * The response code by which authorised transaction can be identified as authorised by bunq. */ - card_authorisation_id_response?: string; + readonly card_authorisation_id_response?: string; /** * Why the transaction was denied, if it was denied, or just ALLOWED. */ - decision?: string; + readonly decision?: string; /** * The payment status of the transaction. For example PAYMENT_SUCCESSFUL, for a successful payment. */ - payment_status?: string; + readonly payment_status?: string; /** * Empty if allowed, otherwise a textual explanation of why it was denied. */ - decision_description?: string; + readonly decision_description?: string; /** * Empty if allowed, otherwise a textual explanation of why it was denied in user's language. */ - decision_description_translated?: string; + readonly decision_description_translated?: string; /** * The description for this transaction to display. */ - description?: string; + readonly description?: string; /** * The status in the authorisation process. */ - authorisation_status?: string; + readonly authorisation_status?: string; /** * The type of transaction that was delivered using the card. */ - authorisation_type?: string; + readonly authorisation_type?: string; /** * The type of entry mode the user used. Can be 'ATM', 'ICC', 'MAGNETIC_STRIPE' or 'E_COMMERCE'. */ - pan_entry_mode_user?: string; + readonly pan_entry_mode_user?: string; /** * The setlement status in the authorisation process. */ - settlement_status?: string; + readonly settlement_status?: string; /** * The clearing status of the authorisation. Can be 'PENDING', 'FIRST_PRESENTMENT_COMPLETE' or 'REFUND_LENIENCY'. */ - clearing_status?: string; + readonly clearing_status?: string; /** * The maturity date. */ - maturity_date?: string; + readonly maturity_date?: string; /** * The city where the message originates from as announced by the terminal. */ - city?: string; + readonly city?: string; /** * The monetary account label of the account that this action is created for. */ - alias?: ILabelMonetaryAccount; + readonly alias?: ILabelMonetaryAccount; /** * The monetary account label of the counterparty. */ - counterparty_alias?: ILabelMonetaryAccount; + readonly counterparty_alias?: ILabelMonetaryAccount; /** * The label of the card. */ - label_card?: ILabelCard; + readonly label_card?: ILabelCard; /** * If this is a tokenisation action, this shows the status of the token. */ - token_status?: string; + readonly token_status?: string; /** * If this is a reservation, the moment the reservation will expire. */ - reservation_expiry_time?: string; + readonly reservation_expiry_time?: string; /** * The time when the processing of the clearing is expired, refunding the authorisation. */ - clearing_expiry_time?: string; + readonly clearing_expiry_time?: string; /** * The type of the limit applied to validate if this MasterCardAction was within the spending limits. The returned string matches the limit types as defined in the card endpoint. */ - applied_limit?: string; + readonly applied_limit?: string; /** * Whether or not chat messages are allowed. */ - allow_chat?: boolean; + readonly allow_chat?: boolean; /** * The secure code id for this mastercard action or null. */ - secure_code_id?: number; + readonly secure_code_id?: number; /** * The ID of the wallet provider as defined by MasterCard. 420 = bunq Android app with Tap&Pay; 103 = Apple Pay. */ - wallet_provider_id?: string; + readonly wallet_provider_id?: string; /** * The reference to the object used for split the bill. Can be RequestInquiry or RequestInquiryBatch */ - request_reference_split_the_bill?: Array; + readonly request_reference_split_the_bill?: Array; } export interface IMasterCardAction { /** * The id of the MastercardAction. */ - id?: number; + readonly id?: number; /** * The id of the monetary account this action links to. */ - monetary_account_id?: number; + readonly monetary_account_id?: number; /** * The id of the card this action links to. */ - card_id?: number; + readonly card_id?: number; /** * The amount of the transaction in local currency. */ - amount_local?: IAmount; + readonly amount_local?: IAmount; /** * The amount of the transaction in local currency. */ - amount_converted?: IAmount; + readonly amount_converted?: IAmount; /** * The amount of the transaction in the monetary account's currency. */ - amount_billing?: IAmount; + readonly amount_billing?: IAmount; /** * The original amount in local currency. */ - amount_original_local?: IAmount; + readonly amount_original_local?: IAmount; /** * The original amount in the monetary account's currency. */ - amount_original_billing?: IAmount; + readonly amount_original_billing?: IAmount; /** * The fee amount as charged by the merchant, if applicable. */ - amount_fee?: IAmount; + readonly amount_fee?: IAmount; /** * The response code by which authorised transaction can be identified as authorised by bunq. */ - card_authorisation_id_response?: string; + readonly card_authorisation_id_response?: string; /** * Why the transaction was denied, if it was denied, or just ALLOWED. */ - decision?: string; + readonly decision?: string; /** * The payment status of the transaction. For example PAYMENT_SUCCESSFUL, for a successful payment. */ - payment_status?: string; + readonly payment_status?: string; /** * Empty if allowed, otherwise a textual explanation of why it was denied. */ - decision_description?: string; + readonly decision_description?: string; /** * Empty if allowed, otherwise a textual explanation of why it was denied in user's language. */ - decision_description_translated?: string; + readonly decision_description_translated?: string; /** * The description for this transaction to display. */ - description?: string; + readonly description?: string; /** * The status in the authorisation process. */ - authorisation_status?: string; + readonly authorisation_status?: string; /** * The type of transaction that was delivered using the card. */ - authorisation_type?: string; + readonly authorisation_type?: string; /** * The type of entry mode the user used. Can be 'ATM', 'ICC', 'MAGNETIC_STRIPE' or 'E_COMMERCE'. */ - pan_entry_mode_user?: string; + readonly pan_entry_mode_user?: string; /** * The setlement status in the authorisation process. */ - settlement_status?: string; + readonly settlement_status?: string; /** * The clearing status of the authorisation. Can be 'PENDING', 'FIRST_PRESENTMENT_COMPLETE' or 'REFUND_LENIENCY'. */ - clearing_status?: string; + readonly clearing_status?: string; /** * The maturity date. */ - maturity_date?: string; + readonly maturity_date?: string; /** * The city where the message originates from as announced by the terminal. */ - city?: string; + readonly city?: string; /** * The monetary account label of the account that this action is created for. */ - alias?: ILabelMonetaryAccount; + readonly alias?: ILabelMonetaryAccount; /** * The monetary account label of the counterparty. */ - counterparty_alias?: ILabelMonetaryAccount; + readonly counterparty_alias?: ILabelMonetaryAccount; /** * The label of the card. */ - label_card?: ILabelCard; + readonly label_card?: ILabelCard; /** * If this is a tokenisation action, this shows the status of the token. */ - token_status?: string; + readonly token_status?: string; /** * If this is a reservation, the moment the reservation will expire. */ - reservation_expiry_time?: string; + readonly reservation_expiry_time?: string; /** * The time when the processing of the clearing is expired, refunding the authorisation. */ - clearing_expiry_time?: string; + readonly clearing_expiry_time?: string; /** * The type of the limit applied to validate if this MasterCardAction was within the spending limits. The returned string matches the limit types as defined in the card endpoint. */ - applied_limit?: string; + readonly applied_limit?: string; /** * Whether or not chat messages are allowed. */ - allow_chat?: boolean; + readonly allow_chat?: boolean; /** * The secure code id for this mastercard action or null. */ - secure_code_id?: number; + readonly secure_code_id?: number; /** * The ID of the wallet provider as defined by MasterCard. 420 = bunq Android app with Tap&Pay; 103 = Apple Pay. */ - wallet_provider_id?: string; + readonly wallet_provider_id?: string; /** * The reference to the object used for split the bill. Can be RequestInquiry or RequestInquiryBatch */ - request_reference_split_the_bill?: Array; + readonly request_reference_split_the_bill?: Array; } export interface ILabelUser { @@ -8672,89 +8674,89 @@ export interface ILabelUser { /** * The current avatar of the user. */ - avatar?: IAvatar; + readonly avatar?: IAvatar; /** * The current nickname of the user. */ - public_nick_name?: string; + readonly public_nick_name?: string; } export interface ILabelMonetaryAccount { /** * The IBAN of the monetary account. */ - iban?: string; + readonly iban?: string; /** * The name to display with this monetary account. */ - display_name?: string; + readonly display_name?: string; /** * The avatar of the monetary account. */ - avatar?: IAvatar; + readonly avatar?: IAvatar; /** * The user this monetary account belongs to. */ - label_user?: ILabelUser; + readonly label_user?: ILabelUser; /** * The country of the user. Formatted as a ISO 3166-1 alpha-2 country code. */ - country?: string; + readonly country?: string; /** * Bunq.me pointer with type and value. */ - bunq_me?: IPointer; + readonly bunq_me?: IPointer; /** * Whether or not the monetary account is light. */ - is_light?: boolean; + readonly is_light?: boolean; /** * The BIC used for a SWIFT payment. */ - swift_bic?: string; + readonly swift_bic?: string; /** * The account number used for a SWIFT payment. May or may not be an IBAN. */ - swift_account_number?: string; + readonly swift_account_number?: string; /** * The account number used for a Transferwise payment. May or may not be an IBAN. */ - transferwise_account_number?: string; + readonly transferwise_account_number?: string; /** * The bank code used for a Transferwise payment. May or may not be a BIC. */ - transferwise_bank_code?: string; + readonly transferwise_bank_code?: string; /** * The merchant category code. */ - merchant_category_code?: string; + readonly merchant_category_code?: string; } export interface ILabelCard { /** * The public UUID. */ - uuid?: string; + readonly uuid?: string; /** * The type of the card. */ - type?: string; + readonly type?: string; /** * The second line on the card. */ - second_line?: string; + readonly second_line?: string; /** * The date this card will expire. */ - expiry_date?: string; + readonly expiry_date?: string; /** * The status of the card. */ - status?: string; + readonly status?: string; /** * The owner of this card. */ - label_user?: ILabelUser; + readonly label_user?: ILabelUser; } export interface IIssuer { @@ -8772,220 +8774,220 @@ export interface IInvoiceRead { /** * The id of the invoice object. */ - id?: number; + readonly id?: number; /** * The timestamp of the invoice object's creation. */ - created?: string; + readonly created?: string; /** * The timestamp of the invoice object's last update. */ - updated?: string; + readonly updated?: string; /** * The invoice date. */ - invoice_date?: string; + readonly invoice_date?: string; /** * The invoice number. */ - invoice_number?: string; + readonly invoice_number?: string; /** * The invoice status. */ - status?: string; + readonly status?: string; /** * The category to display to the user. */ - category?: string; + readonly category?: string; /** * The invoice item groups. */ - group?: Array; + readonly group?: Array; /** * The total discounted item price including VAT. */ - total_vat_inclusive?: IAmount; + readonly total_vat_inclusive?: IAmount; /** * The total discounted item price excluding VAT. */ - total_vat_exclusive?: IAmount; + readonly total_vat_exclusive?: IAmount; /** * The VAT on the total discounted item price. */ - total_vat?: IAmount; + readonly total_vat?: IAmount; /** * The label that's displayed to the counterparty with the invoice. Includes user. */ - alias?: ILabelMonetaryAccount; + readonly alias?: ILabelMonetaryAccount; /** * The customer's address. */ - address?: IAddress; + readonly address?: IAddress; /** * The label of the counterparty of the invoice. Includes user. */ - counterparty_alias?: ILabelMonetaryAccount; + readonly counterparty_alias?: ILabelMonetaryAccount; /** * The company's address. */ - counterparty_address?: IAddress; + readonly counterparty_address?: IAddress; /** * The company's chamber of commerce number. */ - chamber_of_commerce_number?: string; + readonly chamber_of_commerce_number?: string; /** * The company's chamber of commerce number. */ - vat_number?: string; + readonly vat_number?: string; /** * The reference to the object used for split the bill. Can be RequestInquiry or RequestInquiryBatch */ - request_reference_split_the_bill?: Array; + readonly request_reference_split_the_bill?: Array; } export interface IInvoiceListing { /** * The id of the invoice object. */ - id?: number; + readonly id?: number; /** * The timestamp of the invoice object's creation. */ - created?: string; + readonly created?: string; /** * The timestamp of the invoice object's last update. */ - updated?: string; + readonly updated?: string; /** * The invoice date. */ - invoice_date?: string; + readonly invoice_date?: string; /** * The invoice number. */ - invoice_number?: string; + readonly invoice_number?: string; /** * The invoice status. */ - status?: string; + readonly status?: string; /** * The category to display to the user. */ - category?: string; + readonly category?: string; /** * The invoice item groups. */ - group?: Array; + readonly group?: Array; /** * The total discounted item price including VAT. */ - total_vat_inclusive?: IAmount; + readonly total_vat_inclusive?: IAmount; /** * The total discounted item price excluding VAT. */ - total_vat_exclusive?: IAmount; + readonly total_vat_exclusive?: IAmount; /** * The VAT on the total discounted item price. */ - total_vat?: IAmount; + readonly total_vat?: IAmount; /** * The label that's displayed to the counterparty with the invoice. Includes user. */ - alias?: ILabelMonetaryAccount; + readonly alias?: ILabelMonetaryAccount; /** * The customer's address. */ - address?: IAddress; + readonly address?: IAddress; /** * The label of the counterparty of the invoice. Includes user. */ - counterparty_alias?: ILabelMonetaryAccount; + readonly counterparty_alias?: ILabelMonetaryAccount; /** * The company's address. */ - counterparty_address?: IAddress; + readonly counterparty_address?: IAddress; /** * The company's chamber of commerce number. */ - chamber_of_commerce_number?: string; + readonly chamber_of_commerce_number?: string; /** * The company's chamber of commerce number. */ - vat_number?: string; + readonly vat_number?: string; /** * The reference to the object used for split the bill. Can be RequestInquiry or RequestInquiryBatch */ - request_reference_split_the_bill?: Array; + readonly request_reference_split_the_bill?: Array; } export interface IInvoiceItemGroup { /** * The type of the invoice item group. */ - type?: string; + readonly type?: string; /** * The description of the type of the invoice item group. */ - type_description?: string; + readonly type_description?: string; /** * The translated description of the type of the invoice item group. */ - type_description_translated?: string; + readonly type_description_translated?: string; /** * The identifier of the invoice item group. */ - instance_description?: string; + readonly instance_description?: string; /** * The unit item price excluding VAT. */ - product_vat_exclusive?: IAmount; + readonly product_vat_exclusive?: IAmount; /** * The unit item price including VAT. */ - product_vat_inclusive?: IAmount; + readonly product_vat_inclusive?: IAmount; /** * The invoice items in the group. */ - item?: Array; + readonly item?: Array; } export interface IInvoiceItem { /** * The billing date of the item. */ - billing_date?: string; + readonly billing_date?: string; /** * The price description. */ - type_description?: string; + readonly type_description?: string; /** * The translated price description. */ - type_description_translated?: string; + readonly type_description_translated?: string; /** * The unit item price excluding VAT. */ - unit_vat_exclusive?: IAmount; + readonly unit_vat_exclusive?: IAmount; /** * The unit item price including VAT. */ - unit_vat_inclusive?: IAmount; + readonly unit_vat_inclusive?: IAmount; /** * The VAT tax fraction. */ - vat?: number; + readonly vat?: number; /** * The number of items priced. */ - quantity?: number; + readonly quantity?: number; /** * The item price excluding VAT. */ - total_vat_exclusive?: IAmount; + readonly total_vat_exclusive?: IAmount; /** * The item price including VAT. */ - total_vat_inclusive?: IAmount; + readonly total_vat_inclusive?: IAmount; } export interface IInvoiceExportPdfContentListing {} @@ -8994,134 +8996,134 @@ export interface IInvoiceByUserRead { /** * The id of the invoice object. */ - id?: number; + readonly id?: number; /** * The timestamp of the invoice object's creation. */ - created?: string; + readonly created?: string; /** * The timestamp of the invoice object's last update. */ - updated?: string; + readonly updated?: string; /** * The invoice date. */ - invoice_date?: string; + readonly invoice_date?: string; /** * The invoice number. */ - invoice_number?: string; + readonly invoice_number?: string; /** * The invoice status. */ - status?: string; + readonly status?: string; /** * The invoice item groups. */ - group?: Array; + readonly group?: Array; /** * The total discounted item price including VAT. */ - total_vat_inclusive?: IAmount; + readonly total_vat_inclusive?: IAmount; /** * The total discounted item price excluding VAT. */ - total_vat_exclusive?: IAmount; + readonly total_vat_exclusive?: IAmount; /** * The VAT on the total discounted item price. */ - total_vat?: IAmount; + readonly total_vat?: IAmount; /** * The label that's displayed to the counterparty with the invoice. Includes user. */ - alias?: ILabelMonetaryAccount; + readonly alias?: ILabelMonetaryAccount; /** * The customer's address. */ - address?: IAddress; + readonly address?: IAddress; /** * The label of the counterparty of the invoice. Includes user. */ - counterparty_alias?: ILabelMonetaryAccount; + readonly counterparty_alias?: ILabelMonetaryAccount; /** * The company's address. */ - counterparty_address?: IAddress; + readonly counterparty_address?: IAddress; /** * The company's chamber of commerce number. */ - chamber_of_commerce_number?: string; + readonly chamber_of_commerce_number?: string; /** * The company's chamber of commerce number. */ - vat_number?: string; + readonly vat_number?: string; } export interface IInvoiceByUserListing { /** * The id of the invoice object. */ - id?: number; + readonly id?: number; /** * The timestamp of the invoice object's creation. */ - created?: string; + readonly created?: string; /** * The timestamp of the invoice object's last update. */ - updated?: string; + readonly updated?: string; /** * The invoice date. */ - invoice_date?: string; + readonly invoice_date?: string; /** * The invoice number. */ - invoice_number?: string; + readonly invoice_number?: string; /** * The invoice status. */ - status?: string; + readonly status?: string; /** * The invoice item groups. */ - group?: Array; + readonly group?: Array; /** * The total discounted item price including VAT. */ - total_vat_inclusive?: IAmount; + readonly total_vat_inclusive?: IAmount; /** * The total discounted item price excluding VAT. */ - total_vat_exclusive?: IAmount; + readonly total_vat_exclusive?: IAmount; /** * The VAT on the total discounted item price. */ - total_vat?: IAmount; + readonly total_vat?: IAmount; /** * The label that's displayed to the counterparty with the invoice. Includes user. */ - alias?: ILabelMonetaryAccount; + readonly alias?: ILabelMonetaryAccount; /** * The customer's address. */ - address?: IAddress; + readonly address?: IAddress; /** * The label of the counterparty of the invoice. Includes user. */ - counterparty_alias?: ILabelMonetaryAccount; + readonly counterparty_alias?: ILabelMonetaryAccount; /** * The company's address. */ - counterparty_address?: IAddress; + readonly counterparty_address?: IAddress; /** * The company's chamber of commerce number. */ - chamber_of_commerce_number?: string; + readonly chamber_of_commerce_number?: string; /** * The company's chamber of commerce number. */ - vat_number?: string; + readonly vat_number?: string; } export interface IInvoice { @@ -9140,133 +9142,133 @@ export interface IInvoice { /** * The id of the invoice object. */ - id?: number; + readonly id?: number; /** * The timestamp of the invoice object's creation. */ - created?: string; + readonly created?: string; /** * The timestamp of the invoice object's last update. */ - updated?: string; + readonly updated?: string; /** * The invoice date. */ - invoice_date?: string; + readonly invoice_date?: string; /** * The invoice number. */ - invoice_number?: string; + readonly invoice_number?: string; /** * The category to display to the user. */ - category?: string; + readonly category?: string; /** * The invoice item groups. */ - group?: Array; + readonly group?: Array; /** * The total discounted item price including VAT. */ - total_vat_inclusive?: IAmount; + readonly total_vat_inclusive?: IAmount; /** * The total discounted item price excluding VAT. */ - total_vat_exclusive?: IAmount; + readonly total_vat_exclusive?: IAmount; /** * The VAT on the total discounted item price. */ - total_vat?: IAmount; + readonly total_vat?: IAmount; /** * The label that's displayed to the counterparty with the invoice. Includes user. */ - alias?: ILabelMonetaryAccount; + readonly alias?: ILabelMonetaryAccount; /** * The customer's address. */ - address?: IAddress; + readonly address?: IAddress; /** * The label of the counterparty of the invoice. Includes user. */ - counterparty_alias?: ILabelMonetaryAccount; + readonly counterparty_alias?: ILabelMonetaryAccount; /** * The company's address. */ - counterparty_address?: IAddress; + readonly counterparty_address?: IAddress; /** * The company's chamber of commerce number. */ - chamber_of_commerce_number?: string; + readonly chamber_of_commerce_number?: string; /** * The company's chamber of commerce number. */ - vat_number?: string; + readonly vat_number?: string; /** * The reference to the object used for split the bill. Can be RequestInquiry or RequestInquiryBatch */ - request_reference_split_the_bill?: Array; + readonly request_reference_split_the_bill?: Array; } export interface IInstallationToken { /** * The id of the Token. */ - id?: number; + readonly id?: number; /** * The timestamp of the Token's creation. */ - created?: string; + readonly created?: string; /** * The timestamp of the Token's last update. */ - updated?: string; + readonly updated?: string; /** * The installation token is the token the client has to provide in the "X-Bunq-Client-Authentication" header for the creation of a DeviceServer and SessionServer. */ - token?: string; + readonly token?: string; } export interface IInstallationServerPublicKeyListing { /** * The server's public key for this Installation. */ - server_public_key?: string; + readonly server_public_key?: string; } export interface IInstallationServerPublicKey { /** * The server's public key for this Installation. You should use this key to verify the "X-Bunq-Server-Signature" header for each response from the server. */ - server_public_key?: string; + readonly server_public_key?: string; } export interface IInstallationRead { /** * The id of the Installation as created on the server. You can use this id to request the server's public key again. */ - id?: number; + readonly id?: number; } export interface IInstallationListing { /** * The id of the Installation as created on the server. You can use this id to request the server's public key again. */ - id?: number; + readonly id?: number; } export interface IInstallationCreate { /** * The Id object of the created Installation */ - Id?: BunqId; + readonly Id?: BunqId; /** * The Token object of this Installation. */ - Token?: IInstallationToken; + readonly Token?: IInstallationToken; /** * The ServerPublicKey object of the created Installation */ - ServerPublicKey?: IInstallationServerPublicKey; + readonly ServerPublicKey?: IInstallationServerPublicKey; } export interface IInstallation { @@ -9280,198 +9282,198 @@ export interface IInsightListing { /** * The category. */ - category?: string; + readonly category?: string; /** * The translated category. */ - category_translated?: string; + readonly category_translated?: string; /** * The total amount of the transactions in the category. */ - amount_total?: IAmount; + readonly amount_total?: IAmount; /** * The number of the transactions in the category. */ - number_of_transactions?: number; + readonly number_of_transactions?: number; } export interface IInsightEventListing { /** * The id of the event. */ - id?: number; + readonly id?: number; /** * The timestamp of the event's creation. */ - created?: string; + readonly created?: string; /** * The timestamp of the event's last update. */ - updated?: string; + readonly updated?: string; /** * The performed action. Can be: CREATE or UPDATE. */ - action?: string; + readonly action?: string; /** * The id of the user the event applied to (if it was a user event). */ - user_id?: string; + readonly user_id?: string; /** * The id of the monetary account the event applied to (if it was a monetary account event). */ - monetary_account_id?: string; + readonly monetary_account_id?: string; /** * The details of the external object the event was created for. */ - object?: IEventObject; + readonly object?: IEventObject; /** * The event status. Can be: FINALIZED or AWAITING_REPLY. An example of FINALIZED event is a payment received event, while an AWAITING_REPLY event is a request received event. */ - status?: string; + readonly status?: string; } export interface IImage { /** * The public UUID of the public attachment containing the image. */ - attachment_public_uuid?: string; + readonly attachment_public_uuid?: string; /** * The content-type as a MIME filetype. */ - content_type?: string; + readonly content_type?: string; /** * The image height in pixels. */ - height?: number; + readonly height?: number; /** * The image width in pixels. */ - width?: number; + readonly width?: number; } export interface IIdealMerchantTransactionRead { /** * The id of the monetary account this ideal merchant transaction links to. */ - monetary_account_id?: number; + readonly monetary_account_id?: number; /** * The alias of the monetary account to add money to. */ - alias?: ILabelMonetaryAccount; + readonly alias?: ILabelMonetaryAccount; /** * The alias of the monetary account the money comes from. */ - counterparty_alias?: ILabelMonetaryAccount; + readonly counterparty_alias?: ILabelMonetaryAccount; /** * In case of a successful transaction, the amount of money that will be transferred. */ - amount_guaranteed?: IAmount; + readonly amount_guaranteed?: IAmount; /** * The requested amount of money to add. */ - amount_requested?: IAmount; + readonly amount_requested?: IAmount; /** * When the transaction will expire. */ - expiration?: string; + readonly expiration?: string; /** * The BIC of the issuer. */ - issuer?: string; + readonly issuer?: string; /** * The Name of the issuer. */ - issuer_name?: string; + readonly issuer_name?: string; /** * The URL to visit to */ - issuer_authentication_url?: string; + readonly issuer_authentication_url?: string; /** * The 'purchase ID' of the iDEAL transaction. */ - purchase_identifier?: string; + readonly purchase_identifier?: string; /** * The status of the transaction. */ - status?: string; + readonly status?: string; /** * When the status was last updated. */ - status_timestamp?: string; + readonly status_timestamp?: string; /** * The 'transaction ID' of the iDEAL transaction. */ - transaction_identifier?: string; + readonly transaction_identifier?: string; /** * Whether or not chat messages are allowed. */ - allow_chat?: boolean; + readonly allow_chat?: boolean; } export interface IIdealMerchantTransactionListing { /** * The id of the monetary account this ideal merchant transaction links to. */ - monetary_account_id?: number; + readonly monetary_account_id?: number; /** * The alias of the monetary account to add money to. */ - alias?: ILabelMonetaryAccount; + readonly alias?: ILabelMonetaryAccount; /** * The alias of the monetary account the money comes from. */ - counterparty_alias?: ILabelMonetaryAccount; + readonly counterparty_alias?: ILabelMonetaryAccount; /** * In case of a successful transaction, the amount of money that will be transferred. */ - amount_guaranteed?: IAmount; + readonly amount_guaranteed?: IAmount; /** * The requested amount of money to add. */ - amount_requested?: IAmount; + readonly amount_requested?: IAmount; /** * When the transaction will expire. */ - expiration?: string; + readonly expiration?: string; /** * The BIC of the issuer. */ - issuer?: string; + readonly issuer?: string; /** * The Name of the issuer. */ - issuer_name?: string; + readonly issuer_name?: string; /** * The URL to visit to */ - issuer_authentication_url?: string; + readonly issuer_authentication_url?: string; /** * The 'purchase ID' of the iDEAL transaction. */ - purchase_identifier?: string; + readonly purchase_identifier?: string; /** * The status of the transaction. */ - status?: string; + readonly status?: string; /** * When the status was last updated. */ - status_timestamp?: string; + readonly status_timestamp?: string; /** * The 'transaction ID' of the iDEAL transaction. */ - transaction_identifier?: string; + readonly transaction_identifier?: string; /** * Whether or not chat messages are allowed. */ - allow_chat?: boolean; + readonly allow_chat?: boolean; } export interface IIdealMerchantTransactionCreate { /** * The id of the created item */ - Id?: BunqId; + readonly Id?: BunqId; } export interface IIdealMerchantTransaction { @@ -9486,51 +9488,51 @@ export interface IIdealMerchantTransaction { /** * The id of the monetary account this ideal merchant transaction links to. */ - monetary_account_id?: number; + readonly monetary_account_id?: number; /** * The alias of the monetary account to add money to. */ - alias?: ILabelMonetaryAccount; + readonly alias?: ILabelMonetaryAccount; /** * The alias of the monetary account the money comes from. */ - counterparty_alias?: ILabelMonetaryAccount; + readonly counterparty_alias?: ILabelMonetaryAccount; /** * In case of a successful transaction, the amount of money that will be transferred. */ - amount_guaranteed?: IAmount; + readonly amount_guaranteed?: IAmount; /** * When the transaction will expire. */ - expiration?: string; + readonly expiration?: string; /** * The Name of the issuer. */ - issuer_name?: string; + readonly issuer_name?: string; /** * The URL to visit to */ - issuer_authentication_url?: string; + readonly issuer_authentication_url?: string; /** * The 'purchase ID' of the iDEAL transaction. */ - purchase_identifier?: string; + readonly purchase_identifier?: string; /** * The status of the transaction. */ - status?: string; + readonly status?: string; /** * When the status was last updated. */ - status_timestamp?: string; + readonly status_timestamp?: string; /** * The 'transaction ID' of the iDEAL transaction. */ - transaction_identifier?: string; + readonly transaction_identifier?: string; /** * Whether or not chat messages are allowed. */ - allow_chat?: boolean; + readonly allow_chat?: boolean; } export interface IGeolocation { @@ -9556,99 +9558,99 @@ export interface IFeatureAnnouncementRead { /** * The Avatar of the event overview. */ - avatar?: IAvatar; + readonly avatar?: IAvatar; /** * The event overview title of the feature display */ - title?: string; + readonly title?: string; /** * The event overview subtitle of the feature display */ - sub_title?: string; + readonly sub_title?: string; } export interface IFeatureAnnouncement { /** * The Avatar of the event overview. */ - avatar?: IAvatar; + readonly avatar?: IAvatar; /** * The event overview title of the feature display */ - title?: string; + readonly title?: string; /** * The event overview subtitle of the feature display */ - sub_title?: string; + readonly sub_title?: string; } export interface IExportStatementRead { /** * The id of the customer statement model. */ - id?: number; + readonly id?: number; /** * The timestamp of the statement model's creation. */ - created?: string; + readonly created?: string; /** * The timestamp of the statement model's last update. */ - updated?: string; + readonly updated?: string; /** * The date from when this statement shows transactions. */ - date_start?: string; + readonly date_start?: string; /** * The date until which statement shows transactions. */ - date_end?: string; + readonly date_end?: string; /** * The status of the export. */ - status?: string; + readonly status?: string; /** * MT940 Statement number. Unique per monetary account. */ - statement_number?: number; + readonly statement_number?: number; /** * The format of statement. */ - statement_format?: string; + readonly statement_format?: string; /** * The regional format of a CSV statement. */ - regional_format?: string; + readonly regional_format?: string; /** * The monetary account for which this statement was created. */ - alias_monetary_account?: ILabelMonetaryAccount; + readonly alias_monetary_account?: ILabelMonetaryAccount; } export interface IExportStatementPaymentRead { /** * The id of the single payment statement model. */ - id?: number; + readonly id?: number; /** * The timestamp of the statement model's creation. */ - created?: string; + readonly created?: string; /** * The timestamp of the statement model's last update. */ - updated?: string; + readonly updated?: string; /** * The status of the export. */ - status?: string; + readonly status?: string; } export interface IExportStatementPaymentCreate { /** * The id of the created item */ - Id?: BunqId; + readonly Id?: BunqId; } export interface IExportStatementPaymentContentListing {} @@ -9659,43 +9661,43 @@ export interface IExportStatementListing { /** * The id of the customer statement model. */ - id?: number; + readonly id?: number; /** * The timestamp of the statement model's creation. */ - created?: string; + readonly created?: string; /** * The timestamp of the statement model's last update. */ - updated?: string; + readonly updated?: string; /** * The date from when this statement shows transactions. */ - date_start?: string; + readonly date_start?: string; /** * The date until which statement shows transactions. */ - date_end?: string; + readonly date_end?: string; /** * The status of the export. */ - status?: string; + readonly status?: string; /** * MT940 Statement number. Unique per monetary account. */ - statement_number?: number; + readonly statement_number?: number; /** * The format of statement. */ - statement_format?: string; + readonly statement_format?: string; /** * The regional format of a CSV statement. */ - regional_format?: string; + readonly regional_format?: string; /** * The monetary account for which this statement was created. */ - alias_monetary_account?: ILabelMonetaryAccount; + readonly alias_monetary_account?: ILabelMonetaryAccount; } export interface IExportStatementDelete {} @@ -9704,7 +9706,7 @@ export interface IExportStatementCreate { /** * The id of the created item */ - Id?: BunqId; + readonly Id?: BunqId; } export interface IExportStatementContentListing {} @@ -9736,30 +9738,30 @@ export interface IExportRibRead { /** * The id of the rib as created on the server. */ - id?: number; + readonly id?: number; /** * The timestamp of the RIB's creation. */ - created?: string; + readonly created?: string; /** * The timestamp of the RIB's last update. */ - updated?: string; + readonly updated?: string; } export interface IExportRibListing { /** * The id of the rib as created on the server. */ - id?: number; + readonly id?: number; /** * The timestamp of the RIB's creation. */ - created?: string; + readonly created?: string; /** * The timestamp of the RIB's last update. */ - updated?: string; + readonly updated?: string; } export interface IExportRibDelete {} @@ -9768,7 +9770,7 @@ export interface IExportRibCreate { /** * The id of the rib as created on the server. */ - id?: number; + readonly id?: number; } export interface IExportRibContentListing {} @@ -9779,46 +9781,46 @@ export interface IExportAnnualOverviewRead { /** * The id of the annual overview as created on the server. */ - id?: number; + readonly id?: number; /** * The timestamp of the annual overview 's creation. */ - created?: string; + readonly created?: string; /** * The timestamp of the annual overview 's last update. */ - updated?: string; + readonly updated?: string; /** * The year for which the overview is. */ - year?: number; + readonly year?: number; /** * The user to which this annual overview belongs. */ - alias_user?: ILabelUser; + readonly alias_user?: ILabelUser; } export interface IExportAnnualOverviewListing { /** * The id of the annual overview as created on the server. */ - id?: number; + readonly id?: number; /** * The timestamp of the annual overview 's creation. */ - created?: string; + readonly created?: string; /** * The timestamp of the annual overview 's last update. */ - updated?: string; + readonly updated?: string; /** * The year for which the overview is. */ - year?: number; + readonly year?: number; /** * The user to which this annual overview belongs. */ - alias_user?: ILabelUser; + readonly alias_user?: ILabelUser; } export interface IExportAnnualOverviewDelete {} @@ -9827,7 +9829,7 @@ export interface IExportAnnualOverviewCreate { /** * The id of the annual overview as created on the server. */ - id?: number; + readonly id?: number; } export interface IExportAnnualOverviewContentListing {} @@ -9843,223 +9845,223 @@ export interface IEventRead { /** * The id of the event. */ - id?: number; + readonly id?: number; /** * The timestamp of the event's creation. */ - created?: string; + readonly created?: string; /** * The timestamp of the event's last update. */ - updated?: string; + readonly updated?: string; /** * The performed action. Can be: CREATE or UPDATE. */ - action?: string; + readonly action?: string; /** * The id of the user the event applied to (if it was a user event). */ - user_id?: string; + readonly user_id?: string; /** * The id of the monetary account the event applied to (if it was a monetary account event). */ - monetary_account_id?: string; + readonly monetary_account_id?: string; /** * The details of the external object the event was created for. */ - object?: IEventObject; + readonly object?: IEventObject; /** * The event status. Can be: FINALIZED or AWAITING_REPLY. An example of FINALIZED event is a payment received event, while an AWAITING_REPLY event is a request received event. */ - status?: string; + readonly status?: string; } export interface IEventObject { /** * */ - BunqMeTab?: IBunqMeTab; + readonly BunqMeTab?: IBunqMeTab; /** * */ - BunqMeTabResultResponse?: IBunqMeTabResultResponse; + readonly BunqMeTabResultResponse?: IBunqMeTabResultResponse; /** * */ - BunqMeFundraiserResult?: IBunqMeFundraiserResult; + readonly BunqMeFundraiserResult?: IBunqMeFundraiserResult; /** * */ - Card?: ICard; + readonly Card?: ICard; /** * */ - CardDebit?: ICardDebit; + readonly CardDebit?: ICardDebit; /** * */ - DraftPayment?: IDraftPayment; + readonly DraftPayment?: IDraftPayment; /** * */ - FeatureAnnouncement?: IFeatureAnnouncement; + readonly FeatureAnnouncement?: IFeatureAnnouncement; /** * */ - IdealMerchantTransaction?: IIdealMerchantTransaction; + readonly IdealMerchantTransaction?: IIdealMerchantTransaction; /** * */ - Invoice?: IInvoice; + readonly Invoice?: IInvoice; /** * */ - ScheduledPayment?: ISchedulePayment; + readonly ScheduledPayment?: ISchedulePayment; /** * */ - ScheduledPaymentBatch?: ISchedulePaymentBatch; + readonly ScheduledPaymentBatch?: ISchedulePaymentBatch; /** * */ - ScheduledInstance?: IScheduleInstance; + readonly ScheduledInstance?: IScheduleInstance; /** * */ - MasterCardAction?: IMasterCardAction; + readonly MasterCardAction?: IMasterCardAction; /** * */ - BankSwitchServiceNetherlandsIncomingPayment?: IBankSwitchServiceNetherlandsIncomingPayment; + readonly BankSwitchServiceNetherlandsIncomingPayment?: IBankSwitchServiceNetherlandsIncomingPayment; /** * */ - Payment?: IPayment; + readonly Payment?: IPayment; /** * */ - PaymentBatch?: IPaymentBatch; + readonly PaymentBatch?: IPaymentBatch; /** * */ - RequestInquiryBatch?: IRequestInquiryBatch; + readonly RequestInquiryBatch?: IRequestInquiryBatch; /** * */ - RequestInquiry?: IRequestInquiry; + readonly RequestInquiry?: IRequestInquiry; /** * */ - RequestResponse?: IRequestResponse; + readonly RequestResponse?: IRequestResponse; /** * */ - RewardRecipient?: IRewardRecipient; + readonly RewardRecipient?: IRewardRecipient; /** * */ - RewardSender?: IRewardSender; + readonly RewardSender?: IRewardSender; /** * */ - ShareInviteMonetaryAccountInquiryBatch?: IShareInviteMonetaryAccountInquiryBatch; + readonly ShareInviteMonetaryAccountInquiryBatch?: IShareInviteMonetaryAccountInquiryBatch; /** * */ - ShareInviteMonetaryAccountInquiry?: IShareInviteMonetaryAccountInquiry; + readonly ShareInviteMonetaryAccountInquiry?: IShareInviteMonetaryAccountInquiry; /** * */ - ShareInviteMonetaryAccountResponse?: IShareInviteMonetaryAccountResponse; + readonly ShareInviteMonetaryAccountResponse?: IShareInviteMonetaryAccountResponse; /** * */ - SofortMerchantTransaction?: ISofortMerchantTransaction; + readonly SofortMerchantTransaction?: ISofortMerchantTransaction; /** * */ - TabResultInquiry?: ITabResultInquiry; + readonly TabResultInquiry?: ITabResultInquiry; /** * */ - TabResultResponse?: ITabResultResponse; + readonly TabResultResponse?: ITabResultResponse; /** * */ - TransferwisePayment?: ITransferwiseTransfer; + readonly TransferwisePayment?: ITransferwiseTransfer; } export interface IEventListing { /** * The id of the event. */ - id?: number; + readonly id?: number; /** * The timestamp of the event's creation. */ - created?: string; + readonly created?: string; /** * The timestamp of the event's last update. */ - updated?: string; + readonly updated?: string; /** * The performed action. Can be: CREATE or UPDATE. */ - action?: string; + readonly action?: string; /** * The id of the user the event applied to (if it was a user event). */ - user_id?: string; + readonly user_id?: string; /** * The id of the monetary account the event applied to (if it was a monetary account event). */ - monetary_account_id?: string; + readonly monetary_account_id?: string; /** * The details of the external object the event was created for. */ - object?: IEventObject; + readonly object?: IEventObject; /** * The event status. Can be: FINALIZED or AWAITING_REPLY. An example of FINALIZED event is a payment received event, while an AWAITING_REPLY event is a request received event. */ - status?: string; + readonly status?: string; } export interface IDraftShareInviteMonetaryAccountUpdate { /** * The id of the created item */ - Id?: BunqId; + readonly Id?: BunqId; } export interface IDraftShareInviteMonetaryAccountRead { /** * The user who created the draft share invite. */ - user_alias_created?: ILabelUser; + readonly user_alias_created?: ILabelUser; /** * The status of the draft share invite. Can be USED, CANCELLED and PENDING. */ - status?: string; + readonly status?: string; /** * The moment when this draft share invite expires. */ - expiration?: string; + readonly expiration?: string; /** * The id of the share invite bank response this draft share belongs to. */ - share_invite_bank_response_id?: number; + readonly share_invite_bank_response_id?: number; /** * The URL redirecting user to the draft share invite in the app. Only works on mobile devices. */ - draft_share_url?: string; + readonly draft_share_url?: string; /** * The draft share invite details. */ - draft_share_settings?: IDraftShareInviteEntry; + readonly draft_share_settings?: IDraftShareInviteEntry; /** * The id of the newly created draft share invite. */ - id?: number; + readonly id?: number; } export interface IDraftShareInviteMonetaryAccountQrCodeContentListing {} @@ -10068,38 +10070,38 @@ export interface IDraftShareInviteMonetaryAccountListing { /** * The user who created the draft share invite. */ - user_alias_created?: ILabelUser; + readonly user_alias_created?: ILabelUser; /** * The status of the draft share invite. Can be USED, CANCELLED and PENDING. */ - status?: string; + readonly status?: string; /** * The moment when this draft share invite expires. */ - expiration?: string; + readonly expiration?: string; /** * The id of the share invite bank response this draft share belongs to. */ - share_invite_bank_response_id?: number; + readonly share_invite_bank_response_id?: number; /** * The URL redirecting user to the draft share invite in the app. Only works on mobile devices. */ - draft_share_url?: string; + readonly draft_share_url?: string; /** * The draft share invite details. */ - draft_share_settings?: IDraftShareInviteEntry; + readonly draft_share_settings?: IDraftShareInviteEntry; /** * The id of the newly created draft share invite. */ - id?: number; + readonly id?: number; } export interface IDraftShareInviteMonetaryAccountCreate { /** * The id of the newly created draft share invite. */ - id?: number; + readonly id?: number; } export interface IDraftShareInviteMonetaryAccount { @@ -10136,104 +10138,104 @@ export interface IDraftPaymentUpdate { /** * The id of the created DrafPayment. */ - id?: number; + readonly id?: number; } export interface IDraftPaymentResponse { /** * The status with which was responded. */ - status?: string; + readonly status?: string; /** * The user that responded to the DraftPayment. */ - user_alias_created?: ILabelUser; + readonly user_alias_created?: ILabelUser; } export interface IDraftPaymentRead { /** * The id of the created DrafPayment. */ - id?: number; + readonly id?: number; /** * The id of the MonetaryAccount the DraftPayment applies to. */ - monetary_account_id?: number; + readonly monetary_account_id?: number; /** * The label of the User who created the DraftPayment. */ - user_alias_created?: ILabelUser; + readonly user_alias_created?: ILabelUser; /** * All responses to this draft payment. */ - responses?: Array; + readonly responses?: Array; /** * The status of the DraftPayment. */ - status?: string; + readonly status?: string; /** * The type of the DraftPayment. */ - type?: string; + readonly type?: string; /** * The entries in the DraftPayment. */ - entries?: Array; + readonly entries?: Array; /** * The Payment or PaymentBatch. This will only be present after the DraftPayment has been accepted. */ - object?: IDraftPaymentAnchorObject; + readonly object?: IDraftPaymentAnchorObject; /** * The reference to the object used for split the bill. Can be RequestInquiry or RequestInquiryBatch */ - request_reference_split_the_bill?: Array; + readonly request_reference_split_the_bill?: Array; /** * The schedule details. */ - schedule?: ISchedule; + readonly schedule?: ISchedule; } export interface IDraftPaymentListing { /** * The id of the created DrafPayment. */ - id?: number; + readonly id?: number; /** * The id of the MonetaryAccount the DraftPayment applies to. */ - monetary_account_id?: number; + readonly monetary_account_id?: number; /** * The label of the User who created the DraftPayment. */ - user_alias_created?: ILabelUser; + readonly user_alias_created?: ILabelUser; /** * All responses to this draft payment. */ - responses?: Array; + readonly responses?: Array; /** * The status of the DraftPayment. */ - status?: string; + readonly status?: string; /** * The type of the DraftPayment. */ - type?: string; + readonly type?: string; /** * The entries in the DraftPayment. */ - entries?: Array; + readonly entries?: Array; /** * The Payment or PaymentBatch. This will only be present after the DraftPayment has been accepted. */ - object?: IDraftPaymentAnchorObject; + readonly object?: IDraftPaymentAnchorObject; /** * The reference to the object used for split the bill. Can be RequestInquiry or RequestInquiryBatch */ - request_reference_split_the_bill?: Array; + readonly request_reference_split_the_bill?: Array; /** * The schedule details. */ - schedule?: ISchedule; + readonly schedule?: ISchedule; } export interface IDraftPaymentEntry { @@ -10260,33 +10262,33 @@ export interface IDraftPaymentEntry { /** * The id of the draft payment entry. */ - id?: number; + readonly id?: number; /** * The LabelMonetaryAccount containing the public information of 'this' (party) side of the DraftPayment. */ - alias?: ILabelMonetaryAccount; + readonly alias?: ILabelMonetaryAccount; /** * The type of the draft payment entry. */ - type?: string; + readonly type?: string; } export interface IDraftPaymentCreate { /** * The id of the created DrafPayment. */ - id?: number; + readonly id?: number; } export interface IDraftPaymentAnchorObject { /** * */ - Payment?: IPayment; + readonly Payment?: IPayment; /** * */ - PaymentBatch?: IPaymentBatch; + readonly PaymentBatch?: IPaymentBatch; } export interface IDraftPayment { @@ -10316,61 +10318,61 @@ export interface IDeviceServerRead { /** * The id of the DeviceServer as created on the server. */ - id?: number; + readonly id?: number; /** * The timestamp of the DeviceServer's creation. */ - created?: string; + readonly created?: string; /** * The timestamp of the DeviceServer's last update. */ - updated?: string; + readonly updated?: string; /** * The description of the DeviceServer. */ - description?: string; + readonly description?: string; /** * The ip address which was used to create the DeviceServer. */ - ip?: string; + readonly ip?: string; /** * The status of the DeviceServer. Can be ACTIVE, BLOCKED, NEEDS_CONFIRMATION or OBSOLETE. */ - status?: string; + readonly status?: string; } export interface IDeviceServerListing { /** * The id of the DeviceServer as created on the server. */ - id?: number; + readonly id?: number; /** * The timestamp of the DeviceServer's creation. */ - created?: string; + readonly created?: string; /** * The timestamp of the DeviceServer's last update. */ - updated?: string; + readonly updated?: string; /** * The description of the DeviceServer. */ - description?: string; + readonly description?: string; /** * The ip address which was used to create the DeviceServer. */ - ip?: string; + readonly ip?: string; /** * The status of the DeviceServer. Can be ACTIVE, BLOCKED, NEEDS_CONFIRMATION or OBSOLETE. */ - status?: string; + readonly status?: string; } export interface IDeviceServerCreate { /** * The id of the DeviceServer as created on the server. */ - id?: number; + readonly id?: number; } export interface IDeviceServer { @@ -10392,100 +10394,100 @@ export interface IDeviceRead { /** * */ - DeviceServer?: IDeviceServer; + readonly DeviceServer?: IDeviceServer; } export interface IDeviceListing { /** * */ - DeviceServer?: IDeviceServer; + readonly DeviceServer?: IDeviceServer; } export interface ICustomerLimitListing { /** * The limit of monetary accounts. */ - limit_monetary_account?: number; + readonly limit_monetary_account?: number; /** * The amount of additional monetary accounts you can create. */ - limit_monetary_account_remaining?: number; + readonly limit_monetary_account_remaining?: number; /** * The limit of Maestro cards. */ - limit_card_debit_maestro?: number; + readonly limit_card_debit_maestro?: number; /** * The limit of MasterCard cards. */ - limit_card_debit_mastercard?: number; + readonly limit_card_debit_mastercard?: number; /** * DEPRECTATED: The limit of wildcards, e.g. Maestro or MasterCard cards. */ - limit_card_debit_wildcard?: number; + readonly limit_card_debit_wildcard?: number; /** * The limit of wildcards, e.g. Maestro or MasterCard cards. */ - limit_card_wildcard?: number; + readonly limit_card_wildcard?: number; /** * DEPRECTATED: The limit of free replacement debit cards, replaced by: limit_card_replacement */ - limit_card_debit_replacement?: number; + readonly limit_card_debit_replacement?: number; /** * The limit of free replacement cards. */ - limit_card_replacement?: number; + readonly limit_card_replacement?: number; /** * The maximum amount a user is allowed to spend in a month. */ - limit_amount_monthly?: IAmount; + readonly limit_amount_monthly?: IAmount; /** * The amount the user has spent in the last month. */ - spent_amount_monthly?: IAmount; + readonly spent_amount_monthly?: IAmount; } export interface ICustomerLimit { /** * The limit of monetary accounts. */ - limit_monetary_account?: number; + readonly limit_monetary_account?: number; /** * The amount of additional monetary accounts you can create. */ - limit_monetary_account_remaining?: number; + readonly limit_monetary_account_remaining?: number; /** * The limit of Maestro cards. */ - limit_card_debit_maestro?: number; + readonly limit_card_debit_maestro?: number; /** * The limit of MasterCard cards. */ - limit_card_debit_mastercard?: number; + readonly limit_card_debit_mastercard?: number; /** * DEPRECTATED: The limit of wildcards, e.g. Maestro or MasterCard cards. */ - limit_card_debit_wildcard?: number; + readonly limit_card_debit_wildcard?: number; /** * The limit of wildcards, e.g. Maestro or MasterCard cards. */ - limit_card_wildcard?: number; + readonly limit_card_wildcard?: number; /** * DEPRECTATED: The limit of free replacement debit cards, replaced by: limit_card_replacement */ - limit_card_debit_replacement?: number; + readonly limit_card_debit_replacement?: number; /** * The limit of free replacement cards. */ - limit_card_replacement?: number; + readonly limit_card_replacement?: number; /** * The maximum amount a user is allowed to spend in a month. */ - limit_amount_monthly?: IAmount; + readonly limit_amount_monthly?: IAmount; /** * The amount the user has spent in the last month. */ - spent_amount_monthly?: IAmount; + readonly spent_amount_monthly?: IAmount; } export interface ICustomer { @@ -10500,15 +10502,15 @@ export interface ICustomer { /** * The id of the customer. */ - id?: number; + readonly id?: number; /** * The timestamp of the customer object's creation. */ - created?: string; + readonly created?: string; /** * The timestamp of the customer object's last update. */ - updated?: string; + readonly updated?: string; } export interface ICoOwner { @@ -10519,14 +10521,14 @@ export interface ICoOwner { /** * Can be: ACCEPTED, REJECTED, PENDING or REVOKED */ - status?: string; + readonly status?: string; } export interface IConfirmationOfFundsCreate { /** * The id of the created item */ - Id?: BunqId; + readonly Id?: BunqId; } export interface IConfirmationOfFunds { @@ -10544,22 +10546,22 @@ export interface ICertificatePinnedRead { /** * The certificate chain in .PEM format. Certificates are glued with newline characters. */ - certificate_chain?: string; + readonly certificate_chain?: string; /** * The id generated for the pinned certificate chain. */ - id?: number; + readonly id?: number; } export interface ICertificatePinnedListing { /** * The certificate chain in .PEM format. Certificates are glued with newline characters. */ - certificate_chain?: string; + readonly certificate_chain?: string; /** * The id generated for the pinned certificate chain. */ - id?: number; + readonly id?: number; } export interface ICertificatePinnedDelete {} @@ -10568,7 +10570,7 @@ export interface ICertificatePinnedCreate { /** * The id generated for the pinned certificate chain. */ - id?: number; + readonly id?: number; } export interface ICertificatePinned { @@ -10589,110 +10591,110 @@ export interface ICashRegisterUpdate { /** * The id of the updated CashRegister. */ - id?: number; + readonly id?: number; } export interface ICashRegisterRead { /** * The id of the created CashRegister. */ - id?: number; + readonly id?: number; /** * The timestamp of the CashRegister's creation. */ - created?: string; + readonly created?: string; /** * The timestamp of the CashRegister's last update. */ - updated?: string; + readonly updated?: string; /** * The name of the CashRegister. */ - name?: string; + readonly name?: string; /** * The status of the CashRegister. Can be PENDING_APPROVAL, ACTIVE, DENIED or CLOSED. */ - status?: string; + readonly status?: string; /** * The Avatar of the CashRegister. */ - avatar?: IAvatar; + readonly avatar?: IAvatar; /** * The geolocation of the CashRegister. Can be null. */ - location?: IGeolocation; + readonly location?: IGeolocation; /** * The tab text for waiting screen of CashRegister. */ - tab_text_waiting_screen?: Array; + readonly tab_text_waiting_screen?: Array; } export interface ICashRegisterQrCodeUpdate { /** * The id of the updated QR code. Use this id to get the RAW content of the QR code with: ../qr-code/{id}/content */ - id?: number; + readonly id?: number; } export interface ICashRegisterQrCodeRead { /** * The id of the created QR code. Use this id to get the RAW content of the QR code with: ../qr-code/{id}/content */ - id?: number; + readonly id?: number; /** * The timestamp of the QR code's creation. */ - created?: string; + readonly created?: string; /** * The timestamp of the TokenQrCashRegister's last update. */ - updated?: string; + readonly updated?: string; /** * The status of this QR code. If the status is "ACTIVE" the QR code can be scanned to see the linked CashRegister and tab. If the status is "INACTIVE" the QR code does not link to a anything. */ - status?: string; + readonly status?: string; /** * The CashRegister that is linked to the token. */ - cash_register?: ICashRegister; + readonly cash_register?: ICashRegister; /** * Holds the Tab object. Can be TabUsageSingle, TabUsageMultiple or null */ - tab_object?: ITab; + readonly tab_object?: ITab; } export interface ICashRegisterQrCodeListing { /** * The id of the created QR code. Use this id to get the RAW content of the QR code with: ../qr-code/{id}/content */ - id?: number; + readonly id?: number; /** * The timestamp of the QR code's creation. */ - created?: string; + readonly created?: string; /** * The timestamp of the TokenQrCashRegister's last update. */ - updated?: string; + readonly updated?: string; /** * The status of this QR code. If the status is "ACTIVE" the QR code can be scanned to see the linked CashRegister and tab. If the status is "INACTIVE" the QR code does not link to a anything. */ - status?: string; + readonly status?: string; /** * The CashRegister that is linked to the token. */ - cash_register?: ICashRegister; + readonly cash_register?: ICashRegister; /** * Holds the Tab object. Can be TabUsageSingle, TabUsageMultiple or null */ - tab_object?: ITab; + readonly tab_object?: ITab; } export interface ICashRegisterQrCodeCreate { /** * The id of the created QR code. Use this id to get the RAW content of the QR code with: ../qr-code/{id}/content */ - id?: number; + readonly id?: number; } export interface ICashRegisterQrCodeContentListing {} @@ -10708,42 +10710,42 @@ export interface ICashRegisterListing { /** * The id of the created CashRegister. */ - id?: number; + readonly id?: number; /** * The timestamp of the CashRegister's creation. */ - created?: string; + readonly created?: string; /** * The timestamp of the CashRegister's last update. */ - updated?: string; + readonly updated?: string; /** * The name of the CashRegister. */ - name?: string; + readonly name?: string; /** * The status of the CashRegister. Can be PENDING_APPROVAL, ACTIVE, DENIED or CLOSED. */ - status?: string; + readonly status?: string; /** * The Avatar of the CashRegister. */ - avatar?: IAvatar; + readonly avatar?: IAvatar; /** * The geolocation of the CashRegister. Can be null. */ - location?: IGeolocation; + readonly location?: IGeolocation; /** * The tab text for waiting screen of CashRegister. */ - tab_text_waiting_screen?: Array; + readonly tab_text_waiting_screen?: Array; } export interface ICashRegisterCreate { /** * The id of the created CashRegister. */ - id?: number; + readonly id?: number; } export interface ICashRegister { @@ -10770,33 +10772,33 @@ export interface ICashRegister { /** * The id of the created CashRegister. */ - id?: number; + readonly id?: number; /** * The timestamp of the CashRegister's creation. */ - created?: string; + readonly created?: string; /** * The timestamp of the CashRegister's last update. */ - updated?: string; + readonly updated?: string; /** * The Avatar of the CashRegister. */ - avatar?: IAvatar; + readonly avatar?: IAvatar; } export interface ICardUpdate { /** * The id of the created item */ - Id?: BunqId; + readonly Id?: BunqId; } export interface ICardReplaceCreate { /** * The id of the created item */ - Id?: BunqId; + readonly Id?: BunqId; } export interface ICardReplace { @@ -10818,87 +10820,87 @@ export interface ICardRead { /** * The id of the card. */ - id?: number; + readonly id?: number; /** * The timestamp of the card's creation. */ - created?: string; + readonly created?: string; /** * The timestamp of the card's last update. */ - updated?: string; + readonly updated?: string; /** * The public UUID of the card. */ - public_uuid?: string; + readonly public_uuid?: string; /** * The type of the card. Can be MAESTRO, MASTERCARD. */ - type?: string; + readonly type?: string; /** * The sub-type of the card. */ - sub_type?: string; + readonly sub_type?: string; /** * The second line of text on the card */ - second_line?: string; + readonly second_line?: string; /** * The status to set for the card. Can be ACTIVE, DEACTIVATED, LOST, STOLEN, CANCELLED, EXPIRED or PIN_TRIES_EXCEEDED. */ - status?: string; + readonly status?: string; /** * The sub-status of the card. Can be NONE or REPLACED. */ - sub_status?: string; + readonly sub_status?: string; /** * The order status of the card. Can be CARD_UPDATE_REQUESTED, CARD_UPDATE_SENT, CARD_UPDATE_ACCEPTED, ACCEPTED_FOR_PRODUCTION or DELIVERED_TO_CUSTOMER. */ - order_status?: string; + readonly order_status?: string; /** * Expiry date of the card. */ - expiry_date?: string; + readonly expiry_date?: string; /** * The user's name on the card. */ - name_on_card?: string; + readonly name_on_card?: string; /** * Array of PANs and their attributes. */ - primary_account_numbers?: Array; + readonly primary_account_numbers?: Array; /** * The spending limit for the card. */ - card_limit?: IAmount; + readonly card_limit?: IAmount; /** * The ATM spending limit for the card. */ - card_limit_atm?: IAmount; + readonly card_limit_atm?: IAmount; /** * The countries for which to grant (temporary) permissions to use the card. */ - country_permission?: Array; + readonly country_permission?: Array; /** * The monetary account this card was ordered on and the label user that owns the card. */ - label_monetary_account_ordered?: ILabelMonetaryAccount; + readonly label_monetary_account_ordered?: ILabelMonetaryAccount; /** * The monetary account that this card is currently linked to and the label user viewing it. */ - label_monetary_account_current?: ILabelMonetaryAccount; + readonly label_monetary_account_current?: ILabelMonetaryAccount; /** * Array of Types, PINs, account IDs assigned to the card. */ - pin_code_assignment?: Array; + readonly pin_code_assignment?: Array; /** * ID of the MA to be used as fallback for this card if insufficient balance. Fallback account is removed if not supplied. */ - monetary_account_id_fallback?: number; + readonly monetary_account_id_fallback?: number; /** * The country that is domestic to the card. Defaults to country of residence of user. */ - country?: string; + readonly country?: string; } export interface ICardPrimaryAccountNumber { @@ -10921,11 +10923,11 @@ export interface ICardPrimaryAccountNumber { /** * The UUID for this Virtual PAN. */ - uuid?: string; + readonly uuid?: string; /** * The last four digits of the PAN. */ - four_digit?: string; + readonly four_digit?: string; } export interface ICardPinAssignment { @@ -10947,170 +10949,170 @@ export interface ICardNameListing { /** * All possible variations (of suitable length) of user's legal name for the debit card. */ - possible_card_name_array?: Array; + readonly possible_card_name_array?: Array; } export interface ICardListing { /** * The id of the card. */ - id?: number; + readonly id?: number; /** * The timestamp of the card's creation. */ - created?: string; + readonly created?: string; /** * The timestamp of the card's last update. */ - updated?: string; + readonly updated?: string; /** * The public UUID of the card. */ - public_uuid?: string; + readonly public_uuid?: string; /** * The type of the card. Can be MAESTRO, MASTERCARD. */ - type?: string; + readonly type?: string; /** * The sub-type of the card. */ - sub_type?: string; + readonly sub_type?: string; /** * The second line of text on the card */ - second_line?: string; + readonly second_line?: string; /** * The status to set for the card. Can be ACTIVE, DEACTIVATED, LOST, STOLEN, CANCELLED, EXPIRED or PIN_TRIES_EXCEEDED. */ - status?: string; + readonly status?: string; /** * The sub-status of the card. Can be NONE or REPLACED. */ - sub_status?: string; + readonly sub_status?: string; /** * The order status of the card. Can be CARD_UPDATE_REQUESTED, CARD_UPDATE_SENT, CARD_UPDATE_ACCEPTED, ACCEPTED_FOR_PRODUCTION or DELIVERED_TO_CUSTOMER. */ - order_status?: string; + readonly order_status?: string; /** * Expiry date of the card. */ - expiry_date?: string; + readonly expiry_date?: string; /** * The user's name on the card. */ - name_on_card?: string; + readonly name_on_card?: string; /** * Array of PANs and their attributes. */ - primary_account_numbers?: Array; + readonly primary_account_numbers?: Array; /** * The spending limit for the card. */ - card_limit?: IAmount; + readonly card_limit?: IAmount; /** * The ATM spending limit for the card. */ - card_limit_atm?: IAmount; + readonly card_limit_atm?: IAmount; /** * The countries for which to grant (temporary) permissions to use the card. */ - country_permission?: Array; + readonly country_permission?: Array; /** * The monetary account this card was ordered on and the label user that owns the card. */ - label_monetary_account_ordered?: ILabelMonetaryAccount; + readonly label_monetary_account_ordered?: ILabelMonetaryAccount; /** * The monetary account that this card is currently linked to and the label user viewing it. */ - label_monetary_account_current?: ILabelMonetaryAccount; + readonly label_monetary_account_current?: ILabelMonetaryAccount; /** * Array of Types, PINs, account IDs assigned to the card. */ - pin_code_assignment?: Array; + readonly pin_code_assignment?: Array; /** * ID of the MA to be used as fallback for this card if insufficient balance. Fallback account is removed if not supplied. */ - monetary_account_id_fallback?: number; + readonly monetary_account_id_fallback?: number; /** * The country that is domestic to the card. Defaults to country of residence of user. */ - country?: string; + readonly country?: string; } export interface ICardGeneratedCvc2Update { /** * The id of the created item */ - Id?: BunqId; + readonly Id?: BunqId; } export interface ICardGeneratedCvc2Read { /** * The id of the cvc code. */ - id?: number; + readonly id?: number; /** * The timestamp of the cvc code's creation. */ - created?: string; + readonly created?: string; /** * The timestamp of the cvc code's last update. */ - updated?: string; + readonly updated?: string; /** * The type of generated cvc2. Can be STATIC or GENERATED. */ - type?: string; + readonly type?: string; /** * The cvc2 code. */ - cvc2?: string; + readonly cvc2?: string; /** * The status of the cvc2. Can be AVAILABLE, USED, EXPIRED, BLOCKED. */ - status?: string; + readonly status?: string; /** * Expiry time of the cvc2. */ - expiry_time?: string; + readonly expiry_time?: string; } export interface ICardGeneratedCvc2Listing { /** * The id of the cvc code. */ - id?: number; + readonly id?: number; /** * The timestamp of the cvc code's creation. */ - created?: string; + readonly created?: string; /** * The timestamp of the cvc code's last update. */ - updated?: string; + readonly updated?: string; /** * The type of generated cvc2. Can be STATIC or GENERATED. */ - type?: string; + readonly type?: string; /** * The cvc2 code. */ - cvc2?: string; + readonly cvc2?: string; /** * The status of the cvc2. Can be AVAILABLE, USED, EXPIRED, BLOCKED. */ - status?: string; + readonly status?: string; /** * Expiry time of the cvc2. */ - expiry_time?: string; + readonly expiry_time?: string; } export interface ICardGeneratedCvc2Create { /** * The id of the created item */ - Id?: BunqId; + readonly Id?: BunqId; } export interface ICardGeneratedCvc2 { @@ -11124,7 +11126,7 @@ export interface ICardDebitCreate { /** * The id of the created item */ - Id?: BunqId; + readonly Id?: BunqId; } export interface ICardDebit { @@ -11158,7 +11160,7 @@ export interface ICardCreditCreate { /** * The id of the created item */ - Id?: BunqId; + readonly Id?: BunqId; } export interface ICardCredit { @@ -11200,7 +11202,7 @@ export interface ICardCountryPermission { /** * The id of the card country permission entry. */ - id?: number; + readonly id?: number; } export interface ICardBatchEntry { @@ -11234,7 +11236,7 @@ export interface ICardBatchCreate { /** * The ids of the cards that have been updated. */ - updated_card_ids?: Array; + readonly updated_card_ids?: Array; } export interface ICardBatch { @@ -11287,110 +11289,110 @@ export interface IBunqMeTabUpdate { /** * The id of the created item */ - Id?: BunqId; + readonly Id?: BunqId; } export interface IBunqMeTabResultResponseRead { /** * The payment made for the bunq.me tab. */ - payment?: IPayment; + readonly payment?: IPayment; } export interface IBunqMeTabResultResponse { /** * The payment made for the bunq.me tab. */ - payment?: IPayment; + readonly payment?: IPayment; } export interface IBunqMeTabResultInquiry { /** * The payment made for the Tab. */ - payment?: IPayment; + readonly payment?: IPayment; /** * The Id of the bunq.me tab that this BunqMeTabResultInquiry belongs to. */ - bunq_me_tab_id?: number; + readonly bunq_me_tab_id?: number; } export interface IBunqMeTabRead { /** * The id of the created bunq.me. */ - id?: number; + readonly id?: number; /** * The timestamp when the bunq.me was created. */ - created?: string; + readonly created?: string; /** * The timestamp when the bunq.me was last updated. */ - updated?: string; + readonly updated?: string; /** * The timestamp of when the bunq.me expired or will expire. */ - time_expiry?: string; + readonly time_expiry?: string; /** * The id of the MonetaryAccount the bunq.me was sent from. */ - monetary_account_id?: number; + readonly monetary_account_id?: number; /** * The status of the bunq.me. Can be WAITING_FOR_PAYMENT, CANCELLED or EXPIRED. */ - status?: string; + readonly status?: string; /** * The url that points to the bunq.me page. */ - bunqme_tab_share_url?: string; + readonly bunqme_tab_share_url?: string; /** * The bunq.me entry containing the payment information. */ - bunqme_tab_entry?: IBunqMeTabEntry; + readonly bunqme_tab_entry?: IBunqMeTabEntry; /** * The list of bunq.me result Inquiries successfully made and paid. */ - result_inquiries?: Array; + readonly result_inquiries?: Array; } export interface IBunqMeTabListing { /** * The id of the created bunq.me. */ - id?: number; + readonly id?: number; /** * The timestamp when the bunq.me was created. */ - created?: string; + readonly created?: string; /** * The timestamp when the bunq.me was last updated. */ - updated?: string; + readonly updated?: string; /** * The timestamp of when the bunq.me expired or will expire. */ - time_expiry?: string; + readonly time_expiry?: string; /** * The id of the MonetaryAccount the bunq.me was sent from. */ - monetary_account_id?: number; + readonly monetary_account_id?: number; /** * The status of the bunq.me. Can be WAITING_FOR_PAYMENT, CANCELLED or EXPIRED. */ - status?: string; + readonly status?: string; /** * The url that points to the bunq.me page. */ - bunqme_tab_share_url?: string; + readonly bunqme_tab_share_url?: string; /** * The bunq.me entry containing the payment information. */ - bunqme_tab_entry?: IBunqMeTabEntry; + readonly bunqme_tab_entry?: IBunqMeTabEntry; /** * The list of bunq.me result Inquiries successfully made and paid. */ - result_inquiries?: Array; + readonly result_inquiries?: Array; } export interface IBunqMeTabEntry { @@ -11409,26 +11411,26 @@ export interface IBunqMeTabEntry { /** * The uuid of the bunq.me. */ - uuid?: string; + readonly uuid?: string; /** * The LabelMonetaryAccount with the public information of the User and the MonetaryAccount that created the bunq.me link. */ - alias?: ILabelMonetaryAccount; + readonly alias?: ILabelMonetaryAccount; /** * The status of the bunq.me. Can be WAITING_FOR_PAYMENT, CANCELLED or EXPIRED. */ - status?: string; + readonly status?: string; /** * List of available merchants. */ - merchant_available?: Array; + readonly merchant_available?: Array; } export interface IBunqMeTabCreate { /** * The id of the created bunq.me. */ - id?: number; + readonly id?: number; } export interface IBunqMeTab { @@ -11446,127 +11448,127 @@ export interface IBunqMeMerchantAvailable { /** * A merchant type supported by bunq.me. */ - merchant_type?: string; + readonly merchant_type?: string; /** * Whether or not the merchant is available for the user. */ - available?: boolean; + readonly available?: boolean; } export interface IBunqMeFundraiserResultRead { /** * The id of the bunq.me. */ - id?: number; + readonly id?: number; /** * The timestamp when the bunq.me was created. */ - created?: string; + readonly created?: string; /** * The timestamp when the bunq.me was last updated. */ - updated?: string; + readonly updated?: string; /** * The bunq.me fundraiser profile. */ - bunqme_fundraiser_profile?: IBunqMeFundraiserProfile; + readonly bunqme_fundraiser_profile?: IBunqMeFundraiserProfile; /** * The list of payments, paid to the bunq.me fundraiser profile. */ - payments?: Array; + readonly payments?: Array; } export interface IBunqMeFundraiserResult { /** * The id of the bunq.me. */ - id?: number; + readonly id?: number; /** * The timestamp when the bunq.me was created. */ - created?: string; + readonly created?: string; /** * The timestamp when the bunq.me was last updated. */ - updated?: string; + readonly updated?: string; /** * The bunq.me fundraiser profile. */ - bunqme_fundraiser_profile?: IBunqMeFundraiserProfile; + readonly bunqme_fundraiser_profile?: IBunqMeFundraiserProfile; /** * The list of payments, paid to the bunq.me fundraiser profile. */ - payments?: Array; + readonly payments?: Array; } export interface IBunqMeFundraiserProfileUserRead { /** * Id of the monetary account on which you want to receive bunq.me payments. */ - monetary_account_id?: number; + readonly monetary_account_id?: number; /** * The color chosen for the bunq.me fundraiser profile in hexadecimal format. */ - color?: string; + readonly color?: string; /** * The LabelMonetaryAccount with the public information of the User and the MonetaryAccount that created the bunq.me fundraiser profile. */ - alias?: ILabelMonetaryAccount; + readonly alias?: ILabelMonetaryAccount; /** * The description of the bunq.me fundraiser profile. */ - description?: string; + readonly description?: string; /** * The attachment used for the background of the bunq.me fundraiser profile. */ - attachment?: IAttachmentPublic; + readonly attachment?: IAttachmentPublic; /** * The pointer (url) which will be used to access the bunq.me fundraiser profile. */ - pointer?: IPointer; + readonly pointer?: IPointer; /** * The URL which the user is sent to when a payment is completed. */ - redirect_url?: string; + readonly redirect_url?: string; /** * The status of the bunq.me fundraiser profile, can be ACTIVE or DEACTIVATED. */ - status?: string; + readonly status?: string; } export interface IBunqMeFundraiserProfileUserListing { /** * Id of the monetary account on which you want to receive bunq.me payments. */ - monetary_account_id?: number; + readonly monetary_account_id?: number; /** * The color chosen for the bunq.me fundraiser profile in hexadecimal format. */ - color?: string; + readonly color?: string; /** * The LabelMonetaryAccount with the public information of the User and the MonetaryAccount that created the bunq.me fundraiser profile. */ - alias?: ILabelMonetaryAccount; + readonly alias?: ILabelMonetaryAccount; /** * The description of the bunq.me fundraiser profile. */ - description?: string; + readonly description?: string; /** * The attachment used for the background of the bunq.me fundraiser profile. */ - attachment?: IAttachmentPublic; + readonly attachment?: IAttachmentPublic; /** * The pointer (url) which will be used to access the bunq.me fundraiser profile. */ - pointer?: IPointer; + readonly pointer?: IPointer; /** * The URL which the user is sent to when a payment is completed. */ - redirect_url?: string; + readonly redirect_url?: string; /** * The status of the bunq.me fundraiser profile, can be ACTIVE or DEACTIVATED. */ - status?: string; + readonly status?: string; } export interface IBunqMeFundraiserProfile { @@ -11577,31 +11579,31 @@ export interface IBunqMeFundraiserProfile { /** * The color chosen for the bunq.me fundraiser profile in hexadecimal format. */ - color?: string; + readonly color?: string; /** * The LabelMonetaryAccount with the public information of the User and the MonetaryAccount that created the bunq.me fundraiser profile. */ - alias?: ILabelMonetaryAccount; + readonly alias?: ILabelMonetaryAccount; /** * The description of the bunq.me fundraiser profile. */ - description?: string; + readonly description?: string; /** * The attachment attached to the fundraiser profile. */ - attachment?: IAttachmentPublic; + readonly attachment?: IAttachmentPublic; /** * The status of the bunq.me fundraiser profile, can be ACTIVE or DEACTIVATED. */ - status?: string; + readonly status?: string; /** * The URL which the user is sent to when a payment is completed. */ - redirect_url?: string; + readonly redirect_url?: string; /** * Provided if the user has enabled their invite link. */ - invite_profile_name?: string; + readonly invite_profile_name?: string; } export interface IBunqId { @@ -11626,43 +11628,43 @@ export interface IBillingContractSubscriptionListing { /** * The id of the billing contract. */ - id?: number; + readonly id?: number; /** * The timestamp when the billing contract was made. */ - created?: string; + readonly created?: string; /** * The timestamp when the billing contract was last updated. */ - updated?: string; + readonly updated?: string; /** * The date from when the billing contract is valid. */ - contract_date_start?: string; + readonly contract_date_start?: string; /** * The date until when the billing contract is valid. */ - contract_date_end?: string; + readonly contract_date_end?: string; /** * The version of the billing contract. */ - contract_version?: number; + readonly contract_version?: number; /** * The subscription type of the user. Can be one of PERSON_SUPER_LIGHT_V1, PERSON_LIGHT_V1, PERSON_MORE_V1, PERSON_FREE_V1, PERSON_PREMIUM_V1, COMPANY_V1, or COMPANY_V2. */ - subscription_type?: string; + readonly subscription_type?: string; /** * The subscription type the user will have after a subscription downgrade. Will be null if downgrading is not possible. */ - subscription_type_downgrade?: string; + readonly subscription_type_downgrade?: string; /** * The subscription status. */ - status?: string; + readonly status?: string; /** * The subscription substatus. */ - sub_status?: string; + readonly sub_status?: string; } export interface IBillingContractSubscription { @@ -11673,61 +11675,61 @@ export interface IBillingContractSubscription { /** * The id of the billing contract. */ - id?: number; + readonly id?: number; /** * The timestamp when the billing contract was made. */ - created?: string; + readonly created?: string; /** * The timestamp when the billing contract was last updated. */ - updated?: string; + readonly updated?: string; /** * The date from when the billing contract is valid. */ - contract_date_start?: string; + readonly contract_date_start?: string; /** * The date until when the billing contract is valid. */ - contract_date_end?: string; + readonly contract_date_end?: string; /** * The version of the billing contract. */ - contract_version?: number; + readonly contract_version?: number; /** * The subscription type the user will have after a subscription downgrade. Will be null if downgrading is not possible. */ - subscription_type_downgrade?: string; + readonly subscription_type_downgrade?: string; /** * The subscription status. */ - status?: string; + readonly status?: string; /** * The subscription substatus. */ - sub_status?: string; + readonly sub_status?: string; } export interface IBankSwitchServiceNetherlandsIncomingPaymentRead { /** * The bank switch service details. */ - bank_switch_service?: IBankSwitchServiceNetherlandsIncoming; + readonly bank_switch_service?: IBankSwitchServiceNetherlandsIncoming; /** * The payment made using bank switch service. */ - payment?: IPayment; + readonly payment?: IPayment; } export interface IBankSwitchServiceNetherlandsIncomingPayment { /** * The bank switch service details. */ - bank_switch_service?: IBankSwitchServiceNetherlandsIncoming; + readonly bank_switch_service?: IBankSwitchServiceNetherlandsIncoming; /** * The payment made using bank switch service. */ - payment?: IPayment; + readonly payment?: IPayment; } export interface IBankSwitchServiceNetherlandsIncoming { @@ -11754,37 +11756,37 @@ export interface IBankSwitchServiceNetherlandsIncoming { /** * The label of the user creator of this switch service. */ - user_alias?: ILabelUser; + readonly user_alias?: ILabelUser; /** * The timestamp when the switch service desired to be start. */ - time_start_desired?: string; + readonly time_start_desired?: string; /** * The timestamp when the switch service ends. */ - time_end?: string; + readonly time_end?: string; /** * Reference to the bank transfer form for this switch-service. */ - attachment?: IAttachment; + readonly attachment?: IAttachment; } export interface IAvatarRead { /** * The UUID of the created avatar. */ - uuid?: string; + readonly uuid?: string; /** * The content type of the image. */ - image?: Array; + readonly image?: Array; } export interface IAvatarCreate { /** * The UUID of the created avatar. */ - uuid?: string; + readonly uuid?: string; } export interface IAvatar { @@ -11795,30 +11797,30 @@ export interface IAvatar { /** * The public UUID of object this avatar is anchored to. */ - anchor_uuid?: string; + readonly anchor_uuid?: string; /** * The actual image information of this avatar. */ - image?: Array; + readonly image?: Array; } export interface IAttachmentUserRead { /** * The id of the attachment. */ - id?: number; + readonly id?: number; /** * The timestamp of the attachment's creation. */ - created?: string; + readonly created?: string; /** * The timestamp of the attachment's last update. */ - updated?: string; + readonly updated?: string; /** * The attachment. */ - attachment?: IAttachment; + readonly attachment?: IAttachment; } export interface IAttachmentUserContentListing {} @@ -11827,26 +11829,26 @@ export interface IAttachmentTabRead { /** * The id of the attachment. */ - id?: number; + readonly id?: number; /** * The timestamp of the attachment's creation. */ - created?: string; + readonly created?: string; /** * The timestamp of the attachment's last update. */ - updated?: string; + readonly updated?: string; /** * The attachment. */ - attachment?: IAttachment; + readonly attachment?: IAttachment; } export interface IAttachmentTabCreate { /** * The id of the created item */ - Id?: BunqId; + readonly Id?: BunqId; } export interface IAttachmentTabContentListing {} @@ -11857,26 +11859,26 @@ export interface IAttachmentPublicRead { /** * The UUID of the attachment. */ - uuid?: string; + readonly uuid?: string; /** * The timestamp of the attachment's creation. */ - created?: string; + readonly created?: string; /** * The timestamp of the attachment's last update. */ - updated?: string; + readonly updated?: string; /** * The attachment. */ - attachment?: IAttachment; + readonly attachment?: IAttachment; } export interface IAttachmentPublicCreate { /** * The id of the created item */ - Id?: BunqId; + readonly Id?: BunqId; } export interface IAttachmentPublicContentListing {} @@ -11891,14 +11893,14 @@ export interface IAttachmentMonetaryAccountPayment { /** * The id of the MonetaryAccount this Attachment is attached from. */ - monetary_account_id?: number; + readonly monetary_account_id?: number; } export interface IAttachmentMonetaryAccountCreate { /** * The ID of the attachment created. */ - id?: number; + readonly id?: number; } export interface IAttachmentMonetaryAccountContentListing {} @@ -11911,11 +11913,11 @@ export interface IAttachment { /** * The description of the attachment. */ - description?: string; + readonly description?: string; /** * The content type of the attachment's file. */ - content_type?: string; + readonly content_type?: string; } export interface IAmount { @@ -11965,7 +11967,7 @@ export interface IAddress { /** * The province according to local standard. */ - province?: string; + readonly province?: string; } export type BunqId = string; diff --git a/src/Types/DeepMutable.ts b/src/Types/DeepMutable.ts new file mode 100644 index 0000000..f8d802b --- /dev/null +++ b/src/Types/DeepMutable.ts @@ -0,0 +1,9 @@ +type Mutable = { + -readonly [P in keyof T]: T[P]; +} + +type DeepMutable = { + -readonly [P in keyof T]: DeepMutable; +}; + +export default DeepMutable; From 438580e6edc3adcab177609f310d93f0ad9bc021 Mon Sep 17 00:00:00 2001 From: Michael Dekker Date: Thu, 23 Jan 2020 19:23:41 +0100 Subject: [PATCH 3/6] chore: Remove unused variable --- build/types/generate-types.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/types/generate-types.js b/build/types/generate-types.js index 7ed6602..f7401a4 100755 --- a/build/types/generate-types.js +++ b/build/types/generate-types.js @@ -251,7 +251,7 @@ function parse(spec, options= {}) { const singleInterface = []; const nextObject = queue.pop(); if (!nextObject) return; - let [ID, { allOf, properties, required, readOnly, additionalProperties, type }] = nextObject; + let [ID, { allOf, properties, required, additionalProperties, type }] = nextObject; let allProperties = properties || {}; const includes = []; From 9e66b7af44f660fe0c67e690a05f7d9d5f5ac20a Mon Sep 17 00:00:00 2001 From: Michael Dekker Date: Thu, 23 Jan 2020 19:27:40 +0100 Subject: [PATCH 4/6] chore: Ran prettier --- src/Types/ApiTypes.ts | 20786 +++++++++++++++---------------- src/Types/Coordinate.ts | 2 +- src/Types/CountryPermission.ts | 2 +- src/Types/DeepMutable.ts | 8 +- 4 files changed, 10395 insertions(+), 10403 deletions(-) diff --git a/src/Types/ApiTypes.ts b/src/Types/ApiTypes.ts index 7fab138..2e3c59a 100644 --- a/src/Types/ApiTypes.ts +++ b/src/Types/ApiTypes.ts @@ -1,2836 +1,2834 @@ export interface IWhitelistSddUpdate { - /** - * The id of the created item - */ - readonly Id?: BunqId; + /** + * The id of the created item + */ + readonly Id?: BunqId; } export interface IWhitelistSddRead { - /** - * The ID of the whitelist entry. - */ - readonly id?: number; - /** - * The account to which payments will come in before possibly being 'redirected' by the whitelist. - */ - readonly monetary_account_incoming_id?: number; - /** - * The account from which payments will be deducted when a transaction is matched with this whitelist. - */ - readonly monetary_account_paying_id?: number; - /** - * The type of the SDD whitelist, can be CORE or B2B. - */ - readonly type?: string; - /** - * The status of the whitelist. - */ - readonly status?: string; - /** - * The credit scheme ID provided by the counterparty. - */ - readonly credit_scheme_identifier?: string; - /** - * The mandate ID provided by the counterparty. - */ - readonly mandate_identifier?: string; - /** - * The account to which payments will be paid. - */ - readonly counterparty_alias?: ILabelMonetaryAccount; - /** - * The monthly maximum amount that can be deducted from the target account. - */ - readonly maximum_amount_per_month?: IAmount; - /** - * The user who created the whitelist entry. - */ - readonly user_alias_created?: ILabelUser; + /** + * The ID of the whitelist entry. + */ + readonly id?: number; + /** + * The account to which payments will come in before possibly being 'redirected' by the whitelist. + */ + readonly monetary_account_incoming_id?: number; + /** + * The account from which payments will be deducted when a transaction is matched with this whitelist. + */ + readonly monetary_account_paying_id?: number; + /** + * The type of the SDD whitelist, can be CORE or B2B. + */ + readonly type?: string; + /** + * The status of the whitelist. + */ + readonly status?: string; + /** + * The credit scheme ID provided by the counterparty. + */ + readonly credit_scheme_identifier?: string; + /** + * The mandate ID provided by the counterparty. + */ + readonly mandate_identifier?: string; + /** + * The account to which payments will be paid. + */ + readonly counterparty_alias?: ILabelMonetaryAccount; + /** + * The monthly maximum amount that can be deducted from the target account. + */ + readonly maximum_amount_per_month?: IAmount; + /** + * The user who created the whitelist entry. + */ + readonly user_alias_created?: ILabelUser; } export interface IWhitelistSddListing { - /** - * The ID of the whitelist entry. - */ - readonly id?: number; - /** - * The account to which payments will come in before possibly being 'redirected' by the whitelist. - */ - readonly monetary_account_incoming_id?: number; - /** - * The account from which payments will be deducted when a transaction is matched with this whitelist. - */ - readonly monetary_account_paying_id?: number; - /** - * The type of the SDD whitelist, can be CORE or B2B. - */ - readonly type?: string; - /** - * The status of the whitelist. - */ - readonly status?: string; - /** - * The credit scheme ID provided by the counterparty. - */ - readonly credit_scheme_identifier?: string; - /** - * The mandate ID provided by the counterparty. - */ - readonly mandate_identifier?: string; - /** - * The account to which payments will be paid. - */ - readonly counterparty_alias?: ILabelMonetaryAccount; - /** - * The monthly maximum amount that can be deducted from the target account. - */ - readonly maximum_amount_per_month?: IAmount; - /** - * The user who created the whitelist entry. - */ - readonly user_alias_created?: ILabelUser; + /** + * The ID of the whitelist entry. + */ + readonly id?: number; + /** + * The account to which payments will come in before possibly being 'redirected' by the whitelist. + */ + readonly monetary_account_incoming_id?: number; + /** + * The account from which payments will be deducted when a transaction is matched with this whitelist. + */ + readonly monetary_account_paying_id?: number; + /** + * The type of the SDD whitelist, can be CORE or B2B. + */ + readonly type?: string; + /** + * The status of the whitelist. + */ + readonly status?: string; + /** + * The credit scheme ID provided by the counterparty. + */ + readonly credit_scheme_identifier?: string; + /** + * The mandate ID provided by the counterparty. + */ + readonly mandate_identifier?: string; + /** + * The account to which payments will be paid. + */ + readonly counterparty_alias?: ILabelMonetaryAccount; + /** + * The monthly maximum amount that can be deducted from the target account. + */ + readonly maximum_amount_per_month?: IAmount; + /** + * The user who created the whitelist entry. + */ + readonly user_alias_created?: ILabelUser; } export interface IWhitelistSddDelete {} export interface IWhitelistSddCreate { - /** - * The id of the created item - */ - readonly Id?: BunqId; + /** + * The id of the created item + */ + readonly Id?: BunqId; } export interface IWhitelistSdd { - /** - * ID of the monetary account of which you want to pay from. - */ - monetary_account_paying_id: number; - /** - * ID of the request for which you want to whitelist the originating SDD. - */ - request_id: number; - /** - * The maximum amount of money that is allowed to be deducted based on the whitelist. - */ - maximum_amount_per_month: IAmount; + /** + * ID of the monetary account of which you want to pay from. + */ + monetary_account_paying_id: number; + /** + * ID of the request for which you want to whitelist the originating SDD. + */ + request_id: number; + /** + * The maximum amount of money that is allowed to be deducted based on the whitelist. + */ + maximum_amount_per_month: IAmount; } export interface IWhitelistResultViewAnchoredObject { - /** - * The ID of the whitelist entry. - */ - readonly id?: number; - /** - * The RequestResponse object - */ - readonly requestResponse?: IRequestResponse; - /** - * The DraftPayment object - */ - readonly draftPayment?: IDraftPayment; + /** + * The ID of the whitelist entry. + */ + readonly id?: number; + /** + * The RequestResponse object + */ + readonly requestResponse?: IRequestResponse; + /** + * The DraftPayment object + */ + readonly draftPayment?: IDraftPayment; } export interface IWhitelistResult { - /** - * The ID of the whitelist entry. - */ - readonly id?: number; - /** - * The account from which payments will be deducted when a transaction is matched with this whitelist. - */ - readonly monetary_account_paying_id?: number; - /** - * The status of the WhitelistResult. - */ - readonly status?: string; - /** - * The subStatus of the WhitelistResult. - */ - readonly sub_status?: string; - /** - * The message when the whitelist result has failed due to user error. - */ - readonly error_message?: Array; - /** - * The corresponding whitelist. - */ - readonly whitelist?: IWhitelist; - /** - * The details of the external object the event was created for. - */ - readonly object?: IWhitelistResultViewAnchoredObject; - /** - * The reference to the object used for split the bill. Can be RequestInquiry or RequestInquiryBatch - */ - readonly request_reference_split_the_bill?: Array; + /** + * The ID of the whitelist entry. + */ + readonly id?: number; + /** + * The account from which payments will be deducted when a transaction is matched with this whitelist. + */ + readonly monetary_account_paying_id?: number; + /** + * The status of the WhitelistResult. + */ + readonly status?: string; + /** + * The subStatus of the WhitelistResult. + */ + readonly sub_status?: string; + /** + * The message when the whitelist result has failed due to user error. + */ + readonly error_message?: Array; + /** + * The corresponding whitelist. + */ + readonly whitelist?: IWhitelist; + /** + * The details of the external object the event was created for. + */ + readonly object?: IWhitelistResultViewAnchoredObject; + /** + * The reference to the object used for split the bill. Can be RequestInquiry or RequestInquiryBatch + */ + readonly request_reference_split_the_bill?: Array; } export interface IWhitelist {} export interface IUserRead { - /** - * - */ - readonly UserLight?: IUserLight; - /** - * - */ - readonly UserPerson?: IUserPerson; - /** - * - */ - readonly UserCompany?: IUserCompany; - /** - * - */ - readonly UserApiKey?: IUserApiKey; - /** - * - */ - readonly UserPaymentServiceProvider?: IUserPaymentServiceProvider; + /** + * + */ + readonly UserLight?: IUserLight; + /** + * + */ + readonly UserPerson?: IUserPerson; + /** + * + */ + readonly UserCompany?: IUserCompany; + /** + * + */ + readonly UserApiKey?: IUserApiKey; + /** + * + */ + readonly UserPaymentServiceProvider?: IUserPaymentServiceProvider; } export interface IUserPersonUpdate { - /** - * The id of the modified person object. - */ - readonly id?: number; + /** + * The id of the modified person object. + */ + readonly id?: number; } export interface IUserPersonRead { - /** - * The id of the modified person object. - */ - readonly id?: number; - /** - * The timestamp of the person object's creation. - */ - readonly created?: string; - /** - * The timestamp of the person object's last update. - */ - readonly updated?: string; - /** - * The person's public UUID. - */ - readonly public_uuid?: string; - /** - * The person's first name. - */ - readonly first_name?: string; - /** - * The person's middle name. - */ - readonly middle_name?: string; - /** - * The person's last name. - */ - readonly last_name?: string; - /** - * The person's legal name. - */ - readonly legal_name?: string; - /** - * The display name for the person. - */ - readonly display_name?: string; - /** - * The public nick name for the person. - */ - readonly public_nick_name?: string; - /** - * The aliases of the user. - */ - readonly alias?: Array; - /** - * The user's tax residence numbers for different countries. - */ - readonly tax_resident?: Array; - /** - * The type of identification document the person registered with. - */ - readonly document_type?: string; - /** - * The identification document number the person registered with. - */ - readonly document_number?: string; - /** - * The country which issued the identification document the person registered with. - */ - readonly document_country_of_issuance?: string; - /** - * The person's main address. - */ - readonly address_main?: IAddress; - /** - * The person's postal address. - */ - readonly address_postal?: IAddress; - /** - * The person's date of birth. Accepts ISO8601 date formats. - */ - readonly date_of_birth?: string; - /** - * The person's place of birth. - */ - readonly place_of_birth?: string; - /** - * The person's country of birth. Formatted as a SO 3166-1 alpha-2 country code. - */ - readonly country_of_birth?: string; - /** - * The person's nationality. Formatted as a SO 3166-1 alpha-2 country code. - */ - readonly nationality?: string; - /** - * The person's preferred language. Formatted as a ISO 639-1 language code plus a ISO 3166-1 alpha-2 country code, seperated by an underscore. - */ - readonly language?: string; - /** - * The person's preferred region. Formatted as a ISO 639-1 language code plus a ISO 3166-1 alpha-2 country code, seperated by an underscore. - */ - readonly region?: string; - /** - * The person's gender. Can be MALE, FEMALE or UNKNOWN. - */ - readonly gender?: string; - /** - * The user's avatar. - */ - readonly avatar?: IAvatar; - /** - * The version of the terms of service accepted by the user. - */ - readonly version_terms_of_service?: string; - /** - * The user status. The user status. Can be: ACTIVE, BLOCKED, SIGNUP, RECOVERY, DENIED or ABORTED. - */ - readonly status?: string; - /** - * The user sub-status. Can be: NONE, FACE_RESET, APPROVAL, APPROVAL_DIRECTOR, APPROVAL_PARENT, APPROVAL_SUPPORT, COUNTER_IBAN, IDEAL or SUBMIT. - */ - readonly sub_status?: string; - /** - * The setting for the session timeout of the user in seconds. - */ - readonly session_timeout?: number; - /** - * The amount the user can pay in the session without asking for credentials. - */ - readonly daily_limit_without_confirmation_login?: IAmount; - /** - * The types of notifications that will result in a push notification or URL callback for this UserPerson. - */ - readonly notification_filters?: Array; + /** + * The id of the modified person object. + */ + readonly id?: number; + /** + * The timestamp of the person object's creation. + */ + readonly created?: string; + /** + * The timestamp of the person object's last update. + */ + readonly updated?: string; + /** + * The person's public UUID. + */ + readonly public_uuid?: string; + /** + * The person's first name. + */ + readonly first_name?: string; + /** + * The person's middle name. + */ + readonly middle_name?: string; + /** + * The person's last name. + */ + readonly last_name?: string; + /** + * The person's legal name. + */ + readonly legal_name?: string; + /** + * The display name for the person. + */ + readonly display_name?: string; + /** + * The public nick name for the person. + */ + readonly public_nick_name?: string; + /** + * The aliases of the user. + */ + readonly alias?: Array; + /** + * The user's tax residence numbers for different countries. + */ + readonly tax_resident?: Array; + /** + * The type of identification document the person registered with. + */ + readonly document_type?: string; + /** + * The identification document number the person registered with. + */ + readonly document_number?: string; + /** + * The country which issued the identification document the person registered with. + */ + readonly document_country_of_issuance?: string; + /** + * The person's main address. + */ + readonly address_main?: IAddress; + /** + * The person's postal address. + */ + readonly address_postal?: IAddress; + /** + * The person's date of birth. Accepts ISO8601 date formats. + */ + readonly date_of_birth?: string; + /** + * The person's place of birth. + */ + readonly place_of_birth?: string; + /** + * The person's country of birth. Formatted as a SO 3166-1 alpha-2 country code. + */ + readonly country_of_birth?: string; + /** + * The person's nationality. Formatted as a SO 3166-1 alpha-2 country code. + */ + readonly nationality?: string; + /** + * The person's preferred language. Formatted as a ISO 639-1 language code plus a ISO 3166-1 alpha-2 country code, seperated by an underscore. + */ + readonly language?: string; + /** + * The person's preferred region. Formatted as a ISO 639-1 language code plus a ISO 3166-1 alpha-2 country code, seperated by an underscore. + */ + readonly region?: string; + /** + * The person's gender. Can be MALE, FEMALE or UNKNOWN. + */ + readonly gender?: string; + /** + * The user's avatar. + */ + readonly avatar?: IAvatar; + /** + * The version of the terms of service accepted by the user. + */ + readonly version_terms_of_service?: string; + /** + * The user status. The user status. Can be: ACTIVE, BLOCKED, SIGNUP, RECOVERY, DENIED or ABORTED. + */ + readonly status?: string; + /** + * The user sub-status. Can be: NONE, FACE_RESET, APPROVAL, APPROVAL_DIRECTOR, APPROVAL_PARENT, APPROVAL_SUPPORT, COUNTER_IBAN, IDEAL or SUBMIT. + */ + readonly sub_status?: string; + /** + * The setting for the session timeout of the user in seconds. + */ + readonly session_timeout?: number; + /** + * The amount the user can pay in the session without asking for credentials. + */ + readonly daily_limit_without_confirmation_login?: IAmount; + /** + * The types of notifications that will result in a push notification or URL callback for this UserPerson. + */ + readonly notification_filters?: Array; } export interface IUserPerson { - /** - * The person's first name. - */ - first_name?: string; - /** - * The person's middle name. - */ - middle_name?: string; - /** - * The person's last name. - */ - last_name?: string; - /** - * The public nick name for the person. - */ - public_nick_name?: string; - /** - * The person's main address. - */ - address_main?: IAddress; - /** - * The person's postal address. - */ - address_postal?: IAddress; - /** - * The public UUID of the user's avatar. - */ - avatar_uuid: string; - /** - * The user's tax residence numbers for different countries. - */ - tax_resident?: Array; - /** - * The type of identification document the person registered with. - */ - document_type?: string; - /** - * The identification document number the person registered with. - */ - document_number?: string; - /** - * The country which issued the identification document the person registered with. - */ - document_country_of_issuance?: string; - /** - * The reference to the uploaded picture/scan of the front side of the identification document. - */ - document_front_attachment_id: number; - /** - * The reference to the uploaded picture/scan of the back side of the identification document. - */ - document_back_attachment_id?: number; - /** - * The person's date of birth. Accepts ISO8601 date formats. - */ - date_of_birth?: string; - /** - * The person's place of birth. - */ - place_of_birth?: string; - /** - * The person's country of birth. Formatted as a SO 3166-1 alpha-2 country code. - */ - country_of_birth?: string; - /** - * The person's nationality. Formatted as a SO 3166-1 alpha-2 country code. - */ - nationality?: string; - /** - * The person's preferred language. Formatted as a ISO 639-1 language code plus a ISO 3166-1 alpha-2 country code, seperated by an underscore. - */ - language?: string; - /** - * The person's preferred region. Formatted as a ISO 639-1 language code plus a ISO 3166-1 alpha-2 country code, seperated by an underscore. - */ - region?: string; - /** - * The person's gender. Can be MALE, FEMALE or UNKNOWN. - */ - gender?: string; - /** - * The user status. The user status. Can be: ACTIVE, BLOCKED, SIGNUP, RECOVERY, DENIED or ABORTED. - */ - status?: string; - /** - * The user sub-status. Can be: NONE, FACE_RESET, APPROVAL, APPROVAL_DIRECTOR, APPROVAL_PARENT, APPROVAL_SUPPORT, COUNTER_IBAN, IDEAL or SUBMIT. - */ - sub_status?: string; - /** - * The legal guardian of the user. Required for minors. - */ - legal_guardian_alias: IPointer; - /** - * The setting for the session timeout of the user in seconds. - */ - session_timeout?: number; - /** - * The amount the user can pay in the session without asking for credentials. - */ - daily_limit_without_confirmation_login?: IAmount; - /** - * The display name for the person. - */ - display_name?: string; - /** - * The id of the modified person object. - */ - readonly id?: number; - /** - * The timestamp of the person object's creation. - */ - readonly created?: string; - /** - * The timestamp of the person object's last update. - */ - readonly updated?: string; - /** - * The person's public UUID. - */ - readonly public_uuid?: string; - /** - * The person's legal name. - */ - readonly legal_name?: string; - /** - * The aliases of the user. - */ - readonly alias?: Array; - /** - * The user's avatar. - */ - readonly avatar?: IAvatar; - /** - * The version of the terms of service accepted by the user. - */ - readonly version_terms_of_service?: string; - /** - * The types of notifications that will result in a push notification or URL callback for this UserPerson. - */ - readonly notification_filters?: Array; + /** + * The person's first name. + */ + first_name?: string; + /** + * The person's middle name. + */ + middle_name?: string; + /** + * The person's last name. + */ + last_name?: string; + /** + * The public nick name for the person. + */ + public_nick_name?: string; + /** + * The person's main address. + */ + address_main?: IAddress; + /** + * The person's postal address. + */ + address_postal?: IAddress; + /** + * The public UUID of the user's avatar. + */ + avatar_uuid: string; + /** + * The user's tax residence numbers for different countries. + */ + tax_resident?: Array; + /** + * The type of identification document the person registered with. + */ + document_type?: string; + /** + * The identification document number the person registered with. + */ + document_number?: string; + /** + * The country which issued the identification document the person registered with. + */ + document_country_of_issuance?: string; + /** + * The reference to the uploaded picture/scan of the front side of the identification document. + */ + document_front_attachment_id: number; + /** + * The reference to the uploaded picture/scan of the back side of the identification document. + */ + document_back_attachment_id?: number; + /** + * The person's date of birth. Accepts ISO8601 date formats. + */ + date_of_birth?: string; + /** + * The person's place of birth. + */ + place_of_birth?: string; + /** + * The person's country of birth. Formatted as a SO 3166-1 alpha-2 country code. + */ + country_of_birth?: string; + /** + * The person's nationality. Formatted as a SO 3166-1 alpha-2 country code. + */ + nationality?: string; + /** + * The person's preferred language. Formatted as a ISO 639-1 language code plus a ISO 3166-1 alpha-2 country code, seperated by an underscore. + */ + language?: string; + /** + * The person's preferred region. Formatted as a ISO 639-1 language code plus a ISO 3166-1 alpha-2 country code, seperated by an underscore. + */ + region?: string; + /** + * The person's gender. Can be MALE, FEMALE or UNKNOWN. + */ + gender?: string; + /** + * The user status. The user status. Can be: ACTIVE, BLOCKED, SIGNUP, RECOVERY, DENIED or ABORTED. + */ + status?: string; + /** + * The user sub-status. Can be: NONE, FACE_RESET, APPROVAL, APPROVAL_DIRECTOR, APPROVAL_PARENT, APPROVAL_SUPPORT, COUNTER_IBAN, IDEAL or SUBMIT. + */ + sub_status?: string; + /** + * The legal guardian of the user. Required for minors. + */ + legal_guardian_alias: IPointer; + /** + * The setting for the session timeout of the user in seconds. + */ + session_timeout?: number; + /** + * The amount the user can pay in the session without asking for credentials. + */ + daily_limit_without_confirmation_login?: IAmount; + /** + * The display name for the person. + */ + display_name?: string; + /** + * The id of the modified person object. + */ + readonly id?: number; + /** + * The timestamp of the person object's creation. + */ + readonly created?: string; + /** + * The timestamp of the person object's last update. + */ + readonly updated?: string; + /** + * The person's public UUID. + */ + readonly public_uuid?: string; + /** + * The person's legal name. + */ + readonly legal_name?: string; + /** + * The aliases of the user. + */ + readonly alias?: Array; + /** + * The user's avatar. + */ + readonly avatar?: IAvatar; + /** + * The version of the terms of service accepted by the user. + */ + readonly version_terms_of_service?: string; + /** + * The types of notifications that will result in a push notification or URL callback for this UserPerson. + */ + readonly notification_filters?: Array; } export interface IUserPaymentServiceProviderRead { - /** - * The id of the user. - */ - readonly id?: number; - /** - * The timestamp of the user object's creation. - */ - readonly created?: string; - /** - * The timestamp of the user object's last update. - */ - readonly updated?: string; - /** - * The distinguished name from the certificate used to identify this user. - */ - readonly certificate_distinguished_name?: string; - /** - * The aliases of the user. - */ - readonly alias?: Array; - /** - * The user's avatar. - */ - readonly avatar?: IAvatar; - /** - * The user status. The user status. Can be: ACTIVE, BLOCKED or DENIED. - */ - readonly status?: string; - /** - * The user sub-status. Can be: NONE - */ - readonly sub_status?: string; - /** - * The providers's public UUID. - */ - readonly public_uuid?: string; - /** - * The display name for the provider. - */ - readonly display_name?: string; - /** - * The public nick name for the provider. - */ - readonly public_nick_name?: string; - /** - * The provider's language. Formatted as a ISO 639-1 language code plus a ISO 3166-1 alpha-2 country code, separated by an underscore. - */ - readonly language?: string; - /** - * The provider's region. Formatted as a ISO 639-1 language code plus a ISO 3166-1 alpha-2 country code, separated by an underscore. - */ - readonly region?: string; - /** - * The setting for the session timeout of the user in seconds. - */ - readonly session_timeout?: number; + /** + * The id of the user. + */ + readonly id?: number; + /** + * The timestamp of the user object's creation. + */ + readonly created?: string; + /** + * The timestamp of the user object's last update. + */ + readonly updated?: string; + /** + * The distinguished name from the certificate used to identify this user. + */ + readonly certificate_distinguished_name?: string; + /** + * The aliases of the user. + */ + readonly alias?: Array; + /** + * The user's avatar. + */ + readonly avatar?: IAvatar; + /** + * The user status. The user status. Can be: ACTIVE, BLOCKED or DENIED. + */ + readonly status?: string; + /** + * The user sub-status. Can be: NONE + */ + readonly sub_status?: string; + /** + * The providers's public UUID. + */ + readonly public_uuid?: string; + /** + * The display name for the provider. + */ + readonly display_name?: string; + /** + * The public nick name for the provider. + */ + readonly public_nick_name?: string; + /** + * The provider's language. Formatted as a ISO 639-1 language code plus a ISO 3166-1 alpha-2 country code, separated by an underscore. + */ + readonly language?: string; + /** + * The provider's region. Formatted as a ISO 639-1 language code plus a ISO 3166-1 alpha-2 country code, separated by an underscore. + */ + readonly region?: string; + /** + * The setting for the session timeout of the user in seconds. + */ + readonly session_timeout?: number; } export interface IUserPaymentServiceProvider { - /** - * The id of the user. - */ - readonly id?: number; - /** - * The timestamp of the user object's creation. - */ - readonly created?: string; - /** - * The timestamp of the user object's last update. - */ - readonly updated?: string; - /** - * The distinguished name from the certificate used to identify this user. - */ - readonly certificate_distinguished_name?: string; - /** - * The aliases of the user. - */ - readonly alias?: Array; - /** - * The user's avatar. - */ - readonly avatar?: IAvatar; - /** - * The user status. The user status. Can be: ACTIVE, BLOCKED or DENIED. - */ - readonly status?: string; - /** - * The user sub-status. Can be: NONE - */ - readonly sub_status?: string; - /** - * The providers's public UUID. - */ - readonly public_uuid?: string; - /** - * The display name for the provider. - */ - readonly display_name?: string; - /** - * The public nick name for the provider. - */ - readonly public_nick_name?: string; - /** - * The provider's language. Formatted as a ISO 639-1 language code plus a ISO 3166-1 alpha-2 country code, separated by an underscore. - */ - readonly language?: string; - /** - * The provider's region. Formatted as a ISO 639-1 language code plus a ISO 3166-1 alpha-2 country code, separated by an underscore. - */ - readonly region?: string; - /** - * The setting for the session timeout of the user in seconds. - */ - readonly session_timeout?: number; + /** + * The id of the user. + */ + readonly id?: number; + /** + * The timestamp of the user object's creation. + */ + readonly created?: string; + /** + * The timestamp of the user object's last update. + */ + readonly updated?: string; + /** + * The distinguished name from the certificate used to identify this user. + */ + readonly certificate_distinguished_name?: string; + /** + * The aliases of the user. + */ + readonly alias?: Array; + /** + * The user's avatar. + */ + readonly avatar?: IAvatar; + /** + * The user status. The user status. Can be: ACTIVE, BLOCKED or DENIED. + */ + readonly status?: string; + /** + * The user sub-status. Can be: NONE + */ + readonly sub_status?: string; + /** + * The providers's public UUID. + */ + readonly public_uuid?: string; + /** + * The display name for the provider. + */ + readonly display_name?: string; + /** + * The public nick name for the provider. + */ + readonly public_nick_name?: string; + /** + * The provider's language. Formatted as a ISO 639-1 language code plus a ISO 3166-1 alpha-2 country code, separated by an underscore. + */ + readonly language?: string; + /** + * The provider's region. Formatted as a ISO 639-1 language code plus a ISO 3166-1 alpha-2 country code, separated by an underscore. + */ + readonly region?: string; + /** + * The setting for the session timeout of the user in seconds. + */ + readonly session_timeout?: number; } export interface IUserListing { - /** - * - */ - readonly UserLight?: IUserLight; - /** - * - */ - readonly UserPerson?: IUserPerson; - /** - * - */ - readonly UserCompany?: IUserCompany; - /** - * - */ - readonly UserApiKey?: IUserApiKey; - /** - * - */ - readonly UserPaymentServiceProvider?: IUserPaymentServiceProvider; + /** + * + */ + readonly UserLight?: IUserLight; + /** + * + */ + readonly UserPerson?: IUserPerson; + /** + * + */ + readonly UserCompany?: IUserCompany; + /** + * + */ + readonly UserApiKey?: IUserApiKey; + /** + * + */ + readonly UserPaymentServiceProvider?: IUserPaymentServiceProvider; } export interface IUserLight { - /** - * The user's first name. - */ - first_name?: string; - /** - * The user's middle name. - */ - middle_name?: string; - /** - * The user's last name. - */ - last_name?: string; - /** - * The public nick name for the user. - */ - public_nick_name?: string; - /** - * The user's main address. - */ - address_main?: IAddress; - /** - * The user's postal address. - */ - address_postal?: IAddress; - /** - * The public UUID of the user's avatar. - */ - avatar_uuid: string; - /** - * The user's social security number. - */ - social_security_number?: string; - /** - * The user's tax residence numbers for different countries. - */ - tax_resident?: Array; - /** - * The type of identification document the user registered with. - */ - document_type?: string; - /** - * The identification document number the user registered with. - */ - document_number?: string; - /** - * The country which issued the identification document the user registered with. - */ - document_country_of_issuance?: string; - /** - * The reference to the uploaded picture/scan of the front side of the identification document. - */ - document_front_attachment_id?: number; - /** - * The reference to the uploaded picture/scan of the back side of the identification document. - */ - document_back_attachment_id?: number; - /** - * The user's date of birth. Accepts ISO8601 date formats. - */ - date_of_birth?: string; - /** - * The user's place of birth. - */ - place_of_birth?: string; - /** - * The user's country of birth. Formatted as a SO 3166-1 alpha-2 country code. - */ - country_of_birth?: string; - /** - * The user's nationality. Formatted as a SO 3166-1 alpha-2 country code. - */ - nationality?: string; - /** - * The user's preferred language. Formatted as a ISO 639-1 language code plus a ISO 3166-1 alpha-2 country code, seperated by an underscore. - */ - language?: string; - /** - * The user's preferred region. Formatted as a ISO 639-1 language code plus a ISO 3166-1 alpha-2 country code, seperated by an underscore. - */ - region?: string; - /** - * The user's gender. Can be MALE, FEMALE or UNKNOWN. - */ - gender?: string; - /** - * The user status. The user status. Can be: ACTIVE, BLOCKED, SIGNUP, DENIED or ABORTED. - */ - status?: string; - /** - * The user sub-status. Can be: NONE, FACE_RESET, APPROVAL, APPROVAL_PARENT, AWAITING_PARENT, APPROVAL_SUPPORT, COUNTER_IBAN, IDEAL or SUBMIT. - */ - sub_status?: string; - /** - * The legal guardian of the user. Required for minors. - */ - legal_guardian_alias?: IPointer; - /** - * The setting for the session timeout of the user in seconds. - */ - session_timeout?: number; - /** - * The amount the user can pay in the session without asking for credentials. - */ - daily_limit_without_confirmation_login?: IAmount; - /** - * The id of the user. - */ - readonly id?: number; - /** - * The timestamp of the user object's creation. - */ - readonly created?: string; - /** - * The timestamp of the user object's last update. - */ - readonly updated?: string; - /** - * The user's public UUID. - */ - readonly public_uuid?: string; - /** - * The user's legal name. - */ - readonly legal_name?: string; - /** - * The display name for the user. - */ - readonly display_name?: string; - /** - * The aliases of the user. - */ - readonly alias?: Array; - /** - * The user's avatar. - */ - readonly avatar?: IAvatar; - /** - * The version of the terms of service accepted by the user. - */ - readonly version_terms_of_service?: string; - /** - * The types of notifications that will result in a push notification or URL callback for this UserLight. - */ - readonly notification_filters?: Array; - /** - * The user deny reason. - */ - readonly deny_reason?: string; + /** + * The user's first name. + */ + first_name?: string; + /** + * The user's middle name. + */ + middle_name?: string; + /** + * The user's last name. + */ + last_name?: string; + /** + * The public nick name for the user. + */ + public_nick_name?: string; + /** + * The user's main address. + */ + address_main?: IAddress; + /** + * The user's postal address. + */ + address_postal?: IAddress; + /** + * The public UUID of the user's avatar. + */ + avatar_uuid: string; + /** + * The user's social security number. + */ + social_security_number?: string; + /** + * The user's tax residence numbers for different countries. + */ + tax_resident?: Array; + /** + * The type of identification document the user registered with. + */ + document_type?: string; + /** + * The identification document number the user registered with. + */ + document_number?: string; + /** + * The country which issued the identification document the user registered with. + */ + document_country_of_issuance?: string; + /** + * The reference to the uploaded picture/scan of the front side of the identification document. + */ + document_front_attachment_id?: number; + /** + * The reference to the uploaded picture/scan of the back side of the identification document. + */ + document_back_attachment_id?: number; + /** + * The user's date of birth. Accepts ISO8601 date formats. + */ + date_of_birth?: string; + /** + * The user's place of birth. + */ + place_of_birth?: string; + /** + * The user's country of birth. Formatted as a SO 3166-1 alpha-2 country code. + */ + country_of_birth?: string; + /** + * The user's nationality. Formatted as a SO 3166-1 alpha-2 country code. + */ + nationality?: string; + /** + * The user's preferred language. Formatted as a ISO 639-1 language code plus a ISO 3166-1 alpha-2 country code, seperated by an underscore. + */ + language?: string; + /** + * The user's preferred region. Formatted as a ISO 639-1 language code plus a ISO 3166-1 alpha-2 country code, seperated by an underscore. + */ + region?: string; + /** + * The user's gender. Can be MALE, FEMALE or UNKNOWN. + */ + gender?: string; + /** + * The user status. The user status. Can be: ACTIVE, BLOCKED, SIGNUP, DENIED or ABORTED. + */ + status?: string; + /** + * The user sub-status. Can be: NONE, FACE_RESET, APPROVAL, APPROVAL_PARENT, AWAITING_PARENT, APPROVAL_SUPPORT, COUNTER_IBAN, IDEAL or SUBMIT. + */ + sub_status?: string; + /** + * The legal guardian of the user. Required for minors. + */ + legal_guardian_alias?: IPointer; + /** + * The setting for the session timeout of the user in seconds. + */ + session_timeout?: number; + /** + * The amount the user can pay in the session without asking for credentials. + */ + daily_limit_without_confirmation_login?: IAmount; + /** + * The id of the user. + */ + readonly id?: number; + /** + * The timestamp of the user object's creation. + */ + readonly created?: string; + /** + * The timestamp of the user object's last update. + */ + readonly updated?: string; + /** + * The user's public UUID. + */ + readonly public_uuid?: string; + /** + * The user's legal name. + */ + readonly legal_name?: string; + /** + * The display name for the user. + */ + readonly display_name?: string; + /** + * The aliases of the user. + */ + readonly alias?: Array; + /** + * The user's avatar. + */ + readonly avatar?: IAvatar; + /** + * The version of the terms of service accepted by the user. + */ + readonly version_terms_of_service?: string; + /** + * The types of notifications that will result in a push notification or URL callback for this UserLight. + */ + readonly notification_filters?: Array; + /** + * The user deny reason. + */ + readonly deny_reason?: string; } export interface IUserLegalNameListing { - /** - * All legal names that can be used by the user - */ - readonly legal_names?: Array; + /** + * All legal names that can be used by the user + */ + readonly legal_names?: Array; } export interface IUserCredentialPasswordIpRead { - /** - * The id of the credential. - */ - readonly id?: number; - /** - * The timestamp of the credential object's creation. - */ - readonly created?: string; - /** - * The timestamp of the credential object's last update. - */ - readonly updated?: string; - /** - * The status of the credential. - */ - readonly status?: string; - /** - * When the status is PENDING_FIRST_USE: when the credential expires. - */ - readonly expiry_time?: string; - /** - * When the status is PENDING_FIRST_USE: the value of the token. - */ - readonly token_value?: string; - /** - * When the status is ACTIVE: the details of the device that may use the credential. - */ - readonly permitted_device?: IPermittedDevice; + /** + * The id of the credential. + */ + readonly id?: number; + /** + * The timestamp of the credential object's creation. + */ + readonly created?: string; + /** + * The timestamp of the credential object's last update. + */ + readonly updated?: string; + /** + * The status of the credential. + */ + readonly status?: string; + /** + * When the status is PENDING_FIRST_USE: when the credential expires. + */ + readonly expiry_time?: string; + /** + * When the status is PENDING_FIRST_USE: the value of the token. + */ + readonly token_value?: string; + /** + * When the status is ACTIVE: the details of the device that may use the credential. + */ + readonly permitted_device?: IPermittedDevice; } export interface IUserCredentialPasswordIpListing { - /** - * The id of the credential. - */ - readonly id?: number; - /** - * The timestamp of the credential object's creation. - */ - readonly created?: string; - /** - * The timestamp of the credential object's last update. - */ - readonly updated?: string; - /** - * The status of the credential. - */ - readonly status?: string; - /** - * When the status is PENDING_FIRST_USE: when the credential expires. - */ - readonly expiry_time?: string; - /** - * When the status is PENDING_FIRST_USE: the value of the token. - */ - readonly token_value?: string; - /** - * When the status is ACTIVE: the details of the device that may use the credential. - */ - readonly permitted_device?: IPermittedDevice; + /** + * The id of the credential. + */ + readonly id?: number; + /** + * The timestamp of the credential object's creation. + */ + readonly created?: string; + /** + * The timestamp of the credential object's last update. + */ + readonly updated?: string; + /** + * The status of the credential. + */ + readonly status?: string; + /** + * When the status is PENDING_FIRST_USE: when the credential expires. + */ + readonly expiry_time?: string; + /** + * When the status is PENDING_FIRST_USE: the value of the token. + */ + readonly token_value?: string; + /** + * When the status is ACTIVE: the details of the device that may use the credential. + */ + readonly permitted_device?: IPermittedDevice; } export interface IUserCompanyUpdate { - /** - * The id of the modified company. - */ - readonly id?: number; + /** + * The id of the modified company. + */ + readonly id?: number; } export interface IUserCompanyRead { - /** - * The id of the modified company. - */ - readonly id?: number; - /** - * The timestamp of the company object's creation. - */ - readonly created?: string; - /** - * The timestamp of the company object's last update. - */ - readonly updated?: string; - /** - * The company's public UUID. - */ - readonly public_uuid?: string; - /** - * The company name. - */ - readonly name?: string; - /** - * The company's display name. - */ - readonly display_name?: string; - /** - * The company's public nick name. - */ - readonly public_nick_name?: string; - /** - * The aliases of the account. - */ - readonly alias?: Array; - /** - * The company's chamber of commerce number. - */ - readonly chamber_of_commerce_number?: string; - /** - * The company's legal form. - */ - readonly legal_form?: string; - /** - * The type of business entity. - */ - readonly type_of_business_entity?: string; - /** - * The sector of industry. - */ - readonly sector_of_industry?: string; - /** - * The company's other bank account IBAN, through which we verify it. - */ - readonly counter_bank_iban?: string; - /** - * The company's avatar. - */ - readonly avatar?: IAvatar; - /** - * The company's main address. - */ - readonly address_main?: IAddress; - /** - * The company's postal address. - */ - readonly address_postal?: IAddress; - /** - * The version of the terms of service accepted by the user. - */ - readonly version_terms_of_service?: string; - /** - * The existing bunq user alias for the company's director. - */ - readonly director_alias?: ILabelUser; - /** - * The person's preferred language. Formatted as a ISO 639-1 language code plus a ISO 3166-1 alpha-2 country code, seperated by an underscore. - */ - readonly language?: string; - /** - * The country as an ISO 3166-1 alpha-2 country code.. - */ - readonly country?: string; - /** - * The person's preferred region. Formatted as a ISO 639-1 language code plus a ISO 3166-1 alpha-2 country code, seperated by an underscore. - */ - readonly region?: string; - /** - * The names of the company's ultimate beneficiary owners. Minimum zero, maximum four. - */ - readonly ubo?: Array; - /** - * The user status. Can be: ACTIVE, SIGNUP, RECOVERY. - */ - readonly status?: string; - /** - * The user sub-status. Can be: NONE, FACE_RESET, APPROVAL, APPROVAL_DIRECTOR, APPROVAL_PARENT, APPROVAL_SUPPORT, COUNTER_IBAN, IDEAL or SUBMIT. - */ - readonly sub_status?: string; - /** - * The setting for the session timeout of the company in seconds. - */ - readonly session_timeout?: number; - /** - * The amount the company can pay in the session without asking for credentials. - */ - readonly daily_limit_without_confirmation_login?: IAmount; - /** - * The types of notifications that will result in a push notification or URL callback for this UserCompany. - */ - readonly notification_filters?: Array; - /** - * The customer profile of the company. - */ - readonly customer?: ICustomer; - /** - * The customer limits of the company. - */ - readonly customer_limit?: ICustomerLimit; - /** - * The subscription of the company. - */ - readonly billing_contract?: Array; - /** - * The user deny reason. - */ - readonly deny_reason?: string; + /** + * The id of the modified company. + */ + readonly id?: number; + /** + * The timestamp of the company object's creation. + */ + readonly created?: string; + /** + * The timestamp of the company object's last update. + */ + readonly updated?: string; + /** + * The company's public UUID. + */ + readonly public_uuid?: string; + /** + * The company name. + */ + readonly name?: string; + /** + * The company's display name. + */ + readonly display_name?: string; + /** + * The company's public nick name. + */ + readonly public_nick_name?: string; + /** + * The aliases of the account. + */ + readonly alias?: Array; + /** + * The company's chamber of commerce number. + */ + readonly chamber_of_commerce_number?: string; + /** + * The company's legal form. + */ + readonly legal_form?: string; + /** + * The type of business entity. + */ + readonly type_of_business_entity?: string; + /** + * The sector of industry. + */ + readonly sector_of_industry?: string; + /** + * The company's other bank account IBAN, through which we verify it. + */ + readonly counter_bank_iban?: string; + /** + * The company's avatar. + */ + readonly avatar?: IAvatar; + /** + * The company's main address. + */ + readonly address_main?: IAddress; + /** + * The company's postal address. + */ + readonly address_postal?: IAddress; + /** + * The version of the terms of service accepted by the user. + */ + readonly version_terms_of_service?: string; + /** + * The existing bunq user alias for the company's director. + */ + readonly director_alias?: ILabelUser; + /** + * The person's preferred language. Formatted as a ISO 639-1 language code plus a ISO 3166-1 alpha-2 country code, seperated by an underscore. + */ + readonly language?: string; + /** + * The country as an ISO 3166-1 alpha-2 country code.. + */ + readonly country?: string; + /** + * The person's preferred region. Formatted as a ISO 639-1 language code plus a ISO 3166-1 alpha-2 country code, seperated by an underscore. + */ + readonly region?: string; + /** + * The names of the company's ultimate beneficiary owners. Minimum zero, maximum four. + */ + readonly ubo?: Array; + /** + * The user status. Can be: ACTIVE, SIGNUP, RECOVERY. + */ + readonly status?: string; + /** + * The user sub-status. Can be: NONE, FACE_RESET, APPROVAL, APPROVAL_DIRECTOR, APPROVAL_PARENT, APPROVAL_SUPPORT, COUNTER_IBAN, IDEAL or SUBMIT. + */ + readonly sub_status?: string; + /** + * The setting for the session timeout of the company in seconds. + */ + readonly session_timeout?: number; + /** + * The amount the company can pay in the session without asking for credentials. + */ + readonly daily_limit_without_confirmation_login?: IAmount; + /** + * The types of notifications that will result in a push notification or URL callback for this UserCompany. + */ + readonly notification_filters?: Array; + /** + * The customer profile of the company. + */ + readonly customer?: ICustomer; + /** + * The customer limits of the company. + */ + readonly customer_limit?: ICustomerLimit; + /** + * The subscription of the company. + */ + readonly billing_contract?: Array; + /** + * The user deny reason. + */ + readonly deny_reason?: string; } export interface IUserCompanyNameListing { - /** - * All known (trade) names for a user company. - */ - readonly name_array?: Array; + /** + * All known (trade) names for a user company. + */ + readonly name_array?: Array; } export interface IUserCompany { - /** - * The company name. - */ - name?: string; - /** - * The company's public nick name. - */ - public_nick_name?: string; - /** - * The public UUID of the company's avatar. - */ - avatar_uuid?: string; - /** - * The company's main address. - */ - address_main?: IAddress; - /** - * The company's postal address. - */ - address_postal?: IAddress; - /** - * The person's preferred language. Formatted as a ISO 639-1 language code plus a ISO 3166-1 alpha-2 country code, seperated by an underscore. - */ - language?: string; - /** - * The person's preferred region. Formatted as a ISO 639-1 language code plus a ISO 3166-1 alpha-2 country code, seperated by an underscore. - */ - region?: string; - /** - * The country as an ISO 3166-1 alpha-2 country code.. - */ - country?: string; - /** - * The names of the company's ultimate beneficiary owners. Minimum zero, maximum four. - */ - ubo?: Array; - /** - * The company's chamber of commerce number. - */ - chamber_of_commerce_number?: string; - /** - * The company's legal form. - */ - legal_form?: string; - /** - * The user status. Can be: ACTIVE, SIGNUP, RECOVERY. - */ - status?: string; - /** - * The user sub-status. Can be: NONE, FACE_RESET, APPROVAL, APPROVAL_DIRECTOR, APPROVAL_PARENT, APPROVAL_SUPPORT, COUNTER_IBAN, IDEAL or SUBMIT. - */ - sub_status?: string; - /** - * The setting for the session timeout of the company in seconds. - */ - session_timeout?: number; - /** - * The amount the company can pay in the session without asking for credentials. - */ - daily_limit_without_confirmation_login?: IAmount; - /** - * The id of the modified company. - */ - readonly id?: number; - /** - * The timestamp of the company object's creation. - */ - readonly created?: string; - /** - * The timestamp of the company object's last update. - */ - readonly updated?: string; - /** - * The company's public UUID. - */ - readonly public_uuid?: string; - /** - * The company's display name. - */ - readonly display_name?: string; - /** - * The aliases of the account. - */ - readonly alias?: Array; - /** - * The type of business entity. - */ - readonly type_of_business_entity?: string; - /** - * The sector of industry. - */ - readonly sector_of_industry?: string; - /** - * The company's other bank account IBAN, through which we verify it. - */ - readonly counter_bank_iban?: string; - /** - * The company's avatar. - */ - readonly avatar?: IAvatar; - /** - * The version of the terms of service accepted by the user. - */ - readonly version_terms_of_service?: string; - /** - * The existing bunq user alias for the company's director. - */ - readonly director_alias?: ILabelUser; - /** - * The types of notifications that will result in a push notification or URL callback for this UserCompany. - */ - readonly notification_filters?: Array; - /** - * The customer profile of the company. - */ - readonly customer?: ICustomer; - /** - * The customer limits of the company. - */ - readonly customer_limit?: ICustomerLimit; - /** - * The subscription of the company. - */ - readonly billing_contract?: Array; - /** - * The user deny reason. - */ - readonly deny_reason?: string; + /** + * The company name. + */ + name?: string; + /** + * The company's public nick name. + */ + public_nick_name?: string; + /** + * The public UUID of the company's avatar. + */ + avatar_uuid?: string; + /** + * The company's main address. + */ + address_main?: IAddress; + /** + * The company's postal address. + */ + address_postal?: IAddress; + /** + * The person's preferred language. Formatted as a ISO 639-1 language code plus a ISO 3166-1 alpha-2 country code, seperated by an underscore. + */ + language?: string; + /** + * The person's preferred region. Formatted as a ISO 639-1 language code plus a ISO 3166-1 alpha-2 country code, seperated by an underscore. + */ + region?: string; + /** + * The country as an ISO 3166-1 alpha-2 country code.. + */ + country?: string; + /** + * The names of the company's ultimate beneficiary owners. Minimum zero, maximum four. + */ + ubo?: Array; + /** + * The company's chamber of commerce number. + */ + chamber_of_commerce_number?: string; + /** + * The company's legal form. + */ + legal_form?: string; + /** + * The user status. Can be: ACTIVE, SIGNUP, RECOVERY. + */ + status?: string; + /** + * The user sub-status. Can be: NONE, FACE_RESET, APPROVAL, APPROVAL_DIRECTOR, APPROVAL_PARENT, APPROVAL_SUPPORT, COUNTER_IBAN, IDEAL or SUBMIT. + */ + sub_status?: string; + /** + * The setting for the session timeout of the company in seconds. + */ + session_timeout?: number; + /** + * The amount the company can pay in the session without asking for credentials. + */ + daily_limit_without_confirmation_login?: IAmount; + /** + * The id of the modified company. + */ + readonly id?: number; + /** + * The timestamp of the company object's creation. + */ + readonly created?: string; + /** + * The timestamp of the company object's last update. + */ + readonly updated?: string; + /** + * The company's public UUID. + */ + readonly public_uuid?: string; + /** + * The company's display name. + */ + readonly display_name?: string; + /** + * The aliases of the account. + */ + readonly alias?: Array; + /** + * The type of business entity. + */ + readonly type_of_business_entity?: string; + /** + * The sector of industry. + */ + readonly sector_of_industry?: string; + /** + * The company's other bank account IBAN, through which we verify it. + */ + readonly counter_bank_iban?: string; + /** + * The company's avatar. + */ + readonly avatar?: IAvatar; + /** + * The version of the terms of service accepted by the user. + */ + readonly version_terms_of_service?: string; + /** + * The existing bunq user alias for the company's director. + */ + readonly director_alias?: ILabelUser; + /** + * The types of notifications that will result in a push notification or URL callback for this UserCompany. + */ + readonly notification_filters?: Array; + /** + * The customer profile of the company. + */ + readonly customer?: ICustomer; + /** + * The customer limits of the company. + */ + readonly customer_limit?: ICustomerLimit; + /** + * The subscription of the company. + */ + readonly billing_contract?: Array; + /** + * The user deny reason. + */ + readonly deny_reason?: string; } export interface IUserApiKeyAnchoredUser { - /** - * - */ - readonly UserPerson?: IUserPerson; - /** - * - */ - readonly UserCompany?: IUserCompany; - /** - * - */ - readonly UserPaymentServiceProvider?: IUserPaymentServiceProvider; + /** + * + */ + readonly UserPerson?: IUserPerson; + /** + * + */ + readonly UserCompany?: IUserCompany; + /** + * + */ + readonly UserPaymentServiceProvider?: IUserPaymentServiceProvider; } export interface IUserApiKey { - /** - * The id of the user. - */ - readonly id?: number; - /** - * The timestamp of the user object's creation. - */ - readonly created?: string; - /** - * The timestamp of the user object's last update. - */ - readonly updated?: string; - /** - * The user who requested access. - */ - readonly requested_by_user?: IUserApiKeyAnchoredUser; - /** - * The user who granted access. - */ - readonly granted_by_user?: IUserApiKeyAnchoredUser; + /** + * The id of the user. + */ + readonly id?: number; + /** + * The timestamp of the user object's creation. + */ + readonly created?: string; + /** + * The timestamp of the user object's last update. + */ + readonly updated?: string; + /** + * The user who requested access. + */ + readonly requested_by_user?: IUserApiKeyAnchoredUser; + /** + * The user who granted access. + */ + readonly granted_by_user?: IUserApiKeyAnchoredUser; } export interface IUbo { - /** - * The name of the ultimate beneficiary owner. - */ - name?: string; - /** - * The date of birth of the ultimate beneficiary owner. - */ - date_of_birth?: string; - /** - * The nationality of the ultimate beneficiary owner. - */ - nationality?: string; + /** + * The name of the ultimate beneficiary owner. + */ + name?: string; + /** + * The date of birth of the ultimate beneficiary owner. + */ + date_of_birth?: string; + /** + * The nationality of the ultimate beneficiary owner. + */ + nationality?: string; } export interface ITreeProgressListing { - /** - * The number of trees this user and all users have planted. - */ - readonly number_of_tree?: number; - /** - * The progress towards the next tree. - */ - readonly progress_tree_next?: number; + /** + * The number of trees this user and all users have planted. + */ + readonly number_of_tree?: number; + /** + * The progress towards the next tree. + */ + readonly progress_tree_next?: number; } export interface ITransferwiseTransfer { - /** - * The id of the monetary account the payment should be made from. - */ - monetary_account_id: string; - /** - * The id of the target account. - */ - recipient_id: string; - /** - * The LabelMonetaryAccount containing the public information of 'this' (party) side of the Payment. - */ - readonly alias?: ILabelMonetaryAccount; - /** - * The LabelMonetaryAccount containing the public information of the other (counterparty) side of the Payment. - */ - readonly counterparty_alias?: ILabelMonetaryAccount; - /** - * The status. - */ - readonly status?: string; - /** - * The subStatus. - */ - readonly sub_status?: string; - /** - * The status as Transferwise reports it. - */ - readonly status_transferwise?: string; - /** - * A status to indicatie if Transferwise has an issue with this payment and requires more information. - */ - readonly status_transferwise_issue?: string; - /** - * The source amount. - */ - readonly amount_source?: IAmount; - /** - * The target amount. - */ - readonly amount_target?: IAmount; - /** - * The rate of the payment. - */ - readonly rate?: string; - /** - * The reference of the payment. - */ - readonly reference?: string; - /** - * The Pay-In reference of the payment. - */ - readonly pay_in_reference?: string; - /** - * The estimated delivery time. - */ - readonly time_delivery_estimate?: string; - /** - * The quote details used to created the payment. - */ - readonly quote?: ITransferwiseQuote; + /** + * The id of the monetary account the payment should be made from. + */ + monetary_account_id: string; + /** + * The id of the target account. + */ + recipient_id: string; + /** + * The LabelMonetaryAccount containing the public information of 'this' (party) side of the Payment. + */ + readonly alias?: ILabelMonetaryAccount; + /** + * The LabelMonetaryAccount containing the public information of the other (counterparty) side of the Payment. + */ + readonly counterparty_alias?: ILabelMonetaryAccount; + /** + * The status. + */ + readonly status?: string; + /** + * The subStatus. + */ + readonly sub_status?: string; + /** + * The status as Transferwise reports it. + */ + readonly status_transferwise?: string; + /** + * A status to indicatie if Transferwise has an issue with this payment and requires more information. + */ + readonly status_transferwise_issue?: string; + /** + * The source amount. + */ + readonly amount_source?: IAmount; + /** + * The target amount. + */ + readonly amount_target?: IAmount; + /** + * The rate of the payment. + */ + readonly rate?: string; + /** + * The reference of the payment. + */ + readonly reference?: string; + /** + * The Pay-In reference of the payment. + */ + readonly pay_in_reference?: string; + /** + * The estimated delivery time. + */ + readonly time_delivery_estimate?: string; + /** + * The quote details used to created the payment. + */ + readonly quote?: ITransferwiseQuote; } export interface ITransferwiseQuote { - /** - * The source currency. - */ - currency_source: string; - /** - * The target currency. - */ - currency_target: string; - /** - * The source amount. - */ - amount_source?: IAmount; - /** - * The target amount. - */ - amount_target?: IAmount; - /** - * The id of the quote. - */ - readonly id?: number; - /** - * The timestamp of the quote's creation. - */ - readonly created?: string; - /** - * The timestamp of the quote's last update. - */ - readonly updated?: string; - /** - * The expiration timestamp of the quote. - */ - readonly time_expiry?: string; - /** - * The quote id Transferwise needs. - */ - readonly quote_id?: string; - /** - * The fee amount. - */ - readonly amount_fee?: IAmount; - /** - * The rate. - */ - readonly rate?: string; - /** - * The estimated delivery time. - */ - readonly time_delivery_estimate?: string; + /** + * The source currency. + */ + currency_source: string; + /** + * The target currency. + */ + currency_target: string; + /** + * The source amount. + */ + amount_source?: IAmount; + /** + * The target amount. + */ + amount_target?: IAmount; + /** + * The id of the quote. + */ + readonly id?: number; + /** + * The timestamp of the quote's creation. + */ + readonly created?: string; + /** + * The timestamp of the quote's last update. + */ + readonly updated?: string; + /** + * The expiration timestamp of the quote. + */ + readonly time_expiry?: string; + /** + * The quote id Transferwise needs. + */ + readonly quote_id?: string; + /** + * The fee amount. + */ + readonly amount_fee?: IAmount; + /** + * The rate. + */ + readonly rate?: string; + /** + * The estimated delivery time. + */ + readonly time_delivery_estimate?: string; } export interface ITokenQrRequestSofortCreate { - /** - * The id of the created item - */ - readonly Id?: BunqId; + /** + * The id of the created item + */ + readonly Id?: BunqId; } export interface ITokenQrRequestSofort { - /** - * The token passed from a site or read from a QR code. - */ - token: string; + /** + * The token passed from a site or read from a QR code. + */ + token: string; } export interface ITokenQrRequestIdealCreate { - /** - * The id of the RequestResponse. - */ - readonly id?: number; - /** - * The timestamp of when the RequestResponse was responded to. - */ - readonly time_responded?: string; - /** - * The timestamp of when the RequestResponse expired or will expire. - */ - readonly time_expiry?: string; - /** - * The id of the MonetaryAccount the RequestResponse was received on. - */ - readonly monetary_account_id?: number; - /** - * The requested Amount. - */ - readonly amount_inquired?: IAmount; - /** - * The Amount the RequestResponse was accepted with. - */ - readonly amount_responded?: IAmount; - /** - * The LabelMonetaryAccount with the public information of the MonetaryAccount this RequestResponse was received on. - */ - readonly alias?: ILabelMonetaryAccount; - /** - * The LabelMonetaryAccount with the public information of the MonetaryAccount that is requesting money with this RequestResponse. - */ - readonly counterparty_alias?: ILabelMonetaryAccount; - /** - * The description for the RequestResponse provided by the requesting party. Maximum 9000 characters. - */ - readonly description?: string; - /** - * The Attachments attached to the RequestResponse. - */ - readonly attachment?: Array; - /** - * The status of the created RequestResponse. Can only be PENDING. - */ - readonly status?: string; - /** - * The minimum age the user accepting the RequestResponse must have. - */ - readonly minimum_age?: number; - /** - * Whether or not an address must be provided on accept. - */ - readonly require_address?: string; - /** - * The shipping address provided by the accepting user if an address was requested. - */ - readonly address_shipping?: IAddress; - /** - * The billing address provided by the accepting user if an address was requested. - */ - readonly address_billing?: IAddress; - /** - * The Geolocation where the RequestResponse was created. - */ - readonly geolocation?: IGeolocation; - /** - * The URL which the user is sent to after accepting or rejecting the Request. - */ - readonly redirect_url?: string; - /** - * The type of the RequestResponse. Can be only be IDEAL. - */ - readonly type?: string; - /** - * The subtype of the RequestResponse. Can be only be NONE. - */ - readonly sub_type?: string; - /** - * Whether or not chat messages are allowed. - */ - readonly allow_chat?: boolean; - /** - * The whitelist id for this action or null. - */ - readonly eligible_whitelist_id?: number; + /** + * The id of the RequestResponse. + */ + readonly id?: number; + /** + * The timestamp of when the RequestResponse was responded to. + */ + readonly time_responded?: string; + /** + * The timestamp of when the RequestResponse expired or will expire. + */ + readonly time_expiry?: string; + /** + * The id of the MonetaryAccount the RequestResponse was received on. + */ + readonly monetary_account_id?: number; + /** + * The requested Amount. + */ + readonly amount_inquired?: IAmount; + /** + * The Amount the RequestResponse was accepted with. + */ + readonly amount_responded?: IAmount; + /** + * The LabelMonetaryAccount with the public information of the MonetaryAccount this RequestResponse was received on. + */ + readonly alias?: ILabelMonetaryAccount; + /** + * The LabelMonetaryAccount with the public information of the MonetaryAccount that is requesting money with this RequestResponse. + */ + readonly counterparty_alias?: ILabelMonetaryAccount; + /** + * The description for the RequestResponse provided by the requesting party. Maximum 9000 characters. + */ + readonly description?: string; + /** + * The Attachments attached to the RequestResponse. + */ + readonly attachment?: Array; + /** + * The status of the created RequestResponse. Can only be PENDING. + */ + readonly status?: string; + /** + * The minimum age the user accepting the RequestResponse must have. + */ + readonly minimum_age?: number; + /** + * Whether or not an address must be provided on accept. + */ + readonly require_address?: string; + /** + * The shipping address provided by the accepting user if an address was requested. + */ + readonly address_shipping?: IAddress; + /** + * The billing address provided by the accepting user if an address was requested. + */ + readonly address_billing?: IAddress; + /** + * The Geolocation where the RequestResponse was created. + */ + readonly geolocation?: IGeolocation; + /** + * The URL which the user is sent to after accepting or rejecting the Request. + */ + readonly redirect_url?: string; + /** + * The type of the RequestResponse. Can be only be IDEAL. + */ + readonly type?: string; + /** + * The subtype of the RequestResponse. Can be only be NONE. + */ + readonly sub_type?: string; + /** + * Whether or not chat messages are allowed. + */ + readonly allow_chat?: boolean; + /** + * The whitelist id for this action or null. + */ + readonly eligible_whitelist_id?: number; } export interface ITokenQrRequestIdeal { - /** - * The token passed from a site or read from a QR code. - */ - token: string; + /** + * The token passed from a site or read from a QR code. + */ + token: string; } export interface ITaxResident { - /** - * The country of the tax number. - */ - country?: string; - /** - * The tax number. - */ - tax_number?: string; - /** - * The status of the tax number. Either CONFIRMED or UNCONFIRMED. - */ - status?: string; + /** + * The country of the tax number. + */ + country?: string; + /** + * The tax number. + */ + tax_number?: string; + /** + * The status of the tax number. Either CONFIRMED or UNCONFIRMED. + */ + status?: string; } export interface ITabVisibility { - /** - * When true the tab will be linked to the ACTIVE cash registers QR code. - */ - cash_register_qr_code?: boolean; - /** - * When true the tab will be visible through its own QR code. Use ../tab/{tab-id}/qr-code-content to get the raw content of this QR code - */ - tab_qr_code?: boolean; - /** - * The location of the Tab in NearPay. - */ - location?: IGeolocation; + /** + * When true the tab will be linked to the ACTIVE cash registers QR code. + */ + cash_register_qr_code?: boolean; + /** + * When true the tab will be visible through its own QR code. Use ../tab/{tab-id}/qr-code-content to get the raw content of this QR code + */ + tab_qr_code?: boolean; + /** + * The location of the Tab in NearPay. + */ + location?: IGeolocation; } export interface ITabUsageSingleUpdate { - /** - * The uuid of the modified TabUsageSingle. - */ - readonly uuid?: string; + /** + * The uuid of the modified TabUsageSingle. + */ + readonly uuid?: string; } export interface ITabUsageSingleRead { - /** - * The uuid of the created TabUsageSingle. - */ - readonly uuid?: string; - /** - * The timestamp of the Tab's creation. - */ - readonly created?: string; - /** - * The timestamp of the Tab's last update. - */ - readonly updated?: string; - /** - * The merchant reference of the Tab, as defined by the owner. - */ - readonly merchant_reference?: string; - /** - * The description of the TabUsageMultiple. Maximum 9000 characters. - */ - readonly description?: string; - /** - * The status of the Tab. Can be OPEN, WAITING_FOR_PAYMENT, PAID or CANCELED. - */ - readonly status?: string; - /** - * The total amount of the Tab. - */ - readonly amount_total?: IAmount; - /** - * The amount that has been paid for this Tab. - */ - readonly amount_paid?: IAmount; - /** - * The token used to redirect mobile devices directly to the bunq app. Because they can't scan a QR code. - */ - readonly qr_code_token?: string; - /** - * The URL redirecting user to the tab payment in the bunq app. Only works on mobile devices. - */ - readonly tab_url?: string; - /** - * The visibility of a Tab. A Tab can be visible trough NearPay, the QR code of the CashRegister and its own QR code. - */ - readonly visibility?: ITabVisibility; - /** - * The minimum age of the user paying the Tab. - */ - readonly minimum_age?: boolean; - /** - * Whether or not an billing and shipping address must be provided when paying the Tab. - */ - readonly require_address?: string; - /** - * The URL which the user is sent to after paying the Tab. - */ - readonly redirect_url?: string; - /** - * The moment when this Tab expires. - */ - readonly expiration?: string; - /** - * The alias of the party that owns this tab. - */ - readonly alias?: ILabelMonetaryAccount; - /** - * The location of the cash register that created this tab. - */ - readonly cash_register_location?: IGeolocation; - /** - * The tab items of this tab. - */ - readonly tab_item?: Array; - /** - * An array of attachments that describe the tab. Uploaded through the POST /user/{userid}/attachment-tab endpoint. - */ - readonly tab_attachment?: Array; + /** + * The uuid of the created TabUsageSingle. + */ + readonly uuid?: string; + /** + * The timestamp of the Tab's creation. + */ + readonly created?: string; + /** + * The timestamp of the Tab's last update. + */ + readonly updated?: string; + /** + * The merchant reference of the Tab, as defined by the owner. + */ + readonly merchant_reference?: string; + /** + * The description of the TabUsageMultiple. Maximum 9000 characters. + */ + readonly description?: string; + /** + * The status of the Tab. Can be OPEN, WAITING_FOR_PAYMENT, PAID or CANCELED. + */ + readonly status?: string; + /** + * The total amount of the Tab. + */ + readonly amount_total?: IAmount; + /** + * The amount that has been paid for this Tab. + */ + readonly amount_paid?: IAmount; + /** + * The token used to redirect mobile devices directly to the bunq app. Because they can't scan a QR code. + */ + readonly qr_code_token?: string; + /** + * The URL redirecting user to the tab payment in the bunq app. Only works on mobile devices. + */ + readonly tab_url?: string; + /** + * The visibility of a Tab. A Tab can be visible trough NearPay, the QR code of the CashRegister and its own QR code. + */ + readonly visibility?: ITabVisibility; + /** + * The minimum age of the user paying the Tab. + */ + readonly minimum_age?: boolean; + /** + * Whether or not an billing and shipping address must be provided when paying the Tab. + */ + readonly require_address?: string; + /** + * The URL which the user is sent to after paying the Tab. + */ + readonly redirect_url?: string; + /** + * The moment when this Tab expires. + */ + readonly expiration?: string; + /** + * The alias of the party that owns this tab. + */ + readonly alias?: ILabelMonetaryAccount; + /** + * The location of the cash register that created this tab. + */ + readonly cash_register_location?: IGeolocation; + /** + * The tab items of this tab. + */ + readonly tab_item?: Array; + /** + * An array of attachments that describe the tab. Uploaded through the POST /user/{userid}/attachment-tab endpoint. + */ + readonly tab_attachment?: Array; } export interface ITabUsageSingleListing { - /** - * The uuid of the created TabUsageSingle. - */ - readonly uuid?: string; - /** - * The timestamp of the Tab's creation. - */ - readonly created?: string; - /** - * The timestamp of the Tab's last update. - */ - readonly updated?: string; - /** - * The merchant reference of the Tab, as defined by the owner. - */ - readonly merchant_reference?: string; - /** - * The description of the TabUsageMultiple. Maximum 9000 characters. - */ - readonly description?: string; - /** - * The status of the Tab. Can be OPEN, WAITING_FOR_PAYMENT, PAID or CANCELED. - */ - readonly status?: string; - /** - * The total amount of the Tab. - */ - readonly amount_total?: IAmount; - /** - * The amount that has been paid for this Tab. - */ - readonly amount_paid?: IAmount; - /** - * The token used to redirect mobile devices directly to the bunq app. Because they can't scan a QR code. - */ - readonly qr_code_token?: string; - /** - * The URL redirecting user to the tab payment in the bunq app. Only works on mobile devices. - */ - readonly tab_url?: string; - /** - * The visibility of a Tab. A Tab can be visible trough NearPay, the QR code of the CashRegister and its own QR code. - */ - readonly visibility?: ITabVisibility; - /** - * The minimum age of the user paying the Tab. - */ - readonly minimum_age?: boolean; - /** - * Whether or not an billing and shipping address must be provided when paying the Tab. - */ - readonly require_address?: string; - /** - * The URL which the user is sent to after paying the Tab. - */ - readonly redirect_url?: string; - /** - * The moment when this Tab expires. - */ - readonly expiration?: string; - /** - * The alias of the party that owns this tab. - */ - readonly alias?: ILabelMonetaryAccount; - /** - * The location of the cash register that created this tab. - */ - readonly cash_register_location?: IGeolocation; - /** - * The tab items of this tab. - */ - readonly tab_item?: Array; - /** - * An array of attachments that describe the tab. Uploaded through the POST /user/{userid}/attachment-tab endpoint. - */ - readonly tab_attachment?: Array; + /** + * The uuid of the created TabUsageSingle. + */ + readonly uuid?: string; + /** + * The timestamp of the Tab's creation. + */ + readonly created?: string; + /** + * The timestamp of the Tab's last update. + */ + readonly updated?: string; + /** + * The merchant reference of the Tab, as defined by the owner. + */ + readonly merchant_reference?: string; + /** + * The description of the TabUsageMultiple. Maximum 9000 characters. + */ + readonly description?: string; + /** + * The status of the Tab. Can be OPEN, WAITING_FOR_PAYMENT, PAID or CANCELED. + */ + readonly status?: string; + /** + * The total amount of the Tab. + */ + readonly amount_total?: IAmount; + /** + * The amount that has been paid for this Tab. + */ + readonly amount_paid?: IAmount; + /** + * The token used to redirect mobile devices directly to the bunq app. Because they can't scan a QR code. + */ + readonly qr_code_token?: string; + /** + * The URL redirecting user to the tab payment in the bunq app. Only works on mobile devices. + */ + readonly tab_url?: string; + /** + * The visibility of a Tab. A Tab can be visible trough NearPay, the QR code of the CashRegister and its own QR code. + */ + readonly visibility?: ITabVisibility; + /** + * The minimum age of the user paying the Tab. + */ + readonly minimum_age?: boolean; + /** + * Whether or not an billing and shipping address must be provided when paying the Tab. + */ + readonly require_address?: string; + /** + * The URL which the user is sent to after paying the Tab. + */ + readonly redirect_url?: string; + /** + * The moment when this Tab expires. + */ + readonly expiration?: string; + /** + * The alias of the party that owns this tab. + */ + readonly alias?: ILabelMonetaryAccount; + /** + * The location of the cash register that created this tab. + */ + readonly cash_register_location?: IGeolocation; + /** + * The tab items of this tab. + */ + readonly tab_item?: Array; + /** + * An array of attachments that describe the tab. Uploaded through the POST /user/{userid}/attachment-tab endpoint. + */ + readonly tab_attachment?: Array; } export interface ITabUsageSingleDelete {} export interface ITabUsageSingleCreate { - /** - * The uuid of the created TabUsageSingle. - */ - readonly uuid?: string; + /** + * The uuid of the created TabUsageSingle. + */ + readonly uuid?: string; } export interface ITabUsageSingle { - /** - * The merchant reference of the Tab, as defined by the owner. - */ - merchant_reference?: string; - /** - * The description of the TabUsageMultiple. Maximum 9000 characters. - */ - description?: string; - /** - * The status of the Tab. Can be OPEN, WAITING_FOR_PAYMENT, PAID or CANCELED. - */ - status?: string; - /** - * The total amount of the Tab. - */ - amount_total?: IAmount; - /** - * [DEPRECATED] Whether or not a higher amount can be paid. - */ - allow_amount_higher?: boolean; - /** - * [DEPRECATED] Whether or not a lower amount can be paid. - */ - allow_amount_lower?: boolean; - /** - * [DEPRECATED] Whether or not the user paying the Tab should be asked if he wants to give a tip. When want_tip is set to true, allow_amount_higher must also be set to true and allow_amount_lower must be false. - */ - want_tip?: boolean; - /** - * The minimum age of the user paying the Tab. - */ - minimum_age?: boolean; - /** - * Whether or not an billing and shipping address must be provided when paying the Tab. - */ - require_address?: string; - /** - * The URL which the user is sent to after paying the Tab. - */ - redirect_url?: string; - /** - * The visibility of a Tab. A Tab can be visible trough NearPay, the QR code of the CashRegister and its own QR code. - */ - visibility?: ITabVisibility; - /** - * The moment when this Tab expires. - */ - expiration?: string; - /** - * An array of attachments that describe the tab. Uploaded through the POST /user/{userid}/attachment-tab endpoint. - */ - tab_attachment?: Array; - /** - * The uuid of the created TabUsageSingle. - */ - readonly uuid?: string; - /** - * The timestamp of the Tab's creation. - */ - readonly created?: string; - /** - * The timestamp of the Tab's last update. - */ - readonly updated?: string; - /** - * The amount that has been paid for this Tab. - */ - readonly amount_paid?: IAmount; - /** - * The token used to redirect mobile devices directly to the bunq app. Because they can't scan a QR code. - */ - readonly qr_code_token?: string; - /** - * The URL redirecting user to the tab payment in the bunq app. Only works on mobile devices. - */ - readonly tab_url?: string; - /** - * The alias of the party that owns this tab. - */ - readonly alias?: ILabelMonetaryAccount; - /** - * The location of the cash register that created this tab. - */ - readonly cash_register_location?: IGeolocation; - /** - * The tab items of this tab. - */ - readonly tab_item?: Array; + /** + * The merchant reference of the Tab, as defined by the owner. + */ + merchant_reference?: string; + /** + * The description of the TabUsageMultiple. Maximum 9000 characters. + */ + description?: string; + /** + * The status of the Tab. Can be OPEN, WAITING_FOR_PAYMENT, PAID or CANCELED. + */ + status?: string; + /** + * The total amount of the Tab. + */ + amount_total?: IAmount; + /** + * [DEPRECATED] Whether or not a higher amount can be paid. + */ + allow_amount_higher?: boolean; + /** + * [DEPRECATED] Whether or not a lower amount can be paid. + */ + allow_amount_lower?: boolean; + /** + * [DEPRECATED] Whether or not the user paying the Tab should be asked if he wants to give a tip. When want_tip is set to true, allow_amount_higher must also be set to true and allow_amount_lower must be false. + */ + want_tip?: boolean; + /** + * The minimum age of the user paying the Tab. + */ + minimum_age?: boolean; + /** + * Whether or not an billing and shipping address must be provided when paying the Tab. + */ + require_address?: string; + /** + * The URL which the user is sent to after paying the Tab. + */ + redirect_url?: string; + /** + * The visibility of a Tab. A Tab can be visible trough NearPay, the QR code of the CashRegister and its own QR code. + */ + visibility?: ITabVisibility; + /** + * The moment when this Tab expires. + */ + expiration?: string; + /** + * An array of attachments that describe the tab. Uploaded through the POST /user/{userid}/attachment-tab endpoint. + */ + tab_attachment?: Array; + /** + * The uuid of the created TabUsageSingle. + */ + readonly uuid?: string; + /** + * The timestamp of the Tab's creation. + */ + readonly created?: string; + /** + * The timestamp of the Tab's last update. + */ + readonly updated?: string; + /** + * The amount that has been paid for this Tab. + */ + readonly amount_paid?: IAmount; + /** + * The token used to redirect mobile devices directly to the bunq app. Because they can't scan a QR code. + */ + readonly qr_code_token?: string; + /** + * The URL redirecting user to the tab payment in the bunq app. Only works on mobile devices. + */ + readonly tab_url?: string; + /** + * The alias of the party that owns this tab. + */ + readonly alias?: ILabelMonetaryAccount; + /** + * The location of the cash register that created this tab. + */ + readonly cash_register_location?: IGeolocation; + /** + * The tab items of this tab. + */ + readonly tab_item?: Array; } export interface ITabUsageMultipleUpdate { - /** - * The uuid of the modified TabUsageMultiple. - */ - readonly uuid?: string; + /** + * The uuid of the modified TabUsageMultiple. + */ + readonly uuid?: string; } export interface ITabUsageMultipleRead { - /** - * The uuid of the created TabUsageMultiple. - */ - readonly uuid?: string; - /** - * The timestamp of the Tab's creation. - */ - readonly created?: string; - /** - * The timestamp of the Tab's last update. - */ - readonly updated?: string; - /** - * The description of the TabUsageMultiple. Maximum 9000 characters. - */ - readonly description?: string; - /** - * The status of the Tab. Can be OPEN, PAYABLE or CLOSED. - */ - readonly status?: string; - /** - * The total amount of the Tab. - */ - readonly amount_total?: IAmount; - /** - * The token used to redirect mobile devices directly to the bunq app. Because they can't scan a QR code. - */ - readonly qr_code_token?: string; - /** - * The URL redirecting user to the tab payment in the bunq app. Only works on mobile devices. - */ - readonly tab_url?: string; - /** - * The visibility of a Tab. A Tab can be visible trough NearPay, the QR code of the CashRegister and its own QR code. - */ - readonly visibility?: ITabVisibility; - /** - * The minimum age of the user paying the Tab. - */ - readonly minimum_age?: boolean; - /** - * Whether or not an billing and shipping address must be provided when paying the Tab. - */ - readonly require_address?: string; - /** - * The URL which the user is sent to after paying the Tab. - */ - readonly redirect_url?: string; - /** - * The moment when this Tab expires. - */ - readonly expiration?: string; - /** - * The alias of the party that owns this tab. - */ - readonly alias?: ILabelMonetaryAccount; - /** - * The location of the cash register that created this tab. - */ - readonly cash_register_location?: IGeolocation; - /** - * The tab items of this tab. - */ - readonly tab_item?: Array; - /** - * An array of attachments that describe the tab. Viewable through the GET /tab/{tabid}/attachment/{attachmentid}/content endpoint. - */ - readonly tab_attachment?: Array; + /** + * The uuid of the created TabUsageMultiple. + */ + readonly uuid?: string; + /** + * The timestamp of the Tab's creation. + */ + readonly created?: string; + /** + * The timestamp of the Tab's last update. + */ + readonly updated?: string; + /** + * The description of the TabUsageMultiple. Maximum 9000 characters. + */ + readonly description?: string; + /** + * The status of the Tab. Can be OPEN, PAYABLE or CLOSED. + */ + readonly status?: string; + /** + * The total amount of the Tab. + */ + readonly amount_total?: IAmount; + /** + * The token used to redirect mobile devices directly to the bunq app. Because they can't scan a QR code. + */ + readonly qr_code_token?: string; + /** + * The URL redirecting user to the tab payment in the bunq app. Only works on mobile devices. + */ + readonly tab_url?: string; + /** + * The visibility of a Tab. A Tab can be visible trough NearPay, the QR code of the CashRegister and its own QR code. + */ + readonly visibility?: ITabVisibility; + /** + * The minimum age of the user paying the Tab. + */ + readonly minimum_age?: boolean; + /** + * Whether or not an billing and shipping address must be provided when paying the Tab. + */ + readonly require_address?: string; + /** + * The URL which the user is sent to after paying the Tab. + */ + readonly redirect_url?: string; + /** + * The moment when this Tab expires. + */ + readonly expiration?: string; + /** + * The alias of the party that owns this tab. + */ + readonly alias?: ILabelMonetaryAccount; + /** + * The location of the cash register that created this tab. + */ + readonly cash_register_location?: IGeolocation; + /** + * The tab items of this tab. + */ + readonly tab_item?: Array; + /** + * An array of attachments that describe the tab. Viewable through the GET /tab/{tabid}/attachment/{attachmentid}/content endpoint. + */ + readonly tab_attachment?: Array; } export interface ITabUsageMultipleListing { - /** - * The uuid of the created TabUsageMultiple. - */ - readonly uuid?: string; - /** - * The timestamp of the Tab's creation. - */ - readonly created?: string; - /** - * The timestamp of the Tab's last update. - */ - readonly updated?: string; - /** - * The description of the TabUsageMultiple. Maximum 9000 characters. - */ - readonly description?: string; - /** - * The status of the Tab. Can be OPEN, PAYABLE or CLOSED. - */ - readonly status?: string; - /** - * The total amount of the Tab. - */ - readonly amount_total?: IAmount; - /** - * The token used to redirect mobile devices directly to the bunq app. Because they can't scan a QR code. - */ - readonly qr_code_token?: string; - /** - * The URL redirecting user to the tab payment in the bunq app. Only works on mobile devices. - */ - readonly tab_url?: string; - /** - * The visibility of a Tab. A Tab can be visible trough NearPay, the QR code of the CashRegister and its own QR code. - */ - readonly visibility?: ITabVisibility; - /** - * The minimum age of the user paying the Tab. - */ - readonly minimum_age?: boolean; - /** - * Whether or not an billing and shipping address must be provided when paying the Tab. - */ - readonly require_address?: string; - /** - * The URL which the user is sent to after paying the Tab. - */ - readonly redirect_url?: string; - /** - * The moment when this Tab expires. - */ - readonly expiration?: string; - /** - * The alias of the party that owns this tab. - */ - readonly alias?: ILabelMonetaryAccount; - /** - * The location of the cash register that created this tab. - */ - readonly cash_register_location?: IGeolocation; - /** - * The tab items of this tab. - */ - readonly tab_item?: Array; - /** - * An array of attachments that describe the tab. Viewable through the GET /tab/{tabid}/attachment/{attachmentid}/content endpoint. - */ - readonly tab_attachment?: Array; + /** + * The uuid of the created TabUsageMultiple. + */ + readonly uuid?: string; + /** + * The timestamp of the Tab's creation. + */ + readonly created?: string; + /** + * The timestamp of the Tab's last update. + */ + readonly updated?: string; + /** + * The description of the TabUsageMultiple. Maximum 9000 characters. + */ + readonly description?: string; + /** + * The status of the Tab. Can be OPEN, PAYABLE or CLOSED. + */ + readonly status?: string; + /** + * The total amount of the Tab. + */ + readonly amount_total?: IAmount; + /** + * The token used to redirect mobile devices directly to the bunq app. Because they can't scan a QR code. + */ + readonly qr_code_token?: string; + /** + * The URL redirecting user to the tab payment in the bunq app. Only works on mobile devices. + */ + readonly tab_url?: string; + /** + * The visibility of a Tab. A Tab can be visible trough NearPay, the QR code of the CashRegister and its own QR code. + */ + readonly visibility?: ITabVisibility; + /** + * The minimum age of the user paying the Tab. + */ + readonly minimum_age?: boolean; + /** + * Whether or not an billing and shipping address must be provided when paying the Tab. + */ + readonly require_address?: string; + /** + * The URL which the user is sent to after paying the Tab. + */ + readonly redirect_url?: string; + /** + * The moment when this Tab expires. + */ + readonly expiration?: string; + /** + * The alias of the party that owns this tab. + */ + readonly alias?: ILabelMonetaryAccount; + /** + * The location of the cash register that created this tab. + */ + readonly cash_register_location?: IGeolocation; + /** + * The tab items of this tab. + */ + readonly tab_item?: Array; + /** + * An array of attachments that describe the tab. Viewable through the GET /tab/{tabid}/attachment/{attachmentid}/content endpoint. + */ + readonly tab_attachment?: Array; } export interface ITabUsageMultipleDelete {} export interface ITabUsageMultipleCreate { - /** - * The uuid of the created TabUsageMultiple. - */ - readonly uuid?: string; + /** + * The uuid of the created TabUsageMultiple. + */ + readonly uuid?: string; } export interface ITabUsageMultiple { - /** - * The description of the TabUsageMultiple. Maximum 9000 characters. - */ - description?: string; - /** - * The status of the Tab. Can be OPEN, PAYABLE or CLOSED. - */ - status?: string; - /** - * The total amount of the Tab. - */ - amount_total?: IAmount; - /** - * [DEPRECATED] Whether or not a higher amount can be paid. - */ - allow_amount_higher?: boolean; - /** - * [DEPRECATED] Whether or not a lower amount can be paid. - */ - allow_amount_lower?: boolean; - /** - * [DEPRECATED] Whether or not the user paying the Tab should be asked if he wants to give a tip. When want_tip is set to true, allow_amount_higher must also be set to true and allow_amount_lower must be false. - */ - want_tip?: boolean; - /** - * The minimum age of the user paying the Tab. - */ - minimum_age?: boolean; - /** - * Whether or not an billing and shipping address must be provided when paying the Tab. - */ - require_address?: string; - /** - * The URL which the user is sent to after paying the Tab. - */ - redirect_url?: string; - /** - * The visibility of a Tab. A Tab can be visible trough NearPay, the QR code of the CashRegister and its own QR code. - */ - visibility?: ITabVisibility; - /** - * The moment when this Tab expires. - */ - expiration?: string; - /** - * An array of attachments that describe the tab. Viewable through the GET /tab/{tabid}/attachment/{attachmentid}/content endpoint. - */ - tab_attachment?: Array; - /** - * The uuid of the created TabUsageMultiple. - */ - readonly uuid?: string; - /** - * The timestamp of the Tab's creation. - */ - readonly created?: string; - /** - * The timestamp of the Tab's last update. - */ - readonly updated?: string; - /** - * The token used to redirect mobile devices directly to the bunq app. Because they can't scan a QR code. - */ - readonly qr_code_token?: string; - /** - * The URL redirecting user to the tab payment in the bunq app. Only works on mobile devices. - */ - readonly tab_url?: string; - /** - * The alias of the party that owns this tab. - */ - readonly alias?: ILabelMonetaryAccount; - /** - * The location of the cash register that created this tab. - */ - readonly cash_register_location?: IGeolocation; - /** - * The tab items of this tab. - */ - readonly tab_item?: Array; + /** + * The description of the TabUsageMultiple. Maximum 9000 characters. + */ + description?: string; + /** + * The status of the Tab. Can be OPEN, PAYABLE or CLOSED. + */ + status?: string; + /** + * The total amount of the Tab. + */ + amount_total?: IAmount; + /** + * [DEPRECATED] Whether or not a higher amount can be paid. + */ + allow_amount_higher?: boolean; + /** + * [DEPRECATED] Whether or not a lower amount can be paid. + */ + allow_amount_lower?: boolean; + /** + * [DEPRECATED] Whether or not the user paying the Tab should be asked if he wants to give a tip. When want_tip is set to true, allow_amount_higher must also be set to true and allow_amount_lower must be false. + */ + want_tip?: boolean; + /** + * The minimum age of the user paying the Tab. + */ + minimum_age?: boolean; + /** + * Whether or not an billing and shipping address must be provided when paying the Tab. + */ + require_address?: string; + /** + * The URL which the user is sent to after paying the Tab. + */ + redirect_url?: string; + /** + * The visibility of a Tab. A Tab can be visible trough NearPay, the QR code of the CashRegister and its own QR code. + */ + visibility?: ITabVisibility; + /** + * The moment when this Tab expires. + */ + expiration?: string; + /** + * An array of attachments that describe the tab. Viewable through the GET /tab/{tabid}/attachment/{attachmentid}/content endpoint. + */ + tab_attachment?: Array; + /** + * The uuid of the created TabUsageMultiple. + */ + readonly uuid?: string; + /** + * The timestamp of the Tab's creation. + */ + readonly created?: string; + /** + * The timestamp of the Tab's last update. + */ + readonly updated?: string; + /** + * The token used to redirect mobile devices directly to the bunq app. Because they can't scan a QR code. + */ + readonly qr_code_token?: string; + /** + * The URL redirecting user to the tab payment in the bunq app. Only works on mobile devices. + */ + readonly tab_url?: string; + /** + * The alias of the party that owns this tab. + */ + readonly alias?: ILabelMonetaryAccount; + /** + * The location of the cash register that created this tab. + */ + readonly cash_register_location?: IGeolocation; + /** + * The tab items of this tab. + */ + readonly tab_item?: Array; } export interface ITabTextWaitingScreen { - /** - * Language of tab text - */ - language?: string; - /** - * Tab text - */ - description?: string; + /** + * Language of tab text + */ + language?: string; + /** + * Tab text + */ + description?: string; } export interface ITabResultResponseRead { - /** - * The Tab details. - */ - readonly tab?: ITab; - /** - * The payment made for the Tab. - */ - readonly payment?: IPayment; - /** - * The reference to the object used for split the bill. Can be RequestInquiry or RequestInquiryBatch - */ - readonly request_reference_split_the_bill?: Array; + /** + * The Tab details. + */ + readonly tab?: ITab; + /** + * The payment made for the Tab. + */ + readonly payment?: IPayment; + /** + * The reference to the object used for split the bill. Can be RequestInquiry or RequestInquiryBatch + */ + readonly request_reference_split_the_bill?: Array; } export interface ITabResultResponseListing { - /** - * The Tab details. - */ - readonly tab?: ITab; - /** - * The payment made for the Tab. - */ - readonly payment?: IPayment; - /** - * The reference to the object used for split the bill. Can be RequestInquiry or RequestInquiryBatch - */ - readonly request_reference_split_the_bill?: Array; + /** + * The Tab details. + */ + readonly tab?: ITab; + /** + * The payment made for the Tab. + */ + readonly payment?: IPayment; + /** + * The reference to the object used for split the bill. Can be RequestInquiry or RequestInquiryBatch + */ + readonly request_reference_split_the_bill?: Array; } export interface ITabResultResponse { - /** - * The Tab details. - */ - readonly tab?: ITab; - /** - * The payment made for the Tab. - */ - readonly payment?: IPayment; - /** - * The reference to the object used for split the bill. Can be RequestInquiry or RequestInquiryBatch - */ - readonly request_reference_split_the_bill?: Array; + /** + * The Tab details. + */ + readonly tab?: ITab; + /** + * The payment made for the Tab. + */ + readonly payment?: IPayment; + /** + * The reference to the object used for split the bill. Can be RequestInquiry or RequestInquiryBatch + */ + readonly request_reference_split_the_bill?: Array; } export interface ITabResultInquiryRead { - /** - * The Tab details. - */ - readonly tab?: ITab; - /** - * The payment made for the Tab. - */ - readonly payment?: IPayment; + /** + * The Tab details. + */ + readonly tab?: ITab; + /** + * The payment made for the Tab. + */ + readonly payment?: IPayment; } export interface ITabResultInquiryListing { - /** - * The Tab details. - */ - readonly tab?: ITab; - /** - * The payment made for the Tab. - */ - readonly payment?: IPayment; + /** + * The Tab details. + */ + readonly tab?: ITab; + /** + * The payment made for the Tab. + */ + readonly payment?: IPayment; } export interface ITabResultInquiry { - /** - * The Tab details. - */ - readonly tab?: ITab; - /** - * The payment made for the Tab. - */ - readonly payment?: IPayment; + /** + * The Tab details. + */ + readonly tab?: ITab; + /** + * The payment made for the Tab. + */ + readonly payment?: IPayment; } export interface ITabRead { - /** - * - */ - readonly TabUsageSingle?: ITabUsageSingle; - /** - * - */ - readonly TabUsageMultiple?: ITabUsageMultiple; + /** + * + */ + readonly TabUsageSingle?: ITabUsageSingle; + /** + * + */ + readonly TabUsageMultiple?: ITabUsageMultiple; } export interface ITabQrCodeContentListing {} export interface ITabListing { - /** - * - */ - readonly TabUsageSingle?: ITabUsageSingle; - /** - * - */ - readonly TabUsageMultiple?: ITabUsageMultiple; + /** + * + */ + readonly TabUsageSingle?: ITabUsageSingle; + /** + * + */ + readonly TabUsageMultiple?: ITabUsageMultiple; } export interface ITabItemShopUpdate { - /** - * The id of the modified TabItem. - */ - readonly id?: number; + /** + * The id of the modified TabItem. + */ + readonly id?: number; } export interface ITabItemShopRead { - /** - * The id of the created TabItem. - */ - readonly id?: number; - /** - * The TabItem's brief description. - */ - readonly description?: string; - /** - * The TabItem's EAN code. - */ - readonly ean_code?: string; - /** - * A struct with an AttachmentPublic UUID that used as an avatar for the TabItem. - */ - readonly avatar_attachment?: IAttachmentPublic; - /** - * A list of AttachmentTab attached to the TabItem. - */ - readonly tab_attachment?: Array; - /** - * The quantity of the TabItem. - */ - readonly quantity?: number; - /** - * The money amount of the TabItem. - */ - readonly amount?: IAmount; + /** + * The id of the created TabItem. + */ + readonly id?: number; + /** + * The TabItem's brief description. + */ + readonly description?: string; + /** + * The TabItem's EAN code. + */ + readonly ean_code?: string; + /** + * A struct with an AttachmentPublic UUID that used as an avatar for the TabItem. + */ + readonly avatar_attachment?: IAttachmentPublic; + /** + * A list of AttachmentTab attached to the TabItem. + */ + readonly tab_attachment?: Array; + /** + * The quantity of the TabItem. + */ + readonly quantity?: number; + /** + * The money amount of the TabItem. + */ + readonly amount?: IAmount; } export interface ITabItemShopListing { - /** - * The id of the created TabItem. - */ - readonly id?: number; - /** - * The TabItem's brief description. - */ - readonly description?: string; - /** - * The TabItem's EAN code. - */ - readonly ean_code?: string; - /** - * A struct with an AttachmentPublic UUID that used as an avatar for the TabItem. - */ - readonly avatar_attachment?: IAttachmentPublic; - /** - * A list of AttachmentTab attached to the TabItem. - */ - readonly tab_attachment?: Array; - /** - * The quantity of the TabItem. - */ - readonly quantity?: number; - /** - * The money amount of the TabItem. - */ - readonly amount?: IAmount; + /** + * The id of the created TabItem. + */ + readonly id?: number; + /** + * The TabItem's brief description. + */ + readonly description?: string; + /** + * The TabItem's EAN code. + */ + readonly ean_code?: string; + /** + * A struct with an AttachmentPublic UUID that used as an avatar for the TabItem. + */ + readonly avatar_attachment?: IAttachmentPublic; + /** + * A list of AttachmentTab attached to the TabItem. + */ + readonly tab_attachment?: Array; + /** + * The quantity of the TabItem. + */ + readonly quantity?: number; + /** + * The money amount of the TabItem. + */ + readonly amount?: IAmount; } export interface ITabItemShopDelete {} export interface ITabItemShopCreate { - /** - * The id of the created TabItem. - */ - readonly id?: number; + /** + * The id of the created TabItem. + */ + readonly id?: number; } export interface ITabItemShopBatchCreate { - /** - * The id of the created item - */ - readonly Id?: BunqId; + /** + * The id of the created item + */ + readonly Id?: BunqId; } export interface ITabItemShopBatch { - /** - * The list of tab items we want to create in a single batch. Limited to 50 items per batch. - */ - tab_items: Array; + /** + * The list of tab items we want to create in a single batch. Limited to 50 items per batch. + */ + tab_items: Array; } export interface ITabItemShop { - /** - * The TabItem's brief description. - */ - description?: string; - /** - * The TabItem's EAN code. - */ - ean_code?: string; - /** - * An AttachmentPublic UUID that used as an avatar for the TabItem. - */ - avatar_attachment_uuid?: string; - /** - * A list of AttachmentTab attached to the TabItem. - */ - tab_attachment?: Array; - /** - * The quantity of the TabItem. - */ - quantity?: number; - /** - * The money amount of the TabItem. - */ - amount?: IAmount; - /** - * The id of the created TabItem. - */ - readonly id?: number; - /** - * A struct with an AttachmentPublic UUID that used as an avatar for the TabItem. - */ - readonly avatar_attachment?: IAttachmentPublic; + /** + * The TabItem's brief description. + */ + description?: string; + /** + * The TabItem's EAN code. + */ + ean_code?: string; + /** + * An AttachmentPublic UUID that used as an avatar for the TabItem. + */ + avatar_attachment_uuid?: string; + /** + * A list of AttachmentTab attached to the TabItem. + */ + tab_attachment?: Array; + /** + * The quantity of the TabItem. + */ + quantity?: number; + /** + * The money amount of the TabItem. + */ + amount?: IAmount; + /** + * The id of the created TabItem. + */ + readonly id?: number; + /** + * A struct with an AttachmentPublic UUID that used as an avatar for the TabItem. + */ + readonly avatar_attachment?: IAttachmentPublic; } export interface ITabItem { - /** - * The id of the tab item. - */ - readonly id?: number; - /** - * The item's brief description. - */ - readonly description?: string; - /** - * The item's EAN code. - */ - readonly ean_code?: string; - /** - * A struct with an AttachmentPublic UUID that used as an avatar for the TabItem. - */ - readonly avatar_attachment?: IAttachmentPublic; - /** - * A list of AttachmentTab attached to the TabItem. - */ - readonly tab_attachment?: Array; - /** - * The quantity of the item. Formatted as a number containing up to 15 digits, up to 15 decimals and using a dot. - */ - readonly quantity?: string; - /** - * The money amount of the item. - */ - readonly amount?: IAmount; + /** + * The id of the tab item. + */ + readonly id?: number; + /** + * The item's brief description. + */ + readonly description?: string; + /** + * The item's EAN code. + */ + readonly ean_code?: string; + /** + * A struct with an AttachmentPublic UUID that used as an avatar for the TabItem. + */ + readonly avatar_attachment?: IAttachmentPublic; + /** + * A list of AttachmentTab attached to the TabItem. + */ + readonly tab_attachment?: Array; + /** + * The quantity of the item. Formatted as a number containing up to 15 digits, up to 15 decimals and using a dot. + */ + readonly quantity?: string; + /** + * The money amount of the item. + */ + readonly amount?: IAmount; } export interface ITabAttachmentTabRead { - /** - * The id of the attachment. - */ - readonly id?: number; - /** - * The timestamp of the attachment's creation. - */ - readonly created?: string; - /** - * The timestamp of the attachment's last update. - */ - readonly updated?: string; - /** - * The attachment. - */ - readonly attachment?: IAttachment; + /** + * The id of the attachment. + */ + readonly id?: number; + /** + * The timestamp of the attachment's creation. + */ + readonly created?: string; + /** + * The timestamp of the attachment's last update. + */ + readonly updated?: string; + /** + * The attachment. + */ + readonly attachment?: IAttachment; } export interface ITabAttachmentTabContentListing {} export interface ITab { - /** - * - */ - readonly TabUsageSingle?: ITabUsageSingle; - /** - * - */ - readonly TabUsageMultiple?: ITabUsageMultiple; + /** + * + */ + readonly TabUsageSingle?: ITabUsageSingle; + /** + * + */ + readonly TabUsageMultiple?: ITabUsageMultiple; } export interface ISofortMerchantTransactionRead { - /** - * The id of the monetary account this sofort merchant transaction links to. - */ - readonly monetary_account_id?: number; - /** - * The alias of the monetary account to add money to. - */ - readonly alias?: ILabelMonetaryAccount; - /** - * The alias of the monetary account the money comes from. - */ - readonly counterparty_alias?: ILabelMonetaryAccount; - /** - * In case of a successful transaction, the amount of money that will be transferred. - */ - readonly amount_guaranteed?: IAmount; - /** - * The requested amount of money to add. - */ - readonly amount_requested?: IAmount; - /** - * The BIC of the issuer. - */ - readonly issuer?: string; - /** - * The URL to visit to - */ - readonly issuer_authentication_url?: string; - /** - * The status of the transaction. - */ - readonly status?: string; - /** - * The error message of the transaction. - */ - readonly error_message?: Array; - /** - * The 'transaction ID' of the Sofort transaction. - */ - readonly transaction_identifier?: string; + /** + * The id of the monetary account this sofort merchant transaction links to. + */ + readonly monetary_account_id?: number; + /** + * The alias of the monetary account to add money to. + */ + readonly alias?: ILabelMonetaryAccount; + /** + * The alias of the monetary account the money comes from. + */ + readonly counterparty_alias?: ILabelMonetaryAccount; + /** + * In case of a successful transaction, the amount of money that will be transferred. + */ + readonly amount_guaranteed?: IAmount; + /** + * The requested amount of money to add. + */ + readonly amount_requested?: IAmount; + /** + * The BIC of the issuer. + */ + readonly issuer?: string; + /** + * The URL to visit to + */ + readonly issuer_authentication_url?: string; + /** + * The status of the transaction. + */ + readonly status?: string; + /** + * The error message of the transaction. + */ + readonly error_message?: Array; + /** + * The 'transaction ID' of the Sofort transaction. + */ + readonly transaction_identifier?: string; } export interface ISofortMerchantTransactionListing { - /** - * The id of the monetary account this sofort merchant transaction links to. - */ - readonly monetary_account_id?: number; - /** - * The alias of the monetary account to add money to. - */ - readonly alias?: ILabelMonetaryAccount; - /** - * The alias of the monetary account the money comes from. - */ - readonly counterparty_alias?: ILabelMonetaryAccount; - /** - * In case of a successful transaction, the amount of money that will be transferred. - */ - readonly amount_guaranteed?: IAmount; - /** - * The requested amount of money to add. - */ - readonly amount_requested?: IAmount; - /** - * The BIC of the issuer. - */ - readonly issuer?: string; - /** - * The URL to visit to - */ - readonly issuer_authentication_url?: string; - /** - * The status of the transaction. - */ - readonly status?: string; - /** - * The error message of the transaction. - */ - readonly error_message?: Array; - /** - * The 'transaction ID' of the Sofort transaction. - */ - readonly transaction_identifier?: string; + /** + * The id of the monetary account this sofort merchant transaction links to. + */ + readonly monetary_account_id?: number; + /** + * The alias of the monetary account to add money to. + */ + readonly alias?: ILabelMonetaryAccount; + /** + * The alias of the monetary account the money comes from. + */ + readonly counterparty_alias?: ILabelMonetaryAccount; + /** + * In case of a successful transaction, the amount of money that will be transferred. + */ + readonly amount_guaranteed?: IAmount; + /** + * The requested amount of money to add. + */ + readonly amount_requested?: IAmount; + /** + * The BIC of the issuer. + */ + readonly issuer?: string; + /** + * The URL to visit to + */ + readonly issuer_authentication_url?: string; + /** + * The status of the transaction. + */ + readonly status?: string; + /** + * The error message of the transaction. + */ + readonly error_message?: Array; + /** + * The 'transaction ID' of the Sofort transaction. + */ + readonly transaction_identifier?: string; } export interface ISofortMerchantTransaction { - /** - * The requested amount of money to add. - */ - amount_requested?: IAmount; - /** - * The BIC of the issuer. - */ - issuer?: string; - /** - * The id of the monetary account this sofort merchant transaction links to. - */ - readonly monetary_account_id?: number; - /** - * The alias of the monetary account to add money to. - */ - readonly alias?: ILabelMonetaryAccount; - /** - * The alias of the monetary account the money comes from. - */ - readonly counterparty_alias?: ILabelMonetaryAccount; - /** - * In case of a successful transaction, the amount of money that will be transferred. - */ - readonly amount_guaranteed?: IAmount; - /** - * The URL to visit to - */ - readonly issuer_authentication_url?: string; - /** - * The status of the transaction. - */ - readonly status?: string; - /** - * The error message of the transaction. - */ - readonly error_message?: Array; - /** - * The 'transaction ID' of the Sofort transaction. - */ - readonly transaction_identifier?: string; + /** + * The requested amount of money to add. + */ + amount_requested?: IAmount; + /** + * The BIC of the issuer. + */ + issuer?: string; + /** + * The id of the monetary account this sofort merchant transaction links to. + */ + readonly monetary_account_id?: number; + /** + * The alias of the monetary account to add money to. + */ + readonly alias?: ILabelMonetaryAccount; + /** + * The alias of the monetary account the money comes from. + */ + readonly counterparty_alias?: ILabelMonetaryAccount; + /** + * In case of a successful transaction, the amount of money that will be transferred. + */ + readonly amount_guaranteed?: IAmount; + /** + * The URL to visit to + */ + readonly issuer_authentication_url?: string; + /** + * The status of the transaction. + */ + readonly status?: string; + /** + * The error message of the transaction. + */ + readonly error_message?: Array; + /** + * The 'transaction ID' of the Sofort transaction. + */ + readonly transaction_identifier?: string; } export interface IShareInviteMonetaryAccountResponseUpdate { - /** - * The id of the created item - */ - readonly Id?: BunqId; + /** + * The id of the created item + */ + readonly Id?: BunqId; } export interface IShareInviteMonetaryAccountResponseRead { - /** - * The id of the ShareInviteMonetaryAccountResponse. - */ - readonly id?: number; - /** - * The timestamp of the ShareInviteMonetaryAccountResponse creation. - */ - readonly created?: string; - /** - * The timestamp of the ShareInviteMonetaryAccountResponse last update. - */ - readonly updated?: string; - /** - * The monetary account and user who created the share. - */ - readonly counter_alias?: ILabelMonetaryAccount; - /** - * The user who cancelled the share if it has been revoked or rejected. - */ - readonly user_alias_cancelled?: ILabelUser; - /** - * The id of the monetary account the ACCEPTED share applies to. null otherwise. - */ - readonly monetary_account_id?: number; - /** - * The id of the draft share invite bank. - */ - readonly draft_share_invite_bank_id?: number; - /** - * The share details. - */ - readonly share_detail?: IShareDetail; - /** - * 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) - */ - readonly status?: string; - /** - * The share type, either STANDARD or MUTUAL. - */ - readonly share_type?: string; - /** - * The start date of this share. - */ - readonly start_date?: string; - /** - * The expiration date of this share. - */ - readonly end_date?: string; - /** - * The description of this share. It is basically the monetary account description. - */ - readonly description?: string; + /** + * The id of the ShareInviteMonetaryAccountResponse. + */ + readonly id?: number; + /** + * The timestamp of the ShareInviteMonetaryAccountResponse creation. + */ + readonly created?: string; + /** + * The timestamp of the ShareInviteMonetaryAccountResponse last update. + */ + readonly updated?: string; + /** + * The monetary account and user who created the share. + */ + readonly counter_alias?: ILabelMonetaryAccount; + /** + * The user who cancelled the share if it has been revoked or rejected. + */ + readonly user_alias_cancelled?: ILabelUser; + /** + * The id of the monetary account the ACCEPTED share applies to. null otherwise. + */ + readonly monetary_account_id?: number; + /** + * The id of the draft share invite bank. + */ + readonly draft_share_invite_bank_id?: number; + /** + * The share details. + */ + readonly share_detail?: IShareDetail; + /** + * 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) + */ + readonly status?: string; + /** + * The share type, either STANDARD or MUTUAL. + */ + readonly share_type?: string; + /** + * The start date of this share. + */ + readonly start_date?: string; + /** + * The expiration date of this share. + */ + readonly end_date?: string; + /** + * The description of this share. It is basically the monetary account description. + */ + readonly description?: string; } export interface IShareInviteMonetaryAccountResponseListing { - /** - * The id of the ShareInviteMonetaryAccountResponse. - */ - readonly id?: number; - /** - * The timestamp of the ShareInviteMonetaryAccountResponse creation. - */ - readonly created?: string; - /** - * The timestamp of the ShareInviteMonetaryAccountResponse last update. - */ - readonly updated?: string; - /** - * The monetary account and user who created the share. - */ - readonly counter_alias?: ILabelMonetaryAccount; - /** - * The user who cancelled the share if it has been revoked or rejected. - */ - readonly user_alias_cancelled?: ILabelUser; - /** - * The id of the monetary account the ACCEPTED share applies to. null otherwise. - */ - readonly monetary_account_id?: number; - /** - * The id of the draft share invite bank. - */ - readonly draft_share_invite_bank_id?: number; - /** - * The share details. - */ - readonly share_detail?: IShareDetail; - /** - * 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) - */ - readonly status?: string; - /** - * The share type, either STANDARD or MUTUAL. - */ - readonly share_type?: string; - /** - * The start date of this share. - */ - readonly start_date?: string; - /** - * The expiration date of this share. - */ - readonly end_date?: string; - /** - * The description of this share. It is basically the monetary account description. - */ - readonly description?: string; + /** + * The id of the ShareInviteMonetaryAccountResponse. + */ + readonly id?: number; + /** + * The timestamp of the ShareInviteMonetaryAccountResponse creation. + */ + readonly created?: string; + /** + * The timestamp of the ShareInviteMonetaryAccountResponse last update. + */ + readonly updated?: string; + /** + * The monetary account and user who created the share. + */ + readonly counter_alias?: ILabelMonetaryAccount; + /** + * The user who cancelled the share if it has been revoked or rejected. + */ + readonly user_alias_cancelled?: ILabelUser; + /** + * The id of the monetary account the ACCEPTED share applies to. null otherwise. + */ + readonly monetary_account_id?: number; + /** + * The id of the draft share invite bank. + */ + readonly draft_share_invite_bank_id?: number; + /** + * The share details. + */ + readonly share_detail?: IShareDetail; + /** + * 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) + */ + readonly status?: string; + /** + * The share type, either STANDARD or MUTUAL. + */ + readonly share_type?: string; + /** + * The start date of this share. + */ + readonly start_date?: string; + /** + * The expiration date of this share. + */ + readonly end_date?: string; + /** + * The description of this share. It is basically the monetary account description. + */ + readonly description?: string; } export interface IShareInviteMonetaryAccountResponse { - /** - * 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) - */ - status?: string; - /** - * The card to link to the shared monetary account. Used only if share_detail is ShareDetailCardPayment. - */ - card_id?: number; - /** - * The id of the ShareInviteMonetaryAccountResponse. - */ - readonly id?: number; - /** - * The timestamp of the ShareInviteMonetaryAccountResponse creation. - */ - readonly created?: string; - /** - * The timestamp of the ShareInviteMonetaryAccountResponse last update. - */ - readonly updated?: string; - /** - * The monetary account and user who created the share. - */ - readonly counter_alias?: ILabelMonetaryAccount; - /** - * The user who cancelled the share if it has been revoked or rejected. - */ - readonly user_alias_cancelled?: ILabelUser; - /** - * The id of the monetary account the ACCEPTED share applies to. null otherwise. - */ - readonly monetary_account_id?: number; - /** - * The id of the draft share invite bank. - */ - readonly draft_share_invite_bank_id?: number; - /** - * The share details. - */ - readonly share_detail?: IShareDetail; - /** - * The share type, either STANDARD or MUTUAL. - */ - readonly share_type?: string; - /** - * The start date of this share. - */ - readonly start_date?: string; - /** - * The expiration date of this share. - */ - readonly end_date?: string; - /** - * The description of this share. It is basically the monetary account description. - */ - readonly description?: string; + /** + * 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) + */ + status?: string; + /** + * The card to link to the shared monetary account. Used only if share_detail is ShareDetailCardPayment. + */ + card_id?: number; + /** + * The id of the ShareInviteMonetaryAccountResponse. + */ + readonly id?: number; + /** + * The timestamp of the ShareInviteMonetaryAccountResponse creation. + */ + readonly created?: string; + /** + * The timestamp of the ShareInviteMonetaryAccountResponse last update. + */ + readonly updated?: string; + /** + * The monetary account and user who created the share. + */ + readonly counter_alias?: ILabelMonetaryAccount; + /** + * The user who cancelled the share if it has been revoked or rejected. + */ + readonly user_alias_cancelled?: ILabelUser; + /** + * The id of the monetary account the ACCEPTED share applies to. null otherwise. + */ + readonly monetary_account_id?: number; + /** + * The id of the draft share invite bank. + */ + readonly draft_share_invite_bank_id?: number; + /** + * The share details. + */ + readonly share_detail?: IShareDetail; + /** + * The share type, either STANDARD or MUTUAL. + */ + readonly share_type?: string; + /** + * The start date of this share. + */ + readonly start_date?: string; + /** + * The expiration date of this share. + */ + readonly end_date?: string; + /** + * The description of this share. It is basically the monetary account description. + */ + readonly description?: string; } export interface IShareInviteMonetaryAccountInquiryUpdate { - /** - * The id of the created item - */ - readonly Id?: BunqId; + /** + * The id of the created item + */ + readonly Id?: BunqId; } export interface IShareInviteMonetaryAccountInquiryRead { - /** - * The label of the monetary account that's being shared. - */ - readonly alias?: ILabelMonetaryAccount; - /** - * The user who created the share. - */ - readonly user_alias_created?: ILabelUser; - /** - * The user who revoked the share. - */ - readonly user_alias_revoked?: ILabelUser; - /** - * The label of the user to share with. - */ - readonly counter_user_alias?: ILabelUser; - /** - * The id of the monetary account the share applies to. - */ - readonly monetary_account_id?: number; - /** - * The id of the draft share invite bank. - */ - readonly draft_share_invite_bank_id?: number; - /** - * The share details. Only one of these objects is returned. - */ - readonly share_detail?: IShareDetail; - /** - * 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) - */ - readonly status?: string; - /** - * The share type, either STANDARD or MUTUAL. - */ - readonly share_type?: string; - /** - * The start date of this share. - */ - readonly start_date?: string; - /** - * The expiration date of this share. - */ - readonly end_date?: string; - /** - * The id of the newly created share invite. - */ - readonly id?: number; + /** + * The label of the monetary account that's being shared. + */ + readonly alias?: ILabelMonetaryAccount; + /** + * The user who created the share. + */ + readonly user_alias_created?: ILabelUser; + /** + * The user who revoked the share. + */ + readonly user_alias_revoked?: ILabelUser; + /** + * The label of the user to share with. + */ + readonly counter_user_alias?: ILabelUser; + /** + * The id of the monetary account the share applies to. + */ + readonly monetary_account_id?: number; + /** + * The id of the draft share invite bank. + */ + readonly draft_share_invite_bank_id?: number; + /** + * The share details. Only one of these objects is returned. + */ + readonly share_detail?: IShareDetail; + /** + * 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) + */ + readonly status?: string; + /** + * The share type, either STANDARD or MUTUAL. + */ + readonly share_type?: string; + /** + * The start date of this share. + */ + readonly start_date?: string; + /** + * The expiration date of this share. + */ + readonly end_date?: string; + /** + * The id of the newly created share invite. + */ + readonly id?: number; } export interface IShareInviteMonetaryAccountInquiryListing { - /** - * The label of the monetary account that's being shared. - */ - readonly alias?: ILabelMonetaryAccount; - /** - * The user who created the share. - */ - readonly user_alias_created?: ILabelUser; - /** - * The user who revoked the share. - */ - readonly user_alias_revoked?: ILabelUser; - /** - * The label of the user to share with. - */ - readonly counter_user_alias?: ILabelUser; - /** - * The id of the monetary account the share applies to. - */ - readonly monetary_account_id?: number; - /** - * The id of the draft share invite bank. - */ - readonly draft_share_invite_bank_id?: number; - /** - * The share details. Only one of these objects is returned. - */ - readonly share_detail?: IShareDetail; - /** - * 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) - */ - readonly status?: string; - /** - * The share type, either STANDARD or MUTUAL. - */ - readonly share_type?: string; - /** - * The start date of this share. - */ - readonly start_date?: string; - /** - * The expiration date of this share. - */ - readonly end_date?: string; - /** - * The id of the newly created share invite. - */ - readonly id?: number; + /** + * The label of the monetary account that's being shared. + */ + readonly alias?: ILabelMonetaryAccount; + /** + * The user who created the share. + */ + readonly user_alias_created?: ILabelUser; + /** + * The user who revoked the share. + */ + readonly user_alias_revoked?: ILabelUser; + /** + * The label of the user to share with. + */ + readonly counter_user_alias?: ILabelUser; + /** + * The id of the monetary account the share applies to. + */ + readonly monetary_account_id?: number; + /** + * The id of the draft share invite bank. + */ + readonly draft_share_invite_bank_id?: number; + /** + * The share details. Only one of these objects is returned. + */ + readonly share_detail?: IShareDetail; + /** + * 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) + */ + readonly status?: string; + /** + * The share type, either STANDARD or MUTUAL. + */ + readonly share_type?: string; + /** + * The start date of this share. + */ + readonly start_date?: string; + /** + * The expiration date of this share. + */ + readonly end_date?: string; + /** + * The id of the newly created share invite. + */ + readonly id?: number; } export interface IShareInviteMonetaryAccountInquiryCreate { - /** - * The id of the newly created share invite. - */ - readonly id?: number; + /** + * The id of the newly created share invite. + */ + readonly id?: number; } export interface IShareInviteMonetaryAccountInquiryBatch { - /** - * The list of share invite bank inquiries that were made. - */ - readonly share_invite_bank_inquiries?: Array< - IShareInviteMonetaryAccountInquiry - >; - /** - * The LabelMonetaryAccount containing the public information of this share invite inquiry batch. - */ - readonly alias?: ILabelMonetaryAccount; + /** + * The list of share invite bank inquiries that were made. + */ + readonly share_invite_bank_inquiries?: Array; + /** + * The LabelMonetaryAccount containing the public information of this share invite inquiry batch. + */ + readonly alias?: ILabelMonetaryAccount; } export interface IShareInviteMonetaryAccountInquiry { - /** - * The label of the user to share with. - */ - counter_user_alias?: ILabelUser; - /** - * The id of the draft share invite bank. - */ - draft_share_invite_bank_id?: number; - /** - * The share details. Only one of these objects is returned. - */ - share_detail?: IShareDetail; - /** - * 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) - */ - status?: string; - /** - * The share type, either STANDARD or MUTUAL. - */ - share_type?: string; - /** - * The start date of this share. - */ - start_date?: string; - /** - * The expiration date of this share. - */ - end_date?: string; - /** - * The label of the monetary account that's being shared. - */ - readonly alias?: ILabelMonetaryAccount; - /** - * The user who created the share. - */ - readonly user_alias_created?: ILabelUser; - /** - * The user who revoked the share. - */ - readonly user_alias_revoked?: ILabelUser; - /** - * The id of the monetary account the share applies to. - */ - readonly monetary_account_id?: number; - /** - * The id of the newly created share invite. - */ - readonly id?: number; + /** + * The label of the user to share with. + */ + counter_user_alias?: ILabelUser; + /** + * The id of the draft share invite bank. + */ + draft_share_invite_bank_id?: number; + /** + * The share details. Only one of these objects is returned. + */ + share_detail?: IShareDetail; + /** + * 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) + */ + status?: string; + /** + * The share type, either STANDARD or MUTUAL. + */ + share_type?: string; + /** + * The start date of this share. + */ + start_date?: string; + /** + * The expiration date of this share. + */ + end_date?: string; + /** + * The label of the monetary account that's being shared. + */ + readonly alias?: ILabelMonetaryAccount; + /** + * The user who created the share. + */ + readonly user_alias_created?: ILabelUser; + /** + * The user who revoked the share. + */ + readonly user_alias_revoked?: ILabelUser; + /** + * The id of the monetary account the share applies to. + */ + readonly monetary_account_id?: number; + /** + * The id of the newly created share invite. + */ + readonly id?: number; } export interface IShareInviteMonetaryAccountAmountUsedDelete {} export interface IShareDetailReadOnly { - /** - * If set to true, the invited user will be able to view the account balance. - */ - view_balance?: boolean; - /** - * If set to true, the invited user will be able to view events from before the share was active. - */ - view_old_events?: boolean; - /** - * If set to true, the invited user will be able to view events starting from the time the share became active. - */ - view_new_events?: boolean; + /** + * If set to true, the invited user will be able to view the account balance. + */ + view_balance?: boolean; + /** + * If set to true, the invited user will be able to view events from before the share was active. + */ + view_old_events?: boolean; + /** + * If set to true, the invited user will be able to view events starting from the time the share became active. + */ + view_new_events?: boolean; } export interface IShareDetailPayment { - /** - * If set to true, the invited user will be able to make payments from the shared account. - */ - make_payments?: boolean; - /** - * If set to true, the invited user will be able to make draft payments from the shared account. - */ - make_draft_payments?: boolean; - /** - * If set to true, the invited user will be able to view the account balance. - */ - view_balance?: boolean; - /** - * If set to true, the invited user will be able to view events from before the share was active. - */ - view_old_events?: boolean; - /** - * If set to true, the invited user will be able to view events starting from the time the share became active. - */ - view_new_events?: boolean; - /** - * The budget restriction. - */ - budget?: IBudgetRestriction; + /** + * If set to true, the invited user will be able to make payments from the shared account. + */ + make_payments?: boolean; + /** + * If set to true, the invited user will be able to make draft payments from the shared account. + */ + make_draft_payments?: boolean; + /** + * If set to true, the invited user will be able to view the account balance. + */ + view_balance?: boolean; + /** + * If set to true, the invited user will be able to view events from before the share was active. + */ + view_old_events?: boolean; + /** + * If set to true, the invited user will be able to view events starting from the time the share became active. + */ + view_new_events?: boolean; + /** + * The budget restriction. + */ + budget?: IBudgetRestriction; } export interface IShareDetailDraftPayment { - /** - * If set to true, the invited user will be able to make draft payments from the shared account. - */ - make_draft_payments?: boolean; - /** - * If set to true, the invited user will be able to view the account balance. - */ - view_balance?: boolean; - /** - * If set to true, the invited user will be able to view events from before the share was active. - */ - view_old_events?: boolean; - /** - * If set to true, the invited user will be able to view events starting from the time the share became active. - */ - view_new_events?: boolean; + /** + * If set to true, the invited user will be able to make draft payments from the shared account. + */ + make_draft_payments?: boolean; + /** + * If set to true, the invited user will be able to view the account balance. + */ + view_balance?: boolean; + /** + * If set to true, the invited user will be able to view events from before the share was active. + */ + view_old_events?: boolean; + /** + * If set to true, the invited user will be able to view events starting from the time the share became active. + */ + view_new_events?: boolean; } export interface IShareDetail { - /** - * The share details for a payment share. In the response 'payment' is replaced by 'ShareDetailPayment'. - */ - payment?: IShareDetailPayment; - /** - * The share details for viewing a share. In the response 'read_only' is replaced by 'ShareDetailReadOnly'. - */ - read_only?: IShareDetailReadOnly; - /** - * The share details for a draft payment share. In the response 'draft_payment' is replaced by 'ShareDetailDraftPayment'. - */ - draft_payment?: IShareDetailDraftPayment; + /** + * The share details for a payment share. In the response 'payment' is replaced by 'ShareDetailPayment'. + */ + payment?: IShareDetailPayment; + /** + * The share details for viewing a share. In the response 'read_only' is replaced by 'ShareDetailReadOnly'. + */ + read_only?: IShareDetailReadOnly; + /** + * The share details for a draft payment share. In the response 'draft_payment' is replaced by 'ShareDetailDraftPayment'. + */ + draft_payment?: IShareDetailDraftPayment; } export interface ISessionServerToken { - /** - * The id of the Token. - */ - readonly id?: number; - /** - * The Session token is the token the client has to provide in the "X-Bunq-Client-Authentication" header for each API call that requires a Session (only the creation of a Installation and DeviceServer don't require a Session). - */ - readonly token?: string; + /** + * The id of the Token. + */ + readonly id?: number; + /** + * The Session token is the token the client has to provide in the "X-Bunq-Client-Authentication" header for each API call that requires a Session (only the creation of a Installation and DeviceServer don't require a Session). + */ + readonly token?: string; } export interface ISessionServerCreate { - /** - * The Id object of the created Session. - */ - readonly Id?: BunqId; - /** - * The token object of this Session. - */ - readonly Token?: ISessionServerToken; - /** - * The UserCompany object that is logged in with this Session. - */ - readonly UserCompany?: IUserCompany; - /** - * The UserPerson object that is logged in with this Session. - */ - readonly UserPerson?: IUserPerson; - /** - * The UserApiKey object that is logged in with this Session. - */ - readonly UserApiKey?: IUserApiKey; - /** - * The UserPaymentServiceProvider object that is logged in with this Session. - */ - readonly UserPaymentServiceProvider?: IUserPaymentServiceProvider; + /** + * The Id object of the created Session. + */ + readonly Id?: BunqId; + /** + * The token object of this Session. + */ + readonly Token?: ISessionServerToken; + /** + * The UserCompany object that is logged in with this Session. + */ + readonly UserCompany?: IUserCompany; + /** + * The UserPerson object that is logged in with this Session. + */ + readonly UserPerson?: IUserPerson; + /** + * The UserApiKey object that is logged in with this Session. + */ + readonly UserApiKey?: IUserApiKey; + /** + * The UserPaymentServiceProvider object that is logged in with this Session. + */ + readonly UserPaymentServiceProvider?: IUserPaymentServiceProvider; } export interface ISessionServer { - /** - * The API key of the user you want to login. If your API key has not been used before, it will be bound to the ip address of this DeviceServer. - */ - secret: string; + /** + * The API key of the user you want to login. If your API key has not been used before, it will be bound to the ip address of this DeviceServer. + */ + secret: string; } export interface ISessionDelete {} @@ -2838,6819 +2836,6819 @@ export interface ISessionDelete {} export interface IScheduleUserListing {} export interface IScheduleRead { - /** - * The schedule start time (UTC). - */ - readonly time_start?: string; - /** - * The schedule end time (UTC). - */ - readonly time_end?: string; - /** - * The schedule recurrence unit, options: ONCE, HOURLY, DAILY, WEEKLY, MONTHLY, YEARLY - */ - readonly recurrence_unit?: string; - /** - * The schedule recurrence size. For example size 4 and unit WEEKLY means the recurrence is every 4 weeks. - */ - readonly recurrence_size?: number; - /** - * The schedule status, options: ACTIVE, FINISHED, CANCELLED. - */ - readonly status?: string; - /** - * The scheduled object. (Payment, PaymentBatch) - */ - readonly object?: IScheduleAnchorObject; + /** + * The schedule start time (UTC). + */ + readonly time_start?: string; + /** + * The schedule end time (UTC). + */ + readonly time_end?: string; + /** + * The schedule recurrence unit, options: ONCE, HOURLY, DAILY, WEEKLY, MONTHLY, YEARLY + */ + readonly recurrence_unit?: string; + /** + * The schedule recurrence size. For example size 4 and unit WEEKLY means the recurrence is every 4 weeks. + */ + readonly recurrence_size?: number; + /** + * The schedule status, options: ACTIVE, FINISHED, CANCELLED. + */ + readonly status?: string; + /** + * The scheduled object. (Payment, PaymentBatch) + */ + readonly object?: IScheduleAnchorObject; } export interface ISchedulePaymentUpdate { - /** - * The id of the created item - */ - readonly Id?: BunqId; + /** + * The id of the created item + */ + readonly Id?: BunqId; } export interface ISchedulePaymentRead { - /** - * The payment details. - */ - readonly payment?: ISchedulePaymentEntry; - /** - * The schedule details. - */ - readonly schedule?: ISchedule; - /** - * The schedule status, options: ACTIVE, FINISHED, CANCELLED. - */ - readonly status?: string; + /** + * The payment details. + */ + readonly payment?: ISchedulePaymentEntry; + /** + * The schedule details. + */ + readonly schedule?: ISchedule; + /** + * The schedule status, options: ACTIVE, FINISHED, CANCELLED. + */ + readonly status?: string; } export interface ISchedulePaymentListing { - /** - * The payment details. - */ - readonly payment?: ISchedulePaymentEntry; - /** - * The schedule details. - */ - readonly schedule?: ISchedule; - /** - * The schedule status, options: ACTIVE, FINISHED, CANCELLED. - */ - readonly status?: string; + /** + * The payment details. + */ + readonly payment?: ISchedulePaymentEntry; + /** + * The schedule details. + */ + readonly schedule?: ISchedule; + /** + * The schedule status, options: ACTIVE, FINISHED, CANCELLED. + */ + readonly status?: string; } export interface ISchedulePaymentEntry { - /** - * 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). - */ - amount?: IAmount; - /** - * The LabelMonetaryAccount containing the public information of the other (counterparty) side of the Payment. - */ - counterparty_alias?: ILabelMonetaryAccount; - /** - * The description for the Payment. Maximum 140 characters for Payments to external IBANs, 9000 characters for Payments to only other bunq MonetaryAccounts. - */ - description?: string; - /** - * The Attachments attached to the Payment. - */ - attachment?: Array; - /** - * Optional data included with the Payment specific to the merchant. - */ - merchant_reference?: string; - /** - * Whether or not sending a bunq.to payment is allowed. - */ - allow_bunqto?: boolean; - /** - * The LabelMonetaryAccount containing the public information of 'this' (party) side of the Payment. - */ - readonly alias?: ILabelMonetaryAccount; + /** + * 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). + */ + amount?: IAmount; + /** + * The LabelMonetaryAccount containing the public information of the other (counterparty) side of the Payment. + */ + counterparty_alias?: ILabelMonetaryAccount; + /** + * The description for the Payment. Maximum 140 characters for Payments to external IBANs, 9000 characters for Payments to only other bunq MonetaryAccounts. + */ + description?: string; + /** + * The Attachments attached to the Payment. + */ + attachment?: Array; + /** + * Optional data included with the Payment specific to the merchant. + */ + merchant_reference?: string; + /** + * Whether or not sending a bunq.to payment is allowed. + */ + allow_bunqto?: boolean; + /** + * The LabelMonetaryAccount containing the public information of 'this' (party) side of the Payment. + */ + readonly alias?: ILabelMonetaryAccount; } export interface ISchedulePaymentDelete {} export interface ISchedulePaymentCreate { - /** - * The id of the created item - */ - readonly Id?: BunqId; + /** + * The id of the created item + */ + readonly Id?: BunqId; } export interface ISchedulePaymentBatchUpdate { - /** - * The id of the created item - */ - readonly Id?: BunqId; + /** + * The id of the created item + */ + readonly Id?: BunqId; } export interface ISchedulePaymentBatchDelete {} export interface ISchedulePaymentBatchCreate { - /** - * The id of the created item - */ - readonly Id?: BunqId; + /** + * The id of the created item + */ + readonly Id?: BunqId; } export interface ISchedulePaymentBatch { - /** - * The payment details. - */ - payments?: Array; - /** - * The schedule details. - */ - schedule?: ISchedule; + /** + * The payment details. + */ + payments?: Array; + /** + * The schedule details. + */ + schedule?: ISchedule; } export interface ISchedulePayment { - /** - * The payment details. - */ - payment?: ISchedulePaymentEntry; - /** - * The schedule details. - */ - schedule?: ISchedule; - /** - * The schedule status, options: ACTIVE, FINISHED, CANCELLED. - */ - readonly status?: string; + /** + * The payment details. + */ + payment?: ISchedulePaymentEntry; + /** + * The schedule details. + */ + schedule?: ISchedule; + /** + * The schedule status, options: ACTIVE, FINISHED, CANCELLED. + */ + readonly status?: string; } export interface IScheduleListing { - /** - * The schedule start time (UTC). - */ - readonly time_start?: string; - /** - * The schedule end time (UTC). - */ - readonly time_end?: string; - /** - * The schedule recurrence unit, options: ONCE, HOURLY, DAILY, WEEKLY, MONTHLY, YEARLY - */ - readonly recurrence_unit?: string; - /** - * The schedule recurrence size. For example size 4 and unit WEEKLY means the recurrence is every 4 weeks. - */ - readonly recurrence_size?: number; - /** - * The schedule status, options: ACTIVE, FINISHED, CANCELLED. - */ - readonly status?: string; - /** - * The scheduled object. (Payment, PaymentBatch) - */ - readonly object?: IScheduleAnchorObject; + /** + * The schedule start time (UTC). + */ + readonly time_start?: string; + /** + * The schedule end time (UTC). + */ + readonly time_end?: string; + /** + * The schedule recurrence unit, options: ONCE, HOURLY, DAILY, WEEKLY, MONTHLY, YEARLY + */ + readonly recurrence_unit?: string; + /** + * The schedule recurrence size. For example size 4 and unit WEEKLY means the recurrence is every 4 weeks. + */ + readonly recurrence_size?: number; + /** + * The schedule status, options: ACTIVE, FINISHED, CANCELLED. + */ + readonly status?: string; + /** + * The scheduled object. (Payment, PaymentBatch) + */ + readonly object?: IScheduleAnchorObject; } export interface IScheduleInstanceUpdate { - /** - * The id of the created item - */ - readonly Id?: BunqId; + /** + * The id of the created item + */ + readonly Id?: BunqId; } export interface IScheduleInstanceRead { - /** - * The state of the scheduleInstance. (FINISHED_SUCCESSFULLY, RETRY, FAILED_USER_ERROR) - */ - readonly state?: string; - /** - * The schedule start time (UTC). - */ - readonly time_start?: string; - /** - * The schedule end time (UTC). - */ - readonly time_end?: string; - /** - * The message when the scheduled instance has run and failed due to user error. - */ - readonly error_message?: Array; - /** - * The scheduled object. (Payment, PaymentBatch) - */ - readonly scheduled_object?: IScheduleAnchorObject; - /** - * The result object of this schedule instance. (Payment, PaymentBatch) - */ - readonly result_object?: IScheduleInstanceAnchorObject; - /** - * The reference to the object used for split the bill. Can be RequestInquiry or RequestInquiryBatch - */ - readonly request_reference_split_the_bill?: Array; + /** + * The state of the scheduleInstance. (FINISHED_SUCCESSFULLY, RETRY, FAILED_USER_ERROR) + */ + readonly state?: string; + /** + * The schedule start time (UTC). + */ + readonly time_start?: string; + /** + * The schedule end time (UTC). + */ + readonly time_end?: string; + /** + * The message when the scheduled instance has run and failed due to user error. + */ + readonly error_message?: Array; + /** + * The scheduled object. (Payment, PaymentBatch) + */ + readonly scheduled_object?: IScheduleAnchorObject; + /** + * The result object of this schedule instance. (Payment, PaymentBatch) + */ + readonly result_object?: IScheduleInstanceAnchorObject; + /** + * The reference to the object used for split the bill. Can be RequestInquiry or RequestInquiryBatch + */ + readonly request_reference_split_the_bill?: Array; } export interface IScheduleInstanceListing { - /** - * The state of the scheduleInstance. (FINISHED_SUCCESSFULLY, RETRY, FAILED_USER_ERROR) - */ - readonly state?: string; - /** - * The schedule start time (UTC). - */ - readonly time_start?: string; - /** - * The schedule end time (UTC). - */ - readonly time_end?: string; - /** - * The message when the scheduled instance has run and failed due to user error. - */ - readonly error_message?: Array; - /** - * The scheduled object. (Payment, PaymentBatch) - */ - readonly scheduled_object?: IScheduleAnchorObject; - /** - * The result object of this schedule instance. (Payment, PaymentBatch) - */ - readonly result_object?: IScheduleInstanceAnchorObject; - /** - * The reference to the object used for split the bill. Can be RequestInquiry or RequestInquiryBatch - */ - readonly request_reference_split_the_bill?: Array; + /** + * The state of the scheduleInstance. (FINISHED_SUCCESSFULLY, RETRY, FAILED_USER_ERROR) + */ + readonly state?: string; + /** + * The schedule start time (UTC). + */ + readonly time_start?: string; + /** + * The schedule end time (UTC). + */ + readonly time_end?: string; + /** + * The message when the scheduled instance has run and failed due to user error. + */ + readonly error_message?: Array; + /** + * The scheduled object. (Payment, PaymentBatch) + */ + readonly scheduled_object?: IScheduleAnchorObject; + /** + * The result object of this schedule instance. (Payment, PaymentBatch) + */ + readonly result_object?: IScheduleInstanceAnchorObject; + /** + * The reference to the object used for split the bill. Can be RequestInquiry or RequestInquiryBatch + */ + readonly request_reference_split_the_bill?: Array; } export interface IScheduleInstanceAnchorObject { - /** - * - */ - readonly Payment?: IPayment; - /** - * - */ - readonly PaymentBatch?: IPaymentBatch; + /** + * + */ + readonly Payment?: IPayment; + /** + * + */ + readonly PaymentBatch?: IPaymentBatch; } export interface IScheduleInstance { - /** - * The state of the scheduleInstance. (FINISHED_SUCCESSFULLY, RETRY, FAILED_USER_ERROR) - */ - state?: string; - /** - * The schedule start time (UTC). - */ - readonly time_start?: string; - /** - * The schedule end time (UTC). - */ - readonly time_end?: string; - /** - * The message when the scheduled instance has run and failed due to user error. - */ - readonly error_message?: Array; - /** - * The scheduled object. (Payment, PaymentBatch) - */ - readonly scheduled_object?: IScheduleAnchorObject; - /** - * The result object of this schedule instance. (Payment, PaymentBatch) - */ - readonly result_object?: IScheduleInstanceAnchorObject; - /** - * The reference to the object used for split the bill. Can be RequestInquiry or RequestInquiryBatch - */ - readonly request_reference_split_the_bill?: Array; + /** + * The state of the scheduleInstance. (FINISHED_SUCCESSFULLY, RETRY, FAILED_USER_ERROR) + */ + state?: string; + /** + * The schedule start time (UTC). + */ + readonly time_start?: string; + /** + * The schedule end time (UTC). + */ + readonly time_end?: string; + /** + * The message when the scheduled instance has run and failed due to user error. + */ + readonly error_message?: Array; + /** + * The scheduled object. (Payment, PaymentBatch) + */ + readonly scheduled_object?: IScheduleAnchorObject; + /** + * The result object of this schedule instance. (Payment, PaymentBatch) + */ + readonly result_object?: IScheduleInstanceAnchorObject; + /** + * The reference to the object used for split the bill. Can be RequestInquiry or RequestInquiryBatch + */ + readonly request_reference_split_the_bill?: Array; } export interface IScheduleAnchorObject { - /** - * - */ - readonly Payment?: IPayment; - /** - * - */ - readonly PaymentBatch?: IPaymentBatch; + /** + * + */ + readonly Payment?: IPayment; + /** + * + */ + readonly PaymentBatch?: IPaymentBatch; } export interface ISchedule { - /** - * The schedule start time (UTC). - */ - time_start: string; - /** - * The schedule end time (UTC). - */ - time_end?: string; - /** - * The schedule recurrence unit, options: ONCE, HOURLY, DAILY, WEEKLY, MONTHLY, YEARLY - */ - recurrence_unit: RecurrenceUnitType; - /** - * The schedule recurrence size. For example size 4 and unit WEEKLY means the recurrence is every 4 weeks. - */ - recurrence_size: number; - /** - * The schedule status, options: ACTIVE, FINISHED, CANCELLED. - */ - readonly status?: ScheduleStatusType; - /** - * The scheduled object. (Payment, PaymentBatch) - */ - readonly object?: IScheduleAnchorObject; + /** + * The schedule start time (UTC). + */ + time_start: string; + /** + * The schedule end time (UTC). + */ + time_end?: string; + /** + * The schedule recurrence unit, options: ONCE, HOURLY, DAILY, WEEKLY, MONTHLY, YEARLY + */ + recurrence_unit: RecurrenceUnitType; + /** + * The schedule recurrence size. For example size 4 and unit WEEKLY means the recurrence is every 4 weeks. + */ + recurrence_size: number; + /** + * The schedule status, options: ACTIVE, FINISHED, CANCELLED. + */ + readonly status?: ScheduleStatusType; + /** + * The scheduled object. (Payment, PaymentBatch) + */ + readonly object?: IScheduleAnchorObject; } export interface ISandboxUserCreate { - /** - * The id of the created item - */ - readonly Id?: BunqId; + /** + * The id of the created item + */ + readonly Id?: BunqId; } export interface ISandboxUser {} export interface IRewardSenderRead { - /** - * The id of the reward. - */ - readonly id?: number; - /** - * The time the reward was created. - */ - readonly created?: string; - /** - * The time the reward was last updated. - */ - readonly updated?: string; - /** - * The status of the reward. - */ - readonly status?: string; - /** - * The subStatus of the reward. - */ - readonly sub_status?: string; - /** - * The type of the reward. - */ - readonly type?: string; - /** - * The alias of the other user eligible for the reward award. - */ - readonly counterparty_alias?: ILabelUser; - /** - * The amount that will be/was awarded as reward for the reward. - */ - readonly amount_reward?: IAmount; + /** + * The id of the reward. + */ + readonly id?: number; + /** + * The time the reward was created. + */ + readonly created?: string; + /** + * The time the reward was last updated. + */ + readonly updated?: string; + /** + * The status of the reward. + */ + readonly status?: string; + /** + * The subStatus of the reward. + */ + readonly sub_status?: string; + /** + * The type of the reward. + */ + readonly type?: string; + /** + * The alias of the other user eligible for the reward award. + */ + readonly counterparty_alias?: ILabelUser; + /** + * The amount that will be/was awarded as reward for the reward. + */ + readonly amount_reward?: IAmount; } export interface IRewardSenderListing { - /** - * The id of the reward. - */ - readonly id?: number; - /** - * The time the reward was created. - */ - readonly created?: string; - /** - * The time the reward was last updated. - */ - readonly updated?: string; - /** - * The status of the reward. - */ - readonly status?: string; - /** - * The subStatus of the reward. - */ - readonly sub_status?: string; - /** - * The type of the reward. - */ - readonly type?: string; - /** - * The alias of the other user eligible for the reward award. - */ - readonly counterparty_alias?: ILabelUser; - /** - * The amount that will be/was awarded as reward for the reward. - */ - readonly amount_reward?: IAmount; + /** + * The id of the reward. + */ + readonly id?: number; + /** + * The time the reward was created. + */ + readonly created?: string; + /** + * The time the reward was last updated. + */ + readonly updated?: string; + /** + * The status of the reward. + */ + readonly status?: string; + /** + * The subStatus of the reward. + */ + readonly sub_status?: string; + /** + * The type of the reward. + */ + readonly type?: string; + /** + * The alias of the other user eligible for the reward award. + */ + readonly counterparty_alias?: ILabelUser; + /** + * The amount that will be/was awarded as reward for the reward. + */ + readonly amount_reward?: IAmount; } export interface IRewardSender { - /** - * The id of the reward. - */ - readonly id?: number; - /** - * The time the reward was created. - */ - readonly created?: string; - /** - * The time the reward was last updated. - */ - readonly updated?: string; - /** - * The status of the reward. - */ - readonly status?: string; - /** - * The subStatus of the reward. - */ - readonly sub_status?: string; - /** - * The type of the reward. - */ - readonly type?: string; - /** - * The alias of the other user eligible for the reward award. - */ - readonly counterparty_alias?: ILabelUser; - /** - * The amount that will be/was awarded as reward for the reward. - */ - readonly amount_reward?: IAmount; + /** + * The id of the reward. + */ + readonly id?: number; + /** + * The time the reward was created. + */ + readonly created?: string; + /** + * The time the reward was last updated. + */ + readonly updated?: string; + /** + * The status of the reward. + */ + readonly status?: string; + /** + * The subStatus of the reward. + */ + readonly sub_status?: string; + /** + * The type of the reward. + */ + readonly type?: string; + /** + * The alias of the other user eligible for the reward award. + */ + readonly counterparty_alias?: ILabelUser; + /** + * The amount that will be/was awarded as reward for the reward. + */ + readonly amount_reward?: IAmount; } export interface IRewardRecipientRead { - /** - * The id of the reward. - */ - readonly id?: number; - /** - * The time the reward was created. - */ - readonly created?: string; - /** - * The time the reward was last updated. - */ - readonly updated?: string; - /** - * The status of the reward. - */ - readonly status?: string; - /** - * The subStatus of the reward. - */ - readonly sub_status?: string; - /** - * The type of the reward. - */ - readonly type?: string; - /** - * The alias of the other user eligible for the reward award. - */ - readonly counterparty_alias?: ILabelUser; - /** - * The amount that will be/was awarded as reward for the reward. - */ - readonly amount_reward?: IAmount; + /** + * The id of the reward. + */ + readonly id?: number; + /** + * The time the reward was created. + */ + readonly created?: string; + /** + * The time the reward was last updated. + */ + readonly updated?: string; + /** + * The status of the reward. + */ + readonly status?: string; + /** + * The subStatus of the reward. + */ + readonly sub_status?: string; + /** + * The type of the reward. + */ + readonly type?: string; + /** + * The alias of the other user eligible for the reward award. + */ + readonly counterparty_alias?: ILabelUser; + /** + * The amount that will be/was awarded as reward for the reward. + */ + readonly amount_reward?: IAmount; } export interface IRewardRecipientListing { - /** - * The id of the reward. - */ - readonly id?: number; - /** - * The time the reward was created. - */ - readonly created?: string; - /** - * The time the reward was last updated. - */ - readonly updated?: string; - /** - * The status of the reward. - */ - readonly status?: string; - /** - * The subStatus of the reward. - */ - readonly sub_status?: string; - /** - * The type of the reward. - */ - readonly type?: string; - /** - * The alias of the other user eligible for the reward award. - */ - readonly counterparty_alias?: ILabelUser; - /** - * The amount that will be/was awarded as reward for the reward. - */ - readonly amount_reward?: IAmount; + /** + * The id of the reward. + */ + readonly id?: number; + /** + * The time the reward was created. + */ + readonly created?: string; + /** + * The time the reward was last updated. + */ + readonly updated?: string; + /** + * The status of the reward. + */ + readonly status?: string; + /** + * The subStatus of the reward. + */ + readonly sub_status?: string; + /** + * The type of the reward. + */ + readonly type?: string; + /** + * The alias of the other user eligible for the reward award. + */ + readonly counterparty_alias?: ILabelUser; + /** + * The amount that will be/was awarded as reward for the reward. + */ + readonly amount_reward?: IAmount; } export interface IRewardRecipient { - /** - * The id of the reward. - */ - readonly id?: number; - /** - * The time the reward was created. - */ - readonly created?: string; - /** - * The time the reward was last updated. - */ - readonly updated?: string; - /** - * The status of the reward. - */ - readonly status?: string; - /** - * The subStatus of the reward. - */ - readonly sub_status?: string; - /** - * The type of the reward. - */ - readonly type?: string; - /** - * The alias of the other user eligible for the reward award. - */ - readonly counterparty_alias?: ILabelUser; - /** - * The amount that will be/was awarded as reward for the reward. - */ - readonly amount_reward?: IAmount; + /** + * The id of the reward. + */ + readonly id?: number; + /** + * The time the reward was created. + */ + readonly created?: string; + /** + * The time the reward was last updated. + */ + readonly updated?: string; + /** + * The status of the reward. + */ + readonly status?: string; + /** + * The subStatus of the reward. + */ + readonly sub_status?: string; + /** + * The type of the reward. + */ + readonly type?: string; + /** + * The alias of the other user eligible for the reward award. + */ + readonly counterparty_alias?: ILabelUser; + /** + * The amount that will be/was awarded as reward for the reward. + */ + readonly amount_reward?: IAmount; } export interface IRewardRead { - /** - * The id of the reward. - */ - readonly id?: number; - /** - * The time the reward was created. - */ - readonly created?: string; - /** - * The time the reward was last updated. - */ - readonly updated?: string; - /** - * The status of the reward. - */ - readonly status?: string; - /** - * The subStatus of the reward. - */ - readonly sub_status?: string; - /** - * The type of the reward. - */ - readonly type?: string; - /** - * The alias of the other user eligible for the reward award. - */ - readonly counterparty_alias?: ILabelUser; - /** - * The amount that will be/was awarded as reward for the reward. - */ - readonly amount_reward?: IAmount; + /** + * The id of the reward. + */ + readonly id?: number; + /** + * The time the reward was created. + */ + readonly created?: string; + /** + * The time the reward was last updated. + */ + readonly updated?: string; + /** + * The status of the reward. + */ + readonly status?: string; + /** + * The subStatus of the reward. + */ + readonly sub_status?: string; + /** + * The type of the reward. + */ + readonly type?: string; + /** + * The alias of the other user eligible for the reward award. + */ + readonly counterparty_alias?: ILabelUser; + /** + * The amount that will be/was awarded as reward for the reward. + */ + readonly amount_reward?: IAmount; } export interface IRewardListing { - /** - * The id of the reward. - */ - readonly id?: number; - /** - * The time the reward was created. - */ - readonly created?: string; - /** - * The time the reward was last updated. - */ - readonly updated?: string; - /** - * The status of the reward. - */ - readonly status?: string; - /** - * The subStatus of the reward. - */ - readonly sub_status?: string; - /** - * The type of the reward. - */ - readonly type?: string; - /** - * The alias of the other user eligible for the reward award. - */ - readonly counterparty_alias?: ILabelUser; - /** - * The amount that will be/was awarded as reward for the reward. - */ - readonly amount_reward?: IAmount; + /** + * The id of the reward. + */ + readonly id?: number; + /** + * The time the reward was created. + */ + readonly created?: string; + /** + * The time the reward was last updated. + */ + readonly updated?: string; + /** + * The status of the reward. + */ + readonly status?: string; + /** + * The subStatus of the reward. + */ + readonly sub_status?: string; + /** + * The type of the reward. + */ + readonly type?: string; + /** + * The alias of the other user eligible for the reward award. + */ + readonly counterparty_alias?: ILabelUser; + /** + * The amount that will be/was awarded as reward for the reward. + */ + readonly amount_reward?: IAmount; } export interface IRequestResponseUpdate { - /** - * The id of the created item - */ - readonly Id?: BunqId; + /** + * The id of the created item + */ + readonly Id?: BunqId; } export interface IRequestResponseRead { - /** - * The id of the Request Response. - */ - readonly id?: number; - /** - * The timestamp when the Request Response was created. - */ - readonly created?: string; - /** - * The timestamp when the Request Response was last updated (will be updated when chat messages are received). - */ - readonly updated?: string; - /** - * The timestamp of when the RequestResponse was responded to. - */ - readonly time_responded?: string; - /** - * The timestamp of when the RequestResponse expired or will expire. - */ - readonly time_expiry?: string; - /** - * The timestamp of when a refund request for the RequestResponse was claimed. - */ - readonly time_refund_requested?: string; - /** - * The timestamp of when the RequestResponse was refunded. - */ - readonly time_refunded?: string; - /** - * The label of the user that requested the refund. - */ - readonly user_refund_requested?: ILabelUser; - /** - * The id of the MonetaryAccount the RequestResponse was received on. - */ - readonly monetary_account_id?: number; - /** - * The requested Amount. - */ - readonly amount_inquired?: IAmount; - /** - * The Amount the RequestResponse was accepted with. - */ - readonly amount_responded?: IAmount; - /** - * The status of the RequestResponse. Can be ACCEPTED, PENDING, REJECTED, REFUND_REQUESTED, REFUNDED or REVOKED. - */ - readonly status?: string; - /** - * The description for the RequestResponse provided by the requesting party. Maximum 9000 characters. - */ - readonly description?: string; - /** - * The LabelMonetaryAccount with the public information of the MonetaryAccount this RequestResponse was received on. - */ - readonly alias?: ILabelMonetaryAccount; - /** - * The LabelMonetaryAccount with the public information of the MonetaryAccount that is requesting money with this RequestResponse. - */ - readonly counterparty_alias?: ILabelMonetaryAccount; - /** - * The Attachments attached to the RequestResponse. - */ - readonly attachment?: Array; - /** - * The minimum age the user accepting the RequestResponse must have. - */ - readonly minimum_age?: number; - /** - * Whether or not an address must be provided on accept. - */ - readonly require_address?: string; - /** - * The Geolocation where the RequestResponse was created. - */ - readonly geolocation?: IGeolocation; - /** - * The type of the RequestInquiry. Can be DIRECT_DEBIT, DIRECT_DEBIT_B2B, IDEAL, SOFORT or INTERNAL. - */ - readonly type?: string; - /** - * The subtype of the RequestInquiry. Can be ONCE or RECURRING for DIRECT_DEBIT RequestInquiries and NONE for all other. - */ - readonly sub_type?: string; - /** - * The URL which the user is sent to after accepting or rejecting the Request. - */ - readonly redirect_url?: string; - /** - * The billing address provided by the accepting user if an address was requested. - */ - readonly address_billing?: IAddress; - /** - * The shipping address provided by the accepting user if an address was requested. - */ - readonly address_shipping?: IAddress; - /** - * Whether or not chat messages are allowed. - */ - readonly allow_chat?: boolean; - /** - * The credit scheme id provided by the counterparty for DIRECT_DEBIT inquiries. - */ - readonly credit_scheme_identifier?: string; - /** - * The mandate id provided by the counterparty for DIRECT_DEBIT inquiries. - */ - readonly mandate_identifier?: string; - /** - * The whitelist id for this action or null. - */ - readonly eligible_whitelist_id?: number; - /** - * The reference to the object used for split the bill. Can be RequestInquiry or RequestInquiryBatch - */ - readonly request_reference_split_the_bill?: Array; + /** + * The id of the Request Response. + */ + readonly id?: number; + /** + * The timestamp when the Request Response was created. + */ + readonly created?: string; + /** + * The timestamp when the Request Response was last updated (will be updated when chat messages are received). + */ + readonly updated?: string; + /** + * The timestamp of when the RequestResponse was responded to. + */ + readonly time_responded?: string; + /** + * The timestamp of when the RequestResponse expired or will expire. + */ + readonly time_expiry?: string; + /** + * The timestamp of when a refund request for the RequestResponse was claimed. + */ + readonly time_refund_requested?: string; + /** + * The timestamp of when the RequestResponse was refunded. + */ + readonly time_refunded?: string; + /** + * The label of the user that requested the refund. + */ + readonly user_refund_requested?: ILabelUser; + /** + * The id of the MonetaryAccount the RequestResponse was received on. + */ + readonly monetary_account_id?: number; + /** + * The requested Amount. + */ + readonly amount_inquired?: IAmount; + /** + * The Amount the RequestResponse was accepted with. + */ + readonly amount_responded?: IAmount; + /** + * The status of the RequestResponse. Can be ACCEPTED, PENDING, REJECTED, REFUND_REQUESTED, REFUNDED or REVOKED. + */ + readonly status?: string; + /** + * The description for the RequestResponse provided by the requesting party. Maximum 9000 characters. + */ + readonly description?: string; + /** + * The LabelMonetaryAccount with the public information of the MonetaryAccount this RequestResponse was received on. + */ + readonly alias?: ILabelMonetaryAccount; + /** + * The LabelMonetaryAccount with the public information of the MonetaryAccount that is requesting money with this RequestResponse. + */ + readonly counterparty_alias?: ILabelMonetaryAccount; + /** + * The Attachments attached to the RequestResponse. + */ + readonly attachment?: Array; + /** + * The minimum age the user accepting the RequestResponse must have. + */ + readonly minimum_age?: number; + /** + * Whether or not an address must be provided on accept. + */ + readonly require_address?: string; + /** + * The Geolocation where the RequestResponse was created. + */ + readonly geolocation?: IGeolocation; + /** + * The type of the RequestInquiry. Can be DIRECT_DEBIT, DIRECT_DEBIT_B2B, IDEAL, SOFORT or INTERNAL. + */ + readonly type?: string; + /** + * The subtype of the RequestInquiry. Can be ONCE or RECURRING for DIRECT_DEBIT RequestInquiries and NONE for all other. + */ + readonly sub_type?: string; + /** + * The URL which the user is sent to after accepting or rejecting the Request. + */ + readonly redirect_url?: string; + /** + * The billing address provided by the accepting user if an address was requested. + */ + readonly address_billing?: IAddress; + /** + * The shipping address provided by the accepting user if an address was requested. + */ + readonly address_shipping?: IAddress; + /** + * Whether or not chat messages are allowed. + */ + readonly allow_chat?: boolean; + /** + * The credit scheme id provided by the counterparty for DIRECT_DEBIT inquiries. + */ + readonly credit_scheme_identifier?: string; + /** + * The mandate id provided by the counterparty for DIRECT_DEBIT inquiries. + */ + readonly mandate_identifier?: string; + /** + * The whitelist id for this action or null. + */ + readonly eligible_whitelist_id?: number; + /** + * The reference to the object used for split the bill. Can be RequestInquiry or RequestInquiryBatch + */ + readonly request_reference_split_the_bill?: Array; } export interface IRequestResponseListing { - /** - * The id of the Request Response. - */ - readonly id?: number; - /** - * The timestamp when the Request Response was created. - */ - readonly created?: string; - /** - * The timestamp when the Request Response was last updated (will be updated when chat messages are received). - */ - readonly updated?: string; - /** - * The timestamp of when the RequestResponse was responded to. - */ - readonly time_responded?: string; - /** - * The timestamp of when the RequestResponse expired or will expire. - */ - readonly time_expiry?: string; - /** - * The timestamp of when a refund request for the RequestResponse was claimed. - */ - readonly time_refund_requested?: string; - /** - * The timestamp of when the RequestResponse was refunded. - */ - readonly time_refunded?: string; - /** - * The label of the user that requested the refund. - */ - readonly user_refund_requested?: ILabelUser; - /** - * The id of the MonetaryAccount the RequestResponse was received on. - */ - readonly monetary_account_id?: number; - /** - * The requested Amount. - */ - readonly amount_inquired?: IAmount; - /** - * The Amount the RequestResponse was accepted with. - */ - readonly amount_responded?: IAmount; - /** - * The status of the RequestResponse. Can be ACCEPTED, PENDING, REJECTED, REFUND_REQUESTED, REFUNDED or REVOKED. - */ - readonly status?: string; - /** - * The description for the RequestResponse provided by the requesting party. Maximum 9000 characters. - */ - readonly description?: string; - /** - * The LabelMonetaryAccount with the public information of the MonetaryAccount this RequestResponse was received on. - */ - readonly alias?: ILabelMonetaryAccount; - /** - * The LabelMonetaryAccount with the public information of the MonetaryAccount that is requesting money with this RequestResponse. - */ - readonly counterparty_alias?: ILabelMonetaryAccount; - /** - * The Attachments attached to the RequestResponse. - */ - readonly attachment?: Array; - /** - * The minimum age the user accepting the RequestResponse must have. - */ - readonly minimum_age?: number; - /** - * Whether or not an address must be provided on accept. - */ - readonly require_address?: string; - /** - * The Geolocation where the RequestResponse was created. - */ - readonly geolocation?: IGeolocation; - /** - * The type of the RequestInquiry. Can be DIRECT_DEBIT, DIRECT_DEBIT_B2B, IDEAL, SOFORT or INTERNAL. - */ - readonly type?: string; - /** - * The subtype of the RequestInquiry. Can be ONCE or RECURRING for DIRECT_DEBIT RequestInquiries and NONE for all other. - */ - readonly sub_type?: string; - /** - * The URL which the user is sent to after accepting or rejecting the Request. - */ - readonly redirect_url?: string; - /** - * The billing address provided by the accepting user if an address was requested. - */ - readonly address_billing?: IAddress; - /** - * The shipping address provided by the accepting user if an address was requested. - */ - readonly address_shipping?: IAddress; - /** - * Whether or not chat messages are allowed. - */ - readonly allow_chat?: boolean; - /** - * The credit scheme id provided by the counterparty for DIRECT_DEBIT inquiries. - */ - readonly credit_scheme_identifier?: string; - /** - * The mandate id provided by the counterparty for DIRECT_DEBIT inquiries. - */ - readonly mandate_identifier?: string; - /** - * The whitelist id for this action or null. - */ - readonly eligible_whitelist_id?: number; - /** - * The reference to the object used for split the bill. Can be RequestInquiry or RequestInquiryBatch - */ - readonly request_reference_split_the_bill?: Array; + /** + * The id of the Request Response. + */ + readonly id?: number; + /** + * The timestamp when the Request Response was created. + */ + readonly created?: string; + /** + * The timestamp when the Request Response was last updated (will be updated when chat messages are received). + */ + readonly updated?: string; + /** + * The timestamp of when the RequestResponse was responded to. + */ + readonly time_responded?: string; + /** + * The timestamp of when the RequestResponse expired or will expire. + */ + readonly time_expiry?: string; + /** + * The timestamp of when a refund request for the RequestResponse was claimed. + */ + readonly time_refund_requested?: string; + /** + * The timestamp of when the RequestResponse was refunded. + */ + readonly time_refunded?: string; + /** + * The label of the user that requested the refund. + */ + readonly user_refund_requested?: ILabelUser; + /** + * The id of the MonetaryAccount the RequestResponse was received on. + */ + readonly monetary_account_id?: number; + /** + * The requested Amount. + */ + readonly amount_inquired?: IAmount; + /** + * The Amount the RequestResponse was accepted with. + */ + readonly amount_responded?: IAmount; + /** + * The status of the RequestResponse. Can be ACCEPTED, PENDING, REJECTED, REFUND_REQUESTED, REFUNDED or REVOKED. + */ + readonly status?: string; + /** + * The description for the RequestResponse provided by the requesting party. Maximum 9000 characters. + */ + readonly description?: string; + /** + * The LabelMonetaryAccount with the public information of the MonetaryAccount this RequestResponse was received on. + */ + readonly alias?: ILabelMonetaryAccount; + /** + * The LabelMonetaryAccount with the public information of the MonetaryAccount that is requesting money with this RequestResponse. + */ + readonly counterparty_alias?: ILabelMonetaryAccount; + /** + * The Attachments attached to the RequestResponse. + */ + readonly attachment?: Array; + /** + * The minimum age the user accepting the RequestResponse must have. + */ + readonly minimum_age?: number; + /** + * Whether or not an address must be provided on accept. + */ + readonly require_address?: string; + /** + * The Geolocation where the RequestResponse was created. + */ + readonly geolocation?: IGeolocation; + /** + * The type of the RequestInquiry. Can be DIRECT_DEBIT, DIRECT_DEBIT_B2B, IDEAL, SOFORT or INTERNAL. + */ + readonly type?: string; + /** + * The subtype of the RequestInquiry. Can be ONCE or RECURRING for DIRECT_DEBIT RequestInquiries and NONE for all other. + */ + readonly sub_type?: string; + /** + * The URL which the user is sent to after accepting or rejecting the Request. + */ + readonly redirect_url?: string; + /** + * The billing address provided by the accepting user if an address was requested. + */ + readonly address_billing?: IAddress; + /** + * The shipping address provided by the accepting user if an address was requested. + */ + readonly address_shipping?: IAddress; + /** + * Whether or not chat messages are allowed. + */ + readonly allow_chat?: boolean; + /** + * The credit scheme id provided by the counterparty for DIRECT_DEBIT inquiries. + */ + readonly credit_scheme_identifier?: string; + /** + * The mandate id provided by the counterparty for DIRECT_DEBIT inquiries. + */ + readonly mandate_identifier?: string; + /** + * The whitelist id for this action or null. + */ + readonly eligible_whitelist_id?: number; + /** + * The reference to the object used for split the bill. Can be RequestInquiry or RequestInquiryBatch + */ + readonly request_reference_split_the_bill?: Array; } export interface IRequestResponse { - /** - * The Amount the RequestResponse was accepted with. - */ - amount_responded?: IAmount; - /** - * The status of the RequestResponse. Can be ACCEPTED, PENDING, REJECTED, REFUND_REQUESTED, REFUNDED or REVOKED. - */ - status?: string; - /** - * The shipping address provided by the accepting user if an address was requested. - */ - address_shipping?: IAddress; - /** - * The billing address provided by the accepting user if an address was requested. - */ - address_billing?: IAddress; - /** - * The id of the Request Response. - */ - readonly id?: number; - /** - * The timestamp when the Request Response was created. - */ - readonly created?: string; - /** - * The timestamp when the Request Response was last updated (will be updated when chat messages are received). - */ - readonly updated?: string; - /** - * The timestamp of when the RequestResponse was responded to. - */ - readonly time_responded?: string; - /** - * The timestamp of when the RequestResponse expired or will expire. - */ - readonly time_expiry?: string; - /** - * The timestamp of when a refund request for the RequestResponse was claimed. - */ - readonly time_refund_requested?: string; - /** - * The timestamp of when the RequestResponse was refunded. - */ - readonly time_refunded?: string; - /** - * The label of the user that requested the refund. - */ - readonly user_refund_requested?: ILabelUser; - /** - * The id of the MonetaryAccount the RequestResponse was received on. - */ - readonly monetary_account_id?: number; - /** - * The requested Amount. - */ - readonly amount_inquired?: IAmount; - /** - * The description for the RequestResponse provided by the requesting party. Maximum 9000 characters. - */ - readonly description?: string; - /** - * The LabelMonetaryAccount with the public information of the MonetaryAccount this RequestResponse was received on. - */ - readonly alias?: ILabelMonetaryAccount; - /** - * The LabelMonetaryAccount with the public information of the MonetaryAccount that is requesting money with this RequestResponse. - */ - readonly counterparty_alias?: ILabelMonetaryAccount; - /** - * The Attachments attached to the RequestResponse. - */ - readonly attachment?: Array; - /** - * The minimum age the user accepting the RequestResponse must have. - */ - readonly minimum_age?: number; - /** - * Whether or not an address must be provided on accept. - */ - readonly require_address?: string; - /** - * The Geolocation where the RequestResponse was created. - */ - readonly geolocation?: IGeolocation; - /** - * The type of the RequestInquiry. Can be DIRECT_DEBIT, DIRECT_DEBIT_B2B, IDEAL, SOFORT or INTERNAL. - */ - readonly type?: string; - /** - * The subtype of the RequestInquiry. Can be ONCE or RECURRING for DIRECT_DEBIT RequestInquiries and NONE for all other. - */ - readonly sub_type?: string; - /** - * The URL which the user is sent to after accepting or rejecting the Request. - */ - readonly redirect_url?: string; - /** - * Whether or not chat messages are allowed. - */ - readonly allow_chat?: boolean; - /** - * The credit scheme id provided by the counterparty for DIRECT_DEBIT inquiries. - */ - readonly credit_scheme_identifier?: string; - /** - * The mandate id provided by the counterparty for DIRECT_DEBIT inquiries. - */ - readonly mandate_identifier?: string; - /** - * The whitelist id for this action or null. - */ - readonly eligible_whitelist_id?: number; - /** - * The reference to the object used for split the bill. Can be RequestInquiry or RequestInquiryBatch - */ - readonly request_reference_split_the_bill?: Array; + /** + * The Amount the RequestResponse was accepted with. + */ + amount_responded?: IAmount; + /** + * The status of the RequestResponse. Can be ACCEPTED, PENDING, REJECTED, REFUND_REQUESTED, REFUNDED or REVOKED. + */ + status?: string; + /** + * The shipping address provided by the accepting user if an address was requested. + */ + address_shipping?: IAddress; + /** + * The billing address provided by the accepting user if an address was requested. + */ + address_billing?: IAddress; + /** + * The id of the Request Response. + */ + readonly id?: number; + /** + * The timestamp when the Request Response was created. + */ + readonly created?: string; + /** + * The timestamp when the Request Response was last updated (will be updated when chat messages are received). + */ + readonly updated?: string; + /** + * The timestamp of when the RequestResponse was responded to. + */ + readonly time_responded?: string; + /** + * The timestamp of when the RequestResponse expired or will expire. + */ + readonly time_expiry?: string; + /** + * The timestamp of when a refund request for the RequestResponse was claimed. + */ + readonly time_refund_requested?: string; + /** + * The timestamp of when the RequestResponse was refunded. + */ + readonly time_refunded?: string; + /** + * The label of the user that requested the refund. + */ + readonly user_refund_requested?: ILabelUser; + /** + * The id of the MonetaryAccount the RequestResponse was received on. + */ + readonly monetary_account_id?: number; + /** + * The requested Amount. + */ + readonly amount_inquired?: IAmount; + /** + * The description for the RequestResponse provided by the requesting party. Maximum 9000 characters. + */ + readonly description?: string; + /** + * The LabelMonetaryAccount with the public information of the MonetaryAccount this RequestResponse was received on. + */ + readonly alias?: ILabelMonetaryAccount; + /** + * The LabelMonetaryAccount with the public information of the MonetaryAccount that is requesting money with this RequestResponse. + */ + readonly counterparty_alias?: ILabelMonetaryAccount; + /** + * The Attachments attached to the RequestResponse. + */ + readonly attachment?: Array; + /** + * The minimum age the user accepting the RequestResponse must have. + */ + readonly minimum_age?: number; + /** + * Whether or not an address must be provided on accept. + */ + readonly require_address?: string; + /** + * The Geolocation where the RequestResponse was created. + */ + readonly geolocation?: IGeolocation; + /** + * The type of the RequestInquiry. Can be DIRECT_DEBIT, DIRECT_DEBIT_B2B, IDEAL, SOFORT or INTERNAL. + */ + readonly type?: string; + /** + * The subtype of the RequestInquiry. Can be ONCE or RECURRING for DIRECT_DEBIT RequestInquiries and NONE for all other. + */ + readonly sub_type?: string; + /** + * The URL which the user is sent to after accepting or rejecting the Request. + */ + readonly redirect_url?: string; + /** + * Whether or not chat messages are allowed. + */ + readonly allow_chat?: boolean; + /** + * The credit scheme id provided by the counterparty for DIRECT_DEBIT inquiries. + */ + readonly credit_scheme_identifier?: string; + /** + * The mandate id provided by the counterparty for DIRECT_DEBIT inquiries. + */ + readonly mandate_identifier?: string; + /** + * The whitelist id for this action or null. + */ + readonly eligible_whitelist_id?: number; + /** + * The reference to the object used for split the bill. Can be RequestInquiry or RequestInquiryBatch + */ + readonly request_reference_split_the_bill?: Array; } export interface IRequestReferenceSplitTheBillAnchorObject { - /** - * - */ - readonly BillingInvoice?: IInvoice; - /** - * - */ - readonly DraftPayment?: IDraftPayment; - /** - * - */ - readonly MasterCardAction?: IMasterCardAction; - /** - * - */ - readonly Payment?: IPayment; - /** - * - */ - readonly PaymentBatch?: IPaymentBatch; - /** - * - */ - readonly RequestResponse?: IRequestResponse; - /** - * - */ - readonly ScheduleInstance?: IScheduleInstance; - /** - * - */ - readonly TabResultResponse?: ITabResultResponse; - /** - * - */ - readonly WhitelistResult?: IWhitelistResult; - /** - * - */ - readonly TransferwisePayment?: ITransferwiseTransfer; + /** + * + */ + readonly BillingInvoice?: IInvoice; + /** + * + */ + readonly DraftPayment?: IDraftPayment; + /** + * + */ + readonly MasterCardAction?: IMasterCardAction; + /** + * + */ + readonly Payment?: IPayment; + /** + * + */ + readonly PaymentBatch?: IPaymentBatch; + /** + * + */ + readonly RequestResponse?: IRequestResponse; + /** + * + */ + readonly ScheduleInstance?: IScheduleInstance; + /** + * + */ + readonly TabResultResponse?: ITabResultResponse; + /** + * + */ + readonly WhitelistResult?: IWhitelistResult; + /** + * + */ + readonly TransferwisePayment?: ITransferwiseTransfer; } export interface IRequestInquiryUpdate { - /** - * The id of the payment request. - */ - readonly id?: number; - /** - * The timestamp of the payment request's creation. - */ - readonly created?: string; - /** - * The timestamp of the payment request's last update. - */ - readonly updated?: string; - /** - * The timestamp of when the payment request was responded to. - */ - readonly time_responded?: string; - /** - * The timestamp of when the payment request expired. - */ - readonly time_expiry?: string; - /** - * The id of the monetary account the request response applies to. - */ - readonly monetary_account_id?: number; - /** - * The requested amount. - */ - readonly amount_inquired?: IAmount; - /** - * The responded amount. - */ - readonly amount_responded?: IAmount; - /** - * The label that's displayed to the counterparty with the mutation. Includes user. - */ - readonly user_alias_created?: ILabelUser; - /** - * The label that's displayed to the counterparty with the mutation. Includes user. - */ - readonly user_alias_revoked?: ILabelUser; - /** - * The LabelMonetaryAccount with the public information of the MonetaryAccount the money was requested from. - */ - readonly counterparty_alias?: ILabelMonetaryAccount; - /** - * The description of the inquiry. - */ - readonly description?: string; - /** - * The client's custom reference that was attached to the request and the mutation. - */ - readonly merchant_reference?: string; - /** - * The attachments attached to the payment. - */ - readonly attachment?: Array; - /** - * The status of the request. - */ - readonly status?: string; - /** - * The id of the batch if the request was part of a batch. - */ - readonly batch_id?: number; - /** - * The id of the scheduled job if the request was scheduled. - */ - readonly scheduled_id?: number; - /** - * The minimum age the user accepting the RequestInquiry must have. - */ - readonly minimum_age?: number; - /** - * Whether or not an address must be provided on accept. - */ - readonly require_address?: string; - /** - * The shipping address provided by the accepting user if an address was requested. - */ - readonly address_shipping?: IAddress; - /** - * The billing address provided by the accepting user if an address was requested. - */ - readonly address_billing?: IAddress; - /** - * The geolocation where the payment was done. - */ - readonly geolocation?: IGeolocation; - /** - * The reference to the object used for split the bill. Can be Payment, PaymentBatch, ScheduleInstance, RequestResponse and MasterCardAction - */ - readonly reference_split_the_bill?: IRequestReferenceSplitTheBillAnchorObject; + /** + * The id of the payment request. + */ + readonly id?: number; + /** + * The timestamp of the payment request's creation. + */ + readonly created?: string; + /** + * The timestamp of the payment request's last update. + */ + readonly updated?: string; + /** + * The timestamp of when the payment request was responded to. + */ + readonly time_responded?: string; + /** + * The timestamp of when the payment request expired. + */ + readonly time_expiry?: string; + /** + * The id of the monetary account the request response applies to. + */ + readonly monetary_account_id?: number; + /** + * The requested amount. + */ + readonly amount_inquired?: IAmount; + /** + * The responded amount. + */ + readonly amount_responded?: IAmount; + /** + * The label that's displayed to the counterparty with the mutation. Includes user. + */ + readonly user_alias_created?: ILabelUser; + /** + * The label that's displayed to the counterparty with the mutation. Includes user. + */ + readonly user_alias_revoked?: ILabelUser; + /** + * The LabelMonetaryAccount with the public information of the MonetaryAccount the money was requested from. + */ + readonly counterparty_alias?: ILabelMonetaryAccount; + /** + * The description of the inquiry. + */ + readonly description?: string; + /** + * The client's custom reference that was attached to the request and the mutation. + */ + readonly merchant_reference?: string; + /** + * The attachments attached to the payment. + */ + readonly attachment?: Array; + /** + * The status of the request. + */ + readonly status?: string; + /** + * The id of the batch if the request was part of a batch. + */ + readonly batch_id?: number; + /** + * The id of the scheduled job if the request was scheduled. + */ + readonly scheduled_id?: number; + /** + * The minimum age the user accepting the RequestInquiry must have. + */ + readonly minimum_age?: number; + /** + * Whether or not an address must be provided on accept. + */ + readonly require_address?: string; + /** + * The shipping address provided by the accepting user if an address was requested. + */ + readonly address_shipping?: IAddress; + /** + * The billing address provided by the accepting user if an address was requested. + */ + readonly address_billing?: IAddress; + /** + * The geolocation where the payment was done. + */ + readonly geolocation?: IGeolocation; + /** + * The reference to the object used for split the bill. Can be Payment, PaymentBatch, ScheduleInstance, RequestResponse and MasterCardAction + */ + readonly reference_split_the_bill?: IRequestReferenceSplitTheBillAnchorObject; } export interface IRequestInquiryReference { - /** - * The type of request inquiry. Can be RequestInquiry or RequestInquiryBatch. - */ - readonly type?: string; - /** - * The id of the request inquiry (batch). - */ - readonly id?: number; + /** + * The type of request inquiry. Can be RequestInquiry or RequestInquiryBatch. + */ + readonly type?: string; + /** + * The id of the request inquiry (batch). + */ + readonly id?: number; } export interface IRequestInquiryRead { - /** - * The id of the created RequestInquiry. - */ - readonly id?: number; - /** - * The timestamp of the payment request's creation. - */ - readonly created?: string; - /** - * The timestamp of the payment request's last update. - */ - readonly updated?: string; - /** - * The timestamp of when the payment request was responded to. - */ - readonly time_responded?: string; - /** - * The timestamp of when the payment request expired. - */ - readonly time_expiry?: string; - /** - * The id of the monetary account the request response applies to. - */ - readonly monetary_account_id?: number; - /** - * The requested amount. - */ - readonly amount_inquired?: IAmount; - /** - * The responded amount. - */ - readonly amount_responded?: IAmount; - /** - * The label that's displayed to the counterparty with the mutation. Includes user. - */ - readonly user_alias_created?: ILabelUser; - /** - * The label that's displayed to the counterparty with the mutation. Includes user. - */ - readonly user_alias_revoked?: ILabelUser; - /** - * The LabelMonetaryAccount with the public information of the MonetaryAccount the money was requested from. - */ - readonly counterparty_alias?: ILabelMonetaryAccount; - /** - * The description of the inquiry. - */ - readonly description?: string; - /** - * The client's custom reference that was attached to the request and the mutation. - */ - readonly merchant_reference?: string; - /** - * The attachments attached to the payment. - */ - readonly attachment?: Array; - /** - * The status of the request. - */ - readonly status?: string; - /** - * The id of the batch if the request was part of a batch. - */ - readonly batch_id?: number; - /** - * The id of the scheduled job if the request was scheduled. - */ - readonly scheduled_id?: number; - /** - * The minimum age the user accepting the RequestInquiry must have. - */ - readonly minimum_age?: number; - /** - * Whether or not an address must be provided on accept. - */ - readonly require_address?: string; - /** - * The url that points to the bunq.me request. - */ - readonly bunqme_share_url?: string; - /** - * The URL which the user is sent to after accepting or rejecting the Request. - */ - readonly redirect_url?: string; - /** - * The shipping address provided by the accepting user if an address was requested. - */ - readonly address_shipping?: IAddress; - /** - * The billing address provided by the accepting user if an address was requested. - */ - readonly address_billing?: IAddress; - /** - * The geolocation where the payment was done. - */ - readonly geolocation?: IGeolocation; - /** - * Whether or not chat messages are allowed. - */ - readonly allow_chat?: boolean; - /** - * The reference to the object used for split the bill. Can be Payment, PaymentBatch, ScheduleInstance, RequestResponse and MasterCardAction - */ - readonly reference_split_the_bill?: IRequestReferenceSplitTheBillAnchorObject; + /** + * The id of the created RequestInquiry. + */ + readonly id?: number; + /** + * The timestamp of the payment request's creation. + */ + readonly created?: string; + /** + * The timestamp of the payment request's last update. + */ + readonly updated?: string; + /** + * The timestamp of when the payment request was responded to. + */ + readonly time_responded?: string; + /** + * The timestamp of when the payment request expired. + */ + readonly time_expiry?: string; + /** + * The id of the monetary account the request response applies to. + */ + readonly monetary_account_id?: number; + /** + * The requested amount. + */ + readonly amount_inquired?: IAmount; + /** + * The responded amount. + */ + readonly amount_responded?: IAmount; + /** + * The label that's displayed to the counterparty with the mutation. Includes user. + */ + readonly user_alias_created?: ILabelUser; + /** + * The label that's displayed to the counterparty with the mutation. Includes user. + */ + readonly user_alias_revoked?: ILabelUser; + /** + * The LabelMonetaryAccount with the public information of the MonetaryAccount the money was requested from. + */ + readonly counterparty_alias?: ILabelMonetaryAccount; + /** + * The description of the inquiry. + */ + readonly description?: string; + /** + * The client's custom reference that was attached to the request and the mutation. + */ + readonly merchant_reference?: string; + /** + * The attachments attached to the payment. + */ + readonly attachment?: Array; + /** + * The status of the request. + */ + readonly status?: string; + /** + * The id of the batch if the request was part of a batch. + */ + readonly batch_id?: number; + /** + * The id of the scheduled job if the request was scheduled. + */ + readonly scheduled_id?: number; + /** + * The minimum age the user accepting the RequestInquiry must have. + */ + readonly minimum_age?: number; + /** + * Whether or not an address must be provided on accept. + */ + readonly require_address?: string; + /** + * The url that points to the bunq.me request. + */ + readonly bunqme_share_url?: string; + /** + * The URL which the user is sent to after accepting or rejecting the Request. + */ + readonly redirect_url?: string; + /** + * The shipping address provided by the accepting user if an address was requested. + */ + readonly address_shipping?: IAddress; + /** + * The billing address provided by the accepting user if an address was requested. + */ + readonly address_billing?: IAddress; + /** + * The geolocation where the payment was done. + */ + readonly geolocation?: IGeolocation; + /** + * Whether or not chat messages are allowed. + */ + readonly allow_chat?: boolean; + /** + * The reference to the object used for split the bill. Can be Payment, PaymentBatch, ScheduleInstance, RequestResponse and MasterCardAction + */ + readonly reference_split_the_bill?: IRequestReferenceSplitTheBillAnchorObject; } export interface IRequestInquiryListing { - /** - * The id of the created RequestInquiry. - */ - readonly id?: number; - /** - * The timestamp of the payment request's creation. - */ - readonly created?: string; - /** - * The timestamp of the payment request's last update. - */ - readonly updated?: string; - /** - * The timestamp of when the payment request was responded to. - */ - readonly time_responded?: string; - /** - * The timestamp of when the payment request expired. - */ - readonly time_expiry?: string; - /** - * The id of the monetary account the request response applies to. - */ - readonly monetary_account_id?: number; - /** - * The requested amount. - */ - readonly amount_inquired?: IAmount; - /** - * The responded amount. - */ - readonly amount_responded?: IAmount; - /** - * The label that's displayed to the counterparty with the mutation. Includes user. - */ - readonly user_alias_created?: ILabelUser; - /** - * The label that's displayed to the counterparty with the mutation. Includes user. - */ - readonly user_alias_revoked?: ILabelUser; - /** - * The LabelMonetaryAccount with the public information of the MonetaryAccount the money was requested from. - */ - readonly counterparty_alias?: ILabelMonetaryAccount; - /** - * The description of the inquiry. - */ - readonly description?: string; - /** - * The client's custom reference that was attached to the request and the mutation. - */ - readonly merchant_reference?: string; - /** - * The attachments attached to the payment. - */ - readonly attachment?: Array; - /** - * The status of the request. - */ - readonly status?: string; - /** - * The id of the batch if the request was part of a batch. - */ - readonly batch_id?: number; - /** - * The id of the scheduled job if the request was scheduled. - */ - readonly scheduled_id?: number; - /** - * The minimum age the user accepting the RequestInquiry must have. - */ - readonly minimum_age?: number; - /** - * Whether or not an address must be provided on accept. - */ - readonly require_address?: string; - /** - * The url that points to the bunq.me request. - */ - readonly bunqme_share_url?: string; - /** - * The URL which the user is sent to after accepting or rejecting the Request. - */ - readonly redirect_url?: string; - /** - * The shipping address provided by the accepting user if an address was requested. - */ - readonly address_shipping?: IAddress; - /** - * The billing address provided by the accepting user if an address was requested. - */ - readonly address_billing?: IAddress; - /** - * The geolocation where the payment was done. - */ - readonly geolocation?: IGeolocation; - /** - * Whether or not chat messages are allowed. - */ - readonly allow_chat?: boolean; - /** - * The reference to the object used for split the bill. Can be Payment, PaymentBatch, ScheduleInstance, RequestResponse and MasterCardAction - */ - readonly reference_split_the_bill?: IRequestReferenceSplitTheBillAnchorObject; + /** + * The id of the created RequestInquiry. + */ + readonly id?: number; + /** + * The timestamp of the payment request's creation. + */ + readonly created?: string; + /** + * The timestamp of the payment request's last update. + */ + readonly updated?: string; + /** + * The timestamp of when the payment request was responded to. + */ + readonly time_responded?: string; + /** + * The timestamp of when the payment request expired. + */ + readonly time_expiry?: string; + /** + * The id of the monetary account the request response applies to. + */ + readonly monetary_account_id?: number; + /** + * The requested amount. + */ + readonly amount_inquired?: IAmount; + /** + * The responded amount. + */ + readonly amount_responded?: IAmount; + /** + * The label that's displayed to the counterparty with the mutation. Includes user. + */ + readonly user_alias_created?: ILabelUser; + /** + * The label that's displayed to the counterparty with the mutation. Includes user. + */ + readonly user_alias_revoked?: ILabelUser; + /** + * The LabelMonetaryAccount with the public information of the MonetaryAccount the money was requested from. + */ + readonly counterparty_alias?: ILabelMonetaryAccount; + /** + * The description of the inquiry. + */ + readonly description?: string; + /** + * The client's custom reference that was attached to the request and the mutation. + */ + readonly merchant_reference?: string; + /** + * The attachments attached to the payment. + */ + readonly attachment?: Array; + /** + * The status of the request. + */ + readonly status?: string; + /** + * The id of the batch if the request was part of a batch. + */ + readonly batch_id?: number; + /** + * The id of the scheduled job if the request was scheduled. + */ + readonly scheduled_id?: number; + /** + * The minimum age the user accepting the RequestInquiry must have. + */ + readonly minimum_age?: number; + /** + * Whether or not an address must be provided on accept. + */ + readonly require_address?: string; + /** + * The url that points to the bunq.me request. + */ + readonly bunqme_share_url?: string; + /** + * The URL which the user is sent to after accepting or rejecting the Request. + */ + readonly redirect_url?: string; + /** + * The shipping address provided by the accepting user if an address was requested. + */ + readonly address_shipping?: IAddress; + /** + * The billing address provided by the accepting user if an address was requested. + */ + readonly address_billing?: IAddress; + /** + * The geolocation where the payment was done. + */ + readonly geolocation?: IGeolocation; + /** + * Whether or not chat messages are allowed. + */ + readonly allow_chat?: boolean; + /** + * The reference to the object used for split the bill. Can be Payment, PaymentBatch, ScheduleInstance, RequestResponse and MasterCardAction + */ + readonly reference_split_the_bill?: IRequestReferenceSplitTheBillAnchorObject; } export interface IRequestInquiryCreate { - /** - * The id of the created RequestInquiry. - */ - readonly id?: number; + /** + * The id of the created RequestInquiry. + */ + readonly id?: number; } export interface IRequestInquiryBatchUpdate { - /** - * The id of the created item - */ - readonly Id?: BunqId; + /** + * The id of the created item + */ + readonly Id?: BunqId; } export interface IRequestInquiryBatchRead { - /** - * The list of requests that were made. - */ - readonly request_inquiries?: Array; - /** - * The total amount originally inquired for this batch. - */ - readonly total_amount_inquired?: IAmount; - /** - * The reference to the object used for split the bill. Can be Payment, PaymentBatch, ScheduleInstance, RequestResponse and MasterCardAction - */ - readonly reference_split_the_bill?: IRequestReferenceSplitTheBillAnchorObject; + /** + * The list of requests that were made. + */ + readonly request_inquiries?: Array; + /** + * The total amount originally inquired for this batch. + */ + readonly total_amount_inquired?: IAmount; + /** + * The reference to the object used for split the bill. Can be Payment, PaymentBatch, ScheduleInstance, RequestResponse and MasterCardAction + */ + readonly reference_split_the_bill?: IRequestReferenceSplitTheBillAnchorObject; } export interface IRequestInquiryBatchListing { - /** - * The list of requests that were made. - */ - readonly request_inquiries?: Array; - /** - * The total amount originally inquired for this batch. - */ - readonly total_amount_inquired?: IAmount; - /** - * The reference to the object used for split the bill. Can be Payment, PaymentBatch, ScheduleInstance, RequestResponse and MasterCardAction - */ - readonly reference_split_the_bill?: IRequestReferenceSplitTheBillAnchorObject; + /** + * The list of requests that were made. + */ + readonly request_inquiries?: Array; + /** + * The total amount originally inquired for this batch. + */ + readonly total_amount_inquired?: IAmount; + /** + * The reference to the object used for split the bill. Can be Payment, PaymentBatch, ScheduleInstance, RequestResponse and MasterCardAction + */ + readonly reference_split_the_bill?: IRequestReferenceSplitTheBillAnchorObject; } export interface IRequestInquiryBatchCreate { - /** - * The id of the created item - */ - readonly Id?: BunqId; + /** + * The id of the created item + */ + readonly Id?: BunqId; } export interface IRequestInquiryBatch { - /** - * The list of requests that were made. - */ - request_inquiries?: Array; - /** - * The status of the request. - */ - status?: string; - /** - * The total amount originally inquired for this batch. - */ - total_amount_inquired?: IAmount; - /** - * The ID of the associated event if the request batch was made using 'split the bill'. - */ - event_id?: number; - /** - * The reference to the object used for split the bill. Can be Payment, PaymentBatch, ScheduleInstance, RequestResponse and MasterCardAction - */ - readonly reference_split_the_bill?: IRequestReferenceSplitTheBillAnchorObject; + /** + * The list of requests that were made. + */ + request_inquiries?: Array; + /** + * The status of the request. + */ + status?: string; + /** + * The total amount originally inquired for this batch. + */ + total_amount_inquired?: IAmount; + /** + * The ID of the associated event if the request batch was made using 'split the bill'. + */ + event_id?: number; + /** + * The reference to the object used for split the bill. Can be Payment, PaymentBatch, ScheduleInstance, RequestResponse and MasterCardAction + */ + readonly reference_split_the_bill?: IRequestReferenceSplitTheBillAnchorObject; } export interface IRequestInquiry { - /** - * The requested amount. - */ - amount_inquired?: IAmount; - /** - * The LabelMonetaryAccount with the public information of the MonetaryAccount the money was requested from. - */ - counterparty_alias?: ILabelMonetaryAccount; - /** - * The description of the inquiry. - */ - description?: string; - /** - * The attachments attached to the payment. - */ - attachment?: Array; - /** - * The client's custom reference that was attached to the request and the mutation. - */ - merchant_reference?: string; - /** - * The status of the request. - */ - status?: string; - /** - * The minimum age the user accepting the RequestInquiry must have. - */ - minimum_age?: number; - /** - * Whether or not an address must be provided on accept. - */ - require_address?: string; - /** - * [DEPRECATED] Whether or not the accepting user can give an extra tip on top of the requested Amount. Defaults to false. - */ - want_tip?: boolean; - /** - * [DEPRECATED] Whether or not the accepting user can choose to accept with a lower amount than requested. Defaults to false. - */ - allow_amount_lower?: boolean; - /** - * [DEPRECATED] Whether or not the accepting user can choose to accept with a higher amount than requested. Defaults to false. - */ - allow_amount_higher?: boolean; - /** - * Whether or not sending a bunq.me request is allowed. - */ - allow_bunqme: boolean; - /** - * The URL which the user is sent to after accepting or rejecting the Request. - */ - redirect_url?: string; - /** - * The ID of the associated event if the request was made using 'split the bill'. - */ - event_id?: number; - /** - * The id of the created RequestInquiry. - */ - readonly id?: number; - /** - * The timestamp of the payment request's creation. - */ - readonly created?: string; - /** - * The timestamp of the payment request's last update. - */ - readonly updated?: string; - /** - * The timestamp of when the payment request was responded to. - */ - readonly time_responded?: string; - /** - * The timestamp of when the payment request expired. - */ - readonly time_expiry?: string; - /** - * The id of the monetary account the request response applies to. - */ - readonly monetary_account_id?: number; - /** - * The responded amount. - */ - readonly amount_responded?: IAmount; - /** - * The label that's displayed to the counterparty with the mutation. Includes user. - */ - readonly user_alias_created?: ILabelUser; - /** - * The label that's displayed to the counterparty with the mutation. Includes user. - */ - readonly user_alias_revoked?: ILabelUser; - /** - * The id of the batch if the request was part of a batch. - */ - readonly batch_id?: number; - /** - * The id of the scheduled job if the request was scheduled. - */ - readonly scheduled_id?: number; - /** - * The url that points to the bunq.me request. - */ - readonly bunqme_share_url?: string; - /** - * The shipping address provided by the accepting user if an address was requested. - */ - readonly address_shipping?: IAddress; - /** - * The billing address provided by the accepting user if an address was requested. - */ - readonly address_billing?: IAddress; - /** - * The geolocation where the payment was done. - */ - readonly geolocation?: IGeolocation; - /** - * Whether or not chat messages are allowed. - */ - readonly allow_chat?: boolean; - /** - * The reference to the object used for split the bill. Can be Payment, PaymentBatch, ScheduleInstance, RequestResponse and MasterCardAction - */ - readonly reference_split_the_bill?: IRequestReferenceSplitTheBillAnchorObject; + /** + * The requested amount. + */ + amount_inquired?: IAmount; + /** + * The LabelMonetaryAccount with the public information of the MonetaryAccount the money was requested from. + */ + counterparty_alias?: ILabelMonetaryAccount; + /** + * The description of the inquiry. + */ + description?: string; + /** + * The attachments attached to the payment. + */ + attachment?: Array; + /** + * The client's custom reference that was attached to the request and the mutation. + */ + merchant_reference?: string; + /** + * The status of the request. + */ + status?: string; + /** + * The minimum age the user accepting the RequestInquiry must have. + */ + minimum_age?: number; + /** + * Whether or not an address must be provided on accept. + */ + require_address?: string; + /** + * [DEPRECATED] Whether or not the accepting user can give an extra tip on top of the requested Amount. Defaults to false. + */ + want_tip?: boolean; + /** + * [DEPRECATED] Whether or not the accepting user can choose to accept with a lower amount than requested. Defaults to false. + */ + allow_amount_lower?: boolean; + /** + * [DEPRECATED] Whether or not the accepting user can choose to accept with a higher amount than requested. Defaults to false. + */ + allow_amount_higher?: boolean; + /** + * Whether or not sending a bunq.me request is allowed. + */ + allow_bunqme: boolean; + /** + * The URL which the user is sent to after accepting or rejecting the Request. + */ + redirect_url?: string; + /** + * The ID of the associated event if the request was made using 'split the bill'. + */ + event_id?: number; + /** + * The id of the created RequestInquiry. + */ + readonly id?: number; + /** + * The timestamp of the payment request's creation. + */ + readonly created?: string; + /** + * The timestamp of the payment request's last update. + */ + readonly updated?: string; + /** + * The timestamp of when the payment request was responded to. + */ + readonly time_responded?: string; + /** + * The timestamp of when the payment request expired. + */ + readonly time_expiry?: string; + /** + * The id of the monetary account the request response applies to. + */ + readonly monetary_account_id?: number; + /** + * The responded amount. + */ + readonly amount_responded?: IAmount; + /** + * The label that's displayed to the counterparty with the mutation. Includes user. + */ + readonly user_alias_created?: ILabelUser; + /** + * The label that's displayed to the counterparty with the mutation. Includes user. + */ + readonly user_alias_revoked?: ILabelUser; + /** + * The id of the batch if the request was part of a batch. + */ + readonly batch_id?: number; + /** + * The id of the scheduled job if the request was scheduled. + */ + readonly scheduled_id?: number; + /** + * The url that points to the bunq.me request. + */ + readonly bunqme_share_url?: string; + /** + * The shipping address provided by the accepting user if an address was requested. + */ + readonly address_shipping?: IAddress; + /** + * The billing address provided by the accepting user if an address was requested. + */ + readonly address_billing?: IAddress; + /** + * The geolocation where the payment was done. + */ + readonly geolocation?: IGeolocation; + /** + * Whether or not chat messages are allowed. + */ + readonly allow_chat?: boolean; + /** + * The reference to the object used for split the bill. Can be Payment, PaymentBatch, ScheduleInstance, RequestResponse and MasterCardAction + */ + readonly reference_split_the_bill?: IRequestReferenceSplitTheBillAnchorObject; } export interface IPointer { - /** - * The alias type, can be: EMAIL|PHONE_NUMBER|IBAN. - */ - type?: string; - /** - * The alias value. - */ - value?: string; - /** - * The alias name. - */ - name?: string; + /** + * The alias type, can be: EMAIL|PHONE_NUMBER|IBAN. + */ + type?: string; + /** + * The alias value. + */ + value?: string; + /** + * The alias name. + */ + name?: string; } export interface IPermittedIpUpdate { - /** - * The id of the created item - */ - readonly Id?: BunqId; + /** + * The id of the created item + */ + readonly Id?: BunqId; } export interface IPermittedIpRead { - /** - * The IP address. - */ - readonly ip?: string; - /** - * 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. - */ - readonly status?: string; + /** + * The IP address. + */ + readonly ip?: string; + /** + * 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. + */ + readonly status?: string; } export interface IPermittedIpListing { - /** - * The IP address. - */ - readonly ip?: string; - /** - * 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. - */ - readonly status?: string; + /** + * The IP address. + */ + readonly ip?: string; + /** + * 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. + */ + readonly status?: string; } export interface IPermittedIpCreate { - /** - * The id of the created item - */ - readonly Id?: BunqId; + /** + * The id of the created item + */ + readonly Id?: BunqId; } export interface IPermittedIp { - /** - * The IP address. - */ - ip: string; - /** - * 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. - */ - status?: string; + /** + * The IP address. + */ + ip: string; + /** + * 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. + */ + status?: string; } export interface IPermittedDevice { - /** - * The description of the device that may use the credential. - */ - readonly description?: string; - /** - * The IP address of the device that may use the credential. - */ - readonly ip?: string; + /** + * The description of the device that may use the credential. + */ + readonly description?: string; + /** + * The IP address of the device that may use the credential. + */ + readonly ip?: string; } export interface IPaymentServiceProviderCredentialRead { - /** - * The id of the credential. - */ - readonly id?: number; - /** - * The timestamp of the credential object's creation. - */ - readonly created?: string; - /** - * The timestamp of the credential object's last update. - */ - readonly updated?: string; - /** - * The status of the credential. - */ - readonly status?: string; - /** - * When the status is PENDING_FIRST_USE: when the credential expires. - */ - readonly expiry_time?: string; - /** - * When the status is PENDING_FIRST_USE: the value of the token. - */ - readonly token_value?: string; - /** - * When the status is ACTIVE: the details of the device that may use the credential. - */ - readonly permitted_device?: IPermittedDevice; + /** + * The id of the credential. + */ + readonly id?: number; + /** + * The timestamp of the credential object's creation. + */ + readonly created?: string; + /** + * The timestamp of the credential object's last update. + */ + readonly updated?: string; + /** + * The status of the credential. + */ + readonly status?: string; + /** + * When the status is PENDING_FIRST_USE: when the credential expires. + */ + readonly expiry_time?: string; + /** + * When the status is PENDING_FIRST_USE: the value of the token. + */ + readonly token_value?: string; + /** + * When the status is ACTIVE: the details of the device that may use the credential. + */ + readonly permitted_device?: IPermittedDevice; } export interface IPaymentServiceProviderCredentialCreate { - /** - * The id of the created item - */ - readonly Id?: BunqId; + /** + * The id of the created item + */ + readonly Id?: BunqId; } export interface IPaymentServiceProviderCredential { - /** - * Payment Services Directive 2 compatible QSEAL certificate - */ - client_payment_service_provider_certificate: string; - /** - * Intermediate and root certificate belonging to the provided certificate. - */ - client_payment_service_provider_certificate_chain: string; - /** - * 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. - */ - client_public_key_signature: string; + /** + * Payment Services Directive 2 compatible QSEAL certificate + */ + client_payment_service_provider_certificate: string; + /** + * Intermediate and root certificate belonging to the provided certificate. + */ + client_payment_service_provider_certificate_chain: string; + /** + * 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. + */ + client_public_key_signature: string; } export interface IPaymentRead { - /** - * The id of the created Payment. - */ - readonly id?: number; - /** - * The timestamp when the Payment was done. - */ - readonly created?: string; - /** - * The timestamp when the Payment was last updated (will be updated when chat messages are received). - */ - readonly updated?: string; - /** - * The id of the MonetaryAccount the Payment was made to or from (depending on whether this is an incoming or outgoing Payment). - */ - readonly monetary_account_id?: number; - /** - * 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). - */ - readonly amount?: IAmount; - /** - * The LabelMonetaryAccount containing the public information of 'this' (party) side of the Payment. - */ - readonly alias?: ILabelMonetaryAccount; - /** - * The LabelMonetaryAccount containing the public information of the other (counterparty) side of the Payment. - */ - readonly counterparty_alias?: ILabelMonetaryAccount; - /** - * The description for the Payment. Maximum 140 characters for Payments to external IBANs, 9000 characters for Payments to only other bunq MonetaryAccounts. - */ - readonly description?: string; - /** - * The type of Payment, can be BUNQ, EBA_SCT, EBA_SDD, IDEAL, SWIFT or FIS (card). - */ - readonly type?: string; - /** - * The sub-type of the Payment, can be PAYMENT, WITHDRAWAL, REVERSAL, REQUEST, BILLING, SCT, SDD or NLO. - */ - readonly sub_type?: string; - /** - * The status of the bunq.to payment. - */ - readonly bunqto_status?: string; - /** - * The sub status of the bunq.to payment. - */ - readonly bunqto_sub_status?: string; - /** - * The status of the bunq.to payment. - */ - readonly bunqto_share_url?: string; - /** - * When bunq.to payment is about to expire. - */ - readonly bunqto_expiry?: string; - /** - * The timestamp of when the bunq.to payment was responded to. - */ - readonly bunqto_time_responded?: string; - /** - * The Attachments attached to the Payment. - */ - readonly attachment?: Array; - /** - * Optional data included with the Payment specific to the merchant. - */ - readonly merchant_reference?: string; - /** - * The id of the PaymentBatch if this Payment was part of one. - */ - readonly batch_id?: number; - /** - * The id of the JobScheduled if the Payment was scheduled. - */ - readonly scheduled_id?: number; - /** - * A shipping Address provided with the Payment, currently unused. - */ - readonly address_shipping?: IAddress; - /** - * A billing Address provided with the Payment, currently unused. - */ - readonly address_billing?: IAddress; - /** - * The Geolocation where the Payment was done from. - */ - readonly geolocation?: IGeolocation; - /** - * Whether or not chat messages are allowed. - */ - readonly allow_chat?: boolean; - /** - * The reference to the object used for split the bill. Can be RequestInquiry or RequestInquiryBatch - */ - readonly request_reference_split_the_bill?: Array; - /** - * The new balance of the monetary account after the mutation. - */ - readonly balance_after_mutation?: IAmount; + /** + * The id of the created Payment. + */ + readonly id?: number; + /** + * The timestamp when the Payment was done. + */ + readonly created?: string; + /** + * The timestamp when the Payment was last updated (will be updated when chat messages are received). + */ + readonly updated?: string; + /** + * The id of the MonetaryAccount the Payment was made to or from (depending on whether this is an incoming or outgoing Payment). + */ + readonly monetary_account_id?: number; + /** + * 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). + */ + readonly amount?: IAmount; + /** + * The LabelMonetaryAccount containing the public information of 'this' (party) side of the Payment. + */ + readonly alias?: ILabelMonetaryAccount; + /** + * The LabelMonetaryAccount containing the public information of the other (counterparty) side of the Payment. + */ + readonly counterparty_alias?: ILabelMonetaryAccount; + /** + * The description for the Payment. Maximum 140 characters for Payments to external IBANs, 9000 characters for Payments to only other bunq MonetaryAccounts. + */ + readonly description?: string; + /** + * The type of Payment, can be BUNQ, EBA_SCT, EBA_SDD, IDEAL, SWIFT or FIS (card). + */ + readonly type?: string; + /** + * The sub-type of the Payment, can be PAYMENT, WITHDRAWAL, REVERSAL, REQUEST, BILLING, SCT, SDD or NLO. + */ + readonly sub_type?: string; + /** + * The status of the bunq.to payment. + */ + readonly bunqto_status?: string; + /** + * The sub status of the bunq.to payment. + */ + readonly bunqto_sub_status?: string; + /** + * The status of the bunq.to payment. + */ + readonly bunqto_share_url?: string; + /** + * When bunq.to payment is about to expire. + */ + readonly bunqto_expiry?: string; + /** + * The timestamp of when the bunq.to payment was responded to. + */ + readonly bunqto_time_responded?: string; + /** + * The Attachments attached to the Payment. + */ + readonly attachment?: Array; + /** + * Optional data included with the Payment specific to the merchant. + */ + readonly merchant_reference?: string; + /** + * The id of the PaymentBatch if this Payment was part of one. + */ + readonly batch_id?: number; + /** + * The id of the JobScheduled if the Payment was scheduled. + */ + readonly scheduled_id?: number; + /** + * A shipping Address provided with the Payment, currently unused. + */ + readonly address_shipping?: IAddress; + /** + * A billing Address provided with the Payment, currently unused. + */ + readonly address_billing?: IAddress; + /** + * The Geolocation where the Payment was done from. + */ + readonly geolocation?: IGeolocation; + /** + * Whether or not chat messages are allowed. + */ + readonly allow_chat?: boolean; + /** + * The reference to the object used for split the bill. Can be RequestInquiry or RequestInquiryBatch + */ + readonly request_reference_split_the_bill?: Array; + /** + * The new balance of the monetary account after the mutation. + */ + readonly balance_after_mutation?: IAmount; } export interface IPaymentListing { - /** - * The id of the created Payment. - */ - readonly id?: number; - /** - * The timestamp when the Payment was done. - */ - readonly created?: string; - /** - * The timestamp when the Payment was last updated (will be updated when chat messages are received). - */ - readonly updated?: string; - /** - * The id of the MonetaryAccount the Payment was made to or from (depending on whether this is an incoming or outgoing Payment). - */ - readonly monetary_account_id?: number; - /** - * 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). - */ - readonly amount?: IAmount; - /** - * The LabelMonetaryAccount containing the public information of 'this' (party) side of the Payment. - */ - readonly alias?: ILabelMonetaryAccount; - /** - * The LabelMonetaryAccount containing the public information of the other (counterparty) side of the Payment. - */ - readonly counterparty_alias?: ILabelMonetaryAccount; - /** - * The description for the Payment. Maximum 140 characters for Payments to external IBANs, 9000 characters for Payments to only other bunq MonetaryAccounts. - */ - readonly description?: string; - /** - * The type of Payment, can be BUNQ, EBA_SCT, EBA_SDD, IDEAL, SWIFT or FIS (card). - */ - readonly type?: string; - /** - * The sub-type of the Payment, can be PAYMENT, WITHDRAWAL, REVERSAL, REQUEST, BILLING, SCT, SDD or NLO. - */ - readonly sub_type?: string; - /** - * The status of the bunq.to payment. - */ - readonly bunqto_status?: string; - /** - * The sub status of the bunq.to payment. - */ - readonly bunqto_sub_status?: string; - /** - * The status of the bunq.to payment. - */ - readonly bunqto_share_url?: string; - /** - * When bunq.to payment is about to expire. - */ - readonly bunqto_expiry?: string; - /** - * The timestamp of when the bunq.to payment was responded to. - */ - readonly bunqto_time_responded?: string; - /** - * The Attachments attached to the Payment. - */ - readonly attachment?: Array; - /** - * Optional data included with the Payment specific to the merchant. - */ - readonly merchant_reference?: string; - /** - * The id of the PaymentBatch if this Payment was part of one. - */ - readonly batch_id?: number; - /** - * The id of the JobScheduled if the Payment was scheduled. - */ - readonly scheduled_id?: number; - /** - * A shipping Address provided with the Payment, currently unused. - */ - readonly address_shipping?: IAddress; - /** - * A billing Address provided with the Payment, currently unused. - */ - readonly address_billing?: IAddress; - /** - * The Geolocation where the Payment was done from. - */ - readonly geolocation?: IGeolocation; - /** - * Whether or not chat messages are allowed. - */ - readonly allow_chat?: boolean; - /** - * The reference to the object used for split the bill. Can be RequestInquiry or RequestInquiryBatch - */ - readonly request_reference_split_the_bill?: Array; - /** - * The new balance of the monetary account after the mutation. - */ - readonly balance_after_mutation?: IAmount; + /** + * The id of the created Payment. + */ + readonly id?: number; + /** + * The timestamp when the Payment was done. + */ + readonly created?: string; + /** + * The timestamp when the Payment was last updated (will be updated when chat messages are received). + */ + readonly updated?: string; + /** + * The id of the MonetaryAccount the Payment was made to or from (depending on whether this is an incoming or outgoing Payment). + */ + readonly monetary_account_id?: number; + /** + * 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). + */ + readonly amount?: IAmount; + /** + * The LabelMonetaryAccount containing the public information of 'this' (party) side of the Payment. + */ + readonly alias?: ILabelMonetaryAccount; + /** + * The LabelMonetaryAccount containing the public information of the other (counterparty) side of the Payment. + */ + readonly counterparty_alias?: ILabelMonetaryAccount; + /** + * The description for the Payment. Maximum 140 characters for Payments to external IBANs, 9000 characters for Payments to only other bunq MonetaryAccounts. + */ + readonly description?: string; + /** + * The type of Payment, can be BUNQ, EBA_SCT, EBA_SDD, IDEAL, SWIFT or FIS (card). + */ + readonly type?: string; + /** + * The sub-type of the Payment, can be PAYMENT, WITHDRAWAL, REVERSAL, REQUEST, BILLING, SCT, SDD or NLO. + */ + readonly sub_type?: string; + /** + * The status of the bunq.to payment. + */ + readonly bunqto_status?: string; + /** + * The sub status of the bunq.to payment. + */ + readonly bunqto_sub_status?: string; + /** + * The status of the bunq.to payment. + */ + readonly bunqto_share_url?: string; + /** + * When bunq.to payment is about to expire. + */ + readonly bunqto_expiry?: string; + /** + * The timestamp of when the bunq.to payment was responded to. + */ + readonly bunqto_time_responded?: string; + /** + * The Attachments attached to the Payment. + */ + readonly attachment?: Array; + /** + * Optional data included with the Payment specific to the merchant. + */ + readonly merchant_reference?: string; + /** + * The id of the PaymentBatch if this Payment was part of one. + */ + readonly batch_id?: number; + /** + * The id of the JobScheduled if the Payment was scheduled. + */ + readonly scheduled_id?: number; + /** + * A shipping Address provided with the Payment, currently unused. + */ + readonly address_shipping?: IAddress; + /** + * A billing Address provided with the Payment, currently unused. + */ + readonly address_billing?: IAddress; + /** + * The Geolocation where the Payment was done from. + */ + readonly geolocation?: IGeolocation; + /** + * Whether or not chat messages are allowed. + */ + readonly allow_chat?: boolean; + /** + * The reference to the object used for split the bill. Can be RequestInquiry or RequestInquiryBatch + */ + readonly request_reference_split_the_bill?: Array; + /** + * The new balance of the monetary account after the mutation. + */ + readonly balance_after_mutation?: IAmount; } export interface IPaymentCreate { - /** - * The id of the created Payment. - */ - readonly id?: number; + /** + * The id of the created Payment. + */ + readonly id?: number; } export interface IPaymentBatchUpdate { - /** - * The id of the created item - */ - readonly Id?: BunqId; + /** + * The id of the created item + */ + readonly Id?: BunqId; } export interface IPaymentBatchRead { - /** - * The list of mutations that were made. - */ - readonly payments?: Array; + /** + * The list of mutations that were made. + */ + readonly payments?: Array; } export interface IPaymentBatchListing { - /** - * The list of mutations that were made. - */ - readonly payments?: Array; + /** + * The list of mutations that were made. + */ + readonly payments?: Array; } export interface IPaymentBatchCreate { - /** - * The id of the created item - */ - readonly Id?: BunqId; + /** + * The id of the created item + */ + readonly Id?: BunqId; } export interface IPaymentBatch { - /** - * The list of mutations that were made. - */ - payments?: Array; + /** + * The list of mutations that were made. + */ + payments?: Array; } export interface IPayment { - /** - * 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). - */ - amount?: IAmount; - /** - * The LabelMonetaryAccount containing the public information of the other (counterparty) side of the Payment. - */ - counterparty_alias?: ILabelMonetaryAccount; - /** - * The description for the Payment. Maximum 140 characters for Payments to external IBANs, 9000 characters for Payments to only other bunq MonetaryAccounts. - */ - description?: string; - /** - * The Attachments attached to the Payment. - */ - attachment?: Array; - /** - * Optional data included with the Payment specific to the merchant. - */ - merchant_reference?: string; - /** - * Whether or not sending a bunq.to payment is allowed. - */ - allow_bunqto?: boolean; - /** - * The id of the created Payment. - */ - readonly id?: number; - /** - * The timestamp when the Payment was done. - */ - readonly created?: string; - /** - * The timestamp when the Payment was last updated (will be updated when chat messages are received). - */ - readonly updated?: string; - /** - * The id of the MonetaryAccount the Payment was made to or from (depending on whether this is an incoming or outgoing Payment). - */ - readonly monetary_account_id?: number; - /** - * The LabelMonetaryAccount containing the public information of 'this' (party) side of the Payment. - */ - readonly alias?: ILabelMonetaryAccount; - /** - * The type of Payment, can be BUNQ, EBA_SCT, EBA_SDD, IDEAL, SWIFT or FIS (card). - */ - readonly type?: string; - /** - * The sub-type of the Payment, can be PAYMENT, WITHDRAWAL, REVERSAL, REQUEST, BILLING, SCT, SDD or NLO. - */ - readonly sub_type?: string; - /** - * The status of the bunq.to payment. - */ - readonly bunqto_status?: string; - /** - * The sub status of the bunq.to payment. - */ - readonly bunqto_sub_status?: string; - /** - * The status of the bunq.to payment. - */ - readonly bunqto_share_url?: string; - /** - * When bunq.to payment is about to expire. - */ - readonly bunqto_expiry?: string; - /** - * The timestamp of when the bunq.to payment was responded to. - */ - readonly bunqto_time_responded?: string; - /** - * The id of the PaymentBatch if this Payment was part of one. - */ - readonly batch_id?: number; - /** - * The id of the JobScheduled if the Payment was scheduled. - */ - readonly scheduled_id?: number; - /** - * A shipping Address provided with the Payment, currently unused. - */ - readonly address_shipping?: IAddress; - /** - * A billing Address provided with the Payment, currently unused. - */ - readonly address_billing?: IAddress; - /** - * The Geolocation where the Payment was done from. - */ - readonly geolocation?: IGeolocation; - /** - * Whether or not chat messages are allowed. - */ - readonly allow_chat?: boolean; - /** - * The reference to the object used for split the bill. Can be RequestInquiry or RequestInquiryBatch - */ - readonly request_reference_split_the_bill?: Array; - /** - * The new balance of the monetary account after the mutation. - */ - readonly balance_after_mutation?: IAmount; + /** + * 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). + */ + amount?: IAmount; + /** + * The LabelMonetaryAccount containing the public information of the other (counterparty) side of the Payment. + */ + counterparty_alias?: ILabelMonetaryAccount; + /** + * The description for the Payment. Maximum 140 characters for Payments to external IBANs, 9000 characters for Payments to only other bunq MonetaryAccounts. + */ + description?: string; + /** + * The Attachments attached to the Payment. + */ + attachment?: Array; + /** + * Optional data included with the Payment specific to the merchant. + */ + merchant_reference?: string; + /** + * Whether or not sending a bunq.to payment is allowed. + */ + allow_bunqto?: boolean; + /** + * The id of the created Payment. + */ + readonly id?: number; + /** + * The timestamp when the Payment was done. + */ + readonly created?: string; + /** + * The timestamp when the Payment was last updated (will be updated when chat messages are received). + */ + readonly updated?: string; + /** + * The id of the MonetaryAccount the Payment was made to or from (depending on whether this is an incoming or outgoing Payment). + */ + readonly monetary_account_id?: number; + /** + * The LabelMonetaryAccount containing the public information of 'this' (party) side of the Payment. + */ + readonly alias?: ILabelMonetaryAccount; + /** + * The type of Payment, can be BUNQ, EBA_SCT, EBA_SDD, IDEAL, SWIFT or FIS (card). + */ + readonly type?: string; + /** + * The sub-type of the Payment, can be PAYMENT, WITHDRAWAL, REVERSAL, REQUEST, BILLING, SCT, SDD or NLO. + */ + readonly sub_type?: string; + /** + * The status of the bunq.to payment. + */ + readonly bunqto_status?: string; + /** + * The sub status of the bunq.to payment. + */ + readonly bunqto_sub_status?: string; + /** + * The status of the bunq.to payment. + */ + readonly bunqto_share_url?: string; + /** + * When bunq.to payment is about to expire. + */ + readonly bunqto_expiry?: string; + /** + * The timestamp of when the bunq.to payment was responded to. + */ + readonly bunqto_time_responded?: string; + /** + * The id of the PaymentBatch if this Payment was part of one. + */ + readonly batch_id?: number; + /** + * The id of the JobScheduled if the Payment was scheduled. + */ + readonly scheduled_id?: number; + /** + * A shipping Address provided with the Payment, currently unused. + */ + readonly address_shipping?: IAddress; + /** + * A billing Address provided with the Payment, currently unused. + */ + readonly address_billing?: IAddress; + /** + * The Geolocation where the Payment was done from. + */ + readonly geolocation?: IGeolocation; + /** + * Whether or not chat messages are allowed. + */ + readonly allow_chat?: boolean; + /** + * The reference to the object used for split the bill. Can be RequestInquiry or RequestInquiryBatch + */ + readonly request_reference_split_the_bill?: Array; + /** + * The new balance of the monetary account after the mutation. + */ + readonly balance_after_mutation?: IAmount; } export interface IOauthClientUpdate { - /** - * The id of the created item - */ - readonly Id?: BunqId; + /** + * The id of the created item + */ + readonly Id?: BunqId; } export interface IOauthClientRead { - /** - * Id of the client. - */ - readonly id?: number; - /** - * The status of the pack group, can be ACTIVE, CANCELLED or CANCELLED_PENDING. - */ - readonly status?: string; - /** - * The Client ID associated with this Oauth Client - */ - readonly client_id?: string; - /** - * Secret associated with this Oauth Client - */ - readonly secret?: string; - /** - * The callback URLs which are bound to this Oauth Client - */ - readonly callback_url?: Array; + /** + * Id of the client. + */ + readonly id?: number; + /** + * The status of the pack group, can be ACTIVE, CANCELLED or CANCELLED_PENDING. + */ + readonly status?: string; + /** + * The Client ID associated with this Oauth Client + */ + readonly client_id?: string; + /** + * Secret associated with this Oauth Client + */ + readonly secret?: string; + /** + * The callback URLs which are bound to this Oauth Client + */ + readonly callback_url?: Array; } export interface IOauthClientListing { - /** - * Id of the client. - */ - readonly id?: number; - /** - * The status of the pack group, can be ACTIVE, CANCELLED or CANCELLED_PENDING. - */ - readonly status?: string; - /** - * The Client ID associated with this Oauth Client - */ - readonly client_id?: string; - /** - * Secret associated with this Oauth Client - */ - readonly secret?: string; - /** - * The callback URLs which are bound to this Oauth Client - */ - readonly callback_url?: Array; + /** + * Id of the client. + */ + readonly id?: number; + /** + * The status of the pack group, can be ACTIVE, CANCELLED or CANCELLED_PENDING. + */ + readonly status?: string; + /** + * The Client ID associated with this Oauth Client + */ + readonly client_id?: string; + /** + * Secret associated with this Oauth Client + */ + readonly secret?: string; + /** + * The callback URLs which are bound to this Oauth Client + */ + readonly callback_url?: Array; } export interface IOauthClientCreate { - /** - * The id of the created item - */ - readonly Id?: BunqId; + /** + * The id of the created item + */ + readonly Id?: BunqId; } export interface IOauthClient { - /** - * The status of the Oauth Client, can be ACTIVE or CANCELLED. - */ - status?: string; + /** + * The status of the Oauth Client, can be ACTIVE or CANCELLED. + */ + status?: string; } export interface IOauthCallbackUrlUpdate { - /** - * The id of the created item - */ - readonly Id?: BunqId; + /** + * The id of the created item + */ + readonly Id?: BunqId; } export interface IOauthCallbackUrlRead { - /** - * The URL for this callback. - */ - readonly url?: string; + /** + * The URL for this callback. + */ + readonly url?: string; } export interface IOauthCallbackUrlListing { - /** - * The URL for this callback. - */ - readonly url?: string; + /** + * The URL for this callback. + */ + readonly url?: string; } export interface IOauthCallbackUrlDelete {} export interface IOauthCallbackUrlCreate { - /** - * The id of the created item - */ - readonly Id?: BunqId; + /** + * The id of the created item + */ + readonly Id?: BunqId; } export interface IOauthCallbackUrl { - /** - * The URL for this callback. - */ - url: string; + /** + * The URL for this callback. + */ + url: string; } export interface INotificationFilterUrlUserListing { - /** - * The types of notifications that will result in a url notification for this user. - */ - readonly notification_filters?: Array; + /** + * The types of notifications that will result in a url notification for this user. + */ + readonly notification_filters?: Array; } export interface INotificationFilterUrlUserCreate { - /** - * The id of the created item - */ - readonly Id?: BunqId; + /** + * The id of the created item + */ + readonly Id?: BunqId; } export interface INotificationFilterUrlUser { - /** - * The types of notifications that will result in a url notification for this user. - */ - notification_filters?: Array; + /** + * The types of notifications that will result in a url notification for this user. + */ + notification_filters?: Array; } export interface INotificationFilterUrlMonetaryAccountListing { - /** - * The types of notifications that will result in a url notification for this monetary account. - */ - readonly notification_filters?: Array; + /** + * The types of notifications that will result in a url notification for this monetary account. + */ + readonly notification_filters?: Array; } export interface INotificationFilterUrlMonetaryAccountCreate { - /** - * The id of the created item - */ - readonly Id?: BunqId; + /** + * The id of the created item + */ + readonly Id?: BunqId; } export interface INotificationFilterUrlMonetaryAccount { - /** - * The types of notifications that will result in a url notification for this monetary account. - */ - notification_filters?: Array; + /** + * The types of notifications that will result in a url notification for this monetary account. + */ + notification_filters?: Array; } export interface INotificationFilterUrl { - /** - * The notification category that will match this notification filter. - */ - category?: string; - /** - * The URL to which the callback should be made. - */ - notification_target?: string; - /** - * The id of the NotificationFilterUrl. - */ - readonly id?: number; - /** - * The timestamp of the NotificationFilterUrl's creation. - */ - readonly created?: string; - /** - * The timestamp of the NotificationFilterUrl's last update. - */ - readonly updated?: string; + /** + * The notification category that will match this notification filter. + */ + category?: string; + /** + * The URL to which the callback should be made. + */ + notification_target?: string; + /** + * The id of the NotificationFilterUrl. + */ + readonly id?: number; + /** + * The timestamp of the NotificationFilterUrl's creation. + */ + readonly created?: string; + /** + * The timestamp of the NotificationFilterUrl's last update. + */ + readonly updated?: string; } export interface INotificationFilterPushUserListing { - /** - * The types of notifications that will result in a push notification for this user. - */ - readonly notification_filters?: Array; + /** + * The types of notifications that will result in a push notification for this user. + */ + readonly notification_filters?: Array; } export interface INotificationFilterPushUserCreate { - /** - * The id of the created item - */ - readonly Id?: BunqId; + /** + * The id of the created item + */ + readonly Id?: BunqId; } export interface INotificationFilterPushUser { - /** - * The types of notifications that will result in a push notification for this user. - */ - notification_filters?: Array; + /** + * The types of notifications that will result in a push notification for this user. + */ + notification_filters?: Array; } export interface INotificationFilterPush { - /** - * The notification category that will match this notification filter. - */ - category?: string; + /** + * The notification category that will match this notification filter. + */ + category?: string; } export interface INotificationFilter { - /** - * The delivery method via which notifications that match this notification filter will be delivered. Possible choices are PUSH for delivery via push notification and URL for delivery via URL callback. - */ - notification_delivery_method: NotificationDeliveryMethodType; - /** - * The target of notifications that match this notification filter. For URL notification filters this is the URL to which the callback will be made. For PUSH notifications filters this should always be null. - */ - notification_target: string; - /** - * The notification category that will match this notification filter. Possible choices are BILLING, CARD_TRANSACTION_FAILED, CARD_TRANSACTION_SUCCESSFUL, CHAT, DRAFT_PAYMENT, IDEAL, SOFORT, MONETARY_ACCOUNT_PROFILE, MUTATION, PAYMENT, PROMOTION, REQUEST, SCHEDULE_RESULT, SCHEDULE_STATUS, SHARE, SUPPORT, TAB_RESULT, USER_APPROVAL. - */ - category: NotificationCategoryType; + /** + * The delivery method via which notifications that match this notification filter will be delivered. Possible choices are PUSH for delivery via push notification and URL for delivery via URL callback. + */ + notification_delivery_method: NotificationDeliveryMethodType; + /** + * The target of notifications that match this notification filter. For URL notification filters this is the URL to which the callback will be made. For PUSH notifications filters this should always be null. + */ + notification_target: string; + /** + * The notification category that will match this notification filter. Possible choices are BILLING, CARD_TRANSACTION_FAILED, CARD_TRANSACTION_SUCCESSFUL, CHAT, DRAFT_PAYMENT, IDEAL, SOFORT, MONETARY_ACCOUNT_PROFILE, MUTATION, PAYMENT, PROMOTION, REQUEST, SCHEDULE_RESULT, SCHEDULE_STATUS, SHARE, SUPPORT, TAB_RESULT, USER_APPROVAL. + */ + category: NotificationCategoryType; } export interface INoteTextWhitelistResultUpdate { - /** - * The id of the created item - */ - readonly Id?: BunqId; + /** + * The id of the created item + */ + readonly Id?: BunqId; } export interface INoteTextWhitelistResultRead { - /** - * The id of the note. - */ - readonly id?: number; - /** - * The timestamp of the note's creation. - */ - readonly created?: string; - /** - * The timestamp of the note's last update. - */ - readonly updated?: string; - /** - * The label of the user who created this note. - */ - readonly label_user_creator?: ILabelUser; - /** - * The content of the note. - */ - readonly content?: string; + /** + * The id of the note. + */ + readonly id?: number; + /** + * The timestamp of the note's creation. + */ + readonly created?: string; + /** + * The timestamp of the note's last update. + */ + readonly updated?: string; + /** + * The label of the user who created this note. + */ + readonly label_user_creator?: ILabelUser; + /** + * The content of the note. + */ + readonly content?: string; } export interface INoteTextWhitelistResultListing { - /** - * The id of the note. - */ - readonly id?: number; - /** - * The timestamp of the note's creation. - */ - readonly created?: string; - /** - * The timestamp of the note's last update. - */ - readonly updated?: string; - /** - * The label of the user who created this note. - */ - readonly label_user_creator?: ILabelUser; - /** - * The content of the note. - */ - readonly content?: string; + /** + * The id of the note. + */ + readonly id?: number; + /** + * The timestamp of the note's creation. + */ + readonly created?: string; + /** + * The timestamp of the note's last update. + */ + readonly updated?: string; + /** + * The label of the user who created this note. + */ + readonly label_user_creator?: ILabelUser; + /** + * The content of the note. + */ + readonly content?: string; } export interface INoteTextWhitelistResultDelete {} export interface INoteTextWhitelistResultCreate { - /** - * The id of the created item - */ - readonly Id?: BunqId; + /** + * The id of the created item + */ + readonly Id?: BunqId; } export interface INoteTextWhitelistResult { - /** - * The content of the note. - */ - content?: string; + /** + * The content of the note. + */ + content?: string; } export interface INoteTextSofortMerchantTransactionUpdate { - /** - * The id of the created item - */ - readonly Id?: BunqId; + /** + * The id of the created item + */ + readonly Id?: BunqId; } export interface INoteTextSofortMerchantTransactionRead { - /** - * The id of the note. - */ - readonly id?: number; - /** - * The timestamp of the note's creation. - */ - readonly created?: string; - /** - * The timestamp of the note's last update. - */ - readonly updated?: string; - /** - * The label of the user who created this note. - */ - readonly label_user_creator?: ILabelUser; - /** - * The content of the note. - */ - readonly content?: string; + /** + * The id of the note. + */ + readonly id?: number; + /** + * The timestamp of the note's creation. + */ + readonly created?: string; + /** + * The timestamp of the note's last update. + */ + readonly updated?: string; + /** + * The label of the user who created this note. + */ + readonly label_user_creator?: ILabelUser; + /** + * The content of the note. + */ + readonly content?: string; } export interface INoteTextSofortMerchantTransactionListing { - /** - * The id of the note. - */ - readonly id?: number; - /** - * The timestamp of the note's creation. - */ - readonly created?: string; - /** - * The timestamp of the note's last update. - */ - readonly updated?: string; - /** - * The label of the user who created this note. - */ - readonly label_user_creator?: ILabelUser; - /** - * The content of the note. - */ - readonly content?: string; + /** + * The id of the note. + */ + readonly id?: number; + /** + * The timestamp of the note's creation. + */ + readonly created?: string; + /** + * The timestamp of the note's last update. + */ + readonly updated?: string; + /** + * The label of the user who created this note. + */ + readonly label_user_creator?: ILabelUser; + /** + * The content of the note. + */ + readonly content?: string; } export interface INoteTextSofortMerchantTransactionDelete {} export interface INoteTextSofortMerchantTransactionCreate { - /** - * The id of the created item - */ - readonly Id?: BunqId; + /** + * The id of the created item + */ + readonly Id?: BunqId; } export interface INoteTextSofortMerchantTransaction { - /** - * The content of the note. - */ - content?: string; + /** + * The content of the note. + */ + content?: string; } export interface INoteTextSchedulePaymentUpdate { - /** - * The id of the created item - */ - readonly Id?: BunqId; + /** + * The id of the created item + */ + readonly Id?: BunqId; } export interface INoteTextSchedulePaymentRead { - /** - * The id of the note. - */ - readonly id?: number; - /** - * The timestamp of the note's creation. - */ - readonly created?: string; - /** - * The timestamp of the note's last update. - */ - readonly updated?: string; - /** - * The label of the user who created this note. - */ - readonly label_user_creator?: ILabelUser; - /** - * The content of the note. - */ - readonly content?: string; + /** + * The id of the note. + */ + readonly id?: number; + /** + * The timestamp of the note's creation. + */ + readonly created?: string; + /** + * The timestamp of the note's last update. + */ + readonly updated?: string; + /** + * The label of the user who created this note. + */ + readonly label_user_creator?: ILabelUser; + /** + * The content of the note. + */ + readonly content?: string; } export interface INoteTextSchedulePaymentListing { - /** - * The id of the note. - */ - readonly id?: number; - /** - * The timestamp of the note's creation. - */ - readonly created?: string; - /** - * The timestamp of the note's last update. - */ - readonly updated?: string; - /** - * The label of the user who created this note. - */ - readonly label_user_creator?: ILabelUser; - /** - * The content of the note. - */ - readonly content?: string; + /** + * The id of the note. + */ + readonly id?: number; + /** + * The timestamp of the note's creation. + */ + readonly created?: string; + /** + * The timestamp of the note's last update. + */ + readonly updated?: string; + /** + * The label of the user who created this note. + */ + readonly label_user_creator?: ILabelUser; + /** + * The content of the note. + */ + readonly content?: string; } export interface INoteTextSchedulePaymentDelete {} export interface INoteTextSchedulePaymentCreate { - /** - * The id of the created item - */ - readonly Id?: BunqId; + /** + * The id of the created item + */ + readonly Id?: BunqId; } export interface INoteTextSchedulePaymentBatchUpdate { - /** - * The id of the created item - */ - readonly Id?: BunqId; + /** + * The id of the created item + */ + readonly Id?: BunqId; } export interface INoteTextSchedulePaymentBatchRead { - /** - * The id of the note. - */ - readonly id?: number; - /** - * The timestamp of the note's creation. - */ - readonly created?: string; - /** - * The timestamp of the note's last update. - */ - readonly updated?: string; - /** - * The label of the user who created this note. - */ - readonly label_user_creator?: ILabelUser; - /** - * The content of the note. - */ - readonly content?: string; + /** + * The id of the note. + */ + readonly id?: number; + /** + * The timestamp of the note's creation. + */ + readonly created?: string; + /** + * The timestamp of the note's last update. + */ + readonly updated?: string; + /** + * The label of the user who created this note. + */ + readonly label_user_creator?: ILabelUser; + /** + * The content of the note. + */ + readonly content?: string; } export interface INoteTextSchedulePaymentBatchListing { - /** - * The id of the note. - */ - readonly id?: number; - /** - * The timestamp of the note's creation. - */ - readonly created?: string; - /** - * The timestamp of the note's last update. - */ - readonly updated?: string; - /** - * The label of the user who created this note. - */ - readonly label_user_creator?: ILabelUser; - /** - * The content of the note. - */ - readonly content?: string; + /** + * The id of the note. + */ + readonly id?: number; + /** + * The timestamp of the note's creation. + */ + readonly created?: string; + /** + * The timestamp of the note's last update. + */ + readonly updated?: string; + /** + * The label of the user who created this note. + */ + readonly label_user_creator?: ILabelUser; + /** + * The content of the note. + */ + readonly content?: string; } export interface INoteTextSchedulePaymentBatchDelete {} export interface INoteTextSchedulePaymentBatchCreate { - /** - * The id of the created item - */ - readonly Id?: BunqId; + /** + * The id of the created item + */ + readonly Id?: BunqId; } export interface INoteTextSchedulePaymentBatch { - /** - * The content of the note. - */ - content?: string; + /** + * The content of the note. + */ + content?: string; } export interface INoteTextSchedulePayment { - /** - * The content of the note. - */ - content?: string; + /** + * The content of the note. + */ + content?: string; } export interface INoteTextScheduleInstanceUpdate { - /** - * The id of the created item - */ - readonly Id?: BunqId; + /** + * The id of the created item + */ + readonly Id?: BunqId; } export interface INoteTextScheduleInstanceRead { - /** - * The id of the note. - */ - readonly id?: number; - /** - * The timestamp of the note's creation. - */ - readonly created?: string; - /** - * The timestamp of the note's last update. - */ - readonly updated?: string; - /** - * The label of the user who created this note. - */ - readonly label_user_creator?: ILabelUser; - /** - * The content of the note. - */ - readonly content?: string; + /** + * The id of the note. + */ + readonly id?: number; + /** + * The timestamp of the note's creation. + */ + readonly created?: string; + /** + * The timestamp of the note's last update. + */ + readonly updated?: string; + /** + * The label of the user who created this note. + */ + readonly label_user_creator?: ILabelUser; + /** + * The content of the note. + */ + readonly content?: string; } export interface INoteTextScheduleInstanceListing { - /** - * The id of the note. - */ - readonly id?: number; - /** - * The timestamp of the note's creation. - */ - readonly created?: string; - /** - * The timestamp of the note's last update. - */ - readonly updated?: string; - /** - * The label of the user who created this note. - */ - readonly label_user_creator?: ILabelUser; - /** - * The content of the note. - */ - readonly content?: string; + /** + * The id of the note. + */ + readonly id?: number; + /** + * The timestamp of the note's creation. + */ + readonly created?: string; + /** + * The timestamp of the note's last update. + */ + readonly updated?: string; + /** + * The label of the user who created this note. + */ + readonly label_user_creator?: ILabelUser; + /** + * The content of the note. + */ + readonly content?: string; } export interface INoteTextScheduleInstanceDelete {} export interface INoteTextScheduleInstanceCreate { - /** - * The id of the created item - */ - readonly Id?: BunqId; + /** + * The id of the created item + */ + readonly Id?: BunqId; } export interface INoteTextScheduleInstance { - /** - * The content of the note. - */ - content?: string; + /** + * The content of the note. + */ + content?: string; } export interface INoteTextRequestResponseUpdate { - /** - * The id of the created item - */ - readonly Id?: BunqId; + /** + * The id of the created item + */ + readonly Id?: BunqId; } export interface INoteTextRequestResponseRead { - /** - * The id of the note. - */ - readonly id?: number; - /** - * The timestamp of the note's creation. - */ - readonly created?: string; - /** - * The timestamp of the note's last update. - */ - readonly updated?: string; - /** - * The label of the user who created this note. - */ - readonly label_user_creator?: ILabelUser; - /** - * The content of the note. - */ - readonly content?: string; + /** + * The id of the note. + */ + readonly id?: number; + /** + * The timestamp of the note's creation. + */ + readonly created?: string; + /** + * The timestamp of the note's last update. + */ + readonly updated?: string; + /** + * The label of the user who created this note. + */ + readonly label_user_creator?: ILabelUser; + /** + * The content of the note. + */ + readonly content?: string; } export interface INoteTextRequestResponseListing { - /** - * The id of the note. - */ - readonly id?: number; - /** - * The timestamp of the note's creation. - */ - readonly created?: string; - /** - * The timestamp of the note's last update. - */ - readonly updated?: string; - /** - * The label of the user who created this note. - */ - readonly label_user_creator?: ILabelUser; - /** - * The content of the note. - */ - readonly content?: string; + /** + * The id of the note. + */ + readonly id?: number; + /** + * The timestamp of the note's creation. + */ + readonly created?: string; + /** + * The timestamp of the note's last update. + */ + readonly updated?: string; + /** + * The label of the user who created this note. + */ + readonly label_user_creator?: ILabelUser; + /** + * The content of the note. + */ + readonly content?: string; } export interface INoteTextRequestResponseDelete {} export interface INoteTextRequestResponseCreate { - /** - * The id of the created item - */ - readonly Id?: BunqId; + /** + * The id of the created item + */ + readonly Id?: BunqId; } export interface INoteTextRequestResponse { - /** - * The content of the note. - */ - content?: string; + /** + * The content of the note. + */ + content?: string; } export interface INoteTextRequestInquiryUpdate { - /** - * The id of the created item - */ - readonly Id?: BunqId; + /** + * The id of the created item + */ + readonly Id?: BunqId; } export interface INoteTextRequestInquiryRead { - /** - * The id of the note. - */ - readonly id?: number; - /** - * The timestamp of the note's creation. - */ - readonly created?: string; - /** - * The timestamp of the note's last update. - */ - readonly updated?: string; - /** - * The label of the user who created this note. - */ - readonly label_user_creator?: ILabelUser; - /** - * The content of the note. - */ - readonly content?: string; + /** + * The id of the note. + */ + readonly id?: number; + /** + * The timestamp of the note's creation. + */ + readonly created?: string; + /** + * The timestamp of the note's last update. + */ + readonly updated?: string; + /** + * The label of the user who created this note. + */ + readonly label_user_creator?: ILabelUser; + /** + * The content of the note. + */ + readonly content?: string; } export interface INoteTextRequestInquiryListing { - /** - * The id of the note. - */ - readonly id?: number; - /** - * The timestamp of the note's creation. - */ - readonly created?: string; - /** - * The timestamp of the note's last update. - */ - readonly updated?: string; - /** - * The label of the user who created this note. - */ - readonly label_user_creator?: ILabelUser; - /** - * The content of the note. - */ - readonly content?: string; + /** + * The id of the note. + */ + readonly id?: number; + /** + * The timestamp of the note's creation. + */ + readonly created?: string; + /** + * The timestamp of the note's last update. + */ + readonly updated?: string; + /** + * The label of the user who created this note. + */ + readonly label_user_creator?: ILabelUser; + /** + * The content of the note. + */ + readonly content?: string; } export interface INoteTextRequestInquiryDelete {} export interface INoteTextRequestInquiryCreate { - /** - * The id of the created item - */ - readonly Id?: BunqId; + /** + * The id of the created item + */ + readonly Id?: BunqId; } export interface INoteTextRequestInquiryBatchUpdate { - /** - * The id of the created item - */ - readonly Id?: BunqId; + /** + * The id of the created item + */ + readonly Id?: BunqId; } export interface INoteTextRequestInquiryBatchRead { - /** - * The id of the note. - */ - readonly id?: number; - /** - * The timestamp of the note's creation. - */ - readonly created?: string; - /** - * The timestamp of the note's last update. - */ - readonly updated?: string; - /** - * The label of the user who created this note. - */ - readonly label_user_creator?: ILabelUser; - /** - * The content of the note. - */ - readonly content?: string; + /** + * The id of the note. + */ + readonly id?: number; + /** + * The timestamp of the note's creation. + */ + readonly created?: string; + /** + * The timestamp of the note's last update. + */ + readonly updated?: string; + /** + * The label of the user who created this note. + */ + readonly label_user_creator?: ILabelUser; + /** + * The content of the note. + */ + readonly content?: string; } export interface INoteTextRequestInquiryBatchListing { - /** - * The id of the note. - */ - readonly id?: number; - /** - * The timestamp of the note's creation. - */ - readonly created?: string; - /** - * The timestamp of the note's last update. - */ - readonly updated?: string; - /** - * The label of the user who created this note. - */ - readonly label_user_creator?: ILabelUser; - /** - * The content of the note. - */ - readonly content?: string; + /** + * The id of the note. + */ + readonly id?: number; + /** + * The timestamp of the note's creation. + */ + readonly created?: string; + /** + * The timestamp of the note's last update. + */ + readonly updated?: string; + /** + * The label of the user who created this note. + */ + readonly label_user_creator?: ILabelUser; + /** + * The content of the note. + */ + readonly content?: string; } export interface INoteTextRequestInquiryBatchDelete {} export interface INoteTextRequestInquiryBatchCreate { - /** - * The id of the created item - */ - readonly Id?: BunqId; + /** + * The id of the created item + */ + readonly Id?: BunqId; } export interface INoteTextRequestInquiryBatch { - /** - * The content of the note. - */ - content?: string; + /** + * The content of the note. + */ + content?: string; } export interface INoteTextRequestInquiry { - /** - * The content of the note. - */ - content?: string; + /** + * The content of the note. + */ + content?: string; } export interface INoteTextPaymentUpdate { - /** - * The id of the created item - */ - readonly Id?: BunqId; + /** + * The id of the created item + */ + readonly Id?: BunqId; } export interface INoteTextPaymentRead { - /** - * The id of the note. - */ - readonly id?: number; - /** - * The timestamp of the note's creation. - */ - readonly created?: string; - /** - * The timestamp of the note's last update. - */ - readonly updated?: string; - /** - * The label of the user who created this note. - */ - readonly label_user_creator?: ILabelUser; - /** - * The content of the note. - */ - readonly content?: string; + /** + * The id of the note. + */ + readonly id?: number; + /** + * The timestamp of the note's creation. + */ + readonly created?: string; + /** + * The timestamp of the note's last update. + */ + readonly updated?: string; + /** + * The label of the user who created this note. + */ + readonly label_user_creator?: ILabelUser; + /** + * The content of the note. + */ + readonly content?: string; } export interface INoteTextPaymentListing { - /** - * The id of the note. - */ - readonly id?: number; - /** - * The timestamp of the note's creation. - */ - readonly created?: string; - /** - * The timestamp of the note's last update. - */ - readonly updated?: string; - /** - * The label of the user who created this note. - */ - readonly label_user_creator?: ILabelUser; - /** - * The content of the note. - */ - readonly content?: string; + /** + * The id of the note. + */ + readonly id?: number; + /** + * The timestamp of the note's creation. + */ + readonly created?: string; + /** + * The timestamp of the note's last update. + */ + readonly updated?: string; + /** + * The label of the user who created this note. + */ + readonly label_user_creator?: ILabelUser; + /** + * The content of the note. + */ + readonly content?: string; } export interface INoteTextPaymentDelete {} export interface INoteTextPaymentCreate { - /** - * The id of the created item - */ - readonly Id?: BunqId; + /** + * The id of the created item + */ + readonly Id?: BunqId; } export interface INoteTextPaymentBatchUpdate { - /** - * The id of the created item - */ - readonly Id?: BunqId; + /** + * The id of the created item + */ + readonly Id?: BunqId; } export interface INoteTextPaymentBatchRead { - /** - * The id of the note. - */ - readonly id?: number; - /** - * The timestamp of the note's creation. - */ - readonly created?: string; - /** - * The timestamp of the note's last update. - */ - readonly updated?: string; - /** - * The label of the user who created this note. - */ - readonly label_user_creator?: ILabelUser; - /** - * The content of the note. - */ - readonly content?: string; + /** + * The id of the note. + */ + readonly id?: number; + /** + * The timestamp of the note's creation. + */ + readonly created?: string; + /** + * The timestamp of the note's last update. + */ + readonly updated?: string; + /** + * The label of the user who created this note. + */ + readonly label_user_creator?: ILabelUser; + /** + * The content of the note. + */ + readonly content?: string; } export interface INoteTextPaymentBatchListing { - /** - * The id of the note. - */ - readonly id?: number; - /** - * The timestamp of the note's creation. - */ - readonly created?: string; - /** - * The timestamp of the note's last update. - */ - readonly updated?: string; - /** - * The label of the user who created this note. - */ - readonly label_user_creator?: ILabelUser; - /** - * The content of the note. - */ - readonly content?: string; + /** + * The id of the note. + */ + readonly id?: number; + /** + * The timestamp of the note's creation. + */ + readonly created?: string; + /** + * The timestamp of the note's last update. + */ + readonly updated?: string; + /** + * The label of the user who created this note. + */ + readonly label_user_creator?: ILabelUser; + /** + * The content of the note. + */ + readonly content?: string; } export interface INoteTextPaymentBatchDelete {} export interface INoteTextPaymentBatchCreate { - /** - * The id of the created item - */ - readonly Id?: BunqId; + /** + * The id of the created item + */ + readonly Id?: BunqId; } export interface INoteTextPaymentBatch { - /** - * The content of the note. - */ - content?: string; + /** + * The content of the note. + */ + content?: string; } export interface INoteTextPayment { - /** - * The content of the note. - */ - content?: string; + /** + * The content of the note. + */ + content?: string; } export interface INoteTextMasterCardActionUpdate { - /** - * The id of the created item - */ - readonly Id?: BunqId; + /** + * The id of the created item + */ + readonly Id?: BunqId; } export interface INoteTextMasterCardActionRead { - /** - * The id of the note. - */ - readonly id?: number; - /** - * The timestamp of the note's creation. - */ - readonly created?: string; - /** - * The timestamp of the note's last update. - */ - readonly updated?: string; - /** - * The label of the user who created this note. - */ - readonly label_user_creator?: ILabelUser; - /** - * The content of the note. - */ - readonly content?: string; + /** + * The id of the note. + */ + readonly id?: number; + /** + * The timestamp of the note's creation. + */ + readonly created?: string; + /** + * The timestamp of the note's last update. + */ + readonly updated?: string; + /** + * The label of the user who created this note. + */ + readonly label_user_creator?: ILabelUser; + /** + * The content of the note. + */ + readonly content?: string; } export interface INoteTextMasterCardActionListing { - /** - * The id of the note. - */ - readonly id?: number; - /** - * The timestamp of the note's creation. - */ - readonly created?: string; - /** - * The timestamp of the note's last update. - */ - readonly updated?: string; - /** - * The label of the user who created this note. - */ - readonly label_user_creator?: ILabelUser; - /** - * The content of the note. - */ - readonly content?: string; + /** + * The id of the note. + */ + readonly id?: number; + /** + * The timestamp of the note's creation. + */ + readonly created?: string; + /** + * The timestamp of the note's last update. + */ + readonly updated?: string; + /** + * The label of the user who created this note. + */ + readonly label_user_creator?: ILabelUser; + /** + * The content of the note. + */ + readonly content?: string; } export interface INoteTextMasterCardActionDelete {} export interface INoteTextMasterCardActionCreate { - /** - * The id of the created item - */ - readonly Id?: BunqId; + /** + * The id of the created item + */ + readonly Id?: BunqId; } export interface INoteTextMasterCardAction { - /** - * The content of the note. - */ - content?: string; + /** + * The content of the note. + */ + content?: string; } export interface INoteTextIdealMerchantTransactionUpdate { - /** - * The id of the created item - */ - readonly Id?: BunqId; + /** + * The id of the created item + */ + readonly Id?: BunqId; } export interface INoteTextIdealMerchantTransactionRead { - /** - * The id of the note. - */ - readonly id?: number; - /** - * The timestamp of the note's creation. - */ - readonly created?: string; - /** - * The timestamp of the note's last update. - */ - readonly updated?: string; - /** - * The label of the user who created this note. - */ - readonly label_user_creator?: ILabelUser; - /** - * The content of the note. - */ - readonly content?: string; + /** + * The id of the note. + */ + readonly id?: number; + /** + * The timestamp of the note's creation. + */ + readonly created?: string; + /** + * The timestamp of the note's last update. + */ + readonly updated?: string; + /** + * The label of the user who created this note. + */ + readonly label_user_creator?: ILabelUser; + /** + * The content of the note. + */ + readonly content?: string; } export interface INoteTextIdealMerchantTransactionListing { - /** - * The id of the note. - */ - readonly id?: number; - /** - * The timestamp of the note's creation. - */ - readonly created?: string; - /** - * The timestamp of the note's last update. - */ - readonly updated?: string; - /** - * The label of the user who created this note. - */ - readonly label_user_creator?: ILabelUser; - /** - * The content of the note. - */ - readonly content?: string; + /** + * The id of the note. + */ + readonly id?: number; + /** + * The timestamp of the note's creation. + */ + readonly created?: string; + /** + * The timestamp of the note's last update. + */ + readonly updated?: string; + /** + * The label of the user who created this note. + */ + readonly label_user_creator?: ILabelUser; + /** + * The content of the note. + */ + readonly content?: string; } export interface INoteTextIdealMerchantTransactionDelete {} export interface INoteTextIdealMerchantTransactionCreate { - /** - * The id of the created item - */ - readonly Id?: BunqId; + /** + * The id of the created item + */ + readonly Id?: BunqId; } export interface INoteTextIdealMerchantTransaction { - /** - * The content of the note. - */ - content?: string; + /** + * The content of the note. + */ + content?: string; } export interface INoteTextDraftPaymentUpdate { - /** - * The id of the created item - */ - readonly Id?: BunqId; + /** + * The id of the created item + */ + readonly Id?: BunqId; } export interface INoteTextDraftPaymentRead { - /** - * The id of the note. - */ - readonly id?: number; - /** - * The timestamp of the note's creation. - */ - readonly created?: string; - /** - * The timestamp of the note's last update. - */ - readonly updated?: string; - /** - * The label of the user who created this note. - */ - readonly label_user_creator?: ILabelUser; - /** - * The content of the note. - */ - readonly content?: string; + /** + * The id of the note. + */ + readonly id?: number; + /** + * The timestamp of the note's creation. + */ + readonly created?: string; + /** + * The timestamp of the note's last update. + */ + readonly updated?: string; + /** + * The label of the user who created this note. + */ + readonly label_user_creator?: ILabelUser; + /** + * The content of the note. + */ + readonly content?: string; } export interface INoteTextDraftPaymentListing { - /** - * The id of the note. - */ - readonly id?: number; - /** - * The timestamp of the note's creation. - */ - readonly created?: string; - /** - * The timestamp of the note's last update. - */ - readonly updated?: string; - /** - * The label of the user who created this note. - */ - readonly label_user_creator?: ILabelUser; - /** - * The content of the note. - */ - readonly content?: string; + /** + * The id of the note. + */ + readonly id?: number; + /** + * The timestamp of the note's creation. + */ + readonly created?: string; + /** + * The timestamp of the note's last update. + */ + readonly updated?: string; + /** + * The label of the user who created this note. + */ + readonly label_user_creator?: ILabelUser; + /** + * The content of the note. + */ + readonly content?: string; } export interface INoteTextDraftPaymentDelete {} export interface INoteTextDraftPaymentCreate { - /** - * The id of the created item - */ - readonly Id?: BunqId; + /** + * The id of the created item + */ + readonly Id?: BunqId; } export interface INoteTextDraftPayment { - /** - * The content of the note. - */ - content?: string; + /** + * The content of the note. + */ + content?: string; } export interface INoteTextBunqMeFundraiserResultUpdate { - /** - * The id of the created item - */ - readonly Id?: BunqId; + /** + * The id of the created item + */ + readonly Id?: BunqId; } export interface INoteTextBunqMeFundraiserResultRead { - /** - * The id of the note. - */ - readonly id?: number; - /** - * The timestamp of the note's creation. - */ - readonly created?: string; - /** - * The timestamp of the note's last update. - */ - readonly updated?: string; - /** - * The label of the user who created this note. - */ - readonly label_user_creator?: ILabelUser; - /** - * The content of the note. - */ - readonly content?: string; + /** + * The id of the note. + */ + readonly id?: number; + /** + * The timestamp of the note's creation. + */ + readonly created?: string; + /** + * The timestamp of the note's last update. + */ + readonly updated?: string; + /** + * The label of the user who created this note. + */ + readonly label_user_creator?: ILabelUser; + /** + * The content of the note. + */ + readonly content?: string; } export interface INoteTextBunqMeFundraiserResultListing { - /** - * The id of the note. - */ - readonly id?: number; - /** - * The timestamp of the note's creation. - */ - readonly created?: string; - /** - * The timestamp of the note's last update. - */ - readonly updated?: string; - /** - * The label of the user who created this note. - */ - readonly label_user_creator?: ILabelUser; - /** - * The content of the note. - */ - readonly content?: string; + /** + * The id of the note. + */ + readonly id?: number; + /** + * The timestamp of the note's creation. + */ + readonly created?: string; + /** + * The timestamp of the note's last update. + */ + readonly updated?: string; + /** + * The label of the user who created this note. + */ + readonly label_user_creator?: ILabelUser; + /** + * The content of the note. + */ + readonly content?: string; } export interface INoteTextBunqMeFundraiserResultDelete {} export interface INoteTextBunqMeFundraiserResultCreate { - /** - * The id of the created item - */ - readonly Id?: BunqId; + /** + * The id of the created item + */ + readonly Id?: BunqId; } export interface INoteTextBunqMeFundraiserResult { - /** - * The content of the note. - */ - content?: string; + /** + * The content of the note. + */ + content?: string; } export interface INoteTextBankSwitchServiceNetherlandsIncomingPaymentUpdate { - /** - * The id of the created item - */ - readonly Id?: BunqId; + /** + * The id of the created item + */ + readonly Id?: BunqId; } export interface INoteTextBankSwitchServiceNetherlandsIncomingPaymentRead { - /** - * The id of the note. - */ - readonly id?: number; - /** - * The timestamp of the note's creation. - */ - readonly created?: string; - /** - * The timestamp of the note's last update. - */ - readonly updated?: string; - /** - * The label of the user who created this note. - */ - readonly label_user_creator?: ILabelUser; - /** - * The content of the note. - */ - readonly content?: string; + /** + * The id of the note. + */ + readonly id?: number; + /** + * The timestamp of the note's creation. + */ + readonly created?: string; + /** + * The timestamp of the note's last update. + */ + readonly updated?: string; + /** + * The label of the user who created this note. + */ + readonly label_user_creator?: ILabelUser; + /** + * The content of the note. + */ + readonly content?: string; } export interface INoteTextBankSwitchServiceNetherlandsIncomingPaymentListing { - /** - * The id of the note. - */ - readonly id?: number; - /** - * The timestamp of the note's creation. - */ - readonly created?: string; - /** - * The timestamp of the note's last update. - */ - readonly updated?: string; - /** - * The label of the user who created this note. - */ - readonly label_user_creator?: ILabelUser; - /** - * The content of the note. - */ - readonly content?: string; + /** + * The id of the note. + */ + readonly id?: number; + /** + * The timestamp of the note's creation. + */ + readonly created?: string; + /** + * The timestamp of the note's last update. + */ + readonly updated?: string; + /** + * The label of the user who created this note. + */ + readonly label_user_creator?: ILabelUser; + /** + * The content of the note. + */ + readonly content?: string; } export interface INoteTextBankSwitchServiceNetherlandsIncomingPaymentDelete {} export interface INoteTextBankSwitchServiceNetherlandsIncomingPaymentCreate { - /** - * The id of the created item - */ - readonly Id?: BunqId; + /** + * The id of the created item + */ + readonly Id?: BunqId; } export interface INoteTextBankSwitchServiceNetherlandsIncomingPayment { - /** - * The content of the note. - */ - content?: string; + /** + * The content of the note. + */ + content?: string; } export interface INoteAttachmentWhitelistResultUpdate { - /** - * The id of the created item - */ - readonly Id?: BunqId; + /** + * The id of the created item + */ + readonly Id?: BunqId; } export interface INoteAttachmentWhitelistResultRead { - /** - * The id of the note. - */ - readonly id?: number; - /** - * The timestamp of the note's creation. - */ - readonly created?: string; - /** - * The timestamp of the note's last update. - */ - readonly updated?: string; - /** - * The label of the user who created this note. - */ - readonly label_user_creator?: ILabelUser; - /** - * Optional description of the attachment. - */ - readonly description?: string; - /** - * The attachment attached to the note. - */ - readonly attachment?: Array; + /** + * The id of the note. + */ + readonly id?: number; + /** + * The timestamp of the note's creation. + */ + readonly created?: string; + /** + * The timestamp of the note's last update. + */ + readonly updated?: string; + /** + * The label of the user who created this note. + */ + readonly label_user_creator?: ILabelUser; + /** + * Optional description of the attachment. + */ + readonly description?: string; + /** + * The attachment attached to the note. + */ + readonly attachment?: Array; } export interface INoteAttachmentWhitelistResultListing { - /** - * The id of the note. - */ - readonly id?: number; - /** - * The timestamp of the note's creation. - */ - readonly created?: string; - /** - * The timestamp of the note's last update. - */ - readonly updated?: string; - /** - * The label of the user who created this note. - */ - readonly label_user_creator?: ILabelUser; - /** - * Optional description of the attachment. - */ - readonly description?: string; - /** - * The attachment attached to the note. - */ - readonly attachment?: Array; + /** + * The id of the note. + */ + readonly id?: number; + /** + * The timestamp of the note's creation. + */ + readonly created?: string; + /** + * The timestamp of the note's last update. + */ + readonly updated?: string; + /** + * The label of the user who created this note. + */ + readonly label_user_creator?: ILabelUser; + /** + * Optional description of the attachment. + */ + readonly description?: string; + /** + * The attachment attached to the note. + */ + readonly attachment?: Array; } export interface INoteAttachmentWhitelistResultDelete {} export interface INoteAttachmentWhitelistResultCreate { - /** - * The id of the created item - */ - readonly Id?: BunqId; + /** + * The id of the created item + */ + readonly Id?: BunqId; } export interface INoteAttachmentWhitelistResult { - /** - * Optional description of the attachment. - */ - description?: string; - /** - * The reference to the uploaded file to attach to this note. - */ - attachment_id: number; + /** + * Optional description of the attachment. + */ + description?: string; + /** + * The reference to the uploaded file to attach to this note. + */ + attachment_id: number; } export interface INoteAttachmentSofortMerchantTransactionUpdate { - /** - * The id of the created item - */ - readonly Id?: BunqId; + /** + * The id of the created item + */ + readonly Id?: BunqId; } export interface INoteAttachmentSofortMerchantTransactionRead { - /** - * The id of the note. - */ - readonly id?: number; - /** - * The timestamp of the note's creation. - */ - readonly created?: string; - /** - * The timestamp of the note's last update. - */ - readonly updated?: string; - /** - * The label of the user who created this note. - */ - readonly label_user_creator?: ILabelUser; - /** - * Optional description of the attachment. - */ - readonly description?: string; - /** - * The attachment attached to the note. - */ - readonly attachment?: Array; + /** + * The id of the note. + */ + readonly id?: number; + /** + * The timestamp of the note's creation. + */ + readonly created?: string; + /** + * The timestamp of the note's last update. + */ + readonly updated?: string; + /** + * The label of the user who created this note. + */ + readonly label_user_creator?: ILabelUser; + /** + * Optional description of the attachment. + */ + readonly description?: string; + /** + * The attachment attached to the note. + */ + readonly attachment?: Array; } export interface INoteAttachmentSofortMerchantTransactionListing { - /** - * The id of the note. - */ - readonly id?: number; - /** - * The timestamp of the note's creation. - */ - readonly created?: string; - /** - * The timestamp of the note's last update. - */ - readonly updated?: string; - /** - * The label of the user who created this note. - */ - readonly label_user_creator?: ILabelUser; - /** - * Optional description of the attachment. - */ - readonly description?: string; - /** - * The attachment attached to the note. - */ - readonly attachment?: Array; + /** + * The id of the note. + */ + readonly id?: number; + /** + * The timestamp of the note's creation. + */ + readonly created?: string; + /** + * The timestamp of the note's last update. + */ + readonly updated?: string; + /** + * The label of the user who created this note. + */ + readonly label_user_creator?: ILabelUser; + /** + * Optional description of the attachment. + */ + readonly description?: string; + /** + * The attachment attached to the note. + */ + readonly attachment?: Array; } export interface INoteAttachmentSofortMerchantTransactionDelete {} export interface INoteAttachmentSofortMerchantTransactionCreate { - /** - * The id of the created item - */ - readonly Id?: BunqId; + /** + * The id of the created item + */ + readonly Id?: BunqId; } export interface INoteAttachmentSofortMerchantTransaction { - /** - * Optional description of the attachment. - */ - description?: string; - /** - * The reference to the uploaded file to attach to this note. - */ - attachment_id: number; + /** + * Optional description of the attachment. + */ + description?: string; + /** + * The reference to the uploaded file to attach to this note. + */ + attachment_id: number; } export interface INoteAttachmentSchedulePaymentUpdate { - /** - * The id of the created item - */ - readonly Id?: BunqId; + /** + * The id of the created item + */ + readonly Id?: BunqId; } export interface INoteAttachmentSchedulePaymentRead { - /** - * The id of the note. - */ - readonly id?: number; - /** - * The timestamp of the note's creation. - */ - readonly created?: string; - /** - * The timestamp of the note's last update. - */ - readonly updated?: string; - /** - * The label of the user who created this note. - */ - readonly label_user_creator?: ILabelUser; - /** - * Optional description of the attachment. - */ - readonly description?: string; - /** - * The attachment attached to the note. - */ - readonly attachment?: Array; + /** + * The id of the note. + */ + readonly id?: number; + /** + * The timestamp of the note's creation. + */ + readonly created?: string; + /** + * The timestamp of the note's last update. + */ + readonly updated?: string; + /** + * The label of the user who created this note. + */ + readonly label_user_creator?: ILabelUser; + /** + * Optional description of the attachment. + */ + readonly description?: string; + /** + * The attachment attached to the note. + */ + readonly attachment?: Array; } export interface INoteAttachmentSchedulePaymentListing { - /** - * The id of the note. - */ - readonly id?: number; - /** - * The timestamp of the note's creation. - */ - readonly created?: string; - /** - * The timestamp of the note's last update. - */ - readonly updated?: string; - /** - * The label of the user who created this note. - */ - readonly label_user_creator?: ILabelUser; - /** - * Optional description of the attachment. - */ - readonly description?: string; - /** - * The attachment attached to the note. - */ - readonly attachment?: Array; + /** + * The id of the note. + */ + readonly id?: number; + /** + * The timestamp of the note's creation. + */ + readonly created?: string; + /** + * The timestamp of the note's last update. + */ + readonly updated?: string; + /** + * The label of the user who created this note. + */ + readonly label_user_creator?: ILabelUser; + /** + * Optional description of the attachment. + */ + readonly description?: string; + /** + * The attachment attached to the note. + */ + readonly attachment?: Array; } export interface INoteAttachmentSchedulePaymentDelete {} export interface INoteAttachmentSchedulePaymentCreate { - /** - * The id of the created item - */ - readonly Id?: BunqId; + /** + * The id of the created item + */ + readonly Id?: BunqId; } export interface INoteAttachmentSchedulePaymentBatchUpdate { - /** - * The id of the created item - */ - readonly Id?: BunqId; + /** + * The id of the created item + */ + readonly Id?: BunqId; } export interface INoteAttachmentSchedulePaymentBatchRead { - /** - * The id of the note. - */ - readonly id?: number; - /** - * The timestamp of the note's creation. - */ - readonly created?: string; - /** - * The timestamp of the note's last update. - */ - readonly updated?: string; - /** - * The label of the user who created this note. - */ - readonly label_user_creator?: ILabelUser; - /** - * Optional description of the attachment. - */ - readonly description?: string; - /** - * The attachment attached to the note. - */ - readonly attachment?: Array; + /** + * The id of the note. + */ + readonly id?: number; + /** + * The timestamp of the note's creation. + */ + readonly created?: string; + /** + * The timestamp of the note's last update. + */ + readonly updated?: string; + /** + * The label of the user who created this note. + */ + readonly label_user_creator?: ILabelUser; + /** + * Optional description of the attachment. + */ + readonly description?: string; + /** + * The attachment attached to the note. + */ + readonly attachment?: Array; } export interface INoteAttachmentSchedulePaymentBatchListing { - /** - * The id of the note. - */ - readonly id?: number; - /** - * The timestamp of the note's creation. - */ - readonly created?: string; - /** - * The timestamp of the note's last update. - */ - readonly updated?: string; - /** - * The label of the user who created this note. - */ - readonly label_user_creator?: ILabelUser; - /** - * Optional description of the attachment. - */ - readonly description?: string; - /** - * The attachment attached to the note. - */ - readonly attachment?: Array; + /** + * The id of the note. + */ + readonly id?: number; + /** + * The timestamp of the note's creation. + */ + readonly created?: string; + /** + * The timestamp of the note's last update. + */ + readonly updated?: string; + /** + * The label of the user who created this note. + */ + readonly label_user_creator?: ILabelUser; + /** + * Optional description of the attachment. + */ + readonly description?: string; + /** + * The attachment attached to the note. + */ + readonly attachment?: Array; } export interface INoteAttachmentSchedulePaymentBatchDelete {} export interface INoteAttachmentSchedulePaymentBatchCreate { - /** - * The id of the created item - */ - readonly Id?: BunqId; + /** + * The id of the created item + */ + readonly Id?: BunqId; } export interface INoteAttachmentSchedulePaymentBatch { - /** - * Optional description of the attachment. - */ - description?: string; - /** - * The reference to the uploaded file to attach to this note. - */ - attachment_id: number; + /** + * Optional description of the attachment. + */ + description?: string; + /** + * The reference to the uploaded file to attach to this note. + */ + attachment_id: number; } export interface INoteAttachmentSchedulePayment { - /** - * Optional description of the attachment. - */ - description?: string; - /** - * The reference to the uploaded file to attach to this note. - */ - attachment_id: number; + /** + * Optional description of the attachment. + */ + description?: string; + /** + * The reference to the uploaded file to attach to this note. + */ + attachment_id: number; } export interface INoteAttachmentScheduleInstanceUpdate { - /** - * The id of the created item - */ - readonly Id?: BunqId; + /** + * The id of the created item + */ + readonly Id?: BunqId; } export interface INoteAttachmentScheduleInstanceRead { - /** - * The id of the note. - */ - readonly id?: number; - /** - * The timestamp of the note's creation. - */ - readonly created?: string; - /** - * The timestamp of the note's last update. - */ - readonly updated?: string; - /** - * The label of the user who created this note. - */ - readonly label_user_creator?: ILabelUser; - /** - * Optional description of the attachment. - */ - readonly description?: string; - /** - * The attachment attached to the note. - */ - readonly attachment?: Array; + /** + * The id of the note. + */ + readonly id?: number; + /** + * The timestamp of the note's creation. + */ + readonly created?: string; + /** + * The timestamp of the note's last update. + */ + readonly updated?: string; + /** + * The label of the user who created this note. + */ + readonly label_user_creator?: ILabelUser; + /** + * Optional description of the attachment. + */ + readonly description?: string; + /** + * The attachment attached to the note. + */ + readonly attachment?: Array; } export interface INoteAttachmentScheduleInstanceListing { - /** - * The id of the note. - */ - readonly id?: number; - /** - * The timestamp of the note's creation. - */ - readonly created?: string; - /** - * The timestamp of the note's last update. - */ - readonly updated?: string; - /** - * The label of the user who created this note. - */ - readonly label_user_creator?: ILabelUser; - /** - * Optional description of the attachment. - */ - readonly description?: string; - /** - * The attachment attached to the note. - */ - readonly attachment?: Array; + /** + * The id of the note. + */ + readonly id?: number; + /** + * The timestamp of the note's creation. + */ + readonly created?: string; + /** + * The timestamp of the note's last update. + */ + readonly updated?: string; + /** + * The label of the user who created this note. + */ + readonly label_user_creator?: ILabelUser; + /** + * Optional description of the attachment. + */ + readonly description?: string; + /** + * The attachment attached to the note. + */ + readonly attachment?: Array; } export interface INoteAttachmentScheduleInstanceDelete {} export interface INoteAttachmentScheduleInstanceCreate { - /** - * The id of the created item - */ - readonly Id?: BunqId; + /** + * The id of the created item + */ + readonly Id?: BunqId; } export interface INoteAttachmentScheduleInstance { - /** - * Optional description of the attachment. - */ - description?: string; - /** - * The reference to the uploaded file to attach to this note. - */ - attachment_id: number; + /** + * Optional description of the attachment. + */ + description?: string; + /** + * The reference to the uploaded file to attach to this note. + */ + attachment_id: number; } export interface INoteAttachmentRequestResponseUpdate { - /** - * The id of the created item - */ - readonly Id?: BunqId; + /** + * The id of the created item + */ + readonly Id?: BunqId; } export interface INoteAttachmentRequestResponseRead { - /** - * The id of the note. - */ - readonly id?: number; - /** - * The timestamp of the note's creation. - */ - readonly created?: string; - /** - * The timestamp of the note's last update. - */ - readonly updated?: string; - /** - * The label of the user who created this note. - */ - readonly label_user_creator?: ILabelUser; - /** - * Optional description of the attachment. - */ - readonly description?: string; - /** - * The attachment attached to the note. - */ - readonly attachment?: Array; + /** + * The id of the note. + */ + readonly id?: number; + /** + * The timestamp of the note's creation. + */ + readonly created?: string; + /** + * The timestamp of the note's last update. + */ + readonly updated?: string; + /** + * The label of the user who created this note. + */ + readonly label_user_creator?: ILabelUser; + /** + * Optional description of the attachment. + */ + readonly description?: string; + /** + * The attachment attached to the note. + */ + readonly attachment?: Array; } export interface INoteAttachmentRequestResponseListing { - /** - * The id of the note. - */ - readonly id?: number; - /** - * The timestamp of the note's creation. - */ - readonly created?: string; - /** - * The timestamp of the note's last update. - */ - readonly updated?: string; - /** - * The label of the user who created this note. - */ - readonly label_user_creator?: ILabelUser; - /** - * Optional description of the attachment. - */ - readonly description?: string; - /** - * The attachment attached to the note. - */ - readonly attachment?: Array; + /** + * The id of the note. + */ + readonly id?: number; + /** + * The timestamp of the note's creation. + */ + readonly created?: string; + /** + * The timestamp of the note's last update. + */ + readonly updated?: string; + /** + * The label of the user who created this note. + */ + readonly label_user_creator?: ILabelUser; + /** + * Optional description of the attachment. + */ + readonly description?: string; + /** + * The attachment attached to the note. + */ + readonly attachment?: Array; } export interface INoteAttachmentRequestResponseDelete {} export interface INoteAttachmentRequestResponseCreate { - /** - * The id of the created item - */ - readonly Id?: BunqId; + /** + * The id of the created item + */ + readonly Id?: BunqId; } export interface INoteAttachmentRequestResponse { - /** - * Optional description of the attachment. - */ - description?: string; - /** - * The reference to the uploaded file to attach to this note. - */ - attachment_id: number; + /** + * Optional description of the attachment. + */ + description?: string; + /** + * The reference to the uploaded file to attach to this note. + */ + attachment_id: number; } export interface INoteAttachmentRequestInquiryUpdate { - /** - * The id of the created item - */ - readonly Id?: BunqId; + /** + * The id of the created item + */ + readonly Id?: BunqId; } export interface INoteAttachmentRequestInquiryRead { - /** - * The id of the note. - */ - readonly id?: number; - /** - * The timestamp of the note's creation. - */ - readonly created?: string; - /** - * The timestamp of the note's last update. - */ - readonly updated?: string; - /** - * The label of the user who created this note. - */ - readonly label_user_creator?: ILabelUser; - /** - * Optional description of the attachment. - */ - readonly description?: string; - /** - * The attachment attached to the note. - */ - readonly attachment?: Array; + /** + * The id of the note. + */ + readonly id?: number; + /** + * The timestamp of the note's creation. + */ + readonly created?: string; + /** + * The timestamp of the note's last update. + */ + readonly updated?: string; + /** + * The label of the user who created this note. + */ + readonly label_user_creator?: ILabelUser; + /** + * Optional description of the attachment. + */ + readonly description?: string; + /** + * The attachment attached to the note. + */ + readonly attachment?: Array; } export interface INoteAttachmentRequestInquiryListing { - /** - * The id of the note. - */ - readonly id?: number; - /** - * The timestamp of the note's creation. - */ - readonly created?: string; - /** - * The timestamp of the note's last update. - */ - readonly updated?: string; - /** - * The label of the user who created this note. - */ - readonly label_user_creator?: ILabelUser; - /** - * Optional description of the attachment. - */ - readonly description?: string; - /** - * The attachment attached to the note. - */ - readonly attachment?: Array; + /** + * The id of the note. + */ + readonly id?: number; + /** + * The timestamp of the note's creation. + */ + readonly created?: string; + /** + * The timestamp of the note's last update. + */ + readonly updated?: string; + /** + * The label of the user who created this note. + */ + readonly label_user_creator?: ILabelUser; + /** + * Optional description of the attachment. + */ + readonly description?: string; + /** + * The attachment attached to the note. + */ + readonly attachment?: Array; } export interface INoteAttachmentRequestInquiryDelete {} export interface INoteAttachmentRequestInquiryCreate { - /** - * The id of the created item - */ - readonly Id?: BunqId; + /** + * The id of the created item + */ + readonly Id?: BunqId; } export interface INoteAttachmentRequestInquiryBatchUpdate { - /** - * The id of the created item - */ - readonly Id?: BunqId; + /** + * The id of the created item + */ + readonly Id?: BunqId; } export interface INoteAttachmentRequestInquiryBatchRead { - /** - * The id of the note. - */ - readonly id?: number; - /** - * The timestamp of the note's creation. - */ - readonly created?: string; - /** - * The timestamp of the note's last update. - */ - readonly updated?: string; - /** - * The label of the user who created this note. - */ - readonly label_user_creator?: ILabelUser; - /** - * Optional description of the attachment. - */ - readonly description?: string; - /** - * The attachment attached to the note. - */ - readonly attachment?: Array; + /** + * The id of the note. + */ + readonly id?: number; + /** + * The timestamp of the note's creation. + */ + readonly created?: string; + /** + * The timestamp of the note's last update. + */ + readonly updated?: string; + /** + * The label of the user who created this note. + */ + readonly label_user_creator?: ILabelUser; + /** + * Optional description of the attachment. + */ + readonly description?: string; + /** + * The attachment attached to the note. + */ + readonly attachment?: Array; } export interface INoteAttachmentRequestInquiryBatchListing { - /** - * The id of the note. - */ - readonly id?: number; - /** - * The timestamp of the note's creation. - */ - readonly created?: string; - /** - * The timestamp of the note's last update. - */ - readonly updated?: string; - /** - * The label of the user who created this note. - */ - readonly label_user_creator?: ILabelUser; - /** - * Optional description of the attachment. - */ - readonly description?: string; - /** - * The attachment attached to the note. - */ - readonly attachment?: Array; + /** + * The id of the note. + */ + readonly id?: number; + /** + * The timestamp of the note's creation. + */ + readonly created?: string; + /** + * The timestamp of the note's last update. + */ + readonly updated?: string; + /** + * The label of the user who created this note. + */ + readonly label_user_creator?: ILabelUser; + /** + * Optional description of the attachment. + */ + readonly description?: string; + /** + * The attachment attached to the note. + */ + readonly attachment?: Array; } export interface INoteAttachmentRequestInquiryBatchDelete {} export interface INoteAttachmentRequestInquiryBatchCreate { - /** - * The id of the created item - */ - readonly Id?: BunqId; + /** + * The id of the created item + */ + readonly Id?: BunqId; } export interface INoteAttachmentRequestInquiryBatch { - /** - * Optional description of the attachment. - */ - description?: string; - /** - * The reference to the uploaded file to attach to this note. - */ - attachment_id: number; + /** + * Optional description of the attachment. + */ + description?: string; + /** + * The reference to the uploaded file to attach to this note. + */ + attachment_id: number; } export interface INoteAttachmentRequestInquiry { - /** - * Optional description of the attachment. - */ - description?: string; - /** - * The reference to the uploaded file to attach to this note. - */ - attachment_id: number; + /** + * Optional description of the attachment. + */ + description?: string; + /** + * The reference to the uploaded file to attach to this note. + */ + attachment_id: number; } export interface INoteAttachmentPaymentUpdate { - /** - * The id of the created item - */ - readonly Id?: BunqId; + /** + * The id of the created item + */ + readonly Id?: BunqId; } export interface INoteAttachmentPaymentRead { - /** - * The id of the note. - */ - readonly id?: number; - /** - * The timestamp of the note's creation. - */ - readonly created?: string; - /** - * The timestamp of the note's last update. - */ - readonly updated?: string; - /** - * The label of the user who created this note. - */ - readonly label_user_creator?: ILabelUser; - /** - * Optional description of the attachment. - */ - readonly description?: string; - /** - * The attachment attached to the note. - */ - readonly attachment?: Array; + /** + * The id of the note. + */ + readonly id?: number; + /** + * The timestamp of the note's creation. + */ + readonly created?: string; + /** + * The timestamp of the note's last update. + */ + readonly updated?: string; + /** + * The label of the user who created this note. + */ + readonly label_user_creator?: ILabelUser; + /** + * Optional description of the attachment. + */ + readonly description?: string; + /** + * The attachment attached to the note. + */ + readonly attachment?: Array; } export interface INoteAttachmentPaymentListing { - /** - * The id of the note. - */ - readonly id?: number; - /** - * The timestamp of the note's creation. - */ - readonly created?: string; - /** - * The timestamp of the note's last update. - */ - readonly updated?: string; - /** - * The label of the user who created this note. - */ - readonly label_user_creator?: ILabelUser; - /** - * Optional description of the attachment. - */ - readonly description?: string; - /** - * The attachment attached to the note. - */ - readonly attachment?: Array; + /** + * The id of the note. + */ + readonly id?: number; + /** + * The timestamp of the note's creation. + */ + readonly created?: string; + /** + * The timestamp of the note's last update. + */ + readonly updated?: string; + /** + * The label of the user who created this note. + */ + readonly label_user_creator?: ILabelUser; + /** + * Optional description of the attachment. + */ + readonly description?: string; + /** + * The attachment attached to the note. + */ + readonly attachment?: Array; } export interface INoteAttachmentPaymentDelete {} export interface INoteAttachmentPaymentCreate { - /** - * The id of the created item - */ - readonly Id?: BunqId; + /** + * The id of the created item + */ + readonly Id?: BunqId; } export interface INoteAttachmentPaymentBatchUpdate { - /** - * The id of the created item - */ - readonly Id?: BunqId; + /** + * The id of the created item + */ + readonly Id?: BunqId; } export interface INoteAttachmentPaymentBatchRead { - /** - * The id of the note. - */ - readonly id?: number; - /** - * The timestamp of the note's creation. - */ - readonly created?: string; - /** - * The timestamp of the note's last update. - */ - readonly updated?: string; - /** - * The label of the user who created this note. - */ - readonly label_user_creator?: ILabelUser; - /** - * Optional description of the attachment. - */ - readonly description?: string; - /** - * The attachment attached to the note. - */ - readonly attachment?: Array; + /** + * The id of the note. + */ + readonly id?: number; + /** + * The timestamp of the note's creation. + */ + readonly created?: string; + /** + * The timestamp of the note's last update. + */ + readonly updated?: string; + /** + * The label of the user who created this note. + */ + readonly label_user_creator?: ILabelUser; + /** + * Optional description of the attachment. + */ + readonly description?: string; + /** + * The attachment attached to the note. + */ + readonly attachment?: Array; } export interface INoteAttachmentPaymentBatchListing { - /** - * The id of the note. - */ - readonly id?: number; - /** - * The timestamp of the note's creation. - */ - readonly created?: string; - /** - * The timestamp of the note's last update. - */ - readonly updated?: string; - /** - * The label of the user who created this note. - */ - readonly label_user_creator?: ILabelUser; - /** - * Optional description of the attachment. - */ - readonly description?: string; - /** - * The attachment attached to the note. - */ - readonly attachment?: Array; + /** + * The id of the note. + */ + readonly id?: number; + /** + * The timestamp of the note's creation. + */ + readonly created?: string; + /** + * The timestamp of the note's last update. + */ + readonly updated?: string; + /** + * The label of the user who created this note. + */ + readonly label_user_creator?: ILabelUser; + /** + * Optional description of the attachment. + */ + readonly description?: string; + /** + * The attachment attached to the note. + */ + readonly attachment?: Array; } export interface INoteAttachmentPaymentBatchDelete {} export interface INoteAttachmentPaymentBatchCreate { - /** - * The id of the created item - */ - readonly Id?: BunqId; + /** + * The id of the created item + */ + readonly Id?: BunqId; } export interface INoteAttachmentPaymentBatch { - /** - * Optional description of the attachment. - */ - description?: string; - /** - * The reference to the uploaded file to attach to this note. - */ - attachment_id: number; + /** + * Optional description of the attachment. + */ + description?: string; + /** + * The reference to the uploaded file to attach to this note. + */ + attachment_id: number; } export interface INoteAttachmentPayment { - /** - * Optional description of the attachment. - */ - description?: string; - /** - * The reference to the uploaded file to attach to this note. - */ - attachment_id: number; + /** + * Optional description of the attachment. + */ + description?: string; + /** + * The reference to the uploaded file to attach to this note. + */ + attachment_id: number; } export interface INoteAttachmentMasterCardActionUpdate { - /** - * The id of the created item - */ - readonly Id?: BunqId; + /** + * The id of the created item + */ + readonly Id?: BunqId; } export interface INoteAttachmentMasterCardActionRead { - /** - * The id of the note. - */ - readonly id?: number; - /** - * The timestamp of the note's creation. - */ - readonly created?: string; - /** - * The timestamp of the note's last update. - */ - readonly updated?: string; - /** - * The label of the user who created this note. - */ - readonly label_user_creator?: ILabelUser; - /** - * Optional description of the attachment. - */ - readonly description?: string; - /** - * The attachment attached to the note. - */ - readonly attachment?: Array; + /** + * The id of the note. + */ + readonly id?: number; + /** + * The timestamp of the note's creation. + */ + readonly created?: string; + /** + * The timestamp of the note's last update. + */ + readonly updated?: string; + /** + * The label of the user who created this note. + */ + readonly label_user_creator?: ILabelUser; + /** + * Optional description of the attachment. + */ + readonly description?: string; + /** + * The attachment attached to the note. + */ + readonly attachment?: Array; } export interface INoteAttachmentMasterCardActionListing { - /** - * The id of the note. - */ - readonly id?: number; - /** - * The timestamp of the note's creation. - */ - readonly created?: string; - /** - * The timestamp of the note's last update. - */ - readonly updated?: string; - /** - * The label of the user who created this note. - */ - readonly label_user_creator?: ILabelUser; - /** - * Optional description of the attachment. - */ - readonly description?: string; - /** - * The attachment attached to the note. - */ - readonly attachment?: Array; + /** + * The id of the note. + */ + readonly id?: number; + /** + * The timestamp of the note's creation. + */ + readonly created?: string; + /** + * The timestamp of the note's last update. + */ + readonly updated?: string; + /** + * The label of the user who created this note. + */ + readonly label_user_creator?: ILabelUser; + /** + * Optional description of the attachment. + */ + readonly description?: string; + /** + * The attachment attached to the note. + */ + readonly attachment?: Array; } export interface INoteAttachmentMasterCardActionDelete {} export interface INoteAttachmentMasterCardActionCreate { - /** - * The id of the created item - */ - readonly Id?: BunqId; + /** + * The id of the created item + */ + readonly Id?: BunqId; } export interface INoteAttachmentMasterCardAction { - /** - * Optional description of the attachment. - */ - description?: string; - /** - * The reference to the uploaded file to attach to this note. - */ - attachment_id: number; + /** + * Optional description of the attachment. + */ + description?: string; + /** + * The reference to the uploaded file to attach to this note. + */ + attachment_id: number; } export interface INoteAttachmentIdealMerchantTransactionUpdate { - /** - * The id of the created item - */ - readonly Id?: BunqId; + /** + * The id of the created item + */ + readonly Id?: BunqId; } export interface INoteAttachmentIdealMerchantTransactionRead { - /** - * The id of the note. - */ - readonly id?: number; - /** - * The timestamp of the note's creation. - */ - readonly created?: string; - /** - * The timestamp of the note's last update. - */ - readonly updated?: string; - /** - * The label of the user who created this note. - */ - readonly label_user_creator?: ILabelUser; - /** - * Optional description of the attachment. - */ - readonly description?: string; - /** - * The attachment attached to the note. - */ - readonly attachment?: Array; + /** + * The id of the note. + */ + readonly id?: number; + /** + * The timestamp of the note's creation. + */ + readonly created?: string; + /** + * The timestamp of the note's last update. + */ + readonly updated?: string; + /** + * The label of the user who created this note. + */ + readonly label_user_creator?: ILabelUser; + /** + * Optional description of the attachment. + */ + readonly description?: string; + /** + * The attachment attached to the note. + */ + readonly attachment?: Array; } export interface INoteAttachmentIdealMerchantTransactionListing { - /** - * The id of the note. - */ - readonly id?: number; - /** - * The timestamp of the note's creation. - */ - readonly created?: string; - /** - * The timestamp of the note's last update. - */ - readonly updated?: string; - /** - * The label of the user who created this note. - */ - readonly label_user_creator?: ILabelUser; - /** - * Optional description of the attachment. - */ - readonly description?: string; - /** - * The attachment attached to the note. - */ - readonly attachment?: Array; + /** + * The id of the note. + */ + readonly id?: number; + /** + * The timestamp of the note's creation. + */ + readonly created?: string; + /** + * The timestamp of the note's last update. + */ + readonly updated?: string; + /** + * The label of the user who created this note. + */ + readonly label_user_creator?: ILabelUser; + /** + * Optional description of the attachment. + */ + readonly description?: string; + /** + * The attachment attached to the note. + */ + readonly attachment?: Array; } export interface INoteAttachmentIdealMerchantTransactionDelete {} export interface INoteAttachmentIdealMerchantTransactionCreate { - /** - * The id of the created item - */ - readonly Id?: BunqId; + /** + * The id of the created item + */ + readonly Id?: BunqId; } export interface INoteAttachmentIdealMerchantTransaction { - /** - * Optional description of the attachment. - */ - description?: string; - /** - * The reference to the uploaded file to attach to this note. - */ - attachment_id: number; + /** + * Optional description of the attachment. + */ + description?: string; + /** + * The reference to the uploaded file to attach to this note. + */ + attachment_id: number; } export interface INoteAttachmentDraftPaymentUpdate { - /** - * The id of the created item - */ - readonly Id?: BunqId; + /** + * The id of the created item + */ + readonly Id?: BunqId; } export interface INoteAttachmentDraftPaymentRead { - /** - * The id of the note. - */ - readonly id?: number; - /** - * The timestamp of the note's creation. - */ - readonly created?: string; - /** - * The timestamp of the note's last update. - */ - readonly updated?: string; - /** - * The label of the user who created this note. - */ - readonly label_user_creator?: ILabelUser; - /** - * Optional description of the attachment. - */ - readonly description?: string; - /** - * The attachment attached to the note. - */ - readonly attachment?: Array; + /** + * The id of the note. + */ + readonly id?: number; + /** + * The timestamp of the note's creation. + */ + readonly created?: string; + /** + * The timestamp of the note's last update. + */ + readonly updated?: string; + /** + * The label of the user who created this note. + */ + readonly label_user_creator?: ILabelUser; + /** + * Optional description of the attachment. + */ + readonly description?: string; + /** + * The attachment attached to the note. + */ + readonly attachment?: Array; } export interface INoteAttachmentDraftPaymentListing { - /** - * The id of the note. - */ - readonly id?: number; - /** - * The timestamp of the note's creation. - */ - readonly created?: string; - /** - * The timestamp of the note's last update. - */ - readonly updated?: string; - /** - * The label of the user who created this note. - */ - readonly label_user_creator?: ILabelUser; - /** - * Optional description of the attachment. - */ - readonly description?: string; - /** - * The attachment attached to the note. - */ - readonly attachment?: Array; + /** + * The id of the note. + */ + readonly id?: number; + /** + * The timestamp of the note's creation. + */ + readonly created?: string; + /** + * The timestamp of the note's last update. + */ + readonly updated?: string; + /** + * The label of the user who created this note. + */ + readonly label_user_creator?: ILabelUser; + /** + * Optional description of the attachment. + */ + readonly description?: string; + /** + * The attachment attached to the note. + */ + readonly attachment?: Array; } export interface INoteAttachmentDraftPaymentDelete {} export interface INoteAttachmentDraftPaymentCreate { - /** - * The id of the created item - */ - readonly Id?: BunqId; + /** + * The id of the created item + */ + readonly Id?: BunqId; } export interface INoteAttachmentDraftPayment { - /** - * Optional description of the attachment. - */ - description?: string; - /** - * The reference to the uploaded file to attach to this note. - */ - attachment_id: number; + /** + * Optional description of the attachment. + */ + description?: string; + /** + * The reference to the uploaded file to attach to this note. + */ + attachment_id: number; } export interface INoteAttachmentBunqMeFundraiserResultUpdate { - /** - * The id of the created item - */ - readonly Id?: BunqId; + /** + * The id of the created item + */ + readonly Id?: BunqId; } export interface INoteAttachmentBunqMeFundraiserResultRead { - /** - * The id of the note. - */ - readonly id?: number; - /** - * The timestamp of the note's creation. - */ - readonly created?: string; - /** - * The timestamp of the note's last update. - */ - readonly updated?: string; - /** - * The label of the user who created this note. - */ - readonly label_user_creator?: ILabelUser; - /** - * Optional description of the attachment. - */ - readonly description?: string; - /** - * The attachment attached to the note. - */ - readonly attachment?: Array; + /** + * The id of the note. + */ + readonly id?: number; + /** + * The timestamp of the note's creation. + */ + readonly created?: string; + /** + * The timestamp of the note's last update. + */ + readonly updated?: string; + /** + * The label of the user who created this note. + */ + readonly label_user_creator?: ILabelUser; + /** + * Optional description of the attachment. + */ + readonly description?: string; + /** + * The attachment attached to the note. + */ + readonly attachment?: Array; } export interface INoteAttachmentBunqMeFundraiserResultListing { - /** - * The id of the note. - */ - readonly id?: number; - /** - * The timestamp of the note's creation. - */ - readonly created?: string; - /** - * The timestamp of the note's last update. - */ - readonly updated?: string; - /** - * The label of the user who created this note. - */ - readonly label_user_creator?: ILabelUser; - /** - * Optional description of the attachment. - */ - readonly description?: string; - /** - * The attachment attached to the note. - */ - readonly attachment?: Array; + /** + * The id of the note. + */ + readonly id?: number; + /** + * The timestamp of the note's creation. + */ + readonly created?: string; + /** + * The timestamp of the note's last update. + */ + readonly updated?: string; + /** + * The label of the user who created this note. + */ + readonly label_user_creator?: ILabelUser; + /** + * Optional description of the attachment. + */ + readonly description?: string; + /** + * The attachment attached to the note. + */ + readonly attachment?: Array; } export interface INoteAttachmentBunqMeFundraiserResultDelete {} export interface INoteAttachmentBunqMeFundraiserResultCreate { - /** - * The id of the created item - */ - readonly Id?: BunqId; + /** + * The id of the created item + */ + readonly Id?: BunqId; } export interface INoteAttachmentBunqMeFundraiserResult { - /** - * Optional description of the attachment. - */ - description?: string; - /** - * The reference to the uploaded file to attach to this note. - */ - attachment_id: number; + /** + * Optional description of the attachment. + */ + description?: string; + /** + * The reference to the uploaded file to attach to this note. + */ + attachment_id: number; } export interface INoteAttachmentBankSwitchServiceNetherlandsIncomingPaymentUpdate { - /** - * The id of the created item - */ - readonly Id?: BunqId; + /** + * The id of the created item + */ + readonly Id?: BunqId; } export interface INoteAttachmentBankSwitchServiceNetherlandsIncomingPaymentRead { - /** - * The id of the note. - */ - readonly id?: number; - /** - * The timestamp of the note's creation. - */ - readonly created?: string; - /** - * The timestamp of the note's last update. - */ - readonly updated?: string; - /** - * The label of the user who created this note. - */ - readonly label_user_creator?: ILabelUser; - /** - * Optional description of the attachment. - */ - readonly description?: string; - /** - * The attachment attached to the note. - */ - readonly attachment?: Array; + /** + * The id of the note. + */ + readonly id?: number; + /** + * The timestamp of the note's creation. + */ + readonly created?: string; + /** + * The timestamp of the note's last update. + */ + readonly updated?: string; + /** + * The label of the user who created this note. + */ + readonly label_user_creator?: ILabelUser; + /** + * Optional description of the attachment. + */ + readonly description?: string; + /** + * The attachment attached to the note. + */ + readonly attachment?: Array; } export interface INoteAttachmentBankSwitchServiceNetherlandsIncomingPaymentListing { - /** - * The id of the note. - */ - readonly id?: number; - /** - * The timestamp of the note's creation. - */ - readonly created?: string; - /** - * The timestamp of the note's last update. - */ - readonly updated?: string; - /** - * The label of the user who created this note. - */ - readonly label_user_creator?: ILabelUser; - /** - * Optional description of the attachment. - */ - readonly description?: string; - /** - * The attachment attached to the note. - */ - readonly attachment?: Array; + /** + * The id of the note. + */ + readonly id?: number; + /** + * The timestamp of the note's creation. + */ + readonly created?: string; + /** + * The timestamp of the note's last update. + */ + readonly updated?: string; + /** + * The label of the user who created this note. + */ + readonly label_user_creator?: ILabelUser; + /** + * Optional description of the attachment. + */ + readonly description?: string; + /** + * The attachment attached to the note. + */ + readonly attachment?: Array; } export interface INoteAttachmentBankSwitchServiceNetherlandsIncomingPaymentDelete {} export interface INoteAttachmentBankSwitchServiceNetherlandsIncomingPaymentCreate { - /** - * The id of the created item - */ - readonly Id?: BunqId; + /** + * The id of the created item + */ + readonly Id?: BunqId; } export interface INoteAttachmentBankSwitchServiceNetherlandsIncomingPayment { - /** - * Optional description of the attachment. - */ - description?: string; - /** - * The reference to the uploaded file to attach to this note. - */ - attachment_id: number; + /** + * Optional description of the attachment. + */ + description?: string; + /** + * The reference to the uploaded file to attach to this note. + */ + attachment_id: number; } export interface IMonetaryAccountSetting { - /** - * The color chosen for the MonetaryAccount. - */ - color?: string; - /** - * The icon chosen for the MonetaryAccount. - */ - icon?: string; - /** - * The status of the avatar. Can be either AVATAR_DEFAULT, AVATAR_CUSTOM or AVATAR_UNDETERMINED. - */ - default_avatar_status?: string; - /** - * The chat restriction. Possible values are ALLOW_INCOMING or BLOCK_INCOMING - */ - restriction_chat?: string; + /** + * The color chosen for the MonetaryAccount. + */ + color?: string; + /** + * The icon chosen for the MonetaryAccount. + */ + icon?: string; + /** + * The status of the avatar. Can be either AVATAR_DEFAULT, AVATAR_CUSTOM or AVATAR_UNDETERMINED. + */ + default_avatar_status?: string; + /** + * The chat restriction. Possible values are ALLOW_INCOMING or BLOCK_INCOMING + */ + restriction_chat?: string; } export interface IMonetaryAccountSavingsUpdate { - /** - * The id of the created item - */ - readonly Id?: BunqId; + /** + * The id of the created item + */ + readonly Id?: BunqId; } export interface IMonetaryAccountSavingsRead { - /** - * The id of the MonetaryAccountSavings. - */ - readonly id?: number; - /** - * The timestamp of the MonetaryAccountSavings's creation. - */ - readonly created?: string; - /** - * The timestamp of the MonetaryAccountSavings's last update. - */ - readonly updated?: string; - /** - * The Avatar of the MonetaryAccountSavings. - */ - readonly avatar?: IAvatar; - /** - * The currency of the MonetaryAccountSavings as an ISO 4217 formatted currency code. - */ - readonly currency?: string; - /** - * The description of the MonetaryAccountSavings. Defaults to 'bunq account'. - */ - readonly description?: string; - /** - * The daily spending limit Amount of the MonetaryAccountSavings. Defaults to 1000 EUR. Currency must match the MonetaryAccountSavings's currency. Limited to 10000 EUR. - */ - readonly daily_limit?: IAmount; - /** - * The maximum Amount the MonetaryAccountSavings can be 'in the red'. Must be 0 EUR or omitted. - */ - readonly overdraft_limit?: IAmount; - /** - * The current available balance Amount of the MonetaryAccountSavings. - */ - readonly balance?: IAmount; - /** - * The Aliases for the MonetaryAccountSavings. - */ - readonly alias?: Array; - /** - * The MonetaryAccountSavings's public UUID. - */ - readonly public_uuid?: string; - /** - * The status of the MonetaryAccountSavings. Can be: ACTIVE, BLOCKED, CANCELLED or PENDING_REOPEN - */ - readonly status?: string; - /** - * The sub-status of the MonetaryAccountSavings providing extra information regarding the status. Will be NONE for ACTIVE or PENDING_REOPEN, COMPLETELY or ONLY_ACCEPTING_INCOMING for BLOCKED and REDEMPTION_INVOLUNTARY, REDEMPTION_VOLUNTARY or PERMANENT for CANCELLED. - */ - readonly sub_status?: string; - /** - * The reason for voluntarily cancelling (closing) the MonetaryAccountSavings, can only be OTHER. - */ - readonly reason?: string; - /** - * The optional free-form reason for voluntarily cancelling (closing) the MonetaryAccountSavings. Can be any user provided message. - */ - readonly reason_description?: string; - /** - * The users the account will be joint with. - */ - readonly all_co_owner?: Array; - /** - * The id of the User who owns the MonetaryAccountSavings. - */ - readonly user_id?: number; - /** - * The profile of the account. - */ - readonly monetary_account_profile?: IMonetaryAccountProfile; - /** - * The settings of the MonetaryAccountSavings. - */ - readonly setting?: IMonetaryAccountSetting; - /** - * The Savings Goal set for this MonetaryAccountSavings. - */ - readonly savings_goal?: IAmount; - /** - * The progress in percentages for the Savings Goal set for this MonetaryAccountSavings. - */ - readonly savings_goal_progress?: number; - /** - * The id of the AutoSave. - */ - readonly auto_save_id?: number; - /** - * The ids of the AutoSave. - */ - readonly all_auto_save_id?: Array; + /** + * The id of the MonetaryAccountSavings. + */ + readonly id?: number; + /** + * The timestamp of the MonetaryAccountSavings's creation. + */ + readonly created?: string; + /** + * The timestamp of the MonetaryAccountSavings's last update. + */ + readonly updated?: string; + /** + * The Avatar of the MonetaryAccountSavings. + */ + readonly avatar?: IAvatar; + /** + * The currency of the MonetaryAccountSavings as an ISO 4217 formatted currency code. + */ + readonly currency?: string; + /** + * The description of the MonetaryAccountSavings. Defaults to 'bunq account'. + */ + readonly description?: string; + /** + * The daily spending limit Amount of the MonetaryAccountSavings. Defaults to 1000 EUR. Currency must match the MonetaryAccountSavings's currency. Limited to 10000 EUR. + */ + readonly daily_limit?: IAmount; + /** + * The maximum Amount the MonetaryAccountSavings can be 'in the red'. Must be 0 EUR or omitted. + */ + readonly overdraft_limit?: IAmount; + /** + * The current available balance Amount of the MonetaryAccountSavings. + */ + readonly balance?: IAmount; + /** + * The Aliases for the MonetaryAccountSavings. + */ + readonly alias?: Array; + /** + * The MonetaryAccountSavings's public UUID. + */ + readonly public_uuid?: string; + /** + * The status of the MonetaryAccountSavings. Can be: ACTIVE, BLOCKED, CANCELLED or PENDING_REOPEN + */ + readonly status?: string; + /** + * The sub-status of the MonetaryAccountSavings providing extra information regarding the status. Will be NONE for ACTIVE or PENDING_REOPEN, COMPLETELY or ONLY_ACCEPTING_INCOMING for BLOCKED and REDEMPTION_INVOLUNTARY, REDEMPTION_VOLUNTARY or PERMANENT for CANCELLED. + */ + readonly sub_status?: string; + /** + * The reason for voluntarily cancelling (closing) the MonetaryAccountSavings, can only be OTHER. + */ + readonly reason?: string; + /** + * The optional free-form reason for voluntarily cancelling (closing) the MonetaryAccountSavings. Can be any user provided message. + */ + readonly reason_description?: string; + /** + * The users the account will be joint with. + */ + readonly all_co_owner?: Array; + /** + * The id of the User who owns the MonetaryAccountSavings. + */ + readonly user_id?: number; + /** + * The profile of the account. + */ + readonly monetary_account_profile?: IMonetaryAccountProfile; + /** + * The settings of the MonetaryAccountSavings. + */ + readonly setting?: IMonetaryAccountSetting; + /** + * The Savings Goal set for this MonetaryAccountSavings. + */ + readonly savings_goal?: IAmount; + /** + * The progress in percentages for the Savings Goal set for this MonetaryAccountSavings. + */ + readonly savings_goal_progress?: number; + /** + * The id of the AutoSave. + */ + readonly auto_save_id?: number; + /** + * The ids of the AutoSave. + */ + readonly all_auto_save_id?: Array; } export interface IMonetaryAccountSavingsListing { - /** - * The id of the MonetaryAccountSavings. - */ - readonly id?: number; - /** - * The timestamp of the MonetaryAccountSavings's creation. - */ - readonly created?: string; - /** - * The timestamp of the MonetaryAccountSavings's last update. - */ - readonly updated?: string; - /** - * The Avatar of the MonetaryAccountSavings. - */ - readonly avatar?: IAvatar; - /** - * The currency of the MonetaryAccountSavings as an ISO 4217 formatted currency code. - */ - readonly currency?: string; - /** - * The description of the MonetaryAccountSavings. Defaults to 'bunq account'. - */ - readonly description?: string; - /** - * The daily spending limit Amount of the MonetaryAccountSavings. Defaults to 1000 EUR. Currency must match the MonetaryAccountSavings's currency. Limited to 10000 EUR. - */ - readonly daily_limit?: IAmount; - /** - * The maximum Amount the MonetaryAccountSavings can be 'in the red'. Must be 0 EUR or omitted. - */ - readonly overdraft_limit?: IAmount; - /** - * The current available balance Amount of the MonetaryAccountSavings. - */ - readonly balance?: IAmount; - /** - * The Aliases for the MonetaryAccountSavings. - */ - readonly alias?: Array; - /** - * The MonetaryAccountSavings's public UUID. - */ - readonly public_uuid?: string; - /** - * The status of the MonetaryAccountSavings. Can be: ACTIVE, BLOCKED, CANCELLED or PENDING_REOPEN - */ - readonly status?: string; - /** - * The sub-status of the MonetaryAccountSavings providing extra information regarding the status. Will be NONE for ACTIVE or PENDING_REOPEN, COMPLETELY or ONLY_ACCEPTING_INCOMING for BLOCKED and REDEMPTION_INVOLUNTARY, REDEMPTION_VOLUNTARY or PERMANENT for CANCELLED. - */ - readonly sub_status?: string; - /** - * The reason for voluntarily cancelling (closing) the MonetaryAccountSavings, can only be OTHER. - */ - readonly reason?: string; - /** - * The optional free-form reason for voluntarily cancelling (closing) the MonetaryAccountSavings. Can be any user provided message. - */ - readonly reason_description?: string; - /** - * The users the account will be joint with. - */ - readonly all_co_owner?: Array; - /** - * The id of the User who owns the MonetaryAccountSavings. - */ - readonly user_id?: number; - /** - * The profile of the account. - */ - readonly monetary_account_profile?: IMonetaryAccountProfile; - /** - * The settings of the MonetaryAccountSavings. - */ - readonly setting?: IMonetaryAccountSetting; - /** - * The Savings Goal set for this MonetaryAccountSavings. - */ - readonly savings_goal?: IAmount; - /** - * The progress in percentages for the Savings Goal set for this MonetaryAccountSavings. - */ - readonly savings_goal_progress?: number; - /** - * The id of the AutoSave. - */ - readonly auto_save_id?: number; - /** - * The ids of the AutoSave. - */ - readonly all_auto_save_id?: Array; + /** + * The id of the MonetaryAccountSavings. + */ + readonly id?: number; + /** + * The timestamp of the MonetaryAccountSavings's creation. + */ + readonly created?: string; + /** + * The timestamp of the MonetaryAccountSavings's last update. + */ + readonly updated?: string; + /** + * The Avatar of the MonetaryAccountSavings. + */ + readonly avatar?: IAvatar; + /** + * The currency of the MonetaryAccountSavings as an ISO 4217 formatted currency code. + */ + readonly currency?: string; + /** + * The description of the MonetaryAccountSavings. Defaults to 'bunq account'. + */ + readonly description?: string; + /** + * The daily spending limit Amount of the MonetaryAccountSavings. Defaults to 1000 EUR. Currency must match the MonetaryAccountSavings's currency. Limited to 10000 EUR. + */ + readonly daily_limit?: IAmount; + /** + * The maximum Amount the MonetaryAccountSavings can be 'in the red'. Must be 0 EUR or omitted. + */ + readonly overdraft_limit?: IAmount; + /** + * The current available balance Amount of the MonetaryAccountSavings. + */ + readonly balance?: IAmount; + /** + * The Aliases for the MonetaryAccountSavings. + */ + readonly alias?: Array; + /** + * The MonetaryAccountSavings's public UUID. + */ + readonly public_uuid?: string; + /** + * The status of the MonetaryAccountSavings. Can be: ACTIVE, BLOCKED, CANCELLED or PENDING_REOPEN + */ + readonly status?: string; + /** + * The sub-status of the MonetaryAccountSavings providing extra information regarding the status. Will be NONE for ACTIVE or PENDING_REOPEN, COMPLETELY or ONLY_ACCEPTING_INCOMING for BLOCKED and REDEMPTION_INVOLUNTARY, REDEMPTION_VOLUNTARY or PERMANENT for CANCELLED. + */ + readonly sub_status?: string; + /** + * The reason for voluntarily cancelling (closing) the MonetaryAccountSavings, can only be OTHER. + */ + readonly reason?: string; + /** + * The optional free-form reason for voluntarily cancelling (closing) the MonetaryAccountSavings. Can be any user provided message. + */ + readonly reason_description?: string; + /** + * The users the account will be joint with. + */ + readonly all_co_owner?: Array; + /** + * The id of the User who owns the MonetaryAccountSavings. + */ + readonly user_id?: number; + /** + * The profile of the account. + */ + readonly monetary_account_profile?: IMonetaryAccountProfile; + /** + * The settings of the MonetaryAccountSavings. + */ + readonly setting?: IMonetaryAccountSetting; + /** + * The Savings Goal set for this MonetaryAccountSavings. + */ + readonly savings_goal?: IAmount; + /** + * The progress in percentages for the Savings Goal set for this MonetaryAccountSavings. + */ + readonly savings_goal_progress?: number; + /** + * The id of the AutoSave. + */ + readonly auto_save_id?: number; + /** + * The ids of the AutoSave. + */ + readonly all_auto_save_id?: Array; } export interface IMonetaryAccountSavingsCreate { - /** - * The id of the created item - */ - readonly Id?: BunqId; + /** + * The id of the created item + */ + readonly Id?: BunqId; } export interface IMonetaryAccountSavings { - /** - * The currency of the MonetaryAccountSavings as an ISO 4217 formatted currency code. - */ - currency: string; - /** - * The description of the MonetaryAccountSavings. Defaults to 'bunq account'. - */ - description?: string; - /** - * The daily spending limit Amount of the MonetaryAccountSavings. Defaults to 1000 EUR. Currency must match the MonetaryAccountSavings's currency. Limited to 10000 EUR. - */ - daily_limit?: IAmount; - /** - * The UUID of the Avatar of the MonetaryAccountSavings. - */ - avatar_uuid?: string; - /** - * The status of the MonetaryAccountSavings. Ignored in POST requests (always set to ACTIVE) can be CANCELLED or PENDING_REOPEN in PUT requests to cancel (close) or reopen the MonetaryAccountSavings. When updating the status and/or sub_status no other fields can be updated in the same request (and vice versa). - */ - status?: string; - /** - * The sub-status of the MonetaryAccountSavings providing extra information regarding the status. Should be ignored for POST requests. In case of PUT requests with status CANCELLED it can only be REDEMPTION_VOLUNTARY, while with status PENDING_REOPEN it can only be NONE. When updating the status and/or sub_status no other fields can be updated in the same request (and vice versa). - */ - sub_status?: string; - /** - * The reason for voluntarily cancelling (closing) the MonetaryAccountSavings, can only be OTHER. Should only be specified if updating the status to CANCELLED. - */ - reason?: string; - /** - * 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. - */ - reason_description?: string; - /** - * The users the account will be joint with. - */ - all_co_owner?: Array; - /** - * The settings of the MonetaryAccountSavings. - */ - setting?: IMonetaryAccountSetting; - /** - * The Savings Goal set for this MonetaryAccountSavings. - */ - savings_goal?: IAmount; + /** + * The currency of the MonetaryAccountSavings as an ISO 4217 formatted currency code. + */ + currency: string; + /** + * The description of the MonetaryAccountSavings. Defaults to 'bunq account'. + */ + description?: string; + /** + * The daily spending limit Amount of the MonetaryAccountSavings. Defaults to 1000 EUR. Currency must match the MonetaryAccountSavings's currency. Limited to 10000 EUR. + */ + daily_limit?: IAmount; + /** + * The UUID of the Avatar of the MonetaryAccountSavings. + */ + avatar_uuid?: string; + /** + * The status of the MonetaryAccountSavings. Ignored in POST requests (always set to ACTIVE) can be CANCELLED or PENDING_REOPEN in PUT requests to cancel (close) or reopen the MonetaryAccountSavings. When updating the status and/or sub_status no other fields can be updated in the same request (and vice versa). + */ + status?: string; + /** + * The sub-status of the MonetaryAccountSavings providing extra information regarding the status. Should be ignored for POST requests. In case of PUT requests with status CANCELLED it can only be REDEMPTION_VOLUNTARY, while with status PENDING_REOPEN it can only be NONE. When updating the status and/or sub_status no other fields can be updated in the same request (and vice versa). + */ + sub_status?: string; + /** + * The reason for voluntarily cancelling (closing) the MonetaryAccountSavings, can only be OTHER. Should only be specified if updating the status to CANCELLED. + */ + reason?: string; + /** + * 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. + */ + reason_description?: string; + /** + * The users the account will be joint with. + */ + all_co_owner?: Array; + /** + * The settings of the MonetaryAccountSavings. + */ + setting?: IMonetaryAccountSetting; + /** + * The Savings Goal set for this MonetaryAccountSavings. + */ + savings_goal?: IAmount; } export interface IMonetaryAccountRead { - /** - * - */ - readonly MonetaryAccountBank?: IMonetaryAccountBank; - /** - * - */ - readonly MonetaryAccountJoint?: IMonetaryAccountJoint; - /** - * - */ - readonly MonetaryAccountLight?: IMonetaryAccountLight; - /** - * - */ - readonly MonetaryAccountSavings?: IMonetaryAccountSavings; + /** + * + */ + readonly MonetaryAccountBank?: IMonetaryAccountBank; + /** + * + */ + readonly MonetaryAccountJoint?: IMonetaryAccountJoint; + /** + * + */ + readonly MonetaryAccountLight?: IMonetaryAccountLight; + /** + * + */ + readonly MonetaryAccountSavings?: IMonetaryAccountSavings; } export interface IMonetaryAccountProfileFill { - /** - * The status of the profile. - */ - status?: string; - /** - * The goal balance. - */ - balance_preferred?: IAmount; - /** - * The low threshold balance. - */ - balance_threshold_low?: IAmount; - /** - * The method used to fill the monetary account. Currently only iDEAL is supported, and it is the default one. - */ - method_fill?: string; - /** - * The bank the fill is supposed to happen from, with BIC and bank name. - */ - issuer?: IIssuer; + /** + * The status of the profile. + */ + status?: string; + /** + * The goal balance. + */ + balance_preferred?: IAmount; + /** + * The low threshold balance. + */ + balance_threshold_low?: IAmount; + /** + * The method used to fill the monetary account. Currently only iDEAL is supported, and it is the default one. + */ + method_fill?: string; + /** + * The bank the fill is supposed to happen from, with BIC and bank name. + */ + issuer?: IIssuer; } export interface IMonetaryAccountProfileDrain { - /** - * The status of the profile. - */ - status?: string; - /** - * The goal balance. - */ - balance_preferred?: IAmount; - /** - * The high threshold balance. - */ - balance_threshold_high?: IAmount; - /** - * The savings monetary account. - */ - savings_account_alias?: ILabelMonetaryAccount; + /** + * The status of the profile. + */ + status?: string; + /** + * The goal balance. + */ + balance_preferred?: IAmount; + /** + * The high threshold balance. + */ + balance_threshold_high?: IAmount; + /** + * The savings monetary account. + */ + savings_account_alias?: ILabelMonetaryAccount; } export interface IMonetaryAccountProfile { - /** - * The profile settings for triggering the fill of a monetary account. - */ - profile_fill?: IMonetaryAccountProfileFill; - /** - * The profile settings for moving excesses to a savings account - */ - profile_drain?: IMonetaryAccountProfileDrain; + /** + * The profile settings for triggering the fill of a monetary account. + */ + profile_fill?: IMonetaryAccountProfileFill; + /** + * The profile settings for moving excesses to a savings account + */ + profile_drain?: IMonetaryAccountProfileDrain; } export interface IMonetaryAccountListing { - /** - * - */ - readonly MonetaryAccountBank?: IMonetaryAccountBank; - /** - * - */ - readonly MonetaryAccountJoint?: IMonetaryAccountJoint; - /** - * - */ - readonly MonetaryAccountLight?: IMonetaryAccountLight; - /** - * - */ - readonly MonetaryAccountSavings?: IMonetaryAccountSavings; + /** + * + */ + readonly MonetaryAccountBank?: IMonetaryAccountBank; + /** + * + */ + readonly MonetaryAccountJoint?: IMonetaryAccountJoint; + /** + * + */ + readonly MonetaryAccountLight?: IMonetaryAccountLight; + /** + * + */ + readonly MonetaryAccountSavings?: IMonetaryAccountSavings; } export interface IMonetaryAccountLight { - /** - * The currency of the MonetaryAccountLight as an ISO 4217 formatted currency code. - */ - currency?: string; - /** - * The description of the MonetaryAccountLight. Defaults to 'bunq account'. - */ - description?: string; - /** - * The daily spending limit Amount of the MonetaryAccountLight. Defaults to 1000 EUR. Currency must match the MonetaryAccountLight's currency. Limited to 10000 EUR. - */ - daily_limit?: IAmount; - /** - * The UUID of the Avatar of the MonetaryAccountLight. - */ - avatar_uuid?: string; - /** - * The status of the MonetaryAccountLight. Can be: ACTIVE, BLOCKED, CANCELLED or PENDING_REOPEN - */ - status?: string; - /** - * The sub-status of the MonetaryAccountLight providing extra information regarding the status. Will be NONE for ACTIVE or PENDING_REOPEN, COMPLETELY or ONLY_ACCEPTING_INCOMING for BLOCKED and REDEMPTION_INVOLUNTARY, REDEMPTION_VOLUNTARY or PERMANENT for CANCELLED. - */ - sub_status?: string; - /** - * The reason for voluntarily cancelling (closing) the MonetaryAccountBank, can only be OTHER. - */ - reason?: string; - /** - * The optional free-form reason for voluntarily cancelling (closing) the MonetaryAccountBank. Can be any user provided message. - */ - reason_description?: string; - /** - * The settings of the MonetaryAccountLight. - */ - setting?: IMonetaryAccountSetting; - /** - * The id of the MonetaryAccountLight. - */ - readonly id?: number; - /** - * The timestamp of the MonetaryAccountLight's creation. - */ - readonly created?: string; - /** - * The timestamp of the MonetaryAccountLight's last update. - */ - readonly updated?: string; - /** - * The Avatar of the MonetaryAccountLight. - */ - readonly avatar?: IAvatar; - /** - * The current available balance Amount of the MonetaryAccountLight. - */ - readonly balance?: IAmount; - /** - * The current real balance Amount of the MonetaryAccountLight. - */ - readonly balance_real?: IAmount; - /** - * The Aliases for the MonetaryAccountLight. - */ - readonly alias?: Array; - /** - * The MonetaryAccountLight's public UUID. - */ - readonly public_uuid?: string; - /** - * The id of the User who owns the MonetaryAccountLight. - */ - readonly user_id?: number; - /** - * The maximum balance Amount of the MonetaryAccountLight. - */ - readonly balance_maximum?: IAmount; - /** - * The amount of the monthly budget used. - */ - readonly budget_month_used?: IAmount; - /** - * The total amount of the monthly budget. - */ - readonly budget_month_maximum?: IAmount; - /** - * The amount of the yearly budget used. - */ - readonly budget_year_used?: IAmount; - /** - * The total amount of the yearly budget. - */ - readonly budget_year_maximum?: IAmount; - /** - * The amount of the yearly withdrawal budget used. - */ - readonly budget_withdrawal_year_used?: IAmount; - /** - * The total amount of the yearly withdrawal budget. - */ - readonly budget_withdrawal_year_maximum?: IAmount; + /** + * The currency of the MonetaryAccountLight as an ISO 4217 formatted currency code. + */ + currency?: string; + /** + * The description of the MonetaryAccountLight. Defaults to 'bunq account'. + */ + description?: string; + /** + * The daily spending limit Amount of the MonetaryAccountLight. Defaults to 1000 EUR. Currency must match the MonetaryAccountLight's currency. Limited to 10000 EUR. + */ + daily_limit?: IAmount; + /** + * The UUID of the Avatar of the MonetaryAccountLight. + */ + avatar_uuid?: string; + /** + * The status of the MonetaryAccountLight. Can be: ACTIVE, BLOCKED, CANCELLED or PENDING_REOPEN + */ + status?: string; + /** + * The sub-status of the MonetaryAccountLight providing extra information regarding the status. Will be NONE for ACTIVE or PENDING_REOPEN, COMPLETELY or ONLY_ACCEPTING_INCOMING for BLOCKED and REDEMPTION_INVOLUNTARY, REDEMPTION_VOLUNTARY or PERMANENT for CANCELLED. + */ + sub_status?: string; + /** + * The reason for voluntarily cancelling (closing) the MonetaryAccountBank, can only be OTHER. + */ + reason?: string; + /** + * The optional free-form reason for voluntarily cancelling (closing) the MonetaryAccountBank. Can be any user provided message. + */ + reason_description?: string; + /** + * The settings of the MonetaryAccountLight. + */ + setting?: IMonetaryAccountSetting; + /** + * The id of the MonetaryAccountLight. + */ + readonly id?: number; + /** + * The timestamp of the MonetaryAccountLight's creation. + */ + readonly created?: string; + /** + * The timestamp of the MonetaryAccountLight's last update. + */ + readonly updated?: string; + /** + * The Avatar of the MonetaryAccountLight. + */ + readonly avatar?: IAvatar; + /** + * The current available balance Amount of the MonetaryAccountLight. + */ + readonly balance?: IAmount; + /** + * The current real balance Amount of the MonetaryAccountLight. + */ + readonly balance_real?: IAmount; + /** + * The Aliases for the MonetaryAccountLight. + */ + readonly alias?: Array; + /** + * The MonetaryAccountLight's public UUID. + */ + readonly public_uuid?: string; + /** + * The id of the User who owns the MonetaryAccountLight. + */ + readonly user_id?: number; + /** + * The maximum balance Amount of the MonetaryAccountLight. + */ + readonly balance_maximum?: IAmount; + /** + * The amount of the monthly budget used. + */ + readonly budget_month_used?: IAmount; + /** + * The total amount of the monthly budget. + */ + readonly budget_month_maximum?: IAmount; + /** + * The amount of the yearly budget used. + */ + readonly budget_year_used?: IAmount; + /** + * The total amount of the yearly budget. + */ + readonly budget_year_maximum?: IAmount; + /** + * The amount of the yearly withdrawal budget used. + */ + readonly budget_withdrawal_year_used?: IAmount; + /** + * The total amount of the yearly withdrawal budget. + */ + readonly budget_withdrawal_year_maximum?: IAmount; } export interface IMonetaryAccountJointUpdate { - /** - * The id of the created item - */ - readonly Id?: BunqId; + /** + * The id of the created item + */ + readonly Id?: BunqId; } export interface IMonetaryAccountJointRead { - /** - * The id of the MonetaryAccountJoint. - */ - readonly id?: number; - /** - * The timestamp of the MonetaryAccountJoint's creation. - */ - readonly created?: string; - /** - * The timestamp of the MonetaryAccountJoint's last update. - */ - readonly updated?: string; - /** - * The Avatar of the MonetaryAccountJoint. - */ - readonly avatar?: IAvatar; - /** - * The currency of the MonetaryAccountJoint as an ISO 4217 formatted currency code. - */ - readonly currency?: string; - /** - * The description of the MonetaryAccountJoint. Defaults to 'bunq account'. - */ - readonly description?: string; - /** - * The daily spending limit Amount of the MonetaryAccountJoint. Defaults to 1000 EUR. Currency must match the MonetaryAccountJoint's currency. Limited to 10000 EUR. - */ - readonly daily_limit?: IAmount; - /** - * The maximum Amount the MonetaryAccountJoint can be 'in the red'. - */ - readonly overdraft_limit?: IAmount; - /** - * The current available balance Amount of the MonetaryAccountJoint. - */ - readonly balance?: IAmount; - /** - * The Aliases for the MonetaryAccountJoint. - */ - readonly alias?: Array; - /** - * The MonetaryAccountJoint's public UUID. - */ - readonly public_uuid?: string; - /** - * The status of the MonetaryAccountJoint. Can be: ACTIVE, BLOCKED, CANCELLED or PENDING_REOPEN - */ - readonly status?: string; - /** - * The sub-status of the MonetaryAccountJoint providing extra information regarding the status. Will be NONE for ACTIVE or PENDING_REOPEN, COMPLETELY or ONLY_ACCEPTING_INCOMING for BLOCKED and REDEMPTION_INVOLUNTARY, REDEMPTION_VOLUNTARY or PERMANENT for CANCELLED. - */ - readonly sub_status?: string; - /** - * The reason for voluntarily cancelling (closing) the MonetaryAccountJoint, can only be OTHER. - */ - readonly reason?: string; - /** - * The optional free-form reason for voluntarily cancelling (closing) the MonetaryAccountJoint. Can be any user provided message. - */ - readonly reason_description?: string; - /** - * The users the account will be joint with. - */ - readonly all_co_owner?: Array; - /** - * The id of the User who owns the MonetaryAccountJoint. - */ - readonly user_id?: number; - /** - * The profile of the account. - */ - readonly monetary_account_profile?: IMonetaryAccountProfile; - /** - * The settings of the MonetaryAccountJoint. - */ - readonly setting?: IMonetaryAccountSetting; - /** - * The id of the AutoSave. - */ - readonly auto_save_id?: number; - /** - * The ids of the AutoSave. - */ - readonly all_auto_save_id?: Array; + /** + * The id of the MonetaryAccountJoint. + */ + readonly id?: number; + /** + * The timestamp of the MonetaryAccountJoint's creation. + */ + readonly created?: string; + /** + * The timestamp of the MonetaryAccountJoint's last update. + */ + readonly updated?: string; + /** + * The Avatar of the MonetaryAccountJoint. + */ + readonly avatar?: IAvatar; + /** + * The currency of the MonetaryAccountJoint as an ISO 4217 formatted currency code. + */ + readonly currency?: string; + /** + * The description of the MonetaryAccountJoint. Defaults to 'bunq account'. + */ + readonly description?: string; + /** + * The daily spending limit Amount of the MonetaryAccountJoint. Defaults to 1000 EUR. Currency must match the MonetaryAccountJoint's currency. Limited to 10000 EUR. + */ + readonly daily_limit?: IAmount; + /** + * The maximum Amount the MonetaryAccountJoint can be 'in the red'. + */ + readonly overdraft_limit?: IAmount; + /** + * The current available balance Amount of the MonetaryAccountJoint. + */ + readonly balance?: IAmount; + /** + * The Aliases for the MonetaryAccountJoint. + */ + readonly alias?: Array; + /** + * The MonetaryAccountJoint's public UUID. + */ + readonly public_uuid?: string; + /** + * The status of the MonetaryAccountJoint. Can be: ACTIVE, BLOCKED, CANCELLED or PENDING_REOPEN + */ + readonly status?: string; + /** + * The sub-status of the MonetaryAccountJoint providing extra information regarding the status. Will be NONE for ACTIVE or PENDING_REOPEN, COMPLETELY or ONLY_ACCEPTING_INCOMING for BLOCKED and REDEMPTION_INVOLUNTARY, REDEMPTION_VOLUNTARY or PERMANENT for CANCELLED. + */ + readonly sub_status?: string; + /** + * The reason for voluntarily cancelling (closing) the MonetaryAccountJoint, can only be OTHER. + */ + readonly reason?: string; + /** + * The optional free-form reason for voluntarily cancelling (closing) the MonetaryAccountJoint. Can be any user provided message. + */ + readonly reason_description?: string; + /** + * The users the account will be joint with. + */ + readonly all_co_owner?: Array; + /** + * The id of the User who owns the MonetaryAccountJoint. + */ + readonly user_id?: number; + /** + * The profile of the account. + */ + readonly monetary_account_profile?: IMonetaryAccountProfile; + /** + * The settings of the MonetaryAccountJoint. + */ + readonly setting?: IMonetaryAccountSetting; + /** + * The id of the AutoSave. + */ + readonly auto_save_id?: number; + /** + * The ids of the AutoSave. + */ + readonly all_auto_save_id?: Array; } export interface IMonetaryAccountJointListing { - /** - * The id of the MonetaryAccountJoint. - */ - readonly id?: number; - /** - * The timestamp of the MonetaryAccountJoint's creation. - */ - readonly created?: string; - /** - * The timestamp of the MonetaryAccountJoint's last update. - */ - readonly updated?: string; - /** - * The Avatar of the MonetaryAccountJoint. - */ - readonly avatar?: IAvatar; - /** - * The currency of the MonetaryAccountJoint as an ISO 4217 formatted currency code. - */ - readonly currency?: string; - /** - * The description of the MonetaryAccountJoint. Defaults to 'bunq account'. - */ - readonly description?: string; - /** - * The daily spending limit Amount of the MonetaryAccountJoint. Defaults to 1000 EUR. Currency must match the MonetaryAccountJoint's currency. Limited to 10000 EUR. - */ - readonly daily_limit?: IAmount; - /** - * The maximum Amount the MonetaryAccountJoint can be 'in the red'. - */ - readonly overdraft_limit?: IAmount; - /** - * The current available balance Amount of the MonetaryAccountJoint. - */ - readonly balance?: IAmount; - /** - * The Aliases for the MonetaryAccountJoint. - */ - readonly alias?: Array; - /** - * The MonetaryAccountJoint's public UUID. - */ - readonly public_uuid?: string; - /** - * The status of the MonetaryAccountJoint. Can be: ACTIVE, BLOCKED, CANCELLED or PENDING_REOPEN - */ - readonly status?: string; - /** - * The sub-status of the MonetaryAccountJoint providing extra information regarding the status. Will be NONE for ACTIVE or PENDING_REOPEN, COMPLETELY or ONLY_ACCEPTING_INCOMING for BLOCKED and REDEMPTION_INVOLUNTARY, REDEMPTION_VOLUNTARY or PERMANENT for CANCELLED. - */ - readonly sub_status?: string; - /** - * The reason for voluntarily cancelling (closing) the MonetaryAccountJoint, can only be OTHER. - */ - readonly reason?: string; - /** - * The optional free-form reason for voluntarily cancelling (closing) the MonetaryAccountJoint. Can be any user provided message. - */ - readonly reason_description?: string; - /** - * The users the account will be joint with. - */ - readonly all_co_owner?: Array; - /** - * The id of the User who owns the MonetaryAccountJoint. - */ - readonly user_id?: number; - /** - * The profile of the account. - */ - readonly monetary_account_profile?: IMonetaryAccountProfile; - /** - * The settings of the MonetaryAccountJoint. - */ - readonly setting?: IMonetaryAccountSetting; - /** - * The id of the AutoSave. - */ - readonly auto_save_id?: number; - /** - * The ids of the AutoSave. - */ - readonly all_auto_save_id?: Array; + /** + * The id of the MonetaryAccountJoint. + */ + readonly id?: number; + /** + * The timestamp of the MonetaryAccountJoint's creation. + */ + readonly created?: string; + /** + * The timestamp of the MonetaryAccountJoint's last update. + */ + readonly updated?: string; + /** + * The Avatar of the MonetaryAccountJoint. + */ + readonly avatar?: IAvatar; + /** + * The currency of the MonetaryAccountJoint as an ISO 4217 formatted currency code. + */ + readonly currency?: string; + /** + * The description of the MonetaryAccountJoint. Defaults to 'bunq account'. + */ + readonly description?: string; + /** + * The daily spending limit Amount of the MonetaryAccountJoint. Defaults to 1000 EUR. Currency must match the MonetaryAccountJoint's currency. Limited to 10000 EUR. + */ + readonly daily_limit?: IAmount; + /** + * The maximum Amount the MonetaryAccountJoint can be 'in the red'. + */ + readonly overdraft_limit?: IAmount; + /** + * The current available balance Amount of the MonetaryAccountJoint. + */ + readonly balance?: IAmount; + /** + * The Aliases for the MonetaryAccountJoint. + */ + readonly alias?: Array; + /** + * The MonetaryAccountJoint's public UUID. + */ + readonly public_uuid?: string; + /** + * The status of the MonetaryAccountJoint. Can be: ACTIVE, BLOCKED, CANCELLED or PENDING_REOPEN + */ + readonly status?: string; + /** + * The sub-status of the MonetaryAccountJoint providing extra information regarding the status. Will be NONE for ACTIVE or PENDING_REOPEN, COMPLETELY or ONLY_ACCEPTING_INCOMING for BLOCKED and REDEMPTION_INVOLUNTARY, REDEMPTION_VOLUNTARY or PERMANENT for CANCELLED. + */ + readonly sub_status?: string; + /** + * The reason for voluntarily cancelling (closing) the MonetaryAccountJoint, can only be OTHER. + */ + readonly reason?: string; + /** + * The optional free-form reason for voluntarily cancelling (closing) the MonetaryAccountJoint. Can be any user provided message. + */ + readonly reason_description?: string; + /** + * The users the account will be joint with. + */ + readonly all_co_owner?: Array; + /** + * The id of the User who owns the MonetaryAccountJoint. + */ + readonly user_id?: number; + /** + * The profile of the account. + */ + readonly monetary_account_profile?: IMonetaryAccountProfile; + /** + * The settings of the MonetaryAccountJoint. + */ + readonly setting?: IMonetaryAccountSetting; + /** + * The id of the AutoSave. + */ + readonly auto_save_id?: number; + /** + * The ids of the AutoSave. + */ + readonly all_auto_save_id?: Array; } export interface IMonetaryAccountJointCreate { - /** - * The id of the created item - */ - readonly Id?: BunqId; + /** + * The id of the created item + */ + readonly Id?: BunqId; } export interface IMonetaryAccountJoint { - /** - * The currency of the MonetaryAccountJoint as an ISO 4217 formatted currency code. - */ - currency: string; - /** - * The description of the MonetaryAccountJoint. Defaults to 'bunq account'. - */ - description?: string; - /** - * The daily spending limit Amount of the MonetaryAccountJoint. Defaults to 1000 EUR. Currency must match the MonetaryAccountJoint's currency. Limited to 10000 EUR. - */ - daily_limit?: IAmount; - /** - * The maximum Amount the MonetaryAccountJoint can be 'in the red'. Must be 0 EUR or omitted. - */ - overdraft_limit?: IAmount; - /** - * The Aliases to add to MonetaryAccountJoint. Must all be confirmed first. Can mostly be ignored. - */ - alias?: Array; - /** - * The UUID of the Avatar of the MonetaryAccountJoint. - */ - avatar_uuid?: string; - /** - * The status of the MonetaryAccountJoint. Ignored in POST requests (always set to ACTIVE) can be CANCELLED or PENDING_REOPEN in PUT requests to cancel (close) or reopen the MonetaryAccountJoint. When updating the status and/or sub_status no other fields can be updated in the same request (and vice versa). - */ - status?: string; - /** - * The sub-status of the MonetaryAccountJoint providing extra information regarding the status. Should be ignored for POST requests. In case of PUT requests with status CANCELLED it can only be REDEMPTION_VOLUNTARY, while with status PENDING_REOPEN it can only be NONE. When updating the status and/or sub_status no other fields can be updated in the same request (and vice versa). - */ - sub_status?: string; - /** - * The reason for voluntarily cancelling (closing) the MonetaryAccountJoint, can only be OTHER. Should only be specified if updating the status to CANCELLED. - */ - reason?: string; - /** - * 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. - */ - reason_description?: string; - /** - * The users the account will be joint with. - */ - all_co_owner: Array; - /** - * The settings of the MonetaryAccountJoint. - */ - setting?: IMonetaryAccountSetting; + /** + * The currency of the MonetaryAccountJoint as an ISO 4217 formatted currency code. + */ + currency: string; + /** + * The description of the MonetaryAccountJoint. Defaults to 'bunq account'. + */ + description?: string; + /** + * The daily spending limit Amount of the MonetaryAccountJoint. Defaults to 1000 EUR. Currency must match the MonetaryAccountJoint's currency. Limited to 10000 EUR. + */ + daily_limit?: IAmount; + /** + * The maximum Amount the MonetaryAccountJoint can be 'in the red'. Must be 0 EUR or omitted. + */ + overdraft_limit?: IAmount; + /** + * The Aliases to add to MonetaryAccountJoint. Must all be confirmed first. Can mostly be ignored. + */ + alias?: Array; + /** + * The UUID of the Avatar of the MonetaryAccountJoint. + */ + avatar_uuid?: string; + /** + * The status of the MonetaryAccountJoint. Ignored in POST requests (always set to ACTIVE) can be CANCELLED or PENDING_REOPEN in PUT requests to cancel (close) or reopen the MonetaryAccountJoint. When updating the status and/or sub_status no other fields can be updated in the same request (and vice versa). + */ + status?: string; + /** + * The sub-status of the MonetaryAccountJoint providing extra information regarding the status. Should be ignored for POST requests. In case of PUT requests with status CANCELLED it can only be REDEMPTION_VOLUNTARY, while with status PENDING_REOPEN it can only be NONE. When updating the status and/or sub_status no other fields can be updated in the same request (and vice versa). + */ + sub_status?: string; + /** + * The reason for voluntarily cancelling (closing) the MonetaryAccountJoint, can only be OTHER. Should only be specified if updating the status to CANCELLED. + */ + reason?: string; + /** + * 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. + */ + reason_description?: string; + /** + * The users the account will be joint with. + */ + all_co_owner: Array; + /** + * The settings of the MonetaryAccountJoint. + */ + setting?: IMonetaryAccountSetting; } export interface IMonetaryAccountBankUpdate { - /** - * The id of the created item - */ - readonly Id?: BunqId; + /** + * The id of the created item + */ + readonly Id?: BunqId; } export interface IMonetaryAccountBankRead { - /** - * The id of the MonetaryAccountBank. - */ - readonly id?: number; - /** - * The timestamp of the MonetaryAccountBank's creation. - */ - readonly created?: string; - /** - * The timestamp of the MonetaryAccountBank's last update. - */ - readonly updated?: string; - /** - * The Avatar of the MonetaryAccountBank. - */ - readonly avatar?: IAvatar; - /** - * The currency of the MonetaryAccountBank as an ISO 4217 formatted currency code. - */ - readonly currency?: string; - /** - * The description of the MonetaryAccountBank. Defaults to 'bunq account'. - */ - readonly description?: string; - /** - * The daily spending limit Amount of the MonetaryAccountBank. Defaults to 1000 EUR. Currency must match the MonetaryAccountBank's currency. Limited to 10000 EUR. - */ - readonly daily_limit?: IAmount; - /** - * The maximum Amount the MonetaryAccountBank can be 'in the red'. - */ - readonly overdraft_limit?: IAmount; - /** - * The current available balance Amount of the MonetaryAccountBank. - */ - readonly balance?: IAmount; - /** - * The Aliases for the MonetaryAccountBank. - */ - readonly alias?: Array; - /** - * The MonetaryAccountBank's public UUID. - */ - readonly public_uuid?: string; - /** - * The status of the MonetaryAccountBank. Can be: ACTIVE, BLOCKED, CANCELLED or PENDING_REOPEN - */ - readonly status?: string; - /** - * The sub-status of the MonetaryAccountBank providing extra information regarding the status. Will be NONE for ACTIVE or PENDING_REOPEN, COMPLETELY or ONLY_ACCEPTING_INCOMING for BLOCKED and REDEMPTION_INVOLUNTARY, REDEMPTION_VOLUNTARY or PERMANENT for CANCELLED. - */ - readonly sub_status?: string; - /** - * The reason for voluntarily cancelling (closing) the MonetaryAccountBank, can only be OTHER. - */ - readonly reason?: string; - /** - * The optional free-form reason for voluntarily cancelling (closing) the MonetaryAccountBank. Can be any user provided message. - */ - readonly reason_description?: string; - /** - * The id of the User who owns the MonetaryAccountBank. - */ - readonly user_id?: number; - /** - * The profile of the account. - */ - readonly monetary_account_profile?: IMonetaryAccountProfile; - /** - * The legal name of the user / company using this monetary account. - */ - readonly display_name?: string; - /** - * The settings of the MonetaryAccountBank. - */ - readonly setting?: IMonetaryAccountSetting; - /** - * The id of the AutoSave. - */ - readonly auto_save_id?: number; - /** - * The ids of the AutoSave. - */ - readonly all_auto_save_id?: Array; + /** + * The id of the MonetaryAccountBank. + */ + readonly id?: number; + /** + * The timestamp of the MonetaryAccountBank's creation. + */ + readonly created?: string; + /** + * The timestamp of the MonetaryAccountBank's last update. + */ + readonly updated?: string; + /** + * The Avatar of the MonetaryAccountBank. + */ + readonly avatar?: IAvatar; + /** + * The currency of the MonetaryAccountBank as an ISO 4217 formatted currency code. + */ + readonly currency?: string; + /** + * The description of the MonetaryAccountBank. Defaults to 'bunq account'. + */ + readonly description?: string; + /** + * The daily spending limit Amount of the MonetaryAccountBank. Defaults to 1000 EUR. Currency must match the MonetaryAccountBank's currency. Limited to 10000 EUR. + */ + readonly daily_limit?: IAmount; + /** + * The maximum Amount the MonetaryAccountBank can be 'in the red'. + */ + readonly overdraft_limit?: IAmount; + /** + * The current available balance Amount of the MonetaryAccountBank. + */ + readonly balance?: IAmount; + /** + * The Aliases for the MonetaryAccountBank. + */ + readonly alias?: Array; + /** + * The MonetaryAccountBank's public UUID. + */ + readonly public_uuid?: string; + /** + * The status of the MonetaryAccountBank. Can be: ACTIVE, BLOCKED, CANCELLED or PENDING_REOPEN + */ + readonly status?: string; + /** + * The sub-status of the MonetaryAccountBank providing extra information regarding the status. Will be NONE for ACTIVE or PENDING_REOPEN, COMPLETELY or ONLY_ACCEPTING_INCOMING for BLOCKED and REDEMPTION_INVOLUNTARY, REDEMPTION_VOLUNTARY or PERMANENT for CANCELLED. + */ + readonly sub_status?: string; + /** + * The reason for voluntarily cancelling (closing) the MonetaryAccountBank, can only be OTHER. + */ + readonly reason?: string; + /** + * The optional free-form reason for voluntarily cancelling (closing) the MonetaryAccountBank. Can be any user provided message. + */ + readonly reason_description?: string; + /** + * The id of the User who owns the MonetaryAccountBank. + */ + readonly user_id?: number; + /** + * The profile of the account. + */ + readonly monetary_account_profile?: IMonetaryAccountProfile; + /** + * The legal name of the user / company using this monetary account. + */ + readonly display_name?: string; + /** + * The settings of the MonetaryAccountBank. + */ + readonly setting?: IMonetaryAccountSetting; + /** + * The id of the AutoSave. + */ + readonly auto_save_id?: number; + /** + * The ids of the AutoSave. + */ + readonly all_auto_save_id?: Array; } export interface IMonetaryAccountBankListing { - /** - * The id of the MonetaryAccountBank. - */ - readonly id?: number; - /** - * The timestamp of the MonetaryAccountBank's creation. - */ - readonly created?: string; - /** - * The timestamp of the MonetaryAccountBank's last update. - */ - readonly updated?: string; - /** - * The Avatar of the MonetaryAccountBank. - */ - readonly avatar?: IAvatar; - /** - * The currency of the MonetaryAccountBank as an ISO 4217 formatted currency code. - */ - readonly currency?: string; - /** - * The description of the MonetaryAccountBank. Defaults to 'bunq account'. - */ - readonly description?: string; - /** - * The daily spending limit Amount of the MonetaryAccountBank. Defaults to 1000 EUR. Currency must match the MonetaryAccountBank's currency. Limited to 10000 EUR. - */ - readonly daily_limit?: IAmount; - /** - * The maximum Amount the MonetaryAccountBank can be 'in the red'. - */ - readonly overdraft_limit?: IAmount; - /** - * The current available balance Amount of the MonetaryAccountBank. - */ - readonly balance?: IAmount; - /** - * The Aliases for the MonetaryAccountBank. - */ - readonly alias?: Array; - /** - * The MonetaryAccountBank's public UUID. - */ - readonly public_uuid?: string; - /** - * The status of the MonetaryAccountBank. Can be: ACTIVE, BLOCKED, CANCELLED or PENDING_REOPEN - */ - readonly status?: string; - /** - * The sub-status of the MonetaryAccountBank providing extra information regarding the status. Will be NONE for ACTIVE or PENDING_REOPEN, COMPLETELY or ONLY_ACCEPTING_INCOMING for BLOCKED and REDEMPTION_INVOLUNTARY, REDEMPTION_VOLUNTARY or PERMANENT for CANCELLED. - */ - readonly sub_status?: string; - /** - * The reason for voluntarily cancelling (closing) the MonetaryAccountBank, can only be OTHER. - */ - readonly reason?: string; - /** - * The optional free-form reason for voluntarily cancelling (closing) the MonetaryAccountBank. Can be any user provided message. - */ - readonly reason_description?: string; - /** - * The id of the User who owns the MonetaryAccountBank. - */ - readonly user_id?: number; - /** - * The profile of the account. - */ - readonly monetary_account_profile?: IMonetaryAccountProfile; - /** - * The legal name of the user / company using this monetary account. - */ - readonly display_name?: string; - /** - * The settings of the MonetaryAccountBank. - */ - readonly setting?: IMonetaryAccountSetting; - /** - * The id of the AutoSave. - */ - readonly auto_save_id?: number; - /** - * The ids of the AutoSave. - */ - readonly all_auto_save_id?: Array; + /** + * The id of the MonetaryAccountBank. + */ + readonly id?: number; + /** + * The timestamp of the MonetaryAccountBank's creation. + */ + readonly created?: string; + /** + * The timestamp of the MonetaryAccountBank's last update. + */ + readonly updated?: string; + /** + * The Avatar of the MonetaryAccountBank. + */ + readonly avatar?: IAvatar; + /** + * The currency of the MonetaryAccountBank as an ISO 4217 formatted currency code. + */ + readonly currency?: string; + /** + * The description of the MonetaryAccountBank. Defaults to 'bunq account'. + */ + readonly description?: string; + /** + * The daily spending limit Amount of the MonetaryAccountBank. Defaults to 1000 EUR. Currency must match the MonetaryAccountBank's currency. Limited to 10000 EUR. + */ + readonly daily_limit?: IAmount; + /** + * The maximum Amount the MonetaryAccountBank can be 'in the red'. + */ + readonly overdraft_limit?: IAmount; + /** + * The current available balance Amount of the MonetaryAccountBank. + */ + readonly balance?: IAmount; + /** + * The Aliases for the MonetaryAccountBank. + */ + readonly alias?: Array; + /** + * The MonetaryAccountBank's public UUID. + */ + readonly public_uuid?: string; + /** + * The status of the MonetaryAccountBank. Can be: ACTIVE, BLOCKED, CANCELLED or PENDING_REOPEN + */ + readonly status?: string; + /** + * The sub-status of the MonetaryAccountBank providing extra information regarding the status. Will be NONE for ACTIVE or PENDING_REOPEN, COMPLETELY or ONLY_ACCEPTING_INCOMING for BLOCKED and REDEMPTION_INVOLUNTARY, REDEMPTION_VOLUNTARY or PERMANENT for CANCELLED. + */ + readonly sub_status?: string; + /** + * The reason for voluntarily cancelling (closing) the MonetaryAccountBank, can only be OTHER. + */ + readonly reason?: string; + /** + * The optional free-form reason for voluntarily cancelling (closing) the MonetaryAccountBank. Can be any user provided message. + */ + readonly reason_description?: string; + /** + * The id of the User who owns the MonetaryAccountBank. + */ + readonly user_id?: number; + /** + * The profile of the account. + */ + readonly monetary_account_profile?: IMonetaryAccountProfile; + /** + * The legal name of the user / company using this monetary account. + */ + readonly display_name?: string; + /** + * The settings of the MonetaryAccountBank. + */ + readonly setting?: IMonetaryAccountSetting; + /** + * The id of the AutoSave. + */ + readonly auto_save_id?: number; + /** + * The ids of the AutoSave. + */ + readonly all_auto_save_id?: Array; } export interface IMonetaryAccountBankCreate { - /** - * The id of the created item - */ - readonly Id?: BunqId; + /** + * The id of the created item + */ + readonly Id?: BunqId; } export interface IMonetaryAccountBank { - /** - * The currency of the MonetaryAccountBank as an ISO 4217 formatted currency code. - */ - currency: string; - /** - * The description of the MonetaryAccountBank. Defaults to 'bunq account'. - */ - description?: string; - /** - * The daily spending limit Amount of the MonetaryAccountBank. Defaults to 1000 EUR. Currency must match the MonetaryAccountBank's currency. Limited to 10000 EUR. - */ - daily_limit?: IAmount; - /** - * The UUID of the Avatar of the MonetaryAccountBank. - */ - avatar_uuid?: string; - /** - * The status of the MonetaryAccountBank. Ignored in POST requests (always set to ACTIVE) can be CANCELLED or PENDING_REOPEN in PUT requests to cancel (close) or reopen the MonetaryAccountBank. When updating the status and/or sub_status no other fields can be updated in the same request (and vice versa). - */ - status?: string; - /** - * The sub-status of the MonetaryAccountBank providing extra information regarding the status. Should be ignored for POST requests. In case of PUT requests with status CANCELLED it can only be REDEMPTION_VOLUNTARY, while with status PENDING_REOPEN it can only be NONE. When updating the status and/or sub_status no other fields can be updated in the same request (and vice versa). - */ - sub_status?: string; - /** - * The reason for voluntarily cancelling (closing) the MonetaryAccountBank, can only be OTHER. Should only be specified if updating the status to CANCELLED. - */ - reason?: string; - /** - * 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. - */ - reason_description?: string; - /** - * The legal name of the user / company using this monetary account. - */ - display_name?: string; - /** - * The settings of the MonetaryAccountBank. - */ - setting?: IMonetaryAccountSetting; + /** + * The currency of the MonetaryAccountBank as an ISO 4217 formatted currency code. + */ + currency: string; + /** + * The description of the MonetaryAccountBank. Defaults to 'bunq account'. + */ + description?: string; + /** + * The daily spending limit Amount of the MonetaryAccountBank. Defaults to 1000 EUR. Currency must match the MonetaryAccountBank's currency. Limited to 10000 EUR. + */ + daily_limit?: IAmount; + /** + * The UUID of the Avatar of the MonetaryAccountBank. + */ + avatar_uuid?: string; + /** + * The status of the MonetaryAccountBank. Ignored in POST requests (always set to ACTIVE) can be CANCELLED or PENDING_REOPEN in PUT requests to cancel (close) or reopen the MonetaryAccountBank. When updating the status and/or sub_status no other fields can be updated in the same request (and vice versa). + */ + status?: string; + /** + * The sub-status of the MonetaryAccountBank providing extra information regarding the status. Should be ignored for POST requests. In case of PUT requests with status CANCELLED it can only be REDEMPTION_VOLUNTARY, while with status PENDING_REOPEN it can only be NONE. When updating the status and/or sub_status no other fields can be updated in the same request (and vice versa). + */ + sub_status?: string; + /** + * The reason for voluntarily cancelling (closing) the MonetaryAccountBank, can only be OTHER. Should only be specified if updating the status to CANCELLED. + */ + reason?: string; + /** + * 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. + */ + reason_description?: string; + /** + * The legal name of the user / company using this monetary account. + */ + display_name?: string; + /** + * The settings of the MonetaryAccountBank. + */ + setting?: IMonetaryAccountSetting; } export interface IMasterCardActionRead { - /** - * The id of the MastercardAction. - */ - readonly id?: number; - /** - * The id of the monetary account this action links to. - */ - readonly monetary_account_id?: number; - /** - * The id of the card this action links to. - */ - readonly card_id?: number; - /** - * The amount of the transaction in local currency. - */ - readonly amount_local?: IAmount; - /** - * The amount of the transaction in local currency. - */ - readonly amount_converted?: IAmount; - /** - * The amount of the transaction in the monetary account's currency. - */ - readonly amount_billing?: IAmount; - /** - * The original amount in local currency. - */ - readonly amount_original_local?: IAmount; - /** - * The original amount in the monetary account's currency. - */ - readonly amount_original_billing?: IAmount; - /** - * The fee amount as charged by the merchant, if applicable. - */ - readonly amount_fee?: IAmount; - /** - * The response code by which authorised transaction can be identified as authorised by bunq. - */ - readonly card_authorisation_id_response?: string; - /** - * Why the transaction was denied, if it was denied, or just ALLOWED. - */ - readonly decision?: string; - /** - * The payment status of the transaction. For example PAYMENT_SUCCESSFUL, for a successful payment. - */ - readonly payment_status?: string; - /** - * Empty if allowed, otherwise a textual explanation of why it was denied. - */ - readonly decision_description?: string; - /** - * Empty if allowed, otherwise a textual explanation of why it was denied in user's language. - */ - readonly decision_description_translated?: string; - /** - * The description for this transaction to display. - */ - readonly description?: string; - /** - * The status in the authorisation process. - */ - readonly authorisation_status?: string; - /** - * The type of transaction that was delivered using the card. - */ - readonly authorisation_type?: string; - /** - * The type of entry mode the user used. Can be 'ATM', 'ICC', 'MAGNETIC_STRIPE' or 'E_COMMERCE'. - */ - readonly pan_entry_mode_user?: string; - /** - * The setlement status in the authorisation process. - */ - readonly settlement_status?: string; - /** - * The clearing status of the authorisation. Can be 'PENDING', 'FIRST_PRESENTMENT_COMPLETE' or 'REFUND_LENIENCY'. - */ - readonly clearing_status?: string; - /** - * The maturity date. - */ - readonly maturity_date?: string; - /** - * The city where the message originates from as announced by the terminal. - */ - readonly city?: string; - /** - * The monetary account label of the account that this action is created for. - */ - readonly alias?: ILabelMonetaryAccount; - /** - * The monetary account label of the counterparty. - */ - readonly counterparty_alias?: ILabelMonetaryAccount; - /** - * The label of the card. - */ - readonly label_card?: ILabelCard; - /** - * If this is a tokenisation action, this shows the status of the token. - */ - readonly token_status?: string; - /** - * If this is a reservation, the moment the reservation will expire. - */ - readonly reservation_expiry_time?: string; - /** - * The time when the processing of the clearing is expired, refunding the authorisation. - */ - readonly clearing_expiry_time?: string; - /** - * The type of the limit applied to validate if this MasterCardAction was within the spending limits. The returned string matches the limit types as defined in the card endpoint. - */ - readonly applied_limit?: string; - /** - * Whether or not chat messages are allowed. - */ - readonly allow_chat?: boolean; - /** - * The secure code id for this mastercard action or null. - */ - readonly secure_code_id?: number; - /** - * The ID of the wallet provider as defined by MasterCard. 420 = bunq Android app with Tap&Pay; 103 = Apple Pay. - */ - readonly wallet_provider_id?: string; - /** - * The reference to the object used for split the bill. Can be RequestInquiry or RequestInquiryBatch - */ - readonly request_reference_split_the_bill?: Array; + /** + * The id of the MastercardAction. + */ + readonly id?: number; + /** + * The id of the monetary account this action links to. + */ + readonly monetary_account_id?: number; + /** + * The id of the card this action links to. + */ + readonly card_id?: number; + /** + * The amount of the transaction in local currency. + */ + readonly amount_local?: IAmount; + /** + * The amount of the transaction in local currency. + */ + readonly amount_converted?: IAmount; + /** + * The amount of the transaction in the monetary account's currency. + */ + readonly amount_billing?: IAmount; + /** + * The original amount in local currency. + */ + readonly amount_original_local?: IAmount; + /** + * The original amount in the monetary account's currency. + */ + readonly amount_original_billing?: IAmount; + /** + * The fee amount as charged by the merchant, if applicable. + */ + readonly amount_fee?: IAmount; + /** + * The response code by which authorised transaction can be identified as authorised by bunq. + */ + readonly card_authorisation_id_response?: string; + /** + * Why the transaction was denied, if it was denied, or just ALLOWED. + */ + readonly decision?: string; + /** + * The payment status of the transaction. For example PAYMENT_SUCCESSFUL, for a successful payment. + */ + readonly payment_status?: string; + /** + * Empty if allowed, otherwise a textual explanation of why it was denied. + */ + readonly decision_description?: string; + /** + * Empty if allowed, otherwise a textual explanation of why it was denied in user's language. + */ + readonly decision_description_translated?: string; + /** + * The description for this transaction to display. + */ + readonly description?: string; + /** + * The status in the authorisation process. + */ + readonly authorisation_status?: string; + /** + * The type of transaction that was delivered using the card. + */ + readonly authorisation_type?: string; + /** + * The type of entry mode the user used. Can be 'ATM', 'ICC', 'MAGNETIC_STRIPE' or 'E_COMMERCE'. + */ + readonly pan_entry_mode_user?: string; + /** + * The setlement status in the authorisation process. + */ + readonly settlement_status?: string; + /** + * The clearing status of the authorisation. Can be 'PENDING', 'FIRST_PRESENTMENT_COMPLETE' or 'REFUND_LENIENCY'. + */ + readonly clearing_status?: string; + /** + * The maturity date. + */ + readonly maturity_date?: string; + /** + * The city where the message originates from as announced by the terminal. + */ + readonly city?: string; + /** + * The monetary account label of the account that this action is created for. + */ + readonly alias?: ILabelMonetaryAccount; + /** + * The monetary account label of the counterparty. + */ + readonly counterparty_alias?: ILabelMonetaryAccount; + /** + * The label of the card. + */ + readonly label_card?: ILabelCard; + /** + * If this is a tokenisation action, this shows the status of the token. + */ + readonly token_status?: string; + /** + * If this is a reservation, the moment the reservation will expire. + */ + readonly reservation_expiry_time?: string; + /** + * The time when the processing of the clearing is expired, refunding the authorisation. + */ + readonly clearing_expiry_time?: string; + /** + * The type of the limit applied to validate if this MasterCardAction was within the spending limits. The returned string matches the limit types as defined in the card endpoint. + */ + readonly applied_limit?: string; + /** + * Whether or not chat messages are allowed. + */ + readonly allow_chat?: boolean; + /** + * The secure code id for this mastercard action or null. + */ + readonly secure_code_id?: number; + /** + * The ID of the wallet provider as defined by MasterCard. 420 = bunq Android app with Tap&Pay; 103 = Apple Pay. + */ + readonly wallet_provider_id?: string; + /** + * The reference to the object used for split the bill. Can be RequestInquiry or RequestInquiryBatch + */ + readonly request_reference_split_the_bill?: Array; } export interface IMasterCardActionListing { - /** - * The id of the MastercardAction. - */ - readonly id?: number; - /** - * The id of the monetary account this action links to. - */ - readonly monetary_account_id?: number; - /** - * The id of the card this action links to. - */ - readonly card_id?: number; - /** - * The amount of the transaction in local currency. - */ - readonly amount_local?: IAmount; - /** - * The amount of the transaction in local currency. - */ - readonly amount_converted?: IAmount; - /** - * The amount of the transaction in the monetary account's currency. - */ - readonly amount_billing?: IAmount; - /** - * The original amount in local currency. - */ - readonly amount_original_local?: IAmount; - /** - * The original amount in the monetary account's currency. - */ - readonly amount_original_billing?: IAmount; - /** - * The fee amount as charged by the merchant, if applicable. - */ - readonly amount_fee?: IAmount; - /** - * The response code by which authorised transaction can be identified as authorised by bunq. - */ - readonly card_authorisation_id_response?: string; - /** - * Why the transaction was denied, if it was denied, or just ALLOWED. - */ - readonly decision?: string; - /** - * The payment status of the transaction. For example PAYMENT_SUCCESSFUL, for a successful payment. - */ - readonly payment_status?: string; - /** - * Empty if allowed, otherwise a textual explanation of why it was denied. - */ - readonly decision_description?: string; - /** - * Empty if allowed, otherwise a textual explanation of why it was denied in user's language. - */ - readonly decision_description_translated?: string; - /** - * The description for this transaction to display. - */ - readonly description?: string; - /** - * The status in the authorisation process. - */ - readonly authorisation_status?: string; - /** - * The type of transaction that was delivered using the card. - */ - readonly authorisation_type?: string; - /** - * The type of entry mode the user used. Can be 'ATM', 'ICC', 'MAGNETIC_STRIPE' or 'E_COMMERCE'. - */ - readonly pan_entry_mode_user?: string; - /** - * The setlement status in the authorisation process. - */ - readonly settlement_status?: string; - /** - * The clearing status of the authorisation. Can be 'PENDING', 'FIRST_PRESENTMENT_COMPLETE' or 'REFUND_LENIENCY'. - */ - readonly clearing_status?: string; - /** - * The maturity date. - */ - readonly maturity_date?: string; - /** - * The city where the message originates from as announced by the terminal. - */ - readonly city?: string; - /** - * The monetary account label of the account that this action is created for. - */ - readonly alias?: ILabelMonetaryAccount; - /** - * The monetary account label of the counterparty. - */ - readonly counterparty_alias?: ILabelMonetaryAccount; - /** - * The label of the card. - */ - readonly label_card?: ILabelCard; - /** - * If this is a tokenisation action, this shows the status of the token. - */ - readonly token_status?: string; - /** - * If this is a reservation, the moment the reservation will expire. - */ - readonly reservation_expiry_time?: string; - /** - * The time when the processing of the clearing is expired, refunding the authorisation. - */ - readonly clearing_expiry_time?: string; - /** - * The type of the limit applied to validate if this MasterCardAction was within the spending limits. The returned string matches the limit types as defined in the card endpoint. - */ - readonly applied_limit?: string; - /** - * Whether or not chat messages are allowed. - */ - readonly allow_chat?: boolean; - /** - * The secure code id for this mastercard action or null. - */ - readonly secure_code_id?: number; - /** - * The ID of the wallet provider as defined by MasterCard. 420 = bunq Android app with Tap&Pay; 103 = Apple Pay. - */ - readonly wallet_provider_id?: string; - /** - * The reference to the object used for split the bill. Can be RequestInquiry or RequestInquiryBatch - */ - readonly request_reference_split_the_bill?: Array; + /** + * The id of the MastercardAction. + */ + readonly id?: number; + /** + * The id of the monetary account this action links to. + */ + readonly monetary_account_id?: number; + /** + * The id of the card this action links to. + */ + readonly card_id?: number; + /** + * The amount of the transaction in local currency. + */ + readonly amount_local?: IAmount; + /** + * The amount of the transaction in local currency. + */ + readonly amount_converted?: IAmount; + /** + * The amount of the transaction in the monetary account's currency. + */ + readonly amount_billing?: IAmount; + /** + * The original amount in local currency. + */ + readonly amount_original_local?: IAmount; + /** + * The original amount in the monetary account's currency. + */ + readonly amount_original_billing?: IAmount; + /** + * The fee amount as charged by the merchant, if applicable. + */ + readonly amount_fee?: IAmount; + /** + * The response code by which authorised transaction can be identified as authorised by bunq. + */ + readonly card_authorisation_id_response?: string; + /** + * Why the transaction was denied, if it was denied, or just ALLOWED. + */ + readonly decision?: string; + /** + * The payment status of the transaction. For example PAYMENT_SUCCESSFUL, for a successful payment. + */ + readonly payment_status?: string; + /** + * Empty if allowed, otherwise a textual explanation of why it was denied. + */ + readonly decision_description?: string; + /** + * Empty if allowed, otherwise a textual explanation of why it was denied in user's language. + */ + readonly decision_description_translated?: string; + /** + * The description for this transaction to display. + */ + readonly description?: string; + /** + * The status in the authorisation process. + */ + readonly authorisation_status?: string; + /** + * The type of transaction that was delivered using the card. + */ + readonly authorisation_type?: string; + /** + * The type of entry mode the user used. Can be 'ATM', 'ICC', 'MAGNETIC_STRIPE' or 'E_COMMERCE'. + */ + readonly pan_entry_mode_user?: string; + /** + * The setlement status in the authorisation process. + */ + readonly settlement_status?: string; + /** + * The clearing status of the authorisation. Can be 'PENDING', 'FIRST_PRESENTMENT_COMPLETE' or 'REFUND_LENIENCY'. + */ + readonly clearing_status?: string; + /** + * The maturity date. + */ + readonly maturity_date?: string; + /** + * The city where the message originates from as announced by the terminal. + */ + readonly city?: string; + /** + * The monetary account label of the account that this action is created for. + */ + readonly alias?: ILabelMonetaryAccount; + /** + * The monetary account label of the counterparty. + */ + readonly counterparty_alias?: ILabelMonetaryAccount; + /** + * The label of the card. + */ + readonly label_card?: ILabelCard; + /** + * If this is a tokenisation action, this shows the status of the token. + */ + readonly token_status?: string; + /** + * If this is a reservation, the moment the reservation will expire. + */ + readonly reservation_expiry_time?: string; + /** + * The time when the processing of the clearing is expired, refunding the authorisation. + */ + readonly clearing_expiry_time?: string; + /** + * The type of the limit applied to validate if this MasterCardAction was within the spending limits. The returned string matches the limit types as defined in the card endpoint. + */ + readonly applied_limit?: string; + /** + * Whether or not chat messages are allowed. + */ + readonly allow_chat?: boolean; + /** + * The secure code id for this mastercard action or null. + */ + readonly secure_code_id?: number; + /** + * The ID of the wallet provider as defined by MasterCard. 420 = bunq Android app with Tap&Pay; 103 = Apple Pay. + */ + readonly wallet_provider_id?: string; + /** + * The reference to the object used for split the bill. Can be RequestInquiry or RequestInquiryBatch + */ + readonly request_reference_split_the_bill?: Array; } export interface IMasterCardAction { - /** - * The id of the MastercardAction. - */ - readonly id?: number; - /** - * The id of the monetary account this action links to. - */ - readonly monetary_account_id?: number; - /** - * The id of the card this action links to. - */ - readonly card_id?: number; - /** - * The amount of the transaction in local currency. - */ - readonly amount_local?: IAmount; - /** - * The amount of the transaction in local currency. - */ - readonly amount_converted?: IAmount; - /** - * The amount of the transaction in the monetary account's currency. - */ - readonly amount_billing?: IAmount; - /** - * The original amount in local currency. - */ - readonly amount_original_local?: IAmount; - /** - * The original amount in the monetary account's currency. - */ - readonly amount_original_billing?: IAmount; - /** - * The fee amount as charged by the merchant, if applicable. - */ - readonly amount_fee?: IAmount; - /** - * The response code by which authorised transaction can be identified as authorised by bunq. - */ - readonly card_authorisation_id_response?: string; - /** - * Why the transaction was denied, if it was denied, or just ALLOWED. - */ - readonly decision?: string; - /** - * The payment status of the transaction. For example PAYMENT_SUCCESSFUL, for a successful payment. - */ - readonly payment_status?: string; - /** - * Empty if allowed, otherwise a textual explanation of why it was denied. - */ - readonly decision_description?: string; - /** - * Empty if allowed, otherwise a textual explanation of why it was denied in user's language. - */ - readonly decision_description_translated?: string; - /** - * The description for this transaction to display. - */ - readonly description?: string; - /** - * The status in the authorisation process. - */ - readonly authorisation_status?: string; - /** - * The type of transaction that was delivered using the card. - */ - readonly authorisation_type?: string; - /** - * The type of entry mode the user used. Can be 'ATM', 'ICC', 'MAGNETIC_STRIPE' or 'E_COMMERCE'. - */ - readonly pan_entry_mode_user?: string; - /** - * The setlement status in the authorisation process. - */ - readonly settlement_status?: string; - /** - * The clearing status of the authorisation. Can be 'PENDING', 'FIRST_PRESENTMENT_COMPLETE' or 'REFUND_LENIENCY'. - */ - readonly clearing_status?: string; - /** - * The maturity date. - */ - readonly maturity_date?: string; - /** - * The city where the message originates from as announced by the terminal. - */ - readonly city?: string; - /** - * The monetary account label of the account that this action is created for. - */ - readonly alias?: ILabelMonetaryAccount; - /** - * The monetary account label of the counterparty. - */ - readonly counterparty_alias?: ILabelMonetaryAccount; - /** - * The label of the card. - */ - readonly label_card?: ILabelCard; - /** - * If this is a tokenisation action, this shows the status of the token. - */ - readonly token_status?: string; - /** - * If this is a reservation, the moment the reservation will expire. - */ - readonly reservation_expiry_time?: string; - /** - * The time when the processing of the clearing is expired, refunding the authorisation. - */ - readonly clearing_expiry_time?: string; - /** - * The type of the limit applied to validate if this MasterCardAction was within the spending limits. The returned string matches the limit types as defined in the card endpoint. - */ - readonly applied_limit?: string; - /** - * Whether or not chat messages are allowed. - */ - readonly allow_chat?: boolean; - /** - * The secure code id for this mastercard action or null. - */ - readonly secure_code_id?: number; - /** - * The ID of the wallet provider as defined by MasterCard. 420 = bunq Android app with Tap&Pay; 103 = Apple Pay. - */ - readonly wallet_provider_id?: string; - /** - * The reference to the object used for split the bill. Can be RequestInquiry or RequestInquiryBatch - */ - readonly request_reference_split_the_bill?: Array; + /** + * The id of the MastercardAction. + */ + readonly id?: number; + /** + * The id of the monetary account this action links to. + */ + readonly monetary_account_id?: number; + /** + * The id of the card this action links to. + */ + readonly card_id?: number; + /** + * The amount of the transaction in local currency. + */ + readonly amount_local?: IAmount; + /** + * The amount of the transaction in local currency. + */ + readonly amount_converted?: IAmount; + /** + * The amount of the transaction in the monetary account's currency. + */ + readonly amount_billing?: IAmount; + /** + * The original amount in local currency. + */ + readonly amount_original_local?: IAmount; + /** + * The original amount in the monetary account's currency. + */ + readonly amount_original_billing?: IAmount; + /** + * The fee amount as charged by the merchant, if applicable. + */ + readonly amount_fee?: IAmount; + /** + * The response code by which authorised transaction can be identified as authorised by bunq. + */ + readonly card_authorisation_id_response?: string; + /** + * Why the transaction was denied, if it was denied, or just ALLOWED. + */ + readonly decision?: string; + /** + * The payment status of the transaction. For example PAYMENT_SUCCESSFUL, for a successful payment. + */ + readonly payment_status?: string; + /** + * Empty if allowed, otherwise a textual explanation of why it was denied. + */ + readonly decision_description?: string; + /** + * Empty if allowed, otherwise a textual explanation of why it was denied in user's language. + */ + readonly decision_description_translated?: string; + /** + * The description for this transaction to display. + */ + readonly description?: string; + /** + * The status in the authorisation process. + */ + readonly authorisation_status?: string; + /** + * The type of transaction that was delivered using the card. + */ + readonly authorisation_type?: string; + /** + * The type of entry mode the user used. Can be 'ATM', 'ICC', 'MAGNETIC_STRIPE' or 'E_COMMERCE'. + */ + readonly pan_entry_mode_user?: string; + /** + * The setlement status in the authorisation process. + */ + readonly settlement_status?: string; + /** + * The clearing status of the authorisation. Can be 'PENDING', 'FIRST_PRESENTMENT_COMPLETE' or 'REFUND_LENIENCY'. + */ + readonly clearing_status?: string; + /** + * The maturity date. + */ + readonly maturity_date?: string; + /** + * The city where the message originates from as announced by the terminal. + */ + readonly city?: string; + /** + * The monetary account label of the account that this action is created for. + */ + readonly alias?: ILabelMonetaryAccount; + /** + * The monetary account label of the counterparty. + */ + readonly counterparty_alias?: ILabelMonetaryAccount; + /** + * The label of the card. + */ + readonly label_card?: ILabelCard; + /** + * If this is a tokenisation action, this shows the status of the token. + */ + readonly token_status?: string; + /** + * If this is a reservation, the moment the reservation will expire. + */ + readonly reservation_expiry_time?: string; + /** + * The time when the processing of the clearing is expired, refunding the authorisation. + */ + readonly clearing_expiry_time?: string; + /** + * The type of the limit applied to validate if this MasterCardAction was within the spending limits. The returned string matches the limit types as defined in the card endpoint. + */ + readonly applied_limit?: string; + /** + * Whether or not chat messages are allowed. + */ + readonly allow_chat?: boolean; + /** + * The secure code id for this mastercard action or null. + */ + readonly secure_code_id?: number; + /** + * The ID of the wallet provider as defined by MasterCard. 420 = bunq Android app with Tap&Pay; 103 = Apple Pay. + */ + readonly wallet_provider_id?: string; + /** + * The reference to the object used for split the bill. Can be RequestInquiry or RequestInquiryBatch + */ + readonly request_reference_split_the_bill?: Array; } export interface ILabelUser { - /** - * The public UUID of the label-user. - */ - uuid?: string; - /** - * The name to be displayed for this user, as it was given on the request. - */ - display_name?: string; - /** - * The country of the user. 000 stands for "unknown" - */ - country?: string; - /** - * The current avatar of the user. - */ - readonly avatar?: IAvatar; - /** - * The current nickname of the user. - */ - readonly public_nick_name?: string; + /** + * The public UUID of the label-user. + */ + uuid?: string; + /** + * The name to be displayed for this user, as it was given on the request. + */ + display_name?: string; + /** + * The country of the user. 000 stands for "unknown" + */ + country?: string; + /** + * The current avatar of the user. + */ + readonly avatar?: IAvatar; + /** + * The current nickname of the user. + */ + readonly public_nick_name?: string; } export interface ILabelMonetaryAccount { - /** - * The IBAN of the monetary account. - */ - readonly iban?: string; - /** - * The name to display with this monetary account. - */ - readonly display_name?: string; - /** - * The avatar of the monetary account. - */ - readonly avatar?: IAvatar; - /** - * The user this monetary account belongs to. - */ - readonly label_user?: ILabelUser; - /** - * The country of the user. Formatted as a ISO 3166-1 alpha-2 country code. - */ - readonly country?: string; - /** - * Bunq.me pointer with type and value. - */ - readonly bunq_me?: IPointer; - /** - * Whether or not the monetary account is light. - */ - readonly is_light?: boolean; - /** - * The BIC used for a SWIFT payment. - */ - readonly swift_bic?: string; - /** - * The account number used for a SWIFT payment. May or may not be an IBAN. - */ - readonly swift_account_number?: string; - /** - * The account number used for a Transferwise payment. May or may not be an IBAN. - */ - readonly transferwise_account_number?: string; - /** - * The bank code used for a Transferwise payment. May or may not be a BIC. - */ - readonly transferwise_bank_code?: string; - /** - * The merchant category code. - */ - readonly merchant_category_code?: string; + /** + * The IBAN of the monetary account. + */ + readonly iban?: string; + /** + * The name to display with this monetary account. + */ + readonly display_name?: string; + /** + * The avatar of the monetary account. + */ + readonly avatar?: IAvatar; + /** + * The user this monetary account belongs to. + */ + readonly label_user?: ILabelUser; + /** + * The country of the user. Formatted as a ISO 3166-1 alpha-2 country code. + */ + readonly country?: string; + /** + * Bunq.me pointer with type and value. + */ + readonly bunq_me?: IPointer; + /** + * Whether or not the monetary account is light. + */ + readonly is_light?: boolean; + /** + * The BIC used for a SWIFT payment. + */ + readonly swift_bic?: string; + /** + * The account number used for a SWIFT payment. May or may not be an IBAN. + */ + readonly swift_account_number?: string; + /** + * The account number used for a Transferwise payment. May or may not be an IBAN. + */ + readonly transferwise_account_number?: string; + /** + * The bank code used for a Transferwise payment. May or may not be a BIC. + */ + readonly transferwise_bank_code?: string; + /** + * The merchant category code. + */ + readonly merchant_category_code?: string; } export interface ILabelCard { - /** - * The public UUID. - */ - readonly uuid?: string; - /** - * The type of the card. - */ - readonly type?: string; - /** - * The second line on the card. - */ - readonly second_line?: string; - /** - * The date this card will expire. - */ - readonly expiry_date?: string; - /** - * The status of the card. - */ - readonly status?: string; - /** - * The owner of this card. - */ - readonly label_user?: ILabelUser; + /** + * The public UUID. + */ + readonly uuid?: string; + /** + * The type of the card. + */ + readonly type?: string; + /** + * The second line on the card. + */ + readonly second_line?: string; + /** + * The date this card will expire. + */ + readonly expiry_date?: string; + /** + * The status of the card. + */ + readonly status?: string; + /** + * The owner of this card. + */ + readonly label_user?: ILabelUser; } export interface IIssuer { - /** - * The BIC code. - */ - bic?: string; - /** - * The name of the bank. - */ - name?: string; + /** + * The BIC code. + */ + bic?: string; + /** + * The name of the bank. + */ + name?: string; } export interface IInvoiceRead { - /** - * The id of the invoice object. - */ - readonly id?: number; - /** - * The timestamp of the invoice object's creation. - */ - readonly created?: string; - /** - * The timestamp of the invoice object's last update. - */ - readonly updated?: string; - /** - * The invoice date. - */ - readonly invoice_date?: string; - /** - * The invoice number. - */ - readonly invoice_number?: string; - /** - * The invoice status. - */ - readonly status?: string; - /** - * The category to display to the user. - */ - readonly category?: string; - /** - * The invoice item groups. - */ - readonly group?: Array; - /** - * The total discounted item price including VAT. - */ - readonly total_vat_inclusive?: IAmount; - /** - * The total discounted item price excluding VAT. - */ - readonly total_vat_exclusive?: IAmount; - /** - * The VAT on the total discounted item price. - */ - readonly total_vat?: IAmount; - /** - * The label that's displayed to the counterparty with the invoice. Includes user. - */ - readonly alias?: ILabelMonetaryAccount; - /** - * The customer's address. - */ - readonly address?: IAddress; - /** - * The label of the counterparty of the invoice. Includes user. - */ - readonly counterparty_alias?: ILabelMonetaryAccount; - /** - * The company's address. - */ - readonly counterparty_address?: IAddress; - /** - * The company's chamber of commerce number. - */ - readonly chamber_of_commerce_number?: string; - /** - * The company's chamber of commerce number. - */ - readonly vat_number?: string; - /** - * The reference to the object used for split the bill. Can be RequestInquiry or RequestInquiryBatch - */ - readonly request_reference_split_the_bill?: Array; + /** + * The id of the invoice object. + */ + readonly id?: number; + /** + * The timestamp of the invoice object's creation. + */ + readonly created?: string; + /** + * The timestamp of the invoice object's last update. + */ + readonly updated?: string; + /** + * The invoice date. + */ + readonly invoice_date?: string; + /** + * The invoice number. + */ + readonly invoice_number?: string; + /** + * The invoice status. + */ + readonly status?: string; + /** + * The category to display to the user. + */ + readonly category?: string; + /** + * The invoice item groups. + */ + readonly group?: Array; + /** + * The total discounted item price including VAT. + */ + readonly total_vat_inclusive?: IAmount; + /** + * The total discounted item price excluding VAT. + */ + readonly total_vat_exclusive?: IAmount; + /** + * The VAT on the total discounted item price. + */ + readonly total_vat?: IAmount; + /** + * The label that's displayed to the counterparty with the invoice. Includes user. + */ + readonly alias?: ILabelMonetaryAccount; + /** + * The customer's address. + */ + readonly address?: IAddress; + /** + * The label of the counterparty of the invoice. Includes user. + */ + readonly counterparty_alias?: ILabelMonetaryAccount; + /** + * The company's address. + */ + readonly counterparty_address?: IAddress; + /** + * The company's chamber of commerce number. + */ + readonly chamber_of_commerce_number?: string; + /** + * The company's chamber of commerce number. + */ + readonly vat_number?: string; + /** + * The reference to the object used for split the bill. Can be RequestInquiry or RequestInquiryBatch + */ + readonly request_reference_split_the_bill?: Array; } export interface IInvoiceListing { - /** - * The id of the invoice object. - */ - readonly id?: number; - /** - * The timestamp of the invoice object's creation. - */ - readonly created?: string; - /** - * The timestamp of the invoice object's last update. - */ - readonly updated?: string; - /** - * The invoice date. - */ - readonly invoice_date?: string; - /** - * The invoice number. - */ - readonly invoice_number?: string; - /** - * The invoice status. - */ - readonly status?: string; - /** - * The category to display to the user. - */ - readonly category?: string; - /** - * The invoice item groups. - */ - readonly group?: Array; - /** - * The total discounted item price including VAT. - */ - readonly total_vat_inclusive?: IAmount; - /** - * The total discounted item price excluding VAT. - */ - readonly total_vat_exclusive?: IAmount; - /** - * The VAT on the total discounted item price. - */ - readonly total_vat?: IAmount; - /** - * The label that's displayed to the counterparty with the invoice. Includes user. - */ - readonly alias?: ILabelMonetaryAccount; - /** - * The customer's address. - */ - readonly address?: IAddress; - /** - * The label of the counterparty of the invoice. Includes user. - */ - readonly counterparty_alias?: ILabelMonetaryAccount; - /** - * The company's address. - */ - readonly counterparty_address?: IAddress; - /** - * The company's chamber of commerce number. - */ - readonly chamber_of_commerce_number?: string; - /** - * The company's chamber of commerce number. - */ - readonly vat_number?: string; - /** - * The reference to the object used for split the bill. Can be RequestInquiry or RequestInquiryBatch - */ - readonly request_reference_split_the_bill?: Array; + /** + * The id of the invoice object. + */ + readonly id?: number; + /** + * The timestamp of the invoice object's creation. + */ + readonly created?: string; + /** + * The timestamp of the invoice object's last update. + */ + readonly updated?: string; + /** + * The invoice date. + */ + readonly invoice_date?: string; + /** + * The invoice number. + */ + readonly invoice_number?: string; + /** + * The invoice status. + */ + readonly status?: string; + /** + * The category to display to the user. + */ + readonly category?: string; + /** + * The invoice item groups. + */ + readonly group?: Array; + /** + * The total discounted item price including VAT. + */ + readonly total_vat_inclusive?: IAmount; + /** + * The total discounted item price excluding VAT. + */ + readonly total_vat_exclusive?: IAmount; + /** + * The VAT on the total discounted item price. + */ + readonly total_vat?: IAmount; + /** + * The label that's displayed to the counterparty with the invoice. Includes user. + */ + readonly alias?: ILabelMonetaryAccount; + /** + * The customer's address. + */ + readonly address?: IAddress; + /** + * The label of the counterparty of the invoice. Includes user. + */ + readonly counterparty_alias?: ILabelMonetaryAccount; + /** + * The company's address. + */ + readonly counterparty_address?: IAddress; + /** + * The company's chamber of commerce number. + */ + readonly chamber_of_commerce_number?: string; + /** + * The company's chamber of commerce number. + */ + readonly vat_number?: string; + /** + * The reference to the object used for split the bill. Can be RequestInquiry or RequestInquiryBatch + */ + readonly request_reference_split_the_bill?: Array; } export interface IInvoiceItemGroup { - /** - * The type of the invoice item group. - */ - readonly type?: string; - /** - * The description of the type of the invoice item group. - */ - readonly type_description?: string; - /** - * The translated description of the type of the invoice item group. - */ - readonly type_description_translated?: string; - /** - * The identifier of the invoice item group. - */ - readonly instance_description?: string; - /** - * The unit item price excluding VAT. - */ - readonly product_vat_exclusive?: IAmount; - /** - * The unit item price including VAT. - */ - readonly product_vat_inclusive?: IAmount; - /** - * The invoice items in the group. - */ - readonly item?: Array; + /** + * The type of the invoice item group. + */ + readonly type?: string; + /** + * The description of the type of the invoice item group. + */ + readonly type_description?: string; + /** + * The translated description of the type of the invoice item group. + */ + readonly type_description_translated?: string; + /** + * The identifier of the invoice item group. + */ + readonly instance_description?: string; + /** + * The unit item price excluding VAT. + */ + readonly product_vat_exclusive?: IAmount; + /** + * The unit item price including VAT. + */ + readonly product_vat_inclusive?: IAmount; + /** + * The invoice items in the group. + */ + readonly item?: Array; } export interface IInvoiceItem { - /** - * The billing date of the item. - */ - readonly billing_date?: string; - /** - * The price description. - */ - readonly type_description?: string; - /** - * The translated price description. - */ - readonly type_description_translated?: string; - /** - * The unit item price excluding VAT. - */ - readonly unit_vat_exclusive?: IAmount; - /** - * The unit item price including VAT. - */ - readonly unit_vat_inclusive?: IAmount; - /** - * The VAT tax fraction. - */ - readonly vat?: number; - /** - * The number of items priced. - */ - readonly quantity?: number; - /** - * The item price excluding VAT. - */ - readonly total_vat_exclusive?: IAmount; - /** - * The item price including VAT. - */ - readonly total_vat_inclusive?: IAmount; + /** + * The billing date of the item. + */ + readonly billing_date?: string; + /** + * The price description. + */ + readonly type_description?: string; + /** + * The translated price description. + */ + readonly type_description_translated?: string; + /** + * The unit item price excluding VAT. + */ + readonly unit_vat_exclusive?: IAmount; + /** + * The unit item price including VAT. + */ + readonly unit_vat_inclusive?: IAmount; + /** + * The VAT tax fraction. + */ + readonly vat?: number; + /** + * The number of items priced. + */ + readonly quantity?: number; + /** + * The item price excluding VAT. + */ + readonly total_vat_exclusive?: IAmount; + /** + * The item price including VAT. + */ + readonly total_vat_inclusive?: IAmount; } export interface IInvoiceExportPdfContentListing {} export interface IInvoiceByUserRead { - /** - * The id of the invoice object. - */ - readonly id?: number; - /** - * The timestamp of the invoice object's creation. - */ - readonly created?: string; - /** - * The timestamp of the invoice object's last update. - */ - readonly updated?: string; - /** - * The invoice date. - */ - readonly invoice_date?: string; - /** - * The invoice number. - */ - readonly invoice_number?: string; - /** - * The invoice status. - */ - readonly status?: string; - /** - * The invoice item groups. - */ - readonly group?: Array; - /** - * The total discounted item price including VAT. - */ - readonly total_vat_inclusive?: IAmount; - /** - * The total discounted item price excluding VAT. - */ - readonly total_vat_exclusive?: IAmount; - /** - * The VAT on the total discounted item price. - */ - readonly total_vat?: IAmount; - /** - * The label that's displayed to the counterparty with the invoice. Includes user. - */ - readonly alias?: ILabelMonetaryAccount; - /** - * The customer's address. - */ - readonly address?: IAddress; - /** - * The label of the counterparty of the invoice. Includes user. - */ - readonly counterparty_alias?: ILabelMonetaryAccount; - /** - * The company's address. - */ - readonly counterparty_address?: IAddress; - /** - * The company's chamber of commerce number. - */ - readonly chamber_of_commerce_number?: string; - /** - * The company's chamber of commerce number. - */ - readonly vat_number?: string; + /** + * The id of the invoice object. + */ + readonly id?: number; + /** + * The timestamp of the invoice object's creation. + */ + readonly created?: string; + /** + * The timestamp of the invoice object's last update. + */ + readonly updated?: string; + /** + * The invoice date. + */ + readonly invoice_date?: string; + /** + * The invoice number. + */ + readonly invoice_number?: string; + /** + * The invoice status. + */ + readonly status?: string; + /** + * The invoice item groups. + */ + readonly group?: Array; + /** + * The total discounted item price including VAT. + */ + readonly total_vat_inclusive?: IAmount; + /** + * The total discounted item price excluding VAT. + */ + readonly total_vat_exclusive?: IAmount; + /** + * The VAT on the total discounted item price. + */ + readonly total_vat?: IAmount; + /** + * The label that's displayed to the counterparty with the invoice. Includes user. + */ + readonly alias?: ILabelMonetaryAccount; + /** + * The customer's address. + */ + readonly address?: IAddress; + /** + * The label of the counterparty of the invoice. Includes user. + */ + readonly counterparty_alias?: ILabelMonetaryAccount; + /** + * The company's address. + */ + readonly counterparty_address?: IAddress; + /** + * The company's chamber of commerce number. + */ + readonly chamber_of_commerce_number?: string; + /** + * The company's chamber of commerce number. + */ + readonly vat_number?: string; } export interface IInvoiceByUserListing { - /** - * The id of the invoice object. - */ - readonly id?: number; - /** - * The timestamp of the invoice object's creation. - */ - readonly created?: string; - /** - * The timestamp of the invoice object's last update. - */ - readonly updated?: string; - /** - * The invoice date. - */ - readonly invoice_date?: string; - /** - * The invoice number. - */ - readonly invoice_number?: string; - /** - * The invoice status. - */ - readonly status?: string; - /** - * The invoice item groups. - */ - readonly group?: Array; - /** - * The total discounted item price including VAT. - */ - readonly total_vat_inclusive?: IAmount; - /** - * The total discounted item price excluding VAT. - */ - readonly total_vat_exclusive?: IAmount; - /** - * The VAT on the total discounted item price. - */ - readonly total_vat?: IAmount; - /** - * The label that's displayed to the counterparty with the invoice. Includes user. - */ - readonly alias?: ILabelMonetaryAccount; - /** - * The customer's address. - */ - readonly address?: IAddress; - /** - * The label of the counterparty of the invoice. Includes user. - */ - readonly counterparty_alias?: ILabelMonetaryAccount; - /** - * The company's address. - */ - readonly counterparty_address?: IAddress; - /** - * The company's chamber of commerce number. - */ - readonly chamber_of_commerce_number?: string; - /** - * The company's chamber of commerce number. - */ - readonly vat_number?: string; + /** + * The id of the invoice object. + */ + readonly id?: number; + /** + * The timestamp of the invoice object's creation. + */ + readonly created?: string; + /** + * The timestamp of the invoice object's last update. + */ + readonly updated?: string; + /** + * The invoice date. + */ + readonly invoice_date?: string; + /** + * The invoice number. + */ + readonly invoice_number?: string; + /** + * The invoice status. + */ + readonly status?: string; + /** + * The invoice item groups. + */ + readonly group?: Array; + /** + * The total discounted item price including VAT. + */ + readonly total_vat_inclusive?: IAmount; + /** + * The total discounted item price excluding VAT. + */ + readonly total_vat_exclusive?: IAmount; + /** + * The VAT on the total discounted item price. + */ + readonly total_vat?: IAmount; + /** + * The label that's displayed to the counterparty with the invoice. Includes user. + */ + readonly alias?: ILabelMonetaryAccount; + /** + * The customer's address. + */ + readonly address?: IAddress; + /** + * The label of the counterparty of the invoice. Includes user. + */ + readonly counterparty_alias?: ILabelMonetaryAccount; + /** + * The company's address. + */ + readonly counterparty_address?: IAddress; + /** + * The company's chamber of commerce number. + */ + readonly chamber_of_commerce_number?: string; + /** + * The company's chamber of commerce number. + */ + readonly vat_number?: string; } export interface IInvoice { - /** - * The invoice status. - */ - status?: string; - /** - * The description provided by the admin. - */ - description: string; - /** - * The external url provided by the admin. - */ - external_url: string; - /** - * The id of the invoice object. - */ - readonly id?: number; - /** - * The timestamp of the invoice object's creation. - */ - readonly created?: string; - /** - * The timestamp of the invoice object's last update. - */ - readonly updated?: string; - /** - * The invoice date. - */ - readonly invoice_date?: string; - /** - * The invoice number. - */ - readonly invoice_number?: string; - /** - * The category to display to the user. - */ - readonly category?: string; - /** - * The invoice item groups. - */ - readonly group?: Array; - /** - * The total discounted item price including VAT. - */ - readonly total_vat_inclusive?: IAmount; - /** - * The total discounted item price excluding VAT. - */ - readonly total_vat_exclusive?: IAmount; - /** - * The VAT on the total discounted item price. - */ - readonly total_vat?: IAmount; - /** - * The label that's displayed to the counterparty with the invoice. Includes user. - */ - readonly alias?: ILabelMonetaryAccount; - /** - * The customer's address. - */ - readonly address?: IAddress; - /** - * The label of the counterparty of the invoice. Includes user. - */ - readonly counterparty_alias?: ILabelMonetaryAccount; - /** - * The company's address. - */ - readonly counterparty_address?: IAddress; - /** - * The company's chamber of commerce number. - */ - readonly chamber_of_commerce_number?: string; - /** - * The company's chamber of commerce number. - */ - readonly vat_number?: string; - /** - * The reference to the object used for split the bill. Can be RequestInquiry or RequestInquiryBatch - */ - readonly request_reference_split_the_bill?: Array; + /** + * The invoice status. + */ + status?: string; + /** + * The description provided by the admin. + */ + description: string; + /** + * The external url provided by the admin. + */ + external_url: string; + /** + * The id of the invoice object. + */ + readonly id?: number; + /** + * The timestamp of the invoice object's creation. + */ + readonly created?: string; + /** + * The timestamp of the invoice object's last update. + */ + readonly updated?: string; + /** + * The invoice date. + */ + readonly invoice_date?: string; + /** + * The invoice number. + */ + readonly invoice_number?: string; + /** + * The category to display to the user. + */ + readonly category?: string; + /** + * The invoice item groups. + */ + readonly group?: Array; + /** + * The total discounted item price including VAT. + */ + readonly total_vat_inclusive?: IAmount; + /** + * The total discounted item price excluding VAT. + */ + readonly total_vat_exclusive?: IAmount; + /** + * The VAT on the total discounted item price. + */ + readonly total_vat?: IAmount; + /** + * The label that's displayed to the counterparty with the invoice. Includes user. + */ + readonly alias?: ILabelMonetaryAccount; + /** + * The customer's address. + */ + readonly address?: IAddress; + /** + * The label of the counterparty of the invoice. Includes user. + */ + readonly counterparty_alias?: ILabelMonetaryAccount; + /** + * The company's address. + */ + readonly counterparty_address?: IAddress; + /** + * The company's chamber of commerce number. + */ + readonly chamber_of_commerce_number?: string; + /** + * The company's chamber of commerce number. + */ + readonly vat_number?: string; + /** + * The reference to the object used for split the bill. Can be RequestInquiry or RequestInquiryBatch + */ + readonly request_reference_split_the_bill?: Array; } export interface IInstallationToken { - /** - * The id of the Token. - */ - readonly id?: number; - /** - * The timestamp of the Token's creation. - */ - readonly created?: string; - /** - * The timestamp of the Token's last update. - */ - readonly updated?: string; - /** - * The installation token is the token the client has to provide in the "X-Bunq-Client-Authentication" header for the creation of a DeviceServer and SessionServer. - */ - readonly token?: string; + /** + * The id of the Token. + */ + readonly id?: number; + /** + * The timestamp of the Token's creation. + */ + readonly created?: string; + /** + * The timestamp of the Token's last update. + */ + readonly updated?: string; + /** + * The installation token is the token the client has to provide in the "X-Bunq-Client-Authentication" header for the creation of a DeviceServer and SessionServer. + */ + readonly token?: string; } export interface IInstallationServerPublicKeyListing { - /** - * The server's public key for this Installation. - */ - readonly server_public_key?: string; + /** + * The server's public key for this Installation. + */ + readonly server_public_key?: string; } export interface IInstallationServerPublicKey { - /** - * The server's public key for this Installation. You should use this key to verify the "X-Bunq-Server-Signature" header for each response from the server. - */ - readonly server_public_key?: string; + /** + * The server's public key for this Installation. You should use this key to verify the "X-Bunq-Server-Signature" header for each response from the server. + */ + readonly server_public_key?: string; } export interface IInstallationRead { - /** - * The id of the Installation as created on the server. You can use this id to request the server's public key again. - */ - readonly id?: number; + /** + * The id of the Installation as created on the server. You can use this id to request the server's public key again. + */ + readonly id?: number; } export interface IInstallationListing { - /** - * The id of the Installation as created on the server. You can use this id to request the server's public key again. - */ - readonly id?: number; + /** + * The id of the Installation as created on the server. You can use this id to request the server's public key again. + */ + readonly id?: number; } export interface IInstallationCreate { - /** - * The Id object of the created Installation - */ - readonly Id?: BunqId; - /** - * The Token object of this Installation. - */ - readonly Token?: IInstallationToken; - /** - * The ServerPublicKey object of the created Installation - */ - readonly ServerPublicKey?: IInstallationServerPublicKey; + /** + * The Id object of the created Installation + */ + readonly Id?: BunqId; + /** + * The Token object of this Installation. + */ + readonly Token?: IInstallationToken; + /** + * The ServerPublicKey object of the created Installation + */ + readonly ServerPublicKey?: IInstallationServerPublicKey; } export interface IInstallation { - /** - * Your public key. This is the public part of the key pair that you are going to use to create value of the "X-Bunq-Client-Signature" header for all future API calls. - */ - client_public_key: string; + /** + * Your public key. This is the public part of the key pair that you are going to use to create value of the "X-Bunq-Client-Signature" header for all future API calls. + */ + client_public_key: string; } export interface IInsightListing { - /** - * The category. - */ - readonly category?: string; - /** - * The translated category. - */ - readonly category_translated?: string; - /** - * The total amount of the transactions in the category. - */ - readonly amount_total?: IAmount; - /** - * The number of the transactions in the category. - */ - readonly number_of_transactions?: number; + /** + * The category. + */ + readonly category?: string; + /** + * The translated category. + */ + readonly category_translated?: string; + /** + * The total amount of the transactions in the category. + */ + readonly amount_total?: IAmount; + /** + * The number of the transactions in the category. + */ + readonly number_of_transactions?: number; } export interface IInsightEventListing { - /** - * The id of the event. - */ - readonly id?: number; - /** - * The timestamp of the event's creation. - */ - readonly created?: string; - /** - * The timestamp of the event's last update. - */ - readonly updated?: string; - /** - * The performed action. Can be: CREATE or UPDATE. - */ - readonly action?: string; - /** - * The id of the user the event applied to (if it was a user event). - */ - readonly user_id?: string; - /** - * The id of the monetary account the event applied to (if it was a monetary account event). - */ - readonly monetary_account_id?: string; - /** - * The details of the external object the event was created for. - */ - readonly object?: IEventObject; - /** - * The event status. Can be: FINALIZED or AWAITING_REPLY. An example of FINALIZED event is a payment received event, while an AWAITING_REPLY event is a request received event. - */ - readonly status?: string; + /** + * The id of the event. + */ + readonly id?: number; + /** + * The timestamp of the event's creation. + */ + readonly created?: string; + /** + * The timestamp of the event's last update. + */ + readonly updated?: string; + /** + * The performed action. Can be: CREATE or UPDATE. + */ + readonly action?: string; + /** + * The id of the user the event applied to (if it was a user event). + */ + readonly user_id?: string; + /** + * The id of the monetary account the event applied to (if it was a monetary account event). + */ + readonly monetary_account_id?: string; + /** + * The details of the external object the event was created for. + */ + readonly object?: IEventObject; + /** + * The event status. Can be: FINALIZED or AWAITING_REPLY. An example of FINALIZED event is a payment received event, while an AWAITING_REPLY event is a request received event. + */ + readonly status?: string; } export interface IImage { - /** - * The public UUID of the public attachment containing the image. - */ - readonly attachment_public_uuid?: string; - /** - * The content-type as a MIME filetype. - */ - readonly content_type?: string; - /** - * The image height in pixels. - */ - readonly height?: number; - /** - * The image width in pixels. - */ - readonly width?: number; + /** + * The public UUID of the public attachment containing the image. + */ + readonly attachment_public_uuid?: string; + /** + * The content-type as a MIME filetype. + */ + readonly content_type?: string; + /** + * The image height in pixels. + */ + readonly height?: number; + /** + * The image width in pixels. + */ + readonly width?: number; } export interface IIdealMerchantTransactionRead { - /** - * The id of the monetary account this ideal merchant transaction links to. - */ - readonly monetary_account_id?: number; - /** - * The alias of the monetary account to add money to. - */ - readonly alias?: ILabelMonetaryAccount; - /** - * The alias of the monetary account the money comes from. - */ - readonly counterparty_alias?: ILabelMonetaryAccount; - /** - * In case of a successful transaction, the amount of money that will be transferred. - */ - readonly amount_guaranteed?: IAmount; - /** - * The requested amount of money to add. - */ - readonly amount_requested?: IAmount; - /** - * When the transaction will expire. - */ - readonly expiration?: string; - /** - * The BIC of the issuer. - */ - readonly issuer?: string; - /** - * The Name of the issuer. - */ - readonly issuer_name?: string; - /** - * The URL to visit to - */ - readonly issuer_authentication_url?: string; - /** - * The 'purchase ID' of the iDEAL transaction. - */ - readonly purchase_identifier?: string; - /** - * The status of the transaction. - */ - readonly status?: string; - /** - * When the status was last updated. - */ - readonly status_timestamp?: string; - /** - * The 'transaction ID' of the iDEAL transaction. - */ - readonly transaction_identifier?: string; - /** - * Whether or not chat messages are allowed. - */ - readonly allow_chat?: boolean; + /** + * The id of the monetary account this ideal merchant transaction links to. + */ + readonly monetary_account_id?: number; + /** + * The alias of the monetary account to add money to. + */ + readonly alias?: ILabelMonetaryAccount; + /** + * The alias of the monetary account the money comes from. + */ + readonly counterparty_alias?: ILabelMonetaryAccount; + /** + * In case of a successful transaction, the amount of money that will be transferred. + */ + readonly amount_guaranteed?: IAmount; + /** + * The requested amount of money to add. + */ + readonly amount_requested?: IAmount; + /** + * When the transaction will expire. + */ + readonly expiration?: string; + /** + * The BIC of the issuer. + */ + readonly issuer?: string; + /** + * The Name of the issuer. + */ + readonly issuer_name?: string; + /** + * The URL to visit to + */ + readonly issuer_authentication_url?: string; + /** + * The 'purchase ID' of the iDEAL transaction. + */ + readonly purchase_identifier?: string; + /** + * The status of the transaction. + */ + readonly status?: string; + /** + * When the status was last updated. + */ + readonly status_timestamp?: string; + /** + * The 'transaction ID' of the iDEAL transaction. + */ + readonly transaction_identifier?: string; + /** + * Whether or not chat messages are allowed. + */ + readonly allow_chat?: boolean; } export interface IIdealMerchantTransactionListing { - /** - * The id of the monetary account this ideal merchant transaction links to. - */ - readonly monetary_account_id?: number; - /** - * The alias of the monetary account to add money to. - */ - readonly alias?: ILabelMonetaryAccount; - /** - * The alias of the monetary account the money comes from. - */ - readonly counterparty_alias?: ILabelMonetaryAccount; - /** - * In case of a successful transaction, the amount of money that will be transferred. - */ - readonly amount_guaranteed?: IAmount; - /** - * The requested amount of money to add. - */ - readonly amount_requested?: IAmount; - /** - * When the transaction will expire. - */ - readonly expiration?: string; - /** - * The BIC of the issuer. - */ - readonly issuer?: string; - /** - * The Name of the issuer. - */ - readonly issuer_name?: string; - /** - * The URL to visit to - */ - readonly issuer_authentication_url?: string; - /** - * The 'purchase ID' of the iDEAL transaction. - */ - readonly purchase_identifier?: string; - /** - * The status of the transaction. - */ - readonly status?: string; - /** - * When the status was last updated. - */ - readonly status_timestamp?: string; - /** - * The 'transaction ID' of the iDEAL transaction. - */ - readonly transaction_identifier?: string; - /** - * Whether or not chat messages are allowed. - */ - readonly allow_chat?: boolean; + /** + * The id of the monetary account this ideal merchant transaction links to. + */ + readonly monetary_account_id?: number; + /** + * The alias of the monetary account to add money to. + */ + readonly alias?: ILabelMonetaryAccount; + /** + * The alias of the monetary account the money comes from. + */ + readonly counterparty_alias?: ILabelMonetaryAccount; + /** + * In case of a successful transaction, the amount of money that will be transferred. + */ + readonly amount_guaranteed?: IAmount; + /** + * The requested amount of money to add. + */ + readonly amount_requested?: IAmount; + /** + * When the transaction will expire. + */ + readonly expiration?: string; + /** + * The BIC of the issuer. + */ + readonly issuer?: string; + /** + * The Name of the issuer. + */ + readonly issuer_name?: string; + /** + * The URL to visit to + */ + readonly issuer_authentication_url?: string; + /** + * The 'purchase ID' of the iDEAL transaction. + */ + readonly purchase_identifier?: string; + /** + * The status of the transaction. + */ + readonly status?: string; + /** + * When the status was last updated. + */ + readonly status_timestamp?: string; + /** + * The 'transaction ID' of the iDEAL transaction. + */ + readonly transaction_identifier?: string; + /** + * Whether or not chat messages are allowed. + */ + readonly allow_chat?: boolean; } export interface IIdealMerchantTransactionCreate { - /** - * The id of the created item - */ - readonly Id?: BunqId; + /** + * The id of the created item + */ + readonly Id?: BunqId; } export interface IIdealMerchantTransaction { - /** - * The requested amount of money to add. - */ - amount_requested?: IAmount; - /** - * The BIC of the issuer. - */ - issuer?: string; - /** - * The id of the monetary account this ideal merchant transaction links to. - */ - readonly monetary_account_id?: number; - /** - * The alias of the monetary account to add money to. - */ - readonly alias?: ILabelMonetaryAccount; - /** - * The alias of the monetary account the money comes from. - */ - readonly counterparty_alias?: ILabelMonetaryAccount; - /** - * In case of a successful transaction, the amount of money that will be transferred. - */ - readonly amount_guaranteed?: IAmount; - /** - * When the transaction will expire. - */ - readonly expiration?: string; - /** - * The Name of the issuer. - */ - readonly issuer_name?: string; - /** - * The URL to visit to - */ - readonly issuer_authentication_url?: string; - /** - * The 'purchase ID' of the iDEAL transaction. - */ - readonly purchase_identifier?: string; - /** - * The status of the transaction. - */ - readonly status?: string; - /** - * When the status was last updated. - */ - readonly status_timestamp?: string; - /** - * The 'transaction ID' of the iDEAL transaction. - */ - readonly transaction_identifier?: string; - /** - * Whether or not chat messages are allowed. - */ - readonly allow_chat?: boolean; + /** + * The requested amount of money to add. + */ + amount_requested?: IAmount; + /** + * The BIC of the issuer. + */ + issuer?: string; + /** + * The id of the monetary account this ideal merchant transaction links to. + */ + readonly monetary_account_id?: number; + /** + * The alias of the monetary account to add money to. + */ + readonly alias?: ILabelMonetaryAccount; + /** + * The alias of the monetary account the money comes from. + */ + readonly counterparty_alias?: ILabelMonetaryAccount; + /** + * In case of a successful transaction, the amount of money that will be transferred. + */ + readonly amount_guaranteed?: IAmount; + /** + * When the transaction will expire. + */ + readonly expiration?: string; + /** + * The Name of the issuer. + */ + readonly issuer_name?: string; + /** + * The URL to visit to + */ + readonly issuer_authentication_url?: string; + /** + * The 'purchase ID' of the iDEAL transaction. + */ + readonly purchase_identifier?: string; + /** + * The status of the transaction. + */ + readonly status?: string; + /** + * When the status was last updated. + */ + readonly status_timestamp?: string; + /** + * The 'transaction ID' of the iDEAL transaction. + */ + readonly transaction_identifier?: string; + /** + * Whether or not chat messages are allowed. + */ + readonly allow_chat?: boolean; } export interface IGeolocation { - /** - * The latitude for a geolocation restriction. - */ - latitude: number; - /** - * The longitude for a geolocation restriction. - */ - longitude: number; - /** - * The altitude for a geolocation restriction. - */ - altitude?: number; - /** - * The radius for a geolocation restriction. - */ - radius?: number; + /** + * The latitude for a geolocation restriction. + */ + latitude: number; + /** + * The longitude for a geolocation restriction. + */ + longitude: number; + /** + * The altitude for a geolocation restriction. + */ + altitude?: number; + /** + * The radius for a geolocation restriction. + */ + radius?: number; } export interface IFeatureAnnouncementRead { - /** - * The Avatar of the event overview. - */ - readonly avatar?: IAvatar; - /** - * The event overview title of the feature display - */ - readonly title?: string; - /** - * The event overview subtitle of the feature display - */ - readonly sub_title?: string; + /** + * The Avatar of the event overview. + */ + readonly avatar?: IAvatar; + /** + * The event overview title of the feature display + */ + readonly title?: string; + /** + * The event overview subtitle of the feature display + */ + readonly sub_title?: string; } export interface IFeatureAnnouncement { - /** - * The Avatar of the event overview. - */ - readonly avatar?: IAvatar; - /** - * The event overview title of the feature display - */ - readonly title?: string; - /** - * The event overview subtitle of the feature display - */ - readonly sub_title?: string; + /** + * The Avatar of the event overview. + */ + readonly avatar?: IAvatar; + /** + * The event overview title of the feature display + */ + readonly title?: string; + /** + * The event overview subtitle of the feature display + */ + readonly sub_title?: string; } export interface IExportStatementRead { - /** - * The id of the customer statement model. - */ - readonly id?: number; - /** - * The timestamp of the statement model's creation. - */ - readonly created?: string; - /** - * The timestamp of the statement model's last update. - */ - readonly updated?: string; - /** - * The date from when this statement shows transactions. - */ - readonly date_start?: string; - /** - * The date until which statement shows transactions. - */ - readonly date_end?: string; - /** - * The status of the export. - */ - readonly status?: string; - /** - * MT940 Statement number. Unique per monetary account. - */ - readonly statement_number?: number; - /** - * The format of statement. - */ - readonly statement_format?: string; - /** - * The regional format of a CSV statement. - */ - readonly regional_format?: string; - /** - * The monetary account for which this statement was created. - */ - readonly alias_monetary_account?: ILabelMonetaryAccount; + /** + * The id of the customer statement model. + */ + readonly id?: number; + /** + * The timestamp of the statement model's creation. + */ + readonly created?: string; + /** + * The timestamp of the statement model's last update. + */ + readonly updated?: string; + /** + * The date from when this statement shows transactions. + */ + readonly date_start?: string; + /** + * The date until which statement shows transactions. + */ + readonly date_end?: string; + /** + * The status of the export. + */ + readonly status?: string; + /** + * MT940 Statement number. Unique per monetary account. + */ + readonly statement_number?: number; + /** + * The format of statement. + */ + readonly statement_format?: string; + /** + * The regional format of a CSV statement. + */ + readonly regional_format?: string; + /** + * The monetary account for which this statement was created. + */ + readonly alias_monetary_account?: ILabelMonetaryAccount; } export interface IExportStatementPaymentRead { - /** - * The id of the single payment statement model. - */ - readonly id?: number; - /** - * The timestamp of the statement model's creation. - */ - readonly created?: string; - /** - * The timestamp of the statement model's last update. - */ - readonly updated?: string; - /** - * The status of the export. - */ - readonly status?: string; + /** + * The id of the single payment statement model. + */ + readonly id?: number; + /** + * The timestamp of the statement model's creation. + */ + readonly created?: string; + /** + * The timestamp of the statement model's last update. + */ + readonly updated?: string; + /** + * The status of the export. + */ + readonly status?: string; } export interface IExportStatementPaymentCreate { - /** - * The id of the created item - */ - readonly Id?: BunqId; + /** + * The id of the created item + */ + readonly Id?: BunqId; } export interface IExportStatementPaymentContentListing {} @@ -9658,119 +9656,119 @@ export interface IExportStatementPaymentContentListing {} export interface IExportStatementPayment {} export interface IExportStatementListing { - /** - * The id of the customer statement model. - */ - readonly id?: number; - /** - * The timestamp of the statement model's creation. - */ - readonly created?: string; - /** - * The timestamp of the statement model's last update. - */ - readonly updated?: string; - /** - * The date from when this statement shows transactions. - */ - readonly date_start?: string; - /** - * The date until which statement shows transactions. - */ - readonly date_end?: string; - /** - * The status of the export. - */ - readonly status?: string; - /** - * MT940 Statement number. Unique per monetary account. - */ - readonly statement_number?: number; - /** - * The format of statement. - */ - readonly statement_format?: string; - /** - * The regional format of a CSV statement. - */ - readonly regional_format?: string; - /** - * The monetary account for which this statement was created. - */ - readonly alias_monetary_account?: ILabelMonetaryAccount; + /** + * The id of the customer statement model. + */ + readonly id?: number; + /** + * The timestamp of the statement model's creation. + */ + readonly created?: string; + /** + * The timestamp of the statement model's last update. + */ + readonly updated?: string; + /** + * The date from when this statement shows transactions. + */ + readonly date_start?: string; + /** + * The date until which statement shows transactions. + */ + readonly date_end?: string; + /** + * The status of the export. + */ + readonly status?: string; + /** + * MT940 Statement number. Unique per monetary account. + */ + readonly statement_number?: number; + /** + * The format of statement. + */ + readonly statement_format?: string; + /** + * The regional format of a CSV statement. + */ + readonly regional_format?: string; + /** + * The monetary account for which this statement was created. + */ + readonly alias_monetary_account?: ILabelMonetaryAccount; } export interface IExportStatementDelete {} export interface IExportStatementCreate { - /** - * The id of the created item - */ - readonly Id?: BunqId; + /** + * The id of the created item + */ + readonly Id?: BunqId; } export interface IExportStatementContentListing {} export interface IExportStatement { - /** - * The format type of statement. Allowed values: MT940, CSV, PDF. - */ - statement_format: string; - /** - * The start date for making statements. - */ - date_start: string; - /** - * The end date for making statements. - */ - date_end: string; - /** - * Required for CSV exports. The regional format of the statement, can be UK_US (comma-separated) or EUROPEAN (semicolon-separated). - */ - regional_format?: string; - /** - * Only for PDF exports. Includes attachments to mutations in the export, such as scanned receipts. - */ - include_attachment?: boolean; + /** + * The format type of statement. Allowed values: MT940, CSV, PDF. + */ + statement_format: string; + /** + * The start date for making statements. + */ + date_start: string; + /** + * The end date for making statements. + */ + date_end: string; + /** + * Required for CSV exports. The regional format of the statement, can be UK_US (comma-separated) or EUROPEAN (semicolon-separated). + */ + regional_format?: string; + /** + * Only for PDF exports. Includes attachments to mutations in the export, such as scanned receipts. + */ + include_attachment?: boolean; } export interface IExportRibRead { - /** - * The id of the rib as created on the server. - */ - readonly id?: number; - /** - * The timestamp of the RIB's creation. - */ - readonly created?: string; - /** - * The timestamp of the RIB's last update. - */ - readonly updated?: string; + /** + * The id of the rib as created on the server. + */ + readonly id?: number; + /** + * The timestamp of the RIB's creation. + */ + readonly created?: string; + /** + * The timestamp of the RIB's last update. + */ + readonly updated?: string; } export interface IExportRibListing { - /** - * The id of the rib as created on the server. - */ - readonly id?: number; - /** - * The timestamp of the RIB's creation. - */ - readonly created?: string; - /** - * The timestamp of the RIB's last update. - */ - readonly updated?: string; + /** + * The id of the rib as created on the server. + */ + readonly id?: number; + /** + * The timestamp of the RIB's creation. + */ + readonly created?: string; + /** + * The timestamp of the RIB's last update. + */ + readonly updated?: string; } export interface IExportRibDelete {} export interface IExportRibCreate { - /** - * The id of the rib as created on the server. - */ - readonly id?: number; + /** + * The id of the rib as created on the server. + */ + readonly id?: number; } export interface IExportRibContentListing {} @@ -9778,2077 +9776,2077 @@ export interface IExportRibContentListing {} export interface IExportRib {} export interface IExportAnnualOverviewRead { - /** - * The id of the annual overview as created on the server. - */ - readonly id?: number; - /** - * The timestamp of the annual overview 's creation. - */ - readonly created?: string; - /** - * The timestamp of the annual overview 's last update. - */ - readonly updated?: string; - /** - * The year for which the overview is. - */ - readonly year?: number; - /** - * The user to which this annual overview belongs. - */ - readonly alias_user?: ILabelUser; + /** + * The id of the annual overview as created on the server. + */ + readonly id?: number; + /** + * The timestamp of the annual overview 's creation. + */ + readonly created?: string; + /** + * The timestamp of the annual overview 's last update. + */ + readonly updated?: string; + /** + * The year for which the overview is. + */ + readonly year?: number; + /** + * The user to which this annual overview belongs. + */ + readonly alias_user?: ILabelUser; } export interface IExportAnnualOverviewListing { - /** - * The id of the annual overview as created on the server. - */ - readonly id?: number; - /** - * The timestamp of the annual overview 's creation. - */ - readonly created?: string; - /** - * The timestamp of the annual overview 's last update. - */ - readonly updated?: string; - /** - * The year for which the overview is. - */ - readonly year?: number; - /** - * The user to which this annual overview belongs. - */ - readonly alias_user?: ILabelUser; + /** + * The id of the annual overview as created on the server. + */ + readonly id?: number; + /** + * The timestamp of the annual overview 's creation. + */ + readonly created?: string; + /** + * The timestamp of the annual overview 's last update. + */ + readonly updated?: string; + /** + * The year for which the overview is. + */ + readonly year?: number; + /** + * The user to which this annual overview belongs. + */ + readonly alias_user?: ILabelUser; } export interface IExportAnnualOverviewDelete {} export interface IExportAnnualOverviewCreate { - /** - * The id of the annual overview as created on the server. - */ - readonly id?: number; + /** + * The id of the annual overview as created on the server. + */ + readonly id?: number; } export interface IExportAnnualOverviewContentListing {} export interface IExportAnnualOverview { - /** - * The year for which the overview is. - */ - year: number; + /** + * The year for which the overview is. + */ + year: number; } export interface IEventRead { - /** - * The id of the event. - */ - readonly id?: number; - /** - * The timestamp of the event's creation. - */ - readonly created?: string; - /** - * The timestamp of the event's last update. - */ - readonly updated?: string; - /** - * The performed action. Can be: CREATE or UPDATE. - */ - readonly action?: string; - /** - * The id of the user the event applied to (if it was a user event). - */ - readonly user_id?: string; - /** - * The id of the monetary account the event applied to (if it was a monetary account event). - */ - readonly monetary_account_id?: string; - /** - * The details of the external object the event was created for. - */ - readonly object?: IEventObject; - /** - * The event status. Can be: FINALIZED or AWAITING_REPLY. An example of FINALIZED event is a payment received event, while an AWAITING_REPLY event is a request received event. - */ - readonly status?: string; + /** + * The id of the event. + */ + readonly id?: number; + /** + * The timestamp of the event's creation. + */ + readonly created?: string; + /** + * The timestamp of the event's last update. + */ + readonly updated?: string; + /** + * The performed action. Can be: CREATE or UPDATE. + */ + readonly action?: string; + /** + * The id of the user the event applied to (if it was a user event). + */ + readonly user_id?: string; + /** + * The id of the monetary account the event applied to (if it was a monetary account event). + */ + readonly monetary_account_id?: string; + /** + * The details of the external object the event was created for. + */ + readonly object?: IEventObject; + /** + * The event status. Can be: FINALIZED or AWAITING_REPLY. An example of FINALIZED event is a payment received event, while an AWAITING_REPLY event is a request received event. + */ + readonly status?: string; } export interface IEventObject { - /** - * - */ - readonly BunqMeTab?: IBunqMeTab; - /** - * - */ - readonly BunqMeTabResultResponse?: IBunqMeTabResultResponse; - /** - * - */ - readonly BunqMeFundraiserResult?: IBunqMeFundraiserResult; - /** - * - */ - readonly Card?: ICard; - /** - * - */ - readonly CardDebit?: ICardDebit; - /** - * - */ - readonly DraftPayment?: IDraftPayment; - /** - * - */ - readonly FeatureAnnouncement?: IFeatureAnnouncement; - /** - * - */ - readonly IdealMerchantTransaction?: IIdealMerchantTransaction; - /** - * - */ - readonly Invoice?: IInvoice; - /** - * - */ - readonly ScheduledPayment?: ISchedulePayment; - /** - * - */ - readonly ScheduledPaymentBatch?: ISchedulePaymentBatch; - /** - * - */ - readonly ScheduledInstance?: IScheduleInstance; - /** - * - */ - readonly MasterCardAction?: IMasterCardAction; - /** - * - */ - readonly BankSwitchServiceNetherlandsIncomingPayment?: IBankSwitchServiceNetherlandsIncomingPayment; - /** - * - */ - readonly Payment?: IPayment; - /** - * - */ - readonly PaymentBatch?: IPaymentBatch; - /** - * - */ - readonly RequestInquiryBatch?: IRequestInquiryBatch; - /** - * - */ - readonly RequestInquiry?: IRequestInquiry; - /** - * - */ - readonly RequestResponse?: IRequestResponse; - /** - * - */ - readonly RewardRecipient?: IRewardRecipient; - /** - * - */ - readonly RewardSender?: IRewardSender; - /** - * - */ - readonly ShareInviteMonetaryAccountInquiryBatch?: IShareInviteMonetaryAccountInquiryBatch; - /** - * - */ - readonly ShareInviteMonetaryAccountInquiry?: IShareInviteMonetaryAccountInquiry; - /** - * - */ - readonly ShareInviteMonetaryAccountResponse?: IShareInviteMonetaryAccountResponse; - /** - * - */ - readonly SofortMerchantTransaction?: ISofortMerchantTransaction; - /** - * - */ - readonly TabResultInquiry?: ITabResultInquiry; - /** - * - */ - readonly TabResultResponse?: ITabResultResponse; - /** - * - */ - readonly TransferwisePayment?: ITransferwiseTransfer; + /** + * + */ + readonly BunqMeTab?: IBunqMeTab; + /** + * + */ + readonly BunqMeTabResultResponse?: IBunqMeTabResultResponse; + /** + * + */ + readonly BunqMeFundraiserResult?: IBunqMeFundraiserResult; + /** + * + */ + readonly Card?: ICard; + /** + * + */ + readonly CardDebit?: ICardDebit; + /** + * + */ + readonly DraftPayment?: IDraftPayment; + /** + * + */ + readonly FeatureAnnouncement?: IFeatureAnnouncement; + /** + * + */ + readonly IdealMerchantTransaction?: IIdealMerchantTransaction; + /** + * + */ + readonly Invoice?: IInvoice; + /** + * + */ + readonly ScheduledPayment?: ISchedulePayment; + /** + * + */ + readonly ScheduledPaymentBatch?: ISchedulePaymentBatch; + /** + * + */ + readonly ScheduledInstance?: IScheduleInstance; + /** + * + */ + readonly MasterCardAction?: IMasterCardAction; + /** + * + */ + readonly BankSwitchServiceNetherlandsIncomingPayment?: IBankSwitchServiceNetherlandsIncomingPayment; + /** + * + */ + readonly Payment?: IPayment; + /** + * + */ + readonly PaymentBatch?: IPaymentBatch; + /** + * + */ + readonly RequestInquiryBatch?: IRequestInquiryBatch; + /** + * + */ + readonly RequestInquiry?: IRequestInquiry; + /** + * + */ + readonly RequestResponse?: IRequestResponse; + /** + * + */ + readonly RewardRecipient?: IRewardRecipient; + /** + * + */ + readonly RewardSender?: IRewardSender; + /** + * + */ + readonly ShareInviteMonetaryAccountInquiryBatch?: IShareInviteMonetaryAccountInquiryBatch; + /** + * + */ + readonly ShareInviteMonetaryAccountInquiry?: IShareInviteMonetaryAccountInquiry; + /** + * + */ + readonly ShareInviteMonetaryAccountResponse?: IShareInviteMonetaryAccountResponse; + /** + * + */ + readonly SofortMerchantTransaction?: ISofortMerchantTransaction; + /** + * + */ + readonly TabResultInquiry?: ITabResultInquiry; + /** + * + */ + readonly TabResultResponse?: ITabResultResponse; + /** + * + */ + readonly TransferwisePayment?: ITransferwiseTransfer; } export interface IEventListing { - /** - * The id of the event. - */ - readonly id?: number; - /** - * The timestamp of the event's creation. - */ - readonly created?: string; - /** - * The timestamp of the event's last update. - */ - readonly updated?: string; - /** - * The performed action. Can be: CREATE or UPDATE. - */ - readonly action?: string; - /** - * The id of the user the event applied to (if it was a user event). - */ - readonly user_id?: string; - /** - * The id of the monetary account the event applied to (if it was a monetary account event). - */ - readonly monetary_account_id?: string; - /** - * The details of the external object the event was created for. - */ - readonly object?: IEventObject; - /** - * The event status. Can be: FINALIZED or AWAITING_REPLY. An example of FINALIZED event is a payment received event, while an AWAITING_REPLY event is a request received event. - */ - readonly status?: string; + /** + * The id of the event. + */ + readonly id?: number; + /** + * The timestamp of the event's creation. + */ + readonly created?: string; + /** + * The timestamp of the event's last update. + */ + readonly updated?: string; + /** + * The performed action. Can be: CREATE or UPDATE. + */ + readonly action?: string; + /** + * The id of the user the event applied to (if it was a user event). + */ + readonly user_id?: string; + /** + * The id of the monetary account the event applied to (if it was a monetary account event). + */ + readonly monetary_account_id?: string; + /** + * The details of the external object the event was created for. + */ + readonly object?: IEventObject; + /** + * The event status. Can be: FINALIZED or AWAITING_REPLY. An example of FINALIZED event is a payment received event, while an AWAITING_REPLY event is a request received event. + */ + readonly status?: string; } export interface IDraftShareInviteMonetaryAccountUpdate { - /** - * The id of the created item - */ - readonly Id?: BunqId; + /** + * The id of the created item + */ + readonly Id?: BunqId; } export interface IDraftShareInviteMonetaryAccountRead { - /** - * The user who created the draft share invite. - */ - readonly user_alias_created?: ILabelUser; - /** - * The status of the draft share invite. Can be USED, CANCELLED and PENDING. - */ - readonly status?: string; - /** - * The moment when this draft share invite expires. - */ - readonly expiration?: string; - /** - * The id of the share invite bank response this draft share belongs to. - */ - readonly share_invite_bank_response_id?: number; - /** - * The URL redirecting user to the draft share invite in the app. Only works on mobile devices. - */ - readonly draft_share_url?: string; - /** - * The draft share invite details. - */ - readonly draft_share_settings?: IDraftShareInviteEntry; - /** - * The id of the newly created draft share invite. - */ - readonly id?: number; + /** + * The user who created the draft share invite. + */ + readonly user_alias_created?: ILabelUser; + /** + * The status of the draft share invite. Can be USED, CANCELLED and PENDING. + */ + readonly status?: string; + /** + * The moment when this draft share invite expires. + */ + readonly expiration?: string; + /** + * The id of the share invite bank response this draft share belongs to. + */ + readonly share_invite_bank_response_id?: number; + /** + * The URL redirecting user to the draft share invite in the app. Only works on mobile devices. + */ + readonly draft_share_url?: string; + /** + * The draft share invite details. + */ + readonly draft_share_settings?: IDraftShareInviteEntry; + /** + * The id of the newly created draft share invite. + */ + readonly id?: number; } export interface IDraftShareInviteMonetaryAccountQrCodeContentListing {} export interface IDraftShareInviteMonetaryAccountListing { - /** - * The user who created the draft share invite. - */ - readonly user_alias_created?: ILabelUser; - /** - * The status of the draft share invite. Can be USED, CANCELLED and PENDING. - */ - readonly status?: string; - /** - * The moment when this draft share invite expires. - */ - readonly expiration?: string; - /** - * The id of the share invite bank response this draft share belongs to. - */ - readonly share_invite_bank_response_id?: number; - /** - * The URL redirecting user to the draft share invite in the app. Only works on mobile devices. - */ - readonly draft_share_url?: string; - /** - * The draft share invite details. - */ - readonly draft_share_settings?: IDraftShareInviteEntry; - /** - * The id of the newly created draft share invite. - */ - readonly id?: number; + /** + * The user who created the draft share invite. + */ + readonly user_alias_created?: ILabelUser; + /** + * The status of the draft share invite. Can be USED, CANCELLED and PENDING. + */ + readonly status?: string; + /** + * The moment when this draft share invite expires. + */ + readonly expiration?: string; + /** + * The id of the share invite bank response this draft share belongs to. + */ + readonly share_invite_bank_response_id?: number; + /** + * The URL redirecting user to the draft share invite in the app. Only works on mobile devices. + */ + readonly draft_share_url?: string; + /** + * The draft share invite details. + */ + readonly draft_share_settings?: IDraftShareInviteEntry; + /** + * The id of the newly created draft share invite. + */ + readonly id?: number; } export interface IDraftShareInviteMonetaryAccountCreate { - /** - * The id of the newly created draft share invite. - */ - readonly id?: number; + /** + * The id of the newly created draft share invite. + */ + readonly id?: number; } export interface IDraftShareInviteMonetaryAccount { - /** - * The status of the draft share invite. Can be CANCELLED (the user cancels the draft share before it's used). - */ - status?: string; - /** - * The moment when this draft share invite expires. - */ - expiration: string; - /** - * The draft share invite details. - */ - draft_share_settings: IDraftShareInviteEntry; + /** + * The status of the draft share invite. Can be CANCELLED (the user cancels the draft share before it's used). + */ + status?: string; + /** + * The moment when this draft share invite expires. + */ + expiration: string; + /** + * The draft share invite details. + */ + draft_share_settings: IDraftShareInviteEntry; } export interface IDraftShareInviteEntry { - /** - * The share details. Only one of these objects is returned. - */ - share_detail?: IShareDetail; - /** - * The start date of this share. - */ - start_date?: string; - /** - * The expiration date of this share. - */ - end_date?: string; + /** + * The share details. Only one of these objects is returned. + */ + share_detail?: IShareDetail; + /** + * The start date of this share. + */ + start_date?: string; + /** + * The expiration date of this share. + */ + end_date?: string; } export interface IDraftPaymentUpdate { - /** - * The id of the created DrafPayment. - */ - readonly id?: number; + /** + * The id of the created DrafPayment. + */ + readonly id?: number; } export interface IDraftPaymentResponse { - /** - * The status with which was responded. - */ - readonly status?: string; - /** - * The user that responded to the DraftPayment. - */ - readonly user_alias_created?: ILabelUser; + /** + * The status with which was responded. + */ + readonly status?: string; + /** + * The user that responded to the DraftPayment. + */ + readonly user_alias_created?: ILabelUser; } export interface IDraftPaymentRead { - /** - * The id of the created DrafPayment. - */ - readonly id?: number; - /** - * The id of the MonetaryAccount the DraftPayment applies to. - */ - readonly monetary_account_id?: number; - /** - * The label of the User who created the DraftPayment. - */ - readonly user_alias_created?: ILabelUser; - /** - * All responses to this draft payment. - */ - readonly responses?: Array; - /** - * The status of the DraftPayment. - */ - readonly status?: string; - /** - * The type of the DraftPayment. - */ - readonly type?: string; - /** - * The entries in the DraftPayment. - */ - readonly entries?: Array; - /** - * The Payment or PaymentBatch. This will only be present after the DraftPayment has been accepted. - */ - readonly object?: IDraftPaymentAnchorObject; - /** - * The reference to the object used for split the bill. Can be RequestInquiry or RequestInquiryBatch - */ - readonly request_reference_split_the_bill?: Array; - /** - * The schedule details. - */ - readonly schedule?: ISchedule; + /** + * The id of the created DrafPayment. + */ + readonly id?: number; + /** + * The id of the MonetaryAccount the DraftPayment applies to. + */ + readonly monetary_account_id?: number; + /** + * The label of the User who created the DraftPayment. + */ + readonly user_alias_created?: ILabelUser; + /** + * All responses to this draft payment. + */ + readonly responses?: Array; + /** + * The status of the DraftPayment. + */ + readonly status?: string; + /** + * The type of the DraftPayment. + */ + readonly type?: string; + /** + * The entries in the DraftPayment. + */ + readonly entries?: Array; + /** + * The Payment or PaymentBatch. This will only be present after the DraftPayment has been accepted. + */ + readonly object?: IDraftPaymentAnchorObject; + /** + * The reference to the object used for split the bill. Can be RequestInquiry or RequestInquiryBatch + */ + readonly request_reference_split_the_bill?: Array; + /** + * The schedule details. + */ + readonly schedule?: ISchedule; } export interface IDraftPaymentListing { - /** - * The id of the created DrafPayment. - */ - readonly id?: number; - /** - * The id of the MonetaryAccount the DraftPayment applies to. - */ - readonly monetary_account_id?: number; - /** - * The label of the User who created the DraftPayment. - */ - readonly user_alias_created?: ILabelUser; - /** - * All responses to this draft payment. - */ - readonly responses?: Array; - /** - * The status of the DraftPayment. - */ - readonly status?: string; - /** - * The type of the DraftPayment. - */ - readonly type?: string; - /** - * The entries in the DraftPayment. - */ - readonly entries?: Array; - /** - * The Payment or PaymentBatch. This will only be present after the DraftPayment has been accepted. - */ - readonly object?: IDraftPaymentAnchorObject; - /** - * The reference to the object used for split the bill. Can be RequestInquiry or RequestInquiryBatch - */ - readonly request_reference_split_the_bill?: Array; - /** - * The schedule details. - */ - readonly schedule?: ISchedule; + /** + * The id of the created DrafPayment. + */ + readonly id?: number; + /** + * The id of the MonetaryAccount the DraftPayment applies to. + */ + readonly monetary_account_id?: number; + /** + * The label of the User who created the DraftPayment. + */ + readonly user_alias_created?: ILabelUser; + /** + * All responses to this draft payment. + */ + readonly responses?: Array; + /** + * The status of the DraftPayment. + */ + readonly status?: string; + /** + * The type of the DraftPayment. + */ + readonly type?: string; + /** + * The entries in the DraftPayment. + */ + readonly entries?: Array; + /** + * The Payment or PaymentBatch. This will only be present after the DraftPayment has been accepted. + */ + readonly object?: IDraftPaymentAnchorObject; + /** + * The reference to the object used for split the bill. Can be RequestInquiry or RequestInquiryBatch + */ + readonly request_reference_split_the_bill?: Array; + /** + * The schedule details. + */ + readonly schedule?: ISchedule; } export interface IDraftPaymentEntry { - /** - * The amount of the payment. - */ - amount?: IAmount; - /** - * The LabelMonetaryAccount containing the public information of the other (counterparty) side of the DraftPayment. - */ - counterparty_alias?: ILabelMonetaryAccount; - /** - * The description for the DraftPayment. Maximum 140 characters for DraftPayments to external IBANs, 9000 characters for DraftPayments to only other bunq MonetaryAccounts. - */ - description?: string; - /** - * Optional data to be included with the Payment specific to the merchant. - */ - merchant_reference?: string; - /** - * The Attachments attached to the DraftPayment. - */ - attachment?: Array; - /** - * The id of the draft payment entry. - */ - readonly id?: number; - /** - * The LabelMonetaryAccount containing the public information of 'this' (party) side of the DraftPayment. - */ - readonly alias?: ILabelMonetaryAccount; - /** - * The type of the draft payment entry. - */ - readonly type?: string; + /** + * The amount of the payment. + */ + amount?: IAmount; + /** + * The LabelMonetaryAccount containing the public information of the other (counterparty) side of the DraftPayment. + */ + counterparty_alias?: ILabelMonetaryAccount; + /** + * The description for the DraftPayment. Maximum 140 characters for DraftPayments to external IBANs, 9000 characters for DraftPayments to only other bunq MonetaryAccounts. + */ + description?: string; + /** + * Optional data to be included with the Payment specific to the merchant. + */ + merchant_reference?: string; + /** + * The Attachments attached to the DraftPayment. + */ + attachment?: Array; + /** + * The id of the draft payment entry. + */ + readonly id?: number; + /** + * The LabelMonetaryAccount containing the public information of 'this' (party) side of the DraftPayment. + */ + readonly alias?: ILabelMonetaryAccount; + /** + * The type of the draft payment entry. + */ + readonly type?: string; } export interface IDraftPaymentCreate { - /** - * The id of the created DrafPayment. - */ - readonly id?: number; + /** + * The id of the created DrafPayment. + */ + readonly id?: number; } export interface IDraftPaymentAnchorObject { - /** - * - */ - readonly Payment?: IPayment; - /** - * - */ - readonly PaymentBatch?: IPaymentBatch; + /** + * + */ + readonly Payment?: IPayment; + /** + * + */ + readonly PaymentBatch?: IPaymentBatch; } export interface IDraftPayment { - /** - * The status of the DraftPayment. - */ - status?: string; - /** - * The list of entries in the DraftPayment. Each entry will result in a payment when the DraftPayment is accepted. - */ - entries: Array; - /** - * The last updated_timestamp that you received for this DraftPayment. This needs to be provided to prevent race conditions. - */ - previous_updated_timestamp?: string; - /** - * The number of accepts that are required for the draft payment to receive status ACCEPTED. Currently only 1 is valid. - */ - number_of_required_accepts: number; - /** - * The schedule details when creating or updating a scheduled payment. - */ - schedule?: ISchedule; + /** + * The status of the DraftPayment. + */ + status?: string; + /** + * The list of entries in the DraftPayment. Each entry will result in a payment when the DraftPayment is accepted. + */ + entries: Array; + /** + * The last updated_timestamp that you received for this DraftPayment. This needs to be provided to prevent race conditions. + */ + previous_updated_timestamp?: string; + /** + * The number of accepts that are required for the draft payment to receive status ACCEPTED. Currently only 1 is valid. + */ + number_of_required_accepts: number; + /** + * The schedule details when creating or updating a scheduled payment. + */ + schedule?: ISchedule; } export interface IDeviceServerRead { - /** - * The id of the DeviceServer as created on the server. - */ - readonly id?: number; - /** - * The timestamp of the DeviceServer's creation. - */ - readonly created?: string; - /** - * The timestamp of the DeviceServer's last update. - */ - readonly updated?: string; - /** - * The description of the DeviceServer. - */ - readonly description?: string; - /** - * The ip address which was used to create the DeviceServer. - */ - readonly ip?: string; - /** - * The status of the DeviceServer. Can be ACTIVE, BLOCKED, NEEDS_CONFIRMATION or OBSOLETE. - */ - readonly status?: string; + /** + * The id of the DeviceServer as created on the server. + */ + readonly id?: number; + /** + * The timestamp of the DeviceServer's creation. + */ + readonly created?: string; + /** + * The timestamp of the DeviceServer's last update. + */ + readonly updated?: string; + /** + * The description of the DeviceServer. + */ + readonly description?: string; + /** + * The ip address which was used to create the DeviceServer. + */ + readonly ip?: string; + /** + * The status of the DeviceServer. Can be ACTIVE, BLOCKED, NEEDS_CONFIRMATION or OBSOLETE. + */ + readonly status?: string; } export interface IDeviceServerListing { - /** - * The id of the DeviceServer as created on the server. - */ - readonly id?: number; - /** - * The timestamp of the DeviceServer's creation. - */ - readonly created?: string; - /** - * The timestamp of the DeviceServer's last update. - */ - readonly updated?: string; - /** - * The description of the DeviceServer. - */ - readonly description?: string; - /** - * The ip address which was used to create the DeviceServer. - */ - readonly ip?: string; - /** - * The status of the DeviceServer. Can be ACTIVE, BLOCKED, NEEDS_CONFIRMATION or OBSOLETE. - */ - readonly status?: string; + /** + * The id of the DeviceServer as created on the server. + */ + readonly id?: number; + /** + * The timestamp of the DeviceServer's creation. + */ + readonly created?: string; + /** + * The timestamp of the DeviceServer's last update. + */ + readonly updated?: string; + /** + * The description of the DeviceServer. + */ + readonly description?: string; + /** + * The ip address which was used to create the DeviceServer. + */ + readonly ip?: string; + /** + * The status of the DeviceServer. Can be ACTIVE, BLOCKED, NEEDS_CONFIRMATION or OBSOLETE. + */ + readonly status?: string; } export interface IDeviceServerCreate { - /** - * The id of the DeviceServer as created on the server. - */ - readonly id?: number; + /** + * The id of the DeviceServer as created on the server. + */ + readonly id?: number; } export interface IDeviceServer { - /** - * The description of the DeviceServer. This is only for your own reference when reading the DeviceServer again. - */ - description: string; - /** - * The API key. You can request an API key in the bunq app. - */ - secret: string; - /** - * An array of IPs (v4 or v6) this DeviceServer will be able to do calls from. These will be linked to the API key. - */ - permitted_ips?: Array; + /** + * The description of the DeviceServer. This is only for your own reference when reading the DeviceServer again. + */ + description: string; + /** + * The API key. You can request an API key in the bunq app. + */ + secret: string; + /** + * An array of IPs (v4 or v6) this DeviceServer will be able to do calls from. These will be linked to the API key. + */ + permitted_ips?: Array; } export interface IDeviceRead { - /** - * - */ - readonly DeviceServer?: IDeviceServer; + /** + * + */ + readonly DeviceServer?: IDeviceServer; } export interface IDeviceListing { - /** - * - */ - readonly DeviceServer?: IDeviceServer; + /** + * + */ + readonly DeviceServer?: IDeviceServer; } export interface ICustomerLimitListing { - /** - * The limit of monetary accounts. - */ - readonly limit_monetary_account?: number; - /** - * The amount of additional monetary accounts you can create. - */ - readonly limit_monetary_account_remaining?: number; - /** - * The limit of Maestro cards. - */ - readonly limit_card_debit_maestro?: number; - /** - * The limit of MasterCard cards. - */ - readonly limit_card_debit_mastercard?: number; - /** - * DEPRECTATED: The limit of wildcards, e.g. Maestro or MasterCard cards. - */ - readonly limit_card_debit_wildcard?: number; - /** - * The limit of wildcards, e.g. Maestro or MasterCard cards. - */ - readonly limit_card_wildcard?: number; - /** - * DEPRECTATED: The limit of free replacement debit cards, replaced by: limit_card_replacement - */ - readonly limit_card_debit_replacement?: number; - /** - * The limit of free replacement cards. - */ - readonly limit_card_replacement?: number; - /** - * The maximum amount a user is allowed to spend in a month. - */ - readonly limit_amount_monthly?: IAmount; - /** - * The amount the user has spent in the last month. - */ - readonly spent_amount_monthly?: IAmount; + /** + * The limit of monetary accounts. + */ + readonly limit_monetary_account?: number; + /** + * The amount of additional monetary accounts you can create. + */ + readonly limit_monetary_account_remaining?: number; + /** + * The limit of Maestro cards. + */ + readonly limit_card_debit_maestro?: number; + /** + * The limit of MasterCard cards. + */ + readonly limit_card_debit_mastercard?: number; + /** + * DEPRECTATED: The limit of wildcards, e.g. Maestro or MasterCard cards. + */ + readonly limit_card_debit_wildcard?: number; + /** + * The limit of wildcards, e.g. Maestro or MasterCard cards. + */ + readonly limit_card_wildcard?: number; + /** + * DEPRECTATED: The limit of free replacement debit cards, replaced by: limit_card_replacement + */ + readonly limit_card_debit_replacement?: number; + /** + * The limit of free replacement cards. + */ + readonly limit_card_replacement?: number; + /** + * The maximum amount a user is allowed to spend in a month. + */ + readonly limit_amount_monthly?: IAmount; + /** + * The amount the user has spent in the last month. + */ + readonly spent_amount_monthly?: IAmount; } export interface ICustomerLimit { - /** - * The limit of monetary accounts. - */ - readonly limit_monetary_account?: number; - /** - * The amount of additional monetary accounts you can create. - */ - readonly limit_monetary_account_remaining?: number; - /** - * The limit of Maestro cards. - */ - readonly limit_card_debit_maestro?: number; - /** - * The limit of MasterCard cards. - */ - readonly limit_card_debit_mastercard?: number; - /** - * DEPRECTATED: The limit of wildcards, e.g. Maestro or MasterCard cards. - */ - readonly limit_card_debit_wildcard?: number; - /** - * The limit of wildcards, e.g. Maestro or MasterCard cards. - */ - readonly limit_card_wildcard?: number; - /** - * DEPRECTATED: The limit of free replacement debit cards, replaced by: limit_card_replacement - */ - readonly limit_card_debit_replacement?: number; - /** - * The limit of free replacement cards. - */ - readonly limit_card_replacement?: number; - /** - * The maximum amount a user is allowed to spend in a month. - */ - readonly limit_amount_monthly?: IAmount; - /** - * The amount the user has spent in the last month. - */ - readonly spent_amount_monthly?: IAmount; + /** + * The limit of monetary accounts. + */ + readonly limit_monetary_account?: number; + /** + * The amount of additional monetary accounts you can create. + */ + readonly limit_monetary_account_remaining?: number; + /** + * The limit of Maestro cards. + */ + readonly limit_card_debit_maestro?: number; + /** + * The limit of MasterCard cards. + */ + readonly limit_card_debit_mastercard?: number; + /** + * DEPRECTATED: The limit of wildcards, e.g. Maestro or MasterCard cards. + */ + readonly limit_card_debit_wildcard?: number; + /** + * The limit of wildcards, e.g. Maestro or MasterCard cards. + */ + readonly limit_card_wildcard?: number; + /** + * DEPRECTATED: The limit of free replacement debit cards, replaced by: limit_card_replacement + */ + readonly limit_card_debit_replacement?: number; + /** + * The limit of free replacement cards. + */ + readonly limit_card_replacement?: number; + /** + * The maximum amount a user is allowed to spend in a month. + */ + readonly limit_amount_monthly?: IAmount; + /** + * The amount the user has spent in the last month. + */ + readonly spent_amount_monthly?: IAmount; } export interface ICustomer { - /** - * The primary billing account account's id. - */ - billing_account_id?: string; - /** - * The preferred notification type for invoices. - */ - invoice_notification_preference?: string; - /** - * The id of the customer. - */ - readonly id?: number; - /** - * The timestamp of the customer object's creation. - */ - readonly created?: string; - /** - * The timestamp of the customer object's last update. - */ - readonly updated?: string; + /** + * The primary billing account account's id. + */ + billing_account_id?: string; + /** + * The preferred notification type for invoices. + */ + invoice_notification_preference?: string; + /** + * The id of the customer. + */ + readonly id?: number; + /** + * The timestamp of the customer object's creation. + */ + readonly created?: string; + /** + * The timestamp of the customer object's last update. + */ + readonly updated?: string; } export interface ICoOwner { - /** - * The Alias of the co-owner. - */ - alias?: ILabelUser; - /** - * Can be: ACCEPTED, REJECTED, PENDING or REVOKED - */ - readonly status?: string; + /** + * The Alias of the co-owner. + */ + alias?: ILabelUser; + /** + * Can be: ACCEPTED, REJECTED, PENDING or REVOKED + */ + readonly status?: string; } export interface IConfirmationOfFundsCreate { - /** - * The id of the created item - */ - readonly Id?: BunqId; + /** + * The id of the created item + */ + readonly Id?: BunqId; } export interface IConfirmationOfFunds { - /** - * The pointer (IBAN) of the account we're querying. - */ - pointer_iban: IPointer; - /** - * The amount we want to check for. - */ - amount: IAmount; + /** + * The pointer (IBAN) of the account we're querying. + */ + pointer_iban: IPointer; + /** + * The amount we want to check for. + */ + amount: IAmount; } export interface ICertificatePinnedRead { - /** - * The certificate chain in .PEM format. Certificates are glued with newline characters. - */ - readonly certificate_chain?: string; - /** - * The id generated for the pinned certificate chain. - */ - readonly id?: number; + /** + * The certificate chain in .PEM format. Certificates are glued with newline characters. + */ + readonly certificate_chain?: string; + /** + * The id generated for the pinned certificate chain. + */ + readonly id?: number; } export interface ICertificatePinnedListing { - /** - * The certificate chain in .PEM format. Certificates are glued with newline characters. - */ - readonly certificate_chain?: string; - /** - * The id generated for the pinned certificate chain. - */ - readonly id?: number; + /** + * The certificate chain in .PEM format. Certificates are glued with newline characters. + */ + readonly certificate_chain?: string; + /** + * The id generated for the pinned certificate chain. + */ + readonly id?: number; } export interface ICertificatePinnedDelete {} export interface ICertificatePinnedCreate { - /** - * The id generated for the pinned certificate chain. - */ - readonly id?: number; + /** + * The id generated for the pinned certificate chain. + */ + readonly id?: number; } export interface ICertificatePinned { - /** - * The certificate chain in .PEM format. - */ - certificate_chain: Array; + /** + * The certificate chain in .PEM format. + */ + certificate_chain: Array; } export interface ICertificate { - /** - * A single certificate in the chain in .PEM format. - */ - certificate?: string; + /** + * A single certificate in the chain in .PEM format. + */ + certificate?: string; } export interface ICashRegisterUpdate { - /** - * The id of the updated CashRegister. - */ - readonly id?: number; + /** + * The id of the updated CashRegister. + */ + readonly id?: number; } export interface ICashRegisterRead { - /** - * The id of the created CashRegister. - */ - readonly id?: number; - /** - * The timestamp of the CashRegister's creation. - */ - readonly created?: string; - /** - * The timestamp of the CashRegister's last update. - */ - readonly updated?: string; - /** - * The name of the CashRegister. - */ - readonly name?: string; - /** - * The status of the CashRegister. Can be PENDING_APPROVAL, ACTIVE, DENIED or CLOSED. - */ - readonly status?: string; - /** - * The Avatar of the CashRegister. - */ - readonly avatar?: IAvatar; - /** - * The geolocation of the CashRegister. Can be null. - */ - readonly location?: IGeolocation; - /** - * The tab text for waiting screen of CashRegister. - */ - readonly tab_text_waiting_screen?: Array; + /** + * The id of the created CashRegister. + */ + readonly id?: number; + /** + * The timestamp of the CashRegister's creation. + */ + readonly created?: string; + /** + * The timestamp of the CashRegister's last update. + */ + readonly updated?: string; + /** + * The name of the CashRegister. + */ + readonly name?: string; + /** + * The status of the CashRegister. Can be PENDING_APPROVAL, ACTIVE, DENIED or CLOSED. + */ + readonly status?: string; + /** + * The Avatar of the CashRegister. + */ + readonly avatar?: IAvatar; + /** + * The geolocation of the CashRegister. Can be null. + */ + readonly location?: IGeolocation; + /** + * The tab text for waiting screen of CashRegister. + */ + readonly tab_text_waiting_screen?: Array; } export interface ICashRegisterQrCodeUpdate { - /** - * The id of the updated QR code. Use this id to get the RAW content of the QR code with: ../qr-code/{id}/content - */ - readonly id?: number; + /** + * The id of the updated QR code. Use this id to get the RAW content of the QR code with: ../qr-code/{id}/content + */ + readonly id?: number; } export interface ICashRegisterQrCodeRead { - /** - * The id of the created QR code. Use this id to get the RAW content of the QR code with: ../qr-code/{id}/content - */ - readonly id?: number; - /** - * The timestamp of the QR code's creation. - */ - readonly created?: string; - /** - * The timestamp of the TokenQrCashRegister's last update. - */ - readonly updated?: string; - /** - * The status of this QR code. If the status is "ACTIVE" the QR code can be scanned to see the linked CashRegister and tab. If the status is "INACTIVE" the QR code does not link to a anything. - */ - readonly status?: string; - /** - * The CashRegister that is linked to the token. - */ - readonly cash_register?: ICashRegister; - /** - * Holds the Tab object. Can be TabUsageSingle, TabUsageMultiple or null - */ - readonly tab_object?: ITab; + /** + * The id of the created QR code. Use this id to get the RAW content of the QR code with: ../qr-code/{id}/content + */ + readonly id?: number; + /** + * The timestamp of the QR code's creation. + */ + readonly created?: string; + /** + * The timestamp of the TokenQrCashRegister's last update. + */ + readonly updated?: string; + /** + * The status of this QR code. If the status is "ACTIVE" the QR code can be scanned to see the linked CashRegister and tab. If the status is "INACTIVE" the QR code does not link to a anything. + */ + readonly status?: string; + /** + * The CashRegister that is linked to the token. + */ + readonly cash_register?: ICashRegister; + /** + * Holds the Tab object. Can be TabUsageSingle, TabUsageMultiple or null + */ + readonly tab_object?: ITab; } export interface ICashRegisterQrCodeListing { - /** - * The id of the created QR code. Use this id to get the RAW content of the QR code with: ../qr-code/{id}/content - */ - readonly id?: number; - /** - * The timestamp of the QR code's creation. - */ - readonly created?: string; - /** - * The timestamp of the TokenQrCashRegister's last update. - */ - readonly updated?: string; - /** - * The status of this QR code. If the status is "ACTIVE" the QR code can be scanned to see the linked CashRegister and tab. If the status is "INACTIVE" the QR code does not link to a anything. - */ - readonly status?: string; - /** - * The CashRegister that is linked to the token. - */ - readonly cash_register?: ICashRegister; - /** - * Holds the Tab object. Can be TabUsageSingle, TabUsageMultiple or null - */ - readonly tab_object?: ITab; + /** + * The id of the created QR code. Use this id to get the RAW content of the QR code with: ../qr-code/{id}/content + */ + readonly id?: number; + /** + * The timestamp of the QR code's creation. + */ + readonly created?: string; + /** + * The timestamp of the TokenQrCashRegister's last update. + */ + readonly updated?: string; + /** + * The status of this QR code. If the status is "ACTIVE" the QR code can be scanned to see the linked CashRegister and tab. If the status is "INACTIVE" the QR code does not link to a anything. + */ + readonly status?: string; + /** + * The CashRegister that is linked to the token. + */ + readonly cash_register?: ICashRegister; + /** + * Holds the Tab object. Can be TabUsageSingle, TabUsageMultiple or null + */ + readonly tab_object?: ITab; } export interface ICashRegisterQrCodeCreate { - /** - * The id of the created QR code. Use this id to get the RAW content of the QR code with: ../qr-code/{id}/content - */ - readonly id?: number; + /** + * The id of the created QR code. Use this id to get the RAW content of the QR code with: ../qr-code/{id}/content + */ + readonly id?: number; } export interface ICashRegisterQrCodeContentListing {} export interface ICashRegisterQrCode { - /** - * The status of the QR code. ACTIVE or INACTIVE. Only one QR code can be ACTIVE for a CashRegister at any time. Setting a QR code to ACTIVE will deactivate any other CashRegister QR codes. - */ - status: string; + /** + * The status of the QR code. ACTIVE or INACTIVE. Only one QR code can be ACTIVE for a CashRegister at any time. Setting a QR code to ACTIVE will deactivate any other CashRegister QR codes. + */ + status: string; } export interface ICashRegisterListing { - /** - * The id of the created CashRegister. - */ - readonly id?: number; - /** - * The timestamp of the CashRegister's creation. - */ - readonly created?: string; - /** - * The timestamp of the CashRegister's last update. - */ - readonly updated?: string; - /** - * The name of the CashRegister. - */ - readonly name?: string; - /** - * The status of the CashRegister. Can be PENDING_APPROVAL, ACTIVE, DENIED or CLOSED. - */ - readonly status?: string; - /** - * The Avatar of the CashRegister. - */ - readonly avatar?: IAvatar; - /** - * The geolocation of the CashRegister. Can be null. - */ - readonly location?: IGeolocation; - /** - * The tab text for waiting screen of CashRegister. - */ - readonly tab_text_waiting_screen?: Array; + /** + * The id of the created CashRegister. + */ + readonly id?: number; + /** + * The timestamp of the CashRegister's creation. + */ + readonly created?: string; + /** + * The timestamp of the CashRegister's last update. + */ + readonly updated?: string; + /** + * The name of the CashRegister. + */ + readonly name?: string; + /** + * The status of the CashRegister. Can be PENDING_APPROVAL, ACTIVE, DENIED or CLOSED. + */ + readonly status?: string; + /** + * The Avatar of the CashRegister. + */ + readonly avatar?: IAvatar; + /** + * The geolocation of the CashRegister. Can be null. + */ + readonly location?: IGeolocation; + /** + * The tab text for waiting screen of CashRegister. + */ + readonly tab_text_waiting_screen?: Array; } export interface ICashRegisterCreate { - /** - * The id of the created CashRegister. - */ - readonly id?: number; + /** + * The id of the created CashRegister. + */ + readonly id?: number; } export interface ICashRegister { - /** - * The name of the CashRegister. - */ - name?: string; - /** - * The status of the CashRegister. Can be PENDING_APPROVAL, ACTIVE, DENIED or CLOSED. - */ - status?: string; - /** - * The UUID of the avatar of the CashRegister. Use the calls /attachment-public and /avatar to create a new Avatar and get its UUID. - */ - avatar_uuid: string; - /** - * The geolocation of the CashRegister. Can be null. - */ - location?: IGeolocation; - /** - * The tab text for waiting screen of CashRegister. - */ - tab_text_waiting_screen?: Array; - /** - * The id of the created CashRegister. - */ - readonly id?: number; - /** - * The timestamp of the CashRegister's creation. - */ - readonly created?: string; - /** - * The timestamp of the CashRegister's last update. - */ - readonly updated?: string; - /** - * The Avatar of the CashRegister. - */ - readonly avatar?: IAvatar; + /** + * The name of the CashRegister. + */ + name?: string; + /** + * The status of the CashRegister. Can be PENDING_APPROVAL, ACTIVE, DENIED or CLOSED. + */ + status?: string; + /** + * The UUID of the avatar of the CashRegister. Use the calls /attachment-public and /avatar to create a new Avatar and get its UUID. + */ + avatar_uuid: string; + /** + * The geolocation of the CashRegister. Can be null. + */ + location?: IGeolocation; + /** + * The tab text for waiting screen of CashRegister. + */ + tab_text_waiting_screen?: Array; + /** + * The id of the created CashRegister. + */ + readonly id?: number; + /** + * The timestamp of the CashRegister's creation. + */ + readonly created?: string; + /** + * The timestamp of the CashRegister's last update. + */ + readonly updated?: string; + /** + * The Avatar of the CashRegister. + */ + readonly avatar?: IAvatar; } export interface ICardUpdate { - /** - * The id of the created item - */ - readonly Id?: BunqId; + /** + * The id of the created item + */ + readonly Id?: BunqId; } export interface ICardReplaceCreate { - /** - * The id of the created item - */ - readonly Id?: BunqId; + /** + * The id of the created item + */ + readonly Id?: BunqId; } export interface ICardReplace { - /** - * The user's name as it will be on the card. Check 'card-name' for the available card names for a user. - */ - name_on_card?: string; - /** - * Array of Types, PINs, account IDs assigned to the card. - */ - pin_code_assignment?: Array; - /** - * The second line on the card. - */ - second_line?: string; + /** + * The user's name as it will be on the card. Check 'card-name' for the available card names for a user. + */ + name_on_card?: string; + /** + * Array of Types, PINs, account IDs assigned to the card. + */ + pin_code_assignment?: Array; + /** + * The second line on the card. + */ + second_line?: string; } export interface ICardRead { - /** - * The id of the card. - */ - readonly id?: number; - /** - * The timestamp of the card's creation. - */ - readonly created?: string; - /** - * The timestamp of the card's last update. - */ - readonly updated?: string; - /** - * The public UUID of the card. - */ - readonly public_uuid?: string; - /** - * The type of the card. Can be MAESTRO, MASTERCARD. - */ - readonly type?: string; - /** - * The sub-type of the card. - */ - readonly sub_type?: string; - /** - * The second line of text on the card - */ - readonly second_line?: string; - /** - * The status to set for the card. Can be ACTIVE, DEACTIVATED, LOST, STOLEN, CANCELLED, EXPIRED or PIN_TRIES_EXCEEDED. - */ - readonly status?: string; - /** - * The sub-status of the card. Can be NONE or REPLACED. - */ - readonly sub_status?: string; - /** - * The order status of the card. Can be CARD_UPDATE_REQUESTED, CARD_UPDATE_SENT, CARD_UPDATE_ACCEPTED, ACCEPTED_FOR_PRODUCTION or DELIVERED_TO_CUSTOMER. - */ - readonly order_status?: string; - /** - * Expiry date of the card. - */ - readonly expiry_date?: string; - /** - * The user's name on the card. - */ - readonly name_on_card?: string; - /** - * Array of PANs and their attributes. - */ - readonly primary_account_numbers?: Array; - /** - * The spending limit for the card. - */ - readonly card_limit?: IAmount; - /** - * The ATM spending limit for the card. - */ - readonly card_limit_atm?: IAmount; - /** - * The countries for which to grant (temporary) permissions to use the card. - */ - readonly country_permission?: Array; - /** - * The monetary account this card was ordered on and the label user that owns the card. - */ - readonly label_monetary_account_ordered?: ILabelMonetaryAccount; - /** - * The monetary account that this card is currently linked to and the label user viewing it. - */ - readonly label_monetary_account_current?: ILabelMonetaryAccount; - /** - * Array of Types, PINs, account IDs assigned to the card. - */ - readonly pin_code_assignment?: Array; - /** - * ID of the MA to be used as fallback for this card if insufficient balance. Fallback account is removed if not supplied. - */ - readonly monetary_account_id_fallback?: number; - /** - * The country that is domestic to the card. Defaults to country of residence of user. - */ - readonly country?: string; + /** + * The id of the card. + */ + readonly id?: number; + /** + * The timestamp of the card's creation. + */ + readonly created?: string; + /** + * The timestamp of the card's last update. + */ + readonly updated?: string; + /** + * The public UUID of the card. + */ + readonly public_uuid?: string; + /** + * The type of the card. Can be MAESTRO, MASTERCARD. + */ + readonly type?: string; + /** + * The sub-type of the card. + */ + readonly sub_type?: string; + /** + * The second line of text on the card + */ + readonly second_line?: string; + /** + * The status to set for the card. Can be ACTIVE, DEACTIVATED, LOST, STOLEN, CANCELLED, EXPIRED or PIN_TRIES_EXCEEDED. + */ + readonly status?: string; + /** + * The sub-status of the card. Can be NONE or REPLACED. + */ + readonly sub_status?: string; + /** + * The order status of the card. Can be CARD_UPDATE_REQUESTED, CARD_UPDATE_SENT, CARD_UPDATE_ACCEPTED, ACCEPTED_FOR_PRODUCTION or DELIVERED_TO_CUSTOMER. + */ + readonly order_status?: string; + /** + * Expiry date of the card. + */ + readonly expiry_date?: string; + /** + * The user's name on the card. + */ + readonly name_on_card?: string; + /** + * Array of PANs and their attributes. + */ + readonly primary_account_numbers?: Array; + /** + * The spending limit for the card. + */ + readonly card_limit?: IAmount; + /** + * The ATM spending limit for the card. + */ + readonly card_limit_atm?: IAmount; + /** + * The countries for which to grant (temporary) permissions to use the card. + */ + readonly country_permission?: Array; + /** + * The monetary account this card was ordered on and the label user that owns the card. + */ + readonly label_monetary_account_ordered?: ILabelMonetaryAccount; + /** + * The monetary account that this card is currently linked to and the label user viewing it. + */ + readonly label_monetary_account_current?: ILabelMonetaryAccount; + /** + * Array of Types, PINs, account IDs assigned to the card. + */ + readonly pin_code_assignment?: Array; + /** + * ID of the MA to be used as fallback for this card if insufficient balance. Fallback account is removed if not supplied. + */ + readonly monetary_account_id_fallback?: number; + /** + * The country that is domestic to the card. Defaults to country of residence of user. + */ + readonly country?: string; } export interface ICardPrimaryAccountNumber { - /** - * The ID for this Virtual PAN. - */ - id?: number; - /** - * The description for this PAN. - */ - description?: string; - /** - * The status for this PAN, only for Online Cards. - */ - status?: string; - /** - * The ID of the monetary account to assign to this PAN, only for Online Cards. - */ - monetary_account_id?: number; - /** - * The UUID for this Virtual PAN. - */ - readonly uuid?: string; - /** - * The last four digits of the PAN. - */ - readonly four_digit?: string; + /** + * The ID for this Virtual PAN. + */ + id?: number; + /** + * The description for this PAN. + */ + description?: string; + /** + * The status for this PAN, only for Online Cards. + */ + status?: string; + /** + * The ID of the monetary account to assign to this PAN, only for Online Cards. + */ + monetary_account_id?: number; + /** + * The UUID for this Virtual PAN. + */ + readonly uuid?: string; + /** + * The last four digits of the PAN. + */ + readonly four_digit?: string; } export interface ICardPinAssignment { - /** - * PIN type. Can be PRIMARY, SECONDARY or TERTIARY - */ - type: AssignmentType; - /** - * The 4 digit PIN to be assigned to this account. - */ - pin_code?: string; - /** - * The ID of the monetary account to assign to this pin for the card. - */ - monetary_account_id: number; + /** + * PIN type. Can be PRIMARY, SECONDARY or TERTIARY + */ + type: AssignmentType; + /** + * The 4 digit PIN to be assigned to this account. + */ + pin_code?: string; + /** + * The ID of the monetary account to assign to this pin for the card. + */ + monetary_account_id: number; } export interface ICardNameListing { - /** - * All possible variations (of suitable length) of user's legal name for the debit card. - */ - readonly possible_card_name_array?: Array; + /** + * All possible variations (of suitable length) of user's legal name for the debit card. + */ + readonly possible_card_name_array?: Array; } export interface ICardListing { - /** - * The id of the card. - */ - readonly id?: number; - /** - * The timestamp of the card's creation. - */ - readonly created?: string; - /** - * The timestamp of the card's last update. - */ - readonly updated?: string; - /** - * The public UUID of the card. - */ - readonly public_uuid?: string; - /** - * The type of the card. Can be MAESTRO, MASTERCARD. - */ - readonly type?: string; - /** - * The sub-type of the card. - */ - readonly sub_type?: string; - /** - * The second line of text on the card - */ - readonly second_line?: string; - /** - * The status to set for the card. Can be ACTIVE, DEACTIVATED, LOST, STOLEN, CANCELLED, EXPIRED or PIN_TRIES_EXCEEDED. - */ - readonly status?: string; - /** - * The sub-status of the card. Can be NONE or REPLACED. - */ - readonly sub_status?: string; - /** - * The order status of the card. Can be CARD_UPDATE_REQUESTED, CARD_UPDATE_SENT, CARD_UPDATE_ACCEPTED, ACCEPTED_FOR_PRODUCTION or DELIVERED_TO_CUSTOMER. - */ - readonly order_status?: string; - /** - * Expiry date of the card. - */ - readonly expiry_date?: string; - /** - * The user's name on the card. - */ - readonly name_on_card?: string; - /** - * Array of PANs and their attributes. - */ - readonly primary_account_numbers?: Array; - /** - * The spending limit for the card. - */ - readonly card_limit?: IAmount; - /** - * The ATM spending limit for the card. - */ - readonly card_limit_atm?: IAmount; - /** - * The countries for which to grant (temporary) permissions to use the card. - */ - readonly country_permission?: Array; - /** - * The monetary account this card was ordered on and the label user that owns the card. - */ - readonly label_monetary_account_ordered?: ILabelMonetaryAccount; - /** - * The monetary account that this card is currently linked to and the label user viewing it. - */ - readonly label_monetary_account_current?: ILabelMonetaryAccount; - /** - * Array of Types, PINs, account IDs assigned to the card. - */ - readonly pin_code_assignment?: Array; - /** - * ID of the MA to be used as fallback for this card if insufficient balance. Fallback account is removed if not supplied. - */ - readonly monetary_account_id_fallback?: number; - /** - * The country that is domestic to the card. Defaults to country of residence of user. - */ - readonly country?: string; + /** + * The id of the card. + */ + readonly id?: number; + /** + * The timestamp of the card's creation. + */ + readonly created?: string; + /** + * The timestamp of the card's last update. + */ + readonly updated?: string; + /** + * The public UUID of the card. + */ + readonly public_uuid?: string; + /** + * The type of the card. Can be MAESTRO, MASTERCARD. + */ + readonly type?: string; + /** + * The sub-type of the card. + */ + readonly sub_type?: string; + /** + * The second line of text on the card + */ + readonly second_line?: string; + /** + * The status to set for the card. Can be ACTIVE, DEACTIVATED, LOST, STOLEN, CANCELLED, EXPIRED or PIN_TRIES_EXCEEDED. + */ + readonly status?: string; + /** + * The sub-status of the card. Can be NONE or REPLACED. + */ + readonly sub_status?: string; + /** + * The order status of the card. Can be CARD_UPDATE_REQUESTED, CARD_UPDATE_SENT, CARD_UPDATE_ACCEPTED, ACCEPTED_FOR_PRODUCTION or DELIVERED_TO_CUSTOMER. + */ + readonly order_status?: string; + /** + * Expiry date of the card. + */ + readonly expiry_date?: string; + /** + * The user's name on the card. + */ + readonly name_on_card?: string; + /** + * Array of PANs and their attributes. + */ + readonly primary_account_numbers?: Array; + /** + * The spending limit for the card. + */ + readonly card_limit?: IAmount; + /** + * The ATM spending limit for the card. + */ + readonly card_limit_atm?: IAmount; + /** + * The countries for which to grant (temporary) permissions to use the card. + */ + readonly country_permission?: Array; + /** + * The monetary account this card was ordered on and the label user that owns the card. + */ + readonly label_monetary_account_ordered?: ILabelMonetaryAccount; + /** + * The monetary account that this card is currently linked to and the label user viewing it. + */ + readonly label_monetary_account_current?: ILabelMonetaryAccount; + /** + * Array of Types, PINs, account IDs assigned to the card. + */ + readonly pin_code_assignment?: Array; + /** + * ID of the MA to be used as fallback for this card if insufficient balance. Fallback account is removed if not supplied. + */ + readonly monetary_account_id_fallback?: number; + /** + * The country that is domestic to the card. Defaults to country of residence of user. + */ + readonly country?: string; } export interface ICardGeneratedCvc2Update { - /** - * The id of the created item - */ - readonly Id?: BunqId; + /** + * The id of the created item + */ + readonly Id?: BunqId; } export interface ICardGeneratedCvc2Read { - /** - * The id of the cvc code. - */ - readonly id?: number; - /** - * The timestamp of the cvc code's creation. - */ - readonly created?: string; - /** - * The timestamp of the cvc code's last update. - */ - readonly updated?: string; - /** - * The type of generated cvc2. Can be STATIC or GENERATED. - */ - readonly type?: string; - /** - * The cvc2 code. - */ - readonly cvc2?: string; - /** - * The status of the cvc2. Can be AVAILABLE, USED, EXPIRED, BLOCKED. - */ - readonly status?: string; - /** - * Expiry time of the cvc2. - */ - readonly expiry_time?: string; + /** + * The id of the cvc code. + */ + readonly id?: number; + /** + * The timestamp of the cvc code's creation. + */ + readonly created?: string; + /** + * The timestamp of the cvc code's last update. + */ + readonly updated?: string; + /** + * The type of generated cvc2. Can be STATIC or GENERATED. + */ + readonly type?: string; + /** + * The cvc2 code. + */ + readonly cvc2?: string; + /** + * The status of the cvc2. Can be AVAILABLE, USED, EXPIRED, BLOCKED. + */ + readonly status?: string; + /** + * Expiry time of the cvc2. + */ + readonly expiry_time?: string; } export interface ICardGeneratedCvc2Listing { - /** - * The id of the cvc code. - */ - readonly id?: number; - /** - * The timestamp of the cvc code's creation. - */ - readonly created?: string; - /** - * The timestamp of the cvc code's last update. - */ - readonly updated?: string; - /** - * The type of generated cvc2. Can be STATIC or GENERATED. - */ - readonly type?: string; - /** - * The cvc2 code. - */ - readonly cvc2?: string; - /** - * The status of the cvc2. Can be AVAILABLE, USED, EXPIRED, BLOCKED. - */ - readonly status?: string; - /** - * Expiry time of the cvc2. - */ - readonly expiry_time?: string; + /** + * The id of the cvc code. + */ + readonly id?: number; + /** + * The timestamp of the cvc code's creation. + */ + readonly created?: string; + /** + * The timestamp of the cvc code's last update. + */ + readonly updated?: string; + /** + * The type of generated cvc2. Can be STATIC or GENERATED. + */ + readonly type?: string; + /** + * The cvc2 code. + */ + readonly cvc2?: string; + /** + * The status of the cvc2. Can be AVAILABLE, USED, EXPIRED, BLOCKED. + */ + readonly status?: string; + /** + * Expiry time of the cvc2. + */ + readonly expiry_time?: string; } export interface ICardGeneratedCvc2Create { - /** - * The id of the created item - */ - readonly Id?: BunqId; + /** + * The id of the created item + */ + readonly Id?: BunqId; } export interface ICardGeneratedCvc2 { - /** - * The type of generated cvc2. Can be STATIC or GENERATED. - */ - type?: string; + /** + * The type of generated cvc2. Can be STATIC or GENERATED. + */ + type?: string; } export interface ICardDebitCreate { - /** - * The id of the created item - */ - readonly Id?: BunqId; + /** + * The id of the created item + */ + readonly Id?: BunqId; } export interface ICardDebit { - /** - * The second line of text on the card, used as name/description for it. It can contain at most 17 characters and it can be empty. - */ - second_line: string; - /** - * The user's name as it will be on the card. Check 'card-name' for the available card names for a user. - */ - name_on_card: string; - /** - * The pointer to the monetary account that will be connected at first with the card. Its IBAN code is also the one that will be printed on the card itself. The pointer must be of type IBAN. - */ - alias?: IPointer; - /** - * The type of card to order. Can be MAESTRO or MASTERCARD. - */ - type: string; - /** - * Array of Types, PINs, account IDs assigned to the card. - */ - pin_code_assignment?: Array; - /** - * ID of the MA to be used as fallback for this card if insufficient balance. Fallback account is removed if not supplied. - */ - monetary_account_id_fallback?: number; + /** + * The second line of text on the card, used as name/description for it. It can contain at most 17 characters and it can be empty. + */ + second_line: string; + /** + * The user's name as it will be on the card. Check 'card-name' for the available card names for a user. + */ + name_on_card: string; + /** + * The pointer to the monetary account that will be connected at first with the card. Its IBAN code is also the one that will be printed on the card itself. The pointer must be of type IBAN. + */ + alias?: IPointer; + /** + * The type of card to order. Can be MAESTRO or MASTERCARD. + */ + type: string; + /** + * Array of Types, PINs, account IDs assigned to the card. + */ + pin_code_assignment?: Array; + /** + * ID of the MA to be used as fallback for this card if insufficient balance. Fallback account is removed if not supplied. + */ + monetary_account_id_fallback?: number; } export interface ICardCreditCreate { - /** - * The id of the created item - */ - readonly Id?: BunqId; + /** + * The id of the created item + */ + readonly Id?: BunqId; } export interface ICardCredit { - /** - * The second line of text on the card, used as name/description for it. It can contain at most 17 characters and it can be empty. - */ - second_line: string; - /** - * The user's name as it will be on the card. Check 'card-name' for the available card names for a user. - */ - name_on_card: string; - /** - * The pointer to the monetary account that will be connected at first with the card. Its IBAN code is also the one that will be printed on the card itself. The pointer must be of type IBAN. - */ - alias?: IPointer; - /** - * The type of card to order. Can be MASTERCARD. - */ - type: string; - /** - * Array of Types, PINs, account IDs assigned to the card. - */ - pin_code_assignment?: Array; - /** - * ID of the MA to be used as fallback for this card if insufficient balance. Fallback account is removed if not supplied. - */ - monetary_account_id_fallback?: number; + /** + * The second line of text on the card, used as name/description for it. It can contain at most 17 characters and it can be empty. + */ + second_line: string; + /** + * The user's name as it will be on the card. Check 'card-name' for the available card names for a user. + */ + name_on_card: string; + /** + * The pointer to the monetary account that will be connected at first with the card. Its IBAN code is also the one that will be printed on the card itself. The pointer must be of type IBAN. + */ + alias?: IPointer; + /** + * The type of card to order. Can be MASTERCARD. + */ + type: string; + /** + * Array of Types, PINs, account IDs assigned to the card. + */ + pin_code_assignment?: Array; + /** + * ID of the MA to be used as fallback for this card if insufficient balance. Fallback account is removed if not supplied. + */ + monetary_account_id_fallback?: number; } export interface ICardCountryPermission { - /** - * The country to allow transactions in (e.g. NL, DE). - */ - country: string; - /** - * Expiry time of this rule. - */ - expiry_time: string; - /** - * The id of the card country permission entry. - */ - readonly id?: number; + /** + * The country to allow transactions in (e.g. NL, DE). + */ + country: string; + /** + * Expiry time of this rule. + */ + expiry_time: string; + /** + * The id of the card country permission entry. + */ + readonly id?: number; } export interface ICardBatchEntry { - /** - * The ID of the card that needs to be updated. - */ - id: number; - /** - * 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 ACCEPTED_FOR_PRODUCTION/DELIVERED_TO_CUSTOMER/CARD_UPDATE_REQUESTED/CARD_UPDATE_SENT/CARD_UPDATE_ACCEPTED. Can only be set to DEACTIVATED after initial activation, i.e. order_status is DELIVERED_TO_CUSTOMER/CARD_UPDATE_REQUESTED/CARD_UPDATE_SENT/CARD_UPDATE_ACCEPTED. Mind that all the possible choices (apart from ACTIVE and DEACTIVATED) are permanent and cannot be changed after. - */ - status?: string; - /** - * The spending limit for the card. - */ - card_limit?: IAmount; - /** - * The ATM spending limit for the card. - */ - card_limit_atm?: IAmount; - /** - * The countries for which to grant (temporary) permissions to use the card. - */ - country_permission?: Array; - /** - * ID of the MA to be used as fallback for this card if insufficient balance. Fallback account is removed if not supplied. - */ - monetary_account_id_fallback?: number; + /** + * The ID of the card that needs to be updated. + */ + id: number; + /** + * 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 ACCEPTED_FOR_PRODUCTION/DELIVERED_TO_CUSTOMER/CARD_UPDATE_REQUESTED/CARD_UPDATE_SENT/CARD_UPDATE_ACCEPTED. Can only be set to DEACTIVATED after initial activation, i.e. order_status is DELIVERED_TO_CUSTOMER/CARD_UPDATE_REQUESTED/CARD_UPDATE_SENT/CARD_UPDATE_ACCEPTED. Mind that all the possible choices (apart from ACTIVE and DEACTIVATED) are permanent and cannot be changed after. + */ + status?: string; + /** + * The spending limit for the card. + */ + card_limit?: IAmount; + /** + * The ATM spending limit for the card. + */ + card_limit_atm?: IAmount; + /** + * The countries for which to grant (temporary) permissions to use the card. + */ + country_permission?: Array; + /** + * ID of the MA to be used as fallback for this card if insufficient balance. Fallback account is removed if not supplied. + */ + monetary_account_id_fallback?: number; } export interface ICardBatchCreate { - /** - * The ids of the cards that have been updated. - */ - readonly updated_card_ids?: Array; + /** + * The ids of the cards that have been updated. + */ + readonly updated_card_ids?: Array; } export interface ICardBatch { - /** - * The cards that need to be updated. - */ - cards: Array; + /** + * The cards that need to be updated. + */ + cards: Array; } export interface ICard { - /** - * The plaintext pin code. Requests require encryption to be enabled. - */ - pin_code?: string; - /** - * DEPRECATED: Activate a card by setting status to ACTIVE when the order_status is ACCEPTED_FOR_PRODUCTION. - */ - activation_code?: string; - /** - * 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 ACCEPTED_FOR_PRODUCTION/DELIVERED_TO_CUSTOMER/CARD_UPDATE_REQUESTED/CARD_UPDATE_SENT/CARD_UPDATE_ACCEPTED. Can only be set to DEACTIVATED after initial activation, i.e. order_status is DELIVERED_TO_CUSTOMER/CARD_UPDATE_REQUESTED/CARD_UPDATE_SENT/CARD_UPDATE_ACCEPTED. Mind that all the possible choices (apart from ACTIVE and DEACTIVATED) are permanent and cannot be changed after. - */ - status?: string; - /** - * The spending limit for the card. - */ - card_limit?: IAmount; - /** - * The ATM spending limit for the card. - */ - card_limit_atm?: IAmount; - /** - * The countries for which to grant (temporary) permissions to use the card. - */ - country_permission?: Array; - /** - * Array of Types, PINs, account IDs assigned to the card. - */ - pin_code_assignment?: Array; - /** - * Array of PANs and their attributes. - */ - primary_account_numbers?: Array; - /** - * ID of the MA to be used as fallback for this card if insufficient balance. Fallback account is removed if not supplied. - */ - monetary_account_id_fallback?: number; + /** + * The plaintext pin code. Requests require encryption to be enabled. + */ + pin_code?: string; + /** + * DEPRECATED: Activate a card by setting status to ACTIVE when the order_status is ACCEPTED_FOR_PRODUCTION. + */ + activation_code?: string; + /** + * 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 ACCEPTED_FOR_PRODUCTION/DELIVERED_TO_CUSTOMER/CARD_UPDATE_REQUESTED/CARD_UPDATE_SENT/CARD_UPDATE_ACCEPTED. Can only be set to DEACTIVATED after initial activation, i.e. order_status is DELIVERED_TO_CUSTOMER/CARD_UPDATE_REQUESTED/CARD_UPDATE_SENT/CARD_UPDATE_ACCEPTED. Mind that all the possible choices (apart from ACTIVE and DEACTIVATED) are permanent and cannot be changed after. + */ + status?: string; + /** + * The spending limit for the card. + */ + card_limit?: IAmount; + /** + * The ATM spending limit for the card. + */ + card_limit_atm?: IAmount; + /** + * The countries for which to grant (temporary) permissions to use the card. + */ + country_permission?: Array; + /** + * Array of Types, PINs, account IDs assigned to the card. + */ + pin_code_assignment?: Array; + /** + * Array of PANs and their attributes. + */ + primary_account_numbers?: Array; + /** + * ID of the MA to be used as fallback for this card if insufficient balance. Fallback account is removed if not supplied. + */ + monetary_account_id_fallback?: number; } export interface IBunqMeTabUpdate { - /** - * The id of the created item - */ - readonly Id?: BunqId; + /** + * The id of the created item + */ + readonly Id?: BunqId; } export interface IBunqMeTabResultResponseRead { - /** - * The payment made for the bunq.me tab. - */ - readonly payment?: IPayment; + /** + * The payment made for the bunq.me tab. + */ + readonly payment?: IPayment; } export interface IBunqMeTabResultResponse { - /** - * The payment made for the bunq.me tab. - */ - readonly payment?: IPayment; + /** + * The payment made for the bunq.me tab. + */ + readonly payment?: IPayment; } export interface IBunqMeTabResultInquiry { - /** - * The payment made for the Tab. - */ - readonly payment?: IPayment; - /** - * The Id of the bunq.me tab that this BunqMeTabResultInquiry belongs to. - */ - readonly bunq_me_tab_id?: number; + /** + * The payment made for the Tab. + */ + readonly payment?: IPayment; + /** + * The Id of the bunq.me tab that this BunqMeTabResultInquiry belongs to. + */ + readonly bunq_me_tab_id?: number; } export interface IBunqMeTabRead { - /** - * The id of the created bunq.me. - */ - readonly id?: number; - /** - * The timestamp when the bunq.me was created. - */ - readonly created?: string; - /** - * The timestamp when the bunq.me was last updated. - */ - readonly updated?: string; - /** - * The timestamp of when the bunq.me expired or will expire. - */ - readonly time_expiry?: string; - /** - * The id of the MonetaryAccount the bunq.me was sent from. - */ - readonly monetary_account_id?: number; - /** - * The status of the bunq.me. Can be WAITING_FOR_PAYMENT, CANCELLED or EXPIRED. - */ - readonly status?: string; - /** - * The url that points to the bunq.me page. - */ - readonly bunqme_tab_share_url?: string; - /** - * The bunq.me entry containing the payment information. - */ - readonly bunqme_tab_entry?: IBunqMeTabEntry; - /** - * The list of bunq.me result Inquiries successfully made and paid. - */ - readonly result_inquiries?: Array; + /** + * The id of the created bunq.me. + */ + readonly id?: number; + /** + * The timestamp when the bunq.me was created. + */ + readonly created?: string; + /** + * The timestamp when the bunq.me was last updated. + */ + readonly updated?: string; + /** + * The timestamp of when the bunq.me expired or will expire. + */ + readonly time_expiry?: string; + /** + * The id of the MonetaryAccount the bunq.me was sent from. + */ + readonly monetary_account_id?: number; + /** + * The status of the bunq.me. Can be WAITING_FOR_PAYMENT, CANCELLED or EXPIRED. + */ + readonly status?: string; + /** + * The url that points to the bunq.me page. + */ + readonly bunqme_tab_share_url?: string; + /** + * The bunq.me entry containing the payment information. + */ + readonly bunqme_tab_entry?: IBunqMeTabEntry; + /** + * The list of bunq.me result Inquiries successfully made and paid. + */ + readonly result_inquiries?: Array; } export interface IBunqMeTabListing { - /** - * The id of the created bunq.me. - */ - readonly id?: number; - /** - * The timestamp when the bunq.me was created. - */ - readonly created?: string; - /** - * The timestamp when the bunq.me was last updated. - */ - readonly updated?: string; - /** - * The timestamp of when the bunq.me expired or will expire. - */ - readonly time_expiry?: string; - /** - * The id of the MonetaryAccount the bunq.me was sent from. - */ - readonly monetary_account_id?: number; - /** - * The status of the bunq.me. Can be WAITING_FOR_PAYMENT, CANCELLED or EXPIRED. - */ - readonly status?: string; - /** - * The url that points to the bunq.me page. - */ - readonly bunqme_tab_share_url?: string; - /** - * The bunq.me entry containing the payment information. - */ - readonly bunqme_tab_entry?: IBunqMeTabEntry; - /** - * The list of bunq.me result Inquiries successfully made and paid. - */ - readonly result_inquiries?: Array; + /** + * The id of the created bunq.me. + */ + readonly id?: number; + /** + * The timestamp when the bunq.me was created. + */ + readonly created?: string; + /** + * The timestamp when the bunq.me was last updated. + */ + readonly updated?: string; + /** + * The timestamp of when the bunq.me expired or will expire. + */ + readonly time_expiry?: string; + /** + * The id of the MonetaryAccount the bunq.me was sent from. + */ + readonly monetary_account_id?: number; + /** + * The status of the bunq.me. Can be WAITING_FOR_PAYMENT, CANCELLED or EXPIRED. + */ + readonly status?: string; + /** + * The url that points to the bunq.me page. + */ + readonly bunqme_tab_share_url?: string; + /** + * The bunq.me entry containing the payment information. + */ + readonly bunqme_tab_entry?: IBunqMeTabEntry; + /** + * The list of bunq.me result Inquiries successfully made and paid. + */ + readonly result_inquiries?: Array; } export interface IBunqMeTabEntry { - /** - * The requested Amount. - */ - amount_inquired?: IAmount; - /** - * The description for the bunq.me. Maximum 9000 characters. - */ - description?: string; - /** - * The URL which the user is sent to when a payment is completed. - */ - redirect_url?: string; - /** - * The uuid of the bunq.me. - */ - readonly uuid?: string; - /** - * The LabelMonetaryAccount with the public information of the User and the MonetaryAccount that created the bunq.me link. - */ - readonly alias?: ILabelMonetaryAccount; - /** - * The status of the bunq.me. Can be WAITING_FOR_PAYMENT, CANCELLED or EXPIRED. - */ - readonly status?: string; - /** - * List of available merchants. - */ - readonly merchant_available?: Array; + /** + * The requested Amount. + */ + amount_inquired?: IAmount; + /** + * The description for the bunq.me. Maximum 9000 characters. + */ + description?: string; + /** + * The URL which the user is sent to when a payment is completed. + */ + redirect_url?: string; + /** + * The uuid of the bunq.me. + */ + readonly uuid?: string; + /** + * The LabelMonetaryAccount with the public information of the User and the MonetaryAccount that created the bunq.me link. + */ + readonly alias?: ILabelMonetaryAccount; + /** + * The status of the bunq.me. Can be WAITING_FOR_PAYMENT, CANCELLED or EXPIRED. + */ + readonly status?: string; + /** + * List of available merchants. + */ + readonly merchant_available?: Array; } export interface IBunqMeTabCreate { - /** - * The id of the created bunq.me. - */ - readonly id?: number; + /** + * The id of the created bunq.me. + */ + readonly id?: number; } export interface IBunqMeTab { - /** - * The bunq.me entry containing the payment information. - */ - bunqme_tab_entry: IBunqMeTabEntry; - /** - * 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. - */ - status?: string; + /** + * The bunq.me entry containing the payment information. + */ + bunqme_tab_entry: IBunqMeTabEntry; + /** + * 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. + */ + status?: string; } export interface IBunqMeMerchantAvailable { - /** - * A merchant type supported by bunq.me. - */ - readonly merchant_type?: string; - /** - * Whether or not the merchant is available for the user. - */ - readonly available?: boolean; + /** + * A merchant type supported by bunq.me. + */ + readonly merchant_type?: string; + /** + * Whether or not the merchant is available for the user. + */ + readonly available?: boolean; } export interface IBunqMeFundraiserResultRead { - /** - * The id of the bunq.me. - */ - readonly id?: number; - /** - * The timestamp when the bunq.me was created. - */ - readonly created?: string; - /** - * The timestamp when the bunq.me was last updated. - */ - readonly updated?: string; - /** - * The bunq.me fundraiser profile. - */ - readonly bunqme_fundraiser_profile?: IBunqMeFundraiserProfile; - /** - * The list of payments, paid to the bunq.me fundraiser profile. - */ - readonly payments?: Array; + /** + * The id of the bunq.me. + */ + readonly id?: number; + /** + * The timestamp when the bunq.me was created. + */ + readonly created?: string; + /** + * The timestamp when the bunq.me was last updated. + */ + readonly updated?: string; + /** + * The bunq.me fundraiser profile. + */ + readonly bunqme_fundraiser_profile?: IBunqMeFundraiserProfile; + /** + * The list of payments, paid to the bunq.me fundraiser profile. + */ + readonly payments?: Array; } export interface IBunqMeFundraiserResult { - /** - * The id of the bunq.me. - */ - readonly id?: number; - /** - * The timestamp when the bunq.me was created. - */ - readonly created?: string; - /** - * The timestamp when the bunq.me was last updated. - */ - readonly updated?: string; - /** - * The bunq.me fundraiser profile. - */ - readonly bunqme_fundraiser_profile?: IBunqMeFundraiserProfile; - /** - * The list of payments, paid to the bunq.me fundraiser profile. - */ - readonly payments?: Array; + /** + * The id of the bunq.me. + */ + readonly id?: number; + /** + * The timestamp when the bunq.me was created. + */ + readonly created?: string; + /** + * The timestamp when the bunq.me was last updated. + */ + readonly updated?: string; + /** + * The bunq.me fundraiser profile. + */ + readonly bunqme_fundraiser_profile?: IBunqMeFundraiserProfile; + /** + * The list of payments, paid to the bunq.me fundraiser profile. + */ + readonly payments?: Array; } export interface IBunqMeFundraiserProfileUserRead { - /** - * Id of the monetary account on which you want to receive bunq.me payments. - */ - readonly monetary_account_id?: number; - /** - * The color chosen for the bunq.me fundraiser profile in hexadecimal format. - */ - readonly color?: string; - /** - * The LabelMonetaryAccount with the public information of the User and the MonetaryAccount that created the bunq.me fundraiser profile. - */ - readonly alias?: ILabelMonetaryAccount; - /** - * The description of the bunq.me fundraiser profile. - */ - readonly description?: string; - /** - * The attachment used for the background of the bunq.me fundraiser profile. - */ - readonly attachment?: IAttachmentPublic; - /** - * The pointer (url) which will be used to access the bunq.me fundraiser profile. - */ - readonly pointer?: IPointer; - /** - * The URL which the user is sent to when a payment is completed. - */ - readonly redirect_url?: string; - /** - * The status of the bunq.me fundraiser profile, can be ACTIVE or DEACTIVATED. - */ - readonly status?: string; + /** + * Id of the monetary account on which you want to receive bunq.me payments. + */ + readonly monetary_account_id?: number; + /** + * The color chosen for the bunq.me fundraiser profile in hexadecimal format. + */ + readonly color?: string; + /** + * The LabelMonetaryAccount with the public information of the User and the MonetaryAccount that created the bunq.me fundraiser profile. + */ + readonly alias?: ILabelMonetaryAccount; + /** + * The description of the bunq.me fundraiser profile. + */ + readonly description?: string; + /** + * The attachment used for the background of the bunq.me fundraiser profile. + */ + readonly attachment?: IAttachmentPublic; + /** + * The pointer (url) which will be used to access the bunq.me fundraiser profile. + */ + readonly pointer?: IPointer; + /** + * The URL which the user is sent to when a payment is completed. + */ + readonly redirect_url?: string; + /** + * The status of the bunq.me fundraiser profile, can be ACTIVE or DEACTIVATED. + */ + readonly status?: string; } export interface IBunqMeFundraiserProfileUserListing { - /** - * Id of the monetary account on which you want to receive bunq.me payments. - */ - readonly monetary_account_id?: number; - /** - * The color chosen for the bunq.me fundraiser profile in hexadecimal format. - */ - readonly color?: string; - /** - * The LabelMonetaryAccount with the public information of the User and the MonetaryAccount that created the bunq.me fundraiser profile. - */ - readonly alias?: ILabelMonetaryAccount; - /** - * The description of the bunq.me fundraiser profile. - */ - readonly description?: string; - /** - * The attachment used for the background of the bunq.me fundraiser profile. - */ - readonly attachment?: IAttachmentPublic; - /** - * The pointer (url) which will be used to access the bunq.me fundraiser profile. - */ - readonly pointer?: IPointer; - /** - * The URL which the user is sent to when a payment is completed. - */ - readonly redirect_url?: string; - /** - * The status of the bunq.me fundraiser profile, can be ACTIVE or DEACTIVATED. - */ - readonly status?: string; + /** + * Id of the monetary account on which you want to receive bunq.me payments. + */ + readonly monetary_account_id?: number; + /** + * The color chosen for the bunq.me fundraiser profile in hexadecimal format. + */ + readonly color?: string; + /** + * The LabelMonetaryAccount with the public information of the User and the MonetaryAccount that created the bunq.me fundraiser profile. + */ + readonly alias?: ILabelMonetaryAccount; + /** + * The description of the bunq.me fundraiser profile. + */ + readonly description?: string; + /** + * The attachment used for the background of the bunq.me fundraiser profile. + */ + readonly attachment?: IAttachmentPublic; + /** + * The pointer (url) which will be used to access the bunq.me fundraiser profile. + */ + readonly pointer?: IPointer; + /** + * The URL which the user is sent to when a payment is completed. + */ + readonly redirect_url?: string; + /** + * The status of the bunq.me fundraiser profile, can be ACTIVE or DEACTIVATED. + */ + readonly status?: string; } export interface IBunqMeFundraiserProfile { - /** - * The pointer (url) which will be used to access the bunq.me fundraiser profile. - */ - pointer?: IPointer; - /** - * The color chosen for the bunq.me fundraiser profile in hexadecimal format. - */ - readonly color?: string; - /** - * The LabelMonetaryAccount with the public information of the User and the MonetaryAccount that created the bunq.me fundraiser profile. - */ - readonly alias?: ILabelMonetaryAccount; - /** - * The description of the bunq.me fundraiser profile. - */ - readonly description?: string; - /** - * The attachment attached to the fundraiser profile. - */ - readonly attachment?: IAttachmentPublic; - /** - * The status of the bunq.me fundraiser profile, can be ACTIVE or DEACTIVATED. - */ - readonly status?: string; - /** - * The URL which the user is sent to when a payment is completed. - */ - readonly redirect_url?: string; - /** - * Provided if the user has enabled their invite link. - */ - readonly invite_profile_name?: string; + /** + * The pointer (url) which will be used to access the bunq.me fundraiser profile. + */ + pointer?: IPointer; + /** + * The color chosen for the bunq.me fundraiser profile in hexadecimal format. + */ + readonly color?: string; + /** + * The LabelMonetaryAccount with the public information of the User and the MonetaryAccount that created the bunq.me fundraiser profile. + */ + readonly alias?: ILabelMonetaryAccount; + /** + * The description of the bunq.me fundraiser profile. + */ + readonly description?: string; + /** + * The attachment attached to the fundraiser profile. + */ + readonly attachment?: IAttachmentPublic; + /** + * The status of the bunq.me fundraiser profile, can be ACTIVE or DEACTIVATED. + */ + readonly status?: string; + /** + * The URL which the user is sent to when a payment is completed. + */ + readonly redirect_url?: string; + /** + * Provided if the user has enabled their invite link. + */ + readonly invite_profile_name?: string; } export interface IBunqId { - /** - * An integer ID of an object. Unique per object type. - */ - id?: number; + /** + * An integer ID of an object. Unique per object type. + */ + id?: number; } export interface IBudgetRestriction { - /** - * The amount of the budget given to the invited user. - */ - amount?: IAmount; - /** - * The duration for a budget restriction. Valid values are DAILY, WEEKLY, MONTHLY, YEARLY. - */ - frequency?: string; + /** + * The amount of the budget given to the invited user. + */ + amount?: IAmount; + /** + * The duration for a budget restriction. Valid values are DAILY, WEEKLY, MONTHLY, YEARLY. + */ + frequency?: string; } export interface IBillingContractSubscriptionListing { - /** - * The id of the billing contract. - */ - readonly id?: number; - /** - * The timestamp when the billing contract was made. - */ - readonly created?: string; - /** - * The timestamp when the billing contract was last updated. - */ - readonly updated?: string; - /** - * The date from when the billing contract is valid. - */ - readonly contract_date_start?: string; - /** - * The date until when the billing contract is valid. - */ - readonly contract_date_end?: string; - /** - * The version of the billing contract. - */ - readonly contract_version?: number; - /** - * The subscription type of the user. Can be one of PERSON_SUPER_LIGHT_V1, PERSON_LIGHT_V1, PERSON_MORE_V1, PERSON_FREE_V1, PERSON_PREMIUM_V1, COMPANY_V1, or COMPANY_V2. - */ - readonly subscription_type?: string; - /** - * The subscription type the user will have after a subscription downgrade. Will be null if downgrading is not possible. - */ - readonly subscription_type_downgrade?: string; - /** - * The subscription status. - */ - readonly status?: string; - /** - * The subscription substatus. - */ - readonly sub_status?: string; + /** + * The id of the billing contract. + */ + readonly id?: number; + /** + * The timestamp when the billing contract was made. + */ + readonly created?: string; + /** + * The timestamp when the billing contract was last updated. + */ + readonly updated?: string; + /** + * The date from when the billing contract is valid. + */ + readonly contract_date_start?: string; + /** + * The date until when the billing contract is valid. + */ + readonly contract_date_end?: string; + /** + * The version of the billing contract. + */ + readonly contract_version?: number; + /** + * The subscription type of the user. Can be one of PERSON_SUPER_LIGHT_V1, PERSON_LIGHT_V1, PERSON_MORE_V1, PERSON_FREE_V1, PERSON_PREMIUM_V1, COMPANY_V1, or COMPANY_V2. + */ + readonly subscription_type?: string; + /** + * The subscription type the user will have after a subscription downgrade. Will be null if downgrading is not possible. + */ + readonly subscription_type_downgrade?: string; + /** + * The subscription status. + */ + readonly status?: string; + /** + * The subscription substatus. + */ + readonly sub_status?: string; } export interface IBillingContractSubscription { - /** - * The subscription type of the user. Can be one of PERSON_SUPER_LIGHT_V1, PERSON_LIGHT_V1, PERSON_MORE_V1, PERSON_FREE_V1, PERSON_PREMIUM_V1, COMPANY_V1, or COMPANY_V2. - */ - subscription_type?: string; - /** - * The id of the billing contract. - */ - readonly id?: number; - /** - * The timestamp when the billing contract was made. - */ - readonly created?: string; - /** - * The timestamp when the billing contract was last updated. - */ - readonly updated?: string; - /** - * The date from when the billing contract is valid. - */ - readonly contract_date_start?: string; - /** - * The date until when the billing contract is valid. - */ - readonly contract_date_end?: string; - /** - * The version of the billing contract. - */ - readonly contract_version?: number; - /** - * The subscription type the user will have after a subscription downgrade. Will be null if downgrading is not possible. - */ - readonly subscription_type_downgrade?: string; - /** - * The subscription status. - */ - readonly status?: string; - /** - * The subscription substatus. - */ - readonly sub_status?: string; + /** + * The subscription type of the user. Can be one of PERSON_SUPER_LIGHT_V1, PERSON_LIGHT_V1, PERSON_MORE_V1, PERSON_FREE_V1, PERSON_PREMIUM_V1, COMPANY_V1, or COMPANY_V2. + */ + subscription_type?: string; + /** + * The id of the billing contract. + */ + readonly id?: number; + /** + * The timestamp when the billing contract was made. + */ + readonly created?: string; + /** + * The timestamp when the billing contract was last updated. + */ + readonly updated?: string; + /** + * The date from when the billing contract is valid. + */ + readonly contract_date_start?: string; + /** + * The date until when the billing contract is valid. + */ + readonly contract_date_end?: string; + /** + * The version of the billing contract. + */ + readonly contract_version?: number; + /** + * The subscription type the user will have after a subscription downgrade. Will be null if downgrading is not possible. + */ + readonly subscription_type_downgrade?: string; + /** + * The subscription status. + */ + readonly status?: string; + /** + * The subscription substatus. + */ + readonly sub_status?: string; } export interface IBankSwitchServiceNetherlandsIncomingPaymentRead { - /** - * The bank switch service details. - */ - readonly bank_switch_service?: IBankSwitchServiceNetherlandsIncoming; - /** - * The payment made using bank switch service. - */ - readonly payment?: IPayment; + /** + * The bank switch service details. + */ + readonly bank_switch_service?: IBankSwitchServiceNetherlandsIncoming; + /** + * The payment made using bank switch service. + */ + readonly payment?: IPayment; } export interface IBankSwitchServiceNetherlandsIncomingPayment { - /** - * The bank switch service details. - */ - readonly bank_switch_service?: IBankSwitchServiceNetherlandsIncoming; - /** - * The payment made using bank switch service. - */ - readonly payment?: IPayment; + /** + * The bank switch service details. + */ + readonly bank_switch_service?: IBankSwitchServiceNetherlandsIncoming; + /** + * The payment made using bank switch service. + */ + readonly payment?: IPayment; } export interface IBankSwitchServiceNetherlandsIncoming { - /** - * The label of the monetary of this switch service. - */ - alias?: ILabelMonetaryAccount; - /** - * The IBAN alias that's displayed for this switch service. - */ - counterparty_alias?: ILabelMonetaryAccount; - /** - * The status of the switch service. - */ - status?: string; - /** - * The sub status of the switch service. - */ - sub_status?: string; - /** - * The timestamp when the switch service actually starts. - */ - time_start_actual?: string; - /** - * The label of the user creator of this switch service. - */ - readonly user_alias?: ILabelUser; - /** - * The timestamp when the switch service desired to be start. - */ - readonly time_start_desired?: string; - /** - * The timestamp when the switch service ends. - */ - readonly time_end?: string; - /** - * Reference to the bank transfer form for this switch-service. - */ - readonly attachment?: IAttachment; + /** + * The label of the monetary of this switch service. + */ + alias?: ILabelMonetaryAccount; + /** + * The IBAN alias that's displayed for this switch service. + */ + counterparty_alias?: ILabelMonetaryAccount; + /** + * The status of the switch service. + */ + status?: string; + /** + * The sub status of the switch service. + */ + sub_status?: string; + /** + * The timestamp when the switch service actually starts. + */ + time_start_actual?: string; + /** + * The label of the user creator of this switch service. + */ + readonly user_alias?: ILabelUser; + /** + * The timestamp when the switch service desired to be start. + */ + readonly time_start_desired?: string; + /** + * The timestamp when the switch service ends. + */ + readonly time_end?: string; + /** + * Reference to the bank transfer form for this switch-service. + */ + readonly attachment?: IAttachment; } export interface IAvatarRead { - /** - * The UUID of the created avatar. - */ - readonly uuid?: string; - /** - * The content type of the image. - */ - readonly image?: Array; + /** + * The UUID of the created avatar. + */ + readonly uuid?: string; + /** + * The content type of the image. + */ + readonly image?: Array; } export interface IAvatarCreate { - /** - * The UUID of the created avatar. - */ - readonly uuid?: string; + /** + * The UUID of the created avatar. + */ + readonly uuid?: string; } export interface IAvatar { - /** - * The public UUID of the avatar. - */ - uuid?: string; - /** - * The public UUID of object this avatar is anchored to. - */ - readonly anchor_uuid?: string; - /** - * The actual image information of this avatar. - */ - readonly image?: Array; + /** + * The public UUID of the avatar. + */ + uuid?: string; + /** + * The public UUID of object this avatar is anchored to. + */ + readonly anchor_uuid?: string; + /** + * The actual image information of this avatar. + */ + readonly image?: Array; } export interface IAttachmentUserRead { - /** - * The id of the attachment. - */ - readonly id?: number; - /** - * The timestamp of the attachment's creation. - */ - readonly created?: string; - /** - * The timestamp of the attachment's last update. - */ - readonly updated?: string; - /** - * The attachment. - */ - readonly attachment?: IAttachment; + /** + * The id of the attachment. + */ + readonly id?: number; + /** + * The timestamp of the attachment's creation. + */ + readonly created?: string; + /** + * The timestamp of the attachment's last update. + */ + readonly updated?: string; + /** + * The attachment. + */ + readonly attachment?: IAttachment; } export interface IAttachmentUserContentListing {} export interface IAttachmentTabRead { - /** - * The id of the attachment. - */ - readonly id?: number; - /** - * The timestamp of the attachment's creation. - */ - readonly created?: string; - /** - * The timestamp of the attachment's last update. - */ - readonly updated?: string; - /** - * The attachment. - */ - readonly attachment?: IAttachment; + /** + * The id of the attachment. + */ + readonly id?: number; + /** + * The timestamp of the attachment's creation. + */ + readonly created?: string; + /** + * The timestamp of the attachment's last update. + */ + readonly updated?: string; + /** + * The attachment. + */ + readonly attachment?: IAttachment; } export interface IAttachmentTabCreate { - /** - * The id of the created item - */ - readonly Id?: BunqId; + /** + * The id of the created item + */ + readonly Id?: BunqId; } export interface IAttachmentTabContentListing {} @@ -11856,29 +11854,29 @@ export interface IAttachmentTabContentListing {} export interface IAttachmentTab {} export interface IAttachmentPublicRead { - /** - * The UUID of the attachment. - */ - readonly uuid?: string; - /** - * The timestamp of the attachment's creation. - */ - readonly created?: string; - /** - * The timestamp of the attachment's last update. - */ - readonly updated?: string; - /** - * The attachment. - */ - readonly attachment?: IAttachment; + /** + * The UUID of the attachment. + */ + readonly uuid?: string; + /** + * The timestamp of the attachment's creation. + */ + readonly created?: string; + /** + * The timestamp of the attachment's last update. + */ + readonly updated?: string; + /** + * The attachment. + */ + readonly attachment?: IAttachment; } export interface IAttachmentPublicCreate { - /** - * The id of the created item - */ - readonly Id?: BunqId; + /** + * The id of the created item + */ + readonly Id?: BunqId; } export interface IAttachmentPublicContentListing {} @@ -11886,21 +11884,21 @@ export interface IAttachmentPublicContentListing {} export interface IAttachmentPublic {} export interface IAttachmentMonetaryAccountPayment { - /** - * The id of the attached Attachment. - */ - id?: number; - /** - * The id of the MonetaryAccount this Attachment is attached from. - */ - readonly monetary_account_id?: number; + /** + * The id of the attached Attachment. + */ + id?: number; + /** + * The id of the MonetaryAccount this Attachment is attached from. + */ + readonly monetary_account_id?: number; } export interface IAttachmentMonetaryAccountCreate { - /** - * The ID of the attachment created. - */ - readonly id?: number; + /** + * The ID of the attachment created. + */ + readonly id?: number; } export interface IAttachmentMonetaryAccountContentListing {} @@ -11910,64 +11908,64 @@ export interface IAttachmentMonetaryAccount {} export interface IAttachmentConversationContentListing {} export interface IAttachment { - /** - * The description of the attachment. - */ - readonly description?: string; - /** - * The content type of the attachment's file. - */ - readonly content_type?: string; + /** + * The description of the attachment. + */ + readonly description?: string; + /** + * The content type of the attachment's file. + */ + readonly content_type?: string; } export interface IAmount { - /** - * The amount formatted to two decimal places. - */ - value: string; - /** - * The currency of the amount. It is an ISO 4217 formatted currency code. - */ - currency: string; + /** + * The amount formatted to two decimal places. + */ + value: string; + /** + * The currency of the amount. It is an ISO 4217 formatted currency code. + */ + currency: string; } export interface IAddress { - /** - * The street. - */ - street: string; - /** - * The house number. - */ - house_number: string; - /** - * The PO box. - */ - po_box: string; - /** - * The postal code. - */ - postal_code: string; - /** - * The city. - */ - city: string; - /** - * The country as an ISO 3166-1 alpha-2 country code.. - */ - country: string; - /** - * The appartment, building or other extra information for addresses. - */ - extra?: string; - /** - * The name on the mailbox (only used for Postal addresses). - */ - mailbox_name?: string; - /** - * The province according to local standard. - */ - readonly province?: string; + /** + * The street. + */ + street: string; + /** + * The house number. + */ + house_number: string; + /** + * The PO box. + */ + po_box: string; + /** + * The postal code. + */ + postal_code: string; + /** + * The city. + */ + city: string; + /** + * The country as an ISO 3166-1 alpha-2 country code.. + */ + country: string; + /** + * The appartment, building or other extra information for addresses. + */ + extra?: string; + /** + * The name on the mailbox (only used for Postal addresses). + */ + mailbox_name?: string; + /** + * The province according to local standard. + */ + readonly province?: string; } export type BunqId = string; @@ -12006,11 +12004,9 @@ export type NotificationCategoryType = | "SUPPORT" | "TAB_RESULT" | "USER_APPROVAL"; -export type NotificationDeliveryMethodType = - | "URL" - | "PUSH"; -export type RecurrenceUnitType ="ONCE" | "HOURLY" | "DAILY" | "WEEKLY" | "MONTHLY" | "YEARLY"; -export type ScheduleStatusType ="ACTIVE" | "FINISHED" | "CANCELLED"; +export type NotificationDeliveryMethodType = "URL" | "PUSH"; +export type RecurrenceUnitType = "ONCE" | "HOURLY" | "DAILY" | "WEEKLY" | "MONTHLY" | "YEARLY"; +export type ScheduleStatusType = "ACTIVE" | "FINISHED" | "CANCELLED"; export type ShareInviteMonetaryAccountResponseStatus = | "REVOKED" | "ACCEPTED" diff --git a/src/Types/Coordinate.ts b/src/Types/Coordinate.ts index 746f481..93c98f7 100644 --- a/src/Types/Coordinate.ts +++ b/src/Types/Coordinate.ts @@ -3,6 +3,6 @@ import { IGeolocation } from "./ApiTypes"; /** * @deprecated Use ApiTypes.IGeoLocation instead. */ -type Coordinate = IGeolocation +type Coordinate = IGeolocation; export default Coordinate; diff --git a/src/Types/CountryPermission.ts b/src/Types/CountryPermission.ts index 87ecf0c..b2ef103 100644 --- a/src/Types/CountryPermission.ts +++ b/src/Types/CountryPermission.ts @@ -3,6 +3,6 @@ import { ICardCountryPermission } from "./ApiTypes"; /** * @deprecated Use ApiTypes.ICardCountryPermission instead. */ -type CountryPermission = ICardCountryPermission +type CountryPermission = ICardCountryPermission; export default CountryPermission; diff --git a/src/Types/DeepMutable.ts b/src/Types/DeepMutable.ts index f8d802b..65c4d51 100644 --- a/src/Types/DeepMutable.ts +++ b/src/Types/DeepMutable.ts @@ -1,9 +1,5 @@ -type Mutable = { - -readonly [P in keyof T]: T[P]; -} +type Mutable = { -readonly [P in keyof T]: T[P] }; -type DeepMutable = { - -readonly [P in keyof T]: DeepMutable; -}; +type DeepMutable = { -readonly [P in keyof T]: DeepMutable }; export default DeepMutable; From 61e798335ef8bb2461c3fde25532a796d9301b66 Mon Sep 17 00:00:00 2001 From: Michael Dekker Date: Thu, 23 Jan 2020 19:43:08 +0100 Subject: [PATCH 5/6] chore: Update TypeScript version to support immutable => mutable types --- package.json | 2 +- yarn.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index b58d9e2..fe1fb94 100644 --- a/package.json +++ b/package.json @@ -77,6 +77,6 @@ "prettier": "^1.14.2", "prettier-check": "^2.0.0", "ts-jest": "^24.0.2", - "typescript": "^3.4.5" + "typescript": "^3.7.5" } } diff --git a/yarn.lock b/yarn.lock index bf192cc..8adc2aa 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4711,10 +4711,10 @@ type-check@~0.3.2: dependencies: prelude-ls "~1.1.2" -typescript@^3.4.5: - version "3.4.5" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.4.5.tgz#2d2618d10bb566572b8d7aad5180d84257d70a99" - integrity sha512-YycBxUb49UUhdNMU5aJ7z5Ej2XGmaIBL0x34vZ82fn3hGvD+bgrMrVDpatgz2f7YxUMJxMkbWxJZeAvDxVe7Vw== +typescript@^3.7.5: + version "3.7.5" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.7.5.tgz#0692e21f65fd4108b9330238aac11dd2e177a1ae" + integrity sha512-/P5lkRXkWHNAbcJIiHPfRoKqyd7bsyCma1hZNUGfn20qm64T6ZBlrzprymeu918H+mB/0rIg2gGK/BXkhhYgBw== uglify-js@^3.1.4: version "3.7.5" From c4daac9906aa323234940b5aabc1fba130f6297e Mon Sep 17 00:00:00 2001 From: Michael Dekker Date: Wed, 29 Jan 2020 00:32:37 +0100 Subject: [PATCH 6/6] fix: align type generator and general prettier config --- build/types/generate-types.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build/types/generate-types.js b/build/types/generate-types.js index f7401a4..a427020 100755 --- a/build/types/generate-types.js +++ b/build/types/generate-types.js @@ -323,7 +323,7 @@ function parse(spec, options= {}) { // Close interface singleInterface.push('}'); - interfaces[interfaceName] = (prettier.format(singleInterface.join("\n"), { parser: "typescript", singleQuote: true })); + interfaces[interfaceName] = singleInterface.join("\n"); } // Begin parsing top-level entries @@ -348,9 +348,11 @@ function parse(spec, options= {}) { let output = ""; for (const singleInterface of Object.values(interfaces)) { output += `${singleInterface} + `; } output += generateCustomTypes(); + output = prettier.format(output, { parser: "typescript", tabWidth: 4, printWidth: 120 }); fs.writeFileSync(path.join(__dirname, "../../src/Types/ApiTypes.ts"), output); } catch (e) { console.error(e);