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.
- checksums.yaml +4 -4
- data/lib/fragment.schema.json +930 -413
- data/lib/fragment_client/version.rb +1 -1
- data/lib/queries.graphql +91 -9
- metadata +2 -2
data/lib/queries.graphql
CHANGED
|
@@ -94,6 +94,39 @@ mutation DeleteLedger($ledger: LedgerMatchInput!) {
|
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
96
|
|
|
97
|
+
mutation InstantiateLedgerAccount(
|
|
98
|
+
$ledger: LedgerMatchInput!
|
|
99
|
+
$path: String!
|
|
100
|
+
$parameters: Parameters
|
|
101
|
+
) {
|
|
102
|
+
instantiateLedgerAccount(
|
|
103
|
+
ledger: $ledger
|
|
104
|
+
path: $path
|
|
105
|
+
parameters: $parameters
|
|
106
|
+
) {
|
|
107
|
+
__typename
|
|
108
|
+
... on InstantiateLedgerAccountResult {
|
|
109
|
+
ledgerAccount {
|
|
110
|
+
id
|
|
111
|
+
path
|
|
112
|
+
name
|
|
113
|
+
type
|
|
114
|
+
created
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
... on BadRequestError {
|
|
118
|
+
code
|
|
119
|
+
message
|
|
120
|
+
retryable
|
|
121
|
+
}
|
|
122
|
+
... on InternalError {
|
|
123
|
+
code
|
|
124
|
+
message
|
|
125
|
+
retryable
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
|
|
97
130
|
mutation AddLedgerEntries($entries: [AddLedgerEntryInput!]!) {
|
|
98
131
|
addLedgerEntries(entries: $entries) {
|
|
99
132
|
__typename
|
|
@@ -1220,6 +1253,7 @@ mutation CreateCustomCurrency(
|
|
|
1220
1253
|
customCode: $customCode
|
|
1221
1254
|
}
|
|
1222
1255
|
) {
|
|
1256
|
+
__typename
|
|
1223
1257
|
... on CreateCustomCurrencyResult {
|
|
1224
1258
|
customCurrency {
|
|
1225
1259
|
code
|
|
@@ -1246,22 +1280,20 @@ mutation CreatePayment(
|
|
|
1246
1280
|
$ik: SafeString!
|
|
1247
1281
|
$ledgerIk: SafeString!
|
|
1248
1282
|
$type: SafeString!
|
|
1249
|
-
$typeVersion: Int
|
|
1283
|
+
$typeVersion: Int!
|
|
1250
1284
|
$parameters: JSON
|
|
1251
1285
|
) {
|
|
1252
1286
|
createPayment(
|
|
1253
1287
|
ik: $ik
|
|
1254
1288
|
ledger: { ik: $ledgerIk }
|
|
1255
|
-
payment: {
|
|
1256
|
-
type: $type
|
|
1257
|
-
typeVersion: $typeVersion
|
|
1258
|
-
parameters: $parameters
|
|
1259
|
-
}
|
|
1289
|
+
payment: { type: $type, typeVersion: $typeVersion, parameters: $parameters }
|
|
1260
1290
|
) {
|
|
1261
1291
|
__typename
|
|
1262
|
-
... on
|
|
1263
|
-
|
|
1264
|
-
|
|
1292
|
+
... on CreatePaymentResult {
|
|
1293
|
+
payment {
|
|
1294
|
+
clientSecret
|
|
1295
|
+
status
|
|
1296
|
+
}
|
|
1265
1297
|
}
|
|
1266
1298
|
... on BadRequestError {
|
|
1267
1299
|
code
|
|
@@ -1275,3 +1307,53 @@ mutation CreatePayment(
|
|
|
1275
1307
|
}
|
|
1276
1308
|
}
|
|
1277
1309
|
}
|
|
1310
|
+
|
|
1311
|
+
query GetPayment($ik: SafeString!, $ledgerIk: SafeString!) {
|
|
1312
|
+
payment(payment: { ik: $ik, ledger: { ik: $ledgerIk } }) {
|
|
1313
|
+
id
|
|
1314
|
+
ik
|
|
1315
|
+
amount
|
|
1316
|
+
currency {
|
|
1317
|
+
code
|
|
1318
|
+
name
|
|
1319
|
+
precision
|
|
1320
|
+
}
|
|
1321
|
+
status
|
|
1322
|
+
type
|
|
1323
|
+
typeVersion
|
|
1324
|
+
mode
|
|
1325
|
+
parameters
|
|
1326
|
+
created
|
|
1327
|
+
}
|
|
1328
|
+
}
|
|
1329
|
+
|
|
1330
|
+
query ListPayments(
|
|
1331
|
+
$ledgerIk: SafeString!
|
|
1332
|
+
$after: String
|
|
1333
|
+
$first: Int
|
|
1334
|
+
$before: String
|
|
1335
|
+
$filter: PaymentsFilterSet
|
|
1336
|
+
) {
|
|
1337
|
+
ledger(ledger: { ik: $ledgerIk }) {
|
|
1338
|
+
payments(after: $after, first: $first, before: $before, filter: $filter) {
|
|
1339
|
+
nodes {
|
|
1340
|
+
id
|
|
1341
|
+
ik
|
|
1342
|
+
amount
|
|
1343
|
+
currency {
|
|
1344
|
+
code
|
|
1345
|
+
}
|
|
1346
|
+
status
|
|
1347
|
+
type
|
|
1348
|
+
typeVersion
|
|
1349
|
+
created
|
|
1350
|
+
}
|
|
1351
|
+
pageInfo {
|
|
1352
|
+
hasNextPage
|
|
1353
|
+
endCursor
|
|
1354
|
+
hasPreviousPage
|
|
1355
|
+
startCursor
|
|
1356
|
+
}
|
|
1357
|
+
}
|
|
1358
|
+
}
|
|
1359
|
+
}
|
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.
|
|
4
|
+
version: 2.3.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-09-
|
|
11
|
+
date: 2026-09-21 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: graphql
|