woocommerce-paypal-payments/stubs/shiptastic.php
Emili Castells Guasch 641922c76c
Merge remote-tracking branch 'origin/dev/develop' into vendidero/dev/develop
# Conflicts:
#	.psalm/gzd.php
#	composer.lock
#	psalm.xml.dist
#	stubs/gzd.php
#	stubs/shiptastic.php
2026-03-16 11:51:49 +01:00

76 lines
1.5 KiB
PHP

<?php
namespace Vendidero\Shiptastic {
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' ) {
}
}
}