fix/33389: add `refunded_payment` property in the create refund response (#37816)

This commit is contained in:
Siddharth Thevaril 2023-04-19 17:33:05 +05:30 committed by GitHub
parent 950bf937d7
commit f3eded792f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -0,0 +1,4 @@
Significance: patch
Type: fix
add refunded_payment property in the create refund response

View File

@ -394,7 +394,7 @@ class WC_REST_Order_Refunds_V2_Controller extends WC_REST_Orders_V2_Controller {
'refunded_payment' => array(
'description' => __( 'If the payment was refunded via the API.', 'woocommerce' ),
'type' => 'boolean',
'context' => array( 'view' ),
'context' => array( 'view', 'edit' ),
'readonly' => true,
),
'meta_data' => array(