moovio_sdk 0.13.0__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.0.dist-info → moovio_sdk-0.13.2.dist-info}/METADATA +1 -1
  39. {moovio_sdk-0.13.0.dist-info → moovio_sdk-0.13.2.dist-info}/RECORD +40 -39
  40. {moovio_sdk-0.13.0.dist-info → moovio_sdk-0.13.2.dist-info}/WHEEL +0 -0
@@ -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 Mapping, Optional
10
11
 
11
12
 
@@ -88,7 +89,7 @@ class EnrichedProfile(BaseSDK):
88
89
 
89
90
  if utils.match_response(http_res, "200", "application/json"):
90
91
  return operations.GetEnrichmentProfileResponse(
91
- result=utils.unmarshal_json_response(
92
+ result=unmarshal_json_response(
92
93
  components.EnrichedBusinessResponse, http_res
93
94
  ),
94
95
  headers=utils.get_response_headers(http_res.headers),
@@ -186,7 +187,7 @@ class EnrichedProfile(BaseSDK):
186
187
 
187
188
  if utils.match_response(http_res, "200", "application/json"):
188
189
  return operations.GetEnrichmentProfileResponse(
189
- result=utils.unmarshal_json_response(
190
+ result=unmarshal_json_response(
190
191
  components.EnrichedBusinessResponse, http_res
191
192
  ),
192
193
  headers=utils.get_response_headers(http_res.headers),
moovio_sdk/fee_plans.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
10
11
 
11
12
 
@@ -100,7 +101,7 @@ class FeePlans(BaseSDK):
100
101
 
101
102
  if utils.match_response(http_res, "200", "application/json"):
102
103
  return operations.ListFeePlanAgreementsResponse(
103
- result=utils.unmarshal_json_response(
104
+ result=unmarshal_json_response(
104
105
  List[components.FeePlanAgreement], http_res
105
106
  ),
106
107
  headers=utils.get_response_headers(http_res.headers),
@@ -210,7 +211,7 @@ class FeePlans(BaseSDK):
210
211
 
211
212
  if utils.match_response(http_res, "200", "application/json"):
212
213
  return operations.ListFeePlanAgreementsResponse(
213
- result=utils.unmarshal_json_response(
214
+ result=unmarshal_json_response(
214
215
  List[components.FeePlanAgreement], http_res
215
216
  ),
216
217
  headers=utils.get_response_headers(http_res.headers),
@@ -333,18 +334,14 @@ class FeePlans(BaseSDK):
333
334
  response_data: Any = None
334
335
  if utils.match_response(http_res, "201", "application/json"):
335
336
  return operations.CreateFeePlanAgreementsResponse(
336
- result=utils.unmarshal_json_response(
337
- components.FeePlanAgreement, http_res
338
- ),
337
+ result=unmarshal_json_response(components.FeePlanAgreement, http_res),
339
338
  headers=utils.get_response_headers(http_res.headers),
340
339
  )
341
340
  if utils.match_response(http_res, ["400", "409"], "application/json"):
342
- response_data = utils.unmarshal_json_response(
343
- errors.GenericErrorData, http_res
344
- )
341
+ response_data = unmarshal_json_response(errors.GenericErrorData, http_res)
345
342
  raise errors.GenericError(response_data, http_res)
346
343
  if utils.match_response(http_res, "422", "application/json"):
347
- response_data = utils.unmarshal_json_response(
344
+ response_data = unmarshal_json_response(
348
345
  errors.FeePlanAgreementErrorData, http_res
349
346
  )
350
347
  raise errors.FeePlanAgreementError(response_data, http_res)
@@ -466,18 +463,14 @@ class FeePlans(BaseSDK):
466
463
  response_data: Any = None
467
464
  if utils.match_response(http_res, "201", "application/json"):
468
465
  return operations.CreateFeePlanAgreementsResponse(
469
- result=utils.unmarshal_json_response(
470
- components.FeePlanAgreement, http_res
471
- ),
466
+ result=unmarshal_json_response(components.FeePlanAgreement, http_res),
472
467
  headers=utils.get_response_headers(http_res.headers),
473
468
  )
474
469
  if utils.match_response(http_res, ["400", "409"], "application/json"):
475
- response_data = utils.unmarshal_json_response(
476
- errors.GenericErrorData, http_res
477
- )
470
+ response_data = unmarshal_json_response(errors.GenericErrorData, http_res)
478
471
  raise errors.GenericError(response_data, http_res)
479
472
  if utils.match_response(http_res, "422", "application/json"):
480
- response_data = utils.unmarshal_json_response(
473
+ response_data = unmarshal_json_response(
481
474
  errors.FeePlanAgreementErrorData, http_res
482
475
  )
483
476
  raise errors.FeePlanAgreementError(response_data, http_res)
@@ -578,9 +571,7 @@ class FeePlans(BaseSDK):
578
571
 
579
572
  if utils.match_response(http_res, "200", "application/json"):
580
573
  return operations.ListFeePlansResponse(
581
- result=utils.unmarshal_json_response(
582
- List[components.FeePlan], http_res
583
- ),
574
+ result=unmarshal_json_response(List[components.FeePlan], http_res),
584
575
  headers=utils.get_response_headers(http_res.headers),
585
576
  )
586
577
  if utils.match_response(http_res, ["401", "403", "429"], "*"):
@@ -680,9 +671,7 @@ class FeePlans(BaseSDK):
680
671
 
681
672
  if utils.match_response(http_res, "200", "application/json"):
682
673
  return operations.ListFeePlansResponse(
683
- result=utils.unmarshal_json_response(
684
- List[components.FeePlan], http_res
685
- ),
674
+ result=unmarshal_json_response(List[components.FeePlan], http_res),
686
675
  headers=utils.get_response_headers(http_res.headers),
687
676
  )
688
677
  if utils.match_response(http_res, ["401", "403", "429"], "*"):
@@ -796,9 +785,7 @@ class FeePlans(BaseSDK):
796
785
 
797
786
  if utils.match_response(http_res, "200", "application/json"):
798
787
  return operations.RetrieveFeesResponse(
799
- result=utils.unmarshal_json_response(
800
- List[components.IncurredFee], http_res
801
- ),
788
+ result=unmarshal_json_response(List[components.IncurredFee], http_res),
802
789
  headers=utils.get_response_headers(http_res.headers),
803
790
  )
804
791
  if utils.match_response(http_res, ["401", "403", "429"], "*"):
@@ -912,9 +899,7 @@ class FeePlans(BaseSDK):
912
899
 
913
900
  if utils.match_response(http_res, "200", "application/json"):
914
901
  return operations.RetrieveFeesResponse(
915
- result=utils.unmarshal_json_response(
916
- List[components.IncurredFee], http_res
917
- ),
902
+ result=unmarshal_json_response(List[components.IncurredFee], http_res),
918
903
  headers=utils.get_response_headers(http_res.headers),
919
904
  )
920
905
  if utils.match_response(http_res, ["401", "403", "429"], "*"):
@@ -1022,9 +1007,7 @@ class FeePlans(BaseSDK):
1022
1007
 
1023
1008
  if utils.match_response(http_res, "200", "application/json"):
1024
1009
  return operations.ListFeesFetchResponse(
1025
- result=utils.unmarshal_json_response(
1026
- List[components.IncurredFee], http_res
1027
- ),
1010
+ result=unmarshal_json_response(List[components.IncurredFee], http_res),
1028
1011
  headers=utils.get_response_headers(http_res.headers),
1029
1012
  )
1030
1013
  if utils.match_response(http_res, ["401", "403", "429"], "*"):
@@ -1132,9 +1115,7 @@ class FeePlans(BaseSDK):
1132
1115
 
1133
1116
  if utils.match_response(http_res, "200", "application/json"):
1134
1117
  return operations.ListFeesFetchResponse(
1135
- result=utils.unmarshal_json_response(
1136
- List[components.IncurredFee], http_res
1137
- ),
1118
+ result=unmarshal_json_response(List[components.IncurredFee], http_res),
1138
1119
  headers=utils.get_response_headers(http_res.headers),
1139
1120
  )
1140
1121
  if utils.match_response(http_res, ["401", "403", "429"], "*"):
@@ -1233,7 +1214,7 @@ class FeePlans(BaseSDK):
1233
1214
 
1234
1215
  if utils.match_response(http_res, "200", "application/json"):
1235
1216
  return operations.ListPartnerPricingResponse(
1236
- result=utils.unmarshal_json_response(
1217
+ result=unmarshal_json_response(
1237
1218
  List[components.PartnerPricing], http_res
1238
1219
  ),
1239
1220
  headers=utils.get_response_headers(http_res.headers),
@@ -1334,7 +1315,7 @@ class FeePlans(BaseSDK):
1334
1315
 
1335
1316
  if utils.match_response(http_res, "200", "application/json"):
1336
1317
  return operations.ListPartnerPricingResponse(
1337
- result=utils.unmarshal_json_response(
1318
+ result=unmarshal_json_response(
1338
1319
  List[components.PartnerPricing], http_res
1339
1320
  ),
1340
1321
  headers=utils.get_response_headers(http_res.headers),
@@ -1444,7 +1425,7 @@ class FeePlans(BaseSDK):
1444
1425
 
1445
1426
  if utils.match_response(http_res, "200", "application/json"):
1446
1427
  return operations.ListPartnerPricingAgreementsResponse(
1447
- result=utils.unmarshal_json_response(
1428
+ result=unmarshal_json_response(
1448
1429
  List[components.PartnerPricingAgreement], http_res
1449
1430
  ),
1450
1431
  headers=utils.get_response_headers(http_res.headers),
@@ -1554,7 +1535,7 @@ class FeePlans(BaseSDK):
1554
1535
 
1555
1536
  if utils.match_response(http_res, "200", "application/json"):
1556
1537
  return operations.ListPartnerPricingAgreementsResponse(
1557
- result=utils.unmarshal_json_response(
1538
+ result=unmarshal_json_response(
1558
1539
  List[components.PartnerPricingAgreement], http_res
1559
1540
  ),
1560
1541
  headers=utils.get_response_headers(http_res.headers),
moovio_sdk/files.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
 
@@ -127,16 +128,14 @@ class Files(BaseSDK):
127
128
  response_data: Any = None
128
129
  if utils.match_response(http_res, "200", "application/json"):
129
130
  return operations.UploadFileResponse(
130
- result=utils.unmarshal_json_response(components.FileDetails, http_res),
131
+ result=unmarshal_json_response(components.FileDetails, http_res),
131
132
  headers=utils.get_response_headers(http_res.headers),
132
133
  )
133
134
  if utils.match_response(http_res, ["400", "409"], "application/json"):
134
- response_data = utils.unmarshal_json_response(
135
- errors.GenericErrorData, http_res
136
- )
135
+ response_data = unmarshal_json_response(errors.GenericErrorData, http_res)
137
136
  raise errors.GenericError(response_data, http_res)
138
137
  if utils.match_response(http_res, "422", "application/json"):
139
- response_data = utils.unmarshal_json_response(
138
+ response_data = unmarshal_json_response(
140
139
  errors.FileValidationErrorData, http_res
141
140
  )
142
141
  raise errors.FileValidationError(response_data, http_res)
@@ -272,16 +271,14 @@ class Files(BaseSDK):
272
271
  response_data: Any = None
273
272
  if utils.match_response(http_res, "200", "application/json"):
274
273
  return operations.UploadFileResponse(
275
- result=utils.unmarshal_json_response(components.FileDetails, http_res),
274
+ result=unmarshal_json_response(components.FileDetails, http_res),
276
275
  headers=utils.get_response_headers(http_res.headers),
277
276
  )
278
277
  if utils.match_response(http_res, ["400", "409"], "application/json"):
279
- response_data = utils.unmarshal_json_response(
280
- errors.GenericErrorData, http_res
281
- )
278
+ response_data = unmarshal_json_response(errors.GenericErrorData, http_res)
282
279
  raise errors.GenericError(response_data, http_res)
283
280
  if utils.match_response(http_res, "422", "application/json"):
284
- response_data = utils.unmarshal_json_response(
281
+ response_data = unmarshal_json_response(
285
282
  errors.FileValidationErrorData, http_res
286
283
  )
287
284
  raise errors.FileValidationError(response_data, http_res)
@@ -378,9 +375,7 @@ class Files(BaseSDK):
378
375
 
379
376
  if utils.match_response(http_res, "200", "application/json"):
380
377
  return operations.ListFilesResponse(
381
- result=utils.unmarshal_json_response(
382
- List[components.FileDetails], http_res
383
- ),
378
+ result=unmarshal_json_response(List[components.FileDetails], http_res),
384
379
  headers=utils.get_response_headers(http_res.headers),
385
380
  )
386
381
  if utils.match_response(http_res, ["401", "403", "429"], "*"):
@@ -476,9 +471,7 @@ class Files(BaseSDK):
476
471
 
477
472
  if utils.match_response(http_res, "200", "application/json"):
478
473
  return operations.ListFilesResponse(
479
- result=utils.unmarshal_json_response(
480
- List[components.FileDetails], http_res
481
- ),
474
+ result=unmarshal_json_response(List[components.FileDetails], http_res),
482
475
  headers=utils.get_response_headers(http_res.headers),
483
476
  )
484
477
  if utils.match_response(http_res, ["401", "403", "429"], "*"):
@@ -577,7 +570,7 @@ class Files(BaseSDK):
577
570
 
578
571
  if utils.match_response(http_res, "200", "application/json"):
579
572
  return operations.GetFileDetailsResponse(
580
- result=utils.unmarshal_json_response(components.FileDetails, http_res),
573
+ result=unmarshal_json_response(components.FileDetails, http_res),
581
574
  headers=utils.get_response_headers(http_res.headers),
582
575
  )
583
576
  if utils.match_response(http_res, ["401", "403", "404", "429"], "*"):
@@ -676,7 +669,7 @@ class Files(BaseSDK):
676
669
 
677
670
  if utils.match_response(http_res, "200", "application/json"):
678
671
  return operations.GetFileDetailsResponse(
679
- result=utils.unmarshal_json_response(components.FileDetails, http_res),
672
+ result=unmarshal_json_response(components.FileDetails, http_res),
680
673
  headers=utils.get_response_headers(http_res.headers),
681
674
  )
682
675
  if utils.match_response(http_res, ["401", "403", "404", "429"], "*"):
moovio_sdk/industries.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 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 Mapping, Optional, Union, cast
10
11
 
11
12
 
@@ -90,9 +91,7 @@ class Industries(BaseSDK):
90
91
 
91
92
  if utils.match_response(http_res, "200", "application/json"):
92
93
  return operations.ListIndustriesResponse(
93
- result=utils.unmarshal_json_response(
94
- components.EnrichedIndustries, http_res
95
- ),
94
+ result=unmarshal_json_response(components.EnrichedIndustries, http_res),
96
95
  headers=utils.get_response_headers(http_res.headers),
97
96
  )
98
97
  if utils.match_response(http_res, ["401", "403", "429"], "*"):
@@ -190,9 +189,7 @@ class Industries(BaseSDK):
190
189
 
191
190
  if utils.match_response(http_res, "200", "application/json"):
192
191
  return operations.ListIndustriesResponse(
193
- result=utils.unmarshal_json_response(
194
- components.EnrichedIndustries, http_res
195
- ),
192
+ result=unmarshal_json_response(components.EnrichedIndustries, http_res),
196
193
  headers=utils.get_response_headers(http_res.headers),
197
194
  )
198
195
  if utils.match_response(http_res, ["401", "403", "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 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, Mapping, Optional
10
11
 
11
12
 
@@ -98,7 +99,7 @@ class Institutions(BaseSDK):
98
99
 
99
100
  if utils.match_response(http_res, "200", "application/json"):
100
101
  return operations.SearchInstitutionsResponse(
101
- result=utils.unmarshal_json_response(
102
+ result=unmarshal_json_response(
102
103
  components.InstitutionsSearchResponse, http_res
103
104
  ),
104
105
  headers=utils.get_response_headers(http_res.headers),
@@ -206,7 +207,7 @@ class Institutions(BaseSDK):
206
207
 
207
208
  if utils.match_response(http_res, "200", "application/json"):
208
209
  return operations.SearchInstitutionsResponse(
209
- result=utils.unmarshal_json_response(
210
+ result=unmarshal_json_response(
210
211
  components.InstitutionsSearchResponse, http_res
211
212
  ),
212
213
  headers=utils.get_response_headers(http_res.headers),
@@ -314,15 +315,13 @@ class Institutions(BaseSDK):
314
315
  response_data: Any = None
315
316
  if utils.match_response(http_res, "200", "application/json"):
316
317
  return operations.ListInstitutionsResponse(
317
- result=utils.unmarshal_json_response(
318
+ result=unmarshal_json_response(
318
319
  components.FinancialInstitutions, http_res
319
320
  ),
320
321
  headers=utils.get_response_headers(http_res.headers),
321
322
  )
322
323
  if utils.match_response(http_res, "400", "application/json"):
323
- response_data = utils.unmarshal_json_response(
324
- errors.GenericErrorData, http_res
325
- )
324
+ response_data = unmarshal_json_response(errors.GenericErrorData, http_res)
326
325
  raise errors.GenericError(response_data, http_res)
327
326
  if utils.match_response(http_res, ["401", "403", "429"], "*"):
328
327
  http_res_text = utils.stream_to_text(http_res)
@@ -427,15 +426,13 @@ class Institutions(BaseSDK):
427
426
  response_data: Any = None
428
427
  if utils.match_response(http_res, "200", "application/json"):
429
428
  return operations.ListInstitutionsResponse(
430
- result=utils.unmarshal_json_response(
429
+ result=unmarshal_json_response(
431
430
  components.FinancialInstitutions, http_res
432
431
  ),
433
432
  headers=utils.get_response_headers(http_res.headers),
434
433
  )
435
434
  if utils.match_response(http_res, "400", "application/json"):
436
- response_data = utils.unmarshal_json_response(
437
- errors.GenericErrorData, http_res
438
- )
435
+ response_data = unmarshal_json_response(errors.GenericErrorData, http_res)
439
436
  raise errors.GenericError(response_data, http_res)
440
437
  if utils.match_response(http_res, ["401", "403", "429"], "*"):
441
438
  http_res_text = await utils.stream_to_text_async(http_res)
@@ -7,6 +7,7 @@ from moovio_sdk._hooks import HookContext
7
7
  from moovio_sdk.models import components, errors, operations
8
8
  from moovio_sdk.types import OptionalNullable, UNSET
9
9
  from moovio_sdk.utils import get_security_from_env
10
+ from moovio_sdk.utils.unmarshal_json_response import unmarshal_json_response
10
11
  from typing import List, Mapping, Optional
11
12
 
12
13
 
@@ -107,7 +108,7 @@ class IssuingTransactions(BaseSDK):
107
108
 
108
109
  if utils.match_response(http_res, "200", "application/json"):
109
110
  return operations.ListIssuedCardAuthorizationsResponse(
110
- result=utils.unmarshal_json_response(
111
+ result=unmarshal_json_response(
111
112
  List[components.IssuedCardAuthorization], http_res
112
113
  ),
113
114
  headers=utils.get_response_headers(http_res.headers),
@@ -223,7 +224,7 @@ class IssuingTransactions(BaseSDK):
223
224
 
224
225
  if utils.match_response(http_res, "200", "application/json"):
225
226
  return operations.ListIssuedCardAuthorizationsResponse(
226
- result=utils.unmarshal_json_response(
227
+ result=unmarshal_json_response(
227
228
  List[components.IssuedCardAuthorization], http_res
228
229
  ),
229
230
  headers=utils.get_response_headers(http_res.headers),
@@ -324,7 +325,7 @@ class IssuingTransactions(BaseSDK):
324
325
 
325
326
  if utils.match_response(http_res, "200", "application/json"):
326
327
  return operations.GetIssuedCardAuthorizationResponse(
327
- result=utils.unmarshal_json_response(
328
+ result=unmarshal_json_response(
328
329
  components.IssuedCardAuthorization, http_res
329
330
  ),
330
331
  headers=utils.get_response_headers(http_res.headers),
@@ -425,7 +426,7 @@ class IssuingTransactions(BaseSDK):
425
426
 
426
427
  if utils.match_response(http_res, "200", "application/json"):
427
428
  return operations.GetIssuedCardAuthorizationResponse(
428
- result=utils.unmarshal_json_response(
429
+ result=unmarshal_json_response(
429
430
  components.IssuedCardAuthorization, http_res
430
431
  ),
431
432
  headers=utils.get_response_headers(http_res.headers),
@@ -532,7 +533,7 @@ class IssuingTransactions(BaseSDK):
532
533
 
533
534
  if utils.match_response(http_res, "200", "application/json"):
534
535
  return operations.ListIssuedCardAuthorizationEventsResponse(
535
- result=utils.unmarshal_json_response(
536
+ result=unmarshal_json_response(
536
537
  List[components.IssuedCardAuthorizationEvent], http_res
537
538
  ),
538
539
  headers=utils.get_response_headers(http_res.headers),
@@ -639,7 +640,7 @@ class IssuingTransactions(BaseSDK):
639
640
 
640
641
  if utils.match_response(http_res, "200", "application/json"):
641
642
  return operations.ListIssuedCardAuthorizationEventsResponse(
642
- result=utils.unmarshal_json_response(
643
+ result=unmarshal_json_response(
643
644
  List[components.IssuedCardAuthorizationEvent], http_res
644
645
  ),
645
646
  headers=utils.get_response_headers(http_res.headers),
@@ -752,7 +753,7 @@ class IssuingTransactions(BaseSDK):
752
753
 
753
754
  if utils.match_response(http_res, "200", "application/json"):
754
755
  return operations.ListIssuedCardTransactionsResponse(
755
- result=utils.unmarshal_json_response(
756
+ result=unmarshal_json_response(
756
757
  List[components.IssuedCardTransaction], http_res
757
758
  ),
758
759
  headers=utils.get_response_headers(http_res.headers),
@@ -865,7 +866,7 @@ class IssuingTransactions(BaseSDK):
865
866
 
866
867
  if utils.match_response(http_res, "200", "application/json"):
867
868
  return operations.ListIssuedCardTransactionsResponse(
868
- result=utils.unmarshal_json_response(
869
+ result=unmarshal_json_response(
869
870
  List[components.IssuedCardTransaction], http_res
870
871
  ),
871
872
  headers=utils.get_response_headers(http_res.headers),
@@ -966,7 +967,7 @@ class IssuingTransactions(BaseSDK):
966
967
 
967
968
  if utils.match_response(http_res, "200", "application/json"):
968
969
  return operations.GetIssuedCardTransactionResponse(
969
- result=utils.unmarshal_json_response(
970
+ result=unmarshal_json_response(
970
971
  components.IssuedCardTransaction, http_res
971
972
  ),
972
973
  headers=utils.get_response_headers(http_res.headers),
@@ -1067,7 +1068,7 @@ class IssuingTransactions(BaseSDK):
1067
1068
 
1068
1069
  if utils.match_response(http_res, "200", "application/json"):
1069
1070
  return operations.GetIssuedCardTransactionResponse(
1070
- result=utils.unmarshal_json_response(
1071
+ result=unmarshal_json_response(
1071
1072
  components.IssuedCardTransaction, http_res
1072
1073
  ),
1073
1074
  headers=utils.get_response_headers(http_res.headers),
@@ -8,21 +8,27 @@ from moovio_sdk.types import (
8
8
  UNSET,
9
9
  UNSET_SENTINEL,
10
10
  )
11
+ import pydantic
11
12
  from pydantic import model_serializer
12
- from typing import Dict
13
- from typing_extensions import NotRequired, TypedDict
13
+ from typing import Dict, Optional
14
+ from typing_extensions import Annotated, NotRequired, TypedDict
14
15
 
15
16
 
16
17
  class PatchTransferTypedDict(TypedDict):
17
18
  metadata: NotRequired[Nullable[Dict[str, str]]]
19
+ foreign_id: NotRequired[str]
20
+ r"""Optional alias from a foreign/external system which can be used to reference this resource."""
18
21
 
19
22
 
20
23
  class PatchTransfer(BaseModel):
21
24
  metadata: OptionalNullable[Dict[str, str]] = UNSET
22
25
 
26
+ foreign_id: Annotated[Optional[str], pydantic.Field(alias="foreignID")] = None
27
+ r"""Optional alias from a foreign/external system which can be used to reference this resource."""
28
+
23
29
  @model_serializer(mode="wrap")
24
30
  def serialize_model(self, handler):
25
- optional_fields = ["metadata"]
31
+ optional_fields = ["metadata", "foreignID"]
26
32
  nullable_fields = ["metadata"]
27
33
  null_default_fields = []
28
34
 
moovio_sdk/onboarding.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 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
 
@@ -123,18 +124,14 @@ class Onboarding(BaseSDK):
123
124
  response_data: Any = None
124
125
  if utils.match_response(http_res, "200", "application/json"):
125
126
  return operations.CreateOnboardingInviteResponse(
126
- result=utils.unmarshal_json_response(
127
- components.OnboardingInvite, http_res
128
- ),
127
+ result=unmarshal_json_response(components.OnboardingInvite, http_res),
129
128
  headers=utils.get_response_headers(http_res.headers),
130
129
  )
131
130
  if utils.match_response(http_res, ["400", "409"], "application/json"):
132
- response_data = utils.unmarshal_json_response(
133
- errors.GenericErrorData, http_res
134
- )
131
+ response_data = unmarshal_json_response(errors.GenericErrorData, http_res)
135
132
  raise errors.GenericError(response_data, http_res)
136
133
  if utils.match_response(http_res, "422", "application/json"):
137
- response_data = utils.unmarshal_json_response(
134
+ response_data = unmarshal_json_response(
138
135
  errors.OnboardingInviteErrorData, http_res
139
136
  )
140
137
  raise errors.OnboardingInviteError(response_data, http_res)
@@ -266,18 +263,14 @@ class Onboarding(BaseSDK):
266
263
  response_data: Any = None
267
264
  if utils.match_response(http_res, "200", "application/json"):
268
265
  return operations.CreateOnboardingInviteResponse(
269
- result=utils.unmarshal_json_response(
270
- components.OnboardingInvite, http_res
271
- ),
266
+ result=unmarshal_json_response(components.OnboardingInvite, http_res),
272
267
  headers=utils.get_response_headers(http_res.headers),
273
268
  )
274
269
  if utils.match_response(http_res, ["400", "409"], "application/json"):
275
- response_data = utils.unmarshal_json_response(
276
- errors.GenericErrorData, http_res
277
- )
270
+ response_data = unmarshal_json_response(errors.GenericErrorData, http_res)
278
271
  raise errors.GenericError(response_data, http_res)
279
272
  if utils.match_response(http_res, "422", "application/json"):
280
- response_data = utils.unmarshal_json_response(
273
+ response_data = unmarshal_json_response(
281
274
  errors.OnboardingInviteErrorData, http_res
282
275
  )
283
276
  raise errors.OnboardingInviteError(response_data, http_res)
@@ -377,7 +370,7 @@ class Onboarding(BaseSDK):
377
370
 
378
371
  if utils.match_response(http_res, "200", "application/json"):
379
372
  return operations.ListOnboardingInvitesResponse(
380
- result=utils.unmarshal_json_response(
373
+ result=unmarshal_json_response(
381
374
  List[components.OnboardingInvite], http_res
382
375
  ),
383
376
  headers=utils.get_response_headers(http_res.headers),
@@ -478,7 +471,7 @@ class Onboarding(BaseSDK):
478
471
 
479
472
  if utils.match_response(http_res, "200", "application/json"):
480
473
  return operations.ListOnboardingInvitesResponse(
481
- result=utils.unmarshal_json_response(
474
+ result=unmarshal_json_response(
482
475
  List[components.OnboardingInvite], http_res
483
476
  ),
484
477
  headers=utils.get_response_headers(http_res.headers),
@@ -576,9 +569,7 @@ class Onboarding(BaseSDK):
576
569
 
577
570
  if utils.match_response(http_res, "200", "application/json"):
578
571
  return operations.GetOnboardingInviteResponse(
579
- result=utils.unmarshal_json_response(
580
- components.OnboardingInvite, http_res
581
- ),
572
+ result=unmarshal_json_response(components.OnboardingInvite, http_res),
582
573
  headers=utils.get_response_headers(http_res.headers),
583
574
  )
584
575
  if utils.match_response(http_res, ["401", "403", "404", "429"], "*"):
@@ -674,9 +665,7 @@ class Onboarding(BaseSDK):
674
665
 
675
666
  if utils.match_response(http_res, "200", "application/json"):
676
667
  return operations.GetOnboardingInviteResponse(
677
- result=utils.unmarshal_json_response(
678
- components.OnboardingInvite, http_res
679
- ),
668
+ result=unmarshal_json_response(components.OnboardingInvite, http_res),
680
669
  headers=utils.get_response_headers(http_res.headers),
681
670
  )
682
671
  if utils.match_response(http_res, ["401", "403", "404", "429"], "*"):