dodopayments 2.34.0 → 2.35.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 (250) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +8 -0
  3. data/README.md +1 -1
  4. data/lib/dodopayments/models/addon_delete_params.rb +20 -0
  5. data/lib/dodopayments/models/addon_list_params.rb +25 -1
  6. data/lib/dodopayments/models/addon_retrieve_params.rb +18 -1
  7. data/lib/dodopayments/models/addon_unarchive_params.rb +20 -0
  8. data/lib/dodopayments/models/addons/translation_delete_params.rb +36 -0
  9. data/lib/dodopayments/models/addons/translation_list_params.rb +35 -0
  10. data/lib/dodopayments/models/addons/translation_update_params.rb +52 -0
  11. data/lib/dodopayments/models/balance_ledger_entry.rb +1 -0
  12. data/lib/dodopayments/models/balance_retrieve_ledger_params.rb +1 -0
  13. data/lib/dodopayments/models/checkout_session_preview_params.rb +17 -1
  14. data/lib/dodopayments/models/create_new_customer.rb +12 -1
  15. data/lib/dodopayments/models/credit_entitlement_list_params.rb +17 -1
  16. data/lib/dodopayments/models/credit_entitlement_retrieve_params.rb +18 -1
  17. data/lib/dodopayments/models/credit_entitlements/credit_entitlement_translation.rb +47 -0
  18. data/lib/dodopayments/models/credit_entitlements/credit_entitlement_translations_list_response.rb +23 -0
  19. data/lib/dodopayments/models/credit_entitlements/translation_delete_params.rb +37 -0
  20. data/lib/dodopayments/models/credit_entitlements/translation_list_params.rb +36 -0
  21. data/lib/dodopayments/models/credit_entitlements/translation_update_params.rb +53 -0
  22. data/lib/dodopayments/models/customer.rb +9 -1
  23. data/lib/dodopayments/models/customer_create_params.rb +14 -1
  24. data/lib/dodopayments/models/customer_update_params.rb +14 -1
  25. data/lib/dodopayments/models/entitlement_list_params.rb +17 -1
  26. data/lib/dodopayments/models/entitlement_retrieve_params.rb +18 -1
  27. data/lib/dodopayments/models/entitlements/entitlement_translation.rb +67 -0
  28. data/lib/dodopayments/models/entitlements/entitlement_translations_list_response.rb +23 -0
  29. data/lib/dodopayments/models/entitlements/translation_delete_params.rb +36 -0
  30. data/lib/dodopayments/models/entitlements/translation_list_params.rb +35 -0
  31. data/lib/dodopayments/models/entitlements/translation_update_params.rb +69 -0
  32. data/lib/dodopayments/models/locale.rb +38 -0
  33. data/lib/dodopayments/models/locale_info.rb +34 -0
  34. data/lib/dodopayments/models/meter_list_params.rb +17 -1
  35. data/lib/dodopayments/models/meter_retrieve_params.rb +18 -1
  36. data/lib/dodopayments/models/meter_update_params.rb +49 -0
  37. data/lib/dodopayments/models/meters/translation_delete_params.rb +36 -0
  38. data/lib/dodopayments/models/meters/translation_list_params.rb +35 -0
  39. data/lib/dodopayments/models/meters/translation_update_params.rb +52 -0
  40. data/lib/dodopayments/models/misc_list_locales_params.rb +14 -0
  41. data/lib/dodopayments/models/misc_list_locales_response.rb +8 -0
  42. data/lib/dodopayments/models/payment.rb +29 -1
  43. data/lib/dodopayments/models/payment_list_response.rb +29 -1
  44. data/lib/dodopayments/models/payment_retrieve_line_items_params.rb +14 -1
  45. data/lib/dodopayments/models/payment_retrieve_line_items_response.rb +10 -1
  46. data/lib/dodopayments/models/payouts/breakup/detail_list_response.rb +3 -1
  47. data/lib/dodopayments/models/payouts/breakup_retrieve_response.rb +2 -1
  48. data/lib/dodopayments/models/product_collection_list_params.rb +17 -1
  49. data/lib/dodopayments/models/product_collection_retrieve_params.rb +18 -1
  50. data/lib/dodopayments/models/product_collections/translation_delete_params.rb +37 -0
  51. data/lib/dodopayments/models/product_collections/translation_list_params.rb +36 -0
  52. data/lib/dodopayments/models/product_collections/translation_update_params.rb +53 -0
  53. data/lib/dodopayments/models/product_list_params.rb +14 -1
  54. data/lib/dodopayments/models/product_retrieve_params.rb +18 -1
  55. data/lib/dodopayments/models/products/translation.rb +50 -0
  56. data/lib/dodopayments/models/products/translation_delete_params.rb +36 -0
  57. data/lib/dodopayments/models/products/translation_list_params.rb +35 -0
  58. data/lib/dodopayments/models/products/translation_update_params.rb +52 -0
  59. data/lib/dodopayments/models/products/translations_list_response.rb +20 -0
  60. data/lib/dodopayments/models/refund_create_params.rb +13 -1
  61. data/lib/dodopayments/models/subscription_list_params.rb +14 -1
  62. data/lib/dodopayments/models/subscription_retrieve_params.rb +18 -1
  63. data/lib/dodopayments/models/three_ds_flow.rb +16 -0
  64. data/lib/dodopayments/models/three_ds_status.rb +21 -0
  65. data/lib/dodopayments/models/update_subscription_plan_req.rb +10 -0
  66. data/lib/dodopayments/models.rb +20 -0
  67. data/lib/dodopayments/resources/addons/translations.rb +110 -0
  68. data/lib/dodopayments/resources/addons.rb +58 -3
  69. data/lib/dodopayments/resources/checkout_sessions.rb +31 -26
  70. data/lib/dodopayments/resources/credit_entitlements/translations.rb +113 -0
  71. data/lib/dodopayments/resources/credit_entitlements.rb +20 -3
  72. data/lib/dodopayments/resources/customers.rb +12 -2
  73. data/lib/dodopayments/resources/entitlements/translations.rb +114 -0
  74. data/lib/dodopayments/resources/entitlements.rb +20 -3
  75. data/lib/dodopayments/resources/meters/translations.rb +110 -0
  76. data/lib/dodopayments/resources/meters.rb +49 -3
  77. data/lib/dodopayments/resources/misc.rb +18 -0
  78. data/lib/dodopayments/resources/payments.rb +10 -2
  79. data/lib/dodopayments/resources/payouts/breakup/details.rb +5 -2
  80. data/lib/dodopayments/resources/payouts/breakup.rb +4 -1
  81. data/lib/dodopayments/resources/product_collections/translations.rb +113 -0
  82. data/lib/dodopayments/resources/product_collections.rb +20 -3
  83. data/lib/dodopayments/resources/products/translations.rb +110 -0
  84. data/lib/dodopayments/resources/products.rb +17 -3
  85. data/lib/dodopayments/resources/refunds.rb +6 -1
  86. data/lib/dodopayments/resources/subscriptions.rb +13 -3
  87. data/lib/dodopayments/version.rb +1 -1
  88. data/lib/dodopayments.rb +39 -0
  89. data/rbi/dodopayments/models/addon_delete_params.rbi +38 -0
  90. data/rbi/dodopayments/models/addon_list_params.rbi +32 -0
  91. data/rbi/dodopayments/models/addon_retrieve_params.rbi +29 -2
  92. data/rbi/dodopayments/models/addon_unarchive_params.rbi +38 -0
  93. data/rbi/dodopayments/models/addons/translation_delete_params.rbi +58 -0
  94. data/rbi/dodopayments/models/addons/translation_list_params.rbi +59 -0
  95. data/rbi/dodopayments/models/addons/translation_update_params.rbi +74 -0
  96. data/rbi/dodopayments/models/balance_ledger_entry.rbi +5 -0
  97. data/rbi/dodopayments/models/balance_retrieve_ledger_params.rbi +5 -0
  98. data/rbi/dodopayments/models/checkout_session_preview_params.rbi +29 -5
  99. data/rbi/dodopayments/models/create_new_customer.rbi +17 -3
  100. data/rbi/dodopayments/models/credit_entitlement_list_params.rbi +21 -0
  101. data/rbi/dodopayments/models/credit_entitlement_retrieve_params.rbi +29 -2
  102. data/rbi/dodopayments/models/credit_entitlements/credit_entitlement_translation.rbi +70 -0
  103. data/rbi/dodopayments/models/credit_entitlements/credit_entitlement_translations_list_response.rbi +54 -0
  104. data/rbi/dodopayments/models/credit_entitlements/translation_delete_params.rbi +58 -0
  105. data/rbi/dodopayments/models/credit_entitlements/translation_list_params.rbi +59 -0
  106. data/rbi/dodopayments/models/credit_entitlements/translation_update_params.rbi +74 -0
  107. data/rbi/dodopayments/models/customer.rbi +11 -3
  108. data/rbi/dodopayments/models/customer_create_params.rbi +12 -0
  109. data/rbi/dodopayments/models/customer_update_params.rbi +12 -0
  110. data/rbi/dodopayments/models/entitlement_list_params.rbi +21 -0
  111. data/rbi/dodopayments/models/entitlement_retrieve_params.rbi +29 -2
  112. data/rbi/dodopayments/models/entitlements/entitlement_translation.rbi +87 -0
  113. data/rbi/dodopayments/models/entitlements/entitlement_translations_list_response.rbi +48 -0
  114. data/rbi/dodopayments/models/entitlements/translation_delete_params.rbi +58 -0
  115. data/rbi/dodopayments/models/entitlements/translation_list_params.rbi +59 -0
  116. data/rbi/dodopayments/models/entitlements/translation_update_params.rbi +92 -0
  117. data/rbi/dodopayments/models/locale.rbi +42 -0
  118. data/rbi/dodopayments/models/locale_info.rbi +54 -0
  119. data/rbi/dodopayments/models/meter_list_params.rbi +21 -0
  120. data/rbi/dodopayments/models/meter_retrieve_params.rbi +29 -2
  121. data/rbi/dodopayments/models/meter_update_params.rbi +70 -0
  122. data/rbi/dodopayments/models/meters/translation_delete_params.rbi +58 -0
  123. data/rbi/dodopayments/models/meters/translation_list_params.rbi +59 -0
  124. data/rbi/dodopayments/models/meters/translation_update_params.rbi +74 -0
  125. data/rbi/dodopayments/models/misc_list_locales_params.rbi +32 -0
  126. data/rbi/dodopayments/models/misc_list_locales_response.rbi +11 -0
  127. data/rbi/dodopayments/models/payment.rbi +33 -0
  128. data/rbi/dodopayments/models/payment_list_response.rbi +36 -3
  129. data/rbi/dodopayments/models/payment_retrieve_line_items_params.rbi +21 -2
  130. data/rbi/dodopayments/models/payment_retrieve_line_items_response.rbi +14 -3
  131. data/rbi/dodopayments/models/payouts/breakup/detail_list_response.rbi +6 -2
  132. data/rbi/dodopayments/models/payouts/breakup_retrieve_response.rbi +4 -2
  133. data/rbi/dodopayments/models/product_collection_list_params.rbi +21 -0
  134. data/rbi/dodopayments/models/product_collection_retrieve_params.rbi +29 -2
  135. data/rbi/dodopayments/models/product_collections/translation_delete_params.rbi +58 -0
  136. data/rbi/dodopayments/models/product_collections/translation_list_params.rbi +59 -0
  137. data/rbi/dodopayments/models/product_collections/translation_update_params.rbi +74 -0
  138. data/rbi/dodopayments/models/product_list_params.rbi +21 -0
  139. data/rbi/dodopayments/models/product_retrieve_params.rbi +29 -2
  140. data/rbi/dodopayments/models/products/translation.rbi +70 -0
  141. data/rbi/dodopayments/models/products/translation_delete_params.rbi +58 -0
  142. data/rbi/dodopayments/models/products/translation_list_params.rbi +59 -0
  143. data/rbi/dodopayments/models/products/translation_update_params.rbi +74 -0
  144. data/rbi/dodopayments/models/products/translations_list_response.rbi +37 -0
  145. data/rbi/dodopayments/models/refund_create_params.rbi +10 -0
  146. data/rbi/dodopayments/models/subscription_list_params.rbi +21 -0
  147. data/rbi/dodopayments/models/subscription_retrieve_params.rbi +25 -1
  148. data/rbi/dodopayments/models/three_ds_flow.rbi +23 -0
  149. data/rbi/dodopayments/models/three_ds_status.rbi +31 -0
  150. data/rbi/dodopayments/models/update_subscription_plan_req.rbi +15 -0
  151. data/rbi/dodopayments/models.rbi +20 -0
  152. data/rbi/dodopayments/resources/addons/translations.rbi +77 -0
  153. data/rbi/dodopayments/resources/addons.rbi +48 -0
  154. data/rbi/dodopayments/resources/checkout_sessions.rbi +55 -39
  155. data/rbi/dodopayments/resources/credit_entitlements/translations.rbi +81 -0
  156. data/rbi/dodopayments/resources/credit_entitlements.rbi +19 -0
  157. data/rbi/dodopayments/resources/customers.rbi +10 -0
  158. data/rbi/dodopayments/resources/entitlements/translations.rbi +87 -0
  159. data/rbi/dodopayments/resources/entitlements.rbi +19 -0
  160. data/rbi/dodopayments/resources/meters/translations.rbi +77 -0
  161. data/rbi/dodopayments/resources/meters.rbi +42 -0
  162. data/rbi/dodopayments/resources/misc.rbi +9 -0
  163. data/rbi/dodopayments/resources/payments.rbi +4 -0
  164. data/rbi/dodopayments/resources/payouts/breakup/details.rbi +5 -2
  165. data/rbi/dodopayments/resources/payouts/breakup.rbi +4 -1
  166. data/rbi/dodopayments/resources/product_collections/translations.rbi +77 -0
  167. data/rbi/dodopayments/resources/product_collections.rbi +19 -0
  168. data/rbi/dodopayments/resources/products/translations.rbi +77 -0
  169. data/rbi/dodopayments/resources/products.rbi +19 -0
  170. data/rbi/dodopayments/resources/refunds.rbi +4 -0
  171. data/rbi/dodopayments/resources/subscriptions.rbi +26 -0
  172. data/sig/dodopayments/models/addon_delete_params.rbs +23 -0
  173. data/sig/dodopayments/models/addon_list_params.rbs +18 -1
  174. data/sig/dodopayments/models/addon_retrieve_params.rbs +8 -1
  175. data/sig/dodopayments/models/addon_unarchive_params.rbs +23 -0
  176. data/sig/dodopayments/models/addons/translation_delete_params.rbs +30 -0
  177. data/sig/dodopayments/models/addons/translation_list_params.rbs +32 -0
  178. data/sig/dodopayments/models/addons/translation_update_params.rbs +43 -0
  179. data/sig/dodopayments/models/balance_ledger_entry.rbs +2 -0
  180. data/sig/dodopayments/models/balance_retrieve_ledger_params.rbs +2 -0
  181. data/sig/dodopayments/models/checkout_session_preview_params.rbs +13 -3
  182. data/sig/dodopayments/models/create_new_customer.rbs +8 -3
  183. data/sig/dodopayments/models/credit_entitlement_list_params.rbs +12 -1
  184. data/sig/dodopayments/models/credit_entitlement_retrieve_params.rbs +8 -1
  185. data/sig/dodopayments/models/credit_entitlements/credit_entitlement_translation.rbs +39 -0
  186. data/sig/dodopayments/models/credit_entitlements/credit_entitlement_translations_list_response.rbs +24 -0
  187. data/sig/dodopayments/models/credit_entitlements/translation_delete_params.rbs +30 -0
  188. data/sig/dodopayments/models/credit_entitlements/translation_list_params.rbs +32 -0
  189. data/sig/dodopayments/models/credit_entitlements/translation_update_params.rbs +43 -0
  190. data/sig/dodopayments/models/customer.rbs +8 -3
  191. data/sig/dodopayments/models/customer_create_params.rbs +6 -1
  192. data/sig/dodopayments/models/customer_update_params.rbs +6 -1
  193. data/sig/dodopayments/models/entitlement_list_params.rbs +7 -0
  194. data/sig/dodopayments/models/entitlement_retrieve_params.rbs +8 -1
  195. data/sig/dodopayments/models/entitlements/entitlement_translation.rbs +49 -0
  196. data/sig/dodopayments/models/entitlements/entitlement_translations_list_response.rbs +22 -0
  197. data/sig/dodopayments/models/entitlements/translation_delete_params.rbs +30 -0
  198. data/sig/dodopayments/models/entitlements/translation_list_params.rbs +32 -0
  199. data/sig/dodopayments/models/entitlements/translation_update_params.rbs +53 -0
  200. data/sig/dodopayments/models/locale.rbs +56 -0
  201. data/sig/dodopayments/models/locale_info.rbs +26 -0
  202. data/sig/dodopayments/models/meter_list_params.rbs +12 -1
  203. data/sig/dodopayments/models/meter_retrieve_params.rbs +8 -1
  204. data/sig/dodopayments/models/meter_update_params.rbs +41 -0
  205. data/sig/dodopayments/models/meters/translation_delete_params.rbs +30 -0
  206. data/sig/dodopayments/models/meters/translation_list_params.rbs +32 -0
  207. data/sig/dodopayments/models/meters/translation_update_params.rbs +43 -0
  208. data/sig/dodopayments/models/misc_list_locales_params.rbs +15 -0
  209. data/sig/dodopayments/models/misc_list_locales_response.rbs +7 -0
  210. data/sig/dodopayments/models/payment.rbs +15 -0
  211. data/sig/dodopayments/models/payment_list_response.rbs +18 -3
  212. data/sig/dodopayments/models/payment_retrieve_line_items_params.rbs +10 -1
  213. data/sig/dodopayments/models/payment_retrieve_line_items_response.rbs +8 -3
  214. data/sig/dodopayments/models/product_collection_list_params.rbs +7 -0
  215. data/sig/dodopayments/models/product_collection_retrieve_params.rbs +8 -1
  216. data/sig/dodopayments/models/product_collections/translation_delete_params.rbs +30 -0
  217. data/sig/dodopayments/models/product_collections/translation_list_params.rbs +32 -0
  218. data/sig/dodopayments/models/product_collections/translation_update_params.rbs +43 -0
  219. data/sig/dodopayments/models/product_list_params.rbs +7 -0
  220. data/sig/dodopayments/models/product_retrieve_params.rbs +8 -1
  221. data/sig/dodopayments/models/products/translation.rbs +37 -0
  222. data/sig/dodopayments/models/products/translation_delete_params.rbs +30 -0
  223. data/sig/dodopayments/models/products/translation_list_params.rbs +32 -0
  224. data/sig/dodopayments/models/products/translation_update_params.rbs +43 -0
  225. data/sig/dodopayments/models/products/translations_list_response.rbs +18 -0
  226. data/sig/dodopayments/models/refund_create_params.rbs +5 -0
  227. data/sig/dodopayments/models/subscription_list_params.rbs +7 -0
  228. data/sig/dodopayments/models/subscription_retrieve_params.rbs +7 -1
  229. data/sig/dodopayments/models/three_ds_flow.rbs +14 -0
  230. data/sig/dodopayments/models/three_ds_status.rbs +24 -0
  231. data/sig/dodopayments/models.rbs +20 -0
  232. data/sig/dodopayments/resources/addons/translations.rbs +29 -0
  233. data/sig/dodopayments/resources/addons.rbs +15 -0
  234. data/sig/dodopayments/resources/checkout_sessions.rbs +1 -0
  235. data/sig/dodopayments/resources/credit_entitlements/translations.rbs +29 -0
  236. data/sig/dodopayments/resources/credit_entitlements.rbs +4 -0
  237. data/sig/dodopayments/resources/customers.rbs +2 -0
  238. data/sig/dodopayments/resources/entitlements/translations.rbs +31 -0
  239. data/sig/dodopayments/resources/entitlements.rbs +4 -0
  240. data/sig/dodopayments/resources/meters/translations.rbs +29 -0
  241. data/sig/dodopayments/resources/meters.rbs +12 -0
  242. data/sig/dodopayments/resources/misc.rbs +4 -0
  243. data/sig/dodopayments/resources/payments.rbs +1 -0
  244. data/sig/dodopayments/resources/product_collections/translations.rbs +29 -0
  245. data/sig/dodopayments/resources/product_collections.rbs +4 -0
  246. data/sig/dodopayments/resources/products/translations.rbs +29 -0
  247. data/sig/dodopayments/resources/products.rbs +4 -0
  248. data/sig/dodopayments/resources/refunds.rbs +1 -0
  249. data/sig/dodopayments/resources/subscriptions.rbs +2 -0
  250. metadata +119 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c11a0d8230c984a0f1edb90a4ec17367c959b1184fb237167022cce1ffabef79
4
- data.tar.gz: 65a53d9ea3bef5ff6f6ac1246ad5f58bf661299376465bd244cf89dc46518d6b
3
+ metadata.gz: 759472ef7ceda29e93921ba3842b3d7f64e23700c06195f12636ac0758c38ea2
4
+ data.tar.gz: 966be0a02c69b7f86643da56082d9a478199a658b2865a591b62684dbe294170
5
5
  SHA512:
6
- metadata.gz: 143d2ca167230b620f7fbce7e95bcb0ab604194841690113dd8c58609643d2faf141935105139492e60aa297ccfa70ac896f6b11b1334dcb934f67f6aaa280fd
7
- data.tar.gz: b57185159507e699991b8bc47b7a8559260179cc013dadbd48e60bdb17d3d8108a31c689ec8c96bc308a631bac669ad5d09e9f3fab8aecb43718ce42adb95273
6
+ metadata.gz: 9ee34c03c5070b13a2631a9a85d1e21477206be0f943dba2f08b6138949891e6eb68bec0778bb1adc4df471e6c1c89963c158c29606cd166263c66fe7b2830c5
7
+ data.tar.gz: b64bd1a280eb380543f5ec863b6034f4960b3fe886e1a684b4dd3324ef313b8ca3daca25a4da406ba654c2b44397539d690da6fcc424fb2f847bdb3a06d483dc
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## [2.35.0](https://github.com/dodopayments/dodopayments-ruby/compare/v2.34.0...v2.35.0) (2026-10-24)
4
+
5
+
6
+ ### Features
7
+
8
+ * **api:** translations and locales, addon delete/unarchive, meter update, 3DS payment details ([3f470a9](https://github.com/dodopayments/dodopayments-ruby/commit/3f470a9af2e2651c9f8189cca0371a77fb1e6ff2))
9
+ * **api:** translations and locales, addon delete/unarchive, meter update, 3DS payment details ([2c095ae](https://github.com/dodopayments/dodopayments-ruby/commit/2c095aef1dd7031dfd35a4165dd40b376e745db3))
10
+
3
11
  ## [2.34.0](https://github.com/dodopayments/dodopayments-ruby/compare/v2.33.0...v2.34.0) (2026-10-21)
4
12
 
5
13
 
data/README.md CHANGED
@@ -23,7 +23,7 @@ To use this gem, install via Bundler by adding the following to your application
23
23
  <!-- x-release-please-start-version -->
24
24
 
25
25
  ```ruby
26
- gem "dodopayments", "~> 2.34.0"
26
+ gem "dodopayments", "~> 2.35.0"
27
27
  ```
28
28
 
29
29
  <!-- x-release-please-end -->
@@ -0,0 +1,20 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Dodopayments
4
+ module Models
5
+ # @see Dodopayments::Resources::Addons#delete
6
+ class AddonDeleteParams < Dodopayments::Internal::Type::BaseModel
7
+ extend Dodopayments::Internal::Type::RequestParameters::Converter
8
+ include Dodopayments::Internal::Type::RequestParameters
9
+
10
+ # @!attribute id
11
+ #
12
+ # @return [String]
13
+ required :id, String
14
+
15
+ # @!method initialize(id:, request_options: {})
16
+ # @param id [String]
17
+ # @param request_options [Dodopayments::RequestOptions, Hash{Symbol=>Object}]
18
+ end
19
+ end
20
+ end
@@ -7,6 +7,23 @@ module Dodopayments
7
7
  extend Dodopayments::Internal::Type::RequestParameters::Converter
8
8
  include Dodopayments::Internal::Type::RequestParameters
9
9
 
10
+ # @!attribute archived
11
+ # List archived addons. The default is false.
12
+ #
13
+ # @return [Boolean, nil]
14
+ optional :archived, Dodopayments::Internal::Type::Boolean
15
+
16
+ # @!attribute locale
17
+ # Shows the translated name, description and unit of the catalog entities in this
18
+ # locale. The value must be a code from `GET /locales`, for example `fr`. A field
19
+ # with no translation, an unknown code, or no code shows the base text.
20
+ #
21
+ # Do not send a text from a localized response back in a create or update request.
22
+ # The base text then changes to the translated text.
23
+ #
24
+ # @return [String, nil]
25
+ optional :locale, String
26
+
10
27
  # @!attribute page_number
11
28
  # Page number default is 0
12
29
  #
@@ -19,7 +36,14 @@ module Dodopayments
19
36
  # @return [Integer, nil]
20
37
  optional :page_size, Integer
21
38
 
22
- # @!method initialize(page_number: nil, page_size: nil, request_options: {})
39
+ # @!method initialize(archived: nil, locale: nil, page_number: nil, page_size: nil, request_options: {})
40
+ # Some parameter documentations has been truncated, see
41
+ # {Dodopayments::Models::AddonListParams} for more details.
42
+ #
43
+ # @param archived [Boolean] List archived addons. The default is false.
44
+ #
45
+ # @param locale [String] Shows the translated name, description and unit of the catalog entities in this
46
+ #
23
47
  # @param page_number [Integer] Page number default is 0
24
48
  #
25
49
  # @param page_size [Integer] Page size default is 10 max is 100
@@ -12,8 +12,25 @@ module Dodopayments
12
12
  # @return [String]
13
13
  required :id, String
14
14
 
15
- # @!method initialize(id:, request_options: {})
15
+ # @!attribute locale
16
+ # Shows the translated name, description and unit of the catalog entities in this
17
+ # locale. The value must be a code from `GET /locales`, for example `fr`. A field
18
+ # with no translation, an unknown code, or no code shows the base text.
19
+ #
20
+ # Do not send a text from a localized response back in a create or update request.
21
+ # The base text then changes to the translated text.
22
+ #
23
+ # @return [String, nil]
24
+ optional :locale, String
25
+
26
+ # @!method initialize(id:, locale: nil, request_options: {})
27
+ # Some parameter documentations has been truncated, see
28
+ # {Dodopayments::Models::AddonRetrieveParams} for more details.
29
+ #
16
30
  # @param id [String]
31
+ #
32
+ # @param locale [String] Shows the translated name, description and unit of the catalog entities in this
33
+ #
17
34
  # @param request_options [Dodopayments::RequestOptions, Hash{Symbol=>Object}]
18
35
  end
19
36
  end
@@ -0,0 +1,20 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Dodopayments
4
+ module Models
5
+ # @see Dodopayments::Resources::Addons#unarchive
6
+ class AddonUnarchiveParams < Dodopayments::Internal::Type::BaseModel
7
+ extend Dodopayments::Internal::Type::RequestParameters::Converter
8
+ include Dodopayments::Internal::Type::RequestParameters
9
+
10
+ # @!attribute id
11
+ #
12
+ # @return [String]
13
+ required :id, String
14
+
15
+ # @!method initialize(id:, request_options: {})
16
+ # @param id [String]
17
+ # @param request_options [Dodopayments::RequestOptions, Hash{Symbol=>Object}]
18
+ end
19
+ end
20
+ end
@@ -0,0 +1,36 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Dodopayments
4
+ module Models
5
+ module Addons
6
+ # @see Dodopayments::Resources::Addons::Translations#delete
7
+ class TranslationDeleteParams < Dodopayments::Internal::Type::BaseModel
8
+ extend Dodopayments::Internal::Type::RequestParameters::Converter
9
+ include Dodopayments::Internal::Type::RequestParameters
10
+
11
+ # @!attribute id
12
+ #
13
+ # @return [String]
14
+ required :id, String
15
+
16
+ # @!attribute locale
17
+ # A locale that the checkout and the customer portal can show.
18
+ #
19
+ # The codes are a copy of the checkout locales. `GET /locales` lists them.
20
+ #
21
+ # @return [Symbol, Dodopayments::Models::Locale]
22
+ required :locale, enum: -> { Dodopayments::Locale }
23
+
24
+ # @!method initialize(id:, locale:, request_options: {})
25
+ # Some parameter documentations has been truncated, see
26
+ # {Dodopayments::Models::Addons::TranslationDeleteParams} for more details.
27
+ #
28
+ # @param id [String]
29
+ #
30
+ # @param locale [Symbol, Dodopayments::Models::Locale] A locale that the checkout and the customer portal can show.
31
+ #
32
+ # @param request_options [Dodopayments::RequestOptions, Hash{Symbol=>Object}]
33
+ end
34
+ end
35
+ end
36
+ end
@@ -0,0 +1,35 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Dodopayments
4
+ module Models
5
+ module Addons
6
+ # @see Dodopayments::Resources::Addons::Translations#list
7
+ class TranslationListParams < Dodopayments::Internal::Type::BaseModel
8
+ extend Dodopayments::Internal::Type::RequestParameters::Converter
9
+ include Dodopayments::Internal::Type::RequestParameters
10
+
11
+ # @!attribute id
12
+ #
13
+ # @return [String]
14
+ required :id, String
15
+
16
+ # @!attribute locale
17
+ # Returns only these locales, for example `?locale=fr&locale=de`. With no value,
18
+ # the response has all the locales.
19
+ #
20
+ # @return [Array<String>, nil]
21
+ optional :locale, Dodopayments::Internal::Type::ArrayOf[String]
22
+
23
+ # @!method initialize(id:, locale: nil, request_options: {})
24
+ # Some parameter documentations has been truncated, see
25
+ # {Dodopayments::Models::Addons::TranslationListParams} for more details.
26
+ #
27
+ # @param id [String]
28
+ #
29
+ # @param locale [Array<String>] Returns only these locales, for example `?locale=fr&locale=de`. With no value, t
30
+ #
31
+ # @param request_options [Dodopayments::RequestOptions, Hash{Symbol=>Object}]
32
+ end
33
+ end
34
+ end
35
+ end
@@ -0,0 +1,52 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Dodopayments
4
+ module Models
5
+ module Addons
6
+ # @see Dodopayments::Resources::Addons::Translations#update
7
+ class TranslationUpdateParams < Dodopayments::Internal::Type::BaseModel
8
+ extend Dodopayments::Internal::Type::RequestParameters::Converter
9
+ include Dodopayments::Internal::Type::RequestParameters
10
+
11
+ # @!attribute id
12
+ #
13
+ # @return [String]
14
+ required :id, String
15
+
16
+ # @!attribute locale
17
+ # A locale that the checkout and the customer portal can show.
18
+ #
19
+ # The codes are a copy of the checkout locales. `GET /locales` lists them.
20
+ #
21
+ # @return [Symbol, Dodopayments::Models::Locale]
22
+ required :locale, enum: -> { Dodopayments::Locale }
23
+
24
+ # @!attribute description
25
+ # The translated description.
26
+ #
27
+ # @return [String, nil]
28
+ optional :description, String, nil?: true
29
+
30
+ # @!attribute name
31
+ # The translated name.
32
+ #
33
+ # @return [String, nil]
34
+ optional :name, String, nil?: true
35
+
36
+ # @!method initialize(id:, locale:, description: nil, name: nil, request_options: {})
37
+ # Some parameter documentations has been truncated, see
38
+ # {Dodopayments::Models::Addons::TranslationUpdateParams} for more details.
39
+ #
40
+ # @param id [String]
41
+ #
42
+ # @param locale [Symbol, Dodopayments::Models::Locale] A locale that the checkout and the customer portal can show.
43
+ #
44
+ # @param description [String, nil] The translated description.
45
+ #
46
+ # @param name [String, nil] The translated name.
47
+ #
48
+ # @param request_options [Dodopayments::RequestOptions, Hash{Symbol=>Object}]
49
+ end
50
+ end
51
+ end
52
+ end
@@ -122,6 +122,7 @@ module Dodopayments
122
122
  DODO_FIXED_FEE = :dodo_fixed_fee
123
123
  INTERCHANGE_FEE = :interchange_fee
124
124
  SCHEME_FEE = :scheme_fee
125
+ OPENING_BALANCE = :opening_balance
125
126
 
126
127
  # @!method self.values
127
128
  # @return [Array<Symbol>]
@@ -269,6 +269,7 @@ module Dodopayments
269
269
  DODO_FIXED_FEE = :dodo_fixed_fee
270
270
  INTERCHANGE_FEE = :interchange_fee
271
271
  SCHEME_FEE = :scheme_fee
272
+ OPENING_BALANCE = :opening_balance
272
273
 
273
274
  # @!method self.values
274
275
  # @return [Array<Symbol>]
@@ -7,7 +7,23 @@ module Dodopayments
7
7
  extend Dodopayments::Internal::Type::RequestParameters::Converter
8
8
  include Dodopayments::Internal::Type::RequestParameters
9
9
 
10
- # @!method initialize(request_options: {})
10
+ # @!attribute locale
11
+ # Shows the translated name, description and unit of the catalog entities in this
12
+ # locale. The value must be a code from `GET /locales`, for example `fr`. A field
13
+ # with no translation, an unknown code, or no code shows the base text.
14
+ #
15
+ # Do not send a text from a localized response back in a create or update request.
16
+ # The base text then changes to the translated text.
17
+ #
18
+ # @return [String, nil]
19
+ optional :locale, String
20
+
21
+ # @!method initialize(locale: nil, request_options: {})
22
+ # Some parameter documentations has been truncated, see
23
+ # {Dodopayments::Models::CheckoutSessionPreviewParams} for more details.
24
+ #
25
+ # @param locale [String] Shows the translated name, description and unit of the catalog entities in this
26
+ #
11
27
  # @param request_options [Dodopayments::RequestOptions, Hash{Symbol=>Object}]
12
28
  end
13
29
  end
@@ -26,7 +26,16 @@ module Dodopayments
26
26
  # @return [String, nil]
27
27
  optional :phone_number, String, nil?: true
28
28
 
29
- # @!method initialize(email:, name:, create_new_customer: nil, phone_number: nil)
29
+ # @!attribute preferred_locale
30
+ # The language of the customer emails, a code from `GET /locales`. A value
31
+ # replaces the stored language of the customer, also for an existing customer.
32
+ # Send a value only to change that language on purpose. With no value, the stored
33
+ # language stays.
34
+ #
35
+ # @return [Symbol, Dodopayments::Models::Locale, nil]
36
+ optional :preferred_locale, enum: -> { Dodopayments::Locale }, nil?: true
37
+
38
+ # @!method initialize(email:, name:, create_new_customer: nil, phone_number: nil, preferred_locale: nil)
30
39
  # Some parameter documentations has been truncated, see
31
40
  # {Dodopayments::Models::CreateNewCustomer} for more details.
32
41
  #
@@ -37,6 +46,8 @@ module Dodopayments
37
46
  # @param create_new_customer [Boolean] When false, the most recently created customer object with the given email is us
38
47
  #
39
48
  # @param phone_number [String, nil]
49
+ #
50
+ # @param preferred_locale [Symbol, Dodopayments::Models::Locale, nil] The language of the customer emails, a code from `GET /locales`. A value replace
40
51
  end
41
52
  end
42
53
  end
@@ -13,6 +13,17 @@ module Dodopayments
13
13
  # @return [Boolean, nil]
14
14
  optional :deleted, Dodopayments::Internal::Type::Boolean
15
15
 
16
+ # @!attribute locale
17
+ # Shows the translated name, description and unit of the catalog entities in this
18
+ # locale. The value must be a code from `GET /locales`, for example `fr`. A field
19
+ # with no translation, an unknown code, or no code shows the base text.
20
+ #
21
+ # Do not send a text from a localized response back in a create or update request.
22
+ # The base text then changes to the translated text.
23
+ #
24
+ # @return [String, nil]
25
+ optional :locale, String
26
+
16
27
  # @!attribute page_number
17
28
  # Page number default is 0
18
29
  #
@@ -25,9 +36,14 @@ module Dodopayments
25
36
  # @return [Integer, nil]
26
37
  optional :page_size, Integer
27
38
 
28
- # @!method initialize(deleted: nil, page_number: nil, page_size: nil, request_options: {})
39
+ # @!method initialize(deleted: nil, locale: nil, page_number: nil, page_size: nil, request_options: {})
40
+ # Some parameter documentations has been truncated, see
41
+ # {Dodopayments::Models::CreditEntitlementListParams} for more details.
42
+ #
29
43
  # @param deleted [Boolean] List deleted credit entitlements
30
44
  #
45
+ # @param locale [String] Shows the translated name, description and unit of the catalog entities in this
46
+ #
31
47
  # @param page_number [Integer] Page number default is 0
32
48
  #
33
49
  # @param page_size [Integer] Page size default is 10 max is 100
@@ -12,8 +12,25 @@ module Dodopayments
12
12
  # @return [String]
13
13
  required :id, String
14
14
 
15
- # @!method initialize(id:, request_options: {})
15
+ # @!attribute locale
16
+ # Shows the translated name, description and unit of the catalog entities in this
17
+ # locale. The value must be a code from `GET /locales`, for example `fr`. A field
18
+ # with no translation, an unknown code, or no code shows the base text.
19
+ #
20
+ # Do not send a text from a localized response back in a create or update request.
21
+ # The base text then changes to the translated text.
22
+ #
23
+ # @return [String, nil]
24
+ optional :locale, String
25
+
26
+ # @!method initialize(id:, locale: nil, request_options: {})
27
+ # Some parameter documentations has been truncated, see
28
+ # {Dodopayments::Models::CreditEntitlementRetrieveParams} for more details.
29
+ #
16
30
  # @param id [String]
31
+ #
32
+ # @param locale [String] Shows the translated name, description and unit of the catalog entities in this
33
+ #
17
34
  # @param request_options [Dodopayments::RequestOptions, Hash{Symbol=>Object}]
18
35
  end
19
36
  end
@@ -0,0 +1,47 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Dodopayments
4
+ module Models
5
+ module CreditEntitlements
6
+ # @see Dodopayments::Resources::CreditEntitlements::Translations#update
7
+ class CreditEntitlementTranslation < Dodopayments::Internal::Type::BaseModel
8
+ # @!attribute locale
9
+ # The locale of the translation.
10
+ #
11
+ # @return [Symbol, Dodopayments::Models::Locale]
12
+ required :locale, enum: -> { Dodopayments::Locale }
13
+
14
+ # @!attribute updated_at
15
+ # The time of the last change.
16
+ #
17
+ # @return [Time]
18
+ required :updated_at, Time
19
+
20
+ # @!attribute name
21
+ # The translated name. `null` shows that the name has no translation.
22
+ #
23
+ # @return [String, nil]
24
+ optional :name, String, nil?: true
25
+
26
+ # @!attribute unit
27
+ # The translated unit. `null` shows that the unit has no translation.
28
+ #
29
+ # @return [String, nil]
30
+ optional :unit, String, nil?: true
31
+
32
+ # @!method initialize(locale:, updated_at:, name: nil, unit: nil)
33
+ # The translation of a credit entitlement in one locale.
34
+ #
35
+ # @param locale [Symbol, Dodopayments::Models::Locale] The locale of the translation.
36
+ #
37
+ # @param updated_at [Time] The time of the last change.
38
+ #
39
+ # @param name [String, nil] The translated name. `null` shows that the name has no translation.
40
+ #
41
+ # @param unit [String, nil] The translated unit. `null` shows that the unit has no translation.
42
+ end
43
+ end
44
+
45
+ CreditEntitlementTranslation = CreditEntitlements::CreditEntitlementTranslation
46
+ end
47
+ end
@@ -0,0 +1,23 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Dodopayments
4
+ module Models
5
+ module CreditEntitlements
6
+ # @see Dodopayments::Resources::CreditEntitlements::Translations#list
7
+ class CreditEntitlementTranslationsListResponse < Dodopayments::Internal::Type::BaseModel
8
+ # @!attribute items
9
+ #
10
+ # @return [Array<Dodopayments::Models::CreditEntitlements::CreditEntitlementTranslation>]
11
+ required :items,
12
+ -> { Dodopayments::Internal::Type::ArrayOf[Dodopayments::CreditEntitlements::CreditEntitlementTranslation] }
13
+
14
+ # @!method initialize(items:)
15
+ # The translations of a credit entitlement.
16
+ #
17
+ # @param items [Array<Dodopayments::Models::CreditEntitlements::CreditEntitlementTranslation>]
18
+ end
19
+ end
20
+
21
+ CreditEntitlementTranslationsListResponse = CreditEntitlements::CreditEntitlementTranslationsListResponse
22
+ end
23
+ end
@@ -0,0 +1,37 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Dodopayments
4
+ module Models
5
+ module CreditEntitlements
6
+ # @see Dodopayments::Resources::CreditEntitlements::Translations#delete
7
+ class TranslationDeleteParams < Dodopayments::Internal::Type::BaseModel
8
+ extend Dodopayments::Internal::Type::RequestParameters::Converter
9
+ include Dodopayments::Internal::Type::RequestParameters
10
+
11
+ # @!attribute id
12
+ #
13
+ # @return [String]
14
+ required :id, String
15
+
16
+ # @!attribute locale
17
+ # A locale that the checkout and the customer portal can show.
18
+ #
19
+ # The codes are a copy of the checkout locales. `GET /locales` lists them.
20
+ #
21
+ # @return [Symbol, Dodopayments::Models::Locale]
22
+ required :locale, enum: -> { Dodopayments::Locale }
23
+
24
+ # @!method initialize(id:, locale:, request_options: {})
25
+ # Some parameter documentations has been truncated, see
26
+ # {Dodopayments::Models::CreditEntitlements::TranslationDeleteParams} for more
27
+ # details.
28
+ #
29
+ # @param id [String]
30
+ #
31
+ # @param locale [Symbol, Dodopayments::Models::Locale] A locale that the checkout and the customer portal can show.
32
+ #
33
+ # @param request_options [Dodopayments::RequestOptions, Hash{Symbol=>Object}]
34
+ end
35
+ end
36
+ end
37
+ end
@@ -0,0 +1,36 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Dodopayments
4
+ module Models
5
+ module CreditEntitlements
6
+ # @see Dodopayments::Resources::CreditEntitlements::Translations#list
7
+ class TranslationListParams < Dodopayments::Internal::Type::BaseModel
8
+ extend Dodopayments::Internal::Type::RequestParameters::Converter
9
+ include Dodopayments::Internal::Type::RequestParameters
10
+
11
+ # @!attribute id
12
+ #
13
+ # @return [String]
14
+ required :id, String
15
+
16
+ # @!attribute locale
17
+ # Returns only these locales, for example `?locale=fr&locale=de`. With no value,
18
+ # the response has all the locales.
19
+ #
20
+ # @return [Array<String>, nil]
21
+ optional :locale, Dodopayments::Internal::Type::ArrayOf[String]
22
+
23
+ # @!method initialize(id:, locale: nil, request_options: {})
24
+ # Some parameter documentations has been truncated, see
25
+ # {Dodopayments::Models::CreditEntitlements::TranslationListParams} for more
26
+ # details.
27
+ #
28
+ # @param id [String]
29
+ #
30
+ # @param locale [Array<String>] Returns only these locales, for example `?locale=fr&locale=de`. With no value, t
31
+ #
32
+ # @param request_options [Dodopayments::RequestOptions, Hash{Symbol=>Object}]
33
+ end
34
+ end
35
+ end
36
+ end
@@ -0,0 +1,53 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Dodopayments
4
+ module Models
5
+ module CreditEntitlements
6
+ # @see Dodopayments::Resources::CreditEntitlements::Translations#update
7
+ class TranslationUpdateParams < Dodopayments::Internal::Type::BaseModel
8
+ extend Dodopayments::Internal::Type::RequestParameters::Converter
9
+ include Dodopayments::Internal::Type::RequestParameters
10
+
11
+ # @!attribute id
12
+ #
13
+ # @return [String]
14
+ required :id, String
15
+
16
+ # @!attribute locale
17
+ # A locale that the checkout and the customer portal can show.
18
+ #
19
+ # The codes are a copy of the checkout locales. `GET /locales` lists them.
20
+ #
21
+ # @return [Symbol, Dodopayments::Models::Locale]
22
+ required :locale, enum: -> { Dodopayments::Locale }
23
+
24
+ # @!attribute name
25
+ # The translated name.
26
+ #
27
+ # @return [String, nil]
28
+ optional :name, String, nil?: true
29
+
30
+ # @!attribute unit
31
+ # The translated unit.
32
+ #
33
+ # @return [String, nil]
34
+ optional :unit, String, nil?: true
35
+
36
+ # @!method initialize(id:, locale:, name: nil, unit: nil, request_options: {})
37
+ # Some parameter documentations has been truncated, see
38
+ # {Dodopayments::Models::CreditEntitlements::TranslationUpdateParams} for more
39
+ # details.
40
+ #
41
+ # @param id [String]
42
+ #
43
+ # @param locale [Symbol, Dodopayments::Models::Locale] A locale that the checkout and the customer portal can show.
44
+ #
45
+ # @param name [String, nil] The translated name.
46
+ #
47
+ # @param unit [String, nil] The translated unit.
48
+ #
49
+ # @param request_options [Dodopayments::RequestOptions, Hash{Symbol=>Object}]
50
+ end
51
+ end
52
+ end
53
+ end
@@ -54,7 +54,13 @@ module Dodopayments
54
54
  # @return [String, nil]
55
55
  optional :phone_number, String, nil?: true
56
56
 
57
- # @!method initialize(business_id:, created_at:, customer_id:, email:, name:, blocked_at: nil, blocklist_entry_id: nil, metadata: nil, phone_number: nil)
57
+ # @!attribute preferred_locale
58
+ # The language of the customer emails. `null` gives English.
59
+ #
60
+ # @return [Symbol, Dodopayments::Models::Locale, nil]
61
+ optional :preferred_locale, enum: -> { Dodopayments::Locale }, nil?: true
62
+
63
+ # @!method initialize(business_id:, created_at:, customer_id:, email:, name:, blocked_at: nil, blocklist_entry_id: nil, metadata: nil, phone_number: nil, preferred_locale: nil)
58
64
  # Some parameter documentations has been truncated, see
59
65
  # {Dodopayments::Models::Customer} for more details.
60
66
  #
@@ -75,6 +81,8 @@ module Dodopayments
75
81
  # @param metadata [Hash{Symbol=>String, Float, Boolean}] Additional metadata for the customer
76
82
  #
77
83
  # @param phone_number [String, nil]
84
+ #
85
+ # @param preferred_locale [Symbol, Dodopayments::Models::Locale, nil] The language of the customer emails. `null` gives English.
78
86
  end
79
87
  end
80
88
  end
@@ -28,7 +28,18 @@ module Dodopayments
28
28
  # @return [String, nil]
29
29
  optional :phone_number, String, nil?: true
30
30
 
31
- # @!method initialize(email:, name:, metadata: nil, phone_number: nil, request_options: {})
31
+ # @!attribute preferred_locale
32
+ # The language of the customer emails, a code from `GET /locales`. With no value,
33
+ # the emails are in English until a checkout or the customer portal sets a
34
+ # language.
35
+ #
36
+ # @return [Symbol, Dodopayments::Models::Locale, nil]
37
+ optional :preferred_locale, enum: -> { Dodopayments::Locale }, nil?: true
38
+
39
+ # @!method initialize(email:, name:, metadata: nil, phone_number: nil, preferred_locale: nil, request_options: {})
40
+ # Some parameter documentations has been truncated, see
41
+ # {Dodopayments::Models::CustomerCreateParams} for more details.
42
+ #
32
43
  # @param email [String]
33
44
  #
34
45
  # @param name [String]
@@ -37,6 +48,8 @@ module Dodopayments
37
48
  #
38
49
  # @param phone_number [String, nil]
39
50
  #
51
+ # @param preferred_locale [Symbol, Dodopayments::Models::Locale, nil] The language of the customer emails, a code from `GET /locales`. With no value,
52
+ #
40
53
  # @param request_options [Dodopayments::RequestOptions, Hash{Symbol=>Object}]
41
54
  end
42
55
  end