omise-python icon indicating copy to clipboard operation
omise-python copied to clipboard

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

Open jamesx00 opened this issue 2 years ago • 1 comments

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

jamesx00 avatar Jun 17 '22 11:06 jamesx00

@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 avatar Nov 17 '23 08:11 aashishgurung