fragment-python 1.2.0__tar.gz → 1.3.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.3.0}/PKG-INFO +2 -1
- {fragment_python-1.2.0 → fragment_python-1.3.0}/fragment/sdk/__init__.py +50 -2
- {fragment_python-1.2.0 → fragment_python-1.3.0}/fragment/sdk/client.py +134 -5
- {fragment_python-1.2.0/fragment/sync_sdk → fragment_python-1.3.0/fragment/sdk}/create_payment.py +12 -7
- {fragment_python-1.2.0 → fragment_python-1.3.0}/fragment/sdk/enums.py +17 -0
- fragment_python-1.3.0/fragment/sdk/get_payment.py +36 -0
- {fragment_python-1.2.0/fragment/sync_sdk → fragment_python-1.3.0/fragment/sdk}/input_types.py +73 -13
- fragment_python-1.3.0/fragment/sdk/instantiate_ledger_account.py +54 -0
- fragment_python-1.3.0/fragment/sdk/list_payments.py +50 -0
- {fragment_python-1.2.0 → fragment_python-1.3.0}/fragment/std_queries/queries.graphql +91 -9
- {fragment_python-1.2.0 → fragment_python-1.3.0}/fragment/sync_sdk/__init__.py +50 -2
- {fragment_python-1.2.0 → fragment_python-1.3.0}/fragment/sync_sdk/client.py +134 -5
- {fragment_python-1.2.0/fragment/sdk → fragment_python-1.3.0/fragment/sync_sdk}/create_payment.py +12 -7
- {fragment_python-1.2.0 → fragment_python-1.3.0}/fragment/sync_sdk/enums.py +17 -0
- fragment_python-1.3.0/fragment/sync_sdk/get_payment.py +36 -0
- {fragment_python-1.2.0/fragment/sdk → fragment_python-1.3.0/fragment/sync_sdk}/input_types.py +73 -13
- fragment_python-1.3.0/fragment/sync_sdk/instantiate_ledger_account.py +54 -0
- fragment_python-1.3.0/fragment/sync_sdk/list_payments.py +50 -0
- {fragment_python-1.2.0 → fragment_python-1.3.0}/pyproject.toml +1 -1
- {fragment_python-1.2.0 → fragment_python-1.3.0}/LICENSE +0 -0
- {fragment_python-1.2.0 → fragment_python-1.3.0}/README.md +0 -0
- {fragment_python-1.2.0 → fragment_python-1.3.0}/fragment/__init__.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.3.0}/fragment/client/__init__.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.3.0}/fragment/client/async_client.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.3.0}/fragment/client/sync_client.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.3.0}/fragment/codegen/__init__.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.3.0}/fragment/codegen/helpers.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.3.0}/fragment/codegen/main.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.3.0}/fragment/codegen/plugins/__init__.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.3.0}/fragment/codegen/plugins/generate_client_method.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.3.0}/fragment/codegen/plugins/generate_typed_entries.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.3.0}/fragment/codegen/plugins/get_file_comment.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.3.0}/fragment/codegen/typed_entries.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.3.0}/fragment/exceptions.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.3.0}/fragment/logger.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.3.0}/fragment/py.typed +0 -0
- {fragment_python-1.2.0 → fragment_python-1.3.0}/fragment/sdk/add_ledger_entries.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.3.0}/fragment/sdk/add_ledger_entry.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.3.0}/fragment/sdk/add_ledger_entry_runtime.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.3.0}/fragment/sdk/async_client.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.3.0}/fragment/sdk/base_model.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.3.0}/fragment/sdk/create_custom_currency.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.3.0}/fragment/sdk/create_custom_link.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.3.0}/fragment/sdk/create_ledger.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.3.0}/fragment/sdk/delete_custom_txs.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.3.0}/fragment/sdk/delete_ledger.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.3.0}/fragment/sdk/delete_schema.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.3.0}/fragment/sdk/get_account_data_migrations.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.3.0}/fragment/sdk/get_entries_to_migrate_for_ledger_account_data_migration.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.3.0}/fragment/sdk/get_entries_to_migrate_for_ledger_entry_data_migration.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.3.0}/fragment/sdk/get_entry_data_migrations.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.3.0}/fragment/sdk/get_ledger.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.3.0}/fragment/sdk/get_ledger_account_balance.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.3.0}/fragment/sdk/get_ledger_account_balance_with_child_rollup.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.3.0}/fragment/sdk/get_ledger_account_lines.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.3.0}/fragment/sdk/get_ledger_entry.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.3.0}/fragment/sdk/get_schema.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.3.0}/fragment/sdk/get_workspace.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.3.0}/fragment/sdk/list_ledger_account_balances.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.3.0}/fragment/sdk/list_ledger_accounts.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.3.0}/fragment/sdk/list_ledger_entries.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.3.0}/fragment/sdk/list_ledger_entry_group_balances.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.3.0}/fragment/sdk/list_multi_currency_ledger_account_balances.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.3.0}/fragment/sdk/migrate_ledger_entry.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.3.0}/fragment/sdk/reconcile_tx.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.3.0}/fragment/sdk/reconcile_tx_runtime.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.3.0}/fragment/sdk/reverse_ledger_entry.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.3.0}/fragment/sdk/store_schema.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.3.0}/fragment/sdk/sync_custom_accounts.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.3.0}/fragment/sdk/sync_custom_txs.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.3.0}/fragment/sdk/typed_entries.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.3.0}/fragment/sdk/update_ledger.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.3.0}/fragment/sdk/update_ledger_entry.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.3.0}/fragment/sync_sdk/add_ledger_entries.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.3.0}/fragment/sync_sdk/add_ledger_entry.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.3.0}/fragment/sync_sdk/add_ledger_entry_runtime.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.3.0}/fragment/sync_sdk/async_client.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.3.0}/fragment/sync_sdk/base_model.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.3.0}/fragment/sync_sdk/create_custom_currency.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.3.0}/fragment/sync_sdk/create_custom_link.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.3.0}/fragment/sync_sdk/create_ledger.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.3.0}/fragment/sync_sdk/delete_custom_txs.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.3.0}/fragment/sync_sdk/delete_ledger.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.3.0}/fragment/sync_sdk/delete_schema.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.3.0}/fragment/sync_sdk/get_account_data_migrations.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.3.0}/fragment/sync_sdk/get_entries_to_migrate_for_ledger_account_data_migration.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.3.0}/fragment/sync_sdk/get_entries_to_migrate_for_ledger_entry_data_migration.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.3.0}/fragment/sync_sdk/get_entry_data_migrations.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.3.0}/fragment/sync_sdk/get_ledger.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.3.0}/fragment/sync_sdk/get_ledger_account_balance.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.3.0}/fragment/sync_sdk/get_ledger_account_balance_with_child_rollup.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.3.0}/fragment/sync_sdk/get_ledger_account_lines.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.3.0}/fragment/sync_sdk/get_ledger_entry.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.3.0}/fragment/sync_sdk/get_schema.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.3.0}/fragment/sync_sdk/get_workspace.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.3.0}/fragment/sync_sdk/list_ledger_account_balances.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.3.0}/fragment/sync_sdk/list_ledger_accounts.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.3.0}/fragment/sync_sdk/list_ledger_entries.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.3.0}/fragment/sync_sdk/list_ledger_entry_group_balances.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.3.0}/fragment/sync_sdk/list_multi_currency_ledger_account_balances.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.3.0}/fragment/sync_sdk/migrate_ledger_entry.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.3.0}/fragment/sync_sdk/reconcile_tx.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.3.0}/fragment/sync_sdk/reconcile_tx_runtime.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.3.0}/fragment/sync_sdk/reverse_ledger_entry.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.3.0}/fragment/sync_sdk/store_schema.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.3.0}/fragment/sync_sdk/sync_client.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.3.0}/fragment/sync_sdk/sync_custom_accounts.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.3.0}/fragment/sync_sdk/sync_custom_txs.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.3.0}/fragment/sync_sdk/typed_entries.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.3.0}/fragment/sync_sdk/update_ledger.py +0 -0
- {fragment_python-1.2.0 → fragment_python-1.3.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.3.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,9 @@ from .create_ledger import (
|
|
|
58
58
|
from .create_payment import (
|
|
59
59
|
CreatePayment,
|
|
60
60
|
CreatePaymentCreatePaymentBadRequestError,
|
|
61
|
+
CreatePaymentCreatePaymentCreatePaymentResult,
|
|
62
|
+
CreatePaymentCreatePaymentCreatePaymentResultPayment,
|
|
61
63
|
CreatePaymentCreatePaymentInternalError,
|
|
62
|
-
CreatePaymentCreatePaymentPayment,
|
|
63
64
|
)
|
|
64
65
|
from .delete_custom_txs import (
|
|
65
66
|
DeleteCustomTxs,
|
|
@@ -96,6 +97,8 @@ from .enums import (
|
|
|
96
97
|
LedgerMigrationStatus,
|
|
97
98
|
LedgerTypes,
|
|
98
99
|
LinkType,
|
|
100
|
+
PaymentCurrencyCode,
|
|
101
|
+
PaymentMode,
|
|
99
102
|
PaymentStatus,
|
|
100
103
|
PostLinesAs,
|
|
101
104
|
ReadBalanceConsistencyMode,
|
|
@@ -103,6 +106,7 @@ from .enums import (
|
|
|
103
106
|
SchemaConsistencyMode,
|
|
104
107
|
SchemaLedgerAccountStatus,
|
|
105
108
|
SchemaLedgerEntryStatus,
|
|
109
|
+
SchemaPaymentAccountingEventKey,
|
|
106
110
|
SchemaPaymentTypeDirection,
|
|
107
111
|
SchemaPaymentTypeStatus,
|
|
108
112
|
SchemaSystemLineKind,
|
|
@@ -181,6 +185,7 @@ from .get_ledger_entry import (
|
|
|
181
185
|
GetLedgerEntryLedgerEntryLinesNodes,
|
|
182
186
|
GetLedgerEntryLedgerEntryLinesNodesAccount,
|
|
183
187
|
)
|
|
188
|
+
from .get_payment import GetPayment, GetPaymentPayment, GetPaymentPaymentCurrency
|
|
184
189
|
from .get_schema import GetSchema, GetSchemaSchema, GetSchemaSchemaVersion
|
|
185
190
|
from .get_workspace import GetWorkspace, GetWorkspaceWorkspace
|
|
186
191
|
from .input_types import (
|
|
@@ -238,9 +243,14 @@ from .input_types import (
|
|
|
238
243
|
LedgerTypeFilter,
|
|
239
244
|
LinkMatchInput,
|
|
240
245
|
MigrateLedgerEntryInput,
|
|
246
|
+
PaymentMatchInput,
|
|
247
|
+
PaymentsFilterSet,
|
|
248
|
+
PaymentStatusFilter,
|
|
241
249
|
SceneEntryInput,
|
|
242
250
|
SceneEventInput,
|
|
243
251
|
SceneInput,
|
|
252
|
+
ScenePaymentEventInput,
|
|
253
|
+
ScenePaymentInput,
|
|
244
254
|
SchemaConditionInput,
|
|
245
255
|
SchemaConsistencyConfigInput,
|
|
246
256
|
SchemaCurrencyMatchInput,
|
|
@@ -276,6 +286,13 @@ from .input_types import (
|
|
|
276
286
|
UpdateLedgerInput,
|
|
277
287
|
UpdateLedgerLineInput,
|
|
278
288
|
)
|
|
289
|
+
from .instantiate_ledger_account import (
|
|
290
|
+
InstantiateLedgerAccount,
|
|
291
|
+
InstantiateLedgerAccountInstantiateLedgerAccountBadRequestError,
|
|
292
|
+
InstantiateLedgerAccountInstantiateLedgerAccountInstantiateLedgerAccountResult,
|
|
293
|
+
InstantiateLedgerAccountInstantiateLedgerAccountInstantiateLedgerAccountResultLedgerAccount,
|
|
294
|
+
InstantiateLedgerAccountInstantiateLedgerAccountInternalError,
|
|
295
|
+
)
|
|
279
296
|
from .list_ledger_account_balances import (
|
|
280
297
|
ListLedgerAccountBalances,
|
|
281
298
|
ListLedgerAccountBalancesLedger,
|
|
@@ -325,6 +342,14 @@ from .list_multi_currency_ledger_account_balances import (
|
|
|
325
342
|
ListMultiCurrencyLedgerAccountBalancesLedgerLedgerAccountsNodesOwnBalancesNodesCurrency,
|
|
326
343
|
ListMultiCurrencyLedgerAccountBalancesLedgerLedgerAccountsPageInfo,
|
|
327
344
|
)
|
|
345
|
+
from .list_payments import (
|
|
346
|
+
ListPayments,
|
|
347
|
+
ListPaymentsLedger,
|
|
348
|
+
ListPaymentsLedgerPayments,
|
|
349
|
+
ListPaymentsLedgerPaymentsNodes,
|
|
350
|
+
ListPaymentsLedgerPaymentsNodesCurrency,
|
|
351
|
+
ListPaymentsLedgerPaymentsPageInfo,
|
|
352
|
+
)
|
|
328
353
|
from .migrate_ledger_entry import (
|
|
329
354
|
MigrateLedgerEntry,
|
|
330
355
|
MigrateLedgerEntryMigrateLedgerEntryBadRequestError,
|
|
@@ -471,8 +496,9 @@ __all__ = [
|
|
|
471
496
|
"CreateLedgerInput",
|
|
472
497
|
"CreatePayment",
|
|
473
498
|
"CreatePaymentCreatePaymentBadRequestError",
|
|
499
|
+
"CreatePaymentCreatePaymentCreatePaymentResult",
|
|
500
|
+
"CreatePaymentCreatePaymentCreatePaymentResultPayment",
|
|
474
501
|
"CreatePaymentCreatePaymentInternalError",
|
|
475
|
-
"CreatePaymentCreatePaymentPayment",
|
|
476
502
|
"CreatePaymentInput",
|
|
477
503
|
"CurrencyCode",
|
|
478
504
|
"CurrencyFilter",
|
|
@@ -559,6 +585,9 @@ __all__ = [
|
|
|
559
585
|
"GetLedgerEntryLedgerEntryLinesNodes",
|
|
560
586
|
"GetLedgerEntryLedgerEntryLinesNodesAccount",
|
|
561
587
|
"GetLedgerLedger",
|
|
588
|
+
"GetPayment",
|
|
589
|
+
"GetPaymentPayment",
|
|
590
|
+
"GetPaymentPaymentCurrency",
|
|
562
591
|
"GetSchema",
|
|
563
592
|
"GetSchemaSchema",
|
|
564
593
|
"GetSchemaSchemaVersion",
|
|
@@ -572,6 +601,11 @@ __all__ = [
|
|
|
572
601
|
"GroupNotFilter",
|
|
573
602
|
"GroupReconciliationParametersInput",
|
|
574
603
|
"IncreaseEnv",
|
|
604
|
+
"InstantiateLedgerAccount",
|
|
605
|
+
"InstantiateLedgerAccountInstantiateLedgerAccountBadRequestError",
|
|
606
|
+
"InstantiateLedgerAccountInstantiateLedgerAccountInstantiateLedgerAccountResult",
|
|
607
|
+
"InstantiateLedgerAccountInstantiateLedgerAccountInstantiateLedgerAccountResultLedgerAccount",
|
|
608
|
+
"InstantiateLedgerAccountInstantiateLedgerAccountInternalError",
|
|
575
609
|
"Int96ConditionInput",
|
|
576
610
|
"Int96Filter",
|
|
577
611
|
"LedgerAccountClearingStatus",
|
|
@@ -649,6 +683,12 @@ __all__ = [
|
|
|
649
683
|
"ListMultiCurrencyLedgerAccountBalancesLedgerLedgerAccountsNodesOwnBalancesNodes",
|
|
650
684
|
"ListMultiCurrencyLedgerAccountBalancesLedgerLedgerAccountsNodesOwnBalancesNodesCurrency",
|
|
651
685
|
"ListMultiCurrencyLedgerAccountBalancesLedgerLedgerAccountsPageInfo",
|
|
686
|
+
"ListPayments",
|
|
687
|
+
"ListPaymentsLedger",
|
|
688
|
+
"ListPaymentsLedgerPayments",
|
|
689
|
+
"ListPaymentsLedgerPaymentsNodes",
|
|
690
|
+
"ListPaymentsLedgerPaymentsNodesCurrency",
|
|
691
|
+
"ListPaymentsLedgerPaymentsPageInfo",
|
|
652
692
|
"MigrateLedgerEntry",
|
|
653
693
|
"MigrateLedgerEntryInput",
|
|
654
694
|
"MigrateLedgerEntryMigrateLedgerEntryBadRequestError",
|
|
@@ -666,7 +706,12 @@ __all__ = [
|
|
|
666
706
|
"MigrateLedgerEntryMigrateLedgerEntryMigrateLedgerEntryResultReversingLedgerEntryLines",
|
|
667
707
|
"MigrateLedgerEntryMigrateLedgerEntryMigrateLedgerEntryResultReversingLedgerEntryLinesNodes",
|
|
668
708
|
"MigrateLedgerEntryMigrateLedgerEntryMigrateLedgerEntryResultReversingLedgerEntryLinesNodesAccount",
|
|
709
|
+
"PaymentCurrencyCode",
|
|
710
|
+
"PaymentMatchInput",
|
|
711
|
+
"PaymentMode",
|
|
669
712
|
"PaymentStatus",
|
|
713
|
+
"PaymentStatusFilter",
|
|
714
|
+
"PaymentsFilterSet",
|
|
670
715
|
"PostLinesAs",
|
|
671
716
|
"ReadBalanceConsistencyMode",
|
|
672
717
|
"ReconcileTx",
|
|
@@ -699,6 +744,8 @@ __all__ = [
|
|
|
699
744
|
"SceneEventInput",
|
|
700
745
|
"SceneEventType",
|
|
701
746
|
"SceneInput",
|
|
747
|
+
"ScenePaymentEventInput",
|
|
748
|
+
"ScenePaymentInput",
|
|
702
749
|
"SchemaConditionInput",
|
|
703
750
|
"SchemaConsistencyConfigInput",
|
|
704
751
|
"SchemaConsistencyMode",
|
|
@@ -717,6 +764,7 @@ __all__ = [
|
|
|
717
764
|
"SchemaLedgerEntryTagInput",
|
|
718
765
|
"SchemaLedgerLineInput",
|
|
719
766
|
"SchemaMatchInput",
|
|
767
|
+
"SchemaPaymentAccountingEventKey",
|
|
720
768
|
"SchemaPaymentAccountingInput",
|
|
721
769
|
"SchemaPaymentEntryInput",
|
|
722
770
|
"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,23 @@ 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
|
+
clientSecret
|
|
1862
|
+
status
|
|
1863
|
+
}
|
|
1811
1864
|
}
|
|
1812
1865
|
... on BadRequestError {
|
|
1813
1866
|
code
|
|
@@ -1834,3 +1887,79 @@ class Client(AsyncFragmentClient):
|
|
|
1834
1887
|
)
|
|
1835
1888
|
data = self.get_data(response)
|
|
1836
1889
|
return CreatePayment.model_validate(data)
|
|
1890
|
+
|
|
1891
|
+
async def get_payment(self, ik: Any, ledger_ik: Any, **kwargs: Any) -> GetPayment:
|
|
1892
|
+
query = gql("""
|
|
1893
|
+
query getPayment($ik: SafeString!, $ledgerIk: SafeString!) {
|
|
1894
|
+
payment(payment: {ik: $ik, ledger: {ik: $ledgerIk}}) {
|
|
1895
|
+
id
|
|
1896
|
+
ik
|
|
1897
|
+
amount
|
|
1898
|
+
currency {
|
|
1899
|
+
code
|
|
1900
|
+
name
|
|
1901
|
+
precision
|
|
1902
|
+
}
|
|
1903
|
+
status
|
|
1904
|
+
type
|
|
1905
|
+
typeVersion
|
|
1906
|
+
mode
|
|
1907
|
+
parameters
|
|
1908
|
+
created
|
|
1909
|
+
}
|
|
1910
|
+
}
|
|
1911
|
+
""")
|
|
1912
|
+
variables: dict[str, object] = {"ik": ik, "ledgerIk": ledger_ik}
|
|
1913
|
+
response = await self.execute(
|
|
1914
|
+
query=query, operation_name="getPayment", variables=variables, **kwargs
|
|
1915
|
+
)
|
|
1916
|
+
data = self.get_data(response)
|
|
1917
|
+
return GetPayment.model_validate(data)
|
|
1918
|
+
|
|
1919
|
+
async def list_payments(
|
|
1920
|
+
self,
|
|
1921
|
+
ledger_ik: Any,
|
|
1922
|
+
after: Optional[str] = None,
|
|
1923
|
+
first: Optional[int] = None,
|
|
1924
|
+
before: Optional[str] = None,
|
|
1925
|
+
filter_: Optional[PaymentsFilterSet] = None,
|
|
1926
|
+
**kwargs: Any
|
|
1927
|
+
) -> ListPayments:
|
|
1928
|
+
query = gql("""
|
|
1929
|
+
query listPayments($ledgerIk: SafeString!, $after: String, $first: Int, $before: String, $filter: PaymentsFilterSet) {
|
|
1930
|
+
ledger(ledger: {ik: $ledgerIk}) {
|
|
1931
|
+
payments(after: $after, first: $first, before: $before, filter: $filter) {
|
|
1932
|
+
nodes {
|
|
1933
|
+
id
|
|
1934
|
+
ik
|
|
1935
|
+
amount
|
|
1936
|
+
currency {
|
|
1937
|
+
code
|
|
1938
|
+
}
|
|
1939
|
+
status
|
|
1940
|
+
type
|
|
1941
|
+
typeVersion
|
|
1942
|
+
created
|
|
1943
|
+
}
|
|
1944
|
+
pageInfo {
|
|
1945
|
+
hasNextPage
|
|
1946
|
+
endCursor
|
|
1947
|
+
hasPreviousPage
|
|
1948
|
+
startCursor
|
|
1949
|
+
}
|
|
1950
|
+
}
|
|
1951
|
+
}
|
|
1952
|
+
}
|
|
1953
|
+
""")
|
|
1954
|
+
variables: dict[str, object] = {
|
|
1955
|
+
"ledgerIk": ledger_ik,
|
|
1956
|
+
"after": after,
|
|
1957
|
+
"first": first,
|
|
1958
|
+
"before": before,
|
|
1959
|
+
"filter": filter_,
|
|
1960
|
+
}
|
|
1961
|
+
response = await self.execute(
|
|
1962
|
+
query=query, operation_name="listPayments", variables=variables, **kwargs
|
|
1963
|
+
)
|
|
1964
|
+
data = self.get_data(response)
|
|
1965
|
+
return ListPayments.model_validate(data)
|
{fragment_python-1.2.0/fragment/sync_sdk → fragment_python-1.3.0/fragment/sdk}/create_payment.py
RENAMED
|
@@ -12,8 +12,8 @@ from .enums import PaymentStatus
|
|
|
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,16 @@ 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
|
+
client_secret: str = Field(alias="clientSecret")
|
|
34
|
+
status: PaymentStatus
|
|
35
|
+
|
|
36
|
+
|
|
27
37
|
class CreatePaymentCreatePaymentInternalError(BaseModel):
|
|
28
38
|
typename__: Literal["InternalError"] = Field(alias="__typename")
|
|
29
39
|
code: str
|
|
@@ -31,10 +41,5 @@ class CreatePaymentCreatePaymentInternalError(BaseModel):
|
|
|
31
41
|
retryable: bool
|
|
32
42
|
|
|
33
43
|
|
|
34
|
-
class CreatePaymentCreatePaymentPayment(BaseModel):
|
|
35
|
-
typename__: Literal["Payment"] = Field(alias="__typename")
|
|
36
|
-
client_secret: str = Field(alias="clientSecret")
|
|
37
|
-
status: PaymentStatus
|
|
38
|
-
|
|
39
|
-
|
|
40
44
|
CreatePayment.model_rebuild()
|
|
45
|
+
CreatePaymentCreatePaymentCreatePaymentResult.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
|
+
approved = "approved"
|
|
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()
|
{fragment_python-1.2.0/fragment/sync_sdk → fragment_python-1.3.0/fragment/sdk}/input_types.py
RENAMED
|
@@ -16,11 +16,13 @@ from .enums import (
|
|
|
16
16
|
LedgerLinesConsistencyMode,
|
|
17
17
|
LedgerTypes,
|
|
18
18
|
LinkType,
|
|
19
|
+
PaymentStatus,
|
|
19
20
|
PostLinesAs,
|
|
20
21
|
SceneEventType,
|
|
21
22
|
SchemaConsistencyMode,
|
|
22
23
|
SchemaLedgerAccountStatus,
|
|
23
24
|
SchemaLedgerEntryStatus,
|
|
25
|
+
SchemaPaymentAccountingEventKey,
|
|
24
26
|
SchemaPaymentTypeDirection,
|
|
25
27
|
SchemaPaymentTypeStatus,
|
|
26
28
|
SchemaSystemLineKind,
|
|
@@ -127,8 +129,8 @@ class CreatePaymentInput(BaseModel):
|
|
|
127
129
|
"Parameters for the specific Payment Type. Must be a key-value pair of strings. Must be a flat object: nested objects and arrays are rejected."
|
|
128
130
|
type_: Any = Field(alias="type")
|
|
129
131
|
"The type of the Payment. Must be defined in the Schema linked to the Ledger."
|
|
130
|
-
type_version:
|
|
131
|
-
"The version of the Payment Type.
|
|
132
|
+
type_version: int = Field(alias="typeVersion")
|
|
133
|
+
"The version of the Payment Type."
|
|
132
134
|
|
|
133
135
|
|
|
134
136
|
class CurrencyFilter(BaseModel):
|
|
@@ -318,11 +320,11 @@ class LedgerAccountConditionInput(BaseModel):
|
|
|
318
320
|
own_balance: Optional["Int96ConditionInput"] = Field(
|
|
319
321
|
alias="ownBalance", default=None
|
|
320
322
|
)
|
|
321
|
-
"A condition that the ownBalance field must satisfy. Note that this condition always applies to the latest balance, not to balances at a specific date or time. See [Read balances](
|
|
323
|
+
"A condition that the ownBalance field must satisfy. Note that this condition always applies to the latest balance, not to balances at a specific date or time. See [Read balances](/guides/read-balances) for more on the different types of Ledger Account balances."
|
|
322
324
|
total_balance: Optional["Int96ConditionInput"] = Field(
|
|
323
325
|
alias="totalBalance", default=None
|
|
324
326
|
)
|
|
325
|
-
"A condition that the totalBalance field must satisfy. Note that this condition always applies to the latest balance, not to balances at a specific date or time. See [Read balances](
|
|
327
|
+
"A condition that the totalBalance field must satisfy. Note that this condition always applies to the latest balance, not to balances at a specific date or time. See [Read balances](/guides/read-balances) for more on the different types of Ledger Account balances."
|
|
326
328
|
|
|
327
329
|
|
|
328
330
|
class LedgerAccountConsistencyConfigInput(BaseModel):
|
|
@@ -545,7 +547,7 @@ class LedgerEntryInput(BaseModel):
|
|
|
545
547
|
type_: Optional[str] = Field(alias="type", default=None)
|
|
546
548
|
"The type of the Ledger Entry. Must be defined in the Schema linked to the Ledger specified below."
|
|
547
549
|
type_version: Optional[int] = Field(alias="typeVersion", default=None)
|
|
548
|
-
"
|
|
550
|
+
"The version of the Ledger Entry type to post. Defaults to 1."
|
|
549
551
|
|
|
550
552
|
|
|
551
553
|
class LedgerEntryMatchInput(BaseModel):
|
|
@@ -658,6 +660,33 @@ class MigrateLedgerEntryInput(BaseModel):
|
|
|
658
660
|
"The Ledger Entry you want to migrate it to"
|
|
659
661
|
|
|
660
662
|
|
|
663
|
+
class PaymentMatchInput(BaseModel):
|
|
664
|
+
"""Specify a Ledger Payment by using `ledger` and `ik`."""
|
|
665
|
+
|
|
666
|
+
ik: Any
|
|
667
|
+
"The Idempotency Key the Payment was created with."
|
|
668
|
+
ledger: "LedgerMatchInput"
|
|
669
|
+
"The Ledger the Payment belongs to."
|
|
670
|
+
|
|
671
|
+
|
|
672
|
+
class PaymentStatusFilter(BaseModel):
|
|
673
|
+
"""EXPERIMENTAL: Filters a result set by Payment status."""
|
|
674
|
+
|
|
675
|
+
equal_to: Optional[PaymentStatus] = Field(alias="equalTo", default=None)
|
|
676
|
+
"Results must have the specified status."
|
|
677
|
+
in_: Optional[list[PaymentStatus]] = Field(alias="in", default=None)
|
|
678
|
+
"Results can have any of the specified statuses."
|
|
679
|
+
|
|
680
|
+
|
|
681
|
+
class PaymentsFilterSet(BaseModel):
|
|
682
|
+
"""EXPERIMENTAL: The filters that can be applied to a list of Payments."""
|
|
683
|
+
|
|
684
|
+
created: Optional["DateTimeFilter"] = None
|
|
685
|
+
"Use this filter to filter Payments by their `created` timestamp."
|
|
686
|
+
status: Optional["PaymentStatusFilter"] = None
|
|
687
|
+
"Use this to filter Payments by their status."
|
|
688
|
+
|
|
689
|
+
|
|
661
690
|
class SceneEntryInput(BaseModel):
|
|
662
691
|
"""A simulated Ledger Entry posted as a part of a Scene."""
|
|
663
692
|
|
|
@@ -670,17 +699,46 @@ class SceneEntryInput(BaseModel):
|
|
|
670
699
|
|
|
671
700
|
|
|
672
701
|
class SceneEventInput(BaseModel):
|
|
673
|
-
entry: "SceneEntryInput"
|
|
674
|
-
"The simulated Ledger Entry."
|
|
702
|
+
entry: Optional["SceneEntryInput"] = None
|
|
703
|
+
"The simulated Ledger Entry. Required when eventType is `entry`."
|
|
675
704
|
event_type: SceneEventType = Field(alias="eventType")
|
|
676
|
-
"The type of the Scene Event.
|
|
705
|
+
"The type of the Scene Event."
|
|
706
|
+
payment: Optional["ScenePaymentEventInput"] = None
|
|
707
|
+
"EXPERIMENTAL: The simulated Payment lifecycle transition. Required when eventType is `payment`."
|
|
677
708
|
|
|
678
709
|
|
|
679
710
|
class SceneInput(BaseModel):
|
|
680
711
|
events: list["SceneEventInput"]
|
|
681
|
-
"
|
|
712
|
+
"The ordered simulated events that make up the Scene."
|
|
682
713
|
name: str
|
|
683
714
|
"The human-readable name of the Scene."
|
|
715
|
+
payments: Optional[list["ScenePaymentInput"]] = None
|
|
716
|
+
"EXPERIMENTAL: The simulated Payments the Scene's payment events reference."
|
|
717
|
+
|
|
718
|
+
|
|
719
|
+
class ScenePaymentEventInput(BaseModel):
|
|
720
|
+
"""EXPERIMENTAL: One lifecycle transition of a simulated Payment, posted as a
|
|
721
|
+
part of a Scene."""
|
|
722
|
+
|
|
723
|
+
event: SchemaPaymentAccountingEventKey
|
|
724
|
+
"The lifecycle transition this Scene Event posts."
|
|
725
|
+
ik: Any
|
|
726
|
+
"The Idempotency Key of the simulated Payment, as declared in scene.payments."
|
|
727
|
+
|
|
728
|
+
|
|
729
|
+
class ScenePaymentInput(BaseModel):
|
|
730
|
+
"""EXPERIMENTAL: A simulated Payment declared by a Scene. Its lifecycle events
|
|
731
|
+
reference it by `ik`, so one simulated Payment has exactly one set of
|
|
732
|
+
parameters."""
|
|
733
|
+
|
|
734
|
+
ik: Any
|
|
735
|
+
"The Idempotency Key of the simulated Payment. Unique within the Scene."
|
|
736
|
+
parameters: Optional[Any] = None
|
|
737
|
+
"Any parameters to be used as inputs to this simulated Payment."
|
|
738
|
+
type_: Any = Field(alias="type")
|
|
739
|
+
"The type of the simulated Payment. Must match one of the types provided in schema.payments.types."
|
|
740
|
+
type_version: Optional[int] = Field(alias="typeVersion", default=None)
|
|
741
|
+
"The version of the Payment Type."
|
|
684
742
|
|
|
685
743
|
|
|
686
744
|
class SchemaConditionInput(BaseModel):
|
|
@@ -906,9 +964,9 @@ class SchemaPaymentAccountingInput(BaseModel):
|
|
|
906
964
|
"""EXPERIMENTAL: The Ledger Entries a Payment Type posts as a payment moves
|
|
907
965
|
through its lifecycle, keyed by lifecycle transition."""
|
|
908
966
|
|
|
909
|
-
|
|
910
|
-
"Posted when the payment
|
|
911
|
-
|
|
967
|
+
initiated: Optional["SchemaPaymentEntryInput"] = None
|
|
968
|
+
"Posted when the payment is approved. Optional."
|
|
969
|
+
settled: "SchemaPaymentEntryInput"
|
|
912
970
|
"Posted when the payment settles. Every Payment Type must define it."
|
|
913
971
|
|
|
914
972
|
|
|
@@ -924,7 +982,7 @@ class SchemaPaymentEntryInput(BaseModel):
|
|
|
924
982
|
class SchemaPaymentInput(BaseModel):
|
|
925
983
|
"""EXPERIMENTAL: Marks a Ledger Account as a Payment Account."""
|
|
926
984
|
|
|
927
|
-
|
|
985
|
+
enabled: bool
|
|
928
986
|
|
|
929
987
|
|
|
930
988
|
class SchemaPaymentLineInput(BaseModel):
|
|
@@ -1146,6 +1204,8 @@ LedgerLineInput.model_rebuild()
|
|
|
1146
1204
|
LedgerLinesFilterSet.model_rebuild()
|
|
1147
1205
|
LedgersFilterSet.model_rebuild()
|
|
1148
1206
|
MigrateLedgerEntryInput.model_rebuild()
|
|
1207
|
+
PaymentMatchInput.model_rebuild()
|
|
1208
|
+
PaymentsFilterSet.model_rebuild()
|
|
1149
1209
|
SceneEventInput.model_rebuild()
|
|
1150
1210
|
SceneInput.model_rebuild()
|
|
1151
1211
|
SchemaConditionInput.model_rebuild()
|