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.
Files changed (410) hide show
  1. checksums.yaml +4 -4
  2. data/CODE_SNIPPETS.md +1871 -0
  3. data/Gemfile.lock +7 -7
  4. data/MIGRATION.md +174 -0
  5. data/README.md +10 -34
  6. data/__tests__/Api/Address.unit.rb +1 -1
  7. data/__tests__/Api/BankAccount.unit.rb +1 -1
  8. data/__tests__/Api/BillingGroup.unit.rb +1 -1
  9. data/__tests__/Api/Card.unit.rb +1 -1
  10. data/__tests__/Api/CardOrder.unit.rb +1 -1
  11. data/__tests__/Api/Check.unit.rb +1 -1
  12. data/__tests__/Api/IntlAutocompletion.unit.rb +1 -1
  13. data/__tests__/Api/IntlVerification.unit.rb +1 -1
  14. data/__tests__/Api/Letter.unit.rb +1 -1
  15. data/__tests__/Api/Postcard.unit.rb +1 -1
  16. data/__tests__/Api/ReverseGeocodeLookup.unit.rb +1 -1
  17. data/__tests__/Api/SelfMailer.unit.rb +1 -1
  18. data/__tests__/Api/Template.unit.rb +1 -1
  19. data/__tests__/Api/TemplateVersion.unit.rb +1 -1
  20. data/__tests__/Api/UsAutocompletion.unit.rb +8 -8
  21. data/__tests__/Api/UsVerification.unit.rb +1 -1
  22. data/__tests__/Api/ZipLookup.unit.rb +1 -1
  23. data/__tests__/Integration/Address.spec.rb +3 -3
  24. data/__tests__/Integration/BankAccount.spec.rb +3 -3
  25. data/__tests__/Integration/BillingGroup.spec.rb +3 -3
  26. data/__tests__/Integration/Card.spec.rb +3 -3
  27. data/__tests__/Integration/CardOrder.spec.rb +3 -3
  28. data/__tests__/Integration/Check.spec.rb +3 -3
  29. data/__tests__/Integration/IntlAutocompletion.spec.rb +3 -3
  30. data/__tests__/Integration/IntlVerification.spec.rb +3 -3
  31. data/__tests__/Integration/Letter.spec.rb +3 -3
  32. data/__tests__/Integration/Postcard.spec.rb +3 -3
  33. data/__tests__/Integration/ReverseGeocodeLookup.spec.rb +1 -1
  34. data/__tests__/Integration/SelfMailer.spec.rb +15 -9
  35. data/__tests__/Integration/Template.spec.rb +3 -3
  36. data/__tests__/Integration/TemplateVersion.spec.rb +3 -3
  37. data/__tests__/Integration/UsAutocompletion.spec.rb +3 -3
  38. data/__tests__/Integration/UsVerification.spec.rb +3 -3
  39. data/__tests__/Integration/ZipLookup.spec.rb +1 -1
  40. data/__tests__/TestFixtures.rb +5 -5
  41. data/docs/Address.md +2 -2
  42. data/docs/AddressDeletion.md +2 -2
  43. data/docs/AddressDomestic.md +2 -2
  44. data/docs/AddressDomesticExpanded.md +2 -2
  45. data/docs/AddressEditable.md +2 -2
  46. data/docs/AddressList.md +2 -2
  47. data/docs/AddressesApi.md +18 -18
  48. data/docs/BankAccount.md +2 -2
  49. data/docs/BankAccountDeletion.md +2 -2
  50. data/docs/BankAccountList.md +2 -2
  51. data/docs/BankAccountVerify.md +2 -2
  52. data/docs/BankAccountWritable.md +2 -2
  53. data/docs/BankAccountsApi.md +23 -23
  54. data/docs/BankTypeEnum.md +2 -2
  55. data/docs/BillingGroup.md +2 -2
  56. data/docs/BillingGroupEditable.md +2 -2
  57. data/docs/BillingGroupList.md +2 -2
  58. data/docs/BillingGroupsApi.md +20 -20
  59. data/docs/Buckslip.md +2 -2
  60. data/docs/BuckslipDeletion.md +2 -2
  61. data/docs/BuckslipEditable.md +2 -2
  62. data/docs/BuckslipOrder.md +2 -2
  63. data/docs/BuckslipOrderEditable.md +2 -2
  64. data/docs/BuckslipOrdersApi.md +10 -10
  65. data/docs/BuckslipOrdersList.md +2 -2
  66. data/docs/BuckslipUpdatable.md +2 -2
  67. data/docs/BuckslipsApi.md +23 -23
  68. data/docs/BuckslipsList.md +2 -2
  69. data/docs/BulkError.md +2 -2
  70. data/docs/BulkErrorProperties.md +2 -2
  71. data/docs/Campaign.md +2 -2
  72. data/docs/CampaignCreative.md +2 -2
  73. data/docs/CampaignDeletion.md +2 -2
  74. data/docs/CampaignUpdatable.md +2 -2
  75. data/docs/CampaignWritable.md +2 -2
  76. data/docs/CampaignsApi.md +23 -23
  77. data/docs/CampaignsList.md +2 -2
  78. data/docs/Card.md +2 -2
  79. data/docs/CardDeletion.md +2 -2
  80. data/docs/CardEditable.md +2 -2
  81. data/docs/CardList.md +2 -2
  82. data/docs/CardOrder.md +2 -2
  83. data/docs/CardOrderEditable.md +2 -2
  84. data/docs/CardOrderList.md +2 -2
  85. data/docs/CardOrdersApi.md +10 -10
  86. data/docs/CardUpdatable.md +2 -2
  87. data/docs/CardsApi.md +23 -23
  88. data/docs/Check.md +2 -2
  89. data/docs/CheckDeletion.md +2 -2
  90. data/docs/CheckEditable.md +2 -2
  91. data/docs/CheckList.md +2 -2
  92. data/docs/ChecksApi.md +20 -20
  93. data/docs/CmpScheduleType.md +2 -2
  94. data/docs/CmpUseType.md +2 -2
  95. data/docs/CountryExtended.md +2 -2
  96. data/docs/CountryExtendedExpanded.md +2 -2
  97. data/docs/CreativePatch.md +2 -2
  98. data/docs/CreativeResponse.md +2 -2
  99. data/docs/CreativeWritable.md +2 -2
  100. data/docs/CreativesApi.md +15 -15
  101. data/docs/CustomEnvelopeReturned.md +2 -2
  102. data/docs/DefaultApi.md +5 -5
  103. data/docs/DeliverabilityAnalysis.md +2 -2
  104. data/docs/DpvFootnote.md +2 -2
  105. data/docs/EngineHtml.md +2 -2
  106. data/docs/EventType.md +2 -2
  107. data/docs/Events.md +2 -2
  108. data/docs/Export.md +2 -2
  109. data/docs/ExportModel.md +2 -2
  110. data/docs/GeocodeAddresses.md +2 -2
  111. data/docs/GeocodeComponents.md +2 -2
  112. data/docs/HTTPValidationError.md +2 -2
  113. data/docs/IdentityValidation.md +2 -2
  114. data/docs/IdentityValidationApi.md +6 -6
  115. data/docs/InlineObject.md +2 -2
  116. data/docs/IntlAutocompletions.md +2 -2
  117. data/docs/IntlAutocompletionsApi.md +6 -6
  118. data/docs/IntlAutocompletionsWritable.md +2 -2
  119. data/docs/IntlComponents.md +2 -2
  120. data/docs/IntlSuggestions.md +2 -2
  121. data/docs/IntlVerification.md +2 -2
  122. data/docs/IntlVerificationOrError.md +2 -2
  123. data/docs/IntlVerificationWritable.md +2 -2
  124. data/docs/IntlVerifications.md +2 -2
  125. data/docs/IntlVerificationsApi.md +11 -11
  126. data/docs/IntlVerificationsPayload.md +2 -2
  127. data/docs/Letter.md +2 -2
  128. data/docs/LetterCustomEnvelope.md +2 -2
  129. data/docs/LetterDeletion.md +2 -2
  130. data/docs/LetterDetailsReturned.md +2 -2
  131. data/docs/LetterDetailsWritable.md +2 -2
  132. data/docs/LetterEditable.md +2 -2
  133. data/docs/LetterList.md +2 -2
  134. data/docs/LettersApi.md +20 -20
  135. data/docs/LobConfidenceScore.md +2 -2
  136. data/docs/LobError.md +2 -2
  137. data/docs/Location.md +2 -2
  138. data/docs/LocationAnalysis.md +2 -2
  139. data/docs/MailType.md +2 -2
  140. data/docs/MultiLineAddress.md +2 -2
  141. data/docs/MultipleComponents.md +2 -2
  142. data/docs/MultipleComponentsIntl.md +2 -2
  143. data/docs/MultipleComponentsList.md +2 -2
  144. data/docs/PlaceholderModel.md +2 -2
  145. data/docs/Postcard.md +2 -2
  146. data/docs/PostcardDeletion.md +2 -2
  147. data/docs/PostcardDetailsReturned.md +2 -2
  148. data/docs/PostcardDetailsWritable.md +2 -2
  149. data/docs/PostcardEditable.md +2 -2
  150. data/docs/PostcardList.md +2 -2
  151. data/docs/PostcardSize.md +2 -2
  152. data/docs/PostcardsApi.md +21 -21
  153. data/docs/QrCode.md +2 -2
  154. data/docs/ReturnEnvelope.md +2 -2
  155. data/docs/ReverseGeocode.md +2 -2
  156. data/docs/ReverseGeocodeLookupsApi.md +6 -6
  157. data/docs/SelfMailer.md +2 -2
  158. data/docs/SelfMailerDeletion.md +2 -2
  159. data/docs/SelfMailerEditable.md +2 -2
  160. data/docs/SelfMailerList.md +2 -2
  161. data/docs/SelfMailerSize.md +2 -2
  162. data/docs/SelfMailersApi.md +21 -21
  163. data/docs/SortBy.md +2 -2
  164. data/docs/SortBy1.md +2 -2
  165. data/docs/SortBy2.md +2 -2
  166. data/docs/SortBy3.md +2 -2
  167. data/docs/SortByDateModified.md +2 -2
  168. data/docs/Suggestions.md +2 -2
  169. data/docs/Template.md +2 -2
  170. data/docs/TemplateDeletion.md +2 -2
  171. data/docs/TemplateList.md +2 -2
  172. data/docs/TemplateUpdate.md +2 -2
  173. data/docs/TemplateVersion.md +2 -2
  174. data/docs/TemplateVersionDeletion.md +2 -2
  175. data/docs/TemplateVersionList.md +2 -2
  176. data/docs/TemplateVersionUpdatable.md +2 -2
  177. data/docs/TemplateVersionWritable.md +2 -2
  178. data/docs/TemplateVersionsApi.md +23 -23
  179. data/docs/TemplateWritable.md +2 -2
  180. data/docs/TemplatesApi.md +23 -23
  181. data/docs/Thumbnail.md +2 -2
  182. data/docs/TrackingEventCertified.md +2 -2
  183. data/docs/TrackingEventDetails.md +2 -2
  184. data/docs/TrackingEventNormal.md +2 -2
  185. data/docs/Upload.md +2 -2
  186. data/docs/UploadCreateExport.md +2 -2
  187. data/docs/UploadFile.md +2 -2
  188. data/docs/UploadState.md +2 -2
  189. data/docs/UploadUpdatable.md +2 -2
  190. data/docs/UploadWritable.md +2 -2
  191. data/docs/UploadsApi.md +36 -36
  192. data/docs/UsAutocompletions.md +2 -2
  193. data/docs/UsAutocompletionsApi.md +6 -6
  194. data/docs/UsAutocompletionsWritable.md +2 -2
  195. data/docs/UsComponents.md +2 -2
  196. data/docs/UsVerification.md +2 -2
  197. data/docs/UsVerificationOrError.md +2 -2
  198. data/docs/UsVerifications.md +2 -2
  199. data/docs/UsVerificationsApi.md +11 -11
  200. data/docs/UsVerificationsWritable.md +2 -2
  201. data/docs/ValidationError.md +2 -2
  202. data/docs/Zip.md +2 -2
  203. data/docs/ZipCodeType.md +2 -2
  204. data/docs/ZipEditable.md +2 -2
  205. data/docs/ZipLookupCity.md +2 -2
  206. data/docs/ZipLookupsApi.md +6 -6
  207. data/lib/openapi_client/api/addresses_api.rb +1 -1
  208. data/lib/openapi_client/api/bank_accounts_api.rb +1 -1
  209. data/lib/openapi_client/api/billing_groups_api.rb +1 -1
  210. data/lib/openapi_client/api/buckslip_orders_api.rb +1 -1
  211. data/lib/openapi_client/api/buckslips_api.rb +1 -1
  212. data/lib/openapi_client/api/campaigns_api.rb +1 -1
  213. data/lib/openapi_client/api/card_orders_api.rb +1 -1
  214. data/lib/openapi_client/api/cards_api.rb +1 -1
  215. data/lib/openapi_client/api/checks_api.rb +1 -1
  216. data/lib/openapi_client/api/creatives_api.rb +1 -1
  217. data/lib/openapi_client/api/default_api.rb +1 -1
  218. data/lib/openapi_client/api/identity_validation_api.rb +1 -1
  219. data/lib/openapi_client/api/intl_autocompletions_api.rb +1 -1
  220. data/lib/openapi_client/api/intl_verifications_api.rb +1 -1
  221. data/lib/openapi_client/api/letters_api.rb +1 -1
  222. data/lib/openapi_client/api/postcards_api.rb +1 -1
  223. data/lib/openapi_client/api/reverse_geocode_lookups_api.rb +1 -1
  224. data/lib/openapi_client/api/self_mailers_api.rb +1 -1
  225. data/lib/openapi_client/api/template_versions_api.rb +1 -1
  226. data/lib/openapi_client/api/templates_api.rb +1 -1
  227. data/lib/openapi_client/api/uploads_api.rb +1 -1
  228. data/lib/openapi_client/api/us_autocompletions_api.rb +1 -1
  229. data/lib/openapi_client/api/us_verifications_api.rb +1 -1
  230. data/lib/openapi_client/api/zip_lookups_api.rb +1 -1
  231. data/lib/openapi_client/api_client.rb +2 -2
  232. data/lib/openapi_client/api_error.rb +1 -1
  233. data/lib/openapi_client/configuration.rb +1 -1
  234. data/lib/openapi_client/models/address.rb +4 -4
  235. data/lib/openapi_client/models/address_deletion.rb +4 -4
  236. data/lib/openapi_client/models/address_domestic.rb +4 -4
  237. data/lib/openapi_client/models/address_domestic_expanded.rb +4 -4
  238. data/lib/openapi_client/models/address_editable.rb +4 -4
  239. data/lib/openapi_client/models/address_list.rb +4 -4
  240. data/lib/openapi_client/models/bank_account.rb +4 -4
  241. data/lib/openapi_client/models/bank_account_deletion.rb +4 -4
  242. data/lib/openapi_client/models/bank_account_list.rb +4 -4
  243. data/lib/openapi_client/models/bank_account_verify.rb +4 -4
  244. data/lib/openapi_client/models/bank_account_writable.rb +4 -4
  245. data/lib/openapi_client/models/bank_type_enum.rb +1 -1
  246. data/lib/openapi_client/models/billing_group.rb +4 -4
  247. data/lib/openapi_client/models/billing_group_editable.rb +4 -4
  248. data/lib/openapi_client/models/billing_group_list.rb +4 -4
  249. data/lib/openapi_client/models/buckslip.rb +4 -4
  250. data/lib/openapi_client/models/buckslip_deletion.rb +4 -4
  251. data/lib/openapi_client/models/buckslip_editable.rb +4 -4
  252. data/lib/openapi_client/models/buckslip_order.rb +4 -4
  253. data/lib/openapi_client/models/buckslip_order_editable.rb +4 -4
  254. data/lib/openapi_client/models/buckslip_orders_list.rb +4 -4
  255. data/lib/openapi_client/models/buckslip_updatable.rb +4 -4
  256. data/lib/openapi_client/models/buckslips_list.rb +4 -4
  257. data/lib/openapi_client/models/bulk_error.rb +4 -4
  258. data/lib/openapi_client/models/bulk_error_properties.rb +4 -4
  259. data/lib/openapi_client/models/campaign.rb +4 -4
  260. data/lib/openapi_client/models/campaign_creative.rb +4 -4
  261. data/lib/openapi_client/models/campaign_deletion.rb +4 -4
  262. data/lib/openapi_client/models/campaign_updatable.rb +4 -4
  263. data/lib/openapi_client/models/campaign_writable.rb +4 -4
  264. data/lib/openapi_client/models/campaigns_list.rb +4 -4
  265. data/lib/openapi_client/models/card.rb +4 -4
  266. data/lib/openapi_client/models/card_deletion.rb +4 -4
  267. data/lib/openapi_client/models/card_editable.rb +4 -4
  268. data/lib/openapi_client/models/card_list.rb +4 -4
  269. data/lib/openapi_client/models/card_order.rb +4 -4
  270. data/lib/openapi_client/models/card_order_editable.rb +4 -4
  271. data/lib/openapi_client/models/card_order_list.rb +4 -4
  272. data/lib/openapi_client/models/card_updatable.rb +4 -4
  273. data/lib/openapi_client/models/check.rb +18 -8
  274. data/lib/openapi_client/models/check_deletion.rb +4 -4
  275. data/lib/openapi_client/models/check_editable.rb +18 -8
  276. data/lib/openapi_client/models/check_list.rb +4 -4
  277. data/lib/openapi_client/models/chk_use_type.rb +38 -0
  278. data/lib/openapi_client/models/cmp_schedule_type.rb +1 -1
  279. data/lib/openapi_client/models/cmp_use_type.rb +1 -1
  280. data/lib/openapi_client/models/country_extended.rb +1 -1
  281. data/lib/openapi_client/models/country_extended_expanded.rb +1 -1
  282. data/lib/openapi_client/models/creative_patch.rb +4 -4
  283. data/lib/openapi_client/models/creative_response.rb +4 -4
  284. data/lib/openapi_client/models/creative_writable.rb +5 -5
  285. data/lib/openapi_client/models/custom_envelope_returned.rb +4 -4
  286. data/lib/openapi_client/models/deliverability_analysis.rb +4 -4
  287. data/lib/openapi_client/models/dpv_footnote.rb +1 -1
  288. data/lib/openapi_client/models/engine_html.rb +1 -1
  289. data/lib/openapi_client/models/event_type.rb +4 -4
  290. data/lib/openapi_client/models/events.rb +4 -4
  291. data/lib/openapi_client/models/export.rb +4 -4
  292. data/lib/openapi_client/models/export_model.rb +4 -4
  293. data/lib/openapi_client/models/geocode_addresses.rb +4 -4
  294. data/lib/openapi_client/models/geocode_components.rb +4 -4
  295. data/lib/openapi_client/models/http_validation_error.rb +4 -4
  296. data/lib/openapi_client/models/identity_validation.rb +4 -4
  297. data/lib/openapi_client/models/inline_object.rb +4 -4
  298. data/lib/openapi_client/models/intl_autocompletions.rb +4 -4
  299. data/lib/openapi_client/models/intl_autocompletions_writable.rb +4 -4
  300. data/lib/openapi_client/models/intl_components.rb +4 -4
  301. data/lib/openapi_client/models/intl_suggestions.rb +4 -4
  302. data/lib/openapi_client/models/intl_verification.rb +4 -4
  303. data/lib/openapi_client/models/intl_verification_or_error.rb +4 -4
  304. data/lib/openapi_client/models/intl_verification_writable.rb +4 -4
  305. data/lib/openapi_client/models/intl_verifications.rb +4 -4
  306. data/lib/openapi_client/models/intl_verifications_payload.rb +4 -4
  307. data/lib/openapi_client/models/letter.rb +30 -9
  308. data/lib/openapi_client/models/letter_custom_envelope.rb +4 -4
  309. data/lib/openapi_client/models/letter_deletion.rb +4 -4
  310. data/lib/openapi_client/models/letter_details_returned.rb +5 -5
  311. data/lib/openapi_client/models/letter_details_writable.rb +4 -4
  312. data/lib/openapi_client/models/letter_editable.rb +18 -8
  313. data/lib/openapi_client/models/letter_list.rb +4 -4
  314. data/lib/openapi_client/models/lob_confidence_score.rb +4 -4
  315. data/lib/openapi_client/models/lob_error.rb +4 -4
  316. data/lib/openapi_client/models/location.rb +4 -4
  317. data/lib/openapi_client/models/location_analysis.rb +4 -4
  318. data/lib/openapi_client/models/ltr_use_type.rb +38 -0
  319. data/lib/openapi_client/models/mail_type.rb +1 -1
  320. data/lib/openapi_client/models/multi_line_address.rb +4 -4
  321. data/lib/openapi_client/models/multiple_components.rb +4 -4
  322. data/lib/openapi_client/models/multiple_components_intl.rb +4 -4
  323. data/lib/openapi_client/models/multiple_components_list.rb +4 -4
  324. data/lib/openapi_client/models/optional_address_column_mapping.rb +259 -0
  325. data/lib/openapi_client/models/placeholder_model.rb +4 -4
  326. data/lib/openapi_client/models/postcard.rb +18 -8
  327. data/lib/openapi_client/models/postcard_deletion.rb +4 -4
  328. data/lib/openapi_client/models/postcard_details_returned.rb +4 -4
  329. data/lib/openapi_client/models/postcard_details_writable.rb +4 -4
  330. data/lib/openapi_client/models/postcard_editable.rb +18 -8
  331. data/lib/openapi_client/models/postcard_list.rb +4 -4
  332. data/lib/openapi_client/models/postcard_size.rb +1 -1
  333. data/lib/openapi_client/models/psc_use_type.rb +38 -0
  334. data/lib/openapi_client/models/qr_code.rb +4 -4
  335. data/lib/openapi_client/models/required_address_column_mapping.rb +285 -0
  336. data/lib/openapi_client/models/return_envelope.rb +4 -4
  337. data/lib/openapi_client/models/reverse_geocode.rb +4 -4
  338. data/lib/openapi_client/models/self_mailer.rb +18 -8
  339. data/lib/openapi_client/models/self_mailer_deletion.rb +4 -4
  340. data/lib/openapi_client/models/self_mailer_editable.rb +18 -8
  341. data/lib/openapi_client/models/self_mailer_list.rb +4 -4
  342. data/lib/openapi_client/models/self_mailer_size.rb +1 -1
  343. data/lib/openapi_client/models/sfm_use_type.rb +38 -0
  344. data/lib/openapi_client/models/sort_by.rb +4 -4
  345. data/lib/openapi_client/models/sort_by1.rb +4 -4
  346. data/lib/openapi_client/models/sort_by2.rb +4 -4
  347. data/lib/openapi_client/models/sort_by3.rb +4 -4
  348. data/lib/openapi_client/models/sort_by_date_modified.rb +4 -4
  349. data/lib/openapi_client/models/suggestions.rb +4 -4
  350. data/lib/openapi_client/models/template.rb +4 -4
  351. data/lib/openapi_client/models/template_deletion.rb +4 -4
  352. data/lib/openapi_client/models/template_list.rb +4 -4
  353. data/lib/openapi_client/models/template_update.rb +4 -4
  354. data/lib/openapi_client/models/template_version.rb +4 -4
  355. data/lib/openapi_client/models/template_version_deletion.rb +4 -4
  356. data/lib/openapi_client/models/template_version_list.rb +4 -4
  357. data/lib/openapi_client/models/template_version_updatable.rb +4 -4
  358. data/lib/openapi_client/models/template_version_writable.rb +4 -4
  359. data/lib/openapi_client/models/template_writable.rb +4 -4
  360. data/lib/openapi_client/models/thumbnail.rb +4 -4
  361. data/lib/openapi_client/models/tracking_event_certified.rb +4 -4
  362. data/lib/openapi_client/models/tracking_event_details.rb +4 -4
  363. data/lib/openapi_client/models/tracking_event_normal.rb +4 -4
  364. data/lib/openapi_client/models/upload.rb +55 -48
  365. data/lib/openapi_client/models/upload_create_export.rb +4 -4
  366. data/lib/openapi_client/models/upload_file.rb +4 -4
  367. data/lib/openapi_client/models/upload_state.rb +1 -1
  368. data/lib/openapi_client/models/upload_updatable.rb +46 -19
  369. data/lib/openapi_client/models/upload_writable.rb +46 -30
  370. data/lib/openapi_client/models/uploads_metadata.rb +237 -0
  371. data/lib/openapi_client/models/us_autocompletions.rb +4 -4
  372. data/lib/openapi_client/models/us_autocompletions_writable.rb +4 -4
  373. data/lib/openapi_client/models/us_components.rb +7 -7
  374. data/lib/openapi_client/models/us_verification.rb +15 -5
  375. data/lib/openapi_client/models/us_verification_or_error.rb +4 -4
  376. data/lib/openapi_client/models/us_verifications.rb +4 -4
  377. data/lib/openapi_client/models/us_verifications_writable.rb +4 -4
  378. data/lib/openapi_client/models/validation_error.rb +4 -4
  379. data/lib/openapi_client/models/zip.rb +4 -4
  380. data/lib/openapi_client/models/zip_code_type.rb +1 -1
  381. data/lib/openapi_client/models/zip_editable.rb +4 -4
  382. data/lib/openapi_client/models/zip_lookup_city.rb +4 -4
  383. data/lib/openapi_client/version.rb +2 -2
  384. data/lib/openapi_client.rb +7 -0
  385. data/openapi_client.gemspec +1 -1
  386. data/spec/api/addresses_api_spec.rb +3 -3
  387. data/spec/api/bank_accounts_api_spec.rb +3 -3
  388. data/spec/api/billing_groups_api_spec.rb +3 -3
  389. data/spec/api/campaigns_api_spec.rb +3 -3
  390. data/spec/api/card_orders_api_spec.rb +3 -3
  391. data/spec/api/cards_api_spec.rb +3 -3
  392. data/spec/api/checks_api_spec.rb +3 -3
  393. data/spec/api/creatives_api_spec.rb +3 -3
  394. data/spec/api/default_api_spec.rb +3 -3
  395. data/spec/api/identity_validation_api_spec.rb +3 -3
  396. data/spec/api/intl_autocompletions_api_spec.rb +3 -3
  397. data/spec/api/intl_verifications_api_spec.rb +3 -3
  398. data/spec/api/letters_api_spec.rb +3 -3
  399. data/spec/api/postcards_api_spec.rb +3 -3
  400. data/spec/api/reverse_geocode_lookups_api_spec.rb +3 -3
  401. data/spec/api/self_mailers_api_spec.rb +3 -3
  402. data/spec/api/template_versions_api_spec.rb +3 -3
  403. data/spec/api/templates_api_spec.rb +3 -3
  404. data/spec/api/uploads_api_spec.rb +3 -3
  405. data/spec/api/us_autocompletions_api_spec.rb +3 -3
  406. data/spec/api/us_verifications_api_spec.rb +3 -3
  407. data/spec/api/zip_lookups_api_spec.rb +3 -3
  408. data/spec/api_client_spec.rb +29 -29
  409. data/spec/configuration_spec.rb +3 -3
  410. metadata +29 -20
