SpringImport\Swagger\Magento2\Client\QuoteGuestPaymentMethodManagementV1Api
May 18, 2017 · View on GitHub
All URIs are relative to http://t213.vg/rest/default
| Method | HTTP request | Description |
|---|---|---|
| quoteGuestPaymentMethodManagementV1GetGet | GET /V1/guest-carts/{cartId}/selected-payment-method | |
| quoteGuestPaymentMethodManagementV1GetListGet | GET /V1/guest-carts/{cartId}/payment-methods | |
| quoteGuestPaymentMethodManagementV1SetPut | PUT /V1/guest-carts/{cartId}/selected-payment-method |
quoteGuestPaymentMethodManagementV1GetGet
\SpringImport\Swagger\Magento2\Client\Model\QuoteDataPaymentInterface quoteGuestPaymentMethodManagementV1GetGet($cartId)
Return the payment method for a specified shopping cart.
Example
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new SpringImport\Swagger\Magento2\Client\Api\QuoteGuestPaymentMethodManagementV1Api();
$cartId = "cartId_example"; // string | The cart ID.
try {
$result = $api_instance->quoteGuestPaymentMethodManagementV1GetGet($cartId);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling QuoteGuestPaymentMethodManagementV1Api->quoteGuestPaymentMethodManagementV1GetGet: ', $e->getMessage(), PHP_EOL;
}
?>
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| cartId | string | The cart ID. |
Return type
\SpringImport\Swagger\Magento2\Client\Model\QuoteDataPaymentInterface
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]
quoteGuestPaymentMethodManagementV1GetListGet
\SpringImport\Swagger\Magento2\Client\Model\QuoteDataPaymentMethodInterface[] quoteGuestPaymentMethodManagementV1GetListGet($cartId)
List available payment methods for a specified shopping cart. This call returns an array of objects, but detailed information about each object’s attributes might not be included. See http://devdocs.magento.com/codelinks/attributes.html#GuestPaymentMethodManagementInterface to determine which call to use to get detailed information about all attributes for an object.
Example
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new SpringImport\Swagger\Magento2\Client\Api\QuoteGuestPaymentMethodManagementV1Api();
$cartId = "cartId_example"; // string | The cart ID.
try {
$result = $api_instance->quoteGuestPaymentMethodManagementV1GetListGet($cartId);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling QuoteGuestPaymentMethodManagementV1Api->quoteGuestPaymentMethodManagementV1GetListGet: ', $e->getMessage(), PHP_EOL;
}
?>
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| cartId | string | The cart ID. |
Return type
\SpringImport\Swagger\Magento2\Client\Model\QuoteDataPaymentMethodInterface[]
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]
quoteGuestPaymentMethodManagementV1SetPut
int quoteGuestPaymentMethodManagementV1SetPut(body)
Add a specified payment method to a specified shopping cart.
Example
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new SpringImport\Swagger\Magento2\Client\Api\QuoteGuestPaymentMethodManagementV1Api();
$cartId = "cartId_example"; // string | The cart ID.
$body = new \SpringImport\Swagger\Magento2\Client\Model\Body65(); // \SpringImport\Swagger\Magento2\Client\Model\Body65 |
try {
$result = $api_instance->quoteGuestPaymentMethodManagementV1SetPut($cartId, $body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling QuoteGuestPaymentMethodManagementV1Api->quoteGuestPaymentMethodManagementV1SetPut: ', $e->getMessage(), PHP_EOL;
}
?>
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| cartId | string | The cart ID. | |
| body | \SpringImport\Swagger\Magento2\Client\Model\Body65 | [optional] |
Return type
int
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]