Skip to content

Commit 0214dc5

Browse files
authored
Merge pull request #227 from lob/GC-1941/update-lob-address
GC-1941/updates Lob address
2 parents 5217a9d + 5eae5c6 commit 0214dc5

File tree

7 files changed

+51
-51
lines changed

7 files changed

+51
-51
lines changed

CODE_SNIPPETS.md

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,11 @@ curl https://api.lob.com/v1/addresses \
5050
-d "company=Lob" \
5151
5252
-d "phone=5555555555" \
53-
-d "address_line1=210 King St" \
54-
-d "address_line2=# 6100" \
53+
-d "address_line1=2261 Market Street" \
54+
-d "address_line2=Ste 5668" \
5555
-d "address_city=San Francisco" \
5656
-d "address_state=CA" \
57-
-d "address_zip=94107" \
57+
-d "address_zip=94114" \
5858
-d "address_country=US" \
5959
```
6060

@@ -65,11 +65,11 @@ addressCreate = AddressEditable.new({
6565
company: "Lob",
6666
6767
phone: "5555555555",
68-
address_line1: "210 King St",
69-
address_line2: "# 6100",
68+
address_line1: "2261 Market Street",
69+
address_line2: "Ste 5668",
7070
address_city: "San Francisco",
7171
address_state: "CA",
72-
address_zip: "94107",
72+
address_zip: "94114",
7373
address_country: "US",
7474
});
7575

@@ -195,11 +195,11 @@ curl https://api.lob.com/v1/postcards \
195195
--data-urlencode "front=<html style='padding: 1in; font-size: 50;'>Front HTML for {{name}}</html>" \
196196
--data-urlencode "back=<html style='padding: 1in; font-size: 20;'>Back HTML for {{name}}</html>" \
197197
-d "to[name]=Harry Zhang" \
198-
-d "to[address_line1]=210 King St" \
199-
-d "to[address_line2]=# 6100" \
198+
-d "to[address_line1]=2261 Market Street" \
199+
-d "to[address_line2]=Ste 5668" \
200200
-d "to[address_city]=San Francisco" \
201201
-d "to[address_state]=CA" \
202-
-d "to[address_zip]=94107" \
202+
-d "to[address_zip]=94114" \
203203
-d "merge_variables[name]=Harry" \
204204
```
205205

