@munchi_oy/license-sdk 0.2.0 → 0.2.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.
package/dist/index.d.cts CHANGED
@@ -35,10 +35,21 @@ interface ChannelRate {
35
35
  fixedMinor: number;
36
36
  source: RateSource;
37
37
  }
38
+ type IsvSource = "calculated" | "manual";
39
+ interface Isv {
40
+ bps: number;
41
+ fixedMinor: number;
42
+ source: IsvSource;
43
+ }
44
+ /** A card-present channel: the fee the customer pays and Munchi's share of it on Viva. */
45
+ interface CardChannelRate extends ChannelRate {
46
+ /** `null` when it can't be calculated: no Viva cost in the catalog, or a fee below it. */
47
+ isv: Isv | null;
48
+ }
38
49
  interface SnapshotRates {
39
50
  /** `null` when card payments at the venue don't go through Munchi (`paymentsMode: "external"`). */
40
- pos: ChannelRate | null;
41
- kiosk: ChannelRate | null;
51
+ pos: CardChannelRate | null;
52
+ kiosk: CardChannelRate | null;
42
53
  online: ChannelRate;
43
54
  includeTips: boolean;
44
55
  }
package/dist/index.d.ts CHANGED
@@ -35,10 +35,21 @@ interface ChannelRate {
35
35
  fixedMinor: number;
36
36
  source: RateSource;
37
37
  }
38
+ type IsvSource = "calculated" | "manual";
39
+ interface Isv {
40
+ bps: number;
41
+ fixedMinor: number;
42
+ source: IsvSource;
43
+ }
44
+ /** A card-present channel: the fee the customer pays and Munchi's share of it on Viva. */
45
+ interface CardChannelRate extends ChannelRate {
46
+ /** `null` when it can't be calculated: no Viva cost in the catalog, or a fee below it. */
47
+ isv: Isv | null;
48
+ }
38
49
  interface SnapshotRates {
39
50
  /** `null` when card payments at the venue don't go through Munchi (`paymentsMode: "external"`). */
40
- pos: ChannelRate | null;
41
- kiosk: ChannelRate | null;
51
+ pos: CardChannelRate | null;
52
+ kiosk: CardChannelRate | null;
42
53
  online: ChannelRate;
43
54
  includeTips: boolean;
44
55
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@munchi_oy/license-sdk",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "Client for the Munchi license service: cached entitlements and feature checks per venue",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",