@fire-spark/payments-cashea-financing 0.24.0 → 0.25.0

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.
Files changed (2) hide show
  1. package/dist/index.js +3 -3
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { PaymentError, createPaymentError, definePaymentErrors } from "@fire-spark/payments";
1
+ import { PaymentError, createPaymentError, definePaymentErrors, paymentResultAmount } from "@fire-spark/payments";
2
2
  //#region src/constants.ts
3
3
  const CASHEA_PROVIDER = "cashea";
4
4
  /** Key prefix of the confirmed quote in `PaymentStorage` (per order). */
@@ -171,7 +171,7 @@ const failedResult = (ctx, error, metadata) => {
171
171
  };
172
172
  return {
173
173
  status: "FAILED",
174
- amount: ctx.amount.value,
174
+ ...paymentResultAmount(ctx.amount.value),
175
175
  metadata: m,
176
176
  error
177
177
  };
@@ -296,7 +296,7 @@ const casheaFinancingPayments = (options = {}) => {
296
296
  const details = detailsOf(quote);
297
297
  return {
298
298
  status: "PAID",
299
- amount: ctx.amount.value,
299
+ ...paymentResultAmount(ctx.amount.value),
300
300
  metadata,
301
301
  details
302
302
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fire-spark/payments-cashea-financing",
3
- "version": "0.24.0",
3
+ "version": "0.25.0",
4
4
  "description": "Fire Spark Cashea adapter (Venezuela): in-store buy now, pay later through the SiTef de Venezuela API; the down payment is charged with another method",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -17,8 +17,8 @@
17
17
  }
18
18
  },
19
19
  "dependencies": {
20
- "@fire-spark/payments": "^0.24.0",
21
- "@fire-spark/types": "^0.24.0"
20
+ "@fire-spark/payments": "^0.25.0",
21
+ "@fire-spark/types": "^0.25.0"
22
22
  },
23
23
  "devDependencies": {
24
24
  "tsdown": "^0.22.14",