@aptly-as/types 2.6.7 → 2.7.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.
@@ -14,6 +14,7 @@ export interface AptlyPaymentSchema<ID, DATE> extends Omit<AptlyBaseSchema<ID, D
14
14
  order: ID | AptlyOrderSchema<ID, DATE>;
15
15
  app: ID | AptlyAppSchema<ID, DATE>;
16
16
  document?: ID | AptlyDocumentSchema<ID, DATE>;
17
+ status: AptlyPaymentStatus;
17
18
  number: number;
18
19
  totalCost: number;
19
20
  totalVat: number;
@@ -39,6 +40,12 @@ export interface AptlyPaymentSchema<ID, DATE> extends Omit<AptlyBaseSchema<ID, D
39
40
  at: DATE;
40
41
  };
41
42
  }
43
+ export declare enum AptlyPaymentStatus {
44
+ Authorized = "AUTHORIZED",
45
+ PendingDelivery = "PENDING_DELIVERY",
46
+ PendingCapture = "PENDING_CAPTURE",
47
+ Captured = "CAPTURED"
48
+ }
42
49
  export type AptlyPaymentSplit = AptlyPaymentSplitSchema<string>;
43
50
  export interface AptlyPaymentSplitSchema<ID> {
44
51
  _id: ID;
@@ -51,7 +58,7 @@ export interface AptlyPaymentCaptureSchema<ID, DATE> {
51
58
  amount: number;
52
59
  description: string;
53
60
  ref: string;
54
- user: ID | AptlyUserSchema<ID, DATE>;
61
+ user?: ID | AptlyUserSchema<ID, DATE>;
55
62
  at: DATE;
56
63
  }
57
64
  export interface AptlyPaymentCompany {
package/models/payment.js CHANGED
@@ -1 +1,7 @@
1
- export {};
1
+ export var AptlyPaymentStatus;
2
+ (function (AptlyPaymentStatus) {
3
+ AptlyPaymentStatus["Authorized"] = "AUTHORIZED";
4
+ AptlyPaymentStatus["PendingDelivery"] = "PENDING_DELIVERY";
5
+ AptlyPaymentStatus["PendingCapture"] = "PENDING_CAPTURE";
6
+ AptlyPaymentStatus["Captured"] = "CAPTURED";
7
+ })(AptlyPaymentStatus || (AptlyPaymentStatus = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aptly-as/types",
3
- "version": "2.6.7",
3
+ "version": "2.7.0",
4
4
  "description": "Aptly types and enums",
5
5
  "type": "module",
6
6
  "main": "./index.js",