Closed H--o-l closed 4 years ago
Hey Adrien!
Thanks for the feedback.
I became aware this morning that I didn't implement the action of the created : {'gt': timestamp}
parameter, thus I add three lines of code, and retested it:
@@ -500,6 +498,9 @@ class Charge(StripeObject):
li = super(Charge, cls)._api_list_all(url, limit=limit)
li._list = [c for c in li._list if c.customer == customer]
+ if created.get('gt'):
+ li._list = [c for c in li._list
+ if c.created > try_convert_to_int(created['gt'])]
return li
I also rebase the PR since you merge https://github.com/adrienverge/localstripe/pull/141 (thanks!)
Thanks!
Made from Stripe documentation: https://stripe.com/docs/api/charges/list#list_charges-customer
This PR is based on top of the other PR https://github.com/adrienverge/localstripe/pull/141