SpringImport\Swagger\Magento2\Client\QuoteCartItemRepositoryV1Api

May 18, 2017 ยท View on GitHub

All URIs are relative to http://t213.vg/rest/default

MethodHTTP requestDescription
quoteCartItemRepositoryV1DeleteByIdDeleteDELETE /V1/carts/{cartId}/items/{itemId}
quoteCartItemRepositoryV1DeleteByIdDelete_0DELETE /V1/carts/mine/items/{itemId}
quoteCartItemRepositoryV1GetListGetGET /V1/carts/{cartId}/items
quoteCartItemRepositoryV1GetListGet_0GET /V1/carts/mine/items
quoteCartItemRepositoryV1SavePostPOST /V1/carts/{quoteId}/items
quoteCartItemRepositoryV1SavePost_0POST /V1/carts/mine/items
quoteCartItemRepositoryV1SavePutPUT /V1/carts/{cartId}/items/{itemId}
quoteCartItemRepositoryV1SavePut_0PUT /V1/carts/mine/items/{itemId}

quoteCartItemRepositoryV1DeleteByIdDelete

bool quoteCartItemRepositoryV1DeleteByIdDelete(cartId,cartId, itemId)

Removes the specified item from the specified cart.

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new SpringImport\Swagger\Magento2\Client\Api\QuoteCartItemRepositoryV1Api();
$cartId = 56; // int | The cart ID.
$itemId = 56; // int | The item ID of the item to be removed.

