mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-30 05:00:51 +08:00
76 lines
1.5 KiB
PHP
76 lines
1.5 KiB
PHP
<?php
|
|
|
|
namespace Vendidero\Germanized\Shipments {
|
|
|
|
use WC_Data;
|
|
use WC_Order;
|
|
|
|
abstract class Shipment extends WC_Data {
|
|
|
|
|
|
/**
|
|
* Return the shipment statuses without gzd- internal prefix.
|
|
*
|
|
* @param string $context View or edit context.
|
|
* @return string
|
|
*/
|
|
public function get_status( $context = 'view' ) {
|
|
}
|
|
|
|
/**
|
|
* Tries to fetch the order for the current shipment.
|
|
*
|
|
* @return bool|WC_Order|null
|
|
*/
|
|
abstract public function get_order();
|
|
|
|
/**
|
|
* Returns the shipment shipping provider.
|
|
*
|
|
* @param string $context What the value is for. Valid values are 'view' and 'edit'.
|
|
* @return string
|
|
*/
|
|
public function get_shipping_provider( $context = 'view' ) {
|
|
}
|
|
|
|
/**
|
|
* @return bool
|
|
*/
|
|
public function has_tracking() {
|
|
}
|
|
|
|
/**
|
|
* Returns the shipment tracking id.
|
|
*
|
|
* @param string $context What the value is for. Valid values are 'view' and 'edit'.
|
|
* @return string
|
|
*/
|
|
public function get_tracking_id( $context = 'view' ) {
|
|
}
|
|
|
|
public function add_note( $note, $added_by_user = false ) {
|
|
}
|
|
|
|
/**
|
|
* Return an array of items within this shipment.
|
|
*
|
|
* @return ShipmentItem[]
|
|
*/
|
|
public function get_items() {
|
|
}
|
|
}
|
|
|
|
class ShipmentItem extends WC_Data {
|
|
|
|
/**
|
|
* Get order ID this meta belongs to.
|
|
*
|
|
* @param string $context What the value is for. Valid values are 'view' and 'edit'.
|
|
* @return int
|
|
*/
|
|
public function get_order_item_id( $context = 'view' ) {
|
|
}
|
|
|
|
}
|
|
}
|
|
|