repo
stringlengths 7
55
| path
stringlengths 4
127
| func_name
stringlengths 1
88
| original_string
stringlengths 75
19.8k
| language
stringclasses 1
value | code
stringlengths 75
19.8k
| code_tokens
list | docstring
stringlengths 3
17.3k
| docstring_tokens
list | sha
stringlengths 40
40
| url
stringlengths 87
242
| partition
stringclasses 1
value |
---|---|---|---|---|---|---|---|---|---|---|---|
bykof/billomapy | billomapy/billomapy.py | Billomapy.update_invoice | def update_invoice(self, invoice_id, invoice_dict):
"""
Updates an invoice
:param invoice_id: the invoice id
:param invoice_dict: dict
:return: dict
"""
return self._create_put_request(resource=INVOICES, billomat_id=invoice_id, send_data=invoice_dict) | python | def update_invoice(self, invoice_id, invoice_dict):
"""
Updates an invoice
:param invoice_id: the invoice id
:param invoice_dict: dict
:return: dict
"""
return self._create_put_request(resource=INVOICES, billomat_id=invoice_id, send_data=invoice_dict) | [
"def",
"update_invoice",
"(",
"self",
",",
"invoice_id",
",",
"invoice_dict",
")",
":",
"return",
"self",
".",
"_create_put_request",
"(",
"resource",
"=",
"INVOICES",
",",
"billomat_id",
"=",
"invoice_id",
",",
"send_data",
"=",
"invoice_dict",
")"
]
| Updates an invoice
:param invoice_id: the invoice id
:param invoice_dict: dict
:return: dict | [
"Updates",
"an",
"invoice"
]
| a28ba69fd37654fa145d0411d52c200e7f8984ab | https://github.com/bykof/billomapy/blob/a28ba69fd37654fa145d0411d52c200e7f8984ab/billomapy/billomapy.py#L996-L1004 | train |
bykof/billomapy | billomapy/billomapy.py | Billomapy.complete_invoice | def complete_invoice(self, invoice_id, complete_dict):
"""
Completes an invoice
:param complete_dict: the complete dict with the template id
:param invoice_id: the invoice id
:return: Response
"""
return self._create_put_request(
resource=INVOICES,
billomat_id=invoice_id,
command=COMPLETE,
send_data=complete_dict
) | python | def complete_invoice(self, invoice_id, complete_dict):
"""
Completes an invoice
:param complete_dict: the complete dict with the template id
:param invoice_id: the invoice id
:return: Response
"""
return self._create_put_request(
resource=INVOICES,
billomat_id=invoice_id,
command=COMPLETE,
send_data=complete_dict
) | [
"def",
"complete_invoice",
"(",
"self",
",",
"invoice_id",
",",
"complete_dict",
")",
":",
"return",
"self",
".",
"_create_put_request",
"(",
"resource",
"=",
"INVOICES",
",",
"billomat_id",
"=",
"invoice_id",
",",
"command",
"=",
"COMPLETE",
",",
"send_data",
"=",
"complete_dict",
")"
]
| Completes an invoice
:param complete_dict: the complete dict with the template id
:param invoice_id: the invoice id
:return: Response | [
"Completes",
"an",
"invoice"
]
| a28ba69fd37654fa145d0411d52c200e7f8984ab | https://github.com/bykof/billomapy/blob/a28ba69fd37654fa145d0411d52c200e7f8984ab/billomapy/billomapy.py#L1015-L1028 | train |
bykof/billomapy | billomapy/billomapy.py | Billomapy.invoice_pdf | def invoice_pdf(self, invoice_id):
"""
Opens a pdf of an invoice
:param invoice_id: the invoice id
:return: dict
"""
return self._create_get_request(resource=INVOICES, billomat_id=invoice_id, command=PDF) | python | def invoice_pdf(self, invoice_id):
"""
Opens a pdf of an invoice
:param invoice_id: the invoice id
:return: dict
"""
return self._create_get_request(resource=INVOICES, billomat_id=invoice_id, command=PDF) | [
"def",
"invoice_pdf",
"(",
"self",
",",
"invoice_id",
")",
":",
"return",
"self",
".",
"_create_get_request",
"(",
"resource",
"=",
"INVOICES",
",",
"billomat_id",
"=",
"invoice_id",
",",
"command",
"=",
"PDF",
")"
]
| Opens a pdf of an invoice
:param invoice_id: the invoice id
:return: dict | [
"Opens",
"a",
"pdf",
"of",
"an",
"invoice"
]
| a28ba69fd37654fa145d0411d52c200e7f8984ab | https://github.com/bykof/billomapy/blob/a28ba69fd37654fa145d0411d52c200e7f8984ab/billomapy/billomapy.py#L1030-L1037 | train |
bykof/billomapy | billomapy/billomapy.py | Billomapy.upload_invoice_signature | def upload_invoice_signature(self, invoice_id, signature_dict):
"""
Uploads a signature for the invoice
:param signature_dict: the signature
:type signature_dict: dict
:param invoice_id: the invoice id
:return Response
"""
return self._create_put_request(
resource=INVOICES,
billomat_id=invoice_id,
send_data=signature_dict,
command=UPLOAD_SIGNATURE
) | python | def upload_invoice_signature(self, invoice_id, signature_dict):
"""
Uploads a signature for the invoice
:param signature_dict: the signature
:type signature_dict: dict
:param invoice_id: the invoice id
:return Response
"""
return self._create_put_request(
resource=INVOICES,
billomat_id=invoice_id,
send_data=signature_dict,
command=UPLOAD_SIGNATURE
) | [
"def",
"upload_invoice_signature",
"(",
"self",
",",
"invoice_id",
",",
"signature_dict",
")",
":",
"return",
"self",
".",
"_create_put_request",
"(",
"resource",
"=",
"INVOICES",
",",
"billomat_id",
"=",
"invoice_id",
",",
"send_data",
"=",
"signature_dict",
",",
"command",
"=",
"UPLOAD_SIGNATURE",
")"
]
| Uploads a signature for the invoice
:param signature_dict: the signature
:type signature_dict: dict
:param invoice_id: the invoice id
:return Response | [
"Uploads",
"a",
"signature",
"for",
"the",
"invoice"
]
| a28ba69fd37654fa145d0411d52c200e7f8984ab | https://github.com/bykof/billomapy/blob/a28ba69fd37654fa145d0411d52c200e7f8984ab/billomapy/billomapy.py#L1039-L1053 | train |
bykof/billomapy | billomapy/billomapy.py | Billomapy.cancel_invoice | def cancel_invoice(self, invoice_id):
"""
Cancelles an invoice
:param invoice_id: the invoice id
:return Response
"""
return self._create_put_request(
resource=INVOICES,
billomat_id=invoice_id,
command=CANCEL,
) | python | def cancel_invoice(self, invoice_id):
"""
Cancelles an invoice
:param invoice_id: the invoice id
:return Response
"""
return self._create_put_request(
resource=INVOICES,
billomat_id=invoice_id,
command=CANCEL,
) | [
"def",
"cancel_invoice",
"(",
"self",
",",
"invoice_id",
")",
":",
"return",
"self",
".",
"_create_put_request",
"(",
"resource",
"=",
"INVOICES",
",",
"billomat_id",
"=",
"invoice_id",
",",
"command",
"=",
"CANCEL",
",",
")"
]
| Cancelles an invoice
:param invoice_id: the invoice id
:return Response | [
"Cancelles",
"an",
"invoice"
]
| a28ba69fd37654fa145d0411d52c200e7f8984ab | https://github.com/bykof/billomapy/blob/a28ba69fd37654fa145d0411d52c200e7f8984ab/billomapy/billomapy.py#L1072-L1083 | train |
bykof/billomapy | billomapy/billomapy.py | Billomapy.get_items_of_invoice_per_page | def get_items_of_invoice_per_page(self, invoice_id, per_page=1000, page=1):
"""
Get invoice items of invoice per page
:param invoice_id: the invoice id
:param per_page: How many objects per page. Default: 1000
:param page: Which page. Default: 1
:return: list
"""
return self._get_resource_per_page(
resource=INVOICE_ITEMS,
per_page=per_page,
page=page,
params={'invoice_id': invoice_id},
) | python | def get_items_of_invoice_per_page(self, invoice_id, per_page=1000, page=1):
"""
Get invoice items of invoice per page
:param invoice_id: the invoice id
:param per_page: How many objects per page. Default: 1000
:param page: Which page. Default: 1
:return: list
"""
return self._get_resource_per_page(
resource=INVOICE_ITEMS,
per_page=per_page,
page=page,
params={'invoice_id': invoice_id},
) | [
"def",
"get_items_of_invoice_per_page",
"(",
"self",
",",
"invoice_id",
",",
"per_page",
"=",
"1000",
",",
"page",
"=",
"1",
")",
":",
"return",
"self",
".",
"_get_resource_per_page",
"(",
"resource",
"=",
"INVOICE_ITEMS",
",",
"per_page",
"=",
"per_page",
",",
"page",
"=",
"page",
",",
"params",
"=",
"{",
"'invoice_id'",
":",
"invoice_id",
"}",
",",
")"
]
| Get invoice items of invoice per page
:param invoice_id: the invoice id
:param per_page: How many objects per page. Default: 1000
:param page: Which page. Default: 1
:return: list | [
"Get",
"invoice",
"items",
"of",
"invoice",
"per",
"page"
]
| a28ba69fd37654fa145d0411d52c200e7f8984ab | https://github.com/bykof/billomapy/blob/a28ba69fd37654fa145d0411d52c200e7f8984ab/billomapy/billomapy.py#L1104-L1118 | train |
bykof/billomapy | billomapy/billomapy.py | Billomapy.get_all_items_of_invoice | def get_all_items_of_invoice(self, invoice_id):
"""
Get all items of invoice
This will iterate over all pages until it gets all elements.
So if the rate limit exceeded it will throw an Exception and you will get nothing
:param invoice_id: the invoice id
:return: list
"""
return self._iterate_through_pages(
get_function=self.get_items_of_invoice_per_page,
resource=INVOICE_ITEMS,
**{'invoice_id': invoice_id}
) | python | def get_all_items_of_invoice(self, invoice_id):
"""
Get all items of invoice
This will iterate over all pages until it gets all elements.
So if the rate limit exceeded it will throw an Exception and you will get nothing
:param invoice_id: the invoice id
:return: list
"""
return self._iterate_through_pages(
get_function=self.get_items_of_invoice_per_page,
resource=INVOICE_ITEMS,
**{'invoice_id': invoice_id}
) | [
"def",
"get_all_items_of_invoice",
"(",
"self",
",",
"invoice_id",
")",
":",
"return",
"self",
".",
"_iterate_through_pages",
"(",
"get_function",
"=",
"self",
".",
"get_items_of_invoice_per_page",
",",
"resource",
"=",
"INVOICE_ITEMS",
",",
"*",
"*",
"{",
"'invoice_id'",
":",
"invoice_id",
"}",
")"
]
| Get all items of invoice
This will iterate over all pages until it gets all elements.
So if the rate limit exceeded it will throw an Exception and you will get nothing
:param invoice_id: the invoice id
:return: list | [
"Get",
"all",
"items",
"of",
"invoice",
"This",
"will",
"iterate",
"over",
"all",
"pages",
"until",
"it",
"gets",
"all",
"elements",
".",
"So",
"if",
"the",
"rate",
"limit",
"exceeded",
"it",
"will",
"throw",
"an",
"Exception",
"and",
"you",
"will",
"get",
"nothing"
]
| a28ba69fd37654fa145d0411d52c200e7f8984ab | https://github.com/bykof/billomapy/blob/a28ba69fd37654fa145d0411d52c200e7f8984ab/billomapy/billomapy.py#L1120-L1133 | train |
bykof/billomapy | billomapy/billomapy.py | Billomapy.update_invoice_item | def update_invoice_item(self, invoice_item_id, invoice_item_dict):
"""
Updates an invoice item
:param invoice_item_id: the invoice item id
:param invoice_item_dict: dict
:return: dict
"""
return self._create_put_request(
resource=INVOICE_ITEMS,
billomat_id=invoice_item_id,
send_data=invoice_item_dict
) | python | def update_invoice_item(self, invoice_item_id, invoice_item_dict):
"""
Updates an invoice item
:param invoice_item_id: the invoice item id
:param invoice_item_dict: dict
:return: dict
"""
return self._create_put_request(
resource=INVOICE_ITEMS,
billomat_id=invoice_item_id,
send_data=invoice_item_dict
) | [
"def",
"update_invoice_item",
"(",
"self",
",",
"invoice_item_id",
",",
"invoice_item_dict",
")",
":",
"return",
"self",
".",
"_create_put_request",
"(",
"resource",
"=",
"INVOICE_ITEMS",
",",
"billomat_id",
"=",
"invoice_item_id",
",",
"send_data",
"=",
"invoice_item_dict",
")"
]
| Updates an invoice item
:param invoice_item_id: the invoice item id
:param invoice_item_dict: dict
:return: dict | [
"Updates",
"an",
"invoice",
"item"
]
| a28ba69fd37654fa145d0411d52c200e7f8984ab | https://github.com/bykof/billomapy/blob/a28ba69fd37654fa145d0411d52c200e7f8984ab/billomapy/billomapy.py#L1153-L1165 | train |
bykof/billomapy | billomapy/billomapy.py | Billomapy.get_comments_of_invoice_per_page | def get_comments_of_invoice_per_page(self, invoice_id, per_page=1000, page=1):
"""
Get comments of invoice per page
:param invoice_id: the invoice id
:param per_page: How many objects per page. Default: 1000
:param page: Which page. Default: 1
:return: list
"""
return self._get_resource_per_page(
resource=INVOICE_COMMENTS,
per_page=per_page,
page=page,
params={'invoice_id': invoice_id},
) | python | def get_comments_of_invoice_per_page(self, invoice_id, per_page=1000, page=1):
"""
Get comments of invoice per page
:param invoice_id: the invoice id
:param per_page: How many objects per page. Default: 1000
:param page: Which page. Default: 1
:return: list
"""
return self._get_resource_per_page(
resource=INVOICE_COMMENTS,
per_page=per_page,
page=page,
params={'invoice_id': invoice_id},
) | [
"def",
"get_comments_of_invoice_per_page",
"(",
"self",
",",
"invoice_id",
",",
"per_page",
"=",
"1000",
",",
"page",
"=",
"1",
")",
":",
"return",
"self",
".",
"_get_resource_per_page",
"(",
"resource",
"=",
"INVOICE_COMMENTS",
",",
"per_page",
"=",
"per_page",
",",
"page",
"=",
"page",
",",
"params",
"=",
"{",
"'invoice_id'",
":",
"invoice_id",
"}",
",",
")"
]
| Get comments of invoice per page
:param invoice_id: the invoice id
:param per_page: How many objects per page. Default: 1000
:param page: Which page. Default: 1
:return: list | [
"Get",
"comments",
"of",
"invoice",
"per",
"page"
]
| a28ba69fd37654fa145d0411d52c200e7f8984ab | https://github.com/bykof/billomapy/blob/a28ba69fd37654fa145d0411d52c200e7f8984ab/billomapy/billomapy.py#L1183-L1197 | train |
bykof/billomapy | billomapy/billomapy.py | Billomapy.get_all_comments_of_invoice | def get_all_comments_of_invoice(self, invoice_id):
"""
Get all invoice comments of invoice
This will iterate over all pages until it gets all elements.
So if the rate limit exceeded it will throw an Exception and you will get nothing
:param invoice_id: the invoice id
:return: list
"""
return self._iterate_through_pages(
get_function=self.get_comments_of_invoice_per_page,
resource=INVOICE_COMMENTS,
**{'invoice_id': invoice_id}
) | python | def get_all_comments_of_invoice(self, invoice_id):
"""
Get all invoice comments of invoice
This will iterate over all pages until it gets all elements.
So if the rate limit exceeded it will throw an Exception and you will get nothing
:param invoice_id: the invoice id
:return: list
"""
return self._iterate_through_pages(
get_function=self.get_comments_of_invoice_per_page,
resource=INVOICE_COMMENTS,
**{'invoice_id': invoice_id}
) | [
"def",
"get_all_comments_of_invoice",
"(",
"self",
",",
"invoice_id",
")",
":",
"return",
"self",
".",
"_iterate_through_pages",
"(",
"get_function",
"=",
"self",
".",
"get_comments_of_invoice_per_page",
",",
"resource",
"=",
"INVOICE_COMMENTS",
",",
"*",
"*",
"{",
"'invoice_id'",
":",
"invoice_id",
"}",
")"
]
| Get all invoice comments of invoice
This will iterate over all pages until it gets all elements.
So if the rate limit exceeded it will throw an Exception and you will get nothing
:param invoice_id: the invoice id
:return: list | [
"Get",
"all",
"invoice",
"comments",
"of",
"invoice",
"This",
"will",
"iterate",
"over",
"all",
"pages",
"until",
"it",
"gets",
"all",
"elements",
".",
"So",
"if",
"the",
"rate",
"limit",
"exceeded",
"it",
"will",
"throw",
"an",
"Exception",
"and",
"you",
"will",
"get",
"nothing"
]
| a28ba69fd37654fa145d0411d52c200e7f8984ab | https://github.com/bykof/billomapy/blob/a28ba69fd37654fa145d0411d52c200e7f8984ab/billomapy/billomapy.py#L1199-L1212 | train |
bykof/billomapy | billomapy/billomapy.py | Billomapy.update_invoice_comment | def update_invoice_comment(self, invoice_comment_id, invoice_comment_dict):
"""
Updates an invoice comment
:param invoice_comment_id: the invoice comment id
:param invoice_comment_dict: dict
:return: dict
"""
return self._create_put_request(
resource=INVOICE_COMMENTS,
billomat_id=invoice_comment_id,
send_data=invoice_comment_dict
) | python | def update_invoice_comment(self, invoice_comment_id, invoice_comment_dict):
"""
Updates an invoice comment
:param invoice_comment_id: the invoice comment id
:param invoice_comment_dict: dict
:return: dict
"""
return self._create_put_request(
resource=INVOICE_COMMENTS,
billomat_id=invoice_comment_id,
send_data=invoice_comment_dict
) | [
"def",
"update_invoice_comment",
"(",
"self",
",",
"invoice_comment_id",
",",
"invoice_comment_dict",
")",
":",
"return",
"self",
".",
"_create_put_request",
"(",
"resource",
"=",
"INVOICE_COMMENTS",
",",
"billomat_id",
"=",
"invoice_comment_id",
",",
"send_data",
"=",
"invoice_comment_dict",
")"
]
| Updates an invoice comment
:param invoice_comment_id: the invoice comment id
:param invoice_comment_dict: dict
:return: dict | [
"Updates",
"an",
"invoice",
"comment"
]
| a28ba69fd37654fa145d0411d52c200e7f8984ab | https://github.com/bykof/billomapy/blob/a28ba69fd37654fa145d0411d52c200e7f8984ab/billomapy/billomapy.py#L1232-L1244 | train |
bykof/billomapy | billomapy/billomapy.py | Billomapy.get_invoice_payments_per_page | def get_invoice_payments_per_page(self, per_page=1000, page=1, params=None):
"""
Get invoice payments per page
:param per_page: How many objects per page. Default: 1000
:param page: Which page. Default: 1
:param params: Search parameters. Default: {}
:return: list
"""
if not params:
params = {}
return self._get_resource_per_page(
resource=INVOICE_PAYMENTS,
per_page=per_page,
page=page,
params=params,
) | python | def get_invoice_payments_per_page(self, per_page=1000, page=1, params=None):
"""
Get invoice payments per page
:param per_page: How many objects per page. Default: 1000
:param page: Which page. Default: 1
:param params: Search parameters. Default: {}
:return: list
"""
if not params:
params = {}
return self._get_resource_per_page(
resource=INVOICE_PAYMENTS,
per_page=per_page,
page=page,
params=params,
) | [
"def",
"get_invoice_payments_per_page",
"(",
"self",
",",
"per_page",
"=",
"1000",
",",
"page",
"=",
"1",
",",
"params",
"=",
"None",
")",
":",
"if",
"not",
"params",
":",
"params",
"=",
"{",
"}",
"return",
"self",
".",
"_get_resource_per_page",
"(",
"resource",
"=",
"INVOICE_PAYMENTS",
",",
"per_page",
"=",
"per_page",
",",
"page",
"=",
"page",
",",
"params",
"=",
"params",
",",
")"
]
| Get invoice payments per page
:param per_page: How many objects per page. Default: 1000
:param page: Which page. Default: 1
:param params: Search parameters. Default: {}
:return: list | [
"Get",
"invoice",
"payments",
"per",
"page"
]
| a28ba69fd37654fa145d0411d52c200e7f8984ab | https://github.com/bykof/billomapy/blob/a28ba69fd37654fa145d0411d52c200e7f8984ab/billomapy/billomapy.py#L1262-L1279 | train |
bykof/billomapy | billomapy/billomapy.py | Billomapy.get_all_invoice_payments | def get_all_invoice_payments(self, params=None):
"""
Get all invoice payments
This will iterate over all pages until it gets all elements.
So if the rate limit exceeded it will throw an Exception and you will get nothing
:param params: search params
:return: list
"""
if not params:
params = {}
return self._iterate_through_pages(
get_function=self.get_invoice_payments_per_page,
resource=INVOICE_PAYMENTS,
**{'params': params}
) | python | def get_all_invoice_payments(self, params=None):
"""
Get all invoice payments
This will iterate over all pages until it gets all elements.
So if the rate limit exceeded it will throw an Exception and you will get nothing
:param params: search params
:return: list
"""
if not params:
params = {}
return self._iterate_through_pages(
get_function=self.get_invoice_payments_per_page,
resource=INVOICE_PAYMENTS,
**{'params': params}
) | [
"def",
"get_all_invoice_payments",
"(",
"self",
",",
"params",
"=",
"None",
")",
":",
"if",
"not",
"params",
":",
"params",
"=",
"{",
"}",
"return",
"self",
".",
"_iterate_through_pages",
"(",
"get_function",
"=",
"self",
".",
"get_invoice_payments_per_page",
",",
"resource",
"=",
"INVOICE_PAYMENTS",
",",
"*",
"*",
"{",
"'params'",
":",
"params",
"}",
")"
]
| Get all invoice payments
This will iterate over all pages until it gets all elements.
So if the rate limit exceeded it will throw an Exception and you will get nothing
:param params: search params
:return: list | [
"Get",
"all",
"invoice",
"payments",
"This",
"will",
"iterate",
"over",
"all",
"pages",
"until",
"it",
"gets",
"all",
"elements",
".",
"So",
"if",
"the",
"rate",
"limit",
"exceeded",
"it",
"will",
"throw",
"an",
"Exception",
"and",
"you",
"will",
"get",
"nothing"
]
| a28ba69fd37654fa145d0411d52c200e7f8984ab | https://github.com/bykof/billomapy/blob/a28ba69fd37654fa145d0411d52c200e7f8984ab/billomapy/billomapy.py#L1281-L1296 | train |
bykof/billomapy | billomapy/billomapy.py | Billomapy.get_tags_of_invoice_per_page | def get_tags_of_invoice_per_page(self, invoice_id, per_page=1000, page=1):
"""
Get tags of invoice per page
:param invoice_id: the invoice id
:param per_page: How many objects per page. Default: 1000
:param page: Which page. Default: 1
:return: list
"""
return self._get_resource_per_page(
resource=INVOICE_TAGS,
per_page=per_page,
page=page,
params={'invoice_id': invoice_id},
) | python | def get_tags_of_invoice_per_page(self, invoice_id, per_page=1000, page=1):
"""
Get tags of invoice per page
:param invoice_id: the invoice id
:param per_page: How many objects per page. Default: 1000
:param page: Which page. Default: 1
:return: list
"""
return self._get_resource_per_page(
resource=INVOICE_TAGS,
per_page=per_page,
page=page,
params={'invoice_id': invoice_id},
) | [
"def",
"get_tags_of_invoice_per_page",
"(",
"self",
",",
"invoice_id",
",",
"per_page",
"=",
"1000",
",",
"page",
"=",
"1",
")",
":",
"return",
"self",
".",
"_get_resource_per_page",
"(",
"resource",
"=",
"INVOICE_TAGS",
",",
"per_page",
"=",
"per_page",
",",
"page",
"=",
"page",
",",
"params",
"=",
"{",
"'invoice_id'",
":",
"invoice_id",
"}",
",",
")"
]
| Get tags of invoice per page
:param invoice_id: the invoice id
:param per_page: How many objects per page. Default: 1000
:param page: Which page. Default: 1
:return: list | [
"Get",
"tags",
"of",
"invoice",
"per",
"page"
]
| a28ba69fd37654fa145d0411d52c200e7f8984ab | https://github.com/bykof/billomapy/blob/a28ba69fd37654fa145d0411d52c200e7f8984ab/billomapy/billomapy.py#L1331-L1345 | train |
bykof/billomapy | billomapy/billomapy.py | Billomapy.get_all_tags_of_invoice | def get_all_tags_of_invoice(self, invoice_id):
"""
Get all tags of invoice
This will iterate over all pages until it gets all elements.
So if the rate limit exceeded it will throw an Exception and you will get nothing
:param invoice_id: the invoice id
:return: list
"""
return self._iterate_through_pages(
get_function=self.get_tags_of_invoice_per_page,
resource=INVOICE_TAGS,
**{'invoice_id': invoice_id}
) | python | def get_all_tags_of_invoice(self, invoice_id):
"""
Get all tags of invoice
This will iterate over all pages until it gets all elements.
So if the rate limit exceeded it will throw an Exception and you will get nothing
:param invoice_id: the invoice id
:return: list
"""
return self._iterate_through_pages(
get_function=self.get_tags_of_invoice_per_page,
resource=INVOICE_TAGS,
**{'invoice_id': invoice_id}
) | [
"def",
"get_all_tags_of_invoice",
"(",
"self",
",",
"invoice_id",
")",
":",
"return",
"self",
".",
"_iterate_through_pages",
"(",
"get_function",
"=",
"self",
".",
"get_tags_of_invoice_per_page",
",",
"resource",
"=",
"INVOICE_TAGS",
",",
"*",
"*",
"{",
"'invoice_id'",
":",
"invoice_id",
"}",
")"
]
| Get all tags of invoice
This will iterate over all pages until it gets all elements.
So if the rate limit exceeded it will throw an Exception and you will get nothing
:param invoice_id: the invoice id
:return: list | [
"Get",
"all",
"tags",
"of",
"invoice",
"This",
"will",
"iterate",
"over",
"all",
"pages",
"until",
"it",
"gets",
"all",
"elements",
".",
"So",
"if",
"the",
"rate",
"limit",
"exceeded",
"it",
"will",
"throw",
"an",
"Exception",
"and",
"you",
"will",
"get",
"nothing"
]
| a28ba69fd37654fa145d0411d52c200e7f8984ab | https://github.com/bykof/billomapy/blob/a28ba69fd37654fa145d0411d52c200e7f8984ab/billomapy/billomapy.py#L1347-L1360 | train |
bykof/billomapy | billomapy/billomapy.py | Billomapy.get_recurrings_per_page | def get_recurrings_per_page(self, per_page=1000, page=1, params=None):
"""
Get recurrings per page
:param per_page: How many objects per page. Default: 1000
:param page: Which page. Default: 1
:param params: Search parameters. Default: {}
:return: list
"""
return self._get_resource_per_page(resource=RECURRINGS, per_page=per_page, page=page, params=params) | python | def get_recurrings_per_page(self, per_page=1000, page=1, params=None):
"""
Get recurrings per page
:param per_page: How many objects per page. Default: 1000
:param page: Which page. Default: 1
:param params: Search parameters. Default: {}
:return: list
"""
return self._get_resource_per_page(resource=RECURRINGS, per_page=per_page, page=page, params=params) | [
"def",
"get_recurrings_per_page",
"(",
"self",
",",
"per_page",
"=",
"1000",
",",
"page",
"=",
"1",
",",
"params",
"=",
"None",
")",
":",
"return",
"self",
".",
"_get_resource_per_page",
"(",
"resource",
"=",
"RECURRINGS",
",",
"per_page",
"=",
"per_page",
",",
"page",
"=",
"page",
",",
"params",
"=",
"params",
")"
]
| Get recurrings per page
:param per_page: How many objects per page. Default: 1000
:param page: Which page. Default: 1
:param params: Search parameters. Default: {}
:return: list | [
"Get",
"recurrings",
"per",
"page"
]
| a28ba69fd37654fa145d0411d52c200e7f8984ab | https://github.com/bykof/billomapy/blob/a28ba69fd37654fa145d0411d52c200e7f8984ab/billomapy/billomapy.py#L1396-L1405 | train |
bykof/billomapy | billomapy/billomapy.py | Billomapy.get_all_recurrings | def get_all_recurrings(self, params=None):
"""
Get all recurrings
This will iterate over all pages until it gets all elements.
So if the rate limit exceeded it will throw an Exception and you will get nothing
:param params: search params
:return: list
"""
if not params:
params = {}
return self._iterate_through_pages(self.get_recurrings_per_page, resource=RECURRINGS, **{'params': params}) | python | def get_all_recurrings(self, params=None):
"""
Get all recurrings
This will iterate over all pages until it gets all elements.
So if the rate limit exceeded it will throw an Exception and you will get nothing
:param params: search params
:return: list
"""
if not params:
params = {}
return self._iterate_through_pages(self.get_recurrings_per_page, resource=RECURRINGS, **{'params': params}) | [
"def",
"get_all_recurrings",
"(",
"self",
",",
"params",
"=",
"None",
")",
":",
"if",
"not",
"params",
":",
"params",
"=",
"{",
"}",
"return",
"self",
".",
"_iterate_through_pages",
"(",
"self",
".",
"get_recurrings_per_page",
",",
"resource",
"=",
"RECURRINGS",
",",
"*",
"*",
"{",
"'params'",
":",
"params",
"}",
")"
]
| Get all recurrings
This will iterate over all pages until it gets all elements.
So if the rate limit exceeded it will throw an Exception and you will get nothing
:param params: search params
:return: list | [
"Get",
"all",
"recurrings",
"This",
"will",
"iterate",
"over",
"all",
"pages",
"until",
"it",
"gets",
"all",
"elements",
".",
"So",
"if",
"the",
"rate",
"limit",
"exceeded",
"it",
"will",
"throw",
"an",
"Exception",
"and",
"you",
"will",
"get",
"nothing"
]
| a28ba69fd37654fa145d0411d52c200e7f8984ab | https://github.com/bykof/billomapy/blob/a28ba69fd37654fa145d0411d52c200e7f8984ab/billomapy/billomapy.py#L1407-L1418 | train |
bykof/billomapy | billomapy/billomapy.py | Billomapy.update_recurring | def update_recurring(self, recurring_id, recurring_dict):
"""
Updates a recurring
:param recurring_id: the recurring id
:param recurring_dict: dict
:return: dict
"""
return self._create_put_request(resource=RECURRINGS, billomat_id=recurring_id, send_data=recurring_dict) | python | def update_recurring(self, recurring_id, recurring_dict):
"""
Updates a recurring
:param recurring_id: the recurring id
:param recurring_dict: dict
:return: dict
"""
return self._create_put_request(resource=RECURRINGS, billomat_id=recurring_id, send_data=recurring_dict) | [
"def",
"update_recurring",
"(",
"self",
",",
"recurring_id",
",",
"recurring_dict",
")",
":",
"return",
"self",
".",
"_create_put_request",
"(",
"resource",
"=",
"RECURRINGS",
",",
"billomat_id",
"=",
"recurring_id",
",",
"send_data",
"=",
"recurring_dict",
")"
]
| Updates a recurring
:param recurring_id: the recurring id
:param recurring_dict: dict
:return: dict | [
"Updates",
"a",
"recurring"
]
| a28ba69fd37654fa145d0411d52c200e7f8984ab | https://github.com/bykof/billomapy/blob/a28ba69fd37654fa145d0411d52c200e7f8984ab/billomapy/billomapy.py#L1438-L1446 | train |
bykof/billomapy | billomapy/billomapy.py | Billomapy.get_items_of_recurring_per_page | def get_items_of_recurring_per_page(self, recurring_id, per_page=1000, page=1):
"""
Get items of recurring per page
:param recurring_id: the recurring id
:param per_page: How many objects per page. Default: 1000
:param page: Which page. Default: 1
:return: list
"""
return self._get_resource_per_page(
resource=RECURRING_ITEMS,
per_page=per_page,
page=page,
params={'recurring_id': recurring_id},
) | python | def get_items_of_recurring_per_page(self, recurring_id, per_page=1000, page=1):
"""
Get items of recurring per page
:param recurring_id: the recurring id
:param per_page: How many objects per page. Default: 1000
:param page: Which page. Default: 1
:return: list
"""
return self._get_resource_per_page(
resource=RECURRING_ITEMS,
per_page=per_page,
page=page,
params={'recurring_id': recurring_id},
) | [
"def",
"get_items_of_recurring_per_page",
"(",
"self",
",",
"recurring_id",
",",
"per_page",
"=",
"1000",
",",
"page",
"=",
"1",
")",
":",
"return",
"self",
".",
"_get_resource_per_page",
"(",
"resource",
"=",
"RECURRING_ITEMS",
",",
"per_page",
"=",
"per_page",
",",
"page",
"=",
"page",
",",
"params",
"=",
"{",
"'recurring_id'",
":",
"recurring_id",
"}",
",",
")"
]
| Get items of recurring per page
:param recurring_id: the recurring id
:param per_page: How many objects per page. Default: 1000
:param page: Which page. Default: 1
:return: list | [
"Get",
"items",
"of",
"recurring",
"per",
"page"
]
| a28ba69fd37654fa145d0411d52c200e7f8984ab | https://github.com/bykof/billomapy/blob/a28ba69fd37654fa145d0411d52c200e7f8984ab/billomapy/billomapy.py#L1464-L1478 | train |
bykof/billomapy | billomapy/billomapy.py | Billomapy.get_all_items_of_recurring | def get_all_items_of_recurring(self, recurring_id):
"""
Get all items of recurring
This will iterate over all pages until it gets all elements.
So if the rate limit exceeded it will throw an Exception and you will get nothing
:param recurring_id: the recurring id
:return: list
"""
return self._iterate_through_pages(
get_function=self.get_items_of_recurring_per_page,
resource=RECURRING_ITEMS,
**{'recurring_id': recurring_id}
) | python | def get_all_items_of_recurring(self, recurring_id):
"""
Get all items of recurring
This will iterate over all pages until it gets all elements.
So if the rate limit exceeded it will throw an Exception and you will get nothing
:param recurring_id: the recurring id
:return: list
"""
return self._iterate_through_pages(
get_function=self.get_items_of_recurring_per_page,
resource=RECURRING_ITEMS,
**{'recurring_id': recurring_id}
) | [
"def",
"get_all_items_of_recurring",
"(",
"self",
",",
"recurring_id",
")",
":",
"return",
"self",
".",
"_iterate_through_pages",
"(",
"get_function",
"=",
"self",
".",
"get_items_of_recurring_per_page",
",",
"resource",
"=",
"RECURRING_ITEMS",
",",
"*",
"*",
"{",
"'recurring_id'",
":",
"recurring_id",
"}",
")"
]
| Get all items of recurring
This will iterate over all pages until it gets all elements.
So if the rate limit exceeded it will throw an Exception and you will get nothing
:param recurring_id: the recurring id
:return: list | [
"Get",
"all",
"items",
"of",
"recurring",
"This",
"will",
"iterate",
"over",
"all",
"pages",
"until",
"it",
"gets",
"all",
"elements",
".",
"So",
"if",
"the",
"rate",
"limit",
"exceeded",
"it",
"will",
"throw",
"an",
"Exception",
"and",
"you",
"will",
"get",
"nothing"
]
| a28ba69fd37654fa145d0411d52c200e7f8984ab | https://github.com/bykof/billomapy/blob/a28ba69fd37654fa145d0411d52c200e7f8984ab/billomapy/billomapy.py#L1480-L1493 | train |
bykof/billomapy | billomapy/billomapy.py | Billomapy.update_recurring_item | def update_recurring_item(self, recurring_item_id, recurring_item_dict):
"""
Updates a recurring item
:param recurring_item_id: the recurring item id
:param recurring_item_dict: dict
:return: dict
"""
return self._create_put_request(
resource=RECURRING_ITEMS,
billomat_id=recurring_item_id,
send_data=recurring_item_dict
) | python | def update_recurring_item(self, recurring_item_id, recurring_item_dict):
"""
Updates a recurring item
:param recurring_item_id: the recurring item id
:param recurring_item_dict: dict
:return: dict
"""
return self._create_put_request(
resource=RECURRING_ITEMS,
billomat_id=recurring_item_id,
send_data=recurring_item_dict
) | [
"def",
"update_recurring_item",
"(",
"self",
",",
"recurring_item_id",
",",
"recurring_item_dict",
")",
":",
"return",
"self",
".",
"_create_put_request",
"(",
"resource",
"=",
"RECURRING_ITEMS",
",",
"billomat_id",
"=",
"recurring_item_id",
",",
"send_data",
"=",
"recurring_item_dict",
")"
]
| Updates a recurring item
:param recurring_item_id: the recurring item id
:param recurring_item_dict: dict
:return: dict | [
"Updates",
"a",
"recurring",
"item"
]
| a28ba69fd37654fa145d0411d52c200e7f8984ab | https://github.com/bykof/billomapy/blob/a28ba69fd37654fa145d0411d52c200e7f8984ab/billomapy/billomapy.py#L1513-L1525 | train |
bykof/billomapy | billomapy/billomapy.py | Billomapy.get_tags_of_recurring_per_page | def get_tags_of_recurring_per_page(self, recurring_id, per_page=1000, page=1):
"""
Get tags of recurring per page
:param recurring_id: the recurring id
:param per_page: How many objects per page. Default: 1000
:param page: Which page. Default: 1
:return: list
"""
return self._get_resource_per_page(
resource=RECURRING_TAGS,
per_page=per_page,
page=page,
params={'recurring_id': recurring_id},
) | python | def get_tags_of_recurring_per_page(self, recurring_id, per_page=1000, page=1):
"""
Get tags of recurring per page
:param recurring_id: the recurring id
:param per_page: How many objects per page. Default: 1000
:param page: Which page. Default: 1
:return: list
"""
return self._get_resource_per_page(
resource=RECURRING_TAGS,
per_page=per_page,
page=page,
params={'recurring_id': recurring_id},
) | [
"def",
"get_tags_of_recurring_per_page",
"(",
"self",
",",
"recurring_id",
",",
"per_page",
"=",
"1000",
",",
"page",
"=",
"1",
")",
":",
"return",
"self",
".",
"_get_resource_per_page",
"(",
"resource",
"=",
"RECURRING_TAGS",
",",
"per_page",
"=",
"per_page",
",",
"page",
"=",
"page",
",",
"params",
"=",
"{",
"'recurring_id'",
":",
"recurring_id",
"}",
",",
")"
]
| Get tags of recurring per page
:param recurring_id: the recurring id
:param per_page: How many objects per page. Default: 1000
:param page: Which page. Default: 1
:return: list | [
"Get",
"tags",
"of",
"recurring",
"per",
"page"
]
| a28ba69fd37654fa145d0411d52c200e7f8984ab | https://github.com/bykof/billomapy/blob/a28ba69fd37654fa145d0411d52c200e7f8984ab/billomapy/billomapy.py#L1542-L1556 | train |
bykof/billomapy | billomapy/billomapy.py | Billomapy.get_all_tags_of_recurring | def get_all_tags_of_recurring(self, recurring_id):
"""
Get all tags of recurring
This will iterate over all pages until it gets all elements.
So if the rate limit exceeded it will throw an Exception and you will get nothing
:param recurring_id: the recurring id
:return: list
"""
return self._iterate_through_pages(
get_function=self.get_tags_of_recurring_per_page,
resource=RECURRING_TAGS,
**{'recurring_id': recurring_id}
) | python | def get_all_tags_of_recurring(self, recurring_id):
"""
Get all tags of recurring
This will iterate over all pages until it gets all elements.
So if the rate limit exceeded it will throw an Exception and you will get nothing
:param recurring_id: the recurring id
:return: list
"""
return self._iterate_through_pages(
get_function=self.get_tags_of_recurring_per_page,
resource=RECURRING_TAGS,
**{'recurring_id': recurring_id}
) | [
"def",
"get_all_tags_of_recurring",
"(",
"self",
",",
"recurring_id",
")",
":",
"return",
"self",
".",
"_iterate_through_pages",
"(",
"get_function",
"=",
"self",
".",
"get_tags_of_recurring_per_page",
",",
"resource",
"=",
"RECURRING_TAGS",
",",
"*",
"*",
"{",
"'recurring_id'",
":",
"recurring_id",
"}",
")"
]
| Get all tags of recurring
This will iterate over all pages until it gets all elements.
So if the rate limit exceeded it will throw an Exception and you will get nothing
:param recurring_id: the recurring id
:return: list | [
"Get",
"all",
"tags",
"of",
"recurring",
"This",
"will",
"iterate",
"over",
"all",
"pages",
"until",
"it",
"gets",
"all",
"elements",
".",
"So",
"if",
"the",
"rate",
"limit",
"exceeded",
"it",
"will",
"throw",
"an",
"Exception",
"and",
"you",
"will",
"get",
"nothing"
]
| a28ba69fd37654fa145d0411d52c200e7f8984ab | https://github.com/bykof/billomapy/blob/a28ba69fd37654fa145d0411d52c200e7f8984ab/billomapy/billomapy.py#L1558-L1571 | train |
bykof/billomapy | billomapy/billomapy.py | Billomapy.get_email_receivers_of_recurring_per_page | def get_email_receivers_of_recurring_per_page(self, recurring_id, per_page=1000, page=1):
"""
Get email receivers of recurring per page
:param recurring_id: the recurring id
:param per_page: How many objects per page. Default: 1000
:param page: Which page. Default: 1
:return: list
"""
return self._get_resource_per_page(
resource=RECURRING_EMAIL_RECEIVERS,
per_page=per_page,
page=page,
params={'recurring_id': recurring_id},
) | python | def get_email_receivers_of_recurring_per_page(self, recurring_id, per_page=1000, page=1):
"""
Get email receivers of recurring per page
:param recurring_id: the recurring id
:param per_page: How many objects per page. Default: 1000
:param page: Which page. Default: 1
:return: list
"""
return self._get_resource_per_page(
resource=RECURRING_EMAIL_RECEIVERS,
per_page=per_page,
page=page,
params={'recurring_id': recurring_id},
) | [
"def",
"get_email_receivers_of_recurring_per_page",
"(",
"self",
",",
"recurring_id",
",",
"per_page",
"=",
"1000",
",",
"page",
"=",
"1",
")",
":",
"return",
"self",
".",
"_get_resource_per_page",
"(",
"resource",
"=",
"RECURRING_EMAIL_RECEIVERS",
",",
"per_page",
"=",
"per_page",
",",
"page",
"=",
"page",
",",
"params",
"=",
"{",
"'recurring_id'",
":",
"recurring_id",
"}",
",",
")"
]
| Get email receivers of recurring per page
:param recurring_id: the recurring id
:param per_page: How many objects per page. Default: 1000
:param page: Which page. Default: 1
:return: list | [
"Get",
"email",
"receivers",
"of",
"recurring",
"per",
"page"
]
| a28ba69fd37654fa145d0411d52c200e7f8984ab | https://github.com/bykof/billomapy/blob/a28ba69fd37654fa145d0411d52c200e7f8984ab/billomapy/billomapy.py#L1606-L1620 | train |
bykof/billomapy | billomapy/billomapy.py | Billomapy.get_all_email_receivers_of_recurring | def get_all_email_receivers_of_recurring(self, recurring_id):
"""
Get all email receivers of recurring
This will iterate over all pages until it gets all elements.
So if the rate limit exceeded it will throw an Exception and you will get nothing
:param recurring_id: the recurring id
:return: list
"""
return self._iterate_through_pages(
get_function=self.get_email_receivers_of_recurring_per_page,
resource=RECURRING_EMAIL_RECEIVERS,
**{'recurring_id': recurring_id}
) | python | def get_all_email_receivers_of_recurring(self, recurring_id):
"""
Get all email receivers of recurring
This will iterate over all pages until it gets all elements.
So if the rate limit exceeded it will throw an Exception and you will get nothing
:param recurring_id: the recurring id
:return: list
"""
return self._iterate_through_pages(
get_function=self.get_email_receivers_of_recurring_per_page,
resource=RECURRING_EMAIL_RECEIVERS,
**{'recurring_id': recurring_id}
) | [
"def",
"get_all_email_receivers_of_recurring",
"(",
"self",
",",
"recurring_id",
")",
":",
"return",
"self",
".",
"_iterate_through_pages",
"(",
"get_function",
"=",
"self",
".",
"get_email_receivers_of_recurring_per_page",
",",
"resource",
"=",
"RECURRING_EMAIL_RECEIVERS",
",",
"*",
"*",
"{",
"'recurring_id'",
":",
"recurring_id",
"}",
")"
]
| Get all email receivers of recurring
This will iterate over all pages until it gets all elements.
So if the rate limit exceeded it will throw an Exception and you will get nothing
:param recurring_id: the recurring id
:return: list | [
"Get",
"all",
"email",
"receivers",
"of",
"recurring",
"This",
"will",
"iterate",
"over",
"all",
"pages",
"until",
"it",
"gets",
"all",
"elements",
".",
"So",
"if",
"the",
"rate",
"limit",
"exceeded",
"it",
"will",
"throw",
"an",
"Exception",
"and",
"you",
"will",
"get",
"nothing"
]
| a28ba69fd37654fa145d0411d52c200e7f8984ab | https://github.com/bykof/billomapy/blob/a28ba69fd37654fa145d0411d52c200e7f8984ab/billomapy/billomapy.py#L1622-L1635 | train |
bykof/billomapy | billomapy/billomapy.py | Billomapy.get_incomings_per_page | def get_incomings_per_page(self, per_page=1000, page=1, params=None):
"""
Get incomings per page
:param per_page: How many objects per page. Default: 1000
:param page: Which page. Default: 1
:param params: Search parameters. Default: {}
:return: list
"""
return self._get_resource_per_page(resource=INCOMINGS, per_page=per_page, page=page, params=params) | python | def get_incomings_per_page(self, per_page=1000, page=1, params=None):
"""
Get incomings per page
:param per_page: How many objects per page. Default: 1000
:param page: Which page. Default: 1
:param params: Search parameters. Default: {}
:return: list
"""
return self._get_resource_per_page(resource=INCOMINGS, per_page=per_page, page=page, params=params) | [
"def",
"get_incomings_per_page",
"(",
"self",
",",
"per_page",
"=",
"1000",
",",
"page",
"=",
"1",
",",
"params",
"=",
"None",
")",
":",
"return",
"self",
".",
"_get_resource_per_page",
"(",
"resource",
"=",
"INCOMINGS",
",",
"per_page",
"=",
"per_page",
",",
"page",
"=",
"page",
",",
"params",
"=",
"params",
")"
]
| Get incomings per page
:param per_page: How many objects per page. Default: 1000
:param page: Which page. Default: 1
:param params: Search parameters. Default: {}
:return: list | [
"Get",
"incomings",
"per",
"page"
]
| a28ba69fd37654fa145d0411d52c200e7f8984ab | https://github.com/bykof/billomapy/blob/a28ba69fd37654fa145d0411d52c200e7f8984ab/billomapy/billomapy.py#L1671-L1680 | train |
bykof/billomapy | billomapy/billomapy.py | Billomapy.get_all_incomings | def get_all_incomings(self, params=None):
"""
Get all incomings
This will iterate over all pages until it gets all elements.
So if the rate limit exceeded it will throw an Exception and you will get nothing
:param params: search params
:return: list
"""
if not params:
params = {}
return self._iterate_through_pages(self.get_incomings_per_page, resource=INCOMINGS, **{'params': params}) | python | def get_all_incomings(self, params=None):
"""
Get all incomings
This will iterate over all pages until it gets all elements.
So if the rate limit exceeded it will throw an Exception and you will get nothing
:param params: search params
:return: list
"""
if not params:
params = {}
return self._iterate_through_pages(self.get_incomings_per_page, resource=INCOMINGS, **{'params': params}) | [
"def",
"get_all_incomings",
"(",
"self",
",",
"params",
"=",
"None",
")",
":",
"if",
"not",
"params",
":",
"params",
"=",
"{",
"}",
"return",
"self",
".",
"_iterate_through_pages",
"(",
"self",
".",
"get_incomings_per_page",
",",
"resource",
"=",
"INCOMINGS",
",",
"*",
"*",
"{",
"'params'",
":",
"params",
"}",
")"
]
| Get all incomings
This will iterate over all pages until it gets all elements.
So if the rate limit exceeded it will throw an Exception and you will get nothing
:param params: search params
:return: list | [
"Get",
"all",
"incomings",
"This",
"will",
"iterate",
"over",
"all",
"pages",
"until",
"it",
"gets",
"all",
"elements",
".",
"So",
"if",
"the",
"rate",
"limit",
"exceeded",
"it",
"will",
"throw",
"an",
"Exception",
"and",
"you",
"will",
"get",
"nothing"
]
| a28ba69fd37654fa145d0411d52c200e7f8984ab | https://github.com/bykof/billomapy/blob/a28ba69fd37654fa145d0411d52c200e7f8984ab/billomapy/billomapy.py#L1682-L1693 | train |
bykof/billomapy | billomapy/billomapy.py | Billomapy.update_incoming | def update_incoming(self, incoming_id, incoming_dict):
"""
Updates an incoming
:param incoming_id: the incoming id
:param incoming_dict: dict
:return: dict
"""
return self._create_put_request(resource=INCOMINGS, billomat_id=incoming_id, send_data=incoming_dict) | python | def update_incoming(self, incoming_id, incoming_dict):
"""
Updates an incoming
:param incoming_id: the incoming id
:param incoming_dict: dict
:return: dict
"""
return self._create_put_request(resource=INCOMINGS, billomat_id=incoming_id, send_data=incoming_dict) | [
"def",
"update_incoming",
"(",
"self",
",",
"incoming_id",
",",
"incoming_dict",
")",
":",
"return",
"self",
".",
"_create_put_request",
"(",
"resource",
"=",
"INCOMINGS",
",",
"billomat_id",
"=",
"incoming_id",
",",
"send_data",
"=",
"incoming_dict",
")"
]
| Updates an incoming
:param incoming_id: the incoming id
:param incoming_dict: dict
:return: dict | [
"Updates",
"an",
"incoming"
]
| a28ba69fd37654fa145d0411d52c200e7f8984ab | https://github.com/bykof/billomapy/blob/a28ba69fd37654fa145d0411d52c200e7f8984ab/billomapy/billomapy.py#L1713-L1721 | train |
bykof/billomapy | billomapy/billomapy.py | Billomapy.get_comments_of_incoming_per_page | def get_comments_of_incoming_per_page(self, incoming_id, per_page=1000, page=1):
"""
Get comments of incoming per page
:param incoming_id: the incoming id
:param per_page: How many objects per page. Default: 1000
:param page: Which page. Default: 1
:return: list
"""
return self._get_resource_per_page(
resource=INCOMING_COMMENTS,
per_page=per_page,
page=page,
params={'incoming_id': incoming_id},
) | python | def get_comments_of_incoming_per_page(self, incoming_id, per_page=1000, page=1):
"""
Get comments of incoming per page
:param incoming_id: the incoming id
:param per_page: How many objects per page. Default: 1000
:param page: Which page. Default: 1
:return: list
"""
return self._get_resource_per_page(
resource=INCOMING_COMMENTS,
per_page=per_page,
page=page,
params={'incoming_id': incoming_id},
) | [
"def",
"get_comments_of_incoming_per_page",
"(",
"self",
",",
"incoming_id",
",",
"per_page",
"=",
"1000",
",",
"page",
"=",
"1",
")",
":",
"return",
"self",
".",
"_get_resource_per_page",
"(",
"resource",
"=",
"INCOMING_COMMENTS",
",",
"per_page",
"=",
"per_page",
",",
"page",
"=",
"page",
",",
"params",
"=",
"{",
"'incoming_id'",
":",
"incoming_id",
"}",
",",
")"
]
| Get comments of incoming per page
:param incoming_id: the incoming id
:param per_page: How many objects per page. Default: 1000
:param page: Which page. Default: 1
:return: list | [
"Get",
"comments",
"of",
"incoming",
"per",
"page"
]
| a28ba69fd37654fa145d0411d52c200e7f8984ab | https://github.com/bykof/billomapy/blob/a28ba69fd37654fa145d0411d52c200e7f8984ab/billomapy/billomapy.py#L1739-L1753 | train |
bykof/billomapy | billomapy/billomapy.py | Billomapy.get_all_comments_of_incoming | def get_all_comments_of_incoming(self, incoming_id):
"""
Get all comments of incoming
This will iterate over all pages until it gets all elements.
So if the rate limit exceeded it will throw an Exception and you will get nothing
:param incoming_id: the incoming id
:return: list
"""
return self._iterate_through_pages(
get_function=self.get_comments_of_incoming_per_page,
resource=INCOMING_COMMENTS,
**{'incoming_id': incoming_id}
) | python | def get_all_comments_of_incoming(self, incoming_id):
"""
Get all comments of incoming
This will iterate over all pages until it gets all elements.
So if the rate limit exceeded it will throw an Exception and you will get nothing
:param incoming_id: the incoming id
:return: list
"""
return self._iterate_through_pages(
get_function=self.get_comments_of_incoming_per_page,
resource=INCOMING_COMMENTS,
**{'incoming_id': incoming_id}
) | [
"def",
"get_all_comments_of_incoming",
"(",
"self",
",",
"incoming_id",
")",
":",
"return",
"self",
".",
"_iterate_through_pages",
"(",
"get_function",
"=",
"self",
".",
"get_comments_of_incoming_per_page",
",",
"resource",
"=",
"INCOMING_COMMENTS",
",",
"*",
"*",
"{",
"'incoming_id'",
":",
"incoming_id",
"}",
")"
]
| Get all comments of incoming
This will iterate over all pages until it gets all elements.
So if the rate limit exceeded it will throw an Exception and you will get nothing
:param incoming_id: the incoming id
:return: list | [
"Get",
"all",
"comments",
"of",
"incoming",
"This",
"will",
"iterate",
"over",
"all",
"pages",
"until",
"it",
"gets",
"all",
"elements",
".",
"So",
"if",
"the",
"rate",
"limit",
"exceeded",
"it",
"will",
"throw",
"an",
"Exception",
"and",
"you",
"will",
"get",
"nothing"
]
| a28ba69fd37654fa145d0411d52c200e7f8984ab | https://github.com/bykof/billomapy/blob/a28ba69fd37654fa145d0411d52c200e7f8984ab/billomapy/billomapy.py#L1755-L1768 | train |
bykof/billomapy | billomapy/billomapy.py | Billomapy.get_payments_of_incoming_per_page | def get_payments_of_incoming_per_page(self, incoming_id, per_page=1000, page=1):
"""
Get payments of incoming per page
:param incoming_id: the incoming id
:param per_page: How many objects per page. Default: 1000
:param page: Which page. Default: 1
:return: list
"""
return self._get_resource_per_page(
resource=INCOMING_PAYMENTS,
per_page=per_page,
page=page,
params={'incoming_id': incoming_id},
) | python | def get_payments_of_incoming_per_page(self, incoming_id, per_page=1000, page=1):
"""
Get payments of incoming per page
:param incoming_id: the incoming id
:param per_page: How many objects per page. Default: 1000
:param page: Which page. Default: 1
:return: list
"""
return self._get_resource_per_page(
resource=INCOMING_PAYMENTS,
per_page=per_page,
page=page,
params={'incoming_id': incoming_id},
) | [
"def",
"get_payments_of_incoming_per_page",
"(",
"self",
",",
"incoming_id",
",",
"per_page",
"=",
"1000",
",",
"page",
"=",
"1",
")",
":",
"return",
"self",
".",
"_get_resource_per_page",
"(",
"resource",
"=",
"INCOMING_PAYMENTS",
",",
"per_page",
"=",
"per_page",
",",
"page",
"=",
"page",
",",
"params",
"=",
"{",
"'incoming_id'",
":",
"incoming_id",
"}",
",",
")"
]
| Get payments of incoming per page
:param incoming_id: the incoming id
:param per_page: How many objects per page. Default: 1000
:param page: Which page. Default: 1
:return: list | [
"Get",
"payments",
"of",
"incoming",
"per",
"page"
]
| a28ba69fd37654fa145d0411d52c200e7f8984ab | https://github.com/bykof/billomapy/blob/a28ba69fd37654fa145d0411d52c200e7f8984ab/billomapy/billomapy.py#L1804-L1818 | train |
bykof/billomapy | billomapy/billomapy.py | Billomapy.get_all_payments_of_incoming | def get_all_payments_of_incoming(self, incoming_id):
"""
Get all payments of incoming
This will iterate over all pages until it gets all elements.
So if the rate limit exceeded it will throw an Exception and you will get nothing
:param incoming_id: the incoming id
:return: list
"""
return self._iterate_through_pages(
get_function=self.get_payments_of_incoming_per_page,
resource=INCOMING_PAYMENTS,
**{'incoming_id': incoming_id}
) | python | def get_all_payments_of_incoming(self, incoming_id):
"""
Get all payments of incoming
This will iterate over all pages until it gets all elements.
So if the rate limit exceeded it will throw an Exception and you will get nothing
:param incoming_id: the incoming id
:return: list
"""
return self._iterate_through_pages(
get_function=self.get_payments_of_incoming_per_page,
resource=INCOMING_PAYMENTS,
**{'incoming_id': incoming_id}
) | [
"def",
"get_all_payments_of_incoming",
"(",
"self",
",",
"incoming_id",
")",
":",
"return",
"self",
".",
"_iterate_through_pages",
"(",
"get_function",
"=",
"self",
".",
"get_payments_of_incoming_per_page",
",",
"resource",
"=",
"INCOMING_PAYMENTS",
",",
"*",
"*",
"{",
"'incoming_id'",
":",
"incoming_id",
"}",
")"
]
| Get all payments of incoming
This will iterate over all pages until it gets all elements.
So if the rate limit exceeded it will throw an Exception and you will get nothing
:param incoming_id: the incoming id
:return: list | [
"Get",
"all",
"payments",
"of",
"incoming",
"This",
"will",
"iterate",
"over",
"all",
"pages",
"until",
"it",
"gets",
"all",
"elements",
".",
"So",
"if",
"the",
"rate",
"limit",
"exceeded",
"it",
"will",
"throw",
"an",
"Exception",
"and",
"you",
"will",
"get",
"nothing"
]
| a28ba69fd37654fa145d0411d52c200e7f8984ab | https://github.com/bykof/billomapy/blob/a28ba69fd37654fa145d0411d52c200e7f8984ab/billomapy/billomapy.py#L1820-L1833 | train |
bykof/billomapy | billomapy/billomapy.py | Billomapy.get_incoming_properties_per_page | def get_incoming_properties_per_page(self, per_page=1000, page=1, params=None):
"""
Get incoming properties per page
:param per_page: How many objects per page. Default: 1000
:param page: Which page. Default: 1
:param params: Search parameters. Default: {}
:return: list
"""
return self._get_resource_per_page(resource=INCOMING_PROPERTIES, per_page=per_page, page=page, params=params) | python | def get_incoming_properties_per_page(self, per_page=1000, page=1, params=None):
"""
Get incoming properties per page
:param per_page: How many objects per page. Default: 1000
:param page: Which page. Default: 1
:param params: Search parameters. Default: {}
:return: list
"""
return self._get_resource_per_page(resource=INCOMING_PROPERTIES, per_page=per_page, page=page, params=params) | [
"def",
"get_incoming_properties_per_page",
"(",
"self",
",",
"per_page",
"=",
"1000",
",",
"page",
"=",
"1",
",",
"params",
"=",
"None",
")",
":",
"return",
"self",
".",
"_get_resource_per_page",
"(",
"resource",
"=",
"INCOMING_PROPERTIES",
",",
"per_page",
"=",
"per_page",
",",
"page",
"=",
"page",
",",
"params",
"=",
"params",
")"
]
| Get incoming properties per page
:param per_page: How many objects per page. Default: 1000
:param page: Which page. Default: 1
:param params: Search parameters. Default: {}
:return: list | [
"Get",
"incoming",
"properties",
"per",
"page"
]
| a28ba69fd37654fa145d0411d52c200e7f8984ab | https://github.com/bykof/billomapy/blob/a28ba69fd37654fa145d0411d52c200e7f8984ab/billomapy/billomapy.py#L1869-L1878 | train |
bykof/billomapy | billomapy/billomapy.py | Billomapy.get_all_incoming_properties | def get_all_incoming_properties(self, params=None):
"""
Get all incoming properties
This will iterate over all pages until it gets all elements.
So if the rate limit exceeded it will throw an Exception and you will get nothing
:param params: search params
:return: list
"""
if not params:
params = {}
return self._iterate_through_pages(
self.get_incoming_properties_per_page,
resource=INCOMING_PROPERTIES,
**{'params': params}
) | python | def get_all_incoming_properties(self, params=None):
"""
Get all incoming properties
This will iterate over all pages until it gets all elements.
So if the rate limit exceeded it will throw an Exception and you will get nothing
:param params: search params
:return: list
"""
if not params:
params = {}
return self._iterate_through_pages(
self.get_incoming_properties_per_page,
resource=INCOMING_PROPERTIES,
**{'params': params}
) | [
"def",
"get_all_incoming_properties",
"(",
"self",
",",
"params",
"=",
"None",
")",
":",
"if",
"not",
"params",
":",
"params",
"=",
"{",
"}",
"return",
"self",
".",
"_iterate_through_pages",
"(",
"self",
".",
"get_incoming_properties_per_page",
",",
"resource",
"=",
"INCOMING_PROPERTIES",
",",
"*",
"*",
"{",
"'params'",
":",
"params",
"}",
")"
]
| Get all incoming properties
This will iterate over all pages until it gets all elements.
So if the rate limit exceeded it will throw an Exception and you will get nothing
:param params: search params
:return: list | [
"Get",
"all",
"incoming",
"properties",
"This",
"will",
"iterate",
"over",
"all",
"pages",
"until",
"it",
"gets",
"all",
"elements",
".",
"So",
"if",
"the",
"rate",
"limit",
"exceeded",
"it",
"will",
"throw",
"an",
"Exception",
"and",
"you",
"will",
"get",
"nothing"
]
| a28ba69fd37654fa145d0411d52c200e7f8984ab | https://github.com/bykof/billomapy/blob/a28ba69fd37654fa145d0411d52c200e7f8984ab/billomapy/billomapy.py#L1880-L1895 | train |
bykof/billomapy | billomapy/billomapy.py | Billomapy.get_tags_of_incoming_per_page | def get_tags_of_incoming_per_page(self, incoming_id, per_page=1000, page=1):
"""
Get tags of incoming per page
:param incoming_id: the incoming id
:param per_page: How many objects per page. Default: 1000
:param page: Which page. Default: 1
:return: list
"""
return self._get_resource_per_page(
resource=INCOMING_TAGS,
per_page=per_page,
page=page,
params={'incoming_id': incoming_id},
) | python | def get_tags_of_incoming_per_page(self, incoming_id, per_page=1000, page=1):
"""
Get tags of incoming per page
:param incoming_id: the incoming id
:param per_page: How many objects per page. Default: 1000
:param page: Which page. Default: 1
:return: list
"""
return self._get_resource_per_page(
resource=INCOMING_TAGS,
per_page=per_page,
page=page,
params={'incoming_id': incoming_id},
) | [
"def",
"get_tags_of_incoming_per_page",
"(",
"self",
",",
"incoming_id",
",",
"per_page",
"=",
"1000",
",",
"page",
"=",
"1",
")",
":",
"return",
"self",
".",
"_get_resource_per_page",
"(",
"resource",
"=",
"INCOMING_TAGS",
",",
"per_page",
"=",
"per_page",
",",
"page",
"=",
"page",
",",
"params",
"=",
"{",
"'incoming_id'",
":",
"incoming_id",
"}",
",",
")"
]
| Get tags of incoming per page
:param incoming_id: the incoming id
:param per_page: How many objects per page. Default: 1000
:param page: Which page. Default: 1
:return: list | [
"Get",
"tags",
"of",
"incoming",
"per",
"page"
]
| a28ba69fd37654fa145d0411d52c200e7f8984ab | https://github.com/bykof/billomapy/blob/a28ba69fd37654fa145d0411d52c200e7f8984ab/billomapy/billomapy.py#L1921-L1935 | train |
bykof/billomapy | billomapy/billomapy.py | Billomapy.get_all_tags_of_incoming | def get_all_tags_of_incoming(self, incoming_id):
"""
Get all tags of incoming
This will iterate over all pages until it gets all elements.
So if the rate limit exceeded it will throw an Exception and you will get nothing
:param incoming_id: the incoming id
:return: list
"""
return self._iterate_through_pages(
get_function=self.get_tags_of_incoming_per_page,
resource=INCOMING_TAGS,
**{'incoming_id': incoming_id}
) | python | def get_all_tags_of_incoming(self, incoming_id):
"""
Get all tags of incoming
This will iterate over all pages until it gets all elements.
So if the rate limit exceeded it will throw an Exception and you will get nothing
:param incoming_id: the incoming id
:return: list
"""
return self._iterate_through_pages(
get_function=self.get_tags_of_incoming_per_page,
resource=INCOMING_TAGS,
**{'incoming_id': incoming_id}
) | [
"def",
"get_all_tags_of_incoming",
"(",
"self",
",",
"incoming_id",
")",
":",
"return",
"self",
".",
"_iterate_through_pages",
"(",
"get_function",
"=",
"self",
".",
"get_tags_of_incoming_per_page",
",",
"resource",
"=",
"INCOMING_TAGS",
",",
"*",
"*",
"{",
"'incoming_id'",
":",
"incoming_id",
"}",
")"
]
| Get all tags of incoming
This will iterate over all pages until it gets all elements.
So if the rate limit exceeded it will throw an Exception and you will get nothing
:param incoming_id: the incoming id
:return: list | [
"Get",
"all",
"tags",
"of",
"incoming",
"This",
"will",
"iterate",
"over",
"all",
"pages",
"until",
"it",
"gets",
"all",
"elements",
".",
"So",
"if",
"the",
"rate",
"limit",
"exceeded",
"it",
"will",
"throw",
"an",
"Exception",
"and",
"you",
"will",
"get",
"nothing"
]
| a28ba69fd37654fa145d0411d52c200e7f8984ab | https://github.com/bykof/billomapy/blob/a28ba69fd37654fa145d0411d52c200e7f8984ab/billomapy/billomapy.py#L1937-L1950 | train |
bykof/billomapy | billomapy/billomapy.py | Billomapy.get_inbox_documents_per_page | def get_inbox_documents_per_page(self, per_page=1000, page=1):
"""
Get inbox documents per page
:param per_page: How many objects per page. Default: 1000
:param page: Which page. Default: 1
:return: list
"""
return self._get_resource_per_page(
resource=INBOX_DOCUMENTS,
per_page=per_page,
page=page,
) | python | def get_inbox_documents_per_page(self, per_page=1000, page=1):
"""
Get inbox documents per page
:param per_page: How many objects per page. Default: 1000
:param page: Which page. Default: 1
:return: list
"""
return self._get_resource_per_page(
resource=INBOX_DOCUMENTS,
per_page=per_page,
page=page,
) | [
"def",
"get_inbox_documents_per_page",
"(",
"self",
",",
"per_page",
"=",
"1000",
",",
"page",
"=",
"1",
")",
":",
"return",
"self",
".",
"_get_resource_per_page",
"(",
"resource",
"=",
"INBOX_DOCUMENTS",
",",
"per_page",
"=",
"per_page",
",",
"page",
"=",
"page",
",",
")"
]
| Get inbox documents per page
:param per_page: How many objects per page. Default: 1000
:param page: Which page. Default: 1
:return: list | [
"Get",
"inbox",
"documents",
"per",
"page"
]
| a28ba69fd37654fa145d0411d52c200e7f8984ab | https://github.com/bykof/billomapy/blob/a28ba69fd37654fa145d0411d52c200e7f8984ab/billomapy/billomapy.py#L1985-L1997 | train |
bykof/billomapy | billomapy/billomapy.py | Billomapy.get_offers_per_page | def get_offers_per_page(self, per_page=1000, page=1, params=None):
"""
Get offers per page
:param per_page: How many objects per page. Default: 1000
:param page: Which page. Default: 1
:param params: Search parameters. Default: {}
:return: list
"""
return self._get_resource_per_page(resource=OFFERS, per_page=per_page, page=page, params=params) | python | def get_offers_per_page(self, per_page=1000, page=1, params=None):
"""
Get offers per page
:param per_page: How many objects per page. Default: 1000
:param page: Which page. Default: 1
:param params: Search parameters. Default: {}
:return: list
"""
return self._get_resource_per_page(resource=OFFERS, per_page=per_page, page=page, params=params) | [
"def",
"get_offers_per_page",
"(",
"self",
",",
"per_page",
"=",
"1000",
",",
"page",
"=",
"1",
",",
"params",
"=",
"None",
")",
":",
"return",
"self",
".",
"_get_resource_per_page",
"(",
"resource",
"=",
"OFFERS",
",",
"per_page",
"=",
"per_page",
",",
"page",
"=",
"page",
",",
"params",
"=",
"params",
")"
]
| Get offers per page
:param per_page: How many objects per page. Default: 1000
:param page: Which page. Default: 1
:param params: Search parameters. Default: {}
:return: list | [
"Get",
"offers",
"per",
"page"
]
| a28ba69fd37654fa145d0411d52c200e7f8984ab | https://github.com/bykof/billomapy/blob/a28ba69fd37654fa145d0411d52c200e7f8984ab/billomapy/billomapy.py#L2046-L2055 | train |
bykof/billomapy | billomapy/billomapy.py | Billomapy.get_all_offers | def get_all_offers(self, params=None):
"""
Get all offers
This will iterate over all pages until it gets all elements.
So if the rate limit exceeded it will throw an Exception and you will get nothing
:param params: search params
:return: list
"""
if not params:
params = {}
return self._iterate_through_pages(self.get_offers_per_page, resource=OFFERS, **{'params': params}) | python | def get_all_offers(self, params=None):
"""
Get all offers
This will iterate over all pages until it gets all elements.
So if the rate limit exceeded it will throw an Exception and you will get nothing
:param params: search params
:return: list
"""
if not params:
params = {}
return self._iterate_through_pages(self.get_offers_per_page, resource=OFFERS, **{'params': params}) | [
"def",
"get_all_offers",
"(",
"self",
",",
"params",
"=",
"None",
")",
":",
"if",
"not",
"params",
":",
"params",
"=",
"{",
"}",
"return",
"self",
".",
"_iterate_through_pages",
"(",
"self",
".",
"get_offers_per_page",
",",
"resource",
"=",
"OFFERS",
",",
"*",
"*",
"{",
"'params'",
":",
"params",
"}",
")"
]
| Get all offers
This will iterate over all pages until it gets all elements.
So if the rate limit exceeded it will throw an Exception and you will get nothing
:param params: search params
:return: list | [
"Get",
"all",
"offers",
"This",
"will",
"iterate",
"over",
"all",
"pages",
"until",
"it",
"gets",
"all",
"elements",
".",
"So",
"if",
"the",
"rate",
"limit",
"exceeded",
"it",
"will",
"throw",
"an",
"Exception",
"and",
"you",
"will",
"get",
"nothing"
]
| a28ba69fd37654fa145d0411d52c200e7f8984ab | https://github.com/bykof/billomapy/blob/a28ba69fd37654fa145d0411d52c200e7f8984ab/billomapy/billomapy.py#L2057-L2068 | train |
bykof/billomapy | billomapy/billomapy.py | Billomapy.update_offer | def update_offer(self, offer_id, offer_dict):
"""
Updates an offer
:param offer_id: the offer id
:param offer_dict: dict
:return: dict
"""
return self._create_put_request(resource=OFFERS, billomat_id=offer_id, send_data=offer_dict) | python | def update_offer(self, offer_id, offer_dict):
"""
Updates an offer
:param offer_id: the offer id
:param offer_dict: dict
:return: dict
"""
return self._create_put_request(resource=OFFERS, billomat_id=offer_id, send_data=offer_dict) | [
"def",
"update_offer",
"(",
"self",
",",
"offer_id",
",",
"offer_dict",
")",
":",
"return",
"self",
".",
"_create_put_request",
"(",
"resource",
"=",
"OFFERS",
",",
"billomat_id",
"=",
"offer_id",
",",
"send_data",
"=",
"offer_dict",
")"
]
| Updates an offer
:param offer_id: the offer id
:param offer_dict: dict
:return: dict | [
"Updates",
"an",
"offer"
]
| a28ba69fd37654fa145d0411d52c200e7f8984ab | https://github.com/bykof/billomapy/blob/a28ba69fd37654fa145d0411d52c200e7f8984ab/billomapy/billomapy.py#L2088-L2096 | train |
bykof/billomapy | billomapy/billomapy.py | Billomapy.complete_offer | def complete_offer(self, offer_id, complete_dict):
"""
Completes an offer
:param complete_dict: the complete dict with the template id
:param offer_id: the offer id
:return: Response
"""
return self._create_put_request(
resource=OFFERS,
billomat_id=offer_id,
command=COMPLETE,
send_data=complete_dict
) | python | def complete_offer(self, offer_id, complete_dict):
"""
Completes an offer
:param complete_dict: the complete dict with the template id
:param offer_id: the offer id
:return: Response
"""
return self._create_put_request(
resource=OFFERS,
billomat_id=offer_id,
command=COMPLETE,
send_data=complete_dict
) | [
"def",
"complete_offer",
"(",
"self",
",",
"offer_id",
",",
"complete_dict",
")",
":",
"return",
"self",
".",
"_create_put_request",
"(",
"resource",
"=",
"OFFERS",
",",
"billomat_id",
"=",
"offer_id",
",",
"command",
"=",
"COMPLETE",
",",
"send_data",
"=",
"complete_dict",
")"
]
| Completes an offer
:param complete_dict: the complete dict with the template id
:param offer_id: the offer id
:return: Response | [
"Completes",
"an",
"offer"
]
| a28ba69fd37654fa145d0411d52c200e7f8984ab | https://github.com/bykof/billomapy/blob/a28ba69fd37654fa145d0411d52c200e7f8984ab/billomapy/billomapy.py#L2107-L2120 | train |
bykof/billomapy | billomapy/billomapy.py | Billomapy.offer_pdf | def offer_pdf(self, offer_id):
"""
Opens a pdf of an offer
:param offer_id: the offer id
:return: dict
"""
return self._create_get_request(resource=OFFERS, billomat_id=offer_id, command=PDF) | python | def offer_pdf(self, offer_id):
"""
Opens a pdf of an offer
:param offer_id: the offer id
:return: dict
"""
return self._create_get_request(resource=OFFERS, billomat_id=offer_id, command=PDF) | [
"def",
"offer_pdf",
"(",
"self",
",",
"offer_id",
")",
":",
"return",
"self",
".",
"_create_get_request",
"(",
"resource",
"=",
"OFFERS",
",",
"billomat_id",
"=",
"offer_id",
",",
"command",
"=",
"PDF",
")"
]
| Opens a pdf of an offer
:param offer_id: the offer id
:return: dict | [
"Opens",
"a",
"pdf",
"of",
"an",
"offer"
]
| a28ba69fd37654fa145d0411d52c200e7f8984ab | https://github.com/bykof/billomapy/blob/a28ba69fd37654fa145d0411d52c200e7f8984ab/billomapy/billomapy.py#L2122-L2129 | train |
bykof/billomapy | billomapy/billomapy.py | Billomapy.cancel_offer | def cancel_offer(self, offer_id):
"""
Cancelles an offer
:param offer_id: the offer id
:return Response
"""
return self._create_put_request(
resource=OFFERS,
billomat_id=offer_id,
command=CANCEL,
) | python | def cancel_offer(self, offer_id):
"""
Cancelles an offer
:param offer_id: the offer id
:return Response
"""
return self._create_put_request(
resource=OFFERS,
billomat_id=offer_id,
command=CANCEL,
) | [
"def",
"cancel_offer",
"(",
"self",
",",
"offer_id",
")",
":",
"return",
"self",
".",
"_create_put_request",
"(",
"resource",
"=",
"OFFERS",
",",
"billomat_id",
"=",
"offer_id",
",",
"command",
"=",
"CANCEL",
",",
")"
]
| Cancelles an offer
:param offer_id: the offer id
:return Response | [
"Cancelles",
"an",
"offer"
]
| a28ba69fd37654fa145d0411d52c200e7f8984ab | https://github.com/bykof/billomapy/blob/a28ba69fd37654fa145d0411d52c200e7f8984ab/billomapy/billomapy.py#L2148-L2159 | train |
bykof/billomapy | billomapy/billomapy.py | Billomapy.mark_offer_as_win | def mark_offer_as_win(self, offer_id):
"""
Mark offer as win
:param offer_id: the offer id
:return Response
"""
return self._create_put_request(
resource=OFFERS,
billomat_id=offer_id,
command=WIN,
) | python | def mark_offer_as_win(self, offer_id):
"""
Mark offer as win
:param offer_id: the offer id
:return Response
"""
return self._create_put_request(
resource=OFFERS,
billomat_id=offer_id,
command=WIN,
) | [
"def",
"mark_offer_as_win",
"(",
"self",
",",
"offer_id",
")",
":",
"return",
"self",
".",
"_create_put_request",
"(",
"resource",
"=",
"OFFERS",
",",
"billomat_id",
"=",
"offer_id",
",",
"command",
"=",
"WIN",
",",
")"
]
| Mark offer as win
:param offer_id: the offer id
:return Response | [
"Mark",
"offer",
"as",
"win"
]
| a28ba69fd37654fa145d0411d52c200e7f8984ab | https://github.com/bykof/billomapy/blob/a28ba69fd37654fa145d0411d52c200e7f8984ab/billomapy/billomapy.py#L2174-L2185 | train |
bykof/billomapy | billomapy/billomapy.py | Billomapy.mark_offer_as_lose | def mark_offer_as_lose(self, offer_id):
"""
Mark offer as lose
:param offer_id: the offer id
:return Response
"""
return self._create_put_request(
resource=OFFERS,
billomat_id=offer_id,
command=LOSE,
) | python | def mark_offer_as_lose(self, offer_id):
"""
Mark offer as lose
:param offer_id: the offer id
:return Response
"""
return self._create_put_request(
resource=OFFERS,
billomat_id=offer_id,
command=LOSE,
) | [
"def",
"mark_offer_as_lose",
"(",
"self",
",",
"offer_id",
")",
":",
"return",
"self",
".",
"_create_put_request",
"(",
"resource",
"=",
"OFFERS",
",",
"billomat_id",
"=",
"offer_id",
",",
"command",
"=",
"LOSE",
",",
")"
]
| Mark offer as lose
:param offer_id: the offer id
:return Response | [
"Mark",
"offer",
"as",
"lose"
]
| a28ba69fd37654fa145d0411d52c200e7f8984ab | https://github.com/bykof/billomapy/blob/a28ba69fd37654fa145d0411d52c200e7f8984ab/billomapy/billomapy.py#L2187-L2198 | train |
bykof/billomapy | billomapy/billomapy.py | Billomapy.mark_offer_as_clear | def mark_offer_as_clear(self, offer_id):
"""
Mark offer as clear
:param offer_id: the offer id
:return Response
"""
return self._create_put_request(
resource=OFFERS,
billomat_id=offer_id,
command=CLEAR,
) | python | def mark_offer_as_clear(self, offer_id):
"""
Mark offer as clear
:param offer_id: the offer id
:return Response
"""
return self._create_put_request(
resource=OFFERS,
billomat_id=offer_id,
command=CLEAR,
) | [
"def",
"mark_offer_as_clear",
"(",
"self",
",",
"offer_id",
")",
":",
"return",
"self",
".",
"_create_put_request",
"(",
"resource",
"=",
"OFFERS",
",",
"billomat_id",
"=",
"offer_id",
",",
"command",
"=",
"CLEAR",
",",
")"
]
| Mark offer as clear
:param offer_id: the offer id
:return Response | [
"Mark",
"offer",
"as",
"clear"
]
| a28ba69fd37654fa145d0411d52c200e7f8984ab | https://github.com/bykof/billomapy/blob/a28ba69fd37654fa145d0411d52c200e7f8984ab/billomapy/billomapy.py#L2200-L2211 | train |
bykof/billomapy | billomapy/billomapy.py | Billomapy.mark_offer_as_unclear | def mark_offer_as_unclear(self, offer_id):
"""
Mark offer as unclear
:param offer_id: the offer id
:return Response
"""
return self._create_put_request(
resource=OFFERS,
billomat_id=offer_id,
command=UNCLEAR,
) | python | def mark_offer_as_unclear(self, offer_id):
"""
Mark offer as unclear
:param offer_id: the offer id
:return Response
"""
return self._create_put_request(
resource=OFFERS,
billomat_id=offer_id,
command=UNCLEAR,
) | [
"def",
"mark_offer_as_unclear",
"(",
"self",
",",
"offer_id",
")",
":",
"return",
"self",
".",
"_create_put_request",
"(",
"resource",
"=",
"OFFERS",
",",
"billomat_id",
"=",
"offer_id",
",",
"command",
"=",
"UNCLEAR",
",",
")"
]
| Mark offer as unclear
:param offer_id: the offer id
:return Response | [
"Mark",
"offer",
"as",
"unclear"
]
| a28ba69fd37654fa145d0411d52c200e7f8984ab | https://github.com/bykof/billomapy/blob/a28ba69fd37654fa145d0411d52c200e7f8984ab/billomapy/billomapy.py#L2213-L2224 | train |
bykof/billomapy | billomapy/billomapy.py | Billomapy.get_items_of_offer_per_page | def get_items_of_offer_per_page(self, offer_id, per_page=1000, page=1):
"""
Get items of offer per page
:param offer_id: the offer id
:param per_page: How many objects per page. Default: 1000
:param page: Which page. Default: 1
:return: list
"""
return self._get_resource_per_page(
resource=OFFER_ITEMS,
per_page=per_page,
page=page,
params={'offer_id': offer_id},
) | python | def get_items_of_offer_per_page(self, offer_id, per_page=1000, page=1):
"""
Get items of offer per page
:param offer_id: the offer id
:param per_page: How many objects per page. Default: 1000
:param page: Which page. Default: 1
:return: list
"""
return self._get_resource_per_page(
resource=OFFER_ITEMS,
per_page=per_page,
page=page,
params={'offer_id': offer_id},
) | [
"def",
"get_items_of_offer_per_page",
"(",
"self",
",",
"offer_id",
",",
"per_page",
"=",
"1000",
",",
"page",
"=",
"1",
")",
":",
"return",
"self",
".",
"_get_resource_per_page",
"(",
"resource",
"=",
"OFFER_ITEMS",
",",
"per_page",
"=",
"per_page",
",",
"page",
"=",
"page",
",",
"params",
"=",
"{",
"'offer_id'",
":",
"offer_id",
"}",
",",
")"
]
| Get items of offer per page
:param offer_id: the offer id
:param per_page: How many objects per page. Default: 1000
:param page: Which page. Default: 1
:return: list | [
"Get",
"items",
"of",
"offer",
"per",
"page"
]
| a28ba69fd37654fa145d0411d52c200e7f8984ab | https://github.com/bykof/billomapy/blob/a28ba69fd37654fa145d0411d52c200e7f8984ab/billomapy/billomapy.py#L2233-L2247 | train |
bykof/billomapy | billomapy/billomapy.py | Billomapy.get_all_items_of_offer | def get_all_items_of_offer(self, offer_id):
"""
Get all items of offer
This will iterate over all pages until it gets all elements.
So if the rate limit exceeded it will throw an Exception and you will get nothing
:param offer_id: the offer id
:return: list
"""
return self._iterate_through_pages(
get_function=self.get_items_of_offer_per_page,
resource=OFFER_ITEMS,
**{'offer_id': offer_id}
) | python | def get_all_items_of_offer(self, offer_id):
"""
Get all items of offer
This will iterate over all pages until it gets all elements.
So if the rate limit exceeded it will throw an Exception and you will get nothing
:param offer_id: the offer id
:return: list
"""
return self._iterate_through_pages(
get_function=self.get_items_of_offer_per_page,
resource=OFFER_ITEMS,
**{'offer_id': offer_id}
) | [
"def",
"get_all_items_of_offer",
"(",
"self",
",",
"offer_id",
")",
":",
"return",
"self",
".",
"_iterate_through_pages",
"(",
"get_function",
"=",
"self",
".",
"get_items_of_offer_per_page",
",",
"resource",
"=",
"OFFER_ITEMS",
",",
"*",
"*",
"{",
"'offer_id'",
":",
"offer_id",
"}",
")"
]
| Get all items of offer
This will iterate over all pages until it gets all elements.
So if the rate limit exceeded it will throw an Exception and you will get nothing
:param offer_id: the offer id
:return: list | [
"Get",
"all",
"items",
"of",
"offer",
"This",
"will",
"iterate",
"over",
"all",
"pages",
"until",
"it",
"gets",
"all",
"elements",
".",
"So",
"if",
"the",
"rate",
"limit",
"exceeded",
"it",
"will",
"throw",
"an",
"Exception",
"and",
"you",
"will",
"get",
"nothing"
]
| a28ba69fd37654fa145d0411d52c200e7f8984ab | https://github.com/bykof/billomapy/blob/a28ba69fd37654fa145d0411d52c200e7f8984ab/billomapy/billomapy.py#L2249-L2262 | train |
bykof/billomapy | billomapy/billomapy.py | Billomapy.update_offer_item | def update_offer_item(self, offer_item_id, offer_item_dict):
"""
Updates an offer item
:param offer_item_id: offer item id
:param offer_item_dict: dict
:return: dict
"""
return self._create_put_request(resource=OFFER_ITEMS, billomat_id=offer_item_id, send_data=offer_item_dict) | python | def update_offer_item(self, offer_item_id, offer_item_dict):
"""
Updates an offer item
:param offer_item_id: offer item id
:param offer_item_dict: dict
:return: dict
"""
return self._create_put_request(resource=OFFER_ITEMS, billomat_id=offer_item_id, send_data=offer_item_dict) | [
"def",
"update_offer_item",
"(",
"self",
",",
"offer_item_id",
",",
"offer_item_dict",
")",
":",
"return",
"self",
".",
"_create_put_request",
"(",
"resource",
"=",
"OFFER_ITEMS",
",",
"billomat_id",
"=",
"offer_item_id",
",",
"send_data",
"=",
"offer_item_dict",
")"
]
| Updates an offer item
:param offer_item_id: offer item id
:param offer_item_dict: dict
:return: dict | [
"Updates",
"an",
"offer",
"item"
]
| a28ba69fd37654fa145d0411d52c200e7f8984ab | https://github.com/bykof/billomapy/blob/a28ba69fd37654fa145d0411d52c200e7f8984ab/billomapy/billomapy.py#L2282-L2290 | train |
bykof/billomapy | billomapy/billomapy.py | Billomapy.get_comments_of_offer_per_page | def get_comments_of_offer_per_page(self, offer_id, per_page=1000, page=1):
"""
Get comments of offer per page
:param offer_id: the offer id
:param per_page: How many objects per page. Default: 1000
:param page: Which page. Default: 1
:return: list
"""
return self._get_resource_per_page(
resource=OFFER_COMMENTS,
per_page=per_page,
page=page,
params={'offer_id': offer_id},
) | python | def get_comments_of_offer_per_page(self, offer_id, per_page=1000, page=1):
"""
Get comments of offer per page
:param offer_id: the offer id
:param per_page: How many objects per page. Default: 1000
:param page: Which page. Default: 1
:return: list
"""
return self._get_resource_per_page(
resource=OFFER_COMMENTS,
per_page=per_page,
page=page,
params={'offer_id': offer_id},
) | [
"def",
"get_comments_of_offer_per_page",
"(",
"self",
",",
"offer_id",
",",
"per_page",
"=",
"1000",
",",
"page",
"=",
"1",
")",
":",
"return",
"self",
".",
"_get_resource_per_page",
"(",
"resource",
"=",
"OFFER_COMMENTS",
",",
"per_page",
"=",
"per_page",
",",
"page",
"=",
"page",
",",
"params",
"=",
"{",
"'offer_id'",
":",
"offer_id",
"}",
",",
")"
]
| Get comments of offer per page
:param offer_id: the offer id
:param per_page: How many objects per page. Default: 1000
:param page: Which page. Default: 1
:return: list | [
"Get",
"comments",
"of",
"offer",
"per",
"page"
]
| a28ba69fd37654fa145d0411d52c200e7f8984ab | https://github.com/bykof/billomapy/blob/a28ba69fd37654fa145d0411d52c200e7f8984ab/billomapy/billomapy.py#L2308-L2322 | train |
bykof/billomapy | billomapy/billomapy.py | Billomapy.get_all_comments_of_offer | def get_all_comments_of_offer(self, offer_id):
"""
Get all comments of offer
This will iterate over all pages until it gets all elements.
So if the rate limit exceeded it will throw an Exception and you will get nothing
:param offer_id: the offer id
:return: list
"""
return self._iterate_through_pages(
get_function=self.get_comments_of_offer_per_page,
resource=OFFER_COMMENTS,
**{'offer_id': offer_id}
) | python | def get_all_comments_of_offer(self, offer_id):
"""
Get all comments of offer
This will iterate over all pages until it gets all elements.
So if the rate limit exceeded it will throw an Exception and you will get nothing
:param offer_id: the offer id
:return: list
"""
return self._iterate_through_pages(
get_function=self.get_comments_of_offer_per_page,
resource=OFFER_COMMENTS,
**{'offer_id': offer_id}
) | [
"def",
"get_all_comments_of_offer",
"(",
"self",
",",
"offer_id",
")",
":",
"return",
"self",
".",
"_iterate_through_pages",
"(",
"get_function",
"=",
"self",
".",
"get_comments_of_offer_per_page",
",",
"resource",
"=",
"OFFER_COMMENTS",
",",
"*",
"*",
"{",
"'offer_id'",
":",
"offer_id",
"}",
")"
]
| Get all comments of offer
This will iterate over all pages until it gets all elements.
So if the rate limit exceeded it will throw an Exception and you will get nothing
:param offer_id: the offer id
:return: list | [
"Get",
"all",
"comments",
"of",
"offer",
"This",
"will",
"iterate",
"over",
"all",
"pages",
"until",
"it",
"gets",
"all",
"elements",
".",
"So",
"if",
"the",
"rate",
"limit",
"exceeded",
"it",
"will",
"throw",
"an",
"Exception",
"and",
"you",
"will",
"get",
"nothing"
]
| a28ba69fd37654fa145d0411d52c200e7f8984ab | https://github.com/bykof/billomapy/blob/a28ba69fd37654fa145d0411d52c200e7f8984ab/billomapy/billomapy.py#L2324-L2337 | train |
bykof/billomapy | billomapy/billomapy.py | Billomapy.update_offer_comment | def update_offer_comment(self, offer_comment_id, offer_comment_dict):
"""
Updates an offer comment
:param offer_comment_id: the offer comment id
:param offer_comment_dict: dict
:return: dict
"""
return self._create_put_request(
resource=OFFER_COMMENTS,
billomat_id=offer_comment_id,
send_data=offer_comment_dict
) | python | def update_offer_comment(self, offer_comment_id, offer_comment_dict):
"""
Updates an offer comment
:param offer_comment_id: the offer comment id
:param offer_comment_dict: dict
:return: dict
"""
return self._create_put_request(
resource=OFFER_COMMENTS,
billomat_id=offer_comment_id,
send_data=offer_comment_dict
) | [
"def",
"update_offer_comment",
"(",
"self",
",",
"offer_comment_id",
",",
"offer_comment_dict",
")",
":",
"return",
"self",
".",
"_create_put_request",
"(",
"resource",
"=",
"OFFER_COMMENTS",
",",
"billomat_id",
"=",
"offer_comment_id",
",",
"send_data",
"=",
"offer_comment_dict",
")"
]
| Updates an offer comment
:param offer_comment_id: the offer comment id
:param offer_comment_dict: dict
:return: dict | [
"Updates",
"an",
"offer",
"comment"
]
| a28ba69fd37654fa145d0411d52c200e7f8984ab | https://github.com/bykof/billomapy/blob/a28ba69fd37654fa145d0411d52c200e7f8984ab/billomapy/billomapy.py#L2357-L2369 | train |
bykof/billomapy | billomapy/billomapy.py | Billomapy.get_tags_of_offer_per_page | def get_tags_of_offer_per_page(self, offer_id, per_page=1000, page=1):
"""
Get tags of offer per page
:param per_page: How many objects per page. Default: 1000
:param page: Which page. Default: 1
:param offer_id: the offer id
:return: list
"""
return self._get_resource_per_page(
resource=OFFER_TAGS,
per_page=per_page,
page=page,
params={'offer_id': offer_id},
) | python | def get_tags_of_offer_per_page(self, offer_id, per_page=1000, page=1):
"""
Get tags of offer per page
:param per_page: How many objects per page. Default: 1000
:param page: Which page. Default: 1
:param offer_id: the offer id
:return: list
"""
return self._get_resource_per_page(
resource=OFFER_TAGS,
per_page=per_page,
page=page,
params={'offer_id': offer_id},
) | [
"def",
"get_tags_of_offer_per_page",
"(",
"self",
",",
"offer_id",
",",
"per_page",
"=",
"1000",
",",
"page",
"=",
"1",
")",
":",
"return",
"self",
".",
"_get_resource_per_page",
"(",
"resource",
"=",
"OFFER_TAGS",
",",
"per_page",
"=",
"per_page",
",",
"page",
"=",
"page",
",",
"params",
"=",
"{",
"'offer_id'",
":",
"offer_id",
"}",
",",
")"
]
| Get tags of offer per page
:param per_page: How many objects per page. Default: 1000
:param page: Which page. Default: 1
:param offer_id: the offer id
:return: list | [
"Get",
"tags",
"of",
"offer",
"per",
"page"
]
| a28ba69fd37654fa145d0411d52c200e7f8984ab | https://github.com/bykof/billomapy/blob/a28ba69fd37654fa145d0411d52c200e7f8984ab/billomapy/billomapy.py#L2386-L2400 | train |
bykof/billomapy | billomapy/billomapy.py | Billomapy.get_all_tags_of_offer | def get_all_tags_of_offer(self, offer_id):
"""
Get all tags of offer
This will iterate over all pages until it gets all elements.
So if the rate limit exceeded it will throw an Exception and you will get nothing
:param offer_id: the offer id
:return: list
"""
return self._iterate_through_pages(
get_function=self.get_tags_of_offer_per_page,
resource=OFFER_TAGS,
**{'offer_id': offer_id}
) | python | def get_all_tags_of_offer(self, offer_id):
"""
Get all tags of offer
This will iterate over all pages until it gets all elements.
So if the rate limit exceeded it will throw an Exception and you will get nothing
:param offer_id: the offer id
:return: list
"""
return self._iterate_through_pages(
get_function=self.get_tags_of_offer_per_page,
resource=OFFER_TAGS,
**{'offer_id': offer_id}
) | [
"def",
"get_all_tags_of_offer",
"(",
"self",
",",
"offer_id",
")",
":",
"return",
"self",
".",
"_iterate_through_pages",
"(",
"get_function",
"=",
"self",
".",
"get_tags_of_offer_per_page",
",",
"resource",
"=",
"OFFER_TAGS",
",",
"*",
"*",
"{",
"'offer_id'",
":",
"offer_id",
"}",
")"
]
| Get all tags of offer
This will iterate over all pages until it gets all elements.
So if the rate limit exceeded it will throw an Exception and you will get nothing
:param offer_id: the offer id
:return: list | [
"Get",
"all",
"tags",
"of",
"offer",
"This",
"will",
"iterate",
"over",
"all",
"pages",
"until",
"it",
"gets",
"all",
"elements",
".",
"So",
"if",
"the",
"rate",
"limit",
"exceeded",
"it",
"will",
"throw",
"an",
"Exception",
"and",
"you",
"will",
"get",
"nothing"
]
| a28ba69fd37654fa145d0411d52c200e7f8984ab | https://github.com/bykof/billomapy/blob/a28ba69fd37654fa145d0411d52c200e7f8984ab/billomapy/billomapy.py#L2402-L2415 | train |
bykof/billomapy | billomapy/billomapy.py | Billomapy.get_credit_notes_per_page | def get_credit_notes_per_page(self, per_page=1000, page=1, params=None):
"""
Get credit notes per page
:param per_page: How many objects per page. Default: 1000
:param page: Which page. Default: 1
:param params: Search parameters. Default: {}
:return: list
"""
return self._get_resource_per_page(resource=CREDIT_NOTES, per_page=per_page, page=page, params=params) | python | def get_credit_notes_per_page(self, per_page=1000, page=1, params=None):
"""
Get credit notes per page
:param per_page: How many objects per page. Default: 1000
:param page: Which page. Default: 1
:param params: Search parameters. Default: {}
:return: list
"""
return self._get_resource_per_page(resource=CREDIT_NOTES, per_page=per_page, page=page, params=params) | [
"def",
"get_credit_notes_per_page",
"(",
"self",
",",
"per_page",
"=",
"1000",
",",
"page",
"=",
"1",
",",
"params",
"=",
"None",
")",
":",
"return",
"self",
".",
"_get_resource_per_page",
"(",
"resource",
"=",
"CREDIT_NOTES",
",",
"per_page",
"=",
"per_page",
",",
"page",
"=",
"page",
",",
"params",
"=",
"params",
")"
]
| Get credit notes per page
:param per_page: How many objects per page. Default: 1000
:param page: Which page. Default: 1
:param params: Search parameters. Default: {}
:return: list | [
"Get",
"credit",
"notes",
"per",
"page"
]
| a28ba69fd37654fa145d0411d52c200e7f8984ab | https://github.com/bykof/billomapy/blob/a28ba69fd37654fa145d0411d52c200e7f8984ab/billomapy/billomapy.py#L2451-L2460 | train |
bykof/billomapy | billomapy/billomapy.py | Billomapy.get_all_credit_notes | def get_all_credit_notes(self, params=None):
"""
Get all credit notes
This will iterate over all pages until it gets all elements.
So if the rate limit exceeded it will throw an Exception and you will get nothing
:param params: search params
:return: list
"""
if not params:
params = {}
return self._iterate_through_pages(self.get_credit_notes_per_page, resource=CREDIT_NOTES, **{'params': params}) | python | def get_all_credit_notes(self, params=None):
"""
Get all credit notes
This will iterate over all pages until it gets all elements.
So if the rate limit exceeded it will throw an Exception and you will get nothing
:param params: search params
:return: list
"""
if not params:
params = {}
return self._iterate_through_pages(self.get_credit_notes_per_page, resource=CREDIT_NOTES, **{'params': params}) | [
"def",
"get_all_credit_notes",
"(",
"self",
",",
"params",
"=",
"None",
")",
":",
"if",
"not",
"params",
":",
"params",
"=",
"{",
"}",
"return",
"self",
".",
"_iterate_through_pages",
"(",
"self",
".",
"get_credit_notes_per_page",
",",
"resource",
"=",
"CREDIT_NOTES",
",",
"*",
"*",
"{",
"'params'",
":",
"params",
"}",
")"
]
| Get all credit notes
This will iterate over all pages until it gets all elements.
So if the rate limit exceeded it will throw an Exception and you will get nothing
:param params: search params
:return: list | [
"Get",
"all",
"credit",
"notes",
"This",
"will",
"iterate",
"over",
"all",
"pages",
"until",
"it",
"gets",
"all",
"elements",
".",
"So",
"if",
"the",
"rate",
"limit",
"exceeded",
"it",
"will",
"throw",
"an",
"Exception",
"and",
"you",
"will",
"get",
"nothing"
]
| a28ba69fd37654fa145d0411d52c200e7f8984ab | https://github.com/bykof/billomapy/blob/a28ba69fd37654fa145d0411d52c200e7f8984ab/billomapy/billomapy.py#L2462-L2473 | train |
bykof/billomapy | billomapy/billomapy.py | Billomapy.update_credit_note | def update_credit_note(self, credit_note_id, credit_note_dict):
"""
Updates a credit note
:param credit_note_id: the credit note id
:param credit_note_dict: dict
:return: dict
"""
return self._create_put_request(resource=CREDIT_NOTES, billomat_id=credit_note_id, send_data=credit_note_dict) | python | def update_credit_note(self, credit_note_id, credit_note_dict):
"""
Updates a credit note
:param credit_note_id: the credit note id
:param credit_note_dict: dict
:return: dict
"""
return self._create_put_request(resource=CREDIT_NOTES, billomat_id=credit_note_id, send_data=credit_note_dict) | [
"def",
"update_credit_note",
"(",
"self",
",",
"credit_note_id",
",",
"credit_note_dict",
")",
":",
"return",
"self",
".",
"_create_put_request",
"(",
"resource",
"=",
"CREDIT_NOTES",
",",
"billomat_id",
"=",
"credit_note_id",
",",
"send_data",
"=",
"credit_note_dict",
")"
]
| Updates a credit note
:param credit_note_id: the credit note id
:param credit_note_dict: dict
:return: dict | [
"Updates",
"a",
"credit",
"note"
]
| a28ba69fd37654fa145d0411d52c200e7f8984ab | https://github.com/bykof/billomapy/blob/a28ba69fd37654fa145d0411d52c200e7f8984ab/billomapy/billomapy.py#L2493-L2501 | train |
bykof/billomapy | billomapy/billomapy.py | Billomapy.complete_credit_note | def complete_credit_note(self, credit_note_it, complete_dict):
"""
Completes an credit note
:param complete_dict: the complete dict with the template id
:param credit_note_it: the credit note id
:return: Response
"""
return self._create_put_request(
resource=CREDIT_NOTES,
billomat_id=credit_note_it,
command=COMPLETE,
send_data=complete_dict
) | python | def complete_credit_note(self, credit_note_it, complete_dict):
"""
Completes an credit note
:param complete_dict: the complete dict with the template id
:param credit_note_it: the credit note id
:return: Response
"""
return self._create_put_request(
resource=CREDIT_NOTES,
billomat_id=credit_note_it,
command=COMPLETE,
send_data=complete_dict
) | [
"def",
"complete_credit_note",
"(",
"self",
",",
"credit_note_it",
",",
"complete_dict",
")",
":",
"return",
"self",
".",
"_create_put_request",
"(",
"resource",
"=",
"CREDIT_NOTES",
",",
"billomat_id",
"=",
"credit_note_it",
",",
"command",
"=",
"COMPLETE",
",",
"send_data",
"=",
"complete_dict",
")"
]
| Completes an credit note
:param complete_dict: the complete dict with the template id
:param credit_note_it: the credit note id
:return: Response | [
"Completes",
"an",
"credit",
"note"
]
| a28ba69fd37654fa145d0411d52c200e7f8984ab | https://github.com/bykof/billomapy/blob/a28ba69fd37654fa145d0411d52c200e7f8984ab/billomapy/billomapy.py#L2512-L2525 | train |
bykof/billomapy | billomapy/billomapy.py | Billomapy.credit_note_pdf | def credit_note_pdf(self, credit_note_it):
"""
Opens a pdf of a credit note
:param credit_note_it: the credit note id
:return: dict
"""
return self._create_get_request(resource=CREDIT_NOTES, billomat_id=credit_note_it, command=PDF) | python | def credit_note_pdf(self, credit_note_it):
"""
Opens a pdf of a credit note
:param credit_note_it: the credit note id
:return: dict
"""
return self._create_get_request(resource=CREDIT_NOTES, billomat_id=credit_note_it, command=PDF) | [
"def",
"credit_note_pdf",
"(",
"self",
",",
"credit_note_it",
")",
":",
"return",
"self",
".",
"_create_get_request",
"(",
"resource",
"=",
"CREDIT_NOTES",
",",
"billomat_id",
"=",
"credit_note_it",
",",
"command",
"=",
"PDF",
")"
]
| Opens a pdf of a credit note
:param credit_note_it: the credit note id
:return: dict | [
"Opens",
"a",
"pdf",
"of",
"a",
"credit",
"note"
]
| a28ba69fd37654fa145d0411d52c200e7f8984ab | https://github.com/bykof/billomapy/blob/a28ba69fd37654fa145d0411d52c200e7f8984ab/billomapy/billomapy.py#L2527-L2534 | train |
bykof/billomapy | billomapy/billomapy.py | Billomapy.upload_credit_note_signature | def upload_credit_note_signature(self, credit_note_it, signature_dict):
"""
Uploads a signature for the credit note
:param signature_dict: the signature
:type signature_dict: dict
:param credit_note_it: the credit note id
:return Response
"""
return self._create_put_request(
resource=CREDIT_NOTES,
billomat_id=credit_note_it,
send_data=signature_dict,
command=UPLOAD_SIGNATURE
) | python | def upload_credit_note_signature(self, credit_note_it, signature_dict):
"""
Uploads a signature for the credit note
:param signature_dict: the signature
:type signature_dict: dict
:param credit_note_it: the credit note id
:return Response
"""
return self._create_put_request(
resource=CREDIT_NOTES,
billomat_id=credit_note_it,
send_data=signature_dict,
command=UPLOAD_SIGNATURE
) | [
"def",
"upload_credit_note_signature",
"(",
"self",
",",
"credit_note_it",
",",
"signature_dict",
")",
":",
"return",
"self",
".",
"_create_put_request",
"(",
"resource",
"=",
"CREDIT_NOTES",
",",
"billomat_id",
"=",
"credit_note_it",
",",
"send_data",
"=",
"signature_dict",
",",
"command",
"=",
"UPLOAD_SIGNATURE",
")"
]
| Uploads a signature for the credit note
:param signature_dict: the signature
:type signature_dict: dict
:param credit_note_it: the credit note id
:return Response | [
"Uploads",
"a",
"signature",
"for",
"the",
"credit",
"note"
]
| a28ba69fd37654fa145d0411d52c200e7f8984ab | https://github.com/bykof/billomapy/blob/a28ba69fd37654fa145d0411d52c200e7f8984ab/billomapy/billomapy.py#L2536-L2550 | train |
bykof/billomapy | billomapy/billomapy.py | Billomapy.get_items_of_credit_note_per_page | def get_items_of_credit_note_per_page(self, credit_note_id, per_page=1000, page=1):
"""
Get items of credit note per page
:param credit_note_id: the credit note id
:param per_page: How many objects per page. Default: 1000
:param page: Which page. Default: 1
:return: list
"""
return self._get_resource_per_page(
resource=CREDIT_NOTE_ITEMS,
per_page=per_page,
page=page,
params={'credit_note_id': credit_note_id},
) | python | def get_items_of_credit_note_per_page(self, credit_note_id, per_page=1000, page=1):
"""
Get items of credit note per page
:param credit_note_id: the credit note id
:param per_page: How many objects per page. Default: 1000
:param page: Which page. Default: 1
:return: list
"""
return self._get_resource_per_page(
resource=CREDIT_NOTE_ITEMS,
per_page=per_page,
page=page,
params={'credit_note_id': credit_note_id},
) | [
"def",
"get_items_of_credit_note_per_page",
"(",
"self",
",",
"credit_note_id",
",",
"per_page",
"=",
"1000",
",",
"page",
"=",
"1",
")",
":",
"return",
"self",
".",
"_get_resource_per_page",
"(",
"resource",
"=",
"CREDIT_NOTE_ITEMS",
",",
"per_page",
"=",
"per_page",
",",
"page",
"=",
"page",
",",
"params",
"=",
"{",
"'credit_note_id'",
":",
"credit_note_id",
"}",
",",
")"
]
| Get items of credit note per page
:param credit_note_id: the credit note id
:param per_page: How many objects per page. Default: 1000
:param page: Which page. Default: 1
:return: list | [
"Get",
"items",
"of",
"credit",
"note",
"per",
"page"
]
| a28ba69fd37654fa145d0411d52c200e7f8984ab | https://github.com/bykof/billomapy/blob/a28ba69fd37654fa145d0411d52c200e7f8984ab/billomapy/billomapy.py#L2576-L2590 | train |
bykof/billomapy | billomapy/billomapy.py | Billomapy.get_all_items_of_credit_note | def get_all_items_of_credit_note(self, credit_note_id):
"""
Get all items of credit note
This will iterate over all pages until it gets all elements.
So if the rate limit exceeded it will throw an Exception and you will get nothing
:param credit_note_id: the credit note id
:return: list
"""
return self._iterate_through_pages(
get_function=self.get_items_of_credit_note_per_page,
resource=CREDIT_NOTE_ITEMS,
**{'credit_note_id': credit_note_id}
) | python | def get_all_items_of_credit_note(self, credit_note_id):
"""
Get all items of credit note
This will iterate over all pages until it gets all elements.
So if the rate limit exceeded it will throw an Exception and you will get nothing
:param credit_note_id: the credit note id
:return: list
"""
return self._iterate_through_pages(
get_function=self.get_items_of_credit_note_per_page,
resource=CREDIT_NOTE_ITEMS,
**{'credit_note_id': credit_note_id}
) | [
"def",
"get_all_items_of_credit_note",
"(",
"self",
",",
"credit_note_id",
")",
":",
"return",
"self",
".",
"_iterate_through_pages",
"(",
"get_function",
"=",
"self",
".",
"get_items_of_credit_note_per_page",
",",
"resource",
"=",
"CREDIT_NOTE_ITEMS",
",",
"*",
"*",
"{",
"'credit_note_id'",
":",
"credit_note_id",
"}",
")"
]
| Get all items of credit note
This will iterate over all pages until it gets all elements.
So if the rate limit exceeded it will throw an Exception and you will get nothing
:param credit_note_id: the credit note id
:return: list | [
"Get",
"all",
"items",
"of",
"credit",
"note",
"This",
"will",
"iterate",
"over",
"all",
"pages",
"until",
"it",
"gets",
"all",
"elements",
".",
"So",
"if",
"the",
"rate",
"limit",
"exceeded",
"it",
"will",
"throw",
"an",
"Exception",
"and",
"you",
"will",
"get",
"nothing"
]
| a28ba69fd37654fa145d0411d52c200e7f8984ab | https://github.com/bykof/billomapy/blob/a28ba69fd37654fa145d0411d52c200e7f8984ab/billomapy/billomapy.py#L2592-L2605 | train |
bykof/billomapy | billomapy/billomapy.py | Billomapy.update_credit_note_item | def update_credit_note_item(self, credit_note_item_id, credit_note_item_dict):
"""
Updates a credit note item
:param credit_note_item_id: the credit note item id
:param credit_note_item_dict: dict
:return: dict
"""
return self._create_put_request(
resource=CREDIT_NOTE_ITEMS,
billomat_id=credit_note_item_id,
send_data=credit_note_item_dict
) | python | def update_credit_note_item(self, credit_note_item_id, credit_note_item_dict):
"""
Updates a credit note item
:param credit_note_item_id: the credit note item id
:param credit_note_item_dict: dict
:return: dict
"""
return self._create_put_request(
resource=CREDIT_NOTE_ITEMS,
billomat_id=credit_note_item_id,
send_data=credit_note_item_dict
) | [
"def",
"update_credit_note_item",
"(",
"self",
",",
"credit_note_item_id",
",",
"credit_note_item_dict",
")",
":",
"return",
"self",
".",
"_create_put_request",
"(",
"resource",
"=",
"CREDIT_NOTE_ITEMS",
",",
"billomat_id",
"=",
"credit_note_item_id",
",",
"send_data",
"=",
"credit_note_item_dict",
")"
]
| Updates a credit note item
:param credit_note_item_id: the credit note item id
:param credit_note_item_dict: dict
:return: dict | [
"Updates",
"a",
"credit",
"note",
"item"
]
| a28ba69fd37654fa145d0411d52c200e7f8984ab | https://github.com/bykof/billomapy/blob/a28ba69fd37654fa145d0411d52c200e7f8984ab/billomapy/billomapy.py#L2625-L2637 | train |
bykof/billomapy | billomapy/billomapy.py | Billomapy.get_comments_of_credit_note_per_page | def get_comments_of_credit_note_per_page(self, credit_note_id, per_page=1000, page=1):
"""
Get comments of credit note per page
:param credit_note_id: the credit note id
:param per_page: How many objects per page. Default: 1000
:param page: Which page. Default: 1
:return: list
"""
return self._get_resource_per_page(
resource=CREDIT_NOTE_COMMENTS,
per_page=per_page,
page=page,
params={'credit_note_id': credit_note_id},
) | python | def get_comments_of_credit_note_per_page(self, credit_note_id, per_page=1000, page=1):
"""
Get comments of credit note per page
:param credit_note_id: the credit note id
:param per_page: How many objects per page. Default: 1000
:param page: Which page. Default: 1
:return: list
"""
return self._get_resource_per_page(
resource=CREDIT_NOTE_COMMENTS,
per_page=per_page,
page=page,
params={'credit_note_id': credit_note_id},
) | [
"def",
"get_comments_of_credit_note_per_page",
"(",
"self",
",",
"credit_note_id",
",",
"per_page",
"=",
"1000",
",",
"page",
"=",
"1",
")",
":",
"return",
"self",
".",
"_get_resource_per_page",
"(",
"resource",
"=",
"CREDIT_NOTE_COMMENTS",
",",
"per_page",
"=",
"per_page",
",",
"page",
"=",
"page",
",",
"params",
"=",
"{",
"'credit_note_id'",
":",
"credit_note_id",
"}",
",",
")"
]
| Get comments of credit note per page
:param credit_note_id: the credit note id
:param per_page: How many objects per page. Default: 1000
:param page: Which page. Default: 1
:return: list | [
"Get",
"comments",
"of",
"credit",
"note",
"per",
"page"
]
| a28ba69fd37654fa145d0411d52c200e7f8984ab | https://github.com/bykof/billomapy/blob/a28ba69fd37654fa145d0411d52c200e7f8984ab/billomapy/billomapy.py#L2649-L2663 | train |
bykof/billomapy | billomapy/billomapy.py | Billomapy.get_all_comments_of_credit_note | def get_all_comments_of_credit_note(self, credit_note_id):
"""
Get all comments of credit note
This will iterate over all pages until it gets all elements.
So if the rate limit exceeded it will throw an Exception and you will get nothing
:param credit_note_id: the credit note id
:return: list
"""
return self._iterate_through_pages(
get_function=self.get_comments_of_credit_note_per_page,
resource=CREDIT_NOTE_COMMENTS,
**{'credit_note_id': credit_note_id}
) | python | def get_all_comments_of_credit_note(self, credit_note_id):
"""
Get all comments of credit note
This will iterate over all pages until it gets all elements.
So if the rate limit exceeded it will throw an Exception and you will get nothing
:param credit_note_id: the credit note id
:return: list
"""
return self._iterate_through_pages(
get_function=self.get_comments_of_credit_note_per_page,
resource=CREDIT_NOTE_COMMENTS,
**{'credit_note_id': credit_note_id}
) | [
"def",
"get_all_comments_of_credit_note",
"(",
"self",
",",
"credit_note_id",
")",
":",
"return",
"self",
".",
"_iterate_through_pages",
"(",
"get_function",
"=",
"self",
".",
"get_comments_of_credit_note_per_page",
",",
"resource",
"=",
"CREDIT_NOTE_COMMENTS",
",",
"*",
"*",
"{",
"'credit_note_id'",
":",
"credit_note_id",
"}",
")"
]
| Get all comments of credit note
This will iterate over all pages until it gets all elements.
So if the rate limit exceeded it will throw an Exception and you will get nothing
:param credit_note_id: the credit note id
:return: list | [
"Get",
"all",
"comments",
"of",
"credit",
"note",
"This",
"will",
"iterate",
"over",
"all",
"pages",
"until",
"it",
"gets",
"all",
"elements",
".",
"So",
"if",
"the",
"rate",
"limit",
"exceeded",
"it",
"will",
"throw",
"an",
"Exception",
"and",
"you",
"will",
"get",
"nothing"
]
| a28ba69fd37654fa145d0411d52c200e7f8984ab | https://github.com/bykof/billomapy/blob/a28ba69fd37654fa145d0411d52c200e7f8984ab/billomapy/billomapy.py#L2665-L2678 | train |
bykof/billomapy | billomapy/billomapy.py | Billomapy.update_credit_note_comment | def update_credit_note_comment(self, credit_note_comment_id, credit_note_comment_dict):
"""
Updates a credit note comment
:param credit_note_comment_id: the credit note comment id
:param credit_note_comment_dict: dict
:return: dict
"""
return self._create_put_request(
resource=CREDIT_NOTE_COMMENTS,
billomat_id=credit_note_comment_id,
send_data=credit_note_comment_dict
) | python | def update_credit_note_comment(self, credit_note_comment_id, credit_note_comment_dict):
"""
Updates a credit note comment
:param credit_note_comment_id: the credit note comment id
:param credit_note_comment_dict: dict
:return: dict
"""
return self._create_put_request(
resource=CREDIT_NOTE_COMMENTS,
billomat_id=credit_note_comment_id,
send_data=credit_note_comment_dict
) | [
"def",
"update_credit_note_comment",
"(",
"self",
",",
"credit_note_comment_id",
",",
"credit_note_comment_dict",
")",
":",
"return",
"self",
".",
"_create_put_request",
"(",
"resource",
"=",
"CREDIT_NOTE_COMMENTS",
",",
"billomat_id",
"=",
"credit_note_comment_id",
",",
"send_data",
"=",
"credit_note_comment_dict",
")"
]
| Updates a credit note comment
:param credit_note_comment_id: the credit note comment id
:param credit_note_comment_dict: dict
:return: dict | [
"Updates",
"a",
"credit",
"note",
"comment"
]
| a28ba69fd37654fa145d0411d52c200e7f8984ab | https://github.com/bykof/billomapy/blob/a28ba69fd37654fa145d0411d52c200e7f8984ab/billomapy/billomapy.py#L2698-L2710 | train |
bykof/billomapy | billomapy/billomapy.py | Billomapy.get_payments_of_credit_note_per_page | def get_payments_of_credit_note_per_page(self, credit_note_id, per_page=1000, page=1):
"""
Get payments of credit note per page
:param credit_note_id: the credit note id
:param per_page: How many objects per page. Default: 1000
:param page: Which page. Default: 1
:return: list
"""
return self._get_resource_per_page(
resource=CREDIT_NOTE_PAYMENTS,
per_page=per_page,
page=page,
params={'credit_note_id': credit_note_id},
) | python | def get_payments_of_credit_note_per_page(self, credit_note_id, per_page=1000, page=1):
"""
Get payments of credit note per page
:param credit_note_id: the credit note id
:param per_page: How many objects per page. Default: 1000
:param page: Which page. Default: 1
:return: list
"""
return self._get_resource_per_page(
resource=CREDIT_NOTE_PAYMENTS,
per_page=per_page,
page=page,
params={'credit_note_id': credit_note_id},
) | [
"def",
"get_payments_of_credit_note_per_page",
"(",
"self",
",",
"credit_note_id",
",",
"per_page",
"=",
"1000",
",",
"page",
"=",
"1",
")",
":",
"return",
"self",
".",
"_get_resource_per_page",
"(",
"resource",
"=",
"CREDIT_NOTE_PAYMENTS",
",",
"per_page",
"=",
"per_page",
",",
"page",
"=",
"page",
",",
"params",
"=",
"{",
"'credit_note_id'",
":",
"credit_note_id",
"}",
",",
")"
]
| Get payments of credit note per page
:param credit_note_id: the credit note id
:param per_page: How many objects per page. Default: 1000
:param page: Which page. Default: 1
:return: list | [
"Get",
"payments",
"of",
"credit",
"note",
"per",
"page"
]
| a28ba69fd37654fa145d0411d52c200e7f8984ab | https://github.com/bykof/billomapy/blob/a28ba69fd37654fa145d0411d52c200e7f8984ab/billomapy/billomapy.py#L2728-L2742 | train |
bykof/billomapy | billomapy/billomapy.py | Billomapy.get_all_payments_of_credit_note | def get_all_payments_of_credit_note(self, credit_note_id):
"""
Get all payments of credit note
This will iterate over all pages until it gets all elements.
So if the rate limit exceeded it will throw an Exception and you will get nothing
:param credit_note_id: the credit note id
:return: list
"""
return self._iterate_through_pages(
get_function=self.get_payments_of_credit_note_per_page,
resource=CREDIT_NOTE_PAYMENTS,
**{'credit_note_id': credit_note_id}
) | python | def get_all_payments_of_credit_note(self, credit_note_id):
"""
Get all payments of credit note
This will iterate over all pages until it gets all elements.
So if the rate limit exceeded it will throw an Exception and you will get nothing
:param credit_note_id: the credit note id
:return: list
"""
return self._iterate_through_pages(
get_function=self.get_payments_of_credit_note_per_page,
resource=CREDIT_NOTE_PAYMENTS,
**{'credit_note_id': credit_note_id}
) | [
"def",
"get_all_payments_of_credit_note",
"(",
"self",
",",
"credit_note_id",
")",
":",
"return",
"self",
".",
"_iterate_through_pages",
"(",
"get_function",
"=",
"self",
".",
"get_payments_of_credit_note_per_page",
",",
"resource",
"=",
"CREDIT_NOTE_PAYMENTS",
",",
"*",
"*",
"{",
"'credit_note_id'",
":",
"credit_note_id",
"}",
")"
]
| Get all payments of credit note
This will iterate over all pages until it gets all elements.
So if the rate limit exceeded it will throw an Exception and you will get nothing
:param credit_note_id: the credit note id
:return: list | [
"Get",
"all",
"payments",
"of",
"credit",
"note",
"This",
"will",
"iterate",
"over",
"all",
"pages",
"until",
"it",
"gets",
"all",
"elements",
".",
"So",
"if",
"the",
"rate",
"limit",
"exceeded",
"it",
"will",
"throw",
"an",
"Exception",
"and",
"you",
"will",
"get",
"nothing"
]
| a28ba69fd37654fa145d0411d52c200e7f8984ab | https://github.com/bykof/billomapy/blob/a28ba69fd37654fa145d0411d52c200e7f8984ab/billomapy/billomapy.py#L2744-L2757 | train |
bykof/billomapy | billomapy/billomapy.py | Billomapy.get_tags_of_credit_note_per_page | def get_tags_of_credit_note_per_page(self, credit_note_id, per_page=1000, page=1):
"""
Get tags of credit note per page
:param credit_note_id: the credit note id
:param per_page: How many objects per page. Default: 1000
:param page: Which page. Default: 1
:return: list
"""
return self._get_resource_per_page(
resource=CREDIT_NOTE_TAGS,
per_page=per_page,
page=page,
params={'credit_note_id': credit_note_id},
) | python | def get_tags_of_credit_note_per_page(self, credit_note_id, per_page=1000, page=1):
"""
Get tags of credit note per page
:param credit_note_id: the credit note id
:param per_page: How many objects per page. Default: 1000
:param page: Which page. Default: 1
:return: list
"""
return self._get_resource_per_page(
resource=CREDIT_NOTE_TAGS,
per_page=per_page,
page=page,
params={'credit_note_id': credit_note_id},
) | [
"def",
"get_tags_of_credit_note_per_page",
"(",
"self",
",",
"credit_note_id",
",",
"per_page",
"=",
"1000",
",",
"page",
"=",
"1",
")",
":",
"return",
"self",
".",
"_get_resource_per_page",
"(",
"resource",
"=",
"CREDIT_NOTE_TAGS",
",",
"per_page",
"=",
"per_page",
",",
"page",
"=",
"page",
",",
"params",
"=",
"{",
"'credit_note_id'",
":",
"credit_note_id",
"}",
",",
")"
]
| Get tags of credit note per page
:param credit_note_id: the credit note id
:param per_page: How many objects per page. Default: 1000
:param page: Which page. Default: 1
:return: list | [
"Get",
"tags",
"of",
"credit",
"note",
"per",
"page"
]
| a28ba69fd37654fa145d0411d52c200e7f8984ab | https://github.com/bykof/billomapy/blob/a28ba69fd37654fa145d0411d52c200e7f8984ab/billomapy/billomapy.py#L2792-L2806 | train |
bykof/billomapy | billomapy/billomapy.py | Billomapy.get_confirmations_per_page | def get_confirmations_per_page(self, per_page=1000, page=1, params=None):
"""
Get confirmations per page
:param per_page: How many objects per page. Default: 1000
:param page: Which page. Default: 1
:param params: Search parameters. Default: {}
:return: list
"""
return self._get_resource_per_page(resource=CONFIRMATIONS, per_page=per_page, page=page, params=params) | python | def get_confirmations_per_page(self, per_page=1000, page=1, params=None):
"""
Get confirmations per page
:param per_page: How many objects per page. Default: 1000
:param page: Which page. Default: 1
:param params: Search parameters. Default: {}
:return: list
"""
return self._get_resource_per_page(resource=CONFIRMATIONS, per_page=per_page, page=page, params=params) | [
"def",
"get_confirmations_per_page",
"(",
"self",
",",
"per_page",
"=",
"1000",
",",
"page",
"=",
"1",
",",
"params",
"=",
"None",
")",
":",
"return",
"self",
".",
"_get_resource_per_page",
"(",
"resource",
"=",
"CONFIRMATIONS",
",",
"per_page",
"=",
"per_page",
",",
"page",
"=",
"page",
",",
"params",
"=",
"params",
")"
]
| Get confirmations per page
:param per_page: How many objects per page. Default: 1000
:param page: Which page. Default: 1
:param params: Search parameters. Default: {}
:return: list | [
"Get",
"confirmations",
"per",
"page"
]
| a28ba69fd37654fa145d0411d52c200e7f8984ab | https://github.com/bykof/billomapy/blob/a28ba69fd37654fa145d0411d52c200e7f8984ab/billomapy/billomapy.py#L2849-L2858 | train |
bykof/billomapy | billomapy/billomapy.py | Billomapy.get_all_confirmations | def get_all_confirmations(self, params=None):
"""
Get all confirmations
This will iterate over all pages until it gets all elements.
So if the rate limit exceeded it will throw an Exception and you will get nothing
:param params: search params
:return: list
"""
if not params:
params = {}
return self._iterate_through_pages(
self.get_confirmations_per_page,
resource=CONFIRMATIONS,
**{'params': params}
) | python | def get_all_confirmations(self, params=None):
"""
Get all confirmations
This will iterate over all pages until it gets all elements.
So if the rate limit exceeded it will throw an Exception and you will get nothing
:param params: search params
:return: list
"""
if not params:
params = {}
return self._iterate_through_pages(
self.get_confirmations_per_page,
resource=CONFIRMATIONS,
**{'params': params}
) | [
"def",
"get_all_confirmations",
"(",
"self",
",",
"params",
"=",
"None",
")",
":",
"if",
"not",
"params",
":",
"params",
"=",
"{",
"}",
"return",
"self",
".",
"_iterate_through_pages",
"(",
"self",
".",
"get_confirmations_per_page",
",",
"resource",
"=",
"CONFIRMATIONS",
",",
"*",
"*",
"{",
"'params'",
":",
"params",
"}",
")"
]
| Get all confirmations
This will iterate over all pages until it gets all elements.
So if the rate limit exceeded it will throw an Exception and you will get nothing
:param params: search params
:return: list | [
"Get",
"all",
"confirmations",
"This",
"will",
"iterate",
"over",
"all",
"pages",
"until",
"it",
"gets",
"all",
"elements",
".",
"So",
"if",
"the",
"rate",
"limit",
"exceeded",
"it",
"will",
"throw",
"an",
"Exception",
"and",
"you",
"will",
"get",
"nothing"
]
| a28ba69fd37654fa145d0411d52c200e7f8984ab | https://github.com/bykof/billomapy/blob/a28ba69fd37654fa145d0411d52c200e7f8984ab/billomapy/billomapy.py#L2860-L2875 | train |
bykof/billomapy | billomapy/billomapy.py | Billomapy.update_confirmation | def update_confirmation(self, confirmation_id, confirmation_dict):
"""
Updates a confirmation
:param confirmation_id: the confirmation id
:param confirmation_dict: dict
:return: dict
"""
return self._create_put_request(
resource=CONFIRMATIONS,
billomat_id=confirmation_id,
send_data=confirmation_dict
) | python | def update_confirmation(self, confirmation_id, confirmation_dict):
"""
Updates a confirmation
:param confirmation_id: the confirmation id
:param confirmation_dict: dict
:return: dict
"""
return self._create_put_request(
resource=CONFIRMATIONS,
billomat_id=confirmation_id,
send_data=confirmation_dict
) | [
"def",
"update_confirmation",
"(",
"self",
",",
"confirmation_id",
",",
"confirmation_dict",
")",
":",
"return",
"self",
".",
"_create_put_request",
"(",
"resource",
"=",
"CONFIRMATIONS",
",",
"billomat_id",
"=",
"confirmation_id",
",",
"send_data",
"=",
"confirmation_dict",
")"
]
| Updates a confirmation
:param confirmation_id: the confirmation id
:param confirmation_dict: dict
:return: dict | [
"Updates",
"a",
"confirmation"
]
| a28ba69fd37654fa145d0411d52c200e7f8984ab | https://github.com/bykof/billomapy/blob/a28ba69fd37654fa145d0411d52c200e7f8984ab/billomapy/billomapy.py#L2895-L2907 | train |
bykof/billomapy | billomapy/billomapy.py | Billomapy.complete_confirmation | def complete_confirmation(self, confirmation_id, complete_dict):
"""
Completes an confirmation
:param complete_dict: the complete dict with the template id
:param confirmation_id: the confirmation id
:return: Response
"""
return self._create_put_request(
resource=CONFIRMATIONS,
billomat_id=confirmation_id,
command=COMPLETE,
send_data=complete_dict
) | python | def complete_confirmation(self, confirmation_id, complete_dict):
"""
Completes an confirmation
:param complete_dict: the complete dict with the template id
:param confirmation_id: the confirmation id
:return: Response
"""
return self._create_put_request(
resource=CONFIRMATIONS,
billomat_id=confirmation_id,
command=COMPLETE,
send_data=complete_dict
) | [
"def",
"complete_confirmation",
"(",
"self",
",",
"confirmation_id",
",",
"complete_dict",
")",
":",
"return",
"self",
".",
"_create_put_request",
"(",
"resource",
"=",
"CONFIRMATIONS",
",",
"billomat_id",
"=",
"confirmation_id",
",",
"command",
"=",
"COMPLETE",
",",
"send_data",
"=",
"complete_dict",
")"
]
| Completes an confirmation
:param complete_dict: the complete dict with the template id
:param confirmation_id: the confirmation id
:return: Response | [
"Completes",
"an",
"confirmation"
]
| a28ba69fd37654fa145d0411d52c200e7f8984ab | https://github.com/bykof/billomapy/blob/a28ba69fd37654fa145d0411d52c200e7f8984ab/billomapy/billomapy.py#L2918-L2931 | train |
bykof/billomapy | billomapy/billomapy.py | Billomapy.confirmation_pdf | def confirmation_pdf(self, confirmation_id):
"""
Opens a pdf of a confirmation
:param confirmation_id: the confirmation id
:return: dict
"""
return self._create_get_request(resource=CONFIRMATIONS, billomat_id=confirmation_id, command=PDF) | python | def confirmation_pdf(self, confirmation_id):
"""
Opens a pdf of a confirmation
:param confirmation_id: the confirmation id
:return: dict
"""
return self._create_get_request(resource=CONFIRMATIONS, billomat_id=confirmation_id, command=PDF) | [
"def",
"confirmation_pdf",
"(",
"self",
",",
"confirmation_id",
")",
":",
"return",
"self",
".",
"_create_get_request",
"(",
"resource",
"=",
"CONFIRMATIONS",
",",
"billomat_id",
"=",
"confirmation_id",
",",
"command",
"=",
"PDF",
")"
]
| Opens a pdf of a confirmation
:param confirmation_id: the confirmation id
:return: dict | [
"Opens",
"a",
"pdf",
"of",
"a",
"confirmation"
]
| a28ba69fd37654fa145d0411d52c200e7f8984ab | https://github.com/bykof/billomapy/blob/a28ba69fd37654fa145d0411d52c200e7f8984ab/billomapy/billomapy.py#L2933-L2940 | train |
bykof/billomapy | billomapy/billomapy.py | Billomapy.cancel_confirmation | def cancel_confirmation(self, confirmation_id):
"""
Cancelles an confirmation
:param confirmation_id: the confirmation id
:return Response
"""
return self._create_put_request(
resource=CONFIRMATIONS,
billomat_id=confirmation_id,
command=CANCEL,
) | python | def cancel_confirmation(self, confirmation_id):
"""
Cancelles an confirmation
:param confirmation_id: the confirmation id
:return Response
"""
return self._create_put_request(
resource=CONFIRMATIONS,
billomat_id=confirmation_id,
command=CANCEL,
) | [
"def",
"cancel_confirmation",
"(",
"self",
",",
"confirmation_id",
")",
":",
"return",
"self",
".",
"_create_put_request",
"(",
"resource",
"=",
"CONFIRMATIONS",
",",
"billomat_id",
"=",
"confirmation_id",
",",
"command",
"=",
"CANCEL",
",",
")"
]
| Cancelles an confirmation
:param confirmation_id: the confirmation id
:return Response | [
"Cancelles",
"an",
"confirmation"
]
| a28ba69fd37654fa145d0411d52c200e7f8984ab | https://github.com/bykof/billomapy/blob/a28ba69fd37654fa145d0411d52c200e7f8984ab/billomapy/billomapy.py#L2959-L2970 | train |
bykof/billomapy | billomapy/billomapy.py | Billomapy.uncancel_confirmation | def uncancel_confirmation(self, confirmation_id):
"""
Uncancelles an confirmation
:param confirmation_id: the confirmation id
"""
return self._create_put_request(
resource=CONFIRMATIONS,
billomat_id=confirmation_id,
command=UNCANCEL,
) | python | def uncancel_confirmation(self, confirmation_id):
"""
Uncancelles an confirmation
:param confirmation_id: the confirmation id
"""
return self._create_put_request(
resource=CONFIRMATIONS,
billomat_id=confirmation_id,
command=UNCANCEL,
) | [
"def",
"uncancel_confirmation",
"(",
"self",
",",
"confirmation_id",
")",
":",
"return",
"self",
".",
"_create_put_request",
"(",
"resource",
"=",
"CONFIRMATIONS",
",",
"billomat_id",
"=",
"confirmation_id",
",",
"command",
"=",
"UNCANCEL",
",",
")"
]
| Uncancelles an confirmation
:param confirmation_id: the confirmation id | [
"Uncancelles",
"an",
"confirmation"
]
| a28ba69fd37654fa145d0411d52c200e7f8984ab | https://github.com/bykof/billomapy/blob/a28ba69fd37654fa145d0411d52c200e7f8984ab/billomapy/billomapy.py#L2972-L2982 | train |
bykof/billomapy | billomapy/billomapy.py | Billomapy.mark_confirmation_as_clear | def mark_confirmation_as_clear(self, confirmation_id):
"""
Mark confirmation as clear
:param confirmation_id: the confirmation id
:return Response
"""
return self._create_put_request(
resource=CONFIRMATIONS,
billomat_id=confirmation_id,
command=CLEAR,
) | python | def mark_confirmation_as_clear(self, confirmation_id):
"""
Mark confirmation as clear
:param confirmation_id: the confirmation id
:return Response
"""
return self._create_put_request(
resource=CONFIRMATIONS,
billomat_id=confirmation_id,
command=CLEAR,
) | [
"def",
"mark_confirmation_as_clear",
"(",
"self",
",",
"confirmation_id",
")",
":",
"return",
"self",
".",
"_create_put_request",
"(",
"resource",
"=",
"CONFIRMATIONS",
",",
"billomat_id",
"=",
"confirmation_id",
",",
"command",
"=",
"CLEAR",
",",
")"
]
| Mark confirmation as clear
:param confirmation_id: the confirmation id
:return Response | [
"Mark",
"confirmation",
"as",
"clear"
]
| a28ba69fd37654fa145d0411d52c200e7f8984ab | https://github.com/bykof/billomapy/blob/a28ba69fd37654fa145d0411d52c200e7f8984ab/billomapy/billomapy.py#L2984-L2995 | train |
bykof/billomapy | billomapy/billomapy.py | Billomapy.mark_confirmation_as_unclear | def mark_confirmation_as_unclear(self, confirmation_id):
"""
Mark confirmation as unclear
:param confirmation_id: the confirmation id
:return Response
"""
return self._create_put_request(
resource=CONFIRMATIONS,
billomat_id=confirmation_id,
command=UNCLEAR,
) | python | def mark_confirmation_as_unclear(self, confirmation_id):
"""
Mark confirmation as unclear
:param confirmation_id: the confirmation id
:return Response
"""
return self._create_put_request(
resource=CONFIRMATIONS,
billomat_id=confirmation_id,
command=UNCLEAR,
) | [
"def",
"mark_confirmation_as_unclear",
"(",
"self",
",",
"confirmation_id",
")",
":",
"return",
"self",
".",
"_create_put_request",
"(",
"resource",
"=",
"CONFIRMATIONS",
",",
"billomat_id",
"=",
"confirmation_id",
",",
"command",
"=",
"UNCLEAR",
",",
")"
]
| Mark confirmation as unclear
:param confirmation_id: the confirmation id
:return Response | [
"Mark",
"confirmation",
"as",
"unclear"
]
| a28ba69fd37654fa145d0411d52c200e7f8984ab | https://github.com/bykof/billomapy/blob/a28ba69fd37654fa145d0411d52c200e7f8984ab/billomapy/billomapy.py#L2997-L3008 | train |
bykof/billomapy | billomapy/billomapy.py | Billomapy.get_items_of_confirmation_per_page | def get_items_of_confirmation_per_page(self, confirmation_id, per_page=1000, page=1):
"""
Get items of confirmation per page
:param confirmation_id: the confirmation id
:param per_page: How many objects per page. Default: 1000
:param page: Which page. Default: 1
:return: list
"""
return self._get_resource_per_page(
resource=CONFIRMATION_ITEMS,
per_page=per_page,
page=page,
params={'confirmation_id': confirmation_id},
) | python | def get_items_of_confirmation_per_page(self, confirmation_id, per_page=1000, page=1):
"""
Get items of confirmation per page
:param confirmation_id: the confirmation id
:param per_page: How many objects per page. Default: 1000
:param page: Which page. Default: 1
:return: list
"""
return self._get_resource_per_page(
resource=CONFIRMATION_ITEMS,
per_page=per_page,
page=page,
params={'confirmation_id': confirmation_id},
) | [
"def",
"get_items_of_confirmation_per_page",
"(",
"self",
",",
"confirmation_id",
",",
"per_page",
"=",
"1000",
",",
"page",
"=",
"1",
")",
":",
"return",
"self",
".",
"_get_resource_per_page",
"(",
"resource",
"=",
"CONFIRMATION_ITEMS",
",",
"per_page",
"=",
"per_page",
",",
"page",
"=",
"page",
",",
"params",
"=",
"{",
"'confirmation_id'",
":",
"confirmation_id",
"}",
",",
")"
]
| Get items of confirmation per page
:param confirmation_id: the confirmation id
:param per_page: How many objects per page. Default: 1000
:param page: Which page. Default: 1
:return: list | [
"Get",
"items",
"of",
"confirmation",
"per",
"page"
]
| a28ba69fd37654fa145d0411d52c200e7f8984ab | https://github.com/bykof/billomapy/blob/a28ba69fd37654fa145d0411d52c200e7f8984ab/billomapy/billomapy.py#L3017-L3031 | train |
bykof/billomapy | billomapy/billomapy.py | Billomapy.get_all_items_of_confirmation | def get_all_items_of_confirmation(self, confirmation_id):
"""
Get all items of confirmation
This will iterate over all pages until it gets all elements.
So if the rate limit exceeded it will throw an Exception and you will get nothing
:param confirmation_id: the confirmation id
:return: list
"""
return self._iterate_through_pages(
get_function=self.get_items_of_confirmation_per_page,
resource=CONFIRMATION_ITEMS,
**{'confirmation_id': confirmation_id}
) | python | def get_all_items_of_confirmation(self, confirmation_id):
"""
Get all items of confirmation
This will iterate over all pages until it gets all elements.
So if the rate limit exceeded it will throw an Exception and you will get nothing
:param confirmation_id: the confirmation id
:return: list
"""
return self._iterate_through_pages(
get_function=self.get_items_of_confirmation_per_page,
resource=CONFIRMATION_ITEMS,
**{'confirmation_id': confirmation_id}
) | [
"def",
"get_all_items_of_confirmation",
"(",
"self",
",",
"confirmation_id",
")",
":",
"return",
"self",
".",
"_iterate_through_pages",
"(",
"get_function",
"=",
"self",
".",
"get_items_of_confirmation_per_page",
",",
"resource",
"=",
"CONFIRMATION_ITEMS",
",",
"*",
"*",
"{",
"'confirmation_id'",
":",
"confirmation_id",
"}",
")"
]
| Get all items of confirmation
This will iterate over all pages until it gets all elements.
So if the rate limit exceeded it will throw an Exception and you will get nothing
:param confirmation_id: the confirmation id
:return: list | [
"Get",
"all",
"items",
"of",
"confirmation",
"This",
"will",
"iterate",
"over",
"all",
"pages",
"until",
"it",
"gets",
"all",
"elements",
".",
"So",
"if",
"the",
"rate",
"limit",
"exceeded",
"it",
"will",
"throw",
"an",
"Exception",
"and",
"you",
"will",
"get",
"nothing"
]
| a28ba69fd37654fa145d0411d52c200e7f8984ab | https://github.com/bykof/billomapy/blob/a28ba69fd37654fa145d0411d52c200e7f8984ab/billomapy/billomapy.py#L3033-L3046 | train |
bykof/billomapy | billomapy/billomapy.py | Billomapy.update_confirmation_item | def update_confirmation_item(self, confirmation_item_id, confirmation_item_dict):
"""
Updates a confirmation item
:param confirmation_item_id: the confirmation item id
:param confirmation_item_dict: dict
:return: dict
"""
return self._create_put_request(
resource=CONFIRMATION_ITEMS,
billomat_id=confirmation_item_id,
send_data=confirmation_item_dict
) | python | def update_confirmation_item(self, confirmation_item_id, confirmation_item_dict):
"""
Updates a confirmation item
:param confirmation_item_id: the confirmation item id
:param confirmation_item_dict: dict
:return: dict
"""
return self._create_put_request(
resource=CONFIRMATION_ITEMS,
billomat_id=confirmation_item_id,
send_data=confirmation_item_dict
) | [
"def",
"update_confirmation_item",
"(",
"self",
",",
"confirmation_item_id",
",",
"confirmation_item_dict",
")",
":",
"return",
"self",
".",
"_create_put_request",
"(",
"resource",
"=",
"CONFIRMATION_ITEMS",
",",
"billomat_id",
"=",
"confirmation_item_id",
",",
"send_data",
"=",
"confirmation_item_dict",
")"
]
| Updates a confirmation item
:param confirmation_item_id: the confirmation item id
:param confirmation_item_dict: dict
:return: dict | [
"Updates",
"a",
"confirmation",
"item"
]
| a28ba69fd37654fa145d0411d52c200e7f8984ab | https://github.com/bykof/billomapy/blob/a28ba69fd37654fa145d0411d52c200e7f8984ab/billomapy/billomapy.py#L3066-L3078 | train |
bykof/billomapy | billomapy/billomapy.py | Billomapy.get_comments_of_confirmation_per_page | def get_comments_of_confirmation_per_page(self, confirmation_id, per_page=1000, page=1):
"""
Get comments of confirmation per page
:param confirmation_id: the confirmation id
:param per_page: How many objects per page. Default: 1000
:param page: Which page. Default: 1
:return: list
"""
return self._get_resource_per_page(
resource=CONFIRMATION_COMMENTS,
per_page=per_page,
page=page,
params={'confirmation_id': confirmation_id},
) | python | def get_comments_of_confirmation_per_page(self, confirmation_id, per_page=1000, page=1):
"""
Get comments of confirmation per page
:param confirmation_id: the confirmation id
:param per_page: How many objects per page. Default: 1000
:param page: Which page. Default: 1
:return: list
"""
return self._get_resource_per_page(
resource=CONFIRMATION_COMMENTS,
per_page=per_page,
page=page,
params={'confirmation_id': confirmation_id},
) | [
"def",
"get_comments_of_confirmation_per_page",
"(",
"self",
",",
"confirmation_id",
",",
"per_page",
"=",
"1000",
",",
"page",
"=",
"1",
")",
":",
"return",
"self",
".",
"_get_resource_per_page",
"(",
"resource",
"=",
"CONFIRMATION_COMMENTS",
",",
"per_page",
"=",
"per_page",
",",
"page",
"=",
"page",
",",
"params",
"=",
"{",
"'confirmation_id'",
":",
"confirmation_id",
"}",
",",
")"
]
| Get comments of confirmation per page
:param confirmation_id: the confirmation id
:param per_page: How many objects per page. Default: 1000
:param page: Which page. Default: 1
:return: list | [
"Get",
"comments",
"of",
"confirmation",
"per",
"page"
]
| a28ba69fd37654fa145d0411d52c200e7f8984ab | https://github.com/bykof/billomapy/blob/a28ba69fd37654fa145d0411d52c200e7f8984ab/billomapy/billomapy.py#L3096-L3110 | train |
bykof/billomapy | billomapy/billomapy.py | Billomapy.get_all_comments_of_confirmation | def get_all_comments_of_confirmation(self, confirmation_id):
"""
Get all comments of confirmation
This will iterate over all pages until it gets all elements.
So if the rate limit exceeded it will throw an Exception and you will get nothing
:param confirmation_id: the confirmation id
:return: list
"""
return self._iterate_through_pages(
get_function=self.get_comments_of_confirmation_per_page,
resource=CONFIRMATION_COMMENTS,
**{'confirmation_id': confirmation_id}
) | python | def get_all_comments_of_confirmation(self, confirmation_id):
"""
Get all comments of confirmation
This will iterate over all pages until it gets all elements.
So if the rate limit exceeded it will throw an Exception and you will get nothing
:param confirmation_id: the confirmation id
:return: list
"""
return self._iterate_through_pages(
get_function=self.get_comments_of_confirmation_per_page,
resource=CONFIRMATION_COMMENTS,
**{'confirmation_id': confirmation_id}
) | [
"def",
"get_all_comments_of_confirmation",
"(",
"self",
",",
"confirmation_id",
")",
":",
"return",
"self",
".",
"_iterate_through_pages",
"(",
"get_function",
"=",
"self",
".",
"get_comments_of_confirmation_per_page",
",",
"resource",
"=",
"CONFIRMATION_COMMENTS",
",",
"*",
"*",
"{",
"'confirmation_id'",
":",
"confirmation_id",
"}",
")"
]
| Get all comments of confirmation
This will iterate over all pages until it gets all elements.
So if the rate limit exceeded it will throw an Exception and you will get nothing
:param confirmation_id: the confirmation id
:return: list | [
"Get",
"all",
"comments",
"of",
"confirmation",
"This",
"will",
"iterate",
"over",
"all",
"pages",
"until",
"it",
"gets",
"all",
"elements",
".",
"So",
"if",
"the",
"rate",
"limit",
"exceeded",
"it",
"will",
"throw",
"an",
"Exception",
"and",
"you",
"will",
"get",
"nothing"
]
| a28ba69fd37654fa145d0411d52c200e7f8984ab | https://github.com/bykof/billomapy/blob/a28ba69fd37654fa145d0411d52c200e7f8984ab/billomapy/billomapy.py#L3112-L3125 | train |
bykof/billomapy | billomapy/billomapy.py | Billomapy.update_confirmation_comment | def update_confirmation_comment(self, confirmation_comment_id, confirmation_comment_dict):
"""
Updates a confirmation comment
:param confirmation_comment_id: the confirmation comment id
:param confirmation_comment_dict: dict
:return: dict
"""
return self._create_put_request(
resource=CONFIRMATION_COMMENTS,
billomat_id=confirmation_comment_id,
send_data=confirmation_comment_dict
) | python | def update_confirmation_comment(self, confirmation_comment_id, confirmation_comment_dict):
"""
Updates a confirmation comment
:param confirmation_comment_id: the confirmation comment id
:param confirmation_comment_dict: dict
:return: dict
"""
return self._create_put_request(
resource=CONFIRMATION_COMMENTS,
billomat_id=confirmation_comment_id,
send_data=confirmation_comment_dict
) | [
"def",
"update_confirmation_comment",
"(",
"self",
",",
"confirmation_comment_id",
",",
"confirmation_comment_dict",
")",
":",
"return",
"self",
".",
"_create_put_request",
"(",
"resource",
"=",
"CONFIRMATION_COMMENTS",
",",
"billomat_id",
"=",
"confirmation_comment_id",
",",
"send_data",
"=",
"confirmation_comment_dict",
")"
]
| Updates a confirmation comment
:param confirmation_comment_id: the confirmation comment id
:param confirmation_comment_dict: dict
:return: dict | [
"Updates",
"a",
"confirmation",
"comment"
]
| a28ba69fd37654fa145d0411d52c200e7f8984ab | https://github.com/bykof/billomapy/blob/a28ba69fd37654fa145d0411d52c200e7f8984ab/billomapy/billomapy.py#L3145-L3157 | train |
bykof/billomapy | billomapy/billomapy.py | Billomapy.get_tags_of_confirmation_per_page | def get_tags_of_confirmation_per_page(self, confirmation_id, per_page=1000, page=1):
"""
Get tags of confirmation per page
:param confirmation_id: the confirmation id
:param per_page: How many objects per page. Default: 1000
:param page: Which page. Default: 1
:return: list
"""
return self._get_resource_per_page(
resource=CONFIRMATION_TAGS,
per_page=per_page,
page=page,
params={'confirmation_id': confirmation_id},
) | python | def get_tags_of_confirmation_per_page(self, confirmation_id, per_page=1000, page=1):
"""
Get tags of confirmation per page
:param confirmation_id: the confirmation id
:param per_page: How many objects per page. Default: 1000
:param page: Which page. Default: 1
:return: list
"""
return self._get_resource_per_page(
resource=CONFIRMATION_TAGS,
per_page=per_page,
page=page,
params={'confirmation_id': confirmation_id},
) | [
"def",
"get_tags_of_confirmation_per_page",
"(",
"self",
",",
"confirmation_id",
",",
"per_page",
"=",
"1000",
",",
"page",
"=",
"1",
")",
":",
"return",
"self",
".",
"_get_resource_per_page",
"(",
"resource",
"=",
"CONFIRMATION_TAGS",
",",
"per_page",
"=",
"per_page",
",",
"page",
"=",
"page",
",",
"params",
"=",
"{",
"'confirmation_id'",
":",
"confirmation_id",
"}",
",",
")"
]
| Get tags of confirmation per page
:param confirmation_id: the confirmation id
:param per_page: How many objects per page. Default: 1000
:param page: Which page. Default: 1
:return: list | [
"Get",
"tags",
"of",
"confirmation",
"per",
"page"
]
| a28ba69fd37654fa145d0411d52c200e7f8984ab | https://github.com/bykof/billomapy/blob/a28ba69fd37654fa145d0411d52c200e7f8984ab/billomapy/billomapy.py#L3174-L3188 | train |
bykof/billomapy | billomapy/billomapy.py | Billomapy.get_all_tags_of_confirmation | def get_all_tags_of_confirmation(self, confirmation_id):
"""
Get all tags of confirmation
This will iterate over all pages until it gets all elements.
So if the rate limit exceeded it will throw an Exception and you will get nothing
:param confirmation_id: the confirmation id
:return: list
"""
return self._iterate_through_pages(
get_function=self.get_tags_of_confirmation_per_page,
resource=CONFIRMATION_TAGS,
**{'confirmation_id': confirmation_id}
) | python | def get_all_tags_of_confirmation(self, confirmation_id):
"""
Get all tags of confirmation
This will iterate over all pages until it gets all elements.
So if the rate limit exceeded it will throw an Exception and you will get nothing
:param confirmation_id: the confirmation id
:return: list
"""
return self._iterate_through_pages(
get_function=self.get_tags_of_confirmation_per_page,
resource=CONFIRMATION_TAGS,
**{'confirmation_id': confirmation_id}
) | [
"def",
"get_all_tags_of_confirmation",
"(",
"self",
",",
"confirmation_id",
")",
":",
"return",
"self",
".",
"_iterate_through_pages",
"(",
"get_function",
"=",
"self",
".",
"get_tags_of_confirmation_per_page",
",",
"resource",
"=",
"CONFIRMATION_TAGS",
",",
"*",
"*",
"{",
"'confirmation_id'",
":",
"confirmation_id",
"}",
")"
]
| Get all tags of confirmation
This will iterate over all pages until it gets all elements.
So if the rate limit exceeded it will throw an Exception and you will get nothing
:param confirmation_id: the confirmation id
:return: list | [
"Get",
"all",
"tags",
"of",
"confirmation",
"This",
"will",
"iterate",
"over",
"all",
"pages",
"until",
"it",
"gets",
"all",
"elements",
".",
"So",
"if",
"the",
"rate",
"limit",
"exceeded",
"it",
"will",
"throw",
"an",
"Exception",
"and",
"you",
"will",
"get",
"nothing"
]
| a28ba69fd37654fa145d0411d52c200e7f8984ab | https://github.com/bykof/billomapy/blob/a28ba69fd37654fa145d0411d52c200e7f8984ab/billomapy/billomapy.py#L3190-L3203 | train |
bykof/billomapy | billomapy/billomapy.py | Billomapy.get_reminders_per_page | def get_reminders_per_page(self, per_page=1000, page=1, params=None):
"""
Get reminders per page
:param per_page: How many objects per page. Default: 1000
:param page: Which page. Default: 1
:param params: Search parameters. Default: {}
:return: list
"""
return self._get_resource_per_page(resource=REMINDERS, per_page=per_page, page=page, params=params) | python | def get_reminders_per_page(self, per_page=1000, page=1, params=None):
"""
Get reminders per page
:param per_page: How many objects per page. Default: 1000
:param page: Which page. Default: 1
:param params: Search parameters. Default: {}
:return: list
"""
return self._get_resource_per_page(resource=REMINDERS, per_page=per_page, page=page, params=params) | [
"def",
"get_reminders_per_page",
"(",
"self",
",",
"per_page",
"=",
"1000",
",",
"page",
"=",
"1",
",",
"params",
"=",
"None",
")",
":",
"return",
"self",
".",
"_get_resource_per_page",
"(",
"resource",
"=",
"REMINDERS",
",",
"per_page",
"=",
"per_page",
",",
"page",
"=",
"page",
",",
"params",
"=",
"params",
")"
]
| Get reminders per page
:param per_page: How many objects per page. Default: 1000
:param page: Which page. Default: 1
:param params: Search parameters. Default: {}
:return: list | [
"Get",
"reminders",
"per",
"page"
]
| a28ba69fd37654fa145d0411d52c200e7f8984ab | https://github.com/bykof/billomapy/blob/a28ba69fd37654fa145d0411d52c200e7f8984ab/billomapy/billomapy.py#L3239-L3248 | train |
bykof/billomapy | billomapy/billomapy.py | Billomapy.get_all_reminders | def get_all_reminders(self, params=None):
"""
Get all reminders
This will iterate over all pages until it gets all elements.
So if the rate limit exceeded it will throw an Exception and you will get nothing
:param params: search params
:return: list
"""
if not params:
params = {}
return self._iterate_through_pages(self.get_reminders_per_page, resource=REMINDERS, **{'params': params}) | python | def get_all_reminders(self, params=None):
"""
Get all reminders
This will iterate over all pages until it gets all elements.
So if the rate limit exceeded it will throw an Exception and you will get nothing
:param params: search params
:return: list
"""
if not params:
params = {}
return self._iterate_through_pages(self.get_reminders_per_page, resource=REMINDERS, **{'params': params}) | [
"def",
"get_all_reminders",
"(",
"self",
",",
"params",
"=",
"None",
")",
":",
"if",
"not",
"params",
":",
"params",
"=",
"{",
"}",
"return",
"self",
".",
"_iterate_through_pages",
"(",
"self",
".",
"get_reminders_per_page",
",",
"resource",
"=",
"REMINDERS",
",",
"*",
"*",
"{",
"'params'",
":",
"params",
"}",
")"
]
| Get all reminders
This will iterate over all pages until it gets all elements.
So if the rate limit exceeded it will throw an Exception and you will get nothing
:param params: search params
:return: list | [
"Get",
"all",
"reminders",
"This",
"will",
"iterate",
"over",
"all",
"pages",
"until",
"it",
"gets",
"all",
"elements",
".",
"So",
"if",
"the",
"rate",
"limit",
"exceeded",
"it",
"will",
"throw",
"an",
"Exception",
"and",
"you",
"will",
"get",
"nothing"
]
| a28ba69fd37654fa145d0411d52c200e7f8984ab | https://github.com/bykof/billomapy/blob/a28ba69fd37654fa145d0411d52c200e7f8984ab/billomapy/billomapy.py#L3250-L3261 | train |
bykof/billomapy | billomapy/billomapy.py | Billomapy.update_reminder | def update_reminder(self, reminder_id, reminder_dict):
"""
Updates a reminder
:param reminder_id: the reminder id
:param reminder_dict: dict
:return: dict
"""
return self._create_put_request(
resource=REMINDERS,
billomat_id=reminder_id,
send_data=reminder_dict
) | python | def update_reminder(self, reminder_id, reminder_dict):
"""
Updates a reminder
:param reminder_id: the reminder id
:param reminder_dict: dict
:return: dict
"""
return self._create_put_request(
resource=REMINDERS,
billomat_id=reminder_id,
send_data=reminder_dict
) | [
"def",
"update_reminder",
"(",
"self",
",",
"reminder_id",
",",
"reminder_dict",
")",
":",
"return",
"self",
".",
"_create_put_request",
"(",
"resource",
"=",
"REMINDERS",
",",
"billomat_id",
"=",
"reminder_id",
",",
"send_data",
"=",
"reminder_dict",
")"
]
| Updates a reminder
:param reminder_id: the reminder id
:param reminder_dict: dict
:return: dict | [
"Updates",
"a",
"reminder"
]
| a28ba69fd37654fa145d0411d52c200e7f8984ab | https://github.com/bykof/billomapy/blob/a28ba69fd37654fa145d0411d52c200e7f8984ab/billomapy/billomapy.py#L3281-L3293 | train |
bykof/billomapy | billomapy/billomapy.py | Billomapy.complete_reminder | def complete_reminder(self, reminder_id, complete_dict):
"""
Completes a reminder
:param complete_dict: the complete dict with the template id
:param reminder_id: the reminder id
:return: Response
"""
return self._create_put_request(
resource=REMINDERS,
billomat_id=reminder_id,
command=COMPLETE,
send_data=complete_dict
) | python | def complete_reminder(self, reminder_id, complete_dict):
"""
Completes a reminder
:param complete_dict: the complete dict with the template id
:param reminder_id: the reminder id
:return: Response
"""
return self._create_put_request(
resource=REMINDERS,
billomat_id=reminder_id,
command=COMPLETE,
send_data=complete_dict
) | [
"def",
"complete_reminder",
"(",
"self",
",",
"reminder_id",
",",
"complete_dict",
")",
":",
"return",
"self",
".",
"_create_put_request",
"(",
"resource",
"=",
"REMINDERS",
",",
"billomat_id",
"=",
"reminder_id",
",",
"command",
"=",
"COMPLETE",
",",
"send_data",
"=",
"complete_dict",
")"
]
| Completes a reminder
:param complete_dict: the complete dict with the template id
:param reminder_id: the reminder id
:return: Response | [
"Completes",
"a",
"reminder"
]
| a28ba69fd37654fa145d0411d52c200e7f8984ab | https://github.com/bykof/billomapy/blob/a28ba69fd37654fa145d0411d52c200e7f8984ab/billomapy/billomapy.py#L3304-L3317 | train |
bykof/billomapy | billomapy/billomapy.py | Billomapy.reminder_pdf | def reminder_pdf(self, reminder_id):
"""
Opens a pdf of a reminder
:param reminder_id: the reminder id
:return: dict
"""
return self._create_get_request(resource=REMINDERS, billomat_id=reminder_id, command=PDF) | python | def reminder_pdf(self, reminder_id):
"""
Opens a pdf of a reminder
:param reminder_id: the reminder id
:return: dict
"""
return self._create_get_request(resource=REMINDERS, billomat_id=reminder_id, command=PDF) | [
"def",
"reminder_pdf",
"(",
"self",
",",
"reminder_id",
")",
":",
"return",
"self",
".",
"_create_get_request",
"(",
"resource",
"=",
"REMINDERS",
",",
"billomat_id",
"=",
"reminder_id",
",",
"command",
"=",
"PDF",
")"
]
| Opens a pdf of a reminder
:param reminder_id: the reminder id
:return: dict | [
"Opens",
"a",
"pdf",
"of",
"a",
"reminder"
]
| a28ba69fd37654fa145d0411d52c200e7f8984ab | https://github.com/bykof/billomapy/blob/a28ba69fd37654fa145d0411d52c200e7f8984ab/billomapy/billomapy.py#L3319-L3326 | train |
bykof/billomapy | billomapy/billomapy.py | Billomapy.get_items_of_reminder_per_page | def get_items_of_reminder_per_page(self, reminder_id, per_page=1000, page=1):
"""
Get items of reminder per page
:param reminder_id: the reminder id
:param per_page: How many objects per page. Default: 1000
:param page: Which page. Default: 1
:return: list
"""
return self._get_resource_per_page(
resource=REMINDER_ITEMS,
per_page=per_page,
page=page,
params={'reminder_id': reminder_id},
) | python | def get_items_of_reminder_per_page(self, reminder_id, per_page=1000, page=1):
"""
Get items of reminder per page
:param reminder_id: the reminder id
:param per_page: How many objects per page. Default: 1000
:param page: Which page. Default: 1
:return: list
"""
return self._get_resource_per_page(
resource=REMINDER_ITEMS,
per_page=per_page,
page=page,
params={'reminder_id': reminder_id},
) | [
"def",
"get_items_of_reminder_per_page",
"(",
"self",
",",
"reminder_id",
",",
"per_page",
"=",
"1000",
",",
"page",
"=",
"1",
")",
":",
"return",
"self",
".",
"_get_resource_per_page",
"(",
"resource",
"=",
"REMINDER_ITEMS",
",",
"per_page",
"=",
"per_page",
",",
"page",
"=",
"page",
",",
"params",
"=",
"{",
"'reminder_id'",
":",
"reminder_id",
"}",
",",
")"
]
| Get items of reminder per page
:param reminder_id: the reminder id
:param per_page: How many objects per page. Default: 1000
:param page: Which page. Default: 1
:return: list | [
"Get",
"items",
"of",
"reminder",
"per",
"page"
]
| a28ba69fd37654fa145d0411d52c200e7f8984ab | https://github.com/bykof/billomapy/blob/a28ba69fd37654fa145d0411d52c200e7f8984ab/billomapy/billomapy.py#L3352-L3366 | train |
bykof/billomapy | billomapy/billomapy.py | Billomapy.get_all_items_of_reminder | def get_all_items_of_reminder(self, reminder_id):
"""
Get all items of reminder
This will iterate over all pages until it gets all elements.
So if the rate limit exceeded it will throw an Exception and you will get nothing
:param reminder_id: the reminder id
:return: list
"""
return self._iterate_through_pages(
get_function=self.get_items_of_reminder_per_page,
resource=REMINDER_ITEMS,
**{'reminder_id': reminder_id}
) | python | def get_all_items_of_reminder(self, reminder_id):
"""
Get all items of reminder
This will iterate over all pages until it gets all elements.
So if the rate limit exceeded it will throw an Exception and you will get nothing
:param reminder_id: the reminder id
:return: list
"""
return self._iterate_through_pages(
get_function=self.get_items_of_reminder_per_page,
resource=REMINDER_ITEMS,
**{'reminder_id': reminder_id}
) | [
"def",
"get_all_items_of_reminder",
"(",
"self",
",",
"reminder_id",
")",
":",
"return",
"self",
".",
"_iterate_through_pages",
"(",
"get_function",
"=",
"self",
".",
"get_items_of_reminder_per_page",
",",
"resource",
"=",
"REMINDER_ITEMS",
",",
"*",
"*",
"{",
"'reminder_id'",
":",
"reminder_id",
"}",
")"
]
| Get all items of reminder
This will iterate over all pages until it gets all elements.
So if the rate limit exceeded it will throw an Exception and you will get nothing
:param reminder_id: the reminder id
:return: list | [
"Get",
"all",
"items",
"of",
"reminder",
"This",
"will",
"iterate",
"over",
"all",
"pages",
"until",
"it",
"gets",
"all",
"elements",
".",
"So",
"if",
"the",
"rate",
"limit",
"exceeded",
"it",
"will",
"throw",
"an",
"Exception",
"and",
"you",
"will",
"get",
"nothing"
]
| a28ba69fd37654fa145d0411d52c200e7f8984ab | https://github.com/bykof/billomapy/blob/a28ba69fd37654fa145d0411d52c200e7f8984ab/billomapy/billomapy.py#L3368-L3381 | train |
bykof/billomapy | billomapy/billomapy.py | Billomapy.update_reminder_item | def update_reminder_item(self, reminder_item_id, reminder_item_dict):
"""
Updates a reminder item
:param reminder_item_id: the reminder item id
:param reminder_item_dict: dict
:return: dict
"""
return self._create_put_request(
resource=REMINDER_ITEMS,
billomat_id=reminder_item_id,
send_data=reminder_item_dict
) | python | def update_reminder_item(self, reminder_item_id, reminder_item_dict):
"""
Updates a reminder item
:param reminder_item_id: the reminder item id
:param reminder_item_dict: dict
:return: dict
"""
return self._create_put_request(
resource=REMINDER_ITEMS,
billomat_id=reminder_item_id,
send_data=reminder_item_dict
) | [
"def",
"update_reminder_item",
"(",
"self",
",",
"reminder_item_id",
",",
"reminder_item_dict",
")",
":",
"return",
"self",
".",
"_create_put_request",
"(",
"resource",
"=",
"REMINDER_ITEMS",
",",
"billomat_id",
"=",
"reminder_item_id",
",",
"send_data",
"=",
"reminder_item_dict",
")"
]
| Updates a reminder item
:param reminder_item_id: the reminder item id
:param reminder_item_dict: dict
:return: dict | [
"Updates",
"a",
"reminder",
"item"
]
| a28ba69fd37654fa145d0411d52c200e7f8984ab | https://github.com/bykof/billomapy/blob/a28ba69fd37654fa145d0411d52c200e7f8984ab/billomapy/billomapy.py#L3401-L3413 | train |
bykof/billomapy | billomapy/billomapy.py | Billomapy.get_tags_of_reminder_per_page | def get_tags_of_reminder_per_page(self, reminder_id, per_page=1000, page=1):
"""
Get tags of reminder per page
:param reminder_id: the reminder id
:param per_page: How many objects per page. Default: 1000
:param page: Which page. Default: 1
:return: list
"""
return self._get_resource_per_page(
resource=REMINDER_TAGS,
per_page=per_page,
page=page,
params={'reminder_id': reminder_id},
) | python | def get_tags_of_reminder_per_page(self, reminder_id, per_page=1000, page=1):
"""
Get tags of reminder per page
:param reminder_id: the reminder id
:param per_page: How many objects per page. Default: 1000
:param page: Which page. Default: 1
:return: list
"""
return self._get_resource_per_page(
resource=REMINDER_TAGS,
per_page=per_page,
page=page,
params={'reminder_id': reminder_id},
) | [
"def",
"get_tags_of_reminder_per_page",
"(",
"self",
",",
"reminder_id",
",",
"per_page",
"=",
"1000",
",",
"page",
"=",
"1",
")",
":",
"return",
"self",
".",
"_get_resource_per_page",
"(",
"resource",
"=",
"REMINDER_TAGS",
",",
"per_page",
"=",
"per_page",
",",
"page",
"=",
"page",
",",
"params",
"=",
"{",
"'reminder_id'",
":",
"reminder_id",
"}",
",",
")"
]
| Get tags of reminder per page
:param reminder_id: the reminder id
:param per_page: How many objects per page. Default: 1000
:param page: Which page. Default: 1
:return: list | [
"Get",
"tags",
"of",
"reminder",
"per",
"page"
]
| a28ba69fd37654fa145d0411d52c200e7f8984ab | https://github.com/bykof/billomapy/blob/a28ba69fd37654fa145d0411d52c200e7f8984ab/billomapy/billomapy.py#L3430-L3444 | train |
bykof/billomapy | billomapy/billomapy.py | Billomapy.get_all_tags_of_reminder | def get_all_tags_of_reminder(self, reminder_id):
"""
Get all tags of reminder
This will iterate over all pages until it gets all elements.
So if the rate limit exceeded it will throw an Exception and you will get nothing
:param reminder_id: the reminder id
:return: list
"""
return self._iterate_through_pages(
get_function=self.get_tags_of_reminder_per_page,
resource=REMINDER_TAGS,
**{'reminder_id': reminder_id}
) | python | def get_all_tags_of_reminder(self, reminder_id):
"""
Get all tags of reminder
This will iterate over all pages until it gets all elements.
So if the rate limit exceeded it will throw an Exception and you will get nothing
:param reminder_id: the reminder id
:return: list
"""
return self._iterate_through_pages(
get_function=self.get_tags_of_reminder_per_page,
resource=REMINDER_TAGS,
**{'reminder_id': reminder_id}
) | [
"def",
"get_all_tags_of_reminder",
"(",
"self",
",",
"reminder_id",
")",
":",
"return",
"self",
".",
"_iterate_through_pages",
"(",
"get_function",
"=",
"self",
".",
"get_tags_of_reminder_per_page",
",",
"resource",
"=",
"REMINDER_TAGS",
",",
"*",
"*",
"{",
"'reminder_id'",
":",
"reminder_id",
"}",
")"
]
| Get all tags of reminder
This will iterate over all pages until it gets all elements.
So if the rate limit exceeded it will throw an Exception and you will get nothing
:param reminder_id: the reminder id
:return: list | [
"Get",
"all",
"tags",
"of",
"reminder",
"This",
"will",
"iterate",
"over",
"all",
"pages",
"until",
"it",
"gets",
"all",
"elements",
".",
"So",
"if",
"the",
"rate",
"limit",
"exceeded",
"it",
"will",
"throw",
"an",
"Exception",
"and",
"you",
"will",
"get",
"nothing"
]
| a28ba69fd37654fa145d0411d52c200e7f8984ab | https://github.com/bykof/billomapy/blob/a28ba69fd37654fa145d0411d52c200e7f8984ab/billomapy/billomapy.py#L3446-L3459 | train |
bykof/billomapy | billomapy/billomapy.py | Billomapy.get_delivery_notes_per_page | def get_delivery_notes_per_page(self, per_page=1000, page=1, params=None):
"""
Get delivery notes per page
:param per_page: How many objects per page. Default: 1000
:param page: Which page. Default: 1
:param params: Search parameters. Default: {}
:return: list
"""
return self._get_resource_per_page(resource=DELIVERY_NOTES, per_page=per_page, page=page, params=params) | python | def get_delivery_notes_per_page(self, per_page=1000, page=1, params=None):
"""
Get delivery notes per page
:param per_page: How many objects per page. Default: 1000
:param page: Which page. Default: 1
:param params: Search parameters. Default: {}
:return: list
"""
return self._get_resource_per_page(resource=DELIVERY_NOTES, per_page=per_page, page=page, params=params) | [
"def",
"get_delivery_notes_per_page",
"(",
"self",
",",
"per_page",
"=",
"1000",
",",
"page",
"=",
"1",
",",
"params",
"=",
"None",
")",
":",
"return",
"self",
".",
"_get_resource_per_page",
"(",
"resource",
"=",
"DELIVERY_NOTES",
",",
"per_page",
"=",
"per_page",
",",
"page",
"=",
"page",
",",
"params",
"=",
"params",
")"
]
| Get delivery notes per page
:param per_page: How many objects per page. Default: 1000
:param page: Which page. Default: 1
:param params: Search parameters. Default: {}
:return: list | [
"Get",
"delivery",
"notes",
"per",
"page"
]
| a28ba69fd37654fa145d0411d52c200e7f8984ab | https://github.com/bykof/billomapy/blob/a28ba69fd37654fa145d0411d52c200e7f8984ab/billomapy/billomapy.py#L3495-L3504 | train |
bykof/billomapy | billomapy/billomapy.py | Billomapy.get_all_delivery_notes | def get_all_delivery_notes(self, params=None):
"""
Get all delivery notes
This will iterate over all pages until it gets all elements.
So if the rate limit exceeded it will throw an Exception and you will get nothing
:param params: search params
:return: list
"""
if not params:
params = {}
return self._iterate_through_pages(
self.get_delivery_notes_per_page,
resource=DELIVERY_NOTES,
**{'params': params}
) | python | def get_all_delivery_notes(self, params=None):
"""
Get all delivery notes
This will iterate over all pages until it gets all elements.
So if the rate limit exceeded it will throw an Exception and you will get nothing
:param params: search params
:return: list
"""
if not params:
params = {}
return self._iterate_through_pages(
self.get_delivery_notes_per_page,
resource=DELIVERY_NOTES,
**{'params': params}
) | [
"def",
"get_all_delivery_notes",
"(",
"self",
",",
"params",
"=",
"None",
")",
":",
"if",
"not",
"params",
":",
"params",
"=",
"{",
"}",
"return",
"self",
".",
"_iterate_through_pages",
"(",
"self",
".",
"get_delivery_notes_per_page",
",",
"resource",
"=",
"DELIVERY_NOTES",
",",
"*",
"*",
"{",
"'params'",
":",
"params",
"}",
")"
]
| Get all delivery notes
This will iterate over all pages until it gets all elements.
So if the rate limit exceeded it will throw an Exception and you will get nothing
:param params: search params
:return: list | [
"Get",
"all",
"delivery",
"notes",
"This",
"will",
"iterate",
"over",
"all",
"pages",
"until",
"it",
"gets",
"all",
"elements",
".",
"So",
"if",
"the",
"rate",
"limit",
"exceeded",
"it",
"will",
"throw",
"an",
"Exception",
"and",
"you",
"will",
"get",
"nothing"
]
| a28ba69fd37654fa145d0411d52c200e7f8984ab | https://github.com/bykof/billomapy/blob/a28ba69fd37654fa145d0411d52c200e7f8984ab/billomapy/billomapy.py#L3506-L3521 | train |
bykof/billomapy | billomapy/billomapy.py | Billomapy.update_delivery_note | def update_delivery_note(self, delivery_note_id, delivery_note_dict):
"""
Updates a delivery note
:param delivery_note_id: the delivery note id
:param delivery_note_dict: dict
:return: dict
"""
return self._create_put_request(
resource=DELIVERY_NOTES,
billomat_id=delivery_note_id,
send_data=delivery_note_dict
) | python | def update_delivery_note(self, delivery_note_id, delivery_note_dict):
"""
Updates a delivery note
:param delivery_note_id: the delivery note id
:param delivery_note_dict: dict
:return: dict
"""
return self._create_put_request(
resource=DELIVERY_NOTES,
billomat_id=delivery_note_id,
send_data=delivery_note_dict
) | [
"def",
"update_delivery_note",
"(",
"self",
",",
"delivery_note_id",
",",
"delivery_note_dict",
")",
":",
"return",
"self",
".",
"_create_put_request",
"(",
"resource",
"=",
"DELIVERY_NOTES",
",",
"billomat_id",
"=",
"delivery_note_id",
",",
"send_data",
"=",
"delivery_note_dict",
")"
]
| Updates a delivery note
:param delivery_note_id: the delivery note id
:param delivery_note_dict: dict
:return: dict | [
"Updates",
"a",
"delivery",
"note"
]
| a28ba69fd37654fa145d0411d52c200e7f8984ab | https://github.com/bykof/billomapy/blob/a28ba69fd37654fa145d0411d52c200e7f8984ab/billomapy/billomapy.py#L3541-L3553 | train |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.