"use strict";
/**
* カード決済結果通知ファクトリー
* @namespace factory.resultNotification.creditCard
*/
Object.defineProperty(exports, "__esModule", { value: true });
/**
* 結果通知本文をパースする
* @export
* @function
* @memberof factory.resultNotification.creditCard
* @param body 結果通知本文
*/
function createFromRequestBody(body) {
return {
shopId: body.ShopID,
shopPass: body.ShopPass,
accessId: body.AccessID,
accessPass: body.AccessPass,
orderId: body.OrderID,
status: body.Status,
jobCd: body.JobCd,
// tslint:disable-next-line:no-magic-numbers
amount: parseInt(body.Amount, 10),
// tslint:disable-next-line:no-magic-numbers
tax: parseInt(body.Tax, 10),
currency: body.Currency,
forward: body.Forward,
method: body.Method,
payTimes: body.PayTimes,
tranId: body.TranID,
approve: body.Approve,
tranDate: body.TranDate,
errCode: body.ErrCode,
errInfo: body.ErrInfo,
payType: body.PayType
};
}
exports.createFromRequestBody = createFromRequestBody;