@aptly-as/types 2.5.13 → 2.5.15
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/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/organization.d.ts +1 -0
- package/models/payment-settlement.d.ts +42 -0
- package/models/payment-settlement.js +1 -0
- package/models/unit-template.d.ts +1 -1
- package/package.json +1 -1
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/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 {};
|
|
@@ -90,7 +90,7 @@ export interface AptlyUnitTemplateCategorySectionProductSchema<ID, DATE> {
|
|
|
90
90
|
amount: number;
|
|
91
91
|
unitCost?: number;
|
|
92
92
|
unitVat?: number;
|
|
93
|
-
algorithm: ID | AptlyAlgorithmSchema<ID
|
|
93
|
+
algorithm: ID | AptlyAlgorithmSchema<ID> | null;
|
|
94
94
|
standard: boolean;
|
|
95
95
|
standardVariant?: ID;
|
|
96
96
|
partOfPackage?: ID;
|