diff --git a/docs/MultipleComponents.md b/docs/MultipleComponents.md index d242de1..23c6d8a 100755 --- a/docs/MultipleComponents.md +++ b/docs/MultipleComponents.md @@ -1,4 +1,4 @@ -# OpenapiClient::MultipleComponents +# Lob::MultipleComponents ## Properties @@ -18,7 +18,7 @@ ```ruby require 'openapi_client' -instance = OpenapiClient::MultipleComponents.new( +instance = Lob::MultipleComponents.new( recipient: null, primary_line: null, secondary_line: null, diff --git a/docs/UsVerification.md b/docs/UsVerification.md index faee638..754c082 100755 --- a/docs/UsVerification.md +++ b/docs/UsVerification.md @@ -1,4 +1,4 @@ -# OpenapiClient::UsVerification +# Lob::UsVerification ## Properties @@ -23,7 +23,7 @@ ```ruby require 'openapi_client' -instance = OpenapiClient::UsVerification.new( +instance = Lob::UsVerification.new( id: null, recipient: null, primary_line: null, diff --git a/docs/UsVerificationOrError.md b/docs/UsVerificationOrError.md index 4c88ea7..6bbe9d2 100755 --- a/docs/UsVerificationOrError.md +++ b/docs/UsVerificationOrError.md @@ -1,4 +1,4 @@ -# OpenapiClient::UsVerificationOrError +# Lob::UsVerificationOrError ## Properties @@ -23,7 +23,7 @@ ```ruby require 'openapi_client' -instance = OpenapiClient::UsVerificationOrError.new( +instance = Lob::UsVerificationOrError.new( id: null, recipient: null, primary_line: null, diff --git a/docs/UsVerifications.md b/docs/UsVerifications.md index 9def1b7..a518ccb 100755 --- a/docs/UsVerifications.md +++ b/docs/UsVerifications.md @@ -1,4 +1,4 @@ -# OpenapiClient::UsVerifications +# Lob::UsVerifications ## Properties @@ -12,7 +12,7 @@ ```ruby require 'openapi_client' -instance = OpenapiClient::UsVerifications.new( +instance = Lob::UsVerifications.new( addresses: null, errors: null ) diff --git a/docs/UsVerificationsWritable.md b/docs/UsVerificationsWritable.md index 977f5b7..2a21e5f 100755 --- a/docs/UsVerificationsWritable.md +++ b/docs/UsVerificationsWritable.md @@ -1,4 +1,4 @@ -# OpenapiClient::UsVerificationsWritable +# Lob::UsVerificationsWritable ## Properties @@ -19,7 +19,7 @@ ```ruby require 'openapi_client' -instance = OpenapiClient::UsVerificationsWritable.new( +instance = Lob::UsVerificationsWritable.new( address: null, recipient: null, primary_line: null, diff --git a/lib/openapi_client.rb b/lib/openapi_client.rb index a287646..1a40733 100755 --- a/lib/openapi_client.rb +++ b/lib/openapi_client.rb @@ -1,7 +1,7 @@ =begin #Lob -#The Lob API is organized around REST. Our API is designed to have predictable, resource-oriented URLs and uses HTTP response codes to indicate any API errors.

