@verma-consulting/common-library 0.1.16 → 0.1.18
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/dist/index.d.mts +42 -21
- package/dist/index.d.ts +42 -21
- package/dist/index.js +56 -31
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +55 -30
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1168,7 +1168,7 @@ declare enum userStatus {
|
|
|
1168
1168
|
Active = "Active",
|
|
1169
1169
|
Inactive = "Inactive"
|
|
1170
1170
|
}
|
|
1171
|
-
declare enum
|
|
1171
|
+
declare enum subscriptionCancellationReason {
|
|
1172
1172
|
CustomerService = "customer_service",
|
|
1173
1173
|
LowQuality = "low_quality",
|
|
1174
1174
|
MissingFeatures = "missing_features",
|
|
@@ -1485,6 +1485,7 @@ declare enum UsageType {
|
|
|
1485
1485
|
declare enum ModelType {
|
|
1486
1486
|
clients = "clients",
|
|
1487
1487
|
tasks = "tasks",
|
|
1488
|
+
products = "products",
|
|
1488
1489
|
inventories = "inventories",
|
|
1489
1490
|
invoices = "invoices",
|
|
1490
1491
|
leads = "leads",
|
|
@@ -1492,9 +1493,10 @@ declare enum ModelType {
|
|
|
1492
1493
|
contacts = "contacts",
|
|
1493
1494
|
engagements = "engagements",
|
|
1494
1495
|
campaigns = "campaigns",
|
|
1495
|
-
products = "products",
|
|
1496
1496
|
subscriptions = "subscriptions",
|
|
1497
|
-
payments = "payments"
|
|
1497
|
+
payments = "payments",
|
|
1498
|
+
paymentMethods = "paymentMethods",
|
|
1499
|
+
refunds = "refunds"
|
|
1498
1500
|
}
|
|
1499
1501
|
declare enum CategoryType {
|
|
1500
1502
|
content = "content",
|
|
@@ -2528,6 +2530,7 @@ declare const defaults: {
|
|
|
2528
2530
|
client: string;
|
|
2529
2531
|
subscription: string;
|
|
2530
2532
|
invoice: string;
|
|
2533
|
+
paymentMethod: string;
|
|
2531
2534
|
automaticPaymentMethods: {
|
|
2532
2535
|
allowRedirects: string;
|
|
2533
2536
|
enabled: boolean;
|
|
@@ -2551,39 +2554,62 @@ declare const defaults: {
|
|
|
2551
2554
|
name: string;
|
|
2552
2555
|
description: string;
|
|
2553
2556
|
status: string;
|
|
2557
|
+
paymentMethodType: string;
|
|
2558
|
+
allowRedisplay: string;
|
|
2554
2559
|
livemode: boolean;
|
|
2555
2560
|
};
|
|
2556
2561
|
billingDetails: {
|
|
2562
|
+
name: string;
|
|
2563
|
+
email: null;
|
|
2564
|
+
phone: null;
|
|
2557
2565
|
address: {
|
|
2558
|
-
city: null;
|
|
2559
|
-
country: null;
|
|
2560
2566
|
line1: null;
|
|
2561
2567
|
line2: null;
|
|
2562
|
-
|
|
2568
|
+
city: null;
|
|
2563
2569
|
state: null;
|
|
2570
|
+
country: null;
|
|
2571
|
+
postalCode: null;
|
|
2564
2572
|
};
|
|
2565
|
-
email: null;
|
|
2566
|
-
name: string;
|
|
2567
|
-
phone: null;
|
|
2568
2573
|
};
|
|
2569
2574
|
shipping: {
|
|
2575
|
+
name: string;
|
|
2576
|
+
carrier: string;
|
|
2577
|
+
phone: string;
|
|
2578
|
+
trackingNumber: string;
|
|
2570
2579
|
address: {
|
|
2571
|
-
city: null;
|
|
2572
|
-
country: null;
|
|
2573
2580
|
line1: null;
|
|
2574
2581
|
line2: null;
|
|
2575
|
-
|
|
2582
|
+
city: null;
|
|
2576
2583
|
state: null;
|
|
2584
|
+
country: null;
|
|
2585
|
+
postalCode: null;
|
|
2577
2586
|
};
|
|
2578
|
-
|
|
2587
|
+
};
|
|
2588
|
+
refunds: {
|
|
2579
2589
|
name: string;
|
|
2580
|
-
|
|
2581
|
-
|
|
2590
|
+
description: string;
|
|
2591
|
+
status: string;
|
|
2592
|
+
currency: string;
|
|
2593
|
+
instructionsEmail: string;
|
|
2594
|
+
receiptNumber: string;
|
|
2595
|
+
refundStatus: string;
|
|
2596
|
+
reason: string;
|
|
2597
|
+
pendingReason: string;
|
|
2598
|
+
failureReason: string;
|
|
2599
|
+
sourceTransferReversal: string;
|
|
2600
|
+
transferReversal: string;
|
|
2601
|
+
amount: number;
|
|
2582
2602
|
};
|
|
2583
2603
|
disputes: {
|
|
2584
2604
|
name: string;
|
|
2585
2605
|
description: string;
|
|
2586
2606
|
status: string;
|
|
2607
|
+
currency: string;
|
|
2608
|
+
disputeStatus: string;
|
|
2609
|
+
reason: string;
|
|
2610
|
+
amount: number;
|
|
2611
|
+
isChargeRefundable: boolean;
|
|
2612
|
+
livemode: boolean;
|
|
2587
2613
|
evidence: {
|
|
2588
2614
|
accessActivityLog: null;
|
|
2589
2615
|
billingAddress: null;
|
|
@@ -2620,11 +2646,6 @@ declare const defaults: {
|
|
|
2620
2646
|
submissionCount: number;
|
|
2621
2647
|
};
|
|
2622
2648
|
};
|
|
2623
|
-
refunds: {
|
|
2624
|
-
name: string;
|
|
2625
|
-
description: string;
|
|
2626
|
-
status: string;
|
|
2627
|
-
};
|
|
2628
2649
|
pools: {
|
|
2629
2650
|
name: string;
|
|
2630
2651
|
description: string;
|
|
@@ -4099,4 +4120,4 @@ declare const defaultsWithTypes: {
|
|
|
4099
4120
|
};
|
|
4100
4121
|
};
|
|
4101
4122
|
|
|
4102
|
-
export { type ActivityInterface, type AddressInterface, type AnalyticsQueryInterface, AppMode, type AutomaticTaxInterface, CalculationType, type CampaignInterface, CampaignType, type CancellationDetailsInterface, type CardInterface, CategoryType, ChartType, type ChatInterface, type ClientInterface, type CommentInterface, type ContactInterface, type ContentInterface, ContentType, type CurrentRateInterface, type DealInterface, DealType, DeviceNotification, type EmailInterface, type EngagementInterface, FeatureType, type FileInterface, type FilterInterface, FilterType, FormFieldOrder, FormFieldType, FrequencyType, Gender, type GenericPayload, type IntegrationInterface, type InventoryInterface, type InvoiceInterface, LandingPath, LandingView, type LeadInterface, LeadType, type ListInterface, type MarketingFeatureInterface, type ModelInterface, ModelType, type Notation, type NotificationInterface, type OperationInterface, OrganizationFeatures, type OrganizationInterface, type OrganizationModelInterface, type PackageDimensionsInterface, type PauseCollectionInterface, type PaymentInterface, type PaymentMethodInterface, type PermissionInterface, PermissionType, PlatformLanguage, type PoolInterface, type PriceInterface, type PriceRecurringInterface, Priority, type ProductInterface, type PromptInterface, type QueryFilterInterface, type RegisterInterface, type ReportInterface, type SchemaInterface, type SentEmailInterface, SourceType, type StatisticInterface, type StripeAccountInterface, type StripeCustomer, type StripePaymentIntent, type SubscriptionInterface, type TagInterface, type TaskInterface, type TokenInterface, type UsageInterface, UsageType, type UserInterface, UserSettingType, type WaitlistInterface, accountType, action, automaticTaxStatus, billingReason, billingScheme, camelCaseToWords,
|
|
4123
|
+
export { type ActivityInterface, type AddressInterface, type AnalyticsQueryInterface, AppMode, type AutomaticTaxInterface, CalculationType, type CampaignInterface, CampaignType, type CancellationDetailsInterface, type CardInterface, CategoryType, ChartType, type ChatInterface, type ClientInterface, type CommentInterface, type ContactInterface, type ContentInterface, ContentType, type CurrentRateInterface, type DealInterface, DealType, DeviceNotification, type EmailInterface, type EngagementInterface, FeatureType, type FileInterface, type FilterInterface, FilterType, FormFieldOrder, FormFieldType, FrequencyType, Gender, type GenericPayload, type IntegrationInterface, type InventoryInterface, type InvoiceInterface, LandingPath, LandingView, type LeadInterface, LeadType, type ListInterface, type MarketingFeatureInterface, type ModelInterface, ModelType, type Notation, type NotificationInterface, type OperationInterface, OrganizationFeatures, type OrganizationInterface, type OrganizationModelInterface, type PackageDimensionsInterface, type PauseCollectionInterface, type PaymentInterface, type PaymentMethodInterface, type PermissionInterface, PermissionType, PlatformLanguage, type PoolInterface, type PriceInterface, type PriceRecurringInterface, Priority, type ProductInterface, type PromptInterface, type QueryFilterInterface, type RegisterInterface, type ReportInterface, type SchemaInterface, type SentEmailInterface, SourceType, type StatisticInterface, type StripeAccountInterface, type StripeCustomer, type StripePaymentIntent, type SubscriptionInterface, type TagInterface, type TaskInterface, type TokenInterface, type UsageInterface, UsageType, type UserInterface, UserSettingType, type WaitlistInterface, accountType, action, automaticTaxStatus, billingReason, billingScheme, camelCaseToWords, capitalizeSentence, captureMethod, chatType, clientType, collectionMethod, commentRole, constants, currency, customerType, defaults, defaultsWithTypes, disputeReason, disputeStatus, formatPhoneNumber, getRandomArbitrary, grabAge, integrationType, isNumber, largeNumberLabel, missingPaymentMethod, normalizeKey, openInNewTab, operationType, organizationFilterType, paymentAllowRedirect, paymentCancellationReason, paymentFutureUsage, paymentMethodAllowReDisplay, paymentMethodType, paymentStatus, prettifyString, priceType, productType, refundFailureReason, refundPendingReason, refundReason, refundStatus, snakeToPretty, status, stripHtmlTags, subscriptionCancellationReason, taxBehavior, taxExempt, tiersMode, toCurrencyValue, userRole, userSource, userStatus, validEmail };
|
package/dist/index.d.ts
CHANGED
|
@@ -1168,7 +1168,7 @@ declare enum userStatus {
|
|
|
1168
1168
|
Active = "Active",
|
|
1169
1169
|
Inactive = "Inactive"
|
|
1170
1170
|
}
|
|
1171
|
-
declare enum
|
|
1171
|
+
declare enum subscriptionCancellationReason {
|
|
1172
1172
|
CustomerService = "customer_service",
|
|
1173
1173
|
LowQuality = "low_quality",
|
|
1174
1174
|
MissingFeatures = "missing_features",
|
|
@@ -1485,6 +1485,7 @@ declare enum UsageType {
|
|
|
1485
1485
|
declare enum ModelType {
|
|
1486
1486
|
clients = "clients",
|
|
1487
1487
|
tasks = "tasks",
|
|
1488
|
+
products = "products",
|
|
1488
1489
|
inventories = "inventories",
|
|
1489
1490
|
invoices = "invoices",
|
|
1490
1491
|
leads = "leads",
|
|
@@ -1492,9 +1493,10 @@ declare enum ModelType {
|
|
|
1492
1493
|
contacts = "contacts",
|
|
1493
1494
|
engagements = "engagements",
|
|
1494
1495
|
campaigns = "campaigns",
|
|
1495
|
-
products = "products",
|
|
1496
1496
|
subscriptions = "subscriptions",
|
|
1497
|
-
payments = "payments"
|
|
1497
|
+
payments = "payments",
|
|
1498
|
+
paymentMethods = "paymentMethods",
|
|
1499
|
+
refunds = "refunds"
|
|
1498
1500
|
}
|
|
1499
1501
|
declare enum CategoryType {
|
|
1500
1502
|
content = "content",
|
|
@@ -2528,6 +2530,7 @@ declare const defaults: {
|
|
|
2528
2530
|
client: string;
|
|
2529
2531
|
subscription: string;
|
|
2530
2532
|
invoice: string;
|
|
2533
|
+
paymentMethod: string;
|
|
2531
2534
|
automaticPaymentMethods: {
|
|
2532
2535
|
allowRedirects: string;
|
|
2533
2536
|
enabled: boolean;
|
|
@@ -2551,39 +2554,62 @@ declare const defaults: {
|
|
|
2551
2554
|
name: string;
|
|
2552
2555
|
description: string;
|
|
2553
2556
|
status: string;
|
|
2557
|
+
paymentMethodType: string;
|
|
2558
|
+
allowRedisplay: string;
|
|
2554
2559
|
livemode: boolean;
|
|
2555
2560
|
};
|
|
2556
2561
|
billingDetails: {
|
|
2562
|
+
name: string;
|
|
2563
|
+
email: null;
|
|
2564
|
+
phone: null;
|
|
2557
2565
|
address: {
|
|
2558
|
-
city: null;
|
|
2559
|
-
country: null;
|
|
2560
2566
|
line1: null;
|
|
2561
2567
|
line2: null;
|
|
2562
|
-
|
|
2568
|
+
city: null;
|
|
2563
2569
|
state: null;
|
|
2570
|
+
country: null;
|
|
2571
|
+
postalCode: null;
|
|
2564
2572
|
};
|
|
2565
|
-
email: null;
|
|
2566
|
-
name: string;
|
|
2567
|
-
phone: null;
|
|
2568
2573
|
};
|
|
2569
2574
|
shipping: {
|
|
2575
|
+
name: string;
|
|
2576
|
+
carrier: string;
|
|
2577
|
+
phone: string;
|
|
2578
|
+
trackingNumber: string;
|
|
2570
2579
|
address: {
|
|
2571
|
-
city: null;
|
|
2572
|
-
country: null;
|
|
2573
2580
|
line1: null;
|
|
2574
2581
|
line2: null;
|
|
2575
|
-
|
|
2582
|
+
city: null;
|
|
2576
2583
|
state: null;
|
|
2584
|
+
country: null;
|
|
2585
|
+
postalCode: null;
|
|
2577
2586
|
};
|
|
2578
|
-
|
|
2587
|
+
};
|
|
2588
|
+
refunds: {
|
|
2579
2589
|
name: string;
|
|
2580
|
-
|
|
2581
|
-
|
|
2590
|
+
description: string;
|
|
2591
|
+
status: string;
|
|
2592
|
+
currency: string;
|
|
2593
|
+
instructionsEmail: string;
|
|
2594
|
+
receiptNumber: string;
|
|
2595
|
+
refundStatus: string;
|
|
2596
|
+
reason: string;
|
|
2597
|
+
pendingReason: string;
|
|
2598
|
+
failureReason: string;
|
|
2599
|
+
sourceTransferReversal: string;
|
|
2600
|
+
transferReversal: string;
|
|
2601
|
+
amount: number;
|
|
2582
2602
|
};
|
|
2583
2603
|
disputes: {
|
|
2584
2604
|
name: string;
|
|
2585
2605
|
description: string;
|
|
2586
2606
|
status: string;
|
|
2607
|
+
currency: string;
|
|
2608
|
+
disputeStatus: string;
|
|
2609
|
+
reason: string;
|
|
2610
|
+
amount: number;
|
|
2611
|
+
isChargeRefundable: boolean;
|
|
2612
|
+
livemode: boolean;
|
|
2587
2613
|
evidence: {
|
|
2588
2614
|
accessActivityLog: null;
|
|
2589
2615
|
billingAddress: null;
|
|
@@ -2620,11 +2646,6 @@ declare const defaults: {
|
|
|
2620
2646
|
submissionCount: number;
|
|
2621
2647
|
};
|
|
2622
2648
|
};
|
|
2623
|
-
refunds: {
|
|
2624
|
-
name: string;
|
|
2625
|
-
description: string;
|
|
2626
|
-
status: string;
|
|
2627
|
-
};
|
|
2628
2649
|
pools: {
|
|
2629
2650
|
name: string;
|
|
2630
2651
|
description: string;
|
|
@@ -4099,4 +4120,4 @@ declare const defaultsWithTypes: {
|
|
|
4099
4120
|
};
|
|
4100
4121
|
};
|
|
4101
4122
|
|
|
4102
|
-
export { type ActivityInterface, type AddressInterface, type AnalyticsQueryInterface, AppMode, type AutomaticTaxInterface, CalculationType, type CampaignInterface, CampaignType, type CancellationDetailsInterface, type CardInterface, CategoryType, ChartType, type ChatInterface, type ClientInterface, type CommentInterface, type ContactInterface, type ContentInterface, ContentType, type CurrentRateInterface, type DealInterface, DealType, DeviceNotification, type EmailInterface, type EngagementInterface, FeatureType, type FileInterface, type FilterInterface, FilterType, FormFieldOrder, FormFieldType, FrequencyType, Gender, type GenericPayload, type IntegrationInterface, type InventoryInterface, type InvoiceInterface, LandingPath, LandingView, type LeadInterface, LeadType, type ListInterface, type MarketingFeatureInterface, type ModelInterface, ModelType, type Notation, type NotificationInterface, type OperationInterface, OrganizationFeatures, type OrganizationInterface, type OrganizationModelInterface, type PackageDimensionsInterface, type PauseCollectionInterface, type PaymentInterface, type PaymentMethodInterface, type PermissionInterface, PermissionType, PlatformLanguage, type PoolInterface, type PriceInterface, type PriceRecurringInterface, Priority, type ProductInterface, type PromptInterface, type QueryFilterInterface, type RegisterInterface, type ReportInterface, type SchemaInterface, type SentEmailInterface, SourceType, type StatisticInterface, type StripeAccountInterface, type StripeCustomer, type StripePaymentIntent, type SubscriptionInterface, type TagInterface, type TaskInterface, type TokenInterface, type UsageInterface, UsageType, type UserInterface, UserSettingType, type WaitlistInterface, accountType, action, automaticTaxStatus, billingReason, billingScheme, camelCaseToWords,
|
|
4123
|
+
export { type ActivityInterface, type AddressInterface, type AnalyticsQueryInterface, AppMode, type AutomaticTaxInterface, CalculationType, type CampaignInterface, CampaignType, type CancellationDetailsInterface, type CardInterface, CategoryType, ChartType, type ChatInterface, type ClientInterface, type CommentInterface, type ContactInterface, type ContentInterface, ContentType, type CurrentRateInterface, type DealInterface, DealType, DeviceNotification, type EmailInterface, type EngagementInterface, FeatureType, type FileInterface, type FilterInterface, FilterType, FormFieldOrder, FormFieldType, FrequencyType, Gender, type GenericPayload, type IntegrationInterface, type InventoryInterface, type InvoiceInterface, LandingPath, LandingView, type LeadInterface, LeadType, type ListInterface, type MarketingFeatureInterface, type ModelInterface, ModelType, type Notation, type NotificationInterface, type OperationInterface, OrganizationFeatures, type OrganizationInterface, type OrganizationModelInterface, type PackageDimensionsInterface, type PauseCollectionInterface, type PaymentInterface, type PaymentMethodInterface, type PermissionInterface, PermissionType, PlatformLanguage, type PoolInterface, type PriceInterface, type PriceRecurringInterface, Priority, type ProductInterface, type PromptInterface, type QueryFilterInterface, type RegisterInterface, type ReportInterface, type SchemaInterface, type SentEmailInterface, SourceType, type StatisticInterface, type StripeAccountInterface, type StripeCustomer, type StripePaymentIntent, type SubscriptionInterface, type TagInterface, type TaskInterface, type TokenInterface, type UsageInterface, UsageType, type UserInterface, UserSettingType, type WaitlistInterface, accountType, action, automaticTaxStatus, billingReason, billingScheme, camelCaseToWords, capitalizeSentence, captureMethod, chatType, clientType, collectionMethod, commentRole, constants, currency, customerType, defaults, defaultsWithTypes, disputeReason, disputeStatus, formatPhoneNumber, getRandomArbitrary, grabAge, integrationType, isNumber, largeNumberLabel, missingPaymentMethod, normalizeKey, openInNewTab, operationType, organizationFilterType, paymentAllowRedirect, paymentCancellationReason, paymentFutureUsage, paymentMethodAllowReDisplay, paymentMethodType, paymentStatus, prettifyString, priceType, productType, refundFailureReason, refundPendingReason, refundReason, refundStatus, snakeToPretty, status, stripHtmlTags, subscriptionCancellationReason, taxBehavior, taxExempt, tiersMode, toCurrencyValue, userRole, userSource, userStatus, validEmail };
|
package/dist/index.js
CHANGED
|
@@ -51,7 +51,6 @@ __export(index_exports, {
|
|
|
51
51
|
billingReason: () => billingReason,
|
|
52
52
|
billingScheme: () => billingScheme,
|
|
53
53
|
camelCaseToWords: () => camelCaseToWords,
|
|
54
|
-
cancellationReason: () => cancellationReason,
|
|
55
54
|
capitalizeSentence: () => capitalizeSentence,
|
|
56
55
|
captureMethod: () => captureMethod,
|
|
57
56
|
chatType: () => chatType,
|
|
@@ -92,6 +91,7 @@ __export(index_exports, {
|
|
|
92
91
|
snakeToPretty: () => snakeToPretty,
|
|
93
92
|
status: () => status,
|
|
94
93
|
stripHtmlTags: () => stripHtmlTags,
|
|
94
|
+
subscriptionCancellationReason: () => subscriptionCancellationReason,
|
|
95
95
|
taxBehavior: () => taxBehavior,
|
|
96
96
|
taxExempt: () => taxExempt,
|
|
97
97
|
tiersMode: () => tiersMode,
|
|
@@ -236,17 +236,17 @@ var userStatus = /* @__PURE__ */ ((userStatus2) => {
|
|
|
236
236
|
userStatus2["Inactive"] = "Inactive";
|
|
237
237
|
return userStatus2;
|
|
238
238
|
})(userStatus || {});
|
|
239
|
-
var
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
return
|
|
249
|
-
})(
|
|
239
|
+
var subscriptionCancellationReason = /* @__PURE__ */ ((subscriptionCancellationReason2) => {
|
|
240
|
+
subscriptionCancellationReason2["CustomerService"] = "customer_service";
|
|
241
|
+
subscriptionCancellationReason2["LowQuality"] = "low_quality";
|
|
242
|
+
subscriptionCancellationReason2["MissingFeatures"] = "missing_features";
|
|
243
|
+
subscriptionCancellationReason2["SwitchedService"] = "switched_service";
|
|
244
|
+
subscriptionCancellationReason2["TooComplex"] = "too_complex";
|
|
245
|
+
subscriptionCancellationReason2["TooExpensive"] = "too_expensive";
|
|
246
|
+
subscriptionCancellationReason2["Unused"] = "unused";
|
|
247
|
+
subscriptionCancellationReason2["Other"] = "other";
|
|
248
|
+
return subscriptionCancellationReason2;
|
|
249
|
+
})(subscriptionCancellationReason || {});
|
|
250
250
|
var paymentCancellationReason = /* @__PURE__ */ ((paymentCancellationReason2) => {
|
|
251
251
|
paymentCancellationReason2["abandoned"] = "abandoned";
|
|
252
252
|
paymentCancellationReason2["automatic"] = "automatic";
|
|
@@ -586,6 +586,7 @@ var UsageType = /* @__PURE__ */ ((UsageType2) => {
|
|
|
586
586
|
var ModelType = /* @__PURE__ */ ((ModelType2) => {
|
|
587
587
|
ModelType2["clients"] = "clients";
|
|
588
588
|
ModelType2["tasks"] = "tasks";
|
|
589
|
+
ModelType2["products"] = "products";
|
|
589
590
|
ModelType2["inventories"] = "inventories";
|
|
590
591
|
ModelType2["invoices"] = "invoices";
|
|
591
592
|
ModelType2["leads"] = "leads";
|
|
@@ -593,9 +594,10 @@ var ModelType = /* @__PURE__ */ ((ModelType2) => {
|
|
|
593
594
|
ModelType2["contacts"] = "contacts";
|
|
594
595
|
ModelType2["engagements"] = "engagements";
|
|
595
596
|
ModelType2["campaigns"] = "campaigns";
|
|
596
|
-
ModelType2["products"] = "products";
|
|
597
597
|
ModelType2["subscriptions"] = "subscriptions";
|
|
598
598
|
ModelType2["payments"] = "payments";
|
|
599
|
+
ModelType2["paymentMethods"] = "paymentMethods";
|
|
600
|
+
ModelType2["refunds"] = "refunds";
|
|
599
601
|
return ModelType2;
|
|
600
602
|
})(ModelType || {});
|
|
601
603
|
var CategoryType = /* @__PURE__ */ ((CategoryType2) => {
|
|
@@ -1872,6 +1874,7 @@ var defaults = {
|
|
|
1872
1874
|
client: "",
|
|
1873
1875
|
subscription: "",
|
|
1874
1876
|
invoice: "",
|
|
1877
|
+
paymentMethod: "",
|
|
1875
1878
|
automaticPaymentMethods: { allowRedirects: "never", enabled: false },
|
|
1876
1879
|
amountDetails: {
|
|
1877
1880
|
discountAmount: null,
|
|
@@ -1888,39 +1891,62 @@ var defaults = {
|
|
|
1888
1891
|
name: "",
|
|
1889
1892
|
description: "",
|
|
1890
1893
|
status: "Ready",
|
|
1894
|
+
paymentMethodType: "",
|
|
1895
|
+
allowRedisplay: "",
|
|
1891
1896
|
livemode: false
|
|
1892
1897
|
},
|
|
1893
1898
|
billingDetails: {
|
|
1899
|
+
name: "",
|
|
1900
|
+
email: null,
|
|
1901
|
+
phone: null,
|
|
1894
1902
|
address: {
|
|
1895
|
-
city: null,
|
|
1896
|
-
country: null,
|
|
1897
1903
|
line1: null,
|
|
1898
1904
|
line2: null,
|
|
1899
|
-
|
|
1900
|
-
state: null
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
phone: null
|
|
1905
|
+
city: null,
|
|
1906
|
+
state: null,
|
|
1907
|
+
country: null,
|
|
1908
|
+
postalCode: null
|
|
1909
|
+
}
|
|
1905
1910
|
},
|
|
1906
1911
|
shipping: {
|
|
1912
|
+
name: "",
|
|
1913
|
+
carrier: "",
|
|
1914
|
+
phone: "",
|
|
1915
|
+
trackingNumber: "",
|
|
1907
1916
|
address: {
|
|
1908
|
-
city: null,
|
|
1909
|
-
country: null,
|
|
1910
1917
|
line1: null,
|
|
1911
1918
|
line2: null,
|
|
1912
|
-
|
|
1913
|
-
state: null
|
|
1914
|
-
|
|
1915
|
-
|
|
1919
|
+
city: null,
|
|
1920
|
+
state: null,
|
|
1921
|
+
country: null,
|
|
1922
|
+
postalCode: null
|
|
1923
|
+
}
|
|
1924
|
+
},
|
|
1925
|
+
refunds: {
|
|
1916
1926
|
name: "",
|
|
1917
|
-
|
|
1918
|
-
|
|
1927
|
+
description: "",
|
|
1928
|
+
status: "Ready",
|
|
1929
|
+
currency: "usd",
|
|
1930
|
+
instructionsEmail: "",
|
|
1931
|
+
receiptNumber: "",
|
|
1932
|
+
refundStatus: "",
|
|
1933
|
+
reason: "",
|
|
1934
|
+
pendingReason: "",
|
|
1935
|
+
failureReason: "",
|
|
1936
|
+
sourceTransferReversal: "",
|
|
1937
|
+
transferReversal: "",
|
|
1938
|
+
amount: 0
|
|
1919
1939
|
},
|
|
1920
1940
|
disputes: {
|
|
1921
1941
|
name: "",
|
|
1922
1942
|
description: "",
|
|
1923
1943
|
status: "Ready",
|
|
1944
|
+
currency: "usd",
|
|
1945
|
+
disputeStatus: "",
|
|
1946
|
+
reason: "",
|
|
1947
|
+
amount: 0,
|
|
1948
|
+
isChargeRefundable: false,
|
|
1949
|
+
livemode: false,
|
|
1924
1950
|
evidence: {
|
|
1925
1951
|
accessActivityLog: null,
|
|
1926
1952
|
billingAddress: null,
|
|
@@ -1957,7 +1983,6 @@ var defaults = {
|
|
|
1957
1983
|
submissionCount: 0
|
|
1958
1984
|
}
|
|
1959
1985
|
},
|
|
1960
|
-
refunds: { name: "", description: "", status: "Ready" },
|
|
1961
1986
|
pools: { name: "", description: "", status: "Ready" },
|
|
1962
1987
|
issuer: { account: "", type: "" },
|
|
1963
1988
|
activties: { label: "", value: "", modelName: "", path: "" },
|
|
@@ -2470,7 +2495,6 @@ var defaultsWithTypes_default = defaultsWithTypes;
|
|
|
2470
2495
|
billingReason,
|
|
2471
2496
|
billingScheme,
|
|
2472
2497
|
camelCaseToWords,
|
|
2473
|
-
cancellationReason,
|
|
2474
2498
|
capitalizeSentence,
|
|
2475
2499
|
captureMethod,
|
|
2476
2500
|
chatType,
|
|
@@ -2511,6 +2535,7 @@ var defaultsWithTypes_default = defaultsWithTypes;
|
|
|
2511
2535
|
snakeToPretty,
|
|
2512
2536
|
status,
|
|
2513
2537
|
stripHtmlTags,
|
|
2538
|
+
subscriptionCancellationReason,
|
|
2514
2539
|
taxBehavior,
|
|
2515
2540
|
taxExempt,
|
|
2516
2541
|
tiersMode,
|