@blocklet/payment-types 1.18.3 → 1.18.4

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/index.d.ts CHANGED
@@ -26,6 +26,7 @@ import type { LineItem, PricingTableItem } from './types';
26
26
  import { TUsageRecord, UsageRecord } from './usage-record';
27
27
  import { TWebhookAttempt, WebhookAttempt } from './webhook-attempt';
28
28
  import { TWebhookEndpoint, WebhookEndpoint } from './webhook-endpoint';
29
+ import { Setting } from './setting';
29
30
  declare const models: {
30
31
  CheckoutSession: typeof CheckoutSession;
31
32
  Coupon: typeof Coupon;
@@ -54,6 +55,7 @@ declare const models: {
54
55
  WebhookAttempt: typeof WebhookAttempt;
55
56
  Job: typeof Job;
56
57
  Lock: typeof Lock;
58
+ Setting: typeof Setting;
57
59
  };
58
60
  export declare function initialize(sequelize: any): void;
59
61
  export default models;
@@ -85,6 +87,7 @@ export * from './usage-record';
85
87
  export * from './webhook-attempt';
86
88
  export * from './webhook-endpoint';
87
89
  export * from './types';
90
+ export * from './setting';
88
91
  export type TPriceExpanded = TPrice & {
89
92
  object: 'price';
90
93
  product: TProduct;
@@ -0,0 +1,62 @@
1
+ import { CreationOptional, DataTypes, InferAttributes, InferCreationAttributes, Model } from 'sequelize';
2
+ import type { SettingType } from './types';
3
+ export declare class Setting extends Model<InferAttributes<Setting>, InferCreationAttributes<Setting>> {
4
+ id: CreationOptional<string>;
5
+ livemode: boolean;
6
+ type: SettingType;
7
+ mount_location: string;
8
+ active: boolean;
9
+ component_did?: string;
10
+ settings: Record<string, any>;
11
+ created_at: CreationOptional<Date>;
12
+ updated_at: CreationOptional<Date>;
13
+ static readonly GENESIS_ATTRIBUTES: {
14
+ id: {
15
+ type: DataTypes.StringDataType;
16
+ primaryKey: boolean;
17
+ allowNull: boolean;
18
+ defaultValue: (size?: number) => string;
19
+ };
20
+ livemode: {
21
+ type: DataTypes.AbstractDataTypeConstructor;
22
+ allowNull: boolean;
23
+ };
24
+ active: {
25
+ type: DataTypes.AbstractDataTypeConstructor;
26
+ allowNull: boolean;
27
+ defaultValue: boolean;
28
+ };
29
+ type: {
30
+ type: DataTypes.StringDataType;
31
+ allowNull: boolean;
32
+ };
33
+ mount_location: {
34
+ type: DataTypes.StringDataType;
35
+ allowNull: boolean;
36
+ };
37
+ component_did: {
38
+ type: DataTypes.StringDataType;
39
+ allowNull: boolean;
40
+ };
41
+ description: {
42
+ type: DataTypes.StringDataType;
43
+ allowNull: boolean;
44
+ };
45
+ settings: {
46
+ type: DataTypes.AbstractDataTypeConstructor;
47
+ allowNull: boolean;
48
+ };
49
+ created_at: {
50
+ type: DataTypes.DateDataTypeConstructor;
51
+ defaultValue: DataTypes.AbstractDataTypeConstructor;
52
+ allowNull: boolean;
53
+ };
54
+ updated_at: {
55
+ type: DataTypes.DateDataTypeConstructor;
56
+ defaultValue: DataTypes.AbstractDataTypeConstructor;
57
+ allowNull: boolean;
58
+ };
59
+ };
60
+ static initialize(sequelize: any): void;
61
+ }
62
+ export type TSetting = InferAttributes<Setting>;
package/lib/types.d.ts CHANGED
@@ -391,4 +391,5 @@ export type SubscriptionUpdateItem = {
391
391
  };
392
392
  export type EventType = LiteralUnion<'account.application.authorized' | 'account.application.deauthorized' | 'account.external_account.created' | 'account.external_account.deleted' | 'account.external_account.updated' | 'account.updated' | 'application_fee.created' | 'application_fee.refund.updated' | 'application_fee.refunded' | 'balance.available' | 'billing_portal.configuration.created' | 'billing_portal.configuration.updated' | 'billing_portal.session.created' | 'capability.updated' | 'cash_balance.funds_available' | 'charge.captured' | 'charge.dispute.closed' | 'charge.dispute.created' | 'charge.dispute.funds_reinstated' | 'charge.dispute.funds_withdrawn' | 'charge.dispute.updated' | 'charge.expired' | 'charge.failed' | 'charge.pending' | 'charge.refund.updated' | 'charge.refunded' | 'charge.succeeded' | 'charge.updated' | 'checkout.session.async_payment_failed' | 'checkout.session.async_payment_succeeded' | 'checkout.session.nft_minted' | 'checkout.session.completed' | 'checkout.session.expired' | 'checkout.session.created' | 'coupon.created' | 'coupon.deleted' | 'coupon.updated' | 'credit_note.created' | 'credit_note.updated' | 'credit_note.voided' | 'customer_cash_balance_transaction.created' | 'customer.created' | 'customer.deleted' | 'customer.discount.created' | 'customer.discount.deleted' | 'customer.discount.updated' | 'customer.source.created' | 'customer.source.deleted' | 'customer.source.expiring' | 'customer.source.updated' | 'customer.subscription.created' | 'customer.subscription.deleted' | 'customer.subscription.paused' | 'customer.subscription.past_due' | 'customer.subscription.pending_update_applied' | 'customer.subscription.pending_update_expired' | 'customer.subscription.resumed' | 'customer.subscription.renewed' | 'customer.subscription.recovered' | 'customer.subscription.upgraded' | 'customer.subscription.renew_failed' | 'customer.subscription.trial_start' | 'customer.subscription.trial_will_end' | 'customer.subscription.trial_end' | 'customer.subscription.started' | 'customer.subscription.updated' | 'customer.tax_id.created' | 'customer.tax_id.deleted' | 'customer.tax_id.updated' | 'customer.updated' | 'file.created' | 'financial_connections.account.created' | 'financial_connections.account.deactivated' | 'financial_connections.account.disconnected' | 'financial_connections.account.reactivated' | 'financial_connections.account.refreshed_balance' | 'identity.verification_session.canceled' | 'identity.verification_session.created' | 'identity.verification_session.processing' | 'identity.verification_session.redacted' | 'identity.verification_session.requires_input' | 'identity.verification_session.verified' | 'invoice.created' | 'invoice.deleted' | 'invoice.finalization_failed' | 'invoice.finalized' | 'invoice.marked_uncollectible' | 'invoice.paid' | 'invoice.payment_action_required' | 'invoice.payment_failed' | 'invoice.payment_succeeded' | 'invoice.sent' | 'invoice.upcoming' | 'invoice.updated' | 'invoice.voided' | 'invoiceitem.created' | 'invoiceitem.deleted' | 'issuing_authorization.created' | 'issuing_authorization.request' | 'issuing_authorization.updated' | 'issuing_card.created' | 'issuing_card.updated' | 'issuing_cardholder.created' | 'issuing_cardholder.updated' | 'issuing_dispute.closed' | 'issuing_dispute.created' | 'issuing_dispute.funds_reinstated' | 'issuing_dispute.submitted' | 'issuing_dispute.updated' | 'issuing_transaction.created' | 'issuing_transaction.updated' | 'mandate.updated' | 'order.created' | 'payment_intent.amount_capturable_updated' | 'payment_intent.canceled' | 'payment_intent.created' | 'payment_intent.partially_funded' | 'payment_intent.payment_failed' | 'payment_intent.processing' | 'payment_intent.requires_action' | 'payment_intent.succeeded' | 'payment_link.created' | 'payment_link.updated' | 'payment_method.attached' | 'payment_method.automatically_updated' | 'payment_method.detached' | 'payment_method.updated' | 'payout.canceled' | 'payout.created' | 'payout.failed' | 'payout.paid' | 'payout.reconciliation_completed' | 'payout.updated' | 'person.created' | 'person.deleted' | 'person.updated' | 'plan.created' | 'plan.deleted' | 'plan.updated' | 'price.created' | 'price.deleted' | 'price.updated' | 'product.created' | 'product.deleted' | 'product.updated' | 'promotion_code.created' | 'promotion_code.updated' | 'quote.accepted' | 'quote.canceled' | 'quote.created' | 'quote.finalized' | 'radar.early_fraud_warning.created' | 'radar.early_fraud_warning.updated' | 'recipient.created' | 'recipient.deleted' | 'recipient.updated' | 'refund.created' | 'refund.updated' | 'refund.succeeded' | 'refund.canceled' | 'reporting.report_run.failed' | 'reporting.report_run.succeeded' | 'reporting.report_type.updated' | 'review.closed' | 'review.opened' | 'setup_intent.canceled' | 'setup_intent.created' | 'setup_intent.requires_action' | 'setup_intent.setup_failed' | 'setup_intent.succeeded' | 'sigma.scheduled_query_run.created' | 'sku.created' | 'sku.deleted' | 'sku.updated' | 'source.canceled' | 'source.chargeable' | 'source.failed' | 'source.mandate_notification' | 'source.refund_attributes_required' | 'source.transaction.created' | 'source.transaction.updated' | 'subscription_schedule.aborted' | 'subscription_schedule.canceled' | 'subscription_schedule.completed' | 'subscription_schedule.created' | 'subscription_schedule.expiring' | 'subscription_schedule.released' | 'subscription_schedule.updated' | 'tax_rate.created' | 'tax_rate.updated' | 'tax.settings.updated' | 'terminal.reader.action_failed' | 'terminal.reader.action_succeeded' | 'test_helpers.test_clock.advancing' | 'test_helpers.test_clock.created' | 'test_helpers.test_clock.deleted' | 'test_helpers.test_clock.internal_failure' | 'test_helpers.test_clock.ready' | 'topup.canceled' | 'topup.created' | 'topup.failed' | 'topup.reversed' | 'topup.succeeded' | 'transfer.created' | 'transfer.reversed' | 'transfer.updated' | 'billing.discrepancy' | 'usage.report.empty', string>;
393
393
  export type StripeRefundReason = 'duplicate' | 'fraudulent' | 'requested_by_customer';
394
+ export type SettingType = LiteralUnion<'donate', string>;
394
395
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blocklet/payment-types",
3
- "version": "1.18.3",
3
+ "version": "1.18.4",
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": "a2708c80deb174f7fd9d170ffc90566b68bf844b"
51
+ "gitHead": "003d3b762bc9e3e224e4814dea95ff02d014868d"
52
52
  }