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 { paymentDoc } from './src/docs/payment.docs.js';
4
+ import { paymentDocs } from './src/docs/payment.docs.js';
5
5
 
6
- export { paymentSubscriptionRouter, paymentDoc };
6
+ export { paymentSubscriptionRouter, paymentDocs };
7
7
 
8
8
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tango-app-api-payment-subscription",
3
- "version": "3.0.23-dev",
3
+ "version": "3.0.25-dev",
4
4
  "description": "paymentSubscription",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -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 );
@@ -3,7 +3,7 @@
3
3
  import * as schema from '../dtos/validation.dtos.js';
4
4
  import j2s from 'joi-to-swagger';
5
5
 
6
- export const paymentDoc = {
6
+ export const paymentDocs = {
7
7
  '/v3/paymentSubscription/addBilling': {
8
8
  post: {
9
9
  tags: [ 'payment' ],