@@ -13,7 +13,7 @@ OpenAPI Generator version: 5.2.1
13
13
  require 'date'
14
14
  require 'time'
15
15
 
16
- module OpenapiClient
16
+ module Lob
17
17
  class Check
18
18
  # Unique identifier prefixed with `chk_`.
19
19
  attr_accessor :id
@@ -87,6 +87,8 @@ module OpenapiClient
87
87
  # Only returned if the resource has been successfully deleted.
88
88
  attr_accessor :deleted
89
89
 
90
+ attr_accessor :use_type
91
+
90
92
  class EnumAttributeValidator
91
93
  attr_reader :datatype
92
94
  attr_reader :allowable_values
@@ -137,7 +139,8 @@ module OpenapiClient
137
139
  :'object' => :'object',
138
140
  :'date_created' => :'date_created',
139
141
  :'date_modified' => :'date_modified',
140
- :'deleted' => :'deleted'
142
+ :'deleted' => :'deleted',
143
+ :'use_type' => :'use_type'
141
144
  }
142
145
  end
143
146
 
@@ -174,7 +177,8 @@ module OpenapiClient
174
177
  :'object' => :'String',
175
178
  :'date_created' => :'Time',
176
179
  :'date_modified' => :'Time',
177
- :'deleted' => :'Boolean'
180
+ :'deleted' => :'Boolean',
181
+ :'use_type' => :'ChkUseType'
178
182
  }
