moovio_sdk 0.17.1__py3-none-any.whl → 0.17.3__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.

Potentially problematic release.


This version of moovio_sdk might be problematic. Click here for more details.

Files changed (31) hide show
  1. moovio_sdk/_version.py +2 -2
  2. moovio_sdk/models/components/__init__.py +83 -0
  3. moovio_sdk/models/components/amountdecimalvalidationerror.py +18 -0
  4. moovio_sdk/models/components/assignproductimage.py +16 -0
  5. moovio_sdk/models/components/assignproductimagevalidationerror.py +15 -0
  6. moovio_sdk/models/components/createproductoption.py +45 -0
  7. moovio_sdk/models/components/createproductoptiongroup.py +52 -0
  8. moovio_sdk/models/components/feeproperties.py +7 -1
  9. moovio_sdk/models/components/partnerpricing.py +12 -6
  10. moovio_sdk/models/components/partnerpricingagreement.py +10 -4
  11. moovio_sdk/models/components/product.py +77 -0
  12. moovio_sdk/models/components/productimagemetadata.py +27 -0
  13. moovio_sdk/models/components/productoption.py +49 -0
  14. moovio_sdk/models/components/productoptiongroup.py +56 -0
  15. moovio_sdk/models/components/productoptiongroupvalidationerror.py +31 -0
  16. moovio_sdk/models/components/productoptionvalidationerror.py +30 -0
  17. moovio_sdk/models/components/productrequest.py +57 -0
  18. moovio_sdk/models/components/volumerange.py +37 -0
  19. moovio_sdk/models/errors/__init__.py +8 -0
  20. moovio_sdk/models/errors/productrequestvalidationerror.py +58 -0
  21. moovio_sdk/models/operations/__init__.py +100 -0
  22. moovio_sdk/models/operations/createproduct.py +78 -0
  23. moovio_sdk/models/operations/disableproduct.py +67 -0
  24. moovio_sdk/models/operations/getproduct.py +71 -0
  25. moovio_sdk/models/operations/listproducts.py +81 -0
  26. moovio_sdk/models/operations/updateproduct.py +85 -0
  27. moovio_sdk/products.py +1232 -0
  28. moovio_sdk/sdk.py +3 -0
  29. {moovio_sdk-0.17.1.dist-info → moovio_sdk-0.17.3.dist-info}/METADATA +56 -45
  30. {moovio_sdk-0.17.1.dist-info → moovio_sdk-0.17.3.dist-info}/RECORD +31 -11
  31. {moovio_sdk-0.17.1.dist-info → moovio_sdk-0.17.3.dist-info}/WHEEL +0 -0
