@happyvertical/smrt-commerce 0.57.35 → 0.57.36
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.
- package/agents/connected-payments.md +61 -2
- package/dist/connected-payments.d.ts +4 -2
- package/dist/connected-payments.d.ts.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +392 -165
- package/dist/index.js.map +1 -1
- package/dist/manifest.json +379 -5
- package/dist/models/TenantPaymentDispute.d.ts +32 -0
- package/dist/models/TenantPaymentDispute.d.ts.map +1 -0
- package/dist/models/TenantPaymentWebhookEvent.d.ts +3 -1
- package/dist/models/TenantPaymentWebhookEvent.d.ts.map +1 -1
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.d.ts.map +1 -1
- package/dist/smrt-knowledge.json +160 -7
- package/package.json +16 -16
package/dist/manifest.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"version": "1.0.0",
|
|
3
3
|
"timestamp": 0,
|
|
4
4
|
"packageName": "@happyvertical/smrt-commerce",
|
|
5
|
-
"packageVersion": "0.57.
|
|
5
|
+
"packageVersion": "0.57.36",
|
|
6
6
|
"objects": {
|
|
7
7
|
"@happyvertical/smrt-commerce:ContractCollection": {
|
|
8
8
|
"name": "contractcollection",
|
|
@@ -24534,6 +24534,361 @@
|
|
|
24534
24534
|
},
|
|
24535
24535
|
"importPath": "@happyvertical/smrt-commerce"
|
|
24536
24536
|
},
|
|
24537
|
+
"@happyvertical/smrt-commerce:TenantPaymentDispute": {
|
|
24538
|
+
"name": "tenantpaymentdispute",
|
|
24539
|
+
"className": "TenantPaymentDispute",
|
|
24540
|
+
"qualifiedName": "@happyvertical/smrt-commerce:TenantPaymentDispute",
|
|
24541
|
+
"collection": "tenantpaymentdisputes",
|
|
24542
|
+
"description": "One authoritative dispute snapshot and its immutable balance evidence.",
|
|
24543
|
+
"filePath": "/home/runner/work/smrt/smrt/packages/commerce/src/models/TenantPaymentDispute.ts",
|
|
24544
|
+
"packageName": "@happyvertical/smrt-commerce",
|
|
24545
|
+
"fields": {
|
|
24546
|
+
"tenantId": {
|
|
24547
|
+
"type": "text",
|
|
24548
|
+
"required": true,
|
|
24549
|
+
"_meta": {
|
|
24550
|
+
"sqlType": "UUID",
|
|
24551
|
+
"__tenancy": {
|
|
24552
|
+
"isTenantIdField": true,
|
|
24553
|
+
"autoFilter": true,
|
|
24554
|
+
"required": true,
|
|
24555
|
+
"autoPopulate": true,
|
|
24556
|
+
"nullable": false,
|
|
24557
|
+
"mode": "required",
|
|
24558
|
+
"field": "tenantId",
|
|
24559
|
+
"allowSuperAdminBypass": false
|
|
24560
|
+
}
|
|
24561
|
+
}
|
|
24562
|
+
},
|
|
24563
|
+
"backendId": {
|
|
24564
|
+
"type": "text",
|
|
24565
|
+
"required": false,
|
|
24566
|
+
"default": ""
|
|
24567
|
+
},
|
|
24568
|
+
"environment": {
|
|
24569
|
+
"type": "text",
|
|
24570
|
+
"required": false,
|
|
24571
|
+
"default": "test",
|
|
24572
|
+
"enum": [
|
|
24573
|
+
"test",
|
|
24574
|
+
"live"
|
|
24575
|
+
]
|
|
24576
|
+
},
|
|
24577
|
+
"providerAccountId": {
|
|
24578
|
+
"type": "text",
|
|
24579
|
+
"required": false,
|
|
24580
|
+
"default": ""
|
|
24581
|
+
},
|
|
24582
|
+
"disputeId": {
|
|
24583
|
+
"type": "text",
|
|
24584
|
+
"required": false,
|
|
24585
|
+
"default": ""
|
|
24586
|
+
},
|
|
24587
|
+
"paymentId": {
|
|
24588
|
+
"type": "foreignKey",
|
|
24589
|
+
"required": false,
|
|
24590
|
+
"related": "Payment"
|
|
24591
|
+
},
|
|
24592
|
+
"status": {
|
|
24593
|
+
"type": "text",
|
|
24594
|
+
"required": false,
|
|
24595
|
+
"default": "unknown"
|
|
24596
|
+
},
|
|
24597
|
+
"snapshotJson": {
|
|
24598
|
+
"type": "text",
|
|
24599
|
+
"required": false,
|
|
24600
|
+
"_meta": {}
|
|
24601
|
+
}
|
|
24602
|
+
},
|
|
24603
|
+
"methods": {
|
|
24604
|
+
"save": {
|
|
24605
|
+
"name": "save",
|
|
24606
|
+
"async": true,
|
|
24607
|
+
"parameters": [
|
|
24608
|
+
{
|
|
24609
|
+
"name": "options",
|
|
24610
|
+
"type": "SmrtSaveOptions",
|
|
24611
|
+
"optional": true
|
|
24612
|
+
}
|
|
24613
|
+
],
|
|
24614
|
+
"returnType": "Promise<this>",
|
|
24615
|
+
"isStatic": false,
|
|
24616
|
+
"isPublic": true
|
|
24617
|
+
},
|
|
24618
|
+
"delete": {
|
|
24619
|
+
"name": "delete",
|
|
24620
|
+
"async": true,
|
|
24621
|
+
"parameters": [
|
|
24622
|
+
{
|
|
24623
|
+
"name": "_options",
|
|
24624
|
+
"type": "SmrtDeleteOptions",
|
|
24625
|
+
"optional": true
|
|
24626
|
+
}
|
|
24627
|
+
],
|
|
24628
|
+
"returnType": "Promise<void>",
|
|
24629
|
+
"isStatic": false,
|
|
24630
|
+
"isPublic": true
|
|
24631
|
+
}
|
|
24632
|
+
},
|
|
24633
|
+
"decoratorConfig": {
|
|
24634
|
+
"tableName": "tenant_payment_disputes",
|
|
24635
|
+
"api": false,
|
|
24636
|
+
"cli": false,
|
|
24637
|
+
"mcp": false,
|
|
24638
|
+
"tenantScoped": {
|
|
24639
|
+
"mode": "required"
|
|
24640
|
+
},
|
|
24641
|
+
"conflictColumns": [
|
|
24642
|
+
"tenant_id",
|
|
24643
|
+
"slug",
|
|
24644
|
+
"context"
|
|
24645
|
+
]
|
|
24646
|
+
},
|
|
24647
|
+
"extends": "SmrtObject",
|
|
24648
|
+
"exportName": "TenantPaymentDispute",
|
|
24649
|
+
"collectionExportName": "TenantPaymentDisputeCollection",
|
|
24650
|
+
"validationRules": [],
|
|
24651
|
+
"schema": {
|
|
24652
|
+
"tableName": "tenant_payment_disputes",
|
|
24653
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"tenant_payment_disputes\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID NOT NULL,\n \"backend_id\" TEXT DEFAULT '',\n \"environment\" TEXT DEFAULT 'test',\n \"provider_account_id\" TEXT DEFAULT '',\n \"dispute_id\" TEXT DEFAULT '',\n \"payment_id\" UUID,\n \"status\" TEXT DEFAULT 'unknown',\n \"snapshot_json\" TEXT\n);",
|
|
24654
|
+
"columns": {
|
|
24655
|
+
"id": {
|
|
24656
|
+
"type": "UUID",
|
|
24657
|
+
"primaryKey": true,
|
|
24658
|
+
"referenceKind": "id",
|
|
24659
|
+
"notNull": true
|
|
24660
|
+
},
|
|
24661
|
+
"slug": {
|
|
24662
|
+
"type": "TEXT",
|
|
24663
|
+
"notNull": true
|
|
24664
|
+
},
|
|
24665
|
+
"context": {
|
|
24666
|
+
"type": "TEXT",
|
|
24667
|
+
"notNull": true,
|
|
24668
|
+
"default": ""
|
|
24669
|
+
},
|
|
24670
|
+
"created_at": {
|
|
24671
|
+
"type": "TIMESTAMP",
|
|
24672
|
+
"notNull": true,
|
|
24673
|
+
"default": "current_timestamp"
|
|
24674
|
+
},
|
|
24675
|
+
"updated_at": {
|
|
24676
|
+
"type": "TIMESTAMP",
|
|
24677
|
+
"notNull": true,
|
|
24678
|
+
"default": "current_timestamp"
|
|
24679
|
+
},
|
|
24680
|
+
"tenant_id": {
|
|
24681
|
+
"type": "UUID",
|
|
24682
|
+
"referenceKind": "tenantId",
|
|
24683
|
+
"notNull": true,
|
|
24684
|
+
"unique": false
|
|
24685
|
+
},
|
|
24686
|
+
"backend_id": {
|
|
24687
|
+
"type": "TEXT",
|
|
24688
|
+
"notNull": false,
|
|
24689
|
+
"unique": false,
|
|
24690
|
+
"default": ""
|
|
24691
|
+
},
|
|
24692
|
+
"environment": {
|
|
24693
|
+
"type": "TEXT",
|
|
24694
|
+
"notNull": false,
|
|
24695
|
+
"unique": false,
|
|
24696
|
+
"default": "test"
|
|
24697
|
+
},
|
|
24698
|
+
"provider_account_id": {
|
|
24699
|
+
"type": "TEXT",
|
|
24700
|
+
"notNull": false,
|
|
24701
|
+
"unique": false,
|
|
24702
|
+
"default": ""
|
|
24703
|
+
},
|
|
24704
|
+
"dispute_id": {
|
|
24705
|
+
"type": "TEXT",
|
|
24706
|
+
"notNull": false,
|
|
24707
|
+
"unique": false,
|
|
24708
|
+
"default": ""
|
|
24709
|
+
},
|
|
24710
|
+
"payment_id": {
|
|
24711
|
+
"type": "UUID",
|
|
24712
|
+
"referenceKind": "foreignKey",
|
|
24713
|
+
"notNull": false,
|
|
24714
|
+
"unique": false,
|
|
24715
|
+
"foreignKey": {
|
|
24716
|
+
"table": "payments",
|
|
24717
|
+
"column": "id",
|
|
24718
|
+
"onDelete": "NO ACTION",
|
|
24719
|
+
"onUpdate": "CASCADE"
|
|
24720
|
+
}
|
|
24721
|
+
},
|
|
24722
|
+
"status": {
|
|
24723
|
+
"type": "TEXT",
|
|
24724
|
+
"notNull": false,
|
|
24725
|
+
"unique": false,
|
|
24726
|
+
"default": "unknown"
|
|
24727
|
+
},
|
|
24728
|
+
"snapshot_json": {
|
|
24729
|
+
"type": "TEXT",
|
|
24730
|
+
"notNull": false,
|
|
24731
|
+
"unique": false
|
|
24732
|
+
}
|
|
24733
|
+
},
|
|
24734
|
+
"indexes": [
|
|
24735
|
+
{
|
|
24736
|
+
"name": "tenant_payment_disputes_slug_context_idx",
|
|
24737
|
+
"columns": [
|
|
24738
|
+
"tenant_id",
|
|
24739
|
+
"slug",
|
|
24740
|
+
"context"
|
|
24741
|
+
],
|
|
24742
|
+
"unique": true
|
|
24743
|
+
},
|
|
24744
|
+
{
|
|
24745
|
+
"name": "tenant_payment_disputes_tenant_id_created_at_idx",
|
|
24746
|
+
"columns": [
|
|
24747
|
+
"tenant_id",
|
|
24748
|
+
"created_at"
|
|
24749
|
+
]
|
|
24750
|
+
},
|
|
24751
|
+
{
|
|
24752
|
+
"name": "tenant_payment_disputes_payment_id_idx",
|
|
24753
|
+
"columns": [
|
|
24754
|
+
"payment_id"
|
|
24755
|
+
]
|
|
24756
|
+
}
|
|
24757
|
+
],
|
|
24758
|
+
"version": "c39176b7"
|
|
24759
|
+
},
|
|
24760
|
+
"importPath": "@happyvertical/smrt-commerce"
|
|
24761
|
+
},
|
|
24762
|
+
"@happyvertical/smrt-commerce:TenantPaymentDisputeCollection": {
|
|
24763
|
+
"name": "tenantpaymentdisputecollection",
|
|
24764
|
+
"className": "TenantPaymentDisputeCollection",
|
|
24765
|
+
"qualifiedName": "@happyvertical/smrt-commerce:TenantPaymentDisputeCollection",
|
|
24766
|
+
"collection": "tenantpaymentdisputes",
|
|
24767
|
+
"filePath": "/home/runner/work/smrt/smrt/packages/commerce/src/models/TenantPaymentDispute.ts",
|
|
24768
|
+
"packageName": "@happyvertical/smrt-commerce",
|
|
24769
|
+
"fields": {},
|
|
24770
|
+
"methods": {},
|
|
24771
|
+
"decoratorConfig": {
|
|
24772
|
+
"tableName": "tenant_payment_disputes",
|
|
24773
|
+
"api": false,
|
|
24774
|
+
"mcp": false,
|
|
24775
|
+
"cli": false
|
|
24776
|
+
},
|
|
24777
|
+
"extends": "SmrtCollection",
|
|
24778
|
+
"extendsTypeArg": "TenantPaymentDispute",
|
|
24779
|
+
"exportName": "TenantPaymentDisputeCollection",
|
|
24780
|
+
"collectionExportName": "TenantPaymentDisputeCollectionCollection",
|
|
24781
|
+
"schema": {
|
|
24782
|
+
"tableName": "tenant_payment_disputes",
|
|
24783
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"tenant_payment_disputes\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID NOT NULL,\n \"backend_id\" TEXT DEFAULT '',\n \"environment\" TEXT DEFAULT 'test',\n \"provider_account_id\" TEXT DEFAULT '',\n \"dispute_id\" TEXT DEFAULT '',\n \"payment_id\" UUID,\n \"status\" TEXT DEFAULT 'unknown',\n \"snapshot_json\" TEXT\n);",
|
|
24784
|
+
"columns": {
|
|
24785
|
+
"id": {
|
|
24786
|
+
"type": "UUID",
|
|
24787
|
+
"primaryKey": true,
|
|
24788
|
+
"referenceKind": "id",
|
|
24789
|
+
"notNull": true
|
|
24790
|
+
},
|
|
24791
|
+
"slug": {
|
|
24792
|
+
"type": "TEXT",
|
|
24793
|
+
"notNull": true
|
|
24794
|
+
},
|
|
24795
|
+
"context": {
|
|
24796
|
+
"type": "TEXT",
|
|
24797
|
+
"notNull": true,
|
|
24798
|
+
"default": ""
|
|
24799
|
+
},
|
|
24800
|
+
"created_at": {
|
|
24801
|
+
"type": "TIMESTAMP",
|
|
24802
|
+
"notNull": true,
|
|
24803
|
+
"default": "current_timestamp"
|
|
24804
|
+
},
|
|
24805
|
+
"updated_at": {
|
|
24806
|
+
"type": "TIMESTAMP",
|
|
24807
|
+
"notNull": true,
|
|
24808
|
+
"default": "current_timestamp"
|
|
24809
|
+
},
|
|
24810
|
+
"tenant_id": {
|
|
24811
|
+
"type": "UUID",
|
|
24812
|
+
"referenceKind": "tenantId",
|
|
24813
|
+
"notNull": true,
|
|
24814
|
+
"unique": false
|
|
24815
|
+
},
|
|
24816
|
+
"backend_id": {
|
|
24817
|
+
"type": "TEXT",
|
|
24818
|
+
"notNull": false,
|
|
24819
|
+
"unique": false,
|
|
24820
|
+
"default": ""
|
|
24821
|
+
},
|
|
24822
|
+
"environment": {
|
|
24823
|
+
"type": "TEXT",
|
|
24824
|
+
"notNull": false,
|
|
24825
|
+
"unique": false,
|
|
24826
|
+
"default": "test"
|
|
24827
|
+
},
|
|
24828
|
+
"provider_account_id": {
|
|
24829
|
+
"type": "TEXT",
|
|
24830
|
+
"notNull": false,
|
|
24831
|
+
"unique": false,
|
|
24832
|
+
"default": ""
|
|
24833
|
+
},
|
|
24834
|
+
"dispute_id": {
|
|
24835
|
+
"type": "TEXT",
|
|
24836
|
+
"notNull": false,
|
|
24837
|
+
"unique": false,
|
|
24838
|
+
"default": ""
|
|
24839
|
+
},
|
|
24840
|
+
"payment_id": {
|
|
24841
|
+
"type": "UUID",
|
|
24842
|
+
"referenceKind": "foreignKey",
|
|
24843
|
+
"notNull": false,
|
|
24844
|
+
"unique": false,
|
|
24845
|
+
"foreignKey": {
|
|
24846
|
+
"table": "payments",
|
|
24847
|
+
"column": "id",
|
|
24848
|
+
"onDelete": "NO ACTION",
|
|
24849
|
+
"onUpdate": "CASCADE"
|
|
24850
|
+
}
|
|
24851
|
+
},
|
|
24852
|
+
"status": {
|
|
24853
|
+
"type": "TEXT",
|
|
24854
|
+
"notNull": false,
|
|
24855
|
+
"unique": false,
|
|
24856
|
+
"default": "unknown"
|
|
24857
|
+
},
|
|
24858
|
+
"snapshot_json": {
|
|
24859
|
+
"type": "TEXT",
|
|
24860
|
+
"notNull": false,
|
|
24861
|
+
"unique": false
|
|
24862
|
+
}
|
|
24863
|
+
},
|
|
24864
|
+
"indexes": [
|
|
24865
|
+
{
|
|
24866
|
+
"name": "tenant_payment_disputes_slug_context_idx",
|
|
24867
|
+
"columns": [
|
|
24868
|
+
"tenant_id",
|
|
24869
|
+
"slug",
|
|
24870
|
+
"context"
|
|
24871
|
+
],
|
|
24872
|
+
"unique": true
|
|
24873
|
+
},
|
|
24874
|
+
{
|
|
24875
|
+
"name": "tenant_payment_disputes_tenant_id_created_at_idx",
|
|
24876
|
+
"columns": [
|
|
24877
|
+
"tenant_id",
|
|
24878
|
+
"created_at"
|
|
24879
|
+
]
|
|
24880
|
+
},
|
|
24881
|
+
{
|
|
24882
|
+
"name": "tenant_payment_disputes_payment_id_idx",
|
|
24883
|
+
"columns": [
|
|
24884
|
+
"payment_id"
|
|
24885
|
+
]
|
|
24886
|
+
}
|
|
24887
|
+
],
|
|
24888
|
+
"version": "c39176b7"
|
|
24889
|
+
},
|
|
24890
|
+
"importPath": "@happyvertical/smrt-commerce"
|
|
24891
|
+
},
|
|
24537
24892
|
"@happyvertical/smrt-commerce:TenantPaymentWebhookEvent": {
|
|
24538
24893
|
"name": "tenantpaymentwebhookevent",
|
|
24539
24894
|
"className": "TenantPaymentWebhookEvent",
|
|
@@ -24603,6 +24958,8 @@
|
|
|
24603
24958
|
"application_fee",
|
|
24604
24959
|
"refund_reported",
|
|
24605
24960
|
"refund_updated",
|
|
24961
|
+
"dispute_updated",
|
|
24962
|
+
"dispute_reported",
|
|
24606
24963
|
"late_payment",
|
|
24607
24964
|
"ignored"
|
|
24608
24965
|
]
|
|
@@ -24612,6 +24969,11 @@
|
|
|
24612
24969
|
"required": false,
|
|
24613
24970
|
"default": ""
|
|
24614
24971
|
},
|
|
24972
|
+
"paymentId": {
|
|
24973
|
+
"type": "text",
|
|
24974
|
+
"required": false,
|
|
24975
|
+
"default": ""
|
|
24976
|
+
},
|
|
24615
24977
|
"applicationFeeJson": {
|
|
24616
24978
|
"type": "text",
|
|
24617
24979
|
"required": false,
|
|
@@ -24675,7 +25037,7 @@
|
|
|
24675
25037
|
],
|
|
24676
25038
|
"schema": {
|
|
24677
25039
|
"tableName": "_smrt_tenant_payment_webhook_events",
|
|
24678
|
-
"ddl": "CREATE TABLE IF NOT EXISTS \"_smrt_tenant_payment_webhook_events\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"backend_id\" TEXT NOT NULL DEFAULT '',\n \"environment\" TEXT NOT NULL DEFAULT '',\n \"event_id\" TEXT NOT NULL DEFAULT '',\n \"event_type\" TEXT DEFAULT '',\n \"endpoint\" TEXT DEFAULT '',\n \"tenant_id\" UUID NOT NULL,\n \"provider_account_id\" TEXT DEFAULT '',\n \"outcome\" TEXT DEFAULT 'ignored',\n \"payment_intent_id\" TEXT DEFAULT '',\n \"application_fee_json\" TEXT,\n \"processed_at\" TIMESTAMP\n);",
|
|
25040
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"_smrt_tenant_payment_webhook_events\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"backend_id\" TEXT NOT NULL DEFAULT '',\n \"environment\" TEXT NOT NULL DEFAULT '',\n \"event_id\" TEXT NOT NULL DEFAULT '',\n \"event_type\" TEXT DEFAULT '',\n \"endpoint\" TEXT DEFAULT '',\n \"tenant_id\" UUID NOT NULL,\n \"provider_account_id\" TEXT DEFAULT '',\n \"outcome\" TEXT DEFAULT 'ignored',\n \"payment_intent_id\" TEXT DEFAULT '',\n \"payment_id\" TEXT DEFAULT '',\n \"application_fee_json\" TEXT,\n \"processed_at\" TIMESTAMP\n);",
|
|
24679
25041
|
"columns": {
|
|
24680
25042
|
"id": {
|
|
24681
25043
|
"type": "UUID",
|
|
@@ -24756,6 +25118,12 @@
|
|
|
24756
25118
|
"unique": false,
|
|
24757
25119
|
"default": ""
|
|
24758
25120
|
},
|
|
25121
|
+
"payment_id": {
|
|
25122
|
+
"type": "TEXT",
|
|
25123
|
+
"notNull": false,
|
|
25124
|
+
"unique": false,
|
|
25125
|
+
"default": ""
|
|
25126
|
+
},
|
|
24759
25127
|
"application_fee_json": {
|
|
24760
25128
|
"type": "TEXT",
|
|
24761
25129
|
"notNull": false,
|
|
@@ -24793,7 +25161,7 @@
|
|
|
24793
25161
|
]
|
|
24794
25162
|
}
|
|
24795
25163
|
],
|
|
24796
|
-
"version": "
|
|
25164
|
+
"version": "798cf27e"
|
|
24797
25165
|
},
|
|
24798
25166
|
"importPath": "@happyvertical/smrt-commerce"
|
|
24799
25167
|
},
|
|
@@ -24834,7 +25202,7 @@
|
|
|
24834
25202
|
"collectionExportName": "TenantPaymentWebhookEventCollectionCollection",
|
|
24835
25203
|
"schema": {
|
|
24836
25204
|
"tableName": "_smrt_tenant_payment_webhook_events",
|
|
24837
|
-
"ddl": "CREATE TABLE IF NOT EXISTS \"_smrt_tenant_payment_webhook_events\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"backend_id\" TEXT NOT NULL DEFAULT '',\n \"environment\" TEXT NOT NULL DEFAULT '',\n \"event_id\" TEXT NOT NULL DEFAULT '',\n \"event_type\" TEXT DEFAULT '',\n \"endpoint\" TEXT DEFAULT '',\n \"tenant_id\" UUID NOT NULL,\n \"provider_account_id\" TEXT DEFAULT '',\n \"outcome\" TEXT DEFAULT 'ignored',\n \"payment_intent_id\" TEXT DEFAULT '',\n \"application_fee_json\" TEXT,\n \"processed_at\" TIMESTAMP\n);",
|
|
25205
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"_smrt_tenant_payment_webhook_events\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"backend_id\" TEXT NOT NULL DEFAULT '',\n \"environment\" TEXT NOT NULL DEFAULT '',\n \"event_id\" TEXT NOT NULL DEFAULT '',\n \"event_type\" TEXT DEFAULT '',\n \"endpoint\" TEXT DEFAULT '',\n \"tenant_id\" UUID NOT NULL,\n \"provider_account_id\" TEXT DEFAULT '',\n \"outcome\" TEXT DEFAULT 'ignored',\n \"payment_intent_id\" TEXT DEFAULT '',\n \"payment_id\" TEXT DEFAULT '',\n \"application_fee_json\" TEXT,\n \"processed_at\" TIMESTAMP\n);",
|
|
24838
25206
|
"columns": {
|
|
24839
25207
|
"id": {
|
|
24840
25208
|
"type": "UUID",
|
|
@@ -24915,6 +25283,12 @@
|
|
|
24915
25283
|
"unique": false,
|
|
24916
25284
|
"default": ""
|
|
24917
25285
|
},
|
|
25286
|
+
"payment_id": {
|
|
25287
|
+
"type": "TEXT",
|
|
25288
|
+
"notNull": false,
|
|
25289
|
+
"unique": false,
|
|
25290
|
+
"default": ""
|
|
25291
|
+
},
|
|
24918
25292
|
"application_fee_json": {
|
|
24919
25293
|
"type": "TEXT",
|
|
24920
25294
|
"notNull": false,
|
|
@@ -24952,7 +25326,7 @@
|
|
|
24952
25326
|
]
|
|
24953
25327
|
}
|
|
24954
25328
|
],
|
|
24955
|
-
"version": "
|
|
25329
|
+
"version": "798cf27e"
|
|
24956
25330
|
},
|
|
24957
25331
|
"importPath": "@happyvertical/smrt-commerce"
|
|
24958
25332
|
},
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/** Durable connected dispute projection; written only by signed reconciliation. */
|
|
2
|
+
import type { PaymentDisputeStatus } from '@happyvertical/payments';
|
|
3
|
+
import { SmrtCollection, type SmrtDeleteOptions, SmrtObject, type SmrtSaveOptions } from '@happyvertical/smrt-core';
|
|
4
|
+
import type { TenantPaymentEnvironment } from './TenantPaymentAccount.js';
|
|
5
|
+
/** One authoritative dispute snapshot and its immutable balance evidence. */
|
|
6
|
+
export declare class TenantPaymentDispute extends SmrtObject {
|
|
7
|
+
/** Owning settlement tenant. */
|
|
8
|
+
tenantId: string;
|
|
9
|
+
/** Provider adapter identifier. */
|
|
10
|
+
backendId: string;
|
|
11
|
+
/** Provider environment. */
|
|
12
|
+
environment: TenantPaymentEnvironment;
|
|
13
|
+
/** Provider connected account. */
|
|
14
|
+
providerAccountId: string;
|
|
15
|
+
/** Provider dispute identity. */
|
|
16
|
+
disputeId: string;
|
|
17
|
+
/** Original immutable settlement. */
|
|
18
|
+
paymentId: string;
|
|
19
|
+
/** Last authoritative provider lifecycle. */
|
|
20
|
+
status: PaymentDisputeStatus;
|
|
21
|
+
/** Validated snapshot, including balance transaction posting identity. */
|
|
22
|
+
snapshotJson: string;
|
|
23
|
+
/** Financial projection writes require the owning command. */
|
|
24
|
+
save(options?: SmrtSaveOptions): Promise<this>;
|
|
25
|
+
/** Financial evidence is retained permanently. */
|
|
26
|
+
delete(_options?: SmrtDeleteOptions): Promise<void>;
|
|
27
|
+
}
|
|
28
|
+
/** @internal Command-owned projection collection. */
|
|
29
|
+
export declare class TenantPaymentDisputeCollection extends SmrtCollection<TenantPaymentDispute> {
|
|
30
|
+
static readonly _itemClass: typeof TenantPaymentDispute;
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=TenantPaymentDispute.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TenantPaymentDispute.d.ts","sourceRoot":"","sources":["../../src/models/TenantPaymentDispute.ts"],"names":[],"mappings":"AAAA,mFAAmF;AACnF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AACpE,OAAO,EAGL,cAAc,EACd,KAAK,iBAAiB,EACtB,UAAU,EACV,KAAK,eAAe,EAErB,MAAM,0BAA0B,CAAC;AAGlC,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AAE1E,6EAA6E;AAC7E,qBAOa,oBAAqB,SAAQ,UAAU;IAClD,gCAAgC;IACpB,QAAQ,EAAE,MAAM,CAAM;IAClC,mCAAmC;IACnC,SAAS,EAAE,MAAM,CAAM;IACvB,4BAA4B;IAC5B,WAAW,EAAE,wBAAwB,CAAU;IAC/C,kCAAkC;IAClC,iBAAiB,EAAE,MAAM,CAAM;IAC/B,iCAAiC;IACjC,SAAS,EAAE,MAAM,CAAM;IACvB,qCAAqC;IAErC,SAAS,EAAE,MAAM,CAAM;IACvB,6CAA6C;IAC7C,MAAM,EAAE,oBAAoB,CAAa;IACzC,0EAA0E;IACjD,YAAY,EAAE,MAAM,CAAM;IACnD,8DAA8D;IAC/C,IAAI,CAAC,OAAO,CAAC,EAAE,eAAe,GAAG,OAAO,CAAC,IAAI,CAAC;IAO7D,kDAAkD;IACnC,MAAM,CAAC,QAAQ,CAAC,EAAE,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC;CAGnE;AACD,qDAAqD;AACrD,qBAAa,8BAA+B,SAAQ,cAAc,CAAC,oBAAoB,CAAC;IACtF,MAAM,CAAC,QAAQ,CAAC,UAAU,8BAAwB;CACnD"}
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
*/
|
|
13
13
|
import { SmrtCollection, SmrtObject } from '@happyvertical/smrt-core';
|
|
14
14
|
/** What the handler did with an event. */
|
|
15
|
-
export type TenantPaymentWebhookOutcome = 'settled' | 'already_settled' | 'pending' | 'account_updated' | 'stale_account_update' | 'application_fee' | 'refund_reported' | 'refund_updated' | 'late_payment' | 'ignored';
|
|
15
|
+
export type TenantPaymentWebhookOutcome = 'settled' | 'already_settled' | 'pending' | 'account_updated' | 'stale_account_update' | 'application_fee' | 'refund_reported' | 'refund_updated' | 'dispute_updated' | 'dispute_reported' | 'late_payment' | 'ignored';
|
|
16
16
|
/** One processed provider webhook event. */
|
|
17
17
|
export declare class TenantPaymentWebhookEvent extends SmrtObject {
|
|
18
18
|
/** Payment backend adapter id, for example `stripe`. */
|
|
@@ -33,6 +33,8 @@ export declare class TenantPaymentWebhookEvent extends SmrtObject {
|
|
|
33
33
|
outcome: TenantPaymentWebhookOutcome;
|
|
34
34
|
/** PaymentIntent the event settled or referred to, when any. */
|
|
35
35
|
paymentIntentId: string;
|
|
36
|
+
/** Payment reconciled by this delivery, when any. */
|
|
37
|
+
paymentId: string;
|
|
36
38
|
/**
|
|
37
39
|
* The `application_fee.*` details returned to the host (JSON), so a
|
|
38
40
|
* redelivery returns them again.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TenantPaymentWebhookEvent.d.ts","sourceRoot":"","sources":["../../src/models/TenantPaymentWebhookEvent.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAGL,cAAc,EACd,UAAU,EAEX,MAAM,0BAA0B,CAAC;AAElC,0CAA0C;AAC1C,MAAM,MAAM,2BAA2B,GACnC,SAAS,GACT,iBAAiB,GACjB,SAAS,GACT,iBAAiB,GACjB,sBAAsB,GACtB,iBAAiB,GACjB,iBAAiB,GACjB,gBAAgB,GAChB,cAAc,GACd,SAAS,CAAC;AAEd,4CAA4C;AAC5C,qBAaa,yBAA0B,SAAQ,UAAU;IACvD,wDAAwD;IAExD,SAAS,EAAE,MAAM,CAAM;IAEvB,wBAAwB;IAExB,WAAW,EAAE,MAAM,CAAM;IAEzB,yDAAyD;IAEzD,OAAO,EAAE,MAAM,CAAM;IAErB,2BAA2B;IAC3B,SAAS,EAAE,MAAM,CAAM;IAEvB,8DAA8D;IAC9D,QAAQ,EAAE,MAAM,CAAM;IAEtB,wDAAwD;IAGxD,QAAQ,EAAE,MAAM,CAAM;IAEtB,0DAA0D;IAC1D,iBAAiB,EAAE,MAAM,CAAM;IAE/B,4BAA4B;IAC5B,OAAO,EAAE,2BAA2B,CAAa;IAEjD,gEAAgE;IAChE,eAAe,EAAE,MAAM,CAAM;IAE7B;;;OAGG;IAEH,kBAAkB,EAAE,MAAM,CAAM;IAEhC,2CAA2C;IAE3C,WAAW,EAAE,IAAI,GAAG,IAAI,CAAQ;CACjC;AAED,gFAAgF;AAChF,qBAAa,mCAAoC,SAAQ,cAAc,CAAC,yBAAyB,CAAC;IAChG,MAAM,CAAC,QAAQ,CAAC,UAAU,mCAA6B;IAEvD,yEAAyE;IACnE,KAAK,CACT,OAAO,EAAE,UAAU,CAAC,cAAc,CAAC,yBAAyB,CAAC,CAAC,QAAQ,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AAyE;IACnE,KAAK,CACT,OAAO,EAAE,UAAU,CAAC,cAAc,CAAC,yBAAyB,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,GAC1E,OAAO,CAAC,yBAAyB,CAAC;CAGtC"}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -22,6 +22,7 @@ export { TaxComponent } from './TaxComponent.js';
|
|
|
22
22
|
export { type TaxRegistration, TaxSettings } from './TaxSettings.js';
|
|
23
23
|
export { TaxSummaryReport, type TaxSummaryReportRowKind, } from './TaxSummaryReport.js';
|
|
24
24
|
export { deriveTenantPaymentAccountStatus, TenantPaymentAccount, type TenantPaymentAccountOptions, type TenantPaymentAccountStatus, type TenantPaymentCapabilitySnapshot, type TenantPaymentEnvironment, } from './TenantPaymentAccount.js';
|
|
25
|
+
export { TenantPaymentDispute } from './TenantPaymentDispute.js';
|
|
25
26
|
export { TenantPaymentWebhookEvent, type TenantPaymentWebhookOutcome, } from './TenantPaymentWebhookEvent.js';
|
|
26
27
|
export { Vendor } from './Vendor.js';
|
|
27
28
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACL,cAAc,EACd,KAAK,gBAAgB,EACrB,iBAAiB,EACjB,KAAK,qBAAqB,EAC1B,qBAAqB,EACrB,KAAK,yBAAyB,EAC9B,KAAK,4BAA4B,EACjC,KAAK,+BAA+B,EACpC,kBAAkB,EAClB,KAAK,wBAAwB,EAC7B,KAAK,eAAe,GACrB,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,SAAS,EACT,IAAI,EACJ,QAAQ,EACR,QAAQ,EACR,KAAK,EACL,KAAK,qBAAqB,EAC1B,WAAW,EACX,KAAK,EACL,eAAe,EACf,gBAAgB,EAChB,aAAa,EACb,aAAa,EACb,aAAa,EACb,cAAc,GACf,MAAM,eAAe,CA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