convexity-api-client 0.21.0.dev332__py3-none-any.whl → 0.21.0.dev336__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.
Files changed (140) hide show
  1. convexity_api_client/api/v1/crm_create_sales_rep.py +186 -0
  2. convexity_api_client/api/v1/crm_delete_sales_rep.py +182 -0
  3. convexity_api_client/api/v1/crm_get_sales_rep.py +182 -0
  4. convexity_api_client/api/v1/crm_list_sales_reps.py +236 -0
  5. convexity_api_client/api/v1/crm_update_sales_rep.py +202 -0
  6. convexity_api_client/api/v1/inventory_assign_item_warehouse_location.py +206 -0
  7. convexity_api_client/api/v1/inventory_create_cost_list_vendor_assignment.py +202 -0
  8. convexity_api_client/api/v1/inventory_create_price_list_channel_assignment.py +202 -0
  9. convexity_api_client/api/v1/inventory_create_price_list_customer_assignment.py +202 -0
  10. convexity_api_client/api/v1/inventory_delete_cost_list_vendor_assignment.py +196 -0
  11. convexity_api_client/api/v1/inventory_delete_price_list_channel_assignment.py +196 -0
  12. convexity_api_client/api/v1/inventory_delete_price_list_customer_assignment.py +196 -0
  13. convexity_api_client/api/v1/inventory_list_cost_list_vendor_assignments.py +202 -0
  14. convexity_api_client/api/v1/inventory_list_item_cost_list_entries.py +182 -0
  15. convexity_api_client/api/v1/inventory_list_item_price_list_entries.py +182 -0
  16. convexity_api_client/api/v1/inventory_list_item_warehouse_locations.py +212 -0
  17. convexity_api_client/api/v1/inventory_list_price_list_channel_assignments.py +202 -0
  18. convexity_api_client/api/v1/inventory_list_price_list_customer_assignments.py +202 -0
  19. convexity_api_client/api/v1/inventory_list_warehouse_location_items.py +226 -0
  20. convexity_api_client/api/v1/inventory_update_cost_list_vendor_assignment.py +216 -0
  21. convexity_api_client/api/v1/inventory_update_price_list_channel_assignment.py +216 -0
  22. convexity_api_client/api/v1/inventory_update_price_list_customer_assignment.py +216 -0
  23. convexity_api_client/api/v1/purchasing_create_item_sourcing.py +190 -0
  24. convexity_api_client/api/v1/purchasing_deactivate_item_sourcing.py +182 -0
  25. convexity_api_client/api/v1/purchasing_get_item_sourcing_options.py +166 -0
  26. convexity_api_client/api/v1/purchasing_list_item_sourcing.py +382 -0
  27. convexity_api_client/api/v1/purchasing_update_item_sourcing.py +202 -0
  28. convexity_api_client/api/v1/purchasing_upsert_item_sourcing_cost.py +206 -0
  29. convexity_api_client/api/v1/sales_list_orders.py +20 -0
  30. convexity_api_client/api/v1/warehouse_workflow_cancel_pick_pack_ship.py +182 -0
  31. convexity_api_client/api/v1/warehouse_workflow_complete_pick_pack_ship_pack.py +202 -0
  32. convexity_api_client/api/v1/warehouse_workflow_complete_pick_pack_ship_pick.py +202 -0
  33. convexity_api_client/api/v1/warehouse_workflow_create_pick_pack_ship.py +186 -0
  34. convexity_api_client/api/v1/warehouse_workflow_generate_pick_pack_ship_pdf.py +188 -0
  35. convexity_api_client/api/v1/warehouse_workflow_get_pick_pack_ship.py +182 -0
  36. convexity_api_client/api/v1/warehouse_workflow_mark_pick_pack_ship_shipped.py +202 -0
  37. convexity_api_client/api/v1/warehouse_workflow_save_pick_pack_ship_shipment.py +202 -0
  38. convexity_api_client/models/__init__.py +134 -0
  39. convexity_api_client/models/adjust_stock_request.py +20 -8
  40. convexity_api_client/models/assign_inventory_item_location_request.py +108 -0
  41. convexity_api_client/models/assign_inventory_item_location_request_ext_data_type_0.py +47 -0
  42. convexity_api_client/models/bulk_upsert_customer_payload.py +20 -0
  43. convexity_api_client/models/bulk_upsert_sales_order_payload.py +40 -0
  44. convexity_api_client/models/complete_pick_pack_ship_pack_request.py +75 -0
  45. convexity_api_client/models/complete_pick_pack_ship_request.py +97 -0
  46. convexity_api_client/models/cost_list_entry_response.py +77 -0
  47. convexity_api_client/models/cost_list_vendor_assignment_response.py +149 -0
  48. convexity_api_client/models/cost_list_vendor_assignment_response_ext_data_type_0.py +47 -0
  49. convexity_api_client/models/cost_rule.py +53 -0
  50. convexity_api_client/models/cost_rule_response.py +22 -0
  51. convexity_api_client/models/cost_source_type.py +9 -0
  52. convexity_api_client/models/create_cost_list_request.py +4 -5
  53. convexity_api_client/models/create_cost_list_vendor_assignment_request.py +116 -0
  54. convexity_api_client/models/create_cost_list_vendor_assignment_request_ext_data_type_0.py +47 -0
  55. convexity_api_client/models/create_customer_request.py +20 -0
  56. convexity_api_client/models/create_item_sourcing_request.py +256 -0
  57. convexity_api_client/models/create_item_sourcing_request_ext_data_type_0.py +47 -0
  58. convexity_api_client/models/create_pick_pack_ship_request.py +153 -0
  59. convexity_api_client/models/create_price_list_channel_assignment_request.py +116 -0
  60. convexity_api_client/models/create_price_list_channel_assignment_request_ext_data_type_0.py +47 -0
  61. convexity_api_client/models/create_price_list_customer_assignment_request.py +116 -0
  62. convexity_api_client/models/create_price_list_customer_assignment_request_ext_data_type_0.py +47 -0
  63. convexity_api_client/models/create_price_list_request.py +4 -5
  64. convexity_api_client/models/create_sales_order_line_request.py +40 -8
  65. convexity_api_client/models/create_sales_order_request.py +40 -0
  66. convexity_api_client/models/create_sales_rep_request.py +181 -0
  67. convexity_api_client/models/create_sales_rep_request_ext_data_type_0.py +47 -0
  68. convexity_api_client/models/customer.py +53 -0
  69. convexity_api_client/models/customer_response.py +14 -0
  70. convexity_api_client/models/inventory_config.py +53 -0
  71. convexity_api_client/models/inventory_config_response.py +28 -0
  72. convexity_api_client/models/inventory_item.py +43 -0
  73. convexity_api_client/models/inventory_item_location.py +237 -0
  74. convexity_api_client/models/inventory_item_location_assignment_response.py +150 -0
  75. convexity_api_client/models/inventory_item_location_assignment_response_ext_data_type_0.py +47 -0
  76. convexity_api_client/models/inventory_item_type.py +0 -1
  77. convexity_api_client/models/item_sourcing.py +41 -0
  78. convexity_api_client/models/item_sourcing_item_option.py +107 -0
  79. convexity_api_client/models/item_sourcing_options_response.py +120 -0
  80. convexity_api_client/models/item_sourcing_response.py +360 -0
  81. convexity_api_client/models/item_sourcing_response_ext_data_type_0.py +47 -0
  82. convexity_api_client/models/item_sourcing_uom_option.py +77 -0
  83. convexity_api_client/models/item_sourcing_vendor_option.py +77 -0
  84. convexity_api_client/models/item_warehouse_location_response.py +248 -0
  85. convexity_api_client/models/list_cost_list_entries_response.py +83 -0
  86. convexity_api_client/models/list_cost_list_vendor_assignments_response.py +83 -0
  87. convexity_api_client/models/list_item_sourcing_response.py +83 -0
  88. convexity_api_client/models/list_item_warehouse_locations_response.py +83 -0
  89. convexity_api_client/models/list_price_list_channel_assignments_response.py +83 -0
  90. convexity_api_client/models/list_price_list_customer_assignments_response.py +83 -0
  91. convexity_api_client/models/list_price_list_entries_response.py +83 -0
  92. convexity_api_client/models/list_sales_reps_response.py +83 -0
  93. convexity_api_client/models/list_warehouse_location_items_response.py +83 -0
  94. convexity_api_client/models/mark_pick_pack_ship_shipped_request.py +84 -0
  95. convexity_api_client/models/pick_pack_ship_line_request.py +100 -0
  96. convexity_api_client/models/pick_pack_ship_packed_line_request.py +111 -0
  97. convexity_api_client/models/pick_pack_ship_picked_line_request.py +91 -0
  98. convexity_api_client/models/pick_pack_ship_response.py +111 -0
  99. convexity_api_client/models/price_list.py +41 -0
  100. convexity_api_client/models/price_list_channel_assignment_response.py +149 -0
  101. convexity_api_client/models/price_list_channel_assignment_response_ext_data_type_0.py +47 -0
  102. convexity_api_client/models/price_list_customer_assignment_response.py +149 -0
  103. convexity_api_client/models/price_list_customer_assignment_response_ext_data_type_0.py +47 -0
  104. convexity_api_client/models/price_list_entry_response.py +77 -0
  105. convexity_api_client/models/price_source_type.py +9 -0
  106. convexity_api_client/models/project.py +43 -0
  107. convexity_api_client/models/purchase_order_line.py +101 -0
  108. convexity_api_client/models/purchase_order_line_request.py +20 -8
  109. convexity_api_client/models/purchase_order_line_response.py +103 -0
  110. convexity_api_client/models/purchasing_list_item_sourcing_filter_operator_type_0.py +19 -0
  111. convexity_api_client/models/purchasing_list_item_sourcing_sort_direction_type_0.py +9 -0
  112. convexity_api_client/models/resolve_cost_response.py +22 -0
  113. convexity_api_client/models/resolve_price_response.py +20 -0
  114. convexity_api_client/models/sales_invoice_line.py +121 -0
  115. convexity_api_client/models/sales_invoice_line_request.py +40 -8
  116. convexity_api_client/models/sales_invoice_line_response.py +121 -0
  117. convexity_api_client/models/sales_order.py +73 -0
  118. convexity_api_client/models/sales_order_line.py +121 -0
  119. convexity_api_client/models/sales_order_line_response.py +123 -0
  120. convexity_api_client/models/sales_order_response.py +28 -0
  121. convexity_api_client/models/sales_rep.py +279 -0
  122. convexity_api_client/models/sales_rep_response.py +185 -0
  123. convexity_api_client/models/sales_rep_response_ext_data_type_0.py +47 -0
  124. convexity_api_client/models/save_pick_pack_ship_shipment_request.py +163 -0
  125. convexity_api_client/models/stock_balance.py +20 -8
  126. convexity_api_client/models/update_customer_request.py +20 -0
  127. convexity_api_client/models/update_item_sourcing_request.py +312 -0
  128. convexity_api_client/models/update_item_sourcing_request_ext_data_type_0.py +47 -0
  129. convexity_api_client/models/update_list_assignment_request.py +111 -0
  130. convexity_api_client/models/update_list_assignment_request_ext_data_type_0.py +47 -0
  131. convexity_api_client/models/update_sales_order_request.py +40 -0
  132. convexity_api_client/models/update_sales_rep_request.py +211 -0
  133. convexity_api_client/models/update_sales_rep_request_ext_data_type_0.py +47 -0
  134. convexity_api_client/models/upsert_inventory_config_request.py +40 -0
  135. convexity_api_client/models/upsert_item_sourcing_cost_request.py +62 -0
  136. convexity_api_client/models/warehouse_location.py +43 -0
  137. convexity_api_client/models/warehouse_location_item_response.py +160 -0
  138. {convexity_api_client-0.21.0.dev332.dist-info → convexity_api_client-0.21.0.dev336.dist-info}/METADATA +1 -1
  139. {convexity_api_client-0.21.0.dev332.dist-info → convexity_api_client-0.21.0.dev336.dist-info}/RECORD +140 -41
  140. {convexity_api_client-0.21.0.dev332.dist-info → convexity_api_client-0.21.0.dev336.dist-info}/WHEEL +1 -1
