fragment-dev 2.1.0 → 2.2.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5c5d32d63e714edb6224f56d2fcc3bda7edc9ceb0fa6d988e5439e86030abc60
4
- data.tar.gz: d580f1b9c9c7430ea42157cc0f469a04de1be0bf8344be230209117b93fc1db0
3
+ metadata.gz: c02a2b062bc94f4582d2b3c443eca96c394db4bb17640e29221aab767c5a6a7d
4
+ data.tar.gz: a9d77eb2c4e1d61fc3a9ef9f00f9e7c07dc1fa427001f9ca61c20e42df7b836f
5
5
  SHA512:
6
- metadata.gz: 59c3690e1fc79d912114b2d963d80d6d67f8548eb8821583c9cf510fbaa0955e2ab841ed04db6402f27b131a539a988e92891a8341cfccbffb8b4487c3120dd2
7
- data.tar.gz: 030c2739e787f0de4ecc69ba746911deb25b013b0cfab2f407b9a1b4c1311df5e54bc985378af6ca6af5819a615f77cfdae82d653e4941df44c01b3c7c348fe5
6
+ metadata.gz: 4c52e9f937779976adaf1a2dd2c5ad8dd11e6a60caecfa19b16f814dc18e8cd3d4979bf2a4a351fda841a27530d99c9f02aeacd32a3e15a4437c38336fa31b75
7
+ data.tar.gz: db8a050b9d3e32eb0d03c383675ea753a15b6cd8002fc6cb2bae1e610a5a33f23d6b3e6667e42b0f811bf07291c6c7de424a4e558bd43e63c321eccc72741b2c
@@ -1339,6 +1339,51 @@
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. Defaults to the latest active version.",
1375
+ "type": {
1376
+ "kind": "SCALAR",
1377
+ "name": "Int",
1378
+ "ofType": null
1379
+ },
1380
+ "defaultValue": null
1381
+ }
1382
+ ],
1383
+ "interfaces": null,
1384
+ "enumValues": null,
1385
+ "possibleTypes": null
1386
+ },
1342
1387
  {
1343
1388
  "kind": "UNION",
1344
1389
  "name": "CreatePaymentResponse",
@@ -9936,7 +9981,7 @@
9936
9981
  },
9937
9982
  {
9938
9983
  "name": "typeVersion",
9939
- "description": "Experimental: This field is reserved for an upcoming feature and is not yet supported.",
9984
+ "description": "The version of the Ledger Entry type to post. Defaults to 1.",
9940
9985
  "type": {
9941
9986
  "kind": "SCALAR",
9942
9987
  "name": "Int",
@@ -11303,6 +11348,192 @@
11303
11348
  ],
11304
11349
  "possibleTypes": null
11305
11350
  },
