moovio_sdk 0.13.1__py3-none-any.whl → 0.13.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.
Files changed (42) hide show
  1. moovio_sdk/_version.py +3 -3
  2. moovio_sdk/account_terminal_applications.py +13 -16
  3. moovio_sdk/accounts.py +29 -56
  4. moovio_sdk/adjustments.py +5 -8
  5. moovio_sdk/apple_pay.py +19 -34
  6. moovio_sdk/authentication.py +11 -18
  7. moovio_sdk/bank_accounts.py +31 -58
  8. moovio_sdk/branding.py +21 -48
  9. moovio_sdk/capabilities.py +13 -28
  10. moovio_sdk/card_issuing.py +17 -32
  11. moovio_sdk/cards.py +19 -34
  12. moovio_sdk/disputes.py +35 -66
  13. moovio_sdk/end_to_end_encryption.py +5 -8
  14. moovio_sdk/enriched_address.py +3 -2
  15. moovio_sdk/enriched_profile.py +3 -2
  16. moovio_sdk/fee_plans.py +19 -38
  17. moovio_sdk/files.py +11 -18
  18. moovio_sdk/industries.py +3 -6
  19. moovio_sdk/institutions.py +7 -10
  20. moovio_sdk/issuing_transactions.py +11 -10
  21. moovio_sdk/models/components/patchtransfer.py +9 -3
  22. moovio_sdk/models/operations/listticketmessages.py +1 -18
  23. moovio_sdk/models/operations/listtickets.py +3 -3
  24. moovio_sdk/onboarding.py +11 -22
  25. moovio_sdk/payment_links.py +19 -30
  26. moovio_sdk/payment_methods.py +5 -8
  27. moovio_sdk/receipts.py +7 -10
  28. moovio_sdk/representatives.py +17 -40
  29. moovio_sdk/scheduling.py +21 -44
  30. moovio_sdk/support.py +35 -54
  31. moovio_sdk/sweeps.py +21 -32
  32. moovio_sdk/terminal_applications.py +13 -20
  33. moovio_sdk/transfers.py +63 -100
  34. moovio_sdk/underwriting.py +15 -22
  35. moovio_sdk/utils/__init__.py +0 -3
  36. moovio_sdk/utils/serializers.py +1 -18
  37. moovio_sdk/utils/unmarshal_json_response.py +24 -0
  38. moovio_sdk/wallet_transactions.py +5 -8
  39. moovio_sdk/wallets.py +5 -4
  40. {moovio_sdk-0.13.1.dist-info → moovio_sdk-0.13.3.dist-info}/METADATA +6 -6
  41. {moovio_sdk-0.13.1.dist-info → moovio_sdk-0.13.3.dist-info}/RECORD +42 -41
  42. {moovio_sdk-0.13.1.dist-info → moovio_sdk-0.13.3.dist-info}/WHEEL +0 -0
moovio_sdk/support.py CHANGED
@@ -6,6 +6,7 @@ from moovio_sdk._hooks import HookContext
6
6
  from moovio_sdk.models import components, errors, operations
7
7
  from moovio_sdk.types import OptionalNullable, UNSET
8
8
  from moovio_sdk.utils import get_security_from_env
9
+ from moovio_sdk.utils.unmarshal_json_response import unmarshal_json_response
9
10
  from typing import Any, List, Mapping, Optional, Union
10
11
 
11
12
 
@@ -25,7 +26,7 @@ class Support(BaseSDK):
25
26
  r"""Create a support ticket for a Moov account.
26
27
 
27
28
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
28
- you'll need to specify the `/accounts/{accountID}/support.write` scope.
29
+ you'll need to specify the `/accounts/{accountID}/tickets.write` scope.
29
30
 
30
31
  :param account_id:
31
32
  :param title:
@@ -115,16 +116,14 @@ class Support(BaseSDK):
115
116
  response_data: Any = None
116
117
  if utils.match_response(http_res, "200", "application/json"):
117
118
  return operations.CreateTicketResponse(
118
- result=utils.unmarshal_json_response(components.Ticket, http_res),
119
+ result=unmarshal_json_response(components.Ticket, http_res),
119
120
  headers=utils.get_response_headers(http_res.headers),
120
121
  )
121
122
  if utils.match_response(http_res, ["400", "409"], "application/json"):
122
- response_data = utils.unmarshal_json_response(
123
- errors.GenericErrorData, http_res
124
- )
123
+ response_data = unmarshal_json_response(errors.GenericErrorData, http_res)
125
124
  raise errors.GenericError(response_data, http_res)
126
125
  if utils.match_response(http_res, "422", "application/json"):
127
- response_data = utils.unmarshal_json_response(
126
+ response_data = unmarshal_json_response(
128
127
  errors.CreateTicketErrorData, http_res
129
128
  )
130
129
  raise errors.CreateTicketError(response_data, http_res)
@@ -158,7 +157,7 @@ class Support(BaseSDK):
158
157
  r"""Create a support ticket for a Moov account.
