UNPKG

wallee

Version:
43 lines (42 loc) 2.16 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.instanceOfExternalTransferBankTransaction = instanceOfExternalTransferBankTransaction; exports.ExternalTransferBankTransactionFromJSON = ExternalTransferBankTransactionFromJSON; exports.ExternalTransferBankTransactionFromJSONTyped = ExternalTransferBankTransactionFromJSONTyped; exports.ExternalTransferBankTransactionToJSON = ExternalTransferBankTransactionToJSON; exports.ExternalTransferBankTransactionToJSONTyped = ExternalTransferBankTransactionToJSONTyped; const BankTransaction_1 = require("./BankTransaction"); /** * Check if a given object implements the ExternalTransferBankTransaction interface. */ function instanceOfExternalTransferBankTransaction(value) { return true; } function ExternalTransferBankTransactionFromJSON(json) { return ExternalTransferBankTransactionFromJSONTyped(json, false); } function ExternalTransferBankTransactionFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'externalBankName': json['externalBankName'] == null ? undefined : json['externalBankName'], 'linkedSpaceId': json['linkedSpaceId'] == null ? undefined : json['linkedSpaceId'], 'externalAccountIdentifier': json['externalAccountIdentifier'] == null ? undefined : json['externalAccountIdentifier'], 'id': json['id'] == null ? undefined : json['id'], 'bankTransaction': json['bankTransaction'] == null ? undefined : (0, BankTransaction_1.BankTransactionFromJSON)(json['bankTransaction']), 'version': json['version'] == null ? undefined : json['version'], 'externalAccountType': json['externalAccountType'] == null ? undefined : json['externalAccountType'], }; } function ExternalTransferBankTransactionToJSON(json) { return ExternalTransferBankTransactionToJSONTyped(json, false); } function ExternalTransferBankTransactionToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'bankTransaction': (0, BankTransaction_1.BankTransactionToJSON)(value['bankTransaction']), }; }