@adonis-agora/payments 0.16.2 → 0.18.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (78) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/dist/assets/spa/assets/index-CmP4DYhG.js +10 -0
  3. package/dist/assets/spa/assets/index-CmP4DYhG.js.map +1 -0
  4. package/dist/assets/spa/index.html +1 -1
  5. package/dist/src/billing/billing_store.d.ts +26 -2
  6. package/dist/src/billing/billing_store.d.ts.map +1 -1
  7. package/dist/src/billing/billing_store.js.map +1 -1
  8. package/dist/src/billing/lucid_billing_store.d.ts +3 -1
  9. package/dist/src/billing/lucid_billing_store.d.ts.map +1 -1
  10. package/dist/src/billing/lucid_billing_store.js +9 -1
  11. package/dist/src/billing/lucid_billing_store.js.map +1 -1
  12. package/dist/src/billing/managed_subscriptions.d.ts +12 -0
  13. package/dist/src/billing/managed_subscriptions.d.ts.map +1 -1
  14. package/dist/src/billing/managed_subscriptions.js +13 -3
  15. package/dist/src/billing/managed_subscriptions.js.map +1 -1
  16. package/dist/src/billing/mixins/with_subscription.d.ts +5 -1
  17. package/dist/src/billing/mixins/with_subscription.d.ts.map +1 -1
  18. package/dist/src/billing/mixins/with_subscription.js.map +1 -1
  19. package/dist/src/billing/mixins/with_usage_event.d.ts +8 -0
  20. package/dist/src/billing/mixins/with_usage_event.d.ts.map +1 -1
  21. package/dist/src/billing/mixins/with_usage_event.js +6 -0
  22. package/dist/src/billing/mixins/with_usage_event.js.map +1 -1
  23. package/dist/src/billing/schema.d.ts.map +1 -1
  24. package/dist/src/billing/schema.js +15 -0
  25. package/dist/src/billing/schema.js.map +1 -1
  26. package/dist/src/billing/usage.d.ts +121 -0
  27. package/dist/src/billing/usage.d.ts.map +1 -0
  28. package/dist/src/billing/usage.js +123 -0
  29. package/dist/src/billing/usage.js.map +1 -0
  30. package/dist/src/drivers/asaas.d.ts.map +1 -1
  31. package/dist/src/drivers/asaas.js +41 -0
  32. package/dist/src/drivers/asaas.js.map +1 -1
  33. package/dist/src/index.d.ts +6 -4
  34. package/dist/src/index.d.ts.map +1 -1
  35. package/dist/src/index.js +2 -1
  36. package/dist/src/index.js.map +1 -1
  37. package/dist/src/invoice/drivers/asaas.d.ts +44 -1
  38. package/dist/src/invoice/drivers/asaas.d.ts.map +1 -1
  39. package/dist/src/invoice/drivers/asaas.js +152 -42
  40. package/dist/src/invoice/drivers/asaas.js.map +1 -1
  41. package/dist/src/invoice/drivers/enotas.d.ts +2 -0
  42. package/dist/src/invoice/drivers/enotas.d.ts.map +1 -1
  43. package/dist/src/invoice/drivers/enotas.js +5 -0
  44. package/dist/src/invoice/drivers/enotas.js.map +1 -1
  45. package/dist/src/invoice/drivers/focus.d.ts +2 -0
  46. package/dist/src/invoice/drivers/focus.d.ts.map +1 -1
  47. package/dist/src/invoice/drivers/focus.js +5 -0
  48. package/dist/src/invoice/drivers/focus.js.map +1 -1
  49. package/dist/src/invoice/drivers/plugnotas.d.ts +2 -0
  50. package/dist/src/invoice/drivers/plugnotas.d.ts.map +1 -1
  51. package/dist/src/invoice/drivers/plugnotas.js +5 -0
  52. package/dist/src/invoice/drivers/plugnotas.js.map +1 -1
  53. package/dist/src/invoice/drivers/shared.d.ts +7 -0
  54. package/dist/src/invoice/drivers/shared.d.ts.map +1 -0
  55. package/dist/src/invoice/drivers/shared.js +9 -0
  56. package/dist/src/invoice/drivers/shared.js.map +1 -0
  57. package/dist/src/invoice/drivers/tecnospeed.d.ts +2 -0
  58. package/dist/src/invoice/drivers/tecnospeed.d.ts.map +1 -1
  59. package/dist/src/invoice/drivers/tecnospeed.js +5 -0
  60. package/dist/src/invoice/drivers/tecnospeed.js.map +1 -1
  61. package/dist/src/invoice/emit_invoice.d.ts.map +1 -1
  62. package/dist/src/invoice/emit_invoice.js +6 -0
  63. package/dist/src/invoice/emit_invoice.js.map +1 -1
  64. package/dist/src/invoice/invoice_provider.d.ts +51 -4
  65. package/dist/src/invoice/invoice_provider.d.ts.map +1 -1
  66. package/dist/src/payments_manager.d.ts +19 -0
  67. package/dist/src/payments_manager.d.ts.map +1 -1
  68. package/dist/src/payments_manager.js +28 -0
  69. package/dist/src/payments_manager.js.map +1 -1
  70. package/dist/src/testing/in_memory_billing_store.d.ts +5 -1
  71. package/dist/src/testing/in_memory_billing_store.d.ts.map +1 -1
  72. package/dist/src/testing/in_memory_billing_store.js +6 -0
  73. package/dist/src/testing/in_memory_billing_store.js.map +1 -1
  74. package/dist/src/types.d.ts +39 -1
  75. package/dist/src/types.d.ts.map +1 -1
  76. package/package.json +44 -40
  77. package/dist/assets/spa/assets/index-1Gb8l6g0.js +0 -10
  78. package/dist/assets/spa/assets/index-1Gb8l6g0.js.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adonis-agora/payments",
3
- "version": "0.16.2",
3
+ "version": "0.18.0",
4
4
  "description": "Billing library for AdonisJS — 18 payment gateways behind one driver contract, with a Cashier-style subscription billing layer: Billable mixin, Lucid stores, idempotent webhook processing and an optional Durable-backed dispatcher. Part of the Agora ecosystem.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -8,6 +8,42 @@
8
8
  "url": "git+https://github.com/DavideCarvalho/adonis-agora-payments.git",
9
9
  "directory": "packages/adonis"
10
10
  },
11
+ "homepage": "https://davidecarvalho.github.io/agora/docs/payments",
12
+ "bugs": {
13
+ "url": "https://github.com/DavideCarvalho/adonis-agora-payments/issues"
14
+ },
15
+ "keywords": [
16
+ "adonisjs",
17
+ "adonis",
18
+ "payments",
19
+ "billing",
20
+ "subscriptions",
21
+ "stripe",
22
+ "adyen",
23
+ "paypal",
24
+ "mollie",
25
+ "razorpay",
26
+ "square",
27
+ "paddle",
28
+ "lemonsqueezy",
29
+ "polar",
30
+ "dodo",
31
+ "abacatepay",
32
+ "asaas",
33
+ "woovi",
34
+ "openpix",
35
+ "pagarme",
36
+ "infinitepay",
37
+ "pagbank",
38
+ "pagseguro",
39
+ "efi",
40
+ "gerencianet",
41
+ "mercadopago",
42
+ "pix",
43
+ "boleto",
44
+ "dashboard",
45
+ "agora"
46
+ ],
11
47
  "author": "Davi Carvalho <davi@goflip.ai>",
12
48
  "type": "module",
13
49
  "main": "./dist/src/index.js",
@@ -133,56 +169,24 @@
133
169
  },
134
170
  "devDependencies": {
135
171
  "@adonis-agora/payments-dashboard": "0.4.0",
136
- "@adonisjs/assembler": "8.5.1",
137
- "@adonisjs/core": "7.5.0",
172
+ "@adonisjs/assembler": "8.5.2",
173
+ "@adonisjs/core": "7.6.0",
138
174
  "@adonisjs/lucid": "22.4.2",
139
175
  "@mdx-js/mdx": "3.1.1",
140
- "@testcontainers/postgresql": "12.1.0",
141
- "@types/luxon": "3.7.5",
142
- "@types/node": "26.5.0",
176
+ "@testcontainers/postgresql": "12.2.1",
177
+ "@types/luxon": "3.7.6",
178
+ "@types/node": "26.6.5",
143
179
  "@types/pg": "8.23.1",
144
180
  "@woovi/node-sdk": "1.3.3",
145
181
  "luxon": "3.7.2",
146
- "pg": "8.23.0",
182
+ "pg": "8.23.1",
147
183
  "stripe": "22.6.2",
148
184
  "typescript": "7.0.2",
149
- "vitest": "5.0.0"
185
+ "vitest": "5.0.4"
150
186
  },
151
187
  "engines": {
152
188
  "node": ">=20.6.0"
153
189
  },
154
- "keywords": [
155
- "adonisjs",
156
- "adonis",
157
- "payments",
158
- "billing",
159
- "subscriptions",
160
- "stripe",
161
- "adyen",
162
- "paypal",
163
- "mollie",
164
- "razorpay",
165
- "square",
166
- "paddle",
167
- "lemonsqueezy",
168
- "polar",
169
- "dodo",
170
- "abacatepay",
171
- "asaas",
172
- "woovi",
173
- "openpix",
174
- "pagarme",
175
- "infinitepay",
176
- "pagbank",
177
- "pagseguro",
178
- "efi",
179
- "gerencianet",
180
- "mercadopago",
181
- "pix",
182
- "boleto",
183
- "dashboard",
184
- "agora"
185
- ],
186
190
  "scripts": {
187
191
  "build": "tsc -p tsconfig.json && pnpm run copy:stubs && pnpm run copy:spa",
188
192
  "copy:stubs": "mkdir -p dist/stubs/config dist/stubs/database/migrations dist/stubs/make/billable dist/stubs/make/webhook_handler && cp -r stubs/config/. dist/stubs/config/ && cp -r stubs/database/migrations/. dist/stubs/database/migrations/ && cp -r stubs/make/billable/. dist/stubs/make/billable/ && cp -r stubs/make/webhook_handler/. dist/stubs/make/webhook_handler/",