UNPKG

palmpaywrappersdk

Version:

PalmPay Wrapper Sdk

41 lines (40 loc) 1.38 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.CreateOrderRequest = void 0; class CreateOrderRequest { constructor(data) { this.requestTime = data.requestTime; this.version = data.version; this.nonceStr = data.nonceStr; this.amount = data.amount; this.notifyUrl = data.notifyUrl; this.orderId = data.orderId; this.title = data.title; this.description = data.description; this.userId = data.userId; this.userMobileNo = data.userMobileNo; this.currency = data.currency; this.callBackUrl = data.callBackUrl; this.goodsDetails = data.goodsDetails; this.productType = data.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;