@paddle/paddle-node-sdk 2.0.0-rc.0 → 2.0.0-rc.2

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 (304) hide show
  1. package/CHANGELOG.md +27 -7
  2. package/dist/cjs/entities/customer/auth-token.js +10 -0
  3. package/dist/cjs/entities/customer/index.js +1 -0
  4. package/dist/cjs/entities/index.js +5 -0
  5. package/dist/cjs/entities/notification-settings/notification-settings.js +1 -0
  6. package/dist/cjs/entities/payment-method/index.js +18 -0
  7. package/dist/cjs/entities/payment-method/payment-method-collection.js +11 -0
  8. package/dist/cjs/entities/payment-method/payment-method.js +18 -0
  9. package/dist/cjs/entities/shared/index.js +3 -0
  10. package/dist/cjs/entities/shared/paypal.js +10 -0
  11. package/dist/cjs/entities/shared/simulation-event-request.js +9 -0
  12. package/dist/cjs/entities/shared/simulation-event-response.js +10 -0
  13. package/dist/cjs/entities/simulation/index.js +18 -0
  14. package/dist/cjs/entities/simulation/simulation-collection.js +11 -0
  15. package/dist/cjs/entities/simulation/simulation.js +18 -0
  16. package/dist/cjs/entities/simulation-run/index.js +18 -0
  17. package/dist/cjs/entities/simulation-run/simulation-run-collection.js +11 -0
  18. package/dist/cjs/entities/simulation-run/simulation-run.js +16 -0
  19. package/dist/cjs/entities/simulation-run-event/index.js +18 -0
  20. package/dist/cjs/entities/simulation-run-event/simulation-run-event-collection.js +11 -0
  21. package/dist/cjs/entities/simulation-run-event/simulation-run-event.js +21 -0
  22. package/dist/cjs/entities/simulation-types/index.js +17 -0
  23. package/dist/cjs/entities/simulation-types/simulation-type.js +14 -0
  24. package/dist/cjs/enums/index.js +5 -0
  25. package/dist/cjs/enums/notification-settings/index.js +1 -0
  26. package/dist/cjs/enums/notification-settings/traffic-source.js +2 -0
  27. package/dist/cjs/enums/payment-method/deletion-reason.js +2 -0
  28. package/dist/cjs/enums/payment-method/index.js +19 -0
  29. package/dist/cjs/enums/payment-method/origin.js +2 -0
  30. package/dist/cjs/enums/payment-method/type.js +2 -0
  31. package/dist/cjs/enums/simulation/index.js +17 -0
  32. package/dist/cjs/enums/simulation/simulation-scenario-type.js +2 -0
  33. package/dist/cjs/enums/simulation-run/index.js +17 -0
  34. package/dist/cjs/enums/simulation-run/simulation-run-status.js +2 -0
  35. package/dist/cjs/enums/simulation-run-event/index.js +17 -0
  36. package/dist/cjs/enums/simulation-run-event/simulation-run-event-status.js +2 -0
  37. package/dist/cjs/enums/simulation-type/index.js +17 -0
  38. package/dist/cjs/enums/simulation-type/simulation-kind.js +2 -0
  39. package/dist/cjs/notifications/entities/index.js +1 -0
  40. package/dist/cjs/notifications/entities/payment-method/index.js +18 -0
  41. package/dist/cjs/notifications/entities/payment-method/payment-method-deleted-notification.js +16 -0
  42. package/dist/cjs/notifications/entities/payment-method/payment-method-notification.js +15 -0
  43. package/dist/cjs/notifications/entities/subscription/index.js +1 -0
  44. package/dist/cjs/notifications/entities/subscription/subscription-created-notification.js +42 -0
  45. package/dist/cjs/notifications/entities/subscription/subscription-notification.js +0 -1
  46. package/dist/cjs/notifications/events/index.js +1 -0
  47. package/dist/cjs/notifications/events/payment-method/index.js +18 -0
  48. package/dist/cjs/notifications/events/payment-method/payment-method-deleted-event.js +14 -0
  49. package/dist/cjs/notifications/events/payment-method/payment-method-saved-event.js +14 -0
  50. package/dist/cjs/notifications/events/subscription/subscription-created-event.js +1 -1
  51. package/dist/cjs/notifications/helpers/types.js +2 -0
  52. package/dist/cjs/notifications/helpers/webhooks.js +4 -0
  53. package/dist/cjs/notifications/types/index.js +1 -0
  54. package/dist/cjs/notifications/types/payment-method/index.js +18 -0
  55. package/dist/cjs/notifications/types/payment-method/payment-method-deleted-notification-response.js +2 -0
  56. package/dist/cjs/notifications/types/payment-method/payment-method-notification-response.js +2 -0
  57. package/dist/cjs/notifications/types/subscription/index.js +1 -0
  58. package/dist/cjs/notifications/types/subscription/subscription-created-notification-response.js +2 -0
  59. package/dist/cjs/paddle.js +5 -0
  60. package/dist/cjs/resources/customers/index.js +11 -0
  61. package/dist/cjs/resources/index.js +5 -0
  62. package/dist/cjs/resources/payment-methods/index.js +67 -0
  63. package/dist/cjs/resources/payment-methods/operations/index.js +17 -0
  64. package/dist/cjs/resources/payment-methods/operations/list-customer-payment-method-query-parameters.js +2 -0
  65. package/dist/cjs/resources/simulation-run-events/index.js +69 -0
  66. package/dist/cjs/resources/simulation-run-events/operations/index.js +17 -0
  67. package/dist/cjs/resources/simulation-run-events/operations/list-simulation-run-events-query-parameters.js +2 -0
  68. package/dist/cjs/resources/simulation-runs/index.js +66 -0
  69. package/dist/cjs/resources/simulation-runs/operations/get-simulation-run-query-parameters.js +2 -0
  70. package/dist/cjs/resources/simulation-runs/operations/index.js +18 -0
  71. package/dist/cjs/resources/simulation-runs/operations/list-simulation-run-query-parameters.js +2 -0
  72. package/dist/cjs/resources/simulation-types/index.js +27 -0
  73. package/dist/cjs/resources/simulations/index.js +69 -0
  74. package/dist/cjs/resources/simulations/operations/create-simulation-request-body.js +2 -0
  75. package/dist/cjs/resources/simulations/operations/index.js +19 -0
  76. package/dist/cjs/resources/simulations/operations/list-simulation-query-parameters.js +2 -0
  77. package/dist/cjs/resources/simulations/operations/update-simulation-request-body.js +2 -0
  78. package/dist/cjs/types/customer/auth-token-response.js +2 -0
  79. package/dist/cjs/types/customer/index.js +1 -0
  80. package/dist/cjs/types/index.js +5 -0
  81. package/dist/cjs/types/payment-method/index.js +17 -0
  82. package/dist/cjs/types/payment-method/payment-method.js +2 -0
  83. package/dist/cjs/types/shared/index.js +4 -0
  84. package/dist/cjs/types/shared/paypal.js +2 -0
  85. package/dist/cjs/types/shared/simulation-event-request.js +2 -0
  86. package/dist/cjs/types/shared/simulation-event-response.js +2 -0
  87. package/dist/cjs/types/shared/simulation-payload.js +2 -0
  88. package/dist/cjs/types/simulation/index.js +17 -0
  89. package/dist/cjs/types/simulation/simulation-response.js +2 -0
  90. package/dist/cjs/types/simulation-run/index.js +17 -0
  91. package/dist/cjs/types/simulation-run/simulation-run-event.js +2 -0
  92. package/dist/cjs/types/simulation-run/simulation-run-response.js +2 -0
  93. package/dist/cjs/types/simulation-run-event/index.js +17 -0
  94. package/dist/cjs/types/simulation-run-event/simulation-run-event-response.js +2 -0
  95. package/dist/cjs/types/simulation-type/index.js +17 -0
  96. package/dist/cjs/types/simulation-type/simulation-type.js +2 -0
  97. package/dist/cjs/version.js +1 -1
  98. package/dist/esm/entities/customer/auth-token.js +6 -0
  99. package/dist/esm/entities/customer/index.js +1 -0
  100. package/dist/esm/entities/index.js +5 -0
  101. package/dist/esm/entities/notification-settings/notification-settings.js +1 -0
  102. package/dist/esm/entities/payment-method/index.js +2 -0
  103. package/dist/esm/entities/payment-method/payment-method-collection.js +7 -0
  104. package/dist/esm/entities/payment-method/payment-method.js +14 -0
  105. package/dist/esm/entities/shared/index.js +3 -0
  106. package/dist/esm/entities/shared/paypal.js +6 -0
  107. package/dist/esm/entities/shared/simulation-event-request.js +5 -0
  108. package/dist/esm/entities/shared/simulation-event-response.js +6 -0
  109. package/dist/esm/entities/simulation/index.js +2 -0
  110. package/dist/esm/entities/simulation/simulation-collection.js +7 -0
  111. package/dist/esm/entities/simulation/simulation.js +14 -0
  112. package/dist/esm/entities/simulation-run/index.js +2 -0
  113. package/dist/esm/entities/simulation-run/simulation-run-collection.js +7 -0
  114. package/dist/esm/entities/simulation-run/simulation-run.js +12 -0
  115. package/dist/esm/entities/simulation-run-event/index.js +2 -0
  116. package/dist/esm/entities/simulation-run-event/simulation-run-event-collection.js +7 -0
  117. package/dist/esm/entities/simulation-run-event/simulation-run-event.js +17 -0
  118. package/dist/esm/entities/simulation-types/index.js +1 -0
  119. package/dist/esm/entities/simulation-types/simulation-type.js +10 -0
  120. package/dist/esm/enums/index.js +5 -0
  121. package/dist/esm/enums/notification-settings/index.js +1 -0
  122. package/dist/esm/enums/notification-settings/traffic-source.js +1 -0
  123. package/dist/esm/enums/payment-method/deletion-reason.js +1 -0
  124. package/dist/esm/enums/payment-method/index.js +3 -0
  125. package/dist/esm/enums/payment-method/origin.js +1 -0
  126. package/dist/esm/enums/payment-method/type.js +1 -0
  127. package/dist/esm/enums/simulation/index.js +1 -0
  128. package/dist/esm/enums/simulation/simulation-scenario-type.js +1 -0
  129. package/dist/esm/enums/simulation-run/index.js +1 -0
  130. package/dist/esm/enums/simulation-run/simulation-run-status.js +1 -0
  131. package/dist/esm/enums/simulation-run-event/index.js +1 -0
  132. package/dist/esm/enums/simulation-run-event/simulation-run-event-status.js +1 -0
  133. package/dist/esm/enums/simulation-type/index.js +1 -0
  134. package/dist/esm/enums/simulation-type/simulation-kind.js +1 -0
  135. package/dist/esm/notifications/entities/index.js +1 -0
  136. package/dist/esm/notifications/entities/payment-method/index.js +2 -0
  137. package/dist/esm/notifications/entities/payment-method/payment-method-deleted-notification.js +12 -0
  138. package/dist/esm/notifications/entities/payment-method/payment-method-notification.js +11 -0
  139. package/dist/esm/notifications/entities/subscription/index.js +1 -0
  140. package/dist/esm/notifications/entities/subscription/subscription-created-notification.js +38 -0
  141. package/dist/esm/notifications/entities/subscription/subscription-notification.js +0 -1
  142. package/dist/esm/notifications/events/index.js +1 -0
  143. package/dist/esm/notifications/events/payment-method/index.js +2 -0
  144. package/dist/esm/notifications/events/payment-method/payment-method-deleted-event.js +10 -0
  145. package/dist/esm/notifications/events/payment-method/payment-method-saved-event.js +10 -0
  146. package/dist/esm/notifications/events/subscription/subscription-created-event.js +2 -2
  147. package/dist/esm/notifications/helpers/types.js +2 -0
  148. package/dist/esm/notifications/helpers/webhooks.js +5 -1
  149. package/dist/esm/notifications/types/index.js +1 -0
  150. package/dist/esm/notifications/types/payment-method/index.js +2 -0
  151. package/dist/esm/notifications/types/payment-method/payment-method-deleted-notification-response.js +1 -0
  152. package/dist/esm/notifications/types/payment-method/payment-method-notification-response.js +1 -0
  153. package/dist/esm/notifications/types/subscription/index.js +1 -0
  154. package/dist/esm/notifications/types/subscription/subscription-created-notification-response.js +1 -0
  155. package/dist/esm/paddle.js +6 -1
  156. package/dist/esm/resources/customers/index.js +12 -1
  157. package/dist/esm/resources/index.js +5 -0
  158. package/dist/esm/resources/payment-methods/index.js +49 -0
  159. package/dist/esm/resources/payment-methods/operations/index.js +1 -0
  160. package/dist/esm/resources/payment-methods/operations/list-customer-payment-method-query-parameters.js +1 -0
  161. package/dist/esm/resources/simulation-run-events/index.js +51 -0
  162. package/dist/esm/resources/simulation-run-events/operations/index.js +1 -0
  163. package/dist/esm/resources/simulation-run-events/operations/list-simulation-run-events-query-parameters.js +1 -0
  164. package/dist/esm/resources/simulation-runs/index.js +48 -0
  165. package/dist/esm/resources/simulation-runs/operations/get-simulation-run-query-parameters.js +1 -0
  166. package/dist/esm/resources/simulation-runs/operations/index.js +2 -0
  167. package/dist/esm/resources/simulation-runs/operations/list-simulation-run-query-parameters.js +1 -0
  168. package/dist/esm/resources/simulation-types/index.js +23 -0
  169. package/dist/esm/resources/simulations/index.js +51 -0
  170. package/dist/esm/resources/simulations/operations/create-simulation-request-body.js +1 -0
  171. package/dist/esm/resources/simulations/operations/index.js +3 -0
  172. package/dist/esm/resources/simulations/operations/list-simulation-query-parameters.js +1 -0
  173. package/dist/esm/resources/simulations/operations/update-simulation-request-body.js +1 -0
  174. package/dist/esm/types/customer/auth-token-response.js +1 -0
  175. package/dist/esm/types/customer/index.js +1 -0
  176. package/dist/esm/types/index.js +5 -0
  177. package/dist/esm/types/payment-method/index.js +1 -0
  178. package/dist/esm/types/payment-method/payment-method.js +1 -0
  179. package/dist/esm/types/shared/index.js +4 -0
  180. package/dist/esm/types/shared/paypal.js +1 -0
  181. package/dist/esm/types/shared/simulation-event-request.js +1 -0
  182. package/dist/esm/types/shared/simulation-event-response.js +1 -0
  183. package/dist/esm/types/shared/simulation-payload.js +1 -0
  184. package/dist/esm/types/simulation/index.js +1 -0
  185. package/dist/esm/types/simulation/simulation-response.js +1 -0
  186. package/dist/esm/types/simulation-run/index.js +1 -0
  187. package/dist/esm/types/simulation-run/simulation-run-event.js +1 -0
  188. package/dist/esm/types/simulation-run/simulation-run-response.js +1 -0
  189. package/dist/esm/types/simulation-run-event/index.js +1 -0
  190. package/dist/esm/types/simulation-run-event/simulation-run-event-response.js +1 -0
  191. package/dist/esm/types/simulation-type/index.js +1 -0
  192. package/dist/esm/types/simulation-type/simulation-type.js +1 -0
  193. package/dist/esm/version.js +1 -1
  194. package/dist/types/entities/customer/auth-token.d.ts +6 -0
  195. package/dist/types/entities/customer/index.d.ts +1 -0
  196. package/dist/types/entities/index.d.ts +5 -0
  197. package/dist/types/entities/notification-settings/notification-settings.d.ts +2 -1
  198. package/dist/types/entities/payment-method/index.d.ts +2 -0
  199. package/dist/types/entities/payment-method/payment-method-collection.d.ts +6 -0
  200. package/dist/types/entities/payment-method/payment-method.d.ts +15 -0
  201. package/dist/types/entities/shared/index.d.ts +3 -0
  202. package/dist/types/entities/shared/paypal.d.ts +6 -0
  203. package/dist/types/entities/shared/simulation-event-request.d.ts +5 -0
  204. package/dist/types/entities/shared/simulation-event-response.d.ts +6 -0
  205. package/dist/types/entities/simulation/index.d.ts +2 -0
  206. package/dist/types/entities/simulation/simulation-collection.d.ts +6 -0
  207. package/dist/types/entities/simulation/simulation.d.ts +15 -0
  208. package/dist/types/entities/simulation-run/index.d.ts +2 -0
  209. package/dist/types/entities/simulation-run/simulation-run-collection.d.ts +6 -0
  210. package/dist/types/entities/simulation-run/simulation-run.d.ts +13 -0
  211. package/dist/types/entities/simulation-run-event/index.d.ts +2 -0
  212. package/dist/types/entities/simulation-run-event/simulation-run-event-collection.d.ts +6 -0
  213. package/dist/types/entities/simulation-run-event/simulation-run-event.d.ts +15 -0
  214. package/dist/types/entities/simulation-types/index.d.ts +1 -0
  215. package/dist/types/entities/simulation-types/simulation-type.d.ts +12 -0
  216. package/dist/types/enums/index.d.ts +5 -0
  217. package/dist/types/enums/notification-settings/index.d.ts +1 -0
  218. package/dist/types/enums/notification-settings/traffic-source.d.ts +1 -0
  219. package/dist/types/enums/payment-method/deletion-reason.d.ts +1 -0
  220. package/dist/types/enums/payment-method/index.d.ts +3 -0
  221. package/dist/types/enums/payment-method/origin.d.ts +1 -0
  222. package/dist/types/enums/payment-method/type.d.ts +1 -0
  223. package/dist/types/enums/simulation/index.d.ts +1 -0
  224. package/dist/types/enums/simulation/simulation-scenario-type.d.ts +1 -0
  225. package/dist/types/enums/simulation-run/index.d.ts +1 -0
  226. package/dist/types/enums/simulation-run/simulation-run-status.d.ts +1 -0
  227. package/dist/types/enums/simulation-run-event/index.d.ts +1 -0
  228. package/dist/types/enums/simulation-run-event/simulation-run-event-status.d.ts +1 -0
  229. package/dist/types/enums/simulation-type/index.d.ts +1 -0
  230. package/dist/types/enums/simulation-type/simulation-kind.d.ts +1 -0
  231. package/dist/types/notifications/entities/index.d.ts +1 -0
  232. package/dist/types/notifications/entities/payment-method/index.d.ts +2 -0
  233. package/dist/types/notifications/entities/payment-method/payment-method-deleted-notification.d.ts +13 -0
  234. package/dist/types/notifications/entities/payment-method/payment-method-notification.d.ts +12 -0
  235. package/dist/types/notifications/entities/subscription/index.d.ts +1 -0
  236. package/dist/types/notifications/entities/subscription/subscription-created-notification.d.ts +34 -0
  237. package/dist/types/notifications/entities/subscription/subscription-notification.d.ts +0 -1
  238. package/dist/types/notifications/events/index.d.ts +1 -0
  239. package/dist/types/notifications/events/payment-method/index.d.ts +2 -0
  240. package/dist/types/notifications/events/payment-method/payment-method-deleted-event.d.ts +10 -0
  241. package/dist/types/notifications/events/payment-method/payment-method-saved-event.d.ts +10 -0
  242. package/dist/types/notifications/events/subscription/subscription-activated-event.d.ts +1 -1
  243. package/dist/types/notifications/events/subscription/subscription-canceled-event.d.ts +1 -1
  244. package/dist/types/notifications/events/subscription/subscription-created-event.d.ts +4 -4
  245. package/dist/types/notifications/events/subscription/subscription-imported-event.d.ts +1 -1
  246. package/dist/types/notifications/events/subscription/subscription-past-due-event.d.ts +1 -1
  247. package/dist/types/notifications/events/subscription/subscription-paused-event.d.ts +1 -1
  248. package/dist/types/notifications/events/subscription/subscription-resumed-event.d.ts +1 -1
  249. package/dist/types/notifications/events/subscription/subscription-trialing-event.d.ts +1 -1
  250. package/dist/types/notifications/events/subscription/subscription-updated-event.d.ts +1 -1
  251. package/dist/types/notifications/helpers/types.d.ts +5 -3
  252. package/dist/types/notifications/types/index.d.ts +1 -0
  253. package/dist/types/notifications/types/payment-method/index.d.ts +2 -0
  254. package/dist/types/notifications/types/payment-method/payment-method-deleted-notification-response.d.ts +11 -0
  255. package/dist/types/notifications/types/payment-method/payment-method-notification-response.d.ts +10 -0
  256. package/dist/types/notifications/types/subscription/index.d.ts +1 -0
  257. package/dist/types/notifications/types/subscription/subscription-created-notification-response.d.ts +28 -0
  258. package/dist/types/notifications/types/subscription/subscription-notification-response.d.ts +0 -1
  259. package/dist/types/paddle.d.ts +6 -1
  260. package/dist/types/resources/customers/index.d.ts +2 -1
  261. package/dist/types/resources/index.d.ts +5 -0
  262. package/dist/types/resources/notification-settings/operations/create-notification-settings-request-body.d.ts +2 -1
  263. package/dist/types/resources/notification-settings/operations/list-notification-settings-query-parameters.d.ts +2 -0
  264. package/dist/types/resources/notification-settings/operations/update-notification-settings-request-body.d.ts +2 -0
  265. package/dist/types/resources/payment-methods/index.d.ts +9 -0
  266. package/dist/types/resources/payment-methods/operations/index.d.ts +1 -0
  267. package/dist/types/resources/payment-methods/operations/list-customer-payment-method-query-parameters.d.ts +7 -0
  268. package/dist/types/resources/simulation-run-events/index.d.ts +9 -0
  269. package/dist/types/resources/simulation-run-events/operations/index.d.ts +1 -0
  270. package/dist/types/resources/simulation-run-events/operations/list-simulation-run-events-query-parameters.d.ts +6 -0
  271. package/dist/types/resources/simulation-runs/index.d.ts +9 -0
  272. package/dist/types/resources/simulation-runs/operations/get-simulation-run-query-parameters.d.ts +3 -0
  273. package/dist/types/resources/simulation-runs/operations/index.d.ts +2 -0
  274. package/dist/types/resources/simulation-runs/operations/list-simulation-run-query-parameters.d.ts +7 -0
  275. package/dist/types/resources/simulation-types/index.d.ts +5 -0
  276. package/dist/types/resources/simulations/index.d.ts +10 -0
  277. package/dist/types/resources/simulations/operations/create-simulation-request-body.d.ts +10 -0
  278. package/dist/types/resources/simulations/operations/index.d.ts +3 -0
  279. package/dist/types/resources/simulations/operations/list-simulation-query-parameters.d.ts +9 -0
  280. package/dist/types/resources/simulations/operations/update-simulation-request-body.d.ts +12 -0
  281. package/dist/types/types/customer/auth-token-response.d.ts +4 -0
  282. package/dist/types/types/customer/index.d.ts +1 -0
  283. package/dist/types/types/events/events-response.d.ts +9 -3
  284. package/dist/types/types/index.d.ts +5 -0
  285. package/dist/types/types/notification-settings/notification-settings-response.d.ts +2 -1
  286. package/dist/types/types/payment-method/index.d.ts +1 -0
  287. package/dist/types/types/payment-method/payment-method.d.ts +13 -0
  288. package/dist/types/types/shared/index.d.ts +4 -0
  289. package/dist/types/types/shared/paypal.d.ts +4 -0
  290. package/dist/types/types/shared/simulation-event-request.d.ts +3 -0
  291. package/dist/types/types/shared/simulation-event-response.d.ts +4 -0
  292. package/dist/types/types/shared/simulation-payload.d.ts +58 -0
  293. package/dist/types/types/simulation/index.d.ts +1 -0
  294. package/dist/types/types/simulation/simulation-response.d.ts +13 -0
  295. package/dist/types/types/simulation-run/index.d.ts +1 -0
  296. package/dist/types/types/simulation-run/simulation-run-event.d.ts +17 -0
  297. package/dist/types/types/simulation-run/simulation-run-response.d.ts +11 -0
  298. package/dist/types/types/simulation-run-event/index.d.ts +1 -0
  299. package/dist/types/types/simulation-run-event/simulation-run-event-response.d.ts +13 -0
  300. package/dist/types/types/simulation-type/index.d.ts +1 -0
  301. package/dist/types/types/simulation-type/simulation-type.d.ts +10 -0
  302. package/dist/types/types/subscription/subscription-update-item.d.ts +1 -1
  303. package/dist/types/version.d.ts +1 -1
  304. package/package.json +1 -1
@@ -9,9 +9,14 @@ export * from './subscription/index.js';
9
9
  export * from './address/index.js';
10
10
  export * from './discount/index.js';
11
11
  export * from './events/index.js';
12
+ export * from './payment-method/index.js';
12
13
  export * from './payout/index.js';
13
14
  export * from './event-types/index.js';
14
15
  export * from './notification-settings/index.js';
15
16
  export * from './notifications/index.js';
16
17
  export * from './report/index.js';
18
+ export * from './simulation-types/index.js';
19
+ export * from './simulation/index.js';
20
+ export * from './simulation-run/index.js';
21
+ export * from './simulation-run-event/index.js';
17
22
  export type CustomData = object;
@@ -1,4 +1,4 @@
1
- import { type NotificationSettingsType } from '../../enums/index.js';
1
+ import { type TrafficSource, type NotificationSettingsType } from '../../enums/index.js';
2
2
  import { EventType } from '../event-types/index.js';
3
3
  import { type INotificationSettingsResponse } from '../../types/index.js';
4
4
  export declare class NotificationSettings {
@@ -9,6 +9,7 @@ export declare class NotificationSettings {
9
9
  readonly active: boolean;
10
10
  readonly apiVersion: number;
11
11
  readonly includeSensitiveFields: boolean;
12
+ readonly trafficSource: TrafficSource;
12
13
  readonly subscribedEvents: EventType[];
13
14
  readonly endpointSecretKey: string;
14
15
  constructor(notificationSettings: INotificationSettingsResponse);
@@ -0,0 +1,2 @@
1
+ export * from './payment-method.js';
2
+ export * from './payment-method-collection.js';
@@ -0,0 +1,6 @@
1
+ import { PaymentMethod } from '../../entities/index.js';
2
+ import { type IPaymentMethodResponse } from '../../types/index.js';
3
+ import { Collection } from '../../internal/base/index.js';
4
+ export declare class PaymentMethodCollection extends Collection<IPaymentMethodResponse, PaymentMethod> {
5
+ fromJson(data: IPaymentMethodResponse): PaymentMethod;
6
+ }
@@ -0,0 +1,15 @@
1
+ import type { SavedPaymentMethodType, SavedPaymentOrigin } from '../../enums/index.js';
2
+ import type { IPaymentMethodResponse } from '../../types/index.js';
3
+ import { PaymentCard, PayPal } from '../shared/index.js';
4
+ export declare class PaymentMethod {
5
+ readonly id: string;
6
+ readonly customerId: string;
7
+ readonly addressId: string;
8
+ readonly type: SavedPaymentMethodType;
9
+ readonly card: PaymentCard | null;
10
+ readonly paypal: PayPal | null;
11
+ readonly origin: SavedPaymentOrigin;
12
+ readonly savedAt: string;
13
+ readonly updatedAt: string;
14
+ constructor(paymentMethodResponse: IPaymentMethodResponse);
15
+ }
@@ -11,6 +11,7 @@ export * from './adjustment-original-amount.js';
11
11
  export * from './chargeback-fee.js';
12
12
  export * from './transaction-payout-totals-adjusted.js';
13
13
  export * from './unit-totals.js';
14
+ export * from './paypal.js';
14
15
  export * from './payment-card.js';
15
16
  export * from './payment-method-details.js';
16
17
  export * from './transaction-payment-attempt.js';
@@ -18,3 +19,5 @@ export * from './transaction-checkout.js';
18
19
  export * from './total-adjustments.js';
19
20
  export * from './payout-totals-adjustment.js';
20
21
  export * from './import-meta.js';
22
+ export * from './simulation-event-request.js';
23
+ export * from './simulation-event-response.js';
@@ -0,0 +1,6 @@
1
+ import { type IPayPalResponse } from '../../types/index.js';
2
+ export declare class PayPal {
3
+ readonly email: string;
4
+ readonly reference: string;
5
+ constructor(payPalResponse: IPayPalResponse);
6
+ }
@@ -0,0 +1,5 @@
1
+ import { type ISimulationEventRequest } from '../../types/index.js';
2
+ export declare class SimulationEventRequest {
3
+ readonly body: string;
4
+ constructor(simulationEventRequestResponse: ISimulationEventRequest);
5
+ }
@@ -0,0 +1,6 @@
1
+ import { type ISimulationEventResponse } from '../../types/index.js';
2
+ export declare class SimulationEventResponse {
3
+ readonly body: string;
4
+ readonly statusCode: number;
5
+ constructor(simulationEventResponse: ISimulationEventResponse);
6
+ }
@@ -0,0 +1,2 @@
1
+ export * from './simulation.js';
2
+ export * from './simulation-collection.js';
@@ -0,0 +1,6 @@
1
+ import { Simulation } from '../../entities/index.js';
2
+ import { type ISimulationResponse } from '../../types/index.js';
3
+ import { Collection } from '../../internal/base/index.js';
4
+ export declare class SimulationCollection extends Collection<ISimulationResponse, Simulation> {
5
+ fromJson(data: ISimulationResponse): Simulation;
6
+ }
@@ -0,0 +1,15 @@
1
+ import { type ISimulationResponse } from '../../types/index.js';
2
+ import type { SimulationScenarioType, Status } from '../../enums/index.js';
3
+ import type { IEventName } from '../../notifications/index.js';
4
+ export declare class Simulation {
5
+ readonly id: string;
6
+ readonly status: Status;
7
+ readonly notificationSettingId: string;
8
+ readonly name: string;
9
+ readonly type: IEventName | SimulationScenarioType;
10
+ readonly payload: any;
11
+ readonly lastRunAt: string | null;
12
+ readonly createdAt: string;
13
+ readonly updatedAt: string;
14
+ constructor(simulationResponse: ISimulationResponse);
15
+ }
@@ -0,0 +1,2 @@
1
+ export * from './simulation-run.js';
2
+ export * from './simulation-run-collection.js';
@@ -0,0 +1,6 @@
1
+ import { SimulationRun } from '../../entities/index.js';
2
+ import { type ISimulationRunResponse } from '../../types/index.js';
3
+ import { Collection } from '../../internal/base/index.js';
4
+ export declare class SimulationRunCollection extends Collection<ISimulationRunResponse, SimulationRun> {
5
+ fromJson(data: ISimulationRunResponse): SimulationRun;
6
+ }
@@ -0,0 +1,13 @@
1
+ import type { SimulationRunStatus, SimulationScenarioType } from '../../enums/index.js';
2
+ import type { IEventName } from '../../notifications/index.js';
3
+ import type { ISimulationRunResponse } from '../../types/index.js';
4
+ import { SimulationRunEvent } from '../index.js';
5
+ export declare class SimulationRun {
6
+ readonly id: string;
7
+ readonly status: SimulationRunStatus;
8
+ readonly createdAt: string;
9
+ readonly updatedAt: string;
10
+ readonly type: IEventName | SimulationScenarioType;
11
+ readonly events: SimulationRunEvent[] | null;
12
+ constructor(simulationRunResponse: ISimulationRunResponse);
13
+ }
@@ -0,0 +1,2 @@
1
+ export * from './simulation-run-event.js';
2
+ export * from './simulation-run-event-collection.js';
@@ -0,0 +1,6 @@
1
+ import { SimulationRunEvent } from '../../entities/index.js';
2
+ import { type ISimulationRunEventResponse } from '../../types/index.js';
3
+ import { Collection } from '../../internal/base/index.js';
4
+ export declare class SimulationRunEventCollection extends Collection<ISimulationRunEventResponse, SimulationRunEvent> {
5
+ fromJson(data: ISimulationRunEventResponse): SimulationRunEvent;
6
+ }
@@ -0,0 +1,15 @@
1
+ import type { SimulationRunEventStatus, SimulationScenarioType } from '../../enums/index.js';
2
+ import type { IEventName } from '../../notifications/index.js';
3
+ import { type ISimulationRunEventResponse } from '../../types/index.js';
4
+ import { SimulationEventRequest, SimulationEventResponse } from '../shared/index.js';
5
+ export declare class SimulationRunEvent {
6
+ readonly id: string;
7
+ readonly status: SimulationRunEventStatus;
8
+ readonly eventType: IEventName | SimulationScenarioType;
9
+ readonly payload: any;
10
+ readonly request: SimulationEventRequest | null;
11
+ readonly response: SimulationEventResponse | null;
12
+ readonly createdAt: string;
13
+ readonly updatedAt: string;
14
+ constructor(simulationRunEventResponse: ISimulationRunEventResponse);
15
+ }
@@ -0,0 +1 @@
1
+ export * from './simulation-type.js';
@@ -0,0 +1,12 @@
1
+ import { type SimulationKind } from '../../enums/index.js';
2
+ import { type IEventName } from '../../notifications/index.js';
3
+ import { type ISimulationTypeResponse } from '../../types/index.js';
4
+ export declare class SimulationType {
5
+ readonly name: string;
6
+ readonly label: string;
7
+ readonly description: string;
8
+ readonly group: string;
9
+ readonly type: SimulationKind;
10
+ readonly events: IEventName[];
11
+ constructor(simulationTypeResponse: ISimulationTypeResponse);
12
+ }
@@ -3,7 +3,12 @@ export * from './subscription/index.js';
3
3
  export * from './discount/index.js';
4
4
  export * from './adjustment/index.js';
5
5
  export * from './transaction/index.js';
6
+ export * from './payment-method/index.js';
6
7
  export * from './payout/index.js';
7
8
  export * from './notification-settings/index.js';
8
9
  export * from './notification/index.js';
9
10
  export * from './report/index.js';
11
+ export * from './simulation-type/index.js';
12
+ export * from './simulation/index.js';
13
+ export * from './simulation-run/index.js';
14
+ export * from './simulation-run-event/index.js';
@@ -1 +1,2 @@
1
1
  export * from './notification-settings-type.js';
2
+ export * from './traffic-source.js';
@@ -0,0 +1 @@
1
+ export type TrafficSource = 'platform' | 'simulation' | 'all';
@@ -0,0 +1 @@
1
+ export type SavedPaymentDeletionReason = 'replaced_by_newer_version' | 'api';
@@ -0,0 +1,3 @@
1
+ export * from './deletion-reason.js';
2
+ export * from './type.js';
3
+ export * from './origin.js';
@@ -0,0 +1 @@
1
+ export type SavedPaymentOrigin = 'saved_during_purchase' | 'subscription';
@@ -0,0 +1 @@
1
+ export type SavedPaymentMethodType = 'alipay' | 'apple_pay' | 'card' | 'google_pay' | 'korea_local' | 'paypal';
@@ -0,0 +1 @@
1
+ export * from './simulation-scenario-type.js';
@@ -0,0 +1 @@
1
+ export type SimulationScenarioType = 'subscription_creation' | 'subscription_renewal' | 'subscription_pause' | 'subscription_resume' | 'subscription_cancellation';
@@ -0,0 +1 @@
1
+ export * from './simulation-run-status.js';
@@ -0,0 +1 @@
1
+ export type SimulationRunStatus = 'pending' | 'completed' | 'canceled';
@@ -0,0 +1 @@
1
+ export * from './simulation-run-event-status.js';
@@ -0,0 +1 @@
1
+ export type SimulationRunEventStatus = 'pending' | 'success' | 'failed' | 'aborted';
@@ -0,0 +1 @@
1
+ export * from './simulation-kind.js';
@@ -0,0 +1 @@
1
+ export type SimulationKind = 'single_event' | 'scenario';
@@ -7,6 +7,7 @@ export * from './business/index.js';
7
7
  export * from './subscription/index.js';
8
8
  export * from './address/index.js';
9
9
  export * from './discount/index.js';
10
+ export * from './payment-method/index.js';
10
11
  export * from './payout/index.js';
11
12
  export * from './report/index.js';
12
13
  export * from './shared/index.js';
@@ -0,0 +1,2 @@
1
+ export * from './payment-method-deleted-notification.js';
2
+ export * from './payment-method-notification.js';
@@ -0,0 +1,13 @@
1
+ import { type IPaymentMethodDeletedNotificationResponse } from '../../types/index.js';
2
+ import { type SavedPaymentMethodType, type SavedPaymentOrigin, type SavedPaymentDeletionReason } from '../../../enums/index.js';
3
+ export declare class PaymentMethodDeletedNotification {
4
+ readonly id: string;
5
+ readonly customerId: string;
6
+ readonly addressId: string;
7
+ readonly deletionReason: SavedPaymentDeletionReason;
8
+ readonly type: SavedPaymentMethodType;
9
+ readonly origin: SavedPaymentOrigin;
10
+ readonly savedAt: string;
11
+ readonly updatedAt: string;
12
+ constructor(paymentMethod: IPaymentMethodDeletedNotificationResponse);
13
+ }
@@ -0,0 +1,12 @@
1
+ import { type SavedPaymentMethodType, type SavedPaymentOrigin } from '../../../enums/index.js';
2
+ import { type IPaymentMethodNotificationResponse } from '../../types/index.js';
3
+ export declare class PaymentMethodNotification {
4
+ readonly id: string;
5
+ readonly customerId: string;
6
+ readonly addressId: string;
7
+ readonly type: SavedPaymentMethodType;
8
+ readonly origin: SavedPaymentOrigin;
9
+ readonly savedAt: string;
10
+ readonly updatedAt: string;
11
+ constructor(paymentMethod: IPaymentMethodNotificationResponse);
12
+ }
@@ -1,3 +1,4 @@
1
+ export * from './subscription-created-notification.js';
1
2
  export * from './subscription-discount-notification.js';
2
3
  export * from './subscription-time-period-notification.js';
3
4
  export * from './subscription-scheduled-change-notification.js';
@@ -0,0 +1,34 @@
1
+ import { type CustomData } from '../../../entities/index.js';
2
+ import { type CollectionMode, type CurrencyCode, type SubscriptionStatus } from '../../../enums/index.js';
3
+ import { type ISubscriptionCreatedNotificationResponse } from '../../types/index.js';
4
+ import { BillingDetailsNotification, ImportMetaNotification, TimePeriodNotification } from '../shared/index.js';
5
+ import { SubscriptionDiscountNotification } from './subscription-discount-notification.js';
6
+ import { SubscriptionItemNotification } from './subscription-item-notification.js';
7
+ import { SubscriptionScheduledChangeNotification } from './subscription-scheduled-change-notification.js';
8
+ import { SubscriptionTimePeriodNotification } from './subscription-time-period-notification.js';
9
+ export declare class SubscriptionCreatedNotification {
10
+ readonly id: string;
11
+ readonly status: SubscriptionStatus;
12
+ readonly transactionId: string;
13
+ readonly customerId: string;
14
+ readonly addressId: string;
15
+ readonly businessId: string | null;
16
+ readonly currencyCode: CurrencyCode;
17
+ readonly createdAt: string;
18
+ readonly updatedAt: string;
19
+ readonly startedAt: string | null;
20
+ readonly firstBilledAt: string | null;
21
+ readonly nextBilledAt: string | null;
22
+ readonly pausedAt: string | null;
23
+ readonly canceledAt: string | null;
24
+ readonly discount: SubscriptionDiscountNotification | null;
25
+ readonly collectionMode: CollectionMode;
26
+ readonly billingDetails: BillingDetailsNotification | null;
27
+ readonly currentBillingPeriod: SubscriptionTimePeriodNotification | null;
28
+ readonly billingCycle: TimePeriodNotification;
29
+ readonly scheduledChange: SubscriptionScheduledChangeNotification | null;
30
+ readonly items: SubscriptionItemNotification[];
31
+ readonly customData: CustomData | null;
32
+ readonly importMeta: ImportMetaNotification | null;
33
+ constructor(subscription: ISubscriptionCreatedNotificationResponse);
34
+ }
@@ -9,7 +9,6 @@ import { type ISubscriptionNotificationResponse } from '../../types/index.js';
9
9
  export declare class SubscriptionNotification {
10
10
  readonly id: string;
11
11
  readonly status: SubscriptionStatus;
12
- readonly transactionId: string | null;
13
12
  readonly customerId: string;
14
13
  readonly addressId: string;
15
14
  readonly businessId: string | null;
@@ -3,6 +3,7 @@ export * from './adjustment/index.js';
3
3
  export * from './business/index.js';
4
4
  export * from './customer/index.js';
5
5
  export * from './discount/index.js';
6
+ export * from './payment-method/index.js';
6
7
  export * from './payout/index.js';
7
8
  export * from './price/index.js';
8
9
  export * from './product/index.js';
@@ -0,0 +1,2 @@
1
+ export * from './payment-method-deleted-event.js';
2
+ export * from './payment-method-saved-event.js';
@@ -0,0 +1,10 @@
1
+ import { Event } from '../../../entities/events/event.js';
2
+ import { PaymentMethodDeletedNotification } from '../../entities/index.js';
3
+ import { EventName } from '../../helpers/index.js';
4
+ import { type IEventsResponse } from '../../../types/index.js';
5
+ import { type IPaymentMethodDeletedNotificationResponse } from '../../types/index.js';
6
+ export declare class PaymentMethodDeletedEvent extends Event {
7
+ readonly eventType = EventName.PaymentMethodDeleted;
8
+ readonly data: PaymentMethodDeletedNotification;
9
+ constructor(response: IEventsResponse<IPaymentMethodDeletedNotificationResponse>);
10
+ }
@@ -0,0 +1,10 @@
1
+ import { Event } from '../../../entities/events/event.js';
2
+ import { PaymentMethodNotification } from '../../entities/index.js';
3
+ import { EventName } from '../../helpers/index.js';
4
+ import { type IEventsResponse } from '../../../types/index.js';
5
+ import { type IPaymentMethodNotificationResponse } from '../../types/index.js';
6
+ export declare class PaymentMethodSavedEvent extends Event {
7
+ readonly eventType = EventName.PaymentMethodSaved;
8
+ readonly data: PaymentMethodNotification;
9
+ constructor(response: IEventsResponse<IPaymentMethodNotificationResponse>);
10
+ }
@@ -5,6 +5,6 @@ import { type IEventsResponse } from '../../../types/index.js';
5
5
  import { type ISubscriptionNotificationResponse } from '../../types/index.js';
6
6
  export declare class SubscriptionActivatedEvent extends Event {
7
7
  readonly eventType = EventName.SubscriptionActivated;
8
- readonly data: Omit<SubscriptionNotification, 'transactionId'>;
8
+ readonly data: SubscriptionNotification;
9
9
  constructor(response: IEventsResponse<ISubscriptionNotificationResponse>);
10
10
  }
@@ -5,6 +5,6 @@ import { type IEventsResponse } from '../../../types/index.js';
5
5
  import { type ISubscriptionNotificationResponse } from '../../types/index.js';
6
6
  export declare class SubscriptionCanceledEvent extends Event {
7
7
  readonly eventType = EventName.SubscriptionCanceled;
8
- readonly data: Omit<SubscriptionNotification, 'transactionId'>;
8
+ readonly data: SubscriptionNotification;
9
9
  constructor(response: IEventsResponse<ISubscriptionNotificationResponse>);
10
10
  }
@@ -1,10 +1,10 @@
1
1
  import { Event } from '../../../entities/events/event.js';
2
2
  import { EventName } from '../../helpers/index.js';
3
- import { SubscriptionNotification } from '../../entities/index.js';
3
+ import { SubscriptionCreatedNotification } from '../../entities/index.js';
4
4
  import { type IEventsResponse } from '../../../types/index.js';
5
- import { type ISubscriptionNotificationResponse } from '../../types/index.js';
5
+ import { type ISubscriptionCreatedNotificationResponse } from '../../types/index.js';
6
6
  export declare class SubscriptionCreatedEvent extends Event {
7
7
  readonly eventType = EventName.SubscriptionCreated;
8
- readonly data: SubscriptionNotification;
9
- constructor(response: IEventsResponse<ISubscriptionNotificationResponse>);
8
+ readonly data: SubscriptionCreatedNotification;
9
+ constructor(response: IEventsResponse<ISubscriptionCreatedNotificationResponse>);
10
10
  }
@@ -5,6 +5,6 @@ import { type IEventsResponse } from '../../../types/index.js';
5
5
  import { type ISubscriptionNotificationResponse } from '../../types/index.js';
6
6
  export declare class SubscriptionImportedEvent extends Event {
7
7
  readonly eventType = EventName.SubscriptionImported;
8
- readonly data: Omit<SubscriptionNotification, 'transactionId'>;
8
+ readonly data: SubscriptionNotification;
9
9
  constructor(response: IEventsResponse<ISubscriptionNotificationResponse>);
10
10
  }
@@ -5,6 +5,6 @@ import { type IEventsResponse } from '../../../types/index.js';
5
5
  import { type ISubscriptionNotificationResponse } from '../../types/index.js';
6
6
  export declare class SubscriptionPastDueEvent extends Event {
7
7
  readonly eventType = EventName.SubscriptionPastDue;
8
- readonly data: Omit<SubscriptionNotification, 'transactionId'>;
8
+ readonly data: SubscriptionNotification;
9
9
  constructor(response: IEventsResponse<ISubscriptionNotificationResponse>);
10
10
  }
@@ -5,6 +5,6 @@ import { type IEventsResponse } from '../../../types/index.js';
5
5
  import { type ISubscriptionNotificationResponse } from '../../types/index.js';
6
6
  export declare class SubscriptionPausedEvent extends Event {
7
7
  readonly eventType = EventName.SubscriptionPaused;
8
- readonly data: Omit<SubscriptionNotification, 'transactionId'>;
8
+ readonly data: SubscriptionNotification;
9
9
  constructor(response: IEventsResponse<ISubscriptionNotificationResponse>);
10
10
  }
@@ -5,6 +5,6 @@ import { type IEventsResponse } from '../../../types/index.js';
5
5
  import { type ISubscriptionNotificationResponse } from '../../types/index.js';
6
6
  export declare class SubscriptionResumedEvent extends Event {
7
7
  readonly eventType = EventName.SubscriptionResumed;
8
- readonly data: Omit<SubscriptionNotification, 'transactionId'>;
8
+ readonly data: SubscriptionNotification;
9
9
  constructor(response: IEventsResponse<ISubscriptionNotificationResponse>);
10
10
  }
@@ -5,6 +5,6 @@ import { type IEventsResponse } from '../../../types/index.js';
5
5
  import { type ISubscriptionNotificationResponse } from '../../types/index.js';
6
6
  export declare class SubscriptionTrialingEvent extends Event {
7
7
  readonly eventType = EventName.SubscriptionTrialing;
8
- readonly data: Omit<SubscriptionNotification, 'transactionId'>;
8
+ readonly data: SubscriptionNotification;
9
9
  constructor(response: IEventsResponse<ISubscriptionNotificationResponse>);
10
10
  }
@@ -5,6 +5,6 @@ import { type IEventsResponse } from '../../../types/index.js';
5
5
  import { type ISubscriptionNotificationResponse } from '../../types/index.js';
6
6
  export declare class SubscriptionUpdatedEvent extends Event {
7
7
  readonly eventType = EventName.SubscriptionUpdated;
8
- readonly data: Omit<SubscriptionNotification, 'transactionId'>;
8
+ readonly data: SubscriptionNotification;
9
9
  constructor(response: IEventsResponse<ISubscriptionNotificationResponse>);
10
10
  }
@@ -1,5 +1,5 @@
1
- import { type AddressCreatedEvent, type AddressImportedEvent, type AddressUpdatedEvent, type AdjustmentCreatedEvent, type AdjustmentUpdatedEvent, type BusinessCreatedEvent, type BusinessImportedEvent, type BusinessUpdatedEvent, type CustomerCreatedEvent, type CustomerImportedEvent, type CustomerUpdatedEvent, type DiscountCreatedEvent, type DiscountImportedEvent, type DiscountUpdatedEvent, type PayoutCreatedEvent, type PayoutPaidEvent, type PriceCreatedEvent, type PriceImportedEvent, type PriceUpdatedEvent, type ProductCreatedEvent, type ProductImportedEvent, type ProductUpdatedEvent, type ReportCreatedEvent, type ReportUpdatedEvent, type SubscriptionActivatedEvent, type SubscriptionCanceledEvent, type SubscriptionCreatedEvent, type SubscriptionImportedEvent, type SubscriptionPastDueEvent, type SubscriptionPausedEvent, type SubscriptionResumedEvent, type SubscriptionTrialingEvent, type SubscriptionUpdatedEvent, type TransactionBilledEvent, type TransactionCanceledEvent, type TransactionCompletedEvent, type TransactionCreatedEvent, type TransactionPaidEvent, type TransactionPastDueEvent, type TransactionPaymentFailedEvent, type TransactionReadyEvent, type TransactionUpdatedEvent } from '../events/index.js';
2
- export type EventEntity = AddressCreatedEvent | AddressUpdatedEvent | AddressImportedEvent | AdjustmentUpdatedEvent | AdjustmentCreatedEvent | BusinessCreatedEvent | BusinessUpdatedEvent | BusinessImportedEvent | CustomerCreatedEvent | CustomerUpdatedEvent | CustomerImportedEvent | DiscountCreatedEvent | DiscountUpdatedEvent | DiscountImportedEvent | PayoutCreatedEvent | PayoutPaidEvent | PriceCreatedEvent | PriceUpdatedEvent | PriceImportedEvent | ProductCreatedEvent | ProductUpdatedEvent | ProductImportedEvent | SubscriptionActivatedEvent | SubscriptionCanceledEvent | SubscriptionCreatedEvent | SubscriptionImportedEvent | SubscriptionPastDueEvent | SubscriptionPausedEvent | SubscriptionResumedEvent | SubscriptionTrialingEvent | SubscriptionUpdatedEvent | TransactionBilledEvent | TransactionCanceledEvent | TransactionCompletedEvent | TransactionCreatedEvent | TransactionPaidEvent | TransactionPastDueEvent | TransactionPaymentFailedEvent | TransactionReadyEvent | TransactionUpdatedEvent | ReportUpdatedEvent | ReportCreatedEvent;
1
+ import { type AddressCreatedEvent, type AddressImportedEvent, type AddressUpdatedEvent, type AdjustmentCreatedEvent, type AdjustmentUpdatedEvent, type BusinessCreatedEvent, type BusinessImportedEvent, type BusinessUpdatedEvent, type CustomerCreatedEvent, type CustomerImportedEvent, type CustomerUpdatedEvent, type DiscountCreatedEvent, type DiscountImportedEvent, type DiscountUpdatedEvent, type PaymentMethodDeletedEvent, type PaymentMethodSavedEvent, type PayoutCreatedEvent, type PayoutPaidEvent, type PriceCreatedEvent, type PriceImportedEvent, type PriceUpdatedEvent, type ProductCreatedEvent, type ProductImportedEvent, type ProductUpdatedEvent, type ReportCreatedEvent, type ReportUpdatedEvent, type SubscriptionActivatedEvent, type SubscriptionCanceledEvent, type SubscriptionCreatedEvent, type SubscriptionImportedEvent, type SubscriptionPastDueEvent, type SubscriptionPausedEvent, type SubscriptionResumedEvent, type SubscriptionTrialingEvent, type SubscriptionUpdatedEvent, type TransactionBilledEvent, type TransactionCanceledEvent, type TransactionCompletedEvent, type TransactionCreatedEvent, type TransactionPaidEvent, type TransactionPastDueEvent, type TransactionPaymentFailedEvent, type TransactionReadyEvent, type TransactionUpdatedEvent } from '../events/index.js';
2
+ export type EventEntity = AddressCreatedEvent | AddressUpdatedEvent | AddressImportedEvent | AdjustmentUpdatedEvent | AdjustmentCreatedEvent | BusinessCreatedEvent | BusinessUpdatedEvent | BusinessImportedEvent | CustomerCreatedEvent | CustomerUpdatedEvent | CustomerImportedEvent | DiscountCreatedEvent | DiscountUpdatedEvent | DiscountImportedEvent | PaymentMethodDeletedEvent | PaymentMethodSavedEvent | PayoutCreatedEvent | PayoutPaidEvent | PriceCreatedEvent | PriceUpdatedEvent | PriceImportedEvent | ProductCreatedEvent | ProductUpdatedEvent | ProductImportedEvent | SubscriptionActivatedEvent | SubscriptionCanceledEvent | SubscriptionCreatedEvent | SubscriptionImportedEvent | SubscriptionPastDueEvent | SubscriptionPausedEvent | SubscriptionResumedEvent | SubscriptionTrialingEvent | SubscriptionUpdatedEvent | TransactionBilledEvent | TransactionCanceledEvent | TransactionCompletedEvent | TransactionCreatedEvent | TransactionPaidEvent | TransactionPastDueEvent | TransactionPaymentFailedEvent | TransactionReadyEvent | TransactionUpdatedEvent | ReportUpdatedEvent | ReportCreatedEvent;
3
3
  export declare enum EventName {
4
4
  AddressCreated = "address.created",
5
5
  AddressUpdated = "address.updated",
@@ -15,6 +15,8 @@ export declare enum EventName {
15
15
  DiscountCreated = "discount.created",
16
16
  DiscountUpdated = "discount.updated",
17
17
  DiscountImported = "discount.imported",
18
+ PaymentMethodDeleted = "payment_method.deleted",
19
+ PaymentMethodSaved = "payment_method.saved",
18
20
  PayoutCreated = "payout.created",
19
21
  PayoutPaid = "payout.paid",
20
22
  PriceCreated = "price.created",
@@ -44,4 +46,4 @@ export declare enum EventName {
44
46
  ReportCreated = "report.created",
45
47
  ReportUpdated = "report.updated"
46
48
  }
47
- export type IEventName = 'address.created' | 'address.updated' | 'address.imported' | 'adjustment.created' | 'adjustment.updated' | 'business.created' | 'business.updated' | 'business.imported' | 'customer.created' | 'customer.updated' | 'discount.created' | 'discount.updated' | 'discount.imported' | 'payout.updated' | 'payout.paid' | 'price.updated' | 'price.created' | 'price.imported' | 'product.updated' | 'product.created' | 'product.imported' | 'subscription.activated' | 'subscription.canceled' | 'subscription.imported' | 'subscription.created' | 'subscription.past_due' | 'subscription.paused' | 'subscription.resumed' | 'subscription.trialing' | 'subscription.updated' | 'transaction.billed' | 'transaction.canceled' | 'transaction.completed' | 'transaction.paid' | 'transaction.created' | 'transaction.past_due' | 'transaction.payment_failed' | 'transaction.ready' | 'transaction.updated' | 'report.created' | 'report.updated';
49
+ export type IEventName = 'address.created' | 'address.updated' | 'address.imported' | 'adjustment.created' | 'adjustment.updated' | 'business.created' | 'business.updated' | 'business.imported' | 'customer.created' | 'customer.imported' | 'customer.updated' | 'discount.created' | 'discount.updated' | 'discount.imported' | 'payment_method.saved' | 'payment_method.deleted' | 'payout.created' | 'payout.updated' | 'payout.paid' | 'price.updated' | 'price.created' | 'price.imported' | 'product.updated' | 'product.created' | 'product.imported' | 'subscription.activated' | 'subscription.canceled' | 'subscription.imported' | 'subscription.created' | 'subscription.past_due' | 'subscription.paused' | 'subscription.resumed' | 'subscription.trialing' | 'subscription.updated' | 'transaction.billed' | 'transaction.canceled' | 'transaction.completed' | 'transaction.paid' | 'transaction.created' | 'transaction.past_due' | 'transaction.payment_failed' | 'transaction.ready' | 'transaction.updated' | 'report.created' | 'report.updated';
@@ -7,6 +7,7 @@ export * from './business/index.js';
7
7
  export * from './subscription/index.js';
8
8
  export * from './address/index.js';
9
9
  export * from './discount/index.js';
10
+ export * from './payment-method/index.js';
10
11
  export * from './payout/index.js';
11
12
  export * from './report/index.js';
12
13
  export * from './shared/index.js';
@@ -0,0 +1,2 @@
1
+ export * from './payment-method-deleted-notification-response.js';
2
+ export * from './payment-method-notification-response.js';
@@ -0,0 +1,11 @@
1
+ import { type SavedPaymentDeletionReason, type SavedPaymentMethodType, type SavedPaymentOrigin } from '../../../enums/index.js';
2
+ export interface IPaymentMethodDeletedNotificationResponse {
3
+ id: string;
4
+ customer_id: string;
5
+ address_id: string;
6
+ deletion_reason: SavedPaymentDeletionReason;
7
+ type: SavedPaymentMethodType;
8
+ origin: SavedPaymentOrigin;
9
+ saved_at: string;
10
+ updated_at: string;
11
+ }
@@ -0,0 +1,10 @@
1
+ import { type SavedPaymentMethodType, type SavedPaymentOrigin } from '../../../enums/index.js';
2
+ export interface IPaymentMethodNotificationResponse {
3
+ id: string;
4
+ customer_id: string;
5
+ address_id: string;
6
+ type: SavedPaymentMethodType;
7
+ origin: SavedPaymentOrigin;
8
+ saved_at: string;
9
+ updated_at: string;
10
+ }
@@ -1,3 +1,4 @@
1
+ export * from './subscription-created-notification-response.js';
1
2
  export * from './subscription-discount-notification-response.js';
2
3
  export * from './subscription-time-period-notification-response.js';
3
4
  export * from './subscription-scheduled-change-notification-response.js';
@@ -0,0 +1,28 @@
1
+ import { type IBillingDetailsNotificationResponse, type IImportMetaNotificationResponse, type ISubscriptionDiscountNotificationResponse, type ISubscriptionItemNotificationResponse, type ISubscriptionScheduledChangeNotificationResponse, type ISubscriptionTimePeriodNotificationResponse, type ITimePeriodNotification } from '../index.js';
2
+ import { type CollectionMode, type CurrencyCode, type SubscriptionStatus } from '../../../enums/index.js';
3
+ import { type ICustomData } from '../../../types/index.js';
4
+ export interface ISubscriptionCreatedNotificationResponse {
5
+ id: string;
6
+ status: SubscriptionStatus;
7
+ transaction_id: string;
8
+ customer_id: string;
9
+ address_id: string;
10
+ business_id?: string | null;
11
+ currency_code: CurrencyCode;
12
+ created_at: string;
13
+ updated_at: string;
14
+ started_at?: string | null;
15
+ first_billed_at?: string | null;
16
+ next_billed_at?: string | null;
17
+ paused_at?: string | null;
18
+ canceled_at?: string | null;
19
+ discount?: ISubscriptionDiscountNotificationResponse | null;
20
+ collection_mode: CollectionMode;
21
+ billing_details?: IBillingDetailsNotificationResponse | null;
22
+ current_billing_period?: ISubscriptionTimePeriodNotificationResponse | null;
23
+ billing_cycle: ITimePeriodNotification;
24
+ scheduled_change?: ISubscriptionScheduledChangeNotificationResponse | null;
25
+ items: ISubscriptionItemNotificationResponse[];
26
+ custom_data?: ICustomData | null;
27
+ import_meta?: IImportMetaNotificationResponse | null;
28
+ }
@@ -8,7 +8,6 @@ import { type ICustomData } from '../../../types/index.js';
8
8
  export interface ISubscriptionNotificationResponse {
9
9
  id: string;
10
10
  status: SubscriptionStatus;
11
- transaction_id: string;
12
11
  customer_id: string;
13
12
  address_id: string;
14
13
  business_id?: string | null;