Skip to content

Commit a40c124

Browse files
committed
test sdk bump
1 parent ef16dbf commit a40c124

File tree

357 files changed

+11702
-433
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

357 files changed

+11702
-433
lines changed

.github/workflows/run_tests.yml

100644100755
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ jobs:
99
runs-on: ubuntu-latest
1010
strategy:
1111
matrix:
12-
python-version: ["3.7", "3.8", "3.9"]
12+
python-version: ["3.7.1", "3.8.0", "3.9.0"]
1313
steps:
1414
- uses: actions/checkout@v2
1515

1616
- name: Set up Python ${{ matrix.python-version }}
17-
uses: actions/setup-python@v3
17+
uses: actions/setup-python@v5
1818
with:
1919
python-version: ${{ matrix.python-version }}
2020
- name: Install dependencies

.gitignore

100644100755
File mode changed.

.openapi-generator-ignore

100644100755
File mode changed.

.openapi-generator/FILES

100644100755
File mode changed.

.openapi-generator/VERSION

100644100755
File mode changed.

.venv/pyvenv.cfg

100644100755
File mode changed.

CHANGELOG.md

100644100755
File mode changed.

CODE_SNIPPETS.md

Lines changed: 70 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,6 @@
22

33
## Address Api
44

5-
### Retrieve
6-
```bash
7-
curl https://api.lob.com/v1/addresses/adr_fa85158b26c3eb7c \
8-
-u test_0dc8d51e0acffcb1880e0f19c79b2f5b0cc:
9-
```
10-
11-
```python
12-
with ApiClient(configuration) as api_client:
13-
api = AddressesApi(api_client)
14-
15-
try:
16-
address = api.get("adr_fa85158b26c3eb7c")
17-
except ApiException as e:
18-
print(e)
19-
```
20-
21-
22-
23-
245

256

267

