@blocklet/payment-types 1.18.12 → 1.18.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/lib/invoice.d.ts +1 -1
- package/lib/payment-currency.d.ts +6 -0
- package/lib/payout.d.ts +1 -0
- package/lib/types.d.ts +5 -0
- package/package.json +2 -2
package/lib/invoice.d.ts
CHANGED
|
@@ -359,7 +359,7 @@ export declare class Invoice extends Model<InferAttributes<Invoice>, InferCreati
|
|
|
359
359
|
currencyId?: string;
|
|
360
360
|
excludedInvoiceId?: string;
|
|
361
361
|
livemode?: boolean;
|
|
362
|
-
}): Promise<[GroupedBN, GroupedStrList]>;
|
|
362
|
+
}): Promise<[GroupedBN, GroupedStrList, Invoice[]]>;
|
|
363
363
|
static getSummary(livemode?: boolean, field?: string): Promise<Invoice[]>;
|
|
364
364
|
}
|
|
365
365
|
export type TInvoice = InferAttributes<Invoice>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { CreationOptional, DataTypes, FindOptions, InferAttributes, InferCreationAttributes, Model } from 'sequelize';
|
|
2
|
+
import { VaultConfig } from './types';
|
|
2
3
|
export declare class PaymentCurrency extends Model<InferAttributes<PaymentCurrency>, InferCreationAttributes<PaymentCurrency>> {
|
|
3
4
|
id: CreationOptional<string>;
|
|
4
5
|
payment_method_id: string;
|
|
@@ -18,6 +19,7 @@ export declare class PaymentCurrency extends Model<InferAttributes<PaymentCurren
|
|
|
18
19
|
metadata: Record<string, any>;
|
|
19
20
|
created_at: CreationOptional<Date>;
|
|
20
21
|
updated_at: CreationOptional<Date>;
|
|
22
|
+
vault_config?: VaultConfig;
|
|
21
23
|
static readonly GENESIS_ATTRIBUTES: {
|
|
22
24
|
id: {
|
|
23
25
|
type: DataTypes.StringDataType;
|
|
@@ -96,6 +98,10 @@ export declare class PaymentCurrency extends Model<InferAttributes<PaymentCurren
|
|
|
96
98
|
defaultValue: DataTypes.AbstractDataTypeConstructor;
|
|
97
99
|
allowNull: boolean;
|
|
98
100
|
};
|
|
101
|
+
vault_config: {
|
|
102
|
+
type: DataTypes.AbstractDataTypeConstructor;
|
|
103
|
+
allowNull: boolean;
|
|
104
|
+
};
|
|
99
105
|
};
|
|
100
106
|
static initialize(sequelize: any): void;
|
|
101
107
|
static associate(models: any): void;
|
package/lib/payout.d.ts
CHANGED
|
@@ -119,5 +119,6 @@ export declare class Payout extends Model<InferAttributes<Payout>, InferCreation
|
|
|
119
119
|
isImmutable(): boolean;
|
|
120
120
|
static getPayoutAmountByCustomer(customerId: string, status?: string): Promise<GroupedBN>;
|
|
121
121
|
static getSummary(livemode?: boolean, field?: string): Promise<Payout[]>;
|
|
122
|
+
static getPayoutLockedAmount(where?: any): Promise<GroupedBN>;
|
|
122
123
|
}
|
|
123
124
|
export type TPayout = InferAttributes<Payout>;
|
package/lib/types.d.ts
CHANGED
|
@@ -233,6 +233,11 @@ export type PaymentMethodSettings = {
|
|
|
233
233
|
confirmation: number;
|
|
234
234
|
};
|
|
235
235
|
};
|
|
236
|
+
export type VaultConfig = {
|
|
237
|
+
enabled: boolean;
|
|
238
|
+
deposit_threshold: string;
|
|
239
|
+
withdraw_threshold: string;
|
|
240
|
+
};
|
|
236
241
|
export type PaymentSettings = {
|
|
237
242
|
payment_method_options: PaymentMethodOptions;
|
|
238
243
|
payment_method_types: string[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blocklet/payment-types",
|
|
3
|
-
"version": "1.18.
|
|
3
|
+
"version": "1.18.14",
|
|
4
4
|
"description": "Typings for Payment Kit SDK",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"types",
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"sequelize": "^6.37.3",
|
|
49
49
|
"type-fest": "^4.23.0"
|
|
50
50
|
},
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "84cf68d98fcf1df0655e90567b98d6bab38f300e"
|
|
52
52
|
}
|