@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
package/CHANGELOG.md CHANGED
@@ -12,6 +12,26 @@ When we make [non-breaking changes](https://developer.paddle.com/api-reference/a
12
12
 
13
13
  This means when upgrading minor versions of the SDK, you may notice type errors. You can safely ignore these or fix by adding additional type guards.
14
14
 
15
+ ## 2.0.0-rc.2 - 2024-11-19
16
+
17
+ ### Added
18
+
19
+ - Added the `trafficSource` filter on notification settings
20
+ - Omitted the `transactionId` completely from `SubscriptionNotification` and created a separate `SubscriptionCreatedNotification` with the non-null `transactionId`
21
+ - Added `paymentMethods` resources
22
+ - Added `generateAuthToken` for customer
23
+
24
+ ## 2.0.0-rc.1 - 2024-10-08
25
+
26
+ ### Added
27
+
28
+ - Added `simulationTypes` resources
29
+ - Added `simulations` resources
30
+ - Added `simulationRuns` resources
31
+ - Added `simulationRunEvents` resources
32
+
33
+ ---
34
+
15
35
  ## 2.0.0-rc.0 - 2024-09-26
16
36
 
17
37
  > **Breaking changes:** This version includes major improvements that introduce breaking changes. These are called out below.
@@ -40,7 +60,7 @@ This means when upgrading minor versions of the SDK, you may notice type errors.
40
60
  ## 1.6.0 - 2024-09-16
41
61
 
42
62
  ### Added
43
-
63
+
44
64
  - Added `adjustments.getCreditNotePDF()` to [get a credit note for an adjustment](https://developer.paddle.com/api-reference/adjustments/get-credit-note-pdf?utm_source=dx&utm_medium=paddle-node-sdk)
45
65
  - Added `disposition` query parameter to `adjustments.getCreditNotePDF()` and `transactions.getInvoicePDF()` operations, see [related changelog](https://developer.paddle.com/changelog/2024/invoice-pdf-open-in-browser?utm_source=dx&utm_medium=paddle-node-sdk).
46
66
  - Added pagination support to `notificationSettings.list()` operation, see [related changelog](https://developer.paddle.com/changelog/2024/notification-settings-pagination?utm_source=dx&utm_medium=paddle-node-sdk).
@@ -170,7 +190,7 @@ This means when upgrading minor versions of the SDK, you may notice type errors.
170
190
  ### Removed
171
191
 
172
192
  - **Breaking change:** Removed `*Includes` entity in favour of standard entities.
173
-
193
+
174
194
  - Use `Price` instead of `PriceWithIncludes`
175
195
  - Use `Product` instead of `ProductWithIncludes`
176
196
  - Use `Subscription` instead of `SubscriptionIncludes`
@@ -230,7 +250,7 @@ This means when upgrading minor versions of the SDK, you may notice type errors.
230
250
 
231
251
  ### Fixed
232
252
 
233
- - Marked `unitPriceOverrides` as optional in Price entity.
253
+ - Marked `unitPriceOverrides` as optional in Price entity.
234
254
 
235
255
  ---
236
256
 
@@ -290,7 +310,7 @@ This means when upgrading minor versions of the SDK, you may notice type errors.
290
310
  - Added `notificationSettings.get()` to [get a notification settings](https://developer.paddle.com/api-reference/notification-settings/get-notification-setting?utm_source=dx&utm_medium=paddle-node-sdk)
291
311
  - Added `notificationSettings.update()` to [update a notification settings](https://developer.paddle.com/api-reference/notification-settings/update-notification-setting?utm_source=dx&utm_medium=paddle-node-sdk)
292
312
  - Added `notificationSettings.delete()` to [delete a notification settings](https://developer.paddle.com/api-reference/notification-settings/delete-notification-setting?utm_source=dx&utm_medium=paddle-node-sdk)
293
- - Added `notifications.list()` to [list all notifications](https://developer.paddle.com/api-reference/notifications/list-notifications?utm_source=dx&utm_medium=paddle-node-sdk)
313
+ - Added `notifications.list()` to [list all notifications](https://developer.paddle.com/api-reference/notifications/list-notifications?utm_source=dx&utm_medium=paddle-node-sdk)
294
314
  - Added `notifications.get()` to [get a notification](https://developer.paddle.com/api-reference/notifications/get-notification?utm_source=dx&utm_medium=paddle-node-sdk)
295
315
  - Added `notifications.replay()` to [replay a notification](https://developer.paddle.com/api-reference/notifications/replay-notification?utm_source=dx&utm_medium=paddle-node-sdk)
296
316
  - Added `notifications.getLogs()` to [get all logs for a notification](https://developer.paddle.com/api-reference/notification-logs/list-notification-logs?utm_source=dx&utm_medium=paddle-node-sdk)
@@ -315,7 +335,7 @@ This means when upgrading minor versions of the SDK, you may notice type errors.
315
335
  ### Added
316
336
 
317
337
  - Added helper function to archive supported entities
318
- - Added `pricingPreview.preview()` to [preview calculations for one or more prices](https://developer.paddle.com/api-reference/pricing-preview/preview-prices?utm_source=dx&utm_medium=paddle-node-sdk)
338
+ - Added `pricingPreview.preview()` to [preview calculations for one or more prices](https://developer.paddle.com/api-reference/pricing-preview/preview-prices?utm_source=dx&utm_medium=paddle-node-sdk)
319
339
 
320
340
  ### Changed
321
341
 
@@ -363,7 +383,7 @@ This means when upgrading minor versions of the SDK, you may notice type errors.
363
383
 
364
384
  - Added changelog.
365
385
 
366
- ---
386
+ ---
367
387
 
368
388
  ## 0.1.6 - 2023-11-22
369
389
 
@@ -371,7 +391,7 @@ This means when upgrading minor versions of the SDK, you may notice type errors.
371
391
 
372
392
  - Fixed optional management URL object in subscription entities.
373
393
 
374
- ---
394
+ ---
375
395
 
376
396
  ## 0.1.5 - 2023-11-14
377
397
 
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AuthToken = void 0;
4
+ class AuthToken {
5
+ constructor(authToken) {
6
+ this.customerAuthToken = authToken.customer_auth_token;
7
+ this.expiresAt = authToken.expires_at;
8
+ }
9
+ }
10
+ exports.AuthToken = AuthToken;
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./auth-token.js"), exports);
17
18
  __exportStar(require("./customer-collection.js"), exports);
18
19
  __exportStar(require("./customer.js"), exports);
19
20
  __exportStar(require("./credit-balance.js"), exports);
@@ -25,8 +25,13 @@ __exportStar(require("./subscription/index.js"), exports);
25
25
  __exportStar(require("./address/index.js"), exports);
26
26
  __exportStar(require("./discount/index.js"), exports);
27
27
  __exportStar(require("./events/index.js"), exports);
28
+ __exportStar(require("./payment-method/index.js"), exports);
28
29
  __exportStar(require("./payout/index.js"), exports);
29
30
  __exportStar(require("./event-types/index.js"), exports);
30
31
  __exportStar(require("./notification-settings/index.js"), exports);
31
32
  __exportStar(require("./notifications/index.js"), exports);
32
33
  __exportStar(require("./report/index.js"), exports);
34
+ __exportStar(require("./simulation-types/index.js"), exports);
35
+ __exportStar(require("./simulation/index.js"), exports);
36
+ __exportStar(require("./simulation-run/index.js"), exports);
37
+ __exportStar(require("./simulation-run-event/index.js"), exports);
@@ -11,6 +11,7 @@ class NotificationSettings {
11
11
  this.active = notificationSettings.active;
12
12
  this.apiVersion = notificationSettings.api_version;
13
13
  this.includeSensitiveFields = notificationSettings.include_sensitive_fields;
14
+ this.trafficSource = notificationSettings.traffic_source;
14
15
  this.subscribedEvents = notificationSettings.subscribed_events.map((subscribed_event) => new index_js_1.EventType(subscribed_event));
15
16
  this.endpointSecretKey = notificationSettings.endpoint_secret_key;
16
17
  }
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./payment-method.js"), exports);
18
+ __exportStar(require("./payment-method-collection.js"), exports);
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PaymentMethodCollection = void 0;
4
+ const index_js_1 = require("../../entities/index.js");
5
+ const index_js_2 = require("../../internal/base/index.js");
6
+ class PaymentMethodCollection extends index_js_2.Collection {
7
+ fromJson(data) {
8
+ return new index_js_1.PaymentMethod(data);
9
+ }
10
+ }
11
+ exports.PaymentMethodCollection = PaymentMethodCollection;
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PaymentMethod = void 0;
4
+ const index_js_1 = require("../shared/index.js");
5
+ class PaymentMethod {
6
+ constructor(paymentMethodResponse) {
7
+ this.id = paymentMethodResponse.id;
8
+ this.customerId = paymentMethodResponse.customer_id;
9
+ this.addressId = paymentMethodResponse.address_id;
10
+ this.type = paymentMethodResponse.type;
11
+ this.card = paymentMethodResponse.card ? new index_js_1.PaymentCard(paymentMethodResponse.card) : null;
12
+ this.paypal = paymentMethodResponse.paypal ? new index_js_1.PayPal(paymentMethodResponse.paypal) : null;
13
+ this.origin = paymentMethodResponse.origin;
14
+ this.savedAt = paymentMethodResponse.saved_at;
15
+ this.updatedAt = paymentMethodResponse.updated_at;
16
+ }
17
+ }
18
+ exports.PaymentMethod = PaymentMethod;
@@ -27,6 +27,7 @@ __exportStar(require("./adjustment-original-amount.js"), exports);
27
27
  __exportStar(require("./chargeback-fee.js"), exports);
28
28
  __exportStar(require("./transaction-payout-totals-adjusted.js"), exports);
29
29
  __exportStar(require("./unit-totals.js"), exports);
30
+ __exportStar(require("./paypal.js"), exports);
30
31
  __exportStar(require("./payment-card.js"), exports);
31
32
  __exportStar(require("./payment-method-details.js"), exports);
32
33
  __exportStar(require("./transaction-payment-attempt.js"), exports);
@@ -34,3 +35,5 @@ __exportStar(require("./transaction-checkout.js"), exports);
34
35
  __exportStar(require("./total-adjustments.js"), exports);
35
36
  __exportStar(require("./payout-totals-adjustment.js"), exports);
36
37
  __exportStar(require("./import-meta.js"), exports);
38
+ __exportStar(require("./simulation-event-request.js"), exports);
39
+ __exportStar(require("./simulation-event-response.js"), exports);
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PayPal = void 0;
4
+ class PayPal {
5
+ constructor(payPalResponse) {
6
+ this.email = payPalResponse.email;
7
+ this.reference = payPalResponse.reference;
8
+ }
9
+ }
10
+ exports.PayPal = PayPal;
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SimulationEventRequest = void 0;
4
+ class SimulationEventRequest {
5
+ constructor(simulationEventRequestResponse) {
6
+ this.body = simulationEventRequestResponse.body;
7
+ }
8
+ }
9
+ exports.SimulationEventRequest = SimulationEventRequest;
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SimulationEventResponse = void 0;
4
+ class SimulationEventResponse {
5
+ constructor(simulationEventResponse) {
6
+ this.body = simulationEventResponse.body;
7
+ this.statusCode = simulationEventResponse.status_code;
8
+ }
9
+ }
10
+ exports.SimulationEventResponse = SimulationEventResponse;
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./simulation.js"), exports);
18
+ __exportStar(require("./simulation-collection.js"), exports);
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SimulationCollection = void 0;
4
+ const index_js_1 = require("../../entities/index.js");
5
+ const index_js_2 = require("../../internal/base/index.js");
6
+ class SimulationCollection extends index_js_2.Collection {
7
+ fromJson(data) {
8
+ return new index_js_1.Simulation(data);
9
+ }
10
+ }
11
+ exports.SimulationCollection = SimulationCollection;
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Simulation = void 0;
4
+ class Simulation {
5
+ constructor(simulationResponse) {
6
+ var _a, _b;
7
+ this.id = simulationResponse.id;
8
+ this.status = simulationResponse.status;
9
+ this.notificationSettingId = simulationResponse.notification_setting_id;
10
+ this.name = simulationResponse.name;
11
+ this.type = simulationResponse.type;
12
+ this.payload = (_a = simulationResponse.payload) !== null && _a !== void 0 ? _a : null;
13
+ this.lastRunAt = (_b = simulationResponse.last_run_at) !== null && _b !== void 0 ? _b : null;
14
+ this.createdAt = simulationResponse.created_at;
15
+ this.updatedAt = simulationResponse.updated_at;
16
+ }
17
+ }
18
+ exports.Simulation = Simulation;
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./simulation-run.js"), exports);
18
+ __exportStar(require("./simulation-run-collection.js"), exports);
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SimulationRunCollection = void 0;
4
+ const index_js_1 = require("../../entities/index.js");
5
+ const index_js_2 = require("../../internal/base/index.js");
6
+ class SimulationRunCollection extends index_js_2.Collection {
7
+ fromJson(data) {
8
+ return new index_js_1.SimulationRun(data);
9
+ }
10
+ }
11
+ exports.SimulationRunCollection = SimulationRunCollection;
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SimulationRun = void 0;
4
+ const index_js_1 = require("../index.js");
5
+ class SimulationRun {
6
+ constructor(simulationRunResponse) {
7
+ var _a, _b;
8
+ this.id = simulationRunResponse.id;
9
+ this.status = simulationRunResponse.status;
10
+ this.createdAt = simulationRunResponse.created_at;
11
+ this.updatedAt = simulationRunResponse.updated_at;
12
+ this.type = simulationRunResponse.type;
13
+ this.events = (_b = (_a = simulationRunResponse.events) === null || _a === void 0 ? void 0 : _a.map((event) => new index_js_1.SimulationRunEvent(event))) !== null && _b !== void 0 ? _b : [];
14
+ }
15
+ }
16
+ exports.SimulationRun = SimulationRun;
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./simulation-run-event.js"), exports);
18
+ __exportStar(require("./simulation-run-event-collection.js"), exports);
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SimulationRunEventCollection = void 0;
4
+ const index_js_1 = require("../../entities/index.js");
5
+ const index_js_2 = require("../../internal/base/index.js");
6
+ class SimulationRunEventCollection extends index_js_2.Collection {
7
+ fromJson(data) {
8
+ return new index_js_1.SimulationRunEvent(data);
9
+ }
10
+ }
11
+ exports.SimulationRunEventCollection = SimulationRunEventCollection;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SimulationRunEvent = void 0;
4
+ const index_js_1 = require("../shared/index.js");
5
+ class SimulationRunEvent {
6
+ constructor(simulationRunEventResponse) {
7
+ this.id = simulationRunEventResponse.id;
8
+ this.status = simulationRunEventResponse.status;
9
+ this.eventType = simulationRunEventResponse.event_type;
10
+ this.payload = simulationRunEventResponse.payload;
11
+ this.request = simulationRunEventResponse.request
12
+ ? new index_js_1.SimulationEventRequest(simulationRunEventResponse.request)
13
+ : null;
14
+ this.response = simulationRunEventResponse.response
15
+ ? new index_js_1.SimulationEventResponse(simulationRunEventResponse.response)
16
+ : null;
17
+ this.createdAt = simulationRunEventResponse.created_at;
18
+ this.updatedAt = simulationRunEventResponse.updated_at;
19
+ }
20
+ }
21
+ exports.SimulationRunEvent = SimulationRunEvent;
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./simulation-type.js"), exports);
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SimulationType = void 0;
4
+ class SimulationType {
5
+ constructor(simulationTypeResponse) {
6
+ this.name = simulationTypeResponse.name;
7
+ this.label = simulationTypeResponse.label;
8
+ this.description = simulationTypeResponse.description;
9
+ this.group = simulationTypeResponse.group;
10
+ this.type = simulationTypeResponse.type;
11
+ this.events = simulationTypeResponse.events;
12
+ }
13
+ }
14
+ exports.SimulationType = SimulationType;
@@ -19,7 +19,12 @@ __exportStar(require("./subscription/index.js"), exports);
19
19
  __exportStar(require("./discount/index.js"), exports);
20
20
  __exportStar(require("./adjustment/index.js"), exports);
21
21
  __exportStar(require("./transaction/index.js"), exports);
22
+ __exportStar(require("./payment-method/index.js"), exports);
22
23
  __exportStar(require("./payout/index.js"), exports);
23
24
  __exportStar(require("./notification-settings/index.js"), exports);
24
25
  __exportStar(require("./notification/index.js"), exports);
25
26
  __exportStar(require("./report/index.js"), exports);
27
+ __exportStar(require("./simulation-type/index.js"), exports);
28
+ __exportStar(require("./simulation/index.js"), exports);
29
+ __exportStar(require("./simulation-run/index.js"), exports);
30
+ __exportStar(require("./simulation-run-event/index.js"), exports);
@@ -15,3 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./notification-settings-type.js"), exports);
18
+ __exportStar(require("./traffic-source.js"), exports);
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./deletion-reason.js"), exports);
18
+ __exportStar(require("./type.js"), exports);
19
+ __exportStar(require("./origin.js"), exports);
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./simulation-scenario-type.js"), exports);
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./simulation-run-status.js"), exports);
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./simulation-run-event-status.js"), exports);
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./simulation-kind.js"), exports);
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -23,6 +23,7 @@ __exportStar(require("./business/index.js"), exports);
23
23
  __exportStar(require("./subscription/index.js"), exports);
24
24
  __exportStar(require("./address/index.js"), exports);
25
25
  __exportStar(require("./discount/index.js"), exports);
26
+ __exportStar(require("./payment-method/index.js"), exports);
26
27
  __exportStar(require("./payout/index.js"), exports);
27
28
  __exportStar(require("./report/index.js"), exports);
28
29
  __exportStar(require("./shared/index.js"), exports);
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./payment-method-deleted-notification.js"), exports);
18
+ __exportStar(require("./payment-method-notification.js"), exports);
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PaymentMethodDeletedNotification = void 0;
4
+ class PaymentMethodDeletedNotification {
5
+ constructor(paymentMethod) {
6
+ this.id = paymentMethod.id;
7
+ this.customerId = paymentMethod.customer_id;
8
+ this.addressId = paymentMethod.address_id;
9
+ this.deletionReason = paymentMethod.deletion_reason;
10
+ this.type = paymentMethod.type;
11
+ this.origin = paymentMethod.origin;
12
+ this.savedAt = paymentMethod.saved_at;
13
+ this.updatedAt = paymentMethod.updated_at;
14
+ }
15
+ }
16
+ exports.PaymentMethodDeletedNotification = PaymentMethodDeletedNotification;