moovio_sdk 0.13.1__py3-none-any.whl → 0.13.2__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 (40) 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/onboarding.py +11 -22
  23. moovio_sdk/payment_links.py +19 -30
  24. moovio_sdk/payment_methods.py +5 -8
  25. moovio_sdk/receipts.py +7 -10
  26. moovio_sdk/representatives.py +17 -40
  27. moovio_sdk/scheduling.py +21 -44
  28. moovio_sdk/support.py +19 -26
  29. moovio_sdk/sweeps.py +21 -32
  30. moovio_sdk/terminal_applications.py +13 -20
  31. moovio_sdk/transfers.py +63 -100
  32. moovio_sdk/underwriting.py +15 -22
  33. moovio_sdk/utils/__init__.py +0 -3
  34. moovio_sdk/utils/serializers.py +1 -18
  35. moovio_sdk/utils/unmarshal_json_response.py +24 -0
  36. moovio_sdk/wallet_transactions.py +5 -8
  37. moovio_sdk/wallets.py +5 -4
  38. {moovio_sdk-0.13.1.dist-info → moovio_sdk-0.13.2.dist-info}/METADATA +1 -1
  39. {moovio_sdk-0.13.1.dist-info → moovio_sdk-0.13.2.dist-info}/RECORD +40 -39
  40. {moovio_sdk-0.13.1.dist-info → moovio_sdk-0.13.2.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
 
@@ -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)
@@ -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)
@@ -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"], "*"):
@@ -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"], "*"):
@@ -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"], "*"):
@@ -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"], "*"):
@@ -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)
@@ -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)
@@ -1025,7 +1018,7 @@ class Support(BaseSDK):
1025
1018
 
1026
1019
  if utils.match_response(http_res, "200", "application/json"):
1027
1020
  return operations.ListTicketMessagesResponse(
1028
- result=utils.unmarshal_json_response(
1021
+ result=unmarshal_json_response(
1029
1022
  List[components.TicketMessage], http_res
1030
1023
  ),
1031
1024
  headers=utils.get_response_headers(http_res.headers),
@@ -1132,7 +1125,7 @@ class Support(BaseSDK):
1132
1125
 
1133
1126
  if utils.match_response(http_res, "200", "application/json"):
1134
1127
  return operations.ListTicketMessagesResponse(
1135
- result=utils.unmarshal_json_response(
1128
+ result=unmarshal_json_response(
1136
1129
  List[components.TicketMessage], http_res
1137
1130
  ),
1138
1131
  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)