fragment-dev 2.4.0 → 2.4.2
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 +3846 -692
- data/lib/fragment_client/version.rb +1 -1
- data/lib/queries.graphql +347 -1
- metadata +2 -2
data/lib/queries.graphql
CHANGED
|
@@ -660,6 +660,64 @@ mutation SyncCustomTxs($linkId: ID!, $txs: [CustomTxInput!]!) {
|
|
|
660
660
|
}
|
|
661
661
|
}
|
|
662
662
|
|
|
663
|
+
mutation SyncCustomAccountsByLinkIk(
|
|
664
|
+
$linkIk: SafeString!
|
|
665
|
+
$accounts: [CustomAccountInput!]!
|
|
666
|
+
) {
|
|
667
|
+
syncCustomAccounts(link: { ik: $linkIk }, accounts: $accounts) {
|
|
668
|
+
__typename
|
|
669
|
+
... on SyncCustomAccountsResult {
|
|
670
|
+
accounts {
|
|
671
|
+
id
|
|
672
|
+
externalId
|
|
673
|
+
name
|
|
674
|
+
currency {
|
|
675
|
+
code
|
|
676
|
+
customCurrencyId
|
|
677
|
+
}
|
|
678
|
+
}
|
|
679
|
+
}
|
|
680
|
+
... on BadRequestError {
|
|
681
|
+
code
|
|
682
|
+
message
|
|
683
|
+
retryable
|
|
684
|
+
}
|
|
685
|
+
... on InternalError {
|
|
686
|
+
code
|
|
687
|
+
message
|
|
688
|
+
retryable
|
|
689
|
+
}
|
|
690
|
+
}
|
|
691
|
+
}
|
|
692
|
+
|
|
693
|
+
mutation SyncCustomTxsByLinkIk($linkIk: SafeString!, $txs: [CustomTxInput!]!) {
|
|
694
|
+
syncCustomTxs(link: { ik: $linkIk }, txs: $txs) {
|
|
695
|
+
__typename
|
|
696
|
+
... on SyncCustomTxsResult {
|
|
697
|
+
txs {
|
|
698
|
+
__typename
|
|
699
|
+
linkId
|
|
700
|
+
id
|
|
701
|
+
externalId
|
|
702
|
+
externalAccountId
|
|
703
|
+
amount
|
|
704
|
+
description
|
|
705
|
+
posted
|
|
706
|
+
}
|
|
707
|
+
}
|
|
708
|
+
... on BadRequestError {
|
|
709
|
+
code
|
|
710
|
+
message
|
|
711
|
+
retryable
|
|
712
|
+
}
|
|
713
|
+
... on InternalError {
|
|
714
|
+
code
|
|
715
|
+
message
|
|
716
|
+
retryable
|
|
717
|
+
}
|
|
718
|
+
}
|
|
719
|
+
}
|
|
720
|
+
|
|
663
721
|
mutation DeleteCustomTxs($txs: [ID!]!) {
|
|
664
722
|
deleteCustomTxs(txs: $txs) {
|
|
665
723
|
__typename
|
|
@@ -1282,11 +1340,17 @@ mutation CreatePayment(
|
|
|
1282
1340
|
$type: SafeString!
|
|
1283
1341
|
$typeVersion: Int!
|
|
1284
1342
|
$parameters: JSON
|
|
1343
|
+
$paymentMethod: PaymentMethodMatchInput
|
|
1285
1344
|
) {
|
|
1286
1345
|
createPayment(
|
|
1287
1346
|
ik: $ik
|
|
1288
1347
|
ledger: { ik: $ledgerIk }
|
|
1289
|
-
payment: {
|
|
1348
|
+
payment: {
|
|
1349
|
+
type: $type
|
|
1350
|
+
typeVersion: $typeVersion
|
|
1351
|
+
parameters: $parameters
|
|
1352
|
+
paymentMethod: $paymentMethod
|
|
1353
|
+
}
|
|
1290
1354
|
) {
|
|
1291
1355
|
__typename
|
|
1292
1356
|
... on CreatePaymentResult {
|
|
@@ -1300,6 +1364,124 @@ mutation CreatePayment(
|
|
|
1300
1364
|
currency {
|
|
1301
1365
|
code
|
|
1302
1366
|
}
|
|
1367
|
+
refundedAmount
|
|
1368
|
+
refunds {
|
|
1369
|
+
nodes {
|
|
1370
|
+
id
|
|
1371
|
+
ik
|
|
1372
|
+
amount
|
|
1373
|
+
status
|
|
1374
|
+
created
|
|
1375
|
+
}
|
|
1376
|
+
}
|
|
1377
|
+
}
|
|
1378
|
+
}
|
|
1379
|
+
... on BadRequestError {
|
|
1380
|
+
code
|
|
1381
|
+
message
|
|
1382
|
+
retryable
|
|
1383
|
+
}
|
|
1384
|
+
... on InternalError {
|
|
1385
|
+
code
|
|
1386
|
+
message
|
|
1387
|
+
retryable
|
|
1388
|
+
}
|
|
1389
|
+
}
|
|
1390
|
+
}
|
|
1391
|
+
|
|
1392
|
+
mutation RetryPayment(
|
|
1393
|
+
$attemptIk: SafeString!
|
|
1394
|
+
$paymentIk: SafeString!
|
|
1395
|
+
$ledgerIk: SafeString!
|
|
1396
|
+
$paymentMethod: PaymentMethodMatchInput
|
|
1397
|
+
) {
|
|
1398
|
+
retryPayment(
|
|
1399
|
+
attemptIk: $attemptIk
|
|
1400
|
+
payment: { ik: $paymentIk, ledger: { ik: $ledgerIk } }
|
|
1401
|
+
paymentMethod: $paymentMethod
|
|
1402
|
+
) {
|
|
1403
|
+
__typename
|
|
1404
|
+
... on RetryPaymentResult {
|
|
1405
|
+
isIkReplay
|
|
1406
|
+
attempt {
|
|
1407
|
+
id
|
|
1408
|
+
status
|
|
1409
|
+
}
|
|
1410
|
+
payment {
|
|
1411
|
+
id
|
|
1412
|
+
ik
|
|
1413
|
+
status
|
|
1414
|
+
amount
|
|
1415
|
+
mode
|
|
1416
|
+
currency {
|
|
1417
|
+
code
|
|
1418
|
+
}
|
|
1419
|
+
refundedAmount
|
|
1420
|
+
refunds {
|
|
1421
|
+
nodes {
|
|
1422
|
+
id
|
|
1423
|
+
ik
|
|
1424
|
+
amount
|
|
1425
|
+
status
|
|
1426
|
+
created
|
|
1427
|
+
}
|
|
1428
|
+
}
|
|
1429
|
+
}
|
|
1430
|
+
}
|
|
1431
|
+
... on BadRequestError {
|
|
1432
|
+
code
|
|
1433
|
+
message
|
|
1434
|
+
retryable
|
|
1435
|
+
}
|
|
1436
|
+
... on InternalError {
|
|
1437
|
+
code
|
|
1438
|
+
message
|
|
1439
|
+
retryable
|
|
1440
|
+
}
|
|
1441
|
+
}
|
|
1442
|
+
}
|
|
1443
|
+
|
|
1444
|
+
mutation RefundPayment(
|
|
1445
|
+
$ik: SafeString!
|
|
1446
|
+
$paymentIk: SafeString!
|
|
1447
|
+
$ledgerIk: SafeString!
|
|
1448
|
+
$amount: Int96!
|
|
1449
|
+
$parameters: JSON
|
|
1450
|
+
) {
|
|
1451
|
+
refundPayment(
|
|
1452
|
+
ik: $ik
|
|
1453
|
+
payment: { ik: $paymentIk, ledger: { ik: $ledgerIk } }
|
|
1454
|
+
refund: { amount: $amount, parameters: $parameters }
|
|
1455
|
+
) {
|
|
1456
|
+
__typename
|
|
1457
|
+
... on RefundPaymentResult {
|
|
1458
|
+
isIkReplay
|
|
1459
|
+
refund {
|
|
1460
|
+
id
|
|
1461
|
+
ik
|
|
1462
|
+
amount
|
|
1463
|
+
status
|
|
1464
|
+
created
|
|
1465
|
+
}
|
|
1466
|
+
payment {
|
|
1467
|
+
id
|
|
1468
|
+
ik
|
|
1469
|
+
status
|
|
1470
|
+
amount
|
|
1471
|
+
mode
|
|
1472
|
+
currency {
|
|
1473
|
+
code
|
|
1474
|
+
}
|
|
1475
|
+
refundedAmount
|
|
1476
|
+
refunds {
|
|
1477
|
+
nodes {
|
|
1478
|
+
id
|
|
1479
|
+
ik
|
|
1480
|
+
amount
|
|
1481
|
+
status
|
|
1482
|
+
created
|
|
1483
|
+
}
|
|
1484
|
+
}
|
|
1303
1485
|
}
|
|
1304
1486
|
}
|
|
1305
1487
|
... on BadRequestError {
|
|
@@ -1331,6 +1513,16 @@ query GetPayment($ik: SafeString!, $ledgerIk: SafeString!) {
|
|
|
1331
1513
|
mode
|
|
1332
1514
|
parameters
|
|
1333
1515
|
created
|
|
1516
|
+
refundedAmount
|
|
1517
|
+
refunds {
|
|
1518
|
+
nodes {
|
|
1519
|
+
id
|
|
1520
|
+
ik
|
|
1521
|
+
amount
|
|
1522
|
+
status
|
|
1523
|
+
created
|
|
1524
|
+
}
|
|
1525
|
+
}
|
|
1334
1526
|
}
|
|
1335
1527
|
}
|
|
1336
1528
|
|
|
@@ -1354,6 +1546,16 @@ query ListPayments(
|
|
|
1354
1546
|
type
|
|
1355
1547
|
typeVersion
|
|
1356
1548
|
created
|
|
1549
|
+
refundedAmount
|
|
1550
|
+
refunds {
|
|
1551
|
+
nodes {
|
|
1552
|
+
id
|
|
1553
|
+
ik
|
|
1554
|
+
amount
|
|
1555
|
+
status
|
|
1556
|
+
created
|
|
1557
|
+
}
|
|
1558
|
+
}
|
|
1357
1559
|
}
|
|
1358
1560
|
pageInfo {
|
|
1359
1561
|
hasNextPage
|
|
@@ -1364,3 +1566,147 @@ query ListPayments(
|
|
|
1364
1566
|
}
|
|
1365
1567
|
}
|
|
1366
1568
|
}
|
|
1569
|
+
|
|
1570
|
+
query ListPaymentMethods(
|
|
1571
|
+
$email: String!
|
|
1572
|
+
$ledgerIk: SafeString!
|
|
1573
|
+
$after: String
|
|
1574
|
+
$first: Int
|
|
1575
|
+
$before: String
|
|
1576
|
+
$last: Int
|
|
1577
|
+
) {
|
|
1578
|
+
paymentMethods(
|
|
1579
|
+
filter: { user: { email: { equalTo: $email }, ledger: { ik: $ledgerIk } } }
|
|
1580
|
+
after: $after
|
|
1581
|
+
first: $first
|
|
1582
|
+
before: $before
|
|
1583
|
+
last: $last
|
|
1584
|
+
) {
|
|
1585
|
+
nodes {
|
|
1586
|
+
__typename
|
|
1587
|
+
id
|
|
1588
|
+
created
|
|
1589
|
+
... on CardPaymentMethod {
|
|
1590
|
+
brand
|
|
1591
|
+
last4
|
|
1592
|
+
expiryMonth
|
|
1593
|
+
expiryYear
|
|
1594
|
+
}
|
|
1595
|
+
}
|
|
1596
|
+
pageInfo {
|
|
1597
|
+
hasNextPage
|
|
1598
|
+
endCursor
|
|
1599
|
+
hasPreviousPage
|
|
1600
|
+
startCursor
|
|
1601
|
+
}
|
|
1602
|
+
}
|
|
1603
|
+
}
|
|
1604
|
+
|
|
1605
|
+
query GetPaymentMethod($id: ID!) {
|
|
1606
|
+
paymentMethod(paymentMethod: { id: $id }) {
|
|
1607
|
+
__typename
|
|
1608
|
+
id
|
|
1609
|
+
created
|
|
1610
|
+
... on CardPaymentMethod {
|
|
1611
|
+
brand
|
|
1612
|
+
last4
|
|
1613
|
+
expiryMonth
|
|
1614
|
+
expiryYear
|
|
1615
|
+
}
|
|
1616
|
+
}
|
|
1617
|
+
}
|
|
1618
|
+
|
|
1619
|
+
mutation DeletePaymentMethod($id: ID!) {
|
|
1620
|
+
deletePaymentMethod(paymentMethod: { id: $id }) {
|
|
1621
|
+
__typename
|
|
1622
|
+
... on DeletePaymentMethodResult {
|
|
1623
|
+
success
|
|
1624
|
+
}
|
|
1625
|
+
... on BadRequestError {
|
|
1626
|
+
code
|
|
1627
|
+
message
|
|
1628
|
+
retryable
|
|
1629
|
+
}
|
|
1630
|
+
... on InternalError {
|
|
1631
|
+
code
|
|
1632
|
+
message
|
|
1633
|
+
retryable
|
|
1634
|
+
}
|
|
1635
|
+
}
|
|
1636
|
+
}
|
|
1637
|
+
|
|
1638
|
+
mutation CreatePaymentMethodSetup(
|
|
1639
|
+
$ik: SafeString!
|
|
1640
|
+
$ledgerIk: SafeString!
|
|
1641
|
+
$email: String!
|
|
1642
|
+
) {
|
|
1643
|
+
createPaymentMethodSetup(
|
|
1644
|
+
ik: $ik
|
|
1645
|
+
ledger: { ik: $ledgerIk }
|
|
1646
|
+
user: { email: $email }
|
|
1647
|
+
) {
|
|
1648
|
+
__typename
|
|
1649
|
+
... on CreatePaymentMethodSetupResult {
|
|
1650
|
+
paymentMethodSetup {
|
|
1651
|
+
id
|
|
1652
|
+
ik
|
|
1653
|
+
clientSecret
|
|
1654
|
+
status
|
|
1655
|
+
mode
|
|
1656
|
+
created
|
|
1657
|
+
currency {
|
|
1658
|
+
code
|
|
1659
|
+
}
|
|
1660
|
+
paymentMethod {
|
|
1661
|
+
__typename
|
|
1662
|
+
id
|
|
1663
|
+
created
|
|
1664
|
+
... on CardPaymentMethod {
|
|
1665
|
+
brand
|
|
1666
|
+
last4
|
|
1667
|
+
expiryMonth
|
|
1668
|
+
expiryYear
|
|
1669
|
+
}
|
|
1670
|
+
}
|
|
1671
|
+
}
|
|
1672
|
+
isIkReplay
|
|
1673
|
+
}
|
|
1674
|
+
... on BadRequestError {
|
|
1675
|
+
code
|
|
1676
|
+
message
|
|
1677
|
+
retryable
|
|
1678
|
+
}
|
|
1679
|
+
... on InternalError {
|
|
1680
|
+
code
|
|
1681
|
+
message
|
|
1682
|
+
retryable
|
|
1683
|
+
}
|
|
1684
|
+
}
|
|
1685
|
+
}
|
|
1686
|
+
|
|
1687
|
+
query GetPaymentMethodSetup($ik: SafeString!, $ledgerIk: SafeString!) {
|
|
1688
|
+
paymentMethodSetup(
|
|
1689
|
+
paymentMethodSetup: { ik: $ik, ledger: { ik: $ledgerIk } }
|
|
1690
|
+
) {
|
|
1691
|
+
id
|
|
1692
|
+
ik
|
|
1693
|
+
clientSecret
|
|
1694
|
+
status
|
|
1695
|
+
mode
|
|
1696
|
+
created
|
|
1697
|
+
currency {
|
|
1698
|
+
code
|
|
1699
|
+
}
|
|
1700
|
+
paymentMethod {
|
|
1701
|
+
__typename
|
|
1702
|
+
id
|
|
1703
|
+
created
|
|
1704
|
+
... on CardPaymentMethod {
|
|
1705
|
+
brand
|
|
1706
|
+
last4
|
|
1707
|
+
expiryMonth
|
|
1708
|
+
expiryYear
|
|
1709
|
+
}
|
|
1710
|
+
}
|
|
1711
|
+
}
|
|
1712
|
+
}
|
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.
|
|
4
|
+
version: 2.4.2
|
|
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-10-26 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: graphql
|