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
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- lob (6.0.0.pre.rc)
4
+ lob (6.0.0)
5
5
  typhoeus (~> 1.0, >= 1.0.1)
6
6
 
7
7
  GEM
@@ -17,15 +17,15 @@ GEM
17
17
  jaro_winkler (1.5.4)
18
18
  method_source (1.0.0)
19
19
  parallel (1.22.1)
20
- parser (3.1.3.0)
20
+ parser (3.2.0.0)
21
21
  ast (~> 2.4.1)
22
- pry (0.14.1)
22
+ pry (0.14.2)
23
23
  coderay (~> 1.1)
24
24
  method_source (~> 1.0)
25
25
  pry-byebug (3.10.1)
26
26
  byebug (~> 11.0)
27
27
  pry (>= 0.13, < 0.15)
28
- psych (5.0.1)
28
+ psych (5.0.2)
29
29
  stringio
30
30
  rainbow (3.1.1)
31
31
  rake (13.0.6)
@@ -35,10 +35,10 @@ GEM
35
35
  rspec-mocks (~> 3.12.0)
36
36
  rspec-core (3.12.0)
37
37
  rspec-support (~> 3.12.0)
38
- rspec-expectations (3.12.1)
38
+ rspec-expectations (3.12.2)
39
39
  diff-lcs (>= 1.2.0, < 2.0)
40
40
  rspec-support (~> 3.12.0)
41
- rspec-mocks (3.12.1)
41
+ rspec-mocks (3.12.3)
42
42
  diff-lcs (>= 1.2.0, < 2.0)
43
43
  rspec-support (~> 3.12.0)
44
44
  rspec-support (3.12.0)
@@ -67,4 +67,4 @@ DEPENDENCIES
67
67
  rubocop (~> 0.66.0)
68
68
 
69
69
  BUNDLED WITH
