From ab9af847bfe31a70f171bbb1a3f498c8eac54fdb Mon Sep 17 00:00:00 2001 From: Juan Friss Date: Tue, 16 Jan 2024 12:08:16 -0300 Subject: [PATCH 1/2] updates all instances of the address --- CODE_SNIPPETS.md | 76 +++++++++---------- MIGRATION.md | 6 +- README.md | 6 +- __tests__/Integration/UsVerification.spec.rb | 8 +- docs/UsVerificationsWritable.md | 2 +- .../models/us_verifications_writable.rb | 2 +- 6 files changed, 50 insertions(+), 50 deletions(-) diff --git a/CODE_SNIPPETS.md b/CODE_SNIPPETS.md index bfefa90..0b8a931 100755 --- a/CODE_SNIPPETS.md +++ b/CODE_SNIPPETS.md @@ -50,11 +50,11 @@ curl https://api.lob.com/v1/addresses \ -d "company=Lob" \ -d "email=harry@lob.com" \ -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" \ ``` @@ -65,11 +65,11 @@ addressCreate = AddressEditable.new({ company: "Lob", email: "harry@lob.com", phone: "5555555555", - address_line1: "210 King St", - address_line2: "# 6100", + address_line1: "2261 Market Street", + address_line2: "Ste 5668", address_city: "San Francisco", address_state: "CA", - address_zip: "94107", + address_zip: "94114", address_country: "US", }); @@ -195,11 +195,11 @@ curl https://api.lob.com/v1/postcards \ --data-urlencode "front=Front HTML for {{name}}" \ --data-urlencode "back=Back HTML for {{name}}" \ -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" \ ``` @@ -211,11 +211,11 @@ postcardCreate = PostcardEditable.new({ back: "Back HTML for {{name}}", to: AddressEditable.new({ name: "Harry Zhang", - address_line1: "210 King St", - address_line2: "# 6100", + address_line1: "2261 Market Street", + address_line2: "Ste 5668", address_city: "San Francisco", address_state: "CA", - address_zip: "94107", + address_zip: "94114", }), merge_variables: { name: "Harry" @@ -304,11 +304,11 @@ curl https://api.lob.com/v1/self_mailers \ --data-urlencode "inside=Inside HTML for {{name}}" \ --data-urlencode "outside=Outside HTML for {{name}}" \ -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" \ ``` @@ -320,11 +320,11 @@ selfMailerCreate = SelfMailerEditable.new({ outside: "Outside HTML for {{name}}", to: AddressEditable.new({ name: "Harry Zhang", - address_line1: "210 King St", - address_line2: "# 6100", + address_line1: "2261 Market Street", + address_line2: "Ste 5668", address_city: "San Francisco", address_state: "CA", - address_zip: "94107", + address_zip: "94114", }), merge_variables: { name: "Harry" @@ -413,11 +413,11 @@ curl https://api.lob.com/v1/letters \ --data-urlencode "file=HTML Letter for {{name}}" \ -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" ``` @@ -430,11 +430,11 @@ letterCreate = LetterEditable.new({ color: "true", to: AddressEditable.new({ name: "Harry Zhang", - address_line1: "210 King St", - address_line2: "# 6100", + address_line1: "2261 Market Street", + address_line2: "Ste 5668", address_city: "San Francisco", address_state: "CA", - address_zip: "94107", + address_zip: "94114", }), merge_variables: { name: "Harry" @@ -529,11 +529,11 @@ curl https://api.lob.com/v1/checks \ --data-urlencode "check_bottom=

Demo Check for {{name}}

