/home/suroeste/public_html/wp-content/plugins/woocommerce/includes
NameSizeModeActions
abstracts/-0755rm
admin/-0755rm
blocks/-0755rm
cli/-0755rm
customizer/-0755rm
data-stores/-0755rm
emails/-0755rm
export/-0755rm
gateways/-0755rm
import/-0755rm
integrations/-0755rm
interfaces/-0755rm
legacy/-0755rm
libraries/-0755rm
log-handlers/-0755rm
payment-tokens/-0755rm
queue/-0755rm
react-admin/-0755rm
rest-api/-0755rm
shipping/-0755rm
shortcodes/-0755rm
theme-support/-0755rm
tracks/-0755rm
traits/-0755rm
walkers/-0755rm
wccom-site/-0755rm
widgets/-0755rm
class-wc-ajax.php1173950644editdlrm
class-wc-auth.php129620644editdlrm
class-wc-autoloader.php32090644editdlrm
class-wc-background-emailer.php46850644editdlrm
class-wc-background-updater.php35350644editdlrm
class-wc-breadcrumb.php97220644editdlrm
class-wc-cache-helper.php110470644editdlrm
class-wc-cart-fees.php34480644editdlrm
class-wc-cart-session.php182350644editdlrm
class-wc-cart-totals.php289270644editdlrm
class-wc-cart.php679020644editdlrm
class-wc-checkout.php480530644editdlrm
class-wc-cli.php17330644editdlrm
class-wc-comments.php162410644editdlrm
class-wc-countries.php500950644editdlrm
class-wc-coupon.php387700644editdlrm
class-wc-customer-download-log.php34520644editdlrm
class-wc-customer-download.php107020644editdlrm
class-wc-customer.php303900644editdlrm
class-wc-data-exception.php13210644editdlrm
class-wc-data-store.php67520644editdlrm
class-wc-datetime.php23100644editdlrm
class-wc-deprecated-action-hooks.php67460644editdlrm
class-wc-deprecated-filter-hooks.php75180644editdlrm
class-wc-discounts.php359100644editdlrm
class-wc-download-handler.php260800644editdlrm
class-wc-emails.php256960644editdlrm
class-wc-embed.php42840644editdlrm
class-wc-form-handler.php458100644editdlrm
class-wc-frontend-scripts.php273930644editdlrm
class-wc-geo-ip.php311360644editdlrm
class-wc-geolite-integration.php20360644editdlrm
class-wc-geolocation.php106930644editdlrm
class-wc-https.php44390644editdlrm
class-wc-install.php1023140644editdlrm
class-wc-integrations.php13080644editdlrm
class-wc-log-levels.php39920644editdlrm
class-wc-logger.php94820644editdlrm
class-wc-meta-data.php22600644editdlrm
class-wc-order-factory.php87280644editdlrm
class-wc-order-item-coupon.php41750644editdlrm
class-wc-order-item-fee.php90580644editdlrm
class-wc-order-item-meta.php59420644editdlrm
class-wc-order-item-product.php140270644editdlrm
class-wc-order-item-shipping.php80430644editdlrm
class-wc-order-item-tax.php66440644editdlrm
class-wc-order-item.php119280644editdlrm
class-wc-order-query.php26150644editdlrm
class-wc-order-refund.php57620644editdlrm
class-wc-order.php709450644editdlrm
class-wc-payment-gateways.php116320644editdlrm
class-wc-payment-tokens.php63900644editdlrm
class-wc-post-data.php209730644editdlrm
class-wc-post-types.php288200644editdlrm
class-wc-privacy-background-process.php17070644editdlrm
class-wc-privacy-erasers.php139380644editdlrm
class-wc-privacy-exporters.php150440644editdlrm
class-wc-privacy.php162050644editdlrm
class-wc-product-attribute.php71370644editdlrm
class-wc-product-download.php125470644editdlrm
class-wc-product-external.php49550644editdlrm
class-wc-product-factory.php36650644editdlrm
class-wc-product-grouped.php53490644editdlrm
class-wc-product-query.php22310644editdlrm
class-wc-product-simple.php19340644editdlrm
class-wc-product-variable.php226050644editdlrm
class-wc-product-variation.php172710644editdlrm
class-wc-query.php333850644editdlrm
class-wc-rate-limiter.php41000644editdlrm
class-wc-regenerate-images-request.php79230644editdlrm
class-wc-regenerate-images.php155670644editdlrm
class-wc-register-wp-admin-settings.php51710644editdlrm
class-wc-rest-authentication.php204480644editdlrm
class-wc-rest-exception.php2760644editdlrm
class-wc-session-handler.php153870644editdlrm
class-wc-shipping-rate.php56380644editdlrm
class-wc-shipping-zone.php133920644editdlrm
class-wc-shipping-zones.php41060644editdlrm
class-wc-shipping.php118460644editdlrm
class-wc-shortcodes.php191160644editdlrm
class-wc-structured-data.php191720644editdlrm
class-wc-tax.php379690644editdlrm
class-wc-template-loader.php219080644editdlrm
class-wc-tracker.php379650644editdlrm
class-wc-validation.php59290644editdlrm
class-wc-webhook.php299460644editdlrm
class-woocommerce.php427290644editdlrm
wc-account-functions.php132050644editdlrm
wc-attribute-functions.php211020644editdlrm
wc-cart-functions.php193800644editdlrm
wc-conditional-functions.php142520644editdlrm
wc-core-functions.php817570644editdlrm
wc-coupon-functions.php28190644editdlrm
wc-deprecated-functions.php349020644editdlrm
wc-formatting-functions.php465890644editdlrm
wc-notice-functions.php82120644editdlrm
wc-order-functions.php383510644editdlrm
wc-order-item-functions.php51530644editdlrm
wc-page-functions.php70990644editdlrm
wc-product-functions.php520200644editdlrm
wc-rest-functions.php114600644editdlrm
wc-stock-functions.php138660644editdlrm
wc-template-functions.php1238920644editdlrm
wc-template-hooks.php128590644editdlrm
wc-term-functions.php211550644editdlrm
wc-update-functions.php846550644editdlrm
wc-user-functions.php292470644editdlrm
wc-webhook-functions.php58550644editdlrm
wc-widget-functions.php20630644editdlrm
Edit: /home/suroeste/public_html/wp-content/plugins/woocommerce/includes/class-wc-order-refund.php (5762B)
'', 'reason' => '', 'refunded_by' => 0, 'refunded_payment' => false, ); /** * List of properties that were earlier managed by data store. However, since DataStore is a not a stored entity in itself, they used to store data in metadata of the data object. * With custom tables, some of these are moved from metadata to their own columns, but existing code will still try to add them to metadata. This array is used to keep track of such properties. * * Only reason to add a property here is that you are moving properties from DataStore instance to data object. Otherwise, if you are adding a new property, consider adding it to $data array instead. * * @var array */ protected $legacy_datastore_props = array( '_refund_amount', '_refund_reason', '_refunded_by', '_refunded_payment', ); /** * Get internal type (post type.) * * @return string */ public function get_type() { return 'shop_order_refund'; } /** * Get status - always completed for refunds. * * @param string $context What the value is for. Valid values are view and edit. * @return string */ public function get_status( $context = 'view' ) { return 'completed'; } /** * Get a title for the new post type. */ public function get_post_title() { // @codingStandardsIgnoreStart return sprintf( __( 'Refund – %s', 'woocommerce' ), (new DateTime('now'))->format( _x( 'M d, Y @ h:i A', 'Order date parsed by DateTime::format', 'woocommerce' ) ) ); // @codingStandardsIgnoreEnd } /** * Get refunded amount. * * @param string $context What the value is for. Valid values are view and edit. * @return int|float */ public function get_amount( $context = 'view' ) { return $this->get_prop( 'amount', $context ); } /** * Get refund reason. * * @since 2.2 * @param string $context What the value is for. Valid values are view and edit. * @return string */ public function get_reason( $context = 'view' ) { return $this->get_prop( 'reason', $context ); } /** * Get ID of user who did the refund. * * @since 3.0 * @param string $context What the value is for. Valid values are view and edit. * @return int */ public function get_refunded_by( $context = 'view' ) { return $this->get_prop( 'refunded_by', $context ); } /** * Return if the payment was refunded via API. * * @since 3.3 * @param string $context What the value is for. Valid values are view and edit. * @return bool */ public function get_refunded_payment( $context = 'view' ) { return $this->get_prop( 'refunded_payment', $context ); } /** * Get formatted refunded amount. * * @since 2.4 * @return string */ public function get_formatted_refund_amount() { return apply_filters( 'woocommerce_formatted_refund_amount', wc_price( $this->get_amount(), array( 'currency' => $this->get_currency() ) ), $this ); } /** * Set refunded amount. * * @param string $value Value to set. * @throws WC_Data_Exception Exception if the amount is invalid. */ public function set_amount( $value ) { $this->set_prop( 'amount', wc_format_decimal( $value ) ); } /** * Set refund reason. * * @param string $value Value to set. * @throws WC_Data_Exception Exception if the amount is invalid. */ public function set_reason( $value ) { $this->set_prop( 'reason', $value ); } /** * Set refunded by. * * @param int $value Value to set. * @throws WC_Data_Exception Exception if the amount is invalid. */ public function set_refunded_by( $value ) { $this->set_prop( 'refunded_by', absint( $value ) ); } /** * Set if the payment was refunded via API. * * @since 3.3 * @param bool $value Value to set. */ public function set_refunded_payment( $value ) { $this->set_prop( 'refunded_payment', (bool) $value ); } /** * Magic __get method for backwards compatibility. * * @param string $key Value to get. * @return mixed */ public function __get( $key ) { wc_doing_it_wrong( $key, 'Refund properties should not be accessed directly.', '3.0' ); /** * Maps legacy vars to new getters. */ if ( 'reason' === $key ) { return $this->get_reason(); } elseif ( 'refund_amount' === $key ) { return $this->get_amount(); } return parent::__get( $key ); } /** * Gets an refund from the database. * * @deprecated 3.0 * @param int $id (default: 0). * @return bool */ public function get_refund( $id = 0 ) { wc_deprecated_function( 'get_refund', '3.0', 'read' ); if ( ! $id ) { return false; } $result = wc_get_order( $id ); if ( $result ) { $this->populate( $result ); return true; } return false; } /** * Get refund amount. * * @deprecated 3.0 * @return int|float */ public function get_refund_amount() { wc_deprecated_function( 'get_refund_amount', '3.0', 'get_amount' ); return $this->get_amount(); } /** * Get refund reason. * * @deprecated 3.0 * @return string */ public function get_refund_reason() { wc_deprecated_function( 'get_refund_reason', '3.0', 'get_reason' ); return $this->get_reason(); } }