blling - router - URL simplified
MODIFY
src/types/Server.ts
src/types/Server.ts
@@ -498,11 +498,11 @@ export enum ServerRoute {
REST_TENANTS = 'tenants',
// BILLING URLs for CRUD operations on PAYMENT METHODS
- REST_BILLING_PAYMENT_METHODS = 'billing/users/:userID/payment-methods',
- REST_BILLING_PAYMENT_METHOD = 'billing/users/:userID/payment-methods/:paymentMethodID',
+ REST_BILLING_PAYMENT_METHODS = 'users/:userID/payment-methods',
+ REST_BILLING_PAYMENT_METHOD = 'users/:userID/payment-methods/:paymentMethodID',
// BILLING URLs for Non-CRUD Operations on PAYMENT METHODS
- REST_BILLING_PAYMENT_METHOD_SETUP = 'billing/users/:userID/payment-methods/setup',
- REST_BILLING_PAYMENT_METHOD_ATTACH = 'billing/users/:userID/payment-methods/:paymentMethodID/attach',
- REST_BILLING_PAYMENT_METHOD_DETACH = 'billing/users/:userID/payment-methods/:paymentMethodID/detach',
+ REST_BILLING_PAYMENT_METHOD_SETUP = 'users/:userID/payment-methods/setup',
+ REST_BILLING_PAYMENT_METHOD_ATTACH = 'users/:userID/payment-methods/:paymentMethodID/attach',
+ REST_BILLING_PAYMENT_METHOD_DETACH = 'users/:userID/payment-methods/:paymentMethodID/detach',
}

blling - router - URL simplified