omise / omise-python

Omise Python Library
https://docs.opn.ooo
MIT License
26 stars 15 forks source link

bug: omise.Charge schedule attribute is a callable that returns incorrect value #54

Closed jamesx00 closed 1 month ago

jamesx00 commented 2 years ago

As per the documentation, a charge's attribute "schedule" should be an object id expandable. But calling charge.schedule() returns a list of all the charges in the account.

charge = omise.Charge.retrieve("charge_id")
len(charge.schedule()) # This returns more than 1
aashishgurung commented 10 months ago

@jamesx00 Hey, sorry for being late. If it's still relevant, would you pease tell us what was your expected result as object id expandable?

aashishgurung commented 1 month ago

@jamesx00 We’re going to close this since there hasn’t been any activity for a while. If this issue is still relevant, please feel free to reopen it with more details and we’ll take another look.