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