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
@@ -9,7 +9,9 @@ module Dodopayments
9
9
  addons: ::Array[Dodopayments::AttachAddon]?,
10
10
  allowed_payment_method_types: ::Array[Dodopayments::Models::payment_method_types]?,
11
11
  billing_currency: Dodopayments::Models::currency?,
12
+ customer_business_name: String?,
12
13
  discount_code: String?,
14
+ discount_codes: ::Array[String]?,
13
15
  :force_3ds => bool?,
14
16
  mandate_min_amount_inr_paise: Integer?,
15
17
  metadata: ::Hash[Symbol, String],
@@ -45,8 +47,12 @@ module Dodopayments
45
47
 
46
48
  attr_accessor billing_currency: Dodopayments::Models::currency?
47
49
 
50
+ attr_accessor customer_business_name: String?
51
+
48
52
  attr_accessor discount_code: String?
49
53
 
54
+ attr_accessor discount_codes: ::Array[String]?
55
+
50
56
  attr_accessor force_3ds: bool?
51
57
 
52
58
  attr_accessor mandate_min_amount_inr_paise: Integer?
@@ -91,7 +97,9 @@ module Dodopayments
91
97
  ?addons: ::Array[Dodopayments::AttachAddon]?,
92
98
  ?allowed_payment_method_types: ::Array[Dodopayments::Models::payment_method_types]?,
93
99
  ?billing_currency: Dodopayments::Models::currency?,
100
+ ?customer_business_name: String?,
94
101
  ?discount_code: String?,
102
+ ?discount_codes: ::Array[String]?,
95
103
  ?force_3ds: bool?,
96
104
  ?mandate_min_amount_inr_paise: Integer?,
97
105
  ?metadata: ::Hash[Symbol, String],
@@ -117,7 +125,9 @@ module Dodopayments
117
125
  addons: ::Array[Dodopayments::AttachAddon]?,
118
126
  allowed_payment_method_types: ::Array[Dodopayments::Models::payment_method_types]?,
119
127
  billing_currency: Dodopayments::Models::currency?,
128
+ customer_business_name: String?,
120
129
  discount_code: String?,
130
+ discount_codes: ::Array[String]?,
121
131
  :force_3ds => bool?,
122
132
  mandate_min_amount_inr_paise: Integer?,
123
133
  metadata: ::Hash[Symbol, String],
@@ -10,6 +10,7 @@ module Dodopayments
10
10
  subscription_id: String,
11
11
  client_secret: String?,
12
12
  discount_id: String?,
13
+ discount_ids: ::Array[String]?,
13
14
  expires_on: Time?,
14
15
  one_time_product_cart: ::Array[Dodopayments::Models::SubscriptionCreateResponse::OneTimeProductCart]?,
15
16
  payment_link: String?
@@ -32,6 +33,8 @@ module Dodopayments
32
33
 
33
34
  attr_accessor discount_id: String?
34
35
 
36
+ attr_accessor discount_ids: ::Array[String]?
37
+
35
38
  attr_accessor expires_on: Time?
36
39
 
37
40
  attr_accessor one_time_product_cart: ::Array[Dodopayments::Models::SubscriptionCreateResponse::OneTimeProductCart]?
@@ -47,6 +50,7 @@ module Dodopayments
47
50
  subscription_id: String,
48
51
  ?client_secret: String?,
49
52
  ?discount_id: String?,
53
+ ?discount_ids: ::Array[String]?,
50
54
  ?expires_on: Time?,
51
55
  ?one_time_product_cart: ::Array[Dodopayments::Models::SubscriptionCreateResponse::OneTimeProductCart]?,
52
56
  ?payment_link: String?
@@ -61,6 +65,7 @@ module Dodopayments
61
65
  subscription_id: String,
62
66
  client_secret: String?,
63
67
  discount_id: String?,
68
+ discount_ids: ::Array[String]?,
64
69
  expires_on: Time?,
