UNPKG

gmopg

Version:

GMO PaymentGateway API client

59 lines (58 loc) 1.68 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = (Base) => class extends Base { async entryTran(args) { const defaultData = { ShopID: this.config.ShopID, ShopPass: this.config.ShopPass, OrderID: undefined, JobCd: undefined, Amount: undefined, }; return this.post('/payment/EntryTran.idPass', { ...defaultData, ...args, }); } async execTran(args) { return this.post('/payment/ExecTran.idPass', args); } async alterTran(args) { const defaultData = { ShopID: this.config.ShopID, ShopPass: this.config.ShopPass, AccessID: undefined, AccessPass: undefined, JobCd: undefined, }; return this.post('/payment/AlterTran.idPass', { ...defaultData, ...args, }); } async searchTrade(args) { const defaultData = { ShopID: this.config.ShopID, ShopPass: this.config.ShopPass, OrderID: undefined, }; return this.post('/payment/SearchTrade.idPass', { ...defaultData, ...args, }); } async changeTran(args) { const defaultData = { ShopID: this.config.ShopID, ShopPass: this.config.ShopPass, AccessID: undefined, AccessPass: undefined, JobCd: undefined, Amount: undefined, }; return this.post('/payment/ChangeTran.idPass', { ...defaultData, ...args, }); } };