fragment-python 1.1.0__tar.gz → 1.1.1__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.
Files changed (103) hide show
  1. {fragment_python-1.1.0 → fragment_python-1.1.1}/PKG-INFO +1 -1
  2. {fragment_python-1.1.0 → fragment_python-1.1.1}/fragment/sdk/__init__.py +22 -0
  3. {fragment_python-1.1.0 → fragment_python-1.1.1}/fragment/sdk/enums.py +14 -0
  4. {fragment_python-1.1.0/fragment/sync_sdk → fragment_python-1.1.1/fragment/sdk}/input_types.py +101 -0
  5. {fragment_python-1.1.0 → fragment_python-1.1.1}/fragment/sync_sdk/__init__.py +22 -0
  6. {fragment_python-1.1.0 → fragment_python-1.1.1}/fragment/sync_sdk/enums.py +14 -0
  7. {fragment_python-1.1.0/fragment/sdk → fragment_python-1.1.1/fragment/sync_sdk}/input_types.py +101 -0
  8. {fragment_python-1.1.0 → fragment_python-1.1.1}/pyproject.toml +1 -1
  9. {fragment_python-1.1.0 → fragment_python-1.1.1}/LICENSE +0 -0
  10. {fragment_python-1.1.0 → fragment_python-1.1.1}/README.md +0 -0
  11. {fragment_python-1.1.0 → fragment_python-1.1.1}/fragment/__init__.py +0 -0
  12. {fragment_python-1.1.0 → fragment_python-1.1.1}/fragment/client/__init__.py +0 -0
  13. {fragment_python-1.1.0 → fragment_python-1.1.1}/fragment/client/async_client.py +0 -0
  14. {fragment_python-1.1.0 → fragment_python-1.1.1}/fragment/client/sync_client.py +0 -0
  15. {fragment_python-1.1.0 → fragment_python-1.1.1}/fragment/codegen/__init__.py +0 -0
  16. {fragment_python-1.1.0 → fragment_python-1.1.1}/fragment/codegen/helpers.py +0 -0
  17. {fragment_python-1.1.0 → fragment_python-1.1.1}/fragment/codegen/main.py +0 -0
  18. {fragment_python-1.1.0 → fragment_python-1.1.1}/fragment/codegen/plugins/__init__.py +0 -0
  19. {fragment_python-1.1.0 → fragment_python-1.1.1}/fragment/codegen/plugins/generate_client_method.py +0 -0
  20. {fragment_python-1.1.0 → fragment_python-1.1.1}/fragment/codegen/plugins/generate_typed_entries.py +0 -0
  21. {fragment_python-1.1.0 → fragment_python-1.1.1}/fragment/codegen/plugins/get_file_comment.py +0 -0
  22. {fragment_python-1.1.0 → fragment_python-1.1.1}/fragment/codegen/typed_entries.py +0 -0
  23. {fragment_python-1.1.0 → fragment_python-1.1.1}/fragment/exceptions.py +0 -0
  24. {fragment_python-1.1.0 → fragment_python-1.1.1}/fragment/logger.py +0 -0
  25. {fragment_python-1.1.0 → fragment_python-1.1.1}/fragment/py.typed +0 -0
  26. {fragment_python-1.1.0 → fragment_python-1.1.1}/fragment/sdk/add_ledger_entries.py +0 -0
  27. {fragment_python-1.1.0 → fragment_python-1.1.1}/fragment/sdk/add_ledger_entry.py +0 -0
  28. {fragment_python-1.1.0 → fragment_python-1.1.1}/fragment/sdk/add_ledger_entry_runtime.py +0 -0
  29. {fragment_python-1.1.0 → fragment_python-1.1.1}/fragment/sdk/async_client.py +0 -0
  30. {fragment_python-1.1.0 → fragment_python-1.1.1}/fragment/sdk/base_model.py +0 -0
  31. {fragment_python-1.1.0 → fragment_python-1.1.1}/fragment/sdk/client.py +0 -0
  32. {fragment_python-1.1.0 → fragment_python-1.1.1}/fragment/sdk/create_custom_currency.py +0 -0
  33. {fragment_python-1.1.0 → fragment_python-1.1.1}/fragment/sdk/create_custom_link.py +0 -0
  34. {fragment_python-1.1.0 → fragment_python-1.1.1}/fragment/sdk/create_ledger.py +0 -0
  35. {fragment_python-1.1.0 → fragment_python-1.1.1}/fragment/sdk/delete_custom_txs.py +0 -0
  36. {fragment_python-1.1.0 → fragment_python-1.1.1}/fragment/sdk/delete_ledger.py +0 -0
  37. {fragment_python-1.1.0 → fragment_python-1.1.1}/fragment/sdk/delete_schema.py +0 -0
  38. {fragment_python-1.1.0 → fragment_python-1.1.1}/fragment/sdk/get_account_data_migrations.py +0 -0
  39. {fragment_python-1.1.0 → fragment_python-1.1.1}/fragment/sdk/get_entries_to_migrate_for_ledger_account_data_migration.py +0 -0
  40. {fragment_python-1.1.0 → fragment_python-1.1.1}/fragment/sdk/get_entries_to_migrate_for_ledger_entry_data_migration.py +0 -0
  41. {fragment_python-1.1.0 → fragment_python-1.1.1}/fragment/sdk/get_entry_data_migrations.py +0 -0
  42. {fragment_python-1.1.0 → fragment_python-1.1.1}/fragment/sdk/get_ledger.py +0 -0
  43. {fragment_python-1.1.0 → fragment_python-1.1.1}/fragment/sdk/get_ledger_account_balance.py +0 -0
  44. {fragment_python-1.1.0 → fragment_python-1.1.1}/fragment/sdk/get_ledger_account_balance_with_child_rollup.py +0 -0
  45. {fragment_python-1.1.0 → fragment_python-1.1.1}/fragment/sdk/get_ledger_account_lines.py +0 -0
  46. {fragment_python-1.1.0 → fragment_python-1.1.1}/fragment/sdk/get_ledger_entry.py +0 -0
  47. {fragment_python-1.1.0 → fragment_python-1.1.1}/fragment/sdk/get_schema.py +0 -0
  48. {fragment_python-1.1.0 → fragment_python-1.1.1}/fragment/sdk/get_workspace.py +0 -0
  49. {fragment_python-1.1.0 → fragment_python-1.1.1}/fragment/sdk/list_ledger_account_balances.py +0 -0
  50. {fragment_python-1.1.0 → fragment_python-1.1.1}/fragment/sdk/list_ledger_accounts.py +0 -0
  51. {fragment_python-1.1.0 → fragment_python-1.1.1}/fragment/sdk/list_ledger_entries.py +0 -0
  52. {fragment_python-1.1.0 → fragment_python-1.1.1}/fragment/sdk/list_ledger_entry_group_balances.py +0 -0
  53. {fragment_python-1.1.0 → fragment_python-1.1.1}/fragment/sdk/list_multi_currency_ledger_account_balances.py +0 -0
  54. {fragment_python-1.1.0 → fragment_python-1.1.1}/fragment/sdk/migrate_ledger_entry.py +0 -0
  55. {fragment_python-1.1.0 → fragment_python-1.1.1}/fragment/sdk/reconcile_tx.py +0 -0
  56. {fragment_python-1.1.0 → fragment_python-1.1.1}/fragment/sdk/reconcile_tx_runtime.py +0 -0
  57. {fragment_python-1.1.0 → fragment_python-1.1.1}/fragment/sdk/reverse_ledger_entry.py +0 -0
  58. {fragment_python-1.1.0 → fragment_python-1.1.1}/fragment/sdk/store_schema.py +0 -0
  59. {fragment_python-1.1.0 → fragment_python-1.1.1}/fragment/sdk/sync_custom_accounts.py +0 -0
  60. {fragment_python-1.1.0 → fragment_python-1.1.1}/fragment/sdk/sync_custom_txs.py +0 -0
  61. {fragment_python-1.1.0 → fragment_python-1.1.1}/fragment/sdk/typed_entries.py +0 -0
  62. {fragment_python-1.1.0 → fragment_python-1.1.1}/fragment/sdk/update_ledger.py +0 -0
  63. {fragment_python-1.1.0 → fragment_python-1.1.1}/fragment/sdk/update_ledger_entry.py +0 -0
  64. {fragment_python-1.1.0 → fragment_python-1.1.1}/fragment/std_queries/queries.graphql +0 -0
  65. {fragment_python-1.1.0 → fragment_python-1.1.1}/fragment/sync_sdk/add_ledger_entries.py +0 -0
  66. {fragment_python-1.1.0 → fragment_python-1.1.1}/fragment/sync_sdk/add_ledger_entry.py +0 -0
  67. {fragment_python-1.1.0 → fragment_python-1.1.1}/fragment/sync_sdk/add_ledger_entry_runtime.py +0 -0
  68. {fragment_python-1.1.0 → fragment_python-1.1.1}/fragment/sync_sdk/async_client.py +0 -0
  69. {fragment_python-1.1.0 → fragment_python-1.1.1}/fragment/sync_sdk/base_model.py +0 -0
  70. {fragment_python-1.1.0 → fragment_python-1.1.1}/fragment/sync_sdk/client.py +0 -0
  71. {fragment_python-1.1.0 → fragment_python-1.1.1}/fragment/sync_sdk/create_custom_currency.py +0 -0
  72. {fragment_python-1.1.0 → fragment_python-1.1.1}/fragment/sync_sdk/create_custom_link.py +0 -0
  73. {fragment_python-1.1.0 → fragment_python-1.1.1}/fragment/sync_sdk/create_ledger.py +0 -0
  74. {fragment_python-1.1.0 → fragment_python-1.1.1}/fragment/sync_sdk/delete_custom_txs.py +0 -0
  75. {fragment_python-1.1.0 → fragment_python-1.1.1}/fragment/sync_sdk/delete_ledger.py +0 -0
  76. {fragment_python-1.1.0 → fragment_python-1.1.1}/fragment/sync_sdk/delete_schema.py +0 -0
  77. {fragment_python-1.1.0 → fragment_python-1.1.1}/fragment/sync_sdk/get_account_data_migrations.py +0 -0
  78. {fragment_python-1.1.0 → fragment_python-1.1.1}/fragment/sync_sdk/get_entries_to_migrate_for_ledger_account_data_migration.py +0 -0
  79. {fragment_python-1.1.0 → fragment_python-1.1.1}/fragment/sync_sdk/get_entries_to_migrate_for_ledger_entry_data_migration.py +0 -0
  80. {fragment_python-1.1.0 → fragment_python-1.1.1}/fragment/sync_sdk/get_entry_data_migrations.py +0 -0
  81. {fragment_python-1.1.0 → fragment_python-1.1.1}/fragment/sync_sdk/get_ledger.py +0 -0
  82. {fragment_python-1.1.0 → fragment_python-1.1.1}/fragment/sync_sdk/get_ledger_account_balance.py +0 -0
  83. {fragment_python-1.1.0 → fragment_python-1.1.1}/fragment/sync_sdk/get_ledger_account_balance_with_child_rollup.py +0 -0
  84. {fragment_python-1.1.0 → fragment_python-1.1.1}/fragment/sync_sdk/get_ledger_account_lines.py +0 -0
  85. {fragment_python-1.1.0 → fragment_python-1.1.1}/fragment/sync_sdk/get_ledger_entry.py +0 -0
  86. {fragment_python-1.1.0 → fragment_python-1.1.1}/fragment/sync_sdk/get_schema.py +0 -0
  87. {fragment_python-1.1.0 → fragment_python-1.1.1}/fragment/sync_sdk/get_workspace.py +0 -0
  88. {fragment_python-1.1.0 → fragment_python-1.1.1}/fragment/sync_sdk/list_ledger_account_balances.py +0 -0
  89. {fragment_python-1.1.0 → fragment_python-1.1.1}/fragment/sync_sdk/list_ledger_accounts.py +0 -0
  90. {fragment_python-1.1.0 → fragment_python-1.1.1}/fragment/sync_sdk/list_ledger_entries.py +0 -0
  91. {fragment_python-1.1.0 → fragment_python-1.1.1}/fragment/sync_sdk/list_ledger_entry_group_balances.py +0 -0
  92. {fragment_python-1.1.0 → fragment_python-1.1.1}/fragment/sync_sdk/list_multi_currency_ledger_account_balances.py +0 -0
  93. {fragment_python-1.1.0 → fragment_python-1.1.1}/fragment/sync_sdk/migrate_ledger_entry.py +0 -0
  94. {fragment_python-1.1.0 → fragment_python-1.1.1}/fragment/sync_sdk/reconcile_tx.py +0 -0
  95. {fragment_python-1.1.0 → fragment_python-1.1.1}/fragment/sync_sdk/reconcile_tx_runtime.py +0 -0
  96. {fragment_python-1.1.0 → fragment_python-1.1.1}/fragment/sync_sdk/reverse_ledger_entry.py +0 -0
  97. {fragment_python-1.1.0 → fragment_python-1.1.1}/fragment/sync_sdk/store_schema.py +0 -0
  98. {fragment_python-1.1.0 → fragment_python-1.1.1}/fragment/sync_sdk/sync_client.py +0 -0
  99. {fragment_python-1.1.0 → fragment_python-1.1.1}/fragment/sync_sdk/sync_custom_accounts.py +0 -0
  100. {fragment_python-1.1.0 → fragment_python-1.1.1}/fragment/sync_sdk/sync_custom_txs.py +0 -0
  101. {fragment_python-1.1.0 → fragment_python-1.1.1}/fragment/sync_sdk/typed_entries.py +0 -0
  102. {fragment_python-1.1.0 → fragment_python-1.1.1}/fragment/sync_sdk/update_ledger.py +0 -0
  103. {fragment_python-1.1.0 → fragment_python-1.1.1}/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.1.0