65
70
  one_time_product_cart: ::Array[Dodopayments::Models::SubscriptionCreateResponse::OneTimeProductCart]?,
66
71
  payment_link: String?
@@ -5,7 +5,7 @@ module Dodopayments
5
5
  business_id: String,
6
6
  data: Dodopayments::Subscription,
7
7
  timestamp: Time,
8
- type: Dodopayments::Models::SubscriptionExpiredWebhookEvent::type_
8
+ type: :"subscription.expired"
9
9
  }
10
10
 
11
11
  class SubscriptionExpiredWebhookEvent < 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::SubscriptionExpiredWebhookEvent::type_
18
+ attr_accessor type: :"subscription.expired"
19
19
 
20
20
  def initialize: (
21
21
  business_id: String,
22
22
  data: Dodopayments::Subscription,
23
23
  timestamp: Time,
24
- type: Dodopayments::Models::SubscriptionExpiredWebhookEvent::type_
24
+ ?type: :"subscription.expired"
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::SubscriptionExpiredWebhookEvent::type_
31
+ type: :"subscription.expired"
32
32
  }
33
-
34
- type type_ = :"subscription.expired"
35
-
36
- module Type
37
- extend Dodopayments::Internal::Type::Enum
38
-
39
- SUBSCRIPTION_EXPIRED: :"subscription.expired"
40
-
41
- def self?.values: -> ::Array[Dodopayments::Models::SubscriptionExpiredWebhookEvent::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::SubscriptionFailedWebhookEvent::type_
8
+ type: :"subscription.failed"
9
9
  }
10
10
 
11
11
  class SubscriptionFailedWebhookEvent < 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::SubscriptionFailedWebhookEvent::type_
18
+ attr_accessor type: :"subscription.failed"
19
19
 
20
20
  def initialize: (
21
21
  business_id: String,
22
22
  data: Dodopayments::Subscription,
23
23
  timestamp: Time,
24
- type: Dodopayments::Models::SubscriptionFailedWebhookEvent::type_
24
+ ?type: :"subscription.failed"
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::SubscriptionFailedWebhookEvent::type_
31
+ type: :"subscription.failed"
32
32
  }
33
-
34
- type type_ = :"subscription.failed"
35
-
36
- module Type
37
- extend Dodopayments::Internal::Type::Enum
38
-
39
- SUBSCRIPTION_FAILED: :"subscription.failed"
40
-
41
- def self?.values: -> ::Array[Dodopayments::Models::SubscriptionFailedWebhookEvent::type_]
42
- end
43
33
  end
44
34
  end
45
35
  end
@@ -7,6 +7,7 @@ module Dodopayments
7
7
  created_at: Time,
8
8
  currency: Dodopayments::Models::currency,
9
9
  customer: Dodopayments::CustomerLimitedDetails,
10
+ discounts: ::Array[Dodopayments::Models::SubscriptionListResponse::Discount],
10
11
  metadata: ::Hash[Symbol, String],
11
12
  next_billing_date: Time,
12
13
  on_demand: bool,
@@ -23,6 +24,7 @@ module Dodopayments
23
24
  tax_inclusive: bool,
24
25
  trial_period_days: Integer,
25
26
  cancelled_at: Time?,
27
+ customer_business_name: String?,
26
28
  discount_cycles_remaining: Integer?,
27
29
  discount_id: String?,
28
30
  payment_method_id: String?,
@@ -42,6 +44,8 @@ module Dodopayments
42
44
 
43
45
  attr_accessor customer: Dodopayments::CustomerLimitedDetails
44
46
 
47
+ attr_accessor discounts: ::Array[Dodopayments::Models::SubscriptionListResponse::Discount]
48
+
45
49
  attr_accessor metadata: ::Hash[Symbol, String]
46
50
 
47
51
  attr_accessor next_billing_date: Time
@@ -74,6 +78,8 @@ module Dodopayments
74
78
 
75
79
  attr_accessor cancelled_at: Time?
76
80
 
81
+ attr_accessor customer_business_name: String?
82
+
77
83
  attr_accessor discount_cycles_remaining: Integer?
78
84
 
79
85
  attr_accessor discount_id: String?
@@ -92,6 +98,7 @@ module Dodopayments
92
98
  created_at: Time,
93
99
  currency: Dodopayments::Models::currency,
94
100
  customer: Dodopayments::CustomerLimitedDetails,
101
+ discounts: ::Array[Dodopayments::Models::SubscriptionListResponse::Discount],
95
102
  metadata: ::Hash[Symbol, String],
96
103
  next_billing_date: Time,
97
104
  on_demand: bool,
@@ -108,6 +115,7 @@ module Dodopayments
108
115
  tax_inclusive: bool,
109
116
  trial_period_days: Integer,
110
117
  ?cancelled_at: Time?,
118
+ ?customer_business_name: String?,
111
119
  ?discount_cycles_remaining: Integer?,
112
120
  ?discount_id: String?,
113
121
  ?payment_method_id: String?,
@@ -122,6 +130,7 @@ module Dodopayments
122
130
  created_at: Time,
123
131
  currency: Dodopayments::Models::currency,
124
132
  customer: Dodopayments::CustomerLimitedDetails,
133
+ discounts: ::Array[Dodopayments::Models::SubscriptionListResponse::Discount],
125
134
  metadata: ::Hash[Symbol, String],
126
135
  next_billing_date: Time,
127
136
  on_demand: bool,
@@ -138,6 +147,7 @@ module Dodopayments
138
147
  tax_inclusive: bool,
139
148
  trial_period_days: Integer,
140
149
  cancelled_at: Time?,
150
+ customer_business_name: String?,
141
151
  discount_cycles_remaining: Integer?,
142
152
  discount_id: String?,
143
153
  payment_method_id: String?,
@@ -145,6 +155,25 @@ module Dodopayments
145
155
  scheduled_change: Dodopayments::ScheduledPlanChange?,
146
156
  tax_id: String?
147
157
  }
158
+
159
+ type discount =
160
+ { discount_id: String, discount_cycles_remaining: Integer? }
161
+
162
+ class Discount < Dodopayments::Internal::Type::BaseModel
163
+ attr_accessor discount_id: String
164
+
165
+ attr_accessor discount_cycles_remaining: Integer?
166
+
167
+ def initialize: (
168
+ discount_id: String,
169
+ ?discount_cycles_remaining: Integer?
170
+ ) -> void
171
+
172
+ def to_hash: -> {
173
+ discount_id: String,
174
+ discount_cycles_remaining: Integer?
175
+ }
176
+ end
148
177
  end
149
178
  end
150
179
  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::SubscriptionOnHoldWebhookEvent::type_
8
+ type: :"subscription.on_hold"
9
9
  }
10
10
 
11
11
  class SubscriptionOnHoldWebhookEvent < 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::SubscriptionOnHoldWebhookEvent::type_
18
+ attr_accessor type: :"subscription.on_hold"
19
19
 
20
20
  def initialize: (
21
21
  business_id: String,
22
22
  data: Dodopayments::Subscription,
23
23
  timestamp: Time,
24
- type: Dodopayments::Models::SubscriptionOnHoldWebhookEvent::type_
24
+ ?type: :"subscription.on_hold"
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::SubscriptionOnHoldWebhookEvent::type_
31
+ type: :"subscription.on_hold"
32
32
  }
33
-
34
- type type_ = :"subscription.on_hold"
35
-
36
- module Type
37
- extend Dodopayments::Internal::Type::Enum
38
-
39
- SUBSCRIPTION_ON_HOLD: :"subscription.on_hold"
40
-
41
- def self?.values: -> ::Array[Dodopayments::Models::SubscriptionOnHoldWebhookEvent::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::SubscriptionPlanChangedWebhookEvent::type_
8
+ type: :"subscription.plan_changed"
9
9
  }
10
10
 
11
11
  class SubscriptionPlanChangedWebhookEvent < 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::SubscriptionPlanChangedWebhookEvent::type_
18
+ attr_accessor type: :"subscription.plan_changed"
19
19
 
20
20
  def initialize: (
21
21
  business_id: String,
22
22
  data: Dodopayments::Subscription,
23
23
  timestamp: Time,
24
- type: Dodopayments::Models::SubscriptionPlanChangedWebhookEvent::type_
24
+ ?type: :"subscription.plan_changed"
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::SubscriptionPlanChangedWebhookEvent::type_
31
+ type: :"subscription.plan_changed"
32
32
  }
33
-
34
- type type_ = :"subscription.plan_changed"
35
-
36
- module Type
37
- extend Dodopayments::Internal::Type::Enum
38
-
39
- SUBSCRIPTION_PLAN_CHANGED: :"subscription.plan_changed"
40
-
41
- def self?.values: -> ::Array[Dodopayments::Models::SubscriptionPlanChangedWebhookEvent::type_]
42
- end
43
33
  end
44
34
  end
45
35
  end
@@ -63,7 +63,7 @@ module Dodopayments
63
63
  proration_factor: Float,
64
64
  quantity: Integer,
65
65
  tax_inclusive: bool,
66
- type: Dodopayments::Models::SubscriptionPreviewChangePlanResponse::ImmediateCharge::LineItem::Subscription::type_,
66
+ type: :subscription,
67
67
  unit_price: Integer,
68
68
  description: String?,
69
69
  name: String?,
@@ -84,7 +84,7 @@ module Dodopayments
84
84
 
85
85
  attr_accessor tax_inclusive: bool
86
86
 
87
- attr_accessor type: Dodopayments::Models::SubscriptionPreviewChangePlanResponse::ImmediateCharge::LineItem::Subscription::type_
87
+ attr_accessor type: :subscription
88
88
 
89
89
  attr_accessor unit_price: Integer
90
90
 
@@ -103,12 +103,12 @@ module Dodopayments
103
103
  proration_factor: Float,
104
104
  quantity: Integer,
105
105
  tax_inclusive: bool,
106
- type: Dodopayments::Models::SubscriptionPreviewChangePlanResponse::ImmediateCharge::LineItem::Subscription::type_,
107
106
  unit_price: Integer,
108
107
  ?description: String?,
109
108
  ?name: String?,
110
109
  ?tax: Integer?,
111
- ?tax_rate: Float?
110
+ ?tax_rate: Float?,
111
+ ?type: :subscription
112
112
  ) -> void
113
113
 
114
114
  def to_hash: -> {
@@ -118,23 +118,13 @@ module Dodopayments
118
118
  proration_factor: Float,
119
119
  quantity: Integer,
120
120
  tax_inclusive: bool,
121
- type: Dodopayments::Models::SubscriptionPreviewChangePlanResponse::ImmediateCharge::LineItem::Subscription::type_,
121
+ type: :subscription,
122
122
  unit_price: Integer,
123
123
  description: String?,
124
124
  name: String?,
125
125
  tax: Integer?,
126
126
  tax_rate: Float?
127
127
  }
128
-
129
- type type_ = :subscription
130
-
131
- module Type
132
- extend Dodopayments::Internal::Type::Enum
133
-
134
- SUBSCRIPTION: :subscription
135
-
136
- def self?.values: -> ::Array[Dodopayments::Models::SubscriptionPreviewChangePlanResponse::ImmediateCharge::LineItem::Subscription::type_]
137
- end
138
128
  end
139
129
 
140
130
  type addon =
@@ -147,7 +137,7 @@ module Dodopayments
147
137
  tax_category: Dodopayments::Models::tax_category,
148
138
  tax_inclusive: bool,
149
139
  tax_rate: Float,
150
- type: Dodopayments::Models::SubscriptionPreviewChangePlanResponse::ImmediateCharge::LineItem::Addon::type_,
140
+ type: :addon,
151
141
  unit_price: Integer,
152
142
  description: String?,
153
143
  tax: Integer?
@@ -170,7 +160,7 @@ module Dodopayments
170
160
 
171
161
  attr_accessor tax_rate: Float
172
162
 
173
- attr_accessor type: Dodopayments::Models::SubscriptionPreviewChangePlanResponse::ImmediateCharge::LineItem::Addon::type_
163
+ attr_accessor type: :addon
174
164
 
175
165
  attr_accessor unit_price: Integer
176
166
 
@@ -187,10 +177,10 @@ module Dodopayments
187
177
  tax_category: Dodopayments::Models::tax_category,
188
178
  tax_inclusive: bool,
189
179
  tax_rate: Float,
190
- type: Dodopayments::Models::SubscriptionPreviewChangePlanResponse::ImmediateCharge::LineItem::Addon::type_,
191
180
  unit_price: Integer,
192
181
  ?description: String?,
193
- ?tax: Integer?
182
+ ?tax: Integer?,
183
+ ?type: :addon
194
184
  ) -> void
195
185
 
196
186
  def to_hash: -> {
@@ -202,21 +192,11 @@ module Dodopayments
202
192
  tax_category: Dodopayments::Models::tax_category,
203
193
  tax_inclusive: bool,
204
194
  tax_rate: Float,
205
- type: Dodopayments::Models::SubscriptionPreviewChangePlanResponse::ImmediateCharge::LineItem::Addon::type_,
195
+ type: :addon,
206
196
  unit_price: Integer,
207
197
  description: String?,
208
198
  tax: Integer?
209
199
  }
210
-
211
- type type_ = :addon
212
-
213
- module Type
214
- extend Dodopayments::Internal::Type::Enum
215
-
216
- ADDON: :addon
217
-
218
- def self?.values: -> ::Array[Dodopayments::Models::SubscriptionPreviewChangePlanResponse::ImmediateCharge::LineItem::Addon::type_]
219
- end
220
200
  end
221
201
 
222
202
  type meter =
@@ -230,7 +210,7 @@ module Dodopayments
230
210
  subtotal: Integer,
231
211
  tax_inclusive: bool,
232
212
  tax_rate: Float,
233
- type: Dodopayments::Models::SubscriptionPreviewChangePlanResponse::ImmediateCharge::LineItem::Meter::type_,
213
+ type: :meter,
234
214
  units_consumed: String,
235
215
  description: String?,
236
216
  tax: Integer?
@@ -255,7 +235,7 @@ module Dodopayments
255
235
 
256
236
  attr_accessor tax_rate: Float
257
237
 
258
- attr_accessor type: Dodopayments::Models::SubscriptionPreviewChangePlanResponse::ImmediateCharge::LineItem::Meter::type_
238
+ attr_accessor type: :meter
259
239
 
260
240
  attr_accessor units_consumed: String
261
241
 
@@ -273,10 +253,10 @@ module Dodopayments
273
253
  subtotal: Integer,
274
254
  tax_inclusive: bool,
275
255
  tax_rate: Float,
276
- type: Dodopayments::Models::SubscriptionPreviewChangePlanResponse::ImmediateCharge::LineItem::Meter::type_,
277
256
  units_consumed: String,
278
257
  ?description: String?,
279
- ?tax: Integer?
258
+ ?tax: Integer?,
259
+ ?type: :meter
280
260
  ) -> void
281
261
 
282
262
  def to_hash: -> {
@@ -289,21 +269,11 @@ module Dodopayments
289
269
  subtotal: Integer,
290
270
  tax_inclusive: bool,
291
271
  tax_rate: Float,
292
- type: Dodopayments::Models::SubscriptionPreviewChangePlanResponse::ImmediateCharge::LineItem::Meter::type_,
272
+ type: :meter,
293
273
  units_consumed: String,
294
274
  description: String?,
295
275
  tax: Integer?
296
276
  }
297
-
298
- type type_ = :meter
299
-
300
- module Type
301
- extend Dodopayments::Internal::Type::Enum
302
-
303
- METER: :meter
304
-
305
- def self?.values: -> ::Array[Dodopayments::Models::SubscriptionPreviewChangePlanResponse::ImmediateCharge::LineItem::Meter::type_]
306
- end
307
277
  end
308
278
 
309
279
  def self?.variants: -> ::Array[Dodopayments::Models::SubscriptionPreviewChangePlanResponse::ImmediateCharge::line_item]
@@ -5,7 +5,7 @@ module Dodopayments
5
5
  business_id: String,
6
6
  data: Dodopayments::Subscription,
7
7
  timestamp: Time,
8
- type: Dodopayments::Models::SubscriptionRenewedWebhookEvent::type_
8
+ type: :"subscription.renewed"
9
9
  }
10
10
 
11
11
  class SubscriptionRenewedWebhookEvent < 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::SubscriptionRenewedWebhookEvent::type_
18
+ attr_accessor type: :"subscription.renewed"
19
19
 
20
20
  def initialize: (
21
21
  business_id: String,
22
22
  data: Dodopayments::Subscription,
23
23
  timestamp: Time,
24
- type: Dodopayments::Models::SubscriptionRenewedWebhookEvent::type_
24
+ ?type: :"subscription.renewed"
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::SubscriptionRenewedWebhookEvent::type_
31
+ type: :"subscription.renewed"
32
32
  }
33
-
34
- type type_ = :"subscription.renewed"
35
-
36
- module Type
37
- extend Dodopayments::Internal::Type::Enum
38
-
39
- SUBSCRIPTION_RENEWED: :"subscription.renewed"
40
-
41
- def self?.values: -> ::Array[Dodopayments::Models::SubscriptionRenewedWebhookEvent::type_]
42
- end
43
33
  end
44
34
  end
45
35
  end
@@ -9,6 +9,7 @@ module Dodopayments
9
9
  cancellation_comment: String?,
10
10
  cancellation_feedback: Dodopayments::Models::cancellation_feedback?,
11
11
  credit_entitlement_cart: ::Array[Dodopayments::SubscriptionUpdateParams::CreditEntitlementCart]?,
12
+ customer_business_name: String?,
12
13
  customer_name: String?,
13
14
  disable_on_demand: Dodopayments::SubscriptionUpdateParams::DisableOnDemand?,
14
15
  metadata: ::Hash[Symbol, String]?,
@@ -36,6 +37,8 @@ module Dodopayments
36
37
 
37
38
  attr_accessor credit_entitlement_cart: ::Array[Dodopayments::SubscriptionUpdateParams::CreditEntitlementCart]?
38
39
 
40
+ attr_accessor customer_business_name: String?
41
+
39
42
  attr_accessor customer_name: String?
40
43
 
41
44
  attr_accessor disable_on_demand: Dodopayments::SubscriptionUpdateParams::DisableOnDemand?
@@ -56,6 +59,7 @@ module Dodopayments
56
59
  ?cancellation_comment: String?,
57
60
  ?cancellation_feedback: Dodopayments::Models::cancellation_feedback?,
58
61
  ?credit_entitlement_cart: ::Array[Dodopayments::SubscriptionUpdateParams::CreditEntitlementCart]?,
62
+ ?customer_business_name: String?,
59
63
  ?customer_name: String?,
60
64
  ?disable_on_demand: Dodopayments::SubscriptionUpdateParams::DisableOnDemand?,
61
65
  ?metadata: ::Hash[Symbol, String]?,
@@ -73,6 +77,7 @@ module Dodopayments
73
77
  cancellation_comment: String?,
74
78
  cancellation_feedback: Dodopayments::Models::cancellation_feedback?,
75
79
  credit_entitlement_cart: ::Array[Dodopayments::SubscriptionUpdateParams::CreditEntitlementCart]?,
80
+ customer_business_name: String?,
76
81
  customer_name: String?,
77
82
  disable_on_demand: Dodopayments::SubscriptionUpdateParams::DisableOnDemand?,
78
83
  metadata: ::Hash[Symbol, String]?,