UNPKG

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

51 lines (50 loc) 1.98 kB
"use strict"; /* 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 * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ Object.defineProperty(exports, "__esModule", { value: true }); exports.SaveTransactionWithIdAllOfToJSON = exports.SaveTransactionWithIdAllOfFromJSONTyped = exports.SaveTransactionWithIdAllOfFromJSON = exports.instanceOfSaveTransactionWithIdAllOf = void 0; const runtime_1 = require("../runtime"); /** * Check if a given object implements the SaveTransactionWithIdAllOf interface. */ function instanceOfSaveTransactionWithIdAllOf(value) { let isInstance = true; return isInstance; } exports.instanceOfSaveTransactionWithIdAllOf = instanceOfSaveTransactionWithIdAllOf; function SaveTransactionWithIdAllOfFromJSON(json) { return SaveTransactionWithIdAllOfFromJSONTyped(json, false); } exports.SaveTransactionWithIdAllOfFromJSON = SaveTransactionWithIdAllOfFromJSON; function SaveTransactionWithIdAllOfFromJSONTyped(json, ignoreDiscriminator) { if ((json === undefined) || (json === null)) { return json; } return { 'id': !(0, runtime_1.exists)(json, 'id') ? undefined : json['id'], }; } exports.SaveTransactionWithIdAllOfFromJSONTyped = SaveTransactionWithIdAllOfFromJSONTyped; function SaveTransactionWithIdAllOfToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'id': value.id, }; } exports.SaveTransactionWithIdAllOfToJSON = SaveTransactionWithIdAllOfToJSON;