You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had a similar issue with OrderCoupons. The problem is that these subresources use ListableApiSubResource but the iterall method you probably want is on the ListableApiResource mix in
You can work around this with a monkey patch at runtime if you do something like this:
classListableOrderCoupons(bigcommerce.api.OrderCoupons, bigcommerce.api.ListableApiResource):
pass
...
# at runtime add this monkeypatch to the API objconn.ListableOrderCoupons=bigcommerce.api.ApiResourceWrapper(ListableOrderCoupons, conn)
# now can just call...foo=conn.ListableOrderCoupons.iterall()
...
not winning any awards for cleanest code but should work in a pinch
Activity
WillAyd commentedon Apr 18, 2022
I had a similar issue with OrderCoupons. The problem is that these subresources use
ListableApiSubResourcebut theiterallmethod you probably want is on theListableApiResourcemix inYou can work around this with a monkey patch at runtime if you do something like this:
not winning any awards for cleanest code but should work in a pinch