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
@@ -0,0 +1,30 @@
1
+ module Dodopayments
2
+ module Models
3
+ module ProductCollections
4
+ type group_delete_params =
5
+ { id: String, group_id: String }
6
+ & Dodopayments::Internal::Type::request_parameters
7
+
8
+ class GroupDeleteParams < Dodopayments::Internal::Type::BaseModel
9
+ extend Dodopayments::Internal::Type::RequestParameters::Converter
10
+ include Dodopayments::Internal::Type::RequestParameters
11
+
12
+ attr_accessor id: String
13
+
14
+ attr_accessor group_id: String
15
+
16
+ def initialize: (
17
+ id: String,
18
+ group_id: String,
19
+ ?request_options: Dodopayments::request_opts
20
+ ) -> void
21
+
22
+ def to_hash: -> {
23
+ id: String,
24
+ group_id: String,
25
+ request_options: Dodopayments::RequestOptions
26
+ }
27
+ end
28
+ end
29
+ end
30
+ end
@@ -0,0 +1,17 @@
1
+ module Dodopayments
2
+ module Models
3
+ module ProductCollections
4
+ type group_product = { product_id: String, status: bool? }
5
+
6
+ class GroupProduct < Dodopayments::Internal::Type::BaseModel
7
+ attr_accessor product_id: String
8
+
9
+ attr_accessor status: bool?
10
+
11
+ def initialize: (product_id: String, ?status: bool?) -> void
12
+
13
+ def to_hash: -> { product_id: String, status: bool? }
14
+ end
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,48 @@
1
+ module Dodopayments
2
+ module Models
3
+ module ProductCollections
4
+ type group_update_params =
5
+ {
6
+ id: String,
7
+ group_id: String,
8
+ group_name: String?,
9
+ product_order: ::Array[String]?,
10
+ status: bool?
11
+ }
12
+ & Dodopayments::Internal::Type::request_parameters
13
+
14
+ class GroupUpdateParams < Dodopayments::Internal::Type::BaseModel
15
+ extend Dodopayments::Internal::Type::RequestParameters::Converter
16
+ include Dodopayments::Internal::Type::RequestParameters
17
+
18
+ attr_accessor id: String
19
+
20
+ attr_accessor group_id: String
21
+
22
+ attr_accessor group_name: String?
23
+
24
+ attr_accessor product_order: ::Array[String]?
25
+
26
+ attr_accessor status: bool?
27
+
28
+ def initialize: (
29
+ id: String,
30
+ group_id: String,
31
+ ?group_name: String?,
32
+ ?product_order: ::Array[String]?,
33
+ ?status: bool?,
34
+ ?request_options: Dodopayments::request_opts
35
+ ) -> void
36
+
37
+ def to_hash: -> {
38
+ id: String,
39
+ group_id: String,
40
+ group_name: String?,
41
+ product_order: ::Array[String]?,
42
+ status: bool?,
43
+ request_options: Dodopayments::RequestOptions
44
+ }
45
+ end
46
+ end
47
+ end
48
+ end
@@ -0,0 +1,40 @@
1
+ module Dodopayments
2
+ module Models
3
+ module ProductCollections
4
+ module Groups
5
+ type item_create_params =
6
+ {
7
+ id: String,
8
+ group_id: String,
9
+ products: ::Array[Dodopayments::ProductCollections::GroupProduct]
10
+ }
11
+ & Dodopayments::Internal::Type::request_parameters
12
+
13
+ class ItemCreateParams < Dodopayments::Internal::Type::BaseModel
14
+ extend Dodopayments::Internal::Type::RequestParameters::Converter
15
+ include Dodopayments::Internal::Type::RequestParameters
16
+
17
+ attr_accessor id: String
18
+
19
+ attr_accessor group_id: String
20
+
21
+ attr_accessor products: ::Array[Dodopayments::ProductCollections::GroupProduct]
22
+
23
+ def initialize: (
24
+ id: String,
25
+ group_id: String,
26
+ products: ::Array[Dodopayments::ProductCollections::GroupProduct],
27
+ ?request_options: Dodopayments::request_opts
28
+ ) -> void
29
+
30
+ def to_hash: -> {
31
+ id: String,
32
+ group_id: String,
33
+ products: ::Array[Dodopayments::ProductCollections::GroupProduct],
34
+ request_options: Dodopayments::RequestOptions
35
+ }
36
+ end
37
+ end
38
+ end
39
+ end
40
+ end
@@ -0,0 +1,12 @@
1
+ module Dodopayments
2
+ module Models
3
+ module ProductCollections
4
+ module Groups
5
+ type item_create_response =
6
+ ::Array[Dodopayments::ProductCollections::Groups::ProductCollectionProduct]
7
+
8
+ ItemCreateResponse: Dodopayments::Internal::Type::Converter
9
+ end
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,36 @@
1
+ module Dodopayments
2
+ module Models
3
+ module ProductCollections
4
+ module Groups
5
+ type item_delete_params =
6
+ { id: String, group_id: String, item_id: String }
7
+ & Dodopayments::Internal::Type::request_parameters
8
+
9
+ class ItemDeleteParams < Dodopayments::Internal::Type::BaseModel
10
+ extend Dodopayments::Internal::Type::RequestParameters::Converter
11
+ include Dodopayments::Internal::Type::RequestParameters
12
+
13
+ attr_accessor id: String
14
+
15
+ attr_accessor group_id: String
16
+
17
+ attr_accessor item_id: String
18
+
19
+ def initialize: (
20
+ id: String,
21
+ group_id: String,
22
+ item_id: String,
23
+ ?request_options: Dodopayments::request_opts
24
+ ) -> void
25
+
26
+ def to_hash: -> {
27
+ id: String,
28
+ group_id: String,
29
+ item_id: String,
30
+ request_options: Dodopayments::RequestOptions
31
+ }
32
+ end
33
+ end
34
+ end
35
+ end
36
+ end
@@ -0,0 +1,40 @@
1
+ module Dodopayments
2
+ module Models
3
+ module ProductCollections
4
+ module Groups
5
+ type item_update_params =
6
+ { id: String, group_id: String, item_id: String, status: bool }
7
+ & Dodopayments::Internal::Type::request_parameters
8
+
9
+ class ItemUpdateParams < Dodopayments::Internal::Type::BaseModel
10
+ extend Dodopayments::Internal::Type::RequestParameters::Converter
11
+ include Dodopayments::Internal::Type::RequestParameters
12
+
13
+ attr_accessor id: String
14
+
15
+ attr_accessor group_id: String
16
+
17
+ attr_accessor item_id: String
18
+
19
+ attr_accessor status: bool
20
+
21
+ def initialize: (
22
+ id: String,
23
+ group_id: String,
24
+ item_id: String,
25
+ status: bool,
26
+ ?request_options: Dodopayments::request_opts
27
+ ) -> void
28
+
29
+ def to_hash: -> {
30
+ id: String,
31
+ group_id: String,
32
+ item_id: String,
33
+ status: bool,
34
+ request_options: Dodopayments::RequestOptions
35
+ }
36
+ end
37
+ end
38
+ end
39
+ end
40
+ end
@@ -0,0 +1,99 @@
1
+ module Dodopayments
2
+ module Models
3
+ module ProductCollections
4
+ module Groups
5
+ type product_collection_product =
6
+ {
7
+ id: String,
8
+ addons_count: Integer,
9
+ files_count: Integer,
10
+ has_credit_entitlements: bool,
11
+ is_recurring: bool,
12
+ license_key_enabled: bool,
13
+ meters_count: Integer,
14
+ product_id: String,
15
+ status: bool,
16
+ currency: Dodopayments::Models::currency?,
17
+ description: String?,
18
+ name: String?,
19
+ price: Integer?,
20
+ price_detail: Dodopayments::Models::price?,
21
+ tax_category: Dodopayments::Models::tax_category?,
22
+ tax_inclusive: bool?
23
+ }
24
+
25
+ class ProductCollectionProduct < Dodopayments::Internal::Type::BaseModel
26
+ attr_accessor id: String
27
+
28
+ attr_accessor addons_count: Integer
29
+
30
+ attr_accessor files_count: Integer
31
+
32
+ attr_accessor has_credit_entitlements: bool
33
+
34
+ attr_accessor is_recurring: bool
35
+
36
+ attr_accessor license_key_enabled: bool
37
+
38
+ attr_accessor meters_count: Integer
39
+
40
+ attr_accessor product_id: String
41
+
42
+ attr_accessor status: bool
43
+
44
+ attr_accessor currency: Dodopayments::Models::currency?
45
+
46
+ attr_accessor description: String?
47
+
48
+ attr_accessor name: String?
49
+
50
+ attr_accessor price: Integer?
51
+
52
+ attr_accessor price_detail: Dodopayments::Models::price?
53
+
54
+ attr_accessor tax_category: Dodopayments::Models::tax_category?
55
+
56
+ attr_accessor tax_inclusive: bool?
57
+
58
+ def initialize: (
59
+ id: String,
60
+ addons_count: Integer,
61
+ files_count: Integer,
62
+ has_credit_entitlements: bool,
63
+ is_recurring: bool,
64
+ license_key_enabled: bool,
65
+ meters_count: Integer,
66
+ product_id: String,
67
+ status: bool,
68
+ ?currency: Dodopayments::Models::currency?,
69
+ ?description: String?,
70
+ ?name: String?,
71
+ ?price: Integer?,
72
+ ?price_detail: Dodopayments::Models::price?,
73
+ ?tax_category: Dodopayments::Models::tax_category?,
74
+ ?tax_inclusive: bool?
75
+ ) -> void
76
+
77
+ def to_hash: -> {
78
+ id: String,
79
+ addons_count: Integer,
80
+ files_count: Integer,
81
+ has_credit_entitlements: bool,
82
+ is_recurring: bool,
83
+ license_key_enabled: bool,
84
+ meters_count: Integer,
85
+ product_id: String,
86
+ status: bool,
87
+ currency: Dodopayments::Models::currency?,
88
+ description: String?,
89
+ name: String?,
90
+ price: Integer?,
91
+ price_detail: Dodopayments::Models::price?,
92
+ tax_category: Dodopayments::Models::tax_category?,
93
+ tax_inclusive: bool?
94
+ }
95
+ end
96
+ end
97
+ end
98
+ end
99
+ end
@@ -0,0 +1,34 @@
1
+ module Dodopayments
2
+ module Models
3
+ class ProductCollectionGroupDetails = ProductCollections::ProductCollectionGroupDetails
4
+
5
+ module ProductCollections
6
+ type product_collection_group_details =
7
+ {
8
+ products: ::Array[Dodopayments::ProductCollections::GroupProduct],
9
+ group_name: String?,
10
+ status: bool?
11
+ }
12
+
13
+ class ProductCollectionGroupDetails < Dodopayments::Internal::Type::BaseModel
14
+ attr_accessor products: ::Array[Dodopayments::ProductCollections::GroupProduct]
15
+
16
+ attr_accessor group_name: String?
17
+
18
+ attr_accessor status: bool?
19
+
20
+ def initialize: (
21
+ products: ::Array[Dodopayments::ProductCollections::GroupProduct],
22
+ ?group_name: String?,
23
+ ?status: bool?
24
+ ) -> void
25
+
26
+ def to_hash: -> {
27
+ products: ::Array[Dodopayments::ProductCollections::GroupProduct],
28
+ group_name: String?,
29
+ status: bool?
30
+ }
31
+ end
32
+ end
33
+ end
34
+ end
@@ -0,0 +1,39 @@
1
+ module Dodopayments
2
+ module Models
3
+ class ProductCollectionGroupResponse = ProductCollections::ProductCollectionGroupResponse
4
+
5
+ module ProductCollections
6
+ type product_collection_group_response =
7
+ {
8
+ group_id: String,
9
+ products: ::Array[Dodopayments::ProductCollections::Groups::ProductCollectionProduct],
10
+ status: bool,
11
+ group_name: String?
12
+ }
13
+
14
+ class ProductCollectionGroupResponse < Dodopayments::Internal::Type::BaseModel
15
+ attr_accessor group_id: String
16
+
17
+ attr_accessor products: ::Array[Dodopayments::ProductCollections::Groups::ProductCollectionProduct]
18
+
19
+ attr_accessor status: bool
20
+
21
+ attr_accessor group_name: String?
22
+
23
+ def initialize: (
24
+ group_id: String,
25
+ products: ::Array[Dodopayments::ProductCollections::Groups::ProductCollectionProduct],
26
+ status: bool,
27
+ ?group_name: String?
28
+ ) -> void
29
+
30
+ def to_hash: -> {
31
+ group_id: String,
32
+ products: ::Array[Dodopayments::ProductCollections::Groups::ProductCollectionProduct],
33
+ status: bool,
34
+ group_name: String?
35
+ }
36
+ end
37
+ end
38
+ end
39
+ end
@@ -5,7 +5,8 @@ module Dodopayments
5
5
  product_id: String,
6
6
  quantity: Integer,
7
7
  addons: ::Array[Dodopayments::AttachAddon]?,
8
- amount: Integer?
8
+ amount: Integer?,
9
+ credit_entitlements: ::Array[Dodopayments::ProductItemReq::CreditEntitlement]?
9
10
  }
10
11
 
11
12
  class ProductItemReq < Dodopayments::Internal::Type::BaseModel
@@ -17,19 +18,42 @@ module Dodopayments
17
18
 
18
19
  attr_accessor amount: Integer?
19
20
 
21
+ attr_accessor credit_entitlements: ::Array[Dodopayments::ProductItemReq::CreditEntitlement]?
22
+
20
23
  def initialize: (
21
24
  product_id: String,
22
25
  quantity: Integer,
23
26
  ?addons: ::Array[Dodopayments::AttachAddon]?,
24
- ?amount: Integer?
27
+ ?amount: Integer?,
28
+ ?credit_entitlements: ::Array[Dodopayments::ProductItemReq::CreditEntitlement]?
25
29
  ) -> void
26
30
 
27
31
  def to_hash: -> {
28
32
  product_id: String,
29
33
  quantity: Integer,
30
34
  addons: ::Array[Dodopayments::AttachAddon]?,
31
- amount: Integer?
35
+ amount: Integer?,
36
+ credit_entitlements: ::Array[Dodopayments::ProductItemReq::CreditEntitlement]?
32
37
  }
38
+
39
+ type credit_entitlement =
40
+ { credit_entitlement_id: String, credits_amount: String }
41
+
42
+ class CreditEntitlement < Dodopayments::Internal::Type::BaseModel
43
+ attr_accessor credit_entitlement_id: String
44
+
45
+ attr_accessor credits_amount: String
46
+
47
+ def initialize: (
48
+ credit_entitlement_id: String,
49
+ credits_amount: String
50
+ ) -> void
51
+
52
+ def to_hash: -> {
53
+ credit_entitlement_id: String,
54
+ credits_amount: String
55
+ }
56
+ end
33
57
  end
34
58
  end
35
59
  end
@@ -5,7 +5,7 @@ module Dodopayments
5
5
  business_id: String,
6
6
  data: Dodopayments::Refund,
7
7
  timestamp: Time,
8
- type: Dodopayments::Models::RefundFailedWebhookEvent::type_
8
+ type: :"refund.failed"
9
9
  }
10
10
 
11
11
  class RefundFailedWebhookEvent < Dodopayments::Internal::Type::BaseModel
@@ -15,31 +15,21 @@ module Dodopayments
15
15
 
16
16
  attr_accessor timestamp: Time
17
17
 
18
- attr_accessor type: Dodopayments::Models::RefundFailedWebhookEvent::type_
18
+ attr_accessor type: :"refund.failed"
19
19
 
20
20
  def initialize: (
21
21
  business_id: String,
22
22
  data: Dodopayments::Refund,
23
23
  timestamp: Time,
24
- type: Dodopayments::Models::RefundFailedWebhookEvent::type_
24
+ ?type: :"refund.failed"
25
25
  ) -> void
26
26
 
27
27
  def to_hash: -> {
28
28
  business_id: String,
29
29
  data: Dodopayments::Refund,
30
30
  timestamp: Time,
31
- type: Dodopayments::Models::RefundFailedWebhookEvent::type_
31
+ type: :"refund.failed"
32
32
  }
33
-
34
- type type_ = :"refund.failed"
35
-
36
- module Type
37
- extend Dodopayments::Internal::Type::Enum
38
-
39
- REFUND_FAILED: :"refund.failed"
40
-
41
- def self?.values: -> ::Array[Dodopayments::Models::RefundFailedWebhookEvent::type_]
42
- end
43
33
  end
44
34
  end
45
35
  end
@@ -5,7 +5,7 @@ module Dodopayments
5
5
  business_id: String,
6
6
  data: Dodopayments::Refund,
7
7
  timestamp: Time,
8
- type: Dodopayments::Models::RefundSucceededWebhookEvent::type_
8
+ type: :"refund.succeeded"
9
9
  }
10
10
 
11
11
  class RefundSucceededWebhookEvent < Dodopayments::Internal::Type::BaseModel
@@ -15,31 +15,21 @@ module Dodopayments
15
15
 
16
16
  attr_accessor timestamp: Time
17
17
 
18
- attr_accessor type: Dodopayments::Models::RefundSucceededWebhookEvent::type_
18
+ attr_accessor type: :"refund.succeeded"
19
19
 
20
20
  def initialize: (
21
21
  business_id: String,
22
22
  data: Dodopayments::Refund,
23
23
  timestamp: Time,
24
- type: Dodopayments::Models::RefundSucceededWebhookEvent::type_
24
+ ?type: :"refund.succeeded"
25
25
  ) -> void
26
26
 
27
27
  def to_hash: -> {
28
28
  business_id: String,
29
29
  data: Dodopayments::Refund,
30
30
  timestamp: Time,
31
- type: Dodopayments::Models::RefundSucceededWebhookEvent::type_
31
+ type: :"refund.succeeded"
32
32
  }
33
-
34
- type type_ = :"refund.succeeded"
35
-
36
- module Type
37
- extend Dodopayments::Internal::Type::Enum
38
-
39
- REFUND_SUCCEEDED: :"refund.succeeded"
40
-
41
- def self?.values: -> ::Array[Dodopayments::Models::RefundSucceededWebhookEvent::type_]
42
- end
43
33
  end
44
34
  end
45
35
  end
@@ -30,8 +30,10 @@ module Dodopayments
30
30
  cancellation_feedback: Dodopayments::Models::cancellation_feedback?,
31
31
  cancelled_at: Time?,
32
32
  custom_field_responses: ::Array[Dodopayments::CustomFieldResponse]?,
33
+ customer_business_name: String?,
33
34
  discount_cycles_remaining: Integer?,
34
35
  discount_id: String?,
36
+ discounts: ::Array[Dodopayments::DiscountDetail]?,
35
37
  expires_at: Time?,
36
38
  payment_method_id: String?,
37
39
  scheduled_change: Dodopayments::ScheduledPlanChange?,
@@ -95,10 +97,14 @@ module Dodopayments
95
97
 
96
98
  attr_accessor custom_field_responses: ::Array[Dodopayments::CustomFieldResponse]?
97
99
 
100
+ attr_accessor customer_business_name: String?
101
+
98
102
  attr_accessor discount_cycles_remaining: Integer?
99
103
 
100
104
  attr_accessor discount_id: String?
101
105
 
106
+ attr_accessor discounts: ::Array[Dodopayments::DiscountDetail]?
107
+
102
108
  attr_accessor expires_at: Time?
103
109
 
104
110
  attr_accessor payment_method_id: String?
@@ -136,8 +142,10 @@ module Dodopayments
136
142
  ?cancellation_feedback: Dodopayments::Models::cancellation_feedback?,
137
143
  ?cancelled_at: Time?,
138
144
  ?custom_field_responses: ::Array[Dodopayments::CustomFieldResponse]?,
145
+ ?customer_business_name: String?,
139
146
  ?discount_cycles_remaining: Integer?,
140
147
  ?discount_id: String?,
148
+ ?discounts: ::Array[Dodopayments::DiscountDetail]?,
141
149
  ?expires_at: Time?,
142
150
  ?payment_method_id: String?,
143
151
  ?scheduled_change: Dodopayments::ScheduledPlanChange?,
@@ -173,8 +181,10 @@ module Dodopayments
173
181
  cancellation_feedback: Dodopayments::Models::cancellation_feedback?,
