@pax2pay/client 0.5.3 → 0.5.4

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.
@@ -2,5 +2,6 @@ declare const statementReportRowActionType: readonly ["AUTHORISATION", "SETTLEME
2
2
  export type StatementReportRowActionType = typeof statementReportRowActionType[number];
3
3
  export declare namespace StatementReportRowActionType {
4
4
  function is(value: unknown): value is StatementReportRowActionType;
5
+ function toDisplay(value: StatementReportRowActionType): string;
5
6
  }
6
7
  export {};
@@ -19,5 +19,13 @@ export var StatementReportRowActionType;
19
19
  return typeof value == "string" && statementReportRowActionType.includes(value);
20
20
  }
21
21
  StatementReportRowActionType.is = is;
22
+ function toDisplay(value) {
23
+ if (value == "REFUND_FEE")
24
+ return "FEE_REFUND";
25
+ if (value == "REVERSAL_FEE")
26
+ return "FEE_REVERSAL";
27
+ return value;
28
+ }
29
+ StatementReportRowActionType.toDisplay = toDisplay;
22
30
  })(StatementReportRowActionType || (StatementReportRowActionType = {}));
23
31
  //# sourceMappingURL=StatementReportRowActionType.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"StatementReportRowActionType.js","sourceRoot":"../","sources":["model/StatementReportRowActionType.ts"],"names":[],"mappings":"AAAA,MAAM,4BAA4B,GAAG;IACpC,eAAe;IACf,YAAY;IACZ,UAAU;IACV,QAAQ;IACR,mBAAmB;IACnB,gBAAgB;IAChB,cAAc;IACd,YAAY;IACZ,aAAa;IACb,cAAc;IACd,aAAa;IACb,iBAAiB;IACjB,0BAA0B;CACjB,CAAA;AAGV,MAAM,KAAW,4BAA4B,CAI5C;AAJD,WAAiB,4BAA4B;IAC5C,SAAgB,EAAE,CAAC,KAAc;QAChC,OAAO,OAAO,KAAK,IAAI,QAAQ,IAAI,4BAA4B,CAAC,QAAQ,CAAC,KAAqC,CAAC,CAAA;IAChH,CAAC;IAFe,+BAAE,KAEjB,CAAA;AACF,CAAC,EAJgB,4BAA4B,KAA5B,4BAA4B,QAI5C"}
1
+ {"version":3,"file":"StatementReportRowActionType.js","sourceRoot":"../","sources":["model/StatementReportRowActionType.ts"],"names":[],"mappings":"AAAA,MAAM,4BAA4B,GAAG;IACpC,eAAe;IACf,YAAY;IACZ,UAAU;IACV,QAAQ;IACR,mBAAmB;IACnB,gBAAgB;IAChB,cAAc;IACd,YAAY;IACZ,aAAa;IACb,cAAc;IACd,aAAa;IACb,iBAAiB;IACjB,0BAA0B;CACjB,CAAA;AAGV,MAAM,KAAW,4BAA4B,CAW5C;AAXD,WAAiB,4BAA4B;IAC5C,SAAgB,EAAE,CAAC,KAAc;QAChC,OAAO,OAAO,KAAK,IAAI,QAAQ,IAAI,4BAA4B,CAAC,QAAQ,CAAC,KAAqC,CAAC,CAAA;IAChH,CAAC;IAFe,+BAAE,KAEjB,CAAA;IACD,SAAgB,SAAS,CAAC,KAAmC;QAC5D,IAAI,KAAK,IAAI,YAAY;YACxB,OAAO,YAAY,CAAA;QACpB,IAAI,KAAK,IAAI,cAAc;YAC1B,OAAO,cAAc,CAAA;QACtB,OAAO,KAAK,CAAA;IACb,CAAC;IANe,sCAAS,YAMxB,CAAA;AACF,CAAC,EAXgB,4BAA4B,KAA5B,4BAA4B,QAW5C"}
@@ -19,4 +19,11 @@ export namespace StatementReportRowActionType {
19
19
  export function is(value: unknown): value is StatementReportRowActionType {
20
20
  return typeof value == "string" && statementReportRowActionType.includes(value as StatementReportRowActionType)
21
21
  }
22
+ export function toDisplay(value: StatementReportRowActionType): string {
23
+ if (value == "REFUND_FEE")
24
+ return "FEE_REFUND"
25
+ if (value == "REVERSAL_FEE")
26
+ return "FEE_REVERSAL"
27
+ return value
28
+ }
22
29
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pax2pay/client",
3
- "version": "0.5.3",
3
+ "version": "0.5.4",
4
4
  "description": "Client library for the Pax2Pay API",
5
5
  "author": "Pax2Pay Ltd.",
6
6
  "license": "MIT",