Skip to content

Commit

Permalink
GC-1947/updates lobs address (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
juanfriss authored Jan 16, 2024
1 parent d04a894 commit 2306f4e
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 36 deletions.
60 changes: 30 additions & 30 deletions CODE_SNIPPETS.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,11 @@ curl https://api.lob.com/v1/addresses \
-d "company=Lob" \
-d "[email protected]" \
-d "phone=5555555555" \
-d "address_line1=210 King St" \
-d "address_line2=# 6100" \
-d "address_line1=2261 Market Street" \
-d "address_line2=Ste 5668" \
-d "address_city=San Francisco" \
-d "address_state=CA" \
-d "address_zip=94107" \
-d "address_zip=94114" \
-d "address_country=US" \
```

Expand All @@ -78,11 +78,11 @@ addressCreate.SetName("Harry Zhang")
addressCreate.SetCompany("Lob")
addressCreate.SetEmail("[email protected]")
addressCreate.SetPhone("5555555555")
addressCreate.SetAddressLine1("210 King St")
addressCreate.SetAddressLine2("# 6100")
addressCreate.SetAddressLine1("2261 Market Street")
addressCreate.SetAddressLine2("Ste 5668")
addressCreate.SetAddressCity("San Francisco")
addressCreate.SetAddressState("CA")
addressCreate.SetAddressZip("94107")
addressCreate.SetAddressZip("94114")
addressCreate.SetAddressCountry("US")


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

Expand All @@ -223,11 +223,11 @@ context = context.WithValue(suite.ctx, lob.ContextBasicAuth, lob.BasicAuth{UserN
var apiClient = *lob.NewAPIClient(configuration)

var to = *lob.NewAddressEditable()
to.SetAddressLine1("210 King St")
to.SetAddressLine2("# 6100")
to.SetAddressLine1("2261 Market Street")
to.SetAddressLine2("Ste 5668")
to.SetAddressCity("San Francisco")
to.SetAddressState("CA")
to.SetAddressZip("94107")
to.SetAddressZip("94114")
to.SetAddressCountry(lob.COUNTRYEXTENDED_US)
to.SetDescription("")
to.SetName("Harry Zhang")
Expand Down Expand Up @@ -327,11 +327,11 @@ curl https://api.lob.com/v1/self_mailers \
--data-urlencode "inside=<html style='padding: 1in; font-size: 50;'>Inside HTML for {{name}}</html>" \
--data-urlencode "outside=<html style='padding: 1in; font-size: 20;'>Outside HTML for {{name}}</html>" \
-d "to[name]=Harry Zhang" \
-d "to[address_line1]=210 King St" \
-d "to[address_line2]=# 6100" \
-d "to[address_line1]=2261 Market Street" \
-d "to[address_line2]=Ste 5668" \
-d "to[address_city]=San Francisco" \
-d "to[address_state]=CA" \
-d "to[address_zip]=94107" \
-d "to[address_zip]=94114" \
-d "merge_variables[name]=Harry" \
```

Expand All @@ -342,11 +342,11 @@ context = context.WithValue(suite.ctx, lob.ContextBasicAuth, lob.BasicAuth{UserN
var apiClient = *lob.NewAPIClient(configuration)

var to = *lob.NewAddressEditable()
to.SetAddressLine1("210 King St")
to.SetAddressLine2("# 6100")
to.SetAddressLine1("2261 Market Street")
to.SetAddressLine2("Ste 5668")
to.SetAddressCity("San Francisco")
to.SetAddressState("CA")
to.SetAddressZip("94107")
to.SetAddressZip("94114")
to.SetAddressCountry(lob.COUNTRYEXTENDED_US)
to.SetDescription("")
to.SetName("Harry Zhang")
Expand Down Expand Up @@ -446,11 +446,11 @@ curl https://api.lob.com/v1/letters \
--data-urlencode "file=<html style='padding-top: 3in; margin: .5in;'>HTML Letter for {{name}}</html>" \
-d "color=true" \
-d "to[name]=Harry Zhang" \
-d "to[address_line1]=210 King St" \
-d "to[address_line2]=# 6100" \
-d "to[address_line1]=2261 Market Street" \
-d "to[address_line2]=Ste 5668" \
-d "to[address_city]=San Francisco" \
-d "to[address_state]=CA" \
-d "to[address_zip]=94107" \
-d "to[address_zip]=94114" \
-d "merge_variables[name]=Harry" \
-d "cards[]=card_c51ae96f5cebf3e"
```
Expand All @@ -462,11 +462,11 @@ context = context.WithValue(suite.ctx, lob.ContextBasicAuth, lob.BasicAuth{UserN
var apiClient = *lob.NewAPIClient(configuration)

var to = *lob.NewAddressEditable()
to.SetAddressLine1("210 King St")
to.SetAddressLine2("# 6100")
to.SetAddressLine1("2261 Market Street")
to.SetAddressLine2("Ste 5668")
to.SetAddressCity("San Francisco")
to.SetAddressState("CA")
to.SetAddressZip("94107")
to.SetAddressZip("94114")
to.SetAddressCountry(lob.COUNTRYEXTENDED_US)
to.SetDescription("")
to.SetName("Harry Zhang")
Expand Down Expand Up @@ -569,11 +569,11 @@ curl https://api.lob.com/v1/checks \
--data-urlencode "check_bottom=<h1 style='padding-top:4in;'>Demo Check for {{name}}</h1>" \
-d "from=adr_210a8d4b0b76d77b" \
-d "to[name]=Harry Zhang" \
-d "to[address_line1]=210 King St" \
-d "to[address_line2]=# 6100" \
-d "to[address_line1]=2261 Market Street" \
-d "to[address_line2]=Ste 5668" \
-d "to[address_city]=San Francisco" \
-d "to[address_state]=CA" \
-d "to[address_zip]=94107" \
-d "to[address_zip]=94114" \
-d "merge_variables[name]=Harry" \
```

Expand All @@ -584,11 +584,11 @@ context = context.WithValue(suite.ctx, lob.ContextBasicAuth, lob.BasicAuth{UserN
var apiClient = *lob.NewAPIClient(configuration)

var to = *lob.NewAddressEditable()
to.SetAddressLine1("210 King St")
to.SetAddressLine2("# 6100")
to.SetAddressLine1("2261 Market Street")
to.SetAddressLine2("Ste 5668")
to.SetAddressCity("San Francisco")
to.SetAddressState("CA")
to.SetAddressZip("94107")
to.SetAddressZip("94114")
to.SetAddressCountry(lob.COUNTRYEXTENDED_US)
to.SetDescription("")
to.SetName("Harry Zhang")
Expand Down
4 changes: 2 additions & 2 deletions GETTING_STARTED.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ Here is a sample of the CREATE method
```go
address := *lob.AddressEditable
address.SetName("Harry Zhang")
address.SetAddressLine1("210 King St")
address.SetAddressLine1("2261 Market Street")
address.SetAddressCity("San Francisco")
address.SetAddressState("CA")
address.SetAddressZip("94107")
address.SetAddressZip("94114")

resp, _, err := apiClient.AddressesApi.Create(ctx).AddressEditable(address).Execute()

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ apiClient := *lob.NewAPIClient(&config)

address := *lob.AddressEditable
address.SetName("Harry Zhang")
address.SetAddressLine1("210 King St")
address.SetAddressLine1("2261 Market Street")
address.SetAddressCity("San Francisco")
address.SetAddressState("CA")
address.SetAddressZip("94107")
address.SetAddressZip("94114")

myAddress, _, createErr := apiClient.AddressesApi.Create(ctx).AddressEditable(address).Execute()

Expand Down
2 changes: 1 addition & 1 deletion docs/UsVerificationsWritable.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Address** | Pointer to **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]
**Address** | Pointer to **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]
**Recipient** | Pointer to **NullableString** | The intended recipient, typically a person&#39;s or firm&#39;s name. | [optional]
**PrimaryLine** | Pointer to **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]
**SecondaryLine** | Pointer to **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]
Expand Down
2 changes: 1 addition & 1 deletion model_us_verifications_writable.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2306f4e

Please sign in to comment.