lob 6.0.0.pre.rc → 6.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CODE_SNIPPETS.md +1871 -0
- data/Gemfile.lock +7 -7
- data/MIGRATION.md +174 -0
- data/README.md +10 -34
- data/__tests__/Api/Address.unit.rb +1 -1
- data/__tests__/Api/BankAccount.unit.rb +1 -1
- data/__tests__/Api/BillingGroup.unit.rb +1 -1
- data/__tests__/Api/Card.unit.rb +1 -1
- data/__tests__/Api/CardOrder.unit.rb +1 -1
- data/__tests__/Api/Check.unit.rb +1 -1
- data/__tests__/Api/IntlAutocompletion.unit.rb +1 -1
- data/__tests__/Api/IntlVerification.unit.rb +1 -1
- data/__tests__/Api/Letter.unit.rb +1 -1
- data/__tests__/Api/Postcard.unit.rb +1 -1
- data/__tests__/Api/ReverseGeocodeLookup.unit.rb +1 -1
- data/__tests__/Api/SelfMailer.unit.rb +1 -1
- data/__tests__/Api/Template.unit.rb +1 -1
- data/__tests__/Api/TemplateVersion.unit.rb +1 -1
- data/__tests__/Api/UsAutocompletion.unit.rb +8 -8
- data/__tests__/Api/UsVerification.unit.rb +1 -1
- data/__tests__/Api/ZipLookup.unit.rb +1 -1
- data/__tests__/Integration/Address.spec.rb +3 -3
- data/__tests__/Integration/BankAccount.spec.rb +3 -3
- data/__tests__/Integration/BillingGroup.spec.rb +3 -3
- data/__tests__/Integration/Card.spec.rb +3 -3
- data/__tests__/Integration/CardOrder.spec.rb +3 -3
- data/__tests__/Integration/Check.spec.rb +3 -3
- data/__tests__/Integration/IntlAutocompletion.spec.rb +3 -3
- data/__tests__/Integration/IntlVerification.spec.rb +3 -3
- data/__tests__/Integration/Letter.spec.rb +3 -3
- data/__tests__/Integration/Postcard.spec.rb +3 -3
- data/__tests__/Integration/ReverseGeocodeLookup.spec.rb +1 -1
- data/__tests__/Integration/SelfMailer.spec.rb +15 -9
- data/__tests__/Integration/Template.spec.rb +3 -3
- data/__tests__/Integration/TemplateVersion.spec.rb +3 -3
- data/__tests__/Integration/UsAutocompletion.spec.rb +3 -3
- data/__tests__/Integration/UsVerification.spec.rb +3 -3
- data/__tests__/Integration/ZipLookup.spec.rb +1 -1
- data/__tests__/TestFixtures.rb +5 -5
- data/docs/Address.md +2 -2
- data/docs/AddressDeletion.md +2 -2
- data/docs/AddressDomestic.md +2 -2
- data/docs/AddressDomesticExpanded.md +2 -2
- data/docs/AddressEditable.md +2 -2
- data/docs/AddressList.md +2 -2
- data/docs/AddressesApi.md +18 -18
- data/docs/BankAccount.md +2 -2
- data/docs/BankAccountDeletion.md +2 -2
- data/docs/BankAccountList.md +2 -2
- data/docs/BankAccountVerify.md +2 -2
- data/docs/BankAccountWritable.md +2 -2
- data/docs/BankAccountsApi.md +23 -23
- data/docs/BankTypeEnum.md +2 -2
- data/docs/BillingGroup.md +2 -2
- data/docs/BillingGroupEditable.md +2 -2
- data/docs/BillingGroupList.md +2 -2
- data/docs/BillingGroupsApi.md +20 -20
- data/docs/Buckslip.md +2 -2
- data/docs/BuckslipDeletion.md +2 -2
- data/docs/BuckslipEditable.md +2 -2
- data/docs/BuckslipOrder.md +2 -2
- data/docs/BuckslipOrderEditable.md +2 -2
- data/docs/BuckslipOrdersApi.md +10 -10
- data/docs/BuckslipOrdersList.md +2 -2
- data/docs/BuckslipUpdatable.md +2 -2
- data/docs/BuckslipsApi.md +23 -23
- data/docs/BuckslipsList.md +2 -2
- data/docs/BulkError.md +2 -2
- data/docs/BulkErrorProperties.md +2 -2
- data/docs/Campaign.md +2 -2
- data/docs/CampaignCreative.md +2 -2
- data/docs/CampaignDeletion.md +2 -2
- data/docs/CampaignUpdatable.md +2 -2
- data/docs/CampaignWritable.md +2 -2
- data/docs/CampaignsApi.md +23 -23
- data/docs/CampaignsList.md +2 -2
- data/docs/Card.md +2 -2
- data/docs/CardDeletion.md +2 -2
- data/docs/CardEditable.md +2 -2
- data/docs/CardList.md +2 -2
- data/docs/CardOrder.md +2 -2
- data/docs/CardOrderEditable.md +2 -2
- data/docs/CardOrderList.md +2 -2
- data/docs/CardOrdersApi.md +10 -10
- data/docs/CardUpdatable.md +2 -2
- data/docs/CardsApi.md +23 -23
- data/docs/Check.md +2 -2
- data/docs/CheckDeletion.md +2 -2
- data/docs/CheckEditable.md +2 -2
- data/docs/CheckList.md +2 -2
- data/docs/ChecksApi.md +20 -20
- data/docs/CmpScheduleType.md +2 -2
- data/docs/CmpUseType.md +2 -2
- data/docs/CountryExtended.md +2 -2
- data/docs/CountryExtendedExpanded.md +2 -2
- data/docs/CreativePatch.md +2 -2
- data/docs/CreativeResponse.md +2 -2
- data/docs/CreativeWritable.md +2 -2
- data/docs/CreativesApi.md +15 -15
- data/docs/CustomEnvelopeReturned.md +2 -2
- data/docs/DefaultApi.md +5 -5
- data/docs/DeliverabilityAnalysis.md +2 -2
- data/docs/DpvFootnote.md +2 -2
- data/docs/EngineHtml.md +2 -2
- data/docs/EventType.md +2 -2
- data/docs/Events.md +2 -2
- data/docs/Export.md +2 -2
- data/docs/ExportModel.md +2 -2
- data/docs/GeocodeAddresses.md +2 -2
- data/docs/GeocodeComponents.md +2 -2
- data/docs/HTTPValidationError.md +2 -2
- data/docs/IdentityValidation.md +2 -2
- data/docs/IdentityValidationApi.md +6 -6
- data/docs/InlineObject.md +2 -2
- data/docs/IntlAutocompletions.md +2 -2
- data/docs/IntlAutocompletionsApi.md +6 -6
- data/docs/IntlAutocompletionsWritable.md +2 -2
- data/docs/IntlComponents.md +2 -2
- data/docs/IntlSuggestions.md +2 -2
- data/docs/IntlVerification.md +2 -2
- data/docs/IntlVerificationOrError.md +2 -2
- data/docs/IntlVerificationWritable.md +2 -2
- data/docs/IntlVerifications.md +2 -2
- data/docs/IntlVerificationsApi.md +11 -11
- data/docs/IntlVerificationsPayload.md +2 -2
- data/docs/Letter.md +2 -2
- data/docs/LetterCustomEnvelope.md +2 -2
- data/docs/LetterDeletion.md +2 -2
- data/docs/LetterDetailsReturned.md +2 -2
- data/docs/LetterDetailsWritable.md +2 -2
- data/docs/LetterEditable.md +2 -2
- data/docs/LetterList.md +2 -2
- data/docs/LettersApi.md +20 -20
- data/docs/LobConfidenceScore.md +2 -2
- data/docs/LobError.md +2 -2
- data/docs/Location.md +2 -2
- data/docs/LocationAnalysis.md +2 -2
- data/docs/MailType.md +2 -2
- data/docs/MultiLineAddress.md +2 -2
- data/docs/MultipleComponents.md +2 -2
- data/docs/MultipleComponentsIntl.md +2 -2
- data/docs/MultipleComponentsList.md +2 -2
- data/docs/PlaceholderModel.md +2 -2
- data/docs/Postcard.md +2 -2
- data/docs/PostcardDeletion.md +2 -2
- data/docs/PostcardDetailsReturned.md +2 -2
- data/docs/PostcardDetailsWritable.md +2 -2
- data/docs/PostcardEditable.md +2 -2
- data/docs/PostcardList.md +2 -2
- data/docs/PostcardSize.md +2 -2
- data/docs/PostcardsApi.md +21 -21
- data/docs/QrCode.md +2 -2
- data/docs/ReturnEnvelope.md +2 -2
- data/docs/ReverseGeocode.md +2 -2
- data/docs/ReverseGeocodeLookupsApi.md +6 -6
- data/docs/SelfMailer.md +2 -2
- data/docs/SelfMailerDeletion.md +2 -2
- data/docs/SelfMailerEditable.md +2 -2
- data/docs/SelfMailerList.md +2 -2
- data/docs/SelfMailerSize.md +2 -2
- data/docs/SelfMailersApi.md +21 -21
- data/docs/SortBy.md +2 -2
- data/docs/SortBy1.md +2 -2
- data/docs/SortBy2.md +2 -2
- data/docs/SortBy3.md +2 -2
- data/docs/SortByDateModified.md +2 -2
- data/docs/Suggestions.md +2 -2
- data/docs/Template.md +2 -2
- data/docs/TemplateDeletion.md +2 -2
- data/docs/TemplateList.md +2 -2
- data/docs/TemplateUpdate.md +2 -2
- data/docs/TemplateVersion.md +2 -2
- data/docs/TemplateVersionDeletion.md +2 -2
- data/docs/TemplateVersionList.md +2 -2
- data/docs/TemplateVersionUpdatable.md +2 -2
- data/docs/TemplateVersionWritable.md +2 -2
- data/docs/TemplateVersionsApi.md +23 -23
- data/docs/TemplateWritable.md +2 -2
- data/docs/TemplatesApi.md +23 -23
- data/docs/Thumbnail.md +2 -2
- data/docs/TrackingEventCertified.md +2 -2
- data/docs/TrackingEventDetails.md +2 -2
- data/docs/TrackingEventNormal.md +2 -2
- data/docs/Upload.md +2 -2
- data/docs/UploadCreateExport.md +2 -2
- data/docs/UploadFile.md +2 -2
- data/docs/UploadState.md +2 -2
- data/docs/UploadUpdatable.md +2 -2
- data/docs/UploadWritable.md +2 -2
- data/docs/UploadsApi.md +36 -36
- data/docs/UsAutocompletions.md +2 -2
- data/docs/UsAutocompletionsApi.md +6 -6
- data/docs/UsAutocompletionsWritable.md +2 -2
- data/docs/UsComponents.md +2 -2
- data/docs/UsVerification.md +2 -2
- data/docs/UsVerificationOrError.md +2 -2
- data/docs/UsVerifications.md +2 -2
- data/docs/UsVerificationsApi.md +11 -11
- data/docs/UsVerificationsWritable.md +2 -2
- data/docs/ValidationError.md +2 -2
- data/docs/Zip.md +2 -2
- data/docs/ZipCodeType.md +2 -2
- data/docs/ZipEditable.md +2 -2
- data/docs/ZipLookupCity.md +2 -2
- data/docs/ZipLookupsApi.md +6 -6
- data/lib/openapi_client/api/addresses_api.rb +1 -1
- data/lib/openapi_client/api/bank_accounts_api.rb +1 -1
- data/lib/openapi_client/api/billing_groups_api.rb +1 -1
- data/lib/openapi_client/api/buckslip_orders_api.rb +1 -1
- data/lib/openapi_client/api/buckslips_api.rb +1 -1
- data/lib/openapi_client/api/campaigns_api.rb +1 -1
- data/lib/openapi_client/api/card_orders_api.rb +1 -1
- data/lib/openapi_client/api/cards_api.rb +1 -1
- data/lib/openapi_client/api/checks_api.rb +1 -1
- data/lib/openapi_client/api/creatives_api.rb +1 -1
- data/lib/openapi_client/api/default_api.rb +1 -1
- data/lib/openapi_client/api/identity_validation_api.rb +1 -1
- data/lib/openapi_client/api/intl_autocompletions_api.rb +1 -1
- data/lib/openapi_client/api/intl_verifications_api.rb +1 -1
- data/lib/openapi_client/api/letters_api.rb +1 -1
- data/lib/openapi_client/api/postcards_api.rb +1 -1
- data/lib/openapi_client/api/reverse_geocode_lookups_api.rb +1 -1
- data/lib/openapi_client/api/self_mailers_api.rb +1 -1
- data/lib/openapi_client/api/template_versions_api.rb +1 -1
- data/lib/openapi_client/api/templates_api.rb +1 -1
- data/lib/openapi_client/api/uploads_api.rb +1 -1
- data/lib/openapi_client/api/us_autocompletions_api.rb +1 -1
- data/lib/openapi_client/api/us_verifications_api.rb +1 -1
- data/lib/openapi_client/api/zip_lookups_api.rb +1 -1
- data/lib/openapi_client/api_client.rb +2 -2
- data/lib/openapi_client/api_error.rb +1 -1
- data/lib/openapi_client/configuration.rb +1 -1
- data/lib/openapi_client/models/address.rb +4 -4
- data/lib/openapi_client/models/address_deletion.rb +4 -4
- data/lib/openapi_client/models/address_domestic.rb +4 -4
- data/lib/openapi_client/models/address_domestic_expanded.rb +4 -4
- data/lib/openapi_client/models/address_editable.rb +4 -4
- data/lib/openapi_client/models/address_list.rb +4 -4
- data/lib/openapi_client/models/bank_account.rb +4 -4
- data/lib/openapi_client/models/bank_account_deletion.rb +4 -4
- data/lib/openapi_client/models/bank_account_list.rb +4 -4
- data/lib/openapi_client/models/bank_account_verify.rb +4 -4
- data/lib/openapi_client/models/bank_account_writable.rb +4 -4
- data/lib/openapi_client/models/bank_type_enum.rb +1 -1
- data/lib/openapi_client/models/billing_group.rb +4 -4
- data/lib/openapi_client/models/billing_group_editable.rb +4 -4
- data/lib/openapi_client/models/billing_group_list.rb +4 -4
- data/lib/openapi_client/models/buckslip.rb +4 -4
- data/lib/openapi_client/models/buckslip_deletion.rb +4 -4
- data/lib/openapi_client/models/buckslip_editable.rb +4 -4
- data/lib/openapi_client/models/buckslip_order.rb +4 -4
- data/lib/openapi_client/models/buckslip_order_editable.rb +4 -4
- data/lib/openapi_client/models/buckslip_orders_list.rb +4 -4
- data/lib/openapi_client/models/buckslip_updatable.rb +4 -4
- data/lib/openapi_client/models/buckslips_list.rb +4 -4
- data/lib/openapi_client/models/bulk_error.rb +4 -4
- data/lib/openapi_client/models/bulk_error_properties.rb +4 -4
- data/lib/openapi_client/models/campaign.rb +4 -4
- data/lib/openapi_client/models/campaign_creative.rb +4 -4
- data/lib/openapi_client/models/campaign_deletion.rb +4 -4
- data/lib/openapi_client/models/campaign_updatable.rb +4 -4
- data/lib/openapi_client/models/campaign_writable.rb +4 -4
- data/lib/openapi_client/models/campaigns_list.rb +4 -4
- data/lib/openapi_client/models/card.rb +4 -4
- data/lib/openapi_client/models/card_deletion.rb +4 -4
- data/lib/openapi_client/models/card_editable.rb +4 -4
- data/lib/openapi_client/models/card_list.rb +4 -4
- data/lib/openapi_client/models/card_order.rb +4 -4
- data/lib/openapi_client/models/card_order_editable.rb +4 -4
- data/lib/openapi_client/models/card_order_list.rb +4 -4
- data/lib/openapi_client/models/card_updatable.rb +4 -4
- data/lib/openapi_client/models/check.rb +18 -8
- data/lib/openapi_client/models/check_deletion.rb +4 -4
- data/lib/openapi_client/models/check_editable.rb +18 -8
- data/lib/openapi_client/models/check_list.rb +4 -4
- data/lib/openapi_client/models/chk_use_type.rb +38 -0
- data/lib/openapi_client/models/cmp_schedule_type.rb +1 -1
- data/lib/openapi_client/models/cmp_use_type.rb +1 -1
- data/lib/openapi_client/models/country_extended.rb +1 -1
- data/lib/openapi_client/models/country_extended_expanded.rb +1 -1
- data/lib/openapi_client/models/creative_patch.rb +4 -4
- data/lib/openapi_client/models/creative_response.rb +4 -4
- data/lib/openapi_client/models/creative_writable.rb +5 -5
- data/lib/openapi_client/models/custom_envelope_returned.rb +4 -4
- data/lib/openapi_client/models/deliverability_analysis.rb +4 -4
- data/lib/openapi_client/models/dpv_footnote.rb +1 -1
- data/lib/openapi_client/models/engine_html.rb +1 -1
- data/lib/openapi_client/models/event_type.rb +4 -4
- data/lib/openapi_client/models/events.rb +4 -4
- data/lib/openapi_client/models/export.rb +4 -4
- data/lib/openapi_client/models/export_model.rb +4 -4
- data/lib/openapi_client/models/geocode_addresses.rb +4 -4
- data/lib/openapi_client/models/geocode_components.rb +4 -4
- data/lib/openapi_client/models/http_validation_error.rb +4 -4
- data/lib/openapi_client/models/identity_validation.rb +4 -4
- data/lib/openapi_client/models/inline_object.rb +4 -4
- data/lib/openapi_client/models/intl_autocompletions.rb +4 -4
- data/lib/openapi_client/models/intl_autocompletions_writable.rb +4 -4
- data/lib/openapi_client/models/intl_components.rb +4 -4
- data/lib/openapi_client/models/intl_suggestions.rb +4 -4
- data/lib/openapi_client/models/intl_verification.rb +4 -4
- data/lib/openapi_client/models/intl_verification_or_error.rb +4 -4
- data/lib/openapi_client/models/intl_verification_writable.rb +4 -4
- data/lib/openapi_client/models/intl_verifications.rb +4 -4
- data/lib/openapi_client/models/intl_verifications_payload.rb +4 -4
- data/lib/openapi_client/models/letter.rb +30 -9
- data/lib/openapi_client/models/letter_custom_envelope.rb +4 -4
- data/lib/openapi_client/models/letter_deletion.rb +4 -4
- data/lib/openapi_client/models/letter_details_returned.rb +5 -5
- data/lib/openapi_client/models/letter_details_writable.rb +4 -4
- data/lib/openapi_client/models/letter_editable.rb +18 -8
- data/lib/openapi_client/models/letter_list.rb +4 -4
- data/lib/openapi_client/models/lob_confidence_score.rb +4 -4
- data/lib/openapi_client/models/lob_error.rb +4 -4
- data/lib/openapi_client/models/location.rb +4 -4
- data/lib/openapi_client/models/location_analysis.rb +4 -4
- data/lib/openapi_client/models/ltr_use_type.rb +38 -0
- data/lib/openapi_client/models/mail_type.rb +1 -1
- data/lib/openapi_client/models/multi_line_address.rb +4 -4
- data/lib/openapi_client/models/multiple_components.rb +4 -4
- data/lib/openapi_client/models/multiple_components_intl.rb +4 -4
- data/lib/openapi_client/models/multiple_components_list.rb +4 -4
- data/lib/openapi_client/models/optional_address_column_mapping.rb +259 -0
- data/lib/openapi_client/models/placeholder_model.rb +4 -4
- data/lib/openapi_client/models/postcard.rb +18 -8
- data/lib/openapi_client/models/postcard_deletion.rb +4 -4
- data/lib/openapi_client/models/postcard_details_returned.rb +4 -4
- data/lib/openapi_client/models/postcard_details_writable.rb +4 -4
- data/lib/openapi_client/models/postcard_editable.rb +18 -8
- data/lib/openapi_client/models/postcard_list.rb +4 -4
- data/lib/openapi_client/models/postcard_size.rb +1 -1
- data/lib/openapi_client/models/psc_use_type.rb +38 -0
- data/lib/openapi_client/models/qr_code.rb +4 -4
- data/lib/openapi_client/models/required_address_column_mapping.rb +285 -0
- data/lib/openapi_client/models/return_envelope.rb +4 -4
- data/lib/openapi_client/models/reverse_geocode.rb +4 -4
- data/lib/openapi_client/models/self_mailer.rb +18 -8
- data/lib/openapi_client/models/self_mailer_deletion.rb +4 -4
- data/lib/openapi_client/models/self_mailer_editable.rb +18 -8
- data/lib/openapi_client/models/self_mailer_list.rb +4 -4
- data/lib/openapi_client/models/self_mailer_size.rb +1 -1
- data/lib/openapi_client/models/sfm_use_type.rb +38 -0
- data/lib/openapi_client/models/sort_by.rb +4 -4
- data/lib/openapi_client/models/sort_by1.rb +4 -4
- data/lib/openapi_client/models/sort_by2.rb +4 -4
- data/lib/openapi_client/models/sort_by3.rb +4 -4
- data/lib/openapi_client/models/sort_by_date_modified.rb +4 -4
- data/lib/openapi_client/models/suggestions.rb +4 -4
- data/lib/openapi_client/models/template.rb +4 -4
- data/lib/openapi_client/models/template_deletion.rb +4 -4
- data/lib/openapi_client/models/template_list.rb +4 -4
- data/lib/openapi_client/models/template_update.rb +4 -4
- data/lib/openapi_client/models/template_version.rb +4 -4
- data/lib/openapi_client/models/template_version_deletion.rb +4 -4
- data/lib/openapi_client/models/template_version_list.rb +4 -4
- data/lib/openapi_client/models/template_version_updatable.rb +4 -4
- data/lib/openapi_client/models/template_version_writable.rb +4 -4
- data/lib/openapi_client/models/template_writable.rb +4 -4
- data/lib/openapi_client/models/thumbnail.rb +4 -4
- data/lib/openapi_client/models/tracking_event_certified.rb +4 -4
- data/lib/openapi_client/models/tracking_event_details.rb +4 -4
- data/lib/openapi_client/models/tracking_event_normal.rb +4 -4
- data/lib/openapi_client/models/upload.rb +55 -48
- data/lib/openapi_client/models/upload_create_export.rb +4 -4
- data/lib/openapi_client/models/upload_file.rb +4 -4
- data/lib/openapi_client/models/upload_state.rb +1 -1
- data/lib/openapi_client/models/upload_updatable.rb +46 -19
- data/lib/openapi_client/models/upload_writable.rb +46 -30
- data/lib/openapi_client/models/uploads_metadata.rb +237 -0
- data/lib/openapi_client/models/us_autocompletions.rb +4 -4
- data/lib/openapi_client/models/us_autocompletions_writable.rb +4 -4
- data/lib/openapi_client/models/us_components.rb +7 -7
- data/lib/openapi_client/models/us_verification.rb +15 -5
- data/lib/openapi_client/models/us_verification_or_error.rb +4 -4
- data/lib/openapi_client/models/us_verifications.rb +4 -4
- data/lib/openapi_client/models/us_verifications_writable.rb +4 -4
- data/lib/openapi_client/models/validation_error.rb +4 -4
- data/lib/openapi_client/models/zip.rb +4 -4
- data/lib/openapi_client/models/zip_code_type.rb +1 -1
- data/lib/openapi_client/models/zip_editable.rb +4 -4
- data/lib/openapi_client/models/zip_lookup_city.rb +4 -4
- data/lib/openapi_client/version.rb +2 -2
- data/lib/openapi_client.rb +7 -0
- data/openapi_client.gemspec +1 -1
- data/spec/api/addresses_api_spec.rb +3 -3
- data/spec/api/bank_accounts_api_spec.rb +3 -3
- data/spec/api/billing_groups_api_spec.rb +3 -3
- data/spec/api/campaigns_api_spec.rb +3 -3
- data/spec/api/card_orders_api_spec.rb +3 -3
- data/spec/api/cards_api_spec.rb +3 -3
- data/spec/api/checks_api_spec.rb +3 -3
- data/spec/api/creatives_api_spec.rb +3 -3
- data/spec/api/default_api_spec.rb +3 -3
- data/spec/api/identity_validation_api_spec.rb +3 -3
- data/spec/api/intl_autocompletions_api_spec.rb +3 -3
- data/spec/api/intl_verifications_api_spec.rb +3 -3
- data/spec/api/letters_api_spec.rb +3 -3
- data/spec/api/postcards_api_spec.rb +3 -3
- data/spec/api/reverse_geocode_lookups_api_spec.rb +3 -3
- data/spec/api/self_mailers_api_spec.rb +3 -3
- data/spec/api/template_versions_api_spec.rb +3 -3
- data/spec/api/templates_api_spec.rb +3 -3
- data/spec/api/uploads_api_spec.rb +3 -3
- data/spec/api/us_autocompletions_api_spec.rb +3 -3
- data/spec/api/us_verifications_api_spec.rb +3 -3
- data/spec/api/zip_lookups_api_spec.rb +3 -3
- data/spec/api_client_spec.rb +29 -29
- data/spec/configuration_spec.rb +3 -3
- metadata +29 -20
@@ -13,7 +13,7 @@ OpenAPI Generator version: 5.2.1
|
|
13
13
|
require 'date'
|
14
14
|
require 'time'
|
15
15
|
|
16
|
-
module
|
16
|
+
module Lob
|
17
17
|
# A nested custom envelope object containing more information about the custom envelope used or `null` if a custom envelope was not used. Accepts an envelope ID for any customized envelope with available inventory. If no inventory is available for the specified ID, the letter will not be sent, and an error will be returned. If the letter has more than 6 sheets, it will be sent in a blank flat envelope. Custom envelopes may be created and ordered from the dashboard. This feature is exclusive to certain customers. Upgrade to the appropriate [Print & Mail Edition](https://dashboard.lob.com/#/settings/editions) to gain access.
|
18
18
|
class LetterCustomEnvelope
|
19
19
|
# The unique identifier of the custom envelope used.
|
@@ -79,13 +79,13 @@ module OpenapiClient
|
|
79
79
|
# @param [Hash] attributes Model attributes in the form of hash
|
80
80
|
def initialize(attributes = {})
|
81
81
|
if (!attributes.is_a?(Hash))
|
82
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
82
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Lob::LetterCustomEnvelope` initialize method"
|
83
83
|
end
|
84
84
|
|
85
85
|
# check to see if the attribute exists and convert string to symbol for hash key
|
86
86
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
87
87
|
if (!self.class.attribute_map.key?(k.to_sym))
|
88
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
88
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Lob::LetterCustomEnvelope`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
89
89
|
end
|
90
90
|
h[k.to_sym] = v
|
91
91
|
}
|
@@ -244,7 +244,7 @@ module OpenapiClient
|
|
244
244
|
end
|
245
245
|
else # model
|
246
246
|
# models (e.g. Pet) or oneOf
|
247
|
-
klass =
|
247
|
+
klass = Lob.const_get(type)
|
248
248
|
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
249
249
|
end
|
250
250
|
end
|
@@ -13,7 +13,7 @@ OpenAPI Generator version: 5.2.1
|
|
13
13
|
require 'date'
|
14
14
|
require 'time'
|
15
15
|
|
16
|
-
module
|
16
|
+
module Lob
|
17
17
|
# Lob uses RESTful HTTP response codes to indicate success or failure of an API request. In general, 2xx indicates success, 4xx indicate an input error, and 5xx indicates an error on Lob's end.
|
18
18
|
class LetterDeletion
|
19
19
|
# Unique identifier prefixed with `ltr_`.
|
@@ -80,13 +80,13 @@ module OpenapiClient
|
|
80
80
|
# @param [Hash] attributes Model attributes in the form of hash
|
81
81
|
def initialize(attributes = {})
|
82
82
|
if (!attributes.is_a?(Hash))
|
83
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
83
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Lob::LetterDeletion` initialize method"
|
84
84
|
end
|
85
85
|
|
86
86
|
# check to see if the attribute exists and convert string to symbol for hash key
|
87
87
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
88
88
|
if (!self.class.attribute_map.key?(k.to_sym))
|
89
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
89
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Lob::LetterDeletion`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
90
90
|
end
|
91
91
|
h[k.to_sym] = v
|
92
92
|
}
|
@@ -247,7 +247,7 @@ module OpenapiClient
|
|
247
247
|
end
|
248
248
|
else # model
|
249
249
|
# models (e.g. Pet) or oneOf
|
250
|
-
klass =
|
250
|
+
klass = Lob.const_get(type)
|
251
251
|
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
252
252
|
end
|
253
253
|
end
|
@@ -13,7 +13,7 @@ OpenAPI Generator version: 5.2.1
|
|
13
13
|
require 'date'
|
14
14
|
require 'time'
|
15
15
|
|
16
|
-
module
|
16
|
+
module Lob
|
17
17
|
# Properties that the letters in your Creative should have.
|
18
18
|
class LetterDetailsReturned
|
19
19
|
# Set this key to `true` if you would like to print in color, false for black and white.
|
@@ -95,7 +95,7 @@ module OpenapiClient
|
|
95
95
|
:'double_sided' => :'Boolean',
|
96
96
|
:'extra_service' => :'String',
|
97
97
|
:'mail_type' => :'MailType',
|
98
|
-
:'return_envelope' => Array[:'
|
98
|
+
:'return_envelope' => Array[:'Boolean', :'String'],
|
99
99
|
:'bleed' => :'Boolean',
|
100
100
|
:'file_original_url' => :'String'
|
101
101
|
}
|
@@ -115,13 +115,13 @@ module OpenapiClient
|
|
115
115
|
# @param [Hash] attributes Model attributes in the form of hash
|
116
116
|
def initialize(attributes = {})
|
117
117
|
if (!attributes.is_a?(Hash))
|
118
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
118
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Lob::LetterDetailsReturned` initialize method"
|
119
119
|
end
|
120
120
|
|
121
121
|
# check to see if the attribute exists and convert string to symbol for hash key
|
122
122
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
123
123
|
if (!self.class.attribute_map.key?(k.to_sym))
|
124
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
124
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Lob::LetterDetailsReturned`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
125
125
|
end
|
126
126
|
h[k.to_sym] = v
|
127
127
|
}
|
@@ -337,7 +337,7 @@ module OpenapiClient
|
|
337
337
|
end
|
338
338
|
else # model
|
339
339
|
# models (e.g. Pet) or oneOf
|
340
|
-
klass =
|
340
|
+
klass = Lob.const_get(type)
|
341
341
|
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
342
342
|
end
|
343
343
|
end
|
@@ -13,7 +13,7 @@ OpenAPI Generator version: 5.2.1
|
|
13
13
|
require 'date'
|
14
14
|
require 'time'
|
15
15
|
|
16
|
-
module
|
16
|
+
module Lob
|
17
17
|
# Properties that the letters in your Creative should have.
|
18
18
|
class LetterDetailsWritable
|
19
19
|
# Specifies the location of the address information that will show through the double-window envelope.
|
@@ -105,13 +105,13 @@ module OpenapiClient
|
|
105
105
|
# @param [Hash] attributes Model attributes in the form of hash
|
106
106
|
def initialize(attributes = {})
|
107
107
|
if (!attributes.is_a?(Hash))
|
108
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
108
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Lob::LetterDetailsWritable` initialize method"
|
109
109
|
end
|
110
110
|
|
111
111
|
# check to see if the attribute exists and convert string to symbol for hash key
|
112
112
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
113
113
|
if (!self.class.attribute_map.key?(k.to_sym))
|
114
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
114
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Lob::LetterDetailsWritable`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
115
115
|
end
|
116
116
|
h[k.to_sym] = v
|
117
117
|
}
|
@@ -334,7 +334,7 @@ module OpenapiClient
|
|
334
334
|
end
|
335
335
|
else # model
|
336
336
|
# models (e.g. Pet) or oneOf
|
337
|
-
klass =
|
337
|
+
klass = Lob.const_get(type)
|
338
338
|
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
339
339
|
end
|
340
340
|
end
|
@@ -13,7 +13,7 @@ OpenAPI Generator version: 5.2.1
|
|
13
13
|
require 'date'
|
14
14
|
require 'time'
|
15
15
|
|
16
|
-
module
|
16
|
+
module Lob
|
17
17
|
class LetterEditable
|
18
18
|
# An internal description that identifies this resource. Must be no longer than 255 characters.
|
19
19
|
attr_accessor :description
|
@@ -66,6 +66,8 @@ module OpenapiClient
|
|
66
66
|
|
67
67
|
attr_accessor :qr_code
|
68
68
|
|
69
|
+
attr_accessor :use_type
|
70
|
+
|
69
71
|
class EnumAttributeValidator
|
70
72
|
attr_reader :datatype
|
71
73
|
attr_reader :allowable_values
|
@@ -108,7 +110,8 @@ module OpenapiClient
|
|
108
110
|
:'extra_service' => :'extra_service',
|
109
111
|
:'cards' => :'cards',
|
110
112
|
:'billing_group_id' => :'billing_group_id',
|
111
|
-
:'qr_code' => :'qr_code'
|
113
|
+
:'qr_code' => :'qr_code',
|
114
|
+
:'use_type' => :'use_type'
|
112
115
|
}
|
113
116
|
end
|
114
117
|
|
@@ -137,7 +140,8 @@ module OpenapiClient
|
|
137
140
|
:'extra_service' => :'String',
|
138
141
|
:'cards' => :'Array<String>',
|
139
142
|
:'billing_group_id' => :'String',
|
140
|
-
:'qr_code' => :'QrCode'
|
143
|
+
:'qr_code' => :'QrCode',
|
144
|
+
:'use_type' => :'LtrUseType'
|
141
145
|
}
|
142
146
|
end
|
143
147
|
|
@@ -153,6 +157,7 @@ module OpenapiClient
|
|
153
157
|
:'from',
|
154
158
|
:'extra_service',
|
155
159
|
:'cards',
|
160
|
+
:'use_type'
|
156
161
|
])
|
157
162
|
end
|
158
163
|
|
@@ -160,13 +165,13 @@ module OpenapiClient
|
|
160
165
|
# @param [Hash] attributes Model attributes in the form of hash
|
161
166
|
def initialize(attributes = {})
|
162
167
|
if (!attributes.is_a?(Hash))
|
163
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
168
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Lob::LetterEditable` initialize method"
|
164
169
|
end
|
165
170
|
|
166
171
|
# check to see if the attribute exists and convert string to symbol for hash key
|
167
172
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
168
173
|
if (!self.class.attribute_map.key?(k.to_sym))
|
169
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
174
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Lob::LetterEditable`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
170
175
|
end
|
171
176
|
h[k.to_sym] = v
|
172
177
|
}
|
@@ -252,6 +257,10 @@ module OpenapiClient
|
|
252
257
|
if attributes.key?(:'qr_code')
|
253
258
|
self.qr_code = attributes[:'qr_code']
|
254
259
|
end
|
260
|
+
|
261
|
+
if attributes.key?(:'use_type')
|
262
|
+
self.use_type = attributes[:'use_type']
|
263
|
+
end
|
255
264
|
end
|
256
265
|
|
257
266
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -374,7 +383,8 @@ module OpenapiClient
|
|
374
383
|
extra_service == o.extra_service &&
|
375
384
|
cards == o.cards &&
|
376
385
|
billing_group_id == o.billing_group_id &&
|
377
|
-
qr_code == o.qr_code
|
386
|
+
qr_code == o.qr_code &&
|
387
|
+
use_type == o.use_type
|
378
388
|
end
|
379
389
|
|
380
390
|
# @see the `==` method
|
@@ -386,7 +396,7 @@ module OpenapiClient
|
|
386
396
|
# Calculates hash code according to all attributes.
|
387
397
|
# @return [Integer] Hash code
|
388
398
|
def hash
|
389
|
-
[description, metadata, mail_type, merge_variables, send_date, color, double_sided, address_placement, return_envelope, perforated_page, custom_envelope, to, from, file, extra_service, cards, billing_group_id, qr_code].hash
|
399
|
+
[description, metadata, mail_type, merge_variables, send_date, color, double_sided, address_placement, return_envelope, perforated_page, custom_envelope, to, from, file, extra_service, cards, billing_group_id, qr_code, use_type].hash
|
390
400
|
end
|
391
401
|
|
392
402
|
|
@@ -466,7 +476,7 @@ module OpenapiClient
|
|
466
476
|
end
|
467
477
|
else # model
|
468
478
|
# models (e.g. Pet) or oneOf
|
469
|
-
klass =
|
479
|
+
klass = Lob.const_get(type)
|
470
480
|
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
471
481
|
end
|
472
482
|
end
|
@@ -13,7 +13,7 @@ OpenAPI Generator version: 5.2.1
|
|
13
13
|
require 'date'
|
14
14
|
require 'time'
|
15
15
|
|
16
|
-
module
|
16
|
+
module Lob
|
17
17
|
class LetterList
|
18
18
|
# list of letters
|
19
19
|
attr_accessor :data
|
@@ -74,13 +74,13 @@ module OpenapiClient
|
|
74
74
|
# @param [Hash] attributes Model attributes in the form of hash
|
75
75
|
def initialize(attributes = {})
|
76
76
|
if (!attributes.is_a?(Hash))
|
77
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
77
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Lob::LetterList` initialize method"
|
78
78
|
end
|
79
79
|
|
80
80
|
# check to see if the attribute exists and convert string to symbol for hash key
|
81
81
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
82
82
|
if (!self.class.attribute_map.key?(k.to_sym))
|
83
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
83
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Lob::LetterList`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
84
84
|
end
|
85
85
|
h[k.to_sym] = v
|
86
86
|
}
|
@@ -268,7 +268,7 @@ module OpenapiClient
|
|
268
268
|
end
|
269
269
|
else # model
|
270
270
|
# models (e.g. Pet) or oneOf
|
271
|
-
klass =
|
271
|
+
klass = Lob.const_get(type)
|
272
272
|
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
273
273
|
end
|
274
274
|
end
|
@@ -13,7 +13,7 @@ OpenAPI Generator version: 5.2.1
|
|
13
13
|
require 'date'
|
14
14
|
require 'time'
|
15
15
|
|
16
|
-
module
|
16
|
+
module Lob
|
17
17
|
# Lob Confidence Score is a nested object that provides a numerical value between 0-100 of the likelihood that an address is deliverable based on Lob’s mail delivery data to over half of US households.
|
18
18
|
class LobConfidenceScore
|
19
19
|
# A numerical score between 0 and 100 that represents the percentage of mailpieces Lob has sent to this addresses that have been delivered successfully over the past 2 years. Will be `null` if no tracking data exists for this address.
|
@@ -76,13 +76,13 @@ module OpenapiClient
|
|
76
76
|
# @param [Hash] attributes Model attributes in the form of hash
|
77
77
|
def initialize(attributes = {})
|
78
78
|
if (!attributes.is_a?(Hash))
|
79
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
79
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Lob::LobConfidenceScore` initialize method"
|
80
80
|
end
|
81
81
|
|
82
82
|
# check to see if the attribute exists and convert string to symbol for hash key
|
83
83
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
84
84
|
if (!self.class.attribute_map.key?(k.to_sym))
|
85
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
85
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Lob::LobConfidenceScore`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
86
86
|
end
|
87
87
|
h[k.to_sym] = v
|
88
88
|
}
|
@@ -243,7 +243,7 @@ module OpenapiClient
|
|
243
243
|
end
|
244
244
|
else # model
|
245
245
|
# models (e.g. Pet) or oneOf
|
246
|
-
klass =
|
246
|
+
klass = Lob.const_get(type)
|
247
247
|
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
248
248
|
end
|
249
249
|
end
|
@@ -13,7 +13,7 @@ OpenAPI Generator version: 5.2.1
|
|
13
13
|
require 'date'
|
14
14
|
require 'time'
|
15
15
|
|
16
|
-
module
|
16
|
+
module Lob
|
17
17
|
# Lob uses RESTful HTTP response codes to indicate success or failure of an API request.
|
18
18
|
class LobError
|
19
19
|
# A human-readable message with more details about the error
|
@@ -80,13 +80,13 @@ module OpenapiClient
|
|
80
80
|
# @param [Hash] attributes Model attributes in the form of hash
|
81
81
|
def initialize(attributes = {})
|
82
82
|
if (!attributes.is_a?(Hash))
|
83
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
83
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Lob::LobError` initialize method"
|
84
84
|
end
|
85
85
|
|
86
86
|
# check to see if the attribute exists and convert string to symbol for hash key
|
87
87
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
88
88
|
if (!self.class.attribute_map.key?(k.to_sym))
|
89
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
89
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Lob::LobError`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
90
90
|
end
|
91
91
|
h[k.to_sym] = v
|
92
92
|
}
|
@@ -240,7 +240,7 @@ module OpenapiClient
|
|
240
240
|
end
|
241
241
|
else # model
|
242
242
|
# models (e.g. Pet) or oneOf
|
243
|
-
klass =
|
243
|
+
klass = Lob.const_get(type)
|
244
244
|
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
245
245
|
end
|
246
246
|
end
|
@@ -13,7 +13,7 @@ OpenAPI Generator version: 5.2.1
|
|
13
13
|
require 'date'
|
14
14
|
require 'time'
|
15
15
|
|
16
|
-
module
|
16
|
+
module Lob
|
17
17
|
class Location
|
18
18
|
# A positive or negative decimal indicating the geographic latitude of the address, specifying the north-to-south position of a location. This should be input with `longitude` to pinpoint locations on a map.
|
19
19
|
attr_accessor :latitude
|
@@ -54,13 +54,13 @@ module OpenapiClient
|
|
54
54
|
# @param [Hash] attributes Model attributes in the form of hash
|
55
55
|
def initialize(attributes = {})
|
56
56
|
if (!attributes.is_a?(Hash))
|
57
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
57
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Lob::Location` initialize method"
|
58
58
|
end
|
59
59
|
|
60
60
|
# check to see if the attribute exists and convert string to symbol for hash key
|
61
61
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
62
62
|
if (!self.class.attribute_map.key?(k.to_sym))
|
63
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
63
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Lob::Location`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
64
64
|
end
|
65
65
|
h[k.to_sym] = v
|
66
66
|
}
|
@@ -233,7 +233,7 @@ module OpenapiClient
|
|
233
233
|
end
|
234
234
|
else # model
|
235
235
|
# models (e.g. Pet) or oneOf
|
236
|
-
klass =
|
236
|
+
klass = Lob.const_get(type)
|
237
237
|
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
238
238
|
end
|
239
239
|
end
|
@@ -13,7 +13,7 @@ OpenAPI Generator version: 5.2.1
|
|
13
13
|
require 'date'
|
14
14
|
require 'time'
|
15
15
|
|
16
|
-
module
|
16
|
+
module Lob
|
17
17
|
# A nested object containing a breakdown of the analysis of a reverse geocoded location.
|
18
18
|
class LocationAnalysis
|
19
19
|
# A positive or negative decimal indicating the geographic latitude of the address.
|
@@ -60,13 +60,13 @@ module OpenapiClient
|
|
60
60
|
# @param [Hash] attributes Model attributes in the form of hash
|
61
61
|
def initialize(attributes = {})
|
62
62
|
if (!attributes.is_a?(Hash))
|
63
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
63
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Lob::LocationAnalysis` initialize method"
|
64
64
|
end
|
65
65
|
|
66
66
|
# check to see if the attribute exists and convert string to symbol for hash key
|
67
67
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
68
68
|
if (!self.class.attribute_map.key?(k.to_sym))
|
69
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
69
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Lob::LocationAnalysis`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
70
70
|
end
|
71
71
|
h[k.to_sym] = v
|
72
72
|
}
|
@@ -249,7 +249,7 @@ module OpenapiClient
|
|
249
249
|
end
|
250
250
|
else # model
|
251
251
|
# models (e.g. Pet) or oneOf
|
252
|
-
klass =
|
252
|
+
klass = Lob.const_get(type)
|
253
253
|
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
254
254
|
end
|
255
255
|
end
|
@@ -0,0 +1,38 @@
|
|
1
|
+
=begin
|
2
|
+
#Lob
|
3
|
+
|
4
|
+
#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. <p> Looking for our [previous documentation](https://lob.github.io/legacy-docs/)?
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.3.0
|
7
|
+
Contact: lob-openapi@lob.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 5.2.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
require 'time'
|
15
|
+
|
16
|
+
module Lob
|
17
|
+
class LtrUseType
|
18
|
+
MARKETING = "marketing".freeze
|
19
|
+
OPERATIONAL = "operational".freeze
|
20
|
+
NULL = "null".freeze
|
21
|
+
|
22
|
+
# Builds the enum from string
|
23
|
+
# @param [String] The enum value in the form of the string
|
24
|
+
# @return [String] The enum value
|
25
|
+
def self.build_from_hash(value)
|
26
|
+
new.build_from_hash(value)
|
27
|
+
end
|
28
|
+
|
29
|
+
# Builds the enum from string
|
30
|
+
# @param [String] The enum value in the form of the string
|
31
|
+
# @return [String] The enum value
|
32
|
+
def build_from_hash(value)
|
33
|
+
constantValues = LtrUseType.constants.select { |c| LtrUseType::const_get(c) == value }
|
34
|
+
raise "Invalid ENUM value #{value} for class #LtrUseType" if constantValues.empty?
|
35
|
+
value
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
@@ -13,7 +13,7 @@ OpenAPI Generator version: 5.2.1
|
|
13
13
|
require 'date'
|
14
14
|
require 'time'
|
15
15
|
|
16
|
-
module
|
16
|
+
module Lob
|
17
17
|
class MultiLineAddress
|
18
18
|
# The intended recipient, typically a person's or firm's name.
|
19
19
|
attr_accessor :recipient
|
@@ -83,13 +83,13 @@ module OpenapiClient
|
|
83
83
|
# @param [Hash] attributes Model attributes in the form of hash
|
84
84
|
def initialize(attributes = {})
|
85
85
|
if (!attributes.is_a?(Hash))
|
86
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
86
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Lob::MultiLineAddress` initialize method"
|
87
87
|
end
|
88
88
|
|
89
89
|
# check to see if the attribute exists and convert string to symbol for hash key
|
90
90
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
91
91
|
if (!self.class.attribute_map.key?(k.to_sym))
|
92
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
92
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Lob::MultiLineAddress`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
93
93
|
end
|
94
94
|
h[k.to_sym] = v
|
95
95
|
}
|
@@ -375,7 +375,7 @@ module OpenapiClient
|
|
375
375
|
end
|
376
376
|
else # model
|
377
377
|
# models (e.g. Pet) or oneOf
|
378
|
-
klass =
|
378
|
+
klass = Lob.const_get(type)
|
379
379
|
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
380
380
|
end
|
381
381
|
end
|
@@ -13,7 +13,7 @@ OpenAPI Generator version: 5.2.1
|
|
13
13
|
require 'date'
|
14
14
|
require 'time'
|
15
15
|
|
16
|
-
module
|
16
|
+
module Lob
|
17
17
|
class MultipleComponents
|
18
18
|
# The intended recipient, typically a person's or firm's name.
|
19
19
|
attr_accessor :recipient
|
@@ -77,13 +77,13 @@ module OpenapiClient
|
|
77
77
|
# @param [Hash] attributes Model attributes in the form of hash
|
78
78
|
def initialize(attributes = {})
|
79
79
|
if (!attributes.is_a?(Hash))
|
80
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
80
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Lob::MultipleComponents` initialize method"
|
81
81
|
end
|
82
82
|
|
83
83
|
# check to see if the attribute exists and convert string to symbol for hash key
|
84
84
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
85
85
|
if (!self.class.attribute_map.key?(k.to_sym))
|
86
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
86
|
+
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
|
87
87
|
end
|
88
88
|
h[k.to_sym] = v
|
89
89
|
}
|
@@ -349,7 +349,7 @@ module OpenapiClient
|
|
349
349
|
end
|
350
350
|
else # model
|
351
351
|
# models (e.g. Pet) or oneOf
|
352
|
-
klass =
|
352
|
+
klass = Lob.const_get(type)
|
353
353
|
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
354
354
|
end
|
355
355
|
end
|
@@ -13,7 +13,7 @@ OpenAPI Generator version: 5.2.1
|
|
13
13
|
require 'date'
|
14
14
|
require 'time'
|
15
15
|
|
16
|
-
module
|
16
|
+
module Lob
|
17
17
|
class MultipleComponentsIntl
|
18
18
|
# The intended recipient, typically a person's or firm's name.
|
19
19
|
attr_accessor :recipient
|
@@ -76,13 +76,13 @@ module OpenapiClient
|
|
76
76
|
# @param [Hash] attributes Model attributes in the form of hash
|
77
77
|
def initialize(attributes = {})
|
78
78
|
if (!attributes.is_a?(Hash))
|
79
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
79
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Lob::MultipleComponentsIntl` initialize method"
|
80
80
|
end
|
81
81
|
|
82
82
|
# check to see if the attribute exists and convert string to symbol for hash key
|
83
83
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
84
84
|
if (!self.class.attribute_map.key?(k.to_sym))
|
85
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
85
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Lob::MultipleComponentsIntl`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
86
86
|
end
|
87
87
|
h[k.to_sym] = v
|
88
88
|
}
|
@@ -321,7 +321,7 @@ module OpenapiClient
|
|
321
321
|
end
|
322
322
|
else # model
|
323
323
|
# models (e.g. Pet) or oneOf
|
324
|
-
klass =
|
324
|
+
klass = Lob.const_get(type)
|
325
325
|
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
326
326
|
end
|
327
327
|
end
|
@@ -13,7 +13,7 @@ OpenAPI Generator version: 5.2.1
|
|
13
13
|
require 'date'
|
14
14
|
require 'time'
|
15
15
|
|
16
|
-
module
|
16
|
+
module Lob
|
17
17
|
class MultipleComponentsList
|
18
18
|
attr_accessor :addresses
|
19
19
|
|
@@ -46,13 +46,13 @@ module OpenapiClient
|
|
46
46
|
# @param [Hash] attributes Model attributes in the form of hash
|
47
47
|
def initialize(attributes = {})
|
48
48
|
if (!attributes.is_a?(Hash))
|
49
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
49
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Lob::MultipleComponentsList` initialize method"
|
50
50
|
end
|
51
51
|
|
52
52
|
# check to see if the attribute exists and convert string to symbol for hash key
|
53
53
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
54
54
|
if (!self.class.attribute_map.key?(k.to_sym))
|
55
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
55
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Lob::MultipleComponentsList`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
56
56
|
end
|
57
57
|
h[k.to_sym] = v
|
58
58
|
}
|
@@ -207,7 +207,7 @@ module OpenapiClient
|
|
207
207
|
end
|
208
208
|
else # model
|
209
209
|
# models (e.g. Pet) or oneOf
|
210
|
-
klass =
|
210
|
+
klass = Lob.const_get(type)
|
211
211
|
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
212
212
|
end
|
213
213
|
end
|