@@ -13,6 +13,7 @@ if TYPE_CHECKING:
13
13
  from ..models.address_book_entry import AddressBookEntry
14
14
  from ..models.payment_term import PaymentTerm
15
15
  from ..models.project import Project
16
+ from ..models.sales_rep import SalesRep
16
17
 
17
18
 
18
19
  T = TypeVar("T", bound="Customer")
@@ -34,12 +35,14 @@ class Customer:
34
35
  email (None | str | Unset):
35
36
  phone (None | str | Unset):
36
37
  payment_term_id (None | str | Unset):
38
+ sales_rep_id (None | str | Unset):
37
39
  default_billing_address_entry_id (None | str | Unset):
38
40
  default_shipping_address_entry_id (None | str | Unset):
39
41
  credit_limit (float | None | Unset):
40
42
  ext_data (None | str | Unset):
41
43
  project (None | Project | Unset):
42
44
  payment_term (None | PaymentTerm | Unset):
45
+ sales_rep (None | SalesRep | Unset):
43
46
  default_billing_address_entry (AddressBookEntry | None | Unset):
44
47
  default_shipping_address_entry (AddressBookEntry | None | Unset):
45
48
  """
@@ -55,12 +58,14 @@ class Customer:
55
58
  email: None | str | Unset = UNSET
56
59
  phone: None | str | Unset = UNSET
57
60
  payment_term_id: None | str | Unset = UNSET
61
+ sales_rep_id: None | str | Unset = UNSET
58
62
  default_billing_address_entry_id: None | str | Unset = UNSET
59
63
  default_shipping_address_entry_id: None | str | Unset = UNSET
60
64
  credit_limit: float | None | Unset = UNSET
61
65
  ext_data: None | str | Unset = UNSET
62
66
  project: None | Project | Unset = UNSET
63
67
  payment_term: None | PaymentTerm | Unset = UNSET
68
+ sales_rep: None | SalesRep | Unset = UNSET
64
69
  default_billing_address_entry: AddressBookEntry | None | Unset = UNSET
65
70
  default_shipping_address_entry: AddressBookEntry | None | Unset = UNSET
66
71
  additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
@@ -69,6 +74,7 @@ class Customer:
69
74
  from ..models.address_book_entry import AddressBookEntry
70
75
  from ..models.payment_term import PaymentTerm
71
76
  from ..models.project import Project
77
+ from ..models.sales_rep import SalesRep
72
78
 
73
79
  id = self.id
74
80
 
@@ -104,6 +110,12 @@ class Customer:
104
110
  else:
105
111
  payment_term_id = self.payment_term_id
106
112
 
113
+ sales_rep_id: None | str | Unset
114
+ if isinstance(self.sales_rep_id, Unset):
115
+ sales_rep_id = UNSET
116
+ else:
117
+ sales_rep_id = self.sales_rep_id
118
+
107
119
  default_billing_address_entry_id: None | str | Unset
108
120
  if isinstance(self.default_billing_address_entry_id, Unset):
109
121
  default_billing_address_entry_id = UNSET
@@ -144,6 +156,14 @@ class Customer:
144
156
  else:
145
157
  payment_term = self.payment_term
146
158
 
159
+ sales_rep: dict[str, Any] | None | Unset
160
+ if isinstance(self.sales_rep, Unset):
161
+ sales_rep = UNSET
162
+ elif isinstance(self.sales_rep, SalesRep):
163
+ sales_rep = self.sales_rep.to_dict()
164
+ else:
165
+ sales_rep = self.sales_rep
166
+
147
167
  default_billing_address_entry: dict[str, Any] | None | Unset
148
168
  if isinstance(self.default_billing_address_entry, Unset):
149
169
  default_billing_address_entry = UNSET
@@ -180,6 +200,8 @@ class Customer:
180
200
  field_dict["phone"] = phone
181
201
  if payment_term_id is not UNSET:
182
202
  field_dict["payment_term_id"] = payment_term_id
203
+ if sales_rep_id is not UNSET:
204
+ field_dict["sales_rep_id"] = sales_rep_id
183
205
  if default_billing_address_entry_id is not UNSET:
184
206
  field_dict["default_billing_address_entry_id"] = default_billing_address_entry_id
185
207
  if default_shipping_address_entry_id is not UNSET:
@@ -192,6 +214,8 @@ class Customer:
192
214
  field_dict["project"] = project
193
215
  if payment_term is not UNSET:
194
216
  field_dict["payment_term"] = payment_term
217
+ if sales_rep is not UNSET:
218
+ field_dict["sales_rep"] = sales_rep
195
219
  if default_billing_address_entry is not UNSET:
196
220
  field_dict["default_billing_address_entry"] = default_billing_address_entry
197
221
  if default_shipping_address_entry is not UNSET:
@@ -204,6 +228,7 @@ class Customer:
204
228
  from ..models.address_book_entry import AddressBookEntry
205
229
  from ..models.payment_term import PaymentTerm
206
230
  from ..models.project import Project
231
+ from ..models.sales_rep import SalesRep
207
232
 
208
233
  d = dict(src_dict)
209
234
  id = d.pop("id")
@@ -249,6 +274,15 @@ class Customer:
249
274
 
250
275
  payment_term_id = _parse_payment_term_id(d.pop("payment_term_id", UNSET))
251
276
 
277
+ def _parse_sales_rep_id(data: object) -> None | str | Unset:
278
+ if data is None:
279
+ return data
280
+ if isinstance(data, Unset):
281
+ return data
282
+ return cast(None | str | Unset, data)
283
+
284
+ sales_rep_id = _parse_sales_rep_id(d.pop("sales_rep_id", UNSET))
285
+
252
286
  def _parse_default_billing_address_entry_id(data: object) -> None | str | Unset:
253
287
  if data is None:
254
288
  return data
@@ -323,6 +357,23 @@ class Customer:
323
357
 
324
358
  payment_term = _parse_payment_term(d.pop("payment_term", UNSET))
325
359
 
360
+ def _parse_sales_rep(data: object) -> None | SalesRep | Unset:
361
+ if data is None:
362
+ return data
363
+ if isinstance(data, Unset):
364
+ return data
365
+ try:
366
+ if not isinstance(data, dict):
367
+ raise TypeError()
368
+ sales_rep_type_0 = SalesRep.from_dict(data)
369
+
370
+ return sales_rep_type_0
371
+ except (TypeError, ValueError, AttributeError, KeyError):
372
+ pass
373
+ return cast(None | SalesRep | Unset, data)
374
+
375
+ sales_rep = _parse_sales_rep(d.pop("sales_rep", UNSET))
376
+
326
377
  def _parse_default_billing_address_entry(data: object) -> AddressBookEntry | None | Unset:
327
378
  if data is None:
328
379
  return data
@@ -373,12 +424,14 @@ class Customer:
373
424
  email=email,
374
425
  phone=phone,
375
426
  payment_term_id=payment_term_id,
427
+ sales_rep_id=sales_rep_id,
376
428
  default_billing_address_entry_id=default_billing_address_entry_id,
377
429
  default_shipping_address_entry_id=default_shipping_address_entry_id,
378
430
  credit_limit=credit_limit,
379
431
  ext_data=ext_data,
380
432
  project=project,
381
433
  payment_term=payment_term,
434
+ sales_rep=sales_rep,
382
435
  default_billing_address_entry=default_billing_address_entry,
383
436
  default_shipping_address_entry=default_shipping_address_entry,
384
437
  )
@@ -26,6 +26,7 @@ class CustomerResponse:
26
26
  phone (None | str):
27
27
  currency (str):
28
28
  payment_term_id (None | str):
29
+ sales_rep_id (None | str):
29
30
  default_billing_address_entry_id (None | str):
30
31
  default_shipping_address_entry_id (None | str):
31
32
  credit_limit (float | None):
@@ -43,6 +44,7 @@ class CustomerResponse:
43
44
  phone: None | str
44
45
  currency: str
45
46
  payment_term_id: None | str
47
+ sales_rep_id: None | str
46
48
  default_billing_address_entry_id: None | str
47
49
  default_shipping_address_entry_id: None | str
48
50
  credit_limit: float | None
@@ -74,6 +76,9 @@ class CustomerResponse:
74
76
  payment_term_id: None | str
75
77
  payment_term_id = self.payment_term_id
76
78
 
79
+ sales_rep_id: None | str
80
+ sales_rep_id = self.sales_rep_id
81
+
77
82
  default_billing_address_entry_id: None | str
78
83
  default_billing_address_entry_id = self.default_billing_address_entry_id
79
84
 
@@ -107,6 +112,7 @@ class CustomerResponse:
107
112
  "phone": phone,
108
113
  "currency": currency,
109
114
  "payment_term_id": payment_term_id,
115
+ "sales_rep_id": sales_rep_id,
110
116
  "default_billing_address_entry_id": default_billing_address_entry_id,
111
117
  "default_shipping_address_entry_id": default_shipping_address_entry_id,
112
118
  "credit_limit": credit_limit,
@@ -155,6 +161,13 @@ class CustomerResponse:
155
161
 
156
162
  payment_term_id = _parse_payment_term_id(d.pop("payment_term_id"))
157
163
 
164
+ def _parse_sales_rep_id(data: object) -> None | str:
165
+ if data is None:
166
+ return data
167
+ return cast(None | str, data)
168
+
169
+ sales_rep_id = _parse_sales_rep_id(d.pop("sales_rep_id"))
170
+
158
171
  def _parse_default_billing_address_entry_id(data: object) -> None | str:
159
172
  if data is None:
160
173
  return data
@@ -210,6 +223,7 @@ class CustomerResponse:
210
223
  phone=phone,
211
224
  currency=currency,
212
225
  payment_term_id=payment_term_id,
226
+ sales_rep_id=sales_rep_id,
213
227
  default_billing_address_entry_id=default_billing_address_entry_id,
214
228
  default_shipping_address_entry_id=default_shipping_address_entry_id,
215
229
  credit_limit=credit_limit,
@@ -12,6 +12,7 @@ from ..types import UNSET, Unset
12
12
 
13
13
  if TYPE_CHECKING:
14
14
  from ..models.cost_list import CostList
15
+ from ..models.price_list import PriceList
15
16
  from ..models.project import Project
16
17
  from ..models.warehouse import Warehouse
17
18
  from ..models.warehouse_location import WarehouseLocation
@@ -33,10 +34,12 @@ class InventoryConfig:
33
34
  updated_at (datetime.datetime):
34
35
  default_warehouse_id (None | str | Unset):
35
36
  default_cost_list_id (None | str | Unset):
37
+ default_price_list_id (None | str | Unset):
36
38
  ext_data (None | str | Unset):
37
39
  project (None | Project | Unset):
38
40
  default_warehouse (None | Unset | Warehouse):
39
41
  default_cost_list (CostList | None | Unset):
42
+ default_price_list (None | PriceList | Unset):
40
43
  warehouse_location (None | Unset | WarehouseLocation):
41
44
  warehouse_location_id (None | str | Unset):
42
45
  """
