NikolaGavric94/laravel-square

View on GitHub
src/contracts/SquareServiceContract.php

Summary

Maintainability
A
0 mins
Test Coverage
F
0%
<?php

namespace Nikolag\Square\Contracts;

use Nikolag\Core\Contracts\PaymentServiceContract;

interface SquareServiceContract extends PaymentServiceContract
{
    /**
     * Add a product to the order.
     *
     * @param  mixed  $product
     * @param  int  $quantity
     * @param  string  $currency
     * @return self
     */
    public function addProduct(mixed $product, int $quantity = 1, string $currency = 'USD'): SquareServiceContract;

    /**
     * Setter for order.
     *
     * @param  mixed  $order
     * @param  string  $locationId
     * @param  string  $currency
     * @return self
     */
    public function setOrder(mixed $order, string $locationId, string $currency = 'USD'): SquareServiceContract;
}