@@ -6,16 +6,18 @@ Categorisation
66
77### Available Operations
88
9- * [ get_account_category] ( #get_account_category ) - Get suggested and/or confirmed category for a specific account
10- * [ list_accounts_categories] ( #list_accounts_categories ) - List suggested and confirmed account categories
11- * [ list_available_account_categories] ( #list_available_account_categories ) - List account categories
12- * [ update_account_category] ( #update_account_category ) - Patch account categories
13- * [ update_accounts_categories] ( #update_accounts_categories ) - Confirm categories for accounts
9+ * [ ~~ get_account_category~~ ] ( #get_account_category ) - Get suggested and/or confirmed category for a specific account : warning : ** Deprecated **
10+ * [ ~~ list_accounts_categories~~ ] ( #list_accounts_categories ) - List suggested and confirmed account categories : warning : ** Deprecated **
11+ * [ ~~ list_available_account_categories~~ ] ( #list_available_account_categories ) - List account categories : warning : ** Deprecated **
12+ * [ ~~ update_account_category~~ ] ( #update_account_category ) - Patch account categories : warning : ** Deprecated **
13+ * [ ~~ update_accounts_categories~~ ] ( #update_accounts_categories ) - Confirm categories for accounts : warning : ** Deprecated **
1414
15- ## get_account_category
15+ ## ~~ get_account_category~~
1616
1717Get category for specific nominal account.
1818
19+ > :warning : ** DEPRECATED** : this method will be removed in a future release, please migrate away from it as soon as possible.
20+
1921### Example Usage
2022
2123``` python
@@ -28,11 +30,10 @@ s = codatassess.CodatAssess(
2830 ),
2931)
3032
31-
3233req = operations.GetAccountCategoryRequest(
33- account_id = " provident" ,
34- company_id = " 8a210b68-6988-11ed-a1eb-0242ac120002" ,
35- connection_id = " 2e9d2c44-f675-40ba-8049-353bfcb5e171" ,
34+ account_id = ' provident' ,
35+ company_id = ' 8a210b68-6988-11ed-a1eb-0242ac120002' ,
36+ connection_id = ' 2e9d2c44-f675-40ba-8049-353bfcb5e171' ,
3637)
3738
3839res = s.categories.get_account_category(req)
@@ -41,10 +42,12 @@ if res.categorised_account is not None:
4142 # handle response
4243```
4344
44- ## list_accounts_categories
45+ ## ~~ list_accounts_categories~~
4546
4647Lists suggested and confirmed chart of account categories for the given company and data connection.
4748
49+ > :warning : ** DEPRECATED** : this method will be removed in a future release, please migrate away from it as soon as possible.
50+
4851### Example Usage
4952
5053``` python
@@ -57,14 +60,13 @@ s = codatassess.CodatAssess(
5760 ),
5861)
5962
60-
6163req = operations.ListAccountsCategoriesRequest(
62- company_id = " 8a210b68-6988-11ed-a1eb-0242ac120002" ,
63- connection_id = " 2e9d2c44-f675-40ba-8049-353bfcb5e171" ,
64- order_by = " -modifiedDate" ,
64+ company_id = ' 8a210b68-6988-11ed-a1eb-0242ac120002' ,
65+ connection_id = ' 2e9d2c44-f675-40ba-8049-353bfcb5e171' ,
66+ order_by = ' -modifiedDate' ,
6567 page = 1 ,
6668 page_size = 100 ,
67- query = " distinctio" ,
69+ query = ' distinctio' ,
6870)
6971
7072res = s.categories.list_accounts_categories(req)
@@ -73,10 +75,12 @@ if res.categorised_accounts is not None:
7375 # handle response
7476```
7577
76- ## list_available_account_categories
78+ ## ~~ list_available_account_categories~~
7779
7880Lists available account categories Codat's categorisation engine can provide.
7981
82+ > :warning : ** DEPRECATED** : this method will be removed in a future release, please migrate away from it as soon as possible.
83+
8084### Example Usage
8185
8286``` python
@@ -96,10 +100,12 @@ if res.categories is not None:
96100 # handle response
97101```
98102
99- ## update_account_category
103+ ## ~~ update_account_category~~
100104
101105Update category for a specific nominal account
102106
107+ > :warning : ** DEPRECATED** : this method will be removed in a future release, please migrate away from it as soon as possible.
108+
103109### Example Usage
104110
105111``` python
@@ -112,18 +118,17 @@ s = codatassess.CodatAssess(
112118 ),
113119)
114120
115-
116121req = operations.UpdateAccountCategoryRequest(
117122 confirm_category = shared.ConfirmCategory(
118123 confirmed = shared.AccountCategory(
119- detail_type = " quibusdam" ,
120- subtype = " unde" ,
121- type = " nulla" ,
124+ detail_type = ' quibusdam' ,
125+ subtype = ' unde' ,
126+ type = ' nulla' ,
122127 ),
123128 ),
124- account_id = " corrupti" ,
125- company_id = " 8a210b68-6988-11ed-a1eb-0242ac120002" ,
126- connection_id = " 2e9d2c44-f675-40ba-8049-353bfcb5e171" ,
129+ account_id = ' corrupti' ,
130+ company_id = ' 8a210b68-6988-11ed-a1eb-0242ac120002' ,
131+ connection_id = ' 2e9d2c44-f675-40ba-8049-353bfcb5e171' ,
127132)
128133
129134res = s.categories.update_account_category(req)
@@ -132,10 +137,12 @@ if res.categorised_account is not None:
132137 # handle response
133138```
134139
135- ## update_accounts_categories
140+ ## ~~ update_accounts_categories~~
136141
137142Comfirms the categories for all or a batch of accounts for a specific connection.
138143
144+ > :warning : ** DEPRECATED** : this method will be removed in a future release, please migrate away from it as soon as possible.
145+
139146### Example Usage
140147
141148``` python
@@ -148,54 +155,53 @@ s = codatassess.CodatAssess(
148155 ),
149156)
150157
151-
152158req = operations.UpdateAccountsCategoriesRequest(
153159 confirm_categories = shared.ConfirmCategories(
154160 categories = [
155161 shared.ConfirmCategoriesCategories(
156162 account_ref = shared.ConfirmCategoriesCategoriesAccountRef(
157- id = " 69a674e0-f467-4cc8-b96e-d151a05dfc2d" ,
163+ id = ' 69a674e0-f467-4cc8-b96e-d151a05dfc2d' ,
158164 ),
159165 confirmed = shared.AccountCategory(
160- detail_type = " at " ,
161- subtype = " maiores" ,
162- type = " molestiae" ,
166+ detail_type = ' at ' ,
167+ subtype = ' maiores' ,
168+ type = ' molestiae' ,
163169 ),
164170 ),
165171 shared.ConfirmCategoriesCategories(
166172 account_ref = shared.ConfirmCategoriesCategoriesAccountRef(
167- id = " cc78ca1b-a928-4fc8-9674-2cb739205929" ,
173+ id = ' cc78ca1b-a928-4fc8-9674-2cb739205929' ,
168174 ),
169175 confirmed = shared.AccountCategory(
170- detail_type = " dolor" ,
171- subtype = " natus" ,
172- type = " laboriosam" ,
176+ detail_type = ' dolor' ,
177+ subtype = ' natus' ,
178+ type = ' laboriosam' ,
173179 ),
174180 ),
175181 shared.ConfirmCategoriesCategories(
176182 account_ref = shared.ConfirmCategoriesCategoriesAccountRef(
177- id = " fea7596e-b10f-4aaa-a352-c5955907aff1" ,
183+ id = ' fea7596e-b10f-4aaa-a352-c5955907aff1' ,
178184 ),
179185 confirmed = shared.AccountCategory(
180- detail_type = " mollitia" ,
181- subtype = " dolorem" ,
182- type = " culpa" ,
186+ detail_type = ' mollitia' ,
187+ subtype = ' dolorem' ,
188+ type = ' culpa' ,
183189 ),
184190 ),
185191 shared.ConfirmCategoriesCategories(
186192 account_ref = shared.ConfirmCategoriesCategoriesAccountRef(
187- id = " 2fa94677-3925-41aa-92c3-f5ad019da1ff" ,
193+ id = ' 2fa94677-3925-41aa-92c3-f5ad019da1ff' ,
188194 ),
189195 confirmed = shared.AccountCategory(
190- detail_type = " vero" ,
191- subtype = " nihil" ,
192- type = " praesentium" ,
196+ detail_type = ' vero' ,
197+ subtype = ' nihil' ,
198+ type = ' praesentium' ,
193199 ),
194200 ),
195201 ],
196202 ),
197- company_id = " 8a210b68-6988-11ed-a1eb-0242ac120002" ,
198- connection_id = " 2e9d2c44-f675-40ba-8049-353bfcb5e171" ,
203+ company_id = ' 8a210b68-6988-11ed-a1eb-0242ac120002' ,
204+ connection_id = ' 2e9d2c44-f675-40ba-8049-353bfcb5e171' ,
199205)
200206
201207res = s.categories.update_accounts_categories(req)
0 commit comments