src/app/models/p2p-combined-request.model.ts
Properties |
constructor(payment: Payment, template: Template)
|
amount |
amount:
|
Type : number
|
defaultContactMethod |
defaultContactMethod:
|
Type : string
|
memo |
memo:
|
Type : string
|
name |
name:
|
Type : string
|
p2PPayToEmailAddress |
p2PPayToEmailAddress:
|
Type : string
|
p2PPayToPhoneNumber |
p2PPayToPhoneNumber:
|
Type : string
|
payFromAccount |
payFromAccount:
|
Type : string
|
payFromBankAccountDescription |
payFromBankAccountDescription:
|
Type : string
|
secret |
secret:
|
Type : string
|
import { BankAccount, Payment, Template } from './';
export class CombinedRequest {
name: string;
amount: number;
p2PPayToEmailAddress: string;
p2PPayToPhoneNumber: string;
secret: string;
payFromAccount: string;
payFromBankAccountDescription: string;
memo: string;
defaultContactMethod: string;
constructor(payment: Payment, template: Template) {
this.amount = payment.amount;
this.name = template.name;
this.memo = payment.memo;
this.p2PPayToEmailAddress = template.p2PPayToEmailAddress;
this.p2PPayToPhoneNumber = template.p2PPayToPhoneNumber;
this.payFromAccount = template.payFromBankAccount.accountNumber;
this.payFromBankAccountDescription = template.payFromBankAccount.accountType;
this.secret = template.secret;
this.defaultContactMethod = template.defaultContactMethod;
}
}