Property | Type | Description | |
---|---|---|---|
$data_store_name | string | Which data store to load. | |
$extra_data | array | Stores product data. |
Method | Description | |
---|---|---|
__construct ( integer | object | WC_Order $read ) | Extend the abstract _data properties and then read the order object. | |
__get ( string $key ) : mixed | Magic __get method for backwards compatibility. | |
get_amount ( string $context = 'view' ) : integer | float | Get refunded amount. | |
get_formatted_refund_amount ( ) : string | Get formatted refunded amount. | |
get_post_title ( ) | Get a title for the new post type. | |
get_reason ( string $context = 'view' ) : integer | float | Get refund reason. | |
get_refund ( integer $id ) : boolean | Gets an refund from the database. | |
get_refund_amount ( ) : integer | float | Get refund amount. | |
get_refund_reason ( ) : integer | float | Get refund reason. | |
get_refunded_by ( string $context = 'view' ) : integer | Get ID of user who did the refund. | |
get_status ( string $context = 'view' ) : string | Get status - always completed for refunds. | |
get_type ( ) : string | Get internal type (post type.) | |
set_amount ( string $value ) | Set refunded amount. | |
set_reason ( string $value ) | Set refund reason. | |
set_refunded_by ( integer $value ) | Set refunded by. |
Method | Description | |
---|---|---|
get_hook_prefix ( ) : string | Prefix for action and filter hooks on data. |
public __construct ( integer | object | WC_Order $read ) | ||
$read | integer | object | WC_Order | Order to init. |
public get_formatted_refund_amount ( ) : string | ||
return | string |
protected get_hook_prefix ( ) : string | ||
return | string |
public get_refund ( integer $id ) : boolean | ||
$id | integer | (default: 0). |
return | boolean |
public get_refund_amount ( ) : integer | float | ||
return | integer | float |
public get_refund_reason ( ) : integer | float | ||
return | integer | float |
public get_refunded_by ( string $context = 'view' ) : integer | ||
$context | string | |
return | integer |
public get_status ( string $context = 'view' ) : string | ||
$context | string | |
return | string |
public set_refunded_by ( integer $value ) | ||
$value | integer |
protected string $data_store_name | ||
return | string |