@@ -211,11 +211,11 @@ postcardCreate = PostcardEditable.new({
211211
back: "<html style='padding: 1in; font-size: 20;'>Back HTML for {{name}}</html>",
212212
to: AddressEditable.new({
213213
name: "Harry Zhang",
214-
address_line1: "210 King St",
215-
address_line2: "# 6100",
214+
address_line1: "2261 Market Street",
215+
address_line2: "Ste 5668",
216216
address_city: "San Francisco",
217217
address_state: "CA",
218-
address_zip: "94107",
218+
address_zip: "94114",
219219
}),
220220
merge_variables: {
221221
name: "Harry"
@@ -304,11 +304,11 @@ curl https://api.lob.com/v1/self_mailers \
304304
--data-urlencode "inside=<html style='padding: 1in; font-size: 50;'>Inside HTML for {{name}}</html>" \
305305
--data-urlencode "outside=<html style='padding: 1in; font-size: 20;'>Outside HTML for {{name}}</html>" \
306306
-d "to[name]=Harry Zhang" \
307-
-d "to[address_line1]=210 King St" \
308-
-d "to[address_line2]=# 6100" \
307+
-d "to[address_line1]=2261 Market Street" \
308+
-d "to[address_line2]=Ste 5668" \
309309
-d "to[address_city]=San Francisco" \
310310
-d "to[address_state]=CA" \
311-
-d "to[address_zip]=94107" \
311+
-d "to[address_zip]=94114" \
312312
-d "merge_variables[name]=Harry" \
313313
```
314314

@@ -320,11 +320,11 @@ selfMailerCreate = SelfMailerEditable.new({
320320
outside: "<html style='padding: 1in; font-size: 20;'>Outside HTML for {{name}}</html>",
321321
to: AddressEditable.new({
322322
name: "Harry Zhang",
323-
address_line1: "210 King St",
324-
address_line2: "# 6100",
323+
address_line1: "2261 Market Street",
324+
address_line2: "Ste 5668",
325325
address_city: "San Francisco",
326326
address_state: "CA",
327-
address_zip: "94107",
327+
address_zip: "94114",
328328
}),
329329
merge_variables: {
330330
name: "Harry"
@@ -413,11 +413,11 @@ curl https://api.lob.com/v1/letters \
413413
--data-urlencode "file=<html style='padding-top: 3in; margin: .5in;'>HTML Letter for {{name}}</html>" \
414414
-d "color=true" \
415415
-d "to[name]=Harry Zhang" \
416-
-d "to[address_line1]=210 King St" \
417-
-d "to[address_line2]=# 6100" \
416+
-d "to[address_line1]=2261 Market Street" \
417+
-d "to[address_line2]=Ste 5668" \
418418
-d "to[address_city]=San Francisco" \
419419
-d "to[address_state]=CA" \
420-
-d "to[address_zip]=94107" \
420+
-d "to[address_zip]=94114" \
421421
-d "merge_variables[name]=Harry" \
422422
-d "cards[]=card_c51ae96f5cebf3e"
423423
```
@@ -430,11 +430,11 @@ letterCreate = LetterEditable.new({
430430
color: "true",
431431
to: AddressEditable.new({
432432
name: "Harry Zhang",
433-
address_line1: "210 King St",
434-
address_line2: "# 6100",
433+
address_line1: "2261 Market Street",
434+
address_line2: "Ste 5668",
435435
address_city: "San Francisco",
436436
address_state: "CA",
437-
address_zip: "94107",
437+
address_zip: "94114",
438438
}),
439439
merge_variables: {
440440
name: "Harry"
@@ -529,11 +529,11 @@ curl https://api.lob.com/v1/checks \
529529
--data-urlencode "check_bottom=<h1 style='padding-top:4in;'>Demo Check for {{name}}</h1>" \
530530
-d "from=adr_210a8d4b0b76d77b" \
531531
-d "to[name]=Harry Zhang" \
532-
-d "to[address_line1]=210 King St" \
533-
-d "to[address_line2]=# 6100" \
532+
-d "to[address_line1]=2261 Market Street" \
533+
-d "to[address_line2]=Ste 5668" \
534534
-d "to[address_city]=San Francisco" \
535535
-d "to[address_state]=CA" \
536-
-d "to[address_zip]=94107" \
536+
-d "to[address_zip]=94114" \
537537
-d "merge_variables[name]=Harry" \
538538
```
539539

@@ -548,11 +548,11 @@ checkCreate = CheckEditable.new({
548548
from: "adr_210a8d4b0b76d77b",
549549
to: AddressDomestic.new({
550550
name: "Harry Zhang",
551-
address_line1: "210 King St",
552-
address_line2: "# 6100",
551+
address_line1: "2261 Market Street",
552+
address_line2: "Ste 5668",
553553
address_city: "San Francisco",
554554
address_state: "CA",
555-
address_zip: "94107",
555+
address_zip: "94114",
556556
}),
557557
merge_variables: {
558558
name: "Harry"
@@ -1688,10 +1688,10 @@ end
16881688
curl https://api.lob.com/v1/bulk/us_verifications \
16891689
-u <YOUR LIVE API KEY>: \
16901690
--header "Content-Type: application/x-www-form-urlencoded" \
1691-
--data-urlencode "addresses[0][primary_line]=210 King Street" \
1691+
--data-urlencode "addresses[0][primary_line]=2261 Market Street" \
16921692
--data-urlencode "addresses[0][city]=San Francisco" \
16931693
--data-urlencode "addresses[0][state]=CA" \
1694-
--data-urlencode "addresses[0][zip_code]=94017" \
1694+
--data-urlencode "addresses[0][zip_code]=94114" \
16951695
--data-urlencode "addresses[1][primary_line]=185 BERRY ST STE 6600" \
16961696
--data-urlencode "addresses[1][city]=SAN FRANCISCO" \
16971697
--data-urlencode "addresses[1][state]=CA" \
@@ -1703,10 +1703,10 @@ usVerificationsApi = UsVerificationsApi.new(config)
17031703

17041704

17051705
verificationData0 = MultipleComponents.new({
1706-
primary_line: "210 King Street",
1706+
primary_line: "2261 Market Street",
17071707
city: "San Francisco",
17081708
state: "CA",
1709-
zip_code: "94017",
1709+
zip_code: "94114",
17101710
})
17111711

17121712
verificationData1 = MultipleComponents.new({
@@ -1735,20 +1735,20 @@ end
17351735
```bash
17361736
curl https://api.lob.com/v1/us_verifications \
17371737
-u <YOUR_LIVE_API_KEY>: \
1738-
-d "primary_line=210 King Street" \
1738+
-d "primary_line=2261 Market Street" \
17391739
-d "city=San Francisco" \
17401740
-d "state=CA" \
1741-
-d "zip_code=94017" \
1741+
-d "zip_code=94114" \
17421742
```
17431743

17441744
```ruby
17451745
usVerificationsApi = UsVerificationsApi.new(config)
17461746

17471747
verificationData = UsVerificationsWritable.new({
1748-
primary_line: "210 King Street",
1748+
primary_line: "2261 Market Street",
17491749
city: "San Francisco",
17501750
state: "CA",
1751-
zip_code: "94017",
1751+
zip_code: "94114",
17521752
})
17531753

17541754
begin

MIGRATION.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,12 @@ Here is a sample of the legacy lob-ruby CREATE function:
5050
company: 'Lob',
5151
5252
phone: '5555555555',
53-
address_line1: '210 King St',
54-
address_line2: '# 6100',
53+
address_line1: '2261 Market Street',
54+
address_line2: 'Ste 5668',
5555
address_city: 'San Francisco',
5656
address_state: 'CA',
5757
address_country: 'US',
58-
address_zip: '94107'
58+
address_zip: '94114'
5959
)
6060
```
6161

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,11 @@ addressEditable = Lob::AddressEditable.new({
4444
company: "Lob",
4545
4646
phone: "5555555555",
47-
address_line1: "210 King St",
48-
address_line2: "# 6100",
47+
address_line1: "2261 Market Street",
48+
address_line2: "Ste 5668",
4949
address_city: "San Francisco",
5050
address_state: "CA",
51-
address_zip: "94107",
51+
address_zip: "94114",
5252
address_country: "US",
5353
});
5454

__tests__/Integration/UsVerification.spec.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@
1717
@usVerificationApi = UsVerificationsApi.new(api)
1818

1919
@validAddress = UsVerificationsWritable.new({
20-
primary_line: "210 KING ST",
20+
primary_line: "2261 MARKET ST",
2121
city: "SAN FRANCISCO",
2222
state: "CA",
23-
zip_code: "94107"
23+
zip_code: "94114"
2424
})
2525
@invalidAddress = UsVerificationsWritable.new({
2626
primary_line: "1 CEMETERY ST",
@@ -29,10 +29,10 @@
2929
zip_code: "07000"
3030
})
3131
mc1 = MultipleComponents.new({
32-
primary_line: "210 KING ST",
32+
primary_line: "2261 MARKET Street",
3333
city: "SAN FRANCISCO",
3434
state: "CA",
35-
zip_code: "94107"
35+
zip_code: "94114"
3636
})
3737
mc2 = MultipleComponents.new({
3838
primary_line: "001 CEMETERY LN",

docs/UsVerificationsWritable.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
| Name | Type | Description | Notes |
66
| ---- | ---- | ----------- | ----- |
7-
| **address** | **String** | The entire address in one string (e.g., \&quot;210 King Street 94107\&quot;). _Does not support a recipient and will error when other payload parameters are provided._ | [optional] |
7+
| **address** | **String** | The entire address in one string (e.g., \&quot;2261 Market Street 94114\&quot;). _Does not support a recipient and will error when other payload parameters are provided._ | [optional] |
88
| **recipient** | **String** | The intended recipient, typically a person&#39;s or firm&#39;s name. | [optional] |
99
| **primary_line** | **String** | The primary delivery line (usually the street address) of the address. Combination of the following applicable &#x60;components&#x60;: * &#x60;primary_number&#x60; * &#x60;street_predirection&#x60; * &#x60;street_name&#x60; * &#x60;street_suffix&#x60; * &#x60;street_postdirection&#x60; * &#x60;secondary_designator&#x60; * &#x60;secondary_number&#x60; * &#x60;pmb_designator&#x60; * &#x60;pmb_number&#x60; | [optional] |
1010
| **secondary_line** | **String** | The secondary delivery line of the address. This field is typically empty but may contain information if &#x60;primary_line&#x60; is too long. | [optional] |

lib/openapi_client/models/us_verifications_writable.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
module Lob
1717
class UsVerificationsWritable
18-
# The entire address in one string (e.g., \"210 King Street 94107\"). _Does not support a recipient and will error when other payload parameters are provided._
18+
# The entire address in one string (e.g., \"2261 Market Street 94114\"). _Does not support a recipient and will error when other payload parameters are provided._
1919
attr_accessor :address
2020

2121
# The intended recipient, typically a person's or firm's name.

lib/openapi_client/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@
1111
=end
1212

1313
module Lob
14-
VERSION = '6.0.5'
14+
VERSION = '6.0.6'
1515
end

0 commit comments

Comments
 (0)