@blocklet/payment-types 1.13.163 → 1.13.164
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 +9 -5
- package/lib/types.d.ts +3 -0
- package/package.json +2 -2
package/lib/invoice.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { CreationOptional, DataTypes, InferAttributes, InferCreationAttributes, Model
|
|
1
|
+
import { CreationOptional, DataTypes, InferAttributes, InferCreationAttributes, Model } from 'sequelize';
|
|
2
2
|
import type { LiteralUnion } from 'type-fest';
|
|
3
|
-
import type { CustomerAddress, CustomerShipping, DiscountAmount, GroupedBN, PaymentError, PaymentSettings, SimpleCustomField } from './types';
|
|
3
|
+
import type { CustomerAddress, CustomerShipping, DiscountAmount, GroupedBN, GroupedStrList, PaymentError, PaymentSettings, SimpleCustomField } from './types';
|
|
4
4
|
export declare const nextInvoiceId: (size?: number | undefined) => string;
|
|
5
5
|
export declare class Invoice extends Model<InferAttributes<Invoice>, InferCreationAttributes<Invoice>> {
|
|
6
6
|
id: CreationOptional<string>;
|
|
@@ -352,8 +352,12 @@ export declare class Invoice extends Model<InferAttributes<Invoice>, InferCreati
|
|
|
352
352
|
static initialize(sequelize: any): void;
|
|
353
353
|
static associate(models: any): void;
|
|
354
354
|
isImmutable(): boolean;
|
|
355
|
-
static
|
|
356
|
-
static
|
|
357
|
-
|
|
355
|
+
private static _getUncollectibleAmount;
|
|
356
|
+
static getUncollectibleAmount({ customerId, subscriptionId, currencyId, excludedInvoiceId, }: {
|
|
357
|
+
customerId?: string;
|
|
358
|
+
subscriptionId?: string;
|
|
359
|
+
currencyId?: string;
|
|
360
|
+
excludedInvoiceId?: string;
|
|
361
|
+
}): Promise<[GroupedBN, GroupedStrList]>;
|
|
358
362
|
}
|
|
359
363
|
export type TInvoice = InferAttributes<Invoice>;
|
package/lib/types.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blocklet/payment-types",
|
|
3
|
-
"version": "1.13.
|
|
3
|
+
"version": "1.13.164",
|
|
4
4
|
"description": "Typings for Payment Kit SDK",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"types",
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"sequelize": "^6.36.0",
|
|
49
49
|
"type-fest": "^4.10.2"
|
|
50
50
|
},
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "3172c382ed27451d90ea78ebd99087658fe7362c"
|
|
52
52
|
}
|