Adding initial change in billing platform settings
MODIFY
src/server/rest/v1/service/BillingService.ts
src/server/rest/v1/service/BillingService.ts
@@ -449,7 +449,7 @@ export default class BillingService {
const { usersLastSynchronizedOn } = billingSettings.billing;
const previousTransactionBillingState = !!billingSettings.billing.isTransactionBillingActivated;
// Billing properties to override
- const { immediateBillingAllowed, periodicBillingAllowed, taxID } = newBillingProperties.billing;
+ const { immediateBillingAllowed, periodicBillingAllowed, customerTaxID, billingAccountTaxID } = newBillingProperties.billing;
const newTransactionBillingState = !!newBillingProperties.billing.isTransactionBillingActivated;
if (!newTransactionBillingState && previousTransactionBillingState) {
// Attempt to switch it OFF
@@ -483,7 +483,8 @@ export default class BillingService {
usersLastSynchronizedOn,
immediateBillingAllowed,
periodicBillingAllowed,
- taxID,
+ customerTaxID,
+ billingAccountTaxID,
};
// Make sure to preserve critical connection properties
let readOnlyProperties = {};

MODIFY
src/types/Setting.ts
src/types/Setting.ts
@@ -247,7 +247,8 @@ export interface BillingSetting {
isTransactionBillingActivated: boolean;
immediateBillingAllowed: boolean;
periodicBillingAllowed: boolean;
- taxID: string;
+ customerTaxID: string;
+ billingAccountTaxID: string;
usersLastSynchronizedOn?: Date;
}

Adding initial change in billing platform settings