@happyvertical/smrt-commerce 0.34.2 → 0.34.4

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.
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
- "generatedAt": "2026-06-23T21:52:16.556Z",
3
+ "generatedAt": "2026-06-23T23:37:24.638Z",
4
4
  "packageName": "@happyvertical/smrt-commerce",
5
- "packageVersion": "0.34.2",
5
+ "packageVersion": "0.34.4",
6
6
  "sourceManifestPath": "dist/manifest.json",
7
7
  "agentDocPath": "AGENTS.md",
8
8
  "sourceHashes": {
9
- "manifest": "db2043e1fda121f402b917f6b1945febe2721351f0654865cbf5ff589531e71c",
10
- "packageJson": "e44efa11bedc875732e2b8e5599e837f28dfca1ab27aafa907c15567407ff2e8",
9
+ "manifest": "a6a847f82364d8920938cdb4c1e7d2ddc8980a1e34b9923db53f939f4ce32bc3",
10
+ "packageJson": "380d414c6ea536f156191556683637c2cbaf0c94695a81c1d82567d8f846a428",
11
11
  "agents": "f544ac9cece5c94aaead6013316709fcd044944b993110fc7218c0db7c998a63"
12
12
  },
13
13
  "exports": [
@@ -46,343 +46,6 @@
46
46
  "tags": [],
47
47
  "risks": [],
48
48
  "objects": [
49
- {
50
- "name": "ContractCollection",
51
- "qualifiedName": "@happyvertical/smrt-commerce:ContractCollection",
52
- "collection": "contracts",
53
- "tableName": "contract_collections",
54
- "packageName": "@happyvertical/smrt-commerce",
55
- "extends": "SmrtCollection",
56
- "fields": [],
57
- "relationships": [],
58
- "methods": [
59
- "findAccepted",
60
- "findByCustomer",
61
- "findByDateRange",
62
- "findByStatus",
63
- "findByTenant",
64
- "findByType",
65
- "findByVendor",
66
- "findDrafts",
67
- "findExpired",
68
- "findGlobal",
69
- "findOverdue",
70
- "findWithGlobals"
71
- ],
72
- "surfaces": [],
73
- "relationshipFeatures": [
74
- "uuidColumns"
75
- ],
76
- "tags": [],
77
- "risks": []
78
- },
79
- {
80
- "name": "ContractLineItemCollection",
81
- "qualifiedName": "@happyvertical/smrt-commerce:ContractLineItemCollection",
82
- "collection": "contractlineitems",
83
- "tableName": "contract_line_item_collections",
84
- "packageName": "@happyvertical/smrt-commerce",
85
- "extends": "SmrtCollection",
86
- "fields": [],
87
- "relationships": [],
88
- "methods": [
89
- "findByContract",
90
- "findByTenant",
91
- "findGlobal",
92
- "findWithGlobals"
93
- ],
94
- "surfaces": [],
95
- "relationshipFeatures": [
96
- "uuidColumns"
97
- ],
98
- "tags": [],
99
- "risks": []
100
- },
101
- {
102
- "name": "CustomerCollection",
103
- "qualifiedName": "@happyvertical/smrt-commerce:CustomerCollection",
104
- "collection": "customers",
105
- "tableName": "customer_collections",
106
- "packageName": "@happyvertical/smrt-commerce",
107
- "extends": "SmrtCollection",
108
- "fields": [],
109
- "relationships": [],
110
- "methods": [
111
- "findActive",
112
- "findByProfile",
113
- "findByStatus",
114
- "findByTenant",
115
- "findGlobal",
116
- "findWithGlobals",
117
- "getOrCreateForProfile"
118
- ],
119
- "surfaces": [],
120
- "relationshipFeatures": [
121
- "uuidColumns"
122
- ],
123
- "tags": [],
124
- "risks": []
125
- },
126
- {
127
- "name": "FulfillmentCollection",
128
- "qualifiedName": "@happyvertical/smrt-commerce:FulfillmentCollection",
129
- "collection": "fulfillments",
130
- "tableName": "fulfillment_collections",
131
- "packageName": "@happyvertical/smrt-commerce",
132
- "extends": "SmrtCollection",
133
- "fields": [],
134
- "relationships": [],
135
- "methods": [
136
- "findByContract",
137
- "findByStatus",
138
- "findByTenant",
139
- "findByTracking",
140
- "findByType",
141
- "findGlobal",
142
- "findInTransit",
143
- "findPending",
144
- "findShippedInRange",
145
- "findWithGlobals"
146
- ],
147
- "surfaces": [],
148
- "relationshipFeatures": [
149
- "uuidColumns"
150
- ],
151
- "tags": [],
152
- "risks": []
153
- },
154
- {
155
- "name": "FulfillmentLineItemCollection",
156
- "qualifiedName": "@happyvertical/smrt-commerce:FulfillmentLineItemCollection",
157
- "collection": "fulfillmentlineitems",
158
- "tableName": "fulfillment_line_item_collections",
159
- "packageName": "@happyvertical/smrt-commerce",
160
- "extends": "SmrtCollection",
161
- "fields": [],
162
- "relationships": [],
163
- "methods": [
164
- "findByContractLineItem",
165
- "findByFulfillment",
166
- "findByTenant",
167
- "findGlobal",
168
- "findWithGlobals",
169
- "getTotalFulfilledForContractLine"
170
- ],
171
- "surfaces": [],
172
- "relationshipFeatures": [
173
- "uuidColumns"
174
- ],
175
- "tags": [],
176
- "risks": []
177
- },
178
- {
179
- "name": "InvoiceCollection",
180
- "qualifiedName": "@happyvertical/smrt-commerce:InvoiceCollection",
181
- "collection": "invoices",
182
- "tableName": "invoice_collections",
183
- "packageName": "@happyvertical/smrt-commerce",
184
- "extends": "SmrtCollection",
185
- "fields": [],
186
- "relationships": [],
187
- "methods": [
188
- "countForYear",
189
- "findByContract",
190
- "findByCustomer",
191
- "findByDateRange",
192
- "findByExternalId",
193
- "findByNumber",
194
- "findByStatus",
195
- "findByTenant",
196
- "findDrafts",
197
- "findGlobal",
198
- "findNeedingSync",
199
- "findOverdue",
200
- "findPaid",
201
- "findPartial",
202
- "findSent",
203
- "findWithGlobals",
204
- "generateInvoiceNumber",
205
- "getTotalOutstandingForCustomer"
206
- ],
207
- "surfaces": [],
208
- "relationshipFeatures": [
209
- "uuidColumns"
210
- ],
211
- "tags": [],
212
- "risks": []
213
- },
214
- {
215
- "name": "InvoiceLineItemCollection",
216
- "qualifiedName": "@happyvertical/smrt-commerce:InvoiceLineItemCollection",
217
- "collection": "invoicelineitems",
218
- "tableName": "invoice_line_item_collections",
219
- "packageName": "@happyvertical/smrt-commerce",
220
- "extends": "SmrtCollection",
221
- "fields": [],
222
- "relationships": [],
223
- "methods": [
224
- "findByInvoice",
225
- "findBySource",
226
- "findBySourceType",
227
- "findByTenant",
228
- "findGlobal",
229
- "findWithGlobals",
230
- "getNextSortOrder",
231
- "getSubtotalForInvoice",
232
- "getTaxForInvoice",
233
- "getTotalForInvoice",
234
- "recalculateAmounts",
235
- "toAccountingLineItems"
236
- ],
237
- "surfaces": [],
238
- "relationshipFeatures": [
239
- "uuidColumns"
240
- ],
241
- "tags": [],
242
- "risks": []
243
- },
244
- {
245
- "name": "PaymentAllocationCollection",
246
- "qualifiedName": "@happyvertical/smrt-commerce:PaymentAllocationCollection",
247
- "collection": "paymentallocations",
248
- "tableName": "payment_allocation_collections",
249
- "packageName": "@happyvertical/smrt-commerce",
250
- "extends": "SmrtCollection",
251
- "fields": [],
252
- "relationships": [],
253
- "methods": [
254
- "findByAllocator",
255
- "findByDateRange",
256
- "findByInvoice",
257
- "findByPayment",
258
- "findByPaymentAndInvoice",
259
- "findByTenant",
260
- "findGlobal",
261
- "findWithGlobals",
262
- "getTotalAllocatedFromPayment",
263
- "getTotalAllocatedToInvoice",
264
- "getUnallocatedFromPayment"
265
- ],
266
- "surfaces": [],
267
- "relationshipFeatures": [
268
- "uuidColumns"
269
- ],
270
- "tags": [],
271
- "risks": []
272
- },
273
- {
274
- "name": "PaymentCollection",
275
- "qualifiedName": "@happyvertical/smrt-commerce:PaymentCollection",
276
- "collection": "payments",
277
- "tableName": "payment_collections",
278
- "packageName": "@happyvertical/smrt-commerce",
279
- "extends": "SmrtCollection",
280
- "fields": [],
281
- "relationships": [],
282
- "methods": [
283
- "findByContract",
284
- "findByCustomer",
285
- "findByDateRange",
286
- "findByJournal",
287
- "findByMethod",
288
- "findByStatus",
289
- "findByTenant",
290
- "findByTransactionId",
291
- "findCompleted",
292
- "findGlobal",
293
- "findPending",
294
- "findWithGlobals",
295
- "getTotalForContract"
296
- ],
297
- "surfaces": [],
298
- "relationshipFeatures": [
299
- "uuidColumns"
300
- ],
301
- "tags": [],
302
- "risks": []
303
- },
304
- {
305
- "name": "PaymentIntentCollection",
306
- "qualifiedName": "@happyvertical/smrt-commerce:PaymentIntentCollection",
307
- "collection": "paymentintents",
308
- "tableName": "payment_intent_collections",
309
- "packageName": "@happyvertical/smrt-commerce",
310
- "extends": "SmrtCollection",
311
- "fields": [],
312
- "relationships": [],
313
- "methods": [
314
- "findByIdempotencyKey",
315
- "findByLicenseeEmail",
316
- "findByOfferingRef",
317
- "findByStatus",
318
- "findByTenant",
319
- "findGlobal",
320
- "findOpen",
321
- "findStale",
322
- "findWithGlobals",
323
- "getOrCreateByIdempotencyKey"
324
- ],
325
- "surfaces": [],
326
- "relationshipFeatures": [
327
- "uuidColumns"
328
- ],
329
- "tags": [],
330
- "risks": []
331
- },
332
- {
333
- "name": "PayoutCollection",
334
- "qualifiedName": "@happyvertical/smrt-commerce:PayoutCollection",
335
- "collection": "payouts",
336
- "tableName": "payout_collections",
337
- "packageName": "@happyvertical/smrt-commerce",
338
- "extends": "SmrtCollection",
339
- "fields": [],
340
- "relationships": [],
341
- "methods": [
342
- "createFromPayment",
343
- "findByBackendTxRef",
344
- "findByPayment",
345
- "findByStatus",
346
- "findByTenant",
347
- "findByVendor",
348
- "findFailed",
349
- "findGlobal",
350
- "findPending",
351
- "findWithGlobals",
352
- "getConfirmedTotalForVendor"
353
- ],
354
- "surfaces": [],
355
- "relationshipFeatures": [
356
- "uuidColumns"
357
- ],
358
- "tags": [],
359
- "risks": []
360
- },
361
- {
362
- "name": "VendorCollection",
363
- "qualifiedName": "@happyvertical/smrt-commerce:VendorCollection",
364
- "collection": "vendors",
365
- "tableName": "vendor_collections",
366
- "packageName": "@happyvertical/smrt-commerce",
367
- "extends": "SmrtCollection",
368
- "fields": [],
369
- "relationships": [],
370
- "methods": [
371
- "findActive",
372
- "findByProfile",
373
- "findByStatus",
374
- "findByTenant",
375
- "findGlobal",
376
- "findWithGlobals",
377
- "getOrCreateForProfile"
378
- ],
379
- "surfaces": [],
380
- "relationshipFeatures": [
381
- "uuidColumns"
382
- ],
383
- "tags": [],
384
- "risks": []
385
- },
386
49
  {
387
50
  "name": "Contract",
388
51
  "qualifiedName": "@happyvertical/smrt-commerce:Contract",
@@ -4476,209 +4139,546 @@
4476
4139
  },
4477
4140
  {
4478
4141
  "kind": "cli",
4479
- "name": "payout_list",
4480
- "operation": "list",
4481
- "objectName": "@happyvertical/smrt-commerce:Payout"
4142
+ "name": "payout_list",
4143
+ "operation": "list",
4144
+ "objectName": "@happyvertical/smrt-commerce:Payout"
4145
+ },
4146
+ {
4147
+ "kind": "cli",
4148
+ "name": "payout_get",
4149
+ "operation": "get",
4150
+ "objectName": "@happyvertical/smrt-commerce:Payout"
4151
+ },
4152
+ {
4153
+ "kind": "mcp",
4154
+ "name": "payout_list",
4155
+ "operation": "list",
4156
+ "objectName": "@happyvertical/smrt-commerce:Payout"
4157
+ },
4158
+ {
4159
+ "kind": "mcp",
4160
+ "name": "payout_get",
4161
+ "operation": "get",
4162
+ "objectName": "@happyvertical/smrt-commerce:Payout"
4163
+ }
4164
+ ],
4165
+ "relationshipFeatures": [
4166
+ "foreignKey",
4167
+ "uuidColumns"
4168
+ ],
4169
+ "tags": [],
4170
+ "risks": []
4171
+ },
4172
+ {
4173
+ "name": "Vendor",
4174
+ "qualifiedName": "@happyvertical/smrt-commerce:Vendor",
4175
+ "collection": "vendors",
4176
+ "tableName": "vendors",
4177
+ "packageName": "@happyvertical/smrt-commerce",
4178
+ "extends": "SmrtObject",
4179
+ "fields": [
4180
+ {
4181
+ "name": "tenantId",
4182
+ "type": "text",
4183
+ "required": false,
4184
+ "columnType": "UUID"
4185
+ },
4186
+ {
4187
+ "name": "profileId",
4188
+ "type": "crossPackageRef",
4189
+ "required": false,
4190
+ "related": "@happyvertical/smrt-profiles:Profile",
4191
+ "columnType": "UUID"
4192
+ },
4193
+ {
4194
+ "name": "leadTimeDays",
4195
+ "type": "integer",
4196
+ "required": false,
4197
+ "columnType": "INTEGER"
4198
+ },
4199
+ {
4200
+ "name": "minimumOrderAmount",
4201
+ "type": "decimal",
4202
+ "required": false,
4203
+ "columnType": "REAL"
4204
+ },
4205
+ {
4206
+ "name": "paymentTerms",
4207
+ "type": "text",
4208
+ "required": false,
4209
+ "columnType": "TEXT"
4210
+ },
4211
+ {
4212
+ "name": "currency",
4213
+ "type": "text",
4214
+ "required": false,
4215
+ "columnType": "TEXT"
4216
+ },
4217
+ {
4218
+ "name": "defaultContactEmail",
4219
+ "type": "text",
4220
+ "required": false,
4221
+ "columnType": "TEXT"
4222
+ },
4223
+ {
4224
+ "name": "defaultContactPhone",
4225
+ "type": "text",
4226
+ "required": false,
4227
+ "columnType": "TEXT"
4228
+ },
4229
+ {
4230
+ "name": "status",
4231
+ "type": "text",
4232
+ "required": false,
4233
+ "columnType": "TEXT"
4234
+ },
4235
+ {
4236
+ "name": "notes",
4237
+ "type": "text",
4238
+ "required": false,
4239
+ "columnType": "TEXT"
4240
+ },
4241
+ {
4242
+ "name": "payoutAddresses",
4243
+ "type": "json",
4244
+ "required": false,
4245
+ "columnType": "JSON"
4246
+ }
4247
+ ],
4248
+ "relationships": [
4249
+ {
4250
+ "name": "profileId",
4251
+ "type": "crossPackageRef",
4252
+ "required": false,
4253
+ "related": "@happyvertical/smrt-profiles:Profile",
4254
+ "columnType": "UUID"
4255
+ }
4256
+ ],
4257
+ "methods": [
4258
+ "clearPayoutAddress",
4259
+ "getPayoutAddress",
4260
+ "getProfileId",
4261
+ "initialize",
4262
+ "isActive",
4263
+ "meetsMinimumOrder",
4264
+ "save",
4265
+ "setPayoutAddress"
4266
+ ],
4267
+ "surfaces": [
4268
+ {
4269
+ "kind": "api",
4270
+ "name": "vendors.list",
4271
+ "operation": "list",
4272
+ "objectName": "@happyvertical/smrt-commerce:Vendor",
4273
+ "path": "/vendors",
4274
+ "method": "GET"
4275
+ },
4276
+ {
4277
+ "kind": "api",
4278
+ "name": "vendors.get",
4279
+ "operation": "get",
4280
+ "objectName": "@happyvertical/smrt-commerce:Vendor",
4281
+ "path": "/vendors/[id]",
4282
+ "method": "GET"
4283
+ },
4284
+ {
4285
+ "kind": "api",
4286
+ "name": "vendors.create",
4287
+ "operation": "create",
4288
+ "objectName": "@happyvertical/smrt-commerce:Vendor",
4289
+ "path": "/vendors",
4290
+ "method": "POST"
4291
+ },
4292
+ {
4293
+ "kind": "api",
4294
+ "name": "vendors.update",
4295
+ "operation": "update",
4296
+ "objectName": "@happyvertical/smrt-commerce:Vendor",
4297
+ "path": "/vendors/[id]",
4298
+ "method": "PATCH"
4299
+ },
4300
+ {
4301
+ "kind": "cli",
4302
+ "name": "vendor_list",
4303
+ "operation": "list",
4304
+ "objectName": "@happyvertical/smrt-commerce:Vendor"
4305
+ },
4306
+ {
4307
+ "kind": "cli",
4308
+ "name": "vendor_get",
4309
+ "operation": "get",
4310
+ "objectName": "@happyvertical/smrt-commerce:Vendor"
4311
+ },
4312
+ {
4313
+ "kind": "cli",
4314
+ "name": "vendor_create",
4315
+ "operation": "create",
4316
+ "objectName": "@happyvertical/smrt-commerce:Vendor"
4317
+ },
4318
+ {
4319
+ "kind": "cli",
4320
+ "name": "vendor_update",
4321
+ "operation": "update",
4322
+ "objectName": "@happyvertical/smrt-commerce:Vendor"
4482
4323
  },
4483
4324
  {
4484
4325
  "kind": "cli",
4485
- "name": "payout_get",
4486
- "operation": "get",
4487
- "objectName": "@happyvertical/smrt-commerce:Payout"
4326
+ "name": "vendor_delete",
4327
+ "operation": "delete",
4328
+ "objectName": "@happyvertical/smrt-commerce:Vendor"
4488
4329
  },
4489
4330
  {
4490
4331
  "kind": "mcp",
4491
- "name": "payout_list",
4332
+ "name": "vendor_list",
4492
4333
  "operation": "list",
4493
- "objectName": "@happyvertical/smrt-commerce:Payout"
4334
+ "objectName": "@happyvertical/smrt-commerce:Vendor"
4494
4335
  },
4495
4336
  {
4496
4337
  "kind": "mcp",
4497
- "name": "payout_get",
4338
+ "name": "vendor_get",
4498
4339
  "operation": "get",
4499
- "objectName": "@happyvertical/smrt-commerce:Payout"
4340
+ "objectName": "@happyvertical/smrt-commerce:Vendor"
4500
4341
  }
4501
4342
  ],
4502
4343
  "relationshipFeatures": [
4503
- "foreignKey",
4344
+ "crossPackageRef",
4345
+ "uuidColumns"
4346
+ ],
4347
+ "tags": [],
4348
+ "risks": []
4349
+ },
4350
+ {
4351
+ "name": "ContractCollection",
4352
+ "qualifiedName": "@happyvertical/smrt-commerce:ContractCollection",
4353
+ "collection": "contracts",
4354
+ "tableName": "contract_collections",
4355
+ "packageName": "@happyvertical/smrt-commerce",
4356
+ "extends": "SmrtCollection",
4357
+ "fields": [],
4358
+ "relationships": [],
4359
+ "methods": [
4360
+ "findAccepted",
4361
+ "findByCustomer",
4362
+ "findByDateRange",
4363
+ "findByStatus",
4364
+ "findByTenant",
4365
+ "findByType",
4366
+ "findByVendor",
4367
+ "findDrafts",
4368
+ "findExpired",
4369
+ "findGlobal",
4370
+ "findOverdue",
4371
+ "findWithGlobals"
4372
+ ],
4373
+ "surfaces": [],
4374
+ "relationshipFeatures": [
4375
+ "uuidColumns"
4376
+ ],
4377
+ "tags": [],
4378
+ "risks": []
4379
+ },
4380
+ {
4381
+ "name": "ContractLineItemCollection",
4382
+ "qualifiedName": "@happyvertical/smrt-commerce:ContractLineItemCollection",
4383
+ "collection": "contractlineitems",
4384
+ "tableName": "contract_line_item_collections",
4385
+ "packageName": "@happyvertical/smrt-commerce",
4386
+ "extends": "SmrtCollection",
4387
+ "fields": [],
4388
+ "relationships": [],
4389
+ "methods": [
4390
+ "findByContract",
4391
+ "findByTenant",
4392
+ "findGlobal",
4393
+ "findWithGlobals"
4394
+ ],
4395
+ "surfaces": [],
4396
+ "relationshipFeatures": [
4397
+ "uuidColumns"
4398
+ ],
4399
+ "tags": [],
4400
+ "risks": []
4401
+ },
4402
+ {
4403
+ "name": "CustomerCollection",
4404
+ "qualifiedName": "@happyvertical/smrt-commerce:CustomerCollection",
4405
+ "collection": "customers",
4406
+ "tableName": "customer_collections",
4407
+ "packageName": "@happyvertical/smrt-commerce",
4408
+ "extends": "SmrtCollection",
4409
+ "fields": [],
4410
+ "relationships": [],
4411
+ "methods": [
4412
+ "findActive",
4413
+ "findByProfile",
4414
+ "findByStatus",
4415
+ "findByTenant",
4416
+ "findGlobal",
4417
+ "findWithGlobals",
4418
+ "getOrCreateForProfile"
4419
+ ],
4420
+ "surfaces": [],
4421
+ "relationshipFeatures": [
4422
+ "uuidColumns"
4423
+ ],
4424
+ "tags": [],
4425
+ "risks": []
4426
+ },
4427
+ {
4428
+ "name": "FulfillmentCollection",
4429
+ "qualifiedName": "@happyvertical/smrt-commerce:FulfillmentCollection",
4430
+ "collection": "fulfillments",
4431
+ "tableName": "fulfillment_collections",
4432
+ "packageName": "@happyvertical/smrt-commerce",
4433
+ "extends": "SmrtCollection",
4434
+ "fields": [],
4435
+ "relationships": [],
4436
+ "methods": [
4437
+ "findByContract",
4438
+ "findByStatus",
4439
+ "findByTenant",
4440
+ "findByTracking",
4441
+ "findByType",
4442
+ "findGlobal",
4443
+ "findInTransit",
4444
+ "findPending",
4445
+ "findShippedInRange",
4446
+ "findWithGlobals"
4447
+ ],
4448
+ "surfaces": [],
4449
+ "relationshipFeatures": [
4450
+ "uuidColumns"
4451
+ ],
4452
+ "tags": [],
4453
+ "risks": []
4454
+ },
4455
+ {
4456
+ "name": "FulfillmentLineItemCollection",
4457
+ "qualifiedName": "@happyvertical/smrt-commerce:FulfillmentLineItemCollection",
4458
+ "collection": "fulfillmentlineitems",
4459
+ "tableName": "fulfillment_line_item_collections",
4460
+ "packageName": "@happyvertical/smrt-commerce",
4461
+ "extends": "SmrtCollection",
4462
+ "fields": [],
4463
+ "relationships": [],
4464
+ "methods": [
4465
+ "findByContractLineItem",
4466
+ "findByFulfillment",
4467
+ "findByTenant",
4468
+ "findGlobal",
4469
+ "findWithGlobals",
4470
+ "getTotalFulfilledForContractLine"
4471
+ ],
4472
+ "surfaces": [],
4473
+ "relationshipFeatures": [
4474
+ "uuidColumns"
4475
+ ],
4476
+ "tags": [],
4477
+ "risks": []
4478
+ },
4479
+ {
4480
+ "name": "InvoiceCollection",
4481
+ "qualifiedName": "@happyvertical/smrt-commerce:InvoiceCollection",
4482
+ "collection": "invoices",
4483
+ "tableName": "invoice_collections",
4484
+ "packageName": "@happyvertical/smrt-commerce",
4485
+ "extends": "SmrtCollection",
4486
+ "fields": [],
4487
+ "relationships": [],
4488
+ "methods": [
4489
+ "countForYear",
4490
+ "findByContract",
4491
+ "findByCustomer",
4492
+ "findByDateRange",
4493
+ "findByExternalId",
4494
+ "findByNumber",
4495
+ "findByStatus",
4496
+ "findByTenant",
4497
+ "findDrafts",
4498
+ "findGlobal",
4499
+ "findNeedingSync",
4500
+ "findOverdue",
4501
+ "findPaid",
4502
+ "findPartial",
4503
+ "findSent",
4504
+ "findWithGlobals",
4505
+ "generateInvoiceNumber",
4506
+ "getTotalOutstandingForCustomer"
4507
+ ],
4508
+ "surfaces": [],
4509
+ "relationshipFeatures": [
4510
+ "uuidColumns"
4511
+ ],
4512
+ "tags": [],
4513
+ "risks": []
4514
+ },
4515
+ {
4516
+ "name": "InvoiceLineItemCollection",
4517
+ "qualifiedName": "@happyvertical/smrt-commerce:InvoiceLineItemCollection",
4518
+ "collection": "invoicelineitems",
4519
+ "tableName": "invoice_line_item_collections",
4520
+ "packageName": "@happyvertical/smrt-commerce",
4521
+ "extends": "SmrtCollection",
4522
+ "fields": [],
4523
+ "relationships": [],
4524
+ "methods": [
4525
+ "findByInvoice",
4526
+ "findBySource",
4527
+ "findBySourceType",
4528
+ "findByTenant",
4529
+ "findGlobal",
4530
+ "findWithGlobals",
4531
+ "getNextSortOrder",
4532
+ "getSubtotalForInvoice",
4533
+ "getTaxForInvoice",
4534
+ "getTotalForInvoice",
4535
+ "recalculateAmounts",
4536
+ "toAccountingLineItems"
4537
+ ],
4538
+ "surfaces": [],
4539
+ "relationshipFeatures": [
4540
+ "uuidColumns"
4541
+ ],
4542
+ "tags": [],
4543
+ "risks": []
4544
+ },
4545
+ {
4546
+ "name": "PaymentAllocationCollection",
4547
+ "qualifiedName": "@happyvertical/smrt-commerce:PaymentAllocationCollection",
4548
+ "collection": "paymentallocations",
4549
+ "tableName": "payment_allocation_collections",
4550
+ "packageName": "@happyvertical/smrt-commerce",
4551
+ "extends": "SmrtCollection",
4552
+ "fields": [],
4553
+ "relationships": [],
4554
+ "methods": [
4555
+ "findByAllocator",
4556
+ "findByDateRange",
4557
+ "findByInvoice",
4558
+ "findByPayment",
4559
+ "findByPaymentAndInvoice",
4560
+ "findByTenant",
4561
+ "findGlobal",
4562
+ "findWithGlobals",
4563
+ "getTotalAllocatedFromPayment",
4564
+ "getTotalAllocatedToInvoice",
4565
+ "getUnallocatedFromPayment"
4566
+ ],
4567
+ "surfaces": [],
4568
+ "relationshipFeatures": [
4569
+ "uuidColumns"
4570
+ ],
4571
+ "tags": [],
4572
+ "risks": []
4573
+ },
4574
+ {
4575
+ "name": "PaymentCollection",
4576
+ "qualifiedName": "@happyvertical/smrt-commerce:PaymentCollection",
4577
+ "collection": "payments",
4578
+ "tableName": "payment_collections",
4579
+ "packageName": "@happyvertical/smrt-commerce",
4580
+ "extends": "SmrtCollection",
4581
+ "fields": [],
4582
+ "relationships": [],
4583
+ "methods": [
4584
+ "findByContract",
4585
+ "findByCustomer",
4586
+ "findByDateRange",
4587
+ "findByJournal",
4588
+ "findByMethod",
4589
+ "findByStatus",
4590
+ "findByTenant",
4591
+ "findByTransactionId",
4592
+ "findCompleted",
4593
+ "findGlobal",
4594
+ "findPending",
4595
+ "findWithGlobals",
4596
+ "getTotalForContract"
4597
+ ],
4598
+ "surfaces": [],
4599
+ "relationshipFeatures": [
4504
4600
  "uuidColumns"
4505
4601
  ],
4506
4602
  "tags": [],
4507
4603
  "risks": []
4508
4604
  },
