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.
- checksums.yaml +4 -4
- data/lib/fragment.schema.json +1372 -125
- data/lib/fragment_client/version.rb +1 -1
- data/lib/queries.graphql +116 -0
- 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
|
|
@@ -1241,3 +1275,85 @@ mutation CreateCustomCurrency(
|
|
|
1241
1275
|
}
|
|
1242
1276
|
}
|
|
1243
1277
|
}
|
|
1278
|
+
|
|
1279
|
+
mutation CreatePayment(
|
|
1280
|
+
$ik: SafeString!
|
|
1281
|
+
$ledgerIk: SafeString!
|
|
1282
|
+
$type: SafeString!
|
|
1283
|
+
$typeVersion: Int!
|
|
1284
|
+
$parameters: JSON
|
|
1285
|
+
) {
|
|
1286
|
+
createPayment(
|
|
1287
|
+
ik: $ik
|
|
1288
|
+
ledger: { ik: $ledgerIk }
|
|
1289
|
+
payment: { type: $type, typeVersion: $typeVersion, parameters: $parameters }
|
|
1290
|
+
) {
|
|
1291
|
+
__typename
|
|
1292
|
+
... on CreatePaymentResult {
|
|
1293
|
+
payment {
|
|
1294
|
+
clientSecret
|
|
1295
|
+
status
|
|
1296
|
+
}
|
|
1297
|
+
}
|
|
1298
|
+
... on BadRequestError {
|
|
1299
|
+
code
|
|
1300
|
+
message
|
|
1301
|
+
retryable
|
|
1302
|
+
}
|
|
1303
|
+
... on InternalError {
|
|
1304
|
+
code
|
|
1305
|
+
message
|
|
1306
|
+
retryable
|
|
1307
|
+
}
|
|
1308
|
+
}
|
|
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-
|
|
11
|
+
date: 2026-09-21 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: graphql
|