commerce_shipping-8.x-2.0-rc2/src/Entity/ShipmentTypeInterface.php
src/Entity/ShipmentTypeInterface.php
<?php
namespace Drupal\commerce_shipping\Entity;
use Drupal\commerce\Entity\CommerceBundleEntityInterface;
/**
* Defines the interface for shipment types.
*/
interface ShipmentTypeInterface extends CommerceBundleEntityInterface {
/**
* Gets the profile type ID.
*
* @return string
* The profile type ID.
*/
public function getProfileTypeId(): string;
/**
* Sets the profile type ID.
*
* @param string $profile_type_id
* The profile type ID.
*
* @return $this
*/
public function setProfileTypeId(string $profile_type_id): static;
/**
* Gets whether to email the customer when a shipment is shipped.
*
* @return bool|null
* Whether the confirmation should be sent when a shipment is shipped.
*/
public function shouldSendConfirmation(): ?bool;
/**
* Sets whether to email the customer a shipment confirmation.
*
* @param bool $send_confirmation
* TRUE if the confirmation email should be sent, FALSE otherwise.
*
* @return $this
*/
public function setSendConfirmation(bool $send_confirmation): static;
/**
* Gets the confirmation BCC email.
*
* If provided, this email will receive a copy of the confirmation email.
*
* @return string
* The confirmation BCC email.
*/
public function getConfirmationBcc(): ?string;
/**
* Sets the confirmation BCC email.
*
* @param string $confirmation_bcc
* The confirmation BCC email.
*
* @return $this
*/
public function setConfirmationBcc(string $confirmation_bcc): static;
}
