checkbook 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (459) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +9 -0
  3. data/README.md +324 -0
  4. data/Rakefile +10 -0
  5. data/checkbook.gemspec +39 -0
  6. data/docs/Approval.md +669 -0
  7. data/docs/Bank.md +645 -0
  8. data/docs/Card.md +290 -0
  9. data/docs/Checkbook.md +370 -0
  10. data/docs/Directory.md +520 -0
  11. data/docs/Interac.md +290 -0
  12. data/docs/Invoice.md +452 -0
  13. data/docs/Mailbox.md +454 -0
  14. data/docs/Payment.md +1247 -0
  15. data/docs/Paypal.md +290 -0
  16. data/docs/Subscription.md +453 -0
  17. data/docs/User.md +722 -0
  18. data/docs/Vcc.md +448 -0
  19. data/docs/Venmo.md +290 -0
  20. data/docs/Wallet.md +292 -0
  21. data/docs/Wire.md +290 -0
  22. data/lib/checkbook/api/approval.rb +662 -0
  23. data/lib/checkbook/api/bank.rb +613 -0
  24. data/lib/checkbook/api/card.rb +284 -0
  25. data/lib/checkbook/api/checkbook.rb +357 -0
  26. data/lib/checkbook/api/directory.rb +522 -0
  27. data/lib/checkbook/api/interac.rb +284 -0
  28. data/lib/checkbook/api/invoice.rb +452 -0
  29. data/lib/checkbook/api/mailbox.rb +441 -0
  30. data/lib/checkbook/api/payment.rb +1188 -0
  31. data/lib/checkbook/api/paypal.rb +284 -0
  32. data/lib/checkbook/api/subscription.rb +463 -0
  33. data/lib/checkbook/api/user.rb +687 -0
  34. data/lib/checkbook/api/vcc.rb +439 -0
  35. data/lib/checkbook/api/venmo.rb +284 -0
  36. data/lib/checkbook/api/wallet.rb +284 -0
  37. data/lib/checkbook/api/wire.rb +284 -0
  38. data/lib/checkbook/api_client.rb +404 -0
  39. data/lib/checkbook/api_error.rb +58 -0
  40. data/lib/checkbook/api_model_base.rb +88 -0
  41. data/lib/checkbook/configuration.rb +316 -0
  42. data/lib/checkbook/models/address.rb +266 -0
  43. data/lib/checkbook/models/address_response.rb +316 -0
  44. data/lib/checkbook/models/api_key_list_response.rb +241 -0
  45. data/lib/checkbook/models/api_key_response.rb +315 -0
  46. data/lib/checkbook/models/approval.rb +445 -0
  47. data/lib/checkbook/models/approval_number.rb +104 -0
  48. data/lib/checkbook/models/approval_recipient.rb +105 -0
  49. data/lib/checkbook/models/attachment.rb +283 -0
  50. data/lib/checkbook/models/bank.rb +475 -0
  51. data/lib/checkbook/models/bank_release_request.rb +238 -0
  52. data/lib/checkbook/models/bank_settings.rb +232 -0
  53. data/lib/checkbook/models/bank_verify_request.rb +311 -0
  54. data/lib/checkbook/models/base_checkbook_request.rb +328 -0
  55. data/lib/checkbook/models/brand.rb +297 -0
  56. data/lib/checkbook/models/brand_response.rb +255 -0
  57. data/lib/checkbook/models/button.rb +221 -0
  58. data/lib/checkbook/models/card.rb +357 -0
  59. data/lib/checkbook/models/card_address.rb +377 -0
  60. data/lib/checkbook/models/check.rb +445 -0
  61. data/lib/checkbook/models/check_address.rb +407 -0
  62. data/lib/checkbook/models/check_response.rb +238 -0
  63. data/lib/checkbook/models/check_settings.rb +230 -0
  64. data/lib/checkbook/models/checkbook_address.rb +442 -0
  65. data/lib/checkbook/models/color.rb +232 -0
  66. data/lib/checkbook/models/convert_check_request.rb +264 -0
  67. data/lib/checkbook/models/counterparty.rb +264 -0
  68. data/lib/checkbook/models/create_bank_request.rb +342 -0
  69. data/lib/checkbook/models/create_bank_response.rb +475 -0
  70. data/lib/checkbook/models/create_card_intent.rb +313 -0
  71. data/lib/checkbook/models/create_card_intent_response.rb +221 -0
  72. data/lib/checkbook/models/create_card_request.rb +284 -0
  73. data/lib/checkbook/models/create_card_response.rb +332 -0
  74. data/lib/checkbook/models/create_check_subscription_request.rb +476 -0
  75. data/lib/checkbook/models/create_check_subscription_request_recipient.rb +104 -0
  76. data/lib/checkbook/models/create_digital_check_request.rb +470 -0
  77. data/lib/checkbook/models/create_digital_check_request_attachment.rb +104 -0
  78. data/lib/checkbook/models/create_digital_check_request_number.rb +105 -0
  79. data/lib/checkbook/models/create_digital_check_request_recipient.rb +104 -0
  80. data/lib/checkbook/models/create_direct_check_request.rb +554 -0
  81. data/lib/checkbook/models/create_direct_check_request_number.rb +104 -0
  82. data/lib/checkbook/models/create_directory_bank_request.rb +342 -0
  83. data/lib/checkbook/models/create_directory_bank_response.rb +329 -0
  84. data/lib/checkbook/models/create_directory_card_request.rb +300 -0
  85. data/lib/checkbook/models/create_directory_card_response.rb +329 -0
  86. data/lib/checkbook/models/create_directory_request.rb +291 -0
  87. data/lib/checkbook/models/create_directory_response.rb +314 -0
  88. data/lib/checkbook/models/create_instant_check_request.rb +487 -0
  89. data/lib/checkbook/models/create_interac_request.rb +247 -0
  90. data/lib/checkbook/models/create_invoice_request.rb +393 -0
  91. data/lib/checkbook/models/create_invoice_request_attachment.rb +104 -0
  92. data/lib/checkbook/models/create_invoice_response.rb +399 -0
  93. data/lib/checkbook/models/create_invoice_subscription_request.rb +471 -0
  94. data/lib/checkbook/models/create_mailbox_response.rb +301 -0
  95. data/lib/checkbook/models/create_multi_check_request.rb +432 -0
  96. data/lib/checkbook/models/create_paypal_request.rb +247 -0
  97. data/lib/checkbook/models/create_physical_check_request.rb +446 -0
  98. data/lib/checkbook/models/create_physical_check_request_number.rb +105 -0
  99. data/lib/checkbook/models/create_physical_check_request_remittance_advice.rb +104 -0
  100. data/lib/checkbook/models/create_subscription_response.rb +454 -0
  101. data/lib/checkbook/models/create_subscription_response_recipient.rb +104 -0
  102. data/lib/checkbook/models/create_user_request.rb +302 -0
  103. data/lib/checkbook/models/create_user_response.rb +304 -0
  104. data/lib/checkbook/models/create_vcc_request.rb +242 -0
  105. data/lib/checkbook/models/create_vcc_response.rb +302 -0
  106. data/lib/checkbook/models/create_venmo_request.rb +247 -0
  107. data/lib/checkbook/models/create_wallet_request.rb +282 -0
  108. data/lib/checkbook/models/create_wallet_response.rb +285 -0
  109. data/lib/checkbook/models/create_wire_request.rb +342 -0
  110. data/lib/checkbook/models/csv_approval_response.rb +240 -0
  111. data/lib/checkbook/models/csv_check_request.rb +313 -0
  112. data/lib/checkbook/models/csv_check_response.rb +240 -0
  113. data/lib/checkbook/models/csv_invoice_request.rb +268 -0
  114. data/lib/checkbook/models/csv_invoice_response.rb +240 -0
  115. data/lib/checkbook/models/csv_multi_check_request.rb +268 -0
  116. data/lib/checkbook/models/deposit_check_request.rb +238 -0
  117. data/lib/checkbook/models/developer.rb +238 -0
  118. data/lib/checkbook/models/digital_recipient.rb +257 -0
  119. data/lib/checkbook/models/directory_account.rb +329 -0
  120. data/lib/checkbook/models/directory_address.rb +277 -0
  121. data/lib/checkbook/models/directory_request_address.rb +392 -0
  122. data/lib/checkbook/models/endorse_check_request.rb +267 -0
  123. data/lib/checkbook/models/error.rb +246 -0
  124. data/lib/checkbook/models/file_row.rb +362 -0
  125. data/lib/checkbook/models/get_api_key_response.rb +253 -0
  126. data/lib/checkbook/models/get_approval_response.rb +434 -0
  127. data/lib/checkbook/models/get_approvals_response.rb +318 -0
  128. data/lib/checkbook/models/get_banks_response.rb +240 -0
  129. data/lib/checkbook/models/get_cards_response.rb +240 -0
  130. data/lib/checkbook/models/get_check_deposited_response.rb +246 -0
  131. data/lib/checkbook/models/get_check_failed_response.rb +224 -0
  132. data/lib/checkbook/models/get_check_response.rb +434 -0
  133. data/lib/checkbook/models/get_check_tracking_response_express.rb +240 -0
  134. data/lib/checkbook/models/get_check_tracking_response_first_class.rb +240 -0
  135. data/lib/checkbook/models/get_checkbook_response.rb +325 -0
  136. data/lib/checkbook/models/get_checkbook_tracking_response_express.rb +240 -0
  137. data/lib/checkbook/models/get_checkbook_tracking_response_first_class.rb +240 -0
  138. data/lib/checkbook/models/get_checkbooks_response.rb +318 -0
  139. data/lib/checkbook/models/get_checks_response.rb +318 -0
  140. data/lib/checkbook/models/get_directories_response.rb +270 -0
  141. data/lib/checkbook/models/get_institutions_response.rb +240 -0
  142. data/lib/checkbook/models/get_interac_response.rb +240 -0
  143. data/lib/checkbook/models/get_invoice_response.rb +468 -0
  144. data/lib/checkbook/models/get_invoices_response.rb +318 -0
  145. data/lib/checkbook/models/get_mail_response.rb +318 -0
  146. data/lib/checkbook/models/get_mailboxes_response.rb +318 -0
  147. data/lib/checkbook/models/get_paypal_response.rb +240 -0
  148. data/lib/checkbook/models/get_subscription_response.rb +522 -0
  149. data/lib/checkbook/models/get_subscriptions_response.rb +318 -0
  150. data/lib/checkbook/models/get_user_response.rb +239 -0
  151. data/lib/checkbook/models/get_vcc_response.rb +393 -0
  152. data/lib/checkbook/models/get_venmo_response.rb +240 -0
  153. data/lib/checkbook/models/get_wallets_response.rb +240 -0
  154. data/lib/checkbook/models/get_wire_response.rb +240 -0
  155. data/lib/checkbook/models/iav_account.rb +276 -0
  156. data/lib/checkbook/models/iav_login_response.rb +245 -0
  157. data/lib/checkbook/models/iav_login_schema.rb +238 -0
  158. data/lib/checkbook/models/iav_plaid_request.rb +238 -0
  159. data/lib/checkbook/models/iav_plaid_response.rb +223 -0
  160. data/lib/checkbook/models/iavmfa_schema.rb +249 -0
  161. data/lib/checkbook/models/inline_response200.rb +222 -0
  162. data/lib/checkbook/models/institution.rb +277 -0
  163. data/lib/checkbook/models/interac_account_response.rb +276 -0
  164. data/lib/checkbook/models/invoice_attachment.rb +283 -0
  165. data/lib/checkbook/models/invoice_file_row.rb +374 -0
  166. data/lib/checkbook/models/login_field.rb +277 -0
  167. data/lib/checkbook/models/mail_response.rb +367 -0
  168. data/lib/checkbook/models/mailbox_address.rb +285 -0
  169. data/lib/checkbook/models/merchant.rb +447 -0
  170. data/lib/checkbook/models/merchant_response.rb +318 -0
  171. data/lib/checkbook/models/merchant_response_address.rb +278 -0
  172. data/lib/checkbook/models/mfa_option.rb +273 -0
  173. data/lib/checkbook/models/mfa_response_field.rb +298 -0
  174. data/lib/checkbook/models/mfa_selection_field.rb +231 -0
  175. data/lib/checkbook/models/multi_file_row.rb +431 -0
  176. data/lib/checkbook/models/multi_recipient.rb +312 -0
  177. data/lib/checkbook/models/new_api_key_request.rb +233 -0
  178. data/lib/checkbook/models/new_api_key_response.rb +263 -0
  179. data/lib/checkbook/models/number.rb +231 -0
  180. data/lib/checkbook/models/number140416527981344.rb +231 -0
  181. data/lib/checkbook/models/numbers.rb +238 -0
  182. data/lib/checkbook/models/numbers140416527982288.rb +238 -0
  183. data/lib/checkbook/models/options.rb +256 -0
  184. data/lib/checkbook/models/parsed_address.rb +271 -0
  185. data/lib/checkbook/models/parsed_address_address.rb +104 -0
  186. data/lib/checkbook/models/pay_invoice_request.rb +284 -0
  187. data/lib/checkbook/models/pay_invoice_response.rb +346 -0
  188. data/lib/checkbook/models/payment.rb +247 -0
  189. data/lib/checkbook/models/paypal_account_response.rb +276 -0
  190. data/lib/checkbook/models/physical_check_recipient.rb +442 -0
  191. data/lib/checkbook/models/pin.rb +283 -0
  192. data/lib/checkbook/models/plaid_account.rb +276 -0
  193. data/lib/checkbook/models/post_bank_iav_request.rb +104 -0
  194. data/lib/checkbook/models/preview_check_request.rb +337 -0
  195. data/lib/checkbook/models/preview_check_request_number.rb +104 -0
  196. data/lib/checkbook/models/preview_check_response.rb +238 -0
  197. data/lib/checkbook/models/provision_vcc_request.rb +348 -0
  198. data/lib/checkbook/models/provision_vcc_response.rb +292 -0
  199. data/lib/checkbook/models/register_user_request.rb +417 -0
  200. data/lib/checkbook/models/release_check_request.rb +238 -0
  201. data/lib/checkbook/models/remittance_advice.rb +296 -0
  202. data/lib/checkbook/models/signature_request.rb +239 -0
  203. data/lib/checkbook/models/subscription_address.rb +407 -0
  204. data/lib/checkbook/models/tracking_event.rb +249 -0
  205. data/lib/checkbook/models/tracking_number.rb +249 -0
  206. data/lib/checkbook/models/trigger_user_webhook_request.rb +262 -0
  207. data/lib/checkbook/models/trigger_webhook_request.rb +271 -0
  208. data/lib/checkbook/models/update_approval_request.rb +329 -0
  209. data/lib/checkbook/models/update_bank_request.rb +257 -0
  210. data/lib/checkbook/models/update_card_request.rb +247 -0
  211. data/lib/checkbook/models/update_check_request.rb +263 -0
  212. data/lib/checkbook/models/update_directory_address.rb +337 -0
  213. data/lib/checkbook/models/update_directory_request.rb +281 -0
  214. data/lib/checkbook/models/update_interac_request.rb +237 -0
  215. data/lib/checkbook/models/update_merchant_address.rb +377 -0
  216. data/lib/checkbook/models/update_paypal_request.rb +237 -0
  217. data/lib/checkbook/models/update_principal_address.rb +377 -0
  218. data/lib/checkbook/models/update_subscription_request.rb +233 -0
  219. data/lib/checkbook/models/update_user_request.rb +266 -0
  220. data/lib/checkbook/models/update_vcc_request.rb +242 -0
  221. data/lib/checkbook/models/update_venmo_request.rb +237 -0
  222. data/lib/checkbook/models/update_wallet_request.rb +237 -0
  223. data/lib/checkbook/models/update_wire_request.rb +237 -0
  224. data/lib/checkbook/models/user.rb +477 -0
  225. data/lib/checkbook/models/user_query_response.rb +271 -0
  226. data/lib/checkbook/models/user_response.rb +355 -0
  227. data/lib/checkbook/models/user_response_query.rb +320 -0
  228. data/lib/checkbook/models/validate_address_request.rb +240 -0
  229. data/lib/checkbook/models/validate_address_response.rb +240 -0
  230. data/lib/checkbook/models/vcc.rb +404 -0
  231. data/lib/checkbook/models/vcc_address.rb +266 -0
  232. data/lib/checkbook/models/vcc_query_response.rb +240 -0
  233. data/lib/checkbook/models/vcc_transaction.rb +285 -0
  234. data/lib/checkbook/models/vcc_transactions_response.rb +270 -0
  235. data/lib/checkbook/models/venmo_account_response.rb +276 -0
  236. data/lib/checkbook/models/verify_check_request.rb +238 -0
  237. data/lib/checkbook/models/verify_check_response.rb +221 -0
  238. data/lib/checkbook/models/verify_user_request.rb +273 -0
  239. data/lib/checkbook/models/wallet.rb +296 -0
  240. data/lib/checkbook/models/wire_account_response.rb +330 -0
  241. data/lib/checkbook/version.rb +15 -0
  242. data/lib/checkbook.rb +255 -0
  243. data/spec/api/approval_spec.rb +151 -0
  244. data/spec/api/bank_spec.rb +142 -0
  245. data/spec/api/card_spec.rb +83 -0
  246. data/spec/api/checkbook_spec.rb +97 -0
  247. data/spec/api/directory_spec.rb +125 -0
  248. data/spec/api/interac_spec.rb +83 -0
  249. data/spec/api/invoice_spec.rb +114 -0
  250. data/spec/api/mailbox_spec.rb +114 -0
  251. data/spec/api/payment_spec.rb +249 -0
  252. data/spec/api/paypal_spec.rb +83 -0
  253. data/spec/api/subscription_spec.rb +115 -0
  254. data/spec/api/user_spec.rb +156 -0
  255. data/spec/api/vcc_spec.rb +113 -0
  256. data/spec/api/venmo_spec.rb +83 -0
  257. data/spec/api/wallet_spec.rb +83 -0
  258. data/spec/api/wire_spec.rb +83 -0
  259. data/spec/models/address_response_spec.rb +54 -0
  260. data/spec/models/address_spec.rb +66 -0
  261. data/spec/models/api_key_list_response_spec.rb +36 -0
  262. data/spec/models/api_key_response_spec.rb +60 -0
  263. data/spec/models/approval_number_spec.rb +32 -0
  264. data/spec/models/approval_recipient_spec.rb +32 -0
  265. data/spec/models/approval_spec.rb +110 -0
  266. data/spec/models/attachment_spec.rb +42 -0
  267. data/spec/models/bank_release_request_spec.rb +36 -0
  268. data/spec/models/bank_settings_spec.rb +42 -0
  269. data/spec/models/bank_spec.rb +98 -0
  270. data/spec/models/bank_verify_request_spec.rb +48 -0
  271. data/spec/models/base_checkbook_request_spec.rb +58 -0
  272. data/spec/models/brand_response_spec.rb +54 -0
  273. data/spec/models/brand_spec.rb +66 -0
  274. data/spec/models/button_spec.rb +36 -0
  275. data/spec/models/card_address_spec.rb +66 -0
  276. data/spec/models/card_spec.rb +66 -0
  277. data/spec/models/check_address_spec.rb +66 -0
  278. data/spec/models/check_response_spec.rb +36 -0
  279. data/spec/models/check_settings_spec.rb +42 -0
  280. data/spec/models/check_spec.rb +110 -0
  281. data/spec/models/checkbook_address_spec.rb +72 -0
  282. data/spec/models/color_spec.rb +42 -0
  283. data/spec/models/convert_check_request_spec.rb +42 -0
  284. data/spec/models/counterparty_spec.rb +42 -0
  285. data/spec/models/create_bank_request_spec.rb +58 -0
  286. data/spec/models/create_bank_response_spec.rb +98 -0
  287. data/spec/models/create_card_intent_response_spec.rb +36 -0
  288. data/spec/models/create_card_intent_spec.rb +58 -0
  289. data/spec/models/create_card_request_spec.rb +54 -0
  290. data/spec/models/create_card_response_spec.rb +60 -0
  291. data/spec/models/create_check_subscription_request_recipient_spec.rb +32 -0
  292. data/spec/models/create_check_subscription_request_spec.rb +88 -0
  293. data/spec/models/create_digital_check_request_attachment_spec.rb +32 -0
  294. data/spec/models/create_digital_check_request_number_spec.rb +32 -0
  295. data/spec/models/create_digital_check_request_recipient_spec.rb +32 -0
  296. data/spec/models/create_digital_check_request_spec.rb +100 -0
  297. data/spec/models/create_direct_check_request_number_spec.rb +32 -0
  298. data/spec/models/create_direct_check_request_spec.rb +116 -0
  299. data/spec/models/create_directory_bank_request_spec.rb +58 -0
  300. data/spec/models/create_directory_bank_response_spec.rb +58 -0
  301. data/spec/models/create_directory_card_request_spec.rb +48 -0
  302. data/spec/models/create_directory_card_response_spec.rb +58 -0
  303. data/spec/models/create_directory_request_spec.rb +48 -0
  304. data/spec/models/create_directory_response_spec.rb +60 -0
  305. data/spec/models/create_instant_check_request_spec.rb +96 -0
  306. data/spec/models/create_interac_request_spec.rb +36 -0
  307. data/spec/models/create_invoice_request_attachment_spec.rb +32 -0
  308. data/spec/models/create_invoice_request_spec.rb +72 -0
  309. data/spec/models/create_invoice_response_spec.rb +78 -0
  310. data/spec/models/create_invoice_subscription_request_spec.rb +82 -0
  311. data/spec/models/create_mailbox_response_spec.rb +54 -0
  312. data/spec/models/create_multi_check_request_spec.rb +88 -0
  313. data/spec/models/create_paypal_request_spec.rb +36 -0
  314. data/spec/models/create_physical_check_request_number_spec.rb +32 -0
  315. data/spec/models/create_physical_check_request_remittance_advice_spec.rb +32 -0
  316. data/spec/models/create_physical_check_request_spec.rb +94 -0
  317. data/spec/models/create_subscription_response_recipient_spec.rb +32 -0
  318. data/spec/models/create_subscription_response_spec.rb +104 -0
  319. data/spec/models/create_user_request_spec.rb +42 -0
  320. data/spec/models/create_user_response_spec.rb +54 -0
  321. data/spec/models/create_vcc_request_spec.rb +48 -0
  322. data/spec/models/create_vcc_response_spec.rb +54 -0
  323. data/spec/models/create_venmo_request_spec.rb +36 -0
  324. data/spec/models/create_wallet_request_spec.rb +46 -0
  325. data/spec/models/create_wallet_response_spec.rb +54 -0
  326. data/spec/models/create_wire_request_spec.rb +58 -0
  327. data/spec/models/csv_approval_response_spec.rb +36 -0
  328. data/spec/models/csv_check_request_spec.rb +52 -0
  329. data/spec/models/csv_check_response_spec.rb +36 -0
  330. data/spec/models/csv_invoice_request_spec.rb +42 -0
  331. data/spec/models/csv_invoice_response_spec.rb +36 -0
  332. data/spec/models/csv_multi_check_request_spec.rb +42 -0
  333. data/spec/models/deposit_check_request_spec.rb +36 -0
  334. data/spec/models/developer_spec.rb +36 -0
  335. data/spec/models/digital_recipient_spec.rb +42 -0
  336. data/spec/models/directory_account_spec.rb +58 -0
  337. data/spec/models/directory_address_spec.rb +66 -0
  338. data/spec/models/directory_request_address_spec.rb +66 -0
  339. data/spec/models/endorse_check_request_spec.rb +42 -0
  340. data/spec/models/error_spec.rb +42 -0
  341. data/spec/models/file_row_spec.rb +72 -0
  342. data/spec/models/get_api_key_response_spec.rb +54 -0
  343. data/spec/models/get_approval_response_spec.rb +100 -0
  344. data/spec/models/get_approvals_response_spec.rb +54 -0
  345. data/spec/models/get_banks_response_spec.rb +36 -0
  346. data/spec/models/get_cards_response_spec.rb +36 -0
  347. data/spec/models/get_check_deposited_response_spec.rb +48 -0
  348. data/spec/models/get_check_failed_response_spec.rb +36 -0
  349. data/spec/models/get_check_response_spec.rb +100 -0
  350. data/spec/models/get_check_tracking_response_express_spec.rb +36 -0
  351. data/spec/models/get_check_tracking_response_first_class_spec.rb +36 -0
  352. data/spec/models/get_checkbook_response_spec.rb +58 -0
  353. data/spec/models/get_checkbook_tracking_response_express_spec.rb +36 -0
  354. data/spec/models/get_checkbook_tracking_response_first_class_spec.rb +36 -0
  355. data/spec/models/get_checkbooks_response_spec.rb +54 -0
  356. data/spec/models/get_checks_response_spec.rb +54 -0
  357. data/spec/models/get_directories_response_spec.rb +54 -0
  358. data/spec/models/get_institutions_response_spec.rb +36 -0
  359. data/spec/models/get_interac_response_spec.rb +36 -0
  360. data/spec/models/get_invoice_response_spec.rb +100 -0
  361. data/spec/models/get_invoices_response_spec.rb +54 -0
  362. data/spec/models/get_mail_response_spec.rb +54 -0
  363. data/spec/models/get_mailboxes_response_spec.rb +54 -0
  364. data/spec/models/get_paypal_response_spec.rb +36 -0
  365. data/spec/models/get_subscription_response_spec.rb +126 -0
  366. data/spec/models/get_subscriptions_response_spec.rb +54 -0
  367. data/spec/models/get_user_response_spec.rb +48 -0
  368. data/spec/models/get_vcc_response_spec.rb +78 -0
  369. data/spec/models/get_venmo_response_spec.rb +36 -0
  370. data/spec/models/get_wallets_response_spec.rb +36 -0
  371. data/spec/models/get_wire_response_spec.rb +36 -0
  372. data/spec/models/iav_account_spec.rb +48 -0
  373. data/spec/models/iav_login_response_spec.rb +48 -0
  374. data/spec/models/iav_login_schema_spec.rb +36 -0
  375. data/spec/models/iav_plaid_request_spec.rb +36 -0
  376. data/spec/models/iav_plaid_response_spec.rb +36 -0
  377. data/spec/models/iavmfa_schema_spec.rb +42 -0
  378. data/spec/models/inline_response200_spec.rb +36 -0
  379. data/spec/models/institution_spec.rb +48 -0
  380. data/spec/models/interac_account_response_spec.rb +48 -0
  381. data/spec/models/invoice_attachment_spec.rb +42 -0
  382. data/spec/models/invoice_file_row_spec.rb +60 -0
  383. data/spec/models/login_field_spec.rb +52 -0
  384. data/spec/models/mail_response_spec.rb +72 -0
  385. data/spec/models/mailbox_address_spec.rb +66 -0
  386. data/spec/models/merchant_response_address_spec.rb +66 -0
  387. data/spec/models/merchant_response_spec.rb +90 -0
  388. data/spec/models/merchant_spec.rb +98 -0
  389. data/spec/models/mfa_option_spec.rb +52 -0
  390. data/spec/models/mfa_response_field_spec.rb +64 -0
  391. data/spec/models/mfa_selection_field_spec.rb +42 -0
  392. data/spec/models/multi_file_row_spec.rb +72 -0
  393. data/spec/models/multi_recipient_spec.rb +54 -0
  394. data/spec/models/new_api_key_request_spec.rb +42 -0
  395. data/spec/models/new_api_key_response_spec.rb +60 -0
  396. data/spec/models/number140416527981344_spec.rb +42 -0
  397. data/spec/models/number_spec.rb +42 -0
  398. data/spec/models/numbers140416527982288_spec.rb +48 -0
  399. data/spec/models/numbers_spec.rb +48 -0
  400. data/spec/models/options_spec.rb +40 -0
  401. data/spec/models/parsed_address_address_spec.rb +32 -0
  402. data/spec/models/parsed_address_spec.rb +46 -0
  403. data/spec/models/pay_invoice_request_spec.rb +48 -0
  404. data/spec/models/pay_invoice_response_spec.rb +60 -0
  405. data/spec/models/payment_spec.rb +36 -0
  406. data/spec/models/paypal_account_response_spec.rb +48 -0
  407. data/spec/models/physical_check_recipient_spec.rb +72 -0
  408. data/spec/models/pin_spec.rb +42 -0
  409. data/spec/models/plaid_account_spec.rb +48 -0
  410. data/spec/models/post_bank_iav_request_spec.rb +32 -0
  411. data/spec/models/preview_check_request_number_spec.rb +32 -0
  412. data/spec/models/preview_check_request_spec.rb +60 -0
  413. data/spec/models/preview_check_response_spec.rb +36 -0
  414. data/spec/models/provision_vcc_request_spec.rb +58 -0
  415. data/spec/models/provision_vcc_response_spec.rb +48 -0
  416. data/spec/models/register_user_request_spec.rb +66 -0
  417. data/spec/models/release_check_request_spec.rb +36 -0
  418. data/spec/models/remittance_advice_spec.rb +54 -0
  419. data/spec/models/signature_request_spec.rb +36 -0
  420. data/spec/models/subscription_address_spec.rb +66 -0
  421. data/spec/models/tracking_event_spec.rb +42 -0
  422. data/spec/models/tracking_number_spec.rb +42 -0
  423. data/spec/models/trigger_user_webhook_request_spec.rb +40 -0
  424. data/spec/models/trigger_webhook_request_spec.rb +46 -0
  425. data/spec/models/update_approval_request_spec.rb +66 -0
  426. data/spec/models/update_bank_request_spec.rb +48 -0
  427. data/spec/models/update_card_request_spec.rb +42 -0
  428. data/spec/models/update_check_request_spec.rb +42 -0
  429. data/spec/models/update_directory_address_spec.rb +66 -0
  430. data/spec/models/update_directory_request_spec.rb +48 -0
  431. data/spec/models/update_interac_request_spec.rb +36 -0
  432. data/spec/models/update_merchant_address_spec.rb +66 -0
  433. data/spec/models/update_paypal_request_spec.rb +36 -0
  434. data/spec/models/update_principal_address_spec.rb +66 -0
  435. data/spec/models/update_subscription_request_spec.rb +42 -0
  436. data/spec/models/update_user_request_spec.rb +66 -0
  437. data/spec/models/update_vcc_request_spec.rb +48 -0
  438. data/spec/models/update_venmo_request_spec.rb +36 -0
  439. data/spec/models/update_wallet_request_spec.rb +36 -0
  440. data/spec/models/update_wire_request_spec.rb +36 -0
  441. data/spec/models/user_query_response_spec.rb +54 -0
  442. data/spec/models/user_response_query_spec.rb +54 -0
  443. data/spec/models/user_response_spec.rb +94 -0
  444. data/spec/models/user_spec.rb +84 -0
  445. data/spec/models/validate_address_request_spec.rb +36 -0
  446. data/spec/models/validate_address_response_spec.rb +36 -0
  447. data/spec/models/vcc_address_spec.rb +60 -0
  448. data/spec/models/vcc_query_response_spec.rb +36 -0
  449. data/spec/models/vcc_spec.rb +84 -0
  450. data/spec/models/vcc_transaction_spec.rb +72 -0
  451. data/spec/models/vcc_transactions_response_spec.rb +54 -0
  452. data/spec/models/venmo_account_response_spec.rb +48 -0
  453. data/spec/models/verify_check_request_spec.rb +36 -0
  454. data/spec/models/verify_check_response_spec.rb +36 -0
  455. data/spec/models/verify_user_request_spec.rb +46 -0
  456. data/spec/models/wallet_spec.rb +60 -0
  457. data/spec/models/wire_account_response_spec.rb +60 -0
  458. data/spec/spec_helper.rb +111 -0
  459. metadata +759 -0