179
183
  end
180
184
 
@@ -185,6 +189,7 @@ module OpenapiClient
185
189
  :'merge_variables',
186
190
  :'memo',
187
191
  :'tracking_events',
192
+ :'use_type'
188
193
  ])
189
194
  end
190
195
 
@@ -192,13 +197,13 @@ module OpenapiClient
192
197
  # @param [Hash] attributes Model attributes in the form of hash
193
198
  def initialize(attributes = {})
194
199
  if (!attributes.is_a?(Hash))
195
- fail ArgumentError, "The input argument (attributes) must be a hash in `OpenapiClient::Check` initialize method"
200
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Lob::Check` initialize method"
196
201
  end
197
202
 
198
203
  # check to see if the attribute exists and convert string to symbol for hash key
199
204
  attributes = attributes.each_with_object({}) { |(k, v), h|
200
205
  if (!self.class.attribute_map.key?(k.to_sym))
201
- fail ArgumentError, "`#{k}` is not a valid attribute in `OpenapiClient::Check`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
206
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Lob::Check`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
202
207
  end
203
208
  h[k.to_sym] = v
204
209
  }
@@ -318,6 +323,10 @@ module OpenapiClient
318
323
  if attributes.key?(:'deleted')
319
324
  self.deleted = attributes[:'deleted']
320
325
  end
326
+
327
+ if attributes.key?(:'use_type')
328
+ self.use_type = attributes[:'use_type']
329
+ end
321
330
  end
322
331
 
323
332
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -654,7 +663,8 @@ module OpenapiClient
654
663
  object == o.object &&
655
664
  date_created == o.date_created &&
656
665
  date_modified == o.date_modified &&
657
- deleted == o.deleted
666
+ deleted == o.deleted &&
667
+ use_type == o.use_type
658
668
  end
659
669
 
660
670
  # @see the `==` method
@@ -666,7 +676,7 @@ module OpenapiClient
666
676
  # Calculates hash code according to all attributes.
667
677
  # @return [Integer] Hash code
668
678
  def hash
669
- [id, to, from, description, metadata, merge_variables, send_date, mail_type, memo, check_number, message, amount, bank_account, check_bottom_template_id, attachment_template_id, check_bottom_template_version_id, attachment_template_version_id, url, carrier, thumbnails, expected_delivery_date, tracking_events, object, date_created, date_modified, deleted].hash
679
+ [id, to, from, description, metadata, merge_variables, send_date, mail_type, memo, check_number, message, amount, bank_account, check_bottom_template_id, attachment_template_id, check_bottom_template_version_id, attachment_template_version_id, url, carrier, thumbnails, expected_delivery_date, tracking_events, object, date_created, date_modified, deleted, use_type].hash
670
680
  end
671
681
 
672
682
 
@@ -746,7 +756,7 @@ module OpenapiClient
746
756
  end
747
757
  else # model
748
758
  # models (e.g. Pet) or oneOf
749
- klass = OpenapiClient.const_get(type)
759
+ klass = Lob.const_get(type)
750
760
  klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
751
761
  end
752
762
  end
@@ -13,7 +13,7 @@ OpenAPI Generator version: 5.2.1
13
13
  require 'date'
14
14
  require 'time'
15
15
 
16
- module OpenapiClient
16
+ module Lob
17
17
  # Lob uses RESTful HTTP response codes to indicate success or failure of an API request. In general, 2xx indicates success, 4xx indicate an input error, and 5xx indicates an error on Lob's end.
18
18
  class CheckDeletion
19
19
  # Unique identifier prefixed with `chk_`.
@@ -80,13 +80,13 @@ module OpenapiClient
80
80
  # @param [Hash] attributes Model attributes in the form of hash
81
81
  def initialize(attributes = {})
82
82
  if (!attributes.is_a?(Hash))
83
- fail ArgumentError, "The input argument (attributes) must be a hash in `OpenapiClient::CheckDeletion` initialize method"
83
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Lob::CheckDeletion` initialize method"
84
84
  end
