@blocklet/payment-types 1.14.19 → 1.14.21

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.
@@ -62,6 +62,7 @@ export declare class Subscription extends Model<InferAttributes<Subscription>, I
62
62
  proration_behavior?: LiteralUnion<'always_invoice' | 'create_prorations' | 'none', string>;
63
63
  payment_behavior?: LiteralUnion<'allow_incomplete' | 'error_if_incomplete' | 'pending_if_incomplete', string>;
64
64
  service_actions?: ServiceAction[];
65
+ recovered_from?: string;
65
66
  created_at: CreationOptional<Date>;
66
67
  updated_at: CreationOptional<Date>;
67
68
  static readonly GENESIS_ATTRIBUTES: {
@@ -205,6 +206,8 @@ export declare class Subscription extends Model<InferAttributes<Subscription>, I
205
206
  isScheduledToCancel(): boolean;
206
207
  start(): Promise<boolean>;
207
208
  static getSummary(livemode?: boolean, field?: string): Promise<Subscription[]>;
209
+ static getToSubscriptions(subscriptionId: string): Promise<string[]>;
210
+ static getFromSubscriptions(subscriptionId: string): Promise<string[]>;
208
211
  }
209
212
  export type TSubscription = InferAttributes<Subscription>;
210
213
  export declare function getSubscriptionEventType(current: TSubscription, previous: Partial<TSubscription>): "" | "paused" | "resumed";
package/lib/types.d.ts CHANGED
@@ -317,6 +317,7 @@ export type SubscriptionData = {
317
317
  billing_threshold_amount?: number;
318
318
  min_stake_amount?: number;
319
319
  metadata?: Record<string, any>;
320
+ recovered_from?: string;
320
321
  };
321
322
  export type PricingTableItem = {
322
323
  price_id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blocklet/payment-types",
3
- "version": "1.14.19",
3
+ "version": "1.14.21",
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": "5410d16f8fcc5c713ca9ba986af7653e5c54e5c2"
51
+ "gitHead": "48565120b3bdaf21533fe73626db725330c0f374"
52
52
  }