3
+ Version: 1.1.1
4
4
  Summary: Python SDK for https://fragment.dev/
5
5
  License: Apache 2.0
6
6
  License-File: LICENSE
@@ -97,6 +97,9 @@ from .enums import (
97
97
  SchemaConsistencyMode,
98
98
  SchemaLedgerAccountStatus,
99
99
  SchemaLedgerEntryStatus,
100
+ SchemaPaymentEntryStatus,
101
+ SchemaPaymentTypeDirection,
102
+ SchemaSystemLineKind,
100
103
  StripeEnv,
101
104
  TxType,
102
105
  UnitEnv,
@@ -222,6 +225,7 @@ from .input_types import (
222
225
  LedgerLineInput,
223
226
  LedgerLineMatchInput,
224
227
  LedgerLinesFilterSet,
228
+ LedgerLineTagInput,
225
229
  LedgerMatchInput,
226
230
  LedgersFilterSet,
227
231
  LedgerTypeFilter,
@@ -245,7 +249,13 @@ from .input_types import (
245
249
  SchemaLedgerEntryTagInput,
246
250
  SchemaLedgerLineInput,
247
251
  SchemaMatchInput,
252
+ SchemaPaymentAccountingInput,
253
+ SchemaPaymentEntryInput,
248
254
  SchemaPaymentInput,
255
+ SchemaPaymentLineInput,
256
+ SchemaPaymentsInput,
257
+ SchemaPaymentTypeDetailsInput,
258
+ SchemaPaymentTypeInput,
249
259
  SchemaRepeatedConfigInput,
250
260
  SchemaTxMatchInput,
251
261
  StringFilter,
@@ -257,6 +267,7 @@ from .input_types import (
257
267
  UpdateLedgerAccountInput,
258
268
  UpdateLedgerEntryInput,
259
269
  UpdateLedgerInput,
270
+ UpdateLedgerLineInput,
260
271
  )
261
272
  from .list_ledger_account_balances import (
262
273
  ListLedgerAccountBalances,
@@ -577,6 +588,7 @@ __all__ = [
577
588
  "LedgerEntryTagInput",
578
589
  "LedgerLineInput",
579
590
  "LedgerLineMatchInput",
591
+ "LedgerLineTagInput",
580
592
  "LedgerLinesConsistencyMode",
581
593
  "LedgerLinesFilterSet",
582
594
  "LedgerMatchInput",
@@ -693,8 +705,17 @@ __all__ = [
693
705
  "SchemaLedgerEntryTagInput",
694
706
  "SchemaLedgerLineInput",
695
707
  "SchemaMatchInput",
708
+ "SchemaPaymentAccountingInput",
709
+ "SchemaPaymentEntryInput",
710
+ "SchemaPaymentEntryStatus",
696
711
  "SchemaPaymentInput",
712
+ "SchemaPaymentLineInput",
713
+ "SchemaPaymentTypeDetailsInput",
714
+ "SchemaPaymentTypeDirection",
715
+ "SchemaPaymentTypeInput",
716
+ "SchemaPaymentsInput",
697
717
  "SchemaRepeatedConfigInput",
718
+ "SchemaSystemLineKind",
698
719
  "SchemaTxMatchInput",
699
720
  "StoreSchema",
700
721
  "StoreSchemaStoreSchemaBadRequestError",
@@ -736,6 +757,7 @@ __all__ = [
736
757
  "UpdateLedgerEntryUpdateLedgerEntryUpdateLedgerEntryResultEntryLinesNodesAccount",
737
758
  "UpdateLedgerEntryUpdateLedgerEntryUpdateLedgerEntryResultEntryTags",
738
759
  "UpdateLedgerInput",
760
+ "UpdateLedgerLineInput",
739
761
  "UpdateLedgerUpdateLedgerBadRequestError",
740
762
  "UpdateLedgerUpdateLedgerInternalError",
741
763
  "UpdateLedgerUpdateLedgerUpdateLedgerResult",
@@ -299,6 +299,20 @@ class SchemaLedgerEntryStatus(str, Enum):
299
299
  disabled = "disabled"
300
300
 
301
301
 
302
+ class SchemaPaymentEntryStatus(str, Enum):
303
+ active = "active"
304
+
305
+
306
+ class SchemaPaymentTypeDirection(str, Enum):
307
+ payin = "payin"
308
+ payout = "payout"
309
+
310
+
311
+ class SchemaSystemLineKind(str, Enum):
312
+ payment_fee_line = "payment_fee_line"
313
+ payment_settlement_line = "payment_settlement_line"
314
+
315
+
302
316
  class StripeEnv(str, Enum):
303
317
  livemode = "livemode"
304
318
  testmode = "testmode"
@@ -21,6 +21,9 @@ from .enums import (
21
21
  SchemaConsistencyMode,
22
22
  SchemaLedgerAccountStatus,
23
23
  SchemaLedgerEntryStatus,
24
+ SchemaPaymentEntryStatus,
25
+ SchemaPaymentTypeDirection,
26
+ SchemaSystemLineKind,
24
27
  TxType,
25
28
  )
26
29
 
@@ -576,6 +579,13 @@ class LedgerLineMatchInput(BaseModel):
576
579
  "The FRAGMENT ID of the ledger line"
577
580
 
578
581
 
582
+ class LedgerLineTagInput(BaseModel):
583
+ key: Any
584
+ "The key of this tag. Can be up to 128 characters long."
585
+ value: Any
586
+ "The value associated with this tag's key. Can be up to 128 characters long."
587
+
588
+
579
589
  class LedgerLinesFilterSet(BaseModel):
580
590
  created: Optional["DateTimeFilter"] = None
581
591
  "Filter by the created timestamp of the Ledger Line. This is the wall-clock time when the Ledger Line was created."
@@ -726,6 +736,8 @@ class SchemaInput(BaseModel):
726
736
  "The Ledger Entries to add to the Schema."
727
737
  name: Optional[Any] = None
728
738
  "The human-readable name of the Schema."
739
+ payments: Optional["SchemaPaymentsInput"] = None
740
+ "EXPERIMENTAL: The Payment Types to add to the Schema."
729
741
  scenes: Optional[list["SceneInput"]] = None
730
742
  "Any scenes associated with this Schema."
731
743
 
@@ -879,12 +891,80 @@ class SchemaMatchInput(BaseModel):
879
891
  "Optional parameter to specify version of requested Schema. If not provided, it defaults to 0, representing the latest available version for the provided Schema key."
880
892
 
881
893
 
894
+ class SchemaPaymentAccountingInput(BaseModel):
895
+ """EXPERIMENTAL: The Ledger Entries a Payment Type posts as a payment moves
896
+ through its lifecycle, keyed by lifecycle transition."""
897
+
898
+ needs_confirmation_to_processing: Optional["SchemaPaymentEntryInput"] = None
899
+ "Posted when the payment enters processing. Optional."
900
+ processing_to_settled: "SchemaPaymentEntryInput"
901
+ "Posted when the payment settles. Every Payment Type must define it."
902
+
903
+
904
+ class SchemaPaymentEntryInput(BaseModel):
905
+ """EXPERIMENTAL: The Ledger Entry a Payment Type posts on a payment lifecycle event."""
906
+
907
+ description: Optional[Any] = None
908
+ "Human-readable description of the payment entry."
909
+ lines: list["SchemaPaymentLineInput"]
910
+ "The Ledger Lines in the payment entry."
911
+
912
+
882
913
  class SchemaPaymentInput(BaseModel):
883
914
  """EXPERIMENTAL: Marks a Ledger Account as a Payment Account."""
884
915
 
885
916
  penguin: bool
886
917
 
887
918
 
919
+ class SchemaPaymentLineInput(BaseModel):
920
+ """EXPERIMENTAL: A Ledger Line in a payment entry."""
921
+
922
+ account: "SchemaLedgerAccountMatchInput"
923
+ "The Ledger Account this line will be posted to.\nIt supports parameters in its attributes via handlebars syntax."
924
+ amount: Any
925
+ "The amount of the line. It supports parameters via the handlebars syntax and addition (+) and subtraction (-)."
926
+ currency: Optional["SchemaCurrencyMatchInput"] = None
927
+ "The currency of the line. This is required if the Ledger Account has currencyMode multi.\nIt supports parameters in its attributes via handlebars syntax."
928
+ description: Optional[Any] = None
929
+ "Human-readable description of the line."
930
+ key: Any
931
+ "The key for the line. Keys must be unique within a payment entry."
932
+ system: Optional[SchemaSystemLineKind] = None
933
+ "Marks this as a system-owned line. Fragment fills the amounts of system\nlines when the payment entry is posted."
934
+
935
+
936
+ class SchemaPaymentTypeDetailsInput(BaseModel):
937
+ """EXPERIMENTAL: The payment a Payment Type creates."""
938
+
939
+ amount: Any
940
+ "The amount requested for the payment, as a parameterized expression filled\nfrom createPayment parameters."
941
+ direction: SchemaPaymentTypeDirection
942
+ "The direction the payment moves money."
943
+
944
+
945
+ class SchemaPaymentTypeInput(BaseModel):
946
+ """EXPERIMENTAL: A Payment Type in a Schema. All Payment Types defined in a
947
+ Schema must have a unique `type` and `typeVersion` pair."""
948
+
949
+ accounting: "SchemaPaymentAccountingInput"
950
+ "The Ledger Entries posted as the payment moves through its lifecycle."
951
+ payment: "SchemaPaymentTypeDetailsInput"
952
+ "The payment this Payment Type creates."
953
+ status: SchemaPaymentEntryStatus
954
+ "The status of this Payment Type."
955
+ type_: Any = Field(alias="type")
956
+ "The type of this Payment Type. This is a stable, unique identifier for it.\nUniqueness is enforced at the Schema level."
957
+ type_version: int = Field(alias="typeVersion")
958
+ "The version of the Payment Type."
959
+
960
+
961
+ class SchemaPaymentsInput(BaseModel):
962
+ """EXPERIMENTAL: The Payment Types in your Schema."""
963
+
964
+ types: list["SchemaPaymentTypeInput"]
965
+ "A list of Payment Type definitions."
966
+
967
+
888
968
  class SchemaRepeatedConfigInput(BaseModel):
889
969
  """Configuration for repeated expansion of a line or condition. The key names a client-supplied
890
970
  array parameter whose elements each generate one copy of the line or condition at runtime.
@@ -995,6 +1075,10 @@ class UpdateLedgerAccountInput(BaseModel):
995
1075
  class UpdateLedgerEntryInput(BaseModel):
996
1076
  groups: Optional[list["LedgerEntryGroupInput"]] = None
997
1077
  "The list of Groups to add to this Ledger Entry."
1078
+ ledger_lines: Optional[list["UpdateLedgerLineInput"]] = Field(
1079
+ alias="ledgerLines", default=None
1080
+ )
1081
+ "The list of Ledger Line updates to apply to Ledger Lines on this Ledger Entry."
998
1082
  tags: Optional[list["LedgerEntryTagInput"]] = None
999
1083
  "The list of Tags to add and/or update on this Ledger Entry."
1000
1084
  tags_to_remove: Optional[list["LedgerEntryTagInput"]] = Field(
@@ -1008,6 +1092,17 @@ class UpdateLedgerInput(BaseModel):
1008
1092
  "The new Ledger name. "
1009
1093
 
1010
1094
 
1095
+ class UpdateLedgerLineInput(BaseModel):
1096
+ ledger_line: "LedgerLineMatchInput" = Field(alias="ledgerLine")
1097
+ "The Ledger Line that is being updated. It must belong to the Ledger Entry being updated."
1098
+ tags: Optional[list["LedgerLineTagInput"]] = None
1099
+ "The list of Tags to add and/or update on this Ledger Line."
1100
+ tags_to_remove: Optional[list["LedgerLineTagInput"]] = Field(
1101
+ alias="tagsToRemove", default=None
1102
+ )
1103
+ "The list of Tags to remove from this Ledger Line."
1104
+
1105
+
1011
1106
  AddLedgerEntryInput.model_rebuild()
1012
1107
  ChartOfAccountsInput.model_rebuild()
1013
1108
  CreateLedgerAccountInput.model_rebuild()
@@ -1049,6 +1144,12 @@ SchemaLedgerEntriesInput.model_rebuild()
1049
1144
  SchemaLedgerEntryConditionInput.model_rebuild()
1050
1145
  SchemaLedgerEntryInput.model_rebuild()
1051
1146
  SchemaLedgerLineInput.model_rebuild()
1147
+ SchemaPaymentAccountingInput.model_rebuild()
1148
+ SchemaPaymentEntryInput.model_rebuild()
1149
+ SchemaPaymentLineInput.model_rebuild()
1150
+ SchemaPaymentTypeInput.model_rebuild()
1151
+ SchemaPaymentsInput.model_rebuild()
1052
1152
  TagFilter.model_rebuild()
1053
1153
  UpdateLedgerAccountInput.model_rebuild()
1054
1154
  UpdateLedgerEntryInput.model_rebuild()
1155
+ UpdateLedgerLineInput.model_rebuild()
@@ -96,6 +96,9 @@ from .enums import (
96
96
  SchemaConsistencyMode,
97
97
  SchemaLedgerAccountStatus,
98
98
  SchemaLedgerEntryStatus,
99
+ SchemaPaymentEntryStatus,
100
+ SchemaPaymentTypeDirection,
101
+ SchemaSystemLineKind,
99
102
  StripeEnv,
100
103
  TxType,
101
104
  UnitEnv,
@@ -221,6 +224,7 @@ from .input_types import (
221
224
  LedgerLineInput,
222
225
  LedgerLineMatchInput,
223
226
  LedgerLinesFilterSet,
227
+ LedgerLineTagInput,
224
228
  LedgerMatchInput,
225
229
  LedgersFilterSet,
226
230
  LedgerTypeFilter,
@@ -244,7 +248,13 @@ from .input_types import (
244
248
  SchemaLedgerEntryTagInput,
245
249
  SchemaLedgerLineInput,
246
250
  SchemaMatchInput,
251
+ SchemaPaymentAccountingInput,
252
+ SchemaPaymentEntryInput,
247
253
  SchemaPaymentInput,
254
+ SchemaPaymentLineInput,
255
+ SchemaPaymentsInput,
256
+ SchemaPaymentTypeDetailsInput,
257
+ SchemaPaymentTypeInput,
248
258
  SchemaRepeatedConfigInput,
249
259
  SchemaTxMatchInput,
250
260
  StringFilter,
@@ -256,6 +266,7 @@ from .input_types import (
256
266
  UpdateLedgerAccountInput,
257
267
  UpdateLedgerEntryInput,
258
268
  UpdateLedgerInput,
269
+ UpdateLedgerLineInput,
259
270
  )
260
271
  from .list_ledger_account_balances import (
261
272
  ListLedgerAccountBalances,
@@ -576,6 +587,7 @@ __all__ = [
576
587
  "LedgerEntryTagInput",
577
588
  "LedgerLineInput",
578
589
  "LedgerLineMatchInput",
590
+ "LedgerLineTagInput",
579
591
  "LedgerLinesConsistencyMode",
580
592
  "LedgerLinesFilterSet",
581
593
  "LedgerMatchInput",
@@ -692,8 +704,17 @@ __all__ = [
692
704
  "SchemaLedgerEntryTagInput",
693
705
  "SchemaLedgerLineInput",
694
706
  "SchemaMatchInput",
707
+ "SchemaPaymentAccountingInput",
708
+ "SchemaPaymentEntryInput",
709
+ "SchemaPaymentEntryStatus",
695
710
  "SchemaPaymentInput",
711
+ "SchemaPaymentLineInput",
712
+ "SchemaPaymentTypeDetailsInput",
713
+ "SchemaPaymentTypeDirection",
714
+ "SchemaPaymentTypeInput",
715
+ "SchemaPaymentsInput",
696
716
  "SchemaRepeatedConfigInput",
717
+ "SchemaSystemLineKind",
697
718
  "SchemaTxMatchInput",
698
719
  "StoreSchema",
699
720
  "StoreSchemaStoreSchemaBadRequestError",
@@ -736,6 +757,7 @@ __all__ = [
736
757
  "UpdateLedgerEntryUpdateLedgerEntryUpdateLedgerEntryResultEntryLinesNodesAccount",
737
758
  "UpdateLedgerEntryUpdateLedgerEntryUpdateLedgerEntryResultEntryTags",
738
759
  "UpdateLedgerInput",
760
+ "UpdateLedgerLineInput",
739
761
  "UpdateLedgerUpdateLedgerBadRequestError",
740
762
  "UpdateLedgerUpdateLedgerInternalError",
741
763
  "UpdateLedgerUpdateLedgerUpdateLedgerResult",
@@ -299,6 +299,20 @@ class SchemaLedgerEntryStatus(str, Enum):
299
299
  disabled = "disabled"
300
300
 
301
301
 
302
+ class SchemaPaymentEntryStatus(str, Enum):
303
+ active = "active"
304
+
305
+
306
+ class SchemaPaymentTypeDirection(str, Enum):
307
+ payin = "payin"
308
+ payout = "payout"
309
+
310
+
311
+ class SchemaSystemLineKind(str, Enum):
312
+ payment_fee_line = "payment_fee_line"
313
+ payment_settlement_line = "payment_settlement_line"
314
+
315
+
302
316
  class StripeEnv(str, Enum):
303
317
  livemode = "livemode"
304
318
  testmode = "testmode"
@@ -21,6 +21,9 @@ from .enums import (
21
21
  SchemaConsistencyMode,
22
22
  SchemaLedgerAccountStatus,
23
23
  SchemaLedgerEntryStatus,
24
+ SchemaPaymentEntryStatus,
25
+ SchemaPaymentTypeDirection,
26
+ SchemaSystemLineKind,
24
27
  TxType,
25
28
  )
26
29
 
@@ -576,6 +579,13 @@ class LedgerLineMatchInput(BaseModel):
576
579
  "The FRAGMENT ID of the ledger line"
577
580
 
578
581
 
582
+ class LedgerLineTagInput(BaseModel):
583
+ key: Any
584
+ "The key of this tag. Can be up to 128 characters long."
585
+ value: Any
586
+ "The value associated with this tag's key. Can be up to 128 characters long."
587
+
588
+
579
589
  class LedgerLinesFilterSet(BaseModel):
580
590
  created: Optional["DateTimeFilter"] = None
581
591
  "Filter by the created timestamp of the Ledger Line. This is the wall-clock time when the Ledger Line was created."
@@ -726,6 +736,8 @@ class SchemaInput(BaseModel):
726
736
  "The Ledger Entries to add to the Schema."
727
737
  name: Optional[Any] = None
728
738
  "The human-readable name of the Schema."
739
+ payments: Optional["SchemaPaymentsInput"] = None
740
+ "EXPERIMENTAL: The Payment Types to add to the Schema."
729
741
  scenes: Optional[list["SceneInput"]] = None
730
742
  "Any scenes associated with this Schema."
731
743
 
@@ -879,12 +891,80 @@ class SchemaMatchInput(BaseModel):
879
891
  "Optional parameter to specify version of requested Schema. If not provided, it defaults to 0, representing the latest available version for the provided Schema key."
880
892
 
881
893
 
894
+ class SchemaPaymentAccountingInput(BaseModel):
895
+ """EXPERIMENTAL: The Ledger Entries a Payment Type posts as a payment moves
896
+ through its lifecycle, keyed by lifecycle transition."""
897
+
898
+ needs_confirmation_to_processing: Optional["SchemaPaymentEntryInput"] = None
899
+ "Posted when the payment enters processing. Optional."
900
+ processing_to_settled: "SchemaPaymentEntryInput"
901
+ "Posted when the payment settles. Every Payment Type must define it."
902
+
903
+
904
+ class SchemaPaymentEntryInput(BaseModel):
905
+ """EXPERIMENTAL: The Ledger Entry a Payment Type posts on a payment lifecycle event."""
906
+
907
+ description: Optional[Any] = None
908
+ "Human-readable description of the payment entry."
909
+ lines: list["SchemaPaymentLineInput"]
910
+ "The Ledger Lines in the payment entry."
911
+
912
+
882
913
  class SchemaPaymentInput(BaseModel):
883
914
  """EXPERIMENTAL: Marks a Ledger Account as a Payment Account."""
884
915
 
885
916
  penguin: bool
886
917
 
887
918
 
919
+ class SchemaPaymentLineInput(BaseModel):
920
+ """EXPERIMENTAL: A Ledger Line in a payment entry."""
921
+
922
+ account: "SchemaLedgerAccountMatchInput"
923
+ "The Ledger Account this line will be posted to.\nIt supports parameters in its attributes via handlebars syntax."
924
+ amount: Any
925
+ "The amount of the line. It supports parameters via the handlebars syntax and addition (+) and subtraction (-)."
926
+ currency: Optional["SchemaCurrencyMatchInput"] = None
927
+ "The currency of the line. This is required if the Ledger Account has currencyMode multi.\nIt supports parameters in its attributes via handlebars syntax."
928
+ description: Optional[Any] = None
929
+ "Human-readable description of the line."
930
+ key: Any
931
+ "The key for the line. Keys must be unique within a payment entry."
932
+ system: Optional[SchemaSystemLineKind] = None
933
+ "Marks this as a system-owned line. Fragment fills the amounts of system\nlines when the payment entry is posted."
934
+
935
+
936
+ class SchemaPaymentTypeDetailsInput(BaseModel):
937
+ """EXPERIMENTAL: The payment a Payment Type creates."""
938
+
939
+ amount: Any
940
+ "The amount requested for the payment, as a parameterized expression filled\nfrom createPayment parameters."
941
+ direction: SchemaPaymentTypeDirection
942
+ "The direction the payment moves money."
943
+
944
+
945
+ class SchemaPaymentTypeInput(BaseModel):
946
+ """EXPERIMENTAL: A Payment Type in a Schema. All Payment Types defined in a
947
+ Schema must have a unique `type` and `typeVersion` pair."""
948
+
949
+ accounting: "SchemaPaymentAccountingInput"
950
+ "The Ledger Entries posted as the payment moves through its lifecycle."
951
+ payment: "SchemaPaymentTypeDetailsInput"
952
+ "The payment this Payment Type creates."
953
+ status: SchemaPaymentEntryStatus
954
+ "The status of this Payment Type."
955
+ type_: Any = Field(alias="type")
956
+ "The type of this Payment Type. This is a stable, unique identifier for it.\nUniqueness is enforced at the Schema level."
957
+ type_version: int = Field(alias="typeVersion")
958
+ "The version of the Payment Type."
959
+
960
+
961
+ class SchemaPaymentsInput(BaseModel):
962
+ """EXPERIMENTAL: The Payment Types in your Schema."""
963
+
964
+ types: list["SchemaPaymentTypeInput"]
965
+ "A list of Payment Type definitions."
966
+
967
+
888
968
  class SchemaRepeatedConfigInput(BaseModel):
889
969
  """Configuration for repeated expansion of a line or condition. The key names a client-supplied
890
970
  array parameter whose elements each generate one copy of the line or condition at runtime.
@@ -995,6 +1075,10 @@ class UpdateLedgerAccountInput(BaseModel):
995
1075
  class UpdateLedgerEntryInput(BaseModel):
996
1076
  groups: Optional[list["LedgerEntryGroupInput"]] = None
997
1077
  "The list of Groups to add to this Ledger Entry."
1078
+ ledger_lines: Optional[list["UpdateLedgerLineInput"]] = Field(
1079
+ alias="ledgerLines", default=None
1080
+ )
1081
+ "The list of Ledger Line updates to apply to Ledger Lines on this Ledger Entry."
998
1082
  tags: Optional[list["LedgerEntryTagInput"]] = None
999
1083
  "The list of Tags to add and/or update on this Ledger Entry."
1000
1084
  tags_to_remove: Optional[list["LedgerEntryTagInput"]] = Field(
@@ -1008,6 +1092,17 @@ class UpdateLedgerInput(BaseModel):
1008
1092
  "The new Ledger name. "
1009
1093
 
1010
1094
 
1095
+ class UpdateLedgerLineInput(BaseModel):
1096
+ ledger_line: "LedgerLineMatchInput" = Field(alias="ledgerLine")
1097
+ "The Ledger Line that is being updated. It must belong to the Ledger Entry being updated."
1098
+ tags: Optional[list["LedgerLineTagInput"]] = None
1099
+ "The list of Tags to add and/or update on this Ledger Line."
1100
+ tags_to_remove: Optional[list["LedgerLineTagInput"]] = Field(
1101
+ alias="tagsToRemove", default=None
1102
+ )
1103
+ "The list of Tags to remove from this Ledger Line."
1104
+
1105
+
1011
1106
  AddLedgerEntryInput.model_rebuild()
1012
1107
  ChartOfAccountsInput.model_rebuild()
1013
1108
  CreateLedgerAccountInput.model_rebuild()
@@ -1049,6 +1144,12 @@ SchemaLedgerEntriesInput.model_rebuild()
1049
1144
  SchemaLedgerEntryConditionInput.model_rebuild()
1050
1145
  SchemaLedgerEntryInput.model_rebuild()
1051
1146
  SchemaLedgerLineInput.model_rebuild()
1147
+ SchemaPaymentAccountingInput.model_rebuild()
1148
+ SchemaPaymentEntryInput.model_rebuild()
1149
+ SchemaPaymentLineInput.model_rebuild()
1150
+ SchemaPaymentTypeInput.model_rebuild()
1151
+ SchemaPaymentsInput.model_rebuild()
1052
1152
  TagFilter.model_rebuild()
1053
1153
  UpdateLedgerAccountInput.model_rebuild()
1054
1154
  UpdateLedgerEntryInput.model_rebuild()
1155
+ UpdateLedgerLineInput.model_rebuild()
@@ -5,7 +5,7 @@ target_package_name = "fragment_graphql_client"
5
5
 
6
6
  [tool.poetry]
7
7
  name = "fragment-python"
8
- version = "1.1.0"
8
+ version = "1.1.1"
9
9
  description = "Python SDK for https://fragment.dev/"
10
10
  authors = ["Fragment Foundries Inc"]
11
11
  license = "Apache 2.0"
File without changes