feat(medusa): adds support for gift cards (#132)
* fix(medusa-plugin-brightpearl): adds gift cards to gift card nominal code * fix: allow orders with 0 total to be created * fix: gift card ready * tests passing * docs: brightpearl comment * docs: clearer REMEMBER note
This commit is contained in:
1 parent
b33fcfa182
commit
f2c62cd232
17 files changed
+316
-113
No files matched your search
@@ -294,6 +294,7 @@ describe("DiscountService", () => {
|
||||
expect(DiscountModelMock.create).toHaveBeenCalledWith({
|
||||
code: expect.stringMatching(/(([A-Z0-9]){4}(-?)){4}/),
|
||||
is_giftcard: true,
|
||||
original_amount: 100,
|
||||
discount_rule: {
|
||||
type: "fixed",
|
||||
allocation: "total",
|
||||
|
||||
Reference in new issue
Block a user