Skip to content

Commit fd875a3

Browse files
authored
fix: change the reverse geocode snippets for java and php (#237)
1 parent e1670c0 commit fd875a3

File tree

6 files changed

+29
-28
lines changed

6 files changed

+29
-28
lines changed

CODE_SNIPPETS.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -990,12 +990,12 @@ try {
990990

991991
## Reverse Geocode Lookups Api
992992

993-
994-
995993
### Reverse Geocode Lookup
996994
```bash
997995
curl https://api.lob.com/v1/us_reverse_geocode_lookups \
998996
-u <YOUR_LIVE_API_KEY>: \
997+
-d "latitude=37.777456" \
998+
-d "longitude=-122.393039" \
999999
```
10001000

10011001
```java

api/openapi.yaml

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10513,7 +10513,7 @@ components:
1051310513
plural_object_type: TemplateVersions
1051410514
template_id: tmpl_dadaaf7b76c9f25
1051510515
args:
10516-
- arg: '''tmpl_dadaaf7b76c9f25'''
10516+
- arg: tmpl_dadaaf7b76c9f25
1051710517
notNull: true
1051810518
param: tmplId
1051910519
- arg: 2
@@ -11093,15 +11093,6 @@ components:
1109311093
- latitude
1109411094
- longitude
1109511095
type: object
11096-
x-code-snippet:
11097-
reverseGeocodeLookups: true
11098-
attributes:
11099-
- key: latitude
11100-
val: 37.7749
11101-
pascal_key: Latitude
11102-
- key: longitude
11103-
val: 122.4194
11104-
pascal_key: Longitude
1110511096
reverse_geocode_id:
1110611097
description: Unique identifier prefixed with `us_reverse_geocode_`.
1110711098
pattern: ^us_reverse_geocode_[a-zA-Z0-9_]+$
@@ -11214,6 +11205,16 @@ components:
1121411205
- us_reverse_geocode_lookup
1121511206
type: string
1121611207
type: object
11208+
x-code-snippet:
11209+
reverseGeocodeLookups: true
11210+
lookup:
11211+
attributes:
11212+
- key: latitude
11213+
val: 37.777456
11214+
pascal_key: latitude
11215+
- key: longitude
11216+
val: -122.393039
11217+
pascal_key: longitude
1121711218
us_verifications_writable:
1121811219
properties:
1121911220
address:

src/main/java/com/lob/api/client/ChecksApi.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ public okhttp3.Call getAsync(String chkId, final ApiCallback<Check> _callback) t
449449
* @param metadata Filter by metadata key-value pair&#x60;. (optional)
450450
* @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)
451451
* @param sendDate Filter by date sent. (optional)
452-
* @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)
452+
* @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)
453453
* @param sortBy Sorts items by ascending or descending dates. Use either &#x60;date_created&#x60; or &#x60;send_date&#x60;, not both. (optional)
454454
* @param _callback Callback for upload/download progress
455455
* @return Call to execute
@@ -551,7 +551,7 @@ private okhttp3.Call listValidateBeforeCall(Integer limit, String before, String
551551
* @param metadata Filter by metadata key-value pair&#x60;. (optional)
552552
* @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)
553553
* @param sendDate Filter by date sent. (optional)
554-
* @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)
554+
* @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)
555555
* @param sortBy Sorts items by ascending or descending dates. Use either &#x60;date_created&#x60; or &#x60;send_date&#x60;, not both. (optional)
556556
* @return CheckList
557557
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
@@ -582,7 +582,7 @@ public CheckList list(Integer limit, String before, String after, List<String> i
582582
* @param metadata Filter by metadata key-value pair&#x60;. (optional)
583583
* @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)
584584
* @param sendDate Filter by date sent. (optional)
585-
* @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)
585+
* @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)
586586
* @param sortBy Sorts items by ascending or descending dates. Use either &#x60;date_created&#x60; or &#x60;send_date&#x60;, not both. (optional)
587587
* @return ApiResponse&lt;CheckList&gt;
588588
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
@@ -614,7 +614,7 @@ public ApiResponse<CheckList> listWithHttpInfo(Integer limit, String before, Str
614614
* @param metadata Filter by metadata key-value pair&#x60;. (optional)
615615
* @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)
616616
* @param sendDate Filter by date sent. (optional)
617-
* @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)
617+
* @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)
618618
* @param sortBy Sorts items by ascending or descending dates. Use either &#x60;date_created&#x60; or &#x60;send_date&#x60;, not both. (optional)
619619
* @param _callback The callback to be executed when the API call finishes
620620
* @return The request call

src/main/java/com/lob/api/client/LettersApi.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ public okhttp3.Call getAsync(String ltrId, final ApiCallback<Letter> _callback)
450450
* @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)
451451
* @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)
452452
* @param sendDate Filter by date sent. (optional)
453-
* @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)
453+
* @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)
454454
* @param sortBy Sorts items by ascending or descending dates. Use either &#x60;date_created&#x60; or &#x60;send_date&#x60;, not both. (optional)
455455
* @param _callback Callback for upload/download progress
456456
* @return Call to execute
@@ -557,7 +557,7 @@ private okhttp3.Call listValidateBeforeCall(Integer limit, String before, String
557557
* @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)
558558
* @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)
559559
* @param sendDate Filter by date sent. (optional)
560-
* @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)
560+
* @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)
561561
* @param sortBy Sorts items by ascending or descending dates. Use either &#x60;date_created&#x60; or &#x60;send_date&#x60;, not both. (optional)
562562
* @return LetterList
563563
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
@@ -589,7 +589,7 @@ public LetterList list(Integer limit, String before, String after, List<String>
589589
* @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)
590590
* @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)
591591
* @param sendDate Filter by date sent. (optional)
592-
* @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)
592+
* @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)
593593
* @param sortBy Sorts items by ascending or descending dates. Use either &#x60;date_created&#x60; or &#x60;send_date&#x60;, not both. (optional)
594594
* @return ApiResponse&lt;LetterList&gt;
595595
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
@@ -622,7 +622,7 @@ public ApiResponse<LetterList> listWithHttpInfo(Integer limit, String before, St
622622
* @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)
623623
* @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)
624624
* @param sendDate Filter by date sent. (optional)
625-
* @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)
625+
* @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)
626626
* @param sortBy Sorts items by ascending or descending dates. Use either &#x60;date_created&#x60; or &#x60;send_date&#x60;, not both. (optional)
627627
* @param _callback The callback to be executed when the API call finishes
628628
* @return The request call

0 commit comments

Comments
 (0)