palmpaywrappersdk
Version:
PalmPay Wrapper Sdk
98 lines (79 loc) • 2.56 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//import { BuildPayload } from './BuildPayload';
/*export class CreateOrderRequestBuilder extends BuildPayload {
private amount?: number;
private notifyUrl?: string;
private orderId?: string;
private title?: string;
private description?: string;
private userId?: string;
private userMobileNo?: string;
private currency?: string;
private callBackUrl?: string;
private goodsDetails?: string;
private productType?: string;
constructor(requestTime: number, version: string, nonceStr: string) {
super(requestTime, version, nonceStr);
}
public withAmount(amount: number): CreateOrderRequestBuilder {
this.amount = amount;
return this;
}
public withNotifyUrl(notifyUrl: string): CreateOrderRequestBuilder {
this.notifyUrl = notifyUrl;
return this;
}
public withOrderId(orderId: string): CreateOrderRequestBuilder {
this.orderId = orderId;
return this;
}
public withTitle(title: string): CreateOrderRequestBuilder {
this.title = title;
return this;
}
public withDescription(description: string): CreateOrderRequestBuilder {
this.description = description;
return this;
}
public withUserId(userId: string): CreateOrderRequestBuilder {
this.userId = userId;
return this;
}
public withUserMobileNo(userMobileNo: string): CreateOrderRequestBuilder {
this.userMobileNo = userMobileNo;
return this;
}
public withCurrency(currency: string): CreateOrderRequestBuilder {
this.currency = currency;
return this;
}
public withCallBackUrl(callBackUrl: string): CreateOrderRequestBuilder {
this.callBackUrl = callBackUrl;
return this;
}
public withGoodsDetails(goodsDetails: string): CreateOrderRequestBuilder {
this.goodsDetails = goodsDetails;
return this;
}
public withProductType(productType: string): CreateOrderRequestBuilder {
this.productType = productType;
return this;
}
public build(): CreateOrderRequest {
return new CreateOrderRequest(
super.build(),
this.amount,
this.notifyUrl,
this.orderId,
this.title,
this.description,
this.userId,
this.userMobileNo,
this.currency,
this.callBackUrl,
this.goodsDetails,
this.productType
);
}
} */