data/docs/Payment.md ADDED
@@ -0,0 +1,1247 @@
1
+ # Checkbook::Payment
2
+
3
+ | Method | HTTP request | Description |
4
+ | ------ | ------------ | ----------- |
5
+ | [**delete_check**](Payment.md#delete_check) | **DELETE** /v3/check/{check_id} | Void a payment |
6
+ | [**get_check**](Payment.md#get_check) | **GET** /v3/check/{check_id} | Get payment |
7
+ | [**get_check_attachment**](Payment.md#get_check_attachment) | **GET** /v3/check/{check_id}/attachment | Get attachment for a payment |
8
+ | [**get_check_deposit**](Payment.md#get_check_deposit) | **GET** /v3/check/{check_id}/deposit | Get deposit details |
9
+ | [**get_check_fail**](Payment.md#get_check_fail) | **GET** /v3/check/{check_id}/fail | Get details on failed payment |
10
+ | [**get_check_tracking**](Payment.md#get_check_tracking) | **GET** /v3/check/{check_id}/tracking | Get tracking details on mailed check |
11
+ | [**get_check_verification**](Payment.md#get_check_verification) | **GET** /v3/check/{check_id}/verification | Get verification code |
12
+ | [**get_checks**](Payment.md#get_checks) | **GET** /v3/check | Get sent/received payments |
13
+ | [**post_check_deposit**](Payment.md#post_check_deposit) | **POST** /v3/check/deposit/{check_id} | Deposit a payment |
14
+ | [**post_check_digital**](Payment.md#post_check_digital) | **POST** /v3/check/digital | Create a digital payment |
15
+ | [**post_check_endorse**](Payment.md#post_check_endorse) | **POST** /v3/check/endorse/{check_id} | Endorse a multi-party payment |
16
+ | [**post_check_multi**](Payment.md#post_check_multi) | **POST** /v3/check/multi | Create a multi-party payment |
17
+ | [**post_check_notify**](Payment.md#post_check_notify) | **POST** /v3/check/notify/{check_id} | Resend payment notification |
18
+ | [**post_check_physical**](Payment.md#post_check_physical) | **POST** /v3/check/physical | Create a physical check |
19
+ | [**post_check_preview**](Payment.md#post_check_preview) | **POST** /v3/check/preview | Preview payment |
20
+ | [**post_check_print**](Payment.md#post_check_print) | **POST** /v3/check/print/{check_id} | Print a payment |
21
+ | [**post_check_webhook**](Payment.md#post_check_webhook) | **PUT** /v3/check/webhook/{check_id} | Update a sandbox payment status |
22
+
23
+
24
+ ## delete_check
25
+
26
+ > delete_check(check_id)
27
+
28
+ Void a payment
29
+
30
+ Void the specified payment
31
+
32
+ ### Examples
33
+
34
+ ```ruby
35
+ require 'time'
36
+ require 'checkbook'
37
+ # setup authorization
38
+ Checkbook.configure do |config|
39
+ # Configure API key authorization: token
40
+ config.api_key['Authorization'] = 'YOUR API KEY'
41
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
42
+ # config.api_key_prefix['Authorization'] = 'Bearer'
43
+ end
44
+
45
+ api_instance = Checkbook::Payment.new
46
+ check_id = 'check_id_example' # String |
47
+
48
+ begin
49
+ # Void a payment
50
+ api_instance.delete_check(check_id)
51
+ rescue Checkbook::ApiError => e
52
+ puts "Error when calling Payment->delete_check: #{e}"
53
+ end
54
+ ```
55
+
56
+ #### Using the delete_check_with_http_info variant
57
+
58
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
59
+
60
+ > <Array(nil, Integer, Hash)> delete_check_with_http_info(check_id)
61
+
62
+ ```ruby
63
+ begin
64
+ # Void a payment
65
+ data, status_code, headers = api_instance.delete_check_with_http_info(check_id)
66
+ p status_code # => 2xx
67
+ p headers # => { ... }
68
+ p data # => nil
69
+ rescue Checkbook::ApiError => e
70
+ puts "Error when calling Payment->delete_check_with_http_info: #{e}"
71
+ end
72
+ ```
73
+
74
+ ### Parameters
75
+
76
+ | Name | Type | Description | Notes |
77
+ | ---- | ---- | ----------- | ----- |
78
+ | **check_id** | **String** | | |
79
+
80
+ ### Return type
81
+
82
+ nil (empty response body)
83
+
84
+ ### Authorization
85
+
86
+ [token](../README.md#token)
87
+
88
+ ### HTTP request headers
89
+
90
+ - **Content-Type**: Not defined
91
+ - **Accept**: application/json
92
+
93
+
94
+ ## get_check
95
+
96
+ > <GetCheckResponse> get_check(check_id)
97
+
98
+ Get payment
99
+
100
+ Get the specified payment
101
+
102
+ ### Examples
103
+
104
+ ```ruby
105
+ require 'time'
106
+ require 'checkbook'
107
+ # setup authorization
108
+ Checkbook.configure do |config|
109
+ # Configure API key authorization: token
110
+ config.api_key['Authorization'] = 'YOUR API KEY'
111
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
112
+ # config.api_key_prefix['Authorization'] = 'Bearer'
113
+ end
114
+
115
+ api_instance = Checkbook::Payment.new
116
+ check_id = 'check_id_example' # String |
117
+
118
+ begin
119
+ # Get payment
120
+ result = api_instance.get_check(check_id)
121
+ p result
122
+ rescue Checkbook::ApiError => e
123
+ puts "Error when calling Payment->get_check: #{e}"
124
+ end
125
+ ```
126
+
127
+ #### Using the get_check_with_http_info variant
128
+
129
+ This returns an Array which contains the response data, status code and headers.
130
+
131
+ > <Array(<GetCheckResponse>, Integer, Hash)> get_check_with_http_info(check_id)
132
+
133
+ ```ruby
134
+ begin
135
+ # Get payment
136
+ data, status_code, headers = api_instance.get_check_with_http_info(check_id)
137
+ p status_code # => 2xx
138
+ p headers # => { ... }
139
+ p data # => <GetCheckResponse>
140
+ rescue Checkbook::ApiError => e
141
+ puts "Error when calling Payment->get_check_with_http_info: #{e}"
142
+ end
143
+ ```
144
+
145
+ ### Parameters
146
+
147
+ | Name | Type | Description | Notes |
148
+ | ---- | ---- | ----------- | ----- |
149
+ | **check_id** | **String** | | |
150
+
151
+ ### Return type
152
+
153
+ [**GetCheckResponse**](GetCheckResponse.md)
154
+
155
+ ### Authorization
156
+
157
+ [token](../README.md#token)
158
+
159
+ ### HTTP request headers
160
+
161
+ - **Content-Type**: Not defined
162
+ - **Accept**: application/json
163
+
164
+
165
+ ## get_check_attachment
166
+
167
+ > File get_check_attachment(check_id)
168
+
169
+ Get attachment for a payment
170
+
171
+ Get the attachment for a payment
172
+
173
+ ### Examples
174
+
175
+ ```ruby
176
+ require 'time'
177
+ require 'checkbook'
178
+ # setup authorization
179
+ Checkbook.configure do |config|
180
+ # Configure API key authorization: token
181
+ config.api_key['Authorization'] = 'YOUR API KEY'
182
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
183
+ # config.api_key_prefix['Authorization'] = 'Bearer'
184
+ end
185
+
186
+ api_instance = Checkbook::Payment.new
187
+ check_id = 'check_id_example' # String |
188
+
189
+ begin
190
+ # Get attachment for a payment
191
+ result = api_instance.get_check_attachment(check_id)
192
+ p result
193
+ rescue Checkbook::ApiError => e
194
+ puts "Error when calling Payment->get_check_attachment: #{e}"
195
+ end
196
+ ```
197
+
198
+ #### Using the get_check_attachment_with_http_info variant
199
+
200
+ This returns an Array which contains the response data, status code and headers.
201
+
202
+ > <Array(File, Integer, Hash)> get_check_attachment_with_http_info(check_id)
203
+
204
+ ```ruby
205
+ begin
206
+ # Get attachment for a payment
207
+ data, status_code, headers = api_instance.get_check_attachment_with_http_info(check_id)
208
+ p status_code # => 2xx
209
+ p headers # => { ... }
210
+ p data # => File
211
+ rescue Checkbook::ApiError => e
212
+ puts "Error when calling Payment->get_check_attachment_with_http_info: #{e}"
213
+ end
214
+ ```
215
+
216
+ ### Parameters
217
+
218
+ | Name | Type | Description | Notes |
219
+ | ---- | ---- | ----------- | ----- |
220
+ | **check_id** | **String** | | |
221
+
222
+ ### Return type
223
+
224
+ **File**
225
+
226
+ ### Authorization
227
+
228
+ [token](../README.md#token)
229
+
230
+ ### HTTP request headers
231
+
232
+ - **Content-Type**: Not defined
233
+ - **Accept**: application/pdf, application/json
234
+
235
+
236
+ ## get_check_deposit
237
+
238
+ > <GetCheckDepositedResponse> get_check_deposit(check_id)
239
+
240
+ Get deposit details
241
+
242
+ Get details on a deposited payment
243
+
244
+ ### Examples
245
+
246
+ ```ruby
247
+ require 'time'
248
+ require 'checkbook'
249
+ # setup authorization
250
+ Checkbook.configure do |config|
251
+ # Configure API key authorization: token
252
+ config.api_key['Authorization'] = 'YOUR API KEY'
253
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
254
+ # config.api_key_prefix['Authorization'] = 'Bearer'
255
+ end
256
+
257
+ api_instance = Checkbook::Payment.new
258
+ check_id = 'check_id_example' # String |
259
+
260
+ begin
261
+ # Get deposit details
262
+ result = api_instance.get_check_deposit(check_id)
263
+ p result
264
+ rescue Checkbook::ApiError => e
265
+ puts "Error when calling Payment->get_check_deposit: #{e}"
266
+ end
267
+ ```
268
+
269
+ #### Using the get_check_deposit_with_http_info variant
270
+
271
+ This returns an Array which contains the response data, status code and headers.
272
+
273
+ > <Array(<GetCheckDepositedResponse>, Integer, Hash)> get_check_deposit_with_http_info(check_id)
274
+
275
+ ```ruby
276
+ begin
277
+ # Get deposit details
278
+ data, status_code, headers = api_instance.get_check_deposit_with_http_info(check_id)
279
+ p status_code # => 2xx
280
+ p headers # => { ... }
281
+ p data # => <GetCheckDepositedResponse>
282
+ rescue Checkbook::ApiError => e
283
+ puts "Error when calling Payment->get_check_deposit_with_http_info: #{e}"
284
+ end
285
+ ```
286
+
287
+ ### Parameters
288
+
289
+ | Name | Type | Description | Notes |
290
+ | ---- | ---- | ----------- | ----- |
291
+ | **check_id** | **String** | | |
292
+
293
+ ### Return type
294
+
295
+ [**GetCheckDepositedResponse**](GetCheckDepositedResponse.md)
296
+
297
+ ### Authorization
298
+
299
+ [token](../README.md#token)
300
+
301
+ ### HTTP request headers
302
+
303
+ - **Content-Type**: Not defined
304
+ - **Accept**: application/json
305
+
306
+
307
+ ## get_check_fail
308
+
309
+ > <GetCheckFailedResponse> get_check_fail(check_id)
310
+
311
+ Get details on failed payment
312
+
313
+ Get details on a failed payment
314
+
315
+ ### Examples
316
+
317
+ ```ruby
318
+ require 'time'
319
+ require 'checkbook'
320
+ # setup authorization
321
+ Checkbook.configure do |config|
322
+ # Configure API key authorization: token
323
+ config.api_key['Authorization'] = 'YOUR API KEY'
324
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
325
+ # config.api_key_prefix['Authorization'] = 'Bearer'
326
+ end
327
+
328
+ api_instance = Checkbook::Payment.new
329
+ check_id = 'check_id_example' # String |
330
+
331
+ begin
332
+ # Get details on failed payment
333
+ result = api_instance.get_check_fail(check_id)
334
+ p result
335
+ rescue Checkbook::ApiError => e
336
+ puts "Error when calling Payment->get_check_fail: #{e}"
337
+ end
338
+ ```
339
+
340
+ #### Using the get_check_fail_with_http_info variant
341
+
342
+ This returns an Array which contains the response data, status code and headers.
343
+
344
+ > <Array(<GetCheckFailedResponse>, Integer, Hash)> get_check_fail_with_http_info(check_id)
345
+
346
+ ```ruby
347
+ begin
348
+ # Get details on failed payment
349
+ data, status_code, headers = api_instance.get_check_fail_with_http_info(check_id)
350
+ p status_code # => 2xx
351
+ p headers # => { ... }
352
+ p data # => <GetCheckFailedResponse>
353
+ rescue Checkbook::ApiError => e
354
+ puts "Error when calling Payment->get_check_fail_with_http_info: #{e}"
355
+ end
356
+ ```
357
+
358
+ ### Parameters
359
+
360
+ | Name | Type | Description | Notes |
361
+ | ---- | ---- | ----------- | ----- |
362
+ | **check_id** | **String** | | |
363
+
364
+ ### Return type
365
+
366
+ [**GetCheckFailedResponse**](GetCheckFailedResponse.md)
367
+
368
+ ### Authorization
369
+
370
+ [token](../README.md#token)
371
+
372
+ ### HTTP request headers
373
+
374
+ - **Content-Type**: Not defined
375
+ - **Accept**: application/json
376
+
377
+
378
+ ## get_check_tracking
379
+
380
+ > <GetCheckTrackingResponseExpress> get_check_tracking(check_id)
381
+
382
+ Get tracking details on mailed check
383
+
384
+ Get tracking details on a mailed check
385
+
386
+ ### Examples
387
+
388
+ ```ruby
389
+ require 'time'
390
+ require 'checkbook'
391
+ # setup authorization
392
+ Checkbook.configure do |config|
393
+ # Configure API key authorization: token
394
+ config.api_key['Authorization'] = 'YOUR API KEY'
395
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
396
+ # config.api_key_prefix['Authorization'] = 'Bearer'
397
+ end
398
+
399
+ api_instance = Checkbook::Payment.new
400
+ check_id = 'check_id_example' # String |
401
+
402
+ begin
403
+ # Get tracking details on mailed check
404
+ result = api_instance.get_check_tracking(check_id)
405
+ p result
406
+ rescue Checkbook::ApiError => e
407
+ puts "Error when calling Payment->get_check_tracking: #{e}"
408
+ end
409
+ ```
410
+
411
+ #### Using the get_check_tracking_with_http_info variant
412
+
413
+ This returns an Array which contains the response data, status code and headers.
414
+
415
+ > <Array(<GetCheckTrackingResponseExpress>, Integer, Hash)> get_check_tracking_with_http_info(check_id)
416
+
417
+ ```ruby
418
+ begin
419
+ # Get tracking details on mailed check
420
+ data, status_code, headers = api_instance.get_check_tracking_with_http_info(check_id)
421
+ p status_code # => 2xx
422
+ p headers # => { ... }
423
+ p data # => <GetCheckTrackingResponseExpress>
424
+ rescue Checkbook::ApiError => e
425
+ puts "Error when calling Payment->get_check_tracking_with_http_info: #{e}"
426
+ end
427
+ ```
428
+
429
+ ### Parameters
430
+
431
+ | Name | Type | Description | Notes |
432
+ | ---- | ---- | ----------- | ----- |
433
+ | **check_id** | **String** | | |
434
+
435
+ ### Return type
436
+
437
+ [**GetCheckTrackingResponseExpress**](GetCheckTrackingResponseExpress.md)
438
+
439
+ ### Authorization
440
+
441
+ [token](../README.md#token)
442
+
443
+ ### HTTP request headers
444
+
445
+ - **Content-Type**: Not defined
446
+ - **Accept**: application/json
447
+
448
+
449
+ ## get_check_verification
450
+
451
+ > <VerifyCheckResponse> get_check_verification(check_id)
452
+
453
+ Get verification code
454
+
455
+ Get the verification code
456
+
457
+ ### Examples
458
+
459
+ ```ruby
460
+ require 'time'
461
+ require 'checkbook'
462
+ # setup authorization
463
+ Checkbook.configure do |config|
464
+ # Configure API key authorization: token
465
+ config.api_key['Authorization'] = 'YOUR API KEY'
466
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
467
+ # config.api_key_prefix['Authorization'] = 'Bearer'
468
+ end
469
+
470
+ api_instance = Checkbook::Payment.new
471
+ check_id = 'check_id_example' # String |
472
+
473
+ begin
474
+ # Get verification code
475
+ result = api_instance.get_check_verification(check_id)
476
+ p result
477
+ rescue Checkbook::ApiError => e
478
+ puts "Error when calling Payment->get_check_verification: #{e}"
479
+ end
480
+ ```
481
+
482
+ #### Using the get_check_verification_with_http_info variant
483
+
484
+ This returns an Array which contains the response data, status code and headers.
485
+
486
+ > <Array(<VerifyCheckResponse>, Integer, Hash)> get_check_verification_with_http_info(check_id)
487
+
488
+ ```ruby
489
+ begin
490
+ # Get verification code
491
+ data, status_code, headers = api_instance.get_check_verification_with_http_info(check_id)
492
+ p status_code # => 2xx
493
+ p headers # => { ... }
494
+ p data # => <VerifyCheckResponse>
495
+ rescue Checkbook::ApiError => e
496
+ puts "Error when calling Payment->get_check_verification_with_http_info: #{e}"
497
+ end
498
+ ```
499
+
500
+ ### Parameters
501
+
502
+ | Name | Type | Description | Notes |
503
+ | ---- | ---- | ----------- | ----- |
504
+ | **check_id** | **String** | | |
505
+
506
+ ### Return type
507
+
508
+ [**VerifyCheckResponse**](VerifyCheckResponse.md)
509
+
510
+ ### Authorization
511
+
512
+ [token](../README.md#token)
513
+
514
+ ### HTTP request headers
515
+
516
+ - **Content-Type**: Not defined
517
+ - **Accept**: application/json
518
+
519
+
520
+ ## get_checks
521
+
522
+ > <GetChecksResponse> get_checks(opts)
523
+
524
+ Get sent/received payments
525
+
526
+ Return the sent/received payments
527
+
528
+ ### Examples
529
+
530
+ ```ruby
531
+ require 'time'
532
+ require 'checkbook'
533
+ # setup authorization
534
+ Checkbook.configure do |config|
535
+ # Configure API key authorization: token
536
+ config.api_key['Authorization'] = 'YOUR API KEY'
537
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
538
+ # config.api_key_prefix['Authorization'] = 'Bearer'
539
+ end
540
+
541
+ api_instance = Checkbook::Payment.new
542
+ opts = {
543
+ direction: 'INCOMING', # String | Direction
544
+ end_date: Date.parse('2013-10-20'), # Date | End date
545
+ page: 1, # Integer | Page number
546
+ per_page: 10, # Integer | Items per page
547
+ q: 'payment', # String | Query
548
+ sort: '+NUMBER', # String | Sort
549
+ start_date: Date.parse('2013-10-20'), # Date | Start date
550
+ status: 'PAID' # String | Status
551
+ }
552
+
553
+ begin
554
+ # Get sent/received payments
555
+ result = api_instance.get_checks(opts)
556
+ p result
557
+ rescue Checkbook::ApiError => e
558
+ puts "Error when calling Payment->get_checks: #{e}"
559
+ end
560
+ ```
561
+
562
+ #### Using the get_checks_with_http_info variant
563
+
564
+ This returns an Array which contains the response data, status code and headers.
565
+
566
+ > <Array(<GetChecksResponse>, Integer, Hash)> get_checks_with_http_info(opts)
567
+
568
+ ```ruby
569
+ begin
570
+ # Get sent/received payments
571
+ data, status_code, headers = api_instance.get_checks_with_http_info(opts)
572
+ p status_code # => 2xx
573
+ p headers # => { ... }
574
+ p data # => <GetChecksResponse>
575
+ rescue Checkbook::ApiError => e
576
+ puts "Error when calling Payment->get_checks_with_http_info: #{e}"
577
+ end
578
+ ```
579
+
580
+ ### Parameters
581
+
582
+ | Name | Type | Description | Notes |
583
+ | ---- | ---- | ----------- | ----- |
584
+ | **direction** | **String** | Direction | [optional] |
585
+ | **end_date** | **Date** | End date | [optional] |
586
+ | **page** | **Integer** | Page number | [optional][default to 1] |
587
+ | **per_page** | **Integer** | Items per page | [optional][default to 50] |
588
+ | **q** | **String** | Query | [optional] |
589
+ | **sort** | **String** | Sort | [optional] |
590
+ | **start_date** | **Date** | Start date | [optional] |
591
+ | **status** | **String** | Status | [optional] |
592
+
593
+ ### Return type
594
+
595
+ [**GetChecksResponse**](GetChecksResponse.md)
596
+
597
+ ### Authorization
598
+
599
+ [token](../README.md#token)
600
+
601
+ ### HTTP request headers
602
+
603
+ - **Content-Type**: Not defined
604
+ - **Accept**: application/json
605
+
606
+
607
+ ## post_check_deposit
608
+
609
+ > <GetCheckResponse> post_check_deposit(check_id, deposit_check_request)
610
+
611
+ Deposit a payment
612
+
613
+ Deposit a payment
614
+
615
+ ### Examples
616
+
617
+ ```ruby
618
+ require 'time'
619
+ require 'checkbook'
620
+ # setup authorization
621
+ Checkbook.configure do |config|
622
+ # Configure API key authorization: token
623
+ config.api_key['Authorization'] = 'YOUR API KEY'
624
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
625
+ # config.api_key_prefix['Authorization'] = 'Bearer'
626
+ end
627
+
628
+ api_instance = Checkbook::Payment.new
629
+ check_id = 'check_id_example' # String |
630
+ deposit_check_request = Checkbook::DepositCheckRequest.new({account: 'account_example'}) # DepositCheckRequest |
631
+
632
+ begin
633
+ # Deposit a payment
634
+ result = api_instance.post_check_deposit(check_id, deposit_check_request)
635
+ p result
636
+ rescue Checkbook::ApiError => e
637
+ puts "Error when calling Payment->post_check_deposit: #{e}"
638
+ end
639
+ ```
640
+
641
+ #### Using the post_check_deposit_with_http_info variant
642
+
643
+ This returns an Array which contains the response data, status code and headers.
644
+
645
+ > <Array(<GetCheckResponse>, Integer, Hash)> post_check_deposit_with_http_info(check_id, deposit_check_request)
646
+
647
+ ```ruby
648
+ begin
649
+ # Deposit a payment
650
+ data, status_code, headers = api_instance.post_check_deposit_with_http_info(check_id, deposit_check_request)
651
+ p status_code # => 2xx
652
+ p headers # => { ... }
653
+ p data # => <GetCheckResponse>
654
+ rescue Checkbook::ApiError => e
655
+ puts "Error when calling Payment->post_check_deposit_with_http_info: #{e}"
656
+ end
657
+ ```
658
+
659
+ ### Parameters
660
+
661
+ | Name | Type | Description | Notes |
662
+ | ---- | ---- | ----------- | ----- |
663
+ | **check_id** | **String** | | |
664
+ | **deposit_check_request** | [**DepositCheckRequest**](DepositCheckRequest.md) | | |
665
+
666
+ ### Return type
667
+
668
+ [**GetCheckResponse**](GetCheckResponse.md)
669
+
670
+ ### Authorization
671
+
672
+ [token](../README.md#token)
673
+
674
+ ### HTTP request headers
675
+
676
+ - **Content-Type**: application/json
677
+ - **Accept**: application/json
678
+
679
+
680
+ ## post_check_digital
681
+
682
+ > <GetCheckResponse> post_check_digital(create_digital_check_request)
683
+
684
+ Create a digital payment
685
+
686
+ Create a digital payment > [!NOTE] > **Common Errors** > > - **`Invalid deposit option`:** If deposit options do not include `PRINT`, `MAIL`, or `BANK`, please ensure the payment is funded by a wallet. If you still encounter this error, please contact support@checkbook.io to ensure the specified payment rails are enabled for your account. > - **`Amount is larger than $2000 and requires signature`:** Please add a signature to the sender using [`v3/user/signature`](#tag/user/post/v3/user/signature). A signature is required for users to send out payments over $2000.
687
+
688
+ ### Examples
689
+
690
+ ```ruby
691
+ require 'time'
692
+ require 'checkbook'
693
+ # setup authorization
694
+ Checkbook.configure do |config|
695
+ # Configure API key authorization: token
696
+ config.api_key['Authorization'] = 'YOUR API KEY'
697
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
698
+ # config.api_key_prefix['Authorization'] = 'Bearer'
699
+ end
700
+
701
+ api_instance = Checkbook::Payment.new
702
+ create_digital_check_request = Checkbook::CreateDigitalCheckRequest.new({amount: 5.23, name: 'Widgets Inc.', recipient: Checkbook::DigitalRecipient.new({id: 'id_example'})}) # CreateDigitalCheckRequest |
703
+
704
+ begin
705
+ # Create a digital payment
706
+ result = api_instance.post_check_digital(create_digital_check_request)
707
+ p result
708
+ rescue Checkbook::ApiError => e
709
+ puts "Error when calling Payment->post_check_digital: #{e}"
710
+ end
711
+ ```
712
+
713
+ #### Using the post_check_digital_with_http_info variant
714
+
715
+ This returns an Array which contains the response data, status code and headers.
716
+
717
+ > <Array(<GetCheckResponse>, Integer, Hash)> post_check_digital_with_http_info(create_digital_check_request)
718
+
719
+ ```ruby
720
+ begin
721
+ # Create a digital payment
722
+ data, status_code, headers = api_instance.post_check_digital_with_http_info(create_digital_check_request)
723
+ p status_code # => 2xx
724
+ p headers # => { ... }
725
+ p data # => <GetCheckResponse>
726
+ rescue Checkbook::ApiError => e
727
+ puts "Error when calling Payment->post_check_digital_with_http_info: #{e}"
728
+ end
729
+ ```
730
+
731
+ ### Parameters
732
+
733
+ | Name | Type | Description | Notes |
734
+ | ---- | ---- | ----------- | ----- |
735
+ | **create_digital_check_request** | [**CreateDigitalCheckRequest**](CreateDigitalCheckRequest.md) | | |
736
+
737
+ ### Return type
738
+
739
+ [**GetCheckResponse**](GetCheckResponse.md)
740
+
741
+ ### Authorization
742
+
743
+ [token](../README.md#token)
744
+
745
+ ### HTTP request headers
746
+
747
+ - **Content-Type**: application/json
748
+ - **Accept**: application/json
749
+
750
+
751
+ ## post_check_endorse
752
+
753
+ > post_check_endorse(check_id, endorse_check_request)
754
+
755
+ Endorse a multi-party payment
756
+
757
+ Endorse a multi party payment
758
+
759
+ ### Examples
760
+
761
+ ```ruby
762
+ require 'time'
763
+ require 'checkbook'
764
+ # setup authorization
765
+ Checkbook.configure do |config|
766
+ # Configure API key authorization: token
767
+ config.api_key['Authorization'] = 'YOUR API KEY'
768
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
769
+ # config.api_key_prefix['Authorization'] = 'Bearer'
770
+ end
771
+
772
+ api_instance = Checkbook::Payment.new
773
+ check_id = 'check_id_example' # String |
774
+ endorse_check_request = Checkbook::EndorseCheckRequest.new({name: 'Johnny Appleseed'}) # EndorseCheckRequest |
775
+
776
+ begin
777
+ # Endorse a multi-party payment
778
+ api_instance.post_check_endorse(check_id, endorse_check_request)
779
+ rescue Checkbook::ApiError => e
780
+ puts "Error when calling Payment->post_check_endorse: #{e}"
781
+ end
782
+ ```
783
+
784
+ #### Using the post_check_endorse_with_http_info variant
785
+
786
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
787
+
788
+ > <Array(nil, Integer, Hash)> post_check_endorse_with_http_info(check_id, endorse_check_request)
789
+
790
+ ```ruby
791
+ begin
792
+ # Endorse a multi-party payment
793
+ data, status_code, headers = api_instance.post_check_endorse_with_http_info(check_id, endorse_check_request)
794
+ p status_code # => 2xx
795
+ p headers # => { ... }
796
+ p data # => nil
797
+ rescue Checkbook::ApiError => e
798
+ puts "Error when calling Payment->post_check_endorse_with_http_info: #{e}"
799
+ end
800
+ ```
801
+
802
+ ### Parameters
803
+
804
+ | Name | Type | Description | Notes |
805
+ | ---- | ---- | ----------- | ----- |
806
+ | **check_id** | **String** | | |
807
+ | **endorse_check_request** | [**EndorseCheckRequest**](EndorseCheckRequest.md) | | |
808
+
809
+ ### Return type
810
+
811
+ nil (empty response body)
812
+
813
+ ### Authorization
814
+
815
+ [token](../README.md#token)
816
+
817
+ ### HTTP request headers
818
+
819
+ - **Content-Type**: application/json
820
+ - **Accept**: application/json
821
+
822
+
823
+ ## post_check_multi
824
+
825
+ > <GetCheckResponse> post_check_multi(create_multi_check_request)
826
+
827
+ Create a multi-party payment
828
+
829
+ Create a new multi party payment
830
+
831
+ ### Examples
832
+
833
+ ```ruby
834
+ require 'time'
835
+ require 'checkbook'
836
+ # setup authorization
837
+ Checkbook.configure do |config|
838
+ # Configure API key authorization: token
839
+ config.api_key['Authorization'] = 'YOUR API KEY'
840
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
841
+ # config.api_key_prefix['Authorization'] = 'Bearer'
842
+ end
843
+
844
+ api_instance = Checkbook::Payment.new
845
+ create_multi_check_request = Checkbook::CreateMultiCheckRequest.new({amount: 5.23, recipients: [Checkbook::MultiRecipient.new({name: 'Widgets Inc.', recipient: 'testing@example.com or user_id'})]}) # CreateMultiCheckRequest |
846
+
847
+ begin
848
+ # Create a multi-party payment
849
+ result = api_instance.post_check_multi(create_multi_check_request)
850
+ p result
851
+ rescue Checkbook::ApiError => e
852
+ puts "Error when calling Payment->post_check_multi: #{e}"
853
+ end
854
+ ```
855
+
856
+ #### Using the post_check_multi_with_http_info variant
857
+
858
+ This returns an Array which contains the response data, status code and headers.
859
+
860
+ > <Array(<GetCheckResponse>, Integer, Hash)> post_check_multi_with_http_info(create_multi_check_request)
861
+
862
+ ```ruby
863
+ begin
864
+ # Create a multi-party payment
865
+ data, status_code, headers = api_instance.post_check_multi_with_http_info(create_multi_check_request)
866
+ p status_code # => 2xx
867
+ p headers # => { ... }
868
+ p data # => <GetCheckResponse>
869
+ rescue Checkbook::ApiError => e
870
+ puts "Error when calling Payment->post_check_multi_with_http_info: #{e}"
871
+ end
872
+ ```
873
+
874
+ ### Parameters
875
+
876
+ | Name | Type | Description | Notes |
877
+ | ---- | ---- | ----------- | ----- |
878
+ | **create_multi_check_request** | [**CreateMultiCheckRequest**](CreateMultiCheckRequest.md) | | |
879
+
880
+ ### Return type
881
+
882
+ [**GetCheckResponse**](GetCheckResponse.md)
883
+
884
+ ### Authorization
885
+
886
+ [token](../README.md#token)
887
+
888
+ ### HTTP request headers
889
+
890
+ - **Content-Type**: application/json
891
+ - **Accept**: application/json
892
+
893
+
894
+ ## post_check_notify
895
+
896
+ > post_check_notify(check_id)
897
+
898
+ Resend payment notification
899
+
900
+ Resend payment notification
901
+
902
+ ### Examples
903
+
904
+ ```ruby
905
+ require 'time'
906
+ require 'checkbook'
907
+ # setup authorization
908
+ Checkbook.configure do |config|
909
+ # Configure API key authorization: token
910
+ config.api_key['Authorization'] = 'YOUR API KEY'
911
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
912
+ # config.api_key_prefix['Authorization'] = 'Bearer'
913
+ end
914
+
915
+ api_instance = Checkbook::Payment.new
916
+ check_id = 'check_id_example' # String |
917
+
918
+ begin
919
+ # Resend payment notification
920
+ api_instance.post_check_notify(check_id)
921
+ rescue Checkbook::ApiError => e
922
+ puts "Error when calling Payment->post_check_notify: #{e}"
923
+ end
924
+ ```
925
+
926
+ #### Using the post_check_notify_with_http_info variant
927
+
928
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
929
+
930
+ > <Array(nil, Integer, Hash)> post_check_notify_with_http_info(check_id)
931
+
932
+ ```ruby
933
+ begin
934
+ # Resend payment notification
935
+ data, status_code, headers = api_instance.post_check_notify_with_http_info(check_id)
936
+ p status_code # => 2xx
937
+ p headers # => { ... }
938
+ p data # => nil
939
+ rescue Checkbook::ApiError => e
940
+ puts "Error when calling Payment->post_check_notify_with_http_info: #{e}"
941
+ end
942
+ ```
943
+
944
+ ### Parameters
945
+
946
+ | Name | Type | Description | Notes |
947
+ | ---- | ---- | ----------- | ----- |
948
+ | **check_id** | **String** | | |
949
+
950
+ ### Return type
951
+
952
+ nil (empty response body)
953
+
954
+ ### Authorization
955
+
956
+ [token](../README.md#token)
957
+
958
+ ### HTTP request headers
959
+
960
+ - **Content-Type**: Not defined
961
+ - **Accept**: application/json
962
+
963
+
964
+ ## post_check_physical
965
+
966
+ > <GetCheckResponse> post_check_physical(create_physical_check_request)
967
+
968
+ Create a physical check
969
+
970
+ Create a new paper check
971
+
972
+ ### Examples
973
+
974
+ ```ruby
975
+ require 'time'
976
+ require 'checkbook'
977
+ # setup authorization
978
+ Checkbook.configure do |config|
979
+ # Configure API key authorization: token
980
+ config.api_key['Authorization'] = 'YOUR API KEY'
981
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
982
+ # config.api_key_prefix['Authorization'] = 'Bearer'
983
+ end
984
+
985
+ api_instance = Checkbook::Payment.new
986
+ create_physical_check_request = Checkbook::CreatePhysicalCheckRequest.new({amount: 5.23, name: 'Widgets Inc.', recipient: Checkbook::PhysicalCheckRecipient.new({city: 'Scranton', line_1: '1234 N. 1st Street', state: 'PA', zip: '55555'})}) # CreatePhysicalCheckRequest |
987
+
988
+ begin
989
+ # Create a physical check
990
+ result = api_instance.post_check_physical(create_physical_check_request)
991
+ p result
992
+ rescue Checkbook::ApiError => e
993
+ puts "Error when calling Payment->post_check_physical: #{e}"
994
+ end
995
+ ```
996
+
997
+ #### Using the post_check_physical_with_http_info variant
998
+
999
+ This returns an Array which contains the response data, status code and headers.
1000
+
1001
+ > <Array(<GetCheckResponse>, Integer, Hash)> post_check_physical_with_http_info(create_physical_check_request)
1002
+
1003
+ ```ruby
1004
+ begin
1005
+ # Create a physical check
1006
+ data, status_code, headers = api_instance.post_check_physical_with_http_info(create_physical_check_request)
1007
+ p status_code # => 2xx
1008
+ p headers # => { ... }
1009
+ p data # => <GetCheckResponse>
1010
+ rescue Checkbook::ApiError => e
1011
+ puts "Error when calling Payment->post_check_physical_with_http_info: #{e}"
1012
+ end
1013
+ ```
1014
+
1015
+ ### Parameters
1016
+
1017
+ | Name | Type | Description | Notes |
1018
+ | ---- | ---- | ----------- | ----- |
1019
+ | **create_physical_check_request** | [**CreatePhysicalCheckRequest**](CreatePhysicalCheckRequest.md) | | |
1020
+
1021
+ ### Return type
1022
+
1023
+ [**GetCheckResponse**](GetCheckResponse.md)
1024
+
1025
+ ### Authorization
1026
+
1027
+ [token](../README.md#token)
1028
+
1029
+ ### HTTP request headers
1030
+
1031
+ - **Content-Type**: application/json
1032
+ - **Accept**: application/json
1033
+
1034
+
1035
+ ## post_check_preview
1036
+
1037
+ > <PreviewCheckResponse> post_check_preview(preview_check_request)
1038
+
1039
+ Preview payment
1040
+
1041
+ Preview a new payment
1042
+
1043
+ ### Examples
1044
+
1045
+ ```ruby
1046
+ require 'time'
1047
+ require 'checkbook'
1048
+ # setup authorization
1049
+ Checkbook.configure do |config|
1050
+ # Configure API key authorization: token
1051
+ config.api_key['Authorization'] = 'YOUR API KEY'
1052
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1053
+ # config.api_key_prefix['Authorization'] = 'Bearer'
1054
+ end
1055
+
1056
+ api_instance = Checkbook::Payment.new
1057
+ preview_check_request = Checkbook::PreviewCheckRequest.new({amount: 3.56, name: 'Widgets Inc.'}) # PreviewCheckRequest |
1058
+
1059
+ begin
1060
+ # Preview payment
1061
+ result = api_instance.post_check_preview(preview_check_request)
1062
+ p result
1063
+ rescue Checkbook::ApiError => e
1064
+ puts "Error when calling Payment->post_check_preview: #{e}"
1065
+ end
1066
+ ```
1067
+
1068
+ #### Using the post_check_preview_with_http_info variant
1069
+
1070
+ This returns an Array which contains the response data, status code and headers.
1071
+
1072
+ > <Array(<PreviewCheckResponse>, Integer, Hash)> post_check_preview_with_http_info(preview_check_request)
1073
+
1074
+ ```ruby
1075
+ begin
1076
+ # Preview payment
1077
+ data, status_code, headers = api_instance.post_check_preview_with_http_info(preview_check_request)
1078
+ p status_code # => 2xx
1079
+ p headers # => { ... }
1080
+ p data # => <PreviewCheckResponse>
1081
+ rescue Checkbook::ApiError => e
1082
+ puts "Error when calling Payment->post_check_preview_with_http_info: #{e}"
1083
+ end
1084
+ ```
1085
+
1086
+ ### Parameters
1087
+
1088
+ | Name | Type | Description | Notes |
1089
+ | ---- | ---- | ----------- | ----- |
1090
+ | **preview_check_request** | [**PreviewCheckRequest**](PreviewCheckRequest.md) | | |
1091
+
1092
+ ### Return type
1093
+
1094
+ [**PreviewCheckResponse**](PreviewCheckResponse.md)
1095
+
1096
+ ### Authorization
1097
+
1098
+ [token](../README.md#token)
1099
+
1100
+ ### HTTP request headers
1101
+
1102
+ - **Content-Type**: application/json
1103
+ - **Accept**: application/json
1104
+
1105
+
1106
+ ## post_check_print
1107
+
1108
+ > File post_check_print(check_id)
1109
+
1110
+ Print a payment
1111
+
1112
+ Print a check
1113
+
1114
+ ### Examples
1115
+
1116
+ ```ruby
1117
+ require 'time'
1118
+ require 'checkbook'
1119
+ # setup authorization
1120
+ Checkbook.configure do |config|
1121
+ # Configure API key authorization: token
1122
+ config.api_key['Authorization'] = 'YOUR API KEY'
1123
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1124
+ # config.api_key_prefix['Authorization'] = 'Bearer'
1125
+ end
1126
+
1127
+ api_instance = Checkbook::Payment.new
1128
+ check_id = 'check_id_example' # String |
1129
+
1130
+ begin
1131
+ # Print a payment
1132
+ result = api_instance.post_check_print(check_id)
1133
+ p result
1134
+ rescue Checkbook::ApiError => e
1135
+ puts "Error when calling Payment->post_check_print: #{e}"
1136
+ end
1137
+ ```
1138
+
1139
+ #### Using the post_check_print_with_http_info variant
1140
+
1141
+ This returns an Array which contains the response data, status code and headers.
1142
+
1143
+ > <Array(File, Integer, Hash)> post_check_print_with_http_info(check_id)
1144
+
1145
+ ```ruby
1146
+ begin
1147
+ # Print a payment
1148
+ data, status_code, headers = api_instance.post_check_print_with_http_info(check_id)
1149
+ p status_code # => 2xx
1150
+ p headers # => { ... }
1151
+ p data # => File
1152
+ rescue Checkbook::ApiError => e
1153
+ puts "Error when calling Payment->post_check_print_with_http_info: #{e}"
1154
+ end
1155
+ ```
1156
+
1157
+ ### Parameters
1158
+
1159
+ | Name | Type | Description | Notes |
1160
+ | ---- | ---- | ----------- | ----- |
1161
+ | **check_id** | **String** | | |
1162
+
1163
+ ### Return type
1164
+
1165
+ **File**
1166
+
1167
+ ### Authorization
1168
+
1169
+ [token](../README.md#token)
1170
+
1171
+ ### HTTP request headers
1172
+
1173
+ - **Content-Type**: Not defined
1174
+ - **Accept**: application/pdf, application/json
1175
+
1176
+
1177
+ ## post_check_webhook
1178
+
1179
+ > post_check_webhook(check_id, trigger_webhook_request)
1180
+
1181
+ Update a sandbox payment status
1182
+
1183
+ Update a payment's status in sandbox. Triggers a sandbox check webhook notification.
1184
+
1185
+ ### Examples
1186
+
1187
+ ```ruby
1188
+ require 'time'
1189
+ require 'checkbook'
1190
+ # setup authorization
1191
+ Checkbook.configure do |config|
1192
+ # Configure API key authorization: token
1193
+ config.api_key['Authorization'] = 'YOUR API KEY'
1194
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1195
+ # config.api_key_prefix['Authorization'] = 'Bearer'
1196
+ end
1197
+
1198
+ api_instance = Checkbook::Payment.new
1199
+ check_id = 'check_id_example' # String |
1200
+ trigger_webhook_request = Checkbook::TriggerWebhookRequest.new({status: 'PAID'}) # TriggerWebhookRequest |
1201
+
1202
+ begin
1203
+ # Update a sandbox payment status
1204
+ api_instance.post_check_webhook(check_id, trigger_webhook_request)
1205
+ rescue Checkbook::ApiError => e
1206
+ puts "Error when calling Payment->post_check_webhook: #{e}"
1207
+ end
1208
+ ```
1209
+
1210
+ #### Using the post_check_webhook_with_http_info variant
1211
+
1212
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
1213
+
1214
+ > <Array(nil, Integer, Hash)> post_check_webhook_with_http_info(check_id, trigger_webhook_request)
1215
+
1216
+ ```ruby
1217
+ begin
1218
+ # Update a sandbox payment status
1219
+ data, status_code, headers = api_instance.post_check_webhook_with_http_info(check_id, trigger_webhook_request)
1220
+ p status_code # => 2xx
1221
+ p headers # => { ... }
1222
+ p data # => nil
1223
+ rescue Checkbook::ApiError => e
1224
+ puts "Error when calling Payment->post_check_webhook_with_http_info: #{e}"
1225
+ end
1226
+ ```
1227
+
1228
+ ### Parameters
1229
+
1230
+ | Name | Type | Description | Notes |
1231
+ | ---- | ---- | ----------- | ----- |
1232
+ | **check_id** | **String** | | |
1233
+ | **trigger_webhook_request** | [**TriggerWebhookRequest**](TriggerWebhookRequest.md) | | |
1234
+
1235
+ ### Return type
1236
+
1237
+ nil (empty response body)
1238
+
1239
+ ### Authorization
1240
+
1241
+ [token](../README.md#token)
1242
+
1243
+ ### HTTP request headers
1244
+
1245
+ - **Content-Type**: application/json
1246
+ - **Accept**: application/json
1247
+