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

[API] refunded_payment in Refunds isn't showed in POST #36

Open
edoaxyz opened this issue Sep 23, 2019 · 2 comments
Labels

Comments

@edoaxyz
Copy link

@edoaxyz edoaxyz commented Sep 23, 2019

Describe the bug
As the title say, the attribute refunded_payment in Refunds objects isn't showed in any POST response, while the documentation shows that it should be in any response, even if it's a read-only attribute. Note that I tried this only with api_refund attribute set to false in POST requests.

To Reproduce
Try to make a GET request to the Refund endpoint and you'll see that the refunded_payment attribute is there.
Send a POST request to the same endpoint and you won't find the refunded_payment attribute.

Screenshots
Screenshots from postman
GET Request
GET Request

POST Request
POST Request

Expected behavior
refunded_payment attribute should be in any response.

Isolating the problem (mark completed items with an [x]):

  • I have deactivated other plugins and confirmed this bug occurs when only WooCommerce plugin is active.
  • This bug happens with a default WordPress theme active, or Storefront.
  • I can reproduce this bug consistently using the steps above.

WordPress Environment

### WordPress Environment ###

WordPress address (URL): http://localhost
Site address (URL): http://localhost
WC Version: 3.7.0
REST API Version: ✔ 1.0.2
Log Directory Writable: ✔
WP Version: 5.2.3
WP Multisite: –
WP Memory Limit: 256 MB
WP Debug Mode: –
WP Cron: ✔
Language: it_IT
External object cache: –

Server Environment

Server Info: nginx/1.13.2
PHP Version: 7.3.8
PHP Post Max Size: 8 MB
PHP Time Limit: 30
PHP Max Input Vars: 1000
cURL Version: 7.65.1
OpenSSL/1.0.2o

SUHOSIN Installed: –
MySQL Version: 5.7.26
Max Upload Size: 8 MB
Default Timezone is UTC: ✔
fsockopen/cURL: ✔
SoapClient: ✔
DOMDocument: ✔
GZip: ✔
Multibyte String: ✔
Remote Post: ✔
Remote Get: ✔

Database

WC Database Version: 3.7.0
WC Database Prefix: wp_
MaxMind GeoIP Database: ✔
Dimensione totale database: 2.26MB
Dimensione dati database: 1.01MB
Dimensione indice database: 1.25MB
wp_woocommerce_sessions: Dati: 0.02MB + indice: 0.02MB + motore InnoDB
wp_woocommerce_api_keys: Dati: 0.02MB + indice: 0.03MB + motore InnoDB
wp_woocommerce_attribute_taxonomies: Dati: 0.02MB + indice: 0.02MB + motore InnoDB
wp_woocommerce_downloadable_product_permissions: Dati: 0.02MB + indice: 0.06MB + motore InnoDB
wp_woocommerce_order_items: Dati: 0.02MB + indice: 0.02MB + motore InnoDB
wp_woocommerce_order_itemmeta: Dati: 0.02MB + indice: 0.03MB + motore InnoDB
wp_woocommerce_tax_rates: Dati: 0.02MB + indice: 0.06MB + motore InnoDB
wp_woocommerce_tax_rate_locations: Dati: 0.02MB + indice: 0.03MB + motore InnoDB
wp_woocommerce_shipping_zones: Dati: 0.02MB + indice: 0.00MB + motore InnoDB
wp_woocommerce_shipping_zone_locations: Dati: 0.02MB + indice: 0.03MB + motore InnoDB
wp_woocommerce_shipping_zone_methods: Dati: 0.02MB + indice: 0.00MB + motore InnoDB
wp_woocommerce_payment_tokens: Dati: 0.02MB + indice: 0.02MB + motore InnoDB
wp_woocommerce_payment_tokenmeta: Dati: 0.02MB + indice: 0.03MB + motore InnoDB
wp_woocommerce_log: Dati: 0.02MB + indice: 0.02MB + motore InnoDB
wp_commentmeta: Dati: 0.02MB + indice: 0.03MB + motore InnoDB
wp_comments: Dati: 0.02MB + indice: 0.09MB + motore InnoDB
wp_failed_jobs: Dati: 0.02MB + indice: 0.00MB + motore InnoDB
wp_links: Dati: 0.02MB + indice: 0.02MB + motore InnoDB
wp_mailchimp_carts: Dati: 0.02MB + indice: 0.00MB + motore InnoDB
wp_options: Dati: 0.14MB + indice: 0.02MB + motore InnoDB
wp_postmeta: Dati: 0.08MB + indice: 0.09MB + motore InnoDB
wp_posts: Dati: 0.05MB + indice: 0.06MB + motore InnoDB
wp_queue: Dati: 0.02MB + indice: 0.00MB + motore InnoDB
wp_termmeta: Dati: 0.02MB + indice: 0.03MB + motore InnoDB
wp_terms: Dati: 0.02MB + indice: 0.03MB + motore InnoDB
wp_term_relationships: Dati: 0.02MB + indice: 0.02MB + motore InnoDB
wp_term_taxonomy: Dati: 0.02MB + indice: 0.03MB + motore InnoDB
wp_usermeta: Dati: 0.02MB + indice: 0.03MB + motore InnoDB
wp_users: Dati: 0.02MB + indice: 0.05MB + motore InnoDB
wp_wc_admin_notes: Dati: 0.02MB + indice: 0.00MB + motore InnoDB
wp_wc_admin_note_actions: Dati: 0.02MB + indice: 0.02MB + motore InnoDB
wp_wc_customer_lookup: Dati: 0.02MB + indice: 0.03MB + motore InnoDB
wp_wc_download_log: Dati: 0.02MB + indice: 0.03MB + motore InnoDB
wp_wc_order_coupon_lookup: Dati: 0.02MB + indice: 0.03MB + motore InnoDB
wp_wc_order_product_lookup: Dati: 0.02MB + indice: 0.06MB + motore InnoDB
wp_wc_order_stats: Dati: 0.02MB + indice: 0.05MB + motore InnoDB
wp_wc_order_tax_lookup: Dati: 0.02MB + indice: 0.03MB + motore InnoDB
wp_wc_product_meta_lookup: Dati: 0.02MB + indice: 0.09MB + motore InnoDB
wp_wc_tax_rate_classes: Dati: 0.02MB + indice: 0.02MB + motore InnoDB
wp_wc_webhooks: Dati: 0.02MB + indice: 0.02MB + motore InnoDB

