@fire-spark/payments-cashea-financing 0.24.0 → 0.26.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.
- package/dist/index.js +3 -3
- 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
|
-
|
|
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
|
-
|
|
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.
|
|
3
|
+
"version": "0.26.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.
|
|
21
|
-
"@fire-spark/types": "^0.
|
|
20
|
+
"@fire-spark/payments": "^0.26.0",
|
|
21
|
+
"@fire-spark/types": "^0.26.0"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"tsdown": "^0.22.14",
|