text
stringlengths
0
828
Create a new FreeShippingCoupon
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async=True
>>> thread = api.create_free_shipping_coupon(free_shipping_coupon, async=True)
>>> result = thread.get()
:param async bool
:param FreeShippingCoupon free_shipping_coupon: Attributes of freeShippingCoupon to create (required)
:return: FreeShippingCoupon
If the method is called asynchronously,
returns the request thread.
""""""
kwargs['_return_http_data_only'] = True
if kwargs.get('async'):
return cls._create_free_shipping_coupon_with_http_info(free_shipping_coupon, **kwargs)
else:
(data) = cls._create_free_shipping_coupon_with_http_info(free_shipping_coupon, **kwargs)
return data"
4482,"def delete_free_shipping_coupon_by_id(cls, free_shipping_coupon_id, **kwargs):
""""""Delete FreeShippingCoupon
Delete an instance of FreeShippingCoupon by its ID.
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async=True
>>> thread = api.delete_free_shipping_coupon_by_id(free_shipping_coupon_id, async=True)
>>> result = thread.get()
:param async bool
:param str free_shipping_coupon_id: ID of freeShippingCoupon to delete. (required)
:return: None
If the method is called asynchronously,
returns the request thread.
""""""
kwargs['_return_http_data_only'] = True
if kwargs.get('async'):
return cls._delete_free_shipping_coupon_by_id_with_http_info(free_shipping_coupon_id, **kwargs)
else:
(data) = cls._delete_free_shipping_coupon_by_id_with_http_info(free_shipping_coupon_id, **kwargs)
return data"
4483,"def get_free_shipping_coupon_by_id(cls, free_shipping_coupon_id, **kwargs):
""""""Find FreeShippingCoupon
Return single instance of FreeShippingCoupon by its ID.
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async=True
>>> thread = api.get_free_shipping_coupon_by_id(free_shipping_coupon_id, async=True)
>>> result = thread.get()
:param async bool
:param str free_shipping_coupon_id: ID of freeShippingCoupon to return (required)
:return: FreeShippingCoupon
If the method is called asynchronously,
returns the request thread.
""""""
kwargs['_return_http_data_only'] = True
if kwargs.get('async'):
return cls._get_free_shipping_coupon_by_id_with_http_info(free_shipping_coupon_id, **kwargs)
else:
(data) = cls._get_free_shipping_coupon_by_id_with_http_info(free_shipping_coupon_id, **kwargs)
return data"
4484,"def list_all_free_shipping_coupons(cls, **kwargs):
""""""List FreeShippingCoupons
Return a list of FreeShippingCoupons
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async=True
>>> thread = api.list_all_free_shipping_coupons(async=True)
>>> result = thread.get()
:param async bool
:param int page: page number
:param int size: page size
:param str sort: page order
:return: page[FreeShippingCoupon]
If the method is called asynchronously,
returns the request thread.
""""""
kwargs['_return_http_data_only'] = True
if kwargs.get('async'):
return cls._list_all_free_shipping_coupons_with_http_info(**kwargs)
else:
(data) = cls._list_all_free_shipping_coupons_with_http_info(**kwargs)
return data"
4485,"def replace_free_shipping_coupon_by_id(cls, free_shipping_coupon_id, free_shipping_coupon, **kwargs):
""""""Replace FreeShippingCoupon
Replace all attributes of FreeShippingCoupon
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async=True
>>> thread = api.replace_free_shipping_coupon_by_id(free_shipping_coupon_id, free_shipping_coupon, async=True)
>>> result = thread.get()
:param async bool
:param str free_shipping_coupon_id: ID of freeShippingCoupon to replace (required)
:param FreeShippingCoupon free_shipping_coupon: Attributes of freeShippingCoupon to replace (required)
:return: FreeShippingCoupon
If the method is called asynchronously,
returns the request thread.
""""""
kwargs['_return_http_data_only'] = True