mirror of
https://github.com/webstudio-is/webstudio.git
synced 2026-11-08 21:15:18 +09:00
32e5f032b3e408855a10d14e4e124a6f70433404
## Description
With high probability tables will be changed.
rest endpoint created for debugging purposes.
Product intent - synchonized from 3rd parties product (stripe)
TransactionLog - product, user, status, date + debug and idempotency
params
Response example:
```json
{
"id": "0d970e5f-3344-4658-bf5d-b58c33629e4e",
"username": "admin",
"checkout": [
{
"eventId": "evt_1OD7CmBvryG8KJjl9t37DsdG",
"sessionId": "cs_test_b19O6wCvKi0MIADIs9QFZ5OB9lsC2G8HqzxyqMJO2NvnH2Bn43lyMN30V9",
"createdAt": "2023-11-16T15:47:06.706Z",
"product": {
"id": "prod_P0NaZnTWpJJ2Ay",
"name": "Webstudio Agency LTD Test",
"description": null,
"features": ["Admin permission sharing", "1000000 vews per month"],
"meta": { "hello": "world", "kototto": "kototo" },
"images": [
"https://files.stripe.com/links/MDB8YWNjdF8xS2ZtQVNCdnJ5RzhLSmpsfGZsX3Rlc3RfMGlneEV4MVVGM3hsZlY4NWxRT21ZZVY300zmmq4R99"
]
}
},
{
"eventId": "evt_1OD7pXBvryG8KJjlhlmaIWpm",
"sessionId": "cs_test_b1V2QOY7Lt21hDoCc1p9iuJ1ePaPnT2lE454dlPKHRdK62zh59K4C1tt0E",
"createdAt": "2023-11-16T15:50:13.155Z",
"product": {
"id": "prod_P0NaZnTWpJJ2Ay",
"name": "Webstudio Agency LTD Test",
"description": null,
"features": ["Admin permission sharing", "1000000 vews per month"],
"meta": { "hello": "world", "kototto": "kototo" },
"images": [
"https://files.stripe.com/links/MDB8YWNjdF8xS2ZtQVNCdnJ5RzhLSmpsfGZsX3Rlc3RfMGlneEV4MVVGM3hsZlY4NWxRT21ZZVY300zmmq4R99"
]
}
}
]
}
```
## Steps for reproduction
1. click button
2. expect xyz
## Code Review
- [ ] hi @kof, I need you to do
- conceptual review (architecture, feature-correctness)
- detailed review (read every line)
- test it on preview
## Before requesting a review
- [ ] made a self-review
- [ ] added inline comments where things may be not obvious (the "why",
not "what")
## Before merging
- [ ] tested locally and on preview environment (preview dev login:
5de6)
- [ ] updated [test
cases](https://github.com/webstudio-is/webstudio/blob/main/apps/builder/docs/test-cases.md)
document
- [ ] added tests
- [ ] if any new env variables are added, added them to `.env.example`
and the `builder/env-check.js` if mandatory
Languages
TypeScript
98.9%
PLpgSQL
0.5%
CSS
0.3%
Shell
0.2%
JavaScript
0.1%
