@lunch-money/v2-api-spec 2.11.0-preview.17 → 2.11.0-preview.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -991,16 +991,19 @@ components:
991
991
  example: Cold Wallet BTC
992
992
  display_name:
993
993
  type: string
994
+ nullable: true
994
995
  minLength: 1
995
996
  maxLength: 45
996
- description: Optional display name for the manual crypto asset. If
997
- omitted, clients may derive one from `institution_name` + `name`.
997
+ description: Display name for the manual crypto asset. If omitted or
998
+ `null`, clients may derive one from `institution_name` + `name`.
998
999
  example: Cold Storage
999
1000
  institution_name:
1000
1001
  type: string
1002
+ nullable: true
1001
1003
  minLength: 1
1002
1004
  maxLength: 50
1003
- description: Optional institution or wallet provider display name
1005
+ description: Institution or wallet provider display name. If omitted
1006
+ or `null`, no institution name is set.
1004
1007
  example: Ledger
1005
1008
  balance:
1006
1009
  oneOf:
@@ -1256,15 +1259,19 @@ components:
1256
1259
  example: My Savings Account
1257
1260
  institution_name:
1258
1261
  type: string
1262
+ nullable: true
1259
1263
  example: Bank of the West
1260
- description: Name of institution holding the manual account
1264
+ description: Name of the institution holding the manual account. If
1265
+ omitted or `null`, no institution name is set.
1261
1266
  minLength: 1
1262
1267
  maxLength: 50
1263
1268
  display_name:
1264
1269
  type: string
1265
- description: Display name of the manual account as set by user or
1266
- derived from the `institution_name` and `name` if not explicitly
1267
- set.<br> This must be unique for the budgeting account.
1270
+ nullable: true
1271
+ description: Display name of the manual account. If omitted or
1272
+ `null`, it is derived from `institution_name` and `name`. An
1273
+ explicitly set display name must be unique for the budgeting
1274
+ account.
1268
1275
  example: Savings
1269
1276
  type:
1270
1277
  description: The type of manual account
@@ -1272,8 +1279,10 @@ components:
1272
1279
  - $ref: "#/components/schemas/accountTypeEnum"
1273
1280
  subtype:
1274
1281
  type: string
1275
- description: An optional manual account subtype. Examples include<br>
1276
- - retirement - checking - savings - prepaid credit card
1282
+ nullable: true
1283
+ description: Manual account subtype. If omitted or `null`, no subtype
1284
+ is set. Examples include retirement, checking, savings, and prepaid
1285
+ credit card.
1277
1286
  minLength: 1
1278
1287
  maxLength: 100
1279
1288
  example: prepaid credit card
@@ -3394,9 +3403,10 @@ components:
3394
3403
  category_id:
3395
3404
  type: integer
3396
3405
  format: int32
3397
- description: Unique identifier for associated category_id. Category
3398
- must already exist for the account. Will inherit category from the
3399
- parent if not defined.
3406
+ nullable: true
3407
+ description: Category ID for the child transaction. The category must
3408
+ already exist for the account. If omitted, the child inherits the
3409
+ parent category. If `null`, the child has no category.
3400
3410
  tag_ids:
3401
3411
  type: array
3402
3412
  description: The IDs of any tags to apply to this split child
@@ -3406,7 +3416,10 @@ components:
3406
3416
  format: int32
3407
3417
  notes:
3408
3418
  type: string
3409
- description: Will inherit notes from parent if not defined.
3419
+ nullable: true
3420
+ description: Notes for the child transaction. If omitted, the child
3421
+ inherits the parent notes. If `null` or an empty string, the child
3422
+ has no notes.
3410
3423
  required:
3411
3424
  - amount
3412
3425
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lunch-money/v2-api-spec",
3
- "version": "2.11.0-preview.17",
3
+ "version": "2.11.0-preview.19",
4
4
  "description": "OpenAPI specification and version history for the Lunch Money v2 API",
5
5
  "main": "lunch-money-api-v2.yaml",
6
6
  "files": [
@@ -17,6 +17,8 @@ The Lunch Money API spec uses a modified version of SEMVER for its versioning me
17
17
  - Add `PUT /balance_history/deleted/{account_id}/details`
18
18
  - Remove `rollover_pool` from the category object returned in the summary response. It is in the main summary response.
19
19
  - It is now possible to set an external_id on any transaction, including those that belong to a Plaid account.
20
+ - Manual-account and manually managed crypto create requests now accept `null` for their optional display, institution, and subtype fields, treating `null` the same as omission.
21
+ - Transaction split requests now accept `null` for `category_id` and `notes`. Omission inherits the parent value, while `null` explicitly clears it for the child.
20
22
 
21
23
  ## v2.10.0 - TBD
22
24
  - Add v2 crypto endpoints which support: