sysone-api-mapper 1.0.198 → 1.0.200

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.
@@ -88,6 +88,14 @@ const billingModule = {
88
88
  responseMapper: (response) => (0, billing_1.getDebtorsResponse)(response.data),
89
89
  },
90
90
  },
91
+ GET_PAYMENT_LINK: {
92
+ default: {
93
+ url: "collection/v1/payment-link",
94
+ method: exports.methods.POST,
95
+ requestMapper: (params) => ({ mappedBody: params }),
96
+ responseMapper: (response) => response.data,
97
+ }
98
+ },
91
99
  GET_BILLING_TYPE: {
92
100
  default: {
93
101
  url: 'billing/v1/billing-types',
@@ -691,6 +699,30 @@ const productModule = {
691
699
  responseMapper: response => response.data
692
700
  }
693
701
  },
702
+ GET_SECTIONS: {
703
+ default: {
704
+ url: "product/v1/sections",
705
+ method: exports.methods.GET,
706
+ requestMapper: request => ({ mappedParams: request }),
707
+ responseMapper: response => response.data
708
+ }
709
+ },
710
+ GET_SUBSECTIONS: {
711
+ default: {
712
+ url: "product/v1/sections/{0}/subsections",
713
+ method: exports.methods.GET,
714
+ requestMapper: request => ({ mappedParams: request }),
715
+ responseMapper: response => response.data
716
+ }
717
+ },
718
+ GET_PRODUCTS: {
719
+ default: {
720
+ url: "product/v1/subsections/{0}/products",
721
+ method: exports.methods.GET,
722
+ requestMapper: request => ({ mappedParams: request }),
723
+ responseMapper: response => response.data
724
+ }
725
+ },
694
726
  };
695
727
  // ============================================================================
696
728
  // POLICY MODULE
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sysone-api-mapper",
3
- "version": "1.0.198",
3
+ "version": "1.0.200",
4
4
  "description": "Paquete mapper para portal de productores",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",