@blocklet/payment-types 1.13.113

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/price.d.ts ADDED
@@ -0,0 +1,156 @@
1
+ import { CreationOptional, DataTypes, FindOptions, InferAttributes, InferCreationAttributes, Model } from 'sequelize';
2
+ import type { LiteralUnion } from 'type-fest';
3
+ import type { TPaymentCurrency } from './payment-currency';
4
+ import type { CustomUnitAmount, LineItem, PriceCurrency, PriceRecurring, PriceTier, TransformQuantity } from './types';
5
+ export declare const nextPriceId: (size?: number | undefined) => string;
6
+ type TPriceExpanded = TPrice & {
7
+ object: 'price';
8
+ product: any;
9
+ currency: TPaymentCurrency;
10
+ upsell?: {
11
+ upsells_to: TPriceExpanded;
12
+ upsells_to_id: string;
13
+ };
14
+ };
15
+ type TLineItemExpanded = LineItem & {
16
+ price: TPriceExpanded;
17
+ upsell_price: TPriceExpanded;
18
+ };
19
+ export declare class Price extends Model<InferAttributes<Price>, InferCreationAttributes<Price>> {
20
+ id: CreationOptional<string>;
21
+ product_id: string;
22
+ nickname: string | null;
23
+ active: boolean;
24
+ livemode: boolean;
25
+ locked: CreationOptional<boolean>;
26
+ type: LiteralUnion<'one_time' | 'recurring', string>;
27
+ billing_scheme: LiteralUnion<'per_unit' | 'tiered', string>;
28
+ unit_amount: string;
29
+ recurring: PriceRecurring | null;
30
+ tiers_mode: LiteralUnion<'graduated' | 'volume', string> | null;
31
+ tiers: PriceTier[] | null;
32
+ custom_unit_amount: CustomUnitAmount | null;
33
+ lookup_key: string | null;
34
+ metadata: Record<string, any>;
35
+ transform_quantity: TransformQuantity | null;
36
+ currency_id: string;
37
+ currency_options: PriceCurrency[];
38
+ upsell?: {
39
+ upsells_to_id: string;
40
+ } | null;
41
+ created_at: CreationOptional<Date>;
42
+ created_via: LiteralUnion<'api' | 'dashboard' | 'portal', string>;
43
+ updated_at: CreationOptional<Date>;
44
+ static readonly GENESIS_ATTRIBUTES: {
45
+ id: {
46
+ type: DataTypes.StringDataType;
47
+ primaryKey: boolean;
48
+ allowNull: boolean;
49
+ defaultValue: (size?: number | undefined) => string;
50
+ };
51
+ product_id: {
52
+ type: DataTypes.StringDataType;
53
+ allowNull: boolean;
54
+ };
55
+ nickname: {
56
+ type: DataTypes.StringDataType;
57
+ };
58
+ active: {
59
+ type: DataTypes.AbstractDataTypeConstructor;
60
+ allowNull: boolean;
61
+ };
62
+ livemode: {
63
+ type: DataTypes.AbstractDataTypeConstructor;
64
+ allowNull: boolean;
65
+ };
66
+ locked: {
67
+ type: DataTypes.AbstractDataTypeConstructor;
68
+ defaultValue: boolean;
69
+ };
70
+ type: {
71
+ type: DataTypes.EnumDataType<"recurring" | "one_time">;
72
+ allowNull: boolean;
73
+ };
74
+ billing_scheme: {
75
+ type: DataTypes.EnumDataType<"per_unit" | "tiered">;
76
+ allowNull: boolean;
77
+ };
78
+ unit_amount: {
79
+ type: DataTypes.StringDataType;
80
+ allowNull: boolean;
81
+ };
82
+ recurring: {
83
+ type: DataTypes.AbstractDataTypeConstructor;
84
+ allowNull: boolean;
85
+ };
86
+ tiers_mode: {
87
+ type: DataTypes.EnumDataType<"graduated" | "volume">;
88
+ allowNull: boolean;
89
+ };
90
+ tiers: {
91
+ type: DataTypes.AbstractDataTypeConstructor;
92
+ allowNull: boolean;
93
+ };
94
+ custom_unit_amount: {
95
+ type: DataTypes.AbstractDataTypeConstructor;
96
+ allowNull: boolean;
97
+ };
98
+ lookup_key: {
99
+ type: DataTypes.StringDataType;
100
+ allowNull: boolean;
101
+ };
102
+ metadata: {
103
+ type: DataTypes.AbstractDataTypeConstructor;
104
+ allowNull: boolean;
105
+ };
106
+ transform_quantity: {
107
+ type: DataTypes.AbstractDataTypeConstructor;
108
+ allowNull: boolean;
109
+ };
110
+ currency_id: {
111
+ type: DataTypes.StringDataType;
112
+ };
113
+ currency_options: {
114
+ type: DataTypes.AbstractDataTypeConstructor;
115
+ defaultValue: never[];
116
+ };
117
+ created_at: {
118
+ type: DataTypes.DateDataTypeConstructor;
119
+ defaultValue: DataTypes.AbstractDataTypeConstructor;
120
+ allowNull: boolean;
121
+ };
122
+ created_via: {
123
+ type: DataTypes.EnumDataType<"api" | "dashboard" | "portal">;
124
+ };
125
+ updated_at: {
126
+ type: DataTypes.DateDataTypeConstructor;
127
+ defaultValue: DataTypes.AbstractDataTypeConstructor;
128
+ allowNull: boolean;
129
+ };
130
+ };
131
+ static initialize(sequelize: any): void;
132
+ static associate(models: any): void;
133
+ static getModel(price: TPrice): LiteralUnion<"graduated" | "volume", string> | "package" | "standard" | null;
134
+ static formatBeforeSave(price: Partial<TPrice & {
135
+ model: string;
136
+ }>): Partial<InferAttributes<Price, {
137
+ omit: never;
138
+ }> & {
139
+ model: string;
140
+ }>;
141
+ static formatAfterRead(doc: TPrice, currencies: TPaymentCurrency[]): InferAttributes<Price, {
142
+ omit: never;
143
+ }>;
144
+ static formatCurrencies(options: PriceCurrency[], currencies: TPaymentCurrency[]): any[];
145
+ static expand(items: LineItem[], { product, upsell }?: {
146
+ product?: boolean;
147
+ upsell?: boolean;
148
+ }): Promise<TLineItemExpanded[]>;
149
+ static insert(price: TPrice & {
150
+ model: string;
151
+ }): Promise<Price>;
152
+ static findByPkOrLookupKey(id: string, options?: FindOptions<Price>): Promise<Price | null>;
153
+ isUsed(checkProduct?: boolean): Promise<boolean>;
154
+ }
155
+ export type TPrice = InferAttributes<Price>;
156
+ export {};
@@ -0,0 +1,109 @@
1
+ import { CreationOptional, DataTypes, InferAttributes, InferCreationAttributes, Model } from 'sequelize';
2
+ import type { LiteralUnion } from 'type-fest';
3
+ import type { BrandSettings, PricingTableItem } from './types';
4
+ export declare const nextPricingTableId: (size?: number | undefined) => string;
5
+ export declare class PricingTable extends Model<InferAttributes<PricingTable>, InferCreationAttributes<PricingTable>> {
6
+ id: CreationOptional<string>;
7
+ active: boolean;
8
+ livemode: boolean;
9
+ locked: boolean;
10
+ name: string;
11
+ items: PricingTableItem[];
12
+ branding_settings: BrandSettings;
13
+ metadata?: Record<string, any>;
14
+ created_at: CreationOptional<Date>;
15
+ created_via: LiteralUnion<'api' | 'dashboard' | 'portal', string>;
16
+ updated_at: CreationOptional<Date>;
17
+ static readonly GENESIS_ATTRIBUTES: {
18
+ id: {
19
+ type: DataTypes.StringDataType;
20
+ primaryKey: boolean;
21
+ allowNull: boolean;
22
+ defaultValue: (size?: number | undefined) => string;
23
+ };
24
+ active: {
25
+ type: DataTypes.AbstractDataTypeConstructor;
26
+ allowNull: boolean;
27
+ };
28
+ livemode: {
29
+ type: DataTypes.AbstractDataTypeConstructor;
30
+ allowNull: boolean;
31
+ };
32
+ locked: {
33
+ type: DataTypes.AbstractDataTypeConstructor;
34
+ allowNull: boolean;
35
+ };
36
+ name: {
37
+ type: DataTypes.StringDataType;
38
+ allowNull: boolean;
39
+ };
40
+ items: {
41
+ type: DataTypes.AbstractDataTypeConstructor;
42
+ defaultValue: never[];
43
+ };
44
+ branding_settings: {
45
+ type: DataTypes.AbstractDataTypeConstructor;
46
+ allowNull: boolean;
47
+ };
48
+ metadata: {
49
+ type: DataTypes.AbstractDataTypeConstructor;
50
+ allowNull: boolean;
51
+ };
52
+ created_at: {
53
+ type: DataTypes.DateDataTypeConstructor;
54
+ defaultValue: DataTypes.AbstractDataTypeConstructor;
55
+ allowNull: boolean;
56
+ };
57
+ created_via: {
58
+ type: DataTypes.EnumDataType<"api" | "dashboard" | "portal">;
59
+ };
60
+ updated_at: {
61
+ type: DataTypes.DateDataTypeConstructor;
62
+ defaultValue: DataTypes.AbstractDataTypeConstructor;
63
+ allowNull: boolean;
64
+ };
65
+ };
66
+ static initialize(sequelize: any): void;
67
+ static associate(): void;
68
+ static formatItem(payload: any): {
69
+ adjustable_quantity: {
70
+ enabled: boolean;
71
+ maximum: number;
72
+ minimum: number;
73
+ };
74
+ after_completion: {
75
+ type: string;
76
+ hosted_confirmation: {
77
+ custom_message: string;
78
+ };
79
+ };
80
+ allow_promotion_codes: boolean;
81
+ customer_creation: string;
82
+ consent_collection: {
83
+ promotions: string;
84
+ terms_of_service: string;
85
+ };
86
+ invoice_creation: {
87
+ enabled: boolean;
88
+ };
89
+ phone_number_collection: {
90
+ enabled: boolean;
91
+ };
92
+ billing_address_collection: string;
93
+ subscription_data: {
94
+ description: string;
95
+ trial_period_days: number;
96
+ };
97
+ nft_mint_settings: {
98
+ enabled: boolean;
99
+ factory: string;
100
+ };
101
+ submit_type: string;
102
+ cross_sell_behavior: string;
103
+ } & Pick<any, "custom_fields" | "price_id" | "after_completion" | "allow_promotion_codes" | "consent_collection" | "phone_number_collection" | "billing_address_collection" | "submit_type" | "subscription_data" | "nft_mint_settings" | "cross_sell_behavior" | "product_id" | "adjustable_quantity" | "highlight_text" | "is_highlight">;
104
+ static format(payload: any): Partial<PricingTable>;
105
+ expand(): Promise<InferAttributes<PricingTable, {
106
+ omit: never;
107
+ }>>;
108
+ }
109
+ export type TPricingTable = InferAttributes<PricingTable>;
@@ -0,0 +1,104 @@
1
+ import { CreationOptional, DataTypes, InferAttributes, InferCreationAttributes, Model } from 'sequelize';
2
+ import type { LiteralUnion } from 'type-fest';
3
+ export declare const nextProductId: (size?: number | undefined) => string;
4
+ export type ProductFeature = {
5
+ name: string;
6
+ };
7
+ export declare class Product extends Model<InferAttributes<Product>, InferCreationAttributes<Product>> {
8
+ id: CreationOptional<string>;
9
+ active: boolean;
10
+ livemode: boolean;
11
+ locked: CreationOptional<boolean>;
12
+ type: LiteralUnion<'service' | 'good', string>;
13
+ name: string;
14
+ description: string;
15
+ images: any[];
16
+ features: ProductFeature[];
17
+ unit_label?: string;
18
+ default_price_id?: string;
19
+ metadata?: Record<string, any>;
20
+ statement_descriptor?: string;
21
+ nft_factory?: string;
22
+ cross_sell?: {
23
+ cross_sells_to_id: string;
24
+ };
25
+ created_at: CreationOptional<Date>;
26
+ created_via: LiteralUnion<'api' | 'dashboard' | 'portal', string>;
27
+ updated_at: CreationOptional<Date>;
28
+ static readonly GENESIS_ATTRIBUTES: {
29
+ id: {
30
+ type: DataTypes.StringDataType;
31
+ primaryKey: boolean;
32
+ allowNull: boolean;
33
+ defaultValue: (size?: number | undefined) => string;
34
+ };
35
+ active: {
36
+ type: DataTypes.AbstractDataTypeConstructor;
37
+ allowNull: boolean;
38
+ };
39
+ livemode: {
40
+ type: DataTypes.AbstractDataTypeConstructor;
41
+ allowNull: boolean;
42
+ };
43
+ locked: {
44
+ type: DataTypes.AbstractDataTypeConstructor;
45
+ defaultValue: boolean;
46
+ };
47
+ type: {
48
+ type: DataTypes.EnumDataType<"service" | "good">;
49
+ };
50
+ name: {
51
+ type: DataTypes.StringDataType;
52
+ };
53
+ description: {
54
+ type: DataTypes.StringDataType;
55
+ };
56
+ images: {
57
+ type: DataTypes.AbstractDataTypeConstructor;
58
+ defaultValue: never[];
59
+ };
60
+ features: {
61
+ type: DataTypes.AbstractDataTypeConstructor;
62
+ defaultValue: never[];
63
+ };
64
+ unit_label: {
65
+ type: DataTypes.StringDataType;
66
+ allowNull: boolean;
67
+ };
68
+ default_price_id: {
69
+ type: DataTypes.StringDataType;
70
+ allowNull: boolean;
71
+ };
72
+ metadata: {
73
+ type: DataTypes.AbstractDataTypeConstructor;
74
+ allowNull: boolean;
75
+ };
76
+ statement_descriptor: {
77
+ type: DataTypes.StringDataType;
78
+ allowNull: boolean;
79
+ };
80
+ nft_factory: {
81
+ type: DataTypes.StringDataType;
82
+ allowNull: boolean;
83
+ };
84
+ created_at: {
85
+ type: DataTypes.DateDataTypeConstructor;
86
+ defaultValue: DataTypes.AbstractDataTypeConstructor;
87
+ allowNull: boolean;
88
+ };
89
+ created_via: {
90
+ type: DataTypes.EnumDataType<"api" | "dashboard" | "portal">;
91
+ };
92
+ updated_at: {
93
+ type: DataTypes.DateDataTypeConstructor;
94
+ defaultValue: DataTypes.AbstractDataTypeConstructor;
95
+ allowNull: boolean;
96
+ };
97
+ };
98
+ static initialize(sequelize: any): void;
99
+ static associate(models: any): void;
100
+ static expand(id: string): Promise<InferAttributes<Product, {
101
+ omit: never;
102
+ }> | null>;
103
+ }
104
+ export type TProduct = InferAttributes<Product>;
@@ -0,0 +1,81 @@
1
+ import { CreationOptional, DataTypes, InferAttributes, InferCreationAttributes, Model } from 'sequelize';
2
+ export declare class PromotionCode extends Model<InferAttributes<PromotionCode>, InferCreationAttributes<PromotionCode>> {
3
+ id: CreationOptional<string>;
4
+ livemode: boolean;
5
+ active: boolean;
6
+ code: string;
7
+ coupon_id: string;
8
+ max_redemptions?: number;
9
+ restrictions?: {
10
+ currency_options?: Record<string, number>;
11
+ first_time_transaction?: boolean;
12
+ minimum_amount?: number;
13
+ minimum_amount_currency?: string;
14
+ };
15
+ customer_id?: string;
16
+ times_redeemed?: number;
17
+ expires_at: CreationOptional<Date>;
18
+ created_at: CreationOptional<Date>;
19
+ updated_at: CreationOptional<Date>;
20
+ static readonly GENESIS_ATTRIBUTES: {
21
+ id: {
22
+ type: DataTypes.StringDataType;
23
+ primaryKey: boolean;
24
+ allowNull: boolean;
25
+ defaultValue: (size?: number | undefined) => string;
26
+ };
27
+ livemode: {
28
+ type: DataTypes.AbstractDataTypeConstructor;
29
+ allowNull: boolean;
30
+ };
31
+ active: {
32
+ type: DataTypes.AbstractDataTypeConstructor;
33
+ defaultValue: boolean;
34
+ };
35
+ code: {
36
+ type: DataTypes.StringDataType;
37
+ allowNull: boolean;
38
+ };
39
+ coupon_id: {
40
+ type: DataTypes.StringDataType;
41
+ allowNull: boolean;
42
+ };
43
+ max_redemptions: {
44
+ type: DataTypes.IntegerDataTypeConstructor;
45
+ allowNull: boolean;
46
+ };
47
+ restrictions: {
48
+ type: DataTypes.AbstractDataTypeConstructor;
49
+ defaultValue: {};
50
+ };
51
+ customer_id: {
52
+ type: DataTypes.StringDataType;
53
+ allowNull: boolean;
54
+ };
55
+ times_redeemed: {
56
+ type: DataTypes.IntegerDataTypeConstructor;
57
+ defaultValue: number;
58
+ };
59
+ metadata: {
60
+ type: DataTypes.AbstractDataTypeConstructor;
61
+ allowNull: boolean;
62
+ };
63
+ expires_at: {
64
+ type: DataTypes.DateDataTypeConstructor;
65
+ allowNull: boolean;
66
+ };
67
+ created_at: {
68
+ type: DataTypes.DateDataTypeConstructor;
69
+ defaultValue: DataTypes.AbstractDataTypeConstructor;
70
+ allowNull: boolean;
71
+ };
72
+ updated_at: {
73
+ type: DataTypes.DateDataTypeConstructor;
74
+ defaultValue: DataTypes.AbstractDataTypeConstructor;
75
+ allowNull: boolean;
76
+ };
77
+ };
78
+ static initialize(sequelize: any): void;
79
+ static associate(models: any): void;
80
+ }
81
+ export type TPromotionCode = InferAttributes<PromotionCode>;
@@ -0,0 +1,112 @@
1
+ import { CreationOptional, DataTypes, InferAttributes, InferCreationAttributes, Model } from 'sequelize';
2
+ import type { LiteralUnion } from 'type-fest';
3
+ import type { PaymentError, PaymentMethodOptions } from './types';
4
+ export declare class SetupIntent extends Model<InferAttributes<SetupIntent>, InferCreationAttributes<SetupIntent>> {
5
+ id: CreationOptional<string>;
6
+ livemode: boolean;
7
+ description: string;
8
+ currency_id: string;
9
+ customer_id: string;
10
+ last_setup_error: PaymentError | null;
11
+ metadata?: Record<string, any>;
12
+ status: LiteralUnion<'requires_payment_method' | 'requires_confirmation' | 'requires_action' | 'processing' | 'requires_capture' | 'canceled' | 'succeeded', string>;
13
+ usage: LiteralUnion<'on_session' | 'off_session', string>;
14
+ canceled_at?: number;
15
+ cancellation_reason?: LiteralUnion<'abandoned' | 'duplicate' | 'requested_by_customer', string>;
16
+ flow_directions: LiteralUnion<'inbound' | 'outbound', string>[];
17
+ payment_method_options?: PaymentMethodOptions;
18
+ payment_method_types?: string[];
19
+ payment_method_id: string;
20
+ setup_details?: {
21
+ tx_hash?: string;
22
+ payer?: string;
23
+ };
24
+ created_at: CreationOptional<Date>;
25
+ updated_at: CreationOptional<Date>;
26
+ static readonly GENESIS_ATTRIBUTES: {
27
+ id: {
28
+ type: DataTypes.StringDataType;
29
+ primaryKey: boolean;
30
+ allowNull: boolean;
31
+ defaultValue: (size?: number | undefined) => string;
32
+ };
33
+ livemode: {
34
+ type: DataTypes.AbstractDataTypeConstructor;
35
+ allowNull: boolean;
36
+ };
37
+ currency_id: {
38
+ type: DataTypes.StringDataType;
39
+ allowNull: boolean;
40
+ };
41
+ customer_id: {
42
+ type: DataTypes.StringDataType;
43
+ allowNull: boolean;
44
+ };
45
+ description: {
46
+ type: DataTypes.StringDataType;
47
+ allowNull: boolean;
48
+ };
49
+ last_setup_error: {
50
+ type: DataTypes.AbstractDataTypeConstructor;
51
+ allowNull: boolean;
52
+ };
53
+ last_attempt: {
54
+ type: DataTypes.StringDataType;
55
+ allowNull: boolean;
56
+ };
57
+ metadata: {
58
+ type: DataTypes.AbstractDataTypeConstructor;
59
+ allowNull: boolean;
60
+ };
61
+ status: {
62
+ type: DataTypes.EnumDataType<"requires_payment_method" | "requires_confirmation" | "requires_action" | "processing" | "requires_capture" | "canceled" | "succeeded">;
63
+ allowNull: boolean;
64
+ };
65
+ usage: {
66
+ type: DataTypes.EnumDataType<"off_session" | "on_session">;
67
+ allowNull: boolean;
68
+ };
69
+ canceled_at: {
70
+ type: DataTypes.IntegerDataTypeConstructor;
71
+ allowNull: boolean;
72
+ };
73
+ cancellation_reason: {
74
+ type: DataTypes.EnumDataType<"abandoned" | "duplicate" | "requested_by_customer">;
75
+ allowNull: boolean;
76
+ };
77
+ flow_directions: {
78
+ type: DataTypes.AbstractDataTypeConstructor;
79
+ defaultValue: string[];
80
+ };
81
+ payment_method_types: {
82
+ type: DataTypes.AbstractDataTypeConstructor;
83
+ defaultValue: never[];
84
+ };
85
+ payment_method_options: {
86
+ type: DataTypes.AbstractDataTypeConstructor;
87
+ allowNull: boolean;
88
+ };
89
+ payment_method_id: {
90
+ type: DataTypes.StringDataType;
91
+ allowNull: boolean;
92
+ };
93
+ setup_details: {
94
+ type: DataTypes.AbstractDataTypeConstructor;
95
+ allowNull: boolean;
96
+ };
97
+ created_at: {
98
+ type: DataTypes.DateDataTypeConstructor;
99
+ defaultValue: DataTypes.AbstractDataTypeConstructor;
100
+ allowNull: boolean;
101
+ };
102
+ updated_at: {
103
+ type: DataTypes.DateDataTypeConstructor;
104
+ defaultValue: DataTypes.AbstractDataTypeConstructor;
105
+ allowNull: boolean;
106
+ };
107
+ };
108
+ static initialize(sequelize: any): void;
109
+ static associate(models: any): void;
110
+ isImmutable(): boolean;
111
+ }
112
+ export type TSetupIntent = InferAttributes<SetupIntent>;
@@ -0,0 +1,61 @@
1
+ import { CreationOptional, DataTypes, InferAttributes, InferCreationAttributes, Model } from 'sequelize';
2
+ export declare const nextSubscriptionItemId: (size?: number | undefined) => string;
3
+ export declare class SubscriptionItem extends Model<InferAttributes<SubscriptionItem>, InferCreationAttributes<SubscriptionItem>> {
4
+ id: CreationOptional<string>;
5
+ livemode: boolean;
6
+ subscription_id: string;
7
+ price_id: string;
8
+ quantity: number;
9
+ metadata: Record<string, any>;
10
+ billing_thresholds?: {
11
+ usage_gte: number;
12
+ };
13
+ created_at: CreationOptional<Date>;
14
+ updated_at: CreationOptional<Date>;
15
+ static readonly GENESIS_ATTRIBUTES: {
16
+ id: {
17
+ type: DataTypes.StringDataType;
18
+ primaryKey: boolean;
19
+ allowNull: boolean;
20
+ defaultValue: (size?: number | undefined) => string;
21
+ };
22
+ livemode: {
23
+ type: DataTypes.AbstractDataTypeConstructor;
24
+ allowNull: boolean;
25
+ };
26
+ subscription_id: {
27
+ type: DataTypes.StringDataType;
28
+ allowNull: boolean;
29
+ };
30
+ price_id: {
31
+ type: DataTypes.StringDataType;
32
+ allowNull: boolean;
33
+ };
34
+ quantity: {
35
+ type: DataTypes.IntegerDataTypeConstructor;
36
+ allowNull: boolean;
37
+ };
38
+ metadata: {
39
+ type: DataTypes.AbstractDataTypeConstructor;
40
+ allowNull: boolean;
41
+ };
42
+ billing_threshold: {
43
+ type: DataTypes.AbstractDataTypeConstructor;
44
+ allowNull: boolean;
45
+ };
46
+ created_at: {
47
+ type: DataTypes.DateDataTypeConstructor;
48
+ defaultValue: DataTypes.AbstractDataTypeConstructor;
49
+ allowNull: boolean;
50
+ };
51
+ updated_at: {
52
+ type: DataTypes.DateDataTypeConstructor;
53
+ defaultValue: DataTypes.AbstractDataTypeConstructor;
54
+ allowNull: boolean;
55
+ };
56
+ };
57
+ static initialize(sequelize: any): void;
58
+ static associate(models: any): void;
59
+ static isPriceUsed(priceId: string): Promise<boolean>;
60
+ }
61
+ export type TSubscriptionItem = InferAttributes<SubscriptionItem>;