stripe 13.4.1 → 17.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 (861) hide show
  1. checksums.yaml +4 -4
  2. data/lib/stripe/api_operations/nested_resource.rb +35 -35
  3. data/lib/stripe/api_operations/request.rb +1 -0
  4. data/lib/stripe/api_operations/save.rb +2 -1
  5. data/lib/stripe/api_operations/singleton_save.rb +2 -1
  6. data/lib/stripe/api_requestor.rb +12 -4
  7. data/lib/stripe/api_resource.rb +13 -3
  8. data/lib/stripe/api_version.rb +2 -1
  9. data/lib/stripe/connection_manager.rb +1 -3
  10. data/lib/stripe/errors.rb +0 -7
  11. data/lib/stripe/event_types.rb +20 -5
  12. data/lib/stripe/events/unknown_event_notification.rb +19 -0
  13. data/lib/stripe/events/v1_billing_meter_error_report_triggered_event.rb +115 -15
  14. data/lib/stripe/events/v1_billing_meter_no_meter_found_event.rb +93 -6
  15. data/lib/stripe/events/v2_core_event_destination_ping_event.rb +44 -0
  16. data/lib/stripe/oauth.rb +1 -1
  17. data/lib/stripe/object_types.rb +11 -4
  18. data/lib/stripe/params/account_capability_list_params.rb +13 -0
  19. data/lib/stripe/params/account_capability_retrieve_params.rb +13 -0
  20. data/lib/stripe/params/account_capability_update_params.rb +18 -0
  21. data/lib/stripe/params/account_create_params.rb +2083 -0
  22. data/lib/stripe/params/account_delete_params.rb +6 -0
  23. data/lib/stripe/params/account_external_account_create_params.rb +134 -0
  24. data/lib/stripe/params/account_external_account_delete_params.rb +6 -0
  25. data/lib/stripe/params/account_external_account_list_params.rb +25 -0
  26. data/lib/stripe/params/account_external_account_retrieve_params.rb +13 -0
  27. data/lib/stripe/params/account_external_account_update_params.rb +91 -0
  28. data/lib/stripe/params/account_link_create_params.rb +52 -0
  29. data/lib/stripe/params/account_list_params.rb +42 -0
  30. data/lib/stripe/params/account_login_link_create_params.rb +13 -0
  31. data/lib/stripe/params/account_person_create_params.rb +435 -0
  32. data/lib/stripe/params/account_person_delete_params.rb +6 -0
  33. data/lib/stripe/params/account_person_list_params.rb +61 -0
  34. data/lib/stripe/params/account_person_retrieve_params.rb +13 -0
  35. data/lib/stripe/params/account_person_update_params.rb +435 -0
  36. data/lib/stripe/params/account_persons_params.rb +61 -0
  37. data/lib/stripe/params/account_reject_params.rb +16 -0
  38. data/lib/stripe/params/account_retrieve_current_params.rb +13 -0
  39. data/lib/stripe/params/account_retrieve_params.rb +13 -0
  40. data/lib/stripe/params/account_session_create_params.rb +598 -0
  41. data/lib/stripe/params/account_update_params.rb +2030 -0
  42. data/lib/stripe/params/apple_pay_domain_create_params.rb +16 -0
  43. data/lib/stripe/params/apple_pay_domain_delete_params.rb +6 -0
  44. data/lib/stripe/params/apple_pay_domain_list_params.rb +31 -0
  45. data/lib/stripe/params/apple_pay_domain_retrieve_params.rb +13 -0
  46. data/lib/stripe/params/application_fee_list_params.rb +52 -0
  47. data/lib/stripe/params/application_fee_refund_create_params.rb +19 -0
  48. data/lib/stripe/params/application_fee_refund_list_params.rb +22 -0
  49. data/lib/stripe/params/application_fee_refund_retrieve_params.rb +13 -0
  50. data/lib/stripe/params/application_fee_refund_update_params.rb +16 -0
  51. data/lib/stripe/params/application_fee_retrieve_params.rb +13 -0
  52. data/lib/stripe/params/apps/secret_create_params.rb +38 -0
  53. data/lib/stripe/params/apps/secret_delete_where_params.rb +32 -0
  54. data/lib/stripe/params/apps/secret_find_params.rb +32 -0
  55. data/lib/stripe/params/apps/secret_list_params.rb +38 -0
  56. data/lib/stripe/params/balance_retrieve_params.rb +13 -0
  57. data/lib/stripe/params/balance_settings_retrieve_params.rb +13 -0
  58. data/lib/stripe/params/balance_settings_update_params.rb +67 -0
  59. data/lib/stripe/params/balance_transaction_list_params.rb +64 -0
  60. data/lib/stripe/params/balance_transaction_retrieve_params.rb +13 -0
  61. data/lib/stripe/params/billing/alert_activate_params.rb +15 -0
  62. data/lib/stripe/params/billing/alert_archive_params.rb +15 -0
  63. data/lib/stripe/params/billing/alert_create_params.rb +52 -0
  64. data/lib/stripe/params/billing/alert_deactivate_params.rb +15 -0
  65. data/lib/stripe/params/billing/alert_list_params.rb +37 -0
  66. data/lib/stripe/params/billing/alert_retrieve_params.rb +15 -0
  67. data/lib/stripe/params/billing/credit_balance_summary_retrieve_params.rb +54 -0
  68. data/lib/stripe/params/billing/credit_balance_transaction_list_params.rb +37 -0
  69. data/lib/stripe/params/billing/credit_balance_transaction_retrieve_params.rb +15 -0
  70. data/lib/stripe/params/billing/credit_grant_create_params.rb +103 -0
  71. data/lib/stripe/params/billing/credit_grant_expire_params.rb +15 -0
  72. data/lib/stripe/params/billing/credit_grant_list_params.rb +33 -0
  73. data/lib/stripe/params/billing/credit_grant_retrieve_params.rb +15 -0
  74. data/lib/stripe/params/billing/credit_grant_update_params.rb +21 -0
  75. data/lib/stripe/params/billing/credit_grant_void_grant_params.rb +15 -0
  76. data/lib/stripe/params/billing/meter_create_params.rb +70 -0
  77. data/lib/stripe/params/billing/meter_deactivate_params.rb +15 -0
  78. data/lib/stripe/params/billing/meter_event_adjustment_create_params.rb +32 -0
  79. data/lib/stripe/params/billing/meter_event_create_params.rb +27 -0
  80. data/lib/stripe/params/billing/meter_event_summary_list_params.rb +45 -0
  81. data/lib/stripe/params/billing/meter_list_params.rb +27 -0
  82. data/lib/stripe/params/billing/meter_reactivate_params.rb +15 -0
  83. data/lib/stripe/params/billing/meter_retrieve_params.rb +15 -0
  84. data/lib/stripe/params/billing/meter_update_params.rb +18 -0
  85. data/lib/stripe/params/billing_portal/configuration_create_params.rb +225 -0
  86. data/lib/stripe/params/billing_portal/configuration_list_params.rb +37 -0
  87. data/lib/stripe/params/billing_portal/configuration_retrieve_params.rb +15 -0
  88. data/lib/stripe/params/billing_portal/configuration_update_params.rb +231 -0
  89. data/lib/stripe/params/billing_portal/session_create_params.rb +179 -0
  90. data/lib/stripe/params/charge_capture_params.rb +57 -0
  91. data/lib/stripe/params/charge_create_params.rb +172 -0
  92. data/lib/stripe/params/charge_list_params.rb +60 -0
  93. data/lib/stripe/params/charge_retrieve_params.rb +13 -0
  94. data/lib/stripe/params/charge_search_params.rb +22 -0
  95. data/lib/stripe/params/charge_update_params.rb +102 -0
  96. data/lib/stripe/params/checkout/session_create_params.rb +2445 -0
  97. data/lib/stripe/params/checkout/session_expire_params.rb +15 -0
  98. data/lib/stripe/params/checkout/session_line_item_list_params.rb +24 -0
  99. data/lib/stripe/params/checkout/session_list_line_items_params.rb +24 -0
  100. data/lib/stripe/params/checkout/session_list_params.rb +83 -0
  101. data/lib/stripe/params/checkout/session_retrieve_params.rb +15 -0
  102. data/lib/stripe/params/checkout/session_update_params.rb +179 -0
  103. data/lib/stripe/params/climate/order_cancel_params.rb +15 -0
  104. data/lib/stripe/params/climate/order_create_params.rb +49 -0
  105. data/lib/stripe/params/climate/order_list_params.rb +24 -0
  106. data/lib/stripe/params/climate/order_retrieve_params.rb +15 -0
  107. data/lib/stripe/params/climate/order_update_params.rb +29 -0
  108. data/lib/stripe/params/climate/product_list_params.rb +24 -0
  109. data/lib/stripe/params/climate/product_retrieve_params.rb +15 -0
  110. data/lib/stripe/params/climate/supplier_list_params.rb +24 -0
  111. data/lib/stripe/params/climate/supplier_retrieve_params.rb +15 -0
  112. data/lib/stripe/params/confirmation_token_create_params.rb +650 -0
  113. data/lib/stripe/params/confirmation_token_retrieve_params.rb +13 -0
  114. data/lib/stripe/params/country_spec_list_params.rb +22 -0
  115. data/lib/stripe/params/country_spec_retrieve_params.rb +13 -0
  116. data/lib/stripe/params/coupon_create_params.rb +80 -0
  117. data/lib/stripe/params/coupon_delete_params.rb +6 -0
  118. data/lib/stripe/params/coupon_list_params.rb +42 -0
  119. data/lib/stripe/params/coupon_retrieve_params.rb +13 -0
  120. data/lib/stripe/params/coupon_update_params.rb +30 -0
  121. data/lib/stripe/params/credit_note_create_params.rb +144 -0
  122. data/lib/stripe/params/credit_note_line_item_list_params.rb +22 -0
  123. data/lib/stripe/params/credit_note_list_params.rb +56 -0
  124. data/lib/stripe/params/credit_note_list_preview_line_items_params.rb +156 -0
  125. data/lib/stripe/params/credit_note_preview_lines_list_params.rb +156 -0
  126. data/lib/stripe/params/credit_note_preview_params.rb +144 -0
  127. data/lib/stripe/params/credit_note_retrieve_params.rb +13 -0
  128. data/lib/stripe/params/credit_note_update_params.rb +19 -0
  129. data/lib/stripe/params/credit_note_void_credit_note_params.rb +13 -0
  130. data/lib/stripe/params/customer_balance_transaction_create_params.rb +25 -0
  131. data/lib/stripe/params/customer_balance_transaction_list_params.rb +22 -0
  132. data/lib/stripe/params/customer_balance_transaction_retrieve_params.rb +13 -0
  133. data/lib/stripe/params/customer_balance_transaction_update_params.rb +19 -0
  134. data/lib/stripe/params/customer_cash_balance_retrieve_params.rb +13 -0
  135. data/lib/stripe/params/customer_cash_balance_transaction_list_params.rb +22 -0
  136. data/lib/stripe/params/customer_cash_balance_transaction_retrieve_params.rb +13 -0
  137. data/lib/stripe/params/customer_cash_balance_update_params.rb +24 -0
  138. data/lib/stripe/params/customer_create_funding_instructions_params.rb +46 -0
  139. data/lib/stripe/params/customer_create_params.rb +259 -0
  140. data/lib/stripe/params/customer_delete_discount_params.rb +6 -0
  141. data/lib/stripe/params/customer_delete_params.rb +6 -0
  142. data/lib/stripe/params/customer_fund_cash_balance_params.rb +22 -0
  143. data/lib/stripe/params/customer_funding_instructions_create_params.rb +46 -0
  144. data/lib/stripe/params/customer_list_params.rb +56 -0
  145. data/lib/stripe/params/customer_list_payment_methods_params.rb +35 -0
  146. data/lib/stripe/params/customer_payment_method_list_params.rb +35 -0
  147. data/lib/stripe/params/customer_payment_method_retrieve_params.rb +13 -0
  148. data/lib/stripe/params/customer_payment_source_create_params.rb +22 -0
  149. data/lib/stripe/params/customer_payment_source_delete_params.rb +13 -0
  150. data/lib/stripe/params/customer_payment_source_list_params.rb +25 -0
  151. data/lib/stripe/params/customer_payment_source_retrieve_params.rb +13 -0
  152. data/lib/stripe/params/customer_payment_source_update_params.rb +114 -0
  153. data/lib/stripe/params/customer_payment_source_verify_params.rb +16 -0
  154. data/lib/stripe/params/customer_retrieve_params.rb +13 -0
  155. data/lib/stripe/params/customer_retrieve_payment_method_params.rb +13 -0
  156. data/lib/stripe/params/customer_search_params.rb +22 -0
  157. data/lib/stripe/params/customer_session_create_params.rb +100 -0
  158. data/lib/stripe/params/customer_tax_id_create_params.rb +19 -0
  159. data/lib/stripe/params/customer_tax_id_delete_params.rb +6 -0
  160. data/lib/stripe/params/customer_tax_id_list_params.rb +22 -0
  161. data/lib/stripe/params/customer_tax_id_retrieve_params.rb +13 -0
  162. data/lib/stripe/params/customer_update_params.rb +243 -0
  163. data/lib/stripe/params/dispute_close_params.rb +13 -0
  164. data/lib/stripe/params/dispute_list_params.rb +56 -0
  165. data/lib/stripe/params/dispute_retrieve_params.rb +13 -0
  166. data/lib/stripe/params/dispute_update_params.rb +308 -0
  167. data/lib/stripe/params/entitlements/active_entitlement_list_params.rb +33 -0
  168. data/lib/stripe/params/entitlements/active_entitlement_retrieve_params.rb +15 -0
  169. data/lib/stripe/params/entitlements/feature_create_params.rb +24 -0
  170. data/lib/stripe/params/entitlements/feature_list_params.rb +37 -0
  171. data/lib/stripe/params/entitlements/feature_retrieve_params.rb +15 -0
  172. data/lib/stripe/params/entitlements/feature_update_params.rb +24 -0
  173. data/lib/stripe/params/ephemeral_key_create_params.rb +31 -0
  174. data/lib/stripe/params/ephemeral_key_delete_params.rb +13 -0
  175. data/lib/stripe/params/event_list_params.rb +60 -0
  176. data/lib/stripe/params/event_retrieve_params.rb +13 -0
  177. data/lib/stripe/params/exchange_rate_list_params.rb +22 -0
  178. data/lib/stripe/params/exchange_rate_retrieve_params.rb +13 -0
  179. data/lib/stripe/params/file_create_params.rb +36 -0
  180. data/lib/stripe/params/file_link_create_params.rb +22 -0
  181. data/lib/stripe/params/file_link_list_params.rb +56 -0
  182. data/lib/stripe/params/file_link_retrieve_params.rb +13 -0
  183. data/lib/stripe/params/file_link_update_params.rb +19 -0
  184. data/lib/stripe/params/file_list_params.rb +52 -0
  185. data/lib/stripe/params/file_retrieve_params.rb +13 -0
  186. data/lib/stripe/params/financial_connections/account_disconnect_params.rb +15 -0
  187. data/lib/stripe/params/financial_connections/account_list_owners_params.rb +33 -0
  188. data/lib/stripe/params/financial_connections/account_list_params.rb +48 -0
  189. data/lib/stripe/params/financial_connections/account_owner_list_params.rb +33 -0
  190. data/lib/stripe/params/financial_connections/account_refresh_account_params.rb +18 -0
  191. data/lib/stripe/params/financial_connections/account_refresh_params.rb +18 -0
  192. data/lib/stripe/params/financial_connections/account_retrieve_params.rb +15 -0
  193. data/lib/stripe/params/financial_connections/account_subscribe_params.rb +18 -0
  194. data/lib/stripe/params/financial_connections/account_unsubscribe_params.rb +18 -0
  195. data/lib/stripe/params/financial_connections/session_create_params.rb +65 -0
  196. data/lib/stripe/params/financial_connections/session_retrieve_params.rb +15 -0
  197. data/lib/stripe/params/financial_connections/transaction_list_params.rb +67 -0
  198. data/lib/stripe/params/financial_connections/transaction_retrieve_params.rb +15 -0
  199. data/lib/stripe/params/forwarding/request_create_params.rb +59 -0
  200. data/lib/stripe/params/forwarding/request_list_params.rb +44 -0
  201. data/lib/stripe/params/forwarding/request_retrieve_params.rb +15 -0
  202. data/lib/stripe/params/identity/verification_report_list_params.rb +62 -0
  203. data/lib/stripe/params/identity/verification_report_retrieve_params.rb +15 -0
  204. data/lib/stripe/params/identity/verification_session_cancel_params.rb +15 -0
  205. data/lib/stripe/params/identity/verification_session_create_params.rb +107 -0
  206. data/lib/stripe/params/identity/verification_session_list_params.rb +62 -0
  207. data/lib/stripe/params/identity/verification_session_redact_params.rb +15 -0
  208. data/lib/stripe/params/identity/verification_session_retrieve_params.rb +15 -0
  209. data/lib/stripe/params/identity/verification_session_update_params.rb +69 -0
  210. data/lib/stripe/params/invoice_add_lines_params.rb +231 -0
  211. data/lib/stripe/params/invoice_attach_payment_params.rb +16 -0
  212. data/lib/stripe/params/invoice_create_params.rb +589 -0
  213. data/lib/stripe/params/invoice_create_preview_params.rb +993 -0
  214. data/lib/stripe/params/invoice_delete_params.rb +6 -0
  215. data/lib/stripe/params/invoice_finalize_invoice_params.rb +16 -0
  216. data/lib/stripe/params/invoice_item_create_params.rb +145 -0
  217. data/lib/stripe/params/invoice_item_delete_params.rb +6 -0
  218. data/lib/stripe/params/invoice_item_list_params.rb +60 -0
  219. data/lib/stripe/params/invoice_item_retrieve_params.rb +13 -0
  220. data/lib/stripe/params/invoice_item_update_params.rb +129 -0
  221. data/lib/stripe/params/invoice_line_item_list_params.rb +22 -0
  222. data/lib/stripe/params/invoice_line_item_update_params.rb +217 -0
  223. data/lib/stripe/params/invoice_list_params.rb +86 -0
  224. data/lib/stripe/params/invoice_mark_uncollectible_params.rb +13 -0
  225. data/lib/stripe/params/invoice_pay_params.rb +41 -0
  226. data/lib/stripe/params/invoice_payment_list_params.rb +50 -0
  227. data/lib/stripe/params/invoice_payment_retrieve_params.rb +13 -0
  228. data/lib/stripe/params/invoice_remove_lines_params.rb +30 -0
  229. data/lib/stripe/params/invoice_rendering_template_archive_params.rb +13 -0
  230. data/lib/stripe/params/invoice_rendering_template_list_params.rb +25 -0
  231. data/lib/stripe/params/invoice_rendering_template_retrieve_params.rb +16 -0
  232. data/lib/stripe/params/invoice_rendering_template_unarchive_params.rb +13 -0
  233. data/lib/stripe/params/invoice_retrieve_params.rb +13 -0
  234. data/lib/stripe/params/invoice_search_params.rb +22 -0
  235. data/lib/stripe/params/invoice_send_invoice_params.rb +13 -0
  236. data/lib/stripe/params/invoice_update_lines_params.rb +231 -0
  237. data/lib/stripe/params/invoice_update_params.rb +557 -0
  238. data/lib/stripe/params/invoice_void_invoice_params.rb +13 -0
  239. data/lib/stripe/params/issuing/authorization_approve_params.rb +21 -0
  240. data/lib/stripe/params/issuing/authorization_capture_params.rb +265 -0
  241. data/lib/stripe/params/issuing/authorization_create_params.rb +357 -0
  242. data/lib/stripe/params/issuing/authorization_decline_params.rb +18 -0
  243. data/lib/stripe/params/issuing/authorization_expire_params.rb +15 -0
  244. data/lib/stripe/params/issuing/authorization_finalize_amount_params.rb +143 -0
  245. data/lib/stripe/params/issuing/authorization_increment_params.rb +21 -0
  246. data/lib/stripe/params/issuing/authorization_list_params.rb +62 -0
  247. data/lib/stripe/params/issuing/authorization_respond_params.rb +18 -0
  248. data/lib/stripe/params/issuing/authorization_retrieve_params.rb +15 -0
  249. data/lib/stripe/params/issuing/authorization_reverse_params.rb +18 -0
  250. data/lib/stripe/params/issuing/authorization_update_params.rb +18 -0
  251. data/lib/stripe/params/issuing/card_create_params.rb +213 -0
  252. data/lib/stripe/params/issuing/card_deliver_card_params.rb +15 -0
  253. data/lib/stripe/params/issuing/card_fail_card_params.rb +15 -0
  254. data/lib/stripe/params/issuing/card_list_params.rb +78 -0
  255. data/lib/stripe/params/issuing/card_retrieve_params.rb +15 -0
  256. data/lib/stripe/params/issuing/card_return_card_params.rb +15 -0
  257. data/lib/stripe/params/issuing/card_ship_card_params.rb +15 -0
  258. data/lib/stripe/params/issuing/card_submit_card_params.rb +15 -0
  259. data/lib/stripe/params/issuing/card_update_params.rb +181 -0
  260. data/lib/stripe/params/issuing/cardholder_create_params.rb +238 -0
  261. data/lib/stripe/params/issuing/cardholder_list_params.rb +66 -0
  262. data/lib/stripe/params/issuing/cardholder_retrieve_params.rb +15 -0
  263. data/lib/stripe/params/issuing/cardholder_update_params.rb +230 -0
  264. data/lib/stripe/params/issuing/dispute_create_params.rb +297 -0
  265. data/lib/stripe/params/issuing/dispute_list_params.rb +58 -0
  266. data/lib/stripe/params/issuing/dispute_retrieve_params.rb +15 -0
  267. data/lib/stripe/params/issuing/dispute_submit_params.rb +18 -0
  268. data/lib/stripe/params/issuing/dispute_update_params.rb +275 -0
  269. data/lib/stripe/params/issuing/personalization_design_activate_params.rb +15 -0
  270. data/lib/stripe/params/issuing/personalization_design_create_params.rb +75 -0
  271. data/lib/stripe/params/issuing/personalization_design_deactivate_params.rb +15 -0
  272. data/lib/stripe/params/issuing/personalization_design_list_params.rb +52 -0
  273. data/lib/stripe/params/issuing/personalization_design_reject_params.rb +29 -0
  274. data/lib/stripe/params/issuing/personalization_design_retrieve_params.rb +15 -0
  275. data/lib/stripe/params/issuing/personalization_design_update_params.rb +75 -0
  276. data/lib/stripe/params/issuing/physical_bundle_list_params.rb +37 -0
  277. data/lib/stripe/params/issuing/physical_bundle_retrieve_params.rb +15 -0
  278. data/lib/stripe/params/issuing/token_list_params.rb +58 -0
  279. data/lib/stripe/params/issuing/token_retrieve_params.rb +15 -0
  280. data/lib/stripe/params/issuing/token_update_params.rb +18 -0
  281. data/lib/stripe/params/issuing/transaction_create_force_capture_params.rb +316 -0
  282. data/lib/stripe/params/issuing/transaction_create_unlinked_refund_params.rb +316 -0
  283. data/lib/stripe/params/issuing/transaction_list_params.rb +62 -0
  284. data/lib/stripe/params/issuing/transaction_refund_params.rb +18 -0
  285. data/lib/stripe/params/issuing/transaction_retrieve_params.rb +15 -0
  286. data/lib/stripe/params/issuing/transaction_update_params.rb +18 -0
  287. data/lib/stripe/params/mandate_retrieve_params.rb +13 -0
  288. data/lib/stripe/params/payment_intent_apply_customer_balance_params.rb +23 -0
  289. data/lib/stripe/params/payment_intent_cancel_params.rb +16 -0
  290. data/lib/stripe/params/payment_intent_capture_params.rb +54 -0
  291. data/lib/stripe/params/payment_intent_confirm_params.rb +2379 -0
  292. data/lib/stripe/params/payment_intent_create_params.rb +2480 -0
  293. data/lib/stripe/params/payment_intent_increment_authorization_params.rb +48 -0
  294. data/lib/stripe/params/payment_intent_list_params.rb +52 -0
  295. data/lib/stripe/params/payment_intent_retrieve_params.rb +16 -0
  296. data/lib/stripe/params/payment_intent_search_params.rb +22 -0
  297. data/lib/stripe/params/payment_intent_update_params.rb +2353 -0
  298. data/lib/stripe/params/payment_intent_verify_microdeposits_params.rb +19 -0
  299. data/lib/stripe/params/payment_link_create_params.rb +776 -0
  300. data/lib/stripe/params/payment_link_line_item_list_params.rb +22 -0
  301. data/lib/stripe/params/payment_link_list_line_items_params.rb +22 -0
  302. data/lib/stripe/params/payment_link_list_params.rb +25 -0
  303. data/lib/stripe/params/payment_link_retrieve_params.rb +13 -0
  304. data/lib/stripe/params/payment_link_update_params.rb +564 -0
  305. data/lib/stripe/params/payment_method_attach_params.rb +16 -0
  306. data/lib/stripe/params/payment_method_configuration_create_params.rb +1135 -0
  307. data/lib/stripe/params/payment_method_configuration_list_params.rb +31 -0
  308. data/lib/stripe/params/payment_method_configuration_retrieve_params.rb +13 -0
  309. data/lib/stripe/params/payment_method_configuration_update_params.rb +1135 -0
  310. data/lib/stripe/params/payment_method_create_params.rb +583 -0
  311. data/lib/stripe/params/payment_method_detach_params.rb +13 -0
  312. data/lib/stripe/params/payment_method_domain_create_params.rb +19 -0
  313. data/lib/stripe/params/payment_method_domain_list_params.rb +35 -0
  314. data/lib/stripe/params/payment_method_domain_retrieve_params.rb +13 -0
  315. data/lib/stripe/params/payment_method_domain_update_params.rb +16 -0
  316. data/lib/stripe/params/payment_method_domain_validate_params.rb +13 -0
  317. data/lib/stripe/params/payment_method_list_params.rb +35 -0
  318. data/lib/stripe/params/payment_method_retrieve_params.rb +13 -0
  319. data/lib/stripe/params/payment_method_update_params.rb +120 -0
  320. data/lib/stripe/params/payout_cancel_params.rb +13 -0
  321. data/lib/stripe/params/payout_create_params.rb +51 -0
  322. data/lib/stripe/params/payout_list_params.rb +78 -0
  323. data/lib/stripe/params/payout_retrieve_params.rb +13 -0
  324. data/lib/stripe/params/payout_reverse_params.rb +16 -0
  325. data/lib/stripe/params/payout_update_params.rb +16 -0
  326. data/lib/stripe/params/plan_create_params.rb +158 -0
  327. data/lib/stripe/params/plan_delete_params.rb +6 -0
  328. data/lib/stripe/params/plan_list_params.rb +56 -0
  329. data/lib/stripe/params/plan_retrieve_params.rb +13 -0
  330. data/lib/stripe/params/plan_update_params.rb +35 -0
  331. data/lib/stripe/params/price_create_params.rb +278 -0
  332. data/lib/stripe/params/price_list_params.rb +87 -0
  333. data/lib/stripe/params/price_retrieve_params.rb +13 -0
  334. data/lib/stripe/params/price_search_params.rb +22 -0
  335. data/lib/stripe/params/price_update_params.rb +113 -0
  336. data/lib/stripe/params/product_create_params.rb +243 -0
  337. data/lib/stripe/params/product_delete_params.rb +6 -0
  338. data/lib/stripe/params/product_feature_create_params.rb +16 -0
  339. data/lib/stripe/params/product_feature_delete_params.rb +6 -0
  340. data/lib/stripe/params/product_feature_list_params.rb +22 -0
  341. data/lib/stripe/params/product_feature_retrieve_params.rb +13 -0
  342. data/lib/stripe/params/product_list_params.rb +68 -0
  343. data/lib/stripe/params/product_retrieve_params.rb +13 -0
  344. data/lib/stripe/params/product_search_params.rb +22 -0
  345. data/lib/stripe/params/product_update_params.rb +96 -0
  346. data/lib/stripe/params/promotion_code_create_params.rb +91 -0
  347. data/lib/stripe/params/promotion_code_list_params.rb +64 -0
  348. data/lib/stripe/params/promotion_code_retrieve_params.rb +13 -0
  349. data/lib/stripe/params/promotion_code_update_params.rb +38 -0
  350. data/lib/stripe/params/quote_accept_params.rb +13 -0
  351. data/lib/stripe/params/quote_cancel_params.rb +13 -0
  352. data/lib/stripe/params/quote_computed_upfront_line_items_list_params.rb +22 -0
  353. data/lib/stripe/params/quote_create_params.rb +301 -0
  354. data/lib/stripe/params/quote_finalize_quote_params.rb +16 -0
  355. data/lib/stripe/params/quote_line_item_list_params.rb +22 -0
  356. data/lib/stripe/params/quote_list_computed_upfront_line_items_params.rb +22 -0
  357. data/lib/stripe/params/quote_list_line_items_params.rb +22 -0
  358. data/lib/stripe/params/quote_list_params.rb +39 -0
  359. data/lib/stripe/params/quote_pdf_params.rb +13 -0
  360. data/lib/stripe/params/quote_retrieve_params.rb +13 -0
  361. data/lib/stripe/params/quote_update_params.rb +263 -0
  362. data/lib/stripe/params/radar/early_fraud_warning_list_params.rb +58 -0
  363. data/lib/stripe/params/radar/early_fraud_warning_retrieve_params.rb +15 -0
  364. data/lib/stripe/params/radar/value_list_create_params.rb +27 -0
  365. data/lib/stripe/params/radar/value_list_delete_params.rb +8 -0
  366. data/lib/stripe/params/radar/value_list_item_create_params.rb +21 -0
  367. data/lib/stripe/params/radar/value_list_item_delete_params.rb +8 -0
  368. data/lib/stripe/params/radar/value_list_item_list_params.rb +58 -0
  369. data/lib/stripe/params/radar/value_list_item_retrieve_params.rb +15 -0
  370. data/lib/stripe/params/radar/value_list_list_params.rb +58 -0
  371. data/lib/stripe/params/radar/value_list_retrieve_params.rb +15 -0
  372. data/lib/stripe/params/radar/value_list_update_params.rb +24 -0
  373. data/lib/stripe/params/refund_cancel_params.rb +13 -0
  374. data/lib/stripe/params/refund_create_params.rb +59 -0
  375. data/lib/stripe/params/refund_expire_params.rb +13 -0
  376. data/lib/stripe/params/refund_list_params.rb +56 -0
  377. data/lib/stripe/params/refund_retrieve_params.rb +13 -0
  378. data/lib/stripe/params/refund_update_params.rb +16 -0
  379. data/lib/stripe/params/reporting/report_run_create_params.rb +59 -0
  380. data/lib/stripe/params/reporting/report_run_list_params.rb +44 -0
  381. data/lib/stripe/params/reporting/report_run_retrieve_params.rb +15 -0
  382. data/lib/stripe/params/reporting/report_type_list_params.rb +15 -0
  383. data/lib/stripe/params/reporting/report_type_retrieve_params.rb +15 -0
  384. data/lib/stripe/params/review_approve_params.rb +13 -0
  385. data/lib/stripe/params/review_list_params.rb +42 -0
  386. data/lib/stripe/params/review_retrieve_params.rb +13 -0
  387. data/lib/stripe/params/setup_attempt_list_params.rb +55 -0
  388. data/lib/stripe/params/setup_intent_cancel_params.rb +16 -0
  389. data/lib/stripe/params/setup_intent_confirm_params.rb +1050 -0
  390. data/lib/stripe/params/setup_intent_create_params.rb +1130 -0
  391. data/lib/stripe/params/setup_intent_list_params.rb +62 -0
  392. data/lib/stripe/params/setup_intent_retrieve_params.rb +16 -0
  393. data/lib/stripe/params/setup_intent_update_params.rb +1025 -0
  394. data/lib/stripe/params/setup_intent_verify_microdeposits_params.rb +19 -0
  395. data/lib/stripe/params/shipping_rate_create_params.rb +103 -0
  396. data/lib/stripe/params/shipping_rate_list_params.rb +56 -0
  397. data/lib/stripe/params/shipping_rate_retrieve_params.rb +13 -0
  398. data/lib/stripe/params/shipping_rate_update_params.rb +44 -0
  399. data/lib/stripe/params/sigma/scheduled_query_run_list_params.rb +24 -0
  400. data/lib/stripe/params/sigma/scheduled_query_run_retrieve_params.rb +15 -0
  401. data/lib/stripe/params/source_create_params.rb +317 -0
  402. data/lib/stripe/params/source_detach_params.rb +13 -0
  403. data/lib/stripe/params/source_retrieve_params.rb +16 -0
  404. data/lib/stripe/params/source_transaction_list_params.rb +22 -0
  405. data/lib/stripe/params/source_update_params.rb +259 -0
  406. data/lib/stripe/params/source_verify_params.rb +16 -0
  407. data/lib/stripe/params/subscription_cancel_params.rb +33 -0
  408. data/lib/stripe/params/subscription_create_params.rb +704 -0
  409. data/lib/stripe/params/subscription_delete_discount_params.rb +6 -0
  410. data/lib/stripe/params/subscription_item_create_params.rb +134 -0
  411. data/lib/stripe/params/subscription_item_delete_params.rb +19 -0
  412. data/lib/stripe/params/subscription_item_list_params.rb +31 -0
  413. data/lib/stripe/params/subscription_item_retrieve_params.rb +13 -0
  414. data/lib/stripe/params/subscription_item_update_params.rb +134 -0
  415. data/lib/stripe/params/subscription_list_params.rb +129 -0
  416. data/lib/stripe/params/subscription_migrate_params.rb +35 -0
  417. data/lib/stripe/params/subscription_resume_params.rb +27 -0
  418. data/lib/stripe/params/subscription_retrieve_params.rb +13 -0
  419. data/lib/stripe/params/subscription_schedule_cancel_params.rb +19 -0
  420. data/lib/stripe/params/subscription_schedule_create_params.rb +590 -0
  421. data/lib/stripe/params/subscription_schedule_list_params.rb +122 -0
  422. data/lib/stripe/params/subscription_schedule_release_params.rb +16 -0
  423. data/lib/stripe/params/subscription_schedule_retrieve_params.rb +13 -0
  424. data/lib/stripe/params/subscription_schedule_update_params.rb +562 -0
  425. data/lib/stripe/params/subscription_search_params.rb +22 -0
  426. data/lib/stripe/params/subscription_update_params.rb +683 -0
  427. data/lib/stripe/params/tax/calculation_create_params.rb +206 -0
  428. data/lib/stripe/params/tax/calculation_line_item_list_params.rb +24 -0
  429. data/lib/stripe/params/tax/calculation_list_line_items_params.rb +24 -0
  430. data/lib/stripe/params/tax/calculation_retrieve_params.rb +15 -0
  431. data/lib/stripe/params/tax/registration_create_params.rb +2018 -0
  432. data/lib/stripe/params/tax/registration_list_params.rb +27 -0
  433. data/lib/stripe/params/tax/registration_retrieve_params.rb +15 -0
  434. data/lib/stripe/params/tax/registration_update_params.rb +21 -0
  435. data/lib/stripe/params/tax/settings_retrieve_params.rb +15 -0
  436. data/lib/stripe/params/tax/settings_update_params.rb +71 -0
  437. data/lib/stripe/params/tax/transaction_create_from_calculation_params.rb +27 -0
  438. data/lib/stripe/params/tax/transaction_create_reversal_params.rb +87 -0
  439. data/lib/stripe/params/tax/transaction_line_item_list_params.rb +24 -0
  440. data/lib/stripe/params/tax/transaction_list_line_items_params.rb +24 -0
  441. data/lib/stripe/params/tax/transaction_retrieve_params.rb +15 -0
  442. data/lib/stripe/params/tax_code_list_params.rb +22 -0
  443. data/lib/stripe/params/tax_code_retrieve_params.rb +13 -0
  444. data/lib/stripe/params/tax_id_create_params.rb +36 -0
  445. data/lib/stripe/params/tax_id_delete_params.rb +6 -0
  446. data/lib/stripe/params/tax_id_list_params.rb +39 -0
  447. data/lib/stripe/params/tax_id_retrieve_params.rb +13 -0
  448. data/lib/stripe/params/tax_rate_create_params.rb +55 -0
  449. data/lib/stripe/params/tax_rate_list_params.rb +56 -0
  450. data/lib/stripe/params/tax_rate_retrieve_params.rb +13 -0
  451. data/lib/stripe/params/tax_rate_update_params.rb +47 -0
  452. data/lib/stripe/params/terminal/configuration_create_params.rb +593 -0
  453. data/lib/stripe/params/terminal/configuration_delete_params.rb +8 -0
  454. data/lib/stripe/params/terminal/configuration_list_params.rb +33 -0
  455. data/lib/stripe/params/terminal/configuration_retrieve_params.rb +15 -0
  456. data/lib/stripe/params/terminal/configuration_update_params.rb +593 -0
  457. data/lib/stripe/params/terminal/connection_token_create_params.rb +18 -0
  458. data/lib/stripe/params/terminal/location_create_params.rb +153 -0
  459. data/lib/stripe/params/terminal/location_delete_params.rb +8 -0
  460. data/lib/stripe/params/terminal/location_list_params.rb +24 -0
  461. data/lib/stripe/params/terminal/location_retrieve_params.rb +15 -0
  462. data/lib/stripe/params/terminal/location_update_params.rb +153 -0
  463. data/lib/stripe/params/terminal/reader_cancel_action_params.rb +15 -0
  464. data/lib/stripe/params/terminal/reader_collect_inputs_params.rb +96 -0
  465. data/lib/stripe/params/terminal/reader_collect_payment_method_params.rb +51 -0
  466. data/lib/stripe/params/terminal/reader_confirm_payment_intent_params.rb +29 -0
  467. data/lib/stripe/params/terminal/reader_create_params.rb +27 -0
  468. data/lib/stripe/params/terminal/reader_delete_params.rb +8 -0
  469. data/lib/stripe/params/terminal/reader_list_params.rb +45 -0
  470. data/lib/stripe/params/terminal/reader_present_payment_method_params.rb +72 -0
  471. data/lib/stripe/params/terminal/reader_process_payment_intent_params.rb +55 -0
  472. data/lib/stripe/params/terminal/reader_process_setup_intent_params.rb +32 -0
  473. data/lib/stripe/params/terminal/reader_refund_payment_params.rb +53 -0
  474. data/lib/stripe/params/terminal/reader_retrieve_params.rb +15 -0
  475. data/lib/stripe/params/terminal/reader_set_reader_display_params.rb +52 -0
  476. data/lib/stripe/params/terminal/reader_succeed_input_collection_params.rb +18 -0
  477. data/lib/stripe/params/terminal/reader_timeout_input_collection_params.rb +15 -0
  478. data/lib/stripe/params/terminal/reader_update_params.rb +21 -0
  479. data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +652 -0
  480. data/lib/stripe/params/test_helpers/customer_fund_cash_balance_params.rb +24 -0
  481. data/lib/stripe/params/test_helpers/issuing/authorization_capture_params.rb +267 -0
  482. data/lib/stripe/params/test_helpers/issuing/authorization_create_params.rb +359 -0
  483. data/lib/stripe/params/test_helpers/issuing/authorization_expire_params.rb +17 -0
  484. data/lib/stripe/params/test_helpers/issuing/authorization_finalize_amount_params.rb +145 -0
  485. data/lib/stripe/params/test_helpers/issuing/authorization_increment_params.rb +23 -0
  486. data/lib/stripe/params/test_helpers/issuing/authorization_respond_params.rb +20 -0
  487. data/lib/stripe/params/test_helpers/issuing/authorization_reverse_params.rb +20 -0
  488. data/lib/stripe/params/test_helpers/issuing/card_deliver_card_params.rb +17 -0
  489. data/lib/stripe/params/test_helpers/issuing/card_fail_card_params.rb +17 -0
  490. data/lib/stripe/params/test_helpers/issuing/card_return_card_params.rb +17 -0
  491. data/lib/stripe/params/test_helpers/issuing/card_ship_card_params.rb +17 -0
  492. data/lib/stripe/params/test_helpers/issuing/card_submit_card_params.rb +17 -0
  493. data/lib/stripe/params/test_helpers/issuing/personalization_design_activate_params.rb +17 -0
  494. data/lib/stripe/params/test_helpers/issuing/personalization_design_deactivate_params.rb +17 -0
  495. data/lib/stripe/params/test_helpers/issuing/personalization_design_reject_params.rb +31 -0
  496. data/lib/stripe/params/test_helpers/issuing/transaction_create_force_capture_params.rb +318 -0
  497. data/lib/stripe/params/test_helpers/issuing/transaction_create_unlinked_refund_params.rb +318 -0
  498. data/lib/stripe/params/test_helpers/issuing/transaction_refund_params.rb +20 -0
  499. data/lib/stripe/params/test_helpers/refund_expire_params.rb +15 -0
  500. data/lib/stripe/params/test_helpers/terminal/reader_present_payment_method_params.rb +74 -0
  501. data/lib/stripe/params/test_helpers/terminal/reader_succeed_input_collection_params.rb +20 -0
  502. data/lib/stripe/params/test_helpers/terminal/reader_timeout_input_collection_params.rb +17 -0
  503. data/lib/stripe/params/test_helpers/test_clock_advance_params.rb +18 -0
  504. data/lib/stripe/params/test_helpers/test_clock_create_params.rb +21 -0
  505. data/lib/stripe/params/test_helpers/test_clock_delete_params.rb +8 -0
  506. data/lib/stripe/params/test_helpers/test_clock_list_params.rb +24 -0
  507. data/lib/stripe/params/test_helpers/test_clock_retrieve_params.rb +15 -0
  508. data/lib/stripe/params/test_helpers/treasury/inbound_transfer_fail_params.rb +28 -0
  509. data/lib/stripe/params/test_helpers/treasury/inbound_transfer_return_inbound_transfer_params.rb +17 -0
  510. data/lib/stripe/params/test_helpers/treasury/inbound_transfer_succeed_params.rb +17 -0
  511. data/lib/stripe/params/test_helpers/treasury/outbound_payment_fail_params.rb +17 -0
  512. data/lib/stripe/params/test_helpers/treasury/outbound_payment_post_params.rb +17 -0
  513. data/lib/stripe/params/test_helpers/treasury/outbound_payment_return_outbound_payment_params.rb +28 -0
  514. data/lib/stripe/params/test_helpers/treasury/outbound_payment_update_params.rb +57 -0
  515. data/lib/stripe/params/test_helpers/treasury/outbound_transfer_fail_params.rb +17 -0
  516. data/lib/stripe/params/test_helpers/treasury/outbound_transfer_post_params.rb +17 -0
  517. data/lib/stripe/params/test_helpers/treasury/outbound_transfer_return_outbound_transfer_params.rb +28 -0
  518. data/lib/stripe/params/test_helpers/treasury/outbound_transfer_update_params.rb +57 -0
  519. data/lib/stripe/params/test_helpers/treasury/received_credit_create_params.rb +68 -0
  520. data/lib/stripe/params/test_helpers/treasury/received_debit_create_params.rb +68 -0
  521. data/lib/stripe/params/token_create_params.rb +1191 -0
  522. data/lib/stripe/params/token_retrieve_params.rb +13 -0
  523. data/lib/stripe/params/topup_cancel_params.rb +13 -0
  524. data/lib/stripe/params/topup_create_params.rb +43 -0
  525. data/lib/stripe/params/topup_list_params.rb +74 -0
  526. data/lib/stripe/params/topup_retrieve_params.rb +13 -0
  527. data/lib/stripe/params/topup_update_params.rb +19 -0
  528. data/lib/stripe/params/transfer_create_params.rb +47 -0
  529. data/lib/stripe/params/transfer_list_params.rb +56 -0
  530. data/lib/stripe/params/transfer_retrieve_params.rb +13 -0
  531. data/lib/stripe/params/transfer_reversal_create_params.rb +31 -0
  532. data/lib/stripe/params/transfer_reversal_list_params.rb +22 -0
  533. data/lib/stripe/params/transfer_reversal_retrieve_params.rb +13 -0
  534. data/lib/stripe/params/transfer_reversal_update_params.rb +16 -0
  535. data/lib/stripe/params/transfer_update_params.rb +19 -0
  536. data/lib/stripe/params/treasury/credit_reversal_create_params.rb +21 -0
  537. data/lib/stripe/params/treasury/credit_reversal_list_params.rb +41 -0
  538. data/lib/stripe/params/treasury/credit_reversal_retrieve_params.rb +15 -0
  539. data/lib/stripe/params/treasury/debit_reversal_create_params.rb +21 -0
  540. data/lib/stripe/params/treasury/debit_reversal_list_params.rb +45 -0
  541. data/lib/stripe/params/treasury/debit_reversal_retrieve_params.rb +15 -0
  542. data/lib/stripe/params/treasury/financial_account_close_params.rb +32 -0
  543. data/lib/stripe/params/treasury/financial_account_create_params.rb +201 -0
  544. data/lib/stripe/params/treasury/financial_account_features_retrieve_params.rb +15 -0
  545. data/lib/stripe/params/treasury/financial_account_features_update_params.rb +163 -0
  546. data/lib/stripe/params/treasury/financial_account_list_params.rb +54 -0
  547. data/lib/stripe/params/treasury/financial_account_retrieve_features_params.rb +15 -0
  548. data/lib/stripe/params/treasury/financial_account_retrieve_params.rb +15 -0
  549. data/lib/stripe/params/treasury/financial_account_update_features_params.rb +163 -0
  550. data/lib/stripe/params/treasury/financial_account_update_params.rb +216 -0
  551. data/lib/stripe/params/treasury/inbound_transfer_cancel_params.rb +15 -0
  552. data/lib/stripe/params/treasury/inbound_transfer_create_params.rb +45 -0
  553. data/lib/stripe/params/treasury/inbound_transfer_fail_params.rb +26 -0
  554. data/lib/stripe/params/treasury/inbound_transfer_list_params.rb +37 -0
  555. data/lib/stripe/params/treasury/inbound_transfer_retrieve_params.rb +15 -0
  556. data/lib/stripe/params/treasury/inbound_transfer_return_inbound_transfer_params.rb +15 -0
  557. data/lib/stripe/params/treasury/inbound_transfer_succeed_params.rb +15 -0
  558. data/lib/stripe/params/treasury/outbound_payment_cancel_params.rb +15 -0
  559. data/lib/stripe/params/treasury/outbound_payment_create_params.rb +190 -0
  560. data/lib/stripe/params/treasury/outbound_payment_fail_params.rb +15 -0
  561. data/lib/stripe/params/treasury/outbound_payment_list_params.rb +62 -0
  562. data/lib/stripe/params/treasury/outbound_payment_post_params.rb +15 -0
  563. data/lib/stripe/params/treasury/outbound_payment_retrieve_params.rb +15 -0
  564. data/lib/stripe/params/treasury/outbound_payment_return_outbound_payment_params.rb +26 -0
  565. data/lib/stripe/params/treasury/outbound_payment_update_params.rb +55 -0
  566. data/lib/stripe/params/treasury/outbound_transfer_cancel_params.rb +15 -0
  567. data/lib/stripe/params/treasury/outbound_transfer_create_params.rb +81 -0
  568. data/lib/stripe/params/treasury/outbound_transfer_fail_params.rb +15 -0
  569. data/lib/stripe/params/treasury/outbound_transfer_list_params.rb +37 -0
  570. data/lib/stripe/params/treasury/outbound_transfer_post_params.rb +15 -0
  571. data/lib/stripe/params/treasury/outbound_transfer_retrieve_params.rb +15 -0
  572. data/lib/stripe/params/treasury/outbound_transfer_return_outbound_transfer_params.rb +26 -0
  573. data/lib/stripe/params/treasury/outbound_transfer_update_params.rb +55 -0
  574. data/lib/stripe/params/treasury/received_credit_create_params.rb +66 -0
  575. data/lib/stripe/params/treasury/received_credit_list_params.rb +49 -0
  576. data/lib/stripe/params/treasury/received_credit_retrieve_params.rb +15 -0
  577. data/lib/stripe/params/treasury/received_debit_create_params.rb +66 -0
  578. data/lib/stripe/params/treasury/received_debit_list_params.rb +37 -0
  579. data/lib/stripe/params/treasury/received_debit_retrieve_params.rb +15 -0
  580. data/lib/stripe/params/treasury/transaction_entry_list_params.rb +84 -0
  581. data/lib/stripe/params/treasury/transaction_entry_retrieve_params.rb +15 -0
  582. data/lib/stripe/params/treasury/transaction_list_params.rb +92 -0
  583. data/lib/stripe/params/treasury/transaction_retrieve_params.rb +15 -0
  584. data/lib/stripe/params/v2/billing/meter_event_adjustment_create_params.rb +31 -0
  585. data/lib/stripe/params/v2/billing/meter_event_create_params.rb +33 -0
  586. data/lib/stripe/params/v2/billing/meter_event_session_create_params.rb +10 -0
  587. data/lib/stripe/params/v2/billing/meter_event_stream_create_params.rb +41 -0
  588. data/lib/stripe/params/v2/core/event_destination_create_params.rb +79 -0
  589. data/lib/stripe/params/v2/core/event_destination_delete_params.rb +10 -0
  590. data/lib/stripe/params/v2/core/event_destination_disable_params.rb +10 -0
  591. data/lib/stripe/params/v2/core/event_destination_enable_params.rb +10 -0
  592. data/lib/stripe/params/v2/core/event_destination_list_params.rb +20 -0
  593. data/lib/stripe/params/v2/core/event_destination_ping_params.rb +10 -0
  594. data/lib/stripe/params/v2/core/event_destination_retrieve_params.rb +17 -0
  595. data/lib/stripe/params/v2/core/event_destination_update_params.rb +47 -0
  596. data/lib/stripe/params/v2/core/event_list_params.rb +22 -0
  597. data/lib/stripe/params/v2/core/event_retrieve_params.rb +10 -0
  598. data/lib/stripe/params/webhook_endpoint_create_params.rb +39 -0
  599. data/lib/stripe/params/webhook_endpoint_delete_params.rb +6 -0
  600. data/lib/stripe/params/webhook_endpoint_list_params.rb +22 -0
  601. data/lib/stripe/params/webhook_endpoint_retrieve_params.rb +13 -0
  602. data/lib/stripe/params/webhook_endpoint_update_params.rb +35 -0
  603. data/lib/stripe/params.rb +588 -0
  604. data/lib/stripe/request_options.rb +16 -6
  605. data/lib/stripe/request_params.rb +24 -0
  606. data/lib/stripe/resources/account.rb +1007 -20
  607. data/lib/stripe/resources/account_link.rb +17 -0
  608. data/lib/stripe/resources/account_session.rb +658 -0
  609. data/lib/stripe/resources/apple_pay_domain.rb +21 -0
  610. data/lib/stripe/resources/application.rb +28 -0
  611. data/lib/stripe/resources/application_fee.rb +55 -0
  612. data/lib/stripe/resources/application_fee_refund.rb +25 -0
  613. data/lib/stripe/resources/apps/secret.rb +41 -0
  614. data/lib/stripe/resources/balance.rb +325 -7
  615. data/lib/stripe/resources/balance_settings.rb +92 -0
  616. data/lib/stripe/resources/balance_transaction.rb +61 -0
  617. data/lib/stripe/resources/bank_account.rb +126 -4
  618. data/lib/stripe/resources/billing/alert.rb +55 -0
  619. data/lib/stripe/resources/billing/alert_triggered.rb +34 -0
  620. data/lib/stripe/resources/billing/credit_balance_summary.rb +88 -0
  621. data/lib/stripe/resources/billing/credit_balance_transaction.rb +151 -0
  622. data/lib/stripe/resources/billing/credit_grant.rb +108 -0
  623. data/lib/stripe/resources/billing/meter.rb +93 -0
  624. data/lib/stripe/resources/billing/meter_event.rb +23 -0
  625. data/lib/stripe/resources/billing/meter_event_adjustment.rb +33 -0
  626. data/lib/stripe/resources/billing/meter_event_summary.rb +25 -0
  627. data/lib/stripe/resources/billing_portal/configuration.rb +254 -0
  628. data/lib/stripe/resources/billing_portal/session.rb +200 -1
  629. data/lib/stripe/resources/capability.rb +140 -0
  630. data/lib/stripe/resources/card.rb +93 -0
  631. data/lib/stripe/resources/cash_balance.rb +33 -0
  632. data/lib/stripe/resources/charge.rb +2221 -7
  633. data/lib/stripe/resources/checkout/session.rb +2206 -6
  634. data/lib/stripe/resources/climate/order.rb +106 -0
  635. data/lib/stripe/resources/climate/product.rb +45 -0
  636. data/lib/stripe/resources/climate/supplier.rb +43 -0
  637. data/lib/stripe/resources/confirmation_token.rb +1679 -0
  638. data/lib/stripe/resources/connect_collection_transfer.rb +32 -0
  639. data/lib/stripe/resources/country_spec.rb +69 -1
  640. data/lib/stripe/resources/coupon.rb +70 -0
  641. data/lib/stripe/resources/credit_note.rb +213 -9
  642. data/lib/stripe/resources/credit_note_line_item.rb +111 -0
  643. data/lib/stripe/resources/customer.rb +228 -0
  644. data/lib/stripe/resources/customer_balance_transaction.rb +37 -0
  645. data/lib/stripe/resources/customer_cash_balance_transaction.rb +217 -0
  646. data/lib/stripe/resources/customer_session.rb +118 -3
  647. data/lib/stripe/resources/discount.rb +49 -0
  648. data/lib/stripe/resources/dispute.rb +405 -1
  649. data/lib/stripe/resources/entitlements/active_entitlement.rb +19 -0
  650. data/lib/stripe/resources/entitlements/active_entitlement_summary.rb +31 -0
  651. data/lib/stripe/resources/entitlements/feature.rb +23 -0
  652. data/lib/stripe/resources/ephemeral_key.rb +21 -0
  653. data/lib/stripe/resources/event.rb +74 -26
  654. data/lib/stripe/resources/exchange_rate.rb +25 -0
  655. data/lib/stripe/resources/file.rb +32 -1
  656. data/lib/stripe/resources/file_link.rb +27 -0
  657. data/lib/stripe/resources/financial_connections/account.rb +193 -0
  658. data/lib/stripe/resources/financial_connections/account_owner.rb +25 -0
  659. data/lib/stripe/resources/financial_connections/account_ownership.rb +17 -0
  660. data/lib/stripe/resources/financial_connections/session.rb +60 -0
  661. data/lib/stripe/resources/financial_connections/transaction.rb +47 -0
  662. data/lib/stripe/resources/forwarding/request.rb +111 -0
  663. data/lib/stripe/resources/funding_instructions.rb +502 -1
  664. data/lib/stripe/resources/identity/verification_report.rb +372 -0
  665. data/lib/stripe/resources/identity/verification_session.rb +290 -11
  666. data/lib/stripe/resources/invoice.rb +997 -34
  667. data/lib/stripe/resources/invoice_item.rb +160 -4
  668. data/lib/stripe/resources/invoice_line_item.rb +278 -1
  669. data/lib/stripe/resources/invoice_payment.rb +90 -0
  670. data/lib/stripe/resources/invoice_rendering_template.rb +25 -0
  671. data/lib/stripe/resources/issuing/authorization.rb +449 -8
  672. data/lib/stripe/resources/issuing/card.rb +264 -0
  673. data/lib/stripe/resources/issuing/cardholder.rb +242 -0
  674. data/lib/stripe/resources/issuing/dispute.rb +257 -3
  675. data/lib/stripe/resources/issuing/personalization_design.rb +87 -0
  676. data/lib/stripe/resources/issuing/physical_bundle.rb +39 -0
  677. data/lib/stripe/resources/issuing/token.rb +163 -0
  678. data/lib/stripe/resources/issuing/transaction.rb +363 -0
  679. data/lib/stripe/resources/line_item.rb +71 -0
  680. data/lib/stripe/resources/login_link.rb +17 -1
  681. data/lib/stripe/resources/mandate.rb +358 -0
  682. data/lib/stripe/resources/payment_intent.rb +2775 -23
  683. data/lib/stripe/resources/payment_link.rb +686 -0
  684. data/lib/stripe/resources/payment_method.rb +1536 -12
  685. data/lib/stripe/resources/payment_method_configuration.rb +1759 -0
  686. data/lib/stripe/resources/payment_method_domain.rb +209 -8
  687. data/lib/stripe/resources/payout.rb +81 -4
  688. data/lib/stripe/resources/person.rb +469 -2
  689. data/lib/stripe/resources/plan.rb +87 -1
  690. data/lib/stripe/resources/price.rb +192 -2
  691. data/lib/stripe/resources/product.rb +83 -0
  692. data/lib/stripe/resources/product_feature.rb +20 -0
  693. data/lib/stripe/resources/promotion_code.rb +86 -3
  694. data/lib/stripe/resources/quote.rb +510 -0
  695. data/lib/stripe/resources/radar/early_fraud_warning.rb +25 -0
  696. data/lib/stripe/resources/radar/value_list.rb +31 -0
  697. data/lib/stripe/resources/radar/value_list_item.rb +25 -0
  698. data/lib/stripe/resources/refund.rb +614 -0
  699. data/lib/stripe/resources/reporting/report_run.rb +60 -0
  700. data/lib/stripe/resources/reporting/report_type.rb +27 -0
  701. data/lib/stripe/resources/reserve_transaction.rb +30 -0
  702. data/lib/stripe/resources/reversal.rb +30 -1
  703. data/lib/stripe/resources/review.rb +77 -1
  704. data/lib/stripe/resources/setup_attempt.rb +589 -0
  705. data/lib/stripe/resources/setup_intent.rb +574 -3
  706. data/lib/stripe/resources/shipping_rate.rb +107 -0
  707. data/lib/stripe/resources/sigma/scheduled_query_run.rb +43 -0
  708. data/lib/stripe/resources/source.rb +885 -2
  709. data/lib/stripe/resources/source_mandate_notification.rb +98 -0
  710. data/lib/stripe/resources/source_transaction.rb +139 -0
  711. data/lib/stripe/resources/subscription.rb +606 -9
  712. data/lib/stripe/resources/subscription_item.rb +60 -5
  713. data/lib/stripe/resources/subscription_schedule.rb +526 -0
  714. data/lib/stripe/resources/tax/calculation.rb +273 -0
  715. data/lib/stripe/resources/tax/calculation_line_item.rb +90 -0
  716. data/lib/stripe/resources/tax/registration.rb +2189 -0
  717. data/lib/stripe/resources/tax/settings.rb +114 -0
  718. data/lib/stripe/resources/tax/transaction.rb +231 -0
  719. data/lib/stripe/resources/tax/transaction_line_item.rb +47 -0
  720. data/lib/stripe/resources/tax_code.rb +17 -0
  721. data/lib/stripe/resources/tax_deducted_at_source.rb +30 -0
  722. data/lib/stripe/resources/tax_id.rb +66 -0
  723. data/lib/stripe/resources/tax_rate.rb +63 -2
  724. data/lib/stripe/resources/terminal/configuration.rb +634 -0
  725. data/lib/stripe/resources/terminal/connection_token.rb +15 -0
  726. data/lib/stripe/resources/terminal/location.rb +112 -1
  727. data/lib/stripe/resources/terminal/reader.rb +605 -0
  728. data/lib/stripe/resources/test_helpers/test_clock.rb +53 -0
  729. data/lib/stripe/resources/token.rb +39 -2
  730. data/lib/stripe/resources/topup.rb +41 -0
  731. data/lib/stripe/resources/transfer.rb +44 -1
  732. data/lib/stripe/resources/treasury/credit_reversal.rb +49 -0
  733. data/lib/stripe/resources/treasury/debit_reversal.rb +64 -0
  734. data/lib/stripe/resources/treasury/financial_account.rb +145 -1
  735. data/lib/stripe/resources/treasury/financial_account_features.rb +381 -0
  736. data/lib/stripe/resources/treasury/inbound_transfer.rb +178 -0
  737. data/lib/stripe/resources/treasury/outbound_payment.rb +256 -0
  738. data/lib/stripe/resources/treasury/outbound_transfer.rb +236 -0
  739. data/lib/stripe/resources/treasury/received_credit.rb +214 -0
  740. data/lib/stripe/resources/treasury/received_debit.rb +177 -0
  741. data/lib/stripe/resources/treasury/transaction.rb +117 -0
  742. data/lib/stripe/resources/treasury/transaction_entry.rb +94 -0
  743. data/lib/stripe/resources/v2/amount.rb +9 -0
  744. data/lib/stripe/resources/v2/billing/meter_event.rb +26 -0
  745. data/lib/stripe/resources/v2/billing/meter_event_adjustment.rb +37 -0
  746. data/lib/stripe/resources/v2/billing/meter_event_session.rb +22 -0
  747. data/lib/stripe/resources/v2/core/event.rb +67 -0
  748. data/lib/stripe/resources/v2/core/event_destination.rb +119 -0
  749. data/lib/stripe/resources/v2/core/event_notification.rb +62 -0
  750. data/lib/stripe/resources/v2/deleted_object.rb +21 -0
  751. data/lib/stripe/resources/webhook_endpoint.rb +35 -0
  752. data/lib/stripe/resources.rb +13 -4
  753. data/lib/stripe/services/account_external_account_service.rb +1 -1
  754. data/lib/stripe/services/account_login_link_service.rb +1 -1
  755. data/lib/stripe/services/account_service.rb +12 -12
  756. data/lib/stripe/services/application_fee_service.rb +1 -1
  757. data/lib/stripe/services/apps_service.rb +1 -1
  758. data/lib/stripe/services/balance_service.rb +1 -1
  759. data/lib/stripe/services/balance_settings_service.rb +30 -0
  760. data/lib/stripe/services/billing/meter_service.rb +1 -1
  761. data/lib/stripe/services/billing_portal_service.rb +1 -1
  762. data/lib/stripe/services/billing_service.rb +1 -1
  763. data/lib/stripe/services/charge_service.rb +4 -4
  764. data/lib/stripe/services/checkout/session_service.rb +8 -6
  765. data/lib/stripe/services/checkout_service.rb +1 -1
  766. data/lib/stripe/services/climate_service.rb +1 -1
  767. data/lib/stripe/services/credit_note_service.rb +8 -9
  768. data/lib/stripe/services/customer_balance_transaction_service.rb +3 -3
  769. data/lib/stripe/services/customer_cash_balance_transaction_service.rb +2 -2
  770. data/lib/stripe/services/customer_payment_source_service.rb +1 -1
  771. data/lib/stripe/services/customer_service.rb +6 -6
  772. data/lib/stripe/services/dispute_service.rb +1 -1
  773. data/lib/stripe/services/entitlements_service.rb +1 -1
  774. data/lib/stripe/services/exchange_rate_service.rb +4 -0
  775. data/lib/stripe/services/file_service.rb +1 -1
  776. data/lib/stripe/services/financial_connections/account_service.rb +1 -1
  777. data/lib/stripe/services/financial_connections_service.rb +1 -1
  778. data/lib/stripe/services/forwarding_service.rb +1 -1
  779. data/lib/stripe/services/identity/verification_session_service.rb +5 -5
  780. data/lib/stripe/services/identity_service.rb +1 -1
  781. data/lib/stripe/services/invoice_payment_service.rb +28 -0
  782. data/lib/stripe/services/invoice_service.rb +34 -30
  783. data/lib/stripe/services/issuing/authorization_service.rb +4 -4
  784. data/lib/stripe/services/issuing/dispute_service.rb +2 -2
  785. data/lib/stripe/services/issuing_service.rb +1 -1
  786. data/lib/stripe/services/payment_intent_service.rb +20 -15
  787. data/lib/stripe/services/payment_link_service.rb +1 -1
  788. data/lib/stripe/services/payment_method_domain_service.rb +4 -4
  789. data/lib/stripe/services/payment_method_service.rb +9 -9
  790. data/lib/stripe/services/payout_service.rb +2 -2
  791. data/lib/stripe/services/plan_service.rb +1 -1
  792. data/lib/stripe/services/price_service.rb +3 -3
  793. data/lib/stripe/services/product_service.rb +2 -2
  794. data/lib/stripe/services/promotion_code_service.rb +2 -2
  795. data/lib/stripe/services/quote_service.rb +3 -3
  796. data/lib/stripe/services/radar/early_fraud_warning_service.rb +1 -1
  797. data/lib/stripe/services/radar_service.rb +1 -1
  798. data/lib/stripe/services/reporting_service.rb +1 -1
  799. data/lib/stripe/services/setup_intent_service.rb +3 -3
  800. data/lib/stripe/services/sigma_service.rb +1 -1
  801. data/lib/stripe/services/source_service.rb +2 -2
  802. data/lib/stripe/services/subscription_item_service.rb +0 -8
  803. data/lib/stripe/services/subscription_service.rb +19 -8
  804. data/lib/stripe/services/tax/calculation_service.rb +1 -1
  805. data/lib/stripe/services/tax/transaction_service.rb +1 -1
  806. data/lib/stripe/services/tax_service.rb +1 -1
  807. data/lib/stripe/services/terminal/location_service.rb +1 -1
  808. data/lib/stripe/services/terminal/reader_service.rb +33 -0
  809. data/lib/stripe/services/terminal_service.rb +1 -1
  810. data/lib/stripe/services/test_helpers/issuing_service.rb +1 -1
  811. data/lib/stripe/services/test_helpers/terminal/reader_service.rb +22 -0
  812. data/lib/stripe/services/test_helpers/terminal_service.rb +1 -1
  813. data/lib/stripe/services/test_helpers/treasury_service.rb +1 -1
  814. data/lib/stripe/services/test_helpers_service.rb +1 -1
  815. data/lib/stripe/services/token_service.rb +1 -1
  816. data/lib/stripe/services/transfer_service.rb +2 -2
  817. data/lib/stripe/services/treasury/financial_account_service.rb +2 -2
  818. data/lib/stripe/services/treasury_service.rb +1 -1
  819. data/lib/stripe/services/v1_services.rb +7 -5
  820. data/lib/stripe/services/v2/billing_service.rb +4 -4
  821. data/lib/stripe/services/v2/core_service.rb +3 -3
  822. data/lib/stripe/services/v2_services.rb +1 -1
  823. data/lib/stripe/services.rb +2 -3
  824. data/lib/stripe/stripe_client.rb +10 -6
  825. data/lib/stripe/stripe_configuration.rb +1 -6
  826. data/lib/stripe/stripe_context.rb +68 -0
  827. data/lib/stripe/stripe_object.rb +57 -12
  828. data/lib/stripe/stripe_service.rb +3 -1
  829. data/lib/stripe/util.rb +34 -12
  830. data/lib/stripe/version.rb +1 -1
  831. data/lib/stripe/webhook.rb +1 -1
  832. data/lib/stripe.rb +6 -1
  833. data/rbi/stripe/resources/v2/core/event_notification.rbi +43 -0
  834. data/rbi/stripe/stripe_client.rbi +17 -0
  835. data/rbi/stripe.rbi +132984 -0
  836. metadata +612 -28
  837. data/CHANGELOG.md +0 -1589
  838. data/CODE_OF_CONDUCT.md +0 -77
  839. data/CONTRIBUTORS +0 -3
  840. data/Gemfile +0 -37
  841. data/History.txt +0 -1
  842. data/LICENSE +0 -21
  843. data/Makefile +0 -22
  844. data/OPENAPI_VERSION +0 -1
  845. data/README.md +0 -422
  846. data/Rakefile +0 -34
  847. data/VERSION +0 -1
  848. data/examples/README.md +0 -16
  849. data/examples/example_template.rb +0 -36
  850. data/examples/meter_event_stream.rb +0 -57
  851. data/examples/thinevent_webhook_handler.rb +0 -39
  852. data/justfile +0 -43
  853. data/lib/stripe/resources/usage_record.rb +0 -17
  854. data/lib/stripe/resources/usage_record_summary.rb +0 -12
  855. data/lib/stripe/resources/v2/event.rb +0 -13
  856. data/lib/stripe/resources/v2/event_destination.rb +0 -13
  857. data/lib/stripe/services/invoice_upcoming_lines_service.rb +0 -17
  858. data/lib/stripe/services/subscription_item_usage_record_service.rb +0 -23
  859. data/lib/stripe/services/subscription_item_usage_record_summary_service.rb +0 -19
  860. data/lib/stripe/thin_event.rb +0 -37
  861. data/stripe.gemspec +0 -44