@@ -49,16 +52,19 @@ class InventoryConfig:
49
52
  updated_at: datetime.datetime
50
53
  default_warehouse_id: None | str | Unset = UNSET
51
54
  default_cost_list_id: None | str | Unset = UNSET
55
+ default_price_list_id: None | str | Unset = UNSET
52
56
  ext_data: None | str | Unset = UNSET
53
57
  project: None | Project | Unset = UNSET
54
58
  default_warehouse: None | Unset | Warehouse = UNSET
55
59
  default_cost_list: CostList | None | Unset = UNSET
60
+ default_price_list: None | PriceList | Unset = UNSET
56
61
  warehouse_location: None | Unset | WarehouseLocation = UNSET
57
62
  warehouse_location_id: None | str | Unset = UNSET
58
63
  additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
59
64
 
60
65
  def to_dict(self) -> dict[str, Any]:
61
66
  from ..models.cost_list import CostList
67
+ from ..models.price_list import PriceList
62
68
  from ..models.project import Project
63
69
  from ..models.warehouse import Warehouse
64
70
  from ..models.warehouse_location import WarehouseLocation
@@ -87,6 +93,12 @@ class InventoryConfig:
87
93
  else:
88
94
  default_cost_list_id = self.default_cost_list_id
89
95
 