4509
4605
  {
4510
- "name": "Vendor",
4511
- "qualifiedName": "@happyvertical/smrt-commerce:Vendor",
4512
- "collection": "vendors",
4513
- "tableName": "vendors",
4606
+ "name": "PaymentIntentCollection",
4607
+ "qualifiedName": "@happyvertical/smrt-commerce:PaymentIntentCollection",
4608
+ "collection": "paymentintents",
4609
+ "tableName": "payment_intent_collections",
4514
4610
  "packageName": "@happyvertical/smrt-commerce",
4515
- "extends": "SmrtObject",
4516
- "fields": [
4517
- {
4518
- "name": "tenantId",
4519
- "type": "text",
4520
- "required": false,
4521
- "columnType": "UUID"
4522
- },
4523
- {
4524
- "name": "profileId",
4525
- "type": "crossPackageRef",
4526
- "required": false,
4527
- "related": "@happyvertical/smrt-profiles:Profile",
4528
- "columnType": "UUID"
4529
- },
4530
- {
4531
- "name": "leadTimeDays",
4532
- "type": "integer",
4533
- "required": false,
4534
- "columnType": "INTEGER"
4535
- },
4536
- {
4537
- "name": "minimumOrderAmount",
4538
- "type": "decimal",
4539
- "required": false,
4540
- "columnType": "REAL"
4541
- },
4542
- {
4543
- "name": "paymentTerms",
4544
- "type": "text",
4545
- "required": false,
4546
- "columnType": "TEXT"
4547
- },
4548
- {
4549
- "name": "currency",
4550
- "type": "text",
4551
- "required": false,
4552
- "columnType": "TEXT"
4553
- },
4554
- {
4555
- "name": "defaultContactEmail",
4556
- "type": "text",
4557
- "required": false,
4558
- "columnType": "TEXT"
4559
- },
4560
- {
4561
- "name": "defaultContactPhone",
4562
- "type": "text",
4563
- "required": false,
4564
- "columnType": "TEXT"
4565
- },
4566
- {
4567
- "name": "status",
4568
- "type": "text",
4569
- "required": false,
4570
- "columnType": "TEXT"
4571
- },
4572
- {
4573
- "name": "notes",
4574
- "type": "text",
4575
- "required": false,
4576
- "columnType": "TEXT"
4577
- },
4578
- {
4579
- "name": "payoutAddresses",
4580
- "type": "json",
4581
- "required": false,
4582
- "columnType": "JSON"
4583
- }
4611
+ "extends": "SmrtCollection",
4612
+ "fields": [],
4613
+ "relationships": [],
4614
+ "methods": [
4615
+ "findByIdempotencyKey",
4616
+ "findByLicenseeEmail",
4617
+ "findByOfferingRef",
4618
+ "findByStatus",
4619
+ "findByTenant",
4620
+ "findGlobal",
4621
+ "findOpen",
4622
+ "findStale",
4623
+ "findWithGlobals",
4624
+ "getOrCreateByIdempotencyKey"
4584
4625
  ],
4585
- "relationships": [
4586
- {
4587
- "name": "profileId",
4588
- "type": "crossPackageRef",
4589
- "required": false,
4590
- "related": "@happyvertical/smrt-profiles:Profile",
4591
- "columnType": "UUID"
4592
- }
4626
+ "surfaces": [],
4627
+ "relationshipFeatures": [
4628
+ "uuidColumns"
4593
4629
  ],
4630
+ "tags": [],
4631
+ "risks": []
4632
+ },
4633
+ {
4634
+ "name": "PayoutCollection",
4635
+ "qualifiedName": "@happyvertical/smrt-commerce:PayoutCollection",
4636
+ "collection": "payouts",
4637
+ "tableName": "payout_collections",
4638
+ "packageName": "@happyvertical/smrt-commerce",
4639
+ "extends": "SmrtCollection",
4640
+ "fields": [],
4641
+ "relationships": [],
4594
4642
  "methods": [
4595
- "clearPayoutAddress",
4596
- "getPayoutAddress",
4597
- "getProfileId",
4598
- "initialize",
4599
- "isActive",
4600
- "meetsMinimumOrder",
4601
- "save",
4602
- "setPayoutAddress"
4643
+ "createFromPayment",
4644
+ "findByBackendTxRef",
4645
+ "findByPayment",
4646
+ "findByStatus",
4647
+ "findByTenant",
4648
+ "findByVendor",
4649
+ "findFailed",
4650
+ "findGlobal",
4651
+ "findPending",
4652
+ "findWithGlobals",
4653
+ "getConfirmedTotalForVendor"
4603
4654
  ],
4604
- "surfaces": [
4605
- {
4606
- "kind": "api",
4607
- "name": "vendors.list",
4608
- "operation": "list",
4609
- "objectName": "@happyvertical/smrt-commerce:Vendor",
4610
- "path": "/vendors",
4611
- "method": "GET"
4612
- },
4613
- {
4614
- "kind": "api",
4615
- "name": "vendors.get",
4616
- "operation": "get",
4617
- "objectName": "@happyvertical/smrt-commerce:Vendor",
4618
- "path": "/vendors/[id]",
4619
- "method": "GET"
4620
- },
4621
- {
4622
- "kind": "api",
4623
- "name": "vendors.create",
4624
- "operation": "create",
4625
- "objectName": "@happyvertical/smrt-commerce:Vendor",
4626
- "path": "/vendors",
4627
- "method": "POST"
4628
- },
4629
- {
4630
- "kind": "api",
4631
- "name": "vendors.update",
4632
- "operation": "update",
4633
- "objectName": "@happyvertical/smrt-commerce:Vendor",
4634
- "path": "/vendors/[id]",
4635
- "method": "PATCH"
4636
- },
4637
- {
4638
- "kind": "cli",
4639
- "name": "vendor_list",
4640
- "operation": "list",
4641
- "objectName": "@happyvertical/smrt-commerce:Vendor"
4642
- },
4643
- {
4644
- "kind": "cli",
4645
- "name": "vendor_get",
4646
- "operation": "get",
4647
- "objectName": "@happyvertical/smrt-commerce:Vendor"
4648
- },
4649
- {
4650
- "kind": "cli",
4651
- "name": "vendor_create",
4652
- "operation": "create",
4653
- "objectName": "@happyvertical/smrt-commerce:Vendor"
4654
- },
4655
- {
4656
- "kind": "cli",
4657
- "name": "vendor_update",
4658
- "operation": "update",
4659
- "objectName": "@happyvertical/smrt-commerce:Vendor"
4660
- },
4661
- {
4662
- "kind": "cli",
4663
- "name": "vendor_delete",
4664
- "operation": "delete",
4665
- "objectName": "@happyvertical/smrt-commerce:Vendor"
4666
- },
4667
- {
4668
- "kind": "mcp",
4669
- "name": "vendor_list",
4670
- "operation": "list",
4671
- "objectName": "@happyvertical/smrt-commerce:Vendor"
4672
- },
4673
- {
4674
- "kind": "mcp",
4675
- "name": "vendor_get",
4676
- "operation": "get",
4677
- "objectName": "@happyvertical/smrt-commerce:Vendor"
4678
- }
4655
+ "surfaces": [],
4656
+ "relationshipFeatures": [
4657
+ "uuidColumns"
4658
+ ],
4659
+ "tags": [],
4660
+ "risks": []
4661
+ },
4662
+ {
4663
+ "name": "VendorCollection",
4664
+ "qualifiedName": "@happyvertical/smrt-commerce:VendorCollection",
4665
+ "collection": "vendors",
4666
+ "tableName": "vendor_collections",
4667
+ "packageName": "@happyvertical/smrt-commerce",
4668
+ "extends": "SmrtCollection",
4669
+ "fields": [],
4670
+ "relationships": [],
4671
+ "methods": [
4672
+ "findActive",
4673
+ "findByProfile",
4674
+ "findByStatus",
4675
+ "findByTenant",
4676
+ "findGlobal",
4677
+ "findWithGlobals",
4678
+ "getOrCreateForProfile"
4679
4679
  ],
4680
+ "surfaces": [],
4680
4681
  "relationshipFeatures": [
4681
- "crossPackageRef",
4682
4682
  "uuidColumns"
4683
4683
  ],
4684
4684
  "tags": [],