lob 6.0.0.pre.rc → 6.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (412) 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/Require.unit.rb +21 -0
  17. data/__tests__/Api/ReverseGeocodeLookup.unit.rb +1 -1
  18. data/__tests__/Api/SelfMailer.unit.rb +1 -1
  19. data/__tests__/Api/Template.unit.rb +1 -1
  20. data/__tests__/Api/TemplateVersion.unit.rb +1 -1
  21. data/__tests__/Api/UsAutocompletion.unit.rb +8 -8
  22. data/__tests__/Api/UsVerification.unit.rb +1 -1
  23. data/__tests__/Api/ZipLookup.unit.rb +1 -1
  24. data/__tests__/Integration/Address.spec.rb +3 -3
  25. data/__tests__/Integration/BankAccount.spec.rb +3 -3
  26. data/__tests__/Integration/BillingGroup.spec.rb +3 -3
  27. data/__tests__/Integration/Card.spec.rb +3 -3
  28. data/__tests__/Integration/CardOrder.spec.rb +3 -3
  29. data/__tests__/Integration/Check.spec.rb +3 -3
  30. data/__tests__/Integration/IntlAutocompletion.spec.rb +3 -3
  31. data/__tests__/Integration/IntlVerification.spec.rb +3 -3
  32. data/__tests__/Integration/Letter.spec.rb +3 -3
  33. data/__tests__/Integration/Postcard.spec.rb +3 -3
  34. data/__tests__/Integration/ReverseGeocodeLookup.spec.rb +1 -1
  35. data/__tests__/Integration/SelfMailer.spec.rb +15 -9
  36. data/__tests__/Integration/Template.spec.rb +3 -3
  37. data/__tests__/Integration/TemplateVersion.spec.rb +3 -3
  38. data/__tests__/Integration/UsAutocompletion.spec.rb +3 -3
  39. data/__tests__/Integration/UsVerification.spec.rb +3 -3
  40. data/__tests__/Integration/ZipLookup.spec.rb +1 -1
  41. data/__tests__/TestFixtures.rb +5 -5
  42. data/docs/Address.md +2 -2
  43. data/docs/AddressDeletion.md +2 -2
  44. data/docs/AddressDomestic.md +2 -2
  45. data/docs/AddressDomesticExpanded.md +2 -2
  46. data/docs/AddressEditable.md +2 -2
  47. data/docs/AddressList.md +2 -2
  48. data/docs/AddressesApi.md +18 -18
  49. data/docs/BankAccount.md +2 -2
  50. data/docs/BankAccountDeletion.md +2 -2
  51. data/docs/BankAccountList.md +2 -2
  52. data/docs/BankAccountVerify.md +2 -2
  53. data/docs/BankAccountWritable.md +2 -2
  54. data/docs/BankAccountsApi.md +23 -23
  55. data/docs/BankTypeEnum.md +2 -2
  56. data/docs/BillingGroup.md +2 -2
  57. data/docs/BillingGroupEditable.md +2 -2
  58. data/docs/BillingGroupList.md +2 -2
  59. data/docs/BillingGroupsApi.md +20 -20
  60. data/docs/Buckslip.md +2 -2
  61. data/docs/BuckslipDeletion.md +2 -2
  62. data/docs/BuckslipEditable.md +2 -2
  63. data/docs/BuckslipOrder.md +2 -2
  64. data/docs/BuckslipOrderEditable.md +2 -2
  65. data/docs/BuckslipOrdersApi.md +10 -10
  66. data/docs/BuckslipOrdersList.md +2 -2
  67. data/docs/BuckslipUpdatable.md +2 -2
  68. data/docs/BuckslipsApi.md +23 -23
  69. data/docs/BuckslipsList.md +2 -2
  70. data/docs/BulkError.md +2 -2
  71. data/docs/BulkErrorProperties.md +2 -2
  72. data/docs/Campaign.md +2 -2
  73. data/docs/CampaignCreative.md +2 -2
  74. data/docs/CampaignDeletion.md +2 -2
  75. data/docs/CampaignUpdatable.md +2 -2
  76. data/docs/CampaignWritable.md +2 -2
  77. data/docs/CampaignsApi.md +23 -23
  78. data/docs/CampaignsList.md +2 -2
  79. data/docs/Card.md +2 -2
  80. data/docs/CardDeletion.md +2 -2
  81. data/docs/CardEditable.md +2 -2
  82. data/docs/CardList.md +2 -2
  83. data/docs/CardOrder.md +2 -2
  84. data/docs/CardOrderEditable.md +2 -2
  85. data/docs/CardOrderList.md +2 -2
  86. data/docs/CardOrdersApi.md +10 -10
  87. data/docs/CardUpdatable.md +2 -2
  88. data/docs/CardsApi.md +23 -23
  89. data/docs/Check.md +2 -2
  90. data/docs/CheckDeletion.md +2 -2
  91. data/docs/CheckEditable.md +2 -2
  92. data/docs/CheckList.md +2 -2
  93. data/docs/ChecksApi.md +20 -20
  94. data/docs/CmpScheduleType.md +2 -2
  95. data/docs/CmpUseType.md +2 -2
  96. data/docs/CountryExtended.md +2 -2
  97. data/docs/CountryExtendedExpanded.md +2 -2
  98. data/docs/CreativePatch.md +2 -2
  99. data/docs/CreativeResponse.md +2 -2
  100. data/docs/CreativeWritable.md +2 -2
  101. data/docs/CreativesApi.md +15 -15
  102. data/docs/CustomEnvelopeReturned.md +2 -2
  103. data/docs/DefaultApi.md +5 -5
  104. data/docs/DeliverabilityAnalysis.md +2 -2
  105. data/docs/DpvFootnote.md +2 -2
  106. data/docs/EngineHtml.md +2 -2
  107. data/docs/EventType.md +2 -2
  108. data/docs/Events.md +2 -2
  109. data/docs/Export.md +2 -2
  110. data/docs/ExportModel.md +2 -2
  111. data/docs/GeocodeAddresses.md +2 -2
  112. data/docs/GeocodeComponents.md +2 -2
  113. data/docs/HTTPValidationError.md +2 -2
  114. data/docs/IdentityValidation.md +2 -2
  115. data/docs/IdentityValidationApi.md +6 -6
  116. data/docs/InlineObject.md +2 -2
  117. data/docs/IntlAutocompletions.md +2 -2
  118. data/docs/IntlAutocompletionsApi.md +6 -6
  119. data/docs/IntlAutocompletionsWritable.md +2 -2
  120. data/docs/IntlComponents.md +2 -2
  121. data/docs/IntlSuggestions.md +2 -2
  122. data/docs/IntlVerification.md +2 -2
  123. data/docs/IntlVerificationOrError.md +2 -2
  124. data/docs/IntlVerificationWritable.md +2 -2
  125. data/docs/IntlVerifications.md +2 -2
  126. data/docs/IntlVerificationsApi.md +11 -11
  127. data/docs/IntlVerificationsPayload.md +2 -2
  128. data/docs/Letter.md +2 -2
  129. data/docs/LetterCustomEnvelope.md +2 -2
  130. data/docs/LetterDeletion.md +2 -2
  131. data/docs/LetterDetailsReturned.md +2 -2
  132. data/docs/LetterDetailsWritable.md +2 -2
  133. data/docs/LetterEditable.md +2 -2
  134. data/docs/LetterList.md +2 -2
  135. data/docs/LettersApi.md +20 -20
  136. data/docs/LobConfidenceScore.md +2 -2
  137. data/docs/LobError.md +2 -2
  138. data/docs/Location.md +2 -2
  139. data/docs/LocationAnalysis.md +2 -2
  140. data/docs/MailType.md +2 -2
  141. data/docs/MultiLineAddress.md +2 -2
  142. data/docs/MultipleComponents.md +2 -2
  143. data/docs/MultipleComponentsIntl.md +2 -2
  144. data/docs/MultipleComponentsList.md +2 -2
  145. data/docs/PlaceholderModel.md +2 -2
  146. data/docs/Postcard.md +2 -2
  147. data/docs/PostcardDeletion.md +2 -2
  148. data/docs/PostcardDetailsReturned.md +2 -2
  149. data/docs/PostcardDetailsWritable.md +2 -2
  150. data/docs/PostcardEditable.md +2 -2
  151. data/docs/PostcardList.md +2 -2
  152. data/docs/PostcardSize.md +2 -2
  153. data/docs/PostcardsApi.md +21 -21
  154. data/docs/QrCode.md +2 -2
  155. data/docs/ReturnEnvelope.md +2 -2
  156. data/docs/ReverseGeocode.md +2 -2
  157. data/docs/ReverseGeocodeLookupsApi.md +6 -6
  158. data/docs/SelfMailer.md +2 -2
  159. data/docs/SelfMailerDeletion.md +2 -2
  160. data/docs/SelfMailerEditable.md +2 -2
  161. data/docs/SelfMailerList.md +2 -2
  162. data/docs/SelfMailerSize.md +2 -2
  163. data/docs/SelfMailersApi.md +21 -21
  164. data/docs/SortBy.md +2 -2
  165. data/docs/SortBy1.md +2 -2
  166. data/docs/SortBy2.md +2 -2
  167. data/docs/SortBy3.md +2 -2
  168. data/docs/SortByDateModified.md +2 -2
  169. data/docs/Suggestions.md +2 -2
  170. data/docs/Template.md +2 -2
  171. data/docs/TemplateDeletion.md +2 -2
  172. data/docs/TemplateList.md +2 -2
  173. data/docs/TemplateUpdate.md +2 -2
  174. data/docs/TemplateVersion.md +2 -2
  175. data/docs/TemplateVersionDeletion.md +2 -2
  176. data/docs/TemplateVersionList.md +2 -2
  177. data/docs/TemplateVersionUpdatable.md +2 -2
  178. data/docs/TemplateVersionWritable.md +2 -2
  179. data/docs/TemplateVersionsApi.md +23 -23
  180. data/docs/TemplateWritable.md +2 -2
  181. data/docs/TemplatesApi.md +23 -23
  182. data/docs/Thumbnail.md +2 -2
  183. data/docs/TrackingEventCertified.md +2 -2
  184. data/docs/TrackingEventDetails.md +2 -2
  185. data/docs/TrackingEventNormal.md +2 -2
  186. data/docs/Upload.md +2 -2
  187. data/docs/UploadCreateExport.md +2 -2
  188. data/docs/UploadFile.md +2 -2
  189. data/docs/UploadState.md +2 -2
  190. data/docs/UploadUpdatable.md +2 -2
  191. data/docs/UploadWritable.md +2 -2
  192. data/docs/UploadsApi.md +36 -36
  193. data/docs/UsAutocompletions.md +2 -2
  194. data/docs/UsAutocompletionsApi.md +6 -6
  195. data/docs/UsAutocompletionsWritable.md +2 -2
  196. data/docs/UsComponents.md +2 -2
  197. data/docs/UsVerification.md +2 -2
  198. data/docs/UsVerificationOrError.md +2 -2
  199. data/docs/UsVerifications.md +2 -2
  200. data/docs/UsVerificationsApi.md +11 -11
  201. data/docs/UsVerificationsWritable.md +2 -2
  202. data/docs/ValidationError.md +2 -2
  203. data/docs/Zip.md +2 -2
  204. data/docs/ZipCodeType.md +2 -2
  205. data/docs/ZipEditable.md +2 -2
  206. data/docs/ZipLookupCity.md +2 -2
  207. data/docs/ZipLookupsApi.md +6 -6
  208. data/lib/lob.rb +1 -0
  209. data/lib/openapi_client/api/addresses_api.rb +1 -1
  210. data/lib/openapi_client/api/bank_accounts_api.rb +1 -1
  211. data/lib/openapi_client/api/billing_groups_api.rb +1 -1
  212. data/lib/openapi_client/api/buckslip_orders_api.rb +1 -1
  213. data/lib/openapi_client/api/buckslips_api.rb +1 -1
  214. data/lib/openapi_client/api/campaigns_api.rb +1 -1
  215. data/lib/openapi_client/api/card_orders_api.rb +1 -1
  216. data/lib/openapi_client/api/cards_api.rb +1 -1
  217. data/lib/openapi_client/api/checks_api.rb +1 -1
  218. data/lib/openapi_client/api/creatives_api.rb +1 -1
  219. data/lib/openapi_client/api/default_api.rb +1 -1
  220. data/lib/openapi_client/api/identity_validation_api.rb +1 -1
  221. data/lib/openapi_client/api/intl_autocompletions_api.rb +1 -1
  222. data/lib/openapi_client/api/intl_verifications_api.rb +1 -1
  223. data/lib/openapi_client/api/letters_api.rb +1 -1
  224. data/lib/openapi_client/api/postcards_api.rb +1 -1
  225. data/lib/openapi_client/api/reverse_geocode_lookups_api.rb +1 -1
  226. data/lib/openapi_client/api/self_mailers_api.rb +1 -1
  227. data/lib/openapi_client/api/template_versions_api.rb +1 -1
  228. data/lib/openapi_client/api/templates_api.rb +1 -1
  229. data/lib/openapi_client/api/uploads_api.rb +1 -1
  230. data/lib/openapi_client/api/us_autocompletions_api.rb +1 -1
  231. data/lib/openapi_client/api/us_verifications_api.rb +1 -1
  232. data/lib/openapi_client/api/zip_lookups_api.rb +1 -1
  233. data/lib/openapi_client/api_client.rb +2 -2
  234. data/lib/openapi_client/api_error.rb +1 -1
  235. data/lib/openapi_client/configuration.rb +1 -1
  236. data/lib/openapi_client/models/address.rb +4 -4
  237. data/lib/openapi_client/models/address_deletion.rb +4 -4
  238. data/lib/openapi_client/models/address_domestic.rb +4 -4
  239. data/lib/openapi_client/models/address_domestic_expanded.rb +4 -4
  240. data/lib/openapi_client/models/address_editable.rb +4 -4
  241. data/lib/openapi_client/models/address_list.rb +4 -4
  242. data/lib/openapi_client/models/bank_account.rb +4 -4
  243. data/lib/openapi_client/models/bank_account_deletion.rb +4 -4
  244. data/lib/openapi_client/models/bank_account_list.rb +4 -4
  245. data/lib/openapi_client/models/bank_account_verify.rb +4 -4
  246. data/lib/openapi_client/models/bank_account_writable.rb +4 -4
  247. data/lib/openapi_client/models/bank_type_enum.rb +1 -1
  248. data/lib/openapi_client/models/billing_group.rb +4 -4
  249. data/lib/openapi_client/models/billing_group_editable.rb +4 -4
  250. data/lib/openapi_client/models/billing_group_list.rb +4 -4
  251. data/lib/openapi_client/models/buckslip.rb +4 -4
  252. data/lib/openapi_client/models/buckslip_deletion.rb +4 -4
  253. data/lib/openapi_client/models/buckslip_editable.rb +4 -4
  254. data/lib/openapi_client/models/buckslip_order.rb +4 -4
  255. data/lib/openapi_client/models/buckslip_order_editable.rb +4 -4
  256. data/lib/openapi_client/models/buckslip_orders_list.rb +4 -4
  257. data/lib/openapi_client/models/buckslip_updatable.rb +4 -4
  258. data/lib/openapi_client/models/buckslips_list.rb +4 -4
  259. data/lib/openapi_client/models/bulk_error.rb +4 -4
  260. data/lib/openapi_client/models/bulk_error_properties.rb +4 -4
  261. data/lib/openapi_client/models/campaign.rb +4 -4
  262. data/lib/openapi_client/models/campaign_creative.rb +4 -4
  263. data/lib/openapi_client/models/campaign_deletion.rb +4 -4
  264. data/lib/openapi_client/models/campaign_updatable.rb +4 -4
  265. data/lib/openapi_client/models/campaign_writable.rb +4 -4
  266. data/lib/openapi_client/models/campaigns_list.rb +4 -4
  267. data/lib/openapi_client/models/card.rb +4 -4
  268. data/lib/openapi_client/models/card_deletion.rb +4 -4
  269. data/lib/openapi_client/models/card_editable.rb +4 -4
  270. data/lib/openapi_client/models/card_list.rb +4 -4
  271. data/lib/openapi_client/models/card_order.rb +4 -4
  272. data/lib/openapi_client/models/card_order_editable.rb +4 -4
  273. data/lib/openapi_client/models/card_order_list.rb +4 -4
  274. data/lib/openapi_client/models/card_updatable.rb +4 -4
  275. data/lib/openapi_client/models/check.rb +18 -8
  276. data/lib/openapi_client/models/check_deletion.rb +4 -4
  277. data/lib/openapi_client/models/check_editable.rb +18 -8
  278. data/lib/openapi_client/models/check_list.rb +4 -4
  279. data/lib/openapi_client/models/chk_use_type.rb +38 -0
  280. data/lib/openapi_client/models/cmp_schedule_type.rb +1 -1
  281. data/lib/openapi_client/models/cmp_use_type.rb +1 -1
  282. data/lib/openapi_client/models/country_extended.rb +1 -1
  283. data/lib/openapi_client/models/country_extended_expanded.rb +1 -1
  284. data/lib/openapi_client/models/creative_patch.rb +4 -4
  285. data/lib/openapi_client/models/creative_response.rb +4 -4
  286. data/lib/openapi_client/models/creative_writable.rb +5 -5
  287. data/lib/openapi_client/models/custom_envelope_returned.rb +4 -4
  288. data/lib/openapi_client/models/deliverability_analysis.rb +4 -4
  289. data/lib/openapi_client/models/dpv_footnote.rb +1 -1
  290. data/lib/openapi_client/models/engine_html.rb +1 -1
  291. data/lib/openapi_client/models/event_type.rb +4 -4
  292. data/lib/openapi_client/models/events.rb +4 -4
  293. data/lib/openapi_client/models/export.rb +4 -4
  294. data/lib/openapi_client/models/export_model.rb +4 -4
  295. data/lib/openapi_client/models/geocode_addresses.rb +4 -4
  296. data/lib/openapi_client/models/geocode_components.rb +4 -4
  297. data/lib/openapi_client/models/http_validation_error.rb +4 -4
  298. data/lib/openapi_client/models/identity_validation.rb +4 -4
  299. data/lib/openapi_client/models/inline_object.rb +4 -4
  300. data/lib/openapi_client/models/intl_autocompletions.rb +4 -4
  301. data/lib/openapi_client/models/intl_autocompletions_writable.rb +4 -4
  302. data/lib/openapi_client/models/intl_components.rb +4 -4
  303. data/lib/openapi_client/models/intl_suggestions.rb +4 -4
  304. data/lib/openapi_client/models/intl_verification.rb +4 -4
  305. data/lib/openapi_client/models/intl_verification_or_error.rb +4 -4
  306. data/lib/openapi_client/models/intl_verification_writable.rb +4 -4
  307. data/lib/openapi_client/models/intl_verifications.rb +4 -4
  308. data/lib/openapi_client/models/intl_verifications_payload.rb +4 -4
  309. data/lib/openapi_client/models/letter.rb +30 -9
  310. data/lib/openapi_client/models/letter_custom_envelope.rb +4 -4
  311. data/lib/openapi_client/models/letter_deletion.rb +4 -4
  312. data/lib/openapi_client/models/letter_details_returned.rb +5 -5
  313. data/lib/openapi_client/models/letter_details_writable.rb +4 -4
  314. data/lib/openapi_client/models/letter_editable.rb +18 -8
  315. data/lib/openapi_client/models/letter_list.rb +4 -4
  316. data/lib/openapi_client/models/lob_confidence_score.rb +4 -4
  317. data/lib/openapi_client/models/lob_error.rb +4 -4
  318. data/lib/openapi_client/models/location.rb +4 -4
  319. data/lib/openapi_client/models/location_analysis.rb +4 -4
  320. data/lib/openapi_client/models/ltr_use_type.rb +38 -0
  321. data/lib/openapi_client/models/mail_type.rb +1 -1
  322. data/lib/openapi_client/models/multi_line_address.rb +4 -4
  323. data/lib/openapi_client/models/multiple_components.rb +4 -4
  324. data/lib/openapi_client/models/multiple_components_intl.rb +4 -4
  325. data/lib/openapi_client/models/multiple_components_list.rb +4 -4
  326. data/lib/openapi_client/models/optional_address_column_mapping.rb +259 -0
  327. data/lib/openapi_client/models/placeholder_model.rb +4 -4
  328. data/lib/openapi_client/models/postcard.rb +18 -8
  329. data/lib/openapi_client/models/postcard_deletion.rb +4 -4
  330. data/lib/openapi_client/models/postcard_details_returned.rb +4 -4
  331. data/lib/openapi_client/models/postcard_details_writable.rb +4 -4
  332. data/lib/openapi_client/models/postcard_editable.rb +18 -8
  333. data/lib/openapi_client/models/postcard_list.rb +4 -4
  334. data/lib/openapi_client/models/postcard_size.rb +1 -1
  335. data/lib/openapi_client/models/psc_use_type.rb +38 -0
  336. data/lib/openapi_client/models/qr_code.rb +4 -4
  337. data/lib/openapi_client/models/required_address_column_mapping.rb +285 -0
  338. data/lib/openapi_client/models/return_envelope.rb +4 -4
  339. data/lib/openapi_client/models/reverse_geocode.rb +4 -4
  340. data/lib/openapi_client/models/self_mailer.rb +18 -8
  341. data/lib/openapi_client/models/self_mailer_deletion.rb +4 -4
  342. data/lib/openapi_client/models/self_mailer_editable.rb +18 -8
  343. data/lib/openapi_client/models/self_mailer_list.rb +4 -4
  344. data/lib/openapi_client/models/self_mailer_size.rb +1 -1
  345. data/lib/openapi_client/models/sfm_use_type.rb +38 -0
  346. data/lib/openapi_client/models/sort_by.rb +4 -4
  347. data/lib/openapi_client/models/sort_by1.rb +4 -4
  348. data/lib/openapi_client/models/sort_by2.rb +4 -4
  349. data/lib/openapi_client/models/sort_by3.rb +4 -4
  350. data/lib/openapi_client/models/sort_by_date_modified.rb +4 -4
  351. data/lib/openapi_client/models/suggestions.rb +4 -4
  352. data/lib/openapi_client/models/template.rb +4 -4
  353. data/lib/openapi_client/models/template_deletion.rb +4 -4
  354. data/lib/openapi_client/models/template_list.rb +4 -4
  355. data/lib/openapi_client/models/template_update.rb +4 -4
  356. data/lib/openapi_client/models/template_version.rb +4 -4
  357. data/lib/openapi_client/models/template_version_deletion.rb +4 -4
  358. data/lib/openapi_client/models/template_version_list.rb +4 -4
  359. data/lib/openapi_client/models/template_version_updatable.rb +4 -4
  360. data/lib/openapi_client/models/template_version_writable.rb +4 -4
  361. data/lib/openapi_client/models/template_writable.rb +4 -4
  362. data/lib/openapi_client/models/thumbnail.rb +4 -4
  363. data/lib/openapi_client/models/tracking_event_certified.rb +4 -4
  364. data/lib/openapi_client/models/tracking_event_details.rb +4 -4
  365. data/lib/openapi_client/models/tracking_event_normal.rb +4 -4
  366. data/lib/openapi_client/models/upload.rb +55 -48
  367. data/lib/openapi_client/models/upload_create_export.rb +4 -4
  368. data/lib/openapi_client/models/upload_file.rb +4 -4
  369. data/lib/openapi_client/models/upload_state.rb +1 -1
  370. data/lib/openapi_client/models/upload_updatable.rb +46 -19
  371. data/lib/openapi_client/models/upload_writable.rb +46 -30
  372. data/lib/openapi_client/models/uploads_metadata.rb +237 -0
  373. data/lib/openapi_client/models/us_autocompletions.rb +4 -4
  374. data/lib/openapi_client/models/us_autocompletions_writable.rb +4 -4
  375. data/lib/openapi_client/models/us_components.rb +7 -7
  376. data/lib/openapi_client/models/us_verification.rb +15 -5
  377. data/lib/openapi_client/models/us_verification_or_error.rb +4 -4
  378. data/lib/openapi_client/models/us_verifications.rb +4 -4
  379. data/lib/openapi_client/models/us_verifications_writable.rb +4 -4
  380. data/lib/openapi_client/models/validation_error.rb +4 -4
  381. data/lib/openapi_client/models/zip.rb +4 -4
  382. data/lib/openapi_client/models/zip_code_type.rb +1 -1
  383. data/lib/openapi_client/models/zip_editable.rb +4 -4
  384. data/lib/openapi_client/models/zip_lookup_city.rb +4 -4
  385. data/lib/openapi_client/version.rb +2 -2
  386. data/lib/openapi_client.rb +7 -0
  387. data/openapi_client.gemspec +1 -1
  388. data/spec/api/addresses_api_spec.rb +3 -3
  389. data/spec/api/bank_accounts_api_spec.rb +3 -3
  390. data/spec/api/billing_groups_api_spec.rb +3 -3
  391. data/spec/api/campaigns_api_spec.rb +3 -3
  392. data/spec/api/card_orders_api_spec.rb +3 -3
  393. data/spec/api/cards_api_spec.rb +3 -3
  394. data/spec/api/checks_api_spec.rb +3 -3
  395. data/spec/api/creatives_api_spec.rb +3 -3
  396. data/spec/api/default_api_spec.rb +3 -3
  397. data/spec/api/identity_validation_api_spec.rb +3 -3
  398. data/spec/api/intl_autocompletions_api_spec.rb +3 -3
  399. data/spec/api/intl_verifications_api_spec.rb +3 -3
  400. data/spec/api/letters_api_spec.rb +3 -3
  401. data/spec/api/postcards_api_spec.rb +3 -3
  402. data/spec/api/reverse_geocode_lookups_api_spec.rb +3 -3
  403. data/spec/api/self_mailers_api_spec.rb +3 -3
  404. data/spec/api/template_versions_api_spec.rb +3 -3
  405. data/spec/api/templates_api_spec.rb +3 -3
  406. data/spec/api/uploads_api_spec.rb +3 -3
  407. data/spec/api/us_autocompletions_api_spec.rb +3 -3
  408. data/spec/api/us_verifications_api_spec.rb +3 -3
  409. data/spec/api/zip_lookups_api_spec.rb +3 -3
  410. data/spec/api_client_spec.rb +29 -29
  411. data/spec/configuration_spec.rb +3 -3
  412. metadata +31 -20