96
+ default_price_list_id: None | str | Unset
97
+ if isinstance(self.default_price_list_id, Unset):
98
+ default_price_list_id = UNSET
99
+ else:
100
+ default_price_list_id = self.default_price_list_id
101
+
90
102
  ext_data: None | str | Unset
91
103
  if isinstance(self.ext_data, Unset):
92
104
  ext_data = UNSET
@@ -117,6 +129,14 @@ class InventoryConfig:
117
129
  else:
118
130
  default_cost_list = self.default_cost_list
119
131
 
132
+ default_price_list: dict[str, Any] | None | Unset
133
+ if isinstance(self.default_price_list, Unset):
134
+ default_price_list = UNSET
135
+ elif isinstance(self.default_price_list, PriceList):
136
+ default_price_list = self.default_price_list.to_dict()
137
+ else:
138
+ default_price_list = self.default_price_list
139
+
120
140
  warehouse_location: dict[str, Any] | None | Unset
121
141
  if isinstance(self.warehouse_location, Unset):
122
142
  warehouse_location = UNSET
@@ -147,6 +167,8 @@ class InventoryConfig:
147
167
  field_dict["default_warehouse_id"] = default_warehouse_id
148
168
  if default_cost_list_id is not UNSET:
149
169
  field_dict["default_cost_list_id"] = default_cost_list_id