11351
+ {
11352
+ "kind": "OBJECT",
11353
+ "name": "LedgerPayment",
11354
+ "description": "EXPERIMENTAL: A Payment posted to a Ledger.",
11355
+ "fields": [
11356
+ {
11357
+ "name": "amount",
11358
+ "description": "The amount of this Payment, in whole cents.",
11359
+ "args": [],
11360
+ "type": {
11361
+ "kind": "NON_NULL",
11362
+ "name": null,
11363
+ "ofType": {
11364
+ "kind": "SCALAR",
11365
+ "name": "Int96",
11366
+ "ofType": null
11367
+ }
11368
+ },
11369
+ "isDeprecated": false,
11370
+ "deprecationReason": null
11371
+ },
11372
+ {
11373
+ "name": "created",
11374
+ "description": null,
11375
+ "args": [],
11376
+ "type": {
11377
+ "kind": "NON_NULL",
11378
+ "name": null,
11379
+ "ofType": {
11380
+ "kind": "SCALAR",
11381
+ "name": "DateTime",
11382
+ "ofType": null
11383
+ }
11384
+ },
11385
+ "isDeprecated": false,
11386
+ "deprecationReason": null
11387
+ },
11388
+ {
11389
+ "name": "ik",
11390
+ "description": "The [Idempotency Key](https://fragment.dev/api-reference/api-overview#idempotency) the Payment was created with.",
11391
+ "args": [],
11392
+ "type": {
11393
+ "kind": "NON_NULL",
11394
+ "name": null,
11395
+ "ofType": {
11396
+ "kind": "SCALAR",
11397
+ "name": "SafeString",
11398
+ "ofType": null
11399
+ }
11400
+ },
11401
+ "isDeprecated": false,
11402
+ "deprecationReason": null
11403
+ },
11404
+ {
11405
+ "name": "ledgerId",
11406
+ "description": "The Ledger this Payment belongs to.",
11407
+ "args": [],
11408
+ "type": {
11409
+ "kind": "NON_NULL",
11410
+ "name": null,
11411
+ "ofType": {
11412
+ "kind": "SCALAR",
11413
+ "name": "SafeString",
11414
+ "ofType": null
11415
+ }
11416
+ },
11417
+ "isDeprecated": false,
11418
+ "deprecationReason": null
11419
+ },
11420
+ {
11421
+ "name": "parameters",
11422
+ "description": "Parameters the Payment was created with. Only returned by the `ledgerPayment` query.",
11423
+ "args": [],
11424
+ "type": {
11425
+ "kind": "SCALAR",
11426
+ "name": "JSON",
11427
+ "ofType": null
11428
+ },
11429
+ "isDeprecated": false,
11430
+ "deprecationReason": null
11431
+ },
11432
+ {
11433
+ "name": "status",
11434
+ "description": "The status of this Payment.",
11435
+ "args": [],
11436
+ "type": {
11437
+ "kind": "NON_NULL",
11438
+ "name": null,
11439
+ "ofType": {
11440
+ "kind": "ENUM",
11441
+ "name": "PaymentStatus",
11442
+ "ofType": null
11443
+ }
11444
+ },
11445
+ "isDeprecated": false,
11446
+ "deprecationReason": null
11447
+ },
11448
+ {
11449
+ "name": "type",
11450
+ "description": "The Payment Type in the Schema this Payment was created from.",
11451
+ "args": [],
11452
+ "type": {
11453
+ "kind": "NON_NULL",
11454
+ "name": null,
11455
+ "ofType": {
11456
+ "kind": "SCALAR",
11457
+ "name": "SafeString",
11458
+ "ofType": null
11459
+ }
11460
+ },
11461
+ "isDeprecated": false,
11462
+ "deprecationReason": null
11463
+ },
11464
+ {
11465
+ "name": "typeVersion",
11466
+ "description": "The version of the Payment Type.",
11467
+ "args": [],
11468
+ "type": {
11469
+ "kind": "NON_NULL",
11470
+ "name": null,
11471
+ "ofType": {
11472
+ "kind": "SCALAR",
11473
+ "name": "Int",
11474
+ "ofType": null
11475
+ }
11476
+ },
11477
+ "isDeprecated": false,
11478
+ "deprecationReason": null
11479
+ }
11480
+ ],
11481
+ "inputFields": null,
11482
+ "interfaces": [],
11483
+ "enumValues": null,
11484
+ "possibleTypes": null
11485
+ },
11486
+ {
11487
+ "kind": "OBJECT",
11488
+ "name": "LedgerPaymentsConnection",
11489
+ "description": "EXPERIMENTAL: A paginated list of Payments.",
11490
+ "fields": [
11491
+ {
11492
+ "name": "nodes",
11493
+ "description": "The current page of results.",
11494
+ "args": [],
11495
+ "type": {
11496
+ "kind": "NON_NULL",
11497
+ "name": null,
11498
+ "ofType": {
11499
+ "kind": "LIST",
11500
+ "name": null,
11501
+ "ofType": {
11502
+ "kind": "NON_NULL",
11503
+ "name": null,
11504
+ "ofType": {
11505
+ "kind": "OBJECT",
11506
+ "name": "LedgerPayment",
11507
+ "ofType": null
11508
+ }
11509
+ }
11510
+ }
11511
+ },
11512
+ "isDeprecated": false,
11513
+ "deprecationReason": null
11514
+ },
11515
+ {
11516
+ "name": "pageInfo",
11517
+ "description": "The pagination info for this list.",
11518
+ "args": [],
11519
+ "type": {
11520
+ "kind": "NON_NULL",
11521
+ "name": null,
11522
+ "ofType": {
11523
+ "kind": "OBJECT",
11524
+ "name": "PageInfo",
11525
+ "ofType": null
11526
+ }
11527
+ },
11528
+ "isDeprecated": false,
11529
+ "deprecationReason": null
11530
+ }
11531
+ ],
11532
+ "inputFields": null,
11533
+ "interfaces": [],
11534
+ "enumValues": null,
11535
+ "possibleTypes": null
11536
+ },
11306
11537
  {
11307
11538
  "kind": "INPUT_OBJECT",
11308
11539
  "name": "LedgerTypeFilter",
@@ -12153,42 +12384,42 @@
12153
12384
  "description": "EXPERIMENTAL — subject to change.\n\nCreate a Payment.",
12154
12385
  "args": [
12155
12386
  {
12156
- "name": "amount",
12157
- "description": "The amount in cents, between 100 and 10000000 inclusive.",
12387
+ "name": "ik",
12388
+ "description": "The [Idempotency Key](https://fragment.dev/api-reference/api-overview#idempotency)",
12158
12389
  "type": {
12159
12390
  "kind": "NON_NULL",
12160
12391
  "name": null,
12161
12392
  "ofType": {
12162
12393
  "kind": "SCALAR",
12163
- "name": "Int96",
12394
+ "name": "SafeString",
12164
12395
  "ofType": null
12165
12396
  }
12166
12397
  },
12167
12398
  "defaultValue": null
12168
12399
  },
12169
12400
  {
12170
- "name": "ik",
12171
- "description": "The [Idempotency Key](https://fragment.dev/api-reference/api-overview#idempotency)",
12401
+ "name": "ledger",
12402
+ "description": "The Ledger this Payment belongs to.",
12172
12403
  "type": {
12173
12404
  "kind": "NON_NULL",
12174
12405
  "name": null,
12175
12406
  "ofType": {
12176
- "kind": "SCALAR",
12177
- "name": "SafeString",
12407
+ "kind": "INPUT_OBJECT",
12408
+ "name": "LedgerMatchInput",
12178
12409
  "ofType": null
12179
12410
  }
12180
12411
  },
12181
12412
  "defaultValue": null
12182
12413
  },
12183
12414
  {
12184
- "name": "ledger",
12185
- "description": "The Ledger this Payment belongs to.",
12415
+ "name": "payment",
12416
+ "description": "The Payment to create.",
12186
12417
  "type": {
12187
12418
  "kind": "NON_NULL",
12188
12419
  "name": null,
12189
12420
  "ofType": {
12190
12421
  "kind": "INPUT_OBJECT",
12191
- "name": "LedgerMatchInput",
12422
+ "name": "CreatePaymentInput",
12192
12423
  "ofType": null
12193
12424
  }
12194
12425
  },
@@ -12818,13 +13049,13 @@
12818
13049
  "interfaces": null,
12819
13050
  "enumValues": [
12820
13051
  {
12821
- "name": "processing",
13052
+ "name": "needs_payment_method",
12822
13053
  "description": null,
12823
13054
  "isDeprecated": false,
12824
13055
  "deprecationReason": null
12825
13056
  },
12826
13057
  {
12827
- "name": "requires_confirmation",
13058
+ "name": "processing",
12828
13059
  "description": null,
12829
13060
  "isDeprecated": false,
12830
13061
  "deprecationReason": null
@@ -13198,32 +13429,144 @@
13198
13429
  "deprecationReason": null
13199
13430
  },
13200
13431
  {
13201
- "name": "ledgers",
13202
- "description": "Query Ledgers in workspace. Ledgers are paginated and returned in reverse-chronological order by their created date.",
13432
+ "name": "ledgerPayment",
13433
+ "description": "EXPERIMENTAL: Get a single Payment by its Idempotency Key.",
13203
13434
  "args": [
13204
13435
  {
13205
- "name": "after",
13206
- "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).",
13436
+ "name": "ik",
13437
+ "description": "The Idempotency Key the Payment was created with.",
13207
13438
  "type": {
13208
- "kind": "SCALAR",
13209
- "name": "String",
13210
- "ofType": null
13439
+ "kind": "NON_NULL",
13440
+ "name": null,
13441
+ "ofType": {
13442
+ "kind": "SCALAR",
13443
+ "name": "SafeString",
13444
+ "ofType": null
13445
+ }
13211
13446
  },
13212
13447
  "defaultValue": null
13213
13448
  },
13214
13449
  {
13215
- "name": "before",
13216
- "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).",
13450
+ "name": "ledger",
13451
+ "description": "The Ledger the Payment belongs to.",
13217
13452
  "type": {
13218
- "kind": "SCALAR",
13219
- "name": "String",
13220
- "ofType": null
13221
- },
13222
- "defaultValue": null
13223
- },
13224
- {
13225
- "name": "filter",
13226
- "description": "Filter the Ledgers returned. Learn more about [querying Ledgers](https://fragment.dev/guides/query-data#ledgers).",
13453
+ "kind": "NON_NULL",
13454
+ "name": null,
13455
+ "ofType": {
13456
+ "kind": "INPUT_OBJECT",
13457
+ "name": "LedgerMatchInput",
13458
+ "ofType": null
13459
+ }
13460
+ },
13461
+ "defaultValue": null
13462
+ }
13463
+ ],
13464
+ "type": {
13465
+ "kind": "OBJECT",
13466
+ "name": "LedgerPayment",
13467
+ "ofType": null
13468
+ },
13469
+ "isDeprecated": false,
13470
+ "deprecationReason": null
13471
+ },
13472
+ {
13473
+ "name": "ledgerPayments",
13474
+ "description": "EXPERIMENTAL: List the Payments on a Ledger, most recent first.",
13475
+ "args": [
13476
+ {
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.",
13519
+ "type": {
13520
+ "kind": "NON_NULL",
13521
+ "name": null,
13522
+ "ofType": {
13523
+ "kind": "INPUT_OBJECT",
13524
+ "name": "LedgerMatchInput",
13525
+ "ofType": null
13526
+ }
13527
+ },
13528
+ "defaultValue": null
13529
+ }
13530
+ ],
13531
+ "type": {
13532
+ "kind": "NON_NULL",
13533
+ "name": null,
13534
+ "ofType": {
13535
+ "kind": "OBJECT",
13536
+ "name": "LedgerPaymentsConnection",
13537
+ "ofType": null
13538
+ }
13539
+ },
13540
+ "isDeprecated": false,
13541
+ "deprecationReason": null
13542
+ },
13543
+ {
13544
+ "name": "ledgers",
13545
+ "description": "Query Ledgers in workspace. Ledgers are paginated and returned in reverse-chronological order by their created date.",
13546
+ "args": [
13547
+ {
13548
+ "name": "after",
13549
+ "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).",
13550
+ "type": {
13551
+ "kind": "SCALAR",
13552
+ "name": "String",
13553
+ "ofType": null
13554
+ },
13555
+ "defaultValue": null
13556
+ },
13557
+ {
13558
+ "name": "before",
13559
+ "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).",
13560
+ "type": {
13561
+ "kind": "SCALAR",
13562
+ "name": "String",
13563
+ "ofType": null
13564
+ },
13565
+ "defaultValue": null
13566
+ },
13567
+ {
13568
+ "name": "filter",
13569
+ "description": "Filter the Ledgers returned. Learn more about [querying Ledgers](https://fragment.dev/guides/query-data#ledgers).",
13227
13570
  "type": {
13228
13571
  "kind": "INPUT_OBJECT",
13229
13572
  "name": "LedgersFilterSet",
@@ -14283,6 +14626,16 @@
14283
14626
  },
14284
14627
  "defaultValue": null
14285
14628
  },
14629
+ {
14630
+ "name": "payments",
14631
+ "description": "EXPERIMENTAL: The Payment Types to add to the Schema.",
14632
+ "type": {
14633
+ "kind": "INPUT_OBJECT",
14634
+ "name": "SchemaPaymentsInput",
14635
+ "ofType": null
14636
+ },
14637
+ "defaultValue": null
14638
+ },
14286
14639
  {
14287
14640
  "name": "scenes",
14288
14641
  "description": "Any scenes associated with this Schema.",
@@ -15038,6 +15391,84 @@
15038
15391
  "enumValues": null,
15039
15392
  "possibleTypes": null
15040
15393
  },
15394
+ {
15395
+ "kind": "INPUT_OBJECT",
15396
+ "name": "SchemaPaymentAccountingInput",
15397
+ "description": "EXPERIMENTAL: The Ledger Entries a Payment Type posts as a payment moves\nthrough its lifecycle, keyed by lifecycle transition.",
15398
+ "fields": null,
15399
+ "inputFields": [
15400
+ {
15401
+ "name": "needs_payment_method_to_processing",
15402
+ "description": "Posted when the payment enters processing. Optional.",
15403
+ "type": {
15404
+ "kind": "INPUT_OBJECT",
15405
+ "name": "SchemaPaymentEntryInput",
15406
+ "ofType": null
15407
+ },
15408
+ "defaultValue": null
15409
+ },
15410
+ {
15411
+ "name": "processing_to_settled",
15412
+ "description": "Posted when the payment settles. Every Payment Type must define it.",
15413
+ "type": {
15414
+ "kind": "NON_NULL",
15415
+ "name": null,
15416
+ "ofType": {
15417
+ "kind": "INPUT_OBJECT",
15418
+ "name": "SchemaPaymentEntryInput",
15419
+ "ofType": null
15420
+ }
15421
+ },
15422
+ "defaultValue": null
15423
+ }
15424
+ ],
15425
+ "interfaces": null,
15426
+ "enumValues": null,
15427
+ "possibleTypes": null
15428
+ },
15429
+ {
15430
+ "kind": "INPUT_OBJECT",
15431
+ "name": "SchemaPaymentEntryInput",
15432
+ "description": "EXPERIMENTAL: The Ledger Entry a Payment Type posts on a payment lifecycle event.",
15433
+ "fields": null,
15434
+ "inputFields": [
15435
+ {
15436
+ "name": "description",
15437
+ "description": "Human-readable description of the payment entry.",
15438
+ "type": {
15439
+ "kind": "SCALAR",
15440
+ "name": "ParameterizedString",
15441
+ "ofType": null
15442
+ },
15443
+ "defaultValue": null
15444
+ },
15445
+ {
15446
+ "name": "lines",
15447
+ "description": "The Ledger Lines in the payment entry.",
15448
+ "type": {
15449
+ "kind": "NON_NULL",
15450
+ "name": null,
15451
+ "ofType": {
15452
+ "kind": "LIST",
15453
+ "name": null,
15454
+ "ofType": {
15455
+ "kind": "NON_NULL",
15456
+ "name": null,
15457
+ "ofType": {
15458
+ "kind": "INPUT_OBJECT",
15459
+ "name": "SchemaPaymentLineInput",
15460
+ "ofType": null
15461
+ }
15462
+ }
15463
+ }
15464
+ },
15465
+ "defaultValue": null
15466
+ }
15467
+ ],
15468
+ "interfaces": null,
15469
+ "enumValues": null,
15470
+ "possibleTypes": null
15471
+ },
15041
15472
  {
15042
15473
  "kind": "INPUT_OBJECT",
15043
15474
  "name": "SchemaPaymentInput",
@@ -15063,6 +15494,282 @@
15063
15494
  "enumValues": null,
15064
15495
  "possibleTypes": null
15065
15496
  },
15497
+ {
15498
+ "kind": "INPUT_OBJECT",
15499
+ "name": "SchemaPaymentLineInput",
15500
+ "description": "EXPERIMENTAL: A Ledger Line in a payment entry.",
15501
+ "fields": null,
15502
+ "inputFields": [
15503
+ {
15504
+ "name": "account",
15505
+ "description": "The Ledger Account this line will be posted to.\nIt supports parameters in its attributes via handlebars syntax.",
15506
+ "type": {
15507
+ "kind": "NON_NULL",
15508
+ "name": null,
15509
+ "ofType": {
15510
+ "kind": "INPUT_OBJECT",
15511
+ "name": "SchemaLedgerAccountMatchInput",
15512
+ "ofType": null
15513
+ }
15514
+ },
15515
+ "defaultValue": null
15516
+ },
15517
+ {
15518
+ "name": "amount",
15519
+ "description": "The amount of the line. It supports parameters via the handlebars syntax and addition (+) and subtraction (-).",
15520
+ "type": {
15521
+ "kind": "NON_NULL",
15522
+ "name": null,
15523
+ "ofType": {
15524
+ "kind": "SCALAR",
15525
+ "name": "ParameterizedString",
15526
+ "ofType": null
15527
+ }
15528
+ },
15529
+ "defaultValue": null
15530
+ },
15531
+ {
15532
+ "name": "currency",
15533
+ "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.",
15534
+ "type": {
15535
+ "kind": "INPUT_OBJECT",
15536
+ "name": "SchemaCurrencyMatchInput",
15537
+ "ofType": null
15538
+ },
15539
+ "defaultValue": null
15540
+ },
15541
+ {
15542
+ "name": "description",
15543
+ "description": "Human-readable description of the line.",
15544
+ "type": {
15545
+ "kind": "SCALAR",
15546
+ "name": "ParameterizedString",
15547
+ "ofType": null
15548
+ },
15549
+ "defaultValue": null
15550
+ },
15551
+ {
15552
+ "name": "key",
15553
+ "description": "The key for the line. Keys must be unique within a payment entry.",
15554
+ "type": {
15555
+ "kind": "NON_NULL",
15556
+ "name": null,
15557
+ "ofType": {
15558
+ "kind": "SCALAR",
15559
+ "name": "SafeString",
15560
+ "ofType": null
15561
+ }
15562
+ },
15563
+ "defaultValue": null
15564
+ },
15565
+ {
15566
+ "name": "system",
15567
+ "description": "Marks this as a system-owned line. Fragment fills the amounts of system\nlines when the payment entry is posted.",
15568
+ "type": {
15569
+ "kind": "ENUM",
15570
+ "name": "SchemaSystemLineKind",
15571
+ "ofType": null
15572
+ },
15573
+ "defaultValue": null
15574
+ }
15575
+ ],
15576
+ "interfaces": null,
15577
+ "enumValues": null,
15578
+ "possibleTypes": null
15579
+ },
15580
+ {
15581
+ "kind": "INPUT_OBJECT",
15582
+ "name": "SchemaPaymentTypeDetailsInput",
15583
+ "description": "EXPERIMENTAL: The payment a Payment Type creates.",
15584
+ "fields": null,
15585
+ "inputFields": [
15586
+ {
15587
+ "name": "amount",
15588
+ "description": "The amount requested for the payment, as a parameterized expression filled\nfrom createPayment parameters.",
15589
+ "type": {
15590
+ "kind": "NON_NULL",
15591
+ "name": null,
15592
+ "ofType": {
15593
+ "kind": "SCALAR",
15594
+ "name": "ParameterizedString",
15595
+ "ofType": null
15596
+ }
15597
+ },
15598
+ "defaultValue": null
15599
+ },
15600
+ {
15601
+ "name": "direction",
15602
+ "description": "The direction the payment moves money.",
15603
+ "type": {
15604
+ "kind": "NON_NULL",
15605
+ "name": null,
15606
+ "ofType": {
15607
+ "kind": "ENUM",
15608
+ "name": "SchemaPaymentTypeDirection",
15609
+ "ofType": null
15610
+ }
15611
+ },
15612
+ "defaultValue": null
15613
+ }
15614
+ ],
15615
+ "interfaces": null,
15616
+ "enumValues": null,
15617
+ "possibleTypes": null
15618
+ },
15619
+ {
15620
+ "kind": "ENUM",
15621
+ "name": "SchemaPaymentTypeDirection",
15622
+ "description": "The direction a Payment Type moves money.",
15623
+ "fields": null,
15624
+ "inputFields": null,
15625
+ "interfaces": null,
15626
+ "enumValues": [
15627
+ {
15628
+ "name": "payin",
15629
+ "description": "Money moves into the Payment Account.",
15630
+ "isDeprecated": false,
15631
+ "deprecationReason": null
15632
+ },
15633
+ {
15634
+ "name": "payout",
15635
+ "description": "Money moves out of the Payment Account.",
15636
+ "isDeprecated": false,
15637
+ "deprecationReason": null
15638
+ }
15639
+ ],
15640
+ "possibleTypes": null
15641
+ },
15642
+ {
15643
+ "kind": "INPUT_OBJECT",
15644
+ "name": "SchemaPaymentTypeInput",
15645
+ "description": "EXPERIMENTAL: A Payment Type in a Schema. All Payment Types defined in a\nSchema must have a unique `type` and `typeVersion` pair.",
15646
+ "fields": null,
15647
+ "inputFields": [
15648
+ {
15649
+ "name": "accounting",
15650
+ "description": "The Ledger Entries posted as the payment moves through its lifecycle.",
15651
+ "type": {
15652
+ "kind": "NON_NULL",
15653
+ "name": null,
15654
+ "ofType": {
15655
+ "kind": "INPUT_OBJECT",
15656
+ "name": "SchemaPaymentAccountingInput",
15657
+ "ofType": null
15658
+ }
15659
+ },
15660
+ "defaultValue": null
15661
+ },
15662
+ {
15663
+ "name": "payment",
15664
+ "description": "The payment this Payment Type creates.",
15665
+ "type": {
15666
+ "kind": "NON_NULL",
15667
+ "name": null,
15668
+ "ofType": {
15669
+ "kind": "INPUT_OBJECT",
15670
+ "name": "SchemaPaymentTypeDetailsInput",
15671
+ "ofType": null
15672
+ }
15673
+ },
15674
+ "defaultValue": null
15675
+ },
15676
+ {
15677
+ "name": "status",
15678
+ "description": "The status of this Payment Type.",
15679
+ "type": {
15680
+ "kind": "NON_NULL",
15681
+ "name": null,
15682
+ "ofType": {
15683
+ "kind": "ENUM",
15684
+ "name": "SchemaPaymentTypeStatus",
15685
+ "ofType": null
15686
+ }
15687
+ },
15688
+ "defaultValue": null
15689
+ },
15690
+ {
15691
+ "name": "type",
15692
+ "description": "The type of this Payment Type. This is a stable, unique identifier for it.\nUniqueness is enforced at the Schema level.",
15693
+ "type": {
15694
+ "kind": "NON_NULL",
15695
+ "name": null,
15696
+ "ofType": {
15697
+ "kind": "SCALAR",
15698
+ "name": "SafeString",
15699
+ "ofType": null
15700
+ }
15701
+ },
15702
+ "defaultValue": null
15703
+ },
15704
+ {
15705
+ "name": "typeVersion",
15706
+ "description": "The version of the Payment Type.",
15707
+ "type": {
15708
+ "kind": "NON_NULL",
15709
+ "name": null,
15710
+ "ofType": {
15711
+ "kind": "SCALAR",
15712
+ "name": "Int",
15713
+ "ofType": null
15714
+ }
15715
+ },
15716
+ "defaultValue": null
15717
+ }
15718
+ ],
15719
+ "interfaces": null,
15720
+ "enumValues": null,
15721
+ "possibleTypes": null
15722
+ },
15723
+ {
15724
+ "kind": "ENUM",
15725
+ "name": "SchemaPaymentTypeStatus",
15726
+ "description": "The status of a Payment Type.",
15727
+ "fields": null,
15728
+ "inputFields": null,
15729
+ "interfaces": null,
15730
+ "enumValues": [
15731
+ {
15732
+ "name": "active",
15733
+ "description": "The Payment Type is active.",
15734
+ "isDeprecated": false,
15735
+ "deprecationReason": null
15736
+ }
15737
+ ],
15738
+ "possibleTypes": null
15739
+ },
15740
+ {
15741
+ "kind": "INPUT_OBJECT",
15742
+ "name": "SchemaPaymentsInput",
15743
+ "description": "EXPERIMENTAL: The Payment Types in your Schema.",
15744
+ "fields": null,
15745
+ "inputFields": [
15746
+ {
15747
+ "name": "types",
15748
+ "description": "A list of Payment Type definitions.",
15749
+ "type": {
15750
+ "kind": "NON_NULL",
15751
+ "name": null,
15752
+ "ofType": {
15753
+ "kind": "LIST",
15754
+ "name": null,
15755
+ "ofType": {
15756
+ "kind": "NON_NULL",
15757
+ "name": null,
15758
+ "ofType": {
15759
+ "kind": "INPUT_OBJECT",
15760
+ "name": "SchemaPaymentTypeInput",
15761
+ "ofType": null
15762
+ }
15763
+ }
15764
+ }
15765
+ },
15766
+ "defaultValue": null
15767
+ }
15768
+ ],
15769
+ "interfaces": null,
15770
+ "enumValues": null,
15771
+ "possibleTypes": null
15772
+ },
15066
15773
  {
15067
15774
  "kind": "INPUT_OBJECT",
15068
15775
  "name": "SchemaRepeatedConfigInput",
@@ -15088,6 +15795,29 @@
15088
15795
  "enumValues": null,
15089
15796
  "possibleTypes": null
15090
15797
  },
15798
+ {
15799
+ "kind": "ENUM",
15800
+ "name": "SchemaSystemLineKind",
15801
+ "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.",
15802
+ "fields": null,
15803
+ "inputFields": null,
15804
+ "interfaces": null,
15805
+ "enumValues": [
15806
+ {
15807
+ "name": "payment_fee_line",
15808
+ "description": "The line carrying the Fragment fee amount, posted to the Payment Account.",
15809
+ "isDeprecated": false,
15810
+ "deprecationReason": null
15811
+ },
15812
+ {
15813
+ "name": "payment_settlement_line",
15814
+ "description": "The line carrying the settled payment amount, posted to the Payment Account.",
15815
+ "isDeprecated": false,
15816
+ "deprecationReason": null
15817
+ }
15818
+ ],
15819
+ "possibleTypes": null
15820
+ },
15091
15821
  {
15092
15822
  "kind": "INPUT_OBJECT",
15093
15823
  "name": "SchemaTxMatchInput",
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module FragmentSDK
4
- VERSION = '2.1.0'
4
+ VERSION = '2.2.0'
5
5
  end
data/lib/queries.graphql CHANGED
@@ -1241,3 +1241,37 @@ mutation CreateCustomCurrency(
1241
1241
  }
1242
1242
  }
1243
1243
  }
1244
+
1245
+ mutation CreatePayment(
1246
+ $ik: SafeString!
1247
+ $ledgerIk: SafeString!
1248
+ $type: SafeString!
1249
+ $typeVersion: Int
1250
+ $parameters: JSON
1251
+ ) {
1252
+ createPayment(
1253
+ ik: $ik
1254
+ ledger: { ik: $ledgerIk }
1255
+ payment: {
1256
+ type: $type
1257
+ typeVersion: $typeVersion
1258
+ parameters: $parameters
1259
+ }
1260
+ ) {
1261
+ __typename
1262
+ ... on Payment {
1263
+ clientSecret
1264
+ status
1265
+ }
1266
+ ... on BadRequestError {
1267
+ code
1268
+ message
1269
+ retryable
1270
+ }
1271
+ ... on InternalError {
1272
+ code
1273
+ message
1274
+ retryable
1275
+ }
1276
+ }
1277
+ }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fragment-dev
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - fragment
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-08-11 00:00:00.000000000 Z
11
+ date: 2026-09-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: graphql