create new() objects before passing to _post()
sherrardb opened this issue · comments
in some methods we _post()
passed arguments directly:
Lines 481 to 492 in 646861d
but in doing so, we are unable to take advantage of any magic that happens during objectification:
stripe-perl/lib/Net/Stripe/Resource.pm
Lines 22 to 26 in 646861d
and therefore have to duplicate it in the method:
Lines 475 to 477 in 646861d
where feasible, i think that we should use a pattern similar to post_subscription()
:
Lines 781 to 799 in 646861d