@blocklet/payment-types 1.20.15 → 1.20.17

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/discount.d.ts CHANGED
@@ -9,6 +9,7 @@ export declare class Discount extends Model<InferAttributes<Discount>, InferCrea
9
9
  checkout_session_id?: string;
10
10
  invoice_id?: string;
11
11
  invoice_item_id?: string;
12
+ confirmed?: boolean;
12
13
  start: number;
13
14
  end: number | null;
14
15
  verification_method?: string;
package/lib/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { CheckoutSession, TCheckoutSession } from './checkout-session';
2
2
  import { Coupon, TCoupon } from './coupon';
3
3
  import { Customer, TCustomer } from './customer';
4
- import { Discount } from './discount';
4
+ import { Discount, TDiscount } from './discount';
5
5
  import { Event, TEvent } from './event';
6
6
  import { Invoice, TInvoice } from './invoice';
7
7
  import { InvoiceItem, TInvoiceItem } from './invoice-item';
@@ -290,8 +290,14 @@ export type TCouponExpanded = TCoupon & {
290
290
  object: 'coupon';
291
291
  applied_products?: TProduct[];
292
292
  promotion_codes?: TPromotionCode[];
293
+ currency?: TPaymentCurrency;
293
294
  };
294
295
  export type TPromotionCodeExpanded = TPromotionCode & {
295
296
  object: 'promotion_code';
296
297
  coupon?: TCoupon;
297
298
  };
299
+ export type TDiscountExpanded = TDiscount & {
300
+ object: 'discount';
301
+ coupon?: TCouponExpanded;
302
+ promotionCode?: TPromotionCodeExpanded;
303
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blocklet/payment-types",
3
- "version": "1.20.15",
3
+ "version": "1.20.17",
4
4
  "description": "Typings for Payment Kit SDK",
5
5
  "keywords": [
6
6
  "types",
@@ -48,5 +48,5 @@
48
48
  "sequelize": "^6.37.7",
49
49
  "type-fest": "^4.41.0"
50
50
  },
51
- "gitHead": "d205c3b1ec7d2b819e375ed2eb8b70c9d48f0bcb"
51
+ "gitHead": "20e9d7519327cb4df0c93375ff85783303fc99d6"
52
52
  }