@blocklet/payment-types 1.14.4 → 1.14.6

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.
@@ -11,6 +11,7 @@ export declare class PaymentCurrency extends Model<InferAttributes<PaymentCurren
11
11
  logo: string;
12
12
  symbol: string;
13
13
  decimal: number;
14
+ maximum_precision?: number;
14
15
  minimum_payment_amount: string;
15
16
  maximum_payment_amount: string;
16
17
  contract?: string;
@@ -64,6 +65,11 @@ export declare class PaymentCurrency extends Model<InferAttributes<PaymentCurren
64
65
  type: DataTypes.NumberDataTypeConstructor;
65
66
  defaultValue: number;
66
67
  };
68
+ maximum_precision: {
69
+ type: DataTypes.NumberDataTypeConstructor;
70
+ allowNull: boolean;
71
+ defaultValue: number;
72
+ };
67
73
  minimum_payment_amount: {
68
74
  type: DataTypes.StringDataType;
69
75
  defaultValue: string;
@@ -33,6 +33,7 @@ export declare class Subscription extends Model<InferAttributes<Subscription>, I
33
33
  billing_cycle_anchor: number;
34
34
  billing_thresholds?: {
35
35
  amount_gte: number;
36
+ stake_gte: number;
36
37
  reset_billing_cycle_anchor: boolean;
37
38
  };
38
39
  collection_method: LiteralUnion<'charge_automatically' | 'send_invoice', string>;
package/lib/types.d.ts CHANGED
@@ -315,6 +315,7 @@ export type SubscriptionData = {
315
315
  description: string;
316
316
  trial_period_days: number;
317
317
  billing_threshold_amount?: number;
318
+ min_stake_amount?: number;
318
319
  metadata?: Record<string, any>;
319
320
  };
320
321
  export type PricingTableItem = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blocklet/payment-types",
3
- "version": "1.14.4",
3
+ "version": "1.14.6",
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.19.0"
50
50
  },
51
- "gitHead": "53bfd2bc1dd91c6369220db1040ab8e060e61104"
51
+ "gitHead": "6c2ea2db76a8bb8413d0b802f35b50b650c7f6d2"
52
52
  }