-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: new enterprise transaction data/signals
* Added new enterprise signals `LEDGER_TRANSACTION_CREATED`, `LEDGER_TRANSACTION_COMMITTED`, `LEDGER_TRANSACTION_FAILED`, and `LEDGER_TRANSACTION_REVERSED`. * Added a `UuidAvroSerializer` to serialize uuid fields. * Added `isort` make target.
- Loading branch information
1 parent
f3062f2
commit 20a45f9
Showing
13 changed files
with
633 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -62,3 +62,6 @@ requirements/private.txt | |
|
||
# IDA cruft | ||
.idea | ||
|
||
# emacs backup files | ||
*~ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,4 @@ | |
more information about the project. | ||
""" | ||
|
||
__version__ = "9.10.0" | ||
__version__ = "9.11.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
110 changes: 110 additions & 0 deletions
110
.../tests/schemas/org+openedx+enterprise+subsidy_ledger_transaction+committed+v1_schema.avsc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,110 @@ | ||
{ | ||
"name": "CloudEvent", | ||
"type": "record", | ||
"doc": "Avro Event Format for CloudEvents created with openedx_events/schema", | ||
"fields": [ | ||
{ | ||
"name": "ledger_transaction", | ||
"type": { | ||
"name": "LedgerTransaction", | ||
"type": "record", | ||
"fields": [ | ||
{ | ||
"name": "uuid", | ||
"type": "string" | ||
}, | ||
{ | ||
"name": "created", | ||
"type": "string" | ||
}, | ||
{ | ||
"name": "modified", | ||
"type": "string" | ||
}, | ||
{ | ||
"name": "idempotency_key", | ||
"type": "string" | ||
}, | ||
{ | ||
"name": "quantity", | ||
"type": "long" | ||
}, | ||
{ | ||
"name": "state", | ||
"type": "string" | ||
}, | ||
{ | ||
"name": "ledger_uuid", | ||
"type": "string" | ||
}, | ||
{ | ||
"name": "subsidy_access_policy_uuid", | ||
"type": "string" | ||
}, | ||
{ | ||
"name": "lms_user_id", | ||
"type": "long" | ||
}, | ||
{ | ||
"name": "content_key", | ||
"type": "string" | ||
}, | ||
{ | ||
"name": "parent_content_key", | ||
"type": [ | ||
"null", | ||
"string" | ||
], | ||
"default": null | ||
}, | ||
{ | ||
"name": "fulfillment_identifier", | ||
"type": [ | ||
"null", | ||
"string" | ||
], | ||
"default": null | ||
}, | ||
{ | ||
"name": "reversal", | ||
"type": [ | ||
"null", | ||
{ | ||
"name": "LedgerTransactionReversal", | ||
"type": "record", | ||
"fields": [ | ||
{ | ||
"name": "uuid", | ||
"type": "string" | ||
}, | ||
{ | ||
"name": "created", | ||
"type": "string" | ||
}, | ||
{ | ||
"name": "modified", | ||
"type": "string" | ||
}, | ||
{ | ||
"name": "idempotency_key", | ||
"type": "string" | ||
}, | ||
{ | ||
"name": "quantity", | ||
"type": "long" | ||
}, | ||
{ | ||
"name": "state", | ||
"type": "string" | ||
} | ||
] | ||
} | ||
], | ||
"default": null | ||
} | ||
] | ||
} | ||
} | ||
], | ||
"namespace": "org.openedx.enterprise.subsidy_ledger_transaction.committed.v1" | ||
} |
Oops, something went wrong.