@blocklet/payment-types 1.20.14 → 1.20.16
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/checkout-session.d.ts +1 -0
- package/lib/discount.d.ts +1 -0
- package/lib/index.d.ts +7 -1
- package/package.json +2 -2
|
@@ -319,5 +319,6 @@ export declare class CheckoutSession extends Model<InferAttributes<CheckoutSessi
|
|
|
319
319
|
isImmutable(): boolean;
|
|
320
320
|
static findBySubscriptionId(subscriptionId: string, options?: FindOptions<CheckoutSession>): Promise<CheckoutSession | null>;
|
|
321
321
|
static findByPaymentIntentId(paymentIntentId: string): Promise<CheckoutSession | null>;
|
|
322
|
+
static findByInvoiceId(invoiceId: string): Promise<CheckoutSession | null>;
|
|
322
323
|
}
|
|
323
324
|
export type TCheckoutSession = InferAttributes<CheckoutSession>;
|
package/lib/discount.d.ts
CHANGED
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.
|
|
3
|
+
"version": "1.20.16",
|
|
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": "
|
|
51
|
+
"gitHead": "ebf0677dd4414d4abc4129d6663a7e9ddb415281"
|
|
52
52
|
}
|