@wipperoz/wipperoz-core 1.1.0 → 1.1.2

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.
@@ -1,7 +1,3 @@
1
- export * from './services/tokenFormatter';
2
- export * from './services/accountCreditManager.service';
3
- export * from './services/billingConfig.service';
4
- export * from './services/costCalculator.service';
5
- export * from './services/stripePaymentMapper';
1
+ export * from './services';
6
2
  export * from './interfaces';
7
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/billing/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yCAAyC,CAAC;AACxD,cAAc,kCAAkC,CAAC;AACjD,cAAc,mCAAmC,CAAC;AAClD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/billing/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC"}
@@ -1,10 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
- tslib_1.__exportStar(require("./services/tokenFormatter"), exports);
5
- tslib_1.__exportStar(require("./services/accountCreditManager.service"), exports);
6
- tslib_1.__exportStar(require("./services/billingConfig.service"), exports);
7
- tslib_1.__exportStar(require("./services/costCalculator.service"), exports);
8
- tslib_1.__exportStar(require("./services/stripePaymentMapper"), exports);
4
+ tslib_1.__exportStar(require("./services"), exports);
9
5
  tslib_1.__exportStar(require("./interfaces"), exports);
10
6
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/billing/index.ts"],"names":[],"mappings":";;;AAAA,oEAA0C;AAC1C,kFAAwD;AACxD,2EAAiD;AACjD,4EAAkD;AAClD,yEAA+C;AAC/C,uDAA6B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/billing/index.ts"],"names":[],"mappings":";;;AAAA,qDAA2B;AAC3B,uDAA6B"}
@@ -1,12 +1,19 @@
1
1
  import { CurrencyEnum } from '@wipperoz/common-entities/dist/src/enums';
2
2
  export interface TopUpIntentResult {
3
- clientSecret: string;
3
+ clientSecret: string | null;
4
4
  paymentIntentId: string;
5
5
  tokens: number;
6
6
  tokensFormatted: string;
7
7
  priceCents: number;
8
8
  paymentCurrency: CurrencyEnum;
9
9
  priceFormatted: string;
10
+ label?: string;
11
+ savings?: {
12
+ amountCents: number;
13
+ amountFormatted: string;
14
+ percentage: number;
15
+ reason?: string;
16
+ };
10
17
  gst?: {
11
18
  applicable: boolean;
12
19
  amountCents: number;
@@ -1 +1 @@
1
- {"version":3,"file":"topUpIntentResult.interface.d.ts","sourceRoot":"","sources":["../../../../src/billing/interfaces/billing/topUpIntentResult.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,YAAY,EAAC,MAAM,0CAA0C,CAAC;AAEtE,MAAM,WAAW,iBAAiB;IAChC,YAAY,EAAE,MAAM,CAAC;IACrB,eAAe,EAAE,MAAM,CAAC;IACxB,MAAM,EAAE,MAAM,CAAC;IACf,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,EAAE,YAAY,CAAC;IAC9B,cAAc,EAAE,MAAM,CAAC;IACvB,GAAG,CAAC,EAAE;QACJ,UAAU,EAAE,OAAO,CAAC;QACpB,WAAW,EAAE,MAAM,CAAC;QACpB,cAAc,EAAE,MAAM,CAAC;QACvB,IAAI,EAAE,MAAM,CAAC;KACd,CAAC;CACH"}
1
+ {"version":3,"file":"topUpIntentResult.interface.d.ts","sourceRoot":"","sources":["../../../../src/billing/interfaces/billing/topUpIntentResult.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,YAAY,EAAC,MAAM,0CAA0C,CAAC;AAEtE,MAAM,WAAW,iBAAiB;IAChC,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,eAAe,EAAE,MAAM,CAAC;IACxB,MAAM,EAAE,MAAM,CAAC;IACf,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,EAAE,YAAY,CAAC;IAC9B,cAAc,EAAE,MAAM,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE;QACR,WAAW,EAAE,MAAM,CAAC;QACpB,eAAe,EAAE,MAAM,CAAC;QACxB,UAAU,EAAE,MAAM,CAAC;QACnB,MAAM,CAAC,EAAE,MAAM,CAAC;KACjB,CAAC;IACF,GAAG,CAAC,EAAE;QACJ,UAAU,EAAE,OAAO,CAAC;QACpB,WAAW,EAAE,MAAM,CAAC;QACpB,cAAc,EAAE,MAAM,CAAC;QACvB,IAAI,EAAE,MAAM,CAAC;KACd,CAAC;CACH"}
@@ -0,0 +1,7 @@
1
+ export * from './accountCreditManager.service';
2
+ export * from './billingConfig.service';
3
+ export * from './costCalculator.service';
4
+ export * from './stripePaymentMapper';
5
+ export * from './topUpOptions.service';
6
+ export * from './tokenFormatter';
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/billing/services/index.ts"],"names":[],"mappings":"AAAA,cAAc,gCAAgC,CAAC;AAC/C,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,kBAAkB,CAAC"}
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./accountCreditManager.service"), exports);
5
+ tslib_1.__exportStar(require("./billingConfig.service"), exports);
6
+ tslib_1.__exportStar(require("./costCalculator.service"), exports);
7
+ tslib_1.__exportStar(require("./stripePaymentMapper"), exports);
8
+ tslib_1.__exportStar(require("./topUpOptions.service"), exports);
9
+ tslib_1.__exportStar(require("./tokenFormatter"), exports);
10
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/billing/services/index.ts"],"names":[],"mappings":";;;AAAA,yEAA+C;AAC/C,kEAAwC;AACxC,mEAAyC;AACzC,gEAAsC;AACtC,iEAAuC;AACvC,2DAAiC"}