dodopayments 2.9.1 → 2.11.0

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 (302) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +25 -0
  3. data/README.md +9 -9
  4. data/lib/dodopayments/client.rb +4 -0
  5. data/lib/dodopayments/internal/transport/base_client.rb +2 -0
  6. data/lib/dodopayments/internal/type/union.rb +21 -7
  7. data/lib/dodopayments/models/abandoned_checkout_detected_webhook_event.rb +4 -16
  8. data/lib/dodopayments/models/abandoned_checkout_recovered_webhook_event.rb +4 -16
  9. data/lib/dodopayments/models/checkout_session_flags.rb +15 -1
  10. data/lib/dodopayments/models/checkout_session_request.rb +25 -2
  11. data/lib/dodopayments/models/checkout_session_response.rb +33 -1
  12. data/lib/dodopayments/models/credit_added_webhook_event.rb +4 -16
  13. data/lib/dodopayments/models/credit_balance_low_webhook_event.rb +4 -16
  14. data/lib/dodopayments/models/credit_deducted_webhook_event.rb +4 -16
  15. data/lib/dodopayments/models/credit_expired_webhook_event.rb +4 -16
  16. data/lib/dodopayments/models/credit_manual_adjustment_webhook_event.rb +4 -16
  17. data/lib/dodopayments/models/credit_overage_charged_webhook_event.rb +4 -16
  18. data/lib/dodopayments/models/credit_overage_reset_webhook_event.rb +4 -16
  19. data/lib/dodopayments/models/credit_rolled_over_webhook_event.rb +4 -16
  20. data/lib/dodopayments/models/credit_rollover_forfeited_webhook_event.rb +4 -16
  21. data/lib/dodopayments/models/discount_detail.rb +143 -0
  22. data/lib/dodopayments/models/dispute_accepted_webhook_event.rb +4 -16
  23. data/lib/dodopayments/models/dispute_cancelled_webhook_event.rb +4 -16
  24. data/lib/dodopayments/models/dispute_challenged_webhook_event.rb +4 -16
  25. data/lib/dodopayments/models/dispute_expired_webhook_event.rb +4 -16
  26. data/lib/dodopayments/models/dispute_lost_webhook_event.rb +4 -16
  27. data/lib/dodopayments/models/dispute_opened_webhook_event.rb +4 -16
  28. data/lib/dodopayments/models/dispute_won_webhook_event.rb +4 -16
  29. data/lib/dodopayments/models/dunning_recovered_webhook_event.rb +4 -16
  30. data/lib/dodopayments/models/dunning_started_webhook_event.rb +4 -16
  31. data/lib/dodopayments/models/entitlement_grant_created_webhook_event.rb +4 -16
  32. data/lib/dodopayments/models/entitlement_grant_delivered_webhook_event.rb +4 -16
  33. data/lib/dodopayments/models/entitlement_grant_failed_webhook_event.rb +4 -16
  34. data/lib/dodopayments/models/entitlement_grant_revoked_webhook_event.rb +4 -16
  35. data/lib/dodopayments/models/filter_type.rb +71 -0
  36. data/lib/dodopayments/models/github_permission.rb +19 -0
  37. data/lib/dodopayments/models/integration_config.rb +3 -19
  38. data/lib/dodopayments/models/integration_config_response.rb +3 -19
  39. data/lib/dodopayments/models/invoices/payment_retrieve_payout_params.rb +22 -0
  40. data/lib/dodopayments/models/license_key_created_webhook_event.rb +4 -16
  41. data/lib/dodopayments/models/meter_filter.rb +3 -331
  42. data/lib/dodopayments/models/payment.rb +15 -3
  43. data/lib/dodopayments/models/payment_cancelled_webhook_event.rb +4 -16
  44. data/lib/dodopayments/models/payment_create_params.rb +25 -3
  45. data/lib/dodopayments/models/payment_create_response.rb +14 -3
  46. data/lib/dodopayments/models/payment_failed_webhook_event.rb +4 -16
  47. data/lib/dodopayments/models/payment_method_types.rb +1 -0
  48. data/lib/dodopayments/models/payment_processing_webhook_event.rb +4 -16
  49. data/lib/dodopayments/models/payment_succeeded_webhook_event.rb +4 -16
  50. data/lib/dodopayments/models/payout_list_response.rb +6 -3
  51. data/lib/dodopayments/models/price.rb +20 -48
  52. data/lib/dodopayments/models/product.rb +3 -3
  53. data/lib/dodopayments/models/product_collection.rb +74 -0
  54. data/lib/dodopayments/models/product_collection_create_params.rb +47 -0
  55. data/lib/dodopayments/models/product_collection_delete_params.rb +20 -0
  56. data/lib/dodopayments/models/product_collection_list_params.rb +46 -0
  57. data/lib/dodopayments/models/product_collection_list_response.rb +65 -0
  58. data/lib/dodopayments/models/product_collection_retrieve_params.rb +20 -0
  59. data/lib/dodopayments/models/product_collection_unarchive_params.rb +20 -0
  60. data/lib/dodopayments/models/product_collection_unarchive_response.rb +33 -0
  61. data/lib/dodopayments/models/product_collection_update_images_params.rb +29 -0
  62. data/lib/dodopayments/models/product_collection_update_images_response.rb +25 -0
  63. data/lib/dodopayments/models/product_collection_update_params.rb +61 -0
  64. data/lib/dodopayments/models/product_collections/group_create_params.rb +22 -0
  65. data/lib/dodopayments/models/product_collections/group_delete_params.rb +28 -0
  66. data/lib/dodopayments/models/product_collections/group_product.rb +26 -0
  67. data/lib/dodopayments/models/product_collections/group_update_params.rb +59 -0
  68. data/lib/dodopayments/models/product_collections/groups/item_create_params.rb +41 -0
  69. data/lib/dodopayments/models/product_collections/groups/item_create_response.rb +15 -0
  70. data/lib/dodopayments/models/product_collections/groups/item_delete_params.rb +36 -0
  71. data/lib/dodopayments/models/product_collections/groups/item_update_params.rb +47 -0
  72. data/lib/dodopayments/models/product_collections/groups/product_collection_product.rb +132 -0
  73. data/lib/dodopayments/models/product_collections/product_collection_group_details.rb +42 -0
  74. data/lib/dodopayments/models/product_collections/product_collection_group_response.rb +39 -0
  75. data/lib/dodopayments/models/product_create_params.rb +3 -3
  76. data/lib/dodopayments/models/product_item_req.rb +42 -1
  77. data/lib/dodopayments/models/product_update_params.rb +3 -3
  78. data/lib/dodopayments/models/refund_failed_webhook_event.rb +4 -16
  79. data/lib/dodopayments/models/refund_succeeded_webhook_event.rb +4 -16
  80. data/lib/dodopayments/models/subscription.rb +24 -5
  81. data/lib/dodopayments/models/subscription_active_webhook_event.rb +4 -16
  82. data/lib/dodopayments/models/subscription_cancelled_webhook_event.rb +4 -16
  83. data/lib/dodopayments/models/subscription_create_params.rb +25 -3
  84. data/lib/dodopayments/models/subscription_create_response.rb +14 -3
  85. data/lib/dodopayments/models/subscription_expired_webhook_event.rb +4 -16
  86. data/lib/dodopayments/models/subscription_failed_webhook_event.rb +4 -16
  87. data/lib/dodopayments/models/subscription_list_response.rb +45 -5
  88. data/lib/dodopayments/models/subscription_on_hold_webhook_event.rb +4 -16
  89. data/lib/dodopayments/models/subscription_plan_changed_webhook_event.rb +4 -16
  90. data/lib/dodopayments/models/subscription_preview_change_plan_response.rb +21 -49
  91. data/lib/dodopayments/models/subscription_renewed_webhook_event.rb +4 -16
  92. data/lib/dodopayments/models/subscription_update_params.rb +12 -1
  93. data/lib/dodopayments/models/subscription_update_payment_method_params.rb +19 -37
  94. data/lib/dodopayments/models/subscription_updated_webhook_event.rb +4 -16
  95. data/lib/dodopayments/models/unsafe_unwrap_webhook_event.rb +41 -39
  96. data/lib/dodopayments/models/unwrap_webhook_event.rb +41 -39
  97. data/lib/dodopayments/models/update_subscription_plan_req.rb +17 -6
  98. data/lib/dodopayments/models/webhook_event_type.rb +1 -2
  99. data/lib/dodopayments/models/webhook_payload.rb +52 -143
  100. data/lib/dodopayments/models.rb +24 -0
  101. data/lib/dodopayments/resources/checkout_sessions.rb +12 -4
  102. data/lib/dodopayments/resources/invoices/payments.rb +18 -0
  103. data/lib/dodopayments/resources/payments.rb +6 -2
  104. data/lib/dodopayments/resources/product_collections/groups/items.rb +111 -0
  105. data/lib/dodopayments/resources/product_collections/groups.rb +109 -0
  106. data/lib/dodopayments/resources/product_collections.rb +179 -0
  107. data/lib/dodopayments/resources/subscriptions.rb +20 -10
  108. data/lib/dodopayments/version.rb +1 -1
  109. data/lib/dodopayments.rb +29 -0
  110. data/rbi/dodopayments/client.rbi +3 -0
  111. data/rbi/dodopayments/models/abandoned_checkout_detected_webhook_event.rbi +4 -40
  112. data/rbi/dodopayments/models/abandoned_checkout_recovered_webhook_event.rbi +4 -40
  113. data/rbi/dodopayments/models/checkout_session_flags.rbi +23 -0
  114. data/rbi/dodopayments/models/checkout_session_request.rbi +26 -0
  115. data/rbi/dodopayments/models/checkout_session_response.rbi +43 -5
  116. data/rbi/dodopayments/models/credit_added_webhook_event.rbi +4 -29
  117. data/rbi/dodopayments/models/credit_balance_low_webhook_event.rbi +4 -33
  118. data/rbi/dodopayments/models/credit_deducted_webhook_event.rbi +4 -33
  119. data/rbi/dodopayments/models/credit_expired_webhook_event.rbi +4 -33
  120. data/rbi/dodopayments/models/credit_manual_adjustment_webhook_event.rbi +4 -39
  121. data/rbi/dodopayments/models/credit_overage_charged_webhook_event.rbi +4 -36
  122. data/rbi/dodopayments/models/credit_overage_reset_webhook_event.rbi +4 -36
  123. data/rbi/dodopayments/models/credit_rolled_over_webhook_event.rbi +4 -33
  124. data/rbi/dodopayments/models/credit_rollover_forfeited_webhook_event.rbi +4 -40
  125. data/rbi/dodopayments/models/discount_detail.rbi +161 -0
  126. data/rbi/dodopayments/models/dispute_accepted_webhook_event.rbi +4 -33
  127. data/rbi/dodopayments/models/dispute_cancelled_webhook_event.rbi +4 -33
  128. data/rbi/dodopayments/models/dispute_challenged_webhook_event.rbi +4 -34
  129. data/rbi/dodopayments/models/dispute_expired_webhook_event.rbi +4 -33
  130. data/rbi/dodopayments/models/dispute_lost_webhook_event.rbi +4 -29
  131. data/rbi/dodopayments/models/dispute_opened_webhook_event.rbi +4 -33
  132. data/rbi/dodopayments/models/dispute_won_webhook_event.rbi +4 -29
  133. data/rbi/dodopayments/models/dunning_recovered_webhook_event.rbi +4 -33
  134. data/rbi/dodopayments/models/dunning_started_webhook_event.rbi +4 -33
  135. data/rbi/dodopayments/models/entitlement_grant_created_webhook_event.rbi +4 -40
  136. data/rbi/dodopayments/models/entitlement_grant_delivered_webhook_event.rbi +4 -40
  137. data/rbi/dodopayments/models/entitlement_grant_failed_webhook_event.rbi +4 -39
  138. data/rbi/dodopayments/models/entitlement_grant_revoked_webhook_event.rbi +4 -40
  139. data/rbi/dodopayments/models/filter_type.rbi +112 -0
  140. data/rbi/dodopayments/models/github_permission.rbi +26 -0
  141. data/rbi/dodopayments/models/integration_config.rbi +3 -59
  142. data/rbi/dodopayments/models/integration_config_response.rbi +3 -59
  143. data/rbi/dodopayments/models/invoices/payment_retrieve_payout_params.rbi +40 -0
  144. data/rbi/dodopayments/models/license_key_created_webhook_event.rbi +4 -34
  145. data/rbi/dodopayments/models/meter_filter.rbi +3 -572
  146. data/rbi/dodopayments/models/payment.rbi +10 -2
  147. data/rbi/dodopayments/models/payment_cancelled_webhook_event.rbi +4 -33
  148. data/rbi/dodopayments/models/payment_create_params.rbi +26 -2
  149. data/rbi/dodopayments/models/payment_create_response.rbi +12 -2
  150. data/rbi/dodopayments/models/payment_failed_webhook_event.rbi +4 -33
  151. data/rbi/dodopayments/models/payment_method_types.rbi +1 -0
  152. data/rbi/dodopayments/models/payment_processing_webhook_event.rbi +4 -34
  153. data/rbi/dodopayments/models/payment_succeeded_webhook_event.rbi +4 -33
  154. data/rbi/dodopayments/models/price.rbi +18 -90
  155. data/rbi/dodopayments/models/product_collection.rbi +108 -0
  156. data/rbi/dodopayments/models/product_collection_create_params.rbi +82 -0
  157. data/rbi/dodopayments/models/product_collection_delete_params.rbi +38 -0
  158. data/rbi/dodopayments/models/product_collection_list_params.rbi +82 -0
  159. data/rbi/dodopayments/models/product_collection_list_response.rbi +88 -0
  160. data/rbi/dodopayments/models/product_collection_retrieve_params.rbi +38 -0
  161. data/rbi/dodopayments/models/product_collection_unarchive_params.rbi +38 -0
  162. data/rbi/dodopayments/models/product_collection_unarchive_response.rbi +56 -0
  163. data/rbi/dodopayments/models/product_collection_update_images_params.rbi +52 -0
  164. data/rbi/dodopayments/models/product_collection_update_images_response.rbi +40 -0
  165. data/rbi/dodopayments/models/product_collection_update_params.rbi +84 -0
  166. data/rbi/dodopayments/models/product_collections/group_create_params.rbi +40 -0
  167. data/rbi/dodopayments/models/product_collections/group_delete_params.rbi +48 -0
  168. data/rbi/dodopayments/models/product_collections/group_product.rbi +46 -0
  169. data/rbi/dodopayments/models/product_collections/group_update_params.rbi +80 -0
  170. data/rbi/dodopayments/models/product_collections/groups/item_create_params.rbi +68 -0
  171. data/rbi/dodopayments/models/product_collections/groups/item_create_response.rbi +17 -0
  172. data/rbi/dodopayments/models/product_collections/groups/item_delete_params.rbi +55 -0
  173. data/rbi/dodopayments/models/product_collections/groups/item_update_params.rbi +68 -0
  174. data/rbi/dodopayments/models/product_collections/groups/product_collection_product.rbi +148 -0
  175. data/rbi/dodopayments/models/product_collections/product_collection_group_details.rbi +67 -0
  176. data/rbi/dodopayments/models/product_collections/product_collection_group_response.rbi +68 -0
  177. data/rbi/dodopayments/models/product_item_req.rbi +74 -3
  178. data/rbi/dodopayments/models/refund_failed_webhook_event.rbi +4 -31
  179. data/rbi/dodopayments/models/refund_succeeded_webhook_event.rbi +4 -33
  180. data/rbi/dodopayments/models/subscription.rbi +22 -4
  181. data/rbi/dodopayments/models/subscription_active_webhook_event.rbi +4 -36
  182. data/rbi/dodopayments/models/subscription_cancelled_webhook_event.rbi +4 -36
  183. data/rbi/dodopayments/models/subscription_create_params.rbi +26 -2
  184. data/rbi/dodopayments/models/subscription_create_response.rbi +12 -2
  185. data/rbi/dodopayments/models/subscription_expired_webhook_event.rbi +4 -36
  186. data/rbi/dodopayments/models/subscription_failed_webhook_event.rbi +4 -36
  187. data/rbi/dodopayments/models/subscription_list_response.rbi +77 -4
  188. data/rbi/dodopayments/models/subscription_on_hold_webhook_event.rbi +4 -36
  189. data/rbi/dodopayments/models/subscription_plan_changed_webhook_event.rbi +4 -40
  190. data/rbi/dodopayments/models/subscription_preview_change_plan_response.rbi +18 -123
  191. data/rbi/dodopayments/models/subscription_renewed_webhook_event.rbi +4 -36
  192. data/rbi/dodopayments/models/subscription_update_params.rbi +14 -0
  193. data/rbi/dodopayments/models/subscription_update_payment_method_params.rbi +28 -112
  194. data/rbi/dodopayments/models/subscription_updated_webhook_event.rbi +4 -36
  195. data/rbi/dodopayments/models/update_subscription_plan_req.rbi +18 -8
  196. data/rbi/dodopayments/models/webhook_event_type.rbi +5 -4
  197. data/rbi/dodopayments/models/webhook_payload.rbi +46 -466
  198. data/rbi/dodopayments/models.rbi +31 -0
  199. data/rbi/dodopayments/resources/checkout_sessions.rbi +22 -0
  200. data/rbi/dodopayments/resources/invoices/payments.rbi +9 -0
  201. data/rbi/dodopayments/resources/payments.rbi +11 -1
  202. data/rbi/dodopayments/resources/product_collections/groups/items.rbi +83 -0
  203. data/rbi/dodopayments/resources/product_collections/groups.rbi +88 -0
  204. data/rbi/dodopayments/resources/product_collections.rbi +149 -0
  205. data/rbi/dodopayments/resources/subscriptions.rbi +37 -13
  206. data/sig/dodopayments/client.rbs +2 -0
  207. data/sig/dodopayments/models/abandoned_checkout_detected_webhook_event.rbs +4 -14
  208. data/sig/dodopayments/models/abandoned_checkout_recovered_webhook_event.rbs +4 -14
  209. data/sig/dodopayments/models/checkout_session_flags.rbs +7 -0
  210. data/sig/dodopayments/models/checkout_session_request.rbs +10 -0
  211. data/sig/dodopayments/models/checkout_session_response.rbs +27 -3
  212. data/sig/dodopayments/models/credit_added_webhook_event.rbs +4 -14
  213. data/sig/dodopayments/models/credit_balance_low_webhook_event.rbs +4 -14
  214. data/sig/dodopayments/models/credit_deducted_webhook_event.rbs +4 -14
  215. data/sig/dodopayments/models/credit_expired_webhook_event.rbs +4 -14
  216. data/sig/dodopayments/models/credit_manual_adjustment_webhook_event.rbs +4 -14
  217. data/sig/dodopayments/models/credit_overage_charged_webhook_event.rbs +4 -14
  218. data/sig/dodopayments/models/credit_overage_reset_webhook_event.rbs +4 -14
  219. data/sig/dodopayments/models/credit_rolled_over_webhook_event.rbs +4 -14
  220. data/sig/dodopayments/models/credit_rollover_forfeited_webhook_event.rbs +4 -14
  221. data/sig/dodopayments/models/discount_detail.rbs +95 -0
  222. data/sig/dodopayments/models/dispute_accepted_webhook_event.rbs +4 -14
  223. data/sig/dodopayments/models/dispute_cancelled_webhook_event.rbs +4 -14
  224. data/sig/dodopayments/models/dispute_challenged_webhook_event.rbs +4 -14
  225. data/sig/dodopayments/models/dispute_expired_webhook_event.rbs +4 -14
  226. data/sig/dodopayments/models/dispute_lost_webhook_event.rbs +4 -14
  227. data/sig/dodopayments/models/dispute_opened_webhook_event.rbs +4 -14
  228. data/sig/dodopayments/models/dispute_won_webhook_event.rbs +4 -14
  229. data/sig/dodopayments/models/dunning_recovered_webhook_event.rbs +4 -14
  230. data/sig/dodopayments/models/dunning_started_webhook_event.rbs +4 -14
  231. data/sig/dodopayments/models/entitlement_grant_created_webhook_event.rbs +4 -14
  232. data/sig/dodopayments/models/entitlement_grant_delivered_webhook_event.rbs +4 -14
  233. data/sig/dodopayments/models/entitlement_grant_failed_webhook_event.rbs +4 -14
  234. data/sig/dodopayments/models/entitlement_grant_revoked_webhook_event.rbs +4 -14
  235. data/sig/dodopayments/models/filter_type.rbs +52 -0
  236. data/sig/dodopayments/models/github_permission.rbs +17 -0
  237. data/sig/dodopayments/models/integration_config.rbs +4 -18
  238. data/sig/dodopayments/models/integration_config_response.rbs +4 -18
  239. data/sig/dodopayments/models/invoices/payment_retrieve_payout_params.rbs +25 -0
  240. data/sig/dodopayments/models/license_key_created_webhook_event.rbs +4 -14
  241. data/sig/dodopayments/models/meter_filter.rbs +4 -252
  242. data/sig/dodopayments/models/payment.rbs +5 -0
  243. data/sig/dodopayments/models/payment_cancelled_webhook_event.rbs +4 -14
  244. data/sig/dodopayments/models/payment_create_params.rbs +10 -0
  245. data/sig/dodopayments/models/payment_create_response.rbs +5 -0
  246. data/sig/dodopayments/models/payment_failed_webhook_event.rbs +4 -14
  247. data/sig/dodopayments/models/payment_method_types.rbs +2 -0
  248. data/sig/dodopayments/models/payment_processing_webhook_event.rbs +4 -14
  249. data/sig/dodopayments/models/payment_succeeded_webhook_event.rbs +4 -14
  250. data/sig/dodopayments/models/price.rbs +15 -45
  251. data/sig/dodopayments/models/product_collection.rbs +55 -0
  252. data/sig/dodopayments/models/product_collection_create_params.rbs +41 -0
  253. data/sig/dodopayments/models/product_collection_delete_params.rbs +23 -0
  254. data/sig/dodopayments/models/product_collection_list_params.rbs +49 -0
  255. data/sig/dodopayments/models/product_collection_list_response.rbs +50 -0
  256. data/sig/dodopayments/models/product_collection_retrieve_params.rbs +23 -0
  257. data/sig/dodopayments/models/product_collection_unarchive_params.rbs +23 -0
  258. data/sig/dodopayments/models/product_collection_unarchive_response.rbs +30 -0
  259. data/sig/dodopayments/models/product_collection_update_images_params.rbs +28 -0
  260. data/sig/dodopayments/models/product_collection_update_images_response.rbs +16 -0
  261. data/sig/dodopayments/models/product_collection_update_params.rbs +51 -0
  262. data/sig/dodopayments/models/product_collections/group_create_params.rbs +27 -0
  263. data/sig/dodopayments/models/product_collections/group_delete_params.rbs +30 -0
  264. data/sig/dodopayments/models/product_collections/group_product.rbs +17 -0
  265. data/sig/dodopayments/models/product_collections/group_update_params.rbs +48 -0
  266. data/sig/dodopayments/models/product_collections/groups/item_create_params.rbs +40 -0
  267. data/sig/dodopayments/models/product_collections/groups/item_create_response.rbs +12 -0
  268. data/sig/dodopayments/models/product_collections/groups/item_delete_params.rbs +36 -0
  269. data/sig/dodopayments/models/product_collections/groups/item_update_params.rbs +40 -0
  270. data/sig/dodopayments/models/product_collections/groups/product_collection_product.rbs +99 -0
  271. data/sig/dodopayments/models/product_collections/product_collection_group_details.rbs +34 -0
  272. data/sig/dodopayments/models/product_collections/product_collection_group_response.rbs +39 -0
  273. data/sig/dodopayments/models/product_item_req.rbs +27 -3
  274. data/sig/dodopayments/models/refund_failed_webhook_event.rbs +4 -14
  275. data/sig/dodopayments/models/refund_succeeded_webhook_event.rbs +4 -14
  276. data/sig/dodopayments/models/subscription.rbs +10 -0
  277. data/sig/dodopayments/models/subscription_active_webhook_event.rbs +4 -14
  278. data/sig/dodopayments/models/subscription_cancelled_webhook_event.rbs +4 -14
  279. data/sig/dodopayments/models/subscription_create_params.rbs +10 -0
  280. data/sig/dodopayments/models/subscription_create_response.rbs +5 -0
  281. data/sig/dodopayments/models/subscription_expired_webhook_event.rbs +4 -14
  282. data/sig/dodopayments/models/subscription_failed_webhook_event.rbs +4 -14
  283. data/sig/dodopayments/models/subscription_list_response.rbs +29 -0
  284. data/sig/dodopayments/models/subscription_on_hold_webhook_event.rbs +4 -14
  285. data/sig/dodopayments/models/subscription_plan_changed_webhook_event.rbs +4 -14
  286. data/sig/dodopayments/models/subscription_preview_change_plan_response.rbs +15 -45
  287. data/sig/dodopayments/models/subscription_renewed_webhook_event.rbs +4 -14
  288. data/sig/dodopayments/models/subscription_update_params.rbs +5 -0
  289. data/sig/dodopayments/models/subscription_update_payment_method_params.rbs +17 -57
  290. data/sig/dodopayments/models/subscription_updated_webhook_event.rbs +4 -14
  291. data/sig/dodopayments/models/update_subscription_plan_req.rbs +5 -0
  292. data/sig/dodopayments/models/webhook_event_type.rbs +2 -4
  293. data/sig/dodopayments/models/webhook_payload.rbs +50 -213
  294. data/sig/dodopayments/models.rbs +24 -0
  295. data/sig/dodopayments/resources/checkout_sessions.rbs +4 -0
  296. data/sig/dodopayments/resources/invoices/payments.rbs +5 -0
  297. data/sig/dodopayments/resources/payments.rbs +2 -0
  298. data/sig/dodopayments/resources/product_collections/groups/items.rbs +33 -0
  299. data/sig/dodopayments/resources/product_collections/groups.rbs +34 -0
  300. data/sig/dodopayments/resources/product_collections.rbs +56 -0
  301. data/sig/dodopayments/resources/subscriptions.rbs +6 -1
  302. metadata +89 -2
@@ -183,6 +183,8 @@ module Dodopayments
183
183
 
184
184
  DiscountDeleteParams = Dodopayments::Models::DiscountDeleteParams
185
185
 
186
+ DiscountDetail = Dodopayments::Models::DiscountDetail
187
+
186
188
  DiscountListParams = Dodopayments::Models::DiscountListParams
187
189
 
188
190
  DiscountRetrieveByCodeParams =
@@ -260,8 +262,12 @@ module Dodopayments
260
262
 
261
263
  FilterOperator = Dodopayments::Models::FilterOperator
262
264
 
265
+ FilterType = Dodopayments::Models::FilterType
266
+
263
267
  GetDispute = Dodopayments::Models::GetDispute
264
268
 
269
+ GitHubPermission = Dodopayments::Models::GitHubPermission
270
+
265
271
  IntegrationConfig = Dodopayments::Models::IntegrationConfig
266
272
 
267
273
  IntegrationConfigResponse = Dodopayments::Models::IntegrationConfigResponse
@@ -370,6 +376,31 @@ module Dodopayments
370
376
 
371
377
  ProductArchiveParams = Dodopayments::Models::ProductArchiveParams
372
378
 
379
+ ProductCollection = Dodopayments::Models::ProductCollection
380
+
381
+ ProductCollectionCreateParams =
382
+ Dodopayments::Models::ProductCollectionCreateParams
383
+
384
+ ProductCollectionDeleteParams =
385
+ Dodopayments::Models::ProductCollectionDeleteParams
386
+
387
+ ProductCollectionListParams =
388
+ Dodopayments::Models::ProductCollectionListParams
389
+
390
+ ProductCollectionRetrieveParams =
391
+ Dodopayments::Models::ProductCollectionRetrieveParams
392
+
393
+ ProductCollections = Dodopayments::Models::ProductCollections
394
+
395
+ ProductCollectionUnarchiveParams =
396
+ Dodopayments::Models::ProductCollectionUnarchiveParams
397
+
398
+ ProductCollectionUpdateImagesParams =
399
+ Dodopayments::Models::ProductCollectionUpdateImagesParams
400
+
401
+ ProductCollectionUpdateParams =
402
+ Dodopayments::Models::ProductCollectionUpdateParams
403
+
373
404
  ProductCreateParams = Dodopayments::Models::ProductCreateParams
374
405
 
375
406
  ProductEntitlementSummary = Dodopayments::Models::ProductEntitlementSummary
@@ -21,8 +21,10 @@ module Dodopayments
21
21
  Dodopayments::NewCustomer::OrHash
22
22
  )
23
23
  ),
24
+ customer_business_name: T.nilable(String),
24
25
  customization: Dodopayments::CheckoutSessionCustomization::OrHash,
25
26
  discount_code: T.nilable(String),
27
+ discount_codes: T.nilable(T::Array[String]),
26
28
  feature_flags: Dodopayments::CheckoutSessionFlags::OrHash,
27
29
  force_3ds: T.nilable(T::Boolean),
28
30
  mandate_min_amount_inr_paise: T.nilable(Integer),
@@ -61,9 +63,18 @@ module Dodopayments
61
63
  custom_fields: nil,
62
64
  # Customer details for the session
63
65
  customer: nil,
66
+ # Optional business / legal name associated with the tax id. When provided
67
+ # together with a valid tax id for a B2B purchase, this name is rendered on the
68
+ # invoice instead of the customer's personal name.
69
+ customer_business_name: nil,
64
70
  # Customization for the checkout session page
65
71
  customization: nil,
72
+ # DEPRECATED: Use discount_codes instead. Cannot be used together with
73
+ # discount_codes.
66
74
  discount_code: nil,
75
+ # Stacked discount codes to apply, in order. Max 20. Cannot be used together with
76
+ # discount_code.
77
+ discount_codes: nil,
67
78
  feature_flags: nil,
68
79
  # Override merchant default 3DS behaviour for this session
69
80
  force_3ds: nil,
@@ -126,8 +137,10 @@ module Dodopayments
126
137
  Dodopayments::NewCustomer::OrHash
127
138
  )
128
139
  ),
140
+ customer_business_name: T.nilable(String),
129
141
  customization: Dodopayments::CheckoutSessionCustomization::OrHash,
130
142
  discount_code: T.nilable(String),
143
+ discount_codes: T.nilable(T::Array[String]),
131
144
  feature_flags: Dodopayments::CheckoutSessionFlags::OrHash,
132
145
  force_3ds: T.nilable(T::Boolean),
133
146
  mandate_min_amount_inr_paise: T.nilable(Integer),
@@ -166,9 +179,18 @@ module Dodopayments
166
179
  custom_fields: nil,
167
180
  # Customer details for the session
168
181
  customer: nil,
182
+ # Optional business / legal name associated with the tax id. When provided
183
+ # together with a valid tax id for a B2B purchase, this name is rendered on the
184
+ # invoice instead of the customer's personal name.
185
+ customer_business_name: nil,
169
186
  # Customization for the checkout session page
