palmpaywrappersdk
Version:
PalmPay Wrapper Sdk
39 lines (38 loc) • 1.37 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.PayInRequest = void 0;
class PayInRequest {
constructor(description, orderId, title, userId, userMobileNo, productType, amount, currency, notifyUrl, callbackUrl, orderExpireTime, goodsDetails, remark) {
this.description = description;
this.orderId = orderId;
this.title = title;
this.userId = userId;
this.userMobileNo = userMobileNo;
this.productType = productType;
this.amount = amount;
this.currency = currency;
this.notifyUrl = notifyUrl;
this.callbackUrl = callbackUrl;
this.orderExpireTime = orderExpireTime;
this.goodsDetails = goodsDetails;
this.remark = remark;
}
toJSON() {
return {
description: this.description,
orderId: this.orderId,
title: this.title,
userId: this.userId,
userMobileNo: this.userMobileNo,
productType: this.productType,
amount: this.amount,
currency: this.currency,
notifyUrl: this.notifyUrl,
callbackUrl: this.callbackUrl,
orderExpireTime: this.orderExpireTime,
goodsDetails: this.goodsDetails,
remark: this.remark,
};
}
}
exports.PayInRequest = PayInRequest;