159
158
 
160
159
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
161
- you'll need to specify the `/accounts/{accountID}/support.write` scope.
160
+ you'll need to specify the `/accounts/{accountID}/tickets.write` scope.
162
161
 
163
162
  :param account_id:
164
163
  :param title:
@@ -248,16 +247,14 @@ class Support(BaseSDK):
248
247
  response_data: Any = None
249
248
  if utils.match_response(http_res, "200", "application/json"):
250
249
  return operations.CreateTicketResponse(
251
- result=utils.unmarshal_json_response(components.Ticket, http_res),
250
+ result=unmarshal_json_response(components.Ticket, http_res),
252
251
  headers=utils.get_response_headers(http_res.headers),
253
252
  )
254
253
  if utils.match_response(http_res, ["400", "409"], "application/json"):
255
- response_data = utils.unmarshal_json_response(
256
- errors.GenericErrorData, http_res
257
- )
254
+ response_data = unmarshal_json_response(errors.GenericErrorData, http_res)
258
255
  raise errors.GenericError(response_data, http_res)
259
256
  if utils.match_response(http_res, "422", "application/json"):
260
- response_data = utils.unmarshal_json_response(
257
+ response_data = unmarshal_json_response(
261
258
  errors.CreateTicketErrorData, http_res
262
259
  )
263
260
  raise errors.CreateTicketError(response_data, http_res)
@@ -280,7 +277,7 @@ class Support(BaseSDK):
280
277
  self,
281
278
  *,
282
279
  account_id: str,
283
- skip: Optional[int] = None,
280
+ cursor: Optional[str] = None,
284
281
  count: Optional[int] = None,
285
282
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
286
283
  server_url: Optional[str] = None,
@@ -290,10 +287,10 @@ class Support(BaseSDK):
290
287
  r"""List all the support tickets created under a Moov account.
291
288
 
292
289
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
293
- you'll need to specify the `/accounts/{accountID}/support.read` scope.
290
+ you'll need to specify the `/accounts/{accountID}/tickets.read` scope.
294
291
 
295
292
  :param account_id:
296
- :param skip:
293
+ :param cursor:
297
294
  :param count:
298
295
  :param retries: Override the default retry configuration for this method
299
296
  :param server_url: Override the default server URL for this method
@@ -311,7 +308,7 @@ class Support(BaseSDK):
311
308
  base_url = self._get_url(base_url, url_variables)
312
309
 
313
310
  request = operations.ListTicketsRequest(
314
- skip=skip,
311
+ cursor=cursor,
315
312
  count=count,
316
313
  account_id=account_id,
317
314
  )
@@ -360,7 +357,7 @@ class Support(BaseSDK):
360
357
 
361
358
  if utils.match_response(http_res, "200", "application/json"):
362
359
  return operations.ListTicketsResponse(
363
- result=utils.unmarshal_json_response(List[components.Ticket], http_res),
360
+ result=unmarshal_json_response(List[components.Ticket], http_res),
364
361
  headers=utils.get_response_headers(http_res.headers),
365
362
  )
366
363
  if utils.match_response(http_res, ["401", "403", "429"], "*"):
@@ -382,7 +379,7 @@ class Support(BaseSDK):
382
379
  self,
383
380
  *,
384
381
  account_id: str,
385
- skip: Optional[int] = None,
382
+ cursor: Optional[str] = None,
386
383
  count: Optional[int] = None,
387
384
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
388
385
  server_url: Optional[str] = None,
@@ -392,10 +389,10 @@ class Support(BaseSDK):
392
389
  r"""List all the support tickets created under a Moov account.
393
390
 
394
391
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
395
- you'll need to specify the `/accounts/{accountID}/support.read` scope.
392
+ you'll need to specify the `/accounts/{accountID}/tickets.read` scope.
396
393
 
397
394
  :param account_id:
398
- :param skip:
395
+ :param cursor:
399
396
  :param count:
400
397
  :param retries: Override the default retry configuration for this method
401
398
  :param server_url: Override the default server URL for this method
@@ -413,7 +410,7 @@ class Support(BaseSDK):
413
410
  base_url = self._get_url(base_url, url_variables)
414
411
 
415
412
  request = operations.ListTicketsRequest(
416
- skip=skip,
413
+ cursor=cursor,
417
414
  count=count,
418
415
  account_id=account_id,
419
416
  )
@@ -462,7 +459,7 @@ class Support(BaseSDK):
462
459
 
463
460
  if utils.match_response(http_res, "200", "application/json"):
464
461
  return operations.ListTicketsResponse(
465
- result=utils.unmarshal_json_response(List[components.Ticket], http_res),
462
+ result=unmarshal_json_response(List[components.Ticket], http_res),
466
463
  headers=utils.get_response_headers(http_res.headers),
467
464
  )
468
465
  if utils.match_response(http_res, ["401", "403", "429"], "*"):
@@ -493,7 +490,7 @@ class Support(BaseSDK):
493
490
  r"""Retrieve a support ticket by ID.
494
491
 
495
492
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
496
- you'll need to specify the `/accounts/{accountID}/support.read` scope.
493
+ you'll need to specify the `/accounts/{accountID}/tickets.read` scope.
497
494
 
498
495
  :param account_id:
499
496
  :param ticket_id:
@@ -561,7 +558,7 @@ class Support(BaseSDK):
561
558
 
562
559
  if utils.match_response(http_res, "200", "application/json"):
563
560
  return operations.GetTicketResponse(
564
- result=utils.unmarshal_json_response(components.Ticket, http_res),
561
+ result=unmarshal_json_response(components.Ticket, http_res),
565
562
  headers=utils.get_response_headers(http_res.headers),
566
563
  )
567
564
  if utils.match_response(http_res, ["401", "403", "404", "429"], "*"):
@@ -592,7 +589,7 @@ class Support(BaseSDK):
592
589
  r"""Retrieve a support ticket by ID.
593
590
 
594
591
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
595
- you'll need to specify the `/accounts/{accountID}/support.read` scope.
592
+ you'll need to specify the `/accounts/{accountID}/tickets.read` scope.
596
593
 
597
594
  :param account_id:
598
595
  :param ticket_id:
@@ -660,7 +657,7 @@ class Support(BaseSDK):
660
657
 
661
658
  if utils.match_response(http_res, "200", "application/json"):
662
659
  return operations.GetTicketResponse(
663
- result=utils.unmarshal_json_response(components.Ticket, http_res),
660
+ result=unmarshal_json_response(components.Ticket, http_res),
664
661
  headers=utils.get_response_headers(http_res.headers),
665
662
  )
666
663
  if utils.match_response(http_res, ["401", "403", "404", "429"], "*"):
@@ -692,7 +689,7 @@ class Support(BaseSDK):
692
689
  r"""Updates a support ticket.
693
690
 
694
691
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
695
- you'll need to specify the `/accounts/{accountID}/support.write` scope.
692
+ you'll need to specify the `/accounts/{accountID}/tickets.write` scope.
696
693
 
697
694
  :param account_id:
698
695
  :param ticket_id:
@@ -780,16 +777,14 @@ class Support(BaseSDK):
780
777
  response_data: Any = None
781
778
  if utils.match_response(http_res, "200", "application/json"):
782
779
  return operations.UpdateTicketResponse(
783
- result=utils.unmarshal_json_response(components.Ticket, http_res),
780
+ result=unmarshal_json_response(components.Ticket, http_res),
784
781
  headers=utils.get_response_headers(http_res.headers),
785
782
  )
786
783
  if utils.match_response(http_res, ["400", "409"], "application/json"):
787
- response_data = utils.unmarshal_json_response(
788
- errors.GenericErrorData, http_res
789
- )
784
+ response_data = unmarshal_json_response(errors.GenericErrorData, http_res)
790
785
  raise errors.GenericError(response_data, http_res)
791
786
  if utils.match_response(http_res, "422", "application/json"):
792
- response_data = utils.unmarshal_json_response(
787
+ response_data = unmarshal_json_response(
793
788
  errors.UpdateTicketErrorData, http_res
794
789
  )
795
790
  raise errors.UpdateTicketError(response_data, http_res)
@@ -822,7 +817,7 @@ class Support(BaseSDK):
822
817
  r"""Updates a support ticket.
823
818
 
824
819
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
825
- you'll need to specify the `/accounts/{accountID}/support.write` scope.
820
+ you'll need to specify the `/accounts/{accountID}/tickets.write` scope.
826
821
 
827
822
  :param account_id:
828
823
  :param ticket_id:
@@ -910,16 +905,14 @@ class Support(BaseSDK):
910
905
  response_data: Any = None
911
906
  if utils.match_response(http_res, "200", "application/json"):
912
907
  return operations.UpdateTicketResponse(
913
- result=utils.unmarshal_json_response(components.Ticket, http_res),
908
+ result=unmarshal_json_response(components.Ticket, http_res),
914
909
  headers=utils.get_response_headers(http_res.headers),
915
910
  )
916
911
  if utils.match_response(http_res, ["400", "409"], "application/json"):
917
- response_data = utils.unmarshal_json_response(
918
- errors.GenericErrorData, http_res
919
- )
912
+ response_data = unmarshal_json_response(errors.GenericErrorData, http_res)
920
913
  raise errors.GenericError(response_data, http_res)
921
914
  if utils.match_response(http_res, "422", "application/json"):
922
- response_data = utils.unmarshal_json_response(
915
+ response_data = unmarshal_json_response(
923
916
  errors.UpdateTicketErrorData, http_res
924
917
  )
925
918
  raise errors.UpdateTicketError(response_data, http_res)
@@ -943,8 +936,6 @@ class Support(BaseSDK):
943
936
  *,
944
937
  account_id: str,
945
938
  ticket_id: str,
946
- skip: Optional[int] = None,
947
- count: Optional[int] = None,
948
939
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
949
940
  server_url: Optional[str] = None,
950
941
  timeout_ms: Optional[int] = None,
@@ -953,12 +944,10 @@ class Support(BaseSDK):
953
944
  r"""List all the messages for a support ticket.
954
945
 
955
946
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
956
- you'll need to specify the `/accounts/{accountID}/support.read` scope.
947
+ you'll need to specify the `/accounts/{accountID}/tickets.read` scope.
957
948
 
958
949
  :param account_id:
959
950
  :param ticket_id:
960
- :param skip:
961
- :param count:
962
951
  :param retries: Override the default retry configuration for this method
963
952
  :param server_url: Override the default server URL for this method
964
953
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -975,8 +964,6 @@ class Support(BaseSDK):
975
964
  base_url = self._get_url(base_url, url_variables)
976
965
 
977
966
  request = operations.ListTicketMessagesRequest(
978
- skip=skip,
979
- count=count,
980
967
  account_id=account_id,
981
968
  ticket_id=ticket_id,
982
969
  )
@@ -1025,7 +1012,7 @@ class Support(BaseSDK):
1025
1012
 
1026
1013
  if utils.match_response(http_res, "200", "application/json"):
1027
1014
  return operations.ListTicketMessagesResponse(
1028
- result=utils.unmarshal_json_response(
1015
+ result=unmarshal_json_response(
1029
1016
  List[components.TicketMessage], http_res
1030
1017
  ),
1031
1018
  headers=utils.get_response_headers(http_res.headers),
@@ -1050,8 +1037,6 @@ class Support(BaseSDK):
1050
1037
  *,
1051
1038
  account_id: str,
1052
1039
  ticket_id: str,
1053
- skip: Optional[int] = None,
1054
- count: Optional[int] = None,
1055
1040
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
1056
1041
  server_url: Optional[str] = None,
1057
1042
  timeout_ms: Optional[int] = None,
@@ -1060,12 +1045,10 @@ class Support(BaseSDK):
1060
1045
  r"""List all the messages for a support ticket.
1061
1046
 
1062
1047
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
1063
- you'll need to specify the `/accounts/{accountID}/support.read` scope.
1048
+ you'll need to specify the `/accounts/{accountID}/tickets.read` scope.
1064
1049
 
1065
1050
  :param account_id:
1066
1051
  :param ticket_id:
1067
- :param skip:
1068
- :param count:
1069
1052
  :param retries: Override the default retry configuration for this method
1070
1053
  :param server_url: Override the default server URL for this method
1071
1054
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -1082,8 +1065,6 @@ class Support(BaseSDK):
1082
1065
  base_url = self._get_url(base_url, url_variables)
1083
1066
 
1084
1067
  request = operations.ListTicketMessagesRequest(
1085
- skip=skip,
1086
- count=count,
1087
1068
  account_id=account_id,
1088
1069
  ticket_id=ticket_id,
1089
1070
  )
@@ -1132,7 +1113,7 @@ class Support(BaseSDK):
1132
1113
 
1133
1114
  if utils.match_response(http_res, "200", "application/json"):
1134
1115
  return operations.ListTicketMessagesResponse(
1135
- result=utils.unmarshal_json_response(
1116
+ result=unmarshal_json_response(
1136
1117
  List[components.TicketMessage], http_res
1137
1118
  ),
1138
1119
  headers=utils.get_response_headers(http_res.headers),
moovio_sdk/sweeps.py CHANGED
@@ -6,6 +6,7 @@ from moovio_sdk._hooks import HookContext
6
6
  from moovio_sdk.models import components, errors, operations
7
7
  from moovio_sdk.types import OptionalNullable, UNSET
8
8
  from moovio_sdk.utils import get_security_from_env
9
+ from moovio_sdk.utils.unmarshal_json_response import unmarshal_json_response
9
10
  from typing import Any, List, Mapping, Optional, Union
10
11
 
11
12
 
@@ -128,16 +129,14 @@ class Sweeps(BaseSDK):
128
129
  response_data: Any = None
129
130
  if utils.match_response(http_res, "200", "application/json"):
130
131
  return operations.CreateSweepConfigResponse(
131
- result=utils.unmarshal_json_response(components.SweepConfig, http_res),
132
+ result=unmarshal_json_response(components.SweepConfig, http_res),
132
133
  headers=utils.get_response_headers(http_res.headers),
133
134
  )
134
135
  if utils.match_response(http_res, ["400", "409"], "application/json"):
135
- response_data = utils.unmarshal_json_response(
136
- errors.GenericErrorData, http_res
137
- )
136
+ response_data = unmarshal_json_response(errors.GenericErrorData, http_res)
138
137
  raise errors.GenericError(response_data, http_res)
139
138
  if utils.match_response(http_res, "422", "application/json"):
140
- response_data = utils.unmarshal_json_response(
139
+ response_data = unmarshal_json_response(
141
140
  errors.CreateSweepConfigErrorData, http_res
142
141
  )
143
142
  raise errors.CreateSweepConfigError(response_data, http_res)
@@ -274,16 +273,14 @@ class Sweeps(BaseSDK):
274
273
  response_data: Any = None
275
274
  if utils.match_response(http_res, "200", "application/json"):
276
275
  return operations.CreateSweepConfigResponse(
277
- result=utils.unmarshal_json_response(components.SweepConfig, http_res),
276
+ result=unmarshal_json_response(components.SweepConfig, http_res),
278
277
  headers=utils.get_response_headers(http_res.headers),
279
278
  )
280
279
  if utils.match_response(http_res, ["400", "409"], "application/json"):
281
- response_data = utils.unmarshal_json_response(
282
- errors.GenericErrorData, http_res
283
- )
280
+ response_data = unmarshal_json_response(errors.GenericErrorData, http_res)
284
281
  raise errors.GenericError(response_data, http_res)
285
282
  if utils.match_response(http_res, "422", "application/json"):
286
- response_data = utils.unmarshal_json_response(
283
+ response_data = unmarshal_json_response(
287
284
  errors.CreateSweepConfigErrorData, http_res
288
285
  )
289
286
  raise errors.CreateSweepConfigError(response_data, http_res)
@@ -380,9 +377,7 @@ class Sweeps(BaseSDK):
380
377
 
381
378
  if utils.match_response(http_res, "200", "application/json"):
382
379
  return operations.ListSweepConfigsResponse(
383
- result=utils.unmarshal_json_response(
384
- List[components.SweepConfig], http_res
385
- ),
380
+ result=unmarshal_json_response(List[components.SweepConfig], http_res),
386
381
  headers=utils.get_response_headers(http_res.headers),
387
382
  )
388
383
  if utils.match_response(http_res, ["401", "403", "429"], "*"):
@@ -478,9 +473,7 @@ class Sweeps(BaseSDK):
478
473
 
479
474
  if utils.match_response(http_res, "200", "application/json"):
480
475
  return operations.ListSweepConfigsResponse(
481
- result=utils.unmarshal_json_response(
482
- List[components.SweepConfig], http_res
483
- ),
476
+ result=unmarshal_json_response(List[components.SweepConfig], http_res),
484
477
  headers=utils.get_response_headers(http_res.headers),
485
478
  )
486
479
  if utils.match_response(http_res, ["401", "403", "429"], "*"):
@@ -579,7 +572,7 @@ class Sweeps(BaseSDK):
579
572
 
580
573
  if utils.match_response(http_res, "200", "application/json"):
581
574
  return operations.GetSweepConfigResponse(
582
- result=utils.unmarshal_json_response(components.SweepConfig, http_res),
575
+ result=unmarshal_json_response(components.SweepConfig, http_res),
583
576
  headers=utils.get_response_headers(http_res.headers),
584
577
  )
585
578
  if utils.match_response(http_res, ["401", "403", "404", "429"], "*"):
@@ -678,7 +671,7 @@ class Sweeps(BaseSDK):
678
671
 
679
672
  if utils.match_response(http_res, "200", "application/json"):
680
673
  return operations.GetSweepConfigResponse(
681
- result=utils.unmarshal_json_response(components.SweepConfig, http_res),
674
+ result=unmarshal_json_response(components.SweepConfig, http_res),
682
675
  headers=utils.get_response_headers(http_res.headers),
683
676
  )
684
677
  if utils.match_response(http_res, ["401", "403", "404", "429"], "*"):
@@ -835,16 +828,14 @@ class Sweeps(BaseSDK):
835
828
  response_data: Any = None
836
829
  if utils.match_response(http_res, "200", "application/json"):
837
830
  return operations.UpdateSweepConfigResponse(
838
- result=utils.unmarshal_json_response(components.SweepConfig, http_res),
831
+ result=unmarshal_json_response(components.SweepConfig, http_res),
839
832
  headers=utils.get_response_headers(http_res.headers),
840
833
  )
841
834
  if utils.match_response(http_res, ["400", "409"], "application/json"):
842
- response_data = utils.unmarshal_json_response(
843
- errors.GenericErrorData, http_res
844
- )
835
+ response_data = unmarshal_json_response(errors.GenericErrorData, http_res)
845
836
  raise errors.GenericError(response_data, http_res)
846
837
  if utils.match_response(http_res, "422", "application/json"):
847
- response_data = utils.unmarshal_json_response(
838
+ response_data = unmarshal_json_response(
848
839
  errors.PatchSweepConfigErrorData, http_res
849
840
  )
850
841
  raise errors.PatchSweepConfigError(response_data, http_res)
@@ -1002,16 +993,14 @@ class Sweeps(BaseSDK):
1002
993
  response_data: Any = None
1003
994
  if utils.match_response(http_res, "200", "application/json"):
1004
995
  return operations.UpdateSweepConfigResponse(
1005
- result=utils.unmarshal_json_response(components.SweepConfig, http_res),
996
+ result=unmarshal_json_response(components.SweepConfig, http_res),
1006
997
  headers=utils.get_response_headers(http_res.headers),
1007
998
  )
1008
999
  if utils.match_response(http_res, ["400", "409"], "application/json"):
1009
- response_data = utils.unmarshal_json_response(
1010
- errors.GenericErrorData, http_res
1011
- )
1000
+ response_data = unmarshal_json_response(errors.GenericErrorData, http_res)
1012
1001
  raise errors.GenericError(response_data, http_res)
1013
1002
  if utils.match_response(http_res, "422", "application/json"):
1014
- response_data = utils.unmarshal_json_response(
1003
+ response_data = unmarshal_json_response(
1015
1004
  errors.PatchSweepConfigErrorData, http_res
1016
1005
  )
1017
1006
  raise errors.PatchSweepConfigError(response_data, http_res)
@@ -1123,7 +1112,7 @@ class Sweeps(BaseSDK):
1123
1112
 
1124
1113
  if utils.match_response(http_res, "200", "application/json"):
1125
1114
  return operations.ListSweepsResponse(
1126
- result=utils.unmarshal_json_response(List[components.Sweep], http_res),
1115
+ result=unmarshal_json_response(List[components.Sweep], http_res),
1127
1116
  headers=utils.get_response_headers(http_res.headers),
1128
1117
  )
1129
1118
  if utils.match_response(http_res, ["401", "403", "429"], "*"):
@@ -1234,7 +1223,7 @@ class Sweeps(BaseSDK):
1234
1223
 
1235
1224
  if utils.match_response(http_res, "200", "application/json"):
1236
1225
  return operations.ListSweepsResponse(
1237
- result=utils.unmarshal_json_response(List[components.Sweep], http_res),
1226
+ result=unmarshal_json_response(List[components.Sweep], http_res),
1238
1227
  headers=utils.get_response_headers(http_res.headers),
1239
1228
  )
1240
1229
  if utils.match_response(http_res, ["401", "403", "429"], "*"):
@@ -1336,7 +1325,7 @@ class Sweeps(BaseSDK):
1336
1325
 
1337
1326
  if utils.match_response(http_res, "200", "application/json"):
1338
1327
  return operations.GetSweepResponse(
1339
- result=utils.unmarshal_json_response(components.Sweep, http_res),
1328
+ result=unmarshal_json_response(components.Sweep, http_res),
1340
1329
  headers=utils.get_response_headers(http_res.headers),
1341
1330
  )
1342
1331
  if utils.match_response(http_res, ["401", "403", "404", "429"], "*"):
@@ -1438,7 +1427,7 @@ class Sweeps(BaseSDK):
1438
1427
 
1439
1428
  if utils.match_response(http_res, "200", "application/json"):
1440
1429
  return operations.GetSweepResponse(
1441
- result=utils.unmarshal_json_response(components.Sweep, http_res),
1430
+ result=unmarshal_json_response(components.Sweep, http_res),
1442
1431
  headers=utils.get_response_headers(http_res.headers),
1443
1432
  )
1444
1433
  if utils.match_response(http_res, ["401", "403", "404", "429"], "*"):
@@ -6,6 +6,7 @@ from moovio_sdk._hooks import HookContext
6
6
  from moovio_sdk.models import components, errors, operations
7
7
  from moovio_sdk.types import BaseModel, OptionalNullable, UNSET
8
8
  from moovio_sdk.utils import get_security_from_env
9
+ from moovio_sdk.utils.unmarshal_json_response import unmarshal_json_response
9
10
  from typing import Any, List, Mapping, Optional, Union, cast
10
11
 
11
12
 
@@ -116,18 +117,16 @@ class TerminalApplications(BaseSDK):
116
117
  response_data: Any = None
117
118
  if utils.match_response(http_res, "200", "application/json"):
118
119
  return operations.CreateTerminalApplicationResponse(
119
- result=utils.unmarshal_json_response(
120
+ result=unmarshal_json_response(
120
121
  components.TerminalApplication, http_res
121
122
  ),
122
123
  headers=utils.get_response_headers(http_res.headers),
123
124
  )
124
125
  if utils.match_response(http_res, ["400", "409"], "application/json"):
125
- response_data = utils.unmarshal_json_response(
126
- errors.GenericErrorData, http_res
127
- )
126
+ response_data = unmarshal_json_response(errors.GenericErrorData, http_res)
128
127
  raise errors.GenericError(response_data, http_res)
129
128
  if utils.match_response(http_res, "422", "application/json"):
130
- response_data = utils.unmarshal_json_response(
129
+ response_data = unmarshal_json_response(
131
130
  errors.TerminalApplicationErrorData, http_res
132
131
  )
133
132
  raise errors.TerminalApplicationError(response_data, http_res)
@@ -252,18 +251,16 @@ class TerminalApplications(BaseSDK):
252
251
  response_data: Any = None
253
252
  if utils.match_response(http_res, "200", "application/json"):
254
253
  return operations.CreateTerminalApplicationResponse(
255
- result=utils.unmarshal_json_response(
254
+ result=unmarshal_json_response(
256
255
  components.TerminalApplication, http_res
257
256
  ),
258
257
  headers=utils.get_response_headers(http_res.headers),
259
258
  )
260
259
  if utils.match_response(http_res, ["400", "409"], "application/json"):
261
- response_data = utils.unmarshal_json_response(
262
- errors.GenericErrorData, http_res
263
- )
260
+ response_data = unmarshal_json_response(errors.GenericErrorData, http_res)
264
261
  raise errors.GenericError(response_data, http_res)
265
262
  if utils.match_response(http_res, "422", "application/json"):
266
- response_data = utils.unmarshal_json_response(
263
+ response_data = unmarshal_json_response(
267
264
  errors.TerminalApplicationErrorData, http_res
268
265
  )
269
266
  raise errors.TerminalApplicationError(response_data, http_res)
@@ -365,7 +362,7 @@ class TerminalApplications(BaseSDK):
365
362
 
366
363
  if utils.match_response(http_res, "200", "application/json"):
367
364
  return operations.ListTerminalApplicationsResponse(
368
- result=utils.unmarshal_json_response(
365
+ result=unmarshal_json_response(
369
366
  List[components.TerminalApplication], http_res
370
367
  ),
371
368
  headers=utils.get_response_headers(http_res.headers),
@@ -468,7 +465,7 @@ class TerminalApplications(BaseSDK):
468
465
 
469
466
  if utils.match_response(http_res, "200", "application/json"):
470
467
  return operations.ListTerminalApplicationsResponse(
471
- result=utils.unmarshal_json_response(
468
+ result=unmarshal_json_response(
472
469
  List[components.TerminalApplication], http_res
473
470
  ),
474
471
  headers=utils.get_response_headers(http_res.headers),
@@ -566,7 +563,7 @@ class TerminalApplications(BaseSDK):
566
563
 
567
564
  if utils.match_response(http_res, "200", "application/json"):
568
565
  return operations.GetTerminalApplicationResponse(
569
- result=utils.unmarshal_json_response(
566
+ result=unmarshal_json_response(
570
567
  components.TerminalApplication, http_res
571
568
  ),
572
569
  headers=utils.get_response_headers(http_res.headers),
@@ -664,7 +661,7 @@ class TerminalApplications(BaseSDK):
664
661
 
665
662
  if utils.match_response(http_res, "200", "application/json"):
666
663
  return operations.GetTerminalApplicationResponse(
667
- result=utils.unmarshal_json_response(
664
+ result=unmarshal_json_response(
668
665
  components.TerminalApplication, http_res
669
666
  ),
670
667
  headers=utils.get_response_headers(http_res.headers),
@@ -777,9 +774,7 @@ class TerminalApplications(BaseSDK):
777
774
  headers=utils.get_response_headers(http_res.headers)
778
775
  )
779
776
  if utils.match_response(http_res, ["400", "409"], "application/json"):
780
- response_data = utils.unmarshal_json_response(
781
- errors.GenericErrorData, http_res
782
- )
777
+ response_data = unmarshal_json_response(errors.GenericErrorData, http_res)
783
778
  raise errors.GenericError(response_data, http_res)
784
779
  if utils.match_response(http_res, ["401", "403", "404", "429"], "*"):
785
780
  http_res_text = utils.stream_to_text(http_res)
@@ -889,9 +884,7 @@ class TerminalApplications(BaseSDK):
889
884
  headers=utils.get_response_headers(http_res.headers)
890
885
  )
891
886
  if utils.match_response(http_res, ["400", "409"], "application/json"):
892
- response_data = utils.unmarshal_json_response(
893
- errors.GenericErrorData, http_res
894
- )
887
+ response_data = unmarshal_json_response(errors.GenericErrorData, http_res)
895
888
  raise errors.GenericError(response_data, http_res)
896
889
  if utils.match_response(http_res, ["401", "403", "404", "429"], "*"):
897
890
  http_res_text = await utils.stream_to_text_async(http_res)