@fire-spark/payments 0.11.1 → 0.12.1

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.d.ts +6 -1
  2. package/package.json +2 -2
package/dist/index.d.ts CHANGED
@@ -414,7 +414,12 @@ type PaymentResult = {
414
414
  /** Non-sensitive tender data recorded with the attempt (§3.1). */
415
415
  details?: TenderDetails | null;
416
416
  };
417
- type PaymentReversal = "cancel" | "refund" | "manual";
417
+ /**
418
+ * How a charge is undone: `cancel` / `refund` on the device, `server` when
419
+ * the provider's server entry reverses it with the order cancel or refund
420
+ * (the device does nothing), `manual` when nobody can.
421
+ */
422
+ type PaymentReversal = "cancel" | "refund" | "server" | "manual";
418
423
  type PaymentOperation = (ctx: PaymentContext, result: PaymentResult) => Promise<PaymentResult>;
419
424
  type PaymentAdapter = {
420
425
  provider: PaymentProvider;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fire-spark/payments",
3
- "version": "0.11.1",
3
+ "version": "0.12.1",
4
4
  "description": "Fire Spark payments contract: adapters, errors, amounts and policy",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -18,7 +18,7 @@
18
18
  },
19
19
  "dependencies": {
20
20
  "big.js": "6.2.1",
21
- "@fire-spark/types": "^0.11.1"
21
+ "@fire-spark/types": "^0.12.1"
22
22
  },
23
23
  "devDependencies": {
24
24
  "@types/big.js": "6.2.2",