palmpaywrappersdk
Version:
PalmPay Wrapper Sdk
40 lines (39 loc) • 1.49 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.CreateOrderRequest = void 0;
const PaymentRequest_1 = require("./PaymentRequest");
class CreateOrderRequest extends PaymentRequest_1.PaymentRequest {
constructor(requestTime, version, nonceStr, amount, notifyUrl, orderId, title, description, userId, userMobileNo, currency, callBackUrl, goodsDetails, productType) {
super(requestTime, version, nonceStr);
this.amount = amount;
this.notifyUrl = notifyUrl;
this.orderId = orderId;
this.title = title;
this.description = description;
this.userId = userId;
this.userMobileNo = userMobileNo;
this.currency = currency;
this.callBackUrl = callBackUrl;
this.goodsDetails = goodsDetails;
this.productType = productType;
}
toJSON() {
return {
requestTime: this.requestTime,
version: this.version,
nonceStr: this.nonceStr,
amount: this.amount,
notifyUrl: this.notifyUrl,
orderId: this.orderId,
title: this.title,
description: this.description,
userId: this.userId,
userMobileNo: this.userMobileNo,
currency: this.currency,
callBackUrl: this.callBackUrl,
goodsDetails: this.goodsDetails,
productType: this.productType,
};
}
}
exports.CreateOrderRequest = CreateOrderRequest;