tango-app-api-payment-subscription 3.0.23-dev → 3.0.25-dev
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
3
|
import { paymentSubscriptionRouter } from './src/routes/paymentSubscription.routes.js';
|
|
4
|
-
import {
|
|
4
|
+
import { paymentDocs } from './src/docs/payment.docs.js';
|
|
5
5
|
|
|
6
|
-
export { paymentSubscriptionRouter,
|
|
6
|
+
export { paymentSubscriptionRouter, paymentDocs };
|
|
7
7
|
|
|
8
8
|
|
package/package.json
CHANGED
|
@@ -807,6 +807,8 @@ export const trialApproval = async ( req, res ) => {
|
|
|
807
807
|
}
|
|
808
808
|
clientProducts.save();
|
|
809
809
|
await storeService.addremoveElement( { clientId: requestData.clientId, status: 'active' }, { $push: { product: requestData.name } } );
|
|
810
|
+
req.body.clientId = requestData.clientId;
|
|
811
|
+
updatePricing( req, res, true );
|
|
810
812
|
let userDetails= await userService.findOne( { clientId: requestData.clientId, role: 'superadmin' } );
|
|
811
813
|
let [ firstWord, secondWord ] = requestData.name.replace( /([a-z])([A-Z])/g, '$1 $2' ).split( ' ' );
|
|
812
814
|
firstWord = firstWord.charAt( 0 ).toUpperCase() + firstWord.slice( 1 );
|
package/src/docs/payment.docs.js
CHANGED