SpringImport\Swagger\Magento2\Client\GiftCardAccountGiftCardAccountManagementV1Api

May 18, 2017 ยท View on GitHub

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

MethodHTTP requestDescription
giftCardAccountGiftCardAccountManagementV1CheckGiftCardGetGET /V1/carts/mine/checkGiftCard/{giftCardCode}
giftCardAccountGiftCardAccountManagementV1DeleteByQuoteIdDeleteDELETE /V1/carts/{cartId}/giftCards/{giftCardCode}
giftCardAccountGiftCardAccountManagementV1DeleteByQuoteIdDelete_0DELETE /V1/carts/mine/giftCards/{giftCardCode}
giftCardAccountGiftCardAccountManagementV1GetListByQuoteIdGetGET /V1/carts/{quoteId}/giftCards
giftCardAccountGiftCardAccountManagementV1SaveByQuoteIdPostPOST /V1/carts/mine/giftCards
giftCardAccountGiftCardAccountManagementV1SaveByQuoteIdPutPUT /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

NameTypeDescriptionNotes
giftCardCodestring

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(cartId,cartId, 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

NameTypeDescriptionNotes
cartIdint
giftCardCodestring

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

NameTypeDescriptionNotes
giftCardCodestring

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

NameTypeDescriptionNotes
quoteIdint

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

NameTypeDescriptionNotes
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(cartId,cartId, 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

NameTypeDescriptionNotes
cartIdint
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]