170
+ if default_price_list_id is not UNSET:
171
+ field_dict["default_price_list_id"] = default_price_list_id
150
172
  if ext_data is not UNSET:
151
173
  field_dict["ext_data"] = ext_data
152
174
  if project is not UNSET:
@@ -155,6 +177,8 @@ class InventoryConfig:
155
177
  field_dict["default_warehouse"] = default_warehouse
156
178
  if default_cost_list is not UNSET:
157
179
  field_dict["default_cost_list"] = default_cost_list
180
+ if default_price_list is not UNSET:
181
+ field_dict["default_price_list"] = default_price_list
158
182
  if warehouse_location is not UNSET:
159
183
  field_dict["WarehouseLocation"] = warehouse_location
160
184
  if warehouse_location_id is not UNSET:
@@ -165,6 +189,7 @@ class InventoryConfig:
165
189
  @classmethod
166
190
  def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
167
191
  from ..models.cost_list import CostList
192
+ from ..models.price_list import PriceList
168
193
  from ..models.project import Project
169
194
  from ..models.warehouse import Warehouse
170
195
  from ..models.warehouse_location import WarehouseLocation
@@ -200,6 +225,15 @@ class InventoryConfig:
200
225
 
201
226
  default_cost_list_id = _parse_default_cost_list_id(d.pop("default_cost_list_id", UNSET))
