wallee
Version:
TypeScript/JavaScript client for wallee
36 lines (35 loc) • 1.63 kB
JavaScript
import { BankTransactionFromJSON, BankTransactionToJSON, } from './BankTransaction';
/**
* Check if a given object implements the ExternalTransferBankTransaction interface.
*/
export function instanceOfExternalTransferBankTransaction(value) {
return true;
}
export function ExternalTransferBankTransactionFromJSON(json) {
return ExternalTransferBankTransactionFromJSONTyped(json, false);
}
export 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 : BankTransactionFromJSON(json['bankTransaction']),
'version': json['version'] == null ? undefined : json['version'],
'externalAccountType': json['externalAccountType'] == null ? undefined : json['externalAccountType'],
};
}
export function ExternalTransferBankTransactionToJSON(json) {
return ExternalTransferBankTransactionToJSONTyped(json, false);
}
export function ExternalTransferBankTransactionToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'bankTransaction': BankTransactionToJSON(value['bankTransaction']),
};
}