@whop/sdk 0.0.39 → 0.0.40

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 (567) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/client.d.mts +88 -40
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +88 -40
  5. package/client.d.ts.map +1 -1
  6. package/client.js +59 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +59 -0
  9. package/client.mjs.map +1 -1
  10. package/internal/types.d.mts +6 -6
  11. package/internal/types.d.mts.map +1 -1
  12. package/internal/types.d.ts +6 -6
  13. package/internal/types.d.ts.map +1 -1
  14. package/internal/utils/log.d.mts.map +1 -1
  15. package/internal/utils/log.d.ts.map +1 -1
  16. package/internal/utils/log.js +2 -0
  17. package/internal/utils/log.js.map +1 -1
  18. package/internal/utils/log.mjs +2 -0
  19. package/internal/utils/log.mjs.map +1 -1
  20. package/package.json +15 -9
  21. package/resources/accounts.d.mts +244 -0
  22. package/resources/accounts.d.mts.map +1 -0
  23. package/resources/accounts.d.ts +244 -0
  24. package/resources/accounts.d.ts.map +1 -0
  25. package/resources/accounts.js +46 -0
  26. package/resources/accounts.js.map +1 -0
  27. package/resources/accounts.mjs +42 -0
  28. package/resources/accounts.mjs.map +1 -0
  29. package/resources/ad-campaigns.d.mts +296 -0
  30. package/resources/ad-campaigns.d.mts.map +1 -0
  31. package/resources/ad-campaigns.d.ts +296 -0
  32. package/resources/ad-campaigns.d.ts.map +1 -0
  33. package/resources/ad-campaigns.js +104 -0
  34. package/resources/ad-campaigns.js.map +1 -0
  35. package/resources/ad-campaigns.mjs +100 -0
  36. package/resources/ad-campaigns.mjs.map +1 -0
  37. package/resources/ad-groups.d.mts +1461 -0
  38. package/resources/ad-groups.d.mts.map +1 -0
  39. package/resources/ad-groups.d.ts +1461 -0
  40. package/resources/ad-groups.d.ts.map +1 -0
  41. package/resources/ad-groups.js +121 -0
  42. package/resources/ad-groups.js.map +1 -0
  43. package/resources/ad-groups.mjs +117 -0
  44. package/resources/ad-groups.mjs.map +1 -0
  45. package/resources/ad-reports.d.mts +379 -0
  46. package/resources/ad-reports.d.mts.map +1 -0
  47. package/resources/ad-reports.d.ts +379 -0
  48. package/resources/ad-reports.d.ts.map +1 -0
  49. package/resources/ad-reports.js +26 -0
  50. package/resources/ad-reports.js.map +1 -0
  51. package/resources/ad-reports.mjs +22 -0
  52. package/resources/ad-reports.mjs.map +1 -0
  53. package/resources/ads.d.mts +234 -0
  54. package/resources/ads.d.mts.map +1 -0
  55. package/resources/ads.d.ts +234 -0
  56. package/resources/ads.d.ts.map +1 -0
  57. package/resources/ads.js +56 -0
  58. package/resources/ads.js.map +1 -0
  59. package/resources/ads.mjs +52 -0
  60. package/resources/ads.mjs.map +1 -0
  61. package/resources/affiliates/affiliates.d.mts +31 -31
  62. package/resources/affiliates/affiliates.d.mts.map +1 -1
  63. package/resources/affiliates/affiliates.d.ts +31 -31
  64. package/resources/affiliates/affiliates.d.ts.map +1 -1
  65. package/resources/affiliates/affiliates.js +21 -21
  66. package/resources/affiliates/affiliates.js.map +1 -1
  67. package/resources/affiliates/affiliates.mjs +21 -21
  68. package/resources/affiliates/affiliates.mjs.map +1 -1
  69. package/resources/affiliates/index.d.mts +2 -2
  70. package/resources/affiliates/index.d.mts.map +1 -1
  71. package/resources/affiliates/index.d.ts +2 -2
  72. package/resources/affiliates/index.d.ts.map +1 -1
  73. package/resources/affiliates/overrides.d.mts +37 -37
  74. package/resources/affiliates/overrides.d.mts.map +1 -1
  75. package/resources/affiliates/overrides.d.ts +37 -37
  76. package/resources/affiliates/overrides.d.ts.map +1 -1
  77. package/resources/affiliates/overrides.js +23 -23
  78. package/resources/affiliates/overrides.js.map +1 -1
  79. package/resources/affiliates/overrides.mjs +23 -23
  80. package/resources/affiliates/overrides.mjs.map +1 -1
  81. package/resources/ai-chats.d.mts +23 -23
  82. package/resources/ai-chats.d.mts.map +1 -1
  83. package/resources/ai-chats.d.ts +23 -23
  84. package/resources/ai-chats.d.ts.map +1 -1
  85. package/resources/ai-chats.js +6 -6
  86. package/resources/ai-chats.js.map +1 -1
  87. package/resources/ai-chats.mjs +6 -6
  88. package/resources/ai-chats.mjs.map +1 -1
  89. package/resources/app-builds.d.mts +54 -54
  90. package/resources/app-builds.d.mts.map +1 -1
  91. package/resources/app-builds.d.ts +54 -54
  92. package/resources/app-builds.d.ts.map +1 -1
  93. package/resources/app-builds.js +21 -21
  94. package/resources/app-builds.js.map +1 -1
  95. package/resources/app-builds.mjs +21 -21
  96. package/resources/app-builds.mjs.map +1 -1
  97. package/resources/apps.d.mts +57 -57
  98. package/resources/apps.d.mts.map +1 -1
  99. package/resources/apps.d.ts +57 -57
  100. package/resources/apps.d.ts.map +1 -1
  101. package/resources/apps.js +15 -15
  102. package/resources/apps.js.map +1 -1
  103. package/resources/apps.mjs +15 -15
  104. package/resources/apps.mjs.map +1 -1
  105. package/resources/authorized-users.d.mts +36 -36
  106. package/resources/authorized-users.d.mts.map +1 -1
  107. package/resources/authorized-users.d.ts +36 -36
  108. package/resources/authorized-users.d.ts.map +1 -1
  109. package/resources/authorized-users.js +21 -21
  110. package/resources/authorized-users.js.map +1 -1
  111. package/resources/authorized-users.mjs +21 -21
  112. package/resources/authorized-users.mjs.map +1 -1
  113. package/resources/bounties.d.mts +281 -0
  114. package/resources/bounties.d.mts.map +1 -0
  115. package/resources/bounties.d.ts +281 -0
  116. package/resources/bounties.d.ts.map +1 -0
  117. package/resources/bounties.js +63 -0
  118. package/resources/bounties.js.map +1 -0
  119. package/resources/bounties.mjs +59 -0
  120. package/resources/bounties.mjs.map +1 -0
  121. package/resources/chat-channels.d.mts +43 -43
  122. package/resources/chat-channels.d.mts.map +1 -1
  123. package/resources/chat-channels.d.ts +43 -43
  124. package/resources/chat-channels.d.ts.map +1 -1
  125. package/resources/chat-channels.js +24 -24
  126. package/resources/chat-channels.js.map +1 -1
  127. package/resources/chat-channels.mjs +24 -24
  128. package/resources/chat-channels.mjs.map +1 -1
  129. package/resources/checkout-configurations.d.mts +73 -45
  130. package/resources/checkout-configurations.d.mts.map +1 -1
  131. package/resources/checkout-configurations.d.ts +73 -45
  132. package/resources/checkout-configurations.d.ts.map +1 -1
  133. package/resources/checkout-configurations.js +11 -11
  134. package/resources/checkout-configurations.js.map +1 -1
  135. package/resources/checkout-configurations.mjs +11 -11
  136. package/resources/checkout-configurations.mjs.map +1 -1
  137. package/resources/companies.d.mts +98 -35
  138. package/resources/companies.d.mts.map +1 -1
  139. package/resources/companies.d.ts +98 -35
  140. package/resources/companies.d.ts.map +1 -1
  141. package/resources/companies.js +24 -17
  142. package/resources/companies.js.map +1 -1
  143. package/resources/companies.mjs +24 -17
  144. package/resources/companies.mjs.map +1 -1
  145. package/resources/company-token-transactions.d.mts +39 -39
  146. package/resources/company-token-transactions.d.mts.map +1 -1
  147. package/resources/company-token-transactions.d.ts +39 -39
  148. package/resources/company-token-transactions.d.ts.map +1 -1
  149. package/resources/company-token-transactions.js +14 -14
  150. package/resources/company-token-transactions.js.map +1 -1
  151. package/resources/company-token-transactions.mjs +14 -14
  152. package/resources/company-token-transactions.mjs.map +1 -1
  153. package/resources/conversions.d.mts +248 -0
  154. package/resources/conversions.d.mts.map +1 -0
  155. package/resources/conversions.d.ts +248 -0
  156. package/resources/conversions.d.ts.map +1 -0
  157. package/resources/conversions.js +30 -0
  158. package/resources/conversions.js.map +1 -0
  159. package/resources/conversions.mjs +26 -0
  160. package/resources/conversions.mjs.map +1 -0
  161. package/resources/course-chapters.d.mts +36 -36
  162. package/resources/course-chapters.d.mts.map +1 -1
  163. package/resources/course-chapters.d.ts +36 -36
  164. package/resources/course-chapters.d.ts.map +1 -1
  165. package/resources/course-chapters.js +23 -23
  166. package/resources/course-chapters.js.map +1 -1
  167. package/resources/course-chapters.mjs +23 -23
  168. package/resources/course-chapters.mjs.map +1 -1
  169. package/resources/course-lesson-interactions.d.mts +5 -5
  170. package/resources/course-lesson-interactions.d.mts.map +1 -1
  171. package/resources/course-lesson-interactions.d.ts +5 -5
  172. package/resources/course-lesson-interactions.d.ts.map +1 -1
  173. package/resources/course-lesson-interactions.js +7 -7
  174. package/resources/course-lesson-interactions.js.map +1 -1
  175. package/resources/course-lesson-interactions.mjs +7 -7
  176. package/resources/course-lesson-interactions.mjs.map +1 -1
  177. package/resources/course-lessons.d.mts +40 -40
  178. package/resources/course-lessons.d.mts.map +1 -1
  179. package/resources/course-lessons.d.ts +40 -40
  180. package/resources/course-lessons.d.ts.map +1 -1
  181. package/resources/course-lessons.js +22 -22
  182. package/resources/course-lessons.js.map +1 -1
  183. package/resources/course-lessons.mjs +22 -22
  184. package/resources/course-lessons.mjs.map +1 -1
  185. package/resources/course-students.d.mts +5 -5
  186. package/resources/course-students.d.mts.map +1 -1
  187. package/resources/course-students.d.ts +5 -5
  188. package/resources/course-students.d.ts.map +1 -1
  189. package/resources/course-students.js +10 -10
  190. package/resources/course-students.js.map +1 -1
  191. package/resources/course-students.mjs +10 -10
  192. package/resources/course-students.mjs.map +1 -1
  193. package/resources/courses.d.mts +40 -40
  194. package/resources/courses.d.mts.map +1 -1
  195. package/resources/courses.d.ts +40 -40
  196. package/resources/courses.d.ts.map +1 -1
  197. package/resources/courses.js +19 -19
  198. package/resources/courses.js.map +1 -1
  199. package/resources/courses.mjs +19 -19
  200. package/resources/courses.mjs.map +1 -1
  201. package/resources/deposits.d.mts +64 -0
  202. package/resources/deposits.d.mts.map +1 -0
  203. package/resources/deposits.d.ts +64 -0
  204. package/resources/deposits.d.ts.map +1 -0
  205. package/resources/deposits.js +16 -0
  206. package/resources/deposits.js.map +1 -0
  207. package/resources/deposits.mjs +12 -0
  208. package/resources/deposits.mjs.map +1 -0
  209. package/resources/dispute-alerts.d.mts +10 -10
  210. package/resources/dispute-alerts.d.mts.map +1 -1
  211. package/resources/dispute-alerts.d.ts +10 -10
  212. package/resources/dispute-alerts.d.ts.map +1 -1
  213. package/resources/dispute-alerts.js +13 -13
  214. package/resources/dispute-alerts.js.map +1 -1
  215. package/resources/dispute-alerts.mjs +13 -13
  216. package/resources/dispute-alerts.mjs.map +1 -1
  217. package/resources/disputes.d.mts +13 -15
  218. package/resources/disputes.d.mts.map +1 -1
  219. package/resources/disputes.d.ts +13 -15
  220. package/resources/disputes.d.ts.map +1 -1
  221. package/resources/disputes.js +11 -11
  222. package/resources/disputes.js.map +1 -1
  223. package/resources/disputes.mjs +11 -11
  224. package/resources/disputes.mjs.map +1 -1
  225. package/resources/dm-channels.d.mts +37 -37
  226. package/resources/dm-channels.d.mts.map +1 -1
  227. package/resources/dm-channels.d.ts +37 -37
  228. package/resources/dm-channels.d.ts.map +1 -1
  229. package/resources/dm-channels.js +19 -19
  230. package/resources/dm-channels.js.map +1 -1
  231. package/resources/dm-channels.mjs +19 -19
  232. package/resources/dm-channels.mjs.map +1 -1
  233. package/resources/dm-members.d.mts +38 -38
  234. package/resources/dm-members.d.mts.map +1 -1
  235. package/resources/dm-members.d.ts +38 -38
  236. package/resources/dm-members.d.ts.map +1 -1
  237. package/resources/dm-members.js +21 -21
  238. package/resources/dm-members.js.map +1 -1
  239. package/resources/dm-members.mjs +21 -21
  240. package/resources/dm-members.mjs.map +1 -1
  241. package/resources/entries.d.mts +5 -5
  242. package/resources/entries.d.mts.map +1 -1
  243. package/resources/entries.d.ts +5 -5
  244. package/resources/entries.d.ts.map +1 -1
  245. package/resources/entries.js +7 -7
  246. package/resources/entries.js.map +1 -1
  247. package/resources/entries.mjs +7 -7
  248. package/resources/entries.mjs.map +1 -1
  249. package/resources/experiences.d.mts +50 -50
  250. package/resources/experiences.d.mts.map +1 -1
  251. package/resources/experiences.d.ts +50 -50
  252. package/resources/experiences.d.ts.map +1 -1
  253. package/resources/experiences.js +17 -17
  254. package/resources/experiences.js.map +1 -1
  255. package/resources/experiences.mjs +17 -17
  256. package/resources/experiences.mjs.map +1 -1
  257. package/resources/fee-markups.d.mts +36 -36
  258. package/resources/fee-markups.d.mts.map +1 -1
  259. package/resources/fee-markups.d.ts +36 -36
  260. package/resources/fee-markups.d.ts.map +1 -1
  261. package/resources/fee-markups.js +18 -18
  262. package/resources/fee-markups.js.map +1 -1
  263. package/resources/fee-markups.mjs +18 -18
  264. package/resources/fee-markups.mjs.map +1 -1
  265. package/resources/files.d.mts +18 -1
  266. package/resources/files.d.mts.map +1 -1
  267. package/resources/files.d.ts +18 -1
  268. package/resources/files.d.ts.map +1 -1
  269. package/resources/forum-posts.d.mts +52 -48
  270. package/resources/forum-posts.d.mts.map +1 -1
  271. package/resources/forum-posts.d.ts +52 -48
  272. package/resources/forum-posts.d.ts.map +1 -1
  273. package/resources/forum-posts.js +21 -21
  274. package/resources/forum-posts.js.map +1 -1
  275. package/resources/forum-posts.mjs +21 -21
  276. package/resources/forum-posts.mjs.map +1 -1
  277. package/resources/forums.d.mts +33 -33
  278. package/resources/forums.d.mts.map +1 -1
  279. package/resources/forums.d.ts +33 -33
  280. package/resources/forums.d.ts.map +1 -1
  281. package/resources/forums.js +11 -11
  282. package/resources/forums.js.map +1 -1
  283. package/resources/forums.mjs +11 -11
  284. package/resources/forums.mjs.map +1 -1
  285. package/resources/index.d.mts +45 -35
  286. package/resources/index.d.mts.map +1 -1
  287. package/resources/index.d.ts +45 -35
  288. package/resources/index.d.ts.map +1 -1
  289. package/resources/index.js +22 -2
  290. package/resources/index.js.map +1 -1
  291. package/resources/index.mjs +10 -0
  292. package/resources/index.mjs.map +1 -1
  293. package/resources/invoices.d.mts +86 -81
  294. package/resources/invoices.d.mts.map +1 -1
  295. package/resources/invoices.d.ts +86 -81
  296. package/resources/invoices.d.ts.map +1 -1
  297. package/resources/invoices.js +40 -40
  298. package/resources/invoices.js.map +1 -1
  299. package/resources/invoices.mjs +40 -40
  300. package/resources/invoices.mjs.map +1 -1
  301. package/resources/leads.d.mts +53 -53
  302. package/resources/leads.d.mts.map +1 -1
  303. package/resources/leads.d.ts +53 -53
  304. package/resources/leads.d.ts.map +1 -1
  305. package/resources/leads.js +24 -24
  306. package/resources/leads.js.map +1 -1
  307. package/resources/leads.mjs +24 -24
  308. package/resources/leads.mjs.map +1 -1
  309. package/resources/ledger-accounts.d.mts +34 -1
  310. package/resources/ledger-accounts.d.mts.map +1 -1
  311. package/resources/ledger-accounts.d.ts +34 -1
  312. package/resources/ledger-accounts.d.ts.map +1 -1
  313. package/resources/members.d.mts +9 -7
  314. package/resources/members.d.mts.map +1 -1
  315. package/resources/members.d.ts +9 -7
  316. package/resources/members.d.ts.map +1 -1
  317. package/resources/members.js +7 -7
  318. package/resources/members.js.map +1 -1
  319. package/resources/members.mjs +7 -7
  320. package/resources/members.mjs.map +1 -1
  321. package/resources/memberships.d.mts +61 -47
  322. package/resources/memberships.d.mts.map +1 -1
  323. package/resources/memberships.d.ts +61 -47
  324. package/resources/memberships.d.ts.map +1 -1
  325. package/resources/memberships.js +38 -38
  326. package/resources/memberships.js.map +1 -1
  327. package/resources/memberships.mjs +38 -38
  328. package/resources/memberships.mjs.map +1 -1
  329. package/resources/messages.d.mts +36 -36
  330. package/resources/messages.d.mts.map +1 -1
  331. package/resources/messages.d.ts +36 -36
  332. package/resources/messages.d.ts.map +1 -1
  333. package/resources/messages.js +16 -16
  334. package/resources/messages.js.map +1 -1
  335. package/resources/messages.mjs +16 -16
  336. package/resources/messages.mjs.map +1 -1
  337. package/resources/payment-methods.d.mts +20 -20
  338. package/resources/payment-methods.d.mts.map +1 -1
  339. package/resources/payment-methods.d.ts +20 -20
  340. package/resources/payment-methods.d.ts.map +1 -1
  341. package/resources/payment-methods.js +10 -10
  342. package/resources/payment-methods.js.map +1 -1
  343. package/resources/payment-methods.mjs +10 -10
  344. package/resources/payment-methods.mjs.map +1 -1
  345. package/resources/payments.d.mts +172 -145
  346. package/resources/payments.d.mts.map +1 -1
  347. package/resources/payments.d.ts +172 -145
  348. package/resources/payments.d.ts.map +1 -1
  349. package/resources/payments.js +68 -68
  350. package/resources/payments.js.map +1 -1
  351. package/resources/payments.mjs +68 -68
  352. package/resources/payments.mjs.map +1 -1
  353. package/resources/payout-accounts.d.mts +1 -1
  354. package/resources/payout-accounts.d.ts +1 -1
  355. package/resources/payout-methods.d.mts +5 -5
  356. package/resources/payout-methods.d.mts.map +1 -1
  357. package/resources/payout-methods.d.ts +5 -5
  358. package/resources/payout-methods.d.ts.map +1 -1
  359. package/resources/payout-methods.js +10 -10
  360. package/resources/payout-methods.js.map +1 -1
  361. package/resources/payout-methods.mjs +10 -10
  362. package/resources/payout-methods.mjs.map +1 -1
  363. package/resources/plans.d.mts +128 -70
  364. package/resources/plans.d.mts.map +1 -1
  365. package/resources/plans.d.ts +128 -70
  366. package/resources/plans.d.ts.map +1 -1
  367. package/resources/plans.js +21 -21
  368. package/resources/plans.js.map +1 -1
  369. package/resources/plans.mjs +21 -21
  370. package/resources/plans.mjs.map +1 -1
  371. package/resources/products.d.mts +81 -65
  372. package/resources/products.d.mts.map +1 -1
  373. package/resources/products.d.ts +81 -65
  374. package/resources/products.d.ts.map +1 -1
  375. package/resources/products.js +25 -25
  376. package/resources/products.js.map +1 -1
  377. package/resources/products.mjs +25 -25
  378. package/resources/products.mjs.map +1 -1
  379. package/resources/promo-codes.d.mts +59 -59
  380. package/resources/promo-codes.d.mts.map +1 -1
  381. package/resources/promo-codes.d.ts +59 -59
  382. package/resources/promo-codes.d.ts.map +1 -1
  383. package/resources/promo-codes.js +22 -22
  384. package/resources/promo-codes.js.map +1 -1
  385. package/resources/promo-codes.mjs +22 -22
  386. package/resources/promo-codes.mjs.map +1 -1
  387. package/resources/reactions.d.mts +25 -25
  388. package/resources/reactions.d.mts.map +1 -1
  389. package/resources/reactions.d.ts +25 -25
  390. package/resources/reactions.d.ts.map +1 -1
  391. package/resources/reactions.js +11 -11
  392. package/resources/reactions.js.map +1 -1
  393. package/resources/reactions.mjs +11 -11
  394. package/resources/reactions.mjs.map +1 -1
  395. package/resources/refunds.d.mts +59 -10
  396. package/resources/refunds.d.mts.map +1 -1
  397. package/resources/refunds.d.ts +59 -10
  398. package/resources/refunds.d.ts.map +1 -1
  399. package/resources/refunds.js +12 -10
  400. package/resources/refunds.js.map +1 -1
  401. package/resources/refunds.mjs +12 -10
  402. package/resources/refunds.mjs.map +1 -1
  403. package/resources/resolution-center-cases.d.mts +6 -6
  404. package/resources/resolution-center-cases.d.mts.map +1 -1
  405. package/resources/resolution-center-cases.d.ts +6 -6
  406. package/resources/resolution-center-cases.d.ts.map +1 -1
  407. package/resources/resolution-center-cases.js +10 -10
  408. package/resources/resolution-center-cases.js.map +1 -1
  409. package/resources/resolution-center-cases.mjs +10 -10
  410. package/resources/resolution-center-cases.mjs.map +1 -1
  411. package/resources/reviews.d.mts +4 -4
  412. package/resources/reviews.d.mts.map +1 -1
  413. package/resources/reviews.d.ts +4 -4
  414. package/resources/reviews.d.ts.map +1 -1
  415. package/resources/reviews.js +6 -6
  416. package/resources/reviews.js.map +1 -1
  417. package/resources/reviews.mjs +6 -6
  418. package/resources/reviews.mjs.map +1 -1
  419. package/resources/setup-intents.d.mts +6 -6
  420. package/resources/setup-intents.d.mts.map +1 -1
  421. package/resources/setup-intents.d.ts +6 -6
  422. package/resources/setup-intents.d.ts.map +1 -1
  423. package/resources/setup-intents.js +11 -11
  424. package/resources/setup-intents.js.map +1 -1
  425. package/resources/setup-intents.mjs +11 -11
  426. package/resources/setup-intents.mjs.map +1 -1
  427. package/resources/shared.d.mts +89 -6
  428. package/resources/shared.d.mts.map +1 -1
  429. package/resources/shared.d.ts +89 -6
  430. package/resources/shared.d.ts.map +1 -1
  431. package/resources/shipments.d.mts +35 -35
  432. package/resources/shipments.d.mts.map +1 -1
  433. package/resources/shipments.d.ts +35 -35
  434. package/resources/shipments.d.ts.map +1 -1
  435. package/resources/shipments.js +20 -20
  436. package/resources/shipments.js.map +1 -1
  437. package/resources/shipments.mjs +20 -20
  438. package/resources/shipments.mjs.map +1 -1
  439. package/resources/support-channels.d.mts +35 -34
  440. package/resources/support-channels.d.mts.map +1 -1
  441. package/resources/support-channels.d.ts +35 -34
  442. package/resources/support-channels.d.ts.map +1 -1
  443. package/resources/support-channels.js +21 -21
  444. package/resources/support-channels.js.map +1 -1
  445. package/resources/support-channels.mjs +21 -21
  446. package/resources/support-channels.mjs.map +1 -1
  447. package/resources/swaps.d.mts +62 -0
  448. package/resources/swaps.d.mts.map +1 -0
  449. package/resources/swaps.d.ts +62 -0
  450. package/resources/swaps.d.ts.map +1 -0
  451. package/resources/swaps.js +15 -0
  452. package/resources/swaps.js.map +1 -0
  453. package/resources/swaps.mjs +11 -0
  454. package/resources/swaps.mjs.map +1 -0
  455. package/resources/transfers.d.mts +57 -55
  456. package/resources/transfers.d.mts.map +1 -1
  457. package/resources/transfers.d.ts +57 -55
  458. package/resources/transfers.d.ts.map +1 -1
  459. package/resources/transfers.js +19 -19
  460. package/resources/transfers.js.map +1 -1
  461. package/resources/transfers.mjs +19 -19
  462. package/resources/transfers.mjs.map +1 -1
  463. package/resources/users.d.mts +20 -20
  464. package/resources/users.d.mts.map +1 -1
  465. package/resources/users.d.ts +20 -20
  466. package/resources/users.d.ts.map +1 -1
  467. package/resources/users.js +16 -16
  468. package/resources/users.js.map +1 -1
  469. package/resources/users.mjs +16 -16
  470. package/resources/users.mjs.map +1 -1
  471. package/resources/verifications.d.mts +2 -2
  472. package/resources/verifications.d.ts +2 -2
  473. package/resources/wallets.d.mts +89 -0
  474. package/resources/wallets.d.mts.map +1 -0
  475. package/resources/wallets.d.ts +89 -0
  476. package/resources/wallets.d.ts.map +1 -0
  477. package/resources/wallets.js +28 -0
  478. package/resources/wallets.js.map +1 -0
  479. package/resources/wallets.mjs +24 -0
  480. package/resources/wallets.mjs.map +1 -0
  481. package/resources/webhooks.d.mts +2182 -1196
  482. package/resources/webhooks.d.mts.map +1 -1
  483. package/resources/webhooks.d.ts +2182 -1196
  484. package/resources/webhooks.d.ts.map +1 -1
  485. package/resources/webhooks.js +31 -31
  486. package/resources/webhooks.js.map +1 -1
  487. package/resources/webhooks.mjs +31 -31
  488. package/resources/webhooks.mjs.map +1 -1
  489. package/resources/withdrawals.d.mts +47 -47
  490. package/resources/withdrawals.d.mts.map +1 -1
  491. package/resources/withdrawals.d.ts +47 -47
  492. package/resources/withdrawals.d.ts.map +1 -1
  493. package/resources/withdrawals.js +21 -21
  494. package/resources/withdrawals.js.map +1 -1
  495. package/resources/withdrawals.mjs +21 -21
  496. package/resources/withdrawals.mjs.map +1 -1
  497. package/src/client.ts +277 -60
  498. package/src/internal/types.ts +6 -8
  499. package/src/internal/utils/log.ts +2 -0
  500. package/src/resources/accounts.ts +318 -0
  501. package/src/resources/ad-campaigns.ts +376 -0
  502. package/src/resources/ad-groups.ts +1958 -0
  503. package/src/resources/ad-reports.ts +484 -0
  504. package/src/resources/ads.ts +295 -0
  505. package/src/resources/affiliates/affiliates.ts +39 -39
  506. package/src/resources/affiliates/index.ts +2 -2
  507. package/src/resources/affiliates/overrides.ts +51 -51
  508. package/src/resources/ai-chats.ts +33 -33
  509. package/src/resources/app-builds.ts +68 -68
  510. package/src/resources/apps.ts +86 -86
  511. package/src/resources/authorized-users.ts +48 -48
  512. package/src/resources/bounties.ts +353 -0
  513. package/src/resources/chat-channels.ts +57 -57
  514. package/src/resources/checkout-configurations.ts +97 -63
  515. package/src/resources/companies.ts +123 -41
  516. package/src/resources/company-token-transactions.ts +55 -55
  517. package/src/resources/conversions.ts +316 -0
  518. package/src/resources/course-chapters.ts +47 -47
  519. package/src/resources/course-lesson-interactions.ts +12 -12
  520. package/src/resources/course-lessons.ts +54 -54
  521. package/src/resources/course-students.ts +12 -12
  522. package/src/resources/courses.ts +51 -51
  523. package/src/resources/deposits.ts +87 -0
  524. package/src/resources/dispute-alerts.ts +18 -18
  525. package/src/resources/disputes.ts +18 -20
  526. package/src/resources/dm-channels.ts +45 -45
  527. package/src/resources/dm-members.ts +45 -45
  528. package/src/resources/entries.ts +10 -10
  529. package/src/resources/experiences.ts +64 -64
  530. package/src/resources/fee-markups.ts +44 -44
  531. package/src/resources/files.ts +23 -1
  532. package/src/resources/forum-posts.ts +65 -60
  533. package/src/resources/forums.ts +44 -44
  534. package/src/resources/index.ts +129 -57
  535. package/src/resources/invoices.ts +113 -107
  536. package/src/resources/leads.ts +64 -64
  537. package/src/resources/ledger-accounts.ts +41 -1
  538. package/src/resources/members.ts +14 -12
  539. package/src/resources/memberships.ts +73 -61
  540. package/src/resources/messages.ts +48 -48
  541. package/src/resources/payment-methods.ts +30 -30
  542. package/src/resources/payments.ts +222 -183
  543. package/src/resources/payout-accounts.ts +1 -1
  544. package/src/resources/payout-methods.ts +11 -11
  545. package/src/resources/plans.ts +151 -88
  546. package/src/resources/products.ts +98 -84
  547. package/src/resources/promo-codes.ts +74 -74
  548. package/src/resources/reactions.ts +33 -33
  549. package/src/resources/refunds.ts +65 -15
  550. package/src/resources/resolution-center-cases.ts +11 -12
  551. package/src/resources/reviews.ts +7 -7
  552. package/src/resources/setup-intents.ts +13 -13
  553. package/src/resources/shared.ts +94 -5
  554. package/src/resources/shipments.ts +44 -44
  555. package/src/resources/support-channels.ts +46 -45
  556. package/src/resources/swaps.ts +87 -0
  557. package/src/resources/transfers.ts +68 -66
  558. package/src/resources/users.ts +29 -29
  559. package/src/resources/verifications.ts +2 -2
  560. package/src/resources/wallets.ts +136 -0
  561. package/src/resources/webhooks.ts +2449 -1277
  562. package/src/resources/withdrawals.ts +55 -55
  563. package/src/version.ts +1 -1
  564. package/version.d.mts +1 -1
  565. package/version.d.ts +1 -1
  566. package/version.js +1 -1
  567. package/version.mjs +1 -1
@@ -8,14 +8,14 @@ import { RequestOptions } from "../internal/request-options.js";
8
8
  */
9
9
  export declare class Messages extends APIResource {
10
10
  /**
11
- * Send a new message in an experience chat, DM, or group chat channel. Supports
12
- * text content, attachments, polls, and replies.
11
+ * Returns a paginated list of messages within a specific experience chat, DM, or
12
+ * group chat channel, sorted by creation time.
13
13
  *
14
14
  * Required permissions:
15
15
  *
16
- * - `chat:message:create`
16
+ * - `chat:read`
17
17
  */
18
- create(body: MessageCreateParams, options?: RequestOptions): APIPromise<Shared.Message>;
18
+ list(query: MessageListParams, options?: RequestOptions): PagePromise<MessageListResponsesCursorPage, MessageListResponse>;
19
19
  /**
20
20
  * Retrieves the details of an existing message.
21
21
  *
@@ -25,19 +25,19 @@ export declare class Messages extends APIResource {
25
25
  */
26
26
  retrieve(id: string, options?: RequestOptions): APIPromise<Shared.Message>;
27
27
  /**
28
- * Edit the content, attachments, or pinned status of an existing message in an
29
- * experience chat, DM, or group chat channel.
30
- */
31
- update(id: string, body?: MessageUpdateParams | null | undefined, options?: RequestOptions): APIPromise<Shared.Message>;
32
- /**
33
- * Returns a paginated list of messages within a specific experience chat, DM, or
34
- * group chat channel, sorted by creation time.
28
+ * Send a new message in an experience chat, DM, or group chat channel. Supports
29
+ * text content, attachments, polls, and replies.
35
30
  *
36
31
  * Required permissions:
37
32
  *
38
- * - `chat:read`
33
+ * - `chat:message:create`
39
34
  */
40
- list(query: MessageListParams, options?: RequestOptions): PagePromise<MessageListResponsesCursorPage, MessageListResponse>;
35
+ create(body: MessageCreateParams, options?: RequestOptions): APIPromise<Shared.Message>;
36
+ /**
37
+ * Edit the content, attachments, or pinned status of an existing message in an
38
+ * experience chat, DM, or group chat channel.
39
+ */
40
+ update(id: string, body?: MessageUpdateParams | null | undefined, options?: RequestOptions): APIPromise<Shared.Message>;
41
41
  /**
42
42
  * Permanently delete a message from an experience chat, DM, or group chat channel.
43
43
  * Only the message author or a channel admin can delete a message.
@@ -197,6 +197,28 @@ export declare namespace MessageListResponse {
197
197
  * Represents `true` or `false` values.
198
198
  */
199
199
  export type MessageDeleteResponse = boolean;
200
+ export interface MessageListParams extends CursorPageParams {
201
+ /**
202
+ * The unique identifier of the channel or experience to list messages for.
203
+ */
204
+ channel_id: string;
205
+ /**
206
+ * Returns the elements in the list that come before the specified cursor.
207
+ */
208
+ before?: string | null;
209
+ /**
210
+ * The direction of the sort.
211
+ */
212
+ direction?: Shared.Direction | null;
213
+ /**
214
+ * Returns the first _n_ elements from the list.
215
+ */
216
+ first?: number | null;
217
+ /**
218
+ * Returns the last _n_ elements from the list.
219
+ */
220
+ last?: number | null;
221
+ }
200
222
  export interface MessageCreateParams {
201
223
  /**
202
224
  * The unique identifier of the channel or experience to send the message in. For
@@ -288,29 +310,7 @@ export declare namespace MessageUpdateParams {
288
310
  id: string;
289
311
  }
290
312
  }
291
- export interface MessageListParams extends CursorPageParams {
292
- /**
293
- * The unique identifier of the channel or experience to list messages for.
294
- */
295
- channel_id: string;
296
- /**
297
- * Returns the elements in the list that come before the specified cursor.
298
- */
299
- before?: string | null;
300
- /**
301
- * The direction of the sort.
302
- */
303
- direction?: Shared.Direction | null;
304
- /**
305
- * Returns the first _n_ elements from the list.
306
- */
307
- first?: number | null;
308
- /**
309
- * Returns the last _n_ elements from the list.
310
- */
311
- last?: number | null;
312
- }
313
313
  export declare namespace Messages {
314
- export { type MessageListResponse as MessageListResponse, type MessageDeleteResponse as MessageDeleteResponse, type MessageListResponsesCursorPage as MessageListResponsesCursorPage, type MessageCreateParams as MessageCreateParams, type MessageUpdateParams as MessageUpdateParams, type MessageListParams as MessageListParams, };
314
+ export { type MessageListResponse as MessageListResponse, type MessageDeleteResponse as MessageDeleteResponse, type MessageListResponsesCursorPage as MessageListResponsesCursorPage, type MessageListParams as MessageListParams, type MessageCreateParams as MessageCreateParams, type MessageUpdateParams as MessageUpdateParams, };
315
315
  }
316
316
  //# sourceMappingURL=messages.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../src/resources/messages.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE;OAClD,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;;;;;OAOG;IACH,MAAM,CAAC,IAAI,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,M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internal/utils/path.js");
10
10
  */
11
11
  class Messages extends resource_1.APIResource {
12
12
  /**
13
- * Send a new message in an experience chat, DM, or group chat channel. Supports
14
- * text content, attachments, polls, and replies.
13
+ * Returns a paginated list of messages within a specific experience chat, DM, or
14
+ * group chat channel, sorted by creation time.
15
15
  *
16
16
  * Required permissions:
17
17
  *
18
- * - `chat:message:create`
18
+ * - `chat:read`
19
19
  */
20
- create(body, options) {
21
- return this._client.post('/messages', { body, ...options });
20
+ list(query, options) {
21
+ return this._client.getAPIList('/messages', (pagination_1.CursorPage), { query, ...options });
22
22
  }
23
23
  /**
24
24
  * Retrieves the details of an existing message.
@@ -30,6 +30,17 @@ class Messages extends resource_1.APIResource {
30
30
  retrieve(id, options) {
31
31
  return this._client.get((0, path_1.path) `/messages/${id}`, options);
32
32
  }
33
+ /**
34
+ * Send a new message in an experience chat, DM, or group chat channel. Supports
35
+ * text content, attachments, polls, and replies.
36
+ *
37
+ * Required permissions:
38
+ *
39
+ * - `chat:message:create`
40
+ */
41
+ create(body, options) {
42
+ return this._client.post('/messages', { body, ...options });
43
+ }
33
44
  /**
34
45
  * Edit the content, attachments, or pinned status of an existing message in an
35
46
  * experience chat, DM, or group chat channel.
@@ -37,17 +48,6 @@ class Messages extends resource_1.APIResource {
37
48
  update(id, body = {}, options) {
38
49
  return this._client.patch((0, path_1.path) `/messages/${id}`, { body, ...options });
39
50
  }
40
- /**
41
- * Returns a paginated list of messages within a specific experience chat, DM, or
42
- * group chat channel, sorted by creation time.
43
- *
44
- * Required permissions:
45
- *
46
- * - `chat:read`
47
- */
48
- list(query, options) {
49
- return this._client.getAPIList('/messages', (pagination_1.CursorPage), { query, ...options });
50
- }
51
51
  /**
52
52
  * Permanently delete a message from an experience chat, DM, or group chat channel.
53
53
  * Only the message author or a channel admin can delete a message.
@@ -1 +1 @@
1
- {"version":3,"file":"messages.js","sourceRoot":"","sources":["../src/resources/messages.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AA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;;;;OAOG;IACH,IAAI,CACF,KAAwB,EACxB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,WAAW,EAAE,CAAA,uBAA+B,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtG,CAAC;IAED;;;;;;OAMG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,aAAa,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC1D,CAAC;IAED;;;;;;;OAOG;IACH,MAAM,CAAC,IAAyB,EAAE,OAAwB;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9D,CAAC;IAED;;;OAGG;IACH,MAAM,CACJ,EAAU,EACV,OAA+C,EAAE,EACjD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,aAAa,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzE,CAAC;IAED;;;;;;;OAOG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,aAAa,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC7D,CAAC;CACF;AA9DD,4BA8DC"}
@@ -7,15 +7,15 @@ import { path } from "../internal/utils/path.mjs";
7
7
  */
8
8
  export class Messages extends APIResource {
9
9
  /**
10
- * Send a new message in an experience chat, DM, or group chat channel. Supports
11
- * text content, attachments, polls, and replies.
10
+ * Returns a paginated list of messages within a specific experience chat, DM, or
11
+ * group chat channel, sorted by creation time.
12
12
  *
13
13
  * Required permissions:
14
14
  *
15
- * - `chat:message:create`
15
+ * - `chat:read`
16
16
  */
17
- create(body, options) {
18
- return this._client.post('/messages', { body, ...options });
17
+ list(query, options) {
18
+ return this._client.getAPIList('/messages', (CursorPage), { query, ...options });
19
19
  }
20
20
  /**
21
21
  * Retrieves the details of an existing message.
@@ -27,6 +27,17 @@ export class Messages extends APIResource {
27
27
  retrieve(id, options) {
28
28
  return this._client.get(path `/messages/${id}`, options);
29
29
  }
30
+ /**
31
+ * Send a new message in an experience chat, DM, or group chat channel. Supports
32
+ * text content, attachments, polls, and replies.
33
+ *
34
+ * Required permissions:
35
+ *
36
+ * - `chat:message:create`
37
+ */
38
+ create(body, options) {
39
+ return this._client.post('/messages', { body, ...options });
40
+ }
30
41
  /**
31
42
  * Edit the content, attachments, or pinned status of an existing message in an
32
43
  * experience chat, DM, or group chat channel.
@@ -34,17 +45,6 @@ export class Messages extends APIResource {
34
45
  update(id, body = {}, options) {
35
46
  return this._client.patch(path `/messages/${id}`, { body, ...options });
36
47
  }
37
- /**
38
- * Returns a paginated list of messages within a specific experience chat, DM, or
39
- * group chat channel, sorted by creation time.
40
- *
41
- * Required permissions:
42
- *
43
- * - `chat:read`
44
- */
45
- list(query, options) {
46
- return this._client.getAPIList('/messages', (CursorPage), { query, ...options });
47
- }
48
48
  /**
49
49
  * Permanently delete a message from an experience chat, DM, or group chat channel.
50
50
  * Only the message author or a channel admin can delete a message.
@@ -1 +1 @@
1
- {"version":3,"file":"messages.mjs","sourceRoot":"","sources":["../src/resources/messages.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,UAAU,EAAsC;OAElD,EAAE,IAAI,EAAE;AAEf;;GAEG;AACH,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC;;;;;;;OAOG;IACH,MAAM,CAAC,IAAyB,EAAE,OAAwB;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9D,CAAC;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AO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,aAAa,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC1D,CAAC;IAED;;;;;;;OAOG;IACH,MAAM,CAAC,IAAyB,EAAE,OAAwB;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9D,CAAC;IAED;;;OAGG;IACH,MAAM,CACJ,EAAU,EACV,OAA+C,EAAE,EACjD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,aAAa,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzE,CAAC;IAED;;;;;;;OAOG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,aAAa,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC7D,CAAC;CACF"}
@@ -9,24 +9,24 @@ import { RequestOptions } from "../internal/request-options.mjs";
9
9
  */
10
10
  export declare class PaymentMethods extends APIResource {
11
11
  /**
12
- * Retrieves the details of an existing payment method.
12
+ * Returns a paginated list of payment methods for a member or company, with
13
+ * optional filtering by creation date. A payment method is a stored representation
14
+ * of how a customer intends to pay, such as a card, bank account, or digital
15
+ * wallet.
13
16
  *
14
17
  * Required permissions:
15
18
  *
16
19
  * - `member:payment_methods:read`
17
20
  */
18
- retrieve(id: string, query?: PaymentMethodRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<PaymentMethodRetrieveResponse>;
21
+ list(query?: PaymentMethodListParams | null | undefined, options?: RequestOptions): PagePromise<PaymentMethodListResponsesCursorPage, PaymentMethodListResponse>;
19
22
  /**
20
- * Returns a paginated list of payment methods for a member or company, with
21
- * optional filtering by creation date. A payment method is a stored representation
22
- * of how a customer intends to pay, such as a card, bank account, or digital
23
- * wallet.
23
+ * Retrieves the details of an existing payment method.
24
24
  *
25
25
  * Required permissions:
26
26
  *
27
27
  * - `member:payment_methods:read`
28
28
  */
29
- list(query?: PaymentMethodListParams | null | undefined, options?: RequestOptions): PagePromise<PaymentMethodListResponsesCursorPage, PaymentMethodListResponse>;
29
+ retrieve(id: string, query?: PaymentMethodRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<PaymentMethodRetrieveResponse>;
30
30
  }
31
31
  export type PaymentMethodListResponsesCursorPage = CursorPage<PaymentMethodListResponse>;
32
32
  /**
@@ -623,18 +623,6 @@ export declare namespace PaymentMethodListResponse {
623
623
  }
624
624
  }
625
625
  }
626
- export interface PaymentMethodRetrieveParams {
627
- /**
628
- * The unique identifier of the company. Provide either this or member_id, not
629
- * both.
630
- */
631
- company_id?: string | null;
632
- /**
633
- * The unique identifier of the member. Provide either this or company_id, not
634
- * both.
635
- */
636
- member_id?: string | null;
637
- }
638
626
  export interface PaymentMethodListParams extends CursorPageParams {
639
627
  /**
640
628
  * Returns the elements in the list that come before the specified cursor.
@@ -670,7 +658,19 @@ export interface PaymentMethodListParams extends CursorPageParams {
670
658
  */
671
659
  member_id?: string | null;
672
660
  }
661
+ export interface PaymentMethodRetrieveParams {
662
+ /**
663
+ * The unique identifier of the company. Provide either this or member_id, not
664
+ * both.
665
+ */
666
+ company_id?: string | null;
667
+ /**
668
+ * The unique identifier of the member. Provide either this or company_id, not
669
+ * both.
670
+ */
671
+ member_id?: string | null;
672
+ }
673
673
  export declare namespace PaymentMethods {
674
- export { type PaymentMethodRetrieveResponse as PaymentMethodRetrieveResponse, type PaymentMethodListResponse as PaymentMethodListResponse, type PaymentMethodListResponsesCursorPage as PaymentMethodListResponsesCursorPage, type PaymentMethodRetrieveParams as PaymentMethodRetrieveParams, type PaymentMethodListParams as PaymentMethodListParams, };
674
+ export { type PaymentMethodRetrieveResponse as PaymentMethodRetrieveResponse, type PaymentMethodListResponse as PaymentMethodListResponse, type PaymentMethodListResponsesCursorPage as PaymentMethodListResponsesCursorPage, type PaymentMethodListParams as PaymentMethodListParams, type PaymentMethodRetrieveParams as PaymentMethodRetrieveParams, };
675
675
  }
676
676
  //# sourceMappingURL=payment-methods.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"payment-methods.d.mts","sourceRoot":"","sources":["../src/resources/payment-methods.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,WAAW;OAChB,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE;OAClD,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,cAAe,SAAQ,WAAW;IAC7C;;;;;;OAMG;IACH,QAAQ,CACN,EAAE,EAAE,MAAM,EACV,KAAK,GAAE,2BAA2B,GAAG,IAAI,GAAG,SAAc,EAC1D,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,6BAA6B,CAAC;IAI5C;;;;;;;;;OASG;IACH,IAAI,CACF,KAAK,GAAE,uBAAuB,GAAG,IAAI,GAAG,SAAc,EACtD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,oCAAoC,EAAE,yBAAyB,CAAC;CAMhF;AAED,MAAM,MAAM,oCAAoC,GAAG,UAAU,CAAC,yBAAyB,CAAC,CAAC;AAEzF;;GAEG;AACH,MAAM,MAAM,6BAA6B,GACrC,6BAA6B,CAAC,iBAAiB,GAC/C,6BAA6B,CAAC,iBAAiB,GAC/C,6BAA6B,CAAC,0BAA0B,GACxD,6BAA6B,CAAC,oBAAoB,GAClD,6BAA6B,CAAC,kBAAkB,GAChD,6BAA6B,CAAC,sBAAsB,CAAC;AAEzD,yBAAiB,6BAA6B,CAAC;IAC7C;;OAEG;IACH,UAAiB,iBAAiB;QAChC;;;;;;WAMG;QACH,EAAE,EAAE,MAAM,CAAC;QAEX;;WAEG;QACH,UAAU,EAAE,MAAM,CAAC;QAEnB;;;WAGG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are class PaymentMethods extends APIResource {
11
11
  /**
12
- * Retrieves the details of an existing payment method.
12
+ * Returns a paginated list of payment methods for a member or company, with
13
+ * optional filtering by creation date. A payment method is a stored representation
14
+ * of how a customer intends to pay, such as a card, bank account, or digital
15
+ * wallet.
13
16
  *
14
17
  * Required permissions:
15
18
  *
16
19
  * - `member:payment_methods:read`
17
20
  */
18
- retrieve(id: string, query?: PaymentMethodRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<PaymentMethodRetrieveResponse>;
21
+ list(query?: PaymentMethodListParams | null | undefined, options?: RequestOptions): PagePromise<PaymentMethodListResponsesCursorPage, PaymentMethodListResponse>;
19
22
  /**
20
- * Returns a paginated list of payment methods for a member or company, with
21
- * optional filtering by creation date. A payment method is a stored representation
22
- * of how a customer intends to pay, such as a card, bank account, or digital
23
- * wallet.
23
+ * Retrieves the details of an existing payment method.
24
24
  *
25
25
  * Required permissions:
26
26
  *
27
27
  * - `member:payment_methods:read`
28
28
  */
29
- list(query?: PaymentMethodListParams | null | undefined, options?: RequestOptions): PagePromise<PaymentMethodListResponsesCursorPage, PaymentMethodListResponse>;
29
+ retrieve(id: string, query?: PaymentMethodRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<PaymentMethodRetrieveResponse>;
30
30
  }
31
31
  export type PaymentMethodListResponsesCursorPage = CursorPage<PaymentMethodListResponse>;
32
32
  /**
@@ -623,18 +623,6 @@ export declare namespace PaymentMethodListResponse {
623
623
  }
624
624
  }
625
625
  }
626
- export interface PaymentMethodRetrieveParams {
627
- /**
628
- * The unique identifier of the company. Provide either this or member_id, not
629
- * both.
630
- */
631
- company_id?: string | null;
632
- /**
633
- * The unique identifier of the member. Provide either this or company_id, not
634
- * both.
635
- */
636
- member_id?: string | null;
637
- }
638
626
  export interface PaymentMethodListParams extends CursorPageParams {
639
627
  /**
640
628
  * Returns the elements in the list that come before the specified cursor.
@@ -670,7 +658,19 @@ export interface PaymentMethodListParams extends CursorPageParams {
670
658
  */
671
659
  member_id?: string | null;
672
660
  }
661
+ export interface PaymentMethodRetrieveParams {
662
+ /**
663
+ * The unique identifier of the company. Provide either this or member_id, not
664
+ * both.
665
+ */
666
+ company_id?: string | null;
667
+ /**
668
+ * The unique identifier of the member. Provide either this or company_id, not
669
+ * both.
670
+ */
671
+ member_id?: string | null;
672
+ }
673
673
  export declare namespace PaymentMethods {
674
- export { type PaymentMethodRetrieveResponse as PaymentMethodRetrieveResponse, type PaymentMethodListResponse as PaymentMethodListResponse, type PaymentMethodListResponsesCursorPage as PaymentMethodListResponsesCursorPage, type PaymentMethodRetrieveParams as PaymentMethodRetrieveParams, type PaymentMethodListParams as PaymentMethodListParams, };
674
+ export { type PaymentMethodRetrieveResponse as PaymentMethodRetrieveResponse, type PaymentMethodListResponse as PaymentMethodListResponse, type PaymentMethodListResponsesCursorPage as PaymentMethodListResponsesCursorPage, type PaymentMethodListParams as PaymentMethodListParams, type PaymentMethodRetrieveParams as PaymentMethodRetrieveParams, };
675
675
  }
676
676
  //# sourceMappingURL=payment-methods.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"payment-methods.d.ts","sourceRoot":"","sources":["../src/resources/payment-methods.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,WAAW;OAChB,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE;OAClD,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,cAAe,SAAQ,WAAW;IAC7C;;;;;;OAMG;IACH,QAAQ,CACN,EAAE,EAAE,MAAM,EACV,KAAK,GAAE,2BAA2B,GAAG,IAAI,GAAG,SAAc,EAC1D,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,6BAA6B,CAAC;IAI5C;;;;;;;;;OASG;IACH,IAAI,CACF,KAAK,GAAE,uBAAuB,GAAG,IAAI,GAAG,SAAc,EACtD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,C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M,GAAG,IAAI,CAAC;CAC3B;AAED,MAAM,WAAW,2BAA2B;IAC1C;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE3B;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC3B;AAED,MAAM,CAAC,OAAO,WAAW,cAAc,CAAC;IACtC,OAAO,EACL,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,oCAAoC,IAAI,oCAAoC,EACjF,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,2BAA2B,IAAI,2BAA2B,GAChE,CAAC;CACH"}
@@ -9,16 +9,6 @@ const path_1 = require("../internal/utils/path.js");
9
9
  * Payment methods
10
10
  */
11
11
  class PaymentMethods extends resource_1.APIResource {
12
- /**
13
- * Retrieves the details of an existing payment method.
14
- *
15
- * Required permissions:
16
- *
17
- * - `member:payment_methods:read`
18
- */
19
- retrieve(id, query = {}, options) {
20
- return this._client.get((0, path_1.path) `/payment_methods/${id}`, { query, ...options });
21
- }
22
12
  /**
23
13
  * Returns a paginated list of payment methods for a member or company, with
24
14
  * optional filtering by creation date. A payment method is a stored representation
@@ -35,6 +25,16 @@ class PaymentMethods extends resource_1.APIResource {
35
25
  ...options,
36
26
  });
37
27
  }
28
+ /**
29
+ * Retrieves the details of an existing payment method.
30
+ *
31
+ * Required permissions:
32
+ *
33
+ * - `member:payment_methods:read`
34
+ */
35
+ retrieve(id, query = {}, options) {
36
+ return this._client.get((0, path_1.path) `/payment_methods/${id}`, { query, ...options });
37
+ }
38
38
  }
39
39
  exports.PaymentMethods = PaymentMethods;
40
40
  //# sourceMappingURL=payment-methods.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"payment-methods.js","sourceRoot":"","sources":["../src/resources/payment-methods.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,sDAAoF;AAEpF,oDAA8C;AAE9C;;GAEG;AACH,MAAa,cAAe,SAAQ,sBAAW;IAC7C;;;;;;OAMG;IACH,QAAQ,CACN,EAAU,EACV,QAAwD,EAAE,EAC1D,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,oBAAoB,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/E,CAAC;IAED;;;;;;;;;OASG;IACH,IAAI,CACF,QAAoD,EAAE,EACtD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,kBAAkB,EAAE,CAAA,uBAAqC,CAAA,EAAE;YACxF,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;CACF;AAnCD,wCAmCC"}
1
+ {"version":3,"file":"payment-methods.js","sourceRoot":"","sources":["../src/resources/payment-methods.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,sDAAoF;AAEpF,oDAA8C;AAE9C;;GAEG;AACH,MAAa,cAAe,SAAQ,sBAAW;IAC7C;;;;;;;;;OASG;IACH,IAAI,CACF,QAAoD,EAAE,EACtD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,kBAAkB,EAAE,CAAA,uBAAqC,CAAA,EAAE;YACxF,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;OAMG;IACH,QAAQ,CACN,EAAU,EACV,QAAwD,EAAE,EAC1D,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,oBAAoB,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/E,CAAC;CACF;AAnCD,wCAmCC"}
@@ -6,16 +6,6 @@ import { path } from "../internal/utils/path.mjs";
6
6
  * Payment methods
7
7
  */
8
8
  export class PaymentMethods extends APIResource {
9
- /**
10
- * Retrieves the details of an existing payment method.
11
- *
12
- * Required permissions:
13
- *
14
- * - `member:payment_methods:read`
15
- */
16
- retrieve(id, query = {}, options) {
17
- return this._client.get(path `/payment_methods/${id}`, { query, ...options });
18
- }
19
9
  /**
20
10
  * Returns a paginated list of payment methods for a member or company, with
21
11
  * optional filtering by creation date. A payment method is a stored representation
@@ -32,5 +22,15 @@ export class PaymentMethods extends APIResource {
32
22
  ...options,
33
23
  });
34
24
  }
25
+ /**
26
+ * Retrieves the details of an existing payment method.
27
+ *
28
+ * Required permissions:
29
+ *
30
+ * - `member:payment_methods:read`
31
+ */
32
+ retrieve(id, query = {}, options) {
33
+ return this._client.get(path `/payment_methods/${id}`, { query, ...options });
34
+ }
35
35
  }
36
36
  //# sourceMappingURL=payment-methods.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"payment-methods.mjs","sourceRoot":"","sources":["../src/resources/payment-methods.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAIf,EAAE,UAAU,EAAsC;OAElD,EAAE,IAAI,EAAE;AAEf;;GAEG;AACH,MAAM,OAAO,cAAe,SAAQ,WAAW;IAC7C;;;;;;OAMG;IACH,QAAQ,CACN,EAAU,EACV,QAAwD,EAAE,EAC1D,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,oBAAoB,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/E,CAAC;IAED;;;;;;;;;OASG;IACH,IAAI,CACF,QAAoD,EAAE,EACtD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,kBAAkB,EAAE,CAAA,UAAqC,CAAA,EAAE;YACxF,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;CACF"}
1
+ {"version":3,"file":"payment-methods.mjs","sourceRoot":"","sources":["../src/resources/payment-methods.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAIf,EAAE,UAAU,EAAsC;OAElD,EAAE,IAAI,EAAE;AAEf;;GAEG;AACH,MAAM,OAAO,cAAe,SAAQ,WAAW;IAC7C;;;;;;;;;OASG;IACH,IAAI,CACF,QAAoD,EAAE,EACtD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,kBAAkB,EAAE,CAAA,UAAqC,CAAA,EAAE;YACxF,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;OAMG;IACH,QAAQ,CACN,EAAU,EACV,QAAwD,EAAE,EAC1D,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,oBAAoB,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/E,CAAC;CACF"}