@@ -0,0 +1,31 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from .productoptionvalidationerror import (
5
+ ProductOptionValidationError,
6
+ ProductOptionValidationErrorTypedDict,
7
+ )
8
+ from moovio_sdk.types import BaseModel
9
+ import pydantic
10
+ from typing import Dict, Optional
11
+ from typing_extensions import Annotated, NotRequired, TypedDict
12
+
13
+
14
+ class ProductOptionGroupValidationErrorTypedDict(TypedDict):
15
+ name: NotRequired[str]
16
+ description: NotRequired[str]
17
+ min_select: NotRequired[str]
18
+ max_select: NotRequired[str]
19
+ options: NotRequired[Dict[str, ProductOptionValidationErrorTypedDict]]
20
+
21
+
22
+ class ProductOptionGroupValidationError(BaseModel):
23
+ name: Optional[str] = None
24
+
25
+ description: Optional[str] = None
26
+
27
+ min_select: Annotated[Optional[str], pydantic.Field(alias="minSelect")] = None
28
+
29
+ max_select: Annotated[Optional[str], pydantic.Field(alias="maxSelect")] = None
30
+
31
+ options: Optional[Dict[str, ProductOptionValidationError]] = None
@@ -0,0 +1,30 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from .assignproductimagevalidationerror import (
5
+ AssignProductImageValidationError,
6
+ AssignProductImageValidationErrorTypedDict,
7
+ )
8
+ from moovio_sdk.types import BaseModel
9
+ import pydantic
10
+ from typing import Dict, Optional
11
+ from typing_extensions import Annotated, NotRequired, TypedDict
12
+
13
+
14
+ class ProductOptionValidationErrorTypedDict(TypedDict):
15
+ name: NotRequired[str]
16
+ description: NotRequired[str]
17
+ price_modifier: NotRequired[str]
18
+ images: NotRequired[Dict[str, AssignProductImageValidationErrorTypedDict]]
19
+
20
+
21
+ class ProductOptionValidationError(BaseModel):
22
+ name: Optional[str] = None
23
+
24
+ description: Optional[str] = None
25
+
26
+ price_modifier: Annotated[Optional[str], pydantic.Field(alias="priceModifier")] = (
27
+ None
28
+ )
29
+
30
+ images: Optional[Dict[str, AssignProductImageValidationError]] = None
@@ -0,0 +1,57 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from .amountdecimal import AmountDecimal, AmountDecimalTypedDict
5
+ from .assignproductimage import AssignProductImage, AssignProductImageTypedDict
6
+ from .createproductoptiongroup import (
7
+ CreateProductOptionGroup,
8
+ CreateProductOptionGroupTypedDict,
9
+ )
10
+ from moovio_sdk.types import BaseModel
11
+ import pydantic
12
+ from typing import List, Optional
13
+ from typing_extensions import Annotated, NotRequired, TypedDict
14
+
15
+
16
+ class ProductRequestTypedDict(TypedDict):
17
+ r"""Request to create or update a product."""
18
+
19
+ title: str
20
+ base_price: AmountDecimalTypedDict
21
+ r"""A product's starting price, before applying modifiers."""
22
+ description: NotRequired[str]
23
+ r"""A detailed description of the product.
24
+
25
+ - Must be valid UTF-8 text
26
+ - Supports Markdown for formatting
27
+ - HTML is not permitted and will be rejected
28
+ """
29
+ images: NotRequired[List[AssignProductImageTypedDict]]
30
+ r"""Assign previously uploaded images to a product or option."""
31
+ option_groups: NotRequired[List[CreateProductOptionGroupTypedDict]]
32
+ r"""Optional configuration options for a product, such as size or color."""
33
+
34
+
35
+ class ProductRequest(BaseModel):
36
+ r"""Request to create or update a product."""
37
+
38
+ title: str
39
+
40
+ base_price: Annotated[AmountDecimal, pydantic.Field(alias="basePrice")]
41
+ r"""A product's starting price, before applying modifiers."""
42
+
43
+ description: Optional[str] = None
44
+ r"""A detailed description of the product.
45
+
46
+ - Must be valid UTF-8 text
47
+ - Supports Markdown for formatting
48
+ - HTML is not permitted and will be rejected
49
+ """
50
+
51
+ images: Optional[List[AssignProductImage]] = None
52
+ r"""Assign previously uploaded images to a product or option."""
53
+
54
+ option_groups: Annotated[
55
+ Optional[List[CreateProductOptionGroup]], pydantic.Field(alias="optionGroups")
56
+ ] = None
57
+ r"""Optional configuration options for a product, such as size or color."""
@@ -0,0 +1,37 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from .amountdecimal import AmountDecimal, AmountDecimalTypedDict
5
+ from moovio_sdk.types import BaseModel
6
+ import pydantic
7
+ from typing import Optional
8
+ from typing_extensions import Annotated, NotRequired, TypedDict
9
+
10
+
11
+ class VolumeRangeTypedDict(TypedDict):
12
+ r"""Defines the volume ranges for tiered pricing models."""
13
+
14
+ from_value: int
15
+ r"""Specifies the lower value of a tier for the fee."""
16
+ flat_amount: AmountDecimalTypedDict
17
+ r"""The flat amount for a whole tier of the fee."""
18
+ per_unit_amount: AmountDecimalTypedDict
19
+ r"""The unit price for a specific tier of the fee."""
20
+ to_value: NotRequired[int]
21
+ r"""Specifies the upper value of a tier for the fee."""
22
+
23
+
24
+ class VolumeRange(BaseModel):
25
+ r"""Defines the volume ranges for tiered pricing models."""
26
+
27
+ from_value: Annotated[int, pydantic.Field(alias="fromValue")]
28
+ r"""Specifies the lower value of a tier for the fee."""
29
+
30
+ flat_amount: Annotated[AmountDecimal, pydantic.Field(alias="flatAmount")]
31
+ r"""The flat amount for a whole tier of the fee."""
32
+
33
+ per_unit_amount: Annotated[AmountDecimal, pydantic.Field(alias="perUnitAmount")]
34
+ r"""The unit price for a specific tier of the fee."""
35
+
36
+ to_value: Annotated[Optional[int], pydantic.Field(alias="toValue")] = None
37
+ r"""Specifies the upper value of a tier for the fee."""
@@ -74,6 +74,10 @@ if TYPE_CHECKING:
74
74
  PatchWalletValidationError,