202
227
 
228
+ def _parse_default_price_list_id(data: object) -> None | str | Unset:
229
+ if data is None:
230
+ return data
231
+ if isinstance(data, Unset):
232
+ return data
233
+ return cast(None | str | Unset, data)
234
+
235
+ default_price_list_id = _parse_default_price_list_id(d.pop("default_price_list_id", UNSET))
236
+
203
237
  def _parse_ext_data(data: object) -> None | str | Unset:
204
238
  if data is None:
205
239
  return data
@@ -260,6 +294,23 @@ class InventoryConfig:
260
294
 
261
295
  default_cost_list = _parse_default_cost_list(d.pop("default_cost_list", UNSET))
262
296
 
297
+ def _parse_default_price_list(data: object) -> None | PriceList | Unset:
298
+ if data is None:
299
+ return data
300
+ if isinstance(data, Unset):
301
+ return data
302
+ try:
303
+ if not isinstance(data, dict):
304
+ raise TypeError()
305
+ default_price_list_type_0 = PriceList.from_dict(data)
306
+
307
+ return default_price_list_type_0
308
+ except (TypeError, ValueError, AttributeError, KeyError):
309
+ pass
310
+ return cast(None | PriceList | Unset, data)
311
+
312
+ default_price_list = _parse_default_price_list(d.pop("default_price_list", UNSET))
313
+
263
314
  def _parse_warehouse_location(data: object) -> None | Unset | WarehouseLocation:
