src/app/models/payment.model.ts
constructor(payment?: Payment)
|
||||||
Defined in src/app/models/payment.model.ts:91
|
||||||
Parameters :
|
errors | ||||||
errors(errors: any)
|
||||||
Defined in src/app/models/payment.model.ts:9
|
||||||
Parameters :
Returns :
any
|
account |
account:
|
Type : BankAccount
|
Defined in src/app/models/payment.model.ts:90
|
accountDisplayName |
accountDisplayName:
|
Type : string
|
Defined in src/app/models/payment.model.ts:40
|
amount |
amount:
|
Type : number
|
Defined in src/app/models/payment.model.ts:17
|
amountFormatted |
amountFormatted:
|
Type : string
|
Defined in src/app/models/payment.model.ts:78
|
bankAccountType |
bankAccountType:
|
Type : string
|
Defined in src/app/models/payment.model.ts:84
|
branchId |
branchId:
|
Type : string
|
Defined in src/app/models/payment.model.ts:50
|
branchName |
branchName:
|
Type : string
|
Defined in src/app/models/payment.model.ts:52
|
canCancel |
canCancel:
|
Type : string
|
Defined in src/app/models/payment.model.ts:39
|
checkNumber |
checkNumber:
|
Type : string
|
Defined in src/app/models/payment.model.ts:25
|
collectionDate |
collectionDate:
|
Type : string
|
Defined in src/app/models/payment.model.ts:45
|
collectionTime |
collectionTime:
|
Type : string
|
Defined in src/app/models/payment.model.ts:38
|
collectionType |
collectionType:
|
Type : string
|
Defined in src/app/models/payment.model.ts:66
|
confirmationNumber |
confirmationNumber:
|
Type : number
|
Defined in src/app/models/payment.model.ts:37
|
contactMethod |
contactMethod:
|
Type : string
|
Defined in src/app/models/payment.model.ts:86
|
createOn |
createOn:
|
Type : string
|
Defined in src/app/models/payment.model.ts:19
|
customerId |
customerId:
|
Type : string
|
Defined in src/app/models/payment.model.ts:14
|
defaultContactMethod |
defaultContactMethod:
|
Type : string
|
Defined in src/app/models/payment.model.ts:85
|
deliveryDate |
deliveryDate:
|
Type : string
|
Defined in src/app/models/payment.model.ts:91
|
displayName |
displayName:
|
Type : string
|
Defined in src/app/models/payment.model.ts:31
|
displayStatus |
displayStatus:
|
Type : string
|
Defined in src/app/models/payment.model.ts:80
|
error |
error:
|
Type : string
|
Defined in src/app/models/payment.model.ts:88
|
expectedDeliveryDate |
expectedDeliveryDate:
|
Type : string
|
Defined in src/app/models/payment.model.ts:34
|
financialInstitutionId |
financialInstitutionId:
|
Type : string
|
Defined in src/app/models/payment.model.ts:29
|
foreignPaymentId |
foreignPaymentId:
|
Type : string
|
Defined in src/app/models/payment.model.ts:59
|
foreignSystem |
foreignSystem:
|
Type : string
|
Defined in src/app/models/payment.model.ts:60
|
fundingSource |
fundingSource:
|
Type : string
|
Defined in src/app/models/payment.model.ts:70
|
getPayFromBankAccountType |
getPayFromBankAccountType:
|
Type : string
|
Defined in src/app/models/payment.model.ts:81
|
hash |
hash:
|
Type : string
|
Defined in src/app/models/payment.model.ts:89
|
hidePayment |
hidePayment:
|
Type : string
|
Defined in src/app/models/payment.model.ts:36
|
id |
id:
|
Type : string
|
Defined in src/app/models/payment.model.ts:13
|
inFlightKey |
inFlightKey:
|
Type : string
|
Defined in src/app/models/payment.model.ts:87
|
invoiceData |
invoiceData:
|
Type : string
|
Defined in src/app/models/payment.model.ts:42
|
invoiceNumber |
invoiceNumber:
|
Type : string
|
Defined in src/app/models/payment.model.ts:51
|
isBookmarked |
isBookmarked:
|
Type : string
|
Defined in src/app/models/payment.model.ts:48
|
isElectronic |
isElectronic:
|
Type : string
|
Defined in src/app/models/payment.model.ts:20
|
isNoticeSent |
isNoticeSent:
|
Type : string
|
Defined in src/app/models/payment.model.ts:43
|
isPicturePayment |
isPicturePayment:
|
Type : string
|
Defined in src/app/models/payment.model.ts:21
|
isRealTime |
isRealTime:
|
Type : string
|
Defined in src/app/models/payment.model.ts:53
|
isRecurring |
isRecurring:
|
Type : string
|
Defined in src/app/models/payment.model.ts:23
|
isValidated |
isValidated:
|
Type : string
|
Defined in src/app/models/payment.model.ts:49
|
memo |
memo:
|
Type : string
|
Defined in src/app/models/payment.model.ts:72
|
networkSendDate |
networkSendDate:
|
Type : string
|
Defined in src/app/models/payment.model.ts:46
|
overrideCheckAccountNumber |
overrideCheckAccountNumber:
|
Type : string
|
Defined in src/app/models/payment.model.ts:65
|
overrideCheckRoutingNumber |
overrideCheckRoutingNumber:
|
Type : string
|
Defined in src/app/models/payment.model.ts:64
|
p2PExpiresOn |
p2PExpiresOn:
|
Type : string
|
Defined in src/app/models/payment.model.ts:75
|
p2PPayToEmailAddress |
p2PPayToEmailAddress:
|
Type : string
|
Defined in src/app/models/payment.model.ts:67
|
p2PPayToPhoneNumber |
p2PPayToPhoneNumber:
|
Type : string
|
Defined in src/app/models/payment.model.ts:68
|
p2PStatus |
p2PStatus:
|
Type : string
|
Defined in src/app/models/payment.model.ts:74
|
payFromAccount |
payFromAccount:
|
Type : string
|
Defined in src/app/models/payment.model.ts:33
|
payFromAccountNumberFormatted |
payFromAccountNumberFormatted:
|
Type : string
|
Defined in src/app/models/payment.model.ts:77
|
payFromBankAccount |
payFromBankAccount:
|
Type : string
|
Defined in src/app/models/payment.model.ts:76
|
payFromBankAccountDescription |
payFromBankAccountDescription:
|
Type : string
|
Defined in src/app/models/payment.model.ts:63
|
payFromBankAccountNumber |
payFromBankAccountNumber:
|
Type : string
|
Defined in src/app/models/payment.model.ts:83
|
payFromBankAccountType |
payFromBankAccountType:
|
Type : string
|
Defined in src/app/models/payment.model.ts:82
|
payFromEmail |
payFromEmail:
|
Type : string
|
Defined in src/app/models/payment.model.ts:61
|
payFromPhone |
payFromPhone:
|
Type : string
|
Defined in src/app/models/payment.model.ts:62
|
payFromRtn |
payFromRtn:
|
Type : string
|
Defined in src/app/models/payment.model.ts:73
|
paymentCategory |
paymentCategory:
|
Type : string
|
Defined in src/app/models/payment.model.ts:41
|
paymentDate |
paymentDate:
|
Type : string
|
Defined in src/app/models/payment.model.ts:18
|
paymentDateFormatted |
paymentDateFormatted:
|
Type : string
|
Defined in src/app/models/payment.model.ts:79
|
paymentTemplateId |
paymentTemplateId:
|
Type : string
|
Defined in src/app/models/payment.model.ts:26
|
paymentType |
paymentType:
|
Type : string
|
Defined in src/app/models/payment.model.ts:35
|
payToAccount |
payToAccount:
|
Type : string
|
Defined in src/app/models/payment.model.ts:30
|
payToName |
payToName:
|
Type : string
|
Defined in src/app/models/payment.model.ts:15
|
pictureId |
pictureId:
|
Type : string
|
Defined in src/app/models/payment.model.ts:22
|
promiseDate |
promiseDate:
|
Type : string
|
Defined in src/app/models/payment.model.ts:47
|
searchName |
searchName:
|
Type : string
|
Defined in src/app/models/payment.model.ts:32
|
secOverride |
secOverride:
|
Type : string
|
Defined in src/app/models/payment.model.ts:71
|
secret |
secret:
|
Type : string
|
Defined in src/app/models/payment.model.ts:69
|
sentToNetworkId |
sentToNetworkId:
|
Type : string
|
Defined in src/app/models/payment.model.ts:56
|
sentToNetworkName |
sentToNetworkName:
|
Type : string
|
Defined in src/app/models/payment.model.ts:55
|
sentToNetworkOn |
sentToNetworkOn:
|
Type : string
|
Defined in src/app/models/payment.model.ts:54
|
sentToNetworkResponse |
sentToNetworkResponse:
|
Type : string
|
Defined in src/app/models/payment.model.ts:57
|
sentToNetworkWasSuccessful |
sentToNetworkWasSuccessful:
|
Type : string
|
Defined in src/app/models/payment.model.ts:58
|
settlementDate |
settlementDate:
|
Type : string
|
Defined in src/app/models/payment.model.ts:44
|
shardKey |
shardKey:
|
Type : string
|
Defined in src/app/models/payment.model.ts:28
|
status |
status:
|
Type : string
|
Defined in src/app/models/payment.model.ts:16
|
templateType |
templateType:
|
Type : string
|
Defined in src/app/models/payment.model.ts:24
|
version |
version:
|
Type : number
|
Defined in src/app/models/payment.model.ts:27
|
import { BankAccount } from './bank-account.model';
export class PaymentInFlightResponse {
key: string;
hash: string;
}
export class Payment {
errors(errors: any): any {
throw new Error('Method not implemented.');
}
id: string;
customerId: string;
payToName: string;
status: string;
amount: number;
paymentDate: string;
createOn: string;
isElectronic: string;
isPicturePayment: string;
pictureId: string;
isRecurring: string;
templateType: string;
checkNumber: string;
paymentTemplateId: string;
version: number;
shardKey: string;
financialInstitutionId: string;
payToAccount: string;
displayName: string;
searchName: string;
payFromAccount: string;
expectedDeliveryDate: string;
paymentType: string;
hidePayment: string;
confirmationNumber: number;
collectionTime: string;
canCancel: string;
accountDisplayName: string;
paymentCategory: string;
invoiceData: string;
isNoticeSent: string;
settlementDate: string;
collectionDate: string;
networkSendDate: string;
promiseDate: string;
isBookmarked: string;
isValidated: string;
branchId: string;
invoiceNumber: string;
branchName: string;
isRealTime: string;
sentToNetworkOn: string;
sentToNetworkName: string;
sentToNetworkId: string;
sentToNetworkResponse: string;
sentToNetworkWasSuccessful: string;
foreignPaymentId: string;
foreignSystem: string;
payFromEmail: string;
payFromPhone: string;
payFromBankAccountDescription: string;
overrideCheckRoutingNumber: string;
overrideCheckAccountNumber: string;
collectionType: string;
p2PPayToEmailAddress: string;
p2PPayToPhoneNumber: string;
secret: string;
fundingSource: string;
secOverride: string;
memo: string;
payFromRtn: string;
p2PStatus: string;
p2PExpiresOn: string;
payFromBankAccount: string;
payFromAccountNumberFormatted: string;
amountFormatted: string;
paymentDateFormatted: string;
displayStatus: string;
getPayFromBankAccountType: string;
payFromBankAccountType: string;
payFromBankAccountNumber: string;
bankAccountType: string;
defaultContactMethod: string;
contactMethod: string;
inFlightKey: string;
error: string;
hash: string;
account: BankAccount;
deliveryDate: string;
constructor(payment?: Payment) {
if (!payment) {
return;
}
this.id = payment.id;
this.customerId = payment.customerId;
this.payToName = payment.payToName;
this.status = payment.status;
this.amount = payment.amount;
this.paymentDate = payment.paymentDate;
this.createOn = payment.createOn;
this.isElectronic = payment.isElectronic;
this.isPicturePayment = payment.isPicturePayment;
this.pictureId = payment.pictureId;
this.isRecurring = payment.isRecurring;
this.templateType = payment.templateType;
this.checkNumber = payment.checkNumber;
this.paymentTemplateId = payment.paymentTemplateId;
this.version = payment.version;
this.shardKey = payment.shardKey;
this.financialInstitutionId = payment.financialInstitutionId;
this.payToAccount = payment.payToAccount;
this.displayName = payment.displayName;
this.searchName = payment.searchName;
this.payFromAccount = payment.payFromAccount;
this.expectedDeliveryDate = payment.expectedDeliveryDate;
this.paymentType = payment.paymentType;
this.hidePayment = payment.hidePayment;
this.confirmationNumber = payment.confirmationNumber;
this.collectionTime = payment.collectionTime;
this.canCancel = payment.canCancel;
this.accountDisplayName = payment.accountDisplayName;
this.paymentCategory = payment.paymentCategory;
this.invoiceData = payment.invoiceData;
this.isNoticeSent = payment.isNoticeSent;
this.settlementDate = payment.settlementDate;
this.collectionDate = payment.collectionDate;
this.networkSendDate = payment.networkSendDate;
this.promiseDate = payment.promiseDate;
this.isBookmarked = payment.isBookmarked;
this.isValidated = payment.isValidated;
this.branchId = payment.branchId;
this.invoiceNumber = payment.invoiceNumber;
this.branchName = payment.branchName;
this.isRealTime = payment.isRealTime;
this.sentToNetworkOn = payment.sentToNetworkOn;
this.sentToNetworkName = payment.sentToNetworkName;
this.sentToNetworkId = payment.sentToNetworkId;
this.sentToNetworkResponse = payment.sentToNetworkResponse;
this.sentToNetworkWasSuccessful = payment.sentToNetworkWasSuccessful;
this.foreignPaymentId = payment.foreignPaymentId;
this.foreignSystem = payment.foreignSystem;
this.payFromEmail = payment.p2PPayToEmailAddress;
this.payFromPhone = payment.p2PPayToPhoneNumber;
this.payFromBankAccountDescription = payment.payFromBankAccountDescription;
this.overrideCheckRoutingNumber = payment.overrideCheckRoutingNumber;
this.overrideCheckAccountNumber = payment.overrideCheckAccountNumber;
this.collectionType = payment.collectionType;
this.secret = payment.secret;
this.fundingSource = payment.fundingSource;
this.secOverride = payment.secOverride;
this.memo = payment.memo;
this.payFromRtn = payment.payFromRtn;
this.p2PStatus = payment.p2PStatus;
this.p2PExpiresOn = payment.p2PExpiresOn;
this.payFromBankAccount = payment.payFromBankAccount;
this.payFromAccountNumberFormatted = payment.payFromAccountNumberFormatted;
this.amountFormatted = payment.amountFormatted;
this.paymentDateFormatted = payment.paymentDateFormatted;
this.displayStatus = payment.displayStatus;
this.payFromBankAccountNumber = payment.payFromAccount;
this.p2PPayToEmailAddress = payment.p2PPayToEmailAddress;
this.p2PPayToPhoneNumber = payment.p2PPayToPhoneNumber;
this.defaultContactMethod = payment.defaultContactMethod;
this.hash = payment.hash;
this.error = payment.error;
const phoneOrNull =
this.p2PPayToPhoneNumber && this.p2PPayToPhoneNumber.length > 0 ? this.p2PPayToPhoneNumber : null;
this.contactMethod =
this.p2PPayToEmailAddress && this.p2PPayToEmailAddress.length > 0
? this.p2PPayToEmailAddress
: phoneOrNull;
const account = new BankAccount();
account.accountNumber = payment.payFromAccount;
account.accountType = payment.payFromBankAccountDescription;
this.account = account;
}
}