fragment-dev 2.2.0 → 2.4.0

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.
@@ -1371,11 +1371,15 @@
1371
1371
  },
1372
1372
  {
1373
1373
  "name": "typeVersion",
1374
- "description": "The version of the Payment Type. Defaults to the latest active version.",
1374
+ "description": "The version of the Payment Type.",
1375
1375
  "type": {
1376
- "kind": "SCALAR",
1377
- "name": "Int",
1378
- "ofType": null
1376
+ "kind": "NON_NULL",
1377
+ "name": null,
1378
+ "ofType": {
1379
+ "kind": "SCALAR",
1380
+ "name": "Int",
1381
+ "ofType": null
1382
+ }
1379
1383
  },
1380
1384
  "defaultValue": null
1381
1385
  }
@@ -1400,16 +1404,43 @@
1400
1404
  },
1401
1405
  {
1402
1406
  "kind": "OBJECT",
1403
- "name": "InternalError",
1407
+ "name": "CreatePaymentResult",
1404
1408
  "ofType": null
1405
1409
  },
1406
1410
  {
1407
1411
  "kind": "OBJECT",
1408
- "name": "Payment",
1412
+ "name": "InternalError",
1409
1413
  "ofType": null
1410
1414
  }
1411
1415
  ]
1412
1416
  },
1417
+ {
1418
+ "kind": "OBJECT",
1419
+ "name": "CreatePaymentResult",
1420
+ "description": "EXPERIMENTAL: The created Payment.",
1421
+ "fields": [
1422
+ {
1423
+ "name": "payment",
1424
+ "description": "The Payment that was created.",
1425
+ "args": [],
1426
+ "type": {
1427
+ "kind": "NON_NULL",
1428
+ "name": null,
1429
+ "ofType": {
1430
+ "kind": "OBJECT",
1431
+ "name": "Payment",
1432
+ "ofType": null
1433
+ }
1434
+ },
1435
+ "isDeprecated": false,
1436
+ "deprecationReason": null
1437
+ }
1438
+ ],
1439
+ "inputFields": null,
1440
+ "interfaces": [],
1441
+ "enumValues": null,
1442
+ "possibleTypes": null
1443
+ },
1413
1444
  {
1414
1445
  "kind": "OBJECT",
1415
1446
  "name": "Currency",
@@ -2429,6 +2460,12 @@
2429
2460
  "isDeprecated": false,
2430
2461
  "deprecationReason": null
2431
2462
  },
2463
+ {
2464
+ "name": "SLE",
2465
+ "description": null,
2466
+ "isDeprecated": false,
2467
+ "deprecationReason": null
2468
+ },
2432
2469
  {
2433
2470
  "name": "SLL",
2434
2471
  "description": null,
@@ -4575,6 +4612,59 @@
4575
4612
  "enumValues": null,
4576
4613
  "possibleTypes": null
4577
4614
  },
4615
+ {
4616
+ "kind": "UNION",
4617
+ "name": "InstantiateLedgerAccountResponse",
4618
+ "description": null,
4619
+ "fields": null,
4620
+ "inputFields": null,
4621
+ "interfaces": null,
4622
+ "enumValues": null,
4623
+ "possibleTypes": [
4624
+ {
4625
+ "kind": "OBJECT",
4626
+ "name": "BadRequestError",
4627
+ "ofType": null
4628
+ },
4629
+ {
4630
+ "kind": "OBJECT",
4631
+ "name": "InstantiateLedgerAccountResult",
4632
+ "ofType": null
4633
+ },
4634
+ {
4635
+ "kind": "OBJECT",
4636
+ "name": "InternalError",
4637
+ "ofType": null
4638
+ }
4639
+ ]
4640
+ },
4641
+ {
4642
+ "kind": "OBJECT",
4643
+ "name": "InstantiateLedgerAccountResult",
4644
+ "description": null,
4645
+ "fields": [
4646
+ {
4647
+ "name": "ledgerAccount",
4648
+ "description": "The instantiated Ledger Account.",
4649
+ "args": [],
4650
+ "type": {
4651
+ "kind": "NON_NULL",
4652
+ "name": null,
4653
+ "ofType": {
4654
+ "kind": "OBJECT",
4655
+ "name": "LedgerAccount",
4656
+ "ofType": null
4657
+ }
4658
+ },
4659
+ "isDeprecated": false,
4660
+ "deprecationReason": null
4661
+ }
4662
+ ],
4663
+ "inputFields": null,
4664
+ "interfaces": [],
4665
+ "enumValues": null,
4666
+ "possibleTypes": null
4667
+ },
4578
4668
  {
4579
4669
  "kind": "SCALAR",
4580
4670
  "name": "Int",
@@ -5054,7 +5144,7 @@
5054
5144
  },