@@ -13,7 +13,7 @@ OpenAPI Generator version: 5.2.1
13
13
  require 'date'
14
14
  require 'time'
15
15
 
16
- module OpenapiClient
16
+ module Lob
17
17
  class AddressDomesticExpanded
18
18
  # The building number, street name, street suffix, and any street directionals. For US addresses, the max length is 64 characters.
19
19
  attr_accessor :address_line1
@@ -109,13 +109,13 @@ module OpenapiClient
109
109
  # @param [Hash] attributes Model attributes in the form of hash
110
110
  def initialize(attributes = {})
111
111
  if (!attributes.is_a?(Hash))
112
- fail ArgumentError, "The input argument (attributes) must be a hash in `OpenapiClient::AddressDomesticExpanded` initialize method"
112
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Lob::AddressDomesticExpanded` initialize method"
113
113
  end
114
114
 
115
115
  # check to see if the attribute exists and convert string to symbol for hash key
116
116
  attributes = attributes.each_with_object({}) { |(k, v), h|
117
117
  if (!self.class.attribute_map.key?(k.to_sym))
118
- fail ArgumentError, "`#{k}` is not a valid attribute in `OpenapiClient::AddressDomesticExpanded`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
118
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Lob::AddressDomesticExpanded`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
119
119
  end
120
120
  h[k.to_sym] = v
121
121
  }
@@ -465,7 +465,7 @@ module OpenapiClient
465
465
  end
466
466
  else # model
467
467
  # models (e.g. Pet) or oneOf
468
- klass = OpenapiClient.const_get(type)
468
+ klass = Lob.const_get(type)
469
469
  klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
470
470
  end
471
471
  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 AddressEditable
18
18
  # The building number, street name, street suffix, and any street directionals. For US addresses, the max length is 64 characters.
19
19
  attr_accessor :address_line1
@@ -108,13 +108,13 @@ module OpenapiClient
108
108
  # @param [Hash] attributes Model attributes in the form of hash
109
109
  def initialize(attributes = {})
110
110
  if (!attributes.is_a?(Hash))
111
- fail ArgumentError, "The input argument (attributes) must be a hash in `OpenapiClient::AddressEditable` initialize method"
111
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Lob::AddressEditable` initialize method"
112
112
  end
