ordercloud-python 2026.4.1__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 (114) hide show
  1. ordercloud/__init__.py +37 -0
  2. ordercloud/auth.py +136 -0
  3. ordercloud/client.py +211 -0
  4. ordercloud/config.py +42 -0
  5. ordercloud/errors.py +47 -0
  6. ordercloud/http.py +218 -0
  7. ordercloud/middleware.py +66 -0
  8. ordercloud/models/__init__.py +271 -0
  9. ordercloud/models/address.py +47 -0
  10. ordercloud/models/api_client.py +116 -0
  11. ordercloud/models/approval.py +73 -0
  12. ordercloud/models/assignments.py +402 -0
  13. ordercloud/models/auth_models.py +114 -0
  14. ordercloud/models/bundle.py +31 -0
  15. ordercloud/models/buyer.py +271 -0
  16. ordercloud/models/catalog.py +33 -0
  17. ordercloud/models/category.py +35 -0
  18. ordercloud/models/cost_center.py +27 -0
  19. ordercloud/models/credit_card.py +35 -0
  20. ordercloud/models/delivery.py +277 -0
  21. ordercloud/models/discount.py +63 -0
  22. ordercloud/models/integration.py +76 -0
  23. ordercloud/models/inventory_record.py +53 -0
  24. ordercloud/models/line_item.py +95 -0
  25. ordercloud/models/line_item_types.py +89 -0
  26. ordercloud/models/message_sender.py +80 -0
  27. ordercloud/models/misc.py +280 -0
  28. ordercloud/models/open_id_connect.py +47 -0
  29. ordercloud/models/order.py +477 -0
  30. ordercloud/models/order_return.py +92 -0
  31. ordercloud/models/payment.py +77 -0
  32. ordercloud/models/price_schedule.py +76 -0
  33. ordercloud/models/product.py +227 -0
  34. ordercloud/models/product_collection.py +186 -0
  35. ordercloud/models/promotion.py +297 -0
  36. ordercloud/models/security.py +89 -0
  37. ordercloud/models/shared.py +131 -0
  38. ordercloud/models/shipment.py +150 -0
  39. ordercloud/models/spec.py +67 -0
  40. ordercloud/models/spending_account.py +33 -0
  41. ordercloud/models/subscription.py +125 -0
  42. ordercloud/models/supplier.py +43 -0
  43. ordercloud/models/sync.py +172 -0
  44. ordercloud/models/user.py +207 -0
  45. ordercloud/models/user_group.py +27 -0
  46. ordercloud/models/webhook.py +58 -0
  47. ordercloud/py.typed +0 -0
  48. ordercloud/resources/__init__.py +65 -0
  49. ordercloud/resources/addresses.py +228 -0
  50. ordercloud/resources/admin_addresses.py +128 -0
  51. ordercloud/resources/admin_user_groups.py +185 -0
  52. ordercloud/resources/admin_users.py +150 -0
  53. ordercloud/resources/api_clients.py +308 -0
  54. ordercloud/resources/approval_rules.py +144 -0
  55. ordercloud/resources/base.py +145 -0
  56. ordercloud/resources/bundle_line_items.py +59 -0
  57. ordercloud/resources/bundle_subscription_items.py +54 -0
  58. ordercloud/resources/bundles.py +278 -0
  59. ordercloud/resources/buyer_groups.py +128 -0
  60. ordercloud/resources/buyers.py +164 -0
  61. ordercloud/resources/cart.py +613 -0
  62. ordercloud/resources/catalogs.py +311 -0
  63. ordercloud/resources/categories.py +392 -0
  64. ordercloud/resources/cost_centers.py +222 -0
  65. ordercloud/resources/credit_cards.py +227 -0
  66. ordercloud/resources/delivery_configurations.py +132 -0
  67. ordercloud/resources/discounts.py +201 -0
  68. ordercloud/resources/entity_syncs.py +534 -0
  69. ordercloud/resources/error_configs.py +71 -0
  70. ordercloud/resources/forgotten_credentials.py +74 -0
  71. ordercloud/resources/group_orders.py +28 -0
  72. ordercloud/resources/impersonation_configs.py +132 -0
  73. ordercloud/resources/incrementors.py +128 -0
  74. ordercloud/resources/integration_events.py +203 -0
  75. ordercloud/resources/inventory_integrations.py +65 -0
  76. ordercloud/resources/inventory_records.py +484 -0
  77. ordercloud/resources/line_items.py +262 -0
  78. ordercloud/resources/locales.py +203 -0
  79. ordercloud/resources/me.py +1882 -0
  80. ordercloud/resources/message_senders.py +261 -0
  81. ordercloud/resources/open_id_connects.py +128 -0
  82. ordercloud/resources/order_returns.py +306 -0
  83. ordercloud/resources/order_syncs.py +65 -0
  84. ordercloud/resources/orders.py +689 -0
  85. ordercloud/resources/payments.py +176 -0
  86. ordercloud/resources/price_schedules.py +164 -0
  87. ordercloud/resources/product_collections.py +116 -0
  88. ordercloud/resources/product_facets.py +128 -0
  89. ordercloud/resources/product_syncs.py +76 -0
  90. ordercloud/resources/products.py +454 -0
  91. ordercloud/resources/promotion_integrations.py +65 -0
  92. ordercloud/resources/promotions.py +203 -0
  93. ordercloud/resources/security_profiles.py +222 -0
  94. ordercloud/resources/seller_approval_rules.py +128 -0
  95. ordercloud/resources/shipments.py +256 -0
  96. ordercloud/resources/specs.py +313 -0
  97. ordercloud/resources/spending_accounts.py +227 -0
  98. ordercloud/resources/subscription_integrations.py +65 -0
  99. ordercloud/resources/subscription_items.py +146 -0
  100. ordercloud/resources/subscriptions.py +128 -0
  101. ordercloud/resources/supplier_addresses.py +144 -0
  102. ordercloud/resources/supplier_user_groups.py +210 -0
  103. ordercloud/resources/supplier_users.py +170 -0
  104. ordercloud/resources/suppliers.py +190 -0
  105. ordercloud/resources/tracking_events.py +130 -0
  106. ordercloud/resources/user_groups.py +210 -0
  107. ordercloud/resources/users.py +254 -0
  108. ordercloud/resources/webhooks.py +128 -0
  109. ordercloud/resources/xp_indices.py +77 -0
  110. ordercloud/sync_client.py +170 -0
  111. ordercloud_python-2026.4.1.dist-info/METADATA +552 -0
  112. ordercloud_python-2026.4.1.dist-info/RECORD +114 -0
  113. ordercloud_python-2026.4.1.dist-info/WHEEL +4 -0
  114. ordercloud_python-2026.4.1.dist-info/licenses/LICENSE +21 -0
