12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- <?php
- /**
- * Copyright © Magento, Inc. All rights reserved.
- * See COPYING.txt for license details.
- */
- namespace Magento\Checkout\Api;
- /**
- * Interface for managing quote payment information
- * @api
- * @since 100.0.2
- */
- interface PaymentInformationManagementInterface
- {
- /**
- * Set payment information and place order for a specified cart.
- *
- * @param int $cartId
- * @param \Magento\Quote\Api\Data\PaymentInterface $paymentMethod
- * @param \Magento\Quote\Api\Data\AddressInterface|null $billingAddress
- * @throws \Magento\Framework\Exception\CouldNotSaveException
- * @return int Order ID.
- */
- public function savePaymentInformationAndPlaceOrder(
- $cartId,
- \Magento\Quote\Api\Data\PaymentInterface $paymentMethod,
- \Magento\Quote\Api\Data\AddressInterface $billingAddress = null
- );
- /**
- * Set payment information for a specified cart.
- *
- * @param int $cartId
- * @param \Magento\Quote\Api\Data\PaymentInterface $paymentMethod
- * @param \Magento\Quote\Api\Data\AddressInterface|null $billingAddress
- * @throws \Magento\Framework\Exception\CouldNotSaveException
- * @return int Order ID.
- */
- public function savePaymentInformation(
- $cartId,
- \Magento\Quote\Api\Data\PaymentInterface $paymentMethod,
- \Magento\Quote\Api\Data\AddressInterface $billingAddress = null
- );
- /**
- * Get payment information
- *
- * @param int $cartId
- * @return \Magento\Checkout\Api\Data\PaymentDetailsInterface
- */
- public function getPaymentInformation($cartId);
- }
|