75
75
  PatchWalletValidationErrorData,
76
76
  )
77
+ from .productrequestvalidationerror import (
78
+ ProductRequestValidationError,
79
+ ProductRequestValidationErrorData,
80
+ )
77
81
  from .refundvalidationerror import RefundValidationError, RefundValidationErrorData
78
82
  from .representativevalidationerror import (
79
83
  Error,
@@ -188,6 +192,8 @@ __all__ = [
188
192
  "PatchTransferValidationErrorData",
189
193
  "PatchWalletValidationError",
190
194
  "PatchWalletValidationErrorData",
195
+ "ProductRequestValidationError",
196
+ "ProductRequestValidationErrorData",
191
197
  "RefundValidationError",
192
198
  "RefundValidationErrorData",
193
199
  "RepresentativeValidationError",
@@ -284,6 +290,8 @@ _dynamic_imports: dict[str, str] = {
284
290
  "PatchTransferValidationErrorData": ".patchtransfervalidationerror",
285
291
  "PatchWalletValidationError": ".patchwalletvalidationerror",
286
292
  "PatchWalletValidationErrorData": ".patchwalletvalidationerror",
293
+ "ProductRequestValidationError": ".productrequestvalidationerror",
294
+ "ProductRequestValidationErrorData": ".productrequestvalidationerror",
287
295
  "RefundValidationError": ".refundvalidationerror",
288
296
  "RefundValidationErrorData": ".refundvalidationerror",
289
297
  "Error": ".representativevalidationerror",
@@ -0,0 +1,58 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from dataclasses import dataclass, field
5
+ import httpx
6
+ from moovio_sdk.models.components import (
7
+ amountdecimalvalidationerror as components_amountdecimalvalidationerror,
8
+ assignproductimagevalidationerror as components_assignproductimagevalidationerror,
9
+ productoptiongroupvalidationerror as components_productoptiongroupvalidationerror,
10
+ )
11
+ from moovio_sdk.models.errors import MoovError
12
+ from moovio_sdk.types import BaseModel
13
+ import pydantic
14
+ from typing import Dict, Optional
15
+ from typing_extensions import Annotated
16
+
17
+
18
+ class ProductRequestValidationErrorData(BaseModel):
19
+ title: Optional[str] = None
20
+
21
+ description: Optional[str] = None
22
+
23
+ base_price: Annotated[
24
+ Optional[components_amountdecimalvalidationerror.AmountDecimalValidationError],
25
+ pydantic.Field(alias="basePrice"),
26
+ ] = None
27
+
28
+ images: Optional[
29
+ Dict[
30
+ str,
31
+ components_assignproductimagevalidationerror.AssignProductImageValidationError,
32
+ ]
33
+ ] = None
34
+
35
+ option_groups: Annotated[
36
+ Optional[
37
+ Dict[
38
+ str,
39
+ components_productoptiongroupvalidationerror.ProductOptionGroupValidationError,
40
+ ]
41
+ ],
42
+ pydantic.Field(alias="optionGroups"),
43
+ ] = None
44
+
45
+
46
+ @dataclass(unsafe_hash=True)
47
+ class ProductRequestValidationError(MoovError):
48
+ data: ProductRequestValidationErrorData = field(hash=False)
49
+
50
+ def __init__(
51
+ self,
52
+ data: ProductRequestValidationErrorData,
53
+ raw_response: httpx.Response,
54
+ body: Optional[str] = None,
55
+ ):
56
+ message = body or raw_response.text
57
+ super().__init__(message, raw_response, body)
58
+ object.__setattr__(self, "data", data)
@@ -104,6 +104,14 @@ if TYPE_CHECKING:
104
104
  CreatePaymentLinkResponse,
105
105
  CreatePaymentLinkResponseTypedDict,
106
106
  )
107
+ from .createproduct import (
108
+ CreateProductGlobals,
109
+ CreateProductGlobalsTypedDict,
110
+ CreateProductRequest,
111
+ CreateProductRequestTypedDict,
112
+ CreateProductResponse,
113
+ CreateProductResponseTypedDict,
114
+ )
107
115
  from .createreceipts import (
108
116
  CreateReceiptsGlobals,
109
117
  CreateReceiptsGlobalsTypedDict,
@@ -254,6 +262,14 @@ if TYPE_CHECKING:
254
262
  DisablePaymentLinkResponse,
255
263
  DisablePaymentLinkResponseTypedDict,
256
264
  )
265
+ from .disableproduct import (
266
+ DisableProductGlobals,
267
+ DisableProductGlobalsTypedDict,
268
+ DisableProductRequest,
269
+ DisableProductRequestTypedDict,
270
+ DisableProductResponse,
271
+ DisableProductResponseTypedDict,
272
+ )
257
273
  from .disconnectaccount import (
258
274
  DisconnectAccountGlobals,
259
275
  DisconnectAccountGlobalsTypedDict,
@@ -498,6 +514,14 @@ if TYPE_CHECKING:
498
514
  GetPaymentMethodResponse,
499
515
  GetPaymentMethodResponseTypedDict,
500
516
  )
517
+ from .getproduct import (
518
+ GetProductGlobals,
519
+ GetProductGlobalsTypedDict,
520
+ GetProductRequest,
521
+ GetProductRequestTypedDict,
522
+ GetProductResponse,
523
+ GetProductResponseTypedDict,
524
+ )
501
525
  from .getpublicimage import (
502
526
  GetPublicImageRequest,
503
527
  GetPublicImageRequestTypedDict,
@@ -878,6 +902,14 @@ if TYPE_CHECKING:
878
902
  ListPaymentMethodsResponse,
879
903
  ListPaymentMethodsResponseTypedDict,
880
904
  )
905
+ from .listproducts import (
906
+ ListProductsGlobals,
907
+ ListProductsGlobalsTypedDict,
908
+ ListProductsRequest,
909
+ ListProductsRequestTypedDict,
910
+ ListProductsResponse,
911
+ ListProductsResponseTypedDict,
912
+ )
881
913
  from .listreceipts import (
882
914
  ListReceiptsGlobals,
883
915
  ListReceiptsGlobalsTypedDict,
@@ -1125,6 +1157,14 @@ if TYPE_CHECKING:
1125
1157
  UpdatePaymentLinkResponse,
1126
1158
  UpdatePaymentLinkResponseTypedDict,
1127
1159
  )
1160
+ from .updateproduct import (
1161
+ UpdateProductGlobals,
1162
+ UpdateProductGlobalsTypedDict,
1163
+ UpdateProductRequest,
1164
+ UpdateProductRequestTypedDict,
1165
+ UpdateProductResponse,
1166
+ UpdateProductResponseTypedDict,
1167
+ )
1128
1168
  from .updaterepresentative import (
1129
1169
  UpdateRepresentativeGlobals,
1130
1170
  UpdateRepresentativeGlobalsTypedDict,
@@ -1287,6 +1327,12 @@ __all__ = [
1287
1327
  "CreatePaymentLinkRequestTypedDict",
1288
1328
  "CreatePaymentLinkResponse",
1289
1329
  "CreatePaymentLinkResponseTypedDict",
1330
+ "CreateProductGlobals",
1331
+ "CreateProductGlobalsTypedDict",
1332
+ "CreateProductRequest",
1333
+ "CreateProductRequestTypedDict",
1334
+ "CreateProductResponse",
1335
+ "CreateProductResponseTypedDict",
1290
1336
  "CreateReceiptsGlobals",
1291
1337
  "CreateReceiptsGlobalsTypedDict",
1292
1338
  "CreateReceiptsResponse",
@@ -1399,6 +1445,12 @@ __all__ = [
1399
1445
  "DisablePaymentLinkRequestTypedDict",
1400
1446
  "DisablePaymentLinkResponse",
1401
1447
  "DisablePaymentLinkResponseTypedDict",
1448
+ "DisableProductGlobals",
1449
+ "DisableProductGlobalsTypedDict",
1450
+ "DisableProductRequest",
1451
+ "DisableProductRequestTypedDict",
1452
+ "DisableProductResponse",
1453
+ "DisableProductResponseTypedDict",
1402
1454
  "DisconnectAccountGlobals",
1403
1455
  "DisconnectAccountGlobalsTypedDict",
1404
1456
  "DisconnectAccountRequest",
@@ -1583,6 +1635,12 @@ __all__ = [
1583
1635
  "GetPaymentMethodRequestTypedDict",
1584
1636
  "GetPaymentMethodResponse",
1585
1637
  "GetPaymentMethodResponseTypedDict",
1638
+ "GetProductGlobals",
1639
+ "GetProductGlobalsTypedDict",
1640
+ "GetProductRequest",
1641
+ "GetProductRequestTypedDict",
1642
+ "GetProductResponse",
1643
+ "GetProductResponseTypedDict",
1586
1644
  "GetPublicImageRequest",
1587
1645
  "GetPublicImageRequestTypedDict",
1588
1646
  "GetPublicImageResponse",
@@ -1870,6 +1928,12 @@ __all__ = [
1870
1928
  "ListPaymentMethodsRequestTypedDict",
1871
1929
  "ListPaymentMethodsResponse",
1872
1930
  "ListPaymentMethodsResponseTypedDict",
1931
+ "ListProductsGlobals",
1932
+ "ListProductsGlobalsTypedDict",
1933
+ "ListProductsRequest",
1934
+ "ListProductsRequestTypedDict",
1935
+ "ListProductsResponse",
1936
+ "ListProductsResponseTypedDict",
1873
1937
  "ListReceiptsGlobals",
1874
1938
  "ListReceiptsGlobalsTypedDict",
1875
1939
  "ListReceiptsRequest",
@@ -2054,6 +2118,12 @@ __all__ = [
2054
2118
  "UpdatePaymentLinkRequestTypedDict",
2055
2119
  "UpdatePaymentLinkResponse",
2056
2120
  "UpdatePaymentLinkResponseTypedDict",
2121
+ "UpdateProductGlobals",
2122
+ "UpdateProductGlobalsTypedDict",
2123
+ "UpdateProductRequest",
2124
+ "UpdateProductRequestTypedDict",
2125
+ "UpdateProductResponse",
2126
+ "UpdateProductResponseTypedDict",
2057
2127
  "UpdateRepresentativeGlobals",
2058
2128
  "UpdateRepresentativeGlobalsTypedDict",
2059
2129
  "UpdateRepresentativeRequest",
@@ -2195,6 +2265,12 @@ _dynamic_imports: dict[str, str] = {
2195
2265
  "CreatePaymentLinkRequestTypedDict": ".createpaymentlink",
2196
2266
  "CreatePaymentLinkResponse": ".createpaymentlink",
2197
2267
  "CreatePaymentLinkResponseTypedDict": ".createpaymentlink",
2268
+ "CreateProductGlobals": ".createproduct",
2269
+ "CreateProductGlobalsTypedDict": ".createproduct",
2270
+ "CreateProductRequest": ".createproduct",
2271
+ "CreateProductRequestTypedDict": ".createproduct",
2272
+ "CreateProductResponse": ".createproduct",
2273
+ "CreateProductResponseTypedDict": ".createproduct",
2198
2274
  "CreateReceiptsGlobals": ".createreceipts",
2199
2275
  "CreateReceiptsGlobalsTypedDict": ".createreceipts",
2200
2276
  "CreateReceiptsResponse": ".createreceipts",
@@ -2307,6 +2383,12 @@ _dynamic_imports: dict[str, str] = {
2307
2383
  "DisablePaymentLinkRequestTypedDict": ".disablepaymentlink",
2308
2384
  "DisablePaymentLinkResponse": ".disablepaymentlink",
2309
2385
  "DisablePaymentLinkResponseTypedDict": ".disablepaymentlink",
2386
+ "DisableProductGlobals": ".disableproduct",
2387
+ "DisableProductGlobalsTypedDict": ".disableproduct",
2388
+ "DisableProductRequest": ".disableproduct",
2389
+ "DisableProductRequestTypedDict": ".disableproduct",
2390
+ "DisableProductResponse": ".disableproduct",
2391
+ "DisableProductResponseTypedDict": ".disableproduct",
2310
2392
  "DisconnectAccountGlobals": ".disconnectaccount",
2311
2393
  "DisconnectAccountGlobalsTypedDict": ".disconnectaccount",
2312
2394
  "DisconnectAccountRequest": ".disconnectaccount",
@@ -2491,6 +2573,12 @@ _dynamic_imports: dict[str, str] = {
2491
2573
  "GetPaymentMethodRequestTypedDict": ".getpaymentmethod",
2492
2574
  "GetPaymentMethodResponse": ".getpaymentmethod",
2493
2575
  "GetPaymentMethodResponseTypedDict": ".getpaymentmethod",
2576
+ "GetProductGlobals": ".getproduct",
2577
+ "GetProductGlobalsTypedDict": ".getproduct",
2578
+ "GetProductRequest": ".getproduct",
2579
+ "GetProductRequestTypedDict": ".getproduct",
2580
+ "GetProductResponse": ".getproduct",
2581
+ "GetProductResponseTypedDict": ".getproduct",
2494
2582
  "GetPublicImageRequest": ".getpublicimage",
2495
2583
  "GetPublicImageRequestTypedDict": ".getpublicimage",
2496
2584
  "GetPublicImageResponse": ".getpublicimage",
@@ -2777,6 +2865,12 @@ _dynamic_imports: dict[str, str] = {
2777
2865
  "ListPaymentMethodsRequestTypedDict": ".listpaymentmethods",
2778
2866
  "ListPaymentMethodsResponse": ".listpaymentmethods",
2779
2867
  "ListPaymentMethodsResponseTypedDict": ".listpaymentmethods",
2868
+ "ListProductsGlobals": ".listproducts",
2869
+ "ListProductsGlobalsTypedDict": ".listproducts",
2870
+ "ListProductsRequest": ".listproducts",
2871
+ "ListProductsRequestTypedDict": ".listproducts",
2872
+ "ListProductsResponse": ".listproducts",
2873
+ "ListProductsResponseTypedDict": ".listproducts",
2780
2874
  "ListReceiptsGlobals": ".listreceipts",
2781
2875
  "ListReceiptsGlobalsTypedDict": ".listreceipts",
2782
2876
  "ListReceiptsRequest": ".listreceipts",
@@ -2962,6 +3056,12 @@ _dynamic_imports: dict[str, str] = {
2962
3056
  "UpdatePaymentLinkRequestTypedDict": ".updatepaymentlink",
2963
3057
  "UpdatePaymentLinkResponse": ".updatepaymentlink",
2964
3058
  "UpdatePaymentLinkResponseTypedDict": ".updatepaymentlink",
3059
+ "UpdateProductGlobals": ".updateproduct",
3060
+ "UpdateProductGlobalsTypedDict": ".updateproduct",
3061
+ "UpdateProductRequest": ".updateproduct",
3062
+ "UpdateProductRequestTypedDict": ".updateproduct",
3063
+ "UpdateProductResponse": ".updateproduct",
3064
+ "UpdateProductResponseTypedDict": ".updateproduct",
2965
3065
  "UpdateRepresentativeGlobals": ".updaterepresentative",
2966
3066
  "UpdateRepresentativeGlobalsTypedDict": ".updaterepresentative",
2967
3067
  "UpdateRepresentativeRequest": ".updaterepresentative",
@@ -0,0 +1,78 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from moovio_sdk.models.components import (
5
+ product as components_product,
6
+ productrequest as components_productrequest,
7
+ )
8
+ from moovio_sdk.types import BaseModel
9
+ from moovio_sdk.utils import (
10
+ FieldMetadata,
11
+ HeaderMetadata,
12
+ PathParamMetadata,
13
+ RequestMetadata,
14
+ )
15
+ import pydantic
16
+ from typing import Dict, List, Optional
17
+ from typing_extensions import Annotated, NotRequired, TypedDict
18
+
19
+
20
+ class CreateProductGlobalsTypedDict(TypedDict):
21
+ x_moov_version: NotRequired[str]
22
+ r"""Specify an API version.
23
+
24
+ API versioning follows the format `vYYYY.QQ.BB`, where
25
+ - `YYYY` is the year
26
+ - `QQ` is the two-digit month for the first month of the quarter (e.g., 01, 04, 07, 10)
27
+ - `BB` is the build number, starting at `.01`, for subsequent builds in the same quarter.
28
+ - For example, `v2024.01.00` is the initial release of the first quarter of 2024.
29
+
30
+ The `latest` version represents the most recent development state. It may include breaking changes and should be treated as a beta release.
31
+ """
32
+
33
+
34
+ class CreateProductGlobals(BaseModel):
35
+ x_moov_version: Annotated[
36
+ Optional[str],
37
+ pydantic.Field(alias="x-moov-version"),
38
+ FieldMetadata(header=HeaderMetadata(style="simple", explode=False)),
39
+ ] = "v2024.01.00"
40
+ r"""Specify an API version.
41
+
42
+ API versioning follows the format `vYYYY.QQ.BB`, where
43
+ - `YYYY` is the year
44
+ - `QQ` is the two-digit month for the first month of the quarter (e.g., 01, 04, 07, 10)
45
+ - `BB` is the build number, starting at `.01`, for subsequent builds in the same quarter.
46
+ - For example, `v2024.01.00` is the initial release of the first quarter of 2024.
47
+
48
+ The `latest` version represents the most recent development state. It may include breaking changes and should be treated as a beta release.
49
+ """
50
+
51
+
52
+ class CreateProductRequestTypedDict(TypedDict):
53
+ account_id: str
54
+ product_request: components_productrequest.ProductRequestTypedDict
55
+
56
+
57
+ class CreateProductRequest(BaseModel):
58
+ account_id: Annotated[
59
+ str,
60
+ pydantic.Field(alias="accountID"),
61
+ FieldMetadata(path=PathParamMetadata(style="simple", explode=False)),
62
+ ]
63
+
64
+ product_request: Annotated[
65
+ components_productrequest.ProductRequest,
66
+ FieldMetadata(request=RequestMetadata(media_type="application/json")),
67
+ ]
68
+
69
+
70
+ class CreateProductResponseTypedDict(TypedDict):
71
+ headers: Dict[str, List[str]]
72
+ result: components_product.ProductTypedDict
73
+
74
+
75
+ class CreateProductResponse(BaseModel):
76
+ headers: Dict[str, List[str]]
77
+
78
+ result: components_product.Product
@@ -0,0 +1,67 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from moovio_sdk.types import BaseModel
5
+ from moovio_sdk.utils import FieldMetadata, HeaderMetadata, PathParamMetadata
6
+ import pydantic
7
+ from typing import Dict, List, Optional
8
+ from typing_extensions import Annotated, NotRequired, TypedDict
9
+
10
+
11
+ class DisableProductGlobalsTypedDict(TypedDict):
12
+ x_moov_version: NotRequired[str]
13
+ r"""Specify an API version.
14
+
15
+ API versioning follows the format `vYYYY.QQ.BB`, where
16
+ - `YYYY` is the year
17
+ - `QQ` is the two-digit month for the first month of the quarter (e.g., 01, 04, 07, 10)
18
+ - `BB` is the build number, starting at `.01`, for subsequent builds in the same quarter.
19
+ - For example, `v2024.01.00` is the initial release of the first quarter of 2024.
20
+
21
+ The `latest` version represents the most recent development state. It may include breaking changes and should be treated as a beta release.
22
+ """
23
+
24
+
25
+ class DisableProductGlobals(BaseModel):
26
+ x_moov_version: Annotated[
27
+ Optional[str],
28
+ pydantic.Field(alias="x-moov-version"),
29
+ FieldMetadata(header=HeaderMetadata(style="simple", explode=False)),
30
+ ] = "v2024.01.00"
31
+ r"""Specify an API version.
32
+
33
+ API versioning follows the format `vYYYY.QQ.BB`, where
34
+ - `YYYY` is the year
35
+ - `QQ` is the two-digit month for the first month of the quarter (e.g., 01, 04, 07, 10)
36
+ - `BB` is the build number, starting at `.01`, for subsequent builds in the same quarter.
37
+ - For example, `v2024.01.00` is the initial release of the first quarter of 2024.
38
+
39
+ The `latest` version represents the most recent development state. It may include breaking changes and should be treated as a beta release.
40
+ """
41
+
42
+
43
+ class DisableProductRequestTypedDict(TypedDict):
44
+ account_id: str
45
+ product_id: str
46
+
47
+
48
+ class DisableProductRequest(BaseModel):
49
+ account_id: Annotated[
50
+ str,
51
+ pydantic.Field(alias="accountID"),
52
+ FieldMetadata(path=PathParamMetadata(style="simple", explode=False)),
53
+ ]
54
+
55
+ product_id: Annotated[
56
+ str,
57
+ pydantic.Field(alias="productID"),
58
+ FieldMetadata(path=PathParamMetadata(style="simple", explode=False)),
59
+ ]
60
+
61
+
62
+ class DisableProductResponseTypedDict(TypedDict):
63
+ headers: Dict[str, List[str]]
64
+
65
+
66
+ class DisableProductResponse(BaseModel):
67
+ headers: Dict[str, List[str]]
@@ -0,0 +1,71 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from moovio_sdk.models.components import product as components_product
5
+ from moovio_sdk.types import BaseModel
6
+ from moovio_sdk.utils import FieldMetadata, HeaderMetadata, PathParamMetadata
7
+ import pydantic
8
+ from typing import Dict, List, Optional
9
+ from typing_extensions import Annotated, NotRequired, TypedDict
10
+
11
+
12
+ class GetProductGlobalsTypedDict(TypedDict):
13
+ x_moov_version: NotRequired[str]
14
+ r"""Specify an API version.
15
+
16
+ API versioning follows the format `vYYYY.QQ.BB`, where
17
+ - `YYYY` is the year
18
+ - `QQ` is the two-digit month for the first month of the quarter (e.g., 01, 04, 07, 10)
19
+ - `BB` is the build number, starting at `.01`, for subsequent builds in the same quarter.
20
+ - For example, `v2024.01.00` is the initial release of the first quarter of 2024.
21
+
22
+ The `latest` version represents the most recent development state. It may include breaking changes and should be treated as a beta release.
23
+ """
24
+
25
+
26
+ class GetProductGlobals(BaseModel):
27
+ x_moov_version: Annotated[
28
+ Optional[str],
29
+ pydantic.Field(alias="x-moov-version"),
30
+ FieldMetadata(header=HeaderMetadata(style="simple", explode=False)),
31
+ ] = "v2024.01.00"
32
+ r"""Specify an API version.
33
+
34
+ API versioning follows the format `vYYYY.QQ.BB`, where
35
+ - `YYYY` is the year
36
+ - `QQ` is the two-digit month for the first month of the quarter (e.g., 01, 04, 07, 10)
37
+ - `BB` is the build number, starting at `.01`, for subsequent builds in the same quarter.
38
+ - For example, `v2024.01.00` is the initial release of the first quarter of 2024.
39
+
40
+ The `latest` version represents the most recent development state. It may include breaking changes and should be treated as a beta release.
41
+ """
42
+
43
+
44
+ class GetProductRequestTypedDict(TypedDict):
45
+ account_id: str
46
+ product_id: str
47
+
48
+
49
+ class GetProductRequest(BaseModel):
50
+ account_id: Annotated[
51
+ str,
52
+ pydantic.Field(alias="accountID"),
53
+ FieldMetadata(path=PathParamMetadata(style="simple", explode=False)),
54
+ ]
55
+
56
+ product_id: Annotated[
57
+ str,
58
+ pydantic.Field(alias="productID"),
59
+ FieldMetadata(path=PathParamMetadata(style="simple", explode=False)),
60
+ ]
61
+
62
+
63
+ class GetProductResponseTypedDict(TypedDict):
64
+ headers: Dict[str, List[str]]
65
+ result: components_product.ProductTypedDict
66
+
67
+
68
+ class GetProductResponse(BaseModel):
69
+ headers: Dict[str, List[str]]
70
+
71
+ result: components_product.Product