refactor(subaccounts): interface renaming
MODIFY
src/types/Billing.ts
src/types/Billing.ts
@@ -167,7 +167,7 @@ export interface BillingAccount extends AuthorizationActions {
status: BillingAccountStatus;
}
-export interface BillingAccountSetting {
+export interface BillingAccountData {
accountID: string;
}

MODIFY
src/types/Company.ts
src/types/Company.ts
import Address from './Address';
import { AuthorizationActions } from './Authorization';
-import { BillingAccountSetting } from './Billing';
+import { BillingAccountData } from './Billing';
import CreatedUpdatedProps from './CreatedUpdatedProps';
import { OpeningTimes } from './OpeningTimes';
import Site from './Site';
@@ -14,5 +14,5 @@ export default interface Company extends CreatedUpdatedProps, AuthorizationActio
sites?: Site[];
distanceMeters?: number;
openingTimes?: OpeningTimes;
- billingData?: BillingAccountSetting;
+ billingData?: BillingAccountData;
}

MODIFY
src/types/Site.ts
src/types/Site.ts
import Address from './Address';
-import { BillingAccountSetting } from './Billing';
+import { BillingAccountData } from './Billing';
import Company from './Company';
import ConnectorStats from './ConnectorStats';
import CreatedUpdatedProps from './CreatedUpdatedProps';
@@ -23,7 +23,7 @@ export default interface Site extends CreatedUpdatedProps, SiteAuthorizationActi
public?: boolean;
openingTimes?: OpeningTimes;
tariffID?: string;
- billingData?: BillingAccountSetting;
+ billingData?: BillingAccountData;
}
export interface SiteUser {

refactor(subaccounts): interface renaming