@paydala-payments/models 0.7.51 → 0.7.52

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.
@@ -13,7 +13,13 @@ interface PaydalaOperator {
13
13
  }
14
14
  export type OperatorCustomData = {
15
15
  company?: string;
16
- partnerId: string;
16
+ partnerId?: string;
17
+ base?: {
18
+ amount: number;
19
+ };
20
+ fees?: {
21
+ amount: number;
22
+ };
17
23
  tax?: {
18
24
  amount: number;
19
25
  };
@@ -21,6 +27,9 @@ export type OperatorCustomData = {
21
27
  waiterId: string;
22
28
  amount: number;
23
29
  };
30
+ total?: {
31
+ amount: number;
32
+ };
24
33
  };
25
34
  export interface CredentialsPayload {
26
35
  /** A unique string to help identify transactions */
package/dist/partner.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import { OperatorCustomData } from "./operator_credentials";
1
2
  export interface Partner {
2
3
  blockedInstruments: {
3
4
  card: {
@@ -16,7 +17,5 @@ export interface Partner {
16
17
  id: number;
17
18
  company: string | null;
18
19
  };
19
- customData?: {
20
- [key: string]: string | number | boolean | any;
21
- };
20
+ customData?: OperatorCustomData;
22
21
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paydala-payments/models",
3
- "version": "0.7.51",
3
+ "version": "0.7.52",
4
4
  "description": "Models of the Paydala project",
5
5
  "keywords": [
6
6
  "paydala",