85
85
 
86
86
  # check to see if the attribute exists and convert string to symbol for hash key
87
87
  attributes = attributes.each_with_object({}) { |(k, v), h|
88
88
  if (!self.class.attribute_map.key?(k.to_sym))
89
- fail ArgumentError, "`#{k}` is not a valid attribute in `OpenapiClient::CheckDeletion`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
89
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Lob::CheckDeletion`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
90
90
  end
91
91
  h[k.to_sym] = v
92
92
  }
@@ -247,7 +247,7 @@ module OpenapiClient
247
247
  end
248
248
  else # model
249
249
  # models (e.g. Pet) or oneOf
250
- klass = OpenapiClient.const_get(type)
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 OpenapiClient
16
+ module Lob
17
17
  class CheckEditable
18
18
  # Must either be an address ID or an inline object with correct address parameters.
19
19
  attr_accessor :from
@@ -62,6 +62,8 @@ module OpenapiClient
62
62
  # An optional string with the billing group ID to tag your usage with. Is used for billing purposes. Requires special activation to use. See [Billing Group API](https://lob.github.io/lob-openapi/#tag/Billing-Groups) for more information.
63
63
  attr_accessor :billing_group_id
64
64
 
65
+ attr_accessor :use_type
66
+
65
67
  class EnumAttributeValidator
66
68
  attr_reader :datatype
67
69
  attr_reader :allowable_values
@@ -102,7 +104,8 @@ module OpenapiClient
102
104
  :'memo' => :'memo',
103
105
  :'check_number' => :'check_number',
104
106
  :'message' => :'message',
105
- :'billing_group_id' => :'billing_group_id'
107
+ :'billing_group_id' => :'billing_group_id',
108
+ :'use_type' => :'use_type'
106
109
  }
107
110
  end
108
111
 
@@ -129,7 +132,8 @@ module OpenapiClient
129
132
  :'memo' => :'String',
130
133
  :'check_number' => :'Integer',
131
134
  :'message' => :'String',
132
- :'billing_group_id' => :'String'
135
+ :'billing_group_id' => :'String',
136
+ :'use_type' => :'ChkUseType'
133
137
  }
134
138
  end
135
139
 
@@ -142,6 +146,7 @@ module OpenapiClient
142
146
  :'description',
143
147
  :'merge_variables',
144
148
  :'memo',
149
+ :'use_type'
145
150
  ])
146
151
  end
147
152
 
@@ -149,13 +154,13 @@ module OpenapiClient
149
154
  # @param [Hash] attributes Model attributes in the form of hash
150
155
  def initialize(attributes = {})
151
156
  if (!attributes.is_a?(Hash))
152
- fail ArgumentError, "The input argument (attributes) must be a hash in `OpenapiClient::CheckEditable` initialize method"
157
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Lob::CheckEditable` initialize method"
153
158
  end
154
159
 
155
160
  # check to see if the attribute exists and convert string to symbol for hash key
156
161
  attributes = attributes.each_with_object({}) { |(k, v), h|
157
162
  if (!self.class.attribute_map.key?(k.to_sym))
158
- fail ArgumentError, "`#{k}` is not a valid attribute in `OpenapiClient::CheckEditable`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
163
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Lob::CheckEditable`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
159
164
  end
160
165
  h[k.to_sym] = v
161
166
  }
@@ -227,6 +232,10 @@ module OpenapiClient
227
232
  if attributes.key?(:'billing_group_id')
228
233
  self.billing_group_id = attributes[:'billing_group_id']
229
234
  end
235
+
236
+ if attributes.key?(:'use_type')
237
+ self.use_type = attributes[:'use_type']
238
+ end
230
239
  end
231
240
 
232
241
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -379,7 +388,8 @@ module OpenapiClient
379
388
  memo == o.memo &&
380
389
  check_number == o.check_number &&
381
390
  message == o.message &&
382
- billing_group_id == o.billing_group_id
391
+ billing_group_id == o.billing_group_id &&
392
+ use_type == o.use_type
383
393
  end
384
394
 
385
395
  # @see the `==` method
@@ -391,7 +401,7 @@ module OpenapiClient
391
401
  # Calculates hash code according to all attributes.
392
402
  # @return [Integer] Hash code
393
403
  def hash
394
- [from, to, bank_account, amount, logo, check_bottom, attachment, description, metadata, merge_variables, send_date, mail_type, memo, check_number, message, billing_group_id].hash
404
+ [from, to, bank_account, amount, logo, check_bottom, attachment, description, metadata, merge_variables, send_date, mail_type, memo, check_number, message, billing_group_id, use_type].hash
395
405
  end
396
406
 
397
407
 
@@ -471,7 +481,7 @@ module OpenapiClient
471
481
  end
472
482
  else # model
473
483
  # models (e.g. Pet) or oneOf
474
- klass = OpenapiClient.const_get(type)
484
+ klass = Lob.const_get(type)
475
485
  klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
476
486
  end
477
487
  end
@@ -13,7 +13,7 @@ OpenAPI Generator version: 5.2.1
13
13
  require 'date'
14
14
  require 'time'
15
15
 
16
- module OpenapiClient
16
+ module Lob
17
17
  class CheckList
18
18
  # list of checks
19
19
  attr_accessor :data
@@ -74,13 +74,13 @@ module OpenapiClient
74
74
  # @param [Hash] attributes Model attributes in the form of hash
75
75
  def initialize(attributes = {})
76
76
  if (!attributes.is_a?(Hash))
77
- fail ArgumentError, "The input argument (attributes) must be a hash in `OpenapiClient::CheckList` initialize method"
77
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Lob::CheckList` initialize method"
78
78
  end
79
79
 
80
80
  # check to see if the attribute exists and convert string to symbol for hash key
81
81
  attributes = attributes.each_with_object({}) { |(k, v), h|
82
82
  if (!self.class.attribute_map.key?(k.to_sym))
83
- fail ArgumentError, "`#{k}` is not a valid attribute in `OpenapiClient::CheckList`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
83
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Lob::CheckList`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
84
84
  end
85
85
  h[k.to_sym] = v
86
86
  }
@@ -268,7 +268,7 @@ module OpenapiClient
268
268
  end
269
269
  else # model
270
270
  # models (e.g. Pet) or oneOf
271
- klass = OpenapiClient.const_get(type)
271
+ klass = Lob.const_get(type)
272
272
  klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
273
273
  end
274
274
  end
@@ -0,0 +1,38 @@
1
+ =begin
2
+ #Lob
3
+
4
+ #The Lob API is organized around REST. Our API is designed to have predictable, resource-oriented URLs and uses HTTP response codes to indicate any API errors. <p> Looking for our [previous documentation](https://lob.github.io/legacy-docs/)?
5
+
6
+ The version of the OpenAPI document: 1.3.0
7
+ Contact: lob-openapi@lob.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 5.2.1
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module Lob
17
+ class ChkUseType
18
+ MARKETING = "marketing".freeze
19
+ OPERATIONAL = "operational".freeze
20
+ NULL = "null".freeze
21
+
22
+ # Builds the enum from string
23
+ # @param [String] The enum value in the form of the string
24
+ # @return [String] The enum value
25
+ def self.build_from_hash(value)
26
+ new.build_from_hash(value)
27
+ end
28
+
29
+ # Builds the enum from string
30
+ # @param [String] The enum value in the form of the string
31
+ # @return [String] The enum value
32
+ def build_from_hash(value)
33
+ constantValues = ChkUseType.constants.select { |c| ChkUseType::const_get(c) == value }
34
+ raise "Invalid ENUM value #{value} for class #ChkUseType" if constantValues.empty?
35
+ value
36
+ end
37
+ end
38
+ end
@@ -13,7 +13,7 @@ OpenAPI Generator version: 5.2.1
13
13
  require 'date'
14
14
  require 'time'
15
15
 
16
- module OpenapiClient
16
+ module Lob
17
17
  class CmpScheduleType
18
18
  IMMEDIATE = "immediate".freeze
19
19
 
@@ -13,7 +13,7 @@ OpenAPI Generator version: 5.2.1
13
13
  require 'date'
14
14
  require 'time'
15
15
 
16
- module OpenapiClient
16
+ module Lob
17
17
  class CmpUseType
18
18
  MARKETING = "marketing".freeze
19
19
  OPERATIONAL = "operational".freeze
@@ -13,7 +13,7 @@ OpenAPI Generator version: 5.2.1
13
13
  require 'date'
14
14
  require 'time'
15
15
 
16
- module OpenapiClient
16
+ module Lob
17
17
  class CountryExtended
18
18
  EMPTY = "".freeze
19
19
  AD = "AD".freeze
@@ -13,7 +13,7 @@ OpenAPI Generator version: 5.2.1
13
13
  require 'date'
14
14
  require 'time'
15
15
 
16
- module OpenapiClient
16
+ module Lob
17
17
  class CountryExtendedExpanded
18
18
  EMPTY = "".freeze
19
19
  AFGHANISTAN = "AFGHANISTAN".freeze
@@ -13,7 +13,7 @@ OpenAPI Generator version: 5.2.1
13
13
  require 'date'
14
14
  require 'time'
15
15
 
16
- module OpenapiClient
16
+ module Lob
17
17
  class CreativePatch
18
18
  # Must either be an address ID or an inline object with correct address parameters.
19
19
  attr_accessor :from
@@ -59,13 +59,13 @@ module OpenapiClient
59
59
  # @param [Hash] attributes Model attributes in the form of hash
60
60
  def initialize(attributes = {})
61
61
  if (!attributes.is_a?(Hash))
62
- fail ArgumentError, "The input argument (attributes) must be a hash in `OpenapiClient::CreativePatch` initialize method"
62
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Lob::CreativePatch` initialize method"
63
63
  end
64
64
 
65
65
  # check to see if the attribute exists and convert string to symbol for hash key
66
66
  attributes = attributes.each_with_object({}) { |(k, v), h|
67
67
  if (!self.class.attribute_map.key?(k.to_sym))
68
- fail ArgumentError, "`#{k}` is not a valid attribute in `OpenapiClient::CreativePatch`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
68
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Lob::CreativePatch`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
69
69
  end
70
70
  h[k.to_sym] = v
71
71
  }
@@ -218,7 +218,7 @@ module OpenapiClient
218
218
  end
219
219
  else # model
220
220
  # models (e.g. Pet) or oneOf
221
- klass = OpenapiClient.const_get(type)
221
+ klass = Lob.const_get(type)
222
222
  klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
223
223
  end
224
224
  end
@@ -13,7 +13,7 @@ OpenAPI Generator version: 5.2.1
13
13
  require 'date'
14
14
  require 'time'
15
15
 
16
- module OpenapiClient
16
+ module Lob
17
17
  class CreativeResponse
18
18
  # Unique identifier prefixed with `crv_`.
19
19
  attr_accessor :id
@@ -132,13 +132,13 @@ module OpenapiClient
132
132
  # @param [Hash] attributes Model attributes in the form of hash
133
133
  def initialize(attributes = {})
134
134
  if (!attributes.is_a?(Hash))
135
- fail ArgumentError, "The input argument (attributes) must be a hash in `OpenapiClient::CreativeResponse` initialize method"
135
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Lob::CreativeResponse` initialize method"
136
136
  end
137
137
 
138
138
  # check to see if the attribute exists and convert string to symbol for hash key
139
139
  attributes = attributes.each_with_object({}) { |(k, v), h|
140
140
  if (!self.class.attribute_map.key?(k.to_sym))
141
- fail ArgumentError, "`#{k}` is not a valid attribute in `OpenapiClient::CreativeResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
141
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Lob::CreativeResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
142
142
  end
143
143
  h[k.to_sym] = v
144
144
  }
@@ -388,7 +388,7 @@ module OpenapiClient
388
388
  end
389
389
  else # model
390
390
  # models (e.g. Pet) or oneOf
391
- klass = OpenapiClient.const_get(type)
391
+ klass = Lob.const_get(type)
392
392
  klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
393
393
  end
394
394
  end
@@ -13,7 +13,7 @@ OpenAPI Generator version: 5.2.1
13
13
  require 'date'
14
14
  require 'time'
15
15
 
16
- module OpenapiClient
16
+ module Lob
17
17
  class CreativeWritable
18
18
  # Must either be an address ID or an inline object with correct address parameters.
19
19
  attr_accessor :from
@@ -92,7 +92,7 @@ module OpenapiClient
92
92
  :'metadata' => :'Hash<String, String>',
93
93
  :'resource_type' => :'String',
94
94
  :'campaign_id' => :'String',
95
- :'details' => Array[:'LetterDetailsWritable', :'PostcardDetailsWritable'],
95
+ :'details' => Array[:'PostcardDetailsWritable', :'String'],
96
96
  :'file' => :'String',
97
97
  :'front' => :'String',
98
98
  :'back' => :'String'
@@ -112,13 +112,13 @@ module OpenapiClient
112
112
  # @param [Hash] attributes Model attributes in the form of hash
113
113
  def initialize(attributes = {})
114
114
  if (!attributes.is_a?(Hash))
115
- fail ArgumentError, "The input argument (attributes) must be a hash in `OpenapiClient::CreativeWritable` initialize method"
115
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Lob::CreativeWritable` initialize method"
116
116
  end
117
117
 
118
118
  # check to see if the attribute exists and convert string to symbol for hash key
119
119
  attributes = attributes.each_with_object({}) { |(k, v), h|
120
120
  if (!self.class.attribute_map.key?(k.to_sym))
121
- fail ArgumentError, "`#{k}` is not a valid attribute in `OpenapiClient::CreativeWritable`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
121
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Lob::CreativeWritable`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
122
122
  end
123
123
  h[k.to_sym] = v
124
124
  }
@@ -344,7 +344,7 @@ module OpenapiClient
344
344
  end
345
345
  else # model
346
346
  # models (e.g. Pet) or oneOf
347
- klass = OpenapiClient.const_get(type)
347
+ klass = Lob.const_get(type)
348
348
  klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
349
349
  end
350
350
  end
@@ -13,7 +13,7 @@ OpenAPI Generator version: 5.2.1
13
13
  require 'date'
14
14
  require 'time'
15
15
 
16
- module OpenapiClient
16
+ module Lob
17
17
  # A nested custom envelope object containing more information about the custom envelope used or `null` if a custom envelope was not used.
18
18
  class CustomEnvelopeReturned
19
19
  # The unique identifier of the custom envelope used.
@@ -79,13 +79,13 @@ module OpenapiClient
79
79
  # @param [Hash] attributes Model attributes in the form of hash
80
80
  def initialize(attributes = {})
81
81
  if (!attributes.is_a?(Hash))
82
- fail ArgumentError, "The input argument (attributes) must be a hash in `OpenapiClient::CustomEnvelopeReturned` initialize method"
82
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Lob::CustomEnvelopeReturned` initialize method"
83
83
  end
84
84
 
85
85
  # check to see if the attribute exists and convert string to symbol for hash key
86
86
  attributes = attributes.each_with_object({}) { |(k, v), h|
87
87
  if (!self.class.attribute_map.key?(k.to_sym))
88
- fail ArgumentError, "`#{k}` is not a valid attribute in `OpenapiClient::CustomEnvelopeReturned`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
88
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Lob::CustomEnvelopeReturned`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
89
89
  end
90
90
  h[k.to_sym] = v
91
91
  }
@@ -263,7 +263,7 @@ module OpenapiClient
263
263
  end
264
264
  else # model
265
265
  # models (e.g. Pet) or oneOf
266
- klass = OpenapiClient.const_get(type)
266
+ klass = Lob.const_get(type)
267
267
  klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
268
268
  end
269
269
  end
@@ -13,7 +13,7 @@ OpenAPI Generator version: 5.2.1
13
13
  require 'date'
14
14
  require 'time'
15
15
 
16
- module OpenapiClient
16
+ module Lob
17
17
  # A nested object containing a breakdown of the deliverability of an address.
18
18
  class DeliverabilityAnalysis
19
19
  # Result of Delivery Point Validation (DPV), which determines whether or not the address is deliverable by the USPS. Possible values are: * `Y` –– The address is deliverable by the USPS. * `S` –– The address is deliverable by removing the provided secondary unit designator. This information may be incorrect or unnecessary. * `D` –– The address is deliverable to the building's default address but is missing a secondary unit designator and/or number. There is a chance the mail will not reach the intended recipient. * `N` –– The address is not deliverable according to the USPS, but parts of the address are valid (such as the street and ZIP code). * `''` –– This address is not deliverable. No matching street could be found within the city or ZIP code.
@@ -110,13 +110,13 @@ module OpenapiClient
110
110
  # @param [Hash] attributes Model attributes in the form of hash
111
111
  def initialize(attributes = {})
112
112
  if (!attributes.is_a?(Hash))
113
- fail ArgumentError, "The input argument (attributes) must be a hash in `OpenapiClient::DeliverabilityAnalysis` initialize method"
113
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Lob::DeliverabilityAnalysis` initialize method"
114
114
  end
115
115
 
116
116
  # check to see if the attribute exists and convert string to symbol for hash key
117
117
  attributes = attributes.each_with_object({}) { |(k, v), h|
118
118
  if (!self.class.attribute_map.key?(k.to_sym))
119
- fail ArgumentError, "`#{k}` is not a valid attribute in `OpenapiClient::DeliverabilityAnalysis`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
119
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Lob::DeliverabilityAnalysis`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
120
120
  end
121
121
  h[k.to_sym] = v
122
122
  }
@@ -395,7 +395,7 @@ module OpenapiClient
395
395
  end
396
396
  else # model
397
397
  # models (e.g. Pet) or oneOf
398
- klass = OpenapiClient.const_get(type)
398
+ klass = Lob.const_get(type)
399
399
  klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
400
400
  end
401
401
  end
@@ -13,7 +13,7 @@ OpenAPI Generator version: 5.2.1
13
13
  require 'date'
14
14
  require 'time'
15
15
 
16
- module OpenapiClient
16
+ module Lob
17
17
  class DpvFootnote
18
18
  AA = "AA".freeze
19
19
  A1 = "A1".freeze
@@ -13,7 +13,7 @@ OpenAPI Generator version: 5.2.1
13
13
  require 'date'
14
14
  require 'time'
15
15
 
16
- module OpenapiClient
16
+ module Lob
17
17
  class EngineHtml
18
18
  LEGACY = "legacy".freeze
19
19
  HANDLEBARS = "handlebars".freeze
@@ -13,7 +13,7 @@ OpenAPI Generator version: 5.2.1
13
13
  require 'date'
14
14
  require 'time'
15
15
 
16
- module OpenapiClient
16
+ module Lob
17
17
  class EventType
18
18
  attr_accessor :id
19
19
 
@@ -82,13 +82,13 @@ module OpenapiClient
82
82
  # @param [Hash] attributes Model attributes in the form of hash
83
83
  def initialize(attributes = {})
84
84
  if (!attributes.is_a?(Hash))
85
- fail ArgumentError, "The input argument (attributes) must be a hash in `OpenapiClient::EventType` initialize method"
85
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Lob::EventType` initialize method"
86
86
  end
87
87
 
88
88
  # check to see if the attribute exists and convert string to symbol for hash key
89
89
  attributes = attributes.each_with_object({}) { |(k, v), h|
90
90
  if (!self.class.attribute_map.key?(k.to_sym))
91
- fail ArgumentError, "`#{k}` is not a valid attribute in `OpenapiClient::EventType`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
91
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Lob::EventType`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
92
92
  end
93
93
  h[k.to_sym] = v
94
94
  }
@@ -269,7 +269,7 @@ module OpenapiClient
269
269
  end
270
270
  else # model
271
271
  # models (e.g. Pet) or oneOf
272
- klass = OpenapiClient.const_get(type)
272
+ klass = Lob.const_get(type)
273
273
  klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
274
274
  end
275
275
  end
@@ -13,7 +13,7 @@ OpenAPI Generator version: 5.2.1
13
13
  require 'date'
14
14
  require 'time'
15
15
 
16
- module OpenapiClient
16
+ module Lob
17
17
  class Events
18
18
  # Unique identifier prefixed with `evt_`.
19
19
  attr_accessor :id
@@ -93,13 +93,13 @@ module OpenapiClient
93
93
  # @param [Hash] attributes Model attributes in the form of hash
94
94
  def initialize(attributes = {})
95
95
  if (!attributes.is_a?(Hash))
96
- fail ArgumentError, "The input argument (attributes) must be a hash in `OpenapiClient::Events` initialize method"
96
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Lob::Events` initialize method"
97
97
  end
98
98
 
99
99
  # check to see if the attribute exists and convert string to symbol for hash key
100
100
  attributes = attributes.each_with_object({}) { |(k, v), h|
101
101
  if (!self.class.attribute_map.key?(k.to_sym))
102
- fail ArgumentError, "`#{k}` is not a valid attribute in `OpenapiClient::Events`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
102
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Lob::Events`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
103
103
  end
104
104
  h[k.to_sym] = v
105
105
  }
@@ -309,7 +309,7 @@ module OpenapiClient
309
309
  end
310
310
  else # model
311
311
  # models (e.g. Pet) or oneOf
312
- klass = OpenapiClient.const_get(type)
312
+ klass = Lob.const_get(type)
313
313
  klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
314
314
  end
315
315
  end
@@ -13,7 +13,7 @@ OpenAPI Generator version: 5.2.1
13
13
  require 'date'
14
14
  require 'time'
15
15
 
16
- module OpenapiClient
16
+ module Lob
17
17
  class Export
18
18
  # Unique identifier prefixed with `ex_`.
19
19
  attr_accessor :id
@@ -104,13 +104,13 @@ module OpenapiClient
104
104
  # @param [Hash] attributes Model attributes in the form of hash
105
105
  def initialize(attributes = {})
106
106
  if (!attributes.is_a?(Hash))
107
- fail ArgumentError, "The input argument (attributes) must be a hash in `OpenapiClient::Export` initialize method"
107
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Lob::Export` initialize method"
108
108
  end
109
109
 
110
110
  # check to see if the attribute exists and convert string to symbol for hash key
111
111
  attributes = attributes.each_with_object({}) { |(k, v), h|
112
112
  if (!self.class.attribute_map.key?(k.to_sym))
113
- fail ArgumentError, "`#{k}` is not a valid attribute in `OpenapiClient::Export`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
113
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Lob::Export`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
114
114
  end
115
115
  h[k.to_sym] = v
116
116
  }
@@ -366,7 +366,7 @@ module OpenapiClient
366
366
  end
367
367
  else # model
368
368
  # models (e.g. Pet) or oneOf
369
- klass = OpenapiClient.const_get(type)
369
+ klass = Lob.const_get(type)
370
370
  klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
371
371
  end
372
372
  end