170
187
  customization: nil,
188
+ # DEPRECATED: Use discount_codes instead. Cannot be used together with
189
+ # discount_codes.
171
190
  discount_code: nil,
191
+ # Stacked discount codes to apply, in order. Max 20. Cannot be used together with
192
+ # discount_code.
193
+ discount_codes: nil,
172
194
  feature_flags: nil,
173
195
  # Override merchant default 3DS behaviour for this session
174
196
  force_3ds: nil,
@@ -13,6 +13,15 @@ module Dodopayments
13
13
  def retrieve(payment_id, request_options: {})
14
14
  end
15
15
 
16
+ sig do
17
+ params(
18
+ payout_id: String,
19
+ request_options: Dodopayments::RequestOptions::OrHash
20
+ ).returns(StringIO)
21
+ end
22
+ def retrieve_payout(payout_id, request_options: {})
23
+ end
24
+
16
25
  sig do
17
26
  params(
18
27
  refund_id: String,
@@ -16,7 +16,9 @@ module Dodopayments
16
16
  allowed_payment_method_types:
17
17
  T.nilable(T::Array[Dodopayments::PaymentMethodTypes::OrSymbol]),
18
18
  billing_currency: T.nilable(Dodopayments::Currency::OrSymbol),
19
+ customer_business_name: T.nilable(String),
19
20
  discount_code: T.nilable(String),
21
+ discount_codes: T.nilable(T::Array[String]),
20
22
  force_3ds: T.nilable(T::Boolean),
21
23
  metadata: T::Hash[Symbol, String],
22
24
  payment_link: T.nilable(T::Boolean),
@@ -50,8 +52,16 @@ module Dodopayments
50
52
  # Fix the currency in which the end customer is billed. If Dodo Payments cannot
51
53
  # support that currency for this transaction, it will not proceed
52
54
  billing_currency: nil,
53
- # Discount Code to apply to the transaction
55
+ # Optional business / legal name associated with the tax id. When provided
56
+ # together with a valid tax id for a B2B purchase, this name is rendered on the
57
+ # invoice instead of the customer's personal name.
58
+ customer_business_name: nil,
59
+ # DEPRECATED: Use discount_codes instead. Cannot be used together with
60
+ # discount_codes.
54
61
  discount_code: nil,
62
+ # Stacked discount codes to apply, in order of application. Max 20. Cannot be used
63
+ # together with discount_code.
64
+ discount_codes: nil,
55
65
  # Override merchant default 3DS behaviour for this payment
56
66
  force_3ds: nil,
57
67
  # Additional metadata associated with the payment. Defaults to empty if not
@@ -0,0 +1,83 @@
1
+ # typed: strong
2
+
3
+ module Dodopayments
4
+ module Resources
5
+ class ProductCollections
6
+ class Groups
7
+ class Items
8
+ sig do
9
+ params(
10
+ group_id: String,
11
+ id: String,
12
+ products:
13
+ T::Array[
14
+ Dodopayments::ProductCollections::GroupProduct::OrHash
15
+ ],
16
+ request_options: Dodopayments::RequestOptions::OrHash
17
+ ).returns(
18
+ T::Array[
19
+ Dodopayments::ProductCollections::Groups::ProductCollectionProduct
20
+ ]
21
+ )
22
+ end
23
+ def create(
24
+ # Path param: Product Collection Group Id
25
+ group_id,
26
+ # Path param: Product Collection Id
27
+ id:,
28
+ # Body param: Products to add to the group
29
+ products:,
30
+ request_options: {}
31
+ )
32
+ end
33
+
34
+ sig do
35
+ params(
36
+ item_id: String,
37
+ id: String,
38
+ group_id: String,
39
+ status: T::Boolean,
40
+ request_options: Dodopayments::RequestOptions::OrHash
41
+ ).void
42
+ end
43
+ def update(
44
+ # Path param: Collection item Id (product membership in group)
45
+ item_id,
46
+ # Path param: Product Collection Id
47
+ id:,
48
+ # Path param: Product Collection Group Id
49
+ group_id:,
50
+ # Body param: Status of the product in the group
51
+ status:,
52
+ request_options: {}
53
+ )
54
+ end
55
+
56
+ sig do
57
+ params(
58
+ item_id: String,
59
+ id: String,
60
+ group_id: String,
61
+ request_options: Dodopayments::RequestOptions::OrHash
62
+ ).void
63
+ end
64
+ def delete(
65
+ # Collection item Id (product membership in group)
66
+ item_id,
67
+ # Product Collection Id
68
+ id:,
69
+ # Product Collection Group Id
70
+ group_id:,
71
+ request_options: {}
72
+ )
73
+ end
74
+
75
+ # @api private
76
+ sig { params(client: Dodopayments::Client).returns(T.attached_class) }
77
+ def self.new(client:)
78
+ end
79
+ end
80
+ end
81
+ end
82
+ end
83
+ end
@@ -0,0 +1,88 @@
1
+ # typed: strong
2
+
3
+ module Dodopayments
4
+ module Resources
5
+ class ProductCollections
6
+ class Groups
7
+ sig do
8
+ returns(Dodopayments::Resources::ProductCollections::Groups::Items)
9
+ end
10
+ attr_reader :items
11
+
12
+ sig do
13
+ params(
14
+ id: String,
15
+ products:
16
+ T::Array[Dodopayments::ProductCollections::GroupProduct::OrHash],
17
+ group_name: T.nilable(String),
18
+ status: T.nilable(T::Boolean),
19
+ request_options: Dodopayments::RequestOptions::OrHash
20
+ ).returns(
21
+ Dodopayments::ProductCollections::ProductCollectionGroupResponse
22
+ )
23
+ end
24
+ def create(
25
+ # Product Collection Id
26
+ id,
27
+ # Products in this group
28
+ products:,
29
+ # Optional group name. Multiple groups can have null names, but named groups must
30
+ # be unique per collection
31
+ group_name: nil,
32
+ # Status of the group (defaults to true if not provided)
33
+ status: nil,
34
+ request_options: {}
35
+ )
36
+ end
37
+
38
+ sig do
39
+ params(
40
+ group_id: String,
41
+ id: String,
42
+ group_name: T.nilable(String),
43
+ product_order: T.nilable(T::Array[String]),
44
+ status: T.nilable(T::Boolean),
45
+ request_options: Dodopayments::RequestOptions::OrHash
46
+ ).void
47
+ end
48
+ def update(
49
+ # Path param: Product Collection Group Id
50
+ group_id,
51
+ # Path param: Product Collection Id
52
+ id:,
53
+ # Body param: Optional group name update: Some(Some(name)) = set name, Some(None)
54
+ # = clear name, None = no change
55
+ group_name: nil,
56
+ # Body param: Optional new order for products in this group (array of
57
+ # product_collection_group_pdts UUIDs)
58
+ product_order: nil,
59
+ # Body param: Optional status update
60
+ status: nil,
61
+ request_options: {}
62
+ )
63
+ end
64
+
65
+ sig do
66
+ params(
67
+ group_id: String,
68
+ id: String,
69
+ request_options: Dodopayments::RequestOptions::OrHash
70
+ ).void
71
+ end
72
+ def delete(
73
+ # Product Collection Group Id
74
+ group_id,
75
+ # Product Collection Id
76
+ id:,
77
+ request_options: {}
78
+ )
79
+ end
80
+
81
+ # @api private
82
+ sig { params(client: Dodopayments::Client).returns(T.attached_class) }
83
+ def self.new(client:)
84
+ end
85
+ end
86
+ end
87
+ end
88
+ end
@@ -0,0 +1,149 @@
1
+ # typed: strong
2
+
3
+ module Dodopayments
4
+ module Resources
5
+ class ProductCollections
6
+ sig { returns(Dodopayments::Resources::ProductCollections::Groups) }
7
+ attr_reader :groups
8
+
9
+ sig do
10
+ params(
11
+ groups:
12
+ T::Array[
13
+ Dodopayments::ProductCollections::ProductCollectionGroupDetails::OrHash
14
+ ],
15
+ name: String,
16
+ brand_id: T.nilable(String),
17
+ description: T.nilable(String),
18
+ request_options: Dodopayments::RequestOptions::OrHash
19
+ ).returns(Dodopayments::ProductCollection)
20
+ end
21
+ def create(
22
+ # Groups of products in this collection
23
+ groups:,
24
+ # Name of the product collection
25
+ name:,
26
+ # Brand id for the collection, if not provided will default to primary brand
27
+ brand_id: nil,
28
+ # Optional description of the product collection
29
+ description: nil,
30
+ request_options: {}
31
+ )
32
+ end
33
+
34
+ sig do
35
+ params(
36
+ id: String,
37
+ request_options: Dodopayments::RequestOptions::OrHash
38
+ ).returns(Dodopayments::ProductCollection)
39
+ end
40
+ def retrieve(
41
+ # Product Collection Id
42
+ id,
43
+ request_options: {}
44
+ )
45
+ end
46
+
47
+ sig do
48
+ params(
49
+ id: String,
50
+ brand_id: T.nilable(String),
51
+ description: T.nilable(String),
52
+ group_order: T.nilable(T::Array[String]),
53
+ image_id: T.nilable(String),
54
+ name: T.nilable(String),
55
+ request_options: Dodopayments::RequestOptions::OrHash
56
+ ).void
57
+ end
58
+ def update(
59
+ # Product Collection Id
60
+ id,
61
+ # Optional brand_id update
62
+ brand_id: nil,
63
+ # Optional description update - pass null to remove, omit to keep unchanged
64
+ description: nil,
65
+ # Optional new order for groups (array of group UUIDs in desired order)
66
+ group_order: nil,
67
+ # Optional image update - pass null to remove, omit to keep unchanged
68
+ image_id: nil,
69
+ # Optional new name for the collection
70
+ name: nil,
71
+ request_options: {}
72
+ )
73
+ end
74
+
75
+ sig do
76
+ params(
77
+ archived: T::Boolean,
78
+ brand_id: String,
79
+ page_number: Integer,
80
+ page_size: Integer,
81
+ request_options: Dodopayments::RequestOptions::OrHash
82
+ ).returns(
83
+ Dodopayments::Internal::DefaultPageNumberPagination[
84
+ Dodopayments::Models::ProductCollectionListResponse
85
+ ]
86
+ )
87
+ end
88
+ def list(
89
+ # List archived collections
90
+ archived: nil,
91
+ # Filter by Brand id
92
+ brand_id: nil,
93
+ # Page number default is 0
94
+ page_number: nil,
95
+ # Page size default is 10 max is 100
96
+ page_size: nil,
97
+ request_options: {}
98
+ )
99
+ end
100
+
101
+ sig do
102
+ params(
103
+ id: String,
104
+ request_options: Dodopayments::RequestOptions::OrHash
105
+ ).void
106
+ end
107
+ def delete(
108
+ # Product Collection Id
109
+ id,
110
+ request_options: {}
111
+ )
112
+ end
113
+
114
+ sig do
115
+ params(
116
+ id: String,
117
+ request_options: Dodopayments::RequestOptions::OrHash
118
+ ).returns(Dodopayments::Models::ProductCollectionUnarchiveResponse)
119
+ end
120
+ def unarchive(
121
+ # Product Collection Id
122
+ id,
123
+ request_options: {}
124
+ )
125
+ end
126
+
127
+ sig do
128
+ params(
129
+ id: String,
130
+ force_update: T.nilable(T::Boolean),
131
+ request_options: Dodopayments::RequestOptions::OrHash
132
+ ).returns(Dodopayments::Models::ProductCollectionUpdateImagesResponse)
133
+ end
134
+ def update_images(
135
+ # Product Collection Id
136
+ id,
137
+ # If true, generates a new image ID to force cache invalidation
138
+ force_update: nil,
139
+ request_options: {}
140
+ )
141
+ end
142
+
143
+ # @api private
144
+ sig { params(client: Dodopayments::Client).returns(T.attached_class) }
145
+ def self.new(client:)
146
+ end
147
+ end
148
+ end
149
+ end
@@ -17,7 +17,9 @@ module Dodopayments
17
17
  allowed_payment_method_types:
18
18
  T.nilable(T::Array[Dodopayments::PaymentMethodTypes::OrSymbol]),
19
19
  billing_currency: T.nilable(Dodopayments::Currency::OrSymbol),
20
+ customer_business_name: T.nilable(String),
20
21
  discount_code: T.nilable(String),
22
+ discount_codes: T.nilable(T::Array[String]),
21
23
  force_3ds: T.nilable(T::Boolean),
22
24
  mandate_min_amount_inr_paise: T.nilable(Integer),
23
25
  metadata: T::Hash[Symbol, String],
@@ -57,8 +59,16 @@ module Dodopayments
57
59
  # Fix the currency in which the end customer is billed. If Dodo Payments cannot
58
60
  # support that currency for this transaction, it will not proceed
59
61
  billing_currency: nil,
60
- # Discount Code to apply to the subscription
62
+ # Optional business / legal name associated with the tax id. When provided
63
+ # together with a valid tax id for a B2B purchase, this name is rendered on the
64
+ # invoice instead of the customer's personal name.
65
+ customer_business_name: nil,
66
+ # DEPRECATED: Use discount_codes instead. Cannot be used together with
67
+ # discount_codes.
61
68
  discount_code: nil,
69
+ # Stacked discount codes to apply, in order of application. Max 20. Cannot be used
70
+ # together with discount_code.
71
+ discount_codes: nil,
62
72
  # Override merchant default 3DS behaviour for this subscription
63
73
  force_3ds: nil,
64
74
  # Override the merchant-level mandate floor (in INR paise) for INR e-mandates on
@@ -134,6 +144,7 @@ module Dodopayments
134
144
  Dodopayments::SubscriptionUpdateParams::CreditEntitlementCart::OrHash
135
145
  ]
