moovio_sdk 0.3.14__py3-none-any.whl → 0.3.16__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.
moovio_sdk/_version.py CHANGED
@@ -3,10 +3,10 @@
3
3
  import importlib.metadata
4
4
 
5
5
  __title__: str = "moovio_sdk"
6
- __version__: str = "0.3.14"
6
+ __version__: str = "0.3.16"
7
7
  __openapi_doc_version__: str = "latest"
8
- __gen_version__: str = "2.552.1"
9
- __user_agent__: str = "speakeasy-sdk/python 0.3.14 2.552.1 latest moovio_sdk"
8
+ __gen_version__: str = "2.559.0"
9
+ __user_agent__: str = "speakeasy-sdk/python 0.3.16 2.559.0 latest moovio_sdk"
10
10
 
11
11
  try:
12
12
  if __package__ is not None:
@@ -420,6 +420,7 @@ from .manualtermsofserviceupdate import (
420
420
  from .microdepositstatus import MicroDepositStatus
421
421
  from .minimumcommitment import MinimumCommitment, MinimumCommitmentTypedDict
422
422
  from .mode import Mode
423
+ from .monthlyplatformfee import MonthlyPlatformFee, MonthlyPlatformFeeTypedDict
423
424
  from .moovfeedetails import MoovFeeDetails, MoovFeeDetailsTypedDict
424
425
  from .moovwalletpaymentmethod import (
425
426
  MoovWalletPaymentMethod,
@@ -629,6 +630,7 @@ from .terminalapplication import TerminalApplication, TerminalApplicationTypedDi
629
630
  from .terminalapplicationplatform import TerminalApplicationPlatform
630
631
  from .terminalapplicationstatus import TerminalApplicationStatus
631
632
  from .terminalcard import TerminalCard, TerminalCardTypedDict
633
+ from .terminalconfiguration import TerminalConfiguration, TerminalConfigurationTypedDict
632
634
  from .termsofservice import TermsOfService, TermsOfServiceTypedDict
633
635
  from .termsofserviceerror import (
634
636
  Manual,
@@ -1154,6 +1156,8 @@ __all__ = [
1154
1156
  "MinimumCommitment",
1155
1157
  "MinimumCommitmentTypedDict",
1156
1158
  "Mode",
1159
+ "MonthlyPlatformFee",
1160
+ "MonthlyPlatformFeeTypedDict",
1157
1161
  "MoovFeeDetails",
1158
1162
  "MoovFeeDetailsTypedDict",
1159
1163
  "MoovWalletPaymentMethod",
@@ -1353,6 +1357,8 @@ __all__ = [
1353
1357
  "TerminalApplicationTypedDict",
1354
1358
  "TerminalCard",
1355
1359
  "TerminalCardTypedDict",
1360
+ "TerminalConfiguration",
1361
+ "TerminalConfigurationTypedDict",
1356
1362
  "TermsOfService",
1357
1363
  "TermsOfServiceError",
1358
1364
  "TermsOfServiceErrorTypedDict",
@@ -4,6 +4,7 @@ from __future__ import annotations
4
4
  from .billablefee import BillableFee, BillableFeeTypedDict
5
5
  from .cardacquiringmodel import CardAcquiringModel
6
6
  from .minimumcommitment import MinimumCommitment, MinimumCommitmentTypedDict
7
+ from .monthlyplatformfee import MonthlyPlatformFee, MonthlyPlatformFeeTypedDict
7
8
  from datetime import datetime
8
9
  from moovio_sdk.types import BaseModel
9
10
  import pydantic
@@ -21,6 +22,8 @@ class FeePlanTypedDict(TypedDict):
21
22
  r"""Additional usage-based fees for this plan."""
22
23
  minimum_commitment: MinimumCommitmentTypedDict
23
24
  r"""The minimum spending amount that must be met in the billing period. If actual usage is below the minimum amount, account is charged the difference."""
25
+ monthly_platform_fee: MonthlyPlatformFeeTypedDict
26
+ r"""Fixed recurring amount paid in the billing period regardless of usage."""
24
27
  created_at: datetime
25
28
  description: NotRequired[str]
26
29
  r"""A description of the fee plan."""
@@ -45,6 +48,11 @@ class FeePlan(BaseModel):
45
48
  ]
46
49
  r"""The minimum spending amount that must be met in the billing period. If actual usage is below the minimum amount, account is charged the difference."""
47
50
 
51
+ monthly_platform_fee: Annotated[
52
+ MonthlyPlatformFee, pydantic.Field(alias="monthlyPlatformFee")
53
+ ]
54
+ r"""Fixed recurring amount paid in the billing period regardless of usage."""
55
+
48
56
  created_at: Annotated[datetime, pydantic.Field(alias="createdAt")]
49
57
 
50
58
  description: Optional[str] = None
@@ -5,6 +5,7 @@ from .billablefee import BillableFee, BillableFeeTypedDict
5
5
  from .cardacquiringmodel import CardAcquiringModel
6
6
  from .feeplanagreementstatus import FeePlanAgreementStatus
7
7
  from .minimumcommitment import MinimumCommitment, MinimumCommitmentTypedDict
8
+ from .monthlyplatformfee import MonthlyPlatformFee, MonthlyPlatformFeeTypedDict
8
9
  from datetime import datetime
9
10
  from moovio_sdk.types import BaseModel
10
11
  import pydantic
@@ -24,6 +25,8 @@ class FeePlanAgreementTypedDict(TypedDict):
24
25
  billable_fees: List[BillableFeeTypedDict]
25
26
  minimum_commitment: MinimumCommitmentTypedDict
26
27
  r"""The minimum spending amount that must be met in the billing period. If actual usage is below the minimum amount, account is charged the difference."""
28
+ monthly_platform_fee: MonthlyPlatformFeeTypedDict
29
+ r"""Fixed recurring amount paid in the billing period regardless of usage."""
27
30
  account_id: NotRequired[str]
28
31
  description: NotRequired[str]
29
32
  r"""The description of the agreement."""
@@ -53,6 +56,11 @@ class FeePlanAgreement(BaseModel):
53
56
  ]
54
57
  r"""The minimum spending amount that must be met in the billing period. If actual usage is below the minimum amount, account is charged the difference."""
55
58
 
59
+ monthly_platform_fee: Annotated[
60
+ MonthlyPlatformFee, pydantic.Field(alias="monthlyPlatformFee")
61
+ ]
62
+ r"""Fixed recurring amount paid in the billing period regardless of usage."""
63
+
56
64
  account_id: Annotated[Optional[str], pydantic.Field(alias="accountID")] = None
57
65
 
58
66
  description: Optional[str] = None
@@ -0,0 +1,31 @@
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
+ import pydantic
6
+ from typing_extensions import Annotated, TypedDict
7
+
8
+
9
+ class MonthlyPlatformFeeTypedDict(TypedDict):
10
+ r"""Fixed recurring amount paid in the billing period regardless of usage."""
11
+
12
+ currency: str
13
+ r"""A 3-letter ISO 4217 currency code."""
14
+ value_decimal: str
15
+ r"""A decimal-formatted numerical string that represents up to 9 decimal place precision.
16
+
17
+ For example, $12.987654321 is '12.987654321'.
18
+ """
19
+
20
+
21
+ class MonthlyPlatformFee(BaseModel):
22
+ r"""Fixed recurring amount paid in the billing period regardless of usage."""
23
+
24
+ currency: str
25
+ r"""A 3-letter ISO 4217 currency code."""
26
+
27
+ value_decimal: Annotated[str, pydantic.Field(alias="valueDecimal")]
28
+ r"""A decimal-formatted numerical string that represents up to 9 decimal place precision.
29
+
30
+ For example, $12.987654321 is '12.987654321'.
31
+ """
@@ -4,6 +4,7 @@ from __future__ import annotations
4
4
  from .billablefee import BillableFee, BillableFeeTypedDict
5
5
  from .cardacquiringmodel import CardAcquiringModel
6
6
  from .minimumcommitment import MinimumCommitment, MinimumCommitmentTypedDict
7
+ from .monthlyplatformfee import MonthlyPlatformFee, MonthlyPlatformFeeTypedDict
7
8
  from datetime import datetime
8
9
  from moovio_sdk.types import BaseModel
9
10
  import pydantic
@@ -22,6 +23,8 @@ class PartnerPricingTypedDict(TypedDict):
22
23
  billable_fees: List[BillableFeeTypedDict]
23
24
  minimum_commitment: MinimumCommitmentTypedDict
24
25
  r"""The minimum spending amount that must be met in the billing period. If actual usage is below the minimum amount, account is charged the difference."""
26
+ monthly_platform_fee: MonthlyPlatformFeeTypedDict
27
+ r"""Fixed recurring amount paid in the billing period regardless of usage."""
25
28
  created_at: datetime
26
29
  description: NotRequired[str]
27
30
  r"""A description of the fee plan."""
@@ -48,6 +51,11 @@ class PartnerPricing(BaseModel):
48
51
  ]
49
52
  r"""The minimum spending amount that must be met in the billing period. If actual usage is below the minimum amount, account is charged the difference."""
50
53
 
54
+ monthly_platform_fee: Annotated[
55
+ MonthlyPlatformFee, pydantic.Field(alias="monthlyPlatformFee")
56
+ ]
57
+ r"""Fixed recurring amount paid in the billing period regardless of usage."""
58
+
51
59
  created_at: Annotated[datetime, pydantic.Field(alias="createdAt")]
52
60
 
53
61
  description: Optional[str] = None
@@ -5,6 +5,7 @@ from .billablefee import BillableFee, BillableFeeTypedDict
5
5
  from .cardacquiringmodel import CardAcquiringModel
6
6
  from .feeplanagreementstatus import FeePlanAgreementStatus
7
7
  from .minimumcommitment import MinimumCommitment, MinimumCommitmentTypedDict
8
+ from .monthlyplatformfee import MonthlyPlatformFee, MonthlyPlatformFeeTypedDict
8
9
  from datetime import datetime
9
10
  from moovio_sdk.types import BaseModel
10
11
  import pydantic
@@ -24,6 +25,8 @@ class PartnerPricingAgreementTypedDict(TypedDict):
24
25
  billable_fees: List[BillableFeeTypedDict]
25
26
  minimum_commitment: MinimumCommitmentTypedDict
26
27
  r"""The minimum spending amount that must be met in the billing period. If actual usage is below the minimum amount, account is charged the difference."""
28
+ monthly_platform_fee: MonthlyPlatformFeeTypedDict
29
+ r"""Fixed recurring amount paid in the billing period regardless of usage."""
27
30
  revenue_share: int
28
31
  r"""The integer percentage value of the revenue split for partner."""
29
32
  account_id: NotRequired[str]
@@ -55,6 +58,11 @@ class PartnerPricingAgreement(BaseModel):
55
58
  ]
56
59
  r"""The minimum spending amount that must be met in the billing period. If actual usage is below the minimum amount, account is charged the difference."""
57
60
 
61
+ monthly_platform_fee: Annotated[
62
+ MonthlyPlatformFee, pydantic.Field(alias="monthlyPlatformFee")
63
+ ]
64
+ r"""Fixed recurring amount paid in the billing period regardless of usage."""
65
+
58
66
  revenue_share: Annotated[int, pydantic.Field(alias="revenueShare")]
59
67
  r"""The integer percentage value of the revenue split for partner."""
60
68
 
@@ -0,0 +1,17 @@
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 typing_extensions import TypedDict
6
+
7
+
8
+ class TerminalConfigurationTypedDict(TypedDict):
9
+ r"""Describes a terminal configuration."""
10
+
11
+ configuration: str
12
+
13
+
14
+ class TerminalConfiguration(BaseModel):
15
+ r"""Describes a terminal configuration."""
16
+
17
+ configuration: str
@@ -498,6 +498,14 @@ from .getterminalapplication import (
498
498
  GetTerminalApplicationResponse,
499
499
  GetTerminalApplicationResponseTypedDict,
500
500
  )
501
+ from .getterminalconfiguration import (
502
+ GetTerminalConfigurationGlobals,
503
+ GetTerminalConfigurationGlobalsTypedDict,
504
+ GetTerminalConfigurationRequest,
505
+ GetTerminalConfigurationRequestTypedDict,
506
+ GetTerminalConfigurationResponse,
507
+ GetTerminalConfigurationResponseTypedDict,
508
+ )
501
509
  from .gettermsofservicetoken import (
502
510
  GetTermsOfServiceTokenGlobals,
503
511
  GetTermsOfServiceTokenGlobalsTypedDict,
@@ -1416,6 +1424,12 @@ __all__ = [
1416
1424
  "GetTerminalApplicationRequestTypedDict",
1417
1425
  "GetTerminalApplicationResponse",
1418
1426
  "GetTerminalApplicationResponseTypedDict",
1427
+ "GetTerminalConfigurationGlobals",
1428
+ "GetTerminalConfigurationGlobalsTypedDict",
1429
+ "GetTerminalConfigurationRequest",
1430
+ "GetTerminalConfigurationRequestTypedDict",
1431
+ "GetTerminalConfigurationResponse",
1432
+ "GetTerminalConfigurationResponseTypedDict",
1419
1433
  "GetTermsOfServiceTokenGlobals",
1420
1434
  "GetTermsOfServiceTokenGlobalsTypedDict",
1421
1435
  "GetTermsOfServiceTokenRequest",
@@ -0,0 +1,73 @@
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
+ terminalconfiguration as components_terminalconfiguration,
6
+ )
7
+ from moovio_sdk.types import BaseModel
8
+ from moovio_sdk.utils import FieldMetadata, HeaderMetadata, PathParamMetadata
9
+ import pydantic
10
+ from typing import Dict, List, Optional
11
+ from typing_extensions import Annotated, NotRequired, TypedDict
12
+
13
+
14
+ class GetTerminalConfigurationGlobalsTypedDict(TypedDict):
15
+ x_moov_version: NotRequired[str]
16
+ r"""Specify an API version.
17
+
18
+ API versioning follows the format `vYYYY.QQ.BB`, where
19
+ - `YYYY` is the year
20
+ - `QQ` is the two-digit month for the first month of the quarter (e.g., 01, 04, 07, 10)
21
+ - `BB` is the build number, starting at `.01`, for subsequent builds in the same quarter.
22
+ - For example, `v2024.01.00` is the initial release of the first quarter of 2024.
23
+
24
+ The `latest` version represents the most recent development state. It may include breaking changes and should be treated as a beta release.
25
+ """
26
+
27
+
28
+ class GetTerminalConfigurationGlobals(BaseModel):
29
+ x_moov_version: Annotated[
30
+ Optional[str],
31
+ pydantic.Field(alias="x-moov-version"),
32
+ FieldMetadata(header=HeaderMetadata(style="simple", explode=False)),
33
+ ] = "v2024.01.00"
34
+ r"""Specify an API version.
35
+
36
+ API versioning follows the format `vYYYY.QQ.BB`, where
37
+ - `YYYY` is the year
38
+ - `QQ` is the two-digit month for the first month of the quarter (e.g., 01, 04, 07, 10)
39
+ - `BB` is the build number, starting at `.01`, for subsequent builds in the same quarter.
40
+ - For example, `v2024.01.00` is the initial release of the first quarter of 2024.
41
+
42
+ The `latest` version represents the most recent development state. It may include breaking changes and should be treated as a beta release.
43
+ """
44
+
45
+
46
+ class GetTerminalConfigurationRequestTypedDict(TypedDict):
47
+ account_id: str
48
+ terminal_application_id: str
49
+
50
+
51
+ class GetTerminalConfigurationRequest(BaseModel):
52
+ account_id: Annotated[
53
+ str,
54
+ pydantic.Field(alias="accountID"),
55
+ FieldMetadata(path=PathParamMetadata(style="simple", explode=False)),
56
+ ]
57
+
58
+ terminal_application_id: Annotated[
59
+ str,
60
+ pydantic.Field(alias="terminalApplicationID"),
61
+ FieldMetadata(path=PathParamMetadata(style="simple", explode=False)),
62
+ ]
63
+
64
+
65
+ class GetTerminalConfigurationResponseTypedDict(TypedDict):
66
+ headers: Dict[str, List[str]]
67
+ result: components_terminalconfiguration.TerminalConfigurationTypedDict
68
+
69
+
70
+ class GetTerminalConfigurationResponse(BaseModel):
71
+ headers: Dict[str, List[str]]
72
+
73
+ result: components_terminalconfiguration.TerminalConfiguration
moovio_sdk/sdk.py CHANGED
@@ -37,6 +37,7 @@ from moovio_sdk.representatives import Representatives
37
37
  from moovio_sdk.scheduling import Scheduling
38
38
  from moovio_sdk.sweeps import Sweeps
39
39
  from moovio_sdk.terminal_applications import TerminalApplications
40
+ from moovio_sdk.terminal_configurations import TerminalConfigurations
40
41
  from moovio_sdk.transfers import Transfers
41
42
  from moovio_sdk.types import OptionalNullable, UNSET
42
43
  from moovio_sdk.underwriting import Underwriting
@@ -68,6 +69,7 @@ class Moov(BaseSDK):
68
69
  representatives: Representatives
69
70
  scheduling: Scheduling
70
71
  sweeps: Sweeps
72
+ terminal_configurations: TerminalConfigurations
71
73
  transfers: Transfers
72
74
  underwriting: Underwriting
73
75
  wallets: Wallets
@@ -201,6 +203,7 @@ class Moov(BaseSDK):
201
203
  self.representatives = Representatives(self.sdk_configuration)
202
204
  self.scheduling = Scheduling(self.sdk_configuration)
203
205
  self.sweeps = Sweeps(self.sdk_configuration)
206
+ self.terminal_configurations = TerminalConfigurations(self.sdk_configuration)
204
207
  self.transfers = Transfers(self.sdk_configuration)
205
208
  self.underwriting = Underwriting(self.sdk_configuration)
206
209
  self.wallets = Wallets(self.sdk_configuration)
@@ -0,0 +1,241 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from .basesdk import BaseSDK
4
+ from moovio_sdk import utils
5
+ from moovio_sdk._hooks import HookContext
6
+ from moovio_sdk.models import components, errors, operations
7
+ from moovio_sdk.types import OptionalNullable, UNSET
8
+ from moovio_sdk.utils import get_security_from_env
9
+ from typing import Mapping, Optional
10
+
11
+
12
+ class TerminalConfigurations(BaseSDK):
13
+ def get(
14
+ self,
15
+ *,
16
+ account_id: str,
17
+ terminal_application_id: str,
18
+ retries: OptionalNullable[utils.RetryConfig] = UNSET,
19
+ server_url: Optional[str] = None,
20
+ timeout_ms: Optional[int] = None,
21
+ http_headers: Optional[Mapping[str, str]] = None,
22
+ ) -> operations.GetTerminalConfigurationResponse:
23
+ r"""Fetch the configuration for a given Terminal Application
24
+
25
+ To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
26
+ you'll need to specify the `/accounts/{accountID}/terminal-configuration.read` scope.
27
+
28
+ :param account_id:
29
+ :param terminal_application_id:
30
+ :param retries: Override the default retry configuration for this method
31
+ :param server_url: Override the default server URL for this method
32
+ :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
33
+ :param http_headers: Additional headers to set or replace on requests.
34
+ """
35
+ base_url = None
36
+ url_variables = None
37
+ if timeout_ms is None:
38
+ timeout_ms = self.sdk_configuration.timeout_ms
39
+
40
+ if server_url is not None:
41
+ base_url = server_url
42
+ else:
43
+ base_url = self._get_url(base_url, url_variables)
44
+
45
+ request = operations.GetTerminalConfigurationRequest(
46
+ account_id=account_id,
47
+ terminal_application_id=terminal_application_id,
48
+ )
49
+
50
+ req = self._build_request(
51
+ method="GET",
52
+ path="/accounts/{accountID}/terminal-applications/{terminalApplicationID}/configuration",
53
+ base_url=base_url,
54
+ url_variables=url_variables,
55
+ request=request,
56
+ request_body_required=False,
57
+ request_has_path_params=True,
58
+ request_has_query_params=True,
59
+ user_agent_header="user-agent",
60
+ accept_header_value="application/json",
61
+ http_headers=http_headers,
62
+ _globals=operations.GetTerminalConfigurationGlobals(
63
+ x_moov_version=self.sdk_configuration.globals.x_moov_version,
64
+ ),
65
+ security=self.sdk_configuration.security,
66
+ timeout_ms=timeout_ms,
67
+ )
68
+
69
+ if retries == UNSET:
70
+ if self.sdk_configuration.retry_config is not UNSET:
71
+ retries = self.sdk_configuration.retry_config
72
+
73
+ retry_config = None
74
+ if isinstance(retries, utils.RetryConfig):
75
+ retry_config = (retries, ["429", "500", "502", "503", "504"])
76
+
77
+ http_res = self.do_request(
78
+ hook_ctx=HookContext(
79
+ base_url=base_url or "",
80
+ operation_id="getTerminalConfiguration",
81
+ oauth2_scopes=[],
82
+ security_source=get_security_from_env(
83
+ self.sdk_configuration.security, components.Security
84
+ ),
85
+ ),
86
+ request=req,
87
+ error_status_codes=["401", "403", "404", "429", "4XX", "500", "504", "5XX"],
88
+ retry_config=retry_config,
89
+ )
90
+
91
+ if utils.match_response(http_res, "200", "application/json"):
92
+ return operations.GetTerminalConfigurationResponse(
93
+ result=utils.unmarshal_json(
94
+ http_res.text, components.TerminalConfiguration
95
+ ),
96
+ headers=utils.get_response_headers(http_res.headers),
97
+ )
98
+ if utils.match_response(http_res, ["401", "403", "404", "429"], "*"):
99
+ http_res_text = utils.stream_to_text(http_res)
100
+ raise errors.APIError(
101
+ "API error occurred", http_res.status_code, http_res_text, http_res
102
+ )
103
+ if utils.match_response(http_res, ["500", "504"], "*"):
104
+ http_res_text = utils.stream_to_text(http_res)
105
+ raise errors.APIError(
106
+ "API error occurred", http_res.status_code, http_res_text, http_res
107
+ )
108
+ if utils.match_response(http_res, "4XX", "*"):
109
+ http_res_text = utils.stream_to_text(http_res)
110
+ raise errors.APIError(
111
+ "API error occurred", http_res.status_code, http_res_text, http_res
112
+ )
113
+ if utils.match_response(http_res, "5XX", "*"):
114
+ http_res_text = utils.stream_to_text(http_res)
115
+ raise errors.APIError(
116
+ "API error occurred", http_res.status_code, http_res_text, http_res
117
+ )
118
+
119
+ content_type = http_res.headers.get("Content-Type")
120
+ http_res_text = utils.stream_to_text(http_res)
121
+ raise errors.APIError(
122
+ f"Unexpected response received (code: {http_res.status_code}, type: {content_type})",
123
+ http_res.status_code,
124
+ http_res_text,
125
+ http_res,
126
+ )
127
+
128
+ async def get_async(
129
+ self,
130
+ *,
131
+ account_id: str,
132
+ terminal_application_id: str,
133
+ retries: OptionalNullable[utils.RetryConfig] = UNSET,
134
+ server_url: Optional[str] = None,
135
+ timeout_ms: Optional[int] = None,
136
+ http_headers: Optional[Mapping[str, str]] = None,
137
+ ) -> operations.GetTerminalConfigurationResponse:
138
+ r"""Fetch the configuration for a given Terminal Application
139
+
140
+ To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
141
+ you'll need to specify the `/accounts/{accountID}/terminal-configuration.read` scope.
142
+
143
+ :param account_id:
144
+ :param terminal_application_id:
145
+ :param retries: Override the default retry configuration for this method
146
+ :param server_url: Override the default server URL for this method
147
+ :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
148
+ :param http_headers: Additional headers to set or replace on requests.
149
+ """
150
+ base_url = None
151
+ url_variables = None
152
+ if timeout_ms is None:
153
+ timeout_ms = self.sdk_configuration.timeout_ms
154
+
155
+ if server_url is not None:
156
+ base_url = server_url
157
+ else:
158
+ base_url = self._get_url(base_url, url_variables)
159
+
160
+ request = operations.GetTerminalConfigurationRequest(
161
+ account_id=account_id,
162
+ terminal_application_id=terminal_application_id,
163
+ )
164
+
165
+ req = self._build_request_async(
166
+ method="GET",
167
+ path="/accounts/{accountID}/terminal-applications/{terminalApplicationID}/configuration",
168
+ base_url=base_url,
169
+ url_variables=url_variables,
170
+ request=request,
171
+ request_body_required=False,
172
+ request_has_path_params=True,
173
+ request_has_query_params=True,
174
+ user_agent_header="user-agent",
175
+ accept_header_value="application/json",
176
+ http_headers=http_headers,
177
+ _globals=operations.GetTerminalConfigurationGlobals(
178
+ x_moov_version=self.sdk_configuration.globals.x_moov_version,
179
+ ),
180
+ security=self.sdk_configuration.security,
181
+ timeout_ms=timeout_ms,
182
+ )
183
+
184
+ if retries == UNSET:
185
+ if self.sdk_configuration.retry_config is not UNSET:
186
+ retries = self.sdk_configuration.retry_config
187
+
188
+ retry_config = None
189
+ if isinstance(retries, utils.RetryConfig):
190
+ retry_config = (retries, ["429", "500", "502", "503", "504"])
191
+
192
+ http_res = await self.do_request_async(
193
+ hook_ctx=HookContext(
194
+ base_url=base_url or "",
195
+ operation_id="getTerminalConfiguration",
196
+ oauth2_scopes=[],
197
+ security_source=get_security_from_env(
198
+ self.sdk_configuration.security, components.Security
199
+ ),
200
+ ),
201
+ request=req,
202
+ error_status_codes=["401", "403", "404", "429", "4XX", "500", "504", "5XX"],
203
+ retry_config=retry_config,
204
+ )
205
+
206
+ if utils.match_response(http_res, "200", "application/json"):
207
+ return operations.GetTerminalConfigurationResponse(
208
+ result=utils.unmarshal_json(
209
+ http_res.text, components.TerminalConfiguration
210
+ ),
211
+ headers=utils.get_response_headers(http_res.headers),
212
+ )
213
+ if utils.match_response(http_res, ["401", "403", "404", "429"], "*"):
214
+ http_res_text = await utils.stream_to_text_async(http_res)
215
+ raise errors.APIError(
216
+ "API error occurred", http_res.status_code, http_res_text, http_res
217
+ )
218
+ if utils.match_response(http_res, ["500", "504"], "*"):
219
+ http_res_text = await utils.stream_to_text_async(http_res)
220
+ raise errors.APIError(
221
+ "API error occurred", http_res.status_code, http_res_text, http_res
222
+ )
223
+ if utils.match_response(http_res, "4XX", "*"):
224
+ http_res_text = await utils.stream_to_text_async(http_res)
225
+ raise errors.APIError(
226
+ "API error occurred", http_res.status_code, http_res_text, http_res
227
+ )
228
+ if utils.match_response(http_res, "5XX", "*"):
229
+ http_res_text = await utils.stream_to_text_async(http_res)
230
+ raise errors.APIError(
231
+ "API error occurred", http_res.status_code, http_res_text, http_res
232
+ )
233
+
234
+ content_type = http_res.headers.get("Content-Type")
235
+ http_res_text = await utils.stream_to_text_async(http_res)
236
+ raise errors.APIError(
237
+ f"Unexpected response received (code: {http_res.status_code}, type: {content_type})",
238
+ http_res.status_code,
239
+ http_res_text,
240
+ http_res,
241
+ )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: moovio_sdk
3
- Version: 0.3.14
3
+ Version: 0.3.16
4
4
  Summary: Python Client SDK Generated by Speakeasy.
5
5
  Author: Speakeasy
6
6
  Requires-Python: >=3.9
@@ -1167,6 +1167,13 @@ you'll need to specify the `/terminalApplications.read` scope.
1167
1167
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
1168
1168
  you'll need to specify the `/terminalApplications.write` scope.
1169
1169
 
1170
+ ### [terminal_configurations](https://github.com/moovfinancial/moov-python/blob/master/docs/sdks/terminalconfigurations/README.md)
1171
+
1172
+ * [get](https://github.com/moovfinancial/moov-python/blob/master/docs/sdks/terminalconfigurations/README.md#get) - Fetch the configuration for a given Terminal Application
1173
+
1174
+ To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
1175
+ you'll need to specify the `/accounts/{accountID}/terminal-configuration.read` scope.
1176
+
1170
1177
  ### [transfers](https://github.com/moovfinancial/moov-python/blob/master/docs/sdks/transfers/README.md)
1171
1178
 
1172
1179
  * [create](https://github.com/moovfinancial/moov-python/blob/master/docs/sdks/transfers/README.md#create) - Move money by providing the source, destination, and amount in the request body.
@@ -3,7 +3,7 @@ moovio_sdk/_hooks/__init__.py,sha256=9_7W5jAYw8rcO8Kfc-Ty-lB82BHfksAJJpVFb_UeU1c
3
3
  moovio_sdk/_hooks/registration.py,sha256=1QZB41w6If7I9dXiOSQx6dhSc6BPWrnI5Q5bMOr4iVA,624
4
4
  moovio_sdk/_hooks/sdkhooks.py,sha256=2XuMgiV2N7UE7lN00Is-c3spxVWigYitXS6xSmS_Qow,2560
5
5
  moovio_sdk/_hooks/types.py,sha256=xAyw_8EoIrUHL-zLoqXrogOkBq1ZFICNGZfp9xne2ww,2813
6
- moovio_sdk/_version.py,sha256=dWvGjm0hgSI54sdKns4k9TUkozxWpvWx9T-qUP5eYUI,466
6
+ moovio_sdk/_version.py,sha256=YvHPOi3AyDiJ197l0o98VzXhdAazBTm1M8feKzUqunk,466
7
7
  moovio_sdk/accounts.py,sha256=owJJuChHd-iucAiR4JWlaMYD1oKvjzCYSO6rckje6vs,107907
8
8
  moovio_sdk/adjustments.py,sha256=m7S8Vn0KB4bMaTQTX50sCPvNZr72kjA6DTLxeJ2U-fc,19272
9
9
  moovio_sdk/apple_pay.py,sha256=D5agY7yrZrZEtuadtY0_oQq3bSRpTy_bUG90T0iXDck,60723
@@ -26,7 +26,7 @@ moovio_sdk/industries.py,sha256=7VputoHEST4GXazczXDWEYsSkfWkFJaTSXAEDx267Vo,1024
26
26
  moovio_sdk/institutions.py,sha256=1CjxrmzYf0tAs2beUyYiVPO9w8jibwG-Ya9ifXifUG8,11238
27
27
  moovio_sdk/issuing_transactions.py,sha256=ftaJUPR8vGuNVOf3oWgecZG7DQSYRZiHZTtRfXMacgc,53212
28
28
  moovio_sdk/models/__init__.py,sha256=HRiFG5CV9y2HvWWQl_JQNbYTPme0UYR1Mhh13Qc-5jE,84
29
- moovio_sdk/models/components/__init__.py,sha256=jpRRsy24sscAov4Il_OTDa1SHtOFqZBYgUaZgPij_hA,51607
29
+ moovio_sdk/models/components/__init__.py,sha256=UeMgNrtOvpM3GI9rby7xG3-W1GRP5RI0eSSutHMxHPQ,51904
30
30
  moovio_sdk/models/components/account.py,sha256=QejMoPHYyHF-6TRrUVKYyfD_6Qbl7lFVOEaE8zlOgmI,4181
31
31
  moovio_sdk/models/components/accountcapability.py,sha256=LJ908Zr4lw2qtMwUMLWoscTUjj5wV7YlZ4Z0Vv_abjg,527
32
32
  moovio_sdk/models/components/accountcountries.py,sha256=sI1VAu3PqS2HTOarkT7f6FbkgUT55NL57PvAZKcbRHw,456
@@ -191,8 +191,8 @@ moovio_sdk/models/components/evidenceuploadresponse.py,sha256=tCxjtueEl1URQjNTE2
191
191
  moovio_sdk/models/components/facilitatorfee.py,sha256=uDMPXHogxp5lpRjeLK4QlgoXSRo35cYfqxo0NVzO2A0,2156
192
192
  moovio_sdk/models/components/feecategory.py,sha256=9OBQNnE7O8c_i_8eyvbbkl_MfdgwmHeYZ9_36uooCrU,428
193
193
  moovio_sdk/models/components/feemodel.py,sha256=M98YekU7JfnwG613Zi6SJE9hcUBIHiqMObgi30rUoxM,312
194
- moovio_sdk/models/components/feeplan.py,sha256=x4oTkJsNp_quTHgjTmpgGBFZ_BfnMm1jmNborUs_qGs,1968
195
- moovio_sdk/models/components/feeplanagreement.py,sha256=WizD6vvte6HM2cLroC2QsW9ZfzB1M7aKWaHNHvP8yqk,2229
194
+ moovio_sdk/models/components/feeplan.py,sha256=0WIFfE3jd8CupBAi-66bjUN10f1vEv6e_9_uv6bKl5c,2381
195
+ moovio_sdk/models/components/feeplanagreement.py,sha256=JI_xx9o8rkYRT9GkjnAxJemFwXliPYXoqmZ68yT0U8k,2642
196
196
  moovio_sdk/models/components/feeplanagreementstatus.py,sha256=D7q_iy4vh1Xaex6BwftVoKmV2BGdEhPm8FtFCTR1jHQ,225
197
197
  moovio_sdk/models/components/feeproperties.py,sha256=Ajpyc7ggfsVDXcuhv4SmvtJTyM2K7eRvZs15__142uU,2212
198
198
  moovio_sdk/models/components/filedetails.py,sha256=qVMztRp46CEWFAdhISAWZXqv435UKQyzHc5-Rae5KGw,1601
@@ -248,6 +248,7 @@ moovio_sdk/models/components/manualtermsofserviceupdate.py,sha256=2t7FmphN0N7f-7
248
248
  moovio_sdk/models/components/microdepositstatus.py,sha256=OSMp_6IBIo5frPWZOFiXlwcVA9akxke9FW63GvWE3fA,195
249
249
  moovio_sdk/models/components/minimumcommitment.py,sha256=KDiqCre5Ol2yhZARTCaV-rueQk549fG4QK8jR0gRjQg,1149
250
250
  moovio_sdk/models/components/mode.py,sha256=U7TBdxrtdKN2iA3PPva_gfiBXdg6tMUVpyNPA3HA_IA,256
251
+ moovio_sdk/models/components/monthlyplatformfee.py,sha256=WRGXX_vic_E9GXslX67Suk5_vZNV1Rh-4qVEUjHJ_oY,997
251
252
  moovio_sdk/models/components/moovfeedetails.py,sha256=GovSQFW4mExyx_jW5VY8nIK0ezSebPnguLoH2xgzO0o,1853
252
253
  moovio_sdk/models/components/moovwalletpaymentmethod.py,sha256=_FmIK5xllEX3B6YjYdpvQj61n5Src8ZRmsWcmUAxfcs,978
253
254
  moovio_sdk/models/components/mxauthorizationcode.py,sha256=Ul5g0X0RO6hIbDHfOwm-Q04q853RQ0DToeryeMPuG8k,1107
@@ -259,8 +260,8 @@ moovio_sdk/models/components/onboardinginvite.py,sha256=0JnZR0c6I-lmGo1OvSJakBGJ
259
260
  moovio_sdk/models/components/onboardinginviterequest.py,sha256=7xl0dxgF7dNKNZrtIPX3jrYVfJQrHKEQZ3YFPT21aAM,2578
260
261
  moovio_sdk/models/components/onboardingpartneraccount.py,sha256=r5WjWw0x0ScKm4_CwX2jS7cDFn9K7bedVC50kNzITVI,1110
261
262
  moovio_sdk/models/components/partialscheduleaccount.py,sha256=EtOAuIhRyc6nLEWadS7CsA_MeablSzM7w4k4UR565zQ,590
262
- moovio_sdk/models/components/partnerpricing.py,sha256=2pof5qkh_TdsIgWnog0ywhgYSuENRLHSQw2e44oTmtY,2118
263
- moovio_sdk/models/components/partnerpricingagreement.py,sha256=GDvhM3vO4Ta3Hwtp37ezwgwWRjmE9zC2FXJODnrklLk,2487
263
+ moovio_sdk/models/components/partnerpricing.py,sha256=XH8XCRTML7AyygqRtLqF-QedIsgB8vKBSLANmR2iEE8,2531
264
+ moovio_sdk/models/components/partnerpricingagreement.py,sha256=bh3DknfJcKHKyP3cCvNNmOSbxHKgpiVRhEhcenNPcLY,2900
264
265
  moovio_sdk/models/components/patchaccount.py,sha256=9JhHL190PwO9HAVc4maUv5iNX-tU7wtwIFkc5B2-2Wo,4518
265
266
  moovio_sdk/models/components/patchaccounterror.py,sha256=68urJQxtMBlvzimAQcj8BR7NX-q140Jj15WVq5NCY30,1458
266
267
  moovio_sdk/models/components/patchbusiness.py,sha256=MXhweZYmjmbXJ5PF9-eiue2R2DP-zI2qeFQWoO0kBLI,2700
@@ -343,6 +344,7 @@ moovio_sdk/models/components/terminalapplication.py,sha256=GKmGi8i425YxFMW4BU_zT
343
344
  moovio_sdk/models/components/terminalapplicationplatform.py,sha256=p-880ptVN5vub4DlYbP_VTPyPYuDEYMIZql2fI3FopU,296
344
345
  moovio_sdk/models/components/terminalapplicationstatus.py,sha256=snaXCVyr1J3iEcrW09r3Mp1FtU46dbhGJgcTx3UlF04,326
345
346
  moovio_sdk/models/components/terminalcard.py,sha256=goFEhKML4vyksdH4u0N0Pk33hIcgIZ34anVu7xcrgtA,3100
347
+ moovio_sdk/models/components/terminalconfiguration.py,sha256=cr5Rdj29p4F9bDrTI0ZpwRznr4OypV4tXb-NX4dT4f4,422
346
348
  moovio_sdk/models/components/termsofservice.py,sha256=g_v_9ghfkFyf8OJTfuTy5hC1vCl3u3msGKl0tufIN6k,918
347
349
  moovio_sdk/models/components/termsofserviceerror.py,sha256=KnpM_Tz-DH1GjqoIfQIIlq-9raPGVITItFbdot2m770,1093
348
350
  moovio_sdk/models/components/termsofservicetoken.py,sha256=VF0w2YMAJiqyz9INBhb_MdiWtHbDcSXQXxp_AKReAqA,476
@@ -422,7 +424,7 @@ moovio_sdk/models/errors/updatepaymentlinkerror.py,sha256=FrRZvrNFtNBuaKyZKStjEM
422
424
  moovio_sdk/models/errors/updateunderwritingerror.py,sha256=A8XDduhlAQo6xcZE29atSa7UsQ9uEg2xbbur-V1yUbg,2409
423
425
  moovio_sdk/models/internal/__init__.py,sha256=6khoka0i1AXj5YsxEjzmIs1UYeD8DggU2Z69bLfmxvE,164
424
426
  moovio_sdk/models/internal/globals.py,sha256=uz3scUHVTLawU2bzU4ov4C3bSRwoNolTJ5O27QSMIgA,1701
425
- moovio_sdk/models/operations/__init__.py,sha256=aqeBjIQExkMnXJqQFeonkEC87Di8CQW5hMnhzO1DY6w,60778
427
+ moovio_sdk/models/operations/__init__.py,sha256=HKWSk14vrckQIVVj3SH3xIDrbEupbsUoySv20YwzbwE,61334
426
428
  moovio_sdk/models/operations/acceptdispute.py,sha256=imJTeB7PuXqfKBqA-VkIAFFNpW92U7DMxPx7CEb9eDQ,2544
427
429
  moovio_sdk/models/operations/assignaccountcountries.py,sha256=NIGZ5oNIW7Ei4Y7WNnMVqcYUSQgIq3o_TlR0_ptwLJg,2753
428
430
  moovio_sdk/models/operations/cancelschedule.py,sha256=X0vmSDaW6vyM387Tf02KSBCZNggKxNYm_T0W5zJY494,2394
@@ -486,6 +488,7 @@ moovio_sdk/models/operations/getschedules.py,sha256=UVogppitQ0sVe0kvPy7b9m3gmRJp
486
488
  moovio_sdk/models/operations/getsweep.py,sha256=-HH4rVhe6nZNL9ZlzVnESunY65QuAL4GOEGufBajbLI,2681
487
489
  moovio_sdk/models/operations/getsweepconfig.py,sha256=j-0zuchd-A_gaNPaq4vtZWa-9DeUm7en0FQcqfpS6fU,2588
488
490
  moovio_sdk/models/operations/getterminalapplication.py,sha256=m_DujyZZUJlPxrPnKBUrHSUPTX5EE3SOQexOqKrOkTk,2529
491
+ moovio_sdk/models/operations/getterminalconfiguration.py,sha256=KHTH444xSs9rgckrKckO60u1c9uu5M5MT3kV8siOOyA,2741
489
492
  moovio_sdk/models/operations/gettermsofservicetoken.py,sha256=HC8ochI3vWcebAWrnEcWv0HDcrVDqff42cID3Ix4w5Q,3082
490
493
  moovio_sdk/models/operations/gettransfer.py,sha256=w3HGb_K28zW7BpIvngV0O7fveiQasbhLROxUK8gTYos,2621
491
494
  moovio_sdk/models/operations/getunderwriting.py,sha256=RsSa0usxldoPr9uDPeikeESpmbGrDs4cCf_F-GJfMWE,2398
@@ -562,10 +565,11 @@ moovio_sdk/py.typed,sha256=zrp19r0G21lr2yRiMC0f8MFkQFGj9wMpSbboePMg8KM,59
562
565
  moovio_sdk/receipts.py,sha256=EBsxlliNZ7-MTBqqi_yVk_LPviYthTq0eZhgnH5IGfk,21098
563
566
  moovio_sdk/representatives.py,sha256=nmDgxhxxfHtE8Li-F0zk9kUuq33cR9fEibue2zJ6nO0,64454
564
567
  moovio_sdk/scheduling.py,sha256=-i2mkiwWLjz3ZjWEPvO6U6nZwd7V0gxr48r-955li8k,65653
565
- moovio_sdk/sdk.py,sha256=J6rXCBZ4_c5GE3duJR9mb2FExgDfFo9Qe2ixxUOXIvw,10045
568
+ moovio_sdk/sdk.py,sha256=69MUO1ypFQk6kVpbLGTQhc6r9gsqvctZZZr5LDqD4dk,10253
566
569
  moovio_sdk/sdkconfiguration.py,sha256=7NP1kNUcms-14o77cdoPmV7ZGWTtCLqqMTWN6pdwm-8,1822
567
570
  moovio_sdk/sweeps.py,sha256=6QLuQRTQRRQ3qRyG9ZBPz1fkK3tnZeRAg_0YK6Scdts,66711
568
571
  moovio_sdk/terminal_applications.py,sha256=MJVg8ikMsL8Pb90-7Tgmv-qKivpuom7nH_N2wy8L9H0,42822
572
+ moovio_sdk/terminal_configurations.py,sha256=6gqd2Syq1cHSFarTLRFwpzPfm06mK90T53wI594BhGw,10205
569
573
  moovio_sdk/transfers.py,sha256=OXubA3dXZlJs5zdZfsSsurf9tGI6JmVRvJKLzPVJoZ4,131702
570
574
  moovio_sdk/types/__init__.py,sha256=RArOwSgeeTIva6h-4ttjXwMUeCkz10nAFBL9D-QljI4,377
571
575
  moovio_sdk/types/basemodel.py,sha256=PexI39iKiOkIlobB8Ueo0yn8PLHp6_wb-WO-zelNDZY,1170
@@ -587,6 +591,6 @@ moovio_sdk/utils/url.py,sha256=BgGPgcTA6MRK4bF8fjP2dUopN3NzEzxWMXPBVg8NQUA,5254
587
591
  moovio_sdk/utils/values.py,sha256=CcaCXEa3xHhkUDROyXZocN8f0bdITftv9Y0P9lTf0YM,3517
588
592
  moovio_sdk/wallet_transactions.py,sha256=gP5AYXIn4LkCtm1ncheuWGxZCK0d67b20UIDheo_Khg,24943
589
593
  moovio_sdk/wallets.py,sha256=5RcHiuHxBDi2YmK0V83s1hwEN-29aFar17LsQIYXpo0,19250
590
- moovio_sdk-0.3.14.dist-info/METADATA,sha256=JCH2TwXdOEIIKvEY6vb_-6X8sUhxTY941h_f38jWowk,103756
591
- moovio_sdk-0.3.14.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
592
- moovio_sdk-0.3.14.dist-info/RECORD,,
594
+ moovio_sdk-0.3.16.dist-info/METADATA,sha256=vKR1KVcATBi9FUwidXV7EVrqmu3ki6dY0iuuKqmsEtc,104253
595
+ moovio_sdk-0.3.16.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
596
+ moovio_sdk-0.3.16.dist-info/RECORD,,