mergepythonclient 2.1.1__py3-none-any.whl → 2.3.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- merge/__init__.py +40 -4
- merge/client.py +118 -18
- merge/core/__init__.py +75 -21
- merge/core/client_wrapper.py +2 -2
- merge/core/force_multipart.py +4 -2
- merge/core/http_response.py +1 -1
- merge/core/unchecked_base_model.py +3 -3
- merge/resources/__init__.py +33 -1
- merge/resources/accounting/__init__.py +1242 -607
- merge/resources/accounting/client.py +835 -165
- merge/resources/accounting/resources/__init__.py +208 -92
- merge/resources/accounting/resources/accounting_periods/client.py +6 -2
- merge/resources/accounting/resources/accounts/__init__.py +36 -6
- merge/resources/accounting/resources/accounts/client.py +6 -2
- merge/resources/accounting/resources/accounts/types/__init__.py +34 -4
- merge/resources/accounting/resources/async_passthrough/__init__.py +26 -1
- merge/resources/accounting/resources/async_passthrough/types/__init__.py +26 -1
- merge/resources/accounting/resources/attachments/client.py +6 -2
- merge/resources/accounting/resources/audit_trail/client.py +6 -2
- merge/resources/accounting/resources/balance_sheets/client.py +6 -2
- merge/resources/accounting/resources/bank_feed_accounts/client.py +6 -2
- merge/resources/accounting/resources/bank_feed_transactions/client.py +6 -2
- merge/resources/accounting/resources/cash_flow_statements/client.py +6 -2
- merge/resources/accounting/resources/company_info/__init__.py +29 -1
- merge/resources/accounting/resources/company_info/client.py +6 -2
- merge/resources/accounting/resources/company_info/types/__init__.py +30 -2
- merge/resources/accounting/resources/contacts/__init__.py +29 -1
- merge/resources/accounting/resources/contacts/client.py +195 -4
- merge/resources/accounting/resources/contacts/raw_client.py +203 -0
- merge/resources/accounting/resources/contacts/types/__init__.py +30 -2
- merge/resources/accounting/resources/credit_notes/__init__.py +40 -8
- merge/resources/accounting/resources/credit_notes/client.py +6 -2
- merge/resources/accounting/resources/credit_notes/types/__init__.py +38 -6
- merge/resources/accounting/resources/employees/client.py +6 -2
- merge/resources/accounting/resources/expense_reports/__init__.py +34 -5
- merge/resources/accounting/resources/expense_reports/client.py +20 -6
- merge/resources/accounting/resources/expense_reports/types/__init__.py +32 -3
- merge/resources/accounting/resources/expenses/__init__.py +29 -1
- merge/resources/accounting/resources/expenses/client.py +18 -6
- merge/resources/accounting/resources/expenses/types/__init__.py +30 -2
- merge/resources/accounting/resources/general_ledger_transactions/__init__.py +29 -1
- merge/resources/accounting/resources/general_ledger_transactions/client.py +6 -2
- merge/resources/accounting/resources/general_ledger_transactions/types/__init__.py +30 -2
- merge/resources/accounting/resources/income_statements/client.py +6 -2
- merge/resources/accounting/resources/invoices/__init__.py +36 -6
- merge/resources/accounting/resources/invoices/client.py +18 -6
- merge/resources/accounting/resources/invoices/types/__init__.py +34 -4
- merge/resources/accounting/resources/issues/__init__.py +26 -1
- merge/resources/accounting/resources/issues/client.py +6 -2
- merge/resources/accounting/resources/issues/types/__init__.py +26 -1
- merge/resources/accounting/resources/items/__init__.py +26 -1
- merge/resources/accounting/resources/items/client.py +6 -2
- merge/resources/accounting/resources/items/types/__init__.py +30 -2
- merge/resources/accounting/resources/journal_entries/__init__.py +29 -1
- merge/resources/accounting/resources/journal_entries/client.py +18 -6
- merge/resources/accounting/resources/journal_entries/types/__init__.py +30 -2
- merge/resources/accounting/resources/link_token/__init__.py +26 -1
- merge/resources/accounting/resources/link_token/types/__init__.py +26 -1
- merge/resources/accounting/resources/linked_accounts/__init__.py +26 -1
- merge/resources/accounting/resources/linked_accounts/client.py +6 -2
- merge/resources/accounting/resources/linked_accounts/types/__init__.py +28 -1
- merge/resources/accounting/resources/payment_methods/client.py +6 -2
- merge/resources/accounting/resources/payment_terms/client.py +6 -2
- merge/resources/accounting/resources/payments/__init__.py +29 -1
- merge/resources/accounting/resources/payments/client.py +18 -6
- merge/resources/accounting/resources/payments/types/__init__.py +30 -2
- merge/resources/accounting/resources/projects/__init__.py +29 -1
- merge/resources/accounting/resources/projects/client.py +6 -2
- merge/resources/accounting/resources/projects/types/__init__.py +30 -2
- merge/resources/accounting/resources/purchase_orders/__init__.py +29 -1
- merge/resources/accounting/resources/purchase_orders/client.py +18 -6
- merge/resources/accounting/resources/purchase_orders/types/__init__.py +30 -2
- merge/resources/accounting/resources/sync_status/client.py +6 -2
- merge/resources/accounting/resources/tax_rates/client.py +6 -2
- merge/resources/accounting/resources/tracking_categories/client.py +6 -2
- merge/resources/accounting/resources/transactions/__init__.py +29 -1
- merge/resources/accounting/resources/transactions/client.py +6 -2
- merge/resources/accounting/resources/transactions/types/__init__.py +30 -2
- merge/resources/accounting/resources/transactions/types/transactions_list_request_expand.py +141 -0
- merge/resources/accounting/resources/transactions/types/transactions_retrieve_request_expand.py +141 -0
- merge/resources/accounting/resources/vendor_credits/__init__.py +29 -1
- merge/resources/accounting/resources/vendor_credits/client.py +6 -2
- merge/resources/accounting/resources/vendor_credits/types/__init__.py +30 -2
- merge/resources/accounting/types/__init__.py +1070 -519
- merge/resources/accounting/types/patched_contact_request.py +91 -0
- merge/resources/accounting/types/patched_contact_request_addresses_item.py +7 -0
- merge/resources/accounting/types/remote_field_class.py +1 -0
- merge/resources/ats/__init__.py +586 -282
- merge/resources/ats/client.py +590 -120
- merge/resources/ats/resources/__init__.py +150 -63
- merge/resources/ats/resources/activities/__init__.py +36 -6
- merge/resources/ats/resources/activities/client.py +6 -2
- merge/resources/ats/resources/activities/types/__init__.py +34 -4
- merge/resources/ats/resources/applications/__init__.py +29 -1
- merge/resources/ats/resources/applications/client.py +6 -2
- merge/resources/ats/resources/applications/types/__init__.py +30 -2
- merge/resources/ats/resources/async_passthrough/__init__.py +26 -1
- merge/resources/ats/resources/async_passthrough/types/__init__.py +26 -1
- merge/resources/ats/resources/attachments/client.py +6 -2
- merge/resources/ats/resources/audit_trail/client.py +6 -2
- merge/resources/ats/resources/candidates/__init__.py +30 -1
- merge/resources/ats/resources/candidates/client.py +6 -2
- merge/resources/ats/resources/candidates/types/__init__.py +32 -3
- merge/resources/ats/resources/departments/client.py +6 -2
- merge/resources/ats/resources/eeocs/__init__.py +36 -6
- merge/resources/ats/resources/eeocs/client.py +6 -2
- merge/resources/ats/resources/eeocs/types/__init__.py +34 -4
- merge/resources/ats/resources/interviews/__init__.py +29 -1
- merge/resources/ats/resources/interviews/client.py +6 -2
- merge/resources/ats/resources/interviews/types/__init__.py +30 -2
- merge/resources/ats/resources/issues/__init__.py +26 -1
- merge/resources/ats/resources/issues/client.py +6 -2
- merge/resources/ats/resources/issues/types/__init__.py +26 -1
- merge/resources/ats/resources/job_interview_stages/client.py +6 -2
- merge/resources/ats/resources/job_postings/__init__.py +26 -1
- merge/resources/ats/resources/job_postings/client.py +6 -2
- merge/resources/ats/resources/job_postings/types/__init__.py +26 -1
- merge/resources/ats/resources/jobs/__init__.py +36 -6
- merge/resources/ats/resources/jobs/client.py +8 -2
- merge/resources/ats/resources/jobs/types/__init__.py +34 -4
- merge/resources/ats/resources/link_token/__init__.py +26 -1
- merge/resources/ats/resources/link_token/types/__init__.py +26 -1
- merge/resources/ats/resources/linked_accounts/__init__.py +26 -1
- merge/resources/ats/resources/linked_accounts/client.py +6 -2
- merge/resources/ats/resources/linked_accounts/types/__init__.py +28 -1
- merge/resources/ats/resources/offers/__init__.py +26 -1
- merge/resources/ats/resources/offers/client.py +6 -2
- merge/resources/ats/resources/offers/types/__init__.py +30 -2
- merge/resources/ats/resources/offices/client.py +6 -2
- merge/resources/ats/resources/reject_reasons/client.py +6 -2
- merge/resources/ats/resources/scorecards/__init__.py +29 -1
- merge/resources/ats/resources/scorecards/client.py +6 -2
- merge/resources/ats/resources/scorecards/types/__init__.py +30 -2
- merge/resources/ats/resources/sync_status/client.py +6 -2
- merge/resources/ats/resources/tags/client.py +6 -2
- merge/resources/ats/resources/users/client.py +6 -2
- merge/resources/ats/types/__init__.py +462 -219
- merge/resources/ats/types/event_type_enum.py +4 -0
- merge/resources/crm/__init__.py +566 -272
- merge/resources/crm/client.py +556 -114
- merge/resources/crm/resources/__init__.py +121 -47
- merge/resources/crm/resources/accounts/client.py +12 -4
- merge/resources/crm/resources/association_types/client.py +2 -0
- merge/resources/crm/resources/associations/client.py +2 -0
- merge/resources/crm/resources/async_passthrough/__init__.py +26 -1
- merge/resources/crm/resources/async_passthrough/types/__init__.py +26 -1
- merge/resources/crm/resources/audit_trail/client.py +6 -2
- merge/resources/crm/resources/contacts/__init__.py +29 -1
- merge/resources/crm/resources/contacts/client.py +12 -4
- merge/resources/crm/resources/contacts/types/__init__.py +30 -2
- merge/resources/crm/resources/custom_object_classes/client.py +6 -2
- merge/resources/crm/resources/custom_objects/client.py +8 -2
- merge/resources/crm/resources/engagement_types/client.py +12 -4
- merge/resources/crm/resources/engagements/__init__.py +29 -1
- merge/resources/crm/resources/engagements/client.py +12 -4
- merge/resources/crm/resources/engagements/types/__init__.py +30 -2
- merge/resources/crm/resources/issues/__init__.py +26 -1
- merge/resources/crm/resources/issues/client.py +6 -2
- merge/resources/crm/resources/issues/types/__init__.py +26 -1
- merge/resources/crm/resources/leads/__init__.py +26 -1
- merge/resources/crm/resources/leads/client.py +12 -4
- merge/resources/crm/resources/leads/types/__init__.py +30 -2
- merge/resources/crm/resources/link_token/__init__.py +26 -1
- merge/resources/crm/resources/link_token/types/__init__.py +26 -1
- merge/resources/crm/resources/linked_accounts/__init__.py +26 -1
- merge/resources/crm/resources/linked_accounts/client.py +6 -2
- merge/resources/crm/resources/linked_accounts/types/__init__.py +28 -1
- merge/resources/crm/resources/notes/__init__.py +26 -1
- merge/resources/crm/resources/notes/client.py +12 -4
- merge/resources/crm/resources/notes/types/__init__.py +30 -2
- merge/resources/crm/resources/opportunities/__init__.py +34 -1
- merge/resources/crm/resources/opportunities/client.py +12 -4
- merge/resources/crm/resources/opportunities/types/__init__.py +32 -3
- merge/resources/crm/resources/stages/client.py +12 -4
- merge/resources/crm/resources/sync_status/client.py +6 -2
- merge/resources/crm/resources/tasks/__init__.py +26 -1
- merge/resources/crm/resources/tasks/client.py +12 -4
- merge/resources/crm/resources/tasks/types/__init__.py +30 -2
- merge/resources/crm/resources/users/client.py +12 -4
- merge/resources/crm/types/__init__.py +470 -224
- merge/resources/crm/types/remote_field_class.py +1 -0
- merge/resources/filestorage/__init__.py +322 -150
- merge/resources/filestorage/client.py +405 -87
- merge/resources/filestorage/resources/__init__.py +91 -34
- merge/resources/filestorage/resources/async_passthrough/__init__.py +26 -1
- merge/resources/filestorage/resources/async_passthrough/types/__init__.py +26 -1
- merge/resources/filestorage/resources/audit_trail/client.py +6 -2
- merge/resources/filestorage/resources/drives/client.py +6 -2
- merge/resources/filestorage/resources/files/__init__.py +36 -6
- merge/resources/filestorage/resources/files/client.py +42 -4
- merge/resources/filestorage/resources/files/raw_client.py +38 -0
- merge/resources/filestorage/resources/files/types/__init__.py +34 -4
- merge/resources/filestorage/resources/folders/__init__.py +29 -1
- merge/resources/filestorage/resources/folders/client.py +6 -2
- merge/resources/filestorage/resources/folders/types/__init__.py +30 -2
- merge/resources/filestorage/resources/groups/client.py +6 -2
- merge/resources/filestorage/resources/issues/__init__.py +26 -1
- merge/resources/filestorage/resources/issues/client.py +6 -2
- merge/resources/filestorage/resources/issues/types/__init__.py +26 -1
- merge/resources/filestorage/resources/linked_accounts/__init__.py +26 -1
- merge/resources/filestorage/resources/linked_accounts/client.py +6 -2
- merge/resources/filestorage/resources/linked_accounts/types/__init__.py +28 -1
- merge/resources/filestorage/resources/sync_status/client.py +6 -2
- merge/resources/filestorage/resources/users/client.py +6 -2
- merge/resources/filestorage/types/__init__.py +258 -117
- merge/resources/hris/__init__.py +576 -277
- merge/resources/hris/client.py +590 -120
- merge/resources/hris/resources/__init__.py +188 -86
- merge/resources/hris/resources/async_passthrough/__init__.py +26 -1
- merge/resources/hris/resources/async_passthrough/types/__init__.py +26 -1
- merge/resources/hris/resources/audit_trail/client.py +6 -2
- merge/resources/hris/resources/bank_info/__init__.py +29 -1
- merge/resources/hris/resources/bank_info/client.py +6 -2
- merge/resources/hris/resources/bank_info/types/__init__.py +30 -2
- merge/resources/hris/resources/benefits/client.py +6 -2
- merge/resources/hris/resources/companies/client.py +6 -2
- merge/resources/hris/resources/dependents/client.py +6 -2
- merge/resources/hris/resources/employee_payroll_runs/__init__.py +29 -1
- merge/resources/hris/resources/employee_payroll_runs/client.py +6 -2
- merge/resources/hris/resources/employee_payroll_runs/types/__init__.py +30 -2
- merge/resources/hris/resources/employees/__init__.py +44 -10
- merge/resources/hris/resources/employees/client.py +6 -2
- merge/resources/hris/resources/employees/types/__init__.py +42 -8
- merge/resources/hris/resources/employer_benefits/client.py +6 -2
- merge/resources/hris/resources/employments/__init__.py +42 -9
- merge/resources/hris/resources/employments/client.py +6 -2
- merge/resources/hris/resources/employments/types/__init__.py +40 -7
- merge/resources/hris/resources/groups/client.py +6 -2
- merge/resources/hris/resources/issues/__init__.py +26 -1
- merge/resources/hris/resources/issues/client.py +6 -2
- merge/resources/hris/resources/issues/types/__init__.py +26 -1
- merge/resources/hris/resources/link_token/__init__.py +26 -1
- merge/resources/hris/resources/link_token/types/__init__.py +26 -1
- merge/resources/hris/resources/linked_accounts/__init__.py +26 -1
- merge/resources/hris/resources/linked_accounts/client.py +6 -2
- merge/resources/hris/resources/linked_accounts/types/__init__.py +28 -1
- merge/resources/hris/resources/locations/__init__.py +38 -7
- merge/resources/hris/resources/locations/client.py +6 -2
- merge/resources/hris/resources/locations/types/__init__.py +36 -5
- merge/resources/hris/resources/pay_groups/client.py +6 -2
- merge/resources/hris/resources/payroll_runs/__init__.py +38 -7
- merge/resources/hris/resources/payroll_runs/client.py +6 -2
- merge/resources/hris/resources/payroll_runs/types/__init__.py +36 -5
- merge/resources/hris/resources/sync_status/client.py +6 -2
- merge/resources/hris/resources/teams/client.py +6 -2
- merge/resources/hris/resources/time_off/__init__.py +44 -10
- merge/resources/hris/resources/time_off/client.py +6 -2
- merge/resources/hris/resources/time_off/types/__init__.py +42 -8
- merge/resources/hris/resources/time_off_balances/__init__.py +26 -1
- merge/resources/hris/resources/time_off_balances/client.py +6 -2
- merge/resources/hris/resources/time_off_balances/types/__init__.py +28 -1
- merge/resources/hris/resources/timesheet_entries/__init__.py +26 -1
- merge/resources/hris/resources/timesheet_entries/client.py +6 -2
- merge/resources/hris/resources/timesheet_entries/types/__init__.py +28 -1
- merge/resources/hris/types/__init__.py +422 -199
- merge/resources/hris/types/benefit.py +4 -4
- merge/resources/ticketing/__init__.py +464 -221
- merge/resources/ticketing/client.py +507 -105
- merge/resources/ticketing/resources/__init__.py +120 -48
- merge/resources/ticketing/resources/accounts/client.py +6 -2
- merge/resources/ticketing/resources/async_passthrough/__init__.py +26 -1
- merge/resources/ticketing/resources/async_passthrough/types/__init__.py +26 -1
- merge/resources/ticketing/resources/attachments/client.py +6 -2
- merge/resources/ticketing/resources/audit_trail/client.py +6 -2
- merge/resources/ticketing/resources/collections/__init__.py +26 -1
- merge/resources/ticketing/resources/collections/client.py +8 -2
- merge/resources/ticketing/resources/collections/types/__init__.py +28 -1
- merge/resources/ticketing/resources/comments/__init__.py +29 -1
- merge/resources/ticketing/resources/comments/client.py +6 -2
- merge/resources/ticketing/resources/comments/types/__init__.py +30 -2
- merge/resources/ticketing/resources/contacts/client.py +6 -2
- merge/resources/ticketing/resources/issues/__init__.py +26 -1
- merge/resources/ticketing/resources/issues/client.py +6 -2
- merge/resources/ticketing/resources/issues/types/__init__.py +26 -1
- merge/resources/ticketing/resources/link_token/__init__.py +26 -1
- merge/resources/ticketing/resources/link_token/types/__init__.py +26 -1
- merge/resources/ticketing/resources/linked_accounts/__init__.py +26 -1
- merge/resources/ticketing/resources/linked_accounts/client.py +6 -2
- merge/resources/ticketing/resources/linked_accounts/types/__init__.py +28 -1
- merge/resources/ticketing/resources/projects/__init__.py +26 -1
- merge/resources/ticketing/resources/projects/client.py +8 -2
- merge/resources/ticketing/resources/projects/types/__init__.py +26 -1
- merge/resources/ticketing/resources/roles/client.py +6 -2
- merge/resources/ticketing/resources/sync_status/client.py +6 -2
- merge/resources/ticketing/resources/tags/client.py +6 -2
- merge/resources/ticketing/resources/teams/client.py +6 -2
- merge/resources/ticketing/resources/tickets/__init__.py +44 -10
- merge/resources/ticketing/resources/tickets/client.py +24 -4
- merge/resources/ticketing/resources/tickets/raw_client.py +10 -0
- merge/resources/ticketing/resources/tickets/types/__init__.py +42 -8
- merge/resources/ticketing/resources/users/__init__.py +26 -1
- merge/resources/ticketing/resources/users/client.py +6 -2
- merge/resources/ticketing/resources/users/types/__init__.py +30 -2
- merge/resources/ticketing/types/__init__.py +370 -173
- merge/resources/ticketing/types/patched_ticket_request.py +5 -5
- merge/resources/ticketing/types/remote_field_class.py +1 -0
- {mergepythonclient-2.1.1.dist-info → mergepythonclient-2.3.0.dist-info}/METADATA +5 -2
- {mergepythonclient-2.1.1.dist-info → mergepythonclient-2.3.0.dist-info}/RECORD +300 -298
- {mergepythonclient-2.1.1.dist-info → mergepythonclient-2.3.0.dist-info}/LICENSE.md +0 -0
- {mergepythonclient-2.1.1.dist-info → mergepythonclient-2.3.0.dist-info}/WHEEL +0 -0
|
@@ -2,10 +2,40 @@
|
|
|
2
2
|
|
|
3
3
|
# isort: skip_file
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
from
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
import typing
|
|
6
|
+
from importlib import import_module
|
|
7
|
+
|
|
8
|
+
if typing.TYPE_CHECKING:
|
|
9
|
+
from .invoices_list_request_expand import InvoicesListRequestExpand
|
|
10
|
+
from .invoices_list_request_status import InvoicesListRequestStatus
|
|
11
|
+
from .invoices_list_request_type import InvoicesListRequestType
|
|
12
|
+
from .invoices_retrieve_request_expand import InvoicesRetrieveRequestExpand
|
|
13
|
+
_dynamic_imports: typing.Dict[str, str] = {
|
|
14
|
+
"InvoicesListRequestExpand": ".invoices_list_request_expand",
|
|
15
|
+
"InvoicesListRequestStatus": ".invoices_list_request_status",
|
|
16
|
+
"InvoicesListRequestType": ".invoices_list_request_type",
|
|
17
|
+
"InvoicesRetrieveRequestExpand": ".invoices_retrieve_request_expand",
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
def __getattr__(attr_name: str) -> typing.Any:
|
|
22
|
+
module_name = _dynamic_imports.get(attr_name)
|
|
23
|
+
if module_name is None:
|
|
24
|
+
raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}")
|
|
25
|
+
try:
|
|
26
|
+
module = import_module(module_name, __package__)
|
|
27
|
+
result = getattr(module, attr_name)
|
|
28
|
+
return result
|
|
29
|
+
except ImportError as e:
|
|
30
|
+
raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e
|
|
31
|
+
except AttributeError as e:
|
|
32
|
+
raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
def __dir__():
|
|
36
|
+
lazy_attrs = list(_dynamic_imports.keys())
|
|
37
|
+
return sorted(lazy_attrs)
|
|
38
|
+
|
|
9
39
|
|
|
10
40
|
__all__ = [
|
|
11
41
|
"InvoicesListRequestExpand",
|
|
@@ -2,6 +2,31 @@
|
|
|
2
2
|
|
|
3
3
|
# isort: skip_file
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
import typing
|
|
6
|
+
from importlib import import_module
|
|
7
|
+
|
|
8
|
+
if typing.TYPE_CHECKING:
|
|
9
|
+
from .types import IssuesListRequestStatus
|
|
10
|
+
_dynamic_imports: typing.Dict[str, str] = {"IssuesListRequestStatus": ".types"}
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
def __getattr__(attr_name: str) -> typing.Any:
|
|
14
|
+
module_name = _dynamic_imports.get(attr_name)
|
|
15
|
+
if module_name is None:
|
|
16
|
+
raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}")
|
|
17
|
+
try:
|
|
18
|
+
module = import_module(module_name, __package__)
|
|
19
|
+
result = getattr(module, attr_name)
|
|
20
|
+
return result
|
|
21
|
+
except ImportError as e:
|
|
22
|
+
raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e
|
|
23
|
+
except AttributeError as e:
|
|
24
|
+
raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
def __dir__():
|
|
28
|
+
lazy_attrs = list(_dynamic_imports.keys())
|
|
29
|
+
return sorted(lazy_attrs)
|
|
30
|
+
|
|
6
31
|
|
|
7
32
|
__all__ = ["IssuesListRequestStatus"]
|
|
@@ -108,7 +108,9 @@ class IssuesClient:
|
|
|
108
108
|
account_token="YOUR_ACCOUNT_TOKEN",
|
|
109
109
|
api_key="YOUR_API_KEY",
|
|
110
110
|
)
|
|
111
|
-
client.accounting.issues.list(
|
|
111
|
+
client.accounting.issues.list(
|
|
112
|
+
cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw",
|
|
113
|
+
)
|
|
112
114
|
"""
|
|
113
115
|
_response = self._raw_client.list(
|
|
114
116
|
account_token=account_token,
|
|
@@ -263,7 +265,9 @@ class AsyncIssuesClient:
|
|
|
263
265
|
|
|
264
266
|
|
|
265
267
|
async def main() -> None:
|
|
266
|
-
await client.accounting.issues.list(
|
|
268
|
+
await client.accounting.issues.list(
|
|
269
|
+
cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw",
|
|
270
|
+
)
|
|
267
271
|
|
|
268
272
|
|
|
269
273
|
asyncio.run(main())
|
|
@@ -2,6 +2,31 @@
|
|
|
2
2
|
|
|
3
3
|
# isort: skip_file
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
import typing
|
|
6
|
+
from importlib import import_module
|
|
7
|
+
|
|
8
|
+
if typing.TYPE_CHECKING:
|
|
9
|
+
from .issues_list_request_status import IssuesListRequestStatus
|
|
10
|
+
_dynamic_imports: typing.Dict[str, str] = {"IssuesListRequestStatus": ".issues_list_request_status"}
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
def __getattr__(attr_name: str) -> typing.Any:
|
|
14
|
+
module_name = _dynamic_imports.get(attr_name)
|
|
15
|
+
if module_name is None:
|
|
16
|
+
raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}")
|
|
17
|
+
try:
|
|
18
|
+
module = import_module(module_name, __package__)
|
|
19
|
+
result = getattr(module, attr_name)
|
|
20
|
+
return result
|
|
21
|
+
except ImportError as e:
|
|
22
|
+
raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e
|
|
23
|
+
except AttributeError as e:
|
|
24
|
+
raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
def __dir__():
|
|
28
|
+
lazy_attrs = list(_dynamic_imports.keys())
|
|
29
|
+
return sorted(lazy_attrs)
|
|
30
|
+
|
|
6
31
|
|
|
7
32
|
__all__ = ["IssuesListRequestStatus"]
|
|
@@ -2,6 +2,31 @@
|
|
|
2
2
|
|
|
3
3
|
# isort: skip_file
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
import typing
|
|
6
|
+
from importlib import import_module
|
|
7
|
+
|
|
8
|
+
if typing.TYPE_CHECKING:
|
|
9
|
+
from .types import ItemsListRequestExpand, ItemsRetrieveRequestExpand
|
|
10
|
+
_dynamic_imports: typing.Dict[str, str] = {"ItemsListRequestExpand": ".types", "ItemsRetrieveRequestExpand": ".types"}
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
def __getattr__(attr_name: str) -> typing.Any:
|
|
14
|
+
module_name = _dynamic_imports.get(attr_name)
|
|
15
|
+
if module_name is None:
|
|
16
|
+
raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}")
|
|
17
|
+
try:
|
|
18
|
+
module = import_module(module_name, __package__)
|
|
19
|
+
result = getattr(module, attr_name)
|
|
20
|
+
return result
|
|
21
|
+
except ImportError as e:
|
|
22
|
+
raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e
|
|
23
|
+
except AttributeError as e:
|
|
24
|
+
raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
def __dir__():
|
|
28
|
+
lazy_attrs = list(_dynamic_imports.keys())
|
|
29
|
+
return sorted(lazy_attrs)
|
|
30
|
+
|
|
6
31
|
|
|
7
32
|
__all__ = ["ItemsListRequestExpand", "ItemsRetrieveRequestExpand"]
|
|
@@ -116,7 +116,9 @@ class ItemsClient:
|
|
|
116
116
|
account_token="YOUR_ACCOUNT_TOKEN",
|
|
117
117
|
api_key="YOUR_API_KEY",
|
|
118
118
|
)
|
|
119
|
-
client.accounting.items.list(
|
|
119
|
+
client.accounting.items.list(
|
|
120
|
+
cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw",
|
|
121
|
+
)
|
|
120
122
|
"""
|
|
121
123
|
_response = self._raw_client.list(
|
|
122
124
|
company_id=company_id,
|
|
@@ -460,7 +462,9 @@ class AsyncItemsClient:
|
|
|
460
462
|
|
|
461
463
|
|
|
462
464
|
async def main() -> None:
|
|
463
|
-
await client.accounting.items.list(
|
|
465
|
+
await client.accounting.items.list(
|
|
466
|
+
cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw",
|
|
467
|
+
)
|
|
464
468
|
|
|
465
469
|
|
|
466
470
|
asyncio.run(main())
|
|
@@ -2,7 +2,35 @@
|
|
|
2
2
|
|
|
3
3
|
# isort: skip_file
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
from
|
|
5
|
+
import typing
|
|
6
|
+
from importlib import import_module
|
|
7
|
+
|
|
8
|
+
if typing.TYPE_CHECKING:
|
|
9
|
+
from .items_list_request_expand import ItemsListRequestExpand
|
|
10
|
+
from .items_retrieve_request_expand import ItemsRetrieveRequestExpand
|
|
11
|
+
_dynamic_imports: typing.Dict[str, str] = {
|
|
12
|
+
"ItemsListRequestExpand": ".items_list_request_expand",
|
|
13
|
+
"ItemsRetrieveRequestExpand": ".items_retrieve_request_expand",
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
def __getattr__(attr_name: str) -> typing.Any:
|
|
18
|
+
module_name = _dynamic_imports.get(attr_name)
|
|
19
|
+
if module_name is None:
|
|
20
|
+
raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}")
|
|
21
|
+
try:
|
|
22
|
+
module = import_module(module_name, __package__)
|
|
23
|
+
result = getattr(module, attr_name)
|
|
24
|
+
return result
|
|
25
|
+
except ImportError as e:
|
|
26
|
+
raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e
|
|
27
|
+
except AttributeError as e:
|
|
28
|
+
raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
def __dir__():
|
|
32
|
+
lazy_attrs = list(_dynamic_imports.keys())
|
|
33
|
+
return sorted(lazy_attrs)
|
|
34
|
+
|
|
7
35
|
|
|
8
36
|
__all__ = ["ItemsListRequestExpand", "ItemsRetrieveRequestExpand"]
|
|
@@ -2,6 +2,34 @@
|
|
|
2
2
|
|
|
3
3
|
# isort: skip_file
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
import typing
|
|
6
|
+
from importlib import import_module
|
|
7
|
+
|
|
8
|
+
if typing.TYPE_CHECKING:
|
|
9
|
+
from .types import JournalEntriesListRequestExpand, JournalEntriesRetrieveRequestExpand
|
|
10
|
+
_dynamic_imports: typing.Dict[str, str] = {
|
|
11
|
+
"JournalEntriesListRequestExpand": ".types",
|
|
12
|
+
"JournalEntriesRetrieveRequestExpand": ".types",
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
def __getattr__(attr_name: str) -> typing.Any:
|
|
17
|
+
module_name = _dynamic_imports.get(attr_name)
|
|
18
|
+
if module_name is None:
|
|
19
|
+
raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}")
|
|
20
|
+
try:
|
|
21
|
+
module = import_module(module_name, __package__)
|
|
22
|
+
result = getattr(module, attr_name)
|
|
23
|
+
return result
|
|
24
|
+
except ImportError as e:
|
|
25
|
+
raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e
|
|
26
|
+
except AttributeError as e:
|
|
27
|
+
raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
def __dir__():
|
|
31
|
+
lazy_attrs = list(_dynamic_imports.keys())
|
|
32
|
+
return sorted(lazy_attrs)
|
|
33
|
+
|
|
6
34
|
|
|
7
35
|
__all__ = ["JournalEntriesListRequestExpand", "JournalEntriesRetrieveRequestExpand"]
|
|
@@ -120,7 +120,9 @@ class JournalEntriesClient:
|
|
|
120
120
|
account_token="YOUR_ACCOUNT_TOKEN",
|
|
121
121
|
api_key="YOUR_API_KEY",
|
|
122
122
|
)
|
|
123
|
-
client.accounting.journal_entries.list(
|
|
123
|
+
client.accounting.journal_entries.list(
|
|
124
|
+
cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw",
|
|
125
|
+
)
|
|
124
126
|
"""
|
|
125
127
|
_response = self._raw_client.list(
|
|
126
128
|
company_id=company_id,
|
|
@@ -302,7 +304,9 @@ class JournalEntriesClient:
|
|
|
302
304
|
account_token="YOUR_ACCOUNT_TOKEN",
|
|
303
305
|
api_key="YOUR_API_KEY",
|
|
304
306
|
)
|
|
305
|
-
client.accounting.journal_entries.lines_remote_field_classes_list(
|
|
307
|
+
client.accounting.journal_entries.lines_remote_field_classes_list(
|
|
308
|
+
cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw",
|
|
309
|
+
)
|
|
306
310
|
"""
|
|
307
311
|
_response = self._raw_client.lines_remote_field_classes_list(
|
|
308
312
|
cursor=cursor,
|
|
@@ -397,7 +401,9 @@ class JournalEntriesClient:
|
|
|
397
401
|
account_token="YOUR_ACCOUNT_TOKEN",
|
|
398
402
|
api_key="YOUR_API_KEY",
|
|
399
403
|
)
|
|
400
|
-
client.accounting.journal_entries.remote_field_classes_list(
|
|
404
|
+
client.accounting.journal_entries.remote_field_classes_list(
|
|
405
|
+
cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw",
|
|
406
|
+
)
|
|
401
407
|
"""
|
|
402
408
|
_response = self._raw_client.remote_field_classes_list(
|
|
403
409
|
cursor=cursor,
|
|
@@ -518,7 +524,9 @@ class AsyncJournalEntriesClient:
|
|
|
518
524
|
|
|
519
525
|
|
|
520
526
|
async def main() -> None:
|
|
521
|
-
await client.accounting.journal_entries.list(
|
|
527
|
+
await client.accounting.journal_entries.list(
|
|
528
|
+
cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw",
|
|
529
|
+
)
|
|
522
530
|
|
|
523
531
|
|
|
524
532
|
asyncio.run(main())
|
|
@@ -724,7 +732,9 @@ class AsyncJournalEntriesClient:
|
|
|
724
732
|
|
|
725
733
|
|
|
726
734
|
async def main() -> None:
|
|
727
|
-
await client.accounting.journal_entries.lines_remote_field_classes_list(
|
|
735
|
+
await client.accounting.journal_entries.lines_remote_field_classes_list(
|
|
736
|
+
cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw",
|
|
737
|
+
)
|
|
728
738
|
|
|
729
739
|
|
|
730
740
|
asyncio.run(main())
|
|
@@ -835,7 +845,9 @@ class AsyncJournalEntriesClient:
|
|
|
835
845
|
|
|
836
846
|
|
|
837
847
|
async def main() -> None:
|
|
838
|
-
await client.accounting.journal_entries.remote_field_classes_list(
|
|
848
|
+
await client.accounting.journal_entries.remote_field_classes_list(
|
|
849
|
+
cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw",
|
|
850
|
+
)
|
|
839
851
|
|
|
840
852
|
|
|
841
853
|
asyncio.run(main())
|
|
@@ -2,7 +2,35 @@
|
|
|
2
2
|
|
|
3
3
|
# isort: skip_file
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
from
|
|
5
|
+
import typing
|
|
6
|
+
from importlib import import_module
|
|
7
|
+
|
|
8
|
+
if typing.TYPE_CHECKING:
|
|
9
|
+
from .journal_entries_list_request_expand import JournalEntriesListRequestExpand
|
|
10
|
+
from .journal_entries_retrieve_request_expand import JournalEntriesRetrieveRequestExpand
|
|
11
|
+
_dynamic_imports: typing.Dict[str, str] = {
|
|
12
|
+
"JournalEntriesListRequestExpand": ".journal_entries_list_request_expand",
|
|
13
|
+
"JournalEntriesRetrieveRequestExpand": ".journal_entries_retrieve_request_expand",
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
def __getattr__(attr_name: str) -> typing.Any:
|
|
18
|
+
module_name = _dynamic_imports.get(attr_name)
|
|
19
|
+
if module_name is None:
|
|
20
|
+
raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}")
|
|
21
|
+
try:
|
|
22
|
+
module = import_module(module_name, __package__)
|
|
23
|
+
result = getattr(module, attr_name)
|
|
24
|
+
return result
|
|
25
|
+
except ImportError as e:
|
|
26
|
+
raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e
|
|
27
|
+
except AttributeError as e:
|
|
28
|
+
raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
def __dir__():
|
|
32
|
+
lazy_attrs = list(_dynamic_imports.keys())
|
|
33
|
+
return sorted(lazy_attrs)
|
|
34
|
+
|
|
7
35
|
|
|
8
36
|
__all__ = ["JournalEntriesListRequestExpand", "JournalEntriesRetrieveRequestExpand"]
|
|
@@ -2,6 +2,31 @@
|
|
|
2
2
|
|
|
3
3
|
# isort: skip_file
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
import typing
|
|
6
|
+
from importlib import import_module
|
|
7
|
+
|
|
8
|
+
if typing.TYPE_CHECKING:
|
|
9
|
+
from .types import EndUserDetailsRequestLanguage
|
|
10
|
+
_dynamic_imports: typing.Dict[str, str] = {"EndUserDetailsRequestLanguage": ".types"}
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
def __getattr__(attr_name: str) -> typing.Any:
|
|
14
|
+
module_name = _dynamic_imports.get(attr_name)
|
|
15
|
+
if module_name is None:
|
|
16
|
+
raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}")
|
|
17
|
+
try:
|
|
18
|
+
module = import_module(module_name, __package__)
|
|
19
|
+
result = getattr(module, attr_name)
|
|
20
|
+
return result
|
|
21
|
+
except ImportError as e:
|
|
22
|
+
raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e
|
|
23
|
+
except AttributeError as e:
|
|
24
|
+
raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
def __dir__():
|
|
28
|
+
lazy_attrs = list(_dynamic_imports.keys())
|
|
29
|
+
return sorted(lazy_attrs)
|
|
30
|
+
|
|
6
31
|
|
|
7
32
|
__all__ = ["EndUserDetailsRequestLanguage"]
|
|
@@ -2,6 +2,31 @@
|
|
|
2
2
|
|
|
3
3
|
# isort: skip_file
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
import typing
|
|
6
|
+
from importlib import import_module
|
|
7
|
+
|
|
8
|
+
if typing.TYPE_CHECKING:
|
|
9
|
+
from .end_user_details_request_language import EndUserDetailsRequestLanguage
|
|
10
|
+
_dynamic_imports: typing.Dict[str, str] = {"EndUserDetailsRequestLanguage": ".end_user_details_request_language"}
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
def __getattr__(attr_name: str) -> typing.Any:
|
|
14
|
+
module_name = _dynamic_imports.get(attr_name)
|
|
15
|
+
if module_name is None:
|
|
16
|
+
raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}")
|
|
17
|
+
try:
|
|
18
|
+
module = import_module(module_name, __package__)
|
|
19
|
+
result = getattr(module, attr_name)
|
|
20
|
+
return result
|
|
21
|
+
except ImportError as e:
|
|
22
|
+
raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e
|
|
23
|
+
except AttributeError as e:
|
|
24
|
+
raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
def __dir__():
|
|
28
|
+
lazy_attrs = list(_dynamic_imports.keys())
|
|
29
|
+
return sorted(lazy_attrs)
|
|
30
|
+
|
|
6
31
|
|
|
7
32
|
__all__ = ["EndUserDetailsRequestLanguage"]
|
|
@@ -2,6 +2,31 @@
|
|
|
2
2
|
|
|
3
3
|
# isort: skip_file
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
import typing
|
|
6
|
+
from importlib import import_module
|
|
7
|
+
|
|
8
|
+
if typing.TYPE_CHECKING:
|
|
9
|
+
from .types import LinkedAccountsListRequestCategory
|
|
10
|
+
_dynamic_imports: typing.Dict[str, str] = {"LinkedAccountsListRequestCategory": ".types"}
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
def __getattr__(attr_name: str) -> typing.Any:
|
|
14
|
+
module_name = _dynamic_imports.get(attr_name)
|
|
15
|
+
if module_name is None:
|
|
16
|
+
raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}")
|
|
17
|
+
try:
|
|
18
|
+
module = import_module(module_name, __package__)
|
|
19
|
+
result = getattr(module, attr_name)
|
|
20
|
+
return result
|
|
21
|
+
except ImportError as e:
|
|
22
|
+
raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e
|
|
23
|
+
except AttributeError as e:
|
|
24
|
+
raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
def __dir__():
|
|
28
|
+
lazy_attrs = list(_dynamic_imports.keys())
|
|
29
|
+
return sorted(lazy_attrs)
|
|
30
|
+
|
|
6
31
|
|
|
7
32
|
__all__ = ["LinkedAccountsListRequestCategory"]
|
|
@@ -109,7 +109,9 @@ class LinkedAccountsClient:
|
|
|
109
109
|
account_token="YOUR_ACCOUNT_TOKEN",
|
|
110
110
|
api_key="YOUR_API_KEY",
|
|
111
111
|
)
|
|
112
|
-
client.accounting.linked_accounts.list(
|
|
112
|
+
client.accounting.linked_accounts.list(
|
|
113
|
+
cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw",
|
|
114
|
+
)
|
|
113
115
|
"""
|
|
114
116
|
_response = self._raw_client.list(
|
|
115
117
|
category=category,
|
|
@@ -235,7 +237,9 @@ class AsyncLinkedAccountsClient:
|
|
|
235
237
|
|
|
236
238
|
|
|
237
239
|
async def main() -> None:
|
|
238
|
-
await client.accounting.linked_accounts.list(
|
|
240
|
+
await client.accounting.linked_accounts.list(
|
|
241
|
+
cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw",
|
|
242
|
+
)
|
|
239
243
|
|
|
240
244
|
|
|
241
245
|
asyncio.run(main())
|
|
@@ -2,6 +2,33 @@
|
|
|
2
2
|
|
|
3
3
|
# isort: skip_file
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
import typing
|
|
6
|
+
from importlib import import_module
|
|
7
|
+
|
|
8
|
+
if typing.TYPE_CHECKING:
|
|
9
|
+
from .linked_accounts_list_request_category import LinkedAccountsListRequestCategory
|
|
10
|
+
_dynamic_imports: typing.Dict[str, str] = {
|
|
11
|
+
"LinkedAccountsListRequestCategory": ".linked_accounts_list_request_category"
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
def __getattr__(attr_name: str) -> typing.Any:
|
|
16
|
+
module_name = _dynamic_imports.get(attr_name)
|
|
17
|
+
if module_name is None:
|
|
18
|
+
raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}")
|
|
19
|
+
try:
|
|
20
|
+
module = import_module(module_name, __package__)
|
|
21
|
+
result = getattr(module, attr_name)
|
|
22
|
+
return result
|
|
23
|
+
except ImportError as e:
|
|
24
|
+
raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e
|
|
25
|
+
except AttributeError as e:
|
|
26
|
+
raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
def __dir__():
|
|
30
|
+
lazy_attrs = list(_dynamic_imports.keys())
|
|
31
|
+
return sorted(lazy_attrs)
|
|
32
|
+
|
|
6
33
|
|
|
7
34
|
__all__ = ["LinkedAccountsListRequestCategory"]
|
|
@@ -70,7 +70,9 @@ class PaymentMethodsClient:
|
|
|
70
70
|
account_token="YOUR_ACCOUNT_TOKEN",
|
|
71
71
|
api_key="YOUR_API_KEY",
|
|
72
72
|
)
|
|
73
|
-
client.accounting.payment_methods.list(
|
|
73
|
+
client.accounting.payment_methods.list(
|
|
74
|
+
cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw",
|
|
75
|
+
)
|
|
74
76
|
"""
|
|
75
77
|
_response = self._raw_client.list(
|
|
76
78
|
cursor=cursor,
|
|
@@ -198,7 +200,9 @@ class AsyncPaymentMethodsClient:
|
|
|
198
200
|
|
|
199
201
|
|
|
200
202
|
async def main() -> None:
|
|
201
|
-
await client.accounting.payment_methods.list(
|
|
203
|
+
await client.accounting.payment_methods.list(
|
|
204
|
+
cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw",
|
|
205
|
+
)
|
|
202
206
|
|
|
203
207
|
|
|
204
208
|
asyncio.run(main())
|
|
@@ -74,7 +74,9 @@ class PaymentTermsClient:
|
|
|
74
74
|
account_token="YOUR_ACCOUNT_TOKEN",
|
|
75
75
|
api_key="YOUR_API_KEY",
|
|
76
76
|
)
|
|
77
|
-
client.accounting.payment_terms.list(
|
|
77
|
+
client.accounting.payment_terms.list(
|
|
78
|
+
cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw",
|
|
79
|
+
)
|
|
78
80
|
"""
|
|
79
81
|
_response = self._raw_client.list(
|
|
80
82
|
cursor=cursor,
|
|
@@ -212,7 +214,9 @@ class AsyncPaymentTermsClient:
|
|
|
212
214
|
|
|
213
215
|
|
|
214
216
|
async def main() -> None:
|
|
215
|
-
await client.accounting.payment_terms.list(
|
|
217
|
+
await client.accounting.payment_terms.list(
|
|
218
|
+
cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw",
|
|
219
|
+
)
|
|
216
220
|
|
|
217
221
|
|
|
218
222
|
asyncio.run(main())
|
|
@@ -2,6 +2,34 @@
|
|
|
2
2
|
|
|
3
3
|
# isort: skip_file
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
import typing
|
|
6
|
+
from importlib import import_module
|
|
7
|
+
|
|
8
|
+
if typing.TYPE_CHECKING:
|
|
9
|
+
from .types import PaymentsListRequestExpand, PaymentsRetrieveRequestExpand
|
|
10
|
+
_dynamic_imports: typing.Dict[str, str] = {
|
|
11
|
+
"PaymentsListRequestExpand": ".types",
|
|
12
|
+
"PaymentsRetrieveRequestExpand": ".types",
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
def __getattr__(attr_name: str) -> typing.Any:
|
|
17
|
+
module_name = _dynamic_imports.get(attr_name)
|
|
18
|
+
if module_name is None:
|
|
19
|
+
raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}")
|
|
20
|
+
try:
|
|
21
|
+
module = import_module(module_name, __package__)
|
|
22
|
+
result = getattr(module, attr_name)
|
|
23
|
+
return result
|
|
24
|
+
except ImportError as e:
|
|
25
|
+
raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e
|
|
26
|
+
except AttributeError as e:
|
|
27
|
+
raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
def __dir__():
|
|
31
|
+
lazy_attrs = list(_dynamic_imports.keys())
|
|
32
|
+
return sorted(lazy_attrs)
|
|
33
|
+
|
|
6
34
|
|
|
7
35
|
__all__ = ["PaymentsListRequestExpand", "PaymentsRetrieveRequestExpand"]
|
|
@@ -129,7 +129,9 @@ class PaymentsClient:
|
|
|
129
129
|
account_token="YOUR_ACCOUNT_TOKEN",
|
|
130
130
|
api_key="YOUR_API_KEY",
|
|
131
131
|
)
|
|
132
|
-
client.accounting.payments.list(
|
|
132
|
+
client.accounting.payments.list(
|
|
133
|
+
cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw",
|
|
134
|
+
)
|
|
133
135
|
"""
|
|
134
136
|
_response = self._raw_client.list(
|
|
135
137
|
account_id=account_id,
|
|
@@ -364,7 +366,9 @@ class PaymentsClient:
|
|
|
364
366
|
account_token="YOUR_ACCOUNT_TOKEN",
|
|
365
367
|
api_key="YOUR_API_KEY",
|
|
366
368
|
)
|
|
367
|
-
client.accounting.payments.line_items_remote_field_classes_list(
|
|
369
|
+
client.accounting.payments.line_items_remote_field_classes_list(
|
|
370
|
+
cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw",
|
|
371
|
+
)
|
|
368
372
|
"""
|
|
369
373
|
_response = self._raw_client.line_items_remote_field_classes_list(
|
|
370
374
|
cursor=cursor,
|
|
@@ -490,7 +494,9 @@ class PaymentsClient:
|
|
|
490
494
|
account_token="YOUR_ACCOUNT_TOKEN",
|
|
491
495
|
api_key="YOUR_API_KEY",
|
|
492
496
|
)
|
|
493
|
-
client.accounting.payments.remote_field_classes_list(
|
|
497
|
+
client.accounting.payments.remote_field_classes_list(
|
|
498
|
+
cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw",
|
|
499
|
+
)
|
|
494
500
|
"""
|
|
495
501
|
_response = self._raw_client.remote_field_classes_list(
|
|
496
502
|
cursor=cursor,
|
|
@@ -619,7 +625,9 @@ class AsyncPaymentsClient:
|
|
|
619
625
|
|
|
620
626
|
|
|
621
627
|
async def main() -> None:
|
|
622
|
-
await client.accounting.payments.list(
|
|
628
|
+
await client.accounting.payments.list(
|
|
629
|
+
cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw",
|
|
630
|
+
)
|
|
623
631
|
|
|
624
632
|
|
|
625
633
|
asyncio.run(main())
|
|
@@ -886,7 +894,9 @@ class AsyncPaymentsClient:
|
|
|
886
894
|
|
|
887
895
|
|
|
888
896
|
async def main() -> None:
|
|
889
|
-
await client.accounting.payments.line_items_remote_field_classes_list(
|
|
897
|
+
await client.accounting.payments.line_items_remote_field_classes_list(
|
|
898
|
+
cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw",
|
|
899
|
+
)
|
|
890
900
|
|
|
891
901
|
|
|
892
902
|
asyncio.run(main())
|
|
@@ -1038,7 +1048,9 @@ class AsyncPaymentsClient:
|
|
|
1038
1048
|
|
|
1039
1049
|
|
|
1040
1050
|
async def main() -> None:
|
|
1041
|
-
await client.accounting.payments.remote_field_classes_list(
|
|
1051
|
+
await client.accounting.payments.remote_field_classes_list(
|
|
1052
|
+
cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw",
|
|
1053
|
+
)
|
|
1042
1054
|
|
|
1043
1055
|
|
|
1044
1056
|
asyncio.run(main())
|