moovio_sdk 0.17.2__py3-none-any.whl → 0.17.4__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.
- moovio_sdk/_version.py +2 -2
- moovio_sdk/models/components/__init__.py +78 -0
- moovio_sdk/models/components/amountdecimalvalidationerror.py +18 -0
- moovio_sdk/models/components/assignproductimage.py +16 -0
- moovio_sdk/models/components/assignproductimagevalidationerror.py +15 -0
- moovio_sdk/models/components/createproductoption.py +46 -0
- moovio_sdk/models/components/createproductoptiongroup.py +52 -0
- moovio_sdk/models/components/product.py +77 -0
- moovio_sdk/models/components/productimagemetadata.py +27 -0
- moovio_sdk/models/components/productoption.py +50 -0
- moovio_sdk/models/components/productoptiongroup.py +56 -0
- moovio_sdk/models/components/productoptiongroupvalidationerror.py +31 -0
- moovio_sdk/models/components/productoptionvalidationerror.py +34 -0
- moovio_sdk/models/components/productrequest.py +57 -0
- moovio_sdk/models/errors/__init__.py +8 -0
- moovio_sdk/models/errors/productrequestvalidationerror.py +58 -0
- moovio_sdk/models/operations/__init__.py +100 -0
- moovio_sdk/models/operations/createproduct.py +78 -0
- moovio_sdk/models/operations/disableproduct.py +67 -0
- moovio_sdk/models/operations/getproduct.py +71 -0
- moovio_sdk/models/operations/listproducts.py +81 -0
- moovio_sdk/models/operations/updateproduct.py +85 -0
- moovio_sdk/products.py +1232 -0
- moovio_sdk/sdk.py +3 -0
- {moovio_sdk-0.17.2.dist-info → moovio_sdk-0.17.4.dist-info}/METADATA +56 -45
- {moovio_sdk-0.17.2.dist-info → moovio_sdk-0.17.4.dist-info}/RECORD +27 -8
- {moovio_sdk-0.17.2.dist-info → moovio_sdk-0.17.4.dist-info}/WHEEL +0 -0
|
@@ -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
|
|
@@ -0,0 +1,81 @@
|
|
|
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 (
|
|
7
|
+
FieldMetadata,
|
|
8
|
+
HeaderMetadata,
|
|
9
|
+
PathParamMetadata,
|
|
10
|
+
QueryParamMetadata,
|
|
11
|
+
)
|
|
12
|
+
import pydantic
|
|
13
|
+
from typing import Dict, List, Optional
|
|
14
|
+
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
class ListProductsGlobalsTypedDict(TypedDict):
|
|
18
|
+
x_moov_version: NotRequired[str]
|
|
19
|
+
r"""Specify an API version.
|
|
20
|
+
|
|
21
|
+
API versioning follows the format `vYYYY.QQ.BB`, where
|
|
22
|
+
- `YYYY` is the year
|
|
23
|
+
- `QQ` is the two-digit month for the first month of the quarter (e.g., 01, 04, 07, 10)
|
|
24
|
+
- `BB` is the build number, starting at `.01`, for subsequent builds in the same quarter.
|
|
25
|
+
- For example, `v2024.01.00` is the initial release of the first quarter of 2024.
|
|
26
|
+
|
|
27
|
+
The `latest` version represents the most recent development state. It may include breaking changes and should be treated as a beta release.
|
|
28
|
+
"""
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
class ListProductsGlobals(BaseModel):
|
|
32
|
+
x_moov_version: Annotated[
|
|
33
|
+
Optional[str],
|
|
34
|
+
pydantic.Field(alias="x-moov-version"),
|
|
35
|
+
FieldMetadata(header=HeaderMetadata(style="simple", explode=False)),
|
|
36
|
+
] = "v2024.01.00"
|
|
37
|
+
r"""Specify an API version.
|
|
38
|
+
|
|
39
|
+
API versioning follows the format `vYYYY.QQ.BB`, where
|
|
40
|
+
- `YYYY` is the year
|
|
41
|
+
- `QQ` is the two-digit month for the first month of the quarter (e.g., 01, 04, 07, 10)
|
|
42
|
+
- `BB` is the build number, starting at `.01`, for subsequent builds in the same quarter.
|
|
43
|
+
- For example, `v2024.01.00` is the initial release of the first quarter of 2024.
|
|
44
|
+
|
|
45
|
+
The `latest` version represents the most recent development state. It may include breaking changes and should be treated as a beta release.
|
|
46
|
+
"""
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
class ListProductsRequestTypedDict(TypedDict):
|
|
50
|
+
account_id: str
|
|
51
|
+
skip: NotRequired[int]
|
|
52
|
+
count: NotRequired[int]
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
class ListProductsRequest(BaseModel):
|
|
56
|
+
account_id: Annotated[
|
|
57
|
+
str,
|
|
58
|
+
pydantic.Field(alias="accountID"),
|
|
59
|
+
FieldMetadata(path=PathParamMetadata(style="simple", explode=False)),
|
|
60
|
+
]
|
|
61
|
+
|
|
62
|
+
skip: Annotated[
|
|
63
|
+
Optional[int],
|
|
64
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=False)),
|
|
65
|
+
] = None
|
|
66
|
+
|
|
67
|
+
count: Annotated[
|
|
68
|
+
Optional[int],
|
|
69
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=False)),
|
|
70
|
+
] = None
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
class ListProductsResponseTypedDict(TypedDict):
|
|
74
|
+
headers: Dict[str, List[str]]
|
|
75
|
+
result: List[components_product.ProductTypedDict]
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
class ListProductsResponse(BaseModel):
|
|
79
|
+
headers: Dict[str, List[str]]
|
|
80
|
+
|
|
81
|
+
result: List[components_product.Product]
|
|
@@ -0,0 +1,85 @@
|
|
|
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 UpdateProductGlobalsTypedDict(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 UpdateProductGlobals(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 UpdateProductRequestTypedDict(TypedDict):
|
|
53
|
+
account_id: str
|
|
54
|
+
product_id: str
|
|
55
|
+
product_request: components_productrequest.ProductRequestTypedDict
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
class UpdateProductRequest(BaseModel):
|
|
59
|
+
account_id: Annotated[
|
|
60
|
+
str,
|
|
61
|
+
pydantic.Field(alias="accountID"),
|
|
62
|
+
FieldMetadata(path=PathParamMetadata(style="simple", explode=False)),
|
|
63
|
+
]
|
|
64
|
+
|
|
65
|
+
product_id: Annotated[
|
|
66
|
+
str,
|
|
67
|
+
pydantic.Field(alias="productID"),
|
|
68
|
+
FieldMetadata(path=PathParamMetadata(style="simple", explode=False)),
|
|
69
|
+
]
|
|
70
|
+
|
|
71
|
+
product_request: Annotated[
|
|
72
|
+
components_productrequest.ProductRequest,
|
|
73
|
+
FieldMetadata(request=RequestMetadata(media_type="application/json")),
|
|
74
|
+
]
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
class UpdateProductResponseTypedDict(TypedDict):
|
|
78
|
+
headers: Dict[str, List[str]]
|
|
79
|
+
result: components_product.ProductTypedDict
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
class UpdateProductResponse(BaseModel):
|
|
83
|
+
headers: Dict[str, List[str]]
|
|
84
|
+
|
|
85
|
+
result: components_product.Product
|