Skip to content
This repository has been archived by the owner on Aug 18, 2020. It is now read-only.

Latest commit

 

History

History
288 lines (185 loc) · 9.21 KB

GiftCardAccountGiftCardAccountManagementV1Api.md

File metadata and controls

288 lines (185 loc) · 9.21 KB

Swagger\Client\GiftCardAccountGiftCardAccountManagementV1Api

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($gift_card_code)

Example

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

$api_instance = new Swagger\Client\Api\GiftCardAccountGiftCardAccountManagementV1Api();
$gift_card_code = "gift_card_code_example"; // string | 

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

Parameters

Name Type Description Notes
gift_card_code 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($cart_id, $gift_card_code)

Remove GiftCard Account entity

Example

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

$api_instance = new Swagger\Client\Api\GiftCardAccountGiftCardAccountManagementV1Api();
$cart_id = 56; // int | 
$gift_card_code = "gift_card_code_example"; // string | 

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

Parameters

Name Type Description Notes
cart_id int
gift_card_code 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($gift_card_code)

Remove GiftCard Account entity

Example

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

$api_instance = new Swagger\Client\Api\GiftCardAccountGiftCardAccountManagementV1Api();
$gift_card_code = "gift_card_code_example"; // string | 

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

Parameters

Name Type Description Notes
gift_card_code 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

\Swagger\Client\Model\GiftCardAccountDataGiftCardAccountInterface giftCardAccountGiftCardAccountManagementV1GetListByQuoteIdGet($quote_id)

Return GiftCard Account cards

Example

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

$api_instance = new Swagger\Client\Api\GiftCardAccountGiftCardAccountManagementV1Api();
$quote_id = 56; // int | 

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

Parameters

Name Type Description Notes
quote_id int

Return type

\Swagger\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 Swagger\Client\Api\GiftCardAccountGiftCardAccountManagementV1Api();
$body = new \Swagger\Client\Model\Body119(); // \Swagger\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 \Swagger\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($cart_id, $body)

Example

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

$api_instance = new Swagger\Client\Api\GiftCardAccountGiftCardAccountManagementV1Api();
$cart_id = 56; // int | 
$body = new \Swagger\Client\Model\Body118(); // \Swagger\Client\Model\Body118 | 

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

Parameters

Name Type Description Notes
cart_id int
body \Swagger\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]