113
113
 
114
114
  # check to see if the attribute exists and convert string to symbol for hash key
115
115
  attributes = attributes.each_with_object({}) { |(k, v), h|
116
116
  if (!self.class.attribute_map.key?(k.to_sym))
117
- fail ArgumentError, "`#{k}` is not a valid attribute in `OpenapiClient::AddressEditable`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
117
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Lob::AddressEditable`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
118
118
  end
119
119
  h[k.to_sym] = v
120
120
  }
@@ -447,7 +447,7 @@ module OpenapiClient
447
447
  end
448
448
  else # model
449
449
  # models (e.g. Pet) or oneOf
450
- klass = OpenapiClient.const_get(type)
450
+ klass = Lob.const_get(type)
451
451
  klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
452
452
  end
453
453
  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 AddressList
18
18
  # list of addresses
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::AddressList` initialize method"
77
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Lob::AddressList` 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::AddressList`. 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::AddressList`. 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
@@ -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 BankAccount
18
18
  # An internal description that identifies this resource. Must be no longer than 255 characters.
19
19
  attr_accessor :description
@@ -134,13 +134,13 @@ module OpenapiClient
134
134
  # @param [Hash] attributes Model attributes in the form of hash
135
135
  def initialize(attributes = {})
136
136
  if (!attributes.is_a?(Hash))
137
- fail ArgumentError, "The input argument (attributes) must be a hash in `OpenapiClient::BankAccount` initialize method"
137
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Lob::BankAccount` initialize method"
138
138
  end
139
139
 
140
140
  # check to see if the attribute exists and convert string to symbol for hash key
141
141
  attributes = attributes.each_with_object({}) { |(k, v), h|
142
142
  if (!self.class.attribute_map.key?(k.to_sym))
143
- fail ArgumentError, "`#{k}` is not a valid attribute in `OpenapiClient::BankAccount`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
143
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Lob::BankAccount`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
144
144
  end
145
145
  h[k.to_sym] = v
146
146
  }
@@ -520,7 +520,7 @@ module OpenapiClient
520
520
  end
521
521
  else # model
522
522
  # models (e.g. Pet) or oneOf
523
- klass = OpenapiClient.const_get(type)
523
+ klass = Lob.const_get(type)
524
524
  klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
525
525
  end
526
526
  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 BankAccountDeletion
19
19
  # Unique identifier prefixed with `bank_`.
@@ -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::BankAccountDeletion` initialize method"
83
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Lob::BankAccountDeletion` 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::BankAccountDeletion`. 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::BankAccountDeletion`. 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 BankAccountList
18
18
  # list of addresses
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::BankAccountList` initialize method"
77
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Lob::BankAccountList` 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::BankAccountList`. 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::BankAccountList`. 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
@@ -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 BankAccountVerify
18
18
  # In live mode, an array containing the two micro deposits (in cents) placed in the bank account. In test mode, no micro deposits will be placed, so any two integers between `1` and `100` will work.
19
19
  attr_accessor :amounts
@@ -47,13 +47,13 @@ module OpenapiClient
47
47
  # @param [Hash] attributes Model attributes in the form of hash
48
48
  def initialize(attributes = {})
49
49
  if (!attributes.is_a?(Hash))
50
- fail ArgumentError, "The input argument (attributes) must be a hash in `OpenapiClient::BankAccountVerify` initialize method"
50
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Lob::BankAccountVerify` initialize method"
51
51
  end
52
52
 
53
53
  # check to see if the attribute exists and convert string to symbol for hash key
54
54
  attributes = attributes.each_with_object({}) { |(k, v), h|
55
55
  if (!self.class.attribute_map.key?(k.to_sym))
56
- fail ArgumentError, "`#{k}` is not a valid attribute in `OpenapiClient::BankAccountVerify`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
56
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Lob::BankAccountVerify`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
57
57
  end
58
58
  h[k.to_sym] = v
59
59
  }
@@ -208,7 +208,7 @@ module OpenapiClient
208
208
  end
209
209
  else # model
210
210
  # models (e.g. Pet) or oneOf
211
- klass = OpenapiClient.const_get(type)
211
+ klass = Lob.const_get(type)
212
212
  klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
213
213
  end
214
214
  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 BankAccountWritable
18
18
  # An internal description that identifies this resource. Must be no longer than 255 characters.
19
19
  attr_accessor :description
@@ -71,13 +71,13 @@ module OpenapiClient
71
71
  # @param [Hash] attributes Model attributes in the form of hash
72
72
  def initialize(attributes = {})
73
73
  if (!attributes.is_a?(Hash))
74
- fail ArgumentError, "The input argument (attributes) must be a hash in `OpenapiClient::BankAccountWritable` initialize method"
74
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Lob::BankAccountWritable` initialize method"
75
75
  end
76
76
 
77
77
  # check to see if the attribute exists and convert string to symbol for hash key
78
78
  attributes = attributes.each_with_object({}) { |(k, v), h|
79
79
  if (!self.class.attribute_map.key?(k.to_sym))
80
- fail ArgumentError, "`#{k}` is not a valid attribute in `OpenapiClient::BankAccountWritable`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
80
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Lob::BankAccountWritable`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
81
81
  end
82
82
  h[k.to_sym] = v
83
83
  }
@@ -331,7 +331,7 @@ module OpenapiClient
331
331
  end
332
332
  else # model
333
333
  # models (e.g. Pet) or oneOf
334
- klass = OpenapiClient.const_get(type)
334
+ klass = Lob.const_get(type)
335
335
  klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
336
336
  end
337
337
  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 BankTypeEnum
18
18
  COMPANY = "company".freeze
19
19
  INDIVIDUAL = "individual".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 BillingGroup
18
18
  # Description of the billing group.
19
19
  attr_accessor :description
@@ -94,13 +94,13 @@ module OpenapiClient
94
94
  # @param [Hash] attributes Model attributes in the form of hash
95
95
  def initialize(attributes = {})
96
96
  if (!attributes.is_a?(Hash))
97
- fail ArgumentError, "The input argument (attributes) must be a hash in `OpenapiClient::BillingGroup` initialize method"
97
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Lob::BillingGroup` initialize method"
98
98
  end
99
99
 
100
100
  # check to see if the attribute exists and convert string to symbol for hash key
101
101
  attributes = attributes.each_with_object({}) { |(k, v), h|
102
102
  if (!self.class.attribute_map.key?(k.to_sym))
103
- fail ArgumentError, "`#{k}` is not a valid attribute in `OpenapiClient::BillingGroup`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
103
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Lob::BillingGroup`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
104
104
  end
105
105
  h[k.to_sym] = v
106
106
  }
@@ -339,7 +339,7 @@ module OpenapiClient
339
339
  end
340
340
  else # model
341
341
  # models (e.g. Pet) or oneOf
342
- klass = OpenapiClient.const_get(type)
342
+ klass = Lob.const_get(type)
343
343
  klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
344
344
  end
345
345
  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 BillingGroupEditable
18
18
  # Description of the billing group.
19
19
  attr_accessor :description
@@ -52,13 +52,13 @@ module OpenapiClient
52
52
  # @param [Hash] attributes Model attributes in the form of hash
53
53
  def initialize(attributes = {})
54
54
  if (!attributes.is_a?(Hash))
55
- fail ArgumentError, "The input argument (attributes) must be a hash in `OpenapiClient::BillingGroupEditable` initialize method"
55
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Lob::BillingGroupEditable` initialize method"
56
56
  end
57
57
 
58
58
  # check to see if the attribute exists and convert string to symbol for hash key
59
59
  attributes = attributes.each_with_object({}) { |(k, v), h|
60
60
  if (!self.class.attribute_map.key?(k.to_sym))
61
- fail ArgumentError, "`#{k}` is not a valid attribute in `OpenapiClient::BillingGroupEditable`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
61
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Lob::BillingGroupEditable`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
62
62
  end
63
63
  h[k.to_sym] = v
64
64
  }
@@ -222,7 +222,7 @@ module OpenapiClient
222
222
  end
223
223
  else # model
224
224
  # models (e.g. Pet) or oneOf
225
- klass = OpenapiClient.const_get(type)
225
+ klass = Lob.const_get(type)
226
226
  klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
227
227
  end
228
228
  end
@@ -13,7 +13,7 @@ OpenAPI Generator version: 5.2.1
13
13
  require 'date'
14
14
  require 'time'
15
15
 
16
- module OpenapiClient
16
+ module Lob
17
17
  class BillingGroupList
18
18
  # list of billing groups
19
19
  attr_accessor :data
@@ -69,13 +69,13 @@ module OpenapiClient
69
69
  # @param [Hash] attributes Model attributes in the form of hash
70
70
  def initialize(attributes = {})
71
71
  if (!attributes.is_a?(Hash))
72
- fail ArgumentError, "The input argument (attributes) must be a hash in `OpenapiClient::BillingGroupList` initialize method"
72
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Lob::BillingGroupList` initialize method"
73
73
  end
74
74
 
75
75
  # check to see if the attribute exists and convert string to symbol for hash key
76
76
  attributes = attributes.each_with_object({}) { |(k, v), h|
77
77
  if (!self.class.attribute_map.key?(k.to_sym))
78
- fail ArgumentError, "`#{k}` is not a valid attribute in `OpenapiClient::BillingGroupList`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
78
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Lob::BillingGroupList`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
79
79
  end
80
80
  h[k.to_sym] = v
81
81
  }
@@ -258,7 +258,7 @@ module OpenapiClient
258
258
  end
259
259
  else # model
260
260
  # models (e.g. Pet) or oneOf
261
- klass = OpenapiClient.const_get(type)
261
+ klass = Lob.const_get(type)
262
262
  klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
263
263
  end
264
264
  end
@@ -13,7 +13,7 @@ OpenAPI Generator version: 5.2.1
13
13
  require 'date'
14
14
  require 'time'
15
15
 
16
- module OpenapiClient
16
+ module Lob
17
17
  class Buckslip
18
18
  # Unique identifier prefixed with `bck_`.
19
19
  attr_accessor :id
@@ -171,13 +171,13 @@ module OpenapiClient
171
171
  # @param [Hash] attributes Model attributes in the form of hash
172
172
  def initialize(attributes = {})
173
173
  if (!attributes.is_a?(Hash))
174
- fail ArgumentError, "The input argument (attributes) must be a hash in `OpenapiClient::Buckslip` initialize method"
174
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Lob::Buckslip` initialize method"
175
175
  end
176
176
 
177
177
  # check to see if the attribute exists and convert string to symbol for hash key
178
178
  attributes = attributes.each_with_object({}) { |(k, v), h|
179
179
  if (!self.class.attribute_map.key?(k.to_sym))
180
- fail ArgumentError, "`#{k}` is not a valid attribute in `OpenapiClient::Buckslip`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
180
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Lob::Buckslip`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
181
181
  end
182
182
  h[k.to_sym] = v
183
183
  }
@@ -758,7 +758,7 @@ module OpenapiClient
758
758
  end
759
759
  else # model
760
760
  # models (e.g. Pet) or oneOf
761
- klass = OpenapiClient.const_get(type)
761
+ klass = Lob.const_get(type)
762
762
  klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
763
763
  end
764
764
  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 BuckslipDeletion
19
19
  # Unique identifier prefixed with `bck_`.
@@ -53,13 +53,13 @@ module OpenapiClient
53
53
  # @param [Hash] attributes Model attributes in the form of hash
54
54
  def initialize(attributes = {})
55
55
  if (!attributes.is_a?(Hash))
56
- fail ArgumentError, "The input argument (attributes) must be a hash in `OpenapiClient::BuckslipDeletion` initialize method"
56
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Lob::BuckslipDeletion` initialize method"
57
57
  end
58
58
 
59
59
  # check to see if the attribute exists and convert string to symbol for hash key
60
60
  attributes = attributes.each_with_object({}) { |(k, v), h|
61
61
  if (!self.class.attribute_map.key?(k.to_sym))
62
- fail ArgumentError, "`#{k}` is not a valid attribute in `OpenapiClient::BuckslipDeletion`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
62
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Lob::BuckslipDeletion`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
63
63
  end
64
64
  h[k.to_sym] = v
65
65
  }
@@ -201,7 +201,7 @@ module OpenapiClient
201
201
  end
202
202
  else # model
203
203
  # models (e.g. Pet) or oneOf
204
- klass = OpenapiClient.const_get(type)
204
+ klass = Lob.const_get(type)
205
205
  klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
206
206
  end
207
207
  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 BuckslipEditable
18
18
  # A PDF template for the front of the buckslip
19
19
  attr_accessor :front
@@ -85,13 +85,13 @@ module OpenapiClient
85
85
  # @param [Hash] attributes Model attributes in the form of hash
86
86
  def initialize(attributes = {})
87
87
  if (!attributes.is_a?(Hash))
88
- fail ArgumentError, "The input argument (attributes) must be a hash in `OpenapiClient::BuckslipEditable` initialize method"
88
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Lob::BuckslipEditable` initialize method"
89
89
  end
90
90
 
91
91
  # check to see if the attribute exists and convert string to symbol for hash key
92
92
  attributes = attributes.each_with_object({}) { |(k, v), h|
93
93
  if (!self.class.attribute_map.key?(k.to_sym))
94
- fail ArgumentError, "`#{k}` is not a valid attribute in `OpenapiClient::BuckslipEditable`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
94
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Lob::BuckslipEditable`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
95
95
  end
96
96
  h[k.to_sym] = v
97
97
  }
@@ -260,7 +260,7 @@ module OpenapiClient
260
260
  end
261
261
  else # model
262
262
  # models (e.g. Pet) or oneOf
263
- klass = OpenapiClient.const_get(type)
263
+ klass = Lob.const_get(type)
264
264
  klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
265
265
  end
266
266
  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 BuckslipOrder
18
18
  # A timestamp in ISO 8601 format of the date the resource was created.
19
19
  attr_accessor :date_created
@@ -129,13 +129,13 @@ module OpenapiClient
129
129
  # @param [Hash] attributes Model attributes in the form of hash
130
130
  def initialize(attributes = {})
131
131
  if (!attributes.is_a?(Hash))
132
- fail ArgumentError, "The input argument (attributes) must be a hash in `OpenapiClient::BuckslipOrder` initialize method"
132
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Lob::BuckslipOrder` initialize method"
133
133
  end
134
134
 
135
135
  # check to see if the attribute exists and convert string to symbol for hash key
136
136
  attributes = attributes.each_with_object({}) { |(k, v), h|
137
137
  if (!self.class.attribute_map.key?(k.to_sym))
138
- fail ArgumentError, "`#{k}` is not a valid attribute in `OpenapiClient::BuckslipOrder`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
138
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Lob::BuckslipOrder`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
139
139
  end
140
140
  h[k.to_sym] = v
141
141
  }
@@ -382,7 +382,7 @@ module OpenapiClient
382
382
  end
383
383
  else # model
384
384
  # models (e.g. Pet) or oneOf
385
- klass = OpenapiClient.const_get(type)
385
+ klass = Lob.const_get(type)
386
386
  klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
387
387
  end
388
388
  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 BuckslipOrderEditable
18
18
  # The quantity of buckslips in the order (minimum 5,000).
19
19
  attr_accessor :quantity
@@ -47,13 +47,13 @@ module OpenapiClient
47
47
  # @param [Hash] attributes Model attributes in the form of hash
48
48
  def initialize(attributes = {})
49
49
  if (!attributes.is_a?(Hash))
50
- fail ArgumentError, "The input argument (attributes) must be a hash in `OpenapiClient::BuckslipOrderEditable` initialize method"
50
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Lob::BuckslipOrderEditable` initialize method"
51
51
  end
52
52
 
53
53
  # check to see if the attribute exists and convert string to symbol for hash key
54
54
  attributes = attributes.each_with_object({}) { |(k, v), h|
55
55
  if (!self.class.attribute_map.key?(k.to_sym))
56
- fail ArgumentError, "`#{k}` is not a valid attribute in `OpenapiClient::BuckslipOrderEditable`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
56
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Lob::BuckslipOrderEditable`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
57
57
  end
58
58
  h[k.to_sym] = v
59
59
  }
@@ -206,7 +206,7 @@ module OpenapiClient
206
206
  end
207
207
  else # model
208
208
  # models (e.g. Pet) or oneOf
209
- klass = OpenapiClient.const_get(type)
209
+ klass = Lob.const_get(type)
210
210
  klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
211
211
  end
212
212
  end
@@ -13,7 +13,7 @@ OpenAPI Generator version: 5.2.1
13
13
  require 'date'
14
14
  require 'time'
15
15
 
16
- module OpenapiClient
16
+ module Lob
17
17
  class BuckslipOrdersList
18
18
  # Value is type of resource.
19
19
  attr_accessor :object
@@ -69,13 +69,13 @@ module OpenapiClient
69
69
  # @param [Hash] attributes Model attributes in the form of hash
70
70
  def initialize(attributes = {})
71
71
  if (!attributes.is_a?(Hash))
72
- fail ArgumentError, "The input argument (attributes) must be a hash in `OpenapiClient::BuckslipOrdersList` initialize method"
72
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Lob::BuckslipOrdersList` initialize method"
73
73
  end
74
74
 
75
75
  # check to see if the attribute exists and convert string to symbol for hash key
76
76
  attributes = attributes.each_with_object({}) { |(k, v), h|
77
77
  if (!self.class.attribute_map.key?(k.to_sym))
78
- fail ArgumentError, "`#{k}` is not a valid attribute in `OpenapiClient::BuckslipOrdersList`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
78
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Lob::BuckslipOrdersList`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
79
79
  end
80
80
  h[k.to_sym] = v
81
81
  }
@@ -256,7 +256,7 @@ module OpenapiClient
256
256
  end
257
257
  else # model
258
258
  # models (e.g. Pet) or oneOf
259
- klass = OpenapiClient.const_get(type)
259
+ klass = Lob.const_get(type)
260
260
  klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
261
261
  end
262
262
  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 BuckslipUpdatable
18
18
  # Description of the buckslip.
19
19
  attr_accessor :description
@@ -58,13 +58,13 @@ module OpenapiClient
58
58
  # @param [Hash] attributes Model attributes in the form of hash
59
59
  def initialize(attributes = {})
60
60
  if (!attributes.is_a?(Hash))
61
- fail ArgumentError, "The input argument (attributes) must be a hash in `OpenapiClient::BuckslipUpdatable` initialize method"
61
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Lob::BuckslipUpdatable` initialize method"
62
62
  end
63
63
 
64
64
  # check to see if the attribute exists and convert string to symbol for hash key
65
65
  attributes = attributes.each_with_object({}) { |(k, v), h|
66
66
  if (!self.class.attribute_map.key?(k.to_sym))
67
- fail ArgumentError, "`#{k}` is not a valid attribute in `OpenapiClient::BuckslipUpdatable`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
67
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Lob::BuckslipUpdatable`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
68
68
  end
69
69
  h[k.to_sym] = v
70
70
  }
@@ -233,7 +233,7 @@ module OpenapiClient
233
233
  end
234
234
  else # model
235
235
  # models (e.g. Pet) or oneOf
236
- klass = OpenapiClient.const_get(type)
236
+ klass = Lob.const_get(type)
237
237
  klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
238
238
  end
239
239
  end