Skip to content
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

Update RefundRestClient to support partial refunds #3069

Draft
wants to merge 1 commit into
base: trunk
Choose a base branch
from

Conversation

irfano
Copy link
Member

@irfano irfano commented Jul 29, 2024

This combines the createRefund...() functions in RefundRestClient because createRefundByItems() did not accept the amount but calculated it itself. This PR makes the amount parameter required since we now support partial refunds.

This can be tested via woocommerce/woocommerce-android#12164

@irfano irfano requested a review from JorgeMucientes July 29, 2024 15:32
@irfano irfano changed the title Combine createRefund functions in RefundRestClient Update RefundRestClient to support partial refunds Jul 29, 2024
@JorgeMucientes JorgeMucientes self-assigned this Jul 31, 2024
@irfano irfano removed the request for review from JorgeMucientes August 4, 2024 15:26
@irfano irfano marked this pull request as draft August 4, 2024 15:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants