@aptly-as/types 2.5.12 → 2.5.14
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/app.d.ts +2 -1
- package/models/app.js +1 -0
- package/models/index.d.ts +1 -0
- package/models/index.js +1 -0
- package/models/order.d.ts +1 -0
- package/models/organization.d.ts +1 -0
- package/models/payment-settlement.d.ts +42 -0
- package/models/payment-settlement.js +1 -0
- package/package.json +1 -1
package/enums/index.d.ts
CHANGED
|
@@ -142,6 +142,7 @@ export declare enum AptlyEmailType {
|
|
|
142
142
|
OrderSigned = "order-signed",
|
|
143
143
|
OrderSignedManually = "order-signed-manually",
|
|
144
144
|
OrderPay = "order-pay",
|
|
145
|
+
OrderPayNotify = "order-pay-notify",
|
|
145
146
|
OrderPayFailed = "order-pay-failed",
|
|
146
147
|
OrderPayed = "order-payed",
|
|
147
148
|
OrderReceipt = "order-receipt",
|
package/enums/index.js
CHANGED
|
@@ -162,6 +162,7 @@ export var AptlyEmailType;
|
|
|
162
162
|
AptlyEmailType["OrderSigned"] = "order-signed";
|
|
163
163
|
AptlyEmailType["OrderSignedManually"] = "order-signed-manually";
|
|
164
164
|
AptlyEmailType["OrderPay"] = "order-pay";
|
|
165
|
+
AptlyEmailType["OrderPayNotify"] = "order-pay-notify";
|
|
165
166
|
AptlyEmailType["OrderPayFailed"] = "order-pay-failed";
|
|
166
167
|
AptlyEmailType["OrderPayed"] = "order-payed";
|
|
167
168
|
AptlyEmailType["OrderReceipt"] = "order-receipt";
|
package/models/app.d.ts
CHANGED
|
@@ -37,7 +37,8 @@ export declare enum AptlyAppImplementation {
|
|
|
37
37
|
}
|
|
38
38
|
export declare enum AptlyAppImplementationSetting {
|
|
39
39
|
SignCostPer = "costPerSign",
|
|
40
|
-
SignMethod = "signMethod"
|
|
40
|
+
SignMethod = "signMethod",
|
|
41
|
+
PaymentSellerId = "seller_id"
|
|
41
42
|
}
|
|
42
43
|
export type AptlyAppSetting = AptlyAppSettingSchema<string>;
|
|
43
44
|
export interface AptlyAppSettingSchema<ID> extends AptlyField {
|
package/models/app.js
CHANGED
|
@@ -7,6 +7,7 @@ export var AptlyAppImplementationSetting;
|
|
|
7
7
|
(function (AptlyAppImplementationSetting) {
|
|
8
8
|
AptlyAppImplementationSetting["SignCostPer"] = "costPerSign";
|
|
9
9
|
AptlyAppImplementationSetting["SignMethod"] = "signMethod";
|
|
10
|
+
AptlyAppImplementationSetting["PaymentSellerId"] = "seller_id";
|
|
10
11
|
})(AptlyAppImplementationSetting || (AptlyAppImplementationSetting = {}));
|
|
11
12
|
export var AptlyUserInjection;
|
|
12
13
|
(function (AptlyUserInjection) {
|
package/models/index.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ export * from './order.js';
|
|
|
16
16
|
export * from './organization.js';
|
|
17
17
|
export * from './page.js';
|
|
18
18
|
export * from './payment.js';
|
|
19
|
+
export * from './payment-settlement.js';
|
|
19
20
|
export * from './period.js';
|
|
20
21
|
export * from './producer.js';
|
|
21
22
|
export * from './product.js';
|
package/models/index.js
CHANGED
|
@@ -16,6 +16,7 @@ export * from './order.js';
|
|
|
16
16
|
export * from './organization.js';
|
|
17
17
|
export * from './page.js';
|
|
18
18
|
export * from './payment.js';
|
|
19
|
+
export * from './payment-settlement.js';
|
|
19
20
|
export * from './period.js';
|
|
20
21
|
export * from './producer.js';
|
|
21
22
|
export * from './product.js';
|
package/models/order.d.ts
CHANGED
|
@@ -57,6 +57,7 @@ export interface AptlyOrderPaymentSessionSchema<ID, DATE> {
|
|
|
57
57
|
expiresAt?: DATE | null;
|
|
58
58
|
paidAt?: DATE | null;
|
|
59
59
|
capturedAt?: DATE | null;
|
|
60
|
+
notifiedAt?: DATE | null;
|
|
60
61
|
}
|
|
61
62
|
export type AptlyOrderSignee = AptlyOrderSigneeSchema<string, string>;
|
|
62
63
|
export interface AptlyOrderSigneeSchema<ID, DATE> {
|
package/models/organization.d.ts
CHANGED
|
@@ -40,6 +40,7 @@ export interface AptlyOrganizationSchema<ID, DATE> extends AptlyBaseSchema<ID, D
|
|
|
40
40
|
type?: AptlyOrganizationType[];
|
|
41
41
|
signApp?: ID | AptlyAppSchema<ID, DATE> | null;
|
|
42
42
|
signMembers?: (ID | AptlyUserSchema<ID, DATE>)[];
|
|
43
|
+
tripletexCustomerId?: string;
|
|
43
44
|
created: DATE;
|
|
44
45
|
fixedVariants?: boolean;
|
|
45
46
|
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
export type AptlyPaymentSettlement = AptlyPaymentSettlementSchema<string, string>;
|
|
2
|
+
export interface AptlyPaymentSettlementSchema<ID, DATE> {
|
|
3
|
+
_id: ID;
|
|
4
|
+
app: ID;
|
|
5
|
+
externalId: string;
|
|
6
|
+
externalRef: string;
|
|
7
|
+
destination: string;
|
|
8
|
+
amounts: AptlyPaymentSettlementAmountSchema<ID>[];
|
|
9
|
+
transactions: AptlyPaymentSettlementTransactionSchema<ID, DATE>[];
|
|
10
|
+
at: DATE;
|
|
11
|
+
tripletexId?: string;
|
|
12
|
+
updatedAt: DATE;
|
|
13
|
+
createdAt: DATE;
|
|
14
|
+
}
|
|
15
|
+
export type AptlyPaymentSettlementAmount = AptlyPaymentSettlementAmountSchema<string>;
|
|
16
|
+
export interface AptlyPaymentSettlementAmountSchema<ID> {
|
|
17
|
+
_id: ID;
|
|
18
|
+
amount: number;
|
|
19
|
+
gross: number;
|
|
20
|
+
fee: number;
|
|
21
|
+
chargeback: number;
|
|
22
|
+
capture: number;
|
|
23
|
+
currency: string;
|
|
24
|
+
net: number;
|
|
25
|
+
refund: number;
|
|
26
|
+
}
|
|
27
|
+
export type AptlyPaymentSettlementTransaction = AptlyPaymentSettlementTransactionSchema<string, string>;
|
|
28
|
+
export interface AptlyPaymentSettlementTransactionSchema<ID, DATE> {
|
|
29
|
+
_id: ID;
|
|
30
|
+
sessionID: string;
|
|
31
|
+
transactionDate: DATE;
|
|
32
|
+
transactionID: string;
|
|
33
|
+
transactionType: string;
|
|
34
|
+
captured: number;
|
|
35
|
+
refunded: number;
|
|
36
|
+
chargeback: number;
|
|
37
|
+
amount: number;
|
|
38
|
+
fee: number;
|
|
39
|
+
net: number;
|
|
40
|
+
vat: number;
|
|
41
|
+
order: ID;
|
|
42
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|