lob 6.0.0.pre.rc → 6.0.1
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/Require.unit.rb +21 -0
- 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/lob.rb +1 -0
- 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 +31 -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 ExportModel
|
18
18
|
attr_accessor :type
|
19
19
|
|
@@ -68,13 +68,13 @@ module OpenapiClient
|
|
68
68
|
# @param [Hash] attributes Model attributes in the form of hash
|
69
69
|
def initialize(attributes = {})
|
70
70
|
if (!attributes.is_a?(Hash))
|
71
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
71
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Lob::ExportModel` initialize method"
|
72
72
|
end
|
73
73
|
|
74
74
|
# check to see if the attribute exists and convert string to symbol for hash key
|
75
75
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
76
76
|
if (!self.class.attribute_map.key?(k.to_sym))
|
77
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
77
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Lob::ExportModel`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
78
78
|
end
|
79
79
|
h[k.to_sym] = v
|
80
80
|
}
|
@@ -206,7 +206,7 @@ module OpenapiClient
|
|
206
206
|
end
|
207
207
|
else # model
|
208
208
|
# models (e.g. Pet) or oneOf
|
209
|
-
klass =
|
209
|
+
klass = Lob.const_get(type)
|
210
210
|
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
211
211
|
end
|
212
212
|
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 GeocodeAddresses
|
18
18
|
attr_accessor :components
|
19
19
|
|
@@ -50,13 +50,13 @@ module OpenapiClient
|
|
50
50
|
# @param [Hash] attributes Model attributes in the form of hash
|
51
51
|
def initialize(attributes = {})
|
52
52
|
if (!attributes.is_a?(Hash))
|
53
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
53
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Lob::GeocodeAddresses` initialize method"
|
54
54
|
end
|
55
55
|
|
56
56
|
# check to see if the attribute exists and convert string to symbol for hash key
|
57
57
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
58
58
|
if (!self.class.attribute_map.key?(k.to_sym))
|
59
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
59
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Lob::GeocodeAddresses`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
60
60
|
end
|
61
61
|
h[k.to_sym] = v
|
62
62
|
}
|
@@ -181,7 +181,7 @@ module OpenapiClient
|
|
181
181
|
end
|
182
182
|
else # model
|
183
183
|
# models (e.g. Pet) or oneOf
|
184
|
-
klass =
|
184
|
+
klass = Lob.const_get(type)
|
185
185
|
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
186
186
|
end
|
187
187
|
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 each component of a reverse geocoded response.
|
18
18
|
class GeocodeComponents
|
19
19
|
# The 5-digit ZIP code
|
@@ -52,13 +52,13 @@ module OpenapiClient
|
|
52
52
|
# @param [Hash] attributes Model attributes in the form of hash
|
53
53
|
def initialize(attributes = {})
|
54
54
|
if (!attributes.is_a?(Hash))
|
55
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
55
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Lob::GeocodeComponents` initialize method"
|
56
56
|
end
|
57
57
|
|
58
58
|
# check to see if the attribute exists and convert string to symbol for hash key
|
59
59
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
60
60
|
if (!self.class.attribute_map.key?(k.to_sym))
|
61
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
61
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Lob::GeocodeComponents`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
62
62
|
end
|
63
63
|
h[k.to_sym] = v
|
64
64
|
}
|
@@ -235,7 +235,7 @@ module OpenapiClient
|
|
235
235
|
end
|
236
236
|
else # model
|
237
237
|
# models (e.g. Pet) or oneOf
|
238
|
-
klass =
|
238
|
+
klass = Lob.const_get(type)
|
239
239
|
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
240
240
|
end
|
241
241
|
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 HTTPValidationError
|
18
18
|
attr_accessor :detail
|
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::HTTPValidationError` 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::HTTPValidationError`. 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
|
}
|
@@ -174,7 +174,7 @@ module OpenapiClient
|
|
174
174
|
end
|
175
175
|
else # model
|
176
176
|
# models (e.g. Pet) or oneOf
|
177
|
-
klass =
|
177
|
+
klass = Lob.const_get(type)
|
178
178
|
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
179
179
|
end
|
180
180
|
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 IdentityValidation
|
18
18
|
# Unique identifier prefixed with `id_validation_`.
|
19
19
|
attr_accessor :id
|
@@ -111,13 +111,13 @@ module OpenapiClient
|
|
111
111
|
# @param [Hash] attributes Model attributes in the form of hash
|
112
112
|
def initialize(attributes = {})
|
113
113
|
if (!attributes.is_a?(Hash))
|
114
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
114
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Lob::IdentityValidation` initialize method"
|
115
115
|
end
|
116
116
|
|
117
117
|
# check to see if the attribute exists and convert string to symbol for hash key
|
118
118
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
119
119
|
if (!self.class.attribute_map.key?(k.to_sym))
|
120
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
120
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Lob::IdentityValidation`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
121
121
|
end
|
122
122
|
h[k.to_sym] = v
|
123
123
|
}
|
@@ -404,7 +404,7 @@ module OpenapiClient
|
|
404
404
|
end
|
405
405
|
else # model
|
406
406
|
# models (e.g. Pet) or oneOf
|
407
|
-
klass =
|
407
|
+
klass = Lob.const_get(type)
|
408
408
|
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
409
409
|
end
|
410
410
|
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 InlineObject
|
18
18
|
attr_accessor :file
|
19
19
|
|
@@ -47,13 +47,13 @@ module OpenapiClient
|
|
47
47
|
# @param [Hash] attributes Model attributes in the form of hash
|
48
48
|
def initialize(attributes = {})
|
49
49
|
if (!attributes.is_a?(Hash))
|
50
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
50
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Lob::InlineObject` initialize method"
|
51
51
|
end
|
52
52
|
|
53
53
|
# check to see if the attribute exists and convert string to symbol for hash key
|
54
54
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
55
55
|
if (!self.class.attribute_map.key?(k.to_sym))
|
56
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
56
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Lob::InlineObject`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
57
57
|
end
|
58
58
|
h[k.to_sym] = v
|
59
59
|
}
|
@@ -173,7 +173,7 @@ module OpenapiClient
|
|
173
173
|
end
|
174
174
|
else # model
|
175
175
|
# models (e.g. Pet) or oneOf
|
176
|
-
klass =
|
176
|
+
klass = Lob.const_get(type)
|
177
177
|
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
178
178
|
end
|
179
179
|
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 IntlAutocompletions
|
18
18
|
# Unique identifier prefixed with `intl_auto_`.
|
19
19
|
attr_accessor :id
|
@@ -52,13 +52,13 @@ module OpenapiClient
|
|
52
52
|
# @param [Hash] attributes Model attributes in the form of hash
|
53
53
|
def initialize(attributes = {})
|
54
54
|
if (!attributes.is_a?(Hash))
|
55
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
55
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Lob::IntlAutocompletions` initialize method"
|
56
56
|
end
|
57
57
|
|
58
58
|
# check to see if the attribute exists and convert string to symbol for hash key
|
59
59
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
60
60
|
if (!self.class.attribute_map.key?(k.to_sym))
|
61
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
61
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Lob::IntlAutocompletions`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
62
62
|
end
|
63
63
|
h[k.to_sym] = v
|
64
64
|
}
|
@@ -226,7 +226,7 @@ module OpenapiClient
|
|
226
226
|
end
|
227
227
|
else # model
|
228
228
|
# models (e.g. Pet) or oneOf
|
229
|
-
klass =
|
229
|
+
klass = Lob.const_get(type)
|
230
230
|
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
231
231
|
end
|
232
232
|
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 IntlAutocompletionsWritable
|
18
18
|
# Only accepts numbers and street names in an alphanumeric format.
|
19
19
|
attr_accessor :address_prefix
|
@@ -66,13 +66,13 @@ module OpenapiClient
|
|
66
66
|
# @param [Hash] attributes Model attributes in the form of hash
|
67
67
|
def initialize(attributes = {})
|
68
68
|
if (!attributes.is_a?(Hash))
|
69
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
69
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Lob::IntlAutocompletionsWritable` initialize method"
|
70
70
|
end
|
71
71
|
|
72
72
|
# check to see if the attribute exists and convert string to symbol for hash key
|
73
73
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
74
74
|
if (!self.class.attribute_map.key?(k.to_sym))
|
75
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
75
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Lob::IntlAutocompletionsWritable`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
76
76
|
end
|
77
77
|
h[k.to_sym] = v
|
78
78
|
}
|
@@ -222,7 +222,7 @@ module OpenapiClient
|
|
222
222
|
end
|
223
223
|
else # model
|
224
224
|
# models (e.g. Pet) or oneOf
|
225
|
-
klass =
|
225
|
+
klass = Lob.const_get(type)
|
226
226
|
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
227
227
|
end
|
228
228
|
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 each component of an address.
|
18
18
|
class IntlComponents
|
19
19
|
# The numeric or alphanumeric part of an address preceding the street name. Often the house, building, or PO Box number.
|
@@ -67,13 +67,13 @@ module OpenapiClient
|
|
67
67
|
# @param [Hash] attributes Model attributes in the form of hash
|
68
68
|
def initialize(attributes = {})
|
69
69
|
if (!attributes.is_a?(Hash))
|
70
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
70
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Lob::IntlComponents` initialize method"
|
71
71
|
end
|
72
72
|
|
73
73
|
# check to see if the attribute exists and convert string to symbol for hash key
|
74
74
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
75
75
|
if (!self.class.attribute_map.key?(k.to_sym))
|
76
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
76
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Lob::IntlComponents`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
77
77
|
end
|
78
78
|
h[k.to_sym] = v
|
79
79
|
}
|
@@ -258,7 +258,7 @@ module OpenapiClient
|
|
258
258
|
end
|
259
259
|
else # model
|
260
260
|
# models (e.g. Pet) or oneOf
|
261
|
-
klass =
|
261
|
+
klass = Lob.const_get(type)
|
262
262
|
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
263
263
|
end
|
264
264
|
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 IntlSuggestions
|
18
18
|
# The primary number range of the address that identifies a building at street level.
|
19
19
|
attr_accessor :primary_number_range
|
@@ -97,13 +97,13 @@ module OpenapiClient
|
|
97
97
|
# @param [Hash] attributes Model attributes in the form of hash
|
98
98
|
def initialize(attributes = {})
|
99
99
|
if (!attributes.is_a?(Hash))
|
100
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
100
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Lob::IntlSuggestions` initialize method"
|
101
101
|
end
|
102
102
|
|
103
103
|
# check to see if the attribute exists and convert string to symbol for hash key
|
104
104
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
105
105
|
if (!self.class.attribute_map.key?(k.to_sym))
|
106
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
106
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Lob::IntlSuggestions`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
107
107
|
end
|
108
108
|
h[k.to_sym] = v
|
109
109
|
}
|
@@ -316,7 +316,7 @@ module OpenapiClient
|
|
316
316
|
end
|
317
317
|
else # model
|
318
318
|
# models (e.g. Pet) or oneOf
|
319
|
-
klass =
|
319
|
+
klass = Lob.const_get(type)
|
320
320
|
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
321
321
|
end
|
322
322
|
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 IntlVerification
|
18
18
|
# Unique identifier prefixed with `intl_ver_`.
|
19
19
|
attr_accessor :id
|
@@ -119,13 +119,13 @@ module OpenapiClient
|
|
119
119
|
# @param [Hash] attributes Model attributes in the form of hash
|
120
120
|
def initialize(attributes = {})
|
121
121
|
if (!attributes.is_a?(Hash))
|
122
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
122
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Lob::IntlVerification` initialize method"
|
123
123
|
end
|
124
124
|
|
125
125
|
# check to see if the attribute exists and convert string to symbol for hash key
|
126
126
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
127
127
|
if (!self.class.attribute_map.key?(k.to_sym))
|
128
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
128
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Lob::IntlVerification`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
129
129
|
end
|
130
130
|
h[k.to_sym] = v
|
131
131
|
}
|
@@ -407,7 +407,7 @@ module OpenapiClient
|
|
407
407
|
end
|
408
408
|
else # model
|
409
409
|
# models (e.g. Pet) or oneOf
|
410
|
-
klass =
|
410
|
+
klass = Lob.const_get(type)
|
411
411
|
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
412
412
|
end
|
413
413
|
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 model used to represent an entry in a result list where the entry can either be a intl_verification or an Error. The SDK will perform necessary casting into the correct corresponding type.
|
18
18
|
class IntlVerificationOrError
|
19
19
|
# Unique identifier prefixed with `intl_ver_`.
|
@@ -117,13 +117,13 @@ module OpenapiClient
|
|
117
117
|
# @param [Hash] attributes Model attributes in the form of hash
|
118
118
|
def initialize(attributes = {})
|
119
119
|
if (!attributes.is_a?(Hash))
|
120
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
120
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Lob::IntlVerificationOrError` initialize method"
|
121
121
|
end
|
122
122
|
|
123
123
|
# check to see if the attribute exists and convert string to symbol for hash key
|
124
124
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
125
125
|
if (!self.class.attribute_map.key?(k.to_sym))
|
126
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
126
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Lob::IntlVerificationOrError`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
127
127
|
end
|
128
128
|
h[k.to_sym] = v
|
129
129
|
}
|
@@ -410,7 +410,7 @@ module OpenapiClient
|
|
410
410
|
end
|
411
411
|
else # model
|
412
412
|
# models (e.g. Pet) or oneOf
|
413
|
-
klass =
|
413
|
+
klass = Lob.const_get(type)
|
414
414
|
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
415
415
|
end
|
416
416
|
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 IntlVerificationWritable
|
18
18
|
# The intended recipient, typically a person's or firm's name.
|
19
19
|
attr_accessor :recipient
|
@@ -81,13 +81,13 @@ module OpenapiClient
|
|
81
81
|
# @param [Hash] attributes Model attributes in the form of hash
|
82
82
|
def initialize(attributes = {})
|
83
83
|
if (!attributes.is_a?(Hash))
|
84
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
84
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Lob::IntlVerificationWritable` initialize method"
|
85
85
|
end
|
86
86
|
|
87
87
|
# check to see if the attribute exists and convert string to symbol for hash key
|
88
88
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
89
89
|
if (!self.class.attribute_map.key?(k.to_sym))
|
90
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
90
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Lob::IntlVerificationWritable`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
91
91
|
end
|
92
92
|
h[k.to_sym] = v
|
93
93
|
}
|
@@ -332,7 +332,7 @@ module OpenapiClient
|
|
332
332
|
end
|
333
333
|
else # model
|
334
334
|
# models (e.g. Pet) or oneOf
|
335
|
-
klass =
|
335
|
+
klass = Lob.const_get(type)
|
336
336
|
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
337
337
|
end
|
338
338
|
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 IntlVerifications
|
18
18
|
attr_accessor :addresses
|
19
19
|
|
@@ -51,13 +51,13 @@ module OpenapiClient
|
|
51
51
|
# @param [Hash] attributes Model attributes in the form of hash
|
52
52
|
def initialize(attributes = {})
|
53
53
|
if (!attributes.is_a?(Hash))
|
54
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
54
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Lob::IntlVerifications` initialize method"
|
55
55
|
end
|
56
56
|
|
57
57
|
# check to see if the attribute exists and convert string to symbol for hash key
|
58
58
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
59
59
|
if (!self.class.attribute_map.key?(k.to_sym))
|
60
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
60
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Lob::IntlVerifications`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
61
61
|
end
|
62
62
|
h[k.to_sym] = v
|
63
63
|
}
|
@@ -194,7 +194,7 @@ module OpenapiClient
|
|
194
194
|
end
|
195
195
|
else # model
|
196
196
|
# models (e.g. Pet) or oneOf
|
197
|
-
klass =
|
197
|
+
klass = Lob.const_get(type)
|
198
198
|
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
199
199
|
end
|
200
200
|
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 IntlVerificationsPayload
|
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::IntlVerificationsPayload` 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::IntlVerificationsPayload`. 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
|
@@ -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 Letter
|
18
18
|
attr_accessor :to
|
19
19
|
|
@@ -91,6 +91,11 @@ module OpenapiClient
|
|
91
91
|
|
92
92
|
attr_accessor :custom_envelope
|
93
93
|
|
94
|
+
# The unique ID of the associated campaign if the resource was generated from a campaign.
|
95
|
+
attr_accessor :campaign_id
|
96
|
+
|
97
|
+
attr_accessor :use_type
|
98
|
+
|
94
99
|
class EnumAttributeValidator
|
95
100
|
attr_reader :datatype
|
96
101
|
attr_reader :allowable_values
|
@@ -143,7 +148,9 @@ module OpenapiClient
|
|
143
148
|
:'address_placement' => :'address_placement',
|
144
149
|
:'return_envelope' => :'return_envelope',
|
145
150
|
:'perforated_page' => :'perforated_page',
|
146
|
-
:'custom_envelope' => :'custom_envelope'
|
151
|
+
:'custom_envelope' => :'custom_envelope',
|
152
|
+
:'campaign_id' => :'campaign_id',
|
153
|
+
:'use_type' => :'use_type'
|
147
154
|
}
|
148
155
|
end
|
149
156
|
|
@@ -182,7 +189,9 @@ module OpenapiClient
|
|
182
189
|
:'address_placement' => :'String',
|
183
190
|
:'return_envelope' => Array[:'ReturnEnvelope', :'Boolean'],
|
184
191
|
:'perforated_page' => :'Integer',
|
185
|
-
:'custom_envelope' => :'LetterCustomEnvelope'
|
192
|
+
:'custom_envelope' => :'LetterCustomEnvelope',
|
193
|
+
:'campaign_id' => :'String',
|
194
|
+
:'use_type' => :'LtrUseType'
|
186
195
|
}
|
187
196
|
end
|
188
197
|
|
@@ -195,7 +204,9 @@ module OpenapiClient
|
|
195
204
|
:'return_address',
|
196
205
|
:'return_envelope',
|
197
206
|
:'perforated_page',
|
198
|
-
:'custom_envelope'
|
207
|
+
:'custom_envelope',
|
208
|
+
:'campaign_id',
|
209
|
+
:'use_type'
|
199
210
|
])
|
200
211
|
end
|
201
212
|
|
@@ -203,13 +214,13 @@ module OpenapiClient
|
|
203
214
|
# @param [Hash] attributes Model attributes in the form of hash
|
204
215
|
def initialize(attributes = {})
|
205
216
|
if (!attributes.is_a?(Hash))
|
206
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
217
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Lob::Letter` initialize method"
|
207
218
|
end
|
208
219
|
|
209
220
|
# check to see if the attribute exists and convert string to symbol for hash key
|
210
221
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
211
222
|
if (!self.class.attribute_map.key?(k.to_sym))
|
212
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
223
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Lob::Letter`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
213
224
|
end
|
214
225
|
h[k.to_sym] = v
|
215
226
|
}
|
@@ -341,6 +352,14 @@ module OpenapiClient
|
|
341
352
|
if attributes.key?(:'custom_envelope')
|
342
353
|
self.custom_envelope = attributes[:'custom_envelope']
|
343
354
|
end
|
355
|
+
|
356
|
+
if attributes.key?(:'campaign_id')
|
357
|
+
self.campaign_id = attributes[:'campaign_id']
|
358
|
+
end
|
359
|
+
|
360
|
+
if attributes.key?(:'use_type')
|
361
|
+
self.use_type = attributes[:'use_type']
|
362
|
+
end
|
344
363
|
end
|
345
364
|
|
346
365
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -568,7 +587,9 @@ module OpenapiClient
|
|
568
587
|
address_placement == o.address_placement &&
|
569
588
|
return_envelope == o.return_envelope &&
|
570
589
|
perforated_page == o.perforated_page &&
|
571
|
-
custom_envelope == o.custom_envelope
|
590
|
+
custom_envelope == o.custom_envelope &&
|
591
|
+
campaign_id == o.campaign_id &&
|
592
|
+
use_type == o.use_type
|
572
593
|
end
|
573
594
|
|
574
595
|
# @see the `==` method
|
@@ -580,7 +601,7 @@ module OpenapiClient
|
|
580
601
|
# Calculates hash code according to all attributes.
|
581
602
|
# @return [Integer] Hash code
|
582
603
|
def hash
|
583
|
-
[to, from, carrier, thumbnails, expected_delivery_date, date_created, date_modified, deleted, id, template_id, template_version_id, url, object, description, metadata, merge_variables, send_date, extra_service, tracking_number, tracking_events, return_address, mail_type, color, double_sided, address_placement, return_envelope, perforated_page, custom_envelope].hash
|
604
|
+
[to, from, carrier, thumbnails, expected_delivery_date, date_created, date_modified, deleted, id, template_id, template_version_id, url, object, description, metadata, merge_variables, send_date, extra_service, tracking_number, tracking_events, return_address, mail_type, color, double_sided, address_placement, return_envelope, perforated_page, custom_envelope, campaign_id, use_type].hash
|
584
605
|
end
|
585
606
|
|
586
607
|
|
@@ -660,7 +681,7 @@ module OpenapiClient
|
|
660
681
|
end
|
661
682
|
else # model
|
662
683
|
# models (e.g. Pet) or oneOf
|
663
|
-
klass =
|
684
|
+
klass = Lob.const_get(type)
|
664
685
|
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
665
686
|
end
|
666
687
|
end
|