fragment-dev 2.4.0 → 2.4.1
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 +1597 -91
- data/lib/fragment_client/version.rb +1 -1
- data/lib/queries.graphql +209 -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 {
|
|
@@ -1364,3 +1428,147 @@ query ListPayments(
|
|
|
1364
1428
|
}
|
|
1365
1429
|
}
|
|
1366
1430
|
}
|
|
1431
|
+
|
|
1432
|
+
query ListPaymentMethods(
|
|
1433
|
+
$email: String!
|
|
1434
|
+
$ledgerIk: SafeString!
|
|
1435
|
+
$after: String
|
|
1436
|
+
$first: Int
|
|
1437
|
+
$before: String
|
|
1438
|
+
$last: Int
|
|
1439
|
+
) {
|
|
1440
|
+
paymentMethods(
|
|
1441
|
+
filter: { user: { email: { equalTo: $email }, ledger: { ik: $ledgerIk } } }
|
|
1442
|
+
after: $after
|
|
1443
|
+
first: $first
|
|
1444
|
+
before: $before
|
|
1445
|
+
last: $last
|
|
1446
|
+
) {
|
|
1447
|
+
nodes {
|
|
1448
|
+
__typename
|
|
1449
|
+
id
|
|
1450
|
+
created
|
|
1451
|
+
... on CardPaymentMethod {
|
|
1452
|
+
brand
|
|
1453
|
+
last4
|
|
1454
|
+
expiryMonth
|
|
1455
|
+
expiryYear
|
|
1456
|
+
}
|
|
1457
|
+
}
|
|
1458
|
+
pageInfo {
|
|
1459
|
+
hasNextPage
|
|
1460
|
+
endCursor
|
|
1461
|
+
hasPreviousPage
|
|
1462
|
+
startCursor
|
|
1463
|
+
}
|
|
1464
|
+
}
|
|
1465
|
+
}
|
|
1466
|
+
|
|
1467
|
+
query GetPaymentMethod($id: ID!) {
|
|
1468
|
+
paymentMethod(paymentMethod: { id: $id }) {
|
|
1469
|
+
__typename
|
|
1470
|
+
id
|
|
1471
|
+
created
|
|
1472
|
+
... on CardPaymentMethod {
|
|
1473
|
+
brand
|
|
1474
|
+
last4
|
|
1475
|
+
expiryMonth
|
|
1476
|
+
expiryYear
|
|
1477
|
+
}
|
|
1478
|
+
}
|
|
1479
|
+
}
|
|
1480
|
+
|
|
1481
|
+
mutation DeletePaymentMethod($id: ID!) {
|
|
1482
|
+
deletePaymentMethod(paymentMethod: { id: $id }) {
|
|
1483
|
+
__typename
|
|
1484
|
+
... on DeletePaymentMethodResult {
|
|
1485
|
+
success
|
|
1486
|
+
}
|
|
1487
|
+
... on BadRequestError {
|
|
1488
|
+
code
|
|
1489
|
+
message
|
|
1490
|
+
retryable
|
|
1491
|
+
}
|
|
1492
|
+
... on InternalError {
|
|
1493
|
+
code
|
|
1494
|
+
message
|
|
1495
|
+
retryable
|
|
1496
|
+
}
|
|
1497
|
+
}
|
|
1498
|
+
}
|
|
1499
|
+
|
|
1500
|
+
mutation CreatePaymentMethodSetup(
|
|
1501
|
+
$ik: SafeString!
|
|
1502
|
+
$ledgerIk: SafeString!
|
|
1503
|
+
$email: String!
|
|
1504
|
+
) {
|
|
1505
|
+
createPaymentMethodSetup(
|
|
1506
|
+
ik: $ik
|
|
1507
|
+
ledger: { ik: $ledgerIk }
|
|
1508
|
+
user: { email: $email }
|
|
1509
|
+
) {
|
|
1510
|
+
__typename
|
|
1511
|
+
... on CreatePaymentMethodSetupResult {
|
|
1512
|
+
paymentMethodSetup {
|
|
1513
|
+
id
|
|
1514
|
+
ik
|
|
1515
|
+
clientSecret
|
|
1516
|
+
status
|
|
1517
|
+
mode
|
|
1518
|
+
created
|
|
1519
|
+
currency {
|
|
1520
|
+
code
|
|
1521
|
+
}
|
|
1522
|
+
paymentMethod {
|
|
1523
|
+
__typename
|
|
1524
|
+
id
|
|
1525
|
+
created
|
|
1526
|
+
... on CardPaymentMethod {
|
|
1527
|
+
brand
|
|
1528
|
+
last4
|
|
1529
|
+
expiryMonth
|
|
1530
|
+
expiryYear
|
|
1531
|
+
}
|
|
1532
|
+
}
|
|
1533
|
+
}
|
|
1534
|
+
isIkReplay
|
|
1535
|
+
}
|
|
1536
|
+
... on BadRequestError {
|
|
1537
|
+
code
|
|
1538
|
+
message
|
|
1539
|
+
retryable
|
|
1540
|
+
}
|
|
1541
|
+
... on InternalError {
|
|
1542
|
+
code
|
|
1543
|
+
message
|
|
1544
|
+
retryable
|
|
1545
|
+
}
|
|
1546
|
+
}
|
|
1547
|
+
}
|
|
1548
|
+
|
|
1549
|
+
query GetPaymentMethodSetup($ik: SafeString!, $ledgerIk: SafeString!) {
|
|
1550
|
+
paymentMethodSetup(
|
|
1551
|
+
paymentMethodSetup: { ik: $ik, ledger: { ik: $ledgerIk } }
|
|
1552
|
+
) {
|
|
1553
|
+
id
|
|
1554
|
+
ik
|
|
1555
|
+
clientSecret
|
|
1556
|
+
status
|
|
1557
|
+
mode
|
|
1558
|
+
created
|
|
1559
|
+
currency {
|
|
1560
|
+
code
|
|
1561
|
+
}
|
|
1562
|
+
paymentMethod {
|
|
1563
|
+
__typename
|
|
1564
|
+
id
|
|
1565
|
+
created
|
|
1566
|
+
... on CardPaymentMethod {
|
|
1567
|
+
brand
|
|
1568
|
+
last4
|
|
1569
|
+
expiryMonth
|
|
1570
|
+
expiryYear
|
|
1571
|
+
}
|
|
1572
|
+
}
|
|
1573
|
+
}
|
|
1574
|
+
}
|
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.1
|
|
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-13 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: graphql
|