Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix-geocode-snippets #237

Merged
merged 1 commit into from
Jul 11, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions CODE_SNIPPETS.md
Original file line number Diff line number Diff line change
Expand Up @@ -990,12 +990,12 @@ try {

## Reverse Geocode Lookups Api



### Reverse Geocode Lookup
```bash
curl https://api.lob.com/v1/us_reverse_geocode_lookups \
-u <YOUR_LIVE_API_KEY>: \
-d "latitude=37.777456" \
-d "longitude=-122.393039" \
```

```java
Expand Down
21 changes: 11 additions & 10 deletions api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10513,7 +10513,7 @@ components:
plural_object_type: TemplateVersions
template_id: tmpl_dadaaf7b76c9f25
args:
- arg: '''tmpl_dadaaf7b76c9f25'''
- arg: tmpl_dadaaf7b76c9f25
notNull: true
param: tmplId
- arg: 2
Expand Down Expand Up @@ -11093,15 +11093,6 @@ components:
- latitude
- longitude
type: object
x-code-snippet:
reverseGeocodeLookups: true
attributes:
- key: latitude
val: 37.7749
pascal_key: Latitude
- key: longitude
val: 122.4194
pascal_key: Longitude
reverse_geocode_id:
description: Unique identifier prefixed with `us_reverse_geocode_`.
pattern: ^us_reverse_geocode_[a-zA-Z0-9_]+$
Expand Down Expand Up @@ -11214,6 +11205,16 @@ components:
- us_reverse_geocode_lookup
type: string
type: object
x-code-snippet:
reverseGeocodeLookups: true
lookup:
attributes:
- key: latitude
val: 37.777456
pascal_key: latitude
- key: longitude
val: -122.393039
pascal_key: longitude
us_verifications_writable:
properties:
address:
Expand Down
8 changes: 4 additions & 4 deletions src/main/java/com/lob/api/client/ChecksApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ public okhttp3.Call getAsync(String chkId, final ApiCallback<Check> _callback) t
* @param metadata Filter by metadata key-value pair&#x60;. (optional)
* @param scheduled * &#x60;true&#x60; - only return orders (past or future) where &#x60;send_date&#x60; is greater than &#x60;date_created&#x60; * &#x60;false&#x60; - only return orders where &#x60;send_date&#x60; is equal to &#x60;date_created&#x60; (optional)
* @param sendDate Filter by date sent. (optional)
* @param mailType A string designating the mail postage type: * &#x60;usps_first_class&#x60; - (default) * &#x60;usps_standard&#x60; - a [cheaper option](https://lob.com/pricing/print-mail#compare) which is less predictable and takes longer to deliver. &#x60;usps_standard&#x60; cannot be used with &#x60;4x6&#x60; postcards or for any postcards sent outside of the United States. (optional)
* @param mailType A string designating the mail postage type: * &#x60;usps_first_class&#x60; - (default) * &#x60;usps_standard&#x60; - a [cheaper option](https://lob.com/pricing/print-mail#compare) which is less predictable and takes longer to deliver. &#x60;usps_standard&#x60; cannot be used with &#x60;4x6&#x60; postcards or for any postcards sent outside of the United States. (optional, default to usps_first_class)
* @param sortBy Sorts items by ascending or descending dates. Use either &#x60;date_created&#x60; or &#x60;send_date&#x60;, not both. (optional)
* @param _callback Callback for upload/download progress
* @return Call to execute
Expand Down Expand Up @@ -551,7 +551,7 @@ private okhttp3.Call listValidateBeforeCall(Integer limit, String before, String
* @param metadata Filter by metadata key-value pair&#x60;. (optional)
* @param scheduled * &#x60;true&#x60; - only return orders (past or future) where &#x60;send_date&#x60; is greater than &#x60;date_created&#x60; * &#x60;false&#x60; - only return orders where &#x60;send_date&#x60; is equal to &#x60;date_created&#x60; (optional)
* @param sendDate Filter by date sent. (optional)
* @param mailType A string designating the mail postage type: * &#x60;usps_first_class&#x60; - (default) * &#x60;usps_standard&#x60; - a [cheaper option](https://lob.com/pricing/print-mail#compare) which is less predictable and takes longer to deliver. &#x60;usps_standard&#x60; cannot be used with &#x60;4x6&#x60; postcards or for any postcards sent outside of the United States. (optional)
* @param mailType A string designating the mail postage type: * &#x60;usps_first_class&#x60; - (default) * &#x60;usps_standard&#x60; - a [cheaper option](https://lob.com/pricing/print-mail#compare) which is less predictable and takes longer to deliver. &#x60;usps_standard&#x60; cannot be used with &#x60;4x6&#x60; postcards or for any postcards sent outside of the United States. (optional, default to usps_first_class)
* @param sortBy Sorts items by ascending or descending dates. Use either &#x60;date_created&#x60; or &#x60;send_date&#x60;, not both. (optional)
* @return CheckList
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
Expand Down Expand Up @@ -582,7 +582,7 @@ public CheckList list(Integer limit, String before, String after, List<String> i
* @param metadata Filter by metadata key-value pair&#x60;. (optional)
* @param scheduled * &#x60;true&#x60; - only return orders (past or future) where &#x60;send_date&#x60; is greater than &#x60;date_created&#x60; * &#x60;false&#x60; - only return orders where &#x60;send_date&#x60; is equal to &#x60;date_created&#x60; (optional)
* @param sendDate Filter by date sent. (optional)
* @param mailType A string designating the mail postage type: * &#x60;usps_first_class&#x60; - (default) * &#x60;usps_standard&#x60; - a [cheaper option](https://lob.com/pricing/print-mail#compare) which is less predictable and takes longer to deliver. &#x60;usps_standard&#x60; cannot be used with &#x60;4x6&#x60; postcards or for any postcards sent outside of the United States. (optional)
* @param mailType A string designating the mail postage type: * &#x60;usps_first_class&#x60; - (default) * &#x60;usps_standard&#x60; - a [cheaper option](https://lob.com/pricing/print-mail#compare) which is less predictable and takes longer to deliver. &#x60;usps_standard&#x60; cannot be used with &#x60;4x6&#x60; postcards or for any postcards sent outside of the United States. (optional, default to usps_first_class)
* @param sortBy Sorts items by ascending or descending dates. Use either &#x60;date_created&#x60; or &#x60;send_date&#x60;, not both. (optional)
* @return ApiResponse&lt;CheckList&gt;
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
Expand Down Expand Up @@ -614,7 +614,7 @@ public ApiResponse<CheckList> listWithHttpInfo(Integer limit, String before, Str
* @param metadata Filter by metadata key-value pair&#x60;. (optional)
* @param scheduled * &#x60;true&#x60; - only return orders (past or future) where &#x60;send_date&#x60; is greater than &#x60;date_created&#x60; * &#x60;false&#x60; - only return orders where &#x60;send_date&#x60; is equal to &#x60;date_created&#x60; (optional)
* @param sendDate Filter by date sent. (optional)
* @param mailType A string designating the mail postage type: * &#x60;usps_first_class&#x60; - (default) * &#x60;usps_standard&#x60; - a [cheaper option](https://lob.com/pricing/print-mail#compare) which is less predictable and takes longer to deliver. &#x60;usps_standard&#x60; cannot be used with &#x60;4x6&#x60; postcards or for any postcards sent outside of the United States. (optional)
* @param mailType A string designating the mail postage type: * &#x60;usps_first_class&#x60; - (default) * &#x60;usps_standard&#x60; - a [cheaper option](https://lob.com/pricing/print-mail#compare) which is less predictable and takes longer to deliver. &#x60;usps_standard&#x60; cannot be used with &#x60;4x6&#x60; postcards or for any postcards sent outside of the United States. (optional, default to usps_first_class)
* @param sortBy Sorts items by ascending or descending dates. Use either &#x60;date_created&#x60; or &#x60;send_date&#x60;, not both. (optional)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
Expand Down
8 changes: 4 additions & 4 deletions src/main/java/com/lob/api/client/LettersApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ public okhttp3.Call getAsync(String ltrId, final ApiCallback<Letter> _callback)
* @param color Set to &#x60;true&#x60; to return only color letters. Set to &#x60;false&#x60; to return only black &amp; white letters. (optional)
* @param scheduled * &#x60;true&#x60; - only return orders (past or future) where &#x60;send_date&#x60; is greater than &#x60;date_created&#x60; * &#x60;false&#x60; - only return orders where &#x60;send_date&#x60; is equal to &#x60;date_created&#x60; (optional)
* @param sendDate Filter by date sent. (optional)
* @param mailType A string designating the mail postage type: * &#x60;usps_first_class&#x60; - (default) * &#x60;usps_standard&#x60; - a [cheaper option](https://lob.com/pricing/print-mail#compare) which is less predictable and takes longer to deliver. &#x60;usps_standard&#x60; cannot be used with &#x60;4x6&#x60; postcards or for any postcards sent outside of the United States. (optional)
* @param mailType A string designating the mail postage type: * &#x60;usps_first_class&#x60; - (default) * &#x60;usps_standard&#x60; - a [cheaper option](https://lob.com/pricing/print-mail#compare) which is less predictable and takes longer to deliver. &#x60;usps_standard&#x60; cannot be used with &#x60;4x6&#x60; postcards or for any postcards sent outside of the United States. (optional, default to usps_first_class)
* @param sortBy Sorts items by ascending or descending dates. Use either &#x60;date_created&#x60; or &#x60;send_date&#x60;, not both. (optional)
* @param _callback Callback for upload/download progress
* @return Call to execute
Expand Down Expand Up @@ -557,7 +557,7 @@ private okhttp3.Call listValidateBeforeCall(Integer limit, String before, String
* @param color Set to &#x60;true&#x60; to return only color letters. Set to &#x60;false&#x60; to return only black &amp; white letters. (optional)
* @param scheduled * &#x60;true&#x60; - only return orders (past or future) where &#x60;send_date&#x60; is greater than &#x60;date_created&#x60; * &#x60;false&#x60; - only return orders where &#x60;send_date&#x60; is equal to &#x60;date_created&#x60; (optional)
* @param sendDate Filter by date sent. (optional)
* @param mailType A string designating the mail postage type: * &#x60;usps_first_class&#x60; - (default) * &#x60;usps_standard&#x60; - a [cheaper option](https://lob.com/pricing/print-mail#compare) which is less predictable and takes longer to deliver. &#x60;usps_standard&#x60; cannot be used with &#x60;4x6&#x60; postcards or for any postcards sent outside of the United States. (optional)
* @param mailType A string designating the mail postage type: * &#x60;usps_first_class&#x60; - (default) * &#x60;usps_standard&#x60; - a [cheaper option](https://lob.com/pricing/print-mail#compare) which is less predictable and takes longer to deliver. &#x60;usps_standard&#x60; cannot be used with &#x60;4x6&#x60; postcards or for any postcards sent outside of the United States. (optional, default to usps_first_class)
* @param sortBy Sorts items by ascending or descending dates. Use either &#x60;date_created&#x60; or &#x60;send_date&#x60;, not both. (optional)
* @return LetterList
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
Expand Down Expand Up @@ -589,7 +589,7 @@ public LetterList list(Integer limit, String before, String after, List<String>
* @param color Set to &#x60;true&#x60; to return only color letters. Set to &#x60;false&#x60; to return only black &amp; white letters. (optional)
* @param scheduled * &#x60;true&#x60; - only return orders (past or future) where &#x60;send_date&#x60; is greater than &#x60;date_created&#x60; * &#x60;false&#x60; - only return orders where &#x60;send_date&#x60; is equal to &#x60;date_created&#x60; (optional)
* @param sendDate Filter by date sent. (optional)
* @param mailType A string designating the mail postage type: * &#x60;usps_first_class&#x60; - (default) * &#x60;usps_standard&#x60; - a [cheaper option](https://lob.com/pricing/print-mail#compare) which is less predictable and takes longer to deliver. &#x60;usps_standard&#x60; cannot be used with &#x60;4x6&#x60; postcards or for any postcards sent outside of the United States. (optional)
* @param mailType A string designating the mail postage type: * &#x60;usps_first_class&#x60; - (default) * &#x60;usps_standard&#x60; - a [cheaper option](https://lob.com/pricing/print-mail#compare) which is less predictable and takes longer to deliver. &#x60;usps_standard&#x60; cannot be used with &#x60;4x6&#x60; postcards or for any postcards sent outside of the United States. (optional, default to usps_first_class)
* @param sortBy Sorts items by ascending or descending dates. Use either &#x60;date_created&#x60; or &#x60;send_date&#x60;, not both. (optional)
* @return ApiResponse&lt;LetterList&gt;
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
Expand Down Expand Up @@ -622,7 +622,7 @@ public ApiResponse<LetterList> listWithHttpInfo(Integer limit, String before, St
* @param color Set to &#x60;true&#x60; to return only color letters. Set to &#x60;false&#x60; to return only black &amp; white letters. (optional)
* @param scheduled * &#x60;true&#x60; - only return orders (past or future) where &#x60;send_date&#x60; is greater than &#x60;date_created&#x60; * &#x60;false&#x60; - only return orders where &#x60;send_date&#x60; is equal to &#x60;date_created&#x60; (optional)
* @param sendDate Filter by date sent. (optional)
* @param mailType A string designating the mail postage type: * &#x60;usps_first_class&#x60; - (default) * &#x60;usps_standard&#x60; - a [cheaper option](https://lob.com/pricing/print-mail#compare) which is less predictable and takes longer to deliver. &#x60;usps_standard&#x60; cannot be used with &#x60;4x6&#x60; postcards or for any postcards sent outside of the United States. (optional)
* @param mailType A string designating the mail postage type: * &#x60;usps_first_class&#x60; - (default) * &#x60;usps_standard&#x60; - a [cheaper option](https://lob.com/pricing/print-mail#compare) which is less predictable and takes longer to deliver. &#x60;usps_standard&#x60; cannot be used with &#x60;4x6&#x60; postcards or for any postcards sent outside of the United States. (optional, default to usps_first_class)
* @param sortBy Sorts items by ascending or descending dates. Use either &#x60;date_created&#x60; or &#x60;send_date&#x60;, not both. (optional)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
Expand Down
Loading