fragment-dev 2.1.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.
@@ -1339,6 +1339,55 @@
1339
1339
  "enumValues": null,
1340
1340
  "possibleTypes": null
1341
1341
  },
1342
+ {
1343
+ "kind": "INPUT_OBJECT",
1344
+ "name": "CreatePaymentInput",
1345
+ "description": "EXPERIMENTAL: The Payment to create.",
1346
+ "fields": null,
1347
+ "inputFields": [
1348
+ {
1349
+ "name": "parameters",
1350
+ "description": "Parameters for the specific Payment Type. Must be a key-value pair of strings. Must be a flat object: nested objects and arrays are rejected.",
1351
+ "type": {
1352
+ "kind": "SCALAR",
1353
+ "name": "JSON",
1354
+ "ofType": null
1355
+ },
1356
+ "defaultValue": null
1357
+ },
1358
+ {
1359
+ "name": "type",
1360
+ "description": "The type of the Payment. Must be defined in the Schema linked to the Ledger.",
1361
+ "type": {
1362
+ "kind": "NON_NULL",
1363
+ "name": null,
1364
+ "ofType": {
1365
+ "kind": "SCALAR",
1366
+ "name": "SafeString",
1367
+ "ofType": null
1368
+ }
1369
+ },
1370
+ "defaultValue": null
1371
+ },
1372
+ {
1373
+ "name": "typeVersion",
1374
+ "description": "The version of the Payment Type.",
1375
+ "type": {
1376
+ "kind": "NON_NULL",
1377
+ "name": null,
1378
+ "ofType": {
1379
+ "kind": "SCALAR",
1380
+ "name": "Int",
1381
+ "ofType": null
1382
+ }
1383
+ },
1384
+ "defaultValue": null
1385
+ }
1386
+ ],
1387
+ "interfaces": null,
1388
+ "enumValues": null,
1389
+ "possibleTypes": null
1390
+ },
1342
1391
  {
1343
1392
  "kind": "UNION",
1344
1393
  "name": "CreatePaymentResponse",
@@ -1355,16 +1404,43 @@
1355
1404
  },
1356
1405
  {
1357
1406
  "kind": "OBJECT",
1358
- "name": "InternalError",
1407
+ "name": "CreatePaymentResult",
1359
1408
  "ofType": null
1360
1409
  },
1361
1410
  {
1362
1411
  "kind": "OBJECT",
1363
- "name": "Payment",
1412
+ "name": "InternalError",
1364
1413
  "ofType": null
1365
1414
  }
1366
1415
  ]
1367
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
+ },
1368
1444
  {
1369
1445
  "kind": "OBJECT",
1370
1446
  "name": "Currency",
@@ -2384,6 +2460,12 @@
2384
2460
  "isDeprecated": false,
2385
2461
  "deprecationReason": null
2386
2462
  },
2463
+ {
2464
+ "name": "SLE",
2465
+ "description": null,
2466
+ "isDeprecated": false,
2467
+ "deprecationReason": null
2468
+ },
2387
2469
  {
2388
2470
  "name": "SLL",
2389
2471
  "description": null,
@@ -4530,6 +4612,59 @@
4530
4612
  "enumValues": null,
4531
4613
  "possibleTypes": null
4532
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
+ },
4533
4668
  {
4534
4669
  "kind": "SCALAR",
4535
4670
  "name": "Int",
@@ -5009,7 +5144,7 @@
5009
5144
  },
