You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
chatai/dist/dev/mp-weixin/utils/pay/index.js

29 lines
1.2 KiB

7 months ago
"use strict";
const utils_pay_alipay = require("./alipay.js");
const utils_pay_balance = require("./balance.js");
const utils_pay_pay = require("./pay.js");
const utils_pay_wechat = require("./wechat.js");
const utils_pay_e_wechat = require("./e_wechat.js");
const utils_pay_e_alipay = require("./e_alipay.js");
var PayWayEnum = /* @__PURE__ */ ((PayWayEnum2) => {
PayWayEnum2[PayWayEnum2["BALANCE"] = 1] = "BALANCE";
PayWayEnum2[PayWayEnum2["WECHAT"] = 2] = "WECHAT";
PayWayEnum2[PayWayEnum2["ALIPAY"] = 3] = "ALIPAY";
PayWayEnum2[PayWayEnum2["E_WECHAT"] = 4] = "E_WECHAT";
PayWayEnum2[PayWayEnum2["E_ALIPAY"] = 5] = "E_ALIPAY";
return PayWayEnum2;
})(PayWayEnum || {});
const wechat = new utils_pay_wechat.Wechat();
utils_pay_pay.Pay.inject(PayWayEnum[2], wechat);
const balance = new utils_pay_balance.Balance();
utils_pay_pay.Pay.inject(PayWayEnum[1], balance);
const alipay = new utils_pay_alipay.Alipay();
utils_pay_pay.Pay.inject(PayWayEnum[3], alipay);
const e_alipay = new utils_pay_e_alipay.EAlipay();
utils_pay_pay.Pay.inject(PayWayEnum[5], e_alipay);
const e_wechat = new utils_pay_e_wechat.EWechat();
utils_pay_pay.Pay.inject(PayWayEnum[4], e_wechat);
const pay = new utils_pay_pay.Pay();
exports.PayWayEnum = PayWayEnum;
exports.pay = pay;