5055
5145
  {
5056
5146
  "name": "filter",
5057
- "description": "Filter the Ledger Accounts returned. Learn more about [querying Ledger Accounts](https://fragment.dev/guides/query-data/ledger-accounts).",
5147
+ "description": "Filter the Ledger Accounts returned. Learn more about [querying Ledger Accounts](/guides/query-data#ledger-accounts).",
5058
5148
  "type": {
5059
5149
  "kind": "INPUT_OBJECT",
5060
5150
  "name": "LedgerAccountsFilterSet",
@@ -5471,6 +5561,73 @@
5471
5561
  "isDeprecated": false,
5472
5562
  "deprecationReason": null
5473
5563
  },
5564
+ {
5565
+ "name": "payments",
5566
+ "description": "EXPERIMENTAL: List the Payments on a Ledger, most recent first.",
5567
+ "args": [
5568
+ {
5569
+ "name": "after",
5570
+ "description": "Where to start paginating from, when paginating forwards. Send endCursor from a response to get its next page. Learn more about [pagination](https://fragment.dev/guides/query-data#basics-pagination).",
5571
+ "type": {
5572
+ "kind": "SCALAR",
5573
+ "name": "String",
5574
+ "ofType": null
5575
+ },
5576
+ "defaultValue": null
5577
+ },
5578
+ {
5579
+ "name": "before",
5580
+ "description": "Where to start paginating from, when paginating backwards. Send startCursor from a response to get the previous page. Learn more about [pagination](https://fragment.dev/guides/query-data#basics-pagination).",
5581
+ "type": {
5582
+ "kind": "SCALAR",
5583
+ "name": "String",
5584
+ "ofType": null
5585
+ },
5586
+ "defaultValue": null
5587
+ },
5588
+ {
5589
+ "name": "filter",
5590
+ "description": "Filter the Payments returned.",
5591
+ "type": {
5592
+ "kind": "INPUT_OBJECT",
5593
+ "name": "PaymentsFilterSet",
5594
+ "ofType": null
5595
+ },
5596
+ "defaultValue": null
5597
+ },
5598
+ {
5599
+ "name": "first",
5600
+ "description": "The number of Payments to return per page, when paginating forwards. Defaults to 20, maximum is 200.",
5601
+ "type": {
5602
+ "kind": "SCALAR",
5603
+ "name": "Int",
5604
+ "ofType": null
5605
+ },
5606
+ "defaultValue": null
5607
+ },
5608
+ {
5609
+ "name": "last",
5610
+ "description": "The number of Payments to return per page, when paginating backwards. Defaults to 20, maximum is 200.",
5611
+ "type": {
5612
+ "kind": "SCALAR",
5613
+ "name": "Int",
5614
+ "ofType": null
5615
+ },
5616
+ "defaultValue": null
5617
+ }
5618
+ ],
5619
+ "type": {
5620
+ "kind": "NON_NULL",
5621
+ "name": null,
5622
+ "ofType": {
5623
+ "kind": "OBJECT",
5624
+ "name": "PaymentsConnection",
5625
+ "ofType": null
5626
+ }
5627
+ },
5628
+ "isDeprecated": false,
5629
+ "deprecationReason": null
5630
+ },
5474
5631
  {
5475
5632
  "name": "schema",
5476
5633
  "description": "Schema key associated with this Ledger.",
@@ -7143,7 +7300,7 @@
7143
7300
  "inputFields": [
7144
7301
  {
7145
7302
  "name": "ownBalance",
7146
- "description": "A condition that the ownBalance field must satisfy. Note that this condition always applies to the latest balance, not to balances at a specific date or time. See [Read balances](https://fragment.dev/read-balances) for more on the different types of Ledger Account balances.",
7303
+ "description": "A condition that the ownBalance field must satisfy. Note that this condition always applies to the latest balance, not to balances at a specific date or time. See [Read balances](/guides/read-balances) for more on the different types of Ledger Account balances.",
7147
7304
  "type": {
7148
7305
  "kind": "INPUT_OBJECT",
7149
7306
  "name": "Int96ConditionInput",
@@ -7153,7 +7310,7 @@
7153
7310
  },
7154
7311
  {
7155
7312
  "name": "totalBalance",
7156
- "description": "A condition that the totalBalance field must satisfy. Note that this condition always applies to the latest balance, not to balances at a specific date or time. See [Read balances](https://fragment.dev/read-balances) for more on the different types of Ledger Account balances.",
7313
+ "description": "A condition that the totalBalance field must satisfy. Note that this condition always applies to the latest balance, not to balances at a specific date or time. See [Read balances](/guides/read-balances) for more on the different types of Ledger Account balances.",
7157
7314
  "type": {
7158
7315
  "kind": "INPUT_OBJECT",
7159
7316
  "name": "Int96ConditionInput",
@@ -7662,7 +7819,7 @@
7662
7819
  "description": "Payment configuration of a Ledger Account.",
7663
7820
  "fields": [
7664
7821
  {
7665
- "name": "penguin",
7822
+ "name": "enabled",
7666
7823
  "description": null,
7667
7824
  "args": [],
7668
7825
  "type": {
@@ -11071,6 +11228,24 @@
11071
11228
  },
11072
11229
  "defaultValue": null
11073
11230
  },
11231
+ {
11232
+ "name": "externalTxIds",
11233
+ "description": "Filter Ledger Lines by the external IDs of their linked transactions. Only supported on `LedgerAccount.lines` for a linked Ledger Account.",
11234
+ "type": {
11235
+ "kind": "LIST",
11236
+ "name": null,
11237
+ "ofType": {
11238
+ "kind": "NON_NULL",
11239
+ "name": null,
11240
+ "ofType": {
11241
+ "kind": "SCALAR",
11242
+ "name": "String",
11243
+ "ofType": null
11244
+ }
11245
+ }
11246
+ },
11247
+ "defaultValue": null
11248
+ },
11074
11249
  {
11075
11250
  "name": "isReversal",
11076
11251
  "description": "Use this to filter Ledger Lines that were posted to this Ledger Account, using `reverseLedgerEntry`.",
@@ -11349,279 +11524,93 @@
11349
11524
  "possibleTypes": null
11350
11525
  },
11351
11526
  {
11352
- "kind": "OBJECT",
11353
- "name": "LedgerPayment",
11354
- "description": "EXPERIMENTAL: A Payment posted to a Ledger.",
11355
- "fields": [
11527
+ "kind": "INPUT_OBJECT",
11528
+ "name": "LedgerTypeFilter",
11529
+ "description": null,
11530
+ "fields": null,
11531
+ "inputFields": [
11356
11532
  {
11357
- "name": "amount",
11358
- "description": "The amount of this Payment, in whole cents.",
11359
- "args": [],
11533
+ "name": "equalTo",
11534
+ "description": null,
11360
11535
  "type": {
11361
- "kind": "NON_NULL",
11536
+ "kind": "ENUM",
11537
+ "name": "LedgerTypes",
11538
+ "ofType": null
11539
+ },
11540
+ "defaultValue": null
11541
+ },
11542
+ {
11543
+ "name": "in",
11544
+ "description": "Must match one of the values provided. Limited to 100 items maximum.",
11545
+ "type": {
11546
+ "kind": "LIST",
11362
11547
  "name": null,
11363
11548
  "ofType": {
11364
- "kind": "SCALAR",
11365
- "name": "Int96",
11366
- "ofType": null
11549
+ "kind": "NON_NULL",
11550
+ "name": null,
11551
+ "ofType": {
11552
+ "kind": "ENUM",
11553
+ "name": "LedgerTypes",
11554
+ "ofType": null
11555
+ }
11367
11556
  }
11368
11557
  },
11558
+ "defaultValue": null
11559
+ }
11560
+ ],
11561
+ "interfaces": null,
11562
+ "enumValues": null,
11563
+ "possibleTypes": null
11564
+ },
11565
+ {
11566
+ "kind": "ENUM",
11567
+ "name": "LedgerTypes",
11568
+ "description": null,
11569
+ "fields": null,
11570
+ "inputFields": null,
11571
+ "interfaces": null,
11572
+ "enumValues": [
11573
+ {
11574
+ "name": "double",
11575
+ "description": null,
11369
11576
  "isDeprecated": false,
11370
11577
  "deprecationReason": null
11371
- },
11578
+ }
11579
+ ],
11580
+ "possibleTypes": null
11581
+ },
11582
+ {
11583
+ "kind": "OBJECT",
11584
+ "name": "LedgersConnection",
11585
+ "description": "A paginated list of Ledgers",
11586
+ "fields": [
11372
11587
  {
11373
- "name": "created",
11374
- "description": null,
11588
+ "name": "nodes",
11589
+ "description": "The current page of results",
11375
11590
  "args": [],
11376
11591
  "type": {
11377
11592
  "kind": "NON_NULL",
11378
11593
  "name": null,
11379
11594
  "ofType": {
11380
- "kind": "SCALAR",
11381
- "name": "DateTime",
11382
- "ofType": null
11595
+ "kind": "LIST",
11596
+ "name": null,
11597
+ "ofType": {
11598
+ "kind": "NON_NULL",
11599
+ "name": null,
11600
+ "ofType": {
11601
+ "kind": "OBJECT",
11602
+ "name": "Ledger",
11603
+ "ofType": null
11604
+ }
11605
+ }
11383
11606
  }
11384
11607
  },
11385
11608
  "isDeprecated": false,
11386
11609
  "deprecationReason": null
11387
11610
  },
11388
11611
  {
11389
- "name": "ik",
11390
- "description": "The [Idempotency Key](https://fragment.dev/api-reference/api-overview#idempotency) the Payment was created with.",
11391
- "args": [],
11392
- "type": {
11393
- "kind": "NON_NULL",
11394
- "name": null,
11395
- "ofType": {
11396
- "kind": "SCALAR",
11397
- "name": "SafeString",
11398
- "ofType": null
11399
- }
11400
- },
11401
- "isDeprecated": false,
11402
- "deprecationReason": null
11403
- },
11404
- {
11405
- "name": "ledgerId",
11406
- "description": "The Ledger this Payment belongs to.",
11407
- "args": [],
11408
- "type": {
11409
- "kind": "NON_NULL",
11410
- "name": null,
11411
- "ofType": {
11412
- "kind": "SCALAR",
11413
- "name": "SafeString",
11414
- "ofType": null
11415
- }
11416
- },
11417
- "isDeprecated": false,
11418
- "deprecationReason": null
11419
- },
11420
- {
11421
- "name": "parameters",
11422
- "description": "Parameters the Payment was created with. Only returned by the `ledgerPayment` query.",
11423
- "args": [],
11424
- "type": {
11425
- "kind": "SCALAR",
11426
- "name": "JSON",
11427
- "ofType": null
11428
- },
11429
- "isDeprecated": false,
11430
- "deprecationReason": null
11431
- },
11432
- {
11433
- "name": "status",
11434
- "description": "The status of this Payment.",
11435
- "args": [],
11436
- "type": {
11437
- "kind": "NON_NULL",
11438
- "name": null,
11439
- "ofType": {
11440
- "kind": "ENUM",
11441
- "name": "PaymentStatus",
11442
- "ofType": null
11443
- }
11444
- },
11445
- "isDeprecated": false,
11446
- "deprecationReason": null
11447
- },
11448
- {
11449
- "name": "type",
11450
- "description": "The Payment Type in the Schema this Payment was created from.",
11451
- "args": [],
11452
- "type": {
11453
- "kind": "NON_NULL",
11454
- "name": null,
11455
- "ofType": {
11456
- "kind": "SCALAR",
11457
- "name": "SafeString",
11458
- "ofType": null
11459
- }
11460
- },
11461
- "isDeprecated": false,
11462
- "deprecationReason": null
11463
- },
11464
- {
11465
- "name": "typeVersion",
11466
- "description": "The version of the Payment Type.",
11467
- "args": [],
11468
- "type": {
11469
- "kind": "NON_NULL",
11470
- "name": null,
11471
- "ofType": {
11472
- "kind": "SCALAR",
11473
- "name": "Int",
11474
- "ofType": null
11475
- }
11476
- },
11477
- "isDeprecated": false,
11478
- "deprecationReason": null
11479
- }
11480
- ],
11481
- "inputFields": null,
11482
- "interfaces": [],
11483
- "enumValues": null,
11484
- "possibleTypes": null
11485
- },
11486
- {
11487
- "kind": "OBJECT",
11488
- "name": "LedgerPaymentsConnection",
11489
- "description": "EXPERIMENTAL: A paginated list of Payments.",
11490
- "fields": [
11491
- {
11492
- "name": "nodes",
11493
- "description": "The current page of results.",
11494
- "args": [],
11495
- "type": {
11496
- "kind": "NON_NULL",
11497
- "name": null,
11498
- "ofType": {
11499
- "kind": "LIST",
11500
- "name": null,
11501
- "ofType": {
11502
- "kind": "NON_NULL",
11503
- "name": null,
11504
- "ofType": {
11505
- "kind": "OBJECT",
11506
- "name": "LedgerPayment",
11507
- "ofType": null
11508
- }
11509
- }
11510
- }
11511
- },
11512
- "isDeprecated": false,
11513
- "deprecationReason": null
11514
- },
11515
- {
11516
- "name": "pageInfo",
11517
- "description": "The pagination info for this list.",
11518
- "args": [],
11519
- "type": {
11520
- "kind": "NON_NULL",
11521
- "name": null,
11522
- "ofType": {
11523
- "kind": "OBJECT",
11524
- "name": "PageInfo",
11525
- "ofType": null
11526
- }
11527
- },
11528
- "isDeprecated": false,
11529
- "deprecationReason": null
11530
- }
11531
- ],
11532
- "inputFields": null,
11533
- "interfaces": [],
11534
- "enumValues": null,
11535
- "possibleTypes": null
11536
- },
11537
- {
11538
- "kind": "INPUT_OBJECT",
11539
- "name": "LedgerTypeFilter",
11540
- "description": null,
11541
- "fields": null,
11542
- "inputFields": [
11543
- {
11544
- "name": "equalTo",
11545
- "description": null,
11546
- "type": {
11547
- "kind": "ENUM",
11548
- "name": "LedgerTypes",
11549
- "ofType": null
11550
- },
11551
- "defaultValue": null
11552
- },
11553
- {
11554
- "name": "in",
11555
- "description": "Must match one of the values provided. Limited to 100 items maximum.",
11556
- "type": {
11557
- "kind": "LIST",
11558
- "name": null,
11559
- "ofType": {
11560
- "kind": "NON_NULL",
11561
- "name": null,
11562
- "ofType": {
11563
- "kind": "ENUM",
11564
- "name": "LedgerTypes",
11565
- "ofType": null
11566
- }
11567
- }
11568
- },
11569
- "defaultValue": null
11570
- }
11571
- ],
11572
- "interfaces": null,
11573
- "enumValues": null,
11574
- "possibleTypes": null
11575
- },
11576
- {
11577
- "kind": "ENUM",
11578
- "name": "LedgerTypes",
11579
- "description": null,
11580
- "fields": null,
11581
- "inputFields": null,
11582
- "interfaces": null,
11583
- "enumValues": [
11584
- {
11585
- "name": "double",
11586
- "description": null,
11587
- "isDeprecated": false,
11588
- "deprecationReason": null
11589
- }
11590
- ],
11591
- "possibleTypes": null
11592
- },
11593
- {
11594
- "kind": "OBJECT",
11595
- "name": "LedgersConnection",
11596
- "description": "A paginated list of Ledgers",
11597
- "fields": [
11598
- {
11599
- "name": "nodes",
11600
- "description": "The current page of results",
11601
- "args": [],
11602
- "type": {
11603
- "kind": "NON_NULL",
11604
- "name": null,
11605
- "ofType": {
11606
- "kind": "LIST",
11607
- "name": null,
11608
- "ofType": {
11609
- "kind": "NON_NULL",
11610
- "name": null,
11611
- "ofType": {
11612
- "kind": "OBJECT",
11613
- "name": "Ledger",
11614
- "ofType": null
11615
- }
11616
- }
11617
- }
11618
- },
11619
- "isDeprecated": false,
11620
- "deprecationReason": null
11621
- },
11622
- {
11623
- "name": "pageInfo",
11624
- "description": "The [pagination info](https://fragment.dev/api-reference/api-types#connection-types-pageinfo) for this list",
11612
+ "name": "pageInfo",
11613
+ "description": "The [pagination info](https://fragment.dev/api-reference/api-types#connection-types-pageinfo) for this list",
11625
11614
  "args": [],
11626
11615
  "type": {
11627
11616
  "kind": "NON_NULL",
@@ -11787,20 +11776,26 @@
11787
11776
  {
11788
11777
  "kind": "INPUT_OBJECT",
11789
11778
  "name": "LinkMatchInput",
11790
- "description": null,
11779
+ "description": "Specify a Link by ID, or a Custom Link by its creation IK.",
11791
11780
  "fields": null,
11792
11781
  "inputFields": [
11793
11782
  {
11794
11783
  "name": "id",
11795
11784
  "description": null,
11796
11785
  "type": {
11797
- "kind": "NON_NULL",
11798
- "name": null,
11799
- "ofType": {
11800
- "kind": "SCALAR",
11801
- "name": "ID",
11802
- "ofType": null
11803
- }
11786
+ "kind": "SCALAR",
11787
+ "name": "ID",
11788
+ "ofType": null
11789
+ },
11790
+ "defaultValue": null
11791
+ },
11792
+ {
11793
+ "name": "ik",
11794
+ "description": "The IK passed to createCustomLink. If id is also provided, both must identify the same Link.",
11795
+ "type": {
11796
+ "kind": "SCALAR",
11797
+ "name": "SafeString",
11798
+ "ofType": null
11804
11799
  },
11805
11800
  "defaultValue": null
11806
11801
  }
@@ -12054,7 +12049,7 @@
12054
12049
  },
12055
12050
  {
12056
12051
  "name": "addLedgerEntries",
12057
- "description": "Batch version of [addLedgerEntry](http://localhost:3001/api-reference/ledger-mutations#addledgerentry).\n\nAdds a batch of Ledger Entries in one synchronous and atomic transaction. Either every entry is added or none are.",
12052
+ "description": "Batch version of [addLedgerEntry](/api-reference/ledger-mutations#addledgerentry).\n\nAdds a batch of Ledger Entries in one synchronous and atomic transaction. Either every entry is added or none are.",
12058
12053
  "args": [
12059
12054
  {
12060
12055
  "name": "entries",
@@ -12540,18 +12535,73 @@
12540
12535
  "deprecationReason": null
12541
12536
  },
12542
12537
  {
12543
- "name": "migrateLedgerEntry",
12544
- "description": "Migrate an existing Ledger Entry to a new type and typeVersion.\n\nMigrating a Ledger Entry will do the following:\n 1. Reverse the existing Ledger Entry\n 2. Post a new Ledger Entry with the new type, typeVersion, and parameters provided",
12538
+ "name": "instantiateLedgerAccount",
12539
+ "description": "Instantiates a Ledger Account from a template in the Ledger's Schema before any Ledger Entry is posted to it. Creates any missing templated ancestors.",
12545
12540
  "args": [
12546
12541
  {
12547
- "name": "input",
12548
- "description": null,
12542
+ "name": "ledger",
12543
+ "description": "The Ledger whose Schema defines the account.",
12549
12544
  "type": {
12550
12545
  "kind": "NON_NULL",
12551
12546
  "name": null,
12552
12547
  "ofType": {
12553
12548
  "kind": "INPUT_OBJECT",
12554
- "name": "MigrateLedgerEntryInput",
12549
+ "name": "LedgerMatchInput",
12550
+ "ofType": null
12551
+ }
12552
+ },
12553
+ "defaultValue": null
12554
+ },
12555
+ {
12556
+ "name": "parameters",
12557
+ "description": "Values for every parameter the account's template references: name, currency, and linked account fields.",
12558
+ "type": {
12559
+ "kind": "SCALAR",
12560
+ "name": "Parameters",
12561
+ "ofType": null
12562
+ },
12563
+ "defaultValue": null
12564
+ },
12565
+ {
12566
+ "name": "path",
12567
+ "description": "The fully instantiated path of the account, e.g. assets/customer:cust-1. Must not contain placeholders.",
12568
+ "type": {
12569
+ "kind": "NON_NULL",
12570
+ "name": null,
12571
+ "ofType": {
12572
+ "kind": "SCALAR",
12573
+ "name": "String",
12574
+ "ofType": null
12575
+ }
12576
+ },
12577
+ "defaultValue": null
12578
+ }
12579
+ ],
12580
+ "type": {
12581
+ "kind": "NON_NULL",
12582
+ "name": null,
12583
+ "ofType": {
12584
+ "kind": "UNION",
12585
+ "name": "InstantiateLedgerAccountResponse",
12586
+ "ofType": null
12587
+ }
12588
+ },
12589
+ "isDeprecated": false,
12590
+ "deprecationReason": null
12591
+ },
12592
+ {
12593
+ "name": "migrateLedgerEntry",
12594
+ "description": "Migrate an existing Ledger Entry to a new type and typeVersion.\n\nMigrating a Ledger Entry will do the following:\n 1. Reverse the existing Ledger Entry\n 2. Post a new Ledger Entry with the new type, typeVersion, and parameters provided",
12595
+ "args": [
12596
+ {
12597
+ "name": "input",
12598
+ "description": null,
12599
+ "type": {
12600
+ "kind": "NON_NULL",
12601
+ "name": null,
12602
+ "ofType": {
12603
+ "kind": "INPUT_OBJECT",
12604
+ "name": "MigrateLedgerEntryInput",
12555
12605
  "ofType": null
12556
12606
  }
12557
12607
  },
@@ -12691,7 +12741,7 @@
12691
12741
  },
12692
12742
  {
12693
12743
  "name": "link",
12694
- "description": "An object containing the ID of a Custom Link.",
12744
+ "description": "An object containing the ID or creation IK of a Custom Link.",
12695
12745
  "type": {
12696
12746
  "kind": "NON_NULL",
12697
12747
  "name": null,
@@ -12722,7 +12772,7 @@
12722
12772
  "args": [
12723
12773
  {
12724
12774
  "name": "link",
12725
- "description": "An object containing the ID of a Custom Link.",
12775
+ "description": "An object containing the ID or creation IK of a Custom Link.",
12726
12776
  "type": {
12727
12777
  "kind": "NON_NULL",
12728
12778
  "name": null,
@@ -13000,11 +13050,27 @@
13000
13050
  {
13001
13051
  "kind": "OBJECT",
13002
13052
  "name": "Payment",
13003
- "description": null,
13053
+ "description": "EXPERIMENTAL: A Payment posted to a Ledger.",
13004
13054
  "fields": [
13055
+ {
13056
+ "name": "amount",
13057
+ "description": "The amount of this Payment, in whole cents.",
13058
+ "args": [],
13059
+ "type": {
13060
+ "kind": "NON_NULL",
13061
+ "name": null,
13062
+ "ofType": {
13063
+ "kind": "SCALAR",
13064
+ "name": "Int96",
13065
+ "ofType": null
13066
+ }
13067
+ },
13068
+ "isDeprecated": false,
13069
+ "deprecationReason": null
13070
+ },
13005
13071
  {
13006
13072
  "name": "clientSecret",
13007
- "description": "The secret handed to the payments SDK to render the payment method capture.",
13073
+ "description": "The credential the payments SDK presents to `confirmPayment`.",
13008
13074
  "args": [],
13009
13075
  "type": {
13010
13076
  "kind": "NON_NULL",
@@ -13019,120 +13085,127 @@
13019
13085
  "deprecationReason": null
13020
13086
  },
13021
13087
  {
13022
- "name": "status",
13023
- "description": "The status of this Payment.",
13088
+ "name": "created",
13089
+ "description": null,
13024
13090
  "args": [],
13025
13091
  "type": {
13026
13092
  "kind": "NON_NULL",
13027
13093
  "name": null,
13028
13094
  "ofType": {
13029
- "kind": "ENUM",
13030
- "name": "PaymentStatus",
13095
+ "kind": "SCALAR",
13096
+ "name": "DateTime",
13031
13097
  "ofType": null
13032
13098
  }
13033
13099
  },
13034
13100
  "isDeprecated": false,
13035
13101
  "deprecationReason": null
13036
- }
13037
- ],
13038
- "inputFields": null,
13039
- "interfaces": [],
13040
- "enumValues": null,
13041
- "possibleTypes": null
13042
- },
13043
- {
13044
- "kind": "ENUM",
13045
- "name": "PaymentStatus",
13046
- "description": "EXPERIMENTAL — subject to change.\n\nStatus of a Payment.",
13047
- "fields": null,
13048
- "inputFields": null,
13049
- "interfaces": null,
13050
- "enumValues": [
13102
+ },
13051
13103
  {
13052
- "name": "needs_payment_method",
13053
- "description": null,
13104
+ "name": "currency",
13105
+ "description": "The currency this Payment is denominated in.",
13106
+ "args": [],
13107
+ "type": {
13108
+ "kind": "NON_NULL",
13109
+ "name": null,
13110
+ "ofType": {
13111
+ "kind": "OBJECT",
13112
+ "name": "PaymentCurrency",
13113
+ "ofType": null
13114
+ }
13115
+ },
13054
13116
  "isDeprecated": false,
13055
13117
  "deprecationReason": null
13056
13118
  },
13057
13119
  {
13058
- "name": "processing",
13059
- "description": null,
13120
+ "name": "events",
13121
+ "description": "EXPERIMENTAL: The log of events that have occurred on this Payment, most recent first.",
13122
+ "args": [],
13123
+ "type": {
13124
+ "kind": "NON_NULL",
13125
+ "name": null,
13126
+ "ofType": {
13127
+ "kind": "OBJECT",
13128
+ "name": "PaymentEventsConnection",
13129
+ "ofType": null
13130
+ }
13131
+ },
13060
13132
  "isDeprecated": false,
13061
13133
  "deprecationReason": null
13062
13134
  },
13063
13135
  {
13064
- "name": "settled",
13065
- "description": null,
13136
+ "name": "id",
13137
+ "description": "The ID of this Payment.",
13138
+ "args": [],
13139
+ "type": {
13140
+ "kind": "NON_NULL",
13141
+ "name": null,
13142
+ "ofType": {
13143
+ "kind": "SCALAR",
13144
+ "name": "ID",
13145
+ "ofType": null
13146
+ }
13147
+ },
13066
13148
  "isDeprecated": false,
13067
13149
  "deprecationReason": null
13068
- }
13069
- ],
13070
- "possibleTypes": null
13071
- },
13072
- {
13073
- "kind": "SCALAR",
13074
- "name": "Period",
13075
- "description": "A specific year (\"2021\"), quarter (\"2021-Q1\"), month (\"2021-02\"), day (\"2021-02-03\") or hour (\"2021-02-03T04\")",
13076
- "fields": null,
13077
- "inputFields": null,
13078
- "interfaces": null,
13079
- "enumValues": null,
13080
- "possibleTypes": null
13081
- },
13082
- {
13083
- "kind": "SCALAR",
13084
- "name": "PeriodFilter",
13085
- "description": "A specific year (\"2026\") or month (\"2026-05\") used to match dates that fall within it.",
13086
- "fields": null,
13087
- "inputFields": null,
13088
- "interfaces": null,
13089
- "enumValues": null,
13090
- "possibleTypes": null
13091
- },
13092
- {
13093
- "kind": "ENUM",
13094
- "name": "PostLinesAs",
13095
- "description": "Controls how lines are posted for a Ledger Entry.\nNew entries created via the dashboard default to `net_amounts`.\nExisting entries without this field set are treated as `raw_lines`.",
13096
- "fields": null,
13097
- "inputFields": null,
13098
- "interfaces": null,
13099
- "enumValues": [
13150
+ },
13100
13151
  {
13101
- "name": "net_amounts",
13102
- "description": "Lines targeting the same account, currency, and tx are aggregated into a single line with the net amount. Lines that sum to zero are skipped. If all lines sum to zero, no lines are skipped.",
13152
+ "name": "ik",
13153
+ "description": "The [Idempotency Key](https://fragment.dev/api-reference/api-overview#idempotency) the Payment was created with.",
13154
+ "args": [],
13155
+ "type": {
13156
+ "kind": "NON_NULL",
13157
+ "name": null,
13158
+ "ofType": {
13159
+ "kind": "SCALAR",
13160
+ "name": "SafeString",
13161
+ "ofType": null
13162
+ }
13163
+ },
13103
13164
  "isDeprecated": false,
13104
13165
  "deprecationReason": null
13105
13166
  },
13106
13167
  {
13107
- "name": "raw_lines",
13108
- "description": "Lines are posted as-is without aggregation.",
13168
+ "name": "ledger",
13169
+ "description": "The Ledger that this Payment belongs to.",
13170
+ "args": [],
13171
+ "type": {
13172
+ "kind": "NON_NULL",
13173
+ "name": null,
13174
+ "ofType": {
13175
+ "kind": "OBJECT",
13176
+ "name": "Ledger",
13177
+ "ofType": null
13178
+ }
13179
+ },
13109
13180
  "isDeprecated": false,
13110
13181
  "deprecationReason": null
13111
13182
  },
13112
13183
  {
13113
- "name": "skip_zero_lines",
13114
- "description": "Lines with a zero amount are skipped, but lines are not aggregated. If all lines have a zero amount, no lines are skipped.",
13184
+ "name": "mode",
13185
+ "description": "The mode of this Payment. Can be `sandbox` or `production`.",
13186
+ "args": [],
13187
+ "type": {
13188
+ "kind": "NON_NULL",
13189
+ "name": null,
13190
+ "ofType": {
13191
+ "kind": "ENUM",
13192
+ "name": "PaymentMode",
13193
+ "ofType": null
13194
+ }
13195
+ },
13115
13196
  "isDeprecated": false,
13116
13197
  "deprecationReason": null
13117
- }
13118
- ],
13119
- "possibleTypes": null
13120
- },
13121
- {
13122
- "kind": "OBJECT",
13123
- "name": "PostedWindow",
13124
- "description": "The posted timestamp window for a clearing account, representing the earliest and latest\nposted timestamps across all currencies.",
13125
- "fields": [
13198
+ },
13126
13199
  {
13127
- "name": "earliest",
13128
- "description": "The earliest posted timestamp across all currencies for this clearing account.",
13200
+ "name": "parameters",
13201
+ "description": "Parameters the Payment was created with.",
13129
13202
  "args": [],
13130
13203
  "type": {
13131
13204
  "kind": "NON_NULL",
13132
13205
  "name": null,
13133
13206
  "ofType": {
13134
13207
  "kind": "SCALAR",
13135
- "name": "DateTime",
13208
+ "name": "JSON",
13136
13209
  "ofType": null
13137
13210
  }
13138
13211
  },
@@ -13140,15 +13213,47 @@
13140
13213
  "deprecationReason": null
13141
13214
  },
13142
13215
  {
13143
- "name": "latest",
13144
- "description": "The latest posted timestamp across all currencies for this clearing account.",
13216
+ "name": "status",
13217
+ "description": "The status of this Payment.",
13218
+ "args": [],
13219
+ "type": {
13220
+ "kind": "NON_NULL",
13221
+ "name": null,
13222
+ "ofType": {
13223
+ "kind": "ENUM",
13224
+ "name": "PaymentStatus",
13225
+ "ofType": null
13226
+ }
13227
+ },
13228
+ "isDeprecated": false,
13229
+ "deprecationReason": null
13230
+ },
13231
+ {
13232
+ "name": "type",
13233
+ "description": "The Payment Type in the Schema this Payment was created from.",
13145
13234
  "args": [],
13146
13235
  "type": {
13147
13236
  "kind": "NON_NULL",
13148
13237
  "name": null,
13149
13238
  "ofType": {
13150
13239
  "kind": "SCALAR",
13151
- "name": "DateTime",
13240
+ "name": "SafeString",
13241
+ "ofType": null
13242
+ }
13243
+ },
13244
+ "isDeprecated": false,
13245
+ "deprecationReason": null
13246
+ },
13247
+ {
13248
+ "name": "typeVersion",
13249
+ "description": "The version of the Payment Type.",
13250
+ "args": [],
13251
+ "type": {
13252
+ "kind": "NON_NULL",
13253
+ "name": null,
13254
+ "ofType": {
13255
+ "kind": "SCALAR",
13256
+ "name": "Int",
13152
13257
  "ofType": null
13153
13258
  }
13154
13259
  },
@@ -13163,12 +13268,737 @@
13163
13268
  },
13164
13269
  {
13165
13270
  "kind": "OBJECT",
13166
- "name": "Query",
13167
- "description": "View the API guide [here](https://fragment.dev/api-reference/api-queries)",
13271
+ "name": "PaymentCardCapturedEvent",
13272
+ "description": "EXPERIMENTAL: The card network captured the Payment.",
13168
13273
  "fields": [
13169
13274
  {
13170
- "name": "_empty",
13171
- "description": null,
13275
+ "name": "ledgerEntry",
13276
+ "description": "The `initiated` Ledger Entry, `null` where the Payment Type defines none.",
13277
+ "args": [],
13278
+ "type": {
13279
+ "kind": "OBJECT",
13280
+ "name": "LedgerEntry",
13281
+ "ofType": null
13282
+ },
13283
+ "isDeprecated": false,
13284
+ "deprecationReason": null
13285
+ },
13286
+ {
13287
+ "name": "occurredAt",
13288
+ "description": "When this event occurred.",
13289
+ "args": [],
13290
+ "type": {
13291
+ "kind": "NON_NULL",
13292
+ "name": null,
13293
+ "ofType": {
13294
+ "kind": "SCALAR",
13295
+ "name": "DateTime",
13296
+ "ofType": null
13297
+ }
13298
+ },
13299
+ "isDeprecated": false,
13300
+ "deprecationReason": null
13301
+ },
13302
+ {
13303
+ "name": "status",
13304
+ "description": "The status of the Payment after this event.",
13305
+ "args": [],
13306
+ "type": {
13307
+ "kind": "NON_NULL",
13308
+ "name": null,
13309
+ "ofType": {
13310
+ "kind": "ENUM",
13311
+ "name": "PaymentStatus",
13312
+ "ofType": null
13313
+ }
13314
+ },
13315
+ "isDeprecated": false,
13316
+ "deprecationReason": null
13317
+ }
13318
+ ],
13319
+ "inputFields": null,
13320
+ "interfaces": [
13321
+ {
13322
+ "kind": "INTERFACE",
13323
+ "name": "PaymentEvent",
13324
+ "ofType": null
13325
+ }
13326
+ ],
13327
+ "enumValues": null,
13328
+ "possibleTypes": null
13329
+ },
13330
+ {
13331
+ "kind": "OBJECT",
13332
+ "name": "PaymentCheckoutCompletedEvent",
13333
+ "description": "EXPERIMENTAL: The payer completed checkout.",
13334
+ "fields": [
13335
+ {
13336
+ "name": "occurredAt",
13337
+ "description": "When this event occurred.",
13338
+ "args": [],
13339
+ "type": {
13340
+ "kind": "NON_NULL",
13341
+ "name": null,
13342
+ "ofType": {
13343
+ "kind": "SCALAR",
13344
+ "name": "DateTime",
13345
+ "ofType": null
13346
+ }
13347
+ },
13348
+ "isDeprecated": false,
13349
+ "deprecationReason": null
13350
+ },
13351
+ {
13352
+ "name": "status",
13353
+ "description": "The status of the Payment after this event.",
13354
+ "args": [],
13355
+ "type": {
13356
+ "kind": "NON_NULL",
13357
+ "name": null,
13358
+ "ofType": {
13359
+ "kind": "ENUM",
13360
+ "name": "PaymentStatus",
13361
+ "ofType": null
13362
+ }
13363
+ },
13364
+ "isDeprecated": false,
13365
+ "deprecationReason": null
13366
+ }
13367
+ ],
13368
+ "inputFields": null,
13369
+ "interfaces": [
13370
+ {
13371
+ "kind": "INTERFACE",
13372
+ "name": "PaymentEvent",
13373
+ "ofType": null
13374
+ }
13375
+ ],
13376
+ "enumValues": null,
13377
+ "possibleTypes": null
13378
+ },
13379
+ {
13380
+ "kind": "OBJECT",
13381
+ "name": "PaymentCreatedEvent",
13382
+ "description": "EXPERIMENTAL: The Payment was created.",
13383
+ "fields": [
13384
+ {
13385
+ "name": "occurredAt",
13386
+ "description": "When this event occurred.",
13387
+ "args": [],
13388
+ "type": {
13389
+ "kind": "NON_NULL",
13390
+ "name": null,
13391
+ "ofType": {
13392
+ "kind": "SCALAR",
13393
+ "name": "DateTime",
13394
+ "ofType": null
13395
+ }
13396
+ },
13397
+ "isDeprecated": false,
13398
+ "deprecationReason": null
13399
+ },
13400
+ {
13401
+ "name": "status",
13402
+ "description": "The status of the Payment after this event.",
13403
+ "args": [],
13404
+ "type": {
13405
+ "kind": "NON_NULL",
13406
+ "name": null,
13407
+ "ofType": {
13408
+ "kind": "ENUM",
13409
+ "name": "PaymentStatus",
13410
+ "ofType": null
13411
+ }
13412
+ },
13413
+ "isDeprecated": false,
13414
+ "deprecationReason": null
13415
+ }
13416
+ ],
13417
+ "inputFields": null,
13418
+ "interfaces": [
13419
+ {
13420
+ "kind": "INTERFACE",
13421
+ "name": "PaymentEvent",
13422
+ "ofType": null
13423
+ }
13424
+ ],
13425
+ "enumValues": null,
13426
+ "possibleTypes": null
13427
+ },
13428
+ {
13429
+ "kind": "OBJECT",
13430
+ "name": "PaymentCurrency",
13431
+ "description": "EXPERIMENTAL: The currency a Payment is denominated in.",
13432
+ "fields": [
13433
+ {
13434
+ "name": "code",
13435
+ "description": "The currency code.",
13436
+ "args": [],
13437
+ "type": {
13438
+ "kind": "NON_NULL",
13439
+ "name": null,
13440
+ "ofType": {
13441
+ "kind": "ENUM",
13442
+ "name": "PaymentCurrencyCode",
13443
+ "ofType": null
13444
+ }
13445
+ },
13446
+ "isDeprecated": false,
13447
+ "deprecationReason": null
13448
+ },
13449
+ {
13450
+ "name": "name",
13451
+ "description": "A human readable name for the currency (e.g. United States Dollar). This is used for display purposes.",
13452
+ "args": [],
13453
+ "type": {
13454
+ "kind": "NON_NULL",
13455
+ "name": null,
13456
+ "ofType": {
13457
+ "kind": "SCALAR",
13458
+ "name": "String",
13459
+ "ofType": null
13460
+ }
13461
+ },
13462
+ "isDeprecated": false,
13463
+ "deprecationReason": null
13464
+ },
13465
+ {
13466
+ "name": "precision",
13467
+ "description": "The number of decimal places this currency goes to. For example, United States Dollars have a precision of 2 (i.e. 100 cents in a dollar), whereas the Jordanian Dinar has a precision of 3. This is used for display purposes.",
13468
+ "args": [],
13469
+ "type": {
13470
+ "kind": "NON_NULL",
13471
+ "name": null,
13472
+ "ofType": {
13473
+ "kind": "SCALAR",
13474
+ "name": "Int",
13475
+ "ofType": null
13476
+ }
13477
+ },
13478
+ "isDeprecated": false,
13479
+ "deprecationReason": null
13480
+ }
13481
+ ],
13482
+ "inputFields": null,
13483
+ "interfaces": [],
13484
+ "enumValues": null,
13485
+ "possibleTypes": null
13486
+ },
13487
+ {
13488
+ "kind": "ENUM",
13489
+ "name": "PaymentCurrencyCode",
13490
+ "description": "EXPERIMENTAL — subject to change.\n\nThe currencies a Payment can be denominated in.",
13491
+ "fields": null,
13492
+ "inputFields": null,
13493
+ "interfaces": null,
13494
+ "enumValues": [
13495
+ {
13496
+ "name": "USD",
13497
+ "description": null,
13498
+ "isDeprecated": false,
13499
+ "deprecationReason": null
13500
+ }
13501
+ ],
13502
+ "possibleTypes": null
13503
+ },
13504
+ {
13505
+ "kind": "INTERFACE",
13506
+ "name": "PaymentEvent",
13507
+ "description": "EXPERIMENTAL: Something that happened to a Payment.",
13508
+ "fields": [
13509
+ {
13510
+ "name": "occurredAt",
13511
+ "description": "When this event occurred.",
13512
+ "args": [],
13513
+ "type": {
13514
+ "kind": "NON_NULL",
13515
+ "name": null,
13516
+ "ofType": {
13517
+ "kind": "SCALAR",
13518
+ "name": "DateTime",
13519
+ "ofType": null
13520
+ }
13521
+ },
13522
+ "isDeprecated": false,
13523
+ "deprecationReason": null
13524
+ },
13525
+ {
13526
+ "name": "status",
13527
+ "description": "The status of the Payment after this event.",
13528
+ "args": [],
13529
+ "type": {
13530
+ "kind": "NON_NULL",
13531
+ "name": null,
13532
+ "ofType": {
13533
+ "kind": "ENUM",
13534
+ "name": "PaymentStatus",
13535
+ "ofType": null
13536
+ }
13537
+ },
13538
+ "isDeprecated": false,
13539
+ "deprecationReason": null
13540
+ }
13541
+ ],
13542
+ "inputFields": null,
13543
+ "interfaces": [],
13544
+ "enumValues": null,
13545
+ "possibleTypes": [
13546
+ {
13547
+ "kind": "OBJECT",
13548
+ "name": "PaymentCardCapturedEvent",
13549
+ "ofType": null
13550
+ },
13551
+ {
13552
+ "kind": "OBJECT",
13553
+ "name": "PaymentCheckoutCompletedEvent",
13554
+ "ofType": null
13555
+ },
13556
+ {
13557
+ "kind": "OBJECT",
13558
+ "name": "PaymentCreatedEvent",
13559
+ "ofType": null
13560
+ },
13561
+ {
13562
+ "kind": "OBJECT",
13563
+ "name": "PaymentSettledEvent",
13564
+ "ofType": null
13565
+ }
13566
+ ]
13567
+ },
13568
+ {
13569
+ "kind": "OBJECT",
13570
+ "name": "PaymentEventsConnection",
13571
+ "description": "EXPERIMENTAL: A paginated list of Payment events.",
13572
+ "fields": [
13573
+ {
13574
+ "name": "nodes",
13575
+ "description": "The current page of results.",
13576
+ "args": [],
13577
+ "type": {
13578
+ "kind": "NON_NULL",
13579
+ "name": null,
13580
+ "ofType": {
13581
+ "kind": "LIST",
13582
+ "name": null,
13583
+ "ofType": {
13584
+ "kind": "NON_NULL",
13585
+ "name": null,
13586
+ "ofType": {
13587
+ "kind": "INTERFACE",
13588
+ "name": "PaymentEvent",
13589
+ "ofType": null
13590
+ }
13591
+ }
13592
+ }
13593
+ },
13594
+ "isDeprecated": false,
13595
+ "deprecationReason": null
13596
+ },
13597
+ {
13598
+ "name": "pageInfo",
13599
+ "description": "The pagination info for this list.",
13600
+ "args": [],
13601
+ "type": {
13602
+ "kind": "NON_NULL",
13603
+ "name": null,
13604
+ "ofType": {
13605
+ "kind": "OBJECT",
13606
+ "name": "PageInfo",
13607
+ "ofType": null
13608
+ }
13609
+ },
13610
+ "isDeprecated": false,
13611
+ "deprecationReason": null
13612
+ }
13613
+ ],
13614
+ "inputFields": null,
13615
+ "interfaces": [],
13616
+ "enumValues": null,
13617
+ "possibleTypes": null
13618
+ },
13619
+ {
13620
+ "kind": "INPUT_OBJECT",
13621
+ "name": "PaymentMatchInput",
13622
+ "description": "Specify a Ledger Payment by using `ledger` and `ik`.",
13623
+ "fields": null,
13624
+ "inputFields": [
13625
+ {
13626
+ "name": "ik",
13627
+ "description": "The Idempotency Key the Payment was created with.",
13628
+ "type": {
13629
+ "kind": "NON_NULL",
13630
+ "name": null,
13631
+ "ofType": {
13632
+ "kind": "SCALAR",
13633
+ "name": "SafeString",
13634
+ "ofType": null
13635
+ }
13636
+ },
13637
+ "defaultValue": null
13638
+ },
13639
+ {
13640
+ "name": "ledger",
13641
+ "description": "The Ledger the Payment belongs to.",
13642
+ "type": {
13643
+ "kind": "NON_NULL",
13644
+ "name": null,
13645
+ "ofType": {
13646
+ "kind": "INPUT_OBJECT",
13647
+ "name": "LedgerMatchInput",
13648
+ "ofType": null
13649
+ }
13650
+ },
13651
+ "defaultValue": null
13652
+ }
13653
+ ],
13654
+ "interfaces": null,
13655
+ "enumValues": null,
13656
+ "possibleTypes": null
13657
+ },
13658
+ {
13659
+ "kind": "ENUM",
13660
+ "name": "PaymentMode",
13661
+ "description": "Mode of a Payment.",
13662
+ "fields": null,
13663
+ "inputFields": null,
13664
+ "interfaces": null,
13665
+ "enumValues": [
13666
+ {
13667
+ "name": "production",
13668
+ "description": null,
13669
+ "isDeprecated": false,
13670
+ "deprecationReason": null
13671
+ },
13672
+ {
13673
+ "name": "sandbox",
13674
+ "description": null,
13675
+ "isDeprecated": false,
13676
+ "deprecationReason": null
13677
+ }
13678
+ ],
13679
+ "possibleTypes": null
13680
+ },
13681
+ {
13682
+ "kind": "OBJECT",
13683
+ "name": "PaymentSettledEvent",
13684
+ "description": "EXPERIMENTAL: The Payment settled.",
13685
+ "fields": [
13686
+ {
13687
+ "name": "ledgerEntry",
13688
+ "description": "The `settled` Ledger Entry.",
13689
+ "args": [],
13690
+ "type": {
13691
+ "kind": "NON_NULL",
13692
+ "name": null,
13693
+ "ofType": {
13694
+ "kind": "OBJECT",
13695
+ "name": "LedgerEntry",
13696
+ "ofType": null
13697
+ }
13698
+ },
13699
+ "isDeprecated": false,
13700
+ "deprecationReason": null
13701
+ },
13702
+ {
13703
+ "name": "occurredAt",
13704
+ "description": "When this event occurred.",
13705
+ "args": [],
13706
+ "type": {
13707
+ "kind": "NON_NULL",
13708
+ "name": null,
13709
+ "ofType": {
13710
+ "kind": "SCALAR",
13711
+ "name": "DateTime",
13712
+ "ofType": null
13713
+ }
13714
+ },
13715
+ "isDeprecated": false,
13716
+ "deprecationReason": null
13717
+ },
13718
+ {
13719
+ "name": "status",
13720
+ "description": "The status of the Payment after this event.",
13721
+ "args": [],
13722
+ "type": {
13723
+ "kind": "NON_NULL",
13724
+ "name": null,
13725
+ "ofType": {
13726
+ "kind": "ENUM",
13727
+ "name": "PaymentStatus",
13728
+ "ofType": null
13729
+ }
13730
+ },
13731
+ "isDeprecated": false,
13732
+ "deprecationReason": null
13733
+ }
13734
+ ],
13735
+ "inputFields": null,
13736
+ "interfaces": [
13737
+ {
13738
+ "kind": "INTERFACE",
13739
+ "name": "PaymentEvent",
13740
+ "ofType": null
13741
+ }
13742
+ ],
13743
+ "enumValues": null,
13744
+ "possibleTypes": null
13745
+ },
13746
+ {
13747
+ "kind": "ENUM",
13748
+ "name": "PaymentStatus",
13749
+ "description": "EXPERIMENTAL — subject to change.\n\nStatus of a Payment.",
13750
+ "fields": null,
13751
+ "inputFields": null,
13752
+ "interfaces": null,
13753
+ "enumValues": [
13754
+ {
13755
+ "name": "accepted",
13756
+ "description": null,
13757
+ "isDeprecated": false,
13758
+ "deprecationReason": null
13759
+ },
13760
+ {
13761
+ "name": "needs_payment_method",
13762
+ "description": null,
13763
+ "isDeprecated": false,
13764
+ "deprecationReason": null
13765
+ },
13766
+ {
13767
+ "name": "processing",
13768
+ "description": null,
13769
+ "isDeprecated": false,
13770
+ "deprecationReason": null
13771
+ },
13772
+ {
13773
+ "name": "settled",
13774
+ "description": null,
13775
+ "isDeprecated": false,
13776
+ "deprecationReason": null
13777
+ }
13778
+ ],
13779
+ "possibleTypes": null
13780
+ },
13781
+ {
13782
+ "kind": "INPUT_OBJECT",
13783
+ "name": "PaymentStatusFilter",
13784
+ "description": "EXPERIMENTAL: Filters a result set by Payment status.",
13785
+ "fields": null,
13786
+ "inputFields": [
13787
+ {
13788
+ "name": "equalTo",
13789
+ "description": "Results must have the specified status.",
13790
+ "type": {
13791
+ "kind": "ENUM",
13792
+ "name": "PaymentStatus",
13793
+ "ofType": null
13794
+ },
13795
+ "defaultValue": null
13796
+ },
13797
+ {
13798
+ "name": "in",
13799
+ "description": "Results can have any of the specified statuses.",
13800
+ "type": {
13801
+ "kind": "LIST",
13802
+ "name": null,
13803
+ "ofType": {
13804
+ "kind": "NON_NULL",
13805
+ "name": null,
13806
+ "ofType": {
13807
+ "kind": "ENUM",
13808
+ "name": "PaymentStatus",
13809
+ "ofType": null
13810
+ }
13811
+ }
13812
+ },
13813
+ "defaultValue": null
13814
+ }
13815
+ ],
13816
+ "interfaces": null,
13817
+ "enumValues": null,
13818
+ "possibleTypes": null
13819
+ },
13820
+ {
13821
+ "kind": "OBJECT",
13822
+ "name": "PaymentsConnection",
13823
+ "description": "EXPERIMENTAL: A paginated list of Payments.",
13824
+ "fields": [
13825
+ {
13826
+ "name": "nodes",
13827
+ "description": "The current page of results.",
13828
+ "args": [],
13829
+ "type": {
13830
+ "kind": "NON_NULL",
13831
+ "name": null,
13832
+ "ofType": {
13833
+ "kind": "LIST",
13834
+ "name": null,
13835
+ "ofType": {
13836
+ "kind": "NON_NULL",
13837
+ "name": null,
13838
+ "ofType": {
13839
+ "kind": "OBJECT",
13840
+ "name": "Payment",
13841
+ "ofType": null
13842
+ }
13843
+ }
13844
+ }
13845
+ },
13846
+ "isDeprecated": false,
13847
+ "deprecationReason": null
13848
+ },
13849
+ {
13850
+ "name": "pageInfo",
13851
+ "description": "The pagination info for this list.",
13852
+ "args": [],
13853
+ "type": {
13854
+ "kind": "NON_NULL",
13855
+ "name": null,
13856
+ "ofType": {
13857
+ "kind": "OBJECT",
13858
+ "name": "PageInfo",
13859
+ "ofType": null
13860
+ }
13861
+ },
13862
+ "isDeprecated": false,
13863
+ "deprecationReason": null
13864
+ }
13865
+ ],
13866
+ "inputFields": null,
13867
+ "interfaces": [],
13868
+ "enumValues": null,
13869
+ "possibleTypes": null
13870
+ },
13871
+ {
13872
+ "kind": "INPUT_OBJECT",
13873
+ "name": "PaymentsFilterSet",
13874
+ "description": "EXPERIMENTAL: The filters that can be applied to a list of Payments.",
13875
+ "fields": null,
13876
+ "inputFields": [
13877
+ {
13878
+ "name": "created",
13879
+ "description": "Use this filter to filter Payments by their `created` timestamp.",
13880
+ "type": {
13881
+ "kind": "INPUT_OBJECT",
13882
+ "name": "DateTimeFilter",
13883
+ "ofType": null
13884
+ },
13885
+ "defaultValue": null
13886
+ },
13887
+ {
13888
+ "name": "status",
13889
+ "description": "Use this to filter Payments by their status.",
13890
+ "type": {
13891
+ "kind": "INPUT_OBJECT",
13892
+ "name": "PaymentStatusFilter",
13893
+ "ofType": null
13894
+ },
13895
+ "defaultValue": null
13896
+ }
13897
+ ],
13898
+ "interfaces": null,
13899
+ "enumValues": null,
13900
+ "possibleTypes": null
13901
+ },
13902
+ {
13903
+ "kind": "SCALAR",
13904
+ "name": "Period",
13905
+ "description": "A specific year (\"2021\"), quarter (\"2021-Q1\"), month (\"2021-02\"), day (\"2021-02-03\") or hour (\"2021-02-03T04\")",
13906
+ "fields": null,
13907
+ "inputFields": null,
13908
+ "interfaces": null,
13909
+ "enumValues": null,
13910
+ "possibleTypes": null
13911
+ },
13912
+ {
13913
+ "kind": "SCALAR",
13914
+ "name": "PeriodFilter",
13915
+ "description": "A specific year (\"2026\") or month (\"2026-05\") used to match dates that fall within it.",
13916
+ "fields": null,
13917
+ "inputFields": null,
13918
+ "interfaces": null,
13919
+ "enumValues": null,
13920
+ "possibleTypes": null
13921
+ },
13922
+ {
13923
+ "kind": "ENUM",
13924
+ "name": "PostLinesAs",
13925
+ "description": "Controls how lines are posted for a Ledger Entry.\nNew entries created via the dashboard default to `net_amounts`.\nExisting entries without this field set are treated as `raw_lines`.",
13926
+ "fields": null,
13927
+ "inputFields": null,
13928
+ "interfaces": null,
13929
+ "enumValues": [
13930
+ {
13931
+ "name": "net_amounts",
13932
+ "description": "Lines targeting the same account, currency, and tx are aggregated into a single line with the net amount. Lines that sum to zero are skipped. If all lines sum to zero, no lines are skipped.",
13933
+ "isDeprecated": false,
13934
+ "deprecationReason": null
13935
+ },
13936
+ {
13937
+ "name": "raw_lines",
13938
+ "description": "Lines are posted as-is without aggregation.",
13939
+ "isDeprecated": false,
13940
+ "deprecationReason": null
13941
+ },
13942
+ {
13943
+ "name": "skip_zero_lines",
13944
+ "description": "Lines with a zero amount are skipped, but lines are not aggregated. If all lines have a zero amount, no lines are skipped.",
13945
+ "isDeprecated": false,
13946
+ "deprecationReason": null
13947
+ }
13948
+ ],
13949
+ "possibleTypes": null
13950
+ },
13951
+ {
13952
+ "kind": "OBJECT",
13953
+ "name": "PostedWindow",
13954
+ "description": "The posted timestamp window for a clearing account, representing the earliest and latest\nposted timestamps across all currencies.",
13955
+ "fields": [
13956
+ {
13957
+ "name": "earliest",
13958
+ "description": "The earliest posted timestamp across all currencies for this clearing account.",
13959
+ "args": [],
13960
+ "type": {
13961
+ "kind": "NON_NULL",
13962
+ "name": null,
13963
+ "ofType": {
13964
+ "kind": "SCALAR",
13965
+ "name": "DateTime",
13966
+ "ofType": null
13967
+ }
13968
+ },
13969
+ "isDeprecated": false,
13970
+ "deprecationReason": null
13971
+ },
13972
+ {
13973
+ "name": "latest",
13974
+ "description": "The latest posted timestamp across all currencies for this clearing account.",
13975
+ "args": [],
13976
+ "type": {
13977
+ "kind": "NON_NULL",
13978
+ "name": null,
13979
+ "ofType": {
13980
+ "kind": "SCALAR",
13981
+ "name": "DateTime",
13982
+ "ofType": null
13983
+ }
13984
+ },
13985
+ "isDeprecated": false,
13986
+ "deprecationReason": null
13987
+ }
13988
+ ],
13989
+ "inputFields": null,
13990
+ "interfaces": [],
13991
+ "enumValues": null,
13992
+ "possibleTypes": null
13993
+ },
13994
+ {
13995
+ "kind": "OBJECT",
13996
+ "name": "Query",
13997
+ "description": "View the API guide [here](https://fragment.dev/api-reference/api-queries)",
13998
+ "fields": [
13999
+ {
14000
+ "name": "_empty",
14001
+ "description": null,
13172
14002
  "args": [],
13173
14003
  "type": {
13174
14004
  "kind": "SCALAR",
@@ -13364,97 +14194,25 @@
13364
14194
  ],
13365
14195
  "type": {
13366
14196
  "kind": "OBJECT",
13367
- "name": "LedgerEntryGroup",
13368
- "ofType": null
13369
- },
13370
- "isDeprecated": false,
13371
- "deprecationReason": null
13372
- },
13373
- {
13374
- "name": "ledgerEntryHistory",
13375
- "description": "Get the reversal history of a Ledger Entry.",
13376
- "args": [
13377
- {
13378
- "name": "ledgerEntry",
13379
- "description": "An object specifying the ID or IK of the Ledger Entry's reversal history to query.",
13380
- "type": {
13381
- "kind": "NON_NULL",
13382
- "name": null,
13383
- "ofType": {
13384
- "kind": "INPUT_OBJECT",
13385
- "name": "LedgerEntryMatchInput",
13386
- "ofType": null
13387
- }
13388
- },
13389
- "defaultValue": null
13390
- }
13391
- ],
13392
- "type": {
13393
- "kind": "NON_NULL",
13394
- "name": null,
13395
- "ofType": {
13396
- "kind": "OBJECT",
13397
- "name": "LedgerEntriesConnection",
13398
- "ofType": null
13399
- }
13400
- },
13401
- "isDeprecated": false,
13402
- "deprecationReason": null
13403
- },
13404
- {
13405
- "name": "ledgerLine",
13406
- "description": "Get LedgerLine by ID",
13407
- "args": [
13408
- {
13409
- "name": "ledgerLine",
13410
- "description": "An object specifying the ID of the LedgerLine you want to query",
13411
- "type": {
13412
- "kind": "NON_NULL",
13413
- "name": null,
13414
- "ofType": {
13415
- "kind": "INPUT_OBJECT",
13416
- "name": "LedgerLineMatchInput",
13417
- "ofType": null
13418
- }
13419
- },
13420
- "defaultValue": null
13421
- }
13422
- ],
13423
- "type": {
13424
- "kind": "OBJECT",
13425
- "name": "LedgerLine",
14197
+ "name": "LedgerEntryGroup",
13426
14198
  "ofType": null
13427
14199
  },
13428
14200
  "isDeprecated": false,
13429
14201
  "deprecationReason": null
13430
14202
  },
13431
14203
  {
13432
- "name": "ledgerPayment",
13433
- "description": "EXPERIMENTAL: Get a single Payment by its Idempotency Key.",
14204
+ "name": "ledgerEntryHistory",
14205
+ "description": "Get the reversal history of a Ledger Entry.",
13434
14206
  "args": [
13435
14207
  {
13436
- "name": "ik",
13437
- "description": "The Idempotency Key the Payment was created with.",
13438
- "type": {
13439
- "kind": "NON_NULL",
13440
- "name": null,
13441
- "ofType": {
13442
- "kind": "SCALAR",
13443
- "name": "SafeString",
13444
- "ofType": null
13445
- }
13446
- },
13447
- "defaultValue": null
13448
- },
13449
- {
13450
- "name": "ledger",
13451
- "description": "The Ledger the Payment belongs to.",
14208
+ "name": "ledgerEntry",
14209
+ "description": "An object specifying the ID or IK of the Ledger Entry's reversal history to query.",
13452
14210
  "type": {
13453
14211
  "kind": "NON_NULL",
13454
14212
  "name": null,
13455
14213
  "ofType": {
13456
14214
  "kind": "INPUT_OBJECT",
13457
- "name": "LedgerMatchInput",
14215
+ "name": "LedgerEntryMatchInput",
13458
14216
  "ofType": null
13459
14217
  }
13460
14218
  },
@@ -13462,66 +14220,30 @@
13462
14220
  }
13463
14221
  ],
13464
14222
  "type": {
13465
- "kind": "OBJECT",
13466
- "name": "LedgerPayment",
13467
- "ofType": null
14223
+ "kind": "NON_NULL",
14224
+ "name": null,
14225
+ "ofType": {
14226
+ "kind": "OBJECT",
14227
+ "name": "LedgerEntriesConnection",
14228
+ "ofType": null
14229
+ }
13468
14230
  },
13469
14231
  "isDeprecated": false,
13470
14232
  "deprecationReason": null
13471
14233
  },
13472
14234
  {
13473
- "name": "ledgerPayments",
13474
- "description": "EXPERIMENTAL: List the Payments on a Ledger, most recent first.",
14235
+ "name": "ledgerLine",
14236
+ "description": "Get LedgerLine by ID",
13475
14237
  "args": [
13476
14238
  {
13477
- "name": "after",
13478
- "description": "Where to start paginating from, when paginating forwards. Send endCursor from a response to get its next page.",
13479
- "type": {
13480
- "kind": "SCALAR",
13481
- "name": "String",
13482
- "ofType": null
13483
- },
13484
- "defaultValue": null
13485
- },
13486
- {
13487
- "name": "before",
13488
- "description": "Where to start paginating from, when paginating backwards. Send startCursor from a response to get the previous page.",
13489
- "type": {
13490
- "kind": "SCALAR",
13491
- "name": "String",
13492
- "ofType": null
13493
- },
13494
- "defaultValue": null
13495
- },
13496
- {
13497
- "name": "first",
13498
- "description": "The number of Payments to return per page, when paginating forwards. Defaults to 20, maximum is 200.",
13499
- "type": {
13500
- "kind": "SCALAR",
13501
- "name": "Int",
13502
- "ofType": null
13503
- },
13504
- "defaultValue": null
13505
- },
13506
- {
13507
- "name": "last",
13508
- "description": "The number of Payments to return per page, when paginating backwards. Defaults to 20, maximum is 200.",
13509
- "type": {
13510
- "kind": "SCALAR",
13511
- "name": "Int",
13512
- "ofType": null
13513
- },
13514
- "defaultValue": null
13515
- },
13516
- {
13517
- "name": "ledger",
13518
- "description": "The Ledger to list Payments for.",
14239
+ "name": "ledgerLine",
14240
+ "description": "An object specifying the ID of the LedgerLine you want to query",
13519
14241
  "type": {
13520
14242
  "kind": "NON_NULL",
13521
14243
  "name": null,
13522
14244
  "ofType": {
13523
14245
  "kind": "INPUT_OBJECT",
13524
- "name": "LedgerMatchInput",
14246
+ "name": "LedgerLineMatchInput",
13525
14247
  "ofType": null
13526
14248
  }
13527
14249
  },
@@ -13529,13 +14251,9 @@
13529
14251
  }
13530
14252
  ],
13531
14253
  "type": {
13532
- "kind": "NON_NULL",
13533
- "name": null,
13534
- "ofType": {
13535
- "kind": "OBJECT",
13536
- "name": "LedgerPaymentsConnection",
13537
- "ofType": null
13538
- }
14254
+ "kind": "OBJECT",
14255
+ "name": "LedgerLine",
14256
+ "ofType": null
13539
14257
  },
13540
14258
  "isDeprecated": false,
13541
14259
  "deprecationReason": null
@@ -13609,11 +14327,11 @@
13609
14327
  },
13610
14328
  {
13611
14329
  "name": "link",
13612
- "description": "Get a Link by ID. Returns a BadRequestError if the Link is not found.",
14330
+ "description": "Get a Link by ID or a Custom Link by creation IK. Returns a BadRequestError if the Link is not found.",
13613
14331
  "args": [
13614
14332
  {
13615
14333
  "name": "link",
13616
- "description": "An object containing the ID of the Link you are querying",
14334
+ "description": "An object containing the ID or creation IK of the Link you are querying",
13617
14335
  "type": {
13618
14336
  "kind": "NON_NULL",
13619
14337
  "name": null,
@@ -13650,6 +14368,33 @@
13650
14368
  "isDeprecated": false,
13651
14369
  "deprecationReason": null
13652
14370
  },
14371
+ {
14372
+ "name": "payment",
14373
+ "description": "EXPERIMENTAL: Get a single Payment by its Idempotency Key.",
14374
+ "args": [
14375
+ {
14376
+ "name": "payment",
14377
+ "description": "The Ledger Payment to query.",
14378
+ "type": {
14379
+ "kind": "NON_NULL",
14380
+ "name": null,
14381
+ "ofType": {
14382
+ "kind": "INPUT_OBJECT",
14383
+ "name": "PaymentMatchInput",
14384
+ "ofType": null
14385
+ }
14386
+ },
14387
+ "defaultValue": null
14388
+ }
14389
+ ],
14390
+ "type": {
14391
+ "kind": "OBJECT",
14392
+ "name": "Payment",
14393
+ "ofType": null
14394
+ },
14395
+ "isDeprecated": false,
14396
+ "deprecationReason": null
14397
+ },
13653
14398
  {
13654
14399
  "name": "schema",
13655
14400
  "description": "Get a Schema by key.",
@@ -14053,21 +14798,17 @@
14053
14798
  "inputFields": [
14054
14799
  {
14055
14800
  "name": "entry",
14056
- "description": "The simulated Ledger Entry.",
14801
+ "description": "The simulated Ledger Entry. Required when eventType is `entry`.",
14057
14802
  "type": {
14058
- "kind": "NON_NULL",
14059
- "name": null,
14060
- "ofType": {
14061
- "kind": "INPUT_OBJECT",
14062
- "name": "SceneEntryInput",
14063
- "ofType": null
14064
- }
14803
+ "kind": "INPUT_OBJECT",
14804
+ "name": "SceneEntryInput",
14805
+ "ofType": null
14065
14806
  },
14066
14807
  "defaultValue": null
14067
14808
  },
14068
14809
  {
14069
14810
  "name": "eventType",
14070
- "description": "The type of the Scene Event. Currently, only entries are supported.",
14811
+ "description": "The type of the Scene Event.",
14071
14812
  "type": {
14072
14813
  "kind": "NON_NULL",
14073
14814
  "name": null,
@@ -14078,6 +14819,16 @@
14078
14819
  }
14079
14820
  },
14080
14821
  "defaultValue": null
14822
+ },
14823
+ {
14824
+ "name": "payment",
14825
+ "description": "EXPERIMENTAL: The simulated Payment lifecycle transition. Required when eventType is `payment`.",
14826
+ "type": {
14827
+ "kind": "INPUT_OBJECT",
14828
+ "name": "ScenePaymentEventInput",
14829
+ "ofType": null
14830
+ },
14831
+ "defaultValue": null
14081
14832
  }
14082
14833
  ],
14083
14834
  "interfaces": null,
@@ -14087,14 +14838,20 @@
14087
14838
  {
14088
14839
  "kind": "ENUM",
14089
14840
  "name": "SceneEventType",
14090
- "description": null,
14841
+ "description": "The kind of thing a Scene Event simulates.",
14091
14842
  "fields": null,
14092
14843
  "inputFields": null,
14093
14844
  "interfaces": null,
14094
14845
  "enumValues": [
14095
14846
  {
14096
14847
  "name": "entry",
14097
- "description": null,
14848
+ "description": "A simulated Ledger Entry.",
14849
+ "isDeprecated": false,
14850
+ "deprecationReason": null
14851
+ },
14852
+ {
14853
+ "name": "payment",
14854
+ "description": "EXPERIMENTAL: One lifecycle transition of a simulated Payment.",
14098
14855
  "isDeprecated": false,
14099
14856
  "deprecationReason": null
14100
14857
  }
@@ -14109,7 +14866,7 @@
14109
14866
  "inputFields": [
14110
14867
  {
14111
14868
  "name": "events",
14112
- "description": "A list of simulated ledger entries that make up the Scene.",
14869
+ "description": "The ordered simulated events that make up the Scene.",
14113
14870
  "type": {
14114
14871
  "kind": "NON_NULL",
14115
14872
  "name": null,
@@ -14142,6 +14899,122 @@
14142
14899
  }
14143
14900
  },
14144
14901
  "defaultValue": null
14902
+ },
14903
+ {
14904
+ "name": "payments",
14905
+ "description": "EXPERIMENTAL: The simulated Payments the Scene's payment events reference.",
14906
+ "type": {
14907
+ "kind": "LIST",
14908
+ "name": null,
14909
+ "ofType": {
14910
+ "kind": "NON_NULL",
14911
+ "name": null,
14912
+ "ofType": {
14913
+ "kind": "INPUT_OBJECT",
14914
+ "name": "ScenePaymentInput",
14915
+ "ofType": null
14916
+ }
14917
+ }
14918
+ },
14919
+ "defaultValue": null
14920
+ }
14921
+ ],
14922
+ "interfaces": null,
14923
+ "enumValues": null,
14924
+ "possibleTypes": null
14925
+ },
14926
+ {
14927
+ "kind": "INPUT_OBJECT",
14928
+ "name": "ScenePaymentEventInput",
14929
+ "description": "EXPERIMENTAL: One lifecycle transition of a simulated Payment, posted as a\npart of a Scene.",
14930
+ "fields": null,
14931
+ "inputFields": [
14932
+ {
14933
+ "name": "event",
14934
+ "description": "The lifecycle transition this Scene Event posts.",
14935
+ "type": {
14936
+ "kind": "NON_NULL",
14937
+ "name": null,
14938
+ "ofType": {
14939
+ "kind": "ENUM",
14940
+ "name": "SchemaPaymentAccountingEventKey",
14941
+ "ofType": null
14942
+ }
14943
+ },
14944
+ "defaultValue": null
14945
+ },
14946
+ {
14947
+ "name": "ik",
14948
+ "description": "The Idempotency Key of the simulated Payment, as declared in scene.payments.",
14949
+ "type": {
14950
+ "kind": "NON_NULL",
14951
+ "name": null,
14952
+ "ofType": {
14953
+ "kind": "SCALAR",
14954
+ "name": "SafeString",
14955
+ "ofType": null
14956
+ }
14957
+ },
14958
+ "defaultValue": null
14959
+ }
14960
+ ],
14961
+ "interfaces": null,
14962
+ "enumValues": null,
14963
+ "possibleTypes": null
14964
+ },
14965
+ {
14966
+ "kind": "INPUT_OBJECT",
14967
+ "name": "ScenePaymentInput",
14968
+ "description": "EXPERIMENTAL: A simulated Payment declared by a Scene. Its lifecycle events\nreference it by `ik`, so one simulated Payment has exactly one set of\nparameters.",
14969
+ "fields": null,
14970
+ "inputFields": [
14971
+ {
14972
+ "name": "ik",
14973
+ "description": "The Idempotency Key of the simulated Payment. Unique within the Scene.",
14974
+ "type": {
14975
+ "kind": "NON_NULL",
14976
+ "name": null,
14977
+ "ofType": {
14978
+ "kind": "SCALAR",
14979
+ "name": "SafeString",
14980
+ "ofType": null
14981
+ }
14982
+ },
14983
+ "defaultValue": null
14984
+ },
14985
+ {
14986
+ "name": "parameters",
14987
+ "description": "Any parameters to be used as inputs to this simulated Payment.",
14988
+ "type": {
14989
+ "kind": "SCALAR",
14990
+ "name": "JSON",
14991
+ "ofType": null
14992
+ },
14993
+ "defaultValue": null
14994
+ },
14995
+ {
14996
+ "name": "type",
14997
+ "description": "The type of the simulated Payment. Must match one of the types provided in schema.payments.types.",
14998
+ "type": {
14999
+ "kind": "NON_NULL",
15000
+ "name": null,
15001
+ "ofType": {
15002
+ "kind": "SCALAR",
15003
+ "name": "SafeString",
15004
+ "ofType": null
15005
+ }
15006
+ },
15007
+ "defaultValue": null
15008
+ },
15009
+ {
15010
+ "name": "typeVersion",
15011
+ "description": "The version of the Payment Type.",
15012
+ "type": {
15013
+ "kind": "SCALAR",
15014
+ "name": "Int",
15015
+ "ofType": null
15016
+ },
15017
+ "defaultValue": null
14145
15018
  }
14146
15019
  ],
14147
15020
  "interfaces": null,
@@ -15391,6 +16264,29 @@
15391
16264
  "enumValues": null,
15392
16265
  "possibleTypes": null
15393
16266
  },
16267
+ {
16268
+ "kind": "ENUM",
16269
+ "name": "SchemaPaymentAccountingEventKey",
16270
+ "description": "EXPERIMENTAL: A lifecycle transition of a Payment.",
16271
+ "fields": null,
16272
+ "inputFields": null,
16273
+ "interfaces": null,
16274
+ "enumValues": [
16275
+ {
16276
+ "name": "initiated",
16277
+ "description": "The payment was captured and is guaranteed to settle.",
16278
+ "isDeprecated": false,
16279
+ "deprecationReason": null
16280
+ },
16281
+ {
16282
+ "name": "settled",
16283
+ "description": "The payment settled.",
16284
+ "isDeprecated": false,
16285
+ "deprecationReason": null
16286
+ }
16287
+ ],
16288
+ "possibleTypes": null
16289
+ },
15394
16290
  {
15395
16291
  "kind": "INPUT_OBJECT",
15396
16292
  "name": "SchemaPaymentAccountingInput",
@@ -15398,8 +16294,8 @@
15398
16294
  "fields": null,
15399
16295
  "inputFields": [
15400
16296
  {
15401
- "name": "needs_payment_method_to_processing",
15402
- "description": "Posted when the payment enters processing. Optional.",
16297
+ "name": "initiated",
16298
+ "description": "Posted when the payment is captured. Optional.",
15403
16299
  "type": {
15404
16300
  "kind": "INPUT_OBJECT",
15405
16301
  "name": "SchemaPaymentEntryInput",
@@ -15408,7 +16304,7 @@
15408
16304
  "defaultValue": null
15409
16305
  },
15410
16306
  {
15411
- "name": "processing_to_settled",
16307
+ "name": "settled",
15412
16308
  "description": "Posted when the payment settles. Every Payment Type must define it.",
15413
16309
  "type": {
15414
16310
  "kind": "NON_NULL",
@@ -15476,7 +16372,7 @@
15476
16372
  "fields": null,
15477
16373
  "inputFields": [
15478
16374
  {
15479
- "name": "penguin",
16375
+ "name": "enabled",
15480
16376
  "description": null,
15481
16377
  "type": {
15482
16378
  "kind": "NON_NULL",