" \ -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" \ ``` @@ -548,11 +548,11 @@ checkCreate = CheckEditable.new({ from: "adr_210a8d4b0b76d77b", to: AddressDomestic.new({ name: "Harry Zhang", - address_line1: "210 King St", - address_line2: "# 6100", + address_line1: "2261 Market Street", + address_line2: "Ste 5668", address_city: "San Francisco", address_state: "CA", - address_zip: "94107", + address_zip: "94114", }), merge_variables: { name: "Harry" @@ -1688,10 +1688,10 @@ end curl https://api.lob.com/v1/bulk/us_verifications \ -u : \ --header "Content-Type: application/x-www-form-urlencoded" \ - --data-urlencode "addresses[0][primary_line]=210 King Street" \ + --data-urlencode "addresses[0][primary_line]=2261 Market Street" \ --data-urlencode "addresses[0][city]=San Francisco" \ --data-urlencode "addresses[0][state]=CA" \ - --data-urlencode "addresses[0][zip_code]=94017" \ + --data-urlencode "addresses[0][zip_code]=94114" \ --data-urlencode "addresses[1][primary_line]=185 BERRY ST STE 6600" \ --data-urlencode "addresses[1][city]=SAN FRANCISCO" \ --data-urlencode "addresses[1][state]=CA" \ @@ -1703,10 +1703,10 @@ usVerificationsApi = UsVerificationsApi.new(config) verificationData0 = MultipleComponents.new({ - primary_line: "210 King Street", + primary_line: "2261 Market Street", city: "San Francisco", state: "CA", - zip_code: "94017", + zip_code: "94114", }) verificationData1 = MultipleComponents.new({ @@ -1735,20 +1735,20 @@ end ```bash curl https://api.lob.com/v1/us_verifications \ -u : \ - -d "primary_line=210 King Street" \ + -d "primary_line=2261 Market Street" \ -d "city=San Francisco" \ -d "state=CA" \ - -d "zip_code=94017" \ + -d "zip_code=94114" \ ``` ```ruby usVerificationsApi = UsVerificationsApi.new(config) verificationData = UsVerificationsWritable.new({ - primary_line: "210 King Street", + primary_line: "2261 Market Street", city: "San Francisco", state: "CA", - zip_code: "94017", + zip_code: "94114", }) begin diff --git a/MIGRATION.md b/MIGRATION.md index bf04ef1..4de7f51 100644 --- a/MIGRATION.md +++ b/MIGRATION.md @@ -50,12 +50,12 @@ Here is a sample of the legacy lob-ruby CREATE function: company: 'Lob', email: 'harry@lob.com', phone: '5555555555', - address_line1: '210 King St', - address_line2: '# 6100', + address_line1: '2261 Market Street', + address_line2: 'Ste 5668', address_city: 'San Francisco', address_state: 'CA', address_country: 'US', - address_zip: '94107' + address_zip: '94114' ) ``` diff --git a/README.md b/README.md index a2697dc..5ac321c 100644 --- a/README.md +++ b/README.md @@ -44,11 +44,11 @@ addressEditable = Lob::AddressEditable.new({ company: "Lob", email: "harry@lob.com", phone: "5555555555", - address_line1: "210 King St", - address_line2: "# 6100", + address_line1: "2261 Market Street", + address_line2: "Ste 5668", address_city: "San Francisco", address_state: "CA", - address_zip: "94107", + address_zip: "94114", address_country: "US", }); diff --git a/__tests__/Integration/UsVerification.spec.rb b/__tests__/Integration/UsVerification.spec.rb index 63bcf3b..b1c3c36 100644 --- a/__tests__/Integration/UsVerification.spec.rb +++ b/__tests__/Integration/UsVerification.spec.rb @@ -17,10 +17,10 @@ @usVerificationApi = UsVerificationsApi.new(api) @validAddress = UsVerificationsWritable.new({ - primary_line: "210 KING ST", + primary_line: "2261 MARKET ST", city: "SAN FRANCISCO", state: "CA", - zip_code: "94107" + zip_code: "94114" }) @invalidAddress = UsVerificationsWritable.new({ primary_line: "1 CEMETERY ST", @@ -29,10 +29,10 @@ zip_code: "07000" }) mc1 = MultipleComponents.new({ - primary_line: "210 KING ST", + primary_line: "2261 MARKET Street", city: "SAN FRANCISCO", state: "CA", - zip_code: "94107" + zip_code: "94114" }) mc2 = MultipleComponents.new({ primary_line: "001 CEMETERY LN", diff --git a/docs/UsVerificationsWritable.md b/docs/UsVerificationsWritable.md index 7908518..29d3dbe 100755 --- a/docs/UsVerificationsWritable.md +++ b/docs/UsVerificationsWritable.md @@ -4,7 +4,7 @@ | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | -| **address** | **String** | 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._ | [optional] | +| **address** | **String** | 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._ | [optional] | | **recipient** | **String** | The intended recipient, typically a person's or firm's name. | [optional] | | **primary_line** | **String** | The primary delivery line (usually the street address) of the address. Combination of the following applicable `components`: * `primary_number` * `street_predirection` * `street_name` * `street_suffix` * `street_postdirection` * `secondary_designator` * `secondary_number` * `pmb_designator` * `pmb_number` | [optional] | | **secondary_line** | **String** | The secondary delivery line of the address. This field is typically empty but may contain information if `primary_line` is too long. | [optional] | diff --git a/lib/openapi_client/models/us_verifications_writable.rb b/lib/openapi_client/models/us_verifications_writable.rb index 6782a20..7cb8a68 100755 --- a/lib/openapi_client/models/us_verifications_writable.rb +++ b/lib/openapi_client/models/us_verifications_writable.rb @@ -15,7 +15,7 @@ module Lob class UsVerificationsWritable - # 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._ + # 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._ attr_accessor :address # The intended recipient, typically a person's or firm's name. From 5eae5c6e3cd9d59d753f4bf8f78c702f9c6a6a2a Mon Sep 17 00:00:00 2001 From: Juan Friss Date: Tue, 16 Jan 2024 12:10:28 -0300 Subject: [PATCH 2/2] updates minor version --- lib/openapi_client/version.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/openapi_client/version.rb b/lib/openapi_client/version.rb index f05282e..c9a6576 100755 --- a/lib/openapi_client/version.rb +++ b/lib/openapi_client/version.rb @@ -11,5 +11,5 @@ =end module Lob - VERSION = '6.0.5' + VERSION = '6.0.6' end