264
315
  if data is None:
265
316
  return data
@@ -295,10 +346,12 @@ class InventoryConfig:
295
346
  updated_at=updated_at,
296
347
  default_warehouse_id=default_warehouse_id,
297
348
  default_cost_list_id=default_cost_list_id,
349
+ default_price_list_id=default_price_list_id,
298
350
  ext_data=ext_data,
299
351
  project=project,
300
352
  default_warehouse=default_warehouse,
301
353
  default_cost_list=default_cost_list,
354
+ default_price_list=default_price_list,
302
355
  warehouse_location=warehouse_location,
303
356
  warehouse_location_id=warehouse_location_id,
304
357
  )
@@ -25,6 +25,8 @@ class InventoryConfigResponse:
25
25
  project_id (str):
26
26
  costing_method (CostingMethod):
27
27
  default_warehouse_id (None | str):
28
+ default_cost_list_id (None | str):
29
+ default_price_list_id (None | str):
28
30
  ext_data (InventoryConfigResponseExtDataType0 | None):
29
31
  created_at (datetime.datetime | None | Unset):
30
32
  updated_at (datetime.datetime | None | Unset):
@@ -34,6 +36,8 @@ class InventoryConfigResponse:
34
36
  project_id: str
35
37
  costing_method: CostingMethod
36
38
  default_warehouse_id: None | str
39
+ default_cost_list_id: None | str
40
+ default_price_list_id: None | str
37
41
  ext_data: InventoryConfigResponseExtDataType0 | None
38
42
  created_at: datetime.datetime | None | Unset = UNSET
39
43
  updated_at: datetime.datetime | None | Unset = UNSET
@@ -51,6 +55,12 @@ class InventoryConfigResponse:
51
55
  default_warehouse_id: None | str
52
56
  default_warehouse_id = self.default_warehouse_id
53
57
 
58
+ default_cost_list_id: None | str
59
+ default_cost_list_id = self.default_cost_list_id
60
+
61
+ default_price_list_id: None | str
62
+ default_price_list_id = self.default_price_list_id
63
+
54
64
  ext_data: dict[str, Any] | None
55
65
  if isinstance(self.ext_data, InventoryConfigResponseExtDataType0):
56
66
  ext_data = self.ext_data.to_dict()
@@ -81,6 +91,8 @@ class InventoryConfigResponse:
81
91
  "project_id": project_id,
82
92
  "costing_method": costing_method,
83
93
  "default_warehouse_id": default_warehouse_id,
94
+ "default_cost_list_id": default_cost_list_id,
95
+ "default_price_list_id": default_price_list_id,
84
96
  "ext_data": ext_data,
85
97
  }
86
98
  )
@@ -109,6 +121,20 @@ class InventoryConfigResponse:
109
121
 
110
122
  default_warehouse_id = _parse_default_warehouse_id(d.pop("default_warehouse_id"))
111
123
 
124
+ def _parse_default_cost_list_id(data: object) -> None | str:
125
+ if data is None:
126
+ return data
127
+ return cast(None | str, data)
128
+
129
+ default_cost_list_id = _parse_default_cost_list_id(d.pop("default_cost_list_id"))
130
+
131
+ def _parse_default_price_list_id(data: object) -> None | str:
132
+ if data is None:
133
+ return data
134
+ return cast(None | str, data)
135
+
136
+ default_price_list_id = _parse_default_price_list_id(d.pop("default_price_list_id"))
137
+
112
138
  def _parse_ext_data(data: object) -> InventoryConfigResponseExtDataType0 | None:
113
139
  if data is None:
114
140
  return data
@@ -163,6 +189,8 @@ class InventoryConfigResponse:
163
189
  project_id=project_id,
164
190
  costing_method=costing_method,
165
191
  default_warehouse_id=default_warehouse_id,
192
+ default_cost_list_id=default_cost_list_id,
193
+ default_price_list_id=default_price_list_id,
166
194
  ext_data=ext_data,
167
195
  created_at=created_at,
168
196
  updated_at=updated_at,
@@ -17,6 +17,7 @@ if TYPE_CHECKING:
17
17
  from ..models.inventory_item_category import InventoryItemCategory
18
18
  from ..models.inventory_item_classification import InventoryItemClassification
19
19
  from ..models.inventory_item_kpi import InventoryItemKpi
20
+ from ..models.inventory_item_location import InventoryItemLocation
20
21
  from ..models.inventory_replenishment_policy import InventoryReplenishmentPolicy
21
22
  from ..models.item_channel_availability import ItemChannelAvailability
22
23
  from ..models.item_dimensions import ItemDimensions
@@ -63,6 +64,7 @@ class InventoryItem:
63
64
  identifiers (list[ItemIdentifier] | None | Unset):
64
65
  categories (list[InventoryItemCategory] | None | Unset):
