-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get the type of an adjustment #245
Comments
I think you should be able to do: $adjustment->type; Is this not the case? |
I think this is the same underlying issue as #210 |
Thanks for the quick reply, it's the same issue as #210 |
I guess for now we could just look at if unit_amount_in_cents is negative or positive to figure out if it is a 'charge' or 'refund', what do you think? |
I have the same request. I'm previewing a subscription if it were to be given a partial refund so i can show the prorated amount. In my case, Recurly folks said that the credit "type" will always have "Credit for remaining..." at the start of the description. That is what i'm keying off. Not great, but it is working. Would be best if I could get the type directly. Does the XML parse code just need to be updated to add that attribute for adjustment node? |
@bobalbert @ronlobo See PR #299 This will go out in the next release |
Hey there,
I wasn't able to figure out how the get the type of a Recurly_Adjustment, if it is either a 'charge' or 'refund'
Is there a way to find that out on a valid Recurly_Adjustment instance?
Thanks!
The text was updated successfully, but these errors were encountered: