Skip to content

Latest commit

 

History

History
208 lines (140 loc) · 6.39 KB

GiftMessageItemRepositoryV1Api.md

File metadata and controls

208 lines (140 loc) · 6.39 KB

swagger_client.GiftMessageItemRepositoryV1Api

All URIs are relative to http://localhost/rest/default

Method HTTP request Description
gift_message_item_repository_v1_get_get GET /V1/carts/{cartId}/gift-message/{itemId}
gift_message_item_repository_v1_get_get_0 GET /V1/carts/mine/gift-message/{itemId}
gift_message_item_repository_v1_save_post POST /V1/carts/{cartId}/gift-message/{itemId}
gift_message_item_repository_v1_save_post_0 POST /V1/carts/mine/gift-message/{itemId}

gift_message_item_repository_v1_get_get

GiftMessageDataMessageInterface gift_message_item_repository_v1_get_get(cart_id, item_id)

Return the gift message for a specified item in a specified shopping cart.

Example

from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.GiftMessageItemRepositoryV1Api()
cart_id = 56 # int | The shopping cart ID.
item_id = 56 # int | The item ID.

try: 
    api_response = api_instance.gift_message_item_repository_v1_get_get(cart_id, item_id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling GiftMessageItemRepositoryV1Api->gift_message_item_repository_v1_get_get: %s\n" % e)

Parameters

Name Type Description Notes
cart_id int The shopping cart ID.
item_id int The item ID.

Return type

GiftMessageDataMessageInterface

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]

gift_message_item_repository_v1_get_get_0

GiftMessageDataMessageInterface gift_message_item_repository_v1_get_get_0(item_id)

Return the gift message for a specified item in a specified shopping cart.

Example

from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.GiftMessageItemRepositoryV1Api()
item_id = 56 # int | The item ID.

try: 
    api_response = api_instance.gift_message_item_repository_v1_get_get_0(item_id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling GiftMessageItemRepositoryV1Api->gift_message_item_repository_v1_get_get_0: %s\n" % e)

Parameters

Name Type Description Notes
item_id int The item ID.

Return type

GiftMessageDataMessageInterface

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]

gift_message_item_repository_v1_save_post

bool gift_message_item_repository_v1_save_post(cart_id, item_id, body=body)

Set the gift message for a specified item in a specified shopping cart.

Example

from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.GiftMessageItemRepositoryV1Api()
cart_id = 56 # int | The cart ID.
item_id = 56 # int | The item ID.
body = swagger_client.Body105() # Body105 |  (optional)

try: 
    api_response = api_instance.gift_message_item_repository_v1_save_post(cart_id, item_id, body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling GiftMessageItemRepositoryV1Api->gift_message_item_repository_v1_save_post: %s\n" % e)

Parameters

Name Type Description Notes
cart_id int The cart ID.
item_id int The item ID.
body Body105 [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]

gift_message_item_repository_v1_save_post_0

bool gift_message_item_repository_v1_save_post_0(item_id, body=body)

Set the gift message for a specified item in a specified shopping cart.

Example

from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.GiftMessageItemRepositoryV1Api()
item_id = 56 # int | The item ID.
body = swagger_client.Body106() # Body106 |  (optional)

try: 
    api_response = api_instance.gift_message_item_repository_v1_save_post_0(item_id, body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling GiftMessageItemRepositoryV1Api->gift_message_item_repository_v1_save_post_0: %s\n" % e)

Parameters

Name Type Description Notes
item_id int The item ID.
body Body106 [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]