text
stringlengths 0
828
|
|---|
4526,"def get_payment_card_by_id(cls, payment_card_id, **kwargs):
|
""""""Find PaymentCard
|
Return single instance of PaymentCard 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_payment_card_by_id(payment_card_id, async=True)
|
>>> result = thread.get()
|
:param async bool
|
:param str payment_card_id: ID of paymentCard to return (required)
|
:return: PaymentCard
|
If the method is called asynchronously,
|
returns the request thread.
|
""""""
|
kwargs['_return_http_data_only'] = True
|
if kwargs.get('async'):
|
return cls._get_payment_card_by_id_with_http_info(payment_card_id, **kwargs)
|
else:
|
(data) = cls._get_payment_card_by_id_with_http_info(payment_card_id, **kwargs)
|
return data"
|
4527,"def list_all_payment_cards(cls, **kwargs):
|
""""""List PaymentCards
|
Return a list of PaymentCards
|
This method makes a synchronous HTTP request by default. To make an
|
asynchronous HTTP request, please pass async=True
|
>>> thread = api.list_all_payment_cards(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[PaymentCard]
|
If the method is called asynchronously,
|
returns the request thread.
|
""""""
|
kwargs['_return_http_data_only'] = True
|
if kwargs.get('async'):
|
return cls._list_all_payment_cards_with_http_info(**kwargs)
|
else:
|
(data) = cls._list_all_payment_cards_with_http_info(**kwargs)
|
return data"
|
4528,"def replace_payment_card_by_id(cls, payment_card_id, payment_card, **kwargs):
|
""""""Replace PaymentCard
|
Replace all attributes of PaymentCard
|
This method makes a synchronous HTTP request by default. To make an
|
asynchronous HTTP request, please pass async=True
|
>>> thread = api.replace_payment_card_by_id(payment_card_id, payment_card, async=True)
|
>>> result = thread.get()
|
:param async bool
|
:param str payment_card_id: ID of paymentCard to replace (required)
|
:param PaymentCard payment_card: Attributes of paymentCard to replace (required)
|
:return: PaymentCard
|
If the method is called asynchronously,
|
returns the request thread.
|
""""""
|
kwargs['_return_http_data_only'] = True
|
if kwargs.get('async'):
|
return cls._replace_payment_card_by_id_with_http_info(payment_card_id, payment_card, **kwargs)
|
else:
|
(data) = cls._replace_payment_card_by_id_with_http_info(payment_card_id, payment_card, **kwargs)
|
return data"
|
4529,"def update_payment_card_by_id(cls, payment_card_id, payment_card, **kwargs):
|
""""""Update PaymentCard
|
Update attributes of PaymentCard
|
This method makes a synchronous HTTP request by default. To make an
|
asynchronous HTTP request, please pass async=True
|
>>> thread = api.update_payment_card_by_id(payment_card_id, payment_card, async=True)
|
>>> result = thread.get()
|
:param async bool
|
:param str payment_card_id: ID of paymentCard to update. (required)
|
:param PaymentCard payment_card: Attributes of paymentCard to update. (required)
|
:return: PaymentCard
|
If the method is called asynchronously,
|
returns the request thread.
|
""""""
|
kwargs['_return_http_data_only'] = True
|
if kwargs.get('async'):
|
return cls._update_payment_card_by_id_with_http_info(payment_card_id, payment_card, **kwargs)
|
else:
|
(data) = cls._update_payment_card_by_id_with_http_info(payment_card_id, payment_card, **kwargs)
|
return data"
|
4530,"def rec2csv(r, filename):
|
""""""Export a recarray *r* to a CSV file *filename*""""""
|
names = r.dtype.names
|
def translate(x):
|
if x is None or str(x).lower == ""none"":
|
x = """"
|
return str(x)
|
with open(filename, ""w"") as csv:
|
csv.write("","".join([str(x) for x in names])+""\n"")
|
for data in r:
|
csv.write("","".join([translate(x) for x in data])+""\n"")
|
#print ""Wrote CSV table %r"" % filename
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.