@blocklet/payment-types 1.20.8 → 1.20.10
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/lib/payout.d.ts +2 -2
- package/lib/product-vendor.d.ts +10 -20
- package/lib/product.d.ts +2 -0
- package/package.json +2 -2
package/lib/payout.d.ts
CHANGED
|
@@ -21,7 +21,7 @@ export declare class Payout extends Model<InferAttributes<Payout>, InferCreation
|
|
|
21
21
|
order_id: string;
|
|
22
22
|
commission_amount: string;
|
|
23
23
|
};
|
|
24
|
-
status: LiteralUnion<'pending' | 'paid' | 'failed' | 'canceled' | 'in_transit', string>;
|
|
24
|
+
status: LiteralUnion<'pending' | 'paid' | 'failed' | 'canceled' | 'in_transit' | 'deferred', string>;
|
|
25
25
|
failure_message?: string;
|
|
26
26
|
failure_code?: LiteralUnion<'account_closed' | 'account_frozen' | 'bank_account_restricted' | 'bank_ownership_changed' | 'could_not_process' | 'debit_not_authorized' | 'declined' | 'incorrect_account_holder_address' | 'incorrect_account_holder_name' | 'incorrect_account_holder_tax_id' | 'incorrect_account_type' | 'insufficient_funds' | 'invalid_account_number', string>;
|
|
27
27
|
attempt_count: number;
|
|
@@ -82,7 +82,7 @@ export declare class Payout extends Model<InferAttributes<Payout>, InferCreation
|
|
|
82
82
|
allowNull: boolean;
|
|
83
83
|
};
|
|
84
84
|
status: {
|
|
85
|
-
type: DataTypes.EnumDataType<"pending" | "canceled" | "paid" | "failed" | "in_transit">;
|
|
85
|
+
type: DataTypes.EnumDataType<"pending" | "canceled" | "paid" | "failed" | "in_transit" | "deferred">;
|
|
86
86
|
allowNull: boolean;
|
|
87
87
|
};
|
|
88
88
|
failure_message: {
|
package/lib/product-vendor.d.ts
CHANGED
|
@@ -3,15 +3,13 @@ export declare const nextProductVendorId: (size?: number) => string;
|
|
|
3
3
|
export declare class ProductVendor extends Model<InferAttributes<ProductVendor>, InferCreationAttributes<ProductVendor>> {
|
|
4
4
|
id: CreationOptional<string>;
|
|
5
5
|
vendor_key: string;
|
|
6
|
+
vendor_type: string;
|
|
6
7
|
name: string;
|
|
7
8
|
description: string;
|
|
8
9
|
app_url: string;
|
|
9
|
-
webhook_path?: string;
|
|
10
|
-
default_commission_rate: number;
|
|
11
|
-
default_commission_type: 'percentage' | 'fixed_amount';
|
|
12
|
-
order_create_params: Record<string, any>;
|
|
13
10
|
app_pid?: string;
|
|
14
11
|
app_logo?: string;
|
|
12
|
+
vendor_did?: string;
|
|
15
13
|
status: 'active' | 'inactive';
|
|
16
14
|
metadata: Record<string, any>;
|
|
17
15
|
created_by: string;
|
|
@@ -29,6 +27,11 @@ export declare class ProductVendor extends Model<InferAttributes<ProductVendor>,
|
|
|
29
27
|
allowNull: boolean;
|
|
30
28
|
unique: boolean;
|
|
31
29
|
};
|
|
30
|
+
vendor_type: {
|
|
31
|
+
type: DataTypes.StringDataType;
|
|
32
|
+
allowNull: boolean;
|
|
33
|
+
defaultValue: string;
|
|
34
|
+
};
|
|
32
35
|
name: {
|
|
33
36
|
type: DataTypes.StringDataType;
|
|
34
37
|
allowNull: boolean;
|
|
@@ -41,28 +44,15 @@ export declare class ProductVendor extends Model<InferAttributes<ProductVendor>,
|
|
|
41
44
|
type: DataTypes.StringDataType;
|
|
42
45
|
allowNull: boolean;
|
|
43
46
|
};
|
|
44
|
-
|
|
47
|
+
app_pid: {
|
|
45
48
|
type: DataTypes.StringDataType;
|
|
46
49
|
allowNull: boolean;
|
|
47
50
|
};
|
|
48
|
-
|
|
49
|
-
type: DataTypes.DecimalDataType;
|
|
50
|
-
allowNull: boolean;
|
|
51
|
-
};
|
|
52
|
-
default_commission_type: {
|
|
53
|
-
type: DataTypes.EnumDataType<"percentage" | "fixed_amount">;
|
|
54
|
-
allowNull: boolean;
|
|
55
|
-
};
|
|
56
|
-
order_create_params: {
|
|
57
|
-
type: DataTypes.AbstractDataTypeConstructor;
|
|
58
|
-
allowNull: boolean;
|
|
59
|
-
defaultValue: {};
|
|
60
|
-
};
|
|
61
|
-
app_pid: {
|
|
51
|
+
app_logo: {
|
|
62
52
|
type: DataTypes.StringDataType;
|
|
63
53
|
allowNull: boolean;
|
|
64
54
|
};
|
|
65
|
-
|
|
55
|
+
vendor_did: {
|
|
66
56
|
type: DataTypes.StringDataType;
|
|
67
57
|
allowNull: boolean;
|
|
68
58
|
};
|
package/lib/product.d.ts
CHANGED
|
@@ -25,11 +25,13 @@ export declare class Product extends Model<InferAttributes<Product>, InferCreati
|
|
|
25
25
|
vendor_config?: Array<{
|
|
26
26
|
vendor_id: string;
|
|
27
27
|
vendor_key: string;
|
|
28
|
+
vendor_type: string;
|
|
28
29
|
name?: string;
|
|
29
30
|
description?: string;
|
|
30
31
|
commission_rate?: number;
|
|
31
32
|
commission_type?: 'percentage' | 'fixed_amount';
|
|
32
33
|
amount?: string;
|
|
34
|
+
commissionAmount?: string;
|
|
33
35
|
custom_params?: Record<string, any>;
|
|
34
36
|
}>;
|
|
35
37
|
created_at: CreationOptional<Date>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blocklet/payment-types",
|
|
3
|
-
"version": "1.20.
|
|
3
|
+
"version": "1.20.10",
|
|
4
4
|
"description": "Typings for Payment Kit SDK",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"types",
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"sequelize": "^6.37.7",
|
|
49
49
|
"type-fest": "^4.41.0"
|
|
50
50
|
},
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "1659d63120ced92167ec8681e51db96801b910ec"
|
|
52
52
|
}
|