class-wc-abstract-order-data-store-interface.php
5 years ago
class-wc-coupon-data-store-interface.php
5 years ago
class-wc-customer-data-store-interface.php
5 years ago
class-wc-customer-download-data-store-interface.php
5 years ago
class-wc-customer-download-log-data-store-interface.php
5 years ago
class-wc-importer-interface.php
5 years ago
class-wc-log-handler-interface.php
5 years ago
class-wc-logger-interface.php
5 years ago
class-wc-object-data-store-interface.php
5 years ago
class-wc-order-data-store-interface.php
1 year ago
class-wc-order-item-data-store-interface.php
3 years ago
class-wc-order-item-product-data-store-interface.php
5 years ago
class-wc-order-item-type-data-store-interface.php
5 years ago
class-wc-order-refund-data-store-interface.php
5 years ago
class-wc-payment-token-data-store-interface.php
5 years ago
class-wc-product-data-store-interface.php
1 year ago
class-wc-product-variable-data-store-interface.php
5 years ago
class-wc-queue-interface.php
4 months ago
class-wc-shipping-zone-data-store-interface.php
4 years ago
class-wc-webhooks-data-store-interface.php
5 years ago
class-wc-abstract-order-data-store-interface.php
51 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Order Data Store Interface |
| 4 | * |
| 5 | * @version 3.0.0 |
| 6 | * @package WooCommerce\Interfaces |
| 7 | */ |
| 8 | |
| 9 | /** |
| 10 | * WC Order Data Store Interface |
| 11 | * |
| 12 | * Functions that must be defined by order store classes. |
| 13 | * |
| 14 | * @version 3.0.0 |
| 15 | */ |
| 16 | interface WC_Abstract_Order_Data_Store_Interface { |
| 17 | |
| 18 | /** |
| 19 | * Read order items of a specific type from the database for this order. |
| 20 | * |
| 21 | * @param WC_Order $order Order object. |
| 22 | * @param string $type Order item type. |
| 23 | * @return array |
| 24 | */ |
| 25 | public function read_items( $order, $type ); |
| 26 | |
| 27 | /** |
| 28 | * Remove all line items (products, coupons, shipping, taxes) from the order. |
| 29 | * |
| 30 | * @param WC_Order $order Order object. |
| 31 | * @param string $type Order item type. Default null. |
| 32 | */ |
| 33 | public function delete_items( $order, $type = null ); |
| 34 | |
| 35 | /** |
| 36 | * Get token ids for an order. |
| 37 | * |
| 38 | * @param WC_Order $order Order object. |
| 39 | * @return array |
| 40 | */ |
| 41 | public function get_payment_token_ids( $order ); |
| 42 | |
| 43 | /** |
| 44 | * Update token ids for an order. |
| 45 | * |
| 46 | * @param WC_Order $order Order object. |
| 47 | * @param array $token_ids Token IDs. |
| 48 | */ |
| 49 | public function update_payment_token_ids( $order, $token_ids ); |
| 50 | } |
| 51 |