sysone-api-mapper 1.0.156 → 1.0.158

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.
@@ -200,6 +200,39 @@ const partyModule = {
200
200
  responseMapper: (response) => (0, party_1.getIdentificationTypes)(response.data),
201
201
  },
202
202
  },
203
+ GET_PAYMENT_METHODS_BY_PARTY_CODE: {
204
+ default: {
205
+ url: 'party/v1/parties/{0}/payment-methods',
206
+ method: exports.methods.GET,
207
+ source: 'https://apidoc.sysone.com/party/v1/open-api.html#/paths/~1v1~1parties~1%7Bcode%7D~1payment-methods/get',
208
+ requestMapper: (request) => ({ mappedParams: request }),
209
+ responseMapper: (response) => response.data,
210
+ },
211
+ },
212
+ PUT_PAYMENT_METHODS_BY_PARTY_CODE: {
213
+ default: {
214
+ url: 'party/v1/parties/{0}/payment-methods',
215
+ method: exports.methods.PUT,
216
+ source: 'https://apidoc.sysone.com/party/v1/open-api.html#/paths/~1v1~1parties~1%7Bcode%7D~1payment-methods/put',
217
+ requestMapper: (request) => ({
218
+ mappedParams: null,
219
+ mappedBody: request,
220
+ }),
221
+ responseMapper: (response) => response.data,
222
+ },
223
+ },
224
+ PUT_PERSON: {
225
+ default: {
226
+ url: 'party/v1/individuals/{0}',
227
+ method: exports.methods.PUT,
228
+ source: 'https://apidoc.sysone.com/party/v1/open-api.html#/paths/~1v1~1individuals~1%7Bcode%7D/put',
229
+ requestMapper: (request) => ({
230
+ mappedParams: null,
231
+ mappedBody: request,
232
+ }),
233
+ responseMapper: (response) => response.data,
234
+ },
235
+ },
203
236
  GET_COUNTRIES: {
204
237
  default: {
205
238
  url: 'location/v1/countries',
@@ -527,6 +560,14 @@ const policyModule = {
527
560
  responseMapper: (response) => (0, policy_1.getPolicyCollection)(response.data)
528
561
  },
529
562
  },
563
+ GET_COLLECTION_STATUSES: {
564
+ default: {
565
+ url: "collection/v1/collection-statuses",
566
+ method: exports.methods.GET,
567
+ requestMapper: (request) => ({ mappedParams: request }),
568
+ responseMapper: (response) => response.data,
569
+ },
570
+ },
530
571
  GET_POLICY_HOME_COLLECTIVE_DETAIL: {
531
572
  default: {
532
573
  url: 'policy-home/v1/policies/{0}/details',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sysone-api-mapper",
3
- "version": "1.0.156",
3
+ "version": "1.0.158",
4
4
  "description": "Paquete mapper para portal de productores",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",