Skip to content

Commit

Permalink
feat(CCO-288): add reference id to wallet transaction
Browse files Browse the repository at this point in the history
  • Loading branch information
CodingBoulderingRepeat committed Aug 28, 2023
1 parent 3f47446 commit 3cdad78
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions wallettransaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ type WalletTransaction struct {
// Reference type of this transaction.
ReferenceType string `json:"referenceType"`

// Reference id of this transaction.
ReferenceID string `json:"referenceId"`

// Transaction group of this transaction.
Group TransactionGroup `json:"group"`

Expand Down
1 change: 1 addition & 0 deletions wallettransaction_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ func TestWalletTransaction_MarshalJSON(t *testing.T) {
"createdAt": "2022-04-22T09:47:05Z",
"updatedAt": "2022-04-22T09:47:06Z",
"referenceType": "SubscriptionPurchase",
"referenceId": "4908086",
"group": "withdraw",
"state": "complete",
"note": "Test transaction."
Expand Down

0 comments on commit 3cdad78

Please sign in to comment.