@blocklet/payment-types 1.13.158 → 1.13.160

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.
@@ -1,6 +1,6 @@
1
1
  import { CreationOptional, DataTypes, InferAttributes, InferCreationAttributes, Model } from 'sequelize';
2
2
  import type { LiteralUnion } from 'type-fest';
3
- import type { PaymentDetails, PaymentSettings, PriceRecurring } from './types';
3
+ import type { PaymentDetails, PaymentSettings, PriceRecurring, ServiceAction } from './types';
4
4
  export declare const nextSubscriptionId: (size?: number | undefined) => string;
5
5
  export declare class Subscription extends Model<InferAttributes<Subscription>, InferCreationAttributes<Subscription>> {
6
6
  id: CreationOptional<string>;
@@ -58,6 +58,7 @@ export declare class Subscription extends Model<InferAttributes<Subscription>, I
58
58
  payment_details?: PaymentDetails;
59
59
  proration_behavior?: LiteralUnion<'always_invoice' | 'create_prorations' | 'none', string>;
60
60
  payment_behavior?: LiteralUnion<'allow_incomplete' | 'error_if_incomplete' | 'pending_if_incomplete', string>;
61
+ service_actions?: ServiceAction[];
61
62
  created_at: CreationOptional<Date>;
62
63
  updated_at: CreationOptional<Date>;
63
64
  static readonly GENESIS_ATTRIBUTES: {
package/lib/types.d.ts CHANGED
@@ -34,6 +34,15 @@ export type PriceCurrency = {
34
34
  tiers: PriceTier[] | null;
35
35
  custom_unit_amount: CustomUnitAmount | null;
36
36
  };
37
+ export type ServiceAction = {
38
+ name: string;
39
+ color: string;
40
+ variant: string;
41
+ text: {
42
+ [key: string]: string;
43
+ };
44
+ link: string;
45
+ };
37
46
  export type CustomUnitAmount = {
38
47
  maximum: string;
39
48
  minimum: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blocklet/payment-types",
3
- "version": "1.13.158",
3
+ "version": "1.13.160",
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": "f53ad79f77852d57376924819e1fb81044462fa5"
51
+ "gitHead": "32269468dd2ed9c4ab93f8f7c7520ad6c94cce10"
52
52
  }