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,13 +13,13 @@ OpenAPI Generator version: 5.2.1
|
|
13
13
|
require 'spec_helper'
|
14
14
|
require 'json'
|
15
15
|
|
16
|
-
# Unit tests for
|
16
|
+
# Unit tests for Lob::TemplateVersionsApi
|
17
17
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
18
|
# Please update as you see appropriate
|
19
19
|
describe 'TemplateVersionsApi' do
|
20
20
|
before do
|
21
21
|
# run before each test
|
22
|
-
@api_instance =
|
22
|
+
@api_instance = Lob::TemplateVersionsApi.new
|
23
23
|
end
|
24
24
|
|
25
25
|
after do
|
@@ -28,7 +28,7 @@ describe 'TemplateVersionsApi' do
|
|
28
28
|
|
29
29
|
describe 'test an instance of TemplateVersionsApi' do
|
30
30
|
it 'should create an instance of TemplateVersionsApi' do
|
31
|
-
expect(@api_instance).to be_instance_of(
|
31
|
+
expect(@api_instance).to be_instance_of(Lob::TemplateVersionsApi)
|
32
32
|
end
|
33
33
|
end
|
34
34
|
|
@@ -13,13 +13,13 @@ OpenAPI Generator version: 5.2.1
|
|
13
13
|
require 'spec_helper'
|
14
14
|
require 'json'
|
15
15
|
|
16
|
-
# Unit tests for
|
16
|
+
# Unit tests for Lob::TemplatesApi
|
17
17
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
18
|
# Please update as you see appropriate
|
19
19
|
describe 'TemplatesApi' do
|
20
20
|
before do
|
21
21
|
# run before each test
|
22
|
-
@api_instance =
|
22
|
+
@api_instance = Lob::TemplatesApi.new
|
23
23
|
end
|
24
24
|
|
25
25
|
after do
|
@@ -28,7 +28,7 @@ describe 'TemplatesApi' do
|
|
28
28
|
|
29
29
|
describe 'test an instance of TemplatesApi' do
|
30
30
|
it 'should create an instance of TemplatesApi' do
|
31
|
-
expect(@api_instance).to be_instance_of(
|
31
|
+
expect(@api_instance).to be_instance_of(Lob::TemplatesApi)
|
32
32
|
end
|
33
33
|
end
|
34
34
|
|
@@ -13,13 +13,13 @@ OpenAPI Generator version: 5.2.1
|
|
13
13
|
require 'spec_helper'
|
14
14
|
require 'json'
|
15
15
|
|
16
|
-
# Unit tests for
|
16
|
+
# Unit tests for Lob::UploadsApi
|
17
17
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
18
|
# Please update as you see appropriate
|
19
19
|
describe 'UploadsApi' do
|
20
20
|
before do
|
21
21
|
# run before each test
|
22
|
-
@api_instance =
|
22
|
+
@api_instance = Lob::UploadsApi.new
|
23
23
|
end
|
24
24
|
|
25
25
|
after do
|
@@ -28,7 +28,7 @@ describe 'UploadsApi' do
|
|
28
28
|
|
29
29
|
describe 'test an instance of UploadsApi' do
|
30
30
|
it 'should create an instance of UploadsApi' do
|
31
|
-
expect(@api_instance).to be_instance_of(
|
31
|
+
expect(@api_instance).to be_instance_of(Lob::UploadsApi)
|
32
32
|
end
|
33
33
|
end
|
34
34
|
|
@@ -13,13 +13,13 @@ OpenAPI Generator version: 5.2.1
|
|
13
13
|
require 'spec_helper'
|
14
14
|
require 'json'
|
15
15
|
|
16
|
-
# Unit tests for
|
16
|
+
# Unit tests for Lob::UsAutocompletionsApi
|
17
17
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
18
|
# Please update as you see appropriate
|
19
19
|
describe 'UsAutocompletionsApi' do
|
20
20
|
before do
|
21
21
|
# run before each test
|
22
|
-
@api_instance =
|
22
|
+
@api_instance = Lob::UsAutocompletionsApi.new
|
23
23
|
end
|
24
24
|
|
25
25
|
after do
|
@@ -28,7 +28,7 @@ describe 'UsAutocompletionsApi' do
|
|
28
28
|
|
29
29
|
describe 'test an instance of UsAutocompletionsApi' do
|
30
30
|
it 'should create an instance of UsAutocompletionsApi' do
|
31
|
-
expect(@api_instance).to be_instance_of(
|
31
|
+
expect(@api_instance).to be_instance_of(Lob::UsAutocompletionsApi)
|
32
32
|
end
|
33
33
|
end
|
34
34
|
|
@@ -13,13 +13,13 @@ OpenAPI Generator version: 5.2.1
|
|
13
13
|
require 'spec_helper'
|
14
14
|
require 'json'
|
15
15
|
|
16
|
-
# Unit tests for
|
16
|
+
# Unit tests for Lob::UsVerificationsApi
|
17
17
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
18
|
# Please update as you see appropriate
|
19
19
|
describe 'UsVerificationsApi' do
|
20
20
|
before do
|
21
21
|
# run before each test
|
22
|
-
@api_instance =
|
22
|
+
@api_instance = Lob::UsVerificationsApi.new
|
23
23
|
end
|
24
24
|
|
25
25
|
after do
|
@@ -28,7 +28,7 @@ describe 'UsVerificationsApi' do
|
|
28
28
|
|
29
29
|
describe 'test an instance of UsVerificationsApi' do
|
30
30
|
it 'should create an instance of UsVerificationsApi' do
|
31
|
-
expect(@api_instance).to be_instance_of(
|
31
|
+
expect(@api_instance).to be_instance_of(Lob::UsVerificationsApi)
|
32
32
|
end
|
33
33
|
end
|
34
34
|
|
@@ -13,13 +13,13 @@ OpenAPI Generator version: 5.2.1
|
|
13
13
|
require 'spec_helper'
|
14
14
|
require 'json'
|
15
15
|
|
16
|
-
# Unit tests for
|
16
|
+
# Unit tests for Lob::ZipLookupsApi
|
17
17
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
18
|
# Please update as you see appropriate
|
19
19
|
describe 'ZipLookupsApi' do
|
20
20
|
before do
|
21
21
|
# run before each test
|
22
|
-
@api_instance =
|
22
|
+
@api_instance = Lob::ZipLookupsApi.new
|
23
23
|
end
|
24
24
|
|
25
25
|
after do
|
@@ -28,7 +28,7 @@ describe 'ZipLookupsApi' do
|
|
28
28
|
|
29
29
|
describe 'test an instance of ZipLookupsApi' do
|
30
30
|
it 'should create an instance of ZipLookupsApi' do
|
31
|
-
expect(@api_instance).to be_instance_of(
|
31
|
+
expect(@api_instance).to be_instance_of(Lob::ZipLookupsApi)
|
32
32
|
end
|
33
33
|
end
|
34
34
|
|
data/spec/api_client_spec.rb
CHANGED
@@ -12,51 +12,51 @@ OpenAPI Generator version: 5.2.1
|
|
12
12
|
|
13
13
|
require 'spec_helper'
|
14
14
|
|
15
|
-
describe
|
15
|
+
describe Lob::ApiClient do
|
16
16
|
context 'initialization' do
|
17
17
|
context 'URL stuff' do
|
18
18
|
context 'host' do
|
19
19
|
it 'removes http from host' do
|
20
|
-
|
21
|
-
expect(
|
20
|
+
Lob.configure { |c| c.host = 'http://example.com' }
|
21
|
+
expect(Lob::Configuration.default.host).to eq('example.com')
|
22
22
|
end
|
23
23
|
|
24
24
|
it 'removes https from host' do
|
25
|
-
|
26
|
-
expect(
|
25
|
+
Lob.configure { |c| c.host = 'https://wookiee.com' }
|
26
|
+
expect(Lob::ApiClient.default.config.host).to eq('wookiee.com')
|
27
27
|
end
|
28
28
|
|
29
29
|
it 'removes trailing path from host' do
|
30
|
-
|
31
|
-
expect(
|
30
|
+
Lob.configure { |c| c.host = 'hobo.com/v4' }
|
31
|
+
expect(Lob::Configuration.default.host).to eq('hobo.com')
|
32
32
|
end
|
33
33
|
end
|
34
34
|
|
35
35
|
context 'base_path' do
|
36
36
|
it "prepends a slash to base_path" do
|
37
|
-
|
38
|
-
expect(
|
37
|
+
Lob.configure { |c| c.base_path = 'v4/dog' }
|
38
|
+
expect(Lob::Configuration.default.base_path).to eq('/v4/dog')
|
39
39
|
end
|
40
40
|
|
41
41
|
it "doesn't prepend a slash if one is already there" do
|
42
|
-
|
43
|
-
expect(
|
42
|
+
Lob.configure { |c| c.base_path = '/v4/dog' }
|
43
|
+
expect(Lob::Configuration.default.base_path).to eq('/v4/dog')
|
44
44
|
end
|
45
45
|
|
46
46
|
it "ends up as a blank string if nil" do
|
47
|
-
|
48
|
-
expect(
|
47
|
+
Lob.configure { |c| c.base_path = nil }
|
48
|
+
expect(Lob::Configuration.default.base_path).to eq('')
|
49
49
|
end
|
50
50
|
end
|
51
51
|
end
|
52
52
|
end
|
53
53
|
|
54
54
|
describe 'params_encoding in #build_request' do
|
55
|
-
let(:config) {
|
56
|
-
let(:api_client) {
|
55
|
+
let(:config) { Lob::Configuration.new }
|
56
|
+
let(:api_client) { Lob::ApiClient.new(config) }
|
57
57
|
|
58
58
|
it 'defaults to nil' do
|
59
|
-
expect(
|
59
|
+
expect(Lob::Configuration.default.params_encoding).to eq(nil)
|
60
60
|
expect(config.params_encoding).to eq(nil)
|
61
61
|
|
62
62
|
request = api_client.build_request(:get, '/test')
|
@@ -71,11 +71,11 @@ describe OpenapiClient::ApiClient do
|
|
71
71
|
end
|
72
72
|
|
73
73
|
describe 'timeout in #build_request' do
|
74
|
-
let(:config) {
|
75
|
-
let(:api_client) {
|
74
|
+
let(:config) { Lob::Configuration.new }
|
75
|
+
let(:api_client) { Lob::ApiClient.new(config) }
|
76
76
|
|
77
77
|
it 'defaults to 0' do
|
78
|
-
expect(
|
78
|
+
expect(Lob::Configuration.default.timeout).to eq(0)
|
79
79
|
expect(config.timeout).to eq(0)
|
80
80
|
|
81
81
|
request = api_client.build_request(:get, '/test')
|
@@ -91,7 +91,7 @@ describe OpenapiClient::ApiClient do
|
|
91
91
|
|
92
92
|
describe '#deserialize' do
|
93
93
|
it "handles Array<Integer>" do
|
94
|
-
api_client =
|
94
|
+
api_client = Lob::ApiClient.new
|
95
95
|
headers = { 'Content-Type' => 'application/json' }
|
96
96
|
response = double('response', headers: headers, body: '[12, 34]')
|
97
97
|
data = api_client.deserialize(response, 'Array<Integer>')
|
@@ -100,7 +100,7 @@ describe OpenapiClient::ApiClient do
|
|
100
100
|
end
|
101
101
|
|
102
102
|
it 'handles Array<Array<Integer>>' do
|
103
|
-
api_client =
|
103
|
+
api_client = Lob::ApiClient.new
|
104
104
|
headers = { 'Content-Type' => 'application/json' }
|
105
105
|
response = double('response', headers: headers, body: '[[12, 34], [56]]')
|
106
106
|
data = api_client.deserialize(response, 'Array<Array<Integer>>')
|
@@ -109,7 +109,7 @@ describe OpenapiClient::ApiClient do
|
|
109
109
|
end
|
110
110
|
|
111
111
|
it 'handles Hash<String, String>' do
|
112
|
-
api_client =
|
112
|
+
api_client = Lob::ApiClient.new
|
113
113
|
headers = { 'Content-Type' => 'application/json' }
|
114
114
|
response = double('response', headers: headers, body: '{"message": "Hello"}')
|
115
115
|
data = api_client.deserialize(response, 'Hash<String, String>')
|
@@ -121,8 +121,8 @@ describe OpenapiClient::ApiClient do
|
|
121
121
|
describe "#object_to_hash" do
|
122
122
|
it 'ignores nils and includes empty arrays' do
|
123
123
|
# uncomment below to test object_to_hash for model
|
124
|
-
# api_client =
|
125
|
-
# _model =
|
124
|
+
# api_client = Lob::ApiClient.new
|
125
|
+
# _model = Lob::ModelName.new
|
126
126
|
# update the model attribute below
|
127
127
|
# _model.id = 1
|
128
128
|
# update the expected value (hash) below
|
@@ -133,7 +133,7 @@ describe OpenapiClient::ApiClient do
|
|
133
133
|
|
134
134
|
describe '#build_collection_param' do
|
135
135
|
let(:param) { ['aa', 'bb', 'cc'] }
|
136
|
-
let(:api_client) {
|
136
|
+
let(:api_client) { Lob::ApiClient.new }
|
137
137
|
|
138
138
|
it 'works for csv' do
|
139
139
|
expect(api_client.build_collection_param(param, :csv)).to eq('aa,bb,cc')
|
@@ -161,7 +161,7 @@ describe OpenapiClient::ApiClient do
|
|
161
161
|
end
|
162
162
|
|
163
163
|
describe '#json_mime?' do
|
164
|
-
let(:api_client) {
|
164
|
+
let(:api_client) { Lob::ApiClient.new }
|
165
165
|
|
166
166
|
it 'works' do
|
167
167
|
expect(api_client.json_mime?(nil)).to eq false
|
@@ -178,7 +178,7 @@ describe OpenapiClient::ApiClient do
|
|
178
178
|
end
|
179
179
|
|
180
180
|
describe '#select_header_accept' do
|
181
|
-
let(:api_client) {
|
181
|
+
let(:api_client) { Lob::ApiClient.new }
|
182
182
|
|
183
183
|
it 'works' do
|
184
184
|
expect(api_client.select_header_accept(nil)).to be_nil
|
@@ -194,7 +194,7 @@ describe OpenapiClient::ApiClient do
|
|
194
194
|
end
|
195
195
|
|
196
196
|
describe '#select_header_content_type' do
|
197
|
-
let(:api_client) {
|
197
|
+
let(:api_client) { Lob::ApiClient.new }
|
198
198
|
|
199
199
|
it 'works' do
|
200
200
|
expect(api_client.select_header_content_type(nil)).to be_nil
|
@@ -209,7 +209,7 @@ describe OpenapiClient::ApiClient do
|
|
209
209
|
end
|
210
210
|
|
211
211
|
describe '#sanitize_filename' do
|
212
|
-
let(:api_client) {
|
212
|
+
let(:api_client) { Lob::ApiClient.new }
|
213
213
|
|
214
214
|
it 'works' do
|
215
215
|
expect(api_client.sanitize_filename('sun')).to eq('sun')
|
data/spec/configuration_spec.rb
CHANGED
@@ -12,14 +12,14 @@ OpenAPI Generator version: 5.2.1
|
|
12
12
|
|
13
13
|
require 'spec_helper'
|
14
14
|
|
15
|
-
describe
|
16
|
-
let(:config) {
|
15
|
+
describe Lob::Configuration do
|
16
|
+
let(:config) { Lob::Configuration.default }
|
17
17
|
|
18
18
|
before(:each) do
|
19
19
|
# uncomment below to setup host and base_path
|
20
20
|
# require 'URI'
|
21
21
|
# uri = URI.parse("https://api.lob.com/v1")
|
22
|
-
#
|
22
|
+
# Lob.configure do |c|
|
23
23
|
# c.host = uri.host
|
24
24
|
# c.base_path = uri.path
|
25
25
|
# end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lob
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 6.0.0
|
4
|
+
version: 6.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lob
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-01-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -57,9 +57,11 @@ executables: []
|
|
57
57
|
extensions: []
|
58
58
|
extra_rdoc_files: []
|
59
59
|
files:
|
60
|
+
- CODE_SNIPPETS.md
|
60
61
|
- Gemfile
|
61
62
|
- Gemfile.lock
|
62
63
|
- LICENSE
|
64
|
+
- MIGRATION.md
|
63
65
|
- README.md
|
64
66
|
- Rakefile
|
65
67
|
- __tests__/Api/Address.unit.rb
|
@@ -335,6 +337,7 @@ files:
|
|
335
337
|
- lib/openapi_client/models/check_deletion.rb
|
336
338
|
- lib/openapi_client/models/check_editable.rb
|
337
339
|
- lib/openapi_client/models/check_list.rb
|
340
|
+
- lib/openapi_client/models/chk_use_type.rb
|
338
341
|
- lib/openapi_client/models/cmp_schedule_type.rb
|
339
342
|
- lib/openapi_client/models/cmp_use_type.rb
|
340
343
|
- lib/openapi_client/models/country_extended.rb
|
@@ -375,11 +378,13 @@ files:
|
|
375
378
|
- lib/openapi_client/models/lob_error.rb
|
376
379
|
- lib/openapi_client/models/location.rb
|
377
380
|
- lib/openapi_client/models/location_analysis.rb
|
381
|
+
- lib/openapi_client/models/ltr_use_type.rb
|
378
382
|
- lib/openapi_client/models/mail_type.rb
|
379
383
|
- lib/openapi_client/models/multi_line_address.rb
|
380
384
|
- lib/openapi_client/models/multiple_components.rb
|
381
385
|
- lib/openapi_client/models/multiple_components_intl.rb
|
382
386
|
- lib/openapi_client/models/multiple_components_list.rb
|
387
|
+
- lib/openapi_client/models/optional_address_column_mapping.rb
|
383
388
|
- lib/openapi_client/models/placeholder_model.rb
|
384
389
|
- lib/openapi_client/models/postcard.rb
|
385
390
|
- lib/openapi_client/models/postcard_deletion.rb
|
@@ -388,7 +393,9 @@ files:
|
|
388
393
|
- lib/openapi_client/models/postcard_editable.rb
|
389
394
|
- lib/openapi_client/models/postcard_list.rb
|
390
395
|
- lib/openapi_client/models/postcard_size.rb
|
396
|
+
- lib/openapi_client/models/psc_use_type.rb
|
391
397
|
- lib/openapi_client/models/qr_code.rb
|
398
|
+
- lib/openapi_client/models/required_address_column_mapping.rb
|
392
399
|
- lib/openapi_client/models/return_envelope.rb
|
393
400
|
- lib/openapi_client/models/reverse_geocode.rb
|
394
401
|
- lib/openapi_client/models/self_mailer.rb
|
@@ -396,6 +403,7 @@ files:
|
|
396
403
|
- lib/openapi_client/models/self_mailer_editable.rb
|
397
404
|
- lib/openapi_client/models/self_mailer_list.rb
|
398
405
|
- lib/openapi_client/models/self_mailer_size.rb
|
406
|
+
- lib/openapi_client/models/sfm_use_type.rb
|
399
407
|
- lib/openapi_client/models/sort_by.rb
|
400
408
|
- lib/openapi_client/models/sort_by1.rb
|
401
409
|
- lib/openapi_client/models/sort_by2.rb
|
@@ -422,6 +430,7 @@ files:
|
|
422
430
|
- lib/openapi_client/models/upload_state.rb
|
423
431
|
- lib/openapi_client/models/upload_updatable.rb
|
424
432
|
- lib/openapi_client/models/upload_writable.rb
|
433
|
+
- lib/openapi_client/models/uploads_metadata.rb
|
425
434
|
- lib/openapi_client/models/us_autocompletions.rb
|
426
435
|
- lib/openapi_client/models/us_autocompletions_writable.rb
|
427
436
|
- lib/openapi_client/models/us_components.rb
|
@@ -476,37 +485,37 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
476
485
|
version: '0'
|
477
486
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
478
487
|
requirements:
|
479
|
-
- - "
|
488
|
+
- - ">="
|
480
489
|
- !ruby/object:Gem::Version
|
481
|
-
version:
|
490
|
+
version: '0'
|
482
491
|
requirements: []
|
483
492
|
rubygems_version: 3.1.6
|
484
493
|
signing_key:
|
485
494
|
specification_version: 4
|
486
495
|
summary: Ruby wrapper for Lob.com API with ActiveRecord-style syntax
|
487
496
|
test_files:
|
497
|
+
- spec/api/billing_groups_api_spec.rb
|
498
|
+
- spec/api/postcards_api_spec.rb
|
499
|
+
- spec/api/us_verifications_api_spec.rb
|
500
|
+
- spec/api/default_api_spec.rb
|
501
|
+
- spec/api/us_autocompletions_api_spec.rb
|
502
|
+
- spec/api/bank_accounts_api_spec.rb
|
488
503
|
- spec/api/intl_verifications_api_spec.rb
|
489
|
-
- spec/api/
|
490
|
-
- spec/api/
|
504
|
+
- spec/api/self_mailers_api_spec.rb
|
505
|
+
- spec/api/cards_api_spec.rb
|
506
|
+
- spec/api/creatives_api_spec.rb
|
507
|
+
- spec/api/checks_api_spec.rb
|
491
508
|
- spec/api/letters_api_spec.rb
|
509
|
+
- spec/api/zip_lookups_api_spec.rb
|
492
510
|
- spec/api/template_versions_api_spec.rb
|
493
|
-
- spec/api/checks_api_spec.rb
|
494
|
-
- spec/api/bank_accounts_api_spec.rb
|
495
|
-
- spec/api/intl_autocompletions_api_spec.rb
|
496
|
-
- spec/api/us_autocompletions_api_spec.rb
|
497
|
-
- spec/api/campaigns_api_spec.rb
|
498
|
-
- spec/api/us_verifications_api_spec.rb
|
499
|
-
- spec/api/self_mailers_api_spec.rb
|
500
|
-
- spec/api/billing_groups_api_spec.rb
|
501
511
|
- spec/api/addresses_api_spec.rb
|
512
|
+
- spec/api/campaigns_api_spec.rb
|
513
|
+
- spec/api/card_orders_api_spec.rb
|
502
514
|
- spec/api/identity_validation_api_spec.rb
|
503
|
-
- spec/api/
|
504
|
-
- spec/api/default_api_spec.rb
|
515
|
+
- spec/api/intl_autocompletions_api_spec.rb
|
505
516
|
- spec/api/uploads_api_spec.rb
|
506
|
-
- spec/api/
|
507
|
-
- spec/api/
|
508
|
-
- spec/api/zip_lookups_api_spec.rb
|
509
|
-
- spec/api/cards_api_spec.rb
|
517
|
+
- spec/api/templates_api_spec.rb
|
518
|
+
- spec/api/reverse_geocode_lookups_api_spec.rb
|
510
519
|
- spec/api_client_spec.rb
|
511
520
|
- spec/configuration_spec.rb
|
512
521
|
- spec/spec_helper.rb
|