This commit is contained in:
2026-09-15 10:26:34 +08:00
commit ecf36afa56
10493 changed files with 1404888 additions and 0 deletions
@@ -0,0 +1,25 @@
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Stemcell\Checkout\Api;
use Stemcell\Checkout\Api\Data\Quote\TotalsInterface;
/**
* Interface CartTotalRepositoryInterface
* @api
* @since 100.0.2
*/
interface CartTotalRepositoryInterface
{
/**
* Returns quote totals data for a specified cart.
*
* @param int $cartId The cart ID.
* @return TotalsInterface Quote totals data.
* @throws \Magento\Framework\Exception\NoSuchEntityException The specified cart does not exist.
*/
public function get($cartId);
}
@@ -0,0 +1,22 @@
<?php
namespace Stemcell\Checkout\Api\Data\Quote;
interface TotalsInterface extends \Magento\Quote\Api\Data\TotalsInterface
{
/**
* Get totals by items
*
* @return \Stemcell\Checkout\Api\Data\Quote\TotalsItemInterface[]|null
*/
public function getItems();
/**
* Set totals by items
*
* @param \Stemcell\Checkout\Api\Data\Quote\TotalsItemInterface[] $items
* @return $this
*/
public function setItems(array $items = null);
}
@@ -0,0 +1,111 @@
<?php
namespace Stemcell\Checkout\Api\Data\Quote;
interface TotalsItemInterface extends \Magento\Quote\Api\Data\TotalsItemInterface
{
const SKU = 'sku';
const SALESPERSON_NAME = 'salesperson_name';
const LAB_BOOKING_ACCOUNT = 'lab_booking_account';
const CD_CODE = 'cd_code';
const QUOTE_CODE = 'quote_code';
const PI_SAP_ID = 'pi_sap_id';
const CUSTOMER_DISCOUNT_PERCENT = 'customer_discount_percent';
const NOTE = 'note';
/**
* @return string
*/
public function getSku();
/**
* @param string $sku
* @return self
*/
public function setSku(string $sku);
/**
* @return string
*/
public function getSalespersonName();
/**
* @param string | null $salespersonName
* @return self
*/
public function setSalespersonName(string | null $salespersonName);
/**
* @return string
*/
public function getLabBookingAccount();
/**
* @param string $labBookingAccount
* @return self
*/
public function setLabBookingAccount(string $labBookingAccount);
/**
* @return string
*/
public function getCdCode();
/**
* @param string $cdCode
* @return self
*/
public function setCdCode(string $cdCode);
/**
* @return string
*/
public function getQuoteCode();
/**
* @param string $quoteCode
* @return self
*/
public function setQuoteCode(string $quoteCode);
/**
* @return string
*/
public function getPiSapId();
/**
* @param string $piSapId
* @return self
*/
public function setPiSapId(string $piSapId);
/**
* @return string
*/
public function getCustomerDiscountPercent();
/**
* @param string $customerDiscountPercent
* @return self
*/
public function setCustomerDiscountPercent(string $customerDiscountPercent);
/**
* @return string
*/
public function getNote();
/**
* @param string $note
* @return self
*/
public function setNote(string $note);
}