text stringlengths 0 828 |
|---|
:param async bool |
:param int page: page number |
:param int size: page size |
:param str sort: page order |
:return: page[StripeGateway] |
If the method is called asynchronously, |
returns the request thread. |
"""""" |
kwargs['_return_http_data_only'] = True |
if kwargs.get('async'): |
return cls._list_all_stripe_gateways_with_http_info(**kwargs) |
else: |
(data) = cls._list_all_stripe_gateways_with_http_info(**kwargs) |
return data" |
4558,"def replace_stripe_gateway_by_id(cls, stripe_gateway_id, stripe_gateway, **kwargs): |
""""""Replace StripeGateway |
Replace all attributes of StripeGateway |
This method makes a synchronous HTTP request by default. To make an |
asynchronous HTTP request, please pass async=True |
>>> thread = api.replace_stripe_gateway_by_id(stripe_gateway_id, stripe_gateway, async=True) |
>>> result = thread.get() |
:param async bool |
:param str stripe_gateway_id: ID of stripeGateway to replace (required) |
:param StripeGateway stripe_gateway: Attributes of stripeGateway to replace (required) |
:return: StripeGateway |
If the method is called asynchronously, |
returns the request thread. |
"""""" |
kwargs['_return_http_data_only'] = True |
if kwargs.get('async'): |
return cls._replace_stripe_gateway_by_id_with_http_info(stripe_gateway_id, stripe_gateway, **kwargs) |
else: |
(data) = cls._replace_stripe_gateway_by_id_with_http_info(stripe_gateway_id, stripe_gateway, **kwargs) |
return data" |
4559,"def update_stripe_gateway_by_id(cls, stripe_gateway_id, stripe_gateway, **kwargs): |
""""""Update StripeGateway |
Update attributes of StripeGateway |
This method makes a synchronous HTTP request by default. To make an |
asynchronous HTTP request, please pass async=True |
>>> thread = api.update_stripe_gateway_by_id(stripe_gateway_id, stripe_gateway, async=True) |
>>> result = thread.get() |
:param async bool |
:param str stripe_gateway_id: ID of stripeGateway to update. (required) |
:param StripeGateway stripe_gateway: Attributes of stripeGateway to update. (required) |
:return: StripeGateway |
If the method is called asynchronously, |
returns the request thread. |
"""""" |
kwargs['_return_http_data_only'] = True |
if kwargs.get('async'): |
return cls._update_stripe_gateway_by_id_with_http_info(stripe_gateway_id, stripe_gateway, **kwargs) |
else: |
(data) = cls._update_stripe_gateway_by_id_with_http_info(stripe_gateway_id, stripe_gateway, **kwargs) |
return data" |
4560,"def format_underline(s, char=""="", indents=0): |
"""""" |
Traces a dashed line below string |
Args: |
s: string |
char: |
indents: number of leading intenting spaces |
Returns: list |
>>> print(""\\n"".join(format_underline(""Life of João da Silva"", ""^"", 2))) |
Life of João da Silva |
^^^^^^^^^^^^^^^^^^^^^ |
"""""" |
n = len(s) |
ind = "" "" * indents |
return [""{}{}"".format(ind, s), ""{}{}"".format(ind, char*n)]" |
4561,"def format_h1(s, format=""text"", indents=0): |
"""""" |
Encloses string in format text |
Args: |
s: string |
format: string starting with ""text"", ""markdown"", or ""rest"" |
indents: number of leading intenting spaces |
Returns: list |
>>> print(""\\n"".join(format_h2(""Header 1"", indents=10))) |
Header 1 |
-------- |
>>> print(""\\n"".join(format_h2(""Header 1"", ""markdown"", 0))) |
## Header 1 |
"""""" |
_CHAR = ""="" |
if format.startswith(""text""): |
return format_underline(s, _CHAR, indents) |
elif format.startswith(""markdown""): |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.