fragment-python 1.2.0__tar.gz → 1.4.0__tar.gz
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.
- {fragment_python-1.2.0 → fragment_python-1.4.0}/PKG-INFO +2 -1
- {fragment_python-1.2.0 → fragment_python-1.4.0}/fragment/sdk/__init__.py +52 -2
- {fragment_python-1.2.0 → fragment_python-1.4.0}/fragment/sdk/client.py +141 -5
- {fragment_python-1.2.0/fragment/sync_sdk → fragment_python-1.4.0/fragment/sdk}/create_payment.py +24 -9
- {fragment_python-1.2.0 → fragment_python-1.4.0}/fragment/sdk/enums.py +17 -0
- fragment_python-1.4.0/fragment/sdk/get_payment.py +36 -0
- {fragment_python-1.2.0/fragment/sync_sdk → fragment_python-1.4.0/fragment/sdk}/input_types.py +80 -14
- fragment_python-1.4.0/fragment/sdk/instantiate_ledger_account.py +54 -0
- fragment_python-1.4.0/fragment/sdk/list_payments.py +50 -0
- {fragment_python-1.2.0 → fragment_python-1.4.0}/fragment/std_queries/queries.graphql +98 -9
- {fragment_python-1.2.0 → fragment_python-1.4.0}/fragment/sync_sdk/__init__.py +52 -2
- {fragment_python-1.2.0 → fragment_python-1.4.0}/fragment/sync_sdk/client.py +141 -5
- {fragment_python-1.2.0/fragment/sdk → fragment_python-1.4.0/fragment/sync_sdk}/create_payment.py +24 -9
- {fragment_python-1.2.0 → fragment_python-1.4.0}/fragment/sync_sdk/enums.py +17 -0
- fragment_python-1.4.0/fragment/sync_sdk/get_payment.py +36 -0
- {fragment_python-1.2.0/fragment/sdk → fragment_python-1.4.0/fragment/sync_sdk}/input_types.py +80 -14
- fragment_python-1.4.0/fragment/sync_sdk/instantiate_ledger_account.py +54 -0
- fragment_python-1.4.0/fragment/sync_sdk/list_payments.py +50 -0
- {fragment_python-1.2.0 → fragment_python-1.4.0}/pyproject.toml +3 -3
- {fragment_python-1.2.0 → fragment_python-1.4.0}/LICENSE +0 -0
- {fragment_python-1.2.0 → fragment_python-1.4.0}/README.md +0 -0
- {fragment_python-1.2.0 → fragment_python-1.4.0}/fragment/__init__.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.4.0}/fragment/client/__init__.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.4.0}/fragment/client/async_client.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.4.0}/fragment/client/sync_client.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.4.0}/fragment/codegen/__init__.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.4.0}/fragment/codegen/helpers.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.4.0}/fragment/codegen/main.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.4.0}/fragment/codegen/plugins/__init__.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.4.0}/fragment/codegen/plugins/generate_client_method.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.4.0}/fragment/codegen/plugins/generate_typed_entries.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.4.0}/fragment/codegen/plugins/get_file_comment.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.4.0}/fragment/codegen/typed_entries.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.4.0}/fragment/exceptions.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.4.0}/fragment/logger.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.4.0}/fragment/py.typed +0 -0
- {fragment_python-1.2.0 → fragment_python-1.4.0}/fragment/sdk/add_ledger_entries.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.4.0}/fragment/sdk/add_ledger_entry.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.4.0}/fragment/sdk/add_ledger_entry_runtime.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.4.0}/fragment/sdk/async_client.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.4.0}/fragment/sdk/base_model.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.4.0}/fragment/sdk/create_custom_currency.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.4.0}/fragment/sdk/create_custom_link.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.4.0}/fragment/sdk/create_ledger.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.4.0}/fragment/sdk/delete_custom_txs.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.4.0}/fragment/sdk/delete_ledger.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.4.0}/fragment/sdk/delete_schema.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.4.0}/fragment/sdk/get_account_data_migrations.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.4.0}/fragment/sdk/get_entries_to_migrate_for_ledger_account_data_migration.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.4.0}/fragment/sdk/get_entries_to_migrate_for_ledger_entry_data_migration.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.4.0}/fragment/sdk/get_entry_data_migrations.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.4.0}/fragment/sdk/get_ledger.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.4.0}/fragment/sdk/get_ledger_account_balance.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.4.0}/fragment/sdk/get_ledger_account_balance_with_child_rollup.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.4.0}/fragment/sdk/get_ledger_account_lines.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.4.0}/fragment/sdk/get_ledger_entry.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.4.0}/fragment/sdk/get_schema.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.4.0}/fragment/sdk/get_workspace.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.4.0}/fragment/sdk/list_ledger_account_balances.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.4.0}/fragment/sdk/list_ledger_accounts.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.4.0}/fragment/sdk/list_ledger_entries.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.4.0}/fragment/sdk/list_ledger_entry_group_balances.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.4.0}/fragment/sdk/list_multi_currency_ledger_account_balances.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.4.0}/fragment/sdk/migrate_ledger_entry.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.4.0}/fragment/sdk/reconcile_tx.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.4.0}/fragment/sdk/reconcile_tx_runtime.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.4.0}/fragment/sdk/reverse_ledger_entry.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.4.0}/fragment/sdk/store_schema.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.4.0}/fragment/sdk/sync_custom_accounts.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.4.0}/fragment/sdk/sync_custom_txs.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.4.0}/fragment/sdk/typed_entries.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.4.0}/fragment/sdk/update_ledger.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.4.0}/fragment/sdk/update_ledger_entry.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.4.0}/fragment/sync_sdk/add_ledger_entries.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.4.0}/fragment/sync_sdk/add_ledger_entry.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.4.0}/fragment/sync_sdk/add_ledger_entry_runtime.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.4.0}/fragment/sync_sdk/async_client.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.4.0}/fragment/sync_sdk/base_model.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.4.0}/fragment/sync_sdk/create_custom_currency.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.4.0}/fragment/sync_sdk/create_custom_link.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.4.0}/fragment/sync_sdk/create_ledger.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.4.0}/fragment/sync_sdk/delete_custom_txs.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.4.0}/fragment/sync_sdk/delete_ledger.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.4.0}/fragment/sync_sdk/delete_schema.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.4.0}/fragment/sync_sdk/get_account_data_migrations.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.4.0}/fragment/sync_sdk/get_entries_to_migrate_for_ledger_account_data_migration.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.4.0}/fragment/sync_sdk/get_entries_to_migrate_for_ledger_entry_data_migration.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.4.0}/fragment/sync_sdk/get_entry_data_migrations.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.4.0}/fragment/sync_sdk/get_ledger.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.4.0}/fragment/sync_sdk/get_ledger_account_balance.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.4.0}/fragment/sync_sdk/get_ledger_account_balance_with_child_rollup.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.4.0}/fragment/sync_sdk/get_ledger_account_lines.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.4.0}/fragment/sync_sdk/get_ledger_entry.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.4.0}/fragment/sync_sdk/get_schema.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.4.0}/fragment/sync_sdk/get_workspace.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.4.0}/fragment/sync_sdk/list_ledger_account_balances.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.4.0}/fragment/sync_sdk/list_ledger_accounts.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.4.0}/fragment/sync_sdk/list_ledger_entries.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.4.0}/fragment/sync_sdk/list_ledger_entry_group_balances.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.4.0}/fragment/sync_sdk/list_multi_currency_ledger_account_balances.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.4.0}/fragment/sync_sdk/migrate_ledger_entry.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.4.0}/fragment/sync_sdk/reconcile_tx.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.4.0}/fragment/sync_sdk/reconcile_tx_runtime.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.4.0}/fragment/sync_sdk/reverse_ledger_entry.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.4.0}/fragment/sync_sdk/store_schema.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.4.0}/fragment/sync_sdk/sync_client.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.4.0}/fragment/sync_sdk/sync_custom_accounts.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.4.0}/fragment/sync_sdk/sync_custom_txs.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.4.0}/fragment/sync_sdk/typed_entries.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.4.0}/fragment/sync_sdk/update_ledger.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.4.0}/fragment/sync_sdk/update_ledger_entry.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: fragment-python
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.4.0
|
|
4
4
|
Summary: Python SDK for https://fragment.dev/
|
|
5
5
|
License: Apache 2.0
|
|
6
6
|
License-File: LICENSE
|
|
@@ -13,6 +13,7 @@ Classifier: Programming Language :: Python :: 3.11
|
|
|
13
13
|
Classifier: Programming Language :: Python :: 3.12
|
|
14
14
|
Classifier: Programming Language :: Python :: 3.13
|
|
15
15
|
Classifier: Programming Language :: Python :: 3.14
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.15
|
|
16
17
|
Requires-Dist: ariadne-codegen (>=0.17.2,<0.18.0)
|
|
17
18
|
Requires-Dist: authlib (>=1.6.12,<2.0.0)
|
|
18
19
|
Requires-Dist: click (>=8.1.7,<9.0.0)
|
|
@@ -58,8 +58,10 @@ from .create_ledger import (
|
|
|
58
58
|
from .create_payment import (
|
|
59
59
|
CreatePayment,
|
|
60
60
|
CreatePaymentCreatePaymentBadRequestError,
|
|
61
|
+
CreatePaymentCreatePaymentCreatePaymentResult,
|
|
62
|
+
CreatePaymentCreatePaymentCreatePaymentResultPayment,
|
|
63
|
+
CreatePaymentCreatePaymentCreatePaymentResultPaymentCurrency,
|
|
61
64
|
CreatePaymentCreatePaymentInternalError,
|
|
62
|
-
CreatePaymentCreatePaymentPayment,
|
|
63
65
|
)
|
|
64
66
|
from .delete_custom_txs import (
|
|
65
67
|
DeleteCustomTxs,
|
|
@@ -96,6 +98,8 @@ from .enums import (
|
|
|
96
98
|
LedgerMigrationStatus,
|
|
97
99
|
LedgerTypes,
|
|
98
100
|
LinkType,
|
|
101
|
+
PaymentCurrencyCode,
|
|
102
|
+
PaymentMode,
|
|
99
103
|
PaymentStatus,
|
|
100
104
|
PostLinesAs,
|
|
101
105
|
ReadBalanceConsistencyMode,
|
|
@@ -103,6 +107,7 @@ from .enums import (
|
|
|
103
107
|
SchemaConsistencyMode,
|
|
104
108
|
SchemaLedgerAccountStatus,
|
|
105
109
|
SchemaLedgerEntryStatus,
|
|
110
|
+
SchemaPaymentAccountingEventKey,
|
|
106
111
|
SchemaPaymentTypeDirection,
|
|
107
112
|
SchemaPaymentTypeStatus,
|
|
108
113
|
SchemaSystemLineKind,
|
|
@@ -181,6 +186,7 @@ from .get_ledger_entry import (
|
|
|
181
186
|
GetLedgerEntryLedgerEntryLinesNodes,
|
|
182
187
|
GetLedgerEntryLedgerEntryLinesNodesAccount,
|
|
183
188
|
)
|
|
189
|
+
from .get_payment import GetPayment, GetPaymentPayment, GetPaymentPaymentCurrency
|
|
184
190
|
from .get_schema import GetSchema, GetSchemaSchema, GetSchemaSchemaVersion
|
|
185
191
|
from .get_workspace import GetWorkspace, GetWorkspaceWorkspace
|
|
186
192
|
from .input_types import (
|
|
@@ -238,9 +244,14 @@ from .input_types import (
|
|
|
238
244
|
LedgerTypeFilter,
|
|
239
245
|
LinkMatchInput,
|
|
240
246
|
MigrateLedgerEntryInput,
|
|
247
|
+
PaymentMatchInput,
|
|
248
|
+
PaymentsFilterSet,
|
|
249
|
+
PaymentStatusFilter,
|
|
241
250
|
SceneEntryInput,
|
|
242
251
|
SceneEventInput,
|
|
243
252
|
SceneInput,
|
|
253
|
+
ScenePaymentEventInput,
|
|
254
|
+
ScenePaymentInput,
|
|
244
255
|
SchemaConditionInput,
|
|
245
256
|
SchemaConsistencyConfigInput,
|
|
246
257
|
SchemaCurrencyMatchInput,
|
|
@@ -276,6 +287,13 @@ from .input_types import (
|
|
|
276
287
|
UpdateLedgerInput,
|
|
277
288
|
UpdateLedgerLineInput,
|
|
278
289
|
)
|
|
290
|
+
from .instantiate_ledger_account import (
|
|
291
|
+
InstantiateLedgerAccount,
|
|
292
|
+
InstantiateLedgerAccountInstantiateLedgerAccountBadRequestError,
|
|
293
|
+
InstantiateLedgerAccountInstantiateLedgerAccountInstantiateLedgerAccountResult,
|
|
294
|
+
InstantiateLedgerAccountInstantiateLedgerAccountInstantiateLedgerAccountResultLedgerAccount,
|
|
295
|
+
InstantiateLedgerAccountInstantiateLedgerAccountInternalError,
|
|
296
|
+
)
|
|
279
297
|
from .list_ledger_account_balances import (
|
|
280
298
|
ListLedgerAccountBalances,
|
|
281
299
|
ListLedgerAccountBalancesLedger,
|
|
@@ -325,6 +343,14 @@ from .list_multi_currency_ledger_account_balances import (
|
|
|
325
343
|
ListMultiCurrencyLedgerAccountBalancesLedgerLedgerAccountsNodesOwnBalancesNodesCurrency,
|
|
326
344
|
ListMultiCurrencyLedgerAccountBalancesLedgerLedgerAccountsPageInfo,
|
|
327
345
|
)
|
|
346
|
+
from .list_payments import (
|
|
347
|
+
ListPayments,
|
|
348
|
+
ListPaymentsLedger,
|
|
349
|
+
ListPaymentsLedgerPayments,
|
|
350
|
+
ListPaymentsLedgerPaymentsNodes,
|
|
351
|
+
ListPaymentsLedgerPaymentsNodesCurrency,
|
|
352
|
+
ListPaymentsLedgerPaymentsPageInfo,
|
|
353
|
+
)
|
|
328
354
|
from .migrate_ledger_entry import (
|
|
329
355
|
MigrateLedgerEntry,
|
|
330
356
|
MigrateLedgerEntryMigrateLedgerEntryBadRequestError,
|
|
@@ -471,8 +497,10 @@ __all__ = [
|
|
|
471
497
|
"CreateLedgerInput",
|
|
472
498
|
"CreatePayment",
|
|
473
499
|
"CreatePaymentCreatePaymentBadRequestError",
|
|
500
|
+
"CreatePaymentCreatePaymentCreatePaymentResult",
|
|
501
|
+
"CreatePaymentCreatePaymentCreatePaymentResultPayment",
|
|
502
|
+
"CreatePaymentCreatePaymentCreatePaymentResultPaymentCurrency",
|
|
474
503
|
"CreatePaymentCreatePaymentInternalError",
|
|
475
|
-
"CreatePaymentCreatePaymentPayment",
|
|
476
504
|
"CreatePaymentInput",
|
|
477
505
|
"CurrencyCode",
|
|
478
506
|
"CurrencyFilter",
|
|
@@ -559,6 +587,9 @@ __all__ = [
|
|
|
559
587
|
"GetLedgerEntryLedgerEntryLinesNodes",
|
|
560
588
|
"GetLedgerEntryLedgerEntryLinesNodesAccount",
|
|
561
589
|
"GetLedgerLedger",
|
|
590
|
+
"GetPayment",
|
|
591
|
+
"GetPaymentPayment",
|
|
592
|
+
"GetPaymentPaymentCurrency",
|
|
562
593
|
"GetSchema",
|
|
563
594
|
"GetSchemaSchema",
|
|
564
595
|
"GetSchemaSchemaVersion",
|
|
@@ -572,6 +603,11 @@ __all__ = [
|
|
|
572
603
|
"GroupNotFilter",
|
|
573
604
|
"GroupReconciliationParametersInput",
|
|
574
605
|
"IncreaseEnv",
|
|
606
|
+
"InstantiateLedgerAccount",
|
|
607
|
+
"InstantiateLedgerAccountInstantiateLedgerAccountBadRequestError",
|
|
608
|
+
"InstantiateLedgerAccountInstantiateLedgerAccountInstantiateLedgerAccountResult",
|
|
609
|
+
"InstantiateLedgerAccountInstantiateLedgerAccountInstantiateLedgerAccountResultLedgerAccount",
|
|
610
|
+
"InstantiateLedgerAccountInstantiateLedgerAccountInternalError",
|
|
575
611
|
"Int96ConditionInput",
|
|
576
612
|
"Int96Filter",
|
|
577
613
|
"LedgerAccountClearingStatus",
|
|
@@ -649,6 +685,12 @@ __all__ = [
|
|
|
649
685
|
"ListMultiCurrencyLedgerAccountBalancesLedgerLedgerAccountsNodesOwnBalancesNodes",
|
|
650
686
|
"ListMultiCurrencyLedgerAccountBalancesLedgerLedgerAccountsNodesOwnBalancesNodesCurrency",
|
|
651
687
|
"ListMultiCurrencyLedgerAccountBalancesLedgerLedgerAccountsPageInfo",
|
|
688
|
+
"ListPayments",
|
|
689
|
+
"ListPaymentsLedger",
|
|
690
|
+
"ListPaymentsLedgerPayments",
|
|
691
|
+
"ListPaymentsLedgerPaymentsNodes",
|
|
692
|
+
"ListPaymentsLedgerPaymentsNodesCurrency",
|
|
693
|
+
"ListPaymentsLedgerPaymentsPageInfo",
|
|
652
694
|
"MigrateLedgerEntry",
|
|
653
695
|
"MigrateLedgerEntryInput",
|
|
654
696
|
"MigrateLedgerEntryMigrateLedgerEntryBadRequestError",
|
|
@@ -666,7 +708,12 @@ __all__ = [
|
|
|
666
708
|
"MigrateLedgerEntryMigrateLedgerEntryMigrateLedgerEntryResultReversingLedgerEntryLines",
|
|
667
709
|
"MigrateLedgerEntryMigrateLedgerEntryMigrateLedgerEntryResultReversingLedgerEntryLinesNodes",
|
|
668
710
|
"MigrateLedgerEntryMigrateLedgerEntryMigrateLedgerEntryResultReversingLedgerEntryLinesNodesAccount",
|
|
711
|
+
"PaymentCurrencyCode",
|
|
712
|
+
"PaymentMatchInput",
|
|
713
|
+
"PaymentMode",
|
|
669
714
|
"PaymentStatus",
|
|
715
|
+
"PaymentStatusFilter",
|
|
716
|
+
"PaymentsFilterSet",
|
|
670
717
|
"PostLinesAs",
|
|
671
718
|
"ReadBalanceConsistencyMode",
|
|
672
719
|
"ReconcileTx",
|
|
@@ -699,6 +746,8 @@ __all__ = [
|
|
|
699
746
|
"SceneEventInput",
|
|
700
747
|
"SceneEventType",
|
|
701
748
|
"SceneInput",
|
|
749
|
+
"ScenePaymentEventInput",
|
|
750
|
+
"ScenePaymentInput",
|
|
702
751
|
"SchemaConditionInput",
|
|
703
752
|
"SchemaConsistencyConfigInput",
|
|
704
753
|
"SchemaConsistencyMode",
|
|
@@ -717,6 +766,7 @@ __all__ = [
|
|
|
717
766
|
"SchemaLedgerEntryTagInput",
|
|
718
767
|
"SchemaLedgerLineInput",
|
|
719
768
|
"SchemaMatchInput",
|
|
769
|
+
"SchemaPaymentAccountingEventKey",
|
|
720
770
|
"SchemaPaymentAccountingInput",
|
|
721
771
|
"SchemaPaymentEntryInput",
|
|
722
772
|
"SchemaPaymentInput",
|
|
@@ -27,6 +27,7 @@ from .get_ledger import GetLedger
|
|
|
27
27
|
from .get_ledger_account_balance import GetLedgerAccountBalance
|
|
28
28
|
from .get_ledger_account_lines import GetLedgerAccountLines
|
|
29
29
|
from .get_ledger_entry import GetLedgerEntry
|
|
30
|
+
from .get_payment import GetPayment
|
|
30
31
|
from .get_schema import GetSchema
|
|
31
32
|
from .get_workspace import GetWorkspace
|
|
32
33
|
from .input_types import (
|
|
@@ -45,11 +46,13 @@ from .input_types import (
|
|
|
45
46
|
LedgerLineInput,
|
|
46
47
|
LedgerLinesFilterSet,
|
|
47
48
|
LedgerMatchInput,
|
|
49
|
+
PaymentsFilterSet,
|
|
48
50
|
SchemaInput,
|
|
49
51
|
SchemaMatchInput,
|
|
50
52
|
UpdateLedgerEntryInput,
|
|
51
53
|
UpdateLedgerInput,
|
|
52
54
|
)
|
|
55
|
+
from .instantiate_ledger_account import InstantiateLedgerAccount
|
|
53
56
|
from .list_ledger_account_balances import ListLedgerAccountBalances
|
|
54
57
|
from .list_ledger_accounts import ListLedgerAccounts
|
|
55
58
|
from .list_ledger_entries import ListLedgerEntries
|
|
@@ -57,6 +60,7 @@ from .list_ledger_entry_group_balances import ListLedgerEntryGroupBalances
|
|
|
57
60
|
from .list_multi_currency_ledger_account_balances import (
|
|
58
61
|
ListMultiCurrencyLedgerAccountBalances,
|
|
59
62
|
)
|
|
63
|
+
from .list_payments import ListPayments
|
|
60
64
|
from .migrate_ledger_entry import MigrateLedgerEntry
|
|
61
65
|
from .reconcile_tx import ReconcileTx
|
|
62
66
|
from .reconcile_tx_runtime import ReconcileTxRuntime
|
|
@@ -212,6 +216,53 @@ class Client(AsyncFragmentClient):
|
|
|
212
216
|
data = self.get_data(response)
|
|
213
217
|
return DeleteLedger.model_validate(data)
|
|
214
218
|
|
|
219
|
+
async def instantiate_ledger_account(
|
|
220
|
+
self,
|
|
221
|
+
ledger: LedgerMatchInput,
|
|
222
|
+
path: str,
|
|
223
|
+
parameters: Optional[Any] = None,
|
|
224
|
+
**kwargs: Any
|
|
225
|
+
) -> InstantiateLedgerAccount:
|
|
226
|
+
query = gql("""
|
|
227
|
+
mutation instantiateLedgerAccount($ledger: LedgerMatchInput!, $path: String!, $parameters: Parameters) {
|
|
228
|
+
instantiateLedgerAccount(ledger: $ledger, path: $path, parameters: $parameters) {
|
|
229
|
+
__typename
|
|
230
|
+
... on InstantiateLedgerAccountResult {
|
|
231
|
+
ledgerAccount {
|
|
232
|
+
id
|
|
233
|
+
path
|
|
234
|
+
name
|
|
235
|
+
type
|
|
236
|
+
created
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
... on BadRequestError {
|
|
240
|
+
code
|
|
241
|
+
message
|
|
242
|
+
retryable
|
|
243
|
+
}
|
|
244
|
+
... on InternalError {
|
|
245
|
+
code
|
|
246
|
+
message
|
|
247
|
+
retryable
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
""")
|
|
252
|
+
variables: dict[str, object] = {
|
|
253
|
+
"ledger": ledger,
|
|
254
|
+
"path": path,
|
|
255
|
+
"parameters": parameters,
|
|
256
|
+
}
|
|
257
|
+
response = await self.execute(
|
|
258
|
+
query=query,
|
|
259
|
+
operation_name="instantiateLedgerAccount",
|
|
260
|
+
variables=variables,
|
|
261
|
+
**kwargs
|
|
262
|
+
)
|
|
263
|
+
data = self.get_data(response)
|
|
264
|
+
return InstantiateLedgerAccount.model_validate(data)
|
|
265
|
+
|
|
215
266
|
async def add_ledger_entries(
|
|
216
267
|
self,
|
|
217
268
|
entries: Sequence[Union[AddLedgerEntryInput, TypedLedgerEntry]],
|
|
@@ -1793,21 +1844,30 @@ class Client(AsyncFragmentClient):
|
|
|
1793
1844
|
ik: Any,
|
|
1794
1845
|
ledger_ik: Any,
|
|
1795
1846
|
type_: Any,
|
|
1796
|
-
type_version:
|
|
1847
|
+
type_version: int,
|
|
1797
1848
|
parameters: Optional[Any] = None,
|
|
1798
1849
|
**kwargs: Any
|
|
1799
1850
|
) -> CreatePayment:
|
|
1800
1851
|
query = gql("""
|
|
1801
|
-
mutation createPayment($ik: SafeString!, $ledgerIk: SafeString!, $type: SafeString!, $typeVersion: Int
|
|
1852
|
+
mutation createPayment($ik: SafeString!, $ledgerIk: SafeString!, $type: SafeString!, $typeVersion: Int!, $parameters: JSON) {
|
|
1802
1853
|
createPayment(
|
|
1803
1854
|
ik: $ik
|
|
1804
1855
|
ledger: {ik: $ledgerIk}
|
|
1805
1856
|
payment: {type: $type, typeVersion: $typeVersion, parameters: $parameters}
|
|
1806
1857
|
) {
|
|
1807
1858
|
__typename
|
|
1808
|
-
... on
|
|
1809
|
-
|
|
1810
|
-
|
|
1859
|
+
... on CreatePaymentResult {
|
|
1860
|
+
payment {
|
|
1861
|
+
id
|
|
1862
|
+
ik
|
|
1863
|
+
clientSecret
|
|
1864
|
+
status
|
|
1865
|
+
amount
|
|
1866
|
+
mode
|
|
1867
|
+
currency {
|
|
1868
|
+
code
|
|
1869
|
+
}
|
|
1870
|
+
}
|
|
1811
1871
|
}
|
|
1812
1872
|
... on BadRequestError {
|
|
1813
1873
|
code
|
|
@@ -1834,3 +1894,79 @@ class Client(AsyncFragmentClient):
|
|
|
1834
1894
|
)
|
|
1835
1895
|
data = self.get_data(response)
|
|
1836
1896
|
return CreatePayment.model_validate(data)
|
|
1897
|
+
|
|
1898
|
+
async def get_payment(self, ik: Any, ledger_ik: Any, **kwargs: Any) -> GetPayment:
|
|
1899
|
+
query = gql("""
|
|
1900
|
+
query getPayment($ik: SafeString!, $ledgerIk: SafeString!) {
|
|
1901
|
+
payment(payment: {ik: $ik, ledger: {ik: $ledgerIk}}) {
|
|
1902
|
+
id
|
|
1903
|
+
ik
|
|
1904
|
+
amount
|
|
1905
|
+
currency {
|
|
1906
|
+
code
|
|
1907
|
+
name
|
|
1908
|
+
precision
|
|
1909
|
+
}
|
|
1910
|
+
status
|
|
1911
|
+
type
|
|
1912
|
+
typeVersion
|
|
1913
|
+
mode
|
|
1914
|
+
parameters
|
|
1915
|
+
created
|
|
1916
|
+
}
|
|
1917
|
+
}
|
|
1918
|
+
""")
|
|
1919
|
+
variables: dict[str, object] = {"ik": ik, "ledgerIk": ledger_ik}
|
|
1920
|
+
response = await self.execute(
|
|
1921
|
+
query=query, operation_name="getPayment", variables=variables, **kwargs
|
|
1922
|
+
)
|
|
1923
|
+
data = self.get_data(response)
|
|
1924
|
+
return GetPayment.model_validate(data)
|
|
1925
|
+
|
|
1926
|
+
async def list_payments(
|
|
1927
|
+
self,
|
|
1928
|
+
ledger_ik: Any,
|
|
1929
|
+
after: Optional[str] = None,
|
|
1930
|
+
first: Optional[int] = None,
|
|
1931
|
+
before: Optional[str] = None,
|
|
1932
|
+
filter_: Optional[PaymentsFilterSet] = None,
|
|
1933
|
+
**kwargs: Any
|
|
1934
|
+
) -> ListPayments:
|
|
1935
|
+
query = gql("""
|
|
1936
|
+
query listPayments($ledgerIk: SafeString!, $after: String, $first: Int, $before: String, $filter: PaymentsFilterSet) {
|
|
1937
|
+
ledger(ledger: {ik: $ledgerIk}) {
|
|
1938
|
+
payments(after: $after, first: $first, before: $before, filter: $filter) {
|
|
1939
|
+
nodes {
|
|
1940
|
+
id
|
|
1941
|
+
ik
|
|
1942
|
+
amount
|
|
1943
|
+
currency {
|
|
1944
|
+
code
|
|
1945
|
+
}
|
|
1946
|
+
status
|
|
1947
|
+
type
|
|
1948
|
+
typeVersion
|
|
1949
|
+
created
|
|
1950
|
+
}
|
|
1951
|
+
pageInfo {
|
|
1952
|
+
hasNextPage
|
|
1953
|
+
endCursor
|
|
1954
|
+
hasPreviousPage
|
|
1955
|
+
startCursor
|
|
1956
|
+
}
|
|
1957
|
+
}
|
|
1958
|
+
}
|
|
1959
|
+
}
|
|
1960
|
+
""")
|
|
1961
|
+
variables: dict[str, object] = {
|
|
1962
|
+
"ledgerIk": ledger_ik,
|
|
1963
|
+
"after": after,
|
|
1964
|
+
"first": first,
|
|
1965
|
+
"before": before,
|
|
1966
|
+
"filter": filter_,
|
|
1967
|
+
}
|
|
1968
|
+
response = await self.execute(
|
|
1969
|
+
query=query, operation_name="listPayments", variables=variables, **kwargs
|
|
1970
|
+
)
|
|
1971
|
+
data = self.get_data(response)
|
|
1972
|
+
return ListPayments.model_validate(data)
|
{fragment_python-1.2.0/fragment/sync_sdk → fragment_python-1.4.0/fragment/sdk}/create_payment.py
RENAMED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
# Generated by fragment (with the help of ariadne-codegen)
|
|
2
2
|
# Source: queries/
|
|
3
3
|
|
|
4
|
-
from typing import Literal, Union
|
|
4
|
+
from typing import Any, Literal, Union
|
|
5
5
|
|
|
6
6
|
from pydantic import Field
|
|
7
7
|
|
|
8
8
|
from .base_model import BaseModel
|
|
9
|
-
from .enums import PaymentStatus
|
|
9
|
+
from .enums import PaymentCurrencyCode, PaymentMode, PaymentStatus
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
class CreatePayment(BaseModel):
|
|
13
13
|
create_payment: Union[
|
|
14
14
|
"CreatePaymentCreatePaymentBadRequestError",
|
|
15
|
+
"CreatePaymentCreatePaymentCreatePaymentResult",
|
|
15
16
|
"CreatePaymentCreatePaymentInternalError",
|
|
16
|
-
"CreatePaymentCreatePaymentPayment",
|
|
17
17
|
] = Field(alias="createPayment", discriminator="typename__")
|
|
18
18
|
|
|
19
19
|
|
|
@@ -24,6 +24,25 @@ class CreatePaymentCreatePaymentBadRequestError(BaseModel):
|
|
|
24
24
|
retryable: bool
|
|
25
25
|
|
|
26
26
|
|
|
27
|
+
class CreatePaymentCreatePaymentCreatePaymentResult(BaseModel):
|
|
28
|
+
typename__: Literal["CreatePaymentResult"] = Field(alias="__typename")
|
|
29
|
+
payment: "CreatePaymentCreatePaymentCreatePaymentResultPayment"
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
class CreatePaymentCreatePaymentCreatePaymentResultPayment(BaseModel):
|
|
33
|
+
id: str
|
|
34
|
+
ik: Any
|
|
35
|
+
client_secret: str = Field(alias="clientSecret")
|
|
36
|
+
status: PaymentStatus
|
|
37
|
+
amount: Any
|
|
38
|
+
mode: PaymentMode
|
|
39
|
+
currency: "CreatePaymentCreatePaymentCreatePaymentResultPaymentCurrency"
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
class CreatePaymentCreatePaymentCreatePaymentResultPaymentCurrency(BaseModel):
|
|
43
|
+
code: PaymentCurrencyCode
|
|
44
|
+
|
|
45
|
+
|
|
27
46
|
class CreatePaymentCreatePaymentInternalError(BaseModel):
|
|
28
47
|
typename__: Literal["InternalError"] = Field(alias="__typename")
|
|
29
48
|
code: str
|
|
@@ -31,10 +50,6 @@ class CreatePaymentCreatePaymentInternalError(BaseModel):
|
|
|
31
50
|
retryable: bool
|
|
32
51
|
|
|
33
52
|
|
|
34
|
-
class CreatePaymentCreatePaymentPayment(BaseModel):
|
|
35
|
-
typename__: Literal["Payment"] = Field(alias="__typename")
|
|
36
|
-
client_secret: str = Field(alias="clientSecret")
|
|
37
|
-
status: PaymentStatus
|
|
38
|
-
|
|
39
|
-
|
|
40
53
|
CreatePayment.model_rebuild()
|
|
54
|
+
CreatePaymentCreatePaymentCreatePaymentResult.model_rebuild()
|
|
55
|
+
CreatePaymentCreatePaymentCreatePaymentResultPayment.model_rebuild()
|
|
@@ -149,6 +149,7 @@ class CurrencyCode(str, Enum):
|
|
|
149
149
|
SEK = "SEK"
|
|
150
150
|
SGD = "SGD"
|
|
151
151
|
SHP = "SHP"
|
|
152
|
+
SLE = "SLE"
|
|
152
153
|
SLL = "SLL"
|
|
153
154
|
SOL = "SOL"
|
|
154
155
|
SOS = "SOS"
|
|
@@ -260,7 +261,17 @@ class LinkType(str, Enum):
|
|
|
260
261
|
UnitLink = "UnitLink"
|
|
261
262
|
|
|
262
263
|
|
|
264
|
+
class PaymentCurrencyCode(str, Enum):
|
|
265
|
+
USD = "USD"
|
|
266
|
+
|
|
267
|
+
|
|
268
|
+
class PaymentMode(str, Enum):
|
|
269
|
+
production = "production"
|
|
270
|
+
sandbox = "sandbox"
|
|
271
|
+
|
|
272
|
+
|
|
263
273
|
class PaymentStatus(str, Enum):
|
|
274
|
+
accepted = "accepted"
|
|
264
275
|
needs_payment_method = "needs_payment_method"
|
|
265
276
|
processing = "processing"
|
|
266
277
|
settled = "settled"
|
|
@@ -280,6 +291,7 @@ class ReadBalanceConsistencyMode(str, Enum):
|
|
|
280
291
|
|
|
281
292
|
class SceneEventType(str, Enum):
|
|
282
293
|
entry = "entry"
|
|
294
|
+
payment = "payment"
|
|
283
295
|
|
|
284
296
|
|
|
285
297
|
class SchemaConsistencyMode(str, Enum):
|
|
@@ -299,6 +311,11 @@ class SchemaLedgerEntryStatus(str, Enum):
|
|
|
299
311
|
disabled = "disabled"
|
|
300
312
|
|
|
301
313
|
|
|
314
|
+
class SchemaPaymentAccountingEventKey(str, Enum):
|
|
315
|
+
initiated = "initiated"
|
|
316
|
+
settled = "settled"
|
|
317
|
+
|
|
318
|
+
|
|
302
319
|
class SchemaPaymentTypeDirection(str, Enum):
|
|
303
320
|
payin = "payin"
|
|
304
321
|
payout = "payout"
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# Generated by fragment (with the help of ariadne-codegen)
|
|
2
|
+
# Source: queries/
|
|
3
|
+
|
|
4
|
+
from typing import Any, Optional
|
|
5
|
+
|
|
6
|
+
from pydantic import Field
|
|
7
|
+
|
|
8
|
+
from .base_model import BaseModel
|
|
9
|
+
from .enums import PaymentCurrencyCode, PaymentMode, PaymentStatus
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class GetPayment(BaseModel):
|
|
13
|
+
payment: Optional["GetPaymentPayment"]
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
class GetPaymentPayment(BaseModel):
|
|
17
|
+
id: str
|
|
18
|
+
ik: Any
|
|
19
|
+
amount: Any
|
|
20
|
+
currency: "GetPaymentPaymentCurrency"
|
|
21
|
+
status: PaymentStatus
|
|
22
|
+
type_: Any = Field(alias="type")
|
|
23
|
+
type_version: int = Field(alias="typeVersion")
|
|
24
|
+
mode: PaymentMode
|
|
25
|
+
parameters: Any
|
|
26
|
+
created: Any
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
class GetPaymentPaymentCurrency(BaseModel):
|
|
30
|
+
code: PaymentCurrencyCode
|
|
31
|
+
name: str
|
|
32
|
+
precision: int
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
GetPayment.model_rebuild()
|
|
36
|
+
GetPaymentPayment.model_rebuild()
|