@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.mjs CHANGED
@@ -131,17 +131,17 @@ var userStatus = /* @__PURE__ */ ((userStatus2) => {
131
131
  userStatus2["Inactive"] = "Inactive";
132
132
  return userStatus2;
133
133
  })(userStatus || {});
134
- var cancellationReason = /* @__PURE__ */ ((cancellationReason2) => {
135
- cancellationReason2["CustomerService"] = "customer_service";
136
- cancellationReason2["LowQuality"] = "low_quality";
137
- cancellationReason2["MissingFeatures"] = "missing_features";
138
- cancellationReason2["SwitchedService"] = "switched_service";
139
- cancellationReason2["TooComplex"] = "too_complex";
140
- cancellationReason2["TooExpensive"] = "too_expensive";
141
- cancellationReason2["Unused"] = "unused";
142
- cancellationReason2["Other"] = "other";
143
- return cancellationReason2;
144
- })(cancellationReason || {});
134
+ var subscriptionCancellationReason = /* @__PURE__ */ ((subscriptionCancellationReason2) => {
135
+ subscriptionCancellationReason2["CustomerService"] = "customer_service";
136
+ subscriptionCancellationReason2["LowQuality"] = "low_quality";
137
+ subscriptionCancellationReason2["MissingFeatures"] = "missing_features";
138
+ subscriptionCancellationReason2["SwitchedService"] = "switched_service";
139
+ subscriptionCancellationReason2["TooComplex"] = "too_complex";
140
+ subscriptionCancellationReason2["TooExpensive"] = "too_expensive";
141
+ subscriptionCancellationReason2["Unused"] = "unused";
142
+ subscriptionCancellationReason2["Other"] = "other";
143
+ return subscriptionCancellationReason2;
144
+ })(subscriptionCancellationReason || {});
145
145
  var paymentCancellationReason = /* @__PURE__ */ ((paymentCancellationReason2) => {
146
146
  paymentCancellationReason2["abandoned"] = "abandoned";
147
147
  paymentCancellationReason2["automatic"] = "automatic";
@@ -481,6 +481,7 @@ var UsageType = /* @__PURE__ */ ((UsageType2) => {
481
481
  var ModelType = /* @__PURE__ */ ((ModelType2) => {
482
482
  ModelType2["clients"] = "clients";
483
483
  ModelType2["tasks"] = "tasks";
484
+ ModelType2["products"] = "products";
484
485
  ModelType2["inventories"] = "inventories";
485
486
  ModelType2["invoices"] = "invoices";
486
487
  ModelType2["leads"] = "leads";
@@ -488,9 +489,10 @@ var ModelType = /* @__PURE__ */ ((ModelType2) => {
488
489
  ModelType2["contacts"] = "contacts";
489
490
  ModelType2["engagements"] = "engagements";
490
491
  ModelType2["campaigns"] = "campaigns";
491
- ModelType2["products"] = "products";
492
492
  ModelType2["subscriptions"] = "subscriptions";
493
493
  ModelType2["payments"] = "payments";
494
+ ModelType2["paymentMethods"] = "paymentMethods";
495
+ ModelType2["refunds"] = "refunds";
494
496
  return ModelType2;
495
497
  })(ModelType || {});
496
498
  var CategoryType = /* @__PURE__ */ ((CategoryType2) => {
@@ -1767,6 +1769,7 @@ var defaults = {
1767
1769
  client: "",
1768
1770
  subscription: "",
1769
1771
  invoice: "",
1772
+ paymentMethod: "",
1770
1773
  automaticPaymentMethods: { allowRedirects: "never", enabled: false },
1771
1774
  amountDetails: {
1772
1775
  discountAmount: null,
@@ -1783,39 +1786,62 @@ var defaults = {
1783
1786
  name: "",
1784
1787
  description: "",
1785
1788
  status: "Ready",
1789
+ paymentMethodType: "",
1790
+ allowRedisplay: "",
1786
1791
  livemode: false
1787
1792
  },
1788
1793
  billingDetails: {
1794
+ name: "",
1795
+ email: null,
1796
+ phone: null,
1789
1797
  address: {
1790
- city: null,
1791
- country: null,
1792
1798
  line1: null,
1793
1799
  line2: null,
1794
- postalCode: null,
1795
- state: null
1796
- },
1797
- email: null,
1798
- name: "",
1799
- phone: null
1800
+ city: null,
1801
+ state: null,
1802
+ country: null,
1803
+ postalCode: null
1804
+ }
1800
1805
  },
1801
1806
  shipping: {
1807
+ name: "",
1808
+ carrier: "",
1809
+ phone: "",
1810
+ trackingNumber: "",
1802
1811
  address: {
1803
- city: null,
1804
- country: null,
1805
1812
  line1: null,
1806
1813
  line2: null,
1807
- postalCode: null,
1808
- state: null
1809
- },
1810
- carrier: "",
1814
+ city: null,
1815
+ state: null,
1816
+ country: null,
1817
+ postalCode: null
1818
+ }
1819
+ },
1820
+ refunds: {
1811
1821
  name: "",
1812
- phone: "",
1813
- trackingNumber: ""
1822
+ description: "",
1823
+ status: "Ready",
1824
+ currency: "usd",
1825
+ instructionsEmail: "",
1826
+ receiptNumber: "",
1827
+ refundStatus: "",
1828
+ reason: "",
1829
+ pendingReason: "",
1830
+ failureReason: "",
1831
+ sourceTransferReversal: "",
1832
+ transferReversal: "",
1833
+ amount: 0
1814
1834
  },
1815
1835
  disputes: {
1816
1836
  name: "",
1817
1837
  description: "",
1818
1838
  status: "Ready",
1839
+ currency: "usd",
1840
+ disputeStatus: "",
1841
+ reason: "",
1842
+ amount: 0,
1843
+ isChargeRefundable: false,
1844
+ livemode: false,
1819
1845
  evidence: {
1820
1846
  accessActivityLog: null,
1821
1847
  billingAddress: null,
@@ -1852,7 +1878,6 @@ var defaults = {
1852
1878
  submissionCount: 0
1853
1879
  }
1854
1880
  },
1855
- refunds: { name: "", description: "", status: "Ready" },
1856
1881
  pools: { name: "", description: "", status: "Ready" },
1857
1882
  issuer: { account: "", type: "" },
1858
1883
  activties: { label: "", value: "", modelName: "", path: "" },
@@ -2364,7 +2389,6 @@ export {
2364
2389
  billingReason,
2365
2390
  billingScheme,
2366
2391
  camelCaseToWords,
2367
- cancellationReason,
2368
2392
  capitalizeSentence,
2369
2393
  captureMethod,
2370
2394
  chatType,
@@ -2405,6 +2429,7 @@ export {
2405
2429
  snakeToPretty,
2406
2430
  status,
2407
2431
  stripHtmlTags,
2432
+ subscriptionCancellationReason,
2408
2433
  taxBehavior,
2409
2434
  taxExempt,
2410
2435
  tiersMode,