@blocklet/payment-types 1.13.237 → 1.13.239
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 +3 -10
- package/lib/payment-link.d.ts +3 -6
- package/lib/types.d.ts +14 -5
- package/package.json +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CreationOptional, DataTypes, FindOptions, InferAttributes, InferCreationAttributes, Model } from 'sequelize';
|
|
2
2
|
import type { LiteralUnion } from 'type-fest';
|
|
3
|
-
import type { CurrencyConversion, CustomField, CustomerDetail, InvoiceData, LineItem, NftMintDetails, NftMintSettings, PaymentDetails } from './types';
|
|
3
|
+
import type { CurrencyConversion, CustomField, CustomerDetail, InvoiceData, LineItem, NftMintDetails, NftMintSettings, PaymentDetails, PaymentIntentData, SubscriptionData } from './types';
|
|
4
4
|
export declare const nextCheckoutSessionId: (size?: number | undefined) => string;
|
|
5
5
|
export declare class CheckoutSession extends Model<InferAttributes<CheckoutSession>, InferCreationAttributes<CheckoutSession>> {
|
|
6
6
|
id: CreationOptional<string>;
|
|
@@ -79,11 +79,8 @@ export declare class CheckoutSession extends Model<InferAttributes<CheckoutSessi
|
|
|
79
79
|
submit_type: LiteralUnion<'auto' | 'book' | 'donate' | 'pay', string>;
|
|
80
80
|
metadata?: Record<string, any>;
|
|
81
81
|
billing_address_collection?: LiteralUnion<'auto' | 'required', string>;
|
|
82
|
-
subscription_data?: {
|
|
83
|
-
description: string;
|
|
84
|
-
trial_period_days: number;
|
|
82
|
+
subscription_data?: SubscriptionData & {
|
|
85
83
|
billing_cycle_anchor?: number;
|
|
86
|
-
billing_threshold_amount?: number;
|
|
87
84
|
metadata?: Record<string, any>;
|
|
88
85
|
proration_behavior?: LiteralUnion<'create_prorations' | 'none', string>;
|
|
89
86
|
trial_end?: number;
|
|
@@ -96,11 +93,7 @@ export declare class CheckoutSession extends Model<InferAttributes<CheckoutSessi
|
|
|
96
93
|
days_until_cancel?: number;
|
|
97
94
|
};
|
|
98
95
|
payment_details?: PaymentDetails;
|
|
99
|
-
payment_intent_data?:
|
|
100
|
-
description?: string;
|
|
101
|
-
statement_descriptor?: string;
|
|
102
|
-
metadata?: Record<string, any>;
|
|
103
|
-
};
|
|
96
|
+
payment_intent_data?: PaymentIntentData;
|
|
104
97
|
nft_mint_status: LiteralUnion<'disabled' | 'pending' | 'minted' | 'sent' | 'error', string>;
|
|
105
98
|
nft_mint_settings?: NftMintSettings;
|
|
106
99
|
nft_mint_details?: NftMintDetails;
|
package/lib/payment-link.d.ts
CHANGED
|
@@ -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 { AfterPayment, CustomField, DonationSettings, LineItem, NftMintSettings } from './types';
|
|
3
|
+
import type { AfterPayment, CustomField, DonationSettings, LineItem, NftMintSettings, PaymentIntentData, SubscriptionData } from './types';
|
|
4
4
|
export declare const nextPaymentLinkId: (size?: number | undefined) => string;
|
|
5
5
|
export declare class PaymentLink extends Model<InferAttributes<PaymentLink>, InferCreationAttributes<PaymentLink>> {
|
|
6
6
|
id: CreationOptional<string>;
|
|
@@ -31,15 +31,12 @@ export declare class PaymentLink extends Model<InferAttributes<PaymentLink>, Inf
|
|
|
31
31
|
};
|
|
32
32
|
billing_address_collection?: LiteralUnion<'auto' | 'required', string>;
|
|
33
33
|
submit_type: LiteralUnion<'auto' | 'book' | 'donate' | 'pay', string>;
|
|
34
|
-
subscription_data?:
|
|
35
|
-
description: string;
|
|
36
|
-
trial_period_days: number;
|
|
37
|
-
billing_threshold_amount?: number;
|
|
38
|
-
};
|
|
34
|
+
subscription_data?: SubscriptionData;
|
|
39
35
|
nft_mint_settings?: NftMintSettings;
|
|
40
36
|
cross_sell_behavior?: LiteralUnion<'auto' | 'required', string>;
|
|
41
37
|
donation_settings?: DonationSettings;
|
|
42
38
|
metadata?: Record<string, any>;
|
|
39
|
+
payment_intent_data?: PaymentIntentData;
|
|
43
40
|
created_at: CreationOptional<Date>;
|
|
44
41
|
created_via: LiteralUnion<'api' | 'dashboard' | 'portal', string>;
|
|
45
42
|
updated_at: CreationOptional<Date>;
|
package/lib/types.d.ts
CHANGED
|
@@ -286,6 +286,12 @@ export type DonationSettings = {
|
|
|
286
286
|
};
|
|
287
287
|
};
|
|
288
288
|
};
|
|
289
|
+
export type PaymentIntentData = {
|
|
290
|
+
description?: string;
|
|
291
|
+
statement_descriptor?: string;
|
|
292
|
+
beneficiaries?: PaymentBeneficiary[];
|
|
293
|
+
metadata?: Record<string, any>;
|
|
294
|
+
};
|
|
289
295
|
export type NftMintSettings = {
|
|
290
296
|
enabled: boolean;
|
|
291
297
|
behavior?: LiteralUnion<'per_customer' | 'per_checkout_session', string>;
|
|
@@ -303,6 +309,12 @@ export type NftMintDetails = {
|
|
|
303
309
|
arcblock?: NftMintItem;
|
|
304
310
|
ethereum?: NftMintItem;
|
|
305
311
|
};
|
|
312
|
+
export type SubscriptionData = {
|
|
313
|
+
description: string;
|
|
314
|
+
trial_period_days: number;
|
|
315
|
+
billing_threshold_amount?: number;
|
|
316
|
+
metadata?: Record<string, any>;
|
|
317
|
+
};
|
|
306
318
|
export type PricingTableItem = {
|
|
307
319
|
price_id: string;
|
|
308
320
|
product_id: string;
|
|
@@ -325,13 +337,10 @@ export type PricingTableItem = {
|
|
|
325
337
|
enabled: boolean;
|
|
326
338
|
};
|
|
327
339
|
submit_type: LiteralUnion<'auto' | 'book' | 'donate' | 'pay', string>;
|
|
328
|
-
subscription_data?:
|
|
329
|
-
description: string;
|
|
330
|
-
trial_period_days: number;
|
|
331
|
-
billing_threshold_amount?: number;
|
|
332
|
-
};
|
|
340
|
+
subscription_data?: SubscriptionData;
|
|
333
341
|
nft_mint_settings?: NftMintSettings;
|
|
334
342
|
cross_sell_behavior?: LiteralUnion<'auto' | 'required', string>;
|
|
343
|
+
payment_intent_data?: PaymentIntentData;
|
|
335
344
|
};
|
|
336
345
|
export type BrandSettings = {
|
|
337
346
|
background_color: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blocklet/payment-types",
|
|
3
|
-
"version": "1.13.
|
|
3
|
+
"version": "1.13.239",
|
|
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.15.0"
|
|
50
50
|
},
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "898fbcb595e77f6183aa0cac9fa69dbceb19d75f"
|
|
52
52
|
}
|