Looking for our [previous documentation](https://lob.github.io/legacy-docs/)? +#The Lob API is organized around REST. Our API is designed to have predictable, resource-oriented URLs and uses HTTP response codes to indicate any API errors.

Looking for our [previous documentation](https://lob.github.io/legacy-docs/)? The version of the OpenAPI document: 1.3.0 Contact: lob-openapi@lob.com diff --git a/lib/openapi_client/models/multiple_components.rb b/lib/openapi_client/models/multiple_components.rb index f1d1e35..b42ea4c 100755 --- a/lib/openapi_client/models/multiple_components.rb +++ b/lib/openapi_client/models/multiple_components.rb @@ -1,7 +1,7 @@ =begin #Lob -#The Lob API is organized around REST. Our API is designed to have predictable, resource-oriented URLs and uses HTTP response codes to indicate any API errors.

Looking for our [previous documentation](https://lob.github.io/legacy-docs/)? +#The Lob API is organized around REST. Our API is designed to have predictable, resource-oriented URLs and uses HTTP response codes to indicate any API errors.

Looking for our [previous documentation](https://lob.github.io/legacy-docs/)? The version of the OpenAPI document: 1.3.0 Contact: lob-openapi@lob.com @@ -13,18 +13,18 @@ require 'date' require 'time' -module OpenapiClient +module Lob class MultipleComponents # The intended recipient, typically a person's or firm's name. attr_accessor :recipient - # 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` + # 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` attr_accessor :primary_line - # The secondary delivery line of the address. This field is typically empty but may contain information if `primary_line` is too long. + # The secondary delivery line of the address. This field is typically empty but may contain information if `primary_line` is too long. attr_accessor :secondary_line - # Only present for addresses in Puerto Rico. An urbanization refers to an area, sector, or development within a city. See [USPS documentation](https://pe.usps.com/text/pub28/28api_008.htm#:~:text=I51.,-4%20Urbanizations&text=In%20Puerto%20Rico%2C%20identical%20street,placed%20before%20the%20urbanization%20name.) for clarification. + # Only present for addresses in Puerto Rico. An urbanization refers to an area, sector, or development within a city. See [USPS documentation](https://pe.usps.com/text/pub28/28api_008.htm#:~:text=I51.,-4%20Urbanizations&text=In%20Puerto%20Rico%2C%20identical%20street,placed%20before%20the%20urbanization%20name.) for clarification. attr_accessor :urbanization attr_accessor :city @@ -35,7 +35,7 @@ class MultipleComponents # Required if `city` and `state` are not passed in. If included, must be formatted as a US ZIP or ZIP+4 (e.g. `94107`, `941072282`, `94107-2282`). attr_accessor :zip_code - # ID that is returned in the response body for the verification + # ID that is returned in the response body for the verification attr_accessor :transient_id # Attribute mapping from ruby-style variable name to JSON key. @@ -82,13 +82,13 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `OpenapiClient::MultipleComponents` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Lob::MultipleComponents` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `OpenapiClient::MultipleComponents`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Lob::MultipleComponents`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect end h[k.to_sym] = v } @@ -359,7 +359,7 @@ def _deserialize(type, value) end else # model # models (e.g. Pet) or oneOf - klass = OpenapiClient.const_get(type) + klass = Lob.const_get(type) klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/lib/openapi_client/models/us_verification.rb b/lib/openapi_client/models/us_verification.rb index 00e5411..7230bab 100755 --- a/lib/openapi_client/models/us_verification.rb +++ b/lib/openapi_client/models/us_verification.rb @@ -1,7 +1,7 @@ =begin #Lob -#The Lob API is organized around REST. Our API is designed to have predictable, resource-oriented URLs and uses HTTP response codes to indicate any API errors.

Looking for our [previous documentation](https://lob.github.io/legacy-docs/)? +#The Lob API is organized around REST. Our API is designed to have predictable, resource-oriented URLs and uses HTTP response codes to indicate any API errors.

Looking for our [previous documentation](https://lob.github.io/legacy-docs/)? The version of the OpenAPI document: 1.3.0 Contact: lob-openapi@lob.com @@ -13,7 +13,7 @@ require 'date' require 'time' -module OpenapiClient +module Lob class UsVerification # Unique identifier prefixed with `us_ver_`. attr_accessor :id @@ -21,22 +21,22 @@ class UsVerification # The intended recipient, typically a person's or firm's name. attr_accessor :recipient - # 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` + # 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` attr_accessor :primary_line - # The secondary delivery line of the address. This field is typically empty but may contain information if `primary_line` is too long. + # The secondary delivery line of the address. This field is typically empty but may contain information if `primary_line` is too long. attr_accessor :secondary_line - # Only present for addresses in Puerto Rico. An urbanization refers to an area, sector, or development within a city. See [USPS documentation](https://pe.usps.com/text/pub28/28api_008.htm#:~:text=I51.,-4%20Urbanizations&text=In%20Puerto%20Rico%2C%20identical%20street,placed%20before%20the%20urbanization%20name.) for clarification. + # Only present for addresses in Puerto Rico. An urbanization refers to an area, sector, or development within a city. See [USPS documentation](https://pe.usps.com/text/pub28/28api_008.htm#:~:text=I51.,-4%20Urbanizations&text=In%20Puerto%20Rico%2C%20identical%20street,placed%20before%20the%20urbanization%20name.) for clarification. attr_accessor :urbanization - # Combination of the following applicable `components`: * City (`city`) * State (`state`) * ZIP code (`zip_code`) * ZIP+4 (`zip_code_plus_4`) + # Combination of the following applicable `components`: * City (`city`) * State (`state`) * ZIP code (`zip_code`) * ZIP+4 (`zip_code_plus_4`) attr_accessor :last_line - # Summarizes the deliverability of the `us_verification` object. For full details, see the `deliverability_analysis` field. Possible values are: * `deliverable` – The address is deliverable by the USPS. * `deliverable_unnecessary_unit` – The address is deliverable, but the secondary unit information is unnecessary. * `deliverable_incorrect_unit` – The address is deliverable to the building's default address but the secondary unit provided may not exist. There is a chance the mail will not reach the intended recipient. * `deliverable_missing_unit` – The address is deliverable to the building's default address but is missing secondary unit information. There is a chance the mail will not reach the intended recipient. * `undeliverable` – The address is not deliverable according to the USPS. + # Summarizes the deliverability of the `us_verification` object. For full details, see the `deliverability_analysis` field. Possible values are: * `deliverable` – The address is deliverable by the USPS. * `deliverable_unnecessary_unit` – The address is deliverable, but the secondary unit information is unnecessary. * `deliverable_incorrect_unit` – The address is deliverable to the building's default address but the secondary unit provided may not exist. There is a chance the mail will not reach the intended recipient. * `deliverable_missing_unit` – The address is deliverable to the building's default address but is missing secondary unit information. There is a chance the mail will not reach the intended recipient. * `undeliverable` – The address is not deliverable according to the USPS. attr_accessor :deliverability - # This field indicates whether an address was found in a more comprehensive address dataset that includes sources from the USPS, open source mapping data, and our proprietary mail delivery data. This field can be interpreted as a representation of whether an address is a real location or not. Additionally a valid address may contradict the deliverability field since an address can be a real valid location but the USPS may not deliver to that address. + # This field indicates whether an address was found in a more comprehensive address dataset that includes sources from the USPS, open source mapping data, and our proprietary mail delivery data. This field can be interpreted as a representation of whether an address is a real location or not. Additionally a valid address may contradict the deliverability field since an address can be a real valid location but the USPS may not deliver to that address. attr_accessor :valid_address attr_accessor :components @@ -47,7 +47,7 @@ class UsVerification attr_accessor :object - # ID that is returned in the response body for the verification + # ID that is returned in the response body for the verification attr_accessor :transient_id class EnumAttributeValidator @@ -126,13 +126,13 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `OpenapiClient::UsVerification` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Lob::UsVerification` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `OpenapiClient::UsVerification`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Lob::UsVerification`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect end h[k.to_sym] = v } @@ -415,7 +415,7 @@ def _deserialize(type, value) end else # model # models (e.g. Pet) or oneOf - klass = OpenapiClient.const_get(type) + klass = Lob.const_get(type) klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/lib/openapi_client/models/us_verification_or_error.rb b/lib/openapi_client/models/us_verification_or_error.rb index 30e7b5b..f4a99ea 100755 --- a/lib/openapi_client/models/us_verification_or_error.rb +++ b/lib/openapi_client/models/us_verification_or_error.rb @@ -1,7 +1,7 @@ =begin #Lob -#The Lob API is organized around REST. Our API is designed to have predictable, resource-oriented URLs and uses HTTP response codes to indicate any API errors.

Looking for our [previous documentation](https://lob.github.io/legacy-docs/)? +#The Lob API is organized around REST. Our API is designed to have predictable, resource-oriented URLs and uses HTTP response codes to indicate any API errors.

Looking for our [previous documentation](https://lob.github.io/legacy-docs/)? The version of the OpenAPI document: 1.3.0 Contact: lob-openapi@lob.com @@ -13,8 +13,8 @@ require 'date' require 'time' -module OpenapiClient - # A model used to represent an entry in a result list where the entry can either be a us_verification or an Error. The SDK will perform necessary casting into the correct corresponding type. +module Lob + # A model used to represent an entry in a result list where the entry can either be a us_verification or an Error. The SDK will perform necessary casting into the correct corresponding type. class UsVerificationOrError # Unique identifier prefixed with `us_ver_`. attr_accessor :id @@ -22,13 +22,13 @@ class UsVerificationOrError # The intended recipient, typically a person's or firm's name. attr_accessor :recipient - # 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` + # 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` attr_accessor :primary_line - # The secondary delivery line of the address. This field is typically empty but may contain information if `primary_line` is too long. + # The secondary delivery line of the address. This field is typically empty but may contain information if `primary_line` is too long. attr_accessor :secondary_line - # Only present for addresses in Puerto Rico. An urbanization refers to an area, sector, or development within a city. See [USPS documentation](https://pe.usps.com/text/pub28/28api_008.htm#:~:text=I51.,-4%20Urbanizations&text=In%20Puerto%20Rico%2C%20identical%20street,placed%20before%20the%20urbanization%20name.) for clarification. + # Only present for addresses in Puerto Rico. An urbanization refers to an area, sector, or development within a city. See [USPS documentation](https://pe.usps.com/text/pub28/28api_008.htm#:~:text=I51.,-4%20Urbanizations&text=In%20Puerto%20Rico%2C%20identical%20street,placed%20before%20the%20urbanization%20name.) for clarification. attr_accessor :urbanization attr_accessor :last_line @@ -43,7 +43,7 @@ class UsVerificationOrError attr_accessor :object - # ID that is returned in the response body for the verification + # ID that is returned in the response body for the verification attr_accessor :transient_id attr_accessor :error @@ -124,13 +124,13 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `OpenapiClient::UsVerificationOrError` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Lob::UsVerificationOrError` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `OpenapiClient::UsVerificationOrError`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Lob::UsVerificationOrError`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect end h[k.to_sym] = v } @@ -413,7 +413,7 @@ def _deserialize(type, value) end else # model # models (e.g. Pet) or oneOf - klass = OpenapiClient.const_get(type) + klass = Lob.const_get(type) klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/lib/openapi_client/models/us_verifications.rb b/lib/openapi_client/models/us_verifications.rb index cffb9c4..7d3330a 100755 --- a/lib/openapi_client/models/us_verifications.rb +++ b/lib/openapi_client/models/us_verifications.rb @@ -1,7 +1,7 @@ =begin #Lob -#The Lob API is organized around REST. Our API is designed to have predictable, resource-oriented URLs and uses HTTP response codes to indicate any API errors.

Looking for our [previous documentation](https://lob.github.io/legacy-docs/)? +#The Lob API is organized around REST. Our API is designed to have predictable, resource-oriented URLs and uses HTTP response codes to indicate any API errors.

Looking for our [previous documentation](https://lob.github.io/legacy-docs/)? The version of the OpenAPI document: 1.3.0 Contact: lob-openapi@lob.com @@ -13,7 +13,7 @@ require 'date' require 'time' -module OpenapiClient +module Lob class UsVerifications attr_accessor :addresses @@ -51,13 +51,13 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `OpenapiClient::UsVerifications` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Lob::UsVerifications` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `OpenapiClient::UsVerifications`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Lob::UsVerifications`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect end h[k.to_sym] = v } @@ -194,7 +194,7 @@ def _deserialize(type, value) end else # model # models (e.g. Pet) or oneOf - klass = OpenapiClient.const_get(type) + klass = Lob.const_get(type) klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/lib/openapi_client/models/us_verifications_writable.rb b/lib/openapi_client/models/us_verifications_writable.rb index 0bb99ef..b171d97 100755 --- a/lib/openapi_client/models/us_verifications_writable.rb +++ b/lib/openapi_client/models/us_verifications_writable.rb @@ -1,7 +1,7 @@ =begin #Lob -#The Lob API is organized around REST. Our API is designed to have predictable, resource-oriented URLs and uses HTTP response codes to indicate any API errors.

Looking for our [previous documentation](https://lob.github.io/legacy-docs/)? +#The Lob API is organized around REST. Our API is designed to have predictable, resource-oriented URLs and uses HTTP response codes to indicate any API errors.

Looking for our [previous documentation](https://lob.github.io/legacy-docs/)? The version of the OpenAPI document: 1.3.0 Contact: lob-openapi@lob.com @@ -13,21 +13,21 @@ require 'date' require 'time' -module OpenapiClient +module Lob class UsVerificationsWritable - # 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._ + # 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. attr_accessor :recipient - # 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` + # 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` attr_accessor :primary_line - # The secondary delivery line of the address. This field is typically empty but may contain information if `primary_line` is too long. + # The secondary delivery line of the address. This field is typically empty but may contain information if `primary_line` is too long. attr_accessor :secondary_line - # Only present for addresses in Puerto Rico. An urbanization refers to an area, sector, or development within a city. See [USPS documentation](https://pe.usps.com/text/pub28/28api_008.htm#:~:text=I51.,-4%20Urbanizations&text=In%20Puerto%20Rico%2C%20identical%20street,placed%20before%20the%20urbanization%20name.) for clarification. + # Only present for addresses in Puerto Rico. An urbanization refers to an area, sector, or development within a city. See [USPS documentation](https://pe.usps.com/text/pub28/28api_008.htm#:~:text=I51.,-4%20Urbanizations&text=In%20Puerto%20Rico%2C%20identical%20street,placed%20before%20the%20urbanization%20name.) for clarification. attr_accessor :urbanization attr_accessor :city @@ -38,7 +38,7 @@ class UsVerificationsWritable # Required if `city` and `state` are not passed in. If included, must be formatted as a US ZIP or ZIP+4 (e.g. `94107`, `941072282`, `94107-2282`). attr_accessor :zip_code - # ID that is returned in the response body for the verification + # ID that is returned in the response body for the verification attr_accessor :transient_id # Attribute mapping from ruby-style variable name to JSON key. @@ -87,13 +87,13 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `OpenapiClient::UsVerificationsWritable` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Lob::UsVerificationsWritable` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `OpenapiClient::UsVerificationsWritable`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Lob::UsVerificationsWritable`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect end h[k.to_sym] = v } @@ -375,7 +375,7 @@ def _deserialize(type, value) end else # model # models (e.g. Pet) or oneOf - klass = OpenapiClient.const_get(type) + klass = Lob.const_get(type) klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/lib/openapi_client/version.rb b/lib/openapi_client/version.rb index 5ec1327..23875a1 100755 --- a/lib/openapi_client/version.rb +++ b/lib/openapi_client/version.rb @@ -11,5 +11,5 @@ =end module Lob - VERSION = '6.0.6' + VERSION = '6.0.7' end