moovio_sdk 0.9.0__py3-none-any.whl → 0.11.0__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 (50) hide show
  1. moovio_sdk/_hooks/types.py +7 -0
  2. moovio_sdk/_version.py +3 -3
  3. moovio_sdk/account_terminal_applications.py +8 -0
  4. moovio_sdk/accounts.py +18 -0
  5. moovio_sdk/adjustments.py +4 -0
  6. moovio_sdk/apple_pay.py +10 -0
  7. moovio_sdk/authentication.py +4 -0
  8. moovio_sdk/avatars.py +2 -0
  9. moovio_sdk/bank_accounts.py +18 -0
  10. moovio_sdk/basesdk.py +12 -20
  11. moovio_sdk/branding.py +8 -0
  12. moovio_sdk/capabilities.py +8 -0
  13. moovio_sdk/card_issuing.py +10 -0
  14. moovio_sdk/cards.py +10 -0
  15. moovio_sdk/disputes.py +22 -0
  16. moovio_sdk/end_to_end_encryption.py +4 -0
  17. moovio_sdk/enriched_address.py +2 -0
  18. moovio_sdk/enriched_profile.py +2 -0
  19. moovio_sdk/fee_plans.py +14 -0
  20. moovio_sdk/files.py +6 -0
  21. moovio_sdk/httpclient.py +7 -37
  22. moovio_sdk/industries.py +2 -0
  23. moovio_sdk/institutions.py +2 -0
  24. moovio_sdk/issuing_transactions.py +10 -0
  25. moovio_sdk/models/__init__.py +0 -1
  26. moovio_sdk/models/components/__init__.py +1804 -845
  27. moovio_sdk/models/components/sweep.py +7 -1
  28. moovio_sdk/models/components/sweepsubtotal.py +27 -0
  29. moovio_sdk/models/errors/__init__.py +193 -77
  30. moovio_sdk/models/internal/__init__.py +35 -1
  31. moovio_sdk/models/operations/__init__.py +1908 -1073
  32. moovio_sdk/onboarding.py +8 -0
  33. moovio_sdk/payment_links.py +12 -0
  34. moovio_sdk/payment_methods.py +4 -0
  35. moovio_sdk/ping.py +2 -0
  36. moovio_sdk/receipts.py +4 -0
  37. moovio_sdk/representatives.py +10 -0
  38. moovio_sdk/scheduling.py +12 -0
  39. moovio_sdk/sdk.py +145 -107
  40. moovio_sdk/sdkconfiguration.py +0 -7
  41. moovio_sdk/sweeps.py +12 -0
  42. moovio_sdk/terminal_applications.py +8 -0
  43. moovio_sdk/transfers.py +22 -0
  44. moovio_sdk/underwriting.py +4 -0
  45. moovio_sdk/utils/__init__.py +131 -46
  46. moovio_sdk/wallet_transactions.py +4 -0
  47. moovio_sdk/wallets.py +4 -0
  48. {moovio_sdk-0.9.0.dist-info → moovio_sdk-0.11.0.dist-info}/METADATA +46 -376
  49. {moovio_sdk-0.9.0.dist-info → moovio_sdk-0.11.0.dist-info}/RECORD +50 -49
  50. {moovio_sdk-0.9.0.dist-info → moovio_sdk-0.11.0.dist-info}/WHEEL +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: moovio_sdk
3
- Version: 0.9.0
3
+ Version: 0.11.0
4
4
  Summary: Python Client SDK Generated by Speakeasy.
5
5
  Author: Speakeasy
6
6
  Requires-Python: >=3.9.2
@@ -9,6 +9,7 @@ Classifier: Programming Language :: Python :: 3.10
9
9
  Classifier: Programming Language :: Python :: 3.11
10
10
  Classifier: Programming Language :: Python :: 3.12
11
11
  Classifier: Programming Language :: Python :: 3.13
12
+ Requires-Dist: httpcore (>=1.0.9)
12
13
  Requires-Dist: httpx (>=0.28.1)
13
14
  Requires-Dist: pydantic (>=2.11.2)
14
15
  Project-URL: Documentation, https://docs.moov.io/
@@ -135,6 +136,7 @@ Generally, the SDK will work well with most IDEs out of the box. However, when u
135
136
  # Synchronous Example
