From 672ed97ab43f2fd9764807921107c297270f9366 Mon Sep 17 00:00:00 2001 From: lobot Date: Mon, 11 Jul 2022 21:46:17 +0000 Subject: [PATCH] fix: change the reverse geocode snippets for java and php --- CODE_SNIPPETS.md | 4 ++-- api/openapi.yaml | 21 ++++++++++--------- .../java/com/lob/api/client/ChecksApi.java | 8 +++---- .../java/com/lob/api/client/LettersApi.java | 8 +++---- .../java/com/lob/api/client/PostcardsApi.java | 8 +++---- .../com/lob/api/client/SelfMailersApi.java | 8 +++---- 6 files changed, 29 insertions(+), 28 deletions(-) diff --git a/CODE_SNIPPETS.md b/CODE_SNIPPETS.md index 16b22686..4587af4b 100755 --- a/CODE_SNIPPETS.md +++ b/CODE_SNIPPETS.md @@ -990,12 +990,12 @@ try { ## Reverse Geocode Lookups Api - - ### Reverse Geocode Lookup ```bash curl https://api.lob.com/v1/us_reverse_geocode_lookups \ -u : \ + -d "latitude=37.777456" \ + -d "longitude=-122.393039" \ ``` ```java diff --git a/api/openapi.yaml b/api/openapi.yaml index 3e27376e..0d1fc0fd 100755 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -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 @@ -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_]+$ @@ -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: diff --git a/src/main/java/com/lob/api/client/ChecksApi.java b/src/main/java/com/lob/api/client/ChecksApi.java index 3d584271..b926b721 100644 --- a/src/main/java/com/lob/api/client/ChecksApi.java +++ b/src/main/java/com/lob/api/client/ChecksApi.java @@ -449,7 +449,7 @@ public okhttp3.Call getAsync(String chkId, final ApiCallback _callback) t * @param metadata Filter by metadata key-value pair`. (optional) * @param scheduled * `true` - only return orders (past or future) where `send_date` is greater than `date_created` * `false` - only return orders where `send_date` is equal to `date_created` (optional) * @param sendDate Filter by date sent. (optional) - * @param mailType A string designating the mail postage type: * `usps_first_class` - (default) * `usps_standard` - a [cheaper option](https://lob.com/pricing/print-mail#compare) which is less predictable and takes longer to deliver. `usps_standard` cannot be used with `4x6` postcards or for any postcards sent outside of the United States. (optional) + * @param mailType A string designating the mail postage type: * `usps_first_class` - (default) * `usps_standard` - a [cheaper option](https://lob.com/pricing/print-mail#compare) which is less predictable and takes longer to deliver. `usps_standard` cannot be used with `4x6` 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 `date_created` or `send_date`, not both. (optional) * @param _callback Callback for upload/download progress * @return Call to execute @@ -551,7 +551,7 @@ private okhttp3.Call listValidateBeforeCall(Integer limit, String before, String * @param metadata Filter by metadata key-value pair`. (optional) * @param scheduled * `true` - only return orders (past or future) where `send_date` is greater than `date_created` * `false` - only return orders where `send_date` is equal to `date_created` (optional) * @param sendDate Filter by date sent. (optional) - * @param mailType A string designating the mail postage type: * `usps_first_class` - (default) * `usps_standard` - a [cheaper option](https://lob.com/pricing/print-mail#compare) which is less predictable and takes longer to deliver. `usps_standard` cannot be used with `4x6` postcards or for any postcards sent outside of the United States. (optional) + * @param mailType A string designating the mail postage type: * `usps_first_class` - (default) * `usps_standard` - a [cheaper option](https://lob.com/pricing/print-mail#compare) which is less predictable and takes longer to deliver. `usps_standard` cannot be used with `4x6` 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 `date_created` or `send_date`, not both. (optional) * @return CheckList * @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 i * @param metadata Filter by metadata key-value pair`. (optional) * @param scheduled * `true` - only return orders (past or future) where `send_date` is greater than `date_created` * `false` - only return orders where `send_date` is equal to `date_created` (optional) * @param sendDate Filter by date sent. (optional) - * @param mailType A string designating the mail postage type: * `usps_first_class` - (default) * `usps_standard` - a [cheaper option](https://lob.com/pricing/print-mail#compare) which is less predictable and takes longer to deliver. `usps_standard` cannot be used with `4x6` postcards or for any postcards sent outside of the United States. (optional) + * @param mailType A string designating the mail postage type: * `usps_first_class` - (default) * `usps_standard` - a [cheaper option](https://lob.com/pricing/print-mail#compare) which is less predictable and takes longer to deliver. `usps_standard` cannot be used with `4x6` 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 `date_created` or `send_date`, not both. (optional) * @return ApiResponse<CheckList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -614,7 +614,7 @@ public ApiResponse listWithHttpInfo(Integer limit, String before, Str * @param metadata Filter by metadata key-value pair`. (optional) * @param scheduled * `true` - only return orders (past or future) where `send_date` is greater than `date_created` * `false` - only return orders where `send_date` is equal to `date_created` (optional) * @param sendDate Filter by date sent. (optional) - * @param mailType A string designating the mail postage type: * `usps_first_class` - (default) * `usps_standard` - a [cheaper option](https://lob.com/pricing/print-mail#compare) which is less predictable and takes longer to deliver. `usps_standard` cannot be used with `4x6` postcards or for any postcards sent outside of the United States. (optional) + * @param mailType A string designating the mail postage type: * `usps_first_class` - (default) * `usps_standard` - a [cheaper option](https://lob.com/pricing/print-mail#compare) which is less predictable and takes longer to deliver. `usps_standard` cannot be used with `4x6` 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 `date_created` or `send_date`, not both. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call diff --git a/src/main/java/com/lob/api/client/LettersApi.java b/src/main/java/com/lob/api/client/LettersApi.java index 4680f6d6..30ff66e4 100644 --- a/src/main/java/com/lob/api/client/LettersApi.java +++ b/src/main/java/com/lob/api/client/LettersApi.java @@ -450,7 +450,7 @@ public okhttp3.Call getAsync(String ltrId, final ApiCallback _callback) * @param color Set to `true` to return only color letters. Set to `false` to return only black & white letters. (optional) * @param scheduled * `true` - only return orders (past or future) where `send_date` is greater than `date_created` * `false` - only return orders where `send_date` is equal to `date_created` (optional) * @param sendDate Filter by date sent. (optional) - * @param mailType A string designating the mail postage type: * `usps_first_class` - (default) * `usps_standard` - a [cheaper option](https://lob.com/pricing/print-mail#compare) which is less predictable and takes longer to deliver. `usps_standard` cannot be used with `4x6` postcards or for any postcards sent outside of the United States. (optional) + * @param mailType A string designating the mail postage type: * `usps_first_class` - (default) * `usps_standard` - a [cheaper option](https://lob.com/pricing/print-mail#compare) which is less predictable and takes longer to deliver. `usps_standard` cannot be used with `4x6` 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 `date_created` or `send_date`, not both. (optional) * @param _callback Callback for upload/download progress * @return Call to execute @@ -557,7 +557,7 @@ private okhttp3.Call listValidateBeforeCall(Integer limit, String before, String * @param color Set to `true` to return only color letters. Set to `false` to return only black & white letters. (optional) * @param scheduled * `true` - only return orders (past or future) where `send_date` is greater than `date_created` * `false` - only return orders where `send_date` is equal to `date_created` (optional) * @param sendDate Filter by date sent. (optional) - * @param mailType A string designating the mail postage type: * `usps_first_class` - (default) * `usps_standard` - a [cheaper option](https://lob.com/pricing/print-mail#compare) which is less predictable and takes longer to deliver. `usps_standard` cannot be used with `4x6` postcards or for any postcards sent outside of the United States. (optional) + * @param mailType A string designating the mail postage type: * `usps_first_class` - (default) * `usps_standard` - a [cheaper option](https://lob.com/pricing/print-mail#compare) which is less predictable and takes longer to deliver. `usps_standard` cannot be used with `4x6` 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 `date_created` or `send_date`, not both. (optional) * @return LetterList * @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 * @param color Set to `true` to return only color letters. Set to `false` to return only black & white letters. (optional) * @param scheduled * `true` - only return orders (past or future) where `send_date` is greater than `date_created` * `false` - only return orders where `send_date` is equal to `date_created` (optional) * @param sendDate Filter by date sent. (optional) - * @param mailType A string designating the mail postage type: * `usps_first_class` - (default) * `usps_standard` - a [cheaper option](https://lob.com/pricing/print-mail#compare) which is less predictable and takes longer to deliver. `usps_standard` cannot be used with `4x6` postcards or for any postcards sent outside of the United States. (optional) + * @param mailType A string designating the mail postage type: * `usps_first_class` - (default) * `usps_standard` - a [cheaper option](https://lob.com/pricing/print-mail#compare) which is less predictable and takes longer to deliver. `usps_standard` cannot be used with `4x6` 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 `date_created` or `send_date`, not both. (optional) * @return ApiResponse<LetterList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -622,7 +622,7 @@ public ApiResponse listWithHttpInfo(Integer limit, String before, St * @param color Set to `true` to return only color letters. Set to `false` to return only black & white letters. (optional) * @param scheduled * `true` - only return orders (past or future) where `send_date` is greater than `date_created` * `false` - only return orders where `send_date` is equal to `date_created` (optional) * @param sendDate Filter by date sent. (optional) - * @param mailType A string designating the mail postage type: * `usps_first_class` - (default) * `usps_standard` - a [cheaper option](https://lob.com/pricing/print-mail#compare) which is less predictable and takes longer to deliver. `usps_standard` cannot be used with `4x6` postcards or for any postcards sent outside of the United States. (optional) + * @param mailType A string designating the mail postage type: * `usps_first_class` - (default) * `usps_standard` - a [cheaper option](https://lob.com/pricing/print-mail#compare) which is less predictable and takes longer to deliver. `usps_standard` cannot be used with `4x6` 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 `date_created` or `send_date`, not both. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call diff --git a/src/main/java/com/lob/api/client/PostcardsApi.java b/src/main/java/com/lob/api/client/PostcardsApi.java index 172cba34..064989f0 100644 --- a/src/main/java/com/lob/api/client/PostcardsApi.java +++ b/src/main/java/com/lob/api/client/PostcardsApi.java @@ -451,7 +451,7 @@ public okhttp3.Call getAsync(String pscId, final ApiCallback _callback * @param size Specifies the size of the postcard. Only `4x6` postcards can be sent to international destinations. (optional) * @param scheduled * `true` - only return orders (past or future) where `send_date` is greater than `date_created` * `false` - only return orders where `send_date` is equal to `date_created` (optional) * @param sendDate Filter by date sent. (optional) - * @param mailType A string designating the mail postage type: * `usps_first_class` - (default) * `usps_standard` - a [cheaper option](https://lob.com/pricing/print-mail#compare) which is less predictable and takes longer to deliver. `usps_standard` cannot be used with `4x6` postcards or for any postcards sent outside of the United States. (optional) + * @param mailType A string designating the mail postage type: * `usps_first_class` - (default) * `usps_standard` - a [cheaper option](https://lob.com/pricing/print-mail#compare) which is less predictable and takes longer to deliver. `usps_standard` cannot be used with `4x6` 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 `date_created` or `send_date`, not both. (optional) * @param _callback Callback for upload/download progress * @return Call to execute @@ -558,7 +558,7 @@ private okhttp3.Call listValidateBeforeCall(Integer limit, String before, String * @param size Specifies the size of the postcard. Only `4x6` postcards can be sent to international destinations. (optional) * @param scheduled * `true` - only return orders (past or future) where `send_date` is greater than `date_created` * `false` - only return orders where `send_date` is equal to `date_created` (optional) * @param sendDate Filter by date sent. (optional) - * @param mailType A string designating the mail postage type: * `usps_first_class` - (default) * `usps_standard` - a [cheaper option](https://lob.com/pricing/print-mail#compare) which is less predictable and takes longer to deliver. `usps_standard` cannot be used with `4x6` postcards or for any postcards sent outside of the United States. (optional) + * @param mailType A string designating the mail postage type: * `usps_first_class` - (default) * `usps_standard` - a [cheaper option](https://lob.com/pricing/print-mail#compare) which is less predictable and takes longer to deliver. `usps_standard` cannot be used with `4x6` 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 `date_created` or `send_date`, not both. (optional) * @return PostcardList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -590,7 +590,7 @@ public PostcardList list(Integer limit, String before, String after, List listWithHttpInfo(Integer limit, String before, * @param size Specifies the size of the postcard. Only `4x6` postcards can be sent to international destinations. (optional) * @param scheduled * `true` - only return orders (past or future) where `send_date` is greater than `date_created` * `false` - only return orders where `send_date` is equal to `date_created` (optional) * @param sendDate Filter by date sent. (optional) - * @param mailType A string designating the mail postage type: * `usps_first_class` - (default) * `usps_standard` - a [cheaper option](https://lob.com/pricing/print-mail#compare) which is less predictable and takes longer to deliver. `usps_standard` cannot be used with `4x6` postcards or for any postcards sent outside of the United States. (optional) + * @param mailType A string designating the mail postage type: * `usps_first_class` - (default) * `usps_standard` - a [cheaper option](https://lob.com/pricing/print-mail#compare) which is less predictable and takes longer to deliver. `usps_standard` cannot be used with `4x6` 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 `date_created` or `send_date`, not both. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call diff --git a/src/main/java/com/lob/api/client/SelfMailersApi.java b/src/main/java/com/lob/api/client/SelfMailersApi.java index 4cb123c2..fd00829b 100644 --- a/src/main/java/com/lob/api/client/SelfMailersApi.java +++ b/src/main/java/com/lob/api/client/SelfMailersApi.java @@ -451,7 +451,7 @@ public okhttp3.Call getAsync(String sfmId, final ApiCallback _callba * @param size The self mailer sizes to be returned. (optional) * @param scheduled * `true` - only return orders (past or future) where `send_date` is greater than `date_created` * `false` - only return orders where `send_date` is equal to `date_created` (optional) * @param sendDate Filter by date sent. (optional) - * @param mailType A string designating the mail postage type: * `usps_first_class` - (default) * `usps_standard` - a [cheaper option](https://lob.com/pricing/print-mail#compare) which is less predictable and takes longer to deliver. `usps_standard` cannot be used with `4x6` postcards or for any postcards sent outside of the United States. (optional) + * @param mailType A string designating the mail postage type: * `usps_first_class` - (default) * `usps_standard` - a [cheaper option](https://lob.com/pricing/print-mail#compare) which is less predictable and takes longer to deliver. `usps_standard` cannot be used with `4x6` 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 `date_created` or `send_date`, not both. (optional) * @param _callback Callback for upload/download progress * @return Call to execute @@ -558,7 +558,7 @@ private okhttp3.Call listValidateBeforeCall(Integer limit, String before, String * @param size The self mailer sizes to be returned. (optional) * @param scheduled * `true` - only return orders (past or future) where `send_date` is greater than `date_created` * `false` - only return orders where `send_date` is equal to `date_created` (optional) * @param sendDate Filter by date sent. (optional) - * @param mailType A string designating the mail postage type: * `usps_first_class` - (default) * `usps_standard` - a [cheaper option](https://lob.com/pricing/print-mail#compare) which is less predictable and takes longer to deliver. `usps_standard` cannot be used with `4x6` postcards or for any postcards sent outside of the United States. (optional) + * @param mailType A string designating the mail postage type: * `usps_first_class` - (default) * `usps_standard` - a [cheaper option](https://lob.com/pricing/print-mail#compare) which is less predictable and takes longer to deliver. `usps_standard` cannot be used with `4x6` 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 `date_created` or `send_date`, not both. (optional) * @return SelfMailerList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -590,7 +590,7 @@ public SelfMailerList list(Integer limit, String before, String after, List listWithHttpInfo(Integer limit, String before * @param size The self mailer sizes to be returned. (optional) * @param scheduled * `true` - only return orders (past or future) where `send_date` is greater than `date_created` * `false` - only return orders where `send_date` is equal to `date_created` (optional) * @param sendDate Filter by date sent. (optional) - * @param mailType A string designating the mail postage type: * `usps_first_class` - (default) * `usps_standard` - a [cheaper option](https://lob.com/pricing/print-mail#compare) which is less predictable and takes longer to deliver. `usps_standard` cannot be used with `4x6` postcards or for any postcards sent outside of the United States. (optional) + * @param mailType A string designating the mail postage type: * `usps_first_class` - (default) * `usps_standard` - a [cheaper option](https://lob.com/pricing/print-mail#compare) which is less predictable and takes longer to deliver. `usps_standard` cannot be used with `4x6` 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 `date_created` or `send_date`, not both. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call