@aptly-as/types 2.6.7 → 2.7.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/enums/index.d.ts +1 -0
- package/enums/index.js +1 -0
- package/models/payment.d.ts +8 -1
- package/models/payment.js +7 -1
- package/package.json +1 -1
package/enums/index.d.ts
CHANGED
|
@@ -144,6 +144,7 @@ export declare enum AptlyEmailType {
|
|
|
144
144
|
OrderPay = "order-pay",
|
|
145
145
|
OrderPayNotify = "order-pay-notify",
|
|
146
146
|
OrderPayFailed = "order-pay-failed",
|
|
147
|
+
OrderPayDeliver = "order-pay-deliver",
|
|
147
148
|
OrderPayDelivery = "order-pay-delivery",
|
|
148
149
|
OrderPayed = "order-payed",
|
|
149
150
|
OrderReceipt = "order-receipt",
|
package/enums/index.js
CHANGED
|
@@ -164,6 +164,7 @@ export var AptlyEmailType;
|
|
|
164
164
|
AptlyEmailType["OrderPay"] = "order-pay";
|
|
165
165
|
AptlyEmailType["OrderPayNotify"] = "order-pay-notify";
|
|
166
166
|
AptlyEmailType["OrderPayFailed"] = "order-pay-failed";
|
|
167
|
+
AptlyEmailType["OrderPayDeliver"] = "order-pay-deliver";
|
|
167
168
|
AptlyEmailType["OrderPayDelivery"] = "order-pay-delivery";
|
|
168
169
|
AptlyEmailType["OrderPayed"] = "order-payed";
|
|
169
170
|
AptlyEmailType["OrderReceipt"] = "order-receipt";
|
package/models/payment.d.ts
CHANGED
|
@@ -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
|
|
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 = {}));
|