5010
5145
  {
5011
5146
  "name": "filter",
5012
- "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).",
5013
5148
  "type": {
5014
5149
  "kind": "INPUT_OBJECT",
5015
5150
  "name": "LedgerAccountsFilterSet",
@@ -5426,6 +5561,73 @@
5426
5561
  "isDeprecated": false,
5427
5562
  "deprecationReason": null
5428
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
+ },
5429
5631
  {
5430
5632
  "name": "schema",
5431
5633
  "description": "Schema key associated with this Ledger.",
@@ -7098,7 +7300,7 @@
7098
7300
  "inputFields": [
7099
7301
  {
7100
7302
  "name": "ownBalance",
7101
- "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.",
7102
7304
  "type": {
7103
7305
  "kind": "INPUT_OBJECT",
7104
7306
  "name": "Int96ConditionInput",
@@ -7108,7 +7310,7 @@
7108
7310
  },
7109
7311
  {
7110
7312
  "name": "totalBalance",
7111
- "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.",
7112
7314
  "type": {
7113
7315
  "kind": "INPUT_OBJECT",
7114
7316
  "name": "Int96ConditionInput",
@@ -7617,7 +7819,7 @@
7617
7819
  "description": "Payment configuration of a Ledger Account.",
7618
7820
  "fields": [
7619
7821
  {
7620
- "name": "penguin",
7822
+ "name": "enabled",
7621
7823
  "description": null,
7622
7824
  "args": [],
7623
7825
  "type": {
@@ -9936,7 +10138,7 @@
9936
10138
  },
9937
10139
  {
9938
10140
  "name": "typeVersion",
9939
- "description": "Experimental: This field is reserved for an upcoming feature and is not yet supported.",
10141
+ "description": "The version of the Ledger Entry type to post. Defaults to 1.",
9940
10142
  "type": {
9941
10143
  "kind": "SCALAR",
9942
10144
  "name": "Int",
@@ -11823,7 +12025,7 @@
11823
12025
  },
11824
12026
  {
11825
12027
  "name": "addLedgerEntries",
11826
- "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.",
11827
12029
  "args": [
11828
12030
  {
11829
12031
  "name": "entries",
@@ -12153,42 +12355,42 @@
12153
12355
  "description": "EXPERIMENTAL — subject to change.\n\nCreate a Payment.",
12154
12356
  "args": [
12155
12357
  {
12156
- "name": "amount",
12157
- "description": "The amount in cents, between 100 and 10000000 inclusive.",
12358
+ "name": "ik",
12359
+ "description": "The [Idempotency Key](https://fragment.dev/api-reference/api-overview#idempotency)",
12158
12360
  "type": {
12159
12361
  "kind": "NON_NULL",
12160
12362
  "name": null,
12161
12363
  "ofType": {
12162
12364
  "kind": "SCALAR",
12163
- "name": "Int96",
12365
+ "name": "SafeString",
12164
12366
  "ofType": null
12165
12367
  }
12166
12368
  },
12167
12369
  "defaultValue": null
12168
12370
  },
12169
12371
  {
12170
- "name": "ik",
12171
- "description": "The [Idempotency Key](https://fragment.dev/api-reference/api-overview#idempotency)",
12372
+ "name": "ledger",
12373
+ "description": "The Ledger this Payment belongs to.",
12172
12374
  "type": {
12173
12375
  "kind": "NON_NULL",
12174
12376
  "name": null,
12175
12377
  "ofType": {
12176
- "kind": "SCALAR",
12177
- "name": "SafeString",
12378
+ "kind": "INPUT_OBJECT",
12379
+ "name": "LedgerMatchInput",
12178
12380
  "ofType": null
12179
12381
  }
12180
12382
  },
12181
12383
  "defaultValue": null
12182
12384
  },
12183
12385
  {
12184
- "name": "ledger",
12185
- "description": "The Ledger this Payment belongs to.",
12386
+ "name": "payment",
12387
+ "description": "The Payment to create.",
12186
12388
  "type": {
12187
12389
  "kind": "NON_NULL",
12188
12390
  "name": null,
12189
12391
  "ofType": {
12190
12392
  "kind": "INPUT_OBJECT",
12191
- "name": "LedgerMatchInput",
12393
+ "name": "CreatePaymentInput",
12192
12394
  "ofType": null
12193
12395
  }
12194
12396
  },
@@ -12308,6 +12510,61 @@
12308
12510
  "isDeprecated": false,
12309
12511
  "deprecationReason": null
12310
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
+ },
12311
12568
  {
12312
12569
  "name": "migrateLedgerEntry",
12313
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",
@@ -12769,18 +13026,18 @@
12769
13026
  {
12770
13027
  "kind": "OBJECT",
12771
13028
  "name": "Payment",
12772
- "description": null,
13029
+ "description": "EXPERIMENTAL: A Payment posted to a Ledger.",
12773
13030
  "fields": [
12774
13031
  {
12775
- "name": "clientSecret",
12776
- "description": "The secret handed to the payments SDK to render the payment method capture.",
13032
+ "name": "amount",
13033
+ "description": "The amount of this Payment, in whole cents.",
12777
13034
  "args": [],
12778
13035
  "type": {
12779
13036
  "kind": "NON_NULL",
12780
13037
  "name": null,
12781
13038
  "ofType": {
12782
13039
  "kind": "SCALAR",
12783
- "name": "String",
13040
+ "name": "Int96",
12784
13041
  "ofType": null
12785
13042
  }
12786
13043
  },
@@ -12788,25 +13045,323 @@
12788
13045
  "deprecationReason": null
12789
13046
  },
12790
13047
  {
12791
- "name": "status",
12792
- "description": "The status of this Payment.",
13048
+ "name": "clientSecret",
13049
+ "description": "The credential the payments SDK presents to `confirmPayment`.",
12793
13050
  "args": [],
12794
13051
  "type": {
12795
13052
  "kind": "NON_NULL",
12796
13053
  "name": null,
12797
13054
  "ofType": {
12798
- "kind": "ENUM",
12799
- "name": "PaymentStatus",
13055
+ "kind": "SCALAR",
13056
+ "name": "String",
12800
13057
  "ofType": null
12801
13058
  }
12802
13059
  },
12803
13060
  "isDeprecated": false,
12804
13061
  "deprecationReason": null
12805
- }
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
+ },
13175
+ {
13176
+ "name": "status",
13177
+ "description": "The status of this Payment.",
13178
+ "args": [],
13179
+ "type": {
13180
+ "kind": "NON_NULL",
13181
+ "name": null,
13182
+ "ofType": {
13183
+ "kind": "ENUM",
13184
+ "name": "PaymentStatus",
13185
+ "ofType": null
13186
+ }
13187
+ },
13188
+ "isDeprecated": false,
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
13281
+ }
13282
+ ],
13283
+ "inputFields": null,
13284
+ "interfaces": [],
13285
+ "enumValues": null,
13286
+ "possibleTypes": null
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
+ }
12806
13364
  ],
12807
- "inputFields": null,
12808
- "interfaces": [],
12809
- "enumValues": null,
12810
13365
  "possibleTypes": null
12811
13366
  },
12812
13367
  {
@@ -12818,13 +13373,19 @@
12818
13373
  "interfaces": null,
12819
13374
  "enumValues": [
12820
13375
  {
12821
- "name": "processing",
13376
+ "name": "approved",
13377
+ "description": null,
13378
+ "isDeprecated": false,
13379
+ "deprecationReason": null
13380
+ },
13381
+ {
13382
+ "name": "needs_payment_method",
12822
13383
  "description": null,
12823
13384
  "isDeprecated": false,
12824
13385
  "deprecationReason": null
12825
13386
  },
12826
13387
  {
12827
- "name": "requires_confirmation",
13388
+ "name": "processing",
12828
13389
  "description": null,
12829
13390
  "isDeprecated": false,
12830
13391
  "deprecationReason": null
@@ -12838,6 +13399,127 @@
12838
13399
  ],
12839
13400
  "possibleTypes": null
12840
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
+ },
12841
13523
  {
12842
13524
  "kind": "SCALAR",
12843
13525
  "name": "Period",
@@ -13307,6 +13989,33 @@
13307
13989
  "isDeprecated": false,
13308
13990
  "deprecationReason": null
13309
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
+ },
13310
14019
  {
13311
14020
  "name": "schema",
13312
14021
  "description": "Get a Schema by key.",
@@ -13710,21 +14419,17 @@
13710
14419
  "inputFields": [
13711
14420
  {
13712
14421
  "name": "entry",
13713
- "description": "The simulated Ledger Entry.",
14422
+ "description": "The simulated Ledger Entry. Required when eventType is `entry`.",
13714
14423
  "type": {
13715
- "kind": "NON_NULL",
13716
- "name": null,
13717
- "ofType": {
13718
- "kind": "INPUT_OBJECT",
13719
- "name": "SceneEntryInput",
13720
- "ofType": null
13721
- }
14424
+ "kind": "INPUT_OBJECT",
14425
+ "name": "SceneEntryInput",
14426
+ "ofType": null
13722
14427
  },
13723
14428
  "defaultValue": null
13724
14429
  },
13725
14430
  {
13726
14431
  "name": "eventType",
13727
- "description": "The type of the Scene Event. Currently, only entries are supported.",
14432
+ "description": "The type of the Scene Event.",
13728
14433
  "type": {
13729
14434
  "kind": "NON_NULL",
13730
14435
  "name": null,
@@ -13735,6 +14440,16 @@
13735
14440
  }
13736
14441
  },
13737
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
13738
14453
  }
13739
14454
  ],
13740
14455
  "interfaces": null,
@@ -13744,14 +14459,20 @@
13744
14459
  {
13745
14460
  "kind": "ENUM",
13746
14461
  "name": "SceneEventType",
13747
- "description": null,
14462
+ "description": "The kind of thing a Scene Event simulates.",
13748
14463
  "fields": null,
13749
14464
  "inputFields": null,
13750
14465
  "interfaces": null,
13751
14466
  "enumValues": [
13752
14467
  {
13753
14468
  "name": "entry",
13754
- "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.",
13755
14476
  "isDeprecated": false,
13756
14477
  "deprecationReason": null
13757
14478
  }
@@ -13760,45 +14481,161 @@
13760
14481
  },
13761
14482
  {
13762
14483
  "kind": "INPUT_OBJECT",
13763
- "name": "SceneInput",
13764
- "description": null,
14484
+ "name": "SceneInput",
14485
+ "description": null,
14486
+ "fields": null,
14487
+ "inputFields": [
14488
+ {
14489
+ "name": "events",
14490
+ "description": "The ordered simulated events that make up the Scene.",
14491
+ "type": {
14492
+ "kind": "NON_NULL",
14493
+ "name": null,
14494
+ "ofType": {
14495
+ "kind": "LIST",
14496
+ "name": null,
14497
+ "ofType": {
14498
+ "kind": "NON_NULL",
14499
+ "name": null,
14500
+ "ofType": {
14501
+ "kind": "INPUT_OBJECT",
14502
+ "name": "SceneEventInput",
14503
+ "ofType": null
14504
+ }
14505
+ }
14506
+ }
14507
+ },
14508
+ "defaultValue": null
14509
+ },
14510
+ {
14511
+ "name": "name",
14512
+ "description": "The human-readable name of the Scene.",
14513
+ "type": {
14514
+ "kind": "NON_NULL",
14515
+ "name": null,
14516
+ "ofType": {
14517
+ "kind": "SCALAR",
14518
+ "name": "String",
14519
+ "ofType": null
14520
+ }
14521
+ },
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.",
13765
14590
  "fields": null,
13766
14591
  "inputFields": [
13767
14592
  {
13768
- "name": "events",
13769
- "description": "A list of simulated ledger entries that make up the Scene.",
14593
+ "name": "ik",
14594
+ "description": "The Idempotency Key of the simulated Payment. Unique within the Scene.",
13770
14595
  "type": {
13771
14596
  "kind": "NON_NULL",
13772
14597
  "name": null,
13773
14598
  "ofType": {
13774
- "kind": "LIST",
13775
- "name": null,
13776
- "ofType": {
13777
- "kind": "NON_NULL",
13778
- "name": null,
13779
- "ofType": {
13780
- "kind": "INPUT_OBJECT",
13781
- "name": "SceneEventInput",
13782
- "ofType": null
13783
- }
13784
- }
14599
+ "kind": "SCALAR",
14600
+ "name": "SafeString",
14601
+ "ofType": null
13785
14602
  }
13786
14603
  },
13787
14604
  "defaultValue": null
13788
14605
  },
13789
14606
  {
13790
- "name": "name",
13791
- "description": "The human-readable name of the Scene.",
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.",
13792
14619
  "type": {
13793
14620
  "kind": "NON_NULL",
13794
14621
  "name": null,
13795
14622
  "ofType": {
13796
14623
  "kind": "SCALAR",
13797
- "name": "String",
14624
+ "name": "SafeString",
13798
14625
  "ofType": null
13799
14626
  }
13800
14627
  },
13801
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
13802
14639
  }
13803
14640
  ],
13804
14641
  "interfaces": null,
@@ -14283,6 +15120,16 @@
14283
15120
  },
14284
15121
  "defaultValue": null
14285
15122
  },
15123
+ {
15124
+ "name": "payments",
15125
+ "description": "EXPERIMENTAL: The Payment Types to add to the Schema.",
15126
+ "type": {
15127
+ "kind": "INPUT_OBJECT",
15128
+ "name": "SchemaPaymentsInput",
15129
+ "ofType": null
15130
+ },
15131
+ "defaultValue": null
15132
+ },
14286
15133
  {
14287
15134
  "name": "scenes",
14288
15135
  "description": "Any scenes associated with this Schema.",
@@ -14837,20 +15684,224 @@
14837
15684
  "interfaces": null,
14838
15685
  "enumValues": [
14839
15686
  {
14840
- "name": "active",
14841
- "description": "The Ledger Entry is active.",
14842
- "isDeprecated": false,
14843
- "deprecationReason": null
14844
- },
14845
- {
14846
- "name": "archived",
14847
- "description": "The Ledger Entry is archived.",
15687
+ "name": "active",
15688
+ "description": "The Ledger Entry is active.",
15689
+ "isDeprecated": false,
15690
+ "deprecationReason": null
15691
+ },
15692
+ {
15693
+ "name": "archived",
15694
+ "description": "The Ledger Entry is archived.",
15695
+ "isDeprecated": false,
15696
+ "deprecationReason": null
15697
+ },
15698
+ {
15699
+ "name": "disabled",
15700
+ "description": "The Ledger Entry is disabled.",
15701
+ "isDeprecated": false,
15702
+ "deprecationReason": null
15703
+ }
15704
+ ],
15705
+ "possibleTypes": null
15706
+ },
15707
+ {
15708
+ "kind": "INPUT_OBJECT",
15709
+ "name": "SchemaLedgerEntryTagInput",
15710
+ "description": "A tag associated with a Ledger Entry type.",
15711
+ "fields": null,
15712
+ "inputFields": [
15713
+ {
15714
+ "name": "key",
15715
+ "description": "The key for this tag.",
15716
+ "type": {
15717
+ "kind": "NON_NULL",
15718
+ "name": null,
15719
+ "ofType": {
15720
+ "kind": "SCALAR",
15721
+ "name": "SafeString",
15722
+ "ofType": null
15723
+ }
15724
+ },
15725
+ "defaultValue": null
15726
+ },
15727
+ {
15728
+ "name": "value",
15729
+ "description": "The value associated with the given key for this tag.",
15730
+ "type": {
15731
+ "kind": "NON_NULL",
15732
+ "name": null,
15733
+ "ofType": {
15734
+ "kind": "SCALAR",
15735
+ "name": "ParameterizedString",
15736
+ "ofType": null
15737
+ }
15738
+ },
15739
+ "defaultValue": null
15740
+ }
15741
+ ],
15742
+ "interfaces": null,
15743
+ "enumValues": null,
15744
+ "possibleTypes": null
15745
+ },
15746
+ {
15747
+ "kind": "INPUT_OBJECT",
15748
+ "name": "SchemaLedgerLineInput",
15749
+ "description": "A Ledger Line in a Ledger Entry.",
15750
+ "fields": null,
15751
+ "inputFields": [
15752
+ {
15753
+ "name": "account",
15754
+ "description": "The Ledger Account this Ledger Line will be posted to.\nIt supports parameters in its attributes via handlebars syntax.",
15755
+ "type": {
15756
+ "kind": "NON_NULL",
15757
+ "name": null,
15758
+ "ofType": {
15759
+ "kind": "INPUT_OBJECT",
15760
+ "name": "SchemaLedgerAccountMatchInput",
15761
+ "ofType": null
15762
+ }
15763
+ },
15764
+ "defaultValue": null
15765
+ },
15766
+ {
15767
+ "name": "amount",
15768
+ "description": "The amount of the Ledger Line. It supports parameters via the handlebars syntax and addition (+) and subtraction (-).",
15769
+ "type": {
15770
+ "kind": "SCALAR",
15771
+ "name": "ParameterizedString",
15772
+ "ofType": null
15773
+ },
15774
+ "defaultValue": null
15775
+ },
15776
+ {
15777
+ "name": "currency",
15778
+ "description": "The currency of the Ledger Line. This is required if the Ledger Account has currencyMode multi.\nIt supports parameters in its attributes via handlebars syntax.",
15779
+ "type": {
15780
+ "kind": "INPUT_OBJECT",
15781
+ "name": "SchemaCurrencyMatchInput",
15782
+ "ofType": null
15783
+ },
15784
+ "defaultValue": null
15785
+ },
15786
+ {
15787
+ "name": "description",
15788
+ "description": "Human-readable description of the line.",
15789
+ "type": {
15790
+ "kind": "SCALAR",
15791
+ "name": "ParameterizedString",
15792
+ "ofType": null
15793
+ },
15794
+ "defaultValue": null
15795
+ },
15796
+ {
15797
+ "name": "key",
15798
+ "description": "The key for the Ledger Line. Ledger Line keys must be unique within a Ledger Entry. Key can be filtered on as part of the LedgerLinesFilterSet.",
15799
+ "type": {
15800
+ "kind": "NON_NULL",
15801
+ "name": null,
15802
+ "ofType": {
15803
+ "kind": "SCALAR",
15804
+ "name": "SafeString",
15805
+ "ofType": null
15806
+ }
15807
+ },
15808
+ "defaultValue": null
15809
+ },
15810
+ {
15811
+ "name": "repeated",
15812
+ "description": "Repeated expansion configuration. When set, this line is expanded at runtime for each element\nin the array parameter named by the key.",
15813
+ "type": {
15814
+ "kind": "INPUT_OBJECT",
15815
+ "name": "SchemaRepeatedConfigInput",
15816
+ "ofType": null
15817
+ },
15818
+ "defaultValue": null
15819
+ },
15820
+ {
15821
+ "name": "tags",
15822
+ "description": "Tags to attach to this Ledger Line. Supports parameterized values via handlebars syntax.",
15823
+ "type": {
15824
+ "kind": "LIST",
15825
+ "name": null,
15826
+ "ofType": {
15827
+ "kind": "NON_NULL",
15828
+ "name": null,
15829
+ "ofType": {
15830
+ "kind": "INPUT_OBJECT",
15831
+ "name": "SchemaLedgerEntryTagInput",
15832
+ "ofType": null
15833
+ }
15834
+ }
15835
+ },
15836
+ "defaultValue": null
15837
+ },
15838
+ {
15839
+ "name": "tx",
15840
+ "description": "The external transaction to reconcile.\nThis field is required if the Ledger Account being posted to is a Linked Ledger Account. Otherwise, this field is disallowed.\nIt supports parameters in its attributes via handlebars syntax.\n\nSee the docs on [reconciling payments](https://fragment.dev/guides/reconcile-payments).",
15841
+ "type": {
15842
+ "kind": "INPUT_OBJECT",
15843
+ "name": "SchemaTxMatchInput",
15844
+ "ofType": null
15845
+ },
15846
+ "defaultValue": null
15847
+ }
15848
+ ],
15849
+ "interfaces": null,
15850
+ "enumValues": null,
15851
+ "possibleTypes": null
15852
+ },
15853
+ {
15854
+ "kind": "INPUT_OBJECT",
15855
+ "name": "SchemaMatchInput",
15856
+ "description": "An object used to retrieve a Schema.",
15857
+ "fields": null,
15858
+ "inputFields": [
15859
+ {
15860
+ "name": "key",
15861
+ "description": "The key to retrieve a Schema by.\n`key` is unique to a Workspace.",
15862
+ "type": {
15863
+ "kind": "NON_NULL",
15864
+ "name": null,
15865
+ "ofType": {
15866
+ "kind": "SCALAR",
15867
+ "name": "SafeString",
15868
+ "ofType": null
15869
+ }
15870
+ },
15871
+ "defaultValue": null
15872
+ },
15873
+ {
15874
+ "name": "version",
15875
+ "description": "Optional parameter to specify version of requested Schema. If not provided, it defaults to 0, representing the latest available version for the provided Schema key.",
15876
+ "type": {
15877
+ "kind": "SCALAR",
15878
+ "name": "Int",
15879
+ "ofType": null
15880
+ },
15881
+ "defaultValue": null
15882
+ }
15883
+ ],
15884
+ "interfaces": null,
15885
+ "enumValues": null,
15886
+ "possibleTypes": null
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.",
14848
15899
  "isDeprecated": false,
14849
15900
  "deprecationReason": null
14850
15901
  },
14851
15902
  {
14852
- "name": "disabled",
14853
- "description": "The Ledger Entry is disabled.",
15903
+ "name": "settled",
15904
+ "description": "The payment settled.",
14854
15905
  "isDeprecated": false,
14855
15906
  "deprecationReason": null
14856
15907
  }
@@ -14859,33 +15910,97 @@
14859
15910
  },
14860
15911
  {
14861
15912
  "kind": "INPUT_OBJECT",
14862
- "name": "SchemaLedgerEntryTagInput",
14863
- "description": "A tag associated with a Ledger Entry type.",
15913
+ "name": "SchemaPaymentAccountingInput",
15914
+ "description": "EXPERIMENTAL: The Ledger Entries a Payment Type posts as a payment moves\nthrough its lifecycle, keyed by lifecycle transition.",
14864
15915
  "fields": null,
14865
15916
  "inputFields": [
14866
15917
  {
14867
- "name": "key",
14868
- "description": "The key for this tag.",
15918
+ "name": "initiated",
15919
+ "description": "Posted when the payment is approved. Optional.",
15920
+ "type": {
15921
+ "kind": "INPUT_OBJECT",
15922
+ "name": "SchemaPaymentEntryInput",
15923
+ "ofType": null
15924
+ },
15925
+ "defaultValue": null
15926
+ },
15927
+ {
15928
+ "name": "settled",
15929
+ "description": "Posted when the payment settles. Every Payment Type must define it.",
14869
15930
  "type": {
14870
15931
  "kind": "NON_NULL",
14871
15932
  "name": null,
14872
15933
  "ofType": {
14873
- "kind": "SCALAR",
14874
- "name": "SafeString",
15934
+ "kind": "INPUT_OBJECT",
15935
+ "name": "SchemaPaymentEntryInput",
14875
15936
  "ofType": null
14876
15937
  }
14877
15938
  },
14878
15939
  "defaultValue": null
15940
+ }
15941
+ ],
15942
+ "interfaces": null,
15943
+ "enumValues": null,
15944
+ "possibleTypes": null
15945
+ },
15946
+ {
15947
+ "kind": "INPUT_OBJECT",
15948
+ "name": "SchemaPaymentEntryInput",
15949
+ "description": "EXPERIMENTAL: The Ledger Entry a Payment Type posts on a payment lifecycle event.",
15950
+ "fields": null,
15951
+ "inputFields": [
15952
+ {
15953
+ "name": "description",
15954
+ "description": "Human-readable description of the payment entry.",
15955
+ "type": {
15956
+ "kind": "SCALAR",
15957
+ "name": "ParameterizedString",
15958
+ "ofType": null
15959
+ },
15960
+ "defaultValue": null
14879
15961
  },
14880
15962
  {
14881
- "name": "value",
14882
- "description": "The value associated with the given key for this tag.",
15963
+ "name": "lines",
15964
+ "description": "The Ledger Lines in the payment entry.",
15965
+ "type": {
15966
+ "kind": "NON_NULL",
15967
+ "name": null,
15968
+ "ofType": {
15969
+ "kind": "LIST",
15970
+ "name": null,
15971
+ "ofType": {
15972
+ "kind": "NON_NULL",
15973
+ "name": null,
15974
+ "ofType": {
15975
+ "kind": "INPUT_OBJECT",
15976
+ "name": "SchemaPaymentLineInput",
15977
+ "ofType": null
15978
+ }
15979
+ }
15980
+ }
15981
+ },
15982
+ "defaultValue": null
15983
+ }
15984
+ ],
15985
+ "interfaces": null,
15986
+ "enumValues": null,
15987
+ "possibleTypes": null
15988
+ },
15989
+ {
15990
+ "kind": "INPUT_OBJECT",
15991
+ "name": "SchemaPaymentInput",
15992
+ "description": "EXPERIMENTAL: Marks a Ledger Account as a Payment Account.",
15993
+ "fields": null,
15994
+ "inputFields": [
15995
+ {
15996
+ "name": "enabled",
15997
+ "description": null,
14883
15998
  "type": {
14884
15999
  "kind": "NON_NULL",
14885
16000
  "name": null,
14886
16001
  "ofType": {
14887
16002
  "kind": "SCALAR",
14888
- "name": "ParameterizedString",
16003
+ "name": "Boolean",
14889
16004
  "ofType": null
14890
16005
  }
14891
16006
  },
@@ -14898,13 +16013,13 @@
14898
16013
  },
14899
16014
  {
14900
16015
  "kind": "INPUT_OBJECT",
14901
- "name": "SchemaLedgerLineInput",
14902
- "description": "A Ledger Line in a Ledger Entry.",
16016
+ "name": "SchemaPaymentLineInput",
16017
+ "description": "EXPERIMENTAL: A Ledger Line in a payment entry.",
14903
16018
  "fields": null,
14904
16019
  "inputFields": [
14905
16020
  {
14906
16021
  "name": "account",
14907
- "description": "The Ledger Account this Ledger Line will be posted to.\nIt supports parameters in its attributes via handlebars syntax.",
16022
+ "description": "The Ledger Account this line will be posted to.\nIt supports parameters in its attributes via handlebars syntax.",
14908
16023
  "type": {
14909
16024
  "kind": "NON_NULL",
14910
16025
  "name": null,
@@ -14918,17 +16033,21 @@
14918
16033
  },
14919
16034
  {
14920
16035
  "name": "amount",
14921
- "description": "The amount of the Ledger Line. It supports parameters via the handlebars syntax and addition (+) and subtraction (-).",
16036
+ "description": "The amount of the line. It supports parameters via the handlebars syntax and addition (+) and subtraction (-).",
14922
16037
  "type": {
14923
- "kind": "SCALAR",
14924
- "name": "ParameterizedString",
14925
- "ofType": null
16038
+ "kind": "NON_NULL",
16039
+ "name": null,
16040
+ "ofType": {
16041
+ "kind": "SCALAR",
16042
+ "name": "ParameterizedString",
16043
+ "ofType": null
16044
+ }
14926
16045
  },
14927
16046
  "defaultValue": null
14928
16047
  },
14929
16048
  {
14930
16049
  "name": "currency",
14931
- "description": "The currency of the Ledger Line. This is required if the Ledger Account has currencyMode multi.\nIt supports parameters in its attributes via handlebars syntax.",
16050
+ "description": "The currency of the line. This is required if the Ledger Account has currencyMode multi.\nIt supports parameters in its attributes via handlebars syntax.",
14932
16051
  "type": {
14933
16052
  "kind": "INPUT_OBJECT",
14934
16053
  "name": "SchemaCurrencyMatchInput",
@@ -14948,7 +16067,7 @@
14948
16067
  },
14949
16068
  {
14950
16069
  "name": "key",
14951
- "description": "The key for the Ledger Line. Ledger Line keys must be unique within a Ledger Entry. Key can be filtered on as part of the LedgerLinesFilterSet.",
16070
+ "description": "The key for the line. Keys must be unique within a payment entry.",
14952
16071
  "type": {
14953
16072
  "kind": "NON_NULL",
14954
16073
  "name": null,
@@ -14961,40 +16080,51 @@
14961
16080
  "defaultValue": null
14962
16081
  },
14963
16082
  {
14964
- "name": "repeated",
14965
- "description": "Repeated expansion configuration. When set, this line is expanded at runtime for each element\nin the array parameter named by the key.",
16083
+ "name": "system",
16084
+ "description": "Marks this as a system-owned line. Fragment fills the amounts of system\nlines when the payment entry is posted.",
14966
16085
  "type": {
14967
- "kind": "INPUT_OBJECT",
14968
- "name": "SchemaRepeatedConfigInput",
16086
+ "kind": "ENUM",
16087
+ "name": "SchemaSystemLineKind",
14969
16088
  "ofType": null
14970
16089
  },
14971
16090
  "defaultValue": null
14972
- },
16091
+ }
16092
+ ],
16093
+ "interfaces": null,
16094
+ "enumValues": null,
16095
+ "possibleTypes": null
16096
+ },
16097
+ {
16098
+ "kind": "INPUT_OBJECT",
16099
+ "name": "SchemaPaymentTypeDetailsInput",
16100
+ "description": "EXPERIMENTAL: The payment a Payment Type creates.",
16101
+ "fields": null,
16102
+ "inputFields": [
14973
16103
  {
14974
- "name": "tags",
14975
- "description": "Tags to attach to this Ledger Line. Supports parameterized values via handlebars syntax.",
16104
+ "name": "amount",
16105
+ "description": "The amount requested for the payment, as a parameterized expression filled\nfrom createPayment parameters.",
14976
16106
  "type": {
14977
- "kind": "LIST",
16107
+ "kind": "NON_NULL",
14978
16108
  "name": null,
14979
16109
  "ofType": {
14980
- "kind": "NON_NULL",
14981
- "name": null,
14982
- "ofType": {
14983
- "kind": "INPUT_OBJECT",
14984
- "name": "SchemaLedgerEntryTagInput",
14985
- "ofType": null
14986
- }
16110
+ "kind": "SCALAR",
16111
+ "name": "ParameterizedString",
16112
+ "ofType": null
14987
16113
  }
14988
16114
  },
14989
16115
  "defaultValue": null
14990
16116
  },
14991
16117
  {
14992
- "name": "tx",
14993
- "description": "The external transaction to reconcile.\nThis field is required if the Ledger Account being posted to is a Linked Ledger Account. Otherwise, this field is disallowed.\nIt supports parameters in its attributes via handlebars syntax.\n\nSee the docs on [reconciling payments](https://fragment.dev/guides/reconcile-payments).",
16118
+ "name": "direction",
16119
+ "description": "The direction the payment moves money.",
14994
16120
  "type": {
14995
- "kind": "INPUT_OBJECT",
14996
- "name": "SchemaTxMatchInput",
14997
- "ofType": null
16121
+ "kind": "NON_NULL",
16122
+ "name": null,
16123
+ "ofType": {
16124
+ "kind": "ENUM",
16125
+ "name": "SchemaPaymentTypeDirection",
16126
+ "ofType": null
16127
+ }
14998
16128
  },
14999
16129
  "defaultValue": null
15000
16130
  }
@@ -15003,15 +16133,80 @@
15003
16133
  "enumValues": null,
15004
16134
  "possibleTypes": null
15005
16135
  },
16136
+ {
16137
+ "kind": "ENUM",
16138
+ "name": "SchemaPaymentTypeDirection",
16139
+ "description": "The direction a Payment Type moves money.",
16140
+ "fields": null,
16141
+ "inputFields": null,
16142
+ "interfaces": null,
16143
+ "enumValues": [
16144
+ {
16145
+ "name": "payin",
16146
+ "description": "Money moves into the Payment Account.",
16147
+ "isDeprecated": false,
16148
+ "deprecationReason": null
16149
+ },
16150
+ {
16151
+ "name": "payout",
16152
+ "description": "Money moves out of the Payment Account.",
16153
+ "isDeprecated": false,
16154
+ "deprecationReason": null
16155
+ }
16156
+ ],
16157
+ "possibleTypes": null
16158
+ },
15006
16159
  {
15007
16160
  "kind": "INPUT_OBJECT",
15008
- "name": "SchemaMatchInput",
15009
- "description": "An object used to retrieve a Schema.",
16161
+ "name": "SchemaPaymentTypeInput",
16162
+ "description": "EXPERIMENTAL: A Payment Type in a Schema. All Payment Types defined in a\nSchema must have a unique `type` and `typeVersion` pair.",
15010
16163
  "fields": null,
15011
16164
  "inputFields": [
15012
16165
  {
15013
- "name": "key",
15014
- "description": "The key to retrieve a Schema by.\n`key` is unique to a Workspace.",
16166
+ "name": "accounting",
16167
+ "description": "The Ledger Entries posted as the payment moves through its lifecycle.",
16168
+ "type": {
16169
+ "kind": "NON_NULL",
16170
+ "name": null,
16171
+ "ofType": {
16172
+ "kind": "INPUT_OBJECT",
16173
+ "name": "SchemaPaymentAccountingInput",
16174
+ "ofType": null
16175
+ }
16176
+ },
16177
+ "defaultValue": null
16178
+ },
16179
+ {
16180
+ "name": "payment",
16181
+ "description": "The payment this Payment Type creates.",
16182
+ "type": {
16183
+ "kind": "NON_NULL",
16184
+ "name": null,
16185
+ "ofType": {
16186
+ "kind": "INPUT_OBJECT",
16187
+ "name": "SchemaPaymentTypeDetailsInput",
16188
+ "ofType": null
16189
+ }
16190
+ },
16191
+ "defaultValue": null
16192
+ },
16193
+ {
16194
+ "name": "status",
16195
+ "description": "The status of this Payment Type.",
16196
+ "type": {
16197
+ "kind": "NON_NULL",
16198
+ "name": null,
16199
+ "ofType": {
16200
+ "kind": "ENUM",
16201
+ "name": "SchemaPaymentTypeStatus",
16202
+ "ofType": null
16203
+ }
16204
+ },
16205
+ "defaultValue": null
16206
+ },
16207
+ {
16208
+ "name": "type",
16209
+ "description": "The type of this Payment Type. This is a stable, unique identifier for it.\nUniqueness is enforced at the Schema level.",
15015
16210
  "type": {
15016
16211
  "kind": "NON_NULL",
15017
16212
  "name": null,
@@ -15024,12 +16219,16 @@
15024
16219
  "defaultValue": null
15025
16220
  },
15026
16221
  {
15027
- "name": "version",
15028
- "description": "Optional parameter to specify version of requested Schema. If not provided, it defaults to 0, representing the latest available version for the provided Schema key.",
16222
+ "name": "typeVersion",
16223
+ "description": "The version of the Payment Type.",
15029
16224
  "type": {
15030
- "kind": "SCALAR",
15031
- "name": "Int",
15032
- "ofType": null
16225
+ "kind": "NON_NULL",
16226
+ "name": null,
16227
+ "ofType": {
16228
+ "kind": "SCALAR",
16229
+ "name": "Int",
16230
+ "ofType": null
16231
+ }
15033
16232
  },
15034
16233
  "defaultValue": null
15035
16234
  }
@@ -15038,22 +16237,47 @@
15038
16237
  "enumValues": null,
15039
16238
  "possibleTypes": null
15040
16239
  },
16240
+ {
16241
+ "kind": "ENUM",
16242
+ "name": "SchemaPaymentTypeStatus",
16243
+ "description": "The status of a Payment Type.",
16244
+ "fields": null,
16245
+ "inputFields": null,
16246
+ "interfaces": null,
16247
+ "enumValues": [
16248
+ {
16249
+ "name": "active",
16250
+ "description": "The Payment Type is active.",
16251
+ "isDeprecated": false,
16252
+ "deprecationReason": null
16253
+ }
16254
+ ],
16255
+ "possibleTypes": null
16256
+ },
15041
16257
  {
15042
16258
  "kind": "INPUT_OBJECT",
15043
- "name": "SchemaPaymentInput",
15044
- "description": "EXPERIMENTAL: Marks a Ledger Account as a Payment Account.",
16259
+ "name": "SchemaPaymentsInput",
16260
+ "description": "EXPERIMENTAL: The Payment Types in your Schema.",
15045
16261
  "fields": null,
15046
16262
  "inputFields": [
15047
16263
  {
15048
- "name": "penguin",
15049
- "description": null,
16264
+ "name": "types",
16265
+ "description": "A list of Payment Type definitions.",
15050
16266
  "type": {
15051
16267
  "kind": "NON_NULL",
15052
16268
  "name": null,
15053
16269
  "ofType": {
15054
- "kind": "SCALAR",
15055
- "name": "Boolean",
15056
- "ofType": null
16270
+ "kind": "LIST",
16271
+ "name": null,
16272
+ "ofType": {
16273
+ "kind": "NON_NULL",
16274
+ "name": null,
16275
+ "ofType": {
16276
+ "kind": "INPUT_OBJECT",
16277
+ "name": "SchemaPaymentTypeInput",
16278
+ "ofType": null
16279
+ }
16280
+ }
15057
16281
  }
15058
16282
  },
15059
16283
  "defaultValue": null
@@ -15088,6 +16312,29 @@
15088
16312
  "enumValues": null,
15089
16313
  "possibleTypes": null
15090
16314
  },
16315
+ {
16316
+ "kind": "ENUM",
16317
+ "name": "SchemaSystemLineKind",
16318
+ "description": "Identifies a system-owned line in a payment entry. The amounts of system\nlines are filled by Fragment when the payment entry is posted.",
16319
+ "fields": null,
16320
+ "inputFields": null,
16321
+ "interfaces": null,
16322
+ "enumValues": [
16323
+ {
16324
+ "name": "payment_fee_line",
16325
+ "description": "The line carrying the Fragment fee amount, posted to the Payment Account.",
16326
+ "isDeprecated": false,
16327
+ "deprecationReason": null
16328
+ },
16329
+ {
16330
+ "name": "payment_settlement_line",
16331
+ "description": "The line carrying the settled payment amount, posted to the Payment Account.",
16332
+ "isDeprecated": false,
16333
+ "deprecationReason": null
16334
+ }
16335
+ ],
16336
+ "possibleTypes": null
16337
+ },
15091
16338
  {
15092
16339
  "kind": "INPUT_OBJECT",
15093
16340
  "name": "SchemaTxMatchInput",