ynab
Version:
Official JavaScript client for the YNAB API. API documentation available at https://api.ynab.com. Generated from server specification version 1.76.0
44 lines (43 loc) • 1.32 kB
JavaScript
/* tslint:disable */
/* eslint-disable */
/**
* YNAB API Endpoints
* Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com
*
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
*/
/**
* The transaction flag
* @export
*/
export var TransactionFlagColor = {
Red: 'red',
Orange: 'orange',
Yellow: 'yellow',
Green: 'green',
Blue: 'blue',
Purple: 'purple',
Empty: ''
};
export function instanceOfTransactionFlagColor(value) {
for (var key in TransactionFlagColor) {
if (Object.prototype.hasOwnProperty.call(TransactionFlagColor, key)) {
if (TransactionFlagColor[key] === value) {
return true;
}
}
}
return false;
}
export function TransactionFlagColorFromJSON(json) {
return TransactionFlagColorFromJSONTyped(json, false);
}
export function TransactionFlagColorFromJSONTyped(json, ignoreDiscriminator) {
return json;
}
export function TransactionFlagColorToJSON(value) {
return value;
}
export function TransactionFlagColorToJSONTyped(value, ignoreDiscriminator) {
return value;
}