@@ -0,0 +1,402 @@
1
+ # GENERATED by tools/codegen — DO NOT EDIT
2
+ # Source: ordercloud-openapi-v3.json
3
+ """OrderCloud AddressAssignment and related models."""
4
+
5
+ from __future__ import annotations
6
+ from typing import Optional
7
+ from pydantic import Field
8
+
9
+ from .shared import OrderCloudModel
10
+ from .message_sender import MessageType
11
+
12
+ __all__ = [
13
+ "AddressAssignment",
14
+ "ApiClientAssignment",
15
+ "BundleAssignment",
16
+ "BundleCatalogAssignment",
17
+ "BundleProductAssignment",
18
+ "CatalogAssignment",
19
+ "CategoryAssignment",
20
+ "CategoryBundleAssignment",
21
+ "CategoryProductAssignment",
22
+ "CostCenterAssignment",
23
+ "CreditCardAssignment",
24
+ "DiscountAssignment",
25
+ "InventoryRecordAssignment",
26
+ "LocaleAssignment",
27
+ "MessageCCListenerAssignment",
28
+ "MessageSenderAssignment",
29
+ "ProductAssignment",
30
+ "ProductCatalogAssignment",
31
+ "PromotionAssignment",
32
+ "SecurityProfileAssignment",
33
+ "SpecProductAssignment",
34
+ "SpendingAccountAssignment",
35
+ "UserGroupAssignment",
36
+ ]
37
+ _MessageType = MessageType
38
+
39
+
40
+ class AddressAssignment(OrderCloudModel):
41
+ """An OrderCloud AddressAssignment.
42
+
43
+ Attributes:
44
+ address_id:
45
+ user_id:
46
+ user_group_id:
47
+ is_shipping:
48
+ is_billing:
49
+ """
50
+
51
+ address_id: Optional[str] = Field(None, alias="AddressID")
52
+ user_id: Optional[str] = Field(None, alias="UserID")
53
+ user_group_id: Optional[str] = Field(None, alias="UserGroupID")
54
+ is_shipping: Optional[bool] = Field(None, alias="IsShipping")
55
+ is_billing: Optional[bool] = Field(None, alias="IsBilling")
56
+
57
+
58
+ class ApiClientAssignment(OrderCloudModel):
59
+ """An OrderCloud ApiClientAssignment.
60
+
61
+ Attributes:
62
+ api_client_id:
63
+ buyer_id:
64
+ supplier_id:
65
+ """
66
+
67
+ api_client_id: Optional[str] = Field(None, alias="ApiClientID")
68
+ buyer_id: Optional[str] = Field(None, alias="BuyerID")
69
+ supplier_id: Optional[str] = Field(None, alias="SupplierID")
70
+
71
+
72
+ class BundleAssignment(OrderCloudModel):
73
+ """An OrderCloud BundleAssignment.
74
+
75
+ Attributes:
76
+ seller_id: Marketplace owner can write to this property when creating bundle assignments for other sellers.
77
+ bundle_id:
78
+ buyer_id:
79
+ user_group_id:
80
+ """
81
+
82
+ seller_id: Optional[str] = Field(None, alias="SellerID")
83
+ bundle_id: Optional[str] = Field(None, alias="BundleID")
84
+ buyer_id: Optional[str] = Field(None, alias="BuyerID")
85
+ user_group_id: Optional[str] = Field(None, alias="UserGroupID")
86
+
87
+
88
+ class BundleCatalogAssignment(OrderCloudModel):
89
+ """An OrderCloud BundleCatalogAssignment.
90
+
91
+ Attributes:
92
+ catalog_id:
93
+ bundle_id:
94
+ """
95
+
96
+ catalog_id: Optional[str] = Field(None, alias="CatalogID")
97
+ bundle_id: Optional[str] = Field(None, alias="BundleID")
98
+
99
+
100
+ class BundleProductAssignment(OrderCloudModel):
101
+ """An OrderCloud BundleProductAssignment.
102
+
103
+ Attributes:
104
+ product_id:
105
+ bundle_id:
106
+ required:
107
+ default_quantity:
108
+ """
109
+
110
+ product_id: Optional[str] = Field(None, alias="ProductID")
111
+ bundle_id: Optional[str] = Field(None, alias="BundleID")
112
+ required: Optional[bool] = Field(None, alias="Required")
113
+ default_quantity: Optional[int] = Field(None, alias="DefaultQuantity")
114
+
115
+
116
+ class CatalogAssignment(OrderCloudModel):
117
+ """An OrderCloud CatalogAssignment.
118
+
119
+ Attributes:
120
+ catalog_id:
121
+ buyer_id:
122
+ buyer_group_id:
123
+ view_all_categories:
124
+ view_all_products:
125
+ """
126
+
127
+ catalog_id: Optional[str] = Field(None, alias="CatalogID")
128
+ buyer_id: Optional[str] = Field(None, alias="BuyerID")
129
+ buyer_group_id: Optional[str] = Field(None, alias="BuyerGroupID")
130
+ view_all_categories: Optional[bool] = Field(None, alias="ViewAllCategories")
131
+ view_all_products: Optional[bool] = Field(None, alias="ViewAllProducts")
132
+
133
+
134
+ class CategoryAssignment(OrderCloudModel):
135
+ """An OrderCloud CategoryAssignment.
136
+
137
+ Attributes:
138
+ category_id:
139
+ buyer_id:
140
+ user_group_id:
141
+ visible: Set to null to inherit from parent category or catalog level.
142
+ view_all_products: Set to null to inherit from parent category or catalog level.
143
+ """
144
+
145
+ category_id: Optional[str] = Field(None, alias="CategoryID")
146
+ buyer_id: Optional[str] = Field(None, alias="BuyerID")
147
+ user_group_id: Optional[str] = Field(None, alias="UserGroupID")
148
+ visible: Optional[bool] = Field(None, alias="Visible")
149
+ view_all_products: Optional[bool] = Field(None, alias="ViewAllProducts")
150
+
151
+
152
+ class CategoryBundleAssignment(OrderCloudModel):
153
+ """An OrderCloud CategoryBundleAssignment.
154
+
155
+ Attributes:
156
+ category_id:
157
+ bundle_id:
158
+ list_order:
159
+ """
160
+
161
+ category_id: Optional[str] = Field(None, alias="CategoryID")
162
+ bundle_id: Optional[str] = Field(None, alias="BundleID")
163
+ list_order: Optional[int] = Field(None, alias="ListOrder")
164
+
165
+
166
+ class CategoryProductAssignment(OrderCloudModel):
167
+ """An OrderCloud CategoryProductAssignment.
168
+
169
+ Attributes:
170
+ category_id:
171
+ product_id:
172
+ list_order:
173
+ """
174
+
175
+ category_id: Optional[str] = Field(None, alias="CategoryID")
176
+ product_id: Optional[str] = Field(None, alias="ProductID")
177
+ list_order: Optional[int] = Field(None, alias="ListOrder")
178
+
179
+
180
+ class CostCenterAssignment(OrderCloudModel):
181
+ """An OrderCloud CostCenterAssignment.
182
+
183
+ Attributes:
184
+ cost_center_id:
185
+ user_group_id:
186
+ """
187
+
188
+ cost_center_id: Optional[str] = Field(None, alias="CostCenterID")
189
+ user_group_id: Optional[str] = Field(None, alias="UserGroupID")
190
+
191
+
192
+ class CreditCardAssignment(OrderCloudModel):
193
+ """An OrderCloud CreditCardAssignment.
194
+
195
+ Attributes:
196
+ credit_card_id:
197
+ user_id:
198
+ user_group_id:
199
+ """
200
+
201
+ credit_card_id: Optional[str] = Field(None, alias="CreditCardID")
202
+ user_id: Optional[str] = Field(None, alias="UserID")
203
+ user_group_id: Optional[str] = Field(None, alias="UserGroupID")
204
+
205
+
206
+ class DiscountAssignment(OrderCloudModel):
207
+ """An OrderCloud DiscountAssignment.
208
+
209
+ Attributes:
210
+ discount_id:
211
+ buyer_group_id: When specified, BuyerID and UserGroupID must be null.
212
+ buyer_id: Required when BuyerGroupID is null.
213
+ user_group_id: Optional. Only valid when BuyerID is specified.
214
+ """
215
+
216
+ discount_id: Optional[str] = Field(None, alias="DiscountID")
217
+ buyer_group_id: Optional[str] = Field(None, alias="BuyerGroupID")
218
+ buyer_id: Optional[str] = Field(None, alias="BuyerID")
219
+ user_group_id: Optional[str] = Field(None, alias="UserGroupID")
220
+
221
+
222
+ class InventoryRecordAssignment(OrderCloudModel):
223
+ """An OrderCloud InventoryRecordAssignment.
224
+
225
+ Attributes:
226
+ inventory_record_id:
227
+ buyer_id:
228
+ user_group_id:
229
+ """
230
+
231
+ inventory_record_id: Optional[str] = Field(None, alias="InventoryRecordID")
232
+ buyer_id: Optional[str] = Field(None, alias="BuyerID")
233
+ user_group_id: Optional[str] = Field(None, alias="UserGroupID")
234
+
235
+
236
+ class LocaleAssignment(OrderCloudModel):
237
+ """An OrderCloud LocaleAssignment.
238
+
239
+ Attributes:
240
+ locale_id:
241
+ buyer_id:
242
+ user_group_id:
243
+ """
244
+
245
+ locale_id: Optional[str] = Field(None, alias="LocaleID")
246
+ buyer_id: Optional[str] = Field(None, alias="BuyerID")
247
+ user_group_id: Optional[str] = Field(None, alias="UserGroupID")
248
+
249
+
250
+ class MessageCCListenerAssignment(OrderCloudModel):
251
+ """An OrderCloud MessageCCListenerAssignment.
252
+
253
+ Attributes:
254
+ message_sender_assignment:
255
+ message_config_name: (read-only)
256
+ message_config_description: (read-only)
257
+ message_type:
258
+ buyer_id:
259
+ supplier_id:
260
+ user_group_id:
261
+ user_id:
262
+ """
263
+
264
+ message_sender_assignment: Optional[_MessageSenderAssignment] = Field(
265
+ None, alias="MessageSenderAssignment"
266
+ )
267
+ message_config_name: Optional[str] = Field(None, alias="MessageConfigName")
268
+ message_config_description: Optional[str] = Field(None, alias="MessageConfigDescription")
269
+ message_type: Optional[_MessageType] = Field(None, alias="MessageType")
270
+ buyer_id: Optional[str] = Field(None, alias="BuyerID")
271
+ supplier_id: Optional[str] = Field(None, alias="SupplierID")
272
+ user_group_id: Optional[str] = Field(None, alias="UserGroupID")
273
+ user_id: Optional[str] = Field(None, alias="UserID")
274
+
275
+
276
+ class MessageSenderAssignment(OrderCloudModel):
277
+ """An OrderCloud MessageSenderAssignment.
278
+
279
+ Attributes:
280
+ message_sender_id:
281
+ buyer_id:
282
+ supplier_id:
283
+ user_group_id:
284
+ message_config_name: (read-only)
285
+ message_config_description: (read-only)
286
+ """
287
+
288
+ message_sender_id: Optional[str] = Field(None, alias="MessageSenderID")
289
+ buyer_id: Optional[str] = Field(None, alias="BuyerID")
290
+ supplier_id: Optional[str] = Field(None, alias="SupplierID")
291
+ user_group_id: Optional[str] = Field(None, alias="UserGroupID")
292
+ message_config_name: Optional[str] = Field(None, alias="MessageConfigName")
293
+ message_config_description: Optional[str] = Field(None, alias="MessageConfigDescription")
294
+
295
+
296
+ class ProductAssignment(OrderCloudModel):
297
+ """An OrderCloud ProductAssignment.
298
+
299
+ Attributes:
300
+ seller_id: Only the marketplace owner can override the SellerID on create. A price schedule owned by the supplier is required in order to write to this property.
301
+ product_id:
302
+ buyer_id:
303
+ user_group_id:
304
+ price_schedule_id:
305
+ """
306
+
307
+ seller_id: Optional[str] = Field(None, alias="SellerID")
308
+ product_id: Optional[str] = Field(None, alias="ProductID")
309
+ buyer_id: Optional[str] = Field(None, alias="BuyerID")
310
+ user_group_id: Optional[str] = Field(None, alias="UserGroupID")
311
+ price_schedule_id: Optional[str] = Field(None, alias="PriceScheduleID")
312
+
313
+
314
+ class ProductCatalogAssignment(OrderCloudModel):
315
+ """An OrderCloud ProductCatalogAssignment.
316
+
317
+ Attributes:
318
+ catalog_id:
319
+ product_id:
320
+ """
321
+
322
+ catalog_id: Optional[str] = Field(None, alias="CatalogID")
323
+ product_id: Optional[str] = Field(None, alias="ProductID")
324
+
325
+
326
+ class PromotionAssignment(OrderCloudModel):
327
+ """An OrderCloud PromotionAssignment.
328
+
329
+ Attributes:
330
+ promotion_id:
331
+ buyer_id:
332
+ user_group_id:
333
+ """
334
+
335
+ promotion_id: Optional[str] = Field(None, alias="PromotionID")
336
+ buyer_id: Optional[str] = Field(None, alias="BuyerID")
337
+ user_group_id: Optional[str] = Field(None, alias="UserGroupID")
338
+
339
+
340
+ class SecurityProfileAssignment(OrderCloudModel):
341
+ """An OrderCloud SecurityProfileAssignment.
342
+
343
+ Attributes:
344
+ security_profile_id:
345
+ buyer_id:
346
+ supplier_id:
347
+ user_id:
348
+ user_group_id:
349
+ """
350
+
351
+ security_profile_id: Optional[str] = Field(None, alias="SecurityProfileID")
352
+ buyer_id: Optional[str] = Field(None, alias="BuyerID")
353
+ supplier_id: Optional[str] = Field(None, alias="SupplierID")
354
+ user_id: Optional[str] = Field(None, alias="UserID")
355
+ user_group_id: Optional[str] = Field(None, alias="UserGroupID")
356
+
357
+
358
+ class SpecProductAssignment(OrderCloudModel):
359
+ """An OrderCloud SpecProductAssignment.
360
+
361
+ Attributes:
362
+ spec_id:
363
+ product_id:
364
+ default_value: When defined, overrides the DefaultValue set on the spec for this product only.
365
+ default_option_id: When defined, overrides the DefaultOptionID set on the spec for this product only.
366
+ """
367
+
368
+ spec_id: Optional[str] = Field(None, alias="SpecID")
369
+ product_id: Optional[str] = Field(None, alias="ProductID")
370
+ default_value: Optional[str] = Field(None, alias="DefaultValue")
371
+ default_option_id: Optional[str] = Field(None, alias="DefaultOptionID")
372
+
373
+
374
+ class SpendingAccountAssignment(OrderCloudModel):
375
+ """An OrderCloud SpendingAccountAssignment.
376
+
377
+ Attributes:
378
+ spending_account_id:
379
+ user_id:
380
+ user_group_id:
381
+ allow_exceed: If true, a user can place an order for an amount greater than the available balance, causing the balance to go negative.
382
+ """
383
+
384
+ spending_account_id: Optional[str] = Field(None, alias="SpendingAccountID")
385
+ user_id: Optional[str] = Field(None, alias="UserID")
386
+ user_group_id: Optional[str] = Field(None, alias="UserGroupID")
387
+ allow_exceed: Optional[bool] = Field(None, alias="AllowExceed")
388
+
389
+
390
+ class UserGroupAssignment(OrderCloudModel):
391
+ """An OrderCloud UserGroupAssignment.
392
+
393
+ Attributes:
394
+ user_group_id:
395
+ user_id:
396
+ """
397
+
398
+ user_group_id: Optional[str] = Field(None, alias="UserGroupID")
399
+ user_id: Optional[str] = Field(None, alias="UserID")
400
+
401
+
402
+ _MessageSenderAssignment = MessageSenderAssignment
@@ -0,0 +1,114 @@
1
+ # GENERATED by tools/codegen — DO NOT EDIT
2
+ # Source: ordercloud-openapi-v3.json
3
+ """OrderCloud AccessToken and related models."""
4
+
5
+ from __future__ import annotations
6
+ from typing import Optional
7
+ from pydantic import Field
8
+
9
+ from .shared import OrderCloudModel
10
+ from .misc import ApiRole
11
+
12
+ __all__ = [
13
+ "AccessToken",
14
+ "AccessTokenBasic",
15
+ "ImpersonateTokenRequest",
16
+ "OneTimePasswordRequest",
17
+ "PasswordReset",
18
+ "PasswordResetRequest",
19
+ "TokenPasswordReset",
20
+ ]
21
+
22
+
23
+ class AccessToken(OrderCloudModel):
24
+ """An OrderCloud AccessToken.
25
+
26
+ Attributes:
27
+ access_token:
28
+ expires_in:
29
+ token_type:
30
+ refresh_token:
31
+ """
32
+
33
+ access_token: Optional[str] = Field(None, alias="access_token")
34
+ expires_in: Optional[int] = Field(None, alias="expires_in")
35
+ token_type: Optional[str] = Field(None, alias="token_type")
36
+ refresh_token: Optional[str] = Field(None, alias="refresh_token")
37
+
38
+
39
+ class AccessTokenBasic(OrderCloudModel):
40
+ """An OrderCloud AccessTokenBasic.
41
+
42
+ Attributes:
43
+ access_token:
44
+ """
45
+
46
+ access_token: Optional[str] = Field(None, alias="access_token")
47
+
48
+
49
+ class ImpersonateTokenRequest(OrderCloudModel):
50
+ """An OrderCloud ImpersonateTokenRequest.
51
+
52
+ Attributes:
53
+ client_id:
54
+ roles:
55
+ custom_roles:
56
+ """
57
+
58
+ client_id: Optional[str] = Field(None, alias="ClientID")
59
+ roles: Optional[list[ApiRole]] = Field(None, alias="Roles")
60
+ custom_roles: Optional[list[str]] = Field(None, alias="CustomRoles")
61
+
62
+
63
+ class OneTimePasswordRequest(OrderCloudModel):
64
+ """An OrderCloud OneTimePasswordRequest.
65
+
66
+ Attributes:
67
+ client_id:
68
+ username:
69
+ email:
70
+ """
71
+
72
+ client_id: Optional[str] = Field(None, alias="ClientID")
73
+ username: Optional[str] = Field(None, alias="Username")
74
+ email: Optional[str] = Field(None, alias="Email")
75
+
76
+
77
+ class PasswordReset(OrderCloudModel):
78
+ """An OrderCloud PasswordReset.
79
+
80
+ Attributes:
81
+ client_id:
82
+ username:
83
+ password:
84
+ """
85
+
86
+ client_id: Optional[str] = Field(None, alias="ClientID")
87
+ username: Optional[str] = Field(None, alias="Username")
88
+ password: Optional[str] = Field(None, alias="Password")
89
+
90
+
91
+ class PasswordResetRequest(OrderCloudModel):
92
+ """An OrderCloud PasswordResetRequest.
93
+
94
+ Attributes:
95
+ client_id:
96
+ email:
97
+ username:
98
+ url:
99
+ """
100
+
101
+ client_id: Optional[str] = Field(None, alias="ClientID")
102
+ email: Optional[str] = Field(None, alias="Email")
103
+ username: Optional[str] = Field(None, alias="Username")
104
+ url: Optional[str] = Field(None, alias="URL")
105
+
106
+
107
+ class TokenPasswordReset(OrderCloudModel):
108
+ """An OrderCloud TokenPasswordReset.
109
+
110
+ Attributes:
111
+ new_password:
112
+ """
113
+
114
+ new_password: Optional[str] = Field(None, alias="NewPassword")
@@ -0,0 +1,31 @@
1
+ # GENERATED by tools/codegen — DO NOT EDIT
2
+ # Source: ordercloud-openapi-v3.json
3
+ """OrderCloud Bundle models."""
4
+
5
+ from __future__ import annotations
6
+ from typing import Generic, Optional
7
+ from pydantic import Field
8
+
9
+ from .shared import OrderCloudModel, XP
10
+
11
+ __all__ = ["Bundle"]
12
+
13
+
14
+ class Bundle(OrderCloudModel, Generic[XP]):
15
+ """An OrderCloud Bundle.
16
+
17
+ Attributes:
18
+ id:
19
+ owner_id: ID of the organization that owns the bundle. Only the ma marketplace owner can override the OwnerID on create.
20
+ name:
21
+ description:
22
+ active: If false, bundle is not visible or purchasable from a buyer's perspective.
23
+ xp: Consider keeping bundle and product xp schemas consistent. Defining conflicting xp types will result in indexing problems.
24
+ """
25
+
26
+ id: Optional[str] = Field(None, alias="ID")
27
+ owner_id: Optional[str] = Field(None, alias="OwnerID")
28
+ name: Optional[str] = Field(None, alias="Name")
29
+ description: Optional[str] = Field(None, alias="Description")
30
+ active: Optional[bool] = Field(None, alias="Active")
31
+ xp: Optional[XP] = Field(None, alias="xp")