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
|
class Check
|
18
18
|
# Unique identifier prefixed with `chk_`.
|
19
19
|
attr_accessor :id
|
@@ -87,6 +87,8 @@ module OpenapiClient
|
|
87
87
|
# Only returned if the resource has been successfully deleted.
|
88
88
|
attr_accessor :deleted
|
89
89
|
|
90
|
+
attr_accessor :use_type
|
91
|
+
|
90
92
|
class EnumAttributeValidator
|
91
93
|
attr_reader :datatype
|
92
94
|
attr_reader :allowable_values
|
@@ -137,7 +139,8 @@ module OpenapiClient
|
|
137
139
|
:'object' => :'object',
|
138
140
|
:'date_created' => :'date_created',
|
139
141
|
:'date_modified' => :'date_modified',
|
140
|
-
:'deleted' => :'deleted'
|
142
|
+
:'deleted' => :'deleted',
|
143
|
+
:'use_type' => :'use_type'
|
141
144
|
}
|
142
145
|
end
|
143
146
|
|
@@ -174,7 +177,8 @@ module OpenapiClient
|
|
174
177
|
:'object' => :'String',
|
175
178
|
:'date_created' => :'Time',
|
176
179
|
:'date_modified' => :'Time',
|
177
|
-
:'deleted' => :'Boolean'
|
180
|
+
:'deleted' => :'Boolean',
|
181
|
+
:'use_type' => :'ChkUseType'
|
178
182
|
}
|
179
183
|
end
|
180
184
|
|
@@ -185,6 +189,7 @@ module OpenapiClient
|
|
185
189
|
:'merge_variables',
|
186
190
|
:'memo',
|
187
191
|
:'tracking_events',
|
192
|
+
:'use_type'
|
188
193
|
])
|
189
194
|
end
|
190
195
|
|
@@ -192,13 +197,13 @@ module OpenapiClient
|
|
192
197
|
# @param [Hash] attributes Model attributes in the form of hash
|
193
198
|
def initialize(attributes = {})
|
194
199
|
if (!attributes.is_a?(Hash))
|
195
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
200
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Lob::Check` initialize method"
|
196
201
|
end
|
197
202
|
|
198
203
|
# check to see if the attribute exists and convert string to symbol for hash key
|
199
204
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
200
205
|
if (!self.class.attribute_map.key?(k.to_sym))
|
201
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
206
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Lob::Check`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
202
207
|
end
|
203
208
|
h[k.to_sym] = v
|
204
209
|
}
|
@@ -318,6 +323,10 @@ module OpenapiClient
|
|
318
323
|
if attributes.key?(:'deleted')
|
319
324
|
self.deleted = attributes[:'deleted']
|
320
325
|
end
|
326
|
+
|
327
|
+
if attributes.key?(:'use_type')
|
328
|
+
self.use_type = attributes[:'use_type']
|
329
|
+
end
|
321
330
|
end
|
322
331
|
|
323
332
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -654,7 +663,8 @@ module OpenapiClient
|
|
654
663
|
object == o.object &&
|
655
664
|
date_created == o.date_created &&
|
656
665
|
date_modified == o.date_modified &&
|
657
|
-
deleted == o.deleted
|
666
|
+
deleted == o.deleted &&
|
667
|
+
use_type == o.use_type
|
658
668
|
end
|
659
669
|
|
660
670
|
# @see the `==` method
|
@@ -666,7 +676,7 @@ module OpenapiClient
|
|
666
676
|
# Calculates hash code according to all attributes.
|
667
677
|
# @return [Integer] Hash code
|
668
678
|
def hash
|
669
|
-
[id, to, from, description, metadata, merge_variables, send_date, mail_type, memo, check_number, message, amount, bank_account, check_bottom_template_id, attachment_template_id, check_bottom_template_version_id, attachment_template_version_id, url, carrier, thumbnails, expected_delivery_date, tracking_events, object, date_created, date_modified, deleted].hash
|
679
|
+
[id, to, from, description, metadata, merge_variables, send_date, mail_type, memo, check_number, message, amount, bank_account, check_bottom_template_id, attachment_template_id, check_bottom_template_version_id, attachment_template_version_id, url, carrier, thumbnails, expected_delivery_date, tracking_events, object, date_created, date_modified, deleted, use_type].hash
|
670
680
|
end
|
671
681
|
|
672
682
|
|
@@ -746,7 +756,7 @@ module OpenapiClient
|
|
746
756
|
end
|
747
757
|
else # model
|
748
758
|
# models (e.g. Pet) or oneOf
|
749
|
-
klass =
|
759
|
+
klass = Lob.const_get(type)
|
750
760
|
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
751
761
|
end
|
752
762
|
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 CheckDeletion
|
19
19
|
# Unique identifier prefixed with `chk_`.
|
@@ -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::CheckDeletion` 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::CheckDeletion`. 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
|
class CheckEditable
|
18
18
|
# Must either be an address ID or an inline object with correct address parameters.
|
19
19
|
attr_accessor :from
|
@@ -62,6 +62,8 @@ module OpenapiClient
|
|
62
62
|
# An optional string with the billing group ID to tag your usage with. Is used for billing purposes. Requires special activation to use. See [Billing Group API](https://lob.github.io/lob-openapi/#tag/Billing-Groups) for more information.
|
63
63
|
attr_accessor :billing_group_id
|
64
64
|
|
65
|
+
attr_accessor :use_type
|
66
|
+
|
65
67
|
class EnumAttributeValidator
|
66
68
|
attr_reader :datatype
|
67
69
|
attr_reader :allowable_values
|
@@ -102,7 +104,8 @@ module OpenapiClient
|
|
102
104
|
:'memo' => :'memo',
|
103
105
|
:'check_number' => :'check_number',
|
104
106
|
:'message' => :'message',
|
105
|
-
:'billing_group_id' => :'billing_group_id'
|
107
|
+
:'billing_group_id' => :'billing_group_id',
|
108
|
+
:'use_type' => :'use_type'
|
106
109
|
}
|
107
110
|
end
|
108
111
|
|
@@ -129,7 +132,8 @@ module OpenapiClient
|
|
129
132
|
:'memo' => :'String',
|
130
133
|
:'check_number' => :'Integer',
|
131
134
|
:'message' => :'String',
|
132
|
-
:'billing_group_id' => :'String'
|
135
|
+
:'billing_group_id' => :'String',
|
136
|
+
:'use_type' => :'ChkUseType'
|
133
137
|
}
|
134
138
|
end
|
135
139
|
|
@@ -142,6 +146,7 @@ module OpenapiClient
|
|
142
146
|
:'description',
|
143
147
|
:'merge_variables',
|
144
148
|
:'memo',
|
149
|
+
:'use_type'
|
145
150
|
])
|
146
151
|
end
|
147
152
|
|
@@ -149,13 +154,13 @@ module OpenapiClient
|
|
149
154
|
# @param [Hash] attributes Model attributes in the form of hash
|
150
155
|
def initialize(attributes = {})
|
151
156
|
if (!attributes.is_a?(Hash))
|
152
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
157
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Lob::CheckEditable` initialize method"
|
153
158
|
end
|
154
159
|
|
155
160
|
# check to see if the attribute exists and convert string to symbol for hash key
|
156
161
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
157
162
|
if (!self.class.attribute_map.key?(k.to_sym))
|
158
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
163
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Lob::CheckEditable`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
159
164
|
end
|
160
165
|
h[k.to_sym] = v
|
161
166
|
}
|
@@ -227,6 +232,10 @@ module OpenapiClient
|
|
227
232
|
if attributes.key?(:'billing_group_id')
|
228
233
|
self.billing_group_id = attributes[:'billing_group_id']
|
229
234
|
end
|
235
|
+
|
236
|
+
if attributes.key?(:'use_type')
|
237
|
+
self.use_type = attributes[:'use_type']
|
238
|
+
end
|
230
239
|
end
|
231
240
|
|
232
241
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -379,7 +388,8 @@ module OpenapiClient
|
|
379
388
|
memo == o.memo &&
|
380
389
|
check_number == o.check_number &&
|
381
390
|
message == o.message &&
|
382
|
-
billing_group_id == o.billing_group_id
|
391
|
+
billing_group_id == o.billing_group_id &&
|
392
|
+
use_type == o.use_type
|
383
393
|
end
|
384
394
|
|
385
395
|
# @see the `==` method
|
@@ -391,7 +401,7 @@ module OpenapiClient
|
|
391
401
|
# Calculates hash code according to all attributes.
|
392
402
|
# @return [Integer] Hash code
|
393
403
|
def hash
|
394
|
-
[from, to, bank_account, amount, logo, check_bottom, attachment, description, metadata, merge_variables, send_date, mail_type, memo, check_number, message, billing_group_id].hash
|
404
|
+
[from, to, bank_account, amount, logo, check_bottom, attachment, description, metadata, merge_variables, send_date, mail_type, memo, check_number, message, billing_group_id, use_type].hash
|
395
405
|
end
|
396
406
|
|
397
407
|
|
@@ -471,7 +481,7 @@ module OpenapiClient
|
|
471
481
|
end
|
472
482
|
else # model
|
473
483
|
# models (e.g. Pet) or oneOf
|
474
|
-
klass =
|
484
|
+
klass = Lob.const_get(type)
|
475
485
|
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
476
486
|
end
|
477
487
|
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 CheckList
|
18
18
|
# list of checks
|
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::CheckList` 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::CheckList`. 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
|
@@ -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 ChkUseType
|
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 = ChkUseType.constants.select { |c| ChkUseType::const_get(c) == value }
|
34
|
+
raise "Invalid ENUM value #{value} for class #ChkUseType" 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 CreativePatch
|
18
18
|
# Must either be an address ID or an inline object with correct address parameters.
|
19
19
|
attr_accessor :from
|
@@ -59,13 +59,13 @@ module OpenapiClient
|
|
59
59
|
# @param [Hash] attributes Model attributes in the form of hash
|
60
60
|
def initialize(attributes = {})
|
61
61
|
if (!attributes.is_a?(Hash))
|
62
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
62
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Lob::CreativePatch` initialize method"
|
63
63
|
end
|
64
64
|
|
65
65
|
# check to see if the attribute exists and convert string to symbol for hash key
|
66
66
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
67
67
|
if (!self.class.attribute_map.key?(k.to_sym))
|
68
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
68
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Lob::CreativePatch`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
69
69
|
end
|
70
70
|
h[k.to_sym] = v
|
71
71
|
}
|
@@ -218,7 +218,7 @@ module OpenapiClient
|
|
218
218
|
end
|
219
219
|
else # model
|
220
220
|
# models (e.g. Pet) or oneOf
|
221
|
-
klass =
|
221
|
+
klass = Lob.const_get(type)
|
222
222
|
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
223
223
|
end
|
224
224
|
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 CreativeResponse
|
18
18
|
# Unique identifier prefixed with `crv_`.
|
19
19
|
attr_accessor :id
|
@@ -132,13 +132,13 @@ module OpenapiClient
|
|
132
132
|
# @param [Hash] attributes Model attributes in the form of hash
|
133
133
|
def initialize(attributes = {})
|
134
134
|
if (!attributes.is_a?(Hash))
|
135
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
135
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Lob::CreativeResponse` initialize method"
|
136
136
|
end
|
137
137
|
|
138
138
|
# check to see if the attribute exists and convert string to symbol for hash key
|
139
139
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
140
140
|
if (!self.class.attribute_map.key?(k.to_sym))
|
141
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
141
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Lob::CreativeResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
142
142
|
end
|
143
143
|
h[k.to_sym] = v
|
144
144
|
}
|
@@ -388,7 +388,7 @@ module OpenapiClient
|
|
388
388
|
end
|
389
389
|
else # model
|
390
390
|
# models (e.g. Pet) or oneOf
|
391
|
-
klass =
|
391
|
+
klass = Lob.const_get(type)
|
392
392
|
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
393
393
|
end
|
394
394
|
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 CreativeWritable
|
18
18
|
# Must either be an address ID or an inline object with correct address parameters.
|
19
19
|
attr_accessor :from
|
@@ -92,7 +92,7 @@ module OpenapiClient
|
|
92
92
|
:'metadata' => :'Hash<String, String>',
|
93
93
|
:'resource_type' => :'String',
|
94
94
|
:'campaign_id' => :'String',
|
95
|
-
:'details' => Array[:'
|
95
|
+
:'details' => Array[:'PostcardDetailsWritable', :'String'],
|
96
96
|
:'file' => :'String',
|
97
97
|
:'front' => :'String',
|
98
98
|
:'back' => :'String'
|
@@ -112,13 +112,13 @@ module OpenapiClient
|
|
112
112
|
# @param [Hash] attributes Model attributes in the form of hash
|
113
113
|
def initialize(attributes = {})
|
114
114
|
if (!attributes.is_a?(Hash))
|
115
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
115
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Lob::CreativeWritable` initialize method"
|
116
116
|
end
|
117
117
|
|
118
118
|
# check to see if the attribute exists and convert string to symbol for hash key
|
119
119
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
120
120
|
if (!self.class.attribute_map.key?(k.to_sym))
|
121
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
121
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Lob::CreativeWritable`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
122
122
|
end
|
123
123
|
h[k.to_sym] = v
|
124
124
|
}
|
@@ -344,7 +344,7 @@ module OpenapiClient
|
|
344
344
|
end
|
345
345
|
else # model
|
346
346
|
# models (e.g. Pet) or oneOf
|
347
|
-
klass =
|
347
|
+
klass = Lob.const_get(type)
|
348
348
|
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
349
349
|
end
|
350
350
|
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 custom envelope object containing more information about the custom envelope used or `null` if a custom envelope was not used.
|
18
18
|
class CustomEnvelopeReturned
|
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::CustomEnvelopeReturned` 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::CustomEnvelopeReturned`. 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
|
}
|
@@ -263,7 +263,7 @@ module OpenapiClient
|
|
263
263
|
end
|
264
264
|
else # model
|
265
265
|
# models (e.g. Pet) or oneOf
|
266
|
-
klass =
|
266
|
+
klass = Lob.const_get(type)
|
267
267
|
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
268
268
|
end
|
269
269
|
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 deliverability of an address.
|
18
18
|
class DeliverabilityAnalysis
|
19
19
|
# Result of Delivery Point Validation (DPV), which determines whether or not the address is deliverable by the USPS. Possible values are: * `Y` –– The address is deliverable by the USPS. * `S` –– The address is deliverable by removing the provided secondary unit designator. This information may be incorrect or unnecessary. * `D` –– The address is deliverable to the building's default address but is missing a secondary unit designator and/or number. There is a chance the mail will not reach the intended recipient. * `N` –– The address is not deliverable according to the USPS, but parts of the address are valid (such as the street and ZIP code). * `''` –– This address is not deliverable. No matching street could be found within the city or ZIP code.
|
@@ -110,13 +110,13 @@ module OpenapiClient
|
|
110
110
|
# @param [Hash] attributes Model attributes in the form of hash
|
111
111
|
def initialize(attributes = {})
|
112
112
|
if (!attributes.is_a?(Hash))
|
113
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
113
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Lob::DeliverabilityAnalysis` initialize method"
|
114
114
|
end
|
115
115
|
|
116
116
|
# check to see if the attribute exists and convert string to symbol for hash key
|
117
117
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
118
118
|
if (!self.class.attribute_map.key?(k.to_sym))
|
119
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
119
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Lob::DeliverabilityAnalysis`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
120
120
|
end
|
121
121
|
h[k.to_sym] = v
|
122
122
|
}
|
@@ -395,7 +395,7 @@ module OpenapiClient
|
|
395
395
|
end
|
396
396
|
else # model
|
397
397
|
# models (e.g. Pet) or oneOf
|
398
|
-
klass =
|
398
|
+
klass = Lob.const_get(type)
|
399
399
|
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
400
400
|
end
|
401
401
|
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 EventType
|
18
18
|
attr_accessor :id
|
19
19
|
|
@@ -82,13 +82,13 @@ module OpenapiClient
|
|
82
82
|
# @param [Hash] attributes Model attributes in the form of hash
|
83
83
|
def initialize(attributes = {})
|
84
84
|
if (!attributes.is_a?(Hash))
|
85
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
85
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Lob::EventType` initialize method"
|
86
86
|
end
|
87
87
|
|
88
88
|
# check to see if the attribute exists and convert string to symbol for hash key
|
89
89
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
90
90
|
if (!self.class.attribute_map.key?(k.to_sym))
|
91
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
91
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Lob::EventType`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
92
92
|
end
|
93
93
|
h[k.to_sym] = v
|
94
94
|
}
|
@@ -269,7 +269,7 @@ module OpenapiClient
|
|
269
269
|
end
|
270
270
|
else # model
|
271
271
|
# models (e.g. Pet) or oneOf
|
272
|
-
klass =
|
272
|
+
klass = Lob.const_get(type)
|
273
273
|
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
274
274
|
end
|
275
275
|
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 Events
|
18
18
|
# Unique identifier prefixed with `evt_`.
|
19
19
|
attr_accessor :id
|
@@ -93,13 +93,13 @@ module OpenapiClient
|
|
93
93
|
# @param [Hash] attributes Model attributes in the form of hash
|
94
94
|
def initialize(attributes = {})
|
95
95
|
if (!attributes.is_a?(Hash))
|
96
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
96
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Lob::Events` initialize method"
|
97
97
|
end
|
98
98
|
|
99
99
|
# check to see if the attribute exists and convert string to symbol for hash key
|
100
100
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
101
101
|
if (!self.class.attribute_map.key?(k.to_sym))
|
102
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
102
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Lob::Events`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
103
103
|
end
|
104
104
|
h[k.to_sym] = v
|
105
105
|
}
|
@@ -309,7 +309,7 @@ module OpenapiClient
|
|
309
309
|
end
|
310
310
|
else # model
|
311
311
|
# models (e.g. Pet) or oneOf
|
312
|
-
klass =
|
312
|
+
klass = Lob.const_get(type)
|
313
313
|
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
314
314
|
end
|
315
315
|
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 Export
|
18
18
|
# Unique identifier prefixed with `ex_`.
|
19
19
|
attr_accessor :id
|
@@ -104,13 +104,13 @@ module OpenapiClient
|
|
104
104
|
# @param [Hash] attributes Model attributes in the form of hash
|
105
105
|
def initialize(attributes = {})
|
106
106
|
if (!attributes.is_a?(Hash))
|
107
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
107
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Lob::Export` initialize method"
|
108
108
|
end
|
109
109
|
|
110
110
|
# check to see if the attribute exists and convert string to symbol for hash key
|
111
111
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
112
112
|
if (!self.class.attribute_map.key?(k.to_sym))
|
113
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
113
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Lob::Export`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
114
114
|
end
|
115
115
|
h[k.to_sym] = v
|
116
116
|
}
|
@@ -366,7 +366,7 @@ module OpenapiClient
|
|
366
366
|
end
|
367
367
|
else # model
|
368
368
|
# models (e.g. Pet) or oneOf
|
369
|
-
klass =
|
369
|
+
klass = Lob.const_get(type)
|
370
370
|
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
371
371
|
end
|
372
372
|
end
|