fragment-dev 2.2.0 → 2.3.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": {
@@ -11349,286 +11506,100 @@
11349
11506
  "possibleTypes": null
11350
11507
  },
11351
11508
  {
11352
- "kind": "OBJECT",
11353
- "name": "LedgerPayment",
11354
- "description": "EXPERIMENTAL: A Payment posted to a Ledger.",
11355
- "fields": [
11509
+ "kind": "INPUT_OBJECT",
11510
+ "name": "LedgerTypeFilter",
11511
+ "description": null,
11512
+ "fields": null,
11513
+ "inputFields": [
11356
11514
  {
11357
- "name": "amount",
11358
- "description": "The amount of this Payment, in whole cents.",
11359
- "args": [],
11515
+ "name": "equalTo",
11516
+ "description": null,
11360
11517
  "type": {
11361
- "kind": "NON_NULL",
11362
- "name": null,
11363
- "ofType": {
11364
- "kind": "SCALAR",
11365
- "name": "Int96",
11366
- "ofType": null
11367
- }
11518
+ "kind": "ENUM",
11519
+ "name": "LedgerTypes",
11520
+ "ofType": null
11368
11521
  },
11369
- "isDeprecated": false,
11370
- "deprecationReason": null
11522
+ "defaultValue": null
11371
11523
  },
11372
11524
  {
11373
- "name": "created",
11374
- "description": null,
11375
- "args": [],
11525
+ "name": "in",
11526
+ "description": "Must match one of the values provided. Limited to 100 items maximum.",
11376
11527
  "type": {
11377
- "kind": "NON_NULL",
11528
+ "kind": "LIST",
11378
11529
  "name": null,
11379
11530
  "ofType": {
11380
- "kind": "SCALAR",
11381
- "name": "DateTime",
11382
- "ofType": null
11531
+ "kind": "NON_NULL",
11532
+ "name": null,
11533
+ "ofType": {
11534
+ "kind": "ENUM",
11535
+ "name": "LedgerTypes",
11536
+ "ofType": null
11537
+ }
11383
11538
  }
11384
11539
  },
11540
+ "defaultValue": null
11541
+ }
11542
+ ],
11543
+ "interfaces": null,
11544
+ "enumValues": null,
11545
+ "possibleTypes": null
11546
+ },
11547
+ {
11548
+ "kind": "ENUM",
11549
+ "name": "LedgerTypes",
11550
+ "description": null,
11551
+ "fields": null,
11552
+ "inputFields": null,
11553
+ "interfaces": null,
11554
+ "enumValues": [
11555
+ {
11556
+ "name": "double",
11557
+ "description": null,
11385
11558
  "isDeprecated": false,
11386
11559
  "deprecationReason": null
11387
- },
11560
+ }
11561
+ ],
11562
+ "possibleTypes": null
11563
+ },
11564
+ {
11565
+ "kind": "OBJECT",
11566
+ "name": "LedgersConnection",
11567
+ "description": "A paginated list of Ledgers",
11568
+ "fields": [
11388
11569
  {
11389
- "name": "ik",
11390
- "description": "The [Idempotency Key](https://fragment.dev/api-reference/api-overview#idempotency) the Payment was created with.",
11570
+ "name": "nodes",
11571
+ "description": "The current page of results",
11391
11572
  "args": [],
11392
11573
  "type": {
11393
11574
  "kind": "NON_NULL",
11394
11575
  "name": null,
11395
11576
  "ofType": {
11396
- "kind": "SCALAR",
11397
- "name": "SafeString",
11398
- "ofType": null
11577
+ "kind": "LIST",
11578
+ "name": null,
11579
+ "ofType": {
11580
+ "kind": "NON_NULL",
11581
+ "name": null,
11582
+ "ofType": {
11583
+ "kind": "OBJECT",
11584
+ "name": "Ledger",
11585
+ "ofType": null
11586
+ }
11587
+ }
11399
11588
  }
11400
11589
  },
11401
11590
  "isDeprecated": false,
11402
11591
  "deprecationReason": null
11403
11592
  },
11404
11593
  {
11405
- "name": "ledgerId",
11406
- "description": "The Ledger this Payment belongs to.",
11594
+ "name": "pageInfo",
11595
+ "description": "The [pagination info](https://fragment.dev/api-reference/api-types#connection-types-pageinfo) for this list",
11407
11596
  "args": [],
11408
11597
  "type": {
11409
11598
  "kind": "NON_NULL",
11410
11599
  "name": null,
11411
11600
  "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",
11625
- "args": [],
11626
- "type": {
11627
- "kind": "NON_NULL",
11628
- "name": null,
11629
- "ofType": {
11630
- "kind": "OBJECT",
11631
- "name": "PageInfo",
11601
+ "kind": "OBJECT",
11602
+ "name": "PageInfo",
11632
11603
  "ofType": null
11633
11604
  }
11634
11605
  },
@@ -12054,7 +12025,7 @@
12054
12025
  },
12055
12026
  {
12056
12027
  "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.",
12028
+ "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
12029
  "args": [
12059
12030
  {
12060
12031
  "name": "entries",
@@ -12539,6 +12510,61 @@
12539
12510
  "isDeprecated": false,
12540
12511
  "deprecationReason": null
12541
12512
  },
12513
+ {
12514
+ "name": "instantiateLedgerAccount",
12515
+ "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.",
12516
+ "args": [
12517
+ {
12518
+ "name": "ledger",
12519
+ "description": "The Ledger whose Schema defines the account.",
12520
+ "type": {
12521
+ "kind": "NON_NULL",
12522
+ "name": null,
12523
+ "ofType": {
12524
+ "kind": "INPUT_OBJECT",
12525
+ "name": "LedgerMatchInput",
12526
+ "ofType": null
12527
+ }
12528
+ },
12529
+ "defaultValue": null
12530
+ },
12531
+ {
12532
+ "name": "parameters",
12533
+ "description": "Values for every parameter the account's template references: name, currency, and linked account fields.",
12534
+ "type": {
12535
+ "kind": "SCALAR",
12536
+ "name": "Parameters",
12537
+ "ofType": null
12538
+ },
12539
+ "defaultValue": null
12540
+ },
12541
+ {
12542
+ "name": "path",
12543
+ "description": "The fully instantiated path of the account, e.g. assets/customer:cust-1. Must not contain placeholders.",
12544
+ "type": {
12545
+ "kind": "NON_NULL",
12546
+ "name": null,
12547
+ "ofType": {
12548
+ "kind": "SCALAR",
12549
+ "name": "String",
12550
+ "ofType": null
12551
+ }
12552
+ },
12553
+ "defaultValue": null
12554
+ }
12555
+ ],
12556
+ "type": {
12557
+ "kind": "NON_NULL",
12558
+ "name": null,
12559
+ "ofType": {
12560
+ "kind": "UNION",
12561
+ "name": "InstantiateLedgerAccountResponse",
12562
+ "ofType": null
12563
+ }
12564
+ },
12565
+ "isDeprecated": false,
12566
+ "deprecationReason": null
12567
+ },
12542
12568
  {
12543
12569
  "name": "migrateLedgerEntry",
12544
12570
  "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",
@@ -13000,11 +13026,27 @@
13000
13026
  {
13001
13027
  "kind": "OBJECT",
13002
13028
  "name": "Payment",
13003
- "description": null,
13029
+ "description": "EXPERIMENTAL: A Payment posted to a Ledger.",
13004
13030
  "fields": [
13031
+ {
13032
+ "name": "amount",
13033
+ "description": "The amount of this Payment, in whole cents.",
13034
+ "args": [],
13035
+ "type": {
13036
+ "kind": "NON_NULL",
13037
+ "name": null,
13038
+ "ofType": {
13039
+ "kind": "SCALAR",
13040
+ "name": "Int96",
13041
+ "ofType": null
13042
+ }
13043
+ },
13044
+ "isDeprecated": false,
13045
+ "deprecationReason": null
13046
+ },
13005
13047
  {
13006
13048
  "name": "clientSecret",
13007
- "description": "The secret handed to the payments SDK to render the payment method capture.",
13049
+ "description": "The credential the payments SDK presents to `confirmPayment`.",
13008
13050
  "args": [],
13009
13051
  "type": {
13010
13052
  "kind": "NON_NULL",
@@ -13018,6 +13060,118 @@
13018
13060
  "isDeprecated": false,
13019
13061
  "deprecationReason": null
13020
13062
  },
13063
+ {
13064
+ "name": "created",
13065
+ "description": null,
13066
+ "args": [],
13067
+ "type": {
13068
+ "kind": "NON_NULL",
13069
+ "name": null,
13070
+ "ofType": {
13071
+ "kind": "SCALAR",
13072
+ "name": "DateTime",
13073
+ "ofType": null
13074
+ }
13075
+ },
13076
+ "isDeprecated": false,
13077
+ "deprecationReason": null
13078
+ },
13079
+ {
13080
+ "name": "currency",
13081
+ "description": "The currency this Payment is denominated in.",
13082
+ "args": [],
13083
+ "type": {
13084
+ "kind": "NON_NULL",
13085
+ "name": null,
13086
+ "ofType": {
13087
+ "kind": "OBJECT",
13088
+ "name": "PaymentCurrency",
13089
+ "ofType": null
13090
+ }
13091
+ },
13092
+ "isDeprecated": false,
13093
+ "deprecationReason": null
13094
+ },
13095
+ {
13096
+ "name": "id",
13097
+ "description": "The ID of this Payment.",
13098
+ "args": [],
13099
+ "type": {
13100
+ "kind": "NON_NULL",
13101
+ "name": null,
13102
+ "ofType": {
13103
+ "kind": "SCALAR",
13104
+ "name": "ID",
13105
+ "ofType": null
13106
+ }
13107
+ },
13108
+ "isDeprecated": false,
13109
+ "deprecationReason": null
13110
+ },
13111
+ {
13112
+ "name": "ik",
13113
+ "description": "The [Idempotency Key](https://fragment.dev/api-reference/api-overview#idempotency) the Payment was created with.",
13114
+ "args": [],
13115
+ "type": {
13116
+ "kind": "NON_NULL",
13117
+ "name": null,
13118
+ "ofType": {
13119
+ "kind": "SCALAR",
13120
+ "name": "SafeString",
13121
+ "ofType": null
13122
+ }
13123
+ },
13124
+ "isDeprecated": false,
13125
+ "deprecationReason": null
13126
+ },
13127
+ {
13128
+ "name": "ledger",
13129
+ "description": "The Ledger that this Payment belongs to.",
13130
+ "args": [],
13131
+ "type": {
13132
+ "kind": "NON_NULL",
13133
+ "name": null,
13134
+ "ofType": {
13135
+ "kind": "OBJECT",
13136
+ "name": "Ledger",
13137
+ "ofType": null
13138
+ }
13139
+ },
13140
+ "isDeprecated": false,
13141
+ "deprecationReason": null
13142
+ },
13143
+ {
13144
+ "name": "mode",
13145
+ "description": "The mode of this Payment. Can be `sandbox` or `production`.",
13146
+ "args": [],
13147
+ "type": {
13148
+ "kind": "NON_NULL",
13149
+ "name": null,
13150
+ "ofType": {
13151
+ "kind": "ENUM",
13152
+ "name": "PaymentMode",
13153
+ "ofType": null
13154
+ }
13155
+ },
13156
+ "isDeprecated": false,
13157
+ "deprecationReason": null
13158
+ },
13159
+ {
13160
+ "name": "parameters",
13161
+ "description": "Parameters the Payment was created with.",
13162
+ "args": [],
13163
+ "type": {
13164
+ "kind": "NON_NULL",
13165
+ "name": null,
13166
+ "ofType": {
13167
+ "kind": "SCALAR",
13168
+ "name": "JSON",
13169
+ "ofType": null
13170
+ }
13171
+ },
13172
+ "isDeprecated": false,
13173
+ "deprecationReason": null
13174
+ },
13021
13175
  {
13022
13176
  "name": "status",
13023
13177
  "description": "The status of this Payment.",
@@ -13033,6 +13187,97 @@
13033
13187
  },
13034
13188
  "isDeprecated": false,
13035
13189
  "deprecationReason": null
13190
+ },
13191
+ {
13192
+ "name": "type",
13193
+ "description": "The Payment Type in the Schema this Payment was created from.",
13194
+ "args": [],
13195
+ "type": {
13196
+ "kind": "NON_NULL",
13197
+ "name": null,
13198
+ "ofType": {
13199
+ "kind": "SCALAR",
13200
+ "name": "SafeString",
13201
+ "ofType": null
13202
+ }
13203
+ },
13204
+ "isDeprecated": false,
13205
+ "deprecationReason": null
13206
+ },
13207
+ {
13208
+ "name": "typeVersion",
13209
+ "description": "The version of the Payment Type.",
13210
+ "args": [],
13211
+ "type": {
13212
+ "kind": "NON_NULL",
13213
+ "name": null,
13214
+ "ofType": {
13215
+ "kind": "SCALAR",
13216
+ "name": "Int",
13217
+ "ofType": null
13218
+ }
13219
+ },
13220
+ "isDeprecated": false,
13221
+ "deprecationReason": null
13222
+ }
13223
+ ],
13224
+ "inputFields": null,
13225
+ "interfaces": [],
13226
+ "enumValues": null,
13227
+ "possibleTypes": null
13228
+ },
13229
+ {
13230
+ "kind": "OBJECT",
13231
+ "name": "PaymentCurrency",
13232
+ "description": "EXPERIMENTAL: The currency a Payment is denominated in.",
13233
+ "fields": [
13234
+ {
13235
+ "name": "code",
13236
+ "description": "The currency code.",
13237
+ "args": [],
13238
+ "type": {
13239
+ "kind": "NON_NULL",
13240
+ "name": null,
13241
+ "ofType": {
13242
+ "kind": "ENUM",
13243
+ "name": "PaymentCurrencyCode",
13244
+ "ofType": null
13245
+ }
13246
+ },
13247
+ "isDeprecated": false,
13248
+ "deprecationReason": null
13249
+ },
13250
+ {
13251
+ "name": "name",
13252
+ "description": "A human readable name for the currency (e.g. United States Dollar). This is used for display purposes.",
13253
+ "args": [],
13254
+ "type": {
13255
+ "kind": "NON_NULL",
13256
+ "name": null,
13257
+ "ofType": {
13258
+ "kind": "SCALAR",
13259
+ "name": "String",
13260
+ "ofType": null
13261
+ }
13262
+ },
13263
+ "isDeprecated": false,
13264
+ "deprecationReason": null
13265
+ },
13266
+ {
13267
+ "name": "precision",
13268
+ "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.",
13269
+ "args": [],
13270
+ "type": {
13271
+ "kind": "NON_NULL",
13272
+ "name": null,
13273
+ "ofType": {
13274
+ "kind": "SCALAR",
13275
+ "name": "Int",
13276
+ "ofType": null
13277
+ }
13278
+ },
13279
+ "isDeprecated": false,
13280
+ "deprecationReason": null
13036
13281
  }
13037
13282
  ],
13038
13283
  "inputFields": null,
@@ -13040,6 +13285,85 @@
13040
13285
  "enumValues": null,
13041
13286
  "possibleTypes": null
13042
13287
  },
13288
+ {
13289
+ "kind": "ENUM",
13290
+ "name": "PaymentCurrencyCode",
13291
+ "description": "EXPERIMENTAL — subject to change.\n\nThe currencies a Payment can be denominated in.",
13292
+ "fields": null,
13293
+ "inputFields": null,
13294
+ "interfaces": null,
13295
+ "enumValues": [
13296
+ {
13297
+ "name": "USD",
13298
+ "description": null,
13299
+ "isDeprecated": false,
13300
+ "deprecationReason": null
13301
+ }
13302
+ ],
13303
+ "possibleTypes": null
13304
+ },
13305
+ {
13306
+ "kind": "INPUT_OBJECT",
13307
+ "name": "PaymentMatchInput",
13308
+ "description": "Specify a Ledger Payment by using `ledger` and `ik`.",
13309
+ "fields": null,
13310
+ "inputFields": [
13311
+ {
13312
+ "name": "ik",
13313
+ "description": "The Idempotency Key the Payment was created with.",
13314
+ "type": {
13315
+ "kind": "NON_NULL",
13316
+ "name": null,
13317
+ "ofType": {
13318
+ "kind": "SCALAR",
13319
+ "name": "SafeString",
13320
+ "ofType": null
13321
+ }
13322
+ },
13323
+ "defaultValue": null
13324
+ },
13325
+ {
13326
+ "name": "ledger",
13327
+ "description": "The Ledger the Payment belongs to.",
13328
+ "type": {
13329
+ "kind": "NON_NULL",
13330
+ "name": null,
13331
+ "ofType": {
13332
+ "kind": "INPUT_OBJECT",
13333
+ "name": "LedgerMatchInput",
13334
+ "ofType": null
13335
+ }
13336
+ },
13337
+ "defaultValue": null
13338
+ }
13339
+ ],
13340
+ "interfaces": null,
13341
+ "enumValues": null,
13342
+ "possibleTypes": null
13343
+ },
13344
+ {
13345
+ "kind": "ENUM",
13346
+ "name": "PaymentMode",
13347
+ "description": "Mode of a Payment.",
13348
+ "fields": null,
13349
+ "inputFields": null,
13350
+ "interfaces": null,
13351
+ "enumValues": [
13352
+ {
13353
+ "name": "production",
13354
+ "description": null,
13355
+ "isDeprecated": false,
13356
+ "deprecationReason": null
13357
+ },
13358
+ {
13359
+ "name": "sandbox",
13360
+ "description": null,
13361
+ "isDeprecated": false,
13362
+ "deprecationReason": null
13363
+ }
13364
+ ],
13365
+ "possibleTypes": null
13366
+ },
13043
13367
  {
13044
13368
  "kind": "ENUM",
13045
13369
  "name": "PaymentStatus",
@@ -13048,6 +13372,12 @@
13048
13372
  "inputFields": null,
13049
13373
  "interfaces": null,
13050
13374
  "enumValues": [
13375
+ {
13376
+ "name": "approved",
13377
+ "description": null,
13378
+ "isDeprecated": false,
13379
+ "deprecationReason": null
13380
+ },
13051
13381
  {
13052
13382
  "name": "needs_payment_method",
13053
13383
  "description": null,
@@ -13069,6 +13399,127 @@
13069
13399
  ],
13070
13400
  "possibleTypes": null
13071
13401
  },
13402
+ {
13403
+ "kind": "INPUT_OBJECT",
13404
+ "name": "PaymentStatusFilter",
13405
+ "description": "EXPERIMENTAL: Filters a result set by Payment status.",
13406
+ "fields": null,
13407
+ "inputFields": [
13408
+ {
13409
+ "name": "equalTo",
13410
+ "description": "Results must have the specified status.",
13411
+ "type": {
13412
+ "kind": "ENUM",
13413
+ "name": "PaymentStatus",
13414
+ "ofType": null
13415
+ },
13416
+ "defaultValue": null
13417
+ },
13418
+ {
13419
+ "name": "in",
13420
+ "description": "Results can have any of the specified statuses.",
13421
+ "type": {
13422
+ "kind": "LIST",
13423
+ "name": null,
13424
+ "ofType": {
13425
+ "kind": "NON_NULL",
13426
+ "name": null,
13427
+ "ofType": {
13428
+ "kind": "ENUM",
13429
+ "name": "PaymentStatus",
13430
+ "ofType": null
13431
+ }
13432
+ }
13433
+ },
13434
+ "defaultValue": null
13435
+ }
13436
+ ],
13437
+ "interfaces": null,
13438
+ "enumValues": null,
13439
+ "possibleTypes": null
13440
+ },
13441
+ {
13442
+ "kind": "OBJECT",
13443
+ "name": "PaymentsConnection",
13444
+ "description": "EXPERIMENTAL: A paginated list of Payments.",
13445
+ "fields": [
13446
+ {
13447
+ "name": "nodes",
13448
+ "description": "The current page of results.",
13449
+ "args": [],
13450
+ "type": {
13451
+ "kind": "NON_NULL",
13452
+ "name": null,
13453
+ "ofType": {
13454
+ "kind": "LIST",
13455
+ "name": null,
13456
+ "ofType": {
13457
+ "kind": "NON_NULL",
13458
+ "name": null,
13459
+ "ofType": {
13460
+ "kind": "OBJECT",
13461
+ "name": "Payment",
13462
+ "ofType": null
13463
+ }
13464
+ }
13465
+ }
13466
+ },
13467
+ "isDeprecated": false,
13468
+ "deprecationReason": null
13469
+ },
13470
+ {
13471
+ "name": "pageInfo",
13472
+ "description": "The pagination info for this list.",
13473
+ "args": [],
13474
+ "type": {
13475
+ "kind": "NON_NULL",
13476
+ "name": null,
13477
+ "ofType": {
13478
+ "kind": "OBJECT",
13479
+ "name": "PageInfo",
13480
+ "ofType": null
13481
+ }
13482
+ },
13483
+ "isDeprecated": false,
13484
+ "deprecationReason": null
13485
+ }
13486
+ ],
13487
+ "inputFields": null,
13488
+ "interfaces": [],
13489
+ "enumValues": null,
13490
+ "possibleTypes": null
13491
+ },
13492
+ {
13493
+ "kind": "INPUT_OBJECT",
13494
+ "name": "PaymentsFilterSet",
13495
+ "description": "EXPERIMENTAL: The filters that can be applied to a list of Payments.",
13496
+ "fields": null,
13497
+ "inputFields": [
13498
+ {
13499
+ "name": "created",
13500
+ "description": "Use this filter to filter Payments by their `created` timestamp.",
13501
+ "type": {
13502
+ "kind": "INPUT_OBJECT",
13503
+ "name": "DateTimeFilter",
13504
+ "ofType": null
13505
+ },
13506
+ "defaultValue": null
13507
+ },
13508
+ {
13509
+ "name": "status",
13510
+ "description": "Use this to filter Payments by their status.",
13511
+ "type": {
13512
+ "kind": "INPUT_OBJECT",
13513
+ "name": "PaymentStatusFilter",
13514
+ "ofType": null
13515
+ },
13516
+ "defaultValue": null
13517
+ }
13518
+ ],
13519
+ "interfaces": null,
13520
+ "enumValues": null,
13521
+ "possibleTypes": null
13522
+ },
13072
13523
  {
13073
13524
  "kind": "SCALAR",
13074
13525
  "name": "Period",
@@ -13364,97 +13815,25 @@
13364
13815
  ],
13365
13816
  "type": {
13366
13817
  "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",
13818
+ "name": "LedgerEntryGroup",
13426
13819
  "ofType": null
13427
13820
  },
13428
13821
  "isDeprecated": false,
13429
13822
  "deprecationReason": null
13430
13823
  },
13431
13824
  {
13432
- "name": "ledgerPayment",
13433
- "description": "EXPERIMENTAL: Get a single Payment by its Idempotency Key.",
13825
+ "name": "ledgerEntryHistory",
13826
+ "description": "Get the reversal history of a Ledger Entry.",
13434
13827
  "args": [
13435
13828
  {
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.",
13829
+ "name": "ledgerEntry",
13830
+ "description": "An object specifying the ID or IK of the Ledger Entry's reversal history to query.",
13452
13831
  "type": {
13453
13832
  "kind": "NON_NULL",
13454
13833
  "name": null,
13455
13834
  "ofType": {
13456
13835
  "kind": "INPUT_OBJECT",
13457
- "name": "LedgerMatchInput",
13836
+ "name": "LedgerEntryMatchInput",
13458
13837
  "ofType": null
13459
13838
  }
13460
13839
  },
@@ -13462,66 +13841,30 @@
13462
13841
  }
13463
13842
  ],
13464
13843
  "type": {
13465
- "kind": "OBJECT",
13466
- "name": "LedgerPayment",
13467
- "ofType": null
13844
+ "kind": "NON_NULL",
13845
+ "name": null,
13846
+ "ofType": {
13847
+ "kind": "OBJECT",
13848
+ "name": "LedgerEntriesConnection",
13849
+ "ofType": null
13850
+ }
13468
13851
  },
13469
13852
  "isDeprecated": false,
13470
13853
  "deprecationReason": null
13471
13854
  },
13472
13855
  {
13473
- "name": "ledgerPayments",
13474
- "description": "EXPERIMENTAL: List the Payments on a Ledger, most recent first.",
13856
+ "name": "ledgerLine",
13857
+ "description": "Get LedgerLine by ID",
13475
13858
  "args": [
13476
13859
  {
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.",
13860
+ "name": "ledgerLine",
13861
+ "description": "An object specifying the ID of the LedgerLine you want to query",
13519
13862
  "type": {
13520
13863
  "kind": "NON_NULL",
13521
13864
  "name": null,
13522
13865
  "ofType": {
13523
13866
  "kind": "INPUT_OBJECT",
13524
- "name": "LedgerMatchInput",
13867
+ "name": "LedgerLineMatchInput",
13525
13868
  "ofType": null
13526
13869
  }
13527
13870
  },
@@ -13529,13 +13872,9 @@
13529
13872
  }
13530
13873
  ],
13531
13874
  "type": {
13532
- "kind": "NON_NULL",
13533
- "name": null,
13534
- "ofType": {
13535
- "kind": "OBJECT",
13536
- "name": "LedgerPaymentsConnection",
13537
- "ofType": null
13538
- }
13875
+ "kind": "OBJECT",
13876
+ "name": "LedgerLine",
13877
+ "ofType": null
13539
13878
  },
13540
13879
  "isDeprecated": false,
13541
13880
  "deprecationReason": null
@@ -13650,6 +13989,33 @@
13650
13989
  "isDeprecated": false,
13651
13990
  "deprecationReason": null
13652
13991
  },
13992
+ {
13993
+ "name": "payment",
13994
+ "description": "EXPERIMENTAL: Get a single Payment by its Idempotency Key.",
13995
+ "args": [
13996
+ {
13997
+ "name": "payment",
13998
+ "description": "The Ledger Payment to query.",
13999
+ "type": {
14000
+ "kind": "NON_NULL",
14001
+ "name": null,
14002
+ "ofType": {
14003
+ "kind": "INPUT_OBJECT",
14004
+ "name": "PaymentMatchInput",
14005
+ "ofType": null
14006
+ }
14007
+ },
14008
+ "defaultValue": null
14009
+ }
14010
+ ],
14011
+ "type": {
14012
+ "kind": "OBJECT",
14013
+ "name": "Payment",
14014
+ "ofType": null
14015
+ },
14016
+ "isDeprecated": false,
14017
+ "deprecationReason": null
14018
+ },
13653
14019
  {
13654
14020
  "name": "schema",
13655
14021
  "description": "Get a Schema by key.",
@@ -14053,21 +14419,17 @@
14053
14419
  "inputFields": [
14054
14420
  {
14055
14421
  "name": "entry",
14056
- "description": "The simulated Ledger Entry.",
14422
+ "description": "The simulated Ledger Entry. Required when eventType is `entry`.",
14057
14423
  "type": {
14058
- "kind": "NON_NULL",
14059
- "name": null,
14060
- "ofType": {
14061
- "kind": "INPUT_OBJECT",
14062
- "name": "SceneEntryInput",
14063
- "ofType": null
14064
- }
14424
+ "kind": "INPUT_OBJECT",
14425
+ "name": "SceneEntryInput",
14426
+ "ofType": null
14065
14427
  },
14066
14428
  "defaultValue": null
14067
14429
  },
14068
14430
  {
14069
14431
  "name": "eventType",
14070
- "description": "The type of the Scene Event. Currently, only entries are supported.",
14432
+ "description": "The type of the Scene Event.",
14071
14433
  "type": {
14072
14434
  "kind": "NON_NULL",
14073
14435
  "name": null,
@@ -14078,6 +14440,16 @@
14078
14440
  }
14079
14441
  },
14080
14442
  "defaultValue": null
14443
+ },
14444
+ {
14445
+ "name": "payment",
14446
+ "description": "EXPERIMENTAL: The simulated Payment lifecycle transition. Required when eventType is `payment`.",
14447
+ "type": {
14448
+ "kind": "INPUT_OBJECT",
14449
+ "name": "ScenePaymentEventInput",
14450
+ "ofType": null
14451
+ },
14452
+ "defaultValue": null
14081
14453
  }
14082
14454
  ],
14083
14455
  "interfaces": null,
@@ -14087,14 +14459,20 @@
14087
14459
  {
14088
14460
  "kind": "ENUM",
14089
14461
  "name": "SceneEventType",
14090
- "description": null,
14462
+ "description": "The kind of thing a Scene Event simulates.",
14091
14463
  "fields": null,
14092
14464
  "inputFields": null,
14093
14465
  "interfaces": null,
14094
14466
  "enumValues": [
14095
14467
  {
14096
14468
  "name": "entry",
14097
- "description": null,
14469
+ "description": "A simulated Ledger Entry.",
14470
+ "isDeprecated": false,
14471
+ "deprecationReason": null
14472
+ },
14473
+ {
14474
+ "name": "payment",
14475
+ "description": "EXPERIMENTAL: One lifecycle transition of a simulated Payment.",
14098
14476
  "isDeprecated": false,
14099
14477
  "deprecationReason": null
14100
14478
  }
@@ -14109,7 +14487,7 @@
14109
14487
  "inputFields": [
14110
14488
  {
14111
14489
  "name": "events",
14112
- "description": "A list of simulated ledger entries that make up the Scene.",
14490
+ "description": "The ordered simulated events that make up the Scene.",
14113
14491
  "type": {
14114
14492
  "kind": "NON_NULL",
14115
14493
  "name": null,
@@ -14142,6 +14520,122 @@
14142
14520
  }
14143
14521
  },
14144
14522
  "defaultValue": null
14523
+ },
14524
+ {
14525
+ "name": "payments",
14526
+ "description": "EXPERIMENTAL: The simulated Payments the Scene's payment events reference.",
14527
+ "type": {
14528
+ "kind": "LIST",
14529
+ "name": null,
14530
+ "ofType": {
14531
+ "kind": "NON_NULL",
14532
+ "name": null,
14533
+ "ofType": {
14534
+ "kind": "INPUT_OBJECT",
14535
+ "name": "ScenePaymentInput",
14536
+ "ofType": null
14537
+ }
14538
+ }
14539
+ },
14540
+ "defaultValue": null
14541
+ }
14542
+ ],
14543
+ "interfaces": null,
14544
+ "enumValues": null,
14545
+ "possibleTypes": null
14546
+ },
14547
+ {
14548
+ "kind": "INPUT_OBJECT",
14549
+ "name": "ScenePaymentEventInput",
14550
+ "description": "EXPERIMENTAL: One lifecycle transition of a simulated Payment, posted as a\npart of a Scene.",
14551
+ "fields": null,
14552
+ "inputFields": [
14553
+ {
14554
+ "name": "event",
14555
+ "description": "The lifecycle transition this Scene Event posts.",
14556
+ "type": {
14557
+ "kind": "NON_NULL",
14558
+ "name": null,
14559
+ "ofType": {
14560
+ "kind": "ENUM",
14561
+ "name": "SchemaPaymentAccountingEventKey",
14562
+ "ofType": null
14563
+ }
14564
+ },
14565
+ "defaultValue": null
14566
+ },
14567
+ {
14568
+ "name": "ik",
14569
+ "description": "The Idempotency Key of the simulated Payment, as declared in scene.payments.",
14570
+ "type": {
14571
+ "kind": "NON_NULL",
14572
+ "name": null,
14573
+ "ofType": {
14574
+ "kind": "SCALAR",
14575
+ "name": "SafeString",
14576
+ "ofType": null
14577
+ }
14578
+ },
14579
+ "defaultValue": null
14580
+ }
14581
+ ],
14582
+ "interfaces": null,
14583
+ "enumValues": null,
14584
+ "possibleTypes": null
14585
+ },
14586
+ {
14587
+ "kind": "INPUT_OBJECT",
14588
+ "name": "ScenePaymentInput",
14589
+ "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.",
14590
+ "fields": null,
14591
+ "inputFields": [
14592
+ {
14593
+ "name": "ik",
14594
+ "description": "The Idempotency Key of the simulated Payment. Unique within the Scene.",
14595
+ "type": {
14596
+ "kind": "NON_NULL",
14597
+ "name": null,
14598
+ "ofType": {
14599
+ "kind": "SCALAR",
14600
+ "name": "SafeString",
14601
+ "ofType": null
14602
+ }
14603
+ },
14604
+ "defaultValue": null
14605
+ },
14606
+ {
14607
+ "name": "parameters",
14608
+ "description": "Any parameters to be used as inputs to this simulated Payment.",
14609
+ "type": {
14610
+ "kind": "SCALAR",
14611
+ "name": "JSON",
14612
+ "ofType": null
14613
+ },
14614
+ "defaultValue": null
14615
+ },
14616
+ {
14617
+ "name": "type",
14618
+ "description": "The type of the simulated Payment. Must match one of the types provided in schema.payments.types.",
14619
+ "type": {
14620
+ "kind": "NON_NULL",
14621
+ "name": null,
14622
+ "ofType": {
14623
+ "kind": "SCALAR",
14624
+ "name": "SafeString",
14625
+ "ofType": null
14626
+ }
14627
+ },
14628
+ "defaultValue": null
14629
+ },
14630
+ {
14631
+ "name": "typeVersion",
14632
+ "description": "The version of the Payment Type.",
14633
+ "type": {
14634
+ "kind": "SCALAR",
14635
+ "name": "Int",
14636
+ "ofType": null
14637
+ },
14638
+ "defaultValue": null
14145
14639
  }
14146
14640
  ],
14147
14641
  "interfaces": null,
@@ -15391,6 +15885,29 @@
15391
15885
  "enumValues": null,
15392
15886
  "possibleTypes": null
15393
15887
  },
15888
+ {
15889
+ "kind": "ENUM",
15890
+ "name": "SchemaPaymentAccountingEventKey",
15891
+ "description": "EXPERIMENTAL: A lifecycle transition of a Payment.",
15892
+ "fields": null,
15893
+ "inputFields": null,
15894
+ "interfaces": null,
15895
+ "enumValues": [
15896
+ {
15897
+ "name": "initiated",
15898
+ "description": "The payment was approved and is guaranteed to settle.",
15899
+ "isDeprecated": false,
15900
+ "deprecationReason": null
15901
+ },
15902
+ {
15903
+ "name": "settled",
15904
+ "description": "The payment settled.",
15905
+ "isDeprecated": false,
15906
+ "deprecationReason": null
15907
+ }
15908
+ ],
15909
+ "possibleTypes": null
15910
+ },
15394
15911
  {
15395
15912
  "kind": "INPUT_OBJECT",
15396
15913
  "name": "SchemaPaymentAccountingInput",
@@ -15398,8 +15915,8 @@
15398
15915
  "fields": null,
15399
15916
  "inputFields": [
15400
15917
  {
15401
- "name": "needs_payment_method_to_processing",
15402
- "description": "Posted when the payment enters processing. Optional.",
15918
+ "name": "initiated",
15919
+ "description": "Posted when the payment is approved. Optional.",
15403
15920
  "type": {
15404
15921
  "kind": "INPUT_OBJECT",
15405
15922
  "name": "SchemaPaymentEntryInput",
@@ -15408,7 +15925,7 @@
15408
15925
  "defaultValue": null
15409
15926
  },
15410
15927
  {
15411
- "name": "processing_to_settled",
15928
+ "name": "settled",
15412
15929
  "description": "Posted when the payment settles. Every Payment Type must define it.",
15413
15930
  "type": {
15414
15931
  "kind": "NON_NULL",
@@ -15476,7 +15993,7 @@
15476
15993
  "fields": null,
15477
15994
  "inputFields": [
15478
15995
  {
15479
- "name": "penguin",
15996
+ "name": "enabled",
15480
15997
  "description": null,
15481
15998
  "type": {
15482
15999
  "kind": "NON_NULL",