Skip to content

Add list events method for Charge#48

Merged
som-m merged 2 commits intoomise:masterfrom
som-m:charge-list-events
Feb 10, 2021
Merged

Add list events method for Charge#48
som-m merged 2 commits intoomise:masterfrom
som-m:charge-list-events

Conversation

@som-m
Copy link
Copy Markdown
Contributor

@som-m som-m commented Feb 5, 2021

Summary

  • Add a new method to fetch all events belonging to a charge (Omise doc)
  • Add test

QA

You should be able to fetch a list of events belonging to a given charge.

  1. Retrieve a charge
    charge = omise.Charge.retrieve("chrg_test_5mozta4qq7c8rt2doub")

  2. List all events of the charge
    events = charge.list_events()
    events = list(events)

@som-m som-m merged commit 13c24d3 into omise:master Feb 10, 2021
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.

2 participants