136
146
  ),
147
+ customer_business_name: T.nilable(String),
137
148
  customer_name: T.nilable(String),
138
149
  disable_on_demand:
139
150
  T.nilable(
@@ -161,6 +172,11 @@ module Dodopayments
161
172
  cancellation_feedback: nil,
162
173
  # Update credit entitlement cart settings
163
174
  credit_entitlement_cart: nil,
175
+ # Optional business / legal name associated with the tax id. When provided
176
+ # together with a valid tax id for a B2B subscription, this name is rendered on
177
+ # the invoice instead of the customer's personal name. Send `null` to explicitly
178
+ # clear the business name.
179
+ customer_business_name: nil,
164
180
  customer_name: nil,
165
181
  disable_on_demand: nil,
166
182
  metadata: nil,
@@ -232,6 +248,7 @@ module Dodopayments
232
248
  adaptive_currency_fees_inclusive: T.nilable(T::Boolean),
233
249
  addons: T.nilable(T::Array[Dodopayments::AttachAddon::OrHash]),
234
250
  discount_code: T.nilable(String),
251
+ discount_codes: T.nilable(T::Array[String]),
235
252
  effective_at:
236
253
  Dodopayments::UpdateSubscriptionPlanReq::EffectiveAt::OrSymbol,
237
254
  metadata: T.nilable(T::Hash[Symbol, String]),
@@ -257,11 +274,14 @@ module Dodopayments
257
274
  # Addons for the new plan. Note : Leaving this empty would remove any existing
258
275
  # addons
259
276
  addons: nil,
260
- # Optional discount code to apply to the new plan. If provided, validates and
261
- # applies the discount to the plan change. If not provided and the subscription
262
- # has an existing discount with `preserve_on_plan_change=true`, the existing
263
- # discount will be preserved (if applicable to the new product).
277
+ # DEPRECATED: Use discount_codes instead. Cannot be used together with
278
+ # discount_codes.
264
279
  discount_code: nil,
280
+ # Stacked discount codes to apply to the new plan. Max 20. Cannot be used together
281
+ # with discount_code. If provided, replaces any existing discount codes. Empty
282
+ # array removes all discounts. If not provided (None), existing discounts with
283
+ # preserve_on_plan_change=true are preserved.
284
+ discount_codes: nil,
265
285
  # When to apply the plan change.
266
286
  #
267
287
  # - `immediately` (default): Apply the plan change right away
@@ -332,6 +352,7 @@ module Dodopayments
332
352
  adaptive_currency_fees_inclusive: T.nilable(T::Boolean),
333
353
  addons: T.nilable(T::Array[Dodopayments::AttachAddon::OrHash]),
334
354
  discount_code: T.nilable(String),
355
+ discount_codes: T.nilable(T::Array[String]),
335
356
  effective_at:
336
357
  Dodopayments::UpdateSubscriptionPlanReq::EffectiveAt::OrSymbol,
337
358
  metadata: T.nilable(T::Hash[Symbol, String]),
@@ -357,11 +378,14 @@ module Dodopayments
357
378
  # Addons for the new plan. Note : Leaving this empty would remove any existing
358
379
  # addons
359
380
  addons: nil,
360
- # Optional discount code to apply to the new plan. If provided, validates and
361
- # applies the discount to the plan change. If not provided and the subscription
362
- # has an existing discount with `preserve_on_plan_change=true`, the existing
363
- # discount will be preserved (if applicable to the new product).
381
+ # DEPRECATED: Use discount_codes instead. Cannot be used together with
382
+ # discount_codes.
364
383
  discount_code: nil,
384
+ # Stacked discount codes to apply to the new plan. Max 20. Cannot be used together
385
+ # with discount_code. If provided, replaces any existing discount codes. Empty
386
+ # array removes all discounts. If not provided (None), existing discounts with
387
+ # preserve_on_plan_change=true are preserved.
388
+ discount_codes: nil,
365
389
  # When to apply the plan change.
366
390
  #
367
391
  # - `immediately` (default): Apply the plan change right away
@@ -472,10 +496,10 @@ module Dodopayments
472
496
  sig do
473
497
  params(
474
498
  subscription_id: String,
475
- body:
499
+ payment_method:
476
500
  T.any(
477
- Dodopayments::SubscriptionUpdatePaymentMethodParams::Body::New::OrHash,
478
- Dodopayments::SubscriptionUpdatePaymentMethodParams::Body::Existing::OrHash
501
+ Dodopayments::SubscriptionUpdatePaymentMethodParams::PaymentMethod::New::OrHash,
502
+ Dodopayments::SubscriptionUpdatePaymentMethodParams::PaymentMethod::Existing::OrHash
479
503
  ),
480
504
  request_options: Dodopayments::RequestOptions::OrHash
481
505
  ).returns(Dodopayments::Models::SubscriptionUpdatePaymentMethodResponse)
@@ -483,7 +507,7 @@ module Dodopayments
483
507
  def update_payment_method(
484
508
  # Subscription Id
485
509
  subscription_id,
486
- body:,
510
+ payment_method:,
487
511
  request_options: {}
488
512
  )
489
513
  end
@@ -63,6 +63,8 @@ module Dodopayments
63
63
 
64
64
  attr_reader entitlements: Dodopayments::Resources::Entitlements
65
65
 
66
+ attr_reader product_collections: Dodopayments::Resources::ProductCollections
67
+
66
68
  private def auth_headers: -> ::Hash[String, String]
67
69
 
68
70
  def initialize: (
@@ -5,7 +5,7 @@ module Dodopayments
5
5
  business_id: String,
6
6
  data: Dodopayments::AbandonedCheckoutDetectedWebhookEvent::Data,
7
7
  timestamp: Time,
8
- type: Dodopayments::Models::AbandonedCheckoutDetectedWebhookEvent::type_
8
+ type: :"abandoned_checkout.detected"
9
9
  }
10
10
 
11
11
  class AbandonedCheckoutDetectedWebhookEvent < Dodopayments::Internal::Type::BaseModel
@@ -15,20 +15,20 @@ module Dodopayments
15
15
 
16
16
  attr_accessor timestamp: Time
17
17
 
18
- attr_accessor type: Dodopayments::Models::AbandonedCheckoutDetectedWebhookEvent::type_
18
+ attr_accessor type: :"abandoned_checkout.detected"
19
19
 
20
20
  def initialize: (
21
21
  business_id: String,
22
22
  data: Dodopayments::AbandonedCheckoutDetectedWebhookEvent::Data,
23
23
  timestamp: Time,
24
- type: Dodopayments::Models::AbandonedCheckoutDetectedWebhookEvent::type_
24
+ ?type: :"abandoned_checkout.detected"
25
25
  ) -> void
26
26
 
27
27
  def to_hash: -> {
28
28
  business_id: String,
29
29
  data: Dodopayments::AbandonedCheckoutDetectedWebhookEvent::Data,
30
30
  timestamp: Time,
31
- type: Dodopayments::Models::AbandonedCheckoutDetectedWebhookEvent::type_
31
+ type: :"abandoned_checkout.detected"
32
32
  }
33
33
 
34
34
  type data =
@@ -98,16 +98,6 @@ module Dodopayments
98
98
  def self?.values: -> ::Array[Dodopayments::Models::AbandonedCheckoutDetectedWebhookEvent::Data::status]
99
99
  end
100
100
  end
101
-
102
- type type_ = :"abandoned_checkout.detected"
103
-
104
- module Type
105
- extend Dodopayments::Internal::Type::Enum
106
-
107
- ABANDONED_CHECKOUT_DETECTED: :"abandoned_checkout.detected"
108
-
109
- def self?.values: -> ::Array[Dodopayments::Models::AbandonedCheckoutDetectedWebhookEvent::type_]
110
- end
111
101
  end
112
102
  end
113
103
  end