Initial commit

This commit is contained in:
Sebastian Rindom
2020-01-18 14:43:52 +01:00
parent f83b33de44
commit aa6bb4648e
6 changed files with 2047 additions and 0 deletions

1
packages/medusa Submodule

Submodule packages/medusa added at 6b3ad22911

View File

@@ -0,0 +1 @@
// noop

View File

@@ -0,0 +1,25 @@
{
"name": "mrbl-payment-stripe",
"version": "1.0.0",
"description": "Stripe Payment provider for mrbl commerce",
"main": "index.js",
"repository": "",
"author": "Sebastian Rindom",
"license": "AGPL-3.0-or-later",
"devDependencies": {
"@babel/cli": "^7.7.5",
"@babel/core": "^7.7.5",
"cross-env": "^5.2.1",
"@babel/plugin-proposal-class-properties": "^7.7.4",
"@babel/plugin-transform-runtime": "^7.7.6",
"@babel/preset-env": "^7.7.5"
},
"scripts": {
"build": "babel src --out-dir . --ignore **/__tests__",
"prepare": "cross-env NODE_ENV=production npm run build",
"watch": "babel -w src --out-dir . --ignore **/__tests__"
},
"dependencies": {
"@babel/runtime": "^7.7.6"
}
}

View File

@@ -0,0 +1,51 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var _lodash = _interopRequireDefault(require("lodash"));
var _paymentService = _interopRequireDefault(require("../../../src/interfaces/payment-service"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
var StripeProviderService =
/*#__PURE__*/
function (_PaymentService) {
_inherits(StripeProviderService, _PaymentService);
function StripeProviderService(appScope, options) {
var _this;
_classCallCheck(this, StripeProviderService);
_this = _possibleConstructorReturn(this, _getPrototypeOf(StripeProviderService).call(this));
console.log(options);
return _this;
}
return StripeProviderService;
}(_paymentService["default"]);
_defineProperty(StripeProviderService, "identifier", "stripe");
var _default = StripeProviderService;
exports["default"] = _default;

View File

@@ -0,0 +1,13 @@
import _ from "lodash"
import PaymentService from "../../../src/interfaces/payment-service"
class StripeProviderService extends PaymentService {
static identifier = "stripe"
constructor(appScope, options) {
super()
console.log(options)
}
}
export default StripeProviderService

File diff suppressed because it is too large Load Diff