SpringImport\Swagger\Magento2\Client\QuoteGuestPaymentMethodManagementV1Api

May 18, 2017 · View on GitHub

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

MethodHTTP requestDescription
quoteGuestPaymentMethodManagementV1GetGetGET /V1/guest-carts/{cartId}/selected-payment-method
quoteGuestPaymentMethodManagementV1GetListGetGET /V1/guest-carts/{cartId}/payment-methods
quoteGuestPaymentMethodManagementV1SetPutPUT /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

NameTypeDescriptionNotes
cartIdstringThe 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

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

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