mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-15 23:47:33 +08:00
modify method name
This commit is contained in:
@@ -312,11 +312,11 @@ export class Account implements AccountInfoResponse {
|
||||
accountResponse.creditCardStatementDate,
|
||||
accountResponse.isAsset,
|
||||
accountResponse.isLiability,
|
||||
accountResponse.subAccounts ? Account.ofMany(accountResponse.subAccounts) : undefined
|
||||
accountResponse.subAccounts ? Account.ofMulti(accountResponse.subAccounts) : undefined
|
||||
);
|
||||
}
|
||||
|
||||
public static ofMany(accountResponses: AccountInfoResponse[]): Account[] {
|
||||
public static ofMulti(accountResponses: AccountInfoResponse[]): Account[] {
|
||||
const accounts: Account[] = [];
|
||||
|
||||
for (const accountResponse of accountResponses) {
|
||||
|
||||
@@ -318,7 +318,7 @@ export class Transaction implements TransactionInfoResponse {
|
||||
}
|
||||
|
||||
if (transactionResponse.tags) {
|
||||
transaction.setTags(TransactionTag.ofMany(transactionResponse.tags));
|
||||
transaction.setTags(TransactionTag.ofMulti(transactionResponse.tags));
|
||||
}
|
||||
|
||||
if (transactionResponse.pictures) {
|
||||
@@ -338,7 +338,7 @@ export class Transaction implements TransactionInfoResponse {
|
||||
return transaction;
|
||||
}
|
||||
|
||||
public static ofMany(transactionResponses: TransactionInfoResponse[]): Transaction[] {
|
||||
public static ofMulti(transactionResponses: TransactionInfoResponse[]): Transaction[] {
|
||||
const transactions: Transaction[] = [];
|
||||
|
||||
for (const transactionResponse of transactionResponses) {
|
||||
@@ -404,7 +404,7 @@ export class TransactionPicture implements TransactionPictureInfoBasicResponse {
|
||||
return new TransactionPicture(picture.pictureId, picture.originalUrl);
|
||||
}
|
||||
|
||||
public static ofMany(pictureResponses: TransactionPictureInfoBasicResponse[]): TransactionPicture[] {
|
||||
public static ofMulti(pictureResponses: TransactionPictureInfoBasicResponse[]): TransactionPicture[] {
|
||||
const pictures: TransactionPicture[] = [];
|
||||
|
||||
for (const pictureResponse of pictureResponses) {
|
||||
|
||||
@@ -83,11 +83,11 @@ export class TransactionCategory implements TransactionCategoryInfoResponse {
|
||||
categoryResponse.comment,
|
||||
categoryResponse.displayOrder,
|
||||
!categoryResponse.hidden,
|
||||
categoryResponse.subCategories ? TransactionCategory.ofMany(categoryResponse.subCategories) : undefined
|
||||
categoryResponse.subCategories ? TransactionCategory.ofMulti(categoryResponse.subCategories) : undefined
|
||||
);
|
||||
}
|
||||
|
||||
public static ofMany(categoryResponses: TransactionCategoryInfoResponse[]): TransactionCategory[] {
|
||||
public static ofMulti(categoryResponses: TransactionCategoryInfoResponse[]): TransactionCategory[] {
|
||||
const categories: TransactionCategory[] = [];
|
||||
|
||||
for (const categoryResponse of categoryResponses) {
|
||||
@@ -105,7 +105,7 @@ export class TransactionCategory implements TransactionCategoryInfoResponse {
|
||||
continue;
|
||||
}
|
||||
|
||||
ret[categoryType] = TransactionCategory.ofMany(categoriesByType[categoryType]);
|
||||
ret[categoryType] = TransactionCategory.ofMulti(categoriesByType[categoryType]);
|
||||
}
|
||||
|
||||
return ret;
|
||||
|
||||
@@ -28,7 +28,7 @@ export class TransactionTag implements TransactionTagInfoResponse {
|
||||
return new TransactionTag(tagResponse.id, tagResponse.name, tagResponse.displayOrder, tagResponse.hidden);
|
||||
}
|
||||
|
||||
public static ofMany(tagResponses: TransactionTagInfoResponse[]): TransactionTag[] {
|
||||
public static ofMulti(tagResponses: TransactionTagInfoResponse[]): TransactionTag[] {
|
||||
const tags: TransactionTag[] = [];
|
||||
|
||||
for (const tagResponse of tagResponses) {
|
||||
|
||||
Reference in New Issue
Block a user