Security

Secure connection (HTTPS):
Il tuo negozio non utilizza HTTPS. Scopri di più su HTTPS e certificati SSL .
Hide errors from visitors: ✔

Active Plugins (7)

Facebook for WooCommerce: by Facebook – 1.9.15 – Non testato con la versione attiva di WooCommerce
Jetpack by WordPress.com: by Automattic – 7.7.1
Mailchimp for WooCommerce: by Mailchimp – 2.2.2 – Non testato con la versione attiva di WooCommerce
WooCommerce Admin: by WooCommerce – 0.18.0
WooCommerce PayPal Checkout Gateway: by WooCommerce – 1.6.17
WooCommerce Services: by Automattic – 1.21.1
WooCommerce: by Automattic – 3.7.0

Inactive Plugins (2)

Akismet Anti-Spam: by Automattic – 4.1.2
Hello Dolly: by Matt Mullenweg – 1.7.2

Settings

API Enabled: –
Force SSL: –
Currency: EUR (€)
Currency Position: right
Thousand Separator: .
Decimal Separator: ,
Number of Decimals: 2
Taxonomies: Product Types: external (external)
grouped (grouped)
simple (simple)
variable (variable)

Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog)
exclude-from-search (exclude-from-search)
featured (featured)
outofstock (outofstock)
rated-1 (rated-1)
rated-2 (rated-2)
rated-3 (rated-3)
rated-4 (rated-4)
rated-5 (rated-5)

Connected to WooCommerce.com: –

WC Pages

Shop base: woocommerce/woocommerce#6 - /negozio/
Carrello: woocommerce/woocommerce#7 - /carrello/
Cassa: woocommerce/woocommerce#8 - /checkout/
Il mio account: woocommerce/woocommerce#9 - /mio-account/
Termini e condizioni: La pagina non è impostata

Theme

Name: Storefront
Version: 2.5.3
Author URL: https://woocommerce.com/
Child Theme: – Se stai modificando WooCommerce o un tema genitore che non hai costruito personalmente
ti consigliamo di utilizzare un tema child. Vedi: Come creare un tema child

WooCommerce Support: ✔

Templates

Overrides: –

Action Scheduler

Complete: 37
Oldest: 2019-09-13 12:11:44 +0200
Newest: 2019-09-23 11:04:48 +0200

Pending: 1
Oldest: 2019-09-23 12:01:16 +0200
Newest: 2019-09-23 12:01:16 +0200

Canceled: 0
Oldest: –
Newest: –

In-progress: 0
Oldest: –
Newest: –

Failed: 0
Oldest: –
Newest: –

@peterfabian

This comment has been minimized.

Copy link

@peterfabian peterfabian commented Oct 2, 2019

Thanks for reporting. I'm marking it as low priority for now as I assume not a lot of people are affected, but open to reevaluate.

@claudiosanches claudiosanches transferred this issue from woocommerce/woocommerce Oct 2, 2019
@issue-label-bot issue-label-bot bot added the type: bug label Oct 2, 2019
@issue-label-bot

This comment has been minimized.

Copy link

@issue-label-bot issue-label-bot bot commented Oct 2, 2019

Issue-Label Bot is automatically applying the label type: bug to this issue, with a confidence of 0.94. Please mark this comment with 👍 or 👎 to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.