SpringImport\Swagger\Magento2\Client\GiftCardAccountGiftCardAccountManagementV1Api
May 18, 2017 ยท View on GitHub
All URIs are relative to http://t213.vg/rest/default
| Method | HTTP request | Description |
|---|---|---|
| giftCardAccountGiftCardAccountManagementV1CheckGiftCardGet | GET /V1/carts/mine/checkGiftCard/{giftCardCode} | |
| giftCardAccountGiftCardAccountManagementV1DeleteByQuoteIdDelete | DELETE /V1/carts/{cartId}/giftCards/{giftCardCode} | |
| giftCardAccountGiftCardAccountManagementV1DeleteByQuoteIdDelete_0 | DELETE /V1/carts/mine/giftCards/{giftCardCode} | |
| giftCardAccountGiftCardAccountManagementV1GetListByQuoteIdGet | GET /V1/carts/{quoteId}/giftCards | |
| giftCardAccountGiftCardAccountManagementV1SaveByQuoteIdPost | POST /V1/carts/mine/giftCards | |
| giftCardAccountGiftCardAccountManagementV1SaveByQuoteIdPut | PUT /V1/carts/{cartId}/giftCards |
giftCardAccountGiftCardAccountManagementV1CheckGiftCardGet
float giftCardAccountGiftCardAccountManagementV1CheckGiftCardGet($giftCardCode)
Example
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new SpringImport\Swagger\Magento2\Client\Api\GiftCardAccountGiftCardAccountManagementV1Api();
$giftCardCode = "giftCardCode_example"; // string |
try {
$result = $api_instance->giftCardAccountGiftCardAccountManagementV1CheckGiftCardGet($giftCardCode);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling GiftCardAccountGiftCardAccountManagementV1Api->giftCardAccountGiftCardAccountManagementV1CheckGiftCardGet: ', $e->getMessage(), PHP_EOL;
}
?>
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| giftCardCode | string |
Return type
float
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]
giftCardAccountGiftCardAccountManagementV1DeleteByQuoteIdDelete
bool giftCardAccountGiftCardAccountManagementV1DeleteByQuoteIdDelete(giftCardCode)
Remove GiftCard Account entity
Example
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new SpringImport\Swagger\Magento2\Client\Api\GiftCardAccountGiftCardAccountManagementV1Api();
$cartId = 56; // int |
$giftCardCode = "giftCardCode_example"; // string |
try {
$result = $api_instance->giftCardAccountGiftCardAccountManagementV1DeleteByQuoteIdDelete($cartId, $giftCardCode);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling GiftCardAccountGiftCardAccountManagementV1Api->giftCardAccountGiftCardAccountManagementV1DeleteByQuoteIdDelete: ', $e->getMessage(), PHP_EOL;
}
?>
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| cartId | int | ||
| giftCardCode | string |
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]
giftCardAccountGiftCardAccountManagementV1DeleteByQuoteIdDelete_0
bool giftCardAccountGiftCardAccountManagementV1DeleteByQuoteIdDelete_0($giftCardCode)
Remove GiftCard Account entity
Example
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new SpringImport\Swagger\Magento2\Client\Api\GiftCardAccountGiftCardAccountManagementV1Api();
$giftCardCode = "giftCardCode_example"; // string |
try {
$result = $api_instance->giftCardAccountGiftCardAccountManagementV1DeleteByQuoteIdDelete_0($giftCardCode);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling GiftCardAccountGiftCardAccountManagementV1Api->giftCardAccountGiftCardAccountManagementV1DeleteByQuoteIdDelete_0: ', $e->getMessage(), PHP_EOL;
}
?>
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| giftCardCode | string |
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]
giftCardAccountGiftCardAccountManagementV1GetListByQuoteIdGet
\SpringImport\Swagger\Magento2\Client\Model\GiftCardAccountDataGiftCardAccountInterface giftCardAccountGiftCardAccountManagementV1GetListByQuoteIdGet($quoteId)
Return GiftCard Account cards
Example
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new SpringImport\Swagger\Magento2\Client\Api\GiftCardAccountGiftCardAccountManagementV1Api();
$quoteId = 56; // int |
try {
$result = $api_instance->giftCardAccountGiftCardAccountManagementV1GetListByQuoteIdGet($quoteId);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling GiftCardAccountGiftCardAccountManagementV1Api->giftCardAccountGiftCardAccountManagementV1GetListByQuoteIdGet: ', $e->getMessage(), PHP_EOL;
}
?>
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| quoteId | int |
Return type
\SpringImport\Swagger\Magento2\Client\Model\GiftCardAccountDataGiftCardAccountInterface
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]
giftCardAccountGiftCardAccountManagementV1SaveByQuoteIdPost
bool giftCardAccountGiftCardAccountManagementV1SaveByQuoteIdPost($body)
Example
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new SpringImport\Swagger\Magento2\Client\Api\GiftCardAccountGiftCardAccountManagementV1Api();
$body = new \SpringImport\Swagger\Magento2\Client\Model\Body119(); // \SpringImport\Swagger\Magento2\Client\Model\Body119 |
try {
$result = $api_instance->giftCardAccountGiftCardAccountManagementV1SaveByQuoteIdPost($body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling GiftCardAccountGiftCardAccountManagementV1Api->giftCardAccountGiftCardAccountManagementV1SaveByQuoteIdPost: ', $e->getMessage(), PHP_EOL;
}
?>
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| body | \SpringImport\Swagger\Magento2\Client\Model\Body119 | [optional] |
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]
giftCardAccountGiftCardAccountManagementV1SaveByQuoteIdPut
bool giftCardAccountGiftCardAccountManagementV1SaveByQuoteIdPut(body)
Example
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new SpringImport\Swagger\Magento2\Client\Api\GiftCardAccountGiftCardAccountManagementV1Api();
$cartId = 56; // int |
$body = new \SpringImport\Swagger\Magento2\Client\Model\Body118(); // \SpringImport\Swagger\Magento2\Client\Model\Body118 |
try {
$result = $api_instance->giftCardAccountGiftCardAccountManagementV1SaveByQuoteIdPut($cartId, $body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling GiftCardAccountGiftCardAccountManagementV1Api->giftCardAccountGiftCardAccountManagementV1SaveByQuoteIdPut: ', $e->getMessage(), PHP_EOL;
}
?>
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| cartId | int | ||
| body | \SpringImport\Swagger\Magento2\Client\Model\Body118 | [optional] |
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]