65
66
  variant_attribute_vals (list[ItemVariantAttributeValue] | None | Unset):
67
+ location_assignments (list[InventoryItemLocation] | None | Unset):
66
68
  replenishment_policies (list[InventoryReplenishmentPolicy] | None | Unset):
67
69
  classification (InventoryItemClassification | None | Unset):
68
70
  stock_balances (list[StockBalance] | None | Unset):
@@ -101,6 +103,7 @@ class InventoryItem:
101
103
  identifiers: list[ItemIdentifier] | None | Unset = UNSET
102
104
  categories: list[InventoryItemCategory] | None | Unset = UNSET
103
105
  variant_attribute_vals: list[ItemVariantAttributeValue] | None | Unset = UNSET
106
+ location_assignments: list[InventoryItemLocation] | None | Unset = UNSET
104
107
  replenishment_policies: list[InventoryReplenishmentPolicy] | None | Unset = UNSET
105
108
  classification: InventoryItemClassification | None | Unset = UNSET
106
109
  stock_balances: list[StockBalance] | None | Unset = UNSET
@@ -241,6 +244,18 @@ class InventoryItem:
241
244
  else:
242
245
  variant_attribute_vals = self.variant_attribute_vals
243
246
 
247
+ location_assignments: list[dict[str, Any]] | None | Unset
248
+ if isinstance(self.location_assignments, Unset):
249
+ location_assignments = UNSET
250
+ elif isinstance(self.location_assignments, list):
251
+ location_assignments = []
252
+ for location_assignments_type_0_item_data in self.location_assignments:
253
+ location_assignments_type_0_item = location_assignments_type_0_item_data.to_dict()
254
+ location_assignments.append(location_assignments_type_0_item)
255
+
256
+ else:
257
+ location_assignments = self.location_assignments
258
+
244
259
  replenishment_policies: list[dict[str, Any]] | None | Unset
245
260
  if isinstance(self.replenishment_policies, Unset):
246
261
  replenishment_policies = UNSET
@@ -430,6 +445,8 @@ class InventoryItem:
430
445
  field_dict["categories"] = categories
431
446
  if variant_attribute_vals is not UNSET:
432
447
  field_dict["variant_attribute_vals"] = variant_attribute_vals
448
+ if location_assignments is not UNSET:
449
+ field_dict["location_assignments"] = location_assignments
433
450
  if replenishment_policies is not UNSET:
434
451
  field_dict["replenishment_policies"] = replenishment_policies
435
452
  if classification is not UNSET:
@@ -467,6 +484,7 @@ class InventoryItem:
467
484
  from ..models.inventory_item_category import InventoryItemCategory
468
485
  from ..models.inventory_item_classification import InventoryItemClassification
469
486
  from ..models.inventory_item_kpi import InventoryItemKpi
487
+ from ..models.inventory_item_location import InventoryItemLocation
470
488
  from ..models.inventory_replenishment_policy import InventoryReplenishmentPolicy
471
489
  from ..models.item_channel_availability import ItemChannelAvailability
472
490
  from ..models.item_dimensions import ItemDimensions
@@ -677,6 +695,30 @@ class InventoryItem:
677
695
 
678
696
  variant_attribute_vals = _parse_variant_attribute_vals(d.pop("variant_attribute_vals", UNSET))
679
697
 
698
+ def _parse_location_assignments(data: object) -> list[InventoryItemLocation] | None | Unset:
699
+ if data is None:
700
+ return data
701
+ if isinstance(data, Unset):
702
+ return data
703
+ try:
704
+ if not isinstance(data, list):
705
+ raise TypeError()
706
+ location_assignments_type_0 = []
707
+ _location_assignments_type_0 = data
708
+ for location_assignments_type_0_item_data in _location_assignments_type_0:
709
+ location_assignments_type_0_item = InventoryItemLocation.from_dict(
710
+ location_assignments_type_0_item_data
711
+ )
712
+
713
+ location_assignments_type_0.append(location_assignments_type_0_item)
714
+
715
+ return location_assignments_type_0
716
+ except (TypeError, ValueError, AttributeError, KeyError):
717
+ pass
718
+ return cast(list[InventoryItemLocation] | None | Unset, data)
719
+
720
+ location_assignments = _parse_location_assignments(d.pop("location_assignments", UNSET))
721
+
680
722
  def _parse_replenishment_policies(data: object) -> list[InventoryReplenishmentPolicy] | None | Unset:
681
723
  if data is None:
682
724
  return data
@@ -983,6 +1025,7 @@ class InventoryItem:
983
1025
  identifiers=identifiers,
984
1026
  categories=categories,
985
1027
  variant_attribute_vals=variant_attribute_vals,
1028
+ location_assignments=location_assignments,
986
1029
  replenishment_policies=replenishment_policies,
987
1030
  classification=classification,
988
1031
  stock_balances=stock_balances,