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
|
@@ -0,0 +1,401 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import datetime as dt
|
|
4
|
+
import typing
|
|
5
|
+
|
|
6
|
+
import pydantic
|
|
7
|
+
from ....core.pydantic_utilities import IS_PYDANTIC_V2
|
|
8
|
+
from ....core.unchecked_base_model import UncheckedBaseModel
|
|
9
|
+
from .expense_report_request_accounting_period import ExpenseReportRequestAccountingPeriod
|
|
10
|
+
from .expense_report_request_company import ExpenseReportRequestCompany
|
|
11
|
+
from .expense_report_request_employee import ExpenseReportRequestEmployee
|
|
12
|
+
from .expense_report_status_enum import ExpenseReportStatusEnum
|
|
13
|
+
from .remote_field_request import RemoteFieldRequest
|
|
14
|
+
from .transaction_currency_enum import TransactionCurrencyEnum
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
class ExpenseReportRequest(UncheckedBaseModel):
|
|
18
|
+
"""
|
|
19
|
+
# The ExpenseReport Object
|
|
20
|
+
### Description
|
|
21
|
+
The `ExpenseReport` object represents a collection of expenses submitted for review and reimbursement.
|
|
22
|
+
It includes details about the submitter, status, amounts, and associated metadata.
|
|
23
|
+
|
|
24
|
+
### Usage Example
|
|
25
|
+
Fetch from the `GET ExpenseReport` endpoint to view details of expense reports and their line items.
|
|
26
|
+
"""
|
|
27
|
+
|
|
28
|
+
report_date: typing.Optional[dt.datetime] = pydantic.Field(default=None)
|
|
29
|
+
"""
|
|
30
|
+
The date of the expense report.
|
|
31
|
+
"""
|
|
32
|
+
|
|
33
|
+
report_identifier: typing.Optional[str] = pydantic.Field(default=None)
|
|
34
|
+
"""
|
|
35
|
+
Human-readable expense report identifier.
|
|
36
|
+
"""
|
|
37
|
+
|
|
38
|
+
employee: typing.Optional[ExpenseReportRequestEmployee] = pydantic.Field(default=None)
|
|
39
|
+
"""
|
|
40
|
+
Identifier for the employee who submitted or is associated with the expense report
|
|
41
|
+
"""
|
|
42
|
+
|
|
43
|
+
status: typing.Optional[ExpenseReportStatusEnum] = pydantic.Field(default=None)
|
|
44
|
+
"""
|
|
45
|
+
Overall status of the expense report. One of DRAFT, SUBMITTED, APPROVED, REJECTED
|
|
46
|
+
|
|
47
|
+
* `DRAFT` - DRAFT
|
|
48
|
+
* `SUBMITTED` - SUBMITTED
|
|
49
|
+
* `APPROVED` - APPROVED
|
|
50
|
+
* `REJECTED` - REJECTED
|
|
51
|
+
"""
|
|
52
|
+
|
|
53
|
+
total_amount: typing.Optional[float] = pydantic.Field(default=None)
|
|
54
|
+
"""
|
|
55
|
+
Total amount of the expense report
|
|
56
|
+
"""
|
|
57
|
+
|
|
58
|
+
currency: typing.Optional[TransactionCurrencyEnum] = pydantic.Field(default=None)
|
|
59
|
+
"""
|
|
60
|
+
Currency code for the expense report
|
|
61
|
+
|
|
62
|
+
* `XUA` - ADB Unit of Account
|
|
63
|
+
* `AFN` - Afghan Afghani
|
|
64
|
+
* `AFA` - Afghan Afghani (1927–2002)
|
|
65
|
+
* `ALL` - Albanian Lek
|
|
66
|
+
* `ALK` - Albanian Lek (1946–1965)
|
|
67
|
+
* `DZD` - Algerian Dinar
|
|
68
|
+
* `ADP` - Andorran Peseta
|
|
69
|
+
* `AOA` - Angolan Kwanza
|
|
70
|
+
* `AOK` - Angolan Kwanza (1977–1991)
|
|
71
|
+
* `AON` - Angolan New Kwanza (1990–2000)
|
|
72
|
+
* `AOR` - Angolan Readjusted Kwanza (1995–1999)
|
|
73
|
+
* `ARA` - Argentine Austral
|
|
74
|
+
* `ARS` - Argentine Peso
|
|
75
|
+
* `ARM` - Argentine Peso (1881–1970)
|
|
76
|
+
* `ARP` - Argentine Peso (1983–1985)
|
|
77
|
+
* `ARL` - Argentine Peso Ley (1970–1983)
|
|
78
|
+
* `AMD` - Armenian Dram
|
|
79
|
+
* `AWG` - Aruban Florin
|
|
80
|
+
* `AUD` - Australian Dollar
|
|
81
|
+
* `ATS` - Austrian Schilling
|
|
82
|
+
* `AZN` - Azerbaijani Manat
|
|
83
|
+
* `AZM` - Azerbaijani Manat (1993–2006)
|
|
84
|
+
* `BSD` - Bahamian Dollar
|
|
85
|
+
* `BHD` - Bahraini Dinar
|
|
86
|
+
* `BDT` - Bangladeshi Taka
|
|
87
|
+
* `BBD` - Barbadian Dollar
|
|
88
|
+
* `BYN` - Belarusian Ruble
|
|
89
|
+
* `BYB` - Belarusian Ruble (1994–1999)
|
|
90
|
+
* `BYR` - Belarusian Ruble (2000–2016)
|
|
91
|
+
* `BEF` - Belgian Franc
|
|
92
|
+
* `BEC` - Belgian Franc (convertible)
|
|
93
|
+
* `BEL` - Belgian Franc (financial)
|
|
94
|
+
* `BZD` - Belize Dollar
|
|
95
|
+
* `BMD` - Bermudan Dollar
|
|
96
|
+
* `BTN` - Bhutanese Ngultrum
|
|
97
|
+
* `BOB` - Bolivian Boliviano
|
|
98
|
+
* `BOL` - Bolivian Boliviano (1863–1963)
|
|
99
|
+
* `BOV` - Bolivian Mvdol
|
|
100
|
+
* `BOP` - Bolivian Peso
|
|
101
|
+
* `BAM` - Bosnia-Herzegovina Convertible Mark
|
|
102
|
+
* `BAD` - Bosnia-Herzegovina Dinar (1992–1994)
|
|
103
|
+
* `BAN` - Bosnia-Herzegovina New Dinar (1994–1997)
|
|
104
|
+
* `BWP` - Botswanan Pula
|
|
105
|
+
* `BRC` - Brazilian Cruzado (1986–1989)
|
|
106
|
+
* `BRZ` - Brazilian Cruzeiro (1942–1967)
|
|
107
|
+
* `BRE` - Brazilian Cruzeiro (1990–1993)
|
|
108
|
+
* `BRR` - Brazilian Cruzeiro (1993–1994)
|
|
109
|
+
* `BRN` - Brazilian New Cruzado (1989–1990)
|
|
110
|
+
* `BRB` - Brazilian New Cruzeiro (1967–1986)
|
|
111
|
+
* `BRL` - Brazilian Real
|
|
112
|
+
* `GBP` - British Pound
|
|
113
|
+
* `BND` - Brunei Dollar
|
|
114
|
+
* `BGL` - Bulgarian Hard Lev
|
|
115
|
+
* `BGN` - Bulgarian Lev
|
|
116
|
+
* `BGO` - Bulgarian Lev (1879–1952)
|
|
117
|
+
* `BGM` - Bulgarian Socialist Lev
|
|
118
|
+
* `BUK` - Burmese Kyat
|
|
119
|
+
* `BIF` - Burundian Franc
|
|
120
|
+
* `XPF` - CFP Franc
|
|
121
|
+
* `KHR` - Cambodian Riel
|
|
122
|
+
* `CAD` - Canadian Dollar
|
|
123
|
+
* `CVE` - Cape Verdean Escudo
|
|
124
|
+
* `KYD` - Cayman Islands Dollar
|
|
125
|
+
* `XAF` - Central African CFA Franc
|
|
126
|
+
* `CLE` - Chilean Escudo
|
|
127
|
+
* `CLP` - Chilean Peso
|
|
128
|
+
* `CLF` - Chilean Unit of Account (UF)
|
|
129
|
+
* `CNX` - Chinese People’s Bank Dollar
|
|
130
|
+
* `CNY` - Chinese Yuan
|
|
131
|
+
* `CNH` - Chinese Yuan (offshore)
|
|
132
|
+
* `COP` - Colombian Peso
|
|
133
|
+
* `COU` - Colombian Real Value Unit
|
|
134
|
+
* `KMF` - Comorian Franc
|
|
135
|
+
* `CDF` - Congolese Franc
|
|
136
|
+
* `CRC` - Costa Rican Colón
|
|
137
|
+
* `HRD` - Croatian Dinar
|
|
138
|
+
* `HRK` - Croatian Kuna
|
|
139
|
+
* `CUC` - Cuban Convertible Peso
|
|
140
|
+
* `CUP` - Cuban Peso
|
|
141
|
+
* `CYP` - Cypriot Pound
|
|
142
|
+
* `CZK` - Czech Koruna
|
|
143
|
+
* `CSK` - Czechoslovak Hard Koruna
|
|
144
|
+
* `DKK` - Danish Krone
|
|
145
|
+
* `DJF` - Djiboutian Franc
|
|
146
|
+
* `DOP` - Dominican Peso
|
|
147
|
+
* `NLG` - Dutch Guilder
|
|
148
|
+
* `XCD` - East Caribbean Dollar
|
|
149
|
+
* `DDM` - East German Mark
|
|
150
|
+
* `ECS` - Ecuadorian Sucre
|
|
151
|
+
* `ECV` - Ecuadorian Unit of Constant Value
|
|
152
|
+
* `EGP` - Egyptian Pound
|
|
153
|
+
* `GQE` - Equatorial Guinean Ekwele
|
|
154
|
+
* `ERN` - Eritrean Nakfa
|
|
155
|
+
* `EEK` - Estonian Kroon
|
|
156
|
+
* `ETB` - Ethiopian Birr
|
|
157
|
+
* `EUR` - Euro
|
|
158
|
+
* `XBA` - European Composite Unit
|
|
159
|
+
* `XEU` - European Currency Unit
|
|
160
|
+
* `XBB` - European Monetary Unit
|
|
161
|
+
* `XBC` - European Unit of Account (XBC)
|
|
162
|
+
* `XBD` - European Unit of Account (XBD)
|
|
163
|
+
* `FKP` - Falkland Islands Pound
|
|
164
|
+
* `FJD` - Fijian Dollar
|
|
165
|
+
* `FIM` - Finnish Markka
|
|
166
|
+
* `FRF` - French Franc
|
|
167
|
+
* `XFO` - French Gold Franc
|
|
168
|
+
* `XFU` - French UIC-Franc
|
|
169
|
+
* `GMD` - Gambian Dalasi
|
|
170
|
+
* `GEK` - Georgian Kupon Larit
|
|
171
|
+
* `GEL` - Georgian Lari
|
|
172
|
+
* `DEM` - German Mark
|
|
173
|
+
* `GHS` - Ghanaian Cedi
|
|
174
|
+
* `GHC` - Ghanaian Cedi (1979–2007)
|
|
175
|
+
* `GIP` - Gibraltar Pound
|
|
176
|
+
* `XAU` - Gold
|
|
177
|
+
* `GRD` - Greek Drachma
|
|
178
|
+
* `GTQ` - Guatemalan Quetzal
|
|
179
|
+
* `GWP` - Guinea-Bissau Peso
|
|
180
|
+
* `GNF` - Guinean Franc
|
|
181
|
+
* `GNS` - Guinean Syli
|
|
182
|
+
* `GYD` - Guyanaese Dollar
|
|
183
|
+
* `HTG` - Haitian Gourde
|
|
184
|
+
* `HNL` - Honduran Lempira
|
|
185
|
+
* `HKD` - Hong Kong Dollar
|
|
186
|
+
* `HUF` - Hungarian Forint
|
|
187
|
+
* `IMP` - IMP
|
|
188
|
+
* `ISK` - Icelandic Króna
|
|
189
|
+
* `ISJ` - Icelandic Króna (1918–1981)
|
|
190
|
+
* `INR` - Indian Rupee
|
|
191
|
+
* `IDR` - Indonesian Rupiah
|
|
192
|
+
* `IRR` - Iranian Rial
|
|
193
|
+
* `IQD` - Iraqi Dinar
|
|
194
|
+
* `IEP` - Irish Pound
|
|
195
|
+
* `ILS` - Israeli New Shekel
|
|
196
|
+
* `ILP` - Israeli Pound
|
|
197
|
+
* `ILR` - Israeli Shekel (1980–1985)
|
|
198
|
+
* `ITL` - Italian Lira
|
|
199
|
+
* `JMD` - Jamaican Dollar
|
|
200
|
+
* `JPY` - Japanese Yen
|
|
201
|
+
* `JOD` - Jordanian Dinar
|
|
202
|
+
* `KZT` - Kazakhstani Tenge
|
|
203
|
+
* `KES` - Kenyan Shilling
|
|
204
|
+
* `KWD` - Kuwaiti Dinar
|
|
205
|
+
* `KGS` - Kyrgystani Som
|
|
206
|
+
* `LAK` - Laotian Kip
|
|
207
|
+
* `LVL` - Latvian Lats
|
|
208
|
+
* `LVR` - Latvian Ruble
|
|
209
|
+
* `LBP` - Lebanese Pound
|
|
210
|
+
* `LSL` - Lesotho Loti
|
|
211
|
+
* `LRD` - Liberian Dollar
|
|
212
|
+
* `LYD` - Libyan Dinar
|
|
213
|
+
* `LTL` - Lithuanian Litas
|
|
214
|
+
* `LTT` - Lithuanian Talonas
|
|
215
|
+
* `LUL` - Luxembourg Financial Franc
|
|
216
|
+
* `LUC` - Luxembourgian Convertible Franc
|
|
217
|
+
* `LUF` - Luxembourgian Franc
|
|
218
|
+
* `MOP` - Macanese Pataca
|
|
219
|
+
* `MKD` - Macedonian Denar
|
|
220
|
+
* `MKN` - Macedonian Denar (1992–1993)
|
|
221
|
+
* `MGA` - Malagasy Ariary
|
|
222
|
+
* `MGF` - Malagasy Franc
|
|
223
|
+
* `MWK` - Malawian Kwacha
|
|
224
|
+
* `MYR` - Malaysian Ringgit
|
|
225
|
+
* `MVR` - Maldivian Rufiyaa
|
|
226
|
+
* `MVP` - Maldivian Rupee (1947–1981)
|
|
227
|
+
* `MLF` - Malian Franc
|
|
228
|
+
* `MTL` - Maltese Lira
|
|
229
|
+
* `MTP` - Maltese Pound
|
|
230
|
+
* `MRU` - Mauritanian Ouguiya
|
|
231
|
+
* `MRO` - Mauritanian Ouguiya (1973–2017)
|
|
232
|
+
* `MUR` - Mauritian Rupee
|
|
233
|
+
* `MXV` - Mexican Investment Unit
|
|
234
|
+
* `MXN` - Mexican Peso
|
|
235
|
+
* `MXP` - Mexican Silver Peso (1861–1992)
|
|
236
|
+
* `MDC` - Moldovan Cupon
|
|
237
|
+
* `MDL` - Moldovan Leu
|
|
238
|
+
* `MCF` - Monegasque Franc
|
|
239
|
+
* `MNT` - Mongolian Tugrik
|
|
240
|
+
* `MAD` - Moroccan Dirham
|
|
241
|
+
* `MAF` - Moroccan Franc
|
|
242
|
+
* `MZE` - Mozambican Escudo
|
|
243
|
+
* `MZN` - Mozambican Metical
|
|
244
|
+
* `MZM` - Mozambican Metical (1980–2006)
|
|
245
|
+
* `MMK` - Myanmar Kyat
|
|
246
|
+
* `NAD` - Namibian Dollar
|
|
247
|
+
* `NPR` - Nepalese Rupee
|
|
248
|
+
* `ANG` - Netherlands Antillean Guilder
|
|
249
|
+
* `TWD` - New Taiwan Dollar
|
|
250
|
+
* `NZD` - New Zealand Dollar
|
|
251
|
+
* `NIO` - Nicaraguan Córdoba
|
|
252
|
+
* `NIC` - Nicaraguan Córdoba (1988–1991)
|
|
253
|
+
* `NGN` - Nigerian Naira
|
|
254
|
+
* `KPW` - North Korean Won
|
|
255
|
+
* `NOK` - Norwegian Krone
|
|
256
|
+
* `OMR` - Omani Rial
|
|
257
|
+
* `PKR` - Pakistani Rupee
|
|
258
|
+
* `XPD` - Palladium
|
|
259
|
+
* `PAB` - Panamanian Balboa
|
|
260
|
+
* `PGK` - Papua New Guinean Kina
|
|
261
|
+
* `PYG` - Paraguayan Guarani
|
|
262
|
+
* `PEI` - Peruvian Inti
|
|
263
|
+
* `PEN` - Peruvian Sol
|
|
264
|
+
* `PES` - Peruvian Sol (1863–1965)
|
|
265
|
+
* `PHP` - Philippine Peso
|
|
266
|
+
* `XPT` - Platinum
|
|
267
|
+
* `PLN` - Polish Zloty
|
|
268
|
+
* `PLZ` - Polish Zloty (1950–1995)
|
|
269
|
+
* `PTE` - Portuguese Escudo
|
|
270
|
+
* `GWE` - Portuguese Guinea Escudo
|
|
271
|
+
* `QAR` - Qatari Rial
|
|
272
|
+
* `XRE` - RINET Funds
|
|
273
|
+
* `RHD` - Rhodesian Dollar
|
|
274
|
+
* `RON` - Romanian Leu
|
|
275
|
+
* `ROL` - Romanian Leu (1952–2006)
|
|
276
|
+
* `RUB` - Russian Ruble
|
|
277
|
+
* `RUR` - Russian Ruble (1991–1998)
|
|
278
|
+
* `RWF` - Rwandan Franc
|
|
279
|
+
* `SVC` - Salvadoran Colón
|
|
280
|
+
* `WST` - Samoan Tala
|
|
281
|
+
* `SAR` - Saudi Riyal
|
|
282
|
+
* `RSD` - Serbian Dinar
|
|
283
|
+
* `CSD` - Serbian Dinar (2002–2006)
|
|
284
|
+
* `SCR` - Seychellois Rupee
|
|
285
|
+
* `SLL` - Sierra Leonean Leone
|
|
286
|
+
* `XAG` - Silver
|
|
287
|
+
* `SGD` - Singapore Dollar
|
|
288
|
+
* `SKK` - Slovak Koruna
|
|
289
|
+
* `SIT` - Slovenian Tolar
|
|
290
|
+
* `SBD` - Solomon Islands Dollar
|
|
291
|
+
* `SOS` - Somali Shilling
|
|
292
|
+
* `ZAR` - South African Rand
|
|
293
|
+
* `ZAL` - South African Rand (financial)
|
|
294
|
+
* `KRH` - South Korean Hwan (1953–1962)
|
|
295
|
+
* `KRW` - South Korean Won
|
|
296
|
+
* `KRO` - South Korean Won (1945–1953)
|
|
297
|
+
* `SSP` - South Sudanese Pound
|
|
298
|
+
* `SUR` - Soviet Rouble
|
|
299
|
+
* `ESP` - Spanish Peseta
|
|
300
|
+
* `ESA` - Spanish Peseta (A account)
|
|
301
|
+
* `ESB` - Spanish Peseta (convertible account)
|
|
302
|
+
* `XDR` - Special Drawing Rights
|
|
303
|
+
* `LKR` - Sri Lankan Rupee
|
|
304
|
+
* `SHP` - St. Helena Pound
|
|
305
|
+
* `XSU` - Sucre
|
|
306
|
+
* `SDD` - Sudanese Dinar (1992–2007)
|
|
307
|
+
* `SDG` - Sudanese Pound
|
|
308
|
+
* `SDP` - Sudanese Pound (1957–1998)
|
|
309
|
+
* `SRD` - Surinamese Dollar
|
|
310
|
+
* `SRG` - Surinamese Guilder
|
|
311
|
+
* `SZL` - Swazi Lilangeni
|
|
312
|
+
* `SEK` - Swedish Krona
|
|
313
|
+
* `CHF` - Swiss Franc
|
|
314
|
+
* `SYP` - Syrian Pound
|
|
315
|
+
* `STN` - São Tomé & Príncipe Dobra
|
|
316
|
+
* `STD` - São Tomé & Príncipe Dobra (1977–2017)
|
|
317
|
+
* `TVD` - TVD
|
|
318
|
+
* `TJR` - Tajikistani Ruble
|
|
319
|
+
* `TJS` - Tajikistani Somoni
|
|
320
|
+
* `TZS` - Tanzanian Shilling
|
|
321
|
+
* `XTS` - Testing Currency Code
|
|
322
|
+
* `THB` - Thai Baht
|
|
323
|
+
* `XXX` - The codes assigned for transactions where no currency is involved
|
|
324
|
+
* `TPE` - Timorese Escudo
|
|
325
|
+
* `TOP` - Tongan Paʻanga
|
|
326
|
+
* `TTD` - Trinidad & Tobago Dollar
|
|
327
|
+
* `TND` - Tunisian Dinar
|
|
328
|
+
* `TRY` - Turkish Lira
|
|
329
|
+
* `TRL` - Turkish Lira (1922–2005)
|
|
330
|
+
* `TMT` - Turkmenistani Manat
|
|
331
|
+
* `TMM` - Turkmenistani Manat (1993–2009)
|
|
332
|
+
* `USD` - US Dollar
|
|
333
|
+
* `USN` - US Dollar (Next day)
|
|
334
|
+
* `USS` - US Dollar (Same day)
|
|
335
|
+
* `UGX` - Ugandan Shilling
|
|
336
|
+
* `UGS` - Ugandan Shilling (1966–1987)
|
|
337
|
+
* `UAH` - Ukrainian Hryvnia
|
|
338
|
+
* `UAK` - Ukrainian Karbovanets
|
|
339
|
+
* `AED` - United Arab Emirates Dirham
|
|
340
|
+
* `UYW` - Uruguayan Nominal Wage Index Unit
|
|
341
|
+
* `UYU` - Uruguayan Peso
|
|
342
|
+
* `UYP` - Uruguayan Peso (1975–1993)
|
|
343
|
+
* `UYI` - Uruguayan Peso (Indexed Units)
|
|
344
|
+
* `UZS` - Uzbekistani Som
|
|
345
|
+
* `VUV` - Vanuatu Vatu
|
|
346
|
+
* `VES` - Venezuelan Bolívar
|
|
347
|
+
* `VEB` - Venezuelan Bolívar (1871–2008)
|
|
348
|
+
* `VEF` - Venezuelan Bolívar (2008–2018)
|
|
349
|
+
* `VND` - Vietnamese Dong
|
|
350
|
+
* `VNN` - Vietnamese Dong (1978–1985)
|
|
351
|
+
* `CHE` - WIR Euro
|
|
352
|
+
* `CHW` - WIR Franc
|
|
353
|
+
* `XOF` - West African CFA Franc
|
|
354
|
+
* `YDD` - Yemeni Dinar
|
|
355
|
+
* `YER` - Yemeni Rial
|
|
356
|
+
* `YUN` - Yugoslavian Convertible Dinar (1990–1992)
|
|
357
|
+
* `YUD` - Yugoslavian Hard Dinar (1966–1990)
|
|
358
|
+
* `YUM` - Yugoslavian New Dinar (1994–2002)
|
|
359
|
+
* `YUR` - Yugoslavian Reformed Dinar (1992–1993)
|
|
360
|
+
* `ZWN` - ZWN
|
|
361
|
+
* `ZRN` - Zairean New Zaire (1993–1998)
|
|
362
|
+
* `ZRZ` - Zairean Zaire (1971–1993)
|
|
363
|
+
* `ZMW` - Zambian Kwacha
|
|
364
|
+
* `ZMK` - Zambian Kwacha (1968–2012)
|
|
365
|
+
* `ZWD` - Zimbabwean Dollar (1980–2008)
|
|
366
|
+
* `ZWR` - Zimbabwean Dollar (2008)
|
|
367
|
+
* `ZWL` - Zimbabwean Dollar (2009)
|
|
368
|
+
"""
|
|
369
|
+
|
|
370
|
+
description: typing.Optional[str] = pydantic.Field(default=None)
|
|
371
|
+
"""
|
|
372
|
+
A brief description or purpose for the expense report
|
|
373
|
+
"""
|
|
374
|
+
|
|
375
|
+
accounting_period: typing.Optional[ExpenseReportRequestAccountingPeriod] = pydantic.Field(default=None)
|
|
376
|
+
"""
|
|
377
|
+
The accounting period the report was posted in
|
|
378
|
+
"""
|
|
379
|
+
|
|
380
|
+
company: typing.Optional[ExpenseReportRequestCompany] = pydantic.Field(default=None)
|
|
381
|
+
"""
|
|
382
|
+
The subsidiary that the expense report is created in
|
|
383
|
+
"""
|
|
384
|
+
|
|
385
|
+
tracking_categories: typing.List[str] = pydantic.Field()
|
|
386
|
+
"""
|
|
387
|
+
The related tracking categories associated with the expense report
|
|
388
|
+
"""
|
|
389
|
+
|
|
390
|
+
integration_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None
|
|
391
|
+
linked_account_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None
|
|
392
|
+
remote_fields: typing.Optional[typing.List[RemoteFieldRequest]] = None
|
|
393
|
+
|
|
394
|
+
if IS_PYDANTIC_V2:
|
|
395
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
396
|
+
else:
|
|
397
|
+
|
|
398
|
+
class Config:
|
|
399
|
+
frozen = True
|
|
400
|
+
smart_union = True
|
|
401
|
+
extra = pydantic.Extra.allow
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
|
|
5
|
+
import pydantic
|
|
6
|
+
from ....core.pydantic_utilities import IS_PYDANTIC_V2
|
|
7
|
+
from ....core.unchecked_base_model import UncheckedBaseModel
|
|
8
|
+
from .debug_mode_log import DebugModeLog
|
|
9
|
+
from .error_validation_problem import ErrorValidationProblem
|
|
10
|
+
from .expense_report import ExpenseReport
|
|
11
|
+
from .warning_validation_problem import WarningValidationProblem
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class ExpenseReportResponse(UncheckedBaseModel):
|
|
15
|
+
model: ExpenseReport
|
|
16
|
+
warnings: typing.List[WarningValidationProblem]
|
|
17
|
+
errors: typing.List[ErrorValidationProblem]
|
|
18
|
+
logs: typing.Optional[typing.List[DebugModeLog]] = None
|
|
19
|
+
|
|
20
|
+
if IS_PYDANTIC_V2:
|
|
21
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
22
|
+
else:
|
|
23
|
+
|
|
24
|
+
class Config:
|
|
25
|
+
frozen = True
|
|
26
|
+
smart_union = True
|
|
27
|
+
extra = pydantic.Extra.allow
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import enum
|
|
4
|
+
import typing
|
|
5
|
+
|
|
6
|
+
T_Result = typing.TypeVar("T_Result")
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class ExpenseReportStatusEnum(str, enum.Enum):
|
|
10
|
+
"""
|
|
11
|
+
* `DRAFT` - DRAFT
|
|
12
|
+
* `SUBMITTED` - SUBMITTED
|
|
13
|
+
* `APPROVED` - APPROVED
|
|
14
|
+
* `REJECTED` - REJECTED
|
|
15
|
+
"""
|
|
16
|
+
|
|
17
|
+
DRAFT = "DRAFT"
|
|
18
|
+
SUBMITTED = "SUBMITTED"
|
|
19
|
+
APPROVED = "APPROVED"
|
|
20
|
+
REJECTED = "REJECTED"
|
|
21
|
+
|
|
22
|
+
def visit(
|
|
23
|
+
self,
|
|
24
|
+
draft: typing.Callable[[], T_Result],
|
|
25
|
+
submitted: typing.Callable[[], T_Result],
|
|
26
|
+
approved: typing.Callable[[], T_Result],
|
|
27
|
+
rejected: typing.Callable[[], T_Result],
|
|
28
|
+
) -> T_Result:
|
|
29
|
+
if self is ExpenseReportStatusEnum.DRAFT:
|
|
30
|
+
return draft()
|
|
31
|
+
if self is ExpenseReportStatusEnum.SUBMITTED:
|
|
32
|
+
return submitted()
|
|
33
|
+
if self is ExpenseReportStatusEnum.APPROVED:
|
|
34
|
+
return approved()
|
|
35
|
+
if self is ExpenseReportStatusEnum.REJECTED:
|
|
36
|
+
return rejected()
|
|
@@ -31,6 +31,9 @@ class ExternalTargetFieldApiResponse(UncheckedBaseModel):
|
|
|
31
31
|
purchase_order: typing.Optional[typing.List[ExternalTargetFieldApi]] = pydantic.Field(
|
|
32
32
|
alias="PurchaseOrder", default=None
|
|
33
33
|
)
|
|
34
|
+
expense_report: typing.Optional[typing.List[ExternalTargetFieldApi]] = pydantic.Field(
|
|
35
|
+
alias="ExpenseReport", default=None
|
|
36
|
+
)
|
|
34
37
|
tracking_category: typing.Optional[typing.List[ExternalTargetFieldApi]] = pydantic.Field(
|
|
35
38
|
alias="TrackingCategory", default=None
|
|
36
39
|
)
|
|
@@ -33,6 +33,9 @@ class FieldMappingApiInstanceResponse(UncheckedBaseModel):
|
|
|
33
33
|
purchase_order: typing.Optional[typing.List[FieldMappingApiInstance]] = pydantic.Field(
|
|
34
34
|
alias="PurchaseOrder", default=None
|
|
35
35
|
)
|
|
36
|
+
expense_report: typing.Optional[typing.List[FieldMappingApiInstance]] = pydantic.Field(
|
|
37
|
+
alias="ExpenseReport", default=None
|
|
38
|
+
)
|
|
36
39
|
tracking_category: typing.Optional[typing.List[FieldMappingApiInstance]] = pydantic.Field(
|
|
37
40
|
alias="TrackingCategory", default=None
|
|
38
41
|
)
|
|
@@ -12,6 +12,7 @@ from .item_purchase_tax_rate import ItemPurchaseTaxRate
|
|
|
12
12
|
from .item_sales_account import ItemSalesAccount
|
|
13
13
|
from .item_sales_tax_rate import ItemSalesTaxRate
|
|
14
14
|
from .item_status import ItemStatus
|
|
15
|
+
from .item_type import ItemType
|
|
15
16
|
from .remote_data import RemoteData
|
|
16
17
|
|
|
17
18
|
|
|
@@ -54,6 +55,16 @@ class Item(UncheckedBaseModel):
|
|
|
54
55
|
* `ARCHIVED` - ARCHIVED
|
|
55
56
|
"""
|
|
56
57
|
|
|
58
|
+
type: typing.Optional[ItemType] = pydantic.Field(default=None)
|
|
59
|
+
"""
|
|
60
|
+
The item's type.
|
|
61
|
+
|
|
62
|
+
* `INVENTORY` - INVENTORY
|
|
63
|
+
* `NON_INVENTORY` - NON_INVENTORY
|
|
64
|
+
* `SERVICE` - SERVICE
|
|
65
|
+
* `UNKNOWN` - UNKNOWN
|
|
66
|
+
"""
|
|
67
|
+
|
|
57
68
|
unit_price: typing.Optional[float] = pydantic.Field(default=None)
|
|
58
69
|
"""
|
|
59
70
|
The item's unit price.
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
|
|
5
|
+
import pydantic
|
|
6
|
+
from ....core.pydantic_utilities import IS_PYDANTIC_V2
|
|
7
|
+
from ....core.unchecked_base_model import UncheckedBaseModel
|
|
8
|
+
from .expense_report_line import ExpenseReportLine
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class PaginatedExpenseReportLineList(UncheckedBaseModel):
|
|
12
|
+
next: typing.Optional[str] = None
|
|
13
|
+
previous: typing.Optional[str] = None
|
|
14
|
+
results: typing.Optional[typing.List[ExpenseReportLine]] = None
|
|
15
|
+
|
|
16
|
+
if IS_PYDANTIC_V2:
|
|
17
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
18
|
+
else:
|
|
19
|
+
|
|
20
|
+
class Config:
|
|
21
|
+
frozen = True
|
|
22
|
+
smart_union = True
|
|
23
|
+
extra = pydantic.Extra.allow
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
|
|
5
|
+
import pydantic
|
|
6
|
+
from ....core.pydantic_utilities import IS_PYDANTIC_V2
|
|
7
|
+
from ....core.unchecked_base_model import UncheckedBaseModel
|
|
8
|
+
from .expense_report import ExpenseReport
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class PaginatedExpenseReportList(UncheckedBaseModel):
|
|
12
|
+
next: typing.Optional[str] = None
|
|
13
|
+
previous: typing.Optional[str] = None
|
|
14
|
+
results: typing.Optional[typing.List[ExpenseReport]] = None
|
|
15
|
+
|
|
16
|
+
if IS_PYDANTIC_V2:
|
|
17
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
18
|
+
else:
|
|
19
|
+
|
|
20
|
+
class Config:
|
|
21
|
+
frozen = True
|
|
22
|
+
smart_union = True
|
|
23
|
+
extra = pydantic.Extra.allow
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
|
|
5
|
+
import pydantic
|
|
6
|
+
from ....core.pydantic_utilities import IS_PYDANTIC_V2
|
|
7
|
+
from ....core.unchecked_base_model import UncheckedBaseModel
|
|
8
|
+
from .accounting_phone_number_request import AccountingPhoneNumberRequest
|
|
9
|
+
from .patched_contact_request_addresses_item import PatchedContactRequestAddressesItem
|
|
10
|
+
from .remote_field_request import RemoteFieldRequest
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class PatchedContactRequest(UncheckedBaseModel):
|
|
14
|
+
"""
|
|
15
|
+
# The Contact Object
|
|
16
|
+
### Description
|
|
17
|
+
A `Contact` is an individual or business entity to which products and services are sold to or purchased from. The `Contact` model contains both Customers, in which products and services are sold to, and Vendors (or Suppliers), in which products and services are purchased from.
|
|
18
|
+
* A `Contact` is a Vendor/Supplier if the `is_supplier` property is true.
|
|
19
|
+
* A `Contact` is a customer if the `is_customer` property is true.
|
|
20
|
+
|
|
21
|
+
### Usage Example
|
|
22
|
+
Fetch from the `LIST Contacts` endpoint and view a company's contacts.
|
|
23
|
+
"""
|
|
24
|
+
|
|
25
|
+
name: typing.Optional[str] = pydantic.Field(default=None)
|
|
26
|
+
"""
|
|
27
|
+
The contact's name.
|
|
28
|
+
"""
|
|
29
|
+
|
|
30
|
+
is_supplier: typing.Optional[bool] = pydantic.Field(default=None)
|
|
31
|
+
"""
|
|
32
|
+
Whether the contact is a supplier.
|
|
33
|
+
"""
|
|
34
|
+
|
|
35
|
+
is_customer: typing.Optional[bool] = pydantic.Field(default=None)
|
|
36
|
+
"""
|
|
37
|
+
Whether the contact is a customer.
|
|
38
|
+
"""
|
|
39
|
+
|
|
40
|
+
email_address: typing.Optional[str] = pydantic.Field(default=None)
|
|
41
|
+
"""
|
|
42
|
+
The contact's email address.
|
|
43
|
+
"""
|
|
44
|
+
|
|
45
|
+
tax_number: typing.Optional[str] = pydantic.Field(default=None)
|
|
46
|
+
"""
|
|
47
|
+
The contact's tax number.
|
|
48
|
+
"""
|
|
49
|
+
|
|
50
|
+
status: typing.Optional[str] = pydantic.Field(default=None)
|
|
51
|
+
"""
|
|
52
|
+
The contact's status
|
|
53
|
+
|
|
54
|
+
* `ACTIVE` - ACTIVE
|
|
55
|
+
* `ARCHIVED` - ARCHIVED
|
|
56
|
+
"""
|
|
57
|
+
|
|
58
|
+
currency: typing.Optional[str] = pydantic.Field(default=None)
|
|
59
|
+
"""
|
|
60
|
+
The currency the contact's transactions are in.
|
|
61
|
+
"""
|
|
62
|
+
|
|
63
|
+
company: typing.Optional[str] = pydantic.Field(default=None)
|
|
64
|
+
"""
|
|
65
|
+
The company the contact belongs to.
|
|
66
|
+
"""
|
|
67
|
+
|
|
68
|
+
addresses: typing.Optional[typing.List[typing.Optional[PatchedContactRequestAddressesItem]]] = pydantic.Field(
|
|
69
|
+
default=None
|
|
70
|
+
)
|
|
71
|
+
"""
|
|
72
|
+
`Address` object IDs for the given `Contacts` object.
|
|
73
|
+
"""
|
|
74
|
+
|
|
75
|
+
phone_numbers: typing.Optional[typing.List[AccountingPhoneNumberRequest]] = pydantic.Field(default=None)
|
|
76
|
+
"""
|
|
77
|
+
`AccountingPhoneNumber` object for the given `Contacts` object.
|
|
78
|
+
"""
|
|
79
|
+
|
|
80
|
+
integration_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None
|
|
81
|
+
linked_account_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None
|
|
82
|
+
remote_fields: typing.Optional[typing.List[RemoteFieldRequest]] = None
|
|
83
|
+
|
|
84
|
+
if IS_PYDANTIC_V2:
|
|
85
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
86
|
+
else:
|
|
87
|
+
|
|
88
|
+
class Config:
|
|
89
|
+
frozen = True
|
|
90
|
+
smart_union = True
|
|
91
|
+
extra = pydantic.Extra.allow
|