cybersource-api
Version:
Module for connect with CyberSource by soap methods.
24 lines (20 loc) • 558 B
JavaScript
module.exports = class AuthorizationRequest {
constructor(merchantReferenceCode,billTo,card){
this.merchantReferenceCode = merchantReferenceCode;
this.billTo = billTo;
this.card = card;
this.ccAuthService = {
attributes:{run:true}
}
}
getJSON(){
return {
merchantID:this.merchantID,
merchantReferenceCode:this.merchantReferenceCode,
billTo:this.billTo.getJSON(),
purchaseTotals:this.purchaseTotals.getJSON(),
card:this.card.getJSON(),
ccAuthService: this.ccAuthService
}
}
}