Operation listAllFreeShippingsAsync

List FreeShippings


@throws \InvalidArgumentException
@return \GuzzleHttp\Promise\PromiseInterface
322137
public static function listAllFreeShippingsAsync(array $parameters = [])
    {
        return self::listAllFreeShippingsAsyncWithHttpInfo($page, $size, $sort)
            ->then(
                function ($response) {
                    return $response[0];
                }
            );
    }
802739
public static function listAllCurrenciesAsync(array $parameters = [])
    {
        return self::listAllCurrenciesAsyncWithHttpInfo($page, $size, $sort)
            ->then(
                function ($response) {
                    return $response[0];
                }
            );
    }
938200
public static function listAllReturnOperationsAsync(array $parameters = [])
    {
        return self::listAllReturnOperationsAsyncWithHttpInfo($page, $size, $sort)
            ->then(
                function ($response) {
                    return $response[0];
                }
            );
    }
1291530
public function listServiceNamesOptionsAll() {
    $service_data = $this->loadServiceData();

    $return = array();
    foreach ($service_data['all'] as $service_id => $service_info) {
      $return[$service_id] = $service_info['label'];
    }

    return $return;
  }
1075177
public function HasFreeShippingVoucher()
    {
        $bHasFreeShipping = false;
        $tmpCurrentPointer = $this->getItemPointer();
        $this->GoToStart();

        while (!$bHasFreeShipping && ($oItem = &$this->Next())) {
            $oVoucherSeries = &$oItem->GetFieldShopVoucherSeries();
            if ($oVoucherSeries->fieldFreeShipping) {
                $bHasFreeShipping = true;
            }
        }
        $this->setItemPointer($tmpCurrentPointer);

        return $bHasFreeShipping;
    }
1270348
public function sendAsync(): Promise
	{
		$mappedParams = $this->map();

		$curler = new \GuzzleHttp\Client(['base_uri' => $this->tgUrl]);

		if (empty($this->multipart)) {
			$promise = $curler->requestAsync("POST", static::$method, [
				"query" => $mappedParams
			]);
		} else {
			$promise = $curler->requestAsync("POST", static::$method, [
				"query" => $mappedParams,
				"multipart" => $this->multipart
			]);
		}

		$processedPromise = $promise->then(function ($response) {
			$jsonResponse = json_decode((string)$response->getBody(), true);
			$result = $jsonResponse['result'];
			return static::decodeResult($result);
		});

		$this->bot->addPromise($processedPromise);
		return $processedPromise;
	}
54075
public static function listAllStripeGatewaysAsync(array $parameters = [])
    {
        return self::listAllStripeGatewaysAsyncWithHttpInfo($page, $size, $sort)
            ->then(
                function ($response) {
                    return $response[0];
                }
            );
    }
268226
public static function listAllPaymentCardsAsync(array $parameters = [])
    {
        return self::listAllPaymentCardsAsyncWithHttpInfo($page, $size, $sort)
            ->then(
                function ($response) {
                    return $response[0];
                }
            );
    }
579327
public function getShipping()
    {
        return new ApiShipping(
            $this->entity->getShipping(),
            $this->locale,
            $this->itemFactory,
            $this->priceFormatter
        );
    }
589507
public static function listAllShippingMethodsAsync(array $parameters = [])
    {
        return self::listAllShippingMethodsAsyncWithHttpInfo($page, $size, $sort)
            ->then(
                function ($response) {
                    return $response[0];
                }
            );
    }
1264014
public function getShippingSetList()
    {
        // in which country we deliver
        if (!($sShipId = $this->oxorder__oxdelcountryid->value)) {
            $sShipId = $this->oxorder__oxbillcountryid->value;
        }

        $oBasket = $this->_getOrderBasket(false);

        // unsetting bundles
        $oOrderArticles = $this->getOrderArticles();
        foreach ($oOrderArticles as $sItemId => $oItem) {
            if ($oItem->isBundle()) {
                $oOrderArticles->offsetUnset($sItemId);
            }
        }

        // add this order articles to basket and recalculate basket
        $this->_addOrderArticlesToBasket($oBasket, $oOrderArticles);

        // recalculating basket
        $oBasket->calculateBasket(true);

        // load fitting deliveries list
        $oDeliveryList = oxNew(\OxidEsales\Eshop\Application\Model\DeliveryList::class, "core");
        $oDeliveryList->setCollectFittingDeliveriesSets(true);

        return $oDeliveryList->getDeliveryList($oBasket, $this->getOrderUser(), $sShipId);
    }
414679
public static function listAllOptionsAsync(array $parameters = [])
    {
        return self::listAllOptionsAsyncWithHttpInfo($page, $size, $sort)
            ->then(
                function ($response) {
                    return $response[0];
                }
            );
    }
195665
public static function listAllCouponsAsync(array $parameters = [])
    {
        return self::listAllCouponsAsyncWithHttpInfo($page, $size, $sort)
            ->then(
                function ($response) {
                    return $response[0];
                }
            );
    }
542679
protected function getSyncMapItems() {
        if (!$this->_syncMapItems) {
            $this->_syncMapItems = new SyncMapItemList(
                $this->version,
                $this->solution['serviceSid'],
                $this->solution['sid']
            );
        }

        return $this->_syncMapItems;
    }
397578
public function list()
    {
        $response = $this->client->fetch(
            $this->uri,
            []
        );

        return json_encode($response->getContent(), JSON_FORCE_OBJECT);
    }
817899
public static function findAll($page_request = null)
    {
        if($page_request != null){
            return self::listAllFreeShippingCoupons(['page' => $page_request->getPageNumber(), 'size' => $page_request->getSize() ]);
        }else {
            return self::listAllFreeShippingCoupons();
        }
    }
489195
public function getPromise(): PromiseInterface
    {
        if (! $this->requestOrign && ! $this->promise) throw new RequestBuildExpection('please give a request.');
        if (! $this->promise) {
            $this->promise = $this->_getClient()->sendAsync($this->requestOrign, $this->requestOption);
        }
        if ($this->responseIsJson && ! $this->isJsonCallbackPassed) {
            array_unshift($this->callbackOfSuccess, function ($res) {
                return json_decode($res, true);
            });
            $this->isJsonCallbackPassed = true;
        }
        return $this->promise;
    }