@sgftech/medusa-plugin-marketplace-v2 0.1.26
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/.babelrc.js +12 -0
- package/.eslintrc.js +68 -0
- package/.vscode/settings.json +2 -0
- package/.yarnrc.yml +1 -0
- package/README.md +70 -0
- package/SECURITY.md +21 -0
- package/data/seed-onboarding.json +141 -0
- package/data/seed.json +1006 -0
- package/dist/api/middlewares/authenticate-user.d.ts +15 -0
- package/dist/api/middlewares/authenticate-user.js +212 -0
- package/dist/api/middlewares/authenticate-user.js.map +1 -0
- package/dist/api/middlewares/logged-in-user-v2.d.ts +3 -0
- package/dist/api/middlewares/logged-in-user-v2.js +69 -0
- package/dist/api/middlewares/logged-in-user-v2.js.map +1 -0
- package/dist/api/middlewares/logged-in-user.d.ts +1 -0
- package/dist/api/middlewares/logged-in-user.js +18 -0
- package/dist/api/middlewares/logged-in-user.js.map +1 -0
- package/dist/api/routes/admin/create-product.d.ts +1 -0
- package/dist/api/routes/admin/create-product.js +19 -0
- package/dist/api/routes/admin/create-product.js.map +1 -0
- package/dist/api/routes/admin/create-store.d.ts +1 -0
- package/dist/api/routes/admin/create-store.js +19 -0
- package/dist/api/routes/admin/create-store.js.map +1 -0
- package/dist/api/routes/admin/create-user.d.ts +1 -0
- package/dist/api/routes/admin/create-user.js +19 -0
- package/dist/api/routes/admin/create-user.js.map +1 -0
- package/dist/index.d.ts +0 -0
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -0
- package/dist/migrations/1629000000000-create-workflow-table.d.ts +5 -0
- package/dist/migrations/1629000000000-create-workflow-table.js +29 -0
- package/dist/migrations/1629000000000-create-workflow-table.js.map +1 -0
- package/dist/migrations/1629000000001-workflow-table-stage.d.ts +5 -0
- package/dist/migrations/1629000000001-workflow-table-stage.js +48 -0
- package/dist/migrations/1629000000001-workflow-table-stage.js.map +1 -0
- package/dist/migrations/1632467997443-workflow-requests.d.ts +5 -0
- package/dist/migrations/1632467997443-workflow-requests.js +48 -0
- package/dist/migrations/1632467997443-workflow-requests.js.map +1 -0
- package/dist/migrations/1632468000000-update-workflow-keys-table.d.ts +5 -0
- package/dist/migrations/1632468000000-update-workflow-keys-table.js +31 -0
- package/dist/migrations/1632468000000-update-workflow-keys-table.js.map +1 -0
- package/dist/migrations/1632470000000-add-approvers-to-workflow-stage.d.ts +5 -0
- package/dist/migrations/1632470000000-add-approvers-to-workflow-stage.js +52 -0
- package/dist/migrations/1632470000000-add-approvers-to-workflow-stage.js.map +1 -0
- package/dist/migrations/1632471000000-update-user-table-for-approvers.d.ts +5 -0
- package/dist/migrations/1632471000000-update-user-table-for-approvers.js +43 -0
- package/dist/migrations/1632471000000-update-user-table-for-approvers.js.map +1 -0
- package/dist/migrations/1632472000000-update-workflow-request-table-for-approvals.d.ts +5 -0
- package/dist/migrations/1632472000000-update-workflow-request-table-for-approvals.js +43 -0
- package/dist/migrations/1632472000000-update-workflow-request-table-for-approvals.js.map +1 -0
- package/dist/migrations/1632473000000-create-approval-table.d.ts +5 -0
- package/dist/migrations/1632473000000-create-approval-table.js +54 -0
- package/dist/migrations/1632473000000-create-approval-table.js.map +1 -0
- package/dist/migrations/1652101349791-order.migration.d.ts +6 -0
- package/dist/migrations/1652101349791-order.migration.js +26 -0
- package/dist/migrations/1652101349791-order.migration.js.map +1 -0
- package/dist/migrations/1655123458263-invite.migration.d.ts +6 -0
- package/dist/migrations/1655123458263-invite.migration.js +23 -0
- package/dist/migrations/1655123458263-invite.migration.js.map +1 -0
- package/dist/migrations/1655131148363-role.migration.d.ts +6 -0
- package/dist/migrations/1655131148363-role.migration.js +32 -0
- package/dist/migrations/1655131148363-role.migration.js.map +1 -0
- package/dist/migrations/1655131601491-permission.migration.d.ts +6 -0
- package/dist/migrations/1655131601491-permission.migration.js +47 -0
- package/dist/migrations/1655131601491-permission.migration.js.map +1 -0
- package/dist/migrations/1655132360987-user.migration.d.ts +6 -0
- package/dist/migrations/1655132360987-user.migration.js +29 -0
- package/dist/migrations/1655132360987-user.migration.js.map +1 -0
- package/dist/migrations/1666588571522-user.migration.d.ts +6 -0
- package/dist/migrations/1666588571522-user.migration.js +27 -0
- package/dist/migrations/1666588571522-user.migration.js.map +1 -0
- package/dist/migrations/1666588577183-store.migration.d.ts +6 -0
- package/dist/migrations/1666588577183-store.migration.js +26 -0
- package/dist/migrations/1666588577183-store.migration.js.map +1 -0
- package/dist/migrations/1667045765051-customer.migration.d.ts +6 -0
- package/dist/migrations/1667045765051-customer.migration.js +33 -0
- package/dist/migrations/1667045765051-customer.migration.js.map +1 -0
- package/dist/migrations/1683175918497-add-user-stores.migration.d.ts +6 -0
- package/dist/migrations/1683175918497-add-user-stores.migration.js +60 -0
- package/dist/migrations/1683175918497-add-user-stores.migration.js.map +1 -0
- package/dist/migrations/1683177500538-add-product-store-id.migration.d.ts +6 -0
- package/dist/migrations/1683177500538-add-product-store-id.migration.js +53 -0
- package/dist/migrations/1683177500538-add-product-store-id.migration.js.map +1 -0
- package/dist/migrations/address.migration.d.ts +6 -0
- package/dist/migrations/address.migration.js +25 -0
- package/dist/migrations/address.migration.js.map +1 -0
- package/dist/migrations/product.migration.d.ts +6 -0
- package/dist/migrations/product.migration.js +21 -0
- package/dist/migrations/product.migration.js.map +1 -0
- package/dist/migrations/stage-status.d.ts +5 -0
- package/dist/migrations/stage-status.js +22 -0
- package/dist/migrations/stage-status.js.map +1 -0
- package/dist/migrations/user.migration.d.ts +6 -0
- package/dist/migrations/user.migration.js +21 -0
- package/dist/migrations/user.migration.js.map +1 -0
- package/dist/models/address.d.ts +3 -0
- package/dist/models/address.js +18 -0
- package/dist/models/address.js.map +1 -0
- package/dist/models/customer.d.ts +9 -0
- package/dist/models/customer.js +49 -0
- package/dist/models/customer.js.map +1 -0
- package/dist/models/invite.d.ts +6 -0
- package/dist/models/invite.js +32 -0
- package/dist/models/invite.js.map +1 -0
- package/dist/models/order.d.ts +9 -0
- package/dist/models/order.js +48 -0
- package/dist/models/order.js.map +1 -0
- package/dist/models/permission.d.ts +8 -0
- package/dist/models/permission.js +56 -0
- package/dist/models/permission.js.map +1 -0
- package/dist/models/product.d.ts +5 -0
- package/dist/models/product.js +43 -0
- package/dist/models/product.js.map +1 -0
- package/dist/models/role.d.ts +12 -0
- package/dist/models/role.js +68 -0
- package/dist/models/role.js.map +1 -0
- package/dist/models/setting.d.ts +69 -0
- package/dist/models/setting.js +46 -0
- package/dist/models/setting.js.map +1 -0
- package/dist/models/store.d.ts +15 -0
- package/dist/models/store.js +85 -0
- package/dist/models/store.js.map +1 -0
- package/dist/models/user.d.ts +15 -0
- package/dist/models/user.js +76 -0
- package/dist/models/user.js.map +1 -0
- package/dist/models/workflow-approval.d.ts +8 -0
- package/dist/models/workflow-approval.js +37 -0
- package/dist/models/workflow-approval.js.map +1 -0
- package/dist/models/workflow-requests.d.ts +9 -0
- package/dist/models/workflow-requests.js +42 -0
- package/dist/models/workflow-requests.js.map +1 -0
- package/dist/models/workflow-stage.d.ts +8 -0
- package/dist/models/workflow-stage.js +38 -0
- package/dist/models/workflow-stage.js.map +1 -0
- package/dist/models/workflow.d.ts +8 -0
- package/dist/models/workflow.js +37 -0
- package/dist/models/workflow.js.map +1 -0
- package/dist/repositories/address.d.ts +7 -0
- package/dist/repositories/address.js +11 -0
- package/dist/repositories/address.js.map +1 -0
- package/dist/repositories/currency.d.ts +7 -0
- package/dist/repositories/currency.js +11 -0
- package/dist/repositories/currency.js.map +1 -0
- package/dist/repositories/customer.d.ts +12 -0
- package/dist/repositories/customer.js +11 -0
- package/dist/repositories/customer.js.map +1 -0
- package/dist/repositories/invite.d.ts +7 -0
- package/dist/repositories/invite.js +11 -0
- package/dist/repositories/invite.js.map +1 -0
- package/dist/repositories/order.d.ts +9 -0
- package/dist/repositories/order.js +11 -0
- package/dist/repositories/order.js.map +1 -0
- package/dist/repositories/permission.d.ts +3 -0
- package/dist/repositories/permission.js +8 -0
- package/dist/repositories/permission.js.map +1 -0
- package/dist/repositories/product.d.ts +43 -0
- package/dist/repositories/product.js +11 -0
- package/dist/repositories/product.js.map +1 -0
- package/dist/repositories/role.d.ts +3 -0
- package/dist/repositories/role.js +8 -0
- package/dist/repositories/role.js.map +1 -0
- package/dist/repositories/store.d.ts +7 -0
- package/dist/repositories/store.js +11 -0
- package/dist/repositories/store.js.map +1 -0
- package/dist/repositories/user.d.ts +7 -0
- package/dist/repositories/user.js +11 -0
- package/dist/repositories/user.js.map +1 -0
- package/dist/services/currency.d.ts +24 -0
- package/dist/services/currency.js +49 -0
- package/dist/services/currency.js.map +1 -0
- package/dist/services/customer.d.ts +34 -0
- package/dist/services/customer.js +137 -0
- package/dist/services/customer.js.map +1 -0
- package/dist/services/process-constant.d.ts +17 -0
- package/dist/services/process-constant.js +27 -0
- package/dist/services/process-constant.js.map +1 -0
- package/dist/services/product.d.ts +121 -0
- package/dist/services/product.js +382 -0
- package/dist/services/product.js.map +1 -0
- package/dist/services/region.d.ts +42 -0
- package/dist/services/region.js +190 -0
- package/dist/services/region.js.map +1 -0
- package/dist/services/store.d.ts +98 -0
- package/dist/services/store.js +607 -0
- package/dist/services/store.js.map +1 -0
- package/dist/services/user.d.ts +74 -0
- package/dist/services/user.js +356 -0
- package/dist/services/user.js.map +1 -0
- package/dist/services/workflow-request.d.ts +14 -0
- package/dist/services/workflow-request.js +100 -0
- package/dist/services/workflow-request.js.map +1 -0
- package/dist/services/workflow-stage.d.ts +19 -0
- package/dist/services/workflow-stage.js +46 -0
- package/dist/services/workflow-stage.js.map +1 -0
- package/dist/services/workflow.d.ts +22 -0
- package/dist/services/workflow.js +108 -0
- package/dist/services/workflow.js.map +1 -0
- package/dist/subscribers/customer.d.ts +5 -0
- package/dist/subscribers/customer.js +20 -0
- package/dist/subscribers/customer.js.map +1 -0
- package/dist/subscribers/product.d.ts +11 -0
- package/dist/subscribers/product.js +30 -0
- package/dist/subscribers/product.js.map +1 -0
- package/dist/subscribers/store.d.ts +25 -0
- package/dist/subscribers/store.js +54 -0
- package/dist/subscribers/store.js.map +1 -0
- package/dist/subscribers/user.d.ts +16 -0
- package/dist/subscribers/user.js +62 -0
- package/dist/subscribers/user.js.map +1 -0
- package/dist/types/global.d.ts +1 -0
- package/dist/types/global.js +3 -0
- package/dist/types/global.js.map +1 -0
- package/dist/types/oidc-types.d.ts +13 -0
- package/dist/types/oidc-types.js +3 -0
- package/dist/types/oidc-types.js.map +1 -0
- package/index.js +50 -0
- package/package.json +105 -0
- package/tsconfig.admin.json +8 -0
- package/tsconfig.json +33 -0
- package/tsconfig.server.json +8 -0
- package/tsconfig.spec.json +5 -0
- package/yarn-error.log +12869 -0
package/.babelrc.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
let ignore = [`**/dist`]
|
|
2
|
+
|
|
3
|
+
// Jest needs to compile this code, but generally we don't want this copied
|
|
4
|
+
// to output folders
|
|
5
|
+
if (process.env.NODE_ENV !== `test`) {
|
|
6
|
+
ignore.push(`**/__tests__`)
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
module.exports = {
|
|
10
|
+
presets: [["babel-preset-medusa-package"], ["@babel/preset-typescript"]],
|
|
11
|
+
ignore,
|
|
12
|
+
}
|
package/.eslintrc.js
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
extends: ["plugin:@typescript-eslint/recommended", "prettier"],
|
|
3
|
+
plugins: ["@typescript-eslint", "prettier"],
|
|
4
|
+
rules: {
|
|
5
|
+
"prettier/prettier": [
|
|
6
|
+
"error",
|
|
7
|
+
{
|
|
8
|
+
"endOfLine": "auto",
|
|
9
|
+
"quoteProps": "consistent",
|
|
10
|
+
"printWidth": 80,
|
|
11
|
+
"editor.formatOnSave": true,
|
|
12
|
+
"proseWrap": "always",
|
|
13
|
+
"tabSize": 4,
|
|
14
|
+
"tabWidth": 4,
|
|
15
|
+
"requireConfig": false,
|
|
16
|
+
"useTabs": false,
|
|
17
|
+
"trailingComma": "none",
|
|
18
|
+
"bracketSpacing": true,
|
|
19
|
+
"jsxBracketSameLine": false,
|
|
20
|
+
"semi": true
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
usePrettierrc: true
|
|
24
|
+
}
|
|
25
|
+
],
|
|
26
|
+
"object-curly-spacing": [2, "always"],
|
|
27
|
+
"quotes": [2, "double", { avoidEscape: true }],
|
|
28
|
+
"curly": [2, "all"],
|
|
29
|
+
"new-cap": "off",
|
|
30
|
+
"require-jsdoc": "off",
|
|
31
|
+
"semi": "error",
|
|
32
|
+
"no-unused-expressions": "off",
|
|
33
|
+
"camelcase": "off",
|
|
34
|
+
"no-invalid-this": "off"
|
|
35
|
+
},
|
|
36
|
+
overrides: [
|
|
37
|
+
{
|
|
38
|
+
files: ["*.ts"],
|
|
39
|
+
parser: "@typescript-eslint/parser",
|
|
40
|
+
plugins: ["@typescript-eslint/eslint-plugin"],
|
|
41
|
+
extends: [
|
|
42
|
+
"plugin:@typescript-eslint/recommended",
|
|
43
|
+
"eslint:recommended",
|
|
44
|
+
"eslint-config-prettier",
|
|
45
|
+
"google",
|
|
46
|
+
"prettier"
|
|
47
|
+
],
|
|
48
|
+
rules: {
|
|
49
|
+
"valid-jsdoc": [
|
|
50
|
+
"error",
|
|
51
|
+
{
|
|
52
|
+
requireParamType: false,
|
|
53
|
+
requireReturnType: false,
|
|
54
|
+
prefer: {
|
|
55
|
+
arg: "param",
|
|
56
|
+
argument: "param",
|
|
57
|
+
class: "constructor",
|
|
58
|
+
return: "return",
|
|
59
|
+
virtual: "abstract"
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
],
|
|
63
|
+
"@typescript-eslint/explicit-function-return-type": ["error"],
|
|
64
|
+
"@typescript-eslint/no-non-null-assertion": ["off"]
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
]
|
|
68
|
+
};
|
package/.yarnrc.yml
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
nodeLinker: node-modules
|
package/README.md
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
<p align="center">
|
|
2
|
+
<a href="https://www.medusajs.com">
|
|
3
|
+
<picture>
|
|
4
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://user-images.githubusercontent.com/59018053/229103275-b5e482bb-4601-46e6-8142-244f531cebdb.svg">
|
|
5
|
+
<source media="(prefers-color-scheme: light)" srcset="https://user-images.githubusercontent.com/59018053/229103726-e5b529a3-9b3f-4970-8a1f-c6af37f087bf.svg">
|
|
6
|
+
<img alt="Medusa logo" src="https://user-images.githubusercontent.com/59018053/229103726-e5b529a3-9b3f-4970-8a1f-c6af37f087bf.svg">
|
|
7
|
+
</picture>
|
|
8
|
+
</a>
|
|
9
|
+
</p>
|
|
10
|
+
<h1 align="center">
|
|
11
|
+
Medusa
|
|
12
|
+
</h1>
|
|
13
|
+
|
|
14
|
+
<h4 align="center">
|
|
15
|
+
<a href="https://docs.medusajs.com">Documentation</a> |
|
|
16
|
+
<a href="https://www.medusajs.com">Website</a>
|
|
17
|
+
</h4>
|
|
18
|
+
|
|
19
|
+
<p align="center">
|
|
20
|
+
Building blocks for digital commerce
|
|
21
|
+
</p>
|
|
22
|
+
<p align="center">
|
|
23
|
+
<a href="https://github.com/medusajs/medusa/blob/master/CONTRIBUTING.md">
|
|
24
|
+
<img src="https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat" alt="PRs welcome!" />
|
|
25
|
+
</a>
|
|
26
|
+
<a href="https://www.producthunt.com/posts/medusa"><img src="https://img.shields.io/badge/Product%20Hunt-%231%20Product%20of%20the%20Day-%23DA552E" alt="Product Hunt"></a>
|
|
27
|
+
<a href="https://discord.gg/xpCwq3Kfn8">
|
|
28
|
+
<img src="https://img.shields.io/badge/chat-on%20discord-7289DA.svg" alt="Discord Chat" />
|
|
29
|
+
</a>
|
|
30
|
+
<a href="https://twitter.com/intent/follow?screen_name=medusajs">
|
|
31
|
+
<img src="https://img.shields.io/twitter/follow/medusajs.svg?label=Follow%20@medusajs" alt="Follow @medusajs" />
|
|
32
|
+
</a>
|
|
33
|
+
</p>
|
|
34
|
+
|
|
35
|
+
## Compatibility
|
|
36
|
+
|
|
37
|
+
This starter is compatible with versions >= 1.8.0 of `@medusajs/medusa`.
|
|
38
|
+
|
|
39
|
+
## Getting Started
|
|
40
|
+
|
|
41
|
+
Visit the [Quickstart Guide](https://docs.medusajs.com/create-medusa-app) to set up a server.
|
|
42
|
+
|
|
43
|
+
Visit the [Docs](https://docs.medusajs.com/development/backend/prepare-environment) to learn more about our system requirements.
|
|
44
|
+
|
|
45
|
+
## What is Medusa
|
|
46
|
+
|
|
47
|
+
Medusa is a set of commerce modules and tools that allow you to build rich, reliable, and performant commerce applications without reinventing core commerce logic. The modules can be customized and used to build advanced ecommerce stores, marketplaces, or any product that needs foundational commerce primitives. All modules are open-source and freely available on npm.
|
|
48
|
+
|
|
49
|
+
Learn more about [Medusa’s architecture](https://docs.medusajs.com/development/fundamentals/architecture-overview) and [commerce modules](https://docs.medusajs.com/modules/overview) in the Docs.
|
|
50
|
+
|
|
51
|
+
## Roadmap, Upgrades & Plugins
|
|
52
|
+
|
|
53
|
+
You can view the planned, started and completed features in the [Roadmap discussion](https://github.com/medusajs/medusa/discussions/categories/roadmap).
|
|
54
|
+
|
|
55
|
+
Follow the [Upgrade Guides](https://docs.medusajs.com/upgrade-guides/) to keep your Medusa project up-to-date.
|
|
56
|
+
|
|
57
|
+
Check out all [available Medusa plugins](https://medusajs.com/plugins/).
|
|
58
|
+
|
|
59
|
+
## Community & Contributions
|
|
60
|
+
|
|
61
|
+
The community and core team are available in [GitHub Discussions](https://github.com/medusajs/medusa/discussions), where you can ask for support, discuss roadmap, and share ideas.
|
|
62
|
+
|
|
63
|
+
Join our [Discord server](https://discord.com/invite/medusajs) to meet other community members.
|
|
64
|
+
|
|
65
|
+
## Other channels
|
|
66
|
+
|
|
67
|
+
- [GitHub Issues](https://github.com/medusajs/medusa/issues)
|
|
68
|
+
- [Twitter](https://twitter.com/medusajs)
|
|
69
|
+
- [LinkedIn](https://www.linkedin.com/company/medusajs)
|
|
70
|
+
- [Medusa Blog](https://medusajs.com/blog/)
|
package/SECURITY.md
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# Security Policy
|
|
2
|
+
|
|
3
|
+
## Supported Versions
|
|
4
|
+
|
|
5
|
+
Use this section to tell people about which versions of your project are
|
|
6
|
+
currently being supported with security updates.
|
|
7
|
+
|
|
8
|
+
| Version | Supported |
|
|
9
|
+
| ------- | ------------------ |
|
|
10
|
+
| 5.1.x | :white_check_mark: |
|
|
11
|
+
| 5.0.x | :x: |
|
|
12
|
+
| 4.0.x | :white_check_mark: |
|
|
13
|
+
| < 4.0 | :x: |
|
|
14
|
+
|
|
15
|
+
## Reporting a Vulnerability
|
|
16
|
+
|
|
17
|
+
Use this section to tell people how to report a vulnerability.
|
|
18
|
+
|
|
19
|
+
Tell them where to go, how often they can expect to get an update on a
|
|
20
|
+
reported vulnerability, what to expect if the vulnerability is accepted or
|
|
21
|
+
declined, etc.
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
{
|
|
2
|
+
"store": {
|
|
3
|
+
"currencies": [
|
|
4
|
+
"eur",
|
|
5
|
+
"usd"
|
|
6
|
+
]
|
|
7
|
+
},
|
|
8
|
+
"users": [],
|
|
9
|
+
"regions": [
|
|
10
|
+
{
|
|
11
|
+
"id": "test-region-eu",
|
|
12
|
+
"name": "EU",
|
|
13
|
+
"currency_code": "eur",
|
|
14
|
+
"tax_rate": 0,
|
|
15
|
+
"payment_providers": [
|
|
16
|
+
"manual"
|
|
17
|
+
],
|
|
18
|
+
"fulfillment_providers": [
|
|
19
|
+
"manual"
|
|
20
|
+
],
|
|
21
|
+
"countries": [
|
|
22
|
+
"gb",
|
|
23
|
+
"de",
|
|
24
|
+
"dk",
|
|
25
|
+
"se",
|
|
26
|
+
"fr",
|
|
27
|
+
"es",
|
|
28
|
+
"it"
|
|
29
|
+
]
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"id": "test-region-na",
|
|
33
|
+
"name": "NA",
|
|
34
|
+
"currency_code": "usd",
|
|
35
|
+
"tax_rate": 0,
|
|
36
|
+
"payment_providers": [
|
|
37
|
+
"manual"
|
|
38
|
+
],
|
|
39
|
+
"fulfillment_providers": [
|
|
40
|
+
"manual"
|
|
41
|
+
],
|
|
42
|
+
"countries": [
|
|
43
|
+
"us",
|
|
44
|
+
"ca"
|
|
45
|
+
]
|
|
46
|
+
}
|
|
47
|
+
],
|
|
48
|
+
"shipping_options": [
|
|
49
|
+
{
|
|
50
|
+
"name": "PostFake Standard",
|
|
51
|
+
"region_id": "test-region-eu",
|
|
52
|
+
"provider_id": "manual",
|
|
53
|
+
"data": {
|
|
54
|
+
"id": "manual-fulfillment"
|
|
55
|
+
},
|
|
56
|
+
"price_type": "flat_rate",
|
|
57
|
+
"amount": 1000
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"name": "PostFake Express",
|
|
61
|
+
"region_id": "test-region-eu",
|
|
62
|
+
"provider_id": "manual",
|
|
63
|
+
"data": {
|
|
64
|
+
"id": "manual-fulfillment"
|
|
65
|
+
},
|
|
66
|
+
"price_type": "flat_rate",
|
|
67
|
+
"amount": 1500
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"name": "PostFake Return",
|
|
71
|
+
"region_id": "test-region-eu",
|
|
72
|
+
"provider_id": "manual",
|
|
73
|
+
"data": {
|
|
74
|
+
"id": "manual-fulfillment"
|
|
75
|
+
},
|
|
76
|
+
"price_type": "flat_rate",
|
|
77
|
+
"is_return": true,
|
|
78
|
+
"amount": 1000
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"name": "I want to return it myself",
|
|
82
|
+
"region_id": "test-region-eu",
|
|
83
|
+
"provider_id": "manual",
|
|
84
|
+
"data": {
|
|
85
|
+
"id": "manual-fulfillment"
|
|
86
|
+
},
|
|
87
|
+
"price_type": "flat_rate",
|
|
88
|
+
"is_return": true,
|
|
89
|
+
"amount": 0
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"name": "FakeEx Standard",
|
|
93
|
+
"region_id": "test-region-na",
|
|
94
|
+
"provider_id": "manual",
|
|
95
|
+
"data": {
|
|
96
|
+
"id": "manual-fulfillment"
|
|
97
|
+
},
|
|
98
|
+
"price_type": "flat_rate",
|
|
99
|
+
"amount": 800
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"name": "FakeEx Express",
|
|
103
|
+
"region_id": "test-region-na",
|
|
104
|
+
"provider_id": "manual",
|
|
105
|
+
"data": {
|
|
106
|
+
"id": "manual-fulfillment"
|
|
107
|
+
},
|
|
108
|
+
"price_type": "flat_rate",
|
|
109
|
+
"amount": 1200
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"name": "FakeEx Return",
|
|
113
|
+
"region_id": "test-region-na",
|
|
114
|
+
"provider_id": "manual",
|
|
115
|
+
"data": {
|
|
116
|
+
"id": "manual-fulfillment"
|
|
117
|
+
},
|
|
118
|
+
"price_type": "flat_rate",
|
|
119
|
+
"is_return": true,
|
|
120
|
+
"amount": 800
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"name": "I want to return it myself",
|
|
124
|
+
"region_id": "test-region-na",
|
|
125
|
+
"provider_id": "manual",
|
|
126
|
+
"data": {
|
|
127
|
+
"id": "manual-fulfillment"
|
|
128
|
+
},
|
|
129
|
+
"price_type": "flat_rate",
|
|
130
|
+
"is_return": true,
|
|
131
|
+
"amount": 0
|
|
132
|
+
}
|
|
133
|
+
],
|
|
134
|
+
"products": [],
|
|
135
|
+
"categories": [],
|
|
136
|
+
"publishable_api_keys": [
|
|
137
|
+
{
|
|
138
|
+
"title": "Development"
|
|
139
|
+
}
|
|
140
|
+
]
|
|
141
|
+
}
|