@@ -56,7 +37,7 @@ address_editable = AddressEditable(
5637
email = "[email protected]",
5738
phone = "5555555555",
5839
address_line1 = "2261 Market Street",
59-
address_line2 = "Ste 5668",
40+
address_line2 = "STE 5668",
6041
address_city = "San Francisco",
6142
address_state = "CA",
6243
address_zip = "94114",
@@ -93,6 +74,24 @@ except ApiException as e:
9374
```
9475

9576

77+
### Retrieve
78+
```bash
79+
curl https://api.lob.com/v1/addresses/adr_fa85158b26c3eb7c \
80+
-u test_0dc8d51e0acffcb1880e0f19c79b2f5b0cc:
81+
```
82+
83+
```python
84+
with ApiClient(configuration) as api_client:
85+
api = AddressesApi(api_client)
86+
87+
try:
88+
address = api.get("adr_fa85158b26c3eb7c")
89+
except ApiException as e:
90+
print(e)
91+
```
92+
93+
94+
9695

9796

9897

@@ -119,6 +118,26 @@ except ApiException as e:
119118

120119

121120

121+
122+
123+
124+
125+
126+
### Retrieve
127+
```bash
128+
curl https://api.lob.com/v1/addresses/adr_fa85158b26c3eb7c \
129+
-u test_0dc8d51e0acffcb1880e0f19c79b2f5b0cc:
130+
```
131+
132+
```python
133+
with ApiClient(configuration) as api_client:
134+
api = AddressesApi(api_client)
135+
136+
try:
137+
address = api.get("adr_fa85158b26c3eb7c")
138+
except ApiException as e:
139+
print(e)
140+
```
122141

123142

124143

@@ -190,7 +209,7 @@ postcard_editable = PostcardEditable(
190209
to = AddressEditable(
191210
name = "Harry Zhang",
192211
address_line1 = "2261 Market Street",
193-
address_line2 = "Ste 5668",
212+
address_line2 = "STE 5668",
194213
address_city = "San Francisco",
195214
address_state = "CA",
196215
address_zip = "94114",
@@ -287,7 +306,7 @@ self_mailer_editable = SelfMailerEditable(
287306
to = AddressEditable(
288307
name = "Harry Zhang",
289308
address_line1 = "2261 Market Street",
290-
address_line2 = "Ste 5668",
309+
address_line2 = "STE 5668",
291310
address_city = "San Francisco",
292311
address_state = "CA",
293312
address_zip = "94114",
@@ -384,7 +403,7 @@ letter_editable = LetterEditable(
384403
to = AddressEditable(
385404
name = "Harry Zhang",
386405
address_line1 = "2261 Market Street",
387-
address_line2 = "Ste 5668",
406+
address_line2 = "STE 5668",
388407
address_city = "San Francisco",
389408
address_state = "CA",
390409
address_zip = "94114",
@@ -487,7 +506,7 @@ check_editable = CheckEditable(
487506
to = AddressDomestic(
488507
name = "Harry Zhang",
489508
address_line1 = "2261 Market Street",
490-
address_line2 = "Ste 5668",
509+
address_line2 = "STE 5668",
491510
address_city = "San Francisco",
492511
address_state = "CA",
493512
address_zip = "94114",
@@ -1134,6 +1153,26 @@ except ApiException as e:
11341153

11351154

11361155

1156+
### Delete
1157+
```bash
1158+
curl -X DELETE "https://api.lob.com/v1/campaigns/cmp_e05ee61ff80764b" \
1159+
-u test_0dc8d51e0acffcb1880e0f19c79b2f5b0cc:
1160+
```
1161+
1162+
```python
1163+
with ApiClient(configuration) as api_client:
1164+
api = CampaignsApi(api_client)
1165+
1166+
try:
1167+
deleted_resource = api.delete("cmp_e05ee61ff80764b")
1168+
except ApiException as e:
1169+
print(e)
1170+
```
1171+
1172+
1173+
1174+
1175+
11371176

11381177
### Update
11391178
```bash
@@ -1202,26 +1241,6 @@ except ApiException as e:
12021241

12031242

12041243

1205-
1206-
1207-
1208-
### Delete
1209-
```bash
1210-
curl -X DELETE "https://api.lob.com/v1/campaigns/cmp_e05ee61ff80764b" \
1211-
-u test_0dc8d51e0acffcb1880e0f19c79b2f5b0cc:
1212-
```
1213-
1214-
```python
1215-
with ApiClient(configuration) as api_client:
1216-
api = CampaignsApi(api_client)
1217-
1218-
try:
1219-
deleted_resource = api.delete("cmp_e05ee61ff80764b")
1220-
except ApiException as e:
1221-
print(e)
1222-
```
1223-
1224-
12251244
## Creatives Api
12261245

12271246

@@ -1411,12 +1430,17 @@ except ApiException as e:
14111430
```bash
14121431
curl -X PATCH https://api.lob.com/v1/upl_71be866e430b11e9 \
14131432
-u test_0dc8d51e0acffcb1880e0f19c79b2f5b0cc: \
1414-
-d "state=Ready for Validation" \
14151433
```
14161434

14171435
```python
14181436
upload_updatable = UploadUpdatable(
1419-
state = UploadState("Ready for Validation"),
1437+
required_address_column_mapping = RequiredAddressColumnMapping(
1438+
name = "recipient",
1439+
address_line1 = "primary line",
1440+
address_city = "city",
1441+
address_state = "state",
1442+
address_zip = "zip_code",
1443+
),
14201444
)
14211445

14221446
with ApiClient(configuration) as api_client:
@@ -1439,7 +1463,6 @@ curl --location --request POST https://api.lob.com/v1/uploads \
14391463
```python
14401464
upload_writable = UploadWritable(
14411465
campaign_id = "cmp_e05ee61ff80764b",
1442-
column_mapping = { "firstName": "first name" },
14431466
)
14441467

14451468
with ApiClient(configuration) as api_client:

MIGRATION.md

100644100755
File mode changed.

0 commit comments

Comments
 (0)