billing - missing accessibility modifiers
MODIFY
src/server/rest/v1/service/security/BillingSecurity.ts
src/server/rest/v1/service/security/BillingSecurity.ts
@@ -6,7 +6,7 @@ import UtilsSecurity from './UtilsSecurity';
import sanitize from 'mongo-sanitize';
export default class BillingSecurity {
- static filterSynchronizeUserRequest(requestBody: any): HttpSynchronizeUserRequest {
+ public static filterSynchronizeUserRequest(requestBody: any): HttpSynchronizeUserRequest {
const filteredUser: HttpSynchronizeUserRequest = {} as HttpSynchronizeUserRequest;
if (Utils.objectHasProperty(requestBody, 'id')) {
filteredUser.id = sanitize(requestBody.id);
@@ -17,7 +17,7 @@ export default class BillingSecurity {
return filteredUser;
}
- static filterGetInvoicesRequest(requestQuery: any): HttpBillingInvoiceRequest {
+ public static filterGetInvoicesRequest(requestQuery: any): HttpBillingInvoiceRequest {
const filteredRequest = {} as HttpBillingInvoiceRequest;
if (Utils.objectHasProperty(requestQuery, 'UserID')) {
filteredRequest.UserID = sanitize(requestQuery.UserID);
@@ -39,44 +39,44 @@ export default class BillingSecurity {
return filteredRequest;
}
- static filterGetInvoiceRequest(requestQuery: any): HttpBillingInvoiceRequest {
+ public static filterGetInvoiceRequest(requestQuery: any): HttpBillingInvoiceRequest {
return {
ID: sanitize(requestQuery.ID)
} as HttpBillingInvoiceRequest;
}
- static filterForceSynchronizeUserInvoicesRequest(requestBody: any): HttpForceSynchronizeUserInvoicesRequest {
+ public static filterForceSynchronizeUserInvoicesRequest(requestBody: any): HttpForceSynchronizeUserInvoicesRequest {
return {
userID: sanitize(requestBody.userID)
};
}
- static filterLinkTransactionToInvoiceRequest(requestBody: any): HttpCreateTransactionInvoiceRequest {
+ public static filterLinkTransactionToInvoiceRequest(requestBody: any): HttpCreateTransactionInvoiceRequest {
return {
transactionID: sanitize(requestBody.transactionID)
};
}
- static filterDownloadInvoiceRequest(requestQuery: any): HttpBillingRequest {
+ public static filterDownloadInvoiceRequest(requestQuery: any): HttpBillingRequest {
return {
ID: sanitize(requestQuery.ID)
};
}
- static filterBillingWebHookRequest(requestQuery: any): HttpBillingWebHookRequest {
+ public static filterBillingWebHookRequest(requestQuery: any): HttpBillingWebHookRequest {
return {
tenantID: sanitize(requestQuery.TenantID)
};
}
- static filterSetupPaymentMethodRequest(requestBody: any): HttpSetupPaymentMethod {
+ public static filterSetupPaymentMethodRequest(requestBody: any): HttpSetupPaymentMethod {
return {
userID: sanitize(requestBody.userID),
paymentMethodId: sanitize(requestBody.paymentMethodId),
};
}
- static filterPaymentMethodsRequest(requestQuery: any): HttpPaymentMethods {
+ public static filterPaymentMethodsRequest(requestQuery: any): HttpPaymentMethods {
const filteredRequest: HttpPaymentMethods = {
userID: sanitize(requestQuery.userID)
};
@@ -84,7 +84,7 @@ export default class BillingSecurity {
return filteredRequest;
}
- static filterDeletePaymentMethodRequest(requestBody: any): HttpDeletePaymentMethod {
+ public static filterDeletePaymentMethodRequest(requestBody: any): HttpDeletePaymentMethod {
return {
userID: sanitize(requestBody.userID),
paymentMethodId: sanitize(requestBody.paymentMethodId),

billing - missing accessibility modifiers