70
- 2.3.26
70
+ 2.4.4
data/MIGRATION.md ADDED
@@ -0,0 +1,174 @@
1
+ # Migrate from version < v6.0.0
2
+
3
+ This guide illustrates differences between Lob’s the legacy versions of this SDK and the new current version.
4
+
5
+ In this guide we compare how `v5.*.*` and >= `v6.0.0` implement the following method pattern.
6
+
7
+ - CREATE
8
+ - LIST
9
+ - GET
10
+ - DELETE
11
+ - VERIFY (BANK ACCOUNTS)
12
+ - UPDATE
13
+
14
+ ## INSTALL
15
+
16
+ Similar to the legacy version, the new lob-ruby SDK is available through `gem`:
17
+
18
+ ```
19
+ $ gem install lob
20
+ ```
21
+
22
+ ## IMPORT AND INITIALIZE
23
+
24
+
25
+ ```ruby
26
+ require 'lob'
27
+ config = Lob::Configuration.default
28
+ config.username = ENV['LOB_API_TEST_KEY']
29
+ ```
30
+ You then instantiate the specific resource API that you need access to as follows:
31
+
32
+ ```ruby
33
+ api = Lob::ApiClient.new(config)
34
+ addressApi = AddressesApi.new(@api)
35
+
36
+ ```
37
+
38
+ ## METHODS
39
+
40
+ The new SDK version abstracts the request/response interaction out of the calling code such that you create the resource and pass it to the corresponding API in a begin/rescue such that any non-success is an `ApiException` that must be handled.
41
+
42
+ ### COMPARE CREATE METHODS
43
+
44
+ Here is a sample of the legacy lob-ruby CREATE function:
45
+
46
+ ```ruby
47
+ @lob.addresses.create(
48
+ description: 'Harry - Office',
49
+ name: 'Harry Zhang',
50
+ company: 'Lob',
51
+ email: 'harry@lob.com',
52
+ phone: '5555555555',
53
+ address_line1: '210 King St',
54
+ address_line2: '# 6100',
55
+ address_city: 'San Francisco',
56
+ address_state: 'CA',
57
+ address_country: 'US',
58
+ address_zip: '94107'
59
+ )
60
+ ```
61
+
62
+ Here is a sample of the updated CREATE method
63
+
64
+ ```ruby
65
+ addressEditable = AddressEditable.new({
66
+ name: 'Thing T. Thing',
67
+ address_line1: '1313 CEMETERY LN',
68
+ address_city: 'WESTFIELD',
69
+ address_state: 'NJ',
70
+ address_zip: '07000',
71
+ })
72
+
73
+ begin
74
+ response = @addressApi.create(addressEditable)
75
+ rescue => e
76
+ puts 'An error of has occcured, message is #{e.message}'
77
+ end
78
+ ```
79
+
80
+ ### COMPARE LIST METHODS
81
+
82
+ Here is a sample of the legacy lob-ruby LIST method:
83
+
84
+ ```ruby
85
+ @lob.addresses.list(limit: 2)
86
+ ```
87
+
88
+ Here is a sample of the updated LIST method:
89
+
90
+ ```ruby
91
+ begin
92
+ response = @addressApi.list()
93
+ rescue => e
94
+ puts 'An error of has occcured, message is #{e.message}'
95
+ end
96
+ ```
97
+
98
+ ### COMPARE GET BY ID METHOD
99
+
100
+ Here is a sample of the legacy lob-ruby GET method:
101
+
102
+ ```ruby
103
+ @lob.addresses.find('adr_xxx')
104
+
105
+ ```
106
+
107
+ Here is a sample of the updated GET method:
108
+
109
+ ```ruby
110
+ begin
111
+ response = @addressApi.get('adr_xxx')
112
+ rescue => e
113
+ puts 'An error of has occcured, message is #{e.message}'
114
+ end
115
+ ```
116
+
117
+ ### COMPARE DELETE METHOD
118
+
119
+ Here is a sample of the legacy lob-ruby DELETE method:
120
+
121
+ ```ruby
122
+ @lob.addresses.destroy('adr_xxx')
123
+ ```
124
+
125
+ Here is a sample of the updated DELETE method:
126
+
127
+ ```ruby
128
+ begin
129
+ response = @addressApi.delete('adr_xxx')
130
+ rescue => e
131
+ puts 'An error of has occcured, message is #{e.message}'
132
+ end
133
+ ```
134
+
135
+ ### COMPARE BANK ACCOUNT VERIFY
136
+
137
+ Here is a sample of the legacy lob-ruby BANK ACCOUNT VERIFY method:
138
+
139
+ ```ruby
140
+ @lob.bank_accounts.verify('bank_xxx', amounts: [25, 63])
141
+ ```
142
+
143
+ Here is a sample of the updated BANK ACCOUNT VERIFY method:
144
+
145
+ ```ruby
146
+ bankVerify = BankAccountVerify.new({ 'amounts': [11, 35] })
147
+ begin
148
+ response = @bankAccountApi.verify('bank_xxx', bankVerify)
149
+ rescue => e
150
+ puts 'An error of has occcured, message is #{e.message}'
151
+ end
152
+ ```
153
+
154
+ ### COMPARE UPDATE METHOD
155
+
156
+ Here is a sample of the legacy lob-ruby UPDATE method:
157
+
158
+ ```ruby
159
+ This feature was not supported by the legacy library.
160
+ ```
161
+
162
+ Here is a sample of the updated UPDATE method:
163
+
164
+ ```ruby
165
+ updatableTemplate = TemplateUpdate.new({
166
+ description: 'Updated template for Ruby Integration Test'
167
+ })
168
+
169
+ begin
170
+ updatedTemplate = @templateApi.update('tmpl_xxxx', updatableTemplate)
171
+ rescue => e
172
+ puts 'An error of has occcured, message is #{e.message}'
173
+ end
174
+ ```
data/README.md CHANGED
@@ -26,38 +26,19 @@ Install with the appropriate [package manager](https://www.ruby-lang.org/en/docu
26
26
 
27
27
  Then add Lob's Ruby SDK to your Gemfile
28
28
  ```ruby
29
- gem 'openapi_client'
30
- ```
31
-
32
- If you're using [Bundler](https://bundler.io/) to manage your dependencies, then you can install our SDK by running this on the command line
33
- ```shell
34
- $ bundle add openapi_client
35
- ```
36
-
37
- If you're not using Bundler, then you can install our SDK by running the following instead
38
- ```shell
39
- $ gem install openapi_client
40
- ```
41
-
42
- And finally import the package in your `.rb` file
43
- ```ruby
44
- require 'openapi_client'
29
+ gem install 'lob'
45
30
  ```
46
31
 
47
32
  ## First API Call
48
33
 
49
34
  ```ruby
50
- # Load the gem
51
- require 'openapi_client'
35
+ require 'lob'
52
36
 
53
- # Setup authorization
54
- OpenapiClient.configure do |config|
55
- # Configure HTTP basic authorization: basicAuth
56
- config.username = '<YOUR_LOB_API_KEY>'
57
- end
37
+ config = Lob::Configuration.default
38
+ config.username = ENV['LOB_API_TEST_KEY']
58
39
 
59
- apiInstance = OpenapiClient::AddressesApi.new
60
- addressEditable = OpenapiClient::AddressEditable.new({
40
+ apiInstance = Lob::AddressesApi.new
41
+ addressEditable = Lob::AddressEditable.new({
61
42
  description: "Harry - Office",
62
43
  name: "Harry Zhang",
63
44
  company: "Lob",
@@ -75,7 +56,7 @@ begin
75
56
  #create
76
57
  result = apiInstance.create(addressEditable)
77
58
  p result
78
- rescue OpenapiClient::ApiError => e
59
+ rescue Lob::ApiError => e
79
60
  puts "Exception when calling AddressesApi->create: #{e}"
80
61
  end
81
62
  ```
@@ -123,14 +104,9 @@ Then, to run the integration tests:
123
104
  $ env $(cat LOCAL.env) rspec -P __tests__/Integration/* --color --format doc
124
105
  ```
125
106
 
126
- ## Documentation For Authorization
127
-
128
-
129
- ## basicAuth
130
-
131
- - **Type**: HTTP basic authentication
107
+ =======================
132
108
 
109
+ Copyright © 2022 Lob.com
133
110
 
134
- ## Author
111
+ Released under the MIT License, which can be found in the repository in [LICENSE.txt](https://github.com/lob/lob-go/blob/main/LICENSE.txt).
135
112
 
136
- lob-openapi@lob.com
@@ -1,6 +1,6 @@
1
1
  # Address.unit.rb
2
2
 
3
- include OpenapiClient
3
+ include Lob
4
4
  $:.unshift File.expand_path("../../lib/openapi_client", File.dirname(__FILE__))
5
5
  require 'api/addresses_api'
6
6
  require 'models/address'
@@ -1,6 +1,6 @@
1
1
  # BankAccount.unit.rb
2
2
 
3
- include OpenapiClient
3
+ include Lob
4
4
  $:.unshift File.expand_path("../../lib/openapi_client", File.dirname(__FILE__))
5
5
  require 'api/bank_accounts_api'
6
6
  require 'models/bank_account'
@@ -1,6 +1,6 @@
1
1
  # BillingGroup.unit.rb
2
2
 
3
- include OpenapiClient
3
+ include Lob
4
4
  $:.unshift File.expand_path("../../lib/openapi_client", File.dirname(__FILE__))
5
5
  require 'api/billing_groups_api'
6
6
  require 'models/billing_group'
@@ -1,6 +1,6 @@
1
1
  # Card.unit.rb
2
2
 
3
- include OpenapiClient
3
+ include Lob
4
4
  $:.unshift File.expand_path("../../lib/openapi_client", File.dirname(__FILE__))
5
5
 
6
6
  RSpec.describe "CardsApi" do
@@ -1,6 +1,6 @@
1
1
  # CardOrder.unit.rb
2
2
 
3
- include OpenapiClient
3
+ include Lob
4
4
  $:.unshift File.expand_path("../../lib/openapi_client", File.dirname(__FILE__))
5
5
 
6
6
  RSpec.describe "CardOrdersApi" do
@@ -1,6 +1,6 @@
1
1
  # Check.unit.rb
2
2
 
3
- include OpenapiClient
3
+ include Lob
4
4
  $:.unshift File.expand_path("../../lib/openapi_client", File.dirname(__FILE__))
5
5
 
6
6
  RSpec.describe "ChecksApi" do
@@ -1,6 +1,6 @@
1
1
  # IntlAutcompletion.unit.rb
2
2
 
3
- include OpenapiClient
3
+ include Lob
4
4
  $:.unshift File.expand_path("../../lib/openapi_client", File.dirname(__FILE__))
5
5
 
6
6
  RSpec.describe "IntlAutocompletionsApi" do
@@ -1,6 +1,6 @@
1
1
  # IntlVerification.unit.rb
2
2
 
3
- include OpenapiClient
3
+ include Lob
4
4
  $:.unshift File.expand_path("../../lib/openapi_client", File.dirname(__FILE__))
5
5
 
6
6
  RSpec.describe "IntlVerificationsApi" do
@@ -1,6 +1,6 @@
1
1
  # Letter.unit.rb
2
2
 
3
- include OpenapiClient
3
+ include Lob
4
4
  $:.unshift File.expand_path("../../lib/openapi_client", File.dirname(__FILE__))
5
5
 
6
6
  RSpec.describe "LettersApi" do
@@ -1,6 +1,6 @@
1
1
  # Postcard.unit.rb
2
2
 
3
- include OpenapiClient
3
+ include Lob
4
4
  $:.unshift File.expand_path("../../lib/openapi_client", File.dirname(__FILE__))
5
5
 
6
6
  RSpec.describe "PostcardsApi" do
@@ -1,6 +1,6 @@
1
1
  # ReverseGeocodeLookup.unit.rb
2
2
 
3
- include OpenapiClient
3
+ include Lob
4
4
  $:.unshift File.expand_path("../../lib/openapi_client", File.dirname(__FILE__))
5
5
 
6
6
  RSpec.describe "ReverseGeocodeLookupsApi" do
@@ -1,6 +1,6 @@
1
1
  # SelfMailer.unit.rb
2
2
 
3
- include OpenapiClient
3
+ include Lob
4
4
  $:.unshift File.expand_path("../../lib/openapi_client", File.dirname(__FILE__))
5
5
 
6
6
  RSpec.describe "SelfMailersApi" do
@@ -1,6 +1,6 @@
1
1
  # Template.unit.rb
2
2
 
3
- include OpenapiClient
3
+ include Lob
4
4
  $:.unshift File.expand_path("../../lib/openapi_client", File.dirname(__FILE__))
5
5
 
6
6
  RSpec.describe "TemplatesApi" do
@@ -1,6 +1,6 @@
1
1
  # TemplateVersion.unit.rb
2
2
 
3
- include OpenapiClient
3
+ include Lob
4
4
  $:.unshift File.expand_path("../../lib/openapi_client", File.dirname(__FILE__))
5
5
 
6
6
  RSpec.describe "TemplateVersionsApi" do
@@ -6,17 +6,17 @@ RSpec.describe "UsAutocompletionsApi" do
6
6
 
7
7
  it "can be instantiated" do
8
8
  usAutocompletionApiMock = double("ApiClient")
9
- usAutocompletionApi = OpenapiClient::UsAutocompletionsApi.new(usAutocompletionApiMock)
9
+ usAutocompletionApi = Lob::UsAutocompletionsApi.new(usAutocompletionApiMock)
10
10
 
11
11
  expect(usAutocompletionApi).not_to be_nil
12
- expect(usAutocompletionApi).to be_a_kind_of(OpenapiClient::UsAutocompletionsApi)
12
+ expect(usAutocompletionApi).to be_a_kind_of(Lob::UsAutocompletionsApi)
13
13
  end
14
14
 
15
15
  describe "Autocomplete" do
16
16
  it "handles errors returned by the api" do
17
17
  usAutocompletionApiMock = double("ApiClient")
18
- usAutocompletionApi = OpenapiClient::UsAutocompletionsApi.new(usAutocompletionApiMock)
19
- usAutocompletionsWritable = OpenapiClient::UsAutocompletionsWritable.new
18
+ usAutocompletionApi = Lob::UsAutocompletionsApi.new(usAutocompletionApiMock)
19
+ usAutocompletionsWritable = Lob::UsAutocompletionsWritable.new
20
20
 
21
21
  allow(usAutocompletionApi).to receive(:autocomplete).and_raise("exception thrown in autocomplete test")
22
22
  begin
@@ -28,10 +28,10 @@ RSpec.describe "UsAutocompletionsApi" do
28
28
 
29
29
  it "autocomplete an address" do
30
30
  usAutocompletionApiMock = double("ApiClient")
31
- usAutocompletionApi = OpenapiClient::UsAutocompletionsApi.new(usAutocompletionApiMock)
32
- usAutocompletionsWritable = OpenapiClient::UsAutocompletionsWritable.new
33
- usAutocompletions = OpenapiClient::UsAutocompletions.new
34
- usAutocompletions.suggestions = Array.new(1, OpenapiClient::Suggestions.new)
31
+ usAutocompletionApi = Lob::UsAutocompletionsApi.new(usAutocompletionApiMock)
32
+ usAutocompletionsWritable = Lob::UsAutocompletionsWritable.new
33
+ usAutocompletions = Lob::UsAutocompletions.new
34
+ usAutocompletions.suggestions = Array.new(1, Lob::Suggestions.new)
35
35
 
36
36
  allow(usAutocompletionApi).to receive(:autocomplete) { usAutocompletions }
37
37
  response = usAutocompletionApi.autocomplete(usAutocompletionsWritable)
@@ -1,6 +1,6 @@
1
1
  # UsVerification.unit.rb
2
2
 
3
- include OpenapiClient
3
+ include Lob
4
4
  $:.unshift File.expand_path("../../lib/openapi_client", File.dirname(__FILE__))
5
5
 
6
6
  RSpec.describe "UsVerificationsApi" do
@@ -1,6 +1,6 @@
1
1
  # ZipLookup.unit.rb
2
2
 
3
- include OpenapiClient
3
+ include Lob
4
4
  $:.unshift File.expand_path("../../lib/openapi_client", File.dirname(__FILE__))
5
5
 
6
6
  RSpec.describe "ZipLookupsApi" do
@@ -1,6 +1,6 @@
1
1
  # Address.unit.rb
2
2
  require_relative '../TestFixtures'
3
- include OpenapiClient
3
+ include Lob
4
4
  $:.unshift File.expand_path("../../lib/openapi_client", File.dirname(__FILE__))
5
5
  require 'api/addresses_api'
6
6
  require 'models/address'
@@ -49,9 +49,9 @@ RSpec.describe "AddressesApi" do
49
49
  end
50
50
 
51
51
  it "does not allow creation with invalid key" do
52
- config = OpenapiClient::Configuration.default
52
+ config = Lob::Configuration.default
53
53
  config.username = "fake key"
54
- badapi = OpenapiClient::ApiClient.new(config)
54
+ badapi = Lob::ApiClient.new(config)
55
55
 
56
56
  addressApi = AddressesApi.new(badapi)
57
57
  addressEditable = AddressEditable.new({
@@ -1,6 +1,6 @@
1
1
  # BankAccount.spec.rb
2
2
  require_relative '../TestFixtures'
3
- include OpenapiClient
3
+ include Lob
4
4
  $:.unshift File.expand_path("../../lib/openapi_client", File.dirname(__FILE__))
5
5
  require 'uri'
6
6
 
@@ -43,9 +43,9 @@ RSpec.describe "BankAccountsApi" do
43
43
  end
44
44
 
45
45
  it "does not allow creation with invalid key" do
46
- config = OpenapiClient::Configuration.default
46
+ config = Lob::Configuration.default
47
47
  config.username = "fake key"
48
- badapi = OpenapiClient::ApiClient.new(config)
48
+ badapi = Lob::ApiClient.new(config)
49
49
 
50
50
  bankAccountApi = BankAccountsApi.new(badapi)
51
51
 
@@ -1,6 +1,6 @@
1
1
  # BillingGroup.spec.rb
2
2
  require_relative '../TestFixtures'
3
- include OpenapiClient
3
+ include Lob
4
4
  $:.unshift File.expand_path("../../lib/openapi_client", File.dirname(__FILE__))
5
5
  require 'uri'
6
6
 
@@ -37,9 +37,9 @@ RSpec.describe "BillingGroupsApi" do
37
37
  end
38
38
 
39
39
  it "does not allow creation with invalid key" do
40
- config = OpenapiClient::Configuration.default
40
+ config = Lob::Configuration.default
41
41
  config.username = "fake key"
42
- badapi = OpenapiClient::ApiClient.new(config)
42
+ badapi = Lob::ApiClient.new(config)
43
43
 
44
44
  billingGroupApi = BillingGroupsApi.new(badapi)
45
45
 
@@ -1,6 +1,6 @@
1
1
  # Card.spec.rb
2
2
  require_relative '../TestFixtures'
3
- include OpenapiClient
3
+ include Lob
4
4
  $:.unshift File.expand_path("../../lib/openapi_client", File.dirname(__FILE__))
5
5
  require 'uri'
6
6
 
@@ -42,9 +42,9 @@ RSpec.describe "CardsApi" do
42
42
  end
43
43
 
44
44
  it "does not allow creation with invalid key" do
45
- config = OpenapiClient::Configuration.default
45
+ config = Lob::Configuration.default
46
46
  config.username = "fake key"
47
- badapi = OpenapiClient::ApiClient.new(config)
47
+ badapi = Lob::ApiClient.new(config)
48
48
 
49
49
  cardApi = CardsApi.new(badapi)
50
50
 
@@ -1,6 +1,6 @@
1
1
  # CardOrder.spec.rb
2
2
  require_relative '../TestFixtures'
3
- include OpenapiClient
3
+ include Lob
4
4
  $:.unshift File.expand_path("../../lib/openapi_client", File.dirname(__FILE__))
5
5
  require 'uri'
6
6
 
@@ -47,9 +47,9 @@ RSpec.describe "CardOrdersApi" do
47
47
  end
48
48
 
49
49
  it "does not allow creation with invalid key" do
50
- config = OpenapiClient::Configuration.default
50
+ config = Lob::Configuration.default
51
51
  config.username = "fake key"
52
- badapi = OpenapiClient::ApiClient.new(config)
52
+ badapi = Lob::ApiClient.new(config)
53
53
 
54
54
  cardOrderApi = CardOrdersApi.new(badapi)
55
55
 
@@ -1,6 +1,6 @@
1
1
  # Check.spec.rb
2
2
  require_relative '../TestFixtures'
3
- include OpenapiClient
3
+ include Lob
4
4
  $:.unshift File.expand_path("../../lib/openapi_client", File.dirname(__FILE__))
5
5
  require 'uri'
6
6
 
@@ -77,9 +77,9 @@ RSpec.describe "ChecksApi" do
77
77
  end
78
78
 
79
79
  it "does not allow creation with invalid key" do
80
- config = OpenapiClient::Configuration.default
80
+ config = Lob::Configuration.default
81
81
  config.username = "fake key"
82
- badapi = OpenapiClient::ApiClient.new(config)
82
+ badapi = Lob::ApiClient.new(config)
83
83
 
84
84
  checkApi = ChecksApi.new(badapi)
85
85
 
@@ -1,6 +1,6 @@
1
1
  # IntlAutocompletion.spec.rb
2
2
  require_relative '../TestFixtures'
3
- include OpenapiClient
3
+ include Lob
4
4
  $:.unshift File.expand_path("../../lib/openapi_client", File.dirname(__FILE__))
5
5
 
6
6
  RSpec.describe "IntlAutocompletionsApi" do
@@ -38,9 +38,9 @@ RSpec.describe "IntlAutocompletionsApi" do
38
38
  end
39
39
 
40
40
  it "does not allow creation with invalid key" do
41
- config = OpenapiClient::Configuration.default
41
+ config = Lob::Configuration.default
42
42
  config.username = "fake key"
43
- badapi = OpenapiClient::ApiClient.new(config)
43
+ badapi = Lob::ApiClient.new(config)
44
44
 
45
45
  intlAutocompletionApi = IntlAutocompletionsApi.new(badapi)
46
46
 
@@ -1,6 +1,6 @@
1
1
  # IntlVerification.spec.rb
2
2
  require_relative '../TestFixtures'
3
- include OpenapiClient
3
+ include Lob
4
4
  $:.unshift File.expand_path("../../lib/openapi_client", File.dirname(__FILE__))
5
5
 
6
6
  RSpec.describe "IntlVerificationsApi" do
@@ -74,9 +74,9 @@ RSpec.describe "IntlVerificationsApi" do
74
74
  end
75
75
 
76
76
  it "does not allow creation with invalid key" do
77
- config = OpenapiClient::Configuration.default
77
+ config = Lob::Configuration.default
78
78
  config.username = "fake key"
79
- badapi = OpenapiClient::ApiClient.new(config)
79
+ badapi = Lob::ApiClient.new(config)
80
80
 
81
81
  intlVerificationApi = IntlVerificationsApi.new(badapi)
82
82
 
@@ -1,6 +1,6 @@
1
1
  # Letter.spec.rb
2
2
  require_relative '../TestFixtures'
3
- include OpenapiClient
3
+ include Lob
4
4
  $:.unshift File.expand_path("../../lib/openapi_client", File.dirname(__FILE__))
5
5
  require 'uri'
6
6
 
@@ -54,9 +54,9 @@ RSpec.describe "LettersApi" do
54
54
  end
55
55
 
56
56
  it "does not allow creation with invalid key" do
57
- config = OpenapiClient::Configuration.default
57
+ config = Lob::Configuration.default
58
58
  config.username = "fake key"
59
- badapi = OpenapiClient::ApiClient.new(config)
59
+ badapi = Lob::ApiClient.new(config)
60
60
 
61
61
  letterApi = LettersApi.new(badapi)
62
62