136
137
  from moovio_sdk import Moov
137
138
  from moovio_sdk.models import components
139
+ from moovio_sdk.utils import parse_datetime
138
140
 
139
141
 
140
142
  with Moov(
@@ -145,64 +147,16 @@ with Moov(
145
147
  ) as moov:
146
148
 
147
149
  res = moov.accounts.create(account_type=components.CreateAccountType.BUSINESS, profile=components.CreateProfile(
148
- individual=components.CreateIndividualProfile(
149
- name=components.IndividualName(
150
- first_name="Jordan",
151
- middle_name="Reese",
152
- last_name="Lee",
153
- suffix="Jr",
154
- ),
155
- phone=components.PhoneNumber(
156
- number="8185551212",
157
- country_code="1",
158
- ),
159
- email="jordan.lee@classbooker.dev",
160
- address=components.Address(
161
- address_line1="123 Main Street",
162
- address_line2="Apt 302",
163
- city="Boulder",
164
- state_or_province="CO",
165
- postal_code="80301",
166
- country="US",
167
- ),
168
- birth_date=components.BirthDate(
169
- day=9,
170
- month=11,
171
- year=1989,
172
- ),
173
- ),
174
150
  business=components.CreateBusinessProfile(
175
- legal_business_name="Classbooker, LLC",
176
- business_type=components.BusinessType.LLC,
177
- address=components.Address(
178
- address_line1="123 Main Street",
179
- address_line2="Apt 302",
180
- city="Boulder",
181
- state_or_province="CO",
182
- postal_code="80301",
183
- country="US",
184
- ),
185
- phone=components.PhoneNumber(
186
- number="8185551212",
187
- country_code="1",
188
- ),
189
- email="jordan.lee@classbooker.dev",
190
- description="Local fitness gym paying out instructors",
191
- tax_id=components.TaxID(
192
- ein=components.Ein(
193
- number="12-3456789",
194
- ),
195
- ),
196
- industry_codes=components.IndustryCodes(
197
- naics="713940",
198
- sic="7991",
199
- mcc="7997",
200
- ),
151
+ legal_business_name="Whole Body Fitness LLC",
201
152
  ),
202
153
  ), metadata={
203
154
  "optional": "metadata",
204
155
  }, terms_of_service={
205
- "token": "kgT1uxoMAk7QKuyJcmQE8nqW_HjpyuXBabiXPi6T83fUQoxsyWYPcYzuHQTqrt7YRp4gCwyDQvb6U5REM9Pgl2EloCe35t-eiMAbUWGo3Kerxme6aqNcKrP_6-v0MTXViOEJ96IBxPFTvMV7EROI2dq3u4e-x4BbGSCedAX-ViAQND6hcreCDXwrO6sHuzh5Xi2IzSqZHxaovnWEboaxuZKRJkA3dsFID6fzitMpm2qrOh4",
156
+ "accepted_date": parse_datetime("2023-05-21T04:53:54.554Z"),
157
+ "accepted_ip": "172.217.2.46",
158
+ "accepted_user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.71 Safari/537.36",
159
+ "accepted_domain": "https://esteemed-velocity.net",
206
160
  }, customer_support={
207
161
  "phone": {
208
162
  "number": "8185551212",
@@ -238,6 +192,7 @@ The same SDK client can also be used to make asychronous requests by importing a
238
192
  import asyncio
239
193
  from moovio_sdk import Moov
240
194
  from moovio_sdk.models import components
195
+ from moovio_sdk.utils import parse_datetime
241
196
 
242
197
  async def main():
243
198
 
@@ -249,64 +204,16 @@ async def main():
249
204
  ) as moov:
250
205
 
251
206
  res = await moov.accounts.create_async(account_type=components.CreateAccountType.BUSINESS, profile=components.CreateProfile(
252
- individual=components.CreateIndividualProfile(
253
- name=components.IndividualName(
254
- first_name="Jordan",
255
- middle_name="Reese",
256
- last_name="Lee",
257
- suffix="Jr",
258
- ),
259
- phone=components.PhoneNumber(
260
- number="8185551212",
261
- country_code="1",
262
- ),
263
- email="jordan.lee@classbooker.dev",
264
- address=components.Address(
265
- address_line1="123 Main Street",
266
- address_line2="Apt 302",
267
- city="Boulder",
268
- state_or_province="CO",
269
- postal_code="80301",
270
- country="US",
271
- ),
272
- birth_date=components.BirthDate(
273
- day=9,
274
- month=11,
275
- year=1989,
276
- ),
277
- ),
278
207
  business=components.CreateBusinessProfile(
279
- legal_business_name="Classbooker, LLC",
280
- business_type=components.BusinessType.LLC,
281
- address=components.Address(
282
- address_line1="123 Main Street",
283
- address_line2="Apt 302",
284
- city="Boulder",
285
- state_or_province="CO",
286
- postal_code="80301",
287
- country="US",
288
- ),
289
- phone=components.PhoneNumber(
290
- number="8185551212",
291
- country_code="1",
292
- ),
293
- email="jordan.lee@classbooker.dev",
294
- description="Local fitness gym paying out instructors",
295
- tax_id=components.TaxID(
296
- ein=components.Ein(
297
- number="12-3456789",
298
- ),
299
- ),
300
- industry_codes=components.IndustryCodes(
301
- naics="713940",
302
- sic="7991",
303
- mcc="7997",
304
- ),
208
+ legal_business_name="Whole Body Fitness LLC",
305
209
  ),
306
210
  ), metadata={
307
211
  "optional": "metadata",
308
212
  }, terms_of_service={
309
- "token": "kgT1uxoMAk7QKuyJcmQE8nqW_HjpyuXBabiXPi6T83fUQoxsyWYPcYzuHQTqrt7YRp4gCwyDQvb6U5REM9Pgl2EloCe35t-eiMAbUWGo3Kerxme6aqNcKrP_6-v0MTXViOEJ96IBxPFTvMV7EROI2dq3u4e-x4BbGSCedAX-ViAQND6hcreCDXwrO6sHuzh5Xi2IzSqZHxaovnWEboaxuZKRJkA3dsFID6fzitMpm2qrOh4",
213
+ "accepted_date": parse_datetime("2024-08-23T23:57:42.538Z"),
214
+ "accepted_ip": "172.217.2.46",
215
+ "accepted_user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.71 Safari/537.36",
216
+ "accepted_domain": "https://flowery-marketplace.com",
310
217
  }, customer_support={
311
218
  "phone": {
312
219
  "number": "8185551212",
@@ -352,6 +259,7 @@ You can set the security parameters through the `security` optional parameter wh
352
259
  ```python
353
260
  from moovio_sdk import Moov
354
261
  from moovio_sdk.models import components
262
+ from moovio_sdk.utils import parse_datetime
355
263
 
356
264
 
357
265
  with Moov(
@@ -362,64 +270,16 @@ with Moov(
362
270
  ) as moov:
363
271
 
364
272
  res = moov.accounts.create(account_type=components.CreateAccountType.BUSINESS, profile=components.CreateProfile(
365
- individual=components.CreateIndividualProfile(
366
- name=components.IndividualName(
367
- first_name="Jordan",
368
- middle_name="Reese",
369
- last_name="Lee",
370
- suffix="Jr",
371
- ),
372
- phone=components.PhoneNumber(
373
- number="8185551212",
374
- country_code="1",
375
- ),
376
- email="jordan.lee@classbooker.dev",
377
- address=components.Address(
378
- address_line1="123 Main Street",
379
- address_line2="Apt 302",
380
- city="Boulder",
381
- state_or_province="CO",
382
- postal_code="80301",
383
- country="US",
384
- ),
385
- birth_date=components.BirthDate(
386
- day=9,
387
- month=11,
388
- year=1989,
389
- ),
390
- ),
391
273
  business=components.CreateBusinessProfile(
392
- legal_business_name="Classbooker, LLC",
393
- business_type=components.BusinessType.LLC,
394
- address=components.Address(
395
- address_line1="123 Main Street",
396
- address_line2="Apt 302",
397
- city="Boulder",
398
- state_or_province="CO",
399
- postal_code="80301",
400
- country="US",
401
- ),
402
- phone=components.PhoneNumber(
403
- number="8185551212",
404
- country_code="1",
405
- ),
406
- email="jordan.lee@classbooker.dev",
407
- description="Local fitness gym paying out instructors",
408
- tax_id=components.TaxID(
409
- ein=components.Ein(
410
- number="12-3456789",
411
- ),
412
- ),
413
- industry_codes=components.IndustryCodes(
414
- naics="713940",
415
- sic="7991",
416
- mcc="7997",
417
- ),
274
+ legal_business_name="Whole Body Fitness LLC",
418
275
  ),
419
276
  ), metadata={
420
277
  "optional": "metadata",
421
278
  }, terms_of_service={
422
- "token": "kgT1uxoMAk7QKuyJcmQE8nqW_HjpyuXBabiXPi6T83fUQoxsyWYPcYzuHQTqrt7YRp4gCwyDQvb6U5REM9Pgl2EloCe35t-eiMAbUWGo3Kerxme6aqNcKrP_6-v0MTXViOEJ96IBxPFTvMV7EROI2dq3u4e-x4BbGSCedAX-ViAQND6hcreCDXwrO6sHuzh5Xi2IzSqZHxaovnWEboaxuZKRJkA3dsFID6fzitMpm2qrOh4",
279
+ "accepted_date": parse_datetime("2023-05-21T04:53:54.554Z"),
280
+ "accepted_ip": "172.217.2.46",
281
+ "accepted_user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.71 Safari/537.36",
282
+ "accepted_domain": "https://esteemed-velocity.net",
423
283
  }, customer_support={
424
284
  "phone": {
425
285
  "number": "8185551212",
@@ -1321,10 +1181,10 @@ with Moov(
1321
1181
  ),
1322
1182
  ) as moov:
1323
1183
 
1324
- res = moov.disputes.upload_evidence_file(account_id="190d267b-ea77-4231-9939-ba89cb7df82b", dispute_id="94aabddc-d855-40e6-ab0a-1e547e0dcc9d", file={
1184
+ res = moov.disputes.upload_evidence_file(account_id="c09fd2f8-75fb-4ed9-be03-f8565d3ddc67", dispute_id="ad27f84d-00b1-4db0-8cf5-be001d71251d", file={
1325
1185
  "file_name": "example.file",
1326
1186
  "content": open("example.file", "rb"),
1327
- }, evidence_type=components.EvidenceType.CUSTOMER_COMMUNICATION)
1187
+ }, evidence_type=components.EvidenceType.CANCELATION_POLICY)
1328
1188
 
1329
1189
  # Handle response
1330
1190
  print(res)
@@ -1341,7 +1201,7 @@ To change the default retry strategy for a single API call, simply provide a `Re
1341
1201
  ```python
1342
1202
  from moovio_sdk import Moov
1343
1203
  from moovio_sdk.models import components
1344
- from moovio_sdk.utils import BackoffStrategy, RetryConfig
1204
+ from moovio_sdk.utils import BackoffStrategy, RetryConfig, parse_datetime
1345
1205
 
1346
1206
 
1347
1207
  with Moov(
@@ -1352,64 +1212,16 @@ with Moov(
1352
1212
  ) as moov:
1353
1213
 
1354
1214
  res = moov.accounts.create(account_type=components.CreateAccountType.BUSINESS, profile=components.CreateProfile(
1355
- individual=components.CreateIndividualProfile(
1356
- name=components.IndividualName(
1357
- first_name="Jordan",
1358
- middle_name="Reese",
1359
- last_name="Lee",
1360
- suffix="Jr",
1361
- ),
1362
- phone=components.PhoneNumber(
1363
- number="8185551212",
1364
- country_code="1",
1365
- ),
1366
- email="jordan.lee@classbooker.dev",
1367
- address=components.Address(
1368
- address_line1="123 Main Street",
1369
- address_line2="Apt 302",
1370
- city="Boulder",
1371
- state_or_province="CO",
1372
- postal_code="80301",
1373
- country="US",
1374
- ),
1375
- birth_date=components.BirthDate(
1376
- day=9,
1377
- month=11,
1378
- year=1989,
1379
- ),
1380
- ),
1381
1215
  business=components.CreateBusinessProfile(
1382
- legal_business_name="Classbooker, LLC",
1383
- business_type=components.BusinessType.LLC,
1384
- address=components.Address(
1385
- address_line1="123 Main Street",
1386
- address_line2="Apt 302",
1387
- city="Boulder",
1388
- state_or_province="CO",
1389
- postal_code="80301",
1390
- country="US",
1391
- ),
1392
- phone=components.PhoneNumber(
1393
- number="8185551212",
1394
- country_code="1",
1395
- ),
1396
- email="jordan.lee@classbooker.dev",
1397
- description="Local fitness gym paying out instructors",
1398
- tax_id=components.TaxID(
1399
- ein=components.Ein(
1400
- number="12-3456789",
1401
- ),
1402
- ),
1403
- industry_codes=components.IndustryCodes(
1404
- naics="713940",
1405
- sic="7991",
1406
- mcc="7997",
1407
- ),
1216
+ legal_business_name="Whole Body Fitness LLC",
1408
1217
  ),
1409
1218
  ), metadata={
1410
1219
  "optional": "metadata",
1411
1220
  }, terms_of_service={
1412
- "token": "kgT1uxoMAk7QKuyJcmQE8nqW_HjpyuXBabiXPi6T83fUQoxsyWYPcYzuHQTqrt7YRp4gCwyDQvb6U5REM9Pgl2EloCe35t-eiMAbUWGo3Kerxme6aqNcKrP_6-v0MTXViOEJ96IBxPFTvMV7EROI2dq3u4e-x4BbGSCedAX-ViAQND6hcreCDXwrO6sHuzh5Xi2IzSqZHxaovnWEboaxuZKRJkA3dsFID6fzitMpm2qrOh4",
1221
+ "accepted_date": parse_datetime("2023-05-21T04:53:54.554Z"),
1222
+ "accepted_ip": "172.217.2.46",
1223
+ "accepted_user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.71 Safari/537.36",
1224
+ "accepted_domain": "https://esteemed-velocity.net",
1413
1225
  }, customer_support={
1414
1226
  "phone": {
1415
1227
  "number": "8185551212",
@@ -1443,7 +1255,7 @@ If you'd like to override the default retry strategy for all operations that sup
1443
1255
  ```python
1444
1256
  from moovio_sdk import Moov
1445
1257
  from moovio_sdk.models import components
1446
- from moovio_sdk.utils import BackoffStrategy, RetryConfig
1258
+ from moovio_sdk.utils import BackoffStrategy, RetryConfig, parse_datetime
1447
1259
 
1448
1260
 
1449
1261
  with Moov(
@@ -1455,64 +1267,16 @@ with Moov(
1455
1267
  ) as moov:
1456
1268
 
1457
1269
  res = moov.accounts.create(account_type=components.CreateAccountType.BUSINESS, profile=components.CreateProfile(
1458
- individual=components.CreateIndividualProfile(
1459
- name=components.IndividualName(
1460
- first_name="Jordan",
1461
- middle_name="Reese",
1462
- last_name="Lee",
1463
- suffix="Jr",
1464
- ),
1465
- phone=components.PhoneNumber(
1466
- number="8185551212",
1467
- country_code="1",
1468
- ),
1469
- email="jordan.lee@classbooker.dev",
1470
- address=components.Address(
1471
- address_line1="123 Main Street",
1472
- address_line2="Apt 302",
1473
- city="Boulder",
1474
- state_or_province="CO",
1475
- postal_code="80301",
1476
- country="US",
1477
- ),
1478
- birth_date=components.BirthDate(
1479
- day=9,
1480
- month=11,
1481
- year=1989,
1482
- ),
1483
- ),
1484
1270
  business=components.CreateBusinessProfile(
1485
- legal_business_name="Classbooker, LLC",
1486
- business_type=components.BusinessType.LLC,
1487
- address=components.Address(
1488
- address_line1="123 Main Street",
1489
- address_line2="Apt 302",
1490
- city="Boulder",
1491
- state_or_province="CO",
1492
- postal_code="80301",
1493
- country="US",
1494
- ),
1495
- phone=components.PhoneNumber(
1496
- number="8185551212",
1497
- country_code="1",
1498
- ),
1499
- email="jordan.lee@classbooker.dev",
1500
- description="Local fitness gym paying out instructors",
1501
- tax_id=components.TaxID(
1502
- ein=components.Ein(
1503
- number="12-3456789",
1504
- ),
1505
- ),
1506
- industry_codes=components.IndustryCodes(
1507
- naics="713940",
1508
- sic="7991",
1509
- mcc="7997",
1510
- ),
1271
+ legal_business_name="Whole Body Fitness LLC",
1511
1272
  ),
1512
1273
  ), metadata={
1513
1274
  "optional": "metadata",
1514
1275
  }, terms_of_service={
1515
- "token": "kgT1uxoMAk7QKuyJcmQE8nqW_HjpyuXBabiXPi6T83fUQoxsyWYPcYzuHQTqrt7YRp4gCwyDQvb6U5REM9Pgl2EloCe35t-eiMAbUWGo3Kerxme6aqNcKrP_6-v0MTXViOEJ96IBxPFTvMV7EROI2dq3u4e-x4BbGSCedAX-ViAQND6hcreCDXwrO6sHuzh5Xi2IzSqZHxaovnWEboaxuZKRJkA3dsFID6fzitMpm2qrOh4",
1276
+ "accepted_date": parse_datetime("2023-05-21T04:53:54.554Z"),
1277
+ "accepted_ip": "172.217.2.46",
1278
+ "accepted_user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.71 Safari/537.36",
1279
+ "accepted_domain": "https://esteemed-velocity.net",
1516
1280
  }, customer_support={
1517
1281
  "phone": {
1518
1282
  "number": "8185551212",
@@ -1569,6 +1333,7 @@ When custom error responses are specified for an operation, the SDK may also rai
1569
1333
  ```python
1570
1334
  from moovio_sdk import Moov
1571
1335
  from moovio_sdk.models import components, errors
1336
+ from moovio_sdk.utils import parse_datetime
1572
1337
 
1573
1338
 
1574
1339
  with Moov(
@@ -1581,64 +1346,16 @@ with Moov(
1581
1346
  try:
1582
1347
 
1583
1348
  res = moov.accounts.create(account_type=components.CreateAccountType.BUSINESS, profile=components.CreateProfile(
1584
- individual=components.CreateIndividualProfile(
1585
- name=components.IndividualName(
1586
- first_name="Jordan",
1587
- middle_name="Reese",
1588
- last_name="Lee",
1589
- suffix="Jr",
1590
- ),
1591
- phone=components.PhoneNumber(
1592
- number="8185551212",
1593
- country_code="1",
1594
- ),
1595
- email="jordan.lee@classbooker.dev",
1596
- address=components.Address(
1597
- address_line1="123 Main Street",
1598
- address_line2="Apt 302",
1599
- city="Boulder",
1600
- state_or_province="CO",
1601
- postal_code="80301",
1602
- country="US",
1603
- ),
1604
- birth_date=components.BirthDate(
1605
- day=9,
1606
- month=11,
1607
- year=1989,
1608
- ),
1609
- ),
1610
1349
  business=components.CreateBusinessProfile(
1611
- legal_business_name="Classbooker, LLC",
1612
- business_type=components.BusinessType.LLC,
1613
- address=components.Address(
1614
- address_line1="123 Main Street",
1615
- address_line2="Apt 302",
1616
- city="Boulder",
1617
- state_or_province="CO",
1618
- postal_code="80301",
1619
- country="US",
1620
- ),
1621
- phone=components.PhoneNumber(
1622
- number="8185551212",
1623
- country_code="1",
1624
- ),
1625
- email="jordan.lee@classbooker.dev",
1626
- description="Local fitness gym paying out instructors",
1627
- tax_id=components.TaxID(
1628
- ein=components.Ein(
1629
- number="12-3456789",
1630
- ),
1631
- ),
1632
- industry_codes=components.IndustryCodes(
1633
- naics="713940",
1634
- sic="7991",
1635
- mcc="7997",
1636
- ),
1350
+ legal_business_name="Whole Body Fitness LLC",
1637
1351
  ),
1638
1352
  ), metadata={
1639
1353
  "optional": "metadata",
1640
1354
  }, terms_of_service={
1641
- "token": "kgT1uxoMAk7QKuyJcmQE8nqW_HjpyuXBabiXPi6T83fUQoxsyWYPcYzuHQTqrt7YRp4gCwyDQvb6U5REM9Pgl2EloCe35t-eiMAbUWGo3Kerxme6aqNcKrP_6-v0MTXViOEJ96IBxPFTvMV7EROI2dq3u4e-x4BbGSCedAX-ViAQND6hcreCDXwrO6sHuzh5Xi2IzSqZHxaovnWEboaxuZKRJkA3dsFID6fzitMpm2qrOh4",
1355
+ "accepted_date": parse_datetime("2023-05-21T04:53:54.554Z"),
1356
+ "accepted_ip": "172.217.2.46",
1357
+ "accepted_user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.71 Safari/537.36",
1358
+ "accepted_domain": "https://esteemed-velocity.net",
1642
1359
  }, customer_support={
1643
1360
  "phone": {
1644
1361
  "number": "8185551212",
@@ -1686,6 +1403,7 @@ The default server can be overridden globally by passing a URL to the `server_ur
1686
1403
  ```python
1687
1404
  from moovio_sdk import Moov
1688
1405
  from moovio_sdk.models import components
1406
+ from moovio_sdk.utils import parse_datetime
1689
1407
 
1690
1408
 
1691
1409
  with Moov(
@@ -1697,64 +1415,16 @@ with Moov(
1697
1415
  ) as moov:
1698
1416
 
1699
1417
  res = moov.accounts.create(account_type=components.CreateAccountType.BUSINESS, profile=components.CreateProfile(
1700
- individual=components.CreateIndividualProfile(
1701
- name=components.IndividualName(
1702
- first_name="Jordan",
1703
- middle_name="Reese",
1704
- last_name="Lee",
1705
- suffix="Jr",
1706
- ),
1707
- phone=components.PhoneNumber(
1708
- number="8185551212",
1709
- country_code="1",
1710
- ),
1711
- email="jordan.lee@classbooker.dev",
1712
- address=components.Address(
1713
- address_line1="123 Main Street",
1714
- address_line2="Apt 302",
1715
- city="Boulder",
1716
- state_or_province="CO",
1717
- postal_code="80301",
1718
- country="US",
1719
- ),
1720
- birth_date=components.BirthDate(
1721
- day=9,
1722
- month=11,
1723
- year=1989,
1724
- ),
1725
- ),
1726
1418
  business=components.CreateBusinessProfile(
1727
- legal_business_name="Classbooker, LLC",
1728
- business_type=components.BusinessType.LLC,
1729
- address=components.Address(
1730
- address_line1="123 Main Street",
1731
- address_line2="Apt 302",
1732
- city="Boulder",
1733
- state_or_province="CO",
1734
- postal_code="80301",
1735
- country="US",
1736
- ),
1737
- phone=components.PhoneNumber(
1738
- number="8185551212",
1739
- country_code="1",
1740
- ),
1741
- email="jordan.lee@classbooker.dev",
1742
- description="Local fitness gym paying out instructors",
1743
- tax_id=components.TaxID(
1744
- ein=components.Ein(
1745
- number="12-3456789",
1746
- ),
1747
- ),
1748
- industry_codes=components.IndustryCodes(
1749
- naics="713940",
1750
- sic="7991",
1751
- mcc="7997",
1752
- ),
1419
+ legal_business_name="Whole Body Fitness LLC",
1753
1420
  ),
1754
1421
  ), metadata={
1755
1422
  "optional": "metadata",
1756
1423
  }, terms_of_service={
1757
- "token": "kgT1uxoMAk7QKuyJcmQE8nqW_HjpyuXBabiXPi6T83fUQoxsyWYPcYzuHQTqrt7YRp4gCwyDQvb6U5REM9Pgl2EloCe35t-eiMAbUWGo3Kerxme6aqNcKrP_6-v0MTXViOEJ96IBxPFTvMV7EROI2dq3u4e-x4BbGSCedAX-ViAQND6hcreCDXwrO6sHuzh5Xi2IzSqZHxaovnWEboaxuZKRJkA3dsFID6fzitMpm2qrOh4",
1424
+ "accepted_date": parse_datetime("2023-05-21T04:53:54.554Z"),
1425
+ "accepted_ip": "172.217.2.46",
1426
+ "accepted_user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.71 Safari/537.36",
1427
+ "accepted_domain": "https://esteemed-velocity.net",
1758
1428
  }, customer_support={
1759
1429
  "phone": {
1760
1430
  "number": "8185551212",