174
182
  cancelled_at: Time?,
175
183
  custom_field_responses: ::Array[Dodopayments::CustomFieldResponse]?,
184
+ customer_business_name: String?,
176
185
  discount_cycles_remaining: Integer?,
177
186
  discount_id: String?,
187
+ discounts: ::Array[Dodopayments::DiscountDetail]?,
178
188
  expires_at: Time?,
179
189
  payment_method_id: String?,
180
190
  scheduled_change: Dodopayments::ScheduledPlanChange?,
@@ -5,7 +5,7 @@ module Dodopayments
5
5
  business_id: String,
6
6
  data: Dodopayments::Subscription,
7
7
  timestamp: Time,
8
- type: Dodopayments::Models::SubscriptionActiveWebhookEvent::type_
8
+ type: :"subscription.active"
9
9
  }
10
10
 
11
11
  class SubscriptionActiveWebhookEvent < Dodopayments::Internal::Type::BaseModel
@@ -15,31 +15,21 @@ module Dodopayments
15
15
 
16
16
  attr_accessor timestamp: Time
17
17
 
18
- attr_accessor type: Dodopayments::Models::SubscriptionActiveWebhookEvent::type_
18
+ attr_accessor type: :"subscription.active"
19
19
 
20
20
  def initialize: (
21
21
  business_id: String,
22
22
  data: Dodopayments::Subscription,
23
23
  timestamp: Time,
24
- type: Dodopayments::Models::SubscriptionActiveWebhookEvent::type_
24
+ ?type: :"subscription.active"
25
25
  ) -> void
26
26
 
27
27
  def to_hash: -> {
28
28
  business_id: String,
29
29
  data: Dodopayments::Subscription,
30
30
  timestamp: Time,
31
- type: Dodopayments::Models::SubscriptionActiveWebhookEvent::type_
31
+ type: :"subscription.active"
32
32
  }
33
-
34
- type type_ = :"subscription.active"
35
-
36
- module Type
37
- extend Dodopayments::Internal::Type::Enum
38
-
39
- SUBSCRIPTION_ACTIVE: :"subscription.active"
40
-
41
- def self?.values: -> ::Array[Dodopayments::Models::SubscriptionActiveWebhookEvent::type_]
42
- end
43
33
  end
44
34
  end
45
35
  end
@@ -5,7 +5,7 @@ module Dodopayments
5
5
  business_id: String,
6
6
  data: Dodopayments::Subscription,
7
7
  timestamp: Time,
8
- type: Dodopayments::Models::SubscriptionCancelledWebhookEvent::type_
8
+ type: :"subscription.cancelled"
9
9
  }
10
10
 
11
11
  class SubscriptionCancelledWebhookEvent < Dodopayments::Internal::Type::BaseModel
@@ -15,31 +15,21 @@ module Dodopayments
15
15
 
16
16
  attr_accessor timestamp: Time
17
17
 
18
- attr_accessor type: Dodopayments::Models::SubscriptionCancelledWebhookEvent::type_
18
+ attr_accessor type: :"subscription.cancelled"
19
19
 
20
20
  def initialize: (
21
21
  business_id: String,
22
22
  data: Dodopayments::Subscription,
23
23
  timestamp: Time,
24
- type: Dodopayments::Models::SubscriptionCancelledWebhookEvent::type_
24
+ ?type: :"subscription.cancelled"
25
25
  ) -> void
26
26
 
27
27
  def to_hash: -> {
28
28
  business_id: String,
29
29
  data: Dodopayments::Subscription,
30
30
  timestamp: Time,
31
- type: Dodopayments::Models::SubscriptionCancelledWebhookEvent::type_
31
+ type: :"subscription.cancelled"
32
32
  }
33
-
34
- type type_ = :"subscription.cancelled"
35
-
36
- module Type
37
- extend Dodopayments::Internal::Type::Enum
38
-
39
- SUBSCRIPTION_CANCELLED: :"subscription.cancelled"
40
-
41
- def self?.values: -> ::Array[Dodopayments::Models::SubscriptionCancelledWebhookEvent::type_]
42
- end
43
33
  end
44
34
  end
45
35
  end