Feature: Shipping Carrier Additions, Creating a voucher without an order, verifying order details before creating voucher, ELTA Courier voucher print updates
This commit is contained in:
1 parent
c455c8adf2
commit
5ff0d60f54
27 files changed
+2189
-376
No files matched your search
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
namespace Modules\Core\Shipping\Contracts;
|
||||
|
||||
use Modules\Core\Shipping\DTOs\ShipmentRequest;
|
||||
use Modules\Core\Shipping\DTOs\VoucherRecipient;
|
||||
use Modules\Core\Shipping\Models\Shipment;
|
||||
|
||||
/**
|
||||
* A carrier whose vouchers can be created without an order — from the
|
||||
* Carrier Vouchers screen's "Create voucher", for a parcel that isn't a
|
||||
* shop order. The voucher is an ordinary created shipment with no
|
||||
* order_id: it prints, cancels and tracks like any other, and can be
|
||||
* linked to an order later.
|
||||
*/
|
||||
interface CreatesStandaloneVouchers
|
||||
{
|
||||
/**
|
||||
* @param string $reference sent to the carrier as our reference
|
||||
* (it comes back in its lists and tracking).
|
||||
*/
|
||||
public function createStandaloneVoucher(VoucherRecipient $recipient, string $reference, ShipmentRequest $request): Shipment;
|
||||
}
|
||||
Reference in new issue
Block a user