mergepythonclient 2.1.0__py3-none-any.whl → 2.2.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/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 +41 -3
- merge/resources/accounting/__init__.py +64 -0
- merge/resources/accounting/client.py +5 -0
- merge/resources/accounting/resources/__init__.py +10 -0
- merge/resources/accounting/resources/accounting_periods/client.py +6 -2
- merge/resources/accounting/resources/accounts/client.py +6 -2
- 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/client.py +6 -2
- merge/resources/accounting/resources/contacts/client.py +195 -4
- merge/resources/accounting/resources/contacts/raw_client.py +203 -0
- merge/resources/accounting/resources/credit_notes/client.py +6 -2
- merge/resources/accounting/resources/employees/client.py +67 -2
- merge/resources/accounting/resources/employees/raw_client.py +62 -0
- merge/resources/accounting/resources/expense_reports/__init__.py +15 -0
- merge/resources/accounting/resources/expense_reports/client.py +1015 -0
- merge/resources/accounting/resources/expense_reports/raw_client.py +1020 -0
- merge/resources/accounting/resources/expense_reports/types/__init__.py +13 -0
- merge/resources/accounting/resources/expense_reports/types/expense_reports_lines_list_request_expand.py +265 -0
- merge/resources/accounting/resources/expense_reports/types/expense_reports_list_request_expand.py +73 -0
- merge/resources/accounting/resources/expense_reports/types/expense_reports_retrieve_request_expand.py +73 -0
- merge/resources/accounting/resources/expenses/client.py +18 -6
- merge/resources/accounting/resources/general_ledger_transactions/client.py +6 -2
- merge/resources/accounting/resources/income_statements/client.py +6 -2
- merge/resources/accounting/resources/invoices/client.py +18 -6
- merge/resources/accounting/resources/issues/client.py +6 -2
- merge/resources/accounting/resources/items/client.py +6 -2
- merge/resources/accounting/resources/journal_entries/client.py +18 -6
- merge/resources/accounting/resources/linked_accounts/client.py +6 -2
- 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/client.py +18 -6
- merge/resources/accounting/resources/projects/client.py +67 -2
- merge/resources/accounting/resources/projects/raw_client.py +62 -0
- merge/resources/accounting/resources/purchase_orders/client.py +18 -6
- 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/client.py +6 -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/client.py +6 -2
- merge/resources/accounting/types/__init__.py +56 -0
- merge/resources/accounting/types/expense_report.py +423 -0
- merge/resources/accounting/types/expense_report_company.py +7 -0
- merge/resources/accounting/types/expense_report_line.py +441 -0
- merge/resources/accounting/types/expense_report_line_account.py +7 -0
- merge/resources/accounting/types/expense_report_line_company.py +7 -0
- merge/resources/accounting/types/expense_report_line_contact.py +7 -0
- merge/resources/accounting/types/expense_report_line_employee.py +7 -0
- merge/resources/accounting/types/expense_report_line_project.py +7 -0
- merge/resources/accounting/types/expense_report_line_request.py +427 -0
- merge/resources/accounting/types/expense_report_line_request_account.py +7 -0
- merge/resources/accounting/types/expense_report_line_request_company.py +7 -0
- merge/resources/accounting/types/expense_report_line_request_contact.py +7 -0
- merge/resources/accounting/types/expense_report_line_request_employee.py +7 -0
- merge/resources/accounting/types/expense_report_line_request_project.py +7 -0
- merge/resources/accounting/types/expense_report_line_request_tax_rate.py +7 -0
- merge/resources/accounting/types/expense_report_line_tax_rate.py +7 -0
- merge/resources/accounting/types/expense_report_request.py +401 -0
- merge/resources/accounting/types/expense_report_request_accounting_period.py +7 -0
- merge/resources/accounting/types/expense_report_request_company.py +7 -0
- merge/resources/accounting/types/expense_report_request_employee.py +7 -0
- merge/resources/accounting/types/expense_report_response.py +27 -0
- merge/resources/accounting/types/expense_report_status.py +7 -0
- merge/resources/accounting/types/expense_report_status_enum.py +36 -0
- merge/resources/accounting/types/external_target_field_api_response.py +3 -0
- merge/resources/accounting/types/field_mapping_api_instance_response.py +3 -0
- merge/resources/accounting/types/item.py +11 -0
- merge/resources/accounting/types/item_type.py +7 -0
- merge/resources/accounting/types/paginated_expense_report_line_list.py +23 -0
- merge/resources/accounting/types/paginated_expense_report_list.py +23 -0
- 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/resources/activities/client.py +6 -2
- merge/resources/ats/resources/applications/client.py +6 -2
- merge/resources/ats/resources/attachments/client.py +6 -2
- merge/resources/ats/resources/audit_trail/client.py +6 -2
- merge/resources/ats/resources/candidates/client.py +6 -2
- merge/resources/ats/resources/departments/client.py +6 -2
- merge/resources/ats/resources/eeocs/client.py +6 -2
- merge/resources/ats/resources/interviews/client.py +6 -2
- merge/resources/ats/resources/issues/client.py +6 -2
- merge/resources/ats/resources/job_interview_stages/client.py +6 -2
- merge/resources/ats/resources/job_postings/client.py +6 -2
- merge/resources/ats/resources/jobs/client.py +8 -2
- merge/resources/ats/resources/linked_accounts/client.py +6 -2
- merge/resources/ats/resources/offers/client.py +6 -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/client.py +6 -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/event_type_enum.py +4 -0
- 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/audit_trail/client.py +6 -2
- merge/resources/crm/resources/contacts/client.py +12 -4
- 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/client.py +12 -4
- merge/resources/crm/resources/issues/client.py +6 -2
- merge/resources/crm/resources/leads/client.py +12 -4
- merge/resources/crm/resources/linked_accounts/client.py +6 -2
- merge/resources/crm/resources/notes/client.py +12 -4
- merge/resources/crm/resources/opportunities/client.py +12 -4
- merge/resources/crm/resources/stages/client.py +12 -4
- merge/resources/crm/resources/sync_status/client.py +6 -2
- merge/resources/crm/resources/tasks/client.py +12 -4
- merge/resources/crm/resources/users/client.py +12 -4
- merge/resources/crm/types/remote_field_class.py +1 -0
- merge/resources/filestorage/resources/audit_trail/client.py +6 -2
- merge/resources/filestorage/resources/drives/client.py +6 -2
- merge/resources/filestorage/resources/files/client.py +42 -4
- merge/resources/filestorage/resources/files/raw_client.py +38 -0
- merge/resources/filestorage/resources/folders/client.py +6 -2
- merge/resources/filestorage/resources/groups/client.py +6 -2
- merge/resources/filestorage/resources/issues/client.py +6 -2
- merge/resources/filestorage/resources/linked_accounts/client.py +6 -2
- merge/resources/filestorage/resources/sync_status/client.py +6 -2
- merge/resources/filestorage/resources/users/client.py +6 -2
- merge/resources/hris/resources/audit_trail/client.py +6 -2
- merge/resources/hris/resources/bank_info/client.py +6 -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/client.py +6 -2
- merge/resources/hris/resources/employees/client.py +6 -2
- merge/resources/hris/resources/employer_benefits/client.py +6 -2
- merge/resources/hris/resources/employments/client.py +6 -2
- merge/resources/hris/resources/groups/client.py +6 -2
- merge/resources/hris/resources/issues/client.py +6 -2
- merge/resources/hris/resources/linked_accounts/client.py +6 -2
- merge/resources/hris/resources/locations/client.py +6 -2
- merge/resources/hris/resources/pay_groups/client.py +6 -2
- merge/resources/hris/resources/payroll_runs/client.py +6 -2
- 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/client.py +6 -2
- merge/resources/hris/resources/time_off_balances/client.py +6 -2
- merge/resources/hris/resources/timesheet_entries/client.py +6 -2
- merge/resources/hris/types/benefit.py +4 -4
- merge/resources/ticketing/resources/accounts/client.py +6 -2
- merge/resources/ticketing/resources/attachments/client.py +6 -2
- merge/resources/ticketing/resources/audit_trail/client.py +6 -2
- merge/resources/ticketing/resources/collections/client.py +8 -2
- merge/resources/ticketing/resources/comments/client.py +6 -2
- merge/resources/ticketing/resources/contacts/client.py +6 -2
- merge/resources/ticketing/resources/issues/client.py +6 -2
- merge/resources/ticketing/resources/linked_accounts/client.py +6 -2
- merge/resources/ticketing/resources/projects/client.py +8 -2
- 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/client.py +24 -4
- merge/resources/ticketing/resources/tickets/raw_client.py +10 -0
- merge/resources/ticketing/resources/users/client.py +6 -2
- merge/resources/ticketing/types/patched_ticket_request.py +5 -5
- merge/resources/ticketing/types/remote_field_class.py +1 -0
- {mergepythonclient-2.1.0.dist-info → mergepythonclient-2.2.0.dist-info}/METADATA +5 -2
- {mergepythonclient-2.1.0.dist-info → mergepythonclient-2.2.0.dist-info}/RECORD +175 -140
- {mergepythonclient-2.1.0.dist-info → mergepythonclient-2.2.0.dist-info}/LICENSE.md +0 -0
- {mergepythonclient-2.1.0.dist-info → mergepythonclient-2.2.0.dist-info}/WHEEL +0 -0
|
@@ -9,135 +9,276 @@ T_Result = typing.TypeVar("T_Result")
|
|
|
9
9
|
class TransactionsListRequestExpand(str, enum.Enum):
|
|
10
10
|
ACCOUNT = "account"
|
|
11
11
|
ACCOUNT_ACCOUNTING_PERIOD = "account,accounting_period"
|
|
12
|
+
ACCOUNT_COMPANY = "account,company"
|
|
13
|
+
ACCOUNT_COMPANY_ACCOUNTING_PERIOD = "account,company,accounting_period"
|
|
12
14
|
ACCOUNTING_PERIOD = "accounting_period"
|
|
15
|
+
COMPANY = "company"
|
|
16
|
+
COMPANY_ACCOUNTING_PERIOD = "company,accounting_period"
|
|
13
17
|
CONTACT = "contact"
|
|
14
18
|
CONTACT_ACCOUNT = "contact,account"
|
|
15
19
|
CONTACT_ACCOUNT_ACCOUNTING_PERIOD = "contact,account,accounting_period"
|
|
20
|
+
CONTACT_ACCOUNT_COMPANY = "contact,account,company"
|
|
21
|
+
CONTACT_ACCOUNT_COMPANY_ACCOUNTING_PERIOD = "contact,account,company,accounting_period"
|
|
16
22
|
CONTACT_ACCOUNTING_PERIOD = "contact,accounting_period"
|
|
23
|
+
CONTACT_COMPANY = "contact,company"
|
|
24
|
+
CONTACT_COMPANY_ACCOUNTING_PERIOD = "contact,company,accounting_period"
|
|
17
25
|
LINE_ITEMS = "line_items"
|
|
18
26
|
LINE_ITEMS_ACCOUNT = "line_items,account"
|
|
19
27
|
LINE_ITEMS_ACCOUNT_ACCOUNTING_PERIOD = "line_items,account,accounting_period"
|
|
28
|
+
LINE_ITEMS_ACCOUNT_COMPANY = "line_items,account,company"
|
|
29
|
+
LINE_ITEMS_ACCOUNT_COMPANY_ACCOUNTING_PERIOD = "line_items,account,company,accounting_period"
|
|
20
30
|
LINE_ITEMS_ACCOUNTING_PERIOD = "line_items,accounting_period"
|
|
31
|
+
LINE_ITEMS_COMPANY = "line_items,company"
|
|
32
|
+
LINE_ITEMS_COMPANY_ACCOUNTING_PERIOD = "line_items,company,accounting_period"
|
|
21
33
|
LINE_ITEMS_CONTACT = "line_items,contact"
|
|
22
34
|
LINE_ITEMS_CONTACT_ACCOUNT = "line_items,contact,account"
|
|
23
35
|
LINE_ITEMS_CONTACT_ACCOUNT_ACCOUNTING_PERIOD = "line_items,contact,account,accounting_period"
|
|
36
|
+
LINE_ITEMS_CONTACT_ACCOUNT_COMPANY = "line_items,contact,account,company"
|
|
37
|
+
LINE_ITEMS_CONTACT_ACCOUNT_COMPANY_ACCOUNTING_PERIOD = "line_items,contact,account,company,accounting_period"
|
|
24
38
|
LINE_ITEMS_CONTACT_ACCOUNTING_PERIOD = "line_items,contact,accounting_period"
|
|
39
|
+
LINE_ITEMS_CONTACT_COMPANY = "line_items,contact,company"
|
|
40
|
+
LINE_ITEMS_CONTACT_COMPANY_ACCOUNTING_PERIOD = "line_items,contact,company,accounting_period"
|
|
25
41
|
LINE_ITEMS_TRACKING_CATEGORIES = "line_items,tracking_categories"
|
|
26
42
|
LINE_ITEMS_TRACKING_CATEGORIES_ACCOUNT = "line_items,tracking_categories,account"
|
|
27
43
|
LINE_ITEMS_TRACKING_CATEGORIES_ACCOUNT_ACCOUNTING_PERIOD = (
|
|
28
44
|
"line_items,tracking_categories,account,accounting_period"
|
|
29
45
|
)
|
|
46
|
+
LINE_ITEMS_TRACKING_CATEGORIES_ACCOUNT_COMPANY = "line_items,tracking_categories,account,company"
|
|
47
|
+
LINE_ITEMS_TRACKING_CATEGORIES_ACCOUNT_COMPANY_ACCOUNTING_PERIOD = (
|
|
48
|
+
"line_items,tracking_categories,account,company,accounting_period"
|
|
49
|
+
)
|
|
30
50
|
LINE_ITEMS_TRACKING_CATEGORIES_ACCOUNTING_PERIOD = "line_items,tracking_categories,accounting_period"
|
|
51
|
+
LINE_ITEMS_TRACKING_CATEGORIES_COMPANY = "line_items,tracking_categories,company"
|
|
52
|
+
LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD = (
|
|
53
|
+
"line_items,tracking_categories,company,accounting_period"
|
|
54
|
+
)
|
|
31
55
|
LINE_ITEMS_TRACKING_CATEGORIES_CONTACT = "line_items,tracking_categories,contact"
|
|
32
56
|
LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_ACCOUNT = "line_items,tracking_categories,contact,account"
|
|
33
57
|
LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_ACCOUNT_ACCOUNTING_PERIOD = (
|
|
34
58
|
"line_items,tracking_categories,contact,account,accounting_period"
|
|
35
59
|
)
|
|
60
|
+
LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_ACCOUNT_COMPANY = "line_items,tracking_categories,contact,account,company"
|
|
61
|
+
LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_ACCOUNT_COMPANY_ACCOUNTING_PERIOD = (
|
|
62
|
+
"line_items,tracking_categories,contact,account,company,accounting_period"
|
|
63
|
+
)
|
|
36
64
|
LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_ACCOUNTING_PERIOD = (
|
|
37
65
|
"line_items,tracking_categories,contact,accounting_period"
|
|
38
66
|
)
|
|
67
|
+
LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY = "line_items,tracking_categories,contact,company"
|
|
68
|
+
LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_ACCOUNTING_PERIOD = (
|
|
69
|
+
"line_items,tracking_categories,contact,company,accounting_period"
|
|
70
|
+
)
|
|
39
71
|
TRACKING_CATEGORIES = "tracking_categories"
|
|
40
72
|
TRACKING_CATEGORIES_ACCOUNT = "tracking_categories,account"
|
|
41
73
|
TRACKING_CATEGORIES_ACCOUNT_ACCOUNTING_PERIOD = "tracking_categories,account,accounting_period"
|
|
74
|
+
TRACKING_CATEGORIES_ACCOUNT_COMPANY = "tracking_categories,account,company"
|
|
75
|
+
TRACKING_CATEGORIES_ACCOUNT_COMPANY_ACCOUNTING_PERIOD = "tracking_categories,account,company,accounting_period"
|
|
42
76
|
TRACKING_CATEGORIES_ACCOUNTING_PERIOD = "tracking_categories,accounting_period"
|
|
77
|
+
TRACKING_CATEGORIES_COMPANY = "tracking_categories,company"
|
|
78
|
+
TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD = "tracking_categories,company,accounting_period"
|
|
43
79
|
TRACKING_CATEGORIES_CONTACT = "tracking_categories,contact"
|
|
44
80
|
TRACKING_CATEGORIES_CONTACT_ACCOUNT = "tracking_categories,contact,account"
|
|
45
81
|
TRACKING_CATEGORIES_CONTACT_ACCOUNT_ACCOUNTING_PERIOD = "tracking_categories,contact,account,accounting_period"
|
|
82
|
+
TRACKING_CATEGORIES_CONTACT_ACCOUNT_COMPANY = "tracking_categories,contact,account,company"
|
|
83
|
+
TRACKING_CATEGORIES_CONTACT_ACCOUNT_COMPANY_ACCOUNTING_PERIOD = (
|
|
84
|
+
"tracking_categories,contact,account,company,accounting_period"
|
|
85
|
+
)
|
|
46
86
|
TRACKING_CATEGORIES_CONTACT_ACCOUNTING_PERIOD = "tracking_categories,contact,accounting_period"
|
|
87
|
+
TRACKING_CATEGORIES_CONTACT_COMPANY = "tracking_categories,contact,company"
|
|
88
|
+
TRACKING_CATEGORIES_CONTACT_COMPANY_ACCOUNTING_PERIOD = "tracking_categories,contact,company,accounting_period"
|
|
47
89
|
|
|
48
90
|
def visit(
|
|
49
91
|
self,
|
|
50
92
|
account: typing.Callable[[], T_Result],
|
|
51
93
|
account_accounting_period: typing.Callable[[], T_Result],
|
|
94
|
+
account_company: typing.Callable[[], T_Result],
|
|
95
|
+
account_company_accounting_period: typing.Callable[[], T_Result],
|
|
52
96
|
accounting_period: typing.Callable[[], T_Result],
|
|
97
|
+
company: typing.Callable[[], T_Result],
|
|
98
|
+
company_accounting_period: typing.Callable[[], T_Result],
|
|
53
99
|
contact: typing.Callable[[], T_Result],
|
|
54
100
|
contact_account: typing.Callable[[], T_Result],
|
|
55
101
|
contact_account_accounting_period: typing.Callable[[], T_Result],
|
|
102
|
+
contact_account_company: typing.Callable[[], T_Result],
|
|
103
|
+
contact_account_company_accounting_period: typing.Callable[[], T_Result],
|
|
56
104
|
contact_accounting_period: typing.Callable[[], T_Result],
|
|
105
|
+
contact_company: typing.Callable[[], T_Result],
|
|
106
|
+
contact_company_accounting_period: typing.Callable[[], T_Result],
|
|
57
107
|
line_items: typing.Callable[[], T_Result],
|
|
58
108
|
line_items_account: typing.Callable[[], T_Result],
|
|
59
109
|
line_items_account_accounting_period: typing.Callable[[], T_Result],
|
|
110
|
+
line_items_account_company: typing.Callable[[], T_Result],
|
|
111
|
+
line_items_account_company_accounting_period: typing.Callable[[], T_Result],
|
|
60
112
|
line_items_accounting_period: typing.Callable[[], T_Result],
|
|
113
|
+
line_items_company: typing.Callable[[], T_Result],
|
|
114
|
+
line_items_company_accounting_period: typing.Callable[[], T_Result],
|
|
61
115
|
line_items_contact: typing.Callable[[], T_Result],
|
|
62
116
|
line_items_contact_account: typing.Callable[[], T_Result],
|
|
63
117
|
line_items_contact_account_accounting_period: typing.Callable[[], T_Result],
|
|
118
|
+
line_items_contact_account_company: typing.Callable[[], T_Result],
|
|
119
|
+
line_items_contact_account_company_accounting_period: typing.Callable[[], T_Result],
|
|
64
120
|
line_items_contact_accounting_period: typing.Callable[[], T_Result],
|
|
121
|
+
line_items_contact_company: typing.Callable[[], T_Result],
|
|
122
|
+
line_items_contact_company_accounting_period: typing.Callable[[], T_Result],
|
|
65
123
|
line_items_tracking_categories: typing.Callable[[], T_Result],
|
|
66
124
|
line_items_tracking_categories_account: typing.Callable[[], T_Result],
|
|
67
125
|
line_items_tracking_categories_account_accounting_period: typing.Callable[[], T_Result],
|
|
126
|
+
line_items_tracking_categories_account_company: typing.Callable[[], T_Result],
|
|
127
|
+
line_items_tracking_categories_account_company_accounting_period: typing.Callable[[], T_Result],
|
|
68
128
|
line_items_tracking_categories_accounting_period: typing.Callable[[], T_Result],
|
|
129
|
+
line_items_tracking_categories_company: typing.Callable[[], T_Result],
|
|
130
|
+
line_items_tracking_categories_company_accounting_period: typing.Callable[[], T_Result],
|
|
69
131
|
line_items_tracking_categories_contact: typing.Callable[[], T_Result],
|
|
70
132
|
line_items_tracking_categories_contact_account: typing.Callable[[], T_Result],
|
|
71
133
|
line_items_tracking_categories_contact_account_accounting_period: typing.Callable[[], T_Result],
|
|
134
|
+
line_items_tracking_categories_contact_account_company: typing.Callable[[], T_Result],
|
|
135
|
+
line_items_tracking_categories_contact_account_company_accounting_period: typing.Callable[[], T_Result],
|
|
72
136
|
line_items_tracking_categories_contact_accounting_period: typing.Callable[[], T_Result],
|
|
137
|
+
line_items_tracking_categories_contact_company: typing.Callable[[], T_Result],
|
|
138
|
+
line_items_tracking_categories_contact_company_accounting_period: typing.Callable[[], T_Result],
|
|
73
139
|
tracking_categories: typing.Callable[[], T_Result],
|
|
74
140
|
tracking_categories_account: typing.Callable[[], T_Result],
|
|
75
141
|
tracking_categories_account_accounting_period: typing.Callable[[], T_Result],
|
|
142
|
+
tracking_categories_account_company: typing.Callable[[], T_Result],
|
|
143
|
+
tracking_categories_account_company_accounting_period: typing.Callable[[], T_Result],
|
|
76
144
|
tracking_categories_accounting_period: typing.Callable[[], T_Result],
|
|
145
|
+
tracking_categories_company: typing.Callable[[], T_Result],
|
|
146
|
+
tracking_categories_company_accounting_period: typing.Callable[[], T_Result],
|
|
77
147
|
tracking_categories_contact: typing.Callable[[], T_Result],
|
|
78
148
|
tracking_categories_contact_account: typing.Callable[[], T_Result],
|
|
79
149
|
tracking_categories_contact_account_accounting_period: typing.Callable[[], T_Result],
|
|
150
|
+
tracking_categories_contact_account_company: typing.Callable[[], T_Result],
|
|
151
|
+
tracking_categories_contact_account_company_accounting_period: typing.Callable[[], T_Result],
|
|
80
152
|
tracking_categories_contact_accounting_period: typing.Callable[[], T_Result],
|
|
153
|
+
tracking_categories_contact_company: typing.Callable[[], T_Result],
|
|
154
|
+
tracking_categories_contact_company_accounting_period: typing.Callable[[], T_Result],
|
|
81
155
|
) -> T_Result:
|
|
82
156
|
if self is TransactionsListRequestExpand.ACCOUNT:
|
|
83
157
|
return account()
|
|
84
158
|
if self is TransactionsListRequestExpand.ACCOUNT_ACCOUNTING_PERIOD:
|
|
85
159
|
return account_accounting_period()
|
|
160
|
+
if self is TransactionsListRequestExpand.ACCOUNT_COMPANY:
|
|
161
|
+
return account_company()
|
|
162
|
+
if self is TransactionsListRequestExpand.ACCOUNT_COMPANY_ACCOUNTING_PERIOD:
|
|
163
|
+
return account_company_accounting_period()
|
|
86
164
|
if self is TransactionsListRequestExpand.ACCOUNTING_PERIOD:
|
|
87
165
|
return accounting_period()
|
|
166
|
+
if self is TransactionsListRequestExpand.COMPANY:
|
|
167
|
+
return company()
|
|
168
|
+
if self is TransactionsListRequestExpand.COMPANY_ACCOUNTING_PERIOD:
|
|
169
|
+
return company_accounting_period()
|
|
88
170
|
if self is TransactionsListRequestExpand.CONTACT:
|
|
89
171
|
return contact()
|
|
90
172
|
if self is TransactionsListRequestExpand.CONTACT_ACCOUNT:
|
|
91
173
|
return contact_account()
|
|
92
174
|
if self is TransactionsListRequestExpand.CONTACT_ACCOUNT_ACCOUNTING_PERIOD:
|
|
93
175
|
return contact_account_accounting_period()
|
|
176
|
+
if self is TransactionsListRequestExpand.CONTACT_ACCOUNT_COMPANY:
|
|
177
|
+
return contact_account_company()
|
|
178
|
+
if self is TransactionsListRequestExpand.CONTACT_ACCOUNT_COMPANY_ACCOUNTING_PERIOD:
|
|
179
|
+
return contact_account_company_accounting_period()
|
|
94
180
|
if self is TransactionsListRequestExpand.CONTACT_ACCOUNTING_PERIOD:
|
|
95
181
|
return contact_accounting_period()
|
|
182
|
+
if self is TransactionsListRequestExpand.CONTACT_COMPANY:
|
|
183
|
+
return contact_company()
|
|
184
|
+
if self is TransactionsListRequestExpand.CONTACT_COMPANY_ACCOUNTING_PERIOD:
|
|
185
|
+
return contact_company_accounting_period()
|
|
96
186
|
if self is TransactionsListRequestExpand.LINE_ITEMS:
|
|
97
187
|
return line_items()
|
|
98
188
|
if self is TransactionsListRequestExpand.LINE_ITEMS_ACCOUNT:
|
|
99
189
|
return line_items_account()
|
|
100
190
|
if self is TransactionsListRequestExpand.LINE_ITEMS_ACCOUNT_ACCOUNTING_PERIOD:
|
|
101
191
|
return line_items_account_accounting_period()
|
|
192
|
+
if self is TransactionsListRequestExpand.LINE_ITEMS_ACCOUNT_COMPANY:
|
|
193
|
+
return line_items_account_company()
|
|
194
|
+
if self is TransactionsListRequestExpand.LINE_ITEMS_ACCOUNT_COMPANY_ACCOUNTING_PERIOD:
|
|
195
|
+
return line_items_account_company_accounting_period()
|
|
102
196
|
if self is TransactionsListRequestExpand.LINE_ITEMS_ACCOUNTING_PERIOD:
|
|
103
197
|
return line_items_accounting_period()
|
|
198
|
+
if self is TransactionsListRequestExpand.LINE_ITEMS_COMPANY:
|
|
199
|
+
return line_items_company()
|
|
200
|
+
if self is TransactionsListRequestExpand.LINE_ITEMS_COMPANY_ACCOUNTING_PERIOD:
|
|
201
|
+
return line_items_company_accounting_period()
|
|
104
202
|
if self is TransactionsListRequestExpand.LINE_ITEMS_CONTACT:
|
|
105
203
|
return line_items_contact()
|
|
106
204
|
if self is TransactionsListRequestExpand.LINE_ITEMS_CONTACT_ACCOUNT:
|
|
107
205
|
return line_items_contact_account()
|
|
108
206
|
if self is TransactionsListRequestExpand.LINE_ITEMS_CONTACT_ACCOUNT_ACCOUNTING_PERIOD:
|
|
109
207
|
return line_items_contact_account_accounting_period()
|
|
208
|
+
if self is TransactionsListRequestExpand.LINE_ITEMS_CONTACT_ACCOUNT_COMPANY:
|
|
209
|
+
return line_items_contact_account_company()
|
|
210
|
+
if self is TransactionsListRequestExpand.LINE_ITEMS_CONTACT_ACCOUNT_COMPANY_ACCOUNTING_PERIOD:
|
|
211
|
+
return line_items_contact_account_company_accounting_period()
|
|
110
212
|
if self is TransactionsListRequestExpand.LINE_ITEMS_CONTACT_ACCOUNTING_PERIOD:
|
|
111
213
|
return line_items_contact_accounting_period()
|
|
214
|
+
if self is TransactionsListRequestExpand.LINE_ITEMS_CONTACT_COMPANY:
|
|
215
|
+
return line_items_contact_company()
|
|
216
|
+
if self is TransactionsListRequestExpand.LINE_ITEMS_CONTACT_COMPANY_ACCOUNTING_PERIOD:
|
|
217
|
+
return line_items_contact_company_accounting_period()
|
|
112
218
|
if self is TransactionsListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES:
|
|
113
219
|
return line_items_tracking_categories()
|
|
114
220
|
if self is TransactionsListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_ACCOUNT:
|
|
115
221
|
return line_items_tracking_categories_account()
|
|
116
222
|
if self is TransactionsListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_ACCOUNT_ACCOUNTING_PERIOD:
|
|
117
223
|
return line_items_tracking_categories_account_accounting_period()
|
|
224
|
+
if self is TransactionsListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_ACCOUNT_COMPANY:
|
|
225
|
+
return line_items_tracking_categories_account_company()
|
|
226
|
+
if self is TransactionsListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_ACCOUNT_COMPANY_ACCOUNTING_PERIOD:
|
|
227
|
+
return line_items_tracking_categories_account_company_accounting_period()
|
|
118
228
|
if self is TransactionsListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_ACCOUNTING_PERIOD:
|
|
119
229
|
return line_items_tracking_categories_accounting_period()
|
|
230
|
+
if self is TransactionsListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_COMPANY:
|
|
231
|
+
return line_items_tracking_categories_company()
|
|
232
|
+
if self is TransactionsListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD:
|
|
233
|
+
return line_items_tracking_categories_company_accounting_period()
|
|
120
234
|
if self is TransactionsListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_CONTACT:
|
|
121
235
|
return line_items_tracking_categories_contact()
|
|
122
236
|
if self is TransactionsListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_ACCOUNT:
|
|
123
237
|
return line_items_tracking_categories_contact_account()
|
|
124
238
|
if self is TransactionsListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_ACCOUNT_ACCOUNTING_PERIOD:
|
|
125
239
|
return line_items_tracking_categories_contact_account_accounting_period()
|
|
240
|
+
if self is TransactionsListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_ACCOUNT_COMPANY:
|
|
241
|
+
return line_items_tracking_categories_contact_account_company()
|
|
242
|
+
if (
|
|
243
|
+
self
|
|
244
|
+
is TransactionsListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_ACCOUNT_COMPANY_ACCOUNTING_PERIOD
|
|
245
|
+
):
|
|
246
|
+
return line_items_tracking_categories_contact_account_company_accounting_period()
|
|
126
247
|
if self is TransactionsListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_ACCOUNTING_PERIOD:
|
|
127
248
|
return line_items_tracking_categories_contact_accounting_period()
|
|
249
|
+
if self is TransactionsListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY:
|
|
250
|
+
return line_items_tracking_categories_contact_company()
|
|
251
|
+
if self is TransactionsListRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_ACCOUNTING_PERIOD:
|
|
252
|
+
return line_items_tracking_categories_contact_company_accounting_period()
|
|
128
253
|
if self is TransactionsListRequestExpand.TRACKING_CATEGORIES:
|
|
129
254
|
return tracking_categories()
|
|
130
255
|
if self is TransactionsListRequestExpand.TRACKING_CATEGORIES_ACCOUNT:
|
|
131
256
|
return tracking_categories_account()
|
|
132
257
|
if self is TransactionsListRequestExpand.TRACKING_CATEGORIES_ACCOUNT_ACCOUNTING_PERIOD:
|
|
133
258
|
return tracking_categories_account_accounting_period()
|
|
259
|
+
if self is TransactionsListRequestExpand.TRACKING_CATEGORIES_ACCOUNT_COMPANY:
|
|
260
|
+
return tracking_categories_account_company()
|
|
261
|
+
if self is TransactionsListRequestExpand.TRACKING_CATEGORIES_ACCOUNT_COMPANY_ACCOUNTING_PERIOD:
|
|
262
|
+
return tracking_categories_account_company_accounting_period()
|
|
134
263
|
if self is TransactionsListRequestExpand.TRACKING_CATEGORIES_ACCOUNTING_PERIOD:
|
|
135
264
|
return tracking_categories_accounting_period()
|
|
265
|
+
if self is TransactionsListRequestExpand.TRACKING_CATEGORIES_COMPANY:
|
|
266
|
+
return tracking_categories_company()
|
|
267
|
+
if self is TransactionsListRequestExpand.TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD:
|
|
268
|
+
return tracking_categories_company_accounting_period()
|
|
136
269
|
if self is TransactionsListRequestExpand.TRACKING_CATEGORIES_CONTACT:
|
|
137
270
|
return tracking_categories_contact()
|
|
138
271
|
if self is TransactionsListRequestExpand.TRACKING_CATEGORIES_CONTACT_ACCOUNT:
|
|
139
272
|
return tracking_categories_contact_account()
|
|
140
273
|
if self is TransactionsListRequestExpand.TRACKING_CATEGORIES_CONTACT_ACCOUNT_ACCOUNTING_PERIOD:
|
|
141
274
|
return tracking_categories_contact_account_accounting_period()
|
|
275
|
+
if self is TransactionsListRequestExpand.TRACKING_CATEGORIES_CONTACT_ACCOUNT_COMPANY:
|
|
276
|
+
return tracking_categories_contact_account_company()
|
|
277
|
+
if self is TransactionsListRequestExpand.TRACKING_CATEGORIES_CONTACT_ACCOUNT_COMPANY_ACCOUNTING_PERIOD:
|
|
278
|
+
return tracking_categories_contact_account_company_accounting_period()
|
|
142
279
|
if self is TransactionsListRequestExpand.TRACKING_CATEGORIES_CONTACT_ACCOUNTING_PERIOD:
|
|
143
280
|
return tracking_categories_contact_accounting_period()
|
|
281
|
+
if self is TransactionsListRequestExpand.TRACKING_CATEGORIES_CONTACT_COMPANY:
|
|
282
|
+
return tracking_categories_contact_company()
|
|
283
|
+
if self is TransactionsListRequestExpand.TRACKING_CATEGORIES_CONTACT_COMPANY_ACCOUNTING_PERIOD:
|
|
284
|
+
return tracking_categories_contact_company_accounting_period()
|
merge/resources/accounting/resources/transactions/types/transactions_retrieve_request_expand.py
CHANGED
|
@@ -9,135 +9,276 @@ T_Result = typing.TypeVar("T_Result")
|
|
|
9
9
|
class TransactionsRetrieveRequestExpand(str, enum.Enum):
|
|
10
10
|
ACCOUNT = "account"
|
|
11
11
|
ACCOUNT_ACCOUNTING_PERIOD = "account,accounting_period"
|
|
12
|
+
ACCOUNT_COMPANY = "account,company"
|
|
13
|
+
ACCOUNT_COMPANY_ACCOUNTING_PERIOD = "account,company,accounting_period"
|
|
12
14
|
ACCOUNTING_PERIOD = "accounting_period"
|
|
15
|
+
COMPANY = "company"
|
|
16
|
+
COMPANY_ACCOUNTING_PERIOD = "company,accounting_period"
|
|
13
17
|
CONTACT = "contact"
|
|
14
18
|
CONTACT_ACCOUNT = "contact,account"
|
|
15
19
|
CONTACT_ACCOUNT_ACCOUNTING_PERIOD = "contact,account,accounting_period"
|
|
20
|
+
CONTACT_ACCOUNT_COMPANY = "contact,account,company"
|
|
21
|
+
CONTACT_ACCOUNT_COMPANY_ACCOUNTING_PERIOD = "contact,account,company,accounting_period"
|
|
16
22
|
CONTACT_ACCOUNTING_PERIOD = "contact,accounting_period"
|
|
23
|
+
CONTACT_COMPANY = "contact,company"
|
|
24
|
+
CONTACT_COMPANY_ACCOUNTING_PERIOD = "contact,company,accounting_period"
|
|
17
25
|
LINE_ITEMS = "line_items"
|
|
18
26
|
LINE_ITEMS_ACCOUNT = "line_items,account"
|
|
19
27
|
LINE_ITEMS_ACCOUNT_ACCOUNTING_PERIOD = "line_items,account,accounting_period"
|
|
28
|
+
LINE_ITEMS_ACCOUNT_COMPANY = "line_items,account,company"
|
|
29
|
+
LINE_ITEMS_ACCOUNT_COMPANY_ACCOUNTING_PERIOD = "line_items,account,company,accounting_period"
|
|
20
30
|
LINE_ITEMS_ACCOUNTING_PERIOD = "line_items,accounting_period"
|
|
31
|
+
LINE_ITEMS_COMPANY = "line_items,company"
|
|
32
|
+
LINE_ITEMS_COMPANY_ACCOUNTING_PERIOD = "line_items,company,accounting_period"
|
|
21
33
|
LINE_ITEMS_CONTACT = "line_items,contact"
|
|
22
34
|
LINE_ITEMS_CONTACT_ACCOUNT = "line_items,contact,account"
|
|
23
35
|
LINE_ITEMS_CONTACT_ACCOUNT_ACCOUNTING_PERIOD = "line_items,contact,account,accounting_period"
|
|
36
|
+
LINE_ITEMS_CONTACT_ACCOUNT_COMPANY = "line_items,contact,account,company"
|
|
37
|
+
LINE_ITEMS_CONTACT_ACCOUNT_COMPANY_ACCOUNTING_PERIOD = "line_items,contact,account,company,accounting_period"
|
|
24
38
|
LINE_ITEMS_CONTACT_ACCOUNTING_PERIOD = "line_items,contact,accounting_period"
|
|
39
|
+
LINE_ITEMS_CONTACT_COMPANY = "line_items,contact,company"
|
|
40
|
+
LINE_ITEMS_CONTACT_COMPANY_ACCOUNTING_PERIOD = "line_items,contact,company,accounting_period"
|
|
25
41
|
LINE_ITEMS_TRACKING_CATEGORIES = "line_items,tracking_categories"
|
|
26
42
|
LINE_ITEMS_TRACKING_CATEGORIES_ACCOUNT = "line_items,tracking_categories,account"
|
|
27
43
|
LINE_ITEMS_TRACKING_CATEGORIES_ACCOUNT_ACCOUNTING_PERIOD = (
|
|
28
44
|
"line_items,tracking_categories,account,accounting_period"
|
|
29
45
|
)
|
|
46
|
+
LINE_ITEMS_TRACKING_CATEGORIES_ACCOUNT_COMPANY = "line_items,tracking_categories,account,company"
|
|
47
|
+
LINE_ITEMS_TRACKING_CATEGORIES_ACCOUNT_COMPANY_ACCOUNTING_PERIOD = (
|
|
48
|
+
"line_items,tracking_categories,account,company,accounting_period"
|
|
49
|
+
)
|
|
30
50
|
LINE_ITEMS_TRACKING_CATEGORIES_ACCOUNTING_PERIOD = "line_items,tracking_categories,accounting_period"
|
|
51
|
+
LINE_ITEMS_TRACKING_CATEGORIES_COMPANY = "line_items,tracking_categories,company"
|
|
52
|
+
LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD = (
|
|
53
|
+
"line_items,tracking_categories,company,accounting_period"
|
|
54
|
+
)
|
|
31
55
|
LINE_ITEMS_TRACKING_CATEGORIES_CONTACT = "line_items,tracking_categories,contact"
|
|
32
56
|
LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_ACCOUNT = "line_items,tracking_categories,contact,account"
|
|
33
57
|
LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_ACCOUNT_ACCOUNTING_PERIOD = (
|
|
34
58
|
"line_items,tracking_categories,contact,account,accounting_period"
|
|
35
59
|
)
|
|
60
|
+
LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_ACCOUNT_COMPANY = "line_items,tracking_categories,contact,account,company"
|
|
61
|
+
LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_ACCOUNT_COMPANY_ACCOUNTING_PERIOD = (
|
|
62
|
+
"line_items,tracking_categories,contact,account,company,accounting_period"
|
|
63
|
+
)
|
|
36
64
|
LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_ACCOUNTING_PERIOD = (
|
|
37
65
|
"line_items,tracking_categories,contact,accounting_period"
|
|
38
66
|
)
|
|
67
|
+
LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY = "line_items,tracking_categories,contact,company"
|
|
68
|
+
LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_ACCOUNTING_PERIOD = (
|
|
69
|
+
"line_items,tracking_categories,contact,company,accounting_period"
|
|
70
|
+
)
|
|
39
71
|
TRACKING_CATEGORIES = "tracking_categories"
|
|
40
72
|
TRACKING_CATEGORIES_ACCOUNT = "tracking_categories,account"
|
|
41
73
|
TRACKING_CATEGORIES_ACCOUNT_ACCOUNTING_PERIOD = "tracking_categories,account,accounting_period"
|
|
74
|
+
TRACKING_CATEGORIES_ACCOUNT_COMPANY = "tracking_categories,account,company"
|
|
75
|
+
TRACKING_CATEGORIES_ACCOUNT_COMPANY_ACCOUNTING_PERIOD = "tracking_categories,account,company,accounting_period"
|
|
42
76
|
TRACKING_CATEGORIES_ACCOUNTING_PERIOD = "tracking_categories,accounting_period"
|
|
77
|
+
TRACKING_CATEGORIES_COMPANY = "tracking_categories,company"
|
|
78
|
+
TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD = "tracking_categories,company,accounting_period"
|
|
43
79
|
TRACKING_CATEGORIES_CONTACT = "tracking_categories,contact"
|
|
44
80
|
TRACKING_CATEGORIES_CONTACT_ACCOUNT = "tracking_categories,contact,account"
|
|
45
81
|
TRACKING_CATEGORIES_CONTACT_ACCOUNT_ACCOUNTING_PERIOD = "tracking_categories,contact,account,accounting_period"
|
|
82
|
+
TRACKING_CATEGORIES_CONTACT_ACCOUNT_COMPANY = "tracking_categories,contact,account,company"
|
|
83
|
+
TRACKING_CATEGORIES_CONTACT_ACCOUNT_COMPANY_ACCOUNTING_PERIOD = (
|
|
84
|
+
"tracking_categories,contact,account,company,accounting_period"
|
|
85
|
+
)
|
|
46
86
|
TRACKING_CATEGORIES_CONTACT_ACCOUNTING_PERIOD = "tracking_categories,contact,accounting_period"
|
|
87
|
+
TRACKING_CATEGORIES_CONTACT_COMPANY = "tracking_categories,contact,company"
|
|
88
|
+
TRACKING_CATEGORIES_CONTACT_COMPANY_ACCOUNTING_PERIOD = "tracking_categories,contact,company,accounting_period"
|
|
47
89
|
|
|
48
90
|
def visit(
|
|
49
91
|
self,
|
|
50
92
|
account: typing.Callable[[], T_Result],
|
|
51
93
|
account_accounting_period: typing.Callable[[], T_Result],
|
|
94
|
+
account_company: typing.Callable[[], T_Result],
|
|
95
|
+
account_company_accounting_period: typing.Callable[[], T_Result],
|
|
52
96
|
accounting_period: typing.Callable[[], T_Result],
|
|
97
|
+
company: typing.Callable[[], T_Result],
|
|
98
|
+
company_accounting_period: typing.Callable[[], T_Result],
|
|
53
99
|
contact: typing.Callable[[], T_Result],
|
|
54
100
|
contact_account: typing.Callable[[], T_Result],
|
|
55
101
|
contact_account_accounting_period: typing.Callable[[], T_Result],
|
|
102
|
+
contact_account_company: typing.Callable[[], T_Result],
|
|
103
|
+
contact_account_company_accounting_period: typing.Callable[[], T_Result],
|
|
56
104
|
contact_accounting_period: typing.Callable[[], T_Result],
|
|
105
|
+
contact_company: typing.Callable[[], T_Result],
|
|
106
|
+
contact_company_accounting_period: typing.Callable[[], T_Result],
|
|
57
107
|
line_items: typing.Callable[[], T_Result],
|
|
58
108
|
line_items_account: typing.Callable[[], T_Result],
|
|
59
109
|
line_items_account_accounting_period: typing.Callable[[], T_Result],
|
|
110
|
+
line_items_account_company: typing.Callable[[], T_Result],
|
|
111
|
+
line_items_account_company_accounting_period: typing.Callable[[], T_Result],
|
|
60
112
|
line_items_accounting_period: typing.Callable[[], T_Result],
|
|
113
|
+
line_items_company: typing.Callable[[], T_Result],
|
|
114
|
+
line_items_company_accounting_period: typing.Callable[[], T_Result],
|
|
61
115
|
line_items_contact: typing.Callable[[], T_Result],
|
|
62
116
|
line_items_contact_account: typing.Callable[[], T_Result],
|
|
63
117
|
line_items_contact_account_accounting_period: typing.Callable[[], T_Result],
|
|
118
|
+
line_items_contact_account_company: typing.Callable[[], T_Result],
|
|
119
|
+
line_items_contact_account_company_accounting_period: typing.Callable[[], T_Result],
|
|
64
120
|
line_items_contact_accounting_period: typing.Callable[[], T_Result],
|
|
121
|
+
line_items_contact_company: typing.Callable[[], T_Result],
|
|
122
|
+
line_items_contact_company_accounting_period: typing.Callable[[], T_Result],
|
|
65
123
|
line_items_tracking_categories: typing.Callable[[], T_Result],
|
|
66
124
|
line_items_tracking_categories_account: typing.Callable[[], T_Result],
|
|
67
125
|
line_items_tracking_categories_account_accounting_period: typing.Callable[[], T_Result],
|
|
126
|
+
line_items_tracking_categories_account_company: typing.Callable[[], T_Result],
|
|
127
|
+
line_items_tracking_categories_account_company_accounting_period: typing.Callable[[], T_Result],
|
|
68
128
|
line_items_tracking_categories_accounting_period: typing.Callable[[], T_Result],
|
|
129
|
+
line_items_tracking_categories_company: typing.Callable[[], T_Result],
|
|
130
|
+
line_items_tracking_categories_company_accounting_period: typing.Callable[[], T_Result],
|
|
69
131
|
line_items_tracking_categories_contact: typing.Callable[[], T_Result],
|
|
70
132
|
line_items_tracking_categories_contact_account: typing.Callable[[], T_Result],
|
|
71
133
|
line_items_tracking_categories_contact_account_accounting_period: typing.Callable[[], T_Result],
|
|
134
|
+
line_items_tracking_categories_contact_account_company: typing.Callable[[], T_Result],
|
|
135
|
+
line_items_tracking_categories_contact_account_company_accounting_period: typing.Callable[[], T_Result],
|
|
72
136
|
line_items_tracking_categories_contact_accounting_period: typing.Callable[[], T_Result],
|
|
137
|
+
line_items_tracking_categories_contact_company: typing.Callable[[], T_Result],
|
|
138
|
+
line_items_tracking_categories_contact_company_accounting_period: typing.Callable[[], T_Result],
|
|
73
139
|
tracking_categories: typing.Callable[[], T_Result],
|
|
74
140
|
tracking_categories_account: typing.Callable[[], T_Result],
|
|
75
141
|
tracking_categories_account_accounting_period: typing.Callable[[], T_Result],
|
|
142
|
+
tracking_categories_account_company: typing.Callable[[], T_Result],
|
|
143
|
+
tracking_categories_account_company_accounting_period: typing.Callable[[], T_Result],
|
|
76
144
|
tracking_categories_accounting_period: typing.Callable[[], T_Result],
|
|
145
|
+
tracking_categories_company: typing.Callable[[], T_Result],
|
|
146
|
+
tracking_categories_company_accounting_period: typing.Callable[[], T_Result],
|
|
77
147
|
tracking_categories_contact: typing.Callable[[], T_Result],
|
|
78
148
|
tracking_categories_contact_account: typing.Callable[[], T_Result],
|
|
79
149
|
tracking_categories_contact_account_accounting_period: typing.Callable[[], T_Result],
|
|
150
|
+
tracking_categories_contact_account_company: typing.Callable[[], T_Result],
|
|
151
|
+
tracking_categories_contact_account_company_accounting_period: typing.Callable[[], T_Result],
|
|
80
152
|
tracking_categories_contact_accounting_period: typing.Callable[[], T_Result],
|
|
153
|
+
tracking_categories_contact_company: typing.Callable[[], T_Result],
|
|
154
|
+
tracking_categories_contact_company_accounting_period: typing.Callable[[], T_Result],
|
|
81
155
|
) -> T_Result:
|
|
82
156
|
if self is TransactionsRetrieveRequestExpand.ACCOUNT:
|
|
83
157
|
return account()
|
|
84
158
|
if self is TransactionsRetrieveRequestExpand.ACCOUNT_ACCOUNTING_PERIOD:
|
|
85
159
|
return account_accounting_period()
|
|
160
|
+
if self is TransactionsRetrieveRequestExpand.ACCOUNT_COMPANY:
|
|
161
|
+
return account_company()
|
|
162
|
+
if self is TransactionsRetrieveRequestExpand.ACCOUNT_COMPANY_ACCOUNTING_PERIOD:
|
|
163
|
+
return account_company_accounting_period()
|
|
86
164
|
if self is TransactionsRetrieveRequestExpand.ACCOUNTING_PERIOD:
|
|
87
165
|
return accounting_period()
|
|
166
|
+
if self is TransactionsRetrieveRequestExpand.COMPANY:
|
|
167
|
+
return company()
|
|
168
|
+
if self is TransactionsRetrieveRequestExpand.COMPANY_ACCOUNTING_PERIOD:
|
|
169
|
+
return company_accounting_period()
|
|
88
170
|
if self is TransactionsRetrieveRequestExpand.CONTACT:
|
|
89
171
|
return contact()
|
|
90
172
|
if self is TransactionsRetrieveRequestExpand.CONTACT_ACCOUNT:
|
|
91
173
|
return contact_account()
|
|
92
174
|
if self is TransactionsRetrieveRequestExpand.CONTACT_ACCOUNT_ACCOUNTING_PERIOD:
|
|
93
175
|
return contact_account_accounting_period()
|
|
176
|
+
if self is TransactionsRetrieveRequestExpand.CONTACT_ACCOUNT_COMPANY:
|
|
177
|
+
return contact_account_company()
|
|
178
|
+
if self is TransactionsRetrieveRequestExpand.CONTACT_ACCOUNT_COMPANY_ACCOUNTING_PERIOD:
|
|
179
|
+
return contact_account_company_accounting_period()
|
|
94
180
|
if self is TransactionsRetrieveRequestExpand.CONTACT_ACCOUNTING_PERIOD:
|
|
95
181
|
return contact_accounting_period()
|
|
182
|
+
if self is TransactionsRetrieveRequestExpand.CONTACT_COMPANY:
|
|
183
|
+
return contact_company()
|
|
184
|
+
if self is TransactionsRetrieveRequestExpand.CONTACT_COMPANY_ACCOUNTING_PERIOD:
|
|
185
|
+
return contact_company_accounting_period()
|
|
96
186
|
if self is TransactionsRetrieveRequestExpand.LINE_ITEMS:
|
|
97
187
|
return line_items()
|
|
98
188
|
if self is TransactionsRetrieveRequestExpand.LINE_ITEMS_ACCOUNT:
|
|
99
189
|
return line_items_account()
|
|
100
190
|
if self is TransactionsRetrieveRequestExpand.LINE_ITEMS_ACCOUNT_ACCOUNTING_PERIOD:
|
|
101
191
|
return line_items_account_accounting_period()
|
|
192
|
+
if self is TransactionsRetrieveRequestExpand.LINE_ITEMS_ACCOUNT_COMPANY:
|
|
193
|
+
return line_items_account_company()
|
|
194
|
+
if self is TransactionsRetrieveRequestExpand.LINE_ITEMS_ACCOUNT_COMPANY_ACCOUNTING_PERIOD:
|
|
195
|
+
return line_items_account_company_accounting_period()
|
|
102
196
|
if self is TransactionsRetrieveRequestExpand.LINE_ITEMS_ACCOUNTING_PERIOD:
|
|
103
197
|
return line_items_accounting_period()
|
|
198
|
+
if self is TransactionsRetrieveRequestExpand.LINE_ITEMS_COMPANY:
|
|
199
|
+
return line_items_company()
|
|
200
|
+
if self is TransactionsRetrieveRequestExpand.LINE_ITEMS_COMPANY_ACCOUNTING_PERIOD:
|
|
201
|
+
return line_items_company_accounting_period()
|
|
104
202
|
if self is TransactionsRetrieveRequestExpand.LINE_ITEMS_CONTACT:
|
|
105
203
|
return line_items_contact()
|
|
106
204
|
if self is TransactionsRetrieveRequestExpand.LINE_ITEMS_CONTACT_ACCOUNT:
|
|
107
205
|
return line_items_contact_account()
|
|
108
206
|
if self is TransactionsRetrieveRequestExpand.LINE_ITEMS_CONTACT_ACCOUNT_ACCOUNTING_PERIOD:
|
|
109
207
|
return line_items_contact_account_accounting_period()
|
|
208
|
+
if self is TransactionsRetrieveRequestExpand.LINE_ITEMS_CONTACT_ACCOUNT_COMPANY:
|
|
209
|
+
return line_items_contact_account_company()
|
|
210
|
+
if self is TransactionsRetrieveRequestExpand.LINE_ITEMS_CONTACT_ACCOUNT_COMPANY_ACCOUNTING_PERIOD:
|
|
211
|
+
return line_items_contact_account_company_accounting_period()
|
|
110
212
|
if self is TransactionsRetrieveRequestExpand.LINE_ITEMS_CONTACT_ACCOUNTING_PERIOD:
|
|
111
213
|
return line_items_contact_accounting_period()
|
|
214
|
+
if self is TransactionsRetrieveRequestExpand.LINE_ITEMS_CONTACT_COMPANY:
|
|
215
|
+
return line_items_contact_company()
|
|
216
|
+
if self is TransactionsRetrieveRequestExpand.LINE_ITEMS_CONTACT_COMPANY_ACCOUNTING_PERIOD:
|
|
217
|
+
return line_items_contact_company_accounting_period()
|
|
112
218
|
if self is TransactionsRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES:
|
|
113
219
|
return line_items_tracking_categories()
|
|
114
220
|
if self is TransactionsRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_ACCOUNT:
|
|
115
221
|
return line_items_tracking_categories_account()
|
|
116
222
|
if self is TransactionsRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_ACCOUNT_ACCOUNTING_PERIOD:
|
|
117
223
|
return line_items_tracking_categories_account_accounting_period()
|
|
224
|
+
if self is TransactionsRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_ACCOUNT_COMPANY:
|
|
225
|
+
return line_items_tracking_categories_account_company()
|
|
226
|
+
if self is TransactionsRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_ACCOUNT_COMPANY_ACCOUNTING_PERIOD:
|
|
227
|
+
return line_items_tracking_categories_account_company_accounting_period()
|
|
118
228
|
if self is TransactionsRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_ACCOUNTING_PERIOD:
|
|
119
229
|
return line_items_tracking_categories_accounting_period()
|
|
230
|
+
if self is TransactionsRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_COMPANY:
|
|
231
|
+
return line_items_tracking_categories_company()
|
|
232
|
+
if self is TransactionsRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD:
|
|
233
|
+
return line_items_tracking_categories_company_accounting_period()
|
|
120
234
|
if self is TransactionsRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_CONTACT:
|
|
121
235
|
return line_items_tracking_categories_contact()
|
|
122
236
|
if self is TransactionsRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_ACCOUNT:
|
|
123
237
|
return line_items_tracking_categories_contact_account()
|
|
124
238
|
if self is TransactionsRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_ACCOUNT_ACCOUNTING_PERIOD:
|
|
125
239
|
return line_items_tracking_categories_contact_account_accounting_period()
|
|
240
|
+
if self is TransactionsRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_ACCOUNT_COMPANY:
|
|
241
|
+
return line_items_tracking_categories_contact_account_company()
|
|
242
|
+
if (
|
|
243
|
+
self
|
|
244
|
+
is TransactionsRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_ACCOUNT_COMPANY_ACCOUNTING_PERIOD
|
|
245
|
+
):
|
|
246
|
+
return line_items_tracking_categories_contact_account_company_accounting_period()
|
|
126
247
|
if self is TransactionsRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_ACCOUNTING_PERIOD:
|
|
127
248
|
return line_items_tracking_categories_contact_accounting_period()
|
|
249
|
+
if self is TransactionsRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY:
|
|
250
|
+
return line_items_tracking_categories_contact_company()
|
|
251
|
+
if self is TransactionsRetrieveRequestExpand.LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_ACCOUNTING_PERIOD:
|
|
252
|
+
return line_items_tracking_categories_contact_company_accounting_period()
|
|
128
253
|
if self is TransactionsRetrieveRequestExpand.TRACKING_CATEGORIES:
|
|
129
254
|
return tracking_categories()
|
|
130
255
|
if self is TransactionsRetrieveRequestExpand.TRACKING_CATEGORIES_ACCOUNT:
|
|
131
256
|
return tracking_categories_account()
|
|
132
257
|
if self is TransactionsRetrieveRequestExpand.TRACKING_CATEGORIES_ACCOUNT_ACCOUNTING_PERIOD:
|
|
133
258
|
return tracking_categories_account_accounting_period()
|
|
259
|
+
if self is TransactionsRetrieveRequestExpand.TRACKING_CATEGORIES_ACCOUNT_COMPANY:
|
|
260
|
+
return tracking_categories_account_company()
|
|
261
|
+
if self is TransactionsRetrieveRequestExpand.TRACKING_CATEGORIES_ACCOUNT_COMPANY_ACCOUNTING_PERIOD:
|
|
262
|
+
return tracking_categories_account_company_accounting_period()
|
|
134
263
|
if self is TransactionsRetrieveRequestExpand.TRACKING_CATEGORIES_ACCOUNTING_PERIOD:
|
|
135
264
|
return tracking_categories_accounting_period()
|
|
265
|
+
if self is TransactionsRetrieveRequestExpand.TRACKING_CATEGORIES_COMPANY:
|
|
266
|
+
return tracking_categories_company()
|
|
267
|
+
if self is TransactionsRetrieveRequestExpand.TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD:
|
|
268
|
+
return tracking_categories_company_accounting_period()
|
|
136
269
|
if self is TransactionsRetrieveRequestExpand.TRACKING_CATEGORIES_CONTACT:
|
|
137
270
|
return tracking_categories_contact()
|
|
138
271
|
if self is TransactionsRetrieveRequestExpand.TRACKING_CATEGORIES_CONTACT_ACCOUNT:
|
|
139
272
|
return tracking_categories_contact_account()
|
|
140
273
|
if self is TransactionsRetrieveRequestExpand.TRACKING_CATEGORIES_CONTACT_ACCOUNT_ACCOUNTING_PERIOD:
|
|
141
274
|
return tracking_categories_contact_account_accounting_period()
|
|
275
|
+
if self is TransactionsRetrieveRequestExpand.TRACKING_CATEGORIES_CONTACT_ACCOUNT_COMPANY:
|
|
276
|
+
return tracking_categories_contact_account_company()
|
|
277
|
+
if self is TransactionsRetrieveRequestExpand.TRACKING_CATEGORIES_CONTACT_ACCOUNT_COMPANY_ACCOUNTING_PERIOD:
|
|
278
|
+
return tracking_categories_contact_account_company_accounting_period()
|
|
142
279
|
if self is TransactionsRetrieveRequestExpand.TRACKING_CATEGORIES_CONTACT_ACCOUNTING_PERIOD:
|
|
143
280
|
return tracking_categories_contact_accounting_period()
|
|
281
|
+
if self is TransactionsRetrieveRequestExpand.TRACKING_CATEGORIES_CONTACT_COMPANY:
|
|
282
|
+
return tracking_categories_contact_company()
|
|
283
|
+
if self is TransactionsRetrieveRequestExpand.TRACKING_CATEGORIES_CONTACT_COMPANY_ACCOUNTING_PERIOD:
|
|
284
|
+
return tracking_categories_contact_company_accounting_period()
|
|
@@ -115,7 +115,9 @@ class VendorCreditsClient:
|
|
|
115
115
|
account_token="YOUR_ACCOUNT_TOKEN",
|
|
116
116
|
api_key="YOUR_API_KEY",
|
|
117
117
|
)
|
|
118
|
-
client.accounting.vendor_credits.list(
|
|
118
|
+
client.accounting.vendor_credits.list(
|
|
119
|
+
cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw",
|
|
120
|
+
)
|
|
119
121
|
"""
|
|
120
122
|
_response = self._raw_client.list(
|
|
121
123
|
company_id=company_id,
|
|
@@ -367,7 +369,9 @@ class AsyncVendorCreditsClient:
|
|
|
367
369
|
|
|
368
370
|
|
|
369
371
|
async def main() -> None:
|
|
370
|
-
await client.accounting.vendor_credits.list(
|
|
372
|
+
await client.accounting.vendor_credits.list(
|
|
373
|
+
cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw",
|
|
374
|
+
)
|
|
371
375
|
|
|
372
376
|
|
|
373
377
|
asyncio.run(main())
|