Skip to content
This repository was archived by the owner on Feb 4, 2025. It is now read-only.

Commit d71297a

Browse files
committed
Fix return type of updateOrderStatusAndPaymentMethod
1 parent cce1771 commit d71297a

File tree

1 file changed

+2
-2
lines changed
  • plugins/woocommerce/src/main/kotlin/org/wordpress/android/fluxc/network/rest/wpcom/wc/order

1 file changed

+2
-2
lines changed

plugins/woocommerce/src/main/kotlin/org/wordpress/android/fluxc/network/rest/wpcom/wc/order/OrderRestClient.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -595,7 +595,7 @@ class OrderRestClient @Inject constructor(
595595
status: String,
596596
paymentMethodId: String? = null,
597597
paymentMethodTitle: String? = null,
598-
) {
598+
): RemoteOrderPayload.Updating {
599599
val updatePayload = mutableMapOf<String, Any>()
600600
updatePayload["status"] = status
601601
paymentMethodId?.let {
@@ -604,7 +604,7 @@ class OrderRestClient @Inject constructor(
604604
paymentMethodTitle?.let {
605605
updatePayload["payment_method_title"] = paymentMethodTitle
606606
}
607-
updateOrder(orderToUpdate, site, updatePayload)
607+
return updateOrder(orderToUpdate, site, updatePayload)
608608
}
609609

610610
suspend fun updateCustomerOrderNote(

0 commit comments

Comments
 (0)