Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

List transactions #17

Merged
merged 7 commits into from
Sep 1, 2021
Merged

List transactions #17

merged 7 commits into from
Sep 1, 2021

Conversation

ssoper
Copy link
Owner

@ssoper ssoper commented Sep 1, 2021

  • Consume transaction model
  • List most recent 50 transactions
  • Implement date querying
  • Implement varying count
  • Implement sort
// Last 50 transactions
accountSrvc.listTransactions(it)?.let {
  println(it)
}

// Transactions between 10/1/2020 and 10/3/2020
val startDate = GregorianCalendar(2020, 9, 1)
val endDate = GregorianCalendar(2020, 9, 3)
accountSrvc.listTransactions(it, startDate, endDate)?.let {
  println(it)
}

// Retrieve 5 most recent transactions
accountSrvc.listTransactions(accountIdKey, null, null, TransactionSortOrder.DESC, null, 5)?.let {
  println(it)
}

@ssoper ssoper merged commit 07e481f into master Sep 1, 2021
@ssoper ssoper deleted the features/list-transactions branch September 1, 2021 00:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant