@owlmeans/payment 0.1.7 → 0.1.8
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.
package/README.md
CHANGED
|
@@ -82,3 +82,20 @@ Creates the payment service.
|
|
|
82
82
|
## Related Packages
|
|
83
83
|
|
|
84
84
|
- [`@owlmeans/client-payment`](../client-payment) — client-side wrapper for browser contexts
|
|
85
|
+
|
|
86
|
+
<!-- owlmeans:agent-guidance:start -->
|
|
87
|
+
## Agent guidance
|
|
88
|
+
|
|
89
|
+
This package ships embedded Claude Code skills and GitHub Copilot instructions under
|
|
90
|
+
`agent-meta/`. After installing your `@owlmeans/*` packages, run the OwlMeans
|
|
91
|
+
agent-skills installer to place them into your project's native locations
|
|
92
|
+
(`.claude/skills/` and `.github/instructions/`):
|
|
93
|
+
|
|
94
|
+
```sh
|
|
95
|
+
npx @owlmeans/agent-skills
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
The embedded files are version-matched to this package release. Do not edit them
|
|
99
|
+
directly — they are regenerated on each publish. To contribute guidance edits,
|
|
100
|
+
open a PR against the source monorepo.
|
|
101
|
+
<!-- owlmeans:agent-guidance:end -->
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: "How to use @owlmeans/payment — payment processing types, models, errors, paymentApi service alias for cross-service checkout calls."
|
|
3
|
+
applyTo: "**/*.ts, **/*.tsx"
|
|
4
|
+
---
|
|
5
|
+
<!-- AUTO-GENERATED — do not edit. Regenerate via sync-agent-meta. -->
|
|
6
|
+
|
|
7
|
+
# @owlmeans/payment
|
|
8
|
+
|
|
9
|
+
**Layer:** Core
|
|
10
|
+
**Install:** `"@owlmeans/payment": "^0.1.8"` in `dependencies`
|
|
11
|
+
|
|
12
|
+
## Key Exports
|
|
13
|
+
|
|
14
|
+
| Export | Description |
|
|
15
|
+
|--------|-------------|
|
|
16
|
+
| `paymentApi` | Service alias tree |
|
|
17
|
+
| `Payment`, `Checkout` types | Domain shapes |
|
|
18
|
+
| `paymentModules` | Entrypoints to spread into `appModules` |
|
|
19
|
+
| Errors | Typed payment errors |
|
|
20
|
+
| Constants | Payment service aliases |
|
|
21
|
+
| `model` submodule | Reusable payment models |
|
|
22
|
+
|
|
23
|
+
## Subpath Exports
|
|
24
|
+
|
|
25
|
+
- `./utils` — payment helpers
|
|
26
|
+
|
|
27
|
+
## Usage
|
|
28
|
+
|
|
29
|
+
```typescript
|
|
30
|
+
import { paymentApi, paymentModules } from '@owlmeans/payment'
|
|
31
|
+
|
|
32
|
+
export const appModules = [...modules, ...paymentModules]
|
|
33
|
+
|
|
34
|
+
const [result] = await ctx.entrypoint<ClientEntrypoint<CreateCheckoutResponse>>(
|
|
35
|
+
paymentApi.service.checkout.session.external.create
|
|
36
|
+
).call({ body: { productSku: 'tokens', entityId, successUrl } })
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
## Depends On
|
|
40
|
+
|
|
41
|
+
- `@owlmeans/entrypoint`, `@owlmeans/route`, `@owlmeans/auth`, `@owlmeans/error`, `@owlmeans/i18n`
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 1,
|
|
3
|
+
"package": "@owlmeans/payment",
|
|
4
|
+
"version": "0.1.8",
|
|
5
|
+
"generatedAt": "2026-06-11T16:30:27.183Z",
|
|
6
|
+
"canonicalRepo": "https://github.com/owlmeans/common",
|
|
7
|
+
"entries": [
|
|
8
|
+
{
|
|
9
|
+
"kind": "skill",
|
|
10
|
+
"name": "payment",
|
|
11
|
+
"category": "package-specific",
|
|
12
|
+
"file": "skills/payment/SKILL.md",
|
|
13
|
+
"canonicalPath": ".claude/skills/payment/SKILL.md"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"kind": "instruction",
|
|
17
|
+
"name": "payment",
|
|
18
|
+
"category": "package-specific",
|
|
19
|
+
"file": "instructions/payment.instructions.md",
|
|
20
|
+
"canonicalPath": ".github/instructions/payment.instructions.md"
|
|
21
|
+
}
|
|
22
|
+
]
|
|
23
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: payment
|
|
3
|
+
description: How to use @owlmeans/payment — payment processing types, models, errors, paymentApi service alias for cross-service checkout calls. Auto-invoked when importing payment types or invoking checkout flows.
|
|
4
|
+
user-invocable: false
|
|
5
|
+
---
|
|
6
|
+
<!-- AUTO-GENERATED — do not edit. Regenerate via sync-agent-meta. -->
|
|
7
|
+
|
|
8
|
+
# @owlmeans/payment
|
|
9
|
+
|
|
10
|
+
**Layer:** Core
|
|
11
|
+
**Install:** `"@owlmeans/payment": "^0.1.8"` in `dependencies`
|
|
12
|
+
|
|
13
|
+
## Key Exports
|
|
14
|
+
|
|
15
|
+
| Export | Description |
|
|
16
|
+
|--------|-------------|
|
|
17
|
+
| `paymentApi` | Service alias tree for payment endpoints (e.g. `paymentApi.service.checkout.session.external.create`) |
|
|
18
|
+
| `Payment`, `Checkout` types | Domain model shapes |
|
|
19
|
+
| `paymentModules` | Entrypoint declarations to spread into `appModules` |
|
|
20
|
+
| Errors | Typed payment errors |
|
|
21
|
+
| Constants | Payment service aliases |
|
|
22
|
+
| `model` submodule | Reusable payment models |
|
|
23
|
+
| i18n | Translatable error messages |
|
|
24
|
+
|
|
25
|
+
## Subpath Exports
|
|
26
|
+
|
|
27
|
+
- `./utils` — payment helpers
|
|
28
|
+
|
|
29
|
+
## Usage
|
|
30
|
+
|
|
31
|
+
Spread the entrypoints into your app, then call them via `ctx.entrypoint(paymentApi....)`:
|
|
32
|
+
|
|
33
|
+
```typescript
|
|
34
|
+
import { paymentApi, paymentModules } from '@owlmeans/payment'
|
|
35
|
+
import type { CreateCheckoutResponse } from '@owlmeans/payment'
|
|
36
|
+
import type { ClientEntrypoint } from '@owlmeans/entrypoint'
|
|
37
|
+
|
|
38
|
+
export const appModules = [...modules, ...paymentModules]
|
|
39
|
+
|
|
40
|
+
// In a handler:
|
|
41
|
+
const [result] = await ctx.entrypoint<ClientEntrypoint<CreateCheckoutResponse>>(
|
|
42
|
+
paymentApi.service.checkout.session.external.create
|
|
43
|
+
).call({
|
|
44
|
+
body: { productSku: 'tokens', entityId, service: VIB_ALIAS, successUrl: helper.makeUrl(service) }
|
|
45
|
+
})
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
## Depends On
|
|
49
|
+
|
|
50
|
+
- `@owlmeans/entrypoint`, `@owlmeans/route`
|
|
51
|
+
- `@owlmeans/auth`, `@owlmeans/error`, `@owlmeans/i18n`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@owlmeans/payment",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.8",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
@@ -31,15 +31,15 @@
|
|
|
31
31
|
"ajv": "*"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@owlmeans/auth": "^0.1.
|
|
35
|
-
"@owlmeans/basic-envelope": "^0.1.
|
|
36
|
-
"@owlmeans/config": "^0.1.
|
|
37
|
-
"@owlmeans/context": "^0.1.
|
|
38
|
-
"@owlmeans/error": "^0.1.
|
|
39
|
-
"@owlmeans/i18n": "^0.1.
|
|
40
|
-
"@owlmeans/entrypoint": "^0.1.
|
|
41
|
-
"@owlmeans/resource": "^0.1.
|
|
42
|
-
"@owlmeans/route": "^0.1.
|
|
34
|
+
"@owlmeans/auth": "^0.1.8",
|
|
35
|
+
"@owlmeans/basic-envelope": "^0.1.8",
|
|
36
|
+
"@owlmeans/config": "^0.1.8",
|
|
37
|
+
"@owlmeans/context": "^0.1.8",
|
|
38
|
+
"@owlmeans/error": "^0.1.8",
|
|
39
|
+
"@owlmeans/i18n": "^0.1.8",
|
|
40
|
+
"@owlmeans/entrypoint": "^0.1.8",
|
|
41
|
+
"@owlmeans/resource": "^0.1.8",
|
|
42
|
+
"@owlmeans/route": "^0.1.8"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@owlmeans/dep-config": "workspace:*",
|