merge develop

This commit is contained in:
Sebastian Rindom
2021-10-15 20:09:31 +02:00
parent 10c87e8d5a
commit 4fd361fddd
207 changed files with 8699 additions and 4124 deletions

View File

@@ -1,10 +1,10 @@
import { FulfillmentService } from "medusa-interfaces";
import { FulfillmentService } from "medusa-interfaces"
class TestFulService extends FulfillmentService {
static identifier = "test-ful";
static identifier = "test-ful"
constructor() {
super();
super()
}
getFulfillmentOptions() {
@@ -12,42 +12,42 @@ class TestFulService extends FulfillmentService {
{
id: "manual-fulfillment",
},
];
]
}
validateFulfillmentData(data, cart) {
return data;
return data
}
validateOption(data) {
return true;
return true
}
canCalculate() {
return false;
return false
}
calculatePrice() {
throw Error("Manual Fulfillment service cannot calculatePrice");
throw Error("Manual Fulfillment service cannot calculatePrice")
}
createOrder() {
// No data is being sent anywhere
return Promise.resolve({});
return Promise.resolve({})
}
createReturn() {
return Promise.resolve({});
return Promise.resolve({})
}
createFulfillment() {
// No data is being sent anywhere
return Promise.resolve({});
return Promise.resolve({})
}
cancelFulfillment() {
return Promise.resolve({});
return Promise.resolve({})
}
}
export default TestFulService;
export default TestFulService

View File

@@ -1,19 +1,19 @@
import { NotificationService } from "medusa-interfaces";
import { NotificationService } from "medusa-interfaces"
class TestNotiService extends NotificationService {
static identifier = "test-not";
static identifier = "test-not"
constructor() {
super();
super()
}
async sendNotification() {
return Promise.resolve();
return Promise.resolve()
}
async resendNotification() {
return Promise.resolve();
return Promise.resolve()
}
}
export default TestNotiService;
export default TestNotiService

View File

@@ -1,59 +1,59 @@
import { PaymentService } from "medusa-interfaces";
import { PaymentService } from "medusa-interfaces"
class TestPayService extends PaymentService {
static identifier = "test-pay";
static identifier = "test-pay"
constructor() {
super();
super()
}
async getStatus(paymentData) {
return "authorized";
return "authorized"
}
async retrieveSavedMethods(customer) {
return Promise.resolve([]);
return Promise.resolve([])
}
async createPayment() {
return {};
return {}
}
async retrievePayment(data) {
return {};
return {}
}
async getPaymentData(sessionData) {
return {};
return {}
}
async authorizePayment(sessionData, context = {}) {
return { data: {}, status: "authorized" };
return { data: {}, status: "authorized" }
}
async updatePaymentData(sessionData, update) {
return {};
return {}
}
async updatePayment(sessionData, cart) {
return {};
return {}
}
async deletePayment(payment) {
return {};
return {}
}
async capturePayment(payment) {
return {};
return {}
}
async refundPayment(payment, amountToRefund) {
return {};
return {}
}
async cancelPayment(payment) {
return {};
return {}
}
}
export default TestPayService;
export default TestPayService