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
52 lines (51 loc) • 2.11 kB
TypeScript
/**
* 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)
*/
/**
*
* @export
* @interface SaveSubTransaction
*/
export interface SaveSubTransaction {
/**
* The subtransaction amount in milliunits format.
* @type {number}
* @memberof SaveSubTransaction
*/
amount: number;
/**
* The payee for the subtransaction.
* @type {string}
* @memberof SaveSubTransaction
*/
payee_id?: string | null;
/**
* The payee name. If a `payee_name` value is provided and `payee_id` has a null value, the `payee_name` value will be used to resolve the payee by either (1) a matching payee rename rule (only if import_id is also specified on parent transaction) or (2) a payee with the same name or (3) creation of a new payee.
* @type {string}
* @memberof SaveSubTransaction
*/
payee_name?: string | null;
/**
* The category for the subtransaction. Credit Card Payment categories are not permitted and will be ignored if supplied.
* @type {string}
* @memberof SaveSubTransaction
*/
category_id?: string | null;
/**
*
* @type {string}
* @memberof SaveSubTransaction
*/
memo?: string | null;
}
/**
* Check if a given object implements the SaveSubTransaction interface.
*/
export declare function instanceOfSaveSubTransaction(value: object): value is SaveSubTransaction;
export declare function SaveSubTransactionFromJSON(json: any): SaveSubTransaction;
export declare function SaveSubTransactionFromJSONTyped(json: any, ignoreDiscriminator: boolean): SaveSubTransaction;
export declare function SaveSubTransactionToJSON(json: any): SaveSubTransaction;
export declare function SaveSubTransactionToJSONTyped(value?: SaveSubTransaction | null, ignoreDiscriminator?: boolean): any;