1.1.28 • Published 5 months ago

medusa-plugin-discount-generator v1.1.28

Weekly downloads
14
License
MIT
Repository
github
Last release
5 months ago

Discount Generator

Generate dynamic discount codes in your Medusa backend.

Medusa Website | Medusa Repository

Features

  • Provides a service that can be used to generate a dynamic discount with a random code.
  • Provides an endpoint that can be used to generate a dynamic discount with a random code.

Prerequisites


How to Install

1. Run the following command in the directory of the Medusa backend:

npm install medusa-plugin-discount-generator

2. In medusa-config.js add the following at the end of the plugins array:

const plugins = [
  // ...
  `medusa-plugin-discount-generator`
]

Test the Plugin

Try using the DiscountGeneratorService in your code, or using the /discount-code endpoint to generate a random discount code.

1.1.28

5 months ago

1.1.27

2 years ago

1.1.26

2 years ago

1.1.23

2 years ago

1.1.22

2 years ago

1.1.25

2 years ago

1.1.24

2 years ago

1.1.25-rc.0

2 years ago

1.1.21-alpha.0

2 years ago

1.1.21

2 years ago

1.1.20-nxt.0

2 years ago

1.1.20-alp.0

2 years ago

1.1.20-alpha.0

2 years ago

1.1.20-test.0

2 years ago

1.1.20-next.0

2 years ago

2.0.0-next.0

2 years ago

1.1.20-next.291

3 years ago

1.1.20-next.347

2 years ago

1.1.20-next.348

2 years ago

1.1.20-next.346

2 years ago

1.1.20-nxt.377

2 years ago

1.1.20-nxt.376

2 years ago

1.1.20-next.273

3 years ago

1.1.20-next.274

3 years ago

1.1.20-next.355

2 years ago

1.1.20-next.271

3 years ago

1.1.20-next.288

3 years ago

1.1.20-next.282

3 years ago

1.1.21-next.0

3 years ago

1.1.20-next.261

3 years ago

1.1.20-next.243

3 years ago

1.1.20

3 years ago

1.1.20-dev.371

3 years ago

1.1.20-dev.377

3 years ago

1.1.20-dev.380

3 years ago

1.1.20-alpha.70

3 years ago

1.1.18-next.0

3 years ago

1.1.19

3 years ago

1.1.14-meilis.49

3 years ago

1.1.15-meilis.0

3 years ago

1.1.16-next.19

3 years ago

1.1.14-alpha.49

3 years ago

1.1.14-meili.49

3 years ago

1.1.14-next.51

3 years ago

1.1.14-next.52

3 years ago

1.1.15

3 years ago

1.1.14

3 years ago

1.1.14-next.48

3 years ago

1.1.13

3 years ago

1.1.12

3 years ago

1.1.11

3 years ago

1.1.9-next.16

3 years ago

1.1.9-alpha.9

3 years ago

1.1.10

3 years ago

1.1.9

4 years ago

1.1.9-next.10

4 years ago

1.1.9-next.9

4 years ago

1.1.9-next.7

4 years ago

1.1.8

4 years ago

1.1.5-next.0

4 years ago

1.1.3

4 years ago

1.1.1-next.105

4 years ago

1.1.1-next.104

4 years ago

1.1.2

4 years ago

1.1.1-next.103

4 years ago

1.1.1-alpha.57

4 years ago

1.1.0

4 years ago

1.0.2-alpha.801

4 years ago

1.0.2-alpha.788

4 years ago

1.0.2-alpha.787

4 years ago

1.0.2-alpha.786

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago

1.0.0-alpha.26

4 years ago

1.0.0-alpha.3

4 years ago

1.0.0-alpha.2

4 years ago