try {
    $result = $api_instance->quoteCartItemRepositoryV1DeleteByIdDelete($cartId, $itemId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling QuoteCartItemRepositoryV1Api->quoteCartItemRepositoryV1DeleteByIdDelete: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

NameTypeDescriptionNotes
cartIdintThe cart ID.
itemIdintThe item ID of the item to be removed.

Return type

bool

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

quoteCartItemRepositoryV1DeleteByIdDelete_0

bool quoteCartItemRepositoryV1DeleteByIdDelete_0($itemId)

Removes the specified item from the specified cart.

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new SpringImport\Swagger\Magento2\Client\Api\QuoteCartItemRepositoryV1Api();
$itemId = 56; // int | The item ID of the item to be removed.

try {
    $result = $api_instance->quoteCartItemRepositoryV1DeleteByIdDelete_0($itemId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling QuoteCartItemRepositoryV1Api->quoteCartItemRepositoryV1DeleteByIdDelete_0: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

NameTypeDescriptionNotes
itemIdintThe item ID of the item to be removed.

Return type

bool

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

quoteCartItemRepositoryV1GetListGet

\SpringImport\Swagger\Magento2\Client\Model\QuoteDataCartItemInterface[] quoteCartItemRepositoryV1GetListGet($cartId)

Lists items that are assigned to a specified cart.

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new SpringImport\Swagger\Magento2\Client\Api\QuoteCartItemRepositoryV1Api();
$cartId = 56; // int | The cart ID.

try {
    $result = $api_instance->quoteCartItemRepositoryV1GetListGet($cartId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling QuoteCartItemRepositoryV1Api->quoteCartItemRepositoryV1GetListGet: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

NameTypeDescriptionNotes
cartIdintThe cart ID.

Return type

\SpringImport\Swagger\Magento2\Client\Model\QuoteDataCartItemInterface[]

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

quoteCartItemRepositoryV1GetListGet_0

\SpringImport\Swagger\Magento2\Client\Model\QuoteDataCartItemInterface[] quoteCartItemRepositoryV1GetListGet_0()

Lists items that are assigned to a specified cart.

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new SpringImport\Swagger\Magento2\Client\Api\QuoteCartItemRepositoryV1Api();

try {
    $result = $api_instance->quoteCartItemRepositoryV1GetListGet_0();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling QuoteCartItemRepositoryV1Api->quoteCartItemRepositoryV1GetListGet_0: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

This endpoint does not need any parameter.

Return type

\SpringImport\Swagger\Magento2\Client\Model\QuoteDataCartItemInterface[]

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

quoteCartItemRepositoryV1SavePost

\SpringImport\Swagger\Magento2\Client\Model\QuoteDataCartItemInterface quoteCartItemRepositoryV1SavePost(quoteId,quoteId, body)

Add/update the specified cart item.

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new SpringImport\Swagger\Magento2\Client\Api\QuoteCartItemRepositoryV1Api();
$quoteId = "quoteId_example"; // string | 
$body = new \SpringImport\Swagger\Magento2\Client\Model\Body57(); // \SpringImport\Swagger\Magento2\Client\Model\Body57 | 

try {
    $result = $api_instance->quoteCartItemRepositoryV1SavePost($quoteId, $body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling QuoteCartItemRepositoryV1Api->quoteCartItemRepositoryV1SavePost: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

NameTypeDescriptionNotes
quoteIdstring
body\SpringImport\Swagger\Magento2\Client\Model\Body57[optional]

Return type

\SpringImport\Swagger\Magento2\Client\Model\QuoteDataCartItemInterface

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

quoteCartItemRepositoryV1SavePost_0

\SpringImport\Swagger\Magento2\Client\Model\QuoteDataCartItemInterface quoteCartItemRepositoryV1SavePost_0($body)

Add/update the specified cart item.

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new SpringImport\Swagger\Magento2\Client\Api\QuoteCartItemRepositoryV1Api();
$body = new \SpringImport\Swagger\Magento2\Client\Model\Body59(); // \SpringImport\Swagger\Magento2\Client\Model\Body59 | 

try {
    $result = $api_instance->quoteCartItemRepositoryV1SavePost_0($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling QuoteCartItemRepositoryV1Api->quoteCartItemRepositoryV1SavePost_0: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

NameTypeDescriptionNotes
body\SpringImport\Swagger\Magento2\Client\Model\Body59[optional]

Return type

\SpringImport\Swagger\Magento2\Client\Model\QuoteDataCartItemInterface

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

quoteCartItemRepositoryV1SavePut

\SpringImport\Swagger\Magento2\Client\Model\QuoteDataCartItemInterface quoteCartItemRepositoryV1SavePut(cartId,cartId, itemId, $body)

Add/update the specified cart item.

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new SpringImport\Swagger\Magento2\Client\Api\QuoteCartItemRepositoryV1Api();
$cartId = "cartId_example"; // string | 
$itemId = "itemId_example"; // string | 
$body = new \SpringImport\Swagger\Magento2\Client\Model\Body58(); // \SpringImport\Swagger\Magento2\Client\Model\Body58 | 

try {
    $result = $api_instance->quoteCartItemRepositoryV1SavePut($cartId, $itemId, $body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling QuoteCartItemRepositoryV1Api->quoteCartItemRepositoryV1SavePut: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

NameTypeDescriptionNotes
cartIdstring
itemIdstring
body\SpringImport\Swagger\Magento2\Client\Model\Body58[optional]

Return type

\SpringImport\Swagger\Magento2\Client\Model\QuoteDataCartItemInterface

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

quoteCartItemRepositoryV1SavePut_0

\SpringImport\Swagger\Magento2\Client\Model\QuoteDataCartItemInterface quoteCartItemRepositoryV1SavePut_0(itemId,itemId, body)

Add/update the specified cart item.

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new SpringImport\Swagger\Magento2\Client\Api\QuoteCartItemRepositoryV1Api();
$itemId = "itemId_example"; // string | 
$body = new \SpringImport\Swagger\Magento2\Client\Model\Body60(); // \SpringImport\Swagger\Magento2\Client\Model\Body60 | 

try {
    $result = $api_instance->quoteCartItemRepositoryV1SavePut_0($itemId, $body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling QuoteCartItemRepositoryV1Api->quoteCartItemRepositoryV1SavePut_0: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

NameTypeDescriptionNotes
itemIdstring
body\SpringImport\Swagger\Magento2\Client\Model\Body60[optional]

Return type

\SpringImport\Swagger\Magento2\Client\Model\QuoteDataCartItemInterface

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]