-
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
f6a09f0
commit ac2dc83
Showing
14 changed files
with
594 additions
and
5 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
102 changes: 102 additions & 0 deletions
102
...ests/schemas/org+openedx+enterprise_subsidies+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,102 @@ | ||
{ | ||
"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": "string" | ||
}, | ||
{ | ||
"name": "fulfillment_identifier", | ||
"type": "string" | ||
}, | ||
{ | ||
"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_subsidies.ledger_transaction.committed.v1" | ||
} |
Oops, something went wrong.