data/CHANGELOG.md DELETED
@@ -1,1589 +0,0 @@
1
- # Changelog
2
- ## 13.4.1 - 2025-01-28
3
- * [#1528](https://github.com/stripe/stripe-ruby/pull/1528) Update generated code
4
- * ⚠️ Bugfix: `invoice` and `line_item_id` can be passed to `update` method in `InvoiceLineItem`.
5
-
6
- ## 13.4.0 - 2025-01-27
7
- * [#1510](https://github.com/stripe/stripe-ruby/pull/1510) Update generated code
8
- * Add support for `close` method on resource `Treasury.FinancialAccount`
9
- * [#1521](https://github.com/stripe/stripe-ruby/pull/1521) pipe rubocop output to devnull
10
- * [#1519](https://github.com/stripe/stripe-ruby/pull/1519) Fixed typos in CONTRIBUTING.MD
11
- * [#1513](https://github.com/stripe/stripe-ruby/pull/1513) add justfile
12
- * [#1515](https://github.com/stripe/stripe-ruby/pull/1515) Added CONTRIBUTING.md file
13
-
14
- ## 13.3.1 - 2025-01-13
15
- * [#1512](https://github.com/stripe/stripe-ruby/pull/1512) Import global configuration for options not available on StripeClient options
16
- * Fixes bug where `StripeClient` was not falling back to global options for options that are not available to be set per-client
17
- * [#1516](https://github.com/stripe/stripe-ruby/pull/1516) ThinEvent reason and livemode
18
- - Add `livemode` and optional `reason` fields to ThinEvent
19
- * [#1518](https://github.com/stripe/stripe-ruby/pull/1518) Pin ubuntu version in Test action
20
- * [#1508](https://github.com/stripe/stripe-ruby/pull/1508) Added pull request template
21
-
22
- ## 13.3.0 - 2024-12-18
23
- * [#1500](https://github.com/stripe/stripe-ruby/pull/1500) This release changes the pinned API version to `2024-12-18.acacia`.
24
-
25
- * [#1507](https://github.com/stripe/stripe-ruby/pull/1507) Pass requestor to all deserialized objects including lists
26
-
27
- * Fixes bug where `StripeObject` retrieved from lists could not be used to make requests, such as `refresh`
28
-
29
- ## 13.2.0 - 2024-11-20
30
- * [#1486](https://github.com/stripe/stripe-ruby/pull/1486) This release changes the pinned API version to `2024-11-20.acacia`.
31
- * Add support for `respond` test helper method on resource `Issuing.Authorization`
32
-
33
- ## 13.1.2 - 2024-11-15
34
- * [#1488](https://github.com/stripe/stripe-ruby/pull/1488) Fix incorrect key in param encoding
35
-
36
- ## 13.1.1 - 2024-11-06
37
- * [#1483](https://github.com/stripe/stripe-ruby/pull/1483) Fix APIResource#retrieve not sending `stripe_version`
38
-
39
- ## 13.1.0 - 2024-10-29
40
- * [#1472](https://github.com/stripe/stripe-ruby/pull/1472) This release changes the pinned API version to `2024-10-28.acacia`.
41
- * Add support for `submit_card` test helper method on resource `Issuing.Card`
42
- * Add support for new resource `V2.EventDestinations`
43
- * Add support for `create`, `retrieve`, `update`, `list`, `delete`, `disable`, `enable` and `ping` methods on resource `V2.EventDestinations`
44
- * [#1476](https://github.com/stripe/stripe-ruby/pull/1476) Fix APIResource#retrieve bug not returning instance of custom resources
45
- * Fix bug in APIResource#refresh and APIResource#retrieve where they returned an instance of `StripeObject` for custom resources. They should now return the instance of the custom resource.
46
-
47
- ## 13.0.2 - 2024-10-23
48
- * [#1473](https://github.com/stripe/stripe-ruby/pull/1473) Always return the result of APIResource#refresh in APIResource.retrieve
49
-
50
- * Fix bug where we would not return the mutated `self` object when calling `APIResource.retrieve`
51
-
52
- ## 13.0.1 - 2024-10-18
53
- * [#1471](https://github.com/stripe/stripe-ruby/pull/1471) update object tags for meter-related classes
54
-
55
- - fixes a bug where the `object` property of the `MeterEvent`, `MeterEventAdjustment`, and `MeterEventSession` didn't match the server.
56
- * [#1470](https://github.com/stripe/stripe-ruby/pull/1470) Cleaned up examples and added documentation
57
-
58
- ## 13.0.0 - 2024-10-01
59
- * [#1458](https://github.com/stripe/stripe-ruby/pull/1458) Support for APIs in the new API version 2024-09-30.acacia
60
-
61
- This release changes the pinned API version to `2024-09-30.acacia`. Please read the [API Upgrade Guide](https://stripe.com/docs/upgrades#2024-09-30.acacia) and carefully review the API changes before upgrading.
62
-
63
- ### ⚠️ Breaking changes
64
-
65
- Please refer to our [migration guide for v13](https://github.com/stripe/stripe-ruby/wiki/Migration-guide-for-v13) for more information about the backwards incompatible changes.
66
-
67
- #### ❗ `StripeClient` and related changes
68
- * Move `StripeClient` and requestor logic to `APIRequestor`.
69
- * `StripeClient#request` is still available, but is deprecated and will be removed. We encourage `StripeClient#raw_request` as a replacement (see other breaking changes for more detail).
70
- * Repurpose and introduce `StripeClient` as the the entry-point to the service-based pattern, a new interface for calling the Stripe API with many benefits over the existing resource-based paradigm. Services are available under the `v1` and `v2` accessors.
71
- * No global config: you can simultaneously use multiple clients with different configuration options (such as API keys)
72
- * No extra API calls. All API endpoints can be accessed with a single method call. You don't have to call `retrieve` before doing an `update`.
73
- * No static methods. Much easier mocking.
74
-
75
- #### Other breaking changes
76
-
77
- * Adjust default values around retries for HTTP requests. You can use the old defaults by setting them explicitly. New values are:
78
- - max retries: `0` -> `2`
79
- - max retry delay (seconds) `2` -> `5`
80
- * Remove `StripeClient#connection_manager`. This was a legacy method from years ago.
81
- * Singleton `retrieve` method now requires `params` to be passed as the first argument. Existing calls to singleton `retrieve` method with only `opts` argument will have to be updated to account for the addition of `params` argument.
82
- ```ruby
83
- params = { expand: ["available"] }
84
- opts = { stripe_account: "acct_123" }
85
-
86
- # ❌ No longer works
87
- Stripe::Balance.retrieve(opts)
88
-
89
- # ✅ Correct way to call retrieve method
90
- Stripe::Balance.retrieve(params, opts)
91
- ```
92
- * Moved the `Stripe.raw_request()` method that was recently added to `StripeClient`. This will use the configuration set on the StripeClient instead of the global configuration used before.
93
- * Remove `APIResource.request`. Instead, use `StripeClient#raw_request` now.
94
- ```ruby
95
- # Instead of
96
- Stripe::APIResource.request(:get, "/v1/endpoint", params, opts)
97
-
98
- # do
99
- client = Stripe::StripeClient.new(...)
100
- resp = client.raw_request(:get, "/v1/endpoint", params: params, opts: opts)
101
- ```
102
- * Add an additional parameter to `APIResource.execute_resource_request`. However, we discourage use of this in favor of `StripeClient#raw_request`.
103
- ```ruby
104
- APIResource.execute_resource_request(method, url, params = {}, opts = {}, usage = [])
105
- # is now, with base_address being one of [:api, :files, :connect, :meter_events]
106
- APIResource.execute_resource_request(method, url, base_address = :api, params = {}, opts = {}, usage = [])
107
- ```
108
- * Change parameters to `APIRequestor.execute_request` (previously `StripeClient.execute_request`). It now returns all request options from our internal request framework as the second value in the returned tuple, instead of only the API key used:
109
- ```ruby
110
- # Before
111
- obj, api_key = StripeClient.execute_request(method, path, api_base: nil,
112
- api_key: nil, headers: {}, params: {}, usage: [])
113
-
114
- # is now, with base_address being one of [:api, :files, :connect, :meter_events]
115
-
116
- obj, opts = APIRequestor.execute_request(method, path, base_address,
117
- params: {}, opts: {}, usage: [])
118
- puts(opts) # will output {api_key: "sk_test_123", stripe_account: "acct_123"}
119
- ```
120
-
121
-
122
- ### Additions
123
- * Add support for new Usage Billing APIs `Billing.MeterEvent`, `Billing.MeterEventAdjustments`, `Billing.MeterEventSession`, `Billing.MeterEventStream` and the new Events API `Core.Events` in the [v2 namespace ](https://docs.corp.stripe.com/api-v2-overview)
124
- * Add method `parse_thin_event()` on the `StripeClient` class to parse [thin events](https://docs.corp.stripe.com/event-destinations#events-overview).
125
-
126
-
127
- ## 12.6.0 - 2024-09-12
128
- * [#1442](https://github.com/stripe/stripe-ruby/pull/1442) Update generated code
129
- * Add support for new resource `InvoiceRenderingTemplate`
130
- * Add support for `archive`, `list`, `retrieve`, and `unarchive` methods on resource `InvoiceRenderingTemplate`
131
- * [#1443](https://github.com/stripe/stripe-ruby/pull/1443) Removed v1/files override
132
-
133
- ## 12.5.0 - 2024-08-08
134
- * [#1440](https://github.com/stripe/stripe-ruby/pull/1440) Update generated code
135
- * Add support for new resources `Billing.AlertTriggered` and `Billing.Alert`
136
- * Add support for `activate`, `archive`, `create`, `deactivate`, `list`, and `retrieve` methods on resource `Alert`
137
- * Add support for `retrieve` method on resource `Tax.Calculation`
138
-
139
- ## 12.4.0 - 2024-07-25
140
- * [#1437](https://github.com/stripe/stripe-ruby/pull/1437) Update generated code
141
- * Add support for `update` method on resource `Checkout.Session`
142
-
143
- ## 12.3.0 - 2024-07-18
144
- * [#1436](https://github.com/stripe/stripe-ruby/pull/1436) Fixed changelog for major release 12.0.0
145
- * [#1435](https://github.com/stripe/stripe-ruby/pull/1435) Add deprecation warning for `APIResource.request`
146
-
147
- ## 12.2.0 - 2024-07-12
148
- * [#1430](https://github.com/stripe/stripe-ruby/pull/1430) Update generated code
149
-
150
- * [#1433](https://github.com/stripe/stripe-ruby/pull/1433) Add usage to raw_request call
151
- * [#1431](https://github.com/stripe/stripe-ruby/pull/1431) Add `raw_request`
152
-
153
- - Adds the ability to make raw requests to the Stripe API, by providing an HTTP method and url. This is an alternative to using `Stripe::APIResource.request(...)` to make custom requests, which is discouraged and will be broken in a future major version.
154
-
155
- ## 12.1.0 - 2024-07-05
156
- * [#1425](https://github.com/stripe/stripe-ruby/pull/1425) Update generated code
157
- * Add support for `add_lines`, `remove_lines`, and `update_lines` methods on resource `Invoice`
158
- * [#1420](https://github.com/stripe/stripe-ruby/pull/1420) Update static methods for delete/list on BankAccount/Card to throw NotImplementedError
159
- * The below methods have been throwing `InvalidRequestError` because the urls used to make the requests have been buggy. Updating them to throw `NotImplementedError` instead just like their counterparts for update & retrieve because they cannot be implemented without the parent id.
160
-
161
- Methods affected | Use these instead in the context of payment method | Use these in the context of external accounts
162
- ------ | ------ | ----
163
- Stripe:: BankAccount.delete | Stripe::Customer.delete_source | Stripe::Account.delete_external_account
164
- Stripe:: BankAccount.list | Stripe::Customer.list_sources | Stripe::Customer.list_external_accounts
165
- Stripe:: Card.delete | Stripe::Customer.delete_source | Stripe::Account.delete_external_account
166
- Stripe:: Card.list | Stripe::Customer.list_sources | Stripe::Customer.list_external_accounts
167
- * [#1427](https://github.com/stripe/stripe-ruby/pull/1427) Regenerate rbis
168
- * [#1426](https://github.com/stripe/stripe-ruby/pull/1426) Remove coveralls and re-added JRuby
169
-
170
- ## 12.0.0 - 2024-06-24
171
- * [#1418](https://github.com/stripe/stripe-ruby/pull/1418) Add missing static method for verify on BankAccount
172
- * [#1419](https://github.com/stripe/stripe-ruby/pull/1419)
173
-
174
- This release changes the pinned API version to 2024-06-20. Please read the [API Upgrade Guide](https://stripe.com/docs/upgrades#2024-06-20) and carefully review the API changes before upgrading.
175
-
176
- ### Additions
177
-
178
- * Add support for `finalize_amount` test helper method on resource `Issuing.Authorization`
179
-
180
- ## 11.7.0 - 2024-06-13
181
- * [#1415](https://github.com/stripe/stripe-ruby/pull/1415) Deprecate StripeClient#request
182
- * Add deprecation warning for `StripeClient#request`. This helper method will be removed in a future major version. To access response objects, use the `last_response` property on the returned resource instead. Refer to [Accessing a response object](https://github.com/stripe/stripe-ruby?tab=readme-ov-file#accessing-a-response-object) in the README for usage details.
183
-
184
- ## 11.6.0 - 2024-05-30
185
- * [#1404](https://github.com/stripe/stripe-ruby/pull/1404) Add method to list invoice line items
186
- * Add methods `list_lines()` on the class `Invoice` to list the invoice line items
187
-
188
- ## 11.5.0 - 2024-05-23
189
- * This release has no changes.
190
-
191
- ## 11.4.0 - 2024-05-09
192
- * [#1397](https://github.com/stripe/stripe-ruby/pull/1397) Update generated code
193
- * Add support for `update` test helper method on resources `Treasury.OutboundPayment` and `Treasury.OutboundTransfer`
194
- * [#1399](https://github.com/stripe/stripe-ruby/pull/1399) Pass params to transfer reversal
195
- * Allow `Stripe::Transfer.retrieve_reversal()` to accept a params hash as the third argument, followed by opts. No changes to existing calls are necessary, but in a future major version this method will be updated to only accept params as the first argument. Fixes [#1393](https://github.com/stripe/stripe-ruby/issues/1393)
196
- * [#1389](https://github.com/stripe/stripe-ruby/pull/1389) Removed jaro_winkler as a dependency
197
- * [#1396](https://github.com/stripe/stripe-ruby/pull/1396) Start tracking `StripeClient#request` usage
198
-
199
- ## 11.3.0 - 2024-05-02
200
- * [#1387](https://github.com/stripe/stripe-ruby/pull/1387) Update generated code
201
-
202
- * [#1392](https://github.com/stripe/stripe-ruby/pull/1392) Deprecate Ruby methods based on OpenAPI spec
203
- - Mark as deprecated the `approve` and `decline` methods in `lib/stripe/resources/issuing/authorization.rb`. Instead, [respond directly to the webhook request to approve an authorization](https://stripe.com/docs/issuing/controls/real-time-authorizations#authorization-handling).
204
- * [#1391](https://github.com/stripe/stripe-ruby/pull/1391) Add Ruby 3.3 to CI test matrix
205
-
206
- ## 11.2.0 - 2024-04-18
207
- * [#1385](https://github.com/stripe/stripe-ruby/pull/1385) Update generated code
208
- * Add support for `create_preview` method on resource `Invoice`
209
-
210
- ## 11.1.0 - 2024-04-16
211
- * [#1379](https://github.com/stripe/stripe-ruby/pull/1379) Update generated code
212
- * Add support for new resource `Entitlements.ActiveEntitlementSummary`
213
-
214
- ## 11.0.0 - 2024-04-10
215
- * [#1374](https://github.com/stripe/stripe-ruby/pull/1374)
216
-
217
- * This release changes the pinned API version to `2024-04-10`. Please read the [API Upgrade Guide](https://stripe.com/docs/upgrades#2024-04-10) and carefully review the API changes before upgrading.
218
-
219
- ### ⚠️ Breaking changes
220
-
221
- * When no `x-stripe-should-retry` header is set in the response, the library now retries all requests with `status >= 500`, not just non-POST methods.
222
-
223
- ## 10.15.0 - 2024-04-09
224
- * [#1377](https://github.com/stripe/stripe-ruby/pull/1377) Add last_response to StripeObject
225
- * Users can now retrieve raw response from the returned resource, using the `last_response` property. See [README](https://github.com/stripe/stripe-ruby/blob/master/README.md) for an example.
226
- * [#1372](https://github.com/stripe/stripe-ruby/pull/1372) Update generated code
227
- * Add support for new resources `Entitlements.ActiveEntitlement` and `Entitlements.Feature`
228
- * Add support for `list` and `retrieve` methods on resource `ActiveEntitlement`
229
- * Add support for `create`, `list`, `retrieve`, and `update` methods on resource `Feature`
230
- * [#1366](https://github.com/stripe/stripe-ruby/pull/1366) Move executables to `exe` folder
231
-
232
- ## 10.14.0 - 2024-03-28
233
- * [#1369](https://github.com/stripe/stripe-ruby/pull/1369) Update generated code
234
- * Add support for new resources `Billing.MeterEventAdjustment`, `Billing.MeterEvent`, and `Billing.Meter`
235
- * Add support for `create`, `deactivate`, `list`, `reactivate`, `retrieve`, and `update` methods on resource `Meter`
236
- * Add support for `create` method on resources `MeterEventAdjustment` and `MeterEvent`
237
-
238
- ## 10.13.0 - 2024-03-21
239
- * [#1367](https://github.com/stripe/stripe-ruby/pull/1367) Update generated code
240
- * Add support for new resources `ConfirmationToken` and `Forwarding.Request`
241
- * Add support for `retrieve` method on resource `ConfirmationToken`
242
- * Add support for `create`, `list`, and `retrieve` methods on resource `Request`
243
- * [#1362](https://github.com/stripe/stripe-ruby/pull/1362) Exclude sorbet directory and tapioca script when packing gem
244
-
245
- ## 10.12.0 - 2024-03-14
246
- * [#1359](https://github.com/stripe/stripe-ruby/pull/1359) Update generated code
247
- * Add support for new resources `Issuing.PersonalizationDesign` and `Issuing.PhysicalBundle`
248
- * Add support for `create`, `list`, `retrieve`, and `update` methods on resource `PersonalizationDesign`
249
- * Add support for `list` and `retrieve` methods on resource `PhysicalBundle`
250
- * [#1354](https://github.com/stripe/stripe-ruby/pull/1354) Refactor after SDK based generation pattern
251
- * [#1347](https://github.com/stripe/stripe-ruby/pull/1347) Reorder methods with lexographical sort
252
- * [#1355](https://github.com/stripe/stripe-ruby/pull/1355) Disable Metrics/ClassLength
253
- * [#1351](https://github.com/stripe/stripe-ruby/pull/1351) Update CHANGELOG.md
254
-
255
- ## 10.11.0 - 2024-02-29
256
- * [#1348](https://github.com/stripe/stripe-ruby/pull/1348) Use sorbet gem instead of sorbet-static
257
- * [#1342](https://github.com/stripe/stripe-ruby/pull/1342) Update generated code
258
- * Add `list_refunds` and `retrieve_refund` methods on resource `Charge`.
259
- * [#1345](https://github.com/stripe/stripe-ruby/pull/1345) Update README to use add_beta_version
260
-
261
- ## 10.10.0 - 2024-02-22
262
- * [#1336](https://github.com/stripe/stripe-ruby/pull/1336) Update generated code
263
- - Add `InvoiceLineItem.update` method.
264
- * [#1334](https://github.com/stripe/stripe-ruby/pull/1334) Add TaxIds API
265
- * Add support for `all`, `create`, and `retrieve` methods on resource `TaxId`
266
- * The `delete` method now sends a DELETE request to `/v1/tax_ids/{id}` instead of `/v1/customers/{customer}/tax_ids/{id}`. The endpoints are functionally the same when operating on a Customer Tax ID.
267
- * The `resource_url` method on `TaxId` now returns the top-level `/v1/tax_ids/{id}` path instead of the `/v1/customers/{customer}/tax_ids/{id}` path.
268
-
269
- ## 10.9.0 - 2024-02-15
270
- * [#1329](https://github.com/stripe/stripe-ruby/pull/1329) Update generated code
271
- * Fixed bug where `TaxId` resource `delete` method sent request to wrong URL (https://github.com/stripe/stripe-ruby/issues/1333)
272
- * [#1324](https://github.com/stripe/stripe-ruby/pull/1324) Start running Sorbet in CI
273
- * [#1327](https://github.com/stripe/stripe-ruby/pull/1327) Add methods for dynamically referenced constants
274
-
275
- ## 10.8.0 - 2024-02-08
276
- * [#1322](https://github.com/stripe/stripe-ruby/pull/1322) Update generated code
277
- * [#1323](https://github.com/stripe/stripe-ruby/pull/1323) Extract other CRUDL api operations from mixins
278
- * Extract more CRUDL operations, namely `create`, `delete`, `update`, and `list` into the resources. These methods will no longer rely on the APIOperation mixins.
279
- * [#1314](https://github.com/stripe/stripe-ruby/pull/1314) Update mocha gem to 1.16
280
-
281
- ## 10.7.1 - 2024-02-05
282
- * [#1320](https://github.com/stripe/stripe-ruby/pull/1320) Remove spurious _search deprecation messages (https://github.com/stripe/stripe-ruby/issues/1319)
283
-
284
- ## 10.7.0 - 2024-02-01
285
- * [#1317](https://github.com/stripe/stripe-ruby/pull/1317) Remove list method in child resources
286
- * Removes list method mixin from child resources, as these methods always return `InvalidRequestError` and never succeed
287
- * [#1311](https://github.com/stripe/stripe-ruby/pull/1311) Use the deprecation gem in search and clean up usage of the gem
288
-
289
- ## 10.6.0 - 2024-01-12
290
- * [#1310](https://github.com/stripe/stripe-ruby/pull/1310) Update generated code
291
- * Add support for new resource `CustomerSession`
292
- * Add support for `create` method on resource `CustomerSession`
293
-
294
- ## 10.5.0 - 2024-01-04
295
- * [#1306](https://github.com/stripe/stripe-ruby/pull/1306) Update generated code
296
- * Add support for `retrieve` method on resource `Tax.Registration`
297
-
298
- ## 10.4.0 - 2023-12-22
299
- * [#1303](https://github.com/stripe/stripe-ruby/pull/1303) Update generated code
300
- * Add support for new resource `FinancialConnections.Transaction`
301
- * Add support for `list` and `retrieve` methods on resource `Transaction`
302
- * Add support for `subscribe` and `unsubscribe` methods on resource `FinancialConnections.Account`
303
- * [#1304](https://github.com/stripe/stripe-ruby/pull/1304) Add support for updatable singleton resources
304
-
305
- ## 10.3.0 - 2023-12-14
306
- * [#1294](https://github.com/stripe/stripe-ruby/pull/1294) Support sending parameters inside singleton retrieve
307
-
308
- ## 10.2.0 - 2023-11-30
309
- * [#1292](https://github.com/stripe/stripe-ruby/pull/1292) Update generated code
310
- * Add support for new resources `Climate.Order`, `Climate.Product`, and `Climate.Supplier`
311
- * Add support for `cancel`, `create`, `list`, `retrieve`, and `update` methods on resource `Order`
312
- * Add support for `list` and `retrieve` methods on resources `Product` and `Supplier`
313
- * [#1295](https://github.com/stripe/stripe-ruby/pull/1295) Upgrade rubocop
314
- * [#1291](https://github.com/stripe/stripe-ruby/pull/1291) Update generated code
315
-
316
- * [#1290](https://github.com/stripe/stripe-ruby/pull/1290) Update generated code
317
-
318
- * [#1288](https://github.com/stripe/stripe-ruby/pull/1288) Update generated code
319
-
320
-
321
- ## 10.1.0 - 2023-11-02
322
- * [#1286](https://github.com/stripe/stripe-ruby/pull/1286) Update generated code
323
- * Add support for new resource `Tax.Registration`
324
- * Add support for `create`, `list`, and `update` methods on resource `Registration`
325
-
326
- ## 10.0.0 - 2023-10-16
327
- * This release changes the pinned API version to `2023-10-16`. Please read the [API Upgrade Guide](https://stripe.com/docs/upgrades#2023-10-16) and carefully review the API changes before upgrading `stripe-ruby`.
328
- * [#1283](https://github.com/stripe/stripe-ruby/pull/1283) Update generated code
329
- - Updated pinned API version
330
- * [#1281](https://github.com/stripe/stripe-ruby/pull/1281) Update generated code
331
- * Documentation only changes
332
-
333
- ## 9.4.0 - 2023-10-05
334
- * [#1277](https://github.com/stripe/stripe-ruby/pull/1277) Update generated code
335
- * Add support for new resources `Issuing.Token`
336
- * Add support for `list`, `retrieve`, and `update` methods on resource `Token`
337
-
338
- ## 9.3.0 - 2023-09-14
339
- * [#1272](https://github.com/stripe/stripe-ruby/pull/1272) Update generated code
340
- * Add support for new resource `PaymentMethodConfiguration`
341
- * Add support for `create`, `list`, `retrieve`, and `update` methods on resource `PaymentMethodConfiguration`
342
- * [#1271](https://github.com/stripe/stripe-ruby/pull/1271) Update generated code
343
- * Add support for `capture`, `create`, `expire`, `increment`, and `reverse` test helper methods on resource `Issuing.Authorization`
344
- * Add support for `create_force_capture`, `create_unlinked_refund`, and `refund` test helper methods on resource `Issuing.Transaction`
345
-
346
- ## 9.2.0 - 2023-09-07
347
- * [#1267](https://github.com/stripe/stripe-ruby/pull/1267) Update generated code
348
- * Add support for new resource `PaymentMethodDomain`
349
- * Add support for `create`, `list`, `retrieve`, `update`, and `validate` methods on resource `PaymentMethodDomain`
350
-
351
- ## 9.1.0 - 2023-08-31
352
- * [#1266](https://github.com/stripe/stripe-ruby/pull/1266) Update generated code
353
- * Add support for new resource `AccountSession`
354
- * Add support for `create` method on resource `AccountSession`
355
- * [#1262](https://github.com/stripe/stripe-ruby/pull/1262) Explicitly format timestamp in SignatureVerificationError message
356
-
357
-
358
- ## 9.0.0 - 2023-08-16
359
- **⚠️ ACTION REQUIRED: the breaking change in this release likely affects you ⚠️**
360
-
361
- * [#1253](https://github.com/stripe/stripe-ruby/pull/1253) [#1260](https://github.com/stripe/stripe-ruby/pull/1260) Pin latest API version as the default
362
-
363
- In this release, Stripe API Version `2023-08-16` (the latest at time of release) will be sent by default on all requests. This is a significant change with wide ramifications. The API version affects the properties you see on responses, the parameters you are allowed to send on requests, and so on. The previous default was to use your [Stripe account's default API version](https://stripe.com/docs/development/dashboard/request-logs#view-your-default-api-version).
364
-
365
- To successfully upgrade to stripe-ruby v9, you must either
366
-
367
- 1. **(Recommended) Upgrade your integration to be compatible with API Version `2023-08-16`.**
368
-
369
- Please read the API Changelog carefully for each API Version from `2023-08-16` back to your [Stripe account's default API version](https://stripe.com/docs/development/dashboard/request-logs#view-your-default-api-version). Determine if you are using any of the APIs that have changed in a breaking way, and adjust your integration accordingly. Carefully test your changes with Stripe [Test Mode](https://stripe.com/docs/keys#test-live-modes) before deploying them to production.
370
-
371
- You can read the [v9 migration guide](https://github.com/stripe/stripe-ruby/wiki/Migration-guide-for-v9) for more detailed instructions.
372
- 2. **(Alternative option) Specify a version other than `2023-08-16` when initializing `stripe-ruby`.**
373
-
374
- If you were previously initializing stripe-ruby without an explicit API Version, you can postpone modifying your integration by specifying a version equal to your [Stripe account's default API version](https://stripe.com/docs/development/dashboard/request-logs#view-your-default-api-version). For example:
375
-
376
- ```diff
377
- require 'stripe'
378
- Stripe.api_key = "sk_test_..."
379
- + Stripe.api_version = '2020-08-27'
380
- ```
381
-
382
- If you were already initializing stripe-ruby with an explicit API Version, upgrading to v9 will not affect your integration.
383
-
384
- Read the [v9 migration guide](https://github.com/stripe/stripe-ruby/wiki/Migration-guide-for-v9) for more details.
385
-
386
- Going forward, each major release of this library will be *pinned* by default to the latest Stripe API Version at the time of release.
387
-
388
- That is, instead of upgrading stripe-ruby and separately upgrading your Stripe API Version through the Stripe Dashboard. whenever you upgrade major versions of stripe-ruby, you should also upgrade your integration to be compatible with the latest Stripe API version.
389
-
390
- ## 8.7.0 - 2023-08-10
391
- * [#1256](https://github.com/stripe/stripe-ruby/pull/1256) Update generated code
392
- Add resources `Tax::CalculationLineItem`, `Tax::TransactionLineItem`, and `Treasury::FinancialAccountFeatures`. These resources have no methods on them, but do represent the return type of methods elsewhere.
393
-
394
- ## 8.6.0 - 2023-07-13
395
- * [#1244](https://github.com/stripe/stripe-ruby/pull/1244) Update generated code
396
- * Add support for new resource `Tax.Settings`
397
- * Add support for `retrieve` and `update` methods on resource `Settings`
398
- * [#1241](https://github.com/stripe/stripe-ruby/pull/1241) Update generated code
399
-
400
- * [#1209](https://github.com/stripe/stripe-ruby/pull/1209) Update shoulda-context version
401
- * [#1235](https://github.com/stripe/stripe-ruby/pull/1235) Allow "error" string as log level
402
- * [#1238](https://github.com/stripe/stripe-ruby/pull/1238) Update log level error message to include `error`
403
- * [#1231](https://github.com/stripe/stripe-ruby/pull/1231) fix: variable typo in README for instrumentation
404
- * [#1234](https://github.com/stripe/stripe-ruby/pull/1234) Update generated code
405
-
406
- * [#1230](https://github.com/stripe/stripe-ruby/pull/1230) Update generated code
407
- * Release specs are identical.
408
- * [#1226](https://github.com/stripe/stripe-ruby/pull/1226) Update generated code
409
-
410
- * [#1223](https://github.com/stripe/stripe-ruby/pull/1223) Update generated code
411
-
412
- * [#1225](https://github.com/stripe/stripe-ruby/pull/1225) Downgrade jaro_winkler
413
- * [#1219](https://github.com/stripe/stripe-ruby/pull/1219) Update generated code
414
-
415
- Documentation updates.
416
- * [#1215](https://github.com/stripe/stripe-ruby/pull/1215) Update generated code
417
-
418
- * [#1208](https://github.com/stripe/stripe-ruby/pull/1208) Update generated code
419
-
420
- * [#1204](https://github.com/stripe/stripe-ruby/pull/1204) Update generated code
421
-
422
-
423
- ## 8.5.0 - 2023-03-30
424
- * [#1203](https://github.com/stripe/stripe-ruby/pull/1203) Update generated code
425
- * Remove support for `create` method on resource `Tax.Transaction`
426
- * This is not a breaking change, as this method was deprecated before the Tax Transactions API was released in favor of the `create_from_calculation` method.
427
- * [#1201](https://github.com/stripe/stripe-ruby/pull/1201) Update save deprecation message
428
-
429
- ## 8.4.0 - 2023-03-23
430
- * [#1197](https://github.com/stripe/stripe-ruby/pull/1197) Update generated code (new)
431
- * Add support for new resources `Tax.CalculationLineItem`, `Tax.Calculation`, `Tax.TransactionLineItem`, and `Tax.Transaction`
432
- * Add support for `create` and `list_line_items` methods on resource `Calculation`
433
- * Add support for `create_from_calculation`, `create_reversal`, `create`, `list_line_items`, and `retrieve` methods on resource `Transaction`
434
- * [#1152](https://github.com/stripe/stripe-ruby/pull/1152) Symbolize hash keys inside `convert_to_stripe_object_with_params`
435
-
436
- ## 8.3.0 - 2023-02-16
437
- * [#1175](https://github.com/stripe/stripe-ruby/pull/1175) API Updates
438
- * Add support for `refund_payment` method on resource `Terminal.Reader`
439
-
440
- ## 8.2.0 - 2023-02-02
441
- * [#1173](https://github.com/stripe/stripe-ruby/pull/1173) API Updates
442
- * Add support for `resume` method on resource `Subscription`
443
- * [#1171](https://github.com/stripe/stripe-ruby/pull/1171) Remove unused `partial` param from `initialize_from`
444
-
445
- ## 8.1.0 - 2023-01-12
446
- * [#1162](https://github.com/stripe/stripe-ruby/pull/1162) Improve request events instrumentation
447
-
448
- ## 8.0.0 - 2022-11-16
449
- * [#1144](https://github.com/stripe/stripe-ruby/pull/1144) Next major release changes
450
-
451
- Breaking changes that arose during code generation of the library that we postponed for the next major version. For changes to the Stripe products, read more at https://stripe.com/docs/upgrades#2022-11-15.
452
-
453
- "⚠️" symbol highlights breaking changes.
454
-
455
- ### Deprecated
456
- - The `save` method is deprecated. Prefer the static `update` method that doesn't require retrieval of the resource to update it.
457
- ``` ruby
458
- # before
459
- refund = Stripe::Refund.retrieve("re_123")
460
- refund.description = "Refund description"
461
- refund.save
462
-
463
- # after
464
- Stripe::Refund.update("re_123", description: "Refund description")
465
- ```
466
-
467
- ### ⚠️ Removed
468
- - Removed deprecated `Sku` resource.
469
- - Removed deprecated `Orders` resource.
470
- - Removed deprecated `delete` method on `Subscription` resource. Please use `cancel` method instead.
471
- ```ruby
472
- # before
473
- Stripe::Subscription::delete("sub_12345")
474
-
475
- # after
476
- Stripe::Subscription::cancel("sub_12345")
477
- ```
478
-
479
-
480
- ## 7.1.0 - 2022-08-19
481
- * [#1116](https://github.com/stripe/stripe-ruby/pull/1116) API Updates
482
- * Add support for new resource `CustomerCashBalanceTransaction`
483
- * [#1118](https://github.com/stripe/stripe-ruby/pull/1118) Update AllowedChars in rubocop config
484
- * [#1117](https://github.com/stripe/stripe-ruby/pull/1117) Refresh rubocop config.
485
- * [#1115](https://github.com/stripe/stripe-ruby/pull/1115) Add a support section to the readme
486
-
487
- ## 7.0.0 - 2022-08-02
488
-
489
- Breaking changes that arose during code generation of the library that we postponed for the next major version. For changes to the SDK, read more detailed description at https://github.com/stripe/stripe-ruby/wiki/Migration-guide-for-v7. For changes to the Stripe products, read more at https://stripe.com/docs/upgrades#2022-08-01.
490
-
491
- "⚠️" symbol highlights breaking changes.
492
-
493
- * [#1106](https://github.com/stripe/stripe-ruby/pull/1106) API Updates
494
- * [#1092](https://github.com/stripe/stripe-ruby/pull/1092) API Updates
495
- * [#1090](https://github.com/stripe/stripe-ruby/pull/1090) Use auto-generation for `Invoice` methods
496
- * [#1103](https://github.com/stripe/stripe-ruby/pull/1103) Next major release changes
497
-
498
- ### ⚠️ Changed
499
- * `retrieve_cash_balance` and `update_cash_balance` methods on `Customer` resource no longer requires the second argument to always be `nil`. The methods now now take in `customer_id`, `params`, and `opts` parameters.
500
- * Update default bundle of CA certificates to April 26, 2022.
501
-
502
- ### Deprecated
503
- * Deprecate `delete` method on `Subscription` resource. Please use `cancel` method instead.
504
-
505
- ### ⚠️ Removed
506
- * Remove `details` method from `Issuing.Card` resource. The method was not supported.
507
- * Remove `Issuing.CardDetails` resource. Read more at https://stripe.com/docs/issuing/cards/virtual.
508
- * Remove `create` method from `ReportType` resource. The method was not supported.
509
- * Remove `usage_record_summaries` method from `SubscriptionItem` resource. Please use `list_usage_record_summaries` method instead.
510
- * Remove `AlipayAccount`, `BitcoinReceiver`, `BitcoinTransaction`, `Issuing::CardDetails`, `Recipient`, ` RecipientTransfer`, and `ThreeDSecure` resources. The resources were deprecated or no longer in use.
511
- * Remove ability to list `Card` resource for a `Recipient`.
512
- * Remove `cancel` method from `Transfer` resource. The method was deprecated.
513
-
514
- ## 6.5.0 - 2022-06-29
515
- * [#1084](https://github.com/stripe/stripe-ruby/pull/1084) API Updates
516
- * Add support for `deliver_card`, `fail_card`, `return_card`, and `ship_card` test helper methods on resource `Issuing.Card`
517
- * [#1076](https://github.com/stripe/stripe-ruby/pull/1076) fix: Update logging to coerce ASCII-8BIT into UTF-8.
518
-
519
- ## 6.4.0 - 2022-06-17
520
- * [#1073](https://github.com/stripe/stripe-ruby/pull/1073) API Updates
521
- * Add support for `fund_cash_balance` test helper method on resource `Customer`
522
- * [#1074](https://github.com/stripe/stripe-ruby/pull/1074) Support updating pre-release versions
523
- * [#1072](https://github.com/stripe/stripe-ruby/pull/1072) Trigger workflows on beta branches
524
- * [#1071](https://github.com/stripe/stripe-ruby/pull/1071) Use request_stripe_object for all requests
525
- * [#1070](https://github.com/stripe/stripe-ruby/pull/1070) API Updates
526
-
527
- Switch from using meta-programing to generating explicit methods for custom methods.
528
- * [#1069](https://github.com/stripe/stripe-ruby/pull/1069) chore: Stop special implementation of Account.persons method.
529
-
530
- ## 6.3.0 - 2022-06-08
531
- * [#1063](https://github.com/stripe/stripe-ruby/pull/1063) fix: Update cash balance methods to no longer require nested ID.
532
-
533
- ## 6.2.0 - 2022-05-23
534
- * [#1060](https://github.com/stripe/stripe-ruby/pull/1060) API Updates
535
- * Add support for new resource `Apps.Secret`
536
-
537
- ## 6.1.0 - 2022-05-19
538
- * [#1057](https://github.com/stripe/stripe-ruby/pull/1057) API Updates
539
- * Add support for new resources `Treasury.CreditReversal`, `Treasury.DebitReversal`, `Treasury.FinancialAccountFeatures`, `Treasury.FinancialAccount`, `Treasury.FlowDetails`, `Treasury.InboundTransfer`, `Treasury.OutboundPayment`, `Treasury.OutboundTransfer`, `Treasury.ReceivedCredit`, `Treasury.ReceivedDebit`, `Treasury.TransactionEntry`, and `Treasury.Transaction`
540
- * Add support for `retrieve_payment_method` method on resource `Customer`
541
- * Add support for `list_owners` and `list` methods on resource `FinancialConnections.Account`
542
-
543
-
544
-
545
- ## 6.0.0 - 2022-05-09
546
- * [#1056](https://github.com/stripe/stripe-ruby/pull/1056) API Updates
547
- Major version release. The [migration guide](https://github.com/stripe/stripe-ruby/wiki/Migration-Guide-for-v6) contains more information.
548
-
549
- (⚠️ = breaking changes):
550
- * ⚠️ Replace the legacy `Order` API with the new `Order` API.
551
- * New methods: `cancel`, `list_line_items`, `reopen`, and `submit`
552
- * Removed methods: `pay` and `return_order`
553
- * Removed resources: `OrderItem` and `OrderReturn`
554
- * ⚠️ Rename `FinancialConnections::Account.refresh` to `FinancialConnections::Account.refresh_account
555
-
556
- ## 5.55.0 - 2022-05-05
557
- * [#1055](https://github.com/stripe/stripe-ruby/pull/1055) API Updates
558
- * Add support for new resources `FinancialConnections.AccountOwner`, `FinancialConnections.AccountOwnership`, `FinancialConnections.Account`, and `FinancialConnections.Session`
559
-
560
-
561
- ## 5.54.0 - 2022-05-03
562
- * [#1053](https://github.com/stripe/stripe-ruby/pull/1053) API Updates
563
- * Add support for new resource `CashBalance`
564
-
565
- ## 5.53.0 - 2022-04-21
566
- * [#1050](https://github.com/stripe/stripe-ruby/pull/1050) API Updates
567
- * Add support for `expire` test helper method on resource `Refund`
568
-
569
- ## 5.52.0 - 2022-04-18
570
- * [#1046](https://github.com/stripe/stripe-ruby/pull/1046) [#1047](https://github.com/stripe/stripe-ruby/pull/1047) API Updates
571
- * Add support for new resources `FundingInstructions` and `Terminal.Configuration`
572
-
573
- ## 5.51.0 - 2022-04-15
574
- * [#1046](https://github.com/stripe/stripe-ruby/pull/1046) This release was incomplete and was yanked from RubyGems immediately after it was published.
575
-
576
- ## 5.50.0 - 2022-04-13
577
- * [#1045](https://github.com/stripe/stripe-ruby/pull/1045) API Updates
578
- * Add support for `increment_authorization` method on resource `PaymentIntent`
579
-
580
- ## 5.49.0 - 2022-04-08
581
- * [#1043](https://github.com/stripe/stripe-ruby/pull/1043) API Updates
582
- * Add support for `apply_customer_balance` method on resource `PaymentIntent`
583
-
584
- ## 5.48.0 - 2022-03-30
585
- * [#1041](https://github.com/stripe/stripe-ruby/pull/1041) API Updates
586
- * Add support for `cancel_action`, `process_payment_intent`, `process_setup_intent`, and `set_reader_display` methods on resource `Terminal.Reader`
587
-
588
- ## 5.47.0 - 2022-03-29
589
- * [#1040](https://github.com/stripe/stripe-ruby/pull/1040) API Updates
590
- * Add support for Search API
591
- * Add support for `search` method on resources `Charge`, `Customer`, `Invoice`, `PaymentIntent`, `Price`, `Product`, and `Subscription`
592
-
593
- * [#1034](https://github.com/stripe/stripe-ruby/pull/1034) Add supporting classes for test helper generation
594
-
595
- ## 5.46.0 - 2022-03-23
596
- * [#1039](https://github.com/stripe/stripe-ruby/pull/1039) API Updates
597
- * Add support for `cancel` method on resource `Refund`
598
- * [#992](https://github.com/stripe/stripe-ruby/pull/992) Add support for Search API
599
-
600
- ## 5.45.0 - 2022-03-01
601
- * [#1035](https://github.com/stripe/stripe-ruby/pull/1035) API Updates
602
- * Add support for new resource `TestHelpers.TestClock`
603
-
604
- ## 5.44.0 - 2022-02-16
605
- * [#1032](https://github.com/stripe/stripe-ruby/pull/1032) API Updates
606
- * Add support for `verify_microdeposits` method on resources `PaymentIntent` and `SetupIntent`
607
-
608
- ## 5.43.0 - 2022-01-20
609
- * [#1031](https://github.com/stripe/stripe-ruby/pull/1031) API Updates
610
- * Add support for new resource `PaymentLink`
611
-
612
- ## 5.42.0 - 2021-12-13
613
- * [#1022](https://github.com/stripe/stripe-ruby/pull/1022) Add connection manager logging and include object IDs in logging.
614
-
615
- ## 5.41.0 - 2021-11-16
616
- * [#1017](https://github.com/stripe/stripe-ruby/pull/1017) API Updates
617
- * Add support for new resource `ShippingRate`
618
-
619
- ## 5.40.0 - 2021-11-11
620
- * [#1015](https://github.com/stripe/stripe-ruby/pull/1015) API Updates
621
- * Add support for `expire` method on resource `Checkout.Session`
622
- * [#1013](https://github.com/stripe/stripe-ruby/pull/1013) Add tests for child resources.
623
- * [#1012](https://github.com/stripe/stripe-ruby/pull/1012) Add tests for namespaced resources.
624
- * [#1011](https://github.com/stripe/stripe-ruby/pull/1011) codegen: 3 more files
625
-
626
- ## 5.39.0 - 2021-10-11
627
- * [#1010](https://github.com/stripe/stripe-ruby/pull/1010) API Updates
628
- * Add support for `list_payment_methods` method on resource `Customer`
629
-
630
- ## 5.38.0 - 2021-08-10
631
- * [#993](https://github.com/stripe/stripe-ruby/pull/993) Add `request_id` to RequestEndEvent
632
- * [#991](https://github.com/stripe/stripe-ruby/pull/991) Codegen more files
633
- * [#989](https://github.com/stripe/stripe-ruby/pull/989) Remove unused API error types from docs.
634
-
635
- ## 5.37.0 - 2021-07-14
636
- * [#988](https://github.com/stripe/stripe-ruby/pull/988) API Updates
637
- * Add support for `list_computed_upfront_line_items` method on resource `Quote`
638
-
639
- ## 5.36.0 - 2021-07-09
640
- * [#987](https://github.com/stripe/stripe-ruby/pull/987) Add support for `Quote` API
641
-
642
- ## 5.35.0 - 2021-06-30
643
- * [#985](https://github.com/stripe/stripe-ruby/pull/985) Update normalize_opts to use dup instead of clone.
644
- * [#982](https://github.com/stripe/stripe-ruby/pull/982) Deprecate travis
645
- * [#983](https://github.com/stripe/stripe-ruby/pull/983) Add support for making a request and receiving the response as a stream.
646
-
647
- ## 5.34.0 - 2021-06-04
648
- * [#981](https://github.com/stripe/stripe-ruby/pull/981) API Updates
649
- * Add support for `TaxCode` API.
650
-
651
- ## 5.33.0 - 2021-05-19
652
- * [#979](https://github.com/stripe/stripe-ruby/pull/979) Add support for the Identify VerificationSession and VerificationReport APIs
653
-
654
- ## 5.32.1 - 2021-04-05
655
- * Correct use of regexp `match` in gemspec for old versions of Ruby
656
-
657
- ## 5.32.0 - 2021-04-05
658
- * [#973](https://github.com/stripe/stripe-ruby/pull/973) Reduce packed gem size
659
-
660
- ## 5.31.0 - 2021-04-02
661
- * [#968](https://github.com/stripe/stripe-ruby/pull/968) Allow StripeClient to be configured per instance
662
- * [#971](https://github.com/stripe/stripe-ruby/pull/971) On config change, only clear connection managers for changed config
663
- * [#972](https://github.com/stripe/stripe-ruby/pull/972) Rename `Stripe.configuration` to `Stripe.config`
664
- * [#970](https://github.com/stripe/stripe-ruby/pull/970) Reserve some critical field names when adding `StripeObject` accessors
665
- * [#967](https://github.com/stripe/stripe-ruby/pull/967) CI: github actions
666
-
667
- ## 5.30.0 - 2021-02-22
668
- * [#965](https://github.com/stripe/stripe-ruby/pull/965) Add support for the Billing Portal Configuration API
669
-
670
- ## 5.29.1 - 2021-02-09
671
- * [#964](https://github.com/stripe/stripe-ruby/pull/964) Fix return value of `Customer#delete_discount`
672
-
673
- ## 5.29.0 - 2021-01-05
674
- * [#952](https://github.com/stripe/stripe-ruby/pull/952) Allow client_id configuration on instance config
675
-
676
- ## 5.28.0 - 2020-10-14
677
- * [#950](https://github.com/stripe/stripe-ruby/pull/950) Add configuration option for `write_timeout` for connections on Ruby 2.6+
678
-
679
- ## 5.27.0 - 2020-10-14
680
- * [#951](https://github.com/stripe/stripe-ruby/pull/951) Add support for the Payout Reverse API
681
-
682
- ## 5.26.0 - 2020-09-29
683
- * [#949](https://github.com/stripe/stripe-ruby/pull/949) Add support for the `SetupAttempt` resource and List API
684
-
685
- ## 5.25.0 - 2020-09-02
686
- * [#944](https://github.com/stripe/stripe-ruby/pull/944) Add support for the Issuing Dispute Submit API
687
-
688
- ## 5.24.0 - 2020-08-26
689
- * [#939](https://github.com/stripe/stripe-ruby/pull/939) Extract configurations into separate object
690
- * [#940](https://github.com/stripe/stripe-ruby/pull/940) Fix typo in documentation of `stripe_object.rb`
691
-
692
- ## 5.23.1 - 2020-08-05
693
- * [#936](https://github.com/stripe/stripe-ruby/pull/936) Rename API resource's `request` method
694
-
695
- ## 5.23.0 - 2020-08-05
696
- * [#937](https://github.com/stripe/stripe-ruby/pull/937) Add support for the `PromotionCode` resource and APIs
697
-
698
- ## 5.22.0 - 2020-05-11
699
- * [#918](https://github.com/stripe/stripe-ruby/pull/918) Add support for the `LineItem` resource and APIs
700
-
701
- ## 5.21.0 - 2020-04-29
702
- * [#917](https://github.com/stripe/stripe-ruby/pull/917) Add support for the `Price` resource and APIs
703
-
704
- ## 5.20.0 - 2020-04-27
705
- * [#916](https://github.com/stripe/stripe-ruby/pull/916) Add new `.generate_header` method for webhooks
706
-
707
- ## 5.19.0 - 2020-04-24
708
- * [#915](https://github.com/stripe/stripe-ruby/pull/915) Expose `Stripe::Webhook.compute_signature` publicly
709
-
710
- ## 5.18.0 - 2020-04-22
711
- * [#911](https://github.com/stripe/stripe-ruby/pull/911) Add support for `BillingPortal` namespace and `Session` resource and APIs
712
-
713
- ## 5.17.0 - 2020-02-26
714
- * [#907](https://github.com/stripe/stripe-ruby/pull/907) Add `StripeError#idempotent_replayed?`
715
-
716
- ## 5.16.0 - 2020-02-26
717
- * [#906](https://github.com/stripe/stripe-ruby/pull/906) Add support for listing Checkout sessions
718
- * [#903](https://github.com/stripe/stripe-ruby/pull/903) Upgrade to Rubocop 0.80
719
-
720
- ## 5.15.0 - 2020-02-10
721
- * [#902](https://github.com/stripe/stripe-ruby/pull/902) Add `request_begin` instrumentation callback
722
-
723
- ## 5.14.0 - 2020-01-14
724
- * [#896](https://github.com/stripe/stripe-ruby/pull/896) Add support for `CreditNoteLineItem`
725
- * [#894](https://github.com/stripe/stripe-ruby/pull/894) Clean up test output by capturing `$stderr` when we expect warnings
726
- * [#892](https://github.com/stripe/stripe-ruby/pull/892) Explicitly pass a parameter as hash to be more ruby 2.7 friendly
727
- * [#893](https://github.com/stripe/stripe-ruby/pull/893) Upgrade Rubocop to 0.79
728
-
729
- ## 5.13.0 - 2020-01-08
730
- * [#891](https://github.com/stripe/stripe-ruby/pull/891) Fix most Ruby 2.7 warnings
731
-
732
- ## 5.12.1 - 2020-01-06
733
- * [#890](https://github.com/stripe/stripe-ruby/pull/890) Override API key with `client_secret` in `OAuth.token`
734
-
735
- ## 5.12.0 - 2020-01-02
736
- * [#889](https://github.com/stripe/stripe-ruby/pull/889) Add support for retrieve source transaction API method
737
-
738
- ## 5.11.0 - 2019-11-26
739
- * [#885](https://github.com/stripe/stripe-ruby/pull/885) Add support for `CreditNote` preview
740
-
741
- ## 5.10.0 - 2019-11-08
742
- * [#882](https://github.com/stripe/stripe-ruby/pull/882) Add list_usage_record_summaries and list_source_transactions
743
-
744
- ## 5.9.0 - 2019-11-07
745
- * [#870](https://github.com/stripe/stripe-ruby/pull/870) Add request instrumentation callback (see `README.md` for usage example)
746
-
747
- ## 5.8.0 - 2019-11-05
748
- * [#879](https://github.com/stripe/stripe-ruby/pull/879) Add support for `Mandate`
749
- * [#876](https://github.com/stripe/stripe-ruby/pull/876) Add additional per-request configuration documentation
750
- * [#874](https://github.com/stripe/stripe-ruby/pull/874) Raise an error when requests params are invalid
751
- * [#873](https://github.com/stripe/stripe-ruby/pull/873) Contributor Covenant
752
-
753
- ## 5.7.1 - 2019-10-15
754
- * [#869](https://github.com/stripe/stripe-ruby/pull/869) Fixes the misnamed `connection_base=` setter to be named `connect_base=`
755
-
756
- ## 5.7.0 - 2019-10-10
757
- * [#865](https://github.com/stripe/stripe-ruby/pull/865) Support backwards pagination with list's `#auto_paging_each`
758
-
759
- ## 5.6.0 - 2019-10-04
760
- * [#861](https://github.com/stripe/stripe-ruby/pull/861) Nicer error when specifying non-nil non-string opt value
761
-
762
- ## 5.5.0 - 2019-10-03
763
- * [#859](https://github.com/stripe/stripe-ruby/pull/859) User-friendly messages and retries for `EOFError`, `Errno::ECONNRESET`, `Errno::ETIMEDOUT`, and `Errno::EHOSTUNREACH` network errors
764
-
765
- ## 5.4.1 - 2019-10-01
766
- * [#858](https://github.com/stripe/stripe-ruby/pull/858) Drop Timecop dependency
767
-
768
- ## 5.4.0 - 2019-10-01
769
- * [#857](https://github.com/stripe/stripe-ruby/pull/857) Move to monotonic time for duration calculations
770
-
771
- ## 5.3.0 - 2019-10-01
772
- * [#853](https://github.com/stripe/stripe-ruby/pull/853) Support `Stripe-Should-Retry` header
773
-
774
- ## 5.2.0 - 2019-09-19
775
- * [#851](https://github.com/stripe/stripe-ruby/pull/851) Introduce system for garbage collecting connection managers
776
-
777
- ## 5.1.1 - 2019-09-04
778
- * [#845](https://github.com/stripe/stripe-ruby/pull/845) Transfer the request_id from the http_headers to error.
779
-
780
- ## 5.1.0 - 2019-08-27
781
- * [#841](https://github.com/stripe/stripe-ruby/pull/841) Retry requests on a 429 that's a lock timeout
782
-
783
- ## 5.0.1 - 2019-08-20
784
- * [#836](https://github.com/stripe/stripe-ruby/pull/836) Increase connection keep alive timeout to 30 seconds
785
-
786
- ## 5.0.0 - 2019-08-20
787
- Major version release. The [migration guide](https://github.com/stripe/stripe-ruby/wiki/Migration-guide-for-v5) contains a detailed list of backwards-incompatible changes with upgrade instructions.
788
-
789
- Pull requests included in this release (cf. [#815](https://github.com/stripe/stripe-ruby/pull/815)) (⚠️ = breaking changes):
790
- * ⚠️ [#813](https://github.com/stripe/stripe-ruby/pull/813): Convert library to use built-in `Net::HTTP`
791
- * ⚠️ [#816](https://github.com/stripe/stripe-ruby/pull/816): Make `code` argument in `CardError` named instead of positional.
792
- * ⚠️ [#817](https://github.com/stripe/stripe-ruby/pull/817): Drop support for very old Ruby versions.
793
- * [#818](https://github.com/stripe/stripe-ruby/pull/818): Bump Rubocop to latest version
794
- * [#819](https://github.com/stripe/stripe-ruby/pull/819): Ruby minimum version increase followup
795
- * ⚠️ [#820](https://github.com/stripe/stripe-ruby/pull/820): Remove old deprecated methods
796
- * ⚠️ [#823](https://github.com/stripe/stripe-ruby/pull/823): Remove all alias for list methods
797
- * ⚠️ [#826](https://github.com/stripe/stripe-ruby/pull/826): Remove `UsageRecord.create` method
798
- * ⚠️ [#827](https://github.com/stripe/stripe-ruby/pull/827): Remove `IssuerFraudRecord`
799
- * [#811](https://github.com/stripe/stripe-ruby/pull/811): Add `ErrorObject` to `StripeError` exceptions
800
- * [#828](https://github.com/stripe/stripe-ruby/pull/828): Tweak retry logic to be a little more like stripe-node
801
- * [#829](https://github.com/stripe/stripe-ruby/pull/829): Reset connections when connection-changing configuration changes (optional)
802
- * [#830](https://github.com/stripe/stripe-ruby/pull/830): Fix inverted sign for 500 retries
803
- * ⚠️[#831](https://github.com/stripe/stripe-ruby/pull/831): Remove a few more very old deprecated methods
804
- * [#832](https://github.com/stripe/stripe-ruby/pull/832): Minor cleanup in `StripeClient`
805
- * [#833](https://github.com/stripe/stripe-ruby/pull/833): Do better bookkeeping when tracking state in `Thread.current`
806
- * [#834](https://github.com/stripe/stripe-ruby/pull/834): Add `Invoice.list_upcoming_line_items` method
807
-
808
- ## 4.24.0 - 2019-08-12
809
- * [#825](https://github.com/stripe/stripe-ruby/pull/825) Add `SubscriptionItem.create_usage_record` method
810
- - This release also removed the `SubscriptionSchedule.revisions` method. This should have been included in the previous release (4.23.0)
811
-
812
- ## 4.23.0 - 2019-08-09
813
- * [#824](https://github.com/stripe/stripe-ruby/pull/824) Remove SubscriptionScheduleRevision
814
- - This is technically a breaking change. We've chosen to release it as a minor vesion bump because the associated API is unused.
815
-
816
- ## 4.22.1 - 2019-08-09
817
- * [#808](https://github.com/stripe/stripe-ruby/pull/808) Unify request/response handling
818
-
819
- ## 4.22.0 - 2019-07-30
820
- * [#821](https://github.com/stripe/stripe-ruby/pull/821) Listing `BalanceTransaction` objects now uses `/v1/balance_transactions` instead of `/v1/balance/history`
821
-
822
- ## 4.21.3 - 2019-07-15
823
- * [#810](https://github.com/stripe/stripe-ruby/pull/810) Better error message when passing non-string to custom method
824
-
825
- ## 4.21.2 - 2019-07-05
826
- * [#806](https://github.com/stripe/stripe-ruby/pull/806) Revert back to `initialize_from` from `Util.convert_to_stripe_object`
827
-
828
- ## 4.21.1 - 2019-07-04
829
- * [#807](https://github.com/stripe/stripe-ruby/pull/807) Add gem metadata
830
-
831
- ## 4.21.0 - 2019-06-28
832
- * [#803](https://github.com/stripe/stripe-ruby/pull/803) Add support for the `SetupIntent` resource and APIs
833
-
834
- ## 4.20.1 - 2019-06-28
835
- * [#805](https://github.com/stripe/stripe-ruby/pull/805) Fix formatting in `ConnectionFailed` error message
836
-
837
- ## 4.20.0 - 2019-06-24
838
- * [#800](https://github.com/stripe/stripe-ruby/pull/800) Enable request latency telemetry by default
839
-
840
- ## 4.19.0 - 2019-06-17
841
- * [#770](https://github.com/stripe/stripe-ruby/pull/770) Add support for `CustomerBalanceTransaction` resource and APIs
842
-
843
- ## 4.18.1 - 2019-05-27
844
- * [#789](https://github.com/stripe/stripe-ruby/pull/789) Allow `Order#pay` to be called without arguments
845
-
846
- ## 4.18.0 - 2019-05-23
847
- * [#783](https://github.com/stripe/stripe-ruby/pull/783) Add support for `radar.early_fraud_warning` resource
848
-
849
- ## 4.17.0 - 2019-05-14
850
- * [#779](https://github.com/stripe/stripe-ruby/pull/779) Add support for the Capability resource and APIs
851
-
852
- ## 4.16.0 - 2019-04-24
853
- * [#760](https://github.com/stripe/stripe-ruby/pull/760) Add support for the `TaxRate` resource and APIs
854
-
855
- ## 4.15.0 - 2019-04-22
856
- * [#762](https://github.com/stripe/stripe-ruby/pull/762) Add support for the `TaxId` resource and APIs
857
-
858
- ## 4.14.0 - 2019-04-18
859
- * [#758](https://github.com/stripe/stripe-ruby/pull/758) Add support for the `CreditNote` resource and APIs
860
-
861
- ## 4.13.0 - 2019-04-16
862
- * [#766](https://github.com/stripe/stripe-ruby/pull/766) Relax constraints on objects that we'll accept as a file (now they just need to respond to `#read`)
863
-
864
- ## 4.12.0 - 2019-04-02
865
- * [#752](https://github.com/stripe/stripe-ruby/pull/752) Add `.delete` class method on deletable API resources
866
- * [#754](https://github.com/stripe/stripe-ruby/pull/754) Add class methods for all custom API requests (e.g. `Charge.capture`)
867
-
868
- ## 4.11.0 - 2019-03-26
869
- * [#753](https://github.com/stripe/stripe-ruby/pull/753) Add a global proxy configuration parameter
870
-
871
- ## 4.10.0 - 2019-03-18
872
- * [#745](https://github.com/stripe/stripe-ruby/pull/745) Add support for the `PaymentMethod` resource and APIs
873
- * [#747](https://github.com/stripe/stripe-ruby/pull/747) Add support for retrieving a Checkout `Session`
874
- * [#748](https://github.com/stripe/stripe-ruby/pull/748) Add support for deleting a Terminal `Location` and `Reader`
875
-
876
- ## 4.9.1 - 2019-03-18
877
- * [#750](https://github.com/stripe/stripe-ruby/pull/750) Catch error and warn if unable to remove a method
878
-
879
- ## 4.9.0 - 2019-02-12
880
- * [#739](https://github.com/stripe/stripe-ruby/pull/739) Add support for `SubscriptionSchedule` and `SubscriptionScheduleRevision`
881
-
882
- ## 4.8.1 - 2019-02-11
883
- * [#743](https://github.com/stripe/stripe-ruby/pull/743) Fix bug in file uploading introduced in #741
884
-
885
- ## 4.8.0 - 2019-02-03
886
- * [#741](https://github.com/stripe/stripe-ruby/pull/741) Use `FaradayStripeEncoder` to encode all parameter styles
887
-
888
- ## 4.7.1 - 2019-02-01
889
- * [#740](https://github.com/stripe/stripe-ruby/pull/740) Fix query encoding for integer-indexed maps
890
-
891
- ## 4.7.0 - 2019-01-23
892
- * [#735](https://github.com/stripe/stripe-ruby/pull/735) Rename `CheckoutSession` to `Session` and move it under the `Checkout` namespace. This is a breaking change, but we've reached out to affected merchants and all new merchants would use the new approach.
893
-
894
- ## 4.6.0 - 2019-01-21
895
- * [#736](https://github.com/stripe/stripe-ruby/pull/736) Properly serialize `individual` on `Account` objects
896
-
897
- ## 4.5.0 - 2019-01-02
898
- * [#719](https://github.com/stripe/stripe-ruby/pull/719) Generate OAuth authorize URLs for Express accounts as well as standard
899
-
900
- ## 4.4.1 - 2018-12-31
901
- * [#718](https://github.com/stripe/stripe-ruby/pull/718) Fix an error message typo
902
-
903
- ## 4.4.0 - 2018-12-21
904
- * [#716](https://github.com/stripe/stripe-ruby/pull/716) Add support for the `CheckoutSession` resource
905
-
906
- ## 4.3.0 - 2018-12-10
907
- * [#711](https://github.com/stripe/stripe-ruby/pull/711) Add support for account links
908
-
909
- ## 4.2.0 - 2018-11-28
910
- * [#705](https://github.com/stripe/stripe-ruby/pull/705) Add support for the `Review` APIs
911
-
912
- ## 4.1.0 - 2018-11-27
913
- * [#695](https://github.com/stripe/stripe-ruby/pull/695) Add support for `ValueList` and `ValueListItem` for Radar
914
-
915
- ## 4.0.3 - 2018-11-19
916
- * [#703](https://github.com/stripe/stripe-ruby/pull/703) Don't use `Net::HTTP::Persistent` on Windows where it's not well supported
917
-
918
- ## 4.0.2 - 2018-11-16
919
- * [#701](https://github.com/stripe/stripe-ruby/pull/701) Require minimum Faraday 0.13 for proper support of persistent connections
920
-
921
- ## 4.0.1 - 2018-11-15
922
- * [#699](https://github.com/stripe/stripe-ruby/pull/699) Only send telemetry if `Request-Id` was present in the response
923
-
924
- ## 4.0.0 - 2018-11-15
925
- * [#698](https://github.com/stripe/stripe-ruby/pull/698) Use persistent connections by default through `Net::HTTP::Persistent`
926
- * [#698](https://github.com/stripe/stripe-ruby/pull/698) Drop support for Ruby 2.0 (which we consider a breaking change here)
927
-
928
- ## 3.31.1 - 2018-11-12
929
- * [#697](https://github.com/stripe/stripe-ruby/pull/697) Send telemetry in milliseconds specifically
930
-
931
- ## 3.31.0 - 2018-11-12
932
- * [#696](https://github.com/stripe/stripe-ruby/pull/696) Add configurable telemetry to gather information on client-side request latency
933
-
934
- ## 3.30.0 - 2018-11-08
935
- * [#693](https://github.com/stripe/stripe-ruby/pull/693) Add new API endpoints for the `Invoice` resource.
936
-
937
- ## 3.29.0 - 2018-10-30
938
- * [#692](https://github.com/stripe/stripe-ruby/pull/692) Add support for the `Person` resource
939
- * [#694](https://github.com/stripe/stripe-ruby/pull/694) Add support for the `WebhookEndpoint` resource
940
-
941
- ## 3.28.0 - 2018-09-24
942
- * [#690](https://github.com/stripe/stripe-ruby/pull/690) Add support for Stripe Terminal
943
-
944
- ## 3.27.0 - 2018-09-24
945
- * [#689](https://github.com/stripe/stripe-ruby/pull/689) Rename `FileUpload` to `File`
946
-
947
- ## 3.26.1 - 2018-09-14
948
- * [#688](https://github.com/stripe/stripe-ruby/pull/688) Fix hash equality on `StripeObject`
949
-
950
- ## 3.26.0 - 2018-09-05
951
- * [#681](https://github.com/stripe/stripe-ruby/pull/681) Add support for reporting resources
952
-
953
- ## 3.25.0 - 2018-08-28
954
- * [#678](https://github.com/stripe/stripe-ruby/pull/678) Allow payment intent `#cancel`, `#capture`, and `#confirm` to take their own parameters
955
-
956
- ## 3.24.0 - 2018-08-27
957
- * [#675](https://github.com/stripe/stripe-ruby/pull/675) Remove support for `BitcoinReceiver` write-actions
958
-
959
- ## 3.23.0 - 2018-08-23
960
- * [#676](https://github.com/stripe/stripe-ruby/pull/676) Add support for usage record summaries
961
-
962
- ## 3.22.0 - 2018-08-15
963
- * [#674](https://github.com/stripe/stripe-ruby/pull/674) Use integer-indexed encoding for all arrays
964
-
965
- ## 3.21.0 - 2018-08-03
966
- * [#671](https://github.com/stripe/stripe-ruby/pull/671) Add cancel support for topups
967
-
968
- ## 3.20.0 - 2018-08-03
969
- * [#669](https://github.com/stripe/stripe-ruby/pull/669) Add support for file links
970
-
971
- ## 3.19.0 - 2018-07-27
972
- * [#666](https://github.com/stripe/stripe-ruby/pull/666) Add support for scheduled query runs (`Stripe::Sigma::ScheduledQueryRun`) for Sigma
973
-
974
- ## 3.18.0 - 2018-07-26
975
- * [#665](https://github.com/stripe/stripe-ruby/pull/665) Add support for Stripe Issuing
976
-
977
- ## 3.17.2 - 2018-07-19
978
- * [#664](https://github.com/stripe/stripe-ruby/pull/664) Don't colorize log output being sent to a configured logger
979
-
980
- ## 3.17.1 - 2018-07-19
981
- * [#663](https://github.com/stripe/stripe-ruby/pull/663) Internal improvements to `ApiResource.class_url`
982
-
983
- ## 3.17.0 - 2018-06-28
984
- * [#658](https://github.com/stripe/stripe-ruby/pull/658) Add support for `partner_id` from `Stripe.set_app_info`
985
-
986
- ## 3.16.0 - 2018-06-28
987
- * [#657](https://github.com/stripe/stripe-ruby/pull/657) Add support for payment intents
988
-
989
- ## 3.15.0 - 2018-05-10
990
- * [#649](https://github.com/stripe/stripe-ruby/pull/649) Freeze all string literals
991
-
992
- ## 3.14.0 - 2018-05-09
993
- * [#645](https://github.com/stripe/stripe-ruby/pull/645) Add support for issuer fraud records
994
-
995
- ## 3.13.1 - 2018-05-07
996
- * [#647](https://github.com/stripe/stripe-ruby/pull/647) Merge query parameters coming from path with `params` argument
997
-
998
- ## 3.13.0 - 2018-04-11
999
- * [#498](https://github.com/stripe/stripe-ruby/pull/498) Add support for flexible billing primitives
1000
-
1001
- ## 3.12.1 - 2018-04-05
1002
- * [#636](https://github.com/stripe/stripe-ruby/pull/636) Fix a warning for uninitialized instance variable `@additive_params`
1003
-
1004
- ## 3.12.0 - 2018-04-05
1005
- * [#632](https://github.com/stripe/stripe-ruby/pull/632) Introduce `additive_object_param` so that non-`metadata` subobjects don't zero their keys as they're being replaced
1006
-
1007
- ## 3.11.0 - 2018-02-26
1008
- * [#628](https://github.com/stripe/stripe-ruby/pull/628) Add support for `code` attribute on all Stripe exceptions
1009
-
1010
- ## 3.10.0 - 2018-02-21
1011
- * [#627](https://github.com/stripe/stripe-ruby/pull/627) Add support for topups
1012
-
1013
- ## 3.9.2 - 2018-02-12
1014
- * [#625](https://github.com/stripe/stripe-ruby/pull/625) Skip calling `to_hash` for `nil`
1015
-
1016
- ## 3.9.1 - 2017-12-15
1017
- * [#616](https://github.com/stripe/stripe-ruby/pull/616) Support all file-like objects for uploads with duck typed checks on `path` and `read` (we previously whitelisted only certain classes)
1018
-
1019
- ## 3.9.0 - 2017-12-08
1020
- * [#613](https://github.com/stripe/stripe-ruby/pull/613) Introduce new `IdempotencyError` type for idempotency-specific failures
1021
-
1022
- ## 3.8.2 - 2017-12-07
1023
- * [#612](https://github.com/stripe/stripe-ruby/pull/612) Fix integer-indexed array encoding when sent as query parameter (subscription items can now be used when fetching an upcoming invoice)
1024
-
1025
- ## 3.8.1 - 2017-12-06
1026
- * [#611](https://github.com/stripe/stripe-ruby/pull/611) Support `Tempfile` (as well as `File`) in file uploads
1027
-
1028
- ## 3.8.0 - 2017-10-31
1029
- * [#606](https://github.com/stripe/stripe-ruby/pull/606) Support for exchange rates APIs
1030
-
1031
- ## 3.7.0 - 2017-10-26
1032
- * [#603](https://github.com/stripe/stripe-ruby/pull/603) Support for listing source transactions
1033
-
1034
- ## 3.6.0 - 2017-10-17
1035
- * [#597](https://github.com/stripe/stripe-ruby/pull/597) Add static methods to manipulate resources from parent
1036
- * `Account` gains methods for external accounts and login links (e.g. `.create_account`, `create_login_link`)
1037
- * `ApplicationFee` gains methods for refunds
1038
- * `Customer` gains methods for sources
1039
- * `Transfer` gains methods for reversals
1040
-
1041
- ## 3.5.3 - 2017-10-16
1042
- * [#594](https://github.com/stripe/stripe-ruby/pull/594) Make sure that `StripeObject`'s `#deep_copy` maintains original class
1043
- * [#595](https://github.com/stripe/stripe-ruby/pull/595) Allow `Object#method` to be called on `StripeObject` even if it conflicts with an accessor
1044
- * [#596](https://github.com/stripe/stripe-ruby/pull/596) Encode arrays as integer-indexed hashes where appropriate
1045
- * [#598](https://github.com/stripe/stripe-ruby/pull/598) Don't persist `idempotency_key` opt between requests
1046
-
1047
- ## 3.5.2 - 2017-10-13
1048
- * [#592](https://github.com/stripe/stripe-ruby/pull/592) Bring back `Marshal.dump/load` support with custom marshal encoder/decoder
1049
-
1050
- ## 3.5.1 - 2017-10-12
1051
- * [#591](https://github.com/stripe/stripe-ruby/pull/591) Use thread-local `StripeClient` instances for thread safety
1052
-
1053
- ## 3.5.0 - 2017-10-11
1054
- * [#589](https://github.com/stripe/stripe-ruby/pull/589) Rename source `delete` to `detach` (and deprecate the former)
1055
-
1056
- ## 3.4.1 - 2017-10-05
1057
- * [#586](https://github.com/stripe/stripe-ruby/pull/586) Log query strings as well as form bodies with STRIPE_LOG
1058
- * [#588](https://github.com/stripe/stripe-ruby/pull/588) Require minimum Faraday 0.10 for bug fix in parameter encoding
1059
-
1060
- ## 3.4.0 - 2017-09-20
1061
- * Mark legacy Bitcoin API as deprecated, and remove corresponding tests
1062
- * Mark recipients API as deprecated, and remove recipient card tests
1063
-
1064
- ## 3.3.2 - 2017-09-20
1065
- * Correct minimum required Ruby version in gemspec (it's 2.0.0)
1066
-
1067
- ## 3.3.1 - 2017-08-18
1068
- * Only parse webhook payload after verification to decrease likelihood of
1069
- attack
1070
-
1071
- ## 3.3.0 - 2017-08-11
1072
- * Add support for standard library logger interface with `Stripe.logger`
1073
- * Error logs now go to stderr if using `Stripe.log_level`/`STRIPE_LOG`
1074
- * `Stripe.log_level`/`STRIPE_LOG` now support `Stipe::LEVEL_ERROR`
1075
-
1076
- ## 3.2.0 - 2017-08-03
1077
- * Add logging for request retry account and `Stripe-Account` header
1078
-
1079
- ## 3.1.0 - 2017-08-03
1080
- * Implement request logging with `Stripe.log_level` and `STRIPE_LOG`
1081
-
1082
- ## 3.0.3 - 2017-07-28
1083
- * Revert `nil` to empty string coercion from 3.0.2
1084
- * Handle `invalid_client` OAuth error code
1085
- * Improve safety of error handling logic safer for unrecognized OAuth error codes
1086
-
1087
- ## 3.0.2 - 2017-07-12
1088
- **Important:** This version is non-functional and has been yanked in favor of 3.0.3.
1089
- * Convert `nil` to empty string when serializing parameters (instead of opaquely dropping it) -- NOTE: this change has since been reverted
1090
-
1091
- ## 3.0.1 - 2017-07-11
1092
- * Properties set with an API resource will now serialize that resource's ID if possible
1093
- * API resources will throw an ArgumentError on save if a property has been with an API resource that cannot be serialized
1094
-
1095
- ## 3.0.0 - 2017-06-27
1096
- * `#pay` on invoice now takes params as well as opts
1097
-
1098
- ## 2.12.0 - 2017-06-20
1099
- * Add support for ephemeral keys
1100
-
1101
- ## 2.11.0 - 2017-05-26
1102
- * Warn when keys that look like opts are included as parameters
1103
-
1104
- ## 2.10.0 - 2017-05-25
1105
- * Add support for account login links
1106
-
1107
- ## 2.9.0 - 2017-05-18
1108
- * Support for OAuth operations in `Stripe::OAuth`
1109
-
1110
- ## 2.8.0 - 2017-04-28
1111
- * Support for checking webhook signatures
1112
-
1113
- ## 2.7.0 - 2017-04-26
1114
- * Add model `InvoiceLineItem`
1115
-
1116
- ## 2.6.0 - 2017-04-26
1117
- * Add `OBJECT_NAME` constants to all API resources
1118
-
1119
- ## 2.5.0 - 2017-04-24
1120
- * Make `opts` argument in `Util.convert_to_stripe_object` optional
1121
-
1122
- ## 2.4.0 - 2017-04-18
1123
- * Add `Stripe.set_app_info` for use by plugin creators
1124
-
1125
- ## 2.3.0 - 2017-04-14
1126
- * Add question mark accessor when assigning boolean value to undefined field
1127
-
1128
- ## 2.2.1 - 2017-04-07
1129
- * Declare minimum required Faraday as 0.9
1130
-
1131
- ## 2.2.0 - 2017-04-06
1132
- * Add support for payouts and recipient transfers
1133
-
1134
- ## 2.1.0 - 2017-03-17
1135
- * Support for detaching sources from customers
1136
-
1137
- ## 2.0.3 - 2017-03-16
1138
- * Fix marshalling of `StripeObjects` that have an embedded client
1139
-
1140
- ## 2.0.2 - 2017-03-16
1141
- * Fix bad field reference when recovering from a JSON parsing problem
1142
-
1143
- ## 2.0.1 - 2017-02-22
1144
- * Fix multipart parameter encoding to repair broken file uploads
1145
-
1146
- ## 2.0.0 - 2017-02-14
1147
- * Drop support for Ruby 1.9
1148
- * Allow HTTP client that makes Stripe calls to be configured via Faraday
1149
- * Drop RestClient
1150
- * Switch to OpenAPI 2.0 spec and generated fixtures in test suite
1151
- * Switch to Webmock in test suite
1152
-
1153
- ## 1.58.0 - 2017-01-19
1154
- * Remove erroneously added list methods for `Source` model
1155
-
1156
- ## 1.57.1 - 2016-11-28
1157
- * Disallow sending protected fields along with API resource `.update`
1158
-
1159
- ## 1.57.0 - 2016-11-21
1160
- * Add retrieve method for 3-D Secure resources
1161
-
1162
- ## 1.56.2 - 2016-11-17
1163
- * Improve `StripeObject`'s `#to_s` to better handle how embedded objects are displayed
1164
-
1165
- ## 1.56.1 - 2016-11-09
1166
- * Fix (fairly serious) memory like in `StripeObject`
1167
-
1168
- ## 1.56.0 - 2016-10-24
1169
- * Add accessors for new fields added in `#update_attributes`
1170
- * Handle multi-plan subscriptions through new subscription items
1171
- * Handle 403 status codes from the API
1172
-
1173
- ## 1.55.1 - 2016-10-24
1174
- Identical to 1.56.0 above. I incorrectly cut a patch-level release.
1175
-
1176
- ## 1.55.0 - 2016-09-15
1177
- * Add support for Apple Pay domains
1178
-
1179
- ## 1.54.0 - 2016-09-01
1180
- * Whitelist errors that should be retried; scope to known socket and HTTP errors
1181
-
1182
- ## 1.53.0 - 2016-08-31
1183
- * Relax version constraint on rest-client (and by extension mime-types) for users on Ruby 2+
1184
-
1185
- ## 1.52.0 - 2016-08-30
1186
- * Make sure `Subscription`'s `source` is saved with its parent
1187
-
1188
- ## 1.51.1 - 2016-08-30
1189
- * Make sure `Account`'s `external_account` is saved with its parent
1190
-
1191
- ## 1.51.0 - 2016-08-26
1192
- * Error when an array of maps is detected that cannot be accurately encoded
1193
- * Start using strings for header names instead of symbols for better clarity
1194
-
1195
- ## 1.50.1 - 2016-08-25
1196
- * Fix encoding of arrays of maps where maps unequal sets of keys
1197
-
1198
- ## 1.50.0 - 2016-08-15
1199
- * Allow sources to be created
1200
-
1201
- ## 1.49.0 - 2016-07-28
1202
- * Add top-level `Source` model
1203
-
1204
- ## 1.48.0 - 2016-07-12
1205
- * Add `ThreeDSecure` model for 3-D secure payments
1206
-
1207
- ## 1.47.0 - 2016-07-11
1208
- * Allow rest-client version 2.0+ to be used with the gem
1209
-
1210
- ## 1.46.0 - 2016-07-07
1211
- * Allow retry when a 409 conflict is encountered
1212
-
1213
- ## 1.45.0 - 2016-07-07
1214
- * Do not send subresources when updating except when explicitly told to do so (see #433)
1215
-
1216
- ## 1.44.0 - 2016-06-29
1217
- * Add `update` class method to all resources that can be updated
1218
-
1219
- ## 1.43.1 - 2016-06-17
1220
- * Fix type of resource returned from `Order#return_order`
1221
-
1222
- ## 1.43.0 - 2016-05-20
1223
- * Allow Relay orders to be returned and add associated types
1224
- * Support Alipay account retrieval and deletion
1225
-
1226
- ## 1.42.0 - 2016-05-04
1227
- * Add support for the new /v1/subscriptions endpoint (retrieve, list, create, update, and delete)
1228
-
1229
- ## 1.41.0 - 2016-04-13
1230
- * Add global `stripe_account` option that adds a `Stripe-Account` header to all requests
1231
-
1232
- ## 1.40.0 - 2016-04-06
1233
- * Fix bug that omitted subresources from serialization
1234
-
1235
- ## 1.39.0 - 2016-03-31
1236
- * Update CA cert bundle for compatibility with OpenSSL versions below 1.0.1
1237
-
1238
- ## 1.38.0 - 2016-03-18
1239
- * Allow `opts` to be passed to an API resource's `#save` method
1240
-
1241
- ## 1.37.0 - 2016-03-14
1242
- * Add `Account#reject` to support the new API feature
1243
-
1244
- ## 1.36.2 - 2016-03-14
1245
- * Fix reference to non-existent `#url` in `ListObject`
1246
-
1247
- ## 1.36.1 - 2016-03-04
1248
- * Fix serialization when subhash given to `#save` or `#update_attributes`
1249
-
1250
- ## 1.36.0 - 2016-02-08
1251
- * Add `CountrySpec` model for looking up country payment information
1252
-
1253
- ## 1.35.1 - 2016-02-03
1254
- * Add compatibility layer for old API versions on `Charge#refund`
1255
-
1256
- ## 1.35.0 - 2016-02-01
1257
- * Allow CA cert bundle location to be configured
1258
- * Updated bundled CA certs
1259
-
1260
- ## 1.34.0 - 2016-01-25
1261
- * Add support for deleting products and SKUs
1262
-
1263
- ## 1.33.1 - 2016-01-21
1264
- * Pass through arguments of `Charge#refund`
1265
-
1266
- ## 1.33.0 - 2016-01-19
1267
- * Re-implement `Charge#refund` helper to use the modern endpoint suggested by docs
1268
-
1269
- ## 1.32.1 - 2016-01-07
1270
- * Fix bug where ivar left uninitialized in StripeObject could error on serialization
1271
- * Fix bug where a nil customer from API could error Bitcoin model on refresh
1272
-
1273
- ## 1.32.0 - 2016-01-05
1274
- * Add configuration to optionally retry network failures
1275
- * Use modern API endpoint for producing application fee refunds
1276
-
1277
- ## 1.31.0 - 2015-10-29
1278
- * Add BankAccount#verify convenience method
1279
-
1280
- ## 1.30.3 - 2015-10-28
1281
- * Fix bug where arrays that were not `additional_owners` were not properly encoded for requests
1282
-
1283
- ## 1.30.2 - 2015-10-12
1284
- * Fix bug where `opts` didn't properly propagate to descendant `StripeObjects`
1285
-
1286
- ## 1.30.1 - 2015-10-10
1287
- * Fix bug that prevent lists of hashes from being URI-encoded properly
1288
- * Fix bug where filter conditions were not making it past the first instantiated `ListObject`
1289
-
1290
- ## 1.30.0 - 2015-10-09
1291
- * Add `StripeObject#deleted?` for a reliable way to check whether an object is alive
1292
- * Deprecate `StripeObject#refresh_from`
1293
- * New parameter encoding scheme that doesn't use `URI.escape`
1294
-
1295
- ## 1.29.1 - 2015-10-06
1296
- * Fix bug where ampersands were not being properly encoded
1297
-
1298
- ## 1.29.0 - 2015-10-05
1299
- * Add pagination helpers `#auto_paging_each`, `#previous_page`, and `#next_page`
1300
-
1301
- ## 1.28.1 - 2015-10-05
1302
- * Fix URI being referenced by file upload resources
1303
-
1304
- ## 1.28.0 - 2015-10-05
1305
- * Make StripeObject's #save "upsert"-like; creates an object if new
1306
- * Add #update_attributes to StripeObject for safe mass assignment
1307
- * Properly mass assign attributes on calls to #save
1308
- * Add question mark helpers for boolean fields (e.g. #paid? as well as old #paid)
1309
- * Fix a bug that broke the API for StripeObject initialization
1310
- * Remove use of deprecated URI.escape
1311
-
1312
- ## 1.27.2 - 2015-09-25
1313
- * Correct the URLs used to fetch Bitcoin transactions.
1314
-
1315
- ## 1.27.1 - 2015-09-20
1316
- * Use hash rockets for backwards compatibility.
1317
-
1318
- ## 1.27.0 - 2015-09-14
1319
- * Add Orders, Products, and SKUs for Relay
1320
-
1321
- ## 1.26.0 - 2015-09-11
1322
- * Add support for 429 Rate Limited response
1323
-
1324
- ## 1.25.0 - 2015-08-17
1325
- * Added support for refund listing and retrieval without an associated charge
1326
-
1327
- ## 1.24.0 - 2015-08-03
1328
- * Added support for deleting managed accounts
1329
- * Added support for dispute listing and retrieval
1330
- * Bugfix: token objects now are the correct class
1331
-
1332
- ## 1.23.0 - 2015-07-06
1333
- * Added request IDs and HTTP headers to errors
1334
-
1335
- ## 1.22.0 - 2015-06-10
1336
- * Added support for bank accounts and debit cards in managed accounts (via the `external_accounts` param)
1337
-
1338
- ## 1.21.0 - 2015-04-14
1339
- * Remove TLS cert revocation check (all pre-heartbleed certs have expired)
1340
- * Bugfix: don't unset keys when they don't exist on StripeObject
1341
-
1342
- ## 1.20.4 - 2015-03-26
1343
- * Raise an error when explicitly passing nil as the API key on resource methods
1344
- * Fix error when passing an API key to Balance.retrieve (github issue #232)
1345
-
1346
- ## 1.20.3 - 2015-03-13
1347
- * Fixed error when updating certain resources (github issue #224)
1348
-
1349
- ## 1.20.2 - 2015-03-10
1350
- * Added support for updating nested hashes besides `metadata` (which was already supported)
1351
- * Fixed bug in balance retrieval
1352
-
1353
- ## 1.20.1 - 2015-02-26
1354
- * Updated Card to point to customer sources endpoint when customer property is set
1355
-
1356
- ## 1.20.0 - 2015-02-19
1357
- * Added Update & Delete operations to Bitcoin Receivers
1358
-
1359
- ## 1.19.1 - 2015-02-18
1360
- * Fixed fetching upcoming invoice/paying invoice methods
1361
-
1362
- ## 1.19.0 - 2015-02-15
1363
- * Support for new Transfers /reversals endpoint
1364
- * Account retrieval now optionally accepts an account ID
1365
- * Better support for passing custom headers, like Stripe-Account, through requests
1366
-
1367
- ## 1.18.0 - 2015-01-21
1368
- * 1 major enhancement:
1369
- * Added support for making bitcoin charges through BitcoinReceiver source object
1370
-
1371
- ## 1.17.3 - 2015-01-12
1372
- * 1 bugfix:
1373
- * Fixed API key propagation for ApplicationFee#refund
1374
-
1375
- ## 1.17.2 - 2015-01-08
1376
- * 1 bugfix:
1377
- * Fixed API key propagation for child resources
1378
-
1379
- ## 1.17.1 - 2015-01-07
1380
- * 2 minor enhacements:
1381
- * Fixed dependencies for Ruby versions less than 1.9.3
1382
- * Added deauthorize method to Account object
1383
-
1384
- ## 1.17.0 - 2014-12-15
1385
- * 1 major enhacement:
1386
- * File uploads resource was added (for uploading pdf or image documents for disputes)
1387
-
1388
- ## 1.16.1 - 2014-12-19
1389
- * 2 minor enhancements:
1390
- * Ability to send idempotent requests
1391
- * Ability to specify stripe account as a header
1392
-
1393
- ## 1.16.0 - 2014-10-08
1394
- * 1 minor enhacement:
1395
- * Coupons now support update operations - useful for manipulating metadata
1396
-
1397
- ## 1.15.0 - 2014-07-26
1398
- * 1 major enhacement:
1399
- * Application Fee refunds now a list instead of array
1400
-
1401
- ## 1.14.0 - 2014-06-17
1402
- * 1 major enhancement:
1403
- * Add metadata for refunds and disputes
1404
-
1405
- ## 1.13.0 - 2014-05-28
1406
- * 1 major enhancement:
1407
- * Support for canceling transfers
1408
-
1409
- ## 1.12.0 - 2014-05-21
1410
- * 1 major enhancement:
1411
- * Support for cards for recipients
1412
-
1413
- ## 1.11.0 - 2014-04-09
1414
- * 2 minor enhancements:
1415
- * Update included ca bundles
1416
- * Implement certificate blacklisting
1417
-
1418
- ## 1.10.2 - 2014-02-18
1419
- * 1 minor enhancement:
1420
- * Add create_subscription on Customer resources, so you can create
1421
- subscriptions without needing to retrieve the customer first (github
1422
- issue #120)
1423
-
1424
- ## 1.10.1 - 2014-02-03
1425
- * 1 bugfix:
1426
- * Fix marshaling of StripeObjects
1427
-
1428
- ## 1.10.0 - 2014-01-29
1429
- * 2 major enhancements
1430
- * Support for multiple subscriptions per customer
1431
- * Testing ruby 2.1.0
1432
-
1433
- * 2 minor enhancements
1434
- * Replace multi_json with json
1435
- * Allow #save to take opts (for :expand)
1436
-
1437
- * 1 bugfix
1438
- * Fix #try and #respond_to? on StripeObjects
1439
-
1440
- ## 1.9.9 - 2013-12-02
1441
- * 1 major enhancement
1442
- * Add ApplicationFee resource
1443
-
1444
- ## 1.8.9 - 2013-11-14
1445
- * 2 bugfixes:
1446
- * Fix gemspec dependencies so the gem doesn't break for Ruby 1.8 users
1447
- * Fix api_resource_test to not use returns as a way of testing rescue behavior
1448
-
1449
- ## 1.8.8 - 2013-10-3
1450
- * 1 major enhancement
1451
- * Add support for metadata on resources
1452
-
1453
- ## 1.8.7 - 2013-08-18
1454
- * 1 minor enhancement
1455
- * Add support for closing disputes.
1456
-
1457
- ## 1.8.6 - 2013-08-13
1458
- * 1 major enhancement
1459
- * Add Balance and BalanceTransaction resources
1460
-
1461
- ## 1.8.5 - 2013-08-12
1462
- * 1 major enhancement
1463
- * Add support for unsetting attributes by setting to nil. This permits unsetting email and description on customers and description on charges. Setting properties to a blank string is now an error.
1464
- * Attempting to set an object's id is now an error
1465
-
1466
- ## 1.8.4 - 2013-07-11
1467
- * 1 major enhancement
1468
- * Add support for new cards API (Stripe API version - 2013-07-05)
1469
-
1470
- ## 1.8.3 - 2013-05-06
1471
- * 1 bugfix:
1472
- * Fix handling of per-call API keys (github issue #67)
1473
-
1474
- ## 1.8.2 - 2013-05-01
1475
- * 3 minor enhancements:
1476
- * Use to_sym instead of type checking for minor performance improvement (github issue #59)
1477
- * Handle low-memory situations without throwing an exception (github issue #61)
1478
- * Add an Customer#upcoming_invoice convenience method (github issue #65)
1479
-
1480
- * 1 bugfix:
1481
- * Allow updating resources without first retrieving them (github issue #60)
1482
-
1483
- ## 1.8.1 - 2013-04-19
1484
- * 1 minor enhancement:
1485
- * Add support for specifying an API key when retrieving an upcoming invoice
1486
-
1487
- ## 1.8.0 - 2013-04-11
1488
- * 1 major enhancement:
1489
- * Add new Recipient resource
1490
- * Allow Transfers to be createable
1491
-
1492
- ## 1.7.11 - 2013-02-21
1493
- * 1 minor enhancement
1494
- * Add 'id' to the list of permanent attributes
1495
-
1496
- ## 1.7.10 - 2013-02-01
1497
- * 1 major enhancement
1498
- * Add support for passing options when retrieving Stripe objects e.g., Stripe::Charge.retrieve({id:"foo", expand:["customer"]}) Stripe::Charge("foo") is still supported as well
1499
-
1500
- ## 1.7.9 - 2013-01-15
1501
- * 1 major enhancement
1502
- * Add support for setting a Stripe API version override.
1503
-
1504
- ## 1.7.8 - 2012-11-21
1505
- * 1 bugfix
1506
- * Relax the version constraint on multi_json (github issue #44)
1507
-
1508
- ## 1.7.7 - 2012-11-07
1509
- * 1 minor enhancement:
1510
- * Add support for updating charge disputes
1511
-
1512
- * 1 bugfix
1513
- * Fix Account API resource bug
1514
-
1515
- ## 1.7.6 - 2012-10-30
1516
- * 1 major enhancement
1517
- * Add support for creating invoices
1518
-
1519
- ## 1.7.5 - 2012-10-25
1520
- * 1 major enhancement
1521
- * Add support for new API lists
1522
-
1523
- ## 1.7.4 - 2012-10-08
1524
- * 1 bugfix
1525
- * Fix bug introduced in 1.7.3 calling API methods that take no
1526
- arguments, like Stripe::Invoice#pay (github issue #42)
1527
-
1528
- ## 1.7.3 - 2012-09-14
1529
- * 2 bugfixes
1530
- * Make sure that both keys and values of GET params are URL-encoded. NOTE: If you were previously URL-encoding values yourself, you may need to adjust your code.
1531
- * URL-encode POST params directly, instead of allowing rest-client to do it to work around an unfortunate interaction with the hashery gem (github issue #38)
1532
-
1533
- ## 1.7.2 - 2012-08-31
1534
- * 1 major enhancement
1535
- * Add support for new pay and update methods for Invoice objects
1536
-
1537
- ## 1.7.1 - 2012-08-15
1538
- * 1 major enhancement
1539
- * Add new Account API resource
1540
-
1541
- ## 1.7.0 - 2012-05-17
1542
- * 3 major enhancements:
1543
- * Switch from vendored stripe-json to multi_json for all JSON parsing and rendering. This should not impact programmatic usage of the library, but may cause small rendering differences from, e.g., StripeObject#inspect (github issue #22)
1544
- * Add new delete_discount method to Customer objects
1545
- * Add new Transfer API resource
1546
-
1547
- * 2 minor enhancements:
1548
- * Switch from HTTP Basic auth to Bearer auth (Note: Stripe will support Basic auth for the indefinite future, but recommends Bearer auth when possible going forward)
1549
- * Numerous test suite improvements
1550
-
1551
- ## 1.6.3 - 2012-03-22
1552
- * 1 bugfix:
1553
- * Encode GET query strings ourselves instead of using rest-client to work around a bug
1554
-
1555
- ## 1.6.2 - 2012-02-24
1556
- * 1 bugfix:
1557
- * Correct argument handling in StripeObject#as_json
1558
-
1559
- ## 1.6.1 - 2012-02-22
1560
- * 1 bugfix:
1561
- * Fix StripeObject#inspect when ActiveSupport 3.0 is loaded
1562
-
1563
- ## 1.6.0 - 2012-02-01
1564
- * A whole bunch of releases between 1.5.0 and 1.6.0, but few changes, mainly the addition of plans, coupons, events, and tokens
1565
- * 1.6.0 also contains a new inspect/to_string implementation
1566
-
1567
- ## 1.5.0 - 2011-05-09
1568
- * 1 major enhancement:
1569
- * Update for new RESTful API
1570
-
1571
- ## 1.3.4 - 2011-01-07
1572
- * 1 major enhancement:
1573
- * Rename to Stripe
1574
-
1575
- ## 1.2 - 2010-06-06
1576
- * 1 major enhancement:
1577
- * Support for the set_customer_subscription and delete_customer API methods
1578
-
1579
- ## 1.1 - 2010-03-14
1580
- * 1 major enhancement:
1581
- * Support for recurring billing
1582
-
1583
- ## 1.0 - 2010-01-05
1584
- * 1 major enhancement:
1585
- * Initial release
1586
-
1587
- <!--
1588
- # vim: set tw=0:
1589
- -->