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
@@ -0,0 +1,259 @@
|
|
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
|
+
# The mapping of column headers in your file to Lob-optional fields for the resource created. See our <a href=\"https://help.lob.com/print-and-mail/building-a-mail-strategy/campaign-or-triggered-sends/campaign-audience-guide#optional-columns-3\" target=\"_blank\">Campaign Audience Guide</a> for additional details.
|
18
|
+
class OptionalAddressColumnMapping
|
19
|
+
# The column header from the csv file that should be mapped to the optional field \"address_line2\"
|
20
|
+
attr_accessor :address_line2
|
21
|
+
|
22
|
+
# The column header from the csv file that should be mapped to the optional field \"company\"
|
23
|
+
attr_accessor :company
|
24
|
+
|
25
|
+
# The column header from the csv file that should be mapped to the optional field \"address_country\"
|
26
|
+
attr_accessor :address_country
|
27
|
+
|
28
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
29
|
+
def self.attribute_map
|
30
|
+
{
|
31
|
+
:'address_line2' => :'address_line2',
|
32
|
+
:'company' => :'company',
|
33
|
+
:'address_country' => :'address_country'
|
34
|
+
}
|
35
|
+
end
|
36
|
+
|
37
|
+
# Returns all the JSON keys this model knows about
|
38
|
+
def self.acceptable_attributes
|
39
|
+
attribute_map.values
|
40
|
+
end
|
41
|
+
|
42
|
+
# Attribute type mapping.
|
43
|
+
def self.openapi_types
|
44
|
+
{
|
45
|
+
:'address_line2' => :'String',
|
46
|
+
:'company' => :'String',
|
47
|
+
:'address_country' => :'String'
|
48
|
+
}
|
49
|
+
end
|
50
|
+
|
51
|
+
# List of attributes with nullable: true
|
52
|
+
def self.openapi_nullable
|
53
|
+
Set.new([
|
54
|
+
:'address_line2',
|
55
|
+
:'company',
|
56
|
+
:'address_country'
|
57
|
+
])
|
58
|
+
end
|
59
|
+
|
60
|
+
# Initializes the object
|
61
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
62
|
+
def initialize(attributes = {})
|
63
|
+
if (!attributes.is_a?(Hash))
|
64
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Lob::OptionalAddressColumnMapping` initialize method"
|
65
|
+
end
|
66
|
+
|
67
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
68
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
69
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
70
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Lob::OptionalAddressColumnMapping`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
71
|
+
end
|
72
|
+
h[k.to_sym] = v
|
73
|
+
}
|
74
|
+
|
75
|
+
if attributes.key?(:'address_line2')
|
76
|
+
self.address_line2 = attributes[:'address_line2']
|
77
|
+
else
|
78
|
+
self.address_line2 = 'null'
|
79
|
+
end
|
80
|
+
|
81
|
+
if attributes.key?(:'company')
|
82
|
+
self.company = attributes[:'company']
|
83
|
+
else
|
84
|
+
self.company = 'null'
|
85
|
+
end
|
86
|
+
|
87
|
+
if attributes.key?(:'address_country')
|
88
|
+
self.address_country = attributes[:'address_country']
|
89
|
+
else
|
90
|
+
self.address_country = 'null'
|
91
|
+
end
|
92
|
+
end
|
93
|
+
|
94
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
95
|
+
# @return Array for valid properties with the reasons
|
96
|
+
def list_invalid_properties
|
97
|
+
invalid_properties = Array.new
|
98
|
+
invalid_properties
|
99
|
+
end
|
100
|
+
|
101
|
+
# Check to see if the all the properties in the model are valid
|
102
|
+
# @return true if the model is valid
|
103
|
+
def valid?
|
104
|
+
true
|
105
|
+
end
|
106
|
+
|
107
|
+
# Checks equality by comparing each attribute.
|
108
|
+
# @param [Object] Object to be compared
|
109
|
+
def ==(o)
|
110
|
+
return true if self.equal?(o)
|
111
|
+
self.class == o.class &&
|
112
|
+
address_line2 == o.address_line2 &&
|
113
|
+
company == o.company &&
|
114
|
+
address_country == o.address_country
|
115
|
+
end
|
116
|
+
|
117
|
+
# @see the `==` method
|
118
|
+
# @param [Object] Object to be compared
|
119
|
+
def eql?(o)
|
120
|
+
self == o
|
121
|
+
end
|
122
|
+
|
123
|
+
# Calculates hash code according to all attributes.
|
124
|
+
# @return [Integer] Hash code
|
125
|
+
def hash
|
126
|
+
[address_line2, company, address_country].hash
|
127
|
+
end
|
128
|
+
|
129
|
+
|
130
|
+
# Builds the object from hash
|
131
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
132
|
+
# @return [Object] Returns the model itself
|
133
|
+
def self.build_from_hash(attributes)
|
134
|
+
new.build_from_hash(attributes)
|
135
|
+
end
|
136
|
+
|
137
|
+
# Builds the object from hash
|
138
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
139
|
+
# @return [Object] Returns the model itself
|
140
|
+
def build_from_hash(attributes)
|
141
|
+
return nil unless attributes.is_a?(Hash)
|
142
|
+
attributes = attributes.transform_keys(&:to_sym)
|
143
|
+
self.class.openapi_types.each_pair do |key, type|
|
144
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
145
|
+
self.send("#{key}=", nil) # // guardrails-disable-line
|
146
|
+
elsif type =~ /\AArray<(.*)>/i
|
147
|
+
# check to ensure the input is an array given that the attribute
|
148
|
+
# is documented as an array but the input is not
|
149
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
150
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) # // guardrails-disable-line
|
151
|
+
end
|
152
|
+
elsif !attributes[self.class.attribute_map[key]].nil? && type.kind_of?(Array)
|
153
|
+
for base_type in type do
|
154
|
+
res = _deserialize(base_type, attributes[self.class.attribute_map[key]])
|
155
|
+
if !res.nil?
|
156
|
+
self.send("#{key}=", res) # // guardrails-disable-line
|
157
|
+
break
|
158
|
+
end
|
159
|
+
end
|
160
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
161
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) # // guardrails-disable-line
|
162
|
+
end
|
163
|
+
end
|
164
|
+
|
165
|
+
self
|
166
|
+
end
|
167
|
+
|
168
|
+
# Deserializes the data based on type
|
169
|
+
# @param string type Data type
|
170
|
+
# @param string value Value to be deserialized
|
171
|
+
# @return [Object] Deserialized data
|
172
|
+
def _deserialize(type, value)
|
173
|
+
case type.to_sym
|
174
|
+
when :Time
|
175
|
+
Time.parse(value)
|
176
|
+
when :Date
|
177
|
+
Date.parse(value)
|
178
|
+
when :String
|
179
|
+
value.to_s
|
180
|
+
when :Integer
|
181
|
+
value.to_i
|
182
|
+
when :Float
|
183
|
+
value.to_f
|
184
|
+
when :Boolean
|
185
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
186
|
+
true
|
187
|
+
else
|
188
|
+
false
|
189
|
+
end
|
190
|
+
when :Object
|
191
|
+
# generic object (usually a Hash), return directly
|
192
|
+
value
|
193
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
194
|
+
inner_type = Regexp.last_match[:inner_type]
|
195
|
+
value.map { |v| _deserialize(inner_type, v) }
|
196
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
197
|
+
k_type = Regexp.last_match[:k_type]
|
198
|
+
v_type = Regexp.last_match[:v_type]
|
199
|
+
{}.tap do |hash|
|
200
|
+
value.each do |k, v|
|
201
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
202
|
+
end
|
203
|
+
end
|
204
|
+
else # model
|
205
|
+
# models (e.g. Pet) or oneOf
|
206
|
+
klass = Lob.const_get(type)
|
207
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
208
|
+
end
|
209
|
+
end
|
210
|
+
|
211
|
+
# Returns the string representation of the object
|
212
|
+
# @return [String] String presentation of the object
|
213
|
+
def to_s
|
214
|
+
to_hash.to_s
|
215
|
+
end
|
216
|
+
|
217
|
+
# to_body is an alias to to_hash (backward compatibility)
|
218
|
+
# @return [Hash] Returns the object in the form of hash
|
219
|
+
def to_body
|
220
|
+
to_hash
|
221
|
+
end
|
222
|
+
|
223
|
+
# Returns the object in the form of hash
|
224
|
+
# @return [Hash] Returns the object in the form of hash
|
225
|
+
def to_hash
|
226
|
+
hash = {}
|
227
|
+
self.class.attribute_map.each_pair do |attr, param|
|
228
|
+
value = self.send(attr) # // guardrails-disable-line
|
229
|
+
if value.nil?
|
230
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
231
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
232
|
+
end
|
233
|
+
|
234
|
+
hash[param] = _to_hash(value)
|
235
|
+
end
|
236
|
+
hash
|
237
|
+
end
|
238
|
+
|
239
|
+
# Outputs non-array value in the form of hash
|
240
|
+
# For object, use to_hash. Otherwise, just return the value
|
241
|
+
# @param [Object] value Any valid value
|
242
|
+
# @return [Hash] Returns the value in the form of hash
|
243
|
+
def _to_hash(value)
|
244
|
+
if value.is_a?(Array)
|
245
|
+
value.compact.map { |v| _to_hash(v) }
|
246
|
+
elsif value.is_a?(Hash)
|
247
|
+
{}.tap do |hash|
|
248
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
249
|
+
end
|
250
|
+
elsif value.respond_to? :to_hash
|
251
|
+
value.to_hash
|
252
|
+
else
|
253
|
+
value
|
254
|
+
end
|
255
|
+
end
|
256
|
+
|
257
|
+
end
|
258
|
+
|
259
|
+
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 PlaceholderModel
|
18
18
|
attr_accessor :return_envelope
|
19
19
|
|
@@ -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::PlaceholderModel` 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::PlaceholderModel`. 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
|
}
|
@@ -217,7 +217,7 @@ module OpenapiClient
|
|
217
217
|
end
|
218
218
|
else # model
|
219
219
|
# models (e.g. Pet) or oneOf
|
220
|
-
klass =
|
220
|
+
klass = Lob.const_get(type)
|
221
221
|
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
222
222
|
end
|
223
223
|
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 Postcard
|
18
18
|
# Unique identifier prefixed with `psc_`.
|
19
19
|
attr_accessor :id
|
@@ -74,6 +74,8 @@ module OpenapiClient
|
|
74
74
|
# A timestamp in ISO 8601 format which specifies a date after the current time and up to 180 days in the future to send the letter off for production. Setting a send date overrides the default [cancellation window](#section/Cancellation-Windows) applied to the mailpiece. Until the `send_date` has passed, the mailpiece can be canceled. If a date in the format `2017-11-01` is passed, it will evaluate to midnight UTC of that date (`2017-11-01T00:00:00.000Z`). If a datetime is passed, that exact time will be used. A `send_date` passed with no time zone will default to UTC, while a `send_date` passed with a time zone will be converted to UTC.
|
75
75
|
attr_accessor :send_date
|
76
76
|
|
77
|
+
attr_accessor :use_type
|
78
|
+
|
77
79
|
class EnumAttributeValidator
|
78
80
|
attr_reader :datatype
|
79
81
|
attr_reader :allowable_values
|
@@ -120,7 +122,8 @@ module OpenapiClient
|
|
120
122
|
:'metadata' => :'metadata',
|
121
123
|
:'mail_type' => :'mail_type',
|
122
124
|
:'merge_variables' => :'merge_variables',
|
123
|
-
:'send_date' => :'send_date'
|
125
|
+
:'send_date' => :'send_date',
|
126
|
+
:'use_type' => :'use_type'
|
124
127
|
}
|
125
128
|
end
|
126
129
|
|
@@ -153,7 +156,8 @@ module OpenapiClient
|
|
153
156
|
:'metadata' => :'Hash<String, String>',
|
154
157
|
:'mail_type' => :'MailType',
|
155
158
|
:'merge_variables' => :'Object',
|
156
|
-
:'send_date' => :'Time'
|
159
|
+
:'send_date' => :'Time',
|
160
|
+
:'use_type' => :'PscUseType'
|
157
161
|
}
|
158
162
|
end
|
159
163
|
|
@@ -167,6 +171,7 @@ module OpenapiClient
|
|
167
171
|
:'tracking_events',
|
168
172
|
:'description',
|
169
173
|
:'merge_variables',
|
174
|
+
:'use_type'
|
170
175
|
])
|
171
176
|
end
|
172
177
|
|
@@ -174,13 +179,13 @@ module OpenapiClient
|
|
174
179
|
# @param [Hash] attributes Model attributes in the form of hash
|
175
180
|
def initialize(attributes = {})
|
176
181
|
if (!attributes.is_a?(Hash))
|
177
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
182
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Lob::Postcard` initialize method"
|
178
183
|
end
|
179
184
|
|
180
185
|
# check to see if the attribute exists and convert string to symbol for hash key
|
181
186
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
182
187
|
if (!self.class.attribute_map.key?(k.to_sym))
|
183
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
188
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Lob::Postcard`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
184
189
|
end
|
185
190
|
h[k.to_sym] = v
|
186
191
|
}
|
@@ -286,6 +291,10 @@ module OpenapiClient
|
|
286
291
|
if attributes.key?(:'send_date')
|
287
292
|
self.send_date = attributes[:'send_date']
|
288
293
|
end
|
294
|
+
|
295
|
+
if attributes.key?(:'use_type')
|
296
|
+
self.use_type = attributes[:'use_type']
|
297
|
+
end
|
289
298
|
end
|
290
299
|
|
291
300
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -498,7 +507,8 @@ module OpenapiClient
|
|
498
507
|
metadata == o.metadata &&
|
499
508
|
mail_type == o.mail_type &&
|
500
509
|
merge_variables == o.merge_variables &&
|
501
|
-
send_date == o.send_date
|
510
|
+
send_date == o.send_date &&
|
511
|
+
use_type == o.use_type
|
502
512
|
end
|
503
513
|
|
504
514
|
# @see the `==` method
|
@@ -510,7 +520,7 @@ module OpenapiClient
|
|
510
520
|
# Calculates hash code according to all attributes.
|
511
521
|
# @return [Integer] Hash code
|
512
522
|
def hash
|
513
|
-
[id, to, from, carrier, thumbnails, size, expected_delivery_date, date_created, date_modified, deleted, front_template_id, back_template_id, front_template_version_id, back_template_version_id, tracking_events, object, url, description, metadata, mail_type, merge_variables, send_date].hash
|
523
|
+
[id, to, from, carrier, thumbnails, size, expected_delivery_date, date_created, date_modified, deleted, front_template_id, back_template_id, front_template_version_id, back_template_version_id, tracking_events, object, url, description, metadata, mail_type, merge_variables, send_date, use_type].hash
|
514
524
|
end
|
515
525
|
|
516
526
|
|
@@ -590,7 +600,7 @@ module OpenapiClient
|
|
590
600
|
end
|
591
601
|
else # model
|
592
602
|
# models (e.g. Pet) or oneOf
|
593
|
-
klass =
|
603
|
+
klass = Lob.const_get(type)
|
594
604
|
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
595
605
|
end
|
596
606
|
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 PostcardDeletion
|
19
19
|
# Unique identifier prefixed with `psc_`.
|
@@ -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::PostcardDeletion` 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::PostcardDeletion`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
90
90
|
end
|
91
91
|
h[k.to_sym] = v
|
92
92
|
}
|
@@ -247,7 +247,7 @@ module OpenapiClient
|
|
247
247
|
end
|
248
248
|
else # model
|
249
249
|
# models (e.g. Pet) or oneOf
|
250
|
-
klass =
|
250
|
+
klass = Lob.const_get(type)
|
251
251
|
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
252
252
|
end
|
253
253
|
end
|
@@ -13,7 +13,7 @@ OpenAPI Generator version: 5.2.1
|
|
13
13
|
require 'date'
|
14
14
|
require 'time'
|
15
15
|
|
16
|
-
module
|
16
|
+
module Lob
|
17
17
|
# Properties that the postcards in your Creative should have.
|
18
18
|
class PostcardDetailsReturned
|
19
19
|
attr_accessor :mail_type
|
@@ -65,13 +65,13 @@ module OpenapiClient
|
|
65
65
|
# @param [Hash] attributes Model attributes in the form of hash
|
66
66
|
def initialize(attributes = {})
|
67
67
|
if (!attributes.is_a?(Hash))
|
68
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
68
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Lob::PostcardDetailsReturned` initialize method"
|
69
69
|
end
|
70
70
|
|
71
71
|
# check to see if the attribute exists and convert string to symbol for hash key
|
72
72
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
73
73
|
if (!self.class.attribute_map.key?(k.to_sym))
|
74
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
74
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Lob::PostcardDetailsReturned`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
75
75
|
end
|
76
76
|
h[k.to_sym] = v
|
77
77
|
}
|
@@ -265,7 +265,7 @@ module OpenapiClient
|
|
265
265
|
end
|
266
266
|
else # model
|
267
267
|
# models (e.g. Pet) or oneOf
|
268
|
-
klass =
|
268
|
+
klass = Lob.const_get(type)
|
269
269
|
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
270
270
|
end
|
271
271
|
end
|
@@ -13,7 +13,7 @@ OpenAPI Generator version: 5.2.1
|
|
13
13
|
require 'date'
|
14
14
|
require 'time'
|
15
15
|
|
16
|
-
module
|
16
|
+
module Lob
|
17
17
|
# Properties that the postcards in your Creative should have.
|
18
18
|
class PostcardDetailsWritable
|
19
19
|
attr_accessor :mail_type
|
@@ -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::PostcardDetailsWritable` 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::PostcardDetailsWritable`. 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
|
}
|
@@ -186,7 +186,7 @@ module OpenapiClient
|
|
186
186
|
end
|
187
187
|
else # model
|
188
188
|
# models (e.g. Pet) or oneOf
|
189
|
-
klass =
|
189
|
+
klass = Lob.const_get(type)
|
190
190
|
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
191
191
|
end
|
192
192
|
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 PostcardEditable
|
18
18
|
# Must either be an address ID or an inline object with correct address parameters.
|
19
19
|
attr_accessor :to
|
@@ -48,6 +48,8 @@ module OpenapiClient
|
|
48
48
|
|
49
49
|
attr_accessor :qr_code
|
50
50
|
|
51
|
+
attr_accessor :use_type
|
52
|
+
|
51
53
|
# Attribute mapping from ruby-style variable name to JSON key.
|
52
54
|
def self.attribute_map
|
53
55
|
{
|
@@ -62,7 +64,8 @@ module OpenapiClient
|
|
62
64
|
:'front' => :'front',
|
63
65
|
:'back' => :'back',
|
64
66
|
:'billing_group_id' => :'billing_group_id',
|
65
|
-
:'qr_code' => :'qr_code'
|
67
|
+
:'qr_code' => :'qr_code',
|
68
|
+
:'use_type' => :'use_type'
|
66
69
|
}
|
67
70
|
end
|
68
71
|
|
@@ -85,7 +88,8 @@ module OpenapiClient
|
|
85
88
|
:'front' => :'String',
|
86
89
|
:'back' => :'String',
|
87
90
|
:'billing_group_id' => :'String',
|
88
|
-
:'qr_code' => :'QrCode'
|
91
|
+
:'qr_code' => :'QrCode',
|
92
|
+
:'use_type' => :'PscUseType'
|
89
93
|
}
|
90
94
|
end
|
91
95
|
|
@@ -96,6 +100,7 @@ module OpenapiClient
|
|
96
100
|
:'from',
|
97
101
|
:'description',
|
98
102
|
:'merge_variables',
|
103
|
+
:'use_type'
|
99
104
|
])
|
100
105
|
end
|
101
106
|
|
@@ -103,13 +108,13 @@ module OpenapiClient
|
|
103
108
|
# @param [Hash] attributes Model attributes in the form of hash
|
104
109
|
def initialize(attributes = {})
|
105
110
|
if (!attributes.is_a?(Hash))
|
106
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
111
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Lob::PostcardEditable` initialize method"
|
107
112
|
end
|
108
113
|
|
109
114
|
# check to see if the attribute exists and convert string to symbol for hash key
|
110
115
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
111
116
|
if (!self.class.attribute_map.key?(k.to_sym))
|
112
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
117
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Lob::PostcardEditable`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
113
118
|
end
|
114
119
|
h[k.to_sym] = v
|
115
120
|
}
|
@@ -167,6 +172,10 @@ module OpenapiClient
|
|
167
172
|
if attributes.key?(:'qr_code')
|
168
173
|
self.qr_code = attributes[:'qr_code']
|
169
174
|
end
|
175
|
+
|
176
|
+
if attributes.key?(:'use_type')
|
177
|
+
self.use_type = attributes[:'use_type']
|
178
|
+
end
|
170
179
|
end
|
171
180
|
|
172
181
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -235,7 +244,8 @@ module OpenapiClient
|
|
235
244
|
front == o.front &&
|
236
245
|
back == o.back &&
|
237
246
|
billing_group_id == o.billing_group_id &&
|
238
|
-
qr_code == o.qr_code
|
247
|
+
qr_code == o.qr_code &&
|
248
|
+
use_type == o.use_type
|
239
249
|
end
|
240
250
|
|
241
251
|
# @see the `==` method
|
@@ -247,7 +257,7 @@ module OpenapiClient
|
|
247
257
|
# Calculates hash code according to all attributes.
|
248
258
|
# @return [Integer] Hash code
|
249
259
|
def hash
|
250
|
-
[to, from, size, description, metadata, mail_type, merge_variables, send_date, front, back, billing_group_id, qr_code].hash
|
260
|
+
[to, from, size, description, metadata, mail_type, merge_variables, send_date, front, back, billing_group_id, qr_code, use_type].hash
|
251
261
|
end
|
252
262
|
|
253
263
|
|
@@ -327,7 +337,7 @@ module OpenapiClient
|
|
327
337
|
end
|
328
338
|
else # model
|
329
339
|
# models (e.g. Pet) or oneOf
|
330
|
-
klass =
|
340
|
+
klass = Lob.const_get(type)
|
331
341
|
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
332
342
|
end
|
333
343
|
end
|
@@ -13,7 +13,7 @@ OpenAPI Generator version: 5.2.1
|
|
13
13
|
require 'date'
|
14
14
|
require 'time'
|
15
15
|
|
16
|
-
module
|
16
|
+
module Lob
|
17
17
|
class PostcardList
|
18
18
|
# list of postcards
|
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::PostcardList` 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::PostcardList`. 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 PscUseType
|
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 = PscUseType.constants.select { |c| PscUseType::const_get(c) == value }
|
34
|
+
raise "Invalid ENUM value #{value} for class #PscUseType" if constantValues.empty?
|
35
|
+
value
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|