bp - transfers - server actions
MODIFY
src/async-task/tasks/PrepareInvoiceTransferAsyncTask.ts
src/async-task/tasks/PrepareInvoiceTransferAsyncTask.ts
@@ -44,7 +44,7 @@ export default class PrepareInvoiceTransferAsyncTask extends AbstractAsyncTask {
}
}
} catch (error) {
- await Logging.logActionExceptionMessage(tenant.id, ServerAction.BILLING_PREPARE_TRANSFER, error);
+ await Logging.logActionExceptionMessage(tenant.id, ServerAction.BILLING_TRANSFER_PREPARE, error);
}
}
}

MODIFY
src/integration/billing/BillingIntegration.ts
src/integration/billing/BillingIntegration.ts
@@ -727,7 +727,7 @@ export default abstract class BillingIntegration {
// Create async task to proceed with the transfer of funds
await AsyncTaskBuilder.createAndSaveAsyncTasks({
name: AsyncTasks.PREPARE_INVOICE_TRANSFER,
- action: ServerAction.BILLING_PREPARE_TRANSFER,
+ action: ServerAction.BILLING_TRANSFER_PREPARE,
type: AsyncTaskType.TASK,
tenantID: this.tenant.id,
parameters: {
@@ -800,7 +800,7 @@ export default abstract class BillingIntegration {
// This should not happen - Session is already in the session list
await Logging.logError({
tenantID: this.tenant.id,
- action: ServerAction.BILLING_PREPARE_TRANSFER,
+ action: ServerAction.BILLING_TRANSFER_PREPARE,
module: MODULE_NAME, method: 'dispatchFundsPerAccount',
message: `Unexpected situation - the transfer ${transfer.id} already includes the session ${session.transactionID}`
});
@@ -838,7 +838,7 @@ export default abstract class BillingIntegration {
} catch (error) {
await Logging.logError({
tenantID: this.tenant.id,
- action: ServerAction.BILLING_PREPARE_TRANSFER,
+ action: ServerAction.BILLING_TRANSFER_PREPARE,
module: MODULE_NAME, method: 'processTransferForAccount',
message: `Transfer preparation failed - accountID: ${accountID} - Invoice: ${invoice.id} - ${invoice.number}`,
detailedMessages: { error: error.stack }

MODIFY
src/types/Server.ts
src/types/Server.ts
@@ -437,7 +437,6 @@ export enum ServerAction {
BILLING = 'Billing',
BILLING_TRANSACTION = 'BillingTransaction',
- BILLING_PREPARE_TRANSFER = 'BillingPrepareTransfer',
BILLING_SYNCHRONIZE_USER = 'BillingSynchronizeUser',
BILLING_FORCE_SYNCHRONIZE_USER = 'BillingForceSynchronizeUser',
CHECK_BILLING_CONNECTION = 'CheckBillingConnection',
@@ -461,6 +460,7 @@ export enum ServerAction {
BILLING_ACCOUNTS = 'BillingAccounts',
BILLING_TRANSFERS = 'BillingTransfers',
BILLING_TRANSFER = 'BillingTransfer',
+ BILLING_TRANSFER_PREPARE = 'BillingTransferPrepare',
BILLING_TRANSFER_FINALIZE = 'BillingTransferFinalize',
BILLING_TRANSFER_SEND = 'BillingTransferSend',

bp - transfers - server actions