File

src/app/models/p2p-combined-request.model.ts

Index

Properties

Constructor

constructor(payment: Payment, template: Template)
Parameters :
Name Type Optional
payment Payment no
template Template no

Properties

amount
amount: number
Type : number
defaultContactMethod
defaultContactMethod: string
Type : string
memo
memo: string
Type : string
name
name: string
Type : string
p2PPayToEmailAddress
p2PPayToEmailAddress: string
Type : string
p2PPayToPhoneNumber
p2PPayToPhoneNumber: string
Type : string
payFromAccount
payFromAccount: string
Type : string
payFromBankAccountDescription
payFromBankAccountDescription: string
Type : string
secret